"use strict";function _classCallCheck(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,n){for(var i=0;i=Math.min(2'),$(".icon-menu").click(function(){"visible"===$("body").css("overflow")?$("body").css("overflow","hidden"):$("body").css("overflow","visible"),$(".headerbox").css("display","none"),$(".nav-phone-option-container").hasClass("showNavOption")?$(".nav-phone-option-container").removeClass("showNavOption"):$(".nav-phone-option-container").addClass("showNavOption")}),u(),t=menuTop.filter(function(t){return 2==t.type})[0],o="",$(".product-content .prodcut-nav-container").html(o),$(".nav-contain-product-image").click(function(){var t=$(this).attr("data-url");location.href=t})),l(),isEn||$(".navigation-bar-phone").append(''),resizeWatch.on(function(){l(),u()}),$(".navigation-options>li").hover(function(){var t,n,i;$(".navigation-options li").removeClass("nav-hover-option-active"),(t=$(this)).addClass("nav-hover-option-active"),"product-nav-container"!==t.attr("id")&&(i=(n=t.find(".nav-select")).attr("data-height"),n[0]&&(n[0].dataHide=!1),n.show().animate({height:i},300,"linear",function(){t[0]===h[0]&&!n[0].dataHide||n.height(0).hide()})),$(this),h=$(this)},function(){var t;(t=$(this)).removeClass("nav-hover-option-active"),(t=t.find(".nav-select")).css("height",0),t[0]&&(t[0].dataHide=!0)}),$("#product-nav-container").hover(function(){$(document.body).css("overflow-y","hidden"),function(t){var n=window.innerHeight-61;310<=n&&(n=310),$(".prodcut-nav-container").height(n),$(".".concat(e," .product-content")).show().animate({height:"".concat(n,"px")},320,"linear",function(){t.hasClass("nav-hover-option-active")||$(".".concat(e," .product-content")).height(0).hide()});for(var i=menuTop.filter(function(t){return 2==t.type})[0],o=0;o=Math.min(i)?"100px":t/7.5+"px")),resizeWatch.on(function(t){768<$(window).width()?setEmFontSize(n,Math.max(t,1280),i):setPhoneEmFontSize(n,Math.min(t,750),i)})}function initMallHoverContent(t){var n=1\n
\n
\n \n
\n
').concat(i,"
\n
\n \n "))}navigationInit(),footerInit(),window.domEmAdaption=domEmAdaption,window.resizeWatch=resizeWatch,window.phoneDomEmAdaption=phoneDomEmAdaption,isEn&&-1===$("head").html().indexOf("page-common")&&(includeLinkStyle=function(t){var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=t,document.getElementsByTagName("head")[0].appendChild(n)})("https://static.xag.cn/css/page-common.css?t=1598940381"),window.hideContextMenu=hideContextMenu,Math.min($(window).width(),750),window.domCommonEmAdaption=domCommonEmAdaption,window.resizeWatch=resizeWatch,/windows|win32/i.test(navigator.userAgent)&&((styleEl=document.createElement("style")).innerHTML=".fw-700, .fw-normal{ font-weight: 600 !important; } ",document.querySelector("head").appendChild(styleEl)),initMallHoverContent("xag-mall-btn");var newShareTo=function(){var i={facebook:function(t){var o={};$("meta").each(function(t,n){var i=$(n).attr("property")||"";0===i.indexOf("og:")&&(o[i]=$(n).attr("content"))});var n=["og:url",o["og:url"],"og:title",o["og:title"],"og:description",o["og:description"],"og:image",o["og:image"],"og:type",o["og:type"]],n=encodeURIComponent("".concat(t.url,"?meta=").concat(n.toString()));window.open("https://www.facebook.com/sharer.php?u="+n)},twitter:function(t){var n,i=[];for(n in t)i.push(n+"="+t[n]);window.open("https://twitter.com/intent/tweet?"+i.join("&"))},linkedin:function(t){var n,i=[];for(n in t)i.push(n+"="+t[n]);window.open("http://www.linkedin.com/shareArticle?"+i.join("&"))}};return function(t,n){i[t](n)}}(),playInsetVideo=function(){function t(){this.play=function(t){$(".cover-screen").width($(window).width()),$(".cover-screen").height($(window).height()),$(".cover-screen").show(),$("#cover-video").append(this.setVideo(t)),this.cb&&this.cb(),setTimeout(function(){var t=$("#cover-video").find("video")[0];try{t&&t.play()}catch(t){}})},this.setVideo=function(t){t=this.getVid(t);return this.embed(t)},this.getEmbed=function(n,t){var i=768<$(window).width()?"qiniu"===t?1200:1280:$(window).width(),o=768<$(window).width()?675:$(window).width()/2.2,e=Object.keys(n).map(function(t){return" "+t+"="+n[t]+" "}).join("");return"qiniu"===t?'\n \n "):'\n \n ")}}var i={youku:new t,qq:new t,youtube:new t,qiniu:new t,judgeVideoType:function(t){return-1!==t.indexOf("v.qq.com")?"qq":-1!==t.indexOf("www.youtube.com")?"youtube":-1!==t.indexOf("v.youku.com")?"youku":"qiniu"}};return i.youku.getVid=function(t){return t.match(/id_(.+?)\.html/)[1]},i.youtube.getVid=function(t){var n=t.lastIndexOf("=")+1;return t.slice(n)},i.qq.getVid=function(t){var n=t.lastIndexOf("/")+1,i=t.lastIndexOf(".");return t.slice(n,i)},i.qiniu.getVid=function(t){return t},i.qq.embed=function(t){return this.getEmbed({src:"//v.qq.com/txp/iframe/player.html?vid=".concat(t,"&tiny=0&autoplay=true")})},i.qiniu.embed=function(t){return this.getEmbed({src:t},"qiniu")},i.youku.embed=function(t){return this.getEmbed({src:"//player.youku.com/embed/".concat(t,"?client_id=417dca79f8434cc8&password=undefined&autoplay=true"),scrolling:"no",allow:"autoplay"})},i.youtube.embed=function(t){return this.getEmbed({src:"//www.youtube.com/embed/".concat(t),scrolling:"no",allow:"autoplay; encrypted-media"})},function(t){var n=i.judgeVideoType(t);n?(console.log(n),i[n].play(t)):console.log("瑙嗛閾炬帴閿欒")}}();window.playInsetVideo=playInsetVideo;