"use strict";var tag=document.createElement("script"),firstScriptTag=(tag.id="youtube-iframe",tag.src="https://www.youtube.com/iframe_api",document.getElementsByTagName("script")[0]),players=(firstScriptTag.parentNode.insertBefore(tag,firstScriptTag),[]);function onYouTubeIframeAPIReady(){if(void 0!==window.playerInfoList)for(var e=0;e<window.playerInfoList.length;e++){var t=window.playerInfoList[e];players.push(new YT.Player(t.id,{}))}};
"use strict";window.DysonJDF=window.DysonJDF||{},$(function(){var o=$(".js-hero-panel .full-width-video__cover__play-button-container__play-button");o.keyup(function(o){13!==o.which&&32!==o.which||DysonJDF.app.process("playVideo",$(this))}),o.mouseup(function(){DysonJDF.app.process("playVideo",$(this))})});;
window.DysonJDF=window.DysonJDF||{},DysonJDF.contact=function(){"use strict";return{elementReveal:function(){var e,t=$(document).scrollTop()+$(window).height(),n=$(".contact-wrapper__contact-panel__icon-text").not(".contact-wrapper__contact-panel__icon-text--reveal");n.length&&(e=t,n.each(function(t,n){n=$(n);n.offset().top<e-50&&n.addClass("contact-wrapper__contact-panel__icon-text--reveal")}))}}}(),DysonJDF.app.register("load scroll",DysonJDF.contact.elementReveal);;
"use strict";window.DysonJDF=window.DysonJDF||{},DysonJDF.topNav={menuIsOpening:!1,topOffset:null,onLoad:function(){DysonJDF.topNav.addHasChildrenClass(),DysonJDF.topNav.adjustMenuExpandedAccessibilityMarkup(),DysonJDF.topNav.removeMainContentLinksIfNoMainContent()},onResize:function(){var n=DysonJDF.detectBreakpoint.detectBreakpoint();DysonJDF.topNav.adjustMenuExpandedAccessibilityMarkup(),"lg"==n&&(DysonJDF.topNav.closeAllSubmenus(),$(".top-nav").collapse("hide")),DysonJDF.topNav.conditionallyUnstick()},onScroll:function(){DysonJDF.topNav.conditionallyUnstick()},onShowMobileMenu:function(){$(".mobile-menu__button").removeClass("mobile-menu__button_show-menu"),$(".mobile-menu__button").attr("aria-expanded","true")},onHideMobileMenu:function(){$(".mobile-menu__button").addClass("mobile-menu__button_show-menu"),$(".top-nav__navbar--li").removeClass("top-nav__navbar--li_see-children"),$(".top-nav__navbar--li").removeClass("top-nav__navbar--li_fade-in"),$(".mobile-menu__button").attr("aria-expanded","false"),DysonJDF.topNav.closeAllSubmenus()},onShownMobileMenu:function(){DysonJDF.topNav.adjustMenuExpandedAccessibilityMarkup(),$(".top-nav__navbar--li").addClass("top-nav__navbar--li_fade-in")},onHiddenMobileMenu:function(){var n=DysonJDF.detectBreakpoint.detectBreakpoint();DysonJDF.topNav.adjustMenuExpandedAccessibilityMarkup(),("lg"==n?$(".header-logo--link"):$(".mobile-menu__button")).focus()},conditionallyUnstick:function(){var n=$("body"),o=$(".site-header"),e="overflowing-menu";$(window).height()<o.height()?(n.hasClass(e)||window.scrollTo(0,0),n.addClass(e)):n.removeClass(e)},addHasChildrenClass:function(){$(".top-nav__navbar--link_has-children").parent().addClass("top-nav__navbar--li_has-children")},removeMainContentLinksIfNoMainContent:function(){var n=$("#main"),o=$(".skip-to-main-link-top");n.length||o.remove()},menuIsButtonised:function(){return $(".mobile-menu__button").is(":visible")},adjustMenuExpandedAccessibilityMarkup:function(){var n=DysonJDF.detectBreakpoint.detectBreakpoint(),o=$(".top-nav"),e=$(".top-nav__subnav");o.hasClass("in")||"lg"==n?(o.removeAttr("aria-hidden"),o.attr("aria-expanded","true")):(o.attr("aria-hidden","true"),o.attr("aria-expanded","false")),"lg"==n?e.attr("aria-hidden","true"):e.removeAttr("aria-hidden")},handleMenuItemInteraction:function(n){var o=n.e,n=n.$link,n=(n.closest("ul"),n.parent()),e=n.siblings(),a=0<n.find("ul li").length;DysonJDF.topNav.menuIsButtonised()&&a&&(o.preventDefault(),n.toggleClass("top-nav__navbar--li_see-children"),e.removeClass("top-nav__navbar--li_see-children"),DysonJDF.topNav.conditionallyUnstick())},closeAllSubmenus:function(){$(".top-nav__navbar--li").removeClass("open opened-by-focus opened-by-hover")},openSubmenu:function(n,o){var e=DysonJDF.topNav;if(e.menuIsOpening=!0,setTimeout(function(){e.menuIsOpening=!1},500),$.inArray(o,["hover","focus"])<0)throw o+" is not a valid menu-opening event.";this.closeAllSubmenus(),n.addClass("open").addClass("opened-by-"+o)},respondToBlurOfMenuItem:function(n){var o=$(".top-nav__navbar--li:visible").length;n.closest(".top-nav__navbar--li:visible").prevAll().length==o-1&&DysonJDF.topNav.closeAllSubmenus()},onMouseMovingInsideNullArea:function(){DysonJDF.topNav.closeAllSubmenus()},addLanguageClass:function(){$("html:lang(ja)").addClass("japan")}},DysonJDF.app.register("load",DysonJDF.topNav.onLoad),DysonJDF.app.register("load",DysonJDF.topNav.addLanguageClass),DysonJDF.app.register("resize",DysonJDF.topNav.onResize),DysonJDF.app.register("scroll",DysonJDF.topNav.onScroll),DysonJDF.app.register("navBarDropdown",DysonJDF.topNav.handleMenuItemInteraction),DysonJDF.app.register("mobileMenuShow",DysonJDF.topNav.onShowMobileMenu),DysonJDF.app.register("mobileMenuHide",DysonJDF.topNav.onHideMobileMenu),DysonJDF.app.register("mobileMenuShown",DysonJDF.topNav.onShownMobileMenu),DysonJDF.app.register("mobileMenuHidden",DysonJDF.topNav.onHiddenMobileMenu),DysonJDF.app.register("mouseIsMovingInsideMenuNullArea",DysonJDF.topNav.onMouseMovingInsideNullArea),DysonJDF.app.register("hasChildrenShowOverlay",DysonJDF.topNav.showOverlay),DysonJDF.app.register("hasChildrenHideOverlay",DysonJDF.topNav.hideOverlay),$(document).ready(function(){var n=/iphone|ipad/gi.test(navigator.appVersion)?"touchend":"click";$(".js-navbar-dropdown").on(n,function(n){DysonJDF.app.process("navBarDropdown",{e:n,$link:$(this)})}),$(".glyphicon-search").on("click",function(){DysonJDF.app.process("searchOverlayShow")}),$(".search-box-ctr__exit--glyphicon-exit").on("click",function(){DysonJDF.app.process("searchOverlayClose")}),$(".js-search-input").bind("keyup change keypress",function(){DysonJDF.app.process("searchInputLabelShowHide")}),$(".top-nav").on("show.bs.collapse",function(){DysonJDF.app.process("mobileMenuShow")}),$(".top-nav").on("hide.bs.collapse",function(){DysonJDF.app.process("mobileMenuHide")}),$(".top-nav").on("shown.bs.collapse",function(){DysonJDF.app.process("mobileMenuShown")}),$(".top-nav").on("hidden.bs.collapse",function(){DysonJDF.app.process("mobileMenuHidden")}),$(".top-nav__navbar").on("mouseenter",".top-nav__navbar--li_has-children > a",function(){var n=$(this).closest("li");DysonJDF.topNav.openSubmenu(n,"hover")}).on("mouseleave",".top-nav__navbar--li",function(){DysonJDF.topNav.menuIsOpening||DysonJDF.topNav.closeAllSubmenus()}).on("focus",".top-nav__navbar--li > a",function(){var n=$(this).closest("li");DysonJDF.topNav.openSubmenu(n,"focus")}).on("focus",".top-nav__navbar--li li a",function(){var n=$(this).closest(".top-nav__navbar--li");DysonJDF.topNav.openSubmenu(n,"focus")}).on("blur",".top-nav__navbar--li > a",function(){setTimeout(function(){var n=$(":focus");n.closest(".top-nav").length&&!n.closest(".header-logo").length||DysonJDF.topNav.closeAllSubmenus()},1e3)}).on("blur",".top-nav__navbar--li:visible > ul > ul > li:last-child > a",function(){DysonJDF.topNav.respondToBlurOfMenuItem($(this))}).on("blur",".top-nav__navbar--li:visible > ul > ul > li > ul > li:last-child > a",function(){DysonJDF.topNav.respondToBlurOfMenuItem($(this))}),$(document).keyup(function(n){var o=DysonJDF.detectBreakpoint.detectBreakpoint(),e=$(":focus"),e=(setTimeout(function(){$(":focus").closest(".top-nav").length||DysonJDF.topNav.closeAllSubmenus()},1e3),e.closest(".top-nav").length||e.hasClass("mobile-menu__button"));27===n.keyCode&&"lg"!=o&&e&&$(".top-nav").collapse("hide")}),$(document).on("mousemove","body",function(n){$(n.target).closest(".top-nav").length||DysonJDF.app.process("mouseIsMovingInsideMenuNullArea")}),$(document).on("mousemove",".sub-menu-overlay",function(n){$(n.target).hasClass("sub-menu-overlay")&&DysonJDF.app.process("mouseIsMovingInsideMenuNullArea")}),$(document).on("mousemove",".site-header",function(n){n=$(n.target);(n.hasClass("header-logo")||n.hasClass("site-header")||n.hasClass("header-logo--link")||n.hasClass("header-logo--img"))&&DysonJDF.app.process("mouseIsMovingInsideMenuNullArea")})});;
window.DysonJDF=window.DysonJDF||{},DysonJDF.contact=function(){"use strict";return{elementReveal:function(){var o,n=$(document).scrollTop()+$(window).height(),t=$(".contact__items__icons").not(".contact__items__icons--reveal");t.length&&(o=n,t.each(function(n,t){t=$(t);t.offset().top<o-50&&t.addClass("contact__items__icons--reveal")}))}}}(),DysonJDF.app.register("load scroll",DysonJDF.contact.elementReveal);;
window.DysonJDF=window.DysonJDF||{},DysonJDF.footer=function(){"use strict";return{onLoad:function(){DysonJDF.footer.writeCurrentYear(),DysonJDF.footer.removeMainContentLinksIfNoMainContent(),DysonJDF.footer.moveSkipToMain()},removeMainContentLinksIfNoMainContent:function(){var e=$("#main"),o=$(".skip-to-main-link-end");e.length||o.remove()},writeCurrentYear:function(){var e=new Date;$("#js-current-year").length&&(document.getElementById("js-current-year").innerHTML=e.getFullYear())},goToStartOfLanguageSelect:function(){$(".language-selector .language-selector--close").focus()},showLanguageSelect:function(){$(".language-selector").addClass("language-selector--reveal"),$(".language-selector button, .language-selector a").attr("tabindex","0")},hideLanguageSelect:function(){$(".language-selector").removeClass("language-selector--reveal"),$(".language-selector button, .language-selector a").attr("tabindex","-1"),$(".flag--click").focus()},moveSkipToMain:function(){$(".skip-to-link__footer").insertBefore(".footer-all")},closeFooterSpacer:function(){var e=$("#main").children().last();e.hasClass("up-next")&&e.addClass("global__negative-margin-bottom")}}}(),DysonJDF.app.register("load",DysonJDF.footer.writeCurrentYear),DysonJDF.app.register("load",DysonJDF.footer.moveSkipToMain),$(document).ready(function(){DysonJDF.footer.closeFooterSpacer(),$(".flag--click").click(function(){DysonJDF.footer.showLanguageSelect(),DysonJDF.footer.goToStartOfLanguageSelect()}),$(".language-selector--close").click(function(){DysonJDF.footer.hideLanguageSelect()}),$(".language-selector .loopback-btn").focus(function(){DysonJDF.footer.goToStartOfLanguageSelect()}),$(document).keyup(function(e){var o=!!$(":focus").closest(".language-selector").length;27===e.keyCode&&o&&DysonJDF.footer.hideLanguageSelect()})});;
