(function(){function L(D,M,z,F){var G,fa=!1,X;this.tryAgain=function(){X()};this.getWebApiToken=function(b){x("getWebApiToken",{timeStamp:b.timeStamp,state:b.state,client_id:b.clientId,sign:b.sign})};this.getSharingById=function(b){b={sharingTargetId:b,phoneModel:com.kingdee.bos.qing.lapp.integration.EnvUtil.getOS(),screenPixel:document.documentElement.clientWidth+", "+document.documentElement.clientHeight};x("get",b)};this.getDirListIfEmptyThenCreate=function(){var b={};try{getOS&&(b={phoneModel:getOS(),
screenPixel:document.documentElement.clientWidth+", "+document.documentElement.clientHeight})}catch(p){b={}}x("getDirListIfEmptyThenCreate",b)};this.orderDirectory=function(b){b={model:JSON.stringify(b)};x("reOrder",b)};this.batchEditDirectory=function(b){b={list:JSON.stringify(b.toJsonObject())};x("edit",b)};this.saveDirectory=function(b){b={model:JSON.stringify(b.toJsonObject())};x("saveLappDirectory",b)};this.deleteDirectory=function(b){x("delete",{id:b})};this.isDirectoryExisted=function(b){x("isExisted",
{name:b})};this.getAnalysisList=function(b,p,P,T){x("getLappAnalysisList",null!=p?{directoryId:b,size:10,page:p,name:P,modifiedTime:T}:{directoryId:b})};this.getAnalysisIdList=function(b,p){x("getIds",{directoryId:b,name:p})};this.getMyFollow=function(){x("getFavoriteList",{})};this.getFollow=function(b){x("getFavoriteList",{type:b})};this.savaAnalysis=function(b,p,P,T){b={model:JSON.stringify(b.toJsonObject()),eid:p,scene:P,webShare:T};x("saveLappAnalysis",b)};this.isAnalysisNameDuplicate=function(b,
p){x("isNameDuplicate",{parentId:b,name:p})};this.moveToOtherDirectory=function(b,p){x("moveToOtherDirectory",{directoryId:b,ids:p})};this.deleteAnalysis=function(b){x("deleteById",{id:b})};this.deleteAnalyses=function(b){x("delete",{ids:b})};this.updateFavorites=function(b){x("updateFavorites",{ids:b})};this.updateFavorite=function(b,p){x("updateFavorite",{id:b,sharingTargetId:p})};this.getSchemaContent=function(b,p){x("getSchemaContent",{id:b,ticket:p})};this.getSharing=function(b){x("query",{size:10,
page:b})};this.deleteShare=function(b){x("delete",{id:b})};this.deleteShareGroup=function(b){x("delete",{id:b})};this.getAnalysis=function(b){x("get",{id:b})};this.getUserUnReadCount=function(b){x("getUserUnReadCount",{scene:b})};this.getQuerySendedList=function(b,p){x("query",{type:"SEND",modifiedTime:p,size:6,page:b})};this.getQueryReceivedList=function(b,p){x("query",{type:"RECEIVE",modifiedTime:p,size:6,page:b})};this.getQueryReceivedUnreadedList=function(){x("getList",{type:"RECEIVE"})};this.clearReceivedList=
function(){x("delete",{type:"RECEIVE"})};this.clearSendedList=function(){x("delete",{type:"SEND"})};this.setReaded=function(b){x("setReaded",{sharingTargetId:b})};this.setShowBlocking=function(b){fa=b};var ka=function(){G=$("<div>");G.addClass("lapp-common-loading-modallayer");var b=$("<div>");b.addClass("lapp-common-loading");b.css("background-image",U.Resource.getIconUrl("core","loading.gif"));b.appendTo(G);G.appendTo($(document.body))},ia=function(b,p,P,T){b=com.kingdee.bos.qing.lapp.integration.RemoteFrameworkUtil.createRemoteUrl(D,
b,ha);p.lappUserId=ba;p.lappUserType=ca;p.language=I();var R=p.customSettings;delete p.customSettings;jQuery.support.cors=!0;R=R?R:{};R.type="POST";R.dataType="json";R.url=b;R.data=p;R.success=function(da){P(da)};R.error=function(da,qa){T(da.status,qa,da)};$.ajax(R)},x=function(b,p){fa&&ka();X=function(){fa&&ka();setTimeout(function(){ia(b,p,ja,ea)},1E3)};ia(b,p,ja,ea)},ja=function(b){"number"==typeof b.errorCode?ea(b.errorCode,b.errorMessage):(M(b.data),G&&G.remove(),F&&F())},ea=function(b,p,P){0==
b&&(p="\u7531\u4e8e\u7f51\u7edc\u95ee\u9898\uff0c\u4e0d\u80fd\u6b63\u5e38\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002");var T=!1;z&&(T=z(b,p));T||(V?V(b,p,P):(p="\u8bbf\u95ee\u670d\u52a1\u5668\u8fc7\u7a0b\u51fa\u73b0\u9519\u8bef\uff1a"+p,b&&(p+="\r\n\u9519\u8bef\u7801\uff1a"+b),b=p,p=com.kingdee.bos.qing.ui.component.MessageDialog,P=new p,P.setOptionType(p.OPTION_OK),P.setMessage(b),P.showDialog()));G&&G.remove();F&&F()};this.protectedMethod={remote:x,setShowBlocking:function(b){fa=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.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.framework&&(com.kingdee.bos.qing.lapp.framework={});var U=com.kingdee.bos.qing.lapp.framework;U.Facade=L;var V;L.setCustomErrorHandler=function(D){V=D};L.setToken=function(D){};var ba,
ca;L.setUserIdAndUserType=function(D,M){ba=D;ca=M};var ha=!1;L.setWithoutDotDo=function(D){ha=D};var I=function(){if(null==navigator.userAgent.split("lang:")[1]||""==navigator.userAgent.split("lang:")[1])var D="zh_CN";else D=navigator.userAgent.split("lang:")[1].split(";")[0],"zh-CN"==D?D="zh_CN":"en-CN"==D&&(D="en");return D}})();(function(){function L(a,k,e){var f=this,c,g,d,h,n,l=a();this.getJqUi=function(){u();return c};this.hasFilters=function(){if(0==l.length)return!1;for(var q=!1,C=0;C<l.length;C++)if(l[C].isOnShow()){q=!0;break}return q};this.setClosedListener=function(q){h=q};this.hide=function(){c&&c.css("display","none");h&&h()};this.updateUi=function(){g.empty();d.empty();n=[];for(var q=!1,C=0;C<l.length;C++)if(l[C].isOnShow()){var S=l[C].getAssociatedField(),N=U.create(l[C],S);N.setTitle(S.getText());N.setToggleListener(y);
N.getJqHead().appendTo(g);q||(q=!0,J(N));n.push(N)}};var u=function(){if(!c){c=$("<div style='display: none'>");c.addClass("lapp-filter-modallayer");c.on("click",function(r){"lapp-filter-modallayer"==r.target.className&&w()});var q=$("<div>");q.addClass("lapp-filter-container");g=$("<div>");g.addClass("lapp-filter-container-left");g.appendTo(q);d=$("<div>");d.addClass("lapp-filter-container-right");d.appendTo(q);var C=new T(v.get("cancel","\u53d6\u6d88"),"#777777","#FFFFFF",w),S=new T(v.get("OK",
"\u786e\u5b9a"),"#FFFFFF","#2B87F3",t),N=new P;N.addButton(C);N.addButton(S);N.getJqUi().appendTo(c);q.appendTo(c)}},y=function(q){for(var C=0;C<n.length;C++)n[C].cancelSelectedHead();J(q)},J=function(q){var C=function(S){S?q.updateUi():q.showNetworkError()};d.empty();q.doSelectedHead();q.getJqContent().appendTo(d);q.getFilter().getPreparedModel()?q.updateUi():k(l,q.getFilter(),C)},t=function(){for(var q=0;q<n.length;q++)n[q].protectedValidate();e(l);f.hide()},w=function(){l=a();f.hide()}}function U(){var a=
this,k=$("<span>"),e,f,c,g,d,h,n;this.getJqContent=function(){e||(e=$("<div>"),e.addClass("lapp-filter-content"));return e};this.getJqHead=function(){f||(f=$("<div>"),f.on("click",l),f.addClass("lapp-filter-head"),k.addClass("lapp-filter-title"),k.appendTo(f),h=$("<div>"),h.addClass("lapp-filter-head-circle"),h.appendTo(f),h.hide());return f};this.setTitle=function(y){k.text(y)};this.setToggleListener=function(y){n=y};this.protectedDoUpdateUi=function(){throw Error("Override me");};this.protectedValidate=
function(){};this.getFilter=function(){return c};this.setFilter=function(y){c=y};this.setFilterField=function(y){g=y};this.getFilterField=function(y){return g};this.doSelectedHead=function(){f.addClass("lapp-filter-text-selected")};this.cancelSelectedHead=function(){f.removeClass("lapp-filter-text-selected")};this.updateUi=function(){d&&d.remove();var y=!0;if(c.getState()==ra.STATE_VALID)c.getPreparedModel()?y=!1:u(v.get("noAlternativeValues","\u6ca1\u6709\u5907\u9009\u503c"));else{var J=c.getState();
J==ra.STATE_FIELD_ERROR?u(v.get("invalidField","\u65e0\u6548\u7684\u5b57\u6bb5")):J==ra.STATE_PMODEL_UNMATCH?(J=v.get("theFieldDataTypeDoesNotMatchTheFilter","\u5b57\u6bb5\u6570\u636e\u7c7b\u578b\u4e0e\u7b5b\u9009\u5668\u4e0d\u5339\u914d"),u(J)):u("something error!")}y||a.protectedDoUpdateUi()};this.showNetworkError=function(){d&&d.remove();u(v.get("busyServer","\u670d\u52a1\u5668\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002"))};var l=function(){n(a)},u=function(y){d||(d=$("<div>"),d.addClass("lapp-filtercard-nochoice"));
d.text(y);d.appendTo(e)};this.protectedMethod={promptMsg:u,setDirty:function(y){y?h.show():h.hide()}}}function V(){U.call(this);var a=this,k=this.protectedMethod,e,f,c;this.protectedDoUpdateUi=function(){e=a.getFilter().getSelectableItems();var l=a.getJqContent();l.empty();f=new x;f.setSearchListenerDelay(800);f.addSearchListener(g);var u=f.getJqUi(),y=$("<div class='lapp-filter-container-searchBar'>");u.appendTo(y);y.appendTo(l);h()&&n(l)};var g=function(){e=a.getFilter().getSelectableItems();f.getText()&&
(e=$.grep(e,function(l){var u=!1;-1<l.getDisplayText().toUpperCase().indexOf(f.getText().toUpperCase())&&(u=!0);return u}));d()},d=function(){var l=a.getJqContent(),u=l.children();1<u.length&&u[1].remove();h()&&n(l)},h=function(){return 0==e.length?(f.getText()?k.promptMsg(v.get("noMatchedSearch","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c")):a.getFilter().isJustShowAffected()?k.promptMsg(v.get("noOptionValue","\u6ca1\u6709\u76f8\u5173\u503c\u9009\u9879\n\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u5207\u6362\u5230\u5168\u90e8\u503c")):
k.promptMsg(v.get("noAlternativeValues","\u6ca1\u6709\u5907\u9009\u503c")),!1):!0},n=function(l){c=new xa;c.setItemHeight(44);c.getJqUi().addClass("lapp-filtercard-pane");c.getJqUi().appendTo(l);c.setItemCount(a.protectedItemSize());c.setCreateItemUiFunc(a.protectedItemCreateFunction);c.repaint()};this.protectedItemSize=function(){throw Error("Override me");};this.protectedItemCreateFunction=function(l){throw Error("Override me");};this.protectedMethod.repaintWithScrollState=function(){c.keepState();
c.repaint();c.restoreState()};this.protectedMethod.visitAllItem=function(l){for(var u=c.getPaintSectionUi(),y,J=0;J<u.length;J++)y=u[J],y=y.data("userObject"),l&&l(y)};this.protectedMethod.getVisibleSelectableItem=function(){return e}}function ba(){V.call(this);var a=this,k=this.protectedMethod,e=new ea;this.protectedItemSize=function(){return k.getVisibleSelectableItem().length};this.protectedItemCreateFunction=function(c){var g=a.getFilter();c=k.getVisibleSelectableItem()[c];var d=g.isValueSelected(c.getValue()),
h=c.getDisplayText(),n=g.isExclude()?"line-through":"";g=new b;g.addCheckedListener(f);g.setUserObject(c);g.setText(h);g.setChecked(d);g.setCustomStyle("text-decoration",n);e.addElement(g);c=g.getJqUi();c.addClass("lapp-filtercard-discreteitem");c.data("userObject",g);return c};var f=function(c,g){if(g){g=a.getFilter();g.addSelectedValue(c.getUserObject().getValue());k.setDirty(!0);for(var d=g.getSelectableItems(),h=0;h<d.length;h++){var n=d[h];c.getUserObject()!=n&&g.removeSelectedValue(n.getValue())}}}}
function ca(){V.call(this);var a=this,k=this.protectedMethod,e;this.protectedItemSize=function(){return k.getVisibleSelectableItem().length+1};this.protectedItemCreateFunction=function(d){if(0==d)return e=new ja,e.setChecked(f()),e.setText(v.get("all","(\u5168\u9009)")),e.addCheckedListener(g),d=e.getJqUi(),d.addClass("lapp-filtercard-discreteitem"),d;var h=d-1,n=a.getFilter(),l=k.getVisibleSelectableItem();d=n.isExclude();h=l[h];l=h.getValue();n=n.isValueSelected(l);l=h.getDisplayText();var u=d?
"line-through":"";d=new ja;d.addCheckedListener(c);d.setUserObject(h);d.setText(l);d.setChecked(n);d.setCustomStyle("text-decoration",u);h=d.getJqUi();h.addClass("lapp-filtercard-discreteitem");h.data("userObject",d);return h};var f=function(){for(var d=a.getFilter(),h=k.getVisibleSelectableItem(),n=0;n<h.length;n++)if(!d.isValueSelected(h[n].getValue()))return!1;return!0},c=function(d){var h=!d.isChecked();d.setChecked(h);d=d.getUserObject().getValue();var n=a.getFilter();h?n.addSelectedValue(d):
n.removeSelectedValue(d);k.setDirty(!0);f()?e.setChecked(!0):e.setChecked(!1)},g=function(d){var h=!d.isChecked();d.setChecked(h);d=a.getFilter();for(var n=k.getVisibleSelectableItem(),l=0;l<n.length;l++)h?d.addSelectedValue(n[l].getValue()):d.removeSelectedValue(n[l].getValue());k.setDirty(!0);k.repaintWithScrollState()}}function ha(){U.call(this);var a=this,k=this.protectedMethod;this.protectedDoUpdateUi=function(){var f=a.getJqContent();f.empty();var c=new p;c.addValueChangedListener(e);c.getJqUi().appendTo(f);
var g=a.getFilter(),d=g.getPreparedModel();if(g.isJustShowAffected()){f=d.getSelectedMin();d=d.getSelectedMax();var h=Math.min(d,Math.max(f,g.getFloor()));g=Math.min(d,Math.max(f,g.getCeiling()))}else f=d.getMin(),d=d.getMax(),h=g.getFloor(),g=g.getCeiling();c.setFormatString(a.getFilterField().getNumberFormat());c.setLimited(f,d);c.setValue(h,g)};var e=function(f){f=f.getValue();a.getFilter().setValue(f[0],f[1]);k.setDirty(!0)}}function I(){U.call(this);var a=this,k=this.protectedMethod,e,f,c,g,
d,h=new function(){var t,w,q,C;this.initUi=function(){var r=[v.get("today","\u4eca\u5929"),v.get("thisWeek","\u672c\u5468"),v.get("thisMonth","\u672c\u6708")],E=[aa.PERIOD_DAY,aa.PERIOD_WEEK,aa.PERIOD_MONTH];C=new ea;for(var A=0;A<r.length;A++){var Q=new b;Q.addCheckedListener(S);Q.setUserObject(E[A]);Q.setText(r[A]);C.addElement(Q);Q=Q.getJqUi();Q.css({position:"absolute",left:"5%",right:"5%",top:44*A});Q.appendTo(t)}};this.setJqParentUi=function(r){t=r};this.setFilter=function(r){w=r};this.setClickedCallback=
function(r){q=r};this.clearAllChecked=function(r){C.clearAllChecked()};this.transformToDateRange=function(){var r=w.getRelativePeriodModel();if(r.getAnchor()||0!=r.getWhichPeriod())return null;r=r.getPeriod();a:for(var E=C.getElements(),A=0;A<E.length;A++){var Q=E[A].getUserObject();if(r==Q){E[A].setChecked(!0);break a}}return N(r)};var S=function(r,E){if(E){r=r.getUserObject();E=N(r);var A=w.getRelativePeriodModel();A||(A=new aa,w.setRelativePeriodModel(A));A.setAnchor(null);A.setWhichPeriod(0);
A.setPeriod(r);A.setUpToNow(!1);A.setFromNowOn(0);w.setFullValue(!1);k.setDirty(!0);q(E)}},N=function(r){if(r==aa.PERIOD_DAY){r=new Date;r.setHours(0,0,0,0);var E=new Date;E.setHours(0,0,0,0);return[r,E]}if(r==aa.PERIOD_WEEK)return E=new Date,E.setHours(0,0,0,0),r=E.getTime(),E=E.getUTCDay(),[new Date(r-864E5*E),new Date(r+864E5*(6-E))];if(r==aa.PERIOD_MONTH){var A=new Date;A.setHours(0,0,0,0);r=A.getTime();E=A.getDate();A=(new Date(A.getFullYear(),A.getMonth()+1,0)).getDate();return[new Date(r-864E5*
(E-1)),new Date(r+864E5*(A-E))]}return null}};this.protectedDoUpdateUi=function(){var t=a.getJqContent();t.empty();var w=a.getFilter();h.setJqParentUi(t);h.setFilter(w);h.setClickedCallback(n);h.initUi();f=new da(u);t=(new R(v.get("custom","\u81ea\u5b9a\u4e49"),f.getJqUi())).getJqUi();t.css({position:"absolute",left:"5%",right:"5%",top:"132px"});t.appendTo(a.getJqContent());g=w.getFromDateMs();d=w.getToDateMs();w.getRelativePeriodModel()&&(w=h.transformToDateRange())&&(g=w[0].getTime(),d=w[1].getTime());
n([g,d])};this.protectedValidate=function(){var t=a.getFilter(),w=t.getFromDateMs(),q=t.getToDateMs();w>q&&(t.setFromDateMs(q),t.setToDateMs(w))};var n=function(t){g=t[0];d=t[1];t=l(t[0])+"~"+l(t[1]);f.setDateText(t)},l=function(t){var w=new Date(t);t=w.getFullYear();var q=w.getMonth()+1;w=w.getDate();return t+v.get("calendarYearCharacter","\u5e74")+q+v.get("calendarMonthCharacter","\u6708")+w+v.get("calendarDay","\u65e5")},u=function(){e||(e=$("<div>"),e.addClass("lapp-filter-modallayer"),e.appendTo($(document.body)),
e.on("click",function(t){"lapp-filter-modallayer"==t.target.className&&J()}),c=new qa,c.getJqUi().appendTo(e),c.setDateMs([g,d]),c.setOkListener(y),c.setCancelListener(J));375===screen.width&&812===screen.height&&e.css({height:"auto",bottom:"34px"});e.show()},y=function(t){t=t.getSelectedDateMs();if(t[0]>t[1])(new ta).show(v.get("dateRangeError","\u7ed3\u675f\u65e5\u671f\u4e0d\u80fd\u65e9\u4e8e\u5f00\u59cb\u65e5\u671f"),ta.LENGTH_SHORT);else{g=t[0];d=t[1];h.clearAllChecked();var w=a.getFilter();w.setFullValue(!1);
w.setFromDateMs(g);w.setToDateMs(d);w.setRelativePeriodModel(null);k.setDirty(!0);n(t);e&&e.remove();e=null}},J=function(t){e.remove();e=null}}function D(){var a;this.protectedMethod={createLegendUi:function(k,e){a&&a.remove();a=null;a=$("<div>");a.addClass("lapp-square-legend-bar");e||(e=new fa);e=new F(e);e.setModel(k);e.draw(a);return a}}}function M(){z.call(this);this.protectedProcessText=function(a){var k=new com.kingdee.bos.qing.common.NumberFormater;k.setFormatString("#,##0");for(var e=0;e<
a.length;e++){a:{var f=a[e];if("string"==typeof f)try{var c=JSON.parse(f);if("object"==typeof c&&c){var g=!0;break a}}catch(h){}g=!1}if(!g)break;var d=JSON.parse(a[e]);f=d.name+"\uff1a";d=k.format(d.value);a[e]=f+d}}}function z(){G.call(this);var a=this;this.draw=function(k,e,f,c){f=k.length;for(var g=0;g<f;g++){var d=$("<div>");d.addClass("lapp-square-legend-item");if(0===g){var h=d,n=k[0],l=k[1],u=$("<div>");u.addClass("lapp-square-legend-square");var y=$("<div>");y.css({position:"relative",width:"100%",
height:"49%","background-color":n,"border-radius":"100px 100px 0 0"});n=$("<div>");n.css({position:"relative",width:"100%",height:"49%","background-color":l,"border-radius":"0 0 100px 100px"});y.appendTo(u);n.appendTo(u);u.appendTo(h)}else h=d,l=k[g],u=$("<div>"),u.addClass("lapp-square-legend-square"),u.css({"background-color":l}),u.appendTo(h);a.protectedProcessText(e);h=d;l=e[g];u=$("<div>");u.addClass("lapp-square-legend-text");u.text(l);u.appendTo(h);d.appendTo(c)}};this.protectedProcessText=
function(k){}}function F(a){var k,e;this.setModel=function(f){k=f};this.draw=function(f){e=f;f=[];for(var c=[],g,d=k.getItemCount(),h=0;h<d;h++){var n=k.getColor(h),l=k.getText(h);k.getCaption&&k.getCaption(h)&&(l=k.getCaption(h)+"\uff1a"+l);f.push(n);c.push(l)}d=k.getOthersItemCount();0<d&&(g=v.get("itemsAndSoOn","\u5176\u5b83#1\u9879").replace("#1",d));h=$("<div>");h.addClass("lapp-square-legend-wrap");h.appendTo(e);d=$("<div>");d.css({position:"absolute",top:0,left:0,bottom:0});d.appendTo(h);h=
$("<div>");h.addClass("lapp-square-legend-container");h.appendTo(d);a.draw(f,c,g,h)}}function G(){this.draw=function(a,k,e,f){throw Error("override me");}}function fa(){function a(k,e){var f;this.getJqUi=function(){if(!f){f=$("<div>");f.addClass("lapp-square-legend-item");var c=$("<div>");c.addClass("lapp-square-legend-square");c.css({"background-color":k});var g=$("<div>");g.addClass("lapp-square-legend-text");g.text(e);c.appendTo(f);g.appendTo(f)}return f}}G.call(this);this.draw=function(k,e,f,
c){var g=k.length;k=k.slice(0,g);e=e.slice(0,g);null!=f&&(e.push(f),k.push("rgba(0,0,0,0)"),g++);for(f=0;f<g;f++)(new a(k[f],e[f])).getJqUi().appendTo(c)}}"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.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.ui&&(com.kingdee.bos.qing.lapp.ui=
{});var X=com.kingdee.bos.qing.lapp.ui;X.AbstractDiscreteColorRender=G;X.LappFilter=L;X.LappLongerLegendRender=function(){D.call(this);var a=this.protectedMethod;this.createLegendUi=function(k){return a.createLegendUi(k,null)}};X.LappSquareLegendRender=function(){D.call(this);var a=this,k=this.protectedMethod;this.createLegendUi=function(e,f){if(f instanceof ya)return k.createLegendUi(f,a.getDiscreteColorRender(e))};this.getDiscreteColorRender=function(e){var f=com.kingdee.bos.qing.square.model.SquareModel;
switch(e){case f.ChartType_ProgressCircle:return new M;case f.ChartType_ProgressBar:case f.ChartType_ProgressColumn:return new z;default:return null}}};var ka,ia,x,ja,ea,b,p,P,T,R,da,qa,xa,za,la,ta,ma,v,ya,K,ua,na,aa,ra,Aa,Ba,Ca,sa;(function(){var a=com.kingdee.bos.qing.lapp.component;ka=a.HeadBar;ia=a.SecondaryMenuBar;x=a.SearchBox;ja=a.CheckBar;ea=a.RadioBarGroup;b=a.RadioBar;p=a.RegionSlider;P=a.BottomBar;T=a.BottomButton;R=a.DateSelectBar;da=a.DateSelectBox;qa=a.DateRangeTabSelector;xa=a.DynamicScroller;
za=a.InfoDialog;la=a.Icons;ta=a.Toast;a=com.kingdee.bos.qing.lapp.framework;ma=a.Facade;a=com.kingdee.bos.qing.framework.common;v=a.MultilanguageManager.createPackageAccessor(X);a=com.kingdee.bos.qing.chart.model;ya=a.DiscreteColorLegendModel;a=com.kingdee.bos.qing.lapp.integration;K=a.EnvUtil;ua=a.PostMessageUtils;RemoteFrameworkUtil=a.RemoteFrameworkUtil;a=com.kingdee.bos.qing.common;na=a.Util;aa=a.RelativePeriodModel;a=com.kingdee.bos.qing.core.model;ra=a.AbstractFilter;Aa=a.DiscreteFilter;Ba=
a.ContinuousFilter;Ca=a.ContinuousDateFilter;a=com.kingdee.bos.qing;sa=a.Seer})();X.AbstractLappUi=function(){var a=this,k,e,f,c,g=K.getPortrait(),d,h,n,l,u,y,J,t,w,q,C,S,N=!0,r=!0,E,A,Q="";this.createHeadBar=function(){c=new ka;c.setTitle("");c.setHamburgerMode();c.setBackListener(a.doBack);history.pushState&&window.addEventListener("popstate",function(){a.doBack()});("Android"!=K.getOS()||K.isImmediateExecutionMode())&&history.pushState(null,null,null);c.setHeadBarResizeListener(function(m){oa(m)});
Da(function(){c.setTitle(l.getName());Q&&c.setDescription(Q);Ea()});c.getJqUi().appendTo($(document.body));return c};this.setDescription=function(m){Q=m};this.setFunGetPublishedDataSourceInfo=function(m){t=m};this.isDashboard=function(){};var Ia=function(){var m=(new com.kingdee.bos.qing.lapp.scene.SceneCommonUtil).getUrlParam("sharingTargetId"),B=window.FooterBar;if(B)B.setToken(com.kingdee.bos.qing.lapp.integration.TOKEN),B.setSharingTargetId(m),B.setUserInfo(Fa,q);else{var H=document.createElement("script");
H.src=RemoteFrameworkUtil.createResourceUrl("share/qing-share-exhibition-foot.js");H.onload=function(){B=window.FooterBar;B.setToken(com.kingdee.bos.qing.lapp.integration.TOKEN);B.setSharingTargetId(m);B.setUserInfo(Fa,q)};document.head.appendChild(H)}},Fa=function(){f=window.FooterBar.getJqUi(e);f.appendTo(e)};this.createSecondaryMenuBar=function(){Da(function(){document.title=l.getName();c=new ia;Ea();c.getJqUi().appendTo($(document.body))})};this.doBack=function(){a.protectedDoBack(u)};this.getJqContent=
function(){k||(e=$("<div>"),e.addClass("lapp-modallayer"),e.appendTo($(document.body)),(K.isImmediateExecutionMode()&&!K.isPageAfterRefresh()||K.isPreviewMode())&&e.css("top","0"),k=$("<div>"),k.addClass("lapp-content"),k.appendTo(e),375===screen.width&&812===screen.height&&e.css("bottom","34px"),a.protectedAdaptContent(k));return k};this.protectedDoBack=function(m){throw Error("Override me.");};this.protectedAdaptContent=function(m){};this.setUnloadListener=function(m){u=m};this.setContextGetter=
function(m){y=m};this.setRepaintNeedListener=function(m){J=m};this.createFilterCards=function(m,B,H){C=new L(m,B,H);C.hasFilters()||(N=!1,S&&S.getJqUi().hide())};this.hideHeadBar=function(){oa(0);c&&c.getJqUi().hide()};this.keepPortrait=function(m){g?m():(pa(),setTimeout(m,500))};this.loadHeadBar=function(m){var B=c?!0:!1;B||a.createHeadBar();m(l.getId(),w,q,function(H){l=H;n=l.isFavorite();Ga();va(E,A);B&&(c.getJqUi().show(),c.isMenuShowed()&&c.toggleMenu(),!K.isDingDingOffline()&&l.isLandscape()&&
pa())})};this.getJqModalLayer=function(){return e};var oa=function(m){e&&e.css("top",m);J(m)},Ja=function(m){c instanceof ia&&!c.isHasButtonInMenu()&&setTimeout(function(){oa(m);0==m?c.hide():c.show()},30)},Ea=function(){l&&"-1"!=l.getParentId()&&(l.isFavorite()?(h=c.addButtonInMenu("icon_followed",v.get("followed","\u5df2\u5173\u6ce8"),Ha),n=!0):(h=c.addButtonInMenu("icon_follow",v.get("follow","\u5173\u6ce8"),Ha),n=!1));K.supportShare()&&c.addButtonInMenu("icon_share",v.get("share","\u5206\u4eab"),
Ka);c.addButtonInMenu("icon_about",v.get("about","\u4fe1\u606f"),La);c.addButtonInMenu("icon_refresh",v.get("refresh","\u5237\u65b0"),function(){var m=l.getUrl();m=m+"&analysisId="+sa.getUrlParamValue("analysisId")+"&refresh=true&portrait="+g;var B=sa.getUrlParamValue("time"),H=sa.getUrlParamValue("appType");B&&(m=m+"&time="+B);H&&(m=m+"&appType="+H);"iOS"!=K.getOS()||K.isImmediateExecutionMode()||history.go(-1);K.isImmediateExecutionMode()?location.href=m:location.replace(m)});a.isDashboard()||(K.supportSwitchScreen()&&
(d=g?c.addButtonInMenu("icon_turn_horizontal",v.get("horizontalScreen","\u6a2a\u5c4f"),function(){pa()}):c.addButtonInMenu("icon_turn_vertical",v.get("verticalScreen","\u7ad6\u5c4f"),function(){pa()}),Ma(),!K.isDingDingOffline()&&l.isLandscape()&&pa()),!S&&N&&(S=c.addButtonInMenu("icon_filter",v.get("filter","\u8fc7\u6ee4"),Na)));Ja(0)},Da=function(m){y(function(B,H,O,Y,Z){l=B;w=H;q=O;m();va(E,A);a.isDashboard()||oa(e.css("top"))})},va=function(m,B){E=m;A=B;var H=0,O=0;B&&(H=42);K.isNeedShowCommentUi()&&
(Ia(),H+=48,O+=48);k&&k.css("bottom",H+"px");m&&m.css("bottom",O+"px")},Ma=function(){window.addEventListener("orientationchange",function(){g=!g;d&&(g?(375===screen.width&&812===screen.height&&(document.body.style.height=document.documentElement.clientHeight-44+"px",$(document.body).css("margin-top","44px"),e.css("bottom","78px"),r||($(document.body).css("margin-top","0"),e.css("bottom","34px"),r=!0)),la.background(d.getJqIcon(),"icon_turn_horizontal"),d.getJqText().text(v.get("horizontalScreen",
"\u6a2a\u5c4f"))):(la.background(d.getJqIcon(),"icon_turn_vertical"),d.getJqText().text(v.get("verticalScreen","\u7ad6\u5c4f")),$(document.body).css("margin-top","0"),375===screen.width&&812===screen.height&&(e.css("bottom","34px"),r=!0)));var m=88;c.isMenuShowed&&!c.isMenuShowed()&&(m=44);oa(m);c.getJqUi().appendTo($(document.body))})},pa=function(){K.rotateUI(g,l.getUrl())},Ha=function(){var m=na.decodeParamFromUrl(location.search,"sharingTargetId");ma.setToken(com.kingdee.bos.qing.lapp.integration.TOKEN);
ma.setUserIdAndUserType(w,q);ma.setWithoutDotDo(!0);(new ma("lappAnalysisMgr",function(){n=!n;Ga()},function(){})).updateFavorite(l.getId(),m)},Ga=function(){n?(la.background(h.getJqIcon(),"icon_followed"),h.getJqText().text(v.get("followed","\u5df2\u5173\u6ce8"))):(la.background(h.getJqIcon(),"icon_follow"),h.getJqText().text(v.get("follow","\u5173\u6ce8")))},La=function(){var m=function(B){if(B){var H=a.isDashboard()?v.get("dsbInfo","\u4eea\u8868\u677f\u4fe1\u606f"):v.get("cardInfo","\u6570\u636e\u5361\u7247\u4fe1\u606f"),
O=new za;O.setTitle(H);O.setBottomText(v.get("close","\u5173\u95ed"));O.setHeight(200);O.setContentCreator(function(){var Y=$("<div>");Y.css("overflow","auto");var Z=$("<div>"),wa=30,W=$("<p class=lapp-about-content>");-1!=l.getParentId()&&(W.text(v.get("publishTime","\u53d1\u5e03\u65f6\u95f4\uff1a")+B.getPublishTime()),W.appendTo(Z),wa-=15);W=$("<p class=lapp-about-content>");W.text(v.get("publisher","\u53d1\u5e03\u4eba\uff1a")+B.getPublisher());W.appendTo(Z);a.isDashboard()||(W=$("<p class=lapp-about-content>"),
W.text(v.get("extractDataTime","\u6570\u636e\u66f4\u65b0\u65f6\u95f4\uff1a")+B.getExtractDataTime()),W.appendTo(Z),wa-=15);W=$("<p class=lapp-about-content>");W.text(v.get("loginOrg","\u5f53\u524d\u767b\u5f55\u7ec4\u7ec7\uff1a")+B.getLoginOrgName());W.appendTo(Z);Z.css("margin-top",wa+"px");Z.appendTo(Y);return Y});O.showDialog()}};t&&t(m,l.getPublishId(),na.decodeParamFromUrl(location.search,"tag"));!t&&m()},Ka=function(){if(K.isImmediateExecutionMode())ua.postMessageWhenImmediateExecution(ua.TYPE_CARD_FULLSCREEN_SHARE,
function(O){var Y=window.location.href,Z=na.decodeParamFromUrl(Y,"publishId");Y=na.decodeParamFromUrl(Y,"time");O.iframeId=Z+Y;O.analysisId=l.getId();O.lappUserId=w;O.lappUserType=q});else{var m=window.ShareOuter,B=l.getId();if(m)m.setIsNewShare(!0),m.doShare(B,w,q);else{var H=document.createElement("script");H.src=RemoteFrameworkUtil.createResourceUrl("share/qing-share-outer.js");H.onload=function(){m=window.ShareOuter;m.setIsNewShare(!0);m.doShare(B,w,q)};document.head.appendChild(H)}}375===screen.width&&
812===screen.height&&(r&&(e.css("bottom","34px"),$(document.body).css("margin-top","0")),r=!1)},Na=function(){var m=C.getJqUi();"none"==m.css("display")?(C.updateUi(),m.css("display",""),m.appendTo(e)):C.hide()};this.protectedMethod={createCommentUi:va}};U.create=function(a,k){if(a instanceof Aa)var e=a.isSingleValueMode()?new ba:new ca;else if(a instanceof Ba)e=new ha;else if(a instanceof Ca)e=new I;else throw Error("Modify here.");e.setFilterField(k);e.setFilter(a);return e}})();(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.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.ui&&(com.kingdee.bos.qing.lapp.ui={});var L=com.kingdee.bos.qing.lapp.ui,U,V,ba,ca=L.AbstractLappUi,ha=L.LappSquareLegendRender;(function(){var I=com.kingdee.bos.qing.framework.common;
U=I.MultilanguageManager.createPackageAccessor(L);I=com.kingdee.bos.qing.lapp.integration;V=I.EnvUtil;I=com.kingdee.bos.qing.common;ba=I.Util})();L.LappIntegration=new function(){var I=[],D=!1;this.addPopStateListener=function(M){I.push(M)};this.popPopStateListener=function(){return I.pop()};this.setCardFullscreen=function(M){D=M};this.isCardFullscreen=function(){return D}};L.LappUi=function(){ca.call(this);var I=this,D=this.protectedMethod,M;this.protectedDoBack=function(z){var F=L.LappIntegration.popPopStateListener();
if(F)return V.isDingDingOffline()&&V.hideNavTitle(),F(),history.pushState(null,null,null),!1;if(z)z(function(){V.closeWebView();return!0});else return V.closeWebView(),!0};this.createLegendUi=function(z,F){M||(M=new ha);if(z=M.createLegendUi(z,F))z.appendTo(I.getJqModalLayer()),D.createCommentUi(z,!0)};this.showError=function(z,F,G){return 402202==F?(F=U.get("relationMissing","\u5206\u6790\u5f15\u64ce\u4e00\u8138\u8499\u5708\u3002\u53ef\u80fd\u662f\uff1a\n1\u3001\u60a8\u9519\u8bef\u5730\u4f7f\u7528\u4e86\u4e0d\u540c\u6570\u636e\u8868\u4e2d\u7684\u5b57\u6bb5\uff0c\u5b83\u4eec\u903b\u8f91\u4e0a\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u3002\n2\u3001\u6570\u636e\u8868\u4e4b\u95f4\u7f3a\u5c11\u5173\u8054\u5173\u7cfb\u3002\u53ef\u80fd\u6570\u636e\u6a21\u578b\u4e0d\u5b8c\u6574\uff0c\u8bf7\u5148\u5728\u201c\u6570\u636e\u51c6\u5907\u201d\u4e2d\u5efa\u7acb\u5173\u7cfb\u3002"),
G=$("<div class='lapp-error-prompt'>"),G.text(F),G.appendTo(z),!0):403001==F?(F=U.get("nessaryDimensionMissing","\u7f3a\u5c11\u5fc5\u8981\u7684\u7ef4\u5ea6\uff1a")+G,G=$("<div class='lapp-error-prompt'>"),G.text(F),G.appendTo(z),!0):!1};this.protectedAdaptContent=function(z){z.css("left","11px");z.css("right","11px")}};L.MobileCard=function(){ca.call(this);var I=this,D=this.protectedMethod;this.addListenerToRollin=function(z){if(z){var F=I.getRollOutHandler();F.getRollInState().addStateChangedListener(function(){F.isRollOutEnabled()&&
D.getHeadBar().setBackButtonShow(!0)})}};this.protectedCreateHeadBar=function(){var z=new HeadBar,F=ba.decodeParamFromUrl(location.search,"cardName");z.setTitle(F);z.setHeadBarResizeListener(function(G){D.funContentSizeChange(G)});z.setBackListener(M);history.pushState&&window.addEventListener("popstate",function(){M()});history.pushState(null,null,null);z.getJqUi().appendTo($(document.body));z.setBackButtonShow(!1);return z};var M=function(){var z=I.getRollOutHandler();z.isRollOutEnabled()&&(D.getHeadBar().setBackButtonShow(!1),
z.doRollOut(),history.pushState(null,null,null))}}})();
//qingVersionTag: 20250415