The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (2024)

Home / Style / Buying Guides

Designed first for military pilots, the style’s far more pedestrian now.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (1)Courtesy

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (2)The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (3)

By Evan Malachosky and Beau Hayhoe

Published

·

Every product is carefully selected by our editors. If you buy from a link, we may earn a commission.Learn more

The bomber jacket has long transcended its utilitarian roots. The jacket’s silhouette looks good on a range of body types, and it’s a versatile garment that can be dressed up or down. They’re warmer, softer and loaded with nuanced details, an all-around improvement over the options pilots were given during WWI.

And like other styles that made their way into the closets of civilians following conflict — like the field jacket, aviator sunglasses and T-shirts — the bomber jacket is now a certified menswear classic that transcends its roots.

Products in the Guide

  • Alpha Industries Heritage MA-1 Bomber Jacket

    Best Overall Bomber Jacket

    Read more
  • Buck Mason Storm Stopper Bomber Jacket

    Best Upgrade Bomber Jacket

    Read more
  • Uniqlo MA-1 Blouson

    Best Affordable Bomber Jacket

    Read more
  • Everlane Bomber Jacket

    Best Lightweight Bomber Jacket

    Read more
  • Buck Mason Leather Bruiser Bomber

    Best Leather Bomber Jacket

    Read more
  • Abercrombie & Fitch Workwear Bomber Jacket

    Best Mall Buy Bomber Jacket

    Read more
  • Bonobos The Boulevard Bomber

    Best Bomber Jacket for the Office

    Read more
  • MKI Bubble Bomber Jacket

    Best Bubble Bomber Jacket

    Read more
  • Flaxton Corduroy Navy Bomber Jacket

    Best Non-Traditional Bomber Jacket

    Read more
  • Vollebak Indestructible Jacket

    Best Splurge Bomber Jacket

    Read more
  • Taylor Stitch The Bomber Jacket

    Best Suede Bomber Jacket

    Read more
  • Lululemon Switch Over Bomber

    Best Bomber Jacket for Commuters

    Read more
  • Mr P. Cotton-Drill Bomber Jacket

    Best Designer Bomber Jacket

    Read more

Bomber Jacket History

Back in the day, the bomber jacket was standard issue for the bold and the cold. Designed to make pilots as comfortable as possible while airborne in non-insulated airplanes, the jackets were available in only two sturdy materials, leather or nylon. But most early bomber jackets — then called flight jackets, even though they’re now two slightly different styles — had high collars, which kept heat from escaping from around your neck.

The high, cinched waist and knit cuffs do similar jobs. Sure, they help define your silhouette, but they also helped pilots sit comfortably, with the bottom of the jacket hitting above their groin and rising above their rear. The knit cuffs let them control the plane without interference, whether they had gloves on or not.

Even today, the bomber jacket is “deeply rooted in the functionality and adaptability required for combat scenarios,” says Matthew Pantoja, the chief brand officer of Alpha Industries, the company that received the first military contract for the production of bomber jackets in the United States

Varsity vs. Bomber Jacket

It’s fair to wonder how varsity jackets, which were first popular with athletes but have since expanded into the streetwear market, are different from bomber jackets, which have roots in the military. Frankly, they aren’t all that unalike. Varsity jackets often come with insignia from the school or your chosen sport and come in bolder, school spirit-infused hues.

Both the varsity jacket and bomber jacket have knit cuffs at the wrist and the bottom hem, while the varsity jacket often features contrasting leather sleeves and a knit collar. Colorblocked details also define the varsity jacket, but you might say that both have a sporty, heritage-minded look.

The bomber jacket’s journey from field-of-war staple to genuine fashion piece has been a winding journey, Alpha Industries’ Pantoja says.

“Its evolution over the last six decades into a fashion staple has been influenced by subcultures, counterculture, pop culture, and the global reach of American style,” he says.

How to Style a Bomber Jacket

Today, things are a bit…lighter than those uniforms of war. Modern-day bomber jackets retain the distinguishing features of their military service — the slightly shortened torso and ribbed collar, cuffs and hem, a pocket on the arm, plus the occasional collar — yet use lighter-weight fabrics for increased versatility.

As with any other piece of outerwear, details like fit, material and color can (and should) be selected with care, Pantoja said.

When it comes to fit, Pantoja says it “depends on if you like it oversized or regular. But if the latter, the jacket should fit snug but not too tight. It should allow you to move around comfortably without being too restrictive.”

