import{j as s,_ as y,e as R}from"./main-ac2fa4b1.js";import{m as E,aS as S,a7 as f,G as c,B as k,aT as P,e as l,L as w,aU as A}from"./chunk-material-ui-42c43899.js";import{M}from"./chunk-index-d610bbea.js";import{r as b}from"./chunk-react-162a731f.js";const N=E(r=>({sectionHeaderText:{marginBottom:36,"@media (max-width: 1024px)":{fontSize:24}},tabsRoot:{minHeight:32,paddingBottom:16},tabsIndicator:{display:"none"},tabRoot:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:16,textTransform:"none",color:r.color.black60,fontSize:r.typography.pxToRem(18),minHeight:32,minWidth:"min-content"},tabRootHide:{display:"none"},tabSelected:{color:r.color.blue},detailCarouselContainer:{width:"850px",height:"535px"},heightImg:{"& > *:first-child":{height:"539px !important"}},carouselIndicator:{maxWidth:"fit-content",overflowY:"hidden",overflow:"scroll",display:"flex","&::-webkit-scrollbar":{height:"6px",width:"6px"},"&::-webkit-scrollbar-track":{borderRadius:"10px",background:"rgba(0,0,0,0.1)"},"&::-webkit-scrollbar-thumb":{borderRadius:"10px",background:"rgba(0,0,0,0.4)",boxShadow:"inset 0 0 6px rgba(0, 0, 0, 0.3)"},"&::-webkit-scrollbar-thumb:active":{background:"rgba(0,0,0,.9)"}}}),{name:"HelpPage"}),v=({tabTitleItem:r,handleChange:a})=>{const n=N();return s.jsx(S,{onChange:a,children:s.jsx(f,{classes:{root:n.tabRoot,selected:n.tabSelected},label:r==null?void 0:r.NAME,value:r==null?void 0:r.ID})},r==null?void 0:r.NAME)},O=b.lazy(()=>y(()=>import("./chunk-index-61769729.js"),["assets/js/chunk-index-61769729.js","assets/js/main-ac2fa4b1.js","assets/js/chunk-react-162a731f.js","assets/js/chunk-lodash-6114c6d4.js","assets/js/chunk-material-ui-42c43899.js","assets/css/index-7cca801a.css","assets/js/chunk-react-yandex-maps.esm-7931bf3d.js","assets/js/chunk-index-89a69707.js","assets/js/chunk-self_marker-df8a181d.js","assets/js/chunk-map_market_peak-0cd3a38c.js","assets/css/index-019c1275.css"])),_=r=>s.jsx(b.Suspense,{fallback:s.jsx("div",{}),children:s.jsx(O,{...r})}),H=({pageContent:r,value:a,showMap:n})=>{const d=!(a==="564")&&r&&n,j=R();return s.jsxs(s.Fragment,{children:[s.jsx(c,{container:!0,item:!0,style:{marginBottom:"20px"},children:Array.isArray(r)&&(r==null?void 0:r.map(({ITEMS:g=[],ID:e})=>{var h;return(h=[...g].sort((o,i)=>Number(o.ID)-Number(i.ID)))==null?void 0:h.map(o=>{var t,p,u;const i=o.URL.replace("contacts","shops");return s.jsx(c,{item:!0,children:s.jsx(k,{onClick:()=>j(i),style:{cursor:"pointer"},children:s.jsxs(P,{value:e,style:{padding:"16px 12px",width:"250px"},children:[s.jsx(l,{children:o==null?void 0:o.NAME}),s.jsx(l,{children:(t=o==null?void 0:o.PROPERTIES)==null?void 0:t.ADDRESS}),s.jsx(l,{children:s.jsx(w,{style:{color:"#1e6ee4"},href:`tel: ${(p=o==null?void 0:o.PROPERTIES)==null?void 0:p.PHONE}`,children:(u=o==null?void 0:o.PROPERTIES)==null?void 0:u.PHONE})})]})},o==null?void 0:o.NAME)},e)})}))}),d&&s.jsx(c,{item:!0,xs:12,children:s.jsx(M,{children:s.jsx(_,{value:a})})})]})},z=({pageContent:r,value:a,handleChange:n,showMap:x})=>s.jsx(c,{item:!0,container:!0,xs:12,children:s.jsxs(A,{value:a,children:[s.jsx(c,{container:!0,xs:12,children:Array.isArray(r)&&(r==null?void 0:r.map(d=>s.jsx(v,{tabTitleItem:d,handleChange:n})))}),s.jsx(c,{container:!0,xs:12,children:s.jsx(H,{showMap:x,value:a,pageContent:r})})]})});export{z as A,N as s};