@redneckz/wildless-cms-uni-blocks 0.9.7 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/bundle.umd.js +6 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
- package/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
- package/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
- package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
- package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +3 -3
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -8
- package/mobile/src/ui-kit/LinkWrapper/LinkWrapper.tsx +2 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -1
- package/package.json +1 -1
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -2
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +3 -3
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -8
- package/src/ui-kit/LinkWrapper/LinkWrapper.tsx +2 -1
- package/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),r=n("useState"),i=n("useEffect"),a=n("useCallback"),l=n("useMemo"),s=n("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;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||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:r}=await e.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),g=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:b(e)),t._tmpl},b=e=>{function t(t,n){const{children:r,...i}=t||{},a=n?.slots?.default,l=r||a&&a();return e(Object.assign(i,l&&{children:l}),n)}return t.inheritAttrs=!1,t},x={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},f=g((e=>{const{className:t,headingType:n="h3",title:r,as:i="h3"}=e;return u(i,{className:`font-sans font-medium m-0 ${x[n]} ${t||""}`,children:r})})),y=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),v=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`});function N(e,{sensitivity:t,rootRef:n}={}){const r=s(null),a=l((()=>({threshold:w(t),root:n?.current})),[t,n?.current]);return i((()=>{if(!r.current)return;const t=new IntersectionObserver(e,a);return t.observe(r.current),()=>{t.disconnect()}}),[e,a]),r}function w(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const k=g((({className:e="",style:t,idx:n,activeIndex:r,observerOptions:i,children:l,onIntersection:s})=>{const o=N(a((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),i);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(n===r),ref:o,children:l})})),C=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],T=g((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:r=0,gap:i=0,padding:l=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const g={sensitivity:1,rootRef:t},b=s([]),x=a(((e,t)=>{const n=[...b.current||[]];n[e]=t,b.current=n,h&&h(n),p&&p(_(n))}),[h,p]),f=r>0?i*Number(r)-1:0,N="vertical-list"===o,w="horizontal-list"===o,T={...w?S(l,f):{},...N?v(d):{},gap:`${i}px`};return u("div",{className:y("box-border overflow-auto no-scrollbar",o,e),style:T,ref:t,children:(I=(e,t)=>u(k,{className:y(c,r?C[r-1]:"",N?"h-full":""),style:w?S(l/4):{},activeIndex:n,idx:t,observerOptions:g,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(I):I(e,0))(m)});var I})),S=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),_=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),I={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},$={"horizontal-list":"w-6","vertical-list":"h-6"},M=g((({containerRef:e,activeIndex:t,dotCount:n=0,listType:r="horizontal-list",version:i})=>n?u("div",{className:y("flex gap-2",I[r],i?"group":""),...i?{"data-ver":i}:{},children:new Array(n).fill(null).map(((n,i)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${i===t?$[r]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(i)},String(i))))}):null)),A=e=>e,j=(e=A)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),R=j(),O=(e=A)=>j((t=>-e(t))),L=e=>t=>e.scrollWidth/t,P=e=>(t,n)=>{e.scrollBy({left:n*L(e)(t),behavior:"smooth"})},D=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const i=s(null),[l,o]=r([]),c=a((e=>{o((t=>{return(n=t)===(r=e)||Boolean(n&&r&&n?.length===r?.length&&n.every(((e,t)=>e===r[t])))?t:e;var n,r})),n&&n(e)}),[e]),[d,m]=l.length?[O()(l),j()(l)]:[-1,-1],h=d>0,u=m<e-1,p=a((()=>{var n;i.current&&(t&&!h?(n=i.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):P(i.current)(e,-1))}),[t,e,h]),g=a((()=>{i.current&&(t&&!u?i.current.scrollTo({left:0,behavior:"smooth"}):P(i.current)(e,1))}),[e,t,u]);return[i,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},V=g((({className:e="",gap:t=14,padding:n=16,showDots:r=!0,minHeight:i,children:a,onVisibleIndicesChange:l,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(a)?a.length:0,[d,m]=D({itemCount:c,onVisibleIndicesChange:l}),[h]=m.visibleIndicesRange;return p("div",{className:y(e,"vertical-list"===s?"relative h-full":""),children:[u(T,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:i,children:a}),r?u(M,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})}));class B{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const E=new B,z=(e="")=>({open:t=>E.fire("dialog",{type:"open",id:e,message:t}),close:()=>E.fire("dialog",{type:"close"})}),F=e=>Boolean(e?.includes(":")),H=(e,t)=>Boolean(e&&!F(e)&&(!t||"_self"===t)),G=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),J=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var U=Object.freeze({__proto__:null,isURL:F,isLocalURL:H,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:G,joinPath:J});const X=e=>t=>{if(!t||F(t)||c.CDN&&t.startsWith(c.CDN))return t;const n=t.startsWith("/");return J(c.BASE_PATH,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},W=(e,t)=>W._impl(e,t);function Y(){return Y._impl()}function K(e=!1){const t=Y(),{close:n}=z();return n=>({...n,href:e?n.href:X(t)(n.href),"aria-label":n.text,onClick:W(r(n),n)});function r({href:r,target:i,onClick:a}){return l=>{a&&a(l),r&&!e&&H(r,i)&&(n(),l?.preventDefault(),t.push(r))}}}W._impl=e=>e,W.setup=e=>{W._impl=e},Y._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),Y.setup=e=>{Y._impl=e};const Q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},q="bg-main-divider text-main-disabled",Z={primary:q,secondary:q,white:q,link:"",transparent:"",gray:q,"":""},ee="text-center font-sans select-none",te={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},ne=g((e=>{const{text:t,aboveText:n,appendLeft:r,appendRight:i,version:a="primary"}=e;return p("div",{className:re(e),children:[r?u("div",{className:te[a],children:r}):null,ie(e)?p("div",{children:[n?u("div",{className:"text-xs-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,i?u("div",{className:te[a],children:i}):null]})})),re=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const i="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",ie(e)?i:"h-12 w-12",r?"rounded-full":""].join(" ")},ie=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ae=({className:e,rounded:t,version:n})=>["inline-block",ee,n?Z[n]:"",t?"rounded-full":"rounded-md",e].join(" "),le=({className:e,rounded:t,version:n})=>[ee,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",n?Q[n]:"",t?"rounded-full":"rounded-md",e].join(" "),se=g((({disabled:e,children:t,...n})=>{const r=K()(n),i=t??u(ne,{...r});return u(e?ce:oe,{...r,children:i})})),oe=g((({className:e="",href:t,rel:n,target:r,ariaLabel:i,version:a,rounded:l,onClick:s,children:o})=>u("a",{className:le({className:e,version:a,rounded:l}),href:t,rel:n,target:r,"aria-label":i,role:t?"link":"button",onClick:s,children:o}))),ce=g((({className:e,ariaLabel:t,version:n,rounded:r,children:i})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ae({className:e,rounded:r,version:n}),children:i}))),de={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},me=g((({className:e="",imageClassName:t="",name:n="",alt:r=`Иконка ${n}`,title:i=r,iconVersion:a="color",asSVG:l,...s})=>{const o=Y(),d=X(o)(J(c.CDN,"/icons",`${n}.svg`));return l&&"normal"!==a?u(ue,{className:e,children:p("svg",{className:y(he(s.width),de[a],"white"===a?"invert":"",t),...s,"aria-hidden":"true",children:[i?u("title",{children:i}):null,r?u("desc",{children:r}):null,u("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]})}):(e.includes("h-")||(s.style={height:`${s.height}px`}),u("img",{className:e,src:d,alt:r,title:i,"aria-hidden":"true",...s}))})),he=e=>e?"":"w-full h-full",ue=g((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),pe=(e,t)=>e?.media&&t?.media?e.media-t.media:0,ge=g((({className:e="",image:t,imageClassName:n="",isMobile:r=!1,pathPrefix:i})=>{const a=Y();return p("picture",{className:`${r?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(pe).map((({src:e,format:n,media:r},l)=>u("source",{srcSet:xe(a,i)(e),type:fe(n),media:r?`(max-width: ${r}px)`:"",...t.size},`${l}_${e}`))):null,t?.src?be({...t,src:xe(a,i)(t.src)},n,r):null]})})),be=(e,t="",n=!1)=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},i=e.title||"",a=e.alt||e.title,l=n?"m-auto":"m-0";return u("img",{src:e.src,className:`${l} ${t}`,alt:a,title:i,style:r,...e.size})},xe=(e,t)=>n=>n&&!F(n)?X(e)(J(t,n)):n,fe=e=>e?`image/${String(e)}`:void 0,ye=g((({className:e="",image:t,imageClassName:n="",isMobile:r,pathPrefix:i,...a})=>t?.src||t?.icon?t.icon?u(me,{className:e,imageClassName:n,iconVersion:t?.iconVersion||"normal",name:t.icon,...a}):u(ge,{className:e,imageClassName:n,image:t,isMobile:r,pathPrefix:i}):null)),ve=g((e=>u(ye,{...e,isMobile:!0}))),Ne=(e=!1)=>e?"text-white":"",we=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),ke=g((({icon:e,image:t,title:n,subtitle:r,isFillGradient:i})=>p("div",{role:"columnheader",children:[e?u(ve,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&u("div",{className:"mb-3.5",children:u(ve,{image:t})}),n?u(f,{headingType:"h4",className:Ne(i),title:n}):null,r?u("div",{className:we(i),children:r}):null]}))),Ce=g((({cell:e,rowHeader:t,isFillGradient:n=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Te(n,t))})}))),Te=(e,t)=>({label:n,description:r},i)=>p("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),p("div",{className:"basis-1/2",children:[n?u("div",{className:"text-right "+(e?"text-white":""),children:n}):null,r?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:r}):null]})]},String(i)),Se=g((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:r,showRow:i,onToggleColumn:a})=>{const l=t?.slice(0,i?t.length:n),s=r?"secondary":"primary";return p("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${r?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(ke,{...e,isFillGradient:r}),l?.length?l.map((({rowHeader:e,cell:t},n)=>u(Ce,{cell:t,rowHeader:e,isFillGradient:r},String(n)))):null,i&&e?.link?u(se,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,_e({onToggleColumn:a,isFillGradient:r,showRow:i})]})})),_e=({onToggleColumn:e,isFillGradient:t,showRow:n})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Ie=g((e=>{const{className:t,title:n}=e;return p("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?u(f,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,u("div",{role:"table",children:u($e,{...e})})]})})),$e=g((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:i,orientation:l,...s})=>{const[o,c]=r(new Array(e.length).fill(!i)),d=a((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=a((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:r},a)=>{return u(Se,{visibleRowLength:i,showRow:o[a],header:r,columnData:(l=e,l?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===a&&n,onToggleColumn:()=>d(a),...s},String(a));var l}));return"horizontal"===l?u(V,{onVisibleIndicesChange:m,children:h}):h})),Me=new Map;function Ae(e,t,{fallback:n}={}){const a=l((()=>je(e)),[e]),[s,o]=r(),[c,d]=r(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};i((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>Me.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=n&&"string"==typeof u&&n[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function je(e){return e?Array.isArray(e)?e:e instanceof Function?je(e()):[e]:[e]}async function Re(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Oe(e,t={}){const{data:n}=Ae(`/wcms-resources/${e}.json`,Re,{fallback:t});return n||{}}const Le=new B;const Pe={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},De=g((({className:e="",version:t="primary",isTheme:n=!0,block:l,tag:s="section",role:o,children:c})=>{const d=s,m=function(e){return N(a((t=>{if(!e||!t?.length)return;const n=t[t.length-1];Le.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(l),[h,p]=r(!1);return i((()=>E.subscribe("tab",(e=>{p(Boolean(e.label&&l?.labels?.length&&!l.labels.includes(e.label)))}))),[l]),u(d,{className:y(Ve(Boolean(t&&n)),Pe[t],h?"hidden":"",e),...t&&n?{"data-ver":t}:{},...l?.anchor?{id:l.anchor,ref:m}:{},role:o,children:c})})),Ve=e=>e?"group":"",Be=g((({className:e,onClick:t})=>u("button",{className:y("visible peer-placeholder-shown:invisible w-6 h-6 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(ve,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Ee(e){throw new Error(e)}function ze({onOpen:e,onClose:t}={}){i((()=>E.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:Ee(n)}}))),[e,t])}function Fe(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const He=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:r,s2Matches:i}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),r=new Array(e.length),i=new Array(t.length);let a=0;for(let l=0;l<e.length;l++){const s=Math.max(0,l-n),o=Math.min(l+n,t.length-1);for(let n=s;n<=o;n++)r[l]||i[n]||e[l]!==t[n]||(a++,r[l]=!0,i[n]=!0)}return{m:a,s1Matches:r,s2Matches:i}}(e,t);if(0===n)return 0;const a=function(e,t,{s1Matches:n,s2Matches:r}){let i=0;for(let a=0,l=0;a<e.length;a++){if(!n[a])continue;let s=l;for(;s<t.length;s++)if(r[s]){l=s+1;break}e[a]!==t[s]&&i++}return i}(e,t,{s1Matches:r,s2Matches:i}),l=(n/e.length+n/t.length+(n-a/2)/n)/3,s=l>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return l+s*(1-l)};const Ge=(e,t)=>(n,r)=>{for(const[i,a]of r)n.set(i,e(n.get(i)||t,a));return n},Je=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Ue=e=>t=>e.map((([e,n])=>[He(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>We(t,e))).reduce(Ge(Math.max,0),new Map),Xe=e=>t=>{return Fe(t,t.map((({title:e})=>e)).map((e=>t=>{const n=Je(t||"");return n.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>R(n.map(He(e)))))):0})(e))).sort((r=([,e])=>e,n=(e,t)=>r(e)-r(t),(e,t)=>-n(e,t))).map((([e])=>e));var n,r},We=(e,t)=>new Map(e.map((e=>[e,t]))),Ye=({basePathList:e=["/"],initialQuery:t="",wasOpened:n})=>{const[a,s]=r(t||"");i((()=>{null!=t&&s(t)}),[t]);const o=l((()=>e.map((e=>n?e:null))),[n,...e]),{data:c}=Ae(o,Ke),[d,m]=r(null);return((e,t,n=300)=>{i((()=>{const t=setTimeout(e,n);return()=>{clearTimeout(t)}}),t)})((()=>{c&&m(c.map((e=>t=>{const{corpus:n,dictionary:r}=t||{};if(!(e&&n?.length&&r&&Object.keys(r).length))return[];const i=Je(e);if(!i.length)return[];const a=Object.entries(r),l=[...i.map(Ue(a)).reduce(Ge(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*i.length)).map((([e])=>n[e]));return Xe(i)(l)})(a)))}),[c,a]),[d,{value:a,onChange:s}]},Ke=async(...e)=>(await Promise.allSettled(e.map((e=>async function(e,t){try{return e?await Re(e,t):null}catch(e){console.error(e)}return null}(J(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),Qe=g((({className:e,isOpened:t,head:n,children:r,onClose:a})=>(i((()=>{const e=({key:e})=>{"Escape"===e&&a&&a()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[a]),t?u("div",{className:y("fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-12 min-h-full",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(Be,{className:"absolute top-3 -right-6",onClick:a}),n]}),r]})}):null)));function qe(e=!1){const[t,n]=r(e),i=a((()=>n(!0)),[]),l=a((()=>n(!1)),[]),s=a((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:i,setFalse:l,toggle:s}]}const Ze=g((({className:e,topItems:t})=>{const n=K(!0);return u("div",{className:y("flex items-start justify-between",e),children:t?.map(n).map(et)})})),et=(e,t)=>{const{text:n,items:r,href:i,target:a,onClick:l}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:i,target:a||"_self",onClick:l,children:n||`Раздел ${t}`}),r?.map(((e,t)=>u(tt,{...e,basePath:i,index:t},String(t))))]},String(t))},tt=g((({text:e,index:t,basePath:n,...r})=>{const i=!(!c.BASE_PATH||!n)&&!c.BASE_PATH.startsWith(n),a=K(i),{href:l,target:s,onClick:o}=a(r);return u("a",{className:y("text-l-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:i?J(n,l):l,target:s||"_self",onClick:o,children:e||`Раздел ${t}`})})),nt=g((({className:e,isMobile:t,value:n,autoFocus:r,onChange:i,onFocus:l})=>{const s=a((e=>{i&&i(e.target?.value||"")}),[i]);return p("div",{className:y("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-4 pointer-events-none",children:u(ve,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:y("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",t?"":"h-full"),value:n,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:r,onChange:s,onFocus:l})]})})),rt="search";g((({topItems:e})=>{const t=function(e){const[t,{setTrue:n,setFalse:i}]=qe(),[l,o]=r({id:e}),c=s(t);c.current||=t,ze({onOpen:a((t=>{t.id===e?(o(t),n()):i()}),[e]),onClose:i});const d=a((()=>{i(),E.fire("dialog",{type:"close"})}),[]);return{...l,isOpened:t,wasOpened:c.current,onClose:d}}(rt),n=e?.map((e=>e.href||"/")),[o,c]=Ye({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),d=l((()=>it(e)(o)),[e,o]);return i((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(d)),[d]),u(Qe,{...t,head:u(nt,{className:"my-5",autoFocus:!0,...c}),children:u(Ze,{topItems:d})})}));const it=e=>t=>e?.length&&t?.length?Fe(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:J("/",t)})))}))):[];const at=g((({className:e,isMobile:t})=>{const[n,i]=r(""),l=a((()=>i("")),[]);ze({onClose:l});const{open:s}=z(rt),o=a((e=>{i(e),lt(e)&&s(e)}),[]);return p("div",{className:e,children:[u(nt,{isMobile:t,value:n,onChange:o}),t?u(Be,{className:"absolute top-2 right-3",onClick:l}):null]})})),lt=e=>e&&e.length>=3,st=g((e=>u(at,{...e,isMobile:!0}))),ot=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),ct=g((({className:e="",documents:t,...n})=>u(De,{className:`mt-2.5 ${e}`,...n,children:u("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?dt(t):null})}))),dt=e=>e.map(((e,t)=>{const{text:n,...r}=e;return u("li",{className:"mb-4 list-none",children:u("a",{className:"hover:text-primary-main",role:"link",...r,children:n||null})},`list_item_${String(t)}`)})),mt={"bg-white":"color",transparent:"white"},ht={"bg-white":"text-primary-main",transparent:"text-white"},ut=(e,t,n)=>u(ve,t?.src?{image:t,className:ht[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:mt[e]},className:ht[e],width:n?.width,height:n?.height,asSVG:!0}),pt={"bg-white":"text-primary-text",transparent:"text-white"},gt=(e,t,n)=>u("span",{className:`${pt[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),bt=g((({bgColor:e="bg-white",children:t,className:n="",href:r,logo:i,showTitle:a=!0,targetBlank:l})=>p("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:r||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":i?.title||"Россельхозбанк",children:[ut(e,i?.image,{width:"34",height:"34"}),a?gt(t||i?.title,e,"text-s"):null]}))),xt=g((({className:e="",title:t="Мобильное приложение",description:n,href:r="#"})=>u("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:r?p("div",{className:"flex",children:[u("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:u(bt,{className:"w-8",bgColor:"transparent",showTitle:!0})}),p("a",{href:r,target:"_blank",className:"flex flex-col justify-center pl-3",children:[u("div",{className:"text-s font-medium mb-[3px]",children:t}),u("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),ft=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),yt=[];function vt(e,t,{className:n,...r}={}){const{key:i,blockDecorator:a=ft,blocksRegistry:l={},ancestors:s=yt}=t,{type:o}=e;o&&o in l||console.warn(`No block with "${o}" is registered`);const c=o&&l[o];return a({blockClassName:y("scroll-mt-12",n,e.style||"col-span-12"),block:e,ancestors:s,render:({block:n,blockClassName:a})=>{const{content:l}=n;return c?u(c,{className:a,block:e,options:t,...l,...r},i):null}},i)}const Nt=[],wt=(e,{key:t,ancestors:n=Nt,slotName:r=null,renderProps:i=vt,...a})=>(e||[]).map(((e,l)=>i(e,{...a,key:`${t||e.type}-${l}`,ancestors:a.parent?[...n||Nt,[a.parent,r]]:n})));function kt({children:e,block:t,options:n,renderProps:r}){return e||(t&&n?wt(t.blocks,{...n,parent:t,renderProps:r}):null)}const Ct=g((({className:e="",label:t,icon:n,dataTheme:r="",disabled:i=!1,onClick:a})=>p("button",{className:y("flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text",i?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:a,disabled:i,"data-theme":r,children:[u("span",{className:"text-h4 pr-3",children:t}),n?u(ve,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),Tt=g((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:i,renderFoldButton:l})=>{const[s,o]=r(n),c=a((()=>{o((e=>!e))}),[]),d=i({isUnfolded:s,onToggle:c}),m=l?l({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),St=g((({className:e="",isUnfolded:t,children:n})=>{const r=s(null);return i((()=>{r.current&&(r.current.style.maxHeight=t?`${r.current.scrollHeight}px`:"")}),[t,n?.length]),u("div",{ref:r,className:`transition-max-h duration-300 overflow-hidden ${r.current||!t?"max-h-0":""} ${e}`,children:n})})),_t=g((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),It=g((({className:e="",label:t="Развернуть",isExpanded:n,isFoldButtonOnTop:r=!0,version:i="primary",...a})=>u(De,{className:y("border-b border-solid border-main-divider w-full",e),tag:"div",version:"transparent",...a,children:u(Tt,{isFoldButtonOnTop:r,unfoldedByDefault:n,renderFoldableSection:({isUnfolded:e})=>u(St,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:kt(a)}),renderFoldButton:({isUnfolded:e,onToggle:n})=>$t({version:i,label:t,isUnfolded:e,onToggle:n})})})));It.childrenTypes={exclude:["RollupItem"]};const $t=({version:e,label:t,isUnfolded:n,onToggle:r,className:i="",primaryIcon:a})=>{const l=t||(n?"Скрыть":"Развернуть");return"primary"===e?Mt({label:l,icon:n?"MinusIcon":"PlusIcon",onToggle:r,className:i,primaryIcon:a}):u(Ct,{label:l,icon:n?"ArrowUpIcon":"ArrowDownIcon",onClick:r})},Mt=({label:e,icon:t,primaryIcon:n,onToggle:r})=>p("button",{className:"border-none bg-transparent flex justify-between text-left w-full text-primary-text group cursor-pointer py-3.5 px-0",onClick:r,children:[p("div",{className:"flex group-hover:text-primary-main",children:[n?u(ve,{image:{...ot({...n})},className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,u(_t,{size:"text-m-title-xs",font:"font-medium",children:e})]}),u(ve,{className:"flex-shrink-0",image:{...ot({icon:t})},width:"24",height:"24",asSVG:!0})]}),At=g((({className:e="",items:t,hasButton:n})=>p("div",{className:e,children:[t?.length?t.map(jt):null,n?u(se,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),jt=(e,t)=>{const{type:n,text:r,description:i}=e;return p("div",{className:"mb-4",children:[u("div",{children:Rt(n,r)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:i})]},String(t))},Rt=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Ot(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Ot=e=>e.replaceAll(/\D/g,""),Lt=g((({className:e="",index:t,text:n,...r})=>{const i=K(),{href:a,target:l,onClick:s}=i(r);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:s,children:n||`Документ ${t}`})})),Pt=g((({title:e,links:t,className:n=""})=>p("div",{className:n,children:[u("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?u("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>u(Lt,{index:t,className:"text-s",...e},String(t))))}):null]}))),Dt=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],Vt={default:"w-14 h-14",small:"w-12 h-12"},Bt=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${Vt[t]}`,Et=g((({iconVersion:e="color",buttonSize:t="default",rounded:n=!1,icon:r,...i})=>{const{href:a,version:l,text:s,appendLeft:o,appendRight:c,aboveText:d}=i,{iconMapped:m,label:h}=Dt.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},p=r??m,g=p?{...ot(p),iconVersion:e}:void 0;return u(se,{className:y(n?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",Bt(s,t)),aboveText:d,appendLeft:o,appendRight:c,"aria-label":h,rel:"noopener noreferrer",target:"_blank",text:s,version:l,...i,children:g&&!s?u(ve,{image:g,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),zt=g((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>u(Et,{...e},String(t))))}))),Ft=g((({className:e="",index:t,...n})=>{const r=K(),{href:i,target:a,text:l,onClick:s}=r(n);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:i,target:a,onClick:s,children:l||`Документ ${t}`})})),Ht=g((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"py-6",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>u(Ft,{index:t,...e},String(t))))}):null]}))),Gt=g((({className:e="",...t})=>{const n=t.options?.page?.fallback,r=Oe(c.SITEMAP||"sitemap",n),{documents:i,relatedEnterprises:a,contacts:l,socialMedia:s,horizontalNavigationTitle:o}=Oe(c.FOOTER||"footer",n);return p(De,{tag:"footer",className:`px-4 py-[26px] ${e}`,...t,children:[u(At,{className:"overflow-hidden",items:l,hasButton:!0}),u("div",{className:"m-0 p-0",children:r.topItems?.map(((e,t)=>u(It,{label:e?.text,children:u(ct,{documents:e.items})},String(t))))}),u("div",{className:"mt-4",children:r?.dispositions?.map(Jt)}),u(xt,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),u(st,{className:"grow"}),u(zt,{className:"pb-4",media:s}),u(Pt,{title:o,links:a}),u(Ht,{links:i})]})})),Jt=(e,t)=>{const{icon:n,href:r,text:i}=e;return p(se,{version:"link",href:r,className:"flex text-s mb-4 w-6",children:[n?u(ve,{className:"pr-1",image:ot(n),width:"24",height:"24",asSVG:!0}):null,u("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Ut=e=>({href:t})=>G(F(t)?e.href:e.pathname).startsWith(G(t)),Xt=g((({className:e="",active:t,dataItemName:n,children:r,...i})=>{const a=K(),{href:l,target:s,text:o,onClick:c}=a(i);return p("a",{className:y("relative inline-block bg-transparent text-center no-underline",e),href:l,target:s,"data-item-name":n,onClick:c,children:[u("span",{className:Wt(t),children:o||r}),t?u("div",{className:"absolute left-0 -bottom-3 w-full h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Wt=(e=!1)=>y("font-sans text-s",e?"text-primary-main":"text-secondary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Yt=864e5;function Kt(e,t,n=globalThis?.localStorage){const r=a((async(...r)=>{const i=`async:${e}`,a=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Yt?t:void 0}(n.getItem(i));if(a)return a;const l=await t(...r);return n.setItem(i,JSON.stringify({data:l,timestamp:Date.now()})),l}),[e,t]);return Ae(e,r)}const Qt=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},qt=g((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:l})=>{const[s]=function(e="Москва"){const t=Qt(),[n,l]=r(t?.region??{name:e}),{data:s}=Kt("/api/v1/region",Re);return i((()=>{l(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,a((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),l(e)}),[])]}(n);return p("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[u("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:u(ve,{image:{icon:"CloseIcon"},width:"24",height:"24",asSVG:!0})}),p("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[u(ve,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),u(_t,{color:"text-secondary-text",children:s.name})]}),l,u("div",{className:"mb-7",children:e?.map(Zt)}),u(st,{className:"grow"})]})})),Zt=(e,t)=>{const{icon:n,href:r,text:i}=e;return p("a",{href:r,className:"flex text-s mb-4 hover:text-primary-main",children:[n?u(ve,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,u("span",{className:"font-medium pl-0.5",children:i})]},`headerSubMenu-${t}`)},en=g((({onClick:e,bgColor:t,logo:n})=>p("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",children:[p("div",{className:"flex items-center",children:[u("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:u(ve,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),u(bt,{className:"mr-8",bgColor:t,logo:n})]}),u("button",{className:"text-primary-main group-data-transparent:text-white group-data-transparent:hover:text-primary-hover text-s border-0 bg-transparent",children:"Войти"})]}))),tn={"bg-white":"primary",transparent:"transparent"},nn=g((({bgColor:e="bg-white",version:t=tn[e],...n})=>{const i=Y(),l=n.options?.page?.fallback,{topItems:s,dispositions:o,defaultLocation:d,logo:m}=Oe(c.SITEMAP||"sitemap",l),h=s?.find((e=>Ut(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(i)),g=h?.items,b=(e=>(t=[])=>{const n=t?.filter(Ut(e));return n?.length?j((e=>e.href?.length||0))(n):void 0})(i)(g),[x,f]=r(!1),y=a((()=>f((e=>!e))),[]);return p(De,{tag:"header",version:t,...n,children:[p("div",{className:"container px-4 py-0 box-border",children:[u(en,{onClick:y,bgColor:e,logo:m}),u("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:u("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,t)=>u(Xt,{className:"mr-8 whitespace-nowrap text-s",active:e===b,...e},String(t))))})})]}),x?u(qt,{onClick:y,burgerSubMenu:o,defaultLocation:d,children:u("div",{className:"list-none m-0 p-0",children:s?.map(((e,t)=>u(It,{label:e.text,children:u(ct,{documents:e.items})},String(t))))})}):null]})})),rn=g((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),an={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},ln=g((({className:e,title:t,description:n,headlineVersion:r="XL",align:i="text-center",as:a,isPadding:l=!0,isTheme:s=!1,version:o="",...c})=>{const d=an[r];return p(De,{className:y("flex flex-col",l?"p-12":"",d.wrapper,e),version:o,isTheme:s,...c,children:[t?u(f,{className:y("whitespace-pre-wrap",i),...d?.title,as:a||d?.title.as,title:t}):null,n?u(rn,{color:"group-data-secondary:text-white/80",size:d.descriptionSize,align:i,children:n}):null]})})),sn=g((({className:e,iconClassName:t,textClassName:n,suffixClassName:r,doc:i,icon:a})=>{const{text:l,fileSize:s,...o}=i;return p("a",{className:e,role:"link",...o,children:[a?u(ve,{className:t,image:ot(a),width:"24px",height:"24px",asSVG:!0}):null,l?p("span",{className:n,children:[l,u("span",{className:r,children:o?.href&&on(cn(o.href),s)})]}):null]})})),on=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),cn=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},dn=g((({className:e="",doc:t,icon:n})=>u(sn,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),mn=g((({hasBorder:e=!0,documents:t,icon:n})=>u(V,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,r)=>u(dn,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n},String(r)))):null}))),hn=g((({hasBorder:e=!0,documents:t,icon:n})=>u("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,r)=>u("div",{role:"listitem",children:u(dn,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n})},String(r)))):null}))),un=g((({className:e="",title:t,description:n,icon:r={icon:"DocIconMonoColor"},documents:i,orientation:a="vertical",hasBorder:l=!0,align:s,...o})=>p(De,{className:y("py-6 px-4 overflow-x-hidden",e),...o,children:[u(ln,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:s,headlineVersion:"M",as:"h2"}),u("vertical"===a?hn:mn,{hasBorder:l,documents:i,icon:r})]}))),pn=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function gn(e=""){const t=pn(e);return t<=4?"S":t<=8?"M":"L"}function bn(e=""){const t=pn(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function xn(e=""){const t=pn(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const fn=g((({className:e,title:t,description:n="Блок в разработке...",...r})=>p(De,{className:y("p-9 box-border",e,xn(e),bn(e)),...r,children:[u(ln,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:gn(e)}),u("figure",{className:"m-0 min-w-[80%]",children:yn()})]}))),yn=(e=3)=>Nn(100,e).map((e=>Math.floor(e))).map(vn),vn=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Nn=(e,t)=>[e].concat(t>0?Nn(e/1.618,t-1):[]),wn=(e,{className:t="",buttonClassName:n,isVertical:r}={})=>e?.length&&e.some((e=>e?.text))?u("div",{className:y("flex",r?"flex-col gap-2":"gap-4",t),children:e.map(kn(n))}):null,kn=(e="")=>(t,n)=>{const{text:r,icon:i,iconRight:a,version:l,...s}=t||{},o="secondary"===l?"color":"white";return r?u(se,{className:e,appendLeft:Cn({...i,iconVersion:o}),appendRight:Cn({...a,iconVersion:o}),version:l,text:r,...s},n?String(n):""):null},Cn=e=>e?.icon||e?.src?u(ve,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,Tn={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},Sn=g((({className:e="",isDotted:t=!0,children:n,size:r="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${Tn[r]}`})}):null,u("span",{children:n})]}))),_n={S:"text-l-light",M:"text-h6",L:"text-h5"},In={S:"ml-2",M:"ml-3",L:"ml-4"},$n=g((({className:e="",hasIndent:t,isDotted:n,itemClassName:r="",items:i,listItemSize:a="M"})=>i?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${_n[a]} ${t?In[a]:""} ${e}`,role:"list",children:i.map(((e,t)=>u(Sn,{className:r,isDotted:n,size:a,children:e},String(t))))}):null)),Mn=g((({className:e="",title:t="",buttons:n,image:r,children:i})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:i}),n?u("div",{className:"mt-auto pt-8",children:n}):null]}),r]})]}))),An=g((e=>{const{className:t="",icon:n,label:r,description:i,version:a="primary",benefitsVersion:l="normal"}=e,s="white"===l?"secondary":"primary";return p("div",{className:`flex gap-5 ${i?"items-start":"items-center"} ${t}`,children:[n?u("div",{className:jn(a,l),children:u(ve,{className:"w-6 h-6",image:ot(n,s),asSVG:!0})}):null,p("div",{className:"gap-0.5",children:[r?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:r}):null,i?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:i}):null]})]})}));function jn(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const Rn=(e="primary",t="normal")=>({icon:n,label:r,description:i},a)=>u(An,{icon:n,label:r,description:i,version:e,benefitsVersion:t},String(a)),On=g((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:r="normal",buttons:i,image:a,items:l,isDotted:s=!0,label:o,title:c,description:d,...m})=>p(De,{className:`w-full ${e}`,...m,children:[p("div",{children:[o?Pn(o):null,u(ln,{className:"!p-0 max-w-[600px]",title:c,description:d,headlineVersion:t,align:"text-left"}),p(Mn,{buttons:wn(i,{className:"mt-5",isVertical:!0}),children:[n?.filter((e=>e.label))?.length?u("div",{className:"mt-3",children:n.map(Rn("primary",r))}):null,l?.length?u($n,{className:"mt-3 text-m",items:l,isDotted:s}):null]})]}),Ln(a)]})));function Ln(e){return e?.src?u(ve,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Pn=e=>u("div",{className:"w-fit px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid border-secondary-hover",children:u(_t,{color:"text-primary-main group-data-secondary:text-white/80",children:e})}),Dn=g((e=>{const{className:t="",...n}=e;return u(De,{className:`px-4 py-6 ${t}`,...n,children:u(On,{...e})})})),Vn=g((e=>{const{__html:t=""}=e;return u("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})})),Bn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},En={normal:"min-h-[70px]",small:"min-h-12"},zn={description:"text-white/80 text-l-light group-data-primary:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},Fn=g((({className:e="",title:t,description:n,showLines:r=!0,steps:i,size:a="normal",version:l="primary",...s})=>p(De,{className:`box-border px-4 py-6 flex flex-col ${e}`,version:l,...s,children:[t?u(f,{headingType:"h3",className:"text-center",title:t}):null,n?u("p",{className:`text-m-light text-center ${zn.description} ${t?"mt-2":""}`,children:n}):null,i?.length?u("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:u("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(Hn(a,l,r))})}):null]}))),Hn=(e,t,n)=>(r,i,a)=>{const{type:l}=r;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return Gn(e,t,n)(r,i,a);case"rte":return u(Vn,{__html:r.__html});default:Ee(r)}},Gn=(e,t,n)=>(r,i,a)=>{const l=a.length-1===i,s="normal"===e?"ml-[34px]":"ml-6";return u("div",{children:p("div",{className:"flex flex-row text-center relative",children:[p("div",{className:"overflow-hidden flex-shrink-0",children:[Jn(e,t)(r,i),l?null:u("div",{className:`min-h-8 h-full w-0.5 ${n?zn.iconConnector:""} ${s}`})]}),p("div",{className:`flex flex-col justify-center h-fit ${En[e]}`,children:[r.label?u("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:r.label}):null,r.description?u("div",{className:`text-s ${zn.description} text-left`,children:r.description}):null]})]})},String(i))},Jn=(e,t)=>(n,r)=>{const i="normal"===e?"38":"27";return u("div",{className:`${Bn[e]} ${zn.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:u("span",{className:`font-medium flex self-center ${"normal"===e?"text-m-title":"text-m-title-xs"}`,children:(a=n?.icon,Boolean(a?.icon||a?.src)?u(ve,{image:ot({...n.icon},t),width:i,height:i,asSVG:!0}):u("span",{children:r+1}))})});var a},Un={Buttons:({buttons:e})=>wn(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(ve,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>u($n,{className:"flex flex-col justify-between items-start text-m",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},Xn=g((({title:e,icon:t})=>p("div",{className:"flex gap-2.5 mb-2",children:[e?u(f,{headingType:"h3",className:"font-medium",title:e}):null,t?u(ve,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Wn=g((({tile:e,...t})=>p("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[u(Xn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>p("div",{children:[n>0?u("div",{className:"h-5"}):null,Yn(e,t)]},String(n)))):null]})));function Yn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Un))return null;const n=Un[e.tableCellType];return u(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Kn=g((({tiles:e,...t})=>e?.length?u(V,{...t,children:e.map(((e,n)=>u(Wn,{tile:e,...t},String(n))))}):null)),Qn=g((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>u(Wn,{tile:e,...t},String(n))))}):null)),qn=g((({className:e,title:t,description:n,tariffsColumns:r,rowHeaders:i,orientation:a="vertical",...l})=>{const s=Zn(r),o=er(i,s);return p("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?u(f,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?u("div",{className:"mb-5 text-center text-m",children:n}):null,u("vertical"===a?Qn:Kn,{tiles:o,...l})]})})),Zn=e=>e?.[0]?.data?e[0].data:[],er=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),tr=g((({title:e,description:t,iconVersion:n,image:r,className:i="",items:a,isDotted:l=!0})=>p("section",{className:`font-sans px-4 py-[18px] flex flex-col bg-white group-data-secondary:bg-primary-main ${i}`,children:["small"===n?u("div",{className:"mb-3",children:u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"})}):null,"big"===n?nr(r):null,p("div",{className:"py-0.5 text-secondary-text group-data-secondary:text-white",children:[e?u("div",{className:"text-l font-medium mb-1",children:e}):null,t?u("div",{className:"text-s ",children:t}):null,a?.length?u($n,{className:"mt-1 text-m",items:a,isDotted:l}):null]})]})));function nr(e){return e?.src?u(ve,{className:"pb-3 mr-auto",image:e}):null}const rr={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},ir={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},ar=g((({className:e="",gap:t="",align:n="stretch",isPadding:r=!1,isInnerPadding:i=!0,version:a="transparent",isTheme:l=!1,...s})=>{const o=i?"":"!p-0";return u(De,{className:y("flex flex-col [&>*]:max-w-full",r?"p-12":"",rr[t],n&&ir[n],e),version:a,isTheme:l,...s,children:kt({...s,renderProps:(e,t)=>vt(e,t,{className:o})})})}));ar.childrenTypes=[];const lr={ComparisonTable:Ie,Footer:Gt,Header:nn,Headline:ln,LinkDocs:un,LinkList:ct,MobileAppTile:xt,ProductBlock:Dn,StepsBlock:Fn,TariffsTable:qn,TextBlock:tr,Placeholder:fn,RollupItem:It,VerticalLayout:ar};const sr=["Header","Footer"],or=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function cr(e=globalThis){const t=s(new Map);i((()=>Le.subscribe("intersection",(({block:e,intersection:n})=>{t.current&&t.current.set(e,n)}))),[]),i((()=>{const n=((e,t=600)=>{let n;const r=(...i)=>{r.dispose(),n=setTimeout((()=>{e(...i)}),t)};return r.dispose=()=>{n&&clearTimeout(n)},r})((()=>{!function(e){const t=`#${n=e?.anchor,n?.replace("#","")||""}`;var n;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!sr.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?O(or)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const dr=h();const mr=g((({className:e,onClick:t,ariaLabel:n})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:hr()}))),hr=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("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"}),u("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"})]})},ur=g((({className:e=""})=>{const t=function(e){const[t,n]=r(0);return i((()=>{(async()=>{const[t]=await dr.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{n(await dr.like(e))}),[e]),dislike:a((async()=>{n(await dr.dislike(e))}),[e])}}(Y().pathname);return p("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:[u(mr,{onClick:W(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(mr,{onClick:W(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),pr=g((e=>{const{className:t="",blocksRegistry:n,blockDecorator:r,data:i={}}=e,{style:a,blocks:l,slots:s,likeControl:o,colorPalette:c="pc"}=i,d={key:"",page:i,blocksRegistry:n,blockDecorator:r,parent:i};cr();const[m,{setTrue:h,setFalse:g}]=qe();return ze({onOpen:h,onClose:g}),p("section",{className:y("relative",a,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:wt(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[wt(l,d),s?.footer?wt(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(ur,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));pr.childrenTypes=[],pr.slots=()=>["header","footer"];e.Blocks=lr,e.ContentPage=pr,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=W,e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.packageVersion="0.9.7",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=U,e.useRouter=Y,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),r=n("useState"),i=n("useEffect"),a=n("useCallback"),l=n("useMemo"),s=n("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;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||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:r}=await e.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),g=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:b(e)),t._tmpl},b=e=>{function t(t,n){const{children:r,...i}=t||{},a=n?.slots?.default,l=r||a&&a();return e(Object.assign(i,l&&{children:l}),n)}return t.inheritAttrs=!1,t},x={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},f=g((e=>{const{className:t,headingType:n="h3",title:r,as:i="h3"}=e;return u(i,{className:`font-sans font-medium m-0 ${x[n]} ${t||""}`,children:r})})),y=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),v=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`});function N(e,{sensitivity:t,rootRef:n}={}){const r=s(null),a=l((()=>({threshold:w(t),root:n?.current})),[t,n?.current]);return i((()=>{if(!r.current)return;const t=new IntersectionObserver(e,a);return t.observe(r.current),()=>{t.disconnect()}}),[e,a]),r}function w(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const k=g((({className:e="",style:t,idx:n,activeIndex:r,observerOptions:i,children:l,onIntersection:s})=>{const o=N(a((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),i);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(n===r),ref:o,children:l})})),C=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],T=g((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:r=0,gap:i=0,padding:l=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const g={sensitivity:1,rootRef:t},b=s([]),x=a(((e,t)=>{const n=[...b.current||[]];n[e]=t,b.current=n,h&&h(n),p&&p(_(n))}),[h,p]),f=r>0?i*Number(r)-1:0,N="vertical-list"===o,w="horizontal-list"===o,T={...w?S(l,f):{},...N?v(d):{},gap:`${i}px`};return u("div",{className:y("box-border overflow-auto no-scrollbar",o,e),style:T,ref:t,children:(I=(e,t)=>u(k,{className:y(c,r?C[r-1]:"",N?"h-full":""),style:w?S(l/4):{},activeIndex:n,idx:t,observerOptions:g,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(I):I(e,0))(m)});var I})),S=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),_=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),I={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},$={"horizontal-list":"w-6","vertical-list":"h-6"},M=g((({containerRef:e,activeIndex:t,dotCount:n=0,listType:r="horizontal-list",version:i})=>n?u("div",{className:y("flex gap-2",I[r],i?"group":""),...i?{"data-ver":i}:{},children:new Array(n).fill(null).map(((n,i)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${i===t?$[r]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(i)},String(i))))}):null)),A=e=>e,j=(e=A)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),R=j(),O=(e=A)=>j((t=>-e(t))),L=e=>t=>e.scrollWidth/t,P=e=>(t,n)=>{e.scrollBy({left:n*L(e)(t),behavior:"smooth"})},D=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const i=s(null),[l,o]=r([]),c=a((e=>{o((t=>{return(n=t)===(r=e)||Boolean(n&&r&&n?.length===r?.length&&n.every(((e,t)=>e===r[t])))?t:e;var n,r})),n&&n(e)}),[e]),[d,m]=l.length?[O()(l),j()(l)]:[-1,-1],h=d>0,u=m<e-1,p=a((()=>{var n;i.current&&(t&&!h?(n=i.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):P(i.current)(e,-1))}),[t,e,h]),g=a((()=>{i.current&&(t&&!u?i.current.scrollTo({left:0,behavior:"smooth"}):P(i.current)(e,1))}),[e,t,u]);return[i,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},V=g((({className:e="",gap:t=14,padding:n=16,showDots:r=!0,minHeight:i,children:a,onVisibleIndicesChange:l,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(a)?a.length:0,[d,m]=D({itemCount:c,onVisibleIndicesChange:l}),[h]=m.visibleIndicesRange;return p("div",{className:y(e,"vertical-list"===s?"relative h-full":""),children:[u(T,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:i,children:a}),r?u(M,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})}));class B{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const E=new B,z=(e="")=>({open:t=>E.fire("dialog",{type:"open",id:e,message:t}),close:()=>E.fire("dialog",{type:"close"})}),F=e=>Boolean(e?.includes(":")),H=(e,t)=>Boolean(e&&!F(e)&&(!t||"_self"===t)),G=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),J=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var U=Object.freeze({__proto__:null,isURL:F,isLocalURL:H,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:G,joinPath:J});const X=e=>t=>{if(!t||F(t)||c.CDN&&t.startsWith(c.CDN))return t;const n=t.startsWith("/");return J(c.BASE_PATH,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},W=(e,t)=>W._impl(e,t);function Y(){return Y._impl()}function K(e=!1){const t=Y(),{close:n}=z();return n=>({...n,href:e?n.href:X(t)(n.href),"aria-label":n.text,onClick:W(r(n),n)});function r({href:r,target:i,onClick:a}){return l=>{a&&a(l),r&&!e&&H(r,i)&&(n(),l?.preventDefault(),t.push(r))}}}W._impl=e=>e,W.setup=e=>{W._impl=e},Y._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),Y.setup=e=>{Y._impl=e};const Q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},q="bg-main-divider text-main-disabled",Z={primary:q,secondary:q,white:q,link:"",transparent:"",gray:q,"":""},ee="text-center font-sans select-none",te={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},ne=g((e=>{const{text:t,aboveText:n,appendLeft:r,appendRight:i,version:a="primary"}=e;return p("div",{className:re(e),children:[r?u("div",{className:te[a],children:r}):null,ie(e)?p("div",{children:[n?u("div",{className:"text-xs-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,i?u("div",{className:te[a],children:i}):null]})})),re=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const i="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",ie(e)?i:"h-12 w-12",r?"rounded-full":""].join(" ")},ie=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ae=({className:e,rounded:t,version:n})=>["inline-block",ee,n?Z[n]:"",t?"rounded-full":"rounded-md",e].join(" "),le=({className:e,rounded:t,version:n})=>[ee,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",n?Q[n]:"",t?"rounded-full":"rounded-md",e].join(" "),se=g((({disabled:e,children:t,...n})=>{const r=K()(n),i=t??u(ne,{...r});return u(e?ce:oe,{...r,children:i})})),oe=g((({className:e="",href:t,rel:n,target:r,ariaLabel:i,version:a,rounded:l,onClick:s,children:o})=>u("a",{className:le({className:e,version:a,rounded:l}),href:t,rel:n,target:r,"aria-label":i,role:t?"link":"button",onClick:s,children:o}))),ce=g((({className:e,ariaLabel:t,version:n,rounded:r,children:i})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ae({className:e,rounded:r,version:n}),children:i}))),de={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},me=g((({className:e="",imageClassName:t="",name:n="",alt:r=`Иконка ${n}`,title:i=r,iconVersion:a="color",asSVG:l,...s})=>{const o=Y(),d=X(o)(J(c.CDN,"/icons",`${n}.svg`));return l&&"normal"!==a?u(ue,{className:e,children:p("svg",{className:y(he(s.width),de[a],"white"===a?"invert":"",t),...s,"aria-hidden":"true",children:[i?u("title",{children:i}):null,r?u("desc",{children:r}):null,u("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]})}):(e.includes("h-")||(s.style={height:`${s.height}px`}),u("img",{className:e,src:d,alt:r,title:i,"aria-hidden":"true",...s}))})),he=e=>e?"":"w-full h-full",ue=g((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),pe=(e,t)=>e?.media&&t?.media?e.media-t.media:0,ge=g((({className:e="",image:t,imageClassName:n="",isMobile:r=!1,pathPrefix:i})=>{const a=Y();return p("picture",{className:`${r?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(pe).map((({src:e,format:n,media:r},l)=>u("source",{srcSet:xe(a,i)(e),type:fe(n),media:r?`(max-width: ${r}px)`:"",...t.size},`${l}_${e}`))):null,t?.src?be({...t,src:xe(a,i)(t.src)},n,r):null]})})),be=(e,t="",n=!1)=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},i=e.title||"",a=e.alt||e.title,l=n?"m-auto":"m-0";return u("img",{src:e.src,className:`${l} ${t}`,alt:a,title:i,style:r,...e.size})},xe=(e,t)=>n=>n&&!F(n)?X(e)(J(t,n)):n,fe=e=>e?`image/${String(e)}`:void 0,ye=g((({className:e="",image:t,imageClassName:n="",isMobile:r,pathPrefix:i,...a})=>t?.src||t?.icon?t.icon?u(me,{className:e,imageClassName:n,iconVersion:t?.iconVersion||"normal",name:t.icon,...a}):u(ge,{className:e,imageClassName:n,image:t,isMobile:r,pathPrefix:i}):null)),ve=g((e=>u(ye,{...e,isMobile:!0}))),Ne=(e=!1)=>e?"text-white":"",we=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),ke=g((({icon:e,image:t,title:n,subtitle:r,isFillGradient:i})=>p("div",{role:"columnheader",children:[e?u(ve,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&u("div",{className:"mb-3.5",children:u(ve,{image:t})}),n?u(f,{headingType:"h4",className:Ne(i),title:n}):null,r?u("div",{className:we(i),children:r}):null]}))),Ce=g((({cell:e,rowHeader:t,isFillGradient:n=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Te(n,t))})}))),Te=(e,t)=>({label:n,description:r},i)=>p("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),p("div",{className:"basis-1/2",children:[n?u("div",{className:"text-right "+(e?"text-white":""),children:n}):null,r?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:r}):null]})]},String(i)),Se=g((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:r,showRow:i,onToggleColumn:a})=>{const l=t?.slice(0,i?t.length:n),s=r?"secondary":"primary";return p("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${r?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(ke,{...e,isFillGradient:r}),l?.length?l.map((({rowHeader:e,cell:t},n)=>u(Ce,{cell:t,rowHeader:e,isFillGradient:r},String(n)))):null,i&&e?.link?u(se,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,_e({onToggleColumn:a,isFillGradient:r,showRow:i})]})})),_e=({onToggleColumn:e,isFillGradient:t,showRow:n})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Ie=g((e=>{const{className:t,title:n}=e;return p("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?u(f,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,u("div",{role:"table",children:u($e,{...e})})]})})),$e=g((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:i,orientation:l,...s})=>{const[o,c]=r(new Array(e.length).fill(!i)),d=a((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=a((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:r},a)=>{return u(Se,{visibleRowLength:i,showRow:o[a],header:r,columnData:(l=e,l?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===a&&n,onToggleColumn:()=>d(a),...s},String(a));var l}));return"horizontal"===l?u(V,{onVisibleIndicesChange:m,children:h}):h})),Me=new Map;function Ae(e,t,{fallback:n}={}){const a=l((()=>je(e)),[e]),[s,o]=r(),[c,d]=r(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};i((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>Me.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=n&&"string"==typeof u&&n[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function je(e){return e?Array.isArray(e)?e:e instanceof Function?je(e()):[e]:[e]}async function Re(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Oe(e,t={}){const{data:n}=Ae(`/wcms-resources/${e}.json`,Re,{fallback:t});return n||{}}const Le=new B;const Pe={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},De=g((({className:e="",version:t="primary",isTheme:n=!0,block:l,tag:s="section",role:o,children:c})=>{const d=s,m=function(e){return N(a((t=>{if(!e||!t?.length)return;const n=t[t.length-1];Le.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(l),[h,p]=r(!1);return i((()=>E.subscribe("tab",(e=>{p(Boolean(e.label&&l?.labels?.length&&!l.labels.includes(e.label)))}))),[l]),u(d,{className:y(Ve(Boolean(t&&n)),Pe[t],h?"hidden":"",e),...t&&n?{"data-ver":t}:{},...l?.anchor?{id:l.anchor,ref:m}:{},role:o,children:c})})),Ve=e=>e?"group":"",Be=g((({className:e,onClick:t})=>u("button",{className:y("visible peer-placeholder-shown:invisible w-6 h-6 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(ve,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Ee(e){throw new Error(e)}function ze({onOpen:e,onClose:t}={}){i((()=>E.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:Ee(n)}}))),[e,t])}function Fe(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const He=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:r,s2Matches:i}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),r=new Array(e.length),i=new Array(t.length);let a=0;for(let l=0;l<e.length;l++){const s=Math.max(0,l-n),o=Math.min(l+n,t.length-1);for(let n=s;n<=o;n++)r[l]||i[n]||e[l]!==t[n]||(a++,r[l]=!0,i[n]=!0)}return{m:a,s1Matches:r,s2Matches:i}}(e,t);if(0===n)return 0;const a=function(e,t,{s1Matches:n,s2Matches:r}){let i=0;for(let a=0,l=0;a<e.length;a++){if(!n[a])continue;let s=l;for(;s<t.length;s++)if(r[s]){l=s+1;break}e[a]!==t[s]&&i++}return i}(e,t,{s1Matches:r,s2Matches:i}),l=(n/e.length+n/t.length+(n-a/2)/n)/3,s=l>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return l+s*(1-l)};const Ge=(e,t)=>(n,r)=>{for(const[i,a]of r)n.set(i,e(n.get(i)||t,a));return n},Je=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Ue=e=>t=>e.map((([e,n])=>[He(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>We(t,e))).reduce(Ge(Math.max,0),new Map),Xe=e=>t=>{return Fe(t,t.map((({title:e})=>e)).map((e=>t=>{const n=Je(t||"");return n.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>R(n.map(He(e)))))):0})(e))).sort((r=([,e])=>e,n=(e,t)=>r(e)-r(t),(e,t)=>-n(e,t))).map((([e])=>e));var n,r},We=(e,t)=>new Map(e.map((e=>[e,t]))),Ye=({basePathList:e=["/"],initialQuery:t="",wasOpened:n})=>{const[a,s]=r(t||"");i((()=>{null!=t&&s(t)}),[t]);const o=l((()=>e.map((e=>n?e:null))),[n,...e]),{data:c}=Ae(o,Ke),[d,m]=r(null);return((e,t,n=300)=>{i((()=>{const t=setTimeout(e,n);return()=>{clearTimeout(t)}}),t)})((()=>{c&&m(c.map((e=>t=>{const{corpus:n,dictionary:r}=t||{};if(!(e&&n?.length&&r&&Object.keys(r).length))return[];const i=Je(e);if(!i.length)return[];const a=Object.entries(r),l=[...i.map(Ue(a)).reduce(Ge(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*i.length)).map((([e])=>n[e]));return Xe(i)(l)})(a)))}),[c,a]),[d,{value:a,onChange:s}]},Ke=async(...e)=>(await Promise.allSettled(e.map((e=>async function(e,t){try{return e?await Re(e,t):null}catch(e){console.error(e)}return null}(J(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),Qe=g((({className:e,isOpened:t,head:n,children:r,onClose:a})=>(i((()=>{const e=({key:e})=>{"Escape"===e&&a&&a()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[a]),t?u("div",{className:y("fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-12 min-h-full",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(Be,{className:"absolute top-3 -right-6",onClick:a}),n]}),r]})}):null)));function qe(e=!1){const[t,n]=r(e),i=a((()=>n(!0)),[]),l=a((()=>n(!1)),[]),s=a((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:i,setFalse:l,toggle:s}]}const Ze=g((({className:e,topItems:t})=>{const n=K(!0);return u("div",{className:y("flex items-start justify-between",e),children:t?.map(n).map(et)})})),et=(e,t)=>{const{text:n,items:r,href:i,target:a,onClick:l}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:i,target:a||"_self",onClick:l,children:n||`Раздел ${t}`}),r?.map(((e,t)=>u(tt,{...e,basePath:i,index:t},String(t))))]},String(t))},tt=g((({text:e,index:t,basePath:n,...r})=>{const i=!(!c.BASE_PATH||!n)&&!c.BASE_PATH.startsWith(n),a=K(i),{href:l,target:s,onClick:o}=a(r);return u("a",{className:y("text-l-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:i?J(n,l):l,target:s||"_self",onClick:o,children:e||`Раздел ${t}`})})),nt=g((({className:e,isMobile:t,value:n,autoFocus:r,onChange:i,onFocus:l})=>{const s=a((e=>{i&&i(e.target?.value||"")}),[i]);return p("div",{className:y("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-4 pointer-events-none",children:u(ve,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:y("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",t?"":"h-full"),value:n,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:r,onChange:s,onFocus:l})]})})),rt="search";g((({topItems:e})=>{const t=function(e){const[t,{setTrue:n,setFalse:i}]=qe(),[l,o]=r({id:e}),c=s(t);c.current||=t,ze({onOpen:a((t=>{t.id===e?(o(t),n()):i()}),[e]),onClose:i});const d=a((()=>{i(),E.fire("dialog",{type:"close"})}),[]);return{...l,isOpened:t,wasOpened:c.current,onClose:d}}(rt),n=e?.map((e=>e.href||"/")),[o,c]=Ye({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),d=l((()=>it(e)(o)),[e,o]);return i((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(d)),[d]),u(Qe,{...t,head:u(nt,{className:"my-5",autoFocus:!0,...c}),children:u(Ze,{topItems:d})})}));const it=e=>t=>e?.length&&t?.length?Fe(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:J("/",t)})))}))):[];const at=g((({className:e,isMobile:t})=>{const[n,i]=r(""),l=a((()=>i("")),[]);ze({onClose:l});const{open:s}=z(rt),o=a((e=>{i(e),lt(e)&&s(e)}),[]);return p("div",{className:e,children:[u(nt,{isMobile:t,value:n,onChange:o}),t?u(Be,{className:"absolute top-2 right-3",onClick:l}):null]})})),lt=e=>e&&e.length>=3,st=g((e=>u(at,{...e,isMobile:!0}))),ot=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),ct=g((({className:e="",documents:t,...n})=>u(De,{className:`mt-2.5 ${e}`,...n,children:u("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?dt(t):null})}))),dt=e=>e.map(((e,t)=>{const{text:n,...r}=e;return u("li",{className:"mb-4 list-none",children:u("a",{className:"hover:text-primary-main",role:"link",...r,children:n||null})},`list_item_${String(t)}`)})),mt={"bg-white":"color",transparent:"white"},ht={"bg-white":"text-primary-main",transparent:"text-white"},ut=(e,t,n)=>u(ve,t?.src?{image:t,className:ht[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:mt[e]},className:ht[e],width:n?.width,height:n?.height,asSVG:!0}),pt={"bg-white":"text-primary-text",transparent:"text-white"},gt=(e,t,n)=>u("span",{className:`${pt[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),bt=g((({bgColor:e="bg-white",children:t,className:n="",href:r,logo:i,showTitle:a=!0,targetBlank:l})=>p("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:r||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":i?.title||"Россельхозбанк",children:[ut(e,i?.image,{width:"34",height:"34"}),a?gt(t||i?.title,e,"text-s"):null]}))),xt=g((({className:e="",title:t="Мобильное приложение",description:n,href:r="#"})=>u("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:r?p("div",{className:"flex",children:[u("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:u(bt,{className:"w-8",bgColor:"transparent",showTitle:!0})}),p("a",{href:r,target:"_blank",className:"flex flex-col justify-center pl-3",children:[u("div",{className:"text-s font-medium mb-[3px]",children:t}),u("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),ft=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),yt=[];function vt(e,t,{className:n,...r}={}){const{key:i,blockDecorator:a=ft,blocksRegistry:l={},ancestors:s=yt}=t,{type:o}=e;o&&o in l||console.warn(`No block with "${o}" is registered`);const c=o&&l[o];return a({blockClassName:y("scroll-mt-12",n,e.style||"col-span-12"),block:e,ancestors:s,render:({block:n,blockClassName:a})=>{const{content:l}=n;return c?u(c,{className:a,block:e,options:t,...l,...r},i):null}},i)}const Nt=[],wt=(e,{key:t,ancestors:n=Nt,slotName:r=null,renderProps:i=vt,...a})=>(e||[]).map(((e,l)=>i(e,{...a,key:`${t||e.type}-${l}`,ancestors:a.parent?[...n||Nt,[a.parent,r]]:n})));function kt({children:e,block:t,options:n,renderProps:r}){return e||(t&&n?wt(t.blocks,{...n,parent:t,renderProps:r}):null)}const Ct=g((({className:e="",label:t,icon:n,dataTheme:r="",disabled:i=!1,onClick:a})=>p("button",{className:y("flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text",i?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:a,disabled:i,"data-theme":r,children:[u("span",{className:"text-h4 pr-3",children:t}),n?u(ve,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),Tt=g((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:i,renderFoldButton:l})=>{const[s,o]=r(n),c=a((()=>{o((e=>!e))}),[]),d=i({isUnfolded:s,onToggle:c}),m=l?l({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),St=g((({className:e="",isUnfolded:t,children:n})=>{const r=s(null);return i((()=>{r.current&&(r.current.style.maxHeight=t?`${r.current.scrollHeight}px`:"")}),[t,n?.length]),u("div",{ref:r,className:`transition-max-h duration-300 overflow-hidden ${r.current||!t?"max-h-0":""} ${e}`,children:n})})),_t=g((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),It=g((({className:e="",label:t="Развернуть",isExpanded:n,isFoldButtonOnTop:r=!0,version:i="primary",...a})=>u(De,{className:y("border-b border-solid border-main-divider w-full",e),tag:"div",version:"transparent",...a,children:u(Tt,{isFoldButtonOnTop:r,unfoldedByDefault:n,renderFoldableSection:({isUnfolded:e})=>u(St,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:kt(a)}),renderFoldButton:({isUnfolded:e,onToggle:n})=>$t({version:i,label:t,isUnfolded:e,onToggle:n})})})));It.childrenTypes={exclude:["RollupItem"]};const $t=({version:e,label:t,isUnfolded:n,onToggle:r,className:i="",primaryIcon:a})=>{const l=t||(n?"Скрыть":"Развернуть");return"primary"===e?Mt({label:l,icon:n?"MinusIcon":"PlusIcon",onToggle:r,className:i,primaryIcon:a}):u(Ct,{label:l,icon:n?"ArrowUpIcon":"ArrowDownIcon",onClick:r})},Mt=({label:e,icon:t,primaryIcon:n,onToggle:r})=>p("button",{className:"border-none bg-transparent flex justify-between text-left w-full text-primary-text group cursor-pointer py-3.5 px-0",onClick:r,children:[p("div",{className:"flex group-hover:text-primary-main",children:[n?u(ve,{image:{...ot({...n})},className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,u(_t,{size:"text-m-title-xs",font:"font-medium",children:e})]}),u(ve,{className:"flex-shrink-0",image:{...ot({icon:t})},width:"24",height:"24",asSVG:!0})]}),At=g((({className:e="",items:t,hasButton:n})=>p("div",{className:e,children:[t?.length?t.map(jt):null,n?u(se,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),jt=(e,t)=>{const{type:n,text:r,description:i}=e;return p("div",{className:"mb-4",children:[u("div",{children:Rt(n,r)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:i})]},String(t))},Rt=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Ot(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Ot=e=>e.replaceAll(/\D/g,""),Lt=g((({className:e="",index:t,text:n,...r})=>{const i=K(),{href:a,target:l,onClick:s}=i(r);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:s,children:n||`Документ ${t}`})})),Pt=g((({title:e,links:t,className:n=""})=>p("div",{className:n,children:[u("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?u("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>u(Lt,{index:t,className:"text-s",...e},String(t))))}):null]}))),Dt=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],Vt={default:"w-14 h-14",small:"w-12 h-12"},Bt=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${Vt[t]}`,Et=g((({iconVersion:e="color",buttonSize:t="default",rounded:n=!1,icon:r,...i})=>{const{href:a,version:l,text:s,appendLeft:o,appendRight:c,aboveText:d}=i,{iconMapped:m,label:h}=Dt.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},p=r??m,g=p?{...ot(p),iconVersion:e}:void 0;return u(se,{className:y(n?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",Bt(s,t)),aboveText:d,appendLeft:o,appendRight:c,"aria-label":h,rel:"noopener noreferrer",target:"_blank",text:s,version:l,...i,children:g&&!s?u(ve,{image:g,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),zt=g((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>u(Et,{...e},String(t))))}))),Ft=g((({className:e="",index:t,...n})=>{const r=K(),{href:i,target:a,text:l,onClick:s}=r(n);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:i,target:a,onClick:s,children:l||`Документ ${t}`})})),Ht=g((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"py-6",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>u(Ft,{index:t,...e},String(t))))}):null]}))),Gt=g((({className:e="",...t})=>{const n=t.options?.page?.fallback,r=Oe(c.SITEMAP||"sitemap",n),{documents:i,relatedEnterprises:a,contacts:l,socialMedia:s,horizontalNavigationTitle:o}=Oe(c.FOOTER||"footer",n);return p(De,{tag:"footer",className:`px-4 py-[26px] ${e}`,...t,children:[u(At,{className:"overflow-hidden",items:l,hasButton:!0}),u("div",{className:"m-0 p-0",children:r.topItems?.map(((e,t)=>u(It,{label:e?.text,children:u(ct,{documents:e.items})},String(t))))}),u("div",{className:"mt-4",children:r?.dispositions?.map(Jt)}),u(xt,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),u(st,{className:"grow"}),u(zt,{className:"pb-4",media:s}),u(Pt,{title:o,links:a}),u(Ht,{links:i})]})})),Jt=(e,t)=>{const{icon:n,href:r,text:i}=e;return p(se,{version:"link",href:r,className:"flex text-s mb-4 w-6",children:[n?u(ve,{className:"pr-1",image:ot(n),width:"24",height:"24",asSVG:!0}):null,u("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Ut=e=>({href:t})=>G(F(t)?e.href:e.pathname).startsWith(G(t)),Xt=g((({className:e="",active:t,dataItemName:n,children:r,...i})=>{const a=K(),{href:l,target:s,text:o,onClick:c}=a(i);return p("a",{className:y("relative inline-block bg-transparent text-center no-underline",e),href:l,target:s,"data-item-name":n,onClick:c,children:[u("span",{className:Wt(t),children:o||r}),t?u("div",{className:"absolute left-0 -bottom-3 w-full h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Wt=(e=!1)=>y("font-sans text-s",e?"text-primary-main":"text-secondary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Yt=864e5;function Kt(e,t,n=globalThis?.localStorage){const r=a((async(...r)=>{const i=`async:${e}`,a=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Yt?t:void 0}(n.getItem(i));if(a)return a;const l=await t(...r);return n.setItem(i,JSON.stringify({data:l,timestamp:Date.now()})),l}),[e,t]);return Ae(e,r)}const Qt=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},qt=g((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:l})=>{const[s]=function(e="Москва"){const t=Qt(),[n,l]=r(t?.region??{name:e}),{data:s}=Kt("/api/v1/region",Re);return i((()=>{l(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,a((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),l(e)}),[])]}(n);return p("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[u("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:u(ve,{image:{icon:"CloseIcon"},width:"24",height:"24",asSVG:!0})}),p("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[u(ve,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),u(_t,{color:"text-secondary-text",children:s.name})]}),l,u("div",{className:"mb-7",children:e?.map(Zt)}),u(st,{className:"grow"})]})})),Zt=(e,t)=>{const{icon:n,href:r,text:i}=e;return p("a",{href:r,className:"flex text-s mb-4 hover:text-primary-main",children:[n?u(ve,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,u("span",{className:"font-medium pl-0.5",children:i})]},`headerSubMenu-${t}`)},en=g((({onClick:e,bgColor:t,logo:n})=>p("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",children:[p("div",{className:"flex items-center",children:[u("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:u(ve,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),u(bt,{className:"mr-8",bgColor:t,logo:n})]}),u("button",{className:"text-primary-main group-data-transparent:text-white group-data-transparent:hover:text-primary-hover text-s border-0 bg-transparent",children:"Войти"})]}))),tn={"bg-white":"primary",transparent:"transparent"},nn=g((({bgColor:e="bg-white",version:t=tn[e],...n})=>{const i=Y(),l=n.options?.page?.fallback,{topItems:s,dispositions:o,defaultLocation:d,logo:m}=Oe(c.SITEMAP||"sitemap",l),h=s?.find((e=>Ut(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(i)),g=h?.items,b=(e=>(t=[])=>{const n=t?.filter(Ut(e));return n?.length?j((e=>e.href?.length||0))(n):void 0})(i)(g),[x,f]=r(!1),y=a((()=>f((e=>!e))),[]);return p(De,{tag:"header",version:t,...n,children:[p("div",{className:"container px-4 py-0 box-border",children:[u(en,{onClick:y,bgColor:e,logo:m}),u("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:u("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,t)=>u(Xt,{className:"mr-8 whitespace-nowrap text-s",active:e===b,...e},String(t))))})})]}),x?u(qt,{onClick:y,burgerSubMenu:o,defaultLocation:d,children:u("div",{className:"list-none m-0 p-0",children:s?.map(((e,t)=>u(It,{label:e.text,children:u(ct,{documents:e.items})},String(t))))})}):null]})})),rn=g((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),an={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},ln=g((({className:e,title:t,description:n,headlineVersion:r="XL",align:i="text-center",as:a,isPadding:l=!0,isTheme:s=!1,version:o="",...c})=>{const d=an[r];return p(De,{className:y("flex flex-col",l?"p-12":"",d.wrapper,e),version:o,isTheme:s,...c,children:[t?u(f,{className:y("whitespace-pre-wrap",i),...d?.title,as:a||d?.title.as,title:t}):null,n?u(rn,{color:"group-data-secondary:text-white/80",size:d.descriptionSize,align:i,children:n}):null]})})),sn=g((({className:e,iconClassName:t,textClassName:n,suffixClassName:r,doc:i,icon:a})=>{const{text:l,fileSize:s,...o}=i;return p("a",{className:e,role:"link",...o,children:[a?u(ve,{className:t,image:ot(a),width:"24px",height:"24px",asSVG:!0}):null,l?p("span",{className:n,children:[l,u("span",{className:r,children:o?.href&&on(cn(o.href),s)})]}):null]})})),on=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),cn=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},dn=g((({className:e="",doc:t,icon:n})=>u(sn,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),mn=g((({hasBorder:e=!0,documents:t,icon:n})=>u(V,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,r)=>u(dn,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n},String(r)))):null}))),hn=g((({hasBorder:e=!0,documents:t,icon:n})=>u("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,r)=>u("div",{role:"listitem",children:u(dn,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n})},String(r)))):null}))),un=g((({className:e="",title:t,description:n,icon:r={icon:"DocIconMonoColor"},documents:i,orientation:a="vertical",hasBorder:l=!0,align:s,...o})=>p(De,{className:y("py-6 px-4 overflow-x-hidden",e),...o,children:[u(ln,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:s,headlineVersion:"M",as:"h2"}),u("vertical"===a?hn:mn,{hasBorder:l,documents:i,icon:r})]}))),pn=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function gn(e=""){const t=pn(e);return t<=4?"S":t<=8?"M":"L"}function bn(e=""){const t=pn(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function xn(e=""){const t=pn(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const fn=g((({className:e,title:t,description:n="Блок в разработке...",...r})=>p(De,{className:y("p-9 box-border",e,xn(e),bn(e)),...r,children:[u(ln,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:gn(e)}),u("figure",{className:"m-0 min-w-[80%]",children:yn()})]}))),yn=(e=3)=>Nn(100,e).map((e=>Math.floor(e))).map(vn),vn=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Nn=(e,t)=>[e].concat(t>0?Nn(e/1.618,t-1):[]),wn=(e,{className:t="",buttonClassName:n,isVertical:r}={})=>e?.length&&e.some((e=>e?.text))?u("div",{className:y("flex",r?"flex-col gap-2":"gap-4",t),children:e.map(kn(n))}):null,kn=(e="")=>(t,n)=>{const{text:r,icon:i,iconRight:a,version:l,...s}=t||{},o="secondary"===l?"color":"white";return r?u(se,{className:e,appendLeft:Cn({...i,iconVersion:o}),appendRight:Cn({...a,iconVersion:o}),version:l,text:r,...s},n?String(n):""):null},Cn=e=>e?.icon||e?.src?u(ve,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,Tn={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},Sn=g((({className:e="",isDotted:t=!0,children:n,size:r="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${Tn[r]}`})}):null,u("span",{children:n})]}))),_n={S:"text-l-light",M:"text-h6",L:"text-h5"},In={S:"ml-2",M:"ml-3",L:"ml-4"},$n=g((({className:e="",hasIndent:t,isDotted:n,itemClassName:r="",items:i,listItemSize:a="M"})=>i?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${_n[a]} ${t?In[a]:""} ${e}`,role:"list",children:i.map(((e,t)=>u(Sn,{className:r,isDotted:n,size:a,children:e},String(t))))}):null)),Mn=g((({className:e="",title:t="",buttons:n,image:r,children:i})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:i}),n?u("div",{className:"mt-auto pt-8",children:n}):null]}),r]})]}))),An=g((e=>{const{className:t="",icon:n,label:r,description:i,version:a="primary",benefitsVersion:l="normal"}=e,s="white"===l?"secondary":"primary";return p("div",{className:`flex gap-5 ${i?"items-start":"items-center"} ${t}`,children:[n?u("div",{className:jn(a,l),children:u(ve,{className:"w-6 h-6",image:ot(n,s),asSVG:!0})}):null,p("div",{className:"gap-0.5",children:[r?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:r}):null,i?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:i}):null]})]})}));function jn(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const Rn=(e="primary",t="normal")=>({icon:n,label:r,description:i},a)=>u(An,{icon:n,label:r,description:i,version:e,benefitsVersion:t},String(a)),On=g((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:r="normal",buttons:i,image:a,items:l,isDotted:s=!0,label:o,title:c,description:d,...m})=>p(De,{className:`w-full ${e}`,...m,children:[p("div",{children:[o?Pn(o):null,u(ln,{className:"!p-0 max-w-[600px]",title:c,description:d,headlineVersion:t,align:"text-left"}),p(Mn,{buttons:wn(i,{className:"mt-5",isVertical:!0}),children:[n?.filter((e=>e.label))?.length?u("div",{className:"mt-3",children:n.map(Rn("primary",r))}):null,l?.length?u($n,{className:"mt-3 text-m",items:l,isDotted:s}):null]})]}),Ln(a)]})));function Ln(e){return e?.src?u(ve,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Pn=e=>u("div",{className:"w-fit px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid border-secondary-hover",children:u(_t,{color:"text-primary-main group-data-secondary:text-white/80",children:e})}),Dn=g((e=>{const{className:t="",...n}=e;return u(De,{className:`px-4 py-6 ${t}`,...n,children:u(On,{...e})})})),Vn=g((e=>{const{__html:t=""}=e;return u("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})})),Bn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},En={normal:"min-h-[70px]",small:"min-h-12"},zn={description:"text-white/80 text-l-light group-data-primary:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},Fn=g((({className:e="",title:t,description:n,showLines:r=!0,steps:i,size:a="normal",version:l="primary",...s})=>p(De,{className:`box-border px-4 py-6 flex flex-col ${e}`,version:l,...s,children:[t?u(f,{headingType:"h3",className:"text-center",title:t}):null,n?u("p",{className:`text-m-light text-center ${zn.description} ${t?"mt-2":""}`,children:n}):null,i?.length?u("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:u("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(Hn(a,l,r))})}):null]}))),Hn=(e,t,n)=>(r,i,a)=>{const{type:l}=r;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return Gn(e,t,n)(r,i,a);case"rte":return u(Vn,{__html:r.__html});default:Ee(r)}},Gn=(e,t,n)=>(r,i,a)=>{const l=a.length-1===i,s="normal"===e?"ml-[34px]":"ml-6";return u("div",{children:p("div",{className:"flex flex-row text-center relative",children:[p("div",{className:"overflow-hidden flex-shrink-0",children:[Jn(e,t)(r,i),l?null:u("div",{className:`min-h-8 h-full w-0.5 ${n?zn.iconConnector:""} ${s}`})]}),p("div",{className:`flex flex-col justify-center h-fit ${En[e]}`,children:[r.label?u("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:r.label}):null,r.description?u("div",{className:`text-s ${zn.description} text-left`,children:r.description}):null]})]})},String(i))},Jn=(e,t)=>(n,r)=>{const i="normal"===e?"38":"27";return u("div",{className:`${Bn[e]} ${zn.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:u("span",{className:`font-medium flex self-center ${"normal"===e?"text-m-title":"text-m-title-xs"}`,children:(a=n?.icon,Boolean(a?.icon||a?.src)?u(ve,{image:ot({...n.icon},t),width:i,height:i,asSVG:!0}):u("span",{children:r+1}))})});var a},Un={Buttons:({buttons:e})=>wn(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(ve,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>u($n,{className:"flex flex-col justify-between items-start text-m",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},Xn=g((({title:e,icon:t})=>p("div",{className:"flex gap-2.5 mb-2",children:[e?u(f,{headingType:"h3",className:"font-medium",title:e}):null,t?u(ve,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Wn=g((({tile:e,...t})=>p("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[u(Xn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>p("div",{children:[n>0?u("div",{className:"h-5"}):null,Yn(e,t)]},String(n)))):null]})));function Yn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Un))return null;const n=Un[e.tableCellType];return u(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Kn=g((({tiles:e,...t})=>e?.length?u(V,{...t,children:e.map(((e,n)=>u(Wn,{tile:e,...t},String(n))))}):null)),Qn=g((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>u(Wn,{tile:e,...t},String(n))))}):null)),qn=g((({className:e,title:t,description:n,tariffsColumns:r,rowHeaders:i,orientation:a="vertical",...l})=>{const s=Zn(r),o=er(i,s);return p("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?u(f,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?u("div",{className:"mb-5 text-center text-m",children:n}):null,u("vertical"===a?Qn:Kn,{tiles:o,...l})]})})),Zn=e=>e?.[0]?.data?e[0].data:[],er=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),tr=g((({title:e,description:t,iconVersion:n,image:r,className:i="",items:a,isDotted:l=!0})=>p("section",{className:`font-sans px-4 py-[18px] flex flex-col bg-white group-data-secondary:bg-primary-main ${i}`,children:["small"===n?u("div",{className:"mb-3",children:u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"})}):null,"big"===n?nr(r):null,p("div",{className:"py-0.5 text-secondary-text group-data-secondary:text-white",children:[e?u("div",{className:"text-l font-medium mb-1",children:e}):null,t?u("div",{className:"text-s ",children:t}):null,a?.length?u($n,{className:"mt-1 text-m",items:a,isDotted:l}):null]})]})));function nr(e){return e?.src?u(ve,{className:"pb-3 mr-auto",image:e}):null}const rr={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},ir={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},ar=g((({className:e="",gap:t="",align:n="stretch",isPadding:r=!1,isInnerPadding:i=!0,version:a="transparent",isTheme:l=!1,...s})=>{const o=i?"":"!p-0";return u(De,{className:y("flex flex-col [&>*]:max-w-full",r?"p-12":"",rr[t],n&&ir[n],e),version:a,isTheme:l,...s,children:kt({...s,renderProps:(e,t)=>vt(e,t,{className:o})})})}));ar.childrenTypes=[];const lr={ComparisonTable:Ie,Footer:Gt,Header:nn,Headline:ln,LinkDocs:un,LinkList:ct,MobileAppTile:xt,ProductBlock:Dn,StepsBlock:Fn,TariffsTable:qn,TextBlock:tr,Placeholder:fn,RollupItem:It,VerticalLayout:ar};const sr=["Header","Footer"],or=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function cr(e=globalThis){const t=s(new Map);i((()=>Le.subscribe("intersection",(({block:e,intersection:n})=>{t.current&&t.current.set(e,n)}))),[]),i((()=>{const n=((e,t=600)=>{let n;const r=(...i)=>{r.dispose(),n=setTimeout((()=>{e(...i)}),t)};return r.dispose=()=>{n&&clearTimeout(n)},r})((()=>{!function(e){const t=`#${n=e?.anchor,n?.replace("#","")||""}`;var n;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!sr.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?O(or)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const dr=h();const mr=g((({className:e,onClick:t,ariaLabel:n})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:hr()}))),hr=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("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"}),u("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"})]})},ur=g((({className:e=""})=>{const t=function(e){const[t,n]=r(0);return i((()=>{(async()=>{const[t]=await dr.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{n(await dr.like(e))}),[e]),dislike:a((async()=>{n(await dr.dislike(e))}),[e])}}(Y().pathname);return p("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:[u(mr,{onClick:W(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(mr,{onClick:W(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),pr=g((e=>{const{className:t="",blocksRegistry:n,blockDecorator:r,data:i={}}=e,{style:a,blocks:l,slots:s,likeControl:o,colorPalette:c="pc"}=i,d={key:"",page:i,blocksRegistry:n,blockDecorator:r,parent:i};cr();const[m,{setTrue:h,setFalse:g}]=qe();return ze({onOpen:h,onClose:g}),p("section",{className:y("relative",a,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:wt(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[wt(l,d),s?.footer?wt(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(ur,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));pr.childrenTypes=[],pr.slots=()=>["header","footer"];e.Blocks=lr,e.ContentPage=pr,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=W,e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.packageVersion="0.9.8",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=U,e.useRouter=Y,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -12,7 +12,7 @@ const Text_1 = require("../../ui-kit/Text/Text");
|
|
|
12
12
|
const style_1 = require("../../utils/style");
|
|
13
13
|
const headlineVersionStyles_1 = require("../Headline/headlineVersionStyles");
|
|
14
14
|
exports.CarouselProductCard = (0, uni_jsx_1.JSX)(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, items = [], target, title, version = 'primary', ...rest }) => {
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)(LinkWrapper_1.LinkWrapper, { className: "p-6", href: href, target: target, children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), (0, renderButtonsSection_1.renderButtonsSection)([button], { className: 'p-6 pt-0', isVertical: true })] }));
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('h-full flex flex-col justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)(LinkWrapper_1.LinkWrapper, { className: "p-6", href: href, target: target, children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), (0, renderButtonsSection_1.renderButtonsSection)([button], { className: 'p-6 pt-0', isVertical: true })] }));
|
|
16
16
|
});
|
|
17
17
|
const renderImage = (image) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5", image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image, asSVG: true })) : null] }));
|
|
18
18
|
const renderCardTitle = (headlineSmallVersion, title) => title ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: headlineVersionStyles_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,4DAAyD;AACzD,mFAAgF;AAChF,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,gEAA6D;AAC7D,iDAA8C;AAC9C,6CAA0C;AAC1C,6EAA2E;AAK9D,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EACC,qBAAqB,EACrB,KAAK,GAAG,aAAa,EACrB,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,WAAW,EACX,oBAAoB,GAAG,IAAI,EAC3B,IAAI,EACJ,IAAI,EACJ,QAAQ,GAAG,IAAI,EACf,KAAK,GAAG,EAAE,EACV,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd
|
|
1
|
+
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":"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"}
|
|
@@ -9,7 +9,7 @@ const LinkWrapper_1 = require("../../ui-kit/LinkWrapper/LinkWrapper");
|
|
|
9
9
|
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
10
10
|
const style_1 = require("../../utils/style");
|
|
11
11
|
exports.CarouselProgramsCard = (0, uni_jsx_1.JSX)(({ className = '', title, icon, list = [], href, target, ...rest }) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('border border-gray
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('border border-gray', className), ...rest, children: (0, jsx_runtime_1.jsxs)(LinkWrapper_1.LinkWrapper, { className: "flex", href: href, target: target, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), asSVG: true }) : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-8 pl-3 w-full", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "mb-3.5", headingType: "h5", title: title }) : null, list.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-3", children: list?.map(renderList) })) : null] })] }) }));
|
|
13
13
|
});
|
|
14
|
-
const renderList = (_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "break-words", children: [_.title ? (0, jsx_runtime_1.jsx)("div", { className:
|
|
14
|
+
const renderList = (_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "break-words", children: [_.title ? (0, jsx_runtime_1.jsx)("div", { className: "text-h6", children: _.title }) : null, _.description ? (0, jsx_runtime_1.jsx)("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
|
|
15
15
|
//# sourceMappingURL=CarouselProgramsCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProgramsCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProgramsCard/CarouselProgramsCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,sEAAmE;AACnE,uEAAoE;AACpE,6CAA0C;AAK7B,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpE,OAAO,CACL,uBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"CarouselProgramsCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProgramsCard/CarouselProgramsCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,sEAAmE;AACnE,uEAAoE;AACpE,6CAA0C;AAK7B,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpE,OAAO,CACL,uBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,oBAAoB,EAAE,SAAS,CAAC,KAAM,IAAI,YACvE,wBAAC,yBAAW,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aACtD,iCAAK,SAAS,EAAC,qCAAqC,aACjD,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EAClE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IACpC,EACN,iCAAK,SAAS,EAAC,iBAAiB,aAC7B,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,SAAS,EAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC5E,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,qBAAqB,YAAE,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,GAAO,CACnE,CAAC,CAAC,CAAC,IAAI,IACJ,IACM,GACD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,CAAsB,EAAE,CAAS,EAAE,EAAE,CAAC,CACxD,iCAAqB,SAAS,EAAC,aAAa,aACzC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EACzD,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,mBAAmB,YAAE,CAAC,CAAC,WAAW,GAAQ,CAAC,CAAC,CAAC,IAAI,KAF1E,MAAM,CAAC,CAAC,CAAC,CAGb,CACP,CAAC"}
|
|
@@ -14,7 +14,7 @@ const SocialMedia_1 = require("../Footer/SocialMedia");
|
|
|
14
14
|
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
15
15
|
const setAdditionalIconStyles = (items) => items.length ? 'w-1/2 flex-1 justify-center' : 'w-full justify-end';
|
|
16
16
|
exports.CarouselRecommendationCard = (0, uni_jsx_1.JSX)(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, version = 'primary', ...rest }) => {
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative p-12 min-w-[524px] h-full
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative p-12 min-w-[524px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(LinkWrapper_1.LinkWrapper, { href: href, target: target, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h3", className: "text-center mb-8", title: title })) : null, (0, jsx_runtime_1.jsx)("div", { className: "mb-5", children: description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-xl", font: "font-light", color: "group-data-gray:text-secondary-text", children: description })) : null }), (0, jsx_runtime_1.jsxs)("div", { className: "flex", children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col w-1/2', items?.length ? 'justify-between' : 'justify-end'), children: [items.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "text-xl-light flex flex-col gap-2 mt-14", items: items })) : null, socialMedia.length ? (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "pb-0", media: socialMedia }) : null] }), renderIconBlock(icon, items)] })] }) }));
|
|
18
18
|
});
|
|
19
19
|
const renderIconBlock = (icon, items) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex', setAdditionalIconStyles(items)), children: [icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), asSVG: true }) : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null] }));
|
|
20
20
|
//# sourceMappingURL=CarouselRecommendationCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,gEAA6D;AAC7D,uEAAoE;AACpE,6CAA0C;AAC1C,uDAAoD;AAGpD,MAAM,YAAY,GAChB,0GAA0G,CAAC;AAE7G,MAAM,uBAAuB,GAAG,CAAC,KAAe,EAAE,EAAE,CAClD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,oBAAoB,CAAC;AAIzD,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,GAAG,EAAE,EACd,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,
|
|
1
|
+
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,gEAA6D;AAC7D,uEAAoE;AACpE,6CAA0C;AAC1C,uDAAoD;AAGpD,MAAM,YAAY,GAChB,0GAA0G,CAAC;AAE7G,MAAM,uBAAuB,GAAG,CAAC,KAAe,EAAE,EAAE,CAClD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,oBAAoB,CAAC;AAIzD,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,GAAG,EAAE,EACd,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,kFAAkF,EAClF,YAAY,EACZ,SAAS,CACV,EACD,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,wBAAC,yBAAW,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aACpC,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAChF,CAAC,CAAC,CAAC,IAAI,EACR,gCAAK,SAAS,EAAC,MAAM,YAClB,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,qBAAS,IACR,IAAI,EAAC,SAAS,EACd,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,qCAAqC,YAE1C,WAAW,GACF,CACb,CAAC,CAAC,CAAC,IAAI,GACJ,EACN,iCAAK,SAAS,EAAC,MAAM,aACnB,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,qBAAqB,EACrB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAClD,aAEA,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,WAAI,IAAC,SAAS,EAAC,yCAAyC,EAAC,KAAK,EAAE,KAAK,GAAI,CAC3E,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAC,yBAAW,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,IAC7E,EACL,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,IACzB,IACM,GACD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,IAAyB,EAAE,KAAe,EAAE,EAAE,CAAC,CACtE,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,MAAM,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,aAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EAClE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IACpC,CACP,CAAC"}
|
|
@@ -3,10 +3,11 @@ exports.LinkWrapper = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const useLink_1 = require("../../hooks/useLink");
|
|
6
|
+
const style_1 = require("../../utils/style");
|
|
6
7
|
exports.LinkWrapper = (0, uni_jsx_1.JSX)(({ className = '', href, target, children }) => {
|
|
7
8
|
const link = (0, useLink_1.useLink)();
|
|
8
9
|
const linkProps = link({ href, target });
|
|
9
10
|
const Tag = href ? 'a' : 'div';
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(Tag, { className: className, ...(href ? linkProps : {}), children: children }));
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(Tag, { className: (0, style_1.style)('block', className), ...(href ? linkProps : {}), children: children }));
|
|
11
12
|
});
|
|
12
13
|
//# sourceMappingURL=LinkWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkWrapper.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkWrapper/LinkWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;
|
|
1
|
+
{"version":3,"file":"LinkWrapper.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkWrapper/LinkWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAQ7B,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9F,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IACzC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;IAE/B,OAAO,CACL,uBAAC,GAAG,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,OAAO,EAAE,SAAS,CAAC,KAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,YACnE,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@ import { Text } from '../../ui-kit/Text/Text.js';
|
|
|
10
10
|
import { style } from '../../utils/style.js';
|
|
11
11
|
import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles.js';
|
|
12
12
|
export const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, items = [], target, title, version = 'primary', ...rest }) => {
|
|
13
|
-
return (_jsxs(BlockWrapper, { className: style('justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [_jsxs(LinkWrapper, { className: "p-6", href: href, target: target, children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), renderButtonsSection([button], { className: 'p-6 pt-0', isVertical: true })] }));
|
|
13
|
+
return (_jsxs(BlockWrapper, { className: style('h-full flex flex-col justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [_jsxs(LinkWrapper, { className: "p-6", href: href, target: target, children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), renderButtonsSection([button], { className: 'p-6 pt-0', isVertical: true })] }));
|
|
14
14
|
});
|
|
15
15
|
const renderImage = (image) => (_jsxs("div", { className: "flex justify-center", children: [image?.src ? _jsx(Img, { className: "mb-5", image: image }) : null, image?.icon ? (_jsx(Img, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image, asSVG: true })) : null] }));
|
|
16
16
|
const renderCardTitle = (headlineSmallVersion, title) => title ? (_jsx("div", { children: _jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAK3E,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC,CAAC,EACC,qBAAqB,EACrB,KAAK,GAAG,aAAa,EACrB,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,WAAW,EACX,oBAAoB,GAAG,IAAI,EAC3B,IAAI,EACJ,IAAI,EACJ,QAAQ,GAAG,IAAI,EACf,KAAK,GAAG,EAAE,EACV,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,MAAC,YAAY,IACX,SAAS,EAAE,KAAK,CACd
|
|
1
|
+
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":"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"}
|
|
@@ -7,7 +7,7 @@ import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper.js';
|
|
|
7
7
|
import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
|
|
8
8
|
import { style } from '../../utils/style.js';
|
|
9
9
|
export const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], href, target, ...rest }) => {
|
|
10
|
-
return (_jsx(BlockWrapper, { className: style('border border-gray
|
|
10
|
+
return (_jsx(BlockWrapper, { className: style('border border-gray', className), ...rest, children: _jsxs(LinkWrapper, { className: "flex", href: href, target: target, children: [_jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? _jsx(Img, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? _jsx(Img, { image: icon }) : null] }), _jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? _jsx(Heading, { className: "mb-3.5", headingType: "h5", title: title }) : null, list.length ? (_jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList) })) : null] })] }) }));
|
|
11
11
|
});
|
|
12
|
-
const renderList = (_, i) => (_jsxs("div", { className: "break-words", children: [_.title ? _jsx("div", { className:
|
|
12
|
+
const renderList = (_, i) => (_jsxs("div", { className: "break-words", children: [_.title ? _jsx("div", { className: "text-h6", children: _.title }) : null, _.description ? _jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
|
|
13
13
|
//# sourceMappingURL=CarouselProgramsCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProgramsCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProgramsCard/CarouselProgramsCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpE,OAAO,CACL,KAAC,YAAY,IAAC,SAAS,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"CarouselProgramsCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProgramsCard/CarouselProgramsCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpE,OAAO,CACL,KAAC,YAAY,IAAC,SAAS,EAAE,KAAK,CAAC,oBAAoB,EAAE,SAAS,CAAC,KAAM,IAAI,YACvE,MAAC,WAAW,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aACtD,eAAK,SAAS,EAAC,qCAAqC,aACjD,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EAClE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IACpC,EACN,eAAK,SAAS,EAAC,iBAAiB,aAC7B,KAAK,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,SAAS,EAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC5E,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAC,qBAAqB,YAAE,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,GAAO,CACnE,CAAC,CAAC,CAAC,IAAI,IACJ,IACM,GACD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,CAAsB,EAAE,CAAS,EAAE,EAAE,CAAC,CACxD,eAAqB,SAAS,EAAC,aAAa,aACzC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EACzD,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,mBAAmB,YAAE,CAAC,CAAC,WAAW,GAAQ,CAAC,CAAC,CAAC,IAAI,KAF1E,MAAM,CAAC,CAAC,CAAC,CAGb,CACP,CAAC"}
|
|
@@ -12,7 +12,7 @@ import { SocialMedia } from '../Footer/SocialMedia.js';
|
|
|
12
12
|
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
13
13
|
const setAdditionalIconStyles = (items) => items.length ? 'w-1/2 flex-1 justify-center' : 'w-full justify-end';
|
|
14
14
|
export const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, version = 'primary', ...rest }) => {
|
|
15
|
-
return (_jsx(BlockWrapper, { className: style('relative p-12 min-w-[524px] h-full
|
|
15
|
+
return (_jsx(BlockWrapper, { className: style('relative p-12 min-w-[524px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: _jsxs(LinkWrapper, { href: href, target: target, children: [title ? (_jsx(Heading, { headingType: "h3", as: "h3", className: "text-center mb-8", title: title })) : null, _jsx("div", { className: "mb-5", children: description ? (_jsx(Paragraph, { size: "text-xl", font: "font-light", color: "group-data-gray:text-secondary-text", children: description })) : null }), _jsxs("div", { className: "flex", children: [_jsxs("div", { className: style('flex flex-col w-1/2', items?.length ? 'justify-between' : 'justify-end'), children: [items.length ? (_jsx(List, { className: "text-xl-light flex flex-col gap-2 mt-14", items: items })) : null, socialMedia.length ? _jsx(SocialMedia, { className: "pb-0", media: socialMedia }) : null] }), renderIconBlock(icon, items)] })] }) }));
|
|
16
16
|
});
|
|
17
17
|
const renderIconBlock = (icon, items) => (_jsxs("div", { className: style('flex', setAdditionalIconStyles(items)), children: [icon?.icon ? _jsx(Img, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? _jsx(Img, { image: icon }) : null] }));
|
|
18
18
|
//# sourceMappingURL=CarouselRecommendationCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,MAAM,YAAY,GAChB,0GAA0G,CAAC;AAE7G,MAAM,uBAAuB,GAAG,CAAC,KAAe,EAAE,EAAE,CAClD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,oBAAoB,CAAC;AAItE,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAC3C,CAAC,EACC,SAAS,GAAG,EAAE,EACd,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,KAAC,YAAY,IACX,SAAS,EAAE,KAAK,CACd,
|
|
1
|
+
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { useLink } from '../../hooks/useLink.js';
|
|
4
|
+
import { style } from '../../utils/style.js';
|
|
4
5
|
export const LinkWrapper = JSX(({ className = '', href, target, children }) => {
|
|
5
6
|
const link = useLink();
|
|
6
7
|
const linkProps = link({ href, target });
|
|
7
8
|
const Tag = href ? 'a' : 'div';
|
|
8
|
-
return (_jsx(Tag, { className: className, ...(href ? linkProps : {}), children: children }));
|
|
9
|
+
return (_jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
|
|
9
10
|
});
|
|
10
11
|
//# sourceMappingURL=LinkWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkWrapper.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkWrapper/LinkWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"LinkWrapper.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkWrapper/LinkWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAQ1C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9F,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IACzC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;IAE/B,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,KAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,YACnE,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,
|
|
1
|
+
{"version":3,"file":"SwipeListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EACL,uBAAuB,GAExB,MAAM,qCAAqC,CAAC;AAc7C,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAC9B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,EAAE;IACzF,MAAM,gBAAgB,GAAG,WAAW,CAClC,CAAC,OAAoC,EAAE,EAAE;QACvC,IAAI,OAAO,CAAC,MAAM,IAAI,cAAc,EAAE;YACpC,cAAc,CAAC,GAAG,IAAI,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;SACvD;IACH,CAAC,EACD,CAAC,cAAc,EAAE,GAAG,CAAC,CACtB,CAAC;IACF,MAAM,GAAG,GAAG,uBAAuB,CAAiB,gBAAgB,EAAE,eAAe,CAAC,CAAC;IAEvF,OAAO,CACL,cACE,SAAS,EAAE,uCAAuC,SAAS,EAAE,EAC7D,KAAK,EAAE,KAAK,kBACE,OAAO,CAAC,GAAG,KAAK,WAAW,CAAC,EAC1C,GAAG,EAAE,GAAG,YAEP,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -35,7 +35,7 @@ export const CarouselProductCard = JSX<CarouselProductCardProps>(
|
|
|
35
35
|
return (
|
|
36
36
|
<BlockWrapper
|
|
37
37
|
className={style(
|
|
38
|
-
'justify-between min-w-[260px]',
|
|
38
|
+
'h-full flex flex-col justify-between min-w-[260px]',
|
|
39
39
|
'box-border border-solid border border-gray',
|
|
40
40
|
align,
|
|
41
41
|
className,
|
|
@@ -14,14 +14,14 @@ export interface CarouselTariffsCardProps extends CarouselProgramsCardContent, U
|
|
|
14
14
|
export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
|
|
15
15
|
({ className = '', title, icon, list = [], href, target, ...rest }) => {
|
|
16
16
|
return (
|
|
17
|
-
<BlockWrapper className={style('border border-gray
|
|
17
|
+
<BlockWrapper className={style('border border-gray', className)} {...rest}>
|
|
18
18
|
<LinkWrapper className="flex" href={href} target={target}>
|
|
19
19
|
<div className="w-[200px] min-w-[200px] self-center">
|
|
20
20
|
{icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
|
|
21
21
|
{icon?.src ? <Img image={icon} /> : null}
|
|
22
22
|
</div>
|
|
23
23
|
<div className="p-8 pl-3 w-full">
|
|
24
|
-
{title ? <Heading className="
|
|
24
|
+
{title ? <Heading className="mb-3.5" headingType="h5" title={title} /> : null}
|
|
25
25
|
{list.length ? (
|
|
26
26
|
<div className="flex flex-col gap-3">{list?.map(renderList)}</div>
|
|
27
27
|
) : null}
|
|
@@ -34,7 +34,7 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
|
|
|
34
34
|
|
|
35
35
|
const renderList = (_: HeadlineCommonProps, i: number) => (
|
|
36
36
|
<div key={String(i)} className="break-words">
|
|
37
|
-
{_.title ? <div className=
|
|
37
|
+
{_.title ? <div className="text-h6">{_.title}</div> : null}
|
|
38
38
|
{_.description ? <span className="text-l-light mt-1">{_.description}</span> : null}
|
|
39
39
|
</div>
|
|
40
40
|
);
|