Neutral colors like navy, brown or black are versatile and can work with plenty of different outfits, Pantoja notes.

Drew Green, CEO of Indochino, which makes a wide range of bomber jackets in various fabrications, said the bomber jacket is a do-it-all outerwear piece. “The bomber jacket is an essential for transitional weather because it’s an easy-to-wear layer that goes with nearly every casual outfit and can be easily dressed up or down,” Green said. “They are a great piece to throw on over a T-shirt or collared shirt, particularly as temperatures start to cool down.”

The bomber jackets below are optimal brisk-weather attire, capable of being layered under an overcoat, on top of a simple shirt, or paired with a hoodie.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (4)Alpha Industries

Best Overall Bomber Jacket

Alpha Industries Heritage MA-1 Bomber Jacket

  • $160.00 at

Pros

  • Heritage-quality bomber jacket style with many retro details
  • Available in a wide range of sizes, plus classic colors

Cons

  • Some might prefer a bomber jacket with a slightly trimmer fit
  • Some sizes and colors tend to sell out quickly
  • Country of Manufacture: China
  • Shell Material: Flight nylon
  • Colors: Sage, Black, Replica Blue, Gunmetal, Woodland Camo, Vintage Gray
  • Sizes: XXS-LT based on colorway

Just as Alpha Industries set the standard for Field Jackets, they literally invented the MA-1 Bomber Jacket. (Well, Alpha is an offshoot of Dobbs, the original inventor, but the pair became synonymous after the expansion.) These days, they’ve become a fan favorite for everyone from Bradley Cooper to Beyonce to Ben Affleck (and the list stretches on from there).

They’ve made the new one as close to original specifications as possible, checking off all the prerequisites while adding touches like reversibility and the cool, now kind of kitschy, flight tag — plus a classic Sage color that wears well with everything from earthen tones to blue jeans.

Of the bomber jacket silhouette in general, Pantoja noted that “its rich history combined with its ever-evolving design ensures the bomber jacket’s enduring place in global style.” We’re tempted to agree with him on that.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (5)Buck Mason

Best Upgrade Bomber Jacket

Buck Mason Storm Stopper Bomber Jacket

  • $250.00 at Buck Mason

Pros

  • Designed with a durable water-repellent finish for performance
  • Finished with PrimaLoft insulation for extra warmth

Cons

  • Jacket might be rather plain in terms of design for some
  • Only available in two colors as of now
  • Country of Manufacture: China
  • Shell Material: Yarn-dyed cotton/poly twill
  • Colors: Black, Mushroom
  • Sizes: XS-XXL

You could rightly argue, perhaps, that bomber jackets aren’t the best winter coats, which means none of them should be too insulating. This Buck Mason jacket bucks that trend a bit with PrimaLoft insulation, though. However, the bomber jacket is still a transitional jacket — one you can wear for nearly any occasion, with myriad garments underneath (or not). But above all else, they should be simple, and Buck Mason’s aptly named Storm Stopper fits the bill nicely.

It’s made from a mix of cotton and poly, weatherproof and almost painfully plain. That makes it versatile enough to rotate in alongside other casual style staples, particularly a Buck Mason T-shirt and expertly faded jeans.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (6)Uniqlo

Best Affordable Bomber Jacket

Uniqlo MA-1 Blouson

  • $40.00 at Uniqlo

Pros

  • Price-conscious option that mimics other classic bomber jackets
  • Finished with a light DWR coating for weather-ready performance

Cons

  • DWR finish isn’t permanent and might not last as long on an affordably priced jacket
  • Jacket features a more relaxed cut, which some might not prefer
  • Country of Manufacture: China
  • Shell Material: Military twill
  • Colors: Black, Olive, Navy
  • Sizes: XXS-3XL

Uniqlo uses the bomber jacket’s government name: the MA-1, which is what the Army called these when they introduced them. Sure, this one deviates from what they looked like over 100 years ago, but it’s built for the modern wearer, not a museum.

The modern revamp also means this one comes in more fashionable colors like black, in addition to the standard-issue olive option. The nylon twill outer is also a nod to military styles, while this number is also finished with a DWR coating (no word on how long that might last, though).

It’s slightly shiny, comfortable and a little oversized, which lends an exaggerated look that pairs well with sneakers.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (7)Everlane

Best Lightweight Bomber Jacket

Everlane Bomber Jacket

  • $128.00 at Everlane

