https://tyumen.pokespoke.ru/_next/static/chunks/pages/[city]/promotions/[id]-b1c090151cebec565aeb.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9368],{58997:function(n,o,i){"use strict";i.d(o,{O:function(){return v}});i(67294);var e=i(25739),l=i(66188),t=i(9008),d=i(37703),s=i(95932),a=i(33944),r=i(11163),u=i(85893);const v=n=>{var o,i,v,c,m,p;const{items:h}=n,{t:g,i18n:f}=(0,e.$G)(),x=(0,d.v9)(l.sz),j=(0,d.v9)(l.oJ),_=(0,d.v9)(l.wF),y=(0,a.S7)(),b=(0,r.useRouter)(),w=(null===b||void 0===b||null===(o=b.query)||void 0===o?void 0:o.city)||(null===_||void 0===_?void 0:_.slug),N=(n="/")=>`https://${x}${(0,a.F$)(w,null===f||void 0===f?void 0:f.language,n)}`,P=(0,u.jsx)(t.default,{children:(0,u.jsx)("script",{defer:!0,type:"application/ld+json",dangerouslySetInnerHTML:{__html:`\n {\n "@context": "https://schema.org",\n "@type": "BreadcrumbList",\n "itemListElement": [\n {\n "@type": "ListItem",\n "position": "1",\n "name": "${Boolean(null===j||void 0===j||null===(i=j.env)||void 0===i?void 0:i.SEO_BREADCRUMBS_ROOT_TEXT)?null===j||void 0===j||null===(v=j.env)||void 0===v?void 0:v.SEO_BREADCRUMBS_ROOT_TEXT:g("common:menu.home")}",\n "item": "${N("/")}"\n },\n ${h.map(((n,o)=>o!==h.length-1?`{\n "@type": "ListItem",\n "position": "${o+2}",\n "name": "${n.title}",\n "item": "${N(n.asPath)}"\n }`:`\n {\n "@type": "ListItem",\n "position": "${o+2}",\n "name": "${n.title}"\n }`))}\n ]\n }\n `.replace(/\n/g,"").replace(/\s\s+/g," ").trim()}})}),E=null===h||void 0===h?void 0:h.filter((n=>null===n||void 0===n?void 0:n.title)),$=g("seo:home.breadcrumb",{cityPrepositional:(null===_||void 0===_||null===(c=_.localization)||void 0===c||null===(m=c.find((n=>n.language===(null===f||void 0===f?void 0:f.language))))||void 0===m||null===(p=m.seo)||void 0===p?void 0:p.prepositionalCase)||(null===_||void 0===_?void 0:_.name),brandName:null===j||void 0===j?void 0:j.name});return(0,u.jsxs)(u.Fragment,{children:[P,(0,u.jsx)("div",{className:"container",children:(0,u.jsx)("nav",{"aria-label":"breadcrumbs",children:(0,u.jsxs)("ol",{className:"breadcrumb flex align-center",children:[(0,u.jsx)("li",{children:(0,u.jsx)(s.Z,{href:"/[city]",as:y("/"),shallow:!0,prefetch:!0,children:(0,u.jsxs)("span",{children:[(0,u.jsx)("span",{className:"home-title hidden-element",children:$}),g("common:menu.home")]})})}),null===E||void 0===E?void 0:E.map((({path:n,title:o,asPath:i,isNotHref:e},l)=>{const t=l===E.length-1,d=(0,u.jsx)(s.Z,{href:n,as:y(i||n),prefetch:!0,shallow:!0,children:(0,u.jsx)("span",{children:o})});return(0,u.jsx)("li",{children:t?(0,u.jsx)("strong",{children:o}):d},n)}))]})})})]})}},82049:function(n,o,i){"use strict";i.r(o),i.d(o,{__N_SSP:function(){return _}});var e=i(67294),l=i(37703),t=i(16583),d=i(31669),s=i(11163),a=i(25739),r=i(58997),u=i(66188),v=i(48800),c=i(41550),m=i(5152),p=i(33944),h=i(85893);const g=(0,m.default)((()=>Promise.all([i.e(9809),i.e(6815),i.e(5855),i.e(1940),i.e(1355),i.e(267),i.e(4218),i.e(9418)]).then(i.bind(i,54218))),{loadableGenerated:{webpack:()=>[54218],modules:["[city]/promotions/[id]/index.tsx -> @/components/Home/Promotions/HomeSliderModal/PromotionSlideContent"]}}),f=(0,m.default)((()=>i.e(6929).then(i.bind(i,26929))),{loadableGenerated:{webpack:()=>[26929],modules:["[city]/promotions/[id]/index.tsx -> @/components/Core/Header/GoBack"]}}),x=(0,m.default)((()=>i.e(549).then(i.bind(i,50549))),{loadableGenerated:{webpack:()=>[null],modules:["[city]/promotions/[id]/index.tsx -> react-loading-skeleton"]}}),j=(0,m.default)((()=>i.e(7062).then(i.bind(i,57062))),{loadableGenerated:{webpack:()=>[57062],modules:["[city]/promotions/[id]/index.tsx -> @/components/Core/EmptyData"]}});var _=!0;o.default=function(){var n,o,i,m,_,y,b;const{i18n:w,t:N}=(0,a.$G)(),P=(0,s.useRouter)(),E=(0,l.I0)(),$=(0,p.S7)(),C=(0,l.v9)(t.fE),S=(0,l.v9)(u.wF),T=(0,l.v9)(u.sz),k=(0,l.v9)(t.KH),B=(0,l.v9)(u.oJ),O=(0,l.v9)(u.cJ),H=(null===S||void 0===S||null===(n=S.localization)||void 0===n||null===(o=n.find((n=>n.language===(null===w||void 0===w?void 0:w.language))))||void 0===o||null===(i=o.seo)||void 0===i?void 0:i.nominativeCase)||(null===S||void 0===S?void 0:S.name),R=(null===C||void 0===C||null===(m=C.localization)||void 0===m||null===(_=m.find((n=>n.language===(null===w||void 0===w?void 0:w.language))))||void 0===_?void 0:_.name)||(null===C||void 0===C?void 0:C.name);(0,e.useEffect)((()=>{var n;if(null!==C&&void 0!==C&&C.slug&&(E((0,c.lC)([])),(null===C||void 0===C||null===(n=C.products)||void 0===n?void 0:n.length)>0)){(async()=>{var n,o;const i=null===C||void 0===C||null===(n=C.products)||void 0===n?void 0:n.map((n=>(0,v.bE)({productId:n,cityId:null===S||void 0===S?void 0:S.id,storeLocalBrandConfig:B}
1))),e=null===(o=await Promise.all(i))||void 0===o?void 0:o.filter((n=>null===n||void 0===n?void 0:n.productId));(null===e||void 0===e?void 0:e.length)>0&&E((0,c.lC)(e))})()}}),[C]),(0,e.useEffect)((()=>{var n,o;null!==P&&void 0!==P&&null!==(n=P.query)&&void 0!==n&&n.id&&O&&E((0,c.Nu)(null===P||void 0===P||null===(o=P.query)||void 0===o?void 0:o.id))}),[null===P||void 0===P||null===(y=P.query)||void 0===y?void 0:y.id,O]);const I=(0,h.jsx)(r.O,{items:[{path:"/promotions",title:N("common:menu.promotions")},{path:"/promotions/[id]",asPath:`/promotions/${null===C||void 0===C?void 0:C.slug}`,title:R}]}),F=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(d.default,{title:N("seo:singlePromotion.title",{cityNominative:H,promotionName:R,brandName:null===B||void 0===B?void 0:B.name}),description:N("seo:singlePromotion.description",{cityNominative:H,promotionName:R,brandName:null===B||void 0===B?void 0:B.name}),image:`https://${T}${null===C||void 0===C||null===(b=C.card_url)||void 0===b?void 0:b[null===w||void 0===w?void 0:w.language]}`}),!k&&!(null!==C&&void 0!==C&&C.id)&&(0,h.jsx)(j,{showCta:!1}),(0,h.jsxs)("div",{className:"single-promotion-view",children:[(0,h.jsx)("div",{className:"container centered-sm",children:(0,h.jsx)(g,{slide:C,isSinglePage:!0})}),I]})]}),G="path"===(0,p.FH)()?"/[city]/promotions":"/promotions",L=$("/promotions");return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(f,{title:"shared.back",href:G,asPath:L}),k&&(0,h.jsx)("div",{className:"single-promotion-view",children:(0,h.jsxs)("div",{className:"container centered-sm",children:[(0,h.jsx)(x,{width:"100%",height:"40vh"}),(0,h.jsxs)("div",{className:"content",children:[(0,h.jsx)(x,{width:"90%"}),(0,h.jsx)(x,{width:"70%",height:10,style:{marginTop:30}}),(0,h.jsx)(x,{width:"85%",height:10,style:{marginTop:5}}),(0,h.jsx)(x,{width:"100%",height:10,style:{marginTop:5}})]})]})}),F]})}},16583:function(n,o,i){"use strict";i.d(o,{j0:function(){return t},Hy:function(){return d},fE:function(){return s},KH:function(){return a},B:function(){return r},Ro:function(){return u}});var e=i(20573);const l=n=>n.promotions,t=(0,e.P1)(l,(n=>n.promotions)),d=(0,e.P1)(l,(n=>{var o;return null===(o=n.promotions)||void 0===o?void 0:o.filter((n=>!0===n.showBanner||void 0===n.showBanner))})),s=(0,e.P1)(l,(n=>n.single_page_promotion)),a=(0,e.P1)(l,(n=>n.single_page_promotion_loading)),r=(0,e.P1)(l,(n=>n.promotion_products)),u=((0,e.P1)(l,(n=>n.promotion_products_loading)),(0,e.P1)(l,(n=>n.promotions_loading)))},13339:function(n,o,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[city]/promotions/[id]",function(){return i(82049)}])}},function(n){n.O(0,[9351,9774,2888,179],(function(){return o=13339,n(n.s=o);var o}));var o=n.O();_N_E=o}]);
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.