1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2070],{2070:function(e,n,o){o.r(n),o.d(n,{ArticleZoomImageModal:function(){return d}});var t=o(2784),i=o(5632),l=o(1554),r=o(9759),u=o(6830),c=o(1063),a=o(2322),ArticleZoomImageModalComponent=function(e){var n,o=e.articlePage,d=e.currentSlideOnArticle,s=e.featureMediaGuid,m=e.currentId,v=e.pictures,f=e.defaultCropSize,p=e.flags,g=(0,t.useRef)(),_=(0,i.useRouter)(),b=(0,t.useMemo)(function(){var e,n,t;return(null===(e=o.article)||void 0===e?void 0:null===(n=e.body.find(function(e){return"slider"===e.type}))||void 0===n?void 0:null===(t=n.content.pictures)||void 0===t?void 0:t.length)||0},[null===(n=o.article)||void 0===n?void 0:n.body]),k=(0,t.useCallback)(function(e){if(o.article&&v){var n=(null==v?void 0:v.length)-b;e.activeIndex>=n&&(d.current=e.activeIndex-n)}},[o.article,d,v,b]),C=(0,t.useCallback)(function(){delete _.query.zoomed,_.replace(_,void 0,{shallow:!0})},[_.query.zoomed]),I=(0,t.useCallback)(function(){var e=null==v?void 0:v.findIndex(function(e){return(null==e?void 0:e.guid)===m});(0,c.jr)("isCanSendLogs","false"),null!=g&&g.current&&clearTimeout(null==g?void 0:g.current),(0,r.TM)({event:"interaction",action:"zoom_on",block_type:"picture",block_id:String((0,u.W)({string:v.map(function(e){return null==e?void 0:e.guid}).toString()})),block_content_type:m===s?"feature-media":e&&"pic".concat(e+1)||"",block_content_id:m,total_block_parts:null==v?void 0:v.length})},[m,s,v]),y=(0,t.useCallback)(function(e){var n,o=null===(n=v[e])||void 0===n?void 0:n.guid;g.current=setTimeout(function(){return(0,c.jr)("isCanSendLogs","true")},200),(0,r.TM)({event:"interaction",action:"zoom_off",duration_since_enter:Date.now()-Number((0,c.C5)("enterTimeInfo")),block_type:"picture",block_id:String((0,u.W)({string:v.map(function(e){return null==e?void 0:e.guid}).toString()})),block_content_type:o===s?"feature-media":e&&"pic".concat(e+1)||"",block_content_id:o,event_duration:0,total_block_parts:null==v?void 0:v.length})},[s,v]);return(0,a.jsx)(l.Z,{currentId:m,defaultCropSize:f,flags:p,onClose:C,onGalleryChange:k,onZoomIn:I,onZoomOut:y,pictures:v})};ArticleZoomImageModalComponent.displayName="ArticleZoomImageModal";var d=(0,t.memo)(ArticleZoomImageModalComponent)}}]);
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.