1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[619],{34654:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[city]/about",function(){return l(34180)}])},59403:function(e,t,l){"use strict";var n=l(85893);l(67294);var a=l(16024),i=l(36491);let s={primary:{base:"bg-paleMainColor rounded-radius-sm p-3",label:"text-main",value:"text-main",valueVariant:"descriptionAccentMd",labelVariant:"labelAccent",icon:"text-main",interactive:""},default:{base:"py-3 pl-2 rounded-radius-sm",label:"text-text-extra",value:"text-text-base",valueVariant:"mainTextAccentMd",labelVariant:"labelAccent",icon:"text-text-extra",interactive:"hover:bg-interactive active:bg-interactive cursor-pointer pr-2"}};t.Z=e=>{let{icon:t,value:l,label:r,variant:c="default",interactive:o=!1,onClick:d}=e;return(0,n.jsxs)("div",{onClick:()=>{o&&d&&d()},className:"flex items-center gap-3 ".concat(s[c].base," ").concat(o?s[c].interactive:""),children:[t&&(0,n.jsx)("div",{className:"shrink-0 ".concat(s[c].icon),children:t}),(0,n.jsxs)("div",{className:"grow flex flex-col gap-1",children:[r&&(0,n.jsx)(a.x,{variant:s[c].labelVariant,node:"p",className:"".concat(s[c].label),children:r}),(0,n.jsx)(a.x,{variant:s[c].valueVariant,node:"p",className:"".concat(s[c].value),children:l})]}),o&&(0,n.jsx)(i.Js,{className:"shrink-0 text-text-base"})]})}},23495:function(e,t,l){"use strict";var n=l(85893);l(67294);var a=l(87650),i=l(36491),s=l(16024),r=l(41664),c=l.n(r);t.Z=e=>{let{onClick:t,title:l,subtitle:r,buttonText:o="Ðазад",href:d}=e,x=()=>{t&&t()};return(0,n.jsxs)("div",{className:"hidden md:flex flex-col gap-2 text-text-base",children:[d?(0,n.jsx)(c(),{href:d,className:"w-fit",children:(0,n.jsx)(a.zx,{variant:"extra",link:!0,icon:(0,n.jsx)(i.wz,{}),onClick:x,children:o})}):(0,n.jsx)(a.zx,{variant:"extra",link:!0,icon:(0,n.jsx)(i.wz,{}),onClick:x,className:"w-fit",children:o}),l&&(0,n.jsx)(s.x,{variant:"headingLg",node:"h1",children:l}),r&&(0,n.jsx)(s.x,{variant:"descriptionText",node:"p",className:"text-text-extra",children:r})]})}},85450:function(e,t,l){"use strict";l.d(t,{U8:function(){return i.Z},HC:function(){return s.Z},sQ:function(){return n.s},Y2:function(){return a.Y2},m7:function(){return f},V1:function(){return m.Z},oi:function(){return a.oi}});var n=l(89389),a=l(37244);l(95632),l(87324);var i=l(59403),s=l(30547),r=l(85893);l(67294);var c=l(36491),o=l(16024),d=l(87650),x=l(41664),u=l.n(x),h=l(45007),v=l(54389);let p={notifications:c.e7,history:c.Qz,cart:c.Uu,stock:c.c5,reviews:c.bV};var f=e=>{let{page:t,buttonText:l,text:n="ТÑÑ Ð¿Ð¾ÐºÐ° пÑÑÑо"}=e,a=(0,h.v9)(v.rj.city),i=p[t];return(0,r.jsx)("div",{className:"py-safe-spacing-xl",children:(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsxs)("div",{className:"flex flex-col gap-8 items-center",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 items-center text-invalid w-fit text-center",children:[(0,r.jsx)(i,{}),(0,r.jsx)(o.x,{variant:"subHeadingMd",children:n})]}),l&&(0,r.jsx)(u(),{href:"/".concat(a.slug),className:"w-fit",children:(0,r.jsx)(d.zx,{variant:"primary",size:"lg",children:l})})]})})})},m=l(23495)},34180:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return U}});var n=l(85893),a=l(67294),i=l(97780),s=l(9008),r=l.n(s),c=l(45726),o=l(45007),d=l(54389),x=l(51347),u=l(85450),h=l(11163),v=l(16024),p=l(87650),f=l(36491),m=l(45689),j=l(97362),g=e=>{let{isMobile:t,config:l,children:a}=e;return t?(0,n.jsx)(j.x,{...l.mobile,children:a}):(0,n.jsx)(j.q,{...l.desktop,children:a})},b=l(10738),N=l(80514),y=l(81889),k=l(32946);function w(e){let{company:t,isActive:l,currentPickupPoint:i,selectPickUpPoint:s}=e,r=(0,o.v9)(d.rj.company),[c,x]=(0,a.useState)(null),u=(0,o.v9)(d.rj.city),h=(0,a.useRef)({}).current,v=(0,b.j0)(["templateLayoutFactory"]),p=(0,a.useRef)();return(0,a.useEffect)(()=>{if(l&&i)return(0,N.J)(()=>{if(p.current){var e;return p.current.container.fitToViewport(),u.branches.map(e=>e.pickupPoints).flat(),null===(e=p.current)||void 0===e||e.setCenter([i.lat?+i.lat:0,i.lon?+i.lon:0]),!0}return!1})},[l,i]),(0,a.useEffect)(()=>
1{Object.entries(h).forEach(e=>{var t,l;let[n,a]=e,i=a.current;if(!i||!c||!v)return;let s=n===c,o=null!==(l=null==r?void 0:null===(t=r.template)||void 0===t?void 0:t.logoThumbnail)&&void 0!==l?l:"",d=v.templateLayoutFactory.createClass((0,k.f)(o)),x=v.templateLayoutFactory.createClass((0,k.f)(o,!0));i.options.set({iconContentLayout:s?x:d})})},[c,v]),(0,n.jsx)("div",{className:"aboutPage-map h-full",children:(0,n.jsxs)(b.D5,{instanceRef:p,width:"100%",height:"100%",defaultState:{center:(null==i?void 0:i.lat)&&(null==i?void 0:i.lon)?[+i.lat,+i.lon]:[+u.lat,+u.lon],zoom:12.3,controls:[]},defaultOptions:{yandexMapDisablePoiInteractivity:!0},modules:["geolocation","geocode"],onLoad:e=>(0,y.y)(e),children:[(0,n.jsx)(b.Ly,{options:{layout:"round#zoomLayout",size:"small"}}),t.branches.map(e=>{var t;if(null===(t=e.pickupPoints)||void 0===t?void 0:t.length)return e.pickupPoints.map((t,l)=>{let a=t.id;h[a]||(h[a]={current:null});let c=h[a];return(0,n.jsx)(b.ah,{instanceRef:c,onLoad:e=>{var l,n;let s=null!==(n=null==r?void 0:null===(l=r.template)||void 0===l?void 0:l.logoThumbnail)&&void 0!==n?n:"",c=e.templateLayoutFactory.createClass((0,k.f)(s)),o=e.templateLayoutFactory.createClass((0,k.f)(s,!0));e.ready(()=>{let e=i&&t.id===i.id;h[a].current.options.set({iconContentLayout:e?o:c})})},geometry:[t.lat,t.lon],options:{hideIconOnBalloonOpen:!1,iconLayout:"default#imageWithContent",iconImageHref:"",iconImageSize:[40,40],iconImageOffset:[-20,-40]},onClick:()=>{s(t,e),x(a)}},l)})})]})})}var C=l(11575),_=l(96932),M=l(7656),P=e=>{let{contacts:t}=e,{metricsEvent:l}=(0,_.B)();return(null==t?void 0:t.length)?(0,n.jsx)("div",{className:"flex flex-col gap-2",children:t.map((e,t)=>(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(v.x,{variant:"mainTextAccent",node:"a",rel:"noreferrer",target:(null==e?void 0:e.outputType)==="link"?"_blank":void 0,href:(null==e?void 0:e.outputType)==="link"?e.phone:"tel:".concat(e.phone),onClick:()=>l("phone"),className:"text-text-base",children:(null==e?void 0:e.outputType)==="link"?e.description:e.phone}),(null==e?void 0:e.outputType)!=="link"&&(0,n.jsx)(v.x,{variant:"labelText",node:"p",className:"text-text-extra",children:e.description})]},t))}):null},T=e=>{let{openHours:t}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(v.x,{variant:"mainTextAccentMd",node:"h5",className:"text-text-base",children:"ÐÑаÑик ÑабоÑÑ"}),!!Object.keys(t).length&&(0,n.jsx)("div",{className:"flex flex-col gap-1",children:Object.keys(t).map(e=>{if(t[e])return(0,n.jsxs)("p",{className:"flex items-center gap-2",children:[(0,n.jsx)(v.x,{variant:"descriptionText",className:"text-text-extra",children:e}),(0,n.jsx)(v.x,{variant:"descriptionText",className:"text-text-base",children:t[e]})]},e)})})]})},z=e=>{var t;let{isActive:l,onClose:a,company:i,currentBranch:s,currentPickupPoint:r,selectPickUpPoint:c}=e,o=(0,m.Z)(),{metricsEvent:d}=(0,_.B)(),x=r?r.title:"",u=s?(0,M.r)(s):{};return(0,n.jsx)(g,{config:{mobile:{variant:"full",open:l,classNames:{panel:"flex flex-col ",panelInner:"overflow-y-auto overflow-x-hidden rounded-radius-lg !p-0"},onClose:a},desktop:{variant:"tall",open:l,classNames:{panel:"flex flex-col overflow-hidden ",panelInner:"overflow-hidden scroll-redesigned rounded-radius-lg !p-0"},onClose:a}},isMobile:o,children:(0,n.jsxs)("div",{className:"flex flex-col h-full ",children:[(0,n.jsx)("div",{className:"grow overflow-hidden -mb-spacing-lg",children:(0,n.jsx)(w,{isActive:l,company:i,currentPickupPoint:r,selectPickUpPoint:c})}),(0,n.jsx)("div",{className:"relative z-[1] shrink-0 max-h-[40%] rounded-t-radius-lg bg-background-card overflow-hidden",children:(0,n.jsxs)("div",{className:"h-full overflow-y-auto scroll-redesigned common-spacing",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(f.M7,{className:"text-main shrink-0"}),(0,n.jsx)(v.x,{variant:"subHeadingMd",node:"p",className:"min-w-0 text-text-base break-words",children:x})]}),(0,n.jsx)(C.Z,{})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-spacing-md pt-spacing-md",children:[(0,n.jsx)(P,{contacts:null!==(t=null==s?void 0:s.contacts)&&void 0!==t?t:null}),(0,n.jsx)(T,{openHours:u})]})]})})]})})},A=e=>{let{description:t}=e,[l,i]=(0,a.useState)(!1);return t?(0,n.jsx)("div",{className:"flex gap-8",children:(0,n.jsx)("div",{className:"basis-full md:basis-1/2",children:(0,n.jsxs)("div",{className:"flex flex-col gap-1 card-primary-lg bg-background-card",children:[(0,n.jsx)(v.x,{variant:"mainText",node:"div",className:"editor text-ellipsis ".concat(l?"":"line-clamp-6"," "),dangerouslySetInnerHTML:{__html:t}}),(0,n.jsx)(p.zx,{onClick:()=>i(!l),link:!0,variant:"extra",icon:l?(0,n.jsx)(f.ZG,{}):(0,n.jsx)(f.ml,{}),className:"self-start",children:l?"СвеÑнÑÑÑ":"ÐодÑобнее"})]})})}):null},L=l(34709),E=l(1807),V=l(41664),I=l.n(V),O=()=>{let e=(0,o.v9)(d.rj.city);return E.z.getItem("WebViewMobilePlatform")||L.B.getCookie("WebViewMobilePlatform")?(0,n.jsxs)("div",{className:"flex flex-col gap-3 bg-background-card card-primary-lg",children:[(0,n.jsx)(v.x,{variant:"headingMd",node:"h4",children:"РпÑиложении"}),(0,n.jsxs)("ul",{className:"flex flex-col gap-3 text-text-extra",children:[(0,n.jsx)("li",{children:(0,n.jsx)(I(),{href:"/".concat(e.slug,"/personalDataPolicy"),children:(0,n.jsx)(v.x,{variant:"descriptionAccent",node:"p",children:"ÐолиÑика конÑиденÑиалÑноÑÑи"})})}),(0,n.jsx)("li",{children:(0,n.jsx)(I(),{href:"/".concat(e.slug,"/termsOfUse"),children:(0,n.jsx)(v.x,{variant:"descriptionAccent",node:"p",children:"ÐолÑзоваÑелÑÑкое ÑоглаÑение"})})}),(0,n.jsx)("li",{children:(0,n.jsx)(I(),{href:"/".concat(e.slug,"/publicOffer"),children:(0,n.jsx)(v.x,{variant:"descriptionAccent",node:"p",children:"ÐÑблиÑÐ½Ð°Ñ Ð¾ÑеÑÑа"})})}),(0,n.jsx)("li",{children:(0,n.jsx)(I(),{href:"/".concat(e.slug,"/soglasie"),children:(0,n.jsx)(v.x,{variant:"descriptionAccent",node:"p",children:"СоглаÑие на обÑабоÑкÑ"})})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"https://yandex.ru/legal/maps_termsofuse/?lang=ru",children:(0,n.jsx)(v.x,{variant:"descriptionAccent",node:"p",children:"УÑловие иÑоплÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¯Ð½Ð´ÐµÐºÑ ÐаÑÑ"})})})]})]}):null},S=l(39469),Z=e=>{var t;let{showSocials:l,branch:a}=e;if(!l)return null;let i=null===(t=a.vk_communities)||void 0===t?void 0:t.at(0);return(0,n.jsxs)("div",{className:"flex gap-2",children:[!!(null==a?void 0:a.telegram_link)&&(0,n.jsx)("a",{href:a.telegram_link,target:"_blank",children:(0,n.jsx)(S.Jz,{shape:"round",iconClassName:"text-text-extra"})}),!!i&&(0,n.jsx)("a",{href:"https://vk.ru/club".concat(null==i?void 0:i.groupId),target:"_blank",children:(0,n.jsx)(S.q0,{shape:"round",iconClassName:"text-text-extra"})})]})},B=e=>{let{currentBranchCard:t,city:l}=e;return l||t?(0,n.jsxs)("div",{className:"flex justify-between items-start",children:[l&&(0,n.jsx)(v.x,{variant:"mainTextAccentMd",node:"h4",className:"text-lightMainColor break-words",children:l}),t&&(0,n.jsx)("div",{className:"self-end",children:(0,n.jsx)("div",{className:"bg-lightMainColor roun
1ded-full px-2 py-1 text-whiteColor",children:(0,n.jsx)(v.x,{variant:"descriptionAccent",node:"p",children:"ÐÑ Ð·Ð´ÐµÑÑ"})})})]}):null},H=e=>{let{addresses:t}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(v.x,{variant:"mainTextAccentMd",node:"h5",className:"text-text-base",children:"ÐдÑеÑа"}),!!(null==t?void 0:t.length)&&(0,n.jsx)("div",{className:"flex flex-col gap-1",children:t.map((e,t)=>(0,n.jsx)(v.x,{variant:"descriptionText",node:"p",className:"text-text-extra break-words",children:e},t))})]})},F=e=>{var t;let{currentBranchCard:l,branch:a,showBranchName:i}=e,s=(0,M.r)(a);return(0,n.jsxs)("div",{className:"flex flex-col gap-4 p-spacing-sm rounded-radius-md ".concat(l?"bg-background-card border-[1px] border-paleMainColor shadow-down":"bg-interactive"),children:[i&&(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(B,{currentBranchCard:l,city:a.city}),(0,n.jsx)(v.x,{variant:"subHeadingMd",node:"h3",className:"text-main break-words",children:a.title})]}),(0,n.jsx)(H,{addresses:a.addresses}),(0,n.jsx)(T,{openHours:s}),(0,n.jsx)(P,{contacts:a.contacts}),(0,n.jsx)(Z,{branch:a,showSocials:!!(null==a?void 0:a.telegram_link)||!!(null===(t=a.vk_communities)||void 0===t?void 0:t.length)})]})},R=l(8929);function U(e){var t,l,s;let m=(0,h.useRouter)(),j=(0,o.v9)(d.rj.company),g=(0,o.v9)(d.rj.branch),{visitorId:b}=(0,c.qm)(),[N,y]=(0,a.useState)(null),[k,w]=(0,a.useState)(!1),{showBranch:C}=(0,R.Z)(),_=(0,a.useMemo)(()=>(null==N?void 0:N.branches.find(e=>e.id===g.id))||null,[N,g]),M=(null==_?void 0:null===(t=_.pickupPoints)||void 0===t?void 0:t[0])||null,[P,T]=(0,a.useState)(_),[L,E]=(0,a.useState)(M);(0,a.useEffect)(()=>{T(_)},[_]),(0,a.useEffect)(()=>{E(M)},[M]),(0,a.useEffect)(()=>{let t=async()=>{if(e.company)y(e.company);else try{let e=await i.x.about.get();y(e.data)}catch(e){throw e}};t()},[]),(0,a.useEffect)(()=>{b&&(0,c.qP)("section-visited",{target:"РнаÑ"})},[b]);let V=(0,a.useMemo)(()=>N?N.branches.filter(e=>e.id!==g.id):[],[N,g]);if(!N)return(0,n.jsx)(n.Fragment,{});let I=_?[_,...V]:[];return(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(r(),{children:(0,n.jsxs)("title",{children:[j.title," | РнаÑ"]})}),(0,n.jsx)(z,{isActive:k&&C,onClose:()=>{w(!1)},company:N,currentBranch:P,currentPickupPoint:L,selectPickUpPoint:(e,t)=>{E(e),T(t)}}),(0,n.jsx)(u.V1,{onClick:()=>{m.back()},title:x.g["/[city]/about"]}),(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(A,{description:null!==(s=null==_?void 0:_.description)&&void 0!==s?s:null}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 card-primary-lg bg-background-card",children:[(0,n.jsx)(v.x,{variant:"headingMd",node:"h2",className:"text-text-base",children:"ФилиалÑ"}),!!(null==_?void 0:null===(l=_.pickupPoints)||void 0===l?void 0:l.length)&&C&&(0,n.jsx)(p.zx,{variant:"secondary",size:"lg",icon:(0,n.jsx)(f.aZ,{}),onClick:()=>{w(!0)},children:"ÐоÑмоÑÑеÑÑ Ð½Ð° каÑÑе"}),!!I.length&&(0,n.jsx)("div",{className:"flex flex-col gap-2 xs:grid xs:grid-cols-2 lg:grid-cols-3",children:I.map(e=>{let t=(null==_?void 0:_.id)===e.id;return(0,n.jsx)(F,{currentBranchCard:t,branch:e,showBranchName:C},e.id)})})]}),(0,n.jsx)(O,{})]})]})}U.getInitialProps=async e=>{var t;let{req:l,res:n}=e,a=await i.x.about.get(null==l?void 0:null===(t=l.headers)||void 0===t?void 0:t.host);return{company:null==a?void 0:a.data}}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=34654)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.