(function(){function L(A,ia,ja,da){var O,ea=!1,V;this.tryAgain=function(){V()};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,J,P){x("getLappAnalysisList",null!=p?{directoryId:b,size:10,page:p,name:J,modifiedTime:P}:{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,J,P){b={model:JSON.stringify(b.toJsonObject()),eid:p,scene:J,webShare:P};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){ea=b};var ka=function(){O=$("<div>");O.addClass("lapp-common-loading-modallayer");var b=$("<div>");b.addClass("lapp-common-loading");b.css("background-image",T.Resource.getIconUrl("core","loading.gif"));b.appendTo(O);O.appendTo($(document.body))},fa=function(b,p,J,P){b=com.kingdee.bos.qing.lapp.integration.RemoteFrameworkUtil.createRemoteUrl(A,
b,Z);p.lappUserId=U;p.lappUserType=Q;p.language=aa();var M=p.customSettings;delete p.customSettings;jQuery.support.cors=!0;M=M?M:{};M.type="POST";M.dataType="json";M.url=b;M.data=p;M.success=function(ba){J(ba)};M.error=function(ba,qa){P(ba.status,qa,ba)};$.ajax(M)},x=function(b,p){ea&&ka();V=function(){ea&&ka();setTimeout(function(){fa(b,p,ha,ca)},1E3)};fa(b,p,ha,ca)},ha=function(b){"number"==typeof b.errorCode?ca(b.errorCode,b.errorMessage):(ia(b.data),O&&O.remove(),da&&da())},ca=function(b,p,J){0==
b&&(p="\u7531\u4e8e\u7f51\u7edc\u95ee\u9898\uff0c\u4e0d\u80fd\u6b63\u5e38\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002");var P=!1;ja&&(P=ja(b,p));P||(R?R(b,p,J):(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,J=new p,J.setOptionType(p.OPTION_OK),J.setMessage(b),J.showDialog()));O&&O.remove();da&&da()};this.protectedMethod={remote:x,setShowBlocking:function(b){ea=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 T=com.kingdee.bos.qing.lapp.framework;T.Facade=L;var R;L.setCustomErrorHandler=function(A){R=A};L.setToken=function(A){};var U,
Q;L.setUserIdAndUserType=function(A,ia){U=A;Q=ia};var Z=!1;L.setWithoutDotDo=function(A){Z=A};var aa=function(){if(null==navigator.userAgent.split("lang:")[1]||""==navigator.userAgent.split("lang:")[1])var A="zh_CN";else A=navigator.userAgent.split("lang:")[1].split(";")[0],"zh-CN"==A?A="zh_CN":"en-CN"==A&&(A="en");return A}})();(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 N=l[C].getAssociatedField(),H=T.create(l[C],N);H.setTitle(N.getText());H.setToggleListener(y);
H.getJqHead().appendTo(g);q||(q=!0,F(H));n.push(H)}};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 P(v.get("cancel","\u53d6\u6d88"),"#777777","#FFFFFF",w),N=new P(v.get("OK",
"\u786e\u5b9a"),"#FFFFFF","#2B87F3",t),H=new J;H.addButton(C);H.addButton(N);H.getJqUi().appendTo(c);q.appendTo(c)}},y=function(q){for(var C=0;C<n.length;C++)n[C].cancelSelectedHead();F(q)},F=function(q){var C=function(N){N?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 T(){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 F=c.getState();
F==ra.STATE_FIELD_ERROR?u(v.get("invalidField","\u65e0\u6548\u7684\u5b57\u6bb5")):F==ra.STATE_PMODEL_UNMATCH?(F=v.get("theFieldDataTypeDoesNotMatchTheFilter","\u5b57\u6bb5\u6570\u636e\u7c7b\u578b\u4e0e\u7b5b\u9009\u5668\u4e0d\u5339\u914d"),u(F)):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 R(){T.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,F=0;F<u.length;F++)y=u[F],y=y.data("userObject"),l&&l(y)};this.protectedMethod.getVisibleSelectableItem=function(){return e}}function U(){R.call(this);var a=this,k=this.protectedMethod,e=new ca;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 Q(){R.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 ha,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 ha;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 Z(){T.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 aa(){T.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")],D=[Y.PERIOD_DAY,Y.PERIOD_WEEK,Y.PERIOD_MONTH];C=new ca;for(var z=0;z<r.length;z++){var K=new b;K.addCheckedListener(N);K.setUserObject(D[z]);K.setText(r[z]);C.addElement(K);K=K.getJqUi();K.css({position:"absolute",left:"5%",right:"5%",top:44*z});K.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 D=C.getElements(),z=0;z<D.length;z++){var K=D[z].getUserObject();if(r==K){D[z].setChecked(!0);break a}}return H(r)};var N=function(r,D){if(D){r=r.getUserObject();D=H(r);var z=w.getRelativePeriodModel();z||(z=new Y,w.setRelativePeriodModel(z));z.setAnchor(null);z.setWhichPeriod(0);z.setPeriod(r);
z.setUpToNow(!1);z.setFromNowOn(0);w.setFullValue(!1);k.setDirty(!0);q(D)}},H=function(r){if(r==Y.PERIOD_DAY){r=new Date;r.setHours(0,0,0,0);var D=new Date;D.setHours(0,0,0,0);return[r,D]}if(r==Y.PERIOD_WEEK)return D=new Date,D.setHours(0,0,0,0),r=D.getTime(),D=D.getUTCDay(),[new Date(r-864E5*D),new Date(r+864E5*(6-D))];if(r==Y.PERIOD_MONTH){var z=new Date;z.setHours(0,0,0,0);r=z.getTime();D=z.getDate();z=(new Date(z.getFullYear(),z.getMonth()+1,0)).getDate();return[new Date(r-864E5*(D-1)),new Date(r+
864E5*(z-D))]}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 ba(u);t=(new M(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&&F()}),c=new qa,c.getJqUi().appendTo(e),c.setDateMs([g,d]),c.setOkListener(y),c.setCancelListener(F));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}},F=function(t){e.remove();e=null}}function A(){var a;this.protectedMethod={createLegendUi:function(k,e){a&&a.remove();a=null;a=$("<div>");a.addClass("lapp-square-legend-bar");e||(e=new ea);e=new da(e);e.setModel(k);e.draw(a);return a}}}function ia(){ja.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 ja(){O.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 da(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 O(){this.draw=function(a,k,e,f){throw Error("override me");}}function ea(){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}}O.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 V=com.kingdee.bos.qing.lapp.ui;V.AbstractDiscreteColorRender=O;V.LappFilter=L;V.LappLongerLegendRender=function(){A.call(this);var a=this.protectedMethod;this.createLegendUi=function(k){return a.createLegendUi(k,null)}};V.LappSquareLegendRender=function(){A.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 ia;case f.ChartType_ProgressBar:case f.ChartType_ProgressColumn:return new ja;default:return null}}};var ka,fa,x,ha,ca,b,p,J,P,M,ba,qa,xa,za,la,ta,ma,v,ya,G,ua,na,Y,ra,Aa,Ba,Ca,sa;(function(){var a=com.kingdee.bos.qing.lapp.component;ka=a.HeadBar;fa=a.SecondaryMenuBar;x=a.SearchBox;ha=a.CheckBar;ca=a.RadioBarGroup;b=a.RadioBar;p=a.RegionSlider;J=a.BottomBar;P=a.BottomButton;M=a.DateSelectBar;ba=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(V);a=com.kingdee.bos.qing.chart.model;ya=a.DiscreteColorLegendModel;a=com.kingdee.bos.qing.lapp.integration;G=a.EnvUtil;ua=a.PostMessageUtils;RemoteFrameworkUtil=a.RemoteFrameworkUtil;a=com.kingdee.bos.qing.common;na=a.Util;Y=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})();V.AbstractLappUi=function(){var a=this,k,e,f,c,g=G.getPortrait(),d,h,n,l,u,y,F,t,w,q,C,N,H=!0,r=!0,D,z,K="";this.createHeadBar=function(){c=new ka;c.setTitle("");c.setHamburgerMode();c.setBackListener(a.doBack);history.pushState&&window.addEventListener("popstate",function(){a.doBack()});("Android"!=G.getOS()||G.isImmediateExecutionMode())&&history.pushState(null,null,null);c.setHeadBarResizeListener(function(m){oa(m)});Da(function(){c.setTitle(l.getName());
K&&c.setDescription(K);Ea()});c.getJqUi().appendTo($(document.body));return c};this.setDescription=function(m){K=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 E=document.createElement("script");E.src=RemoteFrameworkUtil.createResourceUrl("share/qing-share-exhibition-foot.js");
E.onload=function(){B=window.FooterBar;B.setToken(com.kingdee.bos.qing.lapp.integration.TOKEN);B.setSharingTargetId(m);B.setUserInfo(Fa,q)};document.head.appendChild(E)}},Fa=function(){f=window.FooterBar.getJqUi(e);f.appendTo(e)};this.createSecondaryMenuBar=function(){Da(function(){document.title=l.getName();c=new fa;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)),
(G.isImmediateExecutionMode()&&!G.isPageAfterRefresh()||G.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){F=m};this.createFilterCards=function(m,
B,E){C=new L(m,B,E);C.hasFilters()||(H=!1,N&&N.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(E){l=E;n=l.isFavorite();Ga();va(D,z);B&&(c.getJqUi().show(),c.isMenuShowed()&&c.toggleMenu(),!G.isDingDingOffline()&&l.isLandscape()&&pa())})};this.getJqModalLayer=function(){return e};var oa=function(m){e&&e.css("top",m);F(m)},
Ja=function(m){c instanceof fa&&!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));G.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"),E=sa.getUrlParamValue("appType");B&&(m=m+"&time="+B);E&&(m=m+"&appType="+E);"iOS"!=G.getOS()||G.isImmediateExecutionMode()||history.go(-1);G.isImmediateExecutionMode()?location.href=m:location.replace(m)});a.isDashboard()||(G.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(),!G.isDingDingOffline()&&l.isLandscape()&&pa()),!N&&H&&(N=c.addButtonInMenu("icon_filter",v.get("filter","\u8fc7\u6ee4"),Na)));Ja(0)},Da=function(m){y(function(B,E,I,W,X){l=B;w=E;q=I;m();va(D,z);a.isDashboard()||oa(e.css("top"))})},va=function(m,B){D=m;z=B;var E=0,I=0;B&&(E=42);G.isNeedShowCommentUi()&&(Ia(),E+=48,I+=48);k&&k.css("bottom",E+"px");m&&m.css("bottom",I+"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(){G.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 E=a.isDashboard()?v.get("dsbInfo","\u4eea\u8868\u677f\u4fe1\u606f"):v.get("cardInfo","\u6570\u636e\u5361\u7247\u4fe1\u606f"),I=new za;I.setTitle(E);I.setBottomText(v.get("close","\u5173\u95ed"));I.setHeight(200);I.setContentCreator(function(){var W=$("<div>");
W.css("overflow","auto");var X=$("<div>"),wa=30,S=$("<p class=lapp-about-content>");-1!=l.getParentId()&&(S.text(v.get("publishTime","\u53d1\u5e03\u65f6\u95f4\uff1a")+B.getPublishTime()),S.appendTo(X),wa-=15);S=$("<p class=lapp-about-content>");S.text(v.get("publisher","\u53d1\u5e03\u4eba\uff1a")+B.getPublisher());S.appendTo(X);a.isDashboard()||(S=$("<p class=lapp-about-content>"),S.text(v.get("extractDataTime","\u6570\u636e\u66f4\u65b0\u65f6\u95f4\uff1a")+B.getExtractDataTime()),S.appendTo(X),wa-=
15);S=$("<p class=lapp-about-content>");S.text(v.get("loginOrg","\u5f53\u524d\u767b\u5f55\u7ec4\u7ec7\uff1a")+B.getLoginOrgName());S.appendTo(X);X.css("margin-top",wa+"px");X.appendTo(W);return W});I.showDialog()}};t&&t(m,l.getPublishId(),na.decodeParamFromUrl(location.search,"tag"));!t&&m()},Ka=function(){if(G.isImmediateExecutionMode())ua.postMessageWhenImmediateExecution(ua.TYPE_CARD_FULLSCREEN_SHARE,function(I){var W=window.location.href,X=na.decodeParamFromUrl(W,"publishId");W=na.decodeParamFromUrl(W,
"time");I.iframeId=X+W;I.analysisId=l.getId();I.lappUserId=w;I.lappUserType=q});else{var m=window.ShareOuter,B=l.getId();if(m)m.setIsNewShare(!0),m.doShare(B,w,q);else{var E=document.createElement("script");E.src=RemoteFrameworkUtil.createResourceUrl("share/qing-share-outer.js");E.onload=function(){m=window.ShareOuter;m.setIsNewShare(!0);m.doShare(B,w,q)};document.head.appendChild(E)}}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}};T.create=function(a,k){if(a instanceof Aa)var e=a.isSingleValueMode()?new U:new Q;else if(a instanceof Ba)e=new Z;else if(a instanceof Ca)e=new aa;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,T=L.AbstractLappUi;var R=com.kingdee.bos.qing.lapp.integration.EnvUtil;L.LappIntegration=
new function(){var U=[],Q=[],Z=!1,aa;this.addPopStateListener=function(A){U.push(A)};this.popPopStateListener=function(){return U.pop()};this.addScrollListener=function(A){Q.push(A)};this.setCardFullscreen=function(A){Z=A};this.isCardFullscreen=function(){return Z};this.setResizeListener=function(A){aa=A};this.fireResizeListener=function(){aa&&aa()};$(document.body).on("touchmove scroll",function(){for(var A=0;A<Q.length;A++)Q[A]()})};L.LappUi=function(){T.call(this);this.protectedDoBack=function(U){var Q=
L.LappIntegration.popPopStateListener();if(Q)R.isDingDingOffline()&&R.hideNavTitle(),Q(),history.pushState(null,null,null);else if(U)U(function(){R.closeWebView();return!0});else return R.closeWebView(),!0};this.isDashboard=function(){return!0}}})();
//qingVersionTag: 20250415