PageSourceSearch

https://coffeemania.ru/club/_next/static/chunks/7220-0dd5d1c0c75d930a.js

js coffeemania.ru collected 2026-09-24 18:18:47 UTC 12,561 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7220],{9949:(e,t,a)=>{"use strict";a.d(t,{l:()=>n});var o=a(12115);function n(){let[e,t]=(0,o.useState)({width:0,height:0});return(0,o.useEffect)(()=>{let e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}},23523:e=>{e.exports={layout:"Catalog_layout__EtNAJ",detailLayout:"Catalog_detailLayout__lQmdm",detailContent:"Catalog_detailContent__zvwST",layoutGrid:"Catalog_layoutGrid__lKHzj",sidebar:"Catalog_sidebar__9J79B",mobileUserInfoBlock:"Catalog_mobileUserInfoBlock__KhyG2",mobileCategoryNavSticky:"Catalog_mobileCategoryNavSticky__G4J2L",mobileCategoryNavStickyBare:"Catalog_mobileCategoryNavStickyBare__OX_fH",mobileNavigator:"Catalog_mobileNavigator__Vpv6T",mobileCategoryNavFixed:"Catalog_mobileCategoryNavFixed__kBTBz",mobileCategoryNavStuck:"Catalog_mobileCategoryNavStuck__3DMNm",mobileCategoryNavDocking:"Catalog_mobileCategoryNavDocking__6V9_B",mobileGuest:"Catalog_mobileGuest__OJFZ5",mobileStatusName:"Catalog_mobileStatusName__ckG60",mobileStatusPoints:"Catalog_mobileStatusPoints__mzCQM",navLink:"Catalog_navLink__N5EgN",activeNavLinkMobile:"Catalog_activeNavLinkMobile__3BW_L",container:"Catalog_container__eLX4O",catalogBannerVisible:"Catalog_catalogBannerVisible__DXTPZ",heroAnchor:"Catalog_heroAnchor__f_GOq",categoryNavSticky:"Catalog_categoryNavSticky__wt9nC",categoryNavStickyBare:"Catalog_categoryNavStickyBare__UX4rg",categoryNav:"Catalog_categoryNav__GzgUm",categoryNavDocking:"Catalog_categoryNavDocking__mo2cX",categoryNavFixed:"Catalog_categoryNavFixed__M_frA",categoryNavStuck:"Catalog_categoryNavStuck__jKEpJ",categoryNavPending:"Catalog_categoryNavPending__TFmOx",categoryMore:"Catalog_categoryMore__NmEbK",categoryNavLink:"Catalog_categoryNavLink__HLxrb",categoryMoreButton:"Catalog_categoryMoreButton__jvg5m",categoryNavLinkActive:"Catalog_categoryNavLinkActive__Egp0c",categoryMoreIcon:"Catalog_categoryMoreIcon__vkvrv",categoryMoreDropdown:"Catalog_categoryMoreDropdown__J1QvV",categoryMoreDropdownItem:"Catalog_categoryMoreDropdownItem__pkgxE",categoryMoreDropdownItemActive:"Catalog_categoryMoreDropdownItemActive__RnJTF",categoryNavMeasure:"Catalog_categoryNavMeasure__CcvJ9",content:"Catalog_content__yHhLp",catalogBannerSkeleton:"Catalog_catalogBannerSkeleton__XkNix",catalogBannerSkeletonPulse:"Catalog_catalogBannerSkeletonPulse__8nCIH",contentLoading:"Catalog_contentLoading__xRnSU",modalText:"Catalog_modalText__XsGiS",section:"Catalog_section__bfOaQ",catalogSkeletonSection:"Catalog_catalogSkeletonSection__CKcIo",cardSkeleton:"Catalog_cardSkeleton__X08Mb",guest:"Catalog_guest__E6Gqw",points:"Catalog_points___YdWM",guestBlock:"Catalog_guestBlock__2Xw4z",cardContainer:"Catalog_cardContainer__w7_oo",howItIsWorkContainer:"Catalog_howItIsWorkContainer__bey_0",howItIsWorkTextContainer:"Catalog_howItIsWorkTextContainer__AIfWe",buttonContainer:"Catalog_buttonContainer__zISWK",howItIsWorkText:"Catalog_howItIsWorkText__JeU_s",image:"Catalog_image__f_slX",imageMobile:"Catalog_imageMobile__zdWmG",modalH2:"Catalog_modalH2__5jLnz",activeNavLink:"Catalog_activeNavLink__cAGnP"}},64201:(e,t,a)=>{"use strict";a.d(t,{b:()=>i});var o=a(95155),n=a(12115),l=a(99381),r=a.n(l);let i=n.forwardRef((e,t)=>{let{className:a="",width:n="200px",height:l="24px",rounded:i=!0,animation:c="pulse"}=e;return(0,o.jsx)("div",{ref:t,className:"".concat(r().skeletonBase," ").concat(r()["animation-".concat(c)]," ").concat(a),style:{width:"number"==typeof n?"".concat(n,"px"):n,height:"number"==typeof l?"".concat(l,"px"):l,borderRadius:i?"var(--cm-radius-control)":"var(--cm-radius-none)"},"aria-busy":"true","aria-label":"Loading content..."})});i.displayName="SkeletonSectionTitle"},74687:(e,t,a)=>{"use strict";a.d(t,{N:()=>n});var o=a(45047);let n={"--desktop-header-height":"".concat(o.TT,"px")}},83239:(e,t,a)=>{"use strict";a.d(t,{Y:()=>N});var o=a(95155),n=a(12115),l=a(24662),r=a(85203),i=a.n(r),c=a(86316),s=a(99381),g=a.n(s);let _=e=>{let{className:t}=e;return(0,o.jsx)("div",{className:"".concat(g().skeletonNavItem," ").concat(t||"")})};var d=a(45047),u=a(89450);let v={isFixed:!1,isStuck:!1,isDocking:!1,isGlued:!1};function m(e){let{enabled:t,anchorRef:a,navRef:o,hasBanner:l,categoryNavBarHeight:r,heroAnchorRef:i,syncNavHeight:c}
1=e,[s,g]=(0,n.useState)(v);return(0,n.useEffect)(()=>{let e;if(!t)return void g(e=>e.isFixed||e.isStuck||e.isDocking||e.isGlued?v:e);let n=()=>{let e=a.current;if(c(o.current),!e)return;let t=(0,d.a2)(),n={hasBanner:l,navHeight:r},i=(0,u.F$)(e,t,n),s=!!l&&(0,u.om)(e,t,n),_=!l&&(0,u.K0)(e,t),v=l?!i&&(0,u.Z4)(e,t,n):(0,u.Z4)(e,t,n);g(e=>e.isFixed===s&&e.isStuck===_&&e.isDocking===v&&e.isGlued===i?e:{isFixed:s,isStuck:_,isDocking:v,isGlued:i})};n(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n);let s=i.current;return"undefined"!=typeof ResizeObserver&&s&&(e=new ResizeObserver(n)).observe(s),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n),null==e||e.disconnect()}},[t,a,o,l,r,i,c]),s}var k=a(23523),y=a.n(k);function C(e){let{activeSectionForNav:t,catalogNavItems:a,hasBanner:l,layoutCssVars:r,onCategoryClick:s,onHeightChange:g,showSkeletons:v,width:k,heroAnchorRef:C}=e,N=(0,n.useRef)(null),h=(0,n.useRef)(null),f=(0,n.useRef)(null),S=(0,n.useRef)(null),b=(0,n.useRef)(null),x=(0,n.useRef)(null),[w,p]=(0,n.useState)(null),[L,j]=(0,n.useState)(!1),[E,I]=(0,n.useState)(d._Z),M=k<=d.ju,B=null!=w?w:a.length,T=a.slice(0,B),A=a.slice(B),G=!!t&&A.some(e=>e.id===t),D=a.find(e=>e.id===t),z=(0,n.useCallback)((e,t)=>{if(!e)return;let a=e.offsetHeight||t;I(a),g(a)},[g]),F=(0,n.useCallback)(()=>{z(h.current,d.z3)},[z]),R=(0,n.useCallback)(()=>{z(S.current,d._Z)},[z]),W=m({enabled:M,anchorRef:N,navRef:h,hasBanner:l,categoryNavBarHeight:E,heroAnchorRef:C,syncNavHeight:F}),O=m({enabled:!M,anchorRef:f,navRef:S,hasBanner:l,categoryNavBarHeight:E,heroAnchorRef:C,syncNavHeight:R}),H=M?W:O,P=(0,n.useCallback)(()=>{j(!0)},[]),X=(0,n.useCallback)(()=>{j(!1)},[]),q=(0,n.useCallback)(e=>t=>{j(!1),s(e)(t)},[s]),J=(0,n.useCallback)(()=>{var e,t;let o=S.current,n=b.current;if(!o||!n||0===a.length)return void p(a.length);let l=Array.from(n.querySelectorAll("[data-category-nav-item]")).map(e=>e.offsetWidth),r=Math.max(null!=(t=null==(e=n.querySelector("[data-category-nav-more]"))?void 0:e.offsetWidth)?t:0,...l),i=o.clientWidth,c=a.length;for(let e=a.length;e>=0;e-=1)if(l.slice(0,e).reduce((e,t)=>e+t,0)+(e>1?(e-1)*40:0)+(e<a.length?r+40*(e>0):0)<=i){c=e;break}p(c)},[a]);return(0,n.useEffect)(()=>{if(!M)return J(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[J,M]),(0,n.useEffect)(()=>{if(M)return F(),window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)},[M,F,a.length,v]),(0,n.useEffect)(()=>{(0,u.cr)(H.isGlued)},[H.isGlued]),(0,n.useEffect)(()=>()=>(0,u.Gq)(),[]),(0,n.useEffect)(()=>{if(!L)return;let e=e=>{var t;let a=e.target;a instanceof Node&&(null!=(t=x.current)&&t.contains(a)||j(!1))},t=e=>{"Escape"===e.key&&j(!1)};return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}},[L]),(0,n.useEffect)(()=>{let e;if(!t||!h.current)return;let a=h.current.querySelector(".".concat(y().activeNavLinkMobile));if(!a)return;let o=h.current.querySelectorAll(".".concat(y().navLink)),n=a===o[o.length-1],l=h.current,r=a.getBoundingClientRect(),i=l.getBoundingClientRect();e=Math.max(0,Math.min(e=n?r.left-i.left+l.scrollLeft-(i.width-r.width-16):r.left-i.left+l.scrollLeft-40,l.scrollWidth-l.clientWidth)),l.scrollTo({left:e,behavior:"smooth"})},[t]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:i()(y().mobileCategoryNavSticky,{[y().mobileCategoryNavStickyBare]:!l,[y().mobileCategoryNavFixed]:W.isFixed,[y().mobileCategoryNavStuck]:W.isStuck,[y().mobileCategoryNavDocking]:W.isDocking}),ref:N,"data-catalog-category-nav-mobile":!0,style:{...r,height:E},children:(0,o.jsx)("div",{className:y().mobileNavigator,ref:h,children:v?Array.from({length:6}).map((e,t)=>(0,o.jsx)(_,{className:y().navSkeleton},"mobile-nav-skeleton-".concat(t))):a.map(e=>(0,o.jsx)("a",{href:"#".concat(e.id),onClick:q(e.id),className:i()(y().navLink,{[y().activeNavLinkMobile]:t===e.id}),children:e.name},e.id))})}),(0,o.jsx)("div",{className:i()(y().categoryNavSticky,{[y().categoryNavStickyBare]:!l,[y().categoryNavFixed]:O.isFixed,[y().categoryNavStuck]:O.isStuck,[y().categoryNavDocking]:O.isDocking}),ref:f,"data-catalog-category-nav":!0,style:{...r,height:E},children:(0,o.jsxs)("div",{className:i()(y().categoryNav,{[y().categoryNavPending]:!v&&null===w}),ref:S,children:[v?Array.from({length:6}).map((e,t)=>(0,o.jsx)(_,{className:y().navSkeleton},"desktop-nav-skeleton-".concat(t))):(0,o.jsxs)(o.Fragment,{children:[T.map(e=>(0,o.jsx)("a",{href:"#".concat(e.id),onClick:q(e.id),className:i()(y().categoryNavLink,{[y().categoryNavLinkActive]:t===e.id}),children:e.name},e.id)),A.length>0?(0,o.jsxs)("div",{className:y().categoryMore,ref:x,onMouseEnter:P,onMouseLeave:X,children:[(0,o.jsxs)("button",{type:"button",className:i()(y().categoryMoreButton,{[y().categoryNavLinkActive]:G}),"aria-haspopup":"menu","aria-expanded":L,onClick:P,children:[(0,o.jsx)("span",{children:G&&D?D.name:"Еще"}),(0,o.jsx)(c.L,{name:"arrow-down",size:16,className:y().categoryMoreIcon})]}),L?(0,o.jsx)("div",{className:y().categoryMoreDropdown,role:"menu",children:A.map(e=>(0,o.jsx)("a",{href:"#".concat(e.id),onClick:q(e.id),role:"menuitem",className:i()(y().categoryMoreDropdownItem,{[y().categoryMoreDropdownItemActive]:t===e.id}),children:e.name},e.id))}):null]}):null]}),(0,o.jsxs)("div",{className:y().categoryNavMeasure,ref:b,children:[a.map(e=>(0,o.jsx)("span",{"data-category-nav-item":!0,children:e.name},e.id)),(0,o.jsx)("span",{"data-category-nav-more":!0,children:"Еще"})]})]})})]})}function N(e){let{heroBanner:t,categoryNavigation:a,children:r}=e,i=(0,n.useRef)(null);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:y().mobileUserInfoBlock,children:(0,o.jsx)(l.A,{variant:"mobile",mobileLabelMode:"loyalty",wrapperClassName:y().mobileGuest,nameClassName:y().mobileStatusName,pointsClassName:y().mobileStatusPoints})}),(0,o.jsx)("div",{ref:i,className:y().heroAnchor,"data-catalog-hero":!0,children:t}),(0,o.jsx)(C,{...a,heroAnchorRef:i}),r]})}},97220:(e,t,a)=>{"use strict";a.d(t,{CATALOG_SKELETON_CARD_COUNT:()=>y,CATALOG_SKELETON_SECTION_COUNT:()=>k,CatalogPageSkeleton:()=>C});var o=a(95155),n=a(85203),l=a.n(n),r=a(12115),i=a(9949),c=a(64201),s=a(99381),g=a.n(s);let _=e=>{let{width:t="100%",height:a=190,className:n}=e;return(0,o.jsxs)("div",{className:"".concat(g().skeletonCard," ").concat(n||""),style:{width:"number"==typeof t?"".concat(t,"px"):t,height:"".concat(a,"px")},children:[(0,o.jsx)("div",{className:g().skeletonImage}),(0,o.jsx)("div",{className:g().skeletonText}),(0,o.jsx)("div",{className:g().skeletonSubtext})]})};var d=a(23523),u=a.n(d),v=a(83239),m=a(74687);let k=11,y=4;function C(e){let{cardHeight:t=190,showBannerZone:a=!0}=e,{width:n}=(0,i.l)(),s=(0,r.useCallback)(e=>e=>void 0,[]);
1return(0,o.jsx)(v.Y,{heroBanner:a?(0,o.jsx)("div",{className:u().catalogBannerSkeleton,"aria-hidden":"true","data-testid":"catalog-banner-skeleton"}):null,categoryNavigation:{activeSectionForNav:null,catalogNavItems:[],layoutCssVars:m.N,onCategoryClick:s,onHeightChange:()=>void 0,hasBanner:a,showSkeletons:!0,width:n},children:(0,o.jsx)("div",{className:u().container,style:m.N,children:(0,o.jsx)("div",{className:u().layoutGrid,children:(0,o.jsx)("div",{className:l()(u().content,u().contentLoading),children:Array.from({length:k}).map((e,a)=>(0,o.jsxs)("section",{className:l()(u().section,u().catalogSkeletonSection),children:[(0,o.jsx)(c.b,{width:200,className:u().sectionTitleSkeleton}),(0,o.jsx)("div",{className:u().cardContainer,children:Array.from({length:y}).map((e,n)=>(0,o.jsx)(_,{width:"100%",height:t,className:u().cardSkeleton},"card-skeleton-".concat(a,"-").concat(n)))})]},"section-skeleton-".concat(a)))})})})})}},99381:e=>{e.exports={skeletonCard:"Skeletons_skeletonCard__hYEiq",SkeletonImage:"Skeletons_SkeletonImage__i0Nfi",skeletonImage:"Skeletons_skeletonImage__0LWaC",shimmer:"Skeletons_shimmer__E3vwL",skeletonText:"Skeletons_skeletonText__Tp4qI",skeletonSubtext:"Skeletons_skeletonSubtext__CyHxG",skeletonNavItem:"Skeletons_skeletonNavItem__SOtew",skeletonSectionTitle:"Skeletons_skeletonSectionTitle__8BFcz"}}}]);

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.