Pros

  • Minimal bomber jacket that pairs easily with other style staples
  • Finished with a water-resistant treatment for weather-ready performance

Cons

  • Some might not like the look and performance of the two-way zipper
  • Some might prefer snap or zip hip pockets, versus magnetic closure
  • Country of Manufacture: Vietnam
  • Shell Material: Recycled cotton-poly
  • Colors: Deep Navy, Toasted Coconut, Black, Trench Coat Khaki, Kalamata
  • Sizes: XS-XXL

You could certainly argue that the bomber might be the ideal “gym jacket.” Not one you’d necessarily work out in, no, but something you can wear there with another layer on underneath, and wear out alone, when you’re warmed up by the workout. This one’s a lightweight cotton-poly blend that’s both water- and wind-proof.

Everlane also designed it with the rest of its minimal “Uniform” Collection in mind – these pieces make up a full capsule wardrobe you can pair seamlessly through a “mix and match” system. Take an Everlane crew tee and organic cotton blue jeans, add this bomber jacket, and consider lacing up some Everlane sneakers.

It’s as easy as that, with the classic bomber jacket as a nice starting point. The use of recycled material, coupled with a weather-ready exterior treatment, isn’t half-bad, either.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (8)Buck Mason

Best Leather Bomber Jacket

Buck Mason Leather Bruiser Bomber

  • $495.00 at Buck Mason

Pros

  • Leather exterior gives a rugged edge to a timeless silhouette
  • Finished with Bemberg lining for an easy, premium wearing experience

Cons

  • Leather isn’t as weather-ready as other bomber jacket fabrications
  • Expensive for a relatively casual jacket style
  • Country of Manufacture: China
  • Shell Material: Leather
  • Colors: Black
  • Sizes: XS-XXL

Leather might’ve been the material of choice when bombers were first made, but Buck Mason’s doesn’t look much like it. It’s simpler, more tailored, and ultimately far lighter — but luxe nonetheless. It’s also a style that falls right in line with Buck Mason’s core ethos: All-American classics updated for the modern man.

The Bruiser name itself even calls to mind the OG leather jackets worn by guys who only need an introduction by way of last name: Dean and Brando come to mind. It doesn’t hurt that this jacket has a rugged appeal that pairs plenty well with its new line of USA-made T-shirts and its classically crafted blue jeans – talk about the ultimate casual #OOTD.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (9)Abercrombie & Fitch

Best Mall Buy Bomber Jacket

Abercrombie & Fitch Workwear Bomber Jacket

  • $160.00 at Abercrombie

Pros

  • Canvas fabric blend lends a workwear edge to the bomber jacket style
  • Designed with a covered front zipper placket for additional coverage

Cons

  • Fabric isn’t as weather-ready as other bomber jacket styles
  • Some might not like the faded look of the canvas exterior
  • Country of Manufacture: China
  • Shell Material: Canvas-elastane blend
  • Colors: Black, Olive
  • Sizes: XS-XXL

Rethink what you thought you knew about Abercrombie & Fitch, because the brand continues to surge back in a big way in terms of refreshing styles (a trend that first started when Aaron Levine was brought on as SVP of Design). This jacket subverts the traditional nylon or lightweight bomber jacket fabric in favor of more rugged stretch canvas with a pleasingly faded finish. It comes in just two simple colors, but its vintage-leaning looks more than make up for that simplicity.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (10)Bonobos

Best Bomber Jacket for the Office

Bonobos The Boulevard Bomber

  • $189.00 at Bonobos

Pros

  • Clean, crisp design and sleek color make this a reliably dressy bomber jacket
  • Water-repellent construction provides utility

Cons

  • Collar appears to be smaller than other bomber jacket options
  • Some might prefer a bomber jacket with more pattern or color
  • Country of Manufacture: China
  • Shell Material: Cotton-nylon blend
  • Colors: Black, Maritime Blue, Green Gables
  • Sizes: XS-XXL

If you plan to wear your bomber jacket in a slightly more dressed up fashion (like with chinos and a polo at the office, for instance), then the more sleek and minimal, the better.

Bonobos already nails that aesthetic with its excellent stretch chinos, and the same holds true for this bomber jacket. Sure, some offices might accept a vintage varsity jacket with snarky chain stitching, but a plain black bomber like Bonobos’s The Boulevard is a safer bet. It has a ribbed collar and ribbed cuffs, a simple front zipper and two hip pockets.

