1"use strict";(self.webpackChunk_vkmedia_services_frontrobot=self.webpackChunk_vkmedia_services_frontrobot||[]).push([[1016,2820,6015],{32820(e,t,r){r.r(t);var o=r(88682),i=r(42455),n=r(81659),a=r(41016);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,n,a,l=[],u=!0,c=!1;try{if(n=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=n.call(r)).done)&&(l.push(o.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}
1var c=[{type:o.p.Block,blockLayout:[[{type:o.p.Article,teaserWidth:i.pF.Wide},{type:o.p.Article,teaserWidth:i.pF.Wide},{type:o.p.Article,teaserWidth:i.pF.Wide}],[{type:o.p.Article,teaserWidth:i.pF.Narrow},{type:o.p.Article,teaserWidth:i.pF.Narrow},{type:o.p.Article,teaserWidth:i.pF.Narrow}]]},{type:o.p.Block,blockLayout:[[{type:o.p.Article,teaserWidth:i.pF.Wide},{type:o.p.Article,teaserWidth:i.pF.Wide}],[{type:o.p.Article,teaserWidth:i.pF.Narrow},{type:o.p.Article,teaserWidth:i.pF.Narrow}]]}];describe("lib/section/articleModifiers/applyModifiers.mobile",function(){test("Should apply lead modifier to first article",function(){var e=l((0,a.applyModifiersDesktop)(c),1),t=l(e[0].blockLayout,1),r=l(t[0],1)[0];expect(r.modifier).toEqual(n.W.Lead)}),test("Should apply first modifier to second article",function(){var e=l((0,a.applyModifiersDesktop)(c),1),t=l(e[0].blockLayout,1),r=l(t[0],2),o=(r[0],r[1]);expect(o.modifier).toEqual(n.W.First)}),test("Should apply first modifier to first article in second block",function(){var e=l((0,a.applyModifiersDesktop)(c),2),t=(e[0],l(e[1].blockLayout,1)),r=l(t[0],1)[0];expect(r.modifier).toEqual(n.W.First)}),test("Should not modify third article in first block",function(){var e=l((0,a.applyModifiersDesktop)(c),1),t=l(e[0].blockLayout,1),r=l(t[0],3),o=(r[0],r[1],r[2]);expect(o.modifier).toBeUndefined()}),test("Should not modify second article in second block",function(){var e=l((0,a.applyModifiersDesktop)(c),2),t=(e[0],l(e[1].blockLayout,1)),r=l(t[0],2),o=(r[0],r[1]);expect(o.modifier).toBeUndefined()}),test("Should not modify first article in right blocklayout in first block",function(){var e=l((0,a.applyModifiersDesktop)(c),1),t=l(e[0].blockLayout,2),r=(t[0],l(t[1],1)[0]);expect(r.modifier).toBeUndefined()})})},41016(e,t,r){r.r(t),r.d(t,{applyModifiersDesktop:()=>m});var o=r(81659),i=r(26015);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,n,a,l=[],u=!0,c=!1;try{if(n=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=n.call(r)).done)&&(l.push(o.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=function(e,t){var r=e.reduce(function(e,t){var r=e.layout,n=e.articleCount,a=e.blockArticleCount;if(!(0,i.isArticleLayout)(t))return{layout:[].concat(l(r),[t]),articleCount:n,blockArticleCount:a};var u=function(e,t){var r=0===e;return{isFirstArticle:r,isSecondArticle:1===e,isFirstInBlock:0===t&&!r}}(n,a),c=function(e,t){var r=t.isFirstArticle,i=t.isSecondArticle,n=t.isFirstInBlock;return r?s(s({},e),{},{modifier:o.W.Lead}):i||n?s(s({},e),{},{modifier:o.W.First}):e}(t,{isFirstArticle:u.isFirstArticle,isSecondArticle:u.isSecondArticle,isFirstInBlock:u.isFirstInBlock});return{layout:[].concat(l(r),[c]),articleCount:n+1,blockArticleCount:a+1}},{layout:[],articleCount:t,blockArticleCount:0});return{layout:r.layout,articleCount:r.articleCount}},m=function(e){return e.reduce(function(e,t){var r=e.layout,o=e.articleCount;if(!(0,i.isBlockLayout)(t))return{layout:[].concat(l(r),[t]),articleCount:o};var n=a(t.blockLayout,2),u=n[0],c=n[1],d=f(u,o),p=[d.layout,c];return{layout:[].concat(l(r),[s(s({},t),{},{blockLayout:p})]),articleCount:d.articleCount}},{layout:[],articleCount:0}).layout}},26015(e,t,r){r.r(t),r.d(t,{isArticleLayout:()=>i,isBlockLayout:()=>a,isPanoramaAdLayout:()=>n});var o=r(88682),i=function(e){return e.type===o.p.Article},n=function(e){return e.type===o.p.PanoramaAd},a=function(e){return e.type===o.p.Block}},88682(e,t,r){r.d(t,{p:()=>o});var o=function(e){return e.Article="article",e.PanoramaAd="panoramaAd",e.BlockAd="blockAd",e.Block="block",e.Widget="widget",e.Native="native",e}({})},42455(e,t,r){r.d(t,{A$:()=>l,V1:()=>o,ZF:()=>n,oz:()=>i,pF:()=>a});
1var o=function(e){return e.NoneH1Wide="teaser-template-none-h1-wide",e.NoneH2Wide="teaser-template-none-h2-wide",e.NoneH2WideOpinion="teaser-template-none-h2-wide-opinion",e.NoneH3Wide="teaser-template-none-h3-wide",e.NoneH3WideChild="teaser-template-none-h3-wide-child",e.NoneH3Narrow="teaser-template-none-h3-narrow",e.ThumbH2Wide="teaser-template-thumb-h2-wide",e.ThumbH3Wide="teaser-template-thumb-h3-wide",e.ThumbH3WideChild="teaser-template-thumb-h3-wide-child",e.NoneH3WideChildOpinion="teaser-template-none-h3-wide-opinion-child",e.NoneH3NarrowChildOpinion="teaser-template-none-h3-narrow-opinion-child",e.FullH1Wide="teaser-template-full-h1-wide",e.FullH2Wide="teaser-template-full-h2-wide",e.FullH2WideOpinion="teaser-template-full-h2-wide-opinion",e.FullH3Wide="teaser-template-full-h3-wide",e.NoneH1Narrow="teaser-template-none-h1-narrow",e.NoneH2Narrow="teaser-template-none-h2-narrow",e.NoneH2NarrowOpinion="teaser-template-none-h2-narrow-opinion",e.NoneH3NarrowChild="teaser-template-none-h3-narrow-child",e.ThumbH2Narrow="teaser-template-thumb-h2-narrow",e.ThumbH3Narrow="teaser-template-thumb-h3-narrow",e.ThumbH3NarrowChild="teaser-template-thumb-h3-narrow-child",e.ThumbH2NarrowAudio="teaser-template-thumb-h2-narrow-audio",e.ThumbH2NarrowChildAudio="teaser-template-thumb-h2-narrow-child-audio",e.ThumbH2WideAudio="teaser-template-thumb-h2-wide-audio",e.FullH1Narrow="teaser-template-full-h1-narrow",e.FullH2Narrow="teaser-template-full-h2-narrow",e.FullH2NarrowOpinion="teaser-template-full-h2-narrow-opinion",e.FullH3Narrow="teaser-template-full-h3-narrow",e.FullH2NarrowLetter="teaser-template-full-h2-narrow-letter",e.FullH2WideLetter="teaser-template-full-h2-wide-letter",e.NoneH2Letter="teaser-template-none-h2-letter",e.NarrowFeatured="teaser-template-narrow-featured",e.WideFeatured="teaser-template-wide-featured",e.NarrowFeaturedDetailed="teaser-template-narrow-featured-detailed",e.WideFeaturedDetailed="teaser-template-wide-featured-detailed",e.Category="teaser-template-category",e.Small="teaser-template-small",e.NoneSmall="teaser-template-none-small",e.FullWideNativeAd="teaser-template-full-wide-native",e.FullNarrowNativeAd="teaser-template-full-narrow-native",e.NoneWideNativeAd="teaser-template-none-wide-native",e.NoneNarrowNativeAd="teaser-template-none-narrow-native",e.Normal="this-makes-me-sad",e.FullH1WideVideo="teaser-template-full-h1-wide-video",e.FullH2WideVideo="teaser-template-full-h2-wide-video",e.FullH3WideVideo="teaser-template-full-h3-wide-video",e.FullH1NarrowVideo="teaser-template-full-h1-narrow-video",e.FullH2NarrowVideo="teaser-template-full-h2-narrow-video",e.FullH3NarrowVideo="teaser-template-full-h3-narrow-video",e.LinkTeaserImageOnlyWide="teaser-template-link-teaser-image-only-wide",e.LinkTeaserImageOnlyNarrow="teaser-template-link-teaser-image-only-narrow",e}({}),i=function(e){return e.H1="h1",e.H2="h2",e.H3="h3",e}({}),n=function(e){return e.None="none",e.Thumbnail="thumb",e.Full="full",e}({}),a=function(e){return e.Wide="wide",e.Narrow="narrow",e}({}),l=function(e){return e.Audio="-audio",e.Featured="-featured",e.FeaturedDetailed="-featured-detailed",e.Opinion="-opinion",e.Child="-child",e.Letter="-letter",e.Video="-video",e.None="",e}({})},81659(e,t,r){r.d(t,{W:()=>o});var o=function(e){return e.Lead="lead",e.First="first",e.Opinion="opinion",e.None="none",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.