PageSourceSearch

https://fox-pizza.ru/_next/static/chunks/1218.d6f3d351f1905ec6.js

js fox-pizza.ru collected 2026-09-25 03:03:08 UTC 17,360 bytes, 1 lines download raw bytes

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]="20c8d2b4-7d82-49c9-8b2f-0ebf17565637",e._sentryDebugIdIdentifier="sentry-dbid-20c8d2b4-7d82-49c9-8b2f-0ebf17565637")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1218],{87905:function(e,n,t){"use strict";t.d(n,{l:function(){return r.l}});var r=t(99431)},91218:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return z}});var r=t(59499),i=t(50029),o=t(87794),s=t.n(o),l=t(94184),c=t.n(l),a=t(53756),u=t(5152),d=t.n(u),f=t(25675),h=t.n(f),p=t(41664),v=t.n(p),y=t(11163),g=t(67294),b=t(70131),m=t(41248),w=t(7226),k=t(8997),x=t(63316),j=t(17649),C=t(87905),O=t(30536),I=t(80518),N=t(57347),_=t(93346),A=t(47516),B=t(61090),D=t(22696),P=t(77791),T=t(22284),V=t(86172),S=t(38586),M=t(28626),E=t(50613),U=t(23082),W=t.n(U),L=t(85893);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach(function(n){(0,r.Z)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var H=d()(function(){return t.e(6340).then(t.bind(t,46340))},{ssr:!1,loadableGenerated:{webpack:function(){return[46340]}}}),J=d()(function(){return Promise.resolve().then(t.bind(t,42689))},{ssr:!1,loadableGenerated:{webpack:function(){return[42689]}}}),G=d()(function(){return Promise.all([t.e(9433),t.e(7258),t.e(1959),t.e(7548),t.e(1253),t.e(5162)]).then(t.bind(t,82618))},{ssr:!1,loadableGenerated:{webpack:function(){return[82618]}}}),F=d()(function(){return Promise.resolve().then(t.bind(t,38139))},{ssr:!1,loadableGenerated:{webpack:function(){return[38139]}}}),Q=T.G?g.useEffect:g.useLayoutEffect;function z(){var e,n,t,o,l,u=N.t.logoUrl,d=N.t.logoDesktopSize,f=N.t.headerAlign,p=N.t.bgImage,T=N.t.isDeliveryAvailable,U=N.t.isShowDelivery,Z=N.t.textDeliveryWorkingFrom,z=N.t.mainPageDeliveryTypeEnabled,X=N.t.showWorkingTime,Y=N.t.isShowPhoneInHeader,q=N.t.textHeaderCityPrefix,K=N.t.textOrderWillBeDelivered,$=N.t.headerNotWorkingTimeType,ee=N.t.name,en=N.t.workingTimeOverwrite,et=(0,b.YD)({threshold:0,delay:100}),er=et.ref,ei=et.inView,eo=(0,a.$G)("common").t,es=(0,g.useState)(!1),el=es[0],ec=es[1],ea=(0,w.TL)(),eu=(0,m.v9)(function(e){return e.profile.isProfileLoading}),ed=(0,m.v9)(function(e){return e.profile.user}),ef=(0,m.v9)(function(e){return e.establishment.deliveryTypes}),eh=(0,m.v9)(function(e){return e.establishment.info}),ep=(0,m.v9)(function(e){return e.location.availableCities}),ev=(0,m.v9)(function(e){return e.location.currentCity}),ey=(0,y.useRouter)(),eg=(0,m.v9)(function(e){return e.authMethods}).isUserBlocked,eb=(0,m.v9)(function(e){return e.ordering}),em=eb.deliveryType,ew=eb.selfDeliveryAddress,ek=(0,g.useState)(!1),ex=ek[0],ej=ek[1],eC=(0,m.v9)(function(e){return e.analytics}).analyticServices.find(function(e){return"yandex_metric"===e.service}),eO=(0,A.j)({clientId:null!=eC&&eC.key?"metrika.".concat(null===(o=eC.key)||void 0===o?void 0:o.split("; ")[0]):""}).flags;(0,g.useEffect)(function(){(0,V.c)(eO[I.yx])||ej(!(0,V.c)(eO[I.yx][0])&&eO[I.yx][0].includes(I.fE.tabs))},[eO]);var eI=d(),eN=(0,g.useMemo)(function(){return ep.length>1},[ep.length]),e_=(0,g.useMemo)(function(){if(!eh||!X)return"";if(!(0,V.c)(en))return(0,M.Z)(en);var e,n,t,r,i,o=T&&U?Z:eo("order.time"),s=T&&U?K:eo("order.time2"),l=(null===(e=eh.workingTimeUI)||void 0===e?void 0:e.from)&&"".concat(eo("fields.from")," ").concat((0,P.Qd)(eh.workingTimeUI.from)),c=(null===(n=eh.workingTimeUI)||void 0===n?void 0:n.to)&&"".concat(eo("fields.to")," ").concat((0,P.Qd)(null===(t=eh.workingTimeUI)||void 0===t?void 0:t.to)),a=(null===(r=eh.workingTimeUI)||void 0===r?void 0:r.from)&&"".concat(eo("after")," ").concat((0,P.Qd)(null===(i=eh.workingTimeUI)||void 0===i?void 0:i.from)),u=eh.workingAllDayUI?eo("order.allTime"):[l,c].filter(
1Boolean).join(" ");return eh.isWorkingUI?"".concat(o," ").concat(u):$===_.Bb.range?"".concat(s," ").concat(u):"".concat(s," ").concat(a)},[eh,$,T,U,X,Z,K]),eA=(0,g.useMemo)(function(){var e,n,t;return(null==em?void 0:em.value)==="client"||(null==em?void 0:em.value)==="hall"||(null==em?void 0:em.value)==="auto"?null!==(n=null!==(t=null==ew?void 0:ew.phone)&&void 0!==t?t:null==eh?void 0:eh.phone)&&void 0!==n?n:void 0:null!==(e=null==eh?void 0:eh.phone)&&void 0!==e?e:void 0},[null==eh?void 0:eh.phone,ew,null==em?void 0:em.value]),eB=(e=(0,i.Z)(s().mark(function e(){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(eN){e.next=2;break}return e.abrupt("return");case 2:ea((0,j.C0)(!0)),B.yD.selectCityOpen();case 4:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)}),eD=function(){ea((0,k.xk)(!1))};Q(function(){ei&&ea((0,x.fQ)(null))},[ei]),(0,g.useEffect)(function(){ec(!1)},[eg]);var eP=function(){return(0,V.c)(null==eh?void 0:eh.namePrefix)?q:null==eh?void 0:eh.namePrefix};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("header",{className:c()(W().desktopHost,(0,r.Z)({},W().inc,"0,75 Please "===ee())),ref:er,style:p?{backgroundColor:"transparent"}:void 0,children:(0,L.jsxs)("div",{className:W().desktopHostWrapper,children:[(0,L.jsxs)("div",{className:c()(W().headerLeftCol,(l={},(0,r.Z)(l,W().alignCenter,f===_.BJ.center),(0,r.Z)(l,W().alignLeft,f===_.BJ.left),l)),children:[(0,L.jsx)(v(),{href:"/",legacyBehavior:!0,passHref:!0,scroll:!1,shallow:!0,children:(0,L.jsx)("a",{className:W().logo,onClick:function(){return B.yD.navigationToMainPage()},children:(0,L.jsx)(h(),{alt:"Logo",height:eI.height,priority:!0,src:u(),unoptimized:!0,width:eI.width})})}),(0,L.jsxs)("div",{className:c()(W().infoCol,W().city),children:[(n=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{className:W().content,title:eP(),children:"".concat((0,M.Z)(eP())," ")}),(0,L.jsx)("span",{className:W().city,"data-testid":"cityName",onClick:eB,children:null==ev?void 0:ev.name}),eN&&(0,L.jsx)(E.v,{className:W().citiesArrowDown,onClick:eB})]}),t={className:c()(W().h1,(0,r.Z)({},W().changeableCity,eN))},"/[[...index]]"===ey.pathname?(0,L.jsx)("h1",R(R({},t),{},{children:n})):(0,L.jsx)("div",R(R({},t),{},{children:n}))),Y&&(null==eh?void 0:eh.phone)&&(0,L.jsx)("p",{className:W().info,children:(0,L.jsx)(v(),{href:"tel:".concat((0,S.TB)(eh.phone)),legacyBehavior:!0,passHref:!0,children:(0,L.jsx)("a",{className:c()(W().phone,"ripple"),onClick:function(){return B.yD.mainPageHeaderPhoneClick()},children:null==eh?void 0:eh.phone})})}),e_&&(0,L.jsx)("p",{className:W().info,"data-testid":"workingTimeInfo",children:e_}),(0,L.jsx)(H,{className:W().askCurrentCity,style:{left:f===_.BJ.center?(0,D.y)("--main-container-offset"):"calc(50px + ".concat(eI.width," + var(--main-container-offset))")}})]}),f===_.BJ.left&&ef.length>0&&z&&(0,L.jsx)("div",{className:c()(W().infoCol,W().selectDeliveryType),children:(ei||!ei&&!ex)&&(0,L.jsx)(J,{})})]}),f===_.BJ.center&&ef.length>0&&z&&(0,L.jsx)("div",{className:c()(W().selectDeliveryType,W().alignCenterSelectDeliveryType),children:(ei||!ei&&!ex)&&(0,L.jsx)(J,{})}),(0,L.jsx)("div",{className:c()(W().user,(0,r.Z)({},W().alignCenterUser,f===_.BJ.center)),children:eu?null:ed?(0,L.jsx)(F,{dispatchOpenAuth:ec}):(0,L.jsx)(O.J,{onClick:function(){return ec(!0)},children:eo("promocodes.enter")})})]})}),(0,L.jsx)(G,{onClose:function(){return ec(!1)},open:el}),(0,L.jsxs)(C.l,{onClose:eD,show:eg,children:[(0,L.jsx)("h2",{children:"Авторизация временно недоступна"}),(0,L.jsx)("p",{children:"К сожалению, возможность совершения заказа по вашему номеру недоступна."}),eA&&(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("p",{children:["Обратитесь к сотрудникам ресторана или позвоните по номеру:",(0,L.jsx)("br",{}),(0,L.jsx)(v(),{href:"tel:".concat((0,S.TB)(eA)),legacyBehavior:!0,children:eA})]})}),(0,L.jsx)(O.J,{onClick:eD,primary:!0,children:"ПОНЯТНО"})]})]})}},38139:function(e,n,t){"use strict";t.r(n),t.d(n,{User:function(){return v}});var r=t(53756),i=t(41664),o=t.n(i),s=t(41248),l=t(30536),c=t(23082),a=t.n(c),u=t(61090),d=t(22284),f=t(86172),h=t(71347),p=t(85893),v=function(e){var n=e.dispatchOpenAuth,t=u.e8.isAuthenticated,i=(0,s.v9)(function(e){return e.profile.user}),c=(0,s.v9)(function(e){return e.acceptsBonusPayment.acceptsBonusPayment}),v=(0,r.$G)("common").t;return(0,p.jsx)(o(),{href:"/profile",legacyBehavior:!0,prefetch:!1,shallow:!0,children:(0,p.jsxs)(l.J,{onClick:function(e){t?u.yD.navigationToProfilePage():(e.preventDefault(),n(!0))},children:[(0,p.jsxs)("div",{className:a().profileUser,children:[(0,p.jsx)("svg",{height:"14",viewBox:"0 0 13 14",width:"13",xmlns:"http://www.w3.org/2000/svg",children:(0,p.jsx)("path",{d:"M6.5 7.262c1.919 0 3.48-1.99 3.48-3.863C9.98 1.525 8.42 0 6.5 0S3.02 1.525 3.02 3.399 4.58 7.262 6.5 7.262ZM9.113 7.297a4.059 4.059 0 0 1-2.43.801h-.366a4.06 4.06 0 0 1-2.43-.801C1.683 7.645 0 9.51 0 11.76 0 12.997 2.91 14 6.5 14s6.5-1.003 6.5-2.239c0-2.25-1.683-4.116-3.887-4.464Z",fill:"currentColor"})}),(0,p.jsx)("span",{children:(null==i?void 0:i.firstName)||v("profile.title")})]}),c&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:a().profileButtonDivider})," ",(0,p.jsx)("span",{className:a().bonuses,children:c&&!(0,f.c)(i)&&i.balance&&!d.G?(0,h.Nd)(i.balance,(0,h.kx)(v)):"-"})]})]})})};n.default=v},50613:function(e,n,t){"use strict";t.d(n,{v:function(){return i}});var r=t(85893);function i(e){var n=e.className,t=e.onClick;return(0,r.jsx)("svg",{className:void 0===n?"":n,fill:"none",height:"6",onClick:void 0===t?function(){}:t,viewBox:"0 0 7 6",width:"7",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M3.5 6L0.468911 0.75L6.53109 0.75L3.5 6Z",fill:"#226EE8"})})}t(38139)},71347:function(e,n,t){"use strict";t.d(n,{Nd:function(){return v},kx:function(){return p},ys:function(){return h}});var r=t(90116),i=t(77780),o=t.n(i),s=t(57347),l=t(86172),c=t(38586),a=["бонус","бонуса","бонусов"],u={t
1itle:"profile.bonusesTitle",used:"order.usedBonuses",writeOffInfo:"order.info",writeOffAll:"bonus.writeOffAll",writeOffAllCancelled:"bonus.writeOffAllCancelledByPromocode",salesWithBonuses:"thanks.sales"},d={title:"Бонусы",used:"Использовано бонусов",writeOffInfo:"Окончательное списание бонусов произойдет после подтверждения заказа.",writeOffAll:"Списать все доступные баллы",writeOffAllCancelled:"Списание всех баллов отменено",promocodeConflict:"При списании бонусов нельзя применить промокод. Отмените промокод, если хотите использовать бонусы",salesWithBonuses:"Скидка по акциям и бонусам"},f=function(e,n,t){var r=e(n);return"string"==typeof r&&r.length>0?r:t},h=function(e){var n,t,r,i,o,l,c,h,p,v,y=null!==(n=s.t.loyaltyCurrency)&&void 0!==n?n:{},g=e("profile.bonuses",{returnObjects:!0}),b=null!==(t=y.forms)&&void 0!==t?t:Array.isArray(g)&&3===g.length&&g.every(function(e){return"string"==typeof e})?g:a;return{forms:b,shortForms:null!==(r=y.shortForms)&&void 0!==r?r:b,title:null!==(i=y.title)&&void 0!==i?i:f(e,u.title,d.title),used:null!==(o=y.used)&&void 0!==o?o:f(e,u.used,d.used),writeOffInfo:null!==(l=y.writeOffInfo)&&void 0!==l?l:f(e,u.writeOffInfo,d.writeOffInfo),writeOffAll:null!==(c=y.writeOffAll)&&void 0!==c?c:f(e,u.writeOffAll,d.writeOffAll),writeOffAllCancelled:null!==(h=y.writeOffAllCancelled)&&void 0!==h?h:f(e,u.writeOffAllCancelled,d.writeOffAllCancelled),promocodeConflict:null!==(p=y.promocodeConflict)&&void 0!==p?p:d.promocodeConflict,salesWithBonuses:null!==(v=y.salesWithBonuses)&&void 0!==v?v:f(e,u.salesWithBonuses,d.salesWithBonuses)}},p=function(e){return h(e).forms},v=function(e,n){var t=(0,c.IZ)(e);return(0,l.c)(n)?t:"".concat(t," ").concat(o().apply(void 0,[e].concat((0,r.Z)(n))))}},23082:function(e){e.exports={host:"fwhcla",topRow:"bEX5UJ",user:"cdSWSp",topRowLeftSection:"_3HfaYS",callBtn:"dhEOec",cityRow:"_7zEAPT",city:"_3Nr6kQ",userIcon:"_19MNWo",citiesArrowDown:"ufVole",changeableCity:"fNd1PW",burgerIcon:"_9chsGH",desktopHost:"_85whXm",inc:"K3pq1_",phone:"bTWmFA",profileButtonDivider:"_21fzUh",bonuses:"avhrHt",desktopHostWrapper:"_3gZdmc",alignCenter:"dRWTLp",logo:"aGdY5Q",authedPhone:"cblJ_S",alignLeft:"_9qMAR2",headerLeftCol:"dIzUA0",info:"eBi-J7",h1:"_5XTv3D",content:"_1tKMT8",infoCol:"f0cp0O",alignCenterUser:"_75uA8h",askCurrentCity:"_5-pRh9",alignCenterSelectDeliveryType:"fhFv3G",profileUser:"_9fRsdX",userLink:"_7gLm_Q"}},70131:function(e,n,t){"use strict";t.d(n,{YD:function(){return p}});var r=t(67294);function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function o(e,n){return(o=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var s=new Map,l=new WeakMap,c=0,a=void 0;function u(e,n,t,r){if(void 0===t&&(t={}),void 0===r&&(r=a),void 0===window.IntersectionObserver&&void 0!==r){var i=e.getBoundingClientRect();return n(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof t.threshold?t.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),function(){}}var o=function(e){var n=Object.keys(e).sort().filter(function(n){return void 0!==e[n]}).map(function(n){var t;return n+"_"+("root"===n?(t=e.root)?(l.has(t)||(c+=1,l.set(t,c.toString())),l.get(t)):"0":e[n])}).toString(),t=s.get(n);if(!t){var r,i=new Map,o=new IntersectionObserver(function(n){n.forEach(function(n){var t,o=n.isIntersecting&&r.some(function(e){return n.intersectionRatio>=e});e.trackVisibility&&void 0===n.isVisible&&(n.isVisible=o),null==(t=i.get(n.target))||t.forEach(function(e){e(o,n)})})},e);r=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),t={id:n,observer:o,elements:i},s.set(n,t)}return t}(t),u=o.id,d=o.observer,f=o.elements,h=f.get(e)||[];return f.has(e)||f.set(e,h),h.push(n),d.observe(e),function(){h.splice(h.indexOf(n),1),0===h.length&&(f.delete(e),d.unobserve(e)),0===f.size&&(d.disconnect(),s.delete(u))}}var d=["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function f(e){return"function"!=typeof e.children}var h=function(e){function n(n){var t;return(t=e.call(this,n)||this).node=null,t._unobserveCb=null,t.handleNode=function(e){!t.node||(t.unobserve(),e||t.props.triggerOnce||t.props.skip||t.setState({inView:!!t.props.initialInView,entry:void 0})),t.node=e||null,t.observeNode()},t.handleChange=function(e,n){e&&t.props.triggerOnce&&t.unobserve(),f(t.props)||t.setState({inView:e,entry:n}),t.props.onChange&&t.props.onChange(e,n)},t.state={inView:!!n.initialInView,entry:void 0},t}(t=n).prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e);var t,s=n.prototype;return s.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},s.componentWillUnmount=function(){this.unobserve(),this.node=null},s.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,n=e.threshold,t=e.root,r=e.rootMargin,i=e.trackVisibility,o=e.delay,s=e.fallbackInView;this._unobserveCb=u(this.node,this.handleChange,{threshold:n,root:t,rootMargin:r,trackVisibility:i,delay:o},s)}},s.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},s.render=function(){if(!f(this.props)){var e=this.state,n=e.inView,t=e.entry;return this.props.children({inView:n,entry:t,ref:this.handleNode})}var o=this.props,s=o.children,l=o.as,c=o.tag,a=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(o,d);return r.createElement(l||c||"div",i({ref:this.handleNode},a),s)},n}(r.Component);function p(e){var n=void 0===e?{}:e,t=n.threshold,i=n.delay,o=n.trackVisibility,s=n.rootMargin,l=n.root,c=n.triggerOnce,a=n.skip,d=n.initialInView,f=n.fallbackInView,h=r.useRef(),p=r.useState({inView:!!d}),v=p[0],y=p[1],g=r.useCallback(function(e){void 0!==h.current&&(h.current(),h.current=void 0),!a&&e&&(h.current=u(e,function(e,n){y({inView:e,entry:n}
1),n.isIntersecting&&c&&h.current&&(h.current(),h.current=void 0)},{root:l,rootMargin:s,threshold:t,trackVisibility:o,delay:i},f))},[Array.isArray(t)?t.toString():t,l,s,c,a,o,f,i]);(0,r.useEffect)(function(){h.current||!v.entry||c||a||y({inView:!!d})});var b=[g,v.inView,v.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}h.displayName="InView",h.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}}}]);

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.