var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var c=0;return function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$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(a,c,d){if(a==Array.prototype||a==Object.prototype)return a;a[c]=d.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<a.length;++c){var d=a[c];if(d&&d.Math==Math)return d}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(a,c){var d=$jscomp.propertyToPolyfillSymbol[c];if(null==d)return a[c];d=a[d];return void 0!==d?d:a[c]};
$jscomp.polyfill=function(a,c,d,e){c&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,c,d,e):$jscomp.polyfillUnisolated(a,c,d,e))};$jscomp.polyfillUnisolated=function(a,c,d,e){d=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var g=a[e];if(!(g in d))return;d=d[g]}a=a[a.length-1];e=d[a];c=c(e);c!=e&&null!=c&&$jscomp.defineProperty(d,a,{configurable:!0,writable:!0,value:c})};
$jscomp.polyfillIsolated=function(a,c,d,e){var g=a.split(".");a=1===g.length;e=g[0];e=!a&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var l=0;l<g.length-1;l++){var p=g[l];if(!(p in e))return;e=e[p]}g=g[g.length-1];d=$jscomp.IS_SYMBOL_NATIVE&&"es6"===d?e[g]:null;c=c(d);null!=c&&(a?$jscomp.defineProperty($jscomp.polyfills,g,{configurable:!0,writable:!0,value:c}):c!==d&&(void 0===$jscomp.propertyToPolyfillSymbol[g]&&(d=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[g]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(g):$jscomp.POLYFILL_PREFIX+d+"$"+g),$jscomp.defineProperty(e,$jscomp.propertyToPolyfillSymbol[g],{configurable:!0,writable:!0,value:c})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(a){if(a)return a;var c=function(l,p){this.$jscomp$symbol$id_=l;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:p})};c.prototype.toString=function(){return this.$jscomp$symbol$id_};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0,g=function(l){if(this instanceof g)throw new TypeError("Symbol is not a constructor");return new c(d+(l||"")+"_"+e++,l)};return g},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),d=0;d<c.length;d++){var e=$jscomp.global[c[d]];"function"===typeof e&&"function"!=typeof e.prototype[a]&&$jscomp.defineProperty(e.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6",
"es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a};$jscomp.iteratorFromArray=function(a,c){a instanceof String&&(a+="");var d=0,e=!1,g={next:function(){if(!e&&d<a.length){var l=d++;return{value:c(l,a[l]),done:!1}}e=!0;return{done:!0,value:void 0}}};g[Symbol.iterator]=function(){return g};return g};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(c){return c})}},"es6","es3");
(function(){function a(){var b=new z,f;this.getJqUi=function(){if(!f){f=$("<div>");var k=(new A(q.get("app","\u5e94\u7528"))).getJqUi();b.setFunSelectedChangeListener(function(){});var m=b.getJqUi();v.layoutCtrl(k,15,0,70,23);v.layoutCtrl(m,60,0,200,23);k.appendTo(f);m.appendTo(f)}return f};this.checkDBSource=function(k){var m;k||(m=q.get("chooseApp","\u8bf7\u9009\u62e9\u4e00\u4e2a\u5e94\u7528"));return m};this.getSource=function(){var k=b.getSelectedValue();if(k){var m=new l;m.setName("s"+(new Date).getTime());
m.setTypeName(l.DBCENTER);m.setAppNumber(k.value);return m}};this.setSource=function(k){var m=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,"path");m=(m?m:"/ierp")+"/qing/dataModeling.do";var r=new com.kingdee.bos.qing.dbmanage.RemoteImpl;r.setRemoteUrl(m);var t=k.getAppNumber();t&&(new B(r,function(u){u&&b.setSelectedValue({text:u.appName,value:t})})).loadAppNameByAppNumber(t)}}function c(){this.createBizMetaSource=function(b){var f=null;b.bizMetaType==l.DBCENTER?(f=
new l,f.fromJsonObject(b)):b.bizMetaType==p.ENTITY&&(f=new p,f.fromJsonObject(b));return f}}function d(){this.getDetailText=function(b,f){f=b.getDBSource();b=f.getAppNumber();(f=f.getAppName())||(f=e.DataCenterInfoCache.get(b));var k="";b&&(f?(k=q.get("dataCenterAppId","\u5e94\u7528\u7f16\u7801\uff1a#1\uff1b\u5e94\u7528\u540d\u79f0\uff1a#2").replace("#1",b),k=k.replace("#2",f)):k=q.get("appNotFound","\u5e94\u7528#1\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664").replace("#1",b));return k}}"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.dbmanage&&(com.kingdee.bos.qing.scene.dbmanage={});var e=com.kingdee.bos.qing.scene.dbmanage;e.DBManageScene=function(){var b,f;this.start=function(){b||(b=new com.kingdee.bos.qing.dbmanage.DBManageMainUi(r()),
com.kingdee.bos.qing.dbmanage.BizMetaSourceCreatorRegister.setCreator(new c),com.kingdee.bos.qing.dbmanage.DataSourceDetailTextGenerator.registerGenerator(com.kingdee.bos.qing.dbmanage.DBConnection.SOURCE_TYPE_BIZMETA,new d),com.kingdee.bos.qing.dbmanage.DataCenterSelectorHelper.registerConstructor(a),com.kingdee.bos.qing.dbmanage.DBPermissionCallBackGenerator.registerCallBack(k),com.kingdee.bos.qing.dbmanage.SuperQuerySelectorHelper.registerConstructor(C),"qing_modeler"!=w.getUrlParamValue("appID")?
com.kingdee.bos.qing.scene.DataModellingContext.init(r()):t(),b.createJqUi().appendTo($(document.body)),m());u();f=new g;f.setDelay(250);f.setCallback(function(){b&&b.resize()});f.observe();var h=com.kingdee.bos.qing.behavior.BehaviorManager;h.interestInBehaviorEntrance(h.ENTRANCE_DBMANAGE)};var k=function(h){if(h&&h.content){var n=h.content;h=n.selecteds;if("cancel"!=n.operation&&"undefined"!=h){n=Object.keys(h);for(var D=[],x=0;x<n.length;x++){var E=n[x],J=h[E],y=new com.kingdee.bos.qing.dbmanage.ValueTextPair;
y.setValue(E);y.setText(J);D.push(y)}return D}}},m=function(){b.addToolbarButton(function(){F.closeCurrentTab()},null,q.get("closeTab","\u9000\u51fa"))},r=function(){var h=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,"path");h=(h?h:"/ierp")+"/qing/dbManage.do";var n=new com.kingdee.bos.qing.dbmanage.RemoteImpl;n.setRemoteUrl(h);return n},t=function(){var h=G.getSkinName(),n=new H;n.setFilePath("scene/skin/"+h+"/res/dm-impl.png");n.setStartPosition(1,1);n.setIconSize(16,
16);h=n.createDescription(0,2);I.regist("f7",h)},u=function(){var h=com.kingdee.bos.qing.data.ProductLineEnvironment;h.setEnvironment(h.COSMIC)}};var g,l,p,z,C,B,q,A,v,G,w,H,I,F;(function(){var b=com.kingdee.bos.qing;G=b.CodeLoader;w=b.Seer;b=com.kingdee.bos.qing.framework.common;H=b.IconsFile;F=b.TabbedUiUtil;g=b.WindowResizeObserver;b=com.kingdee.bos.qing.scene;z=b.AppChooseDialogSelector;l=b.ERPCloudDBCenterSource;p=b.SuperQuerySource;B=b.DataCenterFacade;b=com.kingdee.bos.qing.ui.component;A=
b.Label;b=com.kingdee.bos.qing.framework.common;q=b.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);b=com.kingdee.bos.qing.data;C=b.SuperQuerySchemaSelector;I=b.Icons;b=com.kingdee.bos.qing.common;v=b.DomUtil})();com.kingdee.bos.qing.dbmanage.DBManageAppendSceneParams.addFunAppendMoreParams(function(b){b.appID=w.getUrlParamValue("appID")});e.DataCenterInfoCache=new function(){var b={};this.put=function(f,k){b[f]=k};this.get=function(f){return b[f]}}})();
//qingVersionTag: 20250415