import{j as o,r as h}from"./main-7700519c.js";import{m as p,G as r,L as g,a8 as b,B as k,I as j,p as y,aO as f,aP as C,aQ as w,C as F,d as x,F as B,w as L,af as T}from"./chunk-material-ui-241eb317.js";import{A as I}from"./chunk-index-b119c954.js";import{L as R}from"./chunk-ListItemButton-d39e9cca.js";const z=p(e=>({logoContainer:{display:"inline-flex",alignItems:"center","@media (max-width: 500px)":{paddingRight:0}},headerLogoImg:{color:e.color.blue,"@media (min-width: 1280px)":{width:176},"@media (max-width:1280px) and (min-width:500px)":{width:176},"@media (max-width: 500px)":{width:156}}}),{name:"HeaderLogo"}),v="/local/traektoria_ta/build/img/logo_traektoria.svg";function $(){const e=z();return o.jsx(r,{item:!0,xl:"auto",lg:"auto",md:"auto",sm:"auto",xs:"auto",children:o.jsx(g,{href:h.main.index,underline:"none",classes:{root:e.logoContainer},children:o.jsx("img",{src:v,alt:"Traektoria",className:e.headerLogoImg})})})}const S=p(e=>({closeBtnWrapper:{position:"absolute",right:4,top:4,zIndex:e.zIndex.modal},productCloseBtnWrapper:{position:"absolute",right:16,top:16,zIndex:e.zIndex.modal,background:"#FFFFFF",border:"1px solid #E0E3E6",borderRadius:"4px"},closeBtn:{borderRadius:0,backgroundColor:"transparent",padding:12},dialogContent:{overflowY:"auto",padding:"0","&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{borderRadius:"10px",background:"#F0F3F6"},"&::-webkit-scrollbar-thumb":{background:"#8F9BA4",borderRadius:100,boxShadow:"inset 0 0 6px rgba(0, 0, 0, 0.3)"},"&::-webkit-scrollbar-thumb:active":{background:"rgba(0,0,0,.9)"}}}),{name:"Dialog"}),N=({children:e,DialogContentContent:s,DialogActionsContent:i,dialogAriaName:n,dialogTitle:a,onCloseIcon:t,isProduct:l,...c})=>{const d=S(),m=u=>u?d.productCloseBtnWrapper:d.closeBtnWrapper;return o.jsxs(b,{...c,"aria-labelledby":n??"modal",children:[o.jsx(k,{className:m(l),children:o.jsx(j,{color:"primary",onClick:t,size:"medium",classes:{root:d.closeBtn},children:o.jsx(y,{})})}),a&&o.jsx(f,{id:n??"modal",children:a}),o.jsx(C,{classes:{root:d.dialogContent},dividers:!!a,children:s??e}),i&&o.jsx(w,{children:i})]})},D=p(e=>({locationFormContainer:{paddingTop:100},cityHeaderText:{"@media (max-width: 1280px)":{fontSize:e.typography.pxToRem(28)}},helperText:{color:e.color.black60,fontSize:e.typography.pxToRem(14)},cityLink:{color:e.color.black100},linkText:{fontFamily:"TTFirsNeue-Regular,sans-serif",fontSize:e.typography.pxToRem(18),lineHeight:e.typography.pxToRem(24),"&:not(:last-child)":{paddingBottom:10}},popularCitiesBlock:{"& p":{fontSize:14,fontWeight:400,lineHeight:"20.44px",paddingBlock:8,paddingInline:16,color:"#8F9BA4"},"& span":{fontSize:18,fontWeight:400}}}),{name:"LocationForm"}),W=[{value:671,name:"Москва"},{value:617,name:"Санкт-Петербург"},{value:224,name:"Сочи"},{value:1009,name:"Екатеринбург"}];function P({inputValue:e,onChange:s,options:i=[],onChangeInput:n,onOpen:a}){const t=D();return o.jsx(F,{maxWidth:!1,disableGutters:!0,classes:{root:t.locationFormContainer},children:o.jsxs(r,{container:!0,spacing:4,children:[o.jsx(r,{item:!0,xs:12,children:o.jsx(x,{classes:{root:t.cityHeaderText},variant:"h1",color:"primary",children:"Выберите город"})}),o.jsx(r,{item:!0,xs:12,children:o.jsx(B,{fullWidth:!0,children:o.jsx(I,{onChange:s,onChangeInput:n,placeholder:"Город",options:i,inputValue:e,onOpen:a})})}),o.jsxs(r,{item:!0,xs:12,classes:{root:t.popularCitiesBlock},children:[o.jsx(x,{children:"Популярные города"}),o.jsx(L,{children:W.map(l=>o.jsx(R,{onClick:c=>s(c,l),children:o.jsx(T,{primary:l.name})}))})]})]})})}export{P as C,N as D,$ as H};