1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b3900624-2d66-4206-ad1f-bc207fefaebf",e._sentryDebugIdIdentifier="sentry-dbid-b3900624-2d66-4206-ad1f-bc207fefaebf")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7841],{77841:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return S}});var r=t(5152),i=t.n(r),o=t(67294),s=t(41248),l=t(7226),a=t(17649),u=t(92451),c=t(57347),d=t(94184),f=t.n(d),h=t(30536),g=t(36086),p=t.n(g),v=t(85893),b=function(e){var n=e.isOpen,t=e.onSelect,r=c.t.logoUrl,i=(0,s.v9)(function(e){return e.location.availableCities});return n?(0,v.jsxs)("div",{className:p().overlay,children:[(0,v.jsx)("img",{alt:"Logo",height:140,src:r(),width:235,className:p().logo}),(0,v.jsxs)("div",{className:p().controls,children:[(0,v.jsx)("div",{className:f()(p().inner,p().text),children:"ÐÑбеÑиÑе где Ð²Ñ Ñ
оÑиÑе ÑделаÑÑ Ð·Ð°ÐºÐ°Ð·:"}),i.map(function(e){return(0,v.jsx)("div",{className:p().inner,children:(0,v.jsx)(h.J,{className:p().inner,onClick:function(){return t(e)},children:e.name})},"variant_".concat(e.id))})]})]}):null},y=t(61090),m=i()(function(){return Promise.all([t.e(297),t.e(6012)]).then(t.bind(t,16012))},{loadableGenerated:{webpack:function(){return[16012]}}}),C=i()(function(){return Promise.all([t.e(297),t.e(9460)]).then(t.bind(t,19460))},{loadableGenerated:{webpack:function(){return[19460]}}});function S(){var e,n=c.t.selectCityAutoOpenByUrls,t=(0,o.useContext)(u.F),r=t.isDesktop,i=t.isMobile,d=(0,o.useState)(""),f=d[0],h=d[1],g=(0,l.TL)(),p=(0,s.v9)(function(e){return e.location.selectCityOpened}),S=(0,s.v9)(function(e){return e.location.availableCities}),I=(0,s.v9)(function(e){return e.location.currentCity}),w=(0,s.v9)(function(e){return e.layout.weNotWorkingPopupOpened}),x=function(e){return e.toLowerCase().replace(/Ñ/g,"е")},_=function(e){var n=x(e.name),t=x(f);return n.includes(t)},N=(0,o.useMemo)(function(){return S.filter(_).slice().sort(function(e,n){return e.name.localeCompare(n.name)}).reduce(function(e,n){var t=n.name[0];return e[t]?e[t].children.push(n):e[t]={group:t,children:[n]},e},{})},[S,f]),k=(0,o.useMemo)(function(){return S.length>6},[S.length]),O=(0,o.useMemo)(function(){return S.length>1},[S.length]),j=(0,s.v9)(function(e){return e.establishment}).info,U=null!==(e=null==j?void 0:j.canteenSelfService)&&void 0!==e&&e,A=function(){g((0,a.C0)(!1))},L=function(e){if((null==I?void 0:I.storeId)===e.storeId){e.storeId&&y.aU.saveLastVisitedStoreId(e.storeId),g((0,a.N0)(!1)),A();return}e.storeId&&!e.isLegacy&&y.aU.saveLastVisitedStoreId(e.storeId),location.href=e.deliverySiteHref};return((0,o.useEffect)(function(){if(I&&O){var e,t=y.aU.getLastVisitedStoreId();n.includes(I.deliverySiteHref)&&!y.aU.getIsAutoOpenedSelectCityTriggered()?(g((0,a.N0)(!1)),g((0,a.C0)(!0)),y.aU.setIsAutoOpenedSelectCityTriggered()):t&&t===(null==I?void 0:null===(e=I.storeId)||void 0===e?void 0:e.toString())||g((0,a.N0)(!0))}},[I,g,O,n]),U)?(0,v.jsx)(b,{isOpen:!w&&p,onSelect:L}):(0,v.jsxs)(v.Fragment,{children:[r&&(0,v.jsx)(m,{isOpen:!w&&p,onClose:A,onSearchQueryChange:function(e){return h(e)},onSelect:L,searchQuery:f,showSearchField:k,unitedByAlphabetCities:N}),i&&(0,v.jsx)(C,{isOpen:!w&&p,onClose:A,onSearchQueryChange:function(e){return h(e)},onSelect:L,searchQuery:f,showSearchField:k,unitedByAlphabetCities:N})]})}},36086:function(e){e.exports={host:"cs5GVE",actions:"cRYYvg",desktopHost:"a9QbYB",overlay:"_5Vg4Kh",logo:"_53hsnz",slideUpOnce:"bRKG3X",controls:"_6aIxwp",slideUpOnceAndShow:"U3zoAV",text:"_9V3054",inner:"dIpbGW"}}}]);
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.