(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14044,e=>{"use strict";e.s(["g",0,(e,t=!0)=>t?e:void 0])},58858,e=>{"use strict";var t=e.i(71645);e.s(["S",0,function(e){return t.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M7.22 12.53a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 1 1 1.06 1.06L8.81 12l5.97 5.97a.75.75 0 1 1-1.06 1.06l-6.5-6.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}])},27060,69677,71666,71469,e=>{"use strict";var t=e.i(43476),l=e.i(71645),s=e.i(7670),o=e.i(54061),a=e.i(14044),n=e.i(58858);function i(e){return l.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"m10.28 19.03 6.5-6.5a.75.75 0 0 0 0-1.06l-6.5-6.5a.75.75 0 1 0-1.06 1.06L15.19 12l-5.97 5.97a.75.75 0 1 0 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}e.s(["S",0,i],69677);var d=e.i(2404);let r=(0,o.g)("breadcrumbs"),c={breadcrumbs:r,breadcrumbsEllipsis:`${r}--ellipsis`,displayOne:`${r}--display-one`,list:`${r}__list`,mobileList:`${r}__list--mobile`,desktopList:`${r}__list--desktop`,item:`${r}__item`,customItem:`${r}__item--custom`,link:`${r}__link`,linkLabel:`${r}__link-label`,text:`${r}__text`,separator:`${r}__separator`,backIcon:`${r}__back-icon`,iconMobile:`${r}__icon--mobile`,iconDesktop:`${r}__icon--desktop`},u=(e=[],t,l)=>{var s;return t||l?{label:t||"Назад",href:"object"!=typeof l?l||"#":void 0,customLink:"object"==typeof l?l:void 0}:e.length&&e.length>1?(null==(s=e[e.length-1])?void 0:s.href)?e[e.length-1]:e[e.length-2]:{label:e[0].label||"Назад",href:e[0].href||"#",customLink:e[0].customLink}};function m(e){return l.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8.22 12.53a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 1 1 1.06 1.06L9.81 12l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}function p(e){return l.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"m11.28 17.03 4.5-4.5a.75.75 0 0 0 0-1.06l-4.5-4.5a.75.75 0 1 0-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 1 0 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let _=({as:e,item:l,isBackward:o=!1,isLast:a,dataQa:r,onClick:u})=>(0,t.jsx)(t.Fragment,{children:l.href||l.customLink?(0,t.jsxs)(t.Fragment,{children:[l.customLink?(0,t.jsx)(t.Fragment,{children:l.customLink}):(0,t.jsxs)(e||"a",{href:l.href,"data-qa":r,className:c.link,title:l.label,onClick:u?e=>u(e,l.href):void 0,children:[o&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.P,{className:(0,s.default)(c.backIcon,c.iconDesktop),children:(0,t.jsx)(n.S,{})}),(0,t.jsx)(d.P,{className:(0,s.default)(c.backIcon,c.iconMobile),children:(0,t.jsx)(m,{})})]}),(0,t.jsx)("span",{className:c.linkLabel,children:l.label})]}),!o&&!a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.P,{className:(0,s.default)(c.separator,c.iconDesktop),children:(0,t.jsx)(i,{})}),(0,t.jsx)(d.P,{className:(0,s.default)(c.separator,c.iconMobile),children:(0,t.jsx)(p,{})})]})]}):(0,t.jsx)("span",{"aria-current":"page","data-qa":r,className:c.text,title:l.label,children:l.label})});_.displayName="BreadcrumbsLink";let h=({as:e,items:o=[],dataQa:n,backwardHref:i,backwardLabel:d,onClick:r})=>{let m=(0,l.useRef)(null),p=(0,l.useCallback)(e=>{let t=m.current;if(!t)return;let l=(null==e?void 0:e.target).closest("a");if(!l)return;let s=t.getBoundingClientRect(),o=l.getBoundingClientRect();t.scrollTo({left:o.left-s.left-8+(t.scrollLeft??0),behavior:"smooth"})},[]),h=u(o,d,i),f=(e,t)=>{p(e),null==r||r(e,t)};return(0,t.jsx)("ul",{ref:m,className:(0,s.default)(c.list,c.desktopList),"data-qa":(0,a.g)(`${n}-desktop-list`,!!n),children:1===o.length||i||d?(0,t.jsx)("li",{className:(0,s.default)(c.item),children:(0,t.jsx)(_,{as:e,isBackward:!0,dataQa:(0,a.g)(`${n}-link`,!!n),item:h,onClick:f})}):(0,t.jsx)(t.Fragment,{children:o.map((l,i)=>(0,t.jsx)("li",{className:(0,s.default)(c.item,{[c.customItem]:l.customLink}),children:(0,t.jsx)(_,{as:e,item:l,dataQa:(0,a.g)(`${n}-link-${++i}`,!!n),isLast:i===o.length,onClick:f})},`${l.label}--${i}`))})})};h.displayName="DesktopBreadcrumbs";let f=({as:e,items:l=[],backwardLabel:o,backwardHref:n,dataQa:i,onClick:d})=>{let r=u(l,o,n);return(0,t.jsx)("ul",{className:(0,s.default)(c.list,c.mobileList),"data-qa":(0,a.g)(`${i}-mobile-list`,!!i),children:(0,t.jsx)("li",{className:(0,s.default)(c.item),children:(0,t.jsx)(_,{as:e,isBackward:!0,dataQa:(0,a.g)(`${i}-link`,!!i),item:r,onClick:d})})})};f.displayName="MobileBreadcrumbs";let b=(0,l.forwardRef)(({items:e=[],as:l,isMobile:o,onClick:a,backwardLabel:n,backwardHref:i,style:d,className:r,ellipsis:u=!1,isFullView:m=!1,dataQa:p,dataId:_,...b},v)=>{let g=e.length||n||i;return(0,t.jsx)(t.Fragment,{children:g&&(0,t.jsxs)("nav",{ref:v,"aria-label":"breadcrumbs",className:(0,s.default)(c.breadcrumbs,{[c.displayOne]:void 0===o&&!m,[c.breadcrumbsEllipsis]:u},r),style:d,...b,"data-id":_,"data-qa":p,children:[!0!==o&&(0,t.jsx)(h,{as:l,items:e,dataQa:p,backwardLabel:n,backwardHref:i,onClick:a||void 0}),!1!==o&&!m&&(0,t.jsx)(f,{as:l,items:e,dataQa:p,backwardLabel:n,backwardHref:i,onClick:a||void 0})]})})});b.displayName="Breadcrumbs",e.s(["Breadcrumbs",0,b],27060);var v=e.i(12569);let g={display:"h1",hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},w=(0,o.g)("heading"),x=Object.freeze({heading:w,states:Object.freeze({display:`${w}--display`,hero:`${w}--hero`,h1:`${w}--h1`,h2:`${w}--h2`,h3:`${w}--h3`,h4:`${w}--h4`,h5:`${w}--h5`,h6:`${w}--h6`})}),j=({as:e,children:l,weight:o,type:a,lineClamp:n,className:i,style:d,dataQa:r,dataId:c,...u})=>{var m;let p=e||g[a]||"div",_=/^h[1-6]$/.test(p),h=(null==(m=a.match(/\d+/))?void 0:m[0])||1;return(0,t.jsx)(p,{className:(0,s.default)(x.heading,x.states[a],i),style:{...o?{fontWeight:`var(--font-weight-${o})`}:void 0,...n?{WebkitLineClamp:n,lineClamp:n,...v.l}:void 0,...d},role:_?null:"heading","aria-level":_?null:h,...u,"data-id":c,"data-qa":r,children:l})};j.displayName="Heading",e.s([],71666),e.s(["Heading",0,j],71469)},59626,e=>{e.v({close:"ClickOutside-module-scss-module__hnbccW__close",fade:"ClickOutside-module-scss-module__hnbccW__fade","fade-out":"ClickOutside-module-scss-module__hnbccW__fade-out",open:"ClickOutside-module-scss-module__hnbccW__open",overlay:"ClickOutside-module-scss-module__hnbccW__overlay"})},47384,e=>{e.v({footer:"MobileModalFooter-module-scss-module__ofBYjW__footer",footerWithoutShadow:"MobileModalFooter-module-scss-module__ofBYjW__footerWithoutShadow"})},70997,e=>{e.v({closeButton:"MobilePopup-module-scss-module__DZ3YPa__closeButton",closeContainer:"MobilePopup-module-scss-module__DZ3YPa__closeContainer",content:"MobilePopup-module-scss-module__DZ3YPa__content",contentContainer:"MobilePopup-module-scss-module__DZ3YPa__contentContainer",contentFull:"MobilePopup-module-scss-module__DZ3YPa__contentFull",contentLine:"MobilePopup-module-scss-module__DZ3YPa__contentLine",contentTransition:"MobilePopup-module-scss-module__DZ3YPa__contentTransition",contentTransitionOpen:"MobilePopup-module-scss-module__DZ3YPa__contentTransitionOpen",min:"MobilePopup-module-scss-module__DZ3YPa__min",mobilePopup:"MobilePopup-module-scss-module__DZ3YPa__mobilePopup",smallContentContainer:"MobilePopup-module-scss-module__DZ3YPa__smallContentContainer",title:"MobilePopup-module-scss-module__DZ3YPa__title"})},25352,e=>{e.v({selected:"SidebarTabsList-module-scss-module__t4nSua__selected",tab:"SidebarTabsList-module-scss-module__t4nSua__tab",tabTitle:"SidebarTabsList-module-scss-module__t4nSua__tabTitle",tabs:"SidebarTabsList-module-scss-module__t4nSua__tabs",tabsTitle:"SidebarTabsList-module-scss-module__t4nSua__tabsTitle"})},98791,e=>{e.v({iconMobile:"SidebarTopTitle-module-scss-module__8QYtiq__iconMobile",title:"SidebarTopTitle-module-scss-module__8QYtiq__title",titleWrapper:"SidebarTopTitle-module-scss-module__8QYtiq__titleWrapper"})},72788,e=>{e.v({container:"Sidebar-module-scss-module__ydT3aG__container",mobile:"Sidebar-module-scss-module__ydT3aG__mobile",popup:"Sidebar-module-scss-module__ydT3aG__popup",popupContent:"Sidebar-module-scss-module__ydT3aG__popupContent",stickySidebar:"Sidebar-module-scss-module__ydT3aG__stickySidebar"})},2992,e=>{e.v({chapter:"PravilaOsago-module-scss-module__EnL-uW__chapter",chapterName:"PravilaOsago-module-scss-module__EnL-uW__chapterName",chapterTitle:"PravilaOsago-module-scss-module__EnL-uW__chapterTitle",content:"PravilaOsago-module-scss-module__EnL-uW__content",contentWrapper:"PravilaOsago-module-scss-module__EnL-uW__contentWrapper",description:"PravilaOsago-module-scss-module__EnL-uW__description",downloadIcon:"PravilaOsago-module-scss-module__EnL-uW__downloadIcon",downloadLink:"PravilaOsago-module-scss-module__EnL-uW__downloadLink",htmlContent:"PravilaOsago-module-scss-module__EnL-uW__htmlContent",main:"PravilaOsago-module-scss-module__EnL-uW__main",page:"PravilaOsago-module-scss-module__EnL-uW__page",sidebarChapterTitle:"PravilaOsago-module-scss-module__EnL-uW__sidebarChapterTitle",sidebarTab:"PravilaOsago-module-scss-module__EnL-uW__sidebarTab",title:"PravilaOsago-module-scss-module__EnL-uW__title",topInfo:"PravilaOsago-module-scss-module__EnL-uW__topInfo"})},82704,e=>{"use strict";var t=e.i(43476),l=e.i(71645),s=e.i(62965),o=e.i(27060),a=e.i(60822);e.i(71666);var n=e.i(71469);e.i(46401);var i=e.i(34986),d=e.i(7670),r=e.i(74080);let c=({children:e,id:t="portal-root"})=>{let[s,o]=(0,l.useState)(null);return((0,l.useEffect)(()=>{let e=document.getElementById(t),l=!1;e||((e=document.createElement("div")).id=t,document.body.appendChild(e),l=!0);let s=requestAnimationFrame(()=>{o(e)});return()=>{cancelAnimationFrame(s),l&&e.parentNode&&e.parentNode.removeChild(e)}},[t]),s)?(0,r.createPortal)(e,s):null},u=300;var m=e.i(59626);let p=({onClose:e,onToucheMove:s,isOpen:o,delay:a=u})=>{let n=(0,l.useRef)(null),i=(0,l.useCallback)(()=>{e&&(n.current=setTimeout(()=>{e()},a))},[a,e]),r=(0,l.useCallback)(e=>{"Escape"===e.key&&i()},[i]);return(0,l.useEffect)(()=>(o&&window.addEventListener("keydown",r),()=>{n.current&&clearTimeout(n.current),window.removeEventListener("keydown",r)}),[o,r]),(0,t.jsx)("div",{className:(0,d.default)(m.default.overlay,{[m.default.open]:o,[m.default.close]:!o}),onTouchStart:s,onClick:i})};var _=e.i(47384);let h=({footer:e,isSmallPopup:l=!1,footerClassName:s})=>(0,t.jsx)("div",{className:(0,d.default)(_.default.footer,l&&_.default.footerWithoutShadow,s),children:"function"==typeof e?e():e});var f=e.i(70997);let b=({children:e,footer:s,isOpen:o,isSmallPopup:a,onClose:n,hasCloseButton:i=!0,full:r,touchDistance:c=100,withDisabledScroll:u=!0,contentClassName:m,className:_,title:b,closeButton:v,footerClassName:g})=>{var w;let x,j,[y,P]=(0,l.useState)(!1),[N,k]=(0,l.useState)(!1),[L,T]=(0,l.useState)(!0),[C,E]=(0,l.useState)("120%"),S=(0,l.useRef)(null),$=(0,l.useRef)(0),O=(0,l.useRef)(!1),W=e=>{let t=S.current?.offsetTop,l=S.current?.offsetHeight;if(O.current=!0,T(!1),t&&l){let s=e?.touches[0]?.clientY-t,o=0;s>=0&&s<=l+30&&(o=s),s>l+30&&(o=l+30),E(`${o}px`),$.current=o}},B=()=>{O.current&&($.current>c&&n?n?.():E("0"),T(!0),O.current=!1),window.removeEventListener("touchmove",W),window.removeEventListener("touchend",B)};return(0,l.useEffect)(()=>{o&&setTimeout(()=>{P(!0),k(!0),E("0")},100),!o&&N&&(E("120%"),P(!1),k(!1))},[N,o]),w=o&&u,x=(0,l.useRef)(null),j=(0,l.useRef)(!1),(0,l.useEffect)(()=>{if(j.current===w)return;j.current=w;let e=x.current,t=window.innerWidth-document.documentElement.clientWidth;w&&t&&!document.body.style.top&&(window.prevScrollPosition=window.scrollY||window.pageYOffset),w&&t&&(document.documentElement.style.setProperty("overflow-y","scroll"),document.body.classList.toggle("scroll-disable-windows",!0),document.body.style.setProperty("width",`calc(100vw - ${t}px)`),document.body.style.setProperty("top",`-${window.prevScrollPosition}px`)),w&&!t&&(document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vw")),w&&e&&e.setAttribute("data-portal","");let l=document.querySelectorAll("[data-portal]").length>1;return w||l||(document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),document.body.style.removeProperty("width"),document.body.style.removeProperty("top")),w||l||void 0===window.prevScrollPosition||(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0),!w&&e&&e.removeAttribute("data-portal"),()=>{document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)}},[w]),(0,t.jsxs)("div",{"data-portal":!0,className:(0,d.default)(f.default.mobilePopup,N&&f.default.mobilePopupOpen,_),children:[(0,t.jsx)(p,{onClose:()=>{o&&n?.()},onToucheMove:()=>{o&&(P(!1),window.addEventListener("touchmove",W),window.addEventListener("touchend",B))},isOpen:o,delay:0}),(0,t.jsxs)("div",{className:(0,d.default)(f.default.content,r&&f.default.contentFull,L&&f.default.contentTransition,L&&y&&f.default.contentTransitionOpen),ref:S,style:{transform:`translateY(${C})`},children:[(0,t.jsx)("div",{className:f.default.contentLine}),(0,t.jsxs)("div",{className:(0,d.default)(f.default.contentContainer,a&&f.default.smallContentContainer,{[f.default.min]:!b&&!i},m),children:[!!b&&(0,t.jsx)("div",{className:f.default.title,children:b}),i?(0,t.jsx)("div",{className:f.default.closeContainer,children:i?v?"function"==typeof v?v():v:(0,t.jsx)("button",{onClick:n,className:f.default.closeButton,children:(0,t.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})}):null}):null,e]}),s&&(0,t.jsx)(h,{footerClassName:g,isSmallPopup:a,footer:s})]})]})},v=({children:e,isSmallPopup:s=!1,isOpen:o=!1,...a})=>{let{mounted:n}=(({opened:e})=>{let[t,s]=(0,l.useState)(!1),o=(0,l.useRef)(null),a=(0,l.useRef)(!1);return(0,l.useEffect)(()=>(e&&!a.current?(a.current=!0,s(!0)):!e&&a.current&&(o.current=setTimeout(()=>{a.current=!1,s(!1)},u)),()=>{o.current&&clearTimeout(o.current)}),[e]),{mounted:t}})({opened:o});return n?(0,t.jsx)(b,{isSmallPopup:s,isOpen:o,...a,children:e}):null};v.displayName="UiMobilePopup";var g=e.i(25352);let w=({tabs:e,activeTab:l,setActiveTab:s})=>(0,t.jsxs)("div",{className:g.default.tabs,children:[(0,t.jsx)("div",{className:g.default.tabsTitle,children:"Оглавление"}),e.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>s(e.anchor),className:(0,d.default)(g.default.tab,{[g.default.selected]:e.anchor===l}),children:(0,t.jsx)("div",{className:g.default.tabTitle,children:e.title})},e.anchor))]});var x=e.i(98791);let j=({openPopup:e})=>(0,t.jsxs)("div",{className:x.default.titleWrapper,onClick:e,children:[(0,t.jsx)("p",{className:x.default.title,children:"Навигатор"}),(0,t.jsx)(s.IconFdsChevronDownO,{className:x.default.iconMobile})]});var y=e.i(72788);let P=({tabs:e,activeTab:s,setActiveTab:o})=>{let[a,n]=(0,l.useState)(!1),i=(0,l.useRef)(null),r=()=>n(!1),u=e=>{if(i.current=e,o(e),a)r();else{let t=document.getElementById(e);if(!t)return;let l=t.getBoundingClientRect().top+window.scrollY-104;window.scroll({top:l,behavior:"smooth"})}};return(0,l.useEffect)(()=>{if(!a&&i.current){let e=i.current;i.current=null;let t=document.getElementById(e);if(!t)return;let l=t.getBoundingClientRect().top+window.scrollY-104;window.scroll({top:l,behavior:"smooth"})}},[a]),(0,l.useEffect)(()=>{let t=()=>{if(i.current)return;let t=null,l=1/0;e.forEach(e=>{let s=document.getElementById(e.anchor);if(!s)return;let o=Math.abs(s.getBoundingClientRect().top-50);o<l&&(l=o,t=e)}),t&&o(t.anchor)};return window.addEventListener("scroll",t,{passive:!0}),t(),()=>window.removeEventListener("scroll",t)},[e,o]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("aside",{className:y.default.stickySidebar,children:(0,t.jsxs)("div",{className:y.default.container,children:[(0,t.jsx)(j,{}),(0,t.jsx)(w,{tabs:e,activeTab:s,setActiveTab:u})]})}),(0,t.jsxs)("div",{className:(0,d.default)(y.default.container,y.default.mobile),children:[(0,t.jsx)(j,{openPopup:()=>n(!0)}),(0,t.jsx)(c,{children:(0,t.jsx)(v,{className:y.default.popup,contentClassName:y.default.popupContent,isOpen:a,onClose:r,title:"Навигатор",children:(0,t.jsx)(w,{tabs:e,activeTab:s,setActiveTab:u})})})]})]})};var N=e.i(2992);e.s(["PravilaOsago",0,({title:e,dateFrom:d,description:r,file:c,contentBlocks:u})=>{let m=[{href:"/",label:"Главная"},{href:"/kasko",label:"Правила страхования"},{label:e}],p=u.map(({anchor:e,title:l,chapterTitle:s})=>({anchor:`#${e}`,title:(0,t.jsxs)("p",{className:N.default.sidebarTab,children:[(0,t.jsx)("span",{className:N.default.sidebarChapterTitle,children:s})," ",l]})})),[_,h]=(0,l.useState)(p[0].anchor);return(0,t.jsx)("div",{className:N.default.page,children:(0,t.jsxs)(a.Container,{children:[(0,t.jsx)(o.Breadcrumbs,{ellipsis:!0,items:m,style:{padding:"16px 0"}}),(0,t.jsx)(n.Heading,{type:"h1",className:N.default.title,children:e}),(0,t.jsxs)("div",{className:N.default.main,children:[(0,t.jsx)(P,{tabs:p,activeTab:_,setActiveTab:h}),(0,t.jsx)("div",{className:N.default.contentWrapper,children:(0,t.jsxs)("div",{className:N.default.content,children:[(0,t.jsxs)("div",{className:N.default.topInfo,children:[(0,t.jsx)("p",{className:N.default.chapterTitle,children:d}),(0,t.jsxs)(i.Link,{href:c.href,className:N.default.downloadLink,children:[(0,t.jsx)(s.IconFdsArrowBarToDownO,{size:20,className:N.default.downloadIcon}),"Скачать текст правил"]})]}),(0,t.jsx)("p",{className:N.default.description,children:r}),u.map(e=>{let{chapterTitle:l,anchor:s,title:o,content:a}=e;return(0,t.jsxs)("div",{id:`#${s}`,className:N.default.chapter,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:N.default.chapterTitle,children:l}),(0,t.jsx)(n.Heading,{type:"h3",className:N.default.chapterName,children:o})]}),(0,t.jsx)("div",{className:N.default.htmlContent,dangerouslySetInnerHTML:{__html:a}})]},e.anchor)})]})})]})]})})}],82704)}]);