@redneckz/wildless-cms-uni-blocks 0.2.98 → 0.2.99

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.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";const t=(e,r)=>{t._jsx=e,t._jsxs=r||e};t.vue=e=>{t(((t,{children:r,dangerouslySetInnerHTML:n,...a}={})=>{const i=Object.assign({},a,n?{innerHTML:n.__html}:{});return e(t,i,"string"!=typeof t?()=>r:r)}))};const r=(...e)=>t._jsx(...e),n=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,r){const{children:n,...a}=t||{},i=r?.slots?.default,l=n||i&&i();return e(Object.assign(a,l&&{children:l}),r)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";var l;!function(e){e.XL="text-title-lg",e.L="text-title",e.M="text-title-sm",e.S="text-title-xs"}(l||(l={}));const s=a((({size:e="L",className:t,children:n,...a})=>r("XL"===e?"h1":"h2",{className:c(l[e],t),...a,children:n}))),c=(...e)=>e.filter(Boolean).join(" "),o=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},d=a((({className:e="",name:t,alt:a=`Icon ${t}`,title:i=a,asSVG:l,...s})=>{const c=`${o.CDN||""}icons/${t}.svg`;return l?n("svg",{className:e,...s,"aria-hidden":"true",children:[i?r("title",{children:i}):null,a?r("desc",{children:a}):null,r("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]}):r("img",{className:e,src:c,alt:a,title:i,...s,"aria-hidden":"true"})})),m="/mobile",h=e=>e?.includes("//"),x=(e,t,r=((e,t)=>e===t))=>r(u(e),p(u(h(e)?t.href:t.pathname))),u=e=>(e||"").replace(/\/?\?.*/,""),p=e=>(e||"").replace(m,""),f=e=>{if(!h(e))return;const t=e,r=t.indexOf("//"),n=t.indexOf("/",r+"//".length);return-1!==n?t.substring(0,n):t},b=(e,t)=>{if(!e)return e;const r=g(e,t),n=t?.pathname.startsWith(m);return n&&!h(r)?`/mobile${r}`:r},g=(e,t)=>{if(!e)return e;const r=f(t?.href);return r?e.replace(r,"")||"/":e};var v=Object.freeze({__proto__:null,MOBILE_URL_PATH:m,isURL:h,isHrefActive:x,withoutQuery:u,withoutMobilePath:p,getOrigin:f,adjustHref:b,toRelativeHref:g});const N=e=>e;function y({router:e,handlerDecorator:t=N},r){const n=b(r.href,e);return{...r,href:n,ariaLabel:r.text,onClick:t((t=>{const a=n&&!h(n),i=!r.target||"_self"===r.target;a&&i&&(t.preventDefault(),e.push(n))}),r)}}const w={primary:"bg-secondary-text w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5 rounded-full",secondary:"bg-white w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5 rounded-full"},k={primary:"text-secondary-text",secondary:""},$=a((({className:e,isDotted:t=!0,text:a,children:i,version:l="primary"})=>n("div",{className:`inline-block flex ${e||""}`,role:"listitem",children:[t&&r("div",{className:`inline-block mr-3 ${w[l]}`}),r("span",{className:`text-base font-normal font-sans mr-3 ${k[l]}`,children:a||i})]}))),S={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active"},C={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text"},L="inline-block text-center font-sans select-none",D=a((({className:e,text:t,aboveText:n,appendLeft:a,href:i,target:l,onClick:s,children:c,disabled:o,rounded:d,version:m="none",ariaLabel:h,...x})=>{const u=c??r(j,{text:t,aboveText:n,appendLeft:a,rounded:d});return o?r("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`${L} ${C[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:u}):r("a",{className:`${L} cursor-pointer no-underline ${S[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:s,"aria-label":h,role:i?"link":"button",...x,children:u})})),j=a((({text:e,aboveText:t,appendLeft:a,rounded:i})=>{const l=!e&&!t&&Boolean(a);return n("div",{className:`flex items-center justify-center ${l?"h-12 w-12 min-h-12 min-w-12":"px-8 gap-2 "+(t?"py-2":"py-[13px]")} ${i?"rounded-full":""}`,children:[a||null,l?null:n("div",{children:[r("div",{className:"text-xxs text-left",children:t}),r("div",{className:"text-sm font-medium text-left",children:e})]})]})})),_=a((({className:e,image:{size:t,...a}})=>{const i={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return n("picture",{className:`flex-none ${e||""}`,children:[a.sources?.length?a.sources.map((({src:e,format:t},n)=>r("source",{srcSet:e,type:R(t)},`${n}_${e}`))):null,r("img",{src:a.src,alt:a.alt||a.title,title:a.title,style:i,...t})]})}));function R(e){return e?`image/${String(e)}`:void 0}const I=e=>{const t="col-span-",r=e.split(/\s+/).find((e=>e.startsWith(t)));return r?parseInt(r.substring(t.length),10):12},T={left:"justify-between",center:"justify-center",right:"justify-end"},M={left:"items-start",center:"items-center",right:"items-end"},A={left:"text-left",center:"text-center",right:"text-right"},B=a((({className:e,context:t,title:a,titleSize:i,description:l,children:c,buttons:o,image:m,items:h,version:x="primary",align:u="left"})=>{const p=t.useRouter(),{handlerDecorator:f}=t;return n("div",{className:`font-sans flex flex-col grow h-full ${M[u]}`,children:[a&&r(s,{size:i||P(e),className:"font-medium m-0 whitespace-pre-wrap max-w-[600px] "+("primary"===x?"text-primary-text":""),children:a}),n("div",{className:`flex grow w-full ${T[u]}`,children:[n("div",{className:`flex flex-col justify-between ${M[u]}`,children:[n("div",{children:[l?r("div",{className:`font-normal text-base mt-4 max-w-[600px] ${A[u]}`,children:l}):null,c,h?.length?O(h,x):null]}),o?.length?r("div",{className:"flex mt-9 gap-3",children:o.map(((e,t)=>function({icon:e,asSVG:t,...n},a){if(!n?.text)return;return r(D,e?{appendLeft:r(d,{name:e,asSVG:!0,width:"24",height:"24"}),...n}:{...n},String(a))}(y({router:p,handlerDecorator:f},e),t)))}):null]}),m?.src&&r(_,{className:"mt-auto ml-7",image:m})]})]})}));function P(e=""){const t=I(e);return t<=4?"S":t<=8?"M":"L"}function O(e=[],t){return r("section",{className:"max-w-[600px] mt-5",role:"list",children:e.map(((e,n)=>r($,{className:n?"mt-2.5":"",text:e,version:t},String(n))))})}const F=a((({bgColor:e="bg-white",className:t,...n})=>r("section",{className:`p-10 ${e} ${t||""} `,children:r(B,{...n})}))),H={left:"text-left",center:"text-center",right:"text-right"},V={double:"mb-8",single:"mb-[26px]"},Z={double:"gap-x-5 gap-y-[26px] flex-wrap",single:"gap-3.5 flex-col"},z=a((({className:e,title:t,align:a,documents:i,icon:l,columnsMode:c="double"})=>{const o=Z[c];return n("section",{className:`font-sans p-[50px] bg-white ${e}`,children:[t&&r(s,{className:`font-medium mt-0 ${V[c]} ${H[a??"center"]}`,children:t}),r("div",{className:`flex ${o}`,role:"list",children:i?.length?i.map((({text:e,fileSize:t,...a},i)=>n("a",{className:"group flex text-sm align-middle h-fit\n text-primary-text no-underline hover:text-primary-main\n "+("double"===c?"basis-[calc(50%-20px)]":""),role:"listitem",...a,children:[l&&r(d,{className:"mr-2.5 h-fit",name:l,width:"24px",height:"24px"}),n("span",{className:"self-center",children:[e,r("span",{className:"text-secondary-text group-hover:text-primary-main",children:a?.href&&G(E(a.href),t)})]})]},String(i)))):null})]})})),E=e=>{if(!e)return"";const t=e.split(".").pop();return!t||t.includes("/")?"":t},G=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),W=a((({className:e,title:t,image:a,benefits:i})=>n("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[r(s,{className:"font-medium m-0 text-center",children:t}),n("div",{className:"flex justify-center mt-9",children:[a?.src&&r(_,{className:"mr-6",image:a}),i?.length?r("div",{className:"flex flex-col",children:i.map(U)}):null]})]})));function U(e,t){return n("div",{className:"flex flex-row mb-8",children:[e.icon&&r(d,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48"}),n("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&r("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&r("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const J={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"}},X=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:s})=>{const c=J[a];return n("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,children:[i&&"small"===i?Q(c.icon):null,i&&"big"===i?q(l):null,n("div",{className:"py-0.5",children:[e&&r("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}),t&&r("div",{className:`text-sm ${c.description}`,children:t})]})]})}));function Q(e){return r("div",{className:"pt-1.5 pl-1 pr-4",children:r("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function q(e){return e?.src?r(_,{className:"pt-0.5 pr-3",image:e}):null}const K={Headline:F,LinkDocs:z,TextBlock:X,PictureText:W},Y=a((({label:e,blocks:t,context:a})=>{const[i,l]=a.useState(!1),s=t?.length,c=i?"MinusIcon":"PlusIcon";return n("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[n("button",{className:"border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans text-primary-text\n "+(s?"group cursor-pointer":""),onClick:e=>{if(!s)return;l(!i);const t=te(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`},children:[r("span",{className:"m-0 text-xl pr-2.5 font-medium "+(s?"group-hover:text-primary-main":""),children:e}),s?r(d,{name:c,width:"24",height:"24"}):null]}),s?r("div",{className:(i?"pb-5":"")+" text-sm transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:t?.length?t.map(((e,t)=>ee(e,t,a))):null}):null]})})),ee=(e,t,n)=>{const a=e?.accordionBlockType;if(!a||!(a in K))return null;return r("div",{className:"mb-5 last:mb-0",children:r(K[a],{context:n,...e})},`block_${t}`)},te=({target:e})=>"BUTTON"===e.tagName?e.nextSibling:e.parentNode.nextSibling,re=a((({title:e,accordionItems:t,context:a,className:i})=>n("section",{className:`p-[50px] font-sans bg-white text-primary-text ${i||""}`,children:[e?r(s,{className:"m-0 mb-2.5",children:e}):null,t?.length?r("ul",{className:"list-none m-0 p-0",children:t.map(((e,t)=>r(Y,{...e,context:a},`AccordionItem${t}`)))}):null]}))),ne=a((({className:e,title:t,benefits:a})=>n("section",{className:`font-sans text-primary-text bg-white p-12 pb-2 flex flex-col items-center ${e||""}`,children:[t?r(s,{className:"font-medium m-0 max-w-[47rem] text-center",children:t}):null,a?.length?r("div",{className:"grid grid-cols-2 gap-5 mt-9",children:a.map(ae)}):null]}))),ae=(e,t)=>n("div",{className:"flex items-center p-10 gap-5 max-w-[580px]",children:[e.icon&&r(d,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",name:e.icon,width:"70",height:"70"}),n("div",{children:[r("h3",{className:"font-medium text-xl m-0",children:e.label}),e.description&&r("div",{className:"font-normal text-sm mt-2",children:e.description})]})]},String(t)),ie=({colData:e,colsLengthForScroll:t,activeCardIndex:r,setActiveCardIndex:n})=>{const a=e?.length&&e.length>t;return{nextClick:()=>n(r+1),prevClick:()=>n(r-1),isScrollAvailable:a,showNextButton:a&&e?.length-r>t,showPrevButton:a&&r>0}},le=a((({className:e,viewBox:t,fill:n="none",width:a,height:i,paths:l,...s})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:a,height:i,children:l.map((({d:e,fill:t,...n},a)=>r("path",{d:e,fill:t||"currentColor",...s,...n},a)))}))),se=[{d:"m9 12 4-4-4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"},{d:"M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z"}],ce=a((({className:e,disabled:t,...n})=>r(D,{rounded:!0,className:`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:r(le,{paths:se,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),oe="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",de="border-main-stroke border-solid border",me="border-main-divider border border-t-0 border-x-0",he="w-[200px] mr-6",xe=a((({icon:e,image:t,title:a,link:i})=>n("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${de} ${oe}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&r(d,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",name:e,width:"63",height:"63"}),t?.src&&r(_,{className:"mb-[18px]",image:t}),a&&r(s,{size:"S",className:"font-medium m-0 text-center text-white",children:a}),i?.text&&r("div",{className:"mt-auto w-full",children:r(D,{href:i.href,target:i.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:r("div",{className:"font-medium text-xs py-[11px]",children:i.text})})})]}))),ue={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},pe=a((({children:e,activeCardIndex:t,columnWidth:n,version:a="comparison"})=>r("div",{className:"flex flex-1 overflow-hidden",children:r("div",{className:ue[a],style:{transform:`translateX(-${t*n}px)`},children:e})}))),fe=a((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:a})=>r("div",{className:`w-80 box-border flex flex-col ${de} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${a?oe:""}`,role:"cell",children:r("div",{className:`mx-7 h-full ${me} ${a&&t?"border-t":""} ${n?"":"border-solid"}`,children:e.map(((e,t)=>be(e,t,a)))})}))),be=({label:e,description:t},a,i)=>n("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e&&r("h5",{className:"text-xl font-medium m-0 "+(i?"text-white":""),children:e}),t&&r("div",{className:"text-sm opacity-80 "+(i?"text-white":"text-secondary-text"),children:t})]},String(a)),ge=a((({children:e})=>r("div",{className:"self-start flex flex-col",role:"row",children:r("div",{className:"flex",children:e})}))),ve=a((({row:{header:e,data:t},activeCardIndex:a,isColoredFirstColumn:i,isFirstRow:l,isLastRow:s})=>n(ge,{children:[e?.title?r("div",{className:`text-sm py-7 ${me} w-[200px] mr-6 ${s?"":"border-solid"}`,children:e.title}):null,t?.length?r(pe,{activeCardIndex:a,columnWidth:336,children:t.map(((e,t)=>r(fe,{cell:e,isFirstRow:l,isLastRow:s,isFillGradient:i&&0===t},String(t))))}):null]}))),Ne=a((({className:e,context:t,title:a,rowHeaders:i,columns:l,visibleRowLength:c=0,isColoredFirstColumn:o=!1})=>{const d=t.useRouter(),{handlerDecorator:m}=t,[h,x]=t.useState(0),[u,p]=t.useState(!c),f=l?.map((({header:e})=>e||{})),b=l?.map((({data:e})=>e))||[],g=i?.map(((e,t)=>({header:e,data:b.map((e=>e?.[t]||[{}]))}))).slice(0,u?i.length:c),{nextClick:v,prevClick:N,isScrollAvailable:w,showNextButton:k,showPrevButton:$}=ie({colData:b,colsLengthForScroll:2,activeCardIndex:h,setActiveCardIndex:x});return n("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center mb-9 mx-auto",children:a}),n("div",{role:"table",children:[f?.length?n(ge,{children:[r("div",{className:he,role:"columnheader",scope:"col"}),r(pe,{activeCardIndex:h,columnWidth:336,children:f.map(((e,t)=>r(xe,{...e,link:e.link&&y({router:d,handlerDecorator:m},e.link)},String(t))))})]}):null,g?.length?n("div",{className:"relative",children:[g.map(((e,t,{length:n})=>r(ve,{row:e,isFirstRow:0===t,isLastRow:t+1===n,activeCardIndex:h,isColoredFirstColumn:o},String(t)))),w?r("div",{children:n("div",{className:"absolute top-7 right-7 z-10",children:[r(ce,{onClick:v,disabled:!k,ariaLabel:"Пролистать вправо"}),r(ce,{className:"mt-4 rotate-180",onClick:N,disabled:!$,ariaLabel:"Пролистать влево"})]})}):null]}):null]}),w?r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null,c?r("div",{className:"pr-[50px]",children:n("div",{className:"flex w-full",children:[r("div",{className:he}),r("button",{onClick:()=>p(!u),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:r("div",{className:"font-sans font-medium text-xs py-[11px]",children:u?"Скрыть":"Показать все параметры"})})]})}):null]})}));function ye(e,t){const{data:r}=e(we(t),(()=>async function(e){const t=await fetch(we(e));return await t.json()}(t)));return r||{}}function we(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}const ke=[{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"}],$e=a((({text:e,checked:t,onChange:a,className:i})=>r("div",{className:i,children:n("label",{className:"flex items-center cursor-pointer relative",children:[r("input",{className:`peer appearance-none w-5 h-5 border-solid border ${t?"border-black":"border-main-stroke"} rounded checked:bg-primary-main checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{a(e.target.checked)},checked:t}),r(le,{paths:ke,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?r("span",{className:"font-sans ml-3 text-sm leading-5 cursor-pointer",children:e}):null]})}))),Se=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Ce=a((({className:e,title:t,items:a=[],min:i=1,max:l=100,step:s=1,value:c=i,onChange:o})=>{const d=e=>{if(!o)return;const t=Number(e.replace(/\D/g,""));o(t)},m={backgroundSize:`${(100*(c-i)/(l-i)).toFixed(2)}% 100%`};return n("div",{className:e,children:[n("label",{className:"block relative",children:[t?r("span",{className:"absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5",children:t}):null,r("input",{className:"m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 m-0 box-border text-primary-text "+(t?"pt-4":""),value:Se(c),onChange:e=>d(e.target.value),onBlur:()=>{o&&(c<i&&o(i),c>l&&o(l))}}),r("div",{className:"absolute inset-x-0 top-8 px-4",children:r("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:i,max:l,step:s,value:c,onChange:e=>d(e.target.value),style:m})})]}),r("div",{className:"flex justify-between my-3",children:a.map(((e,t)=>r("span",{className:"text-xs leading-[14px] text-secondary-text pl-4",children:e},String(t))))})]})})),Le=(e,t,r)=>Math.max(t,Math.min(e,r)),De=3e4,je=3e6,_e=Math.round(41.5),Re=a((({context:e,className:t,directoryName:a})=>{const[i,l]=e.useState(void 0),[s,c]=e.useState(void 0),[o,d]=e.useState(!0),[m,h]=e.useState(!0),x=(e=>{const{tableRows:t,isAnnuity:r=!1}=e;return t&&t.find((e=>e.isAnnuity===r))||{}})({tableRows:ye(e.useAsyncData,a).rows,isAnnuity:o}),u=x.maxSum&&x.minSum?(x.maxSum-x.minSum)/2:1485e3,p=x.maxMonths&&x.minMonths?Math.round((x.maxMonths-x.minMonths)/2):_e,f=x?.minSum||De,b=x?.maxSum||je,g=x?.minMonths||1,v=x?.maxMonths||84,N=(e=>{const{calculatorParams:t,isInsurance:r}=e;return t?r?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:x,isInsurance:m}),y=(e=>{const{calculatorParams:t,paymentType:r,rate:n,sum:a,months:i}=e;if(!t)return 0;const l=Le(a,t.minSum||De,t.maxSum||je);if("annuity"===r){const e=Number(n)/1200;return l*(e+e/(Math.pow(1+e,i)-1))}return l/i+l*(Number(n)/12)})({calculatorParams:x,paymentType:"annuity",rate:N,sum:i||u,months:s||p}),w=((e,t)=>{const r=Math.ceil((t-e)/12),n=Math.floor(e/12)+1,a=new Array(Math.min(r-1,5)).fill(0).map(((e,t)=>n+t)),i=r+n-1;return a.concat(i)})(g,v);function k(e){c(Le(12*e,g,v))}return r("section",{className:`font-sans text-primary-text bg-white p-4 w-[847px] ${t||""}`,children:n("div",{className:"box-border p-[49px] pr-[53px] flex flex-col justify-between border-solid border-[3px] border-primary-main rounded-md",children:[n("div",{className:"flex justify-between ",children:[n("div",{className:"grow mr-[42px] w-[465px]",children:[r(Ce,{title:"Желаемая сумма кредита, ₽",items:[`От ${Se(f)} рублей`,`До ${Se(b)} рублей`],min:f,max:b,step:1e3,value:i||u,onChange:l}),r(Ce,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:g,max:v,step:1,value:s||p,onChange:c}),r("div",{className:"flex mb-7",children:w.map(((e,t)=>function(e,t,a){return r("button",{className:"bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none",onClick:()=>a(e),children:n("span",{className:"font-semibold text-sm",children:[e," ",1===e?"год":e>4?"лет":"года"]})},String(t))}(e,t,k)))}),r($e,{text:"Получаю пенсию на карту Россельхозбанка",checked:o,onChange:d}),r($e,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:m,onChange:h})]}),n("div",{className:"basis-[226px] shrink-0 box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[r("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),r("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),n("div",{className:"text-lg mb-3",children:[Se(Math.round(y))," ₽"]}),r("div",{className:"text-sm opacity-60",children:"Ставка"}),n("div",{className:"text-lg",children:[N," %"]})]})]}),n("div",{className:"flex items-center",children:[r(D,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),r("div",{className:"w-80 text-xxs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})}));const Ie={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Te=a((e=>{const{children:t,className:n,version:a="primary"}=e;return r("section",{className:`font-sans p-9 box-border ${n||""} ${Ie[a]} ${Me(n)} ${Ae(n)} `,children:r(B,{...e,children:t})})}));function Me(e=""){const t=I(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}function Ae(e=""){const t=I(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Be="https://www.cbr-xml-daily.ru/daily_json.js",Pe=["USD","EUR"],Oe={USD:"DollarIcon",EUR:"EuroIcon"},Fe=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],He=a((({className:e,context:t,title:a})=>{const{data:i}=t.useAsyncData(Be,ze);return r(Te,{className:e,context:t,title:a||"Курсы обмена валют",buttons:Fe,children:n("table",{children:[r("thead",{children:n("tr",{children:[r(Ve,{children:"Валюта"}),r(Ve,{className:"pl-11",children:"Курс"})]})}),r("tbody",{children:Pe.map((e=>{const t=(i?.Valute||{})[e]?.Value;return n("tr",{children:[r(Ze,{className:"pt-4",children:n("div",{className:"flex items-center",children:[r(d,{name:Oe[e],width:"24",height:"24"}),r("span",{className:"ml-2",children:e})]})}),r(Ze,{className:"pt-4 pl-11",children:Ge(t)})]},e)}))})]})})})),Ve=a((({className:e="",children:t})=>r("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),Ze=a((({className:e="",children:t})=>r("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function ze(){const e=await fetch(Be);return await e.json()}const Ee=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Ge=e=>e?Ee.format(e):"",We=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],Ue=a((({className:e,href:t,children:a,targetBlank:i})=>n("a",{className:`inline-flex items-center font-sans no-underline ${e||""}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self",children:[r(le,{className:"text-primary-main w-10",viewBox:"0 0 40 45",paths:We.map((e=>({d:e})))}),r("span",{className:"text-black text-base font-medium ml-2.5",children:a||"Россельхозбанк"})]}))),Je=a((({className:e,context:t})=>{const{term:a,setTerm:i}=t.useSearch(),[l,s]=t.useState(!1);return n("form",{className:`relative ${e||""}`,children:[n("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[r("div",{className:"w-[24px] h-[24px]",children:r(d,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&r("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-base text-secondary-text",children:"Поиск по сайту"})]}),r("input",{id:"search-bar-input",className:(l?"border-primary-text":"border-main-divider")+" h-12 pl-12 w-full font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%]",value:a,onChange:e=>i(e.target.value),onFocus:e=>s(!0),onBlur:e=>s(!1),type:"text",name:"search-bar-input"}),l&&r("button",{type:"submit",className:"absolute font-sans font-normal cursor-pointer text-sm bg-primary-main hover:bg-primary-hover active:bg-primary-active border-none px-9 py-[9px] rounded top-1 right-1 outline-none text-secondary-text text-white",onClick:e=>{e.preventDefault(),console.log("click")},children:"Найти"})]})})),Xe=a((({className:e,items:t,hasButton:a,context:i})=>{const l=i.useRouter(),{handlerDecorator:s}=i;return n("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(Qe):null,a?r(D,{version:"primary",className:"my-4",...y({router:l,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Qe=(e,t)=>{const{type:a,text:i,description:l}=e;return n("div",{className:"mb-4",children:[r("div",{children:qe(a,i)}),r("div",{className:"font-sans text-sm text-secondary-text",children:l})]},String(t))},qe=(e,t="")=>{switch(e){case"tel":return r("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${Ke(t)}`,children:t});case"email":return r("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return r("span",{children:t})}},Ke=e=>e.replaceAll(/\D/g,""),Ye=a((({className:e,links:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:i}=n;return r("div",{className:`${e||""}`,children:t?.length?r("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)=>r(et,{index:t,...y({router:a,handlerDecorator:i},e)},String(t))))}):null})})),et=a((({className:e,index:t,text:n,href:a,target:i,onClick:l})=>r("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:n||`Документ ${t}`})));function tt(e){const{data:t}=e(nt(),rt);return t||{}}async function rt(){const e=await fetch(nt());return await e.json()}function nt(){return`/wcms-resources/${o.SITEMAP||"sitemap"}.json`}const at=e=>t=>e?.href===t?.href;function it(e,t){return(n=e,a=t,(n||[]).map((e=>a?.find(at(e))||e))).concat((r=e,(t||[]).filter((e=>!r?.find(at(e))))));var r,n,a}const lt=a((({className:e,items:t,context:n})=>{const a=it(tt(n.useAsyncData).topItems,t),i={router:n.useRouter(),handlerDecorator:n.handlerDecorator};return r("div",{className:`flex items-start justify-start gap-11 xl:gap-5 ${e||""}`,children:a?.map(((e,t)=>st(e,t,i)))})})),st=(e,t,{router:a,handlerDecorator:i})=>{const{text:l,href:s,items:c,target:o}=e;return n("div",{className:"flex flex-col gap-[14px]",children:[r("a",{className:"block font-sans font-medium text-base text-primary-text no-underline",href:s,target:o||"_self",children:l||`Раздел ${t}`}),c?.map(((e,t)=>r(ct,{...y({router:a,handlerDecorator:i},e)},String(t))))]},String(t))},ct=a((({text:e,href:t,target:n,index:a})=>r("a",{className:"block font-sans font-normal text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:n||"_self",children:e||`Раздел ${a}`}))),ot=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],dt=a((({className:e,media:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:i}=n;return r("div",{className:`flex items-end justify-end gap-2 pt-[30px] pb-7 ${e||""}`,children:t?.map(((e,t)=>r(mt,{...y({router:a,handlerDecorator:i},e)},String(t))))})})),mt=a((({href:e})=>{const{icon:t,label:n,width:a,height:i}=ot.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?r("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main",href:e,target:"_blank",rel:"noopener noreferrer",children:d&&r(d,{name:t,width:a,height:i,asSVG:!0,className:"block"})}):null})),ht=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return n("div",{className:`${e||""}`,children:[r("div",{className:"pt-5 pb-[5px]",children:r("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?r("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>r(xt,{index:t,...y({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),xt=a((({className:e,index:t,text:n,href:a,target:i,onClick:l})=>r("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:n||`Документ ${t}`}))),ut=a((({className:e,documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,topItems:s,context:c})=>n("footer",{className:`px-9 py-10 bg-white ${e||""}`,children:[n("div",{className:"flex items-stretch gap-[54px] pb-8 xl:gap-8",children:[r(Ue,{className:"w-[280px] xl:w-[220px]"}),r(Je,{context:c,className:"grow"})]}),n("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[r(Xe,{className:"w-[280px] shrink-0 overflow-hidden xl:w-[220px]",items:i,context:c,hasButton:!0}),r(lt,{className:"pt-[3px]",context:c,items:s})]}),r(dt,{media:l,context:c}),r(Ye,{links:a,context:c}),r(ht,{links:t,context:c})]}))),pt={primary:"text-secondary-text",secondary:""},ft={normal:3,mini:4},bt={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},gt={normal:380,mini:276},vt=a((({title:e,description:t,image:a,items:i,button:l,version:s})=>{const c=pt[s??"primary"];return n("div",{children:[n("div",{children:[a?.src?r("div",{className:"flex justify-center",children:r(_,{className:"mb-6",image:a})}):null,e&&Nt(e,t,i),t&&r("div",{className:`font-normal text-sm mt-2 ${c}`,children:t}),i?.length?r("section",{className:`max-w-[308px] mt-2 ${c}`,role:"list",children:i.map(((e,t)=>function(e,t,n){return r($,{version:n??"primary",children:r("span",{className:"text-sm",children:e})},String(t))}(e,t,s)))}):null]}),l?.href&&r(D,{className:"mt-6",...l})]})}));function Nt(e,t,n){return r("div",{className:"font-medium text-xl m-0 "+(t||n?.length?"":"text-center"),children:e})}const yt=a((({context:e,title:t,description:a,cards:i=[],version:l="normal",activeCardIndex:c})=>n("div",{children:[r("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),n("div",{className:"flex flex-col items-center mb-8",children:[t?r(s,{className:"font-medium m-0 text-center",children:t}):null,a?r("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:a}):null]}),r("div",{className:`flex ${i?.length<=ft[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*gt[l]}px)`},role:"list",children:i?.map(((t,n)=>function({card:e,version:t,context:n},a){return r(Te,{context:n,className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${bt[t]} w-full col-span-4`,version:e.version,children:r(vt,{...e})},String(a))}({card:t,version:l,context:e},n)))})]})));const wt=a((({context:e,cards:t=[],className:a,version:i="normal",...l})=>{const[s,c]=e.useState(0),o=t?.length>ft[i],d=o&&t?.length-s>ft[i],m=o&&s>0;return n("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${a}`,children:[r(yt,{context:e,cards:t,version:i,activeCardIndex:s,...l}),m&&r(ce,{className:"absolute top-1/2 left-8 rotate-180",onClick:()=>c(s-1),ariaLabel:"Пролистать влево"}),d&&r(ce,{className:"absolute top-1/2 right-1 z-10",onClick:()=>c(s+1),ariaLabel:"Пролистать вправо"}),r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"})]})})),kt=a((e=>r(wt,{...e,version:"normal"}))),$t=a((({className:e,text:t,href:a,target:i,active:l,onClick:s,children:c})=>n("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:s,children:[r("span",{className:`font-sans font-normal text-base ${l?"text-primary-main":"text-primary-text hover:text-primary-main"}`,children:t||c}),l?r("div",{className:"absolute left-0 -bottom-2 w-full h-[2px] bg-primary-main"}):null]}))),St=a((({className:e,text:t,href:n,target:a,active:i,flat:l,onClick:s,children:c,ariaLabel:o})=>r("a",{className:`inline-block border border-solid bg-transparent text-center no-underline ${l?"":"px-4 py-2"} ${i?"border-primary-main rounded-md":"border-transparent"} ${e||""}`,href:n,target:a,onClick:s,rel:"noopener noreferrer","aria-label":o,children:r("span",{className:`font-sans font-normal text-sm ${i?"text-primary-main":(l?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"}`,children:t||c})}))),Ct=a((({className:e,children:t,ariaLabel:n})=>r("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e||""}`,disabled:!0,"aria-label":n,children:t}))),Lt=a((({context:e,className:t,defaultLocation:a=""})=>{const[i,l]=e.useGeolocation(a);return n("div",{className:`flex items-center ${t||""}`,children:[r(St,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:l}),r(St,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов"}),r(Ct,{className:"mr-5 text-primary-text hover:text-primary-main",ariaLabel:"Поиск по сайту",children:r(d,{name:"LoupeIcon","aria-hidden":"true",className:"h-full",asSVG:!0})}),r(Ct,{className:"mr-5 text-primary-text hover:text-primary-main",ariaLabel:"Профиль",children:r(d,{name:"ProfileIcon","aria-hidden":"true",className:"h-full",asSVG:!0})}),r(Ct,{className:"min-w-[32px] min-h-[32px] fill-secondary-light hover:fill-secondary-hover",ariaLabel:"Дополнительные ссылки",children:r(d,{name:"GridIcon","aria-hidden":"true",className:"h-full",asSVG:!0})})]})}));const Dt=a((({className:e,defaultLocation:t,context:a,topItems:i})=>{const l=a.useRouter(),s=tt(a.useAsyncData),{handlerDecorator:c}=a,o=it(s.topItems,i),d=o.find(function(e){return t=>x(t.href,e,((e,t)=>t.startsWith(e)))}(l)),m=d?.items,h=m?.find(function(e){return t=>x(t.href,e)}(l)),u=o.map(((e,t)=>r(St,{active:e===d,...y({router:l,handlerDecorator:c},e),ariaLabel:e.text},String(t)))),p=m?.map((e=>r($t,{className:"mr-8",active:e===h,...y({router:l,handlerDecorator:c},e)},e.href)));return r("header",{className:`pt-5 pb-8 px-20 bg-white ${e||""}`,children:n("div",{className:"container",children:[n("div",{className:"flex items-center",children:[r(Ue,{className:"mr-8"}),u,r(Lt,{context:a,className:"ml-auto",defaultLocation:t})]}),r("div",{className:"mt-5 h-[1px] bg-main-divider"}),r("nav",{className:"mt-5",children:p})]})})})),jt=a((e=>r(wt,{...e,version:"mini"}))),_t=a((({className:e,context:t,title:a="Мобильное приложение",qr:i,buttons:l=[]})=>r(Te,{className:e,context:t,title:a,buttons:l,children:n("div",{className:"flex items-center",children:[i?.src&&i?.href&&r("a",{href:i.href,target:"_blank",children:r("img",{src:i.src,alt:a,title:a,width:"164",height:"164",className:"w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light"})}),r("span",{className:"font-normal text-sm text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})}))),Rt=a((({className:e,context:t,title:n})=>r(Te,{className:e,context:t,title:n,description:"Блок в разработке...",children:r("figure",{className:"m-0 min-w-[600px]",children:It()})}))),It=(e=3)=>Mt(100,e).map((e=>Math.floor(e))).map(Tt),Tt=(e=100,t)=>r("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Mt=(e,t)=>[e].concat(t>0?Mt(e/1.618,t-1):[]),At=a((({text:e,href:t,target:n,onClick:a,className:i,children:l})=>t?r("a",{className:`no-underline ${i||""}`,href:t,target:n,onClick:a,children:r("span",{className:`${i||""}`,children:e||l})}):r("span",{className:`${i||""}`,children:e||l})));function Bt(e){return t=>t.reduce(((t,r,n)=>t.length?t.concat({...e,key:n},r):[r]),[])}const Pt={primary:"bg-main",secondary:"bg-white/30"},Ot={primary:"text-primary-text",secondary:"text-white"},Ft={primary:"text-secondary-text",secondary:"text-white"},Ht=a((({className:e,context:t,title:a,titleSize:i,description:l,benefits:s,buttons:c,image:o,items:m,version:h="primary"})=>n("div",{className:`flex grow justify-between items-stretch ${e||""}`,children:[r("div",{className:"flex flex-col",children:r(B,{context:t,title:a,titleSize:i||"XL",description:l,items:m,buttons:c,version:h,children:s?.length?r("div",{className:"flex gap-6 mt-6 mb-3.5",children:s.map(((e,t)=>function(e,t,a){return n("div",{className:"flex gap-4 items-center",children:[e.icon&&r(d,{className:`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${Pt[a]}`,name:e.icon,width:"24",height:"24"}),n("div",{className:"flex gap-1 flex-col h-full max-w-[149px]",children:[r("h4",{className:`font-medium text-xl m-0 ${Ot[a]}`,children:e.label}),e.description&&r("div",{className:`font-normal text-sm ${Ft[a]}`,children:e.description})]})]},String(t))}(e,t,h)))}):null})}),o?.src&&r(_,{className:"mt-auto",image:o})]})));const Vt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Zt={primary:"text-secondary-text",secondary:"text-white/80"},zt=a((e=>{const{context:t,className:a,breadcrumbs:i,version:l="primary"}=e,s=t.useRouter(),{handlerDecorator:c}=t;return n("section",{className:`font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${a||""} ${Vt[l]}`,children:[i?.length?r("div",{className:"text-xs mb-6",children:Bt(r("span",{className:`mx-2 ${Zt[l]}`,children:"/"}))(i.map(((e,t)=>r(At,{...y({router:s,handlerDecorator:c},{className:Zt[l],...e})},String(t)))))}):null,r(Ht,{...e})]})})),Et=a((({className:e,context:t,duration:a=0,slides:i=[]})=>{const l=i.map((e=>e.nav)),s=i.map((e=>e.productBlock)),[c,o]=t.useState(0);return n("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[r("div",{className:"flex duration-1000",style:{transform:`translateX(-${c}00%)`},role:"list",children:s.map(((e,n)=>function(e,t,n){return r("section",{className:"flex grow-0 shrink-0 basis-full",role:"listitem",children:r("div",{className:"p-10 flex grow",children:r(Ht,{className:"pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]",context:n,...e})})},String(t))}(e,n,t)))}),r("div",{className:"flex",children:l.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:a,onClick:i,duration:l}){const s=t===a,c=s?"animate-slide":"";return n("button",{type:"button",onClick:i,className:"font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-5 grow basis-0",children:[n("div",{className:"border-0 border-r border-solid border-main-divider px-6",children:[r("div",{className:"text-sm font-medium pb-1 group-hover:text-primary-text "+(s?"text-primary-text":"text-secondary-text"),children:e?.title}),r("div",{className:"text-xs text-secondary-text pb-[2px]",children:e.desc})]}),r("div",{className:`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${c}`,style:{animationDuration:`${l}s`,animationFillMode:"forwards"}})]},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>o(t),duration:a})))})]})}));const Gt=a((e=>{const{benefits:t,version:a}=e;return r(Te,{...e,children:n("div",{className:"flex mt-5 mb-1",children:[t?.length?r("div",{className:"mr-8",children:t.map(Wt)}):null,t?.length?r("div",{className:"pt-1",children:t.map(((e,t)=>function(e,t,n="primary"){return r("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[n]}`,children:e.label},String(t))}(e,t,a)))}):null]})})}));function Wt(e,t){return r("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.description},String(t))}const Ut=a((({className:e,context:t,title:a="Акции и спецпредложения",date:i,description:l,buttons:s=[],version:c})=>r(Te,{className:e,context:t,title:a,buttons:s,version:c,children:n("div",{className:"mt-1.5",children:[i&&r("div",{className:"text-sm mb-2",children:Jt(i)}),r("div",{className:"text-base",children:l})]})})));function Jt(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Xt=a((({className:e,title:t,steps:a})=>n("section",{className:`font-sans text-primary-text bg-white px-12 py-12 flex flex-col items-center ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center",children:t}),a?.length?n("div",{children:[r("div",{className:"flex mt-9 items-center px-[88px]",children:Bt(r("div",{className:"h-0.5 w-full bg-secondary-light"}))(a.map(((e,t)=>Qt(e,t))))}),r("div",{className:"flex mt-9 justify-between gap-x-24",children:a.map(qt)})]}):null]}))),Qt=(e,t)=>r("div",{className:"flex flex-col items-center text-center relative",children:r("div",{className:"h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10",children:e.icon&&r(d,{name:e.icon,width:"48",height:"48"})||r("span",{className:"font-medium text-title-sm text-secondary-text",children:t+1})})},String(t)),qt=(e,t)=>r("div",{className:"flex flex-col items-center text-center relative w-[276px]",children:n("div",{className:"max-w-min",children:[r("h5",{className:"font-medium text-xl m-0 mt-4 whitespace-nowrap px-3",children:e.label}),e.description&&r("div",{className:"font-normal text-sm text-secondary-text mt-2",children:e.description})]})},String(t)),Kt="border-main-divider border border-t-0 border-x-0",Yt=a((({cell:e,isLastRow:t})=>r("div",{className:"first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(t?"border-t-0 rounded-b-md":""),role:"cell",children:r("div",{className:`h-full ${Kt}`,children:e.map(((e,t)=>er(e,t)))})}))),er=({label:e,description:t,list:a,image:i,buttons:l},s)=>n("div",{className:"first:pt-5 last:pb-5",children:[s>0&&r("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e&&r("div",{className:"text-xl font-medium m-0",children:e}),t&&r("div",{className:"text-sm text-secondary-text",children:t}),a?.items?.length?r("div",{className:"flex flex-col justify-between items-start",children:r("div",{role:"list",children:a.items.map(((e,t)=>r($,{text:e,version:a.version??"secondary",isDotted:a.isDotted??!0},String(t))))})}):null,i&&r(_,{image:i}),l?.length?l.map((({icon:e,...t},n)=>r(D,{className:(n>0?"ml-3":"")+" w-12 h-12",appendLeft:e&&r(d,{name:e,width:"24px",height:"24px"}),...t},String(n)))):null]},String(s)),tr=a((({row:{header:e,data:t},activeCardIndex:a,isLastRow:i})=>n(ge,{children:[r("div",{className:`text-sm py-5 w-[354px] flex-shrink-0 ${Kt} ${i?"":"border-solid"}`,children:n("div",{className:"flex items-center text-primary-text",children:[e?.icon&&r(d,{className:"pr-[14px]",name:e.icon,width:"24px",height:"24px"}),e?.title]})}),t?.length?r(pe,{activeCardIndex:a,columnWidth:360,version:"tariff",children:t.map(((e,t)=>r(Yt,{cell:e,isLastRow:i},String(t))))}):null]}))),rr=a((({className:e,context:t,title:a,rowHeaders:i,columns:l})=>{const[c,o]=t.useState(0),d=l?.map((({data:e})=>e))||[],m=i?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))),{nextClick:h,prevClick:x,isScrollAvailable:u,showNextButton:p,showPrevButton:f}=ie({colData:d,colsLengthForScroll:2,activeCardIndex:c,setActiveCardIndex:o});return n("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center mb-9 mx-auto",children:a}),n("div",{role:"table",children:[m?.length?n("div",{className:"relative",children:[m.map(((e,t,{length:n})=>r(tr,{row:e,isLastRow:t+1===n,activeCardIndex:c},String(t)))),u?r("div",{children:n("div",{className:"absolute top-7 right-7 z-10",children:[r(ce,{onClick:h,disabled:!p,ariaLabel:"Пролистать вправо"}),r(ce,{className:"mt-4 rotate-180",onClick:x,disabled:!f,ariaLabel:"Пролистать влево"})]})}):null]}):null,u?r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})]})})),nr={Accordion:re,BenefitsBlock:ne,ComparisonTable:Ne,CreditCalculator:Re,ExchangeRateTile:He,Footer:ut,Gallery:kt,Header:Dt,Headline:F,LinkDocs:z,MiniGallery:jt,MobileAppTile:_t,PictureText:W,Placeholder:Rt,ProductBlock:zt,ProductGallery:Et,ProductTile:Gt,PromoTile:Ut,StepsBlock:Xt,TariffsTable:rr,TextBlock:X,Tile:Te},ar=a((({className:e,onClick:t,ariaLabel:n})=>r("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:ir()}))),ir=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r("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"}),r("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"})]})},lr=a((({className:e,context:t})=>{const a=t.useLikeService();return n("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:[r(ar,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),r(ar,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),r("span",{className:"select-none",children:a.likeCount})]})})),sr=({blockClassName:e,block:t,render:r})=>r({blockClassName:e,block:t}),cr=a((({className:e,context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:d=sr})=>{const{header:m}=s;return n("section",{className:`relative ${dr(i)} ${e||""}`,"data-theme":o,children:[m?.blocks?.length?r("div",{className:`${dr(m?.style)}`,children:m.blocks.map(((e,r)=>or({block:e,blockDecorator:d,blocksRegistry:a,context:t},r)))}):null,l?.length?r("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,r)=>or({block:e,blockDecorator:d,blocksRegistry:a,context:t},r)))}):null,c&&r("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:r(lr,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function or({block:e,blockDecorator:t,blocksRegistry:n,context:a},i){const{type:l}=e;l in n||console.warn(`No block with "${l}" is registered`);const s=n[l]||Rt;return t({blockClassName:dr(e.style),block:e,render:e=>{const{version:c,content:o,blocks:d}=e.block;return r(s,{className:e.blockClassName,version:c,context:a,...o,children:d?.length?d.map(((e,r)=>or({block:e,blockDecorator:t,blocksRegistry:n,context:a},r))):null},`${l}-${i}`)}},`block-${i}`)}function dr(e){return e?e.join(" "):""}const mr=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,description:l,keywords:s,robots:c,og:o}=t;return n(e,{children:[r("title",{children:i}),r("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),l&&r("meta",{name:"description",content:l}),s&&r("meta",{name:"keywords",content:s.join(",")}),c&&r("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>r("meta",{name:`og:${e}`,content:t},e))):null,a]})}));function hr(e){return e?.filter((({mobile:e})=>!e?.hidden)).map(xr)}function xr(e){const{mobile:t}=e;return t?{...e,style:t.style?.length?t.style:e.style}:e}const ur=a((({className:e,context:t})=>r("footer",{className:`${e} px-9 py-2 bg-white rounded-bl-3xl rounded-br-3xl`,children:r(ht,{context:t})}))),pr=a((({title:e,description:t,cards:a=[],className:i})=>n("section",{className:`relative font-sans text-primary-text bg-white p-4 overflow-hidden ${i}`,children:[n("div",{className:"flex flex-col items-center mb-8",children:[r(s,{className:"font-medium m-0 text-centers",children:e}),t?r("div",{className:"font-normal text-base max-w-[600px] mt-3",children:t}):null]}),r("div",{className:"horizontal-list no-scrollbar",role:"list",children:a?.map(fr)})]})));function fr(e,t){return n("div",{className:"box-border horizontal-list-item border-solid border rounded-md border-main-divider p-4 mx-1 flex flex-col justify-between items-stretch",role:"listitem",children:[n("div",{children:[e.image?.src?r("div",{className:"flex justify-center",children:r(_,{className:"mb-6",image:e.image})}):null,e.title?r("h4",{className:"font-medium text-xl m-0 "+(e.description||e.items?.length?"":"text-center"),children:e.title}):null,e.description?r("div",{className:"font-normal text-sm text-secondary-text mt-2",children:e.description}):null,e.items?.length?br(e.items):null]}),e?.button?.href?r(D,{className:"mt-6",...e.button}):null]},t)}function br(e=[]){return r("section",{className:"max-w-[308px] mt-2",role:"list",children:e.map(((e,t)=>r($,{children:r("span",{className:"text-sm text-secondary-text",children:e})},String(t))))})}const gr=a((({titleSize:e,image:t,benefits:n,...a})=>{const{className:i}=a;return r("section",{className:`font-sans bg-white pt-10 pl-[50px] pb-[50px] pr-[7.5rem] ${i||""}`,children:r(Ht,{...a,titleSize:"L"})})})),vr={ExchangeRateTile:He,Footer:ur,Gallery:pr,Header:Dt,Headline:F,MobileAppTile:_t,PictureText:W,Placeholder:Rt,ProductBlock:gr,ProductTile:Gt,TextBlock:X,Tile:Te};e.Blocks=nr,e.ContentPage=cr,e.ContentPageHead=mr,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),r=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await r.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=function(e,t=""){async function r(){try{const e=JSON.parse(globalThis.localStorage.getItem(i)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:r,name:n}=await e.json();return globalThis.localStorage.setItem(i,JSON.stringify({token:r,name:n})),{token:r,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...n){if(!n.length)return[];const{token:a}=await r();try{const r=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:n})}),{likes:i}=await r.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(n){if(!n)return 0;const{token:a,name:i}=await r();try{const r=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:n,user_name:i})}),{likes:l}=await r.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(n){if(!n)return 0;const{token:a,name:i}=await r();try{const r=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:n,user_name:i})}),{likes:l}=await r.json();return l||0}catch(e){return console.error(e),0}}}},e.MobileBlocks=vr,e.joinList=Bt,e.projectSettings=o,e.setup=t,e.toMobilePage=function(e){const{blocks:t,slots:r}=e;return{...e,blocks:hr(t),slots:r&&Object.keys(r).reduce(((e,t)=>({...e,[t]:{...r[t],blocks:hr(r[t].blocks)}})),{})}},e.url=v,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";const t=(e,r)=>{t._jsx=e,t._jsxs=r||e};t.vue=e=>{t(((t,{children:r,dangerouslySetInnerHTML:n,...a}={})=>{const i=Object.assign({},a,n?{innerHTML:n.__html}:{});return e(t,i,"string"!=typeof t?()=>r:r)}))};const r=(...e)=>t._jsx(...e),n=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,r){const{children:n,...a}=t||{},i=r?.slots?.default,l=n||i&&i();return e(Object.assign(a,l&&{children:l}),r)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";var l;!function(e){e.XL="text-title-lg",e.L="text-title",e.M="text-title-sm",e.S="text-title-xs"}(l||(l={}));const s=a((({size:e="L",className:t,children:n,...a})=>r("XL"===e?"h1":"h2",{className:c(l[e],t),...a,children:n}))),c=(...e)=>e.filter(Boolean).join(" "),o=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},d=a((({className:e="",name:t,alt:a=`Icon ${t}`,title:i=a,asSVG:l,...s})=>{const c=`${o.CDN||""}icons/${t}.svg`;return l?n("svg",{className:e,...s,"aria-hidden":"true",children:[i?r("title",{children:i}):null,a?r("desc",{children:a}):null,r("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]}):r("img",{className:e,src:c,alt:a,title:i,...s,"aria-hidden":"true"})})),m={left:"text-left",center:"text-center",right:"text-right"},h=a((({bgColor:e="transparent",align:t="left",className:a,title:i,description:l})=>{const c=m[t];return n("section",{className:`p-[50px] ${e} ${a||""} `,children:[i&&r(s,{size:"L",className:`text-primary-text mt-0 font-medium ${c}`,children:i}),l&&r("p",{className:`font-normal text-base mt-4 ${c}`,children:l})]})})),x={left:"text-left",center:"text-center",right:"text-right"},u={double:"mb-8",single:"mb-[26px]"},p={double:"gap-x-5 gap-y-[26px] flex-wrap",single:"gap-3.5 flex-col"},f=a((({className:e,title:t,align:a,documents:i,icon:l,columnsMode:c="double"})=>{const o=p[c];return n("section",{className:`font-sans p-[50px] bg-white ${e}`,children:[t&&r(s,{className:`font-medium mt-0 ${u[c]} ${x[a??"center"]}`,children:t}),r("div",{className:`flex ${o}`,role:"list",children:i?.length?i.map((({text:e,fileSize:t,...a},i)=>n("a",{className:"group flex text-sm align-middle h-fit\n text-primary-text no-underline hover:text-primary-main\n "+("double"===c?"basis-[calc(50%-20px)]":""),role:"listitem",...a,children:[l&&r(d,{className:"mr-2.5 h-fit",name:l,width:"24px",height:"24px"}),n("span",{className:"self-center",children:[e,r("span",{className:"text-secondary-text group-hover:text-primary-main",children:a?.href&&g(b(a.href),t)})]})]},String(i)))):null})]})})),b=e=>{if(!e)return"";const t=e.split(".").pop();return!t||t.includes("/")?"":t},g=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),v=a((({className:e,image:{size:t,...a}})=>{const i={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return n("picture",{className:`flex-none ${e||""}`,children:[a.sources?.length?a.sources.map((({src:e,format:t},n)=>r("source",{srcSet:e,type:N(t)},`${n}_${e}`))):null,r("img",{src:a.src,alt:a.alt||a.title,title:a.title,style:i,...t})]})}));function N(e){return e?`image/${String(e)}`:void 0}const y=a((({className:e,title:t,image:a,benefits:i})=>n("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[r(s,{className:"font-medium m-0 text-center",children:t}),n("div",{className:"flex justify-center mt-9",children:[a?.src&&r(v,{className:"mr-6",image:a}),i?.length?r("div",{className:"flex flex-col",children:i.map(w)}):null]})]})));function w(e,t){return n("div",{className:"flex flex-row mb-8",children:[e.icon&&r(d,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48"}),n("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&r("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&r("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const k={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"}},$=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:s})=>{const c=k[a];return n("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,children:[i&&"small"===i?S(c.icon):null,i&&"big"===i?C(l):null,n("div",{className:"py-0.5",children:[e&&r("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}),t&&r("div",{className:`text-sm ${c.description}`,children:t})]})]})}));function S(e){return r("div",{className:"pt-1.5 pl-1 pr-4",children:r("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function C(e){return e?.src?r(v,{className:"pt-0.5 pr-3",image:e}):null}const L={Headline:h,LinkDocs:f,TextBlock:$,PictureText:y},D=a((({label:e,blocks:t,context:a})=>{const[i,l]=a.useState(!1),s=t?.length,c=i?"MinusIcon":"PlusIcon";return n("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[n("button",{className:"border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans text-primary-text\n "+(s?"group cursor-pointer":""),onClick:e=>{if(!s)return;l(!i);const t=_(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`},children:[r("span",{className:"m-0 text-xl pr-2.5 font-medium "+(s?"group-hover:text-primary-main":""),children:e}),s?r(d,{name:c,width:"24",height:"24"}):null]}),s?r("div",{className:(i?"pb-5":"")+" text-sm transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:t?.length?t.map(((e,t)=>j(e,t,a))):null}):null]})})),j=(e,t,n)=>{const a=e?.accordionBlockType;if(!a||!(a in L))return null;return r("div",{className:"mb-5 last:mb-0",children:r(L[a],{context:n,...e})},`block_${t}`)},_=({target:e})=>"BUTTON"===e.tagName?e.nextSibling:e.parentNode.nextSibling,R=a((({title:e,accordionItems:t,context:a,className:i})=>n("section",{className:`p-[50px] font-sans bg-white text-primary-text ${i||""}`,children:[e?r(s,{className:"m-0 mb-2.5",children:e}):null,t?.length?r("ul",{className:"list-none m-0 p-0",children:t.map(((e,t)=>r(D,{...e,context:a},`AccordionItem${t}`)))}):null]}))),I=a((({className:e,title:t,benefits:a})=>n("section",{className:`font-sans text-primary-text bg-white p-12 pb-2 flex flex-col items-center ${e||""}`,children:[t?r(s,{className:"font-medium m-0 max-w-[47rem] text-center",children:t}):null,a?.length?r("div",{className:"grid grid-cols-2 gap-5 mt-9",children:a.map(T)}):null]}))),T=(e,t)=>n("div",{className:"flex items-center p-10 gap-5 max-w-[580px]",children:[e.icon&&r(d,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",name:e.icon,width:"70",height:"70"}),n("div",{children:[r("h3",{className:"font-medium text-xl m-0",children:e.label}),e.description&&r("div",{className:"font-normal text-sm mt-2",children:e.description})]})]},String(t)),M=({colData:e,colsLengthForScroll:t,activeCardIndex:r,setActiveCardIndex:n})=>{const a=e?.length&&e.length>t;return{nextClick:()=>n(r+1),prevClick:()=>n(r-1),isScrollAvailable:a,showNextButton:a&&e?.length-r>t,showPrevButton:a&&r>0}},A="/mobile",B=e=>e?.includes("//"),P=(e,t,r=((e,t)=>e===t))=>r(O(e),F(O(B(e)?t.href:t.pathname))),O=e=>(e||"").replace(/\/?\?.*/,""),F=e=>(e||"").replace(A,""),H=e=>{if(!B(e))return;const t=e,r=t.indexOf("//"),n=t.indexOf("/",r+"//".length);return-1!==n?t.substring(0,n):t},V=(e,t)=>{if(!e)return e;const r=Z(e,t),n=t?.pathname.startsWith(A);return n&&!B(r)?`/mobile${r}`:r},Z=(e,t)=>{if(!e)return e;const r=H(t?.href);return r?e.replace(r,"")||"/":e};var z=Object.freeze({__proto__:null,MOBILE_URL_PATH:A,isURL:B,isHrefActive:P,withoutQuery:O,withoutMobilePath:F,getOrigin:H,adjustHref:V,toRelativeHref:Z});const E=e=>e;function G({router:e,handlerDecorator:t=E},r){const n=V(r.href,e);return{...r,href:n,ariaLabel:r.text,onClick:t((t=>{const a=n&&!B(n),i=!r.target||"_self"===r.target;a&&i&&(t.preventDefault(),e.push(n))}),r)}}const W={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active"},U={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text"},J="inline-block text-center font-sans select-none",X=a((({className:e,text:t,aboveText:n,appendLeft:a,href:i,target:l,onClick:s,children:c,disabled:o,rounded:d,version:m="none",ariaLabel:h,...x})=>{const u=c??r(Q,{text:t,aboveText:n,appendLeft:a,rounded:d});return o?r("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`${J} ${U[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:u}):r("a",{className:`${J} cursor-pointer no-underline ${W[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:s,"aria-label":h,role:i?"link":"button",...x,children:u})})),Q=a((({text:e,aboveText:t,appendLeft:a,rounded:i})=>{const l=!e&&!t&&Boolean(a);return n("div",{className:`flex items-center justify-center ${l?"h-12 w-12 min-h-12 min-w-12":"px-8 gap-2 "+(t?"py-2":"py-[13px]")} ${i?"rounded-full":""}`,children:[a||null,l?null:n("div",{children:[r("div",{className:"text-xxs text-left",children:t}),r("div",{className:"text-sm font-medium text-left",children:e})]})]})})),q=a((({className:e,viewBox:t,fill:n="none",width:a,height:i,paths:l,...s})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:a,height:i,children:l.map((({d:e,fill:t,...n},a)=>r("path",{d:e,fill:t||"currentColor",...s,...n},a)))}))),K=[{d:"m9 12 4-4-4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"},{d:"M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z"}],Y=a((({className:e,disabled:t,...n})=>r(X,{rounded:!0,className:`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:r(q,{paths:K,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),ee="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",te="border-main-stroke border-solid border",re="border-main-divider border border-t-0 border-x-0",ne="w-[200px] mr-6",ae=a((({icon:e,image:t,title:a,link:i})=>n("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${te} ${ee}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&r(d,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",name:e,width:"63",height:"63"}),t?.src&&r(v,{className:"mb-[18px]",image:t}),a&&r(s,{size:"S",className:"font-medium m-0 text-center text-white",children:a}),i?.text&&r("div",{className:"mt-auto w-full",children:r(X,{href:i.href,target:i.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:r("div",{className:"font-medium text-xs py-[11px]",children:i.text})})})]}))),ie={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},le=a((({children:e,activeCardIndex:t,columnWidth:n,version:a="comparison"})=>r("div",{className:"flex flex-1 overflow-hidden",children:r("div",{className:ie[a],style:{transform:`translateX(-${t*n}px)`},children:e})}))),se=a((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:a})=>r("div",{className:`w-80 box-border flex flex-col ${te} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${a?ee:""}`,role:"cell",children:r("div",{className:`mx-7 h-full ${re} ${a&&t?"border-t":""} ${n?"":"border-solid"}`,children:e.map(((e,t)=>ce(e,t,a)))})}))),ce=({label:e,description:t},a,i)=>n("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e&&r("h5",{className:"text-xl font-medium m-0 "+(i?"text-white":""),children:e}),t&&r("div",{className:"text-sm opacity-80 "+(i?"text-white":"text-secondary-text"),children:t})]},String(a)),oe=a((({children:e})=>r("div",{className:"self-start flex flex-col",role:"row",children:r("div",{className:"flex",children:e})}))),de=a((({row:{header:e,data:t},activeCardIndex:a,isColoredFirstColumn:i,isFirstRow:l,isLastRow:s})=>n(oe,{children:[e?.title?r("div",{className:`text-sm py-7 ${re} w-[200px] mr-6 ${s?"":"border-solid"}`,children:e.title}):null,t?.length?r(le,{activeCardIndex:a,columnWidth:336,children:t.map(((e,t)=>r(se,{cell:e,isFirstRow:l,isLastRow:s,isFillGradient:i&&0===t},String(t))))}):null]}))),me=a((({className:e,context:t,title:a,rowHeaders:i,columns:l,visibleRowLength:c=0,isColoredFirstColumn:o=!1})=>{const d=t.useRouter(),{handlerDecorator:m}=t,[h,x]=t.useState(0),[u,p]=t.useState(!c),f=l?.map((({header:e})=>e||{})),b=l?.map((({data:e})=>e))||[],g=i?.map(((e,t)=>({header:e,data:b.map((e=>e?.[t]||[{}]))}))).slice(0,u?i.length:c),{nextClick:v,prevClick:N,isScrollAvailable:y,showNextButton:w,showPrevButton:k}=M({colData:b,colsLengthForScroll:2,activeCardIndex:h,setActiveCardIndex:x});return n("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center mb-9 mx-auto",children:a}),n("div",{role:"table",children:[f?.length?n(oe,{children:[r("div",{className:ne,role:"columnheader",scope:"col"}),r(le,{activeCardIndex:h,columnWidth:336,children:f.map(((e,t)=>r(ae,{...e,link:e.link&&G({router:d,handlerDecorator:m},e.link)},String(t))))})]}):null,g?.length?n("div",{className:"relative",children:[g.map(((e,t,{length:n})=>r(de,{row:e,isFirstRow:0===t,isLastRow:t+1===n,activeCardIndex:h,isColoredFirstColumn:o},String(t)))),y?r("div",{children:n("div",{className:"absolute top-7 right-7 z-10",children:[r(Y,{onClick:v,disabled:!w,ariaLabel:"Пролистать вправо"}),r(Y,{className:"mt-4 rotate-180",onClick:N,disabled:!k,ariaLabel:"Пролистать влево"})]})}):null]}):null]}),y?r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null,c?r("div",{className:"pr-[50px]",children:n("div",{className:"flex w-full",children:[r("div",{className:ne}),r("button",{onClick:()=>p(!u),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:r("div",{className:"font-sans font-medium text-xs py-[11px]",children:u?"Скрыть":"Показать все параметры"})})]})}):null]})}));function he(e,t){const{data:r}=e(xe(t),(()=>async function(e){const t=await fetch(xe(e));return await t.json()}(t)));return r||{}}function xe(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}const ue=[{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"}],pe=a((({text:e,checked:t,onChange:a,className:i})=>r("div",{className:i,children:n("label",{className:"flex items-center cursor-pointer relative",children:[r("input",{className:`peer appearance-none w-5 h-5 border-solid border ${t?"border-black":"border-main-stroke"} rounded checked:bg-primary-main checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{a(e.target.checked)},checked:t}),r(q,{paths:ue,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?r("span",{className:"font-sans ml-3 text-sm leading-5 cursor-pointer",children:e}):null]})}))),fe=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),be=a((({className:e,title:t,items:a=[],min:i=1,max:l=100,step:s=1,value:c=i,onChange:o})=>{const d=e=>{if(!o)return;const t=Number(e.replace(/\D/g,""));o(t)},m={backgroundSize:`${(100*(c-i)/(l-i)).toFixed(2)}% 100%`};return n("div",{className:e,children:[n("label",{className:"block relative",children:[t?r("span",{className:"absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5",children:t}):null,r("input",{className:"m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 m-0 box-border text-primary-text "+(t?"pt-4":""),value:fe(c),onChange:e=>d(e.target.value),onBlur:()=>{o&&(c<i&&o(i),c>l&&o(l))}}),r("div",{className:"absolute inset-x-0 top-8 px-4",children:r("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:i,max:l,step:s,value:c,onChange:e=>d(e.target.value),style:m})})]}),r("div",{className:"flex justify-between my-3",children:a.map(((e,t)=>r("span",{className:"text-xs leading-[14px] text-secondary-text pl-4",children:e},String(t))))})]})})),ge=(e,t,r)=>Math.max(t,Math.min(e,r)),ve=3e4,Ne=3e6,ye=Math.round(41.5),we=a((({context:e,className:t,directoryName:a})=>{const[i,l]=e.useState(void 0),[s,c]=e.useState(void 0),[o,d]=e.useState(!0),[m,h]=e.useState(!0),x=(e=>{const{tableRows:t,isAnnuity:r=!1}=e;return t&&t.find((e=>e.isAnnuity===r))||{}})({tableRows:he(e.useAsyncData,a).rows,isAnnuity:o}),u=x.maxSum&&x.minSum?(x.maxSum-x.minSum)/2:1485e3,p=x.maxMonths&&x.minMonths?Math.round((x.maxMonths-x.minMonths)/2):ye,f=x?.minSum||ve,b=x?.maxSum||Ne,g=x?.minMonths||1,v=x?.maxMonths||84,N=(e=>{const{calculatorParams:t,isInsurance:r}=e;return t?r?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:x,isInsurance:m}),y=(e=>{const{calculatorParams:t,paymentType:r,rate:n,sum:a,months:i}=e;if(!t)return 0;const l=ge(a,t.minSum||ve,t.maxSum||Ne);if("annuity"===r){const e=Number(n)/1200;return l*(e+e/(Math.pow(1+e,i)-1))}return l/i+l*(Number(n)/12)})({calculatorParams:x,paymentType:"annuity",rate:N,sum:i||u,months:s||p}),w=((e,t)=>{const r=Math.ceil((t-e)/12),n=Math.floor(e/12)+1,a=new Array(Math.min(r-1,5)).fill(0).map(((e,t)=>n+t)),i=r+n-1;return a.concat(i)})(g,v);function k(e){c(ge(12*e,g,v))}return r("section",{className:`font-sans text-primary-text bg-white p-4 w-[847px] ${t||""}`,children:n("div",{className:"box-border p-[49px] pr-[53px] flex flex-col justify-between border-solid border-[3px] border-primary-main rounded-md",children:[n("div",{className:"flex justify-between ",children:[n("div",{className:"grow mr-[42px] w-[465px]",children:[r(be,{title:"Желаемая сумма кредита, ₽",items:[`От ${fe(f)} рублей`,`До ${fe(b)} рублей`],min:f,max:b,step:1e3,value:i||u,onChange:l}),r(be,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:g,max:v,step:1,value:s||p,onChange:c}),r("div",{className:"flex mb-7",children:w.map(((e,t)=>function(e,t,a){return r("button",{className:"bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none",onClick:()=>a(e),children:n("span",{className:"font-semibold text-sm",children:[e," ",1===e?"год":e>4?"лет":"года"]})},String(t))}(e,t,k)))}),r(pe,{text:"Получаю пенсию на карту Россельхозбанка",checked:o,onChange:d}),r(pe,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:m,onChange:h})]}),n("div",{className:"basis-[226px] shrink-0 box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[r("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),r("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),n("div",{className:"text-lg mb-3",children:[fe(Math.round(y))," ₽"]}),r("div",{className:"text-sm opacity-60",children:"Ставка"}),n("div",{className:"text-lg",children:[N," %"]})]})]}),n("div",{className:"flex items-center",children:[r(X,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),r("div",{className:"w-80 text-xxs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})}));const ke=e=>{const t="col-span-",r=e.split(/\s+/).find((e=>e.startsWith(t)));return r?parseInt(r.substring(t.length),10):12},$e={primary:"bg-secondary-text w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5 rounded-full",secondary:"bg-white w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5 rounded-full"},Se={primary:"text-secondary-text",secondary:""},Ce=a((({className:e,isDotted:t=!0,text:a,children:i,version:l="primary"})=>n("div",{className:`inline-block flex ${e||""}`,role:"listitem",children:[t&&r("div",{className:`inline-block mr-3 ${$e[l]}`}),r("span",{className:`text-base font-normal font-sans mr-3 ${Se[l]}`,children:a||i})]}))),Le=a((({className:e,context:t,title:a,titleSize:i,description:l,children:c,buttons:o,image:m,items:h,version:x="primary"})=>{const u=t.useRouter(),{handlerDecorator:p}=t;return n("div",{className:"font-sans flex flex-col grow h-full items-start",children:[a&&r(s,{size:i||De(e),className:"font-medium m-0 whitespace-pre-wrap max-w-[600px] "+("primary"===x?"text-primary-text":""),children:a}),n("div",{className:"flex grow w-full justify-between",children:[n("div",{className:"flex flex-col justify-between items-start",children:[n("div",{children:[l?r("div",{className:"font-normal text-base mt-4 max-w-[600px]",children:l}):null,c,h?.length?je(h,x):null]}),o?.length?r("div",{className:"flex mt-9 gap-3",children:o.map(((e,t)=>function({icon:e,asSVG:t,...n},a){if(!n?.text)return;return r(X,e?{appendLeft:r(d,{name:e,asSVG:!0,width:"24",height:"24"}),...n}:{...n},String(a))}(G({router:u,handlerDecorator:p},e),t)))}):null]}),m?.src&&r(v,{className:"mt-auto ml-7",image:m})]})]})}));function De(e=""){const t=ke(e);return t<=4?"S":t<=8?"M":"L"}function je(e=[],t){return r("section",{className:"max-w-[600px] mt-5",role:"list",children:e.map(((e,n)=>r(Ce,{className:n?"mt-2.5":"",text:e,version:t},String(n))))})}const _e={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Re=a((e=>{const{children:t,className:n,version:a="primary"}=e;return r("section",{className:`font-sans p-9 box-border ${n||""} ${_e[a]} ${Ie(n)} ${Te(n)} `,children:r(Le,{...e,children:t})})}));function Ie(e=""){const t=ke(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}function Te(e=""){const t=ke(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Me="https://www.cbr-xml-daily.ru/daily_json.js",Ae=["USD","EUR"],Be={USD:"DollarIcon",EUR:"EuroIcon"},Pe=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],Oe=a((({className:e,context:t,title:a})=>{const{data:i}=t.useAsyncData(Me,Ve);return r(Re,{className:e,context:t,title:a||"Курсы обмена валют",buttons:Pe,children:n("table",{children:[r("thead",{children:n("tr",{children:[r(Fe,{children:"Валюта"}),r(Fe,{className:"pl-11",children:"Курс"})]})}),r("tbody",{children:Ae.map((e=>{const t=(i?.Valute||{})[e]?.Value;return n("tr",{children:[r(He,{className:"pt-4",children:n("div",{className:"flex items-center",children:[r(d,{name:Be[e],width:"24",height:"24"}),r("span",{className:"ml-2",children:e})]})}),r(He,{className:"pt-4 pl-11",children:ze(t)})]},e)}))})]})})})),Fe=a((({className:e="",children:t})=>r("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),He=a((({className:e="",children:t})=>r("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function Ve(){const e=await fetch(Me);return await e.json()}const Ze=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),ze=e=>e?Ze.format(e):"",Ee=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],Ge=a((({className:e,href:t,children:a,targetBlank:i})=>n("a",{className:`inline-flex items-center font-sans no-underline ${e||""}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self",children:[r(q,{className:"text-primary-main w-10",viewBox:"0 0 40 45",paths:Ee.map((e=>({d:e})))}),r("span",{className:"text-black text-base font-medium ml-2.5",children:a||"Россельхозбанк"})]}))),We=a((({className:e,context:t})=>{const{term:a,setTerm:i}=t.useSearch(),[l,s]=t.useState(!1);return n("form",{className:`relative ${e||""}`,children:[n("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[r("div",{className:"w-[24px] h-[24px]",children:r(d,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&r("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-base text-secondary-text",children:"Поиск по сайту"})]}),r("input",{id:"search-bar-input",className:(l?"border-primary-text":"border-main-divider")+" h-12 pl-12 w-full font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%]",value:a,onChange:e=>i(e.target.value),onFocus:e=>s(!0),onBlur:e=>s(!1),type:"text",name:"search-bar-input"}),l&&r("button",{type:"submit",className:"absolute font-sans font-normal cursor-pointer text-sm bg-primary-main hover:bg-primary-hover active:bg-primary-active border-none px-9 py-[9px] rounded top-1 right-1 outline-none text-secondary-text text-white",onClick:e=>{e.preventDefault(),console.log("click")},children:"Найти"})]})})),Ue=a((({className:e,items:t,hasButton:a,context:i})=>{const l=i.useRouter(),{handlerDecorator:s}=i;return n("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(Je):null,a?r(X,{version:"primary",className:"my-4",...G({router:l,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Je=(e,t)=>{const{type:a,text:i,description:l}=e;return n("div",{className:"mb-4",children:[r("div",{children:Xe(a,i)}),r("div",{className:"font-sans text-sm text-secondary-text",children:l})]},String(t))},Xe=(e,t="")=>{switch(e){case"tel":return r("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${Qe(t)}`,children:t});case"email":return r("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return r("span",{children:t})}},Qe=e=>e.replaceAll(/\D/g,""),qe=a((({className:e,links:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:i}=n;return r("div",{className:`${e||""}`,children:t?.length?r("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)=>r(Ke,{index:t,...G({router:a,handlerDecorator:i},e)},String(t))))}):null})})),Ke=a((({className:e,index:t,text:n,href:a,target:i,onClick:l})=>r("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:n||`Документ ${t}`})));function Ye(e){const{data:t}=e(tt(),et);return t||{}}async function et(){const e=await fetch(tt());return await e.json()}function tt(){return`/wcms-resources/${o.SITEMAP||"sitemap"}.json`}const rt=e=>t=>e?.href===t?.href;function nt(e,t){return(n=e,a=t,(n||[]).map((e=>a?.find(rt(e))||e))).concat((r=e,(t||[]).filter((e=>!r?.find(rt(e))))));var r,n,a}const at=a((({className:e,items:t,context:n})=>{const a=nt(Ye(n.useAsyncData).topItems,t),i={router:n.useRouter(),handlerDecorator:n.handlerDecorator};return r("div",{className:`flex items-start justify-start gap-11 xl:gap-5 ${e||""}`,children:a?.map(((e,t)=>it(e,t,i)))})})),it=(e,t,{router:a,handlerDecorator:i})=>{const{text:l,href:s,items:c,target:o}=e;return n("div",{className:"flex flex-col gap-[14px]",children:[r("a",{className:"block font-sans font-medium text-base text-primary-text no-underline",href:s,target:o||"_self",children:l||`Раздел ${t}`}),c?.map(((e,t)=>r(lt,{...G({router:a,handlerDecorator:i},e),index:t},String(t))))]},String(t))},lt=a((({text:e,href:t,target:n,index:a})=>r("a",{className:"block font-sans font-normal text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:n||"_self",children:e||`Раздел ${a}`}))),st=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],ct=a((({className:e,media:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:i}=n;return r("div",{className:`flex items-end justify-end gap-2 pt-[30px] pb-7 ${e||""}`,children:t?.map(((e,t)=>r(ot,{...G({router:a,handlerDecorator:i},e)},String(t))))})})),ot=a((({href:e})=>{const{icon:t,label:n,width:a,height:i}=st.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?r("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main",href:e,target:"_blank",rel:"noopener noreferrer",children:d&&r(d,{name:t,width:a,height:i,asSVG:!0,className:"block"})}):null})),dt=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return n("div",{className:`${e||""}`,children:[r("div",{className:"pt-5 pb-[5px]",children:r("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?r("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>r(mt,{index:t,...G({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),mt=a((({className:e,index:t,text:n,href:a,target:i,onClick:l})=>r("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:n||`Документ ${t}`}))),ht=a((({className:e,documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,topItems:s,context:c})=>n("footer",{className:`px-9 py-10 bg-white ${e||""}`,children:[n("div",{className:"flex items-stretch gap-[54px] pb-8 xl:gap-8",children:[r(Ge,{className:"w-[280px] xl:w-[220px]"}),r(We,{context:c,className:"grow"})]}),n("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[r(Ue,{className:"w-[280px] shrink-0 overflow-hidden xl:w-[220px]",items:i,context:c,hasButton:!0}),r(at,{className:"pt-[3px]",context:c,items:s})]}),r(ct,{media:l,context:c}),r(qe,{links:a,context:c}),r(dt,{links:t,context:c})]}))),xt={primary:"text-secondary-text",secondary:""},ut={normal:3,mini:4},pt={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},ft={normal:380,mini:276},bt=a((({title:e,description:t,image:a,items:i,button:l,version:s})=>{const c=xt[s??"primary"];return n("div",{children:[n("div",{children:[a?.src?r("div",{className:"flex justify-center",children:r(v,{className:"mb-6",image:a})}):null,e&&gt(e,t,i),t&&r("div",{className:`font-normal text-sm mt-2 ${c}`,children:t}),i?.length?r("section",{className:`max-w-[308px] mt-2 ${c}`,role:"list",children:i.map(((e,t)=>function(e,t,n){return r(Ce,{version:n??"primary",children:r("span",{className:"text-sm",children:e})},String(t))}(e,t,s)))}):null]}),l?.href&&r(X,{className:"mt-6",...l})]})}));function gt(e,t,n){return r("div",{className:"font-medium text-xl m-0 "+(t||n?.length?"":"text-center"),children:e})}const vt=a((({context:e,title:t,description:a,cards:i=[],version:l="normal",activeCardIndex:c})=>n("div",{children:[r("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),n("div",{className:"flex flex-col items-center mb-8",children:[t?r(s,{className:"font-medium m-0 text-center",children:t}):null,a?r("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:a}):null]}),r("div",{className:`flex ${i?.length<=ut[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*ft[l]}px)`},role:"list",children:i?.map(((t,n)=>function({card:e,version:t,context:n},a){return r(Re,{context:n,className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${pt[t]} w-full col-span-4`,version:e.version,children:r(bt,{...e})},String(a))}({card:t,version:l,context:e},n)))})]})));const Nt=a((({context:e,cards:t=[],className:a,version:i="normal",...l})=>{const[s,c]=e.useState(0),o=t?.length>ut[i],d=o&&t?.length-s>ut[i],m=o&&s>0;return n("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${a}`,children:[r(vt,{context:e,cards:t,version:i,activeCardIndex:s,...l}),m&&r(Y,{className:"absolute top-1/2 left-8 rotate-180",onClick:()=>c(s-1),ariaLabel:"Пролистать влево"}),d&&r(Y,{className:"absolute top-1/2 right-1 z-10",onClick:()=>c(s+1),ariaLabel:"Пролистать вправо"}),r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"})]})})),yt=a((e=>r(Nt,{...e,version:"normal"}))),wt=a((({className:e,text:t,href:a,target:i,active:l,onClick:s,children:c})=>n("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:s,children:[r("span",{className:`font-sans font-normal text-base ${l?"text-primary-main":"text-primary-text hover:text-primary-main"}`,children:t||c}),l?r("div",{className:"absolute left-0 -bottom-2 w-full h-[2px] bg-primary-main"}):null]}))),kt=a((({className:e,text:t,href:n,target:a,active:i,flat:l,onClick:s,children:c,ariaLabel:o})=>r("a",{className:`inline-block border border-solid bg-transparent text-center no-underline ${l?"":"px-4 py-2"} ${i?"border-primary-main rounded-md":"border-transparent"} ${e||""}`,href:n,target:a,onClick:s,rel:"noopener noreferrer","aria-label":o,children:r("span",{className:`font-sans font-normal text-sm ${i?"text-primary-main":(l?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"}`,children:t||c})}))),$t=a((({className:e,children:t,ariaLabel:n})=>r("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e||""}`,disabled:!0,"aria-label":n,children:t}))),St=a((({context:e,className:t,defaultLocation:a=""})=>{const[i,l]=e.useGeolocation(a);return n("div",{className:`flex items-center ${t||""}`,children:[r(kt,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:l}),r(kt,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов"}),r($t,{className:"mr-5 text-primary-text hover:text-primary-main",ariaLabel:"Поиск по сайту",children:r(d,{name:"LoupeIcon","aria-hidden":"true",className:"h-full",asSVG:!0})}),r($t,{className:"mr-5 text-primary-text hover:text-primary-main",ariaLabel:"Профиль",children:r(d,{name:"ProfileIcon","aria-hidden":"true",className:"h-full",asSVG:!0})}),r($t,{className:"min-w-[32px] min-h-[32px] fill-secondary-light hover:fill-secondary-hover",ariaLabel:"Дополнительные ссылки",children:r(d,{name:"GridIcon","aria-hidden":"true",className:"h-full",asSVG:!0})})]})}));const Ct=a((({className:e,defaultLocation:t,context:a,topItems:i})=>{const l=a.useRouter(),s=Ye(a.useAsyncData),{handlerDecorator:c}=a,o=nt(s.topItems,i),d=o.find(function(e){return t=>P(t.href,e,((e,t)=>t.startsWith(e)))}(l)),m=d?.items,h=m?.find(function(e){return t=>P(t.href,e)}(l)),x=o.map(((e,t)=>r(kt,{active:e===d,...G({router:l,handlerDecorator:c},e),ariaLabel:e.text},String(t)))),u=m?.map((e=>r(wt,{className:"mr-8",active:e===h,...G({router:l,handlerDecorator:c},e)},e.href)));return r("header",{className:`pt-5 pb-8 px-20 bg-white ${e||""}`,children:n("div",{className:"container",children:[n("div",{className:"flex items-center",children:[r(Ge,{className:"mr-8"}),x,r(St,{context:a,className:"ml-auto",defaultLocation:t})]}),r("div",{className:"mt-5 h-[1px] bg-main-divider"}),r("nav",{className:"mt-5",children:u})]})})})),Lt=a((e=>r(Nt,{...e,version:"mini"}))),Dt=a((({className:e,context:t,title:a="Мобильное приложение",qr:i,buttons:l=[]})=>r(Re,{className:e,context:t,title:a,buttons:l,children:n("div",{className:"flex items-center",children:[i?.src&&i?.href&&r("a",{href:i.href,target:"_blank",children:r("img",{src:i.src,alt:a,title:a,width:"164",height:"164",className:"w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light"})}),r("span",{className:"font-normal text-sm text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})}))),jt=a((({className:e,context:t,title:n})=>r(Re,{className:e,context:t,title:n,description:"Блок в разработке...",children:r("figure",{className:"m-0 min-w-[600px]",children:_t()})}))),_t=(e=3)=>It(100,e).map((e=>Math.floor(e))).map(Rt),Rt=(e=100,t)=>r("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),It=(e,t)=>[e].concat(t>0?It(e/1.618,t-1):[]),Tt=a((({text:e,href:t,target:n,onClick:a,className:i,children:l})=>t?r("a",{className:`no-underline ${i||""}`,href:t,target:n,onClick:a,children:r("span",{className:`${i||""}`,children:e||l})}):r("span",{className:`${i||""}`,children:e||l})));function Mt(e){return t=>t.reduce(((t,r,n)=>t.length?t.concat({...e,key:n},r):[r]),[])}const At={primary:"bg-main",secondary:"bg-white/30"},Bt={primary:"text-primary-text",secondary:"text-white"},Pt={primary:"text-secondary-text",secondary:"text-white"},Ot=a((({className:e,context:t,title:a,titleSize:i,description:l,benefits:s,buttons:c,image:o,items:m,version:h="primary"})=>n("div",{className:`flex grow justify-between items-stretch ${e||""}`,children:[r("div",{className:"flex flex-col",children:r(Le,{context:t,title:a,titleSize:i||"XL",description:l,items:m,buttons:c,version:h,children:s?.length?r("div",{className:"flex gap-6 mt-6 mb-3.5",children:s.map(((e,t)=>function(e,t,a){return n("div",{className:"flex gap-4 items-center",children:[e.icon&&r(d,{className:`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${At[a]}`,name:e.icon,width:"24",height:"24"}),n("div",{className:"flex gap-1 flex-col h-full max-w-[149px]",children:[r("h4",{className:`font-medium text-xl m-0 ${Bt[a]}`,children:e.label}),e.description&&r("div",{className:`font-normal text-sm ${Pt[a]}`,children:e.description})]})]},String(t))}(e,t,h)))}):null})}),o?.src&&r(v,{className:"mt-auto",image:o})]})));const Ft={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ht={primary:"text-secondary-text",secondary:"text-white/80"},Vt=a((e=>{const{context:t,className:a,breadcrumbs:i,version:l="primary"}=e,s=t.useRouter(),{handlerDecorator:c}=t;return n("section",{className:`font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${a||""} ${Ft[l]}`,children:[i?.length?r("div",{className:"text-xs mb-6",children:Mt(r("span",{className:`mx-2 ${Ht[l]}`,children:"/"}))(i.map(((e,t)=>r(Tt,{...G({router:s,handlerDecorator:c},{className:Ht[l],...e})},String(t)))))}):null,r(Ot,{...e})]})})),Zt=a((({className:e,context:t,duration:a=0,slides:i=[]})=>{const l=i.map((e=>e.nav)),s=i.map((e=>e.productBlock)),[c,o]=t.useState(0);return n("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[r("div",{className:"flex duration-1000",style:{transform:`translateX(-${c}00%)`},role:"list",children:s.map(((e,n)=>function(e,t,n){return r("section",{className:"flex grow-0 shrink-0 basis-full",role:"listitem",children:r("div",{className:"p-10 flex grow",children:r(Ot,{className:"pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]",context:n,...e})})},String(t))}(e,n,t)))}),r("div",{className:"flex",children:l.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:a,onClick:i,duration:l}){const s=t===a,c=s?"animate-slide":"";return n("button",{type:"button",onClick:i,className:"font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-5 grow basis-0",children:[n("div",{className:"border-0 border-r border-solid border-main-divider px-6",children:[r("div",{className:"text-sm font-medium pb-1 group-hover:text-primary-text "+(s?"text-primary-text":"text-secondary-text"),children:e?.title}),r("div",{className:"text-xs text-secondary-text pb-[2px]",children:e.desc})]}),r("div",{className:`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${c}`,style:{animationDuration:`${l}s`,animationFillMode:"forwards"}})]},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>o(t),duration:a})))})]})}));const zt=a((e=>{const{benefits:t,version:a}=e;return r(Re,{...e,children:n("div",{className:"flex mt-5 mb-1",children:[t?.length?r("div",{className:"mr-8",children:t.map(Et)}):null,t?.length?r("div",{className:"pt-1",children:t.map(((e,t)=>function(e,t,n="primary"){return r("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[n]}`,children:e.label},String(t))}(e,t,a)))}):null]})})}));function Et(e,t){return r("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.description},String(t))}const Gt=a((({className:e,context:t,title:a="Акции и спецпредложения",date:i,description:l,buttons:s=[],version:c})=>r(Re,{className:e,context:t,title:a,buttons:s,version:c,children:n("div",{className:"mt-1.5",children:[i&&r("div",{className:"text-sm mb-2",children:Wt(i)}),r("div",{className:"text-base",children:l})]})})));function Wt(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Ut=a((({className:e,title:t,steps:a})=>n("section",{className:`font-sans text-primary-text bg-white px-12 py-12 flex flex-col items-center ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center",children:t}),a?.length?n("div",{children:[r("div",{className:"flex mt-9 items-center px-[88px]",children:Mt(r("div",{className:"h-0.5 w-full bg-secondary-light"}))(a.map(((e,t)=>Jt(e,t))))}),r("div",{className:"flex mt-9 justify-between gap-x-24",children:a.map(Xt)})]}):null]}))),Jt=(e,t)=>r("div",{className:"flex flex-col items-center text-center relative",children:r("div",{className:"h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10",children:e.icon&&r(d,{name:e.icon,width:"48",height:"48"})||r("span",{className:"font-medium text-title-sm text-secondary-text",children:t+1})})},String(t)),Xt=(e,t)=>r("div",{className:"flex flex-col items-center text-center relative w-[276px]",children:n("div",{className:"max-w-min",children:[r("h5",{className:"font-medium text-xl m-0 mt-4 whitespace-nowrap px-3",children:e.label}),e.description&&r("div",{className:"font-normal text-sm text-secondary-text mt-2",children:e.description})]})},String(t)),Qt="border-main-divider border border-t-0 border-x-0",qt=a((({cell:e,isLastRow:t})=>r("div",{className:"first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(t?"border-t-0 rounded-b-md":""),role:"cell",children:r("div",{className:`h-full ${Qt}`,children:e.map(((e,t)=>Kt(e,t)))})}))),Kt=({label:e,description:t,list:a,image:i,buttons:l},s)=>n("div",{className:"first:pt-5 last:pb-5",children:[s>0&&r("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e&&r("div",{className:"text-xl font-medium m-0",children:e}),t&&r("div",{className:"text-sm text-secondary-text",children:t}),a?.items?.length?r("div",{className:"flex flex-col justify-between items-start",children:r("div",{role:"list",children:a.items.map(((e,t)=>r(Ce,{text:e,version:a.version??"secondary",isDotted:a.isDotted??!0},String(t))))})}):null,i&&r(v,{image:i}),l?.length?l.map((({icon:e,...t},n)=>r(X,{className:(n>0?"ml-3":"")+" w-12 h-12",appendLeft:e&&r(d,{name:e,width:"24px",height:"24px"}),...t},String(n)))):null]},String(s)),Yt=a((({row:{header:e,data:t},activeCardIndex:a,isLastRow:i})=>n(oe,{children:[r("div",{className:`text-sm py-5 w-[354px] flex-shrink-0 ${Qt} ${i?"":"border-solid"}`,children:n("div",{className:"flex items-center text-primary-text",children:[e?.icon&&r(d,{className:"pr-[14px]",name:e.icon,width:"24px",height:"24px"}),e?.title]})}),t?.length?r(le,{activeCardIndex:a,columnWidth:360,version:"tariff",children:t.map(((e,t)=>r(qt,{cell:e,isLastRow:i},String(t))))}):null]}))),er=a((({className:e,context:t,title:a,rowHeaders:i,columns:l})=>{const[c,o]=t.useState(0),d=l?.map((({data:e})=>e))||[],m=i?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))),{nextClick:h,prevClick:x,isScrollAvailable:u,showNextButton:p,showPrevButton:f}=M({colData:d,colsLengthForScroll:2,activeCardIndex:c,setActiveCardIndex:o});return n("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,children:[r(s,{className:"font-medium m-0 max-w-[47rem] text-center mb-9 mx-auto",children:a}),n("div",{role:"table",children:[m?.length?n("div",{className:"relative",children:[m.map(((e,t,{length:n})=>r(Yt,{row:e,isLastRow:t+1===n,activeCardIndex:c},String(t)))),u?r("div",{children:n("div",{className:"absolute top-7 right-7 z-10",children:[r(Y,{onClick:h,disabled:!p,ariaLabel:"Пролистать вправо"}),r(Y,{className:"mt-4 rotate-180",onClick:x,disabled:!f,ariaLabel:"Пролистать влево"})]})}):null]}):null,u?r("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})]})})),tr={Accordion:R,BenefitsBlock:I,ComparisonTable:me,CreditCalculator:we,ExchangeRateTile:Oe,Footer:ht,Gallery:yt,Header:Ct,Headline:h,LinkDocs:f,MiniGallery:Lt,MobileAppTile:Dt,PictureText:y,Placeholder:jt,ProductBlock:Vt,ProductGallery:Zt,ProductTile:zt,PromoTile:Gt,StepsBlock:Ut,TariffsTable:er,TextBlock:$,Tile:Re},rr=a((({className:e,onClick:t,ariaLabel:n})=>r("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:nr()}))),nr=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r("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"}),r("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"})]})},ar=a((({className:e,context:t})=>{const a=t.useLikeService();return n("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:[r(rr,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),r(rr,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),r("span",{className:"select-none",children:a.likeCount})]})})),ir=({blockClassName:e,block:t,render:r})=>r({blockClassName:e,block:t}),lr=a((({className:e,context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:d=ir})=>{const{header:m}=s;return n("section",{className:`relative ${cr(i)} ${e||""}`,"data-theme":o,children:[m?.blocks?.length?r("div",{className:`${cr(m?.style)}`,children:m.blocks.map(((e,r)=>sr({block:e,blockDecorator:d,blocksRegistry:a,context:t},r)))}):null,l?.length?r("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,r)=>sr({block:e,blockDecorator:d,blocksRegistry:a,context:t},r)))}):null,c&&r("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:r(ar,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function sr({block:e,blockDecorator:t,blocksRegistry:n,context:a},i){const{type:l}=e;l in n||console.warn(`No block with "${l}" is registered`);const s=n[l]||jt;return t({blockClassName:cr(e.style),block:e,render:e=>{const{version:c,content:o,blocks:d}=e.block;return r(s,{className:e.blockClassName,version:c,context:a,...o,children:d?.length?d.map(((e,r)=>sr({block:e,blockDecorator:t,blocksRegistry:n,context:a},r))):null},`${l}-${i}`)}},`block-${i}`)}function cr(e){return e?e.join(" "):""}const or=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,description:l,keywords:s,robots:c,og:o}=t;return n(e,{children:[r("title",{children:i}),r("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),l&&r("meta",{name:"description",content:l}),s&&r("meta",{name:"keywords",content:s.join(",")}),c&&r("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>r("meta",{name:`og:${e}`,content:t},e))):null,a]})}));function dr(e){return e?.filter((({mobile:e})=>!e?.hidden)).map(mr)}function mr(e){const{mobile:t}=e;return t?{...e,style:t.style?.length?t.style:e.style}:e}const hr=a((({className:e,context:t})=>r("footer",{className:`${e} px-9 py-2 bg-white rounded-bl-3xl rounded-br-3xl`,children:r(dt,{context:t})}))),xr=a((({title:e,description:t,cards:a=[],className:i})=>n("section",{className:`relative font-sans text-primary-text bg-white p-4 overflow-hidden ${i}`,children:[n("div",{className:"flex flex-col items-center mb-8",children:[r(s,{className:"font-medium m-0 text-centers",children:e}),t?r("div",{className:"font-normal text-base max-w-[600px] mt-3",children:t}):null]}),r("div",{className:"horizontal-list no-scrollbar",role:"list",children:a?.map(ur)})]})));function ur(e,t){return n("div",{className:"box-border horizontal-list-item border-solid border rounded-md border-main-divider p-4 mx-1 flex flex-col justify-between items-stretch",role:"listitem",children:[n("div",{children:[e.image?.src?r("div",{className:"flex justify-center",children:r(v,{className:"mb-6",image:e.image})}):null,e.title?r("h4",{className:"font-medium text-xl m-0 "+(e.description||e.items?.length?"":"text-center"),children:e.title}):null,e.description?r("div",{className:"font-normal text-sm text-secondary-text mt-2",children:e.description}):null,e.items?.length?pr(e.items):null]}),e?.button?.href?r(X,{className:"mt-6",...e.button}):null]},t)}function pr(e=[]){return r("section",{className:"max-w-[308px] mt-2",role:"list",children:e.map(((e,t)=>r(Ce,{children:r("span",{className:"text-sm text-secondary-text",children:e})},String(t))))})}const fr=a((({titleSize:e,image:t,benefits:n,...a})=>{const{className:i}=a;return r("section",{className:`font-sans bg-white pt-10 pl-[50px] pb-[50px] pr-[7.5rem] ${i||""}`,children:r(Ot,{...a,titleSize:"L"})})})),br={ExchangeRateTile:Oe,Footer:hr,Gallery:xr,Header:Ct,Headline:h,MobileAppTile:Dt,PictureText:y,Placeholder:jt,ProductBlock:fr,ProductTile:zt,TextBlock:$,Tile:Re};e.Blocks=tr,e.ContentPage=lr,e.ContentPageHead=or,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),r=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await r.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=function(e,t=""){async function r(){try{const e=JSON.parse(globalThis.localStorage.getItem(i)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:r,name:n}=await e.json();return globalThis.localStorage.setItem(i,JSON.stringify({token:r,name:n})),{token:r,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...n){if(!n.length)return[];const{token:a}=await r();try{const r=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:n})}),{likes:i}=await r.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(n){if(!n)return 0;const{token:a,name:i}=await r();try{const r=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:n,user_name:i})}),{likes:l}=await r.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(n){if(!n)return 0;const{token:a,name:i}=await r();try{const r=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:n,user_name:i})}),{likes:l}=await r.json();return l||0}catch(e){return console.error(e),0}}}},e.MobileBlocks=br,e.joinList=Mt,e.projectSettings=o,e.setup=t,e.toMobilePage=function(e){const{blocks:t,slots:r}=e;return{...e,blocks:dr(t),slots:r&&Object.keys(r).reduce(((e,t)=>({...e,[t]:{...r[t],blocks:dr(r[t].blocks)}})),{})}},e.url=z,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -9,26 +9,11 @@ const Icon_1 = require("../../ui-kit/Icon/Icon");
9
9
  const Img_1 = require("../../ui-kit/Img");
10
10
  const Title_1 = require("../../ui-kit/Title/Title");
11
11
  const getColSpan_1 = require("../../utils/getColSpan");
12
- const alignFlex = {
13
- left: 'justify-between',
14
- center: 'justify-center',
15
- right: 'justify-end',
16
- };
17
- const alignBlock = {
18
- left: 'items-start',
19
- center: 'items-center',
20
- right: 'items-end',
21
- };
22
- const alignText = {
23
- left: 'text-left',
24
- center: 'text-center',
25
- right: 'text-right',
26
- };
27
12
  const TITLE_CLASSES = 'font-medium m-0 whitespace-pre-wrap max-w-[600px]';
28
- exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', align = 'left', }) => {
13
+ exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', }) => {
29
14
  const router = context.useRouter();
30
15
  const { handlerDecorator } = context;
31
- return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex flex-col grow h-full ${alignBlock[align]}`, children: [title && ((0, jsx_runtime_1.jsx)(Title_1.Title, { size: titleSize || getTitleSizeByClassName(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), (0, jsx_runtime_1.jsxs)("div", { className: `flex grow w-full ${alignFlex[align]}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col justify-between ${alignBlock[align]}`, children: [(0, jsx_runtime_1.jsxs)("div", { children: [description ? ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-base mt-4 max-w-[600px] ${alignText[align]}`, children: description })) : null, children, items?.length ? renderItems(items, version) : null] }), buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex mt-9 gap-3", children: buttons.map((button, index) => renderButton((0, useLink_1.useLink)({ router, handlerDecorator }, button), index)) })) : null] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image })] })] }));
16
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex flex-col grow h-full items-start`, children: [title && ((0, jsx_runtime_1.jsx)(Title_1.Title, { size: titleSize || getTitleSizeByClassName(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), (0, jsx_runtime_1.jsxs)("div", { className: `flex grow w-full justify-between`, children: [(0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col justify-between items-start`, children: [(0, jsx_runtime_1.jsxs)("div", { children: [description ? ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-base mt-4 max-w-[600px]`, children: description })) : null, children, items?.length ? renderItems(items, version) : null] }), buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex mt-9 gap-3", children: buttons.map((button, index) => renderButton((0, useLink_1.useLink)({ router, handlerDecorator }, button), index)) })) : null] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image })] })] }));
32
17
  });
33
18
  function getTitleSizeByClassName(className = '') {
34
19
  const colSpan = (0, getColSpan_1.getColSpan)(className);
@@ -1 +1 @@
1
- {"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,gEAA6D;AAC7D,uDAAoD;AACpD,iDAA8C;AAC9C,0CAAuC;AACvC,oDAAiD;AACjD,uDAAoD;AAGpD,MAAM,SAAS,GAA8B;IAC3C,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,aAAa;CACrB,CAAC;AACF,MAAM,UAAU,GAA8B;IAC5C,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,MAAM,SAAS,GAA8B;IAC3C,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAIF,MAAM,aAAa,GAAG,mDAAmD,CAAC;AAE7D,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,KAAK,GAAG,MAAM,GACf,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC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AFL,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,eAAM,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvC,CAAC;AACJ,CAAC"}
@@ -16,7 +16,7 @@ exports.Sitemap = (0, uni_jsx_1.JSX)(({ className, items, context }) => {
16
16
  });
17
17
  const renderColumn = (c, index, { router, handlerDecorator }) => {
18
18
  const { text, href, items, target } = c;
19
- return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-[14px]", children: [(0, jsx_runtime_1.jsx)("a", { className: "block font-sans font-medium text-base text-primary-text no-underline", href: href, target: target || '_self', children: text || `Раздел ${index}` }), items?.map((_, i) => ((0, jsx_runtime_1.jsx)(ColumnItem, { ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i))))] }, String(index)));
19
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-[14px]", children: [(0, jsx_runtime_1.jsx)("a", { className: "block font-sans font-medium text-base text-primary-text no-underline", href: href, target: target || '_self', children: text || `Раздел ${index}` }), items?.map((_, i) => ((0, jsx_runtime_1.jsx)(ColumnItem, { ...(0, useLink_1.useLink)({ router, handlerDecorator }, _), index: i }, String(i))))] }, String(index)));
20
20
  };
21
21
  const ColumnItem = (0, uni_jsx_1.JSX)(({ text, href, target, index }) => ((0, jsx_runtime_1.jsx)("a", { className: "block font-sans font-normal text-base text-secondary-text hover:text-primary-main no-underline", href: href, target: target || '_self', children: text || `Раздел ${index}` })));
22
22
  //# sourceMappingURL=Sitemap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/components/Footer/Sitemap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,uDAAoD;AACpD,uDAAoD;AAQvC,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAA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EAAC,sEAAsE,EAChF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,YAExB,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,EACH,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,uBAAC,UAAU,OAAqB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,IAAjE,MAAM,CAAC,CAAC,CAAC,CAA4D,CACvF,CAAC,KAVM,MAAM,CAAC,KAAK,CAAC,CAWjB,CACP,CAAC;AACJ,CAAC,CAAC;AAMF,MAAM,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACzE,8BACE,SAAS,EAAC,gGAAgG,EAC1G,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,YAExB,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,CACL,CAAC,CAAC"}
@@ -2,8 +2,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Headline = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const BaseTile_1 = require("../BaseTile/BaseTile");
6
- exports.Headline = (0, uni_jsx_1.JSX)(({ bgColor = 'bg-white', className, ...props }) => {
7
- return ((0, jsx_runtime_1.jsx)("section", { className: `p-10 ${bgColor} ${className || ''} `, children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { ...props }) }));
5
+ const Title_1 = require("../../ui-kit/Title/Title");
6
+ const alignText = {
7
+ left: 'text-left',
8
+ center: 'text-center',
9
+ right: 'text-right',
10
+ };
11
+ exports.Headline = (0, uni_jsx_1.JSX)(({ bgColor = 'transparent', align = 'left', className, title, description }) => {
12
+ const textClasses = alignText[align];
13
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `p-[50px] ${bgColor} ${className || ''} `, children: [title && ((0, jsx_runtime_1.jsx)(Title_1.Title, { size: "L", className: `text-primary-text mt-0 font-medium ${textClasses}`, children: title })), description && ((0, jsx_runtime_1.jsx)("p", { className: `font-normal text-base mt-4 ${textClasses}`, children: description }))] }));
8
14
  });
9
15
  //# sourceMappingURL=Headline.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,mDAAgD;AAKnC,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3F,OAAO,CACL,oCAAS,SAAS,EAAE,QAAQ,OAAO,IAAI,SAAS,IAAI,EAAE,GAAG,YACvD,uBAAC,mBAAQ,OAAK,KAAK,GAAa,GACxB,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,oDAAiD;AAMjD,MAAM,SAAS,GAA8B;IAC3C,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,OAAO,GAAG,aAAa,EAAE,KAAK,GAAG,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE;IAC7E,MAAM,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IACrC,OAAO,CACL,qCAAS,SAAS,EAAE,YAAY,OAAO,IAAI,SAAS,IAAI,EAAE,GAAG,aAC1D,KAAK,IAAI,CACR,uBAAC,aAAK,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAE,sCAAsC,WAAW,EAAE,YAC3E,KAAK,GACA,CACT,EACA,WAAW,IAAI,CACd,8BAAG,SAAS,EAAE,8BAA8B,WAAW,EAAE,YAAG,WAAW,GAAK,CAC7E,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -4,6 +4,7 @@ import type { LinkProps } from './LinkProps';
4
4
  * @required ["text", "href"]
5
5
  */
6
6
  export interface TopMenuItem extends LinkProps {
7
+ /** @title Ссылки */
7
8
  items?: LinkProps[];
8
9
  }
9
10
  export interface SitemapProps {
package/lib/common.css CHANGED
@@ -1 +1 @@
1
- @import "../fonts/ubuntu/ubuntu.css";[data-theme=pc]{--color-primary-main:66,171,68;--color-primary-hover:36,131,65;--color-primary-active:36,95,52;--color-secondary-hover:216,242,217;--color-secondary-active:197,226,198;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=bc]{--color-primary-main:131,184,62;--color-primary-hover:92,146,29;--color-primary-active:60,94,16;--color-secondary-hover:232,244,217;--color-secondary-active:216,227,202;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo]{--color-primary-main:221,182,61;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo2]{--color-primary-main:255,204,0;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo3]{--color-primary-main:225,186,30;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo4]{--color-primary-main:233,191,23;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}.container{margin-left:auto;margin-right:auto;width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.inset-x-0{left:0;right:0}.top-1{top:.25rem}.right-1{right:.25rem}.top-7{top:1.75rem}.right-7{right:1.75rem}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.top-4{top:1rem}.right-4{right:1rem}.left-0{left:0}.top-1\/2{top:50%}.left-8{left:2rem}.left-1{left:.25rem}.-bottom-2{bottom:-.5rem}.top-8{top:2rem}.z-10{z-index:10}.col-span-12{grid-column:span 12/span 12}.col-span-8{grid-column:span 8/span 8}.col-span-4{grid-column:span 4/span 4}.col-span-6{grid-column:span 6/span 6}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.mx-7{margin-left:1.75rem;margin-right:1.75rem}.-mx-20{margin-left:-5rem;margin-right:-5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mb-2\.5{margin-bottom:.625rem}.mb-2{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.mt-4{margin-top:1rem}.mt-9{margin-top:2.25rem}.mt-auto{margin-top:auto}.ml-7{margin-left:1.75rem}.mt-5{margin-top:1.25rem}.mt-2\.5{margin-top:.625rem}.mt-2{margin-top:.5rem}.mb-9{margin-bottom:2.25rem}.mb-4{margin-bottom:1rem}.mb-\[18px\]{margin-bottom:18px}.mr-6{margin-right:1.5rem}.mr-\[42px\]{margin-right:42px}.mt-\[23px\]{margin-top:23px}.mb-7{margin-bottom:1.75rem}.mt-3{margin-top:.75rem}.mb-3{margin-bottom:.75rem}.mr-3{margin-right:.75rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mb-8{margin-bottom:2rem}.mb-6{margin-bottom:1.5rem}.mt-6{margin-top:1.5rem}.mr-8{margin-right:2rem}.ml-auto{margin-left:auto}.mr-5{margin-right:1.25rem}.mr-7{margin-right:1.75rem}.mb-\[26px\]{margin-bottom:26px}.mt-0{margin-top:0}.mr-2\.5{margin-right:.625rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.mb-3\.5{margin-bottom:.875rem}.mb-1{margin-bottom:.25rem}.mt-1\.5{margin-top:.375rem}.mt-1{margin-top:.25rem}.ml-3{margin-left:.75rem}.ml-px{margin-left:1px}.mt-0\.5{margin-top:.125rem}.ml-0\.5{margin-left:.125rem}.ml-0{margin-left:0}.ml-2\.5{margin-left:.625rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.h-\[24px\]{height:24px}.h-12{height:3rem}.h-\[70px\]{height:70px}.h-\[63px\]{height:63px}.h-8{height:2rem}.h-fit{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.h-10{height:2.5rem}.h-\[38px\]{height:38px}.h-\[1px\]{height:1px}.h-\[90px\]{height:90px}.h-\[48px\]{height:48px}.h-4{height:1rem}.h-\[50px\]{height:50px}.h-\[3px\]{height:3px}.h-0\.5{height:.125rem}.h-0{height:0}.h-\[100px\]{height:100px}.h-\[6px\]{height:6px}.h-5{height:1.25rem}.h-\[2px\]{height:2px}.max-h-0{max-height:0}.max-h-12{max-height:3rem}.min-h-\[70px\]{min-height:70px}.min-h-\[63px\]{min-height:63px}.min-h-\[32px\]{min-height:32px}.min-h-\[90px\]{min-height:90px}.min-h-\[420px\]{min-height:420px}.min-h-\[50px\]{min-height:50px}.min-h-\[100px\]{min-height:100px}.min-h-\[300px\]{min-height:300px}.min-h-\[320px\]{min-height:320px}.min-h-\[360px\]{min-height:360px}.min-h-\[6px\]{min-height:6px}.min-h-12{min-height:3rem}.w-\[24px\]{width:24px}.w-full{width:100%}.w-\[70px\]{width:70px}.w-\[84px\]{width:84px}.w-80{width:20rem}.w-\[63px\]{width:63px}.w-\[200px\]{width:200px}.w-8{width:2rem}.w-\[847px\]{width:847px}.w-\[465px\]{width:465px}.w-\[75px\]{width:75px}.w-\[280px\]{width:280px}.w-\[38px\]{width:38px}.w-\[364px\]{width:364px}.w-\[260px\]{width:260px}.w-\[125px\]{width:125px}.w-\[90px\]{width:90px}.w-\[48px\]{width:48px}.w-\[50px\]{width:50px}.w-\[100px\]{width:100px}.w-\[276px\]{width:276px}.w-12{width:3rem}.w-\[354px\]{width:354px}.w-4{width:1rem}.w-\[6px\]{width:6px}.w-\[36px\]{width:36px}.w-5{width:1.25rem}.w-\[1280px\]{width:1280px}.w-10{width:2.5rem}.min-w-\[70px\]{min-width:70px}.min-w-\[63px\]{min-width:63px}.min-w-\[364px\]{min-width:364px}.min-w-\[260px\]{min-width:260px}.min-w-\[32px\]{min-width:32px}.min-w-\[90px\]{min-width:90px}.min-w-\[600px\]{min-width:600px}.min-w-\[50px\]{min-width:50px}.min-w-\[100px\]{min-width:100px}.min-w-\[6px\]{min-width:6px}.min-w-12{min-width:3rem}.max-w-\[170px\]{max-width:170px}.max-w-\[600px\]{max-width:600px}.max-w-\[47rem\]{max-width:47rem}.max-w-\[580px\]{max-width:580px}.max-w-\[292px\]{max-width:292px}.max-w-\[308px\]{max-width:308px}.max-w-\[490px\]{max-width:490px}.max-w-\[149px\]{max-width:149px}.max-w-min{max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content}.flex-none{flex:none}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-\[226px\]{flex-basis:226px}.basis-\[calc\(50\%-20px\)\]{flex-basis:calc(50% - 20px)}.basis-full{flex-basis:100%}.basis-0{flex-basis:0px}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}.animate-slide{-webkit-animation:progress linear;animation:progress linear}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3\.5{gap:.875rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.gap-4{gap:1rem}.gap-1{gap:.25rem}.gap-\[54px\]{gap:54px}.gap-11{gap:2.75rem}.gap-\[14px\]{gap:14px}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-y-\[26px\]{row-gap:26px}.gap-x-24{-moz-column-gap:6rem;column-gap:6rem}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-3xl{border-radius:1.5rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-bl-3xl{border-bottom-left-radius:1.5rem}.rounded-br-3xl{border-bottom-right-radius:1.5rem}.border{border-width:1px}.border-0{border-width:0}.border-\[3px\]{border-width:3px}.border-2{border-width:2px}.border-y-0{border-bottom-width:0;border-top-width:0}.border-x-0{border-left-width:0;border-right-width:0}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-t-0{border-top-width:0}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-primary-text{--tw-border-opacity:1;border-color:rgba(28,28,28,var(--tw-border-opacity))}.border-main-divider{--tw-border-opacity:1;border-color:rgba(235,237,240,var(--tw-border-opacity))}.border-main-stroke{--tw-border-opacity:1;border-color:rgba(201,202,204,var(--tw-border-opacity))}.border-primary-main{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.border-main{--tw-border-opacity:1;border-color:rgba(240,244,240,var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-y-main-divider{--tw-border-opacity:1;border-bottom-color:rgba(235,237,240,var(--tw-border-opacity));border-top-color:rgba(235,237,240,var(--tw-border-opacity))}.bg-primary-main{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-main),var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-main{--tw-bg-opacity:1;background-color:rgba(240,244,240,var(--tw-bg-opacity))}.bg-secondary-text{--tw-bg-opacity:1;background-color:rgba(125,126,127,var(--tw-bg-opacity))}.bg-secondary-light{--tw-bg-opacity:1;background-color:rgba(245,247,249,var(--tw-bg-opacity))}.bg-main-divider{--tw-bg-opacity:1;background-color:rgba(235,237,240,var(--tw-bg-opacity))}.bg-inherit{background-color:inherit}.bg-white\/30{background-color:hsla(0,0%,100%,.3)}.bg-primary-main\/10{background-color:rgba(var(--color-primary-main),.1)}.bg-secondary-dark{--tw-bg-opacity:1;background-color:rgba(226,228,229,var(--tw-bg-opacity))}.bg-opacity-to-white{background-image:linear-gradient(270deg,#fff 34.89%,hsla(0,0%,100%,0) 92.52%);}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-main-gradient-start{--tw-gradient-from:rgba(var(--color-gradient-from),1);--tw-gradient-to:rgba(var(--color-gradient-from),0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-main-gradient-end{--tw-gradient-to:rgba(var(--color-gradient-to),1)}.to-transparent{--tw-gradient-to:transparent}.fill-secondary-light{fill:#f5f7f9}.p-\[50px\]{padding:50px}.p-0{padding:0}.p-12{padding:3rem}.p-10{padding:2.5rem}.p-20{padding:5rem}.p-4{padding:1rem}.p-\[49px\]{padding:49px}.p-9{padding:2.25rem}.p-7{padding:1.75rem}.p-2{padding:.5rem}.p-14{padding:3.5rem}.p-\[12px\]{padding:12px}.p-\[10px\]{padding:10px}.p-\[26px\]{padding:26px}.px-9{padding-left:2.25rem;padding-right:2.25rem}.py-\[9px\]{padding-bottom:9px;padding-top:9px}.px-0{padding-left:0;padding-right:0}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-\[50px\]{padding-bottom:50px;padding-top:50px}.py-\[11px\]{padding-bottom:11px;padding-top:11px}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-7{padding-bottom:1.75rem;padding-top:1.75rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.px-20{padding-left:5rem;padding-right:5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-12{padding-left:3rem;padding-right:3rem}.py-12{padding-bottom:3rem;padding-top:3rem}.px-\[88px\]{padding-left:88px;padding-right:88px}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-0{padding-bottom:0;padding-top:0}.px-8{padding-left:2rem;padding-right:2rem}.py-\[13px\]{padding-bottom:13px;padding-top:13px}.px-4{padding-right:1rem}.pl-4,.px-4{padding-left:1rem}.pl-12{padding-left:3rem}.pr-\[6\%\]{padding-right:6%}.pr-2\.5{padding-right:.625rem}.pr-2{padding-right:.5rem}.pb-5{padding-bottom:1.25rem}.pb-2{padding-bottom:.5rem}.pl-\[50px\]{padding-left:50px}.pr-\[50px\]{padding-right:50px}.pt-7{padding-top:1.75rem}.pb-\[46px\]{padding-bottom:46px}.pt-6{padding-top:1.5rem}.pt-0{padding-top:0}.pr-\[53px\]{padding-right:53px}.pl-11{padding-left:2.75rem}.pt-4{padding-top:1rem}.pb-8{padding-bottom:2rem}.pt-\[3px\]{padding-top:3px}.pt-\[30px\]{padding-top:30px}.pb-7{padding-bottom:1.75rem}.pt-5{padding-top:1.25rem}.pb-\[5px\]{padding-bottom:5px}.pt-\[5px\]{padding-top:5px}.pt-10{padding-top:2.5rem}.pb-\[50px\]{padding-bottom:50px}.pr-\[7\.5rem\]{padding-right:7.5rem}.pl-2\.5{padding-left:.625rem}.pt-2\.5{padding-top:.625rem}.pb-1\.5{padding-bottom:.375rem}.pr-\[6\.25rem\]{padding-right:6.25rem}.pl-2{padding-left:.5rem}.pt-2{padding-top:.5rem}.pb-1{padding-bottom:.25rem}.pb-\[2px\]{padding-bottom:2px}.pt-1{padding-top:.25rem}.pl-10{padding-left:2.5rem}.pr-\[14px\]{padding-right:14px}.pt-1\.5{padding-top:.375rem}.pl-1{padding-left:.25rem}.pr-4{padding-right:1rem}.pt-0\.5{padding-top:.125rem}.pr-3{padding-right:.75rem}.pr-28{padding-right:7rem}.pr-9{padding-right:2.25rem}.pr-\[4\.75rem\]{padding-right:4.75rem}.pr-\[9\.4rem\]{padding-right:9.4rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-sans{font-family:Ubuntu,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.375rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1.125rem}.text-lg{font-size:2.188rem;line-height:3rem}.text-xxs{font-size:.625rem;line-height:.625rem}.text-title-sm{font-size:1.75rem;line-height:2.5rem}.text-title-lg{font-size:2.5rem;line-height:3rem}.text-title{font-size:2rem;line-height:2.5rem}.text-title-xs{font-size:1.5rem;line-height:1.875rem}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-\[14px\]{line-height:14px}.text-secondary-text{--tw-text-opacity:1;color:rgba(125,126,127,var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-primary-text{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.text-primary-main{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.text-white\/80{color:hsla(0,0%,100%,.8)}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.opacity-80{opacity:.8}.opacity-60{opacity:.6}.shadow-\[0_8px_32px_0px_\#00000014\]{--tw-shadow:0 8px 32px 0px #00000014;--tw-shadow-colored:0 8px 32px 0px var(--tw-shadow-color)}.shadow-\[0_4px_25px_rgba\(0\2c 0\2c 0\2c 0\.07\)\],.shadow-\[0_8px_32px_0px_\#00000014\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_4px_25px_rgba\(0\2c 0\2c 0\2c 0\.07\)\]{--tw-shadow:0 4px 25px rgba(0,0,0,.07);--tw-shadow-colored:0 4px 25px var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-1000{transition-duration:1s}.rotate-180{transform:rotate(180deg)}.-translate-x-full{transform:translateX(-100%)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.horizontal-list{-webkit-overflow-scrolling:touch;display:flex;overflow-x:scroll;overscroll-behavior:contain;scroll-snap-type:x mandatory;touch-action:pan-x}.horizontal-list-item{flex-shrink:0;scroll-snap-align:start;scroll-snap-stop:always;width:100%}input[type=range].slider{-webkit-appearance:none;background:transparent;background-image:linear-gradient(#42ab44,#42ab44);background-repeat:no-repeat;border-radius:5px;height:4px}input[type=range].slider::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:18px;width:18px}input[type=range].slider::-moz-range-thumb{background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:12px;width:12px}input[type=range].slider::-ms-thumb{background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:18px;width:18px}.first\:pt-7:first-child{padding-top:1.75rem}.first\:pl-0:first-child{padding-left:0}.first\:pt-5:first-child{padding-top:1.25rem}.last\:mb-0:last-child{margin-bottom:0}.last\:border-b-0:last-child{border-bottom-width:0}.last\:pb-7:last-child{padding-bottom:1.75rem}.last\:pb-5:last-child{padding-bottom:1.25rem}.visited\:text-secondary-text:visited{color:rgba(125,126,127,var(--tw-text-opacity))}.checked\:border-primary-main:checked{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.checked\:bg-primary-main:checked{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-main),var(--tw-bg-opacity))}.hover\:border-primary-main:hover{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.hover\:bg-primary-hover:hover{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-hover),var(--tw-bg-opacity))}.hover\:bg-secondary-hover:hover{--tw-bg-opacity:1;background-color:rgba(var(--color-secondary-hover),var(--tw-bg-opacity))}.hover\:fill-primary-main:hover{fill:rgba(var(--color-primary-main),1)}.hover\:fill-secondary-hover:hover{fill:rgba(var(--color-secondary-hover),1)}.hover\:text-primary-main:hover{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.hover\:text-primary-text:hover{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.active\:bg-primary-active:active{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-active),var(--tw-bg-opacity))}.active\:bg-secondary-active:active{--tw-bg-opacity:1;background-color:rgba(var(--color-secondary-active),var(--tw-bg-opacity))}.group:last-child .group-last\:last\:pb-0:last-child{padding-bottom:0}.group:hover .group-hover\:text-primary-main{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.group:hover .group-hover\:text-primary-text{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.peer:checked~.peer-checked\:block{display:block}@media (min-width:1280px) and (max-width:1535px){.xl\:w-\[220px\]{width:220px}.xl\:gap-8{gap:2rem}.xl\:gap-5{gap:1.25rem}}
1
+ @import "../fonts/ubuntu/ubuntu.css";[data-theme=pc]{--color-primary-main:66,171,68;--color-primary-hover:36,131,65;--color-primary-active:36,95,52;--color-secondary-hover:216,242,217;--color-secondary-active:197,226,198;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=bc]{--color-primary-main:131,184,62;--color-primary-hover:92,146,29;--color-primary-active:60,94,16;--color-secondary-hover:232,244,217;--color-secondary-active:216,227,202;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo]{--color-primary-main:221,182,61;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo2]{--color-primary-main:255,204,0;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo3]{--color-primary-main:225,186,30;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo4]{--color-primary-main:233,191,23;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}.container{margin-left:auto;margin-right:auto;width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.inset-x-0{left:0;right:0}.top-1{top:.25rem}.right-1{right:.25rem}.top-7{top:1.75rem}.right-7{right:1.75rem}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.top-4{top:1rem}.right-4{right:1rem}.left-0{left:0}.top-1\/2{top:50%}.left-8{left:2rem}.left-1{left:.25rem}.-bottom-2{bottom:-.5rem}.top-8{top:2rem}.z-10{z-index:10}.col-span-12{grid-column:span 12/span 12}.col-span-8{grid-column:span 8/span 8}.col-span-4{grid-column:span 4/span 4}.col-span-6{grid-column:span 6/span 6}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.mx-7{margin-left:1.75rem;margin-right:1.75rem}.-mx-20{margin-left:-5rem;margin-right:-5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mb-2\.5{margin-bottom:.625rem}.mb-2{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.mt-4{margin-top:1rem}.mt-9{margin-top:2.25rem}.mt-auto{margin-top:auto}.ml-7{margin-left:1.75rem}.mt-5{margin-top:1.25rem}.mt-2\.5{margin-top:.625rem}.mt-2{margin-top:.5rem}.mb-9{margin-bottom:2.25rem}.mb-4{margin-bottom:1rem}.mb-\[18px\]{margin-bottom:18px}.mr-6{margin-right:1.5rem}.mr-\[42px\]{margin-right:42px}.mt-\[23px\]{margin-top:23px}.mb-7{margin-bottom:1.75rem}.mt-3{margin-top:.75rem}.mb-3{margin-bottom:.75rem}.mr-3{margin-right:.75rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mb-8{margin-bottom:2rem}.mb-6{margin-bottom:1.5rem}.mt-6{margin-top:1.5rem}.mr-8{margin-right:2rem}.ml-auto{margin-left:auto}.mr-5{margin-right:1.25rem}.mr-7{margin-right:1.75rem}.mt-0{margin-top:0}.mb-\[26px\]{margin-bottom:26px}.mr-2\.5{margin-right:.625rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.mb-3\.5{margin-bottom:.875rem}.mb-1{margin-bottom:.25rem}.mt-1\.5{margin-top:.375rem}.mt-1{margin-top:.25rem}.ml-3{margin-left:.75rem}.ml-px{margin-left:1px}.mt-0\.5{margin-top:.125rem}.ml-0\.5{margin-left:.125rem}.ml-0{margin-left:0}.ml-2\.5{margin-left:.625rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.h-\[24px\]{height:24px}.h-12{height:3rem}.h-\[70px\]{height:70px}.h-\[63px\]{height:63px}.h-8{height:2rem}.h-fit{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.h-10{height:2.5rem}.h-\[38px\]{height:38px}.h-\[1px\]{height:1px}.h-\[90px\]{height:90px}.h-\[48px\]{height:48px}.h-4{height:1rem}.h-\[50px\]{height:50px}.h-\[3px\]{height:3px}.h-0\.5{height:.125rem}.h-0{height:0}.h-\[100px\]{height:100px}.h-\[6px\]{height:6px}.h-5{height:1.25rem}.h-\[2px\]{height:2px}.max-h-0{max-height:0}.max-h-12{max-height:3rem}.min-h-\[70px\]{min-height:70px}.min-h-\[63px\]{min-height:63px}.min-h-\[32px\]{min-height:32px}.min-h-\[90px\]{min-height:90px}.min-h-\[420px\]{min-height:420px}.min-h-\[50px\]{min-height:50px}.min-h-\[100px\]{min-height:100px}.min-h-\[300px\]{min-height:300px}.min-h-\[320px\]{min-height:320px}.min-h-\[360px\]{min-height:360px}.min-h-\[6px\]{min-height:6px}.min-h-12{min-height:3rem}.w-\[24px\]{width:24px}.w-full{width:100%}.w-\[70px\]{width:70px}.w-\[84px\]{width:84px}.w-80{width:20rem}.w-\[63px\]{width:63px}.w-\[200px\]{width:200px}.w-8{width:2rem}.w-\[847px\]{width:847px}.w-\[465px\]{width:465px}.w-\[75px\]{width:75px}.w-\[280px\]{width:280px}.w-\[38px\]{width:38px}.w-\[364px\]{width:364px}.w-\[260px\]{width:260px}.w-\[125px\]{width:125px}.w-\[90px\]{width:90px}.w-\[48px\]{width:48px}.w-\[50px\]{width:50px}.w-\[100px\]{width:100px}.w-\[276px\]{width:276px}.w-12{width:3rem}.w-\[354px\]{width:354px}.w-4{width:1rem}.w-\[6px\]{width:6px}.w-\[36px\]{width:36px}.w-5{width:1.25rem}.w-\[1280px\]{width:1280px}.w-10{width:2.5rem}.min-w-\[70px\]{min-width:70px}.min-w-\[63px\]{min-width:63px}.min-w-\[364px\]{min-width:364px}.min-w-\[260px\]{min-width:260px}.min-w-\[32px\]{min-width:32px}.min-w-\[90px\]{min-width:90px}.min-w-\[600px\]{min-width:600px}.min-w-\[50px\]{min-width:50px}.min-w-\[100px\]{min-width:100px}.min-w-\[6px\]{min-width:6px}.min-w-12{min-width:3rem}.max-w-\[170px\]{max-width:170px}.max-w-\[600px\]{max-width:600px}.max-w-\[47rem\]{max-width:47rem}.max-w-\[580px\]{max-width:580px}.max-w-\[292px\]{max-width:292px}.max-w-\[308px\]{max-width:308px}.max-w-\[490px\]{max-width:490px}.max-w-\[149px\]{max-width:149px}.max-w-min{max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content}.flex-none{flex:none}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-\[226px\]{flex-basis:226px}.basis-\[calc\(50\%-20px\)\]{flex-basis:calc(50% - 20px)}.basis-full{flex-basis:100%}.basis-0{flex-basis:0px}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}.animate-slide{-webkit-animation:progress linear;animation:progress linear}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3\.5{gap:.875rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.gap-4{gap:1rem}.gap-1{gap:.25rem}.gap-\[54px\]{gap:54px}.gap-11{gap:2.75rem}.gap-\[14px\]{gap:14px}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-y-\[26px\]{row-gap:26px}.gap-x-24{-moz-column-gap:6rem;column-gap:6rem}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-3xl{border-radius:1.5rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-bl-3xl{border-bottom-left-radius:1.5rem}.rounded-br-3xl{border-bottom-right-radius:1.5rem}.border{border-width:1px}.border-0{border-width:0}.border-\[3px\]{border-width:3px}.border-2{border-width:2px}.border-y-0{border-bottom-width:0;border-top-width:0}.border-x-0{border-left-width:0;border-right-width:0}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-t-0{border-top-width:0}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-primary-text{--tw-border-opacity:1;border-color:rgba(28,28,28,var(--tw-border-opacity))}.border-main-divider{--tw-border-opacity:1;border-color:rgba(235,237,240,var(--tw-border-opacity))}.border-main-stroke{--tw-border-opacity:1;border-color:rgba(201,202,204,var(--tw-border-opacity))}.border-primary-main{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.border-main{--tw-border-opacity:1;border-color:rgba(240,244,240,var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-y-main-divider{--tw-border-opacity:1;border-bottom-color:rgba(235,237,240,var(--tw-border-opacity));border-top-color:rgba(235,237,240,var(--tw-border-opacity))}.bg-primary-main{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-main),var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-main{--tw-bg-opacity:1;background-color:rgba(240,244,240,var(--tw-bg-opacity))}.bg-secondary-text{--tw-bg-opacity:1;background-color:rgba(125,126,127,var(--tw-bg-opacity))}.bg-secondary-light{--tw-bg-opacity:1;background-color:rgba(245,247,249,var(--tw-bg-opacity))}.bg-main-divider{--tw-bg-opacity:1;background-color:rgba(235,237,240,var(--tw-bg-opacity))}.bg-inherit{background-color:inherit}.bg-white\/30{background-color:hsla(0,0%,100%,.3)}.bg-primary-main\/10{background-color:rgba(var(--color-primary-main),.1)}.bg-secondary-dark{--tw-bg-opacity:1;background-color:rgba(226,228,229,var(--tw-bg-opacity))}.bg-opacity-to-white{background-image:linear-gradient(270deg,#fff 34.89%,hsla(0,0%,100%,0) 92.52%);}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-main-gradient-start{--tw-gradient-from:rgba(var(--color-gradient-from),1);--tw-gradient-to:rgba(var(--color-gradient-from),0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-main-gradient-end{--tw-gradient-to:rgba(var(--color-gradient-to),1)}.to-transparent{--tw-gradient-to:transparent}.fill-secondary-light{fill:#f5f7f9}.p-\[50px\]{padding:50px}.p-0{padding:0}.p-12{padding:3rem}.p-10{padding:2.5rem}.p-20{padding:5rem}.p-4{padding:1rem}.p-\[49px\]{padding:49px}.p-9{padding:2.25rem}.p-7{padding:1.75rem}.p-2{padding:.5rem}.p-14{padding:3.5rem}.p-\[12px\]{padding:12px}.p-\[10px\]{padding:10px}.p-\[26px\]{padding:26px}.px-9{padding-left:2.25rem;padding-right:2.25rem}.py-\[9px\]{padding-bottom:9px;padding-top:9px}.px-0{padding-left:0;padding-right:0}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-\[50px\]{padding-bottom:50px;padding-top:50px}.py-\[11px\]{padding-bottom:11px;padding-top:11px}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-7{padding-bottom:1.75rem;padding-top:1.75rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.px-20{padding-left:5rem;padding-right:5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-12{padding-left:3rem;padding-right:3rem}.py-12{padding-bottom:3rem;padding-top:3rem}.px-\[88px\]{padding-left:88px;padding-right:88px}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-0{padding-bottom:0;padding-top:0}.px-8{padding-left:2rem;padding-right:2rem}.py-\[13px\]{padding-bottom:13px;padding-top:13px}.px-4{padding-right:1rem}.pl-4,.px-4{padding-left:1rem}.pl-12{padding-left:3rem}.pr-\[6\%\]{padding-right:6%}.pr-2\.5{padding-right:.625rem}.pr-2{padding-right:.5rem}.pb-5{padding-bottom:1.25rem}.pb-2{padding-bottom:.5rem}.pl-\[50px\]{padding-left:50px}.pr-\[50px\]{padding-right:50px}.pt-7{padding-top:1.75rem}.pb-\[46px\]{padding-bottom:46px}.pt-6{padding-top:1.5rem}.pt-0{padding-top:0}.pr-\[53px\]{padding-right:53px}.pl-11{padding-left:2.75rem}.pt-4{padding-top:1rem}.pb-8{padding-bottom:2rem}.pt-\[3px\]{padding-top:3px}.pt-\[30px\]{padding-top:30px}.pb-7{padding-bottom:1.75rem}.pt-5{padding-top:1.25rem}.pb-\[5px\]{padding-bottom:5px}.pt-\[5px\]{padding-top:5px}.pt-10{padding-top:2.5rem}.pb-\[50px\]{padding-bottom:50px}.pr-\[7\.5rem\]{padding-right:7.5rem}.pl-2\.5{padding-left:.625rem}.pt-2\.5{padding-top:.625rem}.pb-1\.5{padding-bottom:.375rem}.pr-\[6\.25rem\]{padding-right:6.25rem}.pl-2{padding-left:.5rem}.pt-2{padding-top:.5rem}.pb-1{padding-bottom:.25rem}.pb-\[2px\]{padding-bottom:2px}.pt-1{padding-top:.25rem}.pl-10{padding-left:2.5rem}.pr-\[14px\]{padding-right:14px}.pt-1\.5{padding-top:.375rem}.pl-1{padding-left:.25rem}.pr-4{padding-right:1rem}.pt-0\.5{padding-top:.125rem}.pr-3{padding-right:.75rem}.pr-28{padding-right:7rem}.pr-9{padding-right:2.25rem}.pr-\[4\.75rem\]{padding-right:4.75rem}.pr-\[9\.4rem\]{padding-right:9.4rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-sans{font-family:Ubuntu,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.375rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1.125rem}.text-lg{font-size:2.188rem;line-height:3rem}.text-xxs{font-size:.625rem;line-height:.625rem}.text-title-sm{font-size:1.75rem;line-height:2.5rem}.text-title-lg{font-size:2.5rem;line-height:3rem}.text-title{font-size:2rem;line-height:2.5rem}.text-title-xs{font-size:1.5rem;line-height:1.875rem}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-\[14px\]{line-height:14px}.text-secondary-text{--tw-text-opacity:1;color:rgba(125,126,127,var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-primary-text{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.text-primary-main{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.text-white\/80{color:hsla(0,0%,100%,.8)}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.opacity-80{opacity:.8}.opacity-60{opacity:.6}.shadow-\[0_8px_32px_0px_\#00000014\]{--tw-shadow:0 8px 32px 0px #00000014;--tw-shadow-colored:0 8px 32px 0px var(--tw-shadow-color)}.shadow-\[0_4px_25px_rgba\(0\2c 0\2c 0\2c 0\.07\)\],.shadow-\[0_8px_32px_0px_\#00000014\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_4px_25px_rgba\(0\2c 0\2c 0\2c 0\.07\)\]{--tw-shadow:0 4px 25px rgba(0,0,0,.07);--tw-shadow-colored:0 4px 25px var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-1000{transition-duration:1s}.rotate-180{transform:rotate(180deg)}.-translate-x-full{transform:translateX(-100%)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.horizontal-list{-webkit-overflow-scrolling:touch;display:flex;overflow-x:scroll;overscroll-behavior:contain;scroll-snap-type:x mandatory;touch-action:pan-x}.horizontal-list-item{flex-shrink:0;scroll-snap-align:start;scroll-snap-stop:always;width:100%}input[type=range].slider{-webkit-appearance:none;background:transparent;background-image:linear-gradient(#42ab44,#42ab44);background-repeat:no-repeat;border-radius:5px;height:4px}input[type=range].slider::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:18px;width:18px}input[type=range].slider::-moz-range-thumb{background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:12px;width:12px}input[type=range].slider::-ms-thumb{background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:18px;width:18px}.first\:pt-7:first-child{padding-top:1.75rem}.first\:pl-0:first-child{padding-left:0}.first\:pt-5:first-child{padding-top:1.25rem}.last\:mb-0:last-child{margin-bottom:0}.last\:border-b-0:last-child{border-bottom-width:0}.last\:pb-7:last-child{padding-bottom:1.75rem}.last\:pb-5:last-child{padding-bottom:1.25rem}.visited\:text-secondary-text:visited{color:rgba(125,126,127,var(--tw-text-opacity))}.checked\:border-primary-main:checked{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.checked\:bg-primary-main:checked{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-main),var(--tw-bg-opacity))}.hover\:border-primary-main:hover{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.hover\:bg-primary-hover:hover{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-hover),var(--tw-bg-opacity))}.hover\:bg-secondary-hover:hover{--tw-bg-opacity:1;background-color:rgba(var(--color-secondary-hover),var(--tw-bg-opacity))}.hover\:fill-primary-main:hover{fill:rgba(var(--color-primary-main),1)}.hover\:fill-secondary-hover:hover{fill:rgba(var(--color-secondary-hover),1)}.hover\:text-primary-main:hover{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.hover\:text-primary-text:hover{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.active\:bg-primary-active:active{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-active),var(--tw-bg-opacity))}.active\:bg-secondary-active:active{--tw-bg-opacity:1;background-color:rgba(var(--color-secondary-active),var(--tw-bg-opacity))}.group:last-child .group-last\:last\:pb-0:last-child{padding-bottom:0}.group:hover .group-hover\:text-primary-main{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.group:hover .group-hover\:text-primary-text{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.peer:checked~.peer-checked\:block{display:block}@media (min-width:1280px) and (max-width:1535px){.xl\:w-\[220px\]{width:220px}.xl\:gap-8{gap:2rem}.xl\:gap-5{gap:1.25rem}}
@@ -7,26 +7,11 @@ import { Icon } from '../../ui-kit/Icon/Icon.js';
7
7
  import { Img } from '../../ui-kit/Img.js';
8
8
  import { Title } from '../../ui-kit/Title/Title.js';
9
9
  import { getColSpan } from '../../utils/getColSpan.js';
10
- const alignFlex = {
11
- left: 'justify-between',
12
- center: 'justify-center',
13
- right: 'justify-end',
14
- };
15
- const alignBlock = {
16
- left: 'items-start',
17
- center: 'items-center',
18
- right: 'items-end',
19
- };
20
- const alignText = {
21
- left: 'text-left',
22
- center: 'text-center',
23
- right: 'text-right',
24
- };
25
10
  const TITLE_CLASSES = 'font-medium m-0 whitespace-pre-wrap max-w-[600px]';
26
- export const BaseTile = JSX(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', align = 'left', }) => {
11
+ export const BaseTile = JSX(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', }) => {
27
12
  const router = context.useRouter();
28
13
  const { handlerDecorator } = context;
29
- return (_jsxs("div", { className: `font-sans flex flex-col grow h-full ${alignBlock[align]}`, children: [title && (_jsx(Title, { size: titleSize || getTitleSizeByClassName(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), _jsxs("div", { className: `flex grow w-full ${alignFlex[align]}`, children: [_jsxs("div", { className: `flex flex-col justify-between ${alignBlock[align]}`, children: [_jsxs("div", { children: [description ? (_jsx("div", { className: `font-normal text-base mt-4 max-w-[600px] ${alignText[align]}`, children: description })) : null, children, items?.length ? renderItems(items, version) : null] }), buttons?.length ? (_jsx("div", { className: "flex mt-9 gap-3", children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })) : null] }), image?.src && _jsx(Img, { className: "mt-auto ml-7", image: image })] })] }));
14
+ return (_jsxs("div", { className: `font-sans flex flex-col grow h-full items-start`, children: [title && (_jsx(Title, { size: titleSize || getTitleSizeByClassName(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), _jsxs("div", { className: `flex grow w-full justify-between`, children: [_jsxs("div", { className: `flex flex-col justify-between items-start`, children: [_jsxs("div", { children: [description ? (_jsx("div", { className: `font-normal text-base mt-4 max-w-[600px]`, children: description })) : null, children, items?.length ? renderItems(items, version) : null] }), buttons?.length ? (_jsx("div", { className: "flex mt-9 gap-3", children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })) : null] }), image?.src && _jsx(Img, { className: "mt-auto ml-7", image: image })] })] }));
30
15
  });
31
16
  function getTitleSizeByClassName(className = '') {
32
17
  const colSpan = getColSpan(className);
@@ -1 +1 @@
1
- {"version":3,"file":"BaseTile.js","sourceRoot":"","sources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AC,IAAI,EAAE,IAAI,EAAE,KAAK,QAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,KACzD,MAAM,IAFL,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvC,CAAC;AACJ,CAAC"}
@@ -14,7 +14,7 @@ export const Sitemap = JSX(({ className, items, context }) => {
14
14
  });
15
15
  const renderColumn = (c, index, { router, handlerDecorator }) => {
16
16
  const { text, href, items, target } = c;
17
- return (_jsxs("div", { className: "flex flex-col gap-[14px]", children: [_jsx("a", { className: "block font-sans font-medium text-base text-primary-text no-underline", href: href, target: target || '_self', children: text || `Раздел ${index}` }), items?.map((_, i) => (_jsx(ColumnItem, { ...useLink({ router, handlerDecorator }, _) }, String(i))))] }, String(index)));
17
+ return (_jsxs("div", { className: "flex flex-col gap-[14px]", children: [_jsx("a", { className: "block font-sans font-medium text-base text-primary-text no-underline", href: href, target: target || '_self', children: text || `Раздел ${index}` }), items?.map((_, i) => (_jsx(ColumnItem, { ...useLink({ router, handlerDecorator }, _), index: i }, String(i))))] }, String(index)));
18
18
  };
19
19
  const ColumnItem = JSX(({ text, href, target, index }) => (_jsx("a", { className: "block font-sans font-normal text-base text-secondary-text hover:text-primary-main no-underline", href: href, target: target || '_self', children: text || `Раздел ${index}` })));
20
20
  //# sourceMappingURL=Sitemap.js.map