var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(r,p,t){if(r==Array.prototype||r==Object.prototype)return r;r[p]=t.value;return r};
$jscomp.getGlobal=function(r){r=["object"==typeof globalThis&&globalThis,r,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var p=0;p<r.length;++p){var t=r[p];if(t&&t.Math==Math)return t}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(r,p){var t=$jscomp.propertyToPolyfillSymbol[p];if(null==t)return r[p];t=r[t];return void 0!==t?t:r[p]};$jscomp.polyfill=function(r,p,t,E){p&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(r,p,t,E):$jscomp.polyfillUnisolated(r,p,t,E))};
$jscomp.polyfillUnisolated=function(r,p,t,E){t=$jscomp.global;r=r.split(".");for(E=0;E<r.length-1;E++){var y=r[E];if(!(y in t))return;t=t[y]}r=r[r.length-1];E=t[r];p=p(E);p!=E&&null!=p&&$jscomp.defineProperty(t,r,{configurable:!0,writable:!0,value:p})};
$jscomp.polyfillIsolated=function(r,p,t,E){var y=r.split(".");r=1===y.length;E=y[0];E=!r&&E in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var F=0;F<y.length-1;F++){var b=y[F];if(!(b in E))return;E=E[b]}y=y[y.length-1];t=$jscomp.IS_SYMBOL_NATIVE&&"es6"===t?E[y]:null;p=p(t);null!=p&&(r?$jscomp.defineProperty($jscomp.polyfills,y,{configurable:!0,writable:!0,value:p}):p!==t&&(void 0===$jscomp.propertyToPolyfillSymbol[y]&&(t=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[y]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(y):$jscomp.POLYFILL_PREFIX+t+"$"+y),$jscomp.defineProperty(E,$jscomp.propertyToPolyfillSymbol[y],{configurable:!0,writable:!0,value:p})))};
$jscomp.polyfill("String.prototype.replaceAll",function(r){return r?r:function(p,t){if(p instanceof RegExp&&!p.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return p instanceof RegExp?this.replace(p,t):this.replace(new RegExp(String(p).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),t)}},"es_2021","es3");
(function(){function r(g){var u,z,q,n,D,K,c,f,m,e,d,v=!0,k=!1,G=!1,H,C,M="icon_nodata",N="12px";this.setShowErrorDetailListener=function(a){H=a};this.setIsQingreportDsbComponent=function(a){G=a};this.setIsDsbComponent=function(a){k=a};this.show=function(a,w,x){u?ba(a,w,x):Z(a,w,x)};this.setShowDetail=function(a){v=a};this.getShowOperate=function(){return d};this.setBackgroundIcon=function(a){M=a};this.setFontSize=function(a){N=a};var Z=function(a,w,x){u=$("<div>");u.text("loading...");u.appendTo(g);
V.setCallback(function(){ia();ba(a,w,x)});V.loadSkinCss("scene","common-square-exhibition")},ia=function(){u.empty();u.addClass("carderror-errorprompt");!k&&u.css("top","22px");z=$("<div>");z.css({position:"absolute",margin:"0px auto",width:"100%",height:"100%"});z.appendTo(u);var a=$("<iframe>");a.addClass("carderror-errorprompt-size-listener");a.appendTo(u);a[0].contentWindow&&a[0].contentWindow.addEventListener("resize",function(){ca()});q=$("<div>");q.addClass("carderror-errorprompt-img");y.Icons.background(q,
M);q.appendTo(z);K=$("<div>");K.addClass("carderror-errorprompt-errorinfo");K.appendTo(z);n=$("<span>");n.addClass("carderror-errorprompt-text");n.css("font-size",N);n.appendTo(K);D=$("<span>");D.addClass("carderror-errorprompt-error-btn");D.text(b.get("showErrorLog","\u663e\u793a\u9519\u8bef\u65e5\u5fd7"));D.appendTo(K)},ba=function(a,w,x){var l;if(2101001==a){d=l=!1;var h=b.get("themeIsDeleted","\u5bf9\u5e94\u4e3b\u9898\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")}else if(2101002==a||2101003==
a||2101004==a||2101005==a)d=l=!1,h=b.get("themeHasNoData","\u5bf9\u5e94\u4e3b\u9898\u6ca1\u6709\u5b9a\u4e49\u6570\u636e");else if(2103001==a||2103002==a)d=l=!1,h=b.get("componentSourceHasNotFound","\u8be5\u7ec4\u4ef6\u6765\u6e90\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664");else if(2101016==a)d=l=!1,h=b.get("subjectEntityMySQLMoreThan61Table","\u5f53\u524d\u5b9e\u4f53\u5173\u8054\u6570\u636e\u8868\u592a\u591a\uff0c\u8bf7\u51cf\u5c11\u5b9e\u4f53\u7684\u5206\u6790\u5b57\u6bb5\u6216\u5220\u9664\u4e0d\u9700\u8981\u7684\u5b9e\u4f53\u5206\u5f55\u3002");
else if(2101009==a)l=!0,d=!1,h=b.get("subjectDataSourceError","\u6570\u636e\u6e90\u53d1\u751f\u5f02\u5e38");else if(2101010==a)d=l=!1,h=b.get("qingStorageFileSizeLimit","\u8f7b\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3");else if(2100001==a)d=l=!1,h=b.get("qingStorageNoSpace","\u78c1\u76d8\u7a7a\u95f4\u4e0d\u8db3\uff0c\u8bf7\u8054\u7cfb\u8fd0\u7ef4\u4eba\u5458\u6dfb\u52a0\u78c1\u76d8");else if(2101011==a)l=!0,d=!1,h=b.get("subjectDBDataSourceError","\u6570\u636e\u6e90\u5bf9\u5e94\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5f02\u5e38");
else if(2101012==a)h=b.get("noDBCenterPermission","\u6ca1\u6709\u6570\u636e\u4e2d\u5fc3\u6743\u9650\uff0c\u8bf7\u5148\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650");else if(2101023==a)h=b.get("noSuperQueryAuth","\u6ca1\u6709\u5f53\u524d\u8d85\u7ea7\u67e5\u8be2\u6a21\u5f0f\u7684\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650");else if(2101013==a||2101014==a)h=b.get("entityDestroyed","\u5bf9\u5e94\u4e3b\u9898\u7684\u6570\u636e\u8868\u88ab\u635f\u574f");else if(2101015==
a)h=b.get("noDBCenterOwnerPermission","\u53d1\u5e03\u4eba\u201c#1\u201d\u6ca1\u6709\u6570\u636e\u4e2d\u5fc3\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",w);else if(2101021==a)h=b.get("notExistTable","\u65e0\u6cd5\u5728\u6a21\u5f0f\u201c#1\u201d\u4e2d\u627e\u5230\u8be5\u5b9e\u4f53\u6570\u636e\u8868").replaceAll("#1",w);else if(2101022==a)h=b.get("noSuperQueryPerm","\u53d1\u5e03\u4eba\u201c#1\u201d\u6ca1\u6709\u8d85\u7ea7\u67e5\u8be2\u76f8\u5173\u6a21\u5f0f\u7684\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",
w);else if(2101024==a)h=b.get("ownerNotExistTable","\u6570\u636e\u6e90\u5f02\u5e38\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6570\u636e\u6e90");else if(2101025==a)h=b.get("prepareDataReject","\u8be5\u5361\u7247\u5bf9\u5e94\u7684\u4e1a\u52a1\u4e3b\u9898\u56e0\u5b58\u5728\u6162\u67e5\u8be2\uff0c\u5df2\u88ab\u4e34\u65f6\u7981\u7528\u3002\u8bf7\u8054\u7cfb\u201c#1\u201d\u5904\u7406\u3002").replace("#1",w);else if(2215011==a)h=b.get("noDmoPermission","\u6ca1\u6709\u6570\u636e\u5f00\u53d1\u5e73\u53f0\u6743\u9650\uff0c\u8bf7\u5148\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650");
else if(2215012==a)h=b.get("noDmoOwnerPermission","\u53d1\u5e03\u4eba\u201c#1\u201d\u6ca1\u6709\u6570\u636e\u5f00\u53d1\u5e73\u53f0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",w);else if(2215020==a)h=b.get("dmoPermission","\u6ca1\u6709\u6570\u636e\u5f00\u53d1\u5e73\u53f0#1\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",w);else if(2301001==a)d=l=!1,h=k||G?b.get("componentSourceHasNotFound","\u8be5\u7ec4\u4ef6\u6765\u6e90\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664"):
b.get("cardHasNotFound","\u8be5\u5361\u7247\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664");else if(2301005==a)d=l=!1,h=k?b.get("componentSourceNoAuthority","\u6ca1\u6709\u8be5\u7ec4\u4ef6\u6765\u6e90\u7684\u67e5\u770b\u6743\u9650"):G?b.get("extreportCardNoAuthority","\u6ca1\u6709\u8be5\u8f7b\u62a5\u8868\u7684\u67e5\u770b\u6743\u9650"):b.get("cardNoAuthority","\u6ca1\u6709\u8be5\u5361\u7247\u7684\u67e5\u770b\u6743\u9650");else if(2105E3==a)d=l=!1,h=b.get("cardHasNotFound","\u8be5\u5361\u7247\u5df2\u88ab\u5220\u9664");
else if(2201003==a)d=l=!1,h=b.get("cardNoDefaultSchema","\u8be5\u5361\u7247\u6ca1\u6709\u5b9a\u4e49\u9ed8\u8ba4\u65b9\u6848");else if(909001==a)d=l=!1,h=b.get("unsupportedDsbRefSource","\u5f53\u524d\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u7ec4\u4ef6\u6765\u6e90");else if(3010002==a)d=l=!1,h=b.get("illegalLicense","\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u5206\u6790\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3010003==
a)d=l=!1,h=b.get("noQingModulePermission","\u60a8\u6240\u4f7f\u7528\u7684\u8d26\u6237\u6ca1\u6709\u88ab\u5206\u914d\u3010\u8f7b\u5206\u6790\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3010004==a)d=l=!1,h=b.get("replicatedLogin","\u60a8\u7684\u8d26\u53f7\u5728\u5176\u4ed6\u5730\u65b9\u767b\u5f55\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55\u5f53\u524d\u7cfb\u7edf\u3002");else if(3010005==a)d=l=!1,h=b.get("illegalQingReportLicense",
"\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u62a5\u8868\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3010006==a)d=l=!1,h=b.get("noQingReportModulePermission","\u60a8\u6240\u4f7f\u7528\u7684\u8d26\u6237\u6ca1\u6709\u88ab\u5206\u914d\u3010\u8f7b\u62a5\u8868\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3099002==a)d=l=!1,h=b.get("qingRuntimeException",
"\u7a0b\u5e8f\u53d1\u751f\u9519\u8bef");else if(3001002==a)d=l=!0,h=b.get("qingRuntimeException","\u7a0b\u5e8f\u53d1\u751f\u9519\u8bef");else if(1030001==a)d=l=!1,h=w;else if("unsetCardSource"==a)d=l=!1,h=b.get("unsetCardSource","\u8bf7\u9009\u62e9\u5361\u7247\u6765\u6e90");else if(8099001==a)d=l=!1,h=b.get("extreportNotFound","\u8be5\u62a5\u8868\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664");else if(21000008==a)d=l=!1,h=b.get("noQingModelerLicense","\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u5efa\u6a21\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb");
else if(2101006==a)d=!1,(h=w.match(/(\(|\uff08)([^(\)|\uff09)]+)(\)|\uff09)/))&&(w=h[2]),C=$("<p>"),C.addClass("carderror-errorprompt-support-qing-text"),C.html(w.replace(/,/g,b.get("semicolon","\uff1b")+"<br>")),k?(l=!0,h=b.get("haveNotGetDataEntityAuthority","\u5c1a\u672a\u83b7\u5f97\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650"),D.text(b.get("viewDetails","\u67e5\u770b\u8be6\u60c5"))):(l=!1,h=b.get("noAuthorityForTheseEntities","\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a")),
n.text(h),!l&&n.append(C);else if(2101018==a){d=!1;l=P.getSupportQingAnalysisUrl();(h=/(?:\u3010\s)(.+)(?=\s\u3011)/.exec(w))&&(w=h[1]);var Q=$("<a onclick='javascript:window.open(\""+l+"\");' href='#'>");Q.css({cursor:"pointer",color:"#5582f3"});Q.text(b.get("viewDocument","\u67e5\u770b\u5e2e\u52a9\u6587\u6863"));C=$("<p>");C.addClass("carderror-errorprompt-support-qing-text");C.html(w.replace(/,/g,b.get("semicolon","\uff1b")+"<br>"));k?(l=!0,h=b.get("entityNotSupportQingAnalysis","\u4e1a\u52a1\u5b9e\u4f53\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff0c\u8bf7\u5728\u5f00\u53d1\u5e73\u53f0\u7684\u5bf9\u5e94\u8868\u5355\u4e2d\u8fdb\u884c\u8bbe\u7f6e  "),
D.text(b.get("viewDetails","\u67e5\u770b\u8be6\u60c5"))):(l=!1,h=b.get("notSupportQingAnalysisTip","\u4ee5\u4e0b\u4e1a\u52a1\u5b9e\u4f53\u5c1a\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff0c\u8bf7\u5728\u5f00\u53d1\u5e73\u53f0\u7684\u5bf9\u5e94\u8868\u5355\u4e2d\u8fdb\u884c\u8bbe\u7f6e  "),u.css("overflow-y","auto"),K.css("max-height","unset"));n.text(h);n.append(Q);!l&&n.append(C)}else 4040002==a||4040003==a||4040004==a?(d=l=!0,h=b.get("serverBusy","\u5f53\u524d\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002")):
4100001==a?(d=l=!0,h=b.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25")):(d=l=!0,h=a+"",h=0==h.indexOf("21")&&7==h.length?b.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25"):0==h.indexOf("30")&&6==h.length?b.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25"):0==h.indexOf("40")&&6==h.length?b.get("executeFail","\u56fe\u8868\u6267\u884c\u5931\u8d25"):b.get("unknownException","\u53d1\u751f\u4e86\u672a\u77e5\u9519\u8bef"));l&&v?(D.show(),D.on("click",function(S){ja(a,
w,x)})):D.hide();2101018!=a&&2101006!=a&&n.text(h);setTimeout(ca,500)},ca=function(){var a=u.height()-2;u.width();if(0!=a){var w=K.height()+10,x=a-w;70>x?(q.hide(),x=0):(q.show(),200<x&&(x=200),q.css("height",x+"px"));K.css("min-height","unset");z.css({"margin-top":-Math.floor((x+w)/2)+"px",top:"50%",height:x+w+"px"});0>a-w&&(u.css("overflow-y","auto"),u.css("overflow-x","auto"))}},ja=function(a,w,x){if(2101006==a){var l=new da($(document.body));l.setSize(440,330);l.setTitle(b.get("permissionTitle",
"\u6743\u9650\u63d0\u793a"));l.showDialog(ea(b.get("noAuthorityForTheseEntities","\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a"),C),!0)}else if(2101018==a)l=new da($(document.body)),l.setSize(440,330),l.setTitle(b.get("DetailInfo","\u8be6\u7ec6\u4fe1\u606f")),l.showDialog(ea(b.get("notSupportQingAnalysis","\u4ee5\u4e0b\u4e1a\u52a1\u5b9e\u4f53\u5c1a\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff1a"),C),!0);
else if(H)H(a,w,x);else{if(!c){c=$("<div>");c.addClass("carderror-errorprompt-logdetail-container");l=$("<div>");l.addClass("carderror-errorprompt-logdetail-container-title");var h=$("<div>");h.addClass("carderror-errorprompt-logdetail-titiletag");var Q=$("<div>");Q.addClass("carderror-errorprompt-logdetail-title-lable");Q.text(b.get("errorLog","\u9519\u8bef\u65e5\u5fd7"));var S=$("<div>");S.addClass("carderror-errorprompt-logdetail-close");y.Icons.background(S,"icon_errorclose");S.on("click",ka);
l.append(h);l.append(Q);l.append(S);m=$("<div>");m.css("padding","10px");m.text(b.get("errorCode","\u9519\u8bef\u7801\uff1a")+a);e=$("<pre>");e.addClass("carderror-errorprompt-logdetail-content-container-text");e.text("\u9519\u8bef\u4fe1\u606f\uff1a"+w+(null!=x?"\r\n\u9519\u8bef\u6808\uff1a"+x:""));var O=$("<div>");O.addClass("carderror-errorprompt-logdetail-content-container");var T=$("<span>");T.text(b.get("copy","\u590d\u5236"));T.addClass("carderror-errorprompt-logdetail-content-copybutton");
T.click(function(){var Y=la("\u9519\u8bef\u7801\uff1a"+a+"\r\n\u9519\u8bef\u4fe1\u606f\uff1a"+w+"\r\n\u9519\u8bef\u6808\uff1a"+x),J=$("<span>");J.addClass("carderror-errorprompt-logdetail-content-copybutton-end");O.append(J);Y?J.text(b.get("copy success!","\u590d\u5236\u6210\u529f\uff01")):J.text(b.get("copy error!","\u590d\u5236\u5931\u8d25\uff01"));setTimeout(function(){J.remove()},1500)});O.mouseover(function(){T.css("visibility","visible")});O.mouseout(function(){T.css("visibility","hidden")});
O.append(m);O.append(e);O.append(T);c.append(l);c.append(O);f=$("<div class='sa-ctrl-common-modallayer'>");c.appendTo(f)}l=$(document.body);f.appendTo(l)}},la=function(a){var w=document.createElement("textarea");document.body.appendChild(w);w.value=a;w.select();a=document.execCommand("copy");document.body.removeChild(w);return a},ea=function(a,w){var x=$("<div>");x.addClass("carderror-errorprompt-logdetail-content");var l=$("<p>");l.addClass("carderror-errorprompt-logdetail-contenxt-texttitle");l.text(a);
a=$("<p>");a.addClass("carderror-errorprompt-logdetail-contenxt-text");a.html(w);x.append(l);x.append(a);return x},da=function(a){var w=$("<div class='sa-ctrl-common-modallayer'>"),x=new A(w),l=0,h=0,Q=320,S=240,O=a?a:$(document.body),T,Y;this.setTitle=function(J){Y=J};this.setClosingListener=function(J){T=J};this.setSize=function(J,U){Q=J;S=U};this.showDialog=function(J,U){w.appendTo(O);if(!l){var X=O.prop("clientWidth"),fa=O.prop("clientHeight");l=X-Q>>1;h=(fa-S)/3}x.setBounds(l,h,Q,S);x.setToolbarVisible(!1);
x.setContent(J,U);x.setTitle(Y);x.addClosingListener(function(aa,ha){if(ha)T(ha);else return aa.destroy(),w.remove(),!0});x.addClosedListener(function(aa){aa.destroy();w.remove()});x.showFooterPane(this.createFooter);x.show()};this.setContent=function(J,U){x.setContent(J,U)};this.destroy=function(){x.destroy();w.remove()};this.createFooter=function(J){var U=new I(b.get("iknow","\u6211\u77e5\u9053\u4e86"));U.setHighlight(!0);var X=U.getJqUi();B.layoutCtrlWithLRTB(X,"50%",0,100,null,13,28);X.addClass("dialog-footer-close");
X.css("margin-left","-50px");X.appendTo(J);U.addActionListener(function(fa){x.destroy();w.remove()})}},ka=function(){f&&f.detach()}}function p(){var g,u,z;this.setIsSquare=function(q){g=q};this.getIsSquare=function(){return g};this.setLoadSchema=function(q){u=q};this.getLoadSchema=function(){return u};this.setSaveSchema=function(q){z=q};this.getSaveSchema=function(){return z}}function t(){R.call(this);this.protectedShowErrorImpl=function(g,u,z,q){g=new r(g);g.setIsDsbComponent(!0);g.show(u,z,q);return!0}}
function E(){W.call(this);this.protectedShowErrorImpl=function(g,u,z,q){g=new r(g);g.setIsDsbComponent(!0);g.show(u,z,q);return!0}}"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={});"undefined"==typeof com.kingdee.bos.qing.scene&&(com.kingdee.bos.qing.scene={});"undefined"==typeof com.kingdee.bos.qing.scene.common&&(com.kingdee.bos.qing.scene.common=
{});"undefined"==typeof com.kingdee.bos.qing.scene.common.square&&(com.kingdee.bos.qing.scene.common.square={});"undefined"==typeof com.kingdee.bos.qing.scene.common.square.exhibition&&(com.kingdee.bos.qing.scene.common.square.exhibition={});var y=com.kingdee.bos.qing.scene.common.square.exhibition,F,b,V,R,W,L,P,A,I,B;(function(){var g=com.kingdee.bos.qing.framework.common;F=g.AbstractIcons;b=g.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);P=P=g.OfficialArticleUtil;g=com.kingdee.bos.qing;
V=g.CodeLoader;R=g.DashboardSquareScene;W=g.DashboardLongerScene;g=com.kingdee.bos.qing.ui.component;L=g.MessageDialog;A=g.Dialog;I=g.Button;g=com.kingdee.bos.qing.common;B=g.DomUtil})();y.Icons=new function(){F.call(this);var g=this.protectedMethod,u;this.setComboIconImpl=function(z){u=z};this.protectedInit=function(z,q){if(!u)throw Error("Please setComboIconImpl() first.");u.define(q,"scene-error-image-sprite");q.setStartPosition(1,1);q.setGap(1);q.setIconSize(20,20);g.registIcon(0,0,"icon_qhfInfo");
g.registIcon(0,1,"icon_errorclose");u.define(q,"errorbackground");q.setStartPosition(0,0);q.setGap(0);q.setIconSize(200,200);g.registIcon(0,0,"icon_errorbackground");u.define(q,"nodata");g.registIcon(0,1,"icon_nodata")}};y.CardErrorUi=r;y.DsbIntegrationScene=function(){var g,u,z,q,n;this.setResetSquare=function(f){q=f};this.setFacade=function(f){z=f};this.setParamPathPrefix=function(f){};this.setMessageCurtain=function(f){u=f};this.setCoreRemoteUrl=function(f){g=f};this.setDesignerSceneCreator=function(f){n=
f};this.createSquareDesignerScene=function(f){var m=new t;m.setRemoteUrl(g);f(m)};this.createLongerDesignerScene=function(f){var m=new E;m.setRemoteUrl(g);f(m)};this.loadImage=function(f,m,e){var d=f.refToId;d&&0!=$.trim(d).length?(f=z(function(v){var k=v.imageHeight;v=v.imageWidth;if(k||v){var G=com.kingdee.bos.qing.framework.common.RemoteFramework.getLoadImgUrl(d,"image-library");m(G,v,k)}else e&&e("")},function(v,k){return!1}),f.setShowBlocking(!1),f.getImageSize(d)):(f=f.widgetSourcePath,e&&e(f))};
this.createSquareDesigner=function(f,m,e,d,v,k){var G=new p;G.setIsSquare(!0);G.setLoadSchema(function(H,C){z(H,C).squareLoadSchema(e)});G.setSaveSchema(function(H,C,M){z(C,M).squareSaveSchema(e,H)});D(G,f,m,e,d,v,k,!0)};this.createLongerDesigner=function(f,m,e,d,v,k,G){var H=new p;H.setIsSquare(!1);H.setLoadSchema(function(C,M){z(C,M).longerLoadSchema(e,G)});H.setSaveSchema(function(C,M,N){z(M,N).longerSaveSchema(e,C)});D(H,f,m,e,d,v,k,!1)};var D=function(f,m,e,d,v,k,G,H){var C=n(),M=function(N){C.hide();
G(N)};C.setIsSquare(f.getIsSquare());C.setRemoteUrl(g);C.setRemoteTag(v);C.setDesignerOperationJudger(k);C.setSquareOrLonger(H);C.setClosable(e);C.setSchemaLoader(function(N,Z){K(f,d,N,Z,M)});C.setSchemaSaver(function(N){c(f,d,N,M)});null!=q&&C.setSchemaReseter(function(N){q(d,N,M)});C.show(m,function(){M(null)})},K=function(f,m,e,d,v){m.uid?f.getLoadSchema()(function(k){k.model?(e.setJsonModelBook(k.model),d(!0)):d(!1)},function(k,G){v();k=k.toString();return"9"==k.substr(0,1)&&6==k.length?(u&&u.showError(b.get("failToLoadSchema",
"\u52a0\u8f7d\u65b9\u6848\u5931\u8d25\u3002")),!0):!1}):d(!1)},c=function(f,m,e,d){var v=e.getJsonModelBook();f.getSaveSchema()(v,function(k){d(v)},function(k,G){if(909002==k)return k=L.createFeedbackDialog(),k.setMessage(b.get("noSelectMapTemplate","\u8bf7\u9009\u62e9\u5730\u56fe\u6a21\u677f")),k.setMsgImageType(L.MSG_WARNING),k.setOptionType(L.OPTION_OK),k.setButtonText(L.OPTION_OK,b.get("iknow","\u6211\u77e5\u9053\u4e86")),k.showDialog(),!0;d();k=k.toString();return"9"==k.substr(0,1)&&6==k.length?
(u&&u.showError(b.get("failToTemporarySchema","\u6682\u5b58\u65b9\u6848\u5931\u8d25\u3002")),!0):!1})}}})();(function(){function r(){E.call(this);var A,I,B,g,u=!0,z,q=!0;this.setIsSquare=function(n){u=n};this.protectedIsSquare=function(){return u};this.protectedInitDesigner=function(n){var D=F.get("save","\u4fdd\u5b58");n.getConductor().insertToolbarButton(function(c){I(n)},"btn_save",D,null);D=new V;var K=new R(function(c){c=new W;c.setText(F.get("resetConfirmTips","\u60a8\u786e\u5b9a\u8981\u91cd\u7f6e\u5230\u53d1\u5e03\u6700\u521d\u59cb\u7684\u72b6\u6001\uff0c\u5e76\u9000\u51fa\u5417\uff1f"));c.setConfirmedListener(function(m){m&&
B(n)});var f=g.getJqUi();c.show(f)});K.setText(F.get("resetAndBack","\u91cd\u7f6e\u5e76\u8fd4\u56de"));D.addItemModel(K);g=n.getConductor().insertToolbarMenu(D,"btn_reset",F.get("reset","\u91cd\u7f6e"),null);n.setDesignerOperationJudger(q?null:z,q?z:null);if(D=window.com.kingdee.bos.qing.AnalysisSceneOuterApi)D.inside.setDirtyChecker(function(){return!1}),D.inside.setBeforeClosing(function(){return P.setTabStatus(!1)})};this.protectedLoading=function(n,D){A(n,D)};this.setSchemaLoader=function(n){A=
n};this.setSchemaSaver=function(n){I=n};this.setSchemaReseter=function(n){B=n};this.setDesignerOperationJudger=function(n){z=n};this.setSquareOrLonger=function(n){q=n};this.protectedIsSquare=function(){return q}}"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={});"undefined"==typeof com.kingdee.bos.qing.scene&&(com.kingdee.bos.qing.scene={});
"undefined"==typeof com.kingdee.bos.qing.scene.common&&(com.kingdee.bos.qing.scene.common={});"undefined"==typeof com.kingdee.bos.qing.scene.common.exhibitioner&&(com.kingdee.bos.qing.scene.common.exhibitioner={});var p=com.kingdee.bos.qing.scene.common.exhibitioner;p.AbstractDashboardExhibitionerSceneImpl=function(){t.call(this);var A=this,I=this.protectedMethod,B,g,u;this.protectedGetRemoteUrl=function(){throw Error("override me");};this.getCoreRemoteUrl=function(){throw Error("override me");};
this.protectedLoading=function(c,f,m){throw Error("override me");};this.squareAnalysisHandler=function(c,f,m){throw Error("override me");};this.protectedImportMoreCode=function(c){c.pushJs("biz-common/qing-biz-common.js");c.pushSkinCss("biz-common","biz-common");c.pushSkinJs("biz-common","skin");c.pushI18n("biz-common","biz-common");c.pushJs("qhf/qing-qhf.js");c.pushJs("common/qing-schedule.js");c.pushJs("schema-manage/schema-manage-initialize.js");c.pushJs("schema-manage/schema-manage-ui.js");c.pushJs("publish/qing-publish.js");
c.pushSkinJs("scene","skin");c.pushI18n("scene","scene");c.pushI18n("dashboard","dsb-integration");c.pushSkinJs("dashboard","skin-dsb-integration");c.pushJs("dashboard/dsb-integration.js");c.pushSkinCss("dashboard","dsb-integration");c.pushSkinJs("map-designer","integration-skin");c.pushJs("map-designer/map-integration.js");c.pushSkinCss("map-designer","map-integration");c.pushI18n("map-designer","map-integration");c.pushSkinJs("linkage","skin");c.pushJs("linkage/linkage.js");c.pushSkinCss("linkage",
"linkage")};this.protectedCustomInitEnv=function(){var c=com.kingdee.bos.qing.map.common.Integration,f=y.decodeParamFromUrl(location.search,"path");f=f?f:"/ierp";c.setRemoteUrl(f+"/qing/mapManage.do");var m=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(v,k){m.setParamPathPrefix(f);m.showDialog(v,k)});c=I.getUrlParamUtil().getUrlParam("publishTargetType");6!=c&&z();var e=com.kingdee.bos.qing.behavior.BehaviorManager;
e.interestInBehaviorEntrance(e.getEntrance(e.ENTRANCE_PUBLISH_DASHBOARD,c));if(5!=c){c=I.getUrlParamUtil().getUrlParam("publishId");var d=y.createUUID();e.initAccessRecordParams(c,d,e.SourceType.QING_PUBLISH,e.AppType.QING);e.setRefuseOperationType([e.OperationType.QING_EXPORT,e.OperationType.QING_PRINT]);e.recordResourceOperation(e.OperationType.QING_VISIT);window.addEventListener("unload",function(){e.recordResourceOperation(e.OperationType.QING_EXIT)})}com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};
var z=function(){var c=I.getUrlParamUtil().getParamPathPrefix();c=(c?c:"/ierp")+"/qing/linkage.do";var f=com.kingdee.bos.qing.integration.LinkageJumper;g=new com.kingdee.bos.qing.linkage.LinkageManage;g.initDesigntime(c,f.jump)};this.protectedRegisterImplements=function(c){var f=I.getUrlParamUtil().getParamPathPrefix(),m=new com.kingdee.bos.qing.scene.common.square.exhibition.DsbIntegrationScene;m.setFacade(function(e,d){return new com.kingdee.bos.qing.dashboard.RuntimeDsbFacade(A.getRemoteImpl(),
e,d)});m.setParamPathPrefix(f);m.setMessageCurtain(D());m.setCoreRemoteUrl(A.getCoreRemoteUrl());m.setResetSquare(q);m.setDesignerSceneCreator(function(){return new r});c.registerSquareSceneCreator(function(e,d){m.createSquareDesignerScene(d)});c.registerBuiltinVisualWidgetEditableConfirmerParser(function(e){var d=e.operation?e.operation:{};e=e.scene;var v=com.kingdee.bos.qing.publish.model.OperType,k=d[v.SQUARE];d=d[v.LONGER];return"square"==e?new com.kingdee.bos.qing.publish.model.RtSquareEditableConfirmerModel(k|
d):"longer"==e?new com.kingdee.bos.qing.publish.model.RtLongerEditableConfirmerModel(d):null});c.registerSquareDesignerCreator(function(e,d,v,k,G,H){g&&g.setCurrentLinkageTag(k);m.createSquareDesigner(e,d,v,k,G,H)});c.registerSquareAnalysisHandler(A.squareAnalysisHandler);c.registerPictrueLoader(function(e,d,v){m.loadImage(e,d,v)});c.registerLongerSceneCreator(function(e,d){m.createLongerDesignerScene(d)});c.registerLongerDesignerCreator(function(e,d,v,k,G,H){g&&g.setCurrentLinkageTag(k);u=I.getUrlParamUtil().getUrlParam("timedPush");
m.createLongerDesigner(e,d,v,k,G,H,u)});f=new com.kingdee.bos.qing.dashboard.qingreport.QingReportExecutor;f.setDsbRemoteImpl(A.getRemoteImpl());c.registerQingReportExecutor(f)};var q=function(c,f,m){(new com.kingdee.bos.qing.dashboard.RuntimeDsbFacade(A.getRemoteImpl(),function(e){D().showSuccess(F.get("resetRefContentSuccess","\u91cd\u7f6e\u5f15\u7528\u6a21\u578b\u5185\u5bb9\u5230\u53d1\u5e03\u72b6\u6001\u6210\u529f\u3002"));m(e.model)},n)).squareResetAndGetPubSchema(c)},n=function(c,f){return 900001==
c?(D().showError(F.get("failToLoadRefContent","\u52a0\u8f7d\u5f15\u7528\u5185\u5bb9\u5931\u8d25\u3002")),!0):900004==c?(D().showError(F.get("dsbContentParseError","\u4eea\u8868\u677f\u6a21\u578b\u5185\u5bb9\u8f6c\u6362\u5931\u8d25\u3002")),!0):900005==c?(D().showError(F.get("refContentParseError","\u5f15\u7528\u6a21\u578b\u5185\u5bb9\u8f6c\u6362\u5931\u8d25\u3002")),!0):301201==c?(D().showError(F.get("extractDataFailToRefresh","\u51c6\u5907\u6570\u636e\u5931\u8d25\uff0c\u8bf7\u5237\u65b0\u51fa\u6570\u636e\u518d\u8fdb\u884c\u8be5\u64cd\u4f5c\u3002")),
!0):!1},D=function(){B||(B=new b,B.getJqUi().appendTo($(document.body)));return B};this.protectedLoadDashboardInfo=function(c){var f=I.getUrlParamUtil().getUrlParam("publishId");f&&(new com.kingdee.bos.qing.dashboard.RuntimeDsbFacade(A.getRemoteImpl(),function(m){var e=y.decodeParamFromUrl(location.search,"path"),d=I.getUrlParamUtil().getUrlParam("publishTargetType"),v=I.getUrlParamUtil().getUrlParam("skin");e=y.appendParamToUrl((e?e:"/ierp")+"/qing/publishEntrance.do","publishId",f);e=y.appendParamToUrl(e,
"publishTargetType",d);e=y.appendParamToUrl(e,"skin",v);e=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(e);K(c,e,m)},function(){})).getPublishUsername(f)};var K=function(c,f,m){var e=new b;e.getJqUi().appendTo(c[0].parentNode.parentNode.parentNode);var d=$("<div>");d.addClass("dsb-desc-publish-user");d.text(F.get("publisher","\u53d1\u5e03\u4eba\uff1a")+m);m=$("<div>");var v=$("<div>");v.addClass("dsb-desc-url-info");v.css({display:"inline-block","vertical-align":"middle"});v.text(F.get("dsbUrlInformation",
"\u4eea\u8868\u677f\u94fe\u63a5"));v.appendTo(m);v=$("<div>");v.addClass("dsb-desc-url");v.css("word-break","break-all");v.text(f);var k=$("<div>");k.addClass("dsb-desc-url-copyIcon");p.Icons.background(k,"copy_icon");k.css({"margin-left":"13px",width:"16px",height:"16px",display:"inline-block","vertical-align":"middle"});k.attr("title",F.get("copy","\u590d\u5236"));k.appendTo(m);k.on("mouseover",function(G){p.Icons.background(k,"copy_icon_hover");k.css("vertical-align","middle")});k.on("mouseout",
function(G){p.Icons.background(k,"copy_icon");k.css("vertical-align","middle")});k.on("click",function(G){try{var H=document.createElement("input");document.body.appendChild(H);H.setAttribute("value",f);H.select();document.execCommand("copy");e.showSuccess(F.get("hasCopied","\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f"));document.body.removeChild(H)}catch(C){e.showError(F.get("copyfailed","\u590d\u5236\u5931\u8d25"))}});d.appendTo(c);m.appendTo(c);v.appendTo(c)};this.protectedCreateVisualWidgetEditableConfirmer=
function(c,f){var m=com.kingdee.bos.qing.publish.model.OperType,e=new com.kingdee.bos.qing.publish.model.RtSquareEditableConfirmerModel(f[m.SQUARE]|f[m.LONGER]);f=new com.kingdee.bos.qing.publish.model.RtLongerEditableConfirmerModel(f[m.SQUARE_LONGER]);e=new com.kingdee.bos.qing.dsb.VisualWidgetEditableConfirmer(e,f);c.setVisualWidgetEditableConfirmer(e)}};var t,E,y,F,b,V,R,W,L,P;(function(){var A=com.kingdee.bos.qing;t=A.AbstractDashboardExhibitionScene;E=A.AbstractModalDesignerScene;A=com.kingdee.bos.qing.common;
y=A.Util;A=com.kingdee.bos.qing.framework.common;F=A.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);L=A.AbstractIcons;A=com.kingdee.bos.qing.ui.component;b=A.MessageCurtain;V=A.MenuModel;R=A.MenuItemModel;W=A.SimpleConfirmer;A=com.kingdee.bos.qing.integration;P=A.TabStatusHelper})();p.Icons=new function(){L.call(this);var A=this.protectedMethod,I;this.setComboIconImpl=function(B){I=B};this.protectedInit=function(B,g){if(!I)throw Error("Please setComboIconImpl() first.");I.define(g,
"tm");g.setGap(1);g.setStartPosition(1,1);g.setIconSize(16,16);A.registIcon(0,10,"copy_icon_hover");A.registIcon(1,10,"copy_icon")}}})();(function(){"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={});"undefined"==typeof com.kingdee.bos.qing.scene&&(com.kingdee.bos.qing.scene={});var r=com.kingdee.bos.qing.scene;r.DashboardExhibitionScene=function(){F.call(this);var b=this.protectedMethod,V=this,R;this.protectedGetRemoteUrl=function(){return P()+"/qing/runtimeDashboard.do"};this.getCoreRemoteUrl=
function(){return P()+"/qing/core.do"};this.protectedGetDashboardUniqueId=function(){return A()};this.protectedLoading=function(B,g,u){var z=b.getUrlParamUtil().getUrlParam("timedPush");(new com.kingdee.bos.qing.dashboard.RuntimeDsbFacade(B,function(q){V.protectedCreateVisualWidgetEditableConfirmer(g,q.operation);(q=q.model)&&g.setJsonModel(q,function(n){n.isError()&&L().showError(t.get("failToLoadDsbCurtain","\u52a0\u8f7d\u4eea\u8868\u677f\u5931\u8d25\u3002"))});u(!0);I()},W)).loadPublishedDsbWithOper(z)};
this.squareAnalysisHandler=function(B,g,u){var z=com.kingdee.bos.qing.SkinUtil.getUrlParamValue(),q=b.getUrlParamUtil().getUrlParam("timedPush"),n=P()+"/qing/publishedDashboardAnalysisEntrance.do";n=p.appendParamToUrl(n,"publishId",A());n=p.appendParamToUrl(n,"tag",u);n=p.appendParamToUrl(n,"ref",JSON.stringify(g));n=p.appendParamToUrl(n,"path",P());n=p.appendParamToUrl(n,"timedPush",q);(g=com.kingdee.bos.qing.Seer.getUrlParamValue("kdcdc"))&&(n=p.appendParamToUrl(n,"kdcdc",g));z&&(n=p.appendParamToUrl(n,
"skin",z));B=t.get("dataAnalysis","\u6570\u636e\u5206\u6790")+(B?"-"+B:"");E.openNewTab(B,n)};var W=function(B,g){return 900001==B?(L().showError(t.get("failToLoadRefContentCurtain","\u52a0\u8f7d\u5f15\u7528\u5185\u5bb9\u5931\u8d25\u3002")),!0):900004==B?(L().showError(t.get("dsbContentParseErrorCurtain","\u4eea\u8868\u677f\u6a21\u578b\u5185\u5bb9\u8f6c\u6362\u5931\u8d25\u3002")),!0):900005==B?(L().showError(t.get("refContentParseErrorCurtain","\u5f15\u7528\u6a21\u578b\u5185\u5bb9\u8f6c\u6362\u5931\u8d25\u3002")),
!0):301201==B?(L().showError(t.get("extractDataFailToRefreshCurtain","\u51c6\u5907\u6570\u636e\u5931\u8d25\uff0c\u8bf7\u5237\u65b0\u51fa\u6570\u636e\u518d\u8fdb\u884c\u8be5\u64cd\u4f5c\u3002")),!0):1030001==B?(com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage(B,com.kingdee.bos.qing.common.Base64Util.encode(encodeURIComponent(g))),!0):!1},L=function(){R||(R=new y,R.getJqUi().appendTo($(document.body)));return R},P=function(){var B=b.getUrlParamUtil().getParamPathPrefix();return B?
B:"/ierp"},A=function(){return b.getUrlParamUtil().getUrlParam("publishId")},I=function(){var B=A();com.kingdee.bos.qing.qhf.QHFSceneExporterRegister.register(B,function(){return{publishId:B,sceneType:com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_PUBLISH_DSB}})}};var p,t,E,y,F;(function(){var b=com.kingdee.bos.qing.common;p=b.Util;b=com.kingdee.bos.qing.framework.common;t=b.MultilanguageManager.createPackageAccessor(r);E=b.TabbedUiUtil;b=com.kingdee.bos.qing.ui.component;y=b.MessageCurtain;b=com.kingdee.bos.qing.scene.common.exhibitioner;
F=b.AbstractDashboardExhibitionerSceneImpl})()})();
//qingVersionTag: 20250807