1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7502],{10374:function(e,n,t){t.d(n,{T:function(){return A}});var r,o,i,l,a=t(72253),c=t(14932),u=t(47702),s=t(82729),d=t(248),p=t(85893),f=t(67294),v=["title","titleId"];function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var m=function(e){var n=e.title,t=e.titleId,a=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.includes(t)||({}).propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,v);return f.createElement("svg",h({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t},a),n?f.createElement("title",{id:t},n):null,r||(r=f.createElement("circle",{cx:3.562,cy:9.9,r:2.062,stroke:"currentColor"})),o||(o=f.createElement("circle",{cx:14.238,cy:4.562,r:2.062,stroke:"currentColor"})),i||(i=f.createElement("circle",{cx:14.238,cy:15.238,r:2.062,stroke:"currentColor"})),l||(l=f.createElement("path",{d:"M5.59 10.54l6.34 3.737M11.89 5.203L5.548 8.939",stroke:"currentColor",strokeLinecap:"round"})))},x=t(10166),g=t(75487),b=t(83069),y=t(13013),E=t(23974),w=t(11163),C=t(33e3),k=t(18522),O=t(1673),z=t(51526),P=t(12560),R=t(29163),j=t(23151),_=t(13989),S=t(6767),I=t.n(S),M=t(63026);function T(){var e=(0,s._)(["\n position: absolute;\n background: rgba(",", 0.95);\n padding: 7px 16px;\n font-size: 15px;\n border-radius: 16px;\n color: var(--elementTextColor);\n z-index: 10000;\n user-select: none;\n right: calc(100% + 16px);\n"]);return T=function(){return e},e}function L(){var e=(0,s._)(["\n --size: 30px;\n position: absolute;\n border: 0.8px solid var(--borderColor);\n min-width: var(--size);\n min-height: var(--size);\n width: var(--size);\n height: var(--size);\n border-radius: 50%;\n background: var(--blockColor);\n top: calc(100% - 30px - 12px);\n cursor: pointer;\n right: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: 0.2s;\n\n &.menu-item {\n --size: 32px;\n border-width: 1px;\n color: var(--primaryTextColor);\n\n &:hover {\n border-color: rgba(0, 0, 0, 0.4);\n }\n\n .icon {\n visibility: hidden;\n }\n }\n\n &.shadow {\n filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.05));\n }\n\n &.relative {\n position: relative;\n top: 0;\n right: 0;\n }\n\n &.standart-offset {\n bottom: 16px;\n top: calc(100% - 30px - 16px);\n z-index: 2;\n }\n\n &.outlined {\n background: transparent;\n z-index: 2;\n border-radius: 50%;\n border: 1px solid #fff;\n color: #fff;\n }\n\n &.white-when-hover:hover {\n background-color: rgba(255, 255, 255, 0.15);\n color: #fff;\n }\n\n &.to-bottom {\n bottom: 0;\n }\n\n &.to-top {\n top: 12px;\n z-index: 3;\n\n &.offsetted {\n top: 48px;\n }\n }\n"]);return L=function(){return e},e}var A=function(e){var n=e.product,r=e.feature,o=e.company,i=e.promoUrl,l=(0,u._)(e,["product","feature","company","promoUrl"]),s=(0,g.S)(),f=s.share,v=s.shared,h=(0,b.RP)().data,x=(0,y.QE)().data,P=(0,y.q$)().data,S=(0,_.Fg)().colors,T=I()(S.primaryColor).rgb().array().join(","),L=(0,w.useRouter)(),A=(0,E.$G)().t,U=function(){var e,l=[null==h?void 0:h.url,null===(u=L.query)||void 0===u?void 0:u.url,null==x?void 0:null===(s=x.items.find(function(e){return e.id===(null==n?void 0:n.companyCategoryId)}
1))||void 0===s?void 0:s.url,null==n?void 0:n.url].filter(Boolean),a=L.query.promotion||new URLSearchParams(null!==(f=null===(p=t.g)||void 0===p?void 0:null===(d=p.location)||void 0===d?void 0:d.search)&&void 0!==f?f:"").get("promotion");"promotion"===r&&a&&l.push("promotions",String(a)),"city-promotion"===r&&l.push(o,"promotions",i);var c="";if(n)c="".concat(null==n?void 0:n.name," ").concat(A("in")," ").concat((0,M.Yd)(P)," - ").concat(null==h?void 0:null===(v=h.names)||void 0===v?void 0:v.prepositional);else if(null==r?void 0:r.match("promotion")){var u,s,d,p,f,v,m,g,b=null==P?void 0:null===(m=P.promotions)||void 0===m?void 0:m.find((0,j.TY)("url",a));c="".concat((null==b?void 0:b.title)||(null==b?void 0:b.promoLabelText)||""," ").concat(A("in")," ").concat((0,M.Yd)(P)," ").concat(null==P?void 0:P.address," - ").concat(null==h?void 0:null===(g=h.names)||void 0===g?void 0:g.prepositional)}else c="".concat((0,M.Yd)(P)," ").concat(null==P?void 0:P.address," ").concat(A("in")," ").concat(null==h?void 0:null===(e=h.names)||void 0===e?void 0:e.prepositional);return[l.join("/"),c]};return(0,p.jsxs)(N,(0,c._)((0,a._)({},(0,C.l$)("share"),l),{onClick:function(){var e=U(),t=document.querySelector(".favourite-icon");if(n?R.f.logEvent(R.f.ACTIONS.TAP_SHARE_PRODUCT,{value:e[0]}):(null==r?void 0:r.match(/promotion/))||R.f.logEvent(R.f.ACTIONS.TAP_SHARE_COMPANY,{value:e[0]}),t){var o=t.style.zIndex;t.style.zIndex="0",setTimeout(function(){t.style.zIndex=o},800)}f.apply(void 0,(0,d._)(e))},children:[(0,p.jsx)(k.X,{features:O.H,children:(0,p.jsx)(z.M,{children:v&&(0,p.jsx)($,{className:"icon",color:T,animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:50,scale:.8},initial:{opacity:0,x:50,scale:.8},children:A("copied")})})}),(0,p.jsx)(m,{})]}))},$=(0,x.Z)(P.m.div)(T(),function(e){return e.color}),N=x.Z.div(L())},75487:function(e,n,t){t.d(n,{S:function(){return c}});var r=t(24043),o=t(69259),i=t(67294),l=t(11701),a=t(33e3),c=function(){var e=(0,o.rK)().data,n=(0,l.z)().innerWidth,t=(0,o.Jr)().buildRoute,c=(0,r._)((0,i.useState)(!1),2),u=c[0],s=c[1];
1return{share:function(r,o,i){if(r){var l="https://"+(null==e?void 0:e.domain)+t(r);if(navigator.share&&n<=768)try{navigator.share({text:o||document.title,title:document.title,url:l})}catch(e){s(!0),(0,a.zp)(l),i&&i(),setTimeout(s,800,!1)}else s(!0),(0,a.zp)(l),i&&i(),setTimeout(s,800,!1)}},copyText:a.zp,shared:u,canShare:!0}}},37191:function(e,n,t){t.d(n,{A:function(){return E}});var r,o,i=t(72253),l=t(14932),a=t(47702),c=t(82729),u=t(85893),s=t(10166),d=t(67294),p=["title","titleId"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var v=function(e){var n=e.title,t=e.titleId,i=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.includes(t)||({}).propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,p);return d.createElement("svg",f({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t},i),n?d.createElement("title",{id:t},n):null,r||(r=d.createElement("circle",{opacity:.1,cx:14,cy:14,r:14,fill:"#000"})),o||(o=d.createElement("path",{d:"M19.25 19.25L8.75 8.75M19.25 8.75l-10.5 10.5",stroke:"#fff",strokeWidth:.875,strokeLinecap:"round",strokeLinejoin:"round"})))},h=t(12560),m=t(23974),x=t(33e3),g=t(11553);function b(){var e=(0,c._)(["\n --fillColor: rgba(221, 221, 221, 0.4);\n --hoverColor: rgba(0, 0, 0, 0.05);\n cursor: pointer;\n border: none;\n z-index: 10;\n top: -24px;\n right: -34px;\n position: absolute;\n background-color: var(--fillColor);\n width: 28px;\n height: 28px;\n border-radius: 50%;\n transition: 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n\n &.relativeOnMobile {\n "," {\n position: static;\n top: 0;\n right: 0;\n }\n }\n\n svg {\n circle {\n display: none;\n }\n }\n\n &:hover {\n background-color: var(--hoverColor);\n }\n"]);return b=function(){return e},e}var y=(0,s.Z)(h.m.button)(b(),g.Kl),E=function(e){var n=e.onClick,t=e.relativeOnMobile,r=(0,a._)(e,["onClick","relativeOnMobile"]),o=(0,m.$G)().t;return(0,u.jsx)(y,(0,l._)((0,i._)({type:"reset","aria-label":o("Close")},r),{className:(0,x.dh)({relativeOnMobile:t}),onClick:n,initial:{scale:1},whileTap:{scale:.8},children:(0,u.jsx)(v,{})}))}},51526:function(e,n,t){t.d(n,{M:function(){return m}});var r=t(67294),o=t(58868);function i(){let e=(0,r.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var l=t(2074),a=t(240),c=t(96681);class u extends r.Component{getSnapshotBeforeUpdate(e){let n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=n.offsetHeight||0,e.width=n.offsetWidth||0,e.top=n.offsetTop,e.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function s({children:e,isPresent:n}){let t=(0,r.useId)(),o=(0,r.useRef)(null),i=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:r,top:l,left:a}=i.current;if(n||!o.current||!e||!r)return;o.current.dataset.motionPopId=t;let c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` 2 [data-motion-pop-id="${t}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${r}px !important; 6 top: ${l}px !important; 7 left: ${a}px !important; 8 } 9 `),()=>{document.head.removeChild(c)}},[n]),r.createElement(u,{isPresent:n,childRef:o,sizeRef:i},r.cloneElement(e,{ref:o}))}let d=({children:e,initial:n,isPresent:t,onExitComplete:o,custom:i,presenceAffectsLayout:l,mode:u})=>{let d=(0,c.h)(p),f=(0,r.useId)(),v=(0,r.useMemo)(()=>({id:f,initial:n,isPresent:t,custom:i,onExitComplete:e=>{for(let n of(d.set(e,!0),d.values()))if(!n)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))}),l?void 0:[t]);return(0,r.useMemo)(()=>{d.forEach((e,n)=>d.set(n,!1))},[t]),r.useEffect(()=>{t||d.size||!o||o()},[t]),"popLayout"===u&&(e=r.createElement(s,{isPresent:t},e)),r.createElement(a.O.Provider,{value:v},e)};function p(){return new Map}var f=t(25364),v=t(45487);let h=e=>e.key||"",m=({children:e,custom:n,initial:t=!0,onExitComplete:a,exitBeforeEnter:c,presenceAffectsLayout:u=!0,mode:s="sync"})=>{var p;(0,v.k)(!c,"Replace exitBeforeEnter with mode='wait'");let m=(0,r.useContext)(f.p).forceRender||function(){let e=i(),[n,t]=(0,r.useState)(0),o=(0,r.useCallback)(()=>{e.current&&t(n+1)},[n]);return[(0,r.useCallback)(()=>l.Wi.postRender(o),[o]),n]}()[0],x=i(),g=function(e){let n=[];
9return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&n.push(e)}),n}(e),b=g,y=(0,r.useRef)(new Map).current,E=(0,r.useRef)(b),w=(0,r.useRef)(new Map).current,C=(0,r.useRef)(!0);if((0,o.L)(()=>{C.current=!1,function(e,n){e.forEach(e=>{let t=h(e);n.set(t,e)})}(g,w),E.current=b}),p=()=>{C.current=!0,w.clear(),y.clear()},(0,r.useEffect)(()=>()=>p(),[]),C.current)return r.createElement(r.Fragment,null,b.map(e=>r.createElement(d,{key:h(e),isPresent:!0,initial:!!t&&void 0,presenceAffectsLayout:u,mode:s},e)));b=[...b];let k=E.current.map(h),O=g.map(h),z=k.length;for(let e=0;e<z;e++){let n=k[e];-1!==O.indexOf(n)||y.has(n)||y.set(n,void 0)}return"wait"===s&&y.size&&(b=[]),y.forEach((e,t)=>{if(-1!==O.indexOf(t))return;let o=w.get(t);if(!o)return;let i=k.indexOf(t),l=e;l||(l=r.createElement(d,{key:h(o),isPresent:!1,onExitComplete:()=>{y.delete(t);let e=Array.from(w.keys()).filter(e=>!O.includes(e));if(e.forEach(e=>w.delete(e)),E.current=g.filter(n=>{let r=h(n);return r===t||e.includes(r)}),!y.size){if(!1===x.current)return;m(),a&&a()}},custom:n,presenceAffectsLayout:u,mode:s},o),y.set(t,l)),b.splice(i,0,l)}),b=b.map(e=>{let n=e.key;return y.has(n)?e:r.createElement(d,{key:h(e),isPresent:!0,presenceAffectsLayout:u,mode:s},e)}),r.createElement(r.Fragment,null,y.size?b:b.map(e=>(0,r.cloneElement)(e)))}}}]);
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.