"use strict";var smsFlag=!1,smsShowFun=null,hasScroll=!1,isWeixin=function(){return"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)};function getmeta(e){for(var t,n=document.getElementsByTagName("meta"),a=0;t=n[a++];)if(t.getAttribute("name")&&t.getAttribute("name").toLowerCase()===e)return encodeURIComponent(t.content)}function gray(){$require(["cmsAjax"],function(e){var t=window.location.origin+"/ndesigner/api/gray";e.cmsAjax.postJson(t).then(function(e){200==e.code&&($("html")[0].style="filter:progid:DXImageTransform.Microsoft.Basiclmage(grayscale=1);-webkit-filter:grayscale(100%);")})})}function festival(){isFrontEnv()&&$require(["cmsAjax"],function(e){e.cmsAjax.get("/fwebapi/cms/lowcode/festivalPendant/getSettings").then(function(e){var t;e.data&&200==e.data.code&&e.data.settings&&(1==(t=e.data.settings).location&&window.pageObj&&1!=window.pageObj.isHomePage||(e=t.showTime&&2==t.showTime.length&&t.nowTime>=t.showTime[0]&&t.nowTime<=t.showTime[1]||!t.showTime||0==t.showTime.length,t.isOpen&&e&&$require(["/npublic/commonjs/restival.js"],function(e){e.init(t)})))})})}function smartServiceInit(){isFrontEnv()&&$(window).on("mousemove scroll touchmove tap click keydown",function(){var a;hasScroll||(hasScroll=!0,a=function(i){$require(["css!/npublic/commonjs/smartService/t.css","/npublic/commonjs/smartService.js"],function(e,t){var n={};try{n=JSON.parse(i.setting.colorLayout)}catch(e){}1==n.entranceLocation&&(a='\n \n '),$("body").append(a),$(".smartIcon").hover(function(){$(this).css({"background-color":n.windowColor,color:"#fff"})},function(){$(this).css({"background-color":"#fff",color:n.windowColor})})),$(document).on("click","[smartService]",o);var a=sessionStorage.getItem("smartServiceClose");function o(){if(smsShowFun)return 0<$(".smartService.show").length?void smsShowFun.closeDialog():void(smsFlag?smsShowFun.showFun():smsShowFun());var e;smsFlag=!0,smsShowFun=new t(i),window.ZQSensorsObj&&(e={tenantId:tenant.tenantId,iBusinessCode:"01",iBusinessName:"智慧客服业务线",iBusinessCustId:localStorage.getItem("account_".concat(tenant.tenantId))},ZQSensorsObj.track("SmartServiceWakeUp",e))}1==n.showFlag&&i&&"true"!=a&&o()})},$require(["cmsAjax"],function(e){var t=__ce.smartServiceUrl||"http://web-visitor.yun300.cn",n="".concat(t,"/visitormanager/intelligent/front/checkAndRegister?tenantId=").concat(tenant.tenantId,"&instance=").concat(tenant.bossProductInstance),t={account:localStorage.getItem("account_".concat(tenant.tenantId))};e.cmsAjax.postJson(n,t).then(function(e){200==e.status&&e.data&&(localStorage.setItem("account_".concat(tenant.tenantId),e.data.account),a(e.data))})}))})}function preventFish(){var e=location.hostname,t=getCookie("realhost")||"";t&&t!=e&&(t="/repository/cheat?req="+e+"&rel="+t,$.ajax({url:t}))}function wxShare(){$require(["cmsAjax","/npublic/commonjs/jweixin/jweixin.js","pl_util"],function(e){var t={pageUrl:location.href,appCode:pageObj.appId,tid:pageObj.contentType,pageType:pageObj.pageType,isHomePage:pageObj.isHomePage,pageId:pageObj.pageId,contentId:pageObj._detailId,pageName:pageObj.name};e.cmsAjax.postJson("/fwebapi/cms/api/tdk/getWxShareInfo",t).then(function(e){var t,n,a,o=e.data;o.data&&(o=o.data),o.wxJsConfig&&(t=o.wxJsConfig,a=o.wxShareContent,n={title:a.title,desc:a.desc,link:location.href,imgUrl:(e=$.handleDataImg(a.imgUrl),o=104,a=-1