1/*! For license information please see 7334.chunk.de5c13b62c4ec1acea2b.js.LICENSE.txt */ 2"use strict";(self.webpackChunknitro_app=self.webpackChunknitro_app||[]).push([[7334],{6697(e,t,n){n.d(t,{A:()=>v,G:()=>g});var a=n(3696),r=n(774),c=n(3442),o=n(8264),l=n(4442),i=n(4739),s=n(667),u=n(7799),d=n(1678),p=n(7286),m=n(6149),k=n(1261),C=n(121),h=n(5247);function g(e,t,n){if(n)return n;let a=5;return e<=s.EA.Tiny?a=1:e===s.EA.Small&&(a=3),Math.round(a*t)}const b=a.memo(function({children:e}){const t=(0,s.T76)((0,h.HW)()),n=!!(null==t?void 0:t.isLoggedIn),r=!!(null==t?void 0:t.canUseCheckoutActions),[c,o]=(0,a.useState)(n),[l,i]=(0,a.useState)(r);return(0,a.useEffect)(()=>{o(e=>e===n?e:n),i(e=>e===r?e:r)},[n,r]),a.createElement(a.Fragment,null,e(c,l))}),v=(0,r.I4)(function(e){const t=(0,i.tO)(),n=(0,u.rR)(),c=(0,a.useMemo)(()=>({containScroll:"keepSnaps"}),[]),o=(0,d.d)(e=>e.currentBreakpoint),l=(0,a.useCallback)(t=>g(t,n,e.visibleCount),[n,e.visibleCount]),s=(0,a.useMemo)(()=>g(o,n,e.visibleCount),[o,n,e.visibleCount]),m=!t&&e.products.length>s,h=e.products.length>s,{dahl:v}=(0,p.hs)(),E=(0,a.useCallback)(t=>{var n,a;(0,k.Kz)([t],(0,C.Jn)(null===(n=e.block)||void 0===n?void 0:n.panel),(0,C.Jn)(null===(a=e.block)||void 0===a?void 0:a.title))},[e.block]);return a.createElement(r.I4.Div,null,a.createElement(b,null,(n,r)=>a.createElement(f,{products:e.products,dahl:v,onCardClick:E,trackingListName:e.trackingListName,preventCardClick:e.preventCardClick,isLoggedIn:n,canUsePurchaseActions:r,isCompact:t,options:c,showArrows:m,showScrollbar:h,getVisibleCountCallback:l})))}),f=a.memo(function({products:e,dahl:t,onCardClick:n,trackingListName:r,preventCardClick:i,isLoggedIn:s,canUsePurchaseActions:u,isCompact:d,options:p,showArrows:k,showScrollbar:C,getVisibleCountCallback:h}){const g=a.useMemo(()=>e.map(e=>t?a.createElement(m.Ay,{key:e.key,handleCardClick:n,trackingListName:r,product:e,isLoggedIn:s,canUsePurchaseAction:u,size:"medium",preventCardClick:i}):a.createElement(c.Ay,{key:e.key,isLoggedIn:s,canUsePurchaseActions:u,trackingListName:r,product:e,size:"medium",preventCardClick:i})),[e,t,n,r,i,s,u]);return a.createElement(o.A,Object.assign({},d&&{carouselImagesBaseWidth:70},{itemGap:l.YaY,getVisibleCount:h,emblaOptions:p,arrows:k,scrollbar:C}),g)})},7334(e,t,n){n.d(t,{default:()=>d});var a=n(3696),r=n(5083),c=n(6697),o=n(121),l=n(8663),i=n(774),s=n(4442),u=n(1261);function d(e){return!!e.products.length&&a.createElement(r.o_,{appearance:e.appearance},a.createElement(l.x,{appearanceWidth:"normal",hasGap:!0,id:(0,o.Jn)(e.currentBlock.anchorId)},!!(0,o.Jn)(e.currentBlock.title)&&a.createElement(o.Cx,{component:p,for:e.currentBlock.title})),a.createElement(c.A,{trackingListName:u.Zv.productCard,products:e.products}))}const p=i.I4.p({fontWeight:"bold",fontSize:(0,s.De1)(s.pU_,s.NfE.Rem)})}}]); 3//# sourceMappingURL=7334.chunk.de5c13b62c4ec1acea2b.js.map
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.