(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{"0iUn":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},"2AHt":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return f}));var r,i=n("2wwy"),o=n.n(i),a=n("99Ma"),s=n("JqZw"),c=n("0YKM"),p=n("xeMK"),u=n("863S");!function(e){e.SHOP="shop",e.CAFE="cafe"}(r||(r={}));var l=a.types.model({totalCount:a.types.number,pages:a.types.map(a.types.array(p.c)),isLoading:a.types.boolean}),d=a.types.model({sortBy:a.types.maybeNull(a.types.enumeration(o()(c.a))),sortOrder:a.types.maybeNull(a.types.enumeration(o()(c.b))),category:a.types.maybeNull(a.types.string),code:a.types.maybeNull(a.types.string),type:a.types.maybeNull(a.types.string)}),y=a.types.model({name:a.types.string,description:a.types.frozen(),code:a.types.string,type:a.types.enumeration(o()(r)),address:a.types.maybeNull(a.types.string),businessHours:a.types.maybeNull(a.types.string),businessDays:a.types.maybeNull(a.types.string),logo:u.a,images:a.types.array(u.a),totalItems:a.types.number,categories:a.types.array(s.b)}),f=a.types.model({entity:a.types.maybeNull(y),products:l,query:d})},"47S2":function(e,t,n){"use strict";var r=n("6BQ9"),i=n.n(r),o=n("q1tI"),a=n.n(o),s=n("kMSe"),c=n("nOHt"),p=n("eHHv"),u=n("0TqE"),l=n("DsA5"),d=n("IC3Z"),y=n("tRny"),f=n("2AHt"),m=n("WLSU"),b=n("O26h"),h=n("hA8o"),g=n("26bj"),x=n("Atm5"),v=n("YFqc"),w=n.n(v),k=n("osSN"),O=n.n(k),N=n("L24i"),S=n("R7kn"),j=n("Mpcv"),C=n("UGZJ"),R=n("IKJ3"),T=n("vOnD"),E=n("3D9r"),_=n("LqVV"),q=n("R1yv"),F=n("lqcR"),H=T.b.div.withConfig({displayName:"styled__ImageWrapper",componentId:"sc-6ude7t-0"})(["height:296px;width:100%;background-size:cover;background-position:center;position:relative;margin-bottom:24px;background-color:#f0edea;background-image:",";@media (","){background-image:",";height:536px;}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:1.25),only screen and (min-resolution:200dpi),only screen and (min-resolution:1.25dppx){background-image:",";}"],(function(e){return"url(".concat(Object(F.b)(e.path,{width:425,height:296}),")")}),E.a.medium.up,(function(e){return"url(".concat(Object(F.b)(e.path,{width:1156,height:536}),")")}),(function(e){return"url(".concat(Object(F.b)(e.path,{width:2312,height:1072}),")")})),I=T.b.div.withConfig({displayName:"styled__DescriptionWrapper",componentId:"sc-6ude7t-1"})(["padding:0 12px;background-color:",";@media (","){padding:0 24px;.toggle-description{",";}}"],Object(_.b)("white-milk"),E.a.medium.up,Object(q.c)()),M=T.b.a.withConfig({displayName:"styled__BackButton",componentId:"sc-6ude7t-2"})(["width:40px;height:40px;background:#ffffff;border-radius:20px;position:absolute;top:16px;left:12px;display:flex;align-items:center;justify-content:center;text-decoration:none;color:black;transition:box-shadow 200ms ease-in;box-shadow:0px 2px 4px rgba(25,0,0,0.02),0px 5px 18px rgba(66,10,10,0.06);&:hover{box-shadow:0px 3px 5px rgba(25,0,0,0.04),0px 6px 22px rgba(66,10,10,0.09);}&:active{box-shadow:0px 1px 2px rgba(25,0,0,0.08),0px 3px 8px rgba(66,10,10,0.14);}&:disabled{opacity:0.5;}@media (","){top:24px;left:24px;}"],E.a.medium.up),z=Object(T.b)(F.a).withConfig({displayName:"styled__LogoWrapper",componentId:"sc-6ude7t-3"})(["position:absolute;left:12px;bottom:-16px;width:88px;height:88px;border-radius:88px;box-shadow:0px 24px 69px rgba(66,10,10,0.06),0px 14px 53px rgba(66,10,10,0.03),0px 7.5px 28.8px rgba(66,10,10,0.015),0px 2.8px 8px rgba(66,10,10,0.01);background-color:#f0edea;@media (","){width:136px;height:136px;left:24px;bottom:-16px;}"],E.a.medium.up),B=T.b.p.withConfig({displayName:"styled__WorkTime",componentId:"sc-6ude7t-4"})(["font-size:15px;line-height:20px;color:#777777;margin-bottom:24px;"]),L=T.b.p.withConfig({displayName:"styled__Description",componentId:"sc-6ude7t-5"})(["position:relative;white-space:pre-line;font-size:15px;line-height:24px;color:black;max-height:120px;transition:max-height 0.2s ease-out;overflow:hidden;margin-bottom:12px;&:before{position:absolute;width:100%;bottom:0;height:64px;content:'';z-index:10;background:linear-gradient( 360deg,#fffdfa 0%,rgba(255,253,250,0) 100% );}&.shops-description-open{max-height:800px;&:before{content:none;}}@media (","){max-height:inherit;max-width:75%;&:before{content:none;}}"],E.a.medium.up),D=a.a.createElement,P=a.a.memo((function(e){var t=e.image,n=e.logo,r=e.backUrl,i=e.name,s=e.businessHours,c=e.description,p=Object(o.useState)(!1),u=p[0],l=p[1],d=Object(N.a)(n),y=d.src,f=d.alt,m=Object(S.b)().t,b=Object(C.a)({}),g=Object(R.a)(c);return D(a.a.Fragment,null,D(H,{path:t.src},D(w.a,{href:r,as:r,passHref:!0},D(M,null,D(h.b,{name:"arrow-tail-long",width:"24px",height:"24px",fill:"none"}))),D(z,{desktop:{width:150,height:150},src:y,alt:f})),!!c&&D(I,null,D(j.a,null,i),s&&D(B,null,m("shops.timeWork"),": ",s),g.length>0&&D(L,{className:u?"shops-description-open":""},D(O.a,{imageOptions:{fit:"max"},blocks:c,serializers:b})),D(h.a,{className:"toggle-description",colors:"description",width:"100%",onClick:function(){return l(!u)}},m("expandDescription"))))})),A=n("+Y43"),U=n("Ladz"),W=n("CMZz"),Z=T.b.div.withConfig({displayName:"styled__Title",componentId:"uehs08-0"})(["font-weight:bold;margin:20px 12px 16px 12px;font-size:13px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),K=T.b.div.withConfig({displayName:"styled__StickyWrapper",componentId:"uehs08-1"})(["height:122px;@media (","){height:160px;}"],E.a.medium.up),J=a.a.createElement,V=Object(p.a)(a.a.memo,s.a)((function(e){var t,n=e.url,r=Object(c.useRouter)(),s=Object(U.b)(),p=s.shops,v=s.category,w=s.pageMeta,k=p.detail,O=null===(t=p.detailModel)||void 0===t?void 0:t.query,S=O.sortBy,j=O.sortOrder,C=p.products,T=C.items,E=C.total,_=C.isLoading,q=i()(r.query.page)||0,F=p.isNextPage(q+1)?Object(A.a)(r,{page:q+1}):null,H=w.entities,I=Object(o.useCallback)((function(e){return Object(A.a)(r,{category:e,page:null})}),[r]);if(!k)return null;var M=k.images,z=k.logo,B=k.name,L=k.businessHours,D=k.description,V=k.categories,Q=k.type,Y=Object(N.a)(M),G=r.query.category,X=v.getByCodes(V.map((function(e){return e.code}))),$=Q===f.c.CAFE?m.b.cafe:m.b.shops;Object(l.a)(u.a.Impressions,{listName:"In shop: ".concat(B),products:T});var ee=function(e){var t=e.style,n=e.isSticky;return J(x.b,{style:t,isSticky:n},n&&J(Z,null,B),J(x.a,{categories:X,createLink:I,current:G,isSticky:n}))};return J(a.a.Fragment,null,!!k&&J(W.b,{url:n,content:{title:k.name,description:Object(R.a)(k.description),logo:null===Y||void 0===Y?void 0:Y.src},items:H}),J(h.f,{colors:"white-milk"},J(h.f,{marginBottom:"32px"},J(P,{image:Y,logo:z,name:B,description:D,businessHours:L,backUrl:$})),J(b.b,null,!!X.length&&J(d.a,{renderFn:function(){return J(a.a.Fragment,null,J(K,{className:"visible-x-large"},Object(y.a)(1279,"less")&&J(b.a,{disableCompensation:!0},ee)),J("div",{className:"hide-x-large"},Object(y.a)(1280,"more")&&ee({})))}}),J(h.f,{marginTop:"24px",colors:"white-milk"},J(g.c,{count:E,order:j,by:S})),J(g.a,{products:T,onLinkNextPage:F,isLoading:_}))))}));n.d(t,"a",(function(){return V}))},"863S":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("99Ma"),i=r.types.model({code:r.types.string,path:r.types.string,nameOptions:r.types.maybeNull(r.types.model({title:r.types.maybeNull(r.types.string),alt:r.types.maybeNull(r.types.string),originalName:r.types.maybe(r.types.string)})),sizeOptions:r.types.maybeNull(r.types.model({preview:r.types.string,detail:r.types.string}))})},IC3Z:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("doui"),i=n("q1tI"),o=n.n(i),a=n("hbEN"),s=200;function c(e){var t=e.renderFn,n=e.delayed,c=o.a.useState(null),p=Object(r.a)(c,2)[1];return Object(i.useEffect)((function(){var e=Object(a.a)((function(){return p({})}),n||s);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),e.cancel()}}),[]),t()}},JqZw:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n("99Ma"),i=n("xeMK"),o=n("863S"),a=(r.types.model({id:r.types.string,title:r.types.string,src:r.types.string}),r.types.model({name:r.types.maybeNull(r.types.string),code:r.types.maybeNull(r.types.string)})),s=r.types.model({code:r.types.string,name:r.types.string,depthLevel:r.types.number,description:r.types.maybeNull(r.types.frozen()),parentCategoryCode:r.types.maybeNull(r.types.string),images:r.types.array(o.a),tags:r.types.array(i.d),logo:o.a})},MI3g:function(e,t,n){"use strict";var r=n("XVgq"),i=n.n(r),o=n("Z7t5"),a=n.n(o);function s(e){return(s="function"===typeof a.a&&"symbol"===typeof i.a?function(e){return typeof e}:function(e){return e&&"function"===typeof a.a&&e.constructor===a.a&&e!==a.a.prototype?"symbol":typeof e})(e)}function c(e){return(c="function"===typeof a.a&&"symbol"===s(i.a)?function(e){return s(e)}:function(e){return e&&"function"===typeof a.a&&e.constructor===a.a&&e!==a.a.prototype?"symbol":s(e)})(e)}function p(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}n.d(t,"a",(function(){return p}))},Mpcv:function(e,t,n){"use strict";var r=n("kOwS"),i=n("qNsG"),o=n("q1tI"),a=n.n(o),s=n("vOnD"),c=n("za5s"),p=n("3D9r"),u=s.b.h1.withConfig({displayName:"styled__PageTitleWrapper",componentId:"sc-9k6a8g-0"})(["font-weight:500;font-size:32px;line-height:40px;margin-bottom:20px;",";",";@media (","){font-size:20px;line-height:24px;}"],c.l,c.w,p.a.small.down);n.d(t,"a",(function(){return d}));var l=a.a.createElement,d=a.a.forwardRef((function(e,t){var n=e.children,o=Object(i.a)(e,["children"]);return l(u,Object(r.a)({ref:t},o),n)}))},O26h:function(e,t,n){"use strict";var r=n("kOwS"),i=n("0iUn"),o=n("sLSF"),a=n("MI3g"),s=n("a7VT"),c=n("Tit0"),p=n("q1tI"),u=n.n(p),l=n("xEkU"),d=n.n(l),y=u.a.createElement,f=u.a.createContext({}),m=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(a.a)(this,Object(s.a)(t).call(this,e))).events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],n.rafHandle=null,n.framePending=!1,n.subscribers=[],n.containerRef=void 0,n.subscribe=function(e){n.subscribers=n.subscribers.concat(e)},n.unsubscribe=function(e){n.subscribers=n.subscribers.filter((function(t){return t!==e}))},n.notifySubscribers=function(e){if(!n.framePending&&n.containerRef.current){var t=e.currentTarget,r=n.containerRef.current;n.rafHandle=d()((function(){n.framePending=!1;var e=r.getBoundingClientRect(),i=e.top,o=e.bottom;n.subscribers.forEach((function(e){return e({distanceFromTop:i,distanceFromBottom:o,eventSource:t===window?document.body:r})}))})),n.framePending=!0}},n.getParent=function(){return n.containerRef.current},n.containerRef=u.a.createRef(),n}return Object(c.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.events.forEach((function(t){return window.addEventListener(t,e.notifySubscribers)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.rafHandle&&(d.a.cancel(this.rafHandle),this.rafHandle=null),this.events.forEach((function(t){return window.removeEventListener(t,e.notifySubscribers)}))}},{key:"render",value:function(){return y(f.Provider,{value:{subscribe:this.subscribe,unsubscribe:this.unsubscribe,getParent:this.getParent}},y("div",Object(r.a)({},this.props,{ref:this.containerRef,onScroll:this.notifySubscribers,onTouchStart:this.notifySubscribers,onTouchMove:this.notifySubscribers,onTouchEnd:this.notifySubscribers})))}}]),t}(p.PureComponent),b=u.a.createElement,h=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(a.a)(this,Object(s.a)(t).call(this,e))).state={isSticky:!1,wasSticky:!1,style:{},calculatedHeight:0,distanceFromTop:0,distanceFromBottom:0},n.placeholderRef=void 0,n.contentRef=void 0,n.handleContainerEvent=function(e){var t=e.distanceFromTop,r=e.distanceFromBottom,i=e.eventSource,o=n.context.getParent(),a=!1;n.props.relative&&n.placeholderRef.current&&(a=i!==o,t=-(i.scrollTop+i.offsetTop)+n.placeholderRef.current.offsetTop);var s=n.placeholderRef.current.getBoundingClientRect(),c=n.contentRef.current.getBoundingClientRect().height,p=r-n.props.bottomOffset-c,u=n.state.isSticky,l=a?u:t<=-n.props.topOffset&&r>-n.props.bottomOffset;r=(n.props.relative?o.scrollHeight-o.scrollTop:r)-c;var d=l?{position:"fixed",top:p>0?n.props.relative?o.offsetTop-o.offsetParent.scrollTop:0:p,left:s.left,width:s.width}:{};n.setState({isSticky:l,wasSticky:u,distanceFromTop:t,distanceFromBottom:r,calculatedHeight:c,style:d})},n.placeholderRef=u.a.createRef(),n.contentRef=u.a.createRef(),n}return Object(c.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){if(!this.context.subscribe)throw new TypeError("Expected Sticky to be mounted within StickyContainer");this.context.subscribe(this.handleContainerEvent)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.handleContainerEvent)}},{key:"componentDidUpdate",value:function(){var e=this.placeholderRef.current;e&&(e.style.paddingBottom=this.props.disableCompensation?0:"".concat(this.state.isSticky?this.props.calculatedHeight||this.state.calculatedHeight:0,"px"))}},{key:"render",value:function(){var e=u.a.cloneElement(this.props.children({isSticky:this.state.isSticky,wasSticky:this.state.wasSticky,distanceFromTop:this.state.distanceFromTop,distanceFromBottom:this.state.distanceFromBottom,calculatedHeight:this.state.calculatedHeight,style:this.state.style}),{ref:this.contentRef});return b("div",null,b("div",{ref:this.placeholderRef}),e)}}]),t}(p.Component);h.defaultProps={topOffset:0,bottomOffset:0,disableCompensation:!1,calculatedHeight:0},h.contextType=f,n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return h}))},Tit0:function(e,t,n){"use strict";var r=n("SqZg"),i=n.n(r),o=n("TRZx"),a=n.n(o);function s(e,t){return(s=a.a||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=i()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}n.d(t,"a",(function(){return c}))},a7VT:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("Bhuq"),i=n.n(r),o=n("TRZx"),a=n.n(o);function s(e){return(s=a.a?i.a:function(e){return e.__proto__||i()(e)})(e)}},bQgK:function(e,t,n){(function(t){(function(){var n,r,i,o,a,s;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n("8oxB"))},sLSF:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("hfKm"),i=n.n(r);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),i()(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}},tRny:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("LQAw");function i(e,t){return!Object(r.a)()||("less"===t?e>=window.screen.width:e<=window.screen.width)}},xEkU:function(e,t,n){(function(t){for(var r=n("bQgK"),i="undefined"===typeof window?t:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],c=i["cancel"+a]||i["cancelRequest"+a],p=0;!s&&p<o.length;p++)s=i[o[p]+"Request"+a],c=i[o[p]+"Cancel"+a]||i[o[p]+"CancelRequest"+a];if(!s||!c){var u=0,l=0,d=[];s=function(e){if(0===d.length){var t=r(),n=Math.max(0,1e3/60-(t-u));u=n+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return d.push({handle:++l,callback:e,cancelled:!1}),l},c=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){c.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=c}}).call(this,n("3r9c"))},xeMK:function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return b}));var r=n("2wwy"),i=n.n(r),o=n("99Ma"),a=n("9rqa"),s=n("0YKM"),c=n("cc2h"),p=n("863S"),u=n("d67D"),l=o.types.model({code:o.types.string,name:o.types.string}),d=o.types.model({code:o.types.string,path:o.types.string,nameOptions:o.types.maybeNull(o.types.model({title:o.types.maybeNull(o.types.string),alt:o.types.maybeNull(o.types.string),originalName:o.types.maybe(o.types.string)}))}),y=o.types.model({code:o.types.string,name:o.types.string}),f=o.types.model({name:o.types.string,status:o.types.enumeration(i()(a.a)),code:o.types.string,measureUnitCode:c.b,type:u.b,size:o.types.number,step:o.types.number,shopCode:o.types.maybeNull(o.types.string),description:o.types.frozen(),calories:o.types.maybeNull(o.types.number),ingredients:o.types.array(o.types.string),categories:o.types.array(o.types.string),weight:o.types.number,price:o.types.number,discount:o.types.maybeNull(o.types.number),createdAt:o.types.string,updatedAt:o.types.string,images:o.types.array(p.a),tags:o.types.array(l),document:o.types.maybeNull(d),foodServices:o.types.array(y),sortIndex:o.types.number}),m=o.types.model({sortBy:o.types.maybeNull(o.types.enumeration(i()(s.a))),sortOrder:o.types.maybeNull(o.types.enumeration(i()(s.b))),category:o.types.maybeNull(o.types.string),tag:o.types.array(o.types.string),type:o.types.maybeNull(u.b)}),b=o.types.model({total:o.types.number,pages:o.types.map(o.types.array(f)),query:m,isLoading:o.types.boolean})}}]);