(function(){function O(){com.kingdee.bos.qing.framework.common.AbstractRemoteCall.call(this);var a,b;this.getRemoteUrl=function(e){b&&(e.dashboardUniqueId=b);return a};this.setRemoteUrl=function(e){a=e};this.setDashboardUniqueId=function(e){b=e}}function P(){var a=this;this.getParamLanguage=function(){return a.getUrlParam("language")};this.getParamPathPrefix=function(){return a.getUrlParam("path")};this.getUrlParam=function(b){return com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,
b)}}function G(){var a,b,e,q,c;(function(){var g=com.kingdee.bos.qing;a=g.CodeLoader;g=com.kingdee.bos.qing.framework.common;b=g.WebPageInitializer;e=g.WindowResizeObserver;q=g.FontLibSupporter;g=com.kingdee.bos.qing.core;c=g.UserOperationReporter})();var m=this,z=new P,x,r;this.getRemoteImpl=function(){x||(x=new O,x.setRemoteUrl(m.protectedGetRemoteUrl()),x.setDashboardUniqueId(m.protectedGetDashboardUniqueId()));return x};this.preload=function(g){a.setCallback(function(){q.setupWebPage(g)});v.CommonCodeImporter.importDashboardDesignerSkin(a);
v.CommonCodeImporter.importDashboardDesignerI18n(a);var p=a.createSafety();m.protectedImportMoreCode(p);p.load()};this.start=function(){C();m.protectedCustomInitEnv();m.protectedRegisterImplements(com.kingdee.bos.qing.dsb.IntegrationRegister);var g=$(document.body);g.css("overflow","hidden");r=m.protectedCreateMain();var p=r.createJqUi();p.css("z-index",1);p.appendTo(g);r.resize();m.protectedLoading(m.getRemoteImpl(),r,function(y){m.protectedAfterLoaded(y,r)})};this.protectedCreateMain=function(){throw Error("Override");
};var C=function(){b.init();c.hookCollector(function(p,y){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(p,y)});u();var g=new e;g.setCallbackImmediately(function(){u()});g.setDelay(250);g.setCallback(function(){r.resize()});g.observe()},u=function(){document.body.style.height=document.documentElement.clientHeight+"px"};this.protectedGetRemoteUrl=function(){throw Error("Override");};this.protectedGetDashboardUniqueId=function(){throw Error("Override");};this.protectedImportMoreCode=
function(g){};this.protectedCustomInitEnv=function(){};this.protectedRegisterImplements=function(g){throw Error("Override");};this.protectedLoading=function(g,p,y){throw Error("Override");};this.protectedAfterLoaded=function(g,p){};this.protectedMethod={getUrlParamUtil:function(){return z},reload:function(){m.protectedLoading(m.getRemoteImpl(),r,function(g){})}}}function D(){this.setSkinName=function(a){throw Error("Override");};this.setRemoteTag=function(a){throw Error("Override");};this.setExecutedListener=
function(a){throw Error("Override");};this.show=function(a){throw Error("Override");};this.setJsonModelBook=function(a,b,e){throw Error("Override");};this.executeWithoutRendering=function(a,b){throw Error("Override");};this.reExecute=function(){throw Error("Override");};this.redraw=function(){throw Error("Override");};this.displayError=function(a,b){throw Error("Override");};this.setBlocking=function(a){throw Error("Override");};this.destroy=function(){throw Error("Override");};this.executeOutputParamValue=
function(a,b,e,q){throw Error("Override");};this.setFilteringListener=function(a){throw Error("Override");};this.displayActionPrompt=function(a,b){throw Error("Override");}}function H(){var a;this.setLongerDesignerOperationJudgerGetter=function(b){a=b};this.protectedLoadDesignerOperationJudger=function(b){var e=a();b(e)}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&
(com.kingdee.bos.qing={});var v=com.kingdee.bos.qing;v.AbstractDashboardDesignerScene=function(){G.call(this);var a=this;this.protectedCreateMain=function(){var b=new com.kingdee.bos.qing.dsb.ui.Designer;b.setRemoteImpl(a.getRemoteImpl());a.protectedInitDesigner(b);return b};this.protectedInitDesigner=function(b){};this.protectedAfterLoaded=function(b,e){!b&&e.born()}};v.AbstractDashboardExhibitionScene=function(){var a=com.kingdee.bos.qing.common.FullScreenHelper,b=com.kingdee.bos.qing.common.DomUtil,
e=com.kingdee.bos.qing.framework.common.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.dsb.ui),q=com.kingdee.bos.qing.ui.component.Label,c=com.kingdee.bos.qing.ui.component.WorkButton,m=com.kingdee.bos.qing.dsb.Facade,z=com.kingdee.bos.qing.dsb.widget.ExhibitionModePanel,x=com.kingdee.bos.qing.dsb.ui.CornerMenu;G.call(this);var r=this,C=this.protectedMethod,u,g=!1,p=!1,y,B,I=18E5;this.protectedCreateMain=function(){var d=new com.kingdee.bos.qing.dsb.ui.Executor;d.setCachedExhibitionMode(J());
d.setRemoteImpl(r.getRemoteImpl());d.setUiCreatedAnnouncer(function(){setTimeout(function(){u.setup($(document.body),128)},0)});return d};this.protectedAfterLoaded=function(d,h){u||(u=new x,u.setMenuItem(0,"","",Q),u.setMenuItem(1,"refresh",e.get("refresh","\u5237\u65b0"),function(){h.hasSlideshow()&&(p=!1,E());C.reload()}),h.hasSlideshow()&&(u.setMenuItem(2,"","",function(){p=!p;h.slideshowPause(p);E()},!0),E()),u.setMenuItem(3,"info",e.get("about","\u5173\u4e8e")+"...",function(){R(h)}),K(),a.addChangedListener(function(f){null==
f?g=!1:f==document.body&&(g=!0);K();g?(L(),h.reparseRelativeDate()&&F(h)):(clearTimeout(y),B&&clearTimeout(B))}))};var Q=function(){g?a.exit():a.request(document.body)},L=function(){S();y=setTimeout(L,6E5)},S=function(){(new m(r.getRemoteImpl(),function(d){},function(d,h,f){console.error("keepAlive() error. ErrorCode:"+d+". "+h);return!0})).runtimeKeepAlive()},F=function(d){B&&clearTimeout(B);B=setTimeout(function(){d.reparseRelativeDate()&&F(d)},I)},K=function(){var d=g?"quitFullscreen":"fullscreen",
h=g?e.get("exitFullScreen","\u9000\u51fa\u5168\u5c4f"):e.get("requestFullScreen","\u5168\u5c4f");u.setMenuItem(0,d,h,null)},E=function(){var d=p?"play":"pause",h=p?e.get("play","\u7ee7\u7eed\u8f6e\u64ad"):e.get("pause","\u6682\u505c\u8f6e\u64ad");u.setMenuItem(2,d,h,null)},R=function(d){var h=new x.ConfigDialog;h.setContextCreator(function(f){r.protectedLoadDashboardInfo(f)});h.setEnvCreator(function(f){f.text(d.getEnvironmentDescription());T(f,d)});h.setPersonalizationCreator(function(f){U(f,d)});
h.show(e.get("about","\u5176\u5b83"),u)};this.protectedLoadDashboardInfo=function(d){d.text("...");setTimeout(function(){d.text("TODO")},1E3)};var T=function(d,h){d.on("dblclick",function(f){if(3>f.offsetX&&3>f.offsetY){var l=$("<textarea style='width:420px;height:80px'>");f=$("<button>Run</button>");d.append(l);d.append(f);f.on("click",function(n){n=l.val();(new Function("var oTester = arguments[0];"+n))({changeRelativeDateTestableCurrentTime:function(k){var t=new m(r.getRemoteImpl(),function(w){console.log(JSON.stringify(w))});
k=k?(new Date(k)).getTime():null;t.changeTestableCurrentTimeForRelativePeriod(k)},changeRelativeDateReparseInterval:function(k){I=1E3*k;F(h)}})})}})},J=function(){var d=(new Date).getTime(),h=d-864E7,f=null,l=window.localStorage.getItem("kd.qing.dsb.ExhibitionScene.layout");if(l){var n=!1,k=r.protectedGetDashboardUniqueId();l=JSON.parse(l);for(var t=l.length-1;0<=t;t--){var w=l[t],A=w.lastTime;w.id==k?(f=w.layout,w.lastTime=d,n=!0):A<h&&(l.splice(t,1),n=!0)}n&&(0==l.length?window.localStorage.removeItem("kd.qing.dsb.ExhibitionScene.layout"):
window.localStorage.setItem("kd.qing.dsb.ExhibitionScene.layout",JSON.stringify(l)))}return f},M=function(d){var h=d?!1:!0,f=null,l=r.protectedGetDashboardUniqueId(),n=window.localStorage.getItem("kd.qing.dsb.ExhibitionScene.layout");if(n){var k=JSON.parse(n);for(n=k.length-1;0<=n;n--){var t=k[n];if(t.id==l){f=t;h&&k.splice(n,1);break}}}h?k&&(0==k.length?window.localStorage.removeItem("kd.qing.dsb.ExhibitionScene.layout"):window.localStorage.setItem("kd.qing.dsb.ExhibitionScene.layout",JSON.stringify(k))):
(f||(f={},f.id=l,!k&&(k=[]),k.push(f)),f.layout=d,f.lastTime=(new Date).getTime(),window.localStorage.setItem("kd.qing.dsb.ExhibitionScene.layout",JSON.stringify(k)))},U=function(d,h){var f=h.getFreshExhibitionMode(),l=J();!l&&(l=f);var n=new q(e.get("layout","\u6309\u53ef\u89c6\u753b\u9762\u8c03\u6574")),k=new c;k.setText(e.get("reset","\u91cd\u7f6e"));k.addActionListener(function(A){k.setEnabled(!1);M(null);t.setSelection(f);h.updateLayoutAdapter(f)});k.setEnabled(l!=f);var t=new z;t.addSelectionChangedListener(function(A){var N=
A==f;k.setEnabled(!N);M(N?null:A);h.updateLayoutAdapter(A)});var w=t.createJqUi();t.setSelection(l);b.layoutCtrl(n.getJqUi(),20,10,100,23);b.layoutCtrl(k.getJqUi(),320,10,80,23);b.layoutCtrl(w,20,50,400,100);d.append(n.getJqUi());d.append(k.getJqUi());d.append(w)}};v.DashboardSquareScene=function(){D.call(this);v.AbstractSquareDivScene.call(this);var a,b=!0,e,q;this.protectedLoadingImpl=function(c){a=c};this.setJsonModelBook=function(c,m,z){return a(c,m,z)};this.setBlocking=function(c){b=c};this.protectedBlockingAllFrame=
function(){return b?!1:null};this.protectedGetSkinName=function(){return e};this.setSkinName=function(c){e=c};this.protectedDisplayConsumingStatistics=function(c){q(c)};this.setConsumingStatisticsDisplayer=function(c){q=c}};v.DashboardLongerScene=function(){D.call(this);v.AbstractLongerDivScene.call(this);H.call(this);var a,b=!0,e,q;this.protectedLoadingImpl=function(c){a=c};this.setJsonModelBook=function(c,m,z){return a(c,m)};this.setBlocking=function(c){b=c};this.protectedIsBlockingRemoteCall=function(){return b};
this.protectedGetSkinName=function(){return e};this.setSkinName=function(c){e=c};this.protectedDisplayConsumingStatistics=function(c){q(c)};this.setConsumingStatisticsDisplayer=function(c){q=c}};v.AbstractMobileDashboardLongerScene=function(){D.call(this);v.AbstractMobileLongerScene.call(this);H.call(this);var a,b,e,q=!0;this.setRemoteUrl=function(c){a=c};this.protectedGetRemoteUrl=function(){return a};this.setRemoteTag=function(c){b=c};this.protectedGetRemoteTag=function(){return b};this.protectedIsWidthFitting=
function(){return!1};this.protectedIsHeightFitting=function(){return!1};this.setSkinName=function(c){e=c};this.protectedGetSkinName=function(){return e};this.setBlocking=function(c){q=c};this.protectedIsBlockingRemoteCall=function(){return q}}})();
//qingVersionTag: 20250415