var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(l,fc,lb){l instanceof String&&(l=String(l));for(var Mb=l.length,bc=0;bc<Mb;bc++){var Qb=l[bc];if(fc.call(lb,Qb,bc,l))return{i:bc,v:Qb}}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(l,fc,lb){if(l==Array.prototype||l==Object.prototype)return l;l[fc]=lb.value;return l};$jscomp.getGlobal=function(l){l=["object"==typeof globalThis&&globalThis,l,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var fc=0;fc<l.length;++fc){var lb=l[fc];if(lb&&lb.Math==Math)return lb}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(l,fc){var lb=$jscomp.propertyToPolyfillSymbol[fc];if(null==lb)return l[fc];lb=l[lb];return void 0!==lb?lb:l[fc]};
$jscomp.polyfill=function(l,fc,lb,Mb){fc&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(l,fc,lb,Mb):$jscomp.polyfillUnisolated(l,fc,lb,Mb))};$jscomp.polyfillUnisolated=function(l,fc,lb,Mb){lb=$jscomp.global;l=l.split(".");for(Mb=0;Mb<l.length-1;Mb++){var bc=l[Mb];if(!(bc in lb))return;lb=lb[bc]}l=l[l.length-1];Mb=lb[l];fc=fc(Mb);fc!=Mb&&null!=fc&&$jscomp.defineProperty(lb,l,{configurable:!0,writable:!0,value:fc})};
$jscomp.polyfillIsolated=function(l,fc,lb,Mb){var bc=l.split(".");l=1===bc.length;Mb=bc[0];Mb=!l&&Mb in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var Qb=0;Qb<bc.length-1;Qb++){var vb=bc[Qb];if(!(vb in Mb))return;Mb=Mb[vb]}bc=bc[bc.length-1];lb=$jscomp.IS_SYMBOL_NATIVE&&"es6"===lb?Mb[bc]:null;fc=fc(lb);null!=fc&&(l?$jscomp.defineProperty($jscomp.polyfills,bc,{configurable:!0,writable:!0,value:fc}):fc!==lb&&(void 0===$jscomp.propertyToPolyfillSymbol[bc]&&(lb=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[bc]=
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(bc):$jscomp.POLYFILL_PREFIX+lb+"$"+bc),$jscomp.defineProperty(Mb,$jscomp.propertyToPolyfillSymbol[bc],{configurable:!0,writable:!0,value:fc})))};$jscomp.polyfill("Array.prototype.find",function(l){return l?l:function(fc,lb){return $jscomp.findInternal(this,fc,lb).v}},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(l){return l?l:function(fc,lb,Mb){var bc=this.length||0;0>lb&&(lb=Math.max(0,bc+lb));if(null==Mb||Mb>bc)Mb=bc;Mb=Number(Mb);0>Mb&&(Mb=Math.max(0,bc+Mb));for(lb=Number(lb||0);lb<Mb;lb++)this[lb]=fc;return this}},"es6","es3");$jscomp.typedArrayFill=function(l){return l?l: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 l(){var Ha=this,oa=[];this.clone=function(){for(var p=new l,X=0;X<oa.length;X++){var na=oa[X].clone();p.addParagraph(na)}return p};this.getParagraphCount=function(){return oa.length};this.getParagraph=function(p){return oa[p]};this.addParagraph=function(p){oa.push(p)};this.insertParagraph=function(p){var X=new fc;oa.splice(p,0,X);return X};this.getAllText=function(p,X){var na="";cb(X,function(Ua,ha,f,xa){ha=xa.getText();X&&(Ua==X.getToParagraphIndex()&&f==X.getToContentIndex()&&
(ha=ha.substring(0,X.getToOffset())),Ua==X.getFromParagraphIndex()&&f==X.getFromContentIndex()&&(ha=ha.substring(X.getFromOffset())));na+=ha},function(){p&&(na+=p)});return na};this.getAllTextLength=function(p){var X=0;cb(p,function(na,Ua,ha,f){X+=f.getTextLength();p&&(na==p.getFromParagraphIndex()&&ha==p.getFromContentIndex()&&(X-=p.getFromOffset()),na==p.getToParagraphIndex()&&ha==p.getToContentIndex()&&(X-=f.getTextLength()-p.getToOffset()))});return X};this.getScope=function(p){var X=[0,0];if(p){var na=
0,Ua=0;cb(null,function(ha,f,xa,Ba){ha==p.getFromParagraphIndex()&&xa==p.getFromContentIndex()&&(X[0]=na+p.getFromOffset(),Ua++);ha==p.getToParagraphIndex()&&xa==p.getToContentIndex()&&(X[1]=na+p.getToOffset(),Ua++);na+=Ba.getTextLength();return 2<=Ua})}return X};this.replaceText=function(p,X,na){p+=1;var Ua,ha,f=0;cb(null,function(Pa,Oa,Za,ib){Oa=f+ib.getTextLength();!Ua&&Oa>=p&&(Ua=new bc(Pa,Za,p-f));!ha&&Oa>=X&&(ha=new bc(Pa,Za,X-f));f=Oa;return Ua&&ha?!0:!1});var xa=oa[Ua.getParagraphIndex()].getContent(Ua.getContentIndex()),
Ba=Ua.getOffset()-1;Ua.update(Ua.getContentIndex(),Ba);ob(new Qb(Ua,ha));var qa=xa.getText();xa.setText(qa.substring(0,Ba)+na+qa.substring(Ba))};this.replaceVar=function(p,X,na){p+=1;var Ua,ha,f=0;cb(null,function(Za,ib,Kb,nc){ib=f+nc.getTextLength();!Ua&&ib>=p&&(Ua=new bc(Za,Kb,p-f));!ha&&ib>=X&&(ha=new bc(Za,Kb,X-f));f=ib;return Ua&&ha?!0:!1});var xa=oa[Ua.getParagraphIndex()].getContent(Ua.getContentIndex()),Ba=new lb;Ba.setText(na);Ba.brushStyleBy(xa);Ua.update(Ua.getContentIndex(),Ua.getOffset()-
1);ob(new Qb(Ua,ha));na=Ua.getOffset();xa=oa[Ua.getParagraphIndex()];if(0==na)xa.insertContent(Ua.getContentIndex(),Ba);else{var qa=xa.getContent(Ua.getContentIndex()),Pa=qa.getText();if(Pa.length>na){qa.setText(Pa.substring(na));var Oa=new lb;Oa.setText(Pa.substring(0,na));Oa.brushStyleBy(qa);xa.insertContent(Ua.getContentIndex(),Oa)}xa.insertContent(Ua.getContentIndex()+1,Ba)}return Ba};this.inputText=function(p,X,na){!p.isCollapse()&&ob(p);var Ua=p.getFromParagraphIndex(),ha=p.getFromParagraphIndex(),
f=p.getFromContentIndex(),xa=p.getFromOffset();p=oa[ha];var Ba=p.getContent(f),qa=Ba.getText();Ba.setText(qa.substring(0,xa));var Pa=new lb;Pa.setText(qa.substring(xa));Pa.brushStyleBy(Ba);p.insertContent(f+1,Pa);f++;xa=0;qa=X.length;for(Pa=0;Pa<qa;Pa++){var Oa=X[Pa];Gb.cleanInvalidChar(Oa,function(Za){Oa=Za});xa=new lb;xa.setText(Oa);xa.brushStyleBy(Ba);na&&na.applyTo(xa);p=oa[ha];p.insertContent(f,xa);xa=Oa.length;p=new Qb(new bc(ha,f,xa));Pa<qa-1&&(kb(p),ha++,xa=f=0)}p=new Qb(new bc(ha,f,xa));
Ia(Ua,ha,p);return p};this.inputCommand=function(p,X){var na=!p.isCollapse(),Ua=p.getFromParagraphIndex(),ha=Ua,f=Ua;switch(X){case 13:kb(p);na&&ob(p);var xa=new bc(Ua+1,0,0);f=Ua+1;break;case 8:if(na)ob(p);else{xa=p;ha=xa.getFromParagraphIndex();f=xa.getFromContentIndex();xa=xa.getFromOffset();X=oa[ha];if(0==xa)if(0==f){if(0!=ha){var Ba=oa[ha-1];oa.splice(ha,1);ha--;f=Ba.getContentCount()-1;xa=Ba.getContent(f).getTextLength();for(var qa=0;qa<X.getContentCount();qa++)na=X.getContent(qa),Ba.addContent(na)}}else xa=
X.getContent(f-1),Ba=xa.getText(),xa.setText(Ba.substring(0,Ba.length-1)),f--,xa=xa.getTextLength();else na=X.getContent(f),Ba=na.getText(),na.setText(Ba.substring(0,xa-1)+Ba.substring(xa)),xa--,0==xa&&0<f&&(f--,xa=X.getContent(f).getTextLength());xa=new bc(ha,f,xa);f=ha=xa.getParagraphIndex()}break;case 46:if(na)ob(p);else{na=p;X=na.getFromParagraphIndex();Ba=na.getFromContentIndex();qa=na.getFromOffset();na=oa[X];var Pa=na.getContent(Ba);if(qa==Pa.getTextLength())if(Ba==na.getContentCount()-1){if(X!=
oa.length-1){Ba=oa[X+1];for(qa=0;qa<Ba.getContentCount();qa++)na.addContent(Ba.getContent(qa));oa.splice(X+1,1)}}else X=na.getContent(Ba+1),1<X.getTextLength()?X.setText(X.getText().substring(1)):na.removeContent(Ba+1);else X=Pa.getText(),Pa.setText(X.substring(0,qa)+X.substring(qa+1))}}xa||(xa=new bc(Ua,p.getFromContentIndex(),p.getFromOffset()));p=new Qb(xa);Ia(ha,f,p);return p};this.changeParagraphStyle=function(p,X){for(var na=p.getFromParagraphIndex();na<=p.getToParagraphIndex();na++)X(oa[na])};
this.changeContentStyle=function(p,X){for(var na=p.getFromParagraphIndex(),Ua=p.getFromContentIndex(),ha=p.getFromOffset(),f=p.getToParagraphIndex(),xa=p.getToContentIndex(),Ba=p.getToOffset(),qa=f;qa>=na;qa--){var Pa=oa[qa],Oa=Pa.getContentCount()-1;if(qa==f){var Za=Pa.getContent(xa),ib=Za.getText();Za.setText(ib.substring(0,Ba));var Kb=new lb;Kb.setText(ib.substring(Ba));Kb.brushStyleBy(Za);Pa.insertContent(xa+1,Kb);Oa=xa}ib=0;qa==na&&(Za=Pa.getContent(Ua),ib=Za.getText(),Za.setText(ib.substring(ha)),
Kb=new lb,Kb.setText(ib.substring(0,ha)),Kb.brushStyleBy(Za),Pa.insertContent(Ua,Kb),Oa++,ib=Ua+1,p.updateStartPosition(Ua+1,0),na==f&&p.updateEndPosition(Oa,Pa.getContent(Oa).getTextLength()));for(;Oa>=ib;Oa--)Za=Pa.getContent(Oa),X(Za)}Ia(na,f,p)};var kb=function(p){var X=p.getToParagraphIndex(),na=oa[X];X=Ha.insertParagraph(X+1);X.brushStyleBy(na);for(var Ua=na.getContentCount()-1;Ua>p.getToContentIndex();Ua--){var ha=na.removeContent(Ua);X.insertContent(0,ha)}ha=na.getContent(p.getToContentIndex());
na=ha.getText().substring(p.getToOffset());ha.setText(ha.getText().substring(0,p.getToOffset()));p=new lb;p.setText(na);p.brushStyleBy(ha);X.insertContent(0,p)},ob=function(p){if(p.isInsideOneParagraph()){var X=oa[p.getFromParagraphIndex()];if(p.isInsideOneContent()){var na=X.getContent(p.getFromContentIndex());X=na.getText();na.setText(X.substring(0,p.getFromOffset())+X.substring(p.getToOffset()))}else for(na=X.getContent(p.getFromContentIndex()),na.setText(na.getText().substring(0,p.getFromOffset())),
na=X.getContent(p.getToContentIndex()),na.setText(na.getText().substring(p.getToOffset())),na=p.getToContentIndex()-1;na>p.getFromContentIndex();na--)X.removeContent(na)}else{X=oa[p.getFromParagraphIndex()];na=X.getContent(p.getFromContentIndex());na.setText(na.getText().substring(0,p.getFromOffset()));for(na=X.getContentCount()-1;na>p.getFromContentIndex();na--)X.removeContent(na);var Ua=oa[p.getToParagraphIndex()];na=Ua.getContent(p.getToContentIndex());na.setText(na.getText().substring(p.getToOffset()));
for(na=p.getToContentIndex()-1;0<=na;na--)Ua.removeContent(na);oa.splice(p.getFromParagraphIndex()+1,p.getToParagraphIndex()-p.getFromParagraphIndex());for(na=0;na<Ua.getContentCount();na++)X.addContent(Ua.getContent(na))}},Ia=function(p,X,na){for(;X>=p;X--)for(var Ua=oa[X],ha=null,f=Ua.getContentCount()-1;0<=f;f--){var xa=Ua.getContent(f);if(xa.isTextEmpty()&&1<Ua.getContentCount()){Ua.removeContent(f);if(X==na.getFromParagraphIndex())if(f<na.getFromContentIndex())na.updateStartPosition(na.getFromContentIndex()-
1);else if(f==na.getFromContentIndex()){xa=0==f?0:f-1;var Ba=0==f?0:Ua.getContent(f-1).getTextLength();na.updateStartPosition(xa,Ba)}X==na.getToParagraphIndex()&&(f<na.getToContentIndex()?na.updateEndPosition(na.getToContentIndex()-1):f==na.getToContentIndex()&&(xa=0==f?0:f-1,Ba=0==f?0:Ua.getContent(f-1).getTextLength(),na.updateEndPosition(xa,Ba)))}else ha&&xa.isStyleDuplicated(ha)&&(Ba=xa.getTextLength(),xa.setText(xa.getText()+ha.getText()),ha=f+1,Ua.removeContent(ha),X==na.getFromParagraphIndex()&&
(ha<na.getFromContentIndex()?na.updateStartPosition(na.getFromContentIndex()-1):ha==na.getFromContentIndex()&&na.updateStartPosition(na.getFromContentIndex()-1,Ba+na.getFromOffset())),X==na.getToParagraphIndex()&&(ha<na.getToContentIndex()?na.updateEndPosition(na.getToContentIndex()-1):ha==na.getToContentIndex()&&na.updateEndPosition(na.getToContentIndex()-1,Ba+na.getToOffset()))),ha=xa}},cb=function(p,X,na){for(var Ua=p?p.getFromParagraphIndex():0,ha=p?p.getToParagraphIndex():oa.length-1,f=Ua;f<=
ha;f++){f>Ua&&na&&na();for(var xa=oa[f],Ba=p&&f==Ua?p.getFromContentIndex():0,qa=p&&f==ha?p.getToContentIndex():xa.getContentCount()-1;Ba<=qa;Ba++){var Pa=xa.getContent(Ba);if(X(f,xa,Ba,Pa))return}}}}function fc(){var Ha=this,oa=[],kb="left",ob=1.5,Ia=0,cb=0,p=0;this.getContentCount=function(){return oa.length};this.getContent=function(X){return oa[X]};this.removeContent=function(X){return oa.splice(X,1)[0]};this.addContent=function(X){oa.push(X)};this.insertContent=function(X,na){oa.splice(X,0,na)};
this.isTextEmpty=function(){for(var X=0;X<oa.length;X++)if(!oa[X].isTextEmpty())return!1;return!0};this.clone=function(){var X=new fc;X.brushStyleBy(Ha);for(var na=0;na<oa.length;na++){var Ua=oa[na].clone();X.addContent(Ua)}return X};this.brushStyleBy=function(X){kb=X.getAlign();ob=X.getLineHeight();Ia=X.getMarginBefore();cb=X.getMarginAfter();p=X.getIndent()};this.getMaxFontSize=function(){for(var X=0,na=0;na<oa.length;na++)X=Math.max(X,oa[na].getFontSize());return X};this.getAlign=function(){return kb};
this.setAlign=function(X){kb=X};this.getLineHeight=function(){return ob};this.setLineHeight=function(X){ob=X};this.getMarginBefore=function(){return Ia};this.setMarginBefore=function(X){Ia=X};this.getMarginAfter=function(){return cb};this.setMarginAfter=function(X){cb=X};this.getIndent=function(){return p};this.setIndent=function(X){p=X}}function lb(){var Ha=this,oa="",kb,ob=12,Ia=!1,cb=!1,p,X;this.getText=function(){return oa};this.setText=function(na){oa=na};this.getTextLength=function(){return oa.length};
this.isTextEmpty=function(){return oa?!1:!0};this.clone=function(){var na=new lb;na.setText(oa);na.brushStyleBy(Ha);return na};this.brushStyleBy=function(na){kb=na.getFontName();ob=na.getFontSize();Ia=na.isBold();cb=na.isItalic();p=na.getColor()};this.isStyleDuplicated=function(na){return kb==na.getFontName()&&ob==na.getFontSize()&&Ia==na.isBold()&&cb==na.isItalic()&&p==na.getColor()};this.getFontName=function(){return kb};this.setFontName=function(na){kb=na};this.getFontSize=function(){return ob};
this.setFontSize=function(na){ob=na};this.isBold=function(){return Ia};this.setBold=function(na){Ia=na};this.isItalic=function(){return cb};this.setItalic=function(na){cb=na};this.getColor=function(){return p};this.setColor=function(na){p=na};this.hookUiCustomDecorator=function(na){X=na};this.uiCustomDecorating=function(na){X&&X(na)}}function Mb(){lb.call(this);var Ha=this;this.applyTo=function(oa){void 0!==Ha.getFontName()&&oa.setFontName(Ha.getFontName());void 0!==Ha.getFontSize()&&oa.setFontSize(Ha.getFontSize());
void 0!==Ha.isBold()&&oa.setBold(Ha.isBold());void 0!==Ha.isItalic()&&oa.setItalic(Ha.isItalic());void 0!==Ha.getColor()&&oa.setColor(Ha.getColor())}}function bc(Ha,oa,kb){var ob=oa,Ia=kb;this.getParagraphIndex=function(){return Ha};this.getContentIndex=function(){return ob};this.getOffset=function(){return Ia};this.update=function(cb,p){ob=cb;"number"==typeof p&&(Ia=p)};this.toString=function(){return Ha+","+ob+","+Ia}}function Qb(Ha,oa){var kb=this,ob=oa?oa:new bc(Ha.getParagraphIndex(),Ha.getContentIndex(),
Ha.getOffset());this.isInsideOneParagraph=function(){return Ha.getParagraphIndex()==ob.getParagraphIndex()};this.isInsideOneContent=function(){return kb.isInsideOneParagraph()&&Ha.getContentIndex()==ob.getContentIndex()};this.isCollapse=function(){return kb.isInsideOneContent()&&Ha.getOffset()==ob.getOffset()};this.getFromParagraphIndex=function(){return Ha.getParagraphIndex()};this.getToParagraphIndex=function(){return ob.getParagraphIndex()};this.getFromContentIndex=function(){return Ha.getContentIndex()};
this.getToContentIndex=function(){return ob.getContentIndex()};this.getFromOffset=function(){return Ha.getOffset()};this.getToOffset=function(){return ob.getOffset()};this.updateStartPosition=function(Ia,cb){Ha.update(Ia,cb)};this.updateEndPosition=function(Ia,cb){ob.update(Ia,cb)};this.toString=function(){return Ha.toString()+"~"+ob.toString()}}function vb(){var Ha=RegExp("\u21b5","gm"),oa=this,kb,ob,Ia="#333333",cb="transparent";this.getJqUi=function(){ob||(ob=$("<div>"),ob.css("padding","4px 6px"),
ob.css("overflow-x","hidden"),ob.css("overflow-y","auto"),ob.css("white-space","pre-wrap"),kb&&p());return ob};this.setModel=function(X){kb=X;ob&&p()};this.setDefaultColor=function(X){Ia=X;oa.refresh()};this.getDefaultColor=function(){return Ia};this.setOccupierColor=function(X){cb=X;ob&&ob.find(".occupier").css("color",cb)};this.refresh=function(){kb&&ob&&p()};this.searchJqUiOfParagraphs=function(){return oa.getJqUi().children(".paragraph")};this.searchJqUiOfContents=function(X){return X?X.children(".content"):
oa.getJqUi().find(".content")};this.searchJqUiOfContent=function(X,na){X=".paragraph:eq(#1) .content:eq(#2)".replace("#1",X).replace("#2",na);return oa.getJqUi().find(X)};this.searchHtmlUiOfText=function(X){X=X[0];var na=X.childNodes;return na&&0<na.length?(X=na[0],[X,X.length]):[X,0]};this.searchText=function(){var X=oa.getJqUi().text();return X=X.replace(Ha,"")};this.upwardSearchOccupier=function(X){for(X=$(X);!X.hasClass("occupier");)if(X=X.parent(),0==X.length||X[0]==ob[0]||X[0]==document.body)return null;
return X};this.searchOccupierInstead=function(X){return oa.searchJqUiOfContents($(X).parent())[0]};var p=function(){for(var X=$(document.createDocumentFragment()),na=0;na<kb.getParagraphCount();na++){var Ua=kb.getParagraph(na),ha=0<na?kb.getParagraph(na-1):null,f=$("<div>");f.addClass("paragraph");f.appendTo(X);var xa=f,Ba=Ua;ha=ha?ha.getMarginAfter():0;xa.css("text-align",Ba.getAlign());xa.css("line-height",Ba.getLineHeight()+"em");xa.css("margin-top",ha+Ba.getMarginBefore()+"px");xa.css("margin-bottom",
Ba.getMarginAfter()+"px");xa.css("text-indent",Ba.getIndent()+"em");xa.css("font-size",Ba.getMaxFontSize()+"px");for(xa=0;xa<Ua.getContentCount();xa++){Ba=Ua.getContent(xa);ha=$("<span>");ha.addClass("content");ha.text(Ba.getText());ha.appendTo(f);var qa=ha,Pa=Ba;qa.css("font-family",Pa.getFontName()?Pa.getFontName():"");qa.css("font-size",Pa.getFontSize()+"px");Pa.isBold()&&qa.css("font-weight","bold");Pa.isItalic()&&qa.css("font-style","italic");Pa.getColor()&&qa.css("color",Pa.getColor());Ba.uiCustomDecorating(ha)}Ua.isTextEmpty()&&
(Ua=$("<span>"),Ua.addClass("occupier"),Ua.text("\u21b5"),Ua.css("font-size","8px"),Ua.css("color",cb),Ua.appendTo(f))}ob.empty();ob.append(X);ob.css("color",Ia)}}function Cb(){var Ha,oa,kb,ob,Ia,cb,p,X,na,Ua,ha,f,xa,Ba,qa,Pa,Oa;this.hookDefaultColorGetter=function(Ca){Ha=Ca};this.getJqUi=function(){if(!ob){Ia=nc(Rb.get("fontName","\u5b57\u4f53"));cb=kc(Rb.get("fontSize","\u5b57\u53f7"));p=rc("rich-bold",Rb.get("bold","\u52a0\u7c97"));X=uc("rich-italic",Rb.get("italic","\u659c\u4f53"));na=Jc("rich-color",
Rb.get("color","\u5b57\u4f53\u989c\u8272"));Ua=Dc("left","rich-left",Rb.get("alignLeft","\u5de6\u5bf9\u9f50"));ha=Dc("center","rich-center",Rb.get("alignCenter","\u5c45\u4e2d"));f=Dc("right","rich-right",Rb.get("alignRight","\u53f3\u5bf9\u9f50"));xa=Dc("justify","rich-justify",Rb.get("alignJustify","\u4e24\u7aef\u5bf9\u9f50"));Ba=Kc("rich-lineheight",Rb.get("lineHeight","\u884c\u8ddd"));qa=ic("rich-indent",Rb.get("indent","\u6bb5\u9996\u7f29\u8fdb"));Pa=yc(!0,"rich-marginbefore",Rb.get("marginBefore",
"\u6bb5\u524d\u95f4\u8ddd"));Oa=yc(!1,"rich-marginafter",Rb.get("marginAfter","\u6bb5\u540e\u95f4\u8ddd"));ob=$("<div>");var Ca=Za(Ia,0,108);Ca=Za(cb,Ca,44);Ca=Za(p,Ca,20);Ca=Za(X,Ca,20);Ca=Za(na,Ca,32);Ca=Za(Ua,Ca,20);Ca=Za(ha,Ca,20);Ca=Za(f,Ca,20);Ca=Za(xa,Ca,20);Ca=Za(Ba,Ca,32);Ca=Za(qa,Ca,32);Ca=Za(Pa,Ca,32);Za(Oa,Ca,32)}return ob};this.updateState=function(Ca,Ea){Ia.setSelectedModel(Ea.getFontName());cb.setSelectedModel(Ea.getFontSize());p.setSelected(Ea.isBold());X.setSelected(Ea.isItalic());
na.setSelectedModel(Ea.getColor());qa.setSelectedModel(Ca.getIndent());Ua.setSelected("left"==Ca.getAlign());ha.setSelected("center"==Ca.getAlign());f.setSelected("right"==Ca.getAlign());xa.setSelected("justify"==Ca.getAlign());Ba.setSelectedModel(Ca.getLineHeight());Pa.setSelectedModel(Ca.getMarginBefore());Oa.setSelectedModel(Ca.getMarginAfter())};this.setStyleModifyListener=function(Ca,Ea){oa=Ca;kb=Ea};var Za=function(Ca,Ea,Ra){ob.append(Ca.getJqUi());Ob.layoutCtrl(Ca.getJqUi(),Ea,0,Ra,20);return Ea+
Ra+4},ib=function(Ca,Ea){var Ra=new Tb,Fa=Ra.getJqUi();Fa.attr("title",Ea);Ea=$("<div>");Pb.background(Ea,Ca);Ea.appendTo(Fa);Ob.layoutCtrlCenterAlign(Ea,16);Ob.layoutCtrlMiddleAlign(Ea,16);return Ra},Kb=function(Ca,Ea,Ra,Fa,Xa){var eb=new Na;Ra&&eb.setCustomPainter(function(w,Ka){Ka.data("init")||(Ka.data("init",!0),Ic(Ka),w=$("<div>"),Pb.background(w,Ra),w.appendTo(Ka),Ob.layoutCtrlCenterAlign(w,16),Ob.layoutCtrlMiddleAlign(w,16))});eb.setDropdownCreator(function(w,Ka,Ab,Ib){Ib=new Ja;Ib.setText(Ca+
" ("+Ea+")");var cc=new Eb;Fa(cc);cc.setValue(Ka);cc.addValueChangedListener(function(Ec,zc,xc,Lc){Lc==Eb.CHANGED_BY_MANUAL_EDIT&&Ab(xc)});Ka=new fb;Ka.setText(Rb.get("confirmButton","\u786e\u5b9a"));Ka.addActionListener(function(Ec){Ab(cc.getValue())});Ob.layoutCtrlWithLRTB(Ib.getJqUi(),10,10,null,4,null,23);Ob.layoutCtrlWithLRTB(cc.getJqUi(),10,null,68,30,null,23);Ob.layoutCtrlWithLRTB(Ka.getJqUi(),null,10,42,30,null,23);w.append(Ib.getJqUi());w.append(cc.getJqUi());w.append(Ka.getJqUi());w.css("background-color",
"#fff");return[140,66]});eb.addSelectionListener(function(w,Ka){Ka&&Xa(w.getSelectedModel())});eb.getJqUi().attr("title",Ca);return eb},nc=function(Ca){var Ea=new Na;Ea.setDropdownCreator(function(Ra,Fa,Xa,eb){eb=new Ja;eb.setText(Ca);var w=new hc;w.setUiListMode(!0);w.setDefaultDisplay("("+Rb.get("systemDefaultFont","\u9ed8\u8ba4\u5b57\u4f53")+")");w.setSelected(Fa);w.setSelectionListener(function(Ka,Ab){setTimeout(function(){Xa(Ab)},0)});Ob.layoutCtrlWithLRTB(eb.getJqUi(),10,10,null,4,null,23);
Ob.layoutCtrlWithLRTB(w.getJqUi(),10,10,null,30,10,null);Ra.append(eb.getJqUi());Ra.append(w.getJqUi());Ra.css("background-color","#fff");return[240,200]});Ea.addSelectionListener(function(Ra,Fa){Fa&&kb(function(Xa){Xa.setFontName(Ra.getSelectedModel())})});Ea.getJqUi().attr("title",Ca);Ea.setCustomPainter(function(Ra,Fa){if(Ra){var Xa=hc.searchDisplayName(Ra);!Xa&&(Xa=Ra)}else Xa="("+Rb.get("systemDefaultFont","\u9ed8\u8ba4\u5b57\u4f53")+")";Fa.text(Xa)});return Ea},kc=function(Ca){Ca=Kb(Ca,Rb.get("unitPx",
"\u50cf\u7d20"),null,function(Ea){Ea.setConstraint(10,100,1)},function(Ea){kb(function(Ra){Ra.setFontSize(Ea)})});Ca.setCustomPainter(function(Ea,Ra){Ic(Ra);Ra.text(Ea);Ra.css("left",0);Ra.css("right",12)});return Ca},rc=function(Ca,Ea){Ca=ib(Ca,Ea);Ca.addActionListener(function(Ra){var Fa=Ra.isSelected();kb(function(Xa){Xa.setBold(Fa)})});return Ca},uc=function(Ca,Ea){Ca=ib(Ca,Ea);Ca.addActionListener(function(Ra){var Fa=Ra.isSelected();kb(function(Xa){Xa.setItalic(Fa)})});return Ca},Dc=function(Ca,
Ea,Ra){Ea=ib(Ea,Ra);Ea.addActionListener(function(Fa){Fa.isSelected()?(Ua.setSelected(!1),ha.setSelected(!1),f.setSelected(!1),xa.setSelected(!1),Fa.setSelected(!0),oa(function(Xa){Xa.setAlign(Ca)})):(Fa.setSelected(!0),oa(null))});return Ea},ic=function(Ca,Ea){return Kb(Ea,Rb.get("unitEm","\u500d"),Ca,function(Ra){Ra.setConstraint(0,10,.5);Ra.supportDecimal(2)},function(Ra){oa(function(Fa){Fa.setIndent(Ra)})})},yc=function(Ca,Ea,Ra){return Kb(Ra,Rb.get("unitPx","\u50cf\u7d20"),Ea,function(Fa){Fa.setConstraint(0,
100,1)},function(Fa){oa(function(Xa){Ca?Xa.setMarginBefore(Fa):Xa.setMarginAfter(Fa)})})},Kc=function(Ca,Ea){return Kb(Ea,Rb.get("unitEm","\u500d"),Ca,function(Ra){Ra.setConstraint(.1,10,.1);Ra.supportDecimal(2)},function(Ra){oa(function(Fa){Fa.setLineHeight(Ra)})})},Jc=function(Ca,Ea){var Ra=new Na;Ra.setCustomPainter(function(Fa,Xa){var eb=Xa.data("myColorUi");eb||(Ic(Xa),Xa.css("overflow","visible"),eb=$("<div>"),Pb.background(eb,Ca),eb.appendTo(Xa),Ob.layoutCtrl(eb,2,0,16,16),eb=$("<div>"),eb.css("border",
"1px solid #f0f0f0"),eb.appendTo(Xa),Ob.layoutCtrl(eb,2,11,14,4),Xa.data("myColorUi",eb));eb.css("background-color",Fa?Fa:Ha())});Ra.setDropdownCreator(function(Fa,Xa,eb,w){w=new wa;w.setColorConfirmedListener(function(Ka){eb(Ka)});Xa=w.createJqUi(Xa,Rb.get("systemDefault","\u7cfb\u7edf\u9ed8\u8ba4"));Xa.appendTo(Fa);return[Xa.outerWidth(),Xa.outerHeight()]});Ra.addSelectionListener(function(Fa,Xa){Xa&&kb(function(eb){var w=Fa.getSelectedModel();eb.setColor(w)})});Ra.getJqUi().attr("title",Ea);return Ra},
Ic=function(Ca){Ca.css("left",0);Ca.css("right",12);Ca.next().css("right",0)}}function wa(){var Ha=["#ffffff #000000 #1f497d #c0504d #9bbb59 #8064a2 #4bacc6 #f79646".split(" "),"#f2f2f2 #7f7f7f #c6d9f0 #f2dcdb #ebf1dd #e5e0ec #dbeef3 #fdeada".split(" "),"#d8d8d8 #595959 #8db3e2 #e5b9b7 #d7e3bc #ccc1d9 #b7dde8 #fbd5b5".split(" "),"#bfbfbf #3f3f3f #548dd4 #d99694 #c3d69b #b2a2c7 #92cddc #fac08f".split(" "),"#a5a5a5 #262626 #17365d #953734 #76923c #5f497a #31859b #e36c09".split(" "),"#7f7f7f #0c0c0c #0f243e #632423 #4f6128 #3f3151 #205867 #974806".split(" "),
"#c00000 #ff0000 #ffc000 #ffff00 #92d050 #00b050 #00b0f0 #7030a0".split(" ")],oa;this.setColorConfirmedListener=function(kb){oa=kb};this.createJqUi=function(kb,ob){var Ia=new Tb;Ia.setText(ob);Ia.addActionListener(function(cb){cb.setSelected(!0);oa(null)});ob=Ia.getJqUi();ob.css("line-height","18px");kb?ob.css("border","1px solid #dbdbdb"):(Ia.setSelected(!0),kb="#808080");Ia=new ub;Ia.setColorPool(Ha);Ia.getModel().decodeFrom(kb);Ia.addSelectedListener(function(cb){cb=cb.encodeToHexRgb();oa(cb)});
kb=Ia.createJqUi();Ia=$("<div>");Ia.append(ob);Ia.append(kb);Ob.layoutCtrlWithLRTB(ob,6,6,null,8,null,20);Ob.layoutCtrlWithLRTB(kb,0,0,null,28,0,null);Ia.css("background-color","#fff");Ia.css("width",kb.outerWidth());Ia.css("height",kb.outerHeight()+28);return Ia}}function gb(){var Ha,oa=$("<div>"),kb=$("<div>");this.getJqUi=function(){Ha||(oa.css({color:"#bbb"}),kb.css({color:"#bbb","text-align":"right"}),Ha=$("<div>"),Ha.append(oa),Ha.append(kb),Ob.layoutCtrlWithLRTB(oa,4,"50%",null,0,0,null),Ob.layoutCtrlWithLRTB(kb,
"50%",4,null,0,0,null));return Ha};this.setCursorPosition=function(Ia,cb){var p="";if(cb){var X=Rb.get("statusCursor","\u6bb5\u843d#1, \u5b57\u7b26#2"),na=cb.getFromParagraphIndex(),Ua=ob(Ia,na,cb.getFromContentIndex(),cb.getFromOffset());p=X.replace("#1",na+1).replace("#2",Ua+1);cb.isCollapse()||(na=cb.getToParagraphIndex(),Ua=ob(Ia,na,cb.getToContentIndex(),cb.getToOffset()),p=p+"~"+X.replace("#1",na+1).replace("#2",Ua+1))}oa.text(p)};this.setInputableCharacterCount=function(Ia){var cb=Rb.get("statusRemainChar",
"\u8fd8\u53ef\u4ee5\u8f93\u5165#1\u5b57");cb=cb.replace("#1",Ia);kb.text(cb)};this.warningMaxCharacters=function(Ia){var cb=$("<div>");cb.css("background-color","#fff");var p=$("<div>");p.text(Rb.get("statusWarningMaxChar","\u5b57\u6570\u8d85\u8fc7#1\u5b57\u4e0a\u9650").replace("#1",Ia));p.css("color","#930");Ob.layoutCtrlWithLRTB(cb,0,0,null,0,0,null);Ob.layoutCtrlWithLRTB(p,0,0,null,0,0,null);cb.append(p);Ha.append(cb);Ia=new zb;Ia.setDuration(850,150);Ia.setAction(function(){cb.remove()});Ia.blink(p)};
var ob=function(Ia,cb,p,X){Ia=Ia.getParagraph(cb);for(cb=0;cb<p;cb++)X+=Ia.getContent(cb).getTextLength();return X}}"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.common&&(com.kingdee.bos.qing.common={});"undefined"==typeof com.kingdee.bos.qing.common.rich&&(com.kingdee.bos.qing.common.rich={});var sb=
com.kingdee.bos.qing.common.rich;sb.Chapter=l;sb.RichDisplayer=vb;sb.RichEditor=function(){var Ha=String.fromCharCode(13),oa=String.fromCharCode(10),kb=Ha+oa,ob=new RegExp(Ha,"gm"),Ia=new RegExp(kb,"gm"),cb,p,X,na,Ua,ha=1E3,f,xa,Ba;this.setMaxCharacters=function(w){ha=w};this.setModel=function(w){cb=w;Oa().setModel(w);Ca()};this.setDefaultColor=function(w){Oa().setDefaultColor(w)};this.setBackgroundColor=function(w){!w&&(w="#fff");var Ka=Vb.decodeStringToRgbaArray(w),Ab=Vb.rgbToHsl(Ka[0],Ka[1],Ka[2]);
Ka=Ab[0];Ab=Ab[2];30<Ka&&190>Ka?(Ka=40<Ab?"#000":"#fff",Ab=40<Ab?"#333":"#ccc"):(Ka=70<Ab?"#000":"#fff",Ab=70<Ab?"#333":"#ccc");Oa().setOccupierColor(Ab);Oa().getJqUi().css({"background-color":w,"caret-color":Ka})};this.getJqUi=function(){if(!p){var w=qa().getJqUi();qa().updateState(cb.getParagraph(0),cb.getParagraph(0).getContent(0));var Ka=Oa().getJqUi();Ka.css("border","1px solid #ccc");Ka.css("outline","none");var Ab=Pa().getJqUi();0>Math.max(0,ha-f.length)+0-0&&Pa().warningMaxCharacters(ha);
p=$("<div>");p.append(w);p.append(Ka);p.append(Ab);Ob.layoutCtrlWithLRTB(w,0,0,null,0,null,24);Ob.layoutCtrlWithLRTB(Ka,0,0,null,24,24,null);Ob.layoutCtrlWithLRTB(Ab,0,0,null,null,0,24)}return p};this.requestFocus=function(){Oa().getJqUi().focus();if(xa)Fa(xa);else{var w=cb.getParagraphCount()-1,Ka=cb.getParagraph(w),Ab=Ka.getContentCount()-1;Ka=Ka.getContent(Ab).getTextLength();w=new bc(w,Ab,Ka);Fa(new Qb(w));Kb()}};this.getSelectingScope=function(){return cb.getScope(xa)};this.inputTextOnCursor=
function(w){Ic([w])};var qa=function(){na||(na=new Cb,na.hookDefaultColorGetter(Oa().getDefaultColor),na.setStyleModifyListener(function(w){if(xa){var Ka=w?!0:!1;Ka&&cb.changeParagraphStyle(xa,w);Ka&&Oa().refresh();Fa(xa)}},function(w){if(xa){var Ka=w?!0:!1;if(Ka)if(xa.isCollapse()){var Ab=cb.getParagraph(xa.getFromParagraphIndex()).getContent(xa.getFromContentIndex());Ab.isTextEmpty()?w(Ab):(!Ba&&(Ba=Mb.create()),w(Ba))}else cb.changeContentStyle(xa,w);Ka&&Oa().refresh();Fa(xa)}}));return na},Pa=
function(){Ua||(Ua=new gb);return Ua},Oa=function(){if(!X){X=new vb;var w=X.getJqUi();w.attr("contenteditable",!0);w.on("compositionstart",yc);w.on("compositionend",Kc);w.on("keydown",uc);w.on("keyup",Dc);w.on("mousedown",Za);w.on("paste",nc);w.on("cut",kc);w.on("copy",rc)}return X},Za=function(w){w.shiftKey||window.getSelection().removeAllRanges();w=$(document.body);w.on("mouseup",ib);w.on("mouseleave",ib)},ib=function(w){w=$(document.body);w.off("mouseup",ib);w.off("mouseleave",ib);Kb()},Kb=function(){Ba=
null;var w=window.getSelection(),Ka=w.anchorNode,Ab=w.anchorOffset,Ib=w.focusNode,cc=w.focusOffset;if(Ka&&Ib){w=Ka==Ib;var Ec=!1,zc=Oa().upwardSearchOccupier(Ka);if(zc){Ec=!0;var xc=zc.siblings();Ka=0==xc.length?zc.parent()[0]:xc[0];Ab=0;w&&(Ib=Ka,cc=0)}!w&&(zc=Oa().upwardSearchOccupier(Ib))&&(Ec=!0,xc=zc.siblings(),Ib=0==xc.length?zc.parent()[0]:xc[0],cc=0);w&&Ec&&Xa(Ka,Ab,Ib,cc);cc=[Ka,Ab,Ib,cc];Ka=cc[0];Ab=cc[1];Ib=cc[2];cc=cc[3];Ec=Oa().searchJqUiOfParagraphs();for(zc=0;zc<Ec.length;zc++){xc=
Ec.eq(zc);xc=Oa().searchJqUiOfContents(xc);for(var Lc=0;Lc<xc.length;Lc++){var Pc=xc.eq(Lc),Sc=Oa().searchHtmlUiOfText(Pc)[0];Pc=Ra(Sc,Ka);Sc=w?Pc:Ra(Sc,Ib);if(!k&&(Pc||Sc)){var q=w?Math.min(Ab,cc):Pc?Ab:cc;var k=new bc(zc,Lc,q);if(!w)continue}if(k&&!x&&(Pc||Sc)){q=w?Math.max(Ab,cc):Sc?cc:Ab;var x=new bc(zc,Lc,q);break}}}!k&&(k=Ea());!x&&(x=Ea());k=new Qb(k,x)}else k=null;k&&(k.isCollapse()?0==k.getFromOffset()&&0<k.getFromContentIndex()&&(x=k.getFromContentIndex()-1,w=cb.getParagraph(k.getFromParagraphIndex()),
Ib=w.getContent(x),w=Ib.getTextLength(),k.updateStartPosition(x,w),k.updateEndPosition(x,w)):(w=cb.getParagraph(k.getFromParagraphIndex()),Ib=w.getContent(k.getFromContentIndex()),k.getFromOffset()==Ib.getTextLength()&&k.getFromContentIndex()<w.getContentCount()-1&&k.updateStartPosition(k.getFromContentIndex()+1,0),0==k.getToOffset()&&0<k.getToContentIndex()&&(w=cb.getParagraph(k.getToParagraphIndex()),Ib=w.getContent(k.getToContentIndex()-1),k.updateEndPosition(k.getToContentIndex()-1,Ib.getTextLength()))),
xa=k,k=cb.getParagraph(xa.getFromParagraphIndex()),x=k.getContent(xa.getFromContentIndex()),qa().updateState(k,x),Pa().setCursorPosition(cb,xa))},nc=function(w){w.preventDefault();w=(w.originalEvent.clipboardData||window.clipboardData).getData("Text");w=w.replace(Ia,oa);w=w.replace(ob,oa);w=w.split(oa);Ic(w)},kc=function(w){w.preventDefault();xa.isCollapse()||(eb(w),Ic([""]))},rc=function(w){w.preventDefault();xa.isCollapse()||eb(w)},uc=function(w){if(13==w.keyCode||8==w.keyCode||46==w.keyCode)w.preventDefault(),
w=cb.inputCommand(xa,w.keyCode),Oa().refresh(),Ca(),Fa(w),Kb();else if(w.ctrlKey&&65==w.keyCode){w.preventDefault();var Ka=Oa().searchJqUiOfContents();w=Oa().searchHtmlUiOfText(Ka.eq(0));Ka=Oa().searchHtmlUiOfText(Ka.eq(Ka.length-1));Xa(w[0],0,Ka[0],Ka[1]);Kb()}},Dc=function(w){ic||(33<=w.keyCode&&40>=w.keyCode?Kb():Jc())},ic=!1,yc=function(w){ic=!0},Kc=function(w){ic=!1;Jc()},Jc=function(){var w=Oa().searchText();if(w!==f){for(var Ka=Math.min(f.length,w.length),Ab=Ka,Ib=0;Ib<Ka;Ib++)if(f[Ib]!==w[Ib]){Ab=
Ib;break}Ib=w.length-(Ka-Ab);for(var cc=Ka;cc>Ab;cc--){var Ec=Ka-cc;if(f[f.length-1-Ec]!==w[w.length-1-Ec]){Ib=w.length-Ec;break}}w=w.substring(Ab,Ib);Ic([w])}},Ic=function(w){var Ka=w.join("").length,Ab=xa.isCollapse()?0:cb.getAllTextLength(xa);0>Math.max(0,ha-f.length)+Ab-Ka?(Oa().refresh(),Fa(xa),Pa().warningMaxCharacters(ha)):(w=cb.inputText(xa,w,Ba),Oa().refresh(),Ca(),Fa(w),Kb())},Ca=function(){f=Oa().searchText();Pa().setInputableCharacterCount(Math.max(0,ha-f.length))},Ea=function(){var w=
cb.getParagraphCount()-1,Ka=cb.getParagraph(w),Ab=Ka.getContentCount()-1;Ka=Ka.getContent(Ab).getTextLength();return new bc(w,Ab,Ka)},Ra=function(w,Ka){for(var Ab=Oa().getJqUi()[0];w!=Ka;)if(w=w.parentNode,w==Ab||w==document.body)return!1;return!0},Fa=function(w){var Ka=w.getFromParagraphIndex(),Ab=w.getFromContentIndex(),Ib=w.getFromOffset();Ka=Oa().searchJqUiOfContent(Ka,Ab);Ka=Oa().searchHtmlUiOfText(Ka)[0];Ab=w.getToParagraphIndex();var cc=w.getToContentIndex();w=w.getToOffset();cc=Oa().searchJqUiOfContent(Ab,
cc);var Ec=Oa().searchHtmlUiOfText(cc),zc=Ec[1];Xa(Ka,Ib,Ec[0],w);Ib=Math.max(cb.getParagraph(Ab).getMaxFontSize(),cc.prop("offsetHeight"));Ka=0==zc?1:w/zc;Ib=cc.prop("offsetTop")+parseInt(Ib*Ka);Ka=Oa().getJqUi();Ab=Ka.prop("scrollTop");w=Ab+Ka.prop("clientHeight");if(Ib<Ab||Ib>w)w=Ab+parseInt(.5*Ka.prop("clientHeight")),Ka.prop("scrollTop",Ab+(Ib-w))},Xa=function(w,Ka,Ab,Ib){var cc=document.createRange();cc.setStart(w,Ka);cc.setEnd(Ab,Ib);w=window.getSelection();w.removeAllRanges();w.addRange(cc)},
eb=function(w){(w.originalEvent.clipboardData||window.clipboardData).setData("Text",cb.getAllText(kb,xa))}};var Gb,Ob,Vb,Wb,Rb,Tb,Na,Eb,Ja,fb,ub,zb,hc;(function(){var Ha=com.kingdee.bos.qing.common;Gb=Ha.Util;Ob=Ha.DomUtil;Vb=Ha.ColorUtil;Ha=com.kingdee.bos.qing.framework.common;Wb=Ha.AbstractIcons;Rb=Ha.MultilanguageManager.createPackageAccessor(sb);Ha=com.kingdee.bos.qing.ui.component;Tb=Ha.ToggleButton;Na=Ha.DropdownSelector;Eb=Ha.Spinner;Ja=Ha.Label;fb=Ha.WorkButton;ub=Ha.ColorChooser;Ha=com.kingdee.bos.qing.common.ui;
zb=Ha.BlinkHelper;hc=Ha.FontSelector})();var Pb=new function(){Wb.call(this);var Ha=this.protectedMethod;this.protectedInit=function(kb,ob){com.kingdee.bos.qing.common.ComboIcon.define(ob,"rich");oa(0,0,"rich-bold");oa(0,1,"rich-italic");oa(0,2,"rich-underline");oa(0,3,"rich-strikethrough");oa(0,4,"rich-color");oa(1,0,"rich-left");oa(1,1,"rich-center");oa(1,2,"rich-right");oa(1,3,"rich-justify");oa(1,4,"rich-lineheight");oa(1,5,"rich-marginbefore");oa(1,6,"rich-marginafter");oa(1,7,"rich-indent")};
var oa=function(kb,ob,Ia){Ha.registIcon(kb,ob,Ia)}};l.create=function(Ha){var oa=new l,kb=oa.insertParagraph(0),ob=new lb;kb.insertContent(0,ob);Ha&&Ha(kb,ob);return oa};l.createParagraph=function(){return new fc};l.createContent=function(){return new lb};Mb.create=function(){var Ha=new Mb;Ha.setFontName(void 0);Ha.setFontSize(void 0);Ha.setBold(void 0);Ha.setItalic(void 0);Ha.setColor(void 0);return Ha}})();(function(){function l(){var Na=this,Eb={},Ja={},fb={};fb[l.LINE_WIDE_1]=.75;fb[l.LINE_WIDE_2]=1.5;fb[l.LINE_WIDE_3]=2.25;fb[l.LINE_WIDE_4]=3;fb[l.LINE_WIDE_5]=4;var ub=[],zb={};zb[l.LINECOLOR_MAIN]="#808080";zb[l.LINECOLOR_STRONG]=null;var hc=zb[l.LINECOLOR_WEAK]=null;this.setEdge=function(p,X){Eb[p]=X;X.bindDirection(p)};this.getEdge=function(p){return Eb[p]};this.setCorner=function(p,X){Ja[p]=X;X.bindDirection(p)};this.getCorner=function(p){return Ja[p]};this.setLineThickness=function(p,X){fb[p]=
X};this.getLineThickness=function(p){return fb[p]};this.getAllLightItems=function(){return ub};this.getLightItems=function(p){for(var X=null,na=0;na<ub.length;na++){var Ua=ub[na];Ua.getDir()==p&&(!X&&(X=[]),X.push(Ua))}return X};this.validateLightItems=function(){for(var p=ub.length-1;0<=p;p--){var X=ub[p],na=X.getDir(),Ua=X.getPosition();X=X.getLogicColor();na&&(Ua||0===Ua)&&X||ub.splice(p,1)}ub.sort(function(ha,f){var xa=ha.getDir()-f.getDir();0==xa&&(xa=ha.getPosition()-f.getPosition());return xa})};
this.setLineColor=function(p,X){zb[p]=X};this.getLineColor=function(p){return zb[p]};this.hookBackgroundColor=function(p){hc=p};this.getBackgroundColor=function(){return hc};this.copyToEdit=function(){var p=new l;p.fromJsonObject(Na.toJsonObject());return p};this.toJsonObject=function(){var p={};p.edgeN=Pb(l.DIR_N);p.edgeS=Pb(l.DIR_S);p.edgeW=Pb(l.DIR_W);p.edgeE=Pb(l.DIR_E);p.cornerNW=Na.getCorner(l.DIR_NW).toJsonObject();p.cornerNE=Na.getCorner(l.DIR_NE).toJsonObject();p.cornerSW=Na.getCorner(l.DIR_SW).toJsonObject();
p.cornerSE=Na.getCorner(l.DIR_SE).toJsonObject();var X={};kb(X,l.LINE_WIDE_1);kb(X,l.LINE_WIDE_2);kb(X,l.LINE_WIDE_3);kb(X,l.LINE_WIDE_4);kb(X,l.LINE_WIDE_5);p.lineThickness=X;X={};Ia(X,l.LINECOLOR_MAIN);Ia(X,l.LINECOLOR_STRONG);Ia(X,l.LINECOLOR_WEAK);p.lineColor=X;return p};this.fromJsonObject=function(p){ub=[];Ha(p.edgeN,l.DIR_N);Ha(p.edgeS,l.DIR_S);Ha(p.edgeW,l.DIR_W);Ha(p.edgeE,l.DIR_E);Na.validateLightItems();oa(p.cornerNW,l.DIR_NW);oa(p.cornerNE,l.DIR_NE);oa(p.cornerSW,l.DIR_SW);oa(p.cornerSE,
l.DIR_SE);var X=p.lineThickness;ob(X,l.LINE_WIDE_1);ob(X,l.LINE_WIDE_2);ob(X,l.LINE_WIDE_3);ob(X,l.LINE_WIDE_4);ob(X,l.LINE_WIDE_5);p=p.lineColor;cb(p,l.LINECOLOR_MAIN);cb(p,l.LINECOLOR_STRONG);cb(p,l.LINECOLOR_WEAK)};var Pb=function(p){return Na.getEdge(p).toJsonObject(Na.getLightItems(p))},Ha=function(p,X){var na=[],Ua=new lb;Ua.fromJsonObject(p,na);Na.setEdge(X,Ua);if(0<na.length)for(p=0;p<na.length;p++)Ua=na[p],Ua.setDir(X),ub.push(Ua)},oa=function(p,X){var na=new Mb;na.fromJsonObject(p);Na.setCorner(X,
na)},kb=function(p,X){var na=Na.getLineThickness(X);na=Math.round(100*na);X=Rb.encodeLogicLineWide(X);p[X]=na},ob=function(p,X){var na=Rb.encodeLogicLineWide(X);p=p[na];Na.setLineThickness(X,p||0===p?p/100:1)},Ia=function(p,X){var na=Rb.encodeLogicColor(X);(X=Na.getLineColor(X))&&(p[na]=X)},cb=function(p,X){var na=Rb.encodeLogicColor(X);p=p[na];Na.setLineColor(X,p?p:null)}}function fc(){var Na;this.bindDirection=function(Eb){Na=Eb};this.getDirection=function(){return Na};this.isDirection=function(Eb){return 0<
(Na&Eb)};this.isTheDirection=function(Eb){return Na==Eb}}function lb(){fc.call(this);var Na=this,Eb=lb.TYPE_STRAIGHT,Ja=!1,fb=l.LINE_WIDE_2,ub=l.LINE_NONE,zb=[40,80],hc=lb.FLIP_NONE,Pb=null,Ha=null;this.setType=function(oa){Eb=oa};this.getType=function(){return Eb};this.setTitleEnhanced=function(oa){Ja=oa};this.isTitleEnhanced=function(){return Ja};this.setMajorLineLogicWide=function(oa){fb=oa};this.getMajorLineLogicWide=function(){return fb};this.setMinorLineLogicWide=function(oa){ub=oa};this.getMinorLineLogicWide=
function(){return ub};this.setTurning=function(oa,kb){zb=[];(oa||0===oa)&&zb.push(oa);(kb||0===kb)&&zb.push(kb)};this.getFirstTurning=function(){var oa=zb[0];return oa?oa:0};this.getSecondTurning=function(){var oa=zb[1];return oa||0===oa?oa:100};this.setFlip=function(oa){hc=oa};this.getFlip=function(){return hc};this.setCustomMinorLine=function(oa){Pb=oa};this.getCustomMinorLine=function(){return Pb};this.isCustomMinorLine=function(){return Pb?!0:!1};this.hookParsedPartsBlock=function(oa){Ha=oa};
this.getParsedPartsBlock=function(oa){return Ha?Ha[oa]:null};this.toJsonObject=function(oa){var kb={};kb.type=Rb.encodeEdgeType(Eb);if(Eb!=lb.TYPE_NONE){kb.majorWide=Rb.encodeLogicLineWide(fb);kb.minorWide=Rb.encodeLogicLineWide(ub);kb.flip=Rb.encodeFlip(hc);if(Eb==lb.TYPE_SINGLE_TURN||Eb==lb.TYPE_DOUBLE_TURN)kb.turnPos1=zb[0],Eb==lb.TYPE_DOUBLE_TURN&&(kb.turnPos2=zb[1]),Ja&&(kb.titleEnhanced=!0);Pb&&ub!=l.LINE_NONE&&(kb.customMinor=Pb)}if(oa){for(var ob=[],Ia=0;Ia<oa.length;Ia++)ob.push(oa[Ia].toJsonObject());
kb.lightItems=ob}return kb};this.fromJsonObject=function(oa,kb){Eb=Rb.decodeEdgeType(oa.type);var ob=oa.majorWide;ob&&(fb=Rb.decodeLogicLineWide(ob));(ob=oa.minorWide)&&(ub=Rb.decodeLogicLineWide(ob));(ob=oa.flip)&&(hc=Rb.decodeFlip(ob));ob=oa.turnPos1;var Ia=oa.turnPos2;(ob||0===ob)&&(zb[0]=ob);(Ia||0===Ia)&&(zb[1]=Ia);Ja=oa.titleEnhanced?!0:!1;Pb=oa.customMinor;if(oa=oa.lightItems)for(ob=0;ob<oa.length;ob++){Ia=oa[ob];var cb=new bc;cb.fromJsonObject(Ia);kb.push(cb)}Pb&&(oa=new Qb,kb=oa.decode(Pb),
oa=oa.getException(),Na.hookParsedPartsBlock(oa?null:kb))}}function Mb(){fc.call(this);var Na=Mb.TYPE_NONE,Eb=l.LINE_WIDE_2,Ja=6;this.setType=function(fb){Na=fb};this.getType=function(){return Na};this.setLineLogicWide=function(fb){Eb=fb};this.getLineLogicWide=function(){return Eb};this.setRadius=function(fb){Ja=fb};this.getRadius=function(){return Ja};this.toJsonObject=function(){var fb={};fb.type=Rb.encodeCornerType(Na);Na!=Mb.TYPE_NONE&&(fb.lineWide=Rb.encodeLogicLineWide(Eb),fb.radius=Ja);return fb};
this.fromJsonObject=function(fb){Na=Rb.decodeCornerType(fb.type);var ub=fb.lineWide;ub&&(Eb=Rb.decodeLogicLineWide(ub));((fb=fb.radius)||0===fb)&&(Ja=fb)}}function bc(){var Na,Eb=10,Ja=l.LINECOLOR_MAIN;this.setDir=function(fb){Na=fb};this.getDir=function(){return Na};this.setPosition=function(fb){Eb=fb};this.getPosition=function(){return Eb};this.setLogicColor=function(fb){Ja=fb};this.getLogicColor=function(){return Ja};this.toJsonObject=function(){var fb={};fb.pos=Eb;fb.color=Rb.encodeLogicColor(Ja);
return fb};this.fromJsonObject=function(fb){Eb=fb.pos;Ja=Rb.decodeLogicColor(fb.color)}}function Qb(){function Na(Ia,cb,p,X){this.getContent=function(){return Ia};this.getType=function(){return cb};this.getCharIndex=function(){return p};this.getWordLength=function(){return X}}Na.UNIT=1;Na.PREFIX=2;Na.SUFFIX=3;Na.LB=4;Na.RB=5;var Eb=Na.UNIT,Ja=Na.PREFIX,fb=Na.LB,ub,zb,hc;this.getException=function(){return ub};this.decode=function(Ia){ub=null;for(var cb=[],p=[],X=!1,na=!1,Ua=[],ha="",f=0;f<Ia.length;f++){var xa=
Ia.charAt(f),Ba=!0;if(X)if(Ba=!1,"}"==xa){var qa=f-ha.length,Pa=ha,Oa=qa,Za=$.trim(Pa);Za&&(Wb.decodeStringToRgbArray(Za)||(ub=new vb(vb.INVALID_PREFIX,Oa,Pa.length,"Invalid prefix '{"+Pa+"}'.")));if(ub)break;Ua.push(new Na(Za,Na.PREFIX,qa-1,ha.length+2));ha="";X=!1}else ha+=xa;else na&&(Pb(xa)?(ha+=xa,Ba=!1):(Ua.push(new Na(ha,Na.SUFFIX,f-ha.length)),ha="",na=!1));if(Ba)if(";"==xa)p.push(Ua),Ua=[];else if(Tb.isUnitKeyChar(xa))Ua.push(new Na(xa,Na.UNIT,f));else if(Pb(xa))ha=xa,na=!0;else if("~"==
xa)Ua.push(new Na(xa,Na.SUFFIX,f));else if("{"==xa)X=!0;else if("}"==xa){ub=new vb(vb.UNPAIRED_BRACE,f,1,"Unpaired brace '}'.");break}else if("("==xa)Ua.push(new Na(xa,Na.LB,f));else if(")"==xa)Ua.push(new Na(xa,Na.RB,f));else if(" "!=xa){ub=new vb(vb.UNKNOWN_CHAR,f,1,"Invalid char '"+xa+"'.");break}}ub||(X?(f=Ia.length-ha.length-1,ub=new vb(vb.UNPAIRED_BRACE,f,1,"Unpaired brace '{'.")):na&&(f=Ia.length-ha.length,Ua.push(new Na(ha,Na.SUFFIX,f))));p.push(Ua);if(!ub)for(Ia=0;Ia<p.length;Ia++){na=p[Ia];
hc=null;zb=[];for(X=0;X<na.length;X++){Ua=na[X];switch(Ua.getType()){case Na.UNIT:Ha()==Eb&&kb();zb.push(Ua);break;case Na.PREFIX:switch(Ha()){case Ja:zb.pop();break;case Eb:kb()}zb.push(Ua);break;case Na.SUFFIX:switch(Ha()){case 255:ha=zb.pop();ob(ha,Ua);zb.push(ha);break;case Eb:kb(Ua);break;default:ha=Ua.getContent(),ub=new vb(vb.REDUNDANT_SUFFIX,Ua.getCharIndex(),ha.length,"Missing block-unit before '"+ha+"'.")}break;case Na.LB:Ha()==Eb&&kb();zb.push(Ua);break;case Na.RB:switch(Ha()){case fb:ha=
zb.pop();f=Ua.getCharIndex()-ha.getCharIndex()+1;ub=new vb(vb.EMPTY_BRACKET,ha.getCharIndex(),f,"Empty bracket pairs.");break;case Eb:kb();break;case Ja:f=zb.pop(),ha=f.getContent(),ub=new vb(vb.REDUNDANT_PREFIX,f.getCharIndex(),f.getWordLength(),"Missing block-unit after '{"+ha+"}'.")}if(!ub){ha=[];for(f=!1;0<zb.length;)if(xa=Ha(),255==xa)xa=zb.pop(),ha.push(xa);else if(xa==fb){zb.pop();f=!0;break}else throw Error("Impossible");if(f){if(Ua=new sb,Ha()==Ja&&(f=zb.pop(),Ua.setAppointedColor(f.getContent())),
0<ha.length){for(;0<ha.length;)Ua.addSubBlock(ha.pop());zb.push(Ua)}}else ub=new vb(vb.REDUNDANT_RB,Ua.getCharIndex(),1,"Missing '('.")}break;default:throw Error("Impossible");}if(ub)break}switch(Ha()){case Eb:kb();break;case Ja:X=zb.pop(),na=X.getContent(),ub=new vb(vb.REDUNDANT_PREFIX,X.getCharIndex(),X.getWordLength(),"Missing block-unit after '{"+na+"}'.")}if(!ub)for(X=zb.length-1;0<=X;X--)if(na=zb[X],Ua=oa(na),Ua==fb){ub=new vb(vb.REDUNDANT_LB,na.getCharIndex(),1,"Missing ')'.");break}else if(255!=
Ua)throw Error("Impossible");na=null;if(!ub)if(1==zb.length)na=zb[0];else if(1<zb.length)for(na=new sb,X=0;X<zb.length;X++)na.addSubBlock(zb[X]);if(ub)break;cb.push(na)}return cb};var Pb=function(Ia){Ia=Ia.charCodeAt(0);return 48<=Ia&&57>=Ia},Ha=function(){return 0==zb.length?0:oa(zb[zb.length-1])},oa=function(Ia){if(Ia instanceof Na)switch(Ia.getType()){case Na.UNIT:return Eb;case Na.PREFIX:return Ja;case Na.LB:return fb}else if(Ia instanceof gb||Ia instanceof sb)return 255;throw Error("Impossible");
},kb=function(Ia){var cb=zb.pop(),p=new gb;p.setUnitKey(cb.getContent());Ha()==Ja&&(cb=zb.pop(),p.setAppointedColor(cb.getContent()));Ia&&ob(p,Ia);zb.push(p)},ob=function(Ia,cb){var p=cb.getContent(),X="~"==p?-1:parseInt(p);0===X?ub=new vb(vb.REDUNDANT_SUFFIX,cb.getCharIndex(),1,"Zero suffix."):9999<X&&(ub=new vb(vb.REDUNDANT_SUFFIX,cb.getCharIndex(),p.length,"Suffix '"+p+"' is larger than 9999."));Ia.setTimes(X);hc==Ia&&(ub=new vb(vb.REDUNDANT_SUFFIX,cb.getCharIndex(),p.length,"Duplicated suffix '"+
p+"'."));hc=Ia}}function vb(Na,Eb,Ja,fb){this.getCode=function(){return Na};this.getCharStart=function(){return Eb};this.getCharLength=function(){return Ja};this.getMessage=function(){return fb}}function Cb(Na,Eb){this.getChar=function(){return Na};this.isDrawingOnePixel=function(){return(Eb&Cb.SHAPE)!=Cb.SHAPE}}function wa(){var Na=this,Eb=1,Ja,fb,ub;this.isAtom=function(){throw Error("Implement");};this.setTimes=function(zb){Eb=zb};this.getTimes=function(){return Eb};this.setRtTimes=function(zb){Ja=
zb;fb=Math.floor(zb)};this.getComputableTimes=function(){return Ja};this.getDrawingTimes=function(){return fb};this.setAppointedColor=function(zb){ub=zb?zb:""};this.getAppointedColor=function(){return ub};this.isAppointedColorErased=function(){return""===ub};this.getUnitLength=function(zb){throw Error("Implement");};this.encode=function(){var zb="";ub?zb="{"+ub+"}":Na.isAppointedColorErased()&&(zb="{}");var hc="";0>Eb?hc="~":1!=Eb&&(hc=Eb);return zb+Na.protectedEncodeUnit((zb?!0:!1)||(hc?!0:!1))+
hc};this.protectedEncodeUnit=function(zb){throw Error("Implement");}}function gb(){wa.call(this);var Na;this.isAtom=function(){return!0};this.setUnitKey=function(Eb){Na=Tb.searchUnitKey(Eb)};this.getUnitKey=function(){return Na};this.getUnitLength=function(Eb){return Na.isDrawingOnePixel()?1:Eb};this.protectedEncodeUnit=function(Eb){return Na.getChar()}}function sb(){wa.call(this);var Na=[];this.isAtom=function(){return!1};this.addSubBlock=function(Eb){Na.push(Eb)};this.getSubBlockCount=function(){return Na.length};
this.getSubBlock=function(Eb){return Na[Eb]};this.getUnitLength=function(Eb){for(var Ja=0,fb=0;fb<Na.length;fb++){var ub=Na[fb];Ja+=ub.getUnitLength(Eb)*ub.getComputableTimes()}return Ja};this.protectedEncodeUnit=function(Eb){for(var Ja="",fb=0;fb<Na.length;fb++){var ub=Na[fb];0<fb&&(Ja+=" ");Ja+=ub.encode()}Eb&&(Ja="("+Ja+")");return Ja}}function Gb(Na){var Eb=this,Ja,fb=[],ub;this.getEdge=function(){return Na};var zb=function(){return Na.isDirection(l.DIR_W|l.DIR_E)},hc=function(){return Na.isDirection(l.DIR_S|
l.DIR_W)};this.isFlipLeading=function(){return zb()?(Na.getFlip()&lb.FLIP_V)==lb.FLIP_V:(Na.getFlip()&lb.FLIP_H)==lb.FLIP_H};this.isFlipOrthogonal=function(){return zb()?(Na.getFlip()&lb.FLIP_H)==lb.FLIP_H:(Na.getFlip()&lb.FLIP_V)==lb.FLIP_V};this.setMajorPoints=function(Pb){Ja=Pb};this.getMajorPointCount=function(){return Ja.length};this.getMajorPoint=function(Pb){return Ja[Pb]};this.addMinorPart=function(Pb,Ha){fb.push([Pb,Ha])};this.getMinorPartCount=function(){return fb.length};this.getMinorPointA=
function(Pb){return fb[Pb][0]};this.getMinorPointB=function(Pb){return fb[Pb][1]};this.unified=function(Pb,Ha){return zb()?[Ha,Pb]:[Pb,Ha]};this.unifiedMajorPoints=function(){var Pb=zb(),Ha=hc();if(Pb||Ha){for(var oa=[],kb=Ja.length-1;0<=kb;kb--){var ob=Ja[kb];Pb&&ob.exchangeXY();Ha&&oa.push(ob)}Ha&&(Ja=oa)}};this.connectToBrother=function(Pb,Ha,oa,kb){var ob=Na.isDirection(l.DIR_W|l.DIR_N),Ia=ob?Pb.getAxialP1():Pb.getAxialPn(),cb=ob?Ha.getAxialP1():Ha.getAxialPn();Ha=Eb.getAxialP1();ob=Eb.getAxialPn();
var p=(Pb=0<fb.length)?fb[0][0]:null,X=Pb?fb[fb.length-1][1]:null;zb()?(oa=Ia.getY()+oa,kb=cb.getY()-kb,Ha.moveYTo(oa),ob.moveYTo(kb),Pb&&p.moveXTo(oa),Pb&&X.moveXTo(kb)):(oa=Ia.getX()+oa,kb=cb.getX()-kb,Ha.moveXTo(oa),ob.moveXTo(kb),Pb&&p.moveXTo(oa),Pb&&X.moveXTo(kb))};this.getClockwiseP1=function(){return Ja[0]};this.getClockwisePn=function(){return Ja[Ja.length-1]};this.getAxialP1=function(){return hc()?Ja[Ja.length-1]:Ja[0]};this.getAxialPn=function(){return hc()?Ja[0]:Ja[Ja.length-1]};this.setDrawingColor=
function(Pb){ub=Pb};this.getDrawingColor=function(){return ub}}function Ob(Na,Eb){var Ja=Na,fb=Eb;this.getX=function(){return Ja};this.getY=function(){return fb};this.exchangeXY=function(){var ub=Ja;Ja=fb;fb=ub};this.adjust=function(ub,zb){Ja+=ub;fb+=zb};this.moveXTo=function(ub){Ja=ub};this.moveYTo=function(ub){fb=ub}}"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.dsb&&(com.kingdee.bos.qing.dsb={});"undefined"==typeof com.kingdee.bos.qing.dsb.look&&(com.kingdee.bos.qing.dsb.look={});var Vb=com.kingdee.bos.qing.dsb.look;l.Edge=lb;l.Corner=Mb;Vb.CardLook=l;Vb.DecorationParser=Qb;Vb.ParsingException=vb;Vb.CardLookRenderer=function(){var Na=.5*Math.PI,Eb,Ja;this.setModel=function(ha){Eb=ha};this.draw=function(ha,f,xa,Ba,qa){Ja=ha;var Pa=Eb.getEdge(l.DIR_N),Oa=Eb.getEdge(l.DIR_S),Za=Eb.getEdge(l.DIR_W);
ha=Eb.getEdge(l.DIR_E);var ib=Eb.getCorner(l.DIR_NW),Kb=Eb.getCorner(l.DIR_NE),nc=Eb.getCorner(l.DIR_SW),kc=Eb.getCorner(l.DIR_SE),rc=f+.5;f=f+Ba-.5;Ba=xa+.5;var uc=xa+qa-.5;xa=rc+10;qa=f-10;var Dc=Ba+ub(Pa);uc-=ub(Oa);var ic=fb(Pa,xa,Ba,qa),yc=fb(Oa,xa,uc,qa);Pa=Dc+10;Oa=uc-10;var Kc=fb(Za,Pa,rc,Oa);Za=f-ub(ha);var Jc=fb(ha,Pa,Za,Oa);ic.connectToBrother(Kc,Jc,oa(ib),oa(Kb));yc.connectToBrother(Kc,Jc,oa(nc),oa(kc));Kc.connectToBrother(ic,yc,oa(ib),oa(nc));Jc.connectToBrother(ic,yc,oa(Kb),oa(kc));
ha=function(Ic){Ia(ic,Ic);cb(Kb,ic,Jc,Ic);Ia(Jc,Ic);cb(kc,Jc,yc,Ic);Ia(yc,Ic);cb(nc,yc,Kc,Ic);Ia(Kc,Ic);cb(ib,Kc,ic,Ic)};if(Za=Eb.getBackgroundColor())Ja.beginPath(),ha(!1),Ja.closePath(),Ja.fillStyle=Za,Ja.fill();ha(!0);p(ic);p(yc);p(Kc);p(Jc)};var fb=function(ha,f,xa,Ba){var qa=new Gb(ha),Pa=xa,Oa=qa.getEdge(),Za=qa.isFlipLeading(),ib=qa.isFlipOrthogonal(),Kb=Ba-f;Pa+=.5*Pb(Oa);var nc=zb(Oa)?30:6;xa=[];if(Oa.getType()==lb.TYPE_SINGLE_TURN&&Kb>2*nc){Kb-=nc;var kc=nc*hc(Oa),rc=Za?100-Oa.getFirstTurning():
Oa.getFirstTurning();ib=Za^ib?!0:!1;Za=Pa+(ib?nc:0);Pa+=ib?0:nc;nc=f+kc+rc/100*Kb;Kb=nc-kc;nc+=kc;xa.push(new Ob(f,Za));xa.push(new Ob(Kb,Za));xa.push(new Ob(nc,Pa));xa.push(new Ob(Ba,Pa))}else Oa.getType()==lb.TYPE_DOUBLE_TURN&&Kb>3*nc?(Kb-=nc,kc=nc*hc(Oa),rc=Za?100-Oa.getSecondTurning():Oa.getFirstTurning(),Oa=Za?100-Oa.getFirstTurning():Oa.getSecondTurning(),Za=Pa+(ib?0:nc),Pa+=ib?nc:0,nc=f+kc+rc/100*Kb,ib=f+kc+Oa/100*Kb,Kb=nc-kc,nc+=kc,rc=ib-kc,kc=ib+kc,xa.push(new Ob(f,Za)),xa.push(new Ob(Kb,
Za)),xa.push(new Ob(nc,Pa)),xa.push(new Ob(rc,Pa)),xa.push(new Ob(kc,Za))):(Za=Oa.getMinorLineLogicWide()!=l.LINE_NONE&&ib?Pa+2+Ha(Oa):Pa,xa.push(new Ob(f,Za))),xa.push(new Ob(Ba,Za));qa.setMajorPoints(xa);if(ha.getMinorLineLogicWide()!=l.LINE_NONE)for(ha=.5*Pb(qa.getEdge()),f=.5*Ha(qa.getEdge()),Ba=qa.getMajorPointCount(),xa=0;xa<Ba;xa+=2)Kb=qa.getMajorPoint(xa),Za=qa.getMajorPoint(xa+1),kc=Kb.getX(),Za=Za.getX(),Kb=Kb.getY(),Pa=0<xa?xa-1:xa+2<Ba?xa+2:-1,Pa=0>Pa?qa.isFlipOrthogonal()?-65535:65535:
qa.getMajorPoint(Pa).getY(),nc=Pa<Kb?-1:1,Kb=zb(qa.getEdge())?Pa-f*nc:Kb+(ha+2+f)*nc,qa.addMinorPart(new Ob(kc,Kb),new Ob(Za,Kb));qa.unifiedMajorPoints();return qa},ub=function(ha){var f=0;if(ha.getType()!=lb.TYPE_NONE)if(f=Pb(ha),ha.getType()==lb.TYPE_STRAIGHT)ha.getMinorLineLogicWide()==l.LINE_NONE||(f=f+2+Ha(ha));else if(ha.getType()==lb.TYPE_SINGLE_TURN||ha.getType()==lb.TYPE_DOUBLE_TURN)f+=zb(ha)?30:6;return f},zb=function(ha){return ha.isTitleEnhanced()&&ha.isDirection(l.DIR_N)&&(ha.getType()==
lb.TYPE_SINGLE_TURN||ha.getType()==lb.TYPE_DOUBLE_TURN)},hc=function(ha){return zb(ha)?.2:.5},Pb=function(ha){return ha.getType()==lb.TYPE_NONE?0:Eb.getLineThickness(ha.getMajorLineLogicWide())},Ha=function(ha){return ha.getMinorLineLogicWide()==l.LINE_NONE?0:Eb.getLineThickness(ha.getMinorLineLogicWide())},oa=function(ha){return ha.getType()==Mb.TYPE_NONE?0:Math.min(ha.getRadius(),10)},kb=function(ha){ha=Eb.getLineColor(ha);!ha&&(ha="rgba(128,128,128,0)");return ha},ob=function(ha){var f=ha.getDrawingColor();
if(!f){f=kb(l.LINECOLOR_MAIN);var xa=Eb.getLightItems(ha.getEdge().getDirection());if(xa){var Ba=ha.getAxialP1(),qa=ha.getAxialPn();Ba=Ja.createLinearGradient(Ba.getX(),Ba.getY(),qa.getX(),qa.getY());Ba.addColorStop(0,f);for(qa=0;qa<xa.length;qa++){var Pa=xa[qa],Oa=Pa.getPosition()/100;Pa=kb(Pa.getLogicColor());Ba.addColorStop(Oa,Pa)}Ba.addColorStop(1,f);f=Ba}ha.setDrawingColor(f)}Ja.strokeStyle=f},Ia=function(ha,f){var xa=!0;if(f){var Ba=Pb(ha.getEdge());if(xa=0!=Ba)Ja.beginPath(),Ja.lineCap="butt",
Ja.lineWidth=Ba,ob(ha)}if(xa){for(xa=0;xa<ha.getMajorPointCount();xa++)Ba=ha.getMajorPoint(xa),Ja.lineTo(Ba.getX(),Ba.getY());f&&Ja.stroke()}},cb=function(ha,f,xa,Ba){var qa=ha.getType()==Mb.TYPE_NONE?0:Eb.getLineThickness(ha.getLineLogicWide());var Pa=f.getClockwisePn(),Oa=xa.getClockwiseP1();Pa=new Ob(Pa.getX(),Pa.getY());Oa=new Ob(Oa.getX(),Oa.getY());var Za=Pa,ib=Oa,Kb=Pb(f.getEdge()),nc=Pb(xa.getEdge()),kc=qa>Kb,rc=qa>nc,uc=0,Dc=0;ha.isTheDirection(l.DIR_NE)?(rc&&(uc=.5*(nc-qa)),kc&&(Dc=.5*(-Kb+
qa))):ha.isTheDirection(l.DIR_SE)?(kc&&(uc=.5*(Kb-qa)),rc&&(Dc=.5*(nc-qa))):ha.isTheDirection(l.DIR_SW)?(rc&&(uc=.5*(-nc+qa)),kc&&(Dc=.5*(Kb-qa))):ha.isTheDirection(l.DIR_NW)&&(kc&&(uc=.5*(-Kb+qa)),rc&&(Dc=.5*(-nc+qa)));Za.adjust(uc,Dc);ib.adjust(uc,Dc);Za=!0;Ba&&(Za=0!=qa,Ja.beginPath(),Ja.lineCap="square",Ja.lineWidth=qa,Ja.strokeStyle=kb(l.LINECOLOR_MAIN),Ja.moveTo(Pa.getX(),Pa.getY()));if(Za){qa=ha.isTheDirection(l.DIR_NE)||ha.isTheDirection(l.DIR_SW);if(ha.getType()==Mb.TYPE_HARD)ha=qa?Oa.getX():
Pa.getX(),xa=qa?Pa.getY():Oa.getY(),Ja.lineTo(ha,xa),Ja.lineTo(Oa.getX(),Oa.getY());else if(ha.getType()==Mb.TYPE_LEAN)for(qa=Pa,Pa=Oa,Oa=[],Oa.push(qa),Oa.push(Pa),Ba&&(Za=0==Pb(f.getEdge()),f=0==Pb(xa.getEdge()),Za||f)&&(xa=.5*ha.getRadius(),ha=ha.isTheDirection(l.DIR_NE)?[-1,0,0,1]:ha.isTheDirection(l.DIR_SE)?[0,-1,-1,0]:ha.isTheDirection(l.DIR_SW)?[1,0,0,-1]:ha.isTheDirection(l.DIR_NW)?[0,1,1,0]:[0,0,0,0],Za&&(Za=qa.getX()+xa*ha[0],qa=qa.getY()+xa*ha[1],Oa.unshift(new Ob(Za,qa))),f&&(f=Pa.getX()+
xa*ha[2],ha=Pa.getY()+xa*ha[3],Oa.push(new Ob(f,ha)))),Ba&&Ja.moveTo(Oa[0].getX(),Oa[0].getY()),ha=1;ha<Oa.length;ha++)Ja.lineTo(Oa[ha].getX(),Oa[ha].getY());else ha.getType()==Mb.TYPE_ROUND&&(xa=qa?Pa.getX():Oa.getX(),Oa=qa?Oa.getY():Pa.getY(),Pa=ha.isTheDirection(l.DIR_SE)?[0,1]:ha.isTheDirection(l.DIR_SW)?[1,2]:ha.isTheDirection(l.DIR_NW)?[2,3]:ha.isTheDirection(l.DIR_NE)?[3,4]:[0,0],f=Na*Pa[0],Pa=Na*Pa[1],Ja.arc(xa,Oa,ha.getRadius(),f,Pa));Ba&&Ja.stroke()}},p=function(ha){var f=ha.getEdge(),xa=
Ha(f);if(0!=xa&&f.getType()!=lb.TYPE_NONE){ob(ha);Ja.lineCap="butt";Ja.fillStyle=Ja.strokeStyle;for(var Ba=0;Ba<ha.getMinorPartCount();Ba++){var qa=ha.getMinorPointA(Ba),Pa=ha.getMinorPointB(Ba),Oa=Pa.getX()-qa.getX();if(0<Oa)if(f.isCustomMinorLine()){var Za=f.getParsedPartsBlock(Ba);Za&&(X(Za,Oa,xa),na(ha,Za,qa.getX(),qa.getY(),Pa.getX(),xa))}else qa=ha.unified(qa.getX(),qa.getY()),Pa=ha.unified(Pa.getX(),Pa.getY()),Ja.beginPath(),Ja.lineWidth=xa,Ja.moveTo(qa[0],qa[1]),Ja.lineTo(Pa[0],Pa[1]),Ja.stroke()}}},
X=function(ha,f,xa){var Ba=[],qa=0,Pa=0,Oa=function(Za,ib){var Kb=Za.getTimes();0>Kb?0>ib?Za.setRtTimes(1):Ba.push(Za):Za.setRtTimes(Kb);ib=0>ib&&0>Kb?1:Kb*ib;if(Za.isAtom())Za=Za.getUnitLength(xa)*ib,0>ib?Pa+=Za:qa+=Za;else for(Kb=0;Kb<Za.getSubBlockCount();Kb++){var nc=Za.getSubBlock(Kb);Oa(nc,ib)}};Oa(ha,1);ha=f-qa;ha=0<ha?ha/Math.abs(Pa):0;for(f=0;f<Ba.length;f++)Ba[f].setRtTimes(ha)},na=function(ha,f,xa,Ba,qa,Pa){var Oa=Pa*hc(ha.getEdge()),Za=function(ib,Kb){ib.isAppointedColorErased()?(Ja.fillStyle=
ha.getDrawingColor(),Ja.strokeStyle=ha.getDrawingColor()):ib.getAppointedColor()&&(Ja.fillStyle=ib.getAppointedColor(),Ja.strokeStyle=ib.getAppointedColor());if(!(Kb>=qa)){var nc=ib.getUnitLength(Pa),kc=nc*ib.getComputableTimes();if(ib.isAtom())if(ib.getUnitKey().isDrawingOnePixel()){kc=Math.min(kc,qa-Kb);nc=Kb;var rc=kc;Kb=ib.getUnitKey();if(Kb!=gb.BLANK){var uc=.5*Pa;ib=Ba-uc;rc=nc+rc;uc=Ba+uc;Kb=Kb==gb.LEAN_LEFT?-Oa:Kb==gb.LEAN_RIGHT?Oa:0;Ua(ha,nc+Kb,ib,rc+Kb,ib,rc-Kb,uc,nc-Kb,uc);Ja.fill()}}else{rc=
ib.getUnitKey();uc=.2*Pa;var Dc=.5*Pa,ic=Pa-uc,yc=.5*ic;Ja.lineWidth=uc;for(var Kc=0;Kc<ib.getDrawingTimes()&&!(Kb+nc>qa);Kc++){if(rc==gb.CIRCLE||rc==gb.DISC){var Jc=rc==gb.CIRCLE?yc:Dc,Ic=ha.unified(Kb+Dc,Ba);Ja.beginPath();Ja.arc(Ic[0],Ic[1],Jc,0,2*Math.PI);rc==gb.CIRCLE?Ja.stroke():Ja.fill()}else if(rc==gb.SQUARE){Jc=Kb+.5*uc;Ic=Jc+ic;var Ca=Ba-yc,Ea=Ba+yc;Ua(ha,Jc,Ca,Ic,Ca,Ic,Ea,Jc,Ea);Ja.stroke()}Kb+=nc}}else for(nc=0;nc<ib.getDrawingTimes();nc++)for(rc=0;rc<ib.getSubBlockCount();rc++)uc=ib.getSubBlock(rc),
uc=Za(uc,Kb),Kb+=uc;return kc}};Za(f,xa)},Ua=function(ha,f,xa,Ba,qa,Pa,Oa,Za,ib){f=ha.unified(f,xa);Ba=ha.unified(Ba,qa);Pa=ha.unified(Pa,Oa);ha=ha.unified(Za,ib);Ja.beginPath();Ja.moveTo(f[0],f[1]);Ja.lineTo(Ba[0],Ba[1]);Ja.lineTo(Pa[0],Pa[1]);Ja.lineTo(ha[0],ha[1]);Ja.closePath()}};var Wb=com.kingdee.bos.qing.common.ColorUtil;l.DIR_N=1;l.DIR_S=2;l.DIR_W=4;l.DIR_E=8;l.DIR_NW=l.DIR_N|l.DIR_W;l.DIR_NE=l.DIR_N|l.DIR_E;l.DIR_SW=l.DIR_S|l.DIR_W;l.DIR_SE=l.DIR_S|l.DIR_E;l.LINE_NONE=0;l.LINE_WIDE_1=1;l.LINE_WIDE_2=
2;l.LINE_WIDE_3=3;l.LINE_WIDE_4=4;l.LINE_WIDE_5=5;l.LINECOLOR_MAIN=1;l.LINECOLOR_STRONG=2;l.LINECOLOR_WEAK=3;l.create=function(){var Na=new l;Na.setEdge(l.DIR_N,new lb);Na.setEdge(l.DIR_S,new lb);Na.setEdge(l.DIR_W,new lb);Na.setEdge(l.DIR_E,new lb);Na.setCorner(l.DIR_NW,new Mb);Na.setCorner(l.DIR_NE,new Mb);Na.setCorner(l.DIR_SW,new Mb);Na.setCorner(l.DIR_SE,new Mb);return Na};l.createLightItem=function(Na,Eb,Ja){var fb=new bc;fb.setDir(Na);fb.setPosition(Eb);fb.setLogicColor(Ja);return fb};lb.TYPE_NONE=
0;lb.TYPE_STRAIGHT=1;lb.TYPE_SINGLE_TURN=2;lb.TYPE_DOUBLE_TURN=3;lb.FLIP_NONE=0;lb.FLIP_H=1;lb.FLIP_V=2;lb.FLIP_BOTH=lb.FLIP_H|lb.FLIP_V;Mb.TYPE_NONE=0;Mb.TYPE_HARD=1;Mb.TYPE_ROUND=2;Mb.TYPE_LEAN=3;var Rb=new function(){this.encodeEdgeType=function(Na){return Na==lb.TYPE_STRAIGHT?"STRAIGHT":Na==lb.TYPE_SINGLE_TURN?"SINGLE_TURN":Na==lb.TYPE_DOUBLE_TURN?"DOUBLE_TURN":"NONE"};this.decodeEdgeType=function(Na){return"STRAIGHT"==Na?lb.TYPE_STRAIGHT:"SINGLE_TURN"==Na?lb.TYPE_SINGLE_TURN:"DOUBLE_TURN"==Na?
lb.TYPE_DOUBLE_TURN:lb.TYPE_NONE};this.encodeCornerType=function(Na){return Na==Mb.TYPE_HARD?"HARD":Na==Mb.TYPE_ROUND?"ROUND":Na==Mb.TYPE_LEAN?"LEAN":"NONE"};this.decodeCornerType=function(Na){return"HARD"==Na?Mb.TYPE_HARD:"ROUND"==Na?Mb.TYPE_ROUND:"LEAN"==Na?Mb.TYPE_LEAN:Mb.TYPE_NONE};this.encodeLogicLineWide=function(Na){return Na==l.LINE_WIDE_1?"W1":Na==l.LINE_WIDE_2?"W2":Na==l.LINE_WIDE_3?"W3":Na==l.LINE_WIDE_4?"W4":Na==l.LINE_WIDE_5?"W5":"NONE"};this.decodeLogicLineWide=function(Na){return"W1"==
Na?l.LINE_WIDE_1:"W2"==Na?l.LINE_WIDE_2:"W3"==Na?l.LINE_WIDE_3:"W4"==Na?l.LINE_WIDE_4:"W5"==Na?l.LINE_WIDE_5:l.LINE_NONE};this.encodeLogicColor=function(Na){return Na==l.LINECOLOR_STRONG?"STRONG":Na==l.LINECOLOR_WEAK?"WEAK":"MAIN"};this.decodeLogicColor=function(Na){return"STRONG"==Na?l.LINECOLOR_STRONG:"WEAK"==Na?l.LINECOLOR_WEAK:l.LINECOLOR_MAIN};this.encodeFlip=function(Na){return Na==lb.FLIP_H?"H":Na==lb.FLIP_V?"V":Na==lb.FLIP_BOTH?"BOTH":"NONE"};this.decodeFlip=function(Na){return"H"==Na?lb.FLIP_H:
"V"==Na?lb.FLIP_V:"BOTH"==Na?lb.FLIP_BOTH:lb.FLIP_NONE}};vb.UNKNOWN_CHAR=1;vb.INVALID_PREFIX=2;vb.UNPAIRED_BRACE=3;vb.REDUNDANT_PREFIX=11;vb.REDUNDANT_SUFFIX=12;vb.REDUNDANT_LB=13;vb.REDUNDANT_RB=14;vb.EMPTY_BRACKET=15;var Tb=new function(){var Na="",Eb={};this.register=function(Ja,fb){Na+=Ja;fb=new Cb(Ja,fb);return Eb[Ja]=fb};this.isUnitKeyChar=function(Ja){return 1==Ja.length&&0<=Na.indexOf(Ja)};this.searchUnitKey=function(Ja){return Eb[Ja]}};Cb.SHAPELESS=0;Cb.SHAPE=256;gb.BLANK=Tb.register("_",
0|Cb.SHAPELESS);gb.LINE=Tb.register("|",1|Cb.SHAPELESS);gb.LEAN_LEFT=Tb.register("\\",2|Cb.SHAPELESS);gb.LEAN_RIGHT=Tb.register("/",3|Cb.SHAPELESS);gb.CIRCLE=Tb.register("O",4|Cb.SHAPE);gb.DISC=Tb.register("o",5|Cb.SHAPE);gb.SQUARE=Tb.register("=",6|Cb.SHAPE)})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.dsb&&(com.kingdee.bos.qing.dsb={});var l=com.kingdee.bos.qing.dsb,fc,lb,Mb,bc,Qb,vb,Cb;(function(){var gb=com.kingdee.bos.qing.common;fc=gb.DomUtil;lb=gb.ColorUtil;gb=com.kingdee.bos.qing.framework.common;Mb=gb.AbstractFacade;bc=gb.AbstractIcons;
Qb=gb.Resource;gb=com.kingdee.bos.qing.core.model;vb=gb.Palette;gb=com.kingdee.bos.qing.square.model;Cb=gb.SquareModel})();l.Facade=function(gb,sb,Gb,Ob){Mb.call(this,gb,sb,Gb,Ob);var Vb=this.protectedMethod;this.squareLoadSchema=function(Wb){Wb={ref:JSON.stringify(Wb)};return Vb.remote("squareLoadSchema",Wb)};this.squareSaveSchema=function(Wb,Rb){Wb={ref:JSON.stringify(Wb),model:JSON.stringify(Rb)};Vb.remote("squareSaveSchema",Wb)};this.longerLoadSchema=function(Wb){Wb={ref:JSON.stringify(Wb)};return Vb.remote("longerLoadSchema",
Wb)};this.longerSaveSchema=function(Wb,Rb){Wb={ref:JSON.stringify(Wb),model:JSON.stringify(Rb)};Vb.remote("longerSaveSchema",Wb)};this.refreshData=function(Wb,Rb,Tb){Wb={ref:JSON.stringify(Wb)};Rb&&(Wb.tag=Rb,Tb&&(Wb.loafingMode=!0));return Vb.remote("refreshData",Wb)};this.getWidgetBoundMeta=function(Wb){Vb.remote("getWidgetBoundMeta",{tag:Wb})};this.getFilterPreparedValue=function(Wb,Rb,Tb,Na,Eb,Ja,fb,ub){Wb={tag:Wb,formalizedType:Rb,metaFieldFullName:Tb,displayMetaFieldFullName:Na,orderByMetaFieldFullName:Eb,
orderByAsc:Ja,additionalFilters:fb?JSON.stringify(fb):null,lightWeight:ub};Vb.remote("getFilterPreparedValue",Wb)};this.parseRelativePeriod=function(Wb,Rb){Wb={part:Rb,relative:JSON.stringify(Wb.toJsonObject())};Vb.remote("parseRelativePeriod",Wb)};this.changeTestableCurrentTimeForRelativePeriod=function(Wb){Vb.remote("changeTestableCurrentTimeForRelativePeriod",{current:Wb})};this.loadPresetCosmetic=function(Wb){Vb.remote("loadPresetCosmetic",{skin:Wb})};this.runtimeKeepAlive=function(){Vb.remote("runtimeKeepAlive",
{})}};l.Icons=new function(){bc.call(this);var gb=this.protectedMethod,sb;this.createLoadingIcon=function(){var Wb=$("<div>");Wb.addClass("sa-common-loading-icon");Wb.css("background-image",Qb.getIconUrl("common","loading.gif"));fc.layoutCtrlCenterAlign(Wb,40);fc.layoutCtrlMiddleAlign(Wb,40);return Wb};this.setComboIconImpl=function(Wb){sb=Wb};this.protectedInit=function(Wb,Rb){if(!sb)throw Error("Please setComboIconImpl() first.");sb.define(Rb,"toolbar");Ob(0,0,"btn_undo");Ob(0,1,"btn_redo");Ob(4,
2,"btn_preview");Ob(4,3,"btn_backward");Ob(4,6,"btn_info");Ob(4,7,"btn_overall");sb.define(Rb,"toolbox");Gb(0,0,"widget_unreleased");Gb(0,1,"widget_square");Gb(0,2,"widget_longer");Gb(0,3,"widget_ext");Gb(1,0,"widget_iframe");Gb(1,1,"widget_tabbedall");Gb(1,2,"widget_tabbedone");Gb(1,3,"widget_panel");Gb(2,0,"widget_label");Gb(2,1,"widget_picture");Gb(2,2,"widget_rich");Gb(2,3,"widget_clock");Gb(3,0,"widget_combobox");Gb(3,1,"widget_calendar");Gb(3,2,"widget_buttongroup");Gb(3,3,"widget_f7");Gb(4,
0,"widget_programable");Gb(4,1,"widget_customcard");Gb(4,2,"widget_cloudhub");Gb(4,3,"widget_qingreport");Gb(5,0,"widget_calendaryear");Gb(5,1,"widget_calendarquarter");Gb(5,2,"widget_calendarmonth");Gb(5,3,"widget_calendarday");Gb(6,0,"widget_titlebar");sb.define(Rb,"outline");Vb(0,0,"widget_page_min");Vb(0,1,"widget_square_min");Vb(0,2,"widget_longer_min");Vb(0,3,"widget_ext_min");Vb(2,0,"widget_iframe_min");Vb(2,1,"widget_tabbedall_min");Vb(2,2,"widget_tabbedone_min");Vb(2,3,"widget_panel_min");
Vb(4,0,"widget_label_min");Vb(4,1,"widget_picture_min");Vb(4,2,"widget_rich_min");Vb(4,3,"widget_clock_min");Vb(6,0,"widget_combobox_min");Vb(6,1,"widget_calendar_min");Vb(6,2,"widget_buttongroup_min");Vb(6,3,"widget_f7_min");Vb(8,0,"widget_programable_min");Vb(8,1,"widget_customcard_min");Vb(8,2,"widget_cloudhub_min");Vb(8,3,"widget_qingreport_min");Vb(10,0,"widget_calendaryear_min");Vb(10,1,"widget_calendarquarter_min");Vb(10,2,"widget_calendarmonth_min");Vb(10,3,"widget_calendarday_min");Vb(12,
0,"widget_titlebar_min");sb.define(Rb,"operate");Gb(0,0,"minidelete");sb.define(Rb,"card");Gb(0,0,"edit");Gb(0,1,"analysis");Gb(0,2,"refresh");Gb(0,3,"filter");Gb(0,4,"fullscreen");Gb(1,4,"quitFullscreen");Gb(1,0,"others");Gb(1,1,"info");Gb(1,2,"play");Gb(1,3,"pause");Gb(1,5,"insight");sb.define(Rb,"ctrl");Gb(0,0,"left");Gb(0,1,"right");sb.define(Rb,"exhibitionmode");Gb(0,0,"icon_exmode_full");Gb(1,0,"icon_exmode_fit");Gb(2,0,"icon_exmode_hfull");Gb(3,0,"icon_exmode_idle")};var Gb=function(Wb,Rb,
Tb){gb.registIcon(Wb,Rb,Tb)},Ob=function(Wb,Rb,Tb){Gb(Wb,Rb,Tb);Gb(Wb+1,Rb,Tb+"_hover");Gb(Wb+2,Rb,Tb+"_disabled")},Vb=function(Wb,Rb,Tb){Gb(Wb,Rb,Tb);Gb(Wb+1,Rb,Tb+"_selected")}};l.AbstractQingReportExecutor=function(){this.initUi=function(gb,sb){throw Error("Implement");};this.resize=function(gb,sb){};this.run=function(gb,sb,Gb){throw Error("Implement");};this.updateTitle=function(gb,sb){throw Error("Implement");};this.destroy=function(gb,sb){}};l.AbstractExtReportExecutor=function(){this.initUi=
function(gb,sb){throw Error("Override");};this.resize=function(gb,sb){};this.run=function(gb,sb,Gb){throw Error("Override");};this.updateTitle=function(gb,sb){throw Error("Override");};this.destroy=function(gb,sb){}};l.AbstractProgramableCardExecutor=function(){this.initUi=function(gb,sb){throw Error("Override");};this.resize=function(gb,sb){};this.run=function(gb,sb,Gb){throw Error("Override");};this.destroy=function(gb,sb){}};l.AbstractCosmicCustomCardExecutor=function(){this.initUi=function(gb,
sb){throw Error("Override");};this.resize=function(gb,sb){};this.run=function(gb,sb,Gb){throw Error("Override");};this.destroy=function(gb,sb){}};l.AbstractCloudhubSubscribesExecutor=function(){this.initUi=function(gb,sb){throw Error("Override");};this.resize=function(gb,sb){};this.run=function(gb,sb,Gb){throw Error("Override");};this.destroy=function(gb,sb){}};l.VisualWidgetEditableConfirmer=function(gb,sb){this.getRtSquareEditableConfirmer=function(){return gb};this.getRtLongerEditableConfirmer=
function(){return sb}};l.ImageBorderRenerer=function(){var gb,sb,Gb,Ob,Vb;this.setModel=function(Wb,Rb,Tb,Na,Eb){Vb=Wb;gb=Rb;sb=Tb;Gb=Na;Ob=Eb};this.draw=function(Wb,Rb,Tb,Na,Eb){var Ja=Vb.width,fb=Vb.height,ub=Math.max(0,Math.min(Ja,gb)),zb=Math.max(0,Math.min(Ja,sb)),hc=Math.max(0,Ja-ub-zb),Pb=0+ub;Ja-=zb;var Ha=Math.max(0,Math.min(fb,Gb)),oa=Math.max(0,Math.min(fb,Ob)),kb=Math.max(0,fb-Ha-oa),ob=0+Ha;fb-=oa;var Ia=Math.max(0,Na-ub-zb),cb=Rb+ub;Na-=zb;var p=Math.max(0,Eb-Ha-oa),X=Tb+Ha;Eb-=oa;Wb.drawImage(Vb,
0,0,ub,Ha,Rb,Tb,ub,Ha);Wb.drawImage(Vb,Pb,0,hc,Ha,cb,Tb,Ia,Ha);Wb.drawImage(Vb,Ja,0,zb,Ha,Na,Tb,zb,Ha);Wb.drawImage(Vb,0,ob,ub,kb,Rb,X,ub,p);Wb.drawImage(Vb,Pb,ob,hc,kb,cb,X,Ia,p);Wb.drawImage(Vb,Ja,ob,zb,kb,Na,X,zb,p);Wb.drawImage(Vb,0,fb,ub,oa,Rb,Eb,ub,oa);Wb.drawImage(Vb,Pb,fb,hc,oa,cb,Eb,Ia,oa);Wb.drawImage(Vb,Ja,fb,zb,oa,Na,Eb,zb,oa)}};l.IntegrationRegister=new function(){var gb,sb,Gb,Ob,Vb,Wb,Rb,Tb,Na,Eb,Ja,fb,ub,zb,hc,Pb;this.registerWidgetSourceSelector=function(Ha){gb=Ha};this.getWidgetSourceSelector=
function(){return gb};this.registerQingReportExecutor=function(Ha){Na=Ha};this.getQingReportExecutor=function(){return Na};this.registerExtReportSourceSelector=function(Ha){Eb=Ha};this.getExtReportSourceSelector=function(){return Eb};this.registerExtReportExecutor=function(Ha){Ja=Ha};this.getExtReportExecutor=function(){return Ja};this.registerCosmicCustomCardSourceSelector=function(Ha){ub=Ha};this.getCosmicCustomCardSourceSelector=function(){return ub};this.registerCosmicCustomCardExecutor=function(Ha){zb=
Ha};this.getCosmicCustomCardExecutor=function(){return zb};this.registerCloudhubSubscribesSourceSelector=function(Ha){hc=Ha};this.getCloudhubSubscribesSourceSelector=function(){return hc};this.registerCloudhubSubscribesExecutor=function(Ha){Pb=Ha};this.getCloudhubSubscribesExecutor=function(){return Pb};this.registerProgramableCardExecutor=function(Ha){fb=Ha};this.getProgramableCardExecutor=function(){return fb};this.registerSquareDesignerCreator=function(Ha){sb=Ha};this.showSquareDesigner=function(Ha,
oa,kb,ob,Ia,cb){sb(Ha,oa,kb,ob,Ia,cb)};this.registerSquareAnalysisHandler=function(Ha){Gb=Ha};this.squareAnalysis=function(Ha,oa,kb,ob){Gb(Ha,oa,kb,ob)};this.registerSquareSceneCreator=function(Ha){Ob=Ha};this.createDashboardSquareScene=function(Ha,oa){Ob(Ha,oa)};this.registerLongerDesignerCreator=function(Ha){Vb=Ha};this.showLongerDesigner=function(Ha,oa,kb,ob,Ia,cb){Vb(Ha,oa,kb,ob,Ia,cb)};this.registerLongerSceneCreator=function(Ha){Wb=Ha};this.createDashboardLongerScene=function(Ha,oa){Wb(Ha,oa)};
this.registerBuiltinVisualWidgetEditableConfirmerParser=function(Ha){Rb=Ha};this.parseBuiltinVisualWidgetEditableConfirmer=function(Ha){return Rb(Ha)};this.registerPictrueLoader=function(Ha){Tb=Ha};this.getPictureLoader=function(){return Tb}};var wa=new function(){var gb;this.unpack=function(sb){gb=sb};this.dipSome=function(sb){var Gb={};if(gb)for(var Ob=0;Ob<sb.length;Ob++)gb.pickItems(sb[Ob],Gb);return Gb};this.dip=function(sb){return gb?gb.pickItems(sb):null}};wa.DSB_PAGE="page";wa.DSB_PAGE_TITLE_BAR=
"pageTitleBar";wa.DSB_CARD="card";wa.DSB_LABEL="label";wa.DSB_INPUTER="sinlgeLineInputer";wa.DSB_TABBED_HEAD="tabbedHead";wa.DSB_BUTTON_GROUP="buttonGroup";wa.DESIGN="designtime";wa.SQUARE_EXHIBITION="squareExhibition";wa.CHART_COMMON="chartCommon";wa.CHART_PALETTE="chartPalette";wa.CHART_PROGRESS="chartProgress";wa.getPageBackgroundColor=function(){return wa.dip(wa.DSB_PAGE)[wa.Key_Page_BackgroundColor]};wa.getCardBackgroundColor=function(gb,sb){sb=sb?sb:wa.dip(wa.DSB_CARD);var Gb=sb[wa.Key_Card_BackgroundColor]||
"#ffffff";gb&&(gb=parseFloat(sb[wa.Key_Card_BackgroundOpacity]||1),Gb=lb.withOpacityToRgba(Gb,gb));return Gb};wa.decorateCardSimpleBorder=function(gb,sb,Gb){Gb=Gb?Gb:wa.dip(wa.DSB_CARD);var Ob=parseInt(Gb[wa.Key_Card_BorderRadius]||0);sb.css("border-radius",Ob+"px");gb=wa.getCardBackgroundColor(gb,Gb);sb.css("background-color",gb);(Gb=Gb[wa.Key_Card_ShadowColor]||"")&&(Gb="0 1px 3px 0 "+Gb);sb.css("box-shadow",Gb)};wa.undecorateCardSimpleBorder=function(gb){gb.css("border-radius","");gb.css("background-color",
"");gb.css("box-shadow","")};wa.decorateCardTitle=function(gb,sb){sb=sb?sb:wa.dip(wa.DSB_CARD);var Gb=sb[wa.Key_Card_TitleColor]||"#5b6373";sb=parseInt(sb[wa.Key_Card_TitleFontSize]||12);gb.css("color",Gb);gb.css("font-size",sb+"px")};wa.decorateCardModalLayer=function(gb,sb,Gb){Gb=Gb?Gb:wa.dip(wa.DSB_CARD);var Ob=Gb[wa.Key_Card_ModalLayerColor]||"#999999";sb?(Ob=lb.withOpacityToRgba(Ob,.5),sb="rgba(128,128,128,0.001)"):(sb=Gb[wa.Key_Card_BackgroundColor]||"#ffffff",sb=lb.withOpacityToRgba(sb,.8));
gb.css("color",Ob);gb.css("background-color",sb)};wa.decorateLabel=function(gb,sb){sb=sb?sb:wa.dip(wa.DSB_LABEL);gb.css("color",sb[wa.Key_Label_Color]||"#808080")};wa.decorateInputer=function(gb,sb){sb=sb?sb:wa.dip(wa.DSB_INPUTER);var Gb=sb[wa.Key_Inputer_Color]||"#808080";sb=sb[wa.Key_Inputer_UnderlineColor]||"#808080";gb.css("background-color","transparent");gb.css("color",Gb);gb.css("box-shadow","0 1px 0 0 "+sb)};wa.decorateDesigntimeRectangle=function(gb,sb){sb=sb?sb:wa.dip(wa.DESIGN);gb.css("box-shadow",
"inset 0 0 0 1px "+sb[wa.Key_Design_ColorC])};wa.getChartDefaultPalette=function(gb){if(!gb)return null;a:{switch(gb){case Cb.ChartType_ProgressBar:case Cb.ChartType_ProgressColumn:case Cb.ChartType_ProgressCircle:var sb=wa.dip(wa.CHART_PROGRESS);gb=sb[wa.Key_ChartProgress_DesiredColor]+","+sb[wa.Key_ChartProgress_CompleteColor];break a;case Cb.ChartType_Grid:case Cb.ChartType_CustomList:case Cb.ChartType_KPI:case Cb.ChartType_Dial:case Cb.ChartType_Map:case Cb.ChartType_Waterfall:gb="";break a;case Cb.ChartType_Line:case Cb.ChartType_Radar:gb=
wa.Key_Palette_ContrastingLine;break;case Cb.ChartType_GIS:case Cb.ChartType_Scatter:gb=wa.Key_Palette_ContrastingArea;break;default:gb=wa.Key_Palette_Base}sb=wa.dip(wa.CHART_PALETTE);gb=sb[gb]}sb=new vb;sb.decodeFromString(gb);return sb};wa.Key_Page_BackgroundColor="backgroundColor";wa.Key_Page_WatermarkColor="watermarkColor";wa.Key_PageTitleBar_BackgroundColor="backgroundColor";wa.Key_PageTitleBar_SeparaterLineWidth="separaterLineWidth";wa.Key_PageTitleBar_SeparaterColor="separaterColor";wa.Key_Card_BackgroundColor=
"backgroundColor";wa.Key_Card_BackgroundOpacity="backgroundOpacity";wa.Key_Card_ShadowColor="shadowColor";wa.Key_Card_BorderRadius="borderRadius";wa.Key_Card_TitleColor="titleColor";wa.Key_Card_TitleFontSize="titleFontSize";wa.Key_Card_ModalLayerColor="modalLayerColor";wa.Key_Label_Color="color";wa.Key_Inputer_Color="color";wa.Key_Inputer_UnderlineColor="underlineColor";wa.Key_TabbedHead_MainColor="mainColor";wa.Key_TabbedHead_InverseColor="inverseColor";wa.Key_ButtonGroup_Color="color";wa.Key_ButtonGroup_BackgroundColor=
"backgroundColor";wa.Key_ButtonGroup_BorderColor="borderColor";wa.Key_ButtonGroup_Color_Selected="color_selected";wa.Key_ButtonGroup_BackgroundColor_Selected="backgroundColor_selected";wa.Key_ButtonGroup_BorderColor_Selected="borderColor_selected";wa.Key_ButtonGroup_BackgroundColor_Hover="backgroundColor_hover";wa.Key_Design_Adjustable="adjustable";wa.Key_Design_Unadjustable="unadjustable";wa.Key_Design_ColorA="colorA";wa.Key_Design_ColorB="colorB";wa.Key_Design_ColorC="colorC";wa.Key_Palette_Base=
"base";wa.Key_Palette_ContrastingLine="contrastingLine";wa.Key_Palette_ContrastingArea="contrastingArea";wa.Key_ChartProgress_DesiredColor="progressDesiredColor";wa.Key_ChartProgress_CompleteColor="progressCompleteColor";l.CosmeticBag=wa})();
(function(){function l(){var Ja=[],fb=!0,ub=l.POSITION_LEFT|l.POSITION_TOP,zb,hc,Pb,Ha=!1,oa;this.addMenuItem=function(qa,Pa,Oa,Za){Ja.push([qa,Pa,Oa,Za?!0:!1])};this.setMenuItem=function(qa,Pa,Oa,Za,ib){var Kb=Ja[qa];Kb||(Kb=[],Ja[qa]=Kb);Pa&&(Kb[0]=Pa);Oa&&(Kb[1]=Oa);Za&&(Kb[2]=Za);!0!==ib&&!1!==ib||(Kb[3]=ib);!fb&&zb&&zb.is(":visible")&&(Oa=Pb.children().eq(qa),Pa=Oa.children().eq(0),Oa=Oa.children().eq(1),Rb.background(Pa,Ja[qa][0]),Oa.text(Ja[qa][1]))};this.setGourd6Mode=function(qa){fb=qa;zb&&
p();fb?window.localStorage.removeItem("kd.qing.dsb.CornerMenu.gourd6"):window.localStorage.setItem("kd.qing.dsb.CornerMenu.gourd6",fb)};this.isGourd6Mode=function(){return fb};this.setPosition=function(qa){ub=qa;zb&&(cb(),fb&&Pb.css(X()));qa=((ub&l.POSITION_BOTTOM)==l.POSITION_BOTTOM?"S":"N")+(Ia()?"E":"W");"NW"==qa?window.localStorage.removeItem("kd.qing.dsb.CornerMenu.position"):window.localStorage.setItem("kd.qing.dsb.CornerMenu.position",qa)};this.getPosition=function(){return ub};this.setup=
function(qa,Pa){if(!zb){var Oa=window.localStorage.getItem("kd.qing.dsb.CornerMenu.position");Oa&&(ub=("S"==Oa.charAt(0)?l.POSITION_BOTTOM:l.POSITION_TOP)|("E"==Oa.charAt(1)?l.POSITION_RIGHT:l.POSITION_LEFT));(Oa=window.localStorage.getItem("kd.qing.dsb.CornerMenu.gourd6"))&&(fb="false"!=Oa);zb=$("<div>");zb.css({cursor:"pointer","z-index":Pa});kb().appendTo(zb);Pb=$("<div>");Pb.css({"background-color":xa(),color:Tb.dip(Tb.DSB_LABEL)[Tb.Key_Label_Color],border:"1px solid "+Ba(),"border-radius":"6px"});
Pb.appendTo(zb);zb.appendTo(qa);ob(qa);cb();p()}};var kb=function(){var qa=$("<div>");qa.css({"background-color":f(),"border-radius":"6px"});hc=$("<div>");hc.append(qa);hc.on("click",function(Pa){na();Pa.stopPropagation()});return hc},ob=function(qa){var Pa=0,Oa=-1,Za=-1;oa=function(){Pa=0};var ib=function(){fb&&(!Ha&&(new Date).getTime()>Pa?(zb.hide(),Pa=0):setTimeout(ib,2E3))};qa.on("mousemove",function(Kb){!fb||Kb.screenX==Oa&&Kb.screenY==Za||(Oa=Kb.screenX,Za=Kb.screenY,0==Pa&&(zb.show(),setTimeout(ib,
2E3)),Pa=(new Date).getTime()+3E3)});qa.on("click",function(Kb){fb&&Ha&&(Ha=!1,Pb.animate(X(),250))})},Ia=function(){return(ub&l.POSITION_RIGHT)==l.POSITION_RIGHT},cb=function(){var qa=0,Pa="",Oa=-12,Za="",ib=-6,Kb="";Ia()&&(qa="",Pa=0,Oa="",Za=-12,ib="",Kb=-6);var nc=0,kc="",rc=6,uc="";(ub&l.POSITION_BOTTOM)==l.POSITION_BOTTOM&&(nc="",kc=0,rc="",uc=6);Mb.layoutCtrlWithLRTB(zb,qa,Pa,0,nc,kc,0);Mb.layoutCtrlWithLRTB(hc,qa,Pa,40,nc,kc,40);Mb.layoutCtrlWithLRTB(hc.children(),Oa,Za,24,6,null,12);Mb.layoutCtrlWithLRTB(Pb,
ib,Kb,"auto",rc,uc,"auto")},p=function(){Pb.stop();fb?(Ha&&(Ha=!1,Pb.animate(X(),250)),hc.show(),zb.hide(),oa()):(hc.hide(),zb.show(),na())},X=function(){var qa=Ia()?"right":"left",Pa=Pb.prop("offsetWidth"),Oa={};Oa[qa]=-Pa;return Oa},na=function(){Ha=!0;Pb.empty();for(var qa=$(document.createDocumentFragment()),Pa=0,Oa=0;Oa<Ja.length;Oa++)if(Ja[Oa]){var Za=ha(Oa);0<Pa&&Za.css("border-top","1px solid "+Ba());Za.appendTo(qa);Pa++}qa.appendTo(Pb);Pb.css(X());qa=Pb;Pa=qa.animate;Oa=Ia()?"right":"left";
Za={};Za[Oa]=-6;Pa.call(qa,Za,325)},Ua=function(qa,Pa){var Oa=Ja[qa];qa=Oa[1];if(Oa[3]){Oa=xa();var Za=$("<div>");Za.text(qa);Za.css({"white-space":"nowrap",color:Tb.dip(Tb.DSB_LABEL)[Tb.Key_Label_Color]});Za.css("text-shadow","-1px -1px "+Oa+", 1px 1px "+Oa+", -1px 1px "+Oa+", 1px -1px "+Oa);Ia()?(Pa=Mb.upwardCoordinate(Pa[0],[Pa.prop("offsetWidth"),0],zb[0]),Mb.layoutCtrlWithLRTB(Za,null,0+zb.prop("offsetWidth")-Pa[0],"auto",Pa[1],null,"auto")):(Pa=Mb.upwardCoordinate(Pa[0],[0,0],zb[0]),Mb.layoutCtrl(Za,
Pa[0],Pa[1],"auto","auto"));Za.appendTo(zb);Za.animate({"font-size":"28px"},325,function(){setTimeout(function(){Za.remove()},1E3)})}},ha=function(qa){var Pa=$("<div>");Mb.layoutCtrlWithLRTB(Pa,12,null,16);Mb.layoutCtrlMiddleAlign(Pa,16);Rb.background(Pa,Ja[qa][0]);var Oa=$("<div>");Oa.css({position:"relative","white-space":"nowrap","line-height":"24px"});Oa.text(Ja[qa][1]);var Za=$("<div>");Za.css({position:"relative",height:"24px",padding:"6px 12px 6px 32px"});Za.on("click",function(ib){Ua(qa,Oa);
(0,Ja[qa][2])()});Za.append(Pa);Za.append(Oa);return Za},f=function(){var qa=Tb.dip(Tb.DSB_LABEL)[Tb.Key_Label_Color];return qa=bc.withOpacityToRgba(qa,.2)},xa=function(){var qa=Tb.dip(Tb.DSB_CARD)[Tb.Key_Card_BackgroundColor];return qa=bc.withOpacityToRgba(qa,.8)},Ba=function(){var qa=Tb.dip(Tb.DSB_LABEL)[Tb.Key_Label_Color];return qa=bc.withOpacityToRgba(qa,.3)}}"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.dsb&&(com.kingdee.bos.qing.dsb={});"undefined"==typeof com.kingdee.bos.qing.dsb.ui&&(com.kingdee.bos.qing.dsb.ui={});var fc=com.kingdee.bos.qing.dsb.ui;fc.AbstractDialogWithJsonExportor=function(){vb.call(this);var Ja=this.protectedMethod,fb,ub=function(hc,Pb){for(var Ha=new wa,oa=0;oa<Pb.length;oa++){var kb=Pb[oa];"/"==kb?Ha.addSeperator():Ha.addItemModel(kb)}oa=$(hc.currentTarget);hc=
oa.parent();Pb=hc.prop("clientHeight");oa=oa.prop("offsetLeft");kb=new Cb;kb.setModel(Ha);kb.show(hc,oa,Pb,null,!0);return kb},zb=function(hc,Pb,Ha,oa,kb){Eb.isSupported()&&"function"==typeof FileReader?(fb||(fb=$("<div>"),fb.appendTo(kb()),Mb.layoutCtrl(fb,-1E3,-1E3,0,0)),fb.empty(),kb=new Wb,kb.appendInvislbelUiTo(fb),kb.selectFile(function(ob){if(ob=ob.getFile()){var Ia=new FileReader;Ia.onload=function(cb){cb=cb.target.result;try{var p=JSON.parse(cb)}catch(ha){Ja.getMessageCurtain().showPrompt(Qb.get("promptParseFileError",
"\u89e3\u6790\u6587\u4ef6\u65f6\u53d1\u751f\u9519\u8bef\u3002")+ha,6E4);return}if(p.qingStyleType!=hc)Ja.getMessageCurtain().showPrompt(Qb.get("promptFileTypeVerifyError","\u6587\u4ef6\u7c7b\u578b\u4e0d\u5339\u914d\u3002"),6E4);else{cb=!1;var X=parseInt(p.version),na=parseInt(Pb);if(isNaN(X))Ja.getMessageCurtain().showPrompt(Qb.get("promptFileVersionVerifyError","\u6587\u4ef6\u7248\u672c\u4fe1\u606f\u9519\u8bef\u3002"),6E4);else if(X>na)Ja.getMessageCurtain().showPrompt(Qb.get("promptFileVersionHigherError",
"\u4e0d\u652f\u6301\u89e3\u6790\u4ece\u9ad8\u7248\u672c\u73af\u5883\u5bfc\u51fa\u7684\u6587\u4ef6\u3002"),6E4);else{X<na&&(cb=!0);try{var Ua=p.content;cb&&Ha(X,Ua);oa(Ua,function(ha){ha&&Ja.getMessageCurtain().showSuccess(Qb.get("promptImportFromFileSuccess","\u5df2\u4ece\u9009\u4e2d\u6587\u4ef6\u5bfc\u5165\u3002"))})}catch(ha){Ja.getMessageCurtain().showPrompt(Qb.get("promptImportFromFileError","\u5bfc\u5165\u65f6\u53d1\u751f\u9519\u8bef\u3002")+ha,6E4)}}}};Ia.onerror=function(cb){Ja.getMessageCurtain().showPrompt(Qb.get("promptReadFileError",
"\u8bfb\u53d6\u6587\u4ef6\u65f6\u53d1\u751f\u9519\u8bef\u3002")+Ia.error,6E4)};Ia.readAsText(ob)}},"."+hc)):Ja.getMessageCurtain().showPrompt(Qb.get("promptCannotSupportFile","\u7531\u4e8e\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\u7684\u95ee\u9898\uff0c\u5f53\u524d\u73af\u5883\u4e0d\u652f\u6301\u5bfc\u5165\u3001\u5bfc\u51fa\u6587\u4ef6\u3002"))};Ja.initToolbarExportButton=function(hc,Pb,Ha,oa,kb,ob,Ia,cb){Ja.getDialogCtrl().createToolbarButton(Qb.get("exportTo","\u5bfc\u51fa"),function(p){var X=Cb.createActionMenuItem(Qb.get("exportToFile",
"\u5bfc\u51fa\u5230\u6587\u4ef6"),function(){if(Eb.isSupported()&&"function"==typeof FileReader){var Ua={};Ua.qingStyleType=hc;Ua.version=Pb;Ua.content=oa();Ua=JSON.stringify(Ua);var ha=lb.formatDate("yyyyMMdd_HHmmss")+"."+hc;Eb.write(ha,Ua)}else Ja.getMessageCurtain().showPrompt(Qb.get("promptCannotSupportFile","\u7531\u4e8e\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\u7684\u95ee\u9898\uff0c\u5f53\u524d\u73af\u5883\u4e0d\u652f\u6301\u5bfc\u5165\u3001\u5bfc\u51fa\u6587\u4ef6\u3002"))}),na=Cb.createActionMenuItem(Qb.get("exportToClipboard",
"\u5bfc\u51fa\u5230\u6837\u5f0f\u526a\u8d34\u677f"),function(){var Ua=Ha(Na),ha=oa();Na.copy(Ua,ha);Ja.getMessageCurtain().showSuccess(Qb.get("promptExportSuccess","\u5df2\u5bfc\u51fa\u3002"))});ub(p,[X,na])},cb?!0:!1);Ja.getDialogCtrl().createToolbarButton(Qb.get("importFrom","\u5bfc\u5165"),function(p){var X=Cb.createActionMenuItem(Qb.get("importFromFile","\u4ece\u6587\u4ef6\u5bfc\u5165")+"...",function(){zb(hc,Pb,kb,ob,Ia)}),na=Cb.createActionMenuItem(Qb.get("importFromClipboard","\u4ece\u6837\u5f0f\u526a\u8d34\u677f\u5bfc\u5165"),
function(){var Ua=Ha(Na);(Ua=Na.paste(Ua))?ob(Ua,function(ha){ha&&Ja.getMessageCurtain().showSuccess(Qb.get("promptImportFromClipboardSuccess","\u5df2\u4ece\u6837\u5f0f\u526a\u8d34\u677f\u5bfc\u5165\u3002"))}):Ja.getMessageCurtain().showPrompt(Qb.get("promptImportFromClipboardEmpty","\u6837\u5f0f\u526a\u8d34\u677f\u4e2d\u6ca1\u6709\u5185\u5bb9\u3002"))});ub(p,[X,na])})};Ja.popupMenu=ub};fc.CornerMenu=l;var lb,Mb,bc,Qb,vb,Cb,wa,gb,sb,Gb,Ob,Vb,Wb,Rb,Tb;(function(){var Ja=com.kingdee.bos.qing.common;
lb=Ja.Util;Mb=Ja.DomUtil;bc=Ja.ColorUtil;Ja=com.kingdee.bos.qing.framework.common;Qb=Ja.MultilanguageManager.createPackageAccessor(fc);Ja=com.kingdee.bos.qing.ui.component;vb=Ja.AbstractModalDialog;Cb=Ja.Menu;wa=Ja.MenuModel;gb=Ja.LeftTabContainer;sb=Ja.CheckBox;Gb=Ja.RadioButton;Ob=Ja.RadioButtonGroup;Vb=Ja.Label;Ja=com.kingdee.bos.qing.common.ui;Wb=Ja.LocalFileSelector;Ja=com.kingdee.bos.qing.dsb;Rb=Ja.Icons;Tb=Ja.CosmeticBag})();var Na=new function(){this.getKeyOfCosmetic=function(){return"kd.qing.dashboard.style"};
this.getKeyOfCardlook=function(){return"kd.qing.dashboard.cardlook"};this.copy=function(Ja,fb){window.sessionStorage.setItem(Ja,JSON.stringify(fb))};this.paste=function(Ja){return(Ja=window.sessionStorage.getItem(Ja))?JSON.parse(Ja):null}},Eb=new function(){this.isSupported=function(){if("undefined"===typeof Blob)return!1;try{new Blob(["test"])}catch(ub){return!1}return Ja()||"function"==typeof navigator.msSaveBlob};this.write=function(ub,zb){var hc=Ja();hc?(zb=fb(zb),zb=URL.createObjectURL(zb),hc.href=
zb,hc.download=ub,ub=new MouseEvent("click"),hc.dispatchEvent(ub),URL.revokeObjectURL(zb)):(zb=fb(zb),navigator.msSaveBlob(zb,ub))};var Ja=function(){var ub=document.createElementNS("http://www.w3.org/1999/xhtml","a");return"download"in ub?ub:null},fb=function(ub){return new Blob([ub],{type:"application/octet-stream"})}};l.POSITION_LEFT=1;l.POSITION_RIGHT=2;l.POSITION_TOP=16;l.POSITION_BOTTOM=32;l.ConfigDialog=function(){function Ja(ob,Ia){gb.AbstractTabPane.call(this);var cb;this.getTabHeadText=
function(){return ob};this.getJqUi=function(){cb||(cb=$("<div>"),cb.css({color:"#666","white-space":"pre-wrap",padding:"10px 20px","line-height":"24px"}));return cb};this.into=function(){cb.text()||0!=cb.children().length||Ia(cb)}}function fb(ob){gb.AbstractTabPane.call(this);var Ia;this.getTabHeadText=function(){return Qb.get("cornerMenuTabConfig","\u83dc\u5355\u4e2a\u6027\u5316")};this.getJqUi=function(){!Ia&&cb();return Ia};var cb=function(){Ia=$("<div>");var na=new Vb;na.setText(Qb.get("cornerMenuConfigPosition",
"\u83dc\u5355\u4f4d\u7f6e"));var Ua=X(Qb.get("cornerMenuConfigPositionNW","\u5de6\u4e0a\u89d2"),l.POSITION_LEFT|l.POSITION_TOP),ha=X(Qb.get("cornerMenuConfigPositionNE","\u53f3\u4e0a\u89d2"),l.POSITION_RIGHT|l.POSITION_TOP),f=X(Qb.get("cornerMenuConfigPositionSW","\u5de6\u4e0b\u89d2"),l.POSITION_LEFT|l.POSITION_BOTTOM),xa=X(Qb.get("cornerMenuConfigPositionSE","\u53f3\u4e0b\u89d2"),l.POSITION_RIGHT|l.POSITION_BOTTOM),Ba=new Ob;Ba.addElement(Ua);Ba.addElement(ha);Ba.addElement(f);Ba.addElement(xa);
Ba.addChangedListener(function(qa,Pa){Pa&&ob.setPosition(qa.getUserObject())});Ba=new sb;Ba.setText(Qb.get("cornerMenuConfigKeepMenu","\u83dc\u5355\u4e00\u76f4\u505c\u7559\u5728\u754c\u9762\u4e0a"));Ba.setChecked(!ob.isGourd6Mode());Ba.addCheckedListener(function(qa,Pa){Pa&&ob.setGourd6Mode(!qa.isChecked())});p(na.getJqUi(),20,10,120,20);p(Ua.getJqUi(),20,40,120,23);p(ha.getJqUi(),160,40,120,23);p(f.getJqUi(),20,80,120,23);p(xa.getJqUi(),160,80,120,23);p(Ba.getJqUi(),20,130,200,23)},p=function(na,
Ua,ha,f,xa){na.appendTo(Ia);Mb.layoutCtrl(na,Ua,ha,f,xa)},X=function(na,Ua){var ha=new Gb;ha.setText(na);ha.setUserObject(Ua);ha.setChecked(ob.getPosition()==Ua);return ha}}function ub(ob){gb.AbstractTabPane.call(this);var Ia;this.getTabHeadText=function(){return Qb.get("cornerMenuTabPersonalization","\u4eea\u8868\u677f\u8bbe\u7f6e")};this.getJqUi=function(){Ia||(Ia=$("<div>"),ob(Ia));return Ia}}vb.call(this);var zb=this,hc=this.protectedMethod,Pb,Ha,oa,kb;this.setContextCreator=function(ob){Ha=new Ja(Qb.get("cornerMenuTabContextInfo",
"\u4eea\u8868\u677f\u4fe1\u606f"),ob)};this.setEnvCreator=function(ob){oa=new Ja(Qb.get("cornerMenuTabEnvInfo","\u73af\u5883\u4fe1\u606f"),ob)};this.setPersonalizationCreator=function(ob){kb=new ub(ob)};this.show=function(ob,Ia){zb.setSize(640,360);hc.setTitle(ob);hc.setFooterClosingOnly(!0);hc.setContentPaneCreator(function(){Pb=new gb;Pb.setBorderVisible(!0);Pb.setTabPanes([new fb(Ia),kb,oa,Ha]);Pb.setTabHeadItemHeight(44);Pb.setTabHeadWidth(100);return Pb.getJqUi()});hc.setClosingAction(function(cb){});
zb.showDialog();Pb.refreshUi()}}})();(function(){function l(){var q=this,k,x=new Ab,A=new Ab,P;this.addPropertyChangedListener=function(Da){x.addListener(Da)};this.removePropertyChangedListener=function(Da){x.removeListener(Da)};var V=function(Da,ca){x.fireEvent(function(N){N(Da,ca)})};this.addChildrenChangedListener=function(Da){A.addListener(Da)};this.removeChildrenChangedListener=function(Da){A.removeListener(Da)};var da=function(Da,ca,N){A.fireEvent(function(ea){ea(Da,ca,N)})};this.getPage=function(){if(!k){k=new Na;var Da=k.getWidgetTypeName();
k.setName(Da);k.setDisplayName(Sc.getInstance(Da).getTypeDisplayName());k.setRectangle(0,0,1024,768);k.setCardBorder(ha.createInstance(ha.TYPE_SIMPLE));k.addPropertyChangedListener(function(ca,N){V(ca,N)});k.addChildrenChangedListener(function(ca,N,ea){da(ca,N,ea)})}return k};this.getCurrentCosmeticModel=function(){return P};this.setCurrentCosmeticModel=function(Da){P=Da};this.allocateNameForNewWidget=function(Da,ca,N,ea){var ma=ca.getTypeDisplayName();N=za(ma,N);Da.setDisplayName(N);ca=ca.getTypeName();
ea=Qa(ca+(new Date).getTime(),"z",ea);Da.setName(ea)};this.reallocateNameForCopyPasteWidget=function(Da){la(Da,function(ca,N){ca.setDisplayName(N)},function(ca,N){ca.setName(N)})};this.reallocateNameForCutPasteWidget=function(Da,ca,N){la(Da,ca,N)};var la=function(Da,ca,N){var ea={},ma={};for(Da=[Da];0<Da.length;){var H=Da.shift(),W=H.getDisplayName();q.isDisplayNameExist(W)?(W=za(W+"_",ea),ca(H,W)):ea[W]=!0;W=H.getName();var ta=Qa(W,"_",ma);ta!=W&&N(H,ta);if(H.isContainer())for(W=0;W<H.getWidgetCount();W++)Da.push(H.getWidget(W))}},
za=function(Da,ca){for(var N=1,ea=Da+N;q.isDisplayNameExist(ea)||ca&&ca[ea];)N++,ea=Da+N;ca&&(ca[ea]=!0);return ea},Qa=function(Da,ca,N){for(var ea=1,ma=Da;ab(ma,"getName")||N&&N[ma];)ma=Da+ca+ea,ea++;N&&(N[ma]=!0);return ma},ab=function(Da,ca){var N=!1;q.getPage().traversalMeAndDescendents(function(ea){return ea[ca]()==Da?N=!0:!1});return N};this.isDisplayNameExist=function(Da){return ab(Da,"getDisplayName")};this.searchWidgetByName=function(Da){return q.getPage().searchWidgetByName(Da)};this.collectStylesToJsonObject=
function(Da){var ca=[];Da.isContainer()?Da.traversalMeAndDescendents(function(ma){wb(ma,ca)}):wb(Da,ca);Da=null;if(0<ca.length){Da=[];for(var N=0;N<ca.length;N++){var ea=ca[N].toJsonObject();Da.push(ea)}}return Da};var wb=function(Da,ca){Da.isInstanceOf(l.WidgetSuperType_WithCommonStyle)&&Da.collectStyleAndAllocateId(function(N){for(var ea=-1,ma=0;ma<ca.length;ma++)if(ca[ma].isEquals(N)){ea=ma;break}0>ea&&(ea=ca.length,ca.push(N));return""+ea})};this.distributeStylesFromJsonObject=function(Da,ca){for(var N=
[],ea=0;ea<ca.length;ea++){var ma=ca[ea],H=new Ua;H.fromJsonObject(ma);N.push(H)}Da.isContainer()?Da.traversalMeAndDescendents(function(W){jb(W,N)}):jb(Da,N)};var jb=function(Da,ca){Da.isInstanceOf(l.WidgetSuperType_WithCommonStyle)&&Da.distributeStyle(function(N){return N?(N=parseInt(N),ca[N]):null})};this.toJsonObject=function(){var Da={},ca=q.collectStylesToJsonObject(q.getPage());ca&&(Da.styles=ca);(ca=q.getPage().getJsonCustomCosmetic())&&(Da.cosmetic=ca);Da.page=q.getPage().toJsonObject();return Da};
this.fromJsonObject=function(Da,ca){var N=Da.isTooModern?!0:!1;ca&&ca.setTooModern(N);ca=Da.page;q.getPage().fromJsonObject(ca);(ca=Da.cosmetic)&&q.getPage().setJsonCustomCosmetic(ca);(Da=Da.styles)&&q.distributeStylesFromJsonObject(q.getPage(),Da)}}function fc(){var q=this,k=new Ab,x,A,P,V,da,la,za,Qa=!1,ab=!1,wb=!0,jb;this.isContainer=function(){return!1};this.getSuperType=function(){return 0};this.isInstanceOf=function(ca){return(q.getSuperType()&ca)==ca};this.getWidgetTypeName=function(){throw Error("Override me");
};this.addPropertyChangedListener=function(ca){k.addListener(ca)};this.removePropertyChangedListener=function(ca){k.removeListener(ca)};var Da=function(ca,N){k.fireEvent(function(ea){ea(ca,N)})};this.bindParent=function(ca){x=ca};this.getParent=function(){return x};this.getTopPage=function(){for(var ca=q;ca.getParent();)ca=ca.getParent();return ca};this.upToVisitPath=function(ca){for(var N=q;N.getParent()&&(N=N.getParent(),!ca(N)););};this.isOpacityRequired=function(){var ca=!1;q.upToVisitPath(function(N){var ea=
!1;N.isInstanceOf(l.WidgetSuperType_ContainerWithBackground)&&(ca=N.isWidgetOpacityRequired())&&(ea=!0);return ea});return ca};this.setName=function(ca){A=ca};this.getName=function(){return A};this.setDisplayName=function(ca){P=ca;Da(q,l.KEY_DISPLAY_NAME)};this.getDisplayName=function(){return P};this.getX=function(){return V};this.getY=function(){return da};this.getWidth=function(){return la};this.getHeight=function(){return za};this.setPosition=function(ca,N){V=ca;da=N};this.setSize=function(ca,
N){la=ca;za=N};this.setRectangle=function(ca,N,ea,ma){V=ca;da=N;la=ea;za=ma;Da(q,l.KEY_RECT)};this.markFullscreen=function(ca,N){ca&&!jb?(jb=[V,da,la,za],Da(q,N?l.KEY_FULLSCREEN_BY_ANCESTOR:l.KEY_FULLSCREEN)):!ca&&jb&&(q.setRectangle(jb[0],jb[1],jb[2],jb[3]),jb=null,Da(q,N?l.KEY_FULLSCREEN_BY_ANCESTOR:l.KEY_FULLSCREEN))};this.hasBeenFullscreen=function(){return jb?!0:!1};this.isWidthLockedAlways=function(ca){return ca.isWidthLockedAlways()};this.isHeightLockedAlways=function(ca){return ca.isHeightLockedAlways()};
this.isWidthLocked=function(){return Qa};this.setWidthLocked=function(ca){Qa=ca};this.isHeightLocked=function(){return ab};this.setHeightLocked=function(ca){ab=ca};this.isCanBeContained=function(ca,N){return!0};this.isMovable=function(){return!0};this.isVisible=function(){return wb};this.setVisible=function(ca){wb!=ca&&(wb=ca,Da(q,l.KEY_VISIBLE))};this.isEldestSon=function(){return!1};this.toJsonObject=function(){var ca={};ca.widgetType=q.getWidgetTypeName();ca.name=A;ca.displayName=P;ca.x=V;ca.y=
da;ca.width=la;ca.height=za;Qa&&(ca.widthLocked=!0);ab&&(ca.heightLocked=!0);!wb&&(ca.visible=!1);q.protectedToJsonObject(ca);return ca};this.fromJsonObject=function(ca){A=ca.name;P=ca.displayName;V=ca.x;da=ca.y;la=ca.width;za=ca.height;Qa=ca.widthLocked?!0:!1;ab=ca.heightLocked?!0:!1;wb=!1===ca.visible?!1:!0;q.protectedFromJsonObject(ca)};this.protectedToJsonObject=function(ca){throw Error("Override");};this.protectedFromJsonObject=function(ca){throw Error("Override");};this.protectedMethod={firePropertyChangedEvent:Da}}
function lb(){fc.call(this);var q=this,k=this.protectedMethod,x=[],A=new Ab,P;this.isContainer=function(){return!0};this.isCanContain=function(Qa,ab){return!0};this.setLayoutAdapter=function(Qa){P=Qa};this.getLayoutAdapter=function(){return P};this.addChildrenChangedListener=function(Qa){A.addListener(Qa)};this.removeChildrenChangedListener=function(Qa){A.removeListener(Qa)};var V=function(Qa,ab,wb){A.fireEvent(function(jb){jb(Qa,ab,wb)})};this.getClientWidth=function(){return q.getWidth()};this.getClientHeight=
function(){return q.getHeight()};this.setClientSize=function(Qa,ab){q.setSize(Qa,ab)};this.addWidget=function(Qa,ab){"number"==typeof ab?x.splice(ab,0,Qa):x.push(Qa);Qa.bindParent(q);Qa.addPropertyChangedListener(la);Qa.isContainer()&&Qa.addChildrenChangedListener(za);V(l.KEY_ADD_CHILD,q,Qa)};this.removeWidget=function(Qa){for(var ab=0;ab<x.length;ab++)if(x[ab]==Qa)return x.splice(ab,1),Qa.bindParent(null),Qa.removePropertyChangedListener(la),Qa.isContainer()&&Qa.removeChildrenChangedListener(za),
V(l.KEY_REMOVE_CHILD,q,Qa),ab;return-1};this.moveWidgetTo=function(Qa,ab){for(var wb=!1,jb=0;jb<x.length;jb++)if(x[jb]==Qa){x.splice(jb,1);wb=!0;break}wb&&(x.splice(ab,0,Qa),V(l.KEY_MOVE_CHILD,q,Qa))};this.getWidgetCount=function(){return x.length};this.getWidget=function(Qa){return x[Qa]};this.traversalMeAndDescendents=function(Qa){da(Qa,!0)};this.traversalDescendents=function(Qa){da(Qa,!1)};var da=function(Qa,ab){for(var wb=[q];0<wb.length;){var jb=wb.pop(),Da=!1;if(ab||jb!=q)Da=Qa(jb);if(Da)break;
if(jb.isContainer())for(Da=jb.getWidgetCount()-1;0<=Da;Da--)wb.push(jb.getWidget(Da))}};this.searchWidgetByName=function(Qa){var ab=null;q.traversalMeAndDescendents(function(wb){return wb.getName()==Qa?(ab=wb,!0):!1});return ab};this.isDescendentsContain=function(Qa){var ab=!1;q.traversalDescendents(function(wb){return wb==Qa?ab=!0:!1});return ab};var la=function(Qa,ab){q.protectedDoDescendantPropertyChanged(Qa,ab);k.firePropertyChangedEvent(Qa,ab)};this.protectedDoDescendantPropertyChanged=function(Qa,
ab){};var za=function(Qa,ab,wb){V(Qa,ab,wb)};this.protectedMethod.containerToJsonObject=function(Qa){for(var ab=[],wb=0;wb<x.length;wb++){var jb=x[wb].toJsonObject();ab.push(jb)}Qa.widgets=ab};this.protectedMethod.containerFromJsonObject=function(Qa){Qa=Qa.widgets;for(var ab=0;ab<Qa.length;ab++){var wb=Qa[ab],jb=Sc.getInstance(wb.widgetType).createWidgetModel();jb.fromJsonObject(wb);q.addWidget(jb)}};this.protectedMethod.isMySon=function(Qa){for(var ab=0;ab<q.getWidgetCount();ab++)if(q.getWidget(ab)==
Qa)return!0;return!1}}function Mb(){lb.call(this);var q=this;this.getSuperType=function(){return l.WidgetSuperType_CompositeContainer};var k=this.setSize;this.setSize=function(da,la){k(da,la);V()};var x=this.setRectangle;this.setRectangle=function(da,la,za,Qa){x(da,la,za,Qa);V()};var A=this.addWidget;this.addWidget=function(da,la){A(da,la);q.protectedSyncSubRect(da);q.protectedAfterAddWidget(da)};this.protectedAfterAddWidget=function(da){};var P=this.removeWidget;this.removeWidget=function(da){var la=
P(da);q.protectedAfterRemoveWidget(da);return la};this.protectedAfterRemoveWidget=function(da){};var V=function(){for(var da=0;da<q.getWidgetCount();da++){var la=q.getWidget(da);q.protectedSyncSubRect(la)}};this.protectedSyncSubRect=function(da){throw Error("Implement");};this.protectedMethod.syncSubsRect=V}function bc(){var q=this,k=this.protectedMethod,x;this.getSuperType=function(){return l.WidgetSuperType_ContainerWithBackground};this.setBackgroundPicture=function(A){x=A;k.firePropertyChangedEvent(q,
l.KEY_PAGE_BACKGROUND)};this.getBackgroundPicture=function(){return x};this.isWidgetOpacityRequired=function(){return x?!0:!1};k.backgroundToJsonObject=function(A){x&&(A.background=x.toJsonObject())};k.backgroundFromJsonObject=function(A){x=null;if(A=A.background)x=new oa,x.fromJsonObject(A)}}function Qb(){this.getSuperType=function(){return l.WidgetSuperType_CardSurfaceAbout}}function vb(){var q=null,k=null,x=null,A=!1,P=vb.TitlePosition_Auto,V=vb.TitlePosition_Auto,da=null,la=null;this.setTopBarIcon=
function(za){q=za};this.getTopBarIcon=function(){return q};this.getCardTitleHorizontalPosition=function(){return P};this.getCardTitleOffsetX=function(){return da};this.getCardTitleVerticalPosition=function(){return V};this.getCardTitleOffsetY=function(){return la};this.getTopBarIconOffset=function(){return k};this.getTopBarIconSize=function(){return x};this.isTopBarIconWidthAsPercentage=function(){return A};this.setTitleLayout=function(za,Qa,ab,wb,jb,Da,ca){k=za;x=Qa;A=ab;P=wb;V=Da;da=P==vb.TitlePosition_Offset?
jb:null;la=V==vb.TitlePosition_Offset?ca:null};this.toJsonObject=function(){var za={};q&&(za.topBarIcon=q.toJsonObject(),k&&(za.iconOffset=k),x&&(za.iconSize=x),A&&(za.iconWidthAsPercentage=!0));za.titleHorizontalPosition=P;za.titleVerticalPosition=V;za.titleOffsetX=da;za.titleOffsetY=la;return za};this.fromJsonObject=function(za){q=null;var Qa=za.topBarIcon;if(Qa){q=oa.createPeer();q.fromJsonObject(Qa);Qa=za.iconOffset;var ab=za.iconSize;k=Qa?Qa:null;x=ab?ab:null;A=za.iconWidthAsPercentage?!0:!1}Qa=
za.titleHorizontalPosition;ab=za.titleVerticalPosition;P=Qa?Qa:vb.TitlePosition_Auto;V=ab?ab:vb.TitlePosition_Auto;da=P==vb.TitlePosition_Offset?za.titleOffsetX:null;la=V==vb.TitlePosition_Offset?za.titleOffsetY:null}}function Cb(){Qb.call(this);var q=this,k=this.protectedMethod,x=Cb.Surface_Unified,A=null,P=null,V,da=null,la=null,za=null,Qa,ab=null;this.getSuperType=function(){return l.WidgetSuperType_CardSimilary};this.isBareSurface=function(){return x==Cb.Surface_Bare?!0:q.isBareSurfacePassively()};
this.isBareSurfacePassively=function(){for(var wb=q.getParent();wb&&wb.getWidgetTypeName()!=l.WidgetType_Page;){if(wb.isInstanceOf(l.WidgetSuperType_CardSimilary))return!0;wb=wb.getParent()}return!1};this.getUsableCardBorder=function(){var wb=x==Cb.Surface_Custom?A:null;return wb?wb:q.getTopPage().getCardBorder()};this.getUsableCardTopBarCommon=function(){return ab?ab:q.getTopPage().getCardTopBarCommon()};this.getUsableCardTopBarIcon=function(){var wb=q.getUsableCardTopBarCommon();return wb?wb.getTopBarIcon():
null};this.getActiveBackgroundColor=function(){return x==Cb.Surface_Custom?q.getUsableCardBorder().getType()==ha.TYPE_IMAGE?null:P:null};this.setCardSurfaceMode=function(wb){x=wb;k.firePropertyChangedEvent(q,l.KEY_CARD_SURFACE)};this.getCardSurfaceMode=function(){return x};this.setCardBorder=function(wb){A&&A.hookPropertyChangedListener(null);(A=wb)&&A.hookPropertyChangedListener(function(){k.firePropertyChangedEvent(q,l.KEY_CARD_SURFACE)});k.firePropertyChangedEvent(q,l.KEY_CARD_SURFACE)};this.getCardBorder=
function(){return A};this.setBackgroundColor=function(wb){P=wb;k.firePropertyChangedEvent(q,l.KEY_CARD_SURFACE)};this.getBackgroundColor=function(){return P};this.setCardTitle=function(wb){V=wb;k.firePropertyChangedEvent(q,l.KEY_CARD_TITLE)};this.getCardTitle=function(){return V};this.getTitleFontName=function(){return da};this.getTitleFontSize=function(){return la};this.getTitleColor=function(){return za};this.setTitleStyle=function(wb,jb,Da){da=wb;la=jb;za=Da;k.firePropertyChangedEvent(q,l.KEY_CARD_TITLE)};
this.setCardDescription=function(wb){Qa=wb;k.firePropertyChangedEvent(q,l.KEY_CARD_TITLE)};this.getCardDescription=function(){return Qa};this.setCardTopBarCommon=function(wb){ab=wb;k.firePropertyChangedEvent(q,l.KEY_CARD_TITLE)};this.getCardTopBarCommon=function(){return ab};this.getPaddingLeft=function(){return q.isBareSurface()?0:20};this.getPaddingRight=function(){return q.isBareSurface()?0:20};this.getPaddingTop=function(){return q.isBareSurface()?16:V||q.getUsableCardTopBarIcon()?40:20};this.getPaddingBottom=
function(){return q.isBareSurface()?0:10};this.protectedMethod.cardSimilaryToJsonObject=function(wb){x!=Cb.Surface_Unified&&(wb.cardSurfaceMode=x==Cb.Surface_Bare?"bare":x==Cb.Surface_Custom?"custom":null,x==Cb.Surface_Custom&&(P&&(wb.backgroundColor=P),A&&(wb.cardBorder=A.toJsonObject())));q.isBareSurface()||(V&&(wb.cardTitle=V,wb.titleFontName=da,wb.titleFontSize=la,wb.titleColor=za),ab&&(wb.topBar=ab.toJsonObject()));Qa&&(wb.cardDescription=Qa)};this.protectedMethod.cardSimilaryFromJsonObject=
function(wb){var jb=wb.cardSurfaceMode;x="bare"==jb?Cb.Surface_Bare:"custom"==jb?Cb.Surface_Custom:Cb.Surface_Unified;P=(jb=wb.backgroundColor)?jb:null;jb=null;var Da=wb.cardBorder;Da&&(jb=ha.createInstance(Da.type),jb.fromJsonObject(Da));q.setCardBorder(jb);V=wb.cardTitle;jb=wb.titleFontName;Da=wb.titleFontSize;var ca=wb.titleColor;da=jb?jb:null;la=Da?Da:null;za=ca?ca:null;ab=null;if(jb=wb.topBar)ab=new vb,ab.fromJsonObject(jb);Qa=wb.cardDescription}}function wa(){var q=this,k=this.protectedMethod,
x;this.getSuperType=function(){return l.WidgetSuperType_FilterSimilary};this.getSourceDataType=function(){throw Error("Override");};var A=function(P){x=P&&P.getItemCount()?P:null};this.setAffectedTargets=function(P){A(P);k.firePropertyChangedEvent(q,l.KEY_AFFECTED_TARGETS)};this.getAffectedTargets=function(){return x};this.checkCircularAffection=function(P){P=P?P:q.getAffectedTargets();if(!P)return null;for(var V=[q,[q.getDisplayName()]],da=[V],la={};0<da.length;){V=da.shift();var za=V[0];V=V[1];
if(la[za.getName()]){if(za==q)return V.join(" -> ")}else if(la[za.getName()]=!0,za=za==q?P:za.isInstanceOf(l.WidgetSuperType_FilterSimilary)?za.getAffectedTargets():null)for(var Qa=0,ab=za.getItemCount();Qa<ab;Qa++){var wb=null,jb=za.getItem(Qa);jb.isAffectingInsideDashboard()&&q.getTopPage().traversalMeAndDescendents(function(ca){return ca.getName()==jb.getTargetWidgetName()?(wb=ca,!0):!1});if(wb){var Da=V.slice(0);Da.push(wb.getDisplayName());da.push([wb,Da])}}}return null};this.protectedMethod.innerSetAffectedTargets=
A;this.protectedMethod.filterSimilaryToJsonObject=function(P){if(x){var V={};x.toJsonObject(V);P.affectedTargets=V}};this.protectedMethod.filterSimilaryFromJsonObject=function(P){if(P=P.affectedTargets)x=new kc,x.fromJsonObject(P)}}function gb(){var q=this,k=this.protectedMethod,x=0;this.setFontSizeEnhanced=function(A){x=A;k.firePropertyChangedEvent(q,l.KEY_FONT_SIZE_ENHANCED)};this.getFontSizeEnhanced=function(){return x};this.protectedMethod.fontSizeEnhancedToJsonObject=function(A){x&&(A.fontSizeEnhanced=
x)};this.protectedMethod.fontSizeEnhancedFromJsonObject=function(A){x=(A=A.fontSizeEnhanced)?A:0}}function sb(){gb.call(this);var q=this,k=this.protectedMethod,x,A,P;this.getSuperType=function(){return l.WidgetSuperType_WithLabel};this.setFrontLabel=function(V){x=V;k.firePropertyChangedEvent(q,l.KEY_FILTER_FRONT_LABEL)};this.getFrontLabel=function(){return x};this.setFrontLabelPosition=function(V){A=V;k.firePropertyChangedEvent(q,l.KEY_FILTER_FRONT_LABEL_POSITION)};this.getFrontLabelPosition=function(){return A};
this.setFrontLabelLength=function(V){P=V;k.firePropertyChangedEvent(q,l.KEY_FILTER_FRONT_LABEL_LENGTH)};this.getFrontLabelLength=function(){return P};this.protectedMethod.inputCtrlWithLabelToJsonObject=function(V){var da={};V.withLabel=da;x&&(da.frontLabel=x);P&&(da.frontLabelLength=P);A&&(da.frontLabelPosition=A);k.fontSizeEnhancedToJsonObject(da)};this.protectedMethod.inputCtrlWithLabelFromJsonObject=function(V){V=V.withLabel;var da=V.frontLabel;da&&(x=da);(da=V.frontLabelLength)&&(P=da);(da=V.frontLabelPosition)&&
(A=da);k.fontSizeEnhancedFromJsonObject(V)}}function Gb(){var q=this,k=this.protectedMethod,x,A=!0,P=new Kb,V=!1;this.getSuperType=function(){return l.WidgetSuperType_DiscreteItemFilter};this.setFilterSource=function(da){x=da;k.firePropertyChangedEvent(q,l.KEY_FILTER_SOURCE)};this.getFilterSource=function(){return x};this.isIncludeItemAllSupported=function(){return!1};this.setIncludedItemAll=function(da){A=da;k.firePropertyChangedEvent(q,l.KEY_DISCRETE_INCLUDED_ITEMALL)};this.isIncludedItemAll=function(){return A};
this.getOriginatedExecutingTag=function(){if(x&&x.getType()==qa.TYPE_VisualWidget){var da=q.getTopPage().searchWidgetByName(x.getSourceWidgetName());return da?da.getOriginatedExecutingTag():null}return null};this.isLightWeight=function(){return!0};this.setDefaultSelected=function(da){P=da;k.firePropertyChangedEvent(q,l.KEY_FILTER_DEFAULT_SELECTED)};this.getDefaultSelected=function(){return P};this.setMultiSelectable=function(da){V=da;k.firePropertyChangedEvent(q,l.KEY_DISCRETE_MULTISELECTABLE)};this.isMultiSelectable=
function(){return V};this.protectedMethod.discreteItemFilterToJsonObject=function(da){if(x){var la={};x.toJsonObject(la);da.filterSource=la}da.includedItemAll=A;P&&(la={},P.toJsonObject(la),da.defaultSelected=la);da.multiSelectable=V};this.protectedMethod.discreteItemFromJsonObject=function(da){var la=da.filterSource;if(la){var za=la.type;x=qa.createInstance(za);x.fromJsonObject(la)}A=da.includedItemAll?!0:!1;if(la=da.defaultSelected)za=la.type,P=ib.createInstance(za),P.fromJsonObject(la);V=da.multiSelectable}}
function Ob(){var q=this,k;this.getSuperType=function(){return l.WidgetSuperType_AffectedTarget};this.getExecutingInputParams=function(x){!k&&x&&(k=new Ic);return k};this.getAffectedParamType=function(){throw Error("Override");};this.isTheAffectedTargetOfAnother=function(){var x=!1;q.getTopPage().traversalDescendents(function(A){return A!=q&&A.isInstanceOf(l.WidgetSuperType_FilterSimilary)&&(A=A.getAffectedTargets())&&(A=A.getTarget(q.getName()))&&A.isSettingComplete()?x=!0:!1});return x}}function Vb(){var q=
this,k=this.protectedMethod,x;this.getSuperType=function(){return l.WidgetSuperType_Referable};this.setReferenceCustomMap=function(A){x=A;k.firePropertyChangedEvent(q,l.KEY_REF)};this.getReferenceCustomMap=function(){return x};this.copyReference=function(A){throw Error("Implement");};this.protectedMethod.referableToJsonObject=function(A){A.ref=x};this.protectedMethod.referableFromJsonObject=function(A){x=A.ref}}function Wb(){var q=this,k=this.protectedMethod,x;this.setRefreshTiming=function(A){x=
A;k.firePropertyChangedEvent(q,l.KEY_REFRESH_TIMING)};this.getRefreshTiming=function(){return x};this.protectedMethod.autoRefreshableToJsonObject=function(A){0<x&&(A.refreshTiming=x)};this.protectedMethod.autoRefreshableFromJsonObject=function(A){A=A.refreshTiming;x=0<A?A:-1}}function Rb(){var q=this;this.getSuperType=function(){return l.WidgetSuperType_FullscreenSupported};this.isAncestorForbidFullscreen=function(){for(var k=q.getParent();k;){if(k instanceof p&&k.getFullscreenAllowed()==p.FULLSCREEN_ALLOWED_ALONE)return!0;
k=k.getParent()}return!1}}function Tb(){var q=this,k=this.protectedMethod,x,A;this.getSuperType=function(){return l.WidgetSuperType_WithCommonStyle};this.setStyle=function(P){A=P;k.firePropertyChangedEvent(q,l.KEY_STYLE)};this.getStyle=function(){A||(A=new Ua,A.setFontSize(14),A.setAlign("center"),A.setColor(null));return A};this.distributeStyle=function(P){A=P(x)};this.collectStyleAndAllocateId=function(P){x=P(A)};k.styleToJsonObject=function(P){P.styleId=x};k.styleFromJsonObject=function(P){x=P.styleId}}
function Na(){lb.call(this);bc.call(this);var q=this,k=this.protectedMethod,x=l.ExhibitionMode_Full,A=l.Skin_White,P,V=ha.createInstance(ha.TYPE_SIMPLE),da=null,la,za=l.MobileLayoutConverter_ByPosition,Qa=!1;this.getSuperType=function(){return l.WidgetSuperType_ContainerWithBackground};this.getWidgetTypeName=function(){return l.WidgetType_Page};this.isVisible=function(){return!0};this.setVisible=function(){throw Error("Unsupported");};this.getX=function(){throw Error("Unsupported");};this.getY=function(){throw Error("Unsupported");
};var ab=this.setSize;this.setSize=function(ca,N){ab(ca,N);wb()};this.setRectangle=function(ca,N,ea,ma){q.setSize(ea,ma);k.firePropertyChangedEvent(q,l.KEY_PAGE_SIZE)};var wb=function(){if(0<q.getWidgetCount()){var ca=q.getWidget(0);if(ca instanceof Eb){var N=q.getWidth();ca.setRectangle(0,0,N,ca.getHeight())}}},jb=this.addWidget;this.addWidget=function(ca,N){jb(ca,N);ca instanceof Eb&&wb()};this.isCanContain=function(ca,N){if(ca instanceof Eb){ca=0;for(var ea=q.getWidgetCount();ca<ea;ca++)if(q.getWidget(ca)instanceof
Eb)return N&&N.push(cc.get("widgetPageCanContainPrompt","\u9875\u9762\u4e2d\u5df2\u5b58\u5728\u6807\u9898\u680f\u3002")),!1}return!0};this.isMobileDesired=function(){var ca=500>=q.getWidth(),N=1.5<=q.getHeight()/q.getWidth();return ca&&N};this.setExhibitionMode=function(ca){x=ca;k.firePropertyChangedEvent(q,l.KEY_PAGE_EXHIBITION_MODE)};this.getExhibitionMode=function(){return x};this.setSkin=function(ca,N){A=ca;P=N;k.firePropertyChangedEvent(q,l.KEY_PAGE_SKIN)};this.getSkin=function(){return A};this.setJsonCustomCosmetic=
function(ca){P=new Xa;P.fromJsonObject(ca)};this.getJsonCustomCosmetic=function(){return P?P.toJsonObject():null};this.getCustomCosmetic=function(){return P};this.setCardBorder=function(ca){V&&V.hookPropertyChangedListener(null);V=ca;V.hookPropertyChangedListener(function(){k.firePropertyChangedEvent(q,l.KEY_PAGE_UNIFIED_CARD)});k.firePropertyChangedEvent(q,l.KEY_PAGE_UNIFIED_CARD)};this.getCardBorder=function(){return V};this.setCardTopBarCommon=function(ca){da=ca;k.firePropertyChangedEvent(q,l.KEY_PAGE_UNIFIED_CARD)};
this.getCardTopBarCommon=function(){return da};this.setWatermark=function(ca){la=ca;k.firePropertyChangedEvent(q,l.KEY_PAGE_WATERMARK)};this.getWatermark=function(){return la};var Da=this.isWidgetOpacityRequired;this.isWidgetOpacityRequired=function(){return Da()||(la?!0:!1)};this.setMobileLayoutConverter=function(ca){za=ca;k.firePropertyChangedEvent(q,l.KEY_PAGE_MOBILE_LAYOUT_CONVERTER)};this.getMobileLayoutConverter=function(){return za};this.setMobileSkinActive=function(ca){Qa=ca;k.firePropertyChangedEvent(q,
l.KEY_PAGE_MOBILE_SKIN_ACTIVE)};this.isMobileSkinActive=function(){return Qa};this.protectedToJsonObject=function(ca){k.containerToJsonObject(ca);k.backgroundToJsonObject(ca);ca.exhibitionMode=x;ca.skin=A;ca.cardBorder=V.toJsonObject();da&&(ca.cardTopBarCommon=da.toJsonObject());ca.watermark=la;ca.mobileLayoutConverter=za;Qa&&(ca.mobileSkinActive=!0)};this.protectedFromJsonObject=function(ca){k.containerFromJsonObject(ca);k.backgroundFromJsonObject(ca);var N=ca.exhibitionMode;x=N?N:l.ExhibitionMode_Idle;
A=(N=ca.skin)?N:l.Skin_White;N=ca.cardBorder;var ea=ha.createInstance(N.type);ea.fromJsonObject(N);q.setCardBorder(ea);da=null;if(N=ca.cardTopBarCommon)da=new vb,da.fromJsonObject(N);la=ca.watermark;za=(N=ca.mobileLayoutConverter)?N:l.MobileLayoutConverter_ByPosition;Qa=ca.mobileSkinActive?!0:!1}}function Eb(){function q(){var V=null,da=0,la=null;this.setBackgroundColor=function(za){V=za};this.getBackgroundColor=function(){return V};this.setSeparaterLineWidth=function(za){da=za};this.getSeparaterLineWidth=
function(){return da};this.setSeparaterColor=function(za){la=za};this.getSepataterColor=function(){return la};this.toJsonObject=function(){var za={};za.backgroundColor=V;za.separaterLineWidth=da;za.separaterColor=la;return za};this.fromJsonObject=function(za){V=za.backgroundColor;var Qa=za.separaterLineWidth;da=Qa?Qa:0;la=za.separaterColor}}lb.call(this);bc.call(this);var k=this,x=this.protectedMethod,A=!1,P=null;this.getSuperType=function(){return l.WidgetSuperType_ContainerWithBackground};this.getWidgetTypeName=
function(){return l.WidgetType_PageTitleBar};this.isMovable=function(){return!1};this.isCanBeContained=function(V,da){if(V instanceof Na)return!0;da&&da.push(cc.get("widgetPageTitleBarCanBeContainedPrompt","\u9875\u9762\u6807\u9898\u680f\u53ea\u80fd\u51fa\u73b0\u5728\u9875\u9762\u4e2d\u3002"));return!1};this.setWidthLocked=function(V){};this.isEldestSon=function(){return!0};this.getClientHeight=function(){return k.getHeight()-(P?P.getSeparaterLineWidth():0)};this.setFrozen=function(V){A=V;x.firePropertyChangedEvent(k,
Eb.KEY_FROZEN)};this.isFrozen=function(){return A};this.setSurfaceModel=function(V){P=V;x.firePropertyChangedEvent(k,Eb.KEY_SURFACE)};this.getSurfaceModel=function(){return P};this.createSurfaceModel=function(){return new q};this.protectedToJsonObject=function(V){x.containerToJsonObject(V);x.backgroundToJsonObject(V);V.frozen=A;if(P){var da=P.toJsonObject();V.surface=da}};this.protectedFromJsonObject=function(V){x.containerFromJsonObject(V);x.backgroundFromJsonObject(V);A=V.frozen?!0:!1;P=null;if(V=
V.surface)P=new q,P.fromJsonObject(V)}}function Ja(){var q=this,k,x;this.getSuperType=function(){return l.WidgetSuperType_BuiltinVisual};this.setExecutingTag=function(A){k=A};this.getExecutingTag=function(){return k};this.deliveryTemporary=function(A,P,V){x=[A,P,V]};this.pickupTmpJsonModelBook=function(){var A=x;x=null;return A};this.getAffectedParamType=function(){return l.AffectedType_BindField|l.AffectedType_Param};this.getOriginatedExecutingTag=function(){return q.getExecutingTag()}}function fb(){function q(A,
P,V,da,la){this.getQingModelIndex=function(){return A};this.getQingModel=function(){return P};this.getQingModelPreferences=function(){return V};this.getName=function(){return da};this.getDescription=function(){return la}}var k=null,x=null;this.getSuperType=function(){return l.WidgetSuperType_OutputParamProvider};this.clearAllParamInfo=function(){k=[];x=[]};this.appendOutputParamInfo=function(A,P,V,da,la){k.push(new q(A,P,V,da,la))};this.getOutputParamsInfo=function(){return k};this.appendWarningRuleInfo=
function(A,P,V,da,la){x.push(new q(A,P,V,da,la))};this.getWarningRulesInfo=function(){return x}}function ub(){fc.call(this);Ob.call(this);Wb.call(this);var q=this,k=this.protectedMethod,x,A;this.getSuperType=function(){return l.WidgetSuperType_AffectedTarget};this.getWidgetTypeName=function(){return l.WidgetType_ExtReport};this.getDashboardSkinName=function(){return q.getTopPage().getSkin()};this.setTitle=function(P){x=P;k.firePropertyChangedEvent(q,ub.KEY_TITLE)};this.getTitle=function(){return x};
this.setEncodedModel=function(P){A=P;k.firePropertyChangedEvent(q,ub.KEY_MODEL)};this.getEncodedModel=function(){return A};this.getExecutableAffectedParams=function(){var P=q.getExecutingInputParams();return P?P.createExternalParamsApi().toJsonObject():{}};this.getAffectedParamType=function(){return l.AffectedType_Param};this.protectedToJsonObject=function(P){P.title=x;P.encodedModel=A;k.autoRefreshableToJsonObject(P)};this.protectedFromJsonObject=function(P){x=P.title;A=P.encodedModel;k.autoRefreshableFromJsonObject(P)}}
function zb(){fc.call(this);var q=this,k=this.protectedMethod,x;this.getWidgetTypeName=function(){return l.WidgetType_CosmicCustomCard};this.setEncodedModel=function(A){x=A;k.firePropertyChangedEvent(q,zb.KEY_MODEL)};this.getEncodedModel=function(){return x};this.protectedToJsonObject=function(A){A.encodedModel=x};this.protectedFromJsonObject=function(A){x=A.encodedModel}}function hc(){Ob.call(this);wa.call(this);var q=this.protectedMethod,k;this.getSuperType=function(){return l.WidgetSuperType_Text};
this.getAffectedParamType=function(){return l.AffectedType_Param};this.getSourceDataType=function(){return xc.DT_STRING};this.setAffectedTargets=function(x){q.innerSetAffectedTargets(x)};this.getPredefinedTextFragments=function(){return k};q.innerSetPredefinedTextFragments=function(x){k=x};q.textToJsonObject=function(x){if(k){var A={};k.toJsonObject(A);x.predefined=A}};q.textFromJsonObject=function(x){k=null;if(x=x.predefined)k=new Ca,k.fromJsonObject(x)}}function Pb(){fc.call(this);hc.call(this);
Tb.call(this);var q=this,k=this.protectedMethod,x,A=0,P=!1;this.getSuperType=function(){return l.WidgetSuperType_Text|l.WidgetSuperType_AffectedTarget|l.WidgetSuperType_FilterSimilary|l.WidgetSuperType_WithCommonStyle};this.getWidgetTypeName=function(){return l.WidgetType_Label};this.setContent=function(V,da){k.innerSetPredefinedTextFragments(V);x=da;k.firePropertyChangedEvent(q,Pb.KEY_CONTENT)};this.getContent=function(){return x};this.setWalkingSpeed=function(V){A=V;k.firePropertyChangedEvent(q,
Pb.KEY_WALKING)};this.getWalkingSpeed=function(){return A};this.setRuntimeWalkable=function(V){P=V};this.isRuntimeWalkable=function(){return P};this.isHeightLocked=function(){return!0};this.protectedToJsonObject=function(V){k.styleToJsonObject(V);k.textToJsonObject(V);V.text=x;A&&(V.walking=A)};this.protectedFromJsonObject=function(V){k.styleFromJsonObject(V);k.textFromJsonObject(V);x=V.text;A=(V=V.walking)?V:0}}function Ha(){fc.call(this);hc.call(this);var q=this,k=this.protectedMethod,x;this.getSuperType=
function(){return l.WidgetSuperType_Text|l.WidgetSuperType_AffectedTarget|l.WidgetSuperType_FilterSimilary};this.getWidgetTypeName=function(){return l.WidgetType_Rich};this.setContent=function(A,P){k.innerSetPredefinedTextFragments(A);x=P;k.firePropertyChangedEvent(q,Ha.KEY_CONTENT)};this.getContent=function(){return x};this.protectedToJsonObject=function(A){for(var P=[],V=0;V<x.getParagraphCount();V++){for(var da=x.getParagraph(V),la=[],za=0;za<da.getContentCount();za++){var Qa=da.getContent(za),
ab={};ab.text=Qa.getText();ab.fontName=Qa.getFontName();ab.fontSize=Qa.getFontSize();Qa.isBold()&&(ab.bold=!0);Qa.isItalic()&&(ab.italic=!0);Qa.getColor()&&(ab.color=Qa.getColor());la.push(ab)}za={};za.contents=la;za.lineHeight=parseInt(100*da.getLineHeight()+.5);0!=da.getIndent()&&(za.indent=parseInt(100*da.getIndent()+.5));0!=da.getMarginBefore()&&(za.marginBefore=da.getMarginBefore());0!=da.getMarginAfter()&&(za.marginAfter=da.getMarginAfter());"left"!=da.getAlign()&&(za.align=da.getAlign());P.push(za)}V=
{};V.paragraphs=P;A.model=V;k.textToJsonObject(A)};this.protectedFromJsonObject=function(A){x=new Ec;for(var P=A.model.paragraphs,V=0;V<P.length;V++){var da=P[V],la=da.align,za=da.indent,Qa=da.lineHeight,ab=da.marginBefore,wb=da.marginAfter,jb=Ec.createParagraph();jb.setAlign(la?la:"left");jb.setIndent(za?.01*za:0);jb.setLineHeight(Qa?.01*Qa:1);jb.setMarginBefore(ab?ab:0);jb.setMarginAfter(wb?wb:0);da=da.contents;for(la=0;la<da.length;la++)za=da[la],Qa=Ec.createContent(),Qa.setText(za.text),Qa.setFontName(za.fontName),
Qa.setFontSize(za.fontSize),Qa.setBold(za.bold?!0:!1),Qa.setItalic(za.italic?!0:!1),Qa.setColor(za.color),jb.addContent(Qa);x.addParagraph(jb)}k.textFromJsonObject(A)}}function oa(){fc.call(this);Vb.call(this);var q=this,k=this.protectedMethod,x=oa.SCALE_ADAPTIVE,A=oa.HALIGN_CENTER|oa.VALIGN_MIDDLE;this.getSuperType=function(){return l.WidgetSuperType_Referable};this.getWidgetTypeName=function(){return l.WidgetType_Picture};this.copyReference=function(P){Lc.getWidgetSourceSelector().copyPicture(q.getReferenceCustomMap(),
function(V){q.setReferenceCustomMap(V);P()})};this.setScale=function(P){x=P;k.firePropertyChangedEvent(q,oa.KEY_SCALE)};this.getScale=function(){return x};this.isAlignNeccessary=function(){return x==oa.SCALE_NON||x==oa.SCALE_ADAPTIVE};this.setAlign=function(P){A=P;k.firePropertyChangedEvent(q,oa.KEY_ALIGN)};this.getAlign=function(){return A};this.isAlignTo=function(P){return(A&P)==P};this.isWidthLocked=function(){return x==oa.SCALE_NON};this.isHeightLocked=function(){return x==oa.SCALE_NON};this.protectedToJsonObject=
function(P){k.referableToJsonObject(P);P.scale=x;P.horizontalAlign=q.isAlignTo(oa.HALIGN_LEFT)?"left":q.isAlignTo(oa.HALIGN_RIGHT)?"right":q.isAlignTo(oa.HALIGN_CENTER)?"center":null;P.verticalAlign=q.isAlignTo(oa.VALIGN_TOP)?"top":q.isAlignTo(oa.VALIGN_BOTTOM)?"bottom":q.isAlignTo(oa.VALIGN_MIDDLE)?"middle":null};this.protectedFromJsonObject=function(P){k.referableFromJsonObject(P);x=P.scale;var V=P.horizontalAlign;P=P.verticalAlign;A=("left"==V?oa.HALIGN_LEFT:"right"==V?oa.HALIGN_RIGHT:"center"==
V?oa.HALIGN_CENTER:0)+("top"==P?oa.VALIGN_TOP:"bottom"==P?oa.VALIGN_BOTTOM:"middle"==P?oa.VALIGN_MIDDLE:0)}}function kb(){fc.call(this);Ob.call(this);var q=this,k=this.protectedMethod,x;this.getWidgetTypeName=function(){return l.WidgetType_Iframe};this.setUrl=function(A){x=A;k.firePropertyChangedEvent(q,kb.KEY_URL)};this.getUrl=function(){return x};this.getUsableUrl=function(){var A=x,P=q.getExecutingInputParams();P&&(P=P.createExternalParamsApi().toUrlParams())&&(A+=(0>A.indexOf("?")?"?":"&")+P);
return A};this.getAffectedParamType=function(){return l.AffectedType_Param};this.protectedToJsonObject=function(A){A.url=x};this.protectedFromJsonObject=function(A){x=A.url}}function ob(){fc.call(this);Tb.call(this);var q=this,k=this.protectedMethod,x;this.getSuperType=function(){return l.WidgetSuperType_WithCommonStyle};this.getWidgetTypeName=function(){return l.WidgetType_Clock};this.setFormatString=function(A){x="yyyy.MM.dd HH:mm:ss"==A?null:A;k.firePropertyChangedEvent(q,ob.KEY_FORMAT)};this.getFormatString=
function(){return x?x:"yyyy.MM.dd HH:mm:ss"};this.isHeightLocked=function(){return!0};this.protectedToJsonObject=function(A){k.styleToJsonObject(A);A.formatString=x};this.protectedFromJsonObject=function(A){k.styleFromJsonObject(A);x=A.formatString}}function Ia(){fc.call(this);Gb.call(this);wa.call(this);Ob.call(this);var q=this,k=this.protectedMethod,x=Ia.LAYOUT_MODE_HORIZONTAL,A=4,P=2,V=Ia.SIZE_MODE_LARGE;this.getSuperType=function(){return l.WidgetSuperType_DiscreteItemFilter|l.WidgetSuperType_FilterSimilary|
l.WidgetSuperType_AffectedTarget};this.getWidgetTypeName=function(){return l.WidgetType_ButtonGroup};this.isHeightLockedAlways=function(da){return x==Ia.LAYOUT_MODE_HORIZONTAL};this.getSourceDataType=function(){return xc.DT_STRING};this.getAffectedParamType=function(){return l.AffectedType_BindField};this.isIncludeItemAllSupported=function(){return!0};this.isMultiSelectable=function(){return!1};this.setLayoutMode=function(da){x=da;k.firePropertyChangedEvent(q,Ia.KEY_LAYOUT_MODE)};this.getLayoutMode=
function(){return x};this.setCharsPerItemWhenWrap=function(da){A=da;k.firePropertyChangedEvent(q,Ia.KEY_CHARS_PER_ITEM)};this.getCharsPerItemWhenWrap=function(){return A};this.setItemsPerRowWhenWrap=function(da){P=da;k.firePropertyChangedEvent(q,Ia.KEY_ITEMS_PER_ROW)};this.getItemsPerRowWhenWrap=function(){return P};this.setSizeMode=function(da){V=da;k.firePropertyChangedEvent(q,Ia.KEY_SIZE_MODE)};this.getSizeMode=function(){return V};this.protectedToJsonObject=function(da){da.layoutMode=x;da.minCharsPerItem=
A;da.maxItemsPerRow=P;da.sizeMode=V;k.discreteItemFilterToJsonObject(da);k.filterSimilaryToJsonObject(da)};this.protectedFromJsonObject=function(da){var la=da.layoutMode;x=la?la:Ia.LAYOUT_MODE_HORIZONTAL;A=(la=da.minCharsPerItem)?la:4;P=(la=da.maxItemsPerRow)?la:2;V=(la=da.sizeMode)?la:Ia.SIZE_MODE_SMALL;k.discreteItemFromJsonObject(da);k.filterSimilaryFromJsonObject(da)}}function cb(){fc.call(this);wa.call(this);sb.call(this);var q=this,k=this.protectedMethod,x=!1,A,P,V;this.getSuperType=function(){return l.WidgetSuperType_Calendar|
l.WidgetSuperType_FilterSimilary|l.WidgetSuperType_WithLabel};this.getSourceDataType=function(){return xc.DT_DATE};this.setInitialValue=function(da,la,za,Qa){A=da;P=la;V=za;x=Qa;k.firePropertyChangedEvent(q,cb.KEY_DATE_INITIAL)};this.isContainNull=function(){return x};this.getFromDate=function(){return A};this.getToDate=function(){return P};this.updateDate=function(da,la){A=da;P=la};this.getRelativeModel=function(){return V};this.protectedToJsonObject=function(da){da.containNull=x;da.dateFrom=A;da.dateTo=
P;V&&(da.relative=V.toJsonObject());k.filterSimilaryToJsonObject(da);k.inputCtrlWithLabelToJsonObject(da)};this.protectedFromJsonObject=function(da){x=da.containNull?!0:!1;A=da.dateFrom;P=da.dateTo;var la=da.relative;la?(V=q.protectedCreateRelativeModel(),V.fromJsonObject(la)):V=null;k.filterSimilaryFromJsonObject(da);k.inputCtrlWithLabelFromJsonObject(da)};this.protectedCreateRelativeModel=function(){throw Error("Implement");}}function p(){lb.call(this);Cb.call(this);Rb.call(this);var q=this,k=this.protectedMethod,
x=p.FULLSCREEN_ALLOWED_NONE;this.getSuperType=function(){return l.WidgetSuperType_CardSimilary|l.WidgetSuperType_FullscreenSupported};this.getWidgetTypeName=function(){return l.WidgetType_Panel};this.isCanContain=function(A,P){return A instanceof p?(P&&P.push(cc.get("widgetPanelCanContainPrompt","\u4e0d\u5141\u8bb8\u5728\u7ec4\u5408\u5361\u7247\u91cc\u653e\u7f6e\u7ec4\u5408\u5361\u7247\u3002")),!1):!0};this.getPaddingTop=function(){var A=q.isBareSurface(),P=!A&&q.getUsableCardTopBarIcon()?!0:!1,V=
!A&&q.getCardTitle()?!0:!1,da=q.getCardDescription()?!0:!1,la=!(x==p.FULLSCREEN_ALLOWED_NONE||q.isAncestorForbidFullscreen()),za=!A&&q.getUsableCardBorder().getType()==ha.TYPE_SIMPLE;return!A&&(P||V||la)?P||!za?40:30:da?20:10};this.getClientWidth=function(){return Math.max(0,q.getWidth()-q.getPaddingLeft()-q.getPaddingRight())};this.getClientHeight=function(){return Math.max(0,q.getHeight()-q.getPaddingTop()-q.getPaddingBottom())};this.setClientSize=function(A,P){q.setSize(A+q.getPaddingLeft()+q.getPaddingRight(),
P+q.getPaddingTop()+q.getPaddingBottom())};this.setFullscreenAllowed=function(A){x=A;k.firePropertyChangedEvent(q,p.KEY_FULLSCREEN_ALLOWED)};this.getFullscreenAllowed=function(){return x};this.protectedToJsonObject=function(A){x&&(A.fullscreenAllowed=x);k.containerToJsonObject(A);k.cardSimilaryToJsonObject(A)};this.protectedFromJsonObject=function(A){var P=A.fullscreenAllowed;x=P?P:p.FULLSCREEN_ALLOWED_NONE;k.containerFromJsonObject(A);k.cardSimilaryFromJsonObject(A)}}function X(){Mb.call(this);Qb.call(this);
Ob.call(this);gb.call(this);var q=this,k=this.protectedMethod,x=X.HEAD_TOP_LEFT,A=X.HEAD_PATTERN_BAR,P=!1;this.getSuperType=function(){return l.WidgetSuperType_CompositeContainer|l.WidgetSuperType_CardSurfaceAbout|l.WidgetSuperType_AffectedTarget};this.getWidgetTypeName=function(){return l.WidgetType_TabbedContainer};this.isCanContain=function(V,da){if(V instanceof na)return!0;da&&da.push(cc.get("widgetTabbedContainerCanContainPrompt","\u9875\u7b7e\u63a7\u4ef6\u4e0b\u4e00\u7ea7\u53ea\u80fd\u662f\u5b50\u9875\u7b7e\u3002"));
return!1};this.protectedDoDescendantPropertyChanged=function(V,da){if(da==l.KEY_VISIBLE&&V.isVisible()){if(k.isMySon(V)){for(da=0;da<q.getWidgetCount();da++){var la=q.getWidget(da);la!=V&&la.setVisible(!1)}k.firePropertyChangedEvent(q,X.KEY_TABBED_SELECTED)}}else da==na.KEY_HEAD_TEXT&&k.isMySon(V)&&k.firePropertyChangedEvent(q,da)};this.protectedAfterAddWidget=function(V){V.setVisible(!1);V.setVisible(!0)};this.protectedAfterRemoveWidget=function(V){if(0<q.getWidgetCount()){V=q.getWidget(0);for(var da=
0;da<q.getWidgetCount();da++){var la=q.getWidget(da);if(la.isVisible()){V=la;break}}V.setVisible(!1);V.setVisible(!0)}else k.firePropertyChangedEvent(q,X.KEY_TABBED_SELECTED)};this.protectedSyncSubRect=function(V){var da=q.getWidth(),la=q.getHeight(),za=q.getHeadHeight();x==X.HEAD_TOP_LEFT||x==X.HEAD_TOP_RIGHT?V.setRectangle(0,za,da,Math.max(0,la-za)):x==X.HEAD_BOTTOM_LEFT||x==X.HEAD_BOTTOM_RIGHT?V.setRectangle(0,0,da,Math.max(0,la-za)):V.setRectangle(0,0,da,la)};this.getAffectedParamType=function(){return l.AffectedType_Tab};
this.switchToSubTabbed=function(V){V=q.getWidget(V);V.setVisible(!0);k.firePropertyChangedEvent(V,X.KEY_SWITCH_SUB)};this.setHeadPosition=function(V){x=V;k.syncSubsRect();k.firePropertyChangedEvent(q,X.KEY_HEAD_POSITION)};this.getHeadPosition=function(){return x};this.setHeadPattern=function(V){A=V;k.syncSubsRect();k.firePropertyChangedEvent(q,X.KEY_HEAD_PATTERN)};this.getHeadPattern=function(){return A};this.getHeadHeight=function(){switch(A){case X.HEAD_PATTERN_BAR:return 50;case X.HEAD_PATTERN_BARE:return 24;
default:return 0}};this.setSlideshowEnabled=function(V){P=V;k.firePropertyChangedEvent(q,X.KEY_SLIDESHOW)};this.isSlideshowEnabled=function(){return P};this.isTopLevelSlideshow=function(){if(P){for(var V=q;V.getParent();)if(V=V.getParent(),V instanceof X&&V.isSlideshowEnabled())return!1;return!0}return!1};this.isAllDescendentSlideshowRuntimePrepared=function(){var V=!0;q.traversalDescendents(function(da){var la=!1;da instanceof na&&da.getParent().isSlideshowEnabled()&&(V=V&&da.getDurationMode().isReadyToPlay(),
!V&&(la=!0));return la});return V};this.protectedToJsonObject=function(V){V.position=x;V.pattern=A;V.slideshow=P;k.fontSizeEnhancedToJsonObject(V);k.containerToJsonObject(V)};this.protectedFromJsonObject=function(V){x=V.position;A=V.pattern;P=V.slideshow;k.fontSizeEnhancedFromJsonObject(V);k.containerFromJsonObject(V);for(V=0;V<q.getWidgetCount();V++)q.getWidget(V).setVisible(0==V)}}function na(){lb.call(this);bc.call(this);wa.call(this);var q=this,k=this.protectedMethod,x,A=new Ra;this.getSuperType=
function(){return l.WidgetSuperType_FilterSimilary|l.WidgetSuperType_ContainerWithBackground};this.getWidgetTypeName=function(){return l.WidgetType_OneTabbed};this.isMovable=function(){return!1};this.isCanBeContained=function(V,da){if(V instanceof X)return!0;da&&da.push(cc.get("widgetOneTabbedCanBeContainedPrompt","\u9875\u7b7e\u53ea\u80fd\u51fa\u73b0\u5728\u9875\u7b7e\u63a7\u4ef6\u4e2d\u3002"));return!1};this.getSourceDataType=function(){return xc.DT_STRING};this.setAffectedTargets=function(V){throw Error("Unsupported");
};this.getAffectedTargets=function(){var V=null;A.getType()==Ea.TYPE_ByData&&(V=(V=A.getAffectedTargets())&&V.getItemCount()?V:null);return V};this.setHeadText=function(V){x=V;k.firePropertyChangedEvent(q,na.KEY_HEAD_TEXT)};this.getHeadText=function(){return x};this.setDurationMode=function(V){A.removeDirtyListener(P);A=V;A.addDirtyListener(P);k.firePropertyChangedEvent(q,na.KEY_DURATION_MODE)};this.getDurationMode=function(){return A};var P=function(){k.firePropertyChangedEvent(q,na.KEY_DURATION_MODE)};
this.protectedToJsonObject=function(V){k.containerToJsonObject(V);k.backgroundToJsonObject(V);V.headText=x;var da={};A.toJsonObject(da);V.durationMode=da};this.protectedFromJsonObject=function(V){k.containerFromJsonObject(V);k.backgroundFromJsonObject(V);x=V.headText;if(V=V.durationMode){var da=Ea.createInstance(V.type);da.fromJsonObject(V);A.removeDirtyListener(P);A=da;A.addDirtyListener(P)}}}function Ua(){var q=this,k,x,A=!1,P=!1,V,da,la;this.getFontName=function(){return k};this.setFontName=function(za){k=
za};this.getFontSize=function(){return x};this.setFontSize=function(za){x=za};this.isBold=function(){return A};this.setBold=function(za){A=za};this.isItalic=function(){return P};this.setItalic=function(za){P=za};this.getColor=function(){return V};this.setColor=function(za){V=za};this.getBackground=function(){return da};this.setBackground=function(za){da=za};this.getAlign=function(){return la};this.setAlign=function(za){la=za};this.isEquals=function(za){return za&&k==za.getFontName()&&x==za.getFontSize()&&
A==za.isBold()&&P==za.isItalic()&&V==za.getColor()&&da==za.getBackground()&&la==za.getAlign()};this.copy=function(){var za=new Ua;za.setFontName(q.getFontName());za.setFontSize(q.getFontSize());za.setBold(q.isBold());za.setItalic(q.isItalic());za.setColor(q.getColor());za.setBackground(q.getBackground());za.setAlign(q.getAlign());return za};this.toJsonObject=function(){var za={};za.fontName=k;za.fontSize=x;A&&(za.bold=!0);P&&(za.italic=!0);za.color=V;za.background=da;za.align=la;return za};this.fromJsonObject=
function(za){k=za.fontName;x=za.fontSize;A=za.bold?!0:!1;P=za.italic?!0:!1;V=za.color;da=za.background;la=za.align}}function ha(){var q=this,k;this.getType=function(){throw Error("Override");};this.hookPropertyChangedListener=function(x){k=x};this.toJsonObject=function(){var x={};x.type=q.getType();q.protectedToJsonObject(x);return x};this.protectedToJsonObject=function(x){};this.fromJsonObject=function(x){q.protectedFromJsonObject(x)};this.protectedFromJsonObject=function(x){};this.protectedMethod=
{firePropertyChangedEvent:function(){k&&k()}}}function f(){ha.call(this);this.getType=function(){return ha.TYPE_SIMPLE}}function xa(){ha.call(this);var q=this.protectedMethod,k=Pc.create();this.getType=function(){return ha.TYPE_MODEL};this.getCardLook=function(){return k};this.setCardLook=function(x){k=x;q.firePropertyChangedEvent()};this.protectedToJsonObject=function(x){x.cardLook=k.toJsonObject()};this.protectedFromJsonObject=function(x){k.fromJsonObject(x.cardLook)}}function Ba(){ha.call(this);
var q=this.protectedMethod,k,x=[0,0,0,0],A,P;this.getType=function(){return ha.TYPE_IMAGE};this.getImage=function(){return k};this.getFixedEdges=function(){return x};this.setDefinition=function(da,la){P=A=null;k=da;x=la;q.firePropertyChangedEvent()};this.loadImage=function(da){P?P.push(da):A?da(A):k?(!P&&(P=[]),P.push(da),da=k.getReferenceCustomMap(),Lc.getPictureLoader()(da,function(la,za,Qa){var ab=new Image;ab.onload=function(wb){A=ab;V(A)};ab.src=la},function(la){window.console&&window.console.error("Load image error: "+
la);V(null)})):da(null)};var V=function(da){for(var la=0;la<P.length;la++)(0,P[la])(da);P=null};this.protectedToJsonObject=function(da){k&&(da.image=k.toJsonObject(),da.left=x[0],da.right=x[1],da.top=x[2],da.bottom=x[3])};this.protectedFromJsonObject=function(da){k=P=A=null;x=[0,0,0,0];var la=da.image;la&&(k=oa.createPeer(),k.fromJsonObject(la),x[0]=da.left,x[1]=da.right,x[2]=da.top,x[3]=da.bottom)}}function qa(){var q=this;this.getType=function(){throw Error("Override");};this.toShortDisplay=function(k){throw Error("Override");
};this.isValid=function(){throw Error("Override");};this.isConfirmedToGetPreparedValue=function(k){return!0};this.isPreparedValueRelatedToWidget=function(k){return!1};this.getPreparedValue=function(k,x,A,P){throw Error("Override");};this.getPreparedValuePeer=function(k,x,A){throw Error("Override");};this.toJsonObject=function(k){k.type=q.getType();q.protectedToJsonObject(k)};this.fromJsonObject=function(k){q.protectedFromJsonObject(k)};this.protectedToJsonObject=function(k){throw Error("Override");
};this.protectedFromJsonObject=function(k){throw Error("Override");}}function Pa(){qa.call(this);var q=this,k,x,A,P,V=!0;this.getType=function(){return qa.TYPE_VisualWidget};this.setSourceWidgetName=function(la){k=la};this.getSourceWidgetName=function(){return k};this.setMetaFieldFullName=function(la){x=la};this.getMetaFieldFullName=function(){return x};this.setDisplayMetaFieldFullName=function(la){A=la};this.getDisplayMetaFieldFullName=function(){return A};this.setOrderByMetaFieldFullName=function(la){P=
la};this.getOrderByMetaFieldFullName=function(){return P};this.setOrderByAsc=function(la){V=la};this.isOrderByAsc=function(){return V};this.toShortDisplay=function(la){return q.isValid()?(la=la.searchWidgetByName(k))?cc.get("displayFilterSourceFromRef","\u6765\u81ea\u201c#1\u201d").replace("#1",la.getDisplayName()):cc.get("displayFilterSourceNotExist","\u4e0d\u5b58\u5728\u201c#1\u201d").replace("#1",k):cc.get("displayFilterSourceIncomplete","\u8bbe\u7f6e\u4e0d\u5b8c\u6574")};this.isValid=function(){return k&&
x};this.isConfirmedToGetPreparedValue=function(la){return(la=la.getTopPage().searchWidgetByName(k))?la.getExecutingTag()?!0:!1:!1};this.isPreparedValueRelatedToWidget=function(la){return k==la};this.getPreparedValue=function(la,za,Qa,ab){var wb=la.isLightWeight();la=la.getTopPage().searchWidgetByName(k);da(la,za,wb,Qa,ab)};this.getPreparedValuePeer=function(la,za,Qa){la=la.getTopPage().searchWidgetByName(k);da(la,null,!1,za,Qa)};var da=function(la,za,Qa,ab,wb){la?(la=la.getExecutingTag(),ab=ab(function(jb){var Da=
[];jb=jb.values;for(var ca=0;ca<jb.length;ca++){var N=jb[ca],ea=new Za;ea.setValue(N.value);ea.setText(N.text);Da.push(ea)}wb(Da)},function(jb,Da){console&&console.log("errorCode:"+jb+", "+Da);902002==jb?(jb=new Za,jb.setValue(null),jb.setText(cc.get("tooManyItems","\u8d85\u8fc71000\u9879\uff0c\u5efa\u8bae\u4f7f\u7528\u5f39\u7a97\u9009\u62e9\u5668\u4ee3\u66ff\u3002")),wb([jb])):wb(null);return!0}),ab.setShowBlocking(!1),ab.getFilterPreparedValue(la,"Discrete",x,A,P,V,za,Qa)):wb(null)};this.protectedToJsonObject=
function(la){la.sourceWidgetName=k;la.metaFieldFullName=x;la.displayMetaFieldFullName=A;la.orderByMetaFieldFullName=P;la.asc=V};this.protectedFromJsonObject=function(la){k=la.sourceWidgetName;x=la.metaFieldFullName;A=la.displayMetaFieldFullName;P=la.orderByMetaFieldFullName;V=la.asc}}function Oa(){qa.call(this);var q=this,k=[];this.getType=function(){return qa.TYPE_CustomList};this.addItem=function(A,P){k.push(x(A,P))};var x=function(A,P){var V=new Za;V.setValue(A);V.setText(P);return V};this.insertItem=
function(A,P,V){k.splice(A,0,x(P,V))};this.deleteItem=function(A){k.splice(A,1)};this.getItemsCount=function(){return k.length};this.getItemValue=function(A){return(A=k[A])?A.getValue():null};this.getItemText=function(A){return(A=k[A])?A.getText():null};this.toShortDisplay=function(A){return q.isValid()?cc.get("displayFilterSourceFromCustom","\u5171#1\u9879").replace("#1",k.length):cc.get("displayFilterSourceIncomplete","\u8bbe\u7f6e\u4e0d\u5b8c\u6574")};this.isValid=function(){return 0<k.length};
this.getPreparedValue=function(A,P,V,da){A=k.slice(0);da(A)};this.getPreparedValuePeer=function(A,P,V){A=k.slice(0);V(A)};this.protectedToJsonObject=function(A){for(var P=[],V=0;V<k.length;V++){var da=k[V],la={};la.value=da.getValue();la.text=da.getText();P.push(la)}A.items=P};this.protectedFromJsonObject=function(A){A=A.items;for(var P=0;P<A.length;P++){var V=A[P],da=new Za;da.setValue(V.value);da.setText(V.text);k.push(da)}}}function Za(){var q,k;this.setValue=function(x){q=x};this.getValue=function(){return q};
this.setText=function(x){k=x};this.getText=function(){return k};this.getDisplayText=function(){var x=k;void 0!==x&&null!==x||(x=q);return x}}function ib(){var q=this;this.getType=function(){throw Error("Override");};this.toShortDisplay=function(){throw Error("Override");};this.isSingleSelectableFitting=function(){return!1};this.getItems=function(k,x,A){throw Error("Override");};this.toJsonObject=function(k){k.type=q.getType();q.protectedToJsonObject(k)};this.fromJsonObject=function(k){q.protectedFromJsonObject(k)};
this.protectedToJsonObject=function(k){throw Error("Override");};this.protectedFromJsonObject=function(k){throw Error("Override");}}function Kb(){ib.call(this);var q=0;this.getType=function(){return ib.TYPE_ByIndex};this.toShortDisplay=function(){return cc.get("displayDefaultSelectedByIndex","\u7b2c\u4e00\u9879")};this.isSingleSelectableFitting=function(){return!0};this.getItems=function(k,x,A){x=0<=q&&q<k.length?q:0;var P=[];0<k.length&&P.push(k[x]);A(P)};this.protectedToJsonObject=function(k){k.index=
q};this.protectedFromJsonObject=function(k){q=k.index}}function nc(){ib.call(this);var q=null;this.getType=function(){return ib.TYPE_ByAppointed};this.toShortDisplay=function(){if(q){if(1==q.length){var k=q[0];return k?k:cc.get("displayDefaultSelectedByAppointedNull","\uff08\u7a7a\uff09")}return cc.get("displayDefaultSelectedByAppointedSome","\u5df2\u6307\u5b9a#1\u9879").replace("#1",q.length)}return cc.get("displayDefaultSelectedByAppointedAll","\u5168\u90e8")};this.isSingleSelectableFitting=function(){return q&&
1==q.length};this.getItems=function(k,x,A){var P=null;if(q){for(var V={},da=0;da<q.length;da++){var la=q[da];!la&&(la="");V[la]=!0}P=[];for(da=0;da<k.length;da++){var za=k[da];la=za.getValue();!la&&(la="");if(V[la]&&(P.push(za),!x))break}}A(P)};this.setAppointedValue=function(k){q=k};this.protectedToJsonObject=function(k){k.appointeds=q};this.protectedFromJsonObject=function(k){q=(k=k.appointeds)?k:null}}function kc(){var q=[];this.addItem=function(k){q.push(k)};this.getItemCount=function(){return q.length};
this.getItem=function(k){return q[k]};this.getTarget=function(k){for(var x=0;x<q.length;x++){var A=q[x];if(A.isAffectingInsideDashboard()&&k==A.getTargetWidgetName())return A}return null};this.reverse=function(k,x){for(var A=0;A<q.length;A++){var P=q[A];if(P.isAffectingInsideDashboard()&&P.isSettingComplete()){var V=P.getTargetWidgetName(),da=x[V];da||(da=new Jc,x[V]=da);da.put(k,P)}}};this.checkDuplicated=function(){for(var k={},x=0;x<q.length;x++){var A=q[x];if(A.isAffectingInsideDashboard()){A=
A.getTargetWidgetName();if(k[A])return A;k[A]=!0}}return null};this.toJsonObject=function(k){for(var x=[],A=0;A<q.length;A++){var P={},V=q[A];V.toJsonObject(P);switch(V.getType()){case l.AffectedType_BindField:P.type="binding";break;case l.AffectedType_Param:P.type="param";break;case l.AffectedType_Tab:P.type="tab";break;case l.AffectedType_Hotlink:P.type="hotlink";break;default:throw Error("Modify here");}x.push(P)}k.items=x};this.fromJsonObject=function(k){q=[];if(k=k.items)for(var x=0;x<k.length;x++){var A=
k[x];switch(A.type){case "binding":var P=new Dc;break;case "param":P=new ic;break;case "tab":P=new yc;break;case "hotlink":P=new Kc;break;default:throw Error("Modify here");}P.fromJsonObject(A);q.push(P)}}}function rc(){this.getType=function(){throw Error("Implement");};this.isAffectingInsideDashboard=function(){return!1};this.isSettingComplete=function(){throw Error("Implement");};this.toJsonObject=function(q){throw Error("Implement");};this.fromJsonObject=function(q){throw Error("Implement");}}
function uc(){rc.call(this);var q=this,k;this.setTargetWidgetName=function(x){k=x};this.getTargetWidgetName=function(){return k};this.isAffectingInsideDashboard=function(){return!0};this.getUsableParamName=function(){throw Error("Implement");};this.isSettingComplete=function(){return k&&q.protectedIsComplete()};this.protectedIsComplete=function(){throw Error("Implement");};this.toJsonObject=function(x){x.widget=k;q.protectedToJsonObject(x)};this.protectedToJsonObject=function(x){throw Error("Implement");
};this.fromJsonObject=function(x){k=x.widget;q.protectedFromJsonObject(x)};this.protectedFromJsonObject=function(x){throw Error("Implement");}}function Dc(){uc.call(this);var q;this.setMetaFieldFullName=function(k){q=k};this.getMetaFieldFullName=function(){return q};this.getType=function(){return l.AffectedType_BindField};this.protectedIsComplete=function(){return q?!0:!1};this.getUsableParamName=function(){return q};this.protectedToJsonObject=function(k){k.metaField=q};this.protectedFromJsonObject=
function(k){q=k.metaField}}function ic(){uc.call(this);var q;this.setParamName=function(k){q=k};this.getParamName=function(){return q};this.getType=function(){return l.AffectedType_Param};this.protectedIsComplete=function(){return q?!0:!1};this.getUsableParamName=function(){return q};this.protectedToJsonObject=function(k){k.param=q};this.protectedFromJsonObject=function(k){q=k.param}}function yc(){uc.call(this);var q=0;this.setTabIndex=function(k){q=k};this.getTabIndex=function(){return q};this.getType=
function(){return l.AffectedType_Tab};this.protectedIsComplete=function(){return!0};this.getUsableParamName=function(){return"tab"};this.protectedToJsonObject=function(k){k.tabIndex=q};this.protectedFromJsonObject=function(k){q=k.tabIndex}}function Kc(){rc.call(this);var q,k,x;this.setMode=function(A){q=A};this.getMode=function(){return q};this.setUrl=function(A){k=A};this.getUrl=function(){return k};this.setUsableUrl=function(A){x=A};this.getUsableUrl=function(){return x};this.getType=function(){return l.AffectedType_Hotlink};
this.isSettingComplete=function(){return k?!0:!1};this.toJsonObject=function(A){A.mode=q;A.url=k};this.fromJsonObject=function(A){q=A.mode;k=A.url}}function Jc(){var q={};this.put=function(k,x){q[k]=x};this.getAllParamName=function(){var k=[],x;for(x in q)k.push(q[x].getUsableParamName());return k};this.getAllParamAttr=function(){var k=[],x;for(x in q)k.push(q[x].getType()==l.AffectedType_BindField);return k}}function Ic(){var q=[],k=[],x={},A=!1;this.repickParams=function(la){var za=la?la.getAllParamName():
[];A=!1;for(var Qa=0;Qa<q.length;Qa++){for(var ab=q[Qa],wb=!1,jb=0;jb<za.length;jb++)if(ab==za[jb]){wb=!0;break}if(!wb){A=!0;break}}q=za;k=la?la.getAllParamAttr():[];la={};for(za=0;za<q.length;za++)Qa=q[za],ab=x[Qa],void 0!==ab&&(la[Qa]=ab);x=la};this.checkAffectedChainBroken=function(){var la=A;A=!1;return la};this.putParamValue=function(la,za,Qa){if(!Qa||Qa instanceof Array&&0==Qa.length)return za=void 0!==x[la],delete x[la],za;var ab=x[la];ab=ab?JSON.stringify(da(ab.dataType,ab.value)):null;var wb=
JSON.stringify(da(za,Qa)),jb={};jb.dataType=za;jb.value=Qa;x[la]=jb;return ab!=wb};this.isAllParamsAttend=function(){for(var la=0;la<q.length;la++)if(void 0===x[q[la]])return!1;return!0};var P=function(la,za){for(var Qa={},ab=0;ab<q.length;ab++){var wb=q[ab];if(!Qa[wb]){Qa[wb]=!0;var jb=x[wb];if(jb){var Da=jb.value;jb=jb.dataType;if(!za)if(Da instanceof Za&&Da.getValue()==qa.ITEM_ALL)continue;else if(Da instanceof Array&&1==Da.length&&Da[0].getValue()==qa.ITEM_ALL)continue;la(wb,Da,k[ab],jb)}}}},
V=function(la){if(la instanceof Za)var za=[la.getValue()];else if(la instanceof Array){za=[];for(var Qa=0;Qa<la.length;Qa++)za.push(la[Qa].getValue())}else throw Error("Unsupport");return za},da=function(la,za){if(la==xc.DT_STRING)la=V(za);else if(la==xc.DT_DATE)la=[JSON.stringify(za.getJsonDateRange())];else throw Error("Unsupport");return la};this.createParamValueSearcherApi=function(){var la={};P(function(Qa,ab,wb,jb){if(ab instanceof Za)var Da=ab.getText();else if(ab instanceof Array){wb=[];for(jb=
0;jb<ab.length;jb++)wb.push(ab[jb].getText());Da=wb.join(" ")}la[Qa]=Da},!0);var za=!1;P(function(Qa,ab,wb,jb){za=!0});return{searchDisplayText:function(Qa){return la[Qa]},isAnyOneExceptedItemAll:function(){return za}}};this.createAdditionalFilterApi=function(){var la=function(){var ab=null,wb=null;P(function(jb,Da,ca,N){ab||(wb=[],ab={},ab.items=wb);if(ca||N==xc.DT_STRING)Da=da(N,Da),ca=za(ca,N,jb,Da),wb.push(ca);else if(N==xc.DT_DATE)if(kc.isDoubleParamName(jb)){jb=kc.decodeDoubleParamName(jb);
var ea=jb[0];jb=jb[1];if(ea){var ma=[Da.getParamScopeStart()];ea=za(ca,N,ea,ma);wb.push(ea)}jb&&(Da=[Da.getParamScopeEnd()],ca=za(ca,N,jb,Da),wb.push(ca))}else Da=[Da.getParamSingleValue()],ca=za(ca,N,jb,Da),wb.push(ca)});return ab},za=function(ab,wb,jb,Da){var ca={};ca.key=jb;ca.isMetaFieldBound=ab;ca.selectedValue=Da;ca.valueDataType=wb;return ca},Qa={};Qa.toExecutableJsonObject=la;Qa.toMetaFieldNames=function(){var ab=[];P(function(wb,jb,Da,ca){Da&&ab.push(wb)});return ab};Qa.toDisplayJsonObject=
function(){var ab=la();return ab?ab.items:null};return Qa};this.createExternalParamsApi=function(){return{toJsonObject:function(){var la={};P(function(za,Qa,ab,wb){if(!ab)if(wb==xc.DT_STRING)la[za]=V(Qa);else if(wb==xc.DT_DATE)kc.isDoubleParamName(za)?(ab=kc.decodeDoubleParamName(za),za=ab[0],ab=ab[1],za&&(la[za]=[Qa.getParamScopeStart()]),ab&&(la[ab]=[Qa.getParamScopeEnd()])):la[za]=[Qa.getParamSingleValue()];else throw Error("Unsupport");});return la},toUrlParams:function(){var la="";P(function(za,
Qa,ab,wb){if(!ab){if(Qa instanceof Za)Qa=Qa.getValue();else if(Qa instanceof Array&&0<Qa.length)Qa=Qa[0].getValue();else return;0<la.length&&(la+="&");la+=za+"="+encodeURIComponent(Qa)}});return la}}}}function Ca(){var q=[];this.setFragments=function(k){q=k};this.getFragmentCount=function(){return q.length};this.getFragment=function(k){return q[k]};this.toJsonObject=function(k){for(var x=[],A=0;A<q.length;A++){var P={};q[A].toJsonObject(P);x.push(P)}k.fragments=x};this.fromJsonObject=function(k){q=
[];k=k.fragments;for(var x=0;x<k.length;x++){var A=k[x],P=new Ca.Fragment;P.fromJsonObject(A);q.push(P)}}}function Ea(){var q=this,k=new Ab;this.getType=function(){throw Error("Implement");};this.isReadyToPlay=function(){return!0};this.playStart=function(x,A){throw Error("Implement");};this.playStop=function(){throw Error("Implement");};this.getPlayingData=function(){return null};this.resetPlayingStatus=function(){};this.addDirtyListener=function(x){k.addListener(x)};this.removeDirtyListener=function(x){k.removeListener(x)};
this.toJsonObject=function(x){x.type=q.getType();q.protectedToJsonObject(x)};this.protectedToJsonObject=function(x){throw Error("Implement");};this.fromJsonObject=function(x){q.protectedFromJsonObject(x)};this.protectedFromJsonObject=function(x){throw Error("Implement");};this.protectedMethod={fireDirtyEvent:function(){k.fireEvent(function(x){x()})}}}function Ra(){Ea.call(this);var q=this.protectedMethod,k=10,x;this.getType=function(){return Ea.TYPE_ByFixedTime};this.playStart=function(A,P){A()||
(x=setTimeout(function(){P(!0)},1E3*k));return!1};this.playStop=function(){x&&clearTimeout(x)};this.getDuration=function(){return k};this.setDuration=function(A){k=A;q.fireDirtyEvent()};this.protectedToJsonObject=function(A){A.duration=k};this.protectedFromJsonObject=function(A){k=A.duration}}function Fa(){Ea.call(this);var q=this.protectedMethod,k,x,A=10,P,V=-1,da,la={},za,Qa,ab;this.getType=function(){return Ea.TYPE_ByData};this.setFilterSource=function(Da){k=Da;q.fireDirtyEvent()};this.getFilterSource=
function(){return k};this.setAffectedTargets=function(Da){x=Da;q.fireDirtyEvent()};this.getAffectedTargets=function(){return x};this.setEachDuration=function(Da){A=Da;q.fireDirtyEvent()};this.getEachDuration=function(){return A};this.createWidgetPeer=function(){return new function(){this.getFilterSource=function(){return k};this.isIncludeItemAllSupported=function(){return!1}}};this.setRuntimeData=function(Da){V=(P=Da)&&0<P.length?0:-1;la={};if(x)for(Da=0;Da<x.getItemCount();Da++){var ca=x.getItem(Da);
!ca.isSettingComplete()||ca.getType()!=l.AffectedType_BindField&&ca.getType()!=l.AffectedType_Param||(la[ca.getTargetWidgetName()]=null)}};this.isReadyToPlay=function(){return void 0!==P};this.getPlayingData=function(){return P[V]};this.resetPlayingStatus=function(){-1!=V&&(V=0)};this.playStart=function(Da,ca){if(-1==V)return Da()||(ab=setTimeout(function(){ca(!0)},1E3*A)),!1;wb();za=Da;Qa=ca;return!0};this.playStop=function(){ab&&clearTimeout(ab)};var wb=function(){da=""+Math.random();for(var Da in la)la[Da]=
null},jb=function(){for(var Da in la)if(!la[Da])return!1;return!0};this.getPlayingRoundId=function(){return da};this.untilAllAffectedTargetsExecuted=function(Da,ca,N){if(da==Da&&(la[ca]=N,jb()&&(Da=za&&za(),za=null,!Da))){for(var ea in la)(0,la[ea])();ab=setTimeout(function(){var ma=V==P.length-1;V++;V>=P.length&&(V=0);Qa&&Qa(ma);Qa=null},1E3*A)}};this.protectedToJsonObject=function(Da){if(k){var ca={};k.toJsonObject(ca);Da.filterSource=ca}x&&(ca={},x.toJsonObject(ca),Da.affectedTargets=ca);Da.eachDuration=
A};this.protectedFromJsonObject=function(Da){var ca=Da.filterSource;ca&&(k=qa.createInstance(ca.type),k.fromJsonObject(ca));if(ca=Da.affectedTargets)x=new kc,x.fromJsonObject(ca);A=Da.eachDuration}}function Xa(q){var k=q?q:{},x;this.getItems=function(A){return k[A]};this.pickItems=function(A,P){!P&&(P={});var V=k[A];if(V)for(var da=0;da<V.length;da++){var la=V[da];P[la.getKey()]=la.getValue()}if(x&&(A=x[A]))for(var za in A)P[za]=A[za];return P};this.copyToEdit=function(){var A={},P;for(P in k){for(var V=
k[P],da=[],la=0;la<V.length;la++){var za=V[la];za=new w(za.getKey(),za.getValue());da.push(za)}A[P]=da}return new Xa(A)};this.setPriorPreview=function(A){x=A};this.toJsonObject=function(){var A={};for(Qa in k){for(var P=k[Qa],V=[],da=0;da<P.length;da++){var la=P[da],za={};za.key=la.getKey();za.value=la.getValue();V.push(za)}A[Qa]=V}var Qa={};Qa.groups=A;return Qa};this.fromJsonObject=function(A){A=A.groups;k={};for(var P in A){for(var V=A[P],da=[],la=0;la<V.length;la++){var za=V[la];za=new eb(za.key,
za.value);da.push(za)}k[P]=da}}}function eb(q,k){this.getKey=function(){return q};this.getValue=function(){return k}}function w(q,k){eb.call(this,q);var x=k;this.getValue=function(){return x};this.setValue=function(A){x=A}}"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.dsb&&(com.kingdee.bos.qing.dsb=
{});"undefined"==typeof com.kingdee.bos.qing.dsb.model&&(com.kingdee.bos.qing.dsb.model={});var Ka=com.kingdee.bos.qing.dsb.model;Ka.DashboardModel=l;Ka.WidgetUnknown=function(){fc.call(this);var q;this.getUnknownType=function(){return q};this.getWidgetTypeName=function(){return l.WidgetType_Unknown};this.protectedToJsonObject=function(k){k="Can not save due to unknown type '#1' exist.".replace("#1",q);var x=new zc;x.setOptionType(zc.OPTION_OK);x.setMessage(k);x.showDialog();throw Error(k);};this.protectedFromJsonObject=
function(k){q=k.widgetType}};Ka.WidgetPageTitleBar=Eb;Ka.AbstractCardSimilary=Cb;Ka.WidgetSquare=function(){fc.call(this);Cb.call(this);Ob.call(this);wa.call(this);Vb.call(this);Wb.call(this);Ja.call(this);fb.call(this);Rb.call(this);var q=this,k=this.protectedMethod;this.getSuperType=function(){return l.WidgetSuperType_BuiltinVisual|l.WidgetSuperType_CardSimilary|l.WidgetSuperType_AffectedTarget|l.WidgetSuperType_FilterSimilary|l.WidgetSuperType_OutputParamProvider|l.WidgetSuperType_FullscreenSupported|
l.WidgetSuperType_Referable};this.getWidgetTypeName=function(){return l.WidgetType_Square};this.getSourceDataType=function(){return xc.DT_STRING};this.copyReference=function(x){Lc.getWidgetSourceSelector().copySquare(q.getReferenceCustomMap(),function(A){q.setReferenceCustomMap(A);x()})};this.protectedToJsonObject=function(x){k.autoRefreshableToJsonObject(x);k.referableToJsonObject(x);k.cardSimilaryToJsonObject(x);k.filterSimilaryToJsonObject(x)};this.protectedFromJsonObject=function(x){k.autoRefreshableFromJsonObject(x);
k.referableFromJsonObject(x);k.cardSimilaryFromJsonObject(x);k.filterSimilaryFromJsonObject(x)}};Ka.WidgetLonger=function(){fc.call(this);Cb.call(this);Ob.call(this);Vb.call(this);Wb.call(this);Ja.call(this);fb.call(this);Rb.call(this);var q=this,k=this.protectedMethod;this.getSuperType=function(){return l.WidgetSuperType_BuiltinVisual|l.WidgetSuperType_CardSimilary|l.WidgetSuperType_AffectedTarget|l.WidgetSuperType_OutputParamProvider|l.WidgetSuperType_FullscreenSupported|l.WidgetSuperType_Referable};
this.getWidgetTypeName=function(){return l.WidgetType_Longer};this.copyReference=function(x){Lc.getWidgetSourceSelector().copyLonger(q.getReferenceCustomMap(),function(A){q.setReferenceCustomMap(A);x()})};this.protectedToJsonObject=function(x){k.autoRefreshableToJsonObject(x);k.referableToJsonObject(x);k.cardSimilaryToJsonObject(x)};this.protectedFromJsonObject=function(x){k.autoRefreshableFromJsonObject(x);k.referableFromJsonObject(x);k.cardSimilaryFromJsonObject(x)}};Ka.WidgetQingReport=function(){fc.call(this);
Ob.call(this);Vb.call(this);Wb.call(this);var q=this,k=this.protectedMethod,x;this.getSuperType=function(){return l.WidgetSuperType_AffectedTarget|l.WidgetSuperType_Referable};this.getWidgetTypeName=function(){return l.WidgetType_QingReport};this.copyReference=function(A){Lc.getWidgetSourceSelector().copyQingReport(q.getReferenceCustomMap(),function(P){q.setReferenceCustomMap(P);A()})};this.setCardTitle=function(A){x=A;k.firePropertyChangedEvent(q,l.KEY_CARD_TITLE)};this.getCardTitle=function(){return x};
this.getDashboardSkinName=function(){return q.getTopPage().getSkin()};this.getExecutableAffectedParams=function(){var A=q.getExecutingInputParams();return A?A.createExternalParamsApi().toJsonObject():{}};this.getAffectedParamType=function(){return l.AffectedType_Param};this.protectedToJsonObject=function(A){k.autoRefreshableToJsonObject(A);k.referableToJsonObject(A);A.cardTitle=x};this.protectedFromJsonObject=function(A){k.autoRefreshableFromJsonObject(A);k.referableFromJsonObject(A);x=A.cardTitle}};
Ka.WidgetExtReport=ub;Ka.WidgetProgramableCard=function(){fc.call(this);Vb.call(this);Wb.call(this);var q=this,k=this.protectedMethod;this.getWidgetTypeName=function(){return l.WidgetType_ProgramableCard};this.getDashboardSkinName=function(){return q.getTopPage().getSkin()};this.protectedToJsonObject=function(x){k.referableToJsonObject(x);k.autoRefreshableToJsonObject(x)};this.protectedFromJsonObject=function(x){k.referableFromJsonObject(x);k.autoRefreshableFromJsonObject(x)}};Ka.WidgetCosmicCustomCard=
zb;Ka.WidgetCloudhubSubscribes=function(){fc.call(this);var q;this.getWidgetTypeName=function(){return l.WidgetType_CloudhubSubscribes};this.setEncodedModel=function(k){q=k};this.getEncodedModel=function(){return q};this.protectedToJsonObject=function(k){k.encodedModel=q};this.protectedFromJsonObject=function(k){q=k.encodedModel}};Ka.AbstractTextWidget=hc;Ka.WidgetLabel=Pb;Ka.WidgetRich=Ha;Ka.WidgetPicture=oa;Ka.WidgetIframe=kb;Ka.WidgetClock=ob;Ka.WidgetCombobox=function(){fc.call(this);Gb.call(this);
wa.call(this);sb.call(this);Ob.call(this);var q=this.protectedMethod;this.getSuperType=function(){return l.WidgetSuperType_DiscreteItemFilter|l.WidgetSuperType_FilterSimilary|l.WidgetSuperType_AffectedTarget|l.WidgetSuperType_WithLabel};this.getWidgetTypeName=function(){return l.WidgetType_Combobox};this.getSourceDataType=function(){return xc.DT_STRING};this.getAffectedParamType=function(){return l.AffectedType_BindField};this.isIncludeItemAllSupported=function(){return!0};this.isMultiSelectable=
function(){return!1};this.protectedToJsonObject=function(k){q.discreteItemFilterToJsonObject(k);q.filterSimilaryToJsonObject(k);q.inputCtrlWithLabelToJsonObject(k)};this.protectedFromJsonObject=function(k){q.discreteItemFromJsonObject(k);q.filterSimilaryFromJsonObject(k);q.inputCtrlWithLabelFromJsonObject(k)}};Ka.WidgetButtonGroup=Ia;Ka.WidgetF7=function(){fc.call(this);Gb.call(this);wa.call(this);sb.call(this);Ob.call(this);var q=this.protectedMethod;this.getSuperType=function(){return l.WidgetSuperType_DiscreteItemFilter|
l.WidgetSuperType_FilterSimilary|l.WidgetSuperType_AffectedTarget|l.WidgetSuperType_WithLabel};this.getWidgetTypeName=function(){return l.WidgetType_F7};this.getSourceDataType=function(){return xc.DT_STRING};this.getAffectedParamType=function(){return l.AffectedType_BindField};this.isLightWeight=function(){return!1};this.protectedToJsonObject=function(k){q.discreteItemFilterToJsonObject(k);q.filterSimilaryToJsonObject(k);q.inputCtrlWithLabelToJsonObject(k)};this.protectedFromJsonObject=function(k){q.discreteItemFromJsonObject(k);
q.filterSimilaryFromJsonObject(k);q.inputCtrlWithLabelFromJsonObject(k)}};Ka.AbstractCalendar=cb;Ka.WidgetCalendar=function(){cb.call(this);this.getWidgetTypeName=function(){return l.WidgetType_Calendar};this.protectedCreateRelativeModel=function(){return new Ib}};Ka.WidgetCalendarYear=function(){cb.call(this);this.getWidgetTypeName=function(){return l.WidgetType_CalendarYear};this.protectedCreateRelativeModel=function(){return new cb.SimpleRelative}};Ka.WidgetCalendarQuarter=function(){cb.call(this);
this.getWidgetTypeName=function(){return l.WidgetType_CalendarQuarter};this.protectedCreateRelativeModel=function(){return new cb.SimpleRelative}};Ka.WidgetCalendarMonth=function(){cb.call(this);this.getWidgetTypeName=function(){return l.WidgetType_CalendarMonth};this.protectedCreateRelativeModel=function(){return new cb.SimpleRelative}};Ka.WidgetCalendarDay=function(){cb.call(this);this.getWidgetTypeName=function(){return l.WidgetType_CalendarDay};this.protectedCreateRelativeModel=function(){return new cb.SimpleRelative}};
Ka.WidgetPanel=p;Ka.WidgetTabbedContainer=X;Ka.WidgetOneTabbed=na;Ka.AbstractFilterSource=qa;Ka.FilterSourceFromVisualWidget=Pa;Ka.ValueTextItem=Za;Ka.DateSelected=function(q,k,x){var A,P,V;this.getJsonDateRange=function(){var da={};da.containNull=x;da.dateFrom=q;da.dateTo=k;var la={};la.dateRange=da;return la};this.setParamValue=function(da,la,za){A=da;P=la;V=za};this.getParamSingleValue=function(){return A};this.getParamScopeStart=function(){return P};this.getParamScopeEnd=function(){return V}};
Ka.AbstractDefaultSelected=ib;Ka.AffectedTargets=kc;Ka.PredefinedTextFragments=Ca;Ka.AbstractDurationMode=Ea;Ka.CosmeticModel=Xa;Ka.PreviewCardModel=function(){fc.call(this);Cb.call(this);var q=this,k=this.protectedMethod,x,A;this.copyFromWidget=function(P){P=P.toJsonObject();q.fromJsonObject(P)};this.hookUsableCardBorderGetter=function(P){x=P};this.hookUsableCardTopBarCommonGetter=function(P){A=P};this.getUsableCardBorder=function(){return x()};this.getUsableCardTopBarCommon=function(){return A()};
this.isBareSurface=function(){return!1};this.protectedFromJsonObject=function(P){k.cardSimilaryFromJsonObject(P)}};Ka.AbstractCardBorder=ha;Ka.CardTopBarCommon=vb;var Ab,Ib,cc,Ec,zc,xc,Lc,Pc;(function(){var q=com.kingdee.bos.qing.common;Ab=q.EventListenerList;Ib=q.RelativePeriodModel;q=com.kingdee.bos.qing.framework.common;cc=q.MultilanguageManager.createPackageAccessor(Ka);q=com.kingdee.bos.qing.common.rich;Ec=q.Chapter;q=com.kingdee.bos.qing.ui.component;zc=q.MessageDialog;q=com.kingdee.bos.qing.core.model;
xc=q.MetaField;q=com.kingdee.bos.qing.dsb;Lc=q.IntegrationRegister;q=com.kingdee.bos.qing.dsb.look;Pc=q.CardLook})();var Sc=new function(){var q,k,x;this.registerAll=function(P){q=P};this.registerUnknown=function(P){x=P};var A=function(){var P=q;q=[];k={};for(var V=0;V<P.length;V++){var da=new P[V];if(da.isSupported()){var la=da.getTypeName();k[la]=da;la!=l.WidgetType_Page&&q.push(da)}}};this.getInstance=function(P){!k&&A();var V=k[P];V||(P!=l.WidgetType_Unknown&&window.console&&window.console.error("Unknown chart type: "+
P),V=x);return V};this.getToolboxInstances=function(){!k&&A();return q.slice(0)}};Ka.WidgetTypeManager=Sc;l.KEY_ADD_CHILD="addChild";l.KEY_REMOVE_CHILD="removeChild";l.KEY_MOVE_CHILD="moveChild";l.KEY_DISPLAY_NAME="displayName";l.KEY_RECT="rectangle";l.KEY_VISIBLE="visible";l.KEY_FULLSCREEN="fullscreen";l.KEY_FULLSCREEN_BY_ANCESTOR="fullscreenByAncestor";l.KEY_PAGE_SIZE="pageSize";l.KEY_PAGE_EXHIBITION_MODE="pageExhibitionMode";l.KEY_PAGE_SKIN="pageSkin";l.KEY_PAGE_UNIFIED_CARD="pageUnifiedCard";
l.KEY_PAGE_WATERMARK="pageWatermark";l.KEY_PAGE_BACKGROUND="pageBackground";l.KEY_PAGE_MOBILE_LAYOUT_CONVERTER="pageMobileLayoutConverter";l.KEY_PAGE_MOBILE_SKIN_ACTIVE="pageMobileSkinActive";l.KEY_REF="reference";l.KEY_REFRESH_TIMING="refreshTiming";l.KEY_CARD_TITLE="cardTitle";l.KEY_CARD_SURFACE="cardSurface";l.KEY_FILTER_SOURCE="filterSource";l.KEY_FILTER_DEFAULT_SELECTED="filterDefaultSelected";l.KEY_AFFECTED_TARGETS="affectedTargets";l.KEY_FILTER_FRONT_LABEL="frontLabel";l.KEY_FILTER_FRONT_LABEL_POSITION=
"frontLabelPosition";l.KEY_FILTER_FRONT_LABEL_LENGTH="frontLabelLength";l.KEY_FONT_SIZE_ENHANCED="fontSizeEnhanced";l.KEY_DISCRETE_INCLUDED_ITEMALL="includedItemAll";l.KEY_DISCRETE_MULTISELECTABLE="multiSelectable";l.KEY_STYLE="commonStyle";l.ExhibitionMode_Full="Full";l.ExhibitionMode_Fit="Fit";l.ExhibitionMode_HFull="HFull";l.ExhibitionMode_Idle="Idle";l.Skin_Custom="custom";l.Skin_White="white";l.Skin_DarkBlue="darkBlue";l.Skin_Gold="gold";l.Skin_Cyan="cyan";l.MobileLayoutConverter_ByPosition=
"ByPosition";l.MobileLayoutConverter_InOrder="InOrder";l.WidgetType_Unknown="Unknown";l.WidgetType_Page="Page";l.WidgetType_PageTitleBar="PageTitleBar";l.WidgetType_Square="Square";l.WidgetType_Longer="LongPainting";l.WidgetType_QingReport="QingReport";l.WidgetType_ExtReport="ExtReport";l.WidgetType_ProgramableCard="ProgramableCard";l.WidgetType_CosmicCustomCard="CosmicCustomCard";l.WidgetType_CloudhubSubscribes="CloudhubSubscribes";l.WidgetType_Label="Label";l.WidgetType_Rich="Rich";l.WidgetType_Picture=
"Picture";l.WidgetType_Iframe="Iframe";l.WidgetType_Clock="Clock";l.WidgetType_Combobox="Combobox";l.WidgetType_ButtonGroup="ButtonGroup";l.WidgetType_F7="F7";l.WidgetType_Calendar="Calendar";l.WidgetType_CalendarYear="CalendarYear";l.WidgetType_CalendarQuarter="CalendarQuarter";l.WidgetType_CalendarMonth="CalendarMonth";l.WidgetType_CalendarDay="CalendarDay";l.WidgetType_Panel="Panel";l.WidgetType_TabbedContainer="TabbedContainer";l.WidgetType_OneTabbed="OneTabbed";l.WidgetSuperType_CardSurfaceAbout=
1;l.WidgetSuperType_CardSimilary=2|l.WidgetSuperType_CardSurfaceAbout;l.WidgetSuperType_FilterSimilary=4;l.WidgetSuperType_AffectedTarget=8;l.WidgetSuperType_BuiltinVisual=16;l.WidgetSuperType_CompositeContainer=32;l.WidgetSuperType_WithLabel=64;l.WidgetSuperType_OutputParamProvider=128;l.WidgetSuperType_FullscreenSupported=256;l.WidgetSuperType_WithCommonStyle=512;l.WidgetSuperType_ContainerWithBackground=1024;l.WidgetSuperType_Referable=2048;l.WidgetSuperType_DiscreteItemFilter=4096;l.WidgetSuperType_Text=
8192;l.WidgetSuperType_Calendar=16384;l.AffectedType_BindField=1;l.AffectedType_Param=2;l.AffectedType_Tab=4;l.AffectedType_Hotlink=8;vb.TitlePosition_Auto="Auto";vb.TitlePosition_MidOfIcon="MidOfIcon";vb.TitlePosition_Offset="Offset";Cb.Surface_Unified=0;Cb.Surface_Bare=1;Cb.Surface_Custom=2;Eb.KEY_FROZEN="frozen";Eb.KEY_SURFACE="surface";ub.KEY_TITLE="title";ub.KEY_MODEL="encodedModel";zb.KEY_MODEL="encodedModel";hc.parseRef=function(q){for(var k=[],x=[],A=0;A<q.length;){var P=q.indexOf("${",A);
A=q.indexOf("}$",A);if(-1==A)A=q.length;else if(-1==P||A<P){if(0<x.length){P=x.pop();var V=A,da=q.substring(P[0]+2,V),la=da.indexOf(",");if(0<la){var za=da.substring(0,la);da=da.substring(la+1)}else za=da,da="";P[1]=V+2;P[2]=$.trim(za);P[3]=da;k.push(P)}A+=2}else x.push([P,null,null]),A=P+2}return k};Pb.KEY_CONTENT="labelContent";Pb.KEY_WALKING="labelWalking";Ha.KEY_CONTENT="richContent";oa.createPeer=function(){var q=new oa;q.setScale(null);q.setAlign(0);return q};oa.KEY_SCALE="pictureScale";oa.KEY_ALIGN=
"pictureAlign";oa.SCALE_NON="original";oa.SCALE_ADAPTIVE="adaptive";oa.SCALE_FULL="full";oa.SCALE_TILED="tiled";oa.HALIGN_LEFT=1;oa.HALIGN_CENTER=2;oa.HALIGN_RIGHT=4;oa.VALIGN_TOP=16;oa.VALIGN_MIDDLE=32;oa.VALIGN_BOTTOM=64;kb.KEY_URL="iframeUrl";ob.KEY_FORMAT="formatString";Ia.askButtonHeight=function(q){return q>=Ia.SIZE_MODE_LARGE?40:q>=Ia.SIZE_MODE_MIDDLE?32:25};Ia.KEY_LAYOUT_MODE="layoutMode";Ia.KEY_CHARS_PER_ITEM="charsPerItem";Ia.KEY_ITEMS_PER_ROW="itemsPerRow";Ia.KEY_SIZE_MODE="sizeMode";Ia.LAYOUT_MODE_HORIZONTAL=
"H";Ia.LAYOUT_MODE_WRAP="W";Ia.SIZE_MODE_SMALL=1;Ia.SIZE_MODE_MIDDLE=3;Ia.SIZE_MODE_LARGE=5;cb.KEY_DATE_INITIAL="dateInitialValue";cb.SimpleRelative=function(){var q=0;this.getOffset=function(){return q};this.setOffset=function(k){q=k};this.toJsonObject=function(){var k={};q&&(k.offset=q);return k};this.fromJsonObject=function(k){q=(k=k.offset)?k:0}};p.KEY_FULLSCREEN_ALLOWED="fullScreenAllowed";p.FULLSCREEN_ALLOWED_NONE=0;p.FULLSCREEN_ALLOWED_ALONE=1;p.FULLSCREEN_ALLOWED_ALIVE=2;X.KEY_TABBED_SELECTED=
"tabbedSelected";X.KEY_HEAD_POSITION="tabbedHeadPosition";X.KEY_HEAD_PATTERN="tabbedHeadPattern";X.KEY_SWITCH_SUB="switchToSubTabbed";X.KEY_SLIDESHOW="slideshow";X.HEAD_TOP_LEFT="TL";X.HEAD_TOP_RIGHT="TR";X.HEAD_BOTTOM_LEFT="BL";X.HEAD_BOTTOM_RIGHT="BR";X.HEAD_PATTERN_HIDDEN="hidden";X.HEAD_PATTERN_BAR="bar";X.HEAD_PATTERN_BARE="bare";na.KEY_HEAD_TEXT="oneTabbedHeadText";na.KEY_DURATION_MODE="durationMode";ha.createInstance=function(q){switch(q){case ha.TYPE_SIMPLE:return new f;case ha.TYPE_MODEL:return new xa;
case ha.TYPE_IMAGE:return new Ba;default:throw Error("Modify here");}};ha.TYPE_SIMPLE="Simple";ha.TYPE_MODEL="Model";ha.TYPE_IMAGE="Image";qa.createInstance=function(q){switch(q){case qa.TYPE_VisualWidget:return new Pa;case qa.TYPE_CustomList:return new Oa;default:throw Error("Modify here");}};qa.TYPE_VisualWidget="VisualWidget";qa.TYPE_CustomList="CustomList";qa.createItemAll=function(){var q=new Za;q.setValue(qa.ITEM_ALL);q.setText(cc.get("itemAll","\uff08\u5168\u90e8\uff09"));return q};qa.ITEM_ALL=
"com.kingdee.bos.qing.ALL";ib.createInstance=function(q){switch(q){case ib.TYPE_ByIndex:return new Kb;case ib.TYPE_ByAppointed:return new nc;default:throw Error("Modify here");}};ib.TYPE_ByIndex="ByIndex";ib.TYPE_ByVariant="ByVariant";ib.TYPE_ByAppointed="ByAppointed";kc.createItem=function(q){for(var k=[Dc,ic,yc,Kc],x=0;x<k.length;x++){var A=new k[x];if(A.getType()==q)return A}throw Error("Unknown AffectedTargetItem.type: "+q);};kc.encodeDoubleParamName=function(q,k){return q+","+k};kc.isDoubleParamName=
function(q){return 0<=q.indexOf(",")};kc.decodeDoubleParamName=function(q){return q.split(",")};Ca.Fragment=function(){var q=this,k,x,A;this.setName=function(P){k=P};this.getName=function(){return k};this.setDisplay=function(P){x=P};this.getDisplay=function(){return x};this.setAffectedTargets=function(P){A=P};this.getAffectedTargets=function(){return A};this.copy=function(){var P={};q.toJsonObject(P);var V=new Ca.Fragment;V.fromJsonObject(P);return V};this.toJsonObject=function(P){P.name=k;P.display=
x;if(A){var V={};A.toJsonObject(V);P.affectedTargets=V}};this.fromJsonObject=function(P){k=P.name;x=P.display;if(P=P.affectedTargets)A=new kc,A.fromJsonObject(P)}};Ea.createInstance=function(q){switch(q){case Ea.TYPE_ByFixedTime:return new Ra;case Ea.TYPE_ByData:return new Fa;default:throw Error("Modify here");}};Ea.TYPE_ByFixedTime="ByFixedTime";Ea.TYPE_ByData="ByData";Xa.createEditableItem=function(q,k){return new w(q,k)}})();(function(){function l(){var Qb;this.setCaption=function(vb){Qb=vb};this.getCaption=function(){return Qb};this.perform=function(){throw Error("Override me.");};this.unperform=function(){throw Error("Override me.");}}function fc(){var Qb,vb=[],Cb;this.setCaption=function(wa){Qb=wa};this.getCaption=function(){return Qb};this.appendUnitAction=function(wa){vb.push(wa)};this.perform=function(){Cb&&Cb(!0);for(var wa=0,gb=vb.length-1;wa<=gb;wa++)vb[wa].perform();Cb&&Cb(!1)};this.unperform=function(){Cb&&
Cb(!0);for(var wa=vb.length-1;0<=wa;wa--)vb[wa].unperform();Cb&&Cb(!1)};this.setAnnouncer=function(wa){Cb=wa}}function lb(){l.call(this);var Qb,vb,Cb;this.setValue=function(wa,gb){Qb=wa;vb=gb};this.perform=function(){Cb=Qb.removeWidget(vb)};this.unperform=function(){Qb.addWidget(vb,Cb)}}"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.dsb&&(com.kingdee.bos.qing.dsb={});"undefined"==typeof com.kingdee.bos.qing.dsb.controller&&(com.kingdee.bos.qing.dsb.controller={});var Mb=com.kingdee.bos.qing.dsb.controller;Mb.CommandManager=function(){var Qb=32,vb=[],Cb=[],wa=null,gb=!1,sb=new bc,Gb=new bc;this.setActionCapacity=function(Tb){Qb=Tb};this.addPerformedListener=function(Tb){Gb.addListener(Tb)};this.perform=function(Tb){wa?wa.appendUnitAction(Tb):(Tb.perform(),Ob(vb,Tb),Cb.length=0,Vb(Tb,!0))};this.compositeStart=
function(Tb){if(null!=wa)throw Error("Can not start composite command twice.");wa=new fc;wa.setAnnouncer(Rb);wa.setCaption(Tb)};this.compositeEnd=function(){wa.perform();var Tb=wa;Ob(vb,Tb);Cb.length=0;Vb(Tb,!0);wa=null};this.compositeAbort=function(){wa=null};this.isCompositeStarted=function(){return null!=wa};this.createCompositeAction=function(){var Tb=new fc;Tb.setAnnouncer(Rb);return Tb};this.untilWakeup=function(Tb){gb?sb.addListener(Tb):Tb()};this.isCanUndo=function(){return 0<vb.length};this.isCanRedo=
function(){return 0<Cb.length};this.undo=function(){var Tb=vb.pop();Tb&&(Tb.unperform(),Ob(Cb,Tb),Vb(Tb,!1,!0))};this.redo=function(){var Tb=Cb.pop();Tb&&(Tb.perform(),Ob(vb,Tb),Vb(Tb,!1,!1))};this.reset=function(){vb.length=0;Cb.length=0;Vb(null)};var Ob=function(Tb,Na){Tb.push(Na);Tb.length>Qb&&Tb.splice(0,1)},Vb=function(Tb,Na,Eb){Gb.fireEvent(function(Ja){Ja(Tb,Na,Eb)})},Wb=function(){gb=!1;sb.fireEvent(function(Tb){Tb()});sb.removeAllListener()},Rb=function(Tb){Tb?gb=!0:Wb()}};Mb.AbstractAction=
l;Mb.ActionChangeProperty=function(){l.call(this);var Qb=this,vb,Cb,wa;this.setMethod=function(gb,sb){vb=gb;Cb=sb};this.setValue=function(gb){wa=gb};this.perform=function(){var gb=vb();Cb(wa);wa=gb};this.unperform=function(){Qb.perform()}};Mb.ActionAddWidget=function(){l.call(this);var Qb,vb;this.setValue=function(Cb,wa){Qb=Cb;vb=wa};this.perform=function(){var Cb=vb.isEldestSon()?0:null;Qb.addWidget(vb,Cb)};this.unperform=function(){Qb.removeWidget(vb)}};Mb.ActionRemoveWidget=lb;Mb.ActionMoveWidget=
function(){l.call(this);var Qb,vb,Cb,wa;this.setValue=function(gb,sb){Qb=gb.getParent();vb=gb;gb=Qb.getWidget(0).isEldestSon()?1:0;for(var Gb=Qb.getWidgetCount(),Ob=0;Ob<Gb;Ob++)if(Qb.getWidget(Ob)==vb){Cb=Ob;break}wa=Cb+sb;wa=Math.min(Gb-1,Math.max(gb,wa))};this.perform=function(){Qb.moveWidgetTo(vb,wa)};this.unperform=function(){Qb.moveWidgetTo(vb,Cb)}};Mb.ActionCutWidget=function(){l.call(this);var Qb,vb,Cb;this.setValue=function(wa,gb){Cb=gb;Qb=new lb;Qb.setValue(wa,gb)};this.setClipboard=function(wa){vb=
wa};this.perform=function(){Qb.perform();vb.putByCut(Cb)};this.unperform=function(){vb.pickToPasteByCut();Qb.unperform()}};Mb.ActionPasteAfterCutWidget=function(){l.call(this);var Qb,vb,Cb,wa;this.setValue=function(gb){vb=gb};this.setClipboard=function(gb){Qb=gb};this.perform=function(){Cb=Qb.pickToPasteByCut();var gb=Cb.getX(),sb=Cb.getY(),Gb=Cb.getWidth(),Ob=Cb.getHeight();gb+Gb>vb.getClientWidth()||sb+Ob>vb.getClientHeight()?(Cb.setPosition(0,0),wa=[gb,sb]):wa=null;gb=Cb.isEldestSon()?0:null;vb.addWidget(Cb,
gb)};this.unperform=function(){vb.removeWidget(Cb);Qb.putByCut(Cb);wa&&(Cb.setPosition(wa[0],wa[1]),wa=null)}};Mb.ActionChangeWidgetRect=function(){l.call(this);var Qb=this,vb,Cb;this.setValue=function(wa,gb,sb,Gb,Ob){vb=wa;Cb=[gb,sb,Gb,Ob]};this.perform=function(){var wa=[vb.getX(),vb.getY(),vb.getWidth(),vb.getHeight()];vb.setRectangle(Cb[0],Cb[1],Cb[2],Cb[3]);Cb=wa};this.unperform=function(){Qb.perform()}};Mb.ActionChangePageRect=function(){l.call(this);var Qb=this,vb,Cb,wa;this.setValue=function(gb,
sb,Gb){vb=gb;Cb=sb;wa=Gb};this.perform=function(){var gb=vb.getWidth(),sb=vb.getHeight();vb.setRectangle(0,0,Cb,wa);Cb=gb;wa=sb};this.unperform=function(){Qb.perform()}};Mb.ActionModifyStyle=function(){l.call(this);var Qb,vb,Cb,wa,gb;this.setContext=function(sb,Gb,Ob,Vb){Qb=sb;vb=Gb;Cb=Ob;wa=Vb};this.perform=function(){gb=Qb();var sb=gb.copy();sb[Cb](wa);vb(sb)};this.unperform=function(){vb(gb)}};Mb.ActionChangeDateRange=function(){l.call(this);var Qb=this,vb,Cb;this.setValue=function(wa,gb,sb,Gb,
Ob){vb=wa;Cb=[gb,sb,Gb,Ob]};this.perform=function(){var wa=[vb.getFromDate(),vb.getToDate(),vb.getRelativeModel(),vb.isContainNull()];vb.setInitialValue(Cb[0],Cb[1],Cb[2],Cb[3]);Cb=wa};this.unperform=function(){Qb.perform()}};var bc=com.kingdee.bos.qing.common.EventListenerList})();(function(){function l(){Ba.call(this);var c=this.protectedMethod,D=new qa,U=new Pa;(function(){c.setContentPaneCreator(function(){p.layoutCtrlWithLRTB(D.getJqUi(),0,0,null,0,null,23);p.layoutCtrlWithLRTB(U.getJqUi(),0,0,null,23,0,null);var O=$("<div>");O.append(D.getJqUi());O.append(U.getJqUi());return O})})();this.setTitle=function(O,K){c.setTitle(O);D.setText(K)};var C=this.showDialog;this.showDialog=function(O,K){c.setClosingAction(function(ia){K(ia,$.trim(U.getText()))});C();U.setText(O?O:"");
U.requestFocus()}}function fc(){Ba.call(this);var c=this,D=this.protectedMethod,U,C,O,K,ia=!1;this.show=function(v,t,L){U=t;C=v;var F={},ya={};U.traversalDescendents(function(va){lb.isWidgetNameInvalid(va.getDisplayName())||(F[va.getName()]=va.getDisplayName(),ya[va.getDisplayName()]=va.getName())});fa(F);D.getDialogCtrl().createToolbarButton(f.get("textRefMenuVar","\u63d2\u5165\u53d8\u91cf"),u);D.getDialogCtrl().createToolbarButton(f.get("textRefMenuLink","\u63d2\u5165\u94fe\u63a5"),Ya);D.setClosingAction(function(va){var db=
ia?e(ya):null,Jb=va?c.protectedAcceptEditedContent(ya):null;L(ia,db,va,Jb)});c.protectedBeforeShow(C,F);c.showDialog();D.getDialogCtrl().setToolbarVisible(!0);D.getDialogCtrl().setSelectable(!0);c.protectedCtrlOnFocus()};this.protectedBeforeShow=function(v,t){throw Error("Implement");};this.protectedAcceptEditedContent=function(v){throw Error("Implement");};this.protectedCtrlOnFocus=function(){throw Error("Implement");};this.protectedGetTextAndCursor=function(){throw Error("Implement");};this.protectedDoInsertRefTag=
function(v,t){throw Error("Implement");};var Y=function(v,t,L){v=bb.parseRef(v);for(var F=v.length-1;0<=F;F--){var ya=v[F],va=ya[0],db=ya[1],Jb=ya[2],Xb=Jb.indexOf("#");0<Xb&&(ya=Jb.substring(0,Xb),Jb=Jb.substring(Xb+1),(ya=t[ya])&&L(va,db,"${"+ya+"#"+Jb+"}$"))}},fa=function(v){var t=C.getPredefinedTextFragments();O=[];K=[];if(t)for(var L=0;L<t.getFragmentCount();L++){var F=t.getFragment(L).copy(),ya=F.getDisplay();Y(ya,v,function(db,Jb,Xb){ya=ya.substring(0,db)+Xb+ya.substring(Jb)});F.setDisplay(ya);
var va=F.getAffectedTargets().getItem(0).getType();g(va).push(F)}},e=function(v){var t=O.concat(K);if(0==t.length)return null;for(var L=0;L<t.length;L++){var F=t[L],ya=F.getDisplay();Y(ya,v,function(va,db,Jb){ya=ya.substring(0,va)+Jb+ya.substring(db)});F.setDisplay(ya)}v=new Sa;v.setFragments(t);return v},g=function(v){return v==W.AffectedType_Tab?O:v==W.AffectedType_Hotlink?K:null},y=function(v,t){var L=$(v.currentTarget);v=L.parent();var F=v.prop("clientHeight");L=L.prop("offsetLeft");var ya=new rc;
ya.setModel(t);ya.show(v,L,F,null,!0)},u=function(v){var t=rc.createSubMenu(f.get("textRefMenuInsertX","\u5728\u5149\u6807\u4f4d\u7f6e\u63d2\u5165#1").replace("#1",f.get("textRefOfParam","\u8054\u52a8\u53c2\u6570")));G(t);var L=rc.createActionMenuItem(f.get("textRefOfOutputParam","\u53ef\u89c6\u5316\u5185\u5bb9\u7684\u8f93\u51fa\u53c2\u6570")+"...",Ga),F=new uc;F.addItemModel(t);F.addItemModel(L);y(v,F)},G=function(v){for(var t=Z(),L=0;L<t.length;L++)v.addItemModel(pa("","#",t[L]));0==t.length&&(t=
rc.createActionMenuItem(f.get("textRefParamNameNotFound","\u5176\u5b83\u7ec4\u4ef6\u672a\u8bbe\u7f6e\u4f5c\u7528\u4e8e\u5f53\u524d\u7ec4\u4ef6\u7684\u53c2\u6570"),function(F){}),t.setEnabled(!1),v.addItemModel(t),v.addSeperator(),t=pa("","#","param",!0),t.setText(f.get("textRefParamNameDemo","\u793a\u4f8b")+": "+t.getText()),v.addItemModel(t))},Z=function(){var v=[];U.traversalDescendents(function(t){t!=C&&t.isInstanceOf(W.WidgetSuperType_FilterSimilary)&&(t=t.getAffectedTargets())&&(t=t.getTarget(C.getName()))&&
t.isSettingComplete()&&t.getType()==W.AffectedType_Param&&v.push(t.getParamName())});return v},pa=function(v,t,L,F){var ya="${"+t+L+"}$";v=v?v.replace("#1",ya):ya;var va=F?L.length:0;return rc.createActionMenuItem(v,function(db){c.protectedDoInsertRefTag(ya,va);c.protectedCtrlOnFocus()})},Ga=function(v){v=Va();(new lb).show(U,C,v,function(t,L){c.protectedDoInsertRefTag("${"+t+"#"+L+"}$",0)},function(){c.protectedCtrlOnFocus()})},Va=function(){var v=c.protectedGetTextAndCursor(),t=v[0],L=v[1];v=v[2];
L=t.substring(0,L+2).lastIndexOf("${",L);v=t.indexOf("}$",v-2);return 0<=L&&0<=v&&(t=t.substring(L+2,v).split("#"),2==t.length)?t:null},Ya=function(v){var t=new uc;t.addItemModel(sa(W.AffectedType_Tab));t.addItemModel(sa(W.AffectedType_Hotlink));y(v,t)},sa=function(v){var t=rc.createSubMenu(fc.getAffectedTypeDisplay(v)),L=rc.createActionMenuItem(f.get("textRefMenuLinkAdd","\u6dfb\u52a0\u65b0\u7684\u5b9a\u4e49")+"...",Q);L.setUserObject(v);t.addItemModel(L);L=g(v);if(0<L.length){t.addSeperator();for(var F=
0;F<L.length;F++){var ya=L[F];t.addItemModel(pa(f.get("textRefMenuInsertX","\u5728\u5149\u6807\u4f4d\u7f6e\u63d2\u5165#1"),"",ya.getName()))}L=rc.createActionMenuItem(f.get("textRefMenuLinkEdit","\u7ef4\u62a4\u5df2\u521b\u5efa\u7684\u5b9a\u4e49")+"...",ra);L.setUserObject(v);t.addItemModel(L)}return t},La=function(v){return f.get("predefinedFragmentDialogTitle","#1\u7684\u5b9a\u4e49").replace("#1",fc.getAffectedTypeDisplay(v))},Q=function(v){var t=c.protectedGetTextAndCursor();t=t[0].substring(t[1],
t[2]);var L=new Sa.Fragment;L.setName(r("link"));L.setDisplay(t);var F=v.getUserObject();(new Mb).show(La(F),F,L,U,function(ya,va,db){va=aa(F,ya,va,db);!va&&(va=I(F,ya,null,g(F)));return va},function(ya){ya&&(ia=!0,g(F).push(L),ya="${"+L.getName()+"}$",c.protectedDoInsertRefTag(ya,0));c.protectedCtrlOnFocus()})},ra=function(v){var t=v.getUserObject(),L=g(t);(new bc).show(La(t),t,L,U,function(F){for(var ya=F.length-1;0<=ya;ya--){var va=F[ya],db=I(t,va.getName(),va,F);if(db)return[va,db]}for(ya=0;ya<
F.length;ya++)if(va=F[ya],db=aa(t,va.getName(),va.getDisplay(),va.getAffectedTargets()))return[va,db];return null},function(F){ia=!0;for(var ya=L.length=0;ya<F.length;ya++)L.push(F[ya])})},r=function(v){var t=O.concat(K),L=0;do var F=v+ ++L;while(z(F,t,null));return F},z=function(v,t,L){for(var F=0;F<t.length;F++){var ya=t[F];if(ya!=L&&ya.getName()==v)return ya}return null},I=function(v,t,L,F){F=(v==W.AffectedType_Tab?K:v==W.AffectedType_Hotlink?O:null).concat(F);return(t=z(t,F,L))?(t=t.getAffectedTargets().getItem(0).getType(),
v=t==v?"":fc.getAffectedTypeDisplay(t),f.get("predefinedFragmentCheck1","\u5df2\u5b58\u5728\u76f8\u540c\u540d\u79f0\u7684#1\u5b9a\u4e49\u3002").replace("#1",v)):null},aa=function(v,t,L,F){if(!t)return f.get("predefinedFragmentCheck2","\u5fc5\u987b\u5b9a\u4e49\u540d\u79f0\uff0c\u4ee5\u4f9b\u6587\u5b57\u5185\u5bb9\u5f15\u7528\u3002");if(20<t.length)return f.get("predefinedFragmentCheck3","\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc7#1\u4e2a\u5b57\u7b26\u3002").replace("#1",20);if(!cb.checkVariableNaming(t))return f.get("predefinedFragmentCheck4",
"\u540d\u79f0\u5fc5\u987b\u4ee5\u5b57\u6bcd\u5f00\u5934\uff0c\u53ea\u80fd\u5305\u542b\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e0b\u5212\u7ebf\u3002");if(!L)return f.get("predefinedFragmentCheck5","\u5fc5\u987b\u6709\u663e\u793a\u6587\u5b57\u3002");if(!F||0==F.getItemCount())return f.get("predefinedFragmentCheck6","#1\u76ee\u6807\u672a\u5b9a\u4e49\u3002").replace("#1",fc.getAffectedTypeDisplay(v));for(t=0;t<F.getItemCount();t++)if(!F.getItem(t).isSettingComplete())return f.get("predefinedFragmentCheck7",
"#1\u76ee\u6807\u5b9a\u4e49\u4e0d\u5b8c\u6574\u3002").replace("#1",fc.getAffectedTypeDisplay(v));return(v=F.checkDuplicated())?(t=(F=U.searchWidgetByName(v))?F.getDisplayName():v,f.get("affectedTargetDuplicated","\u91cd\u590d\u7684\u76ee\u6807\u7ec4\u4ef6\uff1a#1\u3002").replace("#1",t)):null};D.replaceOutputParamDisplayName=Y;D.popupMenu=y}function lb(){Ba.call(this);var c=this,D=this.protectedMethod,U;this.show=function(Y,fa,e,g,y){D.setTitle(f.get("textRefOfOutputParam","\u53ef\u89c6\u5316\u5185\u5bb9\u7684\u8f93\u51fa\u53c2\u6570"));
c.setSize(400,480);D.setContentPaneCreator(function(){var u=fa,G=new ic.BranchNode;G.setExpanded(!0);for(var Z=ia(Y,u),pa=0;pa<Z.length;pa++){var Ga=Z[pa];u=Ga[0];var Va=Ga[1];Ga=new ic.BranchNode(u);Ga.setSelectable(!1);G.addChild(Ga);if(lb.isWidgetNameInvalid(u.getDisplayName()))Va=lb.INVALID_CHAR_INSIDE_WIDGET_NAME.join("  "),Va=new ic.LeafNode(f.get("outputParamInvalidChar","\u7ec4\u4ef6\u540d\u79f0\u5305\u542b\u975e\u6cd5\u5b57\u7b26")+"  "+Va),Va.setSelectable(!1),Ga.addChild(Va);else for(u=
0;u<Va.length;u++){var Ya=new ic.LeafNode(Va[u]);Ga.addChild(Ya)}}0==Z.length&&(Va=new ic.LeafNode(f.get("outputParamNotFound","\u672a\u53d1\u73b0\u5176\u5b83\u7ec4\u4ef6\u7684\u8f93\u51fa\u53c2\u6570")),Va.setSelectable(!1),G.addChild(Va));Z=K(G,e);return C(G,Z)});D.setClosingChecker(function(){return U?!0:(D.getMessageCurtain().showPrompt(f.get("outputParamSelectingRequired","\u672a\u9009\u62e9\u53c2\u6570\u3002")),!1)});D.setClosingAction(function(u){u&&g(U[0],U[1]);y()});c.showDialog()};var C=
function(Y,fa){var e=$("<div>");e.css({border:"1px solid #ddd","box-sizing":"border-box",padding:"6px",color:"#808080"});var g=new ic;g.setRoot(Y);g.setRootVisible(!1);g.setNodePainter(function(y,u){u.isLeafNode()?(u=u.getUserObject(),"string"==typeof u?y.css("white-space","pre-wrap"):u=u.getName(),y.text(u)):(u=u.getUserObject(),y.text(u.getDisplayName()))});g.addSelectedListener(function(y){y=y.getSelecteds();O(0<y.length?y[0]:null,e)});g.getJqUi().css({border:"1px solid #ddd"});fa&&(g.expandToNode(fa),
g.setSelecteds([fa]),g.scrollSelectedToVisible(),O(fa,e));Y=$("<div>");Y.append(g.getJqUi());Y.append(e);p.layoutCtrlWithLRTB(g.getJqUi(),0,0,null,0,60,null);p.layoutCtrlWithLRTB(e,0,0,null,null,0,50);return Y},O=function(Y,fa){if(Y){var e=Y.getParent().getUserObject();Y=Y.getUserObject();var g=Y.getDescription();fa.text(g?g:f.get("outputParamNoDescription","\u8be5\u8f93\u51fa\u53c2\u6570\u65e0\u63cf\u8ff0\u3002"));U=[e.getDisplayName(),Y.getName()]}else fa.text(""),U=null},K=function(Y,fa){var e=
null;if(fa){var g=fa[0],y=fa[1];Y.visiting(function(u){if(u.isLeafNode()){var G=!1,Z=u.getParent().getUserObject(),pa=u.getUserObject();Z&&Z.getDisplayName()==g&&"string"!=typeof pa&&pa.getName()==y&&(G=!0,e=u);return G}})}return e},ia=function(Y,fa){var e=[];Y.traversalDescendents(function(g){if(g!=fa&&g.isInstanceOf(W.WidgetSuperType_OutputParamProvider)){var y=g.getOutputParamsInfo();y&&0<y.length&&e.push([g,y])}});return e}}function Mb(){Ba.call(this);var c=this,D=this.protectedMethod;this.show=
function(U,C,O,K,ia,Y){var fa;D.setTitle(U);c.setSize(640,480);D.setContentPaneCreator(function(){fa=new vb;fa.setContext(C,K);fa.setEditingModel(O);return fa.getJqUi()});D.setClosingChecker(function(){var e=ia(fa.getEditingName(),fa.getEditingDisplay(),fa.getEditingAffectedTargets());return e?(D.getMessageCurtain().showPrompt(e),!1):!0});D.setClosingAction(function(e){e&&(O.setName(fa.getEditingName()),O.setDisplay(fa.getEditingDisplay()),O.setAffectedTargets(fa.getEditingAffectedTargets()));Y(e)});
c.showDialog()}}function bc(){Ba.call(this);var c=this,D=this.protectedMethod;this.show=function(U,C,O,K,ia,Y){var fa;D.setTitle(U);c.setSize(640,480);D.setContentPaneCreator(function(){fa=new Qb;fa.setContext(C,K);fa.setEditingModel(O);return fa.getJqUi()});D.setClosingChecker(function(){fa.acceptCurrent();var e=ia(fa.getEditingModel());if(e){var g=e[1];fa.jumpToSelected(e[0]);D.getMessageCurtain().showPrompt(g);return!1}return!0});D.setClosingAction(function(e){e&&Y(fa.getEditingModel())});c.showDialog()}}
function Qb(){var c,D,U=$("<div>"),C=new kc,O=new Dc,K=new vb;this.setContext=function(e,g){K.setContext(e,g)};this.setEditingModel=function(e){c=[];for(var g=0;g<e.length;g++)c.push(e[g].copy());O.setItemModels(c);O.setSelecteds([c[0]]);ia()};this.getEditingModel=function(){return c};this.acceptCurrent=function(){var e=O.getSelecteds();1==e.length&&fa(e[0]);O.setItemModels(c)};this.getJqUi=function(){if(!D){var e=new qa(f.get("predefinedFragmentEditorCaption","\u5df2\u521b\u5efa\u7684\u5b9a\u4e49"));
C.setText(f.get("predefinedFragmentEditorDelete","\u5220\u9664"));C.addActionListener(Y);O.setMultiSelectable(!0);O.setContinuousSelectingEnabled(!0);O.setCustomItemPainter(function(g,y){g.css({height:"32px","line-height":"32px"});g.text(y.getName())});O.addSelectedChangedListener(function(g,y,u){1==y.length&&fa(y[0]);ia();O.setItemModels(c)});U.css("background-color","rgba(255,255,255,0.6)");D=$("<div>");D.append(e.getJqUi());D.append(C.getJqUi());D.append(O.getJqUi());D.append(K.getJqUi());D.append(U);
p.layoutCtrlWithLRTB(e.getJqUi(),0,null,100,0,null,23);p.layoutCtrlWithLRTB(C.getJqUi(),110,null,50,0,null,23);p.layoutCtrlWithLRTB(O.getJqUi(),0,null,160,23,0,null);p.layoutCtrlWithLRTB(K.getJqUi(),180,0,null,0,0,null);p.layoutCtrlWithLRTB(U,180,0,null,0,0,null)}return D};this.jumpToSelected=function(e){O.setSelecteds([e])};var ia=function(){var e=O.getSelecteds();1==e.length?(K.setEditingModel(e[0]),U.css("display","none"),C.setEnabled(!0)):(K.setEditingModel(new Sa.Fragment),U.css("display",""),
C.setEnabled(0!=e.length))},Y=function(e){e=O.getSelecteds();for(var g=c.length-1;0<=g;g--)for(var y=0;y<e.length;y++)if(c[g]==e[y]){c.splice(g,1);break}O.setItemModels(c);O.setSelecteds(0<c.length?[c[0]]:[])},fa=function(e){e.setName(K.getEditingName());e.setDisplay(K.getEditingDisplay());e.setAffectedTargets(K.getEditingAffectedTargets())}}function vb(){var c,D=new ib,U=new ib,C=new qa,O;this.setContext=function(K,ia){C.setText(fc.getAffectedTypeDisplay(K));K==W.AffectedType_Tab?O=new Ob:K==W.AffectedType_Hotlink&&
(O=new Cb);O.setContext(ia);O.setSettingModel(null)};this.setEditingModel=function(K){D.setText(K.getName());U.setText(K.getDisplay());O.setSettingModel(K.getAffectedTargets())};this.getJqUi=function(){if(!c){var K=new qa(f.get("predefinedFragmentName","\u540d\u79f0")),ia=new qa(f.get("predefinedFragmentDisplay","\u663e\u793a\u6587\u5b57")),Y=$("<div>");Y.css("border","1px solid #ddd");c=$("<div>");c.append(K.getJqUi());c.append(D.getJqUi());c.append(ia.getJqUi());c.append(U.getJqUi());c.append(Y);
c.append(C.getJqUi());c.append(O.getJqUi());p.layoutCtrlWithLRTB(K.getJqUi(),0,null,100,0,null,23);p.layoutCtrlWithLRTB(D.getJqUi(),100,0,null,0,null,23);p.layoutCtrlWithLRTB(ia.getJqUi(),0,null,100,30,null,23);p.layoutCtrlWithLRTB(U.getJqUi(),100,0,null,30,null,23);p.layoutCtrlWithLRTB(C.getJqUi(),0,0,null,60,null,23);p.layoutCtrlWithLRTB(Y,0,0,null,85,0,null);p.layoutCtrlWithLRTB(O.getJqUi(),10,10,null,85,0,null)}return c};this.getEditingName=function(){return $.trim(D.getText())};this.getEditingDisplay=
function(){return $.trim(U.getText())};this.getEditingAffectedTargets=function(){return O.getSettingResult()}}function Cb(){var c,D,U,C=new xa,O=new Pa;this.setContext=function(K){};this.setSettingModel=function(K){c=[];D=[];if(K){var ia=new Aa,Y={};K.toJsonObject(Y);ia.fromJsonObject(Y);K=0;for(Y=ia.getItemCount();K<Y;K++){var fa=ia.getItem(K);(fa.getType()==W.AffectedType_Hotlink?c:D).push(fa)}}0==c.length&&(fa=Aa.createItem(W.AffectedType_Hotlink),c.push(fa));O.setText(c[0].getUrl());C.setSelected(c[0].getMode()?
c[0].getMode():"default")};this.getJqUi=function(){if(!U){var K=new qa(f.get("hotlinkMode","\u6253\u5f00\u65b9\u5f0f")),ia=new qa("URL");C.setItemModels(["default","biz"]);C.setCustomPainter(function(Y,fa,e){Y="default"==e?f.get("hotlinkModeA","\u4f18\u5148\u5c1d\u8bd5\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u9875\u7b7e"):"biz"==e?f.get("hotlinkModeB","\u4f18\u5148\u5c1d\u8bd5\u5728\u5e94\u7528\u4e2d\u6253\u5f00\u9875\u7b7e"):e;fa.text(Y)});C.addSelectedChangedListener(function(Y,fa,e){c[0].setMode("default"==
e?null:e)});O.addEditedListener(function(Y){c[0].setUrl($.trim(Y.getText()))});U=$("<div>");U.append(K.getJqUi());U.append(C.getJqUi());U.append(ia.getJqUi());U.append(O.getJqUi());p.layoutCtrlWithLRTB(K.getJqUi(),0,0,null,0,null,23);p.layoutCtrlWithLRTB(C.getJqUi(),0,0,null,25,null,23);p.layoutCtrlWithLRTB(ia.getJqUi(),0,0,null,60,null,23);p.layoutCtrlWithLRTB(O.getJqUi(),0,0,null,85,10,null)}return U};this.getSettingResult=function(){for(var K=new Aa,ia=0;ia<c.length;ia++)K.addItem(c[ia]);for(ia=
0;ia<D.length;ia++)K.addItem(D[ia]);return K}}function wa(){var c;this.setContext=function(D){c=D};this.getModelType=function(){throw Error("Override");};this.createJqUi=function(D){throw Error("Override");};this.applySettingResult=function(D){throw Error("Override");};this.into=function(){};this.protectedMethod={getPage:function(){return c.getDashboardModel().getPage()},createFacade:function(D,U){return c.createFacade(D,U)}}}function gb(){wa.call(this);var c,D,U;this.createJqUi=function(e){c=$("<div>");
D=Ib.createTable();D.getCellRender().setOutsideVisible(!1);Ib.bindTextEditor(D,K,ia);Ib.bindTableListenerForCtrl(D,Y);D.addColumns(3);D.getColumn(0).setWidth(200);D.getColumn(1).setWidth(200);D.getColumn(2).setWidth(100);var g=Ib.createHeadRow(D);g.getCell(0).setValue(f.get("filterSourceCustomValue","\u503c"));g.getCell(1).setValue(f.get("filterSourceCustomText","\u663e\u793a\u503c"));g=$(D.getUI());g.appendTo(c);p.layoutCtrlWithLRTB(g,0,0,null,0,0,null);O(e);return c};this.into=function(){Ib.refresh(D)};
this.getModelType=function(){return ta.TYPE_CustomList};this.applySettingResult=function(e){C(e,!1)};var C=function(e,g){for(var y=0,u=Ib.getHeadRowCount(),G=D.getRowsCount();u<G;u++){var Z=D.getRow(u),pa=Z.getCell(0).getValue();Z=Z.getCell(1).getValue();var Ga=pa||Z;(g||Ga)&&e.addItem(pa,Z);Ga&&(y=u)}if(g)for(u=g=y+1,G=e.getItemsCount();u<G;u++)e.deleteItem(g)},O=function(e){D.setSyncUIWhenModelChanged(!1);Ib.clearWithoutHead(D);for(var g=e?e.getItemsCount():0,y=Math.max(8,g+2),u=0;u<y;u++){var G=
"",Z="";u<g&&(G=e.getItemValue(u),Z=e.getItemText(u));var pa=Ib.createRow(D);pa.getCell(0).setValue(G);pa.getCell(1).setValue(Z)}Ib.refresh(D);D.setSyncUIWhenModelChanged(!0)},K=function(e,g){return 0==g||1==g},ia=function(e,g,y,u,G){y.setValue(u);return!0},Y=function(e,g,y,u){e=null;if(g){e=D.searchJqCell(y,2);var G=y-Ib.getHeadRowCount();fa(e,f.get("insertRow","\u63d2\u5165"),function(Z){Z=ta.createInstance(ta.TYPE_CustomList);C(Z,!0);Z.insertItem(G,"","");O(Z)});fa(e,f.get("deleteRow","\u5220\u9664"),
function(Z){Z=ta.createInstance(ta.TYPE_CustomList);C(Z,!0);Z.deleteItem(G);O(Z)})}else U&&U.empty();U=e},fa=function(e,g,y){var u=$("<div>");u.text(g);u.css({display:"inline-block",position:"relative",width:"40px","line-height":"20px",margin:"4px","text-align":"center",border:"1px solid #39f",color:"#39f",cursor:"pointer"});u.on("click",y);u.appendTo(e)}}function sb(){wa.call(this);var c=this.protectedMethod,D,U,C,O,K,ia,Y,fa,e,g,y;this.createJqUi=function(r){u();Z(r);return D};this.getModelType=
function(){return ta.TYPE_VisualWidget};this.applySettingResult=function(r){var z=U.getSelected();z?(r.setSourceWidgetName(z.getName()),r.setMetaFieldFullName(C.getSelected()),r.setDisplayMetaFieldFullName(ia.isChecked()?fa.getSelected():null),r.setOrderByMetaFieldFullName(Y.isChecked()?e.getSelected():null),r.setOrderByAsc(y.getSelected())):(r.setSourceWidgetName(null),r.setMetaFieldFullName(null),r.setDisplayMetaFieldFullName(null),r.setOrderByMetaFieldFullName(null),r.setOrderByAsc(!0))};var u=
function(){U=new xa;U.setCustomPainter(function(aa,v,t){aa?t&&v.text(t.getDisplayName()):t&&ac.paint(t,v)});U.addSelectedChangedListener(Va);C=new A;fa=new A;e=new A;O=new kc;O.setText(f.get("filterSourceRefAdvancedButton","\u9ad8\u7ea7\u8bbe\u7f6e\u9879")+"...");O.getJqUi().css("text-align","left");O.addActionListener(function(aa){ra(!0)});ia=new Kb;ia.setText(f.get("filterSourceRefWidgetMeta2","\u663e\u793a\u5b57\u6bb5"));ia.addCheckedListener(Ga);Y=new Kb;Y.setText(f.get("filterSourceRefWidgetMeta3",
"\u6392\u5e8f\u5b57\u6bb5"));Y.addCheckedListener(Ga);y=new xa;y.setCustomPainter(Q);var r=new qa(f.get("filterSourceRefBasic","\u57fa\u672c\uff1a"));K=new qa(f.get("filterSourceRefAdvanced","\u9ad8\u7ea7\uff1a"));var z=new qa(f.get("filterSourceRefWidget","\u7ec4\u4ef6")),I=new qa(f.get("filterSourceRefWidgetMeta1","\u5b57\u6bb5"));g=new qa(f.get("filterSourceOrderBy","\u6392\u5e8f"));D=$("<div>");D.append(r.getJqUi());D.append(K.getJqUi());D.append(O.getJqUi());p.layoutCtrl(r.getJqUi(),0,0,100,
23);p.layoutCtrl(K.getJqUi(),0,99,100,23);p.layoutCtrl(O.getJqUi(),0,99,120,23);G(z,U,33);G(I,C,66);G(ia,fa,132);G(Y,e,165);G(g,y,198);ra(!1)},G=function(r,z,I){D.append(r.getJqUi());D.append(z.getJqUi());p.layoutCtrl(r.getJqUi(),40,I,106,23);p.layoutCtrl(z.getJqUi(),140,I,320,23)},Z=function(r){var z=r?r.getSourceWidgetName():null,I=r?r.isOrderByAsc():!0,aa=null,v=[];c.getPage().traversalMeAndDescendents(function(t){t.isInstanceOf(W.WidgetSuperType_BuiltinVisual)&&(v.push(t),t.getName()==z&&(aa=
t))});U.setItemModels(v);r?(U.setSelected(aa),Ya(aa,!0,function(){var t=r.getDisplayMetaFieldFullName()?!0:!1,L=r.getOrderByMetaFieldFullName()?!0:!1;C.setSelected(r.getMetaFieldFullName());fa.setSelected(r.getDisplayMetaFieldFullName());e.setSelected(r.getOrderByMetaFieldFullName());ia.setChecked(t);Y.setChecked(L);fa.setEnabled(ia.isChecked());e.setEnabled(Y.isChecked());ra(t||L||!I)})):(Ya(null,!0),ia.setChecked(!1),Y.setChecked(!1),fa.setEnabled(ia.isChecked()),e.setEnabled(Y.isChecked()),ra(!1));
pa(I)},pa=function(r){y.setItemModels([!0,!1]);y.setSelected(r)},Ga=function(r,z){(r==ia?fa:r==Y?e:null).setEnabled(r.isChecked());pa(y.getSelected())},Va=function(r,z,I){Ya(I,!1,function(){C.setSelected(null);fa.setSelected(null);e.setSelected(null)})},Ya=function(r,z,I){if(r){var aa=r.getExecutingTag();if(aa){var v=c.createFacade(function(t){sa(t,C,[V.DT_STRING]);sa(t,fa,[V.DT_STRING]);sa(t,e,[V.DT_STRING,V.DT_NUMBER]);I&&I()});v.setShowBlocking(!1);v.getWidgetBoundMeta(aa)}else setTimeout(function(){La(r,
z)},0)}else sa(null,C),sa(null,fa),sa(null,e)},sa=function(r,z,I){var aa=new P;r&&aa.fromJsonObject(r);z.setModel(aa,I)},La=function(r,z){var I=f.get("filterSourceRefWidgetPrompt","\u201c#1\u201d\u6570\u636e\u672a\u51c6\u5907\u597d\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002");I=I.replace("#1",r.getDisplayName());r=new nc;z||r.setConfirmedListener(function(aa){U.setSelected(null)});r.setText(I);r.show(U.getJqUi(),!0)},Q=function(r,z,I){var aa;Y.isChecked()?aa=f.get("filterSourceOrderByWhat","\u6309#1").replace("#1",
f.get("filterSourceRefWidgetMeta3","\u6392\u5e8f\u5b57\u6bb5")):ia.isChecked()&&(aa=f.get("filterSourceOrderByWhat","\u6309#1").replace("#1",f.get("filterSourceRefWidgetMeta2","\u663e\u793a\u5b57\u6bb5")));r=I?f.get("filterSourceOrderByAsc","ASC"):f.get("filterSourceOrderByDesc","DESC");z.text(r+(aa?"--"+aa:""))},ra=function(r){O.getJqUi().css("display",r?"none":"");r=r?"":"none";K.getJqUi().css("display",r);ia.getJqUi().css("display",r);fa.getJqUi().css("display",r);Y.getJqUi().css("display",r);
e.getJqUi().css("display",r);g.getJqUi().css("display",r);y.getJqUi().css("display",r)}}function Gb(){function c(){var g,y,u,G=!0;this.getTargetWidgetName=function(){return g};this.setTargetWidgetName=function(Z){g=Z};this.getMetaFieldFullName=function(){return y};this.setMetaFieldFullName=function(Z){y=Z};this.getParamName=function(){return u};this.setParamName=function(Z){u=Z};this.isBindingField=function(){return G};this.markBindingField=function(Z){G=Z}}function D(){da.AbstractOneItemPanel.call(this);
var g=this,y,u,G,Z,pa,Ga,Va,Ya,sa=null;this.setModel=function(va){y=va};this.isEditingParamNameInvalid=function(){return pa.isChecked()&&!g.protectedIsEditingParamNameValid()};this.protectedIsEditingParamNameValid=function(){throw Error("Implement");};this.protectedGetHeight=function(){return 110+30*(g.protectedBindParamDetailUiRows()-1)};this.protectedInitJqUi=function(va){var db=new qa(f.get("affectedTargetWidget","\u7ec4\u4ef6"));G=new qa(f.get("affectedTargetType","\u4f5c\u7528\u65b9\u5f0f"));
u=new xa;u.setCustomPainter(function(Xb,gc,Bc){Xb?Bc&&gc.text(Bc.getDisplayName()):Bc&&ac.paint(Bc,gc)});u.addSelectedChangedListener(r);Z=new Oa;Z.setText(f.get("affectedTargetTypeMeta","\u7ed1\u5b9a\u5b57\u6bb5\u4f5c\u4e3a\u7b5b\u9009\u5668"));pa=new Oa;pa.setText(f.get("affectedTargetTypeParam","\u53c2\u6570"));var Jb=new Za;Jb.addElement(Z);Jb.addElement(pa);Jb.addChangedListener(z);La();Jb=30*(g.protectedBindParamDetailUiRows()-1)+23;va.append(db.getJqUi());va.append(u.getJqUi());va.append(G.getJqUi());
va.append(Z.getJqUi());va.append(pa.getJqUi());va.append(Ga);va.append(Va);p.layoutCtrlWithLRTB(db.getJqUi(),0,null,72,6,null,23);p.layoutCtrlWithLRTB(G.getJqUi(),0,null,72,36,null,23);p.layoutCtrlWithLRTB(u.getJqUi(),72,100,null,6,null,23);p.layoutCtrlWithLRTB(Ga,0,100,null,66,null,23);p.layoutCtrlWithLRTB(Va,0,100,null,66,null,Jb);aa()};var La=function(){var va=new qa;va.setText(f.get("affectedTargetWidgetMeta","\u5b57\u6bb5"));Ya=new A;Ya.setSelectedListener(I);Ga=$("<div>");Ga.append(va.getJqUi());
Ga.append(Ya.getJqUi());p.layoutCtrlWithLRTB(va.getJqUi(),0,null,72,0,null,23);p.layoutCtrlWithLRTB(Ya.getJqUi(),72,0,null,0,null,23);Va=$("<div>");g.protectedInitBindParamDetailUi(Va,y,function(){return ya(!0)})};this.protectedBindParamDetailUiRows=function(){throw Error("Implement");};this.protectedInitBindParamDetailUi=function(va,db,Jb){throw Error("Implement");};this.protectedPrepareCtrlState=function(va){throw Error("Implement");};var Q=function(va,db){var Jb=va.css("display");db&&"none"==Jb?
(db=va.data("myOriDisplay"),va.css("display",db)):db||"none"==Jb||(va.data("myOriDisplay",Jb),va.css("display","none"))},ra=function(va,db){Q(va.getJqUi(),db)},r=function(va,db,Jb){y.setTargetWidgetName(Jb?Jb.getName():null);y.setMetaFieldFullName(null);y.setParamName(null);v(Jb)},z=function(va,db){db&&L(va)},I=function(){y.setMetaFieldFullName(Ya.getSelected())},aa=function(){var va=null,db=[];K.getTopPage().traversalMeAndDescendents(function(Qc){if(Qc!=K){var Xc=Y(Qc);if(0<=Xc){var Tc=db[Xc];Tc||
(Tc=[],db[Xc]=Tc);Tc.push(Qc);y.getTargetWidgetName()==Qc.getName()&&(va=Qc)}}});for(var Jb=[],Xb=0;Xb<db.length;Xb++){var gc=db[Xb];if(gc)for(var Bc=0;Bc<gc.length;Bc++)Jb.push(gc[Bc])}u.setItemModels(Jb);u.setSelected(va);v(va)},v=function(va){if(va){var db=y.getMetaFieldFullName()?!0:!1,Jb=y.getParamName()?!0:!1;ra(G,!0);var Xb=null,gc=0,Bc=72,Qc=W.AffectedType_BindField;(va.getAffectedParamType()&Qc)==Qc?(t(Z,Bc,db),Xb=Z,gc++,Bc+=168):ra(Z,!1);K.getSourceDataType()==V.DT_STRING||K.getSourceDataType()==
V.DT_DATE?(Qc=W.AffectedType_Param,va=(va.getAffectedParamType()&Qc)==Qc):va=!1;va?(t(pa,Bc,Jb),!Xb&&(Xb=pa),gc++):ra(pa,!1);1==gc&&Xb.setEnabled(!1);db||Jb||(Xb.setChecked(!0),L(Xb))}else ra(G,!1),ra(Z,!1),ra(pa,!1),L(null)},t=function(va,db,Jb){va.setEnabled(!0);ra(va,!0);p.layoutCtrlWithLRTB(va.getJqUi(),db,null,160,36,null,23);Jb&&(va.setChecked(!0),L(va))},L=function(va){Q(Ga,va==Z?!0:!1);Q(Va,va==pa?!0:!1);va==Z?(F(),y.markBindingField(!0)):va==pa&&(g.protectedPrepareCtrlState(y),y.markBindingField(!1));
ya(va==pa?!0:!1)},F=function(){var va=u.getSelected();if(va){if(sa==va)return;sa=va;if(va=va.getOriginatedExecutingTag()){Ya.setModel(new P);var db=ia(function(Jb){var Xb=new P;Xb.fromJsonObject(Jb);Ya.setModel(Xb,[K.getSourceDataType()]);Ya.setSelected(y.getMetaFieldFullName())},function(Jb,Xb){sa=null});db.setShowBlocking(!1);db.getWidgetBoundMeta(va);return}}Ya.setModel(new P);Ya.setSelected(y.getMetaFieldFullName())},ya=function(va){Va.parent().find(".dsb-setting-affectedtarget-prompt").remove();
if(va&&pa.isChecked()&&!g.protectedIsEditingParamNameValid()){va=$("<div>");va.addClass("dsb-setting-affectedtarget-prompt");va.css("color","#c00");va.text(f.get("affectedTargetParamNamePrompt","\u53c2\u6570\u540d\u79f0\u5fc5\u987b\u4ee5\u5b57\u6bcd\u5f00\u5934\uff0c\u53ea\u80fd\u5305\u542b\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e0b\u5212\u7ebf\u3002"));var db=90+30*(g.protectedBindParamDetailUiRows()-1);p.layoutCtrlWithLRTB(va,72,100,null,db,null,20);Va.parent().append(va);return!1}return!0};!this.protectedMethod&&
(this.protectedMethod={});this.protectedMethod.setCtrlVisible=ra;this.protectedMethod.isParamNameValid=function(va){return cb.checkVariableNaming(va)}}function U(){D.call(this);var g=this.protectedMethod,y;this.protectedBindParamDetailUiRows=function(){return 1};this.protectedInitBindParamDetailUi=function(u,G,Z){var pa=new qa;pa.setText(f.get("affectedTargetParamName","\u53c2\u6570\u540d\u79f0"));y=new ib;y.addEditedListener(function(Ga){Z()&&G.setParamName($.trim(y.getText()))});u.append(pa.getJqUi());
u.append(y.getJqUi());p.layoutCtrlWithLRTB(pa.getJqUi(),0,null,72,0,null,23);p.layoutCtrlWithLRTB(y.getJqUi(),72,0,null,0,null,23)};this.protectedPrepareCtrlState=function(u){u=u.getParamName();y.setText(u?u:"")};this.protectedIsEditingParamNameValid=function(){var u=$.trim(y.getText());return!u||g.isParamNameValid(u)}}function C(g){D.call(this);var y=this.protectedMethod,u,G,Z,pa,Ga,Va;this.protectedBindParamDetailUiRows=function(){return 2};this.protectedInitBindParamDetailUi=function(La,Q,ra){var r=
new qa;r.setText(f.get("dateParamType","\u53c2\u6570\u7c7b\u578b"));u=new xa;u.setItemModels(g?[1,2]:[2]);u.setCustomPainter(function(aa,v,t){v.text(1==t?f.get("dateParamType1","\u6309\u65f6\u95f4\u7c92\u5ea6\u5bf9\u5e94\u4e00\u4e2a\u53c2\u6570"):2==t?f.get("dateParamType2","\u6309\u65e5\u671f\u8303\u56f4\u5bf9\u5e94\u4e8c\u4e2a\u53c2\u6570"):"")});u.addSelectedChangedListener(function(aa,v,t){Ya(2==t);ra()});!g&&u.setEnabled(!1);var z=new qa;z.setText(f.get("affectedTargetParamName","\u53c2\u6570\u540d\u79f0"));
G=new ib;G.addEditedListener(function(aa){ra()&&Q.setParamName($.trim(G.getText()))});Z=new qa;Z.setText(f.get("dateParamType2Caption1","\uff08\u8d77\uff09"));Ga=new qa;Ga.setText(f.get("dateParamType2Caption2","\uff08\u6b62\uff09"));pa=new ib;pa.addEditedListener(function(aa){ra()&&Q.setParamName(Aa.encodeDoubleParamName($.trim(pa.getText()),$.trim(Va.getText())))});Va=new ib;Va.addEditedListener(function(aa){ra()&&Q.setParamName(Aa.encodeDoubleParamName($.trim(pa.getText()),$.trim(Va.getText())))});
var I=new Ab;I.setTipsHtml(sa());La.append(r.getJqUi());La.append(u.getJqUi());La.append(z.getJqUi());La.append(G.getJqUi());La.append(Z.getJqUi());La.append(pa.getJqUi());La.append(Ga.getJqUi());La.append(Va.getJqUi());La.append(I.getJqUi());p.layoutCtrlWithLRTB(r.getJqUi(),0,null,72,0,null,23);p.layoutCtrlWithLRTB(u.getJqUi(),72,0,null,0,null,23);p.layoutCtrlWithLRTB(I.getJqUi(),null,-20,16,4,null,16);p.layoutCtrlWithLRTB(z.getJqUi(),0,null,72,30,null,23);p.layoutCtrlWithLRTB(G.getJqUi(),72,0,null,
30,null,23);p.layoutCtrlWithLRTB(pa.getJqUi(),72,null,132,30,null,23);p.layoutCtrlWithLRTB(Z.getJqUi(),204,null,60,30,null,23);p.layoutCtrlWithLRTB(Va.getJqUi(),null,60,132,30,null,23);p.layoutCtrlWithLRTB(Ga.getJqUi(),null,0,60,30,null,23)};this.protectedPrepareCtrlState=function(La){var Q=(La=La.getParamName())&&Aa.isDoubleParamName(La)||!g;u.setSelected(Q?2:1);Ya(Q);Q?(La=Aa.decodeDoubleParamName(La?La:""),pa.setText(La[0]),Va.setText(La[1])):G.setText(La?La:"")};this.protectedIsEditingParamNameValid=
function(){if(2==u.getSelected()){var La=$.trim(pa.getText()),Q=$.trim(Va.getText());La=!La||y.isParamNameValid(La);Q=!Q||y.isParamNameValid(Q);return La&&Q}Q=$.trim(G.getText());return!Q||y.isParamNameValid(Q)};var Ya=function(La){y.setCtrlVisible(G,!La);y.setCtrlVisible(Z,La);y.setCtrlVisible(pa,La);y.setCtrlVisible(Ga,La);y.setCtrlVisible(Va,La)},sa=function(){var La=function(L){var F=$("<tr>");F.appendTo(L);return F},Q=function(L,F,ya){var va=$("<td>");va.text(F);va.css({border:"1px solid #ccc",
padding:"4px 4px"});va.appendTo(L);if(ya)for(var db in ya)va.attr(db,ya[db]);return va},ra=new ha,r=new Date(2024,7,1),z=function(L,F){ra.setFormatString(L);var ya='"'+ra.format(r)+'"';ra.setFormatString(F);F=ra.format(r);var va=f.get("dateParamHelpExampleStructure","#1\uff0c\u4f8b\u5982#2\uff0c\u6307#3\u3002");return va=va.replace("#1",L).replace("#2",ya).replace("#3",F)},I=$("<div>");I.text(f.get("dateParamHelpText","\u53c2\u6570\u503c\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u7531\u82e5\u5e72\u4f4d\u6570\u5b57\u7ec4\u6210\u3002"));
I.css({"font-weight":"bold"});var aa=$("<table>");aa.css({"border-collapse":"collapse",margin:"6px 0px"});var v=La(aa);Q(v,f.get("dateParamHelpHead0","\u7ec4\u4ef6"),{rowspan:2});Q(v,f.get("dateParamType1","\u6309\u65f6\u95f4\u7c92\u5ea6\u5bf9\u5e94\u4e00\u4e2a\u53c2\u6570"),{colspan:2});Q(v,f.get("dateParamType2","\u6309\u65e5\u671f\u8303\u56f4\u5bf9\u5e94\u4e24\u4e2a\u53c2\u6570"),{colspan:2});v=La(aa);Q(v,f.get("dateParamHelpHead1","\u53c2\u6570\u503c\u4f4d\u6570"));Q(v,f.get("dateParamHelpHead2",
"\u53c2\u6570\u503c\u683c\u5f0f"));Q(v,f.get("dateParamHelpHead1","\u53c2\u6570\u503c\u4f4d\u6570"));Q(v,f.get("dateParamHelpHead2","\u53c2\u6570\u503c\u683c\u5f0f"));v=La(aa);Q(v,f.get("widgetCalendarYear","\u65e5\u671f-\u5e74"));Q(v,"4");Q(v,"yyyy");Q(v,"8",{rowspan:5});Q(v,"yyyyMMdd",{rowspan:5});v=La(aa);Q(v,f.get("widgetCalendarQuarter","\u65e5\u671f-\u5e74\u5b63"));Q(v,"5");Q(v,"yyyyq");v=La(aa);Q(v,f.get("widgetCalendarMonth","\u65e5\u671f-\u5e74\u6708"));Q(v,"6");Q(v,"yyyyMM");v=La(aa);Q(v,
f.get("widgetCalendarDay","\u65e5\u671f-\u5e74\u6708\u65e5"));Q(v,"8");Q(v,"yyyyMMdd");La=La(aa);Q(La,f.get("widgetCalendar","\u65e5\u671f-\u65e5\u671f\u8303\u56f4"));Q(La,f.get("dateParamHelpNone","\u65e0"),{colspan:2});Q=$("<div>");Q.text(z("yyyy",f.get("dateParamHelpFormat1","yyyy\u5e74")));La=$("<div>");La.text(z("yyyyq",f.get("dateParamHelpFormat2","yyyy\u5e74\u7b2cq\u5b63\u5ea6")));v=$("<div>");v.text(z("yyyyMM",f.get("dateParamHelpFormat3","yyyy\u5e74M\u6708")));var t=$("<div>");t.text(z("yyyyMMdd",
f.get("dateParamHelpFormat4","yyyy\u5e74M\u6708d\u65e5")));z=$("<div>");z.append(I);z.append(aa);z.append(Q);z.append(La);z.append(v);z.append(t);return z.html()}}da.call(this);var O=this.protectedMethod,K,ia,Y,fa,e;this.setContext=function(g,y,u){K=g;ia=y;Y=u;fa=[];e=[];if(y=K.getAffectedTargets())for(g=new Aa,u={},y.toJsonObject(u),g.fromJsonObject(u),y=0,u=g.getItemCount();y<u;y++){var G=g.getItem(y);if(G.getType()==W.AffectedType_BindField||G.getType()==W.AffectedType_Param){var Z=new c;Z.setTargetWidgetName(G.getTargetWidgetName());
if(G.getType()==W.AffectedType_BindField)Z.markBindingField(!0),Z.setMetaFieldFullName(G.getMetaFieldFullName());else if(G.getType()==W.AffectedType_Param)Z.markBindingField(!1),Z.setParamName(G.getParamName());else throw Error("Modify here");fa.push(Z)}else e.push(G)}};this.checkSettingResult=function(){var g=null;O.visitAllItemPanel(function(y,u){return y.isEditingParamNameInvalid()?(g=f.get("affectedTargetIllegalParamName","\u53c2\u6570\u540d\u79f0\u5305\u542b\u975e\u6cd5\u5b57\u7b26"),O.scrollItemUiToVisible(u,
function(){}),!0):!1});return g};this.getSettingResult=function(){for(var g=new Aa,y=0;y<fa.length;y++){var u=fa[y];if(u.isBindingField()){var G=Aa.createItem(W.AffectedType_BindField);G.setMetaFieldFullName(u.getMetaFieldFullName())}else G=Aa.createItem(W.AffectedType_Param),G.setParamName(u.getParamName());G.setTargetWidgetName(u.getTargetWidgetName());g.addItem(G)}for(y=0;y<e.length;y++)G=e[y],g.addItem(G);return g};this.protectedGetAddButtonText=function(){return f.get("affectedTargetAdd","\u6dfb\u52a0\u76ee\u6807\u7ec4\u4ef6")};
this.protectedUpdateUiImpl=function(){O.clearAllItemUi();for(var g=0;g<fa.length;g++)O.appendItemUi(fa[g])};this.protectedCreateOneItemPanel=function(g){var y=K.getSourceDataType()==V.DT_DATE,u=!(K instanceof rb);y=y?new C(u):new U;y.setModel(g);return y};this.protectedAddItemAction=function(){var g=new c;fa.push(g);O.appendItemUi(g)};this.protectedDeleteItemModel=function(g){fa.splice(g,1)}}function Ob(){function c(){da.AbstractOneItemPanel.call(this);var K,ia,Y,fa,e;this.setModel=function(pa){K=
pa};this.protectedGetHeight=function(){return 100};this.protectedInitJqUi=function(pa){var Ga=new qa(f.get("tabSwitchTargetWidget","\u9875\u7b7e\u63a7\u4ef6")),Va=new qa(f.get("tabSwitchTargetSubTabbed","\u5207\u6362\u5230\u9875\u7b7e"));ia=new xa;ia.setCustomPainter(function(sa,La,Q){Q&&La.text(Q.getDisplayName())});ia.addSelectedChangedListener(u);Y=new Oa;Y.setText("");fa=new Oa;fa.setText(f.get("tabSwitchTargetMatching","\u6309\u9009\u4e2d\u503c"));var Ya=new Za;Ya.addElement(Y);Ya.addElement(fa);
Ya.addChangedListener(G);e=new xa;e.setCustomPainter(function(sa,La,Q){sa="";var ra=ia.getSelected();Q&&ra&&(Q>ra.getWidgetCount()?sa=f.get("tabSwitchTargetIndexNotExist","(\u4e0d\u5b58\u5728\u7b2c#1\u4e2a\u9875\u7b7e)").replace("#1",Q):(sa=ra.getWidget(Q-1).getHeadText(),sa=f.get("tabSwitchTargetIndex","#2 (\u7b2c#1\u4e2a\u9875\u7b7e)").replace("#1",Q).replace("#2",sa)));La.text(sa)});e.addSelectedChangedListener(Z);pa.append(Ga.getJqUi());pa.append(ia.getJqUi());pa.append(Va.getJqUi());pa.append(Y.getJqUi());
pa.append(fa.getJqUi());pa.append(e.getJqUi());p.layoutCtrlWithLRTB(Ga.getJqUi(),0,null,100,6,null,23);p.layoutCtrlWithLRTB(ia.getJqUi(),100,100,null,6,null,23);p.layoutCtrlWithLRTB(Va.getJqUi(),0,null,100,36,null,23);p.layoutCtrlWithLRTB(Y.getJqUi(),100,null,20,36,null,23);p.layoutCtrlWithLRTB(e.getJqUi(),116,100,null,36,null,23);p.layoutCtrlWithLRTB(fa.getJqUi(),100,100,null,66,null,23);g()};var g=function(){var pa=null,Ga=[];U.traversalMeAndDescendents(function(Va){Va.getWidgetTypeName()==W.WidgetType_TabbedContainer&&
(Ga.push(Va),K.getTargetWidgetName()==Va.getName()&&(pa=Va))});ia.setItemModels(Ga);ia.setSelected(pa);y(pa)},y=function(pa){var Ga=[];if(pa)for(var Va=0;Va<pa.getWidgetCount();Va++)Ga.push(Va+1);e.setItemModels(Ga);e.setSelected(K.getTabIndex()+1);0>K.getTabIndex()?fa.setChecked(!0):Y.setChecked(!0)},u=function(pa,Ga,Va){K.setTargetWidgetName(Va?Va.getName():null);K.setTabIndex(0);y(Va)},G=function(pa,Ga){Ga&&(Y.isChecked()?(pa=e.getSelected(),pa||(pa=1,e.setSelected(pa)),K.setTabIndex(pa-1)):K.setTabIndex(-1))},
Z=function(pa,Ga,Va){pa=e.getSelected();K.setTabIndex(pa?pa-1:0);Y.setChecked(!0)}}da.call(this);var D=this.protectedMethod,U,C,O;this.setContext=function(K){U=K};this.setSettingModel=function(K){C=[];O=[];if(K){var ia=new Aa,Y={};K.toJsonObject(Y);ia.fromJsonObject(Y);K=0;for(Y=ia.getItemCount();K<Y;K++){var fa=ia.getItem(K);(fa.getType()==W.AffectedType_Tab?C:O).push(fa)}}D.updateUi()};this.getSettingResult=function(){for(var K=new Aa,ia=0;ia<C.length;ia++)K.addItem(C[ia]);for(ia=0;ia<O.length;ia++)K.addItem(O[ia]);
return K};this.protectedGetAddButtonText=function(){return f.get("affectedTargetAdd","\u6dfb\u52a0\u76ee\u6807\u7ec4\u4ef6")};this.protectedUpdateUiImpl=function(){D.clearAllItemUi();for(var K=0;K<C.length;K++)D.appendItemUi(C[K])};this.protectedCreateOneItemPanel=function(K){var ia=new c;ia.setModel(K);return ia};this.protectedAddItemAction=function(){var K=Aa.createItem(W.AffectedType_Tab);C.push(K);D.appendItemUi(K)};this.protectedDeleteItemModel=function(K){C.splice(K,1)}}function Vb(){Ba.call(this);
var c=this,D=this.protectedMethod,U,C,O,K=this.showDialog;this.showDialog=function(e,g,y){U=g;c.setSize(640,480);D.setTitle(f.get("dateRangeInitialDialogTitle","\u201c#1\u201d\u7684\u521d\u59cb\u503c").replace("#1",g.getDisplayName()));D.setContentPaneCreator(ia);D.setClosingAction(function(u){if(u){var G=O.isChecked();u=[null];var Z=fa(u);Z?(u=u[0],e.createFacade(function(pa){y(!0,pa.fromDate,pa.toDate,Z,G)}).parseRelativePeriod(Z,u)):(u=c.protectedGetEditingAbsoluteModel(),y(!0,u[0],u[1],Z,G))}else y(!1)});
K();Y()};var ia=function(){C=new cc;C.addItem("absolute",120,c.protectedCreateAbsoluteJqUi(U),f.get("dateRangeAbsolute","\u6307\u5b9a\u65e5\u671f"));C.addItem("relative",120,c.protectedCreateRelativeJqUi(U),f.get("dateRangeRelative","\u76f8\u5bf9\u65e5\u671f"));C.setSelectedChangedListener(function(y,u,G){"absolute"==u&&c.protectedIntoAbsoluteUi();"relative"==u&&c.protectedIntoRelativeUi()});O=new Kb;O.setText(f.get("dateRangeContainNull","\u5305\u542b\u7a7a\u503c"));var e=O.getJqUi();p.layoutCtrlWithLRTB(C.getJqUi(),
0,0,null,0,26,null);p.layoutCtrlWithLRTB(e,0,null,200,null,0,23);var g=$("<div>");g.append(C.getJqUi());g.append(e);return g};this.protectedCreateAbsoluteJqUi=function(e){throw Error("Implement");};this.protectedIntoAbsoluteUi=function(){};this.protectedCreateRelativeJqUi=function(e){throw Error("Implement");};this.protectedIntoRelativeUi=function(){};var Y=function(){var e=U.getRelativeModel()?!0:!1;C.setSelected(e?"relative":"absolute");O.setChecked(U.isContainNull())},fa=function(e){return"relative"==
C.getSelected()?c.protectedGetEditingRelativeModel(e):null};this.protectedGetEditingRelativeModel=function(e){throw Error("Implement");};this.protectedGetEditingAbsoluteModel=function(){throw Error("Implement");}}function Wb(){function c(){var C;this.getJqUi=function(){return O().getJqUi()};this.setDateRange=function(K,ia){K=(K?new Date(K):new Date).getFullYear();O().setSelecteds([K])};this.getDateRange=function(){var K=O().getSelecteds()[0],ia=new Date;ia.setFullYear(K,0,1);ia.setHours(0,0,0,0);
var Y=new Date;Y.setFullYear(K,11,31);Y.setHours(23,59,59,999);return[ia.getTime(),Y.getTime()]};this.into=function(){O().scrollSelectedToVisible()};var O=function(){if(!C){for(var K=[],ia=1970;2099>=ia;ia++)K.push(ia);C=new Dc;C.setToggleSelectingEnabled(!1);C.setBorderVisible(!1);C.setItemModels(K)}return C}}Vb.call(this);var D,U;this.protectedCreateAbsoluteJqUi=function(C){D=new c;D.setDateRange(C.getFromDate(),C.getToDate());return D.getJqUi()};this.protectedIntoAbsoluteUi=function(){D.into()};
this.protectedCreateRelativeJqUi=function(C){U=new nb.SimpleRelative;(C=C.getRelativeModel())?(C=C.toJsonObject(),U.fromJsonObject(C)):U.setOffset(0);C=new Eb;C.setModel(U);C.setDisplay(Wb.modelToDisplayText());return C.getJqUi()};this.protectedGetEditingRelativeModel=function(C){C[0]="y";return U};this.protectedGetEditingAbsoluteModel=function(){return D.getDateRange()}}function Rb(){function c(){var C=new Kc;this.getJqUi=function(){return C.getJqUi()};this.setDateRange=function(O,K){K=O?new Date(O):
new Date;O=K.getFullYear();K=Math.floor(K.getMonth()/3);C.setSelectedYear(O);C.setSelectedQuarter(K)};this.getDateRange=function(){var O=C.getSelectedYear(),K=C.getSelectedQuarter();return Kc.toDateRange(O,K)};this.into=function(){C.scrollSelectedToVisible()}}Vb.call(this);var D,U;this.protectedCreateAbsoluteJqUi=function(C){D=new c;D.setDateRange(C.getFromDate(),C.getToDate());return D.getJqUi()};this.protectedIntoAbsoluteUi=function(){D.into()};this.protectedCreateRelativeJqUi=function(C){U=new nb.SimpleRelative;
(C=C.getRelativeModel())?(C=C.toJsonObject(),U.fromJsonObject(C)):U.setOffset(0);C=new Eb;C.setModel(U);C.setDisplay(Rb.modelToDisplayText());return C.getJqUi()};this.protectedGetEditingRelativeModel=function(C){C[0]="q";return U};this.protectedGetEditingAbsoluteModel=function(){return D.getDateRange()}}function Tb(){function c(){var C=new Jc;this.getJqUi=function(){return C.getJqUi()};this.setDateRange=function(O,K){K=O?new Date(O):new Date;O=K.getFullYear();K=K.getMonth();C.setSelectedYear(O);C.setSelectedMonth(K+
1)};this.getDateRange=function(){var O=C.getSelectedYear(),K=C.getSelectedMonth()-1;return Jc.toDateRange(O,K)};this.into=function(){C.scrollSelectedToVisible()}}Vb.call(this);var D,U;this.protectedCreateAbsoluteJqUi=function(C){D=new c;D.setDateRange(C.getFromDate(),C.getToDate());return D.getJqUi()};this.protectedIntoAbsoluteUi=function(){D.into()};this.protectedCreateRelativeJqUi=function(C){U=new nb.SimpleRelative;(C=C.getRelativeModel())?(C=C.toJsonObject(),U.fromJsonObject(C)):U.setOffset(0);
C=new Eb;C.setModel(U);C.setDisplay(Tb.modelToDisplayText());return C.getJqUi()};this.protectedGetEditingRelativeModel=function(C){C[0]="m";return U};this.protectedGetEditingAbsoluteModel=function(){return D.getDateRange()}}function Na(){function c(){var C=new Ic;this.getJqUi=function(){return C.getJqUi()};this.setDateRange=function(O,K){var ia=O?new Date(O):new Date;O=ia.getFullYear();K=ia.getMonth();ia=ia.getDate();C.setSelected(O,K+1,ia)};this.getDateRange=function(){var O=C.getSelectedYear(),
K=C.getSelectedMonth()-1,ia=C.getSelectedDay(),Y=new Date;Y.setFullYear(O,K,ia);Y.setHours(0,0,0,0);var fa=new Date;fa.setFullYear(O,K,ia);fa.setHours(23,59,59,999);return[Y.getTime(),fa.getTime()]};this.into=function(){}}Vb.call(this);var D,U;this.protectedCreateAbsoluteJqUi=function(C){D=new c;D.setDateRange(C.getFromDate(),C.getToDate());return D.getJqUi()};this.protectedIntoAbsoluteUi=function(){D.into()};this.protectedCreateRelativeJqUi=function(C){U=new nb.SimpleRelative;(C=C.getRelativeModel())?
(C=C.toJsonObject(),U.fromJsonObject(C)):U.setOffset(0);C=new Eb;C.setModel(U);C.setDisplay(Na.modelToDisplayText());return C.getJqUi()};this.protectedGetEditingRelativeModel=function(C){C[0]="d";return U};this.protectedGetEditingAbsoluteModel=function(){return D.getDateRange()}}function Eb(){var c=new Oa,D=new Oa,U=new Oa,C=new yc,O=new yc,K,ia;this.setModel=function(e){ia=e;e=e.getOffset();0==e?(D.setChecked(!0),C.setValue(1),O.setValue(1)):0>e?(c.setChecked(!0),C.setValue(-e),O.setValue(1)):(U.setChecked(!0),
O.setValue(e),C.setValue(1));fa()};this.getJqUi=function(){!K&&Y();return K};this.setDisplay=function(e){c.setText(e[0]);D.setText(e[1]);U.setText(e[2])};var Y=function(){var e=new Za;e.addElement(c);e.addElement(D);e.addElement(U);e.addChangedListener(function(g,y){y&&(fa(),y=0,g==c?y=-C.getValue():g==U&&(y=O.getValue()),ia.setOffset(y))});C.setConstraint(1,9999,1);C.addValueChangedListener(function(g,y,u,G){ia.setOffset(-u)},!0);O.setConstraint(1,9999,1);O.addValueChangedListener(function(g,y,u,
G){ia.setOffset(u)},!0);K=$("<div>");K.append(c.getJqUi());K.append(D.getJqUi());K.append(U.getJqUi());K.append(C.getJqUi());K.append(O.getJqUi());p.layoutCtrl(c.getJqUi(),0,10,140,23);p.layoutCtrl(D.getJqUi(),0,45,140,23);p.layoutCtrl(U.getJqUi(),0,80,140,23);p.layoutCtrl(C.getJqUi(),140,10,80,23);p.layoutCtrl(O.getJqUi(),140,80,80,23)},fa=function(){C.setEnabled(c.isChecked());O.setEnabled(U.isChecked())}}function Ja(){var c;this.setContext=function(D){c=D};this.getModelType=function(){throw Error("Override");
};this.createJqUi=function(D,U){throw Error("Override");};this.applySettingResult=function(D){throw Error("Override");};this.into=function(){};this.isWaiting=function(){return!1};this.protectedMethod={createFacade:function(D,U){return c.createFacade(D,U)}}}function fb(){Ja.call(this);this.getModelType=function(){return Ma.TYPE_ByIndex};this.createJqUi=function(c,D){c=new qa(f.get("defaultSelectedByIndexDescription","\u6bcf\u6b21\u6267\u884c\u65f6\u521d\u59cb\u72b6\u6001\u4e3a\u9009\u4e2d\u5907\u9009\u503c\u7684\u7b2c\u4e00\u9879\u3002"));
D=$("<div>");D.append(c.getJqUi());p.layoutCtrlWithLRTB(c.getJqUi(),0,0,null,0,null,30);return D};this.applySettingResult=function(c){}}function ub(){function c(){var g=this,y=this.protectedMethod,u,G;this.setItems=function(Z,pa){u=Z;G={};Z=pa?pa:g.protectedGetInsteadSelecteds(u);for(pa=0;pa<Z.length;pa++)G[Z[pa].getValue()]=!0};this.acceptSelectedValue=function(){var Z=y.acceptSelectingResult();!Z&&(Z=G);for(var pa=[],Ga=!0,Va=0;Va<u.length;Va++){var Ya=u[Va].getValue();Z[Ya]?pa.push(Ya):Ga=!1}0<
u.length&&Ga&&(pa=null);return pa};this.protectedGetSelectableItems=function(){return u};this.protectedCloneSelectedValue=function(){return G};this.protectedGetInsteadSelecteds=function(Z){throw Error("Implement");}}function D(){la.call(this);c.call(this);this.protectedGetInsteadSelecteds=function(g){return 0==g.length?[]:[g[0]]}}function U(){za.call(this);c.call(this);this.protectedGetInsteadSelecteds=function(g){return g}}Ja.call(this);var C=this.protectedMethod,O,K,ia,Y,fa=!0;this.getModelType=
function(){return Ma.TYPE_ByAppointed};this.createJqUi=function(g,y){O=g;K=y;return ia=$("<div>")};this.applySettingResult=function(g){var y=Y.acceptSelectedValue();g.setAppointedValue(y)};this.isWaiting=function(){return fa};this.into=function(){Y||e(function(){var g=Y.getJqUi();g.appendTo(ia);p.layoutCtrlWithLRTB(g,0,0,null,0,0,null)})};var e=function(g){var y=O.isMultiSelectable();Y=y?new U:new D;var u=O.getFilterSource();if(u){var G=new qa(f.get("defaultSelectedByAppointedWaiting","\u6b63\u5728\u83b7\u53d6\u5907\u9009\u503c")+
"...");G.getJqUi().appendTo(ia);fa=!0;u.getPreparedValue(O,null,C.createFacade,function(Z){var pa=Z?Z:[];K?K.getItems(pa,y,function(Ga){Y.setItems(pa,Ga);g()}):(Y.setItems(pa,null),g());fa=!1;G.getJqUi().remove()})}else Y.setItems([],null),g()}}function zb(c){Ca.AbstractTabPane.call(this);var D=this,U,C;this.hookContext=function(O){C=O;C.addModelChangedListener(function(){D.protectedUpdateCtrlState()})};this.getTabHeadText=function(){return c};this.getJqUi=function(){U||(U=$("<div>"),U.css("overflow",
"auto"),D.protectedInitUi(U),D.protectedUpdateCtrlState());return U};this.protectedInitUi=function(O){};this.protectedUpdateCtrlState=function(){};this.protectedMethod={};this.protectedMethod.getModel=function(){return C.getModel()};this.protectedMethod.modified=function(){C.modified()};this.protectedMethod.layout=function(O,K,ia,Y,fa,e,g){fa=new qa(fa);var y=[fa.getJqUi(),K.getJqUi()];K.setUserObject(y);O.append(fa.getJqUi());O.append(K.getJqUi());p.layoutCtrl(fa.getJqUi(),ia,Y,160,20);p.layoutCtrl(K.getJqUi(),
ia,Y+20,160,23);e&&(y.push(e.getJqUi()),O.append(e.getJqUi()),K.getJqUi().css("width",136),p.layoutCtrl(e.getJqUi(),ia+140,Y+20,20,23));g&&y.push(g)};this.protectedMethod.updateVisible=function(O,K){K=K?"":"none";O=O.getUserObject();for(var ia=0;ia<O.length;ia++)O[ia].css("display",K)}}function hc(c){zb.call(this,c);var D=[jb.LINE_WIDE_1,jb.LINE_WIDE_2,jb.LINE_WIDE_3,jb.LINE_WIDE_4,jb.LINE_WIDE_5],U=null,C=this.protectedMethod,O,K,ia,Y,fa,e,g,y,u,G,Z,pa,Ga,Va,Ya,sa,La,Q,ra,r;this.protectedInitUi=
function(Sb){var Ub=$("<div>"),$b=aa(Ub,jb.DIR_N,[-2,-2,"50%",-2]),Db=aa(Ub,jb.DIR_S,[-2,-2,-2,"50%"]),Ac=aa(Ub,jb.DIR_W,["50%",-2,-2,-2]),wc=aa(Ub,jb.DIR_E,[-2,"50%",-2,-2]),Oc=aa(Ub,jb.DIR_NW,["50%",-2,"50%",-2]),oc=aa(Ub,jb.DIR_NE,[-2,"50%","50%",-2]),ed=aa(Ub,jb.DIR_SW,["50%",-2,-2,"50%"]),jd=aa(Ub,jb.DIR_SE,[-2,"50%",-2,"50%"]);p.layoutCtrlWithLRTB(Oc,0,null,40,0,null,40);p.layoutCtrlWithLRTB($b,50,50,null,0,null,40);p.layoutCtrlWithLRTB(oc,null,0,40,0,null,40);p.layoutCtrlWithLRTB(Ac,0,null,
40,50,50,null);p.layoutCtrlWithLRTB(wc,null,0,40,50,50,null);p.layoutCtrlWithLRTB(ed,0,null,40,null,0,40);p.layoutCtrlWithLRTB(Db,50,50,null,null,0,40);p.layoutCtrlWithLRTB(jd,null,0,40,null,0,40);O=Ub;K=$("<div>");ia=$("<div>");Sb.append(O);Sb.append(K);Sb.append(ia);p.layoutCtrlWithLRTB(O,80,100,null,20,null,140);p.layoutCtrlWithLRTB(K,0,0,null,160,0,null);p.layoutCtrlWithLRTB(ia,0,0,null,160,0,null);z();I()};this.protectedUpdateCtrlState=function(){v(O.children().eq(0))};var z=function(){Y=new xa;
Y.setItemModels([Da.TYPE_NONE,Da.TYPE_STRAIGHT,Da.TYPE_SINGLE_TURN,Da.TYPE_DOUBLE_TURN]);Y.setCustomPainter(function(Ub,$b,Db){$b.text(Tc(Db))});Y.addSelectedChangedListener(function(Ub,$b,Db){Q.setType(Db);Qc(Q);C.modified()});fa=t(!1);fa.addSelectedChangedListener(function(Ub,$b,Db){Q.setMajorLineLogicWide(Db);C.modified()});e=t(!0);e.addSelectedChangedListener(function(Ub,$b,Db){Q.setMinorLineLogicWide(Db);Bc(Q);C.modified()});g=L();y=L();u=new yc;u.setConstraint(0,100,1);u.setCustomPainter(function(Ub){return Ub+
"%"});u.addValueChangedListener(function(Ub,$b,Db,Ac){Q.setTurning(Db,Math.min(100,Db+20));C.modified()},!0);G=new Ea;G.setDropdownCreator(F);Z=new xa;Z.setItemModels([Da.FLIP_NONE,Da.FLIP_H,Da.FLIP_V,Da.FLIP_BOTH]);Z.setCustomPainter(function(Ub,$b,Db){Ub=Db==Da.FLIP_NONE?f.get("cardlookItemNone","\u65e0"):Db==Da.FLIP_H?f.get("cardlookFlipH","\u6c34\u5e73\u7ffb\u8f6c"):Db==Da.FLIP_V?f.get("cardlookFlipV","\u5782\u76f4\u7ffb\u8f6c"):Db==Da.FLIP_BOTH?f.get("cardlookFlipBoth","\u6c34\u5e73\u7ffb\u8f6c + \u5782\u76f4\u7ffb\u8f6c"):
"";$b.text(Ub)});Z.addSelectedChangedListener(function(Ub,$b,Db){Q.setFlip(Db);C.modified()});pa=new Ea;pa.setDropdownCreator(ya);var Sb=gc();Ga=new Ra;Ga.addStateChangeListener(function(Ub,$b,Db){$b&&(Q.setTitleEnhanced(Db),C.modified())});C.layout(K,Y,20,20,f.get("cardlookEdgeType","\u8fb9\u578b"));C.layout(K,fa,20,80,f.get("cardlookLineWide","\u7ebf\u5bbd"),g);C.layout(K,e,20,140,f.get("cardlookMinorLine","\u88c5\u9970\u7ebf"),y);C.layout(K,pa,20,200,f.get("cardlookCustomDecoration","\u81ea\u5b9a\u4e49\u88c5\u9970\u7ebf"),
null,Sb);C.layout(K,u,220,20,f.get("cardlookTurnPosition","\u62d0\u5f2f\u4f4d\u7f6e"));C.layout(K,G,220,20,f.get("cardlookTurnPosition","\u62d0\u5f2f\u4f4d\u7f6e"));C.layout(K,Z,220,80,f.get("cardlookFlip","\u7ffb\u8f6c"));C.layout(K,Ga,220,140,f.get("cardlookTitleEnhanced","\u6807\u9898\u680f\u5927\u62d0\u5f2f"));p.layoutCtrl(Sb,10,226,null,null);Sb.appendTo(K)},I=function(){Va=new xa;Va.setItemModels([ca.TYPE_NONE,ca.TYPE_HARD,ca.TYPE_ROUND,ca.TYPE_LEAN]);Va.setCustomPainter(function(Sb,Ub,$b){Sb=
$b==ca.TYPE_HARD?f.get("cardlookCornerTypeHard","\u76f4\u89d2"):$b==ca.TYPE_ROUND?f.get("cardlookCornerTypeRound","\u5706\u89d2"):$b==ca.TYPE_LEAN?f.get("cardlookCornerTypeLean","\u5207\u89d2"):$b==ca.TYPE_NONE?f.get("cardlookItemNone","\u65e0"):"";Ub.text(Sb)});Va.addSelectedChangedListener(function(Sb,Ub,$b){Q.setType($b);Xc(Q);C.modified()});Ya=t(!1);Ya.addSelectedChangedListener(function(Sb,Ub,$b){Q.setLineLogicWide($b);C.modified()});sa=L();La=new yc;La.setConstraint(0,10,1);La.addValueChangedListener(function(Sb,
Ub,$b,Db){Q.setRadius($b);C.modified()},!0);C.layout(ia,Va,20,20,f.get("cardlookCornerType","\u89d2\u578b"));C.layout(ia,Ya,20,80,f.get("cardlookLineWide","\u7ebf\u5bbd"),sa);C.layout(ia,La,220,20,f.get("cardlookCornerSize","\u5927\u5c0f"))},aa=function(Sb,Ub,$b){var Db=$("<div>");Db.data("q-sys-dir",Ub);Db.css({cursor:"pointer",overflow:"hidden"});Db.appendTo(Sb);Db.on("click",function(Ac){v(Db)});Sb=$("<div>");Sb.css({border:"2px solid gray"});Sb.appendTo(Db);p.layoutCtrlWithLRTB(Sb,$b[0],$b[1],
null,$b[2],$b[3],null);return Db},v=function(Sb){var Ub=Sb.data("q-sys-dir"),$b=Ub==jb.DIR_N||Ub==jb.DIR_S||Ub==jb.DIR_W||Ub==jb.DIR_E;Q=$b?C.getModel().getEdge(Ub):C.getModel().getCorner(Ub);ra=Ub;K.css("display",$b?"":"none");ia.css("display",$b?"none":"");Ub=O.children();Ub.css({"background-color":"#f7f7f7","box-shadow":""});Ub.children().css({"border-color":"#ddd"});Sb.css({"background-color":"#ddd","box-shadow":"0 0 0 2px #ccc"});Sb.children().css({"border-color":"#666"});$b?(Y.setSelected(Q.getType()),
Z.setSelected(Q.getFlip()),Ga.setOn(Q.isTitleEnhanced()),fa.setSelected(Q.getMajorLineLogicWide()),e.setSelected(Q.getMinorLineLogicWide()),Qc(Q)):(Va.setSelected(Q.getType()),La.setValue(Q.getRadius()),Ya.setSelected(Q.getLineLogicWide()),Xc(Q))},t=function(Sb){var Ub=Sb?[jb.LINE_NONE].concat(D):D,$b=new xa;$b.setItemModels(Ub);$b.setCustomPainter(function(Db,Ac,wc){var Oc=wc==jb.LINE_NONE,oc=Oc?f.get("cardlookItemNone","\u65e0"):db(wc);Ac.text(oc);Db||Oc||(Db=C.getModel().getLineThickness(wc),wc=
$("<div>"),wc.text(Db+"px"),wc.css({"text-align":"right","line-height":"16px"}),wc.appendTo(Ac),p.layoutCtrlWithLRTB(wc,null,4,40),p.layoutCtrlMiddleAlign(wc,16))});$b.refreshSelectableItems=function(){$b.setItemModels(Ub)};return $b},L=function(){var Sb=new Ea;Sb.setIconName("editor");Sb.setDropdownCreator(va);return Sb},F=function(Sb,Ub,$b,Db){Ub=new Fa;Ub.setFormatString("0%");Ub.setLimited(0,100);Ub.setValue(Q.getFirstTurning(),Q.getSecondTurning());Ub.addValueChangedListener(function(Ac){Ac=
Ac.getValue();Q.setTurning(Ac[0],Ac[1]);Jb(Q);C.modified()});$b=new kc(f.get("cardlookButtonClose","\u5173\u95ed"));$b.addActionListener(function(Ac){Db()});Sb.css("background","#fff");Sb.append(Ub.getJqUi());Sb.append($b.getJqUi());p.layoutCtrlWithLRTB(Ub.getJqUi(),10,10,null,20,46,null);p.layoutCtrlWithLRTB($b.getJqUi(),10,10,null,null,10,26);return[244,120]},ya=function(Sb,Ub,$b,Db,Ac){var wc="";Ub=function(ad){wc+=ad+"\r\n"};Ub(f.get("cardlookDecorationExplain","\u53ef\u7528\u7b26\u53f7\uff1a"));
Ub("_ \t"+f.get("cardlookDecorationExplain01","\u8c61\u5f62\u7b26\u53f7\uff0c\u5728\u88c5\u9970\u7ebf\u7684\u957f\u5ea6\u4e0a\u7559\u4e00\u4e2a\u50cf\u7d20\u7684\u7a7a\u767d\u3002"));Ub("| \t"+f.get("cardlookDecorationExplain02","\u8c61\u5f62\u7b26\u53f7\uff0c\u4ee5\u6807\u51c6\u5bbd\u5ea6\u7684\u65b9\u5f0f\u7ed8\u5236\u4e00\u4e2a\u50cf\u7d20\u7684\u957f\u5ea6\u3002"));Ub("/ \t"+f.get("cardlookDecorationExplain03","\u8c61\u5f62\u7b26\u53f7\uff0c\u4ee5\u5bbd\u5ea6\u503e\u659c\u7684\u65b9\u5f0f\u7ed8\u5236\u4e00\u4e2a\u50cf\u7d20\u7684\u957f\u5ea6\u3002"));
Ub("\\\t"+f.get("cardlookDecorationExplain04","\u8c61\u5f62\u7b26\u53f7\uff0c\u4ee5\u5bbd\u5ea6\u53cd\u5411\u503e\u659c\u7684\u65b9\u5f0f\u7ed8\u5236\u4e00\u4e2a\u50cf\u7d20\u7684\u957f\u5ea6\u3002"));Ub("O \t"+f.get("cardlookDecorationExplain05","\u8c61\u5f62\u7b26\u53f7\uff0c\u4e00\u4e2a\u7a7a\u5fc3\u5706\uff0c\u76f4\u5f84\u7b49\u4e8e\u7ebf\u5bbd\u3002"));Ub("o \t"+f.get("cardlookDecorationExplain06","\u8c61\u5f62\u7b26\u53f7\uff0c\u4e00\u4e2a\u5b9e\u5fc3\u5706\uff0c\u76f4\u5f84\u7b49\u4e8e\u7ebf\u5bbd\u3002"));
Ub("= \t"+f.get("cardlookDecorationExplain07","\u8c61\u5f62\u7b26\u53f7\uff0c\u4e00\u4e2a\u7a7a\u5fc3\u65b9\u5757\uff0c\u8fb9\u957f\u7b49\u4e8e\u7ebf\u5bbd\u3002"));Ub("2 \t"+f.get("cardlookDecorationExplain08","\u6b63\u6574\u6570\u4f5c\u4e3a\u8c61\u5f62\u7b26\u53f7\u7684\u540e\u7f00\uff0c\u8868\u793a\u91cd\u590d\u6b21\u6570\uff08\u7701\u7565\u65f6\u4e3a1\uff09\u3002\u4f8b\u5982 #1 \u662f\u957f\u5ea6\u4e3a#2\u4e2a\u50cf\u7d20\u7684\u77e9\u5f62\u3002").replace("#1","|6").replace("#2","6"));Ub("~ \t"+
f.get("cardlookDecorationExplain09","\u6ce2\u6d6a\u53f7\u4e5f\u53ef\u4f5c\u4e3a\u540e\u7f00\uff0c\u8868\u793a\u5c3d\u53ef\u80fd\u91cd\u590d\u3002\u4f8b\u5982 #1 \u5728\u5706\u5708\u4e4b\u524d\u8865\u8db3\u7a7a\u767d\uff0c\u4f7f\u5706\u5708\u5411\u540e\u5bf9\u9f50\u3002").replace("#1","_~O"));Ub("{ }\t"+f.get("cardlookDecorationExplain10","\u82b1\u62ec\u53f7\u4e2d\u586b\u989c\u8272\u503c\uff0c\u4f5c\u4e3a\u8c61\u5f62\u7b26\u53f7\u7684\u524d\u7f00\uff0c\u8868\u793a\u4ece\u6b64\u5904\u5f00\u59cb\u6539\u989c\u8272\uff0c\u7a7a\u82b1\u62ec\u53f7\u8868\u793a\u6539\u56de\u8fb9\u6846\u989c\u8272\u3002"));
Ub("( )\t"+f.get("cardlookDecorationExplain11","\u5c0f\u62ec\u53f7\u53ef\u4ee5\u7ec4\u5408\u591a\u7ec4\u8c61\u5f62\u7b26\u53f7\uff0c\u518d\u63cf\u8ff0\u91cd\u590d\u6b21\u6570\u3002\u4f8b\u5982 #1 \u662f\u4e00\u6761\u865a\u7ebf\u3002").replace("#1","(|4_4)~"));Ub("; \t"+f.get("cardlookDecorationExplain12","\u62d0\u5f2f\u5206\u6bb5\u6807\u8bc6\u3002\u4f8b\u5982 #1 \u662f\u5728\u53cc\u62d0\u5f2f\u7684\u524d\u540e\u4e24\u6bb5\u4e2d\u6dfb\u52a0\u5706\u5708\uff0c\u4e2d\u95f4\u6bb5\u6ca1\u6709\u5185\u5bb9\u3002").replace("#1",
"O;;O"));Ub=$("<div>");Ub.css({color:"#666","white-space":"pre-wrap","line-height":"24px",overflow:"auto"});Ub.text(wc);$b=new qa(f.get("cardlookDecorationString","\u88c5\u9970\u7ebf\u63cf\u8ff0\u4e32\uff1a"));var Oc=new ib;Oc.setText($.trim(Q.getCustomMinorLine()));Oc.addEditedListener(function(ad){Q.setCustomMinorLine(ad.getText());Xb(Q);ed();C.modified()});var oc=$("<div>");oc.css({cursor:"pointer","white-space":"pre-wrap",color:"#c00"});oc.on("click",function(ad){Oc.setSelectingScope(r?r[2]:null,
r?r[3]:null);Oc.requestFocus()});var ed=function(){var ad=r?r[0]:null;oc.css("display",ad?"":"none");oc.text(ad);oc.attr("title",ad+"\r\n"+(r?r[1]:null))};ed();var jd=new kc(f.get("cardlookButtonClose","\u5173\u95ed"));jd.addActionListener(function(ad){Db()});Sb.removeClass("sa-ctrl-common-unselectable");Sb.css("background","#fff");Sb.append($b.getJqUi());Sb.append(Oc.getJqUi());Sb.append(oc);Sb.append(Ub);Sb.append(jd.getJqUi());p.layoutCtrlWithLRTB(jd.getJqUi(),null,10,60,10,null,26);p.layoutCtrlWithLRTB($b.getJqUi(),
20,120,null,10,null,20);p.layoutCtrlWithLRTB(Oc.getJqUi(),20,20,null,30,null,23);p.layoutCtrlWithLRTB(oc,20,20,null,60,null,40);p.layoutCtrlWithLRTB(Ub,20,20,null,100,10,null);setTimeout(Oc.requestFocus,0);Ac(function(){Sb.css("left",Math.max(4,Sb.prop("offsetLeft")-240))});return[600,480]},va=function(Sb,Ub,$b,Db){Ub=function(Oc){var oc=new yc;oc.supportDecimal(2);oc.setConstraint(0,40,1);oc.setValue(C.getModel().getLineThickness(Oc));oc.addValueChangedListener(function(ed,jd,ad,qb){C.getModel().setLineThickness(Oc,
ad);C.modified();fa.refreshSelectableItems();e.refreshSelectableItems();Ya.refreshSelectableItems()},!0);C.layout(Ac,oc,0,56*wc,db(Oc))};Sb.css("background","#fff");var Ac=$("<div>");Ac.css("overflow","auto");for(var wc=0;wc<D.length;wc++)Ub(D[wc]);Ub=new qa(f.get("cardlookLineWideMapping","\u7ebf\u5bbd\u540d\u79f0\u5bf9\u5e94\u7684\u50cf\u7d20"));Ub.getJqUi().appendTo(Sb);Ac.appendTo(Sb);$b=new kc(f.get("cardlookButtonClose","\u5173\u95ed"));$b.addActionListener(function(Oc){Db()});$b.getJqUi().appendTo(Sb);
p.layoutCtrlWithLRTB(Ub.getJqUi(),20,20,null,10,null,20);p.layoutCtrlWithLRTB(Ac,20,0,null,40,40,null);p.layoutCtrlWithLRTB($b.getJqUi(),20,20,null,null,10,26);return[200,360]},db=function(Sb){U||(U=["",f.get("cardlookLineWide1","\u4e00"),f.get("cardlookLineWide2","\u4e8c"),f.get("cardlookLineWide3","\u4e09"),f.get("cardlookLineWide4","\u56db"),f.get("cardlookLineWide5","\u4e94")]);return f.get("cardlookLineWide","\u7ebf\u5bbd")+U[Sb]},Jb=function(Sb){Sb=Sb.getFirstTurning()+"%, "+Sb.getSecondTurning()+
"%";G.setSelectedModel(Sb)},Xb=function(Sb){var Ub=$.trim(Sb.getCustomMinorLine());pa.setSelectedModel(Ub);var $b=null,Db=-1,Ac=0;if(Ub){var wc=new ea,Oc=wc.decode(Ub);if(wc=wc.getException()){$b=wc;switch($b.getCode()){case ma.UNKNOWN_CHAR:$b=f.get("cardlookDecorationError1","\u4e0d\u53ef\u8bc6\u522b\u7684\u5b57\u7b26\u3002");break;case ma.INVALID_PREFIX:$b=f.get("cardlookDecorationError2","\u4e0d\u53ef\u8bc6\u522b\u7684\u989c\u8272\u503c\u3002");break;case ma.UNPAIRED_BRACE:$b=f.get("cardlookDecorationError3",
"\u4e0d\u6210\u5bf9\u7684\u82b1\u62ec\u53f7\u3002");break;case ma.REDUNDANT_PREFIX:$b=f.get("cardlookDecorationError4","\u524d\u7f00\u540e\u672a\u8ddf\u968f\u8c61\u5f62\u7b26\u53f7\u3002");break;case ma.REDUNDANT_SUFFIX:$b=f.get("cardlookDecorationError5","\u9519\u8bef\u6216\u591a\u4f59\u7684\u540e\u7f00\u3002");break;case ma.REDUNDANT_LB:$b=f.get("cardlookDecorationError6","\u6ca1\u6709\u5339\u914d\u7684\u53f3\u62ec\u53f7\u3002");break;case ma.REDUNDANT_RB:$b=f.get("cardlookDecorationError7","\u6ca1\u6709\u5339\u914d\u7684\u5de6\u62ec\u53f7\u3002");
break;case ma.EMPTY_BRACKET:$b=f.get("cardlookDecorationError8","\u7a7a\u62ec\u53f7\u3002");break;default:$b=$b.getMessage()}Db=wc.getCharStart();Ac=wc.getCharLength();Sb.hookParsedPartsBlock(null)}else{Sb.hookParsedPartsBlock(Oc);var oc=Sb.getType()==Da.TYPE_SINGLE_TURN?2:Sb.getType()==Da.TYPE_DOUBLE_TURN?3:1;Oc.length>oc&&($b=Tc(Sb.getType()),$b=f.get("cardlookDecorationError9","\u8fb9\u578b\u4e3a#1\uff0c\u6700\u591a\u5206#2\u6bb5\u3002").replace("#1",$b).replace("#2",oc),Db=Ub.lastIndexOf(";"),
Ac=1)}0<=Db&&(Sb=Db+1,Sb=1==Ac?Sb:Sb+"-"+(Db+Ac),$b+="\r\n"+f.get("cardlookDecorationErrorAt","\u4f4d\u4e8e\u7b2c#1\u4e2a\u5b57\u7b26\u3002").replace("#1",Sb))}wc=wc?wc.getMessage():"";r=$b?[$b,wc,Db,Db+Ac]:null;wc=K.children(".q-sys-warning");wc.attr("title",$b);wc.css("visibility",$b?"visible":"hidden")},gc=function(){var Sb=xc.createWarning();Sb.addClass("q-sys-warning");return Sb},Bc=function(Sb){var Ub=Sb.getType()==Da.TYPE_NONE,$b=Sb.getMinorLineLogicWide()!=jb.LINE_NONE;Ub=!Ub&&$b;C.updateVisible(pa,
Ub);Ub&&Xb(Sb)},Qc=function(Sb){var Ub=Sb.getType()==Da.TYPE_NONE,$b=Sb.getType()==Da.TYPE_SINGLE_TURN,Db=Sb.getType()==Da.TYPE_DOUBLE_TURN,Ac=$b||Db;C.updateVisible(fa,!Ub);C.updateVisible(e,!Ub);C.updateVisible(Z,!Ub);C.updateVisible(Ga,Ac&&ra==jb.DIR_N);C.updateVisible(u,$b);C.updateVisible(G,Db);$b&&u.setValue(Sb.getFirstTurning());Db&&Jb(Sb);Bc(Sb)},Xc=function(Sb){Sb=Sb.getType()==ca.TYPE_NONE;C.updateVisible(Ya,!Sb);C.updateVisible(La,!Sb)},Tc=function(Sb){return Sb==Da.TYPE_STRAIGHT?f.get("cardlookEdgeTypeStraight",
"\u76f4\u7ebf"):Sb==Da.TYPE_SINGLE_TURN?f.get("cardlookEdgeTypeSingleTurn","\u5355\u62d0\u5f2f"):Sb==Da.TYPE_DOUBLE_TURN?f.get("cardlookEdgeTypeDoubleTurn","\u53cc\u62d0\u5f2f"):Sb==Da.TYPE_NONE?f.get("cardlookItemNone","\u65e0"):""}}function Pb(c){function D(e){KTDefaultCellRender.call(this,e);var g=[jb.DIR_N,jb.DIR_S,jb.DIR_W,jb.DIR_E],y=[jb.LINECOLOR_MAIN,jb.LINECOLOR_STRONG,jb.LINECOLOR_WEAK],u=this,G=this.paintCellUI;this.paintCellUI=function(Ya,sa){if(u.getCurrentRowIdx()<Ib.getHeadRowCount())G(Ya,
sa);else{var La=u.getCurrentRow(),Q=u.getCell();sa=Z(Q);var ra=function(r){Q.setValue(r);r=U.getModel().getAllLightItems();r.length=0;for(var z=Ib.getHeadRowCount(),I=O.getRowsCount();z<I;z++){var aa=O.getRow(z),v=aa.getCell(0).getValue(),t=aa.getCell(1).getValue();aa=aa.getCell(2).getValue();r.push(jb.createLightItem(v,t,aa))}Ib.refresh(O);U.modified()};switch(u.getCurrentColIdx()){case 0:pa(Ya,u.getCellWidth(),u.getCellHeight(),sa,function(r){null===Z(La.getCell(1))&&La.getCell(1).setValue(50);
null===Z(La.getCell(2))&&La.getCell(2).setValue(jb.LINECOLOR_STRONG);ra(r)});break;case 1:Ga(Ya,u.getCellWidth(),u.getCellHeight(),sa,ra);break;case 2:Va(Ya,u.getCellWidth(),u.getCellHeight(),sa,ra)}}};var Z=function(Ya){return(Ya=Ya?Ya.getValue():null)||0===Ya?Ya:null},pa=function(Ya,sa,La,Q,ra){Ya=Ib.createCtrlInCell(Ya,sa,La,xa);Ya.setSelected(Q);Ya.setItemModels(g);Ya.setCustomPainter(function(r,z,I){r=I==jb.DIR_N?f.get("cardlookEdgeN","\u4e0a"):I==jb.DIR_S?f.get("cardlookEdgeS","\u4e0b"):I==
jb.DIR_W?f.get("cardlookEdgeW","\u5de6"):I==jb.DIR_E?f.get("cardlookEdgeE","\u53f3"):"";z.text(r)});Ya.addSelectedChangedListener(function(r,z,I){ra(I)})},Ga=function(Ya,sa,La,Q,ra){Ya=Ib.createCtrlInCell(Ya,sa,La,yc);Ya.setConstraint(0,100,1);Ya.setValue(Q);Ya.setCustomPainter(function(r){return null===r?"":r+"%"});Ya.addValueChangedListener(function(r,z,I,aa){ra(I)},!0)},Va=function(Ya,sa,La,Q,ra){Ya=Ib.createCtrlInCell(Ya,sa,La,xa);Ya.setSelected(Q);Ya.setItemModels(y);Ya.setCustomPainter(function(r,
z,I){r=I==jb.LINECOLOR_MAIN?f.get("cardlookLineColorMain","\u4e3b\u8272"):I==jb.LINECOLOR_STRONG?f.get("cardlookLineColorStrong","\u5f3a\u8c03"):I==jb.LINECOLOR_WEAK?f.get("cardlookLineColorWeak","\u6de1\u5316"):"";z.text(r)});Ya.addSelectedChangedListener(function(r,z,I){ra(I)})}}zb.call(this,c);var U=this.protectedMethod,C={},O;this.into=function(){Ib.refresh(O)};this.protectedInitUi=function(e){var g=K(jb.LINECOLOR_MAIN),y=K(jb.LINECOLOR_STRONG),u=K(jb.LINECOLOR_WEAK);U.layout(e,g,20,20,f.get("cardlookLineColorMain",
"\u4e3b\u8272"));U.layout(e,y,20,80,f.get("cardlookLineColorStrong","\u8f85\u8272\uff08\u5f3a\u8c03\uff09"));U.layout(e,u,220,80,f.get("cardlookLineColorWeak","\u8f85\u8272\uff08\u6de1\u5316\uff09"));g=new qa(f.get("cardlookLight","\u6a21\u62df\u53d1\u5149"));O=Ib.createTable();O.setSyncUIWhenModelChanged(!1);y=new D(O);y.setOutsideVisible(!1);O.setCellRender(y);O.addColumns(4);O.getColumn(0).setWidth(80);O.getColumn(1).setWidth(72);O.getColumn(2).setWidth(100);O.getColumn(3).setWidth(100);y=Ib.createHeadRow(O);
y.getCell(0).setValue(f.get("cardlookLightEdge","\u8fb9"));y.getCell(1).setValue(f.get("cardlookLightPos","\u4f4d\u7f6e"));y.getCell(2).setValue(f.get("cardlookLightColor","\u989c\u8272"));ia();y=$(O.getUI());p.layoutCtrlWithLRTB(g.getJqUi(),20,20,null,146,null,20);p.layoutCtrlWithLRTB(y,20,20,null,170,10,null);e.append(g.getJqUi());e.append(y)};this.protectedUpdateCtrlState=function(){for(var e in C)C[e].setNullableColor(U.getModel().getLineColor(e));O&&fa()};var K=function(e){var g=new Lc;g.setColorPool(Xa.getColorPool7());
g.setDisplayForNull(f.get("colorNull","\u65e0"));g.setChangedListener(function(y){U.getModel().setLineColor(e,y.getNullableColor());U.modified()});return C[e]=g},ia=function(){var e=null;Ib.bindTableListenerForCtrl(O,function(g,y,u,G){g=null;if(y){g=O.searchJqCell(u,3);var Z=u-Ib.getHeadRowCount();Y(g,f.get("insertRow","\u63d2\u5165"),function(pa){pa=jb.createLightItem(null,null,null);U.getModel().getAllLightItems().splice(Z,0,pa);fa()});Y(g,f.get("deleteRow","\u5220\u9664"),function(pa){U.getModel().getAllLightItems().splice(Z,
1);fa();U.modified()})}else e&&e.empty();e=g})},Y=function(e,g,y){var u=$("<div>");u.text(g);u.css({display:"inline-block",position:"relative",width:"40px","line-height":"20px",margin:"4px","text-align":"center",color:"#39f",cursor:"pointer"});u.on("click",y);u.appendTo(e)},fa=function(){Ib.clearWithoutHead(O);for(var e=U.getModel().getAllLightItems(),g=e.length,y=Math.max(4,g+2),u=0;u<y;u++){var G="",Z="",pa="";u<g&&(pa=e[u],G=pa.getDir(),Z=pa.getPosition(),pa=pa.getLogicColor());var Ga=Ib.createRow(O);
Ga.getCell(0).setValue(G);Ga.getCell(1).setValue(Z);Ga.getCell(2).setValue(pa)}Ib.refresh(O)}}function Ha(){var c=$("<div>"),D;this.setPageBackground=function(U){c.css("background-color",U)};this.getJqUi=function(){D||(D=$(Ua.createCanvas()),D.appendTo(c));return c};this.refresh=function(U){var C=c.prop("clientWidth"),O=c.prop("clientHeight");if(.618*C<O){var K=Math.max(Math.round(.2*C),20);C=Math.max(40,C-K);O=Math.round(.618*C)}else K=Math.max(Math.round(.2*O),20),O=Math.max(30,O-K),C=Math.round(O/
.618);p.layoutCtrlCenterAlign(D,C);p.layoutCtrlMiddleAlign(D,O);K=Ua.createContext2d(D[0],C,O);var ia=new N;ia.setModel(U);ia.draw(K,0,0,C,O)}}function oa(){var c=this,D,U=new Oa,C=new Oa;this.getJqUi=function(){if(!D){U.setText(f.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"));C.setText(f.get("custom","\u81ea\u5b9a\u4e49"));var K=new Za;K.addElement(U);K.addElement(C);K.addChangedListener(function(Y,fa){fa&&O(ia)});var ia=$("<div>");c.protectedInitCustomDetailPanel(ia);O(ia);D=$("<div>");D.append(U.getJqUi());
D.append(C.getJqUi());D.append(ia);p.layoutCtrlWithLRTB(U.getJqUi(),0,0,null,0,null,23);p.layoutCtrlWithLRTB(C.getJqUi(),0,0,null,30,null,23);p.layoutCtrlWithLRTB(ia,20,0,null,60,0,null)}return D};this.protectedInitCustomDetailPanel=function(K){throw Error("Implement");};var O=function(K){var ia=C.isChecked();K.css("display",ia?"":"none");ia&&c.protectedCustomDetailPanelVisible()};this.protectedCustomDetailPanelVisible=function(){};this.protectedMethod={initRadioButton:function(K){C.setChecked(K);
U.setChecked(!K)},isCustomChecked:function(){return C.isChecked()}}}function kb(){Ba.call(this);var c=this,D=this.protectedMethod,U=new function(){oa.call(this);var O=this.protectedMethod;this.protectedInitCustomDetailPanel=function(K){var ia=C.createUi();K.append(ia);p.layoutCtrlWithLRTB(ia,10,0,null,10,0,null)};this.protectedCustomDetailPanelVisible=function(){C.refreshPreviewCard()};this.setCustomChecked=function(K){O.initRadioButton(K)};this.isCustomChecked=function(){return O.isCustomChecked()}},
C=new ob;this.setWidget=function(O){var K=new Hb;K.copyFromWidget(O);K.hookUsableCardBorderGetter(function(){return O.getUsableCardBorder()});K.hookUsableCardTopBarCommonGetter(function(){return K.getCardTopBarCommon()});var ia=!0;K.getCardTopBarCommon()||(ia=!1,K.setCardTopBarCommon(new yb));U.setCustomChecked(ia);C.setWidgetInstead(K);D.setTitle(f.get("cardTitleLayoutDialogTitle","\u5361\u7247\u6807\u9898\u680f\u56fe\u7247")+" -- "+O.getDisplayName())};this.show=function(O){c.setSize(960,600);D.setContentPaneCreator(function(){return U.getJqUi()});
D.setClosingAction(function(K){K&&(U.isCustomChecked()?O(C.acceptModified()):O(null))});D.getDialogCtrl().setMinSize(720,400);D.getDialogCtrl().setResizeEnabled();D.getDialogCtrl().setFullScreenEnabled();D.getDialogCtrl().addResizeListener(function(K,ia){C.refreshPreviewCard()});c.showDialog();C.refreshPreviewCard()}}function ob(){function c(G){var Z,pa=new qa(G),Ga=new Oa,Va=new Oa,Ya=new Oa,sa=new yc;Ga.setChecked(!0);Va.setChecked(!1);Ya.setChecked(!1);sa.setValue(0);pa.setEnabled(!1);Ga.setEnabled(!1);
Va.setEnabled(!1);Ya.setEnabled(!1);sa.setEnabled(!1);this.setModel=function(Q,ra,r){Ga.setChecked(Q==yb.TitlePosition_Auto);Va.setChecked(Q==yb.TitlePosition_MidOfIcon);Ya.setChecked(Q==yb.TitlePosition_Offset);sa.setValue(ra||0===ra?ra:r);pa.setEnabled(!0);Ga.setEnabled(!0);Va.setEnabled(!0);Ya.setEnabled(!0);sa.setEnabled(Ya.isChecked())};this.getPositionMode=function(){return Ya.isChecked()?yb.TitlePosition_Offset:Va.isChecked()?yb.TitlePosition_MidOfIcon:yb.TitlePosition_Auto};this.getOffsetValue=
function(){return sa.getValue()};this.getJqUi=function(){Z||(La(),Z=$("<div>"),e(Z,pa,0,0,160,23),e(Z,Ga,20,25,160,23),e(Z,Va,20,50,160,23),e(Z,Ya,20,75,80,23),e(Z,sa,100,75,60,23));return Z};var La=function(){Ga.setText(f.get("cardTitleLayoutAuto","\u81ea\u52a8"));Va.setText(f.get("cardTitleLayoutMidOfIcon","\u5728\u56fe\u7247\u8303\u56f4\u5185\u5c45\u4e2d"));Ya.setText(f.get("cardTitleLayoutOffset","\u504f\u79fb"));var Q=new Za;Q.addElement(Ga);Q.addElement(Va);Q.addElement(Ya);Q.addChangedListener(function(ra,
r){r&&(sa.setEnabled(Ya.isChecked()),g())});sa.setConstraint(0,999,1);sa.addValueChangedListener(function(ra,r,z,I){g()},!0)}}var D=new Ka,U=new function(){var G=this,Z,pa=new Oa,Ga=new Oa,Va=new yc,Ya=new yc,sa=new qa(f.get("positionX","\u6c34\u5e73\u65b9\u5411")),La=new qa(f.get("positionY","\u5782\u76f4\u65b9\u5411"));this.syncUsable=function(r){pa.setEnabled(r);Ga.setEnabled(r);r?ra():(sa.setEnabled(!1),La.setEnabled(!1),Va.setEnabled(!1),Ya.setEnabled(!1))};this.setModel=function(r){var z=r?
!0:!1,I=r?r[0]:20;r=r?r[1]:8;pa.setChecked(!z);Ga.setChecked(z);Va.setValue(I);Ya.setValue(r);G.syncUsable(!0)};this.getIconOffset=function(){return Ga.isChecked()?[Va.getValue(),Ya.getValue()]:null};this.getJqUi=function(){Z||(Z=$("<div>"),Q());return Z};var Q=function(){pa.setText(f.get("cardTitleLayoutAuto","\u81ea\u52a8"));Ga.setText(f.get("cardTitleLayoutAppointed","\u6307\u5b9a"));var r=new Za;r.addElement(pa);r.addElement(Ga);r.addChangedListener(function(z,I){I&&(ra(),g())});Va.setConstraint(0,
999,1);Va.addValueChangedListener(function(z,I,aa,v){g()},!0);Ya.setConstraint(0,999,1);Ya.addValueChangedListener(function(z,I,aa,v){g()},!0);e(Z,pa,20,0,120,23);e(Z,Ga,20,25,120,23);e(Z,sa,40,50,100,23);e(Z,Va,40,75,60,23);e(Z,La,40,100,100,23);e(Z,Ya,40,125,60,23)},ra=function(){var r=Ga.isChecked();sa.setEnabled(r);La.setEnabled(r);Va.setEnabled(r);Ya.setEnabled(r)}},C=new function(){var G=this,Z,pa=new Oa,Ga=new Oa,Va=new yc,Ya=new yc,sa=new xa,La=new qa(f.get("sizeWidth","\u5bbd\u5ea6")),Q=
new qa(f.get("sizeHeight","\u9ad8\u5ea6"));this.syncUsable=function(I){pa.setEnabled(I);Ga.setEnabled(I);I?r():(La.setEnabled(!1),Q.setEnabled(!1),Va.setEnabled(!1),Ya.setEnabled(!1),sa.setEnabled(!1))};this.setModel=function(I,aa){var v=I?!0:!1,t=I?I[0]:24;I=I?I[1]:24;pa.setChecked(!v);Ga.setChecked(v);Va.setValue(t);Ya.setValue(I);sa.setSelected(aa);G.syncUsable(!0);z()};this.getIconSize=function(){return Ga.isChecked()?[Va.getValue(),Ya.getValue()]:null};this.isWidthAsPercentage=function(){return Ga.isChecked()?
sa.getSelected():!1};this.getJqUi=function(){Z||(Z=$("<div>"),ra());return Z};var ra=function(){pa.setText(f.get("cardTitleLayoutAuto","\u81ea\u52a8"));Ga.setText(f.get("cardTitleLayoutAppointed","\u6307\u5b9a"));var I=new Za;I.addElement(pa);I.addElement(Ga);I.addChangedListener(function(aa,v){v&&(r(),g())});z();Va.addValueChangedListener(function(aa,v,t,L){g()},!0);Va.setCustomPainter(function(aa){var v=sa.getSelected();return aa+(v?"%":"")});Ya.setConstraint(1,999,1);Ya.addValueChangedListener(function(aa,
v,t,L){g()},!0);sa.setItemModels([!1,!0]);sa.setCustomPainter(function(aa,v,t){v.text(!0===t?f.get("cardTitleLayoutPercentageOfCardWidth","\u5361\u7247\u5bbd\u5ea6\u6bd4\u4f8b"):"px")});sa.addSelectedChangedListener(function(aa,v,t){z();Va.setValue(!0===t?100:24);g()});e(Z,pa,20,0,120,23);e(Z,Ga,20,25,120,23);e(Z,La,40,50,100,23);e(Z,Va,40,75,60,23);e(Z,sa,104,75,100,23);e(Z,Q,40,100,100,23);e(Z,Ya,40,125,60,23)},r=function(){var I=Ga.isChecked();La.setEnabled(I);Q.setEnabled(I);Va.setEnabled(I);
Ya.setEnabled(I);sa.setEnabled(I)},z=function(){var I=sa.getSelected();Va.setConstraint(1,I?100:999,1)}},O=new c(f.get("positionX","\u6c34\u5e73\u65b9\u5411")),K=new c(f.get("positionY","\u5782\u76f4\u65b9\u5411")),ia=new lc,Y;this.setWidgetInstead=function(G){Y=G;G=Y.getCardTopBarCommon();var Z=G.getTopBarIcon();Z&&Z.getReferenceCustomMap()?(U.setModel(G.getTopBarIconOffset()),C.setModel(G.getTopBarIconSize(),G.isTopBarIconWidthAsPercentage())):(U.setModel(null),U.syncUsable(!1),C.setModel(null,
!1),C.syncUsable(!1));Y.getCardTitle()&&(O.setModel(G.getCardTitleHorizontalPosition(),G.getCardTitleOffsetX(),20),K.setModel(G.getCardTitleVerticalPosition(),G.getCardTitleOffsetY(),10));y();ia.bindCardSimilaryWidget(Y)};this.acceptModified=function(){return Y.getCardTopBarCommon()};this.refreshPreviewCard=function(){u()};this.createUi=function(){D.setClearable(!0);D.addActionListener(function(Ya){Ya=wb.getWidgetSourceSelector();var sa=Y.getCardTopBarCommon().getTopBarIcon();sa=sa?sa.getReferenceCustomMap():
null;Ya.selectPicture(sa,function(La){if(La){var Q=$a.createPeer();Q.setReferenceCustomMap(La);Y.getCardTopBarCommon().setTopBarIcon(Q);y();U.syncUsable(!0);C.syncUsable(!0);u()}})});D.addClearListener(function(Ya){Y.getCardTopBarCommon().setTopBarIcon(null);y();U.syncUsable(!1);C.syncUsable(!1);u()});var G=new qa(f.get("pictureUrl","\u56fe\u7247\u6587\u4ef6")),Z=$("<div>");e(Z,G,20,0,80,23);e(Z,D,100,0,320,23);G=$("<div>");e(G,O,0,0,200,120);e(G,K,240,0,200,120);Z=fa(f.get("cardTitleLayoutIconSrc",
"\u56fe\u7247\u6765\u6e90"),Z);var pa=fa(f.get("cardTitleLayoutIconPosition","\u56fe\u7247\u4f4d\u7f6e"),U.getJqUi()),Ga=fa(f.get("cardTitleLayoutIconSize","\u56fe\u7247\u5927\u5c0f"),C.getJqUi()),Va=fa(f.get("cardTitleLayoutTextPosition","\u6587\u5b57\u4f4d\u7f6e"),G);G=$("<div>");G.css("overflow","auto");G.append(Z);G.append(pa);G.append(Ga);G.append(Va);p.layoutCtrl(Z,0,0,440,70);p.layoutCtrl(pa,0,70,200,190);p.layoutCtrl(Ga,240,70,200,190);p.layoutCtrl(Va,0,260,440,140);pa=new qa("\u2191 "+f.get("cardTitleLayoutTopTips",
"\u4e0a\u8fb9\u8ddd\uff08\u6807\u9898\u680f\u9ad8\u5ea6\uff09")+" 40px");Ga=new qa("\u2190 "+f.get("cardTitleLayoutLeftTips","\u5de6\u8fb9\u8ddd")+" 20px");Va=new qa(f.get("cardTitleLayoutRightTips","\u53f3\u8fb9\u8ddd")+" 20px \u2192");pa.setAlign(qa.ALIGN_CENTER);Va.setAlign(qa.ALIGN_RIGHT);p.layoutCtrlWithLRTB(pa.getJqUi(),2,2,null,0,null,20);p.layoutCtrlWithLRTB(Ga.getJqUi(),2,2,null,"30%",null,20);p.layoutCtrlWithLRTB(Va.getJqUi(),2,2,null,"60%",null,20);Z=$("<div>");Z.css("background-color",
ab.getPageBackgroundColor());Z.append(ia.getJqUi());ia.getJqContent().css("border","1px dashed #999");ia.getJqContent().append(pa.getJqUi());ia.getJqContent().append(Ga.getJqUi());ia.getJqContent().append(Va.getJqUi());pa=$("<div>");pa.append(G);pa.append(Z);p.layoutCtrlWithLRTB(G,0,null,480,0,0,null);p.layoutCtrlWithLRTB(Z,480,0,null,0,0,null);return pa};var fa=function(G,Z){G=new qa(G);G.getJqUi().css("font-weight","bold");var pa=$("<div>");pa.css("border-bottom","1px solid #ccc");var Ga=$("<div>");
Ga.append(G.getJqUi());Ga.append(pa);Ga.append(Z);p.layoutCtrlWithLRTB(G.getJqUi(),0,0,null,0,null,20);p.layoutCtrlWithLRTB(pa,0,0,null,25,null,0);p.layoutCtrlWithLRTB(Z,0,0,null,30,0,null);return Ga},e=function(G,Z,pa,Ga,Va,Ya){G.append(Z.getJqUi());p.layoutCtrl(Z.getJqUi(),pa,Ga,Va,Ya)},g=function(){var G=U.getIconOffset(),Z=C.getIconSize(),pa=C.isWidthAsPercentage(),Ga=O.getPositionMode(),Va=O.getOffsetValue(),Ya=K.getPositionMode(),sa=K.getOffsetValue();Y.getCardTopBarCommon().setTitleLayout(G,
Z,pa,Ga,Va,Ya,sa);u()},y=function(){var G=Y.getCardTopBarCommon().getTopBarIcon();G=G&&G.getReferenceCustomMap()?f.get("refHasSet","\u5df2\u8bbe\u7f6e"):"";D.setModel(G)},u=function(){var G=ia.getJqUi(),Z=G.parent(),pa=Z.prop("clientWidth");Z=Z.prop("clientHeight");if(.618*pa<Z){var Ga=Math.max(Math.round(.2*pa),20);pa=Math.max(40,pa-Ga);Z=Math.round(.618*pa)}else Ga=Math.max(Math.round(.2*Z),20),Z=Math.max(30,Z-Ga),pa=Math.round(Z/.618);p.layoutCtrlCenterAlign(G,pa);p.layoutCtrlMiddleAlign(G,Z);
G.css("line-height","");ia.updateTopBar(Y.getCardDescription())}}"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.dsb&&(com.kingdee.bos.qing.dsb={});"undefined"==typeof com.kingdee.bos.qing.dsb.ui&&(com.kingdee.bos.qing.dsb.ui={});var Ia=com.kingdee.bos.qing.dsb.ui;Ia.UrlInputDialog=function(){l.call(this);
this.setSize(640,240);this.setTitle(f.get("widgetIframe","\u7f51\u9875"),f.get("iframeUrl","\u7f51\u9875\u5730\u5740"))};Ia.RichEditorDialog=function(){fc.call(this);var c=this,D=this.protectedMethod,U=new x,C,O,K;this.protectedBeforeShow=function(fa,e){c.setSize(640,480);D.setTitle(f.get("widgetRich","\u591a\u884c\u6587\u5b57"));D.setContentPaneCreator(function(){return U.getJqUi()});C=(C=fa.getContent())?C.clone():k.create(function(y,u){u.setFontSize(16)});D.replaceOutputParamDisplayName(C.getAllText(),
e,function(y,u,G){C.replaceText(y,u,G)});U.setModel(C);U.setMaxCharacters(1E3);e=ab.dip(ab.DSB_LABEL)[ab.Key_Label_Color];U.setDefaultColor(e);e=ab.dip(ab.DSB_CARD)[ab.Key_Card_BackgroundColor];var g=ab.dip(ab.DSB_PAGE)[ab.Key_Page_BackgroundColor];O=[null,e,g];K=ia(fa)?1:2;U.setBackgroundColor(O[K]);D.getDialogCtrl().createToolbarButton(f.get("richBackground","\u5207\u6362\u53c2\u8003\u80cc\u666f"),function(y){var u=new uc;u.addItemModel(Y(f.get("richBackgroundAsDefault","\u9ed8\u8ba4\u989c\u8272"),
0));u.addItemModel(Y(f.get("richBackgroundAsCard","\u5361\u7247\u80cc\u666f\u989c\u8272"),1));u.addItemModel(Y(f.get("richBackgroundAsPage","\u9875\u9762\u80cc\u666f\u989c\u8272"),2));D.popupMenu(y,u)},!0)};this.protectedAcceptEditedContent=function(fa){D.replaceOutputParamDisplayName(C.getAllText(),fa,function(e,g,y){C.replaceText(e,g,y)});return C};this.protectedCtrlOnFocus=function(){U.requestFocus()};this.protectedGetTextAndCursor=function(){var fa=C.getAllText(),e=U.getSelectingScope();return[fa,
e[0],e[1]]};this.protectedDoInsertRefTag=function(fa,e){U.inputTextOnCursor(fa)};var ia=function(fa){var e=!1;for(fa=fa.getParent();fa&&fa.getWidgetTypeName()!=W.WidgetType_Page;){if(fa.isInstanceOf(W.WidgetSuperType_CardSimilary)){e=!0;break}fa=fa.getParent()}return e},Y=function(fa,e){fa=rc.createRadio(fa,"bg",e==K,function(g){K=g.getUserObject();U.setBackgroundColor(O[K])});fa.setUserObject(e);return fa}};Ia.LabelContentDialog=function(){fc.call(this);var c=this,D=this.protectedMethod,U=new Pa;
this.protectedBeforeShow=function(C,O){c.setSize(480,320);D.setTitle(f.get("widgetLabel","\u6587\u5b57"));D.setContentPaneCreator(function(){var ia=new qa(f.get("labelContent","\u663e\u793a\u6587\u5b57"));p.layoutCtrlWithLRTB(ia.getJqUi(),0,0,null,0,null,23);p.layoutCtrlWithLRTB(U.getJqUi(),0,0,null,30,0,null);var Y=$("<div>");Y.append(ia.getJqUi());Y.append(U.getJqUi());return Y});var K=$.trim(C.getContent());D.replaceOutputParamDisplayName(K,O,function(ia,Y,fa){K=K.substring(0,ia)+fa+K.substring(Y)});
U.setText(K)};this.protectedAcceptEditedContent=function(C){var O=$.trim(U.getText());D.replaceOutputParamDisplayName(O,C,function(K,ia,Y){O=O.substring(0,K)+Y+O.substring(ia)});return O};this.protectedCtrlOnFocus=function(){U.requestFocus()};this.protectedGetTextAndCursor=function(){var C=U.getText(),O=U.getSelectingScope();return[C,O[0],O[1]]};this.protectedDoInsertRefTag=function(C,O){var K=U.getText(),ia=U.getSelectingScope(),Y=ia[0];ia=ia[1];K=K.substring(0,Y)+C+K.substring(ia);U.setText(K);
0<O?(C=Y+3,O=C+O):O=C=Y+C.length;U.setSelectingScope(C,O)}};Ia.TextInputDialog=function(){Ba.call(this);var c=this,D=this.protectedMethod,U=new qa,C=new ib,O,K,ia=!0,Y=65535;this.setCaption=function(G,Z){D.setTitle(G);U.setText(Z)};this.setText=function(G,Z){C.setText(G);K=function(pa){var Ga=pa?$.trim(C.getText()):null;Z(pa,Ga)};D.setClosingAction(K)};this.showDialogLeftAnchorTo=function(G){G&&(c.setSize(400,200),G=p.upwardCoordinate(G[0],[0,0],document.body),c.setPosition(Math.max(0,G[0]-400-10),
Math.max(6,G[1]-200+40)));fa()};this.showDialogRightAnchorTo=function(G){G&&(c.setSize(400,200),G=p.upwardCoordinate(G[0],[G.outerWidth(),0],document.body),c.setPosition(G[0]+10,Math.max(6,G[1]-200+40)));fa()};var fa=function(){C.addAcceptableListener(g);C.addEditedListener(y);D.setContentPaneCreator(e);D.setClosingChecker(u);c.showDialog();C.requestFocus()};this.setEmptyEnabled=function(G){ia=G};this.setMaxLength=function(G){Y=G};this.setClosingChecker=function(G){O=G?function(){var Z=G($.trim(C.getText()));
Z&&D.getMessageCurtain().showPrompt(Z);return Z?!1:!0}:null};var e=function(){p.layoutCtrlWithLRTB(U.getJqUi(),0,0,null,0,null,23);p.layoutCtrlWithLRTB(C.getJqUi(),0,0,null,30,null,23);var G=$("<div>");G.append(U.getJqUi());G.append(C.getJqUi());return G},g=function(G,Z){Z&&u()&&(K(!0),D.destroy())},y=function(G){(G=D.getMessageCurtain(!0))&&G.hide()},u=function(){var G=$.trim(C.getText()),Z;ia||0!=G.length?G.length>Y&&(Z=f.get("textCheckLength","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7#1\u4e2a\u5b57\u7b26").replace("#1",
Y)):Z=f.get("textCheckEmpty","\u4e0d\u5141\u8bb8\u4e3a\u7a7a");return Z?(D.getMessageCurtain().showPrompt(Z),!1):!O||O()}};Ia.TextAreaDialog=l;Ia.FilterSourceDialog=function(){Ba.call(this);var c=this,D=this.protectedMethod,U,C,O,K,ia,Y;this.setTitle=function(u){U=u};var fa=this.showDialog;this.showDialog=function(u,G,Z){c.setSize(640,480);var pa=U||f.get("filterSourceDialogTitle","\u201c#1\u201d\u7684\u5907\u9009\u503c").replace("#1",G.getDisplayName());D.setTitle(pa);D.setContentPaneCreator(function(){return e(G,
u)});D.setClosingAction(function(Ga){var Va=null,Ya=!0;Ga&&(Va=ta.createInstance(Y.getModelType()),Y.applySettingResult(Va),Ya=ia?ia.isChecked():!1);Z(Ga,Va,Ya)});fa();y(G)};var e=function(u,G){O=new sb;O.setContext(G);K=new gb;C=new cc;C.setBottomLineVisible(u.isIncludeItemAllSupported());g(u,O,120,f.get("filterSourceFromRef","\u5f15\u7528"));g(u,K,120,f.get("filterSourceFromCustom","\u81ea\u5b9a\u4e49"));C.setSelectedChangedListener(function(Z,pa,Ga){Y=Ga.data("myWrap");Y.into()});G=$("<div>");
G.append(C.getJqUi());u.isIncludeItemAllSupported()?(ia=new Kb,ia.setText(f.get("filterSourceIncludedItemAll","\u643a\u5e26\u9009\u9879\u201c\u5168\u90e8\u201d")),u=ia.getJqUi(),u.appendTo(G),p.layoutCtrlWithLRTB(C.getJqUi(),0,0,null,0,26,null),p.layoutCtrlWithLRTB(u,0,null,200,null,0,23)):p.layoutCtrlWithLRTB(C.getJqUi(),0,0,null,0,0,null);return G},g=function(u,G,Z,pa){var Ga=G.getModelType();(u=u.getFilterSource())&&u.getType()==G.getModelType()||(u=null);u=G.createJqUi(u);u.data("myWrap",G);C.addItem(Ga,
Z,u,pa)},y=function(u){var G=u.getFilterSource();G=G?G.getType():O.getModelType();C.setSelected(G);ia&&ia.setChecked(u.isIncludedItemAll())}};Ia.AffectedTargetDialog=function(){Ba.call(this);var c=this,D=this.protectedMethod,U=this.showDialog;this.showDialog=function(C,O,K,ia){var Y=new Gb;Y.setContext(O,C.createFacade,K);c.setSize(640,480);D.setTitle(f.get("affectedTargetDialogTitle","\u201c#1\u201d\u4f5c\u7528\u4e8e").replace("#1",O.getDisplayName()));D.setContentPaneCreator(function(){return Y.getJqUi()});
D.setClosingAction(function(fa){var e=null;fa&&(e=Y.getSettingResult());ia(e)});D.setClosingChecker(function(){var fa=Y.checkSettingResult();if(fa)return D.getMessageCurtain().showPrompt(fa,1E4),!1;fa=Y.getSettingResult();var e=O.checkCircularAffection(fa);return e?(fa=f.get("affectedTargetCircular","\u5b58\u5728\u73af\u72b6\u7684\u201c\u4f5c\u7528\u4e8e\u201d\u8bbe\u7f6e\uff1a#1").replace("#1",e),D.getMessageCurtain().showPrompt(fa,1E4),!1):(fa=fa.checkDuplicated())?(fa=(e=O.getTopPage().searchWidgetByName(fa))?
e.getDisplayName():fa,fa=f.get("affectedTargetDuplicated","\u91cd\u590d\u7684\u76ee\u6807\u7ec4\u4ef6\uff1a#1").replace("#1",fa),D.getMessageCurtain().showPrompt(fa,1E4),!1):!0});U()}};Ia.TabSwitchDialog=function(){Ba.call(this);var c=this,D=this.protectedMethod,U=this.showDialog;this.showDialog=function(C,O){var K=new Ob;K.setContext(C.getTopPage());K.setSettingModel(C.getAffectedTargets());c.setSize(640,480);var ia=f.get("tabSwitchDialogTitle","\u201c#1\u201d\u8054\u52a8\u201c#2\u201d");ia=ia.replace("#1",
C.getDisplayName());ia=ia.replace("#2",H.getInstance(W.WidgetType_TabbedContainer).getTypeDisplayName());D.setTitle(ia);D.setContentPaneCreator(function(){return K.getJqUi()});D.setClosingAction(function(Y){Y=Y?K.getSettingResult():null;O(Y)});D.setClosingChecker(function(){var Y=K.getSettingResult().checkDuplicated();if(Y){var fa=C.getTopPage().searchWidgetByName(Y);Y=fa?fa.getDisplayName():Y;Y=f.get("affectedTargetDuplicated","\u91cd\u590d\u7684\u76ee\u6807\u7ec4\u4ef6\uff1a#1").replace("#1",Y);
D.getMessageCurtain().showPrompt(Y,1E4);return!1}return!0});U()}};Ia.DateRangeInitialDialog=function(){Vb.call(this);var c,D;this.protectedCreateAbsoluteJqUi=function(U){c=new Ec;c.setDateRange(U.getFromDate(),U.getToDate());return c.getJqUi()};this.protectedCreateRelativeJqUi=function(U){D=new X;(U=U.getRelativeModel())?(U=U.toJsonObject(),D.fromJsonObject(U)):(D.setPeriod(X.PERIOD_DAY),D.setWhichPeriod(0));U=$("<div>");var C=new zc;C.setContainsTime(!1);C.setModel(D);C.getJqUi().appendTo(U);p.layoutCtrlWithLRTB(C.getJqUi(),
0,0,null,0,0,null);return U};this.protectedGetEditingRelativeModel=function(U){return D};this.protectedGetEditingAbsoluteModel=function(){return c.getDateRange()}};Ia.CalendarYearInitialDialog=Wb;Ia.CalendarQuarterInitialDialog=Rb;Ia.CalendarMonthInitialDialog=Tb;Ia.CalendarDayInitialDialog=Na;Ia.DefaultSelectedDialog=function(){Ba.call(this);var c=this,D=this.protectedMethod,U,C,O=this.showDialog;this.showDialog=function(fa,e,g){c.setSize(640,480);D.setTitle(f.get("defaultSelectedDialogTitle","\u201c#1\u201d\u7684\u9ed8\u8ba4\u9009\u4e2d\u503c").replace("#1",
e.getDisplayName()));D.setContentPaneCreator(function(){return K(e,fa)});D.setClosingChecker(function(){var y=!0;C.isWaiting()&&(D.getMessageCurtain().showPrompt(f.get("defaultSelectedDialogPrompt1","\u8bbe\u7f6e\u754c\u9762\u672a\u51c6\u5907\u597d\u3002")),y=!1);return y});D.setClosingAction(function(y){var u=null;y&&(u=Ma.createInstance(C.getModelType()),C.applySettingResult(u));g(u)});O();Y(e)};var K=function(fa,e){var g=new fb,y=new ub;y.setContext(e);U=new cc;U.setBottomLineVisible(!1);ia(fa,
g,100,f.get("defaultSelectedByIndex","\u7b2c\u4e00\u9879"));ia(fa,y,100,f.get("defaultSelectedByAppointed","\u6307\u5b9a"));U.setSelectedChangedListener(function(u,G,Z){C=Z.data("myWrap");C.into()});fa=$("<div>");fa.append(U.getJqUi());p.layoutCtrlWithLRTB(U.getJqUi(),0,0,null,0,0,null);return fa},ia=function(fa,e,g,y){var u=e.getModelType(),G=fa.getDefaultSelected();G&&G.getType()==e.getModelType()||(G=null);fa=e.createJqUi(fa,G);fa.data("myWrap",e);U.addItem(u,g,fa,y)},Y=function(fa){var e=fa.getDefaultSelected();
fa=e?e.getType():fa.isMultiSelectable()?Ma.TYPE_ByAppointed:Ma.TYPE_ByIndex;U.setSelected(fa)}};Ia.ClockFormatDialog=function(){Ba.call(this);var c=this,D=this.protectedMethod,U=["yyyy.MM.dd HH:mm:ss","yyyy.MM.dd","HH:mm:ss"],C,O,K,ia;(function(){c.setSize(400,300);D.setTitle(f.get("clockFormatString","\u663e\u793a\u683c\u5f0f"));D.setContentPaneCreator(function(){var g=$("<div>");fa(g);return g})})();var Y=this.showDialog;this.showDialog=function(g,y){ia=g;D.setClosingAction(function(G){y(G,ia)});
Y();var u=!1;C.toCheckTheElement(function(G){return G.getUserObject()==g?u=!0:!1});u||(K.setText(ia),O.setChecked(!0))};var fa=function(g){C=new Za;C.addChangedListener(function(Z,pa){Z==O?pa?K.setText(ia):ia=$.trim(K.getText()):(ia=Z.getUserObject(),K.setText(""))});for(var y=0,u=0;u<U.length;u++){var G=e(U[u]);C.addElement(G);G.getJqUi().appendTo(g);p.layoutCtrlWithLRTB(G.getJqUi(),0,0,null,y,null,23);y+=30}O=new Oa;C.addElement(O);K=new ib;K.getJqUi().on("click",function(Z){K.setText(ia);O.setChecked(!0)});
K.addEditedListener(function(Z){ia=$.trim(K.getText())});u=new na;u.addStableChild(O,20);u.addStableChild(new qa(f.get("custom","\u81ea\u5b9a\u4e49")));u.addGap(8);u.addActiveChild(K);u.getJqUi().appendTo(g);p.layoutCtrlWithLRTB(u.getJqUi(),0,0,null,y,null,23)},e=function(g){var y=cb.formatDate(g),u=new Oa;u.setText(y);u.setUserObject(g);return u}};Ia.CardLookConfigDialog=function(){dc.call(this);var c=this,D=this.protectedMethod,U,C,O=new Ha,K=new qa,ia,Y=new hc(f.get("cardlookTabLine","\u8fb9\u6846\u5f62\u72b6")),
fa=new Pb(f.get("cardlookTabColor","\u8fb9\u6846\u989c\u8272")),e=!1,g=[];this.setCardLookModel=function(va){U=va.copyToEdit()};this.setContextStyle=function(va,db){O.setPageBackground(va);C=db};this.show=function(va,db){U.hookBackgroundColor(C);e=!1;c.setSize(960,600);D.setTitle(f.get("cardlookDialogTitle","\u81ea\u5b9a\u4e49\u5361\u7247\u8fb9\u6846")+" -- "+va);D.getDialogCtrl().setResizeEnabled();D.getDialogCtrl().setFullScreenEnabled();D.getDialogCtrl().addResizeListener(function(Jb,Xb){ia.refreshUi();
G()});D.setContentPaneCreator(y);D.setClosingAction(function(Jb){Jb&&(U.validateLightItems(),db(U))});D.setClosingChecker2(function(Jb){Jb(!0)},function(Jb){if(e){var Xb=!1,gc=w.createFeedbackDialog();gc.setOptionType(w.OPTION_YES_NO);gc.setMessage(f.get("askAbort","\u662f\u5426\u653e\u5f03\u60a8\u7684\u4fee\u6539\uff1f"));gc.setClosingChecker(function(Bc){Xb=Bc==w.RETURN_YES;return!0});gc.setClosedAction(function(){Jb(Xb)});gc.showDialog()}else Jb(!0)},!0);u();c.showDialog();D.getDialogCtrl().setToolbarVisible(!0);
D.initToolbarExportButton("qing-style-cardlook","20230331",Z,pa,sa,Ya,function(){return ia.getJqUi().parent()});La()};var y=function(){ia=new Ca;ia.setTabPanes([Y,fa]);ia.setTabHeadItemHeight(48);ia.setTabHeadWidth(100);setTimeout(function(){ia.refreshUi();G()},0);var va=$("<div>");va.css("border","1px solid #e0e0e0");va.append(ia.getJqUi());va.append(K.getJqUi());va.append(O.getJqUi());p.layoutCtrlWithLRTB(ia.getJqUi(),0,null,520,0,0,null);p.layoutCtrlWithLRTB(K.getJqUi(),520,20,null,10,null,30);
p.layoutCtrlWithLRTB(O.getJqUi(),520,20,null,40,20,null);return va},u=function(){var va={getModel:function(){return U},modified:function(){G();e=!0},addModelChangedListener:function(db){g.push(db)}};Y.hookContext(va);fa.hookContext(va)},G=function(){K.setText(f.get("preview","\u9884\u89c8"));O.refresh(U)},Z=function(va){return va.getKeyOfCardlook()},pa=function(){return U.toJsonObject()},Ga=function(va){U=Va(va);G();for(va=0;va<g.length;va++)(0,g[va])();e=!1},Va=function(va){var db=new jb;db.fromJsonObject(va);
db.hookBackgroundColor(C);return db},Ya=function(va,db){if(e){var Jb=w.createFeedbackDialog();Jb.setOptionType(w.OPTION_YES_NO);Jb.setMessage(f.get("cardlookOverwriteAsker","\u5f53\u524d\u6b63\u5728\u7f16\u8f91\u7684\u72b6\u6001\u5c06\u88ab\u8986\u76d6\uff0c\u662f\u5426\u7ee7\u7eed\uff1f"));Jb.setClosingChecker(function(Xb){Xb==w.RETURN_YES?(Ga(va),db(!0)):db(!1);return!0});Jb.showDialog()}else Ga(va),db(!0)},sa=function(va,db){},La=function(){D.getDialogCtrl().createToolbarButton(f.get("cardlookImportDemo",
"\u5e94\u7528\u9884\u7f6e\u6837\u5f0f"),function(va){for(var db=[],Jb=[f.get("cardlookDemoLight","\u9002\u7528\u4e8e\u6d45\u8272\u80cc\u666f"),[ra,r,z],f.get("cardlookDemoDark","\u9002\u7528\u4e8e\u6df1\u8272\u80cc\u666f"),[I,aa,v,t,L,F,ya]],Xb=0,gc=0;gc<Jb.length;gc+=2){var Bc=Jb[gc+1],Qc=rc.createSubMenu(Jb[gc]);db.push(Qc);for(var Xc=0;Xc<Bc.length;Xc++){var Tc=f.get("cardlookDemo","\u793a\u4f8b")+ ++Xb,Sb=Bc[Xc];Tc=rc.createActionMenuItem(Tc,Q);Tc.setUserObject(Sb);Qc.addItemModel(Tc)}}D.popupMenu(va,
db).setItemHoverListener(function(Ub,$b,Db){if(Db=$b.getUserObject())Ub?(Ub=$b.getText(),$b=JSON.parse(Db),$b=Va($b),O.refresh($b),K.setText(Ub)):G()})},!0)},Q=function(va){va=va.getUserObject();va=JSON.parse(va);Ya(va,function(db){!db&&G()})},ra='{"edgeN":{"type":"SINGLE_TURN","majorWide":"W1","minorWide":"W5","flip":"H","turnPos1":60,"customMinor":"_2/~;","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeS":{"type":"STRAIGHT","majorWide":"W1","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeW":{"type":"STRAIGHT","majorWide":"W1","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeE":{"type":"STRAIGHT","majorWide":"W1","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"cornerNW":{"type":"LEAN","lineWide":"W1","radius":5},"cornerNE":{"type":"LEAN","lineWide":"W1","radius":10},"cornerSW":{"type":"LEAN","lineWide":"W1","radius":10},"cornerSE":{"type":"LEAN","lineWide":"W1","radius":10},"lineThickness":{"W1":75,"W2":150,"W3":225,"W4":300,"W5":400},"lineColor":{"MAIN":"rgba(61,204,192,1)","STRONG":"rgba(153,217,43,1)"}}',
r='{"edgeN":{"type":"STRAIGHT","majorWide":"W3","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":50,"color":"STRONG"}]},"edgeS":{"type":"DOUBLE_TURN","majorWide":"W2","minorWide":"NONE","flip":"NONE","turnPos1":20,"turnPos2":80},"edgeW":{"type":"NONE"},"edgeE":{"type":"NONE"},"cornerNW":{"type":"NONE"},"cornerNE":{"type":"NONE"},"cornerSW":{"type":"NONE"},"cornerSE":{"type":"NONE"},"lineThickness":{"W1":75,"W2":150,"W3":225,"W4":300,"W5":200},"lineColor":{"MAIN":"rgba(149,190,255,1)","STRONG":"rgba(255,202,202,1)"}}',
z='{"edgeN":{"type":"SINGLE_TURN","majorWide":"W2","minorWide":"W5","flip":"NONE","turnPos1":40,"titleEnhanced":true,"customMinor":"{#fc9}_6|6"},"edgeS":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE"},"edgeW":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE"},"edgeE":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"BOTH"},"cornerNW":{"type":"NONE"},"cornerNE":{"type":"ROUND","lineWide":"W2","radius":6},"cornerSW":{"type":"NONE"},"cornerSE":{"type":"NONE"},"lineThickness":{"W1":75,"W2":150,"W3":225,"W4":500,"W5":2400},"lineColor":{"MAIN":"rgba(149,190,255,1)"}}',
I='{"edgeN":{"type":"SINGLE_TURN","majorWide":"W2","minorWide":"W5","flip":"NONE","turnPos1":60,"customMinor":";(\\\\5_5)~","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeS":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeW":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeE":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"cornerNW":{"type":"LEAN","lineWide":"W2","radius":5},"cornerNE":{"type":"LEAN","lineWide":"W2","radius":5},"cornerSW":{"type":"LEAN","lineWide":"W2","radius":5},"cornerSE":{"type":"LEAN","lineWide":"W2","radius":5},"lineThickness":{"W1":75,"W2":150,"W3":225,"W4":300,"W5":400},"lineColor":{"MAIN":"rgba(19,61,208,1)","STRONG":"rgba(2,194,250,1)"}}',
aa='{"edgeN":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeS":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeW":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeE":{"type":"DOUBLE_TURN","majorWide":"W2","minorWide":"W4","flip":"NONE","turnPos1":50,"turnPos2":90,"customMinor":";/~;","lightItems":[{"pos":60,"color":"STRONG"}]},"cornerNW":{"type":"HARD","lineWide":"W2","radius":5},"cornerNE":{"type":"HARD","lineWide":"W2","radius":5},"cornerSW":{"type":"HARD","lineWide":"W2","radius":5},"cornerSE":{"type":"HARD","lineWide":"W2","radius":5},"lineThickness":{"W1":100,"W2":150,"W3":225,"W4":300,"W5":1000},"lineColor":{"MAIN":"rgba(19,61,208,1)","STRONG":"rgba(2,194,250,1)"}}',
v='{"edgeN":{"type":"STRAIGHT","majorWide":"W1","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeS":{"type":"STRAIGHT","majorWide":"W1","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeW":{"type":"STRAIGHT","majorWide":"W1","minorWide":"W4","flip":"NONE","customMinor":"_15(|2_3)10","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeE":{"type":"STRAIGHT","majorWide":"W1","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"cornerNW":{"type":"HARD","lineWide":"W3","radius":10},"cornerNE":{"type":"HARD","lineWide":"W3","radius":10},"cornerSW":{"type":"HARD","lineWide":"W3","radius":10},"cornerSE":{"type":"HARD","lineWide":"W3","radius":10},"lineThickness":{"W1":100,"W2":150,"W3":225,"W4":500,"W5":1000},"lineColor":{"MAIN":"rgba(19,61,208,1)","STRONG":"rgba(2,194,250,1)"}}',
t='{"edgeN":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeS":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeW":{"type":"DOUBLE_TURN","majorWide":"W2","minorWide":"W3","flip":"V","turnPos1":50,"turnPos2":80,"customMinor":"_2/~;;\\\\~_2","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeE":{"type":"DOUBLE_TURN","majorWide":"W2","minorWide":"W3","flip":"H","turnPos1":50,"turnPos2":80,"customMinor":"_2\\\\~;;/~_2","lightItems":[{"pos":60,"color":"STRONG"}]},"cornerNW":{"type":"LEAN","lineWide":"W2","radius":5},"cornerNE":{"type":"LEAN","lineWide":"W2","radius":5},"cornerSW":{"type":"LEAN","lineWide":"W2","radius":5},"cornerSE":{"type":"LEAN","lineWide":"W2","radius":5},"lineThickness":{"W1":100,"W2":150,"W3":225,"W4":300,"W5":1000},"lineColor":{"MAIN":"rgba(19,61,208,1)","STRONG":"rgba(2,194,250,1)"}}',
L='{"edgeN":{"type":"SINGLE_TURN","majorWide":"W2","minorWide":"W5","flip":"NONE","turnPos1":40,"customMinor":";(\\\\5_3)5\\\\20","lightItems":[{"pos":40,"color":"STRONG"}]},"edgeS":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeW":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":60,"color":"STRONG"}]},"edgeE":{"type":"SINGLE_TURN","majorWide":"W2","minorWide":"NONE","flip":"NONE","turnPos1":60,"lightItems":[{"pos":60,"color":"STRONG"}]},"cornerNW":{"type":"LEAN","lineWide":"W2","radius":10},"cornerNE":{"type":"LEAN","lineWide":"W2","radius":10},"cornerSW":{"type":"LEAN","lineWide":"W2","radius":10},"cornerSE":{"type":"LEAN","lineWide":"W2","radius":10},"lineThickness":{"W1":100,"W2":150,"W3":225,"W4":300,"W5":500},"lineColor":{"MAIN":"rgba(19,61,208,1)","STRONG":"rgba(2,194,250,1)"}}',
F='{"edgeN":{"type":"DOUBLE_TURN","majorWide":"W2","minorWide":"W5","flip":"V","turnPos1":30,"turnPos2":70,"customMinor":"_~(\\\\4_4)3;;(_4/4)3","lightItems":[{"pos":50,"color":"STRONG"}]},"edgeS":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":50,"color":"STRONG"}]},"edgeW":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":50,"color":"STRONG"}]},"edgeE":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":50,"color":"STRONG"}]},"cornerNW":{"type":"LEAN","lineWide":"W2","radius":6},"cornerNE":{"type":"LEAN","lineWide":"W2","radius":6},"cornerSW":{"type":"LEAN","lineWide":"W2","radius":6},"cornerSE":{"type":"LEAN","lineWide":"W2","radius":6},"lineThickness":{"W1":75,"W2":150,"W3":225,"W4":300,"W5":400},"lineColor":{"MAIN":"rgba(209,19,13,1)","STRONG":"rgba(255,173,182,1)"}}',
ya='{"edgeN":{"type":"SINGLE_TURN","majorWide":"W2","minorWide":"NONE","flip":"NONE","turnPos1":60,"lightItems":[{"pos":50,"color":"STRONG"}]},"edgeS":{"type":"STRAIGHT","majorWide":"W2","minorWide":"NONE","flip":"NONE","lightItems":[{"pos":50,"color":"STRONG"}]},"edgeW":{"type":"SINGLE_TURN","majorWide":"W2","minorWide":"W5","flip":"NONE","turnPos1":80,"customMinor":";{#963}(\\\\5_2)~","lightItems":[{"pos":50,"color":"STRONG"}]},"edgeE":{"type":"DOUBLE_TURN","majorWide":"W2","minorWide":"W4","flip":"NONE","turnPos1":20,"turnPos2":70,"customMinor":";;(O_4)~","lightItems":[{"pos":50,"color":"STRONG"}]},"cornerNW":{"type":"ROUND","lineWide":"W2","radius":4},"cornerNE":{"type":"NONE"},"cornerSW":{"type":"NONE"},"cornerSE":{"type":"ROUND","lineWide":"W2","radius":4},"lineThickness":{"W1":75,"W2":150,"W3":225,"W4":300,"W5":400},"lineColor":{"MAIN":"rgba(255,153,28,1)","STRONG":"rgba(255,224,166,1)"}}'};
Ia.PageTitleBarSurfaceDialog=function(){function c(){oa.call(this);var K=this.protectedMethod,ia,Y,fa,e;this.setModel=function(g){ia=g;K.initRadioButton(g?!0:!1)};this.acceptModel=function(g){g.setBackgroundColor(Y.getColor());g.setSeparaterLineWidth(fa.getValue());g.setSeparaterColor(e.getColor())};this.isCustomChecked=function(){return K.isCustomChecked()};this.protectedInitCustomDetailPanel=function(g){if(ia){var y=ia.getBackgroundColor();var u=ia.getSeparaterLineWidth();var G=ia.getSepataterColor()}else G=
ab.dip(ab.DSB_PAGE_TITLE_BAR),y=G[ab.Key_PageTitleBar_BackgroundColor],u=parseInt(G[ab.Key_PageTitleBar_SeparaterLineWidth]),G=G[ab.Key_PageTitleBar_SeparaterColor];Y=new Pc;Y.setDisplayForNull(f.get("colorNull","\u65e0"));Y.setColor(y?y:null);fa=new yc;fa.setConstraint(0,10,1);fa.setValue(u?u:0);e=new Pc;e.setDisplayForNull(f.get("colorNull","\u65e0"));e.setColor(G?G:0);y=new qa(f.get("titleBarBackgroundColor","\u80cc\u666f\u989c\u8272"));u=new qa(f.get("titleBarSeparaterLineWidth","\u5206\u9694\u7ebf\u7ebf\u5bbd"));
G=new qa(f.get("titleBarSeparaterColor","\u5206\u9694\u7ebf\u989c\u8272"));g.append(y.getJqUi());g.append(Y.getJqUi());g.append(u.getJqUi());g.append(fa.getJqUi());g.append(G.getJqUi());g.append(e.getJqUi());p.layoutCtrlWithLRTB(y.getJqUi(),0,null,140,0,null,23);p.layoutCtrlWithLRTB(Y.getJqUi(),0,null,140,25,null,23);p.layoutCtrlWithLRTB(G.getJqUi(),220,null,140,0,null,23);p.layoutCtrlWithLRTB(e.getJqUi(),220,null,140,25,null,23);p.layoutCtrlWithLRTB(u.getJqUi(),220,null,140,70,null,23);p.layoutCtrlWithLRTB(fa.getJqUi(),
220,null,140,95,null,23)}}Ba.call(this);var D=this,U=this.protectedMethod,C,O=this.showDialog;this.showDialog=function(K,ia){D.setSize(480,320);U.setTitle(f.get("titleBarSurfaceDialogTitle","\u9875\u9762\u6807\u9898\u680f\u6837\u5f0f"));U.setContentPaneCreator(function(){C=new c;C.setModel(K.getSurfaceModel());return C.getJqUi()});U.setClosingAction(function(Y){Y&&(Y=null,C.isCustomChecked()&&(Y=K.createSurfaceModel(),C.acceptModel(Y)),ia(Y))});O()}};Ia.CardTopBarTitleLayoutDialog=kb;Ia.PageCardTopBarTitleLayoutDialog=
function(){Ba.call(this);var c=this,D=this.protectedMethod,U=new ob;this.setWidget=function(C){var O=new Hb;O.setCardTitle(f.get("previewCardTitle","\u5361\u7247\u6807\u9898"));if(C.getCardTopBarCommon()){var K=new yb;K.fromJsonObject(C.getCardTopBarCommon().toJsonObject());O.setCardTopBarCommon(K)}O.hookUsableCardBorderGetter(function(){return C.getCardBorder()});O.hookUsableCardTopBarCommonGetter(function(){return O.getCardTopBarCommon()});O.getCardTopBarCommon()||O.setCardTopBarCommon(new yb);
U.setWidgetInstead(O)};this.show=function(C){c.setSize(960,540);D.setTitle(f.get("cardTitleLayoutDialogTitle","\u5361\u7247\u6807\u9898\u680f\u56fe\u7247")+" -- "+f.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"));D.setContentPaneCreator(function(){return U.createUi()});D.setClosingAction(function(O){O&&C(U.acceptModified())});D.getDialogCtrl().setMinSize(720,400);D.getDialogCtrl().setResizeEnabled();D.getDialogCtrl().setFullScreenEnabled();D.getDialogCtrl().addResizeListener(function(O,K){U.refreshPreviewCard()});
c.showDialog();U.refreshPreviewCard()}};Ia.CardTitleStyleDialog=function(){Ba.call(this);var c=this,D=this.protectedMethod,U=new function(){oa.call(this);var K=this.protectedMethod,ia=new Sc;this.setValue=function(Y){K.initRadioButton(Y?!0:!1);ia.setSelected(Y)};this.getValue=function(){var Y=K.isCustomChecked()?ia.getSelected():null;return Y?Y:null};this.protectedInitCustomDetailPanel=function(Y){Y.append(ia.getJqUi());p.layoutCtrlWithLRTB(ia.getJqUi(),0,0,null,0,null,23)}},C=new function(){oa.call(this);
var K=this.protectedMethod,ia=new yc;this.setValue=function(Y){var fa=Y?!0:!1;K.initRadioButton(fa);ia.setValue(fa?Y:12)};this.getValue=function(){return K.isCustomChecked()?ia.getValue():null};this.protectedInitCustomDetailPanel=function(Y){ia.setConstraint(1,99,1);Y.append(ia.getJqUi());p.layoutCtrlWithLRTB(ia.getJqUi(),0,0,null,0,null,23)}},O=new function(){oa.call(this);var K=this.protectedMethod,ia=new eb;this.setValue=function(Y){var fa=Y?!0:!1;K.initRadioButton(fa);ia.getModel().decodeFrom(fa?
Y:"#808080")};this.getValue=function(){return K.isCustomChecked()?ia.getModel().encodeToHexRgb():null};this.protectedInitCustomDetailPanel=function(Y){ia.setColorPool(Xa.getColorPool7());Y.append(ia.getJqUi());p.layoutCtrlWithLRTB(ia.getJqUi(),0,0,null,0,null,23)}};this.setWidget=function(K){U.setValue(K.getTitleFontName());C.setValue(K.getTitleFontSize());O.setValue(K.getTitleColor());D.setTitle(f.get("cardTitleStyleDialogTitle","\u5361\u7247\u6807\u9898\u6837\u5f0f")+" -- "+K.getDisplayName())};
this.show=function(K){c.setSize(640,360);D.setContentPaneCreator(function(){var ia=new qa(f.get("labelFontName","\u5b57\u4f53")),Y=new qa(f.get("labelFontSize","\u5b57\u53f7")),fa=new qa(f.get("labelColor","\u989c\u8272")),e=$("<div>");e.append(ia.getJqUi());e.append(Y.getJqUi());e.append(fa.getJqUi());e.append(U.getJqUi());e.append(C.getJqUi());e.append(O.getJqUi());p.layoutCtrl(ia.getJqUi(),0,0,140,23);p.layoutCtrl(Y.getJqUi(),200,0,140,23);p.layoutCtrl(fa.getJqUi(),400,0,140,23);p.layoutCtrl(U.getJqUi(),
0,30,160,100);p.layoutCtrl(C.getJqUi(),200,30,160,100);p.layoutCtrl(O.getJqUi(),400,30,160,100);return e});D.setClosingAction(function(ia){if(ia){ia=U.getValue();var Y=C.getValue(),fa=O.getValue();K(ia,Y,fa)}});c.showDialog()}};Ia.CardBorderOfImageDialog=function(){Ba.call(this);var c=this,D=this.protectedMethod,U=!1,C=new Ka,O=new yc,K=new yc,ia=new yc,Y=new yc,fa,e=$(Ua.createCanvas()),g=[30,30,240,180],y;this.setImage=function(z,I){C.setModel(z);O.setValue(I[0]);K.setValue(I[1]);ia.setValue(I[2]);
Y.setValue(I[3])};this.show=function(z,I){U=!1;c.setSize(480,520);D.setTitle(f.get("cardImgBorderDialogTitle","\u81ea\u5b9a\u4e49\u5361\u7247\u8fb9\u6846\uff08\u8d34\u56fe\uff09")+" -- "+z);D.setContentPaneCreator(u);D.setClosingAction(function(aa){aa&&(aa=[O.getValue(),K.getValue(),ia.getValue(),Y.getValue()],I(C.getModel(),aa))});D.setClosingChecker2(function(aa){aa(!0)},function(aa){if(U){var v=!1,t=w.createFeedbackDialog();t.setOptionType(w.OPTION_YES_NO);t.setMessage(f.get("askAbort","\u662f\u5426\u653e\u5f03\u60a8\u7684\u4fee\u6539\uff1f"));
t.setClosingChecker(function(L){v=L==w.RETURN_YES;return!0});t.setClosedAction(function(){aa(v)});t.showDialog()}else aa(!0)},!0);c.showDialog();Ya(!1)};var u=function(){var z=new qa(f.get("pictureUrl","\u56fe\u7247\u6587\u4ef6")),I=new qa(f.get("cardImgBorderFixedLeft","\u56fa\u5b9a\u5de6")),aa=new qa(f.get("cardImgBorderFixedRight","\u56fa\u5b9a\u53f3")),v=new qa(f.get("cardImgBorderFixedTop","\u56fa\u5b9a\u4e0a")),t=new qa(f.get("cardImgBorderFixedBottom","\u56fa\u5b9a\u4e0b")),L=new qa(f.get("cardImgBorderFixedAdjusting",
"\u4f38\u7f29")),F=new qa(f.get("cardImgBorderFixedAdjusting","\u4f38\u7f29"));L.setAlign(qa.ALIGN_CENTER);F.setAlign(qa.ALIGN_RIGHT);C.addActionListener(Va);C.setCustomPainter(pa);Z(O);Z(K);Z(ia);Z(Y);fa=$("<div>");fa.css("color","#c30");var ya=$("<div>");G(ya,z,20,0,400,23);G(ya,C,20,30,400,23);G(ya,I,100,90,80,20);G(ya,O,100,110,60,23);G(ya,L,190,110,80,20);G(ya,aa,300,90,80,20);G(ya,K,300,110,60,23);G(ya,v,20,160,80,20);G(ya,ia,20,180,60,23);G(ya,F,20,242,60,20);G(ya,t,20,300,80,20);G(ya,Y,20,
320,60,23);ya.append(e);p.layoutCtrl(e,80,133,360,268);ya.append(fa);p.layoutCtrl(fa,20,60,400,20);return ya},G=function(z,I,aa,v,t,L){z.append(I.getJqUi());p.layoutCtrl(I.getJqUi(),aa,v,t,L)},Z=function(z){z.setConstraint(0,999,1);z.addValueChangedListener(function(I,aa,v,t){Ga();La()},!0)},pa=function(z){return z&&z.getReferenceCustomMap()?f.get("refHasSet","\u5df2\u8bbe\u7f6e"):""},Ga=function(){if(y){var z=y.width,I=y.height,aa=O.getValue(),v=K.getValue(),t=ia.getValue(),L=Y.getValue();aa+v>=
z?(z=f.get("cardImgBorderWarning","\u201c#1\u201d\u548c\u201c#2\u201d\u7684\u503c\u52a0\u8d77\u6765\u5fc5\u987b\u5c0f\u4e8e#3\u3002").replace("#1",f.get("cardImgBorderFixedLeft","\u56fa\u5b9a\u5de6")).replace("#2",f.get("cardImgBorderFixedRight","\u56fa\u5b9a\u53f3")).replace("#3",f.get("cardImgBorderImageWidth","\u56fe\u7247\u5bbd\u5ea6")),fa.text(z)):t+L>=I?(z=f.get("cardImgBorderWarning","\u201c#1\u201d\u548c\u201c#2\u201d\u7684\u503c\u52a0\u8d77\u6765\u5fc5\u987b\u5c0f\u4e8e#3").replace("#1",
f.get("cardImgBorderFixedTop","\u56fa\u5b9a\u4e0a")).replace("#2",f.get("cardImgBorderFixedBottom","\u56fa\u5b9a\u4e0b")).replace("#3",f.get("cardImgBorderImageHeight","\u56fe\u7247\u9ad8\u5ea6")),fa.text(z)):fa.text("")}},Va=function(z){var I=z.getModel();I=I?I.getReferenceCustomMap():null;wb.getWidgetSourceSelector().selectPicture(I,function(aa){if(aa){var v=$a.createPeer();v.setReferenceCustomMap(aa);z.setModel(v);fa.text("");Ya(!0)}})},Ya=function(z){y=null;var I=C.getModel();(I=I?I.getReferenceCustomMap():
null)?wb.getPictureLoader()(I,function(aa,v,t){var L=new Image;L.onload=function(F){y=L;z?sa():Ga();La()};L.src=aa},function(aa){sa();La();fa.text(f.get("cardImgBorderWarning2","\u627e\u4e0d\u5230\u56fe\u7247\uff1a")+aa)}):(sa(),La(),fa.text(f.get("cardImgBorderWarning1","\u672a\u6307\u5b9a\u56fe\u7247\u3002")))},sa=function(){var z=Math.min(20,Math.floor((y?y.width:0)/3)),I=Math.min(20,Math.floor((y?y.height:0)/3));O.setValue(z);K.setValue(z);ia.setValue(I);Y.setValue(I)},La=function(){var z=e.prop("clientWidth"),
I=e.prop("clientHeight");z=Ua.createContext2d(e[0],z,I);var aa=g[0],v=g[1],t=g[2],L=g[3],F=y?y.width:t;I=y?y.height:L;var ya=F/I,va=t/L,db=aa,Jb=v,Xb=t,gc=L;ya>va?(gc=t/F*I,Jb=v+(L-gc)/2):ya<va&&(Xb=L/I*F,db=aa+(t-Xb)/2);y&&z.drawImage(y,0,0,F,I,db,Jb,Xb,gc);z.strokeStyle="#000";z.lineWidth=1;z.strokeRect(db,Jb,Xb,gc);aa=Xb/F;ya=O.getValue()*aa;var Bc=K.getValue()*aa;va=ia.getValue()*aa;var Qc=Y.getValue()*aa;L=db;aa=db+Xb;v=Jb;t=Jb+gc;ya=Math.min(aa,db+ya);Xb=Math.max(L,db+Xb-Bc);db=Math.min(t,Jb+
va);Jb=Math.max(v,Jb+gc-Qc);z.setLineDash([4,2]);Q(z,L,ya,Xb,aa,v,db,Jb,t);z.strokeStyle="#fff";z.lineWidth=.5;Q(z,L,ya+.5,Xb-.5,aa,v,db+.5,Jb-.5,t);z.setLineDash([]);z.strokeStyle="#808080";z.fillStyle="#808080";z.lineWidth=.5;ra(z,L,ya,v-16,12,O);ra(z,Xb,aa,v-20,16,K);r(z,v,db,L-16,12,ia);r(z,Jb,t,L-20,12,Y);Xb>ya&&(gc=.5*(L+aa),Xb=.5*(ya+Xb),z.beginPath(),z.moveTo(gc,0),z.lineTo(Xb,v-4),z.stroke());Jb>db&&(gc=.5*(v+t),Jb=.5*(db+Jb),z.beginPath(),z.moveTo(4,gc),z.lineTo(L-2,Jb),z.stroke());y&&(z.beginPath(),
z.moveTo(L,t+4),z.lineTo(L,t+30),z.moveTo(aa,t+4),z.lineTo(aa,t+30),z.moveTo(L,t+20),z.lineTo(aa,t+20),z.stroke(),z.font="12px serif",Jb=f.get("cardImgBorderImageWidth","\u56fe\u7247\u5bbd\u5ea6"),gc=z.measureText(Jb).width,z.fillText(Jb,.5*(L+aa-gc),t+36),z.font="14px serif",Jb=z.measureText(F).width,z.fillText(F,.5*(L+aa-Jb),t+50),z.beginPath(),z.moveTo(aa+4,v),z.lineTo(aa+30,v),z.moveTo(aa+4,t),z.lineTo(aa+30,t),z.moveTo(aa+20,v),z.lineTo(aa+20,t),z.stroke(),z.font="12px serif",F=f.get("cardImgBorderImageHeight",
"\u56fe\u7247\u9ad8\u5ea6"),z.fillText(F,aa+24,.5*(v+t)),z.font="14px serif",z.fillText(I,aa+24,.5*(v+t)+16))},Q=function(z,I,aa,v,t,L,F,ya,va){z.beginPath();z.moveTo(aa,L);z.lineTo(aa,va);z.moveTo(v,L);z.lineTo(v,va);z.moveTo(I,F);z.lineTo(t,F);z.moveTo(I,ya);z.lineTo(t,ya);z.stroke()},ra=function(z,I,aa,v,t,L){L=L.getJqUi();L=L.prop("offsetLeft")-e.prop("offsetLeft")+.5*L.prop("offsetWidth");z.beginPath();z.moveTo(I,v+t);z.lineTo(I,v);z.lineTo(aa,v);z.lineTo(aa,v+t);z.moveTo(I+.5*(aa-I),v);z.lineTo(L,
0);z.stroke()},r=function(z,I,aa,v,t,L){L=L.getJqUi();L=L.prop("offsetTop")-e.prop("offsetTop")+L.prop("offsetHeight");z.beginPath();z.moveTo(v+t,I);z.lineTo(v,I);z.lineTo(v,aa);z.lineTo(v+t,aa);z.moveTo(v,I+.5*(aa-I));z.lineTo(0,L);z.stroke()}};Ia.OverallCutPasteDialog=function(){function c(K,ia){this.getWannaWidget=function(){return K};this.getWannaContainer=function(){return ia}}Ba.call(this);var D=this,U=this.protectedMethod,C=new function(){q.call(this);var K=this.protectedMethod,ia,Y,fa={};
this.setPage=function(I){e().setRoot(Va(I));g().setRoot(Ya(I));K.getButtonDeselect().setEnabled(!1)};this.getWanna=function(){var I=[],aa;for(aa in fa){var v=fa[aa];v=[v.getWannaWidget(),v.getWannaContainer()];I.push(v)}return I};this.protectedCreateLeftJqTitle=function(){return(new qa(f.get("overallCutPasteSrc","\u7ec4\u4ef6"))).getJqUi()};this.protectedCreateRightJqTitle=function(){return(new qa(f.get("overallCutPasteDest","\u79fb\u52a8\u5230\u5bb9\u5668"))).getJqUi()};this.protectedGetLeftCtrl=
function(){return e()};this.protectedGetRightCtrl=function(){return g()};this.protectedSelect=function(I){I?sa():La()};var e=function(){ia||(ia=y(),ia.setNodePainter(G));return ia},g=function(){Y||(Y=y(),Y.setNodePainter(Z),Y.addSelectedListener(function(I){I=u(I);I=(null==I?null:I.getUserObject())instanceof c;K.getButtonSelect().setEnabled(!I);K.getButtonDeselect().setEnabled(I)}));return Y},y=function(){var I=new ic;I.getJqUi().css({border:"1px solid #ddd",color:"#666"});I.setNodeSelectingStateUpdater(function(aa,
v,t){Ga(aa,t)});return I},u=function(I){I=I.getSelecteds();return 0==I.length?null:I[0]},G=function(I,aa){aa=aa.getUserObject();pa(I,aa,aa.getDisplayName())},Z=function(I,aa){aa=aa.getUserObject();if(aa instanceof c){aa=aa.getWannaWidget();var v=aa.getDisplayName();aa.isContainer()&&0<aa.getWidgetCount()&&(v+=f.get("overallCutPasteWithDescendents","\uff08\u53ca\u5176\u5b50\u8282\u70b9\uff09"));I.css({"box-shadow":"0 0 0 1px #808080 inset"})}else v=aa.getDisplayName();pa(I,aa,v)},pa=function(I,aa,
v){aa=H.getInstance(aa.getWidgetTypeName()).getIconFileName()+"_min";I.text(v);I.css("padding-left","18px");v=$("<div>");v.data("myIconName",aa);v.appendTo(I);p.layoutCtrl(v,0,3,16,16);Ga(I,!1)},Ga=function(I,aa){I=I.children().first();var v=I.data("myIconName");Qa.background(I,v+(aa?"_selected":""))},Va=function(I){if(I.isContainer()){var aa=new ic.BranchNode(I);aa.setExpanded(!0);for(var v=0;v<I.getWidgetCount();v++)aa.addChild(Va(I.getWidget(v)))}else aa=new ic.LeafNode(I);return aa},Ya=function(I){var aa=
new ic.BranchNode(I);aa.setExpanded(!0);for(var v=0;v<I.getWidgetCount();v++){var t=I.getWidget(v);t.isContainer()&&aa.addChild(Ya(t))}return aa},sa=function(){var I=u(e());if(null==I)O(f.get("overallCutPastePrompt1","\u5de6\u4fa7\u672a\u9009\u62e9\u5c06\u8981\u79fb\u52a8\u7684\u7ec4\u4ef6\u3002"));else{var aa=I.getUserObject(),v=u(g());if(null==v)O(f.get("overallCutPastePrompt2","\u53f3\u4fa7\u672a\u9009\u62e9\u76ee\u6807\u5bb9\u5668\u3002"));else{var t=v.getUserObject();if(aa.getWidgetTypeName()==
W.WidgetType_Page||aa.getWidgetTypeName()==W.WidgetType_PageTitleBar||aa.getWidgetTypeName()==W.WidgetType_Unknown)O(f.get("overallCutPastePrompt3","\u201c#1\u201d\u662f\u4e0d\u80fd\u79fb\u52a8\u7684\u7ec4\u4ef6\u3002").replace("#1",aa.getDisplayName()));else if(aa.getParent()==t)O(f.get("overallCutPastePrompt4","\u5bb9\u5668\u6ca1\u6709\u6539\u53d8\u3002"));else if(aa.isContainer()&&aa.isDescendentsContain(t)||aa==t)O(f.get("overallCutPastePrompt5","\u4e0d\u80fd\u79fb\u52a8\u5230\u81ea\u5df1\u6216\u81ea\u5df1\u7684\u4e0b\u7ea7\u7ec4\u4ef6\u4e4b\u4e0b\u3002"));
else{var L=[];if(t.isCanContain(aa,L)&&aa.isCanBeContained(t,L)){if(aa.isContainer()){if(Q(aa)){I=f.get("overallCutPastePrompt6","\u201c#1\u201d\u6216\u5176\u4e0b\u7ea7\u5df2\u4f5c\u4e3a\u76ee\u6807\u5bb9\u5668\u63a5\u6536\u4e86\u7ec4\u4ef6\uff0c\u672c\u6b21\u4e0d\u80fd\u79fb\u52a8\u3002");O(I.replace("#1",aa.getDisplayName()));return}if(ra(aa)){I=f.get("overallCutPastePrompt7","\u201c#1\u201d\u672c\u6b21\u4e0d\u80fd\u79fb\u52a8\uff0c\u56e0\u4e3a\u5b83\u7684\u4e0b\u7ea7\u7ec4\u4ef6\u5df2\u51c6\u5907\u79fb\u52a8\u3002");
O(I.replace("#1",aa.getDisplayName()));return}}L=r(I);t=new c(aa,t);fa[aa.getName()]=t;e().removeChild(I.getParent(),I);e().setSelecteds(L?[L]:null);g().addChild(v,new ic.LeafNode(t));aa.isContainer()&&g().getRoot().visiting(function(F){return F.getUserObject()==aa?(g().removeChild(F.getParent(),F),!0):!1});g().expandToNode(v)}else I=L.join(" "),O(I)}}}},La=function(){var I=u(g()),aa=r(I),v=I.getUserObject().getWannaWidget();delete fa[v.getName()];g().removeChild(I.getParent(),I);e().getRoot().visiting(function(t){if(t.getUserObject()==
v.getParent()){var L=Va(v),F=z(t,L);e().addChild(t,L,F);e().setSelecteds([L]);e().expandToNode(L);e().scrollSelectedToVisible();aa?g().setSelecteds([aa]):(g().setSelecteds(null),K.getButtonSelect().setEnabled(!0),K.getButtonDeselect().setEnabled(!1));return!0}return!1});v.isContainer()&&g().getRoot().visiting(function(t){if(t.getUserObject()==v.getParent()){var L=Ya(v),F=z(t,L);g().addChild(t,L,F);return!0}return!1})},Q=function(I){for(var aa in fa){var v=fa[aa];if(I==v.getWannaContainer()||I.isDescendentsContain(v.getWannaContainer()))return!0}return!1},
ra=function(I){for(var aa in fa)if(I.isDescendentsContain(fa[aa].getWannaWidget()))return!0;return!1},r=function(I){for(var aa=!1,v=null,t=I.getParent(),L=t.getChildCount()-1;0<=L;L--){var F=t.getChild(L);F==I?aa=!0:v=F;if(aa&&null!=v)break}return v},z=function(I,aa){var v=function(ya,va){for(var db=0;db<ya.getWidgetCount();db++)if(ya.getWidget(db)==va)return db;return Infinity},t=I.getUserObject();aa=aa.getUserObject();aa=v(t,aa);for(var L=0;L<I.getChildCount();L++){var F=I.getChild(L);F=v(t,F.getUserObject());
if(aa<F)break}return L}};this.show=function(K,ia){D.setSize(720,560);U.setTitle(f.get("overallCutPaste","\u8de8\u5bb9\u5668\u79fb\u52a8\u7ec4\u4ef6"));U.setContentPaneCreator(function(){return C.getJqUi()});U.setClosingAction(function(Y){Y&&(Y=C.getWanna(),0<Y.length&&ia(Y))});U.getDialogCtrl().setResizeEnabled();U.getDialogCtrl().setFullScreenEnabled();U.getDialogCtrl().addResizeListener(function(Y,fa){C.relayout()});D.showDialog();C.relayout();C.setPage(K)};var O=function(K){U.getMessageCurtain().showPrompt(K)}};
Ia.OverallCommunicationDialog=function(){function c(qb,Fb,pb){var ec,qc;this.getLeftTreeNode=function(){return qb};this.getRightTreeNode=function(){return Fb};this.getBizModel=function(){return pb};this.hookEndPoints=function(mc,Gc){ec=mc;qc=Gc};this.getEndPoint1=function(){return ec};this.getEndPoint2=function(){return qc}}Ba.call(this);var D=this,U=this.protectedMethod,C,O,K=2,ia=10,Y=10,fa,e,g,y,u,G,Z,pa,Ga,Va={};this.show=function(qb){C=qb;O=qb.getDashboardModel().getPage();K=parseInt(sessionStorage.getItem("q.dsb.OverallCommunication.type"))||
2;ia=parseInt(sessionStorage.getItem("q.dsb.OverallCommunication.srcView"))||10;Y=parseInt(sessionStorage.getItem("q.dsb.OverallCommunication.destView"))||10;D.setSize(800,600);U.setTitle(f.get("overallAffecting","\u7ec4\u4ef6\u5173\u7cfb\u89c6\u56fe"));U.setFooterPaneCreator(null);U.setContentPaneCreator(function(){fa=new qa("Src");e=new qa("Dest");g=aa();y=aa();Z=$("<div>");Z.append($(Ua.createCanvas()));Z.on("click",Tc);Z.on("mousemove",Xc);G=$("<div>");G.css({color:"#666","text-align":"center"});
u=new kc;u.addActionListener($b);Ub();var Fb=$("<div>");Fb.append(u.getJqUi());sa();var pb=fa.getJqUi();p.layoutCtrlWithLRTB(pb,0,null,"40%",0,null,20);Fb.append(pb);pb=e.getJqUi();p.layoutCtrlWithLRTB(pb,null,0,"40%",0,null,20);Fb.append(pb);pb=g.getJqUi();p.layoutCtrlWithLRTB(pb,0,null,"40%",20,60,null);Fb.append(pb);pb=y.getJqUi();p.layoutCtrlWithLRTB(pb,null,0,"40%",20,60,null);Fb.append(pb);pb=Z;p.layoutCtrlWithLRTB(pb,"40%","40%",null,20,60,null);Fb.append(pb);pb=G;p.layoutCtrlWithLRTB(pb,0,
0,null,null,2,34);Fb.append(pb);return Fb});U.setClosingAction(function(Fb){Ya()});U.getDialogCtrl().setResizeEnabled();U.getDialogCtrl().setFullScreenEnabled();U.getDialogCtrl().addResizeListener(function(Fb,pb){Bc()});U.getDialogCtrl().createToolbarButton(f.get("overallAffectingType","\u7c7b\u522b"),La);U.getDialogCtrl().createToolbarButton(f.get("overallAffectingSrcView","\u5de6\u4fa7\u663e\u793a"),Q,!0);U.getDialogCtrl().createToolbarButton(f.get("overallAffectingDestView","\u53f3\u4fa7\u663e\u793a"),
ra);U.getDialogCtrl().createToolbarButton(f.get("quit","\u9000\u51fa"),function(Fb){Ya();U.destroy()},!0);D.showDialog();U.getDialogCtrl().setToolbarVisible(!0);v()};var Ya=function(){sessionStorage.setItem("q.dsb.OverallCommunication.type",K);sessionStorage.setItem("q.dsb.OverallCommunication.srcView",ia);sessionStorage.setItem("q.dsb.OverallCommunication.destView",Y)},sa=function(){var qb=1==K?"":0,Fb=1==K?0:"";p.layoutCtrlWithLRTB(u.getJqUi(),qb,Fb,"40%",null,38,20)},La=function(qb){var Fb=function(ec,
qc){return rc.createRadio(I(ec),"type",K==ec,function(mc){K=ec;v()})},pb=new uc;pb.addItemModel(Fb(1));pb.addItemModel(Fb(2));pb.addItemModel(Fb(3));z(qb,pb)},Q=function(qb){r(qb,function(Fb,pb){return rc.createRadio(pb,"srcView",ia==Fb,function(ec){ia=Fb;t()})})},ra=function(qb){r(qb,function(Fb,pb){return rc.createRadio(pb,"destView",Y==Fb,function(ec){Y=Fb;t()})})},r=function(qb,Fb){var pb=Fb(10,f.get("overallAffectingViewAll","\u5168\u90e8\u7ec4\u4ef6"));Fb=Fb(11,f.get("overallAffectingViewConnected",
"\u5df2\u8fde\u63a5\u7684\u7ec4\u4ef6"));var ec=new uc;ec.addItemModel(pb);ec.addItemModel(Fb);z(qb,ec)},z=function(qb,Fb){var pb=$(qb.currentTarget);qb=pb.parent();var ec=qb.prop("clientHeight");pb=pb.prop("offsetLeft");var qc=new rc;qc.setModel(Fb);qc.show(qb,pb,ec,null,!0)},I=function(qb){switch(qb){case 1:return f.get("overallAffectingFilterSource","\u7b5b\u9009\u5668\u5907\u9009\u503c");case 2:return f.get("affectingGroupTitle","\u8054\u52a8\uff1a")+f.get("affectedTarget","\u4f5c\u7528\u4e8e");
case 3:return f.get("affectingGroupTitle","\u8054\u52a8\uff1a")+f.get("tabSwitch","\u9875\u7b7e\u5207\u6362");default:return null}},aa=function(){var qb=new ic;qb.getJqUi().css({"box-sizing":"border-box",border:"1px solid #ddd",color:"#666"});qb.getJqUi().on("scroll",function(Fb){Bc()});qb.addExpandedListener(function(Fb,pb){Bc()});qb.setNodePainter(ya);qb.setNodeSelectingStateUpdater(function(Fb,pb,ec){va(Fb,ec)});qb.addSelectedListener(function(Fb,pb){Ga=null;var ec=Fb==g?pb:g.getSelecteds()[0];
Fb=Fb==g?y.getSelecteds()[0]:pb;if(ec&&Fb)for(pb=0;pb<pa.length;pb++){var qc=pa[pb];if(qc.getLeftTreeNode()==ec&&qc.getRightTreeNode()==Fb){Ga=qc;break}}Ub();Bc();Db()});return qb},v=function(){1==K?(fa.setText(f.get("overallAffectingSrcTitleA","\u5907\u9009\u503c\u6765\u6e90\u7ec4\u4ef6")),e.setText(f.get("overallAffectingDestTitleA","\u9700\u8981\u5907\u9009\u503c\u7684\u7b5b\u9009\u5668"))):2==K?(fa.setText(f.get("overallAffectingSrcTitleB","\u8054\u52a8\u6e90\u7ec4\u4ef6")),e.setText(f.get("overallAffectingDestTitleB1",
"\u8054\u52a8\u201c\u4f5c\u7528\u4e8e\u201d\u76ee\u6807\u7ec4\u4ef6"))):3==K&&(fa.setText(f.get("overallAffectingSrcTitleB","\u8054\u52a8\u6e90\u7ec4\u4ef6")),e.setText(f.get("overallAffectingDestTitleB2","\u8054\u52a8\u201c\u9875\u7b7e\u5207\u6362\u201d\u76ee\u6807\u7ec4\u4ef6")));sa();t()},t=function(){var qb=[],Fb={},pb={};1==K?db(Fb,pb,qb):2==K?Jb(Xb,Fb,pb,qb):3==K&&Jb(gc,Fb,pb,qb);Fb=11==ia?Fb:null;pb=11==Y?pb:null;g.setRoot(F(O,Fb));y.setRoot(F(O,pb));L(qb)},L=function(qb){var Fb={},pb={};g.getRoot().visiting(function(Hc){var $c=
Hc.getUserObject().getName();Fb[$c]=Hc});y.getRoot().visiting(function(Hc){var $c=Hc.getUserObject().getName();pb[$c]=Hc});Ga=null;pa=[];for(var ec=0;ec<qb.length;ec++){var qc=qb[ec],mc=qc[0],Gc=qc[1];pa.push(new c(mc?Fb[mc]:null,Gc?pb[Gc]:null,qc[2]))}0==pa.length&&U.getMessageCurtain().showPrompt(f.get("overallAffectingPromptNoLink","\u201c#1\u201d\u672a\u53d1\u73b0\u4efb\u4f55\u7ec4\u4ef6\u5173\u7cfb\u3002").replace("#1",I(K)));Ub();Bc();Db()},F=function(qb,Fb){var pb=null;if(qb.isContainer()){pb=
new ic.BranchNode(qb);pb.setExpanded(!0);for(var ec=0;ec<qb.getWidgetCount();ec++){var qc=qb.getWidget(ec);qc=F(qc,Fb);null!=qc&&pb.addChild(qc)}0==pb.getChildCount()&&Fb&&!Fb[qb.getName()]&&qb.getWidgetTypeName()!=W.WidgetType_Page&&(pb=null)}else if(!Fb||Fb[qb.getName()])pb=new ic.LeafNode(qb);return pb},ya=function(qb,Fb){var pb=Fb.getUserObject();Fb=H.getInstance(pb.getWidgetTypeName()).getIconFileName()+"_min";qb.text(pb.getDisplayName());qb.css("padding-left","18px");pb=$("<div>");pb.data("myIconName",
Fb);pb.appendTo(qb);p.layoutCtrl(pb,0,3,16,16);va(qb,!1)},va=function(qb,Fb){qb=qb.children().first();var pb=qb.data("myIconName");Qa.background(qb,pb+(Fb?"_selected":""))},db=function(qb,Fb,pb){O.traversalDescendents(function(ec){var qc=null;ec.isInstanceOf(W.WidgetSuperType_DiscreteItemFilter)?qc=ec.getFilterSource():ec.getWidgetTypeName()==W.WidgetType_OneTabbed&&ec.getDurationMode().getType()==Wa.TYPE_ByData&&(qc=ec.getDurationMode().getFilterSource());if(qc&&qc.getType()==ta.TYPE_VisualWidget){ec=
ec.getName();Fb[ec]=!0;var mc=qc.getSourceWidgetName();mc&&(qb[mc]=!0);pb.push([mc,ec,qc])}})},Jb=function(qb,Fb,pb,ec){O.traversalDescendents(function(qc){if(qc.isInstanceOf(W.WidgetSuperType_Text)){var mc=qc.getPredefinedTextFragments();if(mc)for(var Gc=0;Gc<mc.getFragmentCount();Gc++){var Hc=mc.getFragment(Gc).getAffectedTargets();Hc&&qb(qc,Hc,Fb,pb,ec)}}else qc.isInstanceOf(W.WidgetSuperType_FilterSimilary)&&(Hc=qc.getAffectedTargets())&&qb(qc,Hc,Fb,pb,ec)})},Xb=function(qb,Fb,pb,ec,qc){qb=qb.getName();
for(var mc=0;mc<Fb.getItemCount();mc++){var Gc=Fb.getItem(mc),Hc=Gc.getType();if(Hc==W.AffectedType_BindField||Hc==W.AffectedType_Param)Hc=Gc.getTargetWidgetName(),pb[qb]=!0,Hc&&(ec[Hc]=!0),qc.push([qb,Hc,Gc])}},gc=function(qb,Fb,pb,ec,qc){qb=qb.getName();for(var mc=0;mc<Fb.getItemCount();mc++){var Gc=Fb.getItem(mc);if(Gc.getType()==W.AffectedType_Tab){var Hc=Gc.getTargetWidgetName();if(0<=Gc.getTabIndex()){var $c=O.searchWidgetByName(Hc);Hc=null;$c&&Gc.getTabIndex()<$c.getWidgetCount()&&(Hc=$c.getWidget(Gc.getTabIndex()).getName())}pb[qb]=
!0;Hc&&(ec[Hc]=!0);qc.push([qb,Hc,Gc])}}},Bc=function(){var qb={};g.searchAllNodeUi(function(Zc,vc){qb[Zc.getUserObject().getName()]=vc;vc.css("box-shadow","")});var Fb={};y.searchAllNodeUi(function(Zc,vc){Fb[Zc.getUserObject().getName()]=vc;vc.css("box-shadow","")});var pb=Z.children().first(),ec=Z.prop("offsetWidth"),qc=Z.prop("offsetHeight");pb.css({width:ec,height:qc});pb=Ua.createContext2d(pb[0],ec,qc);pb.textBaseline="middle";pb.fillStyle="#999";qc=-g.getJqUi().prop("scrollTop");for(var mc=
-y.getJqUi().prop("scrollTop"),Gc=0;Gc<pa.length;Gc++){var Hc=pa[Gc];pb.strokeStyle=Ga==Hc?"#666":"#999";pb.lineWidth=Ga==Hc?2:.5;pb.setLineDash([]);var $c=0,gd=ec,bd=null,Yc=null,cd=Hc.getLeftTreeNode(),id=Hc.getRightTreeNode();cd&&(bd=qb[cd.getUserObject().getName()],bd||(bd=Qc(qb,cd),pb.setLineDash([4,4])),bd.css("box-shadow","0 0 0 1px #f0f0f0"),bd=qc+bd.prop("offsetTop")+12);id&&(Yc=Fb[id.getUserObject().getName()],Yc||(Yc=Qc(Fb,id),pb.setLineDash([4,4])),Yc.css("box-shadow","0 0 0 1px #f0f0f0"),
Yc=mc+Yc.prop("offsetTop")+12);cd||($c=Math.round(.8*ec),bd=Yc,pb.fillText("?",$c-16,bd));id||(gd=Math.round(.2*ec),Yc=bd,pb.fillText("?",gd+4,Yc));Hc.hookEndPoints([$c,bd],[gd,Yc]);pb.beginPath();pb.moveTo($c,bd);pb.lineTo(gd,Yc);pb.stroke()}},Qc=function(qb,Fb){do{Fb=Fb.getParent();var pb=qb[Fb.getUserObject().getName()]}while(!pb);return pb},Xc=function(qb){qb=Sb(qb);Z.css("cursor",qb?"pointer":"")},Tc=function(qb){if(Ga=Sb(qb))qb=Ga.getLeftTreeNode(),g.setSelecteds(qb?[qb]:[]),qb&&g.expandToNode(qb),
qb&&g.scrollSelectedToVisible(),qb=Ga.getRightTreeNode(),y.setSelecteds(qb?[qb]:[]),qb&&y.expandToNode(qb),qb&&y.scrollSelectedToVisible();Ub();Bc();Db()},Sb=function(qb){qb=p.getCurrentTargetPosition(qb);for(var Fb=65535,pb=null,ec=0;ec<pa.length;ec++){var qc=pa[ec];var mc=qc;var Gc=qb[0];var Hc=qb[1],$c=mc.getEndPoint1()[0],gd=mc.getEndPoint1()[1],bd=mc.getEndPoint2()[0];mc=mc.getEndPoint2()[1];if(Gc<$c-20||Gc>bd+20||Hc<Math.min(gd,mc)-20||Hc>Math.max(gd,mc)+20)Gc=Infinity;else{var Yc=mc-gd,cd=
$c-bd;Gc=Math.abs((Yc*Gc+cd*Hc+(gd*bd-$c*mc))/Math.sqrt(Yc*Yc+cd*cd))}6>Gc&&Gc<Fb&&(Fb=Gc,pb=qc)}return pb},Ub=function(){var qb="",Fb=null;Ga&&(qb=Ga.getLeftTreeNode(),Fb=Ga.getRightTreeNode(),Fb=(1==K?Fb:qb).getUserObject(),qb=f.get("overallAffectingToSelectWidget","\u5728\u8bbe\u8ba1\u533a\u9009\u4e2d\u201c#1\u201d").replace("#1",Fb.getDisplayName()));u.setText(qb);u.setUserObject(Fb);u.getJqUi().css("display",Fb?"":"none")},$b=function(qb){qb=u.getUserObject();C.selectWidget(qb);U.getMessageCurtain().showSuccess(f.get("overallAffectingPromptWidgetSelected",
"\u5df2\u5728\u8bbe\u8ba1\u533a\u9009\u4e2d\u201c#1\u201d\u3002").replace("#1",qb.getDisplayName()))},Db=function(){wc(!1);var qb="";if(Ga){var Fb=Ga.getBizModel();1==K?qb=jd(Fb):2==K&&Fb.getType()==W.AffectedType_BindField?qb=ad(Fb,function(pb){var ec=Fb.getMetaFieldFullName();if(ec){var qc=pb.getOriginatedExecutingTag();qc?(pb=f.get("overallAffectingDetailBindField","\u76ee\u6807"),pb=ed(pb,qc,ec)):(pb=f.get("overallAffectingDetailMissingDestTag","\u672a\u627e\u5230\u76ee\u6807\u7ec4\u4ef6\u7684\u6570\u636e\u6765\u6e90\u3002"),
wc(!0))}else pb=f.get("overallAffectingDetailNoBindField","\u672a\u7ed1\u5b9a\u5b57\u6bb5\u3002"),wc(!0);return pb}):2==K&&Fb.getType()==W.AffectedType_Param?qb=ad(Fb,function(pb){var ec=Fb.getParamName();ec?(pb=f.get("overallAffectingDetailParamName","\u53c2\u6570\u540d\u79f0\u201c#1\u201d\u3002"),pb=pb.replace("#1",ec)):(pb=f.get("overallAffectingDetailNoParamName","\u53c2\u6570\u672a\u586b\u5199\u540d\u79f0\u3002"),wc(!0));return pb}):3==K&&(qb=ad(Fb,function(pb){var ec=Fb.getTabIndex();ec=0>ec?
f.get("overallAffectingDetailTabByValue","\u6309\u9009\u4e2d\u503c\u5207\u6362\u5230\u201c#1\u201d\u7684\u9875\u7b7e\u3002"):f.get("overallAffectingDetailTabByIndex","\u56fa\u5b9a\u5207\u6362\u5230\u201c#1\u201d\u7684\u7b2c#2\u4e2a\u9875\u7b7e\u3002").replace("#2",ec+1);return ec=ec.replace("#1",pb.getDisplayName())}))}Ac(qb)},Ac=function(qb){var Fb=qb,pb=qb.indexOf("${"),ec=qb.indexOf("}$");0<=pb&&pb<ec&&(Fb="...",G.data("myText",qb));G.empty();G.data("myWarning")&&(qb=xc.createWarning(),qb.css("display",
"inline-block"),G.append(qb));qb=$("<span>");qb.text(Fb);G.append(qb)},wc=function(qb){G.data("myWarning",qb)},Oc=function(qb,Fb){return(qb=qb.searchMetaField(Fb))?qb.getDisplayName():null},oc=function(qb,Fb){var pb=Va[qb];if(pb)return Oc(pb,Fb);var ec="T"+Math.random();pb=C.createFacade(function(qc){var mc=new P;qc&&mc.fromJsonObject(qc);Va[qb]=mc;qc=Oc(mc,Fb);if(mc=G.data("myText")){var Gc="${"+ec+"}$";0<=mc.indexOf(Gc)&&(mc=mc.replace(Gc,qc?qc:"?"),!qc&&wc(!0),Ac(mc))}});pb.setShowBlocking(!1);
pb.getWidgetBoundMeta(qb);return"${"+ec+"}$"},ed=function(qb,Fb,pb){(Fb=oc(Fb,pb))?qb+=f.get("overallAffectingDetailField","\u5b57\u6bb5[#1]\u3002").replace("#1",Fb):(qb+=f.get("overallAffectingDetailFieldNotFound","\u627e\u4e0d\u5230\u5b57\u6bb5[#1]\u3002").replace("#1",pb),wc(!0));return qb},jd=function(qb){var Fb=Ga.getRightTreeNode().getUserObject(),pb=Fb.getWidgetTypeName()==W.WidgetType_OneTabbed?f.get("overallAffectingDetailSlideshowSrc","\u201c#1\u201d\u8f6e\u64ad\u6570\u636e\u9879\u6765\u6e90\u4e8e\u201c#2\u201d\u3002"):
f.get("overallAffectingDetailFilterSource","\u201c#1\u201d\u5907\u9009\u503c\u6765\u6e90\u4e8e\u201c#2\u201d\u3002");pb=pb.replace("#1",Fb.getDisplayName());if(Fb=qb.getSourceWidgetName())if(Fb=O.searchWidgetByName(Fb))if(pb=pb.replace("#2",Fb.getDisplayName()),Fb=Fb.getExecutingTag()){var ec=qb.getMetaFieldFullName();ec?pb=ed(pb,Fb,ec):(pb+=f.get("overallAffectingDetailNoBindField","\u672a\u7ed1\u5b9a\u5b57\u6bb5\u3002"),wc(!0));if(ec=qb.getDisplayMetaFieldFullName())pb+=f.get("overallAffectingDetailDisplayField",
"\u663e\u793a\u503c"),pb=ed(pb,Fb,ec);if(ec=qb.getOrderByMetaFieldFullName())pb+=f.get("overallAffectingDetailSortingField","\u6392\u5e8f\u4f9d\u636e"),pb=ed(pb,Fb,ec)}else pb+=f.get("overallAffectingDetailMissingSrcTag","\u672a\u627e\u5230\u5907\u9009\u503c\u6765\u6e90\u7ec4\u4ef6\u7684\u6570\u636e\u6765\u6e90\u3002"),wc(!0);else pb=pb.replace("#2","?"),pb+=f.get("overallAffectingDetailMissingSrcWidget","\u6765\u6e90\u7ec4\u4ef6\u5df2\u88ab\u5220\u9664\u3002"),wc(!0);else pb=pb.replace("#2","?"),
pb+=f.get("overallAffectingDetailNoSrcWidget","\u672a\u8bbe\u7f6e\u6765\u6e90\u7ec4\u4ef6\u3002"),wc(!0);return pb},ad=function(qb,Fb){var pb=Ga.getLeftTreeNode().getUserObject(),ec=pb.getWidgetTypeName()==W.WidgetType_OneTabbed?f.get("overallAffectingDetailSlideshowDest","\u201c#1\u201d\u8f6e\u64ad\u8054\u52a8\u201c#2\u201d\u3002"):f.get("overallAffectingDetailAffection","\u201c#1\u201d\u8054\u52a8\u201c#2\u201d\u3002");ec=ec.replace("#1",pb.getDisplayName());(qb=qb.getTargetWidgetName())?(qb=O.searchWidgetByName(qb))?
(ec=ec.replace("#2",qb.getDisplayName()),ec+=Fb(qb)):(ec=ec.replace("#2","?"),ec+=f.get("overallAffectingDetailMissingDestWidget","\u76ee\u6807\u7ec4\u4ef6\u5df2\u88ab\u5220\u9664\u3002"),wc(!0)):(ec=ec.replace("#2","?"),ec+=f.get("overallAffectingDetailNoDestWidget","\u672a\u8bbe\u7f6e\u8054\u52a8\u76ee\u6807\u7ec4\u4ef6\u3002"),wc(!0));return ec}};var cb,p,X,na,Ua,ha,f,xa,Ba,qa,Pa,Oa,Za,ib,Kb,nc,kc,rc,uc,Dc,ic,yc,Kc,Jc,Ic,Ca,Ea,Ra,Fa,Xa,eb,w,Ka,Ab,Ib,cc,Ec,zc,xc,Lc,Pc,Sc,q,k,x,A,P,V,da,la,za,Qa,
ab,wb,jb,Da,ca,N,ea,ma,H,W,ta,Aa,Sa,Ma,bb,nb,yb,Hb,$a,rb,Wa,dc=Ia.AbstractDialogWithJsonExportor,lc;(function(){var c=com.kingdee.bos.qing.common;cb=c.Util;p=c.DomUtil;X=c.RelativePeriodModel;na=c.CompositeCtrl;Ua=c.CanvasUtil;ha=c.DateFormater;c=com.kingdee.bos.qing.framework.common;f=c.MultilanguageManager.createPackageAccessor(Ia);c=com.kingdee.bos.qing.ui.component;xa=c.ComboBox;Ba=c.AbstractModalDialog;qa=c.Label;Pa=c.TextArea;Oa=c.RadioButton;Za=c.RadioButtonGroup;ib=c.TextField;Kb=c.CheckBox;
nc=c.SimpleConfirmer;kc=c.WorkButton;rc=c.Menu;uc=c.MenuModel;Dc=c.List;ic=c.Tree;yc=c.Spinner;Kc=c.DateOfYearQuarterPanel;Jc=c.DateOfYearMonthPanel;Ic=c.Calendar;Ca=c.LeftTabContainer;Ea=c.DropdownSelector;Ra=c.SwitchButton;Fa=c.RegionSlider;Xa=c.ColorChooser;eb=c.ComboColor;w=c.MessageDialog;Ka=c.F7Selector;Ab=c.HelpIcon;c=com.kingdee.bos.qing.common.ui;Ib=c.TableUtil;cc=c.RadioButtonGroupWithTabbedPane;Ec=c.DateRangePanel;zc=c.RelativePeriodPanel;xc=c.CommonIconUtil;Lc=c.ColorWithOpacitySelector;
Pc=c.ColorSelector;Sc=c.FontSelector;q=c.AbstractLeftRightSelector;c=com.kingdee.bos.qing.common.rich;k=c.Chapter;x=c.RichEditor;c=com.kingdee.bos.qing.core.commonui;A=c.MetaFieldSelector;c=com.kingdee.bos.qing.core.model;P=c.Meta;V=c.MetaField;c=com.kingdee.bos.qing.core.ui;da=c.AbstractEditableItemsPanel;la=c.AbstractSingleValueDiscreteSelector;za=c.AbstractMultiValueDiscreteSelector;c=com.kingdee.bos.qing.dsb;Qa=c.Icons;ab=c.CosmeticBag;wb=c.IntegrationRegister;c=com.kingdee.bos.qing.dsb.look;
jb=c.CardLook;Da=jb.Edge;ca=jb.Corner;N=c.CardLookRenderer;ea=c.DecorationParser;ma=c.ParsingException;c=com.kingdee.bos.qing.dsb.model;H=c.WidgetTypeManager;W=c.DashboardModel;ta=c.AbstractFilterSource;Aa=c.AffectedTargets;Sa=c.PredefinedTextFragments;Ma=c.AbstractDefaultSelected;bb=c.AbstractTextWidget;nb=c.AbstractCalendar;yb=c.CardTopBarCommon;Hb=c.PreviewCardModel;$a=c.WidgetPicture;rb=c.WidgetCalendar;Wa=c.AbstractDurationMode})();fc.getAffectedTypeDisplay=function(c){return c==W.AffectedType_Tab?
f.get("affectedTargetTypeTab","\u9875\u7b7e\u5207\u6362"):c==W.AffectedType_Hotlink?f.get("affectedTargetTypeHotlink","\u8d85\u94fe\u63a5"):null};lb.INVALID_CHAR_INSIDE_WIDGET_NAME=["#","${","}$",","];lb.isWidgetNameInvalid=function(c){for(var D=lb.INVALID_CHAR_INSIDE_WIDGET_NAME,U=0;U<D.length;U++)if(0<=c.indexOf(D[U]))return!0;return!1};var ac=new function(){this.paint=function(c,D){var U=$("<div>"),C=H.getInstance(c.getWidgetTypeName()).getIconFileName()+"_min";Qa.background(U,C);C=$("<div>");
C.text(c.getDisplayName());D.append(U);D.append(C);p.layoutCtrl(U,4,2,16,16);p.layoutCtrlWithLRTB(C,24,0,null,0,0,null)}};Wb.modelToDisplayText=function(c){var D=[f.get("dateYearBefore","\u4e4b\u524d\u7b2c #1 \u5e74"),f.get("dateYearCurrent","\u672c\u5e74"),f.get("dateYearAfter","\u4e4b\u540e\u7b2c #1 \u5e74")];return Eb.modelToDisplayText(D,c)};Rb.modelToDisplayText=function(c){var D=[f.get("dateQuarterBefore","\u4e4b\u524d\u7b2c #1 \u5b63\u5ea6"),f.get("dateQuarterCurrent","\u672c\u5b63\u5ea6"),
f.get("dateQuarterAfter","\u4e4b\u540e\u7b2c #1 \u5b63\u5ea6")];return Eb.modelToDisplayText(D,c)};Tb.modelToDisplayText=function(c){var D=[f.get("dateMonthBefore","\u4e4b\u524d\u7b2c #1 \u4e2a\u6708"),f.get("dateMonthCurrent","\u672c\u6708"),f.get("dateMonthAfter","\u4e4b\u540e\u7b2c #1 \u4e2a\u6708")];return Eb.modelToDisplayText(D,c)};Na.modelToDisplayText=function(c){var D=[f.get("dateDayBefore","\u4e4b\u524d\u7b2c #1 \u5929"),f.get("dateDayCurrent","\u5f53\u5929"),f.get("dateDayAfter","\u4e4b\u540e\u7b2c #1 \u5929")];
return Eb.modelToDisplayText(D,c)};Eb.modelToDisplayText=function(c,D){var U=c[0],C=c[1];c=c[2];if(D)return D=D.getOffset(),0>D?U.replace("#1",-D):0<D?c.replace("#1",D):C;U=U.replace("#1","X");c=c.replace("#1","X");return[U,C,c]};kb.hookPreviewCard=function(c){lc=c}})();(function(){function l(){Y.call(this);var e,g,y;this.getCaption=function(){return w.get("importFrom","\u5bfc\u5165")};this.perform=function(){e.setCosmeticModel(y)};this.unperform=function(){e.setCosmeticModel(g)};this.bindConfigUi=function(u){e=u;g=e.getCosmeticModel()};this.setImportTarget=function(u){y=u}}function fc(){Y.call(this);var e=this,g,y,u,G,Z,pa;this.getCaption=function(){return G.getGroupDisplayText()+"-"+Z.getUserObject()};this.perform=function(){for(var Va=!1,Ya=g().getItems(G.getGroupId()),
sa=0;sa<Ya.length;sa++){var La=Ya[sa];if(La.getKey()==y){Va=!0;Ga(La);void 0===pa&&Ya.splice(sa,1);break}}Va||(La=D.createEditableItem(y,void 0),Ya.push(La),Ga(La))};var Ga=function(Va){var Ya=Va.getValue();Va.setValue(u);pa=u;u=Ya};this.unperform=function(){e.perform()};this.setContext=function(Va,Ya,sa,La,Q){g=Q;y=Va;u=Ya;G=sa;Z=La};this.getConfigGroup=function(){return G};this.getJqItem=function(){return Z.getJqUi()};this.getCurrentKeyAndValue=function(){return[y,pa]}}function lb(){var e=this,
g,y,u,G,Z,pa,Ga;this.setCosmeticModel=function(v){g=v};this.getCosmeticModel=function(){return g};this.getCommandManager=function(){pa||(pa=new ia,pa.setActionCapacity(64),pa.addPerformedListener(r));return pa};this.getJqUi=function(){if(!y){var v=new Ib;v.setRootVisible(!1);v.setMultiSelectable(!1);v.addSelectedListener(sa);Va(v);G=v;var t=new q;t.setBorderVisible(!1);t.setTitle(w.get("cosmeticClassified","\u7c7b\u522b"));t.getJqContainer().append(v.getJqUi());t.getJqUi().css("border","1px solid #e5e5e5");
Fa.layoutCtrlWithLRTB(v.getJqUi(),0,0,null,0,0,null);u=$("<div>");u.css("border","1px solid #e5e5e5");y=new Ab;y.setHorizontalSplit(!0);y.setResizeMode(Ab.RESIZE_MODE_FIRST_FIXED);y.setFirstSize(180,120,480);y.setSecondSize(-1,120,-1);y.setFirstChild(Ab.createChildWrapper(t.getJqUi()));y.setSecondChild(Ab.createChildWrapper(u))}return y.getJqUi()};this.resize=function(){y.resize();Q()};var Va=function(v){var t=Ya(w.get("cosmeticClassifiedChartCommon","\u56fe\u8868"),[new Tb,new Na,new Rb,new Wb,new Eb,
new Ja]),L=Ya(w.get("cosmeticClassifiedChartSpecific","\u7279\u5b9a\u56fe\u8868"),[new Pb,new fb,new ub,new zb,new hc,new Ha]),F=Ya(w.get("cosmeticClassifiedOverall","\u6574\u4f53"),[new bc,new Qb,new vb,new Cb,new Gb]),ya=Ya(w.get("cosmeticClassifiedWidget","\u7ec4\u4ef6"),[new wa,new gb,new sb]);t=Ya(w.get("cosmeticClassifiedSquare","\u6570\u636e\u6597\u65b9"),[new Ob,t,L]);L=new Ib.BranchNode;L.setExpanded(!0);L.addChild(F);L.addChild(ya);L.addChild(t);v.setRoot(L);v.setSelecteds([F.getChild(0)]);
setTimeout(function(){sa(v)},0)},Ya=function(v,t){var L=new Ib.BranchNode;L.setUserObject(v);L.setExpanded(!0);L.setSelectable(!1);for(v=0;v<t.length;v++){var F=t[v];if(!(F instanceof Ib.BranchNode)){F.setCosmeticModel(g);F.setItemModifier(ra);var ya=new Ib.LeafNode;ya.setUserObject(F);F=ya}L.addChild(F)}return L},sa=function(v){Z=v.getSelecteds()[0].getUserObject();La();Z.updatePreview()},La=function(){u.children().detach();Z.getJqUi().appendTo(u);Q()},Q=function(){Z&&Z.relayout(u.prop("clientWidth"),
u.prop("clientHeight"))},ra=function(v,t,L,F){var ya=new fc;ya.setContext(t,L,v,F,function(){return g});e.getCommandManager().perform(ya)},r=function(v,t,L){v instanceof fc?I(v,t):v instanceof l&&z(v,t)},z=function(v,t){G.getRoot().visiting(function(L){L.isLeafNode()&&(L=L.getUserObject(),L.setCosmeticModel(g),L.updatePreview(),L.updateCtrlState(),L.syncCtrlVisible())})},I=function(v,t){if(t)Z.updatePreview(),Z.syncCtrlVisible();else{if(Z==v.getConfigGroup())G.expandToNode(G.getSelecteds()[0]),t=
2;else{var L=[];G.getRoot().visiting(function(va){return va.getUserObject()==v.getConfigGroup()?(L.push(va),!0):!1});G.setSelecteds(L);G.expandToNode(L[0]);Z=v.getConfigGroup();La();t=3}G.scrollSelectedToVisible();var F=v.getCurrentKeyAndValue(),ya=F[0];F=F[1];Z.updatePreview();Z.updateCtrlState(ya,F);Z.syncCtrlVisible();aa(v.getJqItem(),t)}},aa=function(v,t){Ga&&Ga.terminate();Ga=new x;Ga.setDuration(325,175);Ga.setTimes(t,!1);Ga.blink(v)}}function Mb(){var e=this,g,y,u,G,Z,pa,Ga,Va;this.setCosmeticModel=
function(t){g=t};this.getGroupId=function(){throw Error("Implement");};this.getGroupDisplayText=function(){throw Error("Implement");};this.setItemModifier=function(t){Va=t};this.getJqUi=function(){if(!y){u=Ya(w.get("cosmeticSetting","\u8bbe\u7f6e"));pa=e.protectedCreateSettingItems();G=Ya(w.get("cosmeticPreview","\u9884\u89c8"));Ga=e.protectedCreatePreviewPages();for(var t=0;t<Ga.length;t++)G.getJqContainer().append(Ga[t].getJqUi());if(t=e.protectedGetComment()){Z=Ya(w.get("cosmeticComment","\u8bf4\u660e"));
Z.getJqUi().css("border-top","1px solid #f0f0f0");var L=Z.getJqContainer();L.css("white-space","pre-wrap");L.text(t)}y=$("<div>");y.append(u.getJqUi());y.append(G.getJqUi());Z&&y.append(Z.getJqUi());Fa.layoutCtrlWithLRTB(y,0,0,null,0,0,null)}return y};this.relayout=function(t,L){var F=0;Z&&(F=80,Fa.layoutCtrlWithLRTB(Z.getJqUi(),0,0,null,null,0,F));var ya=e.protectedGetSettingItemColumns();ya*=160;300<t-ya?(Fa.layoutCtrlWithLRTB(u.getJqUi(),0,"auto",ya,0,F,"auto"),Fa.layoutCtrlWithLRTB(G.getJqUi(),
ya,0,"auto",0,F,"auto"),G.getJqUi().css("border-left","1px solid #f0f0f0"),G.getJqUi().css("border-top","")):(t=u.getJqUi().parent().prop("clientWidth"),ya=Math.floor((t+40)/160),L=Math.min(60*Math.ceil(pa.length/ya)+30,L-F-120),Fa.layoutCtrlWithLRTB(u.getJqUi(),0,0,"auto",0,"auto",L),Fa.layoutCtrlWithLRTB(G.getJqUi(),0,0,"auto",L,F,"auto"),G.getJqUi().css("border-left",""),G.getJqUi().css("border-top","1px solid #f0f0f0"));F=u.getJqContainer();L=F.prop("clientWidth");F.prop("clientHeight");F=pa.length;
t=Math.floor((L+40)/160);L=Math.ceil(F/t);t=t==e.protectedGetSettingItemColumns();for(var va=ya=0;va<F;va++){var db=160*Math.floor(ya/L),Jb=ya%L*60,Xb=pa[va];Xb&&Fa.layoutCtrl(Xb,db,Jb,120,50);(Xb||t)&&ya++}L=G.getJqContainer();F=L.prop("clientWidth");L=L.prop("clientHeight");if(!e.protectedCustomRelayoutPreviewPages(F,L))for(va=ya=t=L=0;va<Ga.length;va++)db=Ga[va],Jb=db.getWidth(),Xb=db.getHeight(),0<L&&L+Jb>F&&(L=0,t+=ya+10,ya=0),Fa.layoutCtrl(db.getJqUi(),L,t,Jb,Xb),L+=Jb+10,ya=Math.max(ya,Xb)};
this.updatePreview=function(){if(y)for(var t=0;t<Ga.length;t++)Ga[t].update(g)};this.updateCtrlState=function(t,L){if(y)for(var F=0;F<pa.length;F++){var ya=pa[F];if(ya&&(!t||t==ya.data("qing-itemKey"))){ya=ya.data("qing-updateCtrlModel");for(var va=0;va<ya.length;va++)(0,ya[va])(L)}}};this.syncCtrlVisible=function(){if(y)for(var t=0;t<pa.length;t++){var L=pa[t];L&&(L=L.data("qing-updateCtrlVisible"))&&L()}};this.protectedCreateSettingItems=function(){throw Error("Implement");};this.protectedGetSettingItemColumns=
function(){return 2};this.protectedCreatePreviewPages=function(){throw Error("Implement");};this.protectedCustomRelayoutPreviewPages=function(t,L){return!1};this.protectedGetComment=function(){return null};this.toString=function(){return e.getGroupDisplayText()};var Ya=function(t){var L=new q;L.setBorderVisible(!1);L.setTitle(t);return L},sa=function(t,L,F,ya){var va=new xc;va.setConstraint(F,ya,1);va.addValueChangedListener(function(db,Jb,Xb,gc){I(db,t,Xb+"")},!0);L=La(t,L,va);Q(L,[function(db){va.setValue(parseInt(void 0===
db?z(t):db))}]);return L},La=function(t,L,F,ya){F.setUserObject(L);var va=F.getJqUi(),db=new cc;db.setText(L);F=$("<div>");F.append(db.getJqUi());F.append(va);Fa.layoutCtrlWithLRTB(db.getJqUi(),0,0,null,0,null,23);Fa.layoutCtrlWithLRTB(va,0,0,null,23,null,23);ya&&(ya.setUserObject(L),L=ya.getJqUi(),F.append(L),Fa.layoutCtrlWithLRTB(L,null,0,0,23,null,23));F.appendTo(u.getJqContainer());F.data("qing-itemKey",t);return F},Q=function(t,L){for(var F=0;F<L.length;F++)(0,L[F])();t.data("qing-updateCtrlModel",
L)},ra=function(t,L){L(!0);t.data("qing-updateCtrlVisible",L)},r=function(t,L,F,ya){var va=0,db=0;F&&(va=F+4,db=F);ya?(t.getJqUi().css({right:va}),L.getJqUi().css({width:db})):(t.getJqUi().animate({right:va},250),L.getJqUi().animate({width:db},250))},z=function(t){return g.pickItems(e.getGroupId())[t]},I=function(t,L,F){g.setPriorPreview(null);Va(e,L,F,t)},aa=function(t,L){var F={};F[t]=L;t={};t[e.getGroupId()]=F;g.setPriorPreview(t);e.updatePreview()},v=function(t){if(t){var L=Xa.splitRgbAndOpacity(t);
t=L[0];L=parseInt(100*L[1]);return[t,L]}return[null,100]};this.protectedMethod={createColorItem:function(t,L){var F=new Ec;F.setColorPool(zc.getColorPool7());F.addSelectedListener(function(ya){I(F,t,ya.encodeToHexRgb())});L=La(t,L,F);Q(L,[function(ya){F.getModel().decodeFrom(void 0===ya?z(t):ya)}]);return L},createWithAlphaColorItem:function(t,L){var F,ya,va=function(Xb){Xb=v(Xb);F=Xb[0];ya=Xb[1]},db=new Ec;db.setColorPool(zc.getColorPool7());db.addSelectedListener(function(Xb){Xb=(F=Xb.encodeToHexRgb())?
Xa.withOpacityToRgba(F,ya/100):null;I(db,t,Xb)});var Jb=new k;Jb.setValueChangedListener(function(Xb,gc){ya=Xb;Xb=F?Xa.withOpacityToRgba(F,ya/100):null;gc?aa(t,Xb):I(Jb,t,Xb)});L=La(t,L,db,Jb);Q(L,[function(Xb){Xb=void 0===Xb?z(t):Xb;va(Xb);db.getModel().decodeFrom(F)},function(Xb){Xb=void 0===Xb?z(t):Xb;va(Xb);Jb.setValue(ya)}]);r(db,Jb,60,!0);return L},createNullableColorItem:function(t,L,F){var ya=new A;ya.setColorPool(zc.getColorPool7());F&&ya.setDisplayForNull(F);ya.setColorSelectedListener(function(va){var db=
va.getColor();I(va,t,db?db:"")});L=La(t,L,ya);Q(L,[function(va){ya.setColor(void 0===va?z(t):va)}]);return L},createNullableWithAlphaColorItem:function(t,L,F){var ya,va,db=function(gc){gc=v(gc);ya=gc[0];va=gc[1]},Jb=new A;Jb.setColorPool(zc.getColorPool7());F&&Jb.setDisplayForNull(F);Jb.setColorSelectedListener(function(gc){var Bc=(ya=gc.getColor())?ya?Xa.withOpacityToRgba(ya,va/100):null:"";I(gc,t,Bc)});var Xb=new k;Xb.setValueChangedListener(function(gc,Bc){va=gc;gc=ya?ya?Xa.withOpacityToRgba(ya,
va/100):null:"";Bc?aa(t,gc):I(Xb,t,gc)});L=La(t,L,Jb,Xb);Q(L,[function(gc){gc=void 0===gc?z(t):gc;db(gc);Jb.setColor(ya)},function(gc){gc=void 0===gc?z(t):gc;db(gc);Xb.setValue(va)}]);ra(L,function(gc){r(Jb,Xb,ya?60:0,gc)});return L},createFontSizeItem:function(t,L){return sa(t,L,6,99)},createFontSizeEnhancedItem:function(t,L){var F=new Lc;F.setItemModels([0,1,2,3,4,5]);F.setCustomPainter(function(ya,va,db){va.text(db||0===db?100+10*db+"%":"")});F.addSelectedChangedListener(function(ya,va,db){I(ya,
t,0===db?void 0:db+"")});L=La(t,L,F);Q(L,[function(ya){F.setSelected(void 0===ya?parseInt(z(t)||"0"):ya)}]);return L},createIntegerItem:sa,createNumberItem:function(t,L,F,ya,va){var db=new xc;db.supportDecimal(2);db.setConstraint(F,ya,va);db.addValueChangedListener(function(Jb,Xb,gc,Bc){I(Jb,t,gc+"")},!0);L=La(t,L,db);Q(L,[function(Jb){db.setValue(parseFloat(void 0===Jb?z(t):Jb))}]);return L},createPaletteItem:function(t,L){var F=new oa;F.setEditedListener(function(ya){I(F,t,ya)});L=La(t,L,F);Q(L,
[function(ya){ya=void 0===ya?z(t):ya;!ya&&(ya="");F.setColorsString(ya)}]);return L},compositeCaptionWithSelected:function(t){return t+"("+w.get("cosmeticItemStateSelected","\u9009\u4e2d")+")"},compositeCaptionWithHover:function(t){return t+"("+w.get("cosmeticItemStateHover","\u9f20\u6807\u5212\u8fc7")+")"}}}function bc(){Mb.call(this);var e=this.protectedMethod;this.getGroupId=function(){return c.DSB_PAGE};this.getGroupDisplayText=function(){return w.get("cosmeticGroupPage","\u9875\u9762")};this.protectedCreateSettingItems=
function(){return[e.createColorItem(c.Key_Page_BackgroundColor,w.get("cosmeticItemBackgroundColor","\u80cc\u666f\u989c\u8272"))]};this.protectedCreatePreviewPages=function(){var g=new Ia;g.setWidth(320);g.setHeight(240);return[g]}}function Qb(){Mb.call(this);var e=this.protectedMethod;this.getGroupId=function(){return c.DSB_PAGE_TITLE_BAR};this.getGroupDisplayText=function(){return w.get("cosmeticGroupPageTitleBar","\u9875\u9762\u6807\u9898\u680f")};this.protectedCreateSettingItems=function(){return[e.createNullableColorItem(c.Key_PageTitleBar_BackgroundColor,
w.get("titleBarBackgroundColor","\u80cc\u666f\u989c\u8272"),w.get("colorNull","\u65e0")),e.createIntegerItem(c.Key_PageTitleBar_SeparaterLineWidth,w.get("titleBarSeparaterLineWidth","\u5206\u9694\u7ebf\u7ebf\u5bbd"),0,10),e.createNullableColorItem(c.Key_PageTitleBar_SeparaterColor,w.get("titleBarSeparaterColor","\u5206\u9694\u7ebf\u989c\u8272"),w.get("colorNull","\u65e0"))]};this.protectedCreatePreviewPages=function(){var g=new cb,y=new Ia;y.setWidth(320);y.setHeight(240);y.appendChild(g);Fa.layoutCtrlWithLRTB(g.getJqUi(),
0,0,null,0,null,40);return[y]}}function vb(){Mb.call(this);var e=this.protectedMethod;this.getGroupId=function(){return c.DSB_CARD};this.getGroupDisplayText=function(){return w.get("cosmeticGroupCard","\u5361\u7247")};this.protectedGetComment=function(){return w.get("commentCard","1\u3001\u5f71\u54cd\u6570\u636e\u6597\u65b9\u3001\u6570\u636e\u5206\u6790\u3001\u7ec4\u5408\u5361\u7247\u5bb9\u5668\u7b49\u7ec4\u4ef6\u5728\u4eea\u8868\u677f\u4e2d\u7684\u5361\u7247\u5916\u89c2\u3002\r\n2\u3001\u5176\u4e2d\u80cc\u666f\u534a\u900f\u660e\u5ea6\uff0c\u4ec5\u5728\u9875\u9762\u8bbe\u7f6e\u80cc\u666f\u56fe\u7247\u65f6\u751f\u6548\u3002")};
this.protectedCreateSettingItems=function(){return[e.createColorItem(c.Key_Card_BackgroundColor,w.get("cosmeticItemBackgroundColor","\u80cc\u666f\u989c\u8272")),e.createNumberItem(c.Key_Card_BackgroundOpacity,w.get("cosmeticItemBackgroundOpacity","\u80cc\u666f\u534a\u900f\u660e"),0,1,.05),e.createNullableWithAlphaColorItem(c.Key_Card_ShadowColor,w.get("cosmeticItemShadowColor","\u9634\u5f71\u989c\u8272"),w.get("colorNull","\u65e0")),e.createIntegerItem(c.Key_Card_BorderRadius,w.get("cosmeticItemBorderRadius",
"\u5706\u89d2\u534a\u5f84"),0,40),e.createColorItem(c.Key_Card_TitleColor,w.get("cosmeticItemTitleColor","\u6807\u9898\u989c\u8272")),e.createFontSizeItem(c.Key_Card_TitleFontSize,w.get("cosmeticItemTitleFontSize","\u6807\u9898\u5b57\u53f7")),e.createColorItem(c.Key_Card_ModalLayerColor,w.get("cosmeticItemModalLayerColor","\u63d0\u793a\u6587\u5b57\u989c\u8272"))]};this.protectedCreatePreviewPages=function(){var u=g(!1),G=g(!1),Z=g(!0),pa=new X;pa.setText(Wa.getWaitingText()+"...");pa.setTransparent(!1);
var Ga=new X;Ga.setText(w.get("refreshing","\u6b63\u5728\u5237\u65b0")+"...");Ga.setTransparent(!0);G.appendChild(pa);G.appendChild(Ga);Fa.layoutCtrlWithLRTB(pa.getJqUi(),40,40,null,60,40,null);Fa.layoutCtrlWithLRTB(Ga.getJqUi(),20,30,null,30,null,20);Z.getJqUi().children().first().before(y());return[u,G,Z]};var g=function(u){var G=new p;G.setTitle(w.get("previewCardTitle","\u5361\u7247\u6807\u9898\u793a\u4f8b"));G.setOpacityRequired(u);u=new Ia;u.setWidth(320);u.setHeight(160);u.appendChild(G);Fa.layoutCtrlWithLRTB(G.getJqUi(),
20,20,null,20,20,null);return u},y=function(){var u=eb.createCanvas(),G=$(u);Fa.layoutCtrl(G,0,0,320,160);var Z=eb.createContext2d(u,320,160);u=function(pa,Ga,Va,Ya){Z.fillStyle=Ya;Z.beginPath();Z.arc(pa,Ga,Va,0,2*Math.PI);Z.closePath();Z.fill()};u(50,100,40,"rgba(255,102,102,0.5)");u(150,50,60,"rgba(102,255,102,0.5)");u(250,150,80,"rgba(102,102,255,0.5)");return G}}function Cb(){Mb.call(this);var e=this.protectedMethod;this.getGroupId=function(){return c.DSB_LABEL};this.getGroupDisplayText=function(){return w.get("cosmeticGroupLabel",
"\u6587\u5b57")};this.protectedGetComment=function(){return w.get("commentLabel","1\u3001\u5f71\u54cd\u6587\u5b57\u7ec4\u4ef6\u3001\u591a\u884c\u6587\u5b57\u7ec4\u4ef6\u7684\u9ed8\u8ba4\u989c\u8272\u3002\r\n2\u3001\u5f71\u54cd\u4e0b\u62c9\u5217\u8868\u3001\u65e5\u671f\u8303\u56f4\u7b49\u7ec4\u4ef6\u7684\u81ea\u5e26\u6807\u7b7e\u6587\u5b57\u989c\u8272\u3002")};this.protectedCreateSettingItems=function(){return[e.createColorItem(c.Key_Label_Color,w.get("cosmeticItemTextColor","\u6587\u5b57\u989c\u8272"))]};
this.protectedCreatePreviewPages=function(){var g=new na,y=new na,u=new p;u.setTitle(w.get("previewCardTitle","\u5361\u7247\u6807\u9898\u793a\u4f8b"));u.appendChild(g);Fa.layoutCtrlWithLRTB(g.getJqUi(),20,20,null,20,null,40);g=new Ia;g.setWidth(320);g.setHeight(240);g.appendChild(y);g.appendChild(u);Fa.layoutCtrlWithLRTB(y.getJqUi(),20,20,null,20,null,40);Fa.layoutCtrlWithLRTB(u.getJqUi(),20,40,null,60,40,null);return[g]}}function wa(){Mb.call(this);var e=this.protectedMethod;this.getGroupId=function(){return c.DSB_INPUTER};
this.getGroupDisplayText=function(){return w.get("cosmeticGroupInputer","\u5355\u884c\u63a7\u4ef6")};this.protectedGetComment=function(){return w.get("commentInputer","\u5f71\u54cd\u4e0b\u62c9\u5217\u8868\u3001\u5f39\u7a97\u9009\u62e9\u5668\u3001\u65e5\u671f\u8303\u56f4\u7b49\u7b5b\u9009\u5668\u7ec4\u4ef6\u3002")};this.protectedCreateSettingItems=function(){return[e.createColorItem(c.Key_Inputer_Color,w.get("cosmeticItemTextColor","\u6587\u5b57\u989c\u8272")),e.createColorItem(c.Key_Inputer_UnderlineColor,
w.get("cosmeticItemUnderlineColor","\u4e0b\u5212\u7ebf\u989c\u8272"))]};this.protectedCreatePreviewPages=function(){var g=new Ua,y=new Ua,u=new p;u.appendChild(g);Fa.layoutCtrlWithLRTB(g.getJqUi(),0,null,120,20,null,25);g=new Ia;g.setWidth(320);g.setHeight(240);g.appendChild(y);g.appendChild(u);Fa.layoutCtrlWithLRTB(y.getJqUi(),20,null,120,20,null,25);Fa.layoutCtrlWithLRTB(u.getJqUi(),20,40,null,60,40,null);return[g]}}function gb(){Mb.call(this);var e=this.protectedMethod;this.getGroupId=function(){return c.DSB_BUTTON_GROUP};
this.getGroupDisplayText=function(){return w.get("cosmeticGroupButtonGroup","\u6309\u94ae\u7ec4")};this.protectedCreateSettingItems=function(){return[e.createColorItem(c.Key_ButtonGroup_Color,w.get("cosmeticItemTextColor","\u6587\u5b57\u989c\u8272")),e.createWithAlphaColorItem(c.Key_ButtonGroup_BackgroundColor,w.get("cosmeticItemBackgroundColor","\u80cc\u666f\u989c\u8272")),e.createWithAlphaColorItem(c.Key_ButtonGroup_BorderColor,w.get("cosmeticItemBorderColor","\u8fb9\u6846\u989c\u8272")),e.createColorItem(c.Key_ButtonGroup_Color_Selected,
e.compositeCaptionWithSelected(w.get("cosmeticItemTextColor","\u6587\u5b57\u989c\u8272"))),e.createWithAlphaColorItem(c.Key_ButtonGroup_BackgroundColor_Selected,e.compositeCaptionWithSelected(w.get("cosmeticItemBackgroundColor","\u80cc\u666f\u989c\u8272"))),e.createWithAlphaColorItem(c.Key_ButtonGroup_BorderColor_Selected,e.compositeCaptionWithSelected(w.get("cosmeticItemBorderColor","\u8fb9\u6846\u989c\u8272"))),null,e.createWithAlphaColorItem(c.Key_ButtonGroup_BackgroundColor_Hover,e.compositeCaptionWithHover(w.get("cosmeticItemBackgroundColor",
"\u80cc\u666f\u989c\u8272")))]};this.protectedGetSettingItemColumns=function(){return 3};this.protectedCreatePreviewPages=function(){var g=new ha,y=new ha,u=new p;u.appendChild(g);Fa.layoutCtrlWithLRTB(g.getJqUi(),0,0,null,20,null,32);g=new Ia;g.setWidth(320);g.setHeight(240);g.appendChild(y);g.appendChild(u);Fa.layoutCtrlWithLRTB(y.getJqUi(),20,40,null,16,null,32);Fa.layoutCtrlWithLRTB(u.getJqUi(),20,40,null,60,40,null);return[g]}}function sb(){Mb.call(this);var e=this.protectedMethod;this.getGroupId=
function(){return c.DSB_TABBED_HEAD};this.getGroupDisplayText=function(){return w.get("cosmeticGroupTabbed","\u9875\u7b7e")};this.protectedCreateSettingItems=function(){return[e.createColorItem(c.Key_TabbedHead_MainColor,w.get("cosmeticItemMainColor","\u4e3b\u8272\u8c03")),e.createColorItem(c.Key_TabbedHead_InverseColor,w.get("cosmeticItemInverseColor","\u53cd\u8272\u8c03"))]};this.protectedCreatePreviewPages=function(){var g=new f,y=new p;y.appendChild(g);Fa.layoutCtrlWithLRTB(g.getJqUi(),0,0,null,
0,null,24);g=new Ia;g.setWidth(320);g.setHeight(240);g.appendChild(y);Fa.layoutCtrlWithLRTB(y.getJqUi(),20,40,null,20,40,null);return[g]}}function Gb(){Mb.call(this);var e=this.protectedMethod;this.getGroupId=function(){return c.DESIGN};this.getGroupDisplayText=function(){return w.get("cosmeticGroupDesign","\u8bbe\u8ba1\u65f6")};this.protectedGetComment=function(){return w.get("commentDesign","1\u3001\u5f71\u54cd\u8bbe\u8ba1\u65f6\u8d77\u63d0\u793a\u4f5c\u7528\u7684\u6807\u8bb0\u3002\r\n2\u3001\u8272\u503cA~C\u5e94\u8be5\u76f8\u5bf9\u4e8e\u9875\u9762\u80cc\u666f\u4ece\u663e\u773c\u5230\u4e0d\u663e\u773c\u3002")};
this.protectedCreateSettingItems=function(){return[e.createColorItem(c.Key_Design_Adjustable,w.get("cosmeticItemAdjustable","\u53ef\u8c03\u6574")),e.createColorItem(c.Key_Design_Unadjustable,w.get("cosmeticItemUnadjustable","\u7981\u6b62\u8c03\u6574")),null,e.createColorItem(c.Key_Design_ColorA,w.get("cosmeticItemColorA","\u8272\u503cA")),e.createColorItem(c.Key_Design_ColorB,w.get("cosmeticItemColorB","\u8272\u503cB")),e.createColorItem(c.Key_Design_ColorC,w.get("cosmeticItemColorC","\u8272\u503cC"))]};
this.protectedCreatePreviewPages=function(){var g=new xa,y=new xa,u=new Ba,G=new Ba,Z=new qa,pa=new qa,Ga=new p;Ga.appendChild(g);Ga.appendChild(u);Ga.appendChild(Z);Fa.layoutCtrlWithLRTB(u.getJqUi(),0,null,120,0,null,30);Fa.layoutCtrlWithLRTB(g.getJqUi(),0,null,120,50,null,30);Fa.layoutCtrlWithLRTB(Z.getJqUi(),170,null,80,0,null,99);g=new Ia;g.setWidth(320);g.setHeight(240);g.appendChild(Ga);g.appendChild(y);g.appendChild(G);g.appendChild(pa);Fa.layoutCtrlWithLRTB(G.getJqUi(),20,null,120,10,null,
30);Fa.layoutCtrlWithLRTB(y.getJqUi(),20,null,120,60,null,30);Fa.layoutCtrlWithLRTB(pa.getJqUi(),200,null,80,10,null,90);Fa.layoutCtrlWithLRTB(Ga.getJqUi(),20,10,null,110,10,null);return[g]}}function Ob(){Mb.call(this);var e=this.protectedMethod;this.getGroupId=function(){return c.SQUARE_EXHIBITION};this.getGroupDisplayText=function(){return w.get("cosmeticGroupSquareExhibition","\u901a\u7528")};this.protectedCreateSettingItems=function(){return[e.createNullableWithAlphaColorItem(ac.STYLE_CRUMB_COLOR,
w.get("cosmeticItemCrumbColor","\u94bb\u53d6\u8def\u5f84\u6587\u5b57\u989c\u8272")),e.createFontSizeEnhancedItem(ac.STYLE_CRUMB_FONTSIZE_ENHANCED,w.get("cosmeticItemCrumbFontSizeEnhanced","\u94bb\u53d6\u8def\u5f84\u6587\u5b57\u7f29\u653e")),e.createWithAlphaColorItem(ac.STYLE_PROMPTLABEL_COLOR,w.get("cosmeticItemPromptLabelColor","\u9644\u52a0\u4fe1\u606f\u6587\u5b57\u989c\u8272")),e.createFontSizeEnhancedItem(ac.STYLE_PROMPTLABEL_FONTSIZE_ENHANCED,w.get("cosmeticItemPromptLabelFontSizeEnhanced",
"\u9644\u52a0\u4fe1\u606f\u6587\u5b57\u7f29\u653e"))]};this.protectedCreatePreviewPages=function(){var g=new Pa,y=new Oa,u=new p,G=new Ia;G.setWidth(320);G.setHeight(240);G.appendChild(u);G.appendChild(g);G.appendChild(y);Fa.layoutCtrlWithLRTB(u.getJqUi(),20,40,null,20,40,null);Fa.layoutCtrlWithLRTB(g.getJqUi(),36,40,null,30,null,30);Fa.layoutCtrlWithLRTB(y.getJqUi(),36,40,null,null,40,30);return[G]}}function Vb(){Mb.call(this);var e=this;this.getGroupId=function(){return c.CHART_COMMON};this.protectedCreatePreviewPages=
function(){for(var g=[],y=e.protectedCreatePreviews(),u=0;u<y.length;u++){var G=y[u],Z=new p;Z.appendChild(G);Fa.layoutCtrlWithLRTB(G.getJqUi(),0,0,null,0,0,null);G=e.protectedGetPreviewPageSize();var pa=new Ia;pa.setWidth(G[0]);pa.setHeight(G[1]);pa.appendChild(Z);Fa.layoutCtrlWithLRTB(Z.getJqUi(),20,20,null,20,20,null);g.push(pa)}return g};this.protectedGetPreviewPageSize=function(){return[320,240]};this.protectedCreatePreviews=function(){throw Error("Implement");}}function Wb(){Vb.call(this);var e=
this.protectedMethod;this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartLegend","\u56fe\u4f8b")};this.protectedCreateSettingItems=function(){return[e.createFontSizeItem(ca.LEGEND_FONTSIZE,w.get("cosmeticItemFontSize","\u5b57\u53f7")),e.createColorItem(ca.LEGEND_COLOR,w.get("cosmeticItemTextColor","\u6587\u5b57\u989c\u8272"))]};this.protectedCreatePreviews=function(){return[new kc]}}function Rb(){Vb.call(this);var e=this.protectedMethod;this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartDataLabel",
"\u6570\u636e\u6807\u7b7e")};this.protectedCreateSettingItems=function(){return[e.createFontSizeItem(ca.DATALABEL_FONTSIZE,w.get("cosmeticItemFontSize","\u5b57\u53f7")),e.createColorItem(ca.DATALABEL_COLOR,w.get("cosmeticItemTextColor","\u6587\u5b57\u989c\u8272"))]};this.protectedCreatePreviews=function(){return[new nc]}}function Tb(){Vb.call(this);var e=this.protectedMethod;this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartAxis","\u6587\u672c\u5750\u6807\u8f74")};this.protectedCreateSettingItems=
function(){return[e.createFontSizeItem(ca.AXIS_FONTSIZE,w.get("cosmeticItemFontSize","\u5b57\u53f7")),e.createColorItem(ca.AXIS_TEXT_COLOR,w.get("cosmeticItemTextColor","\u6587\u5b57\u989c\u8272")),e.createWithAlphaColorItem(ca.AXIS_LINE_COLOR,w.get("cosmeticItemAxisColor","\u5750\u6807\u8f74\u989c\u8272"))]};this.protectedCreatePreviews=function(){return[new Kb]}}function Na(){Vb.call(this);var e=this.protectedMethod;this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartRuler","\u6570\u5b57\u5750\u6807\u8f74")};
this.protectedCreateSettingItems=function(){return[e.createFontSizeItem(ca.RULER_FONTSIZE,w.get("cosmeticItemFontSize","\u5b57\u53f7")),e.createColorItem(ca.RULER_TEXT_COLOR,w.get("cosmeticItemTextColor","\u6587\u5b57\u989c\u8272")),e.createWithAlphaColorItem(ca.RULER_MARK_COLOR,w.get("cosmeticItemRulerMarkColor","\u523b\u5ea6\u989c\u8272")),e.createWithAlphaColorItem(ca.RULER_MARK_LINE_COLOR,w.get("cosmeticItemRulerMarkLineColor","\u7f51\u683c\u7ebf\u989c\u8272"))]};this.protectedCreatePreviews=
function(){return[new ib]}}function Eb(){Vb.call(this);var e=this.protectedMethod;this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartRefline","\u53c2\u8003\u7ebf")};this.protectedCreateSettingItems=function(){return[e.createWithAlphaColorItem(ca.REFLINE_COLOR,w.get("cosmeticItemReflineColor","\u7ebf\u989c\u8272")),e.createWithAlphaColorItem(ca.REFLINE_COLOR_HOVER,e.compositeCaptionWithHover(w.get("cosmeticItemReflineColor","\u7ebf\u989c\u8272"))),e.createWithAlphaColorItem(ca.REFLINE_TIPS_COLOR,
w.get("cosmeticItemReflineTipsColor","\u6807\u7b7e\u989c\u8272")),e.createFontSizeItem(ca.REFLINE_TIPS_FONTSIZE,w.get("cosmeticItemReflineTipsFontSize","\u6807\u7b7e\u5b57\u53f7"))]};this.protectedCreatePreviews=function(){return[new rc]}}function Ja(){Vb.call(this);var e=this,g=this.protectedMethod;this.getGroupId=function(){return c.CHART_PALETTE};this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartPalette","\u8c03\u8272\u677f")};this.protectedGetComment=function(){return w.get("commentPalette",
"\u201c\u57fa\u672c\u201d\u8c03\u8272\u677f\u5f71\u54cd\u67f1\u56fe\u3001\u997c\u56fe\u7b49\u5927\u90e8\u5206\u56fe\u8868\u3002\u201c\u5f3a\u5bf9\u6bd41\u201d\u8c03\u8272\u677f\u5f71\u54cd\u6298\u7ebf\u56fe\u3001\u96f7\u8fbe\u56fe\u7b49\u7ed8\u5236\u7ebf\u72b6\u7684\u56fe\u8868\u3002\u201c\u5f3a\u5bf9\u6bd42\u201d\u8c03\u8272\u677f\u5f71\u54cd\u6c14\u6ce1\u56fe\u3001GIS\u5730\u56fe\u7b49\u7ed8\u5236\u8272\u5757\u7684\u56fe\u8868\u3002")};this.protectedGetSettingItemColumns=function(){return 1};this.protectedCreateSettingItems=
function(){return[g.createPaletteItem(c.Key_Palette_Base,w.get("cosmeticItemPaletteBase","\u57fa\u672c")),g.createPaletteItem(c.Key_Palette_ContrastingLine,w.get("cosmeticItemPaletteContrasting1","\u5f3a\u5bf9\u6bd41")),g.createPaletteItem(c.Key_Palette_ContrastingArea,w.get("cosmeticItemPaletteContrasting2","\u5f3a\u5bf9\u6bd42"))]};this.protectedCreatePreviews=function(){return[new uc(e.getGroupId()),new Dc(e.getGroupId()),new ic(e.getGroupId())]};this.protectedGetPreviewPageSize=function(){return[300,
240]}}function fb(){Vb.call(this);var e=this,g=this.protectedMethod;this.getGroupId=function(){return ca.CHART_KPI};this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartKpi","\u4e1a\u52a1\u6307\u6807")};this.protectedCreateSettingItems=function(){return[g.createColorItem(N.C_COLOR,w.get("cosmeticItemKpiCaptionColor","\u4e3b\u6307\u6807\u6458\u8981")),g.createColorItem(N.P_VALUE_COLOR,w.get("cosmeticItemKpiPrimaryValueColor","\u4e3b\u6307\u6807\u6570\u503c")),g.createColorItem(N.P_TEXT_COLOR,
w.get("cosmeticItemKpiPrimaryTextColor","\u4e3b\u6307\u6807\u6587\u5b57")),null,g.createColorItem(N.S_VALUE_COLOR,w.get("cosmeticItemKpiSecondaryValueColor","\u526f\u6307\u6807\u6570\u503c")),g.createColorItem(N.S_TEXT_COLOR,w.get("cosmeticItemKpiSecondaryTextColor","\u526f\u6307\u6807\u6587\u5b57"))]};this.protectedCreatePreviews=function(){return[new yc(e.getGroupId())]}}function ub(){Vb.call(this);var e=this,g=this.protectedMethod;this.getGroupId=function(){return c.CHART_PROGRESS};this.getGroupDisplayText=
function(){return w.get("cosmeticGroupChartProgress","\u8fdb\u5ea6\u56fe")};this.protectedCreateSettingItems=function(){return[g.createColorItem(c.Key_ChartProgress_DesiredColor,w.get("cosmeticItemProgressDesiredColor","\u76ee\u6807\u503c\u989c\u8272")),g.createColorItem(c.Key_ChartProgress_CompleteColor,w.get("cosmeticItemProgressCompleteColor","\u5b9e\u9645\u503c\u989c\u8272"))]};this.protectedCreatePreviews=function(){return[new Kc(e.getGroupId())]};this.protectedGetComment=function(){return w.get("commentPregress",
"1\u3001\u5f71\u54cd\u67f1\u5f62\u8fdb\u5ea6\u56fe\u3001\u6761\u5f62\u8fdb\u5ea6\u56fe\u3001\u73af\u5f62\u8fdb\u5ea6\u56fe\u3002\r\n2\u3001\u5efa\u8bae\uff1a\u7528\u540c\u4e00\u8272\u7cfb\uff0c\u76ee\u6807\u503c\u989c\u8272\u4e0e\u5e95\u8272\u4eae\u5ea6\u66f4\u63a5\u8fd1\uff0c\u5b9e\u9645\u503c\u989c\u8272\u53cd\u5dee\u5927\u66f4\u663e\u773c\u3002")}}function zb(){Vb.call(this);var e=this,g=this.protectedMethod;this.getGroupId=function(){return ca.CHART_PIE};this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartRing",
"\u73af\u5f62\u56fe")};this.protectedCreateSettingItems=function(){return[g.createColorItem(ea.RING_CENTER_COLOR,w.get("cosmeticItemRingCenterColor","\u4e2d\u5fc3\u603b\u8ba1\u503c\u989c\u8272"))]};this.protectedCreatePreviews=function(){return[new Jc(e.getGroupId())]}}function hc(){Vb.call(this);var e=this,g=this.protectedMethod;this.getGroupId=function(){return ca.CHART_RADAR};this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartRadar","\u96f7\u8fbe\u56fe")};this.protectedCreateSettingItems=
function(){return[g.createWithAlphaColorItem(ma.WEB_LINE,w.get("cosmeticItemWebLineColor","\u7f51\u683c\u7ebf")),g.createWithAlphaColorItem(ma.WEB_INTERVAL_BACKGROUND,w.get("cosmeticItemWebIntervalColor","\u7f51\u683c\u95f4\u9694\u586b\u5145"))]};this.protectedCreatePreviews=function(){return[new Ic(e.getGroupId())]}}function Pb(){Vb.call(this);var e=this,g=this.protectedMethod;this.getGroupId=function(){return ca.CHART_GRID};this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartGrid",
"\u5217\u8868")};this.protectedCreateSettingItems=function(){return[g.createFontSizeItem(H.FONTSIZE,w.get("cosmeticItemFontSize","\u5b57\u53f7")),g.createColorItem(H.COLOR,w.get("cosmeticItemTextColor","\u6587\u5b57\u989c\u8272")),g.createWithAlphaColorItem(H.TITLE_BACKGROUND,w.get("cosmeticItemGridHeadBackgroundColor","\u8868\u5934\u80cc\u666f\u989c\u8272"))]};this.protectedCreatePreviews=function(){return[new Ca(e.getGroupId())]}}function Ha(){Vb.call(this);var e=this,g=this.protectedMethod;this.getGroupId=
function(){return ca.CHART_WATERFALL};this.getGroupDisplayText=function(){return w.get("cosmeticGroupChartWaterfall","\u7011\u5e03\u56fe")};this.protectedCreateSettingItems=function(){return[g.createColorItem(W.POSITVE_COLOR,w.get("cosmeticItemWaterfallPositiveColor","\u6761\u76ee\u6b63\u503c")),g.createColorItem(W.NEGATIVE_COLOR,w.get("cosmeticItemWaterfallNegativeColor","\u6761\u76ee\u8d1f\u503c")),g.createColorItem(W.STAGE_COLOR,w.get("cosmeticItemWaterfallStageColor","\u9636\u6bb5"))]};this.protectedCreatePreviews=
function(){return[new Ea(e.getGroupId())]}}function oa(){function e(){Ka.call(this);var pa=this,Ga=this.protectedMethod,Va=new lc;this.show=function(Ya,sa){pa.setSize(540,360);Ga.setTitle(w.get("cosmeticGroupChartPalette","\u8c03\u8272\u677f"));Ga.setContentPaneCreator(function(){var La=$("<div>"),Q=Va.createJqUi();Q.appendTo(La);Fa.layoutCtrlWithLRTB(Q,6,6,null,6,6,null);return La});Ga.setClosingAction(function(La){La&&(Va.acceptEditing(Ya),sa())});pa.showDialog();Va.setPalette(Ya)}}var g,y;this.setUserObject=
function(pa){u().setUserObject(pa)};this.getUserObject=function(){return u().getUserObject()};this.getJqUi=function(){return u().getJqUi()};this.setColorsString=function(pa){var Ga=new dc;Ga.decodeFromString(pa);u().setModel(Ga)};this.setEditedListener=function(pa){y=pa};var u=function(){g||(g=new Sc,g.setCustomPainter(G),g.addActionListener(Z));return g},G=function(pa){var Ga=g.getJqUi(),Va=Ga.children(".qing-custom-palette");Va.remove();if(pa){Va=$("<div>");Va.addClass("qing-custom-palette");Va.css("overflow",
"hidden");pa=pa.getColors();for(var Ya=0;Ya<pa.length;Ya++){var sa=pa[Ya],La=$("<div>");La.css("background-color",sa);La.appendTo(Va);Fa.layoutCtrlWithLRTB(La,8*Ya,null,8,1,1,null)}Fa.layoutCtrlWithLRTB(Va,0,20,null,4,1,null);Va.appendTo(Ga)}return""},Z=function(pa){var Ga=pa.getModel();(new e).show(Ga,function(){u().setModel(Ga);var Va=u().getModel().encodeToString();y(Va)})}}function kb(){this.getJqUi=function(){throw Error("Implement");};this.update=function(e){throw Error("Implement");}}function ob(){kb.call(this);
var e=this,g=[];this.appendChild=function(y){g.push(y);e.protectedGetJqContainer().append(y.getJqUi())};this.protectedGetJqContainer=function(){throw Error("Implement");};this.update=function(y){e.protectedUpdateSelf(y);for(var u=0;u<g.length;u++)g[u].update(y)};this.protectedUpdateSelf=function(y){throw Error("Implement");}}function Ia(){ob.call(this);var e=$("<div>"),g=100,y=100;this.getJqUi=function(){return e};this.protectedGetJqContainer=function(){return e};this.protectedUpdateSelf=function(u){u=
u.pickItems(c.DSB_PAGE)[c.Key_Page_BackgroundColor];e.css("background-color",u);e.css({"box-sizing":"border-box",border:"1px solid #f0f0f0"})};this.setWidth=function(u){g=u};this.getWidth=function(){return g};this.setHeight=function(u){y=u};this.getHeight=function(){return y}}function cb(){kb.call(this);var e,g;this.getJqUi=function(){e||(e=$("<div>"),g=$("<div>"),g.css({"font-size":"16px","text-align":"center"}),g.text(w.get("cosmeticGroupPageTitleBar","\u9875\u9762\u6807\u9898\u680f")),g.appendTo(e),
Fa.layoutCtrlWithLRTB(g,10,10,null),Fa.layoutCtrlMiddleAlign(g,20));return e};this.update=function(y){var u=y.pickItems(c.DSB_PAGE_TITLE_BAR),G=u[c.Key_PageTitleBar_BackgroundColor],Z=u[c.Key_PageTitleBar_SeparaterLineWidth];u=u[c.Key_PageTitleBar_SeparaterColor];Z=(Z?Z:0)+"px solid "+(u?u:"transparent");e.css("background-color",G?G:"");e.css({"box-sizing":"border-box","border-bottom":Z});u=y.pickItems(c.DSB_LABEL);c.decorateLabel(g,u)}}function p(){ob.call(this);var e,g,y=$("<div>"),u=!1;this.setTitle=
function(G){g=$("<div>");g.text(G)};this.setOpacityRequired=function(G){u=G};this.getJqUi=function(){e||(e=$("<div>"),e.append(y),g?(g.css("line-height","40px"),Fa.makeTextOmissible(g),e.append(g),Fa.layoutCtrlWithLRTB(g,20,20,null,0,null,40),Fa.layoutCtrlWithLRTB(y,20,20,null,40,null,10)):Fa.layoutCtrlWithLRTB(y,20,20,null,10,10,null));return e};this.protectedGetJqContainer=function(){return y};this.protectedUpdateSelf=function(G){G=G.pickItems(c.DSB_CARD);c.decorateCardSimpleBorder(u,e,G);g&&c.decorateCardTitle(g,
G)}}function X(){kb.call(this);var e=$("<div>"),g;this.setText=function(y){e.text(y)};this.setTransparent=function(y){g=y};this.getJqUi=function(){return e};this.update=function(y){y=y.pickItems(c.DSB_CARD);c.decorateCardModalLayer(e,g,y);g?e.css("text-align","right"):(e.css("text-align","center"),e.css("line-height",e.prop("clientHeight")+"px"))}}function na(){kb.call(this);var e;this.getJqUi=function(){e||(e=$("<div>"),e.css("font-size","14px"),e.text(w.get("previewLabel","\u6587\u5b57\u793a\u4f8b")));
return e};this.update=function(g){g=g.pickItems(c.DSB_LABEL);c.decorateLabel(e,g)}}function Ua(){kb.call(this);var e;this.getJqUi=function(){if(!e){for(var g=[],y=1;3>=y;y++)g.push(w.get("previewOption","\u9009\u9879\u793a\u4f8b")+y);y=new Lc;y.setItemModels(g);y.setSelected(g[0]);e=y.getJqUi()}return e};this.update=function(g){g=g.pickItems(c.DSB_INPUTER);c.decorateInputer(e,g)}}function ha(){function e(){com.kingdee.bos.qing.dsb.widget.CosmeticConfigPreviewButtonGroup.call(this);var u;this.bindCosmeticModel=
function(G){u=G};this.protectedGetStyleMap=function(){return u.pickItems(c.DSB_BUTTON_GROUP)}}kb.call(this);var g;this.getJqUi=function(){g||(g=new e,g.bindWidget({getWidth:function(){return g.getJqUi().prop("clientWidth")},getHeight:function(){return g.getJqUi().prop("clientHeight")},getLayoutMode:function(){return C.LAYOUT_MODE_HORIZONTAL},getSizeMode:function(){return C.SIZE_MODE_MIDDLE},isIncludedItemAll:function(){return!1},isMultiSelectable:function(){return!1}}));return g.getJqUi()};this.update=
function(u){g.bindCosmeticModel(u);g.getSelectedItems()&&0!=g.getSelectedItems().length?g.repaintButtons():(u=y(),g.setSelectableItems(u),g.setSelectedItems([u[0]]),setTimeout(function(){g.requestRepaint()},0))};var y=function(){for(var u=[],G=1;3>=G;G++){var Z=new U;Z.setValue(G);Z.setText(w.get("previewButton","\u9009\u9879")+G);u.push(Z)}return u}}function f(){kb.call(this);var e,g,y;this.getJqUi=function(){if(!e){e=$("<div>");for(var G=0;3>G;G++){var Z=$("<div>");Z.text(w.get("previewTabbed",
"\u9875\u7b7e")+(G+1));Fa.makeTextOmissible(Z);Z.css({"text-align":"center","font-size":"12px","line-height":"24px"});Z.appendTo(e);Z.data("myIdx",G);Z.on("click",function(pa){g=$(pa.currentTarget).data("myIdx");u()});Fa.layoutCtrlWithLRTB(Z,60*G,null,59,0,null,24)}g=0}return e};this.update=function(G){y=G;u()};var u=function(){var G=y.pickItems(c.DSB_TABBED_HEAD),Z=G[c.Key_TabbedHead_MainColor];G=G[c.Key_TabbedHead_InverseColor];for(var pa=e.children(),Ga=0;Ga<pa.length;Ga++){var Va=pa.eq(Ga),Ya=
g==Ga;Va.css({color:Ya?G:Z,"background-color":Ya?Z:"transparent",border:"1px solid "+Z})}}}function xa(){kb.call(this);var e=new com.kingdee.bos.qing.dsb.ui.CosmeticConfigPreviewCreator,g;this.getJqUi=function(){g||(g=$("<div>"));return g};this.update=function(y){y=y.pickItems(c.DESIGN);var u=g.prop("clientWidth"),G=g.prop("clientHeight");y=e.createOperatableTips(0,0,u,G,u,G,!0,!0,!1,y,null,null);g.empty();g.append(y)}}function Ba(){kb.call(this);var e;this.getJqUi=function(){e||(e=$("<div>"));return e};
this.update=function(g){g=g.pickItems(c.DESIGN);c.decorateDesigntimeRectangle(e,g)}}function qa(){kb.call(this);var e,g,y;this.getJqUi=function(){e||(e=$("<div>"));return e};this.update=function(Z){Z=Z.pickItems(c.DESIGN);c.decorateDesigntimeRectangle(e,Z);u().setStyleMap(Z);G()};var u=function(){if(!g){var Z=O.getInstance(K.WidgetType_TabbedContainer).createWidgetModel(!0);y=Z.getWidget(0);g=new com.kingdee.bos.qing.dsb.widget.CosmeticConfigPreviewTabbedSelector(Z,function(pa){y=pa;G()})}return g},
G=function(){e.empty();u().createJqUi(0,0,y).appendTo(e)}}function Pa(){kb.call(this);var e;this.getJqUi=function(){e||(e=$("<div>"),e.text(w.get("previewCrumb","\u5e7f\u4e1c\u7701 > \u6df1\u5733\u5e02 > \u5357\u5c71\u533a")));return e};this.update=function(g){g=g.pickItems(c.SQUARE_EXHIBITION);e.css({color:g[ac.STYLE_CRUMB_COLOR]||"#999","font-size":100+10*parseInt(g[ac.STYLE_CRUMB_FONTSIZE_ENHANCED]||"0")+"%"})}}function Oa(){kb.call(this);var e;this.getJqUi=function(){e||(e=$("<div>"),e.text(w.get("previewPromptNoData",
"\u6ca1\u6709\u53ef\u5c55\u73b0\u7684\u6570\u636e")));return e};this.update=function(g){g=g.pickItems(c.SQUARE_EXHIBITION);e.css({color:g[ac.STYLE_PROMPTLABEL_COLOR],"font-size":100+10*parseInt(g[ac.STYLE_PROMPTLABEL_FONTSIZE_ENHANCED]||"0")+"%"})}}function Za(){kb.call(this);var e=this,g,y;this.getJqUi=function(){if(!g){g=$("<div>");var u=e.protectedCreateChartModel();y=e.protectedCreateChartCtrl();y.setModel(u)}return g};this.update=function(u){g.empty();var G={};u.pickItems(c.CHART_COMMON,G);e.protectedCustomUpdateStyle(u,
G,y);y.getAttr().putCustomStyles(G);y.draw(g[0],g.prop("clientWidth"),g.prop("clientHeight"))};this.protectedCustomUpdateStyle=function(u,G,Z){};this.protectedCreateSeries=function(){var u=[],G=e.protectedGetSeriesDescription(),Z=G[0],pa=G[1];G=G[2];for(var Ga=0;Ga<Z.length;Ga++){for(var Va=Z[Ga],Ya=pa[Ga],sa=G[Ga],La=[],Q=0;Q<sa.length;Q++){var ra=null;null!==sa[Q]&&(ra=new la,ra.setValue(sa[Q]),ra.setText(sa[Q]));La.push(ra)}sa=new da;sa.setNodes(La);sa.setName(Va);sa.setColor(Ya);u.push(sa)}return u};
this.protectedCreateChartModel=function(){var u=new P,G=u.setCategories,Z=[],pa=e.protectedGetCategoryDescription(),Ga=pa[0];pa=pa[1];for(var Va=0;Va<Ga.length;Va++){var Ya=new V;Ya.setLabel(Ga[Va]);pa&&Ya.setColor(pa[Va]);Z.push(Ya)}G.call(u,Z);u.setSeries(e.protectedCreateSeries());G=u.setScopes;Z=[];Ga=e.protectedGetScopesDescription();for(pa=0;pa<Ga.length;pa++)Va=new Qa,Va.setAppointedMinMax(Ga[pa][0],Ga[pa][1]),Z.push(Va);G.call(u,Z);G=u.setPaintableLines;if(Z=e.protectedGetReflineDescription()){Ga=
[];for(pa=0;pa<Z.length;pa++)Va=Z[pa],Ya=new ab,Ya.setLabel(Va[0]),Ya.setLineValue(Va[1]),Ga.push(Ya);Z=[Ga]}else Z=null;G.call(u,Z);return u};this.protectedCreateChartCtrl=function(){return new ta};this.protectedGetCategoryDescription=function(){return[["A","B"],null]};this.protectedGetSeriesDescription=function(){var u=w.get("previewSeries","\u7cfb\u5217");return[[u+1,u+2],["#ccc","#999"],[[110,40],[70,100]]]};this.protectedGetScopesDescription=function(){return[[0,120]]};this.protectedGetReflineDescription=
function(){return null}}function ib(){Za.call(this);this.protectedCreateChartCtrl=function(){var e=new Aa;e.getAttr().setPYUnitText(w.get("previewPrimaryRulerUnit","\u5143"));e.getAttr().setSYUnitText("%");return e};this.protectedGetScopesDescription=function(){return[[0,125],[0,105]]}}function Kb(){Za.call(this);this.protectedGetCategoryDescription=function(){var e=w.get("previewCategory","\u7c7b\u522b");return[[e+1,e+2],null]}}function nc(){Za.call(this);this.protectedCreateChartCtrl=function(){var e=
new ta;e.getAttr().setShowDataLabel(!0);return e};this.protectedCustomUpdateStyle=function(e,g,y){e=e.pickItems(c.DSB_CARD);g[ca.BACKGROUND]=e[c.Key_Card_BackgroundColor]}}function kc(){Za.call(this);var e=this;this.protectedCreateChartCtrl=function(){var g=new ta,y=g.setLegendModel,u=e.protectedGetSeriesDescription(),G=u[0];u=u[1];var Z=new wb;Z.prepare(u,G,null,0);y.call(g,Z);return g}}function rc(){Za.call(this);this.protectedGetReflineDescription=function(){return[[w.get("previewReflineTips",
"\u53c2\u8003\u7ebf"),60]]};this.protectedCustomUpdateStyle=function(e,g,y){e=e.pickItems(c.DSB_CARD);g[ca.BACKGROUND]=e[c.Key_Card_BackgroundColor]}}function uc(e){Za.call(this);this.protectedGetSeriesDescription=function(){var g=w.get("previewSeries","\u7cfb\u5217");return[[g+1,g+2,g+3],["#999","#999","#999"],[[70,85],[80,105],[90,90]]]};this.protectedCustomUpdateStyle=function(g,y,u){y=g.pickItems(e);g=y[c.Key_Palette_Base];y=new dc;y.decodeFromString(g);g=y.getColors();u=u.getModel().getSeries();
u[0].setColor(g[0]);u[1].setColor(g[1]);u[2].setColor(g[2])}}function Dc(e){Za.call(this);this.protectedCreateChartCtrl=function(){return new Hb};this.protectedGetCategoryDescription=function(){return[["1","2","3","4","5"],null]};this.protectedGetSeriesDescription=function(){var g=w.get("previewSeries","\u7cfb\u5217");return[[g+1,g+2],["#999","#999"],[[40,65,50,90,70],[60,75,80,65,95]]]};this.protectedCustomUpdateStyle=function(g,y,u){y=g.pickItems(e);g=y[c.Key_Palette_ContrastingLine];y=new dc;y.decodeFromString(g);
g=y.getColors();u=u.getModel().getSeries();u[0].setColor(g[0]);u[1].setColor(g[1])}}function ic(e){Za.call(this);this.protectedCreateChartCtrl=function(){return new rb};this.protectedCreateSeries=function(){for(var g=[],y=["I","II","III"],u=["#666","#999","#ccc"],G=[[[10,70,2],[50,50,6]],[[20,10,3],[40,30,4]],[[90,80,1],[70,40,5]]],Z=0;Z<y.length;Z++){for(var pa=y[Z],Ga=u[Z],Va=G[Z],Ya=[],sa=0;sa<Va.length;sa++){var La=Va[sa],Q=new za;Q.setXAxisValue(La[0]);Q.setYAxisValue(La[1]);Q.setZAxisValue(La[2]);
Ya.push(Q)}Va=new da;Va.setNodes(Ya);Va.setName(pa);Va.setColor(Ga);g.push(Va)}return g};this.protectedGetScopesDescription=function(){return[[0,100],[0,100],[1,3]]};this.protectedCustomUpdateStyle=function(g,y,u){y=g.pickItems(e);g=y[c.Key_Palette_ContrastingArea];y=new dc;y.decodeFromString(g);g=y.getColors();u=u.getModel().getSeries();u[0].setColor(Xa.withOpacityToRgba(g[0],.7));u[1].setColor(Xa.withOpacityToRgba(g[1],.7));u[2].setColor(Xa.withOpacityToRgba(g[2],.7))}}function yc(e){Za.call(this);
this.protectedCreateChartCtrl=function(){return new Sa};this.protectedGetCategoryDescription=function(){return["caption_text primary_value primary_text secondary_text secondary_value secondary_text".split(" "),null]};this.protectedGetSeriesDescription=function(){return[["series"],[null],[[w.get("previewKpiCaption","\u9500\u552e\u989d"),"100",w.get("previewKpiPrimaryText","\u4e07\u5143"),w.get("previewKpiSecondaryText1","\u6570\u91cf"),"1234",w.get("previewKpiSecondaryText2","\u4e2a")]]]};this.protectedCustomUpdateStyle=
function(g,y,u){g.pickItems(e,y)}}function Kc(e){Za.call(this);var g=this;this.protectedCreateChartCtrl=function(){var y=new bb;y.getAttr().setShowLegend(Da.ShowLegend_Bottom);var u=y.setLegendModel,G=g.protectedGetSeriesDescription(),Z=G[0],pa=G[1];G=[""+G[2][0][0],""+G[2][1][0]];var Ga=new wb;Ga.prepare(pa,G,Z,0);u.call(y,Ga);return y};this.protectedGetCategoryDescription=function(){return[[""],null]};this.protectedGetSeriesDescription=function(){return[[w.get("previewProgressDesired","\u76ee\u6807\u503c"),
w.get("previewProgressComplete","\u5b9e\u9645\u503c")],["red","blue"],[[100],[60]]]};this.protectedCustomUpdateStyle=function(y,u,G){u=y.pickItems(e);y=u[c.Key_ChartProgress_DesiredColor];u=u[c.Key_ChartProgress_CompleteColor];var Z=G.getModel().getSeries();Z[0].setColor(y);Z[1].setColor(u);G.getLegendModel().updateColor([y,u])}}function Jc(e){Za.call(this);this.protectedCreateChartCtrl=function(){var g=new Ma;g.getAttr().setHollow(!0);g.getAttr().setShowTotalWhenHollow(!0);return g};this.protectedGetCategoryDescription=
function(){return[["A","B","C"],["#40A9FF","#A0D911","#FFA940"]]};this.protectedGetSeriesDescription=function(){return[["series"],[null],[[100,100,100]]]};this.protectedCustomUpdateStyle=function(g,y,u){g.pickItems(e,y);g=g.pickItems(c.DSB_CARD);y[ca.BACKGROUND]=g[c.Key_Card_BackgroundColor]}}function Ic(e){Za.call(this);this.protectedCreateChartCtrl=function(){return new nb};this.protectedGetCategoryDescription=function(){return[["A","B","C","D","E"],null]};this.protectedGetSeriesDescription=function(){return[["series"],
["#40A9FF"],[[120,95,60,50,85]]]};this.protectedCustomUpdateStyle=function(g,y,u){g.pickItems(e,y)}}function Ca(e){Za.call(this);this.protectedCreateChartCtrl=function(){return new yb};this.protectedCreateChartModel=function(){return jb.createFromJson({columns:[{title:"F1"},{title:"F2",style:0}],rows:[{cells:[{content:"AAAA"},{content:"111.11"}]},{cells:[{content:"BBBB"},{content:"222.22"}]},{cells:[{content:"CCCC"},{content:"333.33"}]}],styles:[{align:"right"}]})};this.protectedCustomUpdateStyle=
function(g,y,u){g.pickItems(e,y)}}function Ea(e){Za.call(this);this.protectedCreateChartCtrl=function(){return new $a};this.protectedGetCategoryDescription=function(){return["XabcdY".split(""),null]};this.protectedGetSeriesDescription=function(){return[["value","start"],[null,null],[[80,60,40,-30,-20,130],[null,80,140,180,150,null]]]};this.protectedGetScopesDescription=function(){return[[0,190]]};this.protectedCustomUpdateStyle=function(g,y,u){g.pickItems(e,y)}}"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.dsb&&(com.kingdee.bos.qing.dsb={});"undefined"==typeof com.kingdee.bos.qing.dsb.ui&&(com.kingdee.bos.qing.dsb.ui={});var Ra=com.kingdee.bos.qing.dsb.ui;Ra.CosmeticConfigDialog=function(){fa.call(this);var e=this,g=this.protectedMethod,y=new lb,u=!1,G;this.setCosmeticModel=function(r){y.setCosmeticModel(r)};
this.show=function(r){var z=$(document.body),I=z.prop("clientWidth");z=z.prop("clientHeight");I=parseInt(.8*I);z=parseInt(.9*z);e.setSize(I,z);g.getDialogCtrl().setMinSize(520,400);g.setTitle(w.get("customSkin","\u81ea\u5b9a\u4e49\u5916\u89c2\u98ce\u683c"));g.getDialogCtrl().setResizeEnabled();g.getDialogCtrl().setFullScreenEnabled();g.getDialogCtrl().addResizeListener(function(aa,v){y.resize()});g.setContentPaneCreator(function(){return y.getJqUi()});g.setClosingChecker2(function(aa){aa(!0)},function(aa){if(u){var v=
!1,t=Pc.createFeedbackDialog();t.setOptionType(Pc.OPTION_YES_NO);t.setMessage(w.get("askAbort","\u662f\u5426\u653e\u5f03\u60a8\u7684\u4fee\u6539\uff1f"));t.setClosingChecker(function(L){v=L==Pc.RETURN_YES;return!0});t.setClosedAction(function(){aa(v)});t.showDialog()}else aa(!0)},!0);g.setClosingAction(function(aa){aa&&(aa=new D,aa.fromJsonObject(y.getCosmeticModel().toJsonObject()),r(aa))});e.showDialog();Z();pa();y.resize()};var Z=function(){g.getDialogCtrl().setToolbarVisible(!0);var r=g.getDialogCtrl().createToolbarButton(w.get("undo",
"\u64a4\u6d88"),function(){y.getCommandManager().isCanUndo()&&y.getCommandManager().undo()}),z=g.getDialogCtrl().createToolbarButton(w.get("redo","\u53cd\u64a4\u6d88"),function(){y.getCommandManager().isCanRedo()&&y.getCommandManager().redo()});Va(r,z);y.getCommandManager().addPerformedListener(function(I,aa,v){Va(r,z);u=!0;!aa&&Ga(I,v)});g.initToolbarExportButton("qing-style-dashboard","20230530",sa,La,ra,Q,function(){return y.getJqUi().parent()},!0)},pa=function(){var r=y.getJqUi().parent().parent().find(".sa-ctrl-dialog-footer");
G=new cc;var z=G.getJqUi();z.appendTo(r);Fa.layoutCtrl(z,16,4,200,20)},Ga=function(r,z){z=z?w.get("undo","\u64a4\u6d88"):w.get("redo","\u53cd\u64a4\u6d88");G.setText(z+": "+r.getCaption());clearTimeout(G.getUserObject());r=setTimeout(function(){G.setText("")},5E3);G.setUserObject(r)},Va=function(r,z){Ya(r,y.getCommandManager().isCanUndo());Ya(z,y.getCommandManager().isCanRedo())},Ya=function(r,z){var I={};I.color=z?"":"#ccc";I.cursor=z?"":"default";I["background-color"]=z?"":"transparent";r.css(I)},
sa=function(r){return r.getKeyOfCosmetic()},La=function(){return y.getCosmeticModel().toJsonObject()},Q=function(r,z){var I=new D;I.fromJsonObject(r);I=I.copyToEdit();r=new l;r.bindConfigUi(y);r.setImportTarget(I);y.getCommandManager().perform(r);z(!0)},ra=function(r,z){if(20211225>r){var I=z.groups;I.chartWaterfall=[{key:"waterfallPositiveColor",value:"#73D13D"},{key:"waterfallNegativeColor",value:"#F57582"},{key:"waterfallStageColor",value:"#40A9FF"}]}20230530>r&&(I=z.groups,I.pageTitleBar=[{key:"backgroundColor",
value:""},{key:"separaterLineWidth",value:"0"},{key:"separaterColor",value:""}])}};var Fa,Xa,eb,w,Ka,Ab,Ib,cc,Ec,zc,xc,Lc,Pc,Sc,q,k,x,A,P,V,da,la,za,Qa,ab,wb,jb,Da,ca,N,ea,ma,H,W,ta,Aa,Sa,Ma,bb,nb,yb,Hb,$a,rb,Wa,dc,lc,ac,c,D,U,C,O,K,ia,Y,fa=Ra.AbstractDialogWithJsonExportor;(function(){var e=com.kingdee.bos.qing.common;Fa=e.DomUtil;Xa=e.ColorUtil;eb=e.CanvasUtil;e=com.kingdee.bos.qing.framework.common;w=e.MultilanguageManager.createPackageAccessor(Ra);e=com.kingdee.bos.qing.ui.component;Ka=e.AbstractModalDialog;
Ab=e.SplitPane;Ib=e.Tree;cc=e.Label;Ec=e.ComboColor;zc=e.ColorChooser;xc=e.Spinner;Lc=e.ComboBox;Pc=e.MessageDialog;Sc=e.F7Selector;q=e.TitleContainer;e=com.kingdee.bos.qing.common.ui;k=e.OpacityEditor;x=e.BlinkHelper;A=e.ColorSelector;e=com.kingdee.bos.qing.chart.model;P=e.NormalChartModel;V=e.Category;da=e.Series;la=e.Node;za=e.XYNode;Qa=e.AxisValueScope;ab=e.Refline;wb=e.DiscreteColorLegendModel;jb=e.GridChartModel;Da=e.AbstractAttr;e=com.kingdee.bos.qing.chart.render;ca=e.StyleTool;N=e.KpiChartRender;
ea=e.PieChartRender;ma=e.RadarChartRender;H=e.GridChartRender;W=e.WaterfallChartRender;e=com.kingdee.bos.qing.chart.square;ta=e.ColumnChart;Aa=e.CompositeChart;Sa=e.KPICardChart;Ma=e.PieChart;bb=e.ProgressCircleChart;nb=e.RadarChart;yb=e.GridChart;Hb=e.LineChart;$a=e.WaterfallChart;e=com.kingdee.bos.qing.chart.longer;rb=e.ScatterChart;e=com.kingdee.bos.qing.core.commonui;Wa=e.DataPreparingProgressParser;e=com.kingdee.bos.qing.core.model;dc=e.Palette;e=com.kingdee.bos.qing.core.ui;lc=e.PaletteSettingPanel;
e=com.kingdee.bos.qing.square.ui;ac=e.ExhibitionContent;e=com.kingdee.bos.qing.dsb;c=e.CosmeticBag;e=com.kingdee.bos.qing.dsb.model;D=e.CosmeticModel;U=e.ValueTextItem;C=e.WidgetButtonGroup;O=e.WidgetTypeManager;K=e.DashboardModel;e=com.kingdee.bos.qing.dsb.controller;ia=e.CommandManager;Y=e.AbstractAction})()})();(function(){function l(){var a={};this.registerClass=function(b,d){a[b]=d};this.findClass=function(b){var d=a[b];if(!d)throw Error("WidgetCtrl not found: "+b);return d}}function fc(){var a=this,b=!1;this.setPreview=function(d){b=d};this.isPreview=function(){return b};this.isDesigntime=function(){return!1};this.isMobile=function(){return!1};this.createWidgetCtrl=function(d){var h=new (a.protectedGetRegister().findClass(d.getWidgetTypeName()));h.bindWidget(d);b&&h.appendSituation(lb.Situation_Runtime_Preview);
a.protectedInitWidgetCtrl(h);return h};this.protectedInitWidgetCtrl=function(d){throw Error("Implement");};this.protectedGetRegister=function(){throw Error("Implement");}}function lb(){var a,b=0;this.bindWidget=function(d){a=d};this.appendSituation=function(d){b|=d};this.getJqUi=function(){throw Error("Implement");};this.protectedMethod={getWidget:function(){return a},isDesigntime:function(){return(b&lb.Situation_Designtime)==lb.Situation_Designtime},isPreview:function(){return(b&lb.Situation_Runtime_Preview)==
lb.Situation_Runtime_Preview},isMobile:function(){return(b&lb.Situation_Runtime_Mobile)==lb.Situation_Runtime_Mobile}}}function Mb(){this.getGroupName=function(){throw Error("Override");};this.getGroupDisplayName=function(){throw Error("Override");};this.isEquals=function(a){return _this.getGroupName()==a.getGroupName()}}function bc(){var a=this,b,d,h;this.isSupported=function(){return!0};this.isReleased=function(){return!0};this.getToolboxGroup=function(){throw Error("Override");};this.getTypeName=
function(){return b};this.getTypeDisplayName=function(){return d};this.getIconFileName=function(){return h};this.createWidgetModel=function(m){var n=a.getSuggestSize();m=a.protectedCreateWidgetModel(m);m.setSize(n[0],n[1]);m.setWidthLocked(m.isWidthLockedAlways(a));m.setHeightLocked(m.isHeightLockedAlways(a));return m};this.protectedCreateWidgetModel=function(m){throw Error("Override");};this.createWidgetUi=function(m){var n=a.protectedCreateWidgetUi();n.setModel(m);return n};this.protectedCreateWidgetUi=
function(){throw Error("Override");};this.isWidthLockedAlways=function(){return!1};this.isHeightLockedAlways=function(){return!1};this.getMinSize=function(){return[40,30]};this.getSuggestSize=function(){return[100,75]};this.getMargin=function(){return 0};this.createCustomDesignHandlerJqUi=function(m,n,E,ja){return null};this.selectSource=function(m,n,E){E(!0)};this.createPropertyPanel=function(){throw Error("Override");};this.createOutlineMenu=function(m,n,E,ja,ba){return!1};this.protectedMethod=
{setTypeName:function(m){b=m},setTypeDisplayName:function(m){d=m},setIconFileName:function(m){h=m}}}function Qb(){this.getToolboxGroup=function(){return Fd};this.selectSource=function(a,b,d){(new qd).showDialog(a,b,function(h,m,n){if(h&&(b.isIncludeItemAllSupported()&&b.setIncludedItemAll(n),b.setFilterSource(m),n=b.getFilterSource(),n instanceof $c)){m=n.getSourceWidgetName();var E=n.getMetaFieldFullName();m&&E&&(n=Yc.createItem(F.AffectedType_BindField),n.setTargetWidgetName(m),n.setMetaFieldFullName(E),
m=new Yc,m.addItem(n),b.setAffectedTargets(m))}d(h)})}}function vb(){bc.call(this);var a=this;this.getToolboxGroup=function(){return Fd};this.getSuggestSize=function(){return[180,25]};this.isHeightLockedAlways=function(){return!0};this.selectSource=function(b,d,h){a.protectedCreateInitialDialog().showDialog(b,d,function(m,n,E,ja,ba){m&&d.setInitialValue(n,E,ja,ba);h(m)})};this.protectedCreateInitialDialog=function(){throw Error("Implement");}}function Cb(a,b){var d=t.dip(t.DESIGN);this.setStyleMap=
function(E){d=E};this.createJqUi=function(E,ja,ba){var T=$("<div>");T.addClass("dsb-pagearea-custom-operate");var R=$("<div>");R.data("my-model",a);R.text("T");R.appendTo(T);var J=28,B=0;h(R,J);a==ba?n(R):m(R);rb.layoutCtrl(R,-4,B,16,J);B=J-1;J=20;for(R=0;R<a.getWidgetCount();R++){var S=a.getWidget(R),M=$("<div>");M.data("my-model",S);M.text(R+1);h(M,J);S==ba?n(M):m(M);M.appendTo(T);rb.layoutCtrl(M,0,B,12,J);B+=J-1}rb.layoutCtrl(T,E-12,ja,12,B);T.on("click",function(ua){ua=$(ua.target).data("my-model");
b(ua)});return T};var h=function(E,ja){E.css({cursor:"pointer","box-sizing":"border-box",border:"1px solid #ccc","border-color":d[t.Key_Design_ColorB],"border-right-width":"0px","text-align":"center","line-height":ja-2+"px"})},m=function(E){E.css({color:d[t.Key_Design_ColorA],"background-color":d[t.Key_Design_ColorC]})},n=function(E){E.css({color:d[t.Key_Design_ColorA],"background-color":d[t.Key_Design_ColorB]})}}function wa(){var a=this,b,d,h,m,n,E=!1;this.destroy=function(){a.protectedUnhookWidget(b);
b.removePropertyChangedListener(ja);n=h=d=null;E=!0};this.protectedUnhookWidget=function(ba){};this.getModel=function(){return b};this.setModel=function(ba){b=ba;b.addPropertyChangedListener(ja);a.protectedHookWidget(b)};this.protectedHookWidget=function(ba){};this.setCtxApi=function(ba){n=ba};this.createJqUi=function(ba){m=ba.isDesigntime();return a.protectedCreateJqUi(ba)};this.protectedCreateJqUi=function(ba){throw Error("Override");};this.inside=function(){};this.outside=function(){};this.payAttentionTo=
function(ba,T){};this.run=function(ba){};this.collectContextForPreview=function(){};this.applyPreviewContext=function(ba){};this.setEditedListener=function(ba){d=ba};this.setCommunicationListener=function(ba){h=ba};var ja=function(ba,T){ba==b&&(T==F.KEY_RECT?setTimeout(a.protectedRepaint,0):a.protectedDoPropertyChanged(T))};this.protectedDoPropertyChanged=function(ba){};this.protectedRepaint=function(){};this.protectedMethod={isDesigntime:function(){return m},setupDesigntimeRectangle:function(ba){m&&
t.decorateDesigntimeRectangle(ba)},fireEditedEvent:function(){d&&d()},fireCommunicationEvent:function(ba,T){h&&h(T?T:a,ba)},getCtxApi:function(){return n},isDead:function(){return E}}}function gb(){wa.call(this);var a=this;this.protectedCreateJqUi=function(b){b="Unknown widget type: "+a.getModel().getUnknownType();var d=$("<div>");d.text(b);d.attr("title",b);d.css({"background-color":"#fff",color:"#f00"});return d}}function sb(){wa.call(this);this.getJqPhysicalContainer=function(){throw Error("Override");
}}function Gb(){this.updateCardSurface=function(){throw Error("Override");};this.protectedMethod.fakeAction=function(a,b){var d=new u;d.setText(c.get("effectiveAfterPub","#1\uff0c\u53d1\u5e03\u540e\u751f\u6548\u3002").replace("#1",b));d.show(a,!0)}}function Ob(){var a=this.protectedMethod;this.getFilterSelectedValue=function(){throw Error("Override");};this.protectedMethod.filterSimilaryDoPropertyChanged=function(b){b==F.KEY_AFFECTED_TARGETS&&a.fireCommunicationEvent(wa.KEY_SELECTED_BY_API)}}function Vb(){Ob.call(this);
Wb.call(this);var a=this,b=this.protectedMethod,d,h,m;this.protectedCreateJqUi=function(T){T=a.protectedCreateJqUiImpl(T);m=$("<div>");m.css("text-align","center");t.decorateCardModalLayer(m,!1);rb.makeTextOmissible(m);var R=$("<div>");R.append(T);R.append(m);rb.layoutCtrlWithLRTB(T,0,0,null,0,0,null);rb.layoutCtrlWithLRTB(m,0,0,null,0,0,null);return R};this.protectedCreateJqUiImpl=function(T){throw Error("Implement");};this.protectedRunImpl=function(T){d=T;n()};this.payAttentionTo=function(T,R){if(R==
wa.KEY_VISUAL_DATA_PREPARED_SUCCESS||R==wa.KEY_VISUAL_DATA_PREPARED_ERROR){T=T.getModel();var J=a.getModel().getFilterSource();J&&J.isPreparedValueRelatedToWidget(T.getName())&&(R==wa.KEY_VISUAL_DATA_PREPARED_SUCCESS?n():R==wa.KEY_VISUAL_DATA_PREPARED_ERROR&&(E(c.get("discreteFilterDataWaitingError","\u5f15\u7528\u6570\u636e\u66f4\u65b0\u5931\u8d25")),ja(null)))}else b.isAnotherSelectedAffectedMe(T,R)&&n()};this.getFilterSelectedValue=function(){return h&&0==h.length?Hc.createItemAll():a.protectedGetFilterSelectedValue()};
this.protectedGetFilterSelectedValue=function(){throw Error("Implement");};var n=function(){var T=a.getModel(),R=T.getFilterSource();if(R&&R.isValid())if(R.isConfirmedToGetPreparedValue(T))if(b.isWaitingInputs())E(c.get("discreteFilterParamWaiting","\u7b49\u5f85\u7b5b\u9009\u6761\u4ef6")),ja(null);else{E(c.get("discreteFilterItemUpdating","\u66f4\u65b0\u5907\u9009\u503c"));var J=b.createAdditionalFilterApi();J=J?J.toExecutableJsonObject():null;R.getPreparedValue(T,J,d,function(B){E(B?0==B.length?
c.get("discreteFilterItemEmpty","\u6ca1\u6709\u5907\u9009\u503c"):null:c.get("discreteFilterItemUpdatingError","\u66f4\u65b0\u5907\u9009\u503c\u5931\u8d25"));ja(B)})}else E(c.get("discreteFilterDataWaiting","\u7b49\u5f85\u5f15\u7528\u6570\u636e")),ja(null);else E(c.get("discreteFilterInvalid","\u672a\u6b63\u786e\u8bbe\u7f6e\u5907\u9009\u503c")),ja(null)},E=function(T){T?(m.text(T),m.attr("title",T),m.css("line-height",a.getModel().getHeight()+"px"),m.css("display","")):(m.text(""),m.attr("title",
""),m.css("display","none"))},ja=function(T){T?(h=T,a.getModel().isIncludeItemAllSupported()&&a.getModel().isIncludedItemAll()&&h.splice(0,0,Hc.createItemAll())):h=null;a.protectedUpdateCtrlModel(h?h:[]);ba()};this.protectedUpdateCtrlModel=function(T){throw Error("Implement");};var ba=function(){if(h){var T=a.getModel(),R=T.getDefaultSelected();R?R.getItems(h,T.isMultiSelectable(),function(J){a.protectedUpdateSelectedValue(J);b.fireCommunicationEvent(wa.KEY_SELECTED_BY_API)}):(a.protectedUpdateSelectedValue(null),
b.fireCommunicationEvent(wa.KEY_SELECTED_BY_API))}};this.protectedUpdateSelectedValue=function(T){throw Error("Implement");};this.protectedMethod.discreteItemFilterDoPropertyChanged=function(T){T==F.KEY_FILTER_SOURCE||T==F.KEY_DISCRETE_INCLUDED_ITEMALL?n():T==F.KEY_FILTER_DEFAULT_SELECTED||T==F.KEY_DISCRETE_MULTISELECTABLE?ba():b.filterSimilaryDoPropertyChanged(T)};this.protectedMethod.getSelectableItems=function(){return h}}function Wb(){var a=this,b=!1;this.run=function(m){b=!0;a.protectedRunImpl(m)};
this.protectedRunImpl=function(m){throw Error("Implement");};this.updateInputParams=function(m){m?d(!0).repickParams(m):d()&&d().repickParams(null)};var d=function(m){return a.getModel().getExecutingInputParams(m)},h=function(m,n){if(d()&&d().checkAffectedChainBroken())return!0;var E=a.getModel(),ja=m.getModel(),ba=ja.getAffectedTargets();if(ba&&(ba=ba.getTarget(E.getName()))&&ba.isSettingComplete()){if(E.isInstanceOf(F.WidgetSuperType_FilterSimilary)&&(E=E.checkCircularAffection()))return console&&
console.warn("\u6b7b\u5faa\u73af\u5566\uff01"+E),!1;ja=ja.getSourceDataType();m=m.getFilterSelectedValue();m=d(!0).putParamValue(ba.getUsableParamName(),ja,m);return n?m:!0}return!1};this.protectedMethod.isAnotherSelectedAffectedMe=function(m,n){return 0==n.indexOf(wa.KEY_SELECTED)&&h(m,!0)&&d()&&d().isAllParamsAttend()&&b};this.protectedMethod.isAnotherManualSelectedAffectedMe=function(m,n){return n==wa.KEY_SELECTED_BY_MANUAL&&h(m,!1)&&d()&&d().isAllParamsAttend()&&b};this.protectedMethod.isPlayAffectedMe=
function(m,n){return n==wa.KEY_PLAY&&h(m)&&b};this.protectedMethod.createAdditionalFilterApi=function(){return d()?d().createAdditionalFilterApi():null};this.protectedMethod.createParamValueSearcherApi=function(){return d()?d().createParamValueSearcherApi():null};this.protectedMethod.isWaitingInputs=function(){return d()&&!d().isAllParamsAttend()}}function Rb(){var a=this,b=this.protectedMethod,d;this.protectedCreateJqUi=function(h){h=$("<div>");var m=a.protectedCreateJqUiWithIframe();m.css("z-index",
1);m.appendTo(h);rb.layoutCtrl(m,0,0,"100%","100%");b.isDesigntime()&&(d=$("<div>"),d.addClass("dsb-glasslayer"),d.css("z-index",2),d.appendTo(h),rb.layoutCtrl(d,0,0,"100%","100%"));return h};this.protectedCreateJqUiWithIframe=function(){throw Error("Override");};this.inside=function(){d.hide()};this.outside=function(){d.show()}}function Tb(){this.checkOutputParam=function(a){throw Error("Implement");};this.refreshOutputParamValue=function(a,b){throw Error("Implement");}}function Na(){function a(){var ba=
!0,T=[],R={};this.markExist=function(J){ba=J};this.isExist=function(){return ba};this.registParam=function(J){R[J]||(R[J]=new b,T.push(J))};this.getParam=function(J){return R[J]};this.getParamNames=function(){return T}}function b(){var ba=!0,T=!0,R,J,B;this.markExist=function(S){ba=S};this.isExist=function(){return ba};this.reset=function(){T=!0};this.setup=function(S,M,ua){T=!1;B=S;R=M;J=ua};this.copyFrom=function(S){T=!1;R=S.getErrorCode();J=S.getErrorMessage();B=S.getDisplay()};this.isUnsure=function(){return T};
this.isError=function(){return R||0===R};this.getErrorCode=function(){return R};this.getErrorMessage=function(){return J};this.getDisplay=function(){return B}}var d=this,h=this.protectedMethod,m={},n,E=function(ba,T){var R=function(S){delete ba[S];var M=!1;for(S in ba){M=!0;break}M||T()},J;for(J in ba){var B=ba[J];ja(B[0],B[1],R)}},ja=function(ba,T,R){ba.refreshOutputParamValue(T,function(J){var B=ba.getModel().getName();if(J){var S=m[B],M;for(M in J){var ua=J[M];S.getParam(M).setup(ua.getDisplay(),
ua.getErrorCode(),ua.getErrorMessage())}}R(B)})};this.protectedMethod.registWatchingTargetStart=function(){n=m;m={}};this.protectedMethod.registWatchingTarget=function(ba,T){var R=m[ba];R||(R=new a,m[ba]=R);R.registParam(T)};this.protectedMethod.registWatchingTargetEnd=function(ba){var T=n?n:{},R=n=null,J;for(J in m){var B=d.getModel().getTopPage().searchWidgetByName(J),S=B?!0:!1,M=m[J];M.markExist(S);if(S){S=M.getParamNames();B=h.getCtxApi().getWidgetUiObject(B);var ua=B.checkOutputParam(S);if(ua)for(var ka=
0;ka<S.length;ka++){var hb=S[ka],xb=ua[ka],tb=!0===xb||!1===xb;xb=M.getParam(hb);xb.markExist(tb);tb&&((tb=(tb=T[J])?tb.getParam(hb):null)?xb.copyFrom(tb):(!R&&(R={}),(xb=R[J])?xb=xb[1]:(xb=[],R[J]=[B,xb]),xb.push(hb)))}}}R?E(R,ba):ba()};this.protectedMethod.isOutputParamWatched=function(ba,T){if(T=T==wa.KEY_OUTPUT_PARAM_REFRESHABLE||T==wa.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE)ba=ba.getModel().getName(),T=m[ba]?!0:!1;return T};this.protectedMethod.refreshOutputParamValueByAnotherWidget=function(ba,T,
R,J){ba=ba==wa.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE;var B=T.getModel().getName();B=m[B];B.markExist(!0);for(var S=B.getParamNames().slice(0),M=T.checkOutputParam(S),ua=S.length-1;0<=ua;ua--){var ka=M[ua],hb=!0===ka||!1===ka,xb=S[ua];B.getParam(xb).markExist(hb);hb?ba&&!ka&&S.splice(ua,1):S.splice(ua,1)}if(0<S.length){for(ua=0;ua<S.length;ua++)xb=S[ua],B.getParam(xb).reset();R();ja(T,S,function(tb){J()})}else J()};this.protectedMethod.lookupOutputParamValue=function(ba,T,R,J,B){var S=m[ba];if(S&&S.isExist())if((R=
S.getParam(T))&&R.isExist()){if(R.isUnsure())return"...";if(R.isError())B(ba,T,R.getErrorCode(),R.getErrorMessage());else return R.getDisplay()}else J(ba,T);else R(ba)}}function Eb(){var a=this,b,d;this.updateUiWhenAncestorFullscreenAllowedChanged=function(){throw Error("Implement");};this.protectedUpdateButtonStateByAncestorFullscreen=function(n){throw Error("Implement");};var h=function(n){var E=b;if(n==E[0]){n=!0;var ja=E.parent();E.data("myParent",ja);E.data("myZIndex",E.css("z-index"));E.detach();
E.appendTo($(document.body));E.addClass("dsb-fullscreen-widget");E.css("z-index",128)}else{n=!1;Wa.removeChangedListener(h);ja=E.data("myParent");var ba=E.data("myZIndex");E.removeData("myParent");E.detach();E.appendTo(ja);E.removeClass("dsb-fullscreen-widget");E.css("z-index",ba)}n?(ja=t.dip(t.DSB_CARD)[t.Key_Card_BackgroundColor],E.data("myBackground",E.css("background-color"))):(ja=E.data("myBackground"),E.removeData("myBackground"));E.css("background-color",ja);m(n);a.protectedFullScreenChanged(n)};
this.protectedFullScreenChanged=function(n){throw Error("Implement");};var m=function(n){a.getModel().markFullscreen(n);a.getModel().isContainer()&&a.getModel().traversalDescendents(function(E){E.markFullscreen(n,!0)})};this.protectedMethod.fullscreenSupportedWidgetDoPropertyChanged=function(n){n==F.KEY_FULLSCREEN_BY_ANCESTOR&&(d=a.getModel().hasBeenFullscreen(),a.protectedUpdateButtonStateByAncestorFullscreen(d))};this.protectedMethod.isFullscreenByAncestor=function(){return d};this.protectedMethod.doFullscreen=
function(n){b=n;Wa.removeChangedListener(h);Wa.addChangedListener(h);a.getModel().hasBeenFullscreen()?Wa.exit():Wa.request(n[0])};this.protectedMethod.markFullscreen=m}function Ja(){wa.call(this);Wb.call(this);Gb.call(this);Tb.call(this);Eb.call(this);var a=this,b=this.protectedMethod,d,h,m,n,E,ja,ba,T=new function(){var mb=[];this.appendOne=function(Lb,Ta,Bb){mb.push(new function(Yb,Zb,sc){this.getRandomId=function(){return Yb};this.getPrompt=function(){return Zb};this.cancel=function(){return sc()}}(Lb,
Ta,Bb));return 1==mb.length};this.removeOne=function(Lb){for(var Ta=!1,Bb=mb.length-1;0<=Bb;Bb--)mb[Bb].getRandomId()==Lb&&(mb.splice(Bb,1),0==Bb&&(Ta=!0));return Ta};this.getDisplayOne=function(){return 0<mb.length?mb[0]:null};this.cancelAll=function(){for(var Lb=mb.length-1;0<=Lb;Lb--)mb[Lb].cancel()}},R=!1,J,B=!1,S=!1,M=!1;this.setVisualWidgetEditableConfirmer=function(mb){d=mb};var ua=this.destroy;this.destroy=function(){ua();clearTimeout(J);E&&E.destroy()};this.protectedCreateJqUi=function(mb){var Lb=
!(mb.isDesigntime()||mb.isPreview());ja=mb.createWidgetCtrl(a.getModel());xb();ja.setActionListener(function(Bb,Yb,Zb){switch(Yb){case fb.ACTION_REFRESH:jc(!1);break;case fb.ACTION_EDIT:mb.isDesigntime()||Lb?nd(Zb):b.fakeAction(Bb,Zb);break;case fb.ACTION_ANALYSIS:Lb?a.protectedAccessAdvancedAnalysis(tc())||E.displayActionPrompt(ja.getJqUi(),c.get("cardEditUnaccessable","\u60a8\u6ca1\u6709#1\u7684\u6743\u9650").replace("#1",Zb)):b.fakeAction(Bb,Zb);break;case fb.ACTION_FILTER:E.showExtraFilter(ja.getJqUi());
break;case fb.ACTION_FULLSCREEN:Lb?b.doFullscreen(ja.getJqUi()):b.fakeAction(Bb,Zb);break;case fb.ACTION_INFO:E.showChartInfo(ja.getJqUi());break;case fb.ACTION_INSIGHT:E.showInsight(ja.getJqUi())}});ja.hideButtons(fb.ACTION_ALL);ja.hookFullscreenAutonomy(b.markFullscreen);var Ta=ja.getJqUi();ja.getJqContent().addClass("sa-ctrl-common-unselectable");return Ta};this.protectedRunImpl=function(mb){m=mb;ja.createScene(function(Lb){a.protectedInitScene(Lb);E=Lb;E.setSkinName(a.getModel().getTopPage().getSkin());
E.setExecutedListener(function(Ta){a.protectedAfterExecuted();ld()});E.setFilteringListener(function(){b.fireCommunicationEvent(wa.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE)});E.show(ja.getJqContent())});a.getModel().getExecutingTag()&&E.setRemoteTag(a.getModel().getExecutingTag());mb=[];(n=ka(mb))?mb[0]?Fc(!1):(R=!0,dd()):b.isWaitingInputs()?(Fc(!1),Cc(!1,a.getModel().getName(),c.get("filterWaiting","\u7b49\u5f85\u7b5b\u9009\u6761\u4ef6"),function(){})):jc(!1)};this.protectedInitScene=function(mb){};this.protectedAfterExecuted=
function(){};this.payAttentionTo=function(mb,Lb){if(b.isPlayAffectedMe(mb,Lb)){var Ta=mb.getModel().getDurationMode(),Bb=Ta.getPlayingRoundId(),Yb;E.setBlocking(!1);E.executeWithoutRendering(function(Zb,sc){E.setBlocking(!0);Yb=sc;!Zb&&pc(!1)},function(Zb,sc){Ta.untilAllAffectedTargetsExecuted(Bb,a.getModel().getName(),function(){ja.getJqContent().stop(!0);ja.getJqContent().fadeTo(500,.2,function(){Yb(Zb,sc);ja.getJqContent().fadeTo(500,1);b.fireCommunicationEvent(wa.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE)})})})}else b.isAnotherSelectedAffectedMe(mb,
Lb)&&tb(!0)};this.collectContextForPreview=function(){var mb={};mb.tag=a.getModel().getExecutingTag();return mb};this.applyPreviewContext=function(mb){(mb=mb.tag)&&a.getModel().setExecutingTag(mb);B=!0};this.protectedRepaint=function(){ja.updateCardSurface();hb()};this.updateCardSurface=function(){ja.updateCardSurface()};var ka=function(mb){var Lb=a.getModel().pickupTmpJsonModelBook();mb[0]=Lb?Lb[2]:null;h=(mb=Lb?Lb[1]:null)?v.parseBuiltinVisualWidgetEditableConfirmer(mb):null;return Lb?Lb[0]:null},
hb=function(){E&&E.redraw()},xb=function(){var mb=a.getModel().getCardDescription();!mb&&(mb=ba);ja.updateTopBar(mb)},tb=function(mb){E.setBlocking(mb);mb=E.reExecute();E.setBlocking(!0);mb?b.fireCommunicationEvent(wa.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE):pc(!1)},jc=function(mb){mb&&ja.hideButtons(fb.ACTION_ALL);Fc(mb);pc(mb)},pc=function(mb){if(!b.isDead()){var Lb="id"+Math.random(),Ta=mb?c.get("refreshing","\u6b63\u5728\u5237\u65b0"):c.get("loading","\u52a0\u8f7d\u4e2d");Cc(mb,Lb,Ta,function(){Yb()});
mb=a.getModel().getReferenceCustomMap();Ta=m(function(Zb){Rc(Lb);n=Zb.model;Zb=(Zb=Zb.operation)?v.parseBuiltinVisualWidgetEditableConfirmer(Zb):null;h=a.protectedMergeRtEditableConfirmer(d,Zb);dd()},function(Zb,sc,Mc){Rc(Lb);Rc(a.getModel().getName());-1!=Zb&&(E.displayError(Zb,sc,Mc),S=!0,ba=null,ld());hd();return!0});Ta.setShowBlocking(!1);Ta.setCancelable(!0);var Bb=a.protectedGetFacadeMethodForLoadSchema(),Yb=Ta[Bb](mb)}};this.protectedGetFacadeMethodForLoadSchema=function(){throw Error("Override");
};this.protectedMergeRtEditableConfirmer=function(mb,Lb){throw Error("Override");};var Fc=function(mb){var Lb="id"+Math.random(),Ta=!0;R=!1;var Bb=function(Uc){R=!0;a.getModel().setExecutingTag(Uc);Ta&&b.fireCommunicationEvent(wa.KEY_VISUAL_DATA_PREPARED_SUCCESS);E.setRemoteTag(Uc);Rc(Lb);dd()},Yb=function(Uc,fd,kd){Ta&&b.fireCommunicationEvent(wa.KEY_VISUAL_DATA_PREPARED_ERROR);Rc(Lb);Rc(a.getModel().getName());-1!=Uc&&(E.displayError(Uc,fd,kd),S=!0,ba=null,ld());hd();return!0},Zb=function(){return b.isDead()},
sc=function(Uc){var fd=T.getDisplayOne();fd&&fd.getRandomId()==Lb&&ja.hookWaitingProgressDisplayer(r.makeUiCreator(Uc))},Mc=null,Nc=mb?c.get("refreshing","\u6b63\u5728\u5237\u65b0"):r.getWaitingText();Cc(mb,Lb,Nc,function(){Mc()});mb=a.getModel().getReferenceCustomMap();Nc=new ta;Nc.setFacadeCreator(m);var Vc=a.getModel().getExecutingTag();Vc?(Ta=!B,Mc=Nc.refresh(mb,Vc,B,Bb,Yb,Zb,sc),B=!1):Mc=Nc.prepare(mb,Bb,Yb,Zb,sc)},Cc=function(mb,Lb,Ta,Bb){T.appendOne(Lb,Ta,Bb)&&Wc(mb)},Rc=function(mb){T.removeOne(mb)&&
(ja.hookWaitingProgressDisplayer(function(Lb){return null}),Wc())},Wc=function(mb){var Lb=T.getDisplayOne();Lb?ja.showWaiting(mb,Lb.getPrompt(),c.get("cancel","\u53d6\u6d88"),T.cancelAll):ja.hideWaiting()},hd=function(){if(S)ja.hideButtons(fb.ACTION_ALL^fb.ACTION_REFRESH);else{var mb=a.getModel().isAncestorForbidFullscreen()||b.isFullscreenByAncestor()?fb.ACTION_FULLSCREEN:fb.ACTION_NONE;ja.hideButtons(mb)}},dd=function(){if(R&&n){Rc(a.getModel().getName());S=!1;hd();var mb=E.setJsonModelBook(n,function(){return b.createAdditionalFilterApi()},
function(Lb){return(Lb=t.getChartDefaultPalette(Lb))&&!Lb.isInvalid()?Lb.toJsonObject():null});n=null;ba=a.protectedGetCardDescription(mb);xb();md(mb);b.fireCommunicationEvent(wa.KEY_OUTPUT_PARAM_REFRESHABLE)}};this.protectedGetCardDescription=function(mb){return null};var md=function(mb){a.getModel().clearAllParamInfo();mb=mb.getModelPages();for(var Lb=0;Lb<mb.length;Lb++){var Ta=mb[Lb],Bb=Ta.getModel();Ta=Ta.getPreferences();var Yb=Bb.getBriefOutputDefinitions();if(Yb)for(var Zb=0;Zb<Yb.length;Zb++){var sc=
Yb[Zb];a.getModel().appendOutputParamInfo(Lb,Bb,Ta,sc.getName(),sc.getDescription())}if(Yb=Bb.getWarningRuleDefinitions())for(Zb=0;Zb<Yb.length;Zb++)sc=Yb[Zb],a.getModel().appendWarningRuleInfo(Lb,Bb,Ta,sc.getName(),sc.getDescription())}M=!0};this.checkOutputParam=function(mb){if(!M)return null;for(var Lb={},Ta=a.getModel().getOutputParamsInfo(),Bb=0;Bb<Ta.length;Bb++){var Yb=Ta[Bb],Zb=Yb.getName();Lb[Zb]=0===Yb.getQingModelIndex()}Ta=[];for(Bb=0;Bb<mb.length;Bb++)Zb=mb[Bb],Ta[Bb]=Lb[Zb];return Ta};
this.refreshOutputParamValue=function(mb,Lb){M||Lb(null);for(var Ta={},Bb=0;Bb<mb.length;Bb++){var Yb=mb[Bb];Ta[Yb]=!0}mb=a.getModel().getOutputParamsInfo();var Zb={};for(Bb=0;Bb<mb.length;Bb++){var sc=mb[Bb];Yb=sc.getName();if(Ta[Yb]){var Mc=sc.getQingModelIndex(),Nc=Zb[Mc];Nc||(Nc=[],Nc[0]=sc.getQingModel(),Nc[1]=sc.getQingModelPreferences(),Nc[2]=[],Nc[3]=!1,Zb[Mc]=Nc);var Vc=Nc[2];Vc.push(Yb)}}var Uc=null;for(Mc in Zb)!Uc&&(Uc={}),Nc=Zb[Mc],Ta=Nc[0],Bb=Nc[1],Vc=Nc[2],E.executeOutputParamValue(Ta,
Bb,Vc,function(fd){if(fd)for(var kd=0;kd<Vc.length;kd++){var Gd=Vc[kd],Wd=fd[Gd],Hd=new I;Hd.parseFromJson(Wd);Uc[Gd]=Hd}Nc[3]=!0;a:{for(var Xd in Zb)if(!Zb[Xd][3])break a;Lb(Uc)}});Uc||Lb({})};var ld=function(){if(!b.isDesigntime()){E.setBlocking(!0);var mb=a.getModel().getRefreshTiming();0<mb&&(clearTimeout(J),J=setTimeout(function(){E.setBlocking(!1);jc(!0)},1E3*mb))}},nd=function(mb){a.protectedCheckDesignerAccessable(tc(),function(Lb,Ta){Lb?Nb(Ta):E.displayActionPrompt(ja.getJqUi(),c.get("cardEditUnaccessable",
"\u60a8\u6ca1\u6709#1\u7684\u6743\u9650").replace("#1",mb))})};this.protectedCheckDesignerAccessable=function(mb,Lb){throw Error("Implement");};var Nb=function(mb){var Lb=a.getModel(),Ta=Lb.getCardTitle(),Bb=L.getInstance(Lb.getWidgetTypeName()).getTypeDisplayName();Bb=c.get("modifyWidget","\u7f16\u8f91\u7ec4\u4ef6-#1").replace("#1",Bb);Bb+=Ta?": "+Ta:"";Lb=Lb.getReferenceCustomMap();a.protectedGetIntegrationMethodForShowDesigner()(Bb,!0,Lb,a.getModel().getExecutingTag(),mb,function(Yb){Yb&&(b.fireEditedEvent(),
n=Yb,dd())})};this.protectedGetIntegrationMethodForShowDesigner=function(){throw Error("Override");};this.protectedAccessAdvancedAnalysis=function(mb){throw Error("Unsupported");};this.updateUiWhenAncestorFullscreenAllowedChanged=function(){hd()};this.protectedFullScreenChanged=function(mb){ja.updateFullscreenButtonDisplay(mb);ja.updateCardSurface();E.redraw()};this.protectedUpdateButtonStateByAncestorFullscreen=function(mb){hd()};var tc=function(){h||(h=a.protectedMergeRtEditableConfirmer(d,null));
return h};this.protectedMethod.builtinVisualWidgetDoPropertyChanged=function(mb){mb==F.KEY_CARD_TITLE?(xb(),hb()):mb==F.KEY_CARD_SURFACE?(ja.updateCardSurface(),hb()):mb==F.KEY_AFFECTED_TARGETS?hb():mb==F.KEY_REF?(mb=[],n=ka(mb),mb[0]?Fc(!1):(R=!0,dd())):b.fullscreenSupportedWidgetDoPropertyChanged(mb)};this.protectedMethod.getRtEditableConfirmer=tc;this.protectedMethod.createExecutingWaitingImpl=function(){return{showWaiting:function(mb){ja.showWaiting(!1,c.get("executing","\u65b9\u6848\u6267\u884c\u4e2d"),
c.get("cancel","\u53d6\u6d88"),mb)},hookWaitingProgressDisplayer:function(mb){ja.hookWaitingProgressDisplayer(mb)},hideWaiting:function(){ja.hideWaiting()}}}}function fb(){lb.call(this);this.createScene=function(a){throw Error("Implement");};this.updateTopBar=function(a){throw Error("Implement");};this.getJqContent=function(){throw Error("Implement");};this.setActionListener=function(a){throw Error("Implement");};this.hideButtons=function(a){throw Error("Implement");};this.showWaiting=function(a,
b,d,h){throw Error("Implement");};this.hookWaitingProgressDisplayer=function(a){};this.hideWaiting=function(){throw Error("Implement");};this.updateCardSurface=function(){};this.updateFullscreenButtonDisplay=function(a){};this.hookFullscreenAutonomy=function(a){}}function ub(){Ja.call(this);Ob.call(this);var a=this,b=this.protectedMethod,d;this.protectedDoPropertyChanged=function(m){b.builtinVisualWidgetDoPropertyChanged(m);b.filterSimilaryDoPropertyChanged(m)};this.getFilterSelectedValue=function(){if(d&&
0<d.length){for(var m=[],n=0;n<d.length;n++){var E=d[n],ja=new gd;ja.setValue(E.value);ja.setText(E.text);m.push(ja)}return m}return Hc.createItemAll()};var h=function(m,n){void 0!==d&&(!d&&!m||d&&m&&JSON.stringify(d)==JSON.stringify(m))||(d=m,b.fireCommunicationEvent(!0===n?wa.KEY_SELECTED_BY_MANUAL:!1===n?wa.KEY_SELECTED_BY_API:wa.KEY_SELECTED))};this.protectedAfterExecuted=function(){h(null,!1)};this.protectedGetFacadeMethodForLoadSchema=function(){return"squareLoadSchema"};this.protectedMergeRtEditableConfirmer=
function(m,n){n||(n=new ra);m&&(n=n.mergeToNewInstance(m.getRtSquareEditableConfirmer()));return n};this.protectedInitScene=function(m){m.hookExecutingWaitingImpl(b.createExecutingWaitingImpl());m.setCosmeticHandler(function(n){if(n){var E=[t.CHART_COMMON],ja=n.getCosmeticId();ja&&E.push(ja);E=t.dipSome(E);n.getAttr().putCustomStyles(E);n.getAttr().setSkinName(a.getModel().getTopPage().getSkin())}return t.dip(t.SQUARE_EXHIBITION)});m.setPredrawListener(function(n){if(n.isSelectionSupported()){var E=
a.getModel().getAffectedTargets();((E=E&&E.getItemCount()?!0:!1)&&!n.isSelectable()||!E&&n.isSelectable())&&n.setSelectable(E)}(E=a.getModel().getActiveBackgroundColor())||(E=t.dip(t.DSB_CARD)[t.Key_Card_BackgroundColor]);n.getAttr().putCustomStyle(La.BACKGROUND,E)});m.setSelectionListener(function(n,E,ja){h(E,ja)})};this.protectedGetIntegrationMethodForShowDesigner=function(){return v.showSquareDesigner};this.protectedGetCardDescription=function(m){return m.getModelPages()[0].getModel().getChart().getChartProperty().getDescription()};
this.protectedCheckDesignerAccessable=function(m,n){var E=m.isSquareDesignerAccessable();m=m.getSquareDesignerOperationJudger();n(E,m)};this.protectedAccessAdvancedAnalysis=function(m){var n=m.isAdvancedAnalysisAccessable();if(n){m=m.getAdvancedAnalysisOperationJudger();var E=a.getModel().getCardTitle(),ja=a.getModel().getReferenceCustomMap(),ba=a.getModel().getExecutingTag();v.squareAnalysis(E,ja,ba,m)}return n}}function zb(){Ja.call(this);var a=this.protectedMethod;this.protectedDoPropertyChanged=
function(b){a.builtinVisualWidgetDoPropertyChanged(b)};this.protectedGetFacadeMethodForLoadSchema=function(){return"longerLoadSchema"};this.protectedMergeRtEditableConfirmer=function(b,d){d||(d=new Q);b&&(d=d.mergeToNewInstance(b.getRtLongerEditableConfirmer()));return d};this.protectedInitScene=function(b){b.setLongerDesignerOperationJudgerGetter(function(){return a.getRtEditableConfirmer().getLongerDesignerOperationJudger()})};this.protectedGetIntegrationMethodForShowDesigner=function(){return v.showLongerDesigner};
this.protectedCheckDesignerAccessable=function(b,d){var h=b.isLongerDesignerAccessable();b=b.getLongerDesignerOperationJudger();d(h,b)}}function hc(){wa.call(this);Rb.call(this);Wb.call(this);var a=this,b=this.protectedMethod,d,h=this.destroy;this.destroy=function(){h();var n=v.getQingReportExecutor();n&&n.destroy(d,a.getModel())};this.protectedCreateJqUiWithIframe=function(){d=$("<div>");var n=v.getQingReportExecutor();n&&n.initUi(d,a.getModel());return d};this.protectedRunImpl=function(n){b.isWaitingInputs()||
m()};this.protectedDoPropertyChanged=function(n){n==F.KEY_REF?m():n==F.KEY_CARD_TITLE&&(n=v.getQingReportExecutor())&&n.updateTitle(d,a.getModel())};this.protectedRepaint=function(){var n=v.getQingReportExecutor();n&&n.resize(d,a.getModel())};this.payAttentionTo=function(n,E){b.isPlayAffectedMe(n,E)?(m(),n=n.getModel().getDurationMode(),n.untilAllAffectedTargetsExecuted(n.getPlayingRoundId(),a.getModel().getName(),function(){d.stop(!0);d.fadeTo(500,.2,function(){d.fadeTo(500,1)})})):b.isAnotherSelectedAffectedMe(n,
E)&&m()};var m=function(){var n=v.getQingReportExecutor();n&&n.run(d,a.getModel(),b.isDesigntime())}}function Pb(){wa.call(this);Rb.call(this);Wb.call(this);var a=this,b=this.protectedMethod,d,h=this.destroy;this.destroy=function(){h();var n=v.getExtReportExecutor();n&&n.destroy(d,a.getModel())};this.protectedCreateJqUiWithIframe=function(){d=$("<div>");var n=v.getExtReportExecutor();n&&n.initUi(d,a.getModel());return d};this.protectedRunImpl=function(n){b.isWaitingInputs()||m()};this.protectedDoPropertyChanged=
function(n){n==Bc.KEY_MODEL?m():n==Bc.KEY_TITLE&&(n=v.getExtReportExecutor())&&n.updateTitle(d,a.getModel())};this.protectedRepaint=function(){var n=v.getExtReportExecutor();n&&n.resize(d,a.getModel())};this.payAttentionTo=function(n,E){if(b.isPlayAffectedMe(n,E)){m();var ja=n.getModel().getDurationMode();ja.untilAllAffectedTargetsExecuted(ja.getPlayingRoundId(),a.getModel().getName(),function(){d.stop(!0);d.fadeTo(500,.2,function(){d.fadeTo(500,1)})})}b.isAnotherSelectedAffectedMe(n,E)&&m()};var m=
function(){var n=v.getExtReportExecutor();n&&n.run(d,a.getModel(),b.isDesigntime())}}function Ha(){wa.call(this);Rb.call(this);var a=this,b=this.protectedMethod,d,h=this.destroy;this.destroy=function(){h();var n=v.getProgramableCardExecutor();n&&n.destroy(d,a.getModel())};this.protectedCreateJqUiWithIframe=function(){d=$("<div>");var n=v.getProgramableCardExecutor();n&&n.initUi(d,a.getModel());return d};this.run=function(n){m()};this.protectedRepaint=function(){var n=v.getProgramableCardExecutor();
n&&n.resize(d,a.getModel())};this.protectedDoPropertyChanged=function(n){n==F.KEY_REF&&m()};var m=function(){var n=v.getProgramableCardExecutor();n&&n.run(d,a.getModel(),b.isDesigntime())}}function oa(){wa.call(this);Rb.call(this);var a=this,b=this.protectedMethod,d,h=this.destroy;this.destroy=function(){h();var n=v.getCosmicCustomCardExecutor();n&&n.destroy(d,a.getModel())};this.protectedCreateJqUiWithIframe=function(){d=$("<div>");var n=v.getCosmicCustomCardExecutor();n&&n.initUi(d,a.getModel());
return d};this.run=function(n){m()};this.protectedRepaint=function(){var n=v.getCosmicCustomCardExecutor();n&&n.resize(d,a.getModel())};this.protectedDoPropertyChanged=function(n){n==Xc.KEY_MODEL&&m()};var m=function(){var n=v.getCosmicCustomCardExecutor();n&&n.run(d,a.getModel(),b.isDesigntime())}}function kb(){wa.call(this);Rb.call(this);var a=this,b=this.protectedMethod,d,h=this.destroy;this.destroy=function(){h();var m=v.getCloudhubSubscribesExecutor();m&&m.destroy(d,a.getModel())};this.protectedCreateJqUiWithIframe=
function(){d=$("<div>");var m=v.getCloudhubSubscribesExecutor();m&&m.initUi(d,a.getModel());return d};this.run=function(m){(m=v.getCloudhubSubscribesExecutor())&&m.run(d,a.getModel(),b.isDesigntime())};this.protectedRepaint=function(){var m=v.getCloudhubSubscribesExecutor();m&&m.resize(d,a.getModel())}}function ob(){wa.call(this);Rb.call(this);Wb.call(this);var a=this,b=this.protectedMethod,d;this.protectedCreateJqUiWithIframe=function(){d=$("<iframe>");d.css("border","0px");b.setupDesigntimeRectangle(d);
return d};this.protectedDoPropertyChanged=function(m){m==Ac.KEY_URL&&h()};this.payAttentionTo=function(m,n){b.isAnotherSelectedAffectedMe(m,n)&&h()};this.protectedRunImpl=function(m){b.isWaitingInputs()||h()};var h=function(){d.attr("src","");setTimeout(function(){var m=a.getModel().getUsableUrl();d.attr("src",m)},100)}}function Ia(){wa.call(this);var a=this,b=this.protectedMethod,d,h=new dc,m,n,E=this.destroy;this.destroy=function(){E();clearTimeout(n)};this.protectedCreateJqUi=function(R){d=$("<div>");
d.css({overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"});b.setupDesigntimeRectangle(d);return d};this.run=function(R){ja();ba();T()};this.protectedDoPropertyChanged=function(R){R==wc.KEY_FORMAT?(ba(),T()):R==F.KEY_STYLE&&ja()};this.protectedRepaint=function(){ja()};var ja=function(){t.decorateLabel(d);var R=a.getModel(),J=R.getStyle(),B=J.getFontName(),S={};S["line-height"]=R.getHeight()+"px";S["font-family"]=B?B:"";S["font-size"]=J.getFontSize()+"px";S["text-align"]=J.getAlign();
(R=J.getColor())&&(S.color=R);d.css(S)},ba=function(){var R=a.getModel().getFormatString();h.setFormatString(R);m=1E3*(0>R.indexOf("s")?10:1)},T=function(){clearTimeout(n);var R=h.format(new Date);d.text(R);n=setTimeout(T,m)}}function cb(){wa.call(this);Wb.call(this);Ob.call(this);Na.call(this);var a=this,b=this.protectedMethod,d,h,m=!1,n;this.protectedCreateJqUi=function(ka){ka=new Hb;ka.bindWidget(a.getModel());d=ka.getJqUi();d.css({"text-align":"center",overflow:"hidden","text-overflow":"ellipsis",
"white-space":"nowrap"});b.setupDesigntimeRectangle(d);return d};this.protectedDoPropertyChanged=function(ka){ka==Ub.KEY_CONTENT?ua(function(){E()}):(ka==F.KEY_STYLE||ka==Ub.KEY_WALKING)&&E()};this.protectedRepaint=function(){E()};this.payAttentionTo=function(ka,hb){b.isPlayAffectedMe(ka,hb)?(m=!0,ka=ka.getModel().getDurationMode(),ka.untilAllAffectedTargetsExecuted(ka.getPlayingRoundId(),a.getModel().getName(),function(){m=!1;E()})):b.isAnotherSelectedAffectedMe(ka,hb)?E():b.isOutputParamWatched(ka,
hb)&&b.refreshOutputParamValueByAnotherWidget(hb,ka,function(){E()},function(){E()})};this.getFilterSelectedValue=function(){return h};this.protectedRunImpl=function(ka){ua(function(){E()})};var E=function(){if(!m){t.decorateLabel(d);var ka=a.getModel(),hb=ka.getStyle(),xb=hb.getFontName(),tb={};tb["line-height"]=ka.getHeight()+"px";tb["font-family"]=xb?xb:"";tb["font-size"]=hb.getFontSize()+"px";tb["text-align"]=hb.getAlign();(hb=hb.getColor())&&(tb.color=hb);d.css(tb);d.empty();d.attr("title","");
tb=$("<span>");ba(tb);tb.appendTo(d);n&&clearInterval(n);hb=ka.getWalkingSpeed();ka.setRuntimeWalkable(0<hb);0<hb&&(tb.css("position","absolute"),ja(tb,hb))}},ja=function(ka,hb){var xb=d.prop("clientWidth");n=setInterval(function(){b.isDead()&&clearInterval(n);a.getModel().isRuntimeWalkable()&&d.is(":visible")&&"hidden"!=d.css("visibility")&&(ka.css("left",xb),xb--,0>xb+ka.prop("offsetWidth")&&(xb=d.prop("clientWidth")))},hb)},ba=function(ka){var hb=[],xb=S(function(tb){hb=tb});(xb=T(xb,hb,function(tb,
jc,pc){tb&&R(tb).appendTo(ka);J(jc,pc).appendTo(ka)}))&&R(xb).appendTo(ka)},T=function(ka,hb,xb){var tb={},jc=a.getModel().getPredefinedTextFragments();if(jc)for(var pc=0;pc<jc.getFragmentCount();pc++){var Fc=jc.getFragment(pc),Cc=Fc.getName();tb[Cc]=Fc}for(pc=0;pc<hb.length;pc++)if(Cc=hb[pc][2],Fc=tb[Cc])if(jc=Fc.getDisplay(),Fc=Fc.getAffectedTargets(),Cc&&jc&&Fc){jc=M(Sb.parseRef(jc),jc);Cc="${"+Cc+"}$";var Rc=ka.indexOf(Cc);if(0<=Rc){var Wc=ka.substring(0,Rc);ka=ka.substring(Rc+Cc.length);xb(Wc,
jc,Fc)}}return ka},R=function(ka){var hb=$("<span>");hb.text(ka);return hb},J=function(ka,hb){var xb=$("<span>");xb.text(ka);xb.css("cursor","pointer");xb.on("click",function(tb){h=new gd;h.setValue(ka);h.setText(ka);B(hb);a.getModel().setAffectedTargets(hb);b.fireCommunicationEvent(wa.KEY_SELECTED_BY_MANUAL)});xb.on("mouseenter",function(tb){xb.css("text-decoration","underline")});xb.on("mouseleave",function(tb){xb.css("text-decoration","")});return xb},B=function(ka){for(var hb=0;hb<ka.getItemCount();hb++){var xb=
ka.getItem(hb);if(xb.getType()==F.AffectedType_Hotlink){var tb=xb.getUrl(),jc=Sb.parseRef(tb);tb=M(jc,tb);var pc="";jc=T(tb,jc,function(Fc,Cc,Rc){pc+=Fc;pc+=Cc});pc+=jc;xb.setUsableUrl(pc)}}},S=function(ka){var hb=a.getModel().getContent();if(hb){var xb=Sb.parseRef(hb);hb=M(xb,hb);ka(xb);return hb}return b.isDesigntime()?c.get("labelHasNoText","(\u672a\u8bbe\u7f6e)"):""},M=function(ka,hb){for(var xb=b.createParamValueSearcherApi(),tb=ka.length-1;0<=tb;tb--){var jc=ka[tb],pc=jc[0],Fc=jc[1],Cc=jc[2];
jc=jc[3];if(0==Cc.indexOf("#"))Cc=Cc.substring(1),Cc=xb?xb.searchDisplayText(Cc):void 0;else if(0<Cc.indexOf("#")){Cc=Cc.split("#");var Rc=null;Cc=b.lookupOutputParamValue(Cc[0],Cc[1],function(Wc){Rc=" (Widget '#1' not exist) ".replace("#1",Wc)},function(Wc,hd){var dd=a.getModel().getTopPage().searchWidgetByName(Wc);Wc=dd?dd.getDisplayName():Wc;Rc=" (Param '#1' not found) ".replace("#1",Wc+"#"+hd)},function(Wc,hd,dd,md){Rc="***";Wc=(dd=a.getModel().getTopPage().searchWidgetByName(Wc))?dd.getDisplayName():
Wc;d.attr("title",Wc+"#"+hd+" error: "+md)});Rc&&(Cc=Rc)}else continue;void 0===Cc&&(Cc=jc);hb=hb.substring(0,pc)+Cc+hb.substring(Fc);ka.splice(tb,1)}return hb},ua=function(ka){b.registWatchingTargetStart();var hb=function(pc){pc=Sb.parseRef(pc);for(var Fc=0;Fc<pc.length;Fc++){var Cc=pc[Fc][2];0<Cc.indexOf("#")&&(Cc=Cc.split("#"),b.registWatchingTarget(Cc[0],Cc[1]))}};hb(a.getModel().getContent());var xb=a.getModel().getPredefinedTextFragments();if(xb)for(var tb=0;tb<xb.getFragmentCount();tb++){var jc=
xb.getFragment(tb).getDisplay();hb(jc)}b.registWatchingTargetEnd(ka)}}function p(){wa.call(this);Wb.call(this);Ob.call(this);Na.call(this);var a=this,b=this.protectedMethod,d,h,m,n=!1;this.protectedCreateJqUi=function(B){h=new sa;d=$("<div>");d.append(h.getJqUi());rb.layoutCtrlWithLRTB(h.getJqUi(),0,0,null,0,0,null);b.setupDesigntimeRectangle(d);return d};this.protectedDoPropertyChanged=function(B){B==$b.KEY_CONTENT&&J(function(){E()})};this.protectedRepaint=function(){E()};this.payAttentionTo=function(B,
S){b.isPlayAffectedMe(B,S)?(n=!0,B=B.getModel().getDurationMode(),B.untilAllAffectedTargetsExecuted(B.getPlayingRoundId(),a.getModel().getName(),function(){n=!1;E()})):b.isAnotherSelectedAffectedMe(B,S)?E():b.isOutputParamWatched(B,S)&&b.refreshOutputParamValueByAnotherWidget(S,B,function(){E()},function(){E()})};this.getFilterSelectedValue=function(){return m};this.protectedRunImpl=function(B){J(function(){E()})};var E=function(){if(!n){var B=a.getModel().getContent().clone();ja(B);h.setDefaultColor(t.dip(t.DSB_LABEL)[t.Key_Label_Color]);
h.setModel(B);h.refresh()}},ja=function(B){var S=B.getAllText();S=Sb.parseRef(S);R(S,function(M,ua,ka){B.replaceVar(M,ua,ka)});T(S,function(M,ua,ka){var hb=B.getAllText().indexOf(M);B.replaceVar(hb,hb+M.length,ua).hookUiCustomDecorator(function(xb){xb.css("cursor","pointer");xb.on("click",function(tb){m=new gd;m.setValue(ua);m.setText(ua);ba(ka);a.getModel().setAffectedTargets(ka);b.fireCommunicationEvent(wa.KEY_SELECTED_BY_MANUAL)});xb.on("mouseenter",function(tb){xb.css("text-decoration","underline")});
xb.on("mouseleave",function(tb){xb.css("text-decoration","")})})})},ba=function(B){for(var S=0;S<B.getItemCount();S++){var M=B.getItem(S);if(M.getType()==F.AffectedType_Hotlink){var ua=M.getUrl(),ka=Sb.parseRef(ua),hb=ua;R(ka,function(xb,tb,jc){hb=hb.substring(0,xb)+jc+hb.substring(tb)});T(ka,function(xb,tb,jc){jc=hb.indexOf(xb);xb=jc+xb.length;hb=hb.substring(0,jc)+tb+hb.substring(xb)});M.setUsableUrl(hb)}}},T=function(B,S){var M={},ua=a.getModel().getPredefinedTextFragments();if(ua)for(var ka=0;ka<
ua.getFragmentCount();ka++){var hb=ua.getFragment(ka),xb=hb.getName();M[xb]=hb}for(ka=0;ka<B.length;ka++)if(xb=B[ka][2],hb=M[xb]){var tb=hb.getDisplay();ua=hb.getAffectedTargets();xb&&tb&&ua&&(R(Sb.parseRef(tb),function(jc,pc,Fc){tb=tb.substring(0,jc)+Fc+tb.substring(pc)}),S("${"+xb+"}$",tb,ua))}},R=function(B,S){for(var M=b.createParamValueSearcherApi(),ua=B.length-1;0<=ua;ua--){var ka=B[ua],hb=ka[0],xb=ka[1],tb=ka[2];ka=ka[3];if(0==tb.indexOf("#"))tb=tb.substring(1),tb=M?M.searchDisplayText(tb):
void 0;else if(0<tb.indexOf("#")){tb=tb.split("#");var jc=null;tb=b.lookupOutputParamValue(tb[0],tb[1],function(pc){jc=" (Widget '#1' not exist) ".replace("#1",pc)},function(pc,Fc){var Cc=a.getModel().getTopPage().searchWidgetByName(pc);pc=Cc?Cc.getDisplayName():pc;jc=" (Param '#1' not found) ".replace("#1",pc+"#"+Fc)},function(pc,Fc,Cc,Rc){jc="***";pc=(Cc=a.getModel().getTopPage().searchWidgetByName(pc))?Cc.getDisplayName():pc;d.attr("title",pc+"#"+Fc+" error: "+Rc)});jc&&(tb=jc)}else continue;void 0===
tb&&(tb=ka);S(hb,xb,tb);B.splice(ua,1)}},J=function(B){b.registWatchingTargetStart();var S=function(hb){hb=Sb.parseRef(hb);for(var xb=0;xb<hb.length;xb++){var tb=hb[xb][2];0<tb.indexOf("#")&&(tb=tb.split("#"),b.registWatchingTarget(tb[0],tb[1]))}};S(a.getModel().getContent().getAllText());var M=a.getModel().getPredefinedTextFragments();if(M)for(var ua=0;ua<M.getFragmentCount();ua++){var ka=M.getFragment(ua).getDisplay();S(ka)}b.registWatchingTargetEnd(B)}}function X(){wa.call(this);Vb.call(this);
var a=this,b=this.protectedMethod,d;this.protectedCreateJqUiImpl=function(h){d=h.createWidgetCtrl(a.getModel());d.setValueChangedListener(function(){b.fireCommunicationEvent(wa.KEY_SELECTED_BY_MANUAL)});return d.getJqUi()};this.protectedDoPropertyChanged=function(h){h==F.KEY_FILTER_FRONT_LABEL||h==F.KEY_FILTER_FRONT_LABEL_POSITION||h==F.KEY_FILTER_FRONT_LABEL_LENGTH?d.updateFrontLabel():h==F.KEY_FONT_SIZE_ENHANCED?d.updateSurface():b.discreteItemFilterDoPropertyChanged(h)};this.protectedRepaint=function(){d.updateFrontLabel()};
this.protectedGetFilterSelectedValue=function(){return d.getSelectedItem()};this.protectedUpdateCtrlModel=function(h){d.setSelectableItems(h)};this.protectedUpdateSelectedValue=function(h){h=h&&0<h.length?h[0]:(h=b.getSelectableItems())&&0<h.length?h[0]:null;d.setSelectedItem(h)}}function na(){wa.call(this);Vb.call(this);var a=this,b=this.protectedMethod,d;this.protectedCreateJqUiImpl=function(h){d=new yb;d.bindWidget(a.getModel());d.setValueChangedListener(function(){b.fireCommunicationEvent(wa.KEY_SELECTED_BY_MANUAL)});
return d.getJqUi()};this.protectedDoPropertyChanged=function(h){h==oc.KEY_LAYOUT_MODE||h==oc.KEY_ITEMS_PER_ROW||h==oc.KEY_CHARS_PER_ITEM?d.relayout():h==oc.KEY_SIZE_MODE&&a.getModel().getLayoutMode()==oc.LAYOUT_MODE_WRAP?d.relayout():b.discreteItemFilterDoPropertyChanged(h)};this.protectedRepaint=function(){d.requestRepaint()};this.protectedGetFilterSelectedValue=function(){return d.getSelectedItems().slice(0)};this.protectedUpdateCtrlModel=function(h){d.setSelectableItems(h)};this.protectedUpdateSelectedValue=
function(h){h||(h=(h=b.getSelectableItems())&&0<h.length?[h[0]]:[]);d.setSelectedItems(h)}}function Ua(){lb.call(this);this.setSelectableItems=function(a){throw Error("Implement");};this.setSelectedItems=function(a){throw Error("Implement");};this.getSelectedItems=function(){throw Error("Implement");};this.setValueChangedListener=function(a){throw Error("Implement");};this.requestRepaint=function(){throw Error("Implement");};this.relayout=function(){throw Error("Implement");}}function ha(){wa.call(this);
Vb.call(this);var a=this,b=this.protectedMethod,d;this.protectedCreateJqUiImpl=function(h){d=h.createWidgetCtrl(a.getModel());d.setValueChangedListener(function(){b.fireCommunicationEvent(wa.KEY_SELECTED_BY_MANUAL)});return d.getJqUi()};this.protectedDoPropertyChanged=function(h){h==F.KEY_FILTER_FRONT_LABEL||h==F.KEY_FILTER_FRONT_LABEL_POSITION||h==F.KEY_FILTER_FRONT_LABEL_LENGTH?d.updateFrontLabel():h==F.KEY_FONT_SIZE_ENHANCED?d.updateSurface():b.discreteItemFilterDoPropertyChanged(h)};this.protectedRepaint=
function(){d.updateFrontLabel()};this.protectedGetFilterSelectedValue=function(){var h=d.getSelectedItems();return h?h.slice(0):Hc.createItemAll()};this.protectedUpdateCtrlModel=function(h){d.setSelectableItems(h)};this.protectedUpdateSelectedValue=function(h){h||(h=a.getModel().isMultiSelectable()?null:(h=b.getSelectableItems())&&0<h.length?[h[0]]:[]);d.setSelectedItems(h)}}function f(){wa.call(this);Ob.call(this);var a=this,b=this.protectedMethod,d,h;this.reparseRelativeDate=function(){h(null,E)};
this.protectedCreateJqUi=function(ja){d=ja.createWidgetCtrl(a.getModel());d.setValueChangedListener(function(){b.fireCommunicationEvent(wa.KEY_SELECTED_BY_MANUAL)});return d.getJqUi()};this.run=function(ja){if(a.getModel().getRelativeModel()){var ba=null;h=function(T,R){var J=a.getModel().getRelativeModel(),B=a.protectedGetDatePart(),S=ja(function(M){var ua=M.fromDate;M=M.toDate;a.getModel().updateDate(ua,M);T&&T();ua="["+ua+","+M+"]";ba!=ua&&(ba=ua,R&&R())});S.setShowBlocking(!1);S.parseRelativePeriod(J,
B)};h(E)}else E()};this.protectedGetDatePart=function(){return null};this.protectedDoPropertyChanged=function(ja){ja==jd.KEY_DATE_INITIAL?E():ja==F.KEY_FILTER_FRONT_LABEL||ja==F.KEY_FILTER_FRONT_LABEL_POSITION||ja==F.KEY_FILTER_FRONT_LABEL_LENGTH?d.updateFrontLabel():ja==F.KEY_FONT_SIZE_ENHANCED?d.updateSurface():b.filterSimilaryDoPropertyChanged(ja)};this.protectedRepaint=function(){d.updateFrontLabel()};this.getFilterSelectedValue=function(){var ja=d.getFromDateMs(),ba=d.getToDateMs(),T=a.getModel().isContainNull();
T=new bd(ja,ba,T);ja=m(ja);ba=m(ba);var R=a.protectedConfirmSingleParamValue(ja,ba);T.setParamValue(R,ja,ba);return T};this.protectedConfirmSingleParamValue=function(ja,ba){return null};var m=function(ja){ja=new Date(ja);return ja.getFullYear()+n(ja.getMonth()+1)+n(ja.getDate())},n=function(ja){return(9<ja?"":"0")+ja},E=function(){d.setDateMs([a.getModel().getFromDate(),a.getModel().getToDate()]);b.fireCommunicationEvent(wa.KEY_SELECTED_BY_API)}}function xa(){f.call(this)}function Ba(){f.call(this);
this.protectedGetDatePart=function(){return"y"};this.protectedConfirmSingleParamValue=function(a,b){return a.substring(0,4)}}function qa(){f.call(this);this.protectedGetDatePart=function(){return"q"};this.protectedConfirmSingleParamValue=function(a,b){b=a.substring(0,4);a=a.substring(4,6);a=Math.ceil(parseInt(a)/3);return b+a}}function Pa(){f.call(this);this.protectedGetDatePart=function(){return"m"};this.protectedConfirmSingleParamValue=function(a,b){return a.substring(0,6)}}function Oa(){f.call(this);
this.protectedGetDatePart=function(){return"d"};this.protectedConfirmSingleParamValue=function(a,b){return a}}function Za(){sb.call(this);Gb.call(this);Eb.call(this);var a=this,b=this.protectedMethod,d;this.protectedCreateJqUi=function(n){var E=!(n.isDesigntime()||n.isPreview());d=n.createWidgetCtrl(a.getModel());d.updateTopBar(a.getModel().getCardDescription());d.setActionListener(function(ja,ba,T){ba==ib.ACTION_FULLSCREEN&&(E?b.doFullscreen(d.getJqUi()):b.fakeAction(ja,T))});d.hookFullscreenAutonomy(b.markFullscreen,
m);h();return d.getJqUi()};this.protectedRepaint=function(){d.updateCardSurface()};this.getJqPhysicalContainer=function(){return d.getJqContent()};this.protectedDoPropertyChanged=function(n){n==F.KEY_CARD_TITLE?d.updateTopBar(a.getModel().getCardDescription()):n==F.KEY_CARD_SURFACE?d.updateCardSurface():n==qc.KEY_FULLSCREEN_ALLOWED?a.getModel().traversalMeAndDescendents(function(E){E.isInstanceOf(F.WidgetSuperType_FullscreenSupported)&&b.getCtxApi().getWidgetUiObject(E).updateUiWhenAncestorFullscreenAllowedChanged()}):
b.fullscreenSupportedWidgetDoPropertyChanged(n)};this.updateCardSurface=function(){d.updateCardSurface()};this.updateUiWhenAncestorFullscreenAllowedChanged=function(){h();a.protectedRepaint()};this.protectedFullScreenChanged=function(n){d.updateFullscreenButtonDisplay(n);n&&setTimeout(m,100)};this.protectedUpdateButtonStateByAncestorFullscreen=function(n){h(n)};var h=function(n){n=a.getModel().getFullscreenAllowed()==qc.FULLSCREEN_ALLOWED_NONE||a.getModel().isAncestorForbidFullscreen()||n;d.hideButtons(n?
ib.ACTION_FULLSCREEN:ib.ACTION_NONE)},m=function(){var n={};a.getModel().traversalMeAndDescendents(function(ba){if(ba.isContainer()&&!ba.isInstanceOf(F.WidgetSuperType_CompositeContainer)){var T=new ac;T.setDesigningSize(ba.getClientWidth(),ba.getClientHeight());n[ba.getName()]=T;for(var R=0;R<ba.getWidgetCount();R++){var J=ba.getWidget(R);T.appendBlock(J.getName(),J.getX(),J.getY(),J.getWidth(),J.getHeight(),J.isWidthLocked(),J.isHeightLocked())}}});var E=d.getJqUi().prop("offsetWidth"),ja=d.getJqUi().prop("offsetHeight");
a.getModel().setRectangle(0,0,E,ja);a.getModel().traversalMeAndDescendents(function(ba){var T=n[ba.getName()];if(T){T.transformTo(ba.getClientWidth(),ba.getClientHeight());for(var R=0;R<ba.getWidgetCount();R++){var J=ba.getWidget(R),B=T.searchBlockRect(J.getName());B&&J.setRectangle(B[0],B[1],B[2],B[3])}}})}}function ib(){lb.call(this);this.updateTopBar=function(a){throw Error("Implement");};this.getJqContent=function(){throw Error("Implement");};this.updateCardSurface=function(){};this.hideButtons=
function(a){throw Error("Implement");};this.setActionListener=function(a){};this.updateFullscreenButtonDisplay=function(a){};this.hookFullscreenAutonomy=function(a,b){}}function Kb(){sb.call(this);Gb.call(this);Wb.call(this);var a=this,b=this.protectedMethod,d,h=0,m;this.protectedHookWidget=function(J){J.addChildrenChangedListener(ja)};this.protectedUnhookWidget=function(J){J.removeChildrenChangedListener(ja)};this.protectedCreateJqUi=function(J){d=new Sa;d.bindWidget(a.getModel());J=d.getJqUi();
b.setupDesigntimeRectangle(d.getJqContent());return J};this.payAttentionTo=function(J,B){if(b.isAnotherManualSelectedAffectedMe(J,B)){B=a.getModel();var S=(J=J.getModel().getAffectedTargets())?J.getTarget(B.getName()):null;if(S&&S.isSettingComplete()){J=S.getUsableParamName();var M=b.createParamValueSearcherApi();J=M?M.searchDisplayText(J):void 0;if(void 0!==J&&M.isAnyOneExceptedItemAll())if(S=S.getTabIndex(),0>S){for(S=0;S<B.getWidgetCount();S++)if(B.getWidget(S).getHeadText()==J){n(S);return}console&&
console.warn("Tab '#1' at '#2' not exist.".replace("#1",J).replace("#2",B.getDisplayName()))}else S<B.getWidgetCount()?n(S):console&&console.warn("Tab index #1 at '#2' not exist.".replace("#1",S).replace("#2",B.getDisplayName()))}}};var n=function(J){setTimeout(function(){a.getModel().switchToSubTabbed(J)},0)},E=this.updateInputParams;this.updateInputParams=function(J){var B=Yc.createItem(F.AffectedType_Tab);B.setTargetWidgetName(a.getModel().getName());J=new Yc;J.addItem(B);B={};J.reverse("whoCare",
B);J=B[a.getModel().getName()];E(J)};this.protectedRunImpl=function(J){if(b.isDesigntime()){J=a.getModel();for(var B=0;B<J.getWidgetCount();B++){var S=J.getWidget(B),M=S.getDurationMode();M.getType()==id.TYPE_ByData&&(M.setRuntimeData([Hc.createItemAll()]),S=b.getCtxApi().getWidgetUiObject(S),b.fireCommunicationEvent(wa.KEY_PLAY,S))}}else if(a.getModel().isTopLevelSlideshow()){var ua=function(){var hb=a.getModel().isAllDescendentSlideshowRuntimePrepared();hb&&void 0===m&&(m=!1,ba());return hb};if(!ua()){var ka=
function(){setTimeout(function(){!ua()&&ka()},1E3)};ka()}}};this.protectedRepaint=function(){d.updateHeadUi(!1)};this.getJqPhysicalContainer=function(){return d.getJqContent()};this.protectedDoPropertyChanged=function(J){J!=mc.KEY_TABBED_SELECTED&&J!=Gc.KEY_HEAD_TEXT&&J!=mc.KEY_HEAD_POSITION&&J!=mc.KEY_HEAD_PATTERN&&J!=F.KEY_FONT_SIZE_ENHANCED||d.updateHeadUi(!0)};this.updateCardSurface=function(){d.updateHeadUi(!0)};var ja=function(J,B,S){J==F.KEY_MOVE_CHILD&&a.getModel()==B&&d.updateHeadUi(!0)},
ba=function(){var J=a.getModel();if(!0!==m&&!b.isDead()&&0!=J.getWidgetCount()){var B=J.getWidget(h);B.getDurationMode().playStart(function(){var S=!0===m;if(!S){var M=T();h!=M&&J.switchToSubTabbed(h);R(J.getWidget(M),!0,function(ua){ua.isSlideshowPlaying()&&(ua.slideshowPause(!0),ua.resetSlideshowStatus())});R(J.getWidget(h),!1,function(ua){!ua.isSlideshowPlaying()&&ua.slideshowPause(!1)})}return S},function(S){!0!==m&&(S&&(h++,h>=J.getWidgetCount()&&(h=0)),setTimeout(ba,0))})&&(B=b.getCtxApi().getWidgetUiObject(B),
b.fireCommunicationEvent(wa.KEY_PLAY,B))}},T=function(){for(var J=a.getModel(),B=0;B<J.getWidgetCount();B++)if(J.getWidget(B).isVisible())return B;return-1};this.resetSlideshowStatus=function(){h=0;var J=a.getModel();J.switchToSubTabbed(h);for(var B=0;B<J.getWidgetCount();B++)J.getWidget(B).getDurationMode().resetPlayingStatus()};this.isSlideshowPlaying=function(){return!1===m};this.slideshowPause=function(J){m=J?!0:!1;if(J){J=a.getModel();for(var B=0;B<J.getWidgetCount();B++)J.getWidget(B).getDurationMode().playStop()}else h=
T(),ba()};var R=function(J,B,S){var M=function(ua){for(var ka=0;ka<ua.getWidgetCount();ka++){var hb=ua.getWidget(ka);if(hb instanceof mc&&hb.isSlideshowEnabled()){var xb=b.getCtxApi().getWidgetUiObject(hb);S(xb);if(!B)continue}hb.isContainer()&&M(hb)}};M(J)}}function nc(){lb.call(this);this.getJqContent=function(){throw Error("Implement");};this.updateHeadUi=function(a){throw Error("Implement");}}function kc(){sb.call(this);Ob.call(this);var a=this,b=this.protectedMethod,d,h,m=!1;this.protectedCreateJqUi=
function(T){d=$("<div>");n();return d};this.getJqPhysicalContainer=function(){return d};this.run=function(T){E()&&(h=T,ba());m=!0};this.protectedDoPropertyChanged=function(T){T==F.KEY_VISIBLE&&n()};this.payAttentionTo=function(T,R){if(E()&&(R==wa.KEY_VISUAL_DATA_PREPARED_SUCCESS||R==wa.KEY_VISUAL_DATA_PREPARED_ERROR)){T=T.getModel();var J=ja();J&&J.isPreparedValueRelatedToWidget(T.getName())&&(R==wa.KEY_VISUAL_DATA_PREPARED_SUCCESS?ba():R==wa.KEY_VISUAL_DATA_PREPARED_ERROR&&a.getModel().getDurationMode().setRuntimeData(null))}};
this.getFilterSelectedValue=function(){return a.getModel().getDurationMode().getPlayingData()};var n=function(){var T=a.getModel().isVisible();E()&&m?(d.stop(!0,!0),T?(d.css("visibility",""),d.fadeTo(1E3,1)):d.fadeTo(500,.2,function(){d.css("visibility","hidden")})):d.css("visibility",T?"":"hidden")},E=function(){return!b.isDesigntime()&&a.getModel().getParent().isSlideshowEnabled()},ja=function(){var T=a.getModel().getDurationMode();return T.getType()==id.TYPE_ByData?T.getFilterSource():null},ba=
function(){var T=a.getModel(),R=ja();R&&R.isValid()&&R.isConfirmedToGetPreparedValue(T)&&R.getPreparedValuePeer(T,h,function(J){T.getDurationMode().setRuntimeData(J)})}}function rc(){wa.call(this);var a=this,b=this.protectedMethod,d,h,m,n,E;this.protectedCreateJqUi=function(B){d=$("<div>");d.css("overflow","hidden");b.setupDesigntimeRectangle(d);m=$("<img>");m.css("position","absolute");m.appendTo(d);T();return d};this.protectedDoPropertyChanged=function(B){B==F.KEY_REF?T():B==Db.KEY_SCALE?ja():B==
Db.KEY_ALIGN&&ba()};this.protectedRepaint=function(){m&&ja()};var ja=function(){var B=a.getModel(),S=B.getWidth(),M=B.getHeight();if(B.getScale()==Db.SCALE_NON)B=n,S=E;else{B=S/M;var ua=n/E;ua>B?(B=S,S/=ua):(B=ua<B?M*ua:S,S=M)}m.css({height:S+"px",width:B+"px"});ba()},ba=function(){var B=a.getModel(),S=B.getAlign()==(Db.HALIGN_CENTER|Db.VALIGN_MIDDLE)?!0:!1,M=B.getHeight();B=B.getWidth();var ua=m.height(),ka=m.width(),hb=0,xb=0;S&&(hb=parseInt((M-ua)/2),xb=parseInt((B-ka)/2));m.css({top:hb+"px",left:xb+
"px"})},T=function(){h&&(m.show(),h.remove(),d.css("background","none"));d.attr("title",null);var B=a.getModel().getReferenceCustomMap();v.getPictureLoader()(B,R,J)},R=function(B,S,M){n=S;E=M;m.attr("src",B);ja()},J=function(B){m&&m.hide();d.css("background","#fff");h=$("<div>");h.addClass("dsb-widget-picture-loaderror");var S=c.get("pictureCanNotBeFind","\u627e\u4e0d\u5230\u5bf9\u5e94\u7684\u56fe\u7247"),M=$("<div>");M.text(S);var ua=$("<div>");ua.css("fontSize","12px");ua.text(B);M.appendTo(h);
ua.appendTo(h);h.appendTo(d);d.attr("title",S+"\r\n"+B)}}function uc(){sb.call(this);var a=this,b=this.protectedMethod,d;this.protectedCreateJqUi=function(m){d=$("<div>");h();b.setupDesigntimeRectangle(d);return d};this.getJqPhysicalContainer=function(){return d};this.protectedDoPropertyChanged=function(m){m==va.KEY_SURFACE&&h()};this.run=function(m){!b.isDesigntime()&&a.getModel().isFrozen()&&d.addClass("dsb-widget-titlebar-frozen")};var h=function(){var m;if(m=a.getModel().getSurfaceModel()){var n=
m.getBackgroundColor();var E=m.getSeparaterLineWidth();m=m.getSepataterColor()}else m=t.dip(t.DSB_PAGE_TITLE_BAR),n=m[t.Key_PageTitleBar_BackgroundColor],E=m[t.Key_PageTitleBar_SeparaterLineWidth],m=m[t.Key_PageTitleBar_SeparaterColor];E=(E?E:0)+"px solid "+(m?m:"transparent");d.css("background-color",n?n:"");d.css({"box-sizing":"border-box","border-bottom":E})}}function Dc(){var a=this,b,d,h,m;this.destroy=function(){d&&d.removePropertyChangedListener(a.protectedDoPropertyChanged);setTimeout(function(){d=
b=null},2E3)};this.setGlobalDependence=function(T){b=T};this.setWidget=function(T){d=T;d.addPropertyChangedListener(ja)};this.getWidget=function(){return d};this.getJqUi=function(){h||(h=$("<div>"),h.css({"overflow-x":"hidden","overflow-y":"auto"}),m=new U,m.setAlign(U.ALIGN_CENTER),m.getJqUi().addClass("dsb-propertyarea-lineitem"),m.getJqUi().appendTo(h),n(),a.protectedInitUi(h));return h};var n=function(){var T=L.getInstance(a.getWidget().getWidgetTypeName()).getTypeDisplayName(),R=a.getWidget().getDisplayName(),
J=R;T!=R&&(J=T+": "+R);m.setText(J)},E=function(T,R){if(T.length){var J=b.getCommandManager().createCompositeAction();for(var B=0;B<T.length;B++)J.appendUnitAction(T[B])}else J=T;T=a.getWidget().getDisplayName();R=c.get("actionCaption","#1\u4fee\u6539#2").replace("#2",R).replace("#1",T);J.setCaption(R);b.getCommandManager().perform(J)},ja=function(T,R){T==d&&(R==F.KEY_DISPLAY_NAME&&n(),a.protectedDoPropertyChanged(R))};this.protectedDoPropertyChanged=function(T){throw Error("Override");};this.protectedInitUi=
function(T){throw Error("Override");};var ba=function(T){return T.getUserObject().getText()};this.protectedMethod={getGlobal:function(){return b},performAction:E,createJqCap:function(){var T=$("<div>");T.addClass("dsb-propertyarea-gap");return T},createJqGroupTitle:function(T,R){var J=$("<div>");J.addClass("dsb-propertyarea-grouptitle");T=new U(T);var B=T.getJqUi();B.addClass("dsb-propertyarea-grouptitle-label");B.appendTo(J);if(R||0==R)B.css("left",0),B.css("right",0),T.setAlign(R);return J},createJqLineItem:function(T,
R){var J=new U(T);T=J.getJqUi();T.addClass("dsb-propertyarea-lineitem-caption");R.setUserObject(J);R=R.getJqUi();R.addClass("dsb-propertyarea-lineitem-ctrl");J=$("<div>");J.addClass("dsb-propertyarea-lineitem");J.append(T);J.append(R);return J},createTextEditor:function(T,R,J,B,S,M){var ua=function(hb){if(J)J(hb);else{var xb=ba(ka),tb=new vc;tb.setMethod(T,R);tb.setValue(hb);E(tb,xb)}},ka=new O;ka.addActionListener(function(hb){hb=a.getWidget().getDisplayName();var xb=ba(ka),tb=ka.getModel(),jc=new wd;
jc.setCaption(hb,xb);jc.setEmptyEnabled(B);jc.setMaxLength(S);jc.setClosingChecker(M);jc.setText(tb,function(pc,Fc){pc&&ua(Fc)});jc.showDialogLeftAnchorTo(ka.getUserObject().getJqUi())});B&&(ka.setClearable(!0),ka.addClearListener(function(hb){ua("")}));return ka},createTextAreaEditor:function(T,R){var J=function(S){var M=ba(B),ua=new vc;ua.setMethod(T,R);ua.setValue(S);E(ua,M)},B=new O;B.addActionListener(function(S){S=a.getWidget().getDisplayName();var M=ba(B),ua=B.getModel(),ka=new Id;ka.setSize(640,
480);ka.setTitle(S,M);ka.showDialog(ua,function(hb,xb){hb&&J(xb)})});B.setClearable(!0);B.addClearListener(function(S){J("")});return B},updateEditorEnabled:function(T,R){T.setEnabled(R);T.getUserObject().setEnabled(R)},updateEditorVisible:function(T,R){T.getJqUi().parent().css("display",R?"":"none")},getEditorCaption:ba,createSpinerHandlerWrapper:function(T){var R;return function(J,B,S,M){M==K.CHANGED_BY_MANUAL_ADJUST?(clearTimeout(R),R=setTimeout(function(){T(J,B,S)},625)):M==K.CHANGED_BY_MANUAL_EDIT&&
T(J,B,S)}}}}function ic(){Dc.call(this);this.protectedInitUi=function(a){};this.protectedDoPropertyChanged=function(a){}}function yc(){var a=this,b=this.protectedMethod,d,h,m,n=function(S){var M=v.getWidgetSourceSelector(),ua=a.getWidget().getBackgroundPicture(),ka=ua?ua.getReferenceCustomMap():null;M.selectPicture(ka,function(hb){if(hb){var xb=b.getEditorCaption(S),tb=new Db;tb.setReferenceCustomMap(hb);tb.setScale(ua?ua.getScale():Db.SCALE_FULL);tb.setAlign(ua?ua.getAlign():Db.HALIGN_LEFT|Db.VALIGN_TOP);
T(tb,xb)}})},E=function(S){S=b.getEditorCaption(S);T(null,S)},ja=function(S,M,ua){S=b.getEditorCaption(S);M=a.getWidget().getBackgroundPicture();var ka=new Db;ka.setReferenceCustomMap(M.getReferenceCustomMap());ka.setScale(ua);ka.setAlign(M.getAlign());T(ka,S)},ba=function(S,M,ua){S=b.getEditorCaption(S);M=a.getWidget().getBackgroundPicture();var ka=new Db;ka.setReferenceCustomMap(M.getReferenceCustomMap());ka.setScale(M.getScale());ka.setAlign(ua);T(ka,S)},T=function(S,M){var ua=a.getWidget(),ka=
new vc;ka.setMethod(ua.getBackgroundPicture,ua.setBackgroundPicture);ka.setValue(S);b.performAction(ka,M)},R=function(){var S=a.getWidget().getBackgroundPicture(),M=S&&S.getReferenceCustomMap()?!0:!1,ua=!1;M?(d.setModel(c.get("refHasSet","\u5df2\u8bbe\u7f6e")),h.setSelected(S.getScale()),m.setSelected(S.getAlign()),ua=S.isAlignNeccessary()):d.setModel("");b.updateEditorVisible(h,M);b.updateEditorVisible(m,ua)},J=function(S,M,ua){var ka=function(xb){return(ua&xb)==xb},hb=ka(Db.HALIGN_LEFT)?c.get("pictureAlignLeft",
"\u5de6"):ka(Db.HALIGN_RIGHT)?c.get("pictureAlignRight","\u53f3"):c.get("pictureAlignCenter","\u4e2d");ka=ka(Db.VALIGN_TOP)?c.get("pictureAlignTop","\u4e0a"):ka(Db.VALIGN_BOTTOM)?c.get("pictureAlignBottom","\u4e0b"):c.get("pictureAlignMiddle","\u4e2d");hb=hb+"-"+ka;S||M.css({display:"inline-block",padding:0,margin:0,width:"33%",height:"30%","text-align":"center","line-height":"50px"});M.text(hb)},B=function(S,M,ua){switch(ua){case Db.SCALE_NON:var ka=c.get("pictureScaleNon","\u539f\u59cb\u5c3a\u5bf8");
break;case Db.SCALE_ADAPTIVE:ka=c.get("pictureScaleAdaptive","\u9002\u5e94");break;case Db.SCALE_FULL:ka=c.get("pictureScaleFull","\u5145\u6ee1");break;case Db.SCALE_TILED:ka=c.get("pictureScaleTiled","\u5e73\u94fa")}M.text(ka)};b.backgroundInitUi=function(S){d=new O;d.setClearable(!0);d.addActionListener(n);d.addClearListener(E);h=new D;h.setItemModels([Db.SCALE_NON,Db.SCALE_ADAPTIVE,Db.SCALE_FULL,Db.SCALE_TILED]);h.setCustomPainter(B);h.addSelectedChangedListener(ja);m=new D;m.setItemModels([Db.HALIGN_LEFT|
Db.VALIGN_TOP,Db.HALIGN_CENTER|Db.VALIGN_TOP,Db.HALIGN_RIGHT|Db.VALIGN_TOP,Db.HALIGN_LEFT|Db.VALIGN_MIDDLE,Db.HALIGN_CENTER|Db.VALIGN_MIDDLE,Db.HALIGN_RIGHT|Db.VALIGN_MIDDLE,Db.HALIGN_LEFT|Db.VALIGN_BOTTOM,Db.HALIGN_CENTER|Db.VALIGN_BOTTOM,Db.HALIGN_RIGHT|Db.VALIGN_BOTTOM]);m.setCustomPainter(J);m.addSelectedChangedListener(ba);var M=b.createJqGroupTitle(c.get("pageBackgroundGroupTitle","\u80cc\u666f\uff1a")),ua=b.createJqLineItem(c.get("pageBackgroundPicture","\u80cc\u666f\u56fe\u7247"),d),ka=b.createJqLineItem(c.get("pageBackgroundScale",
"\u56fe\u7247\u7f29\u653e"),h),hb=b.createJqLineItem(c.get("pageBackgroundAlign","\u56fe\u7247\u5bf9\u9f50"),m);S.append(M);S.append(ua);S.append(ka);S.append(hb);R()};b.backgroundDoPropertyChanged=function(S){S==F.KEY_PAGE_BACKGROUND&&R()}}function Kc(){var a=this,b=this.protectedMethod,d,h,m={},n=function(){var ba=a.getWidget(),T=!0;if(ba.isInstanceOf(F.WidgetSuperType_CardSimilary)){T=ba.isBareSurface();var R=ba.getCardSurfaceMode()==db.Surface_Custom;T=!T&&R}R=!1;var J="Unified";if(ba=ba.getCardBorder())J=
ba.getType(),R=J==Zc.TYPE_MODEL||J==Zc.TYPE_IMAGE;d.setSelected(J);b.updateEditorVisible(d,T);h.setModel(ba);b.updateEditorVisible(h,T&&R)},E=function(ba){var T=h.getJqUi(),R=T.children(".qing-custom-cardlook");0==R.length&&(R=$("<div>"),R.css("border","1px solid #ccc"),R.addClass("qing-custom-cardlook"),rb.layoutCtrlWithLRTB(R,2,32,null,5,2,null),R.appendTo(T));ba&&ba.getType()==Zc.TYPE_IMAGE?(ba=$(document.createDocumentFragment()),ja(ba,20,20,null,0,null,5,"0px 1px 1px 1px"),ja(ba,20,20,null,null,
0,5,"1px 1px 0px 1px"),ja(ba,0,null,21,4,4,null,"1px 1px 1px 0px"),ja(ba,null,0,21,4,4,null,"1px 0px 1px 1px"),ba.appendTo(R)):R.empty();return""},ja=function(ba,T,R,J,B,S,M,ua){var ka=$("<div>");ka.css({"box-sizing":"border-box",border:"1px dotted #ccc","border-width":ua});ka.appendTo(ba);rb.layoutCtrlWithLRTB(ka,T,R,J,B,S,M)};b.initUiOfCardBorder=function(ba,T,R){R&&(T=["Unified"].concat(T));d=new D;d.setItemModels(T);d.setCustomPainter(function(J,B,S){J=S==Zc.TYPE_SIMPLE?c.get("cardBorderSimple",
"\u7b80\u6613"):S==Zc.TYPE_MODEL?c.get("cardBorderCustom","\u81ea\u5b9a\u4e49"):S==Zc.TYPE_IMAGE?c.get("cardBorderImage","\u8d34\u56fe"):"Unified"==S?c.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"):"";B.text(J)});d.addSelectedChangedListener(function(J,B,S){(B="Unified"==B?null:B)&&!m[B]&&(m[B]=a.getWidget().getCardBorder());J=b.getEditorCaption(J);S=(B="Unified"==S?null:S)?m[B]:null;B&&!S&&(S=Zc.createInstance(B),m[B]=S);B=new vc;B.setMethod(a.getWidget().getCardBorder,a.getWidget().setCardBorder);
B.setValue(S);b.performAction(B,J)});h=new O;h.setCustomPainter(E);h.addActionListener(function(J){var B=a.getWidget().isInstanceOf(F.WidgetSuperType_CardSimilary);J=B?a.getWidget().getDisplayName():c.get("unifiedInPage","\u9875\u9762\u7edf\u4e00");var S=a.getWidget().getCardBorder();if(S.getType()==Zc.TYPE_MODEL){var M=t.getPageBackgroundColor();B=B?a.getWidget().getBackgroundColor():null;B||(B=a.getWidget().isOpacityRequired(),B=t.getCardBackgroundColor(B));var ua=new Jd;ua.setContextStyle(M,B);
ua.setCardLookModel(S.getCardLook());ua.show(J,function(ka){var hb=b.getEditorCaption(d),xb=new vc;xb.setMethod(S.getCardLook,S.setCardLook);xb.setValue(ka);b.performAction(xb,hb)})}else S.getType()==Zc.TYPE_IMAGE&&(ua=new Kd,ua.setImage(S.getImage(),S.getFixedEdges()),ua.show(J,function(ka,hb){var xb=b.getEditorCaption(d),tb=new vc;tb.setMethod(function(){return[S.getImage(),S.getFixedEdges()]},function(jc){S.setDefinition(jc[0],jc[1])});tb.setValue([ka,hb]);b.performAction(tb,xb)}))});ba.append(b.createJqLineItem(c.get("cardBorder",
"\u5361\u7247\u8fb9\u6846"),d));ba.append(b.createJqLineItem(c.get("cardBorderSetup","\u8fb9\u6846\u81ea\u5b9a\u4e49"),h));n()};b.cardBorderDoPropertyChanged=function(ba){ba!=F.KEY_PAGE_UNIFIED_CARD&&ba!=F.KEY_CARD_SURFACE||n()}}function Jc(){var a=this,b=this.protectedMethod,d,h=function(){var E=a.getWidget();d.setModel(E.getCardTopBarCommon());var ja=!0;E.isInstanceOf(F.WidgetSuperType_CardSimilary)&&(ja=!E.isBareSurface());b.updateEditorVisible(d,ja)},m=function(E){var ja=b.getEditorCaption(d),
ba=new vc;ba.setMethod(a.getWidget().getCardTopBarCommon,a.getWidget().setCardTopBarCommon);ba.setValue(E);b.performAction(ba,ja)},n=function(E){return a.getWidget().isInstanceOf(F.WidgetSuperType_CardSimilary)?E?c.get("custom","\u81ea\u5b9a\u4e49"):c.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"):E?c.get("refHasSet","\u5df2\u8bbe\u7f6e"):""};b.initUiOfCardTopBarCommon=function(E){var ja=a.getWidget();if(ja.isInstanceOf(F.WidgetSuperType_CardSimilary)){var ba=c.get("cardIcon","\u6807\u9898\u680f\u56fe\u7247");
var T=Ld}else ba=c.get("cardTopBar","\u5361\u7247\u6807\u9898\u680f"),T=Md;d=new O;d.setClearable(!0);d.addActionListener(function(R){R=new T;R.setWidget(ja);R.show(function(J){m(J)})});d.addClearListener(function(R){m(null)});d.setCustomPainter(n);ba=b.createJqLineItem(ba,d);E.append(ba);h()};b.cardTopBarCommonDoPropertyChanged=function(E){E!=F.KEY_PAGE_UNIFIED_CARD&&E!=F.KEY_CARD_TITLE&&E!=F.KEY_CARD_SURFACE||h()}}function Ic(){function a(Ta,Bb,Yb){this.getWidth=function(){return Ta};this.getHeight=
function(){return Bb};this.isMatched=function(Zb,sc){return Ta==Zb&&Bb==sc};this.toString=function(){return Ta+"*"+Bb+" "+Yb}}Dc.call(this);yc.call(this);Kc.call(this);Jc.call(this);var b=this,d=this.protectedMethod,h,m,n,E,ja,ba,T,R,J,B,S,M;this.protectedInitUi=function(Ta){m=new D;m.setItemModels(Lb());m.addSelectedChangedListener(xb);n=new K;n.setConstraint(200,65535,10);n.addValueChangedListener(tb,!0);E=new K;E.setConstraint(200,65535,10);E.addValueChangedListener(tb,!0);ja=new U(c.get("mobileDesiredTips",
"\u4ee5\u4e0a\u5c3a\u5bf8\u81ea\u52a8\u8bc6\u522b\u4e3a\u624b\u673a\u6a21\u5f0f"));ja.getJqUi().css({"text-align":"right",padding:"8px"});var Bb=d.createJqGroupTitle(c.get("pageSizeGroupTitle","\u8bbe\u8ba1\u65f6\u9875\u9762\u5927\u5c0f\uff1a")),Yb=d.createJqLineItem(c.get("size","\u5c3a\u5bf8"),m),Zb=d.createJqLineItem(c.get("sizeWidth","\u5bbd\u5ea6"),n),sc=d.createJqLineItem(c.get("sizeHeight","\u9ad8\u5ea6"),E);Ta.append(Bb);Ta.append(Yb);Ta.append(Zb);Ta.append(sc);Ta.append(ja.getJqUi());setTimeout(md,
0);Ta.append(d.createJqCap());d.backgroundInitUi(Ta);J=new C;J.addBlurListener(Cc);J.addAcceptableListener(Rc);Bb=d.createJqLineItem(c.get("pageWatermark","\u6c34\u5370"),J);Ta.append(Bb);d.updateEditorVisible(J,!1);nd();Ta.append(d.createJqCap());Ta.append(d.createJqCap());Ta.append(ua(c.get("justForDesktop","\u4ee5\u4e0b\u4ec5\u5728\u684c\u9762\u7aef\u751f\u6548")));Bb=d.createJqGroupTitle(c.get("exhibitionModeGroupTitle","\u5c55\u793a\u6a21\u5f0f\uff1a"));ba=new Ca;ba.addSelectionChangedListener(Wc);
Yb=ba.createJqUi();Ta.append(Bb);Ta.append(Yb);ba.setSelection(b.getWidget().getExhibitionMode());Ta.append(d.createJqCap());ka(Ta);Ta.append(d.createJqCap());Ta.append(d.createJqCap());Ta.append(ua(c.get("justForMobile","\u4ee5\u4e0b\u4ec5\u5728\u79fb\u52a8\u7aef\u751f\u6548")));B=$("<div>");hb(Ta,B);Ta.append(d.createJqCap());B.appendTo(Ta);Ta.append(d.createJqCap());Ta.append(d.createJqCap());Ta.append(d.createJqCap())};var ua=function(Ta){Ta="--- @ ---".replace("@",Ta);return d.createJqGroupTitle(Ta,
U.ALIGN_CENTER)},ka=function(Ta){T=new D;T.setItemModels([F.Skin_White,F.Skin_DarkBlue,F.Skin_Gold,F.Skin_Cyan,F.Skin_Custom]);T.setCustomPainter(function(Bb,Yb,Zb){Bb=Zb==F.Skin_Custom?c.get("custom","\u81ea\u5b9a\u4e49"):Zb==F.Skin_Cyan?c.get("skinCyan","\u9759\u8c27\u9752"):Zb==F.Skin_Gold?c.get("skinGold","\u571f\u8c6a\u91d1"):Zb==F.Skin_DarkBlue?c.get("skinDarkBllue","\u6df1\u9083\u84dd"):Zb==F.Skin_White?c.get("skinWhite","\u6de1\u96c5\u767d"):"";Yb.text(Bb)});T.addSelectedChangedListener(pc);
R=new O;R.setCustomPainter(mb);R.addActionListener(Fc);Ta.append(d.createJqGroupTitle(c.get("skinGroupTitle","\u5916\u89c2\uff1a")));Ta.append(d.createJqLineItem(c.get("skin","\u5916\u89c2\u98ce\u683c"),T));Ta.append(d.createJqLineItem(c.get("skinCustom","\u5916\u89c2\u81ea\u5b9a\u4e49"),R));d.initUiOfCardBorder(Ta,[Zc.TYPE_SIMPLE,Zc.TYPE_MODEL,Zc.TYPE_IMAGE]);d.initUiOfCardTopBarCommon(Ta);ld()},hb=function(Ta,Bb){Bb.append(d.createJqGroupTitle(c.get("mobileLayoutConverterGroupTitle","\u7ec4\u4ef6\u5728\u79fb\u52a8\u7aef\u81ea\u9002\u5e94\u5e03\u5c40\uff1a")));
var Yb=function(sc,Mc){var Nc=new Y;Nc.setUserObject(sc);Nc.setText(Mc);sc=Nc.getJqUi();sc.css({position:"relative",height:"23px","margin-left":"8px"});Bb.append(sc);return Nc},Zb=Yb(F.MobileLayoutConverter_ByPosition,c.get("mobileLayoutConverterByPosition","\u6309\u4f4d\u7f6e"));Yb=Yb(F.MobileLayoutConverter_InOrder,c.get("mobileLayoutConverterInOrder","\u6309\u5927\u7eb2\u4e2d\u7684\u987a\u5e8f"));S=new fa;S.addElement(Zb);S.addElement(Yb);S.addChangedListener(function(sc,Mc){if(Mc){sc=sc.getUserObject();
Mc=c.get("mobileLayoutConverter","\u7ec4\u4ef6\u5728\u79fb\u52a8\u7aef\u81ea\u9002\u5e94\u5e03\u5c40");var Nc=b.getWidget(),Vc=new vc;Vc.setMethod(Nc.getMobileLayoutConverter,Nc.setMobileLayoutConverter);Vc.setValue(sc);d.performAction(Vc,Mc)}});M=new D;M.setItemModels([!1,!0]);M.setCustomPainter(tc);M.addSelectedChangedListener(jc);Zb=d.createJqGroupTitle(c.get("mobileSkinGroupTitle","\u79fb\u52a8\u7aef\u5916\u89c2\uff1a"));Yb=d.createJqLineItem(c.get("skin","\u5916\u89c2\u98ce\u683c"),M);Ta.append(Zb);
Ta.append(Yb);Nb();M.setSelected(b.getWidget().isMobileSkinActive())};this.protectedDoPropertyChanged=function(Ta){Ta==F.KEY_PAGE_SIZE?md():Ta==F.KEY_PAGE_EXHIBITION_MODE?ba.setSelection(b.getWidget().getExhibitionMode()):Ta==F.KEY_PAGE_SKIN?ld():Ta==F.KEY_PAGE_WATERMARK?nd():Ta==F.KEY_PAGE_MOBILE_LAYOUT_CONVERTER?Nb():Ta==F.KEY_PAGE_MOBILE_SKIN_ACTIVE?M.setSelected(b.getWidget().isMobileSkinActive()):(d.backgroundDoPropertyChanged(Ta),d.cardBorderDoPropertyChanged(Ta),d.cardTopBarCommonDoPropertyChanged(Ta))};
var xb=function(Ta,Bb,Yb){Ta=d.getEditorCaption(Ta);if(Yb!=a.CUSTOM){Bb=Yb.getWidth();Yb=Yb.getHeight();var Zb=new xd;Zb.setValue(b.getWidget(),Bb,Yb);d.performAction(Zb,Ta)}},tb=function(Ta,Bb,Yb){Ta=d.getEditorCaption(Ta);Bb=n.getValue();Yb=E.getValue();var Zb=new xd;Zb.setValue(b.getWidget(),Bb,Yb);d.performAction(Zb,Ta)},jc=function(Ta,Bb,Yb){Ta=d.getEditorCaption(Ta);Bb=b.getWidget();var Zb=new vc;Zb.setMethod(Bb.isMobileSkinActive,Bb.setMobileSkinActive);Zb.setValue(Yb);d.performAction(Zb,Ta)},
pc=function(Ta,Bb,Yb){Ta=d.getEditorCaption(Ta);Bb=Yb==F.Skin_Custom?d.getGlobal().getDashboardModel().getCurrentCosmeticModel():null;hd(Yb,Bb,Ta)},Fc=function(Ta){Ta=new Nd;Ta.setCosmeticModel(d.getGlobal().getDashboardModel().getCurrentCosmeticModel().copyToEdit());Ta.show(function(Bb){var Yb=d.getEditorCaption(T);hd(F.Skin_Custom,Bb,Yb)})},Cc=function(Ta){dd()},Rc=function(Ta,Bb){Bb?dd():nd()},Wc=function(Ta){var Bb=c.get("exhibitionMode","\u5c55\u793a\u6a21\u5f0f"),Yb=b.getWidget(),Zb=new vc;
Zb.setMethod(Yb.getExhibitionMode,Yb.setExhibitionMode);Zb.setValue(Ta);d.performAction(Zb,Bb)},hd=function(Ta,Bb,Yb){var Zb=b.getWidget(),sc=new vc;sc.setMethod(function(){return[Zb.getSkin(),Zb.getCustomCosmetic()]},function(Mc){Zb.setSkin(Mc[0],Mc[1])});sc.setValue([Ta,Bb]);d.performAction(sc,Yb)},dd=function(){var Ta=b.getWidget(),Bb=$.trim(J.getText()),Yb=$.trim(Ta.getWatermark());if(Bb!=Yb){Yb=d.getEditorCaption(J);var Zb=new vc;Zb.setMethod(Ta.getWatermark,Ta.setWatermark);Zb.setValue(Bb);
d.performAction(Zb,Yb)}},md=function(){var Ta=b.getWidget().getWidth(),Bb=b.getWidget().getHeight();ja.getJqUi().css("display",b.getWidget().isMobileDesired()?"":"none");B.css("display",b.getWidget().isMobileDesired()?"none":"");n.setValue(Ta);E.setValue(Bb);for(var Yb=Lb(),Zb=0;Zb<Yb.length;Zb++){var sc=Yb[Zb];if(sc!=a.CUSTOM&&sc.isMatched(Ta,Bb)){m.setSelected(sc);return}}m.setSelected(a.CUSTOM)},ld=function(){var Ta=b.getWidget().getSkin();Ta=Ta?Ta:F.Skin_White;T.setSelected(Ta);Ta=Ta==F.Skin_Custom;
R.setModel(b.getWidget().getCustomCosmetic());d.updateEditorVisible(R,Ta)},nd=function(){J.setText(b.getWidget().getWatermark())},Nb=function(){S.toCheckTheElement(function(Ta){return Ta.getUserObject()==b.getWidget().getMobileLayoutConverter()})},tc=function(Ta,Bb,Yb){Ta=Yb?c.get("mobileSkinActive","\u4e0e\u684c\u9762\u7aef\u76f8\u540c"):c.get("mobileSkinUnactive","\u7cfb\u7edf\u9ed8\u8ba4");Bb.text(Ta)},mb=function(Ta){var Bb=R.getJqUi(),Yb=Bb.children(".qing-custom-cosmetic");Yb.remove();if(Ta){Yb=
$("<div>");Yb.addClass("qing-custom-cosmetic");Yb.css("border","1px solid #ccc");var Zb=$("<div>");Zb.css("background-color",Ta.getItems(t.DSB_PAGE)[0].getValue());Zb.appendTo(Yb);var sc=$("<div>");sc.css("background-color",Ta.getItems(t.DSB_CARD)[0].getValue());sc.appendTo(Yb);var Mc=$("<div>");Mc.css("background-color",Ta.getItems(t.DSB_LABEL)[0].getValue());Mc.appendTo(Yb);rb.layoutCtrlWithLRTB(Zb,1,null,"33%",1,1,null);rb.layoutCtrlWithLRTB(sc,"33%","33%",null,1,1,null);rb.layoutCtrlWithLRTB(Mc,
null,1,"33%",1,1,null);rb.layoutCtrlWithLRTB(Yb,0,30,null,4,1,null);Yb.appendTo(Bb)}return""},Lb=function(){h||(h=[a.CUSTOM,new a(800,600,"(4:3)"),new a(1024,768,"(4:3)"),new a(1280,960,"(4:3)"),new a(1280,720,"(16:9)"),new a(1600,900,"(16:9)"),new a(1920,1080,"(16:9)"),new a(1280,800,"(16:10)"),new a(1920,1200,"(16:10)"),new a(360,640,"("+c.get("mobilePhone","\u624b\u673a")+")")]);return h};a.CUSTOM=c.get("custom","\u81ea\u5b9a\u4e49")}function Ca(){var a=new fa;this.addSelectionChangedListener=
function(d){a.addChangedListener(function(h,m){m&&d(h.getUserObject())})};this.setSelection=function(d){a.toCheckTheElement(function(h){return d==h.getUserObject()})};this.createJqUi=function(){var d=c.get("keepRatio","(\u4fdd\u6301\u6bd4\u4f8b)"),h=b(F.ExhibitionMode_Full,c.get("exmodeFull","\u5145\u6ee1"),null,"icon_exmode_full"),m=b(F.ExhibitionMode_Fit,c.get("exmodeFit","\u9002\u5e94"),d,"icon_exmode_fit"),n=b(F.ExhibitionMode_HFull,c.get("exmodeHFull","\u6a2a\u5411\u5145\u6ee1"),d,"icon_exmode_hfull");
d=b(F.ExhibitionMode_Idle,c.get("exmodeIdle","\u4e0d\u7f29\u653e"),d,"icon_exmode_idle");var E=$("<div>");E.addClass("dsb-propertyarea-exmodearea");E.append(h);E.append(m);E.append(n);E.append(d);return E};var b=function(d,h,m,n){var E=new Y;E.setUserObject(d);E.setText(h);a.addElement(E);d=E.getJqUi();d.addClass("dsb-propertyarea-exmodearea-item-radio");h=new U;m&&h.setText(m);m=h.getJqUi();m.addClass("dsb-propertyarea-exmodearea-item-text");h=$("<div>");h.addClass("dsb-propertyarea-exmodearea-item-icon");
aa.background(h,n);n=$("<div>");n.addClass("dsb-propertyarea-exmodearea-item");n.append(d);n.append(m);n.append(h);return n}}function Ea(){Dc.call(this);yc.call(this);var a=this,b=this.protectedMethod,d,h,m;this.protectedInitUi=function(ba){n(ba);ba.append(b.createJqCap());b.backgroundInitUi(ba);E(ba)};var n=function(ba){d=new K;d.addValueChangedListener(function(B,S,M){B=b.getEditorCaption(B);S=d.getValue();M=new od;M.setValue(a.getWidget(),0,0,a.getWidget().getWidth(),S);b.performAction(M,B)},!0);
h=new ia;h.addCheckedListener(function(B,S){if(S){S=b.getEditorCaption(B);var M=new vc;M.setMethod(a.getWidget().isFrozen,a.getWidget().setFrozen);M.setValue(B.isChecked());b.performAction(M,S)}});var T=b.createJqGroupTitle(c.get("positionGroupTitle","\u4f4d\u7f6e\u3001\u5927\u5c0f\uff1a")),R=b.createJqLineItem(c.get("sizeHeight","\u9ad8\u5ea6"),d),J=b.createJqLineItem(c.get("scrollingFrozen","\u6eda\u52a8\u65f6\u51bb\u7ed3"),h);ba.append(T);ba.append(R);ba.append(J);ba=new G;ba.setTipsText(c.get("titleBarScrollingFrozenHelp",
"\u5f00\u542f\u201c\u6eda\u52a8\u65f6\u51bb\u7ed3\u201d\u65f6\uff0c\u5f53\u9875\u9762\u7eb5\u5411\u6eda\u52a8\uff0c\u6807\u9898\u680f\u603b\u662f\u56fa\u5b9a\u5728\u9875\u9762\u53ef\u89c6\u533a\u57df\u9876\u90e8\u3002\r\n\u8be5\u5c5e\u6027\u5728Chrome56+\u7b49\u6d4f\u89c8\u5668\u4e0a\u652f\u6301\uff0cIE\u7b49\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u3002"));ba.getJqUi().appendTo(J);rb.layoutCtrlWithLRTB(ba.getJqUi(),null,4,null,4,null,null);ja();h.setChecked(a.getWidget().isFrozen())},E=function(ba){m=
new O;m.setCustomPainter(function(J){return J?c.get("custom","\u81ea\u5b9a\u4e49"):c.get("unifiedInPage","\u9875\u9762\u7edf\u4e00")});m.addActionListener(function(J){(new Od).showDialog(a.getWidget(),function(B){var S=b.getEditorCaption(m),M=new vc;M.setMethod(a.getWidget().getSurfaceModel,a.getWidget().setSurfaceModel);M.setValue(B);b.performAction(M,S)})});var T=b.createJqGroupTitle(c.get("skinGroupTitle","\u5916\u89c2\uff1a")),R=b.createJqLineItem(c.get("titleBarSurface","\u6837\u5f0f"),m);ba.append(b.createJqCap());
ba.append(T);ba.append(R);m.setModel(a.getWidget().getSurfaceModel())};this.protectedDoPropertyChanged=function(ba){ba==F.KEY_RECT?ja():ba==va.KEY_FROZEN?h.setChecked(a.getWidget().isFrozen()):ba==va.KEY_SURFACE?m.setModel(a.getWidget().getSurfaceModel()):b.backgroundDoPropertyChanged(ba)};var ja=function(){var ba=a.getWidget(),T=L.getInstance(ba.getWidgetTypeName()).getMinSize()[1],R=ba.getParent().getClientHeight();d.setConstraint(T,Math.min(200,Math.max(T,R>>1)),1);d.setValue(ba.getHeight())}}
function Ra(){Dc.call(this);var a=this,b=this.protectedMethod,d,h,m,n;this.protectedInitUi=function(T){d=new K;h=new K;m=new K;n=new K;ja();d.addValueChangedListener(ba,!0);h.addValueChangedListener(ba,!0);m.addValueChangedListener(ba,!0);n.addValueChangedListener(ba,!0);var R=b.createJqGroupTitle(c.get("positionGroupTitle","\u4f4d\u7f6e\u3001\u5927\u5c0f\uff1a")),J=b.createJqLineItem(c.get("positionX","X"),d),B=b.createJqLineItem(c.get("positionY","Y"),h),S=b.createJqLineItem(c.get("sizeWidth","\u5bbd\u5ea6"),
m),M=b.createJqLineItem(c.get("sizeHeight","\u9ad8\u5ea6"),n);T.append(R);T.append(J);T.append(B);T.append(b.createJqCap());T.append(S);T.append(M);E();a.protectedInitCustomUi(T)};this.protectedInitCustomUi=function(T){};this.protectedDoPropertyChanged=function(T){T==F.KEY_RECT?ja():a.protectedDoCustomPropertyChanged(T)};this.protectedDoCustomPropertyChanged=function(T){};var E=function(){var T=a.getWidget(),R=L.getInstance(T.getWidgetTypeName()),J=!T.isWidthLockedAlways(R);T=!T.isHeightLockedAlways(R);
b.updateEditorEnabled(m,J);b.updateEditorEnabled(n,T)},ja=function(){var T=a.getWidget(),R=T.getX(),J=T.getY(),B=T.getWidth(),S=T.getHeight(),M=T.getParent(),ua=M.getClientWidth();M=M.getClientHeight();var ka=L.getInstance(T.getWidgetTypeName());T=ka.getMinSize()[0];ka=ka.getMinSize()[1];d.setConstraint(0,Math.max(0,ua-B),1);h.setConstraint(0,Math.max(0,M-S),1);m.setConstraint(T,Math.max(T,ua-R),1);n.setConstraint(ka,Math.max(ka,M-J),1);d.setValue(R);h.setValue(J);m.setValue(B);n.setValue(S)},ba=
function(T,R,J){T=b.getEditorCaption(T);R=d.getValue();J=h.getValue();var B=m.getValue(),S=n.getValue(),M=new od;M.setValue(a.getWidget(),R,J,B,S);b.performAction(M,T)};b.syncSizeCtrlEnabled=E}function Fa(){var a=this,b=this.protectedMethod,d,h,m,n,E=function(ka,hb,xb){ka="left"==xb?c.get("alignLeft","\u5de6\u5bf9\u9f50"):"right"==xb?c.get("alignRight","\u53f3\u5bf9\u9f50"):c.get("alignCenter","\u5c45\u4e2d");hb.text(ka)},ja=function(){d.setSelected(a.getWidget().getStyle().getFontName())},ba=function(){h.setValue(a.getWidget().getStyle().getFontSize())},
T=function(){m.setColor(a.getWidget().getStyle().getColor())},R=function(){n.setSelected(a.getWidget().getStyle().getAlign())},J=function(ka,hb,xb){ua(ka,"setAlign",xb)},B=function(ka){var hb=ka.getColor();ua(ka,"setColor",hb)},S=function(ka,hb){ua(ka,"setFontName",hb)},M=function(ka,hb,xb){hb=h.getValue();ua(ka,"setFontSize",hb)},ua=function(ka,hb,xb){ka=b.getEditorCaption(ka);var tb=new Pd;tb.setContext(a.getWidget().getStyle,a.getWidget().setStyle,hb,xb);b.performAction(tb,ka)};b.styleInitCustomUi=
function(ka){d=new Ya;d.setDefaultDisplay(c.get("labelFontNameDefault","\u7cfb\u7edf\u9ed8\u8ba4"));d.setSelectionListener(S);h=new K;h.setConstraint(6,999,1);h.addValueChangedListener(M,!0);m=new Ga;m.setColorPool(Z.getColorPool7());m.setDisplayForNull(c.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"));m.setColorSelectedListener(B);n=new D;n.setItemModels(["left","center","right"]);n.setCustomPainter(E);n.addSelectedChangedListener(J);var hb=b.createJqGroupTitle(c.get("labelSurfaceGroupTitle","\u5916\u89c2\uff1a")),
xb=b.createJqLineItem(c.get("labelFontName","\u5b57\u4f53"),d),tb=b.createJqLineItem(c.get("labelFontSize","\u5b57\u53f7"),h),jc=b.createJqLineItem(c.get("labelColor","\u989c\u8272"),m),pc=b.createJqLineItem(c.get("labelTextAlign","\u5bf9\u9f50"),n);ka.append(b.createJqCap());ka.append(hb);ka.append(xb);ka.append(tb);ka.append(jc);ka.append(pc);ja();ba();T();R()};b.styleDoCustomPropertyChanged=function(ka){ka==F.KEY_STYLE&&(ja(),ba(),T(),R())}}function Xa(){var a=this,b=this.protectedMethod,d,h,m=
function(R){var J=F.AffectedType_BindField|F.AffectedType_Param;return R?T(R,J):""},n=function(R){var J=a.protectedGetAffectedTargetSupportedTypes();(new yd).showDialog(b.getGlobal(),a.getWidget(),function(B){B=J[B.getWidgetTypeName()];return 0<=B?B:-1},function(B){if(null!==B){var S=b.getEditorCaption(R);E(B,S)}})};this.protectedGetAffectedTargetSupportedTypes=function(){throw Error("Implement");};var E=function(R,J){var B=new vc;B.setMethod(a.getWidget().getAffectedTargets,a.getWidget().setAffectedTargets);
B.setValue(R);b.performAction(B,J)},ja=function(R){var J=F.AffectedType_Tab;return R?T(R,J):""},ba=function(R){(new Qd).showDialog(a.getWidget(),function(J){if(null!==J){var B=b.getEditorCaption(R);E(J,B)}})},T=function(R,J){return Xa.affectedTargetsToShortDisplay(b.getGlobal().getDashboardModel(),R,J)};this.protectedMethod.filterSimilaryPropertyChanged=function(R){R==F.KEY_AFFECTED_TARGETS&&(d&&d.setModel(a.getWidget().getAffectedTargets()),h&&h.setModel(a.getWidget().getAffectedTargets()))};this.protectedMethod.createAffectedTargetEditorItem=
function(){d=new O;d.addActionListener(n);d.setCustomPainter(m);d&&d.setModel(a.getWidget().getAffectedTargets());return b.createJqLineItem(c.get("affectedTarget","\u4f5c\u7528\u4e8e"),d)};this.protectedMethod.createTabSwitchEditorItem=function(){h=new O;h.addActionListener(ba);h.setCustomPainter(ja);h&&h.setModel(a.getWidget().getAffectedTargets());return b.createJqLineItem(c.get("tabSwitch","\u9875\u7b7e\u5207\u6362"),h)}}function eb(){var a=this,b=this.protectedMethod,d,h,m,n=function(J){return J?
J.toShortDisplay(b.getGlobal().getDashboardModel()):""},E=function(J){var B=a.getWidget();(new qd).showDialog(b.getGlobal(),B,function(S,M,ua){if(S){S=[];var ka=!1,hb={},xb={};M.toJsonObject(hb);B.getFilterSource().toJsonObject(xb);JSON.stringify(hb)!=JSON.stringify(xb)&&(ka=new vc,ka.setMethod(B.getFilterSource,B.setFilterSource),ka.setValue(M),S.push(ka),ka=!0);B.isIncludeItemAllSupported()&&ua!=B.isIncludedItemAll()&&(M=new vc,M.setMethod(B.isIncludedItemAll,B.setIncludedItemAll),M.setValue(ua),
S.push(M));ka&&(ua=new vc,ua.setMethod(B.getDefaultSelected,B.setDefaultSelected),B.isMultiSelectable()?ua.setValue(cd.createInstance(cd.TYPE_ByAppointed)):ua.setValue(cd.createInstance(cd.TYPE_ByIndex)),S.push(ua));0<S.length&&(ua=b.getEditorCaption(J),b.performAction(S,ua))}})},ja=function(J,B,S){J=!0===S?c.get("multiSelectableYes","\u591a\u9009"):!1===S?c.get("multiSelectableNo","\u5355\u9009"):"";B.text(J)},ba=function(J,B,S){var M=new vc;M.setMethod(a.getWidget().isMultiSelectable,a.getWidget().setMultiSelectable);
M.setValue(S);B=[M];S=!S;M=(M=a.getWidget().getDefaultSelected())?M.isSingleSelectableFitting():!1;S&&!M&&(M=new vc,M.setMethod(a.getWidget().getDefaultSelected,a.getWidget().setDefaultSelected),M.setValue(cd.createInstance(cd.TYPE_ByIndex)),B.push(M));J=b.getEditorCaption(J);b.performAction(B,J)},T=function(J){return J?J.toShortDisplay():""},R=function(J){var B=a.getWidget();(new Rd).showDialog(b.getGlobal(),B,function(S){if(S){var M=new vc;M.setMethod(B.getDefaultSelected,B.setDefaultSelected);
M.setValue(S);S=b.getEditorCaption(J);b.performAction(M,S)}})};this.protectedMethod.discreteItemFilterPropertyChanged=function(J){J==F.KEY_FILTER_SOURCE?d.setModel(a.getWidget().getFilterSource()):J==F.KEY_DISCRETE_MULTISELECTABLE?h&&h.setSelected(a.getWidget().isMultiSelectable()):J==F.KEY_FILTER_DEFAULT_SELECTED&&m&&m.setModel(a.getWidget().getDefaultSelected())};this.protectedMethod.createSourceEditorItem=function(){d=new O;d.addActionListener(E);d.setCustomPainter(n);d.setModel(a.getWidget().getFilterSource());
return b.createJqLineItem(c.get("filterPreparedValue","\u5907\u9009\u503c"),d)};this.protectedMethod.getAffectedTargetSupportedTypes=function(){var J={};J[F.WidgetType_Square]=0;J[F.WidgetType_Longer]=1;J[F.WidgetType_QingReport]=2;J[F.WidgetType_ExtReport]=3;J[F.WidgetType_Iframe]=4;J[F.WidgetType_Combobox]=5;J[F.WidgetType_ButtonGroup]=6;J[F.WidgetType_F7]=7;J[F.WidgetType_Label]=8;J[F.WidgetType_Rich]=9;return J};this.protectedMethod.createMultiSelectableEditorItem=function(){h=new D;h.setItemModels([!1,
!0]);h.setCustomPainter(ja);h.addSelectedChangedListener(ba);h&&h.setSelected(a.getWidget().isMultiSelectable());return b.createJqLineItem(c.get("multiSelectable","\u9009\u9879\u6a21\u5f0f"),h)};this.protectedMethod.createDefaultSelectedEditorItem=function(){m=new O;m.addActionListener(R);m.setCustomPainter(T);m&&m.setModel(a.getWidget().getDefaultSelected());return b.createJqLineItem(c.get("defaultSelected","\u9ed8\u8ba4\u9009\u4e2d\u9879"),m)}}function w(){var a=this,b=this.protectedMethod,d;this.protectedMethod.fontSizeEnhancedPropertyChanged=
function(h){h==F.KEY_FONT_SIZE_ENHANCED&&d&&d.setSelected(a.getWidget().getFontSizeEnhanced())};this.protectedMethod.createFontSizeEnhancedEditorItem=function(){d=new D;d.setItemModels([0,1,2,3,4,5]);d.setCustomPainter(function(h,m,n){m.text(n||0===n?100+10*n+"%":"")});d.addSelectedChangedListener(function(h,m,n){m=new vc;m.setMethod(a.getWidget().getFontSizeEnhanced,a.getWidget().setFontSizeEnhanced);m.setValue(n);h=b.getEditorCaption(h);b.performAction(m,h)});d&&d.setSelected(a.getWidget().getFontSizeEnhanced());
return b.createJqLineItem(c.get("fontSizeScaling","\u6587\u5b57\u7f29\u653e"),d)};this.protectedMethod.updateFontSizeEditorVisible=function(h){b.updateEditorVisible(d,h)}}function Ka(){var a=this,b=this.protectedMethod,d,h,m,n=function(){if(d){var M=a.getWidget().getFrontLabel();d.setModel(M?M:"")}},E=function(){if(h){var M=a.getWidget().getFrontLabelPosition();h.setSelected(M)}},ja=function(){if(m){var M=a.getWidget().getFrontLabelLength();m.setValue(M?M:0)}},ba=function(){if(m){var M="left"==a.getWidget().getFrontLabelPosition();
b.updateEditorVisible(m,M)}},T=function(M,ua,ka){M=b.getEditorCaption(M);ua=new vc;ua.setMethod(a.getWidget().getFrontLabelPosition,a.getWidget().setFrontLabelPosition);ua.setValue(ka);var hb=$.trim(a.getWidget().getFrontLabel());B(hb,ka,ua,M)||b.performAction(ua,M)},R=function(M,ua,ka){M=b.getEditorCaption(M);ua=m.getValue();ka=new vc;ka.setMethod(a.getWidget().getFrontLabelLength,a.getWidget().setFrontLabelLength);ka.setValue(ua);b.performAction(ka,M)},J=function(M){var ua=b.getEditorCaption(d),
ka=new vc;ka.setMethod(a.getWidget().getFrontLabel,a.getWidget().setFrontLabel);ka.setValue(M);var hb=$.trim(a.getWidget().getFrontLabelPosition());B(M,hb,ka,ua)||b.performAction(ka,ua)},B=function(M,ua,ka,hb){var xb=a.getWidget(),tb=L.getInstance(xb.getWidgetTypeName());return xb.isHeightLockedAlways(tb)?(M=tb.getSuggestSize()[1]+(M&&"left"!=ua?25:0),ua=new od,ua.setValue(xb,xb.getX(),xb.getY(),xb.getWidth(),M),b.performAction([ua,ka],hb),!0):!1},S=function(M,ua,ka){M="left"==ka?c.get("frontLabelPositionLeft",
"\u5de6\u4fa7"):c.get("frontLabelPositionTop","\u4e0a\u65b9");ua.text(M)};this.protectedMethod.withLabelCtrlPropertyChanged=function(M){M==F.KEY_FILTER_FRONT_LABEL?n():M==F.KEY_FILTER_FRONT_LABEL_POSITION?(E(),ba()):M==F.KEY_FILTER_FRONT_LABEL_LENGTH&&ja()};this.protectedMethod.createFrontLabelEditorItem=function(){d=b.createTextEditor(null,null,J,!0,40);n();return b.createJqLineItem(c.get("frontLabelText","\u6807\u7b7e\u6587\u5b57"),d)};this.protectedMethod.createFrontLabelPositionEditorItem=function(){void 0===
a.getWidget().getFrontLabelPosition()&&a.getWidget().setFrontLabelPosition("top");h=new D;h.setItemModels(["left","top"]);h.setCustomPainter(S);h.addSelectedChangedListener(T);E();return b.createJqLineItem(c.get("frontLabelPosition","\u6807\u7b7e\u4f4d\u7f6e"),h)};this.protectedMethod.createFrontLabelLengthEditorItem=function(){void 0===a.getWidget().getFrontLabelLength()&&a.getWidget().setFrontLabelLength(72);m=new K;m.setConstraint(0,9999,1);m.addValueChangedListener(R,!0);var M=b.createJqLineItem(c.get("frontLabelLength",
"\u6807\u7b7e\u5bbd\u5ea6"),m);ja();ba();return M}}function Ab(){var a=this,b=this.protectedMethod,d,h,m=function(){0<a.getWidget().getRefreshTiming()?d.setChecked(!0):d.setChecked(!1)},n=function(){var R=a.getWidget().getRefreshTiming();0<R?(h.setValue(R),b.updateEditorEnabled(h,!0)):(h.setValue(0),b.updateEditorEnabled(h,!1))},E=600,ja=function(R,J){J&&(R.isChecked()?J=E:(E=h.getValue(),J=-1),R=b.getEditorCaption(R),T(J,R))},ba=function(R,J,B){R=b.getEditorCaption(R);J=h.getValue();T(J,R)},T=function(R,
J){var B=new vc;B.setMethod(a.getWidget().getRefreshTiming,a.getWidget().setRefreshTiming);B.setValue(R);b.performAction(B,J)};this.protectedMethod.autoRefreshablePropertyChanged=function(R){R==F.KEY_REFRESH_TIMING&&(m(),n())};this.protectedMethod.createRefreshTimingSwitchEditorItem=function(){d=new ia;d.addCheckedListener(ja);var R=b.createJqLineItem(c.get("timingSwitch","\u542f\u7528"),d);m();return R};this.protectedMethod.createRefreshTimingValueEditorItem=function(){h=new K;h.setConstraint(10,
999999,1);h.addValueChangedListener(ba,!0);var R=b.createJqLineItem(c.get("timingValue","\u95f4\u9694(\u79d2)"),h);n();return R}}function Ib(){Kc.call(this);Jc.call(this);var a=this,b=this.protectedMethod,d,h,m,n,E,ja=function(){var R=a.getWidget(),J=R.isBareSurface(),B=R.isBareSurfacePassively(),S=R.getCardSurfaceMode();d.setSelected(B?db.Surface_Bare:S);d.getJqUi().parent().attr("title",B?c.get("cardSurfaceModeNonePrompt","\u7ec4\u4ef6\u5728\u5361\u7247\u5bb9\u5668\u4e2d\uff0c\u672c\u8eab\u6ca1\u6709\u5361\u7247\u5916\u89c2\u3002"):
null);b.updateEditorEnabled(d,!B);B=S==db.Surface_Custom;J=!J&&B;S=!1;B=R.getBackgroundColor();J&&(R=R.getUsableCardBorder(),S=!(R&&R.getType()==Zc.TYPE_IMAGE),!S&&(B="rgba(255,255,255,0)"));h.setNullableColor(B);b.updateEditorVisible(h,J);b.updateEditorEnabled(h,S)},ba=function(){var R=a.getWidget(),J=R.isBareSurface(),B=R.getCardTitle(),S=B?!0:!1;m.setModel(S?B:"");b.updateEditorVisible(m,!J);B=R.getTitleFontName()||R.getTitleFontSize()||R.getTitleColor()?!0:!1;n.setModel(B?!0:null);b.updateEditorVisible(n,
!J&&S);E.setModel(R.getCardDescription())},T=function(R,J,B,S){var M=a.getWidget();R=b.getEditorCaption(R);var ua=new vc;ua.setMethod(function(){var ka=M.getTitleFontName(),hb=M.getTitleFontSize(),xb=M.getTitleColor();return[ka,hb,xb]},function(ka){M.setTitleStyle(ka[0],ka[1],ka[2])});ua.setValue([J,B,S]);b.performAction(ua,R)};b.cardSimilaryPropertyChanged=function(R){R==F.KEY_CARD_TITLE?ba():R==F.KEY_CARD_SURFACE&&(ja(),ba());b.cardBorderDoPropertyChanged(R);b.cardTopBarCommonDoPropertyChanged(R)};
b.initCardTopBarEditorItems=function(R){var J=a.getWidget();m=b.createTextEditor(J.getCardTitle,J.setCardTitle,null,!0,40);n=new O;n.setClearable(!0);n.addActionListener(function(ka){var hb=new Sd;hb.setWidget(J);hb.show(function(xb,tb,jc){T(ka,xb,tb,jc)})});n.addClearListener(function(ka){T(ka,null,null,null)});n.setCustomPainter(function(ka){return ka?c.get("custom","\u81ea\u5b9a\u4e49"):c.get("unifiedInPage","\u9875\u9762\u7edf\u4e00")});E=b.createTextAreaEditor(J.getCardDescription,J.setCardDescription);
var B=b.createJqGroupTitle(c.get("cardGroupTitle","\u5361\u7247\u6807\u9898\u680f\uff1a")),S=b.createJqLineItem(c.get("cardTitle","\u6807\u9898\u6587\u5b57"),m),M=b.createJqLineItem(c.get("cardTitleStyle","\u6807\u9898\u6837\u5f0f"),n),ua=b.createJqLineItem(c.get("cardDescription","\u5361\u7247\u8bf4\u660e"),E);R.append(b.createJqCap());R.append(B);R.append(S);R.append(M);b.initUiOfCardTopBarCommon(R);R.append(ua);ba()};b.initCardSurfaceEditorItems=function(R){d=new D;d.setItemModels([db.Surface_Unified,
db.Surface_Bare,db.Surface_Custom]);d.setCustomPainter(function(M,ua,ka){M=ka==db.Surface_Unified?c.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"):ka==db.Surface_Bare?c.get("cardSurfaceModeNone","\u65e0"):ka==db.Surface_Custom?c.get("custom","\u81ea\u5b9a\u4e49"):"";ua.text(M)});d.addSelectedChangedListener(function(M,ua,ka){M=b.getEditorCaption(M);ua=new vc;ua.setMethod(a.getWidget().getCardSurfaceMode,a.getWidget().setCardSurfaceMode);ua.setValue(ka);b.performAction(ua,M)});h=new Va;h.setColorPool(Z.getColorPool7());
h.setDisplayForNull(c.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"));h.setChangedListener(function(M){var ua=b.getEditorCaption(M),ka=new vc;ka.setMethod(a.getWidget().getBackgroundColor,a.getWidget().setBackgroundColor);ka.setValue(M.getNullableColor());b.performAction(ka,ua)});var J=b.createJqGroupTitle(c.get("cardSurfaceGroupTitle","\u5361\u7247\u5916\u89c2\uff1a")),B=b.createJqLineItem(c.get("cardSurfaceMode","\u6574\u4f53\u5916\u89c2"),d),S=b.createJqLineItem(c.get("cardSurfaceBackground",
"\u5361\u7247\u80cc\u666f"),h);R.append(b.createJqCap());R.append(J);R.append(B);R.append(S);b.initUiOfCardBorder(R,[Zc.TYPE_MODEL,Zc.TYPE_IMAGE],!0);ja()}}function cc(){var a=this,b=this.protectedMethod,d,h=function(m){m=a.protectedGetSourceSelector();var n=a.protectedGetShowDesignerMethod(),E=new Aa;E.bindIntegrationImpl(m,n);E.reselecting(b.getGlobal(),a.getWidget(),function(ja){if(ja){var ba=b.getEditorCaption(d),T=new vc;T.setMethod(a.getWidget().getReferenceCustomMap,a.getWidget().setReferenceCustomMap);
T.setValue(ja);b.performAction(T,ba)}})};this.protectedGetSourceSelector=function(){throw Error("Override");};this.protectedGetShowDesignerMethod=function(){throw Error("Override");};this.protectedMethod.createReferenceEditorItem=function(m){d=new O;d.setModel(c.get("refHasSet","\u5df2\u8bbe\u7f6e"));d.addActionListener(h);return b.createJqLineItem(m,d)}}function Ec(){var a=this,b=this.protectedMethod,d,h=function(m){a.protectedGetSourceSelector()(a.getWidget().getReferenceCustomMap(),function(n){if(n){var E=
b.getEditorCaption(d),ja=new vc;ja.setMethod(a.getWidget().getReferenceCustomMap,a.getWidget().setReferenceCustomMap);ja.setValue(n);b.performAction(ja,E)}})};this.protectedGetSourceSelector=function(){throw Error("Override");};this.protectedMethod.createReferenceEditorItem=function(m){d=new O;d.setModel(c.get("refHasSet","\u5df2\u8bbe\u7f6e"));d.addActionListener(h);return b.createJqLineItem(m,d)}}function zc(){var a=this,b=this.protectedMethod,d,h=function(m){a.protectedGetSourceSelector()(a.getWidget().getEncodedModel(),
function(n){if(n){var E=b.getEditorCaption(d),ja=new vc;ja.setMethod(a.getWidget().getEncodedModel,a.getWidget().setEncodedModel);ja.setValue(n);b.performAction(ja,E)}})};this.protectedGetSourceSelector=function(){throw Error("Override");};this.protectedMethod.createReferenceEditorItem=function(m){d=new O;d.setModel(c.get("refHasSet","\u5df2\u8bbe\u7f6e"));d.addActionListener(h);return b.createJqLineItem(m,d)}}function xc(){Ra.call(this);cc.call(this);Ib.call(this);Ab.call(this);Xa.call(this);var a=
this.protectedMethod;this.protectedGetSourceSelector=function(){return v.getWidgetSourceSelector().selectSquare};this.protectedGetShowDesignerMethod=function(){return v.showSquareDesigner};this.protectedInitCustomUi=function(b){var d=a.createJqGroupTitle(c.get("refGroupTitle","\u5f15\u7528\uff1a")),h=a.createReferenceEditorItem(c.get("refSource","\u6765\u6e90"));b.append(a.createJqCap());b.append(d);b.append(h);a.initCardSurfaceEditorItems(b);a.initCardTopBarEditorItems(b);d=a.createJqGroupTitle(c.get("cardGroupRefreshTitle",
"\u5b9a\u65f6\u5237\u65b0\uff1a"));h=a.createRefreshTimingSwitchEditorItem();var m=a.createRefreshTimingValueEditorItem();b.append(a.createJqCap());b.append(d);b.append(h);b.append(m);d=a.createJqGroupTitle(c.get("affectingGroupTitle","\u8054\u52a8\uff1a"));h=a.createAffectedTargetEditorItem();m=a.createTabSwitchEditorItem();b.append(a.createJqCap());b.append(d);b.append(h);b.append(m)};this.protectedDoCustomPropertyChanged=function(b){a.cardSimilaryPropertyChanged(b);a.autoRefreshablePropertyChanged(b);
a.filterSimilaryPropertyChanged(b)};this.protectedGetAffectedTargetSupportedTypes=function(){var b={};b[F.WidgetType_Square]=0;b[F.WidgetType_Longer]=1;b[F.WidgetType_QingReport]=2;b[F.WidgetType_ExtReport]=3;b[F.WidgetType_Iframe]=4;b[F.WidgetType_Label]=5;b[F.WidgetType_Rich]=6;return b}}function Lc(){Ra.call(this);cc.call(this);Ib.call(this);Ab.call(this);var a=this.protectedMethod;this.protectedGetSourceSelector=function(){return v.getWidgetSourceSelector().selectLonger};this.protectedGetShowDesignerMethod=
function(){return v.showLongerDesigner};this.protectedInitCustomUi=function(b){var d=a.createJqGroupTitle(c.get("refGroupTitle","\u5f15\u7528\uff1a")),h=a.createReferenceEditorItem(c.get("refSource","\u6765\u6e90"));b.append(a.createJqCap());b.append(d);b.append(h);a.initCardSurfaceEditorItems(b);a.initCardTopBarEditorItems(b);d=a.createJqGroupTitle(c.get("cardGroupRefreshTitle","\u5b9a\u65f6\u5237\u65b0\uff1a"));h=a.createRefreshTimingSwitchEditorItem();var m=a.createRefreshTimingValueEditorItem();
b.append(a.createJqCap());b.append(d);b.append(h);b.append(m)};this.protectedDoCustomPropertyChanged=function(b){a.cardSimilaryPropertyChanged(b);a.autoRefreshablePropertyChanged(b)}}function Pc(){Ra.call(this);Ec.call(this);Ab.call(this);var a=this,b=this.protectedMethod,d;this.protectedGetSourceSelector=function(){return v.getWidgetSourceSelector().selectQingReport};this.protectedInitCustomUi=function(h){var m=b.createJqGroupTitle(c.get("refGroupTitle","\u5f15\u7528\uff1a")),n=b.createReferenceEditorItem(c.get("refSource",
"\u6765\u6e90"));h.append(b.createJqCap());h.append(m);h.append(n);d=b.createTextEditor(a.getWidget().getCardTitle,a.getWidget().setCardTitle,null,!0,40);m=b.createJqGroupTitle(c.get("cardGroupTitle","\u6807\u9898\u680f\uff1a"));n=b.createJqLineItem(c.get("cardTitle","\u6807\u9898"),d);h.append(b.createJqCap());h.append(m);h.append(n);d.setModel(a.getWidget().getCardTitle());m=b.createJqGroupTitle(c.get("cardGroupRefreshTitle","\u5b9a\u65f6\u5237\u65b0\uff1a"));n=b.createRefreshTimingSwitchEditorItem();
var E=b.createRefreshTimingValueEditorItem();h.append(b.createJqCap());h.append(m);h.append(n);h.append(E)};this.protectedDoCustomPropertyChanged=function(h){h==F.KEY_CARD_TITLE?d.setModel(a.getWidget().getCardTitle()):b.autoRefreshablePropertyChanged(h)}}function Sc(){Ra.call(this);zc.call(this);Ab.call(this);var a=this,b=this.protectedMethod,d;this.protectedGetSourceSelector=function(){return v.getExtReportSourceSelector()};this.protectedInitCustomUi=function(h){var m=b.createJqGroupTitle(c.get("refGroupTitle",
"\u5f15\u7528\uff1a")),n=b.createReferenceEditorItem(c.get("refSource","\u6765\u6e90"));h.append(b.createJqCap());h.append(m);h.append(n);d=b.createTextEditor(a.getWidget().getTitle,a.getWidget().setTitle,null,!0,40);m=b.createJqGroupTitle(c.get("cardGroupTitle","\u6807\u9898\u680f\uff1a"));n=b.createJqLineItem(c.get("cardTitle","\u6807\u9898"),d);h.append(b.createJqCap());h.append(m);h.append(n);d.setModel(a.getWidget().getTitle());m=b.createJqGroupTitle(c.get("cardGroupRefreshTitle","\u5b9a\u65f6\u5237\u65b0\uff1a"));
n=b.createRefreshTimingSwitchEditorItem();var E=b.createRefreshTimingValueEditorItem();h.append(b.createJqCap());h.append(m);h.append(n);h.append(E)};this.protectedDoCustomPropertyChanged=function(h){h==Bc.KEY_TITLE?d.setModel(a.getWidget().getTitle()):b.autoRefreshablePropertyChanged(h)}}function q(){Ra.call(this);Ec.call(this);Ab.call(this);var a=this.protectedMethod;this.protectedGetSourceSelector=function(){return v.getWidgetSourceSelector().selectProgramableCard};this.protectedInitCustomUi=function(b){var d=
a.createJqGroupTitle(c.get("refGroupTitle","\u5f15\u7528\uff1a")),h=a.createReferenceEditorItem(c.get("refSource","\u6765\u6e90"));b.append(a.createJqCap());b.append(d);b.append(h);d=a.createJqGroupTitle(c.get("cardGroupRefreshTitle","\u5b9a\u65f6\u5237\u65b0\uff1a"));h=a.createRefreshTimingSwitchEditorItem();var m=a.createRefreshTimingValueEditorItem();b.append(a.createJqCap());b.append(d);b.append(h);b.append(m)};this.protectedDoCustomPropertyChanged=function(b){a.autoRefreshablePropertyChanged(b)}}
function k(){Ra.call(this);zc.call(this);var a=this.protectedMethod;this.protectedGetSourceSelector=function(){return v.getCosmicCustomCardSourceSelector()};this.protectedInitCustomUi=function(b){var d=a.createJqGroupTitle(c.get("refGroupTitle","\u5f15\u7528\uff1a")),h=a.createReferenceEditorItem(c.get("refSource","\u6765\u6e90"));b.append(a.createJqCap());b.append(d);b.append(h)}}function x(){Ra.call(this)}function A(){Ra.call(this);var a=this,b=this.protectedMethod,d;this.protectedInitCustomUi=
function(m){d=new O;d.addActionListener(h);var n=b.createJqGroupTitle(c.get("iframeGroupTitle","\u7f51\u9875\uff1a")),E=b.createJqLineItem(c.get("iframeUrl","\u7f51\u9875\u5730\u5740"),d);m.append(b.createJqCap());m.append(n);m.append(E);d.setModel(a.getWidget().getUrl())};this.protectedDoCustomPropertyChanged=function(m){m==Ac.KEY_URL&&d.setModel(a.getWidget().getUrl())};var h=function(m){(new zd).showDialog(a.getWidget().getUrl(),function(n,E){if(n){n=b.getEditorCaption(m);var ja=new vc;ja.setMethod(a.getWidget().getUrl,
a.getWidget().setUrl);ja.setValue(E);b.performAction(ja,n)}})}}function P(){Ra.call(this);Fa.call(this);var a=this,b=this.protectedMethod,d;this.protectedInitCustomUi=function(m){d=new O;d.addActionListener(h);var n=b.createJqGroupTitle(c.get("clockContentGroupTitle","\u5185\u5bb9\uff1a")),E=b.createJqLineItem(c.get("clockFormatString","\u663e\u793a\u683c\u5f0f"),d);m.append(b.createJqCap());m.append(n);m.append(E);d.setModel(a.getWidget().getFormatString());b.styleInitCustomUi(m)};this.protectedDoCustomPropertyChanged=
function(m){m==wc.KEY_FORMAT?d.setModel(a.getWidget().getFormatString()):b.styleDoCustomPropertyChanged(m)};var h=function(m){var n=b.getEditorCaption(d);(new Td).showDialog(d.getModel(),function(E,ja){E&&(E=new vc,E.setMethod(a.getWidget().getFormatString,a.getWidget().setFormatString),E.setValue(ja),b.performAction(E,n))})}}function V(){Ra.call(this);Fa.call(this);var a=this,b=this.protectedMethod,d,h;this.protectedInitCustomUi=function(E){d=new O;d.addActionListener(m);var ja=b.createJqGroupTitle(c.get("labelContentGroupTitle",
"\u5185\u5bb9\uff1a")),ba=b.createJqLineItem(c.get("labelContent","\u663e\u793a\u6587\u5b57"),d);E.append(b.createJqCap());E.append(ja);E.append(ba);d.setModel(a.getWidget().getContent());b.styleInitCustomUi(E);h=new ia;h.addCheckedListener(n);ja=b.createJqGroupTitle(c.get("labelWalkingGroupTitle","\u8d70\u9a6c\u706f\uff1a"));ba=b.createJqLineItem(c.get("labelWalking","\u542f\u7528"),h);E.append(b.createJqCap());E.append(ja);E.append(ba);h.setChecked(0<a.getWidget().getWalkingSpeed())};this.protectedDoCustomPropertyChanged=
function(E){E==Ub.KEY_CONTENT?d.setModel(a.getWidget().getContent()):E==Ub.KEY_WALKING?h.setChecked(0<a.getWidget().getWalkingSpeed()):b.styleDoCustomPropertyChanged(E)};var m=function(E){var ja=a.getWidget();(new Ad).show(ja,ja.getTopPage(),function(ba,T,R,J){if(R||ba){var B=ja.getPredefinedTextFragments(),S=ja.getContent();if(ba){B=T;var M=c.get("labelPredefined","\u94fe\u63a5\u7684\u5b9a\u4e49")}R&&(S=J,M=b.getEditorCaption(d));ba=new vc;ba.setMethod(function(){return[ja.getPredefinedTextFragments(),
ja.getContent()]},function(ua){ja.setContent(ua[0],ua[1])});ba.setValue([B,S]);b.performAction(ba,M)}})},n=function(E,ja){if(ja){var ba=a.getWidget();ja=b.getEditorCaption(E);var T=new vc;T.setMethod(function(){return 0<ba.getWalkingSpeed()},function(R){ba.setWalkingSpeed(R?50:0)});T.setValue(E.isChecked());b.performAction(T,ja)}}}function da(){Ra.call(this);var a=this,b=this.protectedMethod,d;this.protectedInitCustomUi=function(n){d=new O;d.addActionListener(h);d.setCustomPainter(m);var E=b.createJqGroupTitle(c.get("labelContentGroupTitle",
"\u5185\u5bb9\uff1a")),ja=b.createJqLineItem(c.get("labelContent","\u663e\u793a\u6587\u5b57"),d);n.append(b.createJqCap());n.append(E);n.append(ja);d.setModel(a.getWidget().getContent())};this.protectedDoCustomPropertyChanged=function(n){n==$b.KEY_CONTENT&&d.setModel(a.getWidget().getContent())};var h=function(n){var E=a.getWidget();(new Bd).show(E,E.getTopPage(),function(ja,ba,T,R){if(T||ja){var J=E.getPredefinedTextFragments(),B=E.getContent();if(ja){J=ba;var S=c.get("labelPredefined","\u94fe\u63a5\u7684\u5b9a\u4e49")}T&&
(B=R,S=b.getEditorCaption(d));ja=new vc;ja.setMethod(function(){return[E.getPredefinedTextFragments(),E.getContent()]},function(M){E.setContent(M[0],M[1])});ja.setValue([J,B]);b.performAction(ja,S)}})},m=function(n){return n?n.getAllText():""}}function la(){Ra.call(this);eb.call(this);Xa.call(this);Ka.call(this);w.call(this);var a=this.protectedMethod;this.protectedInitCustomUi=function(b){var d=a.createJqGroupTitle(c.get("filterDataGroupTitle","\u6570\u636e\uff1a")),h=a.createSourceEditorItem(),
m=a.createDefaultSelectedEditorItem();b.append(a.createJqCap());b.append(d);b.append(h);b.append(m);d=a.createJqGroupTitle(c.get("affectingGroupTitle","\u8054\u52a8\uff1a"));h=a.createAffectedTargetEditorItem();m=a.createTabSwitchEditorItem();b.append(a.createJqCap());b.append(d);b.append(h);b.append(m);d=a.createJqGroupTitle(c.get("frontLabelGroupTitle","\u6807\u7b7e\uff1a"));h=a.createFrontLabelEditorItem();m=a.createFrontLabelPositionEditorItem();var n=a.createFrontLabelLengthEditorItem();b.append(a.createJqCap());
b.append(d);b.append(h);b.append(m);b.append(n);d=a.createJqGroupTitle(c.get("surfaceGroupTitle","\u5916\u89c2\uff1a"));h=a.createFontSizeEnhancedEditorItem();b.append(a.createJqCap());b.append(d);b.append(h)};this.protectedGetAffectedTargetSupportedTypes=function(){return a.getAffectedTargetSupportedTypes()};this.protectedDoCustomPropertyChanged=function(b){a.discreteItemFilterPropertyChanged(b);a.filterSimilaryPropertyChanged(b);a.withLabelCtrlPropertyChanged(b);a.fontSizeEnhancedPropertyChanged(b)}}
function za(){Ra.call(this);eb.call(this);Xa.call(this);var a=this,b=this.protectedMethod,d,h,m,n;this.protectedInitCustomUi=function(B){var S=b.createJqGroupTitle(c.get("filterDataGroupTitle","\u6570\u636e\uff1a")),M=b.createSourceEditorItem(),ua=b.createDefaultSelectedEditorItem();B.append(b.createJqCap());B.append(S);B.append(M);B.append(ua);S=b.createJqGroupTitle(c.get("affectingGroupTitle","\u8054\u52a8\uff1a"));M=b.createAffectedTargetEditorItem();ua=b.createTabSwitchEditorItem();B.append(b.createJqCap());
B.append(S);B.append(M);B.append(ua);S=b.createJqGroupTitle(c.get("btnsGroupTitle","\u5916\u89c2\uff1a"));M=ba();ua=ja();var ka=E(),hb=T();B.append(b.createJqCap());B.append(S);B.append(ka);B.append(M);B.append(ua);B.append(hb)};this.protectedGetAffectedTargetSupportedTypes=function(){return b.getAffectedTargetSupportedTypes()};this.protectedDoCustomPropertyChanged=function(B){B==oc.KEY_LAYOUT_MODE?(J(),b.syncSizeCtrlEnabled()):B==oc.KEY_CHARS_PER_ITEM?h&&h.setValue(a.getWidget().getCharsPerItemWhenWrap()):
B==oc.KEY_ITEMS_PER_ROW?m&&m.setValue(a.getWidget().getItemsPerRowWhenWrap()):B==oc.KEY_SIZE_MODE&&n&&n.setSelected(a.getWidget().getSizeMode());b.discreteItemFilterPropertyChanged(B);b.filterSimilaryPropertyChanged(B)};var E=function(){d=new D;d.setItemModels([oc.LAYOUT_MODE_HORIZONTAL,oc.LAYOUT_MODE_WRAP]);d.setCustomPainter(function(B,S,M){B=M==oc.LAYOUT_MODE_HORIZONTAL?c.get("btnsLayoutModeH","\u5355\u884c"):M==oc.LAYOUT_MODE_WRAP?c.get("btnsLayoutModeW","\u591a\u884c"):"";S.text(B)});d.addSelectedChangedListener(function(B,
S,M){B=b.getEditorCaption(B);S=new vc;S.setMethod(a.getWidget().getLayoutMode,a.getWidget().setLayoutMode);S.setValue(M);var ua=new vc;ua.setMethod(a.getWidget().isHeightLocked,a.getWidget().setHeightLocked);ua.setValue(M==oc.LAYOUT_MODE_HORIZONTAL);R(B,[S,ua],M,null)});J();return b.createJqLineItem(c.get("btnsLayoutMode","\u6309\u94ae\u5e03\u5c40"),d)},ja=function(){h=new K;h.setConstraint(1,100,1);h.addValueChangedListener(function(B,S,M){B=b.getEditorCaption(B);S=new vc;S.setMethod(a.getWidget().getCharsPerItemWhenWrap,
a.getWidget().setCharsPerItemWhenWrap);S.setValue(M);b.performAction(S,B)},!0);h&&h.setValue(a.getWidget().getCharsPerItemWhenWrap());return b.createJqLineItem(c.get("btnsPerItem","\u6bcf\u4e2a\u6700\u5c11\u5b57\u6570"),h)},ba=function(){m=new K;m.setConstraint(1,20,1);m.addValueChangedListener(function(B,S,M){B=b.getEditorCaption(B);S=new vc;S.setMethod(a.getWidget().getItemsPerRowWhenWrap,a.getWidget().setItemsPerRowWhenWrap);S.setValue(M);b.performAction(S,B)},!0);m&&m.setValue(a.getWidget().getItemsPerRowWhenWrap());
return b.createJqLineItem(c.get("btnsPerRow","\u6bcf\u884c\u6700\u591a\u4e2a\u6570"),m)},T=function(){n=new D;n.setItemModels([oc.SIZE_MODE_LARGE,oc.SIZE_MODE_MIDDLE,oc.SIZE_MODE_SMALL]);n.setCustomPainter(function(B,S,M){B=M==oc.SIZE_MODE_LARGE?c.get("btnsSizeModeLarge","\u5927"):M==oc.SIZE_MODE_MIDDLE?c.get("btnsSizeModeMiddle","\u4e2d"):M==oc.SIZE_MODE_SMALL?c.get("btnsSizeModeSmall","\u5c0f"):"";S.text(B)});n.addSelectedChangedListener(function(B,S,M){B=b.getEditorCaption(B);S=new vc;S.setMethod(a.getWidget().getSizeMode,
a.getWidget().setSizeMode);S.setValue(M);R(B,[S],null,M)});n&&n.setSelected(a.getWidget().getSizeMode());return b.createJqLineItem(c.get("btnsSizeMode","\u5c3a\u5bf8"),n)},R=function(B,S,M,ua){var ka=a.getWidget(),hb=M?!0:!1;null==M&&(M=ka.getLayoutMode());M==oc.LAYOUT_MODE_HORIZONTAL?(null==ua&&(ua=ka.getSizeMode()),M=new od,ua=oc.askButtonHeight(ua),M.setValue(ka,ka.getX(),ka.getY(),ka.getWidth(),ua),S.push(M)):hb&&M==oc.LAYOUT_MODE_WRAP&&(M=new od,M.setValue(ka,ka.getX(),ka.getY(),240,160),S.push(M));
b.performAction(S,B)},J=function(){d&&d.setSelected(a.getWidget().getLayoutMode());m&&b.updateEditorVisible(m,a.getWidget().getLayoutMode()==oc.LAYOUT_MODE_WRAP);h&&b.updateEditorVisible(h,a.getWidget().getLayoutMode()==oc.LAYOUT_MODE_WRAP)}}function Qa(){Ra.call(this);eb.call(this);Xa.call(this);Ka.call(this);w.call(this);var a=this.protectedMethod;this.protectedInitCustomUi=function(b){var d=a.createJqGroupTitle(c.get("filterDataGroupTitle","\u6570\u636e\uff1a")),h=a.createSourceEditorItem(),m=
a.createMultiSelectableEditorItem(),n=a.createDefaultSelectedEditorItem();b.append(a.createJqCap());b.append(d);b.append(h);b.append(m);b.append(n);d=a.createJqGroupTitle(c.get("affectingGroupTitle","\u8054\u52a8\uff1a"));h=a.createAffectedTargetEditorItem();m=a.createTabSwitchEditorItem();b.append(a.createJqCap());b.append(d);b.append(h);b.append(m);d=a.createJqGroupTitle(c.get("frontLabelGroupTitle","\u6807\u7b7e\uff1a"));h=a.createFrontLabelEditorItem();m=a.createFrontLabelPositionEditorItem();
n=a.createFrontLabelLengthEditorItem();b.append(a.createJqCap());b.append(d);b.append(h);b.append(m);b.append(n);d=a.createJqGroupTitle(c.get("surfaceGroupTitle","\u5916\u89c2\uff1a"));h=a.createFontSizeEnhancedEditorItem();b.append(a.createJqCap());b.append(d);b.append(h)};this.protectedGetAffectedTargetSupportedTypes=function(){return a.getAffectedTargetSupportedTypes()};this.protectedDoCustomPropertyChanged=function(b){a.discreteItemFilterPropertyChanged(b);a.filterSimilaryPropertyChanged(b);a.withLabelCtrlPropertyChanged(b);
a.fontSizeEnhancedPropertyChanged(b)}}function ab(){Ra.call(this);Xa.call(this);Ka.call(this);w.call(this);var a=this,b=this.protectedMethod,d;this.protectedInitCustomUi=function(n){d=new O;d.addActionListener(m);d.setCustomPainter(h);var E=b.createJqGroupTitle(c.get("filterDataGroupTitle","\u6570\u636e\uff1a")),ja=b.createJqLineItem(c.get("dateRangeInitial","\u521d\u59cb\u503c"),d);n.append(b.createJqCap());n.append(E);n.append(ja);d.setModel(a.getWidget());E=b.createJqGroupTitle(c.get("affectingGroupTitle",
"\u8054\u52a8\uff1a"));ja=b.createAffectedTargetEditorItem();n.append(b.createJqCap());n.append(E);n.append(ja);E=b.createJqGroupTitle(c.get("frontLabelGroupTitle","\u6807\u7b7e\uff1a"));ja=b.createFrontLabelEditorItem();var ba=b.createFrontLabelPositionEditorItem(),T=b.createFrontLabelLengthEditorItem();n.append(b.createJqCap());n.append(E);n.append(ja);n.append(ba);n.append(T);E=b.createJqGroupTitle(c.get("surfaceGroupTitle","\u5916\u89c2\uff1a"));ja=b.createFontSizeEnhancedEditorItem();n.append(b.createJqCap());
n.append(E);n.append(ja)};this.protectedGetAffectedTargetSupportedTypes=function(){var n={};n[F.WidgetType_Square]=0;n[F.WidgetType_Longer]=1;n[F.WidgetType_QingReport]=2;return n};this.protectedDoCustomPropertyChanged=function(n){n==jd.KEY_DATE_INITIAL?d.setModel(a.getWidget()):(b.filterSimilaryPropertyChanged(n),b.withLabelCtrlPropertyChanged(n),b.fontSizeEnhancedPropertyChanged(n))};var h=function(n){return n?a.protectedToF7DateDisplay(n):""};this.protectedToF7DateDisplay=function(n){throw Error("Implement");
};var m=function(n){a.protectedCreateDateInitialDialog().showDialog(b.getGlobal(),a.getWidget(),function(E,ja,ba,T,R){if(E){E=b.getEditorCaption(d);var J=new Ud;J.setValue(a.getWidget(),ja,ba,T,R);b.performAction(J,E)}})};this.protectedCreateDateInitialDialog=function(){throw Error("Implement");}}function wb(){ab.call(this);this.protectedCreateDateInitialDialog=function(){return new Cd};this.protectedToF7DateDisplay=function(a){if(a.getRelativeModel())return pa.modelToDisplayText(a.getRelativeModel(),
!1);var b=new dc;b.setFormatString("yyyy-M-d");var d=b.format(a.getFromDate());a=b.format(a.getToDate());return d+"~"+a}}function jb(){ab.call(this);this.protectedCreateDateInitialDialog=function(){return new rd};this.protectedToF7DateDisplay=function(a){if(a.getRelativeModel())return rd.modelToDisplayText(a.getRelativeModel());var b=new dc;b.setFormatString("yyyy");return b.format(a.getFromDate())}}function Da(){ab.call(this);this.protectedCreateDateInitialDialog=function(){return new sd};this.protectedToF7DateDisplay=
function(a){if(a.getRelativeModel())return sd.modelToDisplayText(a.getRelativeModel());var b=new Date(a.getFromDate());a=b.getFullYear();b=Math.floor(b.getMonth()/3)+1;return a+" Q"+b}}function ca(){ab.call(this);this.protectedCreateDateInitialDialog=function(){return new td};this.protectedToF7DateDisplay=function(a){if(a.getRelativeModel())return td.modelToDisplayText(a.getRelativeModel());var b=new dc;b.setFormatString("yyyy-MM");return b.format(a.getFromDate())}}function N(){ab.call(this);this.protectedCreateDateInitialDialog=
function(){return new ud};this.protectedToF7DateDisplay=function(a){if(a.getRelativeModel())return ud.modelToDisplayText(a.getRelativeModel());var b=new dc;b.setFormatString("yyyy-MM-dd");return b.format(a.getFromDate())}}function ea(){Ra.call(this);Ib.call(this);var a=this,b=this.protectedMethod,d;this.protectedInitCustomUi=function(E){b.initCardSurfaceEditorItems(E);b.initCardTopBarEditorItems(E);E.append(h())};this.protectedDoCustomPropertyChanged=function(E){E==qc.KEY_FULLSCREEN_ALLOWED&&m();
b.cardSimilaryPropertyChanged(E)};var h=function(){d=new D;d.setItemModels([qc.FULLSCREEN_ALLOWED_NONE,qc.FULLSCREEN_ALLOWED_ALONE,qc.FULLSCREEN_ALLOWED_ALIVE]);d.setCustomPainter(n);d.addSelectedChangedListener(function(E,ja,ba){E=b.getEditorCaption(E);ja=new vc;ja.setMethod(a.getWidget().getFullscreenAllowed,a.getWidget().setFullscreenAllowed);ja.setValue(ba);b.performAction(ja,E)});m();return b.createJqLineItem(c.get("fullscreenAllowed","\u5168\u5c4f"),d)},m=function(){if(d){var E=a.getWidget().getFullscreenAllowed();
d.setSelected(E)}},n=function(E,ja,ba){switch(ba){case qc.FULLSCREEN_ALLOWED_NONE:E=c.get("fullscreenAllowedNone","\u5173\u95ed");break;case qc.FULLSCREEN_ALLOWED_ALONE:E=c.get("fullscreenAllowedAlone","\u5f00\u542f\u4e14\u4e0b\u7ea7\u7ec4\u4ef6\u7981\u6b62");break;case qc.FULLSCREEN_ALLOWED_ALIVE:E=c.get("fullscreenAllowedAlive","\u5f00\u542f\u4e14\u4e0b\u7ea7\u7ec4\u4ef6\u5141\u8bb8");break;default:E=""}ja.text(E)}}function ma(){Ra.call(this);w.call(this);var a=this,b=this.protectedMethod,d,h,m;
this.protectedInitCustomUi=function(M){var ua=b.createJqGroupTitle(c.get("tabbedHeadGroupTitle","\u5bfc\u822a\u680f\uff1a")),ka=ba(),hb=T(),xb=b.createFontSizeEnhancedEditorItem();ja();M.append(b.createJqCap());M.append(ua);M.append(ka);M.append(hb);M.append(xb);ua=b.createJqGroupTitle(c.get("slideshowGroupTitle","\u8f6e\u64ad\uff1a"));ka=S();M.append(b.createJqCap());M.append(ua);M.append(ka)};this.protectedDoCustomPropertyChanged=function(M){M==mc.KEY_HEAD_PATTERN?(n(),ja()):M==mc.KEY_HEAD_POSITION?
E():M==mc.KEY_SLIDESHOW?B():b.fontSizeEnhancedPropertyChanged(M)};var n=function(){if(d){var M=a.getWidget().getHeadPattern();d.setSelected(M)}},E=function(){if(h){var M=a.getWidget().getHeadPosition();h.setSelected(M)}},ja=function(){if(h){var M=a.getWidget().getHeadPattern()==mc.HEAD_PATTERN_HIDDEN;b.updateEditorVisible(h,!M);b.updateFontSizeEditorVisible(!M)}},ba=function(){d=new D;d.setItemModels([mc.HEAD_PATTERN_BAR,mc.HEAD_PATTERN_BARE,mc.HEAD_PATTERN_HIDDEN]);d.setCustomPainter(R);d.addSelectedChangedListener(function(M,
ua,ka){M=b.getEditorCaption(M);ua=new vc;ua.setMethod(a.getWidget().getHeadPattern,a.getWidget().setHeadPattern);ua.setValue(ka);b.performAction(ua,M)});n();return b.createJqLineItem(c.get("tabbedHeadPattern","\u5916\u89c2\u98ce\u683c"),d)},T=function(){h=new D;h.setItemModels([mc.HEAD_TOP_LEFT,mc.HEAD_TOP_RIGHT,mc.HEAD_BOTTOM_LEFT,mc.HEAD_BOTTOM_RIGHT]);h.setCustomPainter(J);h.addSelectedChangedListener(function(M,ua,ka){M=b.getEditorCaption(M);ua=new vc;ua.setMethod(a.getWidget().getHeadPosition,
a.getWidget().setHeadPosition);ua.setValue(ka);b.performAction(ua,M)});E();return b.createJqLineItem(c.get("tabbedHeadPosition","\u6309\u94ae\u4f4d\u7f6e"),h)},R=function(M,ua,ka){switch(ka){case mc.HEAD_PATTERN_BAR:M=c.get("tabbedHeadPatternBar","\u9002\u7528\u4e8e\u9875\u9762\u4e2d");break;case mc.HEAD_PATTERN_BARE:M=c.get("tabbedHeadPatternBare","\u9002\u7528\u4e8e\u5361\u7247\u4e2d");break;case mc.HEAD_PATTERN_HIDDEN:M=c.get("tabbedHeadPatternHide","\u9690\u85cf");break;default:M=""}ua.text(M)},
J=function(M,ua,ka){switch(ka){case mc.HEAD_TOP_LEFT:M=c.get("tabbedHeadPositionTL","\u5de6\u4e0a");break;case mc.HEAD_TOP_RIGHT:M=c.get("tabbedHeadPositionTR","\u53f3\u4e0a");break;case mc.HEAD_BOTTOM_LEFT:M=c.get("tabbedHeadPositionBL","\u5de6\u4e0b");break;case mc.HEAD_BOTTOM_RIGHT:M=c.get("tabbedHeadPositionBR","\u53f3\u4e0b");break;default:M=""}ua.text(M)},B=function(){if(m){var M=a.getWidget().isSlideshowEnabled();m.setChecked(M)}},S=function(){m=new ia;m.addCheckedListener(function(M,ua){if(ua){ua=
b.getEditorCaption(M);var ka=new vc;ka.setMethod(a.getWidget().isSlideshowEnabled,a.getWidget().setSlideshowEnabled);ka.setValue(M.isChecked());b.performAction(ka,ua)}});B();return b.createJqLineItem(c.get("slideshow","\u542f\u7528\u8f6e\u64ad"),m)}}function H(){function a(){var J,B;this.bindModel=function(M){B=M};this.initUi=function(M){J=new K;J.setConstraint(1,999999,1);J.addValueChangedListener(S,!0);var ua=h.createJqLineItem(c.get("slideshowDuration","\u6301\u7eed\u65f6\u95f4(\u79d2)"),J);M.append(ua)};
this.updateVisibleAndState=function(M){h.updateEditorVisible(J,M);J.setValue(B.getDuration())};var S=function(M,ua,ka){M=new vc;M.setMethod(B.getDuration,B.setDuration);M.setValue(J.getValue());R(B,M)}}function b(){var J,B,S,M;this.bindModel=function(tb){J=tb};this.initUi=function(tb){B=new O;B.addActionListener(ua);B.setCustomPainter(function(jc){return jc?jc.toShortDisplay(h.getGlobal().getDashboardModel()):""});S=new O;S.addActionListener(ka);S.setCustomPainter(function(jc){if(!jc)return"";var pc=
F.AffectedType_BindField|F.AffectedType_Param;return Xa.affectedTargetsToShortDisplay(h.getGlobal().getDashboardModel(),jc,pc)});M=new K;M.setConstraint(1,999999,1);M.addValueChangedListener(hb,!0);tb.append(h.createJqLineItem(c.get("slideshowDataItems","\u8f6e\u64ad\u6570\u636e\u9879"),B));tb.append(h.createJqLineItem(c.get("slideshowEachDuration","\u6bcf\u9879\u95f4\u9694(\u79d2)"),M));tb.append(h.createJqLineItem(c.get("affectedTarget","\u4f5c\u7528\u4e8e"),S))};this.updateVisibleAndState=function(tb){h.updateEditorVisible(B,
tb);h.updateEditorVisible(S,tb);h.updateEditorVisible(M,tb);B.setModel(J.getFilterSource());S.setModel(J.getAffectedTargets());M.setValue(J.getEachDuration())};var ua=function(tb){tb=J.createWidgetPeer();var jc=new qd;jc.setTitle(c.get("slideshowDataItemsDialogTitle","\u201c#1\u201d\u7684\u8f6e\u64ad\u6570\u636e\u9879").replace("#1",d.getWidget().getDisplayName()));jc.showDialog(h.getGlobal(),tb,function(pc,Fc,Cc){pc&&(pc=new vc,pc.setMethod(J.getFilterSource,J.setFilterSource),pc.setValue(Fc),R(J,
pc))})},ka=function(tb){var jc=xb();(new yd).showDialog(h.getGlobal(),d.getWidget(),function(pc){pc=jc[pc.getWidgetTypeName()];return 0<=pc?pc:-1},function(pc){if(null!==pc){var Fc=new vc;Fc.setMethod(J.getAffectedTargets,J.setAffectedTargets);Fc.setValue(pc);R(J,Fc)}})},hb=function(tb,jc,pc){tb=new vc;tb.setMethod(J.getEachDuration,J.setEachDuration);tb.setValue(M.getValue());R(J,tb)},xb=function(){var tb={};tb[F.WidgetType_Square]=0;tb[F.WidgetType_Longer]=1;tb[F.WidgetType_QingReport]=2;tb[F.WidgetType_ExtReport]=
3;tb[F.WidgetType_Label]=4;tb[F.WidgetType_Rich]=5;return tb}}Dc.call(this);yc.call(this);var d=this,h=this.protectedMethod,m,n,E={};this.protectedInitUi=function(J){var B=h.createJqGroupTitle(c.get("tabbedHeadGroupTitle","\u5bfc\u822a\u680f\uff1a"));m=h.createTextEditor(d.getWidget().getHeadText,d.getWidget().setHeadText,null,!1,40);var S=h.createJqLineItem(c.get("tabbedHeadText","\u663e\u793a\u6587\u5b57"),m);J.append(B);J.append(S);m.setModel(d.getWidget().getHeadText());B=h.createJqGroupTitle(c.get("slideshowGroupTitle",
"\u8f6e\u64ad\uff1a"));S=ja();J.append(h.createJqCap());J.append(B);J.append(S);for(var M in E)E[M].initUi(J);ba();J.append(h.createJqCap());h.backgroundInitUi(J)};this.protectedDoPropertyChanged=function(J){J==Gc.KEY_HEAD_TEXT?m.setModel(d.getWidget().getHeadText()):J==Gc.KEY_DURATION_MODE?ba():h.backgroundDoPropertyChanged(J)};var ja=function(){for(var J=d.getWidget().getDurationMode(),B=[id.TYPE_ByFixedTime,id.TYPE_ByData],S=[a,b],M=[],ua=0;ua<B.length;ua++){var ka=B[ua],hb=ka==J.getType()?J:id.createInstance(ka);
M.push(hb);var xb=new S[ua];xb.bindModel(hb);E[ka]=xb}n=new D;n.setItemModels(M,function(tb,jc){return tb.getType()==jc.getType()});n.setCustomPainter(T);n.addSelectedChangedListener(function(tb,jc,pc){R(pc)});return h.createJqLineItem(c.get("slideshowMode","\u8f6e\u64ad\u6a21\u5f0f"),n)},ba=function(){var J=d.getWidget().getDurationMode();n.setSelected(J);for(var B in E){var S=E[B],M=B==J.getType();M&&S.bindModel(J);S.updateVisibleAndState(M)}},T=function(J,B,S){switch(S?S.getType():""){case id.TYPE_ByFixedTime:J=
c.get("slideshowModeFixedTime","\u56fa\u5b9a\u65f6\u95f4");break;case id.TYPE_ByData:J=c.get("slideshowModeByData","\u6570\u636e\u9a71\u52a8");break;default:J=""}B.text(J)},R=function(J,B){var S=new vc;S.setMethod(d.getWidget().getDurationMode,d.getWidget().setDurationMode);S.setValue(J);h.performAction(B?[S,B]:S,c.get("slideshowMode","\u8f6e\u64ad\u6a21\u5f0f"))}}function W(){Ra.call(this);Ec.call(this);var a=this,b=this.protectedMethod,d,h;this.protectedGetSourceSelector=function(){return v.getWidgetSourceSelector().selectPicture};
this.protectedInitCustomUi=function(ba){var T=b.createJqGroupTitle(c.get("pictureGroupTitle","\u56fe\u7247\uff1a")),R=b.createReferenceEditorItem(c.get("pictureUrl","\u56fe\u7247\u5185\u5bb9"));d=new ia;d.addCheckedListener(m);var J=b.createJqLineItem(c.get("pictureScale","\u539f\u59cb\u5c3a\u5bf8"),d);h=new ia;h.addCheckedListener(n);var B=b.createJqLineItem(c.get("pictureAlign","\u5c45\u4e2d"),h);ba.append(b.createJqCap());ba.append(T);ba.append(R);ba.append(J);ba.append(B);E();ja()};this.protectedDoCustomPropertyChanged=
function(ba){ba==Db.KEY_SCALE?E():ba==Db.KEY_ALIGN&&ja()};var m=function(ba,T){if(T){ba=b.getEditorCaption(ba);T=d.isChecked()?Db.SCALE_NON:Db.SCALE_ADAPTIVE;var R=new vc;R.setMethod(a.getWidget().getScale,a.getWidget().setScale);R.setValue(T);b.performAction(R,ba)}},n=function(ba,T){if(T){ba=b.getEditorCaption(ba);T=h.isChecked()?Db.HALIGN_CENTER|Db.VALIGN_MIDDLE:Db.HALIGN_LEFT|Db.VALIGN_TOP;var R=new vc;R.setMethod(a.getWidget().getAlign,a.getWidget().setAlign);R.setValue(T);b.performAction(R,ba)}},
E=function(){var ba=a.getWidget().getScale();ba==Db.SCALE_NON?d.setChecked(!0):ba==Db.SCALE_ADAPTIVE&&d.setChecked(!1)},ja=function(){a.getWidget().getAlign()==(Db.HALIGN_CENTER|Db.VALIGN_MIDDLE)?h.setChecked(!0):h.setChecked(!1)}}function ta(){var a,b,d,h,m,n,E=!1,ja;this.setShowBlockingByFacade=function(T,R){E=T;ja=R};this.setFacadeCreator=function(T){a=T};this.refresh=function(T,R,J,B,S,M,ua){h=R;b=B;d=S;n=M;R=a(ba,d);R.setShowBlocking(E);R.setBlockingPrompt(ja);R.setCancelable(!0);ua&&R.setProgressListener(ua);
return R.refreshData(T,h,J)};this.prepare=function(T,R,J,B,S){b=R;d=J;n=B;R=a(ba,d);R.setShowBlocking(E);R.setBlockingPrompt(ja);R.setCancelable(!0);S&&R.setProgressListener(S);return R.refreshData(T)};this.setTagImmediateAnnouncer=function(T){m=T};var ba=function(T){if(!n||!n()){if(T=T.tag)h=T,m&&(m(h),m=null);b(h)}}}function Aa(){function a(){e.call(this);var B=this,S=this.protectedMethod,M=$("<div>"),ua;(function(){B.setSize(480,360);S.setContentPaneCreator(function(){return M});S.setClosingAction(function(ka){ua.destroy();
S.destroy()});S.setFooterPaneCreator(function(ka){var hb=new g(c.get("createWidgetErrorConfirm","\u6211\u77e5\u9053\u4e86"));hb.getJqUi().appendTo(ka);hb.addActionListener(function(xb){ua.destroy();S.destroy()});rb.layoutCtrlWithLRTB(hb.getJqUi(),180,180,null,null,12,28)})})();this.setTitle=function(ka){S.setTitle(ka)};this.setErrorInfo=function(ka,hb,xb){v.createDashboardSquareScene(!1,function(tb){ua=tb;ua.show(M);ua.displayError(ka,hb,xb)})}}var b,d,h,m,n,E;this.bindIntegrationImpl=function(B,
S){b=B;d=S};this.selecting=function(B,S,M){h=B;m=S;n=function(ua){M(ua?!0:!1)};B=L.getInstance(m.getWidgetTypeName()).getTypeDisplayName();E=c.get("createWidget","\u65b0\u5efa\u7ec4\u4ef6-#1").replace("#1",B);b(null,ja)};this.reselecting=function(B,S,M){h=B;m=S;n=M;E=m.getDisplayName();b(m.getReferenceCustomMap(),ba)};var ja=function(B,S,M,ua,ka){B?(S&&m.setCardTitle(S),m.setReferenceCustomMap(B),M?T(B,!0):J(ua,ka,!0,B)):n(null)},ba=function(B,S,M,ua,ka){B?M?T(B,!1):J(ua,ka,!0,B):n(null)},T=function(B,
S){var M=new ta;M.setFacadeCreator(h.createFacade);M=M.prepare(B,function(ka){ua.hideWaiting();m.setExecutingTag(ka);R(B,ka,S)},function(ka,hb,xb){ua.hideWaiting();n(null);if(-1!=ka){var tb=new a;tb.setTitle(E);tb.showDialog();tb.setErrorInfo(ka,hb,xb)}return!0},null,function(ka){ua.hookProgressDisplayer(r.makeUiCreator(ka))});var ua=new z;ua.setIconVisible(!0);ua.hookOwner($(document.body),null);ua.showWaiting(r.getWaitingText(),M)},R=function(B,S,M){d(E,!1,B,S,null,function(ua){J(ua,null,!M,B)})},
J=function(B,S,M,ua){B?(m.deliveryTemporary(B,S,M),n(ua)):n(null)}}function Sa(){nc.call(this);var a=this,b=this.protectedMethod,d,h,m,n;this.getJqUi=function(){if(!d){d=$("<div>");d.css("overflow","hidden");var E=L.getInstance(b.getWidget().getWidgetTypeName()).getMargin();h=$("<div>");h.appendTo(d);rb.layoutCtrlWithLRTB(h,E,E,null,E,E,null);a.updateHeadUi(!0)}return d};this.getJqContent=function(){return h};this.updateHeadUi=function(E){var ja=b.getWidget();a:switch(ja.getHeadPattern()){case mc.HEAD_PATTERN_BAR:var ba=
new bb;break a;case mc.HEAD_PATTERN_BARE:ba=new nb;break a;default:ba=null}var T=ba?ba.measureButtons(ja):0;if(E||T!=n)if(n=T,m&&m.getJqUi().remove(),m=ba)m.getJqUi().appendTo(h),E=m.getJqUi(),T=b.getWidget(),ba=T.getHeadHeight(),T=T.getHeadPosition(),T=T==mc.HEAD_BOTTOM_LEFT||T==mc.HEAD_BOTTOM_RIGHT,rb.layoutCtrlWithLRTB(E,0,0,null,T?null:0,T?0:null,ba),0<ja.getWidgetCount()&&m.createButtons(ja,n)}}function Ma(){var a=this,b,d;this.getJqUi=function(){b||(b=$("<div>"),b.css({"box-sizing":"border-box"}),
d=$("<div>"),d.appendTo(b));return b};this.measureButtons=function(n){var E=new lc;E.setFontSize(m(n));for(var ja=0,ba=0;ba<n.getWidgetCount();ba++){var T=n.getWidget(ba);T=E.measureWidth(T.getHeadText());ja=Math.max(ja,T)}E.destroy();E=a.protectedGetPadding();n=parseInt((n.getClientWidth()-2*E)/n.getWidgetCount());E=a.protectedGetButtonPadding();return Math.min(ja+2*E,n)};this.createButtons=function(n,E){var ja=n.isOpacityRequired();a.protectedPaintHead(a.getJqUi(),ja);ja=[];for(var ba=0;ba<n.getWidgetCount();ba++){var T=
n.getWidget(ba);T=h(n,T);ja.push(T)}ba=n.getHeadHeight();E=a.protectedLayoutButtons(ja,E,ba);ja=a.protectedGetPadding();E+=2*ja;n=n.getHeadPosition();n=n==mc.HEAD_BOTTOM_LEFT||n==mc.HEAD_TOP_LEFT;rb.layoutCtrlWithLRTB(d,n?0:null,n?null:0,E,0,0,null)};this.protectedPaintHead=function(n,E){};this.protectedGetPadding=function(){return 0};this.protectedGetButtonPadding=function(){return 0};this.protectedLayoutButtons=function(n,E,ja){throw Error("Implement");};var h=function(n,E){var ja=t.dip(t.DSB_TABBED_HEAD),
ba=ja[t.Key_TabbedHead_MainColor];ja=ja[t.Key_TabbedHead_InverseColor];ja=E.isVisible()?ja:ba;var T=E.isVisible()?ba:"transparent",R=$("<div>");R.text(E.getHeadText());R.css({overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis","box-sizing":"border-box","text-align":"center",color:ja,"background-color":T,border:"1px solid "+ba,"font-size":m(n)+"px"});R.appendTo(d);R.on("click",function(J){E.setVisible(!0)});return R},m=function(n){n=n.getFontSizeEnhanced();return Math.round(12*(1+n/
10))}}function bb(){Ma.call(this);var a=this;this.protectedPaintHead=function(b,d){t.decorateCardSimpleBorder(d,b)};this.protectedLayoutButtons=function(b,d,h){var m=a.protectedGetPadding(),n=parseInt(.2*h);h=parseInt(.6*h);for(var E=0;E<b.length;E++){var ja=b[E];ja.css("line-height",h-2+"px");rb.layoutCtrl(ja,m,n,d,h);m+=d-1;0==E&&ja.css({"border-top-left-radius":"2px","border-bottom-left-radius":"2px"});E==b.length-1&&ja.css({"border-top-right-radius":"2px","border-bottom-right-radius":"2px"})}return(d-
1)*b.length+1};this.protectedGetPadding=function(){return 16};this.protectedGetButtonPadding=function(){return 20}}function nb(){Ma.call(this);var a=this;this.protectedLayoutButtons=function(b,d,h){for(var m=a.protectedGetPadding(),n=0;n<b.length;n++){var E=b[n];E.css("line-height",h-2+"px");rb.layoutCtrl(E,m,0,d,h);m+=d-1}return(d-1)*b.length+1};this.protectedGetPadding=function(){return 0};this.protectedGetButtonPadding=function(){return 16}}function yb(){Ua.call(this);var a=this,b=this.protectedMethod,
d,h,m,n,E=$("<div>"),ja,ba=[],T;this.getJqUi=function(){if(!h){var Nb=$("<div>");m=R(1,"left");m.appendTo(Nb);n=R(-1,"right");n.appendTo(Nb);J();h=$("<div>");h.css({overflow:"hidden","z-index":1});h.appendTo(Nb);E.appendTo(h);E.on("mouseover",hd);E.on("mouseout",dd);E.on("click",md)}return h.parent()};var R=function(Nb,tc){var mb=$("<div>");aa.background(mb,tc);rb.layoutCtrlCenterAlign(mb,16);rb.layoutCtrlMiddleAlign(mb,16);tc=$("<div>");tc.append(mb);tc.css({cursor:"pointer","z-index":2});tc.on("click",
function(Lb){Lb=S();var Ta=h.prop(Lb?"clientHeight":"clientWidth"),Bb=E.prop(Lb?"offsetHeight":"offsetWidth");Bb=Ta-Bb;var Yb=E.data("my-start");Ta=parseInt(.618*Ta)*Nb;0<=Yb&&0<Ta?ka(0,Ta):Yb<=Bb&&0>Ta?ka(Bb,Ta):M(Lb?"top":"left",Math.min(0,Math.max(Bb,Yb+Ta)),375)});return tc};this.setSelectableItems=function(Nb){ua(Nb)};this.setSelectedItems=function(Nb){ba=Nb;Fc();hb()};this.getSelectedItems=function(){return ba};this.setValueChangedListener=function(Nb){T=Nb};this.relayout=function(){J();B()};
this.requestRepaint=function(){if(d){var Nb=b.getWidget().getWidth(),tc=b.getWidget().getHeight();if(d[0]==Nb&&d[1]==tc)return}B()};this.repaintButtons=function(){Fc()};var J=function(){var Nb={transform:S()?"rotate(90deg)":""};m.children().eq(0).css(Nb);n.children().eq(0).css(Nb)},B=function(){var Nb=[];pc(function(tc){tc=Rc(tc);Nb.push(tc)});ua(Nb);Fc()},S=function(){return b.getWidget().getLayoutMode()==oc.LAYOUT_MODE_WRAP},M=function(Nb,tc,mb){E.data("my-start",tc);var Lb={};Lb[Nb]=tc;E.stop().animate(Lb,
mb)},ua=function(Nb){var tc=b.getWidget().getWidth(),mb=b.getWidget().getHeight();d=[tc,mb];ja=null;E.empty();if(S()){var Lb=Cc(),Ta=Lb[0],Bb=Lb[2];Lb=Math.min(Lb[3],mb);var Yb=Bb,Zb=b.getWidget().getCharsPerItemWhenWrap(),sc=Ta*(Zb+1);Zb=b.getWidget().getItemsPerRowWhenWrap();Zb=Math.min(Nb.length,Math.max(1,Zb));var Mc=Math.floor((tc+Bb)/Zb-Bb),Nc=Mc;Mc<sc&&(Zb=Math.max(1,Math.floor((tc+Bb)/(sc+Bb))),Nc=Math.floor((tc+Bb)/Zb-Bb));sc=Math.ceil(Nb.length/Zb);1<sc&&(sc=Math.floor((mb-sc*Lb)/(sc-1)),
Math.floor(Yb/2)<=sc&&(Yb=Math.min(sc,Lb)));Mc=sc=0;for(var Vc=$(document.createDocumentFragment()),Uc=0;Uc<Nb.length;Uc++){var fd=Nb[Uc],kd=fd.getDisplayText();fd=tb(kd,Lb,Ta,fd);fd.attr("title",kd);fd.appendTo(Vc);sc=(kd=0==Uc%Zb)?0:sc+Nc+Bb;Mc=0<Uc&&kd?Mc+Lb+Yb:Mc;rb.layoutCtrl(fd,sc,Mc,Nc,Lb);0==Uc&&b.getWidget().isIncludedItemAll()&&(ja=fd)}E.append(Vc);Nb=Mc+Lb;rb.layoutCtrl(E,0,0,"100%",Nb);M("left",0,0);M("top",0,0);Nb=(Ta=Nb>mb)?24:0;Ta=Ta?"":"none";m.css("display",Ta);n.css("display",Ta);
Ta=Nb;Bb=0;2*Nb+Lb>mb&&(Ta=0,Bb=Math.floor((tc-Nb)/2));rb.layoutCtrlWithLRTB(h,0,0,"",Ta,Ta,"");rb.layoutCtrlWithLRTB(m,Bb,Bb,"",0,"",Nb);rb.layoutCtrlWithLRTB(n,Bb,Bb,"","",0,Nb)}else{Bb=Cc();mb=Bb[0];Lb=Bb[1];Ta=Bb[2];Bb=Bb[3];Yb=0;Zb=$(document.createDocumentFragment());Nc=new lc;Nc.setFontSize(mb);for(sc=0;sc<Nb.length;sc++)Vc=Nb[sc],Uc=Vc.getDisplayText(),Mc=Nc.measureWidth(Uc)+2*Lb+1,Vc=tb(Uc,Bb,mb,Vc),Vc.appendTo(Zb),rb.layoutCtrl(Vc,Yb,0,Mc,Bb),Yb+=Mc+Ta,0==sc&&b.getWidget().isIncludedItemAll()&&
(ja=Vc);Nc.destroy();E.append(Zb);Nb=Math.max(0,Yb-Ta);rb.layoutCtrl(E,0,0,Nb,"100%");M("left",0,0);M("top",0,0);tc=(Nb=Nb>tc)?40:0;Nb=Nb?"":"none";m.css("display",Nb);n.css("display",Nb);rb.layoutCtrlWithLRTB(h,tc,tc,"",0,0,"");rb.layoutCtrlWithLRTB(m,0,"",tc,0,0,"");rb.layoutCtrlWithLRTB(n,"",0,tc,0,0,"")}},ka=function(Nb,tc){var mb=S()?"top":"left",Lb={};Lb[mb]=Nb+parseInt(.2*tc);E.stop().animate(Lb,100,function(){Lb[mb]=Nb;E.animate(Lb,250)})},hb=function(){if(ba&&0<ba.length){var Nb=ba[0],tc;
pc(function(mb){return Rc(mb).getValue()==Nb.getValue()?(tc=mb,!0):!1});tc&&xb(tc,0)}},xb=function(Nb,tc){var mb=S(),Lb=Nb.prop(mb?"offsetTop":"offsetLeft");Nb=Lb+Nb.prop(mb?"offsetHeight":"offsetWidth");var Ta=h.prop(mb?"clientHeight":"clientWidth"),Bb=-E.prop(mb?"offsetTop":"offsetLeft"),Yb=!1;Nb>Bb+Ta&&(Bb=Nb-Ta,Yb=!0);Lb<Bb&&(Bb=Lb,Yb=!0);Yb&&M(mb?"top":"left",-Bb,tc)},tb=function(Nb,tc,mb,Lb){var Ta=$("<div>");Ta.text(Nb);rb.makeTextOmissible(Ta);rb.layoutCtrlWithLRTB(Ta,0,0,null);rb.layoutCtrlMiddleAlign(Ta,
tc-4);Nb=$("<div>");Nb.append(Ta);Nb.addClass("btn");Nb.css("font-size",mb+"px");Nb.css({cursor:"pointer","box-sizing":"border-box",border:"1px solid #ccc","border-radius":"3px","text-align":"center"});jc(Nb);Nb.data("my-model",Lb);return Nb},jc=function(Nb,tc,mb){var Lb=a.protectedGetStyleMap(),Ta=Lb[t.Key_ButtonGroup_Color],Bb=Lb[t.Key_ButtonGroup_BackgroundColor],Yb=Lb[t.Key_ButtonGroup_BorderColor];tc&&(Ta=Lb[t.Key_ButtonGroup_Color_Selected],Bb=Lb[t.Key_ButtonGroup_BackgroundColor_Selected],
Yb=Lb[t.Key_ButtonGroup_BorderColor_Selected]);mb&&(Bb=Lb[t.Key_ButtonGroup_BackgroundColor_Hover]);Nb.css({color:Ta,"background-color":Bb,"border-color":Yb})};this.protectedGetStyleMap=function(){return t.dip(t.DSB_BUTTON_GROUP)};var pc=function(Nb){for(var tc=E.children(".btn"),mb=0;mb<tc.length&&!Nb(tc.eq(mb));mb++);},Fc=function(Nb){var tc=nd();pc(function(mb){var Lb=Nb&&Nb[0]==mb[0];if(ja&&ja[0]==mb[0])if(1==ba.length&&ja){var Ta=ba[0];var Bb=Rc(ja);Ta=Ta.getValue()==Bb.getValue()}else Ta=!1;
else Ta=Rc(mb),Ta=tc[Ta.getValue()]?!0:!1;jc(mb,Ta,Lb)})},Cc=function(){var Nb=b.getWidget().getSizeMode();if(Nb>=oc.SIZE_MODE_LARGE){var tc=16;var mb=20;var Lb=16}else Nb>=oc.SIZE_MODE_MIDDLE?(mb=tc=14,Lb=8):(tc=12,mb=8,Lb=4);Nb=oc.askButtonHeight(Nb);return[tc,mb,Lb,Nb]},Rc=function(Nb){return Nb.data("my-model")},Wc=function(Nb){return rb.upwardSearchHasData(Nb,E,"my-model")},hd=function(Nb){Nb=$(Nb.target);(Nb=Wc(Nb))&&Fc(Nb)},dd=function(Nb){Nb=$(Nb.target);Wc(Nb)&&Fc(null)},md=function(Nb){Nb=
$(Nb.target);if(Nb=Wc(Nb)){xb(Nb,250);if(ja&&ja[0]==Nb[0])ba=[Rc(ja)];else if(Nb=Rc(Nb),b.getWidget().isMultiSelectable()){if(ja){var tc=Rc(ja);ld(tc)}!ld(Nb)&&ba.push(Nb)}else ba=[Nb];Fc();T&&T()}},ld=function(Nb){for(var tc=0;tc<ba.length;tc++)if(ba[tc].getValue()===Nb.getValue())return ba.splice(tc,1),!0;return!1},nd=function(){for(var Nb={},tc=0;tc<ba.length;tc++){var mb=ba[tc];Nb[mb.getValue()]=mb}return Nb}}function Hb(){lb.call(this);var a=this.protectedMethod;this.getJqUi=function(){var b=
$("<div>");b.on("mousemove",function(d){a.getWidget().setRuntimeWalkable(!1)});b.on("mouseleave",function(d){a.getWidget().setRuntimeWalkable(!0)});return b}}"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.dsb&&(com.kingdee.bos.qing.dsb={});"undefined"==typeof com.kingdee.bos.qing.dsb.widget&&(com.kingdee.bos.qing.dsb.widget=
{});var $a=com.kingdee.bos.qing.dsb.widget;$a.DesktopWidgetCtrlRegister=new l;$a.MobileWidgetCtrlRegister=new l;$a.DesktopWidgetCtrlProvider=function(){fc.call(this);var a=!0;this.setDesigntime=function(b){a=b};this.isDesigntime=function(){return a};this.protectedGetRegister=function(){return $a.DesktopWidgetCtrlRegister};this.protectedInitWidgetCtrl=function(b){a&&b.appendSituation(lb.Situation_Designtime)}};$a.MobileWidgetCtrlProvider=function(){fc.call(this);this.isMobile=function(){return!0};
this.protectedGetRegister=function(){return $a.MobileWidgetCtrlRegister};this.protectedInitWidgetCtrl=function(a){a.appendSituation(lb.Situation_Runtime_Mobile)}};$a.AbstractWidgetUi=wa;$a.AbstractBuiltinVisualWidgetCtrl=fb;$a.AbstractPanelWidgetCtrl=ib;$a.AbstractLabelWidgetCtrl=function(){lb.call(this)};$a.AbstractCalendarWidgetCtrl=function(){lb.call(this);this.setDateMs=function(a){throw Error("Implement");};this.getFromDateMs=function(){throw Error("Implement");};this.getToDateMs=function(){throw Error("Implement");
};this.setValueChangedListener=function(a){throw Error("Implement");};this.updateFrontLabel=function(){throw Error("Implement");};this.updateSurface=function(){}};$a.AbstractComboboxWidgetCtrl=function(){lb.call(this);this.setSelectableItems=function(a){throw Error("Implement");};this.setSelectedItem=function(a){throw Error("Implement");};this.getSelectedItem=function(){throw Error("Implement");};this.setValueChangedListener=function(a){throw Error("Implement");};this.updateFrontLabel=function(){};
this.updateSurface=function(){}};$a.AbstractF7WidgetCtrl=function(){lb.call(this);this.setSelectableItems=function(a){throw Error("Implement");};this.setSelectedItems=function(a){throw Error("Implement");};this.getSelectedItems=function(){throw Error("Implement");};this.setValueChangedListener=function(a){throw Error("Implement");};this.updateFrontLabel=function(){};this.updateSurface=function(){}};$a.CosmeticConfigPreviewButtonGroup=yb;$a.CosmeticConfigPreviewTabbedSelector=Cb;$a.ExhibitionModePanel=
Ca;var rb,Wa,dc,lc,ac,c,D,U,C,O,K,ia,Y,fa,e,g,y,u,G,Z,pa,Ga,Va,Ya,sa,La,Q,ra,r,z,I,aa,v,t,L,F,ya,va,db,Jb,Xb,gc,Bc,Qc,Xc,Tc,Sb,Ub,$b,Db,Ac,wc,Oc,oc,ed,jd,ad,qb,Fb,pb,ec,qc,mc,Gc,Hc,$c,gd,bd,Yc,cd,id,Zc,vc,xd,od,Pd,Ud,Vd,zd,Bd,Ad,wd,Id,qd,yd,Qd,Cd,rd,sd,td,ud,Rd,Nd,Td,Jd,Od,Ld,Md,Sd,Kd;(function(){var a=com.kingdee.bos.qing.common;rb=a.DomUtil;Wa=a.FullScreenHelper;dc=a.DateFormater;lc=a.TextMeasurer;ac=a.BlocksToTable;a=com.kingdee.bos.qing.framework.common;c=a.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.dsb.ui);
a=com.kingdee.bos.qing.ui.component;D=a.ComboBox;U=a.Label;C=a.TextField;O=a.F7Selector;K=a.Spinner;ia=a.CheckBox;Y=a.RadioButton;fa=a.RadioButtonGroup;e=a.AbstractModalDialog;g=a.Button;y=a.Menu;u=a.SimpleConfirmer;G=a.HelpIcon;Z=a.ColorChooser;a=com.kingdee.bos.qing.common.ui;pa=a.RelativePeriodPanel;Ga=a.ColorSelector;Va=a.ColorWithOpacitySelector;Ya=a.FontSelector;a=com.kingdee.bos.qing.common.rich;sa=a.RichDisplayer;a=com.kingdee.bos.qing.chart.render;La=a.StyleTool;a=com.kingdee.bos.qing.core;
Q=a.RtLongerEditableConfirmer;ra=a.RtSquareEditableConfirmer;a=com.kingdee.bos.qing.core.commonui;r=a.DataPreparingProgressParser;z=a.LongtimeWaitingMask;a=com.kingdee.bos.qing.core.model;I=a.BriefOutput;a=com.kingdee.bos.qing.dsb;aa=a.Icons;v=a.IntegrationRegister;t=a.CosmeticBag;a=com.kingdee.bos.qing.dsb.model;L=a.WidgetTypeManager;F=a.DashboardModel;ya=a.WidgetUnknown;va=a.WidgetPageTitleBar;db=a.AbstractCardSimilary;Jb=a.WidgetSquare;Xb=a.WidgetLonger;gc=a.WidgetQingReport;Bc=a.WidgetExtReport;
Qc=a.WidgetProgramableCard;Xc=a.WidgetCosmicCustomCard;Tc=a.WidgetCloudhubSubscribes;Sb=a.AbstractTextWidget;Ub=a.WidgetLabel;$b=a.WidgetRich;Db=a.WidgetPicture;Ac=a.WidgetIframe;wc=a.WidgetClock;Oc=a.WidgetCombobox;oc=a.WidgetButtonGroup;ed=a.WidgetF7;jd=a.AbstractCalendar;ad=a.WidgetCalendar;qb=a.WidgetCalendarYear;Fb=a.WidgetCalendarQuarter;pb=a.WidgetCalendarMonth;ec=a.WidgetCalendarDay;qc=a.WidgetPanel;mc=a.WidgetTabbedContainer;Gc=a.WidgetOneTabbed;Hc=a.AbstractFilterSource;$c=a.FilterSourceFromVisualWidget;
gd=a.ValueTextItem;bd=a.DateSelected;Yc=a.AffectedTargets;cd=a.AbstractDefaultSelected;id=a.AbstractDurationMode;Zc=a.AbstractCardBorder;if(a=com.kingdee.bos.qing.dsb.controller)vc=a.ActionChangeProperty,xd=a.ActionChangePageRect,od=a.ActionChangeWidgetRect,Pd=a.ActionModifyStyle,Ud=a.ActionChangeDateRange,Vd=a.ActionAddWidget;if(a=com.kingdee.bos.qing.dsb.ui)zd=a.UrlInputDialog,Bd=a.RichEditorDialog,Ad=a.LabelContentDialog,wd=a.TextInputDialog,Id=a.TextAreaDialog,qd=a.FilterSourceDialog,yd=a.AffectedTargetDialog,
Qd=a.TabSwitchDialog,Cd=a.DateRangeInitialDialog,rd=a.CalendarYearInitialDialog,sd=a.CalendarQuarterInitialDialog,td=a.CalendarMonthInitialDialog,ud=a.CalendarDayInitialDialog,Rd=a.DefaultSelectedDialog,Nd=a.CosmeticConfigDialog,Td=a.ClockFormatDialog,Jd=a.CardLookConfigDialog,Od=a.PageTitleBarSurfaceDialog,Ld=a.CardTopBarTitleLayoutDialog,Md=a.PageCardTopBarTitleLayoutDialog,Sd=a.CardTitleStyleDialog,Kd=a.CardBorderOfImageDialog})();L.registerAll([function(){bc.call(this);var a=this.protectedMethod;
a.setTypeName(F.WidgetType_Page);a.setTypeDisplayName(c.get("widgetPage","\u9875\u9762"));a.setIconFileName("widget_page");this.createPropertyPanel=function(){return new Ic}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_Square);a.setTypeDisplayName(c.get("widgetSquare","\u6570\u636e\u6597\u65b9"));a.setIconFileName("widget_square");this.getToolboxGroup=function(){return vd};this.protectedCreateWidgetModel=function(b){return new Jb};this.protectedCreateWidgetUi=function(){return new ub};
this.createPropertyPanel=function(){return new xc};this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,d,h){var m=v.getWidgetSourceSelector().selectSquare,n=v.showSquareDesigner,E=new Aa;E.bindIntegrationImpl(m,n);E.selecting(b,d,h)}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_Longer);a.setTypeDisplayName(c.get("widgetLonger","\u6570\u636e\u5206\u6790"));a.setIconFileName("widget_longer");this.getToolboxGroup=function(){return vd};this.protectedCreateWidgetModel=
function(b){return new Xb};this.protectedCreateWidgetUi=function(){return new zb};this.createPropertyPanel=function(){return new Lc};this.getSuggestSize=function(){return[450,300]};this.selectSource=function(b,d,h){var m=v.getWidgetSourceSelector().selectLonger,n=v.showLongerDesigner,E=new Aa;E.bindIntegrationImpl(m,n);E.selecting(b,d,h)}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_QingReport);a.setTypeDisplayName(c.get("widgetQingReport","\u8f7b\u62a5\u8868"));
a.setIconFileName("widget_qingreport");this.isSupported=function(){return v.getQingReportExecutor()?!0:!1};this.getToolboxGroup=function(){return vd};this.protectedCreateWidgetModel=function(b){return new gc};this.protectedCreateWidgetUi=function(){return new hc};this.getSuggestSize=function(){return[450,300]};this.selectSource=function(b,d,h){v.getWidgetSourceSelector().selectQingReport(null,function(m,n){m?(d.setReferenceCustomMap(m),n&&d.setCardTitle(n),h(!0)):h(!1)})};this.createPropertyPanel=
function(){return new Pc}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_ExtReport);a.setTypeDisplayName(c.get("widgetExt","\u6269\u5c55\u62a5\u8868"));a.setIconFileName("widget_ext");this.isSupported=function(){return v.getExtReportExecutor()?!0:!1};this.getToolboxGroup=function(){return vd};this.protectedCreateWidgetModel=function(b){return new Bc};this.protectedCreateWidgetUi=function(){return new Pb};this.getSuggestSize=function(){return[450,300]};this.selectSource=
function(b,d,h){v.getExtReportSourceSelector()(null,function(m){m?(d.setEncodedModel(m),h(!0)):h(!1)})};this.createPropertyPanel=function(){return new Sc}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_Label);a.setTypeDisplayName(c.get("widgetLabel","\u6587\u5b57"));a.setIconFileName("widget_label");this.getToolboxGroup=function(){return pd};this.protectedCreateWidgetModel=function(b){return new Ub};this.protectedCreateWidgetUi=function(){return new cb};this.getMinSize=
function(){return[40,20]};this.getSuggestSize=function(){return[200,40]};this.createPropertyPanel=function(){return new V};this.selectSource=function(b,d,h){(new Ad).show(d,b.getDashboardModel().getPage(),function(m,n,E,ja){E?(d.setContent(n,ja),h(!0)):h(!1)})}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_Rich);a.setTypeDisplayName(c.get("widgetRich","\u591a\u884c\u6587\u5b57"));a.setIconFileName("widget_rich");this.getToolboxGroup=function(){return pd};this.protectedCreateWidgetModel=
function(b){return new $b};this.protectedCreateWidgetUi=function(){return new p};this.getSuggestSize=function(){return[320,180]};this.createPropertyPanel=function(){return new da};this.selectSource=function(b,d,h){(new Bd).show(d,b.getDashboardModel().getPage(),function(m,n,E,ja){E?(d.setContent(n,ja),h(!0)):h(!1)})}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_Picture);a.setTypeDisplayName(c.get("widgetPicture","\u56fe\u7247"));a.setIconFileName("widget_picture");
this.getToolboxGroup=function(){return pd};this.protectedCreateWidgetModel=function(b){return new Db};this.protectedCreateWidgetUi=function(){return new rc};this.createPropertyPanel=function(){return new W};this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,d,h){v.getWidgetSourceSelector().selectPicture(null,function(m){m?(d.setReferenceCustomMap(m),h(!0)):h(!1)})}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_Iframe);a.setTypeDisplayName(c.get("widgetIframe",
"\u7f51\u9875"));a.setIconFileName("widget_iframe");this.getToolboxGroup=function(){return pd};this.protectedCreateWidgetModel=function(b){return new Ac};this.protectedCreateWidgetUi=function(){return new ob};this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,d,h){(new zd).showDialog("",function(m,n){m?(d.setUrl(n),h(!0)):h(!1)})};this.createPropertyPanel=function(){return new A}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_Clock);a.setTypeDisplayName(c.get("widgetClock",
"\u5b9e\u65f6\u65f6\u95f4"));a.setIconFileName("widget_clock");this.getToolboxGroup=function(){return pd};this.protectedCreateWidgetModel=function(b){return new wc};this.protectedCreateWidgetUi=function(){return new Ia};this.createPropertyPanel=function(){return new P};this.getSuggestSize=function(){return[200,40]}},function(){bc.call(this);Qb.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_Combobox);a.setTypeDisplayName(c.get("widgetCombobox","\u4e0b\u62c9\u5217\u8868"));a.setIconFileName("widget_combobox");
this.protectedCreateWidgetModel=function(b){var d=new Oc;b&&d.setIncludedItemAll(!0);return d};this.protectedCreateWidgetUi=function(){return new X};this.getSuggestSize=function(){return[180,25]};this.isHeightLockedAlways=function(){return!0};this.createPropertyPanel=function(){return new la}},function(){bc.call(this);Qb.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_ButtonGroup);a.setTypeDisplayName(c.get("widgetButtonGroup","\u6309\u94ae\u7ec4"));a.setIconFileName("widget_buttongroup");
this.protectedCreateWidgetModel=function(b){var d=new oc;b&&(d.setIncludedItemAll(!1),d.setLayoutMode(oc.LAYOUT_MODE_HORIZONTAL),d.setSizeMode(oc.SIZE_MODE_MIDDLE));return d};this.protectedCreateWidgetUi=function(){return new na};this.getMinSize=function(){return[100,oc.askButtonHeight(oc.SIZE_MODE_SMALL)]};this.getSuggestSize=function(){return[320,oc.askButtonHeight(oc.SIZE_MODE_MIDDLE)]};this.createPropertyPanel=function(){return new za}},function(){bc.call(this);Qb.call(this);var a=this.protectedMethod;
a.setTypeName(F.WidgetType_F7);a.setTypeDisplayName(c.get("widgetF7","\u5f39\u7a97\u9009\u62e9\u5668"));a.setIconFileName("widget_f7");this.protectedCreateWidgetModel=function(b){return new ed};this.protectedCreateWidgetUi=function(){return new ha};this.getSuggestSize=function(){return[180,25]};this.isHeightLockedAlways=function(){return!0};this.createPropertyPanel=function(){return new Qa}},function(){vb.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_Calendar);a.setTypeDisplayName(c.get("widgetCalendar",
"\u65e5\u671f\u8303\u56f4"));a.setIconFileName("widget_calendar");this.protectedCreateWidgetModel=function(b){return new ad};this.protectedCreateWidgetUi=function(){return new xa};this.createPropertyPanel=function(){return new wb};this.protectedCreateInitialDialog=function(){return new Cd}},function(){vb.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_CalendarYear);a.setTypeDisplayName(c.get("widgetCalendarYear","\u65e5\u671f-\u5e74"));a.setIconFileName("widget_calendaryear");this.protectedCreateWidgetModel=
function(b){return new qb};this.protectedCreateWidgetUi=function(){return new Ba};this.createPropertyPanel=function(){return new jb};this.protectedCreateInitialDialog=function(){return new rd}},function(){vb.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_CalendarQuarter);a.setTypeDisplayName(c.get("widgetCalendarQuarter","\u65e5\u671f-\u5e74\u5b63"));a.setIconFileName("widget_calendarquarter");this.protectedCreateWidgetModel=function(b){return new Fb};this.protectedCreateWidgetUi=
function(){return new qa};this.createPropertyPanel=function(){return new Da};this.protectedCreateInitialDialog=function(){return new sd}},function(){vb.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_CalendarMonth);a.setTypeDisplayName(c.get("widgetCalendarMonth","\u65e5\u671f-\u5e74\u6708"));a.setIconFileName("widget_calendarmonth");this.protectedCreateWidgetModel=function(b){return new pb};this.protectedCreateWidgetUi=function(){return new Pa};this.createPropertyPanel=function(){return new ca};
this.protectedCreateInitialDialog=function(){return new td}},function(){vb.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_CalendarDay);a.setTypeDisplayName(c.get("widgetCalendarDay","\u65e5\u671f-\u5e74\u6708\u65e5"));a.setIconFileName("widget_calendarday");this.protectedCreateWidgetModel=function(b){return new ec};this.protectedCreateWidgetUi=function(){return new Oa};this.createPropertyPanel=function(){return new N};this.protectedCreateInitialDialog=function(){return new ud}},
function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_PageTitleBar);a.setTypeDisplayName(c.get("widgetPageTitleBar","\u9875\u9762\u6807\u9898\u680f"));a.setIconFileName("widget_titlebar");this.getToolboxGroup=function(){return Dd};this.protectedCreateWidgetModel=function(b){return new va};this.protectedCreateWidgetUi=function(){return new uc};this.createPropertyPanel=function(){return new Ea};this.getMinSize=function(){return[40,20]};this.getSuggestSize=function(){return[320,
60]};this.isWidthLockedAlways=function(){return!0};this.isHeightLockedAlways=function(){return!0};this.selectSource=function(b,d,h){d.setPosition(0,0);d.setSize(0,d.getHeight());h(!0)}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_Panel);a.setTypeDisplayName(c.get("widgetPanel","\u7ec4\u5408\u5361\u7247"));a.setIconFileName("widget_panel");this.getToolboxGroup=function(){return Dd};this.protectedCreateWidgetModel=function(b){return new qc};this.protectedCreateWidgetUi=
function(){return new Za};this.getSuggestSize=function(){return[450,300]};this.getMinSize=function(){return[150,60]};this.createPropertyPanel=function(){return new ea}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_TabbedContainer);a.setTypeDisplayName(c.get("widgetTabbedContainer","\u9875\u7b7e\u63a7\u4ef6"));a.setIconFileName("widget_tabbedall");this.getToolboxGroup=function(){return Dd};this.protectedCreateWidgetModel=function(h){var m=new mc;h&&(m.addWidget(b(c.get("widgetOneTabbed",
"\u9875\u7b7e")),0),m.addWidget(b(c.get("widgetOneTabbed","\u9875\u7b7e")),0),m.addWidget(b(c.get("widgetOneTabbed","\u9875\u7b7e")),0));return m};var b=function(h){var m=new Gc;m.setHeadText(h);m.setVisible(!1);return m};this.protectedCreateWidgetUi=function(){return new Kb};this.getSuggestSize=function(){return[450,300]};this.getMinSize=function(){return[150,90]};this.getMargin=function(){return 5};this.createCustomDesignHandlerJqUi=function(h,m,n,E){return(new Cb(h,E)).createJqUi(m,n,h)};this.createPropertyPanel=
function(){return new ma};this.createOutlineMenu=function(h,m,n,E,ja){h.addItemModel(y.createActionMenuItem(c.get("appendOneTabbed","\u6dfb\u52a0\u9875\u7b7e"),function(ba){d(m,E,n,ja)}));return!0};var d=function(h,m,n,E){var ja=c.get("appendOneTabbed","\u6dfb\u52a0\u9875\u7b7e"),ba=c.get("tabbedHeadText","\u663e\u793a\u6587\u5b57"),T=new wd;T.setCaption(ja,ba);T.setEmptyEnabled(!1);T.setMaxLength(40);T.setText("",function(R,J){R&&(R=new Gc,R.setHeadText(J),R.setVisible(!1),J=L.getInstance(R.getWidgetTypeName()),
m.allocateNameForNewWidget(R,J),J=new Vd,J.setCaption(c.get("appendOneTabbed","\u6dfb\u52a0\u9875\u7b7e")),J.setValue(n,R),E.perform(J))});T.showDialogRightAnchorTo(h)}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_OneTabbed);a.setTypeDisplayName(c.get("widgetOneTabbed","\u9875\u7b7e"));a.setIconFileName("widget_tabbedone");this.getToolboxGroup=function(){return null};this.protectedCreateWidgetModel=function(b){return new Gc};this.protectedCreateWidgetUi=function(){return new kc};
this.createPropertyPanel=function(){return new H};this.isWidthLockedAlways=function(){return!0};this.isHeightLockedAlways=function(){return!0};this.createCustomDesignHandlerJqUi=function(b,d,h,m){h-=b.getY();return(new Cb(b.getParent(),m)).createJqUi(d,h,b)}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_ProgramableCard);a.setTypeDisplayName(c.get("widgetProgramableCard","\u7f16\u7a0b\u5f0f\u5361\u7247"));a.setIconFileName("widget_programable");this.isSupported=function(){return v.getProgramableCardExecutor()?
!0:!1};this.getToolboxGroup=function(){return Ed};this.protectedCreateWidgetModel=function(b){return new Qc};this.protectedCreateWidgetUi=function(){return new Ha};this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,d,h){v.getWidgetSourceSelector().selectProgramableCard(null,function(m){m?(d.setReferenceCustomMap(m),h(!0)):h(!1)})};this.createPropertyPanel=function(){return new q}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_CosmicCustomCard);
a.setTypeDisplayName(c.get("widgetCustomCard","\u81ea\u5b9a\u4e49\u5361\u7247"));a.setIconFileName("widget_customcard");this.isSupported=function(){return v.getCosmicCustomCardExecutor()?!0:!1};this.getToolboxGroup=function(){return Ed};this.protectedCreateWidgetModel=function(b){return new Xc};this.protectedCreateWidgetUi=function(){return new oa};this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,d,h){v.getCosmicCustomCardSourceSelector()(null,function(m){m?(d.setEncodedModel(m),
h(!0)):h(!1)})};this.createPropertyPanel=function(){return new k}},function(){bc.call(this);var a=this.protectedMethod;a.setTypeName(F.WidgetType_CloudhubSubscribes);a.setTypeDisplayName(c.get("widgetCloudhubSubscribes","\u4e91\u4e4b\u5bb6\u8ba2\u9605"));a.setIconFileName("widget_cloudhub");this.isSupported=function(){return v.getCloudhubSubscribesExecutor()?!0:!1};this.getToolboxGroup=function(){return Ed};this.protectedCreateWidgetModel=function(b){return new Tc};this.protectedCreateWidgetUi=function(){return new kb};
this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,d,h){v.getCloudhubSubscribesSourceSelector()(function(m){m||""===m?(d.setEncodedModel(m),h(!0)):h(!1)})};this.createPropertyPanel=function(){return new x}}]);L.registerUnknown(new function(){bc.call(this);this.protectedCreateWidgetModel=function(a){return new ya};this.protectedCreateWidgetUi=function(){return new gb};this.createPropertyPanel=function(){return new ic}});lb.Situation_Designtime=1;lb.Situation_Runtime_Preview=
16;lb.Situation_Runtime_Mobile=256;var vd=new function(){Mb.call(this);this.getGroupName=function(){return"Content"};this.getGroupDisplayName=function(){return c.get("groupContent","\u6570\u636e\u53ef\u89c6\u5316\u5185\u5bb9")}},Fd=new function(){Mb.call(this);this.getGroupName=function(){return"Filter"};this.getGroupDisplayName=function(){return c.get("groupFilter","\u7b5b\u9009\u5668")}},pd=new function(){Mb.call(this);this.getGroupName=function(){return"Common"};this.getGroupDisplayName=function(){return c.get("groupCommon",
"\u901a\u7528\u5185\u5bb9")}},Dd=new function(){Mb.call(this);this.getGroupName=function(){return"Container"};this.getGroupDisplayName=function(){return c.get("groupContainer","\u5bb9\u5668")}},Ed=new function(){Mb.call(this);this.getGroupName=function(){return"BizSystem"};this.getGroupDisplayName=function(){return c.get("groupBizSystem","\u4e1a\u52a1\u7cfb\u7edf\u5185\u5bb9")}};wa.KEY_VISUAL_DATA_PREPARED_SUCCESS="tagPrepared";wa.KEY_VISUAL_DATA_PREPARED_ERROR="tagPreparingFailed";wa.KEY_SELECTED=
"selected";wa.KEY_SELECTED_BY_API=wa.KEY_SELECTED+"_api";wa.KEY_SELECTED_BY_MANUAL=wa.KEY_SELECTED+"_manual";wa.KEY_PLAY="play";wa.KEY_OUTPUT_PARAM_REFRESHABLE="outputParamRefreshable";wa.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE="outputParamVisualUpdatable";fb.ACTION_ALL=255;fb.ACTION_NONE=0;fb.ACTION_EDIT=1;fb.ACTION_ANALYSIS=2;fb.ACTION_REFRESH=4;fb.ACTION_FILTER=8;fb.ACTION_FULLSCREEN=16;fb.ACTION_INFO=32;fb.ACTION_INSIGHT=64;ib.ACTION_ALL=255;ib.ACTION_FULLSCREEN=1;ib.ACTION_NONE=0;Xa.affectedTargetsToShortDisplay=
function(a,b,d){for(var h="",m=0;m<b.getItemCount();m++){var n=b.getItem(m);if((d&n.getType())==n.getType()){var E=[];var ja=E;if(n.isSettingComplete()){var ba=a.searchWidgetByName(n.getTargetWidgetName());ba?(ja.push(c.get("affectedTargetItem","\u201c#1\u201d").replace("#1",ba.getDisplayName())),n=!0):(ja.push(c.get("affectedTargetNotExist","\u4e0d\u5b58\u5728\u7ec4\u4ef6\u201c#1\u201d").replace("#1",n.getTargetWidgetName())),n=!1)}else ja.push(c.get("affectedTargetIncomplete","\u8bbe\u7f6e\u4e0d\u5b8c\u6574")),
n=!1;if(n)h+=E.join(""),h+=" ";else return E.join("")}}return h}})();(function(){function l(){var N=this,ea,ma,H,W,ta,Aa=!1;this.setVisualWidgetEditableConfirmer=function(Hb){ta=Hb};this.setHeightAnnouncer=function(Hb){W=Hb};var Sa=function(){H||(H=new Ia,N.protectedInit(H));return H};this.protectedInit=function(Hb){throw Error("Override");};this.setPreviewContext=function(Hb){Sa().setPreviewContext(Hb)};this.setFacadeCreator=function(Hb){Sa().setFacadeCreator(Hb)};this.createJqPage=function(Hb){ma=$("<div>");ma.appendTo(Hb)};this.resize=function(){ea&&(Ma()?Aa=!0:
Sa().relayoutAll(ea.getPage()))};var Ma=function(){var Hb=!1;ea.getPage().traversalDescendents(function($a){var rb=!1;$a.hasBeenFullscreen()&&(rb=Hb=!0);return rb});return Hb};this.setJsonModel=function(Hb,$a){var rb=new Wb;ea=new w;try{ea.fromJsonObject(Hb,rb)}catch(Wa){rb.setError(!0),window.console&&console.error(Wa)}N.protectedDecorateModel(ea);ea.addPropertyChangedListener(yb);$a&&$a(rb);Sa().changeSkin(ea,function(Wa){return Wa==ea},function(){var Wa=ea.getPage();Sa().clear();Sa().create(Wa,
ma);Wa=Sa().relayoutAll(Wa);W&&W(Wa);ma.parent().css("background-color",ma.css("background-color"));bb()});nb()};var bb=function(){ta&&Sa().traversalWidgetUiObjects(function(Hb){Hb.getModel().isInstanceOf(w.WidgetSuperType_BuiltinVisual)&&Hb.setVisualWidgetEditableConfirmer(ta)})};this.protectedDecorateModel=function(Hb){};this.protectedUndecorateModel=function(Hb){};this.destroy=function(){N.protectedUndecorateModel(ea);ea.getPage().traversalDescendents(function(Hb){Sa().getWidgetUiObject(Hb).destroy()})};
this.getEnvironmentDescription=function(){var Hb=ib.get("envBrowser","\u6d4f\u89c8\u5668\uff1a")+qa.getBrowserName()+" "+qa.getBrowserVersion(),$a=ib.get("envScreen","\u5168\u5c4f\u5206\u8fa8\u7387\uff1a");$a+=window.screen.width;$a=$a+"*"+window.screen.height;$a=$a+" "+ib.get("envScreenComment","\uff08\u5728\u6d4f\u89c8\u5668\u7f29\u653e100%\u7684\u60c5\u51b5\u4e0b\uff09");return Hb+"\r\n"+$a};this.hasSlideshow=function(){var Hb=!1;ea.getPage().traversalDescendents(function($a){return $a instanceof
xc&&$a.isSlideshowEnabled()?Hb=!0:!1});return Hb};this.slideshowPause=function(Hb){Sa().traversalWidgetUiObjects(function($a){var rb=$a.getModel();rb instanceof xc&&rb.isSlideshowEnabled()&&(Hb?$a.slideshowPause(!0):rb.isTopLevelSlideshow()&&$a.slideshowPause(!1))})};var nb=function(){var Hb=[];ea.getPage().traversalDescendents(function($a){Hb.push($a.getWidgetTypeName())});Ca.occur(Ca.DSB_WIDGET_TYPE,Hb)},yb=function(Hb,$a){if($a==w.KEY_RECT)Sa().updateWidgetRect(Hb);else if($a==xc.KEY_SWITCH_SUB){if(!Hb.hasBeenFullscreen()){var rb=
Sa().searchJqUiByModel(Hb.getParent());Hb=ma.parent();$a=Hb.prop("scrollLeft");var Wa=$a+Hb.prop("clientWidth"),dc=Hb.prop("scrollTop"),lc=dc+Hb.prop("clientHeight"),ac=[0,0];ac=Ba.upwardCoordinate(rb[0],ac,Hb[0]);rb=ac[0];ac=ac[1];var c={},D=!1;if(rb<$a||rb>Wa)D=!0,c.scrollLeft=rb;if(ac<dc||ac>lc)D=!0,c.scrollTop=ac;D&&Hb.animate(c)}}else $a==w.KEY_FULLSCREEN&&Aa&&!Ma()&&(Aa=!1,Sa().relayoutAll(ea.getPage()))};this.protectedMethod={getDashboardModel:function(){return ea},getPageUiManager:Sa}}function fc(){l.call(this);
var N=this,ea=this.protectedMethod,ma,H,W={};this.protectedInit=function(Ma){Aa(Ma,ma);var bb=new la;bb.setDesigntime(!1);Ma.hookWidgetCtrlProvider(bb)};this.protectedDecorateModel=function(Ma){Ma=Ma.getPage();H=Ma.getExhibitionMode();Ma.traversalDescendents(function(bb){W[bb.getName()]=[bb.getX(),bb.getY(),bb.getWidth(),bb.getHeight()]})};this.setCachedExhibitionMode=function(Ma){ma=Ma};this.getFreshExhibitionMode=function(){return H};this.updateLayoutAdapter=function(Ma){var bb=ea.getDashboardModel().getPage();
bb.traversalDescendents(function(nb){var yb=W[nb.getName()];nb.setPosition(yb[0],yb[1]);nb.setSize(yb[2],yb[3])});Aa(ea.getPageUiManager(),Ma);Ma=Sa(Ma);ta(Ma,bb);N.resize()};this.reparseRelativeDate=function(){var Ma=!1;ea.getPageUiManager().traversalWidgetUiObjects(function(bb){var nb=bb.getModel();nb.isInstanceOf(w.WidgetSuperType_Calendar)&&nb.getRelativeModel()&&(Ma=!0,bb.reparseRelativeDate())});return Ma};var ta=function(Ma,bb){var nb=new Ma;bb.setLayoutAdapter(nb);nb.initForParent(bb);for(var yb=
0;yb<bb.getWidgetCount();yb++){var Hb=bb.getWidget(yb);nb.initForChild(Hb);Hb.isContainer()&&ta(Ma,Hb)}},Aa=function(Ma,bb){Ma.setLayoutAdapterCreator(function(){!bb&&(bb=H);return new (Sa(bb))})},Sa=function(Ma){var bb={};bb[w.ExhibitionMode_Full]=gb;bb[w.ExhibitionMode_Fit]=sb;bb[w.ExhibitionMode_HFull]=Gb;Ma=bb[Ma];!Ma&&(Ma=Ob);return Ma}}function lb(){l.call(this);var N=this.protectedMethod,ea;this.protectedInit=function(ma){ma.setLayoutAdapterCreator(function(){return new Vb});var H=new za;ma.hookWidgetCtrlProvider(H)};
this.protectedDecorateModel=function(ma){ma=ma.getPage();ma.isMobileSkinActive()?ea=null:(ea=[ma.getSkin(),ma.getCustomCosmetic()],ma.setSkin(w.Skin_White))};this.protectedUndecorateModel=function(ma){ea&&(ma.getPage().setSkin(ea[0],ea[1]),N.getPageUiManager().changeSkin(ma,function(H){return!0},function(){}))}}function Mb(){var N=this,ea,ma=function(){ea||(ea=N.protectedCreateExhibition());return ea};this.protectedCreateExhibition=function(){throw Error("Override");};this.setRemoteImpl=function(H){ma().setFacadeCreator(function(W,
ta,Aa){return new Ra(H,W,ta,Aa)})};this.createJqUi=function(){var H=$("<div>");H.css("background-color","#fff");ma().createJqPage(H);Ba.layoutCtrlWithLRTB(H,0,0,null,0,0,null);return H};this.resize=function(){ma().resize()};this.setJsonModel=function(H,W){ma().setJsonModel(H,W)};this.getEnvironmentDescription=function(){return ma().getEnvironmentDescription()};this.hasSlideshow=function(){return ma().hasSlideshow()};this.slideshowPause=function(H){ma().slideshowPause(H)};this.setVisualWidgetEditableConfirmer=
function(H){ma().setVisualWidgetEditableConfirmer(H)};this.protectedMethod={getExhibition:ma}}function bc(){var N=this,ea=new Tb,ma,H,W,ta,Aa=function(){ma||(ma=N.protectedCreateExhibition());return ma};this.protectedCreateExhibition=function(){throw Error("Override");};this.protectedCreateExhibitionOwner=function(nb){throw Error("Override");};this.setFacadeCreator=function(nb){Aa().setFacadeCreator(nb)};this.resize=function(){Aa().resize()};this.setJsonModel=function(nb){Aa().setJsonModel(nb)};this.createJqUi=
function(nb){ea.addButton(Sa,"btn_backward",ib.get("backward","\u8fd4\u56de"));ea.addButton(function(){},"btn_preview",ib.get("fullscreen","\u5168\u5c4f")).getJqUi().on("click",Ma);Pa.addChangedListener(bb);N.protectedInitToolbar(ea,Aa());H=$("<div>");H.css("overflow","auto");H.addClass("dsb-previewer-contentpane");var yb=N.protectedCreateExhibitionOwner(H);Aa().setPreviewContext(nb);Aa().createJqPage(yb);nb=$("<div>");nb.addClass("dsb-previewer");nb.append(ea.getJqUi());nb.append(H);return nb};this.protectedInitToolbar=
function(nb,yb){};this.setBackwardListener=function(nb){W=nb};var Sa=function(){Pa.removeChangedListener(bb);Aa().destroy();W()},Ma=function(){Pa.request(document.body)},bb=function(nb){null==nb&&ta?(H.css({top:"",bottom:""}),ea.getJqUi().css("display",""),ta.remove(),ta=null):nb==document.body&&(H.css({top:0,bottom:0}),ea.getJqUi().css("display","none"),ta=$("<div>"),ta.text(ib.get("quitFullscreen","\u9000\u51fa\u5168\u5c4f")),ta.css({"z-index":65535,cursor:"pointer","line-height":"30px","text-align":"center",
"font-size":"14px",color:"#789","background-color":"rgba(128,128,128,0.2)"}),ta.on("click",function(yb){Pa.exit()}),ta.appendTo($(document.body)),Ba.layoutCtrl(ta,0,0,72,30))}}function Qb(){bc.call(this);this.protectedCreateExhibition=function(){return new fc};this.protectedCreateExhibitionOwner=function(N){return N};this.protectedInitToolbar=function(N,ea){N.addButton(function(){var ma=new Kc;ma.setOptionType(Kc.OPTION_OK);ma.setTitle(ib.get("currentEnvironment","\u5f53\u524d\u73af\u5883"));ma.setMessage(ea.getEnvironmentDescription());
ma.showDialog()},"btn_info",ib.get("environment","\u73af\u5883"))}}function vb(){bc.call(this);this.protectedCreateExhibition=function(){return new lb};this.protectedCreateExhibitionOwner=function(ea){var ma=$("<div>");ma.css({"background-color":"#000","border-radius":"12px"});ma.appendTo(ea);Ba.layoutCtrl(ma,4,4,380,700);N(ma);ea=$("<div>");ea.css({"background-color":"#000","border-radius":"4px"});ea.appendTo(ma);Ba.layoutCtrl(ea,375,150,8,60);ea=$("<div>");ea.css({"background-color":"#333","border-radius":"10px"});
ea.appendTo(ma);Ba.layoutCtrl(ea,60,10,12,12);ea=$("<div>");ea.css({"background-color":"#222","border-radius":"4px"});ea.appendTo(ma);Ba.layoutCtrl(ea,160,12,60,8);ea=$("<div>");ea.text(ib.get("preview","\u9884\u89c8"));ea.css({"text-align":"center","line-height":"40px","font-size":"14px",color:"#333","background-color":"#fff","border-bottom":"1px solid #ccc"});ea.appendTo(ma);Ba.layoutCtrlWithLRTB(ea,10,10,null,30,null,39);ea=$("<div>");ea.appendTo(ma);Ba.layoutCtrlWithLRTB(ea,10,10,null,70,30,null);
return ea};var N=function(ea){var ma=$("<div>");ma.css("transform-origin","left top");Ba.layoutCtrlWithLRTB(ma,170,null,30,null,0,7);ma.appendTo(ea);var H=$("<div>");H.css("background-color",ea.css("background-color"));H.appendTo(ma);Ba.layoutCtrlWithLRTB(H,14,0,null,0,0,null);H=$("<div>");H.css("background-color",ea.css("background-color"));H.appendTo(ma);Ba.layoutCtrlWithLRTB(H,0,null,14,null,0,2);var W=!1;ma.on("mouseenter",function(ta){W=!W;ma.css({transform:W?"rotate(40deg)":"",transition:"0.2s"})})}}
function Cb(){this.initForParent=function(N){throw Error("Override");};this.initForChild=function(N){throw Error("Override");};this.relayoutPage=function(N,ea){throw Error("Override");};this.relayout=function(N,ea,ma){throw Error("Override");}}function wa(){Cb.call(this);var N;this.initForParent=function(ea){ea.isInstanceOf(w.WidgetSuperType_CompositeContainer)||(N=new Za,N.setDesigningSize(ea.getClientWidth(),ea.getClientHeight()))};this.initForChild=function(ea){N&&N.appendBlock(ea.getName(),ea.getX(),
ea.getY(),ea.getWidth(),ea.getHeight(),ea.isWidthLocked(),ea.isHeightLocked())};this.protectedMethod={relayoutParentWidget:function(ea,ma,H){N&&N.transformTo(ma,H);for(ma=0;ma<ea.getWidgetCount();ma++){H=ea.getWidget(ma);if(N){var W=N.searchBlockRect(H.getName());if(!W)continue;H.setRectangle(W[0],W[1],W[2],W[3])}H.isContainer()&&H.getLayoutAdapter().relayout(H,H.getClientWidth(),H.getClientHeight())}}}}function gb(){wa.call(this);var N=this,ea=this.protectedMethod;this.relayoutPage=function(ma,H){H.parent().css("overflow",
"hidden");Ba.layoutCtrl(H,0,0,"100%","100%");var W=H.innerWidth();H=H.innerHeight();N.relayout(ma,W,H);return H};this.relayout=function(ma,H,W){ea.relayoutParentWidget(ma,H,W)}}function sb(){wa.call(this);var N=this.protectedMethod;this.relayoutPage=function(ea,ma){ma.parent().css("overflow","hidden");Ba.layoutCtrl(ma,0,0,"100%","100%");var H=ma.innerWidth(),W=ma.innerHeight(),ta=0,Aa=0,Sa=H,Ma=W,bb=ea.getClientWidth(),nb=ea.getClientHeight();bb/=nb;nb=Sa/Ma;bb>nb?(Ma=Math.round(Sa/bb),Aa=W-Ma>>1):
bb<nb&&(Sa=Math.round(Ma*bb),ta=H-Sa>>1);Ba.layoutCtrl(ma,ta,Aa,Sa,Ma);N.relayoutParentWidget(ea,Sa,Ma);return W};this.relayout=function(ea,ma,H){N.relayoutParentWidget(ea,ma,H)}}function Gb(){wa.call(this);var N=this,ea=this.protectedMethod;this.relayoutPage=function(ma,H){H.parent().css({"overflow-x":"hidden","overflow-y":"auto"});var W=H.parent().prop("clientWidth");var ta=ma.getClientWidth();var Aa=ma.getClientHeight();ta=parseInt(Aa*W/ta);Ba.layoutCtrl(H,0,0,W,ta);N.relayout(ma,W,ta);return ta};
this.relayout=function(ma,H,W){W=ma.getClientWidth();var ta=ma.getClientHeight();W=parseInt(ta*H/W);ea.relayoutParentWidget(ma,H,W)}}function Ob(){Cb.call(this);var N=this;this.initForParent=function(ea){};this.initForChild=function(ea){};this.relayoutPage=function(ea,ma){ma.parent().css("overflow","auto");var H=ea.getClientWidth(),W=ea.getClientHeight();Ba.layoutCtrl(ma,0,0,H,W);N.relayout(ea,-1,-1);return W};this.relayout=function(ea,ma,H){for(ma=0;ma<ea.getWidgetCount();ma++)H=ea.getWidget(ma),
H.setRectangle(H.getX(),H.getY(),H.getWidth(),H.getHeight()),H.isContainer()&&H.getLayoutAdapter().relayout(H,H.getClientWidth(),H.getClientHeight())}}function Vb(){Cb.call(this);var N;this.initForParent=function(H){H.getTopPage().isMobileDesired()&&(N=new Gb,N.initForParent(H))};this.initForChild=function(H){N&&N.initForChild(H)};this.relayoutPage=function(H,W){if(N)return N.relayoutPage(H,W);W.parent().css({"overflow-x":"hidden","overflow-y":"auto"});var ta=W.parent().prop("clientWidth");H=ea(H,
ta,6,6);Ba.layoutCtrl(W,0,0,ta,H);return H};this.relayout=function(H,W,ta){if(N)N.relayout(H,W,ta);else return ea(H,W,0,6)};var ea=function(H,W,ta,Aa){W-=2*ta;var Sa=ta,Ma=0;if(H.getTopPage().getMobileLayoutConverter()==w.MobileLayoutConverter_ByPosition)var bb=ma(H);else{bb=[];for(var nb=0;nb<H.getWidgetCount();nb++){var yb=H.getWidget(nb);bb.push(yb)}}for(nb=0;nb<bb.length;nb++){yb=bb[nb];if(yb.isContainer()){var Hb=yb.getHeight();yb.setSize(W,Hb);var $a=yb.getClientWidth();Hb=yb.getLayoutAdapter().relayout(yb,
$a,Hb);yb.setClientSize($a,Hb);$a=yb.getHeight();yb instanceof Ka&&(Sa=0)}else yb.isInstanceOf(w.WidgetSuperType_BuiltinVisual)||yb instanceof Ib||yb instanceof cc||yb instanceof Ec?$a=yb.isHeightLocked()?yb.getHeight():parseInt(.618*W):yb instanceof zc?$a=W*yb.getHeight()/yb.getWidth():yb.isInstanceOf(w.WidgetSuperType_WithLabel)?yb.getFrontLabel()?(yb.setFrontLabelPosition("top"),$a=50):$a=32:$a=yb.getHeight();yb.setRectangle(ta,Sa,W,$a);Ma=H instanceof xc?Math.max(Ma,H.getHeadHeight()+$a+Aa):Sa+=
$a+Aa}return Ma},ma=function(H){for(var W=null,ta=[],Aa=[],Sa=0;Sa<H.getWidgetCount();Sa++){var Ma=H.getWidget(Sa);Ma.isEldestSon()?W=Ma:Ma.isInstanceOf(w.WidgetSuperType_WithLabel)?ta.push(Ma):Aa.push(Ma)}H=function(bb,nb){var yb=bb.getY()-nb.getY();return 0==yb?bb.getX()-nb.getX():yb};ta=ta.sort(H);Aa=Aa.sort(H);ta=ta.concat(Aa);W&&ta.splice(0,0,W);return ta}}function Wb(){var N=!1,ea=!1;this.setError=function(ma){N=ma};this.isError=function(){return N};this.setTooModern=function(ma){ea=ma};this.isTooModern=
function(){return ea}}function Rb(N,ea,ma){function H(W){var ta,Aa,Sa,Ma,bb;(function(){ta=$("<div>");ta.addClass("sa-ctrl-common-modallayer");ta.appendTo($(document.body));ta.on("click",function(Hb){nb()});Aa=$("<div>");Aa.addClass("dsb-toolbar-dropdown-area");Aa.appendTo(ta);Aa.css("max-height",Math.floor(ta.prop("clientHeight")-Aa.prop("offsetTop")-30));Sa=$("<div>");Sa.addClass("dsb-toolbar-dropdown-container");Sa.appendTo(Aa);Ma=$("<div>");Ma.addClass("dsb-toolbar-dropdown-collapse");Ma.appendTo(Aa);
var yb=$("<div>");yb.text("<<");yb.addClass("dsb-toolbar-dropdown-collapse-text");yb.appendTo(Ma)})();this.getJqContainer=function(){return Sa};this.animateHeight=function(yb,Hb){0===yb?nb():(yb+=Ma.prop("offsetHeight"),Aa&&Aa.animate({height:yb},{duration:100,queue:!1,complete:Hb}))};this.setCollapseListener=function(yb){bb=yb};var nb=function(){Aa&&(Aa.animate({height:0},function(){ta.remove()}),Aa=null,bb&&bb())}}this.setCurrentName=function(W){ea.setCurrentName(W)};this.showShortPrompt=function(W,
ta,Aa){ea.showShortPrompt(W,ta,Aa)};this.setDirtyListener=function(W){ma.hookDirtyListener(W)};this.clearDirty=function(){ma.setDirty(!1)};this.isDirty=function(){return ma.isDirty()};this.insertToolbarButton=function(W,ta,Aa,Sa){return N.addButtonForHeadCustom(W,ta,Aa,Sa)};this.appendToolbarButton=function(W,ta,Aa,Sa){return N.addButtonForTailCustom(W,ta,Aa,Sa)};this.insertToolbarSeperator=function(){N.addSeperatorForHeadCustom()};this.insertToolbarMenu=function(W,ta,Aa,Sa){return N.addMenuButtonForHeadCustom(function(){return W},
ta,Aa,Sa)};this.appendToolbarMenu=function(W,ta,Aa,Sa){return N.addMenuButtonForTailCustom(function(){return W},ta,Aa,Sa)};this.getWarningRuleHelper=function(){return ma.getWarningRuleHelper()};this.showModalUi=function(W){return new H(W.getJqUi())}}function Tb(){var N=new rc,ea,ma=$("<div>"),H=$("<div>"),W=$("<div>");this.getJqUi=function(){ea||(ea=N.getJqUi(),ea.addClass("dsb-toolbar"),ta(ma),ta(H),ta(W));return ea};this.refresh=function(){N.refresh()};this.addSeperator=function(){N.appendSeperator(H)};
this.addSeperatorForHeadCustom=function(){N.appendSeperator(ma)};this.addButton=function(Sa,Ma,bb,nb){return Aa(H,!1,Sa,Ma,bb,nb)};this.addButtonForHeadCustom=function(Sa,Ma,bb,nb){return Aa(ma,!1,Sa,Ma,bb,nb)};this.addButtonForTailCustom=function(Sa,Ma,bb,nb){return Aa(W,!1,Sa,Ma,bb,nb)};this.addMenuButton=function(Sa,Ma,bb,nb){return Aa(H,!0,Sa,Ma,bb,nb)};this.addMenuButtonForHeadCustom=function(Sa,Ma,bb,nb){return Aa(ma,!0,Sa,Ma,bb,nb)};this.addMenuButtonForTailCustom=function(Sa,Ma,bb,nb){return Aa(W,
!0,Sa,Ma,bb,nb)};var ta=function(Sa){Sa.css({"float":"left",position:"relative",height:"100%"});Sa.appendTo(ea)},Aa=function(Sa,Ma,bb,nb,yb,Hb){Sa=N.createButton(Sa,Ma,bb,yb,Hb);Sa.setIconSetter(function($a,rb){Ea.background($a,rb)});Sa.setIconName(nb);return Sa}}function Na(){var N,ea,ma,H,W;this.getJqUi=function(){N||(N=$("<div>"),N.addClass("dsb-statusbar"),ea=$("<span>"),ea.addClass("dsb-statusbar-name"),ea.appendTo(N),ma=$("<span>"),ma.addClass("dsb-statusbar-dirtystate"),ma.appendTo(N),H=$("<span>"),
H.addClass("dsb-statusbar-prompt"),H.appendTo(N));return N};this.setCurrentName=function(Aa){ea.text(Aa)};this.showDirtyState=function(Aa){ma.text(Aa?"*":"")};this.showShortPrompt=function(Aa,Sa,Ma){clearTimeout(W);H.text(Aa);H.css("color",Ma?Ma:"");if(Sa){var bb=0,nb=function(){if(6<bb)ta();else{if(0==bb%2){H.text(Aa);var yb=650}else H.text(""),yb=350;W=setTimeout(nb,yb);bb++}};nb()}else ta()};var ta=function(){W=setTimeout(function(){H.text("")},5E3)}}function Eb(){var N=this,ea,ma,H,W,ta,Aa;this.setGlobalDependence=
function(Sa){ea=Sa};this.updateDashboardModel=function(){if(W){var Sa=ea.getDashboardModel();W.setDashboardModel(Sa);Aa.setDashboardModel(Sa,function(){W.getWidgetSelectedModel().setSelected(Sa.getPage())})}};this.resize=function(){ma.resize();Aa.requestWidgetsRepainting()};this.getJqUi=function(){if(!ma){var Sa=new Ua,Ma=new Ja;H=new zb;H.setDragingHandler(Sa);W=new hc;W.setGlobalDependence(ea);W.setWidgetSelectedModel(Ma);ta=new Pb;ta.setGlobalDependence(ea);ta.setWidgetSelectedModel(Ma);Aa=new Ha;
Aa.setGlobalDependence(ea);Aa.setWidgetSelectedModel(Ma);Aa.setDragingHandler(Sa);Sa=new ic;Sa.setHorizontalSplit(!1);Sa.setSplitLineWide(8);Sa.setResizeMode(ic.RESIZE_MODE_FIRST_FIXED);Sa.setFirstSize(360,60,600);Sa.setSecondSize(-1,60,-1);Sa.setFirstChild(ic.createChildWrapper(H.getJqUi()));Sa.setSecondChild(ic.createChildWrapper(W.getJqUi()));Ma=new ic;Ma.setHorizontalSplit(!0);Ma.setSplitLineWide(8);Ma.setResizeMode(ic.RESIZE_MODE_SECOND_FIXED);Ma.setFirstSize(-1,120,-1);Ma.setSecondSize(220,
80,600);Ma.setFirstChild(ic.createChildWrapper(Aa.getJqUi()));Ma.setSecondChild(ic.createChildWrapper(ta.getJqUi()));ma=new ic;ma.setHorizontalSplit(!0);ma.setSplitLineWide(8);ma.setResizeMode(ic.RESIZE_MODE_FIRST_FIXED);ma.setFirstSize(206,60,640);ma.setSecondSize(-1,600,-1);ma.setFirstChild(Sa);ma.setSecondChild(Ma);ma.getJqUi().addClass("dsb-main-body");N.updateDashboardModel()}return ma.getJqUi()};this.collectWidgetsContextForPreview=function(){return Aa.collectWidgetsContextForPreview()};this.requestSelectingWidget=
function(Sa){W.getWidgetSelectedModel().setSelected(Sa)}}function Ja(){var N=null,ea=[];this.addChangedListener=function(ma){ea.push(ma)};this.setSelected=function(ma){if(N!=ma){var H=N;ma=N=ma;for(var W=0;W<ea.length;W++)(0,ea[W])(H,ma)}};this.getSelected=function(){return N}}function fb(){var N=null,ea;this.putByCut=function(ma){N=ma;ea=!1};this.putByCopy=function(ma){N=ma;ea=!0};this.isCopying=function(){return ea};this.pickToPasteByCut=function(){var ma=N;N=null;return ma};this.getTarget=function(){return N};
this.hasNothing=function(){return null==N}}function ub(){var N=this,ea;this.getJqUi=function(){if(!ea){ea=$("<div>");ea.addClass("dsb-workarea");var ma=$("<div>");ma.addClass("dsb-workarea-title");ma.appendTo(ea);var H=$("<div>");H.addClass("dsb-workarea-title-text");H.appendTo(ma);ma=$("<div>");ma.addClass("dsb-workarea-container");ma.appendTo(ea);N.protectedInitUi(H,ma)}return ea};this.protectedInitUi=function(ma,H){throw Error("Override");}}function zb(){ub.call(this);var N=$("<div>");this.setDragingHandler=
function(H){H.bindDragContainer(N,ma)};this.protectedInitUi=function(H,W){H.text(ib.get("toolboxAreaTitle","\u5de5\u5177\u7bb1"));H=ea();var ta={};N.css({"overflow-x":"hidden","overflow-y":"auto"});Ba.layoutCtrlWithLRTB(N,0,0,null,0,0,null);for(var Aa=eb.getToolboxInstances(),Sa=0;Sa<Aa.length;Sa++){var Ma=Aa[Sa],bb=Ma.getToolboxGroup();if(bb){var nb=ta[bb.getGroupName()];if(!nb){nb=$("<div>");nb.addClass("dsb-toolbox-group");var yb=$("<div>");yb.addClass("dsb-toolbox-group-title");yb.text(bb.getGroupDisplayName());
yb.appendTo(nb);ta[bb.getGroupName()]=nb;nb.appendTo(N)}bb=void 0;yb=Ma;var Hb=H;Ma=$("<div>");Ma.addClass("dsb-toolbox-widget");Ma.data("model",yb);var $a=$("<div>");$a.addClass("dsb-toolbox-widget-icon");Ea.background($a,yb.getIconFileName());$a.appendTo(Ma);var rb=$("<div>");rb.addClass("dsb-toolbox-widget-text");rb.appendTo(Ma);var Wa=$.trim(yb.getTypeDisplayName());60<Hb(Wa)&&(0<Wa.indexOf(" ")?bb=Wa.split(" "):(bb=Wa.length>>1,bb=[Wa.substr(0,bb),Wa.substr(bb)]));if(bb){for(Wa=0;Wa<bb.length;Wa++){Hb=
bb[Wa];var dc=$("<div>");dc.css("line-height","14px");dc.text(Hb);dc.appendTo(rb)}rb.css("bottom",0);rb.css("height",14*bb.length)}else rb.text(Wa);yb.isReleased()||($a.addClass("dsb-toolbox-widget-icon_unreleased"),rb.addClass("dsb-toolbox-widget-text_unreleased"),bb=$("<div>"),bb.addClass("dsb-toolbox-widget-unreleased"),Ea.background(bb,"widget_unreleased"),bb.appendTo(Ma));Ma.appendTo(nb)}}N.appendTo(W);H(null)};var ea=function(){var H=new Oa;H.setFontSize(nc.getFontSize());return function(W){return null===
W?(H.destroy(),0):H.measureWidth(W)}},ma=function(H){return(H=Ba.upwardSearchHasClass(H,N,"dsb-toolbox-widget"))?H.data("model"):null}}function hc(){ub.call(this);var N=this,ea,ma,H,W,ta,Aa=!0,Sa=!1,Ma,bb,nb,yb;this.setDashboardModel=function(Q){ma&&ma.removeChildrenChangedListener(c);ma&&ma.removePropertyChangedListener(D);ma=Q;ma.addChildrenChangedListener(c);ma.addPropertyChangedListener(D);ta&&Hb()};this.setGlobalDependence=function(Q){ea=Q};this.setWidgetSelectedModel=function(Q){H=Q;H.addChangedListener(C)};
this.getWidgetSelectedModel=function(){return H};this.protectedInitUi=function(Q,ra){Q.text(ib.get("outlineAreaTitle","\u5927\u7eb2"));Ma=new Jc;Ma.setText("\u2191");Ma.setTooltips(ib.get("moveUp","\u4e0a\u79fb"));Ma.addActionListener(K);bb=new Jc;bb.setText("\u2193");bb.setTooltips(ib.get("moveDown","\u4e0b\u79fb"));bb.addActionListener(K);Ma.getJqUi().appendTo(Q);bb.getJqUi().appendTo(Q);Ba.layoutCtrlWithLRTB(Ma.getJqUi(),null,22,20,2,2,null);Ba.layoutCtrlWithLRTB(bb.getJqUi(),null,2,20,2,2,null);
ta=new yc;ta.setBorderVisible(!1);ta.setToggleSelectingEnabled(!1);ta.setCustomItemPainter($a);ta.setCustomSelectedsPainter(rb);ta.addSelectedChangedListener(O);Q=ta.getJqUi();Q.appendTo(ra);Ba.layoutCtrlWithLRTB(Q,0,0,null,0,0,null);ma&&Hb()};var Hb=function(){for(var Q=[],ra=[ma.getPage()];0<ra.length;){var r=ra.pop();Q.push(r);if(r.isContainer())for(var z=r.getWidgetCount()-1;0<=z;z--){var I=r.getWidget(z);ra.push(I)}}ta.setItemModels(Q)},$a=function(Q,ra){Q.attr("name","ol_"+ra.getName());for(var r=
-1,z=ra;z;)r++,z=z.getParent();r*=18;z=ra.getParent()?!1:!0;var I=eb.getInstance(ra.getWidgetTypeName()),aa=$("<div>");aa.addClass("dsb-outline-listitem-icon");aa.data("myIconName",I.getIconFileName()+"_min");aa.appendTo(Q);I=$("<div>");I.addClass("dsb-outline-listitem-text");I.appendTo(Q);var v=$("<div>");v.addClass("dsb-outline-listitem-op");v.text("...");v.hide();v.appendTo(Q);aa.css("left",r+"px");I.css("left",r+20+"px");Wa(Q,!1);dc(ra,I);!z&&lc(ra,Q);v.data("widget",ra);Q.on("mouseenter",fa);
Q.on("mouseleave",e);v.on("click",g)},rb=function(Q,ra){for(var r=0;r<Q.length;r++){var z=Q[r];Wa(z,!1)}for(r=0;r<ra.length;r++)z=ra[r],Wa(z,!0)},Wa=function(Q,ra){Q=Q.children().first();var r=Q.data("myIconName");Ea.background(Q,r+(ra?"_selected":""))},dc=function(Q,ra){!ra&&(ra=ac(Q).find(".dsb-outline-listitem-text"));ra.text(Q.getDisplayName())},lc=function(Q,ra){!ra&&(ra=ac(Q));var r=Q.getParent(),z=ra.children().first(),I=z.find(".dsb-outline-listitem-icon_alarm"),aa=r.getClientWidth(),v=r.getClientHeight();
Q.getX()+Q.getWidth()>aa||Q.getY()+Q.getHeight()>v?0==I.length&&(I=Ic.createWarning(),I.addClass("dsb-outline-listitem-icon_alarm"),I.appendTo(z),z=ib.get("outside","#1 \u8d85\u51fa\u5176\u6240\u5728\u5bb9\u5668 #2 \u7684\u8303\u56f4\u3002"),z=z.replace("#1",Q.getDisplayName()),z=z.replace("#2",r.getDisplayName()),ra.attr("title",z)):(I.remove(),ra.attr("title",null))},ac=function(Q){return ta.getJqUi().find("[name=ol_"+Q.getName()+"]")},c=function(Q,ra,r){Hb();Q==w.KEY_MOVE_CHILD&&Y()},D=function(Q,
ra){ra==w.KEY_PAGE_SIZE||ra==w.KEY_RECT?(ra!=w.KEY_PAGE_SIZE&&lc(Q),U(Q)):ra==w.KEY_PAGE_UNIFIED_CARD?Q.traversalDescendents(function(r){U(r)}):ra==w.KEY_CARD_SURFACE&&Q.isContainer()?Q.traversalMeAndDescendents(function(r){U(r)}):ra==w.KEY_CARD_TITLE||ra==Ab.KEY_FULLSCREEN_ALLOWED?U(Q):ra==w.KEY_DISPLAY_NAME?dc(Q):ra==xc.KEY_SWITCH_SUB&&H.setSelected(Q)},U=function(Q){if(Q.isContainer())for(var ra=0;ra<Q.getWidgetCount();ra++){var r=Q.getWidget(ra);lc(r)}},C=function(Q,ra){Sa||(Aa=!1,Q=ra?[ra]:[ma.getPage()],
ta.setSelecteds(Q),ta.scrollSelectedToVisible(),Aa=!0);for(Q=[];ra&&ra!=ma.getPage();)Q.push(ra),ra=ra.getParent();for(;0<Q.length;)ra=Q.pop(),ra.setVisible(!0);Y()},O=function(Q,ra,r){Aa&&(Sa=!0,H.setSelected(r[0]),Sa=!1)},K=function(Q){var ra=Q.getUserObject();!ra&&(ra=0);ra++;Q.setUserObject(ra);Q==Ma&&(ra=-ra);ia(ra);clearTimeout(nb);nb=setTimeout(function(){yb&&yb.remove();yb=null;var r=Q.getUserObject();Q.setUserObject(null);Q==Ma&&(r=-r);var z=H.getSelected(),I=new k;I.setCaption(0>r?ib.get("moveUp",
"\u4e0a\u79fb"):ib.get("moveDown","\u4e0b\u79fb"));I.setValue(z,r);ea.getCommandManager().perform(I)},375)},ia=function(Q){var ra=H.getSelected();if(!yb){var r=ac(ra),z=r.prop("offsetTop")+(r.prop("offsetHeight")>>1);yb=$("<div>");yb.css({"background-color":r.css("background-color")});yb.appendTo(r.parent());Ba.layoutCtrl(yb,0,z,"100%",2)}r=ra.getParent();z=r.getWidget(0).isEldestSon()?1:0;for(var I=r.getWidgetCount(),aa,v=0;v<I;v++)if(r.getWidget(v)==ra){aa=v;break}aa=Math.min(I-1,Math.max(z,aa+
Q));ra=r.getWidget(aa);if(0<Q)for(;ra.isContainer()&&0<ra.getWidgetCount();)ra=ra.getWidget(ra.getWidgetCount()-1);ra=ac(ra);z=ra.prop("offsetTop")+(0<Q?ra.prop("offsetHeight"):0);yb.animate({top:z},250)},Y=function(){var Q=H.getSelected();Ma.setUserObject(null);bb.setUserObject(null);var ra=Q.getParent();if(ra&&!Q.isEldestSon()){var r=ra.getWidget(0);r.isEldestSon()?Ma.setEnabled(ra.getWidget(1)!=Q):Ma.setEnabled(r!=Q);bb.setEnabled(ra.getWidget(ra.getWidgetCount()-1)!=Q)}else Ma.setEnabled(!1),
bb.setEnabled(!1)},fa=function(Q){$(Q.currentTarget).children().last().show()},e=function(Q){$(Q.currentTarget).children().last().hide()},g=function(Q){var ra=$(Q.currentTarget),r=ra.parent(),z=ra.data("widget"),I=z.getParent()?!1:!0;if((Q=ra.data("menu"))&&Q.isShowing())ra.data("menu",null),Q.hide();else{var aa=new Dc;y(aa,r,z);I||(aa.addItemModel(uc.createActionMenuItem(ib.get("rename","\u91cd\u547d\u540d"),function(v){G(r)})),z.getWidgetTypeName()!=w.WidgetType_PageTitleBar&&(aa.addSeperator(),
aa.addItemModel(uc.createActionMenuItem(ib.get("cut","\u526a\u5207"),pa)),aa.addItemModel(uc.createActionMenuItem(ib.get("copy","\u590d\u5236"),Ga))));z.isContainer()&&(Q=uc.createActionMenuItem(ib.get("paste","\u7c98\u8d34"),Va),Q.setEnabled(!u().hasNothing()),aa.addItemModel(Q));I||(aa.addSeperator(),aa.addItemModel(uc.createActionMenuItem(ib.get("remove","\u5220\u9664"),Z)));Q=new uc;Q.setModel(aa);Q.setHideListener(function(){ra.data("menu",null)});ra.data("menu",Q);I=N.getJqUi();aa=Math.max(80,
Math.min(120,.8*I.innerWidth()));z=[-aa-4,0];z=Ba.upwardCoordinate(ra[0],z,I[0]);Q.setWidth(aa);Q.show(I,z[0],z[1],ra,!0,[0,ra.outerHeight()])}},y=function(Q,ra,r){eb.getInstance(r.getWidgetTypeName()).createOutlineMenu(Q,ra,r,ma,ea.getCommandManager())&&Q.addSeperator()},u=function(){W||(W=new fb);return W},G=function(Q){var ra=H.getSelected(),r=ra.getDisplayName(),z=ib.get("displayName","\u540d\u79f0"),I=$.trim(ra.getDisplayName()),aa=new Qa;aa.setCaption(r,z);aa.setEmptyEnabled(!1);aa.setMaxLength(40);
aa.setClosingChecker(function(v){return v!=I&&ma.isDisplayNameExist(v)?ib.get("duplicatedDisplayName","\u540d\u79f0\u91cd\u590d"):null});aa.setText(ra.getDisplayName(),function(v,t){v&&(v=new V,v.setCaption(ib.get("actionRename","\u4fee\u6539\u201c#1\u201d\u540d\u79f0\u4e3a\u201c#2\u201d").replace("#1",I).replace("#2",t)),v.setMethod(ra.getDisplayName,ra.setDisplayName),v.setValue(t),ea.getCommandManager().perform(v))});aa.showDialogRightAnchorTo(Q)},Z=function(Q){Q=H.getSelected();var ra=new q;ra.setCaption(ib.get("removeWidget",
"\u5220\u9664\u201c#1\u201d").replace("#1",Q.getDisplayName()));ra.setValue(Q.getParent(),Q);ea.getCommandManager().perform(ra)},pa=function(Q){Q=H.getSelected();var ra=new x;ra.setCaption(ib.get("cutWidget","\u526a\u5207\u201c#1\u201d").replace("#1",Q.getDisplayName()));ra.setValue(Q.getParent(),Q);ra.setClipboard(u());ea.getCommandManager().perform(ra)},Ga=function(Q){ea.showBlockingPrompt(ib.get("copying","\u6b63\u5728\u590d\u5236\u7ec4\u4ef6"));Q=H.getSelected();La(Q,function(ra){u().putByCopy(ra);
ea.showBlockingPrompt(!1)})},Va=function(Q){Q=H.getSelected();var ra=u().getTarget(),r=[];Q.isCanContain(ra,r)&&ra.isCanBeContained(Q,r)?u().isCopying()?Ya(Q,ra):sa(Q,ra):(Q=r.join(" "),ra=new Kc,ra.setOptionType(Kc.OPTION_OK),ra.setMessage(Q),ra.showDialog())},Ya=function(Q,ra){ea.showBlockingPrompt(ib.get("pasting","\u6b63\u5728\u7c98\u8d34\u7ec4\u4ef6"));La(ra,function(r){ma.reallocateNameForCopyPasteWidget(r);for(var z=0;z<Q.getWidgetCount();z++){var I=Q.getWidget(z);r.getX()==I.getX()&&r.getY()==
I.getY()&&r.getWidth()==I.getWidth()&&r.getHeight()==I.getHeight()&&(r.setPosition(r.getX()+10,r.getY()+10),z=0)}z=new Sc;z.setCaption(ib.get("pasteWidget","\u7c98\u8d34\u201c#1\u201d").replace("#1",r.getDisplayName()));z.setValue(Q,r);ea.getCommandManager().perform(z);ea.showBlockingPrompt(!1)})},sa=function(Q,ra){var r=ea.getCommandManager();r.compositeStart(ib.get("pasteWidget","\u7c98\u8d34\u201c#1\u201d").replace("#1",ra.getDisplayName()));ra.isContainer()&&ra.traversalMeAndDescendents(function(z){z.getDisplayName();
z.getName()});ma.reallocateNameForCutPasteWidget(ra,function(z,I){var aa=new V;aa.setMethod(z.getDisplayName,z.setDisplayName);aa.setValue(I);r.perform(aa)},function(z,I){var aa=new V;aa.setMethod(z.getName,z.setName);aa.setValue(I);r.perform(aa)});ra=new A;ra.setValue(Q);ra.setClipboard(u());r.perform(ra);r.compositeEnd()},La=function(Q,ra){var r=ma.collectStylesToJsonObject(Q),z=Q.toJsonObject(),I=eb.getInstance(Q.getWidgetTypeName()).createWidgetModel();I.fromJsonObject(z);r&&ma.distributeStylesFromJsonObject(I,
r);Q=[];for(r=[I];0<r.length;){z=r.shift();if(z.isContainer())for(var aa=0;aa<z.getWidgetCount();aa++)r.push(z.getWidget(aa));z.isInstanceOf(w.WidgetSuperType_Referable)&&Q.push(z)}var v=Q.length;if(0==v)ra(I);else{var t=0;for(aa=0;aa<v;aa++)Q[aa].copyReference(function(){t++;t==v&&ra(I)})}}}function Pb(){ub.call(this);var N,ea,ma,H;this.setGlobalDependence=function(ta){N=ta};this.protectedInitUi=function(ta,Aa){ta.text(ib.get("propertyAreaTitle","\u5c5e\u6027"));ma=Aa};this.setWidgetSelectedModel=
function(ta){ea=ta;ea.addChangedListener(W)};var W=function(ta,Aa){ma.empty();H&&H.destroy();Aa&&(H=eb.getInstance(Aa.getWidgetTypeName()).createPropertyPanel(),H.setGlobalDependence(N),H.setWidget(Aa),ta=H.getJqUi(),Ba.layoutCtrlWithLRTB(ta,0,0,null,0,0,null),ma.append(ta))}}function Ha(){var N=this,ea,ma,H,W,ta=new ob,Aa,Sa,Ma,bb=!1;this.setGlobalDependence=function(r){ea=r};this.setDashboardModel=function(r,z){ma&&ma.removePropertyChangedListener(sa);ma&&ma.removeChildrenChangedListener(Ya);ma=
r;ma.addPropertyChangedListener(sa);ma.addChildrenChangedListener(Ya);ta.changeSkin(ma,function(I){return I==ma},function(){Wa();z()})};this.setWidgetSelectedModel=function(r){Ma=r;Ma.addChangedListener(La)};this.setDragingHandler=function(r){r.bindDropContainer(N.getJqUi(),u,G,Z)};this.getJqUi=function(){if(!H){ta.setFacadeCreator(ea.createFacade);ta.setWidgetJqUiDecorator(lc);ta.setWidgetEditedListener(ac);H=$("<div>");H.addClass("dsb-pagearea");H.on("mousemove",yb);H.on("mousedown",Hb);H.on("mouseleave",
$a);var r=$("<div>");r.addClass("dsb-pagearea-page");r.appendTo(H);W=r;r=$("<div>");Ba.layoutCtrl(r,0,0,1,1);r.appendTo(H);ma&&Wa()}return H};this.requestWidgetsRepainting=function(){nb().traversalDescendents(function(r){r.setRectangle(r.getX(),r.getY(),r.getWidth(),r.getHeight())})};this.collectWidgetsContextForPreview=function(){var r={};ta.traversalWidgetUiObjects(function(z){var I=z.getModel().getName();z=z.collectContextForPreview();r[I]=z});return r};var nb=function(){return ma.getPage()},yb=
function(r){r=$(r.target);!Ba.upwardSearchHasClass(r,H,C())&&!Ba.upwardSearchHasClass(r,H,U())&&(r=(r=Ba.upwardSearchHasClass(r,H,c()))?ta.getWidgetNameByJqUi(r):null,Aa!=r&&(Aa&&rb(Aa),Aa=r))&&(r=ma.searchWidgetByName(Aa),ta.getWidgetUiObject(r).inside(),ia()!=r&&O(r))},Hb=function(r){var z=$(r.target);if(!(Ba.upwardSearchHasClass(z,H,C())||Ba.upwardSearchHasClass(z,H,U())||Ba.upwardSearchHasClass(z,H,c()))){var I=[r.offsetX,r.offsetY];I=Ba.upwardCoordinate(z[0],I,H[0]);r=$(r.currentTarget);I[0]>
r.prop("scrollLeft")+r.prop("clientWidth")||I[1]>r.prop("scrollTop")+r.prop("clientHeight")||null!=ia()&&K(nb())}},$a=function(r){Aa&&(rb(Aa),Aa=null)},rb=function(r){(r=ma.searchWidgetByName(r))&&ta.getWidgetUiObject(r).outside();O(null)},Wa=function(){ta.clear();dc();ta.create(nb(),W)},dc=function(){var r=nb().getWidth(),z=nb().getHeight();W.css({width:r,height:z});W.siblings().css({left:r+20,top:z+20})},lc=function(r,z){r.addClass(c());r.on("mousedown",function(I){ia()!=z&&(I=Ba.upwardSearchHasClass($(I.target),
H,c()),r[0]==I[0]&&fa())})},ac=function(){ea.setDirty(!0)},c=function(){return"dsb-pagearea-widget"},D=function(){return"dsb-pagearea-selecting"},U=function(){return"dsb-pagearea-selected"},C=function(){return"dsb-pagearea-preselect"},O=function(r){if(Sa){var z=ta.searchJqUiByModel(Sa);Y(z,!1)}Sa=r;r=null;Sa&&(z=ta.searchJqUiByModel(Sa),Y(z,!0),r=z);H.find("."+C()).remove();r&&e(Sa,r,!0)},K=function(r){Ma.setSelected(r)},ia=function(){var r=Ma.getSelected();return r==nb()?null:r},Y=function(r,z){Ba.upwardSearch(r,
H,function(I){I.hasClass(c())&&I.css("z-index",z?2:1)})},fa=function(){if(Sa){bb=!0;K(Sa);bb=!1;Sa=null;var r=H.find("."+C());r.removeClass(C());r.addClass(U())}},e=function(r,z,I){var aa=Fa.dip(Fa.DESIGN),v=eb.getInstance(r.getWidgetTypeName()),t=!r.isWidthLockedAlways(v),L=!r.isHeightLockedAlways(v),F=v.getMargin(),ya=r.getWidth(),va=r.getHeight(),db=[F,F];db=Ba.upwardCoordinate(z[0],db,H[0]);var Jb=db[0];db=db[1];var Xb=[F+ya,F+va];Xb=Ba.upwardCoordinate(z[0],Xb,H[0]);F=Xb[0];Xb=Xb[1];var gc=new ha;
gc.setJqPageArea(H);gc.setTarget(r,z);gc.setActionListener(pa);z=N.createOperatableTips(Jb,db,F,Xb,ya,va,r.isMovable(),t,L,aa,gc,I);if(r=v.createCustomDesignHandlerJqUi(r,Jb,db,K))r.addClass(I?C():U()),r.appendTo(z);z.appendTo(H)};this.createOperatableTips=function(r,z,I,aa,v,t,L,F,ya,va,db,Jb){var Xb=$(document.createDocumentFragment()),gc=function(Db,Ac,wc,Oc){var oc=$("<div>");!0===Jb?(oc.addClass(C()),oc.on("mousedown",function(ed){$(ed.currentTarget).hasClass(C())&&fa()})):oc.addClass(U());oc.addClass(D());
oc.appendTo(Xb);Ba.layoutCtrl(oc,Db,Ac,wc,Oc);return oc},Bc=function(Db,Ac){var wc=Ac[0];Ac=Ac[1];var Oc=va[Fa.Key_Design_Unadjustable];Ac&&(ca.isBorder(Ac.getAnchorBorder(),ca.LEFT)?(Db.css("border-left-width",Tc+"px"),!F&&Db.css("border-left-color",Oc)):ca.isBorder(Ac.getAnchorBorder(),ca.RIGHT)&&(Db.css("border-right-width",Tc+"px"),!F&&Db.css("border-right-color",Oc)),ca.isBorder(Ac.getAnchorBorder(),ca.TOP)?(Db.css("border-top-width",Tc+"px"),!ya&&Db.css("border-top-color",Oc)):ca.isBorder(Ac.getAnchorBorder(),
ca.BOTTOM)&&(Db.css("border-bottom-width",Tc+"px"),!ya&&Db.css("border-bottom-color",Oc)));wc?(Db.css("border-color",va[Fa.Key_Design_Adjustable]),db&&(Db.css("cursor",wc.getCursor()),db.bindOperator(Db,wc))):(Db.css("border-color",Oc),Db.css("cursor","default"))},Qc=function(Db,Ac,wc){return[F&&ya?Db:F?Ac:ya?wc:null,Db]},Xc=function(Db,Ac){return[Ac?Db:null,Db]},Tc=2,Sb=r-Tc,Ub=r+(v>>1)-5;I-=6;var $b=z-Tc;t=z+(t>>1)-5;aa-=6;L&&(r=gc(r,z-10,v,10),r.addClass(D()+"-header"),r.css("background-color",
va[Fa.Key_Design_ColorB]),!1===Jb&&g(r),db&&db.bindOperator(r,f.MOVE));Bc(gc(Sb,$b,6,6),Qc(f.NW,f.W,f.N));Bc(gc(I,$b,6,6),Qc(f.NE,f.E,f.N));Bc(gc(Sb,aa,6,6),Qc(f.SW,f.W,f.S));Bc(gc(I,aa,6,6),Qc(f.SE,f.E,f.S));Bc(gc(Sb,t,6,11),Xc(f.W,F));Bc(gc(I,t,6,11),Xc(f.E,F));Bc(gc(Ub,$b,11,6),Xc(f.N,ya));Bc(gc(Ub,aa,11,6),Xc(f.S,ya));L&&(z=gc(I-10,z-10,10,10),Ea.background(z,"minidelete"),z.addClass(D()+"-operate"),db&&(z.css("cursor","pointer"),z.on("click",Ga)));return Xb};var g=function(r){!r&&(r=H.find("."+
D()+"-header"));r.css("cursor","move")},y=function(r,z,I){var aa=!1,v={};ta.traversalWidgetUiObjects(function(ya){var va=ya.getModel();if(va.isContainer()&&va.isCanContain(I)&&I.isCanBeContained(va)&&(ya=ya.getJqPhysicalContainer(),va=[0,0],va=Ba.upwardCoordinate(ya[0],va,W[0]),!(r<va[0]||z<va[1]||(va=[ya.innerWidth(),ya.innerHeight()],va=Ba.upwardCoordinate(ya[0],va,W[0]),r>va[0]||z>va[1])))){va=Ba.upwardSearchHasClass(ya,H,c());var db=ta.getWidgetNameByJqUi(va);v[db]=[va,ya];aa=!0}});if(aa){var t=
function(ya){for(var va=ya.getWidgetCount()-1;0<=va;va--){var db=ya.getWidget(va);if(db.isContainer()&&db.isVisible()){var Jb=t(db);if(db.isCanContain(I)&&I.isCanBeContained(db)&&v[db.getName()])return Jb?Jb:db;if(Jb)return Jb}}return null},L=t(nb());if(L){var F=v[L.getName()];return new na(L,F[0],F[1])}}return nb().isCanContain(I)&&I.isCanBeContained(nb())?new na(nb(),W,W):null},u=function(){var r=[0,0];r=Ba.upwardCoordinate(H[0],r,document.body);var z=[H.prop("clientWidth"),H.prop("clientHeight")];
z=Ba.upwardCoordinate(H[0],z,document.body);var I=[0,0];I=Ba.upwardCoordinate(W[0],I,document.body);var aa=[nb().getWidth(),nb().getHeight()];aa=Ba.upwardCoordinate(W[0],aa,document.body);return new function(v,t,L,F,ya,va){this.getLeft=function(){return v};this.getRight=function(){return t};this.getTop=function(){return L};this.getBottom=function(){return F};this.getPageLeftAtBody=function(){return ya};this.getPageTopAtBody=function(){return va}}(Math.max(r[0],I[0]),Math.min(z[0],aa[0]),Math.max(r[1],
I[1]),Math.min(z[1],aa[1]),I[0],I[1])},G=function(r,z,I,aa){var v=Ba.getCurrentTargetPosition(r);v=Ba.upwardCoordinate(r.target,v,document.body);r=v[0];v=v[1];if(r<z.getLeft()||r>z.getRight()||v<z.getTop()||v>z.getBottom())return null;var t=r-z.getPageLeftAtBody();z=v-z.getPageTopAtBody();z=y(t,z,aa);if(!z)return null;t=z.getContainerWidget();if(I!=t){var L=eb.getInstance(aa.getWidgetTypeName());I=L.getSuggestSize();aa.setSize(I[0],I[1])}I=aa.getWidth();var F=aa.getHeight();if(!(I<=t.getClientWidth()&&
F<=t.getClientHeight())){!L&&(L=eb.getInstance(aa.getWidgetTypeName()));var ya=L.getMinSize();L=ya[0];for(ya=ya[1];(I>t.getClientWidth()||F>t.getClientHeight())&&!(I>>=1,F>>=1,I<L||F<ya);)aa.setSize(I,F)}L=[0,0];L=Ba.upwardCoordinate(z.getJqPhysicalContainer()[0],L,document.body);r-=L[0];v-=L[1];r-=Math.min(160,parseInt(.2*aa.getWidth()));v-=Math.min(90,parseInt(.2*aa.getHeight()));L=z.getContainerWidget().getClientWidth();t=z.getContainerWidget().getClientHeight();r=r+aa.getWidth()>L?L-aa.getWidth():
r;v=v+aa.getHeight()>t?t-aa.getHeight():v;aa.setPosition(0>r?0:r,0>v?0:v);return z},Z=function(r,z,I){var aa=eb.getInstance(z.getWidgetTypeName());if(aa.isReleased()){var v={},t={};ma.allocateNameForNewWidget(z,aa,v,t);if(z.isInstanceOf(w.WidgetSuperType_CompositeContainer))for(var L=0;L<z.getWidgetCount();L++){var F=z.getWidget(L),ya=eb.getInstance(F.getWidgetTypeName());ma.allocateNameForNewWidget(F,ya,v,t)}aa.selectSource(ea,z,function(va){va&&(va=new Sc,va.setCaption(ib.get("addWidget","\u521b\u5efa\u201c#1\u201d").replace("#1",
z.getDisplayName())),va.setValue(r,z),ea.getCommandManager().perform(va));I()})}else I()},pa=function(r,z,I,aa,v){v=v==f.MOVE?ib.get("moveWidget","\u79fb\u52a8\u201c#1\u201d\u4f4d\u7f6e"):ib.get("resizeWidget","\u6539\u52a8\u201c#1\u201d\u5927\u5c0f");v=v.replace("#1",ia().getDisplayName());var t=new P;t.setCaption(v);t.setValue(ia(),r,z,I,aa);ea.getCommandManager().perform(t)},Ga=function(){var r=new q;r.setCaption(ib.get("removeWidget","\u5220\u9664\u201c#1\u201d").replace("#1",ia().getDisplayName()));
r.setValue(ia().getParent(),ia());ea.getCommandManager().perform(r)},Va=function(r){var z=W;r!=nb()&&(z=ta.getWidgetUiObject(r).getJqPhysicalContainer());return z},Ya=function(r,z,I){if(r==w.KEY_ADD_CHILD)r=Va(z),ta.addWidgetUi(I,r),K(I),ta.parseWidgetsInputParams(nb());else if(r==w.KEY_REMOVE_CHILD)ta.removeWidgetUi(I),(I==ia()||I.isContainer()&&I.isDescendentsContain(ia()))&&K(nb()),ta.parseWidgetsInputParams(nb());else if(r==w.KEY_MOVE_CHILD){I=$(document.createDocumentFragment());r=Va(z);for(var aa=
0;aa<z.getWidgetCount();aa++){var v=z.getWidget(aa);v=ta.searchJqUiByModel(v,r);v.detach();v.appendTo(I)}I.appendTo(r)}},sa=function(r,z){z==w.KEY_RECT?ta.isCreated()&&(z=ta.updateWidgetRect(r),r==ia()&&(H.find("."+U()).remove(),e(r,z,!1),Q(z))):z==w.KEY_PAGE_SIZE?dc():z==w.KEY_AFFECTED_TARGETS||z==w.KEY_FILTER_SOURCE?ta.parseWidgetsInputParams(nb()):z==w.KEY_PAGE_SKIN?ta.changeSkin(ma,function(I){return I==ma},function(){Wa()}):z==w.KEY_PAGE_BACKGROUND?(z=r==nb()?W:ta.searchJqUiByModel(r),ta.updateBackgroundPicture(r,
z),ra()):z==w.KEY_PAGE_WATERMARK?(ta.updateWatermark(nb()),ra()):z==w.KEY_PAGE_UNIFIED_CARD&&ra()},La=function(r,z){H.find("."+U()).remove();r&&r!=nb()&&(r=ta.searchJqUiByModel(r),Y(r,!1));z&&z!=nb()&&(r=ta.searchJqUiByModel(z),Y(r,!0),r&&(bb?g():(e(ia(),r,!1),Q(r))))},Q=function(r){var z=H.prop("scrollLeft"),I=z+H.prop("clientWidth"),aa=H.prop("scrollTop"),v=aa+H.prop("clientHeight"),t=[0,0];t=Ba.upwardCoordinate(r[0],t,H[0]);var L=t[0]-20,F=t[0]+r.prop("offsetWidth"),ya=t[1]-20;r=t[1]+r.prop("offsetHeight");
t={};var va=!1;if(L<z||F>I)va=!0,t.scrollLeft=L;if(ya<aa||r>v)va=!0,t.scrollTop=ya;va&&H.animate(t)},ra=function(){ta.traversalWidgetUiObjects(function(r){r.getModel().isInstanceOf(w.WidgetSuperType_CardSurfaceAbout)&&r.updateCardSurface()})}}function oa(){var N;this.bindContext=function(H){N=H};this.register=function(H){H.setCommunicationListener(ea)};this.unregister=function(H){H.setCommunicationListener(null)};var ea=function(H,W){var ta=H.getModel();ta.getTopPage().traversalDescendents(function(Aa){ta!=
Aa&&N.getWidgetUiObject(Aa).payAttentionTo(H,W)});ma(ta,H,W)},ma=function(H,W,ta){if(ta==da.KEY_SELECTED_BY_MANUAL&&(H=H.getAffectedTargets()))for(ta=0;ta<H.getItemCount();ta++){var Aa=H.getItem(ta);if(Aa.getType()==w.AffectedType_Hotlink&&Aa.isSettingComplete()){var Sa=Aa.getUsableUrl();"biz"==Aa.getMode()?(Aa=W.getFilterSelectedValue().getText(),kc.openNewTab(Aa,Sa)):window.open(Sa)}}}}function kb(){var N=this,ea,ma,H,W={},ta,Aa;this.hookWidgetCtrlProvider=function($a){Aa=$a};var Sa=function(){Aa||
(Aa=new la);return Aa};this.setFacadeCreator=function($a){ma=$a};this.setWidgetJqUiDecorator=function($a){H=$a};this.changeSkin=function($a,rb,Wa){var dc=$a.getPage();dc.getSkin()==w.Skin_Custom?(dc=dc.getCustomCosmetic(),$a.setCurrentCosmeticModel(dc),Fa.unpack(dc),Wa()):ma(function(lc){if(rb($a)){var ac=new Lc;ac.fromJsonObject(lc);$a.setCurrentCosmeticModel(ac);Fa.unpack(ac);Wa()}}).loadPresetCosmetic(dc.getSkin())};this.clear=function(){N.traversalWidgetUiObjects(function($a){$a.destroy()});W=
{};ea&&ea.empty()};this.create=function($a,rb){ea=rb;ea.css("background-color",Fa.getPageBackgroundColor());ea.css("cursor","default");N.updateBackgroundPicture($a,ea);N.updateWatermark($a);var Wa=$(document.createDocumentFragment());N.protectedCreateChildrenUi($a,Wa);rb.append(Wa);N.parseWidgetsInputParams($a);Ma($a)};this.isCreated=function(){return ea?!0:!1};this.updateWidgetRect=function($a){var rb=eb.getInstance($a.getWidgetTypeName()),Wa=N.searchJqUiByModel($a);nb($a,Wa,rb);return Wa};this.addWidgetUi=
function($a,rb){bb($a,rb);$a.isContainer()&&0<$a.getWidgetCount()&&(rb=$(document.createDocumentFragment()),N.protectedCreateChildrenUi($a,rb),N.getWidgetUiObject($a).getJqPhysicalContainer().append(rb));N.getWidgetUiObject($a).run(ma);$a.isContainer()&&0<$a.getWidgetCount()&&Ma($a)};this.removeWidgetUi=function($a){for(var rb=[$a];0<rb.length;){var Wa=rb.shift();yb().unregister(N.getWidgetUiObject(Wa));var dc=Wa.getName();W[dc].destroy();delete W[dc];if(Wa.isContainer())for(dc=0;dc<Wa.getWidgetCount();dc++)rb.push(Wa.getWidget(dc))}N.searchJqUiByModel($a).remove()};
this.protectedCreateChildrenUi=function($a,rb,Wa){for(var dc=0;dc<$a.getWidgetCount();dc++){var lc=$a.getWidget(dc);bb(lc,rb);if(lc.isContainer()){var ac=N.getWidgetUiObject(lc).getJqPhysicalContainer();N.protectedCreateChildrenUi(lc,ac,Wa)}Wa&&Wa(lc)}};var Ma=function($a){for(var rb=0;rb<$a.getWidgetCount();rb++){var Wa=$a.getWidget(rb);N.getWidgetUiObject(Wa).run(ma);Wa.isContainer()&&Ma(Wa)}},bb=function($a,rb){var Wa=eb.getInstance($a.getWidgetTypeName()),dc=Wa.createWidgetUi($a);dc.setCtxApi(Hb);
W[$a.getName()]=dc;yb().register(dc);dc=N.protectedCreateWidgetJqUi(dc,$a,Sa());dc.css("z-index",1);$a.isInstanceOf(w.WidgetSuperType_ContainerWithBackground)&&N.updateBackgroundPicture($a,dc);H&&H(dc,$a);dc.attr("name",$a.getName());nb($a,dc,Wa);dc.appendTo(rb)};this.protectedCreateWidgetJqUi=function($a,rb,Wa){throw Error("Override");};this.getWidgetUiObject=function($a){return W[$a.getName()]};this.getWidgetUiObjectByName=function($a){return W[$a]};this.traversalWidgetUiObjects=function($a){for(var rb in W)if($a(W[rb]))break};
var nb=function($a,rb,Wa){Wa=Wa.getMargin();Ba.layoutCtrl(rb,$a.getX()-Wa,$a.getY()-Wa,$a.getWidth()+2*Wa,$a.getHeight()+2*Wa)};this.searchJqUiByModel=function($a,rb){$a="[name='"+$a.getName()+"']";if(rb)return rb.children($a).eq(0);rb=ea.find($a);0==rb.length&&(rb=$(document.body).find($a));return rb};this.getWidgetNameByJqUi=function($a){return $a.attr("name")};var yb=function(){ta||(ta=new oa,ta.bindContext(Hb));return ta};this.parseWidgetsInputParams=function($a){var rb={};$a.traversalDescendents(function(Wa){if(Wa.isInstanceOf(w.WidgetSuperType_FilterSimilary)){var dc=
Wa.getAffectedTargets();dc&&dc.reverse(Wa.getName(),rb)}});$a.traversalDescendents(function(Wa){if(Wa.isInstanceOf(w.WidgetSuperType_AffectedTarget)){Wa=Wa.getName();var dc=rb[Wa];N.getWidgetUiObjectByName(Wa).updateInputParams(dc)}})};this.updateBackgroundPicture=function($a,rb){rb.attr("title",null);var Wa=$a.getBackgroundPicture();Wa?Xa.getPictureLoader()(Wa.getReferenceCustomMap(),function(dc,lc,ac){lc={};lc["background-image"]="url("+dc+")";lc["background-repeat"]="no-repeat";lc["background-size"]=
"auto";switch(Wa.getScale()){case zc.SCALE_FULL:lc["background-size"]="100% 100%";break;case zc.SCALE_TILED:lc["background-repeat"]="repeat";break;case zc.SCALE_ADAPTIVE:lc["background-size"]="contain"}dc=Wa.isAlignTo(zc.HALIGN_LEFT)?"left":Wa.isAlignTo(zc.HALIGN_RIGHT)?"right":"center";ac=Wa.isAlignTo(zc.VALIGN_TOP)?"top":Wa.isAlignTo(zc.VALIGN_BOTTOM)?"bottom":"center";lc["background-position"]=dc+" "+ac;rb.css(lc)},function(dc){rb.attr("title","Background image not found:\r\n"+dc+"\r\n"+$a.getDisplayName())}):
rb.css("background-image","")};this.updateWatermark=function($a){ea.find(".dsb-page-watermark").remove();if($a=$a.getWatermark()){var rb=Fa.dip(Fa.DSB_PAGE)[Fa.Key_Page_WatermarkColor],Wa=25*Math.PI/180,dc=document.createElement("canvas"),lc=dc.getContext("2d");lc.font="14px "+nc.getFontName();var ac=lc.measureText($a).width,c=Math.max(84,ac*Math.sin(Wa)*2.5);dc.width=Math.max(84,ac*Math.cos(Wa)*2.5);dc.height=c;lc.font="14px "+nc.getFontName();lc.rotate(-Wa);lc.textBaseline="top";lc.fillStyle=rb;
lc.fillText($a,-ac*(1-Math.cos(Wa)),ac*Math.sin(Wa));rb=dc.toDataURL();$a={"z-index":0};$a["background-image"]="url("+rb+")";rb=$("<div>");rb.addClass("dsb-page-watermark");rb.css($a);rb.appendTo(ea);Ba.layoutCtrlWithLRTB(rb,0,0,null,0,0,null)}};var Hb={getWidgetUiObject:N.getWidgetUiObject};this.protectedMethod={getWidgetCtrlProvider:Sa,getJqPage:function(){return ea}}}function ob(){kb.call(this);var N;this.setWidgetEditedListener=function(ea){N=ea};this.protectedCreateWidgetJqUi=function(ea,ma,
H){ea.setEditedListener(N);return ea.createJqUi(H)}}function Ia(){kb.call(this);var N=this.protectedMethod,ea,ma;this.setPreviewContext=function(W){ea=W;N.getWidgetCtrlProvider().setPreview(!0)};this.setLayoutAdapterCreator=function(W){ma=W};this.relayoutAll=function(W){var ta=W.getLayoutAdapter();return ta?ta.relayoutPage(W,N.getJqPage()):0};var H=this.protectedCreateChildrenUi;this.protectedCreateChildrenUi=function(W,ta,Aa){Aa=ma();W.setLayoutAdapter(Aa);Aa.initForParent(W);H(W,ta,function(Sa){W.getLayoutAdapter().initForChild(Sa)})};
this.protectedCreateWidgetJqUi=function(W,ta,Aa){ea&&(ta=ea[ta.getName()],W.applyPreviewContext(ta));return W.createJqUi(Aa)}}function cb(){var N=16,ea=12,ma=12,H=2*ea+40,W=2*ma+20,ta,Aa,Sa,Ma,bb,nb,yb,Hb,$a,rb,Wa,dc,lc;this.prepare=function(sa,La){sa.getTopPage().isMobileDesired()&&(ma=ea=N=6);ta=!sa.isInstanceOf(w.WidgetSuperType_CardSimilary)&&!(sa instanceof Ka);Aa=sa.getClientWidth();Sa=sa.getClientHeight();var Q=eb.getInstance(La.getWidgetTypeName()).getMinSize();Ma=Q[0];bb=Q[1];ac(sa,La);yb=
[];Hb=[];$a=[];rb=[];for(Q=0;Q<sa.getWidgetCount();Q++){var ra=sa.getWidget(Q);if(ra!=La){var r=ra.getX(),z=ra.getY(),I=r+ra.getWidth();ra=z+ra.getHeight();for(var aa=0;aa<sa.getWidgetCount();aa++){var v=sa.getWidget(aa);if(Q!=aa&&v!=La){var t=v.getX(),L=v.getY(),F=t+v.getWidth();v=L+v.getHeight();if(!(I<t||F<r))if(v<z){var ya=z-v;ya<W&&yb.push(new p(ra,z,ya,Math.min(r,t),Math.max(I,F)))}else ra<L&&(ya=L-ra,ya<W&&Hb.push(new p(z,ra,-ya,Math.min(r,t),Math.max(I,F))));ra<L||v<z||(F<r?(ya=r-F,ya<H&&
$a.push(new p(I,r,ya,Math.min(z,L),Math.max(ra,v)))):I<t&&(ya=t-I,ya<H&&rb.push(new p(r,I,-ya,Math.min(z,L),Math.max(ra,v)))))}}}}};var ac=function(sa,La){nb=[];for(var Q=0;Q<sa.getWidgetCount();Q++){var ra=sa.getWidget(Q);if(ra!=La){var r=ra.getX(),z=ra.getY(),I=r+ra.getWidth();ra=z+ra.getHeight();r=new function(aa,v,t,L){this.getX1=function(){return aa};this.getY1=function(){return v};this.getX2=function(){return t};this.getY2=function(){return L}}(r,z,I,ra);nb.push(r)}}},c=function(sa){return Da.isContains(dc.getActionUnit(),
sa)},D=function(sa){return ca.isBorder(dc.getAnchorBorder(),sa)},U=function(sa,La){return 8>Math.abs(sa-La)},C=function(){return Wa[0]+Wa[2]},O=function(){return Wa[1]+Wa[3]};this.keepMinSizeLimited=function(sa,La){Wa=sa;dc=La;(c(Da.WIDTH)||c(Da.WIDTH_NEGATIVE))&&Wa[2]<Ma&&(c(Da.WIDTH_NEGATIVE)&&(sa=Ma-Wa[2],Wa[0]-=sa),Wa[2]=Ma);(c(Da.HEIGHT)||c(Da.HEIGHT_NEGATIVE))&&Wa[3]<bb&&(c(Da.HEIGHT_NEGATIVE)&&(sa=bb-Wa[3],Wa[1]-=sa),Wa[3]=bb)};this.keepInsideContainer=function(sa,La){Wa=sa;dc=La;sa=Wa[0];
La=Wa[2];c(Da.X)?(sa+La>Aa&&(sa=Aa-La,Wa[0]=sa),0>sa&&(c(Da.WIDTH_NEGATIVE)&&(Wa[2]=La- -sa),Wa[0]=0)):c(Da.WIDTH)&&(Wa[2]=sa<Aa&&sa+La>Aa?Aa-sa:La);sa=Wa[1];La=Wa[3];c(Da.Y)?(sa+La>Sa&&(sa=Sa-La,Wa[1]=sa),0>sa&&(c(Da.HEIGHT_NEGATIVE)&&(Wa[3]=La- -sa),Wa[1]=0)):c(Da.HEIGHT)&&(Wa[3]=sa<Sa&&sa+La>Sa?Sa-sa:La)};this.anchor=function(sa,La,Q){lc=sa;dc=La;Wa=Q;G();sa=!1;D(ca.LEFT)&&((sa=e(Wa[0],0,0,Sa,K)||g(Wa[0],Wa[1],O(),"getX1","getY1","getY2",!1,K))||(sa=D(ca.LEFT)?y(Wa[0],Wa[1],O(),$a,K,pa,Ga)||u(Wa[0],
Wa[1],O(),"getX2","getY1","getY2",ea,K,Ga):!1),!(sa=sa||g(Wa[0],Wa[1],O(),"getX2","getY1","getY2",!0,K))&&(sa=ta)&&(sa=N,U(Wa[0],sa)?(K(sa,N,Sa-N),sa=!0):sa=!1));!sa&&D(ca.RIGHT)&&((sa=e(C(),Aa,0,Sa,ia)||g(C(),Wa[1],O(),"getX2","getY1","getY2",!1,ia))||(sa=D(ca.RIGHT)?y(C(),Wa[1],O(),rb,ia,Ga,pa)||u(C(),Wa[1],O(),"getX1","getY1","getY2",-ea,ia,pa):!1),sa||g(C(),Wa[1],O(),"getX1","getY1","getY2",!0,ia)||!ta||(sa=Aa-N,U(C(),sa)&&ia(sa,N,Sa-N)));sa=!1;D(ca.TOP)&&((sa=e(Wa[1],0,0,Aa,Y)||g(Wa[1],Wa[0],
C(),"getY1","getX1","getX2",!1,Y))||(sa=D(ca.TOP)?y(Wa[1],Wa[0],C(),yb,Y,Va,Ya)||u(Wa[1],Wa[0],C(),"getY2","getX1","getX2",ma,Y,Ya):!1),!(sa=sa||g(Wa[1],Wa[0],C(),"getY2","getX1","getX2",!0,Y))&&(sa=ta)&&(sa=N,U(Wa[1],sa)?(Y(sa,N,Aa-N),sa=!0):sa=!1));!sa&&D(ca.BOTTOM)&&((sa=e(O(),Sa,0,Aa,fa)||g(O(),Wa[0],C(),"getY2","getX1","getX2",!1,fa))||(sa=D(ca.BOTTOM)?y(O(),Wa[0],C(),Hb,fa,Ya,Va)||u(O(),Wa[0],C(),"getY1","getX1","getX2",-ma,fa,Va):!1),sa||g(O(),Wa[0],C(),"getY1","getX1","getX2",!0,fa)||!ta||
(sa=Sa-N,U(O(),sa)&&fa(sa,N,Aa-N)))};this.abort=function(){lc&&G()};var K=function(sa,La,Q){var ra=Wa[2];D(ca.RIGHT)||(ra+=Wa[0]-sa);if(0>sa||sa+ra>Aa)return!1;D(ca.RIGHT)||(Wa[2]=ra);Wa[0]=sa;pa(sa,La,Q);return!0},ia=function(sa,La,Q){var ra=Wa[2];if(!D(ca.LEFT)){var r=C()-sa;ra-=r}r=sa-ra;if(0>r||sa>Aa)return!1;D(ca.LEFT)||(Wa[2]=ra);Wa[0]=r;Ga(sa,La,Q);return!0},Y=function(sa,La,Q){var ra=Wa[3];D(ca.BOTTOM)||(ra+=Wa[1]-sa);if(0>sa||sa+ra>Sa)return!1;D(ca.BOTTOM)||(Wa[3]=ra);Wa[1]=sa;Va(sa,La,Q);
return!0},fa=function(sa,La,Q){var ra=Wa[3];if(!D(ca.TOP)){var r=O()-sa;ra-=r}r=sa-ra;if(0>r||sa>Sa)return!1;D(ca.TOP)||(Wa[3]=ra);Wa[1]=r;Ya(sa,La,Q);return!0},e=function(sa,La,Q,ra,r){return U(sa,La)?r(La,Q,ra):!1},g=function(sa,La,Q,ra,r,z,I,aa){for(var v=65535,t,L=0;L<nb.length;L++){var F=nb[L],ya=F[r](),va=F[z]();I&&(Q<ya||va<La)||!U(sa,F[ra]())||(ya=Math.min(Math.abs(La-va),Math.abs(Q-ya)),ya<v&&(v=ya,t=F))}if(!t)return!1;sa=Math.min(La,t[r]());Q=Math.max(Q,t[z]());return aa(t[ra](),sa,Q)},
y=function(sa,La,Q,ra,r,z,I){for(var aa=65535,v,t=0;t<ra.length;t++){var L=ra[t];var F=L.getPerpendicularMin();var ya=L.getPerpendicularMax();Q<F||ya<La||!U(sa,L.getStuckPos())||(F=Math.abs(sa-L.getStuckPos()),F<aa&&(aa=F,v=L))}return v?(sa=Math.min(v.getPerpendicularMin(),La),Q=Math.max(v.getPerpendicularMax(),Q),r(v.getStuckPos(),sa,Q),I(v.getBrotherNearSide(),sa,Q),z(v.getBrotherFarSide(),sa,Q),I(v.getFarFarPos(),sa,Q),!0):!1},u=function(sa,La,Q,ra,r,z,I,aa,v){for(var t=0;t<nb.length;t++){var L=
nb[t],F=L[ra](),ya=L[r](),va=L[z]();L=F+I;if(!(Q<ya||va<La)&&U(sa,L))return sa=Math.min(ya,La),Q=Math.max(va,Q),aa(L,sa,Q),v(F,sa,Q),!0}return!1},G=function(){lc.getJqParent().find(".dsb-dragdrop-auxiliaryline").remove()},Z=function(sa,La,Q,ra,r){lc.isClear()||(Q-=sa,ra-=La,sa=lc.transX(sa+r),La=lc.transY(La+r),r=$("<div>"),r.addClass("dsb-dragdrop-auxiliaryline"),Ba.layoutCtrl(r,sa,La,Q,ra),r.appendTo(lc.getJqParent()))},pa=function(sa,La,Q){Z(sa,La-10,sa,Q+10,-1)},Ga=function(sa,La,Q){Z(sa,La-10,
sa,Q+10,0)},Va=function(sa,La,Q){Z(La-10,sa,Q+10,sa,-1)},Ya=function(sa,La,Q){Z(La-10,sa,Q+10,sa,0)}}function p(N,ea,ma,H,W){this.getStuckPos=function(){return N+ma};this.getBrotherNearSide=function(){return N};this.getBrotherFarSide=function(){return ea};this.getFarFarPos=function(){return ea-ma};this.getPerpendicularMin=function(){return H};this.getPerpendicularMax=function(){return W}}function X(N,ea,ma){var H;this.getJqParent=function(){return N};this.transX=function(W){return W+ea};this.transY=
function(W){return W+ma};this.setClear=function(W){H=W};this.isClear=function(){return H}}function na(N,ea,ma){this.getContainerWidget=function(){return N};this.getJqContainerWidget=function(){return ea};this.getJqPhysicalContainer=function(){return ma}}function Ua(){var N=$(document.body),ea,ma,H,W,ta,Aa,Sa,Ma,bb,nb,yb,Hb,$a;this.bindDragContainer=function(D,U){var C=!1,O=[-1,-1],K=null,ia=function(){H=C=!1;K=null;O=[-1,-1]};D.on("mousedown",function(Y){C=!0;H=!1;K=$(Y.target);O=[Y.screenX,Y.screenY]});
D.on("mouseup",function(Y){ia()});D.on("mouseleave",function(Y){C&&ia()});D.on("mousemove",function(Y){var fa=!1;C&&(fa=5<Math.abs(Y.screenX-O[0])||5<Math.abs(Y.screenY-O[1]));fa&&(C=!1,(Y=U(K))?(ea=new cb,bb=yb(),W=Y.createWidgetModel(!0),ta=Y.getTypeDisplayName(),H=!0,N.on("mousemove",rb),N.on("mouseup",Wa),N.on("mouseleave",dc)):ia())})};this.bindDropContainer=function(D,U,C,O){nb=D;yb=U;Hb=C;$a=O};var rb=function(D){if(H){if(!Aa){Aa=$("<div onselectstart='return false'>");Aa.addClass("dsb-dragdrop-creating-widget");
var U=Ba.getCurrentTargetPosition(D);U=Ba.upwardCoordinate(D.target,U,N[0]);Aa.data("sys-my-ori-left",U[0]);Aa.data("sys-my-ori-top",U[1]);Aa.appendTo(N)}(U=Hb(D,bb,Ma,W))?(D=U.getContainerWidget(),Ma!=D&&(ea.prepare(D,W),Ma=D),D=U.getJqPhysicalContainer(),lc(D),ac(),Aa.text(ta),U=[W.getX(),W.getY()],U=Ba.upwardCoordinate(D[0],U,N[0]),Ba.layoutCtrl(Aa,U[0],U[1],W.getWidth(),W.getHeight())):(Ma=null,Aa.text(""),U=Ba.getCurrentTargetPosition(D),U=Ba.upwardCoordinate(D.target,U,N[0]),Ba.layoutCtrl(Aa,
U[0]-20,U[1]-15,40,30),lc(null))}},Wa=function(D){(D=Hb(D,bb,Ma,W))?(ac(),$a(D.getContainerWidget(),W,function(){Aa.remove();Aa=null}),c(!0)):c()},dc=function(D){c()},lc=function(D){if(D){Sa||(Sa=$("<div>"),Sa.addClass("dsb-dragdrop-creating-droppingcontainer"),Sa.appendTo(nb),ma=new X(Sa,0,0));var U=D.outerWidth(),C=D.outerHeight(),O=[0,0];O=Ba.upwardCoordinate(D[0],O,nb[0]);Ba.layoutCtrl(Sa,O[0],O[1],U,C)}else Sa&&(Sa.remove(),Sa=null)},ac=function(){var D=[W.getX(),W.getY(),W.getWidth(),W.getHeight()];
ea.anchor(ma,f.MOVE,D);W.setPosition(D[0],D[1])},c=function(D){lc(null);H=!1;!D&&Aa&&Aa.animate({left:Aa.data("sys-my-ori-left"),top:Aa.data("sys-my-ori-top"),width:4,height:3},function(){Aa.remove();Aa=null});W=null;N.off("mousemove",rb);N.off("mouseup",Wa);N.off("mouseleave",dc)}}function ha(){var N,ea,ma,H,W,ta,Aa,Sa,Ma,bb,nb,yb;this.setJqPageArea=function(ac){N=ac};this.setTarget=function(ac,c){ea=ac;ma=c};this.setActionListener=function(ac){H=ac};this.bindOperator=function(ac,c){ac.on("mousedown",
function(D){W=c;nb=new cb;nb.prepare(ea.getParent(),ea);ta=[D.clientX,D.clientY];Aa=$("<div>");Aa.addClass("dsb-glasslayer");Aa.css("cursor",W.getCursor());Aa.appendTo($(document.body));Ba.layoutCtrlWithLRTB(Aa,0,0,null,0,0,null);Aa.on("mousemove",$a);Aa.on("mouseup",rb);Aa.on("mouseleave",Wa);D=[0,0];D=Ba.upwardCoordinate(ma.parent()[0],D,N[0]);yb=new X(N,D[0],D[1])})};var Hb=function(ac){var c=ac.clientX-ta[0],D=ac.clientY-ta[1];ac=lc(Da.X)?c:0;var U=lc(Da.Y)?D:0;c=lc(Da.WIDTH)?c:lc(Da.WIDTH_NEGATIVE)?
-c:0;D=lc(Da.HEIGHT)?D:lc(Da.HEIGHT_NEGATIVE)?-D:0;return[bb[0]+ac,bb[1]+U,bb[2]+c,bb[3]+D]},$a=function(ac){if(!Ma){var c=ea.getX(),D=ea.getY(),U=ea.getWidth(),C=ea.getHeight();bb=[c,D,U,C];var O=ma.parent();D=[c,D];D=Ba.upwardCoordinate(O[0],D,N[0]);c=D[0];D=D[1];Ma=$("<div>");Ma.addClass("dsb-dragdrop-moving-target");Ma.css("cursor",W.getCursor());Ma.appendTo(N);Ba.layoutCtrl(Ma,c,D,U,C)}Sa||(Sa=$("<div>"),Sa.addClass("dsb-dragdrop-moving-container"),Sa.appendTo(N),c=ma.parent(),U=c.outerWidth(),
C=c.outerHeight(),O=[0,0],O=Ba.upwardCoordinate(c[0],O,N[0]),Ba.layoutCtrl(Sa,O[0],O[1],U,C));ac=Hb(ac);nb.keepInsideContainer(ac,W);nb.keepMinSizeLimited(ac,W);nb.anchor(yb,W,ac);c=yb.transX(ac[0]);U=yb.transY(ac[1]);Ba.layoutCtrl(Ma,c,U,ac[2],ac[3])},rb=function(ac){Ma&&(yb.setClear(!0),ac=Hb(ac),nb.keepInsideContainer(ac,W),nb.keepMinSizeLimited(ac,W),nb.anchor(yb,W,ac),H(ac[0],ac[1],ac[2],ac[3],W));dc()},Wa=function(ac){dc()},dc=function(){nb.abort();Aa.off("mousemove",$a);Aa.off("mouseup",rb);
Aa.off("mouseleave",Wa);Aa.remove();Aa=null;Ma&&Ma.remove();Ma=null;Sa&&Sa.remove();Sa=null},lc=function(ac){return Da.isContains(W.getActionUnit(),ac)}}function f(N,ea,ma){this.getCursor=function(){return N};this.getActionUnit=function(){return ea};this.getAnchorBorder=function(){return ma}}"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.dsb&&(com.kingdee.bos.qing.dsb={});"undefined"==typeof com.kingdee.bos.qing.dsb.ui&&(com.kingdee.bos.qing.dsb.ui={});var xa=com.kingdee.bos.qing.dsb.ui;xa.Designer=function(){var N=this,ea,ma,H=new Tb,W=new Na,ta,Aa=new Pc,Sa,Ma,bb=!1,nb,yb=new function(){this.getDashboardModel=function(){ea||(ea=new w);return ea};this.getCommandManager=function(){return Aa};this.createFacade=function(Y,fa,e){return new Ra(Sa,Y,fa,e)};this.showBlockingPrompt=function(Y){if(Y){var fa=
$("<div>");fa.addClass("dsb-main-modallayer");fa.appendTo(ma);Ea.createLoadingIcon().appendTo(fa);var e=$("<div>");e.addClass("dsb-main-modallayer-prompt");e.text(Y);e.appendTo(fa)}else ma.find(".dsb-main-modallayer").remove()};this.setDirty=function(Y){lc(Y)};this.selectWidget=function(Y){ta.requestSelectingWidget(Y)}};this.setRemoteImpl=function(Y){Sa=Y};this.getConductor=function(){if(!Ma){var Y={};Y.setDirty=lc;Y.isDirty=function(){return bb};Y.hookDirtyListener=function(fa){nb=fa};Y.getWarningRuleHelper=
ia;Ma=new Rb(H,W,Y)}return Ma};this.createJqUi=function(){ma=$("<div onselectstart='return false'>");ma.addClass("dsb-main");Hb();ma.append(H.getJqUi());ma.append(W.getJqUi());ta=new Eb;ta.setGlobalDependence(yb);ma.append(ta.getJqUi());Aa.addPerformedListener($a);return ma};this.resize=function(){ta.resize();H.refresh()};this.born=function(){var Y=eb.getInstance(w.WidgetType_PageTitleBar),fa=Y.createWidgetModel(!0);fa.setName(Y.getTypeName());fa.setDisplayName(Y.getTypeDisplayName());ea=new w;ea.getPage().addWidget(fa);
ta.updateDashboardModel();lc(!1)};this.setJsonModel=function(Y,fa){var e=new Wb;ea=new w;try{ea.fromJsonObject(Y,e)}catch(g){e.setError(!0),window.console&&console.error(g)}ta.updateDashboardModel();lc(!1);e.isTooModern()&&W.showShortPrompt(ib.get("loadHighVersion","\u517c\u5bb9\u6027\u52a0\u8f7d\u9ad8\u7248\u672c\u6587\u6863"),!0,"#930");fa&&fa(e)};this.getJsonModel=function(){return yb.getDashboardModel().toJsonObject()};this.collectBuiltinWidgetsExecutingTag=function(){var Y={};yb.getDashboardModel().getPage().traversalDescendents(function(fa){if(fa.isInstanceOf(w.WidgetSuperType_BuiltinVisual)){var e=
fa.getReferenceCustomMap().uid;(fa=fa.getExecutingTag())?(Y[e]=fa,e=!1):(Y=null,e=!0);return e}});return Y};var Hb=function(){var Y=H.addButton(Wa,"btn_undo",ib.get("undo","\u64a4\u6d88")),fa=H.addButton(dc,"btn_redo",ib.get("redo","\u91cd\u505a"));rb(Y,fa);Aa.addPerformedListener(function(e,g,y){rb(Y,fa)});H.addSeperator();H.addMenuButton(C,"btn_overall",ib.get("overall","\u5168\u5c40\u89c6\u56fe"));H.addMenuButton(ac,"btn_preview",ib.get("preview","\u9884\u89c8"))},$a=function(Y,fa,e){lc(!0);Y&&
(fa=fa?"":(e?ib.get("undo","\u64a4\u6d88"):ib.get("redo","\u91cd\u505a"))+" ",fa+=Y.getCaption(),W.showShortPrompt(fa))},rb=function(Y,fa){Y.setEnabled(Aa.isCanUndo());fa.setEnabled(Aa.isCanRedo())},Wa=function(){Aa.isCanUndo()&&Aa.undo()},dc=function(){Aa.isCanRedo()&&Aa.redo()},lc=function(Y){bb=Y;W&&W.showDirtyState(bb);nb&&nb(bb)},ac=function(Y){Y=new Dc;Y.addItemModel(uc.createActionMenuItem(ib.get("previewOnDesktop","\u684c\u9762\u7aef"),c));Y.addItemModel(uc.createActionMenuItem(ib.get("previewOnMobile",
"\u79fb\u52a8\u7aef"),D));return Y},c=function(Y){U(new Qb)},D=function(Y){U(new vb)},U=function(Y){var fa=ta.collectWidgetsContextForPreview();Y.setFacadeCreator(yb.createFacade);Y.setBackwardListener(function(){g.unobserve();e.remove()});var e=Y.createJqUi(fa);e.appendTo(ma);Ba.layoutCtrlWithLRTB(e,0,0,null,0,0,null);Y.setJsonModel(N.getJsonModel());var g=new Kb;g.setDelay(325);g.setCallback(function(){Y.resize()});g.observe()},C=function(Y){Y=new Dc;Y.addItemModel(uc.createActionMenuItem(ib.get("overallCutPaste",
"\u8de8\u5bb9\u5668\u79fb\u52a8\u7ec4\u4ef6")+"...",O));Y.addItemModel(uc.createActionMenuItem(ib.get("overallAffecting","\u7ec4\u4ef6\u5173\u7cfb\u89c6\u56fe"),K));return Y},O=function(){(new wb).show(yb.getDashboardModel().getPage(),function(Y){Aa.compositeStart(ib.get("overallCutPaste","\u8de8\u5bb9\u5668\u79fb\u52a8\u7ec4\u4ef6"));for(var fa=0;fa<Y.length;fa++){var e=Y[fa],g=e[0];e=e[1];var y=new q;y.setValue(g.getParent(),g);var u=new Sc;u.setValue(e,g);Aa.perform(y);Aa.perform(u)}Aa.compositeEnd()})},
K=function(){(new jb).show(yb)},ia=function(){return{popupWarningRuleSelector:function(Y,fa){(new ab).showDialog(yb.getDashboardModel(),Y,fa)},parseWidgetDisplayName:function(Y){var fa="";if(Y){fa=ab.decodeFullName(Y);var e=fa[0];fa=fa[1];(e=yb.getDashboardModel().searchWidgetByName(e))?(Y=e.getDisplayName(),fa=ab.encodeFullName(Y,fa)):fa=Y}return fa}}}};xa.Executor=function(){Mb.call(this);var N=this.protectedMethod;this.protectedCreateExhibition=function(){return new fc};this.setUiCreatedAnnouncer=
function(ea){N.getExhibition().setHeightAnnouncer(function(ma){ea()})};this.setCachedExhibitionMode=function(ea){N.getExhibition().setCachedExhibitionMode(ea)};this.getFreshExhibitionMode=function(){return N.getExhibition().getFreshExhibitionMode()};this.updateLayoutAdapter=function(ea){N.getExhibition().updateLayoutAdapter(ea)};this.reparseRelativeDate=function(){return N.getExhibition().reparseRelativeDate()}};xa.Executor4Mobile=function(){Mb.call(this);var N=this.protectedMethod;this.protectedCreateExhibition=
function(){return new lb};this.setHeightAnnouncer=function(ea){N.getExhibition().setHeightAnnouncer(ea)}};xa.CosmeticConfigPreviewCreator=Ha;var Ba,qa,Pa,Oa,Za,ib,Kb,nc,kc,rc,uc,Dc,ic,yc,Kc,Jc,Ic,Ca,Ea,Ra,Fa,Xa,eb,w,Ka,Ab,Ib,cc,Ec,zc,xc,Lc,Pc,Sc,q,k,x,A,P,V,da,la,za,Qa=xa.TextInputDialog,ab=xa.WidgetWarningRuleSelector,wb=xa.OverallCutPasteDialog,jb=xa.OverallCommunicationDialog;(function(){var N=com.kingdee.bos.qing.common;Ba=N.DomUtil;qa=N.BrowserUtil;Pa=N.FullScreenHelper;Oa=N.TextMeasurer;Za=
N.BlocksToTable;N=com.kingdee.bos.qing.framework.common;ib=N.MultilanguageManager.createPackageAccessor(xa);Kb=N.WindowResizeObserver;nc=N.GlobalFont;kc=N.TabbedUiUtil;N=com.kingdee.bos.qing.ui.component;rc=N.Toolbar;uc=N.Menu;Dc=N.MenuModel;ic=N.SplitPane;yc=N.List;Kc=N.MessageDialog;Jc=N.WorkButton;N=com.kingdee.bos.qing.common.ui;Ic=N.CommonIconUtil;N=com.kingdee.bos.qing.core;Ca=N.UserOperationReporter;N=com.kingdee.bos.qing.dsb;Ea=N.Icons;Ra=N.Facade;Fa=N.CosmeticBag;Xa=N.IntegrationRegister;
N=com.kingdee.bos.qing.dsb.model;eb=N.WidgetTypeManager;w=N.DashboardModel;Ka=N.WidgetPageTitleBar;Ab=N.WidgetPanel;Ib=N.WidgetExtReport;cc=N.WidgetQingReport;Ec=N.WidgetIframe;zc=N.WidgetPicture;xc=N.WidgetTabbedContainer;Lc=N.CosmeticModel;if(N=com.kingdee.bos.qing.dsb.controller)Pc=N.CommandManager,Sc=N.ActionAddWidget,q=N.ActionRemoveWidget,k=N.ActionMoveWidget,x=N.ActionCutWidget,A=N.ActionPasteAfterCutWidget,P=N.ActionChangeWidgetRect,V=N.ActionChangeProperty;N=com.kingdee.bos.qing.dsb.widget;
da=N.AbstractWidgetUi;la=N.DesktopWidgetCtrlProvider;za=N.MobileWidgetCtrlProvider})();var Da=new function(){this.isContains=function(N,ea){return(N&ea)==ea}};Da.X=1;Da.WIDTH=2;Da.WIDTH_NEGATIVE=4;Da.Y=16;Da.HEIGHT=32;Da.HEIGHT_NEGATIVE=64;var ca=new function(){this.isBorder=function(N,ea){return(N&ea)==ea}};ca.LEFT=1;ca.RIGHT=2;ca.TOP=4;ca.BOTTOM=8;f.W=new f("w-resize",Da.X|Da.WIDTH_NEGATIVE,ca.LEFT);f.E=new f("e-resize",Da.WIDTH,ca.RIGHT);f.N=new f("n-resize",Da.Y|Da.HEIGHT_NEGATIVE,ca.TOP);f.S=
new f("s-resize",Da.HEIGHT,ca.BOTTOM);f.NW=new f("nw-resize",f.N.getActionUnit()|f.W.getActionUnit(),f.N.getAnchorBorder()|f.W.getAnchorBorder());f.NE=new f("ne-resize",f.N.getActionUnit()|f.E.getActionUnit(),f.N.getAnchorBorder()|f.E.getAnchorBorder());f.SW=new f("sw-resize",f.S.getActionUnit()|f.W.getActionUnit(),f.S.getAnchorBorder()|f.W.getAnchorBorder());f.SE=new f("se-resize",f.S.getActionUnit()|f.E.getActionUnit(),f.S.getAnchorBorder()|f.E.getAnchorBorder());f.MOVE=new f("move",Da.X|Da.Y,ca.LEFT|
ca.RIGHT|ca.TOP|ca.BOTTOM)})();(function(){function l(){ic.call(this);var Ca=this,Ea=this.protectedMethod,Ra,Fa;this.getJqUi=function(){return Xa().getJqUi()};this.updateTopBar=function(eb){Xa().updateTopBar(eb)};this.getJqContent=function(){return Xa().getJqContent()};this.setActionListener=function(eb){Fa=eb};this.hideButtons=function(eb){Xa().hideButtons(eb)};this.showWaiting=function(eb,w,Ka,Ab){Xa().showWaiting(eb,w,Ab)};this.hookWaitingProgressDisplayer=function(eb){Xa().hookWaitingProgressDisplayer(eb)};this.hideWaiting=
function(){Xa().hideWaiting()};this.updateFullscreenButtonDisplay=function(eb){Xa().setHasBeenFullscreen(eb,ic.ACTION_FULLSCREEN)};this.updateCardSurface=function(){Xa().repaintSurface()};var Xa=function(){Ra||(Ra=Ca.protectedCreateCard(),Ra.bindCardSimilaryWidget(Ea.getWidget()),Ra.setActionUiDefiner(function(eb){switch(eb){case ic.ACTION_FILTER:return["filter",Ha.get("filter","\u6570\u636e\u7b5b\u9009")];case ic.ACTION_REFRESH:return["refresh",Ha.get("refresh","\u5237\u65b0")];case ic.ACTION_EDIT:return["edit",
Ha.get("edit","\u8fdb\u5165\u8bbe\u8ba1\u5668")];case ic.ACTION_ANALYSIS:return["analysis",Ha.get("analysis","\u8fdb\u5165\u201c\u6570\u636e\u5206\u6790\u201d")];case ic.ACTION_FULLSCREEN:return["fullscreen",Ha.get("fullscreen","\u5168\u5c4f")];case ic.ACTION_INFO:return["info",Ha.get("chartInfo","\u56fe\u8868\u4fe1\u606f")];case ic.ACTION_INSIGHT:return["insight",Ha.get("insight","\u6d1e\u5bdf")];default:throw Error("Modify here");}}),Ra.setActionListener(function(eb,w,Ka){Fa(eb,w,Ka)}));return Ra};
this.protectedCreateCard=function(){throw Error("Implement");}}function fc(){l.call(this);var Ca=this.protectedMethod;this.createScene=function(Ea){Oa.createDashboardSquareScene(Ca.isMobile(),Ea)};this.protectedCreateCard=function(){if(Ca.isDesigntime()){var Ea=[ic.ACTION_REFRESH,ic.ACTION_EDIT];var Ra=[ic.ACTION_FULLSCREEN]}else Ea=[ic.ACTION_REFRESH,ic.ACTION_FILTER],Ra=[ic.ACTION_INFO,ic.ACTION_EDIT,ic.ACTION_ANALYSIS,ic.ACTION_FULLSCREEN];var Fa=new bc;Fa.setActions(Ea,Ra);return Fa}}function lb(){l.call(this);
var Ca=this.protectedMethod;this.createScene=function(Ea){Oa.createDashboardLongerScene(Ca.isMobile(),Ea)};this.protectedCreateCard=function(){if(Ca.isDesigntime()){var Ea=[ic.ACTION_REFRESH,ic.ACTION_EDIT];var Ra=[ic.ACTION_FULLSCREEN]}else Ea=[ic.ACTION_REFRESH],Ra=[ic.ACTION_EDIT,ic.ACTION_FULLSCREEN];var Fa=new bc;Fa.setActions(Ea,Ra);return Fa}}function Mb(){yc.call(this);var Ca=this.protectedMethod,Ea,Ra;this.getJqUi=function(){return Fa().getJqUi()};this.updateTopBar=function(Xa){Fa().updateTopBar(Xa)};
this.getJqContent=function(){return Fa().getJqContent()};this.updateCardSurface=function(){Fa().repaintSurface()};this.hideButtons=function(Xa){Fa().hideButtons(Xa)};this.updateFullscreenButtonDisplay=function(Xa){Fa().setHasBeenFullscreen(Xa,yc.ACTION_FULLSCREEN)};this.setActionListener=function(Xa){Ra=Xa};var Fa=function(){Ea||(Ea=new bc,Ea.bindCardSimilaryWidget(Ca.getWidget()),Ea.setActions([yc.ACTION_FULLSCREEN]),Ea.setActionUiDefiner(function(Xa){if(Xa==yc.ACTION_FULLSCREEN)return["fullscreen",
Ha.get("fullscreen","\u5168\u5c4f")];throw Error("Modify here");}),Ea.setActionListener(function(Xa,eb,w){Ra(Xa,eb,w)}));return Ea}}function bc(){var Ca,Ea,Ra,Fa,Xa,eb,w,Ka,Ab=[],Ib,cc,Ec=[],zc=[],xc,Lc,Pc=0;this.bindCardSimilaryWidget=function(H){Ca=H};this.setActions=function(H,W){Ec=H?H:[];zc=W?W:[]};this.setActionUiDefiner=function(H){xc=H};this.setActionListener=function(H){Lc=H};this.updateTopBar=function(H){cc=H;da()};this.getJqUi=function(){if(!Ea){eb=$("<div>");eb.css("position","absolute");
Xa=$("<div>");Xa.css("position","absolute");ub.makeTextOmissible(Xa);Fa=$("<div>");Fa.css("z-index",2);Fa.css("overflow","hidden");Fa.append(eb);Fa.append(Xa);w=$("<div>");w.css("z-index",2);Ea=$("<div>");Ea.css("overflow","hidden");Ea.append(Fa);Ea.append(w);for(var H=0;H<Ec.length;H++){var W=Ec[H];A(W)}for(H=0;H<zc.length;H++)W=zc[H],A(W);Ea.on("mouseenter",wb);Ea.on("mouseleave",jb);da()}return Ea};this.getJqContent=function(){return w};this.repaintSurface=function(){da()};this.hideButtons=function(H){Pc=
H;w&&ab()};this.setHasBeenFullscreen=function(H,W){for(var ta=null,Aa=0;Aa<Ab.length;Aa++){var Sa=Ab[Aa];if(P(Sa)==W){ta=Sa;break}}ta&&(W=H?"quitFullscreen":"fullscreen",H=H?Ha.get("quitFullscreen","\u9000\u51fa\u5168\u5c4f"):Ha.get("fullscreen","\u5168\u5c4f"),Pa.background(ta,W),ta.attr("title",H))};this.showWaiting=function(H,W,ta){Ka||(Ka=new xa,Ka.hookOwner(Ea,function(Aa,Sa){Za.decorateCardModalLayer(Aa,H?!0:!1);Aa.css("z-index",4);H&&ub.layoutCtrlWithLRTB(Sa,"",20,"",12,"","")}));Ka.showWaiting(W,
ta)};this.hookWaitingProgressDisplayer=function(H){Ka&&Ka.hookProgressDisplayer(H)};this.hideWaiting=function(){Ka&&(Ka.hideWaiting(),Ka=null)};var Sc=function(){var H=Ca;if(H.hasBeenFullscreen())Ra&&Ra.css("display","none");else if(Ra&&Ra.css("display",""),H.isBareSurface())Za.undecorateCardSimpleBorder(Ea),k();else{var W=H.getActiveBackgroundColor(),ta=H.isOpacityRequired(),Aa=H.getUsableCardBorder();if(Aa.getType()==uc.TYPE_MODEL){Za.undecorateCardSimpleBorder(Ea);!W&&(W=Za.getCardBackgroundColor(ta));
var Sa=Aa.getCardLook();Sa.hookBackgroundColor(W);q(function(Ma,bb,nb){var yb=new Kb;yb.setModel(Sa);yb.draw(Ma,0,0,bb,nb)})}else Aa.getType()==uc.TYPE_IMAGE?(Za.undecorateCardSimpleBorder(Ea),Aa.getImage()?Aa.loadImage(function(Ma){Ma?q(function(bb,nb,yb){var Hb=Aa.getFixedEdges(),$a=new ib;$a.setModel(Ma,Hb[0],Hb[1],Hb[2],Hb[3]);$a.draw(bb,0,0,nb,yb)}):k()}):(k(),Za.decorateCardSimpleBorder(ta,Ea),W&&Ea.css("background-color",W))):(k(),Za.decorateCardSimpleBorder(ta,Ea),W&&Ea.css("background-color",
W));Za.decorateCardTitle(Xa);W=H.getTitleFontName();ta=H.getTitleFontSize();(H=H.getTitleColor())&&Xa.css("color",H);ta&&Xa.css("font-size",ta+"px");W&&Xa.css("font-family",W)}},q=function(H){var W=Ea.prop("clientWidth"),ta=Ea.prop("clientHeight");Ra||(Ra=$(hc.createCanvas()),Ra.css("z-index",1),Ea.append(Ra));ub.layoutCtrl(Ra,0,0,W,ta);var Aa=hc.createContext2d(Ra[0],W,ta);H(Aa,W,ta)},k=function(){Ra&&(Ra.remove(),Ra=null)},x=function(H){for(var W=0;W<zc.length;W++)if(zc[W]==H)return!0;return!1},
A=function(H){var W=xc(H),ta=W[1];W=V(W[0],ta);W.on("click",function(Aa){Aa=$(Aa.target);var Sa=P(Aa);Lc&&Lc(Aa,Sa,ta)});x(H)?Ib||(Ib=V("others",Ha.get("othersMore","\u66f4\u591a")),Ib.on("click",Da),Ea.append(Ib)):Ea.append(W);W.data("myActionTag",H);Ab.push(W)},P=function(H){return H.data("myActionTag")},V=function(H,W){var ta=$("<div>");Pa.background(ta,H);ta.attr("title",W);ta.css("z-index",3);ta.addClass("dsb-widgetcard-btn");ta.hide();return ta},da=function(){if(w){var H=Ca,W=H.getPaddingTop(),
ta=H.getPaddingBottom(),Aa=H.getPaddingLeft(),Sa=H.getPaddingRight();ub.layoutCtrlWithLRTB(w,Aa,Sa,null,W,ta,null);ub.layoutCtrlWithLRTB(Fa,0,0,null,0,null,W);Fa.attr("title",null);H.isBareSurface()?(eb.css("display","none"),Xa.css("display","none"),za(W,null,null,null,null)):(Xa.css("display","block"),(H=H.getUsableCardTopBarIcon())?(eb.css("display","block"),Oa.getPictureLoader()(H.getReferenceCustomMap(),function(Ma,bb,nb){la(W,"url("+Ma+")",bb,nb)},function(Ma){var bb=Pa.getInsteadOfNotFound();
la(W,bb,24,24);eb.css("background-size","");Fa.attr("title","Icon not found: \r\n"+Ma)})):(eb.css("background-image",""),eb.css("display","none"),za(W,null,null,null,null)));ab()}},la=function(H,W,ta,Aa){var Sa=Ca,Ma=Sa.getUsableCardTopBarCommon(),bb=Ma.getTopBarIconOffset(),nb=Ma.getTopBarIconSize(),yb=bb?!1:!0,Hb=nb?!1:!0;Ma=!Hb&&Ma.isTopBarIconWidthAsPercentage();ta=Hb?ta:nb[0];Aa=Hb?Aa:nb[1];Sa=yb?Ma?0:Sa.getPaddingLeft():bb[0];bb=yb?H-Aa>>1:bb[1];yb={};yb["background-image"]=W;yb["background-repeat"]=
"no-repeat";yb["background-size"]="100% 100%";yb.left=Sa+"px";yb.top=bb+"px";yb.width=ta+(Ma?"%":"px");yb.height=Aa+"px";eb.css(yb);Ma&&(ta=-ta);za(H,Sa,ta,bb,Aa)},za=function(H,W,ta,Aa,Sa){setTimeout(function(){Sc();var Ma=Ca;if(Ma.isBareSurface())var bb=[Ma.getPaddingLeft(),H>>1];else{bb=Ea.prop("clientWidth");var nb=parseInt(Xa.css("font-size")),yb=Xa.css("font-family"),Hb=ta;Ma=!(null==W||null==Hb||null==Aa||null==Sa);var $a=!1;0>Hb&&($a=!0,Hb=Math.round(bb*-Hb/100));for(var rb=Ca,Wa=rb.getPaddingLeft(),
dc=rb.getPaddingRight(),lc=cc?40:0,ac=Math,c=ac.max,D=0,U=0,C=Ab.length-1;0<=C;C--){var O=P(Ab[C]);x(O)?U=1:D++}c=c.call(ac,Wa,bb-dc-24*(D+U));dc=rb.getCardTitle();!dc&&(dc="");ac=Math.ceil(1.25*nb);D=new Pb;D.setFontSize(nb,yb);nb=D.measureWidth(dc);D.destroy();yb=(rb=rb.getUsableCardTopBarCommon())?rb.getCardTitleHorizontalPosition():Dc.TitlePosition_Auto;yb==Dc.TitlePosition_Offset?(bb=rb.getCardTitleOffsetX(),nb=Math.min(nb,Math.max(0,c-lc-bb))):yb==Dc.TitlePosition_MidOfIcon&&Ma?(lc=Math.max(0,
W),bb=Math.min(bb,W+Hb)-lc,nb=Math.min(nb,bb),bb=lc+(bb-nb>>1)):(bb=Ma&&!$a&&2>Hb/Sa?W+Hb+6:Wa,nb=Math.min(nb,Math.max(0,c-lc-bb)));Hb=rb?rb.getCardTitleVerticalPosition():Dc.TitlePosition_Auto;Hb==Dc.TitlePosition_Offset?Ma=rb.getCardTitleOffsetY():Hb==Dc.TitlePosition_MidOfIcon&&Ma?(Ma=Math.max(0,Aa),Ma+=Math.min(H,Aa+Sa)-Ma-ac>>1):Ma=H-ac>>1;Hb={};Hb.left=bb+"px";Hb.top=Ma+"px";Hb.width=nb+"px";Hb.height=ac+"px";Hb["line-height"]=ac+"px";Xa.css(Hb);Xa.text(dc);bb=[bb+nb,Ma+(ac>>1)]}Ma=bb[0];bb=
bb[1];Qa().remove();cc&&(Hb=new cb,Hb.setIconType(cb.ICON_TYPE_QUESTION),Hb.setTipsText(cc),Hb.setContainer(Ea),Hb=Hb.getJqUi(),Hb.css("filter","opacity(0.5)"),Hb.hide(),Hb.appendTo(Fa),ub.layoutCtrl(Hb,Ma+4,bb-8),Hb.addClass("dsb-widgetcard-topbar-tips"))},0)},Qa=function(){return Fa.children(".dsb-widgetcard-topbar-tips")},ab=function(){var H=Ca,W=H.getPaddingRight()+4,ta=H.getPaddingTop();ta=Math.max(2,parseInt((ta-16)/2));H=function(bb){bb.css("top",ta);bb.css("right",W);W+=24};Ib&&(N()?H(Ib):
Ib.hide());for(var Aa=Ab.length-1;0<=Aa;Aa--){var Sa=Ab[Aa],Ma=P(Sa);x(Ma)||((Pc&Ma)==Ma?Sa.hide():H(Sa))}},wb=function(H){Qa().show();Ib&&N()&&Ib.show();for(H=0;H<Ab.length;H++){var W=Ab[H],ta=P(W);(Pc&ta)!=ta&&W.show()}},jb=function(H){Qa().hide();Ib&&Ib.hide();for(H=0;H<Ab.length;H++)Ab[H].hide();ea()},Da=function(H){if(ca().is(":visible"))ea();else{Ea.on("click",ma);var W=Ib.prop("offsetWidth");H=Ib.prop("offsetHeight");for(var ta=.5*W,Aa=.25*H,Sa=Ab.length-1;0<=Sa;Sa--){var Ma=Ab[Sa],bb=P(Ma);
x(bb)&&((Pc&bb)==bb?Ma.hide():(Ma.css("top",Aa),Ma.css("right",ta),ta+=1.5*W))}W=ta;ta=Ca.getPaddingRight();Aa=Ib.prop("offsetTop")+1.5*H;H*=1.5;ub.layoutCtrlWithLRTB(ca(),null,ta,W,Aa,null,H);ca().show()}},ca=function(){var H=Ea.children(".dsb-widgetcard-othersmenu");if(0==H.length){H=$("<div>");H.hide();H.css("z-index",3);H.addClass("dsb-widgetcard-othersmenu");for(var W=0;W<Ab.length;W++){var ta=Ab[W],Aa=P(ta);x(Aa)&&ta.appendTo(H)}H.appendTo(Ea)}return H},N=function(){for(var H=!1,W=Ab.length-
1;0<=W;W--){var ta=P(Ab[W]);if(x(ta)&&(Pc&ta)!=ta){H=!0;break}}return H},ea=function(){Ea.off("click",ma);ca().hide()},ma=function(H){H.target!=Ib[0]&&ea()}}function Qb(){var Ca=this.protectedMethod;this.protectedMethod.decorateFontSizeEnhanced=function(Ea){var Ra=Ca.getWidget().getFontSizeEnhanced();Ea.css("font-size",Ra?100+10*Ra+"%":"")}}function vb(){var Ca=this.protectedMethod,Ea,Ra,Fa=function(Xa){if(Ra){var eb=Ca.getWidget(),w=$.trim(eb.getFrontLabel());Ra.text(w);if(w){var Ka=nc.getInstance(eb.getWidgetTypeName());
Ra.css("display","");var Ab=eb.getWidth();w=eb.getHeight();"left"==eb.getFrontLabelPosition()?(eb=eb.getFrontLabelLength(),eb=eb>Ab-20?Math.max(0,Ab-20):eb,ub.layoutCtrlMiddleAlign(Ra,w),ub.layoutCtrlWithLRTB(Ra,0,null,eb),ub.layoutCtrlWithLRTB(Xa.getJqUi(),eb,0,null,0,null,"100%")):(eb=Ka.getSuggestSize()[1],w-=eb,Ra.css({"margin-top":"","line-height":w+"px"}),ub.layoutCtrlWithLRTB(Ra,0,null,"100%",0,null,w),ub.layoutCtrlWithLRTB(Xa.getJqUi(),0,0,null,w,null,eb))}else Ra.css("display","none"),ub.layoutCtrlWithLRTB(Xa.getJqUi(),
0,0,null,0,null,"100%")}};this.protectedMethod.createJqCompositeContainer=function(Xa){Ea||(Ra=$("<div>"),Ra.addClass("dsb-widget-frontlabel"),Za.decorateLabel(Ra),Fa(Xa),Ea=$("<div>"),Ea.append(Ra),Ea.append(Xa.getJqUi()));return Ea};this.protectedMethod.updateFrontLabel=Fa;this.protectedMethod.decorateInputer=function(Xa){Za.decorateInputer(Xa)}}function Cb(){Kc.call(this);vb.call(this);Qb.call(this);var Ca=this.protectedMethod,Ea,Ra,Fa;this.getJqUi=function(){Ea||(Ea=Ca.isDesigntime()||Ca.getWidget().getFrontLabel()?
Ca.createJqCompositeContainer(Xa()):Xa().getJqUi(),Ca.decorateFontSizeEnhanced(Ea));return Ea};this.setSelectableItems=function(eb){Xa().setItemModels(eb,function(w,Ka){return w&&Ka?w.getValue()===Ka.getValue():!w&&!Ka})};this.setSelectedItem=function(eb){Xa().setSelected(eb)};this.getSelectedItem=function(){return Xa().getSelected()};this.setValueChangedListener=function(eb){Fa=eb};this.updateFrontLabel=function(){Ca.updateFrontLabel(Xa())};this.updateSurface=function(){Ca.decorateFontSizeEnhanced(Ea)};
var Xa=function(){Ra||(Ra=new kb,Ra.setDropdownAsLongAsPossible(!0),Ra.setCustomPainter(function(eb,w,Ka){eb=Ka?Ka.getDisplayText():"";w.text(eb)}),Ra.addSelectedChangedListener(function(eb,w,Ka){Fa()}),Ca.decorateInputer(Ra.getJqUi()));return Ra}}function wa(){Jc.call(this);vb.call(this);Qb.call(this);var Ca=this,Ea=this.protectedMethod,Ra,Fa,Xa,eb;this.getJqUi=function(){Ra||(Ra=Ea.isDesigntime()||Ea.getWidget().getFrontLabel()?Ea.createJqCompositeContainer(w()):w().getJqUi(),Ea.decorateFontSizeEnhanced(Ra));
return Ra};this.setSelectableItems=function(Ka){Xa=Ka};this.setSelectedItems=function(Ka){w().setModel(Ka)};this.getSelectedItems=function(){return w().getModel()};this.setValueChangedListener=function(Ka){eb=Ka};this.updateFrontLabel=function(){Ea.updateFrontLabel(w())};this.updateSurface=function(){Ea.decorateFontSizeEnhanced(Ra)};var w=function(){Fa||(Fa=new p,Fa.setCustomPainter(function(Ka){if(void 0===Ka)return"";if(null===Ka)return rc.createItemAll().getDisplayText();for(var Ab=Math.min(20,
Ka.length),Ib="",cc=0;cc<Ab;cc++)0<cc&&(Ib+=", "),Ib+=Ka[cc].getDisplayText();Ka.length>Ab&&(Ib+="...");return Ib}),Fa.addActionListener(function(Ka){if(Xa){Ka=Ea.getWidget();var Ab=$.trim(Ka.getFrontLabel());Ab=Ab?Ab:Ka.getDisplayName();var Ib=new gb;Ib.setContext(Ab,Ca.getJqUi(),Ka.isMultiSelectable(),Xa,Ca.getSelectedItems(),function(cc){Ca.setSelectedItems(cc);eb()});Ib.showDialog()}}),Ea.decorateInputer(Fa.getJqUi()));return Fa}}function gb(){X.call(this);var Ca=this,Ea=this.protectedMethod;
this.setContext=function(Fa,Xa,eb,w,Ka,Ab){var Ib=eb?new Ob:new Gb;Ib.setItems(w,Ka);Ea.setTitle(Fa);Ea.setContentPaneCreator(function(){return Ib.getJqUi()});Ea.setClosingAction(function(cc){cc&&(cc=Ib.acceptSelectedItems(),void 0!==cc&&Ab(cc))});Fa=$(document.body);eb=Ib.suggestDialogSize(Fa);Ra(Fa,Xa,eb)};var Ra=function(Fa,Xa,eb){var w=eb[0],Ka=eb[1],Ab=eb[2],Ib=Ab?eb[3]:w;eb=Ab?eb[4]:Ka;var cc=ub.upwardCoordinate(Xa[0],[0,0],Fa[0]),Ec=cc[1];cc=cc[0];Xa=Ec+Xa.outerHeight();var zc=Fa.innerWidth()-
10;Fa=Fa.innerHeight()-10;cc+w>zc&&(cc=zc-w);Xa+Ka>Fa&&(Ec>.5*Fa?(Xa=Ec-Ka,10>Xa&&(Ka=Math.max(Ka-(10-Xa),eb),Xa=10)):(Ka=Math.max(Fa-Xa,eb),Xa+Ka>Fa&&(Xa=Math.max(0,Fa-Ka))));Ca.setSize(w,Ka);Ca.setPosition(cc,Xa);Ab&&(Ea.setMinSize(Ib,eb),Ea.getDialogCtrl().setResizeEnabled())}}function sb(){var Ca=this,Ea=this.protectedMethod,Ra,Fa;this.setItems=function(Xa,eb){Ra=Xa;Fa=eb};this.acceptSelectedItems=function(){var Xa=Ea.acceptSelectingResult();if(Xa){var eb=[];for(var w=!0,Ka=0;Ka<Ra.length;Ka++){var Ab=
Ra[Ka];Xa[Ab.getValue()]?eb.push(Ab):w=!1}Ca.protectedIsMultiValue()&&w&&(eb=null)}return eb};this.protectedIsMultiValue=function(){throw Error("Implement");};this.protectedGetSelectableItems=function(){return Ra};this.protectedCloneSelectedValue=function(){for(var Xa={},eb=Fa?Fa:Ca.protectedGetInsteadSelecteds(Ra),w=0;w<eb.length;w++)Xa[eb[w].getValue()]=!0;return Xa};this.protectedGetInsteadSelecteds=function(Xa){throw Error("Implement");}}function Gb(){Ba.call(this);sb.call(this);this.protectedGetInsteadSelecteds=
function(Ca){return 0==Ca.length?[]:[Ca[0]]};this.protectedIsMultiValue=function(){return!1}}function Ob(){qa.call(this);sb.call(this);this.protectedGetInsteadSelecteds=function(Ca){return Ca};this.protectedIsMultiValue=function(){return!0}}function Vb(){Ic.call(this);vb.call(this);Qb.call(this);var Ca=this,Ea=this.protectedMethod,Ra,Fa,Xa;this.getJqUi=function(){Ra||(Ra=Ea.isDesigntime()||Ea.getWidget().getFrontLabel()?Ea.createJqCompositeContainer(eb()):eb().getJqUi(),Ea.decorateFontSizeEnhanced(Ra));
return Ra};this.setDateMs=function(Ab){eb().setSelectedModel(Ab)};this.getFromDateMs=function(){return eb().getSelectedModel()[0]};this.getToDateMs=function(){return eb().getSelectedModel()[1]};this.setValueChangedListener=function(Ab){Xa=Ab};this.updateFrontLabel=function(){Ea.updateFrontLabel(eb())};this.updateSurface=function(){Ea.decorateFontSizeEnhanced(Ra)};var eb=function(){Fa||(Fa=new ob,Fa.setCustomPainter(w),Fa.setDropdownCreator(Ka),Fa.addSelectionListener(function(Ab,Ib){Ib&&Xa()}),Ea.decorateInputer(Fa.getJqUi()));
return Fa},w=function(Ab,Ib){Ab=Ab?Ca.protectedToCtrlDisplay(Ab):"...";Ib.text(Ab)};this.protectedToCtrlDisplay=function(Ab){throw Error("Implement");};var Ka=function(Ab,Ib,cc,Ec,zc){var xc=new Ia;xc.addActionListener(function(Sc){Sc=Pc();cc(Sc)});xc.setText(Ha.get("dateRangeOk","\u786e\u5b9a"));xc.getJqUi().addClass("dsb-widget-calendar-okcancel-"+(oa.isModern()?"right":"left"));var Lc=new Ia;Lc.addActionListener(function(Sc){Ec()});Lc.setText(Ha.get("dateRangeCancel","\u53d6\u6d88"));Lc.getJqUi().addClass("dsb-widget-calendar-okcancel-"+
(oa.isModern()?"left":"right"));Ab.css("background-color","#fff");Ab.append(xc.getJqUi());Ab.append(Lc.getJqUi());xc=[];var Pc=Ca.protectedInitPopup(Ib,Ab,xc,zc);return xc};this.protectedInitPopup=function(Ab,Ib,cc,Ec){throw Error("Implement");}}function Wb(){Ic.call(this);vb.call(this);Qb.call(this);var Ca=this,Ea=this.protectedMethod,Ra,Fa,Xa;this.getJqUi=function(){Ra||(Ra=Ea.isDesigntime()||Ea.getWidget().getFrontLabel()?Ea.createJqCompositeContainer(eb()):eb().getJqUi(),Ea.decorateFontSizeEnhanced(Ra));
return Ra};this.setValueChangedListener=function(w){Xa=w};this.updateFrontLabel=function(){Ea.updateFrontLabel(eb())};this.updateSurface=function(){Ea.decorateFontSizeEnhanced(Ra)};var eb=function(){Fa||(Fa=Ca.protectedCreateRealCtrl(),Ea.decorateInputer(Fa.getJqUi()));return Fa};this.protectedCreateRealCtrl=function(){throw Error("Implement");};Ea.getRealCtrl=eb;Ea.fireValueChangedEvent=function(){Xa()}}function Rb(){Vb.call(this);this.protectedToCtrlDisplay=function(Ca){var Ea=new zb;Ea.setFormatString("yyyy-M-d");
var Ra=Ea.format(Ca[0]);Ca=Ea.format(Ca[1]);return Ra+"~"+Ca};this.protectedInitPopup=function(Ca,Ea,Ra,Fa){var Xa=$("<div>");Xa.css("display","none");Xa.addClass("sa-ctrl-date-mask");Fa=new f;Fa.setDateRange(Ca[0],Ca[1]);Fa.setMaskRequestListener(function(eb,w){Xa.css("display",w?"":"none")});Ea.append(Fa.getJqUi());Ea.append(Xa);ub.layoutCtrlWithLRTB(Fa.getJqUi(),20,20,null,8,32,null);ub.layoutCtrlWithLRTB(Xa,0,0,null,null,0,32);Ra[0]=560;Ra[1]=320;return Fa.getDateRange}}function Tb(){Vb.call(this);
this.protectedToCtrlDisplay=function(Ca){var Ea=new Date(Ca[0]);Ca=Ea.getFullYear();Ea=Math.floor(Ea.getMonth()/3)+1;return Ca+"Q"+Ea};this.protectedInitPopup=function(Ca,Ea,Ra,Fa){var Xa=(Ca=Ca[0])?new Date(Ca):new Date;Ca=Xa.getFullYear();Xa=Math.floor(Xa.getMonth()/3);var eb=new na;eb.setSelectedYear(Ca);eb.setSelectedQuarter(Xa);eb.getJqUi().appendTo(Ea);ub.layoutCtrlWithLRTB(eb.getJqUi(),0,0,null,0,40,null);Ra[0]=260;Ra[1]=400;Fa(function(){eb.scrollSelectedToVisible()});return function(){var w=
eb.getSelectedYear(),Ka=eb.getSelectedQuarter();return na.toDateRange(w,Ka)}}}function Na(){Vb.call(this);this.protectedToCtrlDisplay=function(Ca){var Ea=new zb;Ea.setFormatString("yyyy-MM");return Ea.format(Ca[0])};this.protectedInitPopup=function(Ca,Ea,Ra,Fa){var Xa=(Ca=Ca[0])?new Date(Ca):new Date;Ca=Xa.getFullYear();Xa=Xa.getMonth();var eb=new Ua;eb.setSelectedYear(Ca);eb.setSelectedMonth(Xa+1);eb.getJqUi().appendTo(Ea);ub.layoutCtrlWithLRTB(eb.getJqUi(),0,0,null,0,40,null);Ra[0]=260;Ra[1]=400;
Fa(function(){eb.scrollSelectedToVisible()});return function(){var w=eb.getSelectedYear(),Ka=eb.getSelectedMonth()-1;return Ua.toDateRange(w,Ka)}}}function Eb(){Wb.call(this);var Ca=this.protectedMethod,Ea=!1;this.protectedCreateRealCtrl=function(){for(var Ra=[],Fa=1970;2099>=Fa;Fa++)Ra.push(Fa);Fa=new kb;Fa.setItemModels(Ra);Fa.addSelectedChangedListener(function(Xa,eb,w){!Ea&&Ca.fireValueChangedEvent()});return Fa};this.setDateMs=function(Ra){Ra=(Ra?new Date(Ra[0]):new Date).getFullYear();Ea=!0;
Ca.getRealCtrl().setSelected(Ra);Ea=!1};this.getFromDateMs=function(){var Ra=Ca.getRealCtrl().getSelected(),Fa=new Date;Fa.setFullYear(Ra,0,1);Fa.setHours(0,0,0,0);return Fa.getTime()};this.getToDateMs=function(){var Ra=Ca.getRealCtrl().getSelected(),Fa=new Date;Fa.setFullYear(Ra,11,31);Fa.setHours(23,59,59,999);return Fa.getTime()}}function Ja(){Wb.call(this);var Ca=this.protectedMethod;this.protectedCreateRealCtrl=function(){var Ea=new ha;Ea.addModelChangedListener(function(Ra){Ca.fireValueChangedEvent()});
return Ea};this.setDateMs=function(Ea){Ea=Ea?new Date(Ea[0]):new Date;Ca.getRealCtrl().setDateObject(Ea)};this.getFromDateMs=function(){var Ea=Ca.getRealCtrl().getYear(),Ra=Ca.getRealCtrl().getMonth()-1,Fa=Ca.getRealCtrl().getDay(),Xa=new Date;Xa.setFullYear(Ea,Ra,Fa);Xa.setHours(0,0,0,0);return Xa.getTime()};this.getToDateMs=function(){var Ea=Ca.getRealCtrl().getYear(),Ra=Ca.getRealCtrl().getMonth()-1,Fa=Ca.getRealCtrl().getDay(),Xa=new Date;Xa.setFullYear(Ea,Ra,Fa);Xa.setHours(23,59,59,999);return Xa.getTime()}}
"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.dsb&&(com.kingdee.bos.qing.dsb={});"undefined"==typeof com.kingdee.bos.qing.dsb.widget&&(com.kingdee.bos.qing.dsb.widget={});"undefined"==typeof com.kingdee.bos.qing.dsb.widget.desktop&&(com.kingdee.bos.qing.dsb.widget.desktop={});var fb=com.kingdee.bos.qing.dsb.widget.desktop,
ub,zb,hc,Pb,Ha,oa,kb,ob,Ia,cb,p,X,na,Ua,ha,f,xa,Ba,qa,Pa,Oa,Za,ib,Kb,nc,kc,rc,uc,Dc,ic,yc,Kc,Jc,Ic;(function(){var Ca=com.kingdee.bos.qing.common;ub=Ca.DomUtil;zb=Ca.DateFormater;hc=Ca.CanvasUtil;Pb=Ca.TextMeasurer;Ca=com.kingdee.bos.qing.framework.common;Ha=Ca.MultilanguageManager.createPackageAccessor(fb);Ca=com.kingdee.bos.qing.ui.component;oa=Ca.SkinUiContext;kb=Ca.ComboBox;ob=Ca.DropdownSelector;Ia=Ca.WorkButton;cb=Ca.HelpIcon;p=Ca.F7Selector;X=Ca.AbstractModalDialog;na=Ca.DateOfYearQuarterPanel;
Ua=Ca.DateOfYearMonthPanel;ha=Ca.DateSelector;Ca=com.kingdee.bos.qing.common.ui;f=Ca.DateRangePanel;Ca=com.kingdee.bos.qing.core.commonui;xa=Ca.LongtimeWaitingMask;Ca=com.kingdee.bos.qing.core.ui;Ba=Ca.AbstractSingleValueDiscreteSelector;qa=Ca.AbstractMultiValueDiscreteSelector;Ca=com.kingdee.bos.qing.dsb;Pa=Ca.Icons;Oa=Ca.IntegrationRegister;Za=Ca.CosmeticBag;ib=Ca.ImageBorderRenerer;Ca=com.kingdee.bos.qing.dsb.look;Kb=Ca.CardLookRenderer;Ca=com.kingdee.bos.qing.dsb.model;nc=Ca.WidgetTypeManager;
kc=Ca.DashboardModel;rc=Ca.AbstractFilterSource;uc=Ca.AbstractCardBorder;Dc=Ca.CardTopBarCommon;Ca=com.kingdee.bos.qing.dsb.widget;ic=Ca.AbstractBuiltinVisualWidgetCtrl;yc=Ca.AbstractPanelWidgetCtrl;Kc=Ca.AbstractComboboxWidgetCtrl;Jc=Ca.AbstractF7WidgetCtrl;Ic=Ca.AbstractCalendarWidgetCtrl})();(function(){var Ca=function(Ea){Ea.registerClass(kc.WidgetType_Square,fc);Ea.registerClass(kc.WidgetType_Longer,lb);Ea.registerClass(kc.WidgetType_Panel,Mb);Ea.registerClass(kc.WidgetType_Combobox,Cb);Ea.registerClass(kc.WidgetType_F7,
wa);Ea.registerClass(kc.WidgetType_Calendar,Rb);Ea.registerClass(kc.WidgetType_CalendarYear,Eb);Ea.registerClass(kc.WidgetType_CalendarQuarter,Tb);Ea.registerClass(kc.WidgetType_CalendarMonth,Na);Ea.registerClass(kc.WidgetType_CalendarDay,Ja)};Ca(com.kingdee.bos.qing.dsb.widget.DesktopWidgetCtrlRegister);Ca(com.kingdee.bos.qing.dsb.widget.MobileWidgetCtrlRegister);com.kingdee.bos.qing.dsb.ui.CardTopBarTitleLayoutDialog.hookPreviewCard(bc)})()})();
//qingVersionTag: 20250415