"use strict";function gray(){$require(["cmsajax"],function(t){var n=window.location.origin+"/ndesigner/api/gray";t.cmsajax.postjson(n).then(function(t){200==t.code&&($("html")[0].style="filter:progid:dximagetransform.microsoft.basiclmage(grayscale=1);-webkit-filter:grayscale(100%);")})})}function festival(){isfrontenv()&&$require(["cmsajax"],function(t){t.cmsajax.get("/fwebapi/cms/lowcode/festivalpendant/getsettings").then(function(t){var n;t.data&&200==t.data.code&&t.data.settings&&(1==(n=t.data.settings).location&&window.pageobj&&1!=window.pageobj.ishomepage||(t=n.showtime&&2==n.showtime.length&&n.nowtime>=n.showtime[0]&&n.nowtime<=n.showtime[1]||!n.showtime||0==n.showtime.length,n.isopen&&t&&$require(["/npublic/commonjs/restival.js"],function(t){t.init(n)})))})})}function smartservice(){isfrontenv()&&$require(["cmsajax"],function(t){var n=__ce.smartserviceurl||"https://web-visitor.yun300.cn",e="".concat(n,"/visitormanager/intelligent/front/checkandregister?tenantid=").concat(tenant.tenantid,"&instance=").concat(tenant.bossproductinstance),n={account:localstorage.getitem("account_".concat(tenant.tenantid))};t.cmsajax.postjson(e,n).then(function(n){200==n.status&&n.data&&(n.data.account&&localstorage.setitem("account_".concat(tenant.tenantid),n.data.account),$require(["/npublic/commonjs/smartservice.js"],function(t){t.init(n.data)}))})})}window.pageobj&&1==window.pageobj.ishomepage&&gray(),festival(),smartservice();