PageSourceSearch

https://befree.ru/_next/static/chunks/8198.74635c873c51c0b3.js

js befree.ru collected 2026-10-01 12:18:28 UTC 3,870 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8198],{8198:(e,t,i)=>{i.r(t),i.d(t,{default:()=>S});var a=i(54568),n=i(32536),r=i(39764),o=i(80455),s=i(85621),c=i(58298),l=i(18768),d=i(14658);let p=l.Ay.div.withConfig({componentId:"sc-465c3baf-0"})(["top:0;z-index:1;position:sticky;padding-top:env(safe-area-inset-top);background-color:",";@media ","{padding-top:16px;}"],e=>e.theme.color.background_level_1,e=>e.theme.device.laptop),m=l.Ay.div.withConfig({componentId:"sc-465c3baf-1"})(["display:grid;grid-template-columns:48px 1fr 48px;align-items:center;margin-bottom:8px;justify-content:space-between;@media ","{margin:0 16px 8px 16px;}"],e=>e.theme.device.laptop),x=(0,l.Ay)(d.A).withConfig({componentId:"sc-465c3baf-2"})(["margin:0 16px;@media ","{margin:0 25px 0 30px;}"],e=>e.theme.device.laptop),h=l.Ay.ul.withConfig({componentId:"sc-465c3baf-3"})(["margin-top:20px;padding-bottom:env(safe-area-inset-bottom);"]),f=l.Ay.li.withConfig({componentId:"sc-465c3baf-4"})(["gap:0 18px;cursor:pointer;padding:16px 0;display:grid;grid-template-columns:1fr 14px;"]),g=l.Ay.div.withConfig({componentId:"sc-465c3baf-5"})(["display:flex;margin-top:44px;align-items:center;flex-direction:column;"]),u=(0,l.Ay)(o.A).withConfig({componentId:"sc-465c3baf-6"})(["margin-top:24px;margin-bottom:16px;"]);var y=i(7620),A=i(34160),C=i(53744),v=i(68791),b=i(84248),j=i(84708),w=i(2812),I=i(34226),_=i(91937),k=i(51017);let S=()=>{let{isOpen:e,cities:t,search:i,isMobile:l,selectCity:d,handleClose:S,handleSelectCity:N,handleSearchChange:O}=(()=>{let{changeLocation:e,name:t="",fullName:i="",cityData:a}=(0,b.A)(),n=(0,y.useMemo)(()=>{if(!a)return[];let e=e=>e.cityData?.fiasId!==a?.fiasId;return[{name:t,fullName:i,cityData:a,befreeCityId:""},...w.A.filter(t=>t.important&&e(t)),...w.A.filter(t=>!t.important&&e(t)).sort((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase()))]},[t,i,a]),[r,o]=(0,y.useState)(n),[s,c]=(0,y.useState)(""),{isMobile:l}=(0,v.A)(),{changeCartStateToCart:d}=(0,j.A)(),p=(0,_.C)(e=>e.isSelectCityPopupOpen),m=(0,_.C)(e=>e.setIsSelectCityPopupOpen),x=()=>{m(!1)},h=(0,A.YQ)(async e=>{o(await (0,k.A)({query:e,type:"city"}))},500),f=async t=>{let i=await C.A.get(I.Hz.CartUuid);e(t,()=>{i&&d()}),window.scrollTo(0,0),x()};return(0,y.useEffect)(()=>{c(""),o(n)},[p]),{isOpen:p,cities:r,search:s,isMobile:l,selectCity:a?.fiasId,handleClose:x,handleSelectCity:f,handleSearchChange:e=>{c(e),e?h(e):o(n)}}})();return(0,a.jsx)(c.A,{isOpen:e,onClose:S,position:"right",renderHeader:()=>(0,a.jsxs)(p,{children:[(0,a.jsxs)(m,{children:[(0,a.jsx)("div",{children:l&&(0,a.jsx)(s.A,{icon:"Arrow",onClick:S})}),(0,a.jsx)(o.A,{variant:"text2_bold",uppercase:!0,align:"center",children:"выберите город"}),(0,a.jsx)("div",{children:!l&&(0,a.jsx)(s.A,{icon:"Cross",onClick:S})})]}),(0,a.jsx)(x,{name:"city",type:"search",value:i,onReset:()=>O(""),onChange:O,placeholder:"НАЙТИ ГОРОД"})]}),children:(0,a.jsx)("div",{children:(0,a.jsxs)(h,{children:[!t.length&&(0,a.jsxs)(g,{children:[(0,a.jsx)(n.default,{src:"/images/not-found.svg",alt:"",width:150,height:150}),(0,a.jsx)(u,{variant:"text2_bold",children:"НИЧЕГО НЕ НАШЛОСЬ"}),(0,a.jsx)(o.A,{variant:"basic_text",children:"ПОПРОБУЙТЕ ИЗМЕНИТЬ ЗАПРОС"})]}),t.map(e=>(0,a.jsxs)(f,{onClick:()=>N(e),children:[(0,a.jsx)(o.A,{variant:"basic_text",children:e.name}),(0,a.jsx)("div",{children:d===e.cityData.fiasId&&(0,a.jsx)(r.A,{size:14,name:"Check"})}),e.fullName&&(0,a.jsx)(o.A,{variant:"text3",color:"gray_palette_level_2",children:e.fullName})]},e.cityData.fiasId))]})})})}},51017:(e,t,i)=>{i.d(t,{A:()=>n});var a=i(29043);let n=async e=>{let{type:t="city",query:i}=e;if(!i)return[];try{let e=await a.A.post(`/suggestion/${t}`,{query:i});return e.data?.data??[]}catch{return[]}}}}]);
2//# sourceMappingURL=8198.74635c873c51c0b3.js.map

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.