var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(na,Ga,ha){na instanceof String&&(na=String(na));for(var Oa=na.length,Va=0;Va<Oa;Va++){var kb=na[Va];if(Ga.call(ha,kb,Va,na))return{i:Va,v:kb}}return{i:-1,v:void 0}};$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(na,Ga,ha){if(na==Array.prototype||na==Object.prototype)return na;na[Ga]=ha.value;return na};$jscomp.getGlobal=function(na){na=["object"==typeof globalThis&&globalThis,na,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Ga=0;Ga<na.length;++Ga){var ha=na[Ga];if(ha&&ha.Math==Math)return ha}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(na,Ga){var ha=$jscomp.propertyToPolyfillSymbol[Ga];if(null==ha)return na[Ga];ha=na[ha];return void 0!==ha?ha:na[Ga]};
$jscomp.polyfill=function(na,Ga,ha,Oa){Ga&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(na,Ga,ha,Oa):$jscomp.polyfillUnisolated(na,Ga,ha,Oa))};$jscomp.polyfillUnisolated=function(na,Ga,ha,Oa){ha=$jscomp.global;na=na.split(".");for(Oa=0;Oa<na.length-1;Oa++){var Va=na[Oa];if(!(Va in ha))return;ha=ha[Va]}na=na[na.length-1];Oa=ha[na];Ga=Ga(Oa);Ga!=Oa&&null!=Ga&&$jscomp.defineProperty(ha,na,{configurable:!0,writable:!0,value:Ga})};
$jscomp.polyfillIsolated=function(na,Ga,ha,Oa){var Va=na.split(".");na=1===Va.length;Oa=Va[0];Oa=!na&&Oa in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var kb=0;kb<Va.length-1;kb++){var lb=Va[kb];if(!(lb in Oa))return;Oa=Oa[lb]}Va=Va[Va.length-1];ha=$jscomp.IS_SYMBOL_NATIVE&&"es6"===ha?Oa[Va]:null;Ga=Ga(ha);null!=Ga&&(na?$jscomp.defineProperty($jscomp.polyfills,Va,{configurable:!0,writable:!0,value:Ga}):Ga!==ha&&(void 0===$jscomp.propertyToPolyfillSymbol[Va]&&(ha=1E9*Math.random()>>>0,
$jscomp.propertyToPolyfillSymbol[Va]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(Va):$jscomp.POLYFILL_PREFIX+ha+"$"+Va),$jscomp.defineProperty(Oa,$jscomp.propertyToPolyfillSymbol[Va],{configurable:!0,writable:!0,value:Ga})))};$jscomp.polyfill("Array.prototype.find",function(na){return na?na:function(Ga,ha){return $jscomp.findInternal(this,Ga,ha).v}},"es6","es3");
$jscomp.checkStringArgs=function(na,Ga,ha){if(null==na)throw new TypeError("The 'this' value for String.prototype."+ha+" must not be null or undefined");if(Ga instanceof RegExp)throw new TypeError("First argument to String.prototype."+ha+" must not be a regular expression");return na+""};
$jscomp.polyfill("String.prototype.startsWith",function(na){return na?na:function(Ga,ha){var Oa=$jscomp.checkStringArgs(this,Ga,"startsWith");Ga+="";var Va=Oa.length,kb=Ga.length;ha=Math.max(0,Math.min(ha|0,Oa.length));for(var lb=0;lb<kb&&ha<Va;)if(Oa[ha++]!=Ga[lb++])return!1;return lb>=kb}},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(na){return na?na:function(Ga,ha,Oa){var Va=this.length||0;0>ha&&(ha=Math.max(0,Va+ha));if(null==Oa||Oa>Va)Oa=Va;Oa=Number(Oa);0>Oa&&(Oa=Math.max(0,Va+Oa));for(ha=Number(ha||0);ha<Oa;ha++)this[ha]=Ga;return this}},"es6","es3");$jscomp.typedArrayFill=function(na){return na?na:Array.prototype.fill};$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
(function(){function na(){lb.call(this);var Fa;this.getRemoteUrl=function(){return Fa};this.setRemoteUrl=function(ua){Fa=ua}}"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.theme&&(com.kingdee.bos.qing.theme={});"undefined"==typeof com.kingdee.bos.qing.theme.common&&(com.kingdee.bos.qing.theme.common=
{});var Ga=com.kingdee.bos.qing.theme.common;Ga.Facade=function(Fa,ua,ba,wa){Oa.call(this,Fa,ua,ba,wa);var K=this.protectedMethod;this.getThemeGroupList=function(){K.remote("listThemeGroup",{})};this.saveThemeGroup=function(w){w={model:JSON.stringify(w.toJsonObject())};K.remote("saveOrUpdateThemeGroup",w)};this.editThemeGroup=function(w){w={model:JSON.stringify(w.toJsonObject())};K.remote("saveOrUpdateThemeGroup",w)};this.saveOrderThemeGroup=function(w){w={themeGroupList:JSON.stringify({themeGroupList:w})};
K.remote("saveOrderThemeGroup",w)};this.saveOrderTheme=function(w){w={themeList:JSON.stringify({themeList:w})};K.remote("saveOrderTheme",w)};this.getTheme=function(w,oa){K.remote("listGroupedTheme",{themeGroupID:w,themeType:oa})};this.getAllThemes=function(w){w={arrThemeGroupID:w?JSON.stringify(w):null};K.remote("listAllGroupTheme",w)};this.deleteThemeGroup=function(w){K.remote("deleteThemeGroup",{themeGroupID:w})};this.saveOrUpdateTheme=function(w){w={model:JSON.stringify(w.toJsonObject())};K.remote("saveOrUpdateTheme",
w)};this.moveTheme=function(w,oa,Y){K.remote("moveTheme",{themeID:w,groupID:oa,themeName:Y})};this.copyTheme=function(w,oa,Y,ja,ya,$a){w={themeID:w,groupID:oa,copyName:Y,themeType:ja,analysisCase:ya?!0:!1};$a&&(w.copyThemes=$a);K.remote("copyTheme",w)};this.deleteTheme=function(w,oa,Y,ja){K.remote("deleteTheme",{themeID:w,themeGroupID:oa,themeType:Y,deletePublish:ja})};this.getAllThemeForExportTheme=function(){K.remote("getAllThemeForExportTheme",{})};this.confirmForExportTheme=function(w,oa){w={subjectList:JSON.stringify(w.subjectList),
dsbList:JSON.stringify(w.dsbList),programmingCardList:JSON.stringify(w.programmingCardList),withPublish:JSON.stringify(oa)};K.remote("writeZip",w)};this.getExportedData=function(w){var oa=ha.formatDate("yyyyMMdd_HHmmss");kb.downloadFile("Qing-"+oa+".qing-pkg",w)};this.getSelectableForImportTheme=function(w){K.remote("getSelectableForImportTheme",{fileName:w})};this.importSelectedTheme=function(w,oa,Y,ja,ya,$a){w={fileName:oa,themeList:JSON.stringify({exportThemes:Y}),sourceStrategy:ja,firstTimeImport:ya,
cacheIdKey:$a,paramPathPrefix:w};K.remote("importSelectedTheme",w)};this.handleConflictForImportTheme=function(w,oa){w={fileName:w,themeList:JSON.stringify({exportThemes:oa})};K.remote("handleConflictForImportTheme",w)};this.hasResourceManager=function(){K.remote("hasResourceManager",{})};this.resourceInfoStatistics=function(){K.remote("resourceInfoStatistics",{})};this.getResourceInfoDetailList=function(w,oa,Y){K.remote("getResourceInfoDetailList",{resourceType:w,sortField:oa,sortOrder:Y})};this.isFontExist=
function(w){K.remote("isFontExist",{fontId:w,appID:"qing"})};this.getFileUsageInfoByPaging=function(w,oa,Y,ja,ya,$a){K.remote("getFileUsageInfoByPaging",{resourceType:w,targetPage:oa,pageSize:Y,sortField:ja,sortOrder:ya,searchText:$a})};this.getTodayScheduleInfoByPaging=function(w,oa,Y,ja,ya){K.remote("getTodayScheduleInfoByPaging",{resourceType:w,targetPage:oa,pageSize:Y,sortField:ja,sortOrder:ya})};this.getAllResourceInfoDetailListByPagination=function(w,oa,Y,ja,ya,$a,nb,qb,ub){w={targetPage:w,
pageSize:oa,sortField:Y,sortOrder:ja,queryParams:JSON.stringify({searchText:ya,currentStatus:$a,currentScheduleType:nb,startDateTimeStamp:qb,endDateTimeStamp:ub}),timeZone:(new Date).getTimezoneOffset()/60};K.remote("getAllResourceInfoDetailListByPagination",w)};this.loadExceptionLog=function(w){K.remote("loadExceptionLog",{id:w})};this.isCurrentUserInQingAdminRole=function(){K.remote("isCurrentUserInQingAdminRole",{})};this.loadUnReadHandOverOperationRecord=function(){K.remote("loadUnReadHandOverOperationRecord",
{})};this.getThemeDetail=function(w,oa){K.remote("getThemeDetail",{themeID:w,type:oa})}};Ga.RemoteImpl=na;var ha,Oa,Va,kb,lb;(function(){var Fa=com.kingdee.bos.qing.common;ha=Fa.Util;Fa=com.kingdee.bos.qing.framework.common;Oa=Fa.AbstractFacade;Va=Fa.AbstractIcons;kb=Fa.RemoteFramework;lb=Fa.AbstractRemoteCall})();Ga.Icons=new function(){Va.call(this);var Fa=this.protectedMethod;this.protectedInit=function(wa,K){wa=com.kingdee.bos.qing.theme.ComboIcon;if(!wa)throw Error("com.kingdee.bos.qing.theme.ComboIcon not found.");
wa.define(K,"tm");K.setGap(1);K.setStartPosition(1,1);K.setIconSize(16,16);ua(0,1,"btn-import");ua(0,2,"btn-export");ua(0,3,"btn-edit");ua(0,4,"btn-delete");ua(0,5,"btn-dsb");ua(0,6,"btn-analysis");ua(0,7,"btn-square");ua(0,8,"btn-data");ua(0,9,"btn-moving");ua(0,10,"btn-copy");ua(0,11,"btn-program");ua(0,14,"btn_refreshThemeGroup");ba(1,12,"info");ba(1,13,"info_hover");ba(2,0,"icon_sort-asc-esc");ba(2,1,"icon_sort-asc-desc");ba(2,2,"icon_sortable-v");ba(2,3,"icon_date");ua(2,4,"btn-ai-analysis");
K.setStartPosition(1,157);K.setIconSize(32,32);ba(0,0,"btn_analysis_larger");ba(1,0,"btn_analysis_larger_hover");ba(0,1,"btn_square_larger");ba(1,1,"btn_square_larger_hover");ba(0,2,"btn_data_larger");ba(1,2,"btn_data_larger_hover");ba(0,3,"btn_dsb_larger");ba(1,3,"btn_dsb_larger_hover");K.setStartPosition(1,120);K.setIconSize(36,36);ba(0,0,"icon-card-subject");ba(0,1,"icon-card-dsb");ba(0,2,"icon-preset-small");ba(0,3,"icon-card-programablecard");K.setStartPosition(1,69);K.setIconSize(50,50);ba(0,
0,"icon-addcard");ba(0,1,"icon-preset-big");K.setStartPosition(207,78);K.setIconSize(65,78);ba(0,0,"icon-question");wa.define(K,"theme-manage-sprite");K.setGap(1);K.setStartPosition(1,1);K.setIconSize(16,16);ba(0,0,"btn_import");ba(1,0,"btn_import_hover");ba(0,1,"btn_export");ba(1,1,"btn_export_hover");ba(0,2,"chevrons_up");ba(1,2,"chevrons_up_hover");ba(0,3,"chevrons_down");ba(1,3,"chevrons_down_hover");ba(0,4,"btn_resourcesLimit");ba(1,4,"btn_resourcesLimit_hover");ba(0,5,"btn_newCard");ba(1,5,
"btn_newCard_hover");ba(0,6,"btn_manage");ba(1,6,"btn_manage_hover");K.setStartPosition(1,51);K.setIconSize(17,17);ba(0,0,"icon_search");ba(1,0,"icon_search_hover");ba(0,2,"btn_orderup");ba(1,2,"btn_orderup_hover");K.setStartPosition(20,52);K.setIconSize(17,17);ba(0,0,"btn-add-classification");ba(1,0,"btn-add-classification_hover");K.setStartPosition(1,101);K.setIconSize(17,17);ba(0,1,"icon_dsb");ba(0,0,"icon_subject");wa.define(K,"no-data.png");K.setStartPosition(0,0);K.setGap(0);K.setIconSize(220,
220);ba(0,0,"no-data");wa.define(K,"group-theme-no-data");K.setStartPosition(0,0);K.setGap(0);K.setIconSize(264,191);ba(0,0,"group-theme-no-data");wa.define(K,"common");K.setStartPosition(4,1);K.setGap(0);K.setIconSize(16,16);ba(0,3,"calendar");wa.define(K,"msg");K.setStartPosition(1,1);K.setGap(1);K.setIconSize(100,80);ba(1,2,"msg-warning")};var ua=function(wa,K,w){ba(wa,K,w+"_hover");ba(wa+1,K,w)},ba=function(wa,K,w){Fa.registIcon(wa,K,w)}};Ga.Integration=new function(){var Fa,ua,ba,wa,K,w,oa,Y,
ja=new na,ya=new na,$a=new na,nb,qb,ub,vb,Cb,Ea,xb,cb,rb,Za,ea;this.setFunPublishRemoteImpl=function(L){Y=L};this.getFunPublishRemoteImpl=function(){return Y};this.setParamPathPrefix=function(L){nb=L};this.getParamPathPrefix=function(){return nb};this.getRemoteImpl=function(){return ja};this.setRemoteUrl=function(L){ja.setRemoteUrl(L)};this.getResourceRemoteImpl=function(){return $a};this.setResourceRemoteUrl=function(L){$a.setRemoteUrl(L)};this.getDataModelEntrance=function(){return Fa};this.setDataModelEntrance=
function(L){Fa=L};this.getAnalysisEntrance=function(){return ua};this.setAnalysisEntrance=function(L){ua=L};this.getSquareEntrance=function(){return ba};this.setSquareEntrance=function(L){ba=L};this.getDashboardEntrance=function(){return wa};this.setDashboardEntrance=function(L){wa=L};this.getAIAnalysisEntrance=function(){return K};this.setAIAnalysisEntrance=function(L){K=L};this.getProgramableCardEntrance=function(){return w};this.setProgramableCardEntrance=function(L){w=L};this.setFunDeleteLappPublishInfos=
function(L){oa=L};this.getFunDeleteLappPublishInfos=function(){return oa};this.setFunPublishedEmailLoginViewUrl=function(L){Ea=L};this.getFunPublishedEmailLoginViewUrl=function(){return Ea};this.setFunPublishedEmailAnonymousViewUrl=function(L){Cb=L};this.getFunPublishedEmailAnonymousViewUrl=function(){return Cb};this.setFunTimedPushContentEditEntrance=function(L){vb=L};this.getFunTimedPushContentEditEntrance=function(){return vb};this.setFunPublishContentEditEntrance=function(L){ub=L};this.getFunPublishContentEditEntrance=
function(){return ub};this.setFunPublishContext=function(L){qb=L};this.getFunPublishContext=function(){return qb};this.getFunThemeDetailContext=function(){return qb};this.getMessageRemoteUrl=function(){return xb};this.setMessageRemoteUrl=function(L){xb=L};this.setImportJSCodeForManager=function(L){cb=L};this.getImportJSCodeForManager=function(){return cb};this.setHasAIAnalysisEntrance=function(L){rb=L};this.isHasAIAnalysisEntrance=function(){return"true"==rb};this.setFunSetLappPrivateUrl=function(L){Za=
L};this.getFunSetLappPrivateUrl=function(){return Za};this.setFontRemoteImpl=function(L){ya.setRemoteUrl(L)};this.getFontRemoteImpl=function(){return ya};this.setAppId=function(L){ea=L};this.getAppId=function(){return ea}};var O=new function(){var Fa;this.hookCollector=function(ua){Fa=ua};this.occur=function(ua,ba){try{Fa&&Fa(ua,ba)}catch(wa){window.console&&console.warn(wa)}}};O.TM_CREATE_THEME_TYPE="tm-create-theme-type";O.TM_THEME_ENTRANCE_TYPE="tm-theme-entrance-type";Ga.UserOperationReporter=
O})();(function(){function na(){var O=this,Fa,ua,ba,wa,K,w,oa,Y;this.copy=function(){var ja=new na;ja.setThemeID(Fa);ja.setThemeGroupID(ua);ja.setThemeName(ba);ja.setThemeDescription(wa);ja.setThemeType(K);ja.setIsPreset(w);return ja};this.setOrderID=function(ja){oa=ja};this.getOrderID=function(){return oa};this.setThemeID=function(ja){Fa=ja};this.getThemeID=function(){return Fa};this.setThemeGroupID=function(ja){ua=ja};this.getThemeGroupID=function(){return ua};this.setThemeName=function(ja){ba=ja};this.getThemeName=
function(){return ba};this.setThemeDescription=function(ja){wa=ja};this.getThemeDescription=function(){return wa};this.setThemeType=function(ja){K=ja};this.getThemeType=function(){return K};this.setIsPreset=function(ja){w=ja};this.isPreset=function(){return w};this.setBeforeMovedThemeGroupId=function(ja){Y=ja};this.getBeforeMovedThemeGroupId=function(){return Y};this.fromJsonObject=function(ja){O.setThemeID(ja.themeID);O.setThemeGroupID(ja.themeGroupID);O.setThemeName(ja.themeName);O.setThemeDescription(ja.description);
O.setThemeType(ja.themeType);O.setIsPreset(ja.isPreset);O.setOrderID(ja.orderID)};this.toJsonObject=function(){var ja={};ja.themeID=Fa;ja.themeGroupID=ua;ja.themeName=ba;ja.description=wa;ja.themeType=K;ja.isPreset=w;ja.orderID=oa;return ja}}function Ga(){var O=this,Fa,ua,ba,wa,K,w;this.setCreateDate=function(oa){Fa=oa};this.getCreateDate=function(){return Fa};this.setModifyDate=function(oa){ua=oa};this.getModifyDate=function(){return ua};this.setDataStrategy=function(oa){ba=oa};this.getDataStrategy=
function(){return ba};this.setSubRef=function(oa){wa=oa};this.getSubRef=function(){return wa};this.setPubDetail=function(oa){K=oa};this.getPubDetail=function(){return K};this.setPushDetail=function(oa){w=oa};this.getPushDetail=function(){return w};this.fromJsonObject=function(oa){if(oa){O.setCreateDate(oa.createDate);O.setModifyDate(oa.modifyDate);O.setDataStrategy(oa.dataStrategy);O.setSubRef(oa.subRefByDsb);O.setPubDetail(oa.publishVO);for(var Y=[],ja=oa.publishVO,ya=0;ya<ja.length;ya++){var $a=
new ha;$a.fromJsonObject(ja[ya]);Y.push($a)}O.setPubDetail(Y);Y=[];oa=oa.pushDetail;for(ya=0;ya<oa.length;ya++)ja=new Oa,ja.fromJsonObject(oa[ya]),Y.push(ja);O.setPushDetail(Y)}}}function ha(){var O=this,Fa,ua,ba,wa,K,w,oa;this.getId=function(){return Fa};this.setId=function(Y){Fa=Y};this.getPublishTargetType=function(){return ua};this.setPublishTargetType=function(Y){ua=Y};this.getName=function(){return ba};this.setName=function(Y){ba=Y};this.getPathText=function(){return wa};this.setPathText=function(Y){wa=
Y};this.getUsers=function(){return K};this.setUsers=function(Y){K=Y};this.getRoles=function(){return w};this.setRoles=function(Y){w=Y};this.getViewType=function(){return oa};this.setViewType=function(Y){oa=Y};this.fromJsonObject=function(Y){if(Y){O.setId(Y.id);O.setPublishTargetType(Y.publishTargetType);O.setName(Y.name);O.setPathText(Y.pathText);if(Y.users){for(var ja=[],ya=Y.users,$a=0;$a<ya.length;$a++)ja.push(ya[$a].text);O.setUsers(ja)}if(Y.roles){ja=[];Y=Y.roles;for($a=0;$a<Y.length;$a++)ja.push(Y[$a].text);
O.setRoles(ja)}}}}function Oa(){var O=this,Fa,ua,ba,wa;this.getName=function(){return Fa};this.setName=function(K){Fa=K};this.getNameRule=function(){return ua};this.setNameRule=function(K){ua=K};this.getTarget=function(){return ba};this.setTarget=function(K){ba=K};this.getPushSchedule=function(){return wa};this.setPushSchedule=function(K){wa=K};this.fromJsonObject=function(K){K&&(O.setName(K.name),O.setNameRule(K.nameRule),O.setTarget(K.target),O.setPushSchedule(K.pushSchedule))}}function Va(){var O=
this,Fa,ua,ba,wa,K,w,oa,Y,ja;this.getOperationId=function(){return Fa};this.setOperationId=function(ya){Fa=ya};this.getToUserId=function(){return ua};this.setToUserId=function(ya){ua=ya};this.getFromUserId=function(){return ba};this.setFromUserId=function(ya){ba=ya};this.getToUserName=function(){return wa};this.setToUserName=function(ya){wa=ya};this.getFromUserName=function(){return K};this.setFromUserName=function(ya){K=ya};this.getCreatorId=function(){return w};this.setCreatorId=function(ya){w=
ya};this.getCreatorName=function(){return oa};this.setCreatorName=function(ya){oa=ya};this.getType=function(){return Y};this.setType=function(ya){Y=ya};this.getHandOverRecordData=function(){return ja};this.setHandOverRecordData=function(ya){ja=ya};this.fromJsonObject=function(ya){if(ya){O.setOperationId(ya.operationId);O.setToUserId(ya.toUserId);O.setFromUserId(ya.fromUserId);O.setToUserName(ya.toUserName);O.setFromUserName(ya.fromUserName);O.setCreatorId(ya.creatorId);O.setCreatorName(ya.creatorName);
O.setType(ya.type);var $a=[];ya=ya.handOverRecordDatas;for(var nb=0;nb<ya.length;nb++){var qb=new kb;qb.fromJsonObject(ya[nb]);$a.push(qb)}O.setHandOverRecordData($a)}}}function kb(){var O=this,Fa,ua,ba,wa,K,w,oa;this.getType=function(){return Fa};this.setType=function(Y){Fa=Y};this.getName=function(){return ua};this.setName=function(Y){ua=Y};this.getFromUserId=function(){return ba};this.setFromUserId=function(Y){ba=Y};this.getFromUserName=function(){return wa};this.setFromUserName=function(Y){wa=
Y};this.getPathName=function(){return K};this.setPathName=function(Y){K=Y};this.getPubId=function(){return w};this.setPubId=function(Y){w=Y};this.getPublishToType=function(){return oa};this.setPublishToType=function(Y){oa=Y};this.fromJsonObject=function(Y){Y&&(O.setType(Y.type),O.setName(Y.name),O.setFromUserId(Y.fromUserId),O.setFromUserName(Y.fromUserName),O.setPathName(Y.pathName),O.setPubId(Y.pubId),O.setPublishToType(Y.publishToType))}}"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.theme&&(com.kingdee.bos.qing.theme={});"undefined"==typeof com.kingdee.bos.qing.theme.model&&(com.kingdee.bos.qing.theme.model={});var lb=com.kingdee.bos.qing.theme.model;lb.ThemeGroupModel=function(){var O=this,Fa,ua,ba,wa,K=!1;this.setOrderID=function(w){wa=w};this.getOrderID=function(){return wa};this.setThemeGroupID=
function(w){Fa=w};this.getThemeGroupID=function(){return Fa};this.setThemeGroupName=function(w){ua=w};this.getThemeGroupName=function(){return ua};this.setIsPreset=function(w){ba=w};this.isPreset=function(){return ba};this.setHasData=function(w){K=w};this.hasData=function(){return K};this.fromJsonObject=function(w){O.setThemeGroupID(w.themeGroupID);O.setThemeGroupName(w.themeGroupName);O.setIsPreset(w.isPreset);O.setOrderID(w.orderID)};this.toJsonObject=function(){var w={};w.themeGroupID=Fa;w.themeGroupName=
ua;w.isPreset=ba;w.orderID=wa;return w}};lb.ThemeModel=na;lb.HandOverRecordOperationVO=Va;lb.HandOverRecordOperationDataVO=kb;lb.ThemeDetailModel=Ga;lb.LappInfoModelDataVO=function(){var O=this,Fa,ua,ba;this.getAnalysisName=function(){return Fa};this.setAnalysisName=function(wa){Fa=wa};this.getDirectoryName=function(){return ua};this.setDirectoryName=function(wa){ua=wa};this.getViewType=function(){return ba};this.setViewType=function(wa){ba=wa};this.fromJsonObject=function(wa){wa&&(O.setAnalysisName(wa.analysisName),
O.setDirectoryName(wa.directoryName),O.setViewType(wa.viewType))}};na.createInstance=function(O){if(O){var Fa=new na;Fa.fromJsonObject(O);return Fa}};na.THEMETYPE_SUBJECT="0";na.THEMETYPE_DASHBOARD="1";na.THEMETYPE_PROGRAMABLECARD="2";Ga.DATASTRATEGY_TIMING="timing";Ga.DATASTRATEGY_REALTIME="realTime";Va.TYPE_FORM="FORM";Va.TYPE_TO="TO";kb.TYPE_SUBJECT="0";kb.TYPE_DSB="1";kb.TYPE_PUBLISH="2";kb.TYPE_PUSH="3"})();(function(){function na(){$a.call(this);var ea=this,L=this.protectedMethod,sa,X,ka,F,la,c;this.setGlobal=function(Ba){sa=Ba};this.setRootNode=function(Ba){ka=Ba};this.setMessageCurtain=function(Ba){};this.asyncShowExportDialog=function(){Za.setCallback(function(){ea.setSize(640,480);ea.setPosition(window.innerWidth-640>>1,window.innerHeight-480>>1);L.setTitle(Ea.get("exportThemeOrDashboard","\u5bfc\u51fa\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f"));L.setContentPaneCreator(Ha);L.setClosingChecker(ea.isValidToAccepted,
!0);L.setClosingAction(za);ea.showDialog()});Za.loadJs("common/qing-table.js")};var za=function(Ba){if(Ba){Ba=X.getCheckedThemeNodes();for(var xa={},Ra=[],Ca=[],d=[],fb=0;fb<Ba.length;fb++){var Xa=Ba[fb],Aa=Xa.getThemeId();switch(Xa.getThemeType()){case rb.THEMETYPE_SUBJECT:Ca.push(Aa);break;case rb.THEMETYPE_DASHBOARD:Ra.push(Aa);break;case rb.THEMETYPE_PROGRAMABLECARD:d.push(Aa)}}xa[na.SUBJECT_LIST]=Ca;xa[na.DASHBOARD_LIST]=Ra;xa[na.PROGRAMABLECARD_LIST]=d;bb(xa)}},Ha=function(){var Ba=$("<div>"),
xa=Ba.append;F=new ub;F.addSearchListener(va);F.setSearchListenerDelay(400);F.setPlaceholder(Ea.get("searchBoxPlaceholder","\u641c\u7d22\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f"));F.setShowSearchIcon(!0);var Ra=F.getJqUi();Ra.addClass("theme-imexport-search-box");xa.call(Ba,Ra);xa=Ba.append;Ra=new ja;Ra.setChecked(!1);Ra.addCheckedListener(Ya);Ra.setText(Ea.get("showOnlyChecked","\u4ec5\u663e\u793a\u9009\u4e2d\u9879"));Ra=Ra.getJqUi();Ra.addClass("theme-export-show-only-checked-box");oa.layoutCtrl(Ra,
250,2,200,23);xa.call(Ba,Ra);X=new Ga(ka);xa=X.getJqUi();Ba.append(xa);c=new qb;c.setOn(!1);xa=c.getJqUi();xa.addClass("theme-export-with-publish-switchbutton");Ra=(new nb(Ea.get("carryPublish","\u643a\u5e26\u53d1\u5e03\u4fe1\u606f"))).getJqUi();Ra.addClass("theme-export-with-publish-text");Ba.append(xa);Ba.append(Ra);return Ba},va=function(Ba){la=F.getText().trim();X.searchKey(la)},Ya=function(Ba,xa){xa&&(X.setShowOnlyChecked(Ba.isChecked()),X.searchKey(la))};this.isValidToAccepted=function(Ba){0===
X.getCheckedThemeNodes().length?(L.getMessageCurtain().showPrompt(Ea.get("selectNone","\u672a\u9009\u4e2d\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f\u3002")),Ba(!1)):Ba(!0)};var bb=function(Ba){sa.createFacade(function(xa){sa.createFacade().getExportedData(xa)},function(xa,Ra){return 1030001==xa?(xa=Cb.createFeedbackDialog(),xa.setMessage(Ra),xa.setOptionType(Cb.OPTION_OK),xa.showDialog(),!0):!1}).confirmForExportTheme(Ba,c.isOn())}}function Ga(ea){function L(){KTDefaultCellRender.call(this,Ya);var k=
this;this.paintCellUI=function(g,b){var q=k.getCurrentRow().getUserObject(),B=q.getName();g=$("<div>");g.addClass("theme-export-area-list-item");var U=new ja,T=U.getJqUi(),qa=$("<div>");T.addClass("theme-export-area-list-item-checkbox");qa.addClass("theme-export-area-list-item-text");g.append(T);g.append(qa);U.setChecked(q.isChecked());U.setUserObject(q);U.addCheckedListener(e);Ha[q.getThemeId()]=U;if(0==q.getSubNodeLevel()){if(qa.text(B),q.isPreset()){q=qa.append;var da=$("<span>");da.addClass("theme-export-area-list-item-text-preset");
da.text(Ea.get("presetTakeBrakets","\uff08\u9884\u7f6e\uff09"));q.call(qa,da)}}else{B=q.getName();if(va&&B){U=va.toUpperCase();T=B.toUpperCase();var a=T.split(U),n=U.length;for(da in a){var f=T.indexOf(a[da]),t=B.substr(v,a[da].length);f+=a[da].length;var r=T.length-f;T=T.substr(f,r);B=B.substr(f,r);f=$("<span>");f.text(t);f.appendTo(qa);if(da!=a.length-1&&1<a.length){var v=T.indexOf(U);t=B.substr(v,n);f=v+n;r=T.length-f;T=T.substr(f,r);B=B.substr(f,r);f=$("<span>");f.text(t);f.css("color","red");
f.clone().appendTo(qa)}}}else qa.text(B);qa.addClass("theme-export-theme-name-label");qa=g.append;q=q.getThemeType();da=$("<span>");da.addClass("theme-export-theme-icon");v="btn-analysis";q==rb.THEMETYPE_DASHBOARD&&(v="btn-dsb");K.background(da,v);qa.call(g,da)}b?(b=$(b),b.css("overflow","visible"),g.appendTo(b)):g.appendTo(jqDiv);oa.layoutCtrlWithLRTB(g,0,0,null,0,0,null)}}var sa=this,X,ka=[],F=[],la=[],c=!1,za=!1,Ha,va,Ya,bb,Ba,xa,Ra;this.setShowOnlyChecked=function(k){za=k};this.getCheckedThemeNodes=
function(){var k,g=[];for(k=0;k<la.length;k++){var b=la[k];b.isChecked()&&g.push(b)}return g};this.getJqUi=function(){if(!X){Ca();for(var k=0;k<la.length;k++){var g=la[k];if(g.getThemeType()===rb.THEMETYPE_DASHBOARD){var b=g.getRelativeTheme();if(b&&0<b.length){for(var q=[],B=0;B<b.length;B++)for(var U=b[B],T=0;T<la.length;T++){var qa=la[T];U===qa.getThemeId()&&(q.push(qa),qa.getRelativeDsb().push(g))}g.setRelativeTheme(q)}}}X=$("<div>");X.addClass("theme-export-area");X.addClass("theme-export-tree-selection-area");
Ba=$("<div>");Ba.addClass("theme-export-tree-selection-area-checked-prompt");Ba.css("color","#666");oa.layoutCtrlWithLRTB(Ba,0,null,200,0,null,23);Ba.prependTo(X);bb=d();X.append(bb);Xa();Aa()}return X};var Ca=function(){var k=function(q){ka.push(q);if(q instanceof ua||q instanceof ba)la.push(q);else if(F.push(q),(q=q.getChildren())&&0<q.length)for(var B=0;B<q.length;B++)k(q[B])},g=ea.getChildren();if(g&&0<g.length)for(var b=0;b<g.length;b++)k(g[b])},d=function(){Ya=new KTable;var k=$(Ya.getUI());
k.children().css("overflow-x","hidden");var g=new L;Ya.setCellRender(g);Ya.setSyncUIWhenModelChanged(!1);Ya.addTreeExpandListener(fb);Ya.addColumn().setWidth(400);oa.layoutCtrlWithLRTB(k,0,0,null,23,0,null);return k},fb=function(k,g){(k=Ya.getRow(g.getRowIdx()).getUserObject())&&k.setExpanded(g.isExpanded())};this.searchKey=function(k){var g;va=k;c=!!va;for(g=0;g<la.length;g++){var b=la[g];var q=b.isChecked();if(k){var B=-1<b.getName().toUpperCase().indexOf(va.toUpperCase());q=za?B&&q:B}else q=za?
b.isChecked():!0;b.setVisible(q)}for(k=0;k<F.length;k++){b=F[k];q=!0;B=!1;var U=b.getChildren();for(g=0;g<U.length;g++){var T=U[g];T.isVisible()&&(q=q&&T.isChecked());B=B||T.isVisible()}q=q&&B;b.setVisible(B);b.setChecked(q)}sa.updateUi()};this.updateUi=function(){for(var k=!1,g=0;g<la.length;g++)k=k||la[g].isVisible();k?(xa&&xa.hide(),bb&&bb.remove(),bb=d(),X.append(bb),Xa()):(xa||(xa=$("<div>"),xa.css({position:"absolute",top:"26px",left:"0",right:"0",bottom:"0","z-index":"2",color:"rgb(102, 102, 102)"}),
Ra=$("<div>"),Ra.text(Ea.get("noDataPrompt","\u6ca1\u6709\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c")),oa.layoutCtrlCenterAlign(Ra,500),Ra.css({height:"20px","line-height":"20px","text-align":"center","font-size":"16px",color:"#BBBBBB",top:"50%","margin-top":"98.5px"}),Ra.appendTo(xa),k=$("<div>"),K.background(k,"no-data"),oa.layoutCtrlCenterAlign(k,187),k.css({"background-size":"contain",top:"50%",height:"187px","margin-top":"-113.5px"}),k.appendTo(xa),X.append(xa)),xa.show(),bb.hide())};var Xa=
function(){Ha={};for(var k=0;k<ka.length;k++){var g=ka[k];if(g.isVisible()){var b=cb.createRow(Ya,!1),q=b.getCell(0),B=g.getSubNodeLevel();B=new KTCellTreeModel(B);b.setHeight(23);b.setUserObject(g);g instanceof O?(g=c?!0:g.isExpanded(),B.setExpanded(g)):(g=g.getParentNode(),g=c?!0:g.isExpanded(),b.setHide(!g));q.setTreeModel(B)}}Ya.updateUI()},Aa=function(){for(var k=0,g=0;g<la.length;g++)la[g].isChecked()&&k++;k=Ea.get("checkedNumberPrompt","(\u5df2\u9009\u62e9 #1 \u9879)").replace("#1",k);Ba.text(k)},
e=function(k,g){if(g){k.getUserObject().check(k.isChecked(),A);for(k=0;k<ka.length;k++)if(g=ka[k],g.isVisible()){var b=Ha[g.getThemeId()];b&&b.setChecked(g.isChecked())}Aa()}},A=function(k){for(var g=!0,b=k.getChildren(),q=0;q<b.length;q++){var B=b[q];B.isVisible()&&(g=g&&B.isChecked())}k.setChecked(g)}}function ha(){function ea(ka){KTDefaultCellRender.call(this,ka);var F=this,la=this.paintCellUI;this.paintCellUI=function(va,Ya){F.getCurrentRowIdx()<cb.getHeadRowCount()?la(va,Ya):($(va),3==F.getCurrentColIdx()?
Ha(va,F.getCellWidth(),F.getCellHeight(),F.getCurrentRow()):4==F.getCurrentColIdx()?c(va,F.getCellWidth(),F.getCellHeight(),F.getCurrentRow()):la(va,Ya))};var c=function(va,Ya,bb,Ba){va=cb.createCtrlInCell(va,Ya,bb,Y);Ba.getCell(4).setUserObject(va);Ya=Ba.getUserObject().strategy==ha.ALL_CONFLICTTYPE[1]?!0:!1;va.setEnabled(Ya);va.setSelected(Ba.getUserObject().publishStrategy);va.setItemModels(ha.ALL_PUBLISHCONFLICTTYPE);va.setUserObject(Ba);va.setCustomPainter(function(xa,Ra,Ca){switch(Ca){case ha.ALL_PUBLISHCONFLICTTYPE[0]:xa=
Ea.get("noDisposal","\u4e0d\u5904\u7406");break;case ha.ALL_PUBLISHCONFLICTTYPE[1]:xa=Ea.get("overwrite","\u8986\u76d6");break;default:xa=""}Ca=$("<div>");Ca.text(xa);Ca.appendTo(Ra)});va.addSelectedChangedListener(za)},za=function(va,Ya,bb){va.getUserObject().getUserObject().publishStrategy=bb},Ha=function(va,Ya,bb,Ba){va=cb.createCtrlInCell(va,Ya,bb,Y);va.setSelected(Ba.getUserObject().strategy);va.setItemModels(ha.ALL_CONFLICTTYPE);va.setUserObject(Ba);va.setCustomPainter(function(xa,Ra,Ca){switch(Ca){case ha.ALL_CONFLICTTYPE[0]:xa=
Ea.get("ignore","\u5ffd\u7565");break;case ha.ALL_CONFLICTTYPE[1]:xa=Ea.get("overwrite","\u8986\u76d6");break;case ha.ALL_CONFLICTTYPE[2]:xa=Ea.get("rename","\u91cd\u547d\u540d");break;default:xa=""}Ca=$("<div>");Ca.text(xa);Ca.appendTo(Ra)});va.addSelectedChangedListener(function(xa,Ra,Ca){Ra=Ba.getCell(4);var d=Ca==ha.ALL_CONFLICTTYPE[1]?!0:!1;Ra.getUserObject().setEnabled(d);Ra.getUserObject().setSelected(ha.ALL_PUBLISHCONFLICTTYPE[0]);xa.getUserObject().getUserObject().strategy=Ca})}}var L=this,
sa,X;this.getConflictThemeList=function(){return X};this.getJqUi=function(ka){sa=cb.createTable();cb.bindTableListenerForCtrl(sa);var F=new ea(sa);F.setOutsideVisible(!1);sa.setCellRender(F);sa.addColumns(5);sa.getColumn(0).setWidth(100);sa.getColumn(1).setWidth(80);sa.getColumn(2).setWidth(200);sa.getColumn(3).setWidth(80);sa.getColumn(4).setWidth(80);F=cb.createHeadRow(sa);F.getCell(0).setValue(Ea.get("groupName","\u5206\u7c7b\u540d\u79f0"));F.getCell(1).setValue(Ea.get("type","\u7c7b\u578b"));
F.getCell(2).setValue(Ea.get("subjectOrDashboardName","\u540d\u79f0"));F.getCell(3).setValue(Ea.get("strategy","\u5904\u7406\u7b56\u7565"));F.getCell(4).setValue(Ea.get("publishStrategy","\u53d1\u5e03\u4fe1\u606f\u5904\u7406"));X=ka;for(var la in ka)X[la].strategy=ha.ALL_CONFLICTTYPE[0],X[la].publishStrategy=ha.ALL_PUBLISHCONFLICTTYPE[0];L.updateUi(ka);cb.refresh(sa);ka=$(sa.getUI());ka.addClass("theme-import-selection-table");return ka};this.updateUi=function(ka){cb.clearWithoutHead(sa);cb.refresh(sa);
for(var F,la=0;la<ka.length;la++){var c=ka[la];F=cb.createRow(sa);F.setUserObject(c);F.getCell(0).setValue(c.themeGroupName);0==c.themeType?F.getCell(1).setValue(Ea.get("subject","\u4e1a\u52a1\u4e3b\u9898")):1==c.themeType&&F.getCell(1).setValue(Ea.get("dsb","\u4eea\u8868\u677f"));F.getCell(2).setValue(c.themeName);F.getCell(3).setValue(c.strategy);F.getCell(4).setValue(c.publishStrategy)}cb.refresh(sa)};this.refresh=function(){cb.refresh(sa)}}function Oa(ea){$a.call(this);var L=this,sa=this.protectedMethod,
X=[],ka,F,la,c,za,Ha;this.setGlobal=function(d){ka=d};this.setFunRefreshThemeGroupList=function(d){la=d};this.addConfirmListener=function(d){X.push(d)};this.createUi=function(d,fb){L.setSize(640,480);L.setPosition(window.innerWidth-640>>1,window.innerHeight-480>>1);sa.setTitle(Ea.get("importThemeOrDashboard","\u5bfc\u5165\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f"));sa.setContentPaneCreator(function(){var Xa=$("<div>");Xa.append(va());Xa.append(bb());F=new Ga(fb);var Aa=F.getJqUi();Aa.addClass("theme-export-tree-selection-area");
Xa.append(Aa);Aa=$("<div>");com.kingdee.bos.qing.common.DomUtil.layoutCtrl(Aa,0,335,608,23);Xa.append(Aa);var e=Ea.get("sourceStrategy","\u8d44\u6e90\u51b2\u7a81\u5904\u7406\u7b56\u7565"),A=(new nb(e)).getJqUi();A.attr("title",e);A.addClass("theme-export-sourceStrategy-label");A.css("display","inline-block");Aa.append(A);e=$("<div>");A=$("<span>");A.text(Ea.get("resourceConflictPolicy","\u53ef\u5bf9\u5730\u56fe\u3001\u56fe\u7247\u3001\u5b8f\u5b9a\u4e49\u3001\u516c\u5171\u6570\u636e\u6e90\u8bbe\u7f6e\u51b2\u7a81\u65f6\u7684\u5904\u7406\u7b56\u7565\uff0c\u5305\u62ec\u5ffd\u7565\u3001\u8986\u76d6\u3001\u91cd\u547d\u540d\u3002\n\u2460\u5ffd\u7565\uff1a\u5f53\u540d\u79f0\u51b2\u7a81\u65f6\uff0c\u4e0d\u8fdb\u884c\u8d44\u6e90\u7684\u5bfc\u5165\u3002\n\u2461\u8986\u76d6\uff1a\u5f53\u540d\u79f0\u51b2\u7a81\u65f6\uff0c\u7528\u5bfc\u5165\u7684\u8d44\u6e90\u8986\u76d6\u5f53\u524d\u7cfb\u7edf\u4e2d\u540c\u540d\u7684\u8d44\u6e90\u3002\n\u2462\u91cd\u547d\u540d\uff1a\u5f53\u540d\u79f0\u51b2\u7a81\u65f6\uff0c\u5c06\u540c\u540d\u7684\u8d44\u6e90\u81ea\u52a8\u91cd\u547d\u540d\uff0c\u5bfc\u5165\u5f53\u524d\u7cfb\u7edf\u4e2d\u3002\u5176\u4e2d\u5b8f\u5b9a\u4e49\u3001\u516c\u5171\u6570\u636e\u6e90\u3001\u6765\u81ea\u4e91\u7d20\u6750\u7684\u56fe\u7247\u4e0d\u652f\u6301\u201c\u91cd\u547d\u540d\u201d\u7684\u5904\u7406\u7b56\u7565\uff0c\u5f53\u9009\u62e9\u201c\u91cd\u547d\u540d\u201d\u65f6\uff0c\u9ed8\u8ba4\u4f7f\u7528\u201c\u5ffd\u7565\u201d\u3002"));
A.appendTo(e);A=new vb;A.setIconType(vb.ICON_TYPE_QUESTION);A.setTipsSize(350,150);A.setTipsHtml(e);e=A.getJqUi();e.addClass("theme-export-help-icon");Aa.append(e);c=new Y;c.setSelected(ha.ALL_CONFLICTTYPE[1]);c.setItemModels(ha.ALL_CONFLICTTYPE);c.setCustomPainter(function(k,g,b){switch(b){case ha.ALL_CONFLICTTYPE[0]:k=Ea.get("ignore","\u5ffd\u7565");break;case ha.ALL_CONFLICTTYPE[1]:k=Ea.get("overwrite","\u8986\u76d6");break;case ha.ALL_CONFLICTTYPE[2]:k=Ea.get("rename","\u91cd\u547d\u540d");break;
default:k=""}b=$("<div>");b.text(k);b.appendTo(g)});e=c.getJqUi();e.addClass("theme-export-sourceStrategy-comboBox");Aa.append(e);return Xa});sa.setClosingChecker(L.isValidToAccepted,!0);sa.setClosingAction(function(Xa){if(Xa&&(Xa=F.getCheckedThemeNodes(),0!=Xa.length)){for(var Aa=[],e=0;e<Xa.length;e++)Aa.push(Xa[e].toJsonObject());xa(d,Aa)}});L.showDialog()};var va=function(){za=new ub;za.addSearchListener(Ya);za.setSearchListenerDelay(400);za.setPlaceholder(Ea.get("searchBoxPlaceholder","\u641c\u7d22\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f"));
za.setShowSearchIcon(!0);var d=za.getJqUi();d.addClass("theme-imexport-search-box");return d},Ya=function(){Ha=za.getText().trim();F.searchKey(Ha)},bb=function(){var d=new ja;d.setChecked(!1);d.addCheckedListener(Ba);d.setText(Ea.get("showOnlyChecked","\u4ec5\u663e\u793a\u9009\u4e2d\u9879"));d=d.getJqUi();oa.layoutCtrl(d,250,2,200,23);return d},Ba=function(d,fb){fb&&(F.setShowOnlyChecked(d.isChecked()),F.searchKey(Ha))};this.isValidToAccepted=function(d){0===F.getCheckedThemeNodes().length?(sa.getMessageCurtain().showPrompt(Ea.get("selectNone",
"\u672a\u9009\u4e2d\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f\u3002")),d(!1)):d(!0)};var xa=function(d,fb){ka.createFacade(function(Xa){var Aa=Xa.conflictTheme,e=Xa.conflictPublish;if(0<Aa.length){$("<div>");for(var A=null,k=0;k<fb.length;k++){var g=fb[k].themeName,b=fb[k].themeGroupName;if(null==A)for(var q=0;q<Aa.length;q++)Aa[q].themeName!=g&&(A=b)}k=fb.length-Aa.length;g=new Va;g.setSourceStrategy(c.getSelected());g.setCacheImportMapIdKey(Xa.cacheMapIdKey);g.setGlobal(ka);g.setFunRefreshThemeGroupList(la);
g.createUi(d,Aa,e,k,A);g.repaint()}else Ra(fb,e)},function(Xa,Aa){return 1020101==Xa||1100021==Xa?(ea.showPrompt(xb.get("resourceFileLimit","\u5bfc\u5165\u5931\u8d25\uff0c\u8f7b\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3\u3002"),2E3),!0):!1}).importSelectedTheme(w.getParamPathPrefix(),d,fb,c.getSelected(),!0)},Ra=function(d,fb){if(0==fb.length)Ca(d);else{var Xa=new kb;Xa.setClosedListener(function(){Ca(d)});Xa.showDialog(fb)}},Ca=function(d){var fb;for(fb in d)var Xa=d[fb].themeGroupName;la&&la(Xa)}}function Va(){$a.call(this);
var ea=this,L=this.protectedMethod,sa=[],X,ka,F,la,c,za=[],Ha,va,Ya,bb;this.setSourceStrategy=function(Aa){Ya=Aa};this.setCacheImportMapIdKey=function(Aa){bb=Aa};this.setGlobal=function(Aa){X=Aa};this.setFunRefreshThemeGroupList=function(Aa){va=Aa};this.addConfirmListener=function(Aa){sa.push(Aa)};this.createUi=function(Aa,e,A,k,g){ka=Aa;F=e;za=A;la=g;Ha=k;ea.setSize(640,480);ea.setPosition(window.innerWidth-640>>1,window.innerHeight-480>>1);L.setTitle(Ea.get("importThemeOrDashboard","\u5bfc\u5165\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f"));
L.setContentPaneCreator(function(){var b=$("<div>"),q=Ea.get("importSuccessPrompt","\u6210\u529f\u5bfc\u5165#1\u4e2a\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f\u3002\u4ee5\u4e0b\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f\u540d\u79f0\u51b2\u7a81\uff0c\u8bf7\u5904\u7406\u3002").replace("#1",k);q=(new nb(q)).getJqUi();var B=xa(Ea.get("allIgnore","\u5168\u90e8\u5ffd\u7565"),!0,Ra),U=xa(Ea.get("allOverwrite","\u5168\u90e8\u8986\u76d6"),!0,Ca),T=xa(Ea.get("allRename","\u5168\u90e8\u91cd\u547d\u540d"),!1,
d);q.addClass("theme-import-selection-prompt");B.addClass("theme-import-selection-ignore-btn");U.addClass("theme-import-selection-overwrite-btn");T.addClass("theme-import-selection-rename-btn");b.append(q);b.append(B);b.append(U);b.append(T);c=new ha;b.append(c.getJqUi(e));return b});L.setClosingChecker2(ea.isValidToAccepted,Ba,!0);L.setClosingAction(function(b){});ea.showDialog()};var Ba=function(Aa){Aa(!0);0<Ha&&va(la)};this.repaint=function(){c.refresh()};var xa=function(Aa,e,A){var k=$("<div>");
k.text(Aa);k.addClass("theme-import-conflict-all-operate");k.on("click",A);e&&(Aa=$("<div>"),Aa.addClass("theme-import-conflict-btn-split-line"),Aa.appendTo(k));return k},Ra=function(){for(var Aa in F)F[Aa].strategy=ha.ALL_CONFLICTTYPE[0],F[Aa].publishStrategy=ha.ALL_PUBLISHCONFLICTTYPE[0];c.updateUi(F)},Ca=function(){for(var Aa in F)F[Aa].strategy=ha.ALL_CONFLICTTYPE[1];c.updateUi(F)},d=function(){for(var Aa in F)F[Aa].strategy=ha.ALL_CONFLICTTYPE[2],F[Aa].publishStrategy=ha.ALL_PUBLISHCONFLICTTYPE[0];
c.updateUi(F)};this.isValidToAccepted=function(Aa){fb(ka,F,Aa)};var fb=function(Aa,e,A){var k=[],g;for(g in e)"ignore"!=e[g].strategy&&(k=k.concat(e[g]));0==k.length?(A(!0),Xa(la)):X.createFacade(function(b){A(!0);var q=k[0].themeGroupName;za=za.concat(b.conflictPublish);Xa(q)},function(b,q){return 1020101==b||1100021==b?(L.getMessageCurtain().showPrompt(xb.get("resourceFileLimit","\u5bfc\u5165\u5931\u8d25\uff0c\u8f7b\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3\u3002"),2E3),!0):!1}).importSelectedTheme(w.getParamPathPrefix(),
Aa,k,Ya,!1,bb)},Xa=function(Aa){if(0==za.length)va&&va(Aa);else{var e=new kb;e.setClosedListener(function(){va&&va(Aa)});e.showDialog(za)}}}function kb(){var ea,L;this.setClosedListener=function(X){L=X};this.showDialog=function(X){var ka=$(document.body),F=$("<div class='sa-ctrl-common-modallayer'>");F.appendTo(ka);var la=new ya(F);la.setTitle(Ea.get("importThemeOrDashboard","\u5bfc\u5165\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f"));var c=ka.prop("clientWidth");ka=ka.prop("clientHeight");la.setBounds(c-
640>>1,ka-480>>1,640,480);la.setSelectable(!0);la.setToolbarVisible(!1);la.setContent(sa(X));la.showFooterPane();la.addClosingListener(function(za,Ha){L&&L();F&&F.remove();za&&za.destroy()},!0);la.addClosedListener(function(za){});la.show();cb.refresh(ea)};var sa=function(X){var ka=$("<div>"),F=$("<div>");F.addClass("theme-publish-conflict-tips");F.text(Ea.get("publishConflictTips","\u4ee5\u4e0b\u8bb0\u5f55\u56e0\u540d\u79f0\u91cd\u590d\u672a\u53d1\u5e03\u6210\u529f\uff0c\u53ef\u5230\u5bf9\u5e94\u4e1a\u52a1\u4e3b\u9898\u6216\u4eea\u8868\u677f\u4e2d\u624b\u52a8\u53d1\u5e03"));
F.appendTo(ka);ea=cb.createTable();cb.bindTableListenerForCtrl(ea);ea.addColumns(3);ea.getColumn(0).setWidth(100);ea.getColumn(1).setWidth(230);ea.getColumn(2).setWidth(210);F=cb.createHeadRow(ea);F.getCell(0).setValue(Ea.get("publishName","\u53d1\u5e03\u540d\u79f0"));F.getCell(1).setValue(Ea.get("source","\u6765\u6e90"));F.getCell(2).setValue(Ea.get("publishPath","\u53d1\u5e03\u8def\u5f84"));F=$(ea.getUI());F.addClass("theme-publish-conflict-table");F.appendTo(ka);cb.clearWithoutHead(ea);for(F=0;F<
X.length;F++){var la=X[F],c=la.themeName,za=la.themeType==rb.THEMETYPE_SUBJECT?Ea.get("subject","\u4e1a\u52a1\u4e3b\u9898"):Ea.get("dashboard","\u4eea\u8868\u677f"),Ha=la.publishPath,va=Ha.split("/")[1];c=Ha.substring(Ha.indexOf(":")+1,Ha.indexOf("/")+1)+za+":"+c;Ha=Ha.substring(0,Ha.indexOf("/"));za=cb.createRow(ea);za.setUserObject(la);za.getCell(0).setValue(va);za.getCell(1).setValue(c);za.getCell(2).setValue(Ha)}cb.refresh(ea);return ka}}function lb(){var ea=this,L,sa,X,ka,F=!1,la=!0;this.setName=
function(c){L=c};this.getName=function(){return L};this.setThemeId=function(c){sa=c};this.getThemeId=function(){return sa};this.setIsPreset=function(c){X=c};this.isPreset=function(){return X};this.setParentNode=function(c){ka=c};this.getParentNode=function(){return ka};this.setChecked=function(c){F=c};this.isChecked=function(){return F};this.setVisible=function(c){la=c};this.isVisible=function(){return la};this.getSubNodeLevel=function(){for(var c=-1,za=ka;za;)c++,za=za.getParentNode();return c};
this.check=function(c){};this.protectedMethod={fromJsonObject:function(c){ea.setName(c.name);ea.setThemeId(c.themeId);ea.setIsPreset(c.isPreset)},toJsonObject:function(){var c={};c.themeName=L;c.themeID=sa;c.isPreset=X;return c}}}function O(){lb.call(this);var ea=this,L=this.protectedMethod,sa=!0,X=[];this.setExpanded=function(ka){sa=ka};this.isExpanded=function(){return sa};this.setChildren=function(ka){X=ka};this.getChildren=function(){return X};this.fromJsonObject=function(ka){L.fromJsonObject(ka);
if((ka=ka.children)&&0<ka.length)for(var F=0;F<ka.length;F++){var la=ka[F],c,za=la.themeType;za?za===rb.THEMETYPE_SUBJECT?c=new ba:za===rb.THEMETYPE_DASHBOARD&&(c=new ua):c=new O;c.fromJsonObject(la);c.setParentNode(ea);X.push(c)}};this.toJsonObject=function(){return L.toJsonObject()};this.check=function(ka,F){if(0!==X.length&&ka!==ea.isChecked()){ea.setChecked(ka);for(var la=0;la<X.length;la++){var c=X[la];c.isVisible()&&c.check(ka,F)}}}}function Fa(){lb.call(this);var ea=this,L=this.protectedMethod,
sa;this.setThemeType=function(X){sa=X};this.getThemeType=function(){return sa};this.protectedMethod={fromJsonObject:function(X){L.fromJsonObject(X);ea.setThemeType(X.themeType)},toJsonObject:function(){var X=L.toJsonObject(),ka=ea.getParentNode();X.themeType=sa;X.themeGroupId=ka.getThemeId();X.themeGroupName=ka.getName();return X}}}function ua(){Fa.call(this);var ea=this,L=this.protectedMethod,sa=[];this.setRelativeTheme=function(X){sa=X};this.getRelativeTheme=function(){return sa};this.fromJsonObject=
function(X){L.fromJsonObject(X);ea.setRelativeTheme(X.dsbRelativeTheme)};this.toJsonObject=function(){var X=L.toJsonObject(),ka=[];if(sa&&0<sa.length)for(var F=0;F<sa.length;F++)ka.push(sa[F].getThemeId());X.relativeTheme=ka;return X};this.check=function(X,ka){if(X!==ea.isChecked()){ea.setChecked(X);for(var F=0;F<sa.length;F++){var la=sa[F],c=X;X||(c=la.isUsedByCheckedDsb());la.check(c,ka)}ka&&ka(ea.getParentNode())}}}function ba(){Fa.call(this);var ea=this,L=this.protectedMethod,sa=[];this.setRelativeDsb=
function(X){sa=X};this.getRelativeDsb=function(){return sa};this.fromJsonObject=function(X){L.fromJsonObject(X)};this.toJsonObject=function(){return L.toJsonObject()};this.isUsedByCheckedDsb=function(){var X=!1;if(sa&&0<sa.length)for(var ka=0;ka<sa.length;ka++)X=X||sa[ka].isChecked();return X};this.check=function(X,ka){X!==ea.isChecked()&&(ea.setChecked(X),ka&&ka(ea.getParentNode()))}}"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.theme&&(com.kingdee.bos.qing.theme={});"undefined"==typeof com.kingdee.bos.qing.theme.imexport&&(com.kingdee.bos.qing.theme.imexport={});var wa=com.kingdee.bos.qing.theme.imexport;wa.ExportDialog=na;wa.UploadPane=function(){var ea,L,sa;this.createJqUi=function(c,za,Ha){ea=Ha;Ha=$("<div>");Ha.addClass("theme-importing-exporting-main");var va=$(document.body),Ya=$("<div class='sa-ctrl-modallayer'>");
Ya.appendTo(va);Ya.css("height",$(".theme-manage").height());L=$("<progress value='0' max='100'>");L.addClass("theme-importing-upload-progress");var bb=$("<div>");bb.addClass("theme-importing-exporting-text");bb.text(Ea.get("uploading","\u6b63\u5728\u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u5019"));Ha.append(L);Ha.append(bb);va.append(Ha);X(c,za,Ha,Ya)};var X=function(c,za,Ha,va){var Ya=new FormData;Ya.append("filename",c);c=new XMLHttpRequest;c.upload.addEventListener("progress",ka,!1);c.addEventListener("error",
F,!1);var bb=com.kingdee.bos.qing.framework.common.RemoteFrameworkRegister.getUploadUrl();c.open("post",bb,!0);c.onload=function(Ba){200==this.status&&(Ba=JSON.parse(this.response),"number"==typeof Ba.errorCode&&3099003==Ba.errorCode?ea.showError(Ba.errorMessage):la(Ba.data,za),Ha.remove(),va.remove())};c.send(Ya)},ka=function(c){var za=L.get(0);c.lengthComputable&&(za.max=c.total,za.value=c.loaded)},F=function(c){_funErrorCallbackEvent&&_funErrorCallbackEvent(Ea.get("uploadFail","\u4e0a\u4f20\u5931\u8d25"))},
la=function(c,za){za.createFacade(function(Ha){var va=new O;va.fromJsonObject(Ha);0!=va.getChildren().length?(Ha=new Oa(ea),Ha.createUi(c,va),Ha.setGlobal(za),Ha.setFunRefreshThemeGroupList(sa)):ea.showPrompt(Ea.get("noThemeAndGroup","\u672a\u627e\u5230\u4e1a\u52a1\u4e3b\u9898\u5206\u7c7b\u548c\u4e1a\u52a1\u4e3b\u9898\u3002"))},function(Ha,va){return!1}).getSelectableForImportTheme(c)};this.setFunRefreshThemeGroupList=function(c){sa=c}};wa.FolderNode=O;var K,w,oa,Y,ja,ya,$a,nb,qb,ub,vb,Cb,Ea,xb,cb,
rb,Za;(function(){var ea=com.kingdee.bos.qing.theme.common;K=ea.Icons;w=ea.Integration;ea=com.kingdee.bos.qing.common;oa=ea.DomUtil;ea=com.kingdee.bos.qing.ui.component;Y=ea.ComboBox;ja=ea.CheckBox;ya=ea.Dialog;$a=ea.AbstractModalDialog;nb=ea.Label;qb=ea.SwitchButton;ub=ea.SearchBox;vb=ea.HelpIcon;Cb=ea.MessageDialog;ea=com.kingdee.bos.qing.framework.common;Ea=ea.MultilanguageManager.createPackageAccessor(wa);xb=ea.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.theme.resourceinfo);
ea=com.kingdee.bos.qing.common.ui;cb=ea.TableUtil;ea=com.kingdee.bos.qing.theme.model;rb=ea.ThemeModel;ea=com.kingdee.bos.qing;Za=ea.CodeLoader})();na.SUBJECT_LIST="subjectList";na.DASHBOARD_LIST="dsbList";na.PROGRAMABLECARD_LIST="programmingCardList";ha.ALL_CONFLICTTYPE=["ignore","overwrite","rename"];ha.ALL_PUBLISHCONFLICTTYPE=["noDisposal","overwrite"]})();(function(){function na(){var e=this,A,k,g,b,q,B,U,T,qa,da,a,n,f,t,r,v,aa,fa,G,M,I,m,x,C,J,Q,z,P,R,ta;this.getUserFreeFileSize=function(){return A};this.setUserFreeFileSize=function(y){A=y};this.getUserUseFileSize=function(){return g};this.setUserUseFileSize=function(y){g=y};this.getTenantFreeFileSize=function(){return k};this.setTenantFreeFileSize=function(y){k=y};this.getTenantPayFileSize=function(){return b};this.setTenantPayFileSize=function(y){b=y};this.getTenantFileSize=function(){return q};
this.setTenantFileSize=function(y){q=y};this.getTenantUseFileSize=function(){return B};this.setTenantUseFileSize=function(y){B=y};this.getOtherUserTenantUseFileSize=function(){return U};this.setOtherUserTenantUseFileSize=function(y){U=y};this.getUserFreeScheduleCount=function(){return T};this.setUserFreeScheduleCount=function(y){T=y};this.getUserUseScheduleCount=function(){return qa};this.setUserUseScheduleCount=function(y){qa=y};this.getTenantFreeScheduleCount=function(){return da};this.setTenantFreeScheduleCount=
function(y){da=y};this.getTenantPayScheduleCount=function(){return a};this.setTenantPayScheduleCount=function(y){a=y};this.getTenantScheduleCount=function(){return n};this.setTenantScheduleCount=function(y){n=y};this.getTenantUseScheduleCount=function(){return f};this.setTenantUseScheduleCount=function(y){f=y};this.getOtherUserTenantUseScheduleCount=function(){return t};this.setOtherUserTenantUseScheduleCount=function(y){t=y};this.getTotalFileSize=function(){return r};this.setTotalFileSize=function(y){r=
y};this.getAvaFileSize=function(){return v};this.setAvaFileSize=function(y){v=y};this.getTotalScheduleCount=function(){return G};this.setTotalScheduleCount=function(y){G=y};this.getAvaScheduleCount=function(){return M};this.setAvaScheduleCount=function(y){M=y};this.getUserUseFileSizePercent=function(){return x};this.setUserUseFileSizePercent=function(y){x=y};this.getTenantOTherUserFileSizePercent=function(){return C};this.setTenantOTherUserFileSizePercent=function(y){C=y};this.getUserFreeFileSizePercent=
function(){return J};this.setUserFreeFileSizePercent=function(y){J=y};this.getUserUseScheduleCountPercent=function(){return z};this.setUserUseScheduleCountPercent=function(y){z=y};this.getTenantOTherScheduleCountPercent=function(){return P};this.setTenantOTherScheduleCountPercent=function(y){P=y};this.getUserFreeScheduleCountPercent=function(){return R};this.setUserFreeScheduleCountPercent=function(y){R=y};this.getUserAvaFileSize=function(){return aa};this.setUserAvaFileSize=function(y){aa=y};this.getTenantAvaFileSize=
function(){return fa};this.setTenantAvaFileSize=function(y){fa=y};this.getUserAvaScheduleCount=function(){return I};this.setUserAvaScheduleCount=function(y){I=y};this.getTenantAvaScheduleCount=function(){return m};this.setTenantAvaScheduleCount=function(y){m=y};this.getTenantUseFileSizePercent=function(){return Q};this.setTenantUseFileSizePercent=function(y){Q=y};this.getTenantUseScheduleCountPercent=function(){return ta};this.setTenantUseScheduleCountPercent=function(y){ta=y};this.fromJsonObject=
function(y){e.setUserFreeFileSize(y.userFreeFileSize);e.setUserUseFileSize(y.userUseFileSize);e.setTenantFreeFileSize(y.tenantFreeFileSize);e.setTenantPayFileSize(y.tenantPayFileSize);e.setTenantFileSize(y.tenantFileSize);e.setTenantUseFileSize(y.tenantUseFileSize);e.setOtherUserTenantUseFileSize(y.otherUserTenantUseFileSize);e.setUserFreeScheduleCount(y.userFreeScheduleCount);e.setUserUseScheduleCount(y.userUseScheduleCount);e.setTenantFreeScheduleCount(y.tenantFreeScheduleCount);e.setTenantPayScheduleCount(y.tenantPayScheduleCount);
e.setTenantScheduleCount(y.tenantScheduleCount);e.setTenantUseScheduleCount(y.tenantUseScheduleCount);e.setOtherUserTenantUseScheduleCount(y.otherUserTenantUseScheduleCount);e.setTotalFileSize(y.totalFileSize);e.setAvaFileSize(y.avaFileSize);e.setUserAvaFileSize(y.userAvaFileSize);e.setTenantAvaFileSize(y.tenantAvaFileSize);e.setTotalScheduleCount(y.totalScheduleCount);e.setAvaScheduleCount(y.avaScheduleCount);e.setUserAvaScheduleCount(y.userAvaScheduleCount);e.setTenantAvaScheduleCount(y.tenantAvaScheduleCount);
e.setUserUseFileSizePercent(y.userUseFileSizePercent);e.setTenantOTherUserFileSizePercent(y.tenantOTherUserFileSizePercent);e.setUserFreeFileSizePercent(y.userFreeFileSizePercent);e.setUserUseScheduleCountPercent(y.userUseScheduleCountPercent);e.setTenantOTherScheduleCountPercent(y.tenantOTherScheduleCountPercent);e.setUserFreeScheduleCountPercent(y.userFreeScheduleCountPercent);e.setTenantUseFileSizePercent(y.tenantUseFileSizePercent);e.setTenantUseScheduleCountPercent(y.tenantUseScheduleCountPercent)}}
function Ga(e,A){cb.call(this);var k=this.protectedMethod,g=this,b,q,B;(function(){k.setTitle(c.get("qingResourceFilesDetail","\u8f7b\u5206\u6790\u5b58\u50a8\u8be6\u60c5"));g.setSize(880,480);k.setSelectable(!0);k.setContentPaneCreator(function(){b=new Oa(e,A);b.setGlobal(q);b.setModel(B);var U=b.getJqUi();U.css("top","10px");return U});k.setFooterClosingOnly(!0);k.setClosingChecker2(null,function(U){k.destroy();return!0});k.setClosingAction(function(U){})})();this.refreshTable=function(){b.refreshTable()};
this.setGlobal=function(U){q=U};this.setModel=function(U){B=U}}function ha(e,A,k,g){cb.call(this);var b=this.protectedMethod,q=this,B,U,T;(function(){var qa=g?c.get("scheduleDetailHistory","\u5386\u53f2\u8c03\u5ea6\u8be6\u60c5"):c.get("scheduleDetailIntraday","\u5f53\u65e5\u8c03\u5ea6\u8be6\u60c5");b.setTitle(qa);q.setSize(880,480);b.setSelectable(!0);b.setContentPaneCreator(function(){U=g?new kb(A,k,!1):new Va(e,A,k,!1);U.setGlobal(B);U.setModel(T);var da=U.getJqUi();da.css("top","10px");g&&da.css("border",
"1px solid #ccc");return da});b.setFooterClosingOnly(!0);b.setClosingChecker2(null,function(da){b.destroy();return!0});b.setClosingAction(function(da){})})();this.refreshTable=function(){U.refreshTable()};this.setGlobal=function(qa){B=qa};this.setModel=function(qa){T=qa}}function Oa(e,A,k){function g(E,V){KTDefaultCellRender.call(this,E);var pa=this,Pa=this.paintCellUI;this.paintCellUI=function(ma,Da){var Ma=pa.getCurrentRowIdx(),Sa=pa.getCurrentRow(),ab=pa.getCurrentColIdx();pa.setPaddingHV(8,1);
if(1==Ma)Pa(ma,Da),b&&5!=ab&&b.addSortingTips($(ma),V[ab]),b||3!=ab||B||(B=new Ra,B.setFunSortChangeListener(function(W){U=Q[ab];T=Ca.ORDER_DESC;W&&(U=W.getField(),T=W.getOrder());fa=!1;W=n.createResourceFacade(function(S){R(S,G.resetPaginationAndJumpToFirstPage)},function(S,Ia){return!1});W.getFileUsageInfoByPaging(e,1,G.getPageSize(),U,T,qa);W.setShowBlocking(!0)})),fa&&3==ab&&B.addDefaultSortingTips($(ma),V[ab]);else if(2<Ma&&5==ab){if(V&&2<=V.length){Sa=a.getRow(Ma);var Ja=Sa.getUserObject();
if(Ja){Sa=Ja.fromType;var hb=Ja.fromId,Qa=Ja.fromPath,ob=Ja.fromTargetType,sb=Ja.userId;Da=Ja.sourceExist;Ma=$(ma);ma=$("<div>");ma.text(c.get("wOpen","\u6253\u5f00"));ma.addClass("resourceinfo-detaillist-wopen");Da&&ma.appendTo(Ma);if("THEME"==Sa||"THEMESOURCECONVERT"==Sa||"THEMESCHEDULE"==Sa)ma.on("click",function(W){A&&A(Ja.fromId,Ja.fromName)});else if(Xa.isFromPublish(Sa,hb))ma.on("click",function(W){(new ba).openPublishManager({id:hb,type:ob,path:Qa,userId:sb,lappPathName:Ja.lappPathName,appType:Ja.appType})});
else if("IMAGELIBRARY"==Sa)ma.on("click",function(W){(new ba).openImglib({id:hb,categoryId:Qa})});else if("FONTLIBRARY"==Sa){Sa=Ja.fromPathName;Da=Sa.lastIndexOf("/");var ca=Sa.substring(Da+1);ma.on("click",function(W){W=new ba;var S={fontId:Qa,title:ca,oMessageCurtain:n.getMessageCurtain()};W.openFontDetailPanel(S)})}else if(Xa.isFromTimePush(Sa,hb))ma.on("click",function(W){(new ba).openPushManager({id:Qa,type:ob})})}}}else 2<Ma&&0==ab?(Da=$("<span>"),Da.css({"padding-left":"8px","padding-right":"8px",
"line-height":"28px"}),Sa=Sa.getCell(ab).getValue(),Ta(Da,qa,Sa),Da.appendTo(ma)):Pa(ma,Da)};var Ta=function(ma,Da,Ma){if(Da&&Ma){Da=Da.toUpperCase();var Sa=Ma.toUpperCase(),ab=Sa.split(Da),Ja=Da.length,hb;for(hb in ab){var Qa=Sa.indexOf(ab[hb]),ob=Ma.substr(ca,ab[hb].length);Qa+=ab[hb].length;var sb=Sa.length-Qa;Sa=Sa.substr(Qa,sb);Ma=Ma.substr(Qa,sb);Qa=$("<span>");Qa.text(ob);Qa.appendTo(ma);if(hb!=ab.length-1&&1<ab.length){var ca=Sa.indexOf(Da);ob=Ma.substr(ca,Ja);Qa=ca+Ja;sb=Sa.length-Qa;Sa=
Sa.substr(Qa,sb);Ma=Ma.substr(Qa,sb);Qa=$("<span>");Qa.text(ob);Qa.css("color","red");Qa.clone().appendTo(ma)}}}else ma.text(Ma)}}new Ea;var b,q,B,U,T,qa,da,a,n,f,t,r,v,aa,fa=!0,G=new Ba,M=c.get("subjectDeleted","\u4e1a\u52a1\u4e3b\u9898\u5df2\u5220\u9664"),I=c.get("publishRecordDeleted","\u53d1\u5e03\u8bb0\u5f55\u5df2\u5220\u9664"),m=c.get("pushConfigDeleted","\u5b9a\u65f6\u63a8\u9001\u914d\u7f6e\u5df2\u5220\u9664"),x=c.get("imageDeleted","\u56fe\u7247\u5df2\u5220\u9664"),C=c.get("fontDeleted","\u5b57\u4f53\u5df2\u5220\u9664"),
J=[c.get("fileName","\u6587\u4ef6\u540d\u79f0"),c.get("path","\u8def\u5f84"),c.get("fileTypeName","\u6587\u4ef6\u7c7b\u578b"),c.get("size","\u5927\u5c0f"),c.get("createDate","\u521b\u5efa\u65f6\u95f4"),c.get("operation","\u64cd\u4f5c")],Q="displayName path fromType fileSize createDate operation".split(" ");this.getJqUi=function(){null==da&&(da=$("<div>"),P(),ta());return da};this.setGlobal=function(E){n=E};this.setModel=function(E){f=E};var z=function(){if(!a){a=za.createTable();v=$(a.getUI());a.addColumns(J.length);
a.getColumn(0).setWidth(k?152:180);a.getColumn(1).setWidth(k?200:222);a.getColumn(2).setWidth(k?130:117);a.getColumn(3).setWidth(k?75:88);a.getColumn(4).setWidth(132);a.getColumn(5).setWidth(80);for(var E=za.createHeadRow(a),V=0;V<J.length;V++)E.getCell(V).setValue(J[V]);E=new g(a,Q);E.setOutsideVisible(!1);a.setCellRender(E);a.setCellAcrossListener(function(pa,Pa,Ta){da&&da.find(".resourceinfo-detaillist-table-op").remove();var ma=pa&&0<pa.length?pa[0]:null;q!=ma&&(q&&(b.hideSortingTips($(q)),q=
null),1==Pa&&1!=Ta&&5!=Ta&&(b||(b=new Ra,b.setFunSortChangeListener(function(Da){U=Q[Ta];T=Ca.ORDER_DESC;Da&&(U=Da.getField(),T=Da.getOrder());fa=!1;Da=n.createResourceFacade(function(Ma){R(Ma,G.resetPaginationAndJumpToFirstPage)},function(Ma,Sa){return!1});Da.getFileUsageInfoByPaging(e,1,G.getPageSize(),U,T,qa);Da.setShowBlocking(!0)})),b.showSortingTips(pa,Q[Ta]),q=ma))});F.layoutCtrl(v,10,32,k?780:830,308);v.appendTo(da)}r||(r=$("<div>"),E="<span style='color: "+(.9>f.getUserUseFileSizePercent()?
"#688BF7":"#F34E4E")+";'>"+f.getUserUseFileSize()+"MB</span>",E=c.get("usedSpace","\u5df2\u4f7f\u7528\u7a7a\u95f4")+"\uff1a"+E,r.html(E),r.addClass("resourceinfo-detaillist-resource-used-label"),r.css({top:"8px",left:"110px"}),r.appendTo(da));t||(t=new Y);t.loadLappDirName(aa,function(){Z(aa,Q)})};this.refreshTable=function(){za.refresh(a)};var P=function(){G.setJumpToPageListener(function(E,V,pa){var Pa=n.createResourceFacade(function(ma){R(ma,pa)},function(ma,Da){return!1});U="fileSize";T=Ca.ORDER_DESC;
if(b){var Ta=b.getShowSortingModel();Ta&&(U=Ta.getField(),T=Ta.getOrder())}Pa.getFileUsageInfoByPaging(e,E,V,U,T,qa);Pa.setShowBlocking(!0)});G.setComboBoxItemModelsAndSelectedItem([5,10,20,50,100,500,1E3],2);da.append(G.getJqUi())},R=function(E,V){void 0===E.infos||null===E.infos?y():(V?V(E.totalRow):G.refreshPagination(),aa=E.infos,Z(aa,Q));return!0},ta=function(){var E=n.createResourceFacade(function(pa){void 0===pa.infos||null===pa.infos?y():(aa=pa.infos,G.resetPaginationAndJumpToFirstPage(pa.totalRow),
z());return!0},function(pa,Pa){return!1});U="filesize";T=Ca.ORDER_DESC;if(b){var V=b.getShowSortingModel();V&&(U=V.getField(),T=V.getOrder())}E.getFileUsageInfoByPaging(e,1,G.getPageSize(),U,T,qa);E.setShowBlocking(!0)},y=function(){var E=n.getMessageCurtain(),V=c.get("resourceDetailLoadFail","\u83b7\u53d6\u8d44\u6e90\u660e\u7ec6\u5931\u8d25\u3002");E.showError(V,2E3)},Z=function(E,V){a.setSyncUIWhenModelChanged(!1);za.clearWithoutHead(a);for(var pa=0;pa<E.length;pa++)for(var Pa=za.createRow(a),Ta=
0;Ta<V.length;Ta++){var ma=E[pa][V[Ta]];if("createDate"==V[Ta])Pa.getCell(Ta).setValue(E[pa][V[Ta]+"Format"]);else if("path"==V[Ta]){var Da=E[pa].fromPathName,Ma=E[pa].fromType,Sa=E[pa].fromId;ma=E[pa].fromTargetType;var ab=E[pa].sourceExist;if(u(Ma))var Ja=ab?Da:M;else Xa.isFromPublish(Ma,Sa)?ab?Y.MOBILE==ma?(Da=t.getLappPathName(E[pa],"fromId"),Ja=d.getPublishTargetType(ma)+"\uff1a"+Da,E[pa].lappPathName=Da,ma=t.getLappAppType(E[pa],"fromId"),E[pa].appType=ma):Ja=d.getPublishTargetType(ma)+"\uff1a"+
Da:Ja=I:"IMAGELIBRARY"==Ma?Ja=ab?c.get("imageLib","\u56fe\u7247\u5e93")+"\uff1a"+Da:x:"FONTLIBRARY"==Ma?Ja=ab?c.get("fontLib","\u5b57\u4f53\u5e93")+"\uff1a"+Da:C:Xa.isFromTimePush(Ma,Sa)&&(Ja=ab?fb.getPushTargetType(ma)+c.get("timingPush","\u5b9a\u65f6\u63a8\u9001"):m);Pa.getCell(Ta).setValue(Ja)}else"fromType"==V[Ta]?((Ja=E[pa].fromName)&&u(E[pa].fromType)&&Pa.setUserObject(E[pa]),Ja=Aa.getFromType(ma),Pa.getCell(Ta).setValue(Ja)):"operation"==V[Ta]?(Ma=E[pa].fromType,ma=E[pa].fromTargetType,Xa.isFromPublish(Ma,
Sa)&&Y.MOBILE==ma&&(Da=t.getLappPathName(E[pa],"fromId"),E[pa].lappPathName=Da,ma=t.getLappAppType(E[pa],"fromId"),E[pa].appType=ma),Pa.setUserObject(E[pa])):Pa.getCell(Ta).setValue(ma)}1<a.getRowsCount()&&(E=new KTBorderStyle,E.setLeftBorderWidth(0),a.getRow(1).getCell(0).setBorder(E));a.updateUI(!0);a.setSyncUIWhenModelChanged(!0);v.children(":first-child").children(":first-child").css("width","100%");E=a;V=E.keepScrollStatus();V.v&&(V.v=0);E.restoreScrollStatus(V)},u=function(E){return"THEME"==
E||"THEMESOURCECONVERT"==E||"THEMESCHEDULE"==E}}function Va(e,A,k,g){lb.call(this,A,k,g);var b=this.protectedMethod,q;this.getJqUi=function(){null==q&&(q=$("<div>"),b.createPagination(),b.initResourceInfoDetailList());return q};this.executeGetResourceInfoDetailList=function(B,U,T){B.getTodayScheduleInfoByPaging(e,U,T,b.getSortField(),b.getSortOrder())};this.setTipsLabelAndTable=function(){var B=$("<div>"),U="<span style='color: "+(b.getModel().getUserUseScheduleCountPercent()<Va.WARNING_COUNT?"#688BF7":
"#F34E4E")+";'>"+b.getModel().getUserUseScheduleCount()+c.get("times","\u6b21")+"</span>";U=c.get("usedSchedule","\u5df2\u4f7f\u7528\u8c03\u5ea6\u6b21\u6570")+"\uff1a"+U;B.html(U);B.addClass("resourceinfo-detaillist-resource-used-label");B.css("top","8px");B.css("left","100px");B.appendTo(q);F.layoutCtrl(b.getJqTable(),10,32,g?782:830,308);b.getJqTable().appendTo(q)}}function kb(e,A,k){lb.call(this,e,A,k);var g=this.protectedMethod,b,q,B,U,T,qa,da=0,a=0,n,f=[new ua(c.get("executeAllType","\u5168\u90e8\u72b6\u6001"),
0),new ua(c.get("executeSuccess","\u6210\u529f"),1),new ua(c.get("executeFail","\u5931\u8d25"),2),new ua(c.get("someFailure","\u90e8\u5206\u5931\u8d25"),5),new ua(c.get("unPush","\u672a\u63a8\u9001"),4),new ua(c.get("inProgress","\u8fdb\u884c\u4e2d"),3)],t=[new ua(c.get("scheduleTypeAll","\u5168\u90e8\u8c03\u5ea6\u7c7b\u578b"),0),new ua(c.get("scheduleTypeETD","\u5b9a\u65f6\u9884\u63d0\u53d6"),1),new ua(c.get("scheduleTypePE","\u5b9a\u65f6\u63a8\u9001-\u90ae\u4ef6"),6),new ua(c.get("scheduleTypePCH",
"\u5b9a\u65f6\u63a8\u9001-\u4e91\u4e4b\u5bb6"),3),new ua(c.get("scheduleTypePEWC","\u5b9a\u65f6\u63a8\u9001-\u4f01\u4e1a\u5fae\u4fe1"),4),new ua(c.get("scheduleTypePDD","\u5b9a\u65f6\u63a8\u9001-\u9489\u9489"),5),new ua(c.get("scheduleTypeLT","\u5b9a\u65f6\u66f4\u65b0-\u7f29\u7565\u56fe"),2)];this.getJqUi=function(){if(null==b){b=$("<div>");var M=$("<div>");M.addClass("resourceinfo-detail-search-area");var I=new O;I.setSearchListener(r);q=I;I=q.getJqUi();F.layoutCtrlWithLRTB(I,null,14,171,-8,null,
25);I.appendTo(M);B=v(f,aa);I=B.getJqUi();F.layoutCtrl(I,240,0,77,24);I.appendTo(M);U=v(t,fa);I=U.getJqUi();F.layoutCtrl(I,350,0,120,24);I.appendTo(M);T=new xa;I=T.getJqUi();I.css("box-shadow","0 1px 0 0 #f0f0f0");F.layoutCtrl(I,null,4,200,20);T.setFunConfirmListener(G);I.appendTo(M);M.appendTo(b);g.createPagination();F.layoutCtrl(g.getPaginationJqUi(),null,32,null,null);g.initResourceInfoDetailList()}return b};this.executeGetResourceInfoDetailList=function(M,I,m){var x=T.getDateRange(),C=x[0];x=
x[1];M.getAllResourceInfoDetailListByPagination(I,m,g.getSortField(),g.getSortOrder(),qa,da,a,C,x)};this.setTipsLabelAndTable=function(){var M=new vb;M.setIconType(vb.ICON_TYPE_QUESTION);M.setTipsHtml(c.get("historyTips","\u4ec5\u4fdd\u7559\u6700\u8fd1\u4e00\u5e74\u7684\u8c03\u5ea6\u8be6\u60c5\u3002"));n=M.getJqUi();n.appendTo(b);g.setFunRefreshCssListener(function(){n.css("top","40px");var I=n,m=I.css,x="en"==va.getUrlParamValue("language"),C=g.getTotalRows()+"";m.call(I,"left",(x?74:32)+8*C.length+
"px")});F.layoutCtrl(g.getJqTable(),10,64,k?782:830,276);g.getJqTable().appendTo(b)};this.getSearchText=function(){return qa};var r=function(){qa=q.getInputContent().trim();g.initResourceInfoDetailList()},v=function(M,I){var m=new Fa;m.setSearchType(M);m.setSelectedChangedListener(I);return m},aa=function(M,I,m){da=m.getTypeId();r()},fa=function(M,I,m){a=m.getTypeId();r()},G=function(){r()}}function lb(e,A,k){function g(){return function(z,P,R){q.getJqUi()&&q.getJqUi().find(".resourceinfo-detaillist-table-op").remove();
var ta=z&&0<z.length?z[0]:null;n!=ta&&(n&&(a.hideSortingTips($(n)),n=null),1==P&&1!=R&&5!=R&&6!=R&&(a||(a=new Ra,a.setFunSortChangeListener(function(y){t=m[R];r=Ca.ORDER_DESC;y&&(t=y.getField(),r=y.getOrder());v=!1;y=U.createResourceFacade(function(Z){C(Z,G.resetPaginationAndJumpToFirstPage)},function(Z,u){return!1});q.executeGetResourceInfoDetailList(y,1,G.getPageSize());y.setShowBlocking(!0)})),a.showSortingTips(z,m[R]),n=ta))}}function b(z,P){KTDefaultCellRender.call(this,z);var R=this,ta=this.paintCellUI;
this.paintCellUI=function(Z,u){var E=R.getCurrentRowIdx(),V=R.getCurrentRow(),pa=R.getCurrentColIdx();R.setPaddingHV(8,1);if(1==E)ta(Z,u),a&&1!=pa&&5!=pa&&6!=pa&&a.addSortingTips($(Z),P[pa]),a||3!=pa||f||(f=new Ra,f.setFunSortChangeListener(function(hb){t=m[pa];r=Ca.ORDER_DESC;hb&&(t=hb.getField(),r=hb.getOrder());v=!1;hb=U.createResourceFacade(function(Qa){C(Qa,G.resetPaginationAndJumpToFirstPage)},function(Qa,ob){return!1});q.executeGetResourceInfoDetailList(hb,1,G.getPageSize());hb.setShowBlocking(!0)})),
v&&3==pa&&f.addDefaultSortingTips($(Z),P[pa]);else if(2<E&&5<=pa)if(5==pa){if(P&&6<=P.length&&"executeState"==P[5]){V=B.getRow(E);var Pa=V.getUserObject();V=V.getCell(pa);if(Pa){u=V.getValue();V="en"==va.getUrlParamValue("language");if(u==w.EXECUTESTATE_SUCCESS){E="green";var Ta=V?50:30;var ma=c.get("success","\u6210\u529f")}else u==w.EXECUTESTATE_EXECUTING?(E="blue",Ta=V?70:40,ma=c.get("inProgress","\u8fdb\u884c\u4e2d")):u==w.EXECUTESTATE_WARNINGRULE_UNMATCHED?(E="#ff831f",Ta=V?52:40,ma=c.get("unPush",
"\u672a\u63a8\u9001")):u==w.EXECUTESTATE_PUSH_PART_ERROR?(E="#ff831f",Ta=V?62:52,ma=c.get("someFailure","\u90e8\u5206\u5931\u8d25")):(E="red",Ta=30,ma=c.get("fail","\u5931\u8d25"));Z=$(Z);var Da=$("<div style='border: solid 1px;text-align:center;height: 16px'>");Da.text(ma);Da.css("color",E);Da.css("width",Ta+"px");Da.css("position","absolute");Da.css("left","3px");Da.css("top","0");Da.css("bottom","0");Da.css("margin","auto");Da.appendTo(Z);u==w.EXECUTESTATE_NOENOUGHSCHEDULECOUNT?(u=$("<div style='text-align:left;width:75px;height: 16px'>"),
u.text(c.get("insufficientSchedulingTimes","\u8c03\u5ea6\u6b21\u6570\u4e0d\u8db3")),u.attr("title",c.get("insufficientSchedulingTimes","\u8c03\u5ea6\u6b21\u6570\u4e0d\u8db3")),u.addClass("resourceinfo-detaillist-desc"),u.appendTo(Z)):u==w.EXECUTESTATE_NOFILESTORAGE||u==w.EXECUTESTATE_EXCEPTION||u==w.EXECUTESTATE_PUSH_PART_ERROR||u==w.EXECUTESTATE_NO_LICENCE||u==w.EXECUTESTATE_USER_DISABLED?(u=$("<div>"),u.text(c.get("detail","\u8be6\u60c5")),u.addClass("resourceinfo-detaillist-detail"),u.appendTo(Z),
u.on("click",function(hb){A(Pa.id,U)})):u==w.EXECUTESTATE_WARNINGRULE_UNMATCHED&&(u=$("<div style='text-align:left;width:86px;height: 16px'>"),u.text(c.get("warningRuleUnMatched","\u4e0d\u6ee1\u8db3\u9884\u8b66\u89c4\u5219")),u.attr("title",c.get("warningRuleUnMatched","\u4e0d\u6ee1\u8db3\u9884\u8b66\u89c4\u5219")),u.addClass("resourceinfo-detaillist-desc"),u.css("left",V?"60px":"55px"),u.appendTo(Z))}}}else if(6==pa){if(P&&6<=P.length&&"operation"==P[6]&&(V=B.getRow(E),Pa=V.getUserObject())){V=Pa.sourceExist;
Z=$(Z);u=$("<div>");u.text(c.get("wOpen","\u6253\u5f00"));u.addClass("resourceinfo-detaillist-wopen");V&&u.appendTo(Z);Z=Pa.methodName;var Ma=Pa.sourceId,Sa=Pa.sourcePath,ab=Pa.sourceTargetType,Ja=Pa.userId;if("extractThemeData"==Z)u.on("click",function(hb){e&&e(Pa.sourceId,Pa.sourceName)});else if("updateLappThumbnail"==Z)u.on("click",function(hb){(new ba).openPublishManager({id:Ma,type:ab,path:Sa,userId:Ja,lappPathName:Pa.lappPathName,appType:Pa.appType})});else if("pushExecute"==Z||"emailPublishExecute"==
Z)u.on("click",function(hb){(new ba).openPushManager({id:Ma,type:ab})})}}else ta(Z,u);else 2<E&&(0==pa||1==pa)?(u=$("<span>"),u.css({"padding-left":"8px","padding-right":"8px","line-height":"28px"}),V=V.getCell(pa),V=V.getValue(),u.attr("title",V),y(u,q.getSearchText(),V),u.appendTo(Z)):ta(Z,u)};var y=function(Z,u,E){if(u&&E){u=u.toUpperCase();var V=E.toUpperCase(),pa=V.split(u),Pa=u.length,Ta;for(Ta in pa){var ma=V.indexOf(pa[Ta]),Da=E.substr(Sa,pa[Ta].length);ma+=pa[Ta].length;var Ma=V.length-ma;
V=V.substr(ma,Ma);E=E.substr(ma,Ma);ma=$("<span>");ma.text(Da);ma.appendTo(Z);if(Ta!=pa.length-1&&1<pa.length){var Sa=V.indexOf(u);Da=E.substr(Sa,Pa);ma=Sa+Pa;Ma=V.length-ma;V=V.substr(ma,Ma);E=E.substr(ma,Ma);ma=$("<span>");ma.text(Da);ma.css("color","red");ma.clone().appendTo(Z)}}}else Z.text(E)}}var q=this,B,U,T,qa,da,a,n,f,t,r,v=!0,aa,fa,G=new Ba,M,I=[c.get("scheduleName","\u8c03\u5ea6\u540d\u79f0"),c.get("scheduleSource","\u6765\u6e90"),c.get("scheduleType","\u8c03\u5ea6\u7c7b\u578b"),c.get("executeStartTime",
"\u6267\u884c\u5f00\u59cb\u65f6\u95f4"),c.get("executeEndTime","\u6267\u884c\u7ed3\u675f\u65f6\u95f4"),c.get("executeState","\u72b6\u6001"),c.get("operation","\u64cd\u4f5c")],m="scheduleName sourceName methodName executeTime endTime executeState operation".split(" ");this.executeGetResourceInfoDetailList=function(z,P,R){throw Error("Override me.");};this.getJqUi=function(){throw Error("Override me.");};this.setTipsLabelAndTable=function(){throw Error("Override me.");};this.getSearchText=function(){};
var x=function(){if(!B){B=za.createTable();da=$(B.getUI());B.addColumns(I.length);B.getColumn(0).setWidth(k?138:168);B.getColumn(1).setWidth(95);B.getColumn(2).setWidth(100);B.getColumn(3).setWidth(132);B.getColumn(4).setWidth(132);B.getColumn(5).setWidth(k?110:120);B.getColumn(6).setWidth(75);for(var z=za.createHeadRow(B),P=0;P<I.length;P++)z.getCell(P).setValue(I[P]);z=new b(B,m);z.setOutsideVisible(!1);B.setCellRender(z);B.setCellAcrossListener(g());q.setTipsLabelAndTable()}M&&M();qa||(qa=new Y);
qa.loadLappDirName(aa,function(){Q(aa,m)})};this.refreshTable=function(){za.refresh(B)};var C=function(z,P){void 0===z.infos||null===z.infos?J():(P?P(z.totalRow):G.refreshPagination(),fa=z.totalRow,aa=z.infos,Q(aa,m))},J=function(){var z=U.getMessageCurtain(),P=c.get("resourceDetailLoadFail","\u83b7\u53d6\u8d44\u6e90\u660e\u7ec6\u5931\u8d25\u3002");z.showError(P,2E3)};this.setGlobal=function(z){U=z};this.setModel=function(z){T=z};var Q=function(z,P){B.setSyncUIWhenModelChanged(!1);za.clearWithoutHead(B);
for(var R=0;R<z.length;R++)for(var ta=za.createRow(B),y=0;y<P.length;y++){var Z=z[R][P[y]];if("executeTime"==P[y]||"endTime"==P[y])ta.getCell(y).setValue(z[R][P[y]+"Format"]);else if("operation"==P[y]){Z=z[R].methodName;var u=z[R].sourceTargetType;"updateLappThumbnail"==Z&&Y.MOBILE==u&&(Z=qa.getLappPathName(z[R],"sourceId"),z[R].lappPathName=Z,Z=qa.getLappAppType(z[R],"sourceId"),z[R].appType=Z);ta.setUserObject(z[R])}else"methodName"==P[y]?(Z=z[R].methodName,u=z[R].sourceTargetType,"extractThemeData"==
Z?Z=c.get("extractThemeData","\u5b9a\u65f6\u9884\u63d0\u53d6"):"updateLappThumbnail"==Z?Z=c.get("updateLappThumbnail","\u5b9a\u65f6\u66f4\u65b0-\u7f29\u7565\u56fe"):"pushExecute"==Z?(Z=fb.getPushTargetType(u)?"-"+fb.getPushTargetType(u):"",Z=c.get("pushExecute","\u5b9a\u65f6\u63a8\u9001")+Z):Z="emailPublishExecute"==Z?c.get("emailPublishExecute","\u5b9a\u65f6\u63a8\u9001-\u90ae\u4ef6"):c.get("otherScheduleExecute","\u5176\u4ed6"),ta.getCell(y).setValue(Z)):ta.getCell(y).setValue(Z)}1<B.getRowsCount()&&
(z=new KTBorderStyle,z.setLeftBorderWidth(0),B.getRow(1).getCell(0).setBorder(z));B.updateUI(!0);B.setSyncUIWhenModelChanged(!0);da.children(":first-child").children(":first-child").css("width","100%");z=B;P=z.keepScrollStatus();P.v&&(P.v=0);z.restoreScrollStatus(P)};this.protectedMethod={createPagination:function(){G.setJumpToPageListener(function(P,R,ta){var y=U.createResourceFacade(function(u){C(u,ta)},function(u,E){return!1});t="executeTime";r=Ca.ORDER_DESC;if(a){var Z=a.getShowSortingModel();
Z&&(t=Z.getField(),r=Z.getOrder())}q.executeGetResourceInfoDetailList(y,P,R);y.setShowBlocking(!0)});G.setComboBoxItemModelsAndSelectedItem([5,10,20,50,100,500,1E3],2);var z=G.getJqUi();q.getJqUi().append(z)},getPaginationJqUi:function(){return G.getJqUi()},getSortOrder:function(){return r},getSortField:function(){return t},initResourceInfoDetailList:function(){var z=U.createResourceFacade(function(R){void 0===R.infos||null===R.infos?J():(aa=R.infos,G.resetPaginationAndJumpToFirstPage(R.totalRow),
fa=R.totalRow,x())},function(R,ta){return!1});t="executeTime";r=Ca.ORDER_DESC;if(a){var P=a.getShowSortingModel();P&&(t=P.getField(),r=P.getOrder())}q.executeGetResourceInfoDetailList(z,1,G.getPageSize());z.setShowBlocking(!0)},setFunRefreshCssListener:function(z){M=z},getJqTable:function(){return da},getModel:function(){return T},getTotalRows:function(){return fa?fa:0}}}function O(){var e,A,k;this.getInputContent=function(){return k.getText()};this.getJqUi=function(){if(!e){var g=$("<div>");k=new L;
k.setPlaceholder(c.get("searchScheduleName","\u641c\u7d22\u8c03\u5ea6\u540d\u79f0/\u6765\u6e90"));k.setSearchListenerDelay(1E3);k.setShowSearchIcon(!0);k.addSearchListener(A);var b=k.getJqUi();b.attr("title",c.get("searchScheduleName","\u641c\u7d22\u8c03\u5ea6\u540d\u79f0/\u6765\u6e90"));b.css({width:"170px",height:"25px","float":"left",right:"0px",top:"8px",position:"relative"});b.appendTo(g);e=g}return e};this.setSearchListener=function(g){A=g}}function Fa(){var e,A,k,g;this.setSearchType=function(q){A=
q};this.setSelectedChangedListener=function(q){k=q};this.setSelected=function(q){g.setSelected(q)};this.getJqUi=function(){e||(e=b());return e};var b=function(){g=new sa;g.setItemModels(A);g.setSelected(A[0]);g.addSelectedChangedListener(k);g.setCustomPainter(function(B,U,T){U.text(T.getTypeName());U.attr("title",T.getTypeName())});var q=g.getJqUi();q.children().css("top","57%");return q}}function ua(e,A){this.getTypeName=function(){return e};this.getTypeId=function(){return A}}function ba(){var e;
this.openPublishManager=function(A){e||(e=X.getFunPublishContext()());var k=com.kingdee.bos.qing.publish.common.PublishManagerDialog,g=X.getFunPublishRemoteImpl()(),b=e;var q=X.getFunPublishContentEditEntrance()();k=new k(g,b,q);k.setSelectedData(A);k.showDialog()};this.openPushManager=function(A){e||(e=X.getFunPublishContext()());var k=new com.kingdee.bos.qing.publish.common.PushManager(X.getFunTimedPushContentEditEntrance()()),g=com.kingdee.bos.qing.timedpush;k.registerEmailPushPanelConstructor(g.EmailConfigManagePanel);
k.initEmailPushConfig(X.getFunPublishRemoteImpl()(),X.getFunPublishedEmailAnonymousViewUrl()(),X.getFunPublishedEmailLoginViewUrl()());k.registerLappPushPanelConstructor(g.LappPushManagePanel);k.initLappPushConfig(function(b,q,B){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,X.getFunPublishRemoteImpl()(),b,q,B)},e);k.setSelectedData(A);k.showDialog()};this.openImglib=function(A,k){k=c.get("imageLib","\u56fe\u7247\u5e93");
var g=bb,b=g.openNewTab,q=la.decodeParamFromUrl(location.search,"path");b.call(g,k,(q?q:"/ierp")+"/qing/imageLibEntrance.do","1535516017197902848");k={};k.id=A.id;k.categoryId=A.categoryId;sessionStorage.setItem("selectImage",JSON.stringify(k))};this.openFontDetailPanel=function(A){var k=A.fontId,g=A.title,b=A.oMessageCurtain;A=X.getFontRemoteImpl();A=new ka(A,function(q){if(q&&!0===q){q=la.decodeParamFromUrl(window.location.search,"path")+"/qing/fontLibDetail.do";q=la.appendParamToUrl(q,"fontId",
k);var B=c.get("editFont","\u7f16\u8f91\u5b57\u4f53 - ")+g;bb.openNewTab(B,q,q,bb.QING_ANALYSIS)}else b.showPrompt(c.get("fontNotExist","\u5b57\u4f53\u4e0d\u5b58\u5728\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5\u3002"),2E3)},function(q){if(40277008===q)return b.showPrompt(c.get("noPermission","\u60a8\u7684\u83dc\u5355\u6743\u9650\u5df2\u53d1\u751f\u53d8\u66f4\uff0c\u65e0\u6cd5\u7ee7\u7eed\u64cd\u4f5c\u3002"),5E3),!0});A.setShowBlocking(!1);A.isFontExist(k)}}function wa(){var e,A,k,g,b,q,B;this.setGlobal=
function(da){b=da};this.setModel=function(da){q=da};this.registerFileResourcePanel=function(da){k=da};this.registerScheduleResourcePanel=function(da){g=da};this.showDialog=function(){A=$("<div class='sa-ctrl-common-modallayer'>");e=new Za(A);var da=$(document.body);A.appendTo(da);var a=da.prop("clientWidth");da=da.prop("clientHeight");a=a-830>>1;da=da-492>>1;e.setTitle(c.get("resouceUsageInfo","\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5"));e.setBounds(a,da,830,492);e.setMinSize(830,492);e.setSelectable(!0);
e.setToolbarVisible(!1);e.setContent(qa());e.addClosedListener(function(n){n.destroy();A.remove()});e.showFooterPane(T);e.show()};var U=function(da,a){a&&a.relayoutViews()},T=function(da){var a=new rb(c.get("close","\u5173\u95ed"));a.setHighlight(!0);var n=a.getJqUi();F.layoutCtrlWithLRTB(n,"50%",0,100,null,13,28);n.addClass("dialog-footer-close");n.css("margin-left","-50px");n.appendTo(da);a.addActionListener(function(f){e.destroy();A.remove()})},qa=function(){B=new ea;B.setTabLevel(ea.SECOND_LEVEL);
B.addTabChangedListener(U);var da=!0;e.getMessageCurtain();if(k){var a=new K(w.TYPE_FILE,b,q);B.addTab(a,da);da=!1}g&&(a=new K(w.TYPE_SCHEDULE,b,q),B.addTab(a,da));return B.getJqUi()}}function K(e,A,k){ea.AbstractTabPane.call(this);var g;this.getJqUi=function(){if(null==g){g=$("<div>");if(e==w.TYPE_FILE){var b=new Oa(e,A.getFunDataModelEntrance(),!0);b.setGlobal(A);b.setModel(k);b=b.getJqUi();b.appendTo(g)}e==w.TYPE_SCHEDULE&&(b=new kb(A.getFunDataModelEntrance(),oa,!0),b.setGlobal(A),b.setModel(k),
b=b.getJqUi(),b.appendTo(g))}return g};this.getTitle=function(){switch(e){case w.TYPE_FILE:return c.get("qingResourceFilesDetail","\u8f7b\u5206\u6790\u5b58\u50a8\u8be6\u60c5");case w.TYPE_SCHEDULE:return c.get("scheduleDetail","\u8c03\u5ea6\u4efb\u52a1\u8be6\u60c5");default:throw Error("unknown type");}};this.relayoutViews=function(){}}function w(e){cb.call(this);var A=this.protectedMethod,k=this,g,b,q,B,U,T,qa,da,a,n,f;(function(){A.setTitle(c.get("resouceUsageInfo","\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5"));
e?k.setSize(750,640):k.setSize(750,420);g=A.getDialogCtrl();A.setSelectable(!0);A.setContentPaneCreator(function(){b||t();return b});A.setFooterClosingOnly(!0);A.setClosingChecker2(null,function(v){A.destroy();return!0});A.setClosingAction(function(v){})})();this.getJqUi=function(){b||t();return b};this.setGlobal=function(v){n=v};this.setModel=function(v){f=v};this.getModel=function(){return f};var t=function(){b=$("<div class='resourceinfo-layer-contentpane' id='resourceinfo-layer-contentpane-id'>");
var v=new ja,aa=0==f.getTenantPayScheduleCount(),fa=new nb;fa.constructor(c.get("personal","\u4e2a\u4eba"));!aa&&v.setTitleComponent(fa);fa="en"==va.getUrlParamValue("language");var G=new ya;G.setOverviewData(parseFloat(f.getUserUseFileSize()),parseFloat(f.getUserFreeFileSize()),parseFloat(f.getUserAvaFileSize()),f.getUserUseFileSizePercent());G.constructor(c.get("qingStorageSpace","\u8f7b\u5b58\u50a8\u7a7a\u95f4"),c.get("qingStorageSpaceTips","\u8f7b\u5b58\u50a8\u7a7a\u95f4\u8bf4\u660e\uff1a<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u9ed8\u8ba4\u4e3a\u6bcf\u7528\u6237\u63d0\u4f9b1G\u8f7b\u5b58\u50a8\u5bb9\u91cf\uff0c\u5360\u6ee1\u540e\u5c06\u65e0\u6cd5\u751f\u6210\u8c03\u5ea6\u6570\u636e\u6587\u4ef6\u6216\u65e0\u6cd5\u4e0a\u4f20\u6570\u636e\u6e90\u6587\u4ef6\uff1b\u53ef\u7533\u8bf7\u6269\u5bb9\uff0c\u6269\u5bb9\u90e8\u5206\u5728\u5f53\u524d\u79df\u6237\u5185\u7684\u6240\u6709\u7528\u6237\u95f4\u5171\u4eab\u3002"),
c.get("store","\u5b58\u50a8"),"MB","#688BF7",fa?118:65,!0);v.setQingStoreComponent(G);var M=new ya;M.setOverviewData(f.getUserUseScheduleCount(),f.getUserFreeScheduleCount(),f.getUserAvaScheduleCount(),f.getUserUseScheduleCountPercent());M.constructor(c.get("scheduleResIntraday","\u5f53\u65e5\u8c03\u5ea6\u6b21\u6570"),c.get("scheduleResIntradayTips","\u5f53\u5929\u8c03\u5ea6\u6b21\u6570\u8bf4\u660e\uff1a<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6bcf\u7528\u6237\u6bcf\u5929\u53ef\u514d\u8d39\u4f7f\u752810\u6b21\u8c03\u5ea6\uff0c\u8d85\u8fc710\u6b21\u540e\u7684\u8c03\u5ea6\u4e0d\u6267\u884c\uff1b\u8f7b\u5b58\u50a8\u6269\u5bb9\u540e\u8d60\u900110\u6b21\u8c03\u5ea6/G\uff0c\u8d60\u9001\u90e8\u5206\u5728\u5f53\u524d\u79df\u6237\u5185\u7684\u6240\u6709\u7528\u6237\u95f4\u5171\u4eab\u3002"),
c.get("schedule","\u8c03\u5ea6"),c.get("times","\u6b21"),"#4B9BF8",fa?140:77,!0,!0);v.setScheduleComponent(M);v.getJqUi().appendTo(b);q=G.getProgressBar().getJqDetailLabel();B=M.getProgressBar().getJqDetailLabel();U=M.getProgressBar().getJqHistoryDetailLabel();q.on("click",function(C){r(w.TYPE_FILE)});B.on("click",function(C){r(w.TYPE_SCHEDULE)});U.on("click",function(C){r(w.TYPE_SCHEDULE_HISTORY)});if(!aa){var I=new ja;v=new nb;v.constructor(c.get("Public","\u516c\u5171"),!0);I.setTitleComponent(v);
G=new ya;G.setOverviewData(parseFloat(f.getTenantUseFileSize()),parseFloat(f.getTenantFileSize()),parseFloat(f.getTenantAvaFileSize()),f.getTenantUseFileSizePercent());G.constructor(c.get("qingStorageSpace","\u8f7b\u5b58\u50a8\u7a7a\u95f4"),c.get("qingStorageSpaceTips","\u8f7b\u5b58\u50a8\u7a7a\u95f4\u8bf4\u660e\uff1a<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u9ed8\u8ba4\u4e3a\u6bcf\u7528\u6237\u63d0\u4f9b1G\u8f7b\u5b58\u50a8\u5bb9\u91cf\uff0c\u5360\u6ee1\u540e\u5c06\u65e0\u6cd5\u751f\u6210\u8c03\u5ea6\u6570\u636e\u6587\u4ef6\u6216\u65e0\u6cd5\u4e0a\u4f20\u6570\u636e\u6e90\u6587\u4ef6\uff1b\u53ef\u7533\u8bf7\u6269\u5bb9\uff0c\u6269\u5bb9\u90e8\u5206\u5728\u5f53\u524d\u79df\u6237\u5185\u7684\u6240\u6709\u7528\u6237\u95f4\u5171\u4eab\u3002"),
c.get("store","\u5b58\u50a8"),"MB","#688BF7",fa?120:65);I.setQingStoreComponent(G);M=new ya;M.setOverviewData(f.getTenantUseScheduleCount(),f.getTenantScheduleCount(),f.getTenantAvaScheduleCount(),f.getTenantUseScheduleCountPercent());M.constructor(c.get("scheduleResIntraday","\u5f53\u65e5\u8c03\u5ea6\u6b21\u6570"),c.get("scheduleResIntradayTips","\u5f53\u5929\u8c03\u5ea6\u6b21\u6570\u8bf4\u660e\uff1a<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6bcf\u7528\u6237\u6bcf\u5929\u53ef\u514d\u8d39\u4f7f\u752810\u6b21\u8c03\u5ea6\uff0c\u8d85\u8fc710\u6b21\u540e\u7684\u8c03\u5ea6\u4e0d\u6267\u884c\uff1b\u8f7b\u5b58\u50a8\u6269\u5bb9\u540e\u8d60\u900110\u6b21\u8c03\u5ea6/G\uff0c\u8d60\u9001\u90e8\u5206\u5728\u5f53\u524d\u79df\u6237\u5185\u7684\u6240\u6709\u7528\u6237\u95f4\u5171\u4eab\u3002"),
c.get("schedule","\u8c03\u5ea6"),c.get("times","\u6b21"),"#4B9BF8",fa?130:77);I.setScheduleComponent(M);fa=I.getJqUi();fa.css("top","260px");!aa&&fa.appendTo(b);T=v.getOpenIcon().getJqUi();qa=v.getCloseIcon().getJqUi();da=G.getJqUi();a=M.getJqUi();var m=$(".sa-ctrl-common-modallayer").width(),x=$(".sa-ctrl-common-modallayer").height();.9<=f.getUserUseScheduleCountPercent()||.9<=f.getUserUseFileSizePercent()?(da.show(),a.show(),T.hide(),qa.show(),g.setBounds((m-750)/2,(x-640)/2,750,640)):(da.hide(),
a.hide(),T.show(),qa.hide(),g.setBounds((m-750)/2,(x-420)/2,750,420));T.hover(function(){Ha.background(T,"chevrons_down_hover")},function(){Ha.background(T,"chevrons_down")});qa.hover(function(){Ha.background(qa,"chevrons_up_hover")},function(){Ha.background(qa,"chevrons_up")});T.on("click",function(C){da.show();a.show();T.hide();qa.show();C=$(".sa-ctrl-common-modallayer").width();var J=$(".sa-ctrl-common-modallayer").height();g.setBounds((C-750)/2,(J-640)/2,750,640)});qa.on("click",function(C){da.hide();
a.hide();T.show();qa.hide();g.setBounds((m-750)/2,(x-640)/2,750,420)})}},r=function(v){v==w.TYPE_FILE?(v=new Ga(v,n.getFunDataModelEntrance()),v.setGlobal(n),v.setModel(f),v.showDialog()):v==w.TYPE_SCHEDULE?(v=new ha(v,n.getFunDataModelEntrance(),oa),v.setGlobal(n),v.setModel(f),v.showDialog()):v==w.TYPE_SCHEDULE_HISTORY&&(v=new ha(v,n.getFunDataModelEntrance(),oa,!0),v.setGlobal(n),v.setModel(f),v.showDialog())}}function oa(e,A){var k=A.createResourceFacade(function(g){if(g){var b=g.errorCode,q=
g.errorMessage,B="",U=!1,T=new xb;T.setOptionType(xb.OPTION_OK);if(2101001==b)B=c.get("themeHasNotFound","\u5bf9\u5e94\u4e3b\u9898\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002");else if(2106001==b)B=c.get("dsbHasNotFound","\u5bf9\u5e94\u4eea\u8868\u677f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002");else if(2101010==b||2301010==b)B=c.get("themeFileSizeLimit","\u8f7b\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3\u3002");else if(2100001==b)B=c.get("qingStorageNoSpace","\u78c1\u76d8\u7a7a\u95f4\u4e0d\u8db3\uff0c\u8bf7\u8054\u7cfb\u8fd0\u7ef4\u4eba\u5458\u6dfb\u52a0\u78c1\u76d8");
else if(2314104==b)B=c.get("sendEmailsSenderException","\u53d1\u4ef6\u90ae\u7bb1\u914d\u7f6e\u6709\u8bef\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e\u3002"),U=!0;else if(2314105==b)B=c.get("sendEmailsInvalidReceiversException","\u90e8\u5206\u6536\u4ef6\u90ae\u7bb1\u63a8\u9001\u5931\u8d25\uff0c\u8bf7\u4ed4\u7ec6\u6838\u5b9e\u6536\u4ef6\u90ae\u7bb1\uff0c\u63a8\u9001\u5931\u8d25\u7684\u6536\u4ef6\u90ae\u7bb1\u6709\uff1a#1\u3002").replace("#1",q),U=!0;else if(21000008==b)B=c.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"),
U=!0;else if(2101006==b)B=c.get("lackDataEntityAuthority","\u6ca1\u6709\u8be5\u5b9e\u4f53\u6570\u636e\u6e90\u7684\u67e5\u770b\u6743\u9650"),U=!0;else if(2020106==b||2020107==b)B=c.get("noDataCenterAuthority","\u6ca1\u6709\u6570\u636e\u4e2d\u5fc3\u6743\u9650"),q&&(B=c.get("noDataCenterAuthorityWithUser","\u7528\u6237\u201c#1\u201d\u6ca1\u6709\u6570\u636e\u4e2d\u5fc3\u6743\u9650").replace("#1",q)),U=!0;else if(3201001==b||3201003==b)B=c.get("noSuperQueryPerm","\u6ca1\u6709\u8d85\u7ea7\u67e5\u8be2\u76f8\u5173\u6a21\u5f0f\u7684\u6743\u9650"),
q&&!q.startsWith("com.kingdee.bos")&&(B=c.get("noSuperQueryPermWithUser","\u7528\u6237\u201c#1\u201d\u6ca1\u6709\u8d85\u7ea7\u67e5\u8be2\u76f8\u5173\u6a21\u5f0f\u7684\u6743\u9650").replace("#1",q)),U=!0;else{if(2101018==b){B=c.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   ");g=g.errorStackTrace;if(b=/(?:\u3010\s)(.+)(?=\s\u3011)/.exec(g)){var qa=
b[1];qa=c.get("notSupportQingAnalysis","\u4ee5\u4e0b\u4e1a\u52a1\u5b9e\u4f53\u5c1a\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff1a")+"\r  "+qa.replace(/,/g,c.get("semicolon","\uff1b")+"\r  ")}var da=Ya.getSupportQingAnalysisUrl();T.setMessage(B);qa?T.setDetail(qa):T.setDetail(g);T.setCustomPainter(function(a,n){var f=$("<div class='sa-ctrl-msgdlg-text'>");f.css("bottom",20);var t=$("<a onclick='javascript:window.open(\""+da+"\");' href='#'>");t.css("cursor","pointer");
t.css("color","#5582f3");t.text(c.get("viewDocument","\u67e5\u770b\u5e2e\u52a9\u6587\u6863"));f.text(n);f.append(t);a.append(f)});T.showDialog();return}if(2101025==b){T.setCustomPainter(function(a,n){n=$("<div>");F.layoutCtrlWithLRTB(n,100,null,100,null,null,80);Ha.background(n,"msg-warning");n.appendTo(a);n=$("<div>");F.layoutCtrlWithLRTB(n,5,null,280,100,null,30);n.text(c.get("prepareDataReject","\u5bf9\u5e94\u7684\u4e1a\u52a1\u4e3b\u9898\u56e0\u5b58\u5728\u6162\u67e5\u8be2\uff0c\u5df2\u88ab\u4e34\u65f6\u7981\u7528\u3002\u8bf7\u4f18\u5316\u4e1a\u52a1\u4e3b\u9898\u5bf9\u5e94\u7684\u6570\u636e\u51c6\u5907\u3002"));
n.appendTo(a)});T.showDialog(320,300);return}if(4300113==b){B=c.get("newErrorCodeMessage","\u83b7\u53d6\u8f7b\u5e94\u7528\u7528\u6237\u4fe1\u606f\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u540c\u6b65\u7528\u6237\u4fe1\u606f\u3002\u64cd\u4f5c\u65b9\u5f0f\u8bf7\u53c2\u8003");g=g.errorStackTrace;da=Ya.getMobileLightAppUrl();T.setMessage(B);qa?T.setDetail(qa):T.setDetail(g);T.setCustomPainter(function(a,n){var f=$("<div class='sa-ctrl-msgdlg-text'>");f.css("bottom",30);var t=$("<a onclick='javascript:window.open(\""+
da+"\");' href='#'>");t.css({cursor:"pointer",color:"#5582f3"});t.text(c.get("newViewDocument","\u5e2e\u52a9\u6587\u6863"));f.text(n);f.append(t);a.append(f)});T.showDialog();return}}B||(B=b&&q?c.get("errorCodeMessage","\u9519\u8bef\u4fe1\u606f\uff1a#1\r\n\u9519\u8bef\u7801\uff1a#2").replace("#1",q).replace("#2",b):b&&!q?c.get("errorCode","\u9519\u8bef\u7801\uff1a#1\u3002").replace("#1",b):!b&&q?c.get("errorMessage","\u9519\u8bef\u4fe1\u606f\uff1a#1\u3002").replace("#1",q):c.get("noErrorCodeMessage",
"\u6682\u65e0\u9519\u8bef\u7801\u548c\u9519\u8bef\u4fe1\u606f\uff0c\u8bf7\u67e5\u770b\u8be6\u60c5\u3002"),U=!0);U&&(g=g.errorStackTrace,2101006==b&&(qa=c.get("noAuthorityForTheseEntities","\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a"),(b=g.match(/("|\u201c)([^("|\u201d)]+)("|\u201d)/))&&2<b.length&&(qa=c.get("noAuthorityForTheseEntitiesWithUser","\u7528\u6237\u201c#1\u201d\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a").replace("#1",
b[2])),(b=g.match(/(\(|\uff08)([^(\)|\uff09)]+)(\)|\uff09)/))&&2<b.length&&(g=b[2]),g=qa+"\r  "+g.replace(/,/g,c.get("semicolon","\uff1b")+"\r  ")),g&&T.setDetail(g));T.setMessage(B);T.showDialog()}else A.getMessageCurtain().showPrompt(c.get("notFindExceptionLog","\u672a\u627e\u5230\u5bf9\u5e94\u7684\u65e5\u5fd7\u3002"),2E3)},function(g,b){return!1});k.setShowBlocking(!1);k.loadExceptionLog(e)}function Y(){var e;this.loadLappDirName=function(A,k){for(var g=[],b,q=0;q<A.length;q++){var B=A[q].fromTargetType,
U=A[q].methodName,T=A[q].sourceTargetType;Xa.isFromPublish(A[q].fromType,A[q].fromId)?Y.MOBILE==B&&(g.push(A[q].fromId),b||(b=A[q].userId)):"updateLappThumbnail"==U&&Y.MOBILE==T&&(g.push(A[q].sourceId),b||(b=A[q].userId))}b?com.kingdee.bos.qing.timedpush.LappIntegration.loadHandoverDirName(X.getFunPublishRemoteImpl()(),g,[b],function(qa){e=qa;k&&k()},function(qa,da){k&&k()}):setTimeout(function(){k&&k()},0)};this.getLappPathName=function(A,k){return e&&e[A[k]]?e[A[k]].directoryName:""};this.getLappAppType=
function(A,k){return e&&e[A[k]]?e[A[k]].appType:""}}function ja(){var e,A,k,g;this.setTitleComponent=function(b){A=b};this.setQingStoreComponent=function(b){k=b};this.setScheduleComponent=function(b){g=b};this.getTitleComponent=function(){return A};this.getQingStoreComponent=function(){return k};this.getScheduleComponent=function(){return g};this.getJqUi=function(){e||(e=$("<div>"),e.addClass("resourceinfo-resource-attribution"),this.layout(e));return e};this.layout=function(b){if(A){var q=A.getJqUi();
F.layoutCtrl(q,0,0);q.appendTo(b)}q=k.getJqUi();var B=g.getJqUi();F.layoutCtrl(q,20,40);F.layoutCtrl(B,20,160);q.appendTo(b);B.appendTo(b)};this.setPosition=function(b,q){e&&(e.css("top",b+"px"),e.css("bottom",q+"px"))}}function ya(){var e,A,k,g,b,q,B,U,T,qa,da,a;this.getJqUi=function(){e||(e=$("<div>"),e.addClass("resourceinfo-overview-component"),this.layout(e));return e};this.layout=function(n){var f=A.getJqUi(),t=k.getJqUi(),r=g.getJqUi();da.css("color","#666");F.layoutCtrl(f,2,-4);F.layoutCtrl(t,
a+1,-1);F.layoutCtrl(r,18,25);F.layoutCtrl(da,19,60);f.appendTo(n);t.appendTo(n);r.appendTo(n);da.appendTo(n)};this.constructor=function(n,f,t,r,v,aa,fa,G){T=r;qa=.9>U?v:"#F34E4E";a=aa;A=new Ea;A.setText(n);k=new vb;k.setIconType(vb.ICON_TYPE_QUESTION);k.setTipsHtml(f);k.setTipsSize(200,125);g=new $a;g.setData(b,q,B,U);g.constructor(T,qa,fa,G);g.drawBar();n="<span style='color: "+qa+";'>"+b+T+"</span>";da=$("<div>");da.html(c.get("haveBeenUsed","\u5df2\u4f7f\u7528")+"/"+t+c.get("quota","\u989d\u5ea6")+
": "+n+"/"+q+T);da.css("text-align","left");da.css("font-color","#666")};this.setOverviewData=function(n,f,t,r){b=n>f?f:n;q=f;B=0>t?0:t;U=1<r?1:r};this.getProgressBar=function(){return g}}function $a(){var e,A=$("<div>"),k,g,b,q,B,U,T,qa,da,a,n;this.setData=function(f,t,r,v){T=f;qa=r;da=v};this.getJqDetailLabel=function(){return B};this.getJqHistoryDetailLabel=function(){return U};this.getJqUi=function(){if(!e){e=$("<div>");e.addClass("resourceinfo-progressbar-chart");var f=g.getJqUi();F.layoutCtrl(f,
485,5);k.mounting(A);e.append(A);e.append(f);b&&(B=b.getJqUi(),F.layoutCtrl(B,535,5),B.addClass("resourceinfo-detaillist-op"),B.children(".sa-ctrl-label-text").css("color","#49A5F7"),e.append(B));q&&(U=q.getJqUi(),F.layoutCtrl(U,535,25),U.addClass("resourceinfo-history-detaillist-op"),U.children(".sa-ctrl-label-text").css("color","#49A5F7"),e.append(U))}return e};this.constructor=function(f,t,r,v){a=f;n=.9>da?t:"#F34E4E";A.css("position","absolute");A.css("left","0");A.css("top","6px");A.css("width",
"470px");A.css("height","18px");g=new Ea;g.setText(parseInt(100*da)+"%");r&&(b=new Ea,b.setText(c.get("detailList","\u4f7f\u7528\u8be6\u60c5")+">>"));v&&(q=new Ea,q.setText(c.get("historyDetailList","\u5386\u53f2\u8be6\u60c5")+">>"));k=new Cb;f="<span style='color: "+n+";'>"+T+a+"</span>";f=c.get("haveBeenUsed","\u5df2\u4f7f\u7528")+": "+f+"<br/>"+c.get("avaUse","\u53ef\u4f7f\u7528")+": "+qa+a;k.setHtml(f);k.setSuggestedSize(155,60)};this.drawBar=function(){A.css("border","1px solid #DDD");A.css("border-radius",
"10px");A.css("background","#DDD");if(0<da){var f=$("<div>");f.css("width",100*da+"%");f.css("height","100%");f.css("border-radius","10px");f.css("background",n);f.appendTo(A)}}}function nb(){var e,A,k,g;this.getOpenIcon=function(){return k};this.getCloseIcon=function(){return g};this.getJqUi=function(){e||(e=$("<div>"),e.addClass("resourceinfo-title-component"),this.layout(e));return e};this.layout=function(b){var q=A.getJqUi(),B=$("<hr>");F.layoutCtrl(q,10,0);q.css("font-weight","bold");B.addClass("resourceinfo-title-component-hr");
var U="en"==va.getUrlParamValue("language");if(k){var T=k.getJqUi();F.layoutCtrl(T,U?53:40,2,16,16);T.css("display","none");T.appendTo(b)}g&&(T=g.getJqUi(),F.layoutCtrl(T,U?53:40,2,16,16),T.css("display","none"),T.appendTo(b));q.appendTo(b);B.appendTo(b)};this.constructor=function(b,q){A=new Ea;A.setText(b);q&&(k=new qb,k.setIconType("chevrons_down"),g=new qb,g.setIconType("chevrons_up"))}}function qb(){var e,A;this.setIconType=function(k){A=k};this.getJqUi=function(){e||(e=$("<div>"))&&Ha.background(e,
A);return 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={});"undefined"==typeof com.kingdee.bos.qing.theme&&(com.kingdee.bos.qing.theme={});"undefined"==typeof com.kingdee.bos.qing.theme.resourceinfo&&(com.kingdee.bos.qing.theme.resourceinfo={});var ub=com.kingdee.bos.qing.theme.resourceinfo;ub.ResourceInfoManager=function(){var e;this.setGlobal=
function(k){e=k};this.showResourceInfoDialog=function(){var k=e.createResourceFacade(function(g){null!=g&&A(g);return!0},function(g,b){return!1});k.setShowBlocking(!1);k.hasResourceManager()};var A=function(k){e.createResourceFacade(function(g){if(null==g){g=e.getMessageCurtain();var b=c.get("resourceLoadFail","\u83b7\u53d6\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\u4fe1\u606f\u5931\u8d25\u3002");g.showError(b,2E3)}else if(k)b=new na,b.fromJsonObject(g),g=(.9<=b.getUserUseScheduleCountPercent()||.9<=b.getUserUseFileSizePercent())&&
(0<b.getTenantPayFileSize()||0<b.getTenantPayScheduleCount())?!0:!1,g=new w(g),g.setGlobal(e),g.setModel(b),g.showDialog();else{b=new wa;b.registerFileResourcePanel(K);b.registerScheduleResourcePanel(K);var q=new na;q.fromJsonObject(g);b.setGlobal(e);b.setModel(q);b.showDialog()}return!0},function(g,b){return!1}).resourceInfoStatistics()}};ub.ResourceInfoModel=na;var vb,Cb,Ea,xb,cb,rb,Za,ea,L,sa,X,ka,F,la,c,za,Ha,va,Ya,bb,Ba,xa,Ra,Ca;(function(){var e=com.kingdee.bos.qing.ui.component;vb=e.HelpIcon;
Cb=e.Tips;Ea=e.Label;xb=e.MessageDialog;cb=e.AbstractModalDialog;rb=e.Button;Za=e.Dialog;ea=e.TabContainer;L=e.SearchBox;sa=e.ComboBox;e=com.kingdee.bos.qing.common;F=e.DomUtil;la=e.Util;e=com.kingdee.bos.qing.framework.common;c=e.MultilanguageManager.createPackageAccessor(ub);Ya=e.OfficialArticleUtil;bb=e.TabbedUiUtil;e=com.kingdee.bos.qing.common.ui;za=e.TableUtil;e=com.kingdee.bos.qing;va=e.Seer;e=com.kingdee.bos.qing.theme.common;Ha=e.Icons;X=e.Integration;ka=e.Facade;e=com.kingdee.bos.qing.biz.common;
Ba=e.SimplePaginationBar;xa=e.DateRangeSelector;Ra=e.SortingHelper;Ca=e.SortingModel})();w.TYPE_FILE="FILE";w.TYPE_SCHEDULE="SCHEDULE";w.TYPE_SCHEDULE_HISTORY="SCHEDULE_HISTORY";w.EXECUTESTATE_EXECUTING=0;w.EXECUTESTATE_SUCCESS=1;w.EXECUTESTATE_NOENOUGHSCHEDULECOUNT=2;w.EXECUTESTATE_NOFILESTORAGE=3;w.EXECUTESTATE_EXCEPTION=4;w.EXECUTESTATE_WARNINGRULE_UNMATCHED=5;w.EXECUTESTATE_PUSH_PART_ERROR=6;w.EXECUTESTATE_NO_LICENCE=7;w.EXECUTESTATE_USER_DISABLED=8;var d=new function(){var e;this.getPublishTargetType=
function(A){e||(e={0:c.get("appMenu","\u5e94\u7528\u83dc\u5355"),1:c.get("qingAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939"),2:c.get("lapp","\u79fb\u52a8\u8f7b\u5e94\u7528"),5:c.get("cardRepository","\u5361\u7247\u5e93")});return e[A]}},fb=new function(){var e;this.getPushTargetType=function(A){e||(e={0:c.get("cloudHub","\u4e91\u4e4b\u5bb6"),1:c.get("enterpriseWeChat","\u4f01\u4e1a\u5fae\u4fe1"),3:c.get("dingding","\u9489\u9489"),"-1":c.get("email","\u90ae\u4ef6")});return e[A]}},
Xa=new function(){this.isFromPublish=function(e,A){return"CARDTHUMBNAIL"==e&&-1!=A.indexOf("QingAnalysis-")||"PUBLISHED"==e};this.isFromTimePush=function(e,A){return"CARDTHUMBNAIL"==e&&-1==A.indexOf("QingAnalysis-")||"TIMINGPUSH"==e}};Va.WARNING_COUNT=.9;Y.APPMENU=0;Y.CENTER=1;Y.MOBILE=2;Y.CARD_REPOSITORY=5;var Aa=new function(){var e;this.getFromType=function(A){e||(e={THEME:c.get("flatDataFile","\u6570\u636e\u6e90\u6587\u4ef6"),THEMESOURCECONVERT:c.get("flatDataFile_Static","\u6570\u636e\u6e90\u6587\u4ef6(\u9759\u6001\u5316)"),
THEMESCHEDULE:c.get("scheduleDataFile","\u8c03\u5ea6\u6570\u636e\u6587\u4ef6"),CARDTHUMBNAIL:c.get("cardthumbnailDataFile","\u5361\u7247\u7f29\u7565\u56fe\u6587\u4ef6"),IMAGELIBRARY:c.get("image","\u56fe\u7247"),FONTLIBRARY:c.get("font","\u5b57\u4f53"),PUBLISHED:c.get("publishedDataFile","\u53d1\u5e03\u6570\u636e\u6587\u4ef6"),TIMINGPUSH:c.get("timingPushDataFile","\u5b9a\u65f6\u63a8\u9001\u6570\u636e\u6587\u4ef6")});return e[A]}}})();(function(na,Ga){function ha(a,n){var f=this,t,r,v,aa,fa,G,M,I;this.setThemeGroupIDNameMap=function(u){t=u};this.setFunMoveUpGroupItemCallBack=function(u){I=u};this.setFunThemeGroupItemClick=function(u){fa=u};this.setFunDeleteSuccessCallBack=function(u){G=u};this.setFunAddSuccessCallBack=function(u){M=u};this.getJqUi=function(){r||m();return r};this.getThemeGroupModel=function(){return n};var m=function(){r=$("<div>");r.addClass("theme-group-list");v=new Ha;v.setEnabled(!0);v.addBlurListener(J);v.addAcceptableListener(function(E,
V){V?J():Q()?(v.getJqUi().hide(),aa.show()):r.remove()});var u=v.getJqUi();u.addClass("theme-group-name-edit");u.hide();u.on("click",function(E){E.stopPropagation()});aa=$("<span>");aa.addClass("theme-group-title-span");r.on("click",function(E){fa(r,n)});u.appendTo(r);aa.appendTo(r);x()},x=function(){var u=n.getThemeGroupName();v.setText(u);aa.text(u);aa.attr("title",u);if(n.isPreset()){aa.css("right","55px");u=$("<div>");u.addClass("theme-group-preset-text");var E=$("<span>");E.addClass("theme-group-preset-span");
E.text(d.get("preset","\u9884 \u7f6e"));E.appendTo(u);E=$("<div>");E.addClass("theme-group-preset-icon");Za.background(E,"icon-preset-small");u.appendTo(r);E.appendTo(r)}else u=$("<span>"),u.addClass("moveup-button"),u.attr("title",d.get("moveupThemeGroup","\u4e0a\u79fb\u5206\u7c7b")),u.on("click",P),Za.backgroundWithHover(u,"btn_orderup"),u.appendTo(r),u=$("<span>"),u.addClass("edit-button"),u.attr("title",d.get("editThemeCategory","\u7f16\u8f91\u5206\u7c7b")),u.on("click",f.editGroupName),Za.backgroundWithHover(u,
"btn-edit"),u.appendTo(r),u=$("<span>"),u.addClass("delete-button"),u.attr("title",d.get("deleteThemeCategory","\u5220\u9664\u5206\u7c7b")),u.on("click",R),Za.backgroundWithHover(u,"btn-delete"),u.appendTo(r)};this.editGroupName=function(u){u&&u.stopPropagation();aa.hide();v.getJqUi().show();v.setText(n?n.getThemeGroupName():"");v.requestFocus()};var C=function(u){var E="undefined"==typeof u||null==u||""==u?!0:!1;E&&!Q()&&r.remove();E||(E=v.getText(),E=E.trim(),aa.text(E),aa.attr("title",E),v.setText(E),
n.setThemeGroupName(v.getText().trim()));v.getJqUi().hide();aa.show();Q()||n.setThemeGroupID(u);t&&(t[n.getThemeGroupID()]=n.getThemeGroupName())},J=function(){var u=v.getText();u=u.trim();var E=u.length;Q()&&(n.getThemeGroupName()==u||!u||50<E)?(v.getJqUi().hide(),aa.show(),50<E&&(u=d.get("CategoryNameCanNotExceedLimit","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"),a.getMessageCurtain().showPrompt(u,2E3))):u?50<E?(u=d.get("CategoryNameCanNotExceedLimit","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"),
a.getMessageCurtain().showPrompt(u,2E3),r.remove()):z():r.remove()},Q=function(){return n.getThemeGroupID()?!0:!1},z=function(){var u=new Ra;u.setThemeGroupID(n.getThemeGroupID());u.setThemeGroupName(v.getText().trim());var E=a.createFacade(function(V){var pa=Q();pa||M(f);C(V);V=pa?d.get("editCategorySuccess","\u4fee\u6539\u5206\u7c7b\u6210\u529f\u3002"):d.get("addCategorySuccess","\u65b0\u589e\u5206\u7c7b\u6210\u529f\u3002");a.getMessageCurtain().showSuccess(V,2E3)},function(V,pa){return 1010001==
V?(V=d.get("themeGroupNameHasExist","\u5206\u7c7b\u540d\u79f0\u5df2\u5b58\u5728\u3002"),a.getMessageCurtain().showPrompt(V,2E3),C(),!0):!1});E.setShowBlocking(!0);Q()?E.saveThemeGroup(u):E.editThemeGroup(u)},P=function(u){I(f)},R=function(u){u&&u.stopPropagation();Q()?ta():r.remove()},ta=function(){var u=n.getThemeGroupID(),E=a.createFacade(function(V){0<V.length?(V=d.get("deleteThemeBeforeThemeGroup","\u8bf7\u5148\u5220\u9664\u5206\u7c7b\u4e0b\u7684\u4eea\u8868\u677f\u3001\u4e1a\u52a1\u4e3b\u9898\u518d\u5220\u9664\u5206\u7c7b\u3002"),
a.getMessageCurtain().showPrompt(V,2E3)):1==a.getAllGroupModel().length?(V=d.get("atLeastNeedOneUserThemeGroup","\u81f3\u5c11\u9700\u8981\u4fdd\u7559\u4e00\u4e2a\u7528\u6237\u5206\u7c7b\u3002"),a.getMessageCurtain().showPrompt(V,2E3)):y()},function(V,pa){return!1});E.setShowBlocking(!0);E.getTheme(u)},y=function(){var u=xa.createFeedbackDialog();u.setOptionType(xa.OPTION_OK_CANCEL);u.setMsgImageType(xa.MSG_DELETE);u.setMessage(d.get("confirmToDeleteCategory","\u786e\u5b9a\u8981\u5220\u9664\u5206\u7c7b'#1'\u5417\uff1f").replace("#1",
n.getThemeGroupName()));u.setClosingChecker(function(E){E==xa.RETURN_OK&&Z();return!0});u.showDialog()},Z=function(){var u=n.getThemeGroupID(),E=a.createFacade(function(V){r&&r.remove();G(n);V=d.get("deleteThemeGroupSuccess","\u5220\u9664\u5206\u7c7b\u6210\u529f\u3002");a.getMessageCurtain().showSuccess(V,2E3)},function(V,pa){return 1010002==V?(V=d.get("deleteThemeBeforeThemeGroup","\u8bf7\u5148\u5220\u9664\u5206\u7c7b\u4e0b\u7684\u4eea\u8868\u677f\u3001\u4e1a\u52a1\u4e3b\u9898\u518d\u5220\u9664\u5206\u7c7b\u3002"),
a.getMessageCurtain().showPrompt(V,2E3),!0):!1});E.setShowBlocking(!0);E.deleteThemeGroup(u)}}function Oa(){var a,n,f;this.isSupported=function(){return!0};this.needRefreshThemes=function(){return!1};this.getType=function(){return a};this.getIconFileName=function(){return f};this.getDisplayName=function(){return n};this.createCardUi=function(t){throw Error("override me");};this.createThemeModel=function(){throw Error("override me");};this.protectedMethod={setType:function(t){a=t},setDisplayName:function(t){n=
t},setIconFileName:function(t){f=t}}}function Va(){Oa.call(this);var a=this.protectedMethod,n=this;a.setIconFileName("icon-card-subject");a.setType(Ca.THEMETYPE_SUBJECT);a.setDisplayName(d.get("subject","\u4e1a\u52a1\u4e3b\u9898"));this.createCardUi=function(f){f=new Fa(f);f.setIconFileName(n.getIconFileName());f.setThemeTypeName(n.getDisplayName());return f};this.createThemeModel=function(){var f=new Ca;f.setThemeType(Ca.THEMETYPE_SUBJECT);return f}}function kb(){Oa.call(this);var a=this.protectedMethod,
n=this;a.setIconFileName("icon-card-dsb");a.setType(Ca.THEMETYPE_DASHBOARD);a.setDisplayName(d.get("dashboard","\u4eea\u8868\u677f"));var f;this.createCardUi=function(t){t=new ua(t);t.setIconFileName(n.getIconFileName());t.setThemeTypeName(n.getDisplayName());t.setRefreshThemesFunction(f);return t};this.createThemeModel=function(){var t=new Ca;t.setThemeType(Ca.THEMETYPE_DASHBOARD);return t};this.needRefreshThemes=function(){return!0};this.setRefreshThemesFunction=function(t){f=t}}function lb(){Oa.call(this);
var a=this.protectedMethod,n=this;a.setIconFileName("icon-card-programablecard");a.setType(Ca.THEMETYPE_PROGRAMABLECARD);a.setDisplayName(d.get("programableCard","\u7f16\u7a0b\u5f0f\u5361\u7247"));this.isSupported=function(){return L.getProgramableCardEntrance()?!0:!1};this.needRefreshThemes=function(){return!1};this.createCardUi=function(f){f=new ba(f);f.setIconFileName(n.getIconFileName());f.setThemeTypeName(n.getDisplayName());return f};this.createThemeModel=function(){var f=new Ca;f.setThemeType(Ca.THEMETYPE_PROGRAMABLECARD);
return f}}function O(a){var n=this,f,t,r,v,aa,fa,G,M,I,m,x,C,J,Q,z={};z[O.ENTRANCE_ANALYSIS]="btn_analysis_larger";z[O.ENTRANCE_SQUARE]="btn_square_larger";z[O.ENTRANCE_DATAMODELING]="btn_data_larger";z[O.ENTRANCE_DASHBOARD]="btn_dsb_larger";this.setArrNonPresetThemeModel=function(D){t=D};this.setGlobalDependence=function(D){f=D};this.setCopySuccessCallback=function(D){I=D};this.setCopyDifferentGroupSuccessCallBack=function(D){m=D};this.setDelSuccessCallback=function(D){x=D};this.setMoveSuccessCallback=
function(D){C=D};this.setRefreshThemesFunction=function(D){J=D};this.setIconFileName=function(D){G=D};this.getJqUi=function(){r||R();return r};this.setThemeTypeName=function(D){fa=D};this.getThemeTypeName=function(){return fa};this.setThemeName=function(D){v.text(D)};this.setThemeDescription=function(D){aa.text(D)};this.getThemeCopyDialogCreator=function(D){throw Error("override me");};this.getThemeDelDialogCreator=function(D){throw Error("override me");};this.setThemeDetailCallback=function(D){Q=
D};var P=function(){Q(a,G)},R=function(){r=$("<div>");r.addClass("theme-card");r.on("mousedown",ta);r.attr("id",a.getThemeID());r.on("mouseover",function(){r.find(".theme-name").css("width","153px")});r.on("mouseleave",function(){r.find(".theme-name").css("width","209px")});var D=$("<div>");D.addClass("theme-detail-container");var N=$("<span class='theme-icon'>");Za.background(N,G);v=$("<span>");v.addClass("theme-name");v.css("cursor","pointer");var Ka=a.getThemeName();v.text(Ka);v.attr("title",Ka);
v.on("click",Ja);aa=$("<div>");aa.addClass("theme-description");Ka=$("<div>");Ka.addClass("manage-icon-container");Ka.on("click",function(yb){yb.stopPropagation()});var Na=$("<div>");Na.addClass("icon-container");Na.on("click",function(yb){yb.stopPropagation()});var db=a.isPreset();if(db){var ib=$("<div>");ib.addClass("theme-preset-text");ib.text(d.get("preset","\u9884 \u7f6e"));var pb=$("<div>");pb.addClass("theme-preset-icon");Za.background(pb,"icon-preset-big");ib.appendTo(Ka);pb.appendTo(Ka)}ib=
a.getThemeDescription();pb=""==ib||null==ib?d.get("noDescription","\u8be5#1\u6682\u65e0\u63cf\u8ff0").replace("#1",fa):qb.cutExceedCharacters(ib,62);aa.text(pb);aa.attr("title",ib);N.appendTo(D);v.appendTo(D);Ka.appendTo(D);aa.appendTo(D);D.appendTo(r);Na.appendTo(r);ob(Na);Qa(Na,db);sb(Ka,db);Wa(Na)},ta=function(D){var N=r.parent().children(".theme-card-selected");0<N.length&&N.removeClass("theme-card-selected");N=r.parent().children(".current-selected");0<N.length&&(N.removeClass("current-selected"),
N.addClass("pre-selected"));$(D.currentTarget).addClass("theme-card-selected");$(D.currentTarget).addClass("current-selected")};document.onmousedown=function(D){var N=document.getElementsByClassName("theme-card-selected")[0];void 0==N||Z(N,D.target)||(D=$(N).children(".theme-zoom-container"),0<D.length&&y(D))};var y=function(D){u=!1;var N=D.children(".zoom-entrance-container"),Ka=N.children(".zoom-icon-container");N=N.children(".zoom-dsb-icon-container");D.animate(E,400,"swing");if(0<Ka.length){var Na=
Ka.children(".zoom-entrance-icon"),db=Ka.children(".zoom-entrance-des");0<db.length&&0<Na.length&&(Na.css(Da),db.animate(Sa,300,"swing"),Ka.animate(pa,320,"swing"),setTimeout(function(){r.children(".square-icon").show()},390))}0<N.length&&(Na=N.children(".zoom-entrance-icon"),db=N.children(".zoom-entrance-des"),0<Na.length&&0<db.length&&(Na.css(Da),db.animate(Sa,300,"swing"),N.animate(Ta,320,"swing"),setTimeout(function(){r.children(".square-icon").show()},390)));setTimeout(function(){D.remove();
u=!0},400)},Z=function(D,N){return void 0==N||null==N?!1:D==N?!0:Z(D,N.offsetParent)},u=!0,E={opacity:"0"},V={opacity:"0.9"},pa={marginLeft:"13px",top:"65px",height:"45%",width:"18px"},Pa={marginLeft:"9px",top:"16px",height:"55px",width:"88px"},Ta={left:"13px",top:"65px",height:"45%",width:"18px"},ma={left:"106px",top:"16px",height:"55px",width:"88px"},Da={transform:"scale(0.5)",transition:"transform 300ms ease"},Ma={transform:"scale(0.75)",transition:"transform 320ms ease"},Sa={fontSize:"4px",opacity:"0"},
ab={opacity:"1",fontSize:"14px"},Ja=function(D){if(u&&!hb())if(M&O.ENTRANCE_ANALYSIS&&M&O.ENTRANCE_SQUARE&&M&O.ENTRANCE_DATAMODELING||M&O.ENTRANCE_DASHBOARD){u=!1;var N=$("<div>");N.addClass("theme-zoom-container");N.css(E);var Ka=$("<div>");Ka.addClass("zoom-entrance-container");ca(Ka);Ka.appendTo(N);N.appendTo(r);setTimeout(function(){r.children(".square-icon").hide();N.animate(V,360,"swing",function(){u=!0});var Na=Ka.children(".zoom-icon-container");if(0<Na.length){var db=Na.children(".zoom-entrance-icon"),
ib=Na.children(".zoom-entrance-des");0<db.length&&0<ib.length&&(db.css(Ma),ib.animate(ab,320,"swing"));Na.animate(Pa,300,"swing")}Na=Ka.children(".zoom-dsb-icon-container");0<Na.length&&(db=Na.children(".zoom-entrance-icon"),ib=Na.children(".zoom-entrance-des"),0<db.length&&(db.css(Ma),ib.animate(ab,320,"swing")),Na.animate(ma,300,"swing"))},40)}else M&O.ENTRANCE_PROGRAMABLECARD&&Ia(O.ENTRANCE_PROGRAMABLECARD,d.get("programableCard","\u7f16\u7a0b\u5f0f\u5361\u7247"))},hb=function(){var D=r.parent().children(".pre-selected");
D.removeClass("pre-selected");if(0<D.length){var N=D.children(".theme-zoom-container");if(0<N.length&&u&&(y(N),D.attr("id")===r.attr("id")))return!0}},Qa=function(D,N){var Ka=$("<span>");Ka.addClass("copy-icon icon");Za.backgroundWithHover(Ka,"btn-copy");Ka.attr("title",d.get("copy","\u590d\u5236"));Ka.on("click",zb);Ka.appendTo(D);N||(N=$("<span>"),N.addClass("move-icon icon"),N.attr("title",d.get("move","\u79fb\u52a8")),Za.backgroundWithHover(N,"btn-moving"),N.on("click",Ab),N.appendTo(D))},ob=
function(D){var N=$("<span>");N.addClass("tm-themeDetail-icon");N.css("cursor","pointer");Za.backgroundWithHover(N,"info");M==O.ENTRANCE_DASHBOARD?N.attr("title",d.get("seeDashboardDetails","\u67e5\u770b\u4eea\u8868\u677f\u8be6\u60c5")):N.attr("title",d.get("seeSubjectDetails","\u67e5\u770b\u4e3b\u9898\u8be6\u60c5"));N.on("click",P);N.appendTo(D)},sb=function(D,N){N||(N=$("<span>"),N.addClass("edit-icon icon"),N.attr("title",d.get("edit","\u7f16\u8f91")),Za.backgroundWithHover(N,"btn-edit"),N.on("click",
Db),N.appendTo(D),N=$("<span>"),N.addClass("delete-icon icon"),N.attr("title",d.get("deleteTheme","\u5220\u9664")),Za.backgroundWithHover(N,"btn-delete"),N.on("click",Bb),N.appendTo(D))},ca=function(D){if(M&O.ENTRANCE_ANALYSIS){var N=d.get("moduleLonger","\u6570\u636e\u5206\u6790");W(N,O.ENTRANCE_ANALYSIS,"-1px -190px","-1px -157px",D)}M&O.ENTRANCE_SQUARE&&(N=d.get("moduleSquare","\u6570\u636e\u6597\u65b9"),W(N,O.ENTRANCE_SQUARE,"-34px -190px","-34px -157px",D));M&O.ENTRANCE_DATAMODELING&&(N=d.get("dataModeling",
"\u6570\u636e\u51c6\u5907"),W(N,O.ENTRANCE_DATAMODELING,"-67px -190px","-67px -157px",D));M&O.ENTRANCE_DASHBOARD&&(N=d.get("dashboard","\u4eea\u8868\u677f"),W(N,O.ENTRANCE_DASHBOARD,"-100px -190px","-100px -157px",D))},W=function(D,N,Ka,Na,db){var ib=$("<div>");N==O.ENTRANCE_DASHBOARD?(ib.addClass("zoom-dsb-icon-container"),ib.css(Ta)):(ib.addClass("zoom-icon-container"),ib.css(pa));var pb=$("<div>");pb.addClass("zoom-entrance-icon");pb.css(Da);Za.backgroundWithHover(pb,z[N]);pb.attr("title",D);pb.appendTo(ib);
var yb=$("<div>");yb.text(D);yb.addClass("zoom-entrance-des");yb.css(Sa);yb.attr("title",D);yb.appendTo(ib);gb(pb,yb);Ua(pb,yb,Ka,Na);S(ib,N,D);ib.appendTo(db)},S=function(D,N,Ka){D.on("click",function(Na){Na.stopPropagation();Ia(N,Ka)})},Ia=function(D,N){D=mb(D);var Ka=a.getThemeID(),Na=a.getThemeName(),db=a.isPreset();D(Ka,Na,db);sa.occur(sa.TM_THEME_ENTRANCE_TYPE,N)},gb=function(D,N){D.on("mouseenter",function(Ka){N.css("color","#2B87F3")});D.on("mouseleave",function(Ka){N.css("color","")})},Ua=
function(D,N,Ka,Na){N.on("mouseenter",function(db){N.css("color","#2B87F3");D.css("background-position",Ka)});N.on("mouseleave",function(db){N.css("color","");D.css("background-position",Na)})},Wa=function(D){M&O.ENTRANCE_ANALYSIS&&jb(d.get("moduleLonger","\u6570\u636e\u5206\u6790"),"btn-analysis",O.ENTRANCE_ANALYSIS,D);M&O.ENTRANCE_SQUARE&&jb(d.get("moduleSquare","\u6570\u636e\u6597\u65b9"),"btn-square",O.ENTRANCE_SQUARE,D);M&O.ENTRANCE_DATAMODELING&&jb(d.get("dataModeling","\u6570\u636e\u51c6\u5907"),
"btn-data",O.ENTRANCE_DATAMODELING,D);if(M&O.ENTRANCE_AIANALYSIS){var N=jb(d.get("AIAnalysis","AI\u6570\u636e\u5206\u6790\u52a9\u624b"),"btn-ai-analysis",O.ENTRANCE_AIANALYSIS,D);L.isHasAIAnalysisEntrance()||N.hide()}M&O.ENTRANCE_DASHBOARD&&jb(d.get("dashboard","\u4eea\u8868\u677f"),"btn-dsb",O.ENTRANCE_DASHBOARD,D);M&O.ENTRANCE_PROGRAMABLECARD&&jb(d.get("programableCard","\u7f16\u7a0b\u5f0f\u5361\u7247"),"btn-program",O.ENTRANCE_PROGRAMABLECARD,D)},mb=function(D){if(D&O.ENTRANCE_ANALYSIS)return L.getAnalysisEntrance();
if(D&O.ENTRANCE_SQUARE)return L.getSquareEntrance();if(D&O.ENTRANCE_DATAMODELING)return L.getDataModelEntrance();if(D&O.ENTRANCE_AIANALYSIS)return L.getAIAnalysisEntrance();if(D&O.ENTRANCE_DASHBOARD)return L.getDashboardEntrance();if(D&O.ENTRANCE_PROGRAMABLECARD)return L.getProgramableCardEntrance()},jb=function(D,N,Ka,Na){var db=$("<span>");db.addClass("square-icon icon");Za.backgroundWithHover(db,N);db.attr("title",D);S(db,Ka,D);db.appendTo(Na);return db},zb=function(){var D=n.getThemeCopyDialogCreator(a);
D.setGlobal(f);D.setThemeTypeName(fa);var N=function(Na){Na=Ca.createInstance(Na);Na.setIsPreset(!1);t.splice(0,0,Na);var db=Na.getThemeGroupID();a.getThemeGroupID()==db?I&&I(Na):m&&m(Na);Na=d.get("copyThemeSuccess","\u590d\u5236#1\u6210\u529f\u3002").replace("#1",fa);f.getMessageCurtain().showSuccess(Na,2E3)},Ka=function(Na){Na=Ca.createInstance(Na).getThemeGroupID();J&&J(Na);Na=d.get("copyThemeSuccess","\u590d\u5236#1\u6210\u529f\u3002").replace("#1",fa);f.getMessageCurtain().showSuccess(Na,2E3)};
J?D.addSuccessCallback(Ka):D.addSuccessCallback(N);D.createDialog().show()},Db=function(){var D=new ja(a);D.setThemeTypeName(fa);D.addSuccessCallback(function(N){var Ka=N.getThemeName();N=N.getThemeDescription();a.setThemeName(Ka);a.setThemeDescription(N);v.text(Ka);v.attr("title",Ka);Ka=""==N||null==N?d.get("noDescription","\u8be5#1\u6682\u65e0\u63cf\u8ff0\u3002").replace("#1",fa):qb.cutExceedCharacters(N,62);aa.text(Ka);aa.attr("title",N);Ka=d.get("editSuccess","\u7f16\u8f91#1\u6210\u529f\u3002").replace("#1",
fa);f.getMessageCurtain().showSuccess(Ka,2E3)});D.setArrNonPresetThemeModel(t);D.setGlobal(f);D.createDialog().show()},Ab=function(){var D=new ya(a);D.setGlobal(f);D.setThemeTypeName(fa);D.addSuccessCallback(function(N){var Ka=t.indexOf(a);-1<Ka&&t.splice(Ka,1);t.push(N);r.remove();C&&C(N);N=d.get("moveSuccess","\u79fb\u52a8#1\u6210\u529f\u3002").replace("#1",fa);f.getMessageCurtain().showSuccess(N,2E3)});D.createDialog().show()},Bb=function(){var D=n.getThemeDelDialogCreator(a);D.setGlobal(f);D.setThemeTypeName(fa);
D.addSuccessCallback(function(){var N=t.indexOf(a);-1<N&&t.splice(N,1);n.getJqUi().remove();x&&x(a);N=d.get("deleteThemeSuccess","\u5220\u9664#1\u6210\u529f\u3002").replace("#1",fa);f.getMessageCurtain().showSuccess(N,2E3)});D.createDialog().show()};this.protectedMethod={setAllEntranceType:function(D){M=D},setMainEntranceType:function(D){}}}function Fa(a){O.call(this,a);a=this.protectedMethod;a.setAllEntranceType(39);a.setMainEntranceType(1);this.getThemeCopyDialogCreator=function(n){return new w(n)};
this.getThemeDelDialogCreator=function(n){return new nb(n)}}function ua(a){O.call(this,a);a=this.protectedMethod;a.setAllEntranceType(8);a.setMainEntranceType(8);this.getThemeCopyDialogCreator=function(n){return new oa(n)};this.getThemeDelDialogCreator=function(n){return new nb(n)}}function ba(a){O.call(this,a);a=this.protectedMethod;a.setAllEntranceType(16);a.setMainEntranceType(16);this.getThemeCopyDialogCreator=function(n){return new Y(n)};this.getThemeDelDialogCreator=function(n){return new $a(n)}}
function wa(){this.createDialog=function(){throw Error("override");}}function K(a){wa.call(this);var n=this,f=[400,300],t,r,v,aa,fa=[],G=!1;this.setThemeTypeName=function(m){t=m};this.addSuccessCallback=function(m){fa.push(m)};this.setGlobal=function(m){aa=m};this.createDialog=function(){var m=$(document.body),x=$("<div class='sa-ctrl-common-modallayer'>");x.appendTo(m);var C=new X(x);C.setTitle(d.get("copySth","\u590d\u5236#1").replace("#1",t));var J=f[0],Q=f[1],z=m.prop("clientWidth");m=m.prop("clientHeight");
var P=function(){C.destroy();x.remove()};C.setBounds(z-J>>1,m-Q>>1,J,Q);C.setToolbarVisible(!1);C.setContent(n.createCopyThemePanel());C.addClosingListener(function(R,ta){ta?I(R.getMessageCurtain(),P):P()});C.showFooterPane();return C};this.createCopyThemePanel=function(){var m=$("<div>"),x=new la;x.setText(d.get("themeName","\u540d\u79f0"));x=x.getJqUi();r=new Ha;r.addEditedListener(function(){G=!0});var C=r.getJqUi(),J=new la;J.setText(d.get("copyTo","\u590d\u5236\u5230"));J=J.getJqUi();for(var Q=
aa.getAllGroupModel(),z=Q[0],P=0;P<Q.length;P++){var R=Q[P];R.getThemeGroupID()==a.getThemeGroupID()&&(z=R)}v=new F;v.setItemModels(Q);v.setSelected(z);v.setCustomPainter(function(ta,y,Z){y.text(Z.getThemeGroupName())});v.addSelectedChangedListener(function(ta,y,Z){G||M(Z.getThemeGroupID())});M(z.getThemeGroupID());Q=v.getJqUi();m.append(x);m.append(C);m.append(Q);m.append(J);n.protectedCustomLayout(m,x,C,J,Q);return m};this.protectedCustomLayout=function(m,x,C,J,Q){b.layoutCtrl(x,20,20,80,23);b.layoutCtrl(C,
110,20,240,23);b.layoutCtrl(J,20,85,80,23);b.layoutCtrl(Q,110,85,240,23)};var M=function(m){var x=a.getThemeType(),C=aa.createFacade(function(J){for(var Q=a.getThemeName(),z=a.getThemeType(),P=[],R=!1,ta=0,y=J.length;ta<y;ta++){var Z=Ca.createInstance(J[ta]),u=Z.getThemeName();Z=Z.getThemeType();Z==z&&u==Q?R=!0:Z==z&&0==u.indexOf(Q)&&P.push(u)}if(R){J=1;for(ta=!1;!ta;){z=!1;for(ta=0;ta<P.length;ta++)if(P[ta]==Q+"-"+J){J++;z=!0;break}ta=!z}Q=Q+"-"+J}r.setText(Q)},function(J,Q){return!1});C.setShowBlocking(!0);
C.getTheme(m,x)},I=function(m,x){var C=v.getSelected().getThemeGroupID(),J=$.trim(r.getText()),Q;""!=J&&50<J.length?Q=d.get("nameTooLong","\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"):""==J&&(Q=d.get("nameCannotBeEmpty","#1\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a\u3002").replace("#1",t));Q?m.showPrompt(Q,2E3):(Q=aa.createFacade(function(z){for(var P=0,R=fa.length;P<R;P++){var ta=fa[P];ta&&ta(z)}x()},function(z,P){var R=z.toString();if("10"==R.substr(0,2)&&7==R.length){if(1030001==
z)return m.showError(P),!0;var ta;1010003==z?ta=d.get("duplicateNameInCategory","\u8be5\u5206\u7c7b\u4e0b\u5b58\u5728\u540c\u540d#1\u3002").replace("#1",t):1010005==z?ta=d.get("themeFileSizeLimit","\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3\u3002"):1010004==z&&(ta=d.get("themeNotFound","\u5bf9\u5e94#1\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002").replace("#1",t));if(ta)return m.showPrompt(ta,2E3),!0}return 2010001==z?(ta=d.get("themeHasNotFound","\u5bf9\u5e94\u4e3b\u9898\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002"),
m.showPrompt(ta),!0):!1}),Q.setShowBlocking(!0),n.protectedRequestCopyTheme(Q,J,C))};this.protectedRequestCopyTheme=function(m,x,C){var J=a.getThemeID(),Q=a.getThemeType();m.copyTheme(J,C,x,Q)};this.protectedMethod={setSuggestSize:function(m){f=m}}}function w(a){K.call(this,a);var n;this.protectedRequestCopyTheme=function(f,t,r){var v=a.getThemeID(),aa=a.getThemeType(),fa=n.isOn();f.copyTheme(v,r,t,aa,fa)};this.protectedCustomLayout=function(f,t,r,v,aa){b.layoutCtrl(t,20,10,80,23);b.layoutCtrl(r,
110,10,240,23);b.layoutCtrl(v,20,65,80,23);b.layoutCtrl(aa,110,65,240,23);n=new c;n.setOn(!0);t=n.getJqUi();r=(new la(d.get("carryAnalysisScheme","\u643a\u5e26\u5206\u6790\u65b9\u6848"))).getJqUi();r.appendTo(f);t.appendTo(f);b.layoutCtrl(r,20,120,80,23);b.layoutCtrl(t,110,123,31,19);"en"==U.getUrlParamValue("language")&&(b.layoutCtrl(r,20,120,135,23),b.layoutCtrl(t,160,123,31,19))}}function oa(a){K.call(this,a);var n;this.protectedRequestCopyTheme=function(f,t,r){var v=a.getThemeID(),aa=a.getThemeType(),
fa=n&&n.isOn();f.copyTheme(v,r,t,aa,!0,fa)};this.protectedCustomLayout=function(f,t,r,v,aa){b.layoutCtrl(t,20,10,80,23);b.layoutCtrl(r,110,10,240,23);b.layoutCtrl(v,20,65,80,23);b.layoutCtrl(aa,110,65,240,23);n=new c;a.isPreset()?n.setOn(!0):n.setOn(!1);t=n.getJqUi();r=(new la(d.get("copyIncludedThemes","\u540c\u65f6\u590d\u5236\u4e3b\u9898"))).getJqUi();r.appendTo(f);t.appendTo(f);b.layoutCtrl(r,20,120,80,23);b.layoutCtrl(t,110,123,31,19);"en"==U.getUrlParamValue("language")&&(b.layoutCtrl(r,20,
120,135,23),b.layoutCtrl(t,160,123,31,19))}}function Y(a){K.call(this,a)}function ja(a){wa.call(this);var n,f=[400,300],t=[],r,v,aa,fa;this.setArrNonPresetThemeModel=function(I){v=I};this.setThemeTypeName=function(I){r=I};this.setGlobal=function(I){n=I};this.addSuccessCallback=function(I){t.push(I)};this.createDialog=function(){var I=$(document.body),m=$("<div class='sa-ctrl-common-modallayer'>");m.appendTo(I);var x=new X(m);x.setSelectable(!0);var C=void 0!=a.getThemeID()?d.get("editSth","\u7f16\u8f91#1"):
d.get("createSth","\u65b0\u5efa#1");C=C.replace("#1",r);x.setTitle(C);C=f[0];var J=f[1],Q=I.prop("clientWidth"),z=I.prop("clientHeight");x.setBounds(Q-C>>1,z-J>>1,C,J);x.setToolbarVisible(!1);x.setContent(M());x.showFooterPane();m.appendTo(I);var P=function(){x.destroy();m.remove()};x.addClosingListener(function(R,ta){ta?G(P,R.getMessageCurtain()):P()});return x};var G=function(I,m){var x=$.trim(aa.getText()),C=$.trim(fa.getText()),J;""!=x&&50<x.length?J=d.get("nameTooLong","\u540d\u79f0\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"):
""==x&&(J=d.get("nameCannotBeEmpty","\u8bf7\u8f93\u5165#1\u540d\u79f0\u3002").replace("#1",r));""!=C&&500<C.length&&(J=d.get("descriptionTooLong","\u63cf\u8ff0\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7500\u4e2a\u5b57\u7b26\u3002"));if(J)m.showPrompt(J,2E3);else{var Q=a.copy();Q.setThemeName(x);Q.setThemeDescription(C);x=n.createFacade(function(z){Q.setThemeID(z);z!=a.getThemeID()&&v.splice(0,0,Q);z=0;for(var P=t.length;z<P;z++){var R=t[z];R&&R(Q)}I()},function(z,P){return 1010003==z?(z=d.get("nameExist",
"\u8be5#1\u540d\u79f0\u5df2\u5b58\u5728\u3002").replace("#1",r),m.showPrompt(z,2E3),!0):!1});x.setShowBlocking(!0);x.saveOrUpdateTheme(Q)}},M=function(){var I=$("<div>"),m=new la;m.setRequired(!0);m.setText(d.get("themeName","\u540d\u79f0"));m=m.getJqUi();aa=new Ha;aa.setText(a.getThemeName());var x=aa.getJqUi(),C=new la;C.setText(d.get("description","\u63cf\u8ff0"));C=C.getJqUi();fa=new za;fa.setText(a.getThemeDescription());var J=fa.getJqUi();m.appendTo(I);x.appendTo(I);C.appendTo(I);J.appendTo(I);
b.layoutCtrl(m,8,0,70,23);b.layoutCtrl(x,76,0,280,23);b.layoutCtrl(C,8,48,70,23);b.layoutCtrl(J,76,54,280,120);return I}}function ya(a){wa.call(this);var n=[],f=[400,300],t,r,v;this.setThemeTypeName=function(G){t=G};this.addSuccessCallback=function(G){n.push(G)};this.setGlobal=function(G){r=G};this.createDialog=function(){var G=$(document.body),M=$("<div class='sa-ctrl-common-modallayer'>");M.appendTo(G);var I=new X(M),m=d.get("moveTo","\u79fb\u52a8\u5230");I.setTitle(m);m=f[0];var x=f[1],C=G.prop("clientWidth");
G=G.prop("clientHeight");var J=function(){I.destroy();M.remove()};I.setBounds(C-m>>1,G-x>>1,m,x);I.setToolbarVisible(!1);I.setContent(aa());I.addClosingListener(function(Q,z){z?fa(Q.getMessageCurtain(),J):J()});I.showFooterPane();return I};var aa=function(){var G=$("<div>");G.addClass("move-subject-panel");var M=new la;M.setText(d.get("category","\u5206\u7c7b"));M=M.getJqUi();var I=r.getAllGroupModel();v=new F;v.setItemModels(I);v.setSelected(I[0]);v.setCustomPainter(function(m,x,C){x.text(C.getThemeGroupName())});
I=v.getJqUi();M.appendTo(G);I.appendTo(G);b.layoutCtrl(M,25,50,70,23);b.layoutCtrl(I,100,50,240,23);return G},fa=function(G,M){var I=v.getSelected().getThemeGroupID(),m=a.getThemeID(),x=a.getThemeName(),C=a.getThemeGroupID(),J=a.getThemeType();if(I==C)M();else{var Q=r.createFacade(function(z){z=new Ca;z.setThemeID(m);z.setThemeGroupID(I);z.setThemeName(x);z.setThemeDescription(a.getThemeDescription());z.setThemeType(J);z.setIsPreset(!1);z.setBeforeMovedThemeGroupId(C);for(var P=0,R=n.length;P<R;P++){var ta=
n[P];ta&&ta(z)}M()},function(z,P){return 1030001==z?(G.showError(P),!0):1010003==z?(z=d.get("duplicateNameInCategory","\u8be5\u5206\u7c7b\u4e0b\u5b58\u5728\u540c\u540d#1\u3002").replace("#1",t),G.showPrompt(z,2E3),!0):1010004==z?(z=d.get("themeNotFound","\u5bf9\u5e94#1\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002").replace("#1",t),G.showPrompt(z,2E3),!0):!1});Q.setShowBlocking(!0);Q.moveTheme(m,I,x)}}}function $a(a){wa.call(this);var n=this,f,t=[400,300],r=[],v;this.setThemeTypeName=function(G){f=
G};this.addSuccessCallback=function(G){r.push(G)};this.setGlobal=function(G){v=G};this.createDialog=function(){var G=$(document.body),M=$("<div class='sa-ctrl-common-modallayer'>");M.appendTo(G);var I=new X(M);I.setTitle(d.get("operateConfirm","\u64cd\u4f5c\u786e\u8ba4"));var m=t[0],x=t[1],C=G.prop("clientWidth"),J=G.prop("clientHeight");I.setBounds(C-m>>1,J-x>>1,m,x);I.setToolbarVisible(!1);I.setContent(n.createJqPanel());I.addClosingListener(function(Q,z){z&&fa();Q.destroy();M.remove()});I.showFooterPane();
M.appendTo(G);aa(M);return I};this.createJqPanel=function(){var G=$("<div>"),M=$("<span>");ea.background(M,"msg-delete");var I=$("<span>");I.addClass("theme-manage-deldialog-confirm-msg");var m=d.get("comfirmToDeleteTheme","\u786e\u5b9a\u8981\u5220\u9664#1\u201c#2\u201d\u5417\uff1f");m=m.replace("#1",f);m=m.replace("#2",a.getThemeName());m=m.replace("#3",f);I.text(m);I.attr("title",m);M.appendTo(G);I.appendTo(G);n.protectedCustomLayout(G,M,I);return G};var aa=function(G){(G=G.children(".sa-ctrl-dialog"))&&
0<G.length&&(G=G.children(".sa-ctrl-dialog-title"))&&0<G.length&&G.css("border-bottom","0px")},fa=function(){var G=function(I){for(var m=0,x=r.length;m<x;m++){var C=r[m];C&&C()}n.protectedDoThingAfterDeleteCard(I)},M=v.createFacade(G,function(I,m){m=I.toString();return"10"==m.substr(0,2)&&7==m.length&&1010004==I?(G(null),!0):!1});M.setShowBlocking(!0);n.protectedRequestDel(M)};this.protectedDoThingAfterDeleteCard=function(G){};this.protectedRequestDel=function(G){var M=a.getThemeID(),I=a.getThemeGroupID(),
m=a.getThemeType();G.deleteTheme(M,I,m,!1)};this.protectedCustomLayout=function(G,M,I){b.layoutCtrl(M,140,20,98,80);b.layoutCtrl(I,0,130,368,23)};this.protectedMethod={getGlobal:function(){return v}}}function nb(a){$a.call(this,a);var n;this.protectedDoThingAfterDeleteCard=function(f){n.isOn()&&f&&0!=f.length&&L.getFunDeleteLappPublishInfos()(f)};this.protectedRequestDel=function(f){var t=a.getThemeID(),r=a.getThemeGroupID(),v=a.getThemeType();f.deleteTheme(t,r,v,n.isOn())};this.protectedCustomLayout=
function(f,t,r){b.layoutCtrl(t,140,10,98,80);b.layoutCtrl(r,0,100,368,60);t=d.get("deletePublishInfo","\u540c\u65f6\u5220\u9664\u53d1\u5e03\u4fe1\u606f");r=new la(t);r.setTooltips(t);t=r.getJqUi();n=new c;r=n.getJqUi();b.layoutCtrl(t,105,163,125,23);b.layoutCtrlWithLRTB(r,230,null,31,165,null,19);f.append(r);f.append(t)}}function qb(){}function ub(){var a=this,n,f,t,r,v,aa,fa,G,M,I,m,x,C,J,Q,z,P,R,ta,y,Z,u=!1,E=com.kingdee.bos.qing.timedpush.LappIntegration,V=com.kingdee.bos.qing.publish.model.PublishTargetType,
pa=com.kingdee.bos.qing.timedpush.Analysis;this.setThemeModel=function(ca){f=ca};this.setCardIconType=function(ca){t=ca};this.setGlobalDependence=function(ca){r=ca};this.isOpen=function(){return u};this.setIsOpen=function(ca){u=ca};this.setNullToJqUi=function(){n&&n.remove();n=null};this.adjustCardContainer=function(ca){v=ca};this.setCollapseListener=function(ca){aa=ca};this.getJqUi=function(ca){if(!n){n=$("<div>");n.addClass("tm-themeDetail-ThemeDetail");fa=$("<div>");fa.addClass("tm-themeDetail-ThemePanel");
var W=$("<div>");W.addClass("tm-themeDetail-ThemeIconText");var S=$("<div>");S.addClass("tm-themeDetail-ThemeText");S.text(f.getThemeName());S.attr("title",f.getThemeName());var Ia=$("<div>");Ia.addClass("tm-themeDetail-ThemeIcon");Za.background(Ia,t);Ia.appendTo(W);S.appendTo(W);x=$("<div>");x.addClass("tm-themeDetail-ThemeNumber");J=$("<div>");J.addClass("tm-themeDetail-Num");J.text(d.get("pubNumber","\u53d1\u5e03\u6b21\u6570\uff1a"));Q=$("<div>");Q.addClass("tm-themeDetail-Num");Q.text(d.get("pushNumber",
"\u5b9a\u65f6\u63a8\u9001\u914d\u7f6e\u6570\uff1a"));C=$("<div>");C.addClass("tm-themeDetail-jqDetails");R=$("<div>");ma(R,null,d.get("pubDetail","\u53d1\u5e03\u8be6\u60c5"));ta=$("<div>");ma(ta,null,d.get("pushDetail","\u5b9a\u65f6\u63a8\u9001\u914d\u7f6e\u8be6\u60c5"));R.appendTo(C);ta.appendTo(C);J.appendTo(x);Q.appendTo(x);m=$("<div>");m.addClass("tm-themeDetail-ThemeDate");f.getThemeType()==Ca.THEMETYPE_SUBJECT?(M=$("<div>"),M.text(d.get("createTime","\u521b\u5efa\u65f6\u95f4\uff1a")),M.addClass("tm-themeDetail-date"),
I=$("<div>"),I.addClass("tm-themeDetail-date"),I.text(d.get("dataExtractStrategy","\u6570\u636e\u63d0\u53d6\u7b56\u7565\uff1a")),G=$("<div>"),G.addClass("tm-themeDetail-date"),G.text(d.get("dataUpdateTime","\u6570\u636e\u66f4\u65b0\u65f6\u95f4\uff1a")),M.appendTo(m),I.appendTo(m),z=$("<div>"),z.addClass("tm-themeDetail-Num"),z.text(d.get("subRefCountInDsb","\u5f15\u7528\u8be5\u4e3b\u9898\u7684\u4eea\u8868\u677f\u4e2a\u6570\uff1a")),z.appendTo(x),P=$("<div>"),S=d.get("subRefInDsb","\u5f15\u7528\u8be5\u4e3b\u9898\u7684\u4eea\u8868\u677f "),
ma(P,null,S),P.appendTo(C)):f.getThemeType()==Ca.THEMETYPE_DASHBOARD&&(M=$("<div>"),M.text(d.get("createTime","\u521b\u5efa\u65f6\u95f4\uff1a")),M.addClass("tm-themeDetail-date"),G=$("<div>"),G.text(d.get("modifyTime","\u4fee\u6539\u65f6\u95f4\uff1a")),G.addClass("tm-themeDetail-date"),M.appendTo(m),G.appendTo(m));W.appendTo(n);m.appendTo(fa);x.appendTo(fa);C.appendTo(fa);fa.appendTo(n);sb();ob(f.getThemeID());document.body.addEventListener("mousedown",Pa,!0);document.body.addEventListener("mouseup",
Ta,!0)}n.appendTo(ca)};var Pa=function(ca){ca=ca.target;for(var W=$(document.body).find(".tm-themeDetail-ThemeDetail");ca!=document.body;){if(W[0]&&ca==W[0]||$(ca).hasClass("tm-themeDetail-icon")||$(ca).hasClass("tm-themeDetail-splitPaneLine")||$(ca).hasClass("theme-card"))return;ca=ca.parentNode}a.closePanel();document.body.removeEventListener("mousedown",Pa,!0);document.body.removeEventListener("mouseup",Ta,!0)},Ta=function(ca){ca=ca.target;if(!$(ca).hasClass("tm-themeDetail-icon"))for(;ca!=document.body;){if($(ca).hasClass("theme-card")){a.closePanel();
document.body.removeEventListener("mousedown",Pa,!0);document.body.removeEventListener("mouseup",Ta,!0);break}ca=ca.parentNode}},ma=function(ca,W,S,Ia){var gb=$("<div>");gb.text("\u25b2");gb.addClass("tm-themeDetail-arrowCollapsed");var Ua=$("<div>");Ua.addClass("tm-themeDetail-jqDiv");var Wa=$("<div>"),mb=0;Wa.addClass("tm-themeDetail-Box");S&&Wa.text(S);W&&(mb=W.length);for(S=0;S<mb;S++)W[S].appendTo(Wa);0<mb&&(ca.on("click",function(jb){jb.stopPropagation();Wa.children().toggle("fast");gb.hasClass("tm-themeDetail-arrowCollapsed")?
(gb.removeClass("tm-themeDetail-arrowCollapsed"),gb.addClass("tm-themeDetail-arrowExpanded")):(gb.removeClass("tm-themeDetail-arrowExpanded"),gb.addClass("tm-themeDetail-arrowCollapsed"))}),Wa.children().on("click",function(jb){jb.stopPropagation()}));Wa.children().css("display","none");gb.appendTo(Ua);Ia&&Ia.appendTo(Ua);Wa.appendTo(Ua);Ua.appendTo(ca)},Da=function(ca){if(f.getThemeType()==Ca.THEMETYPE_SUBJECT){var W=ca.getCreateDate(),S=ca.getDataStrategy(),Ia=ca.getModifyDate();W&&M.text(d.get("createTime",
"\u521b\u5efa\u65f6\u95f4\uff1a")+W.substring(0,19));S==T.DATASTRATEGY_TIMING&&(Ia?Ia&&G.text(d.get("modifyTime","\u4fee\u6539\u65f6\u95f4\uff1a")+Ia.substring(0,19)):G.text(d.get("dataUpdateTime","\u6570\u636e\u66f4\u65b0\u65f6\u95f4\uff1a")+d.get("NotDoFirstExtraction","\u672a\u8fdb\u884c\u7b2c\u4e00\u6b21\u63d0\u53d6")),G.appendTo(m));I.text(d.get("dataExtractStrategy","\u6570\u636e\u63d0\u53d6\u7b56\u7565\uff1a")+Ja[S]);W=ca.getSubRef();S=0;W&&(S=W.length);z.text(d.get("subRefCountInDsb","\u5f15\u7528\u8be5\u4e3b\u9898\u7684\u4eea\u8868\u677f\u4e2a\u6570\uff1a")+
S);P.empty();if(0<S){ca=[];for(Ia=0;Ia<S;Ia++){ca[Ia]=$("<div>");ca[Ia].addClass("tm-themeDetail-refChild");var gb=W[Ia],Ua=$("<span class='tm-themeDetail-schemaIcon'>");Ua.css({"margin-left":"0px"});Za.background(Ua,"btn-dsb");var Wa=$("<div class ='tm-themeDetail-inlineText'>");Wa.text(gb);Wa.attr("title",gb);Ua.appendTo(ca[Ia]);Wa.appendTo(ca[Ia])}W=d.get("subRefInDsb","\u5f15\u7528\u8be5\u4e3b\u9898\u7684\u4eea\u8868\u677f ");ma(P,ca,W)}else ca=$("<div>"),ca.addClass("tm-themeDetail-notHaveContent"),
ca.text(d.get("currentSubjectIsNotReferencedTemporarily","\u5f53\u524d\u4e3b\u9898\u6682\u672a\u88ab\u5f15\u7528")),ma(P,[ca],d.get("subRefInDsb","\u5f15\u7528\u8be5\u4e3b\u9898\u7684\u4eea\u8868\u677f"))}else f.getThemeType()==Ca.THEMETYPE_DASHBOARD&&(W=ca.getCreateDate(),Ia=ca.getModifyDate(),W&&M.text(d.get("createTime","\u521b\u5efa\u65f6\u95f4\uff1a")+W.substring(0,19)),Ia&&G.text(d.get("modifyTime","\u4fee\u6539\u65f6\u95f4\uff1a")+Ia.substring(0,19)))},Ma={0:d.get("appMenu","\u5e94\u7528\u83dc\u5355"),
1:d.get("qingAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939"),2:d.get("lapp","\u79fb\u52a8\u8f7b\u5e94\u7528"),5:d.get("cardRepository","\u5361\u7247\u5e93")},Sa={0:d.get("cloudHub","\u4e91\u4e4b\u5bb6"),1:d.get("enterpriseWeChat","\u4f01\u4e1a\u5fae\u4fe1"),3:d.get("dingDing","\u9489\u9489"),"-1":d.get("email","\u90ae\u4ef6")},ab={Daily:d.get("Daily","\u6bcf\u5929"),Weekly:d.get("Weekly","\u6bcf\u5468"),Monthly:d.get("Monthly","\u6bcf\u6708"),Custom:d.get("Custom","\u81ea\u5b9a\u4e49")},
Ja={realTime:d.get("realTime","\u5b9e\u65f6\u63d0\u53d6"),timing:d.get("timing","\u5b9a\u65f6\u9884\u63d0\u53d6")},hb=function(ca,W,S){if(ca&&0!=ca.length){var Ia=ca[0],gb=ca.length,Ua=d.get("authorized","\u6388\u6743")+S+Ia;1==gb?W.text(Ua):W.text(Ua+d.get("etc","\u7b49")+gb+d.get("one","\u4e2a")+S.substring(0,S.length-1));for(S=1;S<gb;S++)Ia=Ia+"\u3001"+ca[S];W.attr("title",Ia)}else ca=d.get("notSelect","\u672a\u9009\u62e9")+S.substring(0,S.length-1),W.text(d.get("authorized","\u6388\u6743")+S+
ca),W.attr("title",ca)},Qa=function(ca,W){var S=W.length;R.empty();if(0<S){var Ia=[],gb=[];y=[];for(var Ua=0;Ua<S;Ua++){var Wa=W[Ua];if(ca&&ca.hasOwnProperty(Wa.getId())){var mb=new qa;mb.fromJsonObject(ca[Wa.getId()]);Wa.setName(mb.getAnalysisName());Wa.setPathText(mb.getDirectoryName());Wa.setViewType(mb.getViewType())}gb[Ua]=$("<div>");gb[Ua].addClass("tm-themeDetail-pBox");mb=$("<span class='tm-themeDetail-schemaIcon'>");Ia[Ua]=$("<div>");var jb=Wa.getPublishTargetType();f.getThemeType()==Ca.THEMETYPE_SUBJECT?
(jb=jb==V.CARD_REPOSITORY||Wa.getViewType()==pa.VIEW_TYPE_SQUARE?"btn-square":"btn-analysis",Za.background(mb,jb)):f.getThemeType()==Ca.THEMETYPE_DASHBOARD&&Za.background(mb,"btn-dsb");Ia[Ua].addClass("tm-themeDetail-child");jb=$("<li>");jb.addClass("tm-themeDetail-grandSon");var zb=$("<li>");zb.addClass("tm-themeDetail-grandSon");var Db=$("<li>");Db.addClass("tm-themeDetail-grandSon");var Ab=$("<li>");Ab.addClass("tm-themeDetail-grandSon");var Bb=Ma[Wa.getPublishTargetType()];jb.text(d.get("publishTo",
"\u53d1\u5e03\u5230\uff1a")+Bb);jb.attr("title",Bb);Bb=Wa.getPathText();Wa.setPathText(Bb);zb.text(d.get("publishPath","\u53d1\u5e03\u8def\u5f84\uff1a")+Wa.getPathText().trim());zb.attr("title",Wa.getPathText());Bb=Wa.getRoles();var D=Wa.getUsers();hb(Bb,Db,d.get("role","\u89d2\u8272\uff1a"));hb(D,Ab,d.get("user","\u7528\u6237\uff1a"));Ia[Ua].append(jb);Ia[Ua].append(zb);Ia[Ua].append(Db);Ia[Ua].append(Ab);y[Ua]=$("<div>");y[Ua].addClass("tm-themeDetail-refDetail");y[Ua].attr("title",Wa.getName());
ma(y[Ua],[Ia[Ua]],Wa.getName(),mb)}ma(R,y,d.get("pubDetail","\u53d1\u5e03\u8be6\u60c5"))}else ca=$("<div>"),ca.addClass("tm-themeDetail-notHaveContent"),f.getThemeType()==Ca.THEMETYPE_DASHBOARD?ca.text(d.get("currentDashboardIsNotPublishTemporarily","\u5f53\u524d\u4eea\u8868\u677f\u6682\u672a\u53d1\u5e03")):ca.text(d.get("currentSubjectIsNotPublishTemporarily","\u5f53\u524d\u4e3b\u9898\u6682\u672a\u53d1\u5e03")),ma(R,[ca],d.get("pubDetail","\u53d1\u5e03\u8be6\u60c5"))},ob=function(ca){var W=r.createFacade(function(S){var Ia=
new T;Ia.fromJsonObject(S);Da(Ia);var gb=Ia.getPubDetail(),Ua=gb.length;J.text(d.get("pubNumber","\u53d1\u5e03\u6b21\u6570\uff1a")+Ua);var Wa=[],mb=[];for(S=0;S<Ua;S++)if(gb[S]){var jb=gb[S];jb.getPublishTargetType()==V.MOBILE&&Wa.push(jb.getId())}0==Wa.length?Qa(null,gb):E.loadHandoverDirName(L.getFunPublishRemoteImpl()(),Wa,mb,function(Ab){Ab&&Qa(Ab,gb)},function(){},!0);Ia=Ia.getPushDetail();Ua=Ia.length;Q.text(d.get("pushNumber","\u5b9a\u65f6\u63a8\u9001\u914d\u7f6e\u6570\uff1a")+Ua);ta.empty();
if(0<Ua){Wa=[];Z=[];for(S=0;S<Ua;S++){Wa[S]=$("<div>");mb=Ia[S].getName();Ia[S].getNameRule()&&(mb=mb+"-"+d.get("dateOfSystem","\u7cfb\u7edf\u65e5\u671f"));Wa[S].addClass("tm-themeDetail-refDetail");jb=$("<li>");jb.addClass("tm-themeDetail-pushChild");var zb=$("<li>");zb.addClass("tm-themeDetail-pushChild");var Db=Ia[S].getPushSchedule();jb.text(d.get("pushSchedule","\u63a8\u9001\u9891\u7387\uff1a")+ab[Db]);Db=Ia[S].getTarget();zb.text(d.get("pushMethod","\u63a8\u9001\u65b9\u5f0f\uff1a")+Sa[Db]);
Wa[S].append(jb);Wa[S].append(zb);Z[S]=$("<div>");Z[S].addClass("tm-themeDetail-refDetail");Wa[S].children().attr("title","");Z[S].attr("title",mb);ma(Z[S],[Wa[S]],mb)}ma(ta,Z,d.get("pushDetail","\u5b9a\u65f6\u63a8\u9001\u914d\u7f6e\u8be6\u60c5"))}else S=$("<div>"),S.addClass("tm-themeDetail-notHaveContent"),f.getThemeType()==Ca.THEMETYPE_DASHBOARD?S.text(d.get("currentDashboardIsNotConfiguredForPublishTemporarily","\u5f53\u524d\u4eea\u8868\u677f\u6682\u672a\u914d\u7f6e\u5b9a\u65f6\u63a8\u9001")):
S.text(d.get("currentSubjectIsNotConfiguredForPublishTemporarily","\u5f53\u524d\u4e3b\u9898\u6682\u672a\u914d\u7f6e\u5b9a\u65f6\u63a8\u9001")),ma(ta,[S],d.get("pushDetail","\u5b9a\u65f6\u63a8\u9001\u914d\u7f6e\u8be6\u60c5"))},function(S){if(1010004==S){a.closePanel();S=xa.createFeedbackDialog();S.setOptionType(xa.OPTION_OK);S.setMsgImageType(xa.MSG_DELETE);var Ia=d.get("themeNotFound","\u5bf9\u5e94#1\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002");f.getThemeType()==Ca.THEMETYPE_SUBJECT?S.setMessage(Ia.replace("#1",
d.get("subject","\u4e1a\u52a1\u4e3b\u9898"))):S.setMessage(Ia.replace("#1",d.get("dashboard","\u4eea\u8868\u677f")));S.setClosingChecker(function(gb){return!0});S.showDialog();return!0}return!1});W.setShowBlocking(!0);W.setBlockingJqUi(n);W.getThemeDetail(ca,f.getThemeType())};this.closePanel=function(){u&&(n&&n.remove(),u=!1,n=null,aa&&aa(),v&&v())};var sb=function(){var ca=$("<div>");ca.addClass("tm-themeDetail-closeTab");var W=$("<div>");W.text(d.get("close","\u5173\u95ed"));W.css("margin-top",
"4px");W.appendTo(ca);ca.on("click",function(){a.closePanel()});ca.appendTo(n)}}function vb(){var a,n=[],f={},t,r,v,aa;this.getJqUi=function(){a||fa();return a};this.setFunCloseSearchResultPanel=function(m){r=m};this.refresh=function(){var m=a.find(".sa-ctrl-list-owner");m.empty();m.css("top","40px");for(var x=$(document.createDocumentFragment()),C=M,J=0;J<n.length;J++){var Q=$("<div>");Q.addClass("sa-ctrl-list-item");Q.addClass("sa-ctrl-list-item_enabled");Q.addClass("sa-ctrl-list-item-defaultlayout");
var z=n[J];Q.data("model",z);C(Q,z);x.append(Q)}m.append(x);0==n.length&&(x=m.append,C=$("<div>"),C.addClass("theme-search-no-result"),J=$("<div>"),Za.background(J,"no-data"),J.css("transform","scaleX(0.85) scaleY(0.85)"),b.layoutCtrl(J,null,null,280,230),Q=$("<div>"),Q.text(d.get("nodata","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c")),b.layoutCtrl(Q,"19%","78%",null,null),J.appendTo(C),Q.appendTo(C),b.layoutCtrl(C,"14%","27%",280,270),x.call(m,C))};var fa=function(){a=$("<div>");
a.addClass("theme-search-lists");a.css({"float":"right",right:"0px",height:"97%",width:"300px",position:"absolute",top:"45px",background:"white","z-index":"99999"});v||(v=new Ba,v.scrollSelectedToVisible(),v.setCustomItemPainter(M),v.addSelectedChangedListener(G),v.setUserObject(n),v.setItemModels(n));var m=v.getJqUi();m.find(".sa-ctrl-list-owner").css({top:"40px",bottom:"60px","overflow-x":"hidden"});a.append(m);m=$("<div>");m.addClass("theme-search-close");m.css({bottom:"20px",width:"100px",height:"28px",
position:"absolute",left:"50%","margin-left":"-50px","font-size":"14px",color:"white","text-align":"center","line-height":"20px","border-radius":"2px","margin-bottom":"10px",cursor:"pointer"});var x=$("<div>");x.text(d.get("close","\u5173\u95ed"));x.css("margin-top","3px");x.appendTo(m);m.on("click",function(){r&&r()});a.append(m)};this.setSearchText=function(m){t=m};this.setThemeGroupIDNameMap=function(m){f=m};this.setFunItemSelectedListener=function(m){aa=m};this.setArrItemModel=function(m){n=m};
var G=function(m,x,C){C&&0<C.length&&(m=C[0],aa&&aa(m))},M=function(m,x){m.addClass("theme-search-item");m.css({width:"290px",height:"68px","border-bottom":"1px solid #E2E7EF",left:"6px",top:"6px"});var C=$("<div>");C.addClass("theme-search-item-theme-type");var J="icon_subject";"icon-card-dsb"==da.getInstance(x.getThemeType()).getIconFileName()&&(J="icon_dsb");Za.background(C,J);C.css({position:"absolute",height:"17px",width:"17px",top:"3px"});J=$("<div>");J.addClass("theme-search-item-theme-name");
J.css({"font-size":"14px",color:"black",width:"160px",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis","margin-left":"23px"});J.attr("title",x.getThemeName());var Q=$("<div>");Q.text(f[x.getThemeGroupID()]);Q.addClass("theme-search-item-theme-group-name");Q.css({width:"100px",position:"absolute",right:"7px",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",top:"0px",padding:"0px, 10px, 0px, 10px"});Q.attr("title",f[x.getThemeGroupID()]);var z=$("<div>"),P=x.getThemeDescription();
P&&45<P.length&&(P=P.substring(0,45)+"...");z.addClass("theme-search-item-theme-desc");z.css({width:"280px",position:"absolute","white-space":"normal",top:"22px",height:"40px","word-wrap":"break-word"});z.attr("title",x.getThemeDescription());m.append(C);m.append(J);m.append(Q);m.append(z);t&&(I(J,x.getThemeName(),t),I(z,P,t));m.on("click",function(R){v.setSelecteds([])})},I=function(m,x,C){if(m&&x&&C){C=C.toUpperCase();var J=x.toUpperCase(),Q=J.split(C),z=C.length,P;for(P in Q){var R=J.indexOf(Q[P]),
ta=x.substr(0,Q[P].length);R+=Q[P].length;var y=J.length-R;J=J.substr(R,y);x=x.substr(R,y);R=$("<span>");R.text(ta);R.appendTo(m);P!=Q.length-1&&1<Q.length&&(R=J.indexOf(C),ta=x.substr(R,z),R+=z,y=J.length-R,J=J.substr(R,y),x=x.substr(R,y),R=$("<span>"),R.text(ta),R.css("color","red"),R.clone().appendTo(m))}}}}function Cb(){var a=350,n=250,f=6,t=!1,r,v;this.setDuration=function(aa,fa){a=aa;n=fa};this.setTimes=function(aa,fa){f=2*aa+(fa?1:0);t=fa};this.setAction=function(aa){r=aa};this.blink=function(aa,
fa,G){if(0>=f)throw Error("Illegal usage");clearTimeout(v);var M=function(){if(0==f)r&&r();else{if(f%2==(t?0:1)){aa.addClass(fa);var I=a}else aa.removeClass(fa),aa.addClass(G),I=n;v=setTimeout(M,I);f--}};M()}}function Ea(){var a=[],n,f,t,r=!1,v=!1,aa;this.getDragUsing=function(){return v};this.setJqArrTarget=function(x){a=x};this.addJqTarget=function(x){fa(x);a.push(x)};this.setJqParentUi=function(x){n=x;n.on("mouseenter",function(C){r=!0});n.on("mouseleave",function(C){r=!1})};this.setFunDragDropListener=
function(x){aa=x};this.init=function(){if(0<a.length)for(var x in a)fa(a[x])};var fa=function(x){x.attr("onselectstart","return false");x.on("mousedown",function(C){v=!0;f=C.currentTarget;$(f).css("cursor","move");$(f).parent().children(".theme-card-selected").css("cursor","");$(f).parent().children(".theme-order-choose").removeClass("theme-order-choose");$(f).addClass("theme-order-choose");document.onmousemove=function(J){r||(document.onmousemove=null,document.onmouseup=null,v&&G())};document.onmouseup=
function(J){document.onmousemove=null;document.onmouseup=null;v&&G()}});x.on("mouseenter",function(C){if(v){t=C.currentTarget;C=f;var J=t;if(C&&J&&C!=J){var Q=C.offsetLeft<J.offsetLeft&&C.offsetTop<=J.offsetTop||C.offsetTop<J.offsetTop?!0:!1;M(C,J);M(J,C,C,J,I,Q)}}});x.on("mouseup",function(C){v&&G()})},G=function(){var x=!1;f&&t&&((x=$(f).is(":animated")||$(t).is(":animated"))?setTimeout(G,300):aa&&aa());x||(v=!1,t=f=null)},M=function(x,C,J,Q,z,P){var R=x.getBoundingClientRect(),ta=C.getBoundingClientRect();
x=R.left-ta.left;R=R.top-ta.top;$(C).is(":animated")?z&&z(J,Q,P):z&&$(C).animate({left:x+"px",top:R+"px"},300,"swing",function(){z(J,Q,P)})},I=function(x,C,J){J?$(x).insertAfter($(C)):$(x).insertBefore($(C));m(x);m(C)},m=function(x){x&&($(x).is(":animated")&&$(x).stop(!0,!0).animate(),x.style.left="0px",x.style.top="0px")}}"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.theme&&(com.kingdee.bos.qing.theme={});"undefined"==typeof com.kingdee.bos.qing.theme.ui&&(com.kingdee.bos.qing.theme.ui={});var xb=com.kingdee.bos.qing.theme.ui;xb.Main=function(){var a,n,f,t,r,v,aa,fa,G,M=[],I=[],m=[],x=[],C=[],J=[],Q={},z=!1,P,R,ta,y,Z,u,E,V,pa,Pa,Ta,ma,Da=0,Ma,Sa,ab,Ja,hb,Qa,ob,sb=!1,ca,W=com.kingdee.bos.qing.CodeLoader,S=new function(){var h;this.getAllGroupModel=function(){for(var l=[],p=0;p<m.length;p++)l.push(m[p].getThemeGroupModel());
return l};this.getMessageCurtain=function(){h||(h=new ka,h.getJqUi().appendTo($("body")));return h};this.createFacade=function(l,p,H){var ia=L.getRemoteImpl();return new cb(ia,l,function(ra,La,eb){return p?p(ra,La,eb):!1},H)};this.createCloudLappFacade=function(l,p,H){return new rb("lappAnalysisMgr",l,p,H)};this.createResourceFacade=function(l,p,H){var ia=L.getResourceRemoteImpl();return new cb(ia,l,function(ra,La){return p?p(ra,La):!1},H)};this.getFunDataModelEntrance=function(){return L.getDataModelEntrance()}};
this.createJqUi=function(){W.loadJs("biz-common/qing-biz-common.js");W.loadSkinCss("biz-common","biz-common");W.loadSkinJs("biz-common","skin");W.loadI18n("biz-common","biz-common");W.loadSkinJs("scene","skin");W.loadI18n("scene","scene");W.loadJs("common/qing-schedule.js");W.loadI18n("common","qing-schedule");W.loadSkinCss("publish","qing-publish");W.loadSkinCss("schema-manage","schema-manage");W.loadSkinJs("publish","skin");W.loadSkinJs("schema-manage","skin");W.loadI18n("publish","publish");W.loadJs("schema-manage/schema-manage-initialize.js");
W.loadJs("schema-manage/schema-manage-ui.js");W.loadJs("publish/qing-publish.js");W.loadSkinCss("timedpush","qing-timedpush");W.loadSkinJs("timedpush","skin");W.loadI18n("timedpush","timedpush");W.loadJs("timedpush/qing-timedpush.js");W.loadJs("lightapp/common/qing-lapp-env.js");W.loadJs("timedpush/qing-timedpush-lapp.js");W.loadJs("core/qing-charts.js");W.loadJs("core/qing-main.js");W.loadJs("dashboard/dsb-main.js");W.loadI18n("core","qing-core");W.loadSkinJs("imagelib","skin");W.loadI18n("dashboard",
"dsb-integration");W.loadSkinCss("imagelib","qing-imagelib");W.loadJs("imagelib/imagelib.js");W.loadI18n("imagelib","imagelib");W.loadSkinJs("dashboard","skin-dsb-integration");W.loadJs("dashboard/dsb-integration.js");W.loadSkinCss("dashboard","dsb-integration");W.loadSkinJs("linkage","skin");W.loadJs("linkage/linkage.js");W.loadSkinCss("linkage","linkage");a=$("<div>");a.addClass("theme-manage");v=$("<div>");v.addClass("theme-manage-toolbar");pa=Eb(v,!1,Wb,"btn_newCard",d.get("create","\u65b0\u5efa"),
d.get("create","\u65b0\u5efa"));pa.getJqUi().css("margin-left","12px");var h=$("<input type='file' id='uploadBtn'>");h.addClass("import-theme-file");h.attr("accept",[".qing-pkg",".qing-theme-pkg"]);h.on("change",function(H){if(H=a.find("#uploadBtn").get(0).files[0]){var ia=H.name,ra=H.size,La=ia.lastIndexOf(".");ia=ia.substring(La+1,ia.length).toLowerCase();a.find("#uploadBtn").val("");"qing-pkg"!=ia&&"qing-theme-pkg"!=ia?S.getMessageCurtain().showPrompt(d.get("fileTypeIncorrect","\u6587\u4ef6\u7c7b\u578b\u4e0d\u6b63\u786e\uff0c\u8bf7\u91cd\u65b0\u4e0a\u4f20\u3002"),
2E3):0==ra?S.getMessageCurtain().showPrompt(d.get("uploadFileIsNull","\u4e0a\u4f20\u7684\u6587\u4ef6\u4e3a\u7a7a\uff0c\u8bf7\u91cd\u65b0\u4e0a\u4f20\u3002"),2E3):104857600<=ra?S.getMessageCurtain().showPrompt(d.get("fileTooLarge","\u6587\u4ef6\u592a\u5927\uff0c\u8bf7\u91cd\u65b0\u4e0a\u4f20\u3002"),2E3):(ra=new e,ra.createJqUi(H,S,S.getMessageCurtain()),ra.setFunRefreshThemeGroupList(Kb))}h.val("")});h.appendTo(a);Pa=new Ya;Pa.setText(d.get("importTheme","\u5bfc\u5165"));Pa.setIconSetter(function(H,
ia){Za.background(H,ia)});Pa.setIconName("btn_import");Pa.setTooltips(d.get("importThemeOrDashboard","\u5bfc\u5165\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f"));Pa.getJqUi().on("click",function(){h.click()});Pa.getJqUi().appendTo(v);Pa.getJqUi().attr("accept",[".qing-pkg",".qing-theme-pkg"]);Ta=Eb(v,!1,Xb,"btn_export",d.get("exportTheme","\u5bfc\u51fa"),d.get("exportThemeOrDashboard","\u5bfc\u51fa\u4e1a\u52a1\u4e3b\u9898/\u4eea\u8868\u677f"));ma=Yb(v);_oResourcesToolbarButton=Eb(v,!1,Zb,"btn_resourcesLimit",
d.get("resources","\u8d44\u6e90\u9650\u989d"),d.get("resources","\u8d44\u6e90\u9650\u989d"));$b(v);var l=$("<div>");l.addClass("theme-search-icon");l.attr("title",d.get("search","\u641c\u7d22"));Za.backgroundWithHover(l,"icon_search");l.on("mouseenter",function(){Ua()&&0<C.length?Wa(C):!Ua()&&0<J.length?Wa(J):zb()});var p=yb();Da=Ia(p,l);l.appendTo(v);p.appendTo(v);v.appendTo(a);gb();l=new fb;l.setCallbackImmediately(function(){gb();t&&P&&t&&t.css({width:N()+"px"});ca&&ca.setMessageDialogBounds(null,
5,10,null)});l.setDelay(250);l.observe();ab=$("<div>");ac();ob=$("<div>");Qa.setFirstChild(va.createChildWrapper(ab,function(){ob&&ob.css({width:document.documentElement.clientWidth-Qa.getNonemptyFirstWide()+"px"});t&&t.css({width:document.documentElement.clientWidth-P.getNonemptyFirstWide()-ob.width()-15+"px"})}));Qa.setSecondChild(va.createChildWrapper(ob));Jb();Qa.getJqSplitLine().addClass("tm-themeDetail-splitPaneLine");ab.addClass("theme-manage-container");bc(ab);n=cc();t=dc();P.setFirstChild(va.createChildWrapper(n,
function(){n&&n.css({width:P.getNonemptyFirstWide()+"px"});t&&t.css({width:document.documentElement.clientWidth-P.getNonemptyFirstWide()-15+"px"})}));P.setSecondChild(va.createChildWrapper(t));Lb(null);E||(E=new Ea,E.setJqParentUi(t),E.setFunDragDropListener(mb));return a};var Ia=function(h,l){var p=50;"en"==U.getUrlParamValue("language")&&(p=80);W.setCallback(function(){var H=com.kingdee.bos.qing.message.common.Integration;H.setRemoteUrl(L.getMessageRemoteUrl());H.setImportJSCodeForManager(L.getImportJSCodeForManager());
H.setAppId(L.getAppId());ca=new com.kingdee.bos.qing.message.ui.Main;ca.setFunOpenMessageDialog(function(){ca.setViewSize(null,5,10,null)});ca.setMessageWidth(p);H=ca.getJqUi();H.css({position:"absolute","float":"right",top:"50%","margin-top":"-9px",right:"10px"});V.getJqUi().css("right",p+20+"px");var ia=parseInt(l.css("right").replace("px",""));ia+=p;l.css("right",ia+"px");H.appendTo(v)});W.loadSkinCss("message","message");W.loadSkinJs("message","skin");W.loadJs("message/message-manage-ui.js");
W.loadI18n("message","message");return p},gb=function(){document.body.style.height=document.documentElement.clientHeight+"px"},Ua=function(){var h=d.get("myCategory","\u6211\u7684\u5206\u7c7b"),l;u&&(l=u.getSelected());return l&&h!=l?!0:!1},Wa=function(h){if(!z){z=!0;var l=S.createFacade(function(p){var H=x,ia=[];Ua()?(H=I,C=[]):J=[];for(var ra=0;ra<p.length;ra++){var La=Ca.createInstance(p[ra]);H.push(La);ia.push(La.getThemeGroupID())}m.forEach(function(eb){-1!=ia.indexOf(eb.getThemeGroupModel().getThemeGroupID())&&
eb.getThemeGroupModel().setHasData(!0)});M.forEach(function(eb){-1!=ia.indexOf(eb.getThemeGroupModel().getThemeGroupID())&&eb.getThemeGroupModel().setHasData(!0)});zb();z=!1},function(p,H){return z=!1});l.setShowBlocking(!1);l.getAllThemes(h)}},mb=function(){if(t){for(var h=[],l=t.children(".theme-card"),p=0,H=l.length;p<H;p++){var ia=new Ca;ia.setThemeID(l[p].id);ia.setOrderID(p);h.push(ia.toJsonObject());jb(l[p].id)}0<h.length&&(l=S.createFacade(function(ra){return!0},function(ra,La){return!1}),
l.setShowBlocking(!1),l.saveOrderTheme(h))}},jb=function(h){for(var l in x)if(x[l].getThemeID()==h){h=x[l];x.splice(l,1);x.push(h);break}},zb=function(h){G?G.css("display","block"):(G=$("<div>"),y=new bb,y.setSearchListenerDelay(1E3),y.addSearchListener(Bb),y.setAlwaysShowCleanIcon(!0),y.setShowSearchIcon(!0),y.setPlaceholder(d.get("hostSearchContent","\u641c\u7d22\u540d\u79f0/\u63cf\u8ff0")),h=y.getJqUi(),h.addClass("theme-search-box"),h.find(":input").on("keydown",function(p){13==(p.keyCode||p.which||
p.charCode)&&Bb()}),h.appendTo(G),G.appendTo(v),0!=Da&&(h=parseInt(y.getJqUi().css("right").replace("px","")),h+=Da,y&&y.getJqUi().css("right",h+"px")));y.setFoucs();var l=function(p){var H=$(document.body).children(".sa-ctrl-common-popup");for(p=p.target;p!=document.body;){if(p==G[0]||V&&p==V.getJqUi()[0]||t&&p==t[0]||H&&p==H[0]||Z&&p==Z.getJqUi()[0])return;p=p.parentNode}G.css("display","none");Z&&D(!1);document.body.removeEventListener("mousedown",l,!0)};document.body.addEventListener("mousedown",
l,!0)},Db=function(){Z&&D(!1)},Ab=function(h,l){var p=[];if(h==ib.ALLTYPE)p=l;else for(var H in l)l[H].getThemeType()==h&&p.push(l[H]);return p},Bb=function(){var h=Ua()?Ab(pb,I):Ab(pb,x);var l=0;Z||(Z=new vb,Z.setFunCloseSearchResultPanel(Db),Z.setFunItemSelectedListener(Ka),Z.setThemeGroupIDNameMap(Q),Z.getJqUi().appendTo(a));fa||(fa=$("<div>"),fa.addClass("theme-search-total-records"),fa.text(d.get("searchTotalRecords","\u5171\u627e\u5230\u201c#1\u201d\u4e2a\u7ed3\u679c").replace("#1",l)),fa.css({"margin-top":"16px",
"margin-left":"10px",height:"20px",width:"300px","border-bottom":"2px solid rgb(226, 231, 239)"}),fa.appendTo(Z.getJqUi()));D(!0);l=[];var p;y&&(p=y.getText());if(p&&p.trim()){p=p.trim();Z.setSearchText(p);p=p.toUpperCase();for(var H in h)(-1<h[H].getThemeName().toUpperCase().indexOf(p)||h[H].getThemeDescription()&&-1<h[H].getThemeDescription().toUpperCase().indexOf(p))&&l.push(h[H]);Z.setArrItemModel(l);l=l.length;fa.text(d.get("searchTotalRecords","\u5171\u627e\u5230\u201c#1\u201d\u4e2a\u7ed3\u679c").replace("#1",
l));Z.refresh()}else D(!1)},D=function(h){h?(Ja&&Ja.isOpen()&&Ja.closePanel(),Z.getJqUi().show(),sb=!0):(Z.getJqUi().hide(),sb=!1);h=N(h);t.css("width",h+"px")},N=function(h){var l=document.documentElement.clientWidth-n.width()-15;Z&&(h||"block"==Z.getJqUi().css("display"))&&(l-=Z.getJqUi().width());Ja&&Ja.isOpen()&&(l-=Qa.getNonemptySecondWide());return l},Ka=function(h){var l=h.getThemeGroupID();(l=db(l).getJqUi())&&l.click();var p=$("#"+h.getThemeID());Na("theme-container",p);h=new Cb;h.setTimes(2,
!0);h.blink(p,"theme-twinkle-high-light","theme-card-selected");h.setAction(function(){p.parent().children(".theme-card-selected").removeClass("theme-card-selected");p.parent().children(".theme-order-choose").removeClass("theme-order-choose");p.addClass("theme-card-selected")})},Na=function(h,l){document.querySelector("."+h).scrollTop=l.prop("offsetTop")},db=function(h){var l=m;Ua()&&(l=M);if(!l||0!=l.length)for(var p in l)if(h==l[p].getThemeGroupModel().getThemeGroupID())return l[p]},ib={SUBJECT:0,
DASHBOARD:1,ALLTYPE:2},pb=ib.ALLTYPE,yb=function(){var h=[d.get("allType","\u5168\u90e8\u7c7b\u578b"),d.get("subject","\u4e1a\u52a1\u4e3b\u9898"),d.get("dashboard","\u4eea\u8868\u677f")];V=new F;V.setItemModels(h);V.setSelected(h[0]);V.setCustomPainter(function(l,p,H){p.text(H)});V.addSelectedChangedListener(function(l,p,H){pb=H==d.get("subject","\u4e1a\u52a1\u4e3b\u9898")?ib.SUBJECT:H==d.get("dashboard","\u4eea\u8868\u677f")?ib.DASHBOARD:ib.ALLTYPE;l=f.children(".theme-group-selected");0<l.length&&
(l.removeClass("theme-group-selected"),l.click());Z&&"block"==Z.getJqUi().css("display")&&Bb()});h=V.getJqUi();h.addClass("theme-searchtype-combobox");return h},Yb=function(h){var l=com.kingdee.bos.qing.ui.component.MenuItemModel,p=new com.kingdee.bos.qing.ui.component.MenuModel,H,ia=new l(function(){H||(H=L.getFunPublishContext()());var ra=com.kingdee.bos.qing.publish.common.PublishManagerDialog,La=L.getFunPublishRemoteImpl()(),eb=H;var tb=L.getFunPublishContentEditEntrance()();(new ra(La,eb,tb)).showDialog()});
ia.setUserObject();ia.setText(d.get("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");p.addItemModel(ia);W.setCallback(function(){L.getFunSetLappPrivateUrl()()});ia=new l(function(){H||(H=L.getFunPublishContext()());var ra=new com.kingdee.bos.qing.publish.common.PushManager(L.getFunTimedPushContentEditEntrance()()),La=com.kingdee.bos.qing.timedpush;ra.registerEmailPushPanelConstructor(La.EmailConfigManagePanel);ra.initEmailPushConfig(L.getFunPublishRemoteImpl()(),L.getFunPublishedEmailAnonymousViewUrl()(),
L.getFunPublishedEmailLoginViewUrl()());ra.registerLappPushPanelConstructor(La.LappPushManagePanel);ra.initLappPushConfig(function(eb,tb,wb){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,L.getFunPublishRemoteImpl()(),eb,tb,wb)},H);ra.showDialog()});ia.setUserObject();ia.setText(d.get("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");p.addItemModel(ia);ia=S.createFacade(function(ra){ra&&(ra=new l(function(){var La=
L.getParamPathPrefix();La=(La?La:"/ierp")+"/qing/managementHandOverEntrance.do";var eb=B.getUrlParamValue();eb&&(La=q.appendParamToUrl(La,"skin",eb));(eb=U.getUrlParamValue("language"))&&(La=q.appendParamToUrl(La,"language",eb));eb=d.get("qingManagementHandOver","\u8f7b\u5206\u6790\u7ba1\u7406-\u79fb\u4ea4");com.kingdee.bos.qing.framework.common.TabbedUiUtil.openNewTab(eb,La)}),ra.setText(d.get("handOver","\u79fb\u4ea4...")),p.addItemModel(ra))},function(ra,La){return!1});ia.setShowBlocking(!1);ia.isCurrentUserInQingAdminRole();
ia=d.get("manager","\u7ba1\u7406");return Eb(h,!0,function(){return p},"btn_manage",ia,ia)},$b=function(h){var l=d.get("refresh","\u5237\u65b0");Eb(h,!1,function(){var p;R&&(p=R.getThemeGroupName());Kb(p)},"btn_refreshThemeGroup",l,l)},Eb=function(h,l,p,H,ia,ra){var La=new Ya;La.setIconSetter(function(eb,tb){Za.background(eb,tb)});La.setIconName(H);La.setText(ia);La.setTooltips(ra);l&&La.setShowDropdownArrow(!0);La.addActionListener(function(eb,tb){l?ec(eb.getJqUi(),tb,p,h):p(eb)});La.getJqUi().appendTo(h);
return La},ec=function(h,l,p,H){var ia=h.data("menu");if(ia&&ia.isShowing())h.data("menu",null),ia.hide();else{ia=new com.kingdee.bos.qing.ui.component.Menu;ia.setModel(p());ia.setHideListener(function(){h.data("menu",null)});h.data("menu",ia);p=null==H?_jqCorePane:H;H=h.prop("offsetLeft");var ra=h.prop("offsetHeight")+h.prop("offsetTop");ia.show(p,H,ra,l,!0)}},Zb=function(){ta=new k;ta.setGlobal(S);ta&&ta.showResourceInfoDialog()},bc=function(h){P=new va;P.setHorizontalSplit(!0);P.setEnabled(!0);
P.setSplitLineWide(4);P.setResizeMode(va.RESIZE_MODE_FIRST_FIXED);P.setFirstSize(230,200,640);P.setSecondSize($(document).width()-234,0,-1);P.getJqUi().addClass("sa-qing-publish-manager");h.append(P.getJqUi())},cc=function(){var h=$("<div>");h.addClass("theme-group-container");f=$("<div class='theme-group-all-list' />");f.appendTo(h);return h},fc=function(){var h=[d.get("myCategory","\u6211\u7684\u5206\u7c7b"),d.get("presetCategory","\u9884\u7f6e\u5206\u7c7b")];u=new F;u.setItemModels(h);u.setSelected(h[0]);
u.setCustomPainter(function(l,p,H){p.text(H)});u.addSelectedChangedListener(function(l,p,H){p=!1;H==d.get("presetCategory","\u9884\u7f6e\u5206\u7c7b")?(p=!0,l.getJqUi().prev().css("display","none"),Mb(!1)):(l.getJqUi().prev().css("display","block"),Mb(!0));Nb(p)});h=u.getJqUi();h.css({width:"45%",height:"47px","float":"left"});h.children(".sa-ctrl-combobox-text").css({width:"45%",left:"20px"});h.children(".sa-ctrl-combobox-arrow").css("right","125px");return h},Mb=function(h){h?(pa.getJqUi().css("display",
"block"),Pa.getJqUi().css("display","block"),Ta.getJqUi().css("display","block"),ma&&ma.getJqUi().css("margin-left","0px")):(pa.getJqUi().css("display","none"),Pa.getJqUi().css("display","none"),Ta.getJqUi().css("display","none"),ma&&ma.getJqUi().css("margin-left","12px"))},Nb=function(h,l){f&&f.find(".theme-group-list").css("display","none");var p=m;h&&(p=M);if(p&&0<p.length){h=l?l:p[0].getJqUi();for(var H in p)l=p[H].getJqUi(),l.appendTo(f),l.css("display","block");h&&$(h).click()}},ac=function(){var h=
$("<div>");h.addClass("tm-themeDetail-jqThemeManageContainer");Qa=new va;Qa.setHorizontalSplit(!0);Qa.setEnabled(!0);Qa.setSplitLineWide(4);Qa.setResizeMode(va.RESIZE_MODE_SECOND_FIXED);h.append(Qa.getJqUi());h.appendTo(a)},dc=function(){var h=$("<div>");h.addClass("theme-container");var l=h.append;r=$("<div>");r.hide();r.addClass("theme-no-data-bg-container");var p=$("<div>");Za.background(p,"group-theme-no-data");p.css({height:"140px",marginTop:"210px",backgroundSize:"contain",backgroundPosition:"center"});
var H=$("<div>");H.css({marginTop:"21px",fontSize:"15px"});var ia=d.get("nodataTips","\u8bf7\u70b9\u51fb\u5de5\u5177\u680f\u3010\u65b0\u5efa\u3011\u6309\u94ae\uff0c\u65b0\u5efa\u4e1a\u52a1\u4e3b\u9898\u6216\u4eea\u8868\u677f");H.text(ia);r.append(p);r.append(H);l.call(h,r);return h},Lb=function(h){S.createFacade(function(l){Ob();clearInterval(Sa);Ma&&Ma.remove();if(null==l){var p=d.get("createCategoryFirst","\u60a8\u9700\u8981\u5148\u521b\u5efa\u4e00\u4e2a\u5206\u7c7b\u3002");S.getMessageCurtain().showPrompt(p,
2E3)}else{for(var H=0;H<l.length;H++){var ia=new Ra;ia.fromJsonObject(l[H]);var ra=new ha(S,ia);ra.setFunThemeGroupItemClick(Pb);ra.setFunDeleteSuccessCallBack(Qb);ra.setFunMoveUpGroupItemCallBack(Rb);ra.setThemeGroupIDNameMap(Q);Q[ia.getThemeGroupID()]=ia.getThemeGroupName();ia.isPreset()?(M.push(ra),C.push(ra.getThemeGroupModel().getThemeGroupID())):(m.push(ra),J.push(ra.getThemeGroupModel().getThemeGroupID()));h&&h==ia.getThemeGroupName()&&(p=ra.getJqUi())}aa||(l=$("<div>"),l.addClass("theme-group-op"),
H=$("<span>"),H.addClass("add-theme-group"),H.attr("title",d.get("addThemeGroup","\u6dfb\u52a0\u5206\u7c7b")),H.on("click",gc),Za.backgroundWithHover(H,"btn-add-classification"),H.appendTo(l),M&&0<M.length?H=fc():(H=$("<span>"),H.addClass("theme-group-title"),H.text(d.get("category","\u5206\u7c7b"))),aa=H,aa.appendTo(l),l.appendTo(n));l=Ua();0<m.length&&Sb(m[0]);Nb(l,p)}},function(l,p,H){Ob();clearInterval(Sa);Ma&&Ma.remove();return 3001001==l?(l=d.get("databaseConnectionException","\u6570\u636e\u5e93\u8fde\u63a5\u5f02\u5e38\uff1a")+
"\r\n",p&&(l+=p+"\r\n"),p=new xa,p.setOptionType(xa.OPTION_OK),p.setMessage(l),H&&p.setDetail(H),p.showDialog(),!0):!1}).getThemeGroupList();Xa.subscribeChannel("PresetSubject",Tb)},Ob=function(){Xa.unsubscribeChannel("PresetSubject",Tb)},Tb=function(h){if(1==JSON.parse(h)){$(document.body).find(".sa-common-loading-modallayer").remove();Ma=$("<div>");Ma.addClass("sa-common-loading-modallayer");b.layoutCtrl(Ma,0,0,"100%","100%");h=$("<div class='tm-preset-container'>");var l=$("<div class='tm-presete-sub-container'>"),
p=$("<div class='tm-preset-big-img'>");p.css("background-image",g.getIconUrl("common","htmlLoad/loading.gif"));var H=$("<div class='tm-preset-progress-img'>");H.css("background-image",g.getIconUrl("common","htmlLoad/sway.gif"));var ia=$("<span class='tm-preset-progress-text'>"),ra=d.get("initializing","\u8f7b\u5206\u6790\u6b63\u5728\u6267\u884c\u670d\u52a1\u521d\u59cb\u5316\uff0c\u6839\u636e\u60a8\u7684\u7f51\u7edc\u73af\u5883\uff0c\u8fc7\u7a0b\u53ef\u80fd\u6301\u7eed\u6570\u5341\u79d2\u5230\u51e0\u5206\u949f\uff0c\u8bf7\u7a0d\u4f5c\u7b49\u5f85\u3002");
ia.text(ra);var La=(new Date).getTime();Sa=setInterval(function(){var eb=parseInt(((new Date).getTime()-La)/1E3),tb=parseInt(eb/60),wb=d.get("waitTime","\u5df2\u7b49\u5f85\uff1a");wb=0<tb?wb+tb+d.get("minute","\u5206")+(eb-60*tb)+d.get("second","\u79d2\u3002"):wb+eb+d.get("second","\u79d2\u3002");ia.text(ra+wb)},1E3);l.append(p);l.append(H);l.append(ia);h.append(l);h.appendTo(Ma);Ma.appendTo($(document.body))}},Kb=function(h){z=!1;m=[];J=[];x=[];M=[];C=[];I=[];f.find(".theme-group-list").remove();
Lb(h)},gc=function(){var h=new Ra;h=new ha(S,h);h.setFunThemeGroupItemClick(Pb);h.setFunDeleteSuccessCallBack(Qb);h.setFunAddSuccessCallBack(hc);h.setFunMoveUpGroupItemCallBack(Rb);h.setThemeGroupIDNameMap(Q);var l=h.getJqUi();l.appendTo(f);h.editGroupName();h=l.prop("offsetTop");l=window.innerHeight-150;h>l&&$(f).scrollTop(h-l)},Rb=function(h){var l=h.getJqUi(),p=m.indexOf(h);if(-1<p){l.insertBefore(l.prev());l=m[p-1];m.splice(p-1,2,h,l);for(var H=[],ia=0,ra=m.length;ia<ra;ia++){var La=m[ia].getThemeGroupModel();
La.setOrderID(ra-ia);H.push(La.toJsonObject())}0<H.length&&ic(H);1==p&&(l.getJqUi().children(".moveup-button").css("display",""),Sb(h))}},Sb=function(h){h.getJqUi().children(".moveup-button").css("display","none")},ic=function(h){var l=S.createFacade(function(p){},function(){});l.setShowBlocking(!1);l.saveOrderThemeGroup(h)},Pb=function(h,l){h.hasClass("theme-group-selected")||($(f).find(".theme-group-selected").removeClass("theme-group-selected"),h.addClass("theme-group-selected"),t.find(".theme-card").remove(),
Ub(l))},Qb=function(h){h=h.getThemeGroupID();for(var l=0,p=0;p<m.length;p++)if(h==m[p].getThemeGroupModel().getThemeGroupID()){m.splice(p,1);l=p;break}R&&R.getThemeGroupID()!=h||(m&&0<m.length?(l>m.length-1&&(l=m.length-1),$(m[l].getJqUi()).click()):R=null)},hc=function(h){m.push(h);$(h.getJqUi()).click()},Ub=function(h){R=h;var l=h.getThemeGroupID();if(Ua()){var p=C.indexOf(l);if(-1==p){Vb(l,I,h);return}}else if(p=J.indexOf(l),-1==p){Vb(l,x,h);return}z||(z=!0,p=S.createFacade(function(H){var ia=
x;if(h.isPreset()){var ra=C.indexOf(l);-1<ra&&C.splice(ra,1);ia=I}else ra=J.indexOf(l),-1<ra&&J.splice(ra,1);ra=[];for(var La=0;La<H.length;La++){var eb=Ca.createInstance(H[La]);ia.push(eb);ra.push(eb)}0<ra.length&&h.setHasData(!0);if(h.hasData())for(La in r.hide(),ra=Ab(pb,ra),ra)H=Gb(ra[La]),H.appendTo(t),ra[La].isPreset()||E.addJqTarget(H);else r.show();z=!1},function(H,ia){return z=!1}),p.setShowBlocking(!0),p.getTheme(l))},kc=function(h,l){Ja||(sb&&D(!1),Ja=new ub,Ja.adjustCardContainer(Jb),
Ja.setCollapseListener(jc),Qa.setFirstSize($(document).width()-310,-1,-1),window.addEventListener("resize",function(){Ja.isOpen()?Qa.collapseSecondHalf(!1):Qa.hideSecondHalf(!0)}));Qa.clearState();Qa.setSecondSize(300,300,500);if(Ja.isOpen()){if(h.getThemeID()==hb){Ja.closePanel();return}Ja.setNullToJqUi()}else sb&&D(!1);Ja.setThemeModel(h);Ja.setCardIconType(l);Ja.setGlobalDependence(S);Ja.getJqUi(ob);Ja.setIsOpen(!0);hb=h.getThemeID();Jb();Qa.collapseSecondHalf(!1)},Jb=function(){if(Ja&&Ja.isOpen()){Qa.getJqSplitLine().css("display",
"block");var h=document.documentElement.clientWidth-ob.width()}else Qa.getJqSplitLine().css("display","none"),h=document.documentElement.clientWidth;t&&t.css("width",h-n.width()-15-4+"px")},jc=function(){Qa.collapseSecondHalf(!0)},Vb=function(h,l,p){if(p.hasData()){r.hide();l=Ab(pb,l);for(var H in l)h==l[H].getThemeGroupID()&&(p=Gb(l[H]),p.appendTo(t),l[H].isPreset()||E.addJqTarget(p))}else r.show()},Gb=function(h){var l=da.getInstance(h.getThemeType());l.needRefreshThemes()&&l.setRefreshThemesFunction(function(p){-1==
J.indexOf(p)&&J.push(p);for(var H=x.length-1;0<=H;H--)p==x[H].getThemeGroupID()&&x.splice(H,1);R.getThemeGroupID()==p&&(t.find(".theme-card").remove(),Ub(R))});h=l.createCardUi(h);h.setGlobalDependence(S);h.setCopySuccessCallback(function(p){p=Gb(p);var H=$(t);H.children()[0]?p.insertBefore(H.children()[0]):H.append(p);E.addJqTarget(p)});h.setCopyDifferentGroupSuccessCallBack(lc);h.setDelSuccessCallback(mc);h.setMoveSuccessCallback(nc);h.setArrNonPresetThemeModel(x);h.setThemeDetailCallback(kc);return h.getJqUi()},
mc=function(h){var l=h.getThemeGroupID();h=x.filter(function(ia){return ia.getThemeGroupID()==l});for(var p,H=0;H<m.length;H++)if(m[H].getThemeGroupModel().getThemeGroupID()==l){p=m[H];break}0==h.length&&(p.getThemeGroupModel().setHasData(!1),r.show())},nc=function(h){var l=h.getBeforeMovedThemeGroupId(),p=h.getThemeGroupID(),H=x.filter(function(ia){return ia.getThemeGroupID()==l});m.forEach(function(ia){var ra=ia.getThemeGroupModel().getThemeGroupID();p==ra?ia.getThemeGroupModel().setHasData(!0):
ra==l&&0==H.length&&(ia.getThemeGroupModel().setHasData(!1),r.show())})},lc=function(h){h=h.getThemeGroupID();for(var l,p=0;p<m.length;p++)if(m[p].getThemeGroupModel().getThemeGroupID()==h){l=m[p];break}l.getThemeGroupModel().setHasData(!0)},Wb=function(){var h=$("<div class='sa-ctrl-common-modallayer'>"),l=$(document.body);h.appendTo(l);for(var p=new X(h),H=function(){h.remove();p.destroy()},ia=$("<div>"),ra=da.getAllInstance(),La=0,eb=ra.length;La<eb;La++){var tb=ra[La],wb=$("<div>");b.layoutCtrl(wb,
44+120*La,35,100,66);wb.css("cursor","pointer");wb.data("model",tb);wb.on("click",function(Fb){Fb=$(Fb.currentTarget).data("model");R?oc(Fb):(Fb=d.get("createCategoryFirst","\u60a8\u9700\u8981\u5148\u521b\u5efa\u4e00\u4e2a\u5206\u7c7b\u3002"),S.getMessageCurtain().showPrompt(Fb,2E3));H()});wb.appendTo(ia);var Hb=$("<div>");Hb.css("border-radius","4px");var Ib=$("<div>");Ib.css({"line-height":"16px","font-size":"14px",color:"rgb(78, 86, 103)","text-align":"center"});b.layoutCtrl(Hb,32,0,36,36);b.layoutCtrl(Ib,
0,50,100,16);Ib.text(tb.getDisplayName());Za.background(Hb,tb.getIconFileName());Hb.appendTo(wb);Ib.appendTo(wb)}ra=100+120*ra.length;La=l.prop("clientWidth");l=l.prop("clientHeight");p.setBounds(La-ra>>1,l-210>>1,ra,210);p.setToolbarVisible(!1);p.setContent(ia);p.setTitle(d.get("create","\u65b0\u5efa"));p.addClosingListener(H);p.show()},oc=function(h){var l=h.createThemeModel();l.setThemeGroupID(R.getThemeGroupID());l=new ja(l);l.setThemeTypeName(h.getDisplayName());l.setArrNonPresetThemeModel(x);
l.setGlobal(S);l.addSuccessCallback(function(p){var H=Gb(p),ia=$(t);ia.children()[0]?H.insertBefore(ia.children()[0]):ia.append(H);E.addJqTarget(H);H=d.get("createSuccess","\u65b0\u5efa#1\u6210\u529f\u3002").replace("#1",h.getDisplayName());S.getMessageCurtain().showSuccess(H,2E3);r.hide();p=p.getThemeGroupID();for(H=0;H<m.length;H++)if(m[H].getThemeGroupModel().getThemeGroupID()==p){var ra=m[H];break}ra.getThemeGroupModel().setHasData(!0);sa.occur(sa.TM_CREATE_THEME_TYPE,h.getDisplayName())});l.createDialog().show()},
Xb=function(){S.createFacade(function(h){var l=new A;l.fromJsonObject(h);0<l.getChildren().length?(h=new Aa,h.setRootNode(l),h.setGlobal(S),h.setMessageCurtain(S.getMessageCurtain()),h.asyncShowExportDialog()):S.getMessageCurtain().showPrompt(d.get("noThemeForExport","\u6ca1\u6709\u53ef\u4f9b\u5bfc\u51fa\u7684\u4e1a\u52a1\u4e3b\u9898\u3002"),2E3)},function(h,l){S.getMessageCurtain().showPrompt(l)}).getAllThemeForExportTheme()}};var cb,rb,Za,ea,L,sa,X,ka,F,la,c,za,Ha,va,Ya,bb,Ba,xa,Ra,Ca,d,fb,Xa,Aa,
e,A,k,g,b,q,B,U,T,qa;(function(){var a=com.kingdee.bos.qing.theme.common;cb=a.Facade;rb=a.CloudLappFacade;Za=a.Icons;L=a.Integration;sa=a.UserOperationReporter;a=com.kingdee.bos.qing.ui.component;X=a.Dialog;ka=a.MessageCurtain;F=a.ComboBox;la=a.Label;c=a.SwitchButton;za=a.TextArea;Ha=a.TextField;va=a.SplitPane;Ya=a.ToolbarButton;bb=a.SearchBox;Ba=a.List;xa=a.MessageDialog;ea=a.Icons;a=com.kingdee.bos.qing.theme.model;Ra=a.ThemeGroupModel;Ca=a.ThemeModel;T=a.ThemeDetailModel;qa=a.LappInfoModelDataVO;
a=com.kingdee.bos.qing.framework.common;d=a.MultilanguageManager.createPackageAccessor(xb);fb=a.WindowResizeObserver;Xa=a.RemoteFramework;g=a.Resource;a=com.kingdee.bos.qing.theme.imexport;Aa=a.ExportDialog;e=a.UploadPane;A=a.FolderNode;a=com.kingdee.bos.qing.theme.resourceinfo;k=a.ResourceInfoManager;a=com.kingdee.bos.qing.common;b=a.DomUtil;q=a.Util;a=com.kingdee.bos.qing;B=a.SkinUtil;U=a.Seer})();var da=new function(){var a,n=[],f=[Va,kb,lb],t=function(){a={};for(var r=0,v=f.length;r<v;r++){var aa=
new f[r];aa.isSupported()&&(n.push(aa),a[aa.getType()]=aa)}};this.getInstance=function(r){!a&&t();r=a[r];if(!r)throw Error("Unknown theme type");return r};this.getAllInstance=function(){!a&&t();return n}};O.ENTRANCE_ANALYSIS=1;O.ENTRANCE_SQUARE=2;O.ENTRANCE_DATAMODELING=4;O.ENTRANCE_DASHBOARD=8;O.ENTRANCE_PROGRAMABLECARD=16;O.ENTRANCE_AIANALYSIS=32;qb.cutExceedCharacters=function(a,n){var f=0,t=0;if(a.replace(/[^\x00-\xff]/g,"**").length>n)for(var r=0;r<a.length;r++)if(f<n)if(/^[\u0000-\u00ff]$/.test(a.charAt(r)))if(f+
1.2<n)f+=1.2,t++;else break;else if(f+1.8<n)f+=1.8,t++;else break;return 0==t?a:a.substring(0,t)+"..."}})();
//qingVersionTag: 20250807