1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9351],{31669:function(e,n,t){t.r(n),t.d(n,{default:function(){return j}});var l=t(9008),o=t(11163),i=t(25739),a=t(66188),s=t(37703);const d=e=>"/"===e.charAt((null===e||void 0===e?void 0:e.length)-1)?e.slice(0,-1):e;var u=t(67294),v=t(72174);var r=t(35804);var c=t(11752),m=t(21830),p=t(58673),h=t(62447),f=t(33944),g=t(85893);const{publicRuntimeConfig:x}=(0,c.default)();var j=e=>{var n,t,c,j,w,$,y,b,E,L,_,P,k,F,U,R,A,T,B,O,S,D;const{i18n:G,t:H}=(0,i.$G)(),I=(0,o.useRouter)(),C=(0,s.v9)(a.oJ),M=(0,s.v9)(a.sz),N=(0,s.v9)(a.LP),q=(0,s.v9)(r.np),W=(0,s.v9)(p.Q7);let V=N?N.replace(new URL(N).search,""):"";if("subdomain"===(0,f.FH)()&&V){var z;const e=null===I||void 0===I||null===(z=I.query)||void 0===z?void 0:z.city;if(e)try{const n=new URL(V);for(;n.pathname.startsWith(`/${e}/`)||n.pathname===`/${e}`;)n.pathname=n.pathname===`/${e}`?"/":n.pathname.substring(e.length+1);V=n.href}catch(pe){}}const J=null===(n=V)||void 0===n||null===(t=n.split("/tag-menu/"))||void 0===t||null===(c=t[1])||void 0===c?void 0:c.split("/");null!==J&&void 0!==J&&J.length&&(V=V.replace("tag-menu","menu").replace(`/${J[1]}/`,"/"));let Q=V;const K=null===(j=Q.split("/menu/"))||void 0===j||null===(w=j[1])||void 0===w||null===($=w.split("/"))||void 0===$?void 0:$[0],X=(0,h.c)(W);"rolls"===X&&null!==W&&void 0!==W&&null!==(y=W.classifiers)&&void 0!==y&&y.some((e=>(null===e||void 0===e?void 0:e.slug)===K))&&K&&(Q=Q.replace(`/menu/${K}/`,"/menu/rolls/")),"sets"===X&&null!==W&&void 0!==W&&null!==(b=W.classifiers)&&void 0!==b&&b.some((e=>(null===e||void 0===e?void 0:e.slug)===K))&&K&&(Q=Q.replace(`/menu/${K}/`,"/menu/sets/"));const Y=(0,m.a)({imgUrl:null===C||void 0===C||null===(E=C.ui)||void 0===E||null===(L=E.images)||void 0===L?void 0:L.FAVICON}),Z=(0,m.a)({imgUrl:(null===C||void 0===C||null===(_=C.ui)||void 0===_||null===(P=_.images)||void 0===P?void 0:P.SITE_PREVIEW_IMG)||`https://${M}/icons/icon-512x512.jpg`}),ee=null===x||void 0===x||null===(k=x.LANGUAGES)||void 0===k||null===(F=k.split(","))||void 0===F?void 0:F.map((e=>null===e||void 0===e?void 0:e.trim())),ne=null===x||void 0===x?void 0:x.DEFAULT_LANGUAGE,te=null===(U="uk"===ne?"ua":ne)||void 0===U?void 0:U.toUpperCase(),le=(0,f.FH)(),oe=null===I||void 0===I||null===(R=I.query)||void 0===R?void 0:R.city,ie=((null===I||void 0===I?void 0:I.asPath)||(null===I||void 0===I?void 0:I.pathname)||"/").split("?")[0].split("#")[0],{0:ae,1:se}=("subdomain"===le&&oe&&(ie.startsWith(`/${oe}/`)&&ie.substring(oe.length+1)),(0,u.useState)(null===I||void 0===I?void 0:I.asPath));(0,u.useEffect)((()=>{setTimeout((()=>window.prevUrl=window.location.href),1e3)}),[I.asPath]);const{description:de,title:ue,css:ve,image:re=Z,hideFromRobots:ce=!1,isErrorPage:me=!1}=e;return(0,u.useEffect)((()=>{((e,n)=>{var t,l,o,i,a,s,d,u,r,c;const m={event:"PageviewSPA",referrer:n||window.location.href,pageTitle:e,pagePath:null===(t=document)||void 0===t||null===(l=t.location)||void 0===l?void 0:l.pathname,originalLocation:(null===(o=document)||void 0===o||null===(i=o.location)||void 0===i?void 0:i.protocol)+"//"+(null===(a=document)||void 0===a||null===(s=a.location)||void 0===s?void 0:s.hostname)+(null===(d=document)||void 0===d||null===(u=d.location)||void 0===u?void 0:u.pathname)+(null===(r=document)||void 0===r||null===(c=r.location)||void 0===c?void 0:c.search)};(0,v.D)((()=>{var e,n,t;null!==(e=window)&&void 0!==e&&e.dataLayer&&(null===(n=window)||void 0===n||null===(t=n.dataLayer)||void 0===t||t.push(m))}))})(ue,window.prevUrl)}),[ae]),(0,u.useEffect)((()=>{se(I.asPath)}),[I.asPath]),(0,u.useEffect)((()=>{var e;null!==q&&void 0!==q&&q.id&&(e=null===q||void 0===q?void 0:q.id,(0,v.D)((()=>{var n;null!==(n=window)&&void 0!==n&&n.dataLayer||(window.dataLayer=[]),window.dataLayer.push({event:"user_id",user_id:e})})))}),[I.asPath,null===q||void 0===q?void 0:q.id]),(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(l.default,{children:[(0,g.jsx)("title",{children:ue}),(0,g.jsx)("meta",{name:"title",content:ue}),(0,g.jsx)("meta",{name:"description",content:de}),!me&&(0,g.jsx)("link",{rel:"canonical",href:null===(A=Q)||void 0===A?void 0:A.replace("http://","https://")},ue),(0,g.jsx)("meta",{charSet:"UTF-8"}),(0,g.jsx)("meta",{name:"google",content:"notranslate"}),(0,g.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,g.jsx)("meta",{name:"viewport",content:"width=device-width"}),(0,g.jsx)("meta",{property:"og:type",content:"website"}),(0,g.jsx)("meta",{name:"og:title",property:"og:title",content:ue}),(0,g.jsx)("meta",{name:"og:description",property:"og:description",content:de}),(0,g.jsx)("meta",{property:"og:site_name",content:null===C||void 0===C?void 0:C.name}),!me&&(0,g.jsx)("meta",{property:"og:url",content:(null===(T=V)||void 0===T?void 0:T.replace("http://","https://"))||`https://${M}/`}),(0,g.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,g.jsx)("meta",{name:"twitter:title",content:ue}),(0,g.jsx)("meta",{name:"twitter:description",content:de}),(0,g.jsx)("meta",{name:"twitter:site",content:`@${null===C||void 0===C?void 0:C.name}`}),(0,g.jsx)("meta",{name:"twitter:creator",content:`@${null===C||void 0===C?void 0:C.name}`}),(0,g.jsx)("meta",{name:"theme-color",content:"#fff"}),(0,g.jsx)("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),(0,g.jsx)("meta",{name:"apple-mobile-web-app-status-bar-style",content:"default"}),(0,g.jsx)("meta",{name:"format-detection",content:"telephone=no"}),(0,g.jsx)("meta",{name:"mobile-web-app-capable",content:"yes"}),(0,g.jsx)("meta",{name:"msapplication-tap-highlight",content:"no"}),(0,g.jsx)("link",{rel:"apple-touch-icon",href:Y}),(0,g.jsx)("link",{rel:"shortcut icon",type:"image/x-icon",href:Y}),ve&&(0,g.jsx)("link",{rel:"stylesheet",href:`${ve}`}),re&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("meta",{name:"twitter:image",content:`${re}`}),(0,g.jsx)("meta",{property:"og:image",content:`${re}`})]}),!me&&(null===ee||void 0===ee?void 0:ee.length)&&(()=>{var e;let n=V||"",t=n;try{t=new URL(n).pathname}catch(pe){const l=n.match(/^https?:\/\/[^/]+(\/.*)?$/);
1t=(null===l||void 0===l?void 0:l[1])||"/"}const l=t.split("/").filter(Boolean);l.length>0&&ee.includes(l[0])&&l.shift(),l.length>1&&ee.includes(l[1])&&l.splice(1,1);const o=(0,f.FH)(),i=null===I||void 0===I||null===(e=I.query)||void 0===e?void 0:e.city;if("subdomain"===o&&i)for(;l[0]===i;)l.shift();const a="/"+l.join("/"),s=n.split("://")[0]+"://"+M+a;return(0,g.jsx)("link",{rel:"alternate",href:d(s.replace("http://","https://")),hrefLang:"x-default"})})(),!me&&(null===ee||void 0===ee?void 0:ee.length)>1&&(null===ee||void 0===ee?void 0:ee.map((e=>({lang:e,value:`${e}-${te}`}))).map((e=>{const n=(0,f.FH)();let t=(null===I||void 0===I?void 0:I.asPath)||"/";t=t.split("?")[0].split("#")[0];const l=t.split("/").filter(Boolean);let o=null,i=[];if("path"===n&&l.length>0)o=l[0],i=l.length>1&&ee.includes(l[1])?l.slice(2):l.slice(1);else{var a;let e=[...l];const n=null===I||void 0===I||null===(a=I.query)||void 0===a?void 0:a.city;for(;n&&e[0]===n;)e=e.slice(1);i=e.length>0&&ee.includes(e[0])?e.slice(1):e}const s=i.length>0?"/"+i.join("/"):"";let u="";if("path"===n){const n=o?`/${o}`:"",t=(null===e||void 0===e?void 0:e.lang)===ne?"":`/${null===e||void 0===e?void 0:e.lang}`;u=`https://${M}${`${n}${t}${s}`||"/"}`}else{const n=(null===e||void 0===e?void 0:e.lang)===ne?"":`/${null===e||void 0===e?void 0:e.lang}`;u=`https://${M}${`${n}${s}`||"/"}`}return(0,g.jsx)("link",{rel:"alternate",href:d(u),hrefLang:e.value},e.lang)}))),(ce||Boolean(null===C||void 0===C||null===(B=C.env)||void 0===B?void 0:B.HIDE_FROM_ROBOTS))&&(0,g.jsx)("meta",{name:"robots",content:"noindex, nofollow, noimageindex, noarchive, nosnippet"}),!ce&&!Boolean(null===C||void 0===C||null===(O=C.env)||void 0===O?void 0:O.HIDE_FROM_ROBOTS)&&(null===C||void 0===C||null===(S=C.customMetaTags)||void 0===S||null===(D=S.filter((e=>(null===e||void 0===e?void 0:e.name)&&(null===e||void 0===e?void 0:e.content))))||void 0===D?void 0:D.map((e=>(0,g.jsx)("meta",{name:e.name,content:e.content},`custom-meta-${e.name}`))))]})})}},62447:function(e,n,t){t.d(n,{A:function(){return l},c:function(){return o}});const l=e=>{var n;if(null===e||void 0===e||null===(n=e.classifiers)||void 0===n||!n.length)return;const t=e.classifiers.find((e=>!0===e.isMain));return null!==t&&void 0!==t&&t.slug?t:e.classifiers.find((e=>!Boolean(null===e||void 0===e?void 0:e.isDefault)))},o=e=>{var n;return null===(n=l(e))||void 0===n?void 0:n.slug}}}]);
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.