import{j as a,r as u}from"./main-ac2fa4b1.js";import{m as c,G as i,L as g,a8 as h,B as b,I as y,q as k,aP as j,aQ as w,aR as C,C as F,e as f,F as T}from"./chunk-material-ui-42c43899.js";import{A as B}from"./chunk-index-c479aaf2.js";const R=c(o=>({logoContainer:{display:"inline-flex",alignItems:"center","@media (max-width: 500px)":{paddingRight:0}},headerLogoImg:{color:o.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"}),I="/local/traektoria_ta/build/img/logo_traektoria.svg";function W(){const o=R();return a.jsx(i,{item:!0,xl:"auto",lg:"auto",md:"auto",sm:"auto",xs:"auto",children:a.jsx(g,{href:u.main.index,underline:"none",classes:{root:o.logoContainer},children:a.jsx("img",{src:I,alt:"Traektoria",className:o.headerLogoImg})})})}const L=c(o=>({closeBtnWrapper:{position:"absolute",right:4,top:4,zIndex:o.zIndex.modal},productCloseBtnWrapper:{position:"absolute",right:16,top:16,zIndex:o.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"}),v=({children:o,DialogContentContent:n,DialogActionsContent:e,dialogAriaName:l,dialogTitle:r,onCloseIcon:d,isProduct:t,...p})=>{const s=L(),x=m=>m?s.productCloseBtnWrapper:s.closeBtnWrapper;return a.jsxs(h,{...p,"aria-labelledby":l??"modal",children:[a.jsx(b,{className:x(t),children:a.jsx(y,{color:"primary",onClick:d,size:"medium",classes:{root:s.closeBtn},children:a.jsx(k,{})})}),r&&a.jsx(j,{id:l??"modal",children:r}),a.jsx(w,{classes:{root:s.dialogContent},dividers:!!r,children:n??o}),e&&a.jsx(C,{children:e})]})},z=c(o=>({locationFormContainer:{paddingTop:100},cityHeaderText:{"@media (max-width: 1280px)":{fontSize:o.typography.pxToRem(28)}},helperText:{color:o.color.black60,fontSize:o.typography.pxToRem(14)},cityLink:{color:o.color.black100},linkText:{fontFamily:"TTFirsNeue-Regular,sans-serif",fontSize:o.typography.pxToRem(18),lineHeight:o.typography.pxToRem(24),"&:not(:last-child)":{paddingBottom:10}}}),{name:"LocationForm"});function E({inputValue:o,onChange:n,options:e=[],popular:l,onChangeInput:r,onOpen:d}){const t=z();return a.jsx(F,{maxWidth:!1,disableGutters:!0,classes:{root:t.locationFormContainer},children:a.jsxs(i,{container:!0,spacing:4,children:[a.jsx(i,{item:!0,xs:12,children:a.jsx(f,{classes:{root:t.cityHeaderText},variant:"h1",color:"primary",children:"Выберите город"})}),a.jsx(i,{item:!0,xs:12,children:a.jsx(T,{fullWidth:!0,children:a.jsx(B,{onChange:n,onChangeInput:r,placeholder:"Город",options:e,inputValue:o,onOpen:d})})})]})})}export{E as C,v as D,W as H};