For your commute and for blustery days around town, it’s water-repellent, although we’d avoid wearing it during gale-force storms.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (11)End Clothing

Best Bubble Bomber Jacket

MKI Bubble Bomber Jacket

  • $195.00 at End Clothing

Pros

  • Insulated with duck down for warm performance
  • Nylon exterior is also treated with DWR coating

Cons

  • Bubble jacket design is non-traditional compared to other bomber jackets
  • Insulation might prove too warm to wear in some settings
  • Country of Manufacture: Portugal
  • Shell Material: Nylon
  • Colors: Black, Slate, Khaki, Off-White
  • Sizes: S-XL

Although it may not look like it laid flat, MKI’s Bubble Bomber is indeed a bomber. The difference here is a rather futuristic silhouette at first glance, but the details pay homage to timeless bomber jackets.

The collar wraps tight around the neck and the bottom hem is tight, too. It assumes a more traditional shape once on while being bold and original. Plus, it’s a better insulator than most of the unlined options seen here, and the exterior is finished with a DWR treatment. Keep this option handy when you want the casual style of a bomber jacket with the heft of a more traditional winter puffer jacket.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (12)Indochino

Best Non-Traditional Bomber Jacket

Flaxton Corduroy Navy Bomber Jacket

  • $199.00 at indochino.com

Pros

  • Corduroy lends a distinctive touch to the iconic bomber jacket silhouette
  • Minimal color and design is easy to dress up or dress down

Cons

  • Exterior isn’t as durable as weather-ready bomber jackets
  • Corduroy is more difficult to care for than other bomber jacket materials
  • Country of Manufacture: China
  • Shell Material: Corduroy
  • Colors: Navy
  • Sizes: XS-XXL

While useful, not every bomber jacket needs to be made from durable nylon or finished with a weather-ready waxed coating. The bomber jacket gets a touch dressier here thanks to the use of deep navy corduroy, the sort that wouldn’t look out place with black jeans or even slate grey chinos. The fact that it comes from a brand known for its tailoring is also a bonus in terms of fit and quality.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (13)Vollebak

Best Splurge Bomber Jacket

Vollebak Indestructible Jacket

  • $895.00 at vollebak.com

Pros

  • Outer is made with incredibly tough, durable Dyneema fabric for the ultimate in performance
  • Jacket is also lined with polyester fleece for added warmth
  • Jacket is also abrasion-resistant and waterproof for exceptional added toughness

Cons

  • Style features a point collar, a change of pace from traditional bomber jackets
  • Jacket is expensive for a style that’s largely casual
  • Country of Manufacture: Belgium
  • Shell Material: Dyneema
  • Colors: Black
  • Sizes: XS-XXL

There are bomber jackets and there are bomber jackets – and Vollebak made sure to make the latter. The English brand loaded up its aptly named Indestructible Jacket with an almost absurd amount of bells and whistles, from its weather-ready Dyneema Black exterior to a fleece-lined collar and cuffs, four useful pockets and “ultra-strong bonded thread” in the stitching process. It’s a futuristic-leaning, streamlined option that should withstand the elements and your crosstown commute for years to come.

And yes, it’ll run you nearly $900, but again, it’s about as tough as it gets in terms of bomber jacket design.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (14)Courtesy

Best Suede Bomber Jacket

Taylor Stitch The Bomber Jacket

  • $399.00 at taylorstitch.com

    $798.00(50% off)

Pros

  • Made from premium, rich suede for an elegant look
  • Finished with a custom plaid liner for yet another luxe touch

Cons

  • Jacket is only available in chest sizing, which might be difficult for those between sizes
  • Suede is difficult to care for and clean
  • Country of Manufacture: Turkey
  • Shell Material: 3-ounce calf suede
  • Colors: Sierra
  • Sizes: M-XXL

Sure, early bomber jackets were made from nylon or leather, but you might not think of suede, even if it’s technically a type of leather. Taylor Stitch went the extra mile in using a soft, supple suede, plus a plaid lining that was custom-developed for the fan-favorite San Francisco brand.

The soft fabric lends this bomber by Taylor Stitch a luxe look while being long-lasting, too. Best of all, the sleeves are acetate-lined for easy on-off.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (15)Lululemon

Best Bomber Jacket for Commuters

Lululemon Switch Over Bomber

  • $198.00 at Lululemon

Pros

  • Made with water-resistant cotton-blend fabric for durability
  • Reversible design aids in versatility

