var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(g,ub,Da){g instanceof String&&(g=String(g));for(var ib=g.length,lb=0;lb<ib;lb++){var Lb=g[lb];if(ub.call(Da,Lb,lb,g))return{i:lb,v:Lb}}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(g,ub,Da){if(g==Array.prototype||g==Object.prototype)return g;g[ub]=Da.value;return g};$jscomp.getGlobal=function(g){g=["object"==typeof globalThis&&globalThis,g,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var ub=0;ub<g.length;++ub){var Da=g[ub];if(Da&&Da.Math==Math)return Da}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(g,ub){var Da=$jscomp.propertyToPolyfillSymbol[ub];if(null==Da)return g[ub];Da=g[Da];return void 0!==Da?Da:g[ub]};
$jscomp.polyfill=function(g,ub,Da,ib){ub&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(g,ub,Da,ib):$jscomp.polyfillUnisolated(g,ub,Da,ib))};$jscomp.polyfillUnisolated=function(g,ub,Da,ib){Da=$jscomp.global;g=g.split(".");for(ib=0;ib<g.length-1;ib++){var lb=g[ib];if(!(lb in Da))return;Da=Da[lb]}g=g[g.length-1];ib=Da[g];ub=ub(ib);ub!=ib&&null!=ub&&$jscomp.defineProperty(Da,g,{configurable:!0,writable:!0,value:ub})};
$jscomp.polyfillIsolated=function(g,ub,Da,ib){var lb=g.split(".");g=1===lb.length;ib=lb[0];ib=!g&&ib in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var Lb=0;Lb<lb.length-1;Lb++){var wb=lb[Lb];if(!(wb in ib))return;ib=ib[wb]}lb=lb[lb.length-1];Da=$jscomp.IS_SYMBOL_NATIVE&&"es6"===Da?ib[lb]:null;ub=ub(Da);null!=ub&&(g?$jscomp.defineProperty($jscomp.polyfills,lb,{configurable:!0,writable:!0,value:ub}):ub!==Da&&(void 0===$jscomp.propertyToPolyfillSymbol[lb]&&(Da=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[lb]=
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(lb):$jscomp.POLYFILL_PREFIX+Da+"$"+lb),$jscomp.defineProperty(ib,$jscomp.propertyToPolyfillSymbol[lb],{configurable:!0,writable:!0,value:ub})))};$jscomp.polyfill("Array.prototype.find",function(g){return g?g:function(ub,Da){return $jscomp.findInternal(this,ub,Da).v}},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(g){return g?g:function(ub,Da,ib){var lb=this.length||0;0>Da&&(Da=Math.max(0,lb+Da));if(null==ib||ib>lb)ib=lb;ib=Number(ib);0>ib&&(ib=Math.max(0,lb+ib));for(Da=Number(Da||0);Da<ib;Da++)this[Da]=ub;return this}},"es6","es3");$jscomp.typedArrayFill=function(g){return g?g: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 g(){var aa=this,N=[];this.clone=function(){for(var C=new g,y=0;y<N.length;y++){var M=N[y].clone();C.addParagraph(M)}return C};this.getParagraphCount=function(){return N.length};this.getParagraph=function(C){return N[C]};this.addParagraph=function(C){N.push(C)};this.insertParagraph=function(C){var y=new ub;N.splice(C,0,y);return y};this.getAllText=function(C,y){var M="";ua(y,function(oa,H,Q,T){H=T.getText();y&&(oa==y.getToParagraphIndex()&&Q==y.getToContentIndex()&&(H=H.substring(0,
y.getToOffset())),oa==y.getFromParagraphIndex()&&Q==y.getFromContentIndex()&&(H=H.substring(y.getFromOffset())));M+=H},function(){C&&(M+=C)});return M};this.getAllTextLength=function(C){var y=0;ua(C,function(M,oa,H,Q){y+=Q.getTextLength();C&&(M==C.getFromParagraphIndex()&&H==C.getFromContentIndex()&&(y-=C.getFromOffset()),M==C.getToParagraphIndex()&&H==C.getToContentIndex()&&(y-=Q.getTextLength()-C.getToOffset()))});return y};this.getScope=function(C){var y=[0,0];if(C){var M=0,oa=0;ua(null,function(H,
Q,T,U){H==C.getFromParagraphIndex()&&T==C.getFromContentIndex()&&(y[0]=M+C.getFromOffset(),oa++);H==C.getToParagraphIndex()&&T==C.getToContentIndex()&&(y[1]=M+C.getToOffset(),oa++);M+=U.getTextLength();return 2<=oa})}return y};this.replaceText=function(C,y,M){C+=1;var oa,H,Q=0;ua(null,function(ja,qa,Ga,za){qa=Q+za.getTextLength();!oa&&qa>=C&&(oa=new lb(ja,Ga,C-Q));!H&&qa>=y&&(H=new lb(ja,Ga,y-Q));Q=qa;return oa&&H?!0:!1});var T=N[oa.getParagraphIndex()].getContent(oa.getContentIndex()),U=oa.getOffset()-
1;oa.update(oa.getContentIndex(),U);ya(new Lb(oa,H));var Y=T.getText();T.setText(Y.substring(0,U)+M+Y.substring(U))};this.replaceVar=function(C,y,M){C+=1;var oa,H,Q=0;ua(null,function(Ga,za,ab,Gb){za=Q+Gb.getTextLength();!oa&&za>=C&&(oa=new lb(Ga,ab,C-Q));!H&&za>=y&&(H=new lb(Ga,ab,y-Q));Q=za;return oa&&H?!0:!1});var T=N[oa.getParagraphIndex()].getContent(oa.getContentIndex()),U=new Da;U.setText(M);U.brushStyleBy(T);oa.update(oa.getContentIndex(),oa.getOffset()-1);ya(new Lb(oa,H));M=oa.getOffset();
T=N[oa.getParagraphIndex()];if(0==M)T.insertContent(oa.getContentIndex(),U);else{var Y=T.getContent(oa.getContentIndex()),ja=Y.getText();if(ja.length>M){Y.setText(ja.substring(M));var qa=new Da;qa.setText(ja.substring(0,M));qa.brushStyleBy(Y);T.insertContent(oa.getContentIndex(),qa)}T.insertContent(oa.getContentIndex()+1,U)}return U};this.inputText=function(C,y,M){!C.isCollapse()&&ya(C);var oa=C.getFromParagraphIndex(),H=C.getFromParagraphIndex(),Q=C.getFromContentIndex(),T=C.getFromOffset();C=N[H];
var U=C.getContent(Q),Y=U.getText();U.setText(Y.substring(0,T));var ja=new Da;ja.setText(Y.substring(T));ja.brushStyleBy(U);C.insertContent(Q+1,ja);Q++;T=0;Y=y.length;for(ja=0;ja<Y;ja++){var qa=y[ja];Ya.cleanInvalidChar(qa,function(Ga){qa=Ga});T=new Da;T.setText(qa);T.brushStyleBy(U);M&&M.applyTo(T);C=N[H];C.insertContent(Q,T);T=qa.length;C=new Lb(new lb(H,Q,T));ja<Y-1&&(Fa(C),H++,T=Q=0)}C=new Lb(new lb(H,Q,T));ma(oa,H,C);return C};this.inputCommand=function(C,y){var M=!C.isCollapse(),oa=C.getFromParagraphIndex(),
H=oa,Q=oa;switch(y){case 13:Fa(C);M&&ya(C);var T=new lb(oa+1,0,0);Q=oa+1;break;case 8:if(M)ya(C);else{T=C;H=T.getFromParagraphIndex();Q=T.getFromContentIndex();T=T.getFromOffset();y=N[H];if(0==T)if(0==Q){if(0!=H){var U=N[H-1];N.splice(H,1);H--;Q=U.getContentCount()-1;T=U.getContent(Q).getTextLength();for(var Y=0;Y<y.getContentCount();Y++)M=y.getContent(Y),U.addContent(M)}}else T=y.getContent(Q-1),U=T.getText(),T.setText(U.substring(0,U.length-1)),Q--,T=T.getTextLength();else M=y.getContent(Q),U=M.getText(),
M.setText(U.substring(0,T-1)+U.substring(T)),T--,0==T&&0<Q&&(Q--,T=y.getContent(Q).getTextLength());T=new lb(H,Q,T);Q=H=T.getParagraphIndex()}break;case 46:if(M)ya(C);else{M=C;y=M.getFromParagraphIndex();U=M.getFromContentIndex();Y=M.getFromOffset();M=N[y];var ja=M.getContent(U);if(Y==ja.getTextLength())if(U==M.getContentCount()-1){if(y!=N.length-1){U=N[y+1];for(Y=0;Y<U.getContentCount();Y++)M.addContent(U.getContent(Y));N.splice(y+1,1)}}else y=M.getContent(U+1),1<y.getTextLength()?y.setText(y.getText().substring(1)):
M.removeContent(U+1);else y=ja.getText(),ja.setText(y.substring(0,Y)+y.substring(Y+1))}}T||(T=new lb(oa,C.getFromContentIndex(),C.getFromOffset()));C=new Lb(T);ma(H,Q,C);return C};this.changeParagraphStyle=function(C,y){for(var M=C.getFromParagraphIndex();M<=C.getToParagraphIndex();M++)y(N[M])};this.changeContentStyle=function(C,y){for(var M=C.getFromParagraphIndex(),oa=C.getFromContentIndex(),H=C.getFromOffset(),Q=C.getToParagraphIndex(),T=C.getToContentIndex(),U=C.getToOffset(),Y=Q;Y>=M;Y--){var ja=
N[Y],qa=ja.getContentCount()-1;if(Y==Q){var Ga=ja.getContent(T),za=Ga.getText();Ga.setText(za.substring(0,U));var ab=new Da;ab.setText(za.substring(U));ab.brushStyleBy(Ga);ja.insertContent(T+1,ab);qa=T}za=0;Y==M&&(Ga=ja.getContent(oa),za=Ga.getText(),Ga.setText(za.substring(H)),ab=new Da,ab.setText(za.substring(0,H)),ab.brushStyleBy(Ga),ja.insertContent(oa,ab),qa++,za=oa+1,C.updateStartPosition(oa+1,0),M==Q&&C.updateEndPosition(qa,ja.getContent(qa).getTextLength()));for(;qa>=za;qa--)Ga=ja.getContent(qa),
y(Ga)}ma(M,Q,C)};var Fa=function(C){var y=C.getToParagraphIndex(),M=N[y];y=aa.insertParagraph(y+1);y.brushStyleBy(M);for(var oa=M.getContentCount()-1;oa>C.getToContentIndex();oa--){var H=M.removeContent(oa);y.insertContent(0,H)}H=M.getContent(C.getToContentIndex());M=H.getText().substring(C.getToOffset());H.setText(H.getText().substring(0,C.getToOffset()));C=new Da;C.setText(M);C.brushStyleBy(H);y.insertContent(0,C)},ya=function(C){if(C.isInsideOneParagraph()){var y=N[C.getFromParagraphIndex()];if(C.isInsideOneContent()){var M=
y.getContent(C.getFromContentIndex());y=M.getText();M.setText(y.substring(0,C.getFromOffset())+y.substring(C.getToOffset()))}else for(M=y.getContent(C.getFromContentIndex()),M.setText(M.getText().substring(0,C.getFromOffset())),M=y.getContent(C.getToContentIndex()),M.setText(M.getText().substring(C.getToOffset())),M=C.getToContentIndex()-1;M>C.getFromContentIndex();M--)y.removeContent(M)}else{y=N[C.getFromParagraphIndex()];M=y.getContent(C.getFromContentIndex());M.setText(M.getText().substring(0,
C.getFromOffset()));for(M=y.getContentCount()-1;M>C.getFromContentIndex();M--)y.removeContent(M);var oa=N[C.getToParagraphIndex()];M=oa.getContent(C.getToContentIndex());M.setText(M.getText().substring(C.getToOffset()));for(M=C.getToContentIndex()-1;0<=M;M--)oa.removeContent(M);N.splice(C.getFromParagraphIndex()+1,C.getToParagraphIndex()-C.getFromParagraphIndex());for(M=0;M<oa.getContentCount();M++)y.addContent(oa.getContent(M))}},ma=function(C,y,M){for(;y>=C;y--)for(var oa=N[y],H=null,Q=oa.getContentCount()-
1;0<=Q;Q--){var T=oa.getContent(Q);if(T.isTextEmpty()&&1<oa.getContentCount()){oa.removeContent(Q);if(y==M.getFromParagraphIndex())if(Q<M.getFromContentIndex())M.updateStartPosition(M.getFromContentIndex()-1);else if(Q==M.getFromContentIndex()){T=0==Q?0:Q-1;var U=0==Q?0:oa.getContent(Q-1).getTextLength();M.updateStartPosition(T,U)}y==M.getToParagraphIndex()&&(Q<M.getToContentIndex()?M.updateEndPosition(M.getToContentIndex()-1):Q==M.getToContentIndex()&&(T=0==Q?0:Q-1,U=0==Q?0:oa.getContent(Q-1).getTextLength(),
M.updateEndPosition(T,U)))}else H&&T.isStyleDuplicated(H)&&(U=T.getTextLength(),T.setText(T.getText()+H.getText()),H=Q+1,oa.removeContent(H),y==M.getFromParagraphIndex()&&(H<M.getFromContentIndex()?M.updateStartPosition(M.getFromContentIndex()-1):H==M.getFromContentIndex()&&M.updateStartPosition(M.getFromContentIndex()-1,U+M.getFromOffset())),y==M.getToParagraphIndex()&&(H<M.getToContentIndex()?M.updateEndPosition(M.getToContentIndex()-1):H==M.getToContentIndex()&&M.updateEndPosition(M.getToContentIndex()-
1,U+M.getToOffset()))),H=T}},ua=function(C,y,M){for(var oa=C?C.getFromParagraphIndex():0,H=C?C.getToParagraphIndex():N.length-1,Q=oa;Q<=H;Q++){Q>oa&&M&&M();for(var T=N[Q],U=C&&Q==oa?C.getFromContentIndex():0,Y=C&&Q==H?C.getToContentIndex():T.getContentCount()-1;U<=Y;U++){var ja=T.getContent(U);if(y(Q,T,U,ja))return}}}}function ub(){var aa=this,N=[],Fa="left",ya=1.5,ma=0,ua=0,C=0;this.getContentCount=function(){return N.length};this.getContent=function(y){return N[y]};this.removeContent=function(y){return N.splice(y,
1)[0]};this.addContent=function(y){N.push(y)};this.insertContent=function(y,M){N.splice(y,0,M)};this.isTextEmpty=function(){for(var y=0;y<N.length;y++)if(!N[y].isTextEmpty())return!1;return!0};this.clone=function(){var y=new ub;y.brushStyleBy(aa);for(var M=0;M<N.length;M++){var oa=N[M].clone();y.addContent(oa)}return y};this.brushStyleBy=function(y){Fa=y.getAlign();ya=y.getLineHeight();ma=y.getMarginBefore();ua=y.getMarginAfter();C=y.getIndent()};this.getMaxFontSize=function(){for(var y=0,M=0;M<N.length;M++)y=
Math.max(y,N[M].getFontSize());return y};this.getAlign=function(){return Fa};this.setAlign=function(y){Fa=y};this.getLineHeight=function(){return ya};this.setLineHeight=function(y){ya=y};this.getMarginBefore=function(){return ma};this.setMarginBefore=function(y){ma=y};this.getMarginAfter=function(){return ua};this.setMarginAfter=function(y){ua=y};this.getIndent=function(){return C};this.setIndent=function(y){C=y}}function Da(){var aa=this,N="",Fa,ya=12,ma=!1,ua=!1,C,y;this.getText=function(){return N};
this.setText=function(M){N=M};this.getTextLength=function(){return N.length};this.isTextEmpty=function(){return N?!1:!0};this.clone=function(){var M=new Da;M.setText(N);M.brushStyleBy(aa);return M};this.brushStyleBy=function(M){Fa=M.getFontName();ya=M.getFontSize();ma=M.isBold();ua=M.isItalic();C=M.getColor()};this.isStyleDuplicated=function(M){return Fa==M.getFontName()&&ya==M.getFontSize()&&ma==M.isBold()&&ua==M.isItalic()&&C==M.getColor()};this.getFontName=function(){return Fa};this.setFontName=
function(M){Fa=M};this.getFontSize=function(){return ya};this.setFontSize=function(M){ya=M};this.isBold=function(){return ma};this.setBold=function(M){ma=M};this.isItalic=function(){return ua};this.setItalic=function(M){ua=M};this.getColor=function(){return C};this.setColor=function(M){C=M};this.hookUiCustomDecorator=function(M){y=M};this.uiCustomDecorating=function(M){y&&y(M)}}function ib(){Da.call(this);var aa=this;this.applyTo=function(N){void 0!==aa.getFontName()&&N.setFontName(aa.getFontName());
void 0!==aa.getFontSize()&&N.setFontSize(aa.getFontSize());void 0!==aa.isBold()&&N.setBold(aa.isBold());void 0!==aa.isItalic()&&N.setItalic(aa.isItalic());void 0!==aa.getColor()&&N.setColor(aa.getColor())}}function lb(aa,N,Fa){var ya=N,ma=Fa;this.getParagraphIndex=function(){return aa};this.getContentIndex=function(){return ya};this.getOffset=function(){return ma};this.update=function(ua,C){ya=ua;"number"==typeof C&&(ma=C)};this.toString=function(){return aa+","+ya+","+ma}}function Lb(aa,N){var Fa=
this,ya=N?N:new lb(aa.getParagraphIndex(),aa.getContentIndex(),aa.getOffset());this.isInsideOneParagraph=function(){return aa.getParagraphIndex()==ya.getParagraphIndex()};this.isInsideOneContent=function(){return Fa.isInsideOneParagraph()&&aa.getContentIndex()==ya.getContentIndex()};this.isCollapse=function(){return Fa.isInsideOneContent()&&aa.getOffset()==ya.getOffset()};this.getFromParagraphIndex=function(){return aa.getParagraphIndex()};this.getToParagraphIndex=function(){return ya.getParagraphIndex()};
this.getFromContentIndex=function(){return aa.getContentIndex()};this.getToContentIndex=function(){return ya.getContentIndex()};this.getFromOffset=function(){return aa.getOffset()};this.getToOffset=function(){return ya.getOffset()};this.updateStartPosition=function(ma,ua){aa.update(ma,ua)};this.updateEndPosition=function(ma,ua){ya.update(ma,ua)};this.toString=function(){return aa.toString()+"~"+ya.toString()}}function wb(){var aa=RegExp("\u21b5","gm"),N=this,Fa,ya,ma="#333333",ua="transparent";this.getJqUi=
function(){ya||(ya=$("<div>"),ya.css("padding","4px 6px"),ya.css("overflow-x","hidden"),ya.css("overflow-y","auto"),ya.css("white-space","pre-wrap"),Fa&&C());return ya};this.setModel=function(y){Fa=y;ya&&C()};this.setDefaultColor=function(y){ma=y;N.refresh()};this.getDefaultColor=function(){return ma};this.setOccupierColor=function(y){ua=y;ya&&ya.find(".occupier").css("color",ua)};this.refresh=function(){Fa&&ya&&C()};this.searchJqUiOfParagraphs=function(){return N.getJqUi().children(".paragraph")};
this.searchJqUiOfContents=function(y){return y?y.children(".content"):N.getJqUi().find(".content")};this.searchJqUiOfContent=function(y,M){y=".paragraph:eq(#1) .content:eq(#2)".replace("#1",y).replace("#2",M);return N.getJqUi().find(y)};this.searchHtmlUiOfText=function(y){y=y[0];var M=y.childNodes;return M&&0<M.length?(y=M[0],[y,y.length]):[y,0]};this.searchText=function(){var y=N.getJqUi().text();return y=y.replace(aa,"")};this.upwardSearchOccupier=function(y){for(y=$(y);!y.hasClass("occupier");)if(y=
y.parent(),0==y.length||y[0]==ya[0]||y[0]==document.body)return null;return y};this.searchOccupierInstead=function(y){return N.searchJqUiOfContents($(y).parent())[0]};var C=function(){for(var y=$(document.createDocumentFragment()),M=0;M<Fa.getParagraphCount();M++){var oa=Fa.getParagraph(M),H=0<M?Fa.getParagraph(M-1):null,Q=$("<div>");Q.addClass("paragraph");Q.appendTo(y);var T=Q,U=oa;H=H?H.getMarginAfter():0;T.css("text-align",U.getAlign());T.css("line-height",U.getLineHeight()+"em");T.css("margin-top",
H+U.getMarginBefore()+"px");T.css("margin-bottom",U.getMarginAfter()+"px");T.css("text-indent",U.getIndent()+"em");T.css("font-size",U.getMaxFontSize()+"px");for(T=0;T<oa.getContentCount();T++){U=oa.getContent(T);H=$("<span>");H.addClass("content");H.text(U.getText());H.appendTo(Q);var Y=H,ja=U;Y.css("font-family",ja.getFontName()?ja.getFontName():"");Y.css("font-size",ja.getFontSize()+"px");ja.isBold()&&Y.css("font-weight","bold");ja.isItalic()&&Y.css("font-style","italic");ja.getColor()&&Y.css("color",
ja.getColor());U.uiCustomDecorating(H)}oa.isTextEmpty()&&(oa=$("<span>"),oa.addClass("occupier"),oa.text("\u21b5"),oa.css("font-size","8px"),oa.css("color",ua),oa.appendTo(Q))}ya.empty();ya.append(y);ya.css("color",ma)}}function Fb(){var aa,N,Fa,ya,ma,ua,C,y,M,oa,H,Q,T,U,Y,ja,qa;this.hookDefaultColorGetter=function(fb){aa=fb};this.getJqUi=function(){if(!ya){ma=Gb(eb.get("fontName","\u5b57\u4f53"));ua=Ob(eb.get("fontSize","\u5b57\u53f7"));C=Zb("rich-bold",eb.get("bold","\u52a0\u7c97"));y=Sb("rich-italic",
eb.get("italic","\u659c\u4f53"));M=mc("rich-color",eb.get("color","\u5b57\u4f53\u989c\u8272"));oa=hc("left","rich-left",eb.get("alignLeft","\u5de6\u5bf9\u9f50"));H=hc("center","rich-center",eb.get("alignCenter","\u5c45\u4e2d"));Q=hc("right","rich-right",eb.get("alignRight","\u53f3\u5bf9\u9f50"));T=hc("justify","rich-justify",eb.get("alignJustify","\u4e24\u7aef\u5bf9\u9f50"));U=oc("rich-lineheight",eb.get("lineHeight","\u884c\u8ddd"));Y=fc("rich-indent",eb.get("indent","\u6bb5\u9996\u7f29\u8fdb"));
ja=pc(!0,"rich-marginbefore",eb.get("marginBefore","\u6bb5\u524d\u95f4\u8ddd"));qa=pc(!1,"rich-marginafter",eb.get("marginAfter","\u6bb5\u540e\u95f4\u8ddd"));ya=$("<div>");var fb=Ga(ma,0,108);fb=Ga(ua,fb,44);fb=Ga(C,fb,20);fb=Ga(y,fb,20);fb=Ga(M,fb,32);fb=Ga(oa,fb,20);fb=Ga(H,fb,20);fb=Ga(Q,fb,20);fb=Ga(T,fb,20);fb=Ga(U,fb,32);fb=Ga(Y,fb,32);fb=Ga(ja,fb,32);Ga(qa,fb,32)}return ya};this.updateState=function(fb,ob){ma.setSelectedModel(ob.getFontName());ua.setSelectedModel(ob.getFontSize());C.setSelected(ob.isBold());
y.setSelected(ob.isItalic());M.setSelectedModel(ob.getColor());Y.setSelectedModel(fb.getIndent());oa.setSelected("left"==fb.getAlign());H.setSelected("center"==fb.getAlign());Q.setSelected("right"==fb.getAlign());T.setSelected("justify"==fb.getAlign());U.setSelectedModel(fb.getLineHeight());ja.setSelectedModel(fb.getMarginBefore());qa.setSelectedModel(fb.getMarginAfter())};this.setStyleModifyListener=function(fb,ob){N=fb;Fa=ob};var Ga=function(fb,ob,nb){ya.append(fb.getJqUi());jb.layoutCtrl(fb.getJqUi(),
ob,0,nb,20);return ob+nb+4},za=function(fb,ob){var nb=new Ib,Jb=nb.getJqUi();Jb.attr("title",ob);ob=$("<div>");bb.background(ob,fb);ob.appendTo(Jb);jb.layoutCtrlCenterAlign(ob,16);jb.layoutCtrlMiddleAlign(ob,16);return nb},ab=function(fb,ob,nb,Jb,Nb){var Qb=new ha;nb&&Qb.setCustomPainter(function(S,Ha){Ha.data("init")||(Ha.data("init",!0),ic(Ha),S=$("<div>"),bb.background(S,nb),S.appendTo(Ha),jb.layoutCtrlCenterAlign(S,16),jb.layoutCtrlMiddleAlign(S,16))});Qb.setDropdownCreator(function(S,Ha,vb,Tb){Tb=
new W;Tb.setText(fb+" ("+ob+")");var Mb=new Ra;Jb(Mb);Mb.setValue(Ha);Mb.addValueChangedListener(function(nc,gc,ac,tc){tc==Ra.CHANGED_BY_MANUAL_EDIT&&vb(ac)});Ha=new sa;Ha.setText(eb.get("confirmButton","\u786e\u5b9a"));Ha.addActionListener(function(nc){vb(Mb.getValue())});jb.layoutCtrlWithLRTB(Tb.getJqUi(),10,10,null,4,null,23);jb.layoutCtrlWithLRTB(Mb.getJqUi(),10,null,68,30,null,23);jb.layoutCtrlWithLRTB(Ha.getJqUi(),null,10,42,30,null,23);S.append(Tb.getJqUi());S.append(Mb.getJqUi());S.append(Ha.getJqUi());
S.css("background-color","#fff");return[140,66]});Qb.addSelectionListener(function(S,Ha){Ha&&Nb(S.getSelectedModel())});Qb.getJqUi().attr("title",fb);return Qb},Gb=function(fb){var ob=new ha;ob.setDropdownCreator(function(nb,Jb,Nb,Qb){Qb=new W;Qb.setText(fb);var S=new sb;S.setUiListMode(!0);S.setDefaultDisplay("("+eb.get("systemDefaultFont","\u9ed8\u8ba4\u5b57\u4f53")+")");S.setSelected(Jb);S.setSelectionListener(function(Ha,vb){setTimeout(function(){Nb(vb)},0)});jb.layoutCtrlWithLRTB(Qb.getJqUi(),
10,10,null,4,null,23);jb.layoutCtrlWithLRTB(S.getJqUi(),10,10,null,30,10,null);nb.append(Qb.getJqUi());nb.append(S.getJqUi());nb.css("background-color","#fff");return[240,200]});ob.addSelectionListener(function(nb,Jb){Jb&&Fa(function(Nb){Nb.setFontName(nb.getSelectedModel())})});ob.getJqUi().attr("title",fb);ob.setCustomPainter(function(nb,Jb){if(nb){var Nb=sb.searchDisplayName(nb);!Nb&&(Nb=nb)}else Nb="("+eb.get("systemDefaultFont","\u9ed8\u8ba4\u5b57\u4f53")+")";Jb.text(Nb)});return ob},Ob=function(fb){fb=
ab(fb,eb.get("unitPx","\u50cf\u7d20"),null,function(ob){ob.setConstraint(10,100,1)},function(ob){Fa(function(nb){nb.setFontSize(ob)})});fb.setCustomPainter(function(ob,nb){ic(nb);nb.text(ob);nb.css("left",0);nb.css("right",12)});return fb},Zb=function(fb,ob){fb=za(fb,ob);fb.addActionListener(function(nb){var Jb=nb.isSelected();Fa(function(Nb){Nb.setBold(Jb)})});return fb},Sb=function(fb,ob){fb=za(fb,ob);fb.addActionListener(function(nb){var Jb=nb.isSelected();Fa(function(Nb){Nb.setItalic(Jb)})});
return fb},hc=function(fb,ob,nb){ob=za(ob,nb);ob.addActionListener(function(Jb){Jb.isSelected()?(oa.setSelected(!1),H.setSelected(!1),Q.setSelected(!1),T.setSelected(!1),Jb.setSelected(!0),N(function(Nb){Nb.setAlign(fb)})):(Jb.setSelected(!0),N(null))});return ob},fc=function(fb,ob){return ab(ob,eb.get("unitEm","\u500d"),fb,function(nb){nb.setConstraint(0,10,.5);nb.supportDecimal(2)},function(nb){N(function(Jb){Jb.setIndent(nb)})})},pc=function(fb,ob,nb){return ab(nb,eb.get("unitPx","\u50cf\u7d20"),
ob,function(Jb){Jb.setConstraint(0,100,1)},function(Jb){N(function(Nb){fb?Nb.setMarginBefore(Jb):Nb.setMarginAfter(Jb)})})},oc=function(fb,ob){return ab(ob,eb.get("unitEm","\u500d"),fb,function(nb){nb.setConstraint(.1,10,.1);nb.supportDecimal(2)},function(nb){N(function(Jb){Jb.setLineHeight(nb)})})},mc=function(fb,ob){var nb=new ha;nb.setCustomPainter(function(Jb,Nb){var Qb=Nb.data("myColorUi");Qb||(ic(Nb),Nb.css("overflow","visible"),Qb=$("<div>"),bb.background(Qb,fb),Qb.appendTo(Nb),jb.layoutCtrl(Qb,
2,0,16,16),Qb=$("<div>"),Qb.css("border","1px solid #f0f0f0"),Qb.appendTo(Nb),jb.layoutCtrl(Qb,2,11,14,4),Nb.data("myColorUi",Qb));Qb.css("background-color",Jb?Jb:aa())});nb.setDropdownCreator(function(Jb,Nb,Qb,S){S=new la;S.setColorConfirmedListener(function(Ha){Qb(Ha)});Nb=S.createJqUi(Nb,eb.get("systemDefault","\u7cfb\u7edf\u9ed8\u8ba4"));Nb.appendTo(Jb);return[Nb.outerWidth(),Nb.outerHeight()]});nb.addSelectionListener(function(Jb,Nb){Nb&&Fa(function(Qb){var S=Jb.getSelectedModel();Qb.setColor(S)})});
nb.getJqUi().attr("title",ob);return nb},ic=function(fb){fb.css("left",0);fb.css("right",12);fb.next().css("right",0)}}function la(){var aa=["#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(" ")],N;this.setColorConfirmedListener=function(Fa){N=Fa};this.createJqUi=function(Fa,ya){var ma=new Ib;ma.setText(ya);ma.addActionListener(function(ua){ua.setSelected(!0);N(null)});ya=ma.getJqUi();ya.css("line-height","18px");Fa?ya.css("border","1px solid #dbdbdb"):(ma.setSelected(!0),Fa="#808080");ma=new Pa;ma.setColorPool(aa);ma.getModel().decodeFrom(Fa);
ma.addSelectedListener(function(ua){ua=ua.encodeToHexRgb();N(ua)});Fa=ma.createJqUi();ma=$("<div>");ma.append(ya);ma.append(Fa);jb.layoutCtrlWithLRTB(ya,6,6,null,8,null,20);jb.layoutCtrlWithLRTB(Fa,0,0,null,28,0,null);ma.css("background-color","#fff");ma.css("width",Fa.outerWidth());ma.css("height",Fa.outerHeight()+28);return ma}}function Sa(){var aa,N=$("<div>"),Fa=$("<div>");this.getJqUi=function(){aa||(N.css({color:"#bbb"}),Fa.css({color:"#bbb","text-align":"right"}),aa=$("<div>"),aa.append(N),
aa.append(Fa),jb.layoutCtrlWithLRTB(N,4,"50%",null,0,0,null),jb.layoutCtrlWithLRTB(Fa,"50%",4,null,0,0,null));return aa};this.setCursorPosition=function(ma,ua){var C="";if(ua){var y=eb.get("statusCursor","\u6bb5\u843d#1, \u5b57\u7b26#2"),M=ua.getFromParagraphIndex(),oa=ya(ma,M,ua.getFromContentIndex(),ua.getFromOffset());C=y.replace("#1",M+1).replace("#2",oa+1);ua.isCollapse()||(M=ua.getToParagraphIndex(),oa=ya(ma,M,ua.getToContentIndex(),ua.getToOffset()),C=C+"~"+y.replace("#1",M+1).replace("#2",
oa+1))}N.text(C)};this.setInputableCharacterCount=function(ma){var ua=eb.get("statusRemainChar","\u8fd8\u53ef\u4ee5\u8f93\u5165#1\u5b57");ua=ua.replace("#1",ma);Fa.text(ua)};this.warningMaxCharacters=function(ma){var ua=$("<div>");ua.css("background-color","#fff");var C=$("<div>");C.text(eb.get("statusWarningMaxChar","\u5b57\u6570\u8d85\u8fc7#1\u5b57\u4e0a\u9650").replace("#1",ma));C.css("color","#930");jb.layoutCtrlWithLRTB(ua,0,0,null,0,0,null);jb.layoutCtrlWithLRTB(C,0,0,null,0,0,null);ua.append(C);
aa.append(ua);ma=new Ma;ma.setDuration(850,150);ma.setAction(function(){ua.remove()});ma.blink(C)};var ya=function(ma,ua,C,y){ma=ma.getParagraph(ua);for(ua=0;ua<C;ua++)y+=ma.getContent(ua).getTextLength();return 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.common&&(com.kingdee.bos.qing.common=
{});"undefined"==typeof com.kingdee.bos.qing.common.rich&&(com.kingdee.bos.qing.common.rich={});var Qa=com.kingdee.bos.qing.common.rich;Qa.Chapter=g;Qa.RichDisplayer=wb;Qa.RichEditor=function(){var aa=String.fromCharCode(13),N=String.fromCharCode(10),Fa=aa+N,ya=new RegExp(aa,"gm"),ma=new RegExp(Fa,"gm"),ua,C,y,M,oa,H=1E3,Q,T,U;this.setMaxCharacters=function(S){H=S};this.setModel=function(S){ua=S;qa().setModel(S);fb()};this.setDefaultColor=function(S){qa().setDefaultColor(S)};this.setBackgroundColor=
function(S){!S&&(S="#fff");var Ha=pb.decodeStringToRgbaArray(S),vb=pb.rgbToHsl(Ha[0],Ha[1],Ha[2]);Ha=vb[0];vb=vb[2];30<Ha&&190>Ha?(Ha=40<vb?"#000":"#fff",vb=40<vb?"#333":"#ccc"):(Ha=70<vb?"#000":"#fff",vb=70<vb?"#333":"#ccc");qa().setOccupierColor(vb);qa().getJqUi().css({"background-color":S,"caret-color":Ha})};this.getJqUi=function(){if(!C){var S=Y().getJqUi();Y().updateState(ua.getParagraph(0),ua.getParagraph(0).getContent(0));var Ha=qa().getJqUi();Ha.css("border","1px solid #ccc");Ha.css("outline",
"none");var vb=ja().getJqUi();0>Math.max(0,H-Q.length)+0-0&&ja().warningMaxCharacters(H);C=$("<div>");C.append(S);C.append(Ha);C.append(vb);jb.layoutCtrlWithLRTB(S,0,0,null,0,null,24);jb.layoutCtrlWithLRTB(Ha,0,0,null,24,24,null);jb.layoutCtrlWithLRTB(vb,0,0,null,null,0,24)}return C};this.requestFocus=function(){qa().getJqUi().focus();if(T)Jb(T);else{var S=ua.getParagraphCount()-1,Ha=ua.getParagraph(S),vb=Ha.getContentCount()-1;Ha=Ha.getContent(vb).getTextLength();S=new lb(S,vb,Ha);Jb(new Lb(S));
ab()}};this.getSelectingScope=function(){return ua.getScope(T)};this.inputTextOnCursor=function(S){ic([S])};var Y=function(){M||(M=new Fb,M.hookDefaultColorGetter(qa().getDefaultColor),M.setStyleModifyListener(function(S){if(T){var Ha=S?!0:!1;Ha&&ua.changeParagraphStyle(T,S);Ha&&qa().refresh();Jb(T)}},function(S){if(T){var Ha=S?!0:!1;if(Ha)if(T.isCollapse()){var vb=ua.getParagraph(T.getFromParagraphIndex()).getContent(T.getFromContentIndex());vb.isTextEmpty()?S(vb):(!U&&(U=ib.create()),S(U))}else ua.changeContentStyle(T,
S);Ha&&qa().refresh();Jb(T)}}));return M},ja=function(){oa||(oa=new Sa);return oa},qa=function(){if(!y){y=new wb;var S=y.getJqUi();S.attr("contenteditable",!0);S.on("compositionstart",pc);S.on("compositionend",oc);S.on("keydown",Sb);S.on("keyup",hc);S.on("mousedown",Ga);S.on("paste",Gb);S.on("cut",Ob);S.on("copy",Zb)}return y},Ga=function(S){S.shiftKey||window.getSelection().removeAllRanges();S=$(document.body);S.on("mouseup",za);S.on("mouseleave",za)},za=function(S){S=$(document.body);S.off("mouseup",
za);S.off("mouseleave",za);ab()},ab=function(){U=null;var S=window.getSelection(),Ha=S.anchorNode,vb=S.anchorOffset,Tb=S.focusNode,Mb=S.focusOffset;if(Ha&&Tb){S=Ha==Tb;var nc=!1,gc=qa().upwardSearchOccupier(Ha);if(gc){nc=!0;var ac=gc.siblings();Ha=0==ac.length?gc.parent()[0]:ac[0];vb=0;S&&(Tb=Ha,Mb=0)}!S&&(gc=qa().upwardSearchOccupier(Tb))&&(nc=!0,ac=gc.siblings(),Tb=0==ac.length?gc.parent()[0]:ac[0],Mb=0);S&&nc&&Nb(Ha,vb,Tb,Mb);Mb=[Ha,vb,Tb,Mb];Ha=Mb[0];vb=Mb[1];Tb=Mb[2];Mb=Mb[3];nc=qa().searchJqUiOfParagraphs();
for(gc=0;gc<nc.length;gc++){ac=nc.eq(gc);ac=qa().searchJqUiOfContents(ac);for(var tc=0;tc<ac.length;tc++){var Cc=ac.eq(tc),xc=qa().searchHtmlUiOfText(Cc)[0];Cc=nb(xc,Ha);xc=S?Cc:nb(xc,Tb);if(!e&&(Cc||xc)){var k=S?Math.min(vb,Mb):Cc?vb:Mb;var e=new lb(gc,tc,k);if(!S)continue}if(e&&!l&&(Cc||xc)){k=S?Math.max(vb,Mb):xc?Mb:vb;var l=new lb(gc,tc,k);break}}}!e&&(e=ob());!l&&(l=ob());e=new Lb(e,l)}else e=null;e&&(e.isCollapse()?0==e.getFromOffset()&&0<e.getFromContentIndex()&&(l=e.getFromContentIndex()-
1,S=ua.getParagraph(e.getFromParagraphIndex()),Tb=S.getContent(l),S=Tb.getTextLength(),e.updateStartPosition(l,S),e.updateEndPosition(l,S)):(S=ua.getParagraph(e.getFromParagraphIndex()),Tb=S.getContent(e.getFromContentIndex()),e.getFromOffset()==Tb.getTextLength()&&e.getFromContentIndex()<S.getContentCount()-1&&e.updateStartPosition(e.getFromContentIndex()+1,0),0==e.getToOffset()&&0<e.getToContentIndex()&&(S=ua.getParagraph(e.getToParagraphIndex()),Tb=S.getContent(e.getToContentIndex()-1),e.updateEndPosition(e.getToContentIndex()-
1,Tb.getTextLength()))),T=e,e=ua.getParagraph(T.getFromParagraphIndex()),l=e.getContent(T.getFromContentIndex()),Y().updateState(e,l),ja().setCursorPosition(ua,T))},Gb=function(S){S.preventDefault();S=(S.originalEvent.clipboardData||window.clipboardData).getData("Text");S=S.replace(ma,N);S=S.replace(ya,N);S=S.split(N);ic(S)},Ob=function(S){S.preventDefault();T.isCollapse()||(Qb(S),ic([""]))},Zb=function(S){S.preventDefault();T.isCollapse()||Qb(S)},Sb=function(S){if(13==S.keyCode||8==S.keyCode||46==
S.keyCode)S.preventDefault(),S=ua.inputCommand(T,S.keyCode),qa().refresh(),fb(),Jb(S),ab();else if(S.ctrlKey&&65==S.keyCode){S.preventDefault();var Ha=qa().searchJqUiOfContents();S=qa().searchHtmlUiOfText(Ha.eq(0));Ha=qa().searchHtmlUiOfText(Ha.eq(Ha.length-1));Nb(S[0],0,Ha[0],Ha[1]);ab()}},hc=function(S){fc||(33<=S.keyCode&&40>=S.keyCode?ab():mc())},fc=!1,pc=function(S){fc=!0},oc=function(S){fc=!1;mc()},mc=function(){var S=qa().searchText();if(S!==Q){for(var Ha=Math.min(Q.length,S.length),vb=Ha,
Tb=0;Tb<Ha;Tb++)if(Q[Tb]!==S[Tb]){vb=Tb;break}Tb=S.length-(Ha-vb);for(var Mb=Ha;Mb>vb;Mb--){var nc=Ha-Mb;if(Q[Q.length-1-nc]!==S[S.length-1-nc]){Tb=S.length-nc;break}}S=S.substring(vb,Tb);ic([S])}},ic=function(S){var Ha=S.join("").length,vb=T.isCollapse()?0:ua.getAllTextLength(T);0>Math.max(0,H-Q.length)+vb-Ha?(qa().refresh(),Jb(T),ja().warningMaxCharacters(H)):(S=ua.inputText(T,S,U),qa().refresh(),fb(),Jb(S),ab())},fb=function(){Q=qa().searchText();ja().setInputableCharacterCount(Math.max(0,H-Q.length))},
ob=function(){var S=ua.getParagraphCount()-1,Ha=ua.getParagraph(S),vb=Ha.getContentCount()-1;Ha=Ha.getContent(vb).getTextLength();return new lb(S,vb,Ha)},nb=function(S,Ha){for(var vb=qa().getJqUi()[0];S!=Ha;)if(S=S.parentNode,S==vb||S==document.body)return!1;return!0},Jb=function(S){var Ha=S.getFromParagraphIndex(),vb=S.getFromContentIndex(),Tb=S.getFromOffset();Ha=qa().searchJqUiOfContent(Ha,vb);Ha=qa().searchHtmlUiOfText(Ha)[0];vb=S.getToParagraphIndex();var Mb=S.getToContentIndex();S=S.getToOffset();
Mb=qa().searchJqUiOfContent(vb,Mb);var nc=qa().searchHtmlUiOfText(Mb),gc=nc[1];Nb(Ha,Tb,nc[0],S);Tb=Math.max(ua.getParagraph(vb).getMaxFontSize(),Mb.prop("offsetHeight"));Ha=0==gc?1:S/gc;Tb=Mb.prop("offsetTop")+parseInt(Tb*Ha);Ha=qa().getJqUi();vb=Ha.prop("scrollTop");S=vb+Ha.prop("clientHeight");if(Tb<vb||Tb>S)S=vb+parseInt(.5*Ha.prop("clientHeight")),Ha.prop("scrollTop",vb+(Tb-S))},Nb=function(S,Ha,vb,Tb){var Mb=document.createRange();Mb.setStart(S,Ha);Mb.setEnd(vb,Tb);S=window.getSelection();S.removeAllRanges();
S.addRange(Mb)},Qb=function(S){(S.originalEvent.clipboardData||window.clipboardData).setData("Text",ua.getAllText(Fa,T))}};var Ya,jb,pb,hb,eb,Ib,ha,Ra,W,sa,Pa,Ma,sb;(function(){var aa=com.kingdee.bos.qing.common;Ya=aa.Util;jb=aa.DomUtil;pb=aa.ColorUtil;aa=com.kingdee.bos.qing.framework.common;hb=aa.AbstractIcons;eb=aa.MultilanguageManager.createPackageAccessor(Qa);aa=com.kingdee.bos.qing.ui.component;Ib=aa.ToggleButton;ha=aa.DropdownSelector;Ra=aa.Spinner;W=aa.Label;sa=aa.WorkButton;Pa=aa.ColorChooser;
aa=com.kingdee.bos.qing.common.ui;Ma=aa.BlinkHelper;sb=aa.FontSelector})();var bb=new function(){hb.call(this);var aa=this.protectedMethod;this.protectedInit=function(Fa,ya){com.kingdee.bos.qing.common.ComboIcon.define(ya,"rich");N(0,0,"rich-bold");N(0,1,"rich-italic");N(0,2,"rich-underline");N(0,3,"rich-strikethrough");N(0,4,"rich-color");N(1,0,"rich-left");N(1,1,"rich-center");N(1,2,"rich-right");N(1,3,"rich-justify");N(1,4,"rich-lineheight");N(1,5,"rich-marginbefore");N(1,6,"rich-marginafter");
N(1,7,"rich-indent")};var N=function(Fa,ya,ma){aa.registIcon(Fa,ya,ma)}};g.create=function(aa){var N=new g,Fa=N.insertParagraph(0),ya=new Da;Fa.insertContent(0,ya);aa&&aa(Fa,ya);return N};g.createParagraph=function(){return new ub};g.createContent=function(){return new Da};ib.create=function(){var aa=new ib;aa.setFontName(void 0);aa.setFontSize(void 0);aa.setBold(void 0);aa.setItalic(void 0);aa.setColor(void 0);return aa}})();(function(){function g(){var ha=this,Ra={},W={},sa={};sa[g.LINE_WIDE_1]=.75;sa[g.LINE_WIDE_2]=1.5;sa[g.LINE_WIDE_3]=2.25;sa[g.LINE_WIDE_4]=3;sa[g.LINE_WIDE_5]=4;var Pa=[],Ma={};Ma[g.LINECOLOR_MAIN]="#808080";Ma[g.LINECOLOR_STRONG]=null;var sb=Ma[g.LINECOLOR_WEAK]=null;this.setEdge=function(C,y){Ra[C]=y;y.bindDirection(C)};this.getEdge=function(C){return Ra[C]};this.setCorner=function(C,y){W[C]=y;y.bindDirection(C)};this.getCorner=function(C){return W[C]};this.setLineThickness=function(C,y){sa[C]=
y};this.getLineThickness=function(C){return sa[C]};this.getAllLightItems=function(){return Pa};this.getLightItems=function(C){for(var y=null,M=0;M<Pa.length;M++){var oa=Pa[M];oa.getDir()==C&&(!y&&(y=[]),y.push(oa))}return y};this.validateLightItems=function(){for(var C=Pa.length-1;0<=C;C--){var y=Pa[C],M=y.getDir(),oa=y.getPosition();y=y.getLogicColor();M&&(oa||0===oa)&&y||Pa.splice(C,1)}Pa.sort(function(H,Q){var T=H.getDir()-Q.getDir();0==T&&(T=H.getPosition()-Q.getPosition());return T})};this.setLineColor=
function(C,y){Ma[C]=y};this.getLineColor=function(C){return Ma[C]};this.hookBackgroundColor=function(C){sb=C};this.getBackgroundColor=function(){return sb};this.copyToEdit=function(){var C=new g;C.fromJsonObject(ha.toJsonObject());return C};this.toJsonObject=function(){var C={};C.edgeN=bb(g.DIR_N);C.edgeS=bb(g.DIR_S);C.edgeW=bb(g.DIR_W);C.edgeE=bb(g.DIR_E);C.cornerNW=ha.getCorner(g.DIR_NW).toJsonObject();C.cornerNE=ha.getCorner(g.DIR_NE).toJsonObject();C.cornerSW=ha.getCorner(g.DIR_SW).toJsonObject();
C.cornerSE=ha.getCorner(g.DIR_SE).toJsonObject();var y={};Fa(y,g.LINE_WIDE_1);Fa(y,g.LINE_WIDE_2);Fa(y,g.LINE_WIDE_3);Fa(y,g.LINE_WIDE_4);Fa(y,g.LINE_WIDE_5);C.lineThickness=y;y={};ma(y,g.LINECOLOR_MAIN);ma(y,g.LINECOLOR_STRONG);ma(y,g.LINECOLOR_WEAK);C.lineColor=y;return C};this.fromJsonObject=function(C){Pa=[];aa(C.edgeN,g.DIR_N);aa(C.edgeS,g.DIR_S);aa(C.edgeW,g.DIR_W);aa(C.edgeE,g.DIR_E);ha.validateLightItems();N(C.cornerNW,g.DIR_NW);N(C.cornerNE,g.DIR_NE);N(C.cornerSW,g.DIR_SW);N(C.cornerSE,g.DIR_SE);
var y=C.lineThickness;ya(y,g.LINE_WIDE_1);ya(y,g.LINE_WIDE_2);ya(y,g.LINE_WIDE_3);ya(y,g.LINE_WIDE_4);ya(y,g.LINE_WIDE_5);C=C.lineColor;ua(C,g.LINECOLOR_MAIN);ua(C,g.LINECOLOR_STRONG);ua(C,g.LINECOLOR_WEAK)};var bb=function(C){return ha.getEdge(C).toJsonObject(ha.getLightItems(C))},aa=function(C,y){var M=[],oa=new Da;oa.fromJsonObject(C,M);ha.setEdge(y,oa);if(0<M.length)for(C=0;C<M.length;C++)oa=M[C],oa.setDir(y),Pa.push(oa)},N=function(C,y){var M=new ib;M.fromJsonObject(C);ha.setCorner(y,M)},Fa=
function(C,y){var M=ha.getLineThickness(y);M=Math.round(100*M);y=eb.encodeLogicLineWide(y);C[y]=M},ya=function(C,y){var M=eb.encodeLogicLineWide(y);C=C[M];ha.setLineThickness(y,C||0===C?C/100:1)},ma=function(C,y){var M=eb.encodeLogicColor(y);(y=ha.getLineColor(y))&&(C[M]=y)},ua=function(C,y){var M=eb.encodeLogicColor(y);C=C[M];ha.setLineColor(y,C?C:null)}}function ub(){var ha;this.bindDirection=function(Ra){ha=Ra};this.getDirection=function(){return ha};this.isDirection=function(Ra){return 0<(ha&
Ra)};this.isTheDirection=function(Ra){return ha==Ra}}function Da(){ub.call(this);var ha=this,Ra=Da.TYPE_STRAIGHT,W=!1,sa=g.LINE_WIDE_2,Pa=g.LINE_NONE,Ma=[40,80],sb=Da.FLIP_NONE,bb=null,aa=null;this.setType=function(N){Ra=N};this.getType=function(){return Ra};this.setTitleEnhanced=function(N){W=N};this.isTitleEnhanced=function(){return W};this.setMajorLineLogicWide=function(N){sa=N};this.getMajorLineLogicWide=function(){return sa};this.setMinorLineLogicWide=function(N){Pa=N};this.getMinorLineLogicWide=
function(){return Pa};this.setTurning=function(N,Fa){Ma=[];(N||0===N)&&Ma.push(N);(Fa||0===Fa)&&Ma.push(Fa)};this.getFirstTurning=function(){var N=Ma[0];return N?N:0};this.getSecondTurning=function(){var N=Ma[1];return N||0===N?N:100};this.setFlip=function(N){sb=N};this.getFlip=function(){return sb};this.setCustomMinorLine=function(N){bb=N};this.getCustomMinorLine=function(){return bb};this.isCustomMinorLine=function(){return bb?!0:!1};this.hookParsedPartsBlock=function(N){aa=N};this.getParsedPartsBlock=
function(N){return aa?aa[N]:null};this.toJsonObject=function(N){var Fa={};Fa.type=eb.encodeEdgeType(Ra);if(Ra!=Da.TYPE_NONE){Fa.majorWide=eb.encodeLogicLineWide(sa);Fa.minorWide=eb.encodeLogicLineWide(Pa);Fa.flip=eb.encodeFlip(sb);if(Ra==Da.TYPE_SINGLE_TURN||Ra==Da.TYPE_DOUBLE_TURN)Fa.turnPos1=Ma[0],Ra==Da.TYPE_DOUBLE_TURN&&(Fa.turnPos2=Ma[1]),W&&(Fa.titleEnhanced=!0);bb&&Pa!=g.LINE_NONE&&(Fa.customMinor=bb)}if(N){for(var ya=[],ma=0;ma<N.length;ma++)ya.push(N[ma].toJsonObject());Fa.lightItems=ya}return Fa};
this.fromJsonObject=function(N,Fa){Ra=eb.decodeEdgeType(N.type);var ya=N.majorWide;ya&&(sa=eb.decodeLogicLineWide(ya));(ya=N.minorWide)&&(Pa=eb.decodeLogicLineWide(ya));(ya=N.flip)&&(sb=eb.decodeFlip(ya));ya=N.turnPos1;var ma=N.turnPos2;(ya||0===ya)&&(Ma[0]=ya);(ma||0===ma)&&(Ma[1]=ma);W=N.titleEnhanced?!0:!1;bb=N.customMinor;if(N=N.lightItems)for(ya=0;ya<N.length;ya++){ma=N[ya];var ua=new lb;ua.fromJsonObject(ma);Fa.push(ua)}bb&&(N=new Lb,Fa=N.decode(bb),N=N.getException(),ha.hookParsedPartsBlock(N?
null:Fa))}}function ib(){ub.call(this);var ha=ib.TYPE_NONE,Ra=g.LINE_WIDE_2,W=6;this.setType=function(sa){ha=sa};this.getType=function(){return ha};this.setLineLogicWide=function(sa){Ra=sa};this.getLineLogicWide=function(){return Ra};this.setRadius=function(sa){W=sa};this.getRadius=function(){return W};this.toJsonObject=function(){var sa={};sa.type=eb.encodeCornerType(ha);ha!=ib.TYPE_NONE&&(sa.lineWide=eb.encodeLogicLineWide(Ra),sa.radius=W);return sa};this.fromJsonObject=function(sa){ha=eb.decodeCornerType(sa.type);
var Pa=sa.lineWide;Pa&&(Ra=eb.decodeLogicLineWide(Pa));((sa=sa.radius)||0===sa)&&(W=sa)}}function lb(){var ha,Ra=10,W=g.LINECOLOR_MAIN;this.setDir=function(sa){ha=sa};this.getDir=function(){return ha};this.setPosition=function(sa){Ra=sa};this.getPosition=function(){return Ra};this.setLogicColor=function(sa){W=sa};this.getLogicColor=function(){return W};this.toJsonObject=function(){var sa={};sa.pos=Ra;sa.color=eb.encodeLogicColor(W);return sa};this.fromJsonObject=function(sa){Ra=sa.pos;W=eb.decodeLogicColor(sa.color)}}
function Lb(){function ha(ma,ua,C,y){this.getContent=function(){return ma};this.getType=function(){return ua};this.getCharIndex=function(){return C};this.getWordLength=function(){return y}}ha.UNIT=1;ha.PREFIX=2;ha.SUFFIX=3;ha.LB=4;ha.RB=5;var Ra=ha.UNIT,W=ha.PREFIX,sa=ha.LB,Pa,Ma,sb;this.getException=function(){return Pa};this.decode=function(ma){Pa=null;for(var ua=[],C=[],y=!1,M=!1,oa=[],H="",Q=0;Q<ma.length;Q++){var T=ma.charAt(Q),U=!0;if(y)if(U=!1,"}"==T){var Y=Q-H.length,ja=H,qa=Y,Ga=$.trim(ja);
Ga&&(hb.decodeStringToRgbArray(Ga)||(Pa=new wb(wb.INVALID_PREFIX,qa,ja.length,"Invalid prefix '{"+ja+"}'.")));if(Pa)break;oa.push(new ha(Ga,ha.PREFIX,Y-1,H.length+2));H="";y=!1}else H+=T;else M&&(bb(T)?(H+=T,U=!1):(oa.push(new ha(H,ha.SUFFIX,Q-H.length)),H="",M=!1));if(U)if(";"==T)C.push(oa),oa=[];else if(Ib.isUnitKeyChar(T))oa.push(new ha(T,ha.UNIT,Q));else if(bb(T))H=T,M=!0;else if("~"==T)oa.push(new ha(T,ha.SUFFIX,Q));else if("{"==T)y=!0;else if("}"==T){Pa=new wb(wb.UNPAIRED_BRACE,Q,1,"Unpaired brace '}'.");
break}else if("("==T)oa.push(new ha(T,ha.LB,Q));else if(")"==T)oa.push(new ha(T,ha.RB,Q));else if(" "!=T){Pa=new wb(wb.UNKNOWN_CHAR,Q,1,"Invalid char '"+T+"'.");break}}Pa||(y?(Q=ma.length-H.length-1,Pa=new wb(wb.UNPAIRED_BRACE,Q,1,"Unpaired brace '{'.")):M&&(Q=ma.length-H.length,oa.push(new ha(H,ha.SUFFIX,Q))));C.push(oa);if(!Pa)for(ma=0;ma<C.length;ma++){M=C[ma];sb=null;Ma=[];for(y=0;y<M.length;y++){oa=M[y];switch(oa.getType()){case ha.UNIT:aa()==Ra&&Fa();Ma.push(oa);break;case ha.PREFIX:switch(aa()){case W:Ma.pop();
break;case Ra:Fa()}Ma.push(oa);break;case ha.SUFFIX:switch(aa()){case 255:H=Ma.pop();ya(H,oa);Ma.push(H);break;case Ra:Fa(oa);break;default:H=oa.getContent(),Pa=new wb(wb.REDUNDANT_SUFFIX,oa.getCharIndex(),H.length,"Missing block-unit before '"+H+"'.")}break;case ha.LB:aa()==Ra&&Fa();Ma.push(oa);break;case ha.RB:switch(aa()){case sa:H=Ma.pop();Q=oa.getCharIndex()-H.getCharIndex()+1;Pa=new wb(wb.EMPTY_BRACKET,H.getCharIndex(),Q,"Empty bracket pairs.");break;case Ra:Fa();break;case W:Q=Ma.pop(),H=Q.getContent(),
Pa=new wb(wb.REDUNDANT_PREFIX,Q.getCharIndex(),Q.getWordLength(),"Missing block-unit after '{"+H+"}'.")}if(!Pa){H=[];for(Q=!1;0<Ma.length;)if(T=aa(),255==T)T=Ma.pop(),H.push(T);else if(T==sa){Ma.pop();Q=!0;break}else throw Error("Impossible");if(Q){if(oa=new Qa,aa()==W&&(Q=Ma.pop(),oa.setAppointedColor(Q.getContent())),0<H.length){for(;0<H.length;)oa.addSubBlock(H.pop());Ma.push(oa)}}else Pa=new wb(wb.REDUNDANT_RB,oa.getCharIndex(),1,"Missing '('.")}break;default:throw Error("Impossible");}if(Pa)break}switch(aa()){case Ra:Fa();
break;case W:y=Ma.pop(),M=y.getContent(),Pa=new wb(wb.REDUNDANT_PREFIX,y.getCharIndex(),y.getWordLength(),"Missing block-unit after '{"+M+"}'.")}if(!Pa)for(y=Ma.length-1;0<=y;y--)if(M=Ma[y],oa=N(M),oa==sa){Pa=new wb(wb.REDUNDANT_LB,M.getCharIndex(),1,"Missing ')'.");break}else if(255!=oa)throw Error("Impossible");M=null;if(!Pa)if(1==Ma.length)M=Ma[0];else if(1<Ma.length)for(M=new Qa,y=0;y<Ma.length;y++)M.addSubBlock(Ma[y]);if(Pa)break;ua.push(M)}return ua};var bb=function(ma){ma=ma.charCodeAt(0);
return 48<=ma&&57>=ma},aa=function(){return 0==Ma.length?0:N(Ma[Ma.length-1])},N=function(ma){if(ma instanceof ha)switch(ma.getType()){case ha.UNIT:return Ra;case ha.PREFIX:return W;case ha.LB:return sa}else if(ma instanceof Sa||ma instanceof Qa)return 255;throw Error("Impossible");},Fa=function(ma){var ua=Ma.pop(),C=new Sa;C.setUnitKey(ua.getContent());aa()==W&&(ua=Ma.pop(),C.setAppointedColor(ua.getContent()));ma&&ya(C,ma);Ma.push(C)},ya=function(ma,ua){var C=ua.getContent(),y="~"==C?-1:parseInt(C);
0===y?Pa=new wb(wb.REDUNDANT_SUFFIX,ua.getCharIndex(),1,"Zero suffix."):9999<y&&(Pa=new wb(wb.REDUNDANT_SUFFIX,ua.getCharIndex(),C.length,"Suffix '"+C+"' is larger than 9999."));ma.setTimes(y);sb==ma&&(Pa=new wb(wb.REDUNDANT_SUFFIX,ua.getCharIndex(),C.length,"Duplicated suffix '"+C+"'."));sb=ma}}function wb(ha,Ra,W,sa){this.getCode=function(){return ha};this.getCharStart=function(){return Ra};this.getCharLength=function(){return W};this.getMessage=function(){return sa}}function Fb(ha,Ra){this.getChar=
function(){return ha};this.isDrawingOnePixel=function(){return(Ra&Fb.SHAPE)!=Fb.SHAPE}}function la(){var ha=this,Ra=1,W,sa,Pa;this.isAtom=function(){throw Error("Implement");};this.setTimes=function(Ma){Ra=Ma};this.getTimes=function(){return Ra};this.setRtTimes=function(Ma){W=Ma;sa=Math.floor(Ma)};this.getComputableTimes=function(){return W};this.getDrawingTimes=function(){return sa};this.setAppointedColor=function(Ma){Pa=Ma?Ma:""};this.getAppointedColor=function(){return Pa};this.isAppointedColorErased=
function(){return""===Pa};this.getUnitLength=function(Ma){throw Error("Implement");};this.encode=function(){var Ma="";Pa?Ma="{"+Pa+"}":ha.isAppointedColorErased()&&(Ma="{}");var sb="";0>Ra?sb="~":1!=Ra&&(sb=Ra);return Ma+ha.protectedEncodeUnit((Ma?!0:!1)||(sb?!0:!1))+sb};this.protectedEncodeUnit=function(Ma){throw Error("Implement");}}function Sa(){la.call(this);var ha;this.isAtom=function(){return!0};this.setUnitKey=function(Ra){ha=Ib.searchUnitKey(Ra)};this.getUnitKey=function(){return ha};this.getUnitLength=
function(Ra){return ha.isDrawingOnePixel()?1:Ra};this.protectedEncodeUnit=function(Ra){return ha.getChar()}}function Qa(){la.call(this);var ha=[];this.isAtom=function(){return!1};this.addSubBlock=function(Ra){ha.push(Ra)};this.getSubBlockCount=function(){return ha.length};this.getSubBlock=function(Ra){return ha[Ra]};this.getUnitLength=function(Ra){for(var W=0,sa=0;sa<ha.length;sa++){var Pa=ha[sa];W+=Pa.getUnitLength(Ra)*Pa.getComputableTimes()}return W};this.protectedEncodeUnit=function(Ra){for(var W=
"",sa=0;sa<ha.length;sa++){var Pa=ha[sa];0<sa&&(W+=" ");W+=Pa.encode()}Ra&&(W="("+W+")");return W}}function Ya(ha){var Ra=this,W,sa=[],Pa;this.getEdge=function(){return ha};var Ma=function(){return ha.isDirection(g.DIR_W|g.DIR_E)},sb=function(){return ha.isDirection(g.DIR_S|g.DIR_W)};this.isFlipLeading=function(){return Ma()?(ha.getFlip()&Da.FLIP_V)==Da.FLIP_V:(ha.getFlip()&Da.FLIP_H)==Da.FLIP_H};this.isFlipOrthogonal=function(){return Ma()?(ha.getFlip()&Da.FLIP_H)==Da.FLIP_H:(ha.getFlip()&Da.FLIP_V)==
Da.FLIP_V};this.setMajorPoints=function(bb){W=bb};this.getMajorPointCount=function(){return W.length};this.getMajorPoint=function(bb){return W[bb]};this.addMinorPart=function(bb,aa){sa.push([bb,aa])};this.getMinorPartCount=function(){return sa.length};this.getMinorPointA=function(bb){return sa[bb][0]};this.getMinorPointB=function(bb){return sa[bb][1]};this.unified=function(bb,aa){return Ma()?[aa,bb]:[bb,aa]};this.unifiedMajorPoints=function(){var bb=Ma(),aa=sb();if(bb||aa){for(var N=[],Fa=W.length-
1;0<=Fa;Fa--){var ya=W[Fa];bb&&ya.exchangeXY();aa&&N.push(ya)}aa&&(W=N)}};this.connectToBrother=function(bb,aa,N,Fa){var ya=ha.isDirection(g.DIR_W|g.DIR_N),ma=ya?bb.getAxialP1():bb.getAxialPn(),ua=ya?aa.getAxialP1():aa.getAxialPn();aa=Ra.getAxialP1();ya=Ra.getAxialPn();var C=(bb=0<sa.length)?sa[0][0]:null,y=bb?sa[sa.length-1][1]:null;Ma()?(N=ma.getY()+N,Fa=ua.getY()-Fa,aa.moveYTo(N),ya.moveYTo(Fa),bb&&C.moveXTo(N),bb&&y.moveXTo(Fa)):(N=ma.getX()+N,Fa=ua.getX()-Fa,aa.moveXTo(N),ya.moveXTo(Fa),bb&&
C.moveXTo(N),bb&&y.moveXTo(Fa))};this.getClockwiseP1=function(){return W[0]};this.getClockwisePn=function(){return W[W.length-1]};this.getAxialP1=function(){return sb()?W[W.length-1]:W[0]};this.getAxialPn=function(){return sb()?W[0]:W[W.length-1]};this.setDrawingColor=function(bb){Pa=bb};this.getDrawingColor=function(){return Pa}}function jb(ha,Ra){var W=ha,sa=Ra;this.getX=function(){return W};this.getY=function(){return sa};this.exchangeXY=function(){var Pa=W;W=sa;sa=Pa};this.adjust=function(Pa,
Ma){W+=Pa;sa+=Ma};this.moveXTo=function(Pa){W=Pa};this.moveYTo=function(Pa){sa=Pa}}"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 pb=com.kingdee.bos.qing.dsb.look;g.Edge=Da;
g.Corner=ib;pb.CardLook=g;pb.DecorationParser=Lb;pb.ParsingException=wb;pb.CardLookRenderer=function(){var ha=.5*Math.PI,Ra,W;this.setModel=function(H){Ra=H};this.draw=function(H,Q,T,U,Y){W=H;var ja=Ra.getEdge(g.DIR_N),qa=Ra.getEdge(g.DIR_S),Ga=Ra.getEdge(g.DIR_W);H=Ra.getEdge(g.DIR_E);var za=Ra.getCorner(g.DIR_NW),ab=Ra.getCorner(g.DIR_NE),Gb=Ra.getCorner(g.DIR_SW),Ob=Ra.getCorner(g.DIR_SE),Zb=Q+.5;Q=Q+U-.5;U=T+.5;var Sb=T+Y-.5;T=Zb+10;Y=Q-10;var hc=U+Pa(ja);Sb-=Pa(qa);var fc=sa(ja,T,U,Y),pc=sa(qa,
T,Sb,Y);ja=hc+10;qa=Sb-10;var oc=sa(Ga,ja,Zb,qa);Ga=Q-Pa(H);var mc=sa(H,ja,Ga,qa);fc.connectToBrother(oc,mc,N(za),N(ab));pc.connectToBrother(oc,mc,N(Gb),N(Ob));oc.connectToBrother(fc,pc,N(za),N(Gb));mc.connectToBrother(fc,pc,N(ab),N(Ob));H=function(ic){ma(fc,ic);ua(ab,fc,mc,ic);ma(mc,ic);ua(Ob,mc,pc,ic);ma(pc,ic);ua(Gb,pc,oc,ic);ma(oc,ic);ua(za,oc,fc,ic)};if(Ga=Ra.getBackgroundColor())W.beginPath(),H(!1),W.closePath(),W.fillStyle=Ga,W.fill();H(!0);C(fc);C(pc);C(oc);C(mc)};var sa=function(H,Q,T,U){var Y=
new Ya(H),ja=T,qa=Y.getEdge(),Ga=Y.isFlipLeading(),za=Y.isFlipOrthogonal(),ab=U-Q;ja+=.5*bb(qa);var Gb=Ma(qa)?30:6;T=[];if(qa.getType()==Da.TYPE_SINGLE_TURN&&ab>2*Gb){ab-=Gb;var Ob=Gb*sb(qa),Zb=Ga?100-qa.getFirstTurning():qa.getFirstTurning();za=Ga^za?!0:!1;Ga=ja+(za?Gb:0);ja+=za?0:Gb;Gb=Q+Ob+Zb/100*ab;ab=Gb-Ob;Gb+=Ob;T.push(new jb(Q,Ga));T.push(new jb(ab,Ga));T.push(new jb(Gb,ja));T.push(new jb(U,ja))}else qa.getType()==Da.TYPE_DOUBLE_TURN&&ab>3*Gb?(ab-=Gb,Ob=Gb*sb(qa),Zb=Ga?100-qa.getSecondTurning():
qa.getFirstTurning(),qa=Ga?100-qa.getFirstTurning():qa.getSecondTurning(),Ga=ja+(za?0:Gb),ja+=za?Gb:0,Gb=Q+Ob+Zb/100*ab,za=Q+Ob+qa/100*ab,ab=Gb-Ob,Gb+=Ob,Zb=za-Ob,Ob=za+Ob,T.push(new jb(Q,Ga)),T.push(new jb(ab,Ga)),T.push(new jb(Gb,ja)),T.push(new jb(Zb,ja)),T.push(new jb(Ob,Ga))):(Ga=qa.getMinorLineLogicWide()!=g.LINE_NONE&&za?ja+2+aa(qa):ja,T.push(new jb(Q,Ga))),T.push(new jb(U,Ga));Y.setMajorPoints(T);if(H.getMinorLineLogicWide()!=g.LINE_NONE)for(H=.5*bb(Y.getEdge()),Q=.5*aa(Y.getEdge()),U=Y.getMajorPointCount(),
T=0;T<U;T+=2)ab=Y.getMajorPoint(T),Ga=Y.getMajorPoint(T+1),Ob=ab.getX(),Ga=Ga.getX(),ab=ab.getY(),ja=0<T?T-1:T+2<U?T+2:-1,ja=0>ja?Y.isFlipOrthogonal()?-65535:65535:Y.getMajorPoint(ja).getY(),Gb=ja<ab?-1:1,ab=Ma(Y.getEdge())?ja-Q*Gb:ab+(H+2+Q)*Gb,Y.addMinorPart(new jb(Ob,ab),new jb(Ga,ab));Y.unifiedMajorPoints();return Y},Pa=function(H){var Q=0;if(H.getType()!=Da.TYPE_NONE)if(Q=bb(H),H.getType()==Da.TYPE_STRAIGHT)H.getMinorLineLogicWide()==g.LINE_NONE||(Q=Q+2+aa(H));else if(H.getType()==Da.TYPE_SINGLE_TURN||
H.getType()==Da.TYPE_DOUBLE_TURN)Q+=Ma(H)?30:6;return Q},Ma=function(H){return H.isTitleEnhanced()&&H.isDirection(g.DIR_N)&&(H.getType()==Da.TYPE_SINGLE_TURN||H.getType()==Da.TYPE_DOUBLE_TURN)},sb=function(H){return Ma(H)?.2:.5},bb=function(H){return H.getType()==Da.TYPE_NONE?0:Ra.getLineThickness(H.getMajorLineLogicWide())},aa=function(H){return H.getMinorLineLogicWide()==g.LINE_NONE?0:Ra.getLineThickness(H.getMinorLineLogicWide())},N=function(H){return H.getType()==ib.TYPE_NONE?0:Math.min(H.getRadius(),
10)},Fa=function(H){H=Ra.getLineColor(H);!H&&(H="rgba(128,128,128,0)");return H},ya=function(H){var Q=H.getDrawingColor();if(!Q){Q=Fa(g.LINECOLOR_MAIN);var T=Ra.getLightItems(H.getEdge().getDirection());if(T){var U=H.getAxialP1(),Y=H.getAxialPn();U=W.createLinearGradient(U.getX(),U.getY(),Y.getX(),Y.getY());U.addColorStop(0,Q);for(Y=0;Y<T.length;Y++){var ja=T[Y],qa=ja.getPosition()/100;ja=Fa(ja.getLogicColor());U.addColorStop(qa,ja)}U.addColorStop(1,Q);Q=U}H.setDrawingColor(Q)}W.strokeStyle=Q},ma=
function(H,Q){var T=!0;if(Q){var U=bb(H.getEdge());if(T=0!=U)W.beginPath(),W.lineCap="butt",W.lineWidth=U,ya(H)}if(T){for(T=0;T<H.getMajorPointCount();T++)U=H.getMajorPoint(T),W.lineTo(U.getX(),U.getY());Q&&W.stroke()}},ua=function(H,Q,T,U){var Y=H.getType()==ib.TYPE_NONE?0:Ra.getLineThickness(H.getLineLogicWide());var ja=Q.getClockwisePn(),qa=T.getClockwiseP1();ja=new jb(ja.getX(),ja.getY());qa=new jb(qa.getX(),qa.getY());var Ga=ja,za=qa,ab=bb(Q.getEdge()),Gb=bb(T.getEdge()),Ob=Y>ab,Zb=Y>Gb,Sb=0,
hc=0;H.isTheDirection(g.DIR_NE)?(Zb&&(Sb=.5*(Gb-Y)),Ob&&(hc=.5*(-ab+Y))):H.isTheDirection(g.DIR_SE)?(Ob&&(Sb=.5*(ab-Y)),Zb&&(hc=.5*(Gb-Y))):H.isTheDirection(g.DIR_SW)?(Zb&&(Sb=.5*(-Gb+Y)),Ob&&(hc=.5*(ab-Y))):H.isTheDirection(g.DIR_NW)&&(Ob&&(Sb=.5*(-ab+Y)),Zb&&(hc=.5*(-Gb+Y)));Ga.adjust(Sb,hc);za.adjust(Sb,hc);Ga=!0;U&&(Ga=0!=Y,W.beginPath(),W.lineCap="square",W.lineWidth=Y,W.strokeStyle=Fa(g.LINECOLOR_MAIN),W.moveTo(ja.getX(),ja.getY()));if(Ga){Y=H.isTheDirection(g.DIR_NE)||H.isTheDirection(g.DIR_SW);
if(H.getType()==ib.TYPE_HARD)H=Y?qa.getX():ja.getX(),T=Y?ja.getY():qa.getY(),W.lineTo(H,T),W.lineTo(qa.getX(),qa.getY());else if(H.getType()==ib.TYPE_LEAN)for(Y=ja,ja=qa,qa=[],qa.push(Y),qa.push(ja),U&&(Ga=0==bb(Q.getEdge()),Q=0==bb(T.getEdge()),Ga||Q)&&(T=.5*H.getRadius(),H=H.isTheDirection(g.DIR_NE)?[-1,0,0,1]:H.isTheDirection(g.DIR_SE)?[0,-1,-1,0]:H.isTheDirection(g.DIR_SW)?[1,0,0,-1]:H.isTheDirection(g.DIR_NW)?[0,1,1,0]:[0,0,0,0],Ga&&(Ga=Y.getX()+T*H[0],Y=Y.getY()+T*H[1],qa.unshift(new jb(Ga,
Y))),Q&&(Q=ja.getX()+T*H[2],H=ja.getY()+T*H[3],qa.push(new jb(Q,H)))),U&&W.moveTo(qa[0].getX(),qa[0].getY()),H=1;H<qa.length;H++)W.lineTo(qa[H].getX(),qa[H].getY());else H.getType()==ib.TYPE_ROUND&&(T=Y?ja.getX():qa.getX(),qa=Y?qa.getY():ja.getY(),ja=H.isTheDirection(g.DIR_SE)?[0,1]:H.isTheDirection(g.DIR_SW)?[1,2]:H.isTheDirection(g.DIR_NW)?[2,3]:H.isTheDirection(g.DIR_NE)?[3,4]:[0,0],Q=ha*ja[0],ja=ha*ja[1],W.arc(T,qa,H.getRadius(),Q,ja));U&&W.stroke()}},C=function(H){var Q=H.getEdge(),T=aa(Q);if(0!=
T&&Q.getType()!=Da.TYPE_NONE){ya(H);W.lineCap="butt";W.fillStyle=W.strokeStyle;for(var U=0;U<H.getMinorPartCount();U++){var Y=H.getMinorPointA(U),ja=H.getMinorPointB(U),qa=ja.getX()-Y.getX();if(0<qa)if(Q.isCustomMinorLine()){var Ga=Q.getParsedPartsBlock(U);Ga&&(y(Ga,qa,T),M(H,Ga,Y.getX(),Y.getY(),ja.getX(),T))}else Y=H.unified(Y.getX(),Y.getY()),ja=H.unified(ja.getX(),ja.getY()),W.beginPath(),W.lineWidth=T,W.moveTo(Y[0],Y[1]),W.lineTo(ja[0],ja[1]),W.stroke()}}},y=function(H,Q,T){var U=[],Y=0,ja=0,
qa=function(Ga,za){var ab=Ga.getTimes();0>ab?0>za?Ga.setRtTimes(1):U.push(Ga):Ga.setRtTimes(ab);za=0>za&&0>ab?1:ab*za;if(Ga.isAtom())Ga=Ga.getUnitLength(T)*za,0>za?ja+=Ga:Y+=Ga;else for(ab=0;ab<Ga.getSubBlockCount();ab++){var Gb=Ga.getSubBlock(ab);qa(Gb,za)}};qa(H,1);H=Q-Y;H=0<H?H/Math.abs(ja):0;for(Q=0;Q<U.length;Q++)U[Q].setRtTimes(H)},M=function(H,Q,T,U,Y,ja){var qa=ja*sb(H.getEdge()),Ga=function(za,ab){za.isAppointedColorErased()?(W.fillStyle=H.getDrawingColor(),W.strokeStyle=H.getDrawingColor()):
za.getAppointedColor()&&(W.fillStyle=za.getAppointedColor(),W.strokeStyle=za.getAppointedColor());if(!(ab>=Y)){var Gb=za.getUnitLength(ja),Ob=Gb*za.getComputableTimes();if(za.isAtom())if(za.getUnitKey().isDrawingOnePixel()){Ob=Math.min(Ob,Y-ab);Gb=ab;var Zb=Ob;ab=za.getUnitKey();if(ab!=Sa.BLANK){var Sb=.5*ja;za=U-Sb;Zb=Gb+Zb;Sb=U+Sb;ab=ab==Sa.LEAN_LEFT?-qa:ab==Sa.LEAN_RIGHT?qa:0;oa(H,Gb+ab,za,Zb+ab,za,Zb-ab,Sb,Gb-ab,Sb);W.fill()}}else{Zb=za.getUnitKey();Sb=.2*ja;var hc=.5*ja,fc=ja-Sb,pc=.5*fc;W.lineWidth=
Sb;for(var oc=0;oc<za.getDrawingTimes()&&!(ab+Gb>Y);oc++){if(Zb==Sa.CIRCLE||Zb==Sa.DISC){var mc=Zb==Sa.CIRCLE?pc:hc,ic=H.unified(ab+hc,U);W.beginPath();W.arc(ic[0],ic[1],mc,0,2*Math.PI);Zb==Sa.CIRCLE?W.stroke():W.fill()}else if(Zb==Sa.SQUARE){mc=ab+.5*Sb;ic=mc+fc;var fb=U-pc,ob=U+pc;oa(H,mc,fb,ic,fb,ic,ob,mc,ob);W.stroke()}ab+=Gb}}else for(Gb=0;Gb<za.getDrawingTimes();Gb++)for(Zb=0;Zb<za.getSubBlockCount();Zb++)Sb=za.getSubBlock(Zb),Sb=Ga(Sb,ab),ab+=Sb;return Ob}};Ga(Q,T)},oa=function(H,Q,T,U,Y,ja,
qa,Ga,za){Q=H.unified(Q,T);U=H.unified(U,Y);ja=H.unified(ja,qa);H=H.unified(Ga,za);W.beginPath();W.moveTo(Q[0],Q[1]);W.lineTo(U[0],U[1]);W.lineTo(ja[0],ja[1]);W.lineTo(H[0],H[1]);W.closePath()}};var hb=com.kingdee.bos.qing.common.ColorUtil;g.DIR_N=1;g.DIR_S=2;g.DIR_W=4;g.DIR_E=8;g.DIR_NW=g.DIR_N|g.DIR_W;g.DIR_NE=g.DIR_N|g.DIR_E;g.DIR_SW=g.DIR_S|g.DIR_W;g.DIR_SE=g.DIR_S|g.DIR_E;g.LINE_NONE=0;g.LINE_WIDE_1=1;g.LINE_WIDE_2=2;g.LINE_WIDE_3=3;g.LINE_WIDE_4=4;g.LINE_WIDE_5=5;g.LINECOLOR_MAIN=1;g.LINECOLOR_STRONG=
2;g.LINECOLOR_WEAK=3;g.create=function(){var ha=new g;ha.setEdge(g.DIR_N,new Da);ha.setEdge(g.DIR_S,new Da);ha.setEdge(g.DIR_W,new Da);ha.setEdge(g.DIR_E,new Da);ha.setCorner(g.DIR_NW,new ib);ha.setCorner(g.DIR_NE,new ib);ha.setCorner(g.DIR_SW,new ib);ha.setCorner(g.DIR_SE,new ib);return ha};g.createLightItem=function(ha,Ra,W){var sa=new lb;sa.setDir(ha);sa.setPosition(Ra);sa.setLogicColor(W);return sa};Da.TYPE_NONE=0;Da.TYPE_STRAIGHT=1;Da.TYPE_SINGLE_TURN=2;Da.TYPE_DOUBLE_TURN=3;Da.FLIP_NONE=0;Da.FLIP_H=
1;Da.FLIP_V=2;Da.FLIP_BOTH=Da.FLIP_H|Da.FLIP_V;ib.TYPE_NONE=0;ib.TYPE_HARD=1;ib.TYPE_ROUND=2;ib.TYPE_LEAN=3;var eb=new function(){this.encodeEdgeType=function(ha){return ha==Da.TYPE_STRAIGHT?"STRAIGHT":ha==Da.TYPE_SINGLE_TURN?"SINGLE_TURN":ha==Da.TYPE_DOUBLE_TURN?"DOUBLE_TURN":"NONE"};this.decodeEdgeType=function(ha){return"STRAIGHT"==ha?Da.TYPE_STRAIGHT:"SINGLE_TURN"==ha?Da.TYPE_SINGLE_TURN:"DOUBLE_TURN"==ha?Da.TYPE_DOUBLE_TURN:Da.TYPE_NONE};this.encodeCornerType=function(ha){return ha==ib.TYPE_HARD?
"HARD":ha==ib.TYPE_ROUND?"ROUND":ha==ib.TYPE_LEAN?"LEAN":"NONE"};this.decodeCornerType=function(ha){return"HARD"==ha?ib.TYPE_HARD:"ROUND"==ha?ib.TYPE_ROUND:"LEAN"==ha?ib.TYPE_LEAN:ib.TYPE_NONE};this.encodeLogicLineWide=function(ha){return ha==g.LINE_WIDE_1?"W1":ha==g.LINE_WIDE_2?"W2":ha==g.LINE_WIDE_3?"W3":ha==g.LINE_WIDE_4?"W4":ha==g.LINE_WIDE_5?"W5":"NONE"};this.decodeLogicLineWide=function(ha){return"W1"==ha?g.LINE_WIDE_1:"W2"==ha?g.LINE_WIDE_2:"W3"==ha?g.LINE_WIDE_3:"W4"==ha?g.LINE_WIDE_4:"W5"==
ha?g.LINE_WIDE_5:g.LINE_NONE};this.encodeLogicColor=function(ha){return ha==g.LINECOLOR_STRONG?"STRONG":ha==g.LINECOLOR_WEAK?"WEAK":"MAIN"};this.decodeLogicColor=function(ha){return"STRONG"==ha?g.LINECOLOR_STRONG:"WEAK"==ha?g.LINECOLOR_WEAK:g.LINECOLOR_MAIN};this.encodeFlip=function(ha){return ha==Da.FLIP_H?"H":ha==Da.FLIP_V?"V":ha==Da.FLIP_BOTH?"BOTH":"NONE"};this.decodeFlip=function(ha){return"H"==ha?Da.FLIP_H:"V"==ha?Da.FLIP_V:"BOTH"==ha?Da.FLIP_BOTH:Da.FLIP_NONE}};wb.UNKNOWN_CHAR=1;wb.INVALID_PREFIX=
2;wb.UNPAIRED_BRACE=3;wb.REDUNDANT_PREFIX=11;wb.REDUNDANT_SUFFIX=12;wb.REDUNDANT_LB=13;wb.REDUNDANT_RB=14;wb.EMPTY_BRACKET=15;var Ib=new function(){var ha="",Ra={};this.register=function(W,sa){ha+=W;sa=new Fb(W,sa);return Ra[W]=sa};this.isUnitKeyChar=function(W){return 1==W.length&&0<=ha.indexOf(W)};this.searchUnitKey=function(W){return Ra[W]}};Fb.SHAPELESS=0;Fb.SHAPE=256;Sa.BLANK=Ib.register("_",0|Fb.SHAPELESS);Sa.LINE=Ib.register("|",1|Fb.SHAPELESS);Sa.LEAN_LEFT=Ib.register("\\",2|Fb.SHAPELESS);
Sa.LEAN_RIGHT=Ib.register("/",3|Fb.SHAPELESS);Sa.CIRCLE=Ib.register("O",4|Fb.SHAPE);Sa.DISC=Ib.register("o",5|Fb.SHAPE);Sa.SQUARE=Ib.register("=",6|Fb.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 g=com.kingdee.bos.qing.dsb,ub,Da,ib,lb,Lb,wb,Fb;(function(){var Sa=com.kingdee.bos.qing.common;ub=Sa.DomUtil;Da=Sa.ColorUtil;Sa=com.kingdee.bos.qing.framework.common;ib=Sa.AbstractFacade;lb=Sa.AbstractIcons;
Lb=Sa.Resource;Sa=com.kingdee.bos.qing.core.model;wb=Sa.Palette;Sa=com.kingdee.bos.qing.square.model;Fb=Sa.SquareModel})();g.Facade=function(Sa,Qa,Ya,jb){ib.call(this,Sa,Qa,Ya,jb);var pb=this.protectedMethod;this.squareLoadSchema=function(hb){hb={ref:JSON.stringify(hb)};return pb.remote("squareLoadSchema",hb)};this.squareSaveSchema=function(hb,eb){hb={ref:JSON.stringify(hb),model:JSON.stringify(eb)};pb.remote("squareSaveSchema",hb)};this.longerLoadSchema=function(hb){hb={ref:JSON.stringify(hb)};return pb.remote("longerLoadSchema",
hb)};this.longerSaveSchema=function(hb,eb){hb={ref:JSON.stringify(hb),model:JSON.stringify(eb)};pb.remote("longerSaveSchema",hb)};this.refreshData=function(hb,eb,Ib){hb={ref:JSON.stringify(hb)};eb&&(hb.tag=eb,Ib&&(hb.loafingMode=!0));return pb.remote("refreshData",hb)};this.getWidgetBoundMeta=function(hb){pb.remote("getWidgetBoundMeta",{tag:hb})};this.getFilterPreparedValue=function(hb,eb,Ib,ha,Ra,W,sa,Pa){hb={tag:hb,formalizedType:eb,metaFieldFullName:Ib,displayMetaFieldFullName:ha,orderByMetaFieldFullName:Ra,
orderByAsc:W,additionalFilters:sa?JSON.stringify(sa):null,lightWeight:Pa};pb.remote("getFilterPreparedValue",hb)};this.parseRelativePeriod=function(hb,eb){hb={part:eb,relative:JSON.stringify(hb.toJsonObject())};pb.remote("parseRelativePeriod",hb)};this.changeTestableCurrentTimeForRelativePeriod=function(hb){pb.remote("changeTestableCurrentTimeForRelativePeriod",{current:hb})};this.loadPresetCosmetic=function(hb){pb.remote("loadPresetCosmetic",{skin:hb})};this.runtimeKeepAlive=function(){pb.remote("runtimeKeepAlive",
{})}};g.Icons=new function(){lb.call(this);var Sa=this.protectedMethod,Qa;this.createLoadingIcon=function(){var hb=$("<div>");hb.addClass("sa-common-loading-icon");hb.css("background-image",Lb.getIconUrl("common","loading.gif"));ub.layoutCtrlCenterAlign(hb,40);ub.layoutCtrlMiddleAlign(hb,40);return hb};this.setComboIconImpl=function(hb){Qa=hb};this.protectedInit=function(hb,eb){if(!Qa)throw Error("Please setComboIconImpl() first.");Qa.define(eb,"toolbar");jb(0,0,"btn_undo");jb(0,1,"btn_redo");jb(4,
2,"btn_preview");jb(4,3,"btn_backward");jb(4,6,"btn_info");jb(4,7,"btn_overall");Qa.define(eb,"toolbox");Ya(0,0,"widget_unreleased");Ya(0,1,"widget_square");Ya(0,2,"widget_longer");Ya(0,3,"widget_ext");Ya(1,0,"widget_iframe");Ya(1,1,"widget_tabbedall");Ya(1,2,"widget_tabbedone");Ya(1,3,"widget_panel");Ya(2,0,"widget_label");Ya(2,1,"widget_picture");Ya(2,2,"widget_rich");Ya(2,3,"widget_clock");Ya(3,0,"widget_combobox");Ya(3,1,"widget_calendar");Ya(3,2,"widget_buttongroup");Ya(3,3,"widget_f7");Ya(4,
0,"widget_programable");Ya(4,1,"widget_customcard");Ya(4,2,"widget_cloudhub");Ya(4,3,"widget_qingreport");Ya(5,0,"widget_calendaryear");Ya(5,1,"widget_calendarquarter");Ya(5,2,"widget_calendarmonth");Ya(5,3,"widget_calendarday");Ya(6,0,"widget_titlebar");Qa.define(eb,"outline");pb(0,0,"widget_page_min");pb(0,1,"widget_square_min");pb(0,2,"widget_longer_min");pb(0,3,"widget_ext_min");pb(2,0,"widget_iframe_min");pb(2,1,"widget_tabbedall_min");pb(2,2,"widget_tabbedone_min");pb(2,3,"widget_panel_min");
pb(4,0,"widget_label_min");pb(4,1,"widget_picture_min");pb(4,2,"widget_rich_min");pb(4,3,"widget_clock_min");pb(6,0,"widget_combobox_min");pb(6,1,"widget_calendar_min");pb(6,2,"widget_buttongroup_min");pb(6,3,"widget_f7_min");pb(8,0,"widget_programable_min");pb(8,1,"widget_customcard_min");pb(8,2,"widget_cloudhub_min");pb(8,3,"widget_qingreport_min");pb(10,0,"widget_calendaryear_min");pb(10,1,"widget_calendarquarter_min");pb(10,2,"widget_calendarmonth_min");pb(10,3,"widget_calendarday_min");pb(12,
0,"widget_titlebar_min");Qa.define(eb,"operate");Ya(0,0,"minidelete");Qa.define(eb,"card");Ya(0,0,"edit");Ya(0,1,"analysis");Ya(0,2,"refresh");Ya(0,3,"filter");Ya(0,4,"fullscreen");Ya(1,4,"quitFullscreen");Ya(1,0,"others");Ya(1,1,"info");Ya(1,2,"play");Ya(1,3,"pause");Ya(1,5,"insight");Qa.define(eb,"ctrl");Ya(0,0,"left");Ya(0,1,"right");Qa.define(eb,"exhibitionmode");Ya(0,0,"icon_exmode_full");Ya(1,0,"icon_exmode_fit");Ya(2,0,"icon_exmode_hfull");Ya(3,0,"icon_exmode_idle")};var Ya=function(hb,eb,
Ib){Sa.registIcon(hb,eb,Ib)},jb=function(hb,eb,Ib){Ya(hb,eb,Ib);Ya(hb+1,eb,Ib+"_hover");Ya(hb+2,eb,Ib+"_disabled")},pb=function(hb,eb,Ib){Ya(hb,eb,Ib);Ya(hb+1,eb,Ib+"_selected")}};g.AbstractQingReportExecutor=function(){this.initUi=function(Sa,Qa){throw Error("Implement");};this.resize=function(Sa,Qa){};this.run=function(Sa,Qa,Ya){throw Error("Implement");};this.updateTitle=function(Sa,Qa){throw Error("Implement");};this.destroy=function(Sa,Qa){}};g.AbstractExtReportExecutor=function(){this.initUi=
function(Sa,Qa){throw Error("Override");};this.resize=function(Sa,Qa){};this.run=function(Sa,Qa,Ya){throw Error("Override");};this.updateTitle=function(Sa,Qa){throw Error("Override");};this.destroy=function(Sa,Qa){}};g.AbstractProgramableCardExecutor=function(){this.initUi=function(Sa,Qa){throw Error("Override");};this.resize=function(Sa,Qa){};this.run=function(Sa,Qa,Ya){throw Error("Override");};this.destroy=function(Sa,Qa){}};g.AbstractCosmicCustomCardExecutor=function(){this.initUi=function(Sa,
Qa){throw Error("Override");};this.resize=function(Sa,Qa){};this.run=function(Sa,Qa,Ya){throw Error("Override");};this.destroy=function(Sa,Qa){}};g.AbstractCloudhubSubscribesExecutor=function(){this.initUi=function(Sa,Qa){throw Error("Override");};this.resize=function(Sa,Qa){};this.run=function(Sa,Qa,Ya){throw Error("Override");};this.destroy=function(Sa,Qa){}};g.VisualWidgetEditableConfirmer=function(Sa,Qa){this.getRtSquareEditableConfirmer=function(){return Sa};this.getRtLongerEditableConfirmer=
function(){return Qa}};g.ImageBorderRenerer=function(){var Sa,Qa,Ya,jb,pb;this.setModel=function(hb,eb,Ib,ha,Ra){pb=hb;Sa=eb;Qa=Ib;Ya=ha;jb=Ra};this.draw=function(hb,eb,Ib,ha,Ra){var W=pb.width,sa=pb.height,Pa=Math.max(0,Math.min(W,Sa)),Ma=Math.max(0,Math.min(W,Qa)),sb=Math.max(0,W-Pa-Ma),bb=0+Pa;W-=Ma;var aa=Math.max(0,Math.min(sa,Ya)),N=Math.max(0,Math.min(sa,jb)),Fa=Math.max(0,sa-aa-N),ya=0+aa;sa-=N;var ma=Math.max(0,ha-Pa-Ma),ua=eb+Pa;ha-=Ma;var C=Math.max(0,Ra-aa-N),y=Ib+aa;Ra-=N;hb.drawImage(pb,
0,0,Pa,aa,eb,Ib,Pa,aa);hb.drawImage(pb,bb,0,sb,aa,ua,Ib,ma,aa);hb.drawImage(pb,W,0,Ma,aa,ha,Ib,Ma,aa);hb.drawImage(pb,0,ya,Pa,Fa,eb,y,Pa,C);hb.drawImage(pb,bb,ya,sb,Fa,ua,y,ma,C);hb.drawImage(pb,W,ya,Ma,Fa,ha,y,Ma,C);hb.drawImage(pb,0,sa,Pa,N,eb,Ra,Pa,N);hb.drawImage(pb,bb,sa,sb,N,ua,Ra,ma,N);hb.drawImage(pb,W,sa,Ma,N,ha,Ra,Ma,N)}};g.IntegrationRegister=new function(){var Sa,Qa,Ya,jb,pb,hb,eb,Ib,ha,Ra,W,sa,Pa,Ma,sb,bb;this.registerWidgetSourceSelector=function(aa){Sa=aa};this.getWidgetSourceSelector=
function(){return Sa};this.registerQingReportExecutor=function(aa){ha=aa};this.getQingReportExecutor=function(){return ha};this.registerExtReportSourceSelector=function(aa){Ra=aa};this.getExtReportSourceSelector=function(){return Ra};this.registerExtReportExecutor=function(aa){W=aa};this.getExtReportExecutor=function(){return W};this.registerCosmicCustomCardSourceSelector=function(aa){Pa=aa};this.getCosmicCustomCardSourceSelector=function(){return Pa};this.registerCosmicCustomCardExecutor=function(aa){Ma=
aa};this.getCosmicCustomCardExecutor=function(){return Ma};this.registerCloudhubSubscribesSourceSelector=function(aa){sb=aa};this.getCloudhubSubscribesSourceSelector=function(){return sb};this.registerCloudhubSubscribesExecutor=function(aa){bb=aa};this.getCloudhubSubscribesExecutor=function(){return bb};this.registerProgramableCardExecutor=function(aa){sa=aa};this.getProgramableCardExecutor=function(){return sa};this.registerSquareDesignerCreator=function(aa){Qa=aa};this.showSquareDesigner=function(aa,
N,Fa,ya,ma,ua){Qa(aa,N,Fa,ya,ma,ua)};this.registerSquareAnalysisHandler=function(aa){Ya=aa};this.squareAnalysis=function(aa,N,Fa,ya){Ya(aa,N,Fa,ya)};this.registerSquareSceneCreator=function(aa){jb=aa};this.createDashboardSquareScene=function(aa,N){jb(aa,N)};this.registerLongerDesignerCreator=function(aa){pb=aa};this.showLongerDesigner=function(aa,N,Fa,ya,ma,ua){pb(aa,N,Fa,ya,ma,ua)};this.registerLongerSceneCreator=function(aa){hb=aa};this.createDashboardLongerScene=function(aa,N){hb(aa,N)};this.registerBuiltinVisualWidgetEditableConfirmerParser=
function(aa){eb=aa};this.parseBuiltinVisualWidgetEditableConfirmer=function(aa){return eb(aa)};this.registerPictrueLoader=function(aa){Ib=aa};this.getPictureLoader=function(){return Ib}};var la=new function(){var Sa;this.unpack=function(Qa){Sa=Qa};this.dipSome=function(Qa){var Ya={};if(Sa)for(var jb=0;jb<Qa.length;jb++)Sa.pickItems(Qa[jb],Ya);return Ya};this.dip=function(Qa){return Sa?Sa.pickItems(Qa):null}};la.DSB_PAGE="page";la.DSB_PAGE_TITLE_BAR="pageTitleBar";la.DSB_CARD="card";la.DSB_LABEL="label";
la.DSB_INPUTER="sinlgeLineInputer";la.DSB_TABBED_HEAD="tabbedHead";la.DSB_BUTTON_GROUP="buttonGroup";la.DESIGN="designtime";la.SQUARE_EXHIBITION="squareExhibition";la.CHART_COMMON="chartCommon";la.CHART_PALETTE="chartPalette";la.CHART_PROGRESS="chartProgress";la.getPageBackgroundColor=function(){return la.dip(la.DSB_PAGE)[la.Key_Page_BackgroundColor]};la.getCardBackgroundColor=function(Sa,Qa){Qa=Qa?Qa:la.dip(la.DSB_CARD);var Ya=Qa[la.Key_Card_BackgroundColor]||"#ffffff";Sa&&(Sa=parseFloat(Qa[la.Key_Card_BackgroundOpacity]||
1),Ya=Da.withOpacityToRgba(Ya,Sa));return Ya};la.decorateCardSimpleBorder=function(Sa,Qa,Ya){Ya=Ya?Ya:la.dip(la.DSB_CARD);var jb=parseInt(Ya[la.Key_Card_BorderRadius]||0);Qa.css("border-radius",jb+"px");Sa=la.getCardBackgroundColor(Sa,Ya);Qa.css("background-color",Sa);(Ya=Ya[la.Key_Card_ShadowColor]||"")&&(Ya="0 1px 3px 0 "+Ya);Qa.css("box-shadow",Ya)};la.undecorateCardSimpleBorder=function(Sa){Sa.css("border-radius","");Sa.css("background-color","");Sa.css("box-shadow","")};la.decorateCardTitle=
function(Sa,Qa){Qa=Qa?Qa:la.dip(la.DSB_CARD);var Ya=Qa[la.Key_Card_TitleColor]||"#5b6373";Qa=parseInt(Qa[la.Key_Card_TitleFontSize]||12);Sa.css("color",Ya);Sa.css("font-size",Qa+"px")};la.decorateCardModalLayer=function(Sa,Qa,Ya){Ya=Ya?Ya:la.dip(la.DSB_CARD);var jb=Ya[la.Key_Card_ModalLayerColor]||"#999999";Qa?(jb=Da.withOpacityToRgba(jb,.5),Qa="rgba(128,128,128,0.001)"):(Qa=Ya[la.Key_Card_BackgroundColor]||"#ffffff",Qa=Da.withOpacityToRgba(Qa,.8));Sa.css("color",jb);Sa.css("background-color",Qa)};
la.decorateLabel=function(Sa,Qa){Qa=Qa?Qa:la.dip(la.DSB_LABEL);Sa.css("color",Qa[la.Key_Label_Color]||"#808080")};la.decorateInputer=function(Sa,Qa){Qa=Qa?Qa:la.dip(la.DSB_INPUTER);var Ya=Qa[la.Key_Inputer_Color]||"#808080";Qa=Qa[la.Key_Inputer_UnderlineColor]||"#808080";Sa.css("background-color","transparent");Sa.css("color",Ya);Sa.css("box-shadow","0 1px 0 0 "+Qa)};la.decorateDesigntimeRectangle=function(Sa,Qa){Qa=Qa?Qa:la.dip(la.DESIGN);Sa.css("box-shadow","inset 0 0 0 1px "+Qa[la.Key_Design_ColorC])};
la.getChartDefaultPalette=function(Sa){if(!Sa)return null;a:{switch(Sa){case Fb.ChartType_ProgressBar:case Fb.ChartType_ProgressColumn:case Fb.ChartType_ProgressCircle:var Qa=la.dip(la.CHART_PROGRESS);Sa=Qa[la.Key_ChartProgress_DesiredColor]+","+Qa[la.Key_ChartProgress_CompleteColor];break a;case Fb.ChartType_Grid:case Fb.ChartType_CustomList:case Fb.ChartType_KPI:case Fb.ChartType_Dial:case Fb.ChartType_Map:case Fb.ChartType_Waterfall:Sa="";break a;case Fb.ChartType_Line:case Fb.ChartType_Radar:Sa=
la.Key_Palette_ContrastingLine;break;case Fb.ChartType_GIS:case Fb.ChartType_Scatter:Sa=la.Key_Palette_ContrastingArea;break;default:Sa=la.Key_Palette_Base}Qa=la.dip(la.CHART_PALETTE);Sa=Qa[Sa]}Qa=new wb;Qa.decodeFromString(Sa);return Qa};la.Key_Page_BackgroundColor="backgroundColor";la.Key_Page_WatermarkColor="watermarkColor";la.Key_PageTitleBar_BackgroundColor="backgroundColor";la.Key_PageTitleBar_SeparaterLineWidth="separaterLineWidth";la.Key_PageTitleBar_SeparaterColor="separaterColor";la.Key_Card_BackgroundColor=
"backgroundColor";la.Key_Card_BackgroundOpacity="backgroundOpacity";la.Key_Card_ShadowColor="shadowColor";la.Key_Card_BorderRadius="borderRadius";la.Key_Card_TitleColor="titleColor";la.Key_Card_TitleFontSize="titleFontSize";la.Key_Card_ModalLayerColor="modalLayerColor";la.Key_Label_Color="color";la.Key_Inputer_Color="color";la.Key_Inputer_UnderlineColor="underlineColor";la.Key_TabbedHead_MainColor="mainColor";la.Key_TabbedHead_InverseColor="inverseColor";la.Key_ButtonGroup_Color="color";la.Key_ButtonGroup_BackgroundColor=
"backgroundColor";la.Key_ButtonGroup_BorderColor="borderColor";la.Key_ButtonGroup_Color_Selected="color_selected";la.Key_ButtonGroup_BackgroundColor_Selected="backgroundColor_selected";la.Key_ButtonGroup_BorderColor_Selected="borderColor_selected";la.Key_ButtonGroup_BackgroundColor_Hover="backgroundColor_hover";la.Key_Design_Adjustable="adjustable";la.Key_Design_Unadjustable="unadjustable";la.Key_Design_ColorA="colorA";la.Key_Design_ColorB="colorB";la.Key_Design_ColorC="colorC";la.Key_Palette_Base=
"base";la.Key_Palette_ContrastingLine="contrastingLine";la.Key_Palette_ContrastingArea="contrastingArea";la.Key_ChartProgress_DesiredColor="progressDesiredColor";la.Key_ChartProgress_CompleteColor="progressCompleteColor";g.CosmeticBag=la})();
(function(){function g(){var W=[],sa=!0,Pa=g.POSITION_LEFT|g.POSITION_TOP,Ma,sb,bb,aa=!1,N;this.addMenuItem=function(Y,ja,qa,Ga){W.push([Y,ja,qa,Ga?!0:!1])};this.setMenuItem=function(Y,ja,qa,Ga,za){var ab=W[Y];ab||(ab=[],W[Y]=ab);ja&&(ab[0]=ja);qa&&(ab[1]=qa);Ga&&(ab[2]=Ga);!0!==za&&!1!==za||(ab[3]=za);!sa&&Ma&&Ma.is(":visible")&&(qa=bb.children().eq(Y),ja=qa.children().eq(0),qa=qa.children().eq(1),eb.background(ja,W[Y][0]),qa.text(W[Y][1]))};this.setGourd6Mode=function(Y){sa=Y;Ma&&C();sa?window.localStorage.removeItem("kd.qing.dsb.CornerMenu.gourd6"):
window.localStorage.setItem("kd.qing.dsb.CornerMenu.gourd6",sa)};this.isGourd6Mode=function(){return sa};this.setPosition=function(Y){Pa=Y;Ma&&(ua(),sa&&bb.css(y()));Y=((Pa&g.POSITION_BOTTOM)==g.POSITION_BOTTOM?"S":"N")+(ma()?"E":"W");"NW"==Y?window.localStorage.removeItem("kd.qing.dsb.CornerMenu.position"):window.localStorage.setItem("kd.qing.dsb.CornerMenu.position",Y)};this.getPosition=function(){return Pa};this.setup=function(Y,ja){if(!Ma){var qa=window.localStorage.getItem("kd.qing.dsb.CornerMenu.position");
qa&&(Pa=("S"==qa.charAt(0)?g.POSITION_BOTTOM:g.POSITION_TOP)|("E"==qa.charAt(1)?g.POSITION_RIGHT:g.POSITION_LEFT));(qa=window.localStorage.getItem("kd.qing.dsb.CornerMenu.gourd6"))&&(sa="false"!=qa);Ma=$("<div>");Ma.css({cursor:"pointer","z-index":ja});Fa().appendTo(Ma);bb=$("<div>");bb.css({"background-color":T(),color:Ib.dip(Ib.DSB_LABEL)[Ib.Key_Label_Color],border:"1px solid "+U(),"border-radius":"6px"});bb.appendTo(Ma);Ma.appendTo(Y);ya(Y);ua();C()}};var Fa=function(){var Y=$("<div>");Y.css({"background-color":Q(),
"border-radius":"6px"});sb=$("<div>");sb.append(Y);sb.on("click",function(ja){M();ja.stopPropagation()});return sb},ya=function(Y){var ja=0,qa=-1,Ga=-1;N=function(){ja=0};var za=function(){sa&&(!aa&&(new Date).getTime()>ja?(Ma.hide(),ja=0):setTimeout(za,2E3))};Y.on("mousemove",function(ab){!sa||ab.screenX==qa&&ab.screenY==Ga||(qa=ab.screenX,Ga=ab.screenY,0==ja&&(Ma.show(),setTimeout(za,2E3)),ja=(new Date).getTime()+3E3)});Y.on("click",function(ab){sa&&aa&&(aa=!1,bb.animate(y(),250))})},ma=function(){return(Pa&
g.POSITION_RIGHT)==g.POSITION_RIGHT},ua=function(){var Y=0,ja="",qa=-12,Ga="",za=-6,ab="";ma()&&(Y="",ja=0,qa="",Ga=-12,za="",ab=-6);var Gb=0,Ob="",Zb=6,Sb="";(Pa&g.POSITION_BOTTOM)==g.POSITION_BOTTOM&&(Gb="",Ob=0,Zb="",Sb=6);ib.layoutCtrlWithLRTB(Ma,Y,ja,0,Gb,Ob,0);ib.layoutCtrlWithLRTB(sb,Y,ja,40,Gb,Ob,40);ib.layoutCtrlWithLRTB(sb.children(),qa,Ga,24,6,null,12);ib.layoutCtrlWithLRTB(bb,za,ab,"auto",Zb,Sb,"auto")},C=function(){bb.stop();sa?(aa&&(aa=!1,bb.animate(y(),250)),sb.show(),Ma.hide(),N()):
(sb.hide(),Ma.show(),M())},y=function(){var Y=ma()?"right":"left",ja=bb.prop("offsetWidth"),qa={};qa[Y]=-ja;return qa},M=function(){aa=!0;bb.empty();for(var Y=$(document.createDocumentFragment()),ja=0,qa=0;qa<W.length;qa++)if(W[qa]){var Ga=H(qa);0<ja&&Ga.css("border-top","1px solid "+U());Ga.appendTo(Y);ja++}Y.appendTo(bb);bb.css(y());Y=bb;ja=Y.animate;qa=ma()?"right":"left";Ga={};Ga[qa]=-6;ja.call(Y,Ga,325)},oa=function(Y,ja){var qa=W[Y];Y=qa[1];if(qa[3]){qa=T();var Ga=$("<div>");Ga.text(Y);Ga.css({"white-space":"nowrap",
color:Ib.dip(Ib.DSB_LABEL)[Ib.Key_Label_Color]});Ga.css("text-shadow","-1px -1px "+qa+", 1px 1px "+qa+", -1px 1px "+qa+", 1px -1px "+qa);ma()?(ja=ib.upwardCoordinate(ja[0],[ja.prop("offsetWidth"),0],Ma[0]),ib.layoutCtrlWithLRTB(Ga,null,0+Ma.prop("offsetWidth")-ja[0],"auto",ja[1],null,"auto")):(ja=ib.upwardCoordinate(ja[0],[0,0],Ma[0]),ib.layoutCtrl(Ga,ja[0],ja[1],"auto","auto"));Ga.appendTo(Ma);Ga.animate({"font-size":"28px"},325,function(){setTimeout(function(){Ga.remove()},1E3)})}},H=function(Y){var ja=
$("<div>");ib.layoutCtrlWithLRTB(ja,12,null,16);ib.layoutCtrlMiddleAlign(ja,16);eb.background(ja,W[Y][0]);var qa=$("<div>");qa.css({position:"relative","white-space":"nowrap","line-height":"24px"});qa.text(W[Y][1]);var Ga=$("<div>");Ga.css({position:"relative",height:"24px",padding:"6px 12px 6px 32px"});Ga.on("click",function(za){oa(Y,qa);(0,W[Y][2])()});Ga.append(ja);Ga.append(qa);return Ga},Q=function(){var Y=Ib.dip(Ib.DSB_LABEL)[Ib.Key_Label_Color];return Y=lb.withOpacityToRgba(Y,.2)},T=function(){var Y=
Ib.dip(Ib.DSB_CARD)[Ib.Key_Card_BackgroundColor];return Y=lb.withOpacityToRgba(Y,.8)},U=function(){var Y=Ib.dip(Ib.DSB_LABEL)[Ib.Key_Label_Color];return Y=lb.withOpacityToRgba(Y,.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 ub=com.kingdee.bos.qing.dsb.ui;ub.AbstractDialogWithJsonExportor=function(){wb.call(this);var W=this.protectedMethod,sa,Pa=function(sb,bb){for(var aa=new la,N=0;N<bb.length;N++){var Fa=bb[N];"/"==Fa?aa.addSeperator():aa.addItemModel(Fa)}N=$(sb.currentTarget);sb=N.parent();bb=sb.prop("clientHeight");N=N.prop("offsetLeft");Fa=new Fb;Fa.setModel(aa);Fa.show(sb,N,bb,null,!0);return Fa},Ma=function(sb,bb,aa,N,Fa){Ra.isSupported()&&"function"==typeof FileReader?(sa||
(sa=$("<div>"),sa.appendTo(Fa()),ib.layoutCtrl(sa,-1E3,-1E3,0,0)),sa.empty(),Fa=new hb,Fa.appendInvislbelUiTo(sa),Fa.selectFile(function(ya){if(ya=ya.getFile()){var ma=new FileReader;ma.onload=function(ua){ua=ua.target.result;try{var C=JSON.parse(ua)}catch(H){W.getMessageCurtain().showPrompt(Lb.get("promptParseFileError","\u89e3\u6790\u6587\u4ef6\u65f6\u53d1\u751f\u9519\u8bef\u3002")+H,6E4);return}if(C.qingStyleType!=sb)W.getMessageCurtain().showPrompt(Lb.get("promptFileTypeVerifyError","\u6587\u4ef6\u7c7b\u578b\u4e0d\u5339\u914d\u3002"),
6E4);else{ua=!1;var y=parseInt(C.version),M=parseInt(bb);if(isNaN(y))W.getMessageCurtain().showPrompt(Lb.get("promptFileVersionVerifyError","\u6587\u4ef6\u7248\u672c\u4fe1\u606f\u9519\u8bef\u3002"),6E4);else if(y>M)W.getMessageCurtain().showPrompt(Lb.get("promptFileVersionHigherError","\u4e0d\u652f\u6301\u89e3\u6790\u4ece\u9ad8\u7248\u672c\u73af\u5883\u5bfc\u51fa\u7684\u6587\u4ef6\u3002"),6E4);else{y<M&&(ua=!0);try{var oa=C.content;ua&&aa(y,oa);N(oa,function(H){H&&W.getMessageCurtain().showSuccess(Lb.get("promptImportFromFileSuccess",
"\u5df2\u4ece\u9009\u4e2d\u6587\u4ef6\u5bfc\u5165\u3002"))})}catch(H){W.getMessageCurtain().showPrompt(Lb.get("promptImportFromFileError","\u5bfc\u5165\u65f6\u53d1\u751f\u9519\u8bef\u3002")+H,6E4)}}}};ma.onerror=function(ua){W.getMessageCurtain().showPrompt(Lb.get("promptReadFileError","\u8bfb\u53d6\u6587\u4ef6\u65f6\u53d1\u751f\u9519\u8bef\u3002")+ma.error,6E4)};ma.readAsText(ya)}},"."+sb)):W.getMessageCurtain().showPrompt(Lb.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"))};
W.initToolbarExportButton=function(sb,bb,aa,N,Fa,ya,ma,ua){W.getDialogCtrl().createToolbarButton(Lb.get("exportTo","\u5bfc\u51fa"),function(C){var y=Fb.createActionMenuItem(Lb.get("exportToFile","\u5bfc\u51fa\u5230\u6587\u4ef6"),function(){if(Ra.isSupported()&&"function"==typeof FileReader){var oa={};oa.qingStyleType=sb;oa.version=bb;oa.content=N();oa=JSON.stringify(oa);var H=Da.formatDate("yyyyMMdd_HHmmss")+"."+sb;Ra.write(H,oa)}else W.getMessageCurtain().showPrompt(Lb.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"))}),M=Fb.createActionMenuItem(Lb.get("exportToClipboard","\u5bfc\u51fa\u5230\u6837\u5f0f\u526a\u8d34\u677f"),function(){var oa=aa(ha),H=N();ha.copy(oa,H);W.getMessageCurtain().showSuccess(Lb.get("promptExportSuccess","\u5df2\u5bfc\u51fa\u3002"))});Pa(C,[y,M])},ua?!0:!1);W.getDialogCtrl().createToolbarButton(Lb.get("importFrom","\u5bfc\u5165"),
function(C){var y=Fb.createActionMenuItem(Lb.get("importFromFile","\u4ece\u6587\u4ef6\u5bfc\u5165")+"...",function(){Ma(sb,bb,Fa,ya,ma)}),M=Fb.createActionMenuItem(Lb.get("importFromClipboard","\u4ece\u6837\u5f0f\u526a\u8d34\u677f\u5bfc\u5165"),function(){var oa=aa(ha);(oa=ha.paste(oa))?ya(oa,function(H){H&&W.getMessageCurtain().showSuccess(Lb.get("promptImportFromClipboardSuccess","\u5df2\u4ece\u6837\u5f0f\u526a\u8d34\u677f\u5bfc\u5165\u3002"))}):W.getMessageCurtain().showPrompt(Lb.get("promptImportFromClipboardEmpty",
"\u6837\u5f0f\u526a\u8d34\u677f\u4e2d\u6ca1\u6709\u5185\u5bb9\u3002"))});Pa(C,[y,M])})};W.popupMenu=Pa};ub.CornerMenu=g;var Da,ib,lb,Lb,wb,Fb,la,Sa,Qa,Ya,jb,pb,hb,eb,Ib;(function(){var W=com.kingdee.bos.qing.common;Da=W.Util;ib=W.DomUtil;lb=W.ColorUtil;W=com.kingdee.bos.qing.framework.common;Lb=W.MultilanguageManager.createPackageAccessor(ub);W=com.kingdee.bos.qing.ui.component;wb=W.AbstractModalDialog;Fb=W.Menu;la=W.MenuModel;Sa=W.LeftTabContainer;Qa=W.CheckBox;Ya=W.RadioButton;jb=W.RadioButtonGroup;
pb=W.Label;W=com.kingdee.bos.qing.common.ui;hb=W.LocalFileSelector;W=com.kingdee.bos.qing.dsb;eb=W.Icons;Ib=W.CosmeticBag})();var ha=new function(){this.getKeyOfCosmetic=function(){return"kd.qing.dashboard.style"};this.getKeyOfCardlook=function(){return"kd.qing.dashboard.cardlook"};this.copy=function(W,sa){window.sessionStorage.setItem(W,JSON.stringify(sa))};this.paste=function(W){return(W=window.sessionStorage.getItem(W))?JSON.parse(W):null}},Ra=new function(){this.isSupported=function(){if("undefined"===
typeof Blob)return!1;try{new Blob(["test"])}catch(Pa){return!1}return W()||"function"==typeof navigator.msSaveBlob};this.write=function(Pa,Ma){var sb=W();sb?(Ma=sa(Ma),Ma=URL.createObjectURL(Ma),sb.href=Ma,sb.download=Pa,Pa=new MouseEvent("click"),sb.dispatchEvent(Pa),URL.revokeObjectURL(Ma)):(Ma=sa(Ma),navigator.msSaveBlob(Ma,Pa))};var W=function(){var Pa=document.createElementNS("http://www.w3.org/1999/xhtml","a");return"download"in Pa?Pa:null},sa=function(Pa){return new Blob([Pa],{type:"application/octet-stream"})}};
g.POSITION_LEFT=1;g.POSITION_RIGHT=2;g.POSITION_TOP=16;g.POSITION_BOTTOM=32;g.ConfigDialog=function(){function W(ya,ma){Sa.AbstractTabPane.call(this);var ua;this.getTabHeadText=function(){return ya};this.getJqUi=function(){ua||(ua=$("<div>"),ua.css({color:"#666","white-space":"pre-wrap",padding:"10px 20px","line-height":"24px"}));return ua};this.into=function(){ua.text()||0!=ua.children().length||ma(ua)}}function sa(ya){Sa.AbstractTabPane.call(this);var ma;this.getTabHeadText=function(){return Lb.get("cornerMenuTabConfig",
"\u83dc\u5355\u4e2a\u6027\u5316")};this.getJqUi=function(){!ma&&ua();return ma};var ua=function(){ma=$("<div>");var M=new pb;M.setText(Lb.get("cornerMenuConfigPosition","\u83dc\u5355\u4f4d\u7f6e"));var oa=y(Lb.get("cornerMenuConfigPositionNW","\u5de6\u4e0a\u89d2"),g.POSITION_LEFT|g.POSITION_TOP),H=y(Lb.get("cornerMenuConfigPositionNE","\u53f3\u4e0a\u89d2"),g.POSITION_RIGHT|g.POSITION_TOP),Q=y(Lb.get("cornerMenuConfigPositionSW","\u5de6\u4e0b\u89d2"),g.POSITION_LEFT|g.POSITION_BOTTOM),T=y(Lb.get("cornerMenuConfigPositionSE",
"\u53f3\u4e0b\u89d2"),g.POSITION_RIGHT|g.POSITION_BOTTOM),U=new jb;U.addElement(oa);U.addElement(H);U.addElement(Q);U.addElement(T);U.addChangedListener(function(Y,ja){ja&&ya.setPosition(Y.getUserObject())});U=new Qa;U.setText(Lb.get("cornerMenuConfigKeepMenu","\u83dc\u5355\u4e00\u76f4\u505c\u7559\u5728\u754c\u9762\u4e0a"));U.setChecked(!ya.isGourd6Mode());U.addCheckedListener(function(Y,ja){ja&&ya.setGourd6Mode(!Y.isChecked())});C(M.getJqUi(),20,10,120,20);C(oa.getJqUi(),20,40,120,23);C(H.getJqUi(),
160,40,120,23);C(Q.getJqUi(),20,80,120,23);C(T.getJqUi(),160,80,120,23);C(U.getJqUi(),20,130,200,23)},C=function(M,oa,H,Q,T){M.appendTo(ma);ib.layoutCtrl(M,oa,H,Q,T)},y=function(M,oa){var H=new Ya;H.setText(M);H.setUserObject(oa);H.setChecked(ya.getPosition()==oa);return H}}function Pa(ya){Sa.AbstractTabPane.call(this);var ma;this.getTabHeadText=function(){return Lb.get("cornerMenuTabPersonalization","\u4eea\u8868\u677f\u8bbe\u7f6e")};this.getJqUi=function(){ma||(ma=$("<div>"),ya(ma));return ma}}
wb.call(this);var Ma=this,sb=this.protectedMethod,bb,aa,N,Fa;this.setContextCreator=function(ya){aa=new W(Lb.get("cornerMenuTabContextInfo","\u4eea\u8868\u677f\u4fe1\u606f"),ya)};this.setEnvCreator=function(ya){N=new W(Lb.get("cornerMenuTabEnvInfo","\u73af\u5883\u4fe1\u606f"),ya)};this.setPersonalizationCreator=function(ya){Fa=new Pa(ya)};this.show=function(ya,ma){Ma.setSize(640,360);sb.setTitle(ya);sb.setFooterClosingOnly(!0);sb.setContentPaneCreator(function(){bb=new Sa;bb.setBorderVisible(!0);
bb.setTabPanes([new sa(ma),Fa,N,aa]);bb.setTabHeadItemHeight(44);bb.setTabHeadWidth(100);return bb.getJqUi()});sb.setClosingAction(function(ua){});Ma.showDialog();bb.refreshUi()}}})();(function(){function g(){var k=this,e,l=new vb,p=new vb,x;this.addPropertyChangedListener=function(ba){l.addListener(ba)};this.removePropertyChangedListener=function(ba){l.removeListener(ba)};var z=function(ba,K){l.fireEvent(function(v){v(ba,K)})};this.addChildrenChangedListener=function(ba){p.addListener(ba)};this.removeChildrenChangedListener=function(ba){p.removeListener(ba)};var E=function(ba,K,v){p.fireEvent(function(F){F(ba,K,v)})};this.getPage=function(){if(!e){e=new ha;var ba=e.getWidgetTypeName();
e.setName(ba);e.setDisplayName(xc.getInstance(ba).getTypeDisplayName());e.setRectangle(0,0,1024,768);e.setCardBorder(H.createInstance(H.TYPE_SIMPLE));e.addPropertyChangedListener(function(K,v){z(K,v)});e.addChildrenChangedListener(function(K,v,F){E(K,v,F)})}return e};this.getCurrentCosmeticModel=function(){return x};this.setCurrentCosmeticModel=function(ba){x=ba};this.allocateNameForNewWidget=function(ba,K,v,F){var O=K.getTypeDisplayName();v=R(O,v);ba.setDisplayName(v);K=K.getTypeName();F=ka(K+(new Date).getTime(),
"z",F);ba.setName(F)};this.reallocateNameForCopyPasteWidget=function(ba){L(ba,function(K,v){K.setDisplayName(v)},function(K,v){K.setName(v)})};this.reallocateNameForCutPasteWidget=function(ba,K,v){L(ba,K,v)};var L=function(ba,K,v){var F={},O={};for(ba=[ba];0<ba.length;){var J=ba.shift(),V=J.getDisplayName();k.isDisplayNameExist(V)?(V=R(V+"_",F),K(J,V)):F[V]=!0;V=J.getName();var fa=ka(V,"_",O);fa!=V&&v(J,fa);if(J.isContainer())for(V=0;V<J.getWidgetCount();V++)ba.push(J.getWidget(V))}},R=function(ba,
K){for(var v=1,F=ba+v;k.isDisplayNameExist(F)||K&&K[F];)v++,F=ba+v;K&&(K[F]=!0);return F},ka=function(ba,K,v){for(var F=1,O=ba;xa(O,"getName")||v&&v[O];)O=ba+K+F,F++;v&&(v[O]=!0);return O},xa=function(ba,K){var v=!1;k.getPage().traversalMeAndDescendents(function(F){return F[K]()==ba?v=!0:!1});return v};this.isDisplayNameExist=function(ba){return xa(ba,"getDisplayName")};this.searchWidgetByName=function(ba){return k.getPage().searchWidgetByName(ba)};this.collectStylesToJsonObject=function(ba){var K=
[];ba.isContainer()?ba.traversalMeAndDescendents(function(O){La(O,K)}):La(ba,K);ba=null;if(0<K.length){ba=[];for(var v=0;v<K.length;v++){var F=K[v].toJsonObject();ba.push(F)}}return ba};var La=function(ba,K){ba.isInstanceOf(g.WidgetSuperType_WithCommonStyle)&&ba.collectStyleAndAllocateId(function(v){for(var F=-1,O=0;O<K.length;O++)if(K[O].isEquals(v)){F=O;break}0>F&&(F=K.length,K.push(v));return""+F})};this.distributeStylesFromJsonObject=function(ba,K){for(var v=[],F=0;F<K.length;F++){var O=K[F],
J=new oa;J.fromJsonObject(O);v.push(J)}ba.isContainer()?ba.traversalMeAndDescendents(function(V){Wa(V,v)}):Wa(ba,v)};var Wa=function(ba,K){ba.isInstanceOf(g.WidgetSuperType_WithCommonStyle)&&ba.distributeStyle(function(v){return v?(v=parseInt(v),K[v]):null})};this.toJsonObject=function(){var ba={},K=k.collectStylesToJsonObject(k.getPage());K&&(ba.styles=K);(K=k.getPage().getJsonCustomCosmetic())&&(ba.cosmetic=K);ba.page=k.getPage().toJsonObject();return ba};this.fromJsonObject=function(ba,K){var v=
ba.isTooModern?!0:!1;K&&K.setTooModern(v);K=ba.page;k.getPage().fromJsonObject(K);(K=ba.cosmetic)&&k.getPage().setJsonCustomCosmetic(K);(ba=ba.styles)&&k.distributeStylesFromJsonObject(k.getPage(),ba)}}function ub(){var k=this,e=new vb,l,p,x,z,E,L,R,ka=!1,xa=!1,La=!0,Wa;this.isContainer=function(){return!1};this.getSuperType=function(){return 0};this.isInstanceOf=function(K){return(k.getSuperType()&K)==K};this.getWidgetTypeName=function(){throw Error("Override me");};this.addPropertyChangedListener=
function(K){e.addListener(K)};this.removePropertyChangedListener=function(K){e.removeListener(K)};var ba=function(K,v){e.fireEvent(function(F){F(K,v)})};this.bindParent=function(K){l=K};this.getParent=function(){return l};this.getTopPage=function(){for(var K=k;K.getParent();)K=K.getParent();return K};this.upToVisitPath=function(K){for(var v=k;v.getParent()&&(v=v.getParent(),!K(v)););};this.isOpacityRequired=function(){var K=!1;k.upToVisitPath(function(v){var F=!1;v.isInstanceOf(g.WidgetSuperType_ContainerWithBackground)&&
(K=v.isWidgetOpacityRequired())&&(F=!0);return F});return K};this.setName=function(K){p=K};this.getName=function(){return p};this.setDisplayName=function(K){x=K;ba(k,g.KEY_DISPLAY_NAME)};this.getDisplayName=function(){return x};this.getX=function(){return z};this.getY=function(){return E};this.getWidth=function(){return L};this.getHeight=function(){return R};this.setPosition=function(K,v){z=K;E=v};this.setSize=function(K,v){L=K;R=v};this.setRectangle=function(K,v,F,O){z=K;E=v;L=F;R=O;ba(k,g.KEY_RECT)};
this.markFullscreen=function(K,v){K&&!Wa?(Wa=[z,E,L,R],ba(k,v?g.KEY_FULLSCREEN_BY_ANCESTOR:g.KEY_FULLSCREEN)):!K&&Wa&&(k.setRectangle(Wa[0],Wa[1],Wa[2],Wa[3]),Wa=null,ba(k,v?g.KEY_FULLSCREEN_BY_ANCESTOR:g.KEY_FULLSCREEN))};this.hasBeenFullscreen=function(){return Wa?!0:!1};this.isWidthLockedAlways=function(K){return K.isWidthLockedAlways()};this.isHeightLockedAlways=function(K){return K.isHeightLockedAlways()};this.isWidthLocked=function(){return ka};this.setWidthLocked=function(K){ka=K};this.isHeightLocked=
function(){return xa};this.setHeightLocked=function(K){xa=K};this.isCanBeContained=function(K,v){return!0};this.isMovable=function(){return!0};this.isVisible=function(){return La};this.setVisible=function(K){La!=K&&(La=K,ba(k,g.KEY_VISIBLE))};this.isEldestSon=function(){return!1};this.toJsonObject=function(){var K={};K.widgetType=k.getWidgetTypeName();K.name=p;K.displayName=x;K.x=z;K.y=E;K.width=L;K.height=R;ka&&(K.widthLocked=!0);xa&&(K.heightLocked=!0);!La&&(K.visible=!1);k.protectedToJsonObject(K);
return K};this.fromJsonObject=function(K){p=K.name;x=K.displayName;z=K.x;E=K.y;L=K.width;R=K.height;ka=K.widthLocked?!0:!1;xa=K.heightLocked?!0:!1;La=!1===K.visible?!1:!0;k.protectedFromJsonObject(K)};this.protectedToJsonObject=function(K){throw Error("Override");};this.protectedFromJsonObject=function(K){throw Error("Override");};this.protectedMethod={firePropertyChangedEvent:ba}}function Da(){ub.call(this);var k=this,e=this.protectedMethod,l=[],p=new vb,x;this.isContainer=function(){return!0};this.isCanContain=
function(ka,xa){return!0};this.setLayoutAdapter=function(ka){x=ka};this.getLayoutAdapter=function(){return x};this.addChildrenChangedListener=function(ka){p.addListener(ka)};this.removeChildrenChangedListener=function(ka){p.removeListener(ka)};var z=function(ka,xa,La){p.fireEvent(function(Wa){Wa(ka,xa,La)})};this.getClientWidth=function(){return k.getWidth()};this.getClientHeight=function(){return k.getHeight()};this.setClientSize=function(ka,xa){k.setSize(ka,xa)};this.addWidget=function(ka,xa){"number"==
typeof xa?l.splice(xa,0,ka):l.push(ka);ka.bindParent(k);ka.addPropertyChangedListener(L);ka.isContainer()&&ka.addChildrenChangedListener(R);z(g.KEY_ADD_CHILD,k,ka)};this.removeWidget=function(ka){for(var xa=0;xa<l.length;xa++)if(l[xa]==ka)return l.splice(xa,1),ka.bindParent(null),ka.removePropertyChangedListener(L),ka.isContainer()&&ka.removeChildrenChangedListener(R),z(g.KEY_REMOVE_CHILD,k,ka),xa;return-1};this.moveWidgetTo=function(ka,xa){for(var La=!1,Wa=0;Wa<l.length;Wa++)if(l[Wa]==ka){l.splice(Wa,
1);La=!0;break}La&&(l.splice(xa,0,ka),z(g.KEY_MOVE_CHILD,k,ka))};this.getWidgetCount=function(){return l.length};this.getWidget=function(ka){return l[ka]};this.traversalMeAndDescendents=function(ka){E(ka,!0)};this.traversalDescendents=function(ka){E(ka,!1)};var E=function(ka,xa){for(var La=[k];0<La.length;){var Wa=La.pop(),ba=!1;if(xa||Wa!=k)ba=ka(Wa);if(ba)break;if(Wa.isContainer())for(ba=Wa.getWidgetCount()-1;0<=ba;ba--)La.push(Wa.getWidget(ba))}};this.searchWidgetByName=function(ka){var xa=null;
k.traversalMeAndDescendents(function(La){return La.getName()==ka?(xa=La,!0):!1});return xa};this.isDescendentsContain=function(ka){var xa=!1;k.traversalDescendents(function(La){return La==ka?xa=!0:!1});return xa};var L=function(ka,xa){k.protectedDoDescendantPropertyChanged(ka,xa);e.firePropertyChangedEvent(ka,xa)};this.protectedDoDescendantPropertyChanged=function(ka,xa){};var R=function(ka,xa,La){z(ka,xa,La)};this.protectedMethod.containerToJsonObject=function(ka){for(var xa=[],La=0;La<l.length;La++){var Wa=
l[La].toJsonObject();xa.push(Wa)}ka.widgets=xa};this.protectedMethod.containerFromJsonObject=function(ka){ka=ka.widgets;for(var xa=0;xa<ka.length;xa++){var La=ka[xa],Wa=xc.getInstance(La.widgetType).createWidgetModel();Wa.fromJsonObject(La);k.addWidget(Wa)}};this.protectedMethod.isMySon=function(ka){for(var xa=0;xa<k.getWidgetCount();xa++)if(k.getWidget(xa)==ka)return!0;return!1}}function ib(){Da.call(this);var k=this;this.getSuperType=function(){return g.WidgetSuperType_CompositeContainer};var e=
this.setSize;this.setSize=function(E,L){e(E,L);z()};var l=this.setRectangle;this.setRectangle=function(E,L,R,ka){l(E,L,R,ka);z()};var p=this.addWidget;this.addWidget=function(E,L){p(E,L);k.protectedSyncSubRect(E);k.protectedAfterAddWidget(E)};this.protectedAfterAddWidget=function(E){};var x=this.removeWidget;this.removeWidget=function(E){var L=x(E);k.protectedAfterRemoveWidget(E);return L};this.protectedAfterRemoveWidget=function(E){};var z=function(){for(var E=0;E<k.getWidgetCount();E++){var L=k.getWidget(E);
k.protectedSyncSubRect(L)}};this.protectedSyncSubRect=function(E){throw Error("Implement");};this.protectedMethod.syncSubsRect=z}function lb(){var k=this,e=this.protectedMethod,l;this.getSuperType=function(){return g.WidgetSuperType_ContainerWithBackground};this.setBackgroundPicture=function(p){l=p;e.firePropertyChangedEvent(k,g.KEY_PAGE_BACKGROUND)};this.getBackgroundPicture=function(){return l};this.isWidgetOpacityRequired=function(){return l?!0:!1};e.backgroundToJsonObject=function(p){l&&(p.background=
l.toJsonObject())};e.backgroundFromJsonObject=function(p){l=null;if(p=p.background)l=new N,l.fromJsonObject(p)}}function Lb(){this.getSuperType=function(){return g.WidgetSuperType_CardSurfaceAbout}}function wb(){var k=null,e=null,l=null,p=!1,x=wb.TitlePosition_Auto,z=wb.TitlePosition_Auto,E=null,L=null;this.setTopBarIcon=function(R){k=R};this.getTopBarIcon=function(){return k};this.getCardTitleHorizontalPosition=function(){return x};this.getCardTitleOffsetX=function(){return E};this.getCardTitleVerticalPosition=
function(){return z};this.getCardTitleOffsetY=function(){return L};this.getTopBarIconOffset=function(){return e};this.getTopBarIconSize=function(){return l};this.isTopBarIconWidthAsPercentage=function(){return p};this.setTitleLayout=function(R,ka,xa,La,Wa,ba,K){e=R;l=ka;p=xa;x=La;z=ba;E=x==wb.TitlePosition_Offset?Wa:null;L=z==wb.TitlePosition_Offset?K:null};this.toJsonObject=function(){var R={};k&&(R.topBarIcon=k.toJsonObject(),e&&(R.iconOffset=e),l&&(R.iconSize=l),p&&(R.iconWidthAsPercentage=!0));
R.titleHorizontalPosition=x;R.titleVerticalPosition=z;R.titleOffsetX=E;R.titleOffsetY=L;return R};this.fromJsonObject=function(R){k=null;var ka=R.topBarIcon;if(ka){k=N.createPeer();k.fromJsonObject(ka);ka=R.iconOffset;var xa=R.iconSize;e=ka?ka:null;l=xa?xa:null;p=R.iconWidthAsPercentage?!0:!1}ka=R.titleHorizontalPosition;xa=R.titleVerticalPosition;x=ka?ka:wb.TitlePosition_Auto;z=xa?xa:wb.TitlePosition_Auto;E=x==wb.TitlePosition_Offset?R.titleOffsetX:null;L=z==wb.TitlePosition_Offset?R.titleOffsetY:
null}}function Fb(){Lb.call(this);var k=this,e=this.protectedMethod,l=Fb.Surface_Unified,p=null,x=null,z,E=null,L=null,R=null,ka,xa=null;this.getSuperType=function(){return g.WidgetSuperType_CardSimilary};this.isBareSurface=function(){return l==Fb.Surface_Bare?!0:k.isBareSurfacePassively()};this.isBareSurfacePassively=function(){for(var La=k.getParent();La&&La.getWidgetTypeName()!=g.WidgetType_Page;){if(La.isInstanceOf(g.WidgetSuperType_CardSimilary))return!0;La=La.getParent()}return!1};this.getUsableCardBorder=
function(){var La=l==Fb.Surface_Custom?p:null;return La?La:k.getTopPage().getCardBorder()};this.getUsableCardTopBarCommon=function(){return xa?xa:k.getTopPage().getCardTopBarCommon()};this.getUsableCardTopBarIcon=function(){var La=k.getUsableCardTopBarCommon();return La?La.getTopBarIcon():null};this.getActiveBackgroundColor=function(){return l==Fb.Surface_Custom?k.getUsableCardBorder().getType()==H.TYPE_IMAGE?null:x:null};this.setCardSurfaceMode=function(La){l=La;e.firePropertyChangedEvent(k,g.KEY_CARD_SURFACE)};
this.getCardSurfaceMode=function(){return l};this.setCardBorder=function(La){p&&p.hookPropertyChangedListener(null);(p=La)&&p.hookPropertyChangedListener(function(){e.firePropertyChangedEvent(k,g.KEY_CARD_SURFACE)});e.firePropertyChangedEvent(k,g.KEY_CARD_SURFACE)};this.getCardBorder=function(){return p};this.setBackgroundColor=function(La){x=La;e.firePropertyChangedEvent(k,g.KEY_CARD_SURFACE)};this.getBackgroundColor=function(){return x};this.setCardTitle=function(La){z=La;e.firePropertyChangedEvent(k,
g.KEY_CARD_TITLE)};this.getCardTitle=function(){return z};this.getTitleFontName=function(){return E};this.getTitleFontSize=function(){return L};this.getTitleColor=function(){return R};this.setTitleStyle=function(La,Wa,ba){E=La;L=Wa;R=ba;e.firePropertyChangedEvent(k,g.KEY_CARD_TITLE)};this.setCardDescription=function(La){ka=La;e.firePropertyChangedEvent(k,g.KEY_CARD_TITLE)};this.getCardDescription=function(){return ka};this.setCardTopBarCommon=function(La){xa=La;e.firePropertyChangedEvent(k,g.KEY_CARD_TITLE)};
this.getCardTopBarCommon=function(){return xa};this.getPaddingLeft=function(){return k.isBareSurface()?0:20};this.getPaddingRight=function(){return k.isBareSurface()?0:20};this.getPaddingTop=function(){return k.isBareSurface()?16:z||k.getUsableCardTopBarIcon()?40:20};this.getPaddingBottom=function(){return k.isBareSurface()?0:10};this.protectedMethod.cardSimilaryToJsonObject=function(La){l!=Fb.Surface_Unified&&(La.cardSurfaceMode=l==Fb.Surface_Bare?"bare":l==Fb.Surface_Custom?"custom":null,l==Fb.Surface_Custom&&
(x&&(La.backgroundColor=x),p&&(La.cardBorder=p.toJsonObject())));k.isBareSurface()||(z&&(La.cardTitle=z,La.titleFontName=E,La.titleFontSize=L,La.titleColor=R),xa&&(La.topBar=xa.toJsonObject()));ka&&(La.cardDescription=ka)};this.protectedMethod.cardSimilaryFromJsonObject=function(La){var Wa=La.cardSurfaceMode;l="bare"==Wa?Fb.Surface_Bare:"custom"==Wa?Fb.Surface_Custom:Fb.Surface_Unified;x=(Wa=La.backgroundColor)?Wa:null;Wa=null;var ba=La.cardBorder;ba&&(Wa=H.createInstance(ba.type),Wa.fromJsonObject(ba));
k.setCardBorder(Wa);z=La.cardTitle;Wa=La.titleFontName;ba=La.titleFontSize;var K=La.titleColor;E=Wa?Wa:null;L=ba?ba:null;R=K?K:null;xa=null;if(Wa=La.topBar)xa=new wb,xa.fromJsonObject(Wa);ka=La.cardDescription}}function la(){var k=this,e=this.protectedMethod,l;this.getSuperType=function(){return g.WidgetSuperType_FilterSimilary};this.getSourceDataType=function(){throw Error("Override");};var p=function(x){l=x&&x.getItemCount()?x:null};this.setAffectedTargets=function(x){p(x);e.firePropertyChangedEvent(k,
g.KEY_AFFECTED_TARGETS)};this.getAffectedTargets=function(){return l};this.checkCircularAffection=function(x){x=x?x:k.getAffectedTargets();if(!x)return null;for(var z=[k,[k.getDisplayName()]],E=[z],L={};0<E.length;){z=E.shift();var R=z[0];z=z[1];if(L[R.getName()]){if(R==k)return z.join(" -> ")}else if(L[R.getName()]=!0,R=R==k?x:R.isInstanceOf(g.WidgetSuperType_FilterSimilary)?R.getAffectedTargets():null)for(var ka=0,xa=R.getItemCount();ka<xa;ka++){var La=null,Wa=R.getItem(ka);Wa.isAffectingInsideDashboard()&&
k.getTopPage().traversalMeAndDescendents(function(K){return K.getName()==Wa.getTargetWidgetName()?(La=K,!0):!1});if(La){var ba=z.slice(0);ba.push(La.getDisplayName());E.push([La,ba])}}}return null};this.protectedMethod.innerSetAffectedTargets=p;this.protectedMethod.filterSimilaryToJsonObject=function(x){if(l){var z={};l.toJsonObject(z);x.affectedTargets=z}};this.protectedMethod.filterSimilaryFromJsonObject=function(x){if(x=x.affectedTargets)l=new Ob,l.fromJsonObject(x)}}function Sa(){var k=this,e=
this.protectedMethod,l=0;this.setFontSizeEnhanced=function(p){l=p;e.firePropertyChangedEvent(k,g.KEY_FONT_SIZE_ENHANCED)};this.getFontSizeEnhanced=function(){return l};this.protectedMethod.fontSizeEnhancedToJsonObject=function(p){l&&(p.fontSizeEnhanced=l)};this.protectedMethod.fontSizeEnhancedFromJsonObject=function(p){l=(p=p.fontSizeEnhanced)?p:0}}function Qa(){Sa.call(this);var k=this,e=this.protectedMethod,l,p,x;this.getSuperType=function(){return g.WidgetSuperType_WithLabel};this.setFrontLabel=
function(z){l=z;e.firePropertyChangedEvent(k,g.KEY_FILTER_FRONT_LABEL)};this.getFrontLabel=function(){return l};this.setFrontLabelPosition=function(z){p=z;e.firePropertyChangedEvent(k,g.KEY_FILTER_FRONT_LABEL_POSITION)};this.getFrontLabelPosition=function(){return p};this.setFrontLabelLength=function(z){x=z;e.firePropertyChangedEvent(k,g.KEY_FILTER_FRONT_LABEL_LENGTH)};this.getFrontLabelLength=function(){return x};this.protectedMethod.inputCtrlWithLabelToJsonObject=function(z){var E={};z.withLabel=
E;l&&(E.frontLabel=l);x&&(E.frontLabelLength=x);p&&(E.frontLabelPosition=p);e.fontSizeEnhancedToJsonObject(E)};this.protectedMethod.inputCtrlWithLabelFromJsonObject=function(z){z=z.withLabel;var E=z.frontLabel;E&&(l=E);(E=z.frontLabelLength)&&(x=E);(E=z.frontLabelPosition)&&(p=E);e.fontSizeEnhancedFromJsonObject(z)}}function Ya(){var k=this,e=this.protectedMethod,l,p=!0,x=new ab,z=!1;this.getSuperType=function(){return g.WidgetSuperType_DiscreteItemFilter};this.setFilterSource=function(E){l=E;e.firePropertyChangedEvent(k,
g.KEY_FILTER_SOURCE)};this.getFilterSource=function(){return l};this.isIncludeItemAllSupported=function(){return!1};this.setIncludedItemAll=function(E){p=E;e.firePropertyChangedEvent(k,g.KEY_DISCRETE_INCLUDED_ITEMALL)};this.isIncludedItemAll=function(){return p};this.getOriginatedExecutingTag=function(){if(l&&l.getType()==Y.TYPE_VisualWidget){var E=k.getTopPage().searchWidgetByName(l.getSourceWidgetName());return E?E.getOriginatedExecutingTag():null}return null};this.isLightWeight=function(){return!0};
this.setDefaultSelected=function(E){x=E;e.firePropertyChangedEvent(k,g.KEY_FILTER_DEFAULT_SELECTED)};this.getDefaultSelected=function(){return x};this.setMultiSelectable=function(E){z=E;e.firePropertyChangedEvent(k,g.KEY_DISCRETE_MULTISELECTABLE)};this.isMultiSelectable=function(){return z};this.protectedMethod.discreteItemFilterToJsonObject=function(E){if(l){var L={};l.toJsonObject(L);E.filterSource=L}E.includedItemAll=p;x&&(L={},x.toJsonObject(L),E.defaultSelected=L);E.multiSelectable=z};this.protectedMethod.discreteItemFromJsonObject=
function(E){var L=E.filterSource;if(L){var R=L.type;l=Y.createInstance(R);l.fromJsonObject(L)}p=E.includedItemAll?!0:!1;if(L=E.defaultSelected)R=L.type,x=za.createInstance(R),x.fromJsonObject(L);z=E.multiSelectable}}function jb(){var k=this,e;this.getSuperType=function(){return g.WidgetSuperType_AffectedTarget};this.getExecutingInputParams=function(l){!e&&l&&(e=new ic);return e};this.getAffectedParamType=function(){throw Error("Override");};this.isTheAffectedTargetOfAnother=function(){var l=!1;k.getTopPage().traversalDescendents(function(p){return p!=
k&&p.isInstanceOf(g.WidgetSuperType_FilterSimilary)&&(p=p.getAffectedTargets())&&(p=p.getTarget(k.getName()))&&p.isSettingComplete()?l=!0:!1});return l}}function pb(){var k=this,e=this.protectedMethod,l;this.getSuperType=function(){return g.WidgetSuperType_Referable};this.setReferenceCustomMap=function(p){l=p;e.firePropertyChangedEvent(k,g.KEY_REF)};this.getReferenceCustomMap=function(){return l};this.copyReference=function(p){throw Error("Implement");};this.protectedMethod.referableToJsonObject=
function(p){p.ref=l};this.protectedMethod.referableFromJsonObject=function(p){l=p.ref}}function hb(){var k=this,e=this.protectedMethod,l;this.setRefreshTiming=function(p){l=p;e.firePropertyChangedEvent(k,g.KEY_REFRESH_TIMING)};this.getRefreshTiming=function(){return l};this.protectedMethod.autoRefreshableToJsonObject=function(p){0<l&&(p.refreshTiming=l)};this.protectedMethod.autoRefreshableFromJsonObject=function(p){p=p.refreshTiming;l=0<p?p:-1}}function eb(){var k=this;this.getSuperType=function(){return g.WidgetSuperType_FullscreenSupported};
this.isAncestorForbidFullscreen=function(){for(var e=k.getParent();e;){if(e instanceof C&&e.getFullscreenAllowed()==C.FULLSCREEN_ALLOWED_ALONE)return!0;e=e.getParent()}return!1}}function Ib(){var k=this,e=this.protectedMethod,l,p;this.getSuperType=function(){return g.WidgetSuperType_WithCommonStyle};this.setStyle=function(x){p=x;e.firePropertyChangedEvent(k,g.KEY_STYLE)};this.getStyle=function(){p||(p=new oa,p.setFontSize(14),p.setAlign("center"),p.setColor(null));return p};this.distributeStyle=function(x){p=
x(l)};this.collectStyleAndAllocateId=function(x){l=x(p)};e.styleToJsonObject=function(x){x.styleId=l};e.styleFromJsonObject=function(x){l=x.styleId}}function ha(){Da.call(this);lb.call(this);var k=this,e=this.protectedMethod,l=g.ExhibitionMode_Full,p=g.Skin_White,x,z=H.createInstance(H.TYPE_SIMPLE),E=null,L,R=g.MobileLayoutConverter_ByPosition,ka=!1;this.getSuperType=function(){return g.WidgetSuperType_ContainerWithBackground};this.getWidgetTypeName=function(){return g.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 xa=this.setSize;this.setSize=function(K,v){xa(K,v);La()};this.setRectangle=function(K,v,F,O){k.setSize(F,O);e.firePropertyChangedEvent(k,g.KEY_PAGE_SIZE)};var La=function(){if(0<k.getWidgetCount()){var K=k.getWidget(0);if(K instanceof Ra){var v=k.getWidth();K.setRectangle(0,0,v,K.getHeight())}}},Wa=this.addWidget;this.addWidget=
function(K,v){Wa(K,v);K instanceof Ra&&La()};this.isCanContain=function(K,v){if(K instanceof Ra){K=0;for(var F=k.getWidgetCount();K<F;K++)if(k.getWidget(K)instanceof Ra)return v&&v.push(Mb.get("widgetPageCanContainPrompt","\u9875\u9762\u4e2d\u5df2\u5b58\u5728\u6807\u9898\u680f\u3002")),!1}return!0};this.isMobileDesired=function(){var K=500>=k.getWidth(),v=1.5<=k.getHeight()/k.getWidth();return K&&v};this.setExhibitionMode=function(K){l=K;e.firePropertyChangedEvent(k,g.KEY_PAGE_EXHIBITION_MODE)};this.getExhibitionMode=
function(){return l};this.setSkin=function(K,v){p=K;x=v;e.firePropertyChangedEvent(k,g.KEY_PAGE_SKIN)};this.getSkin=function(){return p};this.setJsonCustomCosmetic=function(K){x=new Nb;x.fromJsonObject(K)};this.getJsonCustomCosmetic=function(){return x?x.toJsonObject():null};this.getCustomCosmetic=function(){return x};this.setCardBorder=function(K){z&&z.hookPropertyChangedListener(null);z=K;z.hookPropertyChangedListener(function(){e.firePropertyChangedEvent(k,g.KEY_PAGE_UNIFIED_CARD)});e.firePropertyChangedEvent(k,
g.KEY_PAGE_UNIFIED_CARD)};this.getCardBorder=function(){return z};this.setCardTopBarCommon=function(K){E=K;e.firePropertyChangedEvent(k,g.KEY_PAGE_UNIFIED_CARD)};this.getCardTopBarCommon=function(){return E};this.setWatermark=function(K){L=K;e.firePropertyChangedEvent(k,g.KEY_PAGE_WATERMARK)};this.getWatermark=function(){return L};var ba=this.isWidgetOpacityRequired;this.isWidgetOpacityRequired=function(){return ba()||(L?!0:!1)};this.setMobileLayoutConverter=function(K){R=K;e.firePropertyChangedEvent(k,
g.KEY_PAGE_MOBILE_LAYOUT_CONVERTER)};this.getMobileLayoutConverter=function(){return R};this.setMobileSkinActive=function(K){ka=K;e.firePropertyChangedEvent(k,g.KEY_PAGE_MOBILE_SKIN_ACTIVE)};this.isMobileSkinActive=function(){return ka};this.protectedToJsonObject=function(K){e.containerToJsonObject(K);e.backgroundToJsonObject(K);K.exhibitionMode=l;K.skin=p;K.cardBorder=z.toJsonObject();E&&(K.cardTopBarCommon=E.toJsonObject());K.watermark=L;K.mobileLayoutConverter=R;ka&&(K.mobileSkinActive=!0)};this.protectedFromJsonObject=
function(K){e.containerFromJsonObject(K);e.backgroundFromJsonObject(K);var v=K.exhibitionMode;l=v?v:g.ExhibitionMode_Idle;p=(v=K.skin)?v:g.Skin_White;v=K.cardBorder;var F=H.createInstance(v.type);F.fromJsonObject(v);k.setCardBorder(F);E=null;if(v=K.cardTopBarCommon)E=new wb,E.fromJsonObject(v);L=K.watermark;R=(v=K.mobileLayoutConverter)?v:g.MobileLayoutConverter_ByPosition;ka=K.mobileSkinActive?!0:!1}}function Ra(){function k(){var z=null,E=0,L=null;this.setBackgroundColor=function(R){z=R};this.getBackgroundColor=
function(){return z};this.setSeparaterLineWidth=function(R){E=R};this.getSeparaterLineWidth=function(){return E};this.setSeparaterColor=function(R){L=R};this.getSepataterColor=function(){return L};this.toJsonObject=function(){var R={};R.backgroundColor=z;R.separaterLineWidth=E;R.separaterColor=L;return R};this.fromJsonObject=function(R){z=R.backgroundColor;var ka=R.separaterLineWidth;E=ka?ka:0;L=R.separaterColor}}Da.call(this);lb.call(this);var e=this,l=this.protectedMethod,p=!1,x=null;this.getSuperType=
function(){return g.WidgetSuperType_ContainerWithBackground};this.getWidgetTypeName=function(){return g.WidgetType_PageTitleBar};this.isMovable=function(){return!1};this.isCanBeContained=function(z,E){if(z instanceof ha)return!0;E&&E.push(Mb.get("widgetPageTitleBarCanBeContainedPrompt","\u9875\u9762\u6807\u9898\u680f\u53ea\u80fd\u51fa\u73b0\u5728\u9875\u9762\u4e2d\u3002"));return!1};this.setWidthLocked=function(z){};this.isEldestSon=function(){return!0};this.getClientHeight=function(){return e.getHeight()-
(x?x.getSeparaterLineWidth():0)};this.setFrozen=function(z){p=z;l.firePropertyChangedEvent(e,Ra.KEY_FROZEN)};this.isFrozen=function(){return p};this.setSurfaceModel=function(z){x=z;l.firePropertyChangedEvent(e,Ra.KEY_SURFACE)};this.getSurfaceModel=function(){return x};this.createSurfaceModel=function(){return new k};this.protectedToJsonObject=function(z){l.containerToJsonObject(z);l.backgroundToJsonObject(z);z.frozen=p;if(x){var E=x.toJsonObject();z.surface=E}};this.protectedFromJsonObject=function(z){l.containerFromJsonObject(z);
l.backgroundFromJsonObject(z);p=z.frozen?!0:!1;x=null;if(z=z.surface)x=new k,x.fromJsonObject(z)}}function W(){var k=this,e,l;this.getSuperType=function(){return g.WidgetSuperType_BuiltinVisual};this.setExecutingTag=function(p){e=p};this.getExecutingTag=function(){return e};this.deliveryTemporary=function(p,x,z){l=[p,x,z]};this.pickupTmpJsonModelBook=function(){var p=l;l=null;return p};this.getAffectedParamType=function(){return g.AffectedType_BindField|g.AffectedType_Param};this.getOriginatedExecutingTag=
function(){return k.getExecutingTag()}}function sa(){function k(p,x,z,E,L){this.getQingModelIndex=function(){return p};this.getQingModel=function(){return x};this.getQingModelPreferences=function(){return z};this.getName=function(){return E};this.getDescription=function(){return L}}var e=null,l=null;this.getSuperType=function(){return g.WidgetSuperType_OutputParamProvider};this.clearAllParamInfo=function(){e=[];l=[]};this.appendOutputParamInfo=function(p,x,z,E,L){e.push(new k(p,x,z,E,L))};this.getOutputParamsInfo=
function(){return e};this.appendWarningRuleInfo=function(p,x,z,E,L){l.push(new k(p,x,z,E,L))};this.getWarningRulesInfo=function(){return l}}function Pa(){ub.call(this);jb.call(this);hb.call(this);var k=this,e=this.protectedMethod,l,p;this.getSuperType=function(){return g.WidgetSuperType_AffectedTarget};this.getWidgetTypeName=function(){return g.WidgetType_ExtReport};this.getDashboardSkinName=function(){return k.getTopPage().getSkin()};this.setTitle=function(x){l=x;e.firePropertyChangedEvent(k,Pa.KEY_TITLE)};
this.getTitle=function(){return l};this.setEncodedModel=function(x){p=x;e.firePropertyChangedEvent(k,Pa.KEY_MODEL)};this.getEncodedModel=function(){return p};this.getExecutableAffectedParams=function(){var x=k.getExecutingInputParams();return x?x.createExternalParamsApi().toJsonObject():{}};this.getAffectedParamType=function(){return g.AffectedType_Param};this.protectedToJsonObject=function(x){x.title=l;x.encodedModel=p;e.autoRefreshableToJsonObject(x)};this.protectedFromJsonObject=function(x){l=
x.title;p=x.encodedModel;e.autoRefreshableFromJsonObject(x)}}function Ma(){ub.call(this);var k=this,e=this.protectedMethod,l;this.getWidgetTypeName=function(){return g.WidgetType_CosmicCustomCard};this.setEncodedModel=function(p){l=p;e.firePropertyChangedEvent(k,Ma.KEY_MODEL)};this.getEncodedModel=function(){return l};this.protectedToJsonObject=function(p){p.encodedModel=l};this.protectedFromJsonObject=function(p){l=p.encodedModel}}function sb(){jb.call(this);la.call(this);var k=this.protectedMethod,
e;this.getSuperType=function(){return g.WidgetSuperType_Text};this.getAffectedParamType=function(){return g.AffectedType_Param};this.getSourceDataType=function(){return ac.DT_STRING};this.setAffectedTargets=function(l){k.innerSetAffectedTargets(l)};this.getPredefinedTextFragments=function(){return e};k.innerSetPredefinedTextFragments=function(l){e=l};k.textToJsonObject=function(l){if(e){var p={};e.toJsonObject(p);l.predefined=p}};k.textFromJsonObject=function(l){e=null;if(l=l.predefined)e=new fb,
e.fromJsonObject(l)}}function bb(){ub.call(this);sb.call(this);Ib.call(this);var k=this,e=this.protectedMethod,l,p=0,x=!1;this.getSuperType=function(){return g.WidgetSuperType_Text|g.WidgetSuperType_AffectedTarget|g.WidgetSuperType_FilterSimilary|g.WidgetSuperType_WithCommonStyle};this.getWidgetTypeName=function(){return g.WidgetType_Label};this.setContent=function(z,E){e.innerSetPredefinedTextFragments(z);l=E;e.firePropertyChangedEvent(k,bb.KEY_CONTENT)};this.getContent=function(){return l};this.setWalkingSpeed=
function(z){p=z;e.firePropertyChangedEvent(k,bb.KEY_WALKING)};this.getWalkingSpeed=function(){return p};this.setRuntimeWalkable=function(z){x=z};this.isRuntimeWalkable=function(){return x};this.isHeightLocked=function(){return!0};this.protectedToJsonObject=function(z){e.styleToJsonObject(z);e.textToJsonObject(z);z.text=l;p&&(z.walking=p)};this.protectedFromJsonObject=function(z){e.styleFromJsonObject(z);e.textFromJsonObject(z);l=z.text;p=(z=z.walking)?z:0}}function aa(){ub.call(this);sb.call(this);
var k=this,e=this.protectedMethod,l;this.getSuperType=function(){return g.WidgetSuperType_Text|g.WidgetSuperType_AffectedTarget|g.WidgetSuperType_FilterSimilary};this.getWidgetTypeName=function(){return g.WidgetType_Rich};this.setContent=function(p,x){e.innerSetPredefinedTextFragments(p);l=x;e.firePropertyChangedEvent(k,aa.KEY_CONTENT)};this.getContent=function(){return l};this.protectedToJsonObject=function(p){for(var x=[],z=0;z<l.getParagraphCount();z++){for(var E=l.getParagraph(z),L=[],R=0;R<E.getContentCount();R++){var ka=
E.getContent(R),xa={};xa.text=ka.getText();xa.fontName=ka.getFontName();xa.fontSize=ka.getFontSize();ka.isBold()&&(xa.bold=!0);ka.isItalic()&&(xa.italic=!0);ka.getColor()&&(xa.color=ka.getColor());L.push(xa)}R={};R.contents=L;R.lineHeight=parseInt(100*E.getLineHeight()+.5);0!=E.getIndent()&&(R.indent=parseInt(100*E.getIndent()+.5));0!=E.getMarginBefore()&&(R.marginBefore=E.getMarginBefore());0!=E.getMarginAfter()&&(R.marginAfter=E.getMarginAfter());"left"!=E.getAlign()&&(R.align=E.getAlign());x.push(R)}z=
{};z.paragraphs=x;p.model=z;e.textToJsonObject(p)};this.protectedFromJsonObject=function(p){l=new nc;for(var x=p.model.paragraphs,z=0;z<x.length;z++){var E=x[z],L=E.align,R=E.indent,ka=E.lineHeight,xa=E.marginBefore,La=E.marginAfter,Wa=nc.createParagraph();Wa.setAlign(L?L:"left");Wa.setIndent(R?.01*R:0);Wa.setLineHeight(ka?.01*ka:1);Wa.setMarginBefore(xa?xa:0);Wa.setMarginAfter(La?La:0);E=E.contents;for(L=0;L<E.length;L++)R=E[L],ka=nc.createContent(),ka.setText(R.text),ka.setFontName(R.fontName),
ka.setFontSize(R.fontSize),ka.setBold(R.bold?!0:!1),ka.setItalic(R.italic?!0:!1),ka.setColor(R.color),Wa.addContent(ka);l.addParagraph(Wa)}e.textFromJsonObject(p)}}function N(){ub.call(this);pb.call(this);var k=this,e=this.protectedMethod,l=N.SCALE_ADAPTIVE,p=N.HALIGN_CENTER|N.VALIGN_MIDDLE;this.getSuperType=function(){return g.WidgetSuperType_Referable};this.getWidgetTypeName=function(){return g.WidgetType_Picture};this.copyReference=function(x){tc.getWidgetSourceSelector().copyPicture(k.getReferenceCustomMap(),
function(z){k.setReferenceCustomMap(z);x()})};this.setScale=function(x){l=x;e.firePropertyChangedEvent(k,N.KEY_SCALE)};this.getScale=function(){return l};this.isAlignNeccessary=function(){return l==N.SCALE_NON||l==N.SCALE_ADAPTIVE};this.setAlign=function(x){p=x;e.firePropertyChangedEvent(k,N.KEY_ALIGN)};this.getAlign=function(){return p};this.isAlignTo=function(x){return(p&x)==x};this.isWidthLocked=function(){return l==N.SCALE_NON};this.isHeightLocked=function(){return l==N.SCALE_NON};this.protectedToJsonObject=
function(x){e.referableToJsonObject(x);x.scale=l;x.horizontalAlign=k.isAlignTo(N.HALIGN_LEFT)?"left":k.isAlignTo(N.HALIGN_RIGHT)?"right":k.isAlignTo(N.HALIGN_CENTER)?"center":null;x.verticalAlign=k.isAlignTo(N.VALIGN_TOP)?"top":k.isAlignTo(N.VALIGN_BOTTOM)?"bottom":k.isAlignTo(N.VALIGN_MIDDLE)?"middle":null};this.protectedFromJsonObject=function(x){e.referableFromJsonObject(x);l=x.scale;var z=x.horizontalAlign;x=x.verticalAlign;p=("left"==z?N.HALIGN_LEFT:"right"==z?N.HALIGN_RIGHT:"center"==z?N.HALIGN_CENTER:
0)+("top"==x?N.VALIGN_TOP:"bottom"==x?N.VALIGN_BOTTOM:"middle"==x?N.VALIGN_MIDDLE:0)}}function Fa(){ub.call(this);jb.call(this);var k=this,e=this.protectedMethod,l;this.getWidgetTypeName=function(){return g.WidgetType_Iframe};this.setUrl=function(p){l=p;e.firePropertyChangedEvent(k,Fa.KEY_URL)};this.getUrl=function(){return l};this.getUsableUrl=function(){var p=l,x=k.getExecutingInputParams();x&&(x=x.createExternalParamsApi().toUrlParams())&&(p+=(0>p.indexOf("?")?"?":"&")+x);return p};this.getAffectedParamType=
function(){return g.AffectedType_Param};this.protectedToJsonObject=function(p){p.url=l};this.protectedFromJsonObject=function(p){l=p.url}}function ya(){ub.call(this);Ib.call(this);var k=this,e=this.protectedMethod,l;this.getSuperType=function(){return g.WidgetSuperType_WithCommonStyle};this.getWidgetTypeName=function(){return g.WidgetType_Clock};this.setFormatString=function(p){l="yyyy.MM.dd HH:mm:ss"==p?null:p;e.firePropertyChangedEvent(k,ya.KEY_FORMAT)};this.getFormatString=function(){return l?
l:"yyyy.MM.dd HH:mm:ss"};this.isHeightLocked=function(){return!0};this.protectedToJsonObject=function(p){e.styleToJsonObject(p);p.formatString=l};this.protectedFromJsonObject=function(p){e.styleFromJsonObject(p);l=p.formatString}}function ma(){ub.call(this);Ya.call(this);la.call(this);jb.call(this);var k=this,e=this.protectedMethod,l=ma.LAYOUT_MODE_HORIZONTAL,p=4,x=2,z=ma.SIZE_MODE_LARGE;this.getSuperType=function(){return g.WidgetSuperType_DiscreteItemFilter|g.WidgetSuperType_FilterSimilary|g.WidgetSuperType_AffectedTarget};
this.getWidgetTypeName=function(){return g.WidgetType_ButtonGroup};this.isHeightLockedAlways=function(E){return l==ma.LAYOUT_MODE_HORIZONTAL};this.getSourceDataType=function(){return ac.DT_STRING};this.getAffectedParamType=function(){return g.AffectedType_BindField};this.isIncludeItemAllSupported=function(){return!0};this.isMultiSelectable=function(){return!1};this.setLayoutMode=function(E){l=E;e.firePropertyChangedEvent(k,ma.KEY_LAYOUT_MODE)};this.getLayoutMode=function(){return l};this.setCharsPerItemWhenWrap=
function(E){p=E;e.firePropertyChangedEvent(k,ma.KEY_CHARS_PER_ITEM)};this.getCharsPerItemWhenWrap=function(){return p};this.setItemsPerRowWhenWrap=function(E){x=E;e.firePropertyChangedEvent(k,ma.KEY_ITEMS_PER_ROW)};this.getItemsPerRowWhenWrap=function(){return x};this.setSizeMode=function(E){z=E;e.firePropertyChangedEvent(k,ma.KEY_SIZE_MODE)};this.getSizeMode=function(){return z};this.protectedToJsonObject=function(E){E.layoutMode=l;E.minCharsPerItem=p;E.maxItemsPerRow=x;E.sizeMode=z;e.discreteItemFilterToJsonObject(E);
e.filterSimilaryToJsonObject(E)};this.protectedFromJsonObject=function(E){var L=E.layoutMode;l=L?L:ma.LAYOUT_MODE_HORIZONTAL;p=(L=E.minCharsPerItem)?L:4;x=(L=E.maxItemsPerRow)?L:2;z=(L=E.sizeMode)?L:ma.SIZE_MODE_SMALL;e.discreteItemFromJsonObject(E);e.filterSimilaryFromJsonObject(E)}}function ua(){ub.call(this);la.call(this);Qa.call(this);var k=this,e=this.protectedMethod,l=!1,p,x,z;this.getSuperType=function(){return g.WidgetSuperType_Calendar|g.WidgetSuperType_FilterSimilary|g.WidgetSuperType_WithLabel};
this.getSourceDataType=function(){return ac.DT_DATE};this.setInitialValue=function(E,L,R,ka){p=E;x=L;z=R;l=ka;e.firePropertyChangedEvent(k,ua.KEY_DATE_INITIAL)};this.isContainNull=function(){return l};this.getFromDate=function(){return p};this.getToDate=function(){return x};this.updateDate=function(E,L){p=E;x=L};this.getRelativeModel=function(){return z};this.protectedToJsonObject=function(E){E.containNull=l;E.dateFrom=p;E.dateTo=x;z&&(E.relative=z.toJsonObject());e.filterSimilaryToJsonObject(E);
e.inputCtrlWithLabelToJsonObject(E)};this.protectedFromJsonObject=function(E){l=E.containNull?!0:!1;p=E.dateFrom;x=E.dateTo;var L=E.relative;L?(z=k.protectedCreateRelativeModel(),z.fromJsonObject(L)):z=null;e.filterSimilaryFromJsonObject(E);e.inputCtrlWithLabelFromJsonObject(E)};this.protectedCreateRelativeModel=function(){throw Error("Implement");}}function C(){Da.call(this);Fb.call(this);eb.call(this);var k=this,e=this.protectedMethod,l=C.FULLSCREEN_ALLOWED_NONE;this.getSuperType=function(){return g.WidgetSuperType_CardSimilary|
g.WidgetSuperType_FullscreenSupported};this.getWidgetTypeName=function(){return g.WidgetType_Panel};this.isCanContain=function(p,x){return p instanceof C?(x&&x.push(Mb.get("widgetPanelCanContainPrompt","\u4e0d\u5141\u8bb8\u5728\u7ec4\u5408\u5361\u7247\u91cc\u653e\u7f6e\u7ec4\u5408\u5361\u7247\u3002")),!1):!0};this.getPaddingTop=function(){var p=k.isBareSurface(),x=!p&&k.getUsableCardTopBarIcon()?!0:!1,z=!p&&k.getCardTitle()?!0:!1,E=k.getCardDescription()?!0:!1,L=!(l==C.FULLSCREEN_ALLOWED_NONE||k.isAncestorForbidFullscreen()),
R=!p&&k.getUsableCardBorder().getType()==H.TYPE_SIMPLE;return!p&&(x||z||L)?x||!R?40:30:E?20:10};this.getClientWidth=function(){return Math.max(0,k.getWidth()-k.getPaddingLeft()-k.getPaddingRight())};this.getClientHeight=function(){return Math.max(0,k.getHeight()-k.getPaddingTop()-k.getPaddingBottom())};this.setClientSize=function(p,x){k.setSize(p+k.getPaddingLeft()+k.getPaddingRight(),x+k.getPaddingTop()+k.getPaddingBottom())};this.setFullscreenAllowed=function(p){l=p;e.firePropertyChangedEvent(k,
C.KEY_FULLSCREEN_ALLOWED)};this.getFullscreenAllowed=function(){return l};this.protectedToJsonObject=function(p){l&&(p.fullscreenAllowed=l);e.containerToJsonObject(p);e.cardSimilaryToJsonObject(p)};this.protectedFromJsonObject=function(p){var x=p.fullscreenAllowed;l=x?x:C.FULLSCREEN_ALLOWED_NONE;e.containerFromJsonObject(p);e.cardSimilaryFromJsonObject(p)}}function y(){ib.call(this);Lb.call(this);jb.call(this);Sa.call(this);var k=this,e=this.protectedMethod,l=y.HEAD_TOP_LEFT,p=y.HEAD_PATTERN_BAR,
x=!1;this.getSuperType=function(){return g.WidgetSuperType_CompositeContainer|g.WidgetSuperType_CardSurfaceAbout|g.WidgetSuperType_AffectedTarget};this.getWidgetTypeName=function(){return g.WidgetType_TabbedContainer};this.isCanContain=function(z,E){if(z instanceof M)return!0;E&&E.push(Mb.get("widgetTabbedContainerCanContainPrompt","\u9875\u7b7e\u63a7\u4ef6\u4e0b\u4e00\u7ea7\u53ea\u80fd\u662f\u5b50\u9875\u7b7e\u3002"));return!1};this.protectedDoDescendantPropertyChanged=function(z,E){if(E==g.KEY_VISIBLE&&
z.isVisible()){if(e.isMySon(z)){for(E=0;E<k.getWidgetCount();E++){var L=k.getWidget(E);L!=z&&L.setVisible(!1)}e.firePropertyChangedEvent(k,y.KEY_TABBED_SELECTED)}}else E==M.KEY_HEAD_TEXT&&e.isMySon(z)&&e.firePropertyChangedEvent(k,E)};this.protectedAfterAddWidget=function(z){z.setVisible(!1);z.setVisible(!0)};this.protectedAfterRemoveWidget=function(z){if(0<k.getWidgetCount()){z=k.getWidget(0);for(var E=0;E<k.getWidgetCount();E++){var L=k.getWidget(E);if(L.isVisible()){z=L;break}}z.setVisible(!1);
z.setVisible(!0)}else e.firePropertyChangedEvent(k,y.KEY_TABBED_SELECTED)};this.protectedSyncSubRect=function(z){var E=k.getWidth(),L=k.getHeight(),R=k.getHeadHeight();l==y.HEAD_TOP_LEFT||l==y.HEAD_TOP_RIGHT?z.setRectangle(0,R,E,Math.max(0,L-R)):l==y.HEAD_BOTTOM_LEFT||l==y.HEAD_BOTTOM_RIGHT?z.setRectangle(0,0,E,Math.max(0,L-R)):z.setRectangle(0,0,E,L)};this.getAffectedParamType=function(){return g.AffectedType_Tab};this.switchToSubTabbed=function(z){z=k.getWidget(z);z.setVisible(!0);e.firePropertyChangedEvent(z,
y.KEY_SWITCH_SUB)};this.setHeadPosition=function(z){l=z;e.syncSubsRect();e.firePropertyChangedEvent(k,y.KEY_HEAD_POSITION)};this.getHeadPosition=function(){return l};this.setHeadPattern=function(z){p=z;e.syncSubsRect();e.firePropertyChangedEvent(k,y.KEY_HEAD_PATTERN)};this.getHeadPattern=function(){return p};this.getHeadHeight=function(){switch(p){case y.HEAD_PATTERN_BAR:return 50;case y.HEAD_PATTERN_BARE:return 24;default:return 0}};this.setSlideshowEnabled=function(z){x=z;e.firePropertyChangedEvent(k,
y.KEY_SLIDESHOW)};this.isSlideshowEnabled=function(){return x};this.isTopLevelSlideshow=function(){if(x){for(var z=k;z.getParent();)if(z=z.getParent(),z instanceof y&&z.isSlideshowEnabled())return!1;return!0}return!1};this.isAllDescendentSlideshowRuntimePrepared=function(){var z=!0;k.traversalDescendents(function(E){var L=!1;E instanceof M&&E.getParent().isSlideshowEnabled()&&(z=z&&E.getDurationMode().isReadyToPlay(),!z&&(L=!0));return L});return z};this.protectedToJsonObject=function(z){z.position=
l;z.pattern=p;z.slideshow=x;e.fontSizeEnhancedToJsonObject(z);e.containerToJsonObject(z)};this.protectedFromJsonObject=function(z){l=z.position;p=z.pattern;x=z.slideshow;e.fontSizeEnhancedFromJsonObject(z);e.containerFromJsonObject(z);for(z=0;z<k.getWidgetCount();z++)k.getWidget(z).setVisible(0==z)}}function M(){Da.call(this);lb.call(this);la.call(this);var k=this,e=this.protectedMethod,l,p=new nb;this.getSuperType=function(){return g.WidgetSuperType_FilterSimilary|g.WidgetSuperType_ContainerWithBackground};
this.getWidgetTypeName=function(){return g.WidgetType_OneTabbed};this.isMovable=function(){return!1};this.isCanBeContained=function(z,E){if(z instanceof y)return!0;E&&E.push(Mb.get("widgetOneTabbedCanBeContainedPrompt","\u9875\u7b7e\u53ea\u80fd\u51fa\u73b0\u5728\u9875\u7b7e\u63a7\u4ef6\u4e2d\u3002"));return!1};this.getSourceDataType=function(){return ac.DT_STRING};this.setAffectedTargets=function(z){throw Error("Unsupported");};this.getAffectedTargets=function(){var z=null;p.getType()==ob.TYPE_ByData&&
(z=(z=p.getAffectedTargets())&&z.getItemCount()?z:null);return z};this.setHeadText=function(z){l=z;e.firePropertyChangedEvent(k,M.KEY_HEAD_TEXT)};this.getHeadText=function(){return l};this.setDurationMode=function(z){p.removeDirtyListener(x);p=z;p.addDirtyListener(x);e.firePropertyChangedEvent(k,M.KEY_DURATION_MODE)};this.getDurationMode=function(){return p};var x=function(){e.firePropertyChangedEvent(k,M.KEY_DURATION_MODE)};this.protectedToJsonObject=function(z){e.containerToJsonObject(z);e.backgroundToJsonObject(z);
z.headText=l;var E={};p.toJsonObject(E);z.durationMode=E};this.protectedFromJsonObject=function(z){e.containerFromJsonObject(z);e.backgroundFromJsonObject(z);l=z.headText;if(z=z.durationMode){var E=ob.createInstance(z.type);E.fromJsonObject(z);p.removeDirtyListener(x);p=E;p.addDirtyListener(x)}}}function oa(){var k=this,e,l,p=!1,x=!1,z,E,L;this.getFontName=function(){return e};this.setFontName=function(R){e=R};this.getFontSize=function(){return l};this.setFontSize=function(R){l=R};this.isBold=function(){return p};
this.setBold=function(R){p=R};this.isItalic=function(){return x};this.setItalic=function(R){x=R};this.getColor=function(){return z};this.setColor=function(R){z=R};this.getBackground=function(){return E};this.setBackground=function(R){E=R};this.getAlign=function(){return L};this.setAlign=function(R){L=R};this.isEquals=function(R){return R&&e==R.getFontName()&&l==R.getFontSize()&&p==R.isBold()&&x==R.isItalic()&&z==R.getColor()&&E==R.getBackground()&&L==R.getAlign()};this.copy=function(){var R=new oa;
R.setFontName(k.getFontName());R.setFontSize(k.getFontSize());R.setBold(k.isBold());R.setItalic(k.isItalic());R.setColor(k.getColor());R.setBackground(k.getBackground());R.setAlign(k.getAlign());return R};this.toJsonObject=function(){var R={};R.fontName=e;R.fontSize=l;p&&(R.bold=!0);x&&(R.italic=!0);R.color=z;R.background=E;R.align=L;return R};this.fromJsonObject=function(R){e=R.fontName;l=R.fontSize;p=R.bold?!0:!1;x=R.italic?!0:!1;z=R.color;E=R.background;L=R.align}}function H(){var k=this,e;this.getType=
function(){throw Error("Override");};this.hookPropertyChangedListener=function(l){e=l};this.toJsonObject=function(){var l={};l.type=k.getType();k.protectedToJsonObject(l);return l};this.protectedToJsonObject=function(l){};this.fromJsonObject=function(l){k.protectedFromJsonObject(l)};this.protectedFromJsonObject=function(l){};this.protectedMethod={firePropertyChangedEvent:function(){e&&e()}}}function Q(){H.call(this);this.getType=function(){return H.TYPE_SIMPLE}}function T(){H.call(this);var k=this.protectedMethod,
e=Cc.create();this.getType=function(){return H.TYPE_MODEL};this.getCardLook=function(){return e};this.setCardLook=function(l){e=l;k.firePropertyChangedEvent()};this.protectedToJsonObject=function(l){l.cardLook=e.toJsonObject()};this.protectedFromJsonObject=function(l){e.fromJsonObject(l.cardLook)}}function U(){H.call(this);var k=this.protectedMethod,e,l=[0,0,0,0],p,x;this.getType=function(){return H.TYPE_IMAGE};this.getImage=function(){return e};this.getFixedEdges=function(){return l};this.setDefinition=
function(E,L){x=p=null;e=E;l=L;k.firePropertyChangedEvent()};this.loadImage=function(E){x?x.push(E):p?E(p):e?(!x&&(x=[]),x.push(E),E=e.getReferenceCustomMap(),tc.getPictureLoader()(E,function(L,R,ka){var xa=new Image;xa.onload=function(La){p=xa;z(p)};xa.src=L},function(L){window.console&&window.console.error("Load image error: "+L);z(null)})):E(null)};var z=function(E){for(var L=0;L<x.length;L++)(0,x[L])(E);x=null};this.protectedToJsonObject=function(E){e&&(E.image=e.toJsonObject(),E.left=l[0],E.right=
l[1],E.top=l[2],E.bottom=l[3])};this.protectedFromJsonObject=function(E){e=x=p=null;l=[0,0,0,0];var L=E.image;L&&(e=N.createPeer(),e.fromJsonObject(L),l[0]=E.left,l[1]=E.right,l[2]=E.top,l[3]=E.bottom)}}function Y(){var k=this;this.getType=function(){throw Error("Override");};this.toShortDisplay=function(e){throw Error("Override");};this.isValid=function(){throw Error("Override");};this.isConfirmedToGetPreparedValue=function(e){return!0};this.isPreparedValueRelatedToWidget=function(e){return!1};this.getPreparedValue=
function(e,l,p,x){throw Error("Override");};this.getPreparedValuePeer=function(e,l,p){throw Error("Override");};this.toJsonObject=function(e){e.type=k.getType();k.protectedToJsonObject(e)};this.fromJsonObject=function(e){k.protectedFromJsonObject(e)};this.protectedToJsonObject=function(e){throw Error("Override");};this.protectedFromJsonObject=function(e){throw Error("Override");}}function ja(){Y.call(this);var k=this,e,l,p,x,z=!0;this.getType=function(){return Y.TYPE_VisualWidget};this.setSourceWidgetName=
function(L){e=L};this.getSourceWidgetName=function(){return e};this.setMetaFieldFullName=function(L){l=L};this.getMetaFieldFullName=function(){return l};this.setDisplayMetaFieldFullName=function(L){p=L};this.getDisplayMetaFieldFullName=function(){return p};this.setOrderByMetaFieldFullName=function(L){x=L};this.getOrderByMetaFieldFullName=function(){return x};this.setOrderByAsc=function(L){z=L};this.isOrderByAsc=function(){return z};this.toShortDisplay=function(L){return k.isValid()?(L=L.searchWidgetByName(e))?
Mb.get("displayFilterSourceFromRef","\u6765\u81ea\u201c#1\u201d").replace("#1",L.getDisplayName()):Mb.get("displayFilterSourceNotExist","\u4e0d\u5b58\u5728\u201c#1\u201d").replace("#1",e):Mb.get("displayFilterSourceIncomplete","\u8bbe\u7f6e\u4e0d\u5b8c\u6574")};this.isValid=function(){return e&&l};this.isConfirmedToGetPreparedValue=function(L){return(L=L.getTopPage().searchWidgetByName(e))?L.getExecutingTag()?!0:!1:!1};this.isPreparedValueRelatedToWidget=function(L){return e==L};this.getPreparedValue=
function(L,R,ka,xa){var La=L.isLightWeight();L=L.getTopPage().searchWidgetByName(e);E(L,R,La,ka,xa)};this.getPreparedValuePeer=function(L,R,ka){L=L.getTopPage().searchWidgetByName(e);E(L,null,!1,R,ka)};var E=function(L,R,ka,xa,La){L?(L=L.getExecutingTag(),xa=xa(function(Wa){var ba=[];Wa=Wa.values;for(var K=0;K<Wa.length;K++){var v=Wa[K],F=new Ga;F.setValue(v.value);F.setText(v.text);ba.push(F)}La(ba)},function(Wa,ba){console&&console.log("errorCode:"+Wa+", "+ba);902002==Wa?(Wa=new Ga,Wa.setValue(null),
Wa.setText(Mb.get("tooManyItems","\u8d85\u8fc71000\u9879\uff0c\u5efa\u8bae\u4f7f\u7528\u5f39\u7a97\u9009\u62e9\u5668\u4ee3\u66ff\u3002")),La([Wa])):La(null);return!0}),xa.setShowBlocking(!1),xa.getFilterPreparedValue(L,"Discrete",l,p,x,z,R,ka)):La(null)};this.protectedToJsonObject=function(L){L.sourceWidgetName=e;L.metaFieldFullName=l;L.displayMetaFieldFullName=p;L.orderByMetaFieldFullName=x;L.asc=z};this.protectedFromJsonObject=function(L){e=L.sourceWidgetName;l=L.metaFieldFullName;p=L.displayMetaFieldFullName;
x=L.orderByMetaFieldFullName;z=L.asc}}function qa(){Y.call(this);var k=this,e=[];this.getType=function(){return Y.TYPE_CustomList};this.addItem=function(p,x){e.push(l(p,x))};var l=function(p,x){var z=new Ga;z.setValue(p);z.setText(x);return z};this.insertItem=function(p,x,z){e.splice(p,0,l(x,z))};this.deleteItem=function(p){e.splice(p,1)};this.getItemsCount=function(){return e.length};this.getItemValue=function(p){return(p=e[p])?p.getValue():null};this.getItemText=function(p){return(p=e[p])?p.getText():
null};this.toShortDisplay=function(p){return k.isValid()?Mb.get("displayFilterSourceFromCustom","\u5171#1\u9879").replace("#1",e.length):Mb.get("displayFilterSourceIncomplete","\u8bbe\u7f6e\u4e0d\u5b8c\u6574")};this.isValid=function(){return 0<e.length};this.getPreparedValue=function(p,x,z,E){p=e.slice(0);E(p)};this.getPreparedValuePeer=function(p,x,z){p=e.slice(0);z(p)};this.protectedToJsonObject=function(p){for(var x=[],z=0;z<e.length;z++){var E=e[z],L={};L.value=E.getValue();L.text=E.getText();
x.push(L)}p.items=x};this.protectedFromJsonObject=function(p){p=p.items;for(var x=0;x<p.length;x++){var z=p[x],E=new Ga;E.setValue(z.value);E.setText(z.text);e.push(E)}}}function Ga(){var k,e;this.setValue=function(l){k=l};this.getValue=function(){return k};this.setText=function(l){e=l};this.getText=function(){return e};this.getDisplayText=function(){var l=e;void 0!==l&&null!==l||(l=k);return l}}function za(){var k=this;this.getType=function(){throw Error("Override");};this.toShortDisplay=function(){throw Error("Override");
};this.isSingleSelectableFitting=function(){return!1};this.getItems=function(e,l,p){throw Error("Override");};this.toJsonObject=function(e){e.type=k.getType();k.protectedToJsonObject(e)};this.fromJsonObject=function(e){k.protectedFromJsonObject(e)};this.protectedToJsonObject=function(e){throw Error("Override");};this.protectedFromJsonObject=function(e){throw Error("Override");}}function ab(){za.call(this);var k=0;this.getType=function(){return za.TYPE_ByIndex};this.toShortDisplay=function(){return Mb.get("displayDefaultSelectedByIndex",
"\u7b2c\u4e00\u9879")};this.isSingleSelectableFitting=function(){return!0};this.getItems=function(e,l,p){l=0<=k&&k<e.length?k:0;var x=[];0<e.length&&x.push(e[l]);p(x)};this.protectedToJsonObject=function(e){e.index=k};this.protectedFromJsonObject=function(e){k=e.index}}function Gb(){za.call(this);var k=null;this.getType=function(){return za.TYPE_ByAppointed};this.toShortDisplay=function(){if(k){if(1==k.length){var e=k[0];return e?e:Mb.get("displayDefaultSelectedByAppointedNull","\uff08\u7a7a\uff09")}return Mb.get("displayDefaultSelectedByAppointedSome",
"\u5df2\u6307\u5b9a#1\u9879").replace("#1",k.length)}return Mb.get("displayDefaultSelectedByAppointedAll","\u5168\u90e8")};this.isSingleSelectableFitting=function(){return k&&1==k.length};this.getItems=function(e,l,p){var x=null;if(k){for(var z={},E=0;E<k.length;E++){var L=k[E];!L&&(L="");z[L]=!0}x=[];for(E=0;E<e.length;E++){var R=e[E];L=R.getValue();!L&&(L="");if(z[L]&&(x.push(R),!l))break}}p(x)};this.setAppointedValue=function(e){k=e};this.protectedToJsonObject=function(e){e.appointeds=k};this.protectedFromJsonObject=
function(e){k=(e=e.appointeds)?e:null}}function Ob(){var k=[];this.addItem=function(e){k.push(e)};this.getItemCount=function(){return k.length};this.getItem=function(e){return k[e]};this.getTarget=function(e){for(var l=0;l<k.length;l++){var p=k[l];if(p.isAffectingInsideDashboard()&&e==p.getTargetWidgetName())return p}return null};this.reverse=function(e,l){for(var p=0;p<k.length;p++){var x=k[p];if(x.isAffectingInsideDashboard()&&x.isSettingComplete()){var z=x.getTargetWidgetName(),E=l[z];E||(E=new mc,
l[z]=E);E.put(e,x)}}};this.checkDuplicated=function(){for(var e={},l=0;l<k.length;l++){var p=k[l];if(p.isAffectingInsideDashboard()){p=p.getTargetWidgetName();if(e[p])return p;e[p]=!0}}return null};this.toJsonObject=function(e){for(var l=[],p=0;p<k.length;p++){var x={},z=k[p];z.toJsonObject(x);switch(z.getType()){case g.AffectedType_BindField:x.type="binding";break;case g.AffectedType_Param:x.type="param";break;case g.AffectedType_Tab:x.type="tab";break;case g.AffectedType_Hotlink:x.type="hotlink";
break;default:throw Error("Modify here");}l.push(x)}e.items=l};this.fromJsonObject=function(e){k=[];if(e=e.items)for(var l=0;l<e.length;l++){var p=e[l];switch(p.type){case "binding":var x=new hc;break;case "param":x=new fc;break;case "tab":x=new pc;break;case "hotlink":x=new oc;break;default:throw Error("Modify here");}x.fromJsonObject(p);k.push(x)}}}function Zb(){this.getType=function(){throw Error("Implement");};this.isAffectingInsideDashboard=function(){return!1};this.isSettingComplete=function(){throw Error("Implement");
};this.toJsonObject=function(k){throw Error("Implement");};this.fromJsonObject=function(k){throw Error("Implement");}}function Sb(){Zb.call(this);var k=this,e;this.setTargetWidgetName=function(l){e=l};this.getTargetWidgetName=function(){return e};this.isAffectingInsideDashboard=function(){return!0};this.getUsableParamName=function(){throw Error("Implement");};this.isSettingComplete=function(){return e&&k.protectedIsComplete()};this.protectedIsComplete=function(){throw Error("Implement");};this.toJsonObject=
function(l){l.widget=e;k.protectedToJsonObject(l)};this.protectedToJsonObject=function(l){throw Error("Implement");};this.fromJsonObject=function(l){e=l.widget;k.protectedFromJsonObject(l)};this.protectedFromJsonObject=function(l){throw Error("Implement");}}function hc(){Sb.call(this);var k;this.setMetaFieldFullName=function(e){k=e};this.getMetaFieldFullName=function(){return k};this.getType=function(){return g.AffectedType_BindField};this.protectedIsComplete=function(){return k?!0:!1};this.getUsableParamName=
function(){return k};this.protectedToJsonObject=function(e){e.metaField=k};this.protectedFromJsonObject=function(e){k=e.metaField}}function fc(){Sb.call(this);var k;this.setParamName=function(e){k=e};this.getParamName=function(){return k};this.getType=function(){return g.AffectedType_Param};this.protectedIsComplete=function(){return k?!0:!1};this.getUsableParamName=function(){return k};this.protectedToJsonObject=function(e){e.param=k};this.protectedFromJsonObject=function(e){k=e.param}}function pc(){Sb.call(this);
var k=0;this.setTabIndex=function(e){k=e};this.getTabIndex=function(){return k};this.getType=function(){return g.AffectedType_Tab};this.protectedIsComplete=function(){return!0};this.getUsableParamName=function(){return"tab"};this.protectedToJsonObject=function(e){e.tabIndex=k};this.protectedFromJsonObject=function(e){k=e.tabIndex}}function oc(){Zb.call(this);var k,e,l;this.setMode=function(p){k=p};this.getMode=function(){return k};this.setUrl=function(p){e=p};this.getUrl=function(){return e};this.setUsableUrl=
function(p){l=p};this.getUsableUrl=function(){return l};this.getType=function(){return g.AffectedType_Hotlink};this.isSettingComplete=function(){return e?!0:!1};this.toJsonObject=function(p){p.mode=k;p.url=e};this.fromJsonObject=function(p){k=p.mode;e=p.url}}function mc(){var k={};this.put=function(e,l){k[e]=l};this.getAllParamName=function(){var e=[],l;for(l in k)e.push(k[l].getUsableParamName());return e};this.getAllParamAttr=function(){var e=[],l;for(l in k)e.push(k[l].getType()==g.AffectedType_BindField);
return e}}function ic(){var k=[],e=[],l={},p=!1;this.repickParams=function(L){var R=L?L.getAllParamName():[];p=!1;for(var ka=0;ka<k.length;ka++){for(var xa=k[ka],La=!1,Wa=0;Wa<R.length;Wa++)if(xa==R[Wa]){La=!0;break}if(!La){p=!0;break}}k=R;e=L?L.getAllParamAttr():[];L={};for(R=0;R<k.length;R++)ka=k[R],xa=l[ka],void 0!==xa&&(L[ka]=xa);l=L};this.checkAffectedChainBroken=function(){var L=p;p=!1;return L};this.putParamValue=function(L,R,ka){if(!ka||ka instanceof Array&&0==ka.length)return R=void 0!==
l[L],delete l[L],R;var xa=l[L];xa=xa?JSON.stringify(E(xa.dataType,xa.value)):null;var La=JSON.stringify(E(R,ka)),Wa={};Wa.dataType=R;Wa.value=ka;l[L]=Wa;return xa!=La};this.isAllParamsAttend=function(){for(var L=0;L<k.length;L++)if(void 0===l[k[L]])return!1;return!0};var x=function(L,R){for(var ka={},xa=0;xa<k.length;xa++){var La=k[xa];if(!ka[La]){ka[La]=!0;var Wa=l[La];if(Wa){var ba=Wa.value;Wa=Wa.dataType;if(!R)if(ba instanceof Ga&&ba.getValue()==Y.ITEM_ALL)continue;else if(ba instanceof Array&&
1==ba.length&&ba[0].getValue()==Y.ITEM_ALL)continue;L(La,ba,e[xa],Wa)}}}},z=function(L){if(L instanceof Ga)var R=[L.getValue()];else if(L instanceof Array){R=[];for(var ka=0;ka<L.length;ka++)R.push(L[ka].getValue())}else throw Error("Unsupport");return R},E=function(L,R){if(L==ac.DT_STRING)L=z(R);else if(L==ac.DT_DATE)L=[JSON.stringify(R.getJsonDateRange())];else throw Error("Unsupport");return L};this.createParamValueSearcherApi=function(){var L={};x(function(ka,xa,La,Wa){if(xa instanceof Ga)var ba=
xa.getText();else if(xa instanceof Array){La=[];for(Wa=0;Wa<xa.length;Wa++)La.push(xa[Wa].getText());ba=La.join(" ")}L[ka]=ba},!0);var R=!1;x(function(ka,xa,La,Wa){R=!0});return{searchDisplayText:function(ka){return L[ka]},isAnyOneExceptedItemAll:function(){return R}}};this.createAdditionalFilterApi=function(){var L=function(){var xa=null,La=null;x(function(Wa,ba,K,v){xa||(La=[],xa={},xa.items=La);if(K||v==ac.DT_STRING)ba=E(v,ba),K=R(K,v,Wa,ba),La.push(K);else if(v==ac.DT_DATE)if(Ob.isDoubleParamName(Wa)){Wa=
Ob.decodeDoubleParamName(Wa);var F=Wa[0];Wa=Wa[1];if(F){var O=[ba.getParamScopeStart()];F=R(K,v,F,O);La.push(F)}Wa&&(ba=[ba.getParamScopeEnd()],K=R(K,v,Wa,ba),La.push(K))}else ba=[ba.getParamSingleValue()],K=R(K,v,Wa,ba),La.push(K)});return xa},R=function(xa,La,Wa,ba){var K={};K.key=Wa;K.isMetaFieldBound=xa;K.selectedValue=ba;K.valueDataType=La;return K},ka={};ka.toExecutableJsonObject=L;ka.toMetaFieldNames=function(){var xa=[];x(function(La,Wa,ba,K){ba&&xa.push(La)});return xa};ka.toDisplayJsonObject=
function(){var xa=L();return xa?xa.items:null};return ka};this.createExternalParamsApi=function(){return{toJsonObject:function(){var L={};x(function(R,ka,xa,La){if(!xa)if(La==ac.DT_STRING)L[R]=z(ka);else if(La==ac.DT_DATE)Ob.isDoubleParamName(R)?(xa=Ob.decodeDoubleParamName(R),R=xa[0],xa=xa[1],R&&(L[R]=[ka.getParamScopeStart()]),xa&&(L[xa]=[ka.getParamScopeEnd()])):L[R]=[ka.getParamSingleValue()];else throw Error("Unsupport");});return L},toUrlParams:function(){var L="";x(function(R,ka,xa,La){if(!xa){if(ka instanceof
Ga)ka=ka.getValue();else if(ka instanceof Array&&0<ka.length)ka=ka[0].getValue();else return;0<L.length&&(L+="&");L+=R+"="+encodeURIComponent(ka)}});return L}}}}function fb(){var k=[];this.setFragments=function(e){k=e};this.getFragmentCount=function(){return k.length};this.getFragment=function(e){return k[e]};this.toJsonObject=function(e){for(var l=[],p=0;p<k.length;p++){var x={};k[p].toJsonObject(x);l.push(x)}e.fragments=l};this.fromJsonObject=function(e){k=[];e=e.fragments;for(var l=0;l<e.length;l++){var p=
e[l],x=new fb.Fragment;x.fromJsonObject(p);k.push(x)}}}function ob(){var k=this,e=new vb;this.getType=function(){throw Error("Implement");};this.isReadyToPlay=function(){return!0};this.playStart=function(l,p){throw Error("Implement");};this.playStop=function(){throw Error("Implement");};this.getPlayingData=function(){return null};this.resetPlayingStatus=function(){};this.addDirtyListener=function(l){e.addListener(l)};this.removeDirtyListener=function(l){e.removeListener(l)};this.toJsonObject=function(l){l.type=
k.getType();k.protectedToJsonObject(l)};this.protectedToJsonObject=function(l){throw Error("Implement");};this.fromJsonObject=function(l){k.protectedFromJsonObject(l)};this.protectedFromJsonObject=function(l){throw Error("Implement");};this.protectedMethod={fireDirtyEvent:function(){e.fireEvent(function(l){l()})}}}function nb(){ob.call(this);var k=this.protectedMethod,e=10,l;this.getType=function(){return ob.TYPE_ByFixedTime};this.playStart=function(p,x){p()||(l=setTimeout(function(){x(!0)},1E3*e));
return!1};this.playStop=function(){l&&clearTimeout(l)};this.getDuration=function(){return e};this.setDuration=function(p){e=p;k.fireDirtyEvent()};this.protectedToJsonObject=function(p){p.duration=e};this.protectedFromJsonObject=function(p){e=p.duration}}function Jb(){ob.call(this);var k=this.protectedMethod,e,l,p=10,x,z=-1,E,L={},R,ka,xa;this.getType=function(){return ob.TYPE_ByData};this.setFilterSource=function(ba){e=ba;k.fireDirtyEvent()};this.getFilterSource=function(){return e};this.setAffectedTargets=
function(ba){l=ba;k.fireDirtyEvent()};this.getAffectedTargets=function(){return l};this.setEachDuration=function(ba){p=ba;k.fireDirtyEvent()};this.getEachDuration=function(){return p};this.createWidgetPeer=function(){return new function(){this.getFilterSource=function(){return e};this.isIncludeItemAllSupported=function(){return!1}}};this.setRuntimeData=function(ba){z=(x=ba)&&0<x.length?0:-1;L={};if(l)for(ba=0;ba<l.getItemCount();ba++){var K=l.getItem(ba);!K.isSettingComplete()||K.getType()!=g.AffectedType_BindField&&
K.getType()!=g.AffectedType_Param||(L[K.getTargetWidgetName()]=null)}};this.isReadyToPlay=function(){return void 0!==x};this.getPlayingData=function(){return x[z]};this.resetPlayingStatus=function(){-1!=z&&(z=0)};this.playStart=function(ba,K){if(-1==z)return ba()||(xa=setTimeout(function(){K(!0)},1E3*p)),!1;La();R=ba;ka=K;return!0};this.playStop=function(){xa&&clearTimeout(xa)};var La=function(){E=""+Math.random();for(var ba in L)L[ba]=null},Wa=function(){for(var ba in L)if(!L[ba])return!1;return!0};
this.getPlayingRoundId=function(){return E};this.untilAllAffectedTargetsExecuted=function(ba,K,v){if(E==ba&&(L[K]=v,Wa()&&(ba=R&&R(),R=null,!ba))){for(var F in L)(0,L[F])();xa=setTimeout(function(){var O=z==x.length-1;z++;z>=x.length&&(z=0);ka&&ka(O);ka=null},1E3*p)}};this.protectedToJsonObject=function(ba){if(e){var K={};e.toJsonObject(K);ba.filterSource=K}l&&(K={},l.toJsonObject(K),ba.affectedTargets=K);ba.eachDuration=p};this.protectedFromJsonObject=function(ba){var K=ba.filterSource;K&&(e=Y.createInstance(K.type),
e.fromJsonObject(K));if(K=ba.affectedTargets)l=new Ob,l.fromJsonObject(K);p=ba.eachDuration}}function Nb(k){var e=k?k:{},l;this.getItems=function(p){return e[p]};this.pickItems=function(p,x){!x&&(x={});var z=e[p];if(z)for(var E=0;E<z.length;E++){var L=z[E];x[L.getKey()]=L.getValue()}if(l&&(p=l[p]))for(var R in p)x[R]=p[R];return x};this.copyToEdit=function(){var p={},x;for(x in e){for(var z=e[x],E=[],L=0;L<z.length;L++){var R=z[L];R=new S(R.getKey(),R.getValue());E.push(R)}p[x]=E}return new Nb(p)};
this.setPriorPreview=function(p){l=p};this.toJsonObject=function(){var p={};for(ka in e){for(var x=e[ka],z=[],E=0;E<x.length;E++){var L=x[E],R={};R.key=L.getKey();R.value=L.getValue();z.push(R)}p[ka]=z}var ka={};ka.groups=p;return ka};this.fromJsonObject=function(p){p=p.groups;e={};for(var x in p){for(var z=p[x],E=[],L=0;L<z.length;L++){var R=z[L];R=new Qb(R.key,R.value);E.push(R)}e[x]=E}}}function Qb(k,e){this.getKey=function(){return k};this.getValue=function(){return e}}function S(k,e){Qb.call(this,
k);var l=e;this.getValue=function(){return l};this.setValue=function(p){l=p}}"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 Ha=com.kingdee.bos.qing.dsb.model;Ha.DashboardModel=
g;Ha.WidgetUnknown=function(){ub.call(this);var k;this.getUnknownType=function(){return k};this.getWidgetTypeName=function(){return g.WidgetType_Unknown};this.protectedToJsonObject=function(e){e="Can not save due to unknown type '#1' exist.".replace("#1",k);var l=new gc;l.setOptionType(gc.OPTION_OK);l.setMessage(e);l.showDialog();throw Error(e);};this.protectedFromJsonObject=function(e){k=e.widgetType}};Ha.WidgetPageTitleBar=Ra;Ha.AbstractCardSimilary=Fb;Ha.WidgetSquare=function(){ub.call(this);Fb.call(this);
jb.call(this);la.call(this);pb.call(this);hb.call(this);W.call(this);sa.call(this);eb.call(this);var k=this,e=this.protectedMethod;this.getSuperType=function(){return g.WidgetSuperType_BuiltinVisual|g.WidgetSuperType_CardSimilary|g.WidgetSuperType_AffectedTarget|g.WidgetSuperType_FilterSimilary|g.WidgetSuperType_OutputParamProvider|g.WidgetSuperType_FullscreenSupported|g.WidgetSuperType_Referable};this.getWidgetTypeName=function(){return g.WidgetType_Square};this.getSourceDataType=function(){return ac.DT_STRING};
this.copyReference=function(l){tc.getWidgetSourceSelector().copySquare(k.getReferenceCustomMap(),function(p){k.setReferenceCustomMap(p);l()})};this.protectedToJsonObject=function(l){e.autoRefreshableToJsonObject(l);e.referableToJsonObject(l);e.cardSimilaryToJsonObject(l);e.filterSimilaryToJsonObject(l)};this.protectedFromJsonObject=function(l){e.autoRefreshableFromJsonObject(l);e.referableFromJsonObject(l);e.cardSimilaryFromJsonObject(l);e.filterSimilaryFromJsonObject(l)}};Ha.WidgetLonger=function(){ub.call(this);
Fb.call(this);jb.call(this);pb.call(this);hb.call(this);W.call(this);sa.call(this);eb.call(this);var k=this,e=this.protectedMethod;this.getSuperType=function(){return g.WidgetSuperType_BuiltinVisual|g.WidgetSuperType_CardSimilary|g.WidgetSuperType_AffectedTarget|g.WidgetSuperType_OutputParamProvider|g.WidgetSuperType_FullscreenSupported|g.WidgetSuperType_Referable};this.getWidgetTypeName=function(){return g.WidgetType_Longer};this.copyReference=function(l){tc.getWidgetSourceSelector().copyLonger(k.getReferenceCustomMap(),
function(p){k.setReferenceCustomMap(p);l()})};this.protectedToJsonObject=function(l){e.autoRefreshableToJsonObject(l);e.referableToJsonObject(l);e.cardSimilaryToJsonObject(l)};this.protectedFromJsonObject=function(l){e.autoRefreshableFromJsonObject(l);e.referableFromJsonObject(l);e.cardSimilaryFromJsonObject(l)}};Ha.WidgetQingReport=function(){ub.call(this);jb.call(this);pb.call(this);hb.call(this);var k=this,e=this.protectedMethod,l;this.getSuperType=function(){return g.WidgetSuperType_AffectedTarget|
g.WidgetSuperType_Referable};this.getWidgetTypeName=function(){return g.WidgetType_QingReport};this.copyReference=function(p){tc.getWidgetSourceSelector().copyQingReport(k.getReferenceCustomMap(),function(x){k.setReferenceCustomMap(x);p()})};this.setCardTitle=function(p){l=p;e.firePropertyChangedEvent(k,g.KEY_CARD_TITLE)};this.getCardTitle=function(){return l};this.getDashboardSkinName=function(){return k.getTopPage().getSkin()};this.getExecutableAffectedParams=function(){var p=k.getExecutingInputParams();
return p?p.createExternalParamsApi().toJsonObject():{}};this.getAffectedParamType=function(){return g.AffectedType_Param};this.protectedToJsonObject=function(p){e.autoRefreshableToJsonObject(p);e.referableToJsonObject(p);p.cardTitle=l};this.protectedFromJsonObject=function(p){e.autoRefreshableFromJsonObject(p);e.referableFromJsonObject(p);l=p.cardTitle}};Ha.WidgetExtReport=Pa;Ha.WidgetProgramableCard=function(){ub.call(this);pb.call(this);hb.call(this);var k=this,e=this.protectedMethod;this.getWidgetTypeName=
function(){return g.WidgetType_ProgramableCard};this.getDashboardSkinName=function(){return k.getTopPage().getSkin()};this.protectedToJsonObject=function(l){e.referableToJsonObject(l);e.autoRefreshableToJsonObject(l)};this.protectedFromJsonObject=function(l){e.referableFromJsonObject(l);e.autoRefreshableFromJsonObject(l)}};Ha.WidgetCosmicCustomCard=Ma;Ha.WidgetCloudhubSubscribes=function(){ub.call(this);var k;this.getWidgetTypeName=function(){return g.WidgetType_CloudhubSubscribes};this.setEncodedModel=
function(e){k=e};this.getEncodedModel=function(){return k};this.protectedToJsonObject=function(e){e.encodedModel=k};this.protectedFromJsonObject=function(e){k=e.encodedModel}};Ha.AbstractTextWidget=sb;Ha.WidgetLabel=bb;Ha.WidgetRich=aa;Ha.WidgetPicture=N;Ha.WidgetIframe=Fa;Ha.WidgetClock=ya;Ha.WidgetCombobox=function(){ub.call(this);Ya.call(this);la.call(this);Qa.call(this);jb.call(this);var k=this.protectedMethod;this.getSuperType=function(){return g.WidgetSuperType_DiscreteItemFilter|g.WidgetSuperType_FilterSimilary|
g.WidgetSuperType_AffectedTarget|g.WidgetSuperType_WithLabel};this.getWidgetTypeName=function(){return g.WidgetType_Combobox};this.getSourceDataType=function(){return ac.DT_STRING};this.getAffectedParamType=function(){return g.AffectedType_BindField};this.isIncludeItemAllSupported=function(){return!0};this.isMultiSelectable=function(){return!1};this.protectedToJsonObject=function(e){k.discreteItemFilterToJsonObject(e);k.filterSimilaryToJsonObject(e);k.inputCtrlWithLabelToJsonObject(e)};this.protectedFromJsonObject=
function(e){k.discreteItemFromJsonObject(e);k.filterSimilaryFromJsonObject(e);k.inputCtrlWithLabelFromJsonObject(e)}};Ha.WidgetButtonGroup=ma;Ha.WidgetF7=function(){ub.call(this);Ya.call(this);la.call(this);Qa.call(this);jb.call(this);var k=this.protectedMethod;this.getSuperType=function(){return g.WidgetSuperType_DiscreteItemFilter|g.WidgetSuperType_FilterSimilary|g.WidgetSuperType_AffectedTarget|g.WidgetSuperType_WithLabel};this.getWidgetTypeName=function(){return g.WidgetType_F7};this.getSourceDataType=
function(){return ac.DT_STRING};this.getAffectedParamType=function(){return g.AffectedType_BindField};this.isLightWeight=function(){return!1};this.protectedToJsonObject=function(e){k.discreteItemFilterToJsonObject(e);k.filterSimilaryToJsonObject(e);k.inputCtrlWithLabelToJsonObject(e)};this.protectedFromJsonObject=function(e){k.discreteItemFromJsonObject(e);k.filterSimilaryFromJsonObject(e);k.inputCtrlWithLabelFromJsonObject(e)}};Ha.AbstractCalendar=ua;Ha.WidgetCalendar=function(){ua.call(this);this.getWidgetTypeName=
function(){return g.WidgetType_Calendar};this.protectedCreateRelativeModel=function(){return new Tb}};Ha.WidgetCalendarYear=function(){ua.call(this);this.getWidgetTypeName=function(){return g.WidgetType_CalendarYear};this.protectedCreateRelativeModel=function(){return new ua.SimpleRelative}};Ha.WidgetCalendarQuarter=function(){ua.call(this);this.getWidgetTypeName=function(){return g.WidgetType_CalendarQuarter};this.protectedCreateRelativeModel=function(){return new ua.SimpleRelative}};Ha.WidgetCalendarMonth=
function(){ua.call(this);this.getWidgetTypeName=function(){return g.WidgetType_CalendarMonth};this.protectedCreateRelativeModel=function(){return new ua.SimpleRelative}};Ha.WidgetCalendarDay=function(){ua.call(this);this.getWidgetTypeName=function(){return g.WidgetType_CalendarDay};this.protectedCreateRelativeModel=function(){return new ua.SimpleRelative}};Ha.WidgetPanel=C;Ha.WidgetTabbedContainer=y;Ha.WidgetOneTabbed=M;Ha.AbstractFilterSource=Y;Ha.FilterSourceFromVisualWidget=ja;Ha.ValueTextItem=
Ga;Ha.DateSelected=function(k,e,l){var p,x,z;this.getJsonDateRange=function(){var E={};E.containNull=l;E.dateFrom=k;E.dateTo=e;var L={};L.dateRange=E;return L};this.setParamValue=function(E,L,R){p=E;x=L;z=R};this.getParamSingleValue=function(){return p};this.getParamScopeStart=function(){return x};this.getParamScopeEnd=function(){return z}};Ha.AbstractDefaultSelected=za;Ha.AffectedTargets=Ob;Ha.PredefinedTextFragments=fb;Ha.AbstractDurationMode=ob;Ha.CosmeticModel=Nb;Ha.PreviewCardModel=function(){ub.call(this);
Fb.call(this);var k=this,e=this.protectedMethod,l,p;this.copyFromWidget=function(x){x=x.toJsonObject();k.fromJsonObject(x)};this.hookUsableCardBorderGetter=function(x){l=x};this.hookUsableCardTopBarCommonGetter=function(x){p=x};this.getUsableCardBorder=function(){return l()};this.getUsableCardTopBarCommon=function(){return p()};this.isBareSurface=function(){return!1};this.protectedFromJsonObject=function(x){e.cardSimilaryFromJsonObject(x)}};Ha.AbstractCardBorder=H;Ha.CardTopBarCommon=wb;var vb,Tb,
Mb,nc,gc,ac,tc,Cc;(function(){var k=com.kingdee.bos.qing.common;vb=k.EventListenerList;Tb=k.RelativePeriodModel;k=com.kingdee.bos.qing.framework.common;Mb=k.MultilanguageManager.createPackageAccessor(Ha);k=com.kingdee.bos.qing.common.rich;nc=k.Chapter;k=com.kingdee.bos.qing.ui.component;gc=k.MessageDialog;k=com.kingdee.bos.qing.core.model;ac=k.MetaField;k=com.kingdee.bos.qing.dsb;tc=k.IntegrationRegister;k=com.kingdee.bos.qing.dsb.look;Cc=k.CardLook})();var xc=new function(){var k,e,l;this.registerAll=
function(x){k=x};this.registerUnknown=function(x){l=x};var p=function(){var x=k;k=[];e={};for(var z=0;z<x.length;z++){var E=new x[z];if(E.isSupported()){var L=E.getTypeName();e[L]=E;L!=g.WidgetType_Page&&k.push(E)}}};this.getInstance=function(x){!e&&p();var z=e[x];z||(x!=g.WidgetType_Unknown&&window.console&&window.console.error("Unknown chart type: "+x),z=l);return z};this.getToolboxInstances=function(){!e&&p();return k.slice(0)}};Ha.WidgetTypeManager=xc;g.KEY_ADD_CHILD="addChild";g.KEY_REMOVE_CHILD=
"removeChild";g.KEY_MOVE_CHILD="moveChild";g.KEY_DISPLAY_NAME="displayName";g.KEY_RECT="rectangle";g.KEY_VISIBLE="visible";g.KEY_FULLSCREEN="fullscreen";g.KEY_FULLSCREEN_BY_ANCESTOR="fullscreenByAncestor";g.KEY_PAGE_SIZE="pageSize";g.KEY_PAGE_EXHIBITION_MODE="pageExhibitionMode";g.KEY_PAGE_SKIN="pageSkin";g.KEY_PAGE_UNIFIED_CARD="pageUnifiedCard";g.KEY_PAGE_WATERMARK="pageWatermark";g.KEY_PAGE_BACKGROUND="pageBackground";g.KEY_PAGE_MOBILE_LAYOUT_CONVERTER="pageMobileLayoutConverter";g.KEY_PAGE_MOBILE_SKIN_ACTIVE=
"pageMobileSkinActive";g.KEY_REF="reference";g.KEY_REFRESH_TIMING="refreshTiming";g.KEY_CARD_TITLE="cardTitle";g.KEY_CARD_SURFACE="cardSurface";g.KEY_FILTER_SOURCE="filterSource";g.KEY_FILTER_DEFAULT_SELECTED="filterDefaultSelected";g.KEY_AFFECTED_TARGETS="affectedTargets";g.KEY_FILTER_FRONT_LABEL="frontLabel";g.KEY_FILTER_FRONT_LABEL_POSITION="frontLabelPosition";g.KEY_FILTER_FRONT_LABEL_LENGTH="frontLabelLength";g.KEY_FONT_SIZE_ENHANCED="fontSizeEnhanced";g.KEY_DISCRETE_INCLUDED_ITEMALL="includedItemAll";
g.KEY_DISCRETE_MULTISELECTABLE="multiSelectable";g.KEY_STYLE="commonStyle";g.ExhibitionMode_Full="Full";g.ExhibitionMode_Fit="Fit";g.ExhibitionMode_HFull="HFull";g.ExhibitionMode_Idle="Idle";g.Skin_Custom="custom";g.Skin_White="white";g.Skin_DarkBlue="darkBlue";g.Skin_Gold="gold";g.Skin_Cyan="cyan";g.MobileLayoutConverter_ByPosition="ByPosition";g.MobileLayoutConverter_InOrder="InOrder";g.WidgetType_Unknown="Unknown";g.WidgetType_Page="Page";g.WidgetType_PageTitleBar="PageTitleBar";g.WidgetType_Square=
"Square";g.WidgetType_Longer="LongPainting";g.WidgetType_QingReport="QingReport";g.WidgetType_ExtReport="ExtReport";g.WidgetType_ProgramableCard="ProgramableCard";g.WidgetType_CosmicCustomCard="CosmicCustomCard";g.WidgetType_CloudhubSubscribes="CloudhubSubscribes";g.WidgetType_Label="Label";g.WidgetType_Rich="Rich";g.WidgetType_Picture="Picture";g.WidgetType_Iframe="Iframe";g.WidgetType_Clock="Clock";g.WidgetType_Combobox="Combobox";g.WidgetType_ButtonGroup="ButtonGroup";g.WidgetType_F7="F7";g.WidgetType_Calendar=
"Calendar";g.WidgetType_CalendarYear="CalendarYear";g.WidgetType_CalendarQuarter="CalendarQuarter";g.WidgetType_CalendarMonth="CalendarMonth";g.WidgetType_CalendarDay="CalendarDay";g.WidgetType_Panel="Panel";g.WidgetType_TabbedContainer="TabbedContainer";g.WidgetType_OneTabbed="OneTabbed";g.WidgetSuperType_CardSurfaceAbout=1;g.WidgetSuperType_CardSimilary=2|g.WidgetSuperType_CardSurfaceAbout;g.WidgetSuperType_FilterSimilary=4;g.WidgetSuperType_AffectedTarget=8;g.WidgetSuperType_BuiltinVisual=16;g.WidgetSuperType_CompositeContainer=
32;g.WidgetSuperType_WithLabel=64;g.WidgetSuperType_OutputParamProvider=128;g.WidgetSuperType_FullscreenSupported=256;g.WidgetSuperType_WithCommonStyle=512;g.WidgetSuperType_ContainerWithBackground=1024;g.WidgetSuperType_Referable=2048;g.WidgetSuperType_DiscreteItemFilter=4096;g.WidgetSuperType_Text=8192;g.WidgetSuperType_Calendar=16384;g.AffectedType_BindField=1;g.AffectedType_Param=2;g.AffectedType_Tab=4;g.AffectedType_Hotlink=8;wb.TitlePosition_Auto="Auto";wb.TitlePosition_MidOfIcon="MidOfIcon";
wb.TitlePosition_Offset="Offset";Fb.Surface_Unified=0;Fb.Surface_Bare=1;Fb.Surface_Custom=2;Ra.KEY_FROZEN="frozen";Ra.KEY_SURFACE="surface";Pa.KEY_TITLE="title";Pa.KEY_MODEL="encodedModel";Ma.KEY_MODEL="encodedModel";sb.parseRef=function(k){for(var e=[],l=[],p=0;p<k.length;){var x=k.indexOf("${",p);p=k.indexOf("}$",p);if(-1==p)p=k.length;else if(-1==x||p<x){if(0<l.length){x=l.pop();var z=p,E=k.substring(x[0]+2,z),L=E.indexOf(",");if(0<L){var R=E.substring(0,L);E=E.substring(L+1)}else R=E,E="";x[1]=
z+2;x[2]=$.trim(R);x[3]=E;e.push(x)}p+=2}else l.push([x,null,null]),p=x+2}return e};bb.KEY_CONTENT="labelContent";bb.KEY_WALKING="labelWalking";aa.KEY_CONTENT="richContent";N.createPeer=function(){var k=new N;k.setScale(null);k.setAlign(0);return k};N.KEY_SCALE="pictureScale";N.KEY_ALIGN="pictureAlign";N.SCALE_NON="original";N.SCALE_ADAPTIVE="adaptive";N.SCALE_FULL="full";N.SCALE_TILED="tiled";N.HALIGN_LEFT=1;N.HALIGN_CENTER=2;N.HALIGN_RIGHT=4;N.VALIGN_TOP=16;N.VALIGN_MIDDLE=32;N.VALIGN_BOTTOM=64;
Fa.KEY_URL="iframeUrl";ya.KEY_FORMAT="formatString";ma.askButtonHeight=function(k){return k>=ma.SIZE_MODE_LARGE?40:k>=ma.SIZE_MODE_MIDDLE?32:25};ma.KEY_LAYOUT_MODE="layoutMode";ma.KEY_CHARS_PER_ITEM="charsPerItem";ma.KEY_ITEMS_PER_ROW="itemsPerRow";ma.KEY_SIZE_MODE="sizeMode";ma.LAYOUT_MODE_HORIZONTAL="H";ma.LAYOUT_MODE_WRAP="W";ma.SIZE_MODE_SMALL=1;ma.SIZE_MODE_MIDDLE=3;ma.SIZE_MODE_LARGE=5;ua.KEY_DATE_INITIAL="dateInitialValue";ua.SimpleRelative=function(){var k=0;this.getOffset=function(){return k};
this.setOffset=function(e){k=e};this.toJsonObject=function(){var e={};k&&(e.offset=k);return e};this.fromJsonObject=function(e){k=(e=e.offset)?e:0}};C.KEY_FULLSCREEN_ALLOWED="fullScreenAllowed";C.FULLSCREEN_ALLOWED_NONE=0;C.FULLSCREEN_ALLOWED_ALONE=1;C.FULLSCREEN_ALLOWED_ALIVE=2;y.KEY_TABBED_SELECTED="tabbedSelected";y.KEY_HEAD_POSITION="tabbedHeadPosition";y.KEY_HEAD_PATTERN="tabbedHeadPattern";y.KEY_SWITCH_SUB="switchToSubTabbed";y.KEY_SLIDESHOW="slideshow";y.HEAD_TOP_LEFT="TL";y.HEAD_TOP_RIGHT=
"TR";y.HEAD_BOTTOM_LEFT="BL";y.HEAD_BOTTOM_RIGHT="BR";y.HEAD_PATTERN_HIDDEN="hidden";y.HEAD_PATTERN_BAR="bar";y.HEAD_PATTERN_BARE="bare";M.KEY_HEAD_TEXT="oneTabbedHeadText";M.KEY_DURATION_MODE="durationMode";H.createInstance=function(k){switch(k){case H.TYPE_SIMPLE:return new Q;case H.TYPE_MODEL:return new T;case H.TYPE_IMAGE:return new U;default:throw Error("Modify here");}};H.TYPE_SIMPLE="Simple";H.TYPE_MODEL="Model";H.TYPE_IMAGE="Image";Y.createInstance=function(k){switch(k){case Y.TYPE_VisualWidget:return new ja;
case Y.TYPE_CustomList:return new qa;default:throw Error("Modify here");}};Y.TYPE_VisualWidget="VisualWidget";Y.TYPE_CustomList="CustomList";Y.createItemAll=function(){var k=new Ga;k.setValue(Y.ITEM_ALL);k.setText(Mb.get("itemAll","\uff08\u5168\u90e8\uff09"));return k};Y.ITEM_ALL="com.kingdee.bos.qing.ALL";za.createInstance=function(k){switch(k){case za.TYPE_ByIndex:return new ab;case za.TYPE_ByAppointed:return new Gb;default:throw Error("Modify here");}};za.TYPE_ByIndex="ByIndex";za.TYPE_ByVariant=
"ByVariant";za.TYPE_ByAppointed="ByAppointed";Ob.createItem=function(k){for(var e=[hc,fc,pc,oc],l=0;l<e.length;l++){var p=new e[l];if(p.getType()==k)return p}throw Error("Unknown AffectedTargetItem.type: "+k);};Ob.encodeDoubleParamName=function(k,e){return k+","+e};Ob.isDoubleParamName=function(k){return 0<=k.indexOf(",")};Ob.decodeDoubleParamName=function(k){return k.split(",")};fb.Fragment=function(){var k=this,e,l,p;this.setName=function(x){e=x};this.getName=function(){return e};this.setDisplay=
function(x){l=x};this.getDisplay=function(){return l};this.setAffectedTargets=function(x){p=x};this.getAffectedTargets=function(){return p};this.copy=function(){var x={};k.toJsonObject(x);var z=new fb.Fragment;z.fromJsonObject(x);return z};this.toJsonObject=function(x){x.name=e;x.display=l;if(p){var z={};p.toJsonObject(z);x.affectedTargets=z}};this.fromJsonObject=function(x){e=x.name;l=x.display;if(x=x.affectedTargets)p=new Ob,p.fromJsonObject(x)}};ob.createInstance=function(k){switch(k){case ob.TYPE_ByFixedTime:return new nb;
case ob.TYPE_ByData:return new Jb;default:throw Error("Modify here");}};ob.TYPE_ByFixedTime="ByFixedTime";ob.TYPE_ByData="ByData";Nb.createEditableItem=function(k,e){return new S(k,e)}})();(function(){function g(){var a={};this.registerClass=function(b,c){a[b]=c};this.findClass=function(b){var c=a[b];if(!c)throw Error("WidgetCtrl not found: "+b);return c}}function ub(){var a=this,b=!1;this.setPreview=function(c){b=c};this.isPreview=function(){return b};this.isDesigntime=function(){return!1};this.isMobile=function(){return!1};this.createWidgetCtrl=function(c){var d=new (a.protectedGetRegister().findClass(c.getWidgetTypeName()));d.bindWidget(c);b&&d.appendSituation(Da.Situation_Runtime_Preview);
a.protectedInitWidgetCtrl(d);return d};this.protectedInitWidgetCtrl=function(c){throw Error("Implement");};this.protectedGetRegister=function(){throw Error("Implement");}}function Da(){var a,b=0;this.bindWidget=function(c){a=c};this.appendSituation=function(c){b|=c};this.getJqUi=function(){throw Error("Implement");};this.protectedMethod={getWidget:function(){return a},isDesigntime:function(){return(b&Da.Situation_Designtime)==Da.Situation_Designtime},isPreview:function(){return(b&Da.Situation_Runtime_Preview)==
Da.Situation_Runtime_Preview},isMobile:function(){return(b&Da.Situation_Runtime_Mobile)==Da.Situation_Runtime_Mobile}}}function ib(){this.getGroupName=function(){throw Error("Override");};this.getGroupDisplayName=function(){throw Error("Override");};this.isEquals=function(a){return _this.getGroupName()==a.getGroupName()}}function lb(){var a=this,b,c,d;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 c};this.getIconFileName=function(){return d};this.createWidgetModel=function(f){var h=a.getSuggestSize();f=a.protectedCreateWidgetModel(f);f.setSize(h[0],h[1]);f.setWidthLocked(f.isWidthLockedAlways(a));f.setHeightLocked(f.isHeightLockedAlways(a));return f};this.protectedCreateWidgetModel=function(f){throw Error("Override");};this.createWidgetUi=function(f){var h=a.protectedCreateWidgetUi();h.setModel(f);return h};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(f,h,n,G){return null};this.selectSource=function(f,h,n){n(!0)};this.createPropertyPanel=function(){throw Error("Override");};this.createOutlineMenu=function(f,h,n,G,B){return!1};this.protectedMethod={setTypeName:function(f){b=
f},setTypeDisplayName:function(f){c=f},setIconFileName:function(f){d=f}}}function Lb(){this.getToolboxGroup=function(){return yd};this.selectSource=function(a,b,c){(new gd).showDialog(a,b,function(d,f,h){if(d&&(b.isIncludeItemAllSupported()&&b.setIncludedItemAll(h),b.setFilterSource(f),h=b.getFilterSource(),h instanceof zd)){f=h.getSourceWidgetName();var n=h.getMetaFieldFullName();f&&n&&(h=ed.createItem(Z.AffectedType_BindField),h.setTargetWidgetName(f),h.setMetaFieldFullName(n),f=new ed,f.addItem(h),
b.setAffectedTargets(f))}c(d)})}}function wb(){lb.call(this);var a=this;this.getToolboxGroup=function(){return yd};this.getSuggestSize=function(){return[180,25]};this.isHeightLockedAlways=function(){return!0};this.selectSource=function(b,c,d){a.protectedCreateInitialDialog().showDialog(b,c,function(f,h,n,G,B){f&&c.setInitialValue(h,n,G,B);d(f)})};this.protectedCreateInitialDialog=function(){throw Error("Implement");}}function Fb(a,b){var c=Ta.dip(Ta.DESIGN);this.setStyleMap=function(n){c=n};this.createJqUi=
function(n,G,B){var w=$("<div>");w.addClass("dsb-pagearea-custom-operate");var t=$("<div>");t.data("my-model",a);t.text("T");t.appendTo(w);var q=28,m=0;d(t,q);a==B?h(t):f(t);Ja.layoutCtrl(t,-4,m,16,q);m=q-1;q=20;for(t=0;t<a.getWidgetCount();t++){var u=a.getWidget(t),r=$("<div>");r.data("my-model",u);r.text(t+1);d(r,q);u==B?h(r):f(r);r.appendTo(w);Ja.layoutCtrl(r,0,m,12,q);m+=q-1}Ja.layoutCtrl(w,n-12,G,12,m);w.on("click",function(P){P=$(P.target).data("my-model");b(P)});return w};var d=function(n,
G){n.css({cursor:"pointer","box-sizing":"border-box",border:"1px solid #ccc","border-color":c[Ta.Key_Design_ColorB],"border-right-width":"0px","text-align":"center","line-height":G-2+"px"})},f=function(n){n.css({color:c[Ta.Key_Design_ColorA],"background-color":c[Ta.Key_Design_ColorC]})},h=function(n){n.css({color:c[Ta.Key_Design_ColorA],"background-color":c[Ta.Key_Design_ColorB]})}}function la(){var a=this,b,c,d,f,h,n=!1;this.destroy=function(){a.protectedUnhookWidget(b);b.removePropertyChangedListener(G);
h=d=c=null;n=!0};this.protectedUnhookWidget=function(B){};this.getModel=function(){return b};this.setModel=function(B){b=B;b.addPropertyChangedListener(G);a.protectedHookWidget(b)};this.protectedHookWidget=function(B){};this.setCtxApi=function(B){h=B};this.createJqUi=function(B){f=B.isDesigntime();return a.protectedCreateJqUi(B)};this.protectedCreateJqUi=function(B){throw Error("Override");};this.inside=function(){};this.outside=function(){};this.payAttentionTo=function(B,w){};this.run=function(B){};
this.collectContextForPreview=function(){};this.applyPreviewContext=function(B){};this.setEditedListener=function(B){c=B};this.setCommunicationListener=function(B){d=B};var G=function(B,w){B==b&&(w==Z.KEY_RECT?setTimeout(a.protectedRepaint,0):a.protectedDoPropertyChanged(w))};this.protectedDoPropertyChanged=function(B){};this.protectedRepaint=function(){};this.protectedMethod={isDesigntime:function(){return f},setupDesigntimeRectangle:function(B){f&&Ta.decorateDesigntimeRectangle(B)},fireEditedEvent:function(){c&&
c()},fireCommunicationEvent:function(B,w){d&&d(w?w:a,B)},getCtxApi:function(){return h},isDead:function(){return n}}}function Sa(){la.call(this);var a=this;this.protectedCreateJqUi=function(b){b="Unknown widget type: "+a.getModel().getUnknownType();var c=$("<div>");c.text(b);c.attr("title",b);c.css({"background-color":"#fff",color:"#f00"});return c}}function Qa(){la.call(this);this.getJqPhysicalContainer=function(){throw Error("Override");}}function Ya(){this.updateCardSurface=function(){throw Error("Override");
};this.protectedMethod.fakeAction=function(a,b){var c=new uc;c.setText(A.get("effectiveAfterPub","#1\uff0c\u53d1\u5e03\u540e\u751f\u6548\u3002").replace("#1",b));c.show(a,!0)}}function jb(){var a=this.protectedMethod;this.getFilterSelectedValue=function(){throw Error("Override");};this.protectedMethod.filterSimilaryDoPropertyChanged=function(b){b==Z.KEY_AFFECTED_TARGETS&&a.fireCommunicationEvent(la.KEY_SELECTED_BY_API)}}function pb(){jb.call(this);hb.call(this);var a=this,b=this.protectedMethod,c,
d,f;this.protectedCreateJqUi=function(w){w=a.protectedCreateJqUiImpl(w);f=$("<div>");f.css("text-align","center");Ta.decorateCardModalLayer(f,!1);Ja.makeTextOmissible(f);var t=$("<div>");t.append(w);t.append(f);Ja.layoutCtrlWithLRTB(w,0,0,null,0,0,null);Ja.layoutCtrlWithLRTB(f,0,0,null,0,0,null);return t};this.protectedCreateJqUiImpl=function(w){throw Error("Implement");};this.protectedRunImpl=function(w){c=w;h()};this.payAttentionTo=function(w,t){if(t==la.KEY_VISUAL_DATA_PREPARED_SUCCESS||t==la.KEY_VISUAL_DATA_PREPARED_ERROR){w=
w.getModel();var q=a.getModel().getFilterSource();q&&q.isPreparedValueRelatedToWidget(w.getName())&&(t==la.KEY_VISUAL_DATA_PREPARED_SUCCESS?h():t==la.KEY_VISUAL_DATA_PREPARED_ERROR&&(n(A.get("discreteFilterDataWaitingError","\u5f15\u7528\u6570\u636e\u66f4\u65b0\u5931\u8d25")),G(null)))}else b.isAnotherSelectedAffectedMe(w,t)&&h()};this.getFilterSelectedValue=function(){return d&&0==d.length?cd.createItemAll():a.protectedGetFilterSelectedValue()};this.protectedGetFilterSelectedValue=function(){throw Error("Implement");
};var h=function(){var w=a.getModel(),t=w.getFilterSource();if(t&&t.isValid())if(t.isConfirmedToGetPreparedValue(w))if(b.isWaitingInputs())n(A.get("discreteFilterParamWaiting","\u7b49\u5f85\u7b5b\u9009\u6761\u4ef6")),G(null);else{n(A.get("discreteFilterItemUpdating","\u66f4\u65b0\u5907\u9009\u503c"));var q=b.createAdditionalFilterApi();q=q?q.toExecutableJsonObject():null;t.getPreparedValue(w,q,c,function(m){n(m?0==m.length?A.get("discreteFilterItemEmpty","\u6ca1\u6709\u5907\u9009\u503c"):null:A.get("discreteFilterItemUpdatingError",
"\u66f4\u65b0\u5907\u9009\u503c\u5931\u8d25"));G(m)})}else n(A.get("discreteFilterDataWaiting","\u7b49\u5f85\u5f15\u7528\u6570\u636e")),G(null);else n(A.get("discreteFilterInvalid","\u672a\u6b63\u786e\u8bbe\u7f6e\u5907\u9009\u503c")),G(null)},n=function(w){w?(f.text(w),f.attr("title",w),f.css("line-height",a.getModel().getHeight()+"px"),f.css("display","")):(f.text(""),f.attr("title",""),f.css("display","none"))},G=function(w){w?(d=w,a.getModel().isIncludeItemAllSupported()&&a.getModel().isIncludedItemAll()&&
d.splice(0,0,cd.createItemAll())):d=null;a.protectedUpdateCtrlModel(d?d:[]);B()};this.protectedUpdateCtrlModel=function(w){throw Error("Implement");};var B=function(){if(d){var w=a.getModel(),t=w.getDefaultSelected();t?t.getItems(d,w.isMultiSelectable(),function(q){a.protectedUpdateSelectedValue(q);b.fireCommunicationEvent(la.KEY_SELECTED_BY_API)}):(a.protectedUpdateSelectedValue(null),b.fireCommunicationEvent(la.KEY_SELECTED_BY_API))}};this.protectedUpdateSelectedValue=function(w){throw Error("Implement");
};this.protectedMethod.discreteItemFilterDoPropertyChanged=function(w){w==Z.KEY_FILTER_SOURCE||w==Z.KEY_DISCRETE_INCLUDED_ITEMALL?h():w==Z.KEY_FILTER_DEFAULT_SELECTED||w==Z.KEY_DISCRETE_MULTISELECTABLE?B():b.filterSimilaryDoPropertyChanged(w)};this.protectedMethod.getSelectableItems=function(){return d}}function hb(){var a=this,b=!1;this.run=function(f){b=!0;a.protectedRunImpl(f)};this.protectedRunImpl=function(f){throw Error("Implement");};this.updateInputParams=function(f){f?c(!0).repickParams(f):
c()&&c().repickParams(null)};var c=function(f){return a.getModel().getExecutingInputParams(f)},d=function(f,h){if(c()&&c().checkAffectedChainBroken())return!0;var n=a.getModel(),G=f.getModel(),B=G.getAffectedTargets();if(B&&(B=B.getTarget(n.getName()))&&B.isSettingComplete()){if(n.isInstanceOf(Z.WidgetSuperType_FilterSimilary)&&(n=n.checkCircularAffection()))return console&&console.warn("\u6b7b\u5faa\u73af\u5566\uff01"+n),!1;G=G.getSourceDataType();f=f.getFilterSelectedValue();f=c(!0).putParamValue(B.getUsableParamName(),
G,f);return h?f:!0}return!1};this.protectedMethod.isAnotherSelectedAffectedMe=function(f,h){return 0==h.indexOf(la.KEY_SELECTED)&&d(f,!0)&&c()&&c().isAllParamsAttend()&&b};this.protectedMethod.isAnotherManualSelectedAffectedMe=function(f,h){return h==la.KEY_SELECTED_BY_MANUAL&&d(f,!1)&&c()&&c().isAllParamsAttend()&&b};this.protectedMethod.isPlayAffectedMe=function(f,h){return h==la.KEY_PLAY&&d(f)&&b};this.protectedMethod.createAdditionalFilterApi=function(){return c()?c().createAdditionalFilterApi():
null};this.protectedMethod.createParamValueSearcherApi=function(){return c()?c().createParamValueSearcherApi():null};this.protectedMethod.isWaitingInputs=function(){return c()&&!c().isAllParamsAttend()}}function eb(){var a=this,b=this.protectedMethod,c;this.protectedCreateJqUi=function(d){d=$("<div>");var f=a.protectedCreateJqUiWithIframe();f.css("z-index",1);f.appendTo(d);Ja.layoutCtrl(f,0,0,"100%","100%");b.isDesigntime()&&(c=$("<div>"),c.addClass("dsb-glasslayer"),c.css("z-index",2),c.appendTo(d),
Ja.layoutCtrl(c,0,0,"100%","100%"));return d};this.protectedCreateJqUiWithIframe=function(){throw Error("Override");};this.inside=function(){c.hide()};this.outside=function(){c.show()}}function Ib(){this.checkOutputParam=function(a){throw Error("Implement");};this.refreshOutputParamValue=function(a,b){throw Error("Implement");}}function ha(){function a(){var B=!0,w=[],t={};this.markExist=function(q){B=q};this.isExist=function(){return B};this.registParam=function(q){t[q]||(t[q]=new b,w.push(q))};
this.getParam=function(q){return t[q]};this.getParamNames=function(){return w}}function b(){var B=!0,w=!0,t,q,m;this.markExist=function(u){B=u};this.isExist=function(){return B};this.reset=function(){w=!0};this.setup=function(u,r,P){w=!1;m=u;t=r;q=P};this.copyFrom=function(u){w=!1;t=u.getErrorCode();q=u.getErrorMessage();m=u.getDisplay()};this.isUnsure=function(){return w};this.isError=function(){return t||0===t};this.getErrorCode=function(){return t};this.getErrorMessage=function(){return q};this.getDisplay=
function(){return m}}var c=this,d=this.protectedMethod,f={},h,n=function(B,w){var t=function(u){delete B[u];var r=!1;for(u in B){r=!0;break}r||w()},q;for(q in B){var m=B[q];G(m[0],m[1],t)}},G=function(B,w,t){B.refreshOutputParamValue(w,function(q){var m=B.getModel().getName();if(q){var u=f[m],r;for(r in q){var P=q[r];u.getParam(r).setup(P.getDisplay(),P.getErrorCode(),P.getErrorMessage())}}t(m)})};this.protectedMethod.registWatchingTargetStart=function(){h=f;f={}};this.protectedMethod.registWatchingTarget=
function(B,w){var t=f[B];t||(t=new a,f[B]=t);t.registParam(w)};this.protectedMethod.registWatchingTargetEnd=function(B){var w=h?h:{},t=h=null,q;for(q in f){var m=c.getModel().getTopPage().searchWidgetByName(q),u=m?!0:!1,r=f[q];r.markExist(u);if(u){u=r.getParamNames();m=d.getCtxApi().getWidgetUiObject(m);var P=m.checkOutputParam(u);if(P)for(var I=0;I<u.length;I++){var pa=u[I],Ea=P[I],Aa=!0===Ea||!1===Ea;Ea=r.getParam(pa);Ea.markExist(Aa);Aa&&((Aa=(Aa=w[q])?Aa.getParam(pa):null)?Ea.copyFrom(Aa):(!t&&
(t={}),(Ea=t[q])?Ea=Ea[1]:(Ea=[],t[q]=[m,Ea]),Ea.push(pa)))}}}t?n(t,B):B()};this.protectedMethod.isOutputParamWatched=function(B,w){if(w=w==la.KEY_OUTPUT_PARAM_REFRESHABLE||w==la.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE)B=B.getModel().getName(),w=f[B]?!0:!1;return w};this.protectedMethod.refreshOutputParamValueByAnotherWidget=function(B,w,t,q){B=B==la.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE;var m=w.getModel().getName();m=f[m];m.markExist(!0);for(var u=m.getParamNames().slice(0),r=w.checkOutputParam(u),P=u.length-
1;0<=P;P--){var I=r[P],pa=!0===I||!1===I,Ea=u[P];m.getParam(Ea).markExist(pa);pa?B&&!I&&u.splice(P,1):u.splice(P,1)}if(0<u.length){for(P=0;P<u.length;P++)Ea=u[P],m.getParam(Ea).reset();t();G(w,u,function(Aa){q()})}else q()};this.protectedMethod.lookupOutputParamValue=function(B,w,t,q,m){var u=f[B];if(u&&u.isExist())if((t=u.getParam(w))&&t.isExist()){if(t.isUnsure())return"...";if(t.isError())m(B,w,t.getErrorCode(),t.getErrorMessage());else return t.getDisplay()}else q(B,w);else t(B)}}function Ra(){var a=
this,b,c;this.updateUiWhenAncestorFullscreenAllowedChanged=function(){throw Error("Implement");};this.protectedUpdateButtonStateByAncestorFullscreen=function(h){throw Error("Implement");};var d=function(h){var n=b;if(h==n[0]){h=!0;var G=n.parent();n.data("myParent",G);n.data("myZIndex",n.css("z-index"));n.detach();n.appendTo($(document.body));n.addClass("dsb-fullscreen-widget");n.css("z-index",128)}else{h=!1;na.removeChangedListener(d);G=n.data("myParent");var B=n.data("myZIndex");n.removeData("myParent");
n.detach();n.appendTo(G);n.removeClass("dsb-fullscreen-widget");n.css("z-index",B)}h?(G=Ta.dip(Ta.DSB_CARD)[Ta.Key_Card_BackgroundColor],n.data("myBackground",n.css("background-color"))):(G=n.data("myBackground"),n.removeData("myBackground"));n.css("background-color",G);f(h);a.protectedFullScreenChanged(h)};this.protectedFullScreenChanged=function(h){throw Error("Implement");};var f=function(h){a.getModel().markFullscreen(h);a.getModel().isContainer()&&a.getModel().traversalDescendents(function(n){n.markFullscreen(h,
!0)})};this.protectedMethod.fullscreenSupportedWidgetDoPropertyChanged=function(h){h==Z.KEY_FULLSCREEN_BY_ANCESTOR&&(c=a.getModel().hasBeenFullscreen(),a.protectedUpdateButtonStateByAncestorFullscreen(c))};this.protectedMethod.isFullscreenByAncestor=function(){return c};this.protectedMethod.doFullscreen=function(h){b=h;na.removeChangedListener(d);na.addChangedListener(d);a.getModel().hasBeenFullscreen()?na.exit():na.request(h[0])};this.protectedMethod.markFullscreen=f}function W(){la.call(this);hb.call(this);
Ya.call(this);Ib.call(this);Ra.call(this);var a=this,b=this.protectedMethod,c,d,f,h,n,G,B,w=new function(){var ta=[];this.appendOne=function(Ua,ea,Ia){ta.push(new function(cb,db,Cb){this.getRandomId=function(){return cb};this.getPrompt=function(){return db};this.cancel=function(){return Cb()}}(Ua,ea,Ia));return 1==ta.length};this.removeOne=function(Ua){for(var ea=!1,Ia=ta.length-1;0<=Ia;Ia--)ta[Ia].getRandomId()==Ua&&(ta.splice(Ia,1),0==Ia&&(ea=!0));return ea};this.getDisplayOne=function(){return 0<
ta.length?ta[0]:null};this.cancelAll=function(){for(var Ua=ta.length-1;0<=Ua;Ua--)ta[Ua].cancel()}},t=!1,q,m=!1,u=!1,r=!1;this.setVisualWidgetEditableConfirmer=function(ta){c=ta};var P=this.destroy;this.destroy=function(){P();clearTimeout(q);n&&n.destroy()};this.protectedCreateJqUi=function(ta){var Ua=!(ta.isDesigntime()||ta.isPreview());G=ta.createWidgetCtrl(a.getModel());Ea();G.setActionListener(function(Ia,cb,db){switch(cb){case sa.ACTION_REFRESH:qb(!1);break;case sa.ACTION_EDIT:ta.isDesigntime()||
Ua?Zc(db):b.fakeAction(Ia,db);break;case sa.ACTION_ANALYSIS:Ua?a.protectedAccessAdvancedAnalysis(Db())||n.displayActionPrompt(G.getJqUi(),A.get("cardEditUnaccessable","\u60a8\u6ca1\u6709#1\u7684\u6743\u9650").replace("#1",db)):b.fakeAction(Ia,db);break;case sa.ACTION_FILTER:n.showExtraFilter(G.getJqUi());break;case sa.ACTION_FULLSCREEN:Ua?b.doFullscreen(G.getJqUi()):b.fakeAction(Ia,db);break;case sa.ACTION_INFO:n.showChartInfo(G.getJqUi());break;case sa.ACTION_INSIGHT:n.showInsight(G.getJqUi())}});
G.hideButtons(sa.ACTION_ALL);G.hookFullscreenAutonomy(b.markFullscreen);var ea=G.getJqUi();G.getJqContent().addClass("sa-ctrl-common-unselectable");return ea};this.protectedRunImpl=function(ta){f=ta;G.createScene(function(Ua){a.protectedInitScene(Ua);n=Ua;n.setSkinName(a.getModel().getTopPage().getSkin());n.setExecutedListener(function(ea){a.protectedAfterExecuted();Rc()});n.setFilteringListener(function(){b.fireCommunicationEvent(la.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE)});n.show(G.getJqContent())});
a.getModel().getExecutingTag()&&n.setRemoteTag(a.getModel().getExecutingTag());ta=[];(h=I(ta))?ta[0]?Yb(!1):(t=!0,yc()):b.isWaitingInputs()?(Yb(!1),Ub(!1,a.getModel().getName(),A.get("filterWaiting","\u7b49\u5f85\u7b5b\u9009\u6761\u4ef6"),function(){})):qb(!1)};this.protectedInitScene=function(ta){};this.protectedAfterExecuted=function(){};this.payAttentionTo=function(ta,Ua){if(b.isPlayAffectedMe(ta,Ua)){var ea=ta.getModel().getDurationMode(),Ia=ea.getPlayingRoundId(),cb;n.setBlocking(!1);n.executeWithoutRendering(function(db,
Cb){n.setBlocking(!0);cb=Cb;!db&&yb(!1)},function(db,Cb){ea.untilAllAffectedTargetsExecuted(Ia,a.getModel().getName(),function(){G.getJqContent().stop(!0);G.getJqContent().fadeTo(500,.2,function(){cb(db,Cb);G.getJqContent().fadeTo(500,1);b.fireCommunicationEvent(la.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE)})})})}else b.isAnotherSelectedAffectedMe(ta,Ua)&&Aa(!0)};this.collectContextForPreview=function(){var ta={};ta.tag=a.getModel().getExecutingTag();return ta};this.applyPreviewContext=function(ta){(ta=ta.tag)&&
a.getModel().setExecutingTag(ta);m=!0};this.protectedRepaint=function(){G.updateCardSurface();pa()};this.updateCardSurface=function(){G.updateCardSurface()};var I=function(ta){var Ua=a.getModel().pickupTmpJsonModelBook();ta[0]=Ua?Ua[2]:null;d=(ta=Ua?Ua[1]:null)?va.parseBuiltinVisualWidgetEditableConfirmer(ta):null;return Ua?Ua[0]:null},pa=function(){n&&n.redraw()},Ea=function(){var ta=a.getModel().getCardDescription();!ta&&(ta=B);G.updateTopBar(ta)},Aa=function(ta){n.setBlocking(ta);ta=n.reExecute();
n.setBlocking(!0);ta?b.fireCommunicationEvent(la.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE):yb(!1)},qb=function(ta){ta&&G.hideButtons(sa.ACTION_ALL);Yb(ta);yb(ta)},yb=function(ta){if(!b.isDead()){var Ua="id"+Math.random(),ea=ta?A.get("refreshing","\u6b63\u5728\u5237\u65b0"):A.get("loading","\u52a0\u8f7d\u4e2d");Ub(ta,Ua,ea,function(){cb()});ta=a.getModel().getReferenceCustomMap();ea=f(function(db){jc(Ua);h=db.model;db=(db=db.operation)?va.parseBuiltinVisualWidgetEditableConfirmer(db):null;d=a.protectedMergeRtEditableConfirmer(c,
db);yc()},function(db,Cb,bc){jc(Ua);jc(a.getModel().getName());-1!=db&&(n.displayError(db,Cb,bc),u=!0,B=null,Rc());Dc();return!0});ea.setShowBlocking(!1);ea.setCancelable(!0);var Ia=a.protectedGetFacadeMethodForLoadSchema(),cb=ea[Ia](ta)}};this.protectedGetFacadeMethodForLoadSchema=function(){throw Error("Override");};this.protectedMergeRtEditableConfirmer=function(ta,Ua){throw Error("Override");};var Yb=function(ta){var Ua="id"+Math.random(),ea=!0;t=!1;var Ia=function(qc){t=!0;a.getModel().setExecutingTag(qc);
ea&&b.fireCommunicationEvent(la.KEY_VISUAL_DATA_PREPARED_SUCCESS);n.setRemoteTag(qc);jc(Ua);yc()},cb=function(qc,Ac,Pc){ea&&b.fireCommunicationEvent(la.KEY_VISUAL_DATA_PREPARED_ERROR);jc(Ua);jc(a.getModel().getName());-1!=qc&&(n.displayError(qc,Ac,Pc),u=!0,B=null,Rc());Dc();return!0},db=function(){return b.isDead()},Cb=function(qc){var Ac=w.getDisplayOne();Ac&&Ac.getRandomId()==Ua&&G.hookWaitingProgressDisplayer(D.makeUiCreator(qc))},bc=null,cc=ta?A.get("refreshing","\u6b63\u5728\u5237\u65b0"):D.getWaitingText();
Ub(ta,Ua,cc,function(){bc()});ta=a.getModel().getReferenceCustomMap();cc=new fa;cc.setFacadeCreator(f);var rc=a.getModel().getExecutingTag();rc?(ea=!m,bc=cc.refresh(ta,rc,m,Ia,cb,db,Cb),m=!1):bc=cc.prepare(ta,Ia,cb,db,Cb)},Ub=function(ta,Ua,ea,Ia){w.appendOne(Ua,ea,Ia)&&sc(ta)},jc=function(ta){w.removeOne(ta)&&(G.hookWaitingProgressDisplayer(function(Ua){return null}),sc())},sc=function(ta){var Ua=w.getDisplayOne();Ua?G.showWaiting(ta,Ua.getPrompt(),A.get("cancel","\u53d6\u6d88"),w.cancelAll):G.hideWaiting()},
Dc=function(){if(u)G.hideButtons(sa.ACTION_ALL^sa.ACTION_REFRESH);else{var ta=a.getModel().isAncestorForbidFullscreen()||b.isFullscreenByAncestor()?sa.ACTION_FULLSCREEN:sa.ACTION_NONE;G.hideButtons(ta)}},yc=function(){if(t&&h){jc(a.getModel().getName());u=!1;Dc();var ta=n.setJsonModelBook(h,function(){return b.createAdditionalFilterApi()},function(Ua){return(Ua=Ta.getChartDefaultPalette(Ua))&&!Ua.isInvalid()?Ua.toJsonObject():null});h=null;B=a.protectedGetCardDescription(ta);Ea();Vc(ta);b.fireCommunicationEvent(la.KEY_OUTPUT_PARAM_REFRESHABLE)}};
this.protectedGetCardDescription=function(ta){return null};var Vc=function(ta){a.getModel().clearAllParamInfo();ta=ta.getModelPages();for(var Ua=0;Ua<ta.length;Ua++){var ea=ta[Ua],Ia=ea.getModel();ea=ea.getPreferences();var cb=Ia.getBriefOutputDefinitions();if(cb)for(var db=0;db<cb.length;db++){var Cb=cb[db];a.getModel().appendOutputParamInfo(Ua,Ia,ea,Cb.getName(),Cb.getDescription())}if(cb=Ia.getWarningRuleDefinitions())for(db=0;db<cb.length;db++)Cb=cb[db],a.getModel().appendWarningRuleInfo(Ua,Ia,
ea,Cb.getName(),Cb.getDescription())}r=!0};this.checkOutputParam=function(ta){if(!r)return null;for(var Ua={},ea=a.getModel().getOutputParamsInfo(),Ia=0;Ia<ea.length;Ia++){var cb=ea[Ia],db=cb.getName();Ua[db]=0===cb.getQingModelIndex()}ea=[];for(Ia=0;Ia<ta.length;Ia++)db=ta[Ia],ea[Ia]=Ua[db];return ea};this.refreshOutputParamValue=function(ta,Ua){r||Ua(null);for(var ea={},Ia=0;Ia<ta.length;Ia++){var cb=ta[Ia];ea[cb]=!0}ta=a.getModel().getOutputParamsInfo();var db={};for(Ia=0;Ia<ta.length;Ia++){var Cb=
ta[Ia];cb=Cb.getName();if(ea[cb]){var bc=Cb.getQingModelIndex(),cc=db[bc];cc||(cc=[],cc[0]=Cb.getQingModel(),cc[1]=Cb.getQingModelPreferences(),cc[2]=[],cc[3]=!1,db[bc]=cc);var rc=cc[2];rc.push(cb)}}var qc=null;for(bc in db)!qc&&(qc={}),cc=db[bc],ea=cc[0],Ia=cc[1],rc=cc[2],n.executeOutputParamValue(ea,Ia,rc,function(Ac){if(Ac)for(var Pc=0;Pc<rc.length;Pc++){var Ad=rc[Pc],Wd=Ac[Ad],Bd=new Ka;Bd.parseFromJson(Wd);qc[Ad]=Bd}cc[3]=!0;a:{for(var Xd in db)if(!db[Xd][3])break a;Ua(qc)}});qc||Ua({})};var Rc=
function(){if(!b.isDesigntime()){n.setBlocking(!0);var ta=a.getModel().getRefreshTiming();0<ta&&(clearTimeout(q),q=setTimeout(function(){n.setBlocking(!1);qb(!0)},1E3*ta))}},Zc=function(ta){a.protectedCheckDesignerAccessable(Db(),function(Ua,ea){Ua?Va(ea):n.displayActionPrompt(G.getJqUi(),A.get("cardEditUnaccessable","\u60a8\u6ca1\u6709#1\u7684\u6743\u9650").replace("#1",ta))})};this.protectedCheckDesignerAccessable=function(ta,Ua){throw Error("Implement");};var Va=function(ta){var Ua=a.getModel(),
ea=Ua.getCardTitle(),Ia=xb.getInstance(Ua.getWidgetTypeName()).getTypeDisplayName();Ia=A.get("modifyWidget","\u7f16\u8f91\u7ec4\u4ef6-#1").replace("#1",Ia);Ia+=ea?": "+ea:"";Ua=Ua.getReferenceCustomMap();a.protectedGetIntegrationMethodForShowDesigner()(Ia,!0,Ua,a.getModel().getExecutingTag(),ta,function(cb){cb&&(b.fireEditedEvent(),h=cb,yc())})};this.protectedGetIntegrationMethodForShowDesigner=function(){throw Error("Override");};this.protectedAccessAdvancedAnalysis=function(ta){throw Error("Unsupported");
};this.updateUiWhenAncestorFullscreenAllowedChanged=function(){Dc()};this.protectedFullScreenChanged=function(ta){G.updateFullscreenButtonDisplay(ta);G.updateCardSurface();n.redraw()};this.protectedUpdateButtonStateByAncestorFullscreen=function(ta){Dc()};var Db=function(){d||(d=a.protectedMergeRtEditableConfirmer(c,null));return d};this.protectedMethod.builtinVisualWidgetDoPropertyChanged=function(ta){ta==Z.KEY_CARD_TITLE?(Ea(),pa()):ta==Z.KEY_CARD_SURFACE?(G.updateCardSurface(),pa()):ta==Z.KEY_AFFECTED_TARGETS?
pa():ta==Z.KEY_REF?(ta=[],h=I(ta),ta[0]?Yb(!1):(t=!0,yc())):b.fullscreenSupportedWidgetDoPropertyChanged(ta)};this.protectedMethod.getRtEditableConfirmer=Db;this.protectedMethod.createExecutingWaitingImpl=function(){return{showWaiting:function(ta){G.showWaiting(!1,A.get("executing","\u65b9\u6848\u6267\u884c\u4e2d"),A.get("cancel","\u53d6\u6d88"),ta)},hookWaitingProgressDisplayer:function(ta){G.hookWaitingProgressDisplayer(ta)},hideWaiting:function(){G.hideWaiting()}}}}function sa(){Da.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,c,d){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 Pa(){W.call(this);jb.call(this);var a=this,b=this.protectedMethod,c;this.protectedDoPropertyChanged=function(f){b.builtinVisualWidgetDoPropertyChanged(f);b.filterSimilaryDoPropertyChanged(f)};this.getFilterSelectedValue=function(){if(c&&0<c.length){for(var f=[],h=0;h<c.length;h++){var n=c[h],G=new hd;G.setValue(n.value);G.setText(n.text);f.push(G)}return f}return cd.createItemAll()};var d=function(f,h){void 0!==c&&(!c&&!f||c&&f&&JSON.stringify(c)==
JSON.stringify(f))||(c=f,b.fireCommunicationEvent(!0===h?la.KEY_SELECTED_BY_MANUAL:!1===h?la.KEY_SELECTED_BY_API:la.KEY_SELECTED))};this.protectedAfterExecuted=function(){d(null,!1)};this.protectedGetFacadeMethodForLoadSchema=function(){return"squareLoadSchema"};this.protectedMergeRtEditableConfirmer=function(f,h){h||(h=new da);f&&(h=h.mergeToNewInstance(f.getRtSquareEditableConfirmer()));return h};this.protectedInitScene=function(f){f.hookExecutingWaitingImpl(b.createExecutingWaitingImpl());f.setCosmeticHandler(function(h){if(h){var n=
[Ta.CHART_COMMON],G=h.getCosmeticId();G&&n.push(G);n=Ta.dipSome(n);h.getAttr().putCustomStyles(n);h.getAttr().setSkinName(a.getModel().getTopPage().getSkin())}return Ta.dip(Ta.SQUARE_EXHIBITION)});f.setPredrawListener(function(h){if(h.isSelectionSupported()){var n=a.getModel().getAffectedTargets();((n=n&&n.getItemCount()?!0:!1)&&!h.isSelectable()||!n&&h.isSelectable())&&h.setSelectable(n)}(n=a.getModel().getActiveBackgroundColor())||(n=Ta.dip(Ta.DSB_CARD)[Ta.Key_Card_BackgroundColor]);h.getAttr().putCustomStyle(zb.BACKGROUND,
n)});f.setSelectionListener(function(h,n,G){d(n,G)})};this.protectedGetIntegrationMethodForShowDesigner=function(){return va.showSquareDesigner};this.protectedGetCardDescription=function(f){return f.getModelPages()[0].getModel().getChart().getChartProperty().getDescription()};this.protectedCheckDesignerAccessable=function(f,h){var n=f.isSquareDesignerAccessable();f=f.getSquareDesignerOperationJudger();h(n,f)};this.protectedAccessAdvancedAnalysis=function(f){var h=f.isAdvancedAnalysisAccessable();
if(h){f=f.getAdvancedAnalysisOperationJudger();var n=a.getModel().getCardTitle(),G=a.getModel().getReferenceCustomMap(),B=a.getModel().getExecutingTag();va.squareAnalysis(n,G,B,f)}return h}}function Ma(){W.call(this);var a=this.protectedMethod;this.protectedDoPropertyChanged=function(b){a.builtinVisualWidgetDoPropertyChanged(b)};this.protectedGetFacadeMethodForLoadSchema=function(){return"longerLoadSchema"};this.protectedMergeRtEditableConfirmer=function(b,c){c||(c=new X);b&&(c=c.mergeToNewInstance(b.getRtLongerEditableConfirmer()));
return c};this.protectedInitScene=function(b){b.setLongerDesignerOperationJudgerGetter(function(){return a.getRtEditableConfirmer().getLongerDesignerOperationJudger()})};this.protectedGetIntegrationMethodForShowDesigner=function(){return va.showLongerDesigner};this.protectedCheckDesignerAccessable=function(b,c){var d=b.isLongerDesignerAccessable();b=b.getLongerDesignerOperationJudger();c(d,b)}}function sb(){la.call(this);eb.call(this);hb.call(this);var a=this,b=this.protectedMethod,c,d=this.destroy;
this.destroy=function(){d();var h=va.getQingReportExecutor();h&&h.destroy(c,a.getModel())};this.protectedCreateJqUiWithIframe=function(){c=$("<div>");var h=va.getQingReportExecutor();h&&h.initUi(c,a.getModel());return c};this.protectedRunImpl=function(h){b.isWaitingInputs()||f()};this.protectedDoPropertyChanged=function(h){h==Z.KEY_REF?f():h==Z.KEY_CARD_TITLE&&(h=va.getQingReportExecutor())&&h.updateTitle(c,a.getModel())};this.protectedRepaint=function(){var h=va.getQingReportExecutor();h&&h.resize(c,
a.getModel())};this.payAttentionTo=function(h,n){b.isPlayAffectedMe(h,n)?(f(),h=h.getModel().getDurationMode(),h.untilAllAffectedTargetsExecuted(h.getPlayingRoundId(),a.getModel().getName(),function(){c.stop(!0);c.fadeTo(500,.2,function(){c.fadeTo(500,1)})})):b.isAnotherSelectedAffectedMe(h,n)&&f()};var f=function(){var h=va.getQingReportExecutor();h&&h.run(c,a.getModel(),b.isDesigntime())}}function bb(){la.call(this);eb.call(this);hb.call(this);var a=this,b=this.protectedMethod,c,d=this.destroy;
this.destroy=function(){d();var h=va.getExtReportExecutor();h&&h.destroy(c,a.getModel())};this.protectedCreateJqUiWithIframe=function(){c=$("<div>");var h=va.getExtReportExecutor();h&&h.initUi(c,a.getModel());return c};this.protectedRunImpl=function(h){b.isWaitingInputs()||f()};this.protectedDoPropertyChanged=function(h){h==Ec.KEY_MODEL?f():h==Ec.KEY_TITLE&&(h=va.getExtReportExecutor())&&h.updateTitle(c,a.getModel())};this.protectedRepaint=function(){var h=va.getExtReportExecutor();h&&h.resize(c,
a.getModel())};this.payAttentionTo=function(h,n){if(b.isPlayAffectedMe(h,n)){f();var G=h.getModel().getDurationMode();G.untilAllAffectedTargetsExecuted(G.getPlayingRoundId(),a.getModel().getName(),function(){c.stop(!0);c.fadeTo(500,.2,function(){c.fadeTo(500,1)})})}b.isAnotherSelectedAffectedMe(h,n)&&f()};var f=function(){var h=va.getExtReportExecutor();h&&h.run(c,a.getModel(),b.isDesigntime())}}function aa(){la.call(this);eb.call(this);var a=this,b=this.protectedMethod,c,d=this.destroy;this.destroy=
function(){d();var h=va.getProgramableCardExecutor();h&&h.destroy(c,a.getModel())};this.protectedCreateJqUiWithIframe=function(){c=$("<div>");var h=va.getProgramableCardExecutor();h&&h.initUi(c,a.getModel());return c};this.run=function(h){f()};this.protectedRepaint=function(){var h=va.getProgramableCardExecutor();h&&h.resize(c,a.getModel())};this.protectedDoPropertyChanged=function(h){h==Z.KEY_REF&&f()};var f=function(){var h=va.getProgramableCardExecutor();h&&h.run(c,a.getModel(),b.isDesigntime())}}
function N(){la.call(this);eb.call(this);var a=this,b=this.protectedMethod,c,d=this.destroy;this.destroy=function(){d();var h=va.getCosmicCustomCardExecutor();h&&h.destroy(c,a.getModel())};this.protectedCreateJqUiWithIframe=function(){c=$("<div>");var h=va.getCosmicCustomCardExecutor();h&&h.initUi(c,a.getModel());return c};this.run=function(h){f()};this.protectedRepaint=function(){var h=va.getCosmicCustomCardExecutor();h&&h.resize(c,a.getModel())};this.protectedDoPropertyChanged=function(h){h==Wc.KEY_MODEL&&
f()};var f=function(){var h=va.getCosmicCustomCardExecutor();h&&h.run(c,a.getModel(),b.isDesigntime())}}function Fa(){la.call(this);eb.call(this);var a=this,b=this.protectedMethod,c,d=this.destroy;this.destroy=function(){d();var f=va.getCloudhubSubscribesExecutor();f&&f.destroy(c,a.getModel())};this.protectedCreateJqUiWithIframe=function(){c=$("<div>");var f=va.getCloudhubSubscribesExecutor();f&&f.initUi(c,a.getModel());return c};this.run=function(f){(f=va.getCloudhubSubscribesExecutor())&&f.run(c,
a.getModel(),b.isDesigntime())};this.protectedRepaint=function(){var f=va.getCloudhubSubscribesExecutor();f&&f.resize(c,a.getModel())}}function ya(){la.call(this);eb.call(this);hb.call(this);var a=this,b=this.protectedMethod,c;this.protectedCreateJqUiWithIframe=function(){c=$("<iframe>");c.css("border","0px");b.setupDesigntimeRectangle(c);return c};this.protectedDoPropertyChanged=function(f){f==vc.KEY_URL&&d()};this.payAttentionTo=function(f,h){b.isAnotherSelectedAffectedMe(f,h)&&d()};this.protectedRunImpl=
function(f){b.isWaitingInputs()||d()};var d=function(){c.attr("src","");setTimeout(function(){var f=a.getModel().getUsableUrl();c.attr("src",f)},100)}}function ma(){la.call(this);var a=this,b=this.protectedMethod,c,d=new mb,f,h,n=this.destroy;this.destroy=function(){n();clearTimeout(h)};this.protectedCreateJqUi=function(t){c=$("<div>");c.css({overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"});b.setupDesigntimeRectangle(c);return c};this.run=function(t){G();B();w()};this.protectedDoPropertyChanged=
function(t){t==Hc.KEY_FORMAT?(B(),w()):t==Z.KEY_STYLE&&G()};this.protectedRepaint=function(){G()};var G=function(){Ta.decorateLabel(c);var t=a.getModel(),q=t.getStyle(),m=q.getFontName(),u={};u["line-height"]=t.getHeight()+"px";u["font-family"]=m?m:"";u["font-size"]=q.getFontSize()+"px";u["text-align"]=q.getAlign();(t=q.getColor())&&(u.color=t);c.css(u)},B=function(){var t=a.getModel().getFormatString();d.setFormatString(t);f=1E3*(0>t.indexOf("s")?10:1)},w=function(){clearTimeout(h);var t=d.format(new Date);
c.text(t);h=setTimeout(w,f)}}function ua(){la.call(this);hb.call(this);jb.call(this);ha.call(this);var a=this,b=this.protectedMethod,c,d,f=!1,h;this.protectedCreateJqUi=function(I){I=new kb;I.bindWidget(a.getModel());c=I.getJqUi();c.css({"text-align":"center",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"});b.setupDesigntimeRectangle(c);return c};this.protectedDoPropertyChanged=function(I){I==Sc.KEY_CONTENT?P(function(){n()}):(I==Z.KEY_STYLE||I==Sc.KEY_WALKING)&&n()};this.protectedRepaint=
function(){n()};this.payAttentionTo=function(I,pa){b.isPlayAffectedMe(I,pa)?(f=!0,I=I.getModel().getDurationMode(),I.untilAllAffectedTargetsExecuted(I.getPlayingRoundId(),a.getModel().getName(),function(){f=!1;n()})):b.isAnotherSelectedAffectedMe(I,pa)?n():b.isOutputParamWatched(I,pa)&&b.refreshOutputParamValueByAnotherWidget(pa,I,function(){n()},function(){n()})};this.getFilterSelectedValue=function(){return d};this.protectedRunImpl=function(I){P(function(){n()})};var n=function(){if(!f){Ta.decorateLabel(c);
var I=a.getModel(),pa=I.getStyle(),Ea=pa.getFontName(),Aa={};Aa["line-height"]=I.getHeight()+"px";Aa["font-family"]=Ea?Ea:"";Aa["font-size"]=pa.getFontSize()+"px";Aa["text-align"]=pa.getAlign();(pa=pa.getColor())&&(Aa.color=pa);c.css(Aa);c.empty();c.attr("title","");Aa=$("<span>");B(Aa);Aa.appendTo(c);h&&clearInterval(h);pa=I.getWalkingSpeed();I.setRuntimeWalkable(0<pa);0<pa&&(Aa.css("position","absolute"),G(Aa,pa))}},G=function(I,pa){var Ea=c.prop("clientWidth");h=setInterval(function(){b.isDead()&&
clearInterval(h);a.getModel().isRuntimeWalkable()&&c.is(":visible")&&"hidden"!=c.css("visibility")&&(I.css("left",Ea),Ea--,0>Ea+I.prop("offsetWidth")&&(Ea=c.prop("clientWidth")))},pa)},B=function(I){var pa=[],Ea=u(function(Aa){pa=Aa});(Ea=w(Ea,pa,function(Aa,qb,yb){Aa&&t(Aa).appendTo(I);q(qb,yb).appendTo(I)}))&&t(Ea).appendTo(I)},w=function(I,pa,Ea){var Aa={},qb=a.getModel().getPredefinedTextFragments();if(qb)for(var yb=0;yb<qb.getFragmentCount();yb++){var Yb=qb.getFragment(yb),Ub=Yb.getName();Aa[Ub]=
Yb}for(yb=0;yb<pa.length;yb++)if(Ub=pa[yb][2],Yb=Aa[Ub])if(qb=Yb.getDisplay(),Yb=Yb.getAffectedTargets(),Ub&&qb&&Yb){qb=r(Fc.parseRef(qb),qb);Ub="${"+Ub+"}$";var jc=I.indexOf(Ub);if(0<=jc){var sc=I.substring(0,jc);I=I.substring(jc+Ub.length);Ea(sc,qb,Yb)}}return I},t=function(I){var pa=$("<span>");pa.text(I);return pa},q=function(I,pa){var Ea=$("<span>");Ea.text(I);Ea.css("cursor","pointer");Ea.on("click",function(Aa){d=new hd;d.setValue(I);d.setText(I);m(pa);a.getModel().setAffectedTargets(pa);b.fireCommunicationEvent(la.KEY_SELECTED_BY_MANUAL)});
Ea.on("mouseenter",function(Aa){Ea.css("text-decoration","underline")});Ea.on("mouseleave",function(Aa){Ea.css("text-decoration","")});return Ea},m=function(I){for(var pa=0;pa<I.getItemCount();pa++){var Ea=I.getItem(pa);if(Ea.getType()==Z.AffectedType_Hotlink){var Aa=Ea.getUrl(),qb=Fc.parseRef(Aa);Aa=r(qb,Aa);var yb="";qb=w(Aa,qb,function(Yb,Ub,jc){yb+=Yb;yb+=Ub});yb+=qb;Ea.setUsableUrl(yb)}}},u=function(I){var pa=a.getModel().getContent();if(pa){var Ea=Fc.parseRef(pa);pa=r(Ea,pa);I(Ea);return pa}return b.isDesigntime()?
A.get("labelHasNoText","(\u672a\u8bbe\u7f6e)"):""},r=function(I,pa){for(var Ea=b.createParamValueSearcherApi(),Aa=I.length-1;0<=Aa;Aa--){var qb=I[Aa],yb=qb[0],Yb=qb[1],Ub=qb[2];qb=qb[3];if(0==Ub.indexOf("#"))Ub=Ub.substring(1),Ub=Ea?Ea.searchDisplayText(Ub):void 0;else if(0<Ub.indexOf("#")){Ub=Ub.split("#");var jc=null;Ub=b.lookupOutputParamValue(Ub[0],Ub[1],function(sc){jc=" (Widget '#1' not exist) ".replace("#1",sc)},function(sc,Dc){var yc=a.getModel().getTopPage().searchWidgetByName(sc);sc=yc?
yc.getDisplayName():sc;jc=" (Param '#1' not found) ".replace("#1",sc+"#"+Dc)},function(sc,Dc,yc,Vc){jc="***";sc=(yc=a.getModel().getTopPage().searchWidgetByName(sc))?yc.getDisplayName():sc;c.attr("title",sc+"#"+Dc+" error: "+Vc)});jc&&(Ub=jc)}else continue;void 0===Ub&&(Ub=qb);pa=pa.substring(0,yb)+Ub+pa.substring(Yb);I.splice(Aa,1)}return pa},P=function(I){b.registWatchingTargetStart();var pa=function(yb){yb=Fc.parseRef(yb);for(var Yb=0;Yb<yb.length;Yb++){var Ub=yb[Yb][2];0<Ub.indexOf("#")&&(Ub=
Ub.split("#"),b.registWatchingTarget(Ub[0],Ub[1]))}};pa(a.getModel().getContent());var Ea=a.getModel().getPredefinedTextFragments();if(Ea)for(var Aa=0;Aa<Ea.getFragmentCount();Aa++){var qb=Ea.getFragment(Aa).getDisplay();pa(qb)}b.registWatchingTargetEnd(I)}}function C(){la.call(this);hb.call(this);jb.call(this);ha.call(this);var a=this,b=this.protectedMethod,c,d,f,h=!1;this.protectedCreateJqUi=function(m){d=new Ba;c=$("<div>");c.append(d.getJqUi());Ja.layoutCtrlWithLRTB(d.getJqUi(),0,0,null,0,0,null);
b.setupDesigntimeRectangle(c);return c};this.protectedDoPropertyChanged=function(m){m==Xc.KEY_CONTENT&&q(function(){n()})};this.protectedRepaint=function(){n()};this.payAttentionTo=function(m,u){b.isPlayAffectedMe(m,u)?(h=!0,m=m.getModel().getDurationMode(),m.untilAllAffectedTargetsExecuted(m.getPlayingRoundId(),a.getModel().getName(),function(){h=!1;n()})):b.isAnotherSelectedAffectedMe(m,u)?n():b.isOutputParamWatched(m,u)&&b.refreshOutputParamValueByAnotherWidget(u,m,function(){n()},function(){n()})};
this.getFilterSelectedValue=function(){return f};this.protectedRunImpl=function(m){q(function(){n()})};var n=function(){if(!h){var m=a.getModel().getContent().clone();G(m);d.setDefaultColor(Ta.dip(Ta.DSB_LABEL)[Ta.Key_Label_Color]);d.setModel(m);d.refresh()}},G=function(m){var u=m.getAllText();u=Fc.parseRef(u);t(u,function(r,P,I){m.replaceVar(r,P,I)});w(u,function(r,P,I){var pa=m.getAllText().indexOf(r);m.replaceVar(pa,pa+r.length,P).hookUiCustomDecorator(function(Ea){Ea.css("cursor","pointer");Ea.on("click",
function(Aa){f=new hd;f.setValue(P);f.setText(P);B(I);a.getModel().setAffectedTargets(I);b.fireCommunicationEvent(la.KEY_SELECTED_BY_MANUAL)});Ea.on("mouseenter",function(Aa){Ea.css("text-decoration","underline")});Ea.on("mouseleave",function(Aa){Ea.css("text-decoration","")})})})},B=function(m){for(var u=0;u<m.getItemCount();u++){var r=m.getItem(u);if(r.getType()==Z.AffectedType_Hotlink){var P=r.getUrl(),I=Fc.parseRef(P),pa=P;t(I,function(Ea,Aa,qb){pa=pa.substring(0,Ea)+qb+pa.substring(Aa)});w(I,
function(Ea,Aa,qb){qb=pa.indexOf(Ea);Ea=qb+Ea.length;pa=pa.substring(0,qb)+Aa+pa.substring(Ea)});r.setUsableUrl(pa)}}},w=function(m,u){var r={},P=a.getModel().getPredefinedTextFragments();if(P)for(var I=0;I<P.getFragmentCount();I++){var pa=P.getFragment(I),Ea=pa.getName();r[Ea]=pa}for(I=0;I<m.length;I++)if(Ea=m[I][2],pa=r[Ea]){var Aa=pa.getDisplay();P=pa.getAffectedTargets();Ea&&Aa&&P&&(t(Fc.parseRef(Aa),function(qb,yb,Yb){Aa=Aa.substring(0,qb)+Yb+Aa.substring(yb)}),u("${"+Ea+"}$",Aa,P))}},t=function(m,
u){for(var r=b.createParamValueSearcherApi(),P=m.length-1;0<=P;P--){var I=m[P],pa=I[0],Ea=I[1],Aa=I[2];I=I[3];if(0==Aa.indexOf("#"))Aa=Aa.substring(1),Aa=r?r.searchDisplayText(Aa):void 0;else if(0<Aa.indexOf("#")){Aa=Aa.split("#");var qb=null;Aa=b.lookupOutputParamValue(Aa[0],Aa[1],function(yb){qb=" (Widget '#1' not exist) ".replace("#1",yb)},function(yb,Yb){var Ub=a.getModel().getTopPage().searchWidgetByName(yb);yb=Ub?Ub.getDisplayName():yb;qb=" (Param '#1' not found) ".replace("#1",yb+"#"+Yb)},
function(yb,Yb,Ub,jc){qb="***";yb=(Ub=a.getModel().getTopPage().searchWidgetByName(yb))?Ub.getDisplayName():yb;c.attr("title",yb+"#"+Yb+" error: "+jc)});qb&&(Aa=qb)}else continue;void 0===Aa&&(Aa=I);u(pa,Ea,Aa);m.splice(P,1)}},q=function(m){b.registWatchingTargetStart();var u=function(pa){pa=Fc.parseRef(pa);for(var Ea=0;Ea<pa.length;Ea++){var Aa=pa[Ea][2];0<Aa.indexOf("#")&&(Aa=Aa.split("#"),b.registWatchingTarget(Aa[0],Aa[1]))}};u(a.getModel().getContent().getAllText());var r=a.getModel().getPredefinedTextFragments();
if(r)for(var P=0;P<r.getFragmentCount();P++){var I=r.getFragment(P).getDisplay();u(I)}b.registWatchingTargetEnd(m)}}function y(){la.call(this);pb.call(this);var a=this,b=this.protectedMethod,c;this.protectedCreateJqUiImpl=function(d){c=d.createWidgetCtrl(a.getModel());c.setValueChangedListener(function(){b.fireCommunicationEvent(la.KEY_SELECTED_BY_MANUAL)});return c.getJqUi()};this.protectedDoPropertyChanged=function(d){d==Z.KEY_FILTER_FRONT_LABEL||d==Z.KEY_FILTER_FRONT_LABEL_POSITION||d==Z.KEY_FILTER_FRONT_LABEL_LENGTH?
c.updateFrontLabel():d==Z.KEY_FONT_SIZE_ENHANCED?c.updateSurface():b.discreteItemFilterDoPropertyChanged(d)};this.protectedRepaint=function(){c.updateFrontLabel()};this.protectedGetFilterSelectedValue=function(){return c.getSelectedItem()};this.protectedUpdateCtrlModel=function(d){c.setSelectableItems(d)};this.protectedUpdateSelectedValue=function(d){d=d&&0<d.length?d[0]:(d=b.getSelectableItems())&&0<d.length?d[0]:null;c.setSelectedItem(d)}}function M(){la.call(this);pb.call(this);var a=this,b=this.protectedMethod,
c;this.protectedCreateJqUiImpl=function(d){c=new Za;c.bindWidget(a.getModel());c.setValueChangedListener(function(){b.fireCommunicationEvent(la.KEY_SELECTED_BY_MANUAL)});return c.getJqUi()};this.protectedDoPropertyChanged=function(d){d==Wb.KEY_LAYOUT_MODE||d==Wb.KEY_ITEMS_PER_ROW||d==Wb.KEY_CHARS_PER_ITEM?c.relayout():d==Wb.KEY_SIZE_MODE&&a.getModel().getLayoutMode()==Wb.LAYOUT_MODE_WRAP?c.relayout():b.discreteItemFilterDoPropertyChanged(d)};this.protectedRepaint=function(){c.requestRepaint()};this.protectedGetFilterSelectedValue=
function(){return c.getSelectedItems().slice(0)};this.protectedUpdateCtrlModel=function(d){c.setSelectableItems(d)};this.protectedUpdateSelectedValue=function(d){d||(d=(d=b.getSelectableItems())&&0<d.length?[d[0]]:[]);c.setSelectedItems(d)}}function oa(){Da.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 H(){la.call(this);pb.call(this);var a=this,b=this.protectedMethod,c;this.protectedCreateJqUiImpl=function(d){c=d.createWidgetCtrl(a.getModel());c.setValueChangedListener(function(){b.fireCommunicationEvent(la.KEY_SELECTED_BY_MANUAL)});return c.getJqUi()};this.protectedDoPropertyChanged=function(d){d==Z.KEY_FILTER_FRONT_LABEL||d==Z.KEY_FILTER_FRONT_LABEL_POSITION||d==Z.KEY_FILTER_FRONT_LABEL_LENGTH?
c.updateFrontLabel():d==Z.KEY_FONT_SIZE_ENHANCED?c.updateSurface():b.discreteItemFilterDoPropertyChanged(d)};this.protectedRepaint=function(){c.updateFrontLabel()};this.protectedGetFilterSelectedValue=function(){var d=c.getSelectedItems();return d?d.slice(0):cd.createItemAll()};this.protectedUpdateCtrlModel=function(d){c.setSelectableItems(d)};this.protectedUpdateSelectedValue=function(d){d||(d=a.getModel().isMultiSelectable()?null:(d=b.getSelectableItems())&&0<d.length?[d[0]]:[]);c.setSelectedItems(d)}}
function Q(){la.call(this);jb.call(this);var a=this,b=this.protectedMethod,c,d;this.reparseRelativeDate=function(){d(null,n)};this.protectedCreateJqUi=function(G){c=G.createWidgetCtrl(a.getModel());c.setValueChangedListener(function(){b.fireCommunicationEvent(la.KEY_SELECTED_BY_MANUAL)});return c.getJqUi()};this.run=function(G){if(a.getModel().getRelativeModel()){var B=null;d=function(w,t){var q=a.getModel().getRelativeModel(),m=a.protectedGetDatePart(),u=G(function(r){var P=r.fromDate;r=r.toDate;
a.getModel().updateDate(P,r);w&&w();P="["+P+","+r+"]";B!=P&&(B=P,t&&t())});u.setShowBlocking(!1);u.parseRelativePeriod(q,m)};d(n)}else n()};this.protectedGetDatePart=function(){return null};this.protectedDoPropertyChanged=function(G){G==od.KEY_DATE_INITIAL?n():G==Z.KEY_FILTER_FRONT_LABEL||G==Z.KEY_FILTER_FRONT_LABEL_POSITION||G==Z.KEY_FILTER_FRONT_LABEL_LENGTH?c.updateFrontLabel():G==Z.KEY_FONT_SIZE_ENHANCED?c.updateSurface():b.filterSimilaryDoPropertyChanged(G)};this.protectedRepaint=function(){c.updateFrontLabel()};
this.getFilterSelectedValue=function(){var G=c.getFromDateMs(),B=c.getToDateMs(),w=a.getModel().isContainNull();w=new Cd(G,B,w);G=f(G);B=f(B);var t=a.protectedConfirmSingleParamValue(G,B);w.setParamValue(t,G,B);return w};this.protectedConfirmSingleParamValue=function(G,B){return null};var f=function(G){G=new Date(G);return G.getFullYear()+h(G.getMonth()+1)+h(G.getDate())},h=function(G){return(9<G?"":"0")+G},n=function(){c.setDateMs([a.getModel().getFromDate(),a.getModel().getToDate()]);b.fireCommunicationEvent(la.KEY_SELECTED_BY_API)}}
function T(){Q.call(this)}function U(){Q.call(this);this.protectedGetDatePart=function(){return"y"};this.protectedConfirmSingleParamValue=function(a,b){return a.substring(0,4)}}function Y(){Q.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 ja(){Q.call(this);this.protectedGetDatePart=function(){return"m"};this.protectedConfirmSingleParamValue=function(a,
b){return a.substring(0,6)}}function qa(){Q.call(this);this.protectedGetDatePart=function(){return"d"};this.protectedConfirmSingleParamValue=function(a,b){return a}}function Ga(){Qa.call(this);Ya.call(this);Ra.call(this);var a=this,b=this.protectedMethod,c;this.protectedCreateJqUi=function(h){var n=!(h.isDesigntime()||h.isPreview());c=h.createWidgetCtrl(a.getModel());c.updateTopBar(a.getModel().getCardDescription());c.setActionListener(function(G,B,w){B==za.ACTION_FULLSCREEN&&(n?b.doFullscreen(c.getJqUi()):
b.fakeAction(G,w))});c.hookFullscreenAutonomy(b.markFullscreen,f);d();return c.getJqUi()};this.protectedRepaint=function(){c.updateCardSurface()};this.getJqPhysicalContainer=function(){return c.getJqContent()};this.protectedDoPropertyChanged=function(h){h==Z.KEY_CARD_TITLE?c.updateTopBar(a.getModel().getCardDescription()):h==Z.KEY_CARD_SURFACE?c.updateCardSurface():h==Mc.KEY_FULLSCREEN_ALLOWED?a.getModel().traversalMeAndDescendents(function(n){n.isInstanceOf(Z.WidgetSuperType_FullscreenSupported)&&
b.getCtxApi().getWidgetUiObject(n).updateUiWhenAncestorFullscreenAllowedChanged()}):b.fullscreenSupportedWidgetDoPropertyChanged(h)};this.updateCardSurface=function(){c.updateCardSurface()};this.updateUiWhenAncestorFullscreenAllowedChanged=function(){d();a.protectedRepaint()};this.protectedFullScreenChanged=function(h){c.updateFullscreenButtonDisplay(h);h&&setTimeout(f,100)};this.protectedUpdateButtonStateByAncestorFullscreen=function(h){d(h)};var d=function(h){h=a.getModel().getFullscreenAllowed()==
Mc.FULLSCREEN_ALLOWED_NONE||a.getModel().isAncestorForbidFullscreen()||h;c.hideButtons(h?za.ACTION_FULLSCREEN:za.ACTION_NONE)},f=function(){var h={};a.getModel().traversalMeAndDescendents(function(B){if(B.isContainer()&&!B.isInstanceOf(Z.WidgetSuperType_CompositeContainer)){var w=new tb;w.setDesigningSize(B.getClientWidth(),B.getClientHeight());h[B.getName()]=w;for(var t=0;t<B.getWidgetCount();t++){var q=B.getWidget(t);w.appendBlock(q.getName(),q.getX(),q.getY(),q.getWidth(),q.getHeight(),q.isWidthLocked(),
q.isHeightLocked())}}});var n=c.getJqUi().prop("offsetWidth"),G=c.getJqUi().prop("offsetHeight");a.getModel().setRectangle(0,0,n,G);a.getModel().traversalMeAndDescendents(function(B){var w=h[B.getName()];if(w){w.transformTo(B.getClientWidth(),B.getClientHeight());for(var t=0;t<B.getWidgetCount();t++){var q=B.getWidget(t),m=w.searchBlockRect(q.getName());m&&q.setRectangle(m[0],m[1],m[2],m[3])}}})}}function za(){Da.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 ab(){Qa.call(this);Ya.call(this);hb.call(this);var a=this,b=this.protectedMethod,c,d=0,f;this.protectedHookWidget=function(q){q.addChildrenChangedListener(G)};this.protectedUnhookWidget=function(q){q.removeChildrenChangedListener(G)};
this.protectedCreateJqUi=function(q){c=new wa;c.bindWidget(a.getModel());q=c.getJqUi();b.setupDesigntimeRectangle(c.getJqContent());return q};this.payAttentionTo=function(q,m){if(b.isAnotherManualSelectedAffectedMe(q,m)){m=a.getModel();var u=(q=q.getModel().getAffectedTargets())?q.getTarget(m.getName()):null;if(u&&u.isSettingComplete()){q=u.getUsableParamName();var r=b.createParamValueSearcherApi();q=r?r.searchDisplayText(q):void 0;if(void 0!==q&&r.isAnyOneExceptedItemAll())if(u=u.getTabIndex(),0>
u){for(u=0;u<m.getWidgetCount();u++)if(m.getWidget(u).getHeadText()==q){h(u);return}console&&console.warn("Tab '#1' at '#2' not exist.".replace("#1",q).replace("#2",m.getDisplayName()))}else u<m.getWidgetCount()?h(u):console&&console.warn("Tab index #1 at '#2' not exist.".replace("#1",u).replace("#2",m.getDisplayName()))}}};var h=function(q){setTimeout(function(){a.getModel().switchToSubTabbed(q)},0)},n=this.updateInputParams;this.updateInputParams=function(q){var m=ed.createItem(Z.AffectedType_Tab);
m.setTargetWidgetName(a.getModel().getName());q=new ed;q.addItem(m);m={};q.reverse("whoCare",m);q=m[a.getModel().getName()];n(q)};this.protectedRunImpl=function(q){if(b.isDesigntime()){q=a.getModel();for(var m=0;m<q.getWidgetCount();m++){var u=q.getWidget(m),r=u.getDurationMode();r.getType()==Yc.TYPE_ByData&&(r.setRuntimeData([cd.createItemAll()]),u=b.getCtxApi().getWidgetUiObject(u),b.fireCommunicationEvent(la.KEY_PLAY,u))}}else if(a.getModel().isTopLevelSlideshow()){var P=function(){var pa=a.getModel().isAllDescendentSlideshowRuntimePrepared();
pa&&void 0===f&&(f=!1,B());return pa};if(!P()){var I=function(){setTimeout(function(){!P()&&I()},1E3)};I()}}};this.protectedRepaint=function(){c.updateHeadUi(!1)};this.getJqPhysicalContainer=function(){return c.getJqContent()};this.protectedDoPropertyChanged=function(q){q!=kc.KEY_TABBED_SELECTED&&q!=$c.KEY_HEAD_TEXT&&q!=kc.KEY_HEAD_POSITION&&q!=kc.KEY_HEAD_PATTERN&&q!=Z.KEY_FONT_SIZE_ENHANCED||c.updateHeadUi(!0)};this.updateCardSurface=function(){c.updateHeadUi(!0)};var G=function(q,m,u){q==Z.KEY_MOVE_CHILD&&
a.getModel()==m&&c.updateHeadUi(!0)},B=function(){var q=a.getModel();if(!0!==f&&!b.isDead()&&0!=q.getWidgetCount()){var m=q.getWidget(d);m.getDurationMode().playStart(function(){var u=!0===f;if(!u){var r=w();d!=r&&q.switchToSubTabbed(d);t(q.getWidget(r),!0,function(P){P.isSlideshowPlaying()&&(P.slideshowPause(!0),P.resetSlideshowStatus())});t(q.getWidget(d),!1,function(P){!P.isSlideshowPlaying()&&P.slideshowPause(!1)})}return u},function(u){!0!==f&&(u&&(d++,d>=q.getWidgetCount()&&(d=0)),setTimeout(B,
0))})&&(m=b.getCtxApi().getWidgetUiObject(m),b.fireCommunicationEvent(la.KEY_PLAY,m))}},w=function(){for(var q=a.getModel(),m=0;m<q.getWidgetCount();m++)if(q.getWidget(m).isVisible())return m;return-1};this.resetSlideshowStatus=function(){d=0;var q=a.getModel();q.switchToSubTabbed(d);for(var m=0;m<q.getWidgetCount();m++)q.getWidget(m).getDurationMode().resetPlayingStatus()};this.isSlideshowPlaying=function(){return!1===f};this.slideshowPause=function(q){f=q?!0:!1;if(q){q=a.getModel();for(var m=0;m<
q.getWidgetCount();m++)q.getWidget(m).getDurationMode().playStop()}else d=w(),B()};var t=function(q,m,u){var r=function(P){for(var I=0;I<P.getWidgetCount();I++){var pa=P.getWidget(I);if(pa instanceof kc&&pa.isSlideshowEnabled()){var Ea=b.getCtxApi().getWidgetUiObject(pa);u(Ea);if(!m)continue}pa.isContainer()&&r(pa)}};r(q)}}function Gb(){Da.call(this);this.getJqContent=function(){throw Error("Implement");};this.updateHeadUi=function(a){throw Error("Implement");}}function Ob(){Qa.call(this);jb.call(this);
var a=this,b=this.protectedMethod,c,d,f=!1;this.protectedCreateJqUi=function(w){c=$("<div>");h();return c};this.getJqPhysicalContainer=function(){return c};this.run=function(w){n()&&(d=w,B());f=!0};this.protectedDoPropertyChanged=function(w){w==Z.KEY_VISIBLE&&h()};this.payAttentionTo=function(w,t){if(n()&&(t==la.KEY_VISUAL_DATA_PREPARED_SUCCESS||t==la.KEY_VISUAL_DATA_PREPARED_ERROR)){w=w.getModel();var q=G();q&&q.isPreparedValueRelatedToWidget(w.getName())&&(t==la.KEY_VISUAL_DATA_PREPARED_SUCCESS?
B():t==la.KEY_VISUAL_DATA_PREPARED_ERROR&&a.getModel().getDurationMode().setRuntimeData(null))}};this.getFilterSelectedValue=function(){return a.getModel().getDurationMode().getPlayingData()};var h=function(){var w=a.getModel().isVisible();n()&&f?(c.stop(!0,!0),w?(c.css("visibility",""),c.fadeTo(1E3,1)):c.fadeTo(500,.2,function(){c.css("visibility","hidden")})):c.css("visibility",w?"":"hidden")},n=function(){return!b.isDesigntime()&&a.getModel().getParent().isSlideshowEnabled()},G=function(){var w=
a.getModel().getDurationMode();return w.getType()==Yc.TYPE_ByData?w.getFilterSource():null},B=function(){var w=a.getModel(),t=G();t&&t.isValid()&&t.isConfirmedToGetPreparedValue(w)&&t.getPreparedValuePeer(w,d,function(q){w.getDurationMode().setRuntimeData(q)})}}function Zb(){la.call(this);var a=this,b=this.protectedMethod,c,d,f,h,n;this.protectedCreateJqUi=function(m){c=$("<div>");c.css("overflow","hidden");b.setupDesigntimeRectangle(c);f=$("<img>");f.css("position","absolute");f.appendTo(c);w();
return c};this.protectedDoPropertyChanged=function(m){m==Z.KEY_REF?w():m==rb.KEY_SCALE?G():m==rb.KEY_ALIGN&&B()};this.protectedRepaint=function(){f&&G()};var G=function(){var m=a.getModel(),u=m.getWidth(),r=m.getHeight();if(m.getScale()==rb.SCALE_NON)m=h,u=n;else{m=u/r;var P=h/n;P>m?(m=u,u/=P):(m=P<m?r*P:u,u=r)}f.css({height:u+"px",width:m+"px"});B()},B=function(){var m=a.getModel(),u=m.getAlign()==(rb.HALIGN_CENTER|rb.VALIGN_MIDDLE)?!0:!1,r=m.getHeight();m=m.getWidth();var P=f.height(),I=f.width(),
pa=0,Ea=0;u&&(pa=parseInt((r-P)/2),Ea=parseInt((m-I)/2));f.css({top:pa+"px",left:Ea+"px"})},w=function(){d&&(f.show(),d.remove(),c.css("background","none"));c.attr("title",null);var m=a.getModel().getReferenceCustomMap();va.getPictureLoader()(m,t,q)},t=function(m,u,r){h=u;n=r;f.attr("src",m);G()},q=function(m){f&&f.hide();c.css("background","#fff");d=$("<div>");d.addClass("dsb-widget-picture-loaderror");var u=A.get("pictureCanNotBeFind","\u627e\u4e0d\u5230\u5bf9\u5e94\u7684\u56fe\u7247"),r=$("<div>");
r.text(u);var P=$("<div>");P.css("fontSize","12px");P.text(m);r.appendTo(d);P.appendTo(d);d.appendTo(c);c.attr("title",u+"\r\n"+m)}}function Sb(){Qa.call(this);var a=this,b=this.protectedMethod,c;this.protectedCreateJqUi=function(f){c=$("<div>");d();b.setupDesigntimeRectangle(c);return c};this.getJqPhysicalContainer=function(){return c};this.protectedDoPropertyChanged=function(f){f==Rb.KEY_SURFACE&&d()};this.run=function(f){!b.isDesigntime()&&a.getModel().isFrozen()&&c.addClass("dsb-widget-titlebar-frozen")};
var d=function(){var f;if(f=a.getModel().getSurfaceModel()){var h=f.getBackgroundColor();var n=f.getSeparaterLineWidth();f=f.getSepataterColor()}else f=Ta.dip(Ta.DSB_PAGE_TITLE_BAR),h=f[Ta.Key_PageTitleBar_BackgroundColor],n=f[Ta.Key_PageTitleBar_SeparaterLineWidth],f=f[Ta.Key_PageTitleBar_SeparaterColor];n=(n?n:0)+"px solid "+(f?f:"transparent");c.css("background-color",h?h:"");c.css({"box-sizing":"border-box","border-bottom":n})}}function hc(){var a=this,b,c,d,f;this.destroy=function(){c&&c.removePropertyChangedListener(a.protectedDoPropertyChanged);
setTimeout(function(){c=b=null},2E3)};this.setGlobalDependence=function(w){b=w};this.setWidget=function(w){c=w;c.addPropertyChangedListener(G)};this.getWidget=function(){return c};this.getJqUi=function(){d||(d=$("<div>"),d.css({"overflow-x":"hidden","overflow-y":"auto"}),f=new Bb,f.setAlign(Bb.ALIGN_CENTER),f.getJqUi().addClass("dsb-propertyarea-lineitem"),f.getJqUi().appendTo(d),h(),a.protectedInitUi(d));return d};var h=function(){var w=xb.getInstance(a.getWidget().getWidgetTypeName()).getTypeDisplayName(),
t=a.getWidget().getDisplayName(),q=t;w!=t&&(q=w+": "+t);f.setText(q)},n=function(w,t){if(w.length){var q=b.getCommandManager().createCompositeAction();for(var m=0;m<w.length;m++)q.appendUnitAction(w[m])}else q=w;w=a.getWidget().getDisplayName();t=A.get("actionCaption","#1\u4fee\u6539#2").replace("#2",t).replace("#1",w);q.setCaption(t);b.getCommandManager().perform(q)},G=function(w,t){w==c&&(t==Z.KEY_DISPLAY_NAME&&h(),a.protectedDoPropertyChanged(t))};this.protectedDoPropertyChanged=function(w){throw Error("Override");
};this.protectedInitUi=function(w){throw Error("Override");};var B=function(w){return w.getUserObject().getText()};this.protectedMethod={getGlobal:function(){return b},performAction:n,createJqCap:function(){var w=$("<div>");w.addClass("dsb-propertyarea-gap");return w},createJqGroupTitle:function(w,t){var q=$("<div>");q.addClass("dsb-propertyarea-grouptitle");w=new Bb(w);var m=w.getJqUi();m.addClass("dsb-propertyarea-grouptitle-label");m.appendTo(q);if(t||0==t)m.css("left",0),m.css("right",0),w.setAlign(t);
return q},createJqLineItem:function(w,t){var q=new Bb(w);w=q.getJqUi();w.addClass("dsb-propertyarea-lineitem-caption");t.setUserObject(q);t=t.getJqUi();t.addClass("dsb-propertyarea-lineitem-ctrl");q=$("<div>");q.addClass("dsb-propertyarea-lineitem");q.append(w);q.append(t);return q},createTextEditor:function(w,t,q,m,u,r){var P=function(pa){if(q)q(pa);else{var Ea=B(I),Aa=new Pb;Aa.setMethod(w,t);Aa.setValue(pa);n(Aa,Ea)}},I=new Eb;I.addActionListener(function(pa){pa=a.getWidget().getDisplayName();
var Ea=B(I),Aa=I.getModel(),qb=new pd;qb.setCaption(pa,Ea);qb.setEmptyEnabled(m);qb.setMaxLength(u);qb.setClosingChecker(r);qb.setText(Aa,function(yb,Yb){yb&&P(Yb)});qb.showDialogLeftAnchorTo(I.getUserObject().getJqUi())});m&&(I.setClearable(!0),I.addClearListener(function(pa){P("")}));return I},createTextAreaEditor:function(w,t){var q=function(u){var r=B(m),P=new Pb;P.setMethod(w,t);P.setValue(u);n(P,r)},m=new Eb;m.addActionListener(function(u){u=a.getWidget().getDisplayName();var r=B(m),P=m.getModel(),
I=new Dd;I.setSize(640,480);I.setTitle(u,r);I.showDialog(P,function(pa,Ea){pa&&q(Ea)})});m.setClearable(!0);m.addClearListener(function(u){q("")});return m},updateEditorEnabled:function(w,t){w.setEnabled(t);w.getUserObject().setEnabled(t)},updateEditorVisible:function(w,t){w.getJqUi().parent().css("display",t?"":"none")},getEditorCaption:B,createSpinerHandlerWrapper:function(w){var t;return function(q,m,u,r){r==$b.CHANGED_BY_MANUAL_ADJUST?(clearTimeout(t),t=setTimeout(function(){w(q,m,u)},625)):r==
$b.CHANGED_BY_MANUAL_EDIT&&w(q,m,u)}}}}function fc(){hc.call(this);this.protectedInitUi=function(a){};this.protectedDoPropertyChanged=function(a){}}function pc(){var a=this,b=this.protectedMethod,c,d,f,h=function(u){var r=va.getWidgetSourceSelector(),P=a.getWidget().getBackgroundPicture(),I=P?P.getReferenceCustomMap():null;r.selectPicture(I,function(pa){if(pa){var Ea=b.getEditorCaption(u),Aa=new rb;Aa.setReferenceCustomMap(pa);Aa.setScale(P?P.getScale():rb.SCALE_FULL);Aa.setAlign(P?P.getAlign():rb.HALIGN_LEFT|
rb.VALIGN_TOP);w(Aa,Ea)}})},n=function(u){u=b.getEditorCaption(u);w(null,u)},G=function(u,r,P){u=b.getEditorCaption(u);r=a.getWidget().getBackgroundPicture();var I=new rb;I.setReferenceCustomMap(r.getReferenceCustomMap());I.setScale(P);I.setAlign(r.getAlign());w(I,u)},B=function(u,r,P){u=b.getEditorCaption(u);r=a.getWidget().getBackgroundPicture();var I=new rb;I.setReferenceCustomMap(r.getReferenceCustomMap());I.setScale(r.getScale());I.setAlign(P);w(I,u)},w=function(u,r){var P=a.getWidget(),I=new Pb;
I.setMethod(P.getBackgroundPicture,P.setBackgroundPicture);I.setValue(u);b.performAction(I,r)},t=function(){var u=a.getWidget().getBackgroundPicture(),r=u&&u.getReferenceCustomMap()?!0:!1,P=!1;r?(c.setModel(A.get("refHasSet","\u5df2\u8bbe\u7f6e")),d.setSelected(u.getScale()),f.setSelected(u.getAlign()),P=u.isAlignNeccessary()):c.setModel("");b.updateEditorVisible(d,r);b.updateEditorVisible(f,P)},q=function(u,r,P){var I=function(Ea){return(P&Ea)==Ea},pa=I(rb.HALIGN_LEFT)?A.get("pictureAlignLeft","\u5de6"):
I(rb.HALIGN_RIGHT)?A.get("pictureAlignRight","\u53f3"):A.get("pictureAlignCenter","\u4e2d");I=I(rb.VALIGN_TOP)?A.get("pictureAlignTop","\u4e0a"):I(rb.VALIGN_BOTTOM)?A.get("pictureAlignBottom","\u4e0b"):A.get("pictureAlignMiddle","\u4e2d");pa=pa+"-"+I;u||r.css({display:"inline-block",padding:0,margin:0,width:"33%",height:"30%","text-align":"center","line-height":"50px"});r.text(pa)},m=function(u,r,P){switch(P){case rb.SCALE_NON:var I=A.get("pictureScaleNon","\u539f\u59cb\u5c3a\u5bf8");break;case rb.SCALE_ADAPTIVE:I=
A.get("pictureScaleAdaptive","\u9002\u5e94");break;case rb.SCALE_FULL:I=A.get("pictureScaleFull","\u5145\u6ee1");break;case rb.SCALE_TILED:I=A.get("pictureScaleTiled","\u5e73\u94fa")}r.text(I)};b.backgroundInitUi=function(u){c=new Eb;c.setClearable(!0);c.addActionListener(h);c.addClearListener(n);d=new Xa;d.setItemModels([rb.SCALE_NON,rb.SCALE_ADAPTIVE,rb.SCALE_FULL,rb.SCALE_TILED]);d.setCustomPainter(m);d.addSelectedChangedListener(G);f=new Xa;f.setItemModels([rb.HALIGN_LEFT|rb.VALIGN_TOP,rb.HALIGN_CENTER|
rb.VALIGN_TOP,rb.HALIGN_RIGHT|rb.VALIGN_TOP,rb.HALIGN_LEFT|rb.VALIGN_MIDDLE,rb.HALIGN_CENTER|rb.VALIGN_MIDDLE,rb.HALIGN_RIGHT|rb.VALIGN_MIDDLE,rb.HALIGN_LEFT|rb.VALIGN_BOTTOM,rb.HALIGN_CENTER|rb.VALIGN_BOTTOM,rb.HALIGN_RIGHT|rb.VALIGN_BOTTOM]);f.setCustomPainter(q);f.addSelectedChangedListener(B);var r=b.createJqGroupTitle(A.get("pageBackgroundGroupTitle","\u80cc\u666f\uff1a")),P=b.createJqLineItem(A.get("pageBackgroundPicture","\u80cc\u666f\u56fe\u7247"),c),I=b.createJqLineItem(A.get("pageBackgroundScale",
"\u56fe\u7247\u7f29\u653e"),d),pa=b.createJqLineItem(A.get("pageBackgroundAlign","\u56fe\u7247\u5bf9\u9f50"),f);u.append(r);u.append(P);u.append(I);u.append(pa);t()};b.backgroundDoPropertyChanged=function(u){u==Z.KEY_PAGE_BACKGROUND&&t()}}function oc(){var a=this,b=this.protectedMethod,c,d,f={},h=function(){var B=a.getWidget(),w=!0;if(B.isInstanceOf(Z.WidgetSuperType_CardSimilary)){w=B.isBareSurface();var t=B.getCardSurfaceMode()==ec.Surface_Custom;w=!w&&t}t=!1;var q="Unified";if(B=B.getCardBorder())q=
B.getType(),t=q==zc.TYPE_MODEL||q==zc.TYPE_IMAGE;c.setSelected(q);b.updateEditorVisible(c,w);d.setModel(B);b.updateEditorVisible(d,w&&t)},n=function(B){var w=d.getJqUi(),t=w.children(".qing-custom-cardlook");0==t.length&&(t=$("<div>"),t.css("border","1px solid #ccc"),t.addClass("qing-custom-cardlook"),Ja.layoutCtrlWithLRTB(t,2,32,null,5,2,null),t.appendTo(w));B&&B.getType()==zc.TYPE_IMAGE?(B=$(document.createDocumentFragment()),G(B,20,20,null,0,null,5,"0px 1px 1px 1px"),G(B,20,20,null,null,0,5,"1px 1px 0px 1px"),
G(B,0,null,21,4,4,null,"1px 1px 1px 0px"),G(B,null,0,21,4,4,null,"1px 0px 1px 1px"),B.appendTo(t)):t.empty();return""},G=function(B,w,t,q,m,u,r,P){var I=$("<div>");I.css({"box-sizing":"border-box",border:"1px dotted #ccc","border-width":P});I.appendTo(B);Ja.layoutCtrlWithLRTB(I,w,t,q,m,u,r)};b.initUiOfCardBorder=function(B,w,t){t&&(w=["Unified"].concat(w));c=new Xa;c.setItemModels(w);c.setCustomPainter(function(q,m,u){q=u==zc.TYPE_SIMPLE?A.get("cardBorderSimple","\u7b80\u6613"):u==zc.TYPE_MODEL?A.get("cardBorderCustom",
"\u81ea\u5b9a\u4e49"):u==zc.TYPE_IMAGE?A.get("cardBorderImage","\u8d34\u56fe"):"Unified"==u?A.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"):"";m.text(q)});c.addSelectedChangedListener(function(q,m,u){(m="Unified"==m?null:m)&&!f[m]&&(f[m]=a.getWidget().getCardBorder());q=b.getEditorCaption(q);u=(m="Unified"==u?null:u)?f[m]:null;m&&!u&&(u=zc.createInstance(m),f[m]=u);m=new Pb;m.setMethod(a.getWidget().getCardBorder,a.getWidget().setCardBorder);m.setValue(u);b.performAction(m,q)});d=new Eb;d.setCustomPainter(n);
d.addActionListener(function(q){var m=a.getWidget().isInstanceOf(Z.WidgetSuperType_CardSimilary);q=m?a.getWidget().getDisplayName():A.get("unifiedInPage","\u9875\u9762\u7edf\u4e00");var u=a.getWidget().getCardBorder();if(u.getType()==zc.TYPE_MODEL){var r=Ta.getPageBackgroundColor();m=m?a.getWidget().getBackgroundColor():null;m||(m=a.getWidget().isOpacityRequired(),m=Ta.getCardBackgroundColor(m));var P=new Ed;P.setContextStyle(r,m);P.setCardLookModel(u.getCardLook());P.show(q,function(I){var pa=b.getEditorCaption(c),
Ea=new Pb;Ea.setMethod(u.getCardLook,u.setCardLook);Ea.setValue(I);b.performAction(Ea,pa)})}else u.getType()==zc.TYPE_IMAGE&&(P=new Fd,P.setImage(u.getImage(),u.getFixedEdges()),P.show(q,function(I,pa){var Ea=b.getEditorCaption(c),Aa=new Pb;Aa.setMethod(function(){return[u.getImage(),u.getFixedEdges()]},function(qb){u.setDefinition(qb[0],qb[1])});Aa.setValue([I,pa]);b.performAction(Aa,Ea)}))});B.append(b.createJqLineItem(A.get("cardBorder","\u5361\u7247\u8fb9\u6846"),c));B.append(b.createJqLineItem(A.get("cardBorderSetup",
"\u8fb9\u6846\u81ea\u5b9a\u4e49"),d));h()};b.cardBorderDoPropertyChanged=function(B){B!=Z.KEY_PAGE_UNIFIED_CARD&&B!=Z.KEY_CARD_SURFACE||h()}}function mc(){var a=this,b=this.protectedMethod,c,d=function(){var n=a.getWidget();c.setModel(n.getCardTopBarCommon());var G=!0;n.isInstanceOf(Z.WidgetSuperType_CardSimilary)&&(G=!n.isBareSurface());b.updateEditorVisible(c,G)},f=function(n){var G=b.getEditorCaption(c),B=new Pb;B.setMethod(a.getWidget().getCardTopBarCommon,a.getWidget().setCardTopBarCommon);B.setValue(n);
b.performAction(B,G)},h=function(n){return a.getWidget().isInstanceOf(Z.WidgetSuperType_CardSimilary)?n?A.get("custom","\u81ea\u5b9a\u4e49"):A.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"):n?A.get("refHasSet","\u5df2\u8bbe\u7f6e"):""};b.initUiOfCardTopBarCommon=function(n){var G=a.getWidget();if(G.isInstanceOf(Z.WidgetSuperType_CardSimilary)){var B=A.get("cardIcon","\u6807\u9898\u680f\u56fe\u7247");var w=Gd}else B=A.get("cardTopBar","\u5361\u7247\u6807\u9898\u680f"),w=Hd;c=new Eb;c.setClearable(!0);
c.addActionListener(function(t){t=new w;t.setWidget(G);t.show(function(q){f(q)})});c.addClearListener(function(t){f(null)});c.setCustomPainter(h);B=b.createJqLineItem(B,c);n.append(B);d()};b.cardTopBarCommonDoPropertyChanged=function(n){n!=Z.KEY_PAGE_UNIFIED_CARD&&n!=Z.KEY_CARD_TITLE&&n!=Z.KEY_CARD_SURFACE||d()}}function ic(){function a(ea,Ia,cb){this.getWidth=function(){return ea};this.getHeight=function(){return Ia};this.isMatched=function(db,Cb){return ea==db&&Ia==Cb};this.toString=function(){return ea+
"*"+Ia+" "+cb}}hc.call(this);pc.call(this);oc.call(this);mc.call(this);var b=this,c=this.protectedMethod,d,f,h,n,G,B,w,t,q,m,u,r;this.protectedInitUi=function(ea){f=new Xa;f.setItemModels(Ua());f.addSelectedChangedListener(Ea);h=new $b;h.setConstraint(200,65535,10);h.addValueChangedListener(Aa,!0);n=new $b;n.setConstraint(200,65535,10);n.addValueChangedListener(Aa,!0);G=new Bb(A.get("mobileDesiredTips","\u4ee5\u4e0a\u5c3a\u5bf8\u81ea\u52a8\u8bc6\u522b\u4e3a\u624b\u673a\u6a21\u5f0f"));G.getJqUi().css({"text-align":"right",
padding:"8px"});var Ia=c.createJqGroupTitle(A.get("pageSizeGroupTitle","\u8bbe\u8ba1\u65f6\u9875\u9762\u5927\u5c0f\uff1a")),cb=c.createJqLineItem(A.get("size","\u5c3a\u5bf8"),f),db=c.createJqLineItem(A.get("sizeWidth","\u5bbd\u5ea6"),h),Cb=c.createJqLineItem(A.get("sizeHeight","\u9ad8\u5ea6"),n);ea.append(Ia);ea.append(cb);ea.append(db);ea.append(Cb);ea.append(G.getJqUi());setTimeout(Vc,0);ea.append(c.createJqCap());c.backgroundInitUi(ea);q=new Vb;q.addBlurListener(Ub);q.addAcceptableListener(jc);
Ia=c.createJqLineItem(A.get("pageWatermark","\u6c34\u5370"),q);ea.append(Ia);c.updateEditorVisible(q,!1);Zc();ea.append(c.createJqCap());ea.append(c.createJqCap());ea.append(P(A.get("justForDesktop","\u4ee5\u4e0b\u4ec5\u5728\u684c\u9762\u7aef\u751f\u6548")));Ia=c.createJqGroupTitle(A.get("exhibitionModeGroupTitle","\u5c55\u793a\u6a21\u5f0f\uff1a"));B=new fb;B.addSelectionChangedListener(sc);cb=B.createJqUi();ea.append(Ia);ea.append(cb);B.setSelection(b.getWidget().getExhibitionMode());ea.append(c.createJqCap());
I(ea);ea.append(c.createJqCap());ea.append(c.createJqCap());ea.append(P(A.get("justForMobile","\u4ee5\u4e0b\u4ec5\u5728\u79fb\u52a8\u7aef\u751f\u6548")));m=$("<div>");pa(ea,m);ea.append(c.createJqCap());m.appendTo(ea);ea.append(c.createJqCap());ea.append(c.createJqCap());ea.append(c.createJqCap())};var P=function(ea){ea="--- @ ---".replace("@",ea);return c.createJqGroupTitle(ea,Bb.ALIGN_CENTER)},I=function(ea){w=new Xa;w.setItemModels([Z.Skin_White,Z.Skin_DarkBlue,Z.Skin_Gold,Z.Skin_Cyan,Z.Skin_Custom]);
w.setCustomPainter(function(Ia,cb,db){Ia=db==Z.Skin_Custom?A.get("custom","\u81ea\u5b9a\u4e49"):db==Z.Skin_Cyan?A.get("skinCyan","\u9759\u8c27\u9752"):db==Z.Skin_Gold?A.get("skinGold","\u571f\u8c6a\u91d1"):db==Z.Skin_DarkBlue?A.get("skinDarkBllue","\u6df1\u9083\u84dd"):db==Z.Skin_White?A.get("skinWhite","\u6de1\u96c5\u767d"):"";cb.text(Ia)});w.addSelectedChangedListener(yb);t=new Eb;t.setCustomPainter(ta);t.addActionListener(Yb);ea.append(c.createJqGroupTitle(A.get("skinGroupTitle","\u5916\u89c2\uff1a")));
ea.append(c.createJqLineItem(A.get("skin","\u5916\u89c2\u98ce\u683c"),w));ea.append(c.createJqLineItem(A.get("skinCustom","\u5916\u89c2\u81ea\u5b9a\u4e49"),t));c.initUiOfCardBorder(ea,[zc.TYPE_SIMPLE,zc.TYPE_MODEL,zc.TYPE_IMAGE]);c.initUiOfCardTopBarCommon(ea);Rc()},pa=function(ea,Ia){Ia.append(c.createJqGroupTitle(A.get("mobileLayoutConverterGroupTitle","\u7ec4\u4ef6\u5728\u79fb\u52a8\u7aef\u81ea\u9002\u5e94\u5e03\u5c40\uff1a")));var cb=function(Cb,bc){var cc=new gb;cc.setUserObject(Cb);cc.setText(bc);
Cb=cc.getJqUi();Cb.css({position:"relative",height:"23px","margin-left":"8px"});Ia.append(Cb);return cc},db=cb(Z.MobileLayoutConverter_ByPosition,A.get("mobileLayoutConverterByPosition","\u6309\u4f4d\u7f6e"));cb=cb(Z.MobileLayoutConverter_InOrder,A.get("mobileLayoutConverterInOrder","\u6309\u5927\u7eb2\u4e2d\u7684\u987a\u5e8f"));u=new Ab;u.addElement(db);u.addElement(cb);u.addChangedListener(function(Cb,bc){if(bc){Cb=Cb.getUserObject();bc=A.get("mobileLayoutConverter","\u7ec4\u4ef6\u5728\u79fb\u52a8\u7aef\u81ea\u9002\u5e94\u5e03\u5c40");
var cc=b.getWidget(),rc=new Pb;rc.setMethod(cc.getMobileLayoutConverter,cc.setMobileLayoutConverter);rc.setValue(Cb);c.performAction(rc,bc)}});r=new Xa;r.setItemModels([!1,!0]);r.setCustomPainter(Db);r.addSelectedChangedListener(qb);db=c.createJqGroupTitle(A.get("mobileSkinGroupTitle","\u79fb\u52a8\u7aef\u5916\u89c2\uff1a"));cb=c.createJqLineItem(A.get("skin","\u5916\u89c2\u98ce\u683c"),r);ea.append(db);ea.append(cb);Va();r.setSelected(b.getWidget().isMobileSkinActive())};this.protectedDoPropertyChanged=
function(ea){ea==Z.KEY_PAGE_SIZE?Vc():ea==Z.KEY_PAGE_EXHIBITION_MODE?B.setSelection(b.getWidget().getExhibitionMode()):ea==Z.KEY_PAGE_SKIN?Rc():ea==Z.KEY_PAGE_WATERMARK?Zc():ea==Z.KEY_PAGE_MOBILE_LAYOUT_CONVERTER?Va():ea==Z.KEY_PAGE_MOBILE_SKIN_ACTIVE?r.setSelected(b.getWidget().isMobileSkinActive()):(c.backgroundDoPropertyChanged(ea),c.cardBorderDoPropertyChanged(ea),c.cardTopBarCommonDoPropertyChanged(ea))};var Ea=function(ea,Ia,cb){ea=c.getEditorCaption(ea);if(cb!=a.CUSTOM){Ia=cb.getWidth();cb=
cb.getHeight();var db=new qd;db.setValue(b.getWidget(),Ia,cb);c.performAction(db,ea)}},Aa=function(ea,Ia,cb){ea=c.getEditorCaption(ea);Ia=h.getValue();cb=n.getValue();var db=new qd;db.setValue(b.getWidget(),Ia,cb);c.performAction(db,ea)},qb=function(ea,Ia,cb){ea=c.getEditorCaption(ea);Ia=b.getWidget();var db=new Pb;db.setMethod(Ia.isMobileSkinActive,Ia.setMobileSkinActive);db.setValue(cb);c.performAction(db,ea)},yb=function(ea,Ia,cb){ea=c.getEditorCaption(ea);Ia=cb==Z.Skin_Custom?c.getGlobal().getDashboardModel().getCurrentCosmeticModel():
null;Dc(cb,Ia,ea)},Yb=function(ea){ea=new Id;ea.setCosmeticModel(c.getGlobal().getDashboardModel().getCurrentCosmeticModel().copyToEdit());ea.show(function(Ia){var cb=c.getEditorCaption(w);Dc(Z.Skin_Custom,Ia,cb)})},Ub=function(ea){yc()},jc=function(ea,Ia){Ia?yc():Zc()},sc=function(ea){var Ia=A.get("exhibitionMode","\u5c55\u793a\u6a21\u5f0f"),cb=b.getWidget(),db=new Pb;db.setMethod(cb.getExhibitionMode,cb.setExhibitionMode);db.setValue(ea);c.performAction(db,Ia)},Dc=function(ea,Ia,cb){var db=b.getWidget(),
Cb=new Pb;Cb.setMethod(function(){return[db.getSkin(),db.getCustomCosmetic()]},function(bc){db.setSkin(bc[0],bc[1])});Cb.setValue([ea,Ia]);c.performAction(Cb,cb)},yc=function(){var ea=b.getWidget(),Ia=$.trim(q.getText()),cb=$.trim(ea.getWatermark());if(Ia!=cb){cb=c.getEditorCaption(q);var db=new Pb;db.setMethod(ea.getWatermark,ea.setWatermark);db.setValue(Ia);c.performAction(db,cb)}},Vc=function(){var ea=b.getWidget().getWidth(),Ia=b.getWidget().getHeight();G.getJqUi().css("display",b.getWidget().isMobileDesired()?
"":"none");m.css("display",b.getWidget().isMobileDesired()?"none":"");h.setValue(ea);n.setValue(Ia);for(var cb=Ua(),db=0;db<cb.length;db++){var Cb=cb[db];if(Cb!=a.CUSTOM&&Cb.isMatched(ea,Ia)){f.setSelected(Cb);return}}f.setSelected(a.CUSTOM)},Rc=function(){var ea=b.getWidget().getSkin();ea=ea?ea:Z.Skin_White;w.setSelected(ea);ea=ea==Z.Skin_Custom;t.setModel(b.getWidget().getCustomCosmetic());c.updateEditorVisible(t,ea)},Zc=function(){q.setText(b.getWidget().getWatermark())},Va=function(){u.toCheckTheElement(function(ea){return ea.getUserObject()==
b.getWidget().getMobileLayoutConverter()})},Db=function(ea,Ia,cb){ea=cb?A.get("mobileSkinActive","\u4e0e\u684c\u9762\u7aef\u76f8\u540c"):A.get("mobileSkinUnactive","\u7cfb\u7edf\u9ed8\u8ba4");Ia.text(ea)},ta=function(ea){var Ia=t.getJqUi(),cb=Ia.children(".qing-custom-cosmetic");cb.remove();if(ea){cb=$("<div>");cb.addClass("qing-custom-cosmetic");cb.css("border","1px solid #ccc");var db=$("<div>");db.css("background-color",ea.getItems(Ta.DSB_PAGE)[0].getValue());db.appendTo(cb);var Cb=$("<div>");
Cb.css("background-color",ea.getItems(Ta.DSB_CARD)[0].getValue());Cb.appendTo(cb);var bc=$("<div>");bc.css("background-color",ea.getItems(Ta.DSB_LABEL)[0].getValue());bc.appendTo(cb);Ja.layoutCtrlWithLRTB(db,1,null,"33%",1,1,null);Ja.layoutCtrlWithLRTB(Cb,"33%","33%",null,1,1,null);Ja.layoutCtrlWithLRTB(bc,null,1,"33%",1,1,null);Ja.layoutCtrlWithLRTB(cb,0,30,null,4,1,null);cb.appendTo(Ia)}return""},Ua=function(){d||(d=[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,"("+A.get("mobilePhone","\u624b\u673a")+")")]);return d};a.CUSTOM=A.get("custom","\u81ea\u5b9a\u4e49")}function fb(){var a=new Ab;this.addSelectionChangedListener=function(c){a.addChangedListener(function(d,f){f&&c(d.getUserObject())})};this.setSelection=function(c){a.toCheckTheElement(function(d){return c==d.getUserObject()})};this.createJqUi=function(){var c=
A.get("keepRatio","(\u4fdd\u6301\u6bd4\u4f8b)"),d=b(Z.ExhibitionMode_Full,A.get("exmodeFull","\u5145\u6ee1"),null,"icon_exmode_full"),f=b(Z.ExhibitionMode_Fit,A.get("exmodeFit","\u9002\u5e94"),c,"icon_exmode_fit"),h=b(Z.ExhibitionMode_HFull,A.get("exmodeHFull","\u6a2a\u5411\u5145\u6ee1"),c,"icon_exmode_hfull");c=b(Z.ExhibitionMode_Idle,A.get("exmodeIdle","\u4e0d\u7f29\u653e"),c,"icon_exmode_idle");var n=$("<div>");n.addClass("dsb-propertyarea-exmodearea");n.append(d);n.append(f);n.append(h);n.append(c);
return n};var b=function(c,d,f,h){var n=new gb;n.setUserObject(c);n.setText(d);a.addElement(n);c=n.getJqUi();c.addClass("dsb-propertyarea-exmodearea-item-radio");d=new Bb;f&&d.setText(f);f=d.getJqUi();f.addClass("dsb-propertyarea-exmodearea-item-text");d=$("<div>");d.addClass("dsb-propertyarea-exmodearea-item-icon");$a.background(d,h);h=$("<div>");h.addClass("dsb-propertyarea-exmodearea-item");h.append(c);h.append(f);h.append(d);return h}}function ob(){hc.call(this);pc.call(this);var a=this,b=this.protectedMethod,
c,d,f;this.protectedInitUi=function(B){h(B);B.append(b.createJqCap());b.backgroundInitUi(B);n(B)};var h=function(B){c=new $b;c.addValueChangedListener(function(m,u,r){m=b.getEditorCaption(m);u=c.getValue();r=new dd;r.setValue(a.getWidget(),0,0,a.getWidget().getWidth(),u);b.performAction(r,m)},!0);d=new dc;d.addCheckedListener(function(m,u){if(u){u=b.getEditorCaption(m);var r=new Pb;r.setMethod(a.getWidget().isFrozen,a.getWidget().setFrozen);r.setValue(m.isChecked());b.performAction(r,u)}});var w=
b.createJqGroupTitle(A.get("positionGroupTitle","\u4f4d\u7f6e\u3001\u5927\u5c0f\uff1a")),t=b.createJqLineItem(A.get("sizeHeight","\u9ad8\u5ea6"),c),q=b.createJqLineItem(A.get("scrollingFrozen","\u6eda\u52a8\u65f6\u51bb\u7ed3"),d);B.append(w);B.append(t);B.append(q);B=new Tc;B.setTipsText(A.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"));
B.getJqUi().appendTo(q);Ja.layoutCtrlWithLRTB(B.getJqUi(),null,4,null,4,null,null);G();d.setChecked(a.getWidget().isFrozen())},n=function(B){f=new Eb;f.setCustomPainter(function(q){return q?A.get("custom","\u81ea\u5b9a\u4e49"):A.get("unifiedInPage","\u9875\u9762\u7edf\u4e00")});f.addActionListener(function(q){(new Jd).showDialog(a.getWidget(),function(m){var u=b.getEditorCaption(f),r=new Pb;r.setMethod(a.getWidget().getSurfaceModel,a.getWidget().setSurfaceModel);r.setValue(m);b.performAction(r,u)})});
var w=b.createJqGroupTitle(A.get("skinGroupTitle","\u5916\u89c2\uff1a")),t=b.createJqLineItem(A.get("titleBarSurface","\u6837\u5f0f"),f);B.append(b.createJqCap());B.append(w);B.append(t);f.setModel(a.getWidget().getSurfaceModel())};this.protectedDoPropertyChanged=function(B){B==Z.KEY_RECT?G():B==Rb.KEY_FROZEN?d.setChecked(a.getWidget().isFrozen()):B==Rb.KEY_SURFACE?f.setModel(a.getWidget().getSurfaceModel()):b.backgroundDoPropertyChanged(B)};var G=function(){var B=a.getWidget(),w=xb.getInstance(B.getWidgetTypeName()).getMinSize()[1],
t=B.getParent().getClientHeight();c.setConstraint(w,Math.min(200,Math.max(w,t>>1)),1);c.setValue(B.getHeight())}}function nb(){hc.call(this);var a=this,b=this.protectedMethod,c,d,f,h;this.protectedInitUi=function(w){c=new $b;d=new $b;f=new $b;h=new $b;G();c.addValueChangedListener(B,!0);d.addValueChangedListener(B,!0);f.addValueChangedListener(B,!0);h.addValueChangedListener(B,!0);var t=b.createJqGroupTitle(A.get("positionGroupTitle","\u4f4d\u7f6e\u3001\u5927\u5c0f\uff1a")),q=b.createJqLineItem(A.get("positionX",
"X"),c),m=b.createJqLineItem(A.get("positionY","Y"),d),u=b.createJqLineItem(A.get("sizeWidth","\u5bbd\u5ea6"),f),r=b.createJqLineItem(A.get("sizeHeight","\u9ad8\u5ea6"),h);w.append(t);w.append(q);w.append(m);w.append(b.createJqCap());w.append(u);w.append(r);n();a.protectedInitCustomUi(w)};this.protectedInitCustomUi=function(w){};this.protectedDoPropertyChanged=function(w){w==Z.KEY_RECT?G():a.protectedDoCustomPropertyChanged(w)};this.protectedDoCustomPropertyChanged=function(w){};var n=function(){var w=
a.getWidget(),t=xb.getInstance(w.getWidgetTypeName()),q=!w.isWidthLockedAlways(t);w=!w.isHeightLockedAlways(t);b.updateEditorEnabled(f,q);b.updateEditorEnabled(h,w)},G=function(){var w=a.getWidget(),t=w.getX(),q=w.getY(),m=w.getWidth(),u=w.getHeight(),r=w.getParent(),P=r.getClientWidth();r=r.getClientHeight();var I=xb.getInstance(w.getWidgetTypeName());w=I.getMinSize()[0];I=I.getMinSize()[1];c.setConstraint(0,Math.max(0,P-m),1);d.setConstraint(0,Math.max(0,r-u),1);f.setConstraint(w,Math.max(w,P-t),
1);h.setConstraint(I,Math.max(I,r-q),1);c.setValue(t);d.setValue(q);f.setValue(m);h.setValue(u)},B=function(w,t,q){w=b.getEditorCaption(w);t=c.getValue();q=d.getValue();var m=f.getValue(),u=h.getValue(),r=new dd;r.setValue(a.getWidget(),t,q,m,u);b.performAction(r,w)};b.syncSizeCtrlEnabled=n}function Jb(){var a=this,b=this.protectedMethod,c,d,f,h,n=function(I,pa,Ea){I="left"==Ea?A.get("alignLeft","\u5de6\u5bf9\u9f50"):"right"==Ea?A.get("alignRight","\u53f3\u5bf9\u9f50"):A.get("alignCenter","\u5c45\u4e2d");
pa.text(I)},G=function(){c.setSelected(a.getWidget().getStyle().getFontName())},B=function(){d.setValue(a.getWidget().getStyle().getFontSize())},w=function(){f.setColor(a.getWidget().getStyle().getColor())},t=function(){h.setSelected(a.getWidget().getStyle().getAlign())},q=function(I,pa,Ea){P(I,"setAlign",Ea)},m=function(I){var pa=I.getColor();P(I,"setColor",pa)},u=function(I,pa){P(I,"setFontName",pa)},r=function(I,pa,Ea){pa=d.getValue();P(I,"setFontSize",pa)},P=function(I,pa,Ea){I=b.getEditorCaption(I);
var Aa=new Kd;Aa.setContext(a.getWidget().getStyle,a.getWidget().setStyle,pa,Ea);b.performAction(Aa,I)};b.styleInitCustomUi=function(I){c=new Ic;c.setDefaultDisplay(A.get("labelFontNameDefault","\u7cfb\u7edf\u9ed8\u8ba4"));c.setSelectionListener(u);d=new $b;d.setConstraint(6,999,1);d.addValueChangedListener(r,!0);f=new Nc;f.setColorPool(Jc.getColorPool7());f.setDisplayForNull(A.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"));f.setColorSelectedListener(m);h=new Xa;h.setItemModels(["left","center",
"right"]);h.setCustomPainter(n);h.addSelectedChangedListener(q);var pa=b.createJqGroupTitle(A.get("labelSurfaceGroupTitle","\u5916\u89c2\uff1a")),Ea=b.createJqLineItem(A.get("labelFontName","\u5b57\u4f53"),c),Aa=b.createJqLineItem(A.get("labelFontSize","\u5b57\u53f7"),d),qb=b.createJqLineItem(A.get("labelColor","\u989c\u8272"),f),yb=b.createJqLineItem(A.get("labelTextAlign","\u5bf9\u9f50"),h);I.append(b.createJqCap());I.append(pa);I.append(Ea);I.append(Aa);I.append(qb);I.append(yb);G();B();w();t()};
b.styleDoCustomPropertyChanged=function(I){I==Z.KEY_STYLE&&(G(),B(),w(),t())}}function Nb(){var a=this,b=this.protectedMethod,c,d,f=function(t){var q=Z.AffectedType_BindField|Z.AffectedType_Param;return t?w(t,q):""},h=function(t){var q=a.protectedGetAffectedTargetSupportedTypes();(new rd).showDialog(b.getGlobal(),a.getWidget(),function(m){m=q[m.getWidgetTypeName()];return 0<=m?m:-1},function(m){if(null!==m){var u=b.getEditorCaption(t);n(m,u)}})};this.protectedGetAffectedTargetSupportedTypes=function(){throw Error("Implement");
};var n=function(t,q){var m=new Pb;m.setMethod(a.getWidget().getAffectedTargets,a.getWidget().setAffectedTargets);m.setValue(t);b.performAction(m,q)},G=function(t){var q=Z.AffectedType_Tab;return t?w(t,q):""},B=function(t){(new Ld).showDialog(a.getWidget(),function(q){if(null!==q){var m=b.getEditorCaption(t);n(q,m)}})},w=function(t,q){return Nb.affectedTargetsToShortDisplay(b.getGlobal().getDashboardModel(),t,q)};this.protectedMethod.filterSimilaryPropertyChanged=function(t){t==Z.KEY_AFFECTED_TARGETS&&
(c&&c.setModel(a.getWidget().getAffectedTargets()),d&&d.setModel(a.getWidget().getAffectedTargets()))};this.protectedMethod.createAffectedTargetEditorItem=function(){c=new Eb;c.addActionListener(h);c.setCustomPainter(f);c&&c.setModel(a.getWidget().getAffectedTargets());return b.createJqLineItem(A.get("affectedTarget","\u4f5c\u7528\u4e8e"),c)};this.protectedMethod.createTabSwitchEditorItem=function(){d=new Eb;d.addActionListener(B);d.setCustomPainter(G);d&&d.setModel(a.getWidget().getAffectedTargets());
return b.createJqLineItem(A.get("tabSwitch","\u9875\u7b7e\u5207\u6362"),d)}}function Qb(){var a=this,b=this.protectedMethod,c,d,f,h=function(q){return q?q.toShortDisplay(b.getGlobal().getDashboardModel()):""},n=function(q){var m=a.getWidget();(new gd).showDialog(b.getGlobal(),m,function(u,r,P){if(u){u=[];var I=!1,pa={},Ea={};r.toJsonObject(pa);m.getFilterSource().toJsonObject(Ea);JSON.stringify(pa)!=JSON.stringify(Ea)&&(I=new Pb,I.setMethod(m.getFilterSource,m.setFilterSource),I.setValue(r),u.push(I),
I=!0);m.isIncludeItemAllSupported()&&P!=m.isIncludedItemAll()&&(r=new Pb,r.setMethod(m.isIncludedItemAll,m.setIncludedItemAll),r.setValue(P),u.push(r));I&&(P=new Pb,P.setMethod(m.getDefaultSelected,m.setDefaultSelected),m.isMultiSelectable()?P.setValue(ad.createInstance(ad.TYPE_ByAppointed)):P.setValue(ad.createInstance(ad.TYPE_ByIndex)),u.push(P));0<u.length&&(P=b.getEditorCaption(q),b.performAction(u,P))}})},G=function(q,m,u){q=!0===u?A.get("multiSelectableYes","\u591a\u9009"):!1===u?A.get("multiSelectableNo",
"\u5355\u9009"):"";m.text(q)},B=function(q,m,u){var r=new Pb;r.setMethod(a.getWidget().isMultiSelectable,a.getWidget().setMultiSelectable);r.setValue(u);m=[r];u=!u;r=(r=a.getWidget().getDefaultSelected())?r.isSingleSelectableFitting():!1;u&&!r&&(r=new Pb,r.setMethod(a.getWidget().getDefaultSelected,a.getWidget().setDefaultSelected),r.setValue(ad.createInstance(ad.TYPE_ByIndex)),m.push(r));q=b.getEditorCaption(q);b.performAction(m,q)},w=function(q){return q?q.toShortDisplay():""},t=function(q){var m=
a.getWidget();(new Md).showDialog(b.getGlobal(),m,function(u){if(u){var r=new Pb;r.setMethod(m.getDefaultSelected,m.setDefaultSelected);r.setValue(u);u=b.getEditorCaption(q);b.performAction(r,u)}})};this.protectedMethod.discreteItemFilterPropertyChanged=function(q){q==Z.KEY_FILTER_SOURCE?c.setModel(a.getWidget().getFilterSource()):q==Z.KEY_DISCRETE_MULTISELECTABLE?d&&d.setSelected(a.getWidget().isMultiSelectable()):q==Z.KEY_FILTER_DEFAULT_SELECTED&&f&&f.setModel(a.getWidget().getDefaultSelected())};
this.protectedMethod.createSourceEditorItem=function(){c=new Eb;c.addActionListener(n);c.setCustomPainter(h);c.setModel(a.getWidget().getFilterSource());return b.createJqLineItem(A.get("filterPreparedValue","\u5907\u9009\u503c"),c)};this.protectedMethod.getAffectedTargetSupportedTypes=function(){var q={};q[Z.WidgetType_Square]=0;q[Z.WidgetType_Longer]=1;q[Z.WidgetType_QingReport]=2;q[Z.WidgetType_ExtReport]=3;q[Z.WidgetType_Iframe]=4;q[Z.WidgetType_Combobox]=5;q[Z.WidgetType_ButtonGroup]=6;q[Z.WidgetType_F7]=
7;q[Z.WidgetType_Label]=8;q[Z.WidgetType_Rich]=9;return q};this.protectedMethod.createMultiSelectableEditorItem=function(){d=new Xa;d.setItemModels([!1,!0]);d.setCustomPainter(G);d.addSelectedChangedListener(B);d&&d.setSelected(a.getWidget().isMultiSelectable());return b.createJqLineItem(A.get("multiSelectable","\u9009\u9879\u6a21\u5f0f"),d)};this.protectedMethod.createDefaultSelectedEditorItem=function(){f=new Eb;f.addActionListener(t);f.setCustomPainter(w);f&&f.setModel(a.getWidget().getDefaultSelected());
return b.createJqLineItem(A.get("defaultSelected","\u9ed8\u8ba4\u9009\u4e2d\u9879"),f)}}function S(){var a=this,b=this.protectedMethod,c;this.protectedMethod.fontSizeEnhancedPropertyChanged=function(d){d==Z.KEY_FONT_SIZE_ENHANCED&&c&&c.setSelected(a.getWidget().getFontSizeEnhanced())};this.protectedMethod.createFontSizeEnhancedEditorItem=function(){c=new Xa;c.setItemModels([0,1,2,3,4,5]);c.setCustomPainter(function(d,f,h){f.text(h||0===h?100+10*h+"%":"")});c.addSelectedChangedListener(function(d,
f,h){f=new Pb;f.setMethod(a.getWidget().getFontSizeEnhanced,a.getWidget().setFontSizeEnhanced);f.setValue(h);d=b.getEditorCaption(d);b.performAction(f,d)});c&&c.setSelected(a.getWidget().getFontSizeEnhanced());return b.createJqLineItem(A.get("fontSizeScaling","\u6587\u5b57\u7f29\u653e"),c)};this.protectedMethod.updateFontSizeEditorVisible=function(d){b.updateEditorVisible(c,d)}}function Ha(){var a=this,b=this.protectedMethod,c,d,f,h=function(){if(c){var r=a.getWidget().getFrontLabel();c.setModel(r?
r:"")}},n=function(){if(d){var r=a.getWidget().getFrontLabelPosition();d.setSelected(r)}},G=function(){if(f){var r=a.getWidget().getFrontLabelLength();f.setValue(r?r:0)}},B=function(){if(f){var r="left"==a.getWidget().getFrontLabelPosition();b.updateEditorVisible(f,r)}},w=function(r,P,I){r=b.getEditorCaption(r);P=new Pb;P.setMethod(a.getWidget().getFrontLabelPosition,a.getWidget().setFrontLabelPosition);P.setValue(I);var pa=$.trim(a.getWidget().getFrontLabel());m(pa,I,P,r)||b.performAction(P,r)},
t=function(r,P,I){r=b.getEditorCaption(r);P=f.getValue();I=new Pb;I.setMethod(a.getWidget().getFrontLabelLength,a.getWidget().setFrontLabelLength);I.setValue(P);b.performAction(I,r)},q=function(r){var P=b.getEditorCaption(c),I=new Pb;I.setMethod(a.getWidget().getFrontLabel,a.getWidget().setFrontLabel);I.setValue(r);var pa=$.trim(a.getWidget().getFrontLabelPosition());m(r,pa,I,P)||b.performAction(I,P)},m=function(r,P,I,pa){var Ea=a.getWidget(),Aa=xb.getInstance(Ea.getWidgetTypeName());return Ea.isHeightLockedAlways(Aa)?
(r=Aa.getSuggestSize()[1]+(r&&"left"!=P?25:0),P=new dd,P.setValue(Ea,Ea.getX(),Ea.getY(),Ea.getWidth(),r),b.performAction([P,I],pa),!0):!1},u=function(r,P,I){r="left"==I?A.get("frontLabelPositionLeft","\u5de6\u4fa7"):A.get("frontLabelPositionTop","\u4e0a\u65b9");P.text(r)};this.protectedMethod.withLabelCtrlPropertyChanged=function(r){r==Z.KEY_FILTER_FRONT_LABEL?h():r==Z.KEY_FILTER_FRONT_LABEL_POSITION?(n(),B()):r==Z.KEY_FILTER_FRONT_LABEL_LENGTH&&G()};this.protectedMethod.createFrontLabelEditorItem=
function(){c=b.createTextEditor(null,null,q,!0,40);h();return b.createJqLineItem(A.get("frontLabelText","\u6807\u7b7e\u6587\u5b57"),c)};this.protectedMethod.createFrontLabelPositionEditorItem=function(){void 0===a.getWidget().getFrontLabelPosition()&&a.getWidget().setFrontLabelPosition("top");d=new Xa;d.setItemModels(["left","top"]);d.setCustomPainter(u);d.addSelectedChangedListener(w);n();return b.createJqLineItem(A.get("frontLabelPosition","\u6807\u7b7e\u4f4d\u7f6e"),d)};this.protectedMethod.createFrontLabelLengthEditorItem=
function(){void 0===a.getWidget().getFrontLabelLength()&&a.getWidget().setFrontLabelLength(72);f=new $b;f.setConstraint(0,9999,1);f.addValueChangedListener(t,!0);var r=b.createJqLineItem(A.get("frontLabelLength","\u6807\u7b7e\u5bbd\u5ea6"),f);G();B();return r}}function vb(){var a=this,b=this.protectedMethod,c,d,f=function(){0<a.getWidget().getRefreshTiming()?c.setChecked(!0):c.setChecked(!1)},h=function(){var t=a.getWidget().getRefreshTiming();0<t?(d.setValue(t),b.updateEditorEnabled(d,!0)):(d.setValue(0),
b.updateEditorEnabled(d,!1))},n=600,G=function(t,q){q&&(t.isChecked()?q=n:(n=d.getValue(),q=-1),t=b.getEditorCaption(t),w(q,t))},B=function(t,q,m){t=b.getEditorCaption(t);q=d.getValue();w(q,t)},w=function(t,q){var m=new Pb;m.setMethod(a.getWidget().getRefreshTiming,a.getWidget().setRefreshTiming);m.setValue(t);b.performAction(m,q)};this.protectedMethod.autoRefreshablePropertyChanged=function(t){t==Z.KEY_REFRESH_TIMING&&(f(),h())};this.protectedMethod.createRefreshTimingSwitchEditorItem=function(){c=
new dc;c.addCheckedListener(G);var t=b.createJqLineItem(A.get("timingSwitch","\u542f\u7528"),c);f();return t};this.protectedMethod.createRefreshTimingValueEditorItem=function(){d=new $b;d.setConstraint(10,999999,1);d.addValueChangedListener(B,!0);var t=b.createJqLineItem(A.get("timingValue","\u95f4\u9694(\u79d2)"),d);h();return t}}function Tb(){oc.call(this);mc.call(this);var a=this,b=this.protectedMethod,c,d,f,h,n,G=function(){var t=a.getWidget(),q=t.isBareSurface(),m=t.isBareSurfacePassively(),
u=t.getCardSurfaceMode();c.setSelected(m?ec.Surface_Bare:u);c.getJqUi().parent().attr("title",m?A.get("cardSurfaceModeNonePrompt","\u7ec4\u4ef6\u5728\u5361\u7247\u5bb9\u5668\u4e2d\uff0c\u672c\u8eab\u6ca1\u6709\u5361\u7247\u5916\u89c2\u3002"):null);b.updateEditorEnabled(c,!m);m=u==ec.Surface_Custom;q=!q&&m;u=!1;m=t.getBackgroundColor();q&&(t=t.getUsableCardBorder(),u=!(t&&t.getType()==zc.TYPE_IMAGE),!u&&(m="rgba(255,255,255,0)"));d.setNullableColor(m);b.updateEditorVisible(d,q);b.updateEditorEnabled(d,
u)},B=function(){var t=a.getWidget(),q=t.isBareSurface(),m=t.getCardTitle(),u=m?!0:!1;f.setModel(u?m:"");b.updateEditorVisible(f,!q);m=t.getTitleFontName()||t.getTitleFontSize()||t.getTitleColor()?!0:!1;h.setModel(m?!0:null);b.updateEditorVisible(h,!q&&u);n.setModel(t.getCardDescription())},w=function(t,q,m,u){var r=a.getWidget();t=b.getEditorCaption(t);var P=new Pb;P.setMethod(function(){var I=r.getTitleFontName(),pa=r.getTitleFontSize(),Ea=r.getTitleColor();return[I,pa,Ea]},function(I){r.setTitleStyle(I[0],
I[1],I[2])});P.setValue([q,m,u]);b.performAction(P,t)};b.cardSimilaryPropertyChanged=function(t){t==Z.KEY_CARD_TITLE?B():t==Z.KEY_CARD_SURFACE&&(G(),B());b.cardBorderDoPropertyChanged(t);b.cardTopBarCommonDoPropertyChanged(t)};b.initCardTopBarEditorItems=function(t){var q=a.getWidget();f=b.createTextEditor(q.getCardTitle,q.setCardTitle,null,!0,40);h=new Eb;h.setClearable(!0);h.addActionListener(function(I){var pa=new Nd;pa.setWidget(q);pa.show(function(Ea,Aa,qb){w(I,Ea,Aa,qb)})});h.addClearListener(function(I){w(I,
null,null,null)});h.setCustomPainter(function(I){return I?A.get("custom","\u81ea\u5b9a\u4e49"):A.get("unifiedInPage","\u9875\u9762\u7edf\u4e00")});n=b.createTextAreaEditor(q.getCardDescription,q.setCardDescription);var m=b.createJqGroupTitle(A.get("cardGroupTitle","\u5361\u7247\u6807\u9898\u680f\uff1a")),u=b.createJqLineItem(A.get("cardTitle","\u6807\u9898\u6587\u5b57"),f),r=b.createJqLineItem(A.get("cardTitleStyle","\u6807\u9898\u6837\u5f0f"),h),P=b.createJqLineItem(A.get("cardDescription","\u5361\u7247\u8bf4\u660e"),
n);t.append(b.createJqCap());t.append(m);t.append(u);t.append(r);b.initUiOfCardTopBarCommon(t);t.append(P);B()};b.initCardSurfaceEditorItems=function(t){c=new Xa;c.setItemModels([ec.Surface_Unified,ec.Surface_Bare,ec.Surface_Custom]);c.setCustomPainter(function(r,P,I){r=I==ec.Surface_Unified?A.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"):I==ec.Surface_Bare?A.get("cardSurfaceModeNone","\u65e0"):I==ec.Surface_Custom?A.get("custom","\u81ea\u5b9a\u4e49"):"";P.text(r)});c.addSelectedChangedListener(function(r,
P,I){r=b.getEditorCaption(r);P=new Pb;P.setMethod(a.getWidget().getCardSurfaceMode,a.getWidget().setCardSurfaceMode);P.setValue(I);b.performAction(P,r)});d=new Kc;d.setColorPool(Jc.getColorPool7());d.setDisplayForNull(A.get("unifiedInPage","\u9875\u9762\u7edf\u4e00"));d.setChangedListener(function(r){var P=b.getEditorCaption(r),I=new Pb;I.setMethod(a.getWidget().getBackgroundColor,a.getWidget().setBackgroundColor);I.setValue(r.getNullableColor());b.performAction(I,P)});var q=b.createJqGroupTitle(A.get("cardSurfaceGroupTitle",
"\u5361\u7247\u5916\u89c2\uff1a")),m=b.createJqLineItem(A.get("cardSurfaceMode","\u6574\u4f53\u5916\u89c2"),c),u=b.createJqLineItem(A.get("cardSurfaceBackground","\u5361\u7247\u80cc\u666f"),d);t.append(b.createJqCap());t.append(q);t.append(m);t.append(u);b.initUiOfCardBorder(t,[zc.TYPE_MODEL,zc.TYPE_IMAGE],!0);G()}}function Mb(){var a=this,b=this.protectedMethod,c,d=function(f){f=a.protectedGetSourceSelector();var h=a.protectedGetShowDesignerMethod(),n=new ia;n.bindIntegrationImpl(f,h);n.reselecting(b.getGlobal(),
a.getWidget(),function(G){if(G){var B=b.getEditorCaption(c),w=new Pb;w.setMethod(a.getWidget().getReferenceCustomMap,a.getWidget().setReferenceCustomMap);w.setValue(G);b.performAction(w,B)}})};this.protectedGetSourceSelector=function(){throw Error("Override");};this.protectedGetShowDesignerMethod=function(){throw Error("Override");};this.protectedMethod.createReferenceEditorItem=function(f){c=new Eb;c.setModel(A.get("refHasSet","\u5df2\u8bbe\u7f6e"));c.addActionListener(d);return b.createJqLineItem(f,
c)}}function nc(){var a=this,b=this.protectedMethod,c,d=function(f){a.protectedGetSourceSelector()(a.getWidget().getReferenceCustomMap(),function(h){if(h){var n=b.getEditorCaption(c),G=new Pb;G.setMethod(a.getWidget().getReferenceCustomMap,a.getWidget().setReferenceCustomMap);G.setValue(h);b.performAction(G,n)}})};this.protectedGetSourceSelector=function(){throw Error("Override");};this.protectedMethod.createReferenceEditorItem=function(f){c=new Eb;c.setModel(A.get("refHasSet","\u5df2\u8bbe\u7f6e"));
c.addActionListener(d);return b.createJqLineItem(f,c)}}function gc(){var a=this,b=this.protectedMethod,c,d=function(f){a.protectedGetSourceSelector()(a.getWidget().getEncodedModel(),function(h){if(h){var n=b.getEditorCaption(c),G=new Pb;G.setMethod(a.getWidget().getEncodedModel,a.getWidget().setEncodedModel);G.setValue(h);b.performAction(G,n)}})};this.protectedGetSourceSelector=function(){throw Error("Override");};this.protectedMethod.createReferenceEditorItem=function(f){c=new Eb;c.setModel(A.get("refHasSet",
"\u5df2\u8bbe\u7f6e"));c.addActionListener(d);return b.createJqLineItem(f,c)}}function ac(){nb.call(this);Mb.call(this);Tb.call(this);vb.call(this);Nb.call(this);var a=this.protectedMethod;this.protectedGetSourceSelector=function(){return va.getWidgetSourceSelector().selectSquare};this.protectedGetShowDesignerMethod=function(){return va.showSquareDesigner};this.protectedInitCustomUi=function(b){var c=a.createJqGroupTitle(A.get("refGroupTitle","\u5f15\u7528\uff1a")),d=a.createReferenceEditorItem(A.get("refSource",
"\u6765\u6e90"));b.append(a.createJqCap());b.append(c);b.append(d);a.initCardSurfaceEditorItems(b);a.initCardTopBarEditorItems(b);c=a.createJqGroupTitle(A.get("cardGroupRefreshTitle","\u5b9a\u65f6\u5237\u65b0\uff1a"));d=a.createRefreshTimingSwitchEditorItem();var f=a.createRefreshTimingValueEditorItem();b.append(a.createJqCap());b.append(c);b.append(d);b.append(f);c=a.createJqGroupTitle(A.get("affectingGroupTitle","\u8054\u52a8\uff1a"));d=a.createAffectedTargetEditorItem();f=a.createTabSwitchEditorItem();
b.append(a.createJqCap());b.append(c);b.append(d);b.append(f)};this.protectedDoCustomPropertyChanged=function(b){a.cardSimilaryPropertyChanged(b);a.autoRefreshablePropertyChanged(b);a.filterSimilaryPropertyChanged(b)};this.protectedGetAffectedTargetSupportedTypes=function(){var b={};b[Z.WidgetType_Square]=0;b[Z.WidgetType_Longer]=1;b[Z.WidgetType_QingReport]=2;b[Z.WidgetType_ExtReport]=3;b[Z.WidgetType_Iframe]=4;b[Z.WidgetType_Label]=5;b[Z.WidgetType_Rich]=6;return b}}function tc(){nb.call(this);
Mb.call(this);Tb.call(this);vb.call(this);var a=this.protectedMethod;this.protectedGetSourceSelector=function(){return va.getWidgetSourceSelector().selectLonger};this.protectedGetShowDesignerMethod=function(){return va.showLongerDesigner};this.protectedInitCustomUi=function(b){var c=a.createJqGroupTitle(A.get("refGroupTitle","\u5f15\u7528\uff1a")),d=a.createReferenceEditorItem(A.get("refSource","\u6765\u6e90"));b.append(a.createJqCap());b.append(c);b.append(d);a.initCardSurfaceEditorItems(b);a.initCardTopBarEditorItems(b);
c=a.createJqGroupTitle(A.get("cardGroupRefreshTitle","\u5b9a\u65f6\u5237\u65b0\uff1a"));d=a.createRefreshTimingSwitchEditorItem();var f=a.createRefreshTimingValueEditorItem();b.append(a.createJqCap());b.append(c);b.append(d);b.append(f)};this.protectedDoCustomPropertyChanged=function(b){a.cardSimilaryPropertyChanged(b);a.autoRefreshablePropertyChanged(b)}}function Cc(){nb.call(this);nc.call(this);vb.call(this);var a=this,b=this.protectedMethod,c;this.protectedGetSourceSelector=function(){return va.getWidgetSourceSelector().selectQingReport};
this.protectedInitCustomUi=function(d){var f=b.createJqGroupTitle(A.get("refGroupTitle","\u5f15\u7528\uff1a")),h=b.createReferenceEditorItem(A.get("refSource","\u6765\u6e90"));d.append(b.createJqCap());d.append(f);d.append(h);c=b.createTextEditor(a.getWidget().getCardTitle,a.getWidget().setCardTitle,null,!0,40);f=b.createJqGroupTitle(A.get("cardGroupTitle","\u6807\u9898\u680f\uff1a"));h=b.createJqLineItem(A.get("cardTitle","\u6807\u9898"),c);d.append(b.createJqCap());d.append(f);d.append(h);c.setModel(a.getWidget().getCardTitle());
f=b.createJqGroupTitle(A.get("cardGroupRefreshTitle","\u5b9a\u65f6\u5237\u65b0\uff1a"));h=b.createRefreshTimingSwitchEditorItem();var n=b.createRefreshTimingValueEditorItem();d.append(b.createJqCap());d.append(f);d.append(h);d.append(n)};this.protectedDoCustomPropertyChanged=function(d){d==Z.KEY_CARD_TITLE?c.setModel(a.getWidget().getCardTitle()):b.autoRefreshablePropertyChanged(d)}}function xc(){nb.call(this);gc.call(this);vb.call(this);var a=this,b=this.protectedMethod,c;this.protectedGetSourceSelector=
function(){return va.getExtReportSourceSelector()};this.protectedInitCustomUi=function(d){var f=b.createJqGroupTitle(A.get("refGroupTitle","\u5f15\u7528\uff1a")),h=b.createReferenceEditorItem(A.get("refSource","\u6765\u6e90"));d.append(b.createJqCap());d.append(f);d.append(h);c=b.createTextEditor(a.getWidget().getTitle,a.getWidget().setTitle,null,!0,40);f=b.createJqGroupTitle(A.get("cardGroupTitle","\u6807\u9898\u680f\uff1a"));h=b.createJqLineItem(A.get("cardTitle","\u6807\u9898"),c);d.append(b.createJqCap());
d.append(f);d.append(h);c.setModel(a.getWidget().getTitle());f=b.createJqGroupTitle(A.get("cardGroupRefreshTitle","\u5b9a\u65f6\u5237\u65b0\uff1a"));h=b.createRefreshTimingSwitchEditorItem();var n=b.createRefreshTimingValueEditorItem();d.append(b.createJqCap());d.append(f);d.append(h);d.append(n)};this.protectedDoCustomPropertyChanged=function(d){d==Ec.KEY_TITLE?c.setModel(a.getWidget().getTitle()):b.autoRefreshablePropertyChanged(d)}}function k(){nb.call(this);nc.call(this);vb.call(this);var a=this.protectedMethod;
this.protectedGetSourceSelector=function(){return va.getWidgetSourceSelector().selectProgramableCard};this.protectedInitCustomUi=function(b){var c=a.createJqGroupTitle(A.get("refGroupTitle","\u5f15\u7528\uff1a")),d=a.createReferenceEditorItem(A.get("refSource","\u6765\u6e90"));b.append(a.createJqCap());b.append(c);b.append(d);c=a.createJqGroupTitle(A.get("cardGroupRefreshTitle","\u5b9a\u65f6\u5237\u65b0\uff1a"));d=a.createRefreshTimingSwitchEditorItem();var f=a.createRefreshTimingValueEditorItem();
b.append(a.createJqCap());b.append(c);b.append(d);b.append(f)};this.protectedDoCustomPropertyChanged=function(b){a.autoRefreshablePropertyChanged(b)}}function e(){nb.call(this);gc.call(this);var a=this.protectedMethod;this.protectedGetSourceSelector=function(){return va.getCosmicCustomCardSourceSelector()};this.protectedInitCustomUi=function(b){var c=a.createJqGroupTitle(A.get("refGroupTitle","\u5f15\u7528\uff1a")),d=a.createReferenceEditorItem(A.get("refSource","\u6765\u6e90"));b.append(a.createJqCap());
b.append(c);b.append(d)}}function l(){nb.call(this)}function p(){nb.call(this);var a=this,b=this.protectedMethod,c;this.protectedInitCustomUi=function(f){c=new Eb;c.addActionListener(d);var h=b.createJqGroupTitle(A.get("iframeGroupTitle","\u7f51\u9875\uff1a")),n=b.createJqLineItem(A.get("iframeUrl","\u7f51\u9875\u5730\u5740"),c);f.append(b.createJqCap());f.append(h);f.append(n);c.setModel(a.getWidget().getUrl())};this.protectedDoCustomPropertyChanged=function(f){f==vc.KEY_URL&&c.setModel(a.getWidget().getUrl())};
var d=function(f){(new sd).showDialog(a.getWidget().getUrl(),function(h,n){if(h){h=b.getEditorCaption(f);var G=new Pb;G.setMethod(a.getWidget().getUrl,a.getWidget().setUrl);G.setValue(n);b.performAction(G,h)}})}}function x(){nb.call(this);Jb.call(this);var a=this,b=this.protectedMethod,c;this.protectedInitCustomUi=function(f){c=new Eb;c.addActionListener(d);var h=b.createJqGroupTitle(A.get("clockContentGroupTitle","\u5185\u5bb9\uff1a")),n=b.createJqLineItem(A.get("clockFormatString","\u663e\u793a\u683c\u5f0f"),
c);f.append(b.createJqCap());f.append(h);f.append(n);c.setModel(a.getWidget().getFormatString());b.styleInitCustomUi(f)};this.protectedDoCustomPropertyChanged=function(f){f==Hc.KEY_FORMAT?c.setModel(a.getWidget().getFormatString()):b.styleDoCustomPropertyChanged(f)};var d=function(f){var h=b.getEditorCaption(c);(new Od).showDialog(c.getModel(),function(n,G){n&&(n=new Pb,n.setMethod(a.getWidget().getFormatString,a.getWidget().setFormatString),n.setValue(G),b.performAction(n,h))})}}function z(){nb.call(this);
Jb.call(this);var a=this,b=this.protectedMethod,c,d;this.protectedInitCustomUi=function(n){c=new Eb;c.addActionListener(f);var G=b.createJqGroupTitle(A.get("labelContentGroupTitle","\u5185\u5bb9\uff1a")),B=b.createJqLineItem(A.get("labelContent","\u663e\u793a\u6587\u5b57"),c);n.append(b.createJqCap());n.append(G);n.append(B);c.setModel(a.getWidget().getContent());b.styleInitCustomUi(n);d=new dc;d.addCheckedListener(h);G=b.createJqGroupTitle(A.get("labelWalkingGroupTitle","\u8d70\u9a6c\u706f\uff1a"));
B=b.createJqLineItem(A.get("labelWalking","\u542f\u7528"),d);n.append(b.createJqCap());n.append(G);n.append(B);d.setChecked(0<a.getWidget().getWalkingSpeed())};this.protectedDoCustomPropertyChanged=function(n){n==Sc.KEY_CONTENT?c.setModel(a.getWidget().getContent()):n==Sc.KEY_WALKING?d.setChecked(0<a.getWidget().getWalkingSpeed()):b.styleDoCustomPropertyChanged(n)};var f=function(n){var G=a.getWidget();(new td).show(G,G.getTopPage(),function(B,w,t,q){if(t||B){var m=G.getPredefinedTextFragments(),
u=G.getContent();if(B){m=w;var r=A.get("labelPredefined","\u94fe\u63a5\u7684\u5b9a\u4e49")}t&&(u=q,r=b.getEditorCaption(c));B=new Pb;B.setMethod(function(){return[G.getPredefinedTextFragments(),G.getContent()]},function(P){G.setContent(P[0],P[1])});B.setValue([m,u]);b.performAction(B,r)}})},h=function(n,G){if(G){var B=a.getWidget();G=b.getEditorCaption(n);var w=new Pb;w.setMethod(function(){return 0<B.getWalkingSpeed()},function(t){B.setWalkingSpeed(t?50:0)});w.setValue(n.isChecked());b.performAction(w,
G)}}}function E(){nb.call(this);var a=this,b=this.protectedMethod,c;this.protectedInitCustomUi=function(h){c=new Eb;c.addActionListener(d);c.setCustomPainter(f);var n=b.createJqGroupTitle(A.get("labelContentGroupTitle","\u5185\u5bb9\uff1a")),G=b.createJqLineItem(A.get("labelContent","\u663e\u793a\u6587\u5b57"),c);h.append(b.createJqCap());h.append(n);h.append(G);c.setModel(a.getWidget().getContent())};this.protectedDoCustomPropertyChanged=function(h){h==Xc.KEY_CONTENT&&c.setModel(a.getWidget().getContent())};
var d=function(h){var n=a.getWidget();(new ud).show(n,n.getTopPage(),function(G,B,w,t){if(w||G){var q=n.getPredefinedTextFragments(),m=n.getContent();if(G){q=B;var u=A.get("labelPredefined","\u94fe\u63a5\u7684\u5b9a\u4e49")}w&&(m=t,u=b.getEditorCaption(c));G=new Pb;G.setMethod(function(){return[n.getPredefinedTextFragments(),n.getContent()]},function(r){n.setContent(r[0],r[1])});G.setValue([q,m]);b.performAction(G,u)}})},f=function(h){return h?h.getAllText():""}}function L(){nb.call(this);Qb.call(this);
Nb.call(this);Ha.call(this);S.call(this);var a=this.protectedMethod;this.protectedInitCustomUi=function(b){var c=a.createJqGroupTitle(A.get("filterDataGroupTitle","\u6570\u636e\uff1a")),d=a.createSourceEditorItem(),f=a.createDefaultSelectedEditorItem();b.append(a.createJqCap());b.append(c);b.append(d);b.append(f);c=a.createJqGroupTitle(A.get("affectingGroupTitle","\u8054\u52a8\uff1a"));d=a.createAffectedTargetEditorItem();f=a.createTabSwitchEditorItem();b.append(a.createJqCap());b.append(c);b.append(d);
b.append(f);c=a.createJqGroupTitle(A.get("frontLabelGroupTitle","\u6807\u7b7e\uff1a"));d=a.createFrontLabelEditorItem();f=a.createFrontLabelPositionEditorItem();var h=a.createFrontLabelLengthEditorItem();b.append(a.createJqCap());b.append(c);b.append(d);b.append(f);b.append(h);c=a.createJqGroupTitle(A.get("surfaceGroupTitle","\u5916\u89c2\uff1a"));d=a.createFontSizeEnhancedEditorItem();b.append(a.createJqCap());b.append(c);b.append(d)};this.protectedGetAffectedTargetSupportedTypes=function(){return a.getAffectedTargetSupportedTypes()};
this.protectedDoCustomPropertyChanged=function(b){a.discreteItemFilterPropertyChanged(b);a.filterSimilaryPropertyChanged(b);a.withLabelCtrlPropertyChanged(b);a.fontSizeEnhancedPropertyChanged(b)}}function R(){nb.call(this);Qb.call(this);Nb.call(this);var a=this,b=this.protectedMethod,c,d,f,h;this.protectedInitCustomUi=function(m){var u=b.createJqGroupTitle(A.get("filterDataGroupTitle","\u6570\u636e\uff1a")),r=b.createSourceEditorItem(),P=b.createDefaultSelectedEditorItem();m.append(b.createJqCap());
m.append(u);m.append(r);m.append(P);u=b.createJqGroupTitle(A.get("affectingGroupTitle","\u8054\u52a8\uff1a"));r=b.createAffectedTargetEditorItem();P=b.createTabSwitchEditorItem();m.append(b.createJqCap());m.append(u);m.append(r);m.append(P);u=b.createJqGroupTitle(A.get("btnsGroupTitle","\u5916\u89c2\uff1a"));r=B();P=G();var I=n(),pa=w();m.append(b.createJqCap());m.append(u);m.append(I);m.append(r);m.append(P);m.append(pa)};this.protectedGetAffectedTargetSupportedTypes=function(){return b.getAffectedTargetSupportedTypes()};
this.protectedDoCustomPropertyChanged=function(m){m==Wb.KEY_LAYOUT_MODE?(q(),b.syncSizeCtrlEnabled()):m==Wb.KEY_CHARS_PER_ITEM?d&&d.setValue(a.getWidget().getCharsPerItemWhenWrap()):m==Wb.KEY_ITEMS_PER_ROW?f&&f.setValue(a.getWidget().getItemsPerRowWhenWrap()):m==Wb.KEY_SIZE_MODE&&h&&h.setSelected(a.getWidget().getSizeMode());b.discreteItemFilterPropertyChanged(m);b.filterSimilaryPropertyChanged(m)};var n=function(){c=new Xa;c.setItemModels([Wb.LAYOUT_MODE_HORIZONTAL,Wb.LAYOUT_MODE_WRAP]);c.setCustomPainter(function(m,
u,r){m=r==Wb.LAYOUT_MODE_HORIZONTAL?A.get("btnsLayoutModeH","\u5355\u884c"):r==Wb.LAYOUT_MODE_WRAP?A.get("btnsLayoutModeW","\u591a\u884c"):"";u.text(m)});c.addSelectedChangedListener(function(m,u,r){m=b.getEditorCaption(m);u=new Pb;u.setMethod(a.getWidget().getLayoutMode,a.getWidget().setLayoutMode);u.setValue(r);var P=new Pb;P.setMethod(a.getWidget().isHeightLocked,a.getWidget().setHeightLocked);P.setValue(r==Wb.LAYOUT_MODE_HORIZONTAL);t(m,[u,P],r,null)});q();return b.createJqLineItem(A.get("btnsLayoutMode",
"\u6309\u94ae\u5e03\u5c40"),c)},G=function(){d=new $b;d.setConstraint(1,100,1);d.addValueChangedListener(function(m,u,r){m=b.getEditorCaption(m);u=new Pb;u.setMethod(a.getWidget().getCharsPerItemWhenWrap,a.getWidget().setCharsPerItemWhenWrap);u.setValue(r);b.performAction(u,m)},!0);d&&d.setValue(a.getWidget().getCharsPerItemWhenWrap());return b.createJqLineItem(A.get("btnsPerItem","\u6bcf\u4e2a\u6700\u5c11\u5b57\u6570"),d)},B=function(){f=new $b;f.setConstraint(1,20,1);f.addValueChangedListener(function(m,
u,r){m=b.getEditorCaption(m);u=new Pb;u.setMethod(a.getWidget().getItemsPerRowWhenWrap,a.getWidget().setItemsPerRowWhenWrap);u.setValue(r);b.performAction(u,m)},!0);f&&f.setValue(a.getWidget().getItemsPerRowWhenWrap());return b.createJqLineItem(A.get("btnsPerRow","\u6bcf\u884c\u6700\u591a\u4e2a\u6570"),f)},w=function(){h=new Xa;h.setItemModels([Wb.SIZE_MODE_LARGE,Wb.SIZE_MODE_MIDDLE,Wb.SIZE_MODE_SMALL]);h.setCustomPainter(function(m,u,r){m=r==Wb.SIZE_MODE_LARGE?A.get("btnsSizeModeLarge","\u5927"):
r==Wb.SIZE_MODE_MIDDLE?A.get("btnsSizeModeMiddle","\u4e2d"):r==Wb.SIZE_MODE_SMALL?A.get("btnsSizeModeSmall","\u5c0f"):"";u.text(m)});h.addSelectedChangedListener(function(m,u,r){m=b.getEditorCaption(m);u=new Pb;u.setMethod(a.getWidget().getSizeMode,a.getWidget().setSizeMode);u.setValue(r);t(m,[u],null,r)});h&&h.setSelected(a.getWidget().getSizeMode());return b.createJqLineItem(A.get("btnsSizeMode","\u5c3a\u5bf8"),h)},t=function(m,u,r,P){var I=a.getWidget(),pa=r?!0:!1;null==r&&(r=I.getLayoutMode());
r==Wb.LAYOUT_MODE_HORIZONTAL?(null==P&&(P=I.getSizeMode()),r=new dd,P=Wb.askButtonHeight(P),r.setValue(I,I.getX(),I.getY(),I.getWidth(),P),u.push(r)):pa&&r==Wb.LAYOUT_MODE_WRAP&&(r=new dd,r.setValue(I,I.getX(),I.getY(),240,160),u.push(r));b.performAction(u,m)},q=function(){c&&c.setSelected(a.getWidget().getLayoutMode());f&&b.updateEditorVisible(f,a.getWidget().getLayoutMode()==Wb.LAYOUT_MODE_WRAP);d&&b.updateEditorVisible(d,a.getWidget().getLayoutMode()==Wb.LAYOUT_MODE_WRAP)}}function ka(){nb.call(this);
Qb.call(this);Nb.call(this);Ha.call(this);S.call(this);var a=this.protectedMethod;this.protectedInitCustomUi=function(b){var c=a.createJqGroupTitle(A.get("filterDataGroupTitle","\u6570\u636e\uff1a")),d=a.createSourceEditorItem(),f=a.createMultiSelectableEditorItem(),h=a.createDefaultSelectedEditorItem();b.append(a.createJqCap());b.append(c);b.append(d);b.append(f);b.append(h);c=a.createJqGroupTitle(A.get("affectingGroupTitle","\u8054\u52a8\uff1a"));d=a.createAffectedTargetEditorItem();f=a.createTabSwitchEditorItem();
b.append(a.createJqCap());b.append(c);b.append(d);b.append(f);c=a.createJqGroupTitle(A.get("frontLabelGroupTitle","\u6807\u7b7e\uff1a"));d=a.createFrontLabelEditorItem();f=a.createFrontLabelPositionEditorItem();h=a.createFrontLabelLengthEditorItem();b.append(a.createJqCap());b.append(c);b.append(d);b.append(f);b.append(h);c=a.createJqGroupTitle(A.get("surfaceGroupTitle","\u5916\u89c2\uff1a"));d=a.createFontSizeEnhancedEditorItem();b.append(a.createJqCap());b.append(c);b.append(d)};this.protectedGetAffectedTargetSupportedTypes=
function(){return a.getAffectedTargetSupportedTypes()};this.protectedDoCustomPropertyChanged=function(b){a.discreteItemFilterPropertyChanged(b);a.filterSimilaryPropertyChanged(b);a.withLabelCtrlPropertyChanged(b);a.fontSizeEnhancedPropertyChanged(b)}}function xa(){nb.call(this);Nb.call(this);Ha.call(this);S.call(this);var a=this,b=this.protectedMethod,c;this.protectedInitCustomUi=function(h){c=new Eb;c.addActionListener(f);c.setCustomPainter(d);var n=b.createJqGroupTitle(A.get("filterDataGroupTitle",
"\u6570\u636e\uff1a")),G=b.createJqLineItem(A.get("dateRangeInitial","\u521d\u59cb\u503c"),c);h.append(b.createJqCap());h.append(n);h.append(G);c.setModel(a.getWidget());n=b.createJqGroupTitle(A.get("affectingGroupTitle","\u8054\u52a8\uff1a"));G=b.createAffectedTargetEditorItem();h.append(b.createJqCap());h.append(n);h.append(G);n=b.createJqGroupTitle(A.get("frontLabelGroupTitle","\u6807\u7b7e\uff1a"));G=b.createFrontLabelEditorItem();var B=b.createFrontLabelPositionEditorItem(),w=b.createFrontLabelLengthEditorItem();
h.append(b.createJqCap());h.append(n);h.append(G);h.append(B);h.append(w);n=b.createJqGroupTitle(A.get("surfaceGroupTitle","\u5916\u89c2\uff1a"));G=b.createFontSizeEnhancedEditorItem();h.append(b.createJqCap());h.append(n);h.append(G)};this.protectedGetAffectedTargetSupportedTypes=function(){var h={};h[Z.WidgetType_Square]=0;h[Z.WidgetType_Longer]=1;h[Z.WidgetType_QingReport]=2;return h};this.protectedDoCustomPropertyChanged=function(h){h==od.KEY_DATE_INITIAL?c.setModel(a.getWidget()):(b.filterSimilaryPropertyChanged(h),
b.withLabelCtrlPropertyChanged(h),b.fontSizeEnhancedPropertyChanged(h))};var d=function(h){return h?a.protectedToF7DateDisplay(h):""};this.protectedToF7DateDisplay=function(h){throw Error("Implement");};var f=function(h){a.protectedCreateDateInitialDialog().showDialog(b.getGlobal(),a.getWidget(),function(n,G,B,w,t){if(n){n=b.getEditorCaption(c);var q=new Pd;q.setValue(a.getWidget(),G,B,w,t);b.performAction(q,n)}})};this.protectedCreateDateInitialDialog=function(){throw Error("Implement");}}function La(){xa.call(this);
this.protectedCreateDateInitialDialog=function(){return new vd};this.protectedToF7DateDisplay=function(a){if(a.getRelativeModel())return Oc.modelToDisplayText(a.getRelativeModel(),!1);var b=new mb;b.setFormatString("yyyy-M-d");var c=b.format(a.getFromDate());a=b.format(a.getToDate());return c+"~"+a}}function Wa(){xa.call(this);this.protectedCreateDateInitialDialog=function(){return new id};this.protectedToF7DateDisplay=function(a){if(a.getRelativeModel())return id.modelToDisplayText(a.getRelativeModel());
var b=new mb;b.setFormatString("yyyy");return b.format(a.getFromDate())}}function ba(){xa.call(this);this.protectedCreateDateInitialDialog=function(){return new jd};this.protectedToF7DateDisplay=function(a){if(a.getRelativeModel())return jd.modelToDisplayText(a.getRelativeModel());var b=new Date(a.getFromDate());a=b.getFullYear();b=Math.floor(b.getMonth()/3)+1;return a+" Q"+b}}function K(){xa.call(this);this.protectedCreateDateInitialDialog=function(){return new kd};this.protectedToF7DateDisplay=
function(a){if(a.getRelativeModel())return kd.modelToDisplayText(a.getRelativeModel());var b=new mb;b.setFormatString("yyyy-MM");return b.format(a.getFromDate())}}function v(){xa.call(this);this.protectedCreateDateInitialDialog=function(){return new ld};this.protectedToF7DateDisplay=function(a){if(a.getRelativeModel())return ld.modelToDisplayText(a.getRelativeModel());var b=new mb;b.setFormatString("yyyy-MM-dd");return b.format(a.getFromDate())}}function F(){nb.call(this);Tb.call(this);var a=this,
b=this.protectedMethod,c;this.protectedInitCustomUi=function(n){b.initCardSurfaceEditorItems(n);b.initCardTopBarEditorItems(n);n.append(d())};this.protectedDoCustomPropertyChanged=function(n){n==Mc.KEY_FULLSCREEN_ALLOWED&&f();b.cardSimilaryPropertyChanged(n)};var d=function(){c=new Xa;c.setItemModels([Mc.FULLSCREEN_ALLOWED_NONE,Mc.FULLSCREEN_ALLOWED_ALONE,Mc.FULLSCREEN_ALLOWED_ALIVE]);c.setCustomPainter(h);c.addSelectedChangedListener(function(n,G,B){n=b.getEditorCaption(n);G=new Pb;G.setMethod(a.getWidget().getFullscreenAllowed,
a.getWidget().setFullscreenAllowed);G.setValue(B);b.performAction(G,n)});f();return b.createJqLineItem(A.get("fullscreenAllowed","\u5168\u5c4f"),c)},f=function(){if(c){var n=a.getWidget().getFullscreenAllowed();c.setSelected(n)}},h=function(n,G,B){switch(B){case Mc.FULLSCREEN_ALLOWED_NONE:n=A.get("fullscreenAllowedNone","\u5173\u95ed");break;case Mc.FULLSCREEN_ALLOWED_ALONE:n=A.get("fullscreenAllowedAlone","\u5f00\u542f\u4e14\u4e0b\u7ea7\u7ec4\u4ef6\u7981\u6b62");break;case Mc.FULLSCREEN_ALLOWED_ALIVE:n=
A.get("fullscreenAllowedAlive","\u5f00\u542f\u4e14\u4e0b\u7ea7\u7ec4\u4ef6\u5141\u8bb8");break;default:n=""}G.text(n)}}function O(){nb.call(this);S.call(this);var a=this,b=this.protectedMethod,c,d,f;this.protectedInitCustomUi=function(r){var P=b.createJqGroupTitle(A.get("tabbedHeadGroupTitle","\u5bfc\u822a\u680f\uff1a")),I=B(),pa=w(),Ea=b.createFontSizeEnhancedEditorItem();G();r.append(b.createJqCap());r.append(P);r.append(I);r.append(pa);r.append(Ea);P=b.createJqGroupTitle(A.get("slideshowGroupTitle",
"\u8f6e\u64ad\uff1a"));I=u();r.append(b.createJqCap());r.append(P);r.append(I)};this.protectedDoCustomPropertyChanged=function(r){r==kc.KEY_HEAD_PATTERN?(h(),G()):r==kc.KEY_HEAD_POSITION?n():r==kc.KEY_SLIDESHOW?m():b.fontSizeEnhancedPropertyChanged(r)};var h=function(){if(c){var r=a.getWidget().getHeadPattern();c.setSelected(r)}},n=function(){if(d){var r=a.getWidget().getHeadPosition();d.setSelected(r)}},G=function(){if(d){var r=a.getWidget().getHeadPattern()==kc.HEAD_PATTERN_HIDDEN;b.updateEditorVisible(d,
!r);b.updateFontSizeEditorVisible(!r)}},B=function(){c=new Xa;c.setItemModels([kc.HEAD_PATTERN_BAR,kc.HEAD_PATTERN_BARE,kc.HEAD_PATTERN_HIDDEN]);c.setCustomPainter(t);c.addSelectedChangedListener(function(r,P,I){r=b.getEditorCaption(r);P=new Pb;P.setMethod(a.getWidget().getHeadPattern,a.getWidget().setHeadPattern);P.setValue(I);b.performAction(P,r)});h();return b.createJqLineItem(A.get("tabbedHeadPattern","\u5916\u89c2\u98ce\u683c"),c)},w=function(){d=new Xa;d.setItemModels([kc.HEAD_TOP_LEFT,kc.HEAD_TOP_RIGHT,
kc.HEAD_BOTTOM_LEFT,kc.HEAD_BOTTOM_RIGHT]);d.setCustomPainter(q);d.addSelectedChangedListener(function(r,P,I){r=b.getEditorCaption(r);P=new Pb;P.setMethod(a.getWidget().getHeadPosition,a.getWidget().setHeadPosition);P.setValue(I);b.performAction(P,r)});n();return b.createJqLineItem(A.get("tabbedHeadPosition","\u6309\u94ae\u4f4d\u7f6e"),d)},t=function(r,P,I){switch(I){case kc.HEAD_PATTERN_BAR:r=A.get("tabbedHeadPatternBar","\u9002\u7528\u4e8e\u9875\u9762\u4e2d");break;case kc.HEAD_PATTERN_BARE:r=A.get("tabbedHeadPatternBare",
"\u9002\u7528\u4e8e\u5361\u7247\u4e2d");break;case kc.HEAD_PATTERN_HIDDEN:r=A.get("tabbedHeadPatternHide","\u9690\u85cf");break;default:r=""}P.text(r)},q=function(r,P,I){switch(I){case kc.HEAD_TOP_LEFT:r=A.get("tabbedHeadPositionTL","\u5de6\u4e0a");break;case kc.HEAD_TOP_RIGHT:r=A.get("tabbedHeadPositionTR","\u53f3\u4e0a");break;case kc.HEAD_BOTTOM_LEFT:r=A.get("tabbedHeadPositionBL","\u5de6\u4e0b");break;case kc.HEAD_BOTTOM_RIGHT:r=A.get("tabbedHeadPositionBR","\u53f3\u4e0b");break;default:r=""}P.text(r)},
m=function(){if(f){var r=a.getWidget().isSlideshowEnabled();f.setChecked(r)}},u=function(){f=new dc;f.addCheckedListener(function(r,P){if(P){P=b.getEditorCaption(r);var I=new Pb;I.setMethod(a.getWidget().isSlideshowEnabled,a.getWidget().setSlideshowEnabled);I.setValue(r.isChecked());b.performAction(I,P)}});m();return b.createJqLineItem(A.get("slideshow","\u542f\u7528\u8f6e\u64ad"),f)}}function J(){function a(){var q,m;this.bindModel=function(r){m=r};this.initUi=function(r){q=new $b;q.setConstraint(1,
999999,1);q.addValueChangedListener(u,!0);var P=d.createJqLineItem(A.get("slideshowDuration","\u6301\u7eed\u65f6\u95f4(\u79d2)"),q);r.append(P)};this.updateVisibleAndState=function(r){d.updateEditorVisible(q,r);q.setValue(m.getDuration())};var u=function(r,P,I){r=new Pb;r.setMethod(m.getDuration,m.setDuration);r.setValue(q.getValue());t(m,r)}}function b(){var q,m,u,r;this.bindModel=function(Aa){q=Aa};this.initUi=function(Aa){m=new Eb;m.addActionListener(P);m.setCustomPainter(function(qb){return qb?
qb.toShortDisplay(d.getGlobal().getDashboardModel()):""});u=new Eb;u.addActionListener(I);u.setCustomPainter(function(qb){if(!qb)return"";var yb=Z.AffectedType_BindField|Z.AffectedType_Param;return Nb.affectedTargetsToShortDisplay(d.getGlobal().getDashboardModel(),qb,yb)});r=new $b;r.setConstraint(1,999999,1);r.addValueChangedListener(pa,!0);Aa.append(d.createJqLineItem(A.get("slideshowDataItems","\u8f6e\u64ad\u6570\u636e\u9879"),m));Aa.append(d.createJqLineItem(A.get("slideshowEachDuration","\u6bcf\u9879\u95f4\u9694(\u79d2)"),
r));Aa.append(d.createJqLineItem(A.get("affectedTarget","\u4f5c\u7528\u4e8e"),u))};this.updateVisibleAndState=function(Aa){d.updateEditorVisible(m,Aa);d.updateEditorVisible(u,Aa);d.updateEditorVisible(r,Aa);m.setModel(q.getFilterSource());u.setModel(q.getAffectedTargets());r.setValue(q.getEachDuration())};var P=function(Aa){Aa=q.createWidgetPeer();var qb=new gd;qb.setTitle(A.get("slideshowDataItemsDialogTitle","\u201c#1\u201d\u7684\u8f6e\u64ad\u6570\u636e\u9879").replace("#1",c.getWidget().getDisplayName()));
qb.showDialog(d.getGlobal(),Aa,function(yb,Yb,Ub){yb&&(yb=new Pb,yb.setMethod(q.getFilterSource,q.setFilterSource),yb.setValue(Yb),t(q,yb))})},I=function(Aa){var qb=Ea();(new rd).showDialog(d.getGlobal(),c.getWidget(),function(yb){yb=qb[yb.getWidgetTypeName()];return 0<=yb?yb:-1},function(yb){if(null!==yb){var Yb=new Pb;Yb.setMethod(q.getAffectedTargets,q.setAffectedTargets);Yb.setValue(yb);t(q,Yb)}})},pa=function(Aa,qb,yb){Aa=new Pb;Aa.setMethod(q.getEachDuration,q.setEachDuration);Aa.setValue(r.getValue());
t(q,Aa)},Ea=function(){var Aa={};Aa[Z.WidgetType_Square]=0;Aa[Z.WidgetType_Longer]=1;Aa[Z.WidgetType_QingReport]=2;Aa[Z.WidgetType_ExtReport]=3;Aa[Z.WidgetType_Label]=4;Aa[Z.WidgetType_Rich]=5;return Aa}}hc.call(this);pc.call(this);var c=this,d=this.protectedMethod,f,h,n={};this.protectedInitUi=function(q){var m=d.createJqGroupTitle(A.get("tabbedHeadGroupTitle","\u5bfc\u822a\u680f\uff1a"));f=d.createTextEditor(c.getWidget().getHeadText,c.getWidget().setHeadText,null,!1,40);var u=d.createJqLineItem(A.get("tabbedHeadText",
"\u663e\u793a\u6587\u5b57"),f);q.append(m);q.append(u);f.setModel(c.getWidget().getHeadText());m=d.createJqGroupTitle(A.get("slideshowGroupTitle","\u8f6e\u64ad\uff1a"));u=G();q.append(d.createJqCap());q.append(m);q.append(u);for(var r in n)n[r].initUi(q);B();q.append(d.createJqCap());d.backgroundInitUi(q)};this.protectedDoPropertyChanged=function(q){q==$c.KEY_HEAD_TEXT?f.setModel(c.getWidget().getHeadText()):q==$c.KEY_DURATION_MODE?B():d.backgroundDoPropertyChanged(q)};var G=function(){for(var q=
c.getWidget().getDurationMode(),m=[Yc.TYPE_ByFixedTime,Yc.TYPE_ByData],u=[a,b],r=[],P=0;P<m.length;P++){var I=m[P],pa=I==q.getType()?q:Yc.createInstance(I);r.push(pa);var Ea=new u[P];Ea.bindModel(pa);n[I]=Ea}h=new Xa;h.setItemModels(r,function(Aa,qb){return Aa.getType()==qb.getType()});h.setCustomPainter(w);h.addSelectedChangedListener(function(Aa,qb,yb){t(yb)});return d.createJqLineItem(A.get("slideshowMode","\u8f6e\u64ad\u6a21\u5f0f"),h)},B=function(){var q=c.getWidget().getDurationMode();h.setSelected(q);
for(var m in n){var u=n[m],r=m==q.getType();r&&u.bindModel(q);u.updateVisibleAndState(r)}},w=function(q,m,u){switch(u?u.getType():""){case Yc.TYPE_ByFixedTime:q=A.get("slideshowModeFixedTime","\u56fa\u5b9a\u65f6\u95f4");break;case Yc.TYPE_ByData:q=A.get("slideshowModeByData","\u6570\u636e\u9a71\u52a8");break;default:q=""}m.text(q)},t=function(q,m){var u=new Pb;u.setMethod(c.getWidget().getDurationMode,c.getWidget().setDurationMode);u.setValue(q);d.performAction(m?[u,m]:u,A.get("slideshowMode","\u8f6e\u64ad\u6a21\u5f0f"))}}
function V(){nb.call(this);nc.call(this);var a=this,b=this.protectedMethod,c,d;this.protectedGetSourceSelector=function(){return va.getWidgetSourceSelector().selectPicture};this.protectedInitCustomUi=function(B){var w=b.createJqGroupTitle(A.get("pictureGroupTitle","\u56fe\u7247\uff1a")),t=b.createReferenceEditorItem(A.get("pictureUrl","\u56fe\u7247\u5185\u5bb9"));c=new dc;c.addCheckedListener(f);var q=b.createJqLineItem(A.get("pictureScale","\u539f\u59cb\u5c3a\u5bf8"),c);d=new dc;d.addCheckedListener(h);
var m=b.createJqLineItem(A.get("pictureAlign","\u5c45\u4e2d"),d);B.append(b.createJqCap());B.append(w);B.append(t);B.append(q);B.append(m);n();G()};this.protectedDoCustomPropertyChanged=function(B){B==rb.KEY_SCALE?n():B==rb.KEY_ALIGN&&G()};var f=function(B,w){if(w){B=b.getEditorCaption(B);w=c.isChecked()?rb.SCALE_NON:rb.SCALE_ADAPTIVE;var t=new Pb;t.setMethod(a.getWidget().getScale,a.getWidget().setScale);t.setValue(w);b.performAction(t,B)}},h=function(B,w){if(w){B=b.getEditorCaption(B);w=d.isChecked()?
rb.HALIGN_CENTER|rb.VALIGN_MIDDLE:rb.HALIGN_LEFT|rb.VALIGN_TOP;var t=new Pb;t.setMethod(a.getWidget().getAlign,a.getWidget().setAlign);t.setValue(w);b.performAction(t,B)}},n=function(){var B=a.getWidget().getScale();B==rb.SCALE_NON?c.setChecked(!0):B==rb.SCALE_ADAPTIVE&&c.setChecked(!1)},G=function(){a.getWidget().getAlign()==(rb.HALIGN_CENTER|rb.VALIGN_MIDDLE)?d.setChecked(!0):d.setChecked(!1)}}function fa(){var a,b,c,d,f,h,n=!1,G;this.setShowBlockingByFacade=function(w,t){n=w;G=t};this.setFacadeCreator=
function(w){a=w};this.refresh=function(w,t,q,m,u,r,P){d=t;b=m;c=u;h=r;t=a(B,c);t.setShowBlocking(n);t.setBlockingPrompt(G);t.setCancelable(!0);P&&t.setProgressListener(P);return t.refreshData(w,d,q)};this.prepare=function(w,t,q,m,u){b=t;c=q;h=m;t=a(B,c);t.setShowBlocking(n);t.setBlockingPrompt(G);t.setCancelable(!0);u&&t.setProgressListener(u);return t.refreshData(w)};this.setTagImmediateAnnouncer=function(w){f=w};var B=function(w){if(!h||!h()){if(w=w.tag)d=w,f&&(f(d),f=null);b(d)}}}function ia(){function a(){Xb.call(this);
var m=this,u=this.protectedMethod,r=$("<div>"),P;(function(){m.setSize(480,360);u.setContentPaneCreator(function(){return r});u.setClosingAction(function(I){P.destroy();u.destroy()});u.setFooterPaneCreator(function(I){var pa=new lc(A.get("createWidgetErrorConfirm","\u6211\u77e5\u9053\u4e86"));pa.getJqUi().appendTo(I);pa.addActionListener(function(Ea){P.destroy();u.destroy()});Ja.layoutCtrlWithLRTB(pa.getJqUi(),180,180,null,null,12,28)})})();this.setTitle=function(I){u.setTitle(I)};this.setErrorInfo=
function(I,pa,Ea){va.createDashboardSquareScene(!1,function(Aa){P=Aa;P.show(r);P.displayError(I,pa,Ea)})}}var b,c,d,f,h,n;this.bindIntegrationImpl=function(m,u){b=m;c=u};this.selecting=function(m,u,r){d=m;f=u;h=function(P){r(P?!0:!1)};m=xb.getInstance(f.getWidgetTypeName()).getTypeDisplayName();n=A.get("createWidget","\u65b0\u5efa\u7ec4\u4ef6-#1").replace("#1",m);b(null,G)};this.reselecting=function(m,u,r){d=m;f=u;h=r;n=f.getDisplayName();b(f.getReferenceCustomMap(),B)};var G=function(m,u,r,P,I){m?
(u&&f.setCardTitle(u),f.setReferenceCustomMap(m),r?w(m,!0):q(P,I,!0,m)):h(null)},B=function(m,u,r,P,I){m?r?w(m,!1):q(P,I,!0,m):h(null)},w=function(m,u){var r=new fa;r.setFacadeCreator(d.createFacade);r=r.prepare(m,function(I){P.hideWaiting();f.setExecutingTag(I);t(m,I,u)},function(I,pa,Ea){P.hideWaiting();h(null);if(-1!=I){var Aa=new a;Aa.setTitle(n);Aa.showDialog();Aa.setErrorInfo(I,pa,Ea)}return!0},null,function(I){P.hookProgressDisplayer(D.makeUiCreator(I))});var P=new ca;P.setIconVisible(!0);
P.hookOwner($(document.body),null);P.showWaiting(D.getWaitingText(),r)},t=function(m,u,r){c(n,!1,m,u,null,function(P){q(P,null,!r,m)})},q=function(m,u,r,P){m?(f.deliveryTemporary(m,u,r),h(P)):h(null)}}function wa(){Gb.call(this);var a=this,b=this.protectedMethod,c,d,f,h;this.getJqUi=function(){if(!c){c=$("<div>");c.css("overflow","hidden");var n=xb.getInstance(b.getWidget().getWidgetTypeName()).getMargin();d=$("<div>");d.appendTo(c);Ja.layoutCtrlWithLRTB(d,n,n,null,n,n,null);a.updateHeadUi(!0)}return c};
this.getJqContent=function(){return d};this.updateHeadUi=function(n){var G=b.getWidget();a:switch(G.getHeadPattern()){case kc.HEAD_PATTERN_BAR:var B=new Oa;break a;case kc.HEAD_PATTERN_BARE:B=new Na;break a;default:B=null}var w=B?B.measureButtons(G):0;if(n||w!=h)if(h=w,f&&f.getJqUi().remove(),f=B)f.getJqUi().appendTo(d),n=f.getJqUi(),w=b.getWidget(),B=w.getHeadHeight(),w=w.getHeadPosition(),w=w==kc.HEAD_BOTTOM_LEFT||w==kc.HEAD_BOTTOM_RIGHT,Ja.layoutCtrlWithLRTB(n,0,0,null,w?null:0,w?0:null,B),0<G.getWidgetCount()&&
f.createButtons(G,h)}}function Ca(){var a=this,b,c;this.getJqUi=function(){b||(b=$("<div>"),b.css({"box-sizing":"border-box"}),c=$("<div>"),c.appendTo(b));return b};this.measureButtons=function(h){var n=new Hb;n.setFontSize(f(h));for(var G=0,B=0;B<h.getWidgetCount();B++){var w=h.getWidget(B);w=n.measureWidth(w.getHeadText());G=Math.max(G,w)}n.destroy();n=a.protectedGetPadding();h=parseInt((h.getClientWidth()-2*n)/h.getWidgetCount());n=a.protectedGetButtonPadding();return Math.min(G+2*n,h)};this.createButtons=
function(h,n){var G=h.isOpacityRequired();a.protectedPaintHead(a.getJqUi(),G);G=[];for(var B=0;B<h.getWidgetCount();B++){var w=h.getWidget(B);w=d(h,w);G.push(w)}B=h.getHeadHeight();n=a.protectedLayoutButtons(G,n,B);G=a.protectedGetPadding();n+=2*G;h=h.getHeadPosition();h=h==kc.HEAD_BOTTOM_LEFT||h==kc.HEAD_TOP_LEFT;Ja.layoutCtrlWithLRTB(c,h?0:null,h?null:0,n,0,0,null)};this.protectedPaintHead=function(h,n){};this.protectedGetPadding=function(){return 0};this.protectedGetButtonPadding=function(){return 0};
this.protectedLayoutButtons=function(h,n,G){throw Error("Implement");};var d=function(h,n){var G=Ta.dip(Ta.DSB_TABBED_HEAD),B=G[Ta.Key_TabbedHead_MainColor];G=G[Ta.Key_TabbedHead_InverseColor];G=n.isVisible()?G:B;var w=n.isVisible()?B:"transparent",t=$("<div>");t.text(n.getHeadText());t.css({overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis","box-sizing":"border-box","text-align":"center",color:G,"background-color":w,border:"1px solid "+B,"font-size":f(h)+"px"});t.appendTo(c);t.on("click",
function(q){n.setVisible(!0)});return t},f=function(h){h=h.getFontSizeEnhanced();return Math.round(12*(1+h/10))}}function Oa(){Ca.call(this);var a=this;this.protectedPaintHead=function(b,c){Ta.decorateCardSimpleBorder(c,b)};this.protectedLayoutButtons=function(b,c,d){var f=a.protectedGetPadding(),h=parseInt(.2*d);d=parseInt(.6*d);for(var n=0;n<b.length;n++){var G=b[n];G.css("line-height",d-2+"px");Ja.layoutCtrl(G,f,h,c,d);f+=c-1;0==n&&G.css({"border-top-left-radius":"2px","border-bottom-left-radius":"2px"});
n==b.length-1&&G.css({"border-top-right-radius":"2px","border-bottom-right-radius":"2px"})}return(c-1)*b.length+1};this.protectedGetPadding=function(){return 16};this.protectedGetButtonPadding=function(){return 20}}function Na(){Ca.call(this);var a=this;this.protectedLayoutButtons=function(b,c,d){for(var f=a.protectedGetPadding(),h=0;h<b.length;h++){var n=b[h];n.css("line-height",d-2+"px");Ja.layoutCtrl(n,f,0,c,d);f+=c-1}return(c-1)*b.length+1};this.protectedGetPadding=function(){return 0};this.protectedGetButtonPadding=
function(){return 16}}function Za(){oa.call(this);var a=this,b=this.protectedMethod,c,d,f,h,n=$("<div>"),G,B=[],w;this.getJqUi=function(){if(!d){var Va=$("<div>");f=t(1,"left");f.appendTo(Va);h=t(-1,"right");h.appendTo(Va);q();d=$("<div>");d.css({overflow:"hidden","z-index":1});d.appendTo(Va);n.appendTo(d);n.on("mouseover",Dc);n.on("mouseout",yc);n.on("click",Vc)}return d.parent()};var t=function(Va,Db){var ta=$("<div>");$a.background(ta,Db);Ja.layoutCtrlCenterAlign(ta,16);Ja.layoutCtrlMiddleAlign(ta,
16);Db=$("<div>");Db.append(ta);Db.css({cursor:"pointer","z-index":2});Db.on("click",function(Ua){Ua=u();var ea=d.prop(Ua?"clientHeight":"clientWidth"),Ia=n.prop(Ua?"offsetHeight":"offsetWidth");Ia=ea-Ia;var cb=n.data("my-start");ea=parseInt(.618*ea)*Va;0<=cb&&0<ea?I(0,ea):cb<=Ia&&0>ea?I(Ia,ea):r(Ua?"top":"left",Math.min(0,Math.max(Ia,cb+ea)),375)});return Db};this.setSelectableItems=function(Va){P(Va)};this.setSelectedItems=function(Va){B=Va;Yb();pa()};this.getSelectedItems=function(){return B};
this.setValueChangedListener=function(Va){w=Va};this.relayout=function(){q();m()};this.requestRepaint=function(){if(c){var Va=b.getWidget().getWidth(),Db=b.getWidget().getHeight();if(c[0]==Va&&c[1]==Db)return}m()};this.repaintButtons=function(){Yb()};var q=function(){var Va={transform:u()?"rotate(90deg)":""};f.children().eq(0).css(Va);h.children().eq(0).css(Va)},m=function(){var Va=[];yb(function(Db){Db=jc(Db);Va.push(Db)});P(Va);Yb()},u=function(){return b.getWidget().getLayoutMode()==Wb.LAYOUT_MODE_WRAP},
r=function(Va,Db,ta){n.data("my-start",Db);var Ua={};Ua[Va]=Db;n.stop().animate(Ua,ta)},P=function(Va){var Db=b.getWidget().getWidth(),ta=b.getWidget().getHeight();c=[Db,ta];G=null;n.empty();if(u()){var Ua=Ub(),ea=Ua[0],Ia=Ua[2];Ua=Math.min(Ua[3],ta);var cb=Ia,db=b.getWidget().getCharsPerItemWhenWrap(),Cb=ea*(db+1);db=b.getWidget().getItemsPerRowWhenWrap();db=Math.min(Va.length,Math.max(1,db));var bc=Math.floor((Db+Ia)/db-Ia),cc=bc;bc<Cb&&(db=Math.max(1,Math.floor((Db+Ia)/(Cb+Ia))),cc=Math.floor((Db+
Ia)/db-Ia));Cb=Math.ceil(Va.length/db);1<Cb&&(Cb=Math.floor((ta-Cb*Ua)/(Cb-1)),Math.floor(cb/2)<=Cb&&(cb=Math.min(Cb,Ua)));bc=Cb=0;for(var rc=$(document.createDocumentFragment()),qc=0;qc<Va.length;qc++){var Ac=Va[qc],Pc=Ac.getDisplayText();Ac=Aa(Pc,Ua,ea,Ac);Ac.attr("title",Pc);Ac.appendTo(rc);Cb=(Pc=0==qc%db)?0:Cb+cc+Ia;bc=0<qc&&Pc?bc+Ua+cb:bc;Ja.layoutCtrl(Ac,Cb,bc,cc,Ua);0==qc&&b.getWidget().isIncludedItemAll()&&(G=Ac)}n.append(rc);Va=bc+Ua;Ja.layoutCtrl(n,0,0,"100%",Va);r("left",0,0);r("top",
0,0);Va=(ea=Va>ta)?24:0;ea=ea?"":"none";f.css("display",ea);h.css("display",ea);ea=Va;Ia=0;2*Va+Ua>ta&&(ea=0,Ia=Math.floor((Db-Va)/2));Ja.layoutCtrlWithLRTB(d,0,0,"",ea,ea,"");Ja.layoutCtrlWithLRTB(f,Ia,Ia,"",0,"",Va);Ja.layoutCtrlWithLRTB(h,Ia,Ia,"","",0,Va)}else{Ia=Ub();ta=Ia[0];Ua=Ia[1];ea=Ia[2];Ia=Ia[3];cb=0;db=$(document.createDocumentFragment());cc=new Hb;cc.setFontSize(ta);for(Cb=0;Cb<Va.length;Cb++)rc=Va[Cb],qc=rc.getDisplayText(),bc=cc.measureWidth(qc)+2*Ua+1,rc=Aa(qc,Ia,ta,rc),rc.appendTo(db),
Ja.layoutCtrl(rc,cb,0,bc,Ia),cb+=bc+ea,0==Cb&&b.getWidget().isIncludedItemAll()&&(G=rc);cc.destroy();n.append(db);Va=Math.max(0,cb-ea);Ja.layoutCtrl(n,0,0,Va,"100%");r("left",0,0);r("top",0,0);Db=(Va=Va>Db)?40:0;Va=Va?"":"none";f.css("display",Va);h.css("display",Va);Ja.layoutCtrlWithLRTB(d,Db,Db,"",0,0,"");Ja.layoutCtrlWithLRTB(f,0,"",Db,0,0,"");Ja.layoutCtrlWithLRTB(h,"",0,Db,0,0,"")}},I=function(Va,Db){var ta=u()?"top":"left",Ua={};Ua[ta]=Va+parseInt(.2*Db);n.stop().animate(Ua,100,function(){Ua[ta]=
Va;n.animate(Ua,250)})},pa=function(){if(B&&0<B.length){var Va=B[0],Db;yb(function(ta){return jc(ta).getValue()==Va.getValue()?(Db=ta,!0):!1});Db&&Ea(Db,0)}},Ea=function(Va,Db){var ta=u(),Ua=Va.prop(ta?"offsetTop":"offsetLeft");Va=Ua+Va.prop(ta?"offsetHeight":"offsetWidth");var ea=d.prop(ta?"clientHeight":"clientWidth"),Ia=-n.prop(ta?"offsetTop":"offsetLeft"),cb=!1;Va>Ia+ea&&(Ia=Va-ea,cb=!0);Ua<Ia&&(Ia=Ua,cb=!0);cb&&r(ta?"top":"left",-Ia,Db)},Aa=function(Va,Db,ta,Ua){var ea=$("<div>");ea.text(Va);
Ja.makeTextOmissible(ea);Ja.layoutCtrlWithLRTB(ea,0,0,null);Ja.layoutCtrlMiddleAlign(ea,Db-4);Va=$("<div>");Va.append(ea);Va.addClass("btn");Va.css("font-size",ta+"px");Va.css({cursor:"pointer","box-sizing":"border-box",border:"1px solid #ccc","border-radius":"3px","text-align":"center"});qb(Va);Va.data("my-model",Ua);return Va},qb=function(Va,Db,ta){var Ua=a.protectedGetStyleMap(),ea=Ua[Ta.Key_ButtonGroup_Color],Ia=Ua[Ta.Key_ButtonGroup_BackgroundColor],cb=Ua[Ta.Key_ButtonGroup_BorderColor];Db&&
(ea=Ua[Ta.Key_ButtonGroup_Color_Selected],Ia=Ua[Ta.Key_ButtonGroup_BackgroundColor_Selected],cb=Ua[Ta.Key_ButtonGroup_BorderColor_Selected]);ta&&(Ia=Ua[Ta.Key_ButtonGroup_BackgroundColor_Hover]);Va.css({color:ea,"background-color":Ia,"border-color":cb})};this.protectedGetStyleMap=function(){return Ta.dip(Ta.DSB_BUTTON_GROUP)};var yb=function(Va){for(var Db=n.children(".btn"),ta=0;ta<Db.length&&!Va(Db.eq(ta));ta++);},Yb=function(Va){var Db=Zc();yb(function(ta){var Ua=Va&&Va[0]==ta[0];if(G&&G[0]==ta[0])if(1==
B.length&&G){var ea=B[0];var Ia=jc(G);ea=ea.getValue()==Ia.getValue()}else ea=!1;else ea=jc(ta),ea=Db[ea.getValue()]?!0:!1;qb(ta,ea,Ua)})},Ub=function(){var Va=b.getWidget().getSizeMode();if(Va>=Wb.SIZE_MODE_LARGE){var Db=16;var ta=20;var Ua=16}else Va>=Wb.SIZE_MODE_MIDDLE?(ta=Db=14,Ua=8):(Db=12,ta=8,Ua=4);Va=Wb.askButtonHeight(Va);return[Db,ta,Ua,Va]},jc=function(Va){return Va.data("my-model")},sc=function(Va){return Ja.upwardSearchHasData(Va,n,"my-model")},Dc=function(Va){Va=$(Va.target);(Va=sc(Va))&&
Yb(Va)},yc=function(Va){Va=$(Va.target);sc(Va)&&Yb(null)},Vc=function(Va){Va=$(Va.target);if(Va=sc(Va)){Ea(Va,250);if(G&&G[0]==Va[0])B=[jc(G)];else if(Va=jc(Va),b.getWidget().isMultiSelectable()){if(G){var Db=jc(G);Rc(Db)}!Rc(Va)&&B.push(Va)}else B=[Va];Yb();w&&w()}},Rc=function(Va){for(var Db=0;Db<B.length;Db++)if(B[Db].getValue()===Va.getValue())return B.splice(Db,1),!0;return!1},Zc=function(){for(var Va={},Db=0;Db<B.length;Db++){var ta=B[Db];Va[ta.getValue()]=ta}return Va}}function kb(){Da.call(this);
var a=this.protectedMethod;this.getJqUi=function(){var b=$("<div>");b.on("mousemove",function(c){a.getWidget().setRuntimeWalkable(!1)});b.on("mouseleave",function(c){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 ra=com.kingdee.bos.qing.dsb.widget;ra.DesktopWidgetCtrlRegister=new g;ra.MobileWidgetCtrlRegister=new g;ra.DesktopWidgetCtrlProvider=function(){ub.call(this);var a=!0;this.setDesigntime=function(b){a=b};this.isDesigntime=function(){return a};this.protectedGetRegister=function(){return ra.DesktopWidgetCtrlRegister};this.protectedInitWidgetCtrl=function(b){a&&b.appendSituation(Da.Situation_Designtime)}};ra.MobileWidgetCtrlProvider=
function(){ub.call(this);this.isMobile=function(){return!0};this.protectedGetRegister=function(){return ra.MobileWidgetCtrlRegister};this.protectedInitWidgetCtrl=function(a){a.appendSituation(Da.Situation_Runtime_Mobile)}};ra.AbstractWidgetUi=la;ra.AbstractBuiltinVisualWidgetCtrl=sa;ra.AbstractPanelWidgetCtrl=za;ra.AbstractLabelWidgetCtrl=function(){Da.call(this)};ra.AbstractCalendarWidgetCtrl=function(){Da.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(){}};ra.AbstractComboboxWidgetCtrl=function(){Da.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(){}};ra.AbstractF7WidgetCtrl=function(){Da.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(){}};ra.CosmeticConfigPreviewButtonGroup=Za;ra.CosmeticConfigPreviewTabbedSelector=
Fb;ra.ExhibitionModePanel=fb;var Ja,na,mb,Hb,tb,A,Xa,Bb,Vb,Eb,$b,dc,gb,Ab,Xb,lc,Bc,uc,Tc,Jc,Oc,Nc,Kc,Ic,Ba,zb,X,da,D,ca,Ka,$a,va,Ta,xb,Z,Kb,Rb,ec,Gc,Lc,wc,Ec,bd,Wc,Uc,Fc,Sc,Xc,rb,vc,Hc,Qc,Wb,md,od,Qd,Rd,Sd,Td,Ud,Mc,kc,$c,cd,zd,hd,Cd,ed,ad,Yc,zc,Pb,qd,dd,Kd,Pd,Vd,sd,ud,td,pd,Dd,gd,rd,Ld,vd,id,jd,kd,ld,Md,Id,Od,Ed,Jd,Gd,Hd,Nd,Fd;(function(){var a=com.kingdee.bos.qing.common;Ja=a.DomUtil;na=a.FullScreenHelper;mb=a.DateFormater;Hb=a.TextMeasurer;tb=a.BlocksToTable;a=com.kingdee.bos.qing.framework.common;
A=a.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.dsb.ui);a=com.kingdee.bos.qing.ui.component;Xa=a.ComboBox;Bb=a.Label;Vb=a.TextField;Eb=a.F7Selector;$b=a.Spinner;dc=a.CheckBox;gb=a.RadioButton;Ab=a.RadioButtonGroup;Xb=a.AbstractModalDialog;lc=a.Button;Bc=a.Menu;uc=a.SimpleConfirmer;Tc=a.HelpIcon;Jc=a.ColorChooser;a=com.kingdee.bos.qing.common.ui;Oc=a.RelativePeriodPanel;Nc=a.ColorSelector;Kc=a.ColorWithOpacitySelector;Ic=a.FontSelector;a=com.kingdee.bos.qing.common.rich;Ba=a.RichDisplayer;
a=com.kingdee.bos.qing.chart.render;zb=a.StyleTool;a=com.kingdee.bos.qing.core;X=a.RtLongerEditableConfirmer;da=a.RtSquareEditableConfirmer;a=com.kingdee.bos.qing.core.commonui;D=a.DataPreparingProgressParser;ca=a.LongtimeWaitingMask;a=com.kingdee.bos.qing.core.model;Ka=a.BriefOutput;a=com.kingdee.bos.qing.dsb;$a=a.Icons;va=a.IntegrationRegister;Ta=a.CosmeticBag;a=com.kingdee.bos.qing.dsb.model;xb=a.WidgetTypeManager;Z=a.DashboardModel;Kb=a.WidgetUnknown;Rb=a.WidgetPageTitleBar;ec=a.AbstractCardSimilary;
Gc=a.WidgetSquare;Lc=a.WidgetLonger;wc=a.WidgetQingReport;Ec=a.WidgetExtReport;bd=a.WidgetProgramableCard;Wc=a.WidgetCosmicCustomCard;Uc=a.WidgetCloudhubSubscribes;Fc=a.AbstractTextWidget;Sc=a.WidgetLabel;Xc=a.WidgetRich;rb=a.WidgetPicture;vc=a.WidgetIframe;Hc=a.WidgetClock;Qc=a.WidgetCombobox;Wb=a.WidgetButtonGroup;md=a.WidgetF7;od=a.AbstractCalendar;Qd=a.WidgetCalendar;Rd=a.WidgetCalendarYear;Sd=a.WidgetCalendarQuarter;Td=a.WidgetCalendarMonth;Ud=a.WidgetCalendarDay;Mc=a.WidgetPanel;kc=a.WidgetTabbedContainer;
$c=a.WidgetOneTabbed;cd=a.AbstractFilterSource;zd=a.FilterSourceFromVisualWidget;hd=a.ValueTextItem;Cd=a.DateSelected;ed=a.AffectedTargets;ad=a.AbstractDefaultSelected;Yc=a.AbstractDurationMode;zc=a.AbstractCardBorder;if(a=com.kingdee.bos.qing.dsb.controller)Pb=a.ActionChangeProperty,qd=a.ActionChangePageRect,dd=a.ActionChangeWidgetRect,Kd=a.ActionModifyStyle,Pd=a.ActionChangeDateRange,Vd=a.ActionAddWidget;if(a=com.kingdee.bos.qing.dsb.ui)sd=a.UrlInputDialog,ud=a.RichEditorDialog,td=a.LabelContentDialog,
pd=a.TextInputDialog,Dd=a.TextAreaDialog,gd=a.FilterSourceDialog,rd=a.AffectedTargetDialog,Ld=a.TabSwitchDialog,vd=a.DateRangeInitialDialog,id=a.CalendarYearInitialDialog,jd=a.CalendarQuarterInitialDialog,kd=a.CalendarMonthInitialDialog,ld=a.CalendarDayInitialDialog,Md=a.DefaultSelectedDialog,Id=a.CosmeticConfigDialog,Od=a.ClockFormatDialog,Ed=a.CardLookConfigDialog,Jd=a.PageTitleBarSurfaceDialog,Gd=a.CardTopBarTitleLayoutDialog,Hd=a.PageCardTopBarTitleLayoutDialog,Nd=a.CardTitleStyleDialog,Fd=a.CardBorderOfImageDialog})();
xb.registerAll([function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_Page);a.setTypeDisplayName(A.get("widgetPage","\u9875\u9762"));a.setIconFileName("widget_page");this.createPropertyPanel=function(){return new ic}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_Square);a.setTypeDisplayName(A.get("widgetSquare","\u6570\u636e\u6597\u65b9"));a.setIconFileName("widget_square");this.getToolboxGroup=function(){return nd};this.protectedCreateWidgetModel=
function(b){return new Gc};this.protectedCreateWidgetUi=function(){return new Pa};this.createPropertyPanel=function(){return new ac};this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,c,d){var f=va.getWidgetSourceSelector().selectSquare,h=va.showSquareDesigner,n=new ia;n.bindIntegrationImpl(f,h);n.selecting(b,c,d)}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_Longer);a.setTypeDisplayName(A.get("widgetLonger","\u6570\u636e\u5206\u6790"));
a.setIconFileName("widget_longer");this.getToolboxGroup=function(){return nd};this.protectedCreateWidgetModel=function(b){return new Lc};this.protectedCreateWidgetUi=function(){return new Ma};this.createPropertyPanel=function(){return new tc};this.getSuggestSize=function(){return[450,300]};this.selectSource=function(b,c,d){var f=va.getWidgetSourceSelector().selectLonger,h=va.showLongerDesigner,n=new ia;n.bindIntegrationImpl(f,h);n.selecting(b,c,d)}},function(){lb.call(this);var a=this.protectedMethod;
a.setTypeName(Z.WidgetType_QingReport);a.setTypeDisplayName(A.get("widgetQingReport","\u8f7b\u62a5\u8868"));a.setIconFileName("widget_qingreport");this.isSupported=function(){return va.getQingReportExecutor()?!0:!1};this.getToolboxGroup=function(){return nd};this.protectedCreateWidgetModel=function(b){return new wc};this.protectedCreateWidgetUi=function(){return new sb};this.getSuggestSize=function(){return[450,300]};this.selectSource=function(b,c,d){va.getWidgetSourceSelector().selectQingReport(null,
function(f,h){f?(c.setReferenceCustomMap(f),h&&c.setCardTitle(h),d(!0)):d(!1)})};this.createPropertyPanel=function(){return new Cc}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_ExtReport);a.setTypeDisplayName(A.get("widgetExt","\u6269\u5c55\u62a5\u8868"));a.setIconFileName("widget_ext");this.isSupported=function(){return va.getExtReportExecutor()?!0:!1};this.getToolboxGroup=function(){return nd};this.protectedCreateWidgetModel=function(b){return new Ec};this.protectedCreateWidgetUi=
function(){return new bb};this.getSuggestSize=function(){return[450,300]};this.selectSource=function(b,c,d){va.getExtReportSourceSelector()(null,function(f){f?(c.setEncodedModel(f),d(!0)):d(!1)})};this.createPropertyPanel=function(){return new xc}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_Label);a.setTypeDisplayName(A.get("widgetLabel","\u6587\u5b57"));a.setIconFileName("widget_label");this.getToolboxGroup=function(){return fd};this.protectedCreateWidgetModel=
function(b){return new Sc};this.protectedCreateWidgetUi=function(){return new ua};this.getMinSize=function(){return[40,20]};this.getSuggestSize=function(){return[200,40]};this.createPropertyPanel=function(){return new z};this.selectSource=function(b,c,d){(new td).show(c,b.getDashboardModel().getPage(),function(f,h,n,G){n?(c.setContent(h,G),d(!0)):d(!1)})}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_Rich);a.setTypeDisplayName(A.get("widgetRich","\u591a\u884c\u6587\u5b57"));
a.setIconFileName("widget_rich");this.getToolboxGroup=function(){return fd};this.protectedCreateWidgetModel=function(b){return new Xc};this.protectedCreateWidgetUi=function(){return new C};this.getSuggestSize=function(){return[320,180]};this.createPropertyPanel=function(){return new E};this.selectSource=function(b,c,d){(new ud).show(c,b.getDashboardModel().getPage(),function(f,h,n,G){n?(c.setContent(h,G),d(!0)):d(!1)})}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_Picture);
a.setTypeDisplayName(A.get("widgetPicture","\u56fe\u7247"));a.setIconFileName("widget_picture");this.getToolboxGroup=function(){return fd};this.protectedCreateWidgetModel=function(b){return new rb};this.protectedCreateWidgetUi=function(){return new Zb};this.createPropertyPanel=function(){return new V};this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,c,d){va.getWidgetSourceSelector().selectPicture(null,function(f){f?(c.setReferenceCustomMap(f),d(!0)):d(!1)})}},function(){lb.call(this);
var a=this.protectedMethod;a.setTypeName(Z.WidgetType_Iframe);a.setTypeDisplayName(A.get("widgetIframe","\u7f51\u9875"));a.setIconFileName("widget_iframe");this.getToolboxGroup=function(){return fd};this.protectedCreateWidgetModel=function(b){return new vc};this.protectedCreateWidgetUi=function(){return new ya};this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,c,d){(new sd).showDialog("",function(f,h){f?(c.setUrl(h),d(!0)):d(!1)})};this.createPropertyPanel=function(){return new p}},
function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_Clock);a.setTypeDisplayName(A.get("widgetClock","\u5b9e\u65f6\u65f6\u95f4"));a.setIconFileName("widget_clock");this.getToolboxGroup=function(){return fd};this.protectedCreateWidgetModel=function(b){return new Hc};this.protectedCreateWidgetUi=function(){return new ma};this.createPropertyPanel=function(){return new x};this.getSuggestSize=function(){return[200,40]}},function(){lb.call(this);Lb.call(this);var a=this.protectedMethod;
a.setTypeName(Z.WidgetType_Combobox);a.setTypeDisplayName(A.get("widgetCombobox","\u4e0b\u62c9\u5217\u8868"));a.setIconFileName("widget_combobox");this.protectedCreateWidgetModel=function(b){var c=new Qc;b&&c.setIncludedItemAll(!0);return c};this.protectedCreateWidgetUi=function(){return new y};this.getSuggestSize=function(){return[180,25]};this.isHeightLockedAlways=function(){return!0};this.createPropertyPanel=function(){return new L}},function(){lb.call(this);Lb.call(this);var a=this.protectedMethod;
a.setTypeName(Z.WidgetType_ButtonGroup);a.setTypeDisplayName(A.get("widgetButtonGroup","\u6309\u94ae\u7ec4"));a.setIconFileName("widget_buttongroup");this.protectedCreateWidgetModel=function(b){var c=new Wb;b&&(c.setIncludedItemAll(!1),c.setLayoutMode(Wb.LAYOUT_MODE_HORIZONTAL),c.setSizeMode(Wb.SIZE_MODE_MIDDLE));return c};this.protectedCreateWidgetUi=function(){return new M};this.getMinSize=function(){return[100,Wb.askButtonHeight(Wb.SIZE_MODE_SMALL)]};this.getSuggestSize=function(){return[320,Wb.askButtonHeight(Wb.SIZE_MODE_MIDDLE)]};
this.createPropertyPanel=function(){return new R}},function(){lb.call(this);Lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_F7);a.setTypeDisplayName(A.get("widgetF7","\u5f39\u7a97\u9009\u62e9\u5668"));a.setIconFileName("widget_f7");this.protectedCreateWidgetModel=function(b){return new md};this.protectedCreateWidgetUi=function(){return new H};this.getSuggestSize=function(){return[180,25]};this.isHeightLockedAlways=function(){return!0};this.createPropertyPanel=function(){return new ka}},
function(){wb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_Calendar);a.setTypeDisplayName(A.get("widgetCalendar","\u65e5\u671f\u8303\u56f4"));a.setIconFileName("widget_calendar");this.protectedCreateWidgetModel=function(b){return new Qd};this.protectedCreateWidgetUi=function(){return new T};this.createPropertyPanel=function(){return new La};this.protectedCreateInitialDialog=function(){return new vd}},function(){wb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_CalendarYear);
a.setTypeDisplayName(A.get("widgetCalendarYear","\u65e5\u671f-\u5e74"));a.setIconFileName("widget_calendaryear");this.protectedCreateWidgetModel=function(b){return new Rd};this.protectedCreateWidgetUi=function(){return new U};this.createPropertyPanel=function(){return new Wa};this.protectedCreateInitialDialog=function(){return new id}},function(){wb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_CalendarQuarter);a.setTypeDisplayName(A.get("widgetCalendarQuarter","\u65e5\u671f-\u5e74\u5b63"));
a.setIconFileName("widget_calendarquarter");this.protectedCreateWidgetModel=function(b){return new Sd};this.protectedCreateWidgetUi=function(){return new Y};this.createPropertyPanel=function(){return new ba};this.protectedCreateInitialDialog=function(){return new jd}},function(){wb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_CalendarMonth);a.setTypeDisplayName(A.get("widgetCalendarMonth","\u65e5\u671f-\u5e74\u6708"));a.setIconFileName("widget_calendarmonth");this.protectedCreateWidgetModel=
function(b){return new Td};this.protectedCreateWidgetUi=function(){return new ja};this.createPropertyPanel=function(){return new K};this.protectedCreateInitialDialog=function(){return new kd}},function(){wb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_CalendarDay);a.setTypeDisplayName(A.get("widgetCalendarDay","\u65e5\u671f-\u5e74\u6708\u65e5"));a.setIconFileName("widget_calendarday");this.protectedCreateWidgetModel=function(b){return new Ud};this.protectedCreateWidgetUi=function(){return new qa};
this.createPropertyPanel=function(){return new v};this.protectedCreateInitialDialog=function(){return new ld}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_PageTitleBar);a.setTypeDisplayName(A.get("widgetPageTitleBar","\u9875\u9762\u6807\u9898\u680f"));a.setIconFileName("widget_titlebar");this.getToolboxGroup=function(){return wd};this.protectedCreateWidgetModel=function(b){return new Rb};this.protectedCreateWidgetUi=function(){return new Sb};this.createPropertyPanel=
function(){return new ob};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,c,d){c.setPosition(0,0);c.setSize(0,c.getHeight());d(!0)}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_Panel);a.setTypeDisplayName(A.get("widgetPanel","\u7ec4\u5408\u5361\u7247"));a.setIconFileName("widget_panel");this.getToolboxGroup=
function(){return wd};this.protectedCreateWidgetModel=function(b){return new Mc};this.protectedCreateWidgetUi=function(){return new Ga};this.getSuggestSize=function(){return[450,300]};this.getMinSize=function(){return[150,60]};this.createPropertyPanel=function(){return new F}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_TabbedContainer);a.setTypeDisplayName(A.get("widgetTabbedContainer","\u9875\u7b7e\u63a7\u4ef6"));a.setIconFileName("widget_tabbedall");this.getToolboxGroup=
function(){return wd};this.protectedCreateWidgetModel=function(d){var f=new kc;d&&(f.addWidget(b(A.get("widgetOneTabbed","\u9875\u7b7e")),0),f.addWidget(b(A.get("widgetOneTabbed","\u9875\u7b7e")),0),f.addWidget(b(A.get("widgetOneTabbed","\u9875\u7b7e")),0));return f};var b=function(d){var f=new $c;f.setHeadText(d);f.setVisible(!1);return f};this.protectedCreateWidgetUi=function(){return new ab};this.getSuggestSize=function(){return[450,300]};this.getMinSize=function(){return[150,90]};this.getMargin=
function(){return 5};this.createCustomDesignHandlerJqUi=function(d,f,h,n){return(new Fb(d,n)).createJqUi(f,h,d)};this.createPropertyPanel=function(){return new O};this.createOutlineMenu=function(d,f,h,n,G){d.addItemModel(Bc.createActionMenuItem(A.get("appendOneTabbed","\u6dfb\u52a0\u9875\u7b7e"),function(B){c(f,n,h,G)}));return!0};var c=function(d,f,h,n){var G=A.get("appendOneTabbed","\u6dfb\u52a0\u9875\u7b7e"),B=A.get("tabbedHeadText","\u663e\u793a\u6587\u5b57"),w=new pd;w.setCaption(G,B);w.setEmptyEnabled(!1);
w.setMaxLength(40);w.setText("",function(t,q){t&&(t=new $c,t.setHeadText(q),t.setVisible(!1),q=xb.getInstance(t.getWidgetTypeName()),f.allocateNameForNewWidget(t,q),q=new Vd,q.setCaption(A.get("appendOneTabbed","\u6dfb\u52a0\u9875\u7b7e")),q.setValue(h,t),n.perform(q))});w.showDialogRightAnchorTo(d)}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_OneTabbed);a.setTypeDisplayName(A.get("widgetOneTabbed","\u9875\u7b7e"));a.setIconFileName("widget_tabbedone");this.getToolboxGroup=
function(){return null};this.protectedCreateWidgetModel=function(b){return new $c};this.protectedCreateWidgetUi=function(){return new Ob};this.createPropertyPanel=function(){return new J};this.isWidthLockedAlways=function(){return!0};this.isHeightLockedAlways=function(){return!0};this.createCustomDesignHandlerJqUi=function(b,c,d,f){d-=b.getY();return(new Fb(b.getParent(),f)).createJqUi(c,d,b)}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_ProgramableCard);a.setTypeDisplayName(A.get("widgetProgramableCard",
"\u7f16\u7a0b\u5f0f\u5361\u7247"));a.setIconFileName("widget_programable");this.isSupported=function(){return va.getProgramableCardExecutor()?!0:!1};this.getToolboxGroup=function(){return xd};this.protectedCreateWidgetModel=function(b){return new bd};this.protectedCreateWidgetUi=function(){return new aa};this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,c,d){va.getWidgetSourceSelector().selectProgramableCard(null,function(f){f?(c.setReferenceCustomMap(f),d(!0)):d(!1)})};
this.createPropertyPanel=function(){return new k}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_CosmicCustomCard);a.setTypeDisplayName(A.get("widgetCustomCard","\u81ea\u5b9a\u4e49\u5361\u7247"));a.setIconFileName("widget_customcard");this.isSupported=function(){return va.getCosmicCustomCardExecutor()?!0:!1};this.getToolboxGroup=function(){return xd};this.protectedCreateWidgetModel=function(b){return new Wc};this.protectedCreateWidgetUi=function(){return new N};this.getSuggestSize=
function(){return[320,190]};this.selectSource=function(b,c,d){va.getCosmicCustomCardSourceSelector()(null,function(f){f?(c.setEncodedModel(f),d(!0)):d(!1)})};this.createPropertyPanel=function(){return new e}},function(){lb.call(this);var a=this.protectedMethod;a.setTypeName(Z.WidgetType_CloudhubSubscribes);a.setTypeDisplayName(A.get("widgetCloudhubSubscribes","\u4e91\u4e4b\u5bb6\u8ba2\u9605"));a.setIconFileName("widget_cloudhub");this.isSupported=function(){return va.getCloudhubSubscribesExecutor()?
!0:!1};this.getToolboxGroup=function(){return xd};this.protectedCreateWidgetModel=function(b){return new Uc};this.protectedCreateWidgetUi=function(){return new Fa};this.getSuggestSize=function(){return[320,190]};this.selectSource=function(b,c,d){va.getCloudhubSubscribesSourceSelector()(function(f){f||""===f?(c.setEncodedModel(f),d(!0)):d(!1)})};this.createPropertyPanel=function(){return new l}}]);xb.registerUnknown(new function(){lb.call(this);this.protectedCreateWidgetModel=function(a){return new Kb};
this.protectedCreateWidgetUi=function(){return new Sa};this.createPropertyPanel=function(){return new fc}});Da.Situation_Designtime=1;Da.Situation_Runtime_Preview=16;Da.Situation_Runtime_Mobile=256;var nd=new function(){ib.call(this);this.getGroupName=function(){return"Content"};this.getGroupDisplayName=function(){return A.get("groupContent","\u6570\u636e\u53ef\u89c6\u5316\u5185\u5bb9")}},yd=new function(){ib.call(this);this.getGroupName=function(){return"Filter"};this.getGroupDisplayName=function(){return A.get("groupFilter",
"\u7b5b\u9009\u5668")}},fd=new function(){ib.call(this);this.getGroupName=function(){return"Common"};this.getGroupDisplayName=function(){return A.get("groupCommon","\u901a\u7528\u5185\u5bb9")}},wd=new function(){ib.call(this);this.getGroupName=function(){return"Container"};this.getGroupDisplayName=function(){return A.get("groupContainer","\u5bb9\u5668")}},xd=new function(){ib.call(this);this.getGroupName=function(){return"BizSystem"};this.getGroupDisplayName=function(){return A.get("groupBizSystem",
"\u4e1a\u52a1\u7cfb\u7edf\u5185\u5bb9")}};la.KEY_VISUAL_DATA_PREPARED_SUCCESS="tagPrepared";la.KEY_VISUAL_DATA_PREPARED_ERROR="tagPreparingFailed";la.KEY_SELECTED="selected";la.KEY_SELECTED_BY_API=la.KEY_SELECTED+"_api";la.KEY_SELECTED_BY_MANUAL=la.KEY_SELECTED+"_manual";la.KEY_PLAY="play";la.KEY_OUTPUT_PARAM_REFRESHABLE="outputParamRefreshable";la.KEY_OUTPUT_PARAM_VISUAL_UPDATABLE="outputParamVisualUpdatable";sa.ACTION_ALL=255;sa.ACTION_NONE=0;sa.ACTION_EDIT=1;sa.ACTION_ANALYSIS=2;sa.ACTION_REFRESH=
4;sa.ACTION_FILTER=8;sa.ACTION_FULLSCREEN=16;sa.ACTION_INFO=32;sa.ACTION_INSIGHT=64;za.ACTION_ALL=255;za.ACTION_FULLSCREEN=1;za.ACTION_NONE=0;Nb.affectedTargetsToShortDisplay=function(a,b,c){for(var d="",f=0;f<b.getItemCount();f++){var h=b.getItem(f);if((c&h.getType())==h.getType()){var n=[];var G=n;if(h.isSettingComplete()){var B=a.searchWidgetByName(h.getTargetWidgetName());B?(G.push(A.get("affectedTargetItem","\u201c#1\u201d").replace("#1",B.getDisplayName())),h=!0):(G.push(A.get("affectedTargetNotExist",
"\u4e0d\u5b58\u5728\u7ec4\u4ef6\u201c#1\u201d").replace("#1",h.getTargetWidgetName())),h=!1)}else G.push(A.get("affectedTargetIncomplete","\u8bbe\u7f6e\u4e0d\u5b8c\u6574")),h=!1;if(h)d+=n.join(""),d+=" ";else return n.join("")}}return d}})();(function(){function g(){var v=this,F,O,J,V,fa,ia=!1;this.setVisualWidgetEditableConfirmer=function(kb){fa=kb};this.setHeightAnnouncer=function(kb){V=kb};var wa=function(){J||(J=new ma,v.protectedInit(J));return J};this.protectedInit=function(kb){throw Error("Override");};this.setPreviewContext=function(kb){wa().setPreviewContext(kb)};this.setFacadeCreator=function(kb){wa().setFacadeCreator(kb)};this.createJqPage=function(kb){O=$("<div>");O.appendTo(kb)};this.resize=function(){F&&(Ca()?ia=!0:wa().relayoutAll(F.getPage()))};
var Ca=function(){var kb=!1;F.getPage().traversalDescendents(function(ra){var Ja=!1;ra.hasBeenFullscreen()&&(Ja=kb=!0);return Ja});return kb};this.setJsonModel=function(kb,ra){var Ja=new hb;F=new S;try{F.fromJsonObject(kb,Ja)}catch(na){Ja.setError(!0),window.console&&console.error(na)}v.protectedDecorateModel(F);F.addPropertyChangedListener(Za);ra&&ra(Ja);wa().changeSkin(F,function(na){return na==F},function(){var na=F.getPage();wa().clear();wa().create(na,O);na=wa().relayoutAll(na);V&&V(na);O.parent().css("background-color",
O.css("background-color"));Oa()});Na()};var Oa=function(){fa&&wa().traversalWidgetUiObjects(function(kb){kb.getModel().isInstanceOf(S.WidgetSuperType_BuiltinVisual)&&kb.setVisualWidgetEditableConfirmer(fa)})};this.protectedDecorateModel=function(kb){};this.protectedUndecorateModel=function(kb){};this.destroy=function(){v.protectedUndecorateModel(F);F.getPage().traversalDescendents(function(kb){wa().getWidgetUiObject(kb).destroy()})};this.getEnvironmentDescription=function(){var kb=za.get("envBrowser",
"\u6d4f\u89c8\u5668\uff1a")+Y.getBrowserName()+" "+Y.getBrowserVersion(),ra=za.get("envScreen","\u5168\u5c4f\u5206\u8fa8\u7387\uff1a");ra+=window.screen.width;ra=ra+"*"+window.screen.height;ra=ra+" "+za.get("envScreenComment","\uff08\u5728\u6d4f\u89c8\u5668\u7f29\u653e100%\u7684\u60c5\u51b5\u4e0b\uff09");return kb+"\r\n"+ra};this.hasSlideshow=function(){var kb=!1;F.getPage().traversalDescendents(function(ra){return ra instanceof ac&&ra.isSlideshowEnabled()?kb=!0:!1});return kb};this.slideshowPause=
function(kb){wa().traversalWidgetUiObjects(function(ra){var Ja=ra.getModel();Ja instanceof ac&&Ja.isSlideshowEnabled()&&(kb?ra.slideshowPause(!0):Ja.isTopLevelSlideshow()&&ra.slideshowPause(!1))})};var Na=function(){var kb=[];F.getPage().traversalDescendents(function(ra){kb.push(ra.getWidgetTypeName())});fb.occur(fb.DSB_WIDGET_TYPE,kb)},Za=function(kb,ra){if(ra==S.KEY_RECT)wa().updateWidgetRect(kb);else if(ra==ac.KEY_SWITCH_SUB){if(!kb.hasBeenFullscreen()){var Ja=wa().searchJqUiByModel(kb.getParent());
kb=O.parent();ra=kb.prop("scrollLeft");var na=ra+kb.prop("clientWidth"),mb=kb.prop("scrollTop"),Hb=mb+kb.prop("clientHeight"),tb=[0,0];tb=U.upwardCoordinate(Ja[0],tb,kb[0]);Ja=tb[0];tb=tb[1];var A={},Xa=!1;if(Ja<ra||Ja>na)Xa=!0,A.scrollLeft=Ja;if(tb<mb||tb>Hb)Xa=!0,A.scrollTop=tb;Xa&&kb.animate(A)}}else ra==S.KEY_FULLSCREEN&&ia&&!Ca()&&(ia=!1,wa().relayoutAll(F.getPage()))};this.protectedMethod={getDashboardModel:function(){return F},getPageUiManager:wa}}function ub(){g.call(this);var v=this,F=this.protectedMethod,
O,J,V={};this.protectedInit=function(Ca){ia(Ca,O);var Oa=new L;Oa.setDesigntime(!1);Ca.hookWidgetCtrlProvider(Oa)};this.protectedDecorateModel=function(Ca){Ca=Ca.getPage();J=Ca.getExhibitionMode();Ca.traversalDescendents(function(Oa){V[Oa.getName()]=[Oa.getX(),Oa.getY(),Oa.getWidth(),Oa.getHeight()]})};this.setCachedExhibitionMode=function(Ca){O=Ca};this.getFreshExhibitionMode=function(){return J};this.updateLayoutAdapter=function(Ca){var Oa=F.getDashboardModel().getPage();Oa.traversalDescendents(function(Na){var Za=
V[Na.getName()];Na.setPosition(Za[0],Za[1]);Na.setSize(Za[2],Za[3])});ia(F.getPageUiManager(),Ca);Ca=wa(Ca);fa(Ca,Oa);v.resize()};this.reparseRelativeDate=function(){var Ca=!1;F.getPageUiManager().traversalWidgetUiObjects(function(Oa){var Na=Oa.getModel();Na.isInstanceOf(S.WidgetSuperType_Calendar)&&Na.getRelativeModel()&&(Ca=!0,Oa.reparseRelativeDate())});return Ca};var fa=function(Ca,Oa){var Na=new Ca;Oa.setLayoutAdapter(Na);Na.initForParent(Oa);for(var Za=0;Za<Oa.getWidgetCount();Za++){var kb=
Oa.getWidget(Za);Na.initForChild(kb);kb.isContainer()&&fa(Ca,kb)}},ia=function(Ca,Oa){Ca.setLayoutAdapterCreator(function(){!Oa&&(Oa=J);return new (wa(Oa))})},wa=function(Ca){var Oa={};Oa[S.ExhibitionMode_Full]=Sa;Oa[S.ExhibitionMode_Fit]=Qa;Oa[S.ExhibitionMode_HFull]=Ya;Ca=Oa[Ca];!Ca&&(Ca=jb);return Ca}}function Da(){g.call(this);var v=this.protectedMethod,F;this.protectedInit=function(O){O.setLayoutAdapterCreator(function(){return new pb});var J=new R;O.hookWidgetCtrlProvider(J)};this.protectedDecorateModel=
function(O){O=O.getPage();O.isMobileSkinActive()?F=null:(F=[O.getSkin(),O.getCustomCosmetic()],O.setSkin(S.Skin_White))};this.protectedUndecorateModel=function(O){F&&(O.getPage().setSkin(F[0],F[1]),v.getPageUiManager().changeSkin(O,function(J){return!0},function(){}))}}function ib(){var v=this,F,O=function(){F||(F=v.protectedCreateExhibition());return F};this.protectedCreateExhibition=function(){throw Error("Override");};this.setRemoteImpl=function(J){O().setFacadeCreator(function(V,fa,ia){return new nb(J,
V,fa,ia)})};this.createJqUi=function(){var J=$("<div>");J.css("background-color","#fff");O().createJqPage(J);U.layoutCtrlWithLRTB(J,0,0,null,0,0,null);return J};this.resize=function(){O().resize()};this.setJsonModel=function(J,V){O().setJsonModel(J,V)};this.getEnvironmentDescription=function(){return O().getEnvironmentDescription()};this.hasSlideshow=function(){return O().hasSlideshow()};this.slideshowPause=function(J){O().slideshowPause(J)};this.setVisualWidgetEditableConfirmer=function(J){O().setVisualWidgetEditableConfirmer(J)};
this.protectedMethod={getExhibition:O}}function lb(){var v=this,F=new Ib,O,J,V,fa,ia=function(){O||(O=v.protectedCreateExhibition());return O};this.protectedCreateExhibition=function(){throw Error("Override");};this.protectedCreateExhibitionOwner=function(Na){throw Error("Override");};this.setFacadeCreator=function(Na){ia().setFacadeCreator(Na)};this.resize=function(){ia().resize()};this.setJsonModel=function(Na){ia().setJsonModel(Na)};this.createJqUi=function(Na){F.addButton(wa,"btn_backward",za.get("backward",
"\u8fd4\u56de"));F.addButton(function(){},"btn_preview",za.get("fullscreen","\u5168\u5c4f")).getJqUi().on("click",Ca);ja.addChangedListener(Oa);v.protectedInitToolbar(F,ia());J=$("<div>");J.css("overflow","auto");J.addClass("dsb-previewer-contentpane");var Za=v.protectedCreateExhibitionOwner(J);ia().setPreviewContext(Na);ia().createJqPage(Za);Na=$("<div>");Na.addClass("dsb-previewer");Na.append(F.getJqUi());Na.append(J);return Na};this.protectedInitToolbar=function(Na,Za){};this.setBackwardListener=
function(Na){V=Na};var wa=function(){ja.removeChangedListener(Oa);ia().destroy();V()},Ca=function(){ja.request(document.body)},Oa=function(Na){null==Na&&fa?(J.css({top:"",bottom:""}),F.getJqUi().css("display",""),fa.remove(),fa=null):Na==document.body&&(J.css({top:0,bottom:0}),F.getJqUi().css("display","none"),fa=$("<div>"),fa.text(za.get("quitFullscreen","\u9000\u51fa\u5168\u5c4f")),fa.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)"}),fa.on("click",function(Za){ja.exit()}),fa.appendTo($(document.body)),U.layoutCtrl(fa,0,0,72,30))}}function Lb(){lb.call(this);this.protectedCreateExhibition=function(){return new ub};this.protectedCreateExhibitionOwner=function(v){return v};this.protectedInitToolbar=function(v,F){v.addButton(function(){var O=new oc;O.setOptionType(oc.OPTION_OK);O.setTitle(za.get("currentEnvironment","\u5f53\u524d\u73af\u5883"));O.setMessage(F.getEnvironmentDescription());
O.showDialog()},"btn_info",za.get("environment","\u73af\u5883"))}}function wb(){lb.call(this);this.protectedCreateExhibition=function(){return new Da};this.protectedCreateExhibitionOwner=function(F){var O=$("<div>");O.css({"background-color":"#000","border-radius":"12px"});O.appendTo(F);U.layoutCtrl(O,4,4,380,700);v(O);F=$("<div>");F.css({"background-color":"#000","border-radius":"4px"});F.appendTo(O);U.layoutCtrl(F,375,150,8,60);F=$("<div>");F.css({"background-color":"#333","border-radius":"10px"});
F.appendTo(O);U.layoutCtrl(F,60,10,12,12);F=$("<div>");F.css({"background-color":"#222","border-radius":"4px"});F.appendTo(O);U.layoutCtrl(F,160,12,60,8);F=$("<div>");F.text(za.get("preview","\u9884\u89c8"));F.css({"text-align":"center","line-height":"40px","font-size":"14px",color:"#333","background-color":"#fff","border-bottom":"1px solid #ccc"});F.appendTo(O);U.layoutCtrlWithLRTB(F,10,10,null,30,null,39);F=$("<div>");F.appendTo(O);U.layoutCtrlWithLRTB(F,10,10,null,70,30,null);return F};var v=function(F){var O=
$("<div>");O.css("transform-origin","left top");U.layoutCtrlWithLRTB(O,170,null,30,null,0,7);O.appendTo(F);var J=$("<div>");J.css("background-color",F.css("background-color"));J.appendTo(O);U.layoutCtrlWithLRTB(J,14,0,null,0,0,null);J=$("<div>");J.css("background-color",F.css("background-color"));J.appendTo(O);U.layoutCtrlWithLRTB(J,0,null,14,null,0,2);var V=!1;O.on("mouseenter",function(fa){V=!V;O.css({transform:V?"rotate(40deg)":"",transition:"0.2s"})})}}function Fb(){this.initForParent=function(v){throw Error("Override");
};this.initForChild=function(v){throw Error("Override");};this.relayoutPage=function(v,F){throw Error("Override");};this.relayout=function(v,F,O){throw Error("Override");}}function la(){Fb.call(this);var v;this.initForParent=function(F){F.isInstanceOf(S.WidgetSuperType_CompositeContainer)||(v=new Ga,v.setDesigningSize(F.getClientWidth(),F.getClientHeight()))};this.initForChild=function(F){v&&v.appendBlock(F.getName(),F.getX(),F.getY(),F.getWidth(),F.getHeight(),F.isWidthLocked(),F.isHeightLocked())};
this.protectedMethod={relayoutParentWidget:function(F,O,J){v&&v.transformTo(O,J);for(O=0;O<F.getWidgetCount();O++){J=F.getWidget(O);if(v){var V=v.searchBlockRect(J.getName());if(!V)continue;J.setRectangle(V[0],V[1],V[2],V[3])}J.isContainer()&&J.getLayoutAdapter().relayout(J,J.getClientWidth(),J.getClientHeight())}}}}function Sa(){la.call(this);var v=this,F=this.protectedMethod;this.relayoutPage=function(O,J){J.parent().css("overflow","hidden");U.layoutCtrl(J,0,0,"100%","100%");var V=J.innerWidth();
J=J.innerHeight();v.relayout(O,V,J);return J};this.relayout=function(O,J,V){F.relayoutParentWidget(O,J,V)}}function Qa(){la.call(this);var v=this.protectedMethod;this.relayoutPage=function(F,O){O.parent().css("overflow","hidden");U.layoutCtrl(O,0,0,"100%","100%");var J=O.innerWidth(),V=O.innerHeight(),fa=0,ia=0,wa=J,Ca=V,Oa=F.getClientWidth(),Na=F.getClientHeight();Oa/=Na;Na=wa/Ca;Oa>Na?(Ca=Math.round(wa/Oa),ia=V-Ca>>1):Oa<Na&&(wa=Math.round(Ca*Oa),fa=J-wa>>1);U.layoutCtrl(O,fa,ia,wa,Ca);v.relayoutParentWidget(F,
wa,Ca);return V};this.relayout=function(F,O,J){v.relayoutParentWidget(F,O,J)}}function Ya(){la.call(this);var v=this,F=this.protectedMethod;this.relayoutPage=function(O,J){J.parent().css({"overflow-x":"hidden","overflow-y":"auto"});var V=J.parent().prop("clientWidth");var fa=O.getClientWidth();var ia=O.getClientHeight();fa=parseInt(ia*V/fa);U.layoutCtrl(J,0,0,V,fa);v.relayout(O,V,fa);return fa};this.relayout=function(O,J,V){V=O.getClientWidth();var fa=O.getClientHeight();V=parseInt(fa*J/V);F.relayoutParentWidget(O,
J,V)}}function jb(){Fb.call(this);var v=this;this.initForParent=function(F){};this.initForChild=function(F){};this.relayoutPage=function(F,O){O.parent().css("overflow","auto");var J=F.getClientWidth(),V=F.getClientHeight();U.layoutCtrl(O,0,0,J,V);v.relayout(F,-1,-1);return V};this.relayout=function(F,O,J){for(O=0;O<F.getWidgetCount();O++)J=F.getWidget(O),J.setRectangle(J.getX(),J.getY(),J.getWidth(),J.getHeight()),J.isContainer()&&J.getLayoutAdapter().relayout(J,J.getClientWidth(),J.getClientHeight())}}
function pb(){Fb.call(this);var v;this.initForParent=function(J){J.getTopPage().isMobileDesired()&&(v=new Ya,v.initForParent(J))};this.initForChild=function(J){v&&v.initForChild(J)};this.relayoutPage=function(J,V){if(v)return v.relayoutPage(J,V);V.parent().css({"overflow-x":"hidden","overflow-y":"auto"});var fa=V.parent().prop("clientWidth");J=F(J,fa,6,6);U.layoutCtrl(V,0,0,fa,J);return J};this.relayout=function(J,V,fa){if(v)v.relayout(J,V,fa);else return F(J,V,0,6)};var F=function(J,V,fa,ia){V-=
2*fa;var wa=fa,Ca=0;if(J.getTopPage().getMobileLayoutConverter()==S.MobileLayoutConverter_ByPosition)var Oa=O(J);else{Oa=[];for(var Na=0;Na<J.getWidgetCount();Na++){var Za=J.getWidget(Na);Oa.push(Za)}}for(Na=0;Na<Oa.length;Na++){Za=Oa[Na];if(Za.isContainer()){var kb=Za.getHeight();Za.setSize(V,kb);var ra=Za.getClientWidth();kb=Za.getLayoutAdapter().relayout(Za,ra,kb);Za.setClientSize(ra,kb);ra=Za.getHeight();Za instanceof Ha&&(wa=0)}else Za.isInstanceOf(S.WidgetSuperType_BuiltinVisual)||Za instanceof
Tb||Za instanceof Mb||Za instanceof nc?ra=Za.isHeightLocked()?Za.getHeight():parseInt(.618*V):Za instanceof gc?ra=V*Za.getHeight()/Za.getWidth():Za.isInstanceOf(S.WidgetSuperType_WithLabel)?Za.getFrontLabel()?(Za.setFrontLabelPosition("top"),ra=50):ra=32:ra=Za.getHeight();Za.setRectangle(fa,wa,V,ra);Ca=J instanceof ac?Math.max(Ca,J.getHeadHeight()+ra+ia):wa+=ra+ia}return Ca},O=function(J){for(var V=null,fa=[],ia=[],wa=0;wa<J.getWidgetCount();wa++){var Ca=J.getWidget(wa);Ca.isEldestSon()?V=Ca:Ca.isInstanceOf(S.WidgetSuperType_WithLabel)?
fa.push(Ca):ia.push(Ca)}J=function(Oa,Na){var Za=Oa.getY()-Na.getY();return 0==Za?Oa.getX()-Na.getX():Za};fa=fa.sort(J);ia=ia.sort(J);fa=fa.concat(ia);V&&fa.splice(0,0,V);return fa}}function hb(){var v=!1,F=!1;this.setError=function(O){v=O};this.isError=function(){return v};this.setTooModern=function(O){F=O};this.isTooModern=function(){return F}}function eb(v,F,O){function J(V){var fa,ia,wa,Ca,Oa;(function(){fa=$("<div>");fa.addClass("sa-ctrl-common-modallayer");fa.appendTo($(document.body));fa.on("click",
function(kb){Na()});ia=$("<div>");ia.addClass("dsb-toolbar-dropdown-area");ia.appendTo(fa);ia.css("max-height",Math.floor(fa.prop("clientHeight")-ia.prop("offsetTop")-30));wa=$("<div>");wa.addClass("dsb-toolbar-dropdown-container");wa.appendTo(ia);Ca=$("<div>");Ca.addClass("dsb-toolbar-dropdown-collapse");Ca.appendTo(ia);var Za=$("<div>");Za.text("<<");Za.addClass("dsb-toolbar-dropdown-collapse-text");Za.appendTo(Ca)})();this.getJqContainer=function(){return wa};this.animateHeight=function(Za,kb){0===
Za?Na():(Za+=Ca.prop("offsetHeight"),ia&&ia.animate({height:Za},{duration:100,queue:!1,complete:kb}))};this.setCollapseListener=function(Za){Oa=Za};var Na=function(){ia&&(ia.animate({height:0},function(){fa.remove()}),ia=null,Oa&&Oa())}}this.setCurrentName=function(V){F.setCurrentName(V)};this.showShortPrompt=function(V,fa,ia){F.showShortPrompt(V,fa,ia)};this.setDirtyListener=function(V){O.hookDirtyListener(V)};this.clearDirty=function(){O.setDirty(!1)};this.isDirty=function(){return O.isDirty()};
this.insertToolbarButton=function(V,fa,ia,wa){return v.addButtonForHeadCustom(V,fa,ia,wa)};this.appendToolbarButton=function(V,fa,ia,wa){return v.addButtonForTailCustom(V,fa,ia,wa)};this.insertToolbarSeperator=function(){v.addSeperatorForHeadCustom()};this.insertToolbarMenu=function(V,fa,ia,wa){return v.addMenuButtonForHeadCustom(function(){return V},fa,ia,wa)};this.appendToolbarMenu=function(V,fa,ia,wa){return v.addMenuButtonForTailCustom(function(){return V},fa,ia,wa)};this.getWarningRuleHelper=
function(){return O.getWarningRuleHelper()};this.showModalUi=function(V){return new J(V.getJqUi())}}function Ib(){var v=new Zb,F,O=$("<div>"),J=$("<div>"),V=$("<div>");this.getJqUi=function(){F||(F=v.getJqUi(),F.addClass("dsb-toolbar"),fa(O),fa(J),fa(V));return F};this.refresh=function(){v.refresh()};this.addSeperator=function(){v.appendSeperator(J)};this.addSeperatorForHeadCustom=function(){v.appendSeperator(O)};this.addButton=function(wa,Ca,Oa,Na){return ia(J,!1,wa,Ca,Oa,Na)};this.addButtonForHeadCustom=
function(wa,Ca,Oa,Na){return ia(O,!1,wa,Ca,Oa,Na)};this.addButtonForTailCustom=function(wa,Ca,Oa,Na){return ia(V,!1,wa,Ca,Oa,Na)};this.addMenuButton=function(wa,Ca,Oa,Na){return ia(J,!0,wa,Ca,Oa,Na)};this.addMenuButtonForHeadCustom=function(wa,Ca,Oa,Na){return ia(O,!0,wa,Ca,Oa,Na)};this.addMenuButtonForTailCustom=function(wa,Ca,Oa,Na){return ia(V,!0,wa,Ca,Oa,Na)};var fa=function(wa){wa.css({"float":"left",position:"relative",height:"100%"});wa.appendTo(F)},ia=function(wa,Ca,Oa,Na,Za,kb){wa=v.createButton(wa,
Ca,Oa,Za,kb);wa.setIconSetter(function(ra,Ja){ob.background(ra,Ja)});wa.setIconName(Na);return wa}}function ha(){var v,F,O,J,V;this.getJqUi=function(){v||(v=$("<div>"),v.addClass("dsb-statusbar"),F=$("<span>"),F.addClass("dsb-statusbar-name"),F.appendTo(v),O=$("<span>"),O.addClass("dsb-statusbar-dirtystate"),O.appendTo(v),J=$("<span>"),J.addClass("dsb-statusbar-prompt"),J.appendTo(v));return v};this.setCurrentName=function(ia){F.text(ia)};this.showDirtyState=function(ia){O.text(ia?"*":"")};this.showShortPrompt=
function(ia,wa,Ca){clearTimeout(V);J.text(ia);J.css("color",Ca?Ca:"");if(wa){var Oa=0,Na=function(){if(6<Oa)fa();else{if(0==Oa%2){J.text(ia);var Za=650}else J.text(""),Za=350;V=setTimeout(Na,Za);Oa++}};Na()}else fa()};var fa=function(){V=setTimeout(function(){J.text("")},5E3)}}function Ra(){var v=this,F,O,J,V,fa,ia;this.setGlobalDependence=function(wa){F=wa};this.updateDashboardModel=function(){if(V){var wa=F.getDashboardModel();V.setDashboardModel(wa);ia.setDashboardModel(wa,function(){V.getWidgetSelectedModel().setSelected(wa.getPage())})}};
this.resize=function(){O.resize();ia.requestWidgetsRepainting()};this.getJqUi=function(){if(!O){var wa=new oa,Ca=new W;J=new Ma;J.setDragingHandler(wa);V=new sb;V.setGlobalDependence(F);V.setWidgetSelectedModel(Ca);fa=new bb;fa.setGlobalDependence(F);fa.setWidgetSelectedModel(Ca);ia=new aa;ia.setGlobalDependence(F);ia.setWidgetSelectedModel(Ca);ia.setDragingHandler(wa);wa=new fc;wa.setHorizontalSplit(!1);wa.setSplitLineWide(8);wa.setResizeMode(fc.RESIZE_MODE_FIRST_FIXED);wa.setFirstSize(360,60,600);
wa.setSecondSize(-1,60,-1);wa.setFirstChild(fc.createChildWrapper(J.getJqUi()));wa.setSecondChild(fc.createChildWrapper(V.getJqUi()));Ca=new fc;Ca.setHorizontalSplit(!0);Ca.setSplitLineWide(8);Ca.setResizeMode(fc.RESIZE_MODE_SECOND_FIXED);Ca.setFirstSize(-1,120,-1);Ca.setSecondSize(220,80,600);Ca.setFirstChild(fc.createChildWrapper(ia.getJqUi()));Ca.setSecondChild(fc.createChildWrapper(fa.getJqUi()));O=new fc;O.setHorizontalSplit(!0);O.setSplitLineWide(8);O.setResizeMode(fc.RESIZE_MODE_FIRST_FIXED);
O.setFirstSize(206,60,640);O.setSecondSize(-1,600,-1);O.setFirstChild(wa);O.setSecondChild(Ca);O.getJqUi().addClass("dsb-main-body");v.updateDashboardModel()}return O.getJqUi()};this.collectWidgetsContextForPreview=function(){return ia.collectWidgetsContextForPreview()};this.requestSelectingWidget=function(wa){V.getWidgetSelectedModel().setSelected(wa)}}function W(){var v=null,F=[];this.addChangedListener=function(O){F.push(O)};this.setSelected=function(O){if(v!=O){var J=v;O=v=O;for(var V=0;V<F.length;V++)(0,F[V])(J,
O)}};this.getSelected=function(){return v}}function sa(){var v=null,F;this.putByCut=function(O){v=O;F=!1};this.putByCopy=function(O){v=O;F=!0};this.isCopying=function(){return F};this.pickToPasteByCut=function(){var O=v;v=null;return O};this.getTarget=function(){return v};this.hasNothing=function(){return null==v}}function Pa(){var v=this,F;this.getJqUi=function(){if(!F){F=$("<div>");F.addClass("dsb-workarea");var O=$("<div>");O.addClass("dsb-workarea-title");O.appendTo(F);var J=$("<div>");J.addClass("dsb-workarea-title-text");
J.appendTo(O);O=$("<div>");O.addClass("dsb-workarea-container");O.appendTo(F);v.protectedInitUi(J,O)}return F};this.protectedInitUi=function(O,J){throw Error("Override");}}function Ma(){Pa.call(this);var v=$("<div>");this.setDragingHandler=function(J){J.bindDragContainer(v,O)};this.protectedInitUi=function(J,V){J.text(za.get("toolboxAreaTitle","\u5de5\u5177\u7bb1"));J=F();var fa={};v.css({"overflow-x":"hidden","overflow-y":"auto"});U.layoutCtrlWithLRTB(v,0,0,null,0,0,null);for(var ia=Qb.getToolboxInstances(),
wa=0;wa<ia.length;wa++){var Ca=ia[wa],Oa=Ca.getToolboxGroup();if(Oa){var Na=fa[Oa.getGroupName()];if(!Na){Na=$("<div>");Na.addClass("dsb-toolbox-group");var Za=$("<div>");Za.addClass("dsb-toolbox-group-title");Za.text(Oa.getGroupDisplayName());Za.appendTo(Na);fa[Oa.getGroupName()]=Na;Na.appendTo(v)}Oa=void 0;Za=Ca;var kb=J;Ca=$("<div>");Ca.addClass("dsb-toolbox-widget");Ca.data("model",Za);var ra=$("<div>");ra.addClass("dsb-toolbox-widget-icon");ob.background(ra,Za.getIconFileName());ra.appendTo(Ca);
var Ja=$("<div>");Ja.addClass("dsb-toolbox-widget-text");Ja.appendTo(Ca);var na=$.trim(Za.getTypeDisplayName());60<kb(na)&&(0<na.indexOf(" ")?Oa=na.split(" "):(Oa=na.length>>1,Oa=[na.substr(0,Oa),na.substr(Oa)]));if(Oa){for(na=0;na<Oa.length;na++){kb=Oa[na];var mb=$("<div>");mb.css("line-height","14px");mb.text(kb);mb.appendTo(Ja)}Ja.css("bottom",0);Ja.css("height",14*Oa.length)}else Ja.text(na);Za.isReleased()||(ra.addClass("dsb-toolbox-widget-icon_unreleased"),Ja.addClass("dsb-toolbox-widget-text_unreleased"),
Oa=$("<div>"),Oa.addClass("dsb-toolbox-widget-unreleased"),ob.background(Oa,"widget_unreleased"),Oa.appendTo(Ca));Ca.appendTo(Na)}}v.appendTo(V);J(null)};var F=function(){var J=new qa;J.setFontSize(Gb.getFontSize());return function(V){return null===V?(J.destroy(),0):J.measureWidth(V)}},O=function(J){return(J=U.upwardSearchHasClass(J,v,"dsb-toolbox-widget"))?J.data("model"):null}}function sb(){Pa.call(this);var v=this,F,O,J,V,fa,ia=!0,wa=!1,Ca,Oa,Na,Za;this.setDashboardModel=function(X){O&&O.removeChildrenChangedListener(A);
O&&O.removePropertyChangedListener(Xa);O=X;O.addChildrenChangedListener(A);O.addPropertyChangedListener(Xa);fa&&kb()};this.setGlobalDependence=function(X){F=X};this.setWidgetSelectedModel=function(X){J=X;J.addChangedListener(Vb)};this.getWidgetSelectedModel=function(){return J};this.protectedInitUi=function(X,da){X.text(za.get("outlineAreaTitle","\u5927\u7eb2"));Ca=new mc;Ca.setText("\u2191");Ca.setTooltips(za.get("moveUp","\u4e0a\u79fb"));Ca.addActionListener($b);Oa=new mc;Oa.setText("\u2193");Oa.setTooltips(za.get("moveDown",
"\u4e0b\u79fb"));Oa.addActionListener($b);Ca.getJqUi().appendTo(X);Oa.getJqUi().appendTo(X);U.layoutCtrlWithLRTB(Ca.getJqUi(),null,22,20,2,2,null);U.layoutCtrlWithLRTB(Oa.getJqUi(),null,2,20,2,2,null);fa=new pc;fa.setBorderVisible(!1);fa.setToggleSelectingEnabled(!1);fa.setCustomItemPainter(ra);fa.setCustomSelectedsPainter(Ja);fa.addSelectedChangedListener(Eb);X=fa.getJqUi();X.appendTo(da);U.layoutCtrlWithLRTB(X,0,0,null,0,0,null);O&&kb()};var kb=function(){for(var X=[],da=[O.getPage()];0<da.length;){var D=
da.pop();X.push(D);if(D.isContainer())for(var ca=D.getWidgetCount()-1;0<=ca;ca--){var Ka=D.getWidget(ca);da.push(Ka)}}fa.setItemModels(X)},ra=function(X,da){X.attr("name","ol_"+da.getName());for(var D=-1,ca=da;ca;)D++,ca=ca.getParent();D*=18;ca=da.getParent()?!1:!0;var Ka=Qb.getInstance(da.getWidgetTypeName()),$a=$("<div>");$a.addClass("dsb-outline-listitem-icon");$a.data("myIconName",Ka.getIconFileName()+"_min");$a.appendTo(X);Ka=$("<div>");Ka.addClass("dsb-outline-listitem-text");Ka.appendTo(X);
var va=$("<div>");va.addClass("dsb-outline-listitem-op");va.text("...");va.hide();va.appendTo(X);$a.css("left",D+"px");Ka.css("left",D+20+"px");na(X,!1);mb(da,Ka);!ca&&Hb(da,X);va.data("widget",da);X.on("mouseenter",Ab);X.on("mouseleave",Xb);va.on("click",lc)},Ja=function(X,da){for(var D=0;D<X.length;D++){var ca=X[D];na(ca,!1)}for(D=0;D<da.length;D++)ca=da[D],na(ca,!0)},na=function(X,da){X=X.children().first();var D=X.data("myIconName");ob.background(X,D+(da?"_selected":""))},mb=function(X,da){!da&&
(da=tb(X).find(".dsb-outline-listitem-text"));da.text(X.getDisplayName())},Hb=function(X,da){!da&&(da=tb(X));var D=X.getParent(),ca=da.children().first(),Ka=ca.find(".dsb-outline-listitem-icon_alarm"),$a=D.getClientWidth(),va=D.getClientHeight();X.getX()+X.getWidth()>$a||X.getY()+X.getHeight()>va?0==Ka.length&&(Ka=ic.createWarning(),Ka.addClass("dsb-outline-listitem-icon_alarm"),Ka.appendTo(ca),ca=za.get("outside","#1 \u8d85\u51fa\u5176\u6240\u5728\u5bb9\u5668 #2 \u7684\u8303\u56f4\u3002"),ca=ca.replace("#1",
X.getDisplayName()),ca=ca.replace("#2",D.getDisplayName()),da.attr("title",ca)):(Ka.remove(),da.attr("title",null))},tb=function(X){return fa.getJqUi().find("[name=ol_"+X.getName()+"]")},A=function(X,da,D){kb();X==S.KEY_MOVE_CHILD&&gb()},Xa=function(X,da){da==S.KEY_PAGE_SIZE||da==S.KEY_RECT?(da!=S.KEY_PAGE_SIZE&&Hb(X),Bb(X)):da==S.KEY_PAGE_UNIFIED_CARD?X.traversalDescendents(function(D){Bb(D)}):da==S.KEY_CARD_SURFACE&&X.isContainer()?X.traversalMeAndDescendents(function(D){Bb(D)}):da==S.KEY_CARD_TITLE||
da==vb.KEY_FULLSCREEN_ALLOWED?Bb(X):da==S.KEY_DISPLAY_NAME?mb(X):da==ac.KEY_SWITCH_SUB&&J.setSelected(X)},Bb=function(X){if(X.isContainer())for(var da=0;da<X.getWidgetCount();da++){var D=X.getWidget(da);Hb(D)}},Vb=function(X,da){wa||(ia=!1,X=da?[da]:[O.getPage()],fa.setSelecteds(X),fa.scrollSelectedToVisible(),ia=!0);for(X=[];da&&da!=O.getPage();)X.push(da),da=da.getParent();for(;0<X.length;)da=X.pop(),da.setVisible(!0);gb()},Eb=function(X,da,D){ia&&(wa=!0,J.setSelected(D[0]),wa=!1)},$b=function(X){var da=
X.getUserObject();!da&&(da=0);da++;X.setUserObject(da);X==Ca&&(da=-da);dc(da);clearTimeout(Na);Na=setTimeout(function(){Za&&Za.remove();Za=null;var D=X.getUserObject();X.setUserObject(null);X==Ca&&(D=-D);var ca=J.getSelected(),Ka=new e;Ka.setCaption(0>D?za.get("moveUp","\u4e0a\u79fb"):za.get("moveDown","\u4e0b\u79fb"));Ka.setValue(ca,D);F.getCommandManager().perform(Ka)},375)},dc=function(X){var da=J.getSelected();if(!Za){var D=tb(da),ca=D.prop("offsetTop")+(D.prop("offsetHeight")>>1);Za=$("<div>");
Za.css({"background-color":D.css("background-color")});Za.appendTo(D.parent());U.layoutCtrl(Za,0,ca,"100%",2)}D=da.getParent();ca=D.getWidget(0).isEldestSon()?1:0;for(var Ka=D.getWidgetCount(),$a,va=0;va<Ka;va++)if(D.getWidget(va)==da){$a=va;break}$a=Math.min(Ka-1,Math.max(ca,$a+X));da=D.getWidget($a);if(0<X)for(;da.isContainer()&&0<da.getWidgetCount();)da=da.getWidget(da.getWidgetCount()-1);da=tb(da);ca=da.prop("offsetTop")+(0<X?da.prop("offsetHeight"):0);Za.animate({top:ca},250)},gb=function(){var X=
J.getSelected();Ca.setUserObject(null);Oa.setUserObject(null);var da=X.getParent();if(da&&!X.isEldestSon()){var D=da.getWidget(0);D.isEldestSon()?Ca.setEnabled(da.getWidget(1)!=X):Ca.setEnabled(D!=X);Oa.setEnabled(da.getWidget(da.getWidgetCount()-1)!=X)}else Ca.setEnabled(!1),Oa.setEnabled(!1)},Ab=function(X){$(X.currentTarget).children().last().show()},Xb=function(X){$(X.currentTarget).children().last().hide()},lc=function(X){var da=$(X.currentTarget),D=da.parent(),ca=da.data("widget"),Ka=ca.getParent()?
!1:!0;if((X=da.data("menu"))&&X.isShowing())da.data("menu",null),X.hide();else{var $a=new hc;Bc($a,D,ca);Ka||($a.addItemModel(Sb.createActionMenuItem(za.get("rename","\u91cd\u547d\u540d"),function(va){Tc(D)})),ca.getWidgetTypeName()!=S.WidgetType_PageTitleBar&&($a.addSeperator(),$a.addItemModel(Sb.createActionMenuItem(za.get("cut","\u526a\u5207"),Oc)),$a.addItemModel(Sb.createActionMenuItem(za.get("copy","\u590d\u5236"),Nc))));ca.isContainer()&&(X=Sb.createActionMenuItem(za.get("paste","\u7c98\u8d34"),
Kc),X.setEnabled(!uc().hasNothing()),$a.addItemModel(X));Ka||($a.addSeperator(),$a.addItemModel(Sb.createActionMenuItem(za.get("remove","\u5220\u9664"),Jc)));X=new Sb;X.setModel($a);X.setHideListener(function(){da.data("menu",null)});da.data("menu",X);Ka=v.getJqUi();$a=Math.max(80,Math.min(120,.8*Ka.innerWidth()));ca=[-$a-4,0];ca=U.upwardCoordinate(da[0],ca,Ka[0]);X.setWidth($a);X.show(Ka,ca[0],ca[1],da,!0,[0,da.outerHeight()])}},Bc=function(X,da,D){Qb.getInstance(D.getWidgetTypeName()).createOutlineMenu(X,
da,D,O,F.getCommandManager())&&X.addSeperator()},uc=function(){V||(V=new sa);return V},Tc=function(X){var da=J.getSelected(),D=da.getDisplayName(),ca=za.get("displayName","\u540d\u79f0"),Ka=$.trim(da.getDisplayName()),$a=new ka;$a.setCaption(D,ca);$a.setEmptyEnabled(!1);$a.setMaxLength(40);$a.setClosingChecker(function(va){return va!=Ka&&O.isDisplayNameExist(va)?za.get("duplicatedDisplayName","\u540d\u79f0\u91cd\u590d"):null});$a.setText(da.getDisplayName(),function(va,Ta){va&&(va=new z,va.setCaption(za.get("actionRename",
"\u4fee\u6539\u201c#1\u201d\u540d\u79f0\u4e3a\u201c#2\u201d").replace("#1",Ka).replace("#2",Ta)),va.setMethod(da.getDisplayName,da.setDisplayName),va.setValue(Ta),F.getCommandManager().perform(va))});$a.showDialogRightAnchorTo(X)},Jc=function(X){X=J.getSelected();var da=new k;da.setCaption(za.get("removeWidget","\u5220\u9664\u201c#1\u201d").replace("#1",X.getDisplayName()));da.setValue(X.getParent(),X);F.getCommandManager().perform(da)},Oc=function(X){X=J.getSelected();var da=new l;da.setCaption(za.get("cutWidget",
"\u526a\u5207\u201c#1\u201d").replace("#1",X.getDisplayName()));da.setValue(X.getParent(),X);da.setClipboard(uc());F.getCommandManager().perform(da)},Nc=function(X){F.showBlockingPrompt(za.get("copying","\u6b63\u5728\u590d\u5236\u7ec4\u4ef6"));X=J.getSelected();zb(X,function(da){uc().putByCopy(da);F.showBlockingPrompt(!1)})},Kc=function(X){X=J.getSelected();var da=uc().getTarget(),D=[];X.isCanContain(da,D)&&da.isCanBeContained(X,D)?uc().isCopying()?Ic(X,da):Ba(X,da):(X=D.join(" "),da=new oc,da.setOptionType(oc.OPTION_OK),
da.setMessage(X),da.showDialog())},Ic=function(X,da){F.showBlockingPrompt(za.get("pasting","\u6b63\u5728\u7c98\u8d34\u7ec4\u4ef6"));zb(da,function(D){O.reallocateNameForCopyPasteWidget(D);for(var ca=0;ca<X.getWidgetCount();ca++){var Ka=X.getWidget(ca);D.getX()==Ka.getX()&&D.getY()==Ka.getY()&&D.getWidth()==Ka.getWidth()&&D.getHeight()==Ka.getHeight()&&(D.setPosition(D.getX()+10,D.getY()+10),ca=0)}ca=new xc;ca.setCaption(za.get("pasteWidget","\u7c98\u8d34\u201c#1\u201d").replace("#1",D.getDisplayName()));
ca.setValue(X,D);F.getCommandManager().perform(ca);F.showBlockingPrompt(!1)})},Ba=function(X,da){var D=F.getCommandManager();D.compositeStart(za.get("pasteWidget","\u7c98\u8d34\u201c#1\u201d").replace("#1",da.getDisplayName()));da.isContainer()&&da.traversalMeAndDescendents(function(ca){ca.getDisplayName();ca.getName()});O.reallocateNameForCutPasteWidget(da,function(ca,Ka){var $a=new z;$a.setMethod(ca.getDisplayName,ca.setDisplayName);$a.setValue(Ka);D.perform($a)},function(ca,Ka){var $a=new z;$a.setMethod(ca.getName,
ca.setName);$a.setValue(Ka);D.perform($a)});da=new p;da.setValue(X);da.setClipboard(uc());D.perform(da);D.compositeEnd()},zb=function(X,da){var D=O.collectStylesToJsonObject(X),ca=X.toJsonObject(),Ka=Qb.getInstance(X.getWidgetTypeName()).createWidgetModel();Ka.fromJsonObject(ca);D&&O.distributeStylesFromJsonObject(Ka,D);X=[];for(D=[Ka];0<D.length;){ca=D.shift();if(ca.isContainer())for(var $a=0;$a<ca.getWidgetCount();$a++)D.push(ca.getWidget($a));ca.isInstanceOf(S.WidgetSuperType_Referable)&&X.push(ca)}var va=
X.length;if(0==va)da(Ka);else{var Ta=0;for($a=0;$a<va;$a++)X[$a].copyReference(function(){Ta++;Ta==va&&da(Ka)})}}}function bb(){Pa.call(this);var v,F,O,J;this.setGlobalDependence=function(fa){v=fa};this.protectedInitUi=function(fa,ia){fa.text(za.get("propertyAreaTitle","\u5c5e\u6027"));O=ia};this.setWidgetSelectedModel=function(fa){F=fa;F.addChangedListener(V)};var V=function(fa,ia){O.empty();J&&J.destroy();ia&&(J=Qb.getInstance(ia.getWidgetTypeName()).createPropertyPanel(),J.setGlobalDependence(v),
J.setWidget(ia),fa=J.getJqUi(),U.layoutCtrlWithLRTB(fa,0,0,null,0,0,null),O.append(fa))}}function aa(){var v=this,F,O,J,V,fa=new ya,ia,wa,Ca,Oa=!1;this.setGlobalDependence=function(D){F=D};this.setDashboardModel=function(D,ca){O&&O.removePropertyChangedListener(Ba);O&&O.removeChildrenChangedListener(Ic);O=D;O.addPropertyChangedListener(Ba);O.addChildrenChangedListener(Ic);fa.changeSkin(O,function(Ka){return Ka==O},function(){na();ca()})};this.setWidgetSelectedModel=function(D){Ca=D;Ca.addChangedListener(zb)};
this.setDragingHandler=function(D){D.bindDropContainer(v.getJqUi(),uc,Tc,Jc)};this.getJqUi=function(){if(!J){fa.setFacadeCreator(F.createFacade);fa.setWidgetJqUiDecorator(Hb);fa.setWidgetEditedListener(tb);J=$("<div>");J.addClass("dsb-pagearea");J.on("mousemove",Za);J.on("mousedown",kb);J.on("mouseleave",ra);var D=$("<div>");D.addClass("dsb-pagearea-page");D.appendTo(J);V=D;D=$("<div>");U.layoutCtrl(D,0,0,1,1);D.appendTo(J);O&&na()}return J};this.requestWidgetsRepainting=function(){Na().traversalDescendents(function(D){D.setRectangle(D.getX(),
D.getY(),D.getWidth(),D.getHeight())})};this.collectWidgetsContextForPreview=function(){var D={};fa.traversalWidgetUiObjects(function(ca){var Ka=ca.getModel().getName();ca=ca.collectContextForPreview();D[Ka]=ca});return D};var Na=function(){return O.getPage()},Za=function(D){D=$(D.target);!U.upwardSearchHasClass(D,J,Vb())&&!U.upwardSearchHasClass(D,J,Bb())&&(D=(D=U.upwardSearchHasClass(D,J,A()))?fa.getWidgetNameByJqUi(D):null,ia!=D&&(ia&&Ja(ia),ia=D))&&(D=O.searchWidgetByName(ia),fa.getWidgetUiObject(D).inside(),
dc()!=D&&Eb(D))},kb=function(D){var ca=$(D.target);if(!(U.upwardSearchHasClass(ca,J,Vb())||U.upwardSearchHasClass(ca,J,Bb())||U.upwardSearchHasClass(ca,J,A()))){var Ka=[D.offsetX,D.offsetY];Ka=U.upwardCoordinate(ca[0],Ka,J[0]);D=$(D.currentTarget);Ka[0]>D.prop("scrollLeft")+D.prop("clientWidth")||Ka[1]>D.prop("scrollTop")+D.prop("clientHeight")||null!=dc()&&$b(Na())}},ra=function(D){ia&&(Ja(ia),ia=null)},Ja=function(D){(D=O.searchWidgetByName(D))&&fa.getWidgetUiObject(D).outside();Eb(null)},na=function(){fa.clear();
mb();fa.create(Na(),V)},mb=function(){var D=Na().getWidth(),ca=Na().getHeight();V.css({width:D,height:ca});V.siblings().css({left:D+20,top:ca+20})},Hb=function(D,ca){D.addClass(A());D.on("mousedown",function(Ka){dc()!=ca&&(Ka=U.upwardSearchHasClass($(Ka.target),J,A()),D[0]==Ka[0]&&Ab())})},tb=function(){F.setDirty(!0)},A=function(){return"dsb-pagearea-widget"},Xa=function(){return"dsb-pagearea-selecting"},Bb=function(){return"dsb-pagearea-selected"},Vb=function(){return"dsb-pagearea-preselect"},Eb=
function(D){if(wa){var ca=fa.searchJqUiByModel(wa);gb(ca,!1)}wa=D;D=null;wa&&(ca=fa.searchJqUiByModel(wa),gb(ca,!0),D=ca);J.find("."+Vb()).remove();D&&Xb(wa,D,!0)},$b=function(D){Ca.setSelected(D)},dc=function(){var D=Ca.getSelected();return D==Na()?null:D},gb=function(D,ca){U.upwardSearch(D,J,function(Ka){Ka.hasClass(A())&&Ka.css("z-index",ca?2:1)})},Ab=function(){if(wa){Oa=!0;$b(wa);Oa=!1;wa=null;var D=J.find("."+Vb());D.removeClass(Vb());D.addClass(Bb())}},Xb=function(D,ca,Ka){var $a=Jb.dip(Jb.DESIGN),
va=Qb.getInstance(D.getWidgetTypeName()),Ta=!D.isWidthLockedAlways(va),xb=!D.isHeightLockedAlways(va),Z=va.getMargin(),Kb=D.getWidth(),Rb=D.getHeight(),ec=[Z,Z];ec=U.upwardCoordinate(ca[0],ec,J[0]);var Gc=ec[0];ec=ec[1];var Lc=[Z+Kb,Z+Rb];Lc=U.upwardCoordinate(ca[0],Lc,J[0]);Z=Lc[0];Lc=Lc[1];var wc=new H;wc.setJqPageArea(J);wc.setTarget(D,ca);wc.setActionListener(Oc);ca=v.createOperatableTips(Gc,ec,Z,Lc,Kb,Rb,D.isMovable(),Ta,xb,$a,wc,Ka);if(D=va.createCustomDesignHandlerJqUi(D,Gc,ec,$b))D.addClass(Ka?
Vb():Bb()),D.appendTo(ca);ca.appendTo(J)};this.createOperatableTips=function(D,ca,Ka,$a,va,Ta,xb,Z,Kb,Rb,ec,Gc){var Lc=$(document.createDocumentFragment()),wc=function(rb,vc,Hc,Qc){var Wb=$("<div>");!0===Gc?(Wb.addClass(Vb()),Wb.on("mousedown",function(md){$(md.currentTarget).hasClass(Vb())&&Ab()})):Wb.addClass(Bb());Wb.addClass(Xa());Wb.appendTo(Lc);U.layoutCtrl(Wb,rb,vc,Hc,Qc);return Wb},Ec=function(rb,vc){var Hc=vc[0];vc=vc[1];var Qc=Rb[Jb.Key_Design_Unadjustable];vc&&(K.isBorder(vc.getAnchorBorder(),
K.LEFT)?(rb.css("border-left-width",Uc+"px"),!Z&&rb.css("border-left-color",Qc)):K.isBorder(vc.getAnchorBorder(),K.RIGHT)&&(rb.css("border-right-width",Uc+"px"),!Z&&rb.css("border-right-color",Qc)),K.isBorder(vc.getAnchorBorder(),K.TOP)?(rb.css("border-top-width",Uc+"px"),!Kb&&rb.css("border-top-color",Qc)):K.isBorder(vc.getAnchorBorder(),K.BOTTOM)&&(rb.css("border-bottom-width",Uc+"px"),!Kb&&rb.css("border-bottom-color",Qc)));Hc?(rb.css("border-color",Rb[Jb.Key_Design_Adjustable]),ec&&(rb.css("cursor",
Hc.getCursor()),ec.bindOperator(rb,Hc))):(rb.css("border-color",Qc),rb.css("cursor","default"))},bd=function(rb,vc,Hc){return[Z&&Kb?rb:Z?vc:Kb?Hc:null,rb]},Wc=function(rb,vc){return[vc?rb:null,rb]},Uc=2,Fc=D-Uc,Sc=D+(va>>1)-5;Ka-=6;var Xc=ca-Uc;Ta=ca+(Ta>>1)-5;$a-=6;xb&&(D=wc(D,ca-10,va,10),D.addClass(Xa()+"-header"),D.css("background-color",Rb[Jb.Key_Design_ColorB]),!1===Gc&&lc(D),ec&&ec.bindOperator(D,Q.MOVE));Ec(wc(Fc,Xc,6,6),bd(Q.NW,Q.W,Q.N));Ec(wc(Ka,Xc,6,6),bd(Q.NE,Q.E,Q.N));Ec(wc(Fc,$a,6,6),
bd(Q.SW,Q.W,Q.S));Ec(wc(Ka,$a,6,6),bd(Q.SE,Q.E,Q.S));Ec(wc(Fc,Ta,6,11),Wc(Q.W,Z));Ec(wc(Ka,Ta,6,11),Wc(Q.E,Z));Ec(wc(Sc,Xc,11,6),Wc(Q.N,Kb));Ec(wc(Sc,$a,11,6),Wc(Q.S,Kb));xb&&(ca=wc(Ka-10,ca-10,10,10),ob.background(ca,"minidelete"),ca.addClass(Xa()+"-operate"),ec&&(ca.css("cursor","pointer"),ca.on("click",Nc)));return Lc};var lc=function(D){!D&&(D=J.find("."+Xa()+"-header"));D.css("cursor","move")},Bc=function(D,ca,Ka){var $a=!1,va={};fa.traversalWidgetUiObjects(function(Kb){var Rb=Kb.getModel();
if(Rb.isContainer()&&Rb.isCanContain(Ka)&&Ka.isCanBeContained(Rb)&&(Kb=Kb.getJqPhysicalContainer(),Rb=[0,0],Rb=U.upwardCoordinate(Kb[0],Rb,V[0]),!(D<Rb[0]||ca<Rb[1]||(Rb=[Kb.innerWidth(),Kb.innerHeight()],Rb=U.upwardCoordinate(Kb[0],Rb,V[0]),D>Rb[0]||ca>Rb[1])))){Rb=U.upwardSearchHasClass(Kb,J,A());var ec=fa.getWidgetNameByJqUi(Rb);va[ec]=[Rb,Kb];$a=!0}});if($a){var Ta=function(Kb){for(var Rb=Kb.getWidgetCount()-1;0<=Rb;Rb--){var ec=Kb.getWidget(Rb);if(ec.isContainer()&&ec.isVisible()){var Gc=Ta(ec);
if(ec.isCanContain(Ka)&&Ka.isCanBeContained(ec)&&va[ec.getName()])return Gc?Gc:ec;if(Gc)return Gc}}return null},xb=Ta(Na());if(xb){var Z=va[xb.getName()];return new M(xb,Z[0],Z[1])}}return Na().isCanContain(Ka)&&Ka.isCanBeContained(Na())?new M(Na(),V,V):null},uc=function(){var D=[0,0];D=U.upwardCoordinate(J[0],D,document.body);var ca=[J.prop("clientWidth"),J.prop("clientHeight")];ca=U.upwardCoordinate(J[0],ca,document.body);var Ka=[0,0];Ka=U.upwardCoordinate(V[0],Ka,document.body);var $a=[Na().getWidth(),
Na().getHeight()];$a=U.upwardCoordinate(V[0],$a,document.body);return new function(va,Ta,xb,Z,Kb,Rb){this.getLeft=function(){return va};this.getRight=function(){return Ta};this.getTop=function(){return xb};this.getBottom=function(){return Z};this.getPageLeftAtBody=function(){return Kb};this.getPageTopAtBody=function(){return Rb}}(Math.max(D[0],Ka[0]),Math.min(ca[0],$a[0]),Math.max(D[1],Ka[1]),Math.min(ca[1],$a[1]),Ka[0],Ka[1])},Tc=function(D,ca,Ka,$a){var va=U.getCurrentTargetPosition(D);va=U.upwardCoordinate(D.target,
va,document.body);D=va[0];va=va[1];if(D<ca.getLeft()||D>ca.getRight()||va<ca.getTop()||va>ca.getBottom())return null;var Ta=D-ca.getPageLeftAtBody();ca=va-ca.getPageTopAtBody();ca=Bc(Ta,ca,$a);if(!ca)return null;Ta=ca.getContainerWidget();if(Ka!=Ta){var xb=Qb.getInstance($a.getWidgetTypeName());Ka=xb.getSuggestSize();$a.setSize(Ka[0],Ka[1])}Ka=$a.getWidth();var Z=$a.getHeight();if(!(Ka<=Ta.getClientWidth()&&Z<=Ta.getClientHeight())){!xb&&(xb=Qb.getInstance($a.getWidgetTypeName()));var Kb=xb.getMinSize();
xb=Kb[0];for(Kb=Kb[1];(Ka>Ta.getClientWidth()||Z>Ta.getClientHeight())&&!(Ka>>=1,Z>>=1,Ka<xb||Z<Kb);)$a.setSize(Ka,Z)}xb=[0,0];xb=U.upwardCoordinate(ca.getJqPhysicalContainer()[0],xb,document.body);D-=xb[0];va-=xb[1];D-=Math.min(160,parseInt(.2*$a.getWidth()));va-=Math.min(90,parseInt(.2*$a.getHeight()));xb=ca.getContainerWidget().getClientWidth();Ta=ca.getContainerWidget().getClientHeight();D=D+$a.getWidth()>xb?xb-$a.getWidth():D;va=va+$a.getHeight()>Ta?Ta-$a.getHeight():va;$a.setPosition(0>D?0:
D,0>va?0:va);return ca},Jc=function(D,ca,Ka){var $a=Qb.getInstance(ca.getWidgetTypeName());if($a.isReleased()){var va={},Ta={};O.allocateNameForNewWidget(ca,$a,va,Ta);if(ca.isInstanceOf(S.WidgetSuperType_CompositeContainer))for(var xb=0;xb<ca.getWidgetCount();xb++){var Z=ca.getWidget(xb),Kb=Qb.getInstance(Z.getWidgetTypeName());O.allocateNameForNewWidget(Z,Kb,va,Ta)}$a.selectSource(F,ca,function(Rb){Rb&&(Rb=new xc,Rb.setCaption(za.get("addWidget","\u521b\u5efa\u201c#1\u201d").replace("#1",ca.getDisplayName())),
Rb.setValue(D,ca),F.getCommandManager().perform(Rb));Ka()})}else Ka()},Oc=function(D,ca,Ka,$a,va){va=va==Q.MOVE?za.get("moveWidget","\u79fb\u52a8\u201c#1\u201d\u4f4d\u7f6e"):za.get("resizeWidget","\u6539\u52a8\u201c#1\u201d\u5927\u5c0f");va=va.replace("#1",dc().getDisplayName());var Ta=new x;Ta.setCaption(va);Ta.setValue(dc(),D,ca,Ka,$a);F.getCommandManager().perform(Ta)},Nc=function(){var D=new k;D.setCaption(za.get("removeWidget","\u5220\u9664\u201c#1\u201d").replace("#1",dc().getDisplayName()));
D.setValue(dc().getParent(),dc());F.getCommandManager().perform(D)},Kc=function(D){var ca=V;D!=Na()&&(ca=fa.getWidgetUiObject(D).getJqPhysicalContainer());return ca},Ic=function(D,ca,Ka){if(D==S.KEY_ADD_CHILD)D=Kc(ca),fa.addWidgetUi(Ka,D),$b(Ka),fa.parseWidgetsInputParams(Na());else if(D==S.KEY_REMOVE_CHILD)fa.removeWidgetUi(Ka),(Ka==dc()||Ka.isContainer()&&Ka.isDescendentsContain(dc()))&&$b(Na()),fa.parseWidgetsInputParams(Na());else if(D==S.KEY_MOVE_CHILD){Ka=$(document.createDocumentFragment());
D=Kc(ca);for(var $a=0;$a<ca.getWidgetCount();$a++){var va=ca.getWidget($a);va=fa.searchJqUiByModel(va,D);va.detach();va.appendTo(Ka)}Ka.appendTo(D)}},Ba=function(D,ca){ca==S.KEY_RECT?fa.isCreated()&&(ca=fa.updateWidgetRect(D),D==dc()&&(J.find("."+Bb()).remove(),Xb(D,ca,!1),X(ca))):ca==S.KEY_PAGE_SIZE?mb():ca==S.KEY_AFFECTED_TARGETS||ca==S.KEY_FILTER_SOURCE?fa.parseWidgetsInputParams(Na()):ca==S.KEY_PAGE_SKIN?fa.changeSkin(O,function(Ka){return Ka==O},function(){na()}):ca==S.KEY_PAGE_BACKGROUND?(ca=
D==Na()?V:fa.searchJqUiByModel(D),fa.updateBackgroundPicture(D,ca),da()):ca==S.KEY_PAGE_WATERMARK?(fa.updateWatermark(Na()),da()):ca==S.KEY_PAGE_UNIFIED_CARD&&da()},zb=function(D,ca){J.find("."+Bb()).remove();D&&D!=Na()&&(D=fa.searchJqUiByModel(D),gb(D,!1));ca&&ca!=Na()&&(D=fa.searchJqUiByModel(ca),gb(D,!0),D&&(Oa?lc():(Xb(dc(),D,!1),X(D))))},X=function(D){var ca=J.prop("scrollLeft"),Ka=ca+J.prop("clientWidth"),$a=J.prop("scrollTop"),va=$a+J.prop("clientHeight"),Ta=[0,0];Ta=U.upwardCoordinate(D[0],
Ta,J[0]);var xb=Ta[0]-20,Z=Ta[0]+D.prop("offsetWidth"),Kb=Ta[1]-20;D=Ta[1]+D.prop("offsetHeight");Ta={};var Rb=!1;if(xb<ca||Z>Ka)Rb=!0,Ta.scrollLeft=xb;if(Kb<$a||D>va)Rb=!0,Ta.scrollTop=Kb;Rb&&J.animate(Ta)},da=function(){fa.traversalWidgetUiObjects(function(D){D.getModel().isInstanceOf(S.WidgetSuperType_CardSurfaceAbout)&&D.updateCardSurface()})}}function N(){var v;this.bindContext=function(J){v=J};this.register=function(J){J.setCommunicationListener(F)};this.unregister=function(J){J.setCommunicationListener(null)};
var F=function(J,V){var fa=J.getModel();fa.getTopPage().traversalDescendents(function(ia){fa!=ia&&v.getWidgetUiObject(ia).payAttentionTo(J,V)});O(fa,J,V)},O=function(J,V,fa){if(fa==E.KEY_SELECTED_BY_MANUAL&&(J=J.getAffectedTargets()))for(fa=0;fa<J.getItemCount();fa++){var ia=J.getItem(fa);if(ia.getType()==S.AffectedType_Hotlink&&ia.isSettingComplete()){var wa=ia.getUsableUrl();"biz"==ia.getMode()?(ia=V.getFilterSelectedValue().getText(),Ob.openNewTab(ia,wa)):window.open(wa)}}}}function Fa(){var v=
this,F,O,J,V={},fa,ia;this.hookWidgetCtrlProvider=function(ra){ia=ra};var wa=function(){ia||(ia=new L);return ia};this.setFacadeCreator=function(ra){O=ra};this.setWidgetJqUiDecorator=function(ra){J=ra};this.changeSkin=function(ra,Ja,na){var mb=ra.getPage();mb.getSkin()==S.Skin_Custom?(mb=mb.getCustomCosmetic(),ra.setCurrentCosmeticModel(mb),Jb.unpack(mb),na()):O(function(Hb){if(Ja(ra)){var tb=new tc;tb.fromJsonObject(Hb);ra.setCurrentCosmeticModel(tb);Jb.unpack(tb);na()}}).loadPresetCosmetic(mb.getSkin())};
this.clear=function(){v.traversalWidgetUiObjects(function(ra){ra.destroy()});V={};F&&F.empty()};this.create=function(ra,Ja){F=Ja;F.css("background-color",Jb.getPageBackgroundColor());F.css("cursor","default");v.updateBackgroundPicture(ra,F);v.updateWatermark(ra);var na=$(document.createDocumentFragment());v.protectedCreateChildrenUi(ra,na);Ja.append(na);v.parseWidgetsInputParams(ra);Ca(ra)};this.isCreated=function(){return F?!0:!1};this.updateWidgetRect=function(ra){var Ja=Qb.getInstance(ra.getWidgetTypeName()),
na=v.searchJqUiByModel(ra);Na(ra,na,Ja);return na};this.addWidgetUi=function(ra,Ja){Oa(ra,Ja);ra.isContainer()&&0<ra.getWidgetCount()&&(Ja=$(document.createDocumentFragment()),v.protectedCreateChildrenUi(ra,Ja),v.getWidgetUiObject(ra).getJqPhysicalContainer().append(Ja));v.getWidgetUiObject(ra).run(O);ra.isContainer()&&0<ra.getWidgetCount()&&Ca(ra)};this.removeWidgetUi=function(ra){for(var Ja=[ra];0<Ja.length;){var na=Ja.shift();Za().unregister(v.getWidgetUiObject(na));var mb=na.getName();V[mb].destroy();
delete V[mb];if(na.isContainer())for(mb=0;mb<na.getWidgetCount();mb++)Ja.push(na.getWidget(mb))}v.searchJqUiByModel(ra).remove()};this.protectedCreateChildrenUi=function(ra,Ja,na){for(var mb=0;mb<ra.getWidgetCount();mb++){var Hb=ra.getWidget(mb);Oa(Hb,Ja);if(Hb.isContainer()){var tb=v.getWidgetUiObject(Hb).getJqPhysicalContainer();v.protectedCreateChildrenUi(Hb,tb,na)}na&&na(Hb)}};var Ca=function(ra){for(var Ja=0;Ja<ra.getWidgetCount();Ja++){var na=ra.getWidget(Ja);v.getWidgetUiObject(na).run(O);
na.isContainer()&&Ca(na)}},Oa=function(ra,Ja){var na=Qb.getInstance(ra.getWidgetTypeName()),mb=na.createWidgetUi(ra);mb.setCtxApi(kb);V[ra.getName()]=mb;Za().register(mb);mb=v.protectedCreateWidgetJqUi(mb,ra,wa());mb.css("z-index",1);ra.isInstanceOf(S.WidgetSuperType_ContainerWithBackground)&&v.updateBackgroundPicture(ra,mb);J&&J(mb,ra);mb.attr("name",ra.getName());Na(ra,mb,na);mb.appendTo(Ja)};this.protectedCreateWidgetJqUi=function(ra,Ja,na){throw Error("Override");};this.getWidgetUiObject=function(ra){return V[ra.getName()]};
this.getWidgetUiObjectByName=function(ra){return V[ra]};this.traversalWidgetUiObjects=function(ra){for(var Ja in V)if(ra(V[Ja]))break};var Na=function(ra,Ja,na){na=na.getMargin();U.layoutCtrl(Ja,ra.getX()-na,ra.getY()-na,ra.getWidth()+2*na,ra.getHeight()+2*na)};this.searchJqUiByModel=function(ra,Ja){ra="[name='"+ra.getName()+"']";if(Ja)return Ja.children(ra).eq(0);Ja=F.find(ra);0==Ja.length&&(Ja=$(document.body).find(ra));return Ja};this.getWidgetNameByJqUi=function(ra){return ra.attr("name")};var Za=
function(){fa||(fa=new N,fa.bindContext(kb));return fa};this.parseWidgetsInputParams=function(ra){var Ja={};ra.traversalDescendents(function(na){if(na.isInstanceOf(S.WidgetSuperType_FilterSimilary)){var mb=na.getAffectedTargets();mb&&mb.reverse(na.getName(),Ja)}});ra.traversalDescendents(function(na){if(na.isInstanceOf(S.WidgetSuperType_AffectedTarget)){na=na.getName();var mb=Ja[na];v.getWidgetUiObjectByName(na).updateInputParams(mb)}})};this.updateBackgroundPicture=function(ra,Ja){Ja.attr("title",
null);var na=ra.getBackgroundPicture();na?Nb.getPictureLoader()(na.getReferenceCustomMap(),function(mb,Hb,tb){Hb={};Hb["background-image"]="url("+mb+")";Hb["background-repeat"]="no-repeat";Hb["background-size"]="auto";switch(na.getScale()){case gc.SCALE_FULL:Hb["background-size"]="100% 100%";break;case gc.SCALE_TILED:Hb["background-repeat"]="repeat";break;case gc.SCALE_ADAPTIVE:Hb["background-size"]="contain"}mb=na.isAlignTo(gc.HALIGN_LEFT)?"left":na.isAlignTo(gc.HALIGN_RIGHT)?"right":"center";tb=
na.isAlignTo(gc.VALIGN_TOP)?"top":na.isAlignTo(gc.VALIGN_BOTTOM)?"bottom":"center";Hb["background-position"]=mb+" "+tb;Ja.css(Hb)},function(mb){Ja.attr("title","Background image not found:\r\n"+mb+"\r\n"+ra.getDisplayName())}):Ja.css("background-image","")};this.updateWatermark=function(ra){F.find(".dsb-page-watermark").remove();if(ra=ra.getWatermark()){var Ja=Jb.dip(Jb.DSB_PAGE)[Jb.Key_Page_WatermarkColor],na=25*Math.PI/180,mb=document.createElement("canvas"),Hb=mb.getContext("2d");Hb.font="14px "+
Gb.getFontName();var tb=Hb.measureText(ra).width,A=Math.max(84,tb*Math.sin(na)*2.5);mb.width=Math.max(84,tb*Math.cos(na)*2.5);mb.height=A;Hb.font="14px "+Gb.getFontName();Hb.rotate(-na);Hb.textBaseline="top";Hb.fillStyle=Ja;Hb.fillText(ra,-tb*(1-Math.cos(na)),tb*Math.sin(na));Ja=mb.toDataURL();ra={"z-index":0};ra["background-image"]="url("+Ja+")";Ja=$("<div>");Ja.addClass("dsb-page-watermark");Ja.css(ra);Ja.appendTo(F);U.layoutCtrlWithLRTB(Ja,0,0,null,0,0,null)}};var kb={getWidgetUiObject:v.getWidgetUiObject};
this.protectedMethod={getWidgetCtrlProvider:wa,getJqPage:function(){return F}}}function ya(){Fa.call(this);var v;this.setWidgetEditedListener=function(F){v=F};this.protectedCreateWidgetJqUi=function(F,O,J){F.setEditedListener(v);return F.createJqUi(J)}}function ma(){Fa.call(this);var v=this.protectedMethod,F,O;this.setPreviewContext=function(V){F=V;v.getWidgetCtrlProvider().setPreview(!0)};this.setLayoutAdapterCreator=function(V){O=V};this.relayoutAll=function(V){var fa=V.getLayoutAdapter();return fa?
fa.relayoutPage(V,v.getJqPage()):0};var J=this.protectedCreateChildrenUi;this.protectedCreateChildrenUi=function(V,fa,ia){ia=O();V.setLayoutAdapter(ia);ia.initForParent(V);J(V,fa,function(wa){V.getLayoutAdapter().initForChild(wa)})};this.protectedCreateWidgetJqUi=function(V,fa,ia){F&&(fa=F[fa.getName()],V.applyPreviewContext(fa));return V.createJqUi(ia)}}function ua(){var v=16,F=12,O=12,J=2*F+40,V=2*O+20,fa,ia,wa,Ca,Oa,Na,Za,kb,ra,Ja,na,mb,Hb;this.prepare=function(Ba,zb){Ba.getTopPage().isMobileDesired()&&
(O=F=v=6);fa=!Ba.isInstanceOf(S.WidgetSuperType_CardSimilary)&&!(Ba instanceof Ha);ia=Ba.getClientWidth();wa=Ba.getClientHeight();var X=Qb.getInstance(zb.getWidgetTypeName()).getMinSize();Ca=X[0];Oa=X[1];tb(Ba,zb);Za=[];kb=[];ra=[];Ja=[];for(X=0;X<Ba.getWidgetCount();X++){var da=Ba.getWidget(X);if(da!=zb){var D=da.getX(),ca=da.getY(),Ka=D+da.getWidth();da=ca+da.getHeight();for(var $a=0;$a<Ba.getWidgetCount();$a++){var va=Ba.getWidget($a);if(X!=$a&&va!=zb){var Ta=va.getX(),xb=va.getY(),Z=Ta+va.getWidth();
va=xb+va.getHeight();if(!(Ka<Ta||Z<D))if(va<ca){var Kb=ca-va;Kb<V&&Za.push(new C(da,ca,Kb,Math.min(D,Ta),Math.max(Ka,Z)))}else da<xb&&(Kb=xb-da,Kb<V&&kb.push(new C(ca,da,-Kb,Math.min(D,Ta),Math.max(Ka,Z))));da<xb||va<ca||(Z<D?(Kb=D-Z,Kb<J&&ra.push(new C(Ka,D,Kb,Math.min(ca,xb),Math.max(da,va)))):Ka<Ta&&(Kb=Ta-Ka,Kb<J&&Ja.push(new C(D,Ka,-Kb,Math.min(ca,xb),Math.max(da,va)))))}}}}};var tb=function(Ba,zb){Na=[];for(var X=0;X<Ba.getWidgetCount();X++){var da=Ba.getWidget(X);if(da!=zb){var D=da.getX(),
ca=da.getY(),Ka=D+da.getWidth();da=ca+da.getHeight();D=new function($a,va,Ta,xb){this.getX1=function(){return $a};this.getY1=function(){return va};this.getX2=function(){return Ta};this.getY2=function(){return xb}}(D,ca,Ka,da);Na.push(D)}}},A=function(Ba){return ba.isContains(mb.getActionUnit(),Ba)},Xa=function(Ba){return K.isBorder(mb.getAnchorBorder(),Ba)},Bb=function(Ba,zb){return 8>Math.abs(Ba-zb)},Vb=function(){return na[0]+na[2]},Eb=function(){return na[1]+na[3]};this.keepMinSizeLimited=function(Ba,
zb){na=Ba;mb=zb;(A(ba.WIDTH)||A(ba.WIDTH_NEGATIVE))&&na[2]<Ca&&(A(ba.WIDTH_NEGATIVE)&&(Ba=Ca-na[2],na[0]-=Ba),na[2]=Ca);(A(ba.HEIGHT)||A(ba.HEIGHT_NEGATIVE))&&na[3]<Oa&&(A(ba.HEIGHT_NEGATIVE)&&(Ba=Oa-na[3],na[1]-=Ba),na[3]=Oa)};this.keepInsideContainer=function(Ba,zb){na=Ba;mb=zb;Ba=na[0];zb=na[2];A(ba.X)?(Ba+zb>ia&&(Ba=ia-zb,na[0]=Ba),0>Ba&&(A(ba.WIDTH_NEGATIVE)&&(na[2]=zb- -Ba),na[0]=0)):A(ba.WIDTH)&&(na[2]=Ba<ia&&Ba+zb>ia?ia-Ba:zb);Ba=na[1];zb=na[3];A(ba.Y)?(Ba+zb>wa&&(Ba=wa-zb,na[1]=Ba),0>Ba&&
(A(ba.HEIGHT_NEGATIVE)&&(na[3]=zb- -Ba),na[1]=0)):A(ba.HEIGHT)&&(na[3]=Ba<wa&&Ba+zb>wa?wa-Ba:zb)};this.anchor=function(Ba,zb,X){Hb=Ba;mb=zb;na=X;Tc();Ba=!1;Xa(K.LEFT)&&((Ba=Xb(na[0],0,0,wa,$b)||lc(na[0],na[1],Eb(),"getX1","getY1","getY2",!1,$b))||(Ba=Xa(K.LEFT)?Bc(na[0],na[1],Eb(),ra,$b,Oc,Nc)||uc(na[0],na[1],Eb(),"getX2","getY1","getY2",F,$b,Nc):!1),!(Ba=Ba||lc(na[0],na[1],Eb(),"getX2","getY1","getY2",!0,$b))&&(Ba=fa)&&(Ba=v,Bb(na[0],Ba)?($b(Ba,v,wa-v),Ba=!0):Ba=!1));!Ba&&Xa(K.RIGHT)&&((Ba=Xb(Vb(),
ia,0,wa,dc)||lc(Vb(),na[1],Eb(),"getX2","getY1","getY2",!1,dc))||(Ba=Xa(K.RIGHT)?Bc(Vb(),na[1],Eb(),Ja,dc,Nc,Oc)||uc(Vb(),na[1],Eb(),"getX1","getY1","getY2",-F,dc,Oc):!1),Ba||lc(Vb(),na[1],Eb(),"getX1","getY1","getY2",!0,dc)||!fa||(Ba=ia-v,Bb(Vb(),Ba)&&dc(Ba,v,wa-v)));Ba=!1;Xa(K.TOP)&&((Ba=Xb(na[1],0,0,ia,gb)||lc(na[1],na[0],Vb(),"getY1","getX1","getX2",!1,gb))||(Ba=Xa(K.TOP)?Bc(na[1],na[0],Vb(),Za,gb,Kc,Ic)||uc(na[1],na[0],Vb(),"getY2","getX1","getX2",O,gb,Ic):!1),!(Ba=Ba||lc(na[1],na[0],Vb(),"getY2",
"getX1","getX2",!0,gb))&&(Ba=fa)&&(Ba=v,Bb(na[1],Ba)?(gb(Ba,v,ia-v),Ba=!0):Ba=!1));!Ba&&Xa(K.BOTTOM)&&((Ba=Xb(Eb(),wa,0,ia,Ab)||lc(Eb(),na[0],Vb(),"getY2","getX1","getX2",!1,Ab))||(Ba=Xa(K.BOTTOM)?Bc(Eb(),na[0],Vb(),kb,Ab,Ic,Kc)||uc(Eb(),na[0],Vb(),"getY1","getX1","getX2",-O,Ab,Kc):!1),Ba||lc(Eb(),na[0],Vb(),"getY1","getX1","getX2",!0,Ab)||!fa||(Ba=wa-v,Bb(Eb(),Ba)&&Ab(Ba,v,ia-v)))};this.abort=function(){Hb&&Tc()};var $b=function(Ba,zb,X){var da=na[2];Xa(K.RIGHT)||(da+=na[0]-Ba);if(0>Ba||Ba+da>ia)return!1;
Xa(K.RIGHT)||(na[2]=da);na[0]=Ba;Oc(Ba,zb,X);return!0},dc=function(Ba,zb,X){var da=na[2];if(!Xa(K.LEFT)){var D=Vb()-Ba;da-=D}D=Ba-da;if(0>D||Ba>ia)return!1;Xa(K.LEFT)||(na[2]=da);na[0]=D;Nc(Ba,zb,X);return!0},gb=function(Ba,zb,X){var da=na[3];Xa(K.BOTTOM)||(da+=na[1]-Ba);if(0>Ba||Ba+da>wa)return!1;Xa(K.BOTTOM)||(na[3]=da);na[1]=Ba;Kc(Ba,zb,X);return!0},Ab=function(Ba,zb,X){var da=na[3];if(!Xa(K.TOP)){var D=Eb()-Ba;da-=D}D=Ba-da;if(0>D||Ba>wa)return!1;Xa(K.TOP)||(na[3]=da);na[1]=D;Ic(Ba,zb,X);return!0},
Xb=function(Ba,zb,X,da,D){return Bb(Ba,zb)?D(zb,X,da):!1},lc=function(Ba,zb,X,da,D,ca,Ka,$a){for(var va=65535,Ta,xb=0;xb<Na.length;xb++){var Z=Na[xb],Kb=Z[D](),Rb=Z[ca]();Ka&&(X<Kb||Rb<zb)||!Bb(Ba,Z[da]())||(Kb=Math.min(Math.abs(zb-Rb),Math.abs(X-Kb)),Kb<va&&(va=Kb,Ta=Z))}if(!Ta)return!1;Ba=Math.min(zb,Ta[D]());X=Math.max(X,Ta[ca]());return $a(Ta[da](),Ba,X)},Bc=function(Ba,zb,X,da,D,ca,Ka){for(var $a=65535,va,Ta=0;Ta<da.length;Ta++){var xb=da[Ta];var Z=xb.getPerpendicularMin();var Kb=xb.getPerpendicularMax();
X<Z||Kb<zb||!Bb(Ba,xb.getStuckPos())||(Z=Math.abs(Ba-xb.getStuckPos()),Z<$a&&($a=Z,va=xb))}return va?(Ba=Math.min(va.getPerpendicularMin(),zb),X=Math.max(va.getPerpendicularMax(),X),D(va.getStuckPos(),Ba,X),Ka(va.getBrotherNearSide(),Ba,X),ca(va.getBrotherFarSide(),Ba,X),Ka(va.getFarFarPos(),Ba,X),!0):!1},uc=function(Ba,zb,X,da,D,ca,Ka,$a,va){for(var Ta=0;Ta<Na.length;Ta++){var xb=Na[Ta],Z=xb[da](),Kb=xb[D](),Rb=xb[ca]();xb=Z+Ka;if(!(X<Kb||Rb<zb)&&Bb(Ba,xb))return Ba=Math.min(Kb,zb),X=Math.max(Rb,
X),$a(xb,Ba,X),va(Z,Ba,X),!0}return!1},Tc=function(){Hb.getJqParent().find(".dsb-dragdrop-auxiliaryline").remove()},Jc=function(Ba,zb,X,da,D){Hb.isClear()||(X-=Ba,da-=zb,Ba=Hb.transX(Ba+D),zb=Hb.transY(zb+D),D=$("<div>"),D.addClass("dsb-dragdrop-auxiliaryline"),U.layoutCtrl(D,Ba,zb,X,da),D.appendTo(Hb.getJqParent()))},Oc=function(Ba,zb,X){Jc(Ba,zb-10,Ba,X+10,-1)},Nc=function(Ba,zb,X){Jc(Ba,zb-10,Ba,X+10,0)},Kc=function(Ba,zb,X){Jc(zb-10,Ba,X+10,Ba,-1)},Ic=function(Ba,zb,X){Jc(zb-10,Ba,X+10,Ba,0)}}
function C(v,F,O,J,V){this.getStuckPos=function(){return v+O};this.getBrotherNearSide=function(){return v};this.getBrotherFarSide=function(){return F};this.getFarFarPos=function(){return F-O};this.getPerpendicularMin=function(){return J};this.getPerpendicularMax=function(){return V}}function y(v,F,O){var J;this.getJqParent=function(){return v};this.transX=function(V){return V+F};this.transY=function(V){return V+O};this.setClear=function(V){J=V};this.isClear=function(){return J}}function M(v,F,O){this.getContainerWidget=
function(){return v};this.getJqContainerWidget=function(){return F};this.getJqPhysicalContainer=function(){return O}}function oa(){var v=$(document.body),F,O,J,V,fa,ia,wa,Ca,Oa,Na,Za,kb,ra;this.bindDragContainer=function(Xa,Bb){var Vb=!1,Eb=[-1,-1],$b=null,dc=function(){J=Vb=!1;$b=null;Eb=[-1,-1]};Xa.on("mousedown",function(gb){Vb=!0;J=!1;$b=$(gb.target);Eb=[gb.screenX,gb.screenY]});Xa.on("mouseup",function(gb){dc()});Xa.on("mouseleave",function(gb){Vb&&dc()});Xa.on("mousemove",function(gb){var Ab=
!1;Vb&&(Ab=5<Math.abs(gb.screenX-Eb[0])||5<Math.abs(gb.screenY-Eb[1]));Ab&&(Vb=!1,(gb=Bb($b))?(F=new ua,Oa=Za(),V=gb.createWidgetModel(!0),fa=gb.getTypeDisplayName(),J=!0,v.on("mousemove",Ja),v.on("mouseup",na),v.on("mouseleave",mb)):dc())})};this.bindDropContainer=function(Xa,Bb,Vb,Eb){Na=Xa;Za=Bb;kb=Vb;ra=Eb};var Ja=function(Xa){if(J){if(!ia){ia=$("<div onselectstart='return false'>");ia.addClass("dsb-dragdrop-creating-widget");var Bb=U.getCurrentTargetPosition(Xa);Bb=U.upwardCoordinate(Xa.target,
Bb,v[0]);ia.data("sys-my-ori-left",Bb[0]);ia.data("sys-my-ori-top",Bb[1]);ia.appendTo(v)}(Bb=kb(Xa,Oa,Ca,V))?(Xa=Bb.getContainerWidget(),Ca!=Xa&&(F.prepare(Xa,V),Ca=Xa),Xa=Bb.getJqPhysicalContainer(),Hb(Xa),tb(),ia.text(fa),Bb=[V.getX(),V.getY()],Bb=U.upwardCoordinate(Xa[0],Bb,v[0]),U.layoutCtrl(ia,Bb[0],Bb[1],V.getWidth(),V.getHeight())):(Ca=null,ia.text(""),Bb=U.getCurrentTargetPosition(Xa),Bb=U.upwardCoordinate(Xa.target,Bb,v[0]),U.layoutCtrl(ia,Bb[0]-20,Bb[1]-15,40,30),Hb(null))}},na=function(Xa){(Xa=
kb(Xa,Oa,Ca,V))?(tb(),ra(Xa.getContainerWidget(),V,function(){ia.remove();ia=null}),A(!0)):A()},mb=function(Xa){A()},Hb=function(Xa){if(Xa){wa||(wa=$("<div>"),wa.addClass("dsb-dragdrop-creating-droppingcontainer"),wa.appendTo(Na),O=new y(wa,0,0));var Bb=Xa.outerWidth(),Vb=Xa.outerHeight(),Eb=[0,0];Eb=U.upwardCoordinate(Xa[0],Eb,Na[0]);U.layoutCtrl(wa,Eb[0],Eb[1],Bb,Vb)}else wa&&(wa.remove(),wa=null)},tb=function(){var Xa=[V.getX(),V.getY(),V.getWidth(),V.getHeight()];F.anchor(O,Q.MOVE,Xa);V.setPosition(Xa[0],
Xa[1])},A=function(Xa){Hb(null);J=!1;!Xa&&ia&&ia.animate({left:ia.data("sys-my-ori-left"),top:ia.data("sys-my-ori-top"),width:4,height:3},function(){ia.remove();ia=null});V=null;v.off("mousemove",Ja);v.off("mouseup",na);v.off("mouseleave",mb)}}function H(){var v,F,O,J,V,fa,ia,wa,Ca,Oa,Na,Za;this.setJqPageArea=function(tb){v=tb};this.setTarget=function(tb,A){F=tb;O=A};this.setActionListener=function(tb){J=tb};this.bindOperator=function(tb,A){tb.on("mousedown",function(Xa){V=A;Na=new ua;Na.prepare(F.getParent(),
F);fa=[Xa.clientX,Xa.clientY];ia=$("<div>");ia.addClass("dsb-glasslayer");ia.css("cursor",V.getCursor());ia.appendTo($(document.body));U.layoutCtrlWithLRTB(ia,0,0,null,0,0,null);ia.on("mousemove",ra);ia.on("mouseup",Ja);ia.on("mouseleave",na);Xa=[0,0];Xa=U.upwardCoordinate(O.parent()[0],Xa,v[0]);Za=new y(v,Xa[0],Xa[1])})};var kb=function(tb){var A=tb.clientX-fa[0],Xa=tb.clientY-fa[1];tb=Hb(ba.X)?A:0;var Bb=Hb(ba.Y)?Xa:0;A=Hb(ba.WIDTH)?A:Hb(ba.WIDTH_NEGATIVE)?-A:0;Xa=Hb(ba.HEIGHT)?Xa:Hb(ba.HEIGHT_NEGATIVE)?
-Xa:0;return[Oa[0]+tb,Oa[1]+Bb,Oa[2]+A,Oa[3]+Xa]},ra=function(tb){if(!Ca){var A=F.getX(),Xa=F.getY(),Bb=F.getWidth(),Vb=F.getHeight();Oa=[A,Xa,Bb,Vb];var Eb=O.parent();Xa=[A,Xa];Xa=U.upwardCoordinate(Eb[0],Xa,v[0]);A=Xa[0];Xa=Xa[1];Ca=$("<div>");Ca.addClass("dsb-dragdrop-moving-target");Ca.css("cursor",V.getCursor());Ca.appendTo(v);U.layoutCtrl(Ca,A,Xa,Bb,Vb)}wa||(wa=$("<div>"),wa.addClass("dsb-dragdrop-moving-container"),wa.appendTo(v),A=O.parent(),Bb=A.outerWidth(),Vb=A.outerHeight(),Eb=[0,0],Eb=
U.upwardCoordinate(A[0],Eb,v[0]),U.layoutCtrl(wa,Eb[0],Eb[1],Bb,Vb));tb=kb(tb);Na.keepInsideContainer(tb,V);Na.keepMinSizeLimited(tb,V);Na.anchor(Za,V,tb);A=Za.transX(tb[0]);Bb=Za.transY(tb[1]);U.layoutCtrl(Ca,A,Bb,tb[2],tb[3])},Ja=function(tb){Ca&&(Za.setClear(!0),tb=kb(tb),Na.keepInsideContainer(tb,V),Na.keepMinSizeLimited(tb,V),Na.anchor(Za,V,tb),J(tb[0],tb[1],tb[2],tb[3],V));mb()},na=function(tb){mb()},mb=function(){Na.abort();ia.off("mousemove",ra);ia.off("mouseup",Ja);ia.off("mouseleave",na);
ia.remove();ia=null;Ca&&Ca.remove();Ca=null;wa&&wa.remove();wa=null},Hb=function(tb){return ba.isContains(V.getActionUnit(),tb)}}function Q(v,F,O){this.getCursor=function(){return v};this.getActionUnit=function(){return F};this.getAnchorBorder=function(){return O}}"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 T=com.kingdee.bos.qing.dsb.ui;T.Designer=function(){var v=this,F,O,J=new Ib,V=new ha,fa,ia=new Cc,wa,Ca,Oa=!1,Na,Za=new function(){this.getDashboardModel=function(){F||(F=new S);return F};this.getCommandManager=function(){return ia};this.createFacade=function(gb,Ab,Xb){return new nb(wa,gb,Ab,Xb)};this.showBlockingPrompt=function(gb){if(gb){var Ab=$("<div>");Ab.addClass("dsb-main-modallayer");
Ab.appendTo(O);ob.createLoadingIcon().appendTo(Ab);var Xb=$("<div>");Xb.addClass("dsb-main-modallayer-prompt");Xb.text(gb);Xb.appendTo(Ab)}else O.find(".dsb-main-modallayer").remove()};this.setDirty=function(gb){Hb(gb)};this.selectWidget=function(gb){fa.requestSelectingWidget(gb)}};this.setRemoteImpl=function(gb){wa=gb};this.getConductor=function(){if(!Ca){var gb={};gb.setDirty=Hb;gb.isDirty=function(){return Oa};gb.hookDirtyListener=function(Ab){Na=Ab};gb.getWarningRuleHelper=dc;Ca=new eb(J,V,gb)}return Ca};
this.createJqUi=function(){O=$("<div onselectstart='return false'>");O.addClass("dsb-main");kb();O.append(J.getJqUi());O.append(V.getJqUi());fa=new Ra;fa.setGlobalDependence(Za);O.append(fa.getJqUi());ia.addPerformedListener(ra);return O};this.resize=function(){fa.resize();J.refresh()};this.born=function(){var gb=Qb.getInstance(S.WidgetType_PageTitleBar),Ab=gb.createWidgetModel(!0);Ab.setName(gb.getTypeName());Ab.setDisplayName(gb.getTypeDisplayName());F=new S;F.getPage().addWidget(Ab);fa.updateDashboardModel();
Hb(!1)};this.setJsonModel=function(gb,Ab){var Xb=new hb;F=new S;try{F.fromJsonObject(gb,Xb)}catch(lc){Xb.setError(!0),window.console&&console.error(lc)}fa.updateDashboardModel();Hb(!1);Xb.isTooModern()&&V.showShortPrompt(za.get("loadHighVersion","\u517c\u5bb9\u6027\u52a0\u8f7d\u9ad8\u7248\u672c\u6587\u6863"),!0,"#930");Ab&&Ab(Xb)};this.getJsonModel=function(){return Za.getDashboardModel().toJsonObject()};this.collectBuiltinWidgetsExecutingTag=function(){var gb={};Za.getDashboardModel().getPage().traversalDescendents(function(Ab){if(Ab.isInstanceOf(S.WidgetSuperType_BuiltinVisual)){var Xb=
Ab.getReferenceCustomMap().uid;(Ab=Ab.getExecutingTag())?(gb[Xb]=Ab,Xb=!1):(gb=null,Xb=!0);return Xb}});return gb};var kb=function(){var gb=J.addButton(na,"btn_undo",za.get("undo","\u64a4\u6d88")),Ab=J.addButton(mb,"btn_redo",za.get("redo","\u91cd\u505a"));Ja(gb,Ab);ia.addPerformedListener(function(Xb,lc,Bc){Ja(gb,Ab)});J.addSeperator();J.addMenuButton(Vb,"btn_overall",za.get("overall","\u5168\u5c40\u89c6\u56fe"));J.addMenuButton(tb,"btn_preview",za.get("preview","\u9884\u89c8"))},ra=function(gb,
Ab,Xb){Hb(!0);gb&&(Ab=Ab?"":(Xb?za.get("undo","\u64a4\u6d88"):za.get("redo","\u91cd\u505a"))+" ",Ab+=gb.getCaption(),V.showShortPrompt(Ab))},Ja=function(gb,Ab){gb.setEnabled(ia.isCanUndo());Ab.setEnabled(ia.isCanRedo())},na=function(){ia.isCanUndo()&&ia.undo()},mb=function(){ia.isCanRedo()&&ia.redo()},Hb=function(gb){Oa=gb;V&&V.showDirtyState(Oa);Na&&Na(Oa)},tb=function(gb){gb=new hc;gb.addItemModel(Sb.createActionMenuItem(za.get("previewOnDesktop","\u684c\u9762\u7aef"),A));gb.addItemModel(Sb.createActionMenuItem(za.get("previewOnMobile",
"\u79fb\u52a8\u7aef"),Xa));return gb},A=function(gb){Bb(new Lb)},Xa=function(gb){Bb(new wb)},Bb=function(gb){var Ab=fa.collectWidgetsContextForPreview();gb.setFacadeCreator(Za.createFacade);gb.setBackwardListener(function(){lc.unobserve();Xb.remove()});var Xb=gb.createJqUi(Ab);Xb.appendTo(O);U.layoutCtrlWithLRTB(Xb,0,0,null,0,0,null);gb.setJsonModel(v.getJsonModel());var lc=new ab;lc.setDelay(325);lc.setCallback(function(){gb.resize()});lc.observe()},Vb=function(gb){gb=new hc;gb.addItemModel(Sb.createActionMenuItem(za.get("overallCutPaste",
"\u8de8\u5bb9\u5668\u79fb\u52a8\u7ec4\u4ef6")+"...",Eb));gb.addItemModel(Sb.createActionMenuItem(za.get("overallAffecting","\u7ec4\u4ef6\u5173\u7cfb\u89c6\u56fe"),$b));return gb},Eb=function(){(new La).show(Za.getDashboardModel().getPage(),function(gb){ia.compositeStart(za.get("overallCutPaste","\u8de8\u5bb9\u5668\u79fb\u52a8\u7ec4\u4ef6"));for(var Ab=0;Ab<gb.length;Ab++){var Xb=gb[Ab],lc=Xb[0];Xb=Xb[1];var Bc=new k;Bc.setValue(lc.getParent(),lc);var uc=new xc;uc.setValue(Xb,lc);ia.perform(Bc);ia.perform(uc)}ia.compositeEnd()})},
$b=function(){(new Wa).show(Za)},dc=function(){return{popupWarningRuleSelector:function(gb,Ab){(new xa).showDialog(Za.getDashboardModel(),gb,Ab)},parseWidgetDisplayName:function(gb){var Ab="";if(gb){Ab=xa.decodeFullName(gb);var Xb=Ab[0];Ab=Ab[1];(Xb=Za.getDashboardModel().searchWidgetByName(Xb))?(gb=Xb.getDisplayName(),Ab=xa.encodeFullName(gb,Ab)):Ab=gb}return Ab}}}};T.Executor=function(){ib.call(this);var v=this.protectedMethod;this.protectedCreateExhibition=function(){return new ub};this.setUiCreatedAnnouncer=
function(F){v.getExhibition().setHeightAnnouncer(function(O){F()})};this.setCachedExhibitionMode=function(F){v.getExhibition().setCachedExhibitionMode(F)};this.getFreshExhibitionMode=function(){return v.getExhibition().getFreshExhibitionMode()};this.updateLayoutAdapter=function(F){v.getExhibition().updateLayoutAdapter(F)};this.reparseRelativeDate=function(){return v.getExhibition().reparseRelativeDate()}};T.Executor4Mobile=function(){ib.call(this);var v=this.protectedMethod;this.protectedCreateExhibition=
function(){return new Da};this.setHeightAnnouncer=function(F){v.getExhibition().setHeightAnnouncer(F)}};T.CosmeticConfigPreviewCreator=aa;var U,Y,ja,qa,Ga,za,ab,Gb,Ob,Zb,Sb,hc,fc,pc,oc,mc,ic,fb,ob,nb,Jb,Nb,Qb,S,Ha,vb,Tb,Mb,nc,gc,ac,tc,Cc,xc,k,e,l,p,x,z,E,L,R,ka=T.TextInputDialog,xa=T.WidgetWarningRuleSelector,La=T.OverallCutPasteDialog,Wa=T.OverallCommunicationDialog;(function(){var v=com.kingdee.bos.qing.common;U=v.DomUtil;Y=v.BrowserUtil;ja=v.FullScreenHelper;qa=v.TextMeasurer;Ga=v.BlocksToTable;
v=com.kingdee.bos.qing.framework.common;za=v.MultilanguageManager.createPackageAccessor(T);ab=v.WindowResizeObserver;Gb=v.GlobalFont;Ob=v.TabbedUiUtil;v=com.kingdee.bos.qing.ui.component;Zb=v.Toolbar;Sb=v.Menu;hc=v.MenuModel;fc=v.SplitPane;pc=v.List;oc=v.MessageDialog;mc=v.WorkButton;v=com.kingdee.bos.qing.common.ui;ic=v.CommonIconUtil;v=com.kingdee.bos.qing.core;fb=v.UserOperationReporter;v=com.kingdee.bos.qing.dsb;ob=v.Icons;nb=v.Facade;Jb=v.CosmeticBag;Nb=v.IntegrationRegister;v=com.kingdee.bos.qing.dsb.model;
Qb=v.WidgetTypeManager;S=v.DashboardModel;Ha=v.WidgetPageTitleBar;vb=v.WidgetPanel;Tb=v.WidgetExtReport;Mb=v.WidgetQingReport;nc=v.WidgetIframe;gc=v.WidgetPicture;ac=v.WidgetTabbedContainer;tc=v.CosmeticModel;if(v=com.kingdee.bos.qing.dsb.controller)Cc=v.CommandManager,xc=v.ActionAddWidget,k=v.ActionRemoveWidget,e=v.ActionMoveWidget,l=v.ActionCutWidget,p=v.ActionPasteAfterCutWidget,x=v.ActionChangeWidgetRect,z=v.ActionChangeProperty;v=com.kingdee.bos.qing.dsb.widget;E=v.AbstractWidgetUi;L=v.DesktopWidgetCtrlProvider;
R=v.MobileWidgetCtrlProvider})();var ba=new function(){this.isContains=function(v,F){return(v&F)==F}};ba.X=1;ba.WIDTH=2;ba.WIDTH_NEGATIVE=4;ba.Y=16;ba.HEIGHT=32;ba.HEIGHT_NEGATIVE=64;var K=new function(){this.isBorder=function(v,F){return(v&F)==F}};K.LEFT=1;K.RIGHT=2;K.TOP=4;K.BOTTOM=8;Q.W=new Q("w-resize",ba.X|ba.WIDTH_NEGATIVE,K.LEFT);Q.E=new Q("e-resize",ba.WIDTH,K.RIGHT);Q.N=new Q("n-resize",ba.Y|ba.HEIGHT_NEGATIVE,K.TOP);Q.S=new Q("s-resize",ba.HEIGHT,K.BOTTOM);Q.NW=new Q("nw-resize",Q.N.getActionUnit()|
Q.W.getActionUnit(),Q.N.getAnchorBorder()|Q.W.getAnchorBorder());Q.NE=new Q("ne-resize",Q.N.getActionUnit()|Q.E.getActionUnit(),Q.N.getAnchorBorder()|Q.E.getAnchorBorder());Q.SW=new Q("sw-resize",Q.S.getActionUnit()|Q.W.getActionUnit(),Q.S.getAnchorBorder()|Q.W.getAnchorBorder());Q.SE=new Q("se-resize",Q.S.getActionUnit()|Q.E.getActionUnit(),Q.S.getAnchorBorder()|Q.E.getAnchorBorder());Q.MOVE=new Q("move",ba.X|ba.Y,K.LEFT|K.RIGHT|K.TOP|K.BOTTOM)})();
//qingVersionTag: 20250415