Cons

  • Designed with a classic fit, which helps with layering but might not suit every style preference
  • Made without ribbed cuffs or a ribbed hem, which some might also prefer
  • Country of Manufacture: China
  • Shell Material: Water-resistant cotton-blend fabric
  • Colors: Grey Sage, Black, Artifact
  • Sizes: XS-XXL

If you pack into a tight subway car, cram onto a bus or even bike or walk to work, it’s important to have the right gear. In this case, the best bomber to get from point A (home) to point B (work) is this one from Lululemon, which they dub the Switch Over Bomber.

Lululemon has gone from simply a gym or athletic brand to a company that makes increasingly versatile gear for today’s modern office (or your WFH set-up). This jacket is a polished step up from, say, a Lululemon zip hoodie, with some of the same useful performance features, all in a clean silhouette.

It’s water-repellent, has two zippered exterior pockets and even buttons at the collar, helping keep rain out and off your precious office attire.

The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (16)Mr Porter

Best Designer Bomber Jacket

Mr P. Cotton-Drill Bomber Jacket

  • $329.00 at MR PORTER

    $470.00(30% off)

Pros

  • Luxe jacket made from durable cotton drill fabric
  • Ribbed cuffs and hem deliver a snug, secure fit

Cons

  • Two-way zipper design isn’t for every style preference
  • Expensive for a largely casual jacket
  • Country of Manufacture: Italy
  • Shell Material: 100 percent cotton drill
  • Colors: Sage Green
  • Sizes: XS-XXL

The humble roots of the bomber jacket might not seem a natural fit for a designer update to the silhouette, but the times, they are a-changin’. Mr Porter debuted its own menswear line back in 2017 to great fanfare, and since then, they’ve offered a lower-cost alternative to other designer labels stocked by the UK retailer.

This option is still one of the pricier options among our picks for the best bomber jackets, but it gets the details right – including a classic sage green color, ribbed cuffs and a simple, easy-to-style design.

Related Topics

Buying Guides, Clothing, Fall Gear,

');e.insertAdjacentHTML(n,o)}return document.getElementById(t)},e.prototype._repeatDynamicAds=function(e){for(var t=[],i=this._removeRecipeCapExperiment.result&&"Recipe"===e.location?99:this.locationMaxLazySequence.get(e.location),o=e.lazy?C(i,0):0,r=e.max,a=e.lazyMax,s=0===o&&e.lazy?r+a:Math.min(Math.max(o-e.sequence+1,0),r+a),l=Math.max(r,s),c=0;c=r;t.push(n(n({},e),{sequence:u,lazy:d}))}return t},e.prototype._locationEnabled=function(e){var t=this._clsOptions.enabledLocations.includes(e.location),n=this._clsOptions.disableAds&&this._clsOptions.disableAds.all||document.body.classList.contains("adthrive-disable-all"),i=!document.body.classList.contains("adthrive-disable-content")&&!this._clsOptions.disableAds.reasons.has("content_plugin");return t&&!n&&i},e}(),Ce=function(e){function n(t,n){var i=e.call(this,t,"ClsVideoInsertion")||this;return i._videoConfig=t,i._clsOptions=n,i._IN_POST_SELECTOR=".adthrive-video-player",i._WRAPPER_BAR_HEIGHT=36,i._playersAddedFromPlugin=[],n.removeVideoTitleWrapper&&(i._WRAPPER_BAR_HEIGHT=0),i}return t(n,e),n.prototype.init=function(){this._initializePlayers()},n.prototype._wrapVideoPlayerWithCLS=function(e,t,n){if(void 0===n&&(n=0),e.parentNode){var i=e.offsetWidth*(9/16),o=this._createGenericCLSWrapper(i,t,n);return e.parentNode.insertBefore(o,e),o.appendChild(e),o}return null},n.prototype._createGenericCLSWrapper=function(e,t,n){var i=document.createElement("div");return i.id="cls-video-container-".concat(t),i.className="adthrive",i.style.minHeight="".concat(e+n,"px"),i},n.prototype._getTitleHeight=function(){var e=document.createElement("h3");e.style.margin="10px 0",e.innerText="Title",e.style.visibility="hidden",document.body.appendChild(e);var t=window.getComputedStyle(e),n=parseInt(t.height,10),i=parseInt(t.marginTop,10),o=parseInt(t.marginBottom,10);return document.body.removeChild(e),Math.min(n+o+i,50)},n.prototype._initializePlayers=function(){var e=document.querySelectorAll(this._IN_POST_SELECTOR);e.length&&this._initializeRelatedPlayers(e),this._shouldRunAutoplayPlayers()&&this._determineAutoplayPlayers()},n.prototype._createStationaryRelatedPlayer=function(e,t,n){var i="mobile"===this._device?[400,225]:[640,360],o=_.Video_In_Post_ClicktoPlay_SoundOn;if(t&&e.mediaOrPlaylistId){var r="".concat(e.mediaOrPlaylistId,"_").concat(n),a=this._wrapVideoPlayerWithCLS(t,r);this._playersAddedFromPlugin.push(e.mediaOrPlaylistId),a&&this._clsOptions.setInjectedVideoSlots({playerId:e.playerId,playerName:o,playerSize:i,element:a,type:"stationaryRelated"})}},n.prototype._createStickyRelatedPlayer=function(e,t){var n="mobile"===this._device?[400,225]:[640,360],i=_.Video_Individual_Autoplay_SOff;if(this._stickyRelatedOnPage=!0,this._videoConfig.mobileStickyPlayerOnPage="mobile"===this._device,t&&e.position&&e.mediaId){var o=document.createElement("div");t.insertAdjacentElement(e.position,o);var r=this._getTitleHeight(),a=this._wrapVideoPlayerWithCLS(o,e.mediaId,this._WRAPPER_BAR_HEIGHT+r);this._playersAddedFromPlugin.push(e.mediaId),a&&this._clsOptions.setInjectedVideoSlots({playlistId:e.playlistId,playerId:e.playerId,playerSize:n,playerName:i,element:o,type:"stickyRelated"})}},n.prototype._createPlaylistPlayer=function(e,t){var n=e.playlistId,i="mobile"===this._device?_.Video_Coll_SOff_Smartphone:_.Video_Collapse_Autoplay_SoundOff,o="mobile"===this._device?[400,225]:[640,360];this._videoConfig.mobileStickyPlayerOnPage=!0;var r=document.createElement("div");t.insertAdjacentElement(e.position,r);var a=this._WRAPPER_BAR_HEIGHT;e.title&&(a+=this._getTitleHeight());var s=this._wrapVideoPlayerWithCLS(r,n,a);this._playersAddedFromPlugin.push("playlist-".concat(n)),s&&this._clsOptions.setInjectedVideoSlots({playlistId:e.playlistId,playerId:e.playerId,playerSize:o,playerName:i,element:r,type:"stickyPlaylist"})},n.prototype._isVideoAllowedOnPage=function(){var e=this._clsOptions.disableAds;if(e&&e.video){var t="";e.reasons.has("video_tag")?t="video tag":e.reasons.has("video_plugin")?t="video plugin":e.reasons.has("video_page")&&(t="command queue");var n=t?"ClsVideoInsertionMigrated":"ClsVideoInsertion";return A.error(n,"isVideoAllowedOnPage",new Error("DBP: Disabled by publisher via ".concat(t||"other"))),!1}return!this._clsOptions.videoDisabledFromPlugin},n}(function(e){function o(t,n){var i=e.call(this)||this;return i._videoConfig=t,i._component=n,i._stickyRelatedOnPage=!1,i._relatedMediaIds=[],i._device=x()?"desktop":"mobile",i._potentialPlayerMap=i.setPotentialPlayersMap(),i}return t(o,e),o.prototype.setPotentialPlayersMap=function(){var e=this._videoConfig.players||[],t=this._filterPlayerMap(),n=e.filter((function(e){return"stationaryRelated"===e.type&&e.enabled}));return t.stationaryRelated=n,this._potentialPlayerMap=t,this._potentialPlayerMap},o.prototype._filterPlayerMap=function(){var e=this,t=this._videoConfig.players,n={stickyRelated:[],stickyPlaylist:[],stationaryRelated:[]};return t&&t.length?t.filter((function(t){var n;return null===(n=t.devices)||void 0===n?void 0:n.includes(e._device)})).reduce((function(t,n){return t[n.type]||(A.event(e._component,"constructor","Unknown Video Player Type detected",n.type),t[n.type]=[]),n.enabled&&t[n.type].push(n),t}),n):n},o.prototype._checkPlayerSelectorOnPage=function(e){var t=this,n=this._potentialPlayerMap[e].map((function(e){return{player:e,playerElement:t._getPlacementElement(e)}}));return n.length?n[0]:{player:null,playerElement:null}},o.prototype._getOverrideElement=function(e,t,n){if(e&&t){var i=document.createElement("div");t.insertAdjacentElement(e.position,i),n=i}else{var o=this._checkPlayerSelectorOnPage("stickyPlaylist"),r=o.player,a=o.playerElement;if(r&&a){i=document.createElement("div");a.insertAdjacentElement(r.position,i),n=i}}return n},o.prototype._shouldOverrideElement=function(e){var t=e.getAttribute("override-embed");return"true"===t||"false"===t?"true"===t:!!this._videoConfig.relatedSettings&&this._videoConfig.relatedSettings.overrideEmbedLocation},o.prototype._checkPageSelector=function(e,t,n){return void 0===n&&(n=[]),!e||!t||0!==n.length||(!("/"===window.location.pathname)&&A.event("VideoUtils","getPlacementElement",new Error("PSNF: ".concat(e," does not exist on the page"))),!1)},o.prototype._getElementSelector=function(e,t,n){return t&&t.length>n?t[n]:(A.event("VideoUtils","getPlacementElement",new Error("ESNF: ".concat(e," does not exist on the page"))),null)},o.prototype._getPlacementElement=function(e){var t=e.pageSelector,n=e.elementSelector,o=e.skip,r=I(t),a=r.valid,s=r.elements,l=i(r,["valid","elements"]),c=R(n),u=c.valid,d=c.elements,p=i(c,["valid","elements"]);return""===t||a?u?this._checkPageSelector(t,a,s)&&this._getElementSelector(n,d,o)||null:(A.error("VideoUtils","getPlacementElement",new Error("".concat(n," is not a valid selector")),p),null):(A.error("VideoUtils","getPlacementElement",new Error("".concat(t," is not a valid selector")),l),null)},o.prototype._getEmbeddedPlayerType=function(e){var t=e.getAttribute("data-player-type");return t&&"default"!==t||(t=this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.defaultPlayerType:"static"),this._stickyRelatedOnPage&&(t="static"),t},o.prototype._getMediaId=function(e){var t=e.getAttribute("data-video-id");return!!t&&(this._relatedMediaIds.push(t),t)},o.prototype._createRelatedPlayer=function(e,t,n,i){"collapse"===t?this._createCollapsePlayer(e,n):"static"===t&&this._createStaticPlayer(e,n,i)},o.prototype._createCollapsePlayer=function(e,t){var i=this._checkPlayerSelectorOnPage("stickyRelated"),o=i.player,r=i.playerElement,a=o||this._potentialPlayerMap.stationaryRelated[0];a&&a.playerId?(this._shouldOverrideElement(t)&&(t=this._getOverrideElement(o,r,t)),t=document.querySelector("#cls-video-container-".concat(e," > div"))||t,this._createStickyRelatedPlayer(n(n({},a),{mediaId:e}),t)):A.error(this._component,"_createCollapsePlayer","No video player found")},o.prototype._createStaticPlayer=function(e,t,i){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId){var o=this._potentialPlayerMap.stationaryRelated[0];this._createStationaryRelatedPlayer(n(n({},o),{mediaOrPlaylistId:e}),t,i)}else A.error(this._component,"_createStaticPlayer","No video player found")},o.prototype._shouldRunAutoplayPlayers=function(){return!(!this._isVideoAllowedOnPage()||!this._potentialPlayerMap.stickyRelated.length&&!this._potentialPlayerMap.stickyPlaylist.length)},o.prototype._determineAutoplayPlayers=function(){var e=this._component,t="VideoManagerComponent"===e,n=this._config;if(this._stickyRelatedOnPage)A.event(e,"stickyRelatedOnPage",t&&{device:n&&n.context.device,isDesktop:this._device}||{});else{var i=this._checkPlayerSelectorOnPage("stickyPlaylist"),o=i.player,r=i.playerElement;o&&o.playerId&&o.playlistId&&r?this._createPlaylistPlayer(o,r):A.event(e,"noStickyPlaylist",t&&{vendor:"none",device:n&&n.context.device,isDesktop:this._device}||{})}},o.prototype._initializeRelatedPlayers=function(e){for(var t=new Map,n=0;n
The Best Bomber Jackets for Taking Your Style to New Heights | Gear Patrol (2024)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Reed Wilderman

Last Updated:

Views: 5816

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.