/*! v3.12.0-56-ga2ab189ff */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.IzendaSynergy=t():e.IzendaSynergy=t()}("undefined"!=typeof self?self:this,function(){return webpackJsonpIzendaSynergy([0],[,,,,function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y;r=a(11).compose,n=a(11).toClass,i=a(11).withContext,o=a(9).observer,l=a(64).withRouter,s=a(1737),u=a(1746),d=a(1748),c=a(1749),p=a(1),f=p.forEach,h=p.isObject,m=p.isNil,g=p.pull,E=p.head,y=p.isPlainObject,e.exports=function(){var e,t,a=Array.prototype.slice.call(arguments);f(function(r){h(r)&&(m(r.permissionKeys)||(e=d.bind(null,r.permissionKeys,r.onAuth),a=g(r,a)),m(r.licenseKey)||(t=c.bind(null,r.licenseKey,r.onLicense),a=g(r,a)))},a);var p=E(a),v=p&&y(p)?a.slice(1):a,T=[s,l,u],_=p&&y(p)&&p.toClass?[n]:[],S=p&&y(p)&&p.context?[i(p.context.childContextTypes,p.context.getChildContext)]:[],C=_.concat(S).concat(T).concat(v).concat([o]);return m(e)||(C=C.concat(e)),m(t)||(C=C.concat(t)),r.apply(null,C)}},,,,,,,,function(e,t,a){"use strict";!function(){var t=a(42),r=a(43),n=a(1),i=n.get,o=n.getOr;function l(){this.activeLanguage=r.DefaultLanguage,this.languages={}}l.prototype.registerLanguage=function(e,a){t(e,"Invalid data"),t(a,"Language must be set"),this.languages[a]=e},l.prototype.setActiveLanguage=function(e){t(e,"Language is not valid"),!!i(this.activeLanguage,this.languages)&&(this.activeLanguage=e)},l.prototype.getText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeLanguage,a=i(t,this.languages);return o("",e,a)},l.prototype.getDefaultLanguage=function(){return r.DefaultLanguage};var s=new l;e.exports=s}()},,,function(e,t,a){"use strict";var r,n=a(14),i=(r=n)&&r.__esModule?r:{default:r};!function(){var t=a(1).omit,r=a(0),n=a(10),o=l("izenda-GridLayout");function l(e){return function(a){var o=n(e,a.className),l=t("className",a);return r.createElement("div",(0,i.default)({className:o},l),a.children)}}o.displayName="GridLayout",o.Row=l("izenda-GridLayout-Row"),o.Row.displayName="GridLayout.Row",o.FullRow=l("izenda-GridLayout-Row_full"),o.FullRow.displayName="GridLayout.FullRow",o.Col=function(e){var a="izenda-GridLayout-Col"+(e.cols||12),r=e.xs&&"izenda-GridLayout-Col"+e.xs+"-xs",i=e.offset&&"izenda-GridLayout-ColOffset"+e.offset,o=n(a,r,i),s=t(["cols","offset","xs"],e);return l(o)(s)},o.Col.displayName="GridLayout.Col",e.exports=o}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b,N,A,R,O,I=V(a(17)),D=V(a(23)),P=V(a(2)),L=V(a(3)),M=a(1),F=a(5),k=V(a(193)),x=V(a(587)),w=V(a(12)),B=a(109),U=V(a(302)),z=V(a(588));function V(e){return e&&e.__esModule?e:{default:e}}function G(e,t,a,r){a&&(0,I.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function H(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Y=new(r=(0,F.action)("setUpdateNotifications"),n=(0,F.action)("resetUpdateNotifications"),i=(0,F.action)("setTenantId"),o=(0,F.action)("setDisableSettingLevel"),l=(0,F.action)("setCurrentUser"),s=function(){function e(){(0,P.default)(this,e),G(this,"detectChangeCount",u,this),G(this,"detectChangeVisibleConnection",d,this),G(this,"tenantId",c,this),G(this,"disableSystemSetting",p,this),G(this,"onlyShowTenant",f,this),G(this,"checkDirtyFunction",h,this),G(this,"onOkDirtyForm",m,this),G(this,"systemError",g,this),G(this,"systemMode",E,this),G(this,"isMobile",y,this),G(this,"needLogin",v,this),G(this,"currentUser",T,this),G(this,"provisioningStatus",_,this),G(this,"exportingLoadings",S,this),G(this,"hasSetupDatabase",C,this),G(this,"expiredLicense",b,this),G(this,"googleApiKey",N,this),G(this,"updateNotifications",A,this),G(this,"unReadNotificationsCount",R,this),G(this,"notifications",O,this),this.defaultDirtyMessage="COMMON_MESSAGES_CONFIRM_CHANGES_LOST",this.dirtyMessage=this.defaultDirtyMessage,this.silentUpdate=!1}return(0,L.default)(e,[{key:"resetCheckDirtyFunction",value:function(){this.setCheckDirtyFunction(null,null)}},{key:"setCheckDirtyFunction",value:function(e,t,a){this.checkDirtyFunction=e||null,this.onOkDirtyForm=t||null,this.dirtyMessage=(0,M.isNil)(a)?this.defaultDirtyMessage:a}},{key:"getDetectChangeVisibleConnection",value:function(){return this.detectChangeVisibleConnection}},{key:"increaseDetectChangeVisibleConnection",value:function(){return this.detectChangeVisibleConnection++}},{key:"getDetectChangeCount",value:function(){return this.detectChangeCount}},{key:"increaseDetectChangeCount",value:function(){return this.detectChangeCount++}},{key:"getTenantId",value:function(){return this.tenantId}},{key:"setUpdateNotifications",value:function(){this.updateNotifications=!0}},{key:"resetUpdateNotifications",value:function(){this.updateNotifications=!1}},{key:"setTenantId",value:function(e,t,a){return this.keepState=!!t,this.silentUpdate=!!a,this.tenantId=e}},{key:"setSystemError",value:function(e){this.systemError=e}},{key:"resetSystemError",value:function(){this.systemError=null}},{key:"setMobileVersion",value:function(e){this.isMobile=e}},{key:"getMobileVersion",value:function(){return this.isMobile}},{key:"updateDisableSystemSetting",value:function(){this.disableSystemSetting=!0}},{key:"enableSystemSetting",value:function(){this.disableSystemSetting=!1}},{key:"setDisableSettingLevel",value:function(e){this.disableSystemSetting=e,e&&(this.setTenantId(null),U.default.removeSelectedTenant())}},{key:"setNeedLogin",value:function(e){this.needLogin=e}},{key:"setCurrentUser",value:function(e){e=e||{},this.setTenantId(e.tenantId),this.currentUser.populate(e),e.cultureName&&w.default.setActiveLanguage(e.cultureName)}},{key:"setProvisioningStatus",value:function(e){this.provisioningStatus=e}},{key:"resetExportingLoadings",value:function(){this.exportingLoadings.clear()}},{key:"updateLicenseStatus",value:function(e){this.expiredLicense=e}},{key:"setSystemMode",value:function(e){this.systemMode=e}},{key:"setGoogleApiKey",value:function(e){this.googleApiKey=e}},{key:"setOpenExportManagerStatus",value:function(e){e?z.default.set("openExportManager",!0):z.default.remove("openExportManager")}},{key:"getOpenExportManagerStatus",value:function(){return!!z.default.get("openExportManager")}},{key:"isDirty",get:function(){return this.checkDirtyFunction&&this.checkDirtyFunction()}},{key:"hideSystemLevel",get:function(){return this.systemMode===k.default.SYSTEM_MODE||!this.currentUser.systemAdmin}},{key:"canProvisioning",get:function(){return this.provisioningStatus===B.PROVISIONING_STATUS.NOT_STARTED||this.provisioningStatus===B.PROVISIONING_STATUS.ERROR}},{key:"isMapDataAvailable",get:function(){return this.provisioningStatus===B.PROVISIONING_STATUS.SUCCESS}},{key:"isSingleTenantMode",get:function(){return this.systemMode===k.default.TENANT_MODE}}]),e}(),u=H(s.prototype,"detectChangeCount",[F.observable],{enumerable:!0,initializer:function(){return 0}}),d=H(s.prototype,"detectChangeVisibleConnection",[F.observable],{enumerable:!0,initializer:function(){return 0}}),c=H(s.prototype,"tenantId",[F.observable],{enumerable:!0,initializer:function(){return null}}),p=H(s.prototype,"disableSystemSetting",[F.observable],{enumerable:!0,initializer:function(){return!1}}),f=H(s.prototype,"onlyShowTenant",[F.observable],{enumerable:!0,initializer:function(){return!1}}),h=H(s.prototype,"checkDirtyFunction",[F.observable],{enumerable:!0,initializer:function(){return null}}),m=H(s.prototype,"onOkDirtyForm",[F.observable],{enumerable:!0,initializer:function(){return null}}),g=H(s.prototype,"systemError",[F.observable],{enumerable:!0,initializer:function(){return null}}),E=H(s.prototype,"systemMode",[F.observable],{enumerable:!0,initializer:function(){return k.default.SYSTEM_MODE}}),y=H(s.prototype,"isMobile",[F.observable],{enumerable:!0,initializer:function(){return!1}}),v=H(s.prototype,"needLogin",[F.observable],{enumerable:!0,initializer:function(){return!1}}),T=H(s.prototype,"currentUser",[F.observable],{enumerable:!0,initializer:function(){return new x.default}}),_=H(s.prototype,"provisioningStatus",[F.observable],{enumerable:!0,initializer:function(){return B.PROVISIONING_STATUS.NOT_STARTED}}),S=H(s.prototype,"exportingLoadings",[F.observable],{enumerable:!0,initializer:function(){return[]}}),C=H(s.prototype,"hasSetupDatabase",[F.observable],{enumerable:!0,initializer:function(){return!0}}),b=H(s.prototype,"expiredLicense",[F.observable],{enumerable:!0,initializer:function(){return!1}}),N=H(s.prototype,"googleApiKey",[F.observable],{enumerable:!0,initializer:function(){return null}}),A=H(s.prototype,"updateNotifications",[F.observable],{enumerable:!0,initializer:function(){return!1}}),R=H(s.prototype,"unReadNotificationsCount",[F.observable],{enumerable:!0,initializer:function(){return null}}),O=H(s.prototype,"notifications",[F.observable],{enumerable:!0,initializer:function(){return[]}}),H(s.prototype,"isDirty",[F.computed],(0,D.default)(s.prototype,"isDirty"),s.prototype),H(s.prototype,"hideSystemLevel",[F.computed],(0,D.default)(s.prototype,"hideSystemLevel"),s.prototype),H(s.prototype,"canProvisioning",[F.computed],(0,D.default)(s.prototype,"canProvisioning"),s.prototype),H(s.prototype,"isMapDataAvailable",[F.computed],(0,D.default)(s.prototype,"isMapDataAvailable"),s.prototype),H(s.prototype,"isSingleTenantMode",[F.computed],(0,D.default)(s.prototype,"isSingleTenantMode"),s.prototype),H(s.prototype,"setUpdateNotifications",[r],(0,D.default)(s.prototype,"setUpdateNotifications"),s.prototype),H(s.prototype,"resetUpdateNotifications",[n],(0,D.default)(s.prototype,"resetUpdateNotifications"),s.prototype),H(s.prototype,"setTenantId",[i],(0,D.default)(s.prototype,"setTenantId"),s.prototype),H(s.prototype,"setDisableSettingLevel",[o],(0,D.default)(s.prototype,"setDisableSettingLevel"),s.prototype),H(s.prototype,"setCurrentUser",[l],(0,D.default)(s.prototype,"setCurrentUser"),s.prototype),s);t.default=Y,e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(12)),n=l(a(49)),i=l(a(40)),o=a(1);function l(e){return e&&e.__esModule?e:{default:e}}var s=/^[^/<>&]*$/,u={link:"link",linknewwindow:"linknewwindow",embedded:"embedded",popup:"popup"},d={NUMERIC:"Numeric",TEXT:"Text",DATE_TIME:"Datetime",TIME:"Time",IMAGE:"Image",BOOLEAN:"Boolean",MONEY:"Money",CUSTOM:"CustomFormat",LOB:"Lob",XML:"XML",JSON:"JSON"},c={REPORT:0,TEMPLATE:1},p=[{id:c.REPORT,get name(){return r.default.getText("COMMON_LABEL_REPORTS")},value:"Report"},{id:c.TEMPLATE,get name(){return r.default.getText("COMMON_LABEL_TEMPLATES")},value:"Template"}],f={NONE:"none",FILTER:"filter",FIELD:"field",VALUE:"value",DATE_TIME:"datetime",DATE:"date",TIME:"time"},h=function(){return[{prop:"querySource",nodeType:"QuerySource",expand:arguments.length>0&&void 0!==arguments[0]&&arguments[0],children:[{prop:"fields",nodeType:"Field"}]}]};t.default={COLUMN_NAME_PREFIX:{ORIGINAL_VALUE:"org_",PERCENTAGE_VALUE:"percentage_"},NO_SORT_DATA_TYPES:[d.JSON,d.LOB,d.IMAGE,d.XML],FILTER_URL:{OVERIDE_MASTER_REPORT_FILTER:{REGEX:/^mp(\d+)value$/,FORMAT:"mp{0}value"},OVERIDE_REPORT_FILTER:{REGEX:/^p(\d+)value$/,FORMAT:"p{0}value"},SUB_REPORT_FIELD_MAPPING_KEY:{FORMAT:"fm{0}_{1}"},OVERIDE_MASTER_REPORT_USE_USER_LOOKUP:{REGEX:/^mp(\d+)lookup$/,FORMAT:"mp{0}lookup"}},DATA_OBJECT_SWAP_KEYS:[["joinDataSourceCategoryId","foreignDataSourceCategoryId"],["JoinDataSourceCategoryName","foreignDataSourceCategoryName"],["joinQuerySourceId","foreignQuerySourceId"],["joinQuerySourceName","foreignQuerySourceName"],["joinFieldId","foreignFieldId"],["joinFieldName","foreignFieldName"]],get UNCATEGORIZED(){return r.default.getText("REPORTDESIGNER_LABEL_UNCATEGORIZED")},ADVANCED:1,SIMPLE:0,BUNDLE:{TOOLTIP:{FILTER:{get M07(){return r.default.getText("REPORTDESIGNER_FILTER_TOOLTIP")}}},CRITERIA_LIST_SIMPLE_MODE:[{value:"All",get label(){return r.default.getText("COMMON_LABEL_ALL")}},{value:"Category",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_SIMPLE_MODE_CATEGORY")}},{value:"DatabaseName",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_SIMPLE_MODE_DATABASE_NAME")}},{value:"DataObject",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_SIMPLE_MODE_DATA_OBJECT")}},{value:"DataObjectType",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_SIMPLE_MODE_DATA_OBJECT_TYPE")}},{value:"SchemaName",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_SIMPLE_MODE_SCHEMA_NAME")}}],CRITERIA_LIST_ADVANCED_MODE:[{value:"All",get label(){return r.default.getText("COMMON_LABEL_ALL")}},{value:"Alias",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_ADVANCED_MODE_JOIN_ALIAS")}},{value:"JoinDataSourceCategoryName",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_ADVANCED_MODE_CATEGORY")}},{value:"JoinQuerySourceName",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_ADVANCED_MODE_DATA_OBJECT")}},{value:"JoinFieldName",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_ADVANCED_MODE_JOIN_FIELD")}},{value:"ForeignQuerySourceName",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_ADVANCED_MODE_FOREIGN_DATA_OBJECT")}},{value:"ForeignFieldName",get label(){return r.default.getText("REPORTDESIGNER_LABEL_CRITERIA_LIST_ADVANCED_MODE_FIELD")}}],SORT_ORDERS:{Category:"DESC"},SORT_ORDERS_ADVANCED_MODE:{Alias:"DESC",JoinType:"",Operator:"",JoinDataSourceCategoryId:"",JoinDataSourceCategoryName:"",JoinQuerySourceName:"",JoreignDataSourceCategoryId:"",JoreignDataSourceCategoryName:"",JoreignQuerySourceName:""},MESSAGE:{get CANCEL(){return r.default.getText("COMMON_MESSAGES_CONFIRM_CHANGES_LOST")},get SAVE(){return r.default.getText("COMMON_MESSAGES_CONFIRM_SAVE")},get DELETE_RELATIONSHIP(){return r.default.getText("REPORTDESIGNER_MESSAGE_CONFIRM_DELETE_RELATIONSHIP")},get DELETE_RELATIONSHIP_WITH_KEYJOIN(){return r.default.getText("REPORTDESIGNER_MESSAGE_CONFIRM_DELETE_RELATIONSHIP_WITH_KEYJOIN")},get DELETE_KEYJOIN(){return r.default.getText("REPORTDESIGNER_MESSAGE_DELETE_KEYJOIN")},get ALLOW_NULL_TOOLTIP(){return r.default.getText("REPORTDESIGNER_ALLOW_NULL_TOOLTIP")},get M01(){return r.default.getText("REPORTDESIGNER_MESSAGE_COLUMN_NAME_REQUIRED")},get M02(){return r.default.getText("REPORTDESIGNER_MESSAGE_FIELD_CANNOT_BE_FILTER")},get M03(){return r.default.getText("REPORTDESIGNER_MESSAGE_CANNOT_DROP_RELATIONSHIP_IN_KEYJOIN_DEST")},get M04(){return r.default.getText("REPORTDESIGNER_MESSAGE_CANNOT_DROP_KEYJOIN_HAVING_CROSS_JOIN")},get M06(){return r.default.getText("REPORTDESIGNER_MESSAGE_VALID_SQL_STATEMENT")},get M08(){return r.default.getText("REPORTDESIGNER_MESSAGE_FIELD_NAME_EXISTS")},get M09(){return r.default.getText("REPORTDESIGNER_MESSAGE_FIELD_NAME_EXISTS_IN_REPORT_PART")},get M10(){return r.default.getText("REPORTDESIGNER_MESSAGE_CONFIRM_SAVE_FILTER")},get M11(){return r.default.getText("REPORTDESIGNER_MESSAGE_ADJUST_NUMBER_DATA_OBJECTS")},get M16(){return r.default.getText("REPORTDESIGNER_MESSAGE_DATA_SOURCES_EXCEEDED_LIMITATION")},get SIMPLE_UNSELECT(){return r.default.getText("REPORTDESIGNER_MESSAGE_SIMPLE_UNSELECT")},get ADVANCED_UNSELECT(){return r.default.getText("REPORTDESIGNER_MESSAGE_ADVANCED_UNSELECT")},get SELECT_CROSS_JOIN(){return r.default.getText("REPORTDESIGNER_MESSAGE_SELECT_CROSS_JOIN")},get CHANGE_JOIN_TYPE(){return r.default.getText("REPORTDESIGNER_MESSAGE_CHANGE_JOIN_TYPE")},get FIELDS_EXCEEDED_LIMITATION(){return r.default.getText("REPORTDESIGNER_MESSAGE_FIELDS_IN_REPORT_PART_EXCEEDED_LIMITATION")},get OPEN_SUB_REPORT_WARNING(){return r.default.getText("OPEN_SUB_REPORT_WARNING_MESSAGE")},get CANNOT_ADD_RUNNIG_FILTER(){return r.default.getText("REPORT_CANNOT_ADD_RUNNING_FILTER")},get CANNOT_ADD_REPEATER_RUNNING_FIELD(){return r.default.getText("FORM_CANNOT_ADD_REPEATER_RUNNING_FIELD")},get FILTER_WILL_BE_IGNORED(){return r.default.getText("UNSPECIFIED_FILTER_WILL_BE_IGNORED")}},DEFAULT_CRITERIA:"All"},TABLE_CONFIG:{Table:{rowsCount:10,rowHeight:60,headerHeight:60,width:1400,height:362,maxHeight:800},Column:{width:100}},ICON:{Table:"icon-table","Stored Procedure":"icon-sp",Function:"icon-fx-table",Relationship:"icon-relationship",Schema:"icon-schema",View:"icon-view-table",Numeric:"icon-type-no",Text:"icon-type-text",Datetime:"icon-type-calendar",Image:"icon-picture",Boolean:"icon-type-yn",Money:"icon-money",Lob:"icon-type-lob",Time:"icon-clock"},TABLE_DEF:{SIMPLE_MODE:{category:{columnKey:"Category",width:250,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_SIMPLE_MODE_CATEGORY")},sortable:!0},dbName:{columnKey:"DatabaseName",width:250,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_SIMPLE_MODE_DATABASE_NAME")},sortable:!0},schemaName:{columnKey:"SchemaName",width:250,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_SIMPLE_MODE_SCHEMA_NAME")},sortable:!0},dataObject:{columnKey:"DataObject",width:250,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_SIMPLE_MODE_DATA_OBJECT")},sortable:!0},dataObjectType:{columnKey:"DataObjectType",width:250,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_SIMPLE_MODE_DATA_OBJECT_TYPE")},sortable:!0}},ADVANCED_MODE:{parentId:{key:"id"},alias:{key:"alias",width:100,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_ADVANCED_MODE_ALIAS")}},joinType:{key:"joinType",width:100,get title(){return r.default.getText("COMMON_LABEL_JOIN_TYPE")}},operator:{key:"operator",width:100,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_ADVANCED_MODE_OPERATOR")}},category:{key:"joinDataSourceCategoryId",labelKey:"joinDataSourceCategoryName",width:100,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_ADVANCED_MODE_CATEGORY")}},dataObject:{key:"joinQuerySourceId",labelKey:"joinQuerySourceName",width:100,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_ADVANCED_MODE_DATA_OBJECT")}},selectedJoinSourceAlias:{key:"selectedJoinSourceAlias",width:100,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_ADVANCED_MODE_SELECTED_JOIN_SOURCE_ALIAS")},sortable:!0},joinField:{key:"joinFieldId",labelKey:"joinFieldName",width:100,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_ADVANCED_MODE_JOIN_FIELD")}},comparisonOperator:{width:100,align:"center",key:"comparisonOperator"},foreignCategory:{key:"foreignDataSourceCategoryId",labelKey:"foreignDataSourceCategoryName",width:100,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_ADVANCED_MODE_FOREIGN_CATEGORY")}},foreignDataObject:{key:"selectedForeignAlias",labelKey:"foreignQuerySourceName",width:110,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_ADVANCED_MODE_FOREIGN_DATA_OBJECT")}},selectedForeignSourceAlias:{key:"selectedForeignSourceAlias",width:100,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_ADVANCED_MODE_FOREIGN_SOURCE_ALIAS")},sortable:!0},foreignJoinfield:{key:"foreignFieldId",labelKey:"foreignFieldName",width:100,get title(){return r.default.getText("REPORTDESIGNER_LABEL_TABLE_DEF_ADVANCED_MODE_FOREIGN_FIELD_NAME")}},action:{width:80,get title(){return r.default.getText("COMMON_LABEL_ACTION")}}}},DEFAULT_COMPARISION_OPERATOR:"= (Field)",DEFAULT_COMPARISION_FILTER_OPERATOR:"= (Filter)",COMPARISION_OPTIONS:[{label:r.default.getText("COMPARISION_IS_NULL"),value:"IS NULL",type:f.NONE,DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.IMAGE,d.BOOLEAN,d.MONEY,d.LOB,d.XML,d.JSON]},{label:r.default.getText("COMPARISION_IS_NOT_NULL"),value:"IS NOT NULL",type:f.NONE,DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.IMAGE,d.BOOLEAN,d.MONEY,d.LOB,d.XML,d.JSON]},{label:r.default.getText("COMPARISION_IS_BLANK"),value:"IS BLANK",type:f.NONE,DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.IMAGE,d.BOOLEAN,d.MONEY,d.LOB,d.XML,d.JSON]},{label:r.default.getText("COMPARISION_IS_NOT_BLANK"),value:"IS NOT BLANK",type:f.NONE,DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.IMAGE,d.BOOLEAN,d.MONEY,d.LOB,d.XML,d.JSON]},{label:"= ("+r.default.getText("COMPARISION_FILTER")+")",value:"= (Filter)",type:f.FILTER,group:r.default.getText("COMPARISION_FILTER_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.BOOLEAN,d.MONEY]},{label:"= ("+r.default.getText("COMPARISION_FIELD")+")",value:"= (Field)",type:f.FIELD,group:r.default.getText("COMPARISION_FIELD_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.IMAGE,d.BOOLEAN,d.MONEY,d.LOB,d.XML,d.JSON],forRelationship:!0},{label:"<> ("+r.default.getText("COMPARISION_FIELD")+")",value:"<> (Field)",type:f.FIELD,group:r.default.getText("COMPARISION_FIELD_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.IMAGE,d.BOOLEAN,d.MONEY,d.LOB,d.XML,d.JSON],forRelationship:!0},{label:"> ("+r.default.getText("COMPARISION_FIELD")+")",value:"> (Field)",type:f.FIELD,group:r.default.getText("COMPARISION_FIELD_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.IMAGE,d.BOOLEAN,d.MONEY,d.LOB,d.XML,d.JSON],forRelationship:!0},{label:"< ("+r.default.getText("COMPARISION_FIELD")+")",value:"< (Field)",type:f.FIELD,group:r.default.getText("COMPARISION_FIELD_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.IMAGE,d.BOOLEAN,d.MONEY,d.LOB,d.XML,d.JSON],forRelationship:!0},{label:">= ("+r.default.getText("COMPARISION_FIELD")+")",value:">= (Field)",type:f.FIELD,group:r.default.getText("COMPARISION_FIELD_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.IMAGE,d.BOOLEAN,d.MONEY,d.LOB,d.XML,d.JSON],forRelationship:!0},{label:"<= ("+r.default.getText("COMPARISION_FIELD")+")",value:"<= (Field)",type:f.FIELD,group:r.default.getText("COMPARISION_FIELD_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.DATE_TIME,d.TIME,d.IMAGE,d.BOOLEAN,d.MONEY,d.LOB,d.XML,d.JSON],forRelationship:!0},{label:"=",value:"=",type:f.VALUE,group:r.default.getText("COMPARISION_VALUE_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.MONEY]},{label:"<>",value:"<>",type:f.VALUE,group:r.default.getText("COMPARISION_VALUE_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.MONEY]},{label:">",value:">",type:f.VALUE,group:r.default.getText("COMPARISION_VALUE_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.MONEY]},{label:"<",value:"<",type:f.VALUE,group:r.default.getText("COMPARISION_VALUE_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.MONEY]},{label:">=",value:">=",type:f.VALUE,group:r.default.getText("COMPARISION_VALUE_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.MONEY]},{label:"<=",value:"<=",type:f.VALUE,group:r.default.getText("COMPARISION_VALUE_COMPARISON"),DATA_TYPES:[d.NUMERIC,d.TEXT,d.MONEY]},{label:"= ("+r.default.getText("COMPARISION_DATE_AND_TIME")+")",value:"= (Date & Time)",type:f.DATE_TIME,group:r.default.getText("COMPARISION_DATE_AND_TIME"),DATA_TYPES:[d.DATE_TIME]},{label:"<> ("+r.default.getText("COMPARISION_DATE_AND_TIME")+")",value:"<> (Date & Time)",type:f.DATE_TIME,group:r.default.getText("COMPARISION_DATE_AND_TIME"),DATA_TYPES:[d.DATE_TIME]},{label:"> ("+r.default.getText("COMPARISION_DATE_AND_TIME")+")",value:"> (Date & Time)",type:f.DATE_TIME,group:r.default.getText("COMPARISION_DATE_AND_TIME"),DATA_TYPES:[d.DATE_TIME]},{label:"< ("+r.default.getText("COMPARISION_DATE_AND_TIME")+")",value:"< (Date & Time)",type:f.DATE_TIME,group:r.default.getText("COMPARISION_DATE_AND_TIME"),DATA_TYPES:[d.DATE_TIME]},{label:">= ("+r.default.getText("COMPARISION_DATE_AND_TIME")+")",value:">= (Date & Time)",type:f.DATE_TIME,group:r.default.getText("COMPARISION_DATE_AND_TIME"),DATA_TYPES:[d.DATE_TIME]},{label:"<= ("+r.default.getText("COMPARISION_DATE_AND_TIME")+")",value:"<= (Date & Time)",type:f.DATE_TIME,group:r.default.getText("COMPARISION_DATE_AND_TIME"),DATA_TYPES:[d.DATE_TIME]},{label:"= ("+r.default.getText("COMPARISION_DATE")+")",value:"= (Date)",type:f.DATE,group:r.default.getText("COMPARISION_DATE"),DATA_TYPES:[d.DATE_TIME]},{label:"<> ("+r.default.getText("COMPARISION_DATE")+")",value:"<> (Date)",type:f.DATE,group:r.default.getText("COMPARISION_DATE"),DATA_TYPES:[d.DATE_TIME]},{label:"> ("+r.default.getText("COMPARISION_DATE")+")",value:"> (Date)",type:f.DATE,group:r.default.getText("COMPARISION_DATE"),DATA_TYPES:[d.DATE_TIME]},{label:"< ("+r.default.getText("COMPARISION_DATE")+")",value:"< (Date)",type:f.DATE,group:r.default.getText("COMPARISION_DATE"),DATA_TYPES:[d.DATE_TIME]},{label:">= ("+r.default.getText("COMPARISION_DATE")+")",value:">= (Date)",type:f.DATE,group:r.default.getText("COMPARISION_DATE"),DATA_TYPES:[d.DATE_TIME]},{label:"<= ("+r.default.getText("COMPARISION_DATE")+")",value:"<= (Date)",type:f.DATE,group:r.default.getText("COMPARISION_DATE"),DATA_TYPES:[d.DATE_TIME]},{label:"= ("+r.default.getText("COMPARISION_TIME")+")",value:"= (Time)",type:f.TIME,group:r.default.getText("COMPARISION_TIME"),DATA_TYPES:[d.TIME]},{label:"<> ("+r.default.getText("COMPARISION_TIME")+")",value:"<> (Time)",type:f.TIME,group:r.default.getText("COMPARISION_TIME"),DATA_TYPES:[d.TIME]},{label:"> ("+r.default.getText("COMPARISION_TIME")+")",value:"> (Time)",type:f.TIME,group:r.default.getText("COMPARISION_TIME"),DATA_TYPES:[d.TIME]},{label:"< ("+r.default.getText("COMPARISION_TIME")+")",value:"< (Time)",type:f.TIME,group:r.default.getText("COMPARISION_TIME"),DATA_TYPES:[d.TIME]},{label:">= ("+r.default.getText("COMPARISION_TIME")+")",value:">= (Time)",type:f.TIME,group:r.default.getText("COMPARISION_TIME"),DATA_TYPES:[d.TIME]},{label:"<= ("+r.default.getText("COMPARISION_TIME")+")",value:"<= (Time)",type:f.TIME,group:r.default.getText("COMPARISION_TIME"),DATA_TYPES:[d.TIME]},{label:(0,o.toUpper)(r.default.getText("FILTER_DETAIL_CONFIG_CONSTANTS_VALUE_LIST_TRUE")),value:"TRUE",type:f.NONE,group:r.default.getText("COMPARISION_BOOLEAN"),DATA_TYPES:[d.BOOLEAN]},{label:(0,o.toUpper)(r.default.getText("FILTER_DETAIL_CONFIG_CONSTANTS_VALUE_LIST_FALSE")),value:"FALSE",type:f.NONE,group:r.default.getText("COMPARISION_BOOLEAN"),DATA_TYPES:[d.BOOLEAN]}],COMPARISION_TYPE:f,GENNERAL:{MIN_WIDTH:155,FIELD_ITEM:"FieldItem",FILTER_ITEM:"FilterItem",BORDER_HOVER_ITEM:{COLOR:"#73AA2C",STYLE:"solid"}},FIELDS:{get FILTERS_HEADER_LABEL(){return r.default.getText("REPORTDESIGNER_LABEL_FIELDS_FILTERS_HEADER")},get SHOW_FILTERS_LABEL(){return r.default.getText("REPORTDESIGNER_LABEL_FIELDS_SHOW_FILTERS")},get ADD_FILTER_LABEL(){return r.default.getText("REPORTDESIGNER_LABEL_FIELDS_ADD_FILTER")},get FREEZE_LABEL(){return r.default.getText("REPORTDESIGNER_LABEL_FIELDS_FREEZE")},get FILTER_LOGIC_LABEL(){return r.default.getText("REPORTDESIGNER_LABEL_FIELDS_FILTER_LOGIC")},get FILTER_LOGIC_PLACEHOLDER(){return r.default.getText("REPORTDESIGNER_PLACEHOLDER_FIELDS_FILTER_LOGIC")},get VALIDATE_SYNTAX_LABEL(){return r.default.getText("REPORTDESIGNER_LABEL_FIELDS_VALIDATE_SYNTAX")},get VALID_FILTER_LOGIC_MESSAGE(){return r.default.getText("REPORTDESIGNER_MESSAGE_VALID_FILTERLOGIC_STATEMENT")},get M24(){return r.default.getText("REPORTDESIGNER_FILTER_FIELDS_TYPE_VALIDATE")},get M25(){return r.default.getText("REPORTDESIGNER_FILTER_FIELDS_TYPE_VALIDATE_INFO")},NUMBER_OF_COLUMN:4,FITLERS_PANEL_UI:{minHeight:55,maxHeight:210}},DATA_SOURCE:{FITLERS_PANEL_UI:{minHeight:55,maxHeight:210}},MENU_DEFINITION:[{key:"DataSource",icon:"icon-data-source",get title(){return r.default.getText("COMMON_LABEL_DATA_SOURCE")},get tooltip(){return r.default.getText("COMMON_TOOLTIP_DATA_SOURCE")},hoverShowTooltip:!0},{key:"Fields",icon:"icon-design-icon",get title(){return r.default.getText("REPORTDESIGNER_LABEL_MENU_DEF_DESIGN")},get tooltip(){return r.default.getText("REPORTDESIGNER_TOOLTIP_MENU_DEF_DESIGN")},hoverShowTooltip:!0},{key:"Formats",icon:"icon-format",get title(){return r.default.getText("REPORTDESIGNER_LABEL_MENU_DEF_FORMAT")},get tooltip(){return r.default.getText("REPORTDESIGNER_TOOLTIP_MENU_DEF_FORMAT")},hoverShowTooltip:!0},{key:"Exporting",icon:"icon-export",get title(){return r.default.getText("COMMON_LABEL_EXPORTING")},licenseKey:n.default.LICENSE_KEY.Exporting,excludeForMobile:!0,get tooltip(){return r.default.getText("COMMON_TOOLTIP_EXPORTING")},hoverShowTooltip:!0},{key:"Schedule",icon:"icon-schedule",get title(){return r.default.getText("REPORTDESIGNER_LABEL_MENU_DEF_SCHEDULE")},permissions:[i.default.PERMISSION_KEY.ReportsActionsSchedule],licenseKey:n.default.LICENSE_KEY.Scheduling,get tooltip(){return r.default.getText("REPORTDESIGNER_TOOLTIP_MENU_DEF_SCHEDULE")},hoverShowTooltip:!0},{key:"Access",icon:"icon-access",get title(){return r.default.getText("REPORTDESIGNER_LABEL_MENU_DEF_ACCESS")},permissions:[i.default.PERMISSION_KEY.ReportsActionsConfigureAccessRights],get tooltip(){return r.default.getText("REPORTDESIGNER_TOOLTIP_MENU_DEF_ACCESS")},hoverShowTooltip:!0}],REPORT_NAME:{presence:{presence:!0,get message(){return r.default.getText("REPORTDESIGNER_MESSAGE_REPORT_NAME_REQUIRED")}}},CONSTRAINTS:{ADVANCED:{alias:{storeAction:{action:"validateAlias"}},joinDataSourceCategoryId:{presence:{presence:!0,get message(){return r.default.getText("COMMON_CONSTRAINT_REQUIRED")}}},foreignDataSourceCategoryId:{presence:{presence:!0,get message(){return r.default.getText("COMMON_CONSTRAINT_REQUIRED")}}},joinQuerySourceId:{presence:{presence:!0,get message(){return r.default.getText("COMMON_CONSTRAINT_REQUIRED")}}},foreignQuerySourceId:{presence:{presence:!0,get message(){return r.default.getText("COMMON_CONSTRAINT_REQUIRED")}}},joinFieldId:{presence:{presence:!0,get message(){return r.default.getText("COMMON_CONSTRAINT_REQUIRED")}}},foreignFieldId:{presence:{presence:!0,get message(){return r.default.getText("COMMON_CONSTRAINT_REQUIRED")}}}},REPORT_NAME:{presence:{presence:!0,get message(){return r.default.getText("REPORTDESIGNER_MESSAGE_REPORT_NAME_REQUIRED")}},format:{pattern:s,get message(){return r.default.getText("INVALID_REPORT_NAME")}}},TEMPLATE_NAME:{presence:{presence:!0,get message(){return r.default.getText("REPORTDESIGNER_MESSAGE_TEMPLATE_NAME_REQUIRED")}},format:{pattern:s,get message(){return r.default.getText("INVALID_TEMPLATE_NAME")}}}},VALIDATION_KEY:"validationKey",JOIN_TYPES:[{get label(){return r.default.getText("REPORTDESIGNER_LABEL_JOIN_TYPE_INNER")},value:"Inner"},{get label(){return r.default.getText("REPORTDESIGNER_LABEL_JOIN_TYPE_LEFT")},value:"Left"},{get label(){return r.default.getText("REPORTDESIGNER_LABEL_JOIN_TYPE_RIGHT")},value:"Right"},{get label(){return r.default.getText("REPORTDESIGNER_LABEL_JOIN_TYPE_CROSS")},value:"Cross"},{get label(){return r.default.getText("REPORTDESIGNER_LABEL_JOIN_TYPE_FULL")},value:"Full"}],SEARCH_ALL:"all",JOIN_TYPE_CROSS:"Cross",OPERATOR_TYPES:[{get label(){return r.default.getText("REPORTDESIGNER_LABEL_OPERATOR_TYPE_AND")},value:"AND"},{get label(){return r.default.getText("REPORTDESIGNER_LABEL_OPERATOR_TYPE_OR")},value:"OR"}],TYPES:p,GLOBAL_REPORT_ENUM:{GLOBAL:1,LOCAL:0},EMPTY_GUID:"00000000-0000-0000-0000-000000000000",FILTERS_LOGIC:{storeAction:{action:"validateFilterSyntax"}},get DELETE_FILTER_MESSAGE(){return r.default.getText("REPORTDESIGNER_LABEL_DELETE_FILTER")},get CASCADING_CHANGED_MESSAGE(){return r.default.getText("REPORTDESIGNER_MESSAGE_CASCADING_CHANGED")},PREVIEW_RECORD:[{label:"10",value:10},{label:"100",value:100},{label:"1000",value:1e3},{label:"10000",value:1e4},{get label(){return r.default.getText("COMMON_LABEL_ALL")},value:-1}],get DEFAULT_REPORT_NAME(){return r.default.getText("REPORTDESIGNER_LABEL_DEFAULT_REPORT_NAME")},get DEFAULT_TEMPLATE_NAME(){return r.default.getText("REPORTDESIGNER_LABEL_DEFAULT_TEMPLATE_NAME")},DEFAULT_PREVIEW_RECORD:10,DEFAULT_PAGE_INDEX:1,DEFAULT_PAGE_SIZE:10,OBJECT_STATE:{NONE:0,INSERT:1,DELETE:2,UPDATE:3},getReportSection:function(e){switch((0,o.toLower)(e)){case"all":return 0;case"datasource":return 1;case"fields":return 2;default:return 0}},get CANNOT_DELETE_PARAM_SP(){return r.default.getText("REPORTDESIGNER_LABEL_CANNOT_DELETE_PARAM_SP")},REQUIRED_CONSTRAINT:{presence:{presence:!0,get message(){return r.default.getText("COMMON_CONSTRAINT_REQUIRED")}}},DRILL_DOWN_STYLE_OPTION_VALUES:u,DRIL_DOWN_STYLE_OPTIONS:[{get label(){return r.default.getText("COMMON_LABEL_LINK")},value:u.link},{get label(){return r.default.getText("REPORTDESIGNER_LABEL_DRILL_DOWN_STYLE_LINK_NEW_WINDOW")},value:u.linknewwindow},{get label(){return r.default.getText("REPORTDESIGNER_LABEL_DRILL_DOWN_STYLE_EMBEDDED")},value:u.embedded},{get label(){return r.default.getText("REPORTDESIGNER_LABEL_DRILL_DOWN_STYLE_POPUP")},value:u.popup}],DRIL_DOWN_STYLE:{LINK:"link",LINK_NEW_WINDOW:"linknewwindow",EMBEDDED:"embedded",POPUP:"popup"},PAGE_NAME:{DATA_SOURCE:"DataSource",FIELDS:"Fields",FORMATS:"Formats",EXPORTING:"Exporting",SCHEDULE:"Schedule",ACCESS:"Access"},DATETIME_FORMAT:"MM/DD/YYYY HH:mm",SIMPLE_DATETIME_FORMAT:"MM/DD/YYYY",EXPRESSION_SELECTION:{MIDDLE_FIELD:{FIELD_NAME:{enableDataSource:!0,returnedFieldNameFormat:"[{0}].[{1}].[{2}].[{3}]",returnedOnlyFieldNameFormat:"[{0}]"}},REPORT_PART:{FIELD_NAME:{enableDataSource:!0,returnedFieldNameFormat:"[{0}].[{1}].[{2}].[{3}]",returnedOnlyFieldNameFormat:"[{0}]",subOrGrandTotal:!0}}},DETECT_CHANGE:{PHYSICAL:"physical",LOGICAL:"logical"},REPORT_PART_TYPE:{Chart:"0",Form:"1",Gauge:"2",Grid:"3",Map:"4",KPI:"5"},JOIN_TYPE:{LEFT:"Left",RIGHT:"Right"},DATA_TYPES:d,REPORT_TYPE_ENUM:c,EXPANDED_LEVEL:{ALL:-1,FIRST_LEVEL:0},DEFAULT_VALUE_PROPERTIES:{HEADERS:{BACKGROUND_COLOR:"#E4E4E4"}},HINT_MESSAGE:{get CATEGORY(){return r.default.getText("REPORTDESIGNER_MESSAGE_HINT_CATEGORY")},get SUB_CATEGORY(){return r.default.getText("REPORTDESIGNER_MESSAGE_HINT_SUB_CATEGORY")}},REPORT_PART_PERMISSIONS:[{value:0,permissions:[i.default.PERMISSION_KEY.ReportsReportPartTypesChart]},{value:1,permissions:[i.default.PERMISSION_KEY.ReportsReportPartTypesForm]},{value:2,permissions:[i.default.PERMISSION_KEY.ReportsReportPartTypesGauge]},{value:4,permissions:[i.default.PERMISSION_KEY.ReportsReportPartTypesMap]},{value:5,permissions:[i.default.PERMISSION_KEY.ReportsReportPartTypesKPI]}],FIELD_TYPE:{AggregatedField:"Aggregated Field"},EDITOR_CONFIG:{ReportPart:[{name:"reportPartProps"}]},CALCULATED_FIELD_NAME:"Calculated Fields",REPORT_DESIGNER_TAB:["DataSource","Fields","Formats","Exporting","Schedule","Access"],ERROR_KEY:{reportPart:"reportPart",calculatedfield:"calculatedfield",filter:"filter",relationship:"relationship"},MENU_ACTIVE_LINK:"Fields",MENU_DATASOURCE_LINK:"DataSource",REPORT_STATE:{POSTED:0,SAVED:1,DRAFT:2},DATA_SOURCE_CONCAT_TREE_MAP:h(),SELECTED_DATA_SOURCE_TREE_MAP:[{prop:"querySource",nodeType:"QuerySource",expand:!1,children:[]}],DATA_SOURCE_TREE_MAP:[{prop:"category",expand:!0,nodeType:"Category",children:h()}],DATA_SOURCE_TREE_MAP_FOR_SEARCH:[{prop:"category",expand:!0,nodeType:"Category",children:h(!0)}],LAZY_LOADING_DATA_SOURCE_TREE_ITEMS:50,VALID_REPORT_NAME_REGEX:s,MESSAGE_KEY:{DISTINCT:"Distinct",CONCURRENCY:"Concurrency"},FILTER_CHANGE_STATE:{ADDED:"1",UPDATED:"3"}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=m(a(14)),o=m(a(6)),l=m(a(2)),s=m(a(3)),u=m(a(7)),d=m(a(8)),c=a(0),p=m(c),f=m(a(13)),h=a(1);function m(e){return e&&e.__esModule?e:{default:e}}var g=(n=r=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d1&&(t=N(A(function(e){return"- "+e}),T("\n"))(this.state.messages[0]));var a={title:t,trigger:"hover",placement:"auto "+e.tooltipPosition,template:''};m.default.initTooltip(this.refs.editor,a),m.default.disableTooltip(this.refs.editor)}},{key:"componentDidUpdate",value:function(e,t){if(u.isValidationStateChanged(this.state,t))if(!this.state.isPristine&&this.state.error){var a=this.state.messages[0];v(this.state.messages[0])&&this.state.messages[0].length>1&&(a=N(A(function(e){return"- "+e}),T("\n"))(this.state.messages[0])),m.default.updateTooltip(this.refs.editor,a)}else m.default.disableTooltip(this.refs.editor)}},{key:"componentWillUnmount",value:function(){this.context.validation.detachComponent(this),m.default.destroyTooltip(this.refs.editor),this._isMounted=!1}},{key:"render",value:function(){var e=this.props,a=this.state,n=e.shouldInjectStateToChildren,i=function(){return!a.isPristine&&this.setUnvalidatedChange(),e.onChange?e.onChange.apply(null,arguments):null}.bind(this),o=_(["field","group","validations","className","onChange","onValidated","onReset","shouldInjectStateToChildren","tooltipPosition"],e);n&&(o=S({validateInfo:this.state},o));var l=(0,h.default)(e.className,"validator ",{unvalidated:!this.state.isPristine&&this.state.isUnvalidatedChange,errors:!this.state.isPristine&&!this.state.isUnvalidatedChange&&this.state.error,success:!this.state.isPristine&&!this.state.isUnvalidatedChange&&!this.state.error}),s=this.context.validation.getKey(this);return d.default.createElement("div",{ref:"container",id:String.hashKeyId(s),className:e.containerClassName},d.default.createElement(t,(0,r.default)({className:l},o,{onChange:i,ref:"editor","data-toggle":"tooltip"})))}},{key:"getValue",value:function(){return e&&e.getValue?e.getValue(this.refs.editor):this.refs.editor.props.value}},{key:"setPristine",value:function(){var e=this.props;e.onReset&&e.onReset(),this._isMounted&&this.setState({isPristine:!0,isUnvalidatedChange:!1,error:!1,messages:[]})}},{key:"setError",value:function(e){var t=this.props;t.onValidated&&t.onValidated(!1),this._isMounted&&this.setState({isPristine:!1,isUnvalidatedChange:!1,error:!0,messages:this.getErrorMessages((0,p.toJS)(e))})}},{key:"getErrorMessages",value:function(e){var t=[],a=b(function(e){return"string"==typeof e},e);return a.length>0?a:(e.map(function(e){e.messages&&t.push(e.messages)}),C(t)?null:t)}},{key:"setSuccess",value:function(){var e=this.props;e.onValidated&&e.onValidated(!0),this._isMounted&&this.setState({isPristine:!1,isUnvalidatedChange:!1,error:!1,messages:[]})}},{key:"setUnvalidatedChange",value:function(){this._isMounted&&this.setState({isPristine:!1,isUnvalidatedChange:!0,error:!1,messages:[]})}}],[{key:"isValidationStateChanged",value:function(e,t){return e.isPristine!==t.isPristine||e.error!==t.error||e.messages.length!==t.messages.length||e.messages[0]!==t.messages[0]}}]),u}(u.Component),g.displayName="Validator("+t.displayName+")",g.contextTypes={validation:c.default.object.isRequired},g.propTypes={field:c.default.string.isRequired,validations:c.default.oneOfType([c.default.string,c.default.object]),group:c.default.oneOfType([c.default.string,c.default.number]),onValidated:c.default.func,onReset:c.default.func,shouldInjectStateToChildren:c.default.bool,tooltipPosition:c.default.string},g.defaultProps={field:"ValidatableEditor",shouldInjectStateToChildren:!1,tooltipPosition:y("tooltipPosition",e)||"top"},a=E))||a;return R}};var u=a(0),d=g(u),c=g(a(13)),p=a(5),f=a(9),h=g(a(10));a(60);var m=g(a(1057));function g(e){return e&&e.__esModule?e:{default:e}}var E=a(1),y=E.get,v=E.isArray,T=E.join,_=E.omit,S=E.assign,C=E.isEmpty,b=E.filter,N=E.flow,A=E.map;e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o=S(a(14)),l=S(a(6)),s=S(a(2)),u=S(a(3)),d=S(a(7)),c=S(a(8)),p=a(0),f=S(p),h=S(a(13)),m=S(a(260)),g=S(a(261)),E=S(a(1670)),y=S(a(10)),v=S(a(208)),T=S(a(609)),_=a(1);function S(e){return e&&e.__esModule?e:{default:e}}var C=0,b=2,N=400,A={capture:!1,passive:!0},R=void 0,O=(i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u_.clientWidth&&!r?"izenda-ScrollBox-Track_visible":"izenda-ScrollBox-Track_notVisible",y=_.scrollHeight>_.clientHeight&&!n?"izenda-ScrollBox-Track_visible":"izenda-ScrollBox-Track_notVisible",T.default.clear(t.fastdomMutate),t.fastdomMutate=T.default.mutate(function(){l.className=L(!1,a,E),s.className=L(!0,a,y),(0,v.default)(i,p),(0,v.default)(o,g)})})),"function"==typeof e&&e(_)}},{key:"render",value:function(){var e=I(),t=this.props.autoHeight,a=this.props.className,r=this.props.containerStyle,n=this.props.autoHeightMin,i=this.props.autoHeightMax,l=this.props.fullSize,s=this.props.fullHeight,u=this.props.shouldInjectScrollCallbackToChild,d=(0,_.omit)(["fullSize","onScroll","onScrollStart","onScrollStop","autoHide","autoHideTimeout","autoHeight","autoHeightMin","autoHeightMax","className","children","showWhenHover","showTrackTimeout","containerStyle","isDisabled","shouldInjectScrollCallbackToChild","viewClassName","fullHeight","fullWidth","stickyScrollBottom","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","onUpdate","triggerOnScrollWhenScrollTo"],this.props),c=(0,y.default)(a,{"izenda-ScrollBox":!l,"izenda-ScrollBox_fullSize":l,u_autoHeight:!l&&!!t}),p=(0,_.extend)(!l&&t?{minHeight:n,maxHeight:i}:{},r),h=!l&&!t,m=(0,y.default)({"izenda-ScrollBox-View":h,"izenda-ScrollBox-View_fullSize":l,"izenda-ScrollBox-View_autoHeight":!l&&t,"izenda-ScrollBox-View-overflowXY":h&&!s,"izenda-ScrollBox-View-overflowX":h&&s},this.props.viewClassName),g=l?{}:(0,_.extend)(t?{minHeight:n+e,maxHeight:i+e}:{},this.props.isDisabled?{overflow:"hidden"}:t?{marginRight:e?-e:C,marginBottom:e?-e:C}:s?{marginBottom:-e}:{top:0,left:0,bottom:-e,right:-e,position:"absolute"}),E=L(!1,t),v=L(!0,t),T=!e||this.props.fullSize?{display:"none"}:void 0,S=this.getScrollTop,b=this.getScrollLeft,N=this.getScrollWidth,A=this.getScrollHeight,R=this.scrollVertical,O=this.scrollHorizontal,D=this.scrollTo,P=u?f.default.Children.map(this.props.children,function(e){return e?f.default.cloneElement(e,{getScrollTop:S,getScrollLeft:b,getScrollWidth:N,getScrollHeight:A,scrollVertical:R,scrollHorizontal:O,scrollTo:D}):null}):this.props.children;return f.default.createElement("div",(0,o.default)({className:c,style:p,ref:"container"},d),f.default.createElement("div",{className:m,style:g,ref:"view"},P),f.default.createElement("div",{className:E,style:T,ref:"trackHorizontal"},f.default.createElement("div",{className:"izenda-ScrollBox-Thumb_horizontal",ref:"thumbHorizontal"})),f.default.createElement("div",{className:v,style:T,ref:"trackVertical"},f.default.createElement("div",{className:"izenda-ScrollBox-Thumb_vertical",ref:"thumbVertical"})))}}]),t}(p.Component),n.propTypes={onScroll:h.default.func,fullSize:h.default.bool,onScrollStart:h.default.func,onScrollStop:h.default.func,autoHide:h.default.bool,autoHideTimeout:h.default.number,showTrackTimeout:h.default.number,autoHeight:h.default.bool,disabled:h.default.bool,autoHeightMin:h.default.oneOfType([h.default.number,h.default.string]),autoHeightMax:h.default.oneOfType([h.default.number,h.default.string]),showWhenHover:h.default.bool,shouldInjectScrollCallbackToChild:h.default.bool,viewClassName:h.default.string,fullHeight:h.default.bool,fullWidth:h.default.bool,alwaysShowHorizontalScroll:h.default.bool,alwaysShowVerticalScroll:h.default.bool,onUpdate:h.default.func,stickyScrollBottom:h.default.number,triggerOnScrollWhenScrollTo:h.default.bool},n.defaultProps={fullSize:!1,autoHide:!0,autoHideTimeout:200,showTrackTimeout:200,autoHeight:!1,disabled:!1,autoHeightMin:0,autoHeightMax:200,showWhenHover:!0,shouldInjectScrollCallbackToChild:!1,fullHeight:!1,fullWidth:!1,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,triggerOnScrollWhenScrollTo:!0},i);function I(){if(R)return R;if("undefined"!=typeof document){var e=document.createElement("div");e.style.width="100",e.style.height="100",e.style.position="absolute",e.style.top="-9999",e.style.overflow="scroll",e.style.border="none",e.style.overflowScrolling="touch",e.style.WebkitOverflowScrolling="touch",document.body.appendChild(e),R=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else R=C;return R}function D(e){var t=window.getComputedStyle(e);return e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)}function P(e){var t=window.getComputedStyle(e);return e.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)}function L(e,t,a){return(0,y.default)({"izenda-ScrollBox-Track_vertical":e,"izenda-ScrollBox-Track_horizontal":!e,"izenda-ScrollBox-Track_autoHeight":t},a)}function M(e,t,a){new E.default.Tween(e).to(t,N).onUpdate(a).start(),function e(t){(0,g.default)(e);E.default.update(t)}()}t.default=O,e.exports=t.default}).call(t,a(27))},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l=_(a(14)),s=_(a(6)),u=_(a(2)),d=_(a(3)),c=_(a(7)),p=_(a(8)),f=a(0),h=_(f),m=_(a(13)),g=_(a(10)),E=_(a(1153)),y=a(9),v=a(1),T=_(a(686));function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,y.observer)((i=n=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));o.call(a);var r=e.header,n=e.initState,i=e.parent,l=e.collapsible,d=e.expanedOption;a.collapsible=!(!i&&!l);var p=!!r&&!(0,v.isNil)(r.expanedOption)&&!(0,v.isEmpty)(r.expanedOption);a.state={isExpanded:n||d||p};var f=a.props,h=f.defaultValue,m=f.minValue,g=f.maxValue,E=f.toViewPortDimension;if(a.config={defaultValue:h,minValue:m,maxValue:g},a.displayHeight=h+"px",E){var y=T.default.px2vh(h);a.displayHeight=""+y.value+y.unit,a.config.defaultValue=T.default.px2vh(h).value,a.config.minValue=T.default.px2vh(m).value,a.config.maxValue=T.default.px2vh(g).value}return a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentDidUpdate",value:function(){var e=this.props,t=this.state.isExpanded;e.afterToggled&&e.afterToggled(t)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,a=t.header,r=t.expanedOption,n=e.header;function i(e){var t=!!e;this.setState({isExpanded:t})}n&&!(0,v.isNil)(n.expanedOption)&&n.expanedOption!==a.expanedOption&&i.call(this,n.expanedOption),e.expanedOption!==r&&i.call(this,e.expanedOption)}},{key:"render",value:function(){var e=this,t=this.state.isExpanded,a=this.props,r=a.className,n=a.style,i=a.panelKey,o=a.id,l=(0,g.default)("panel",r);return h.default.createElement("div",{className:l,style:n,"aria-expanded":t,key:i,id:o},this.renderHeader(),function(){if(e.collapsible)return e.renderCollapseBody();var t=e.renderFooter();return t?this.renderFixBody(e.renderBody(),t):e.renderBody()}.apply(this))}},{key:"renderFixBody",value:function(e,t){return h.default.createElement("div",null,e,t)}}]),t}(f.Component),n.propTypes={resizable:m.default.bool,collapsible:m.default.bool,afterToggled:m.default.func,idPanelBody:m.default.bool,expanedOption:m.default.bool,rerenderOnExpaned:m.default.bool,header:m.default.oneOfType([m.default.string,m.default.object]),footer:m.default.object,panelBodyClassName:m.default.string},n.defaultProps={resizable:!1},o=function(){var e=this;this.collapseToggle=function(){e.setState({isExpanded:!e.state.isExpanded})},this.renderResizableBody=function(t,a){var r=e.props,n=r.afterMove,i=r.toViewPortDimension;return h.default.createElement("div",{className:"filters-body-container"},h.default.createElement("div",{style:{minHeight:e.props.minValue,height:e.displayHeight}},t,a),h.default.createElement(E.default,{afterMove:n,config:e.config,orientation:"vertical",nodeHandle:"previousSibling",toViewPortDimension:i}))},this.onClickTitleHandle=function(){var t=e.props,a=t.disabled,r=t.header,n=t.header.rawTitle;a||r.onClickTitle&&r.onClickTitle(n)},this.renderHeader=function(){var t=e,a=e.state.isExpanded,r=e.props.header;if(!r)return null;var n=r.style,i=r.className,o=r.icon,s=r.title,u=(r.updateResultInfo,(0,g.default)("panel-heading",i));return h.default.createElement("div",{className:u,"aria-expanded":a},function(){return r.component?h.default.createElement(r.component,(0,l.default)({collapseToggle:t.collapseToggle,isExpanded:a},r)):r.onClickTitle?h.default.createElement("strong",{style:n,className:i},o?h.default.createElement("i",{className:o,onClick:t.collapsible?t.collapseToggle:null}):null,h.default.createElement("a",{onClick:t.onClickTitleHandle},r&&s||r)):h.default.createElement("strong",{onClick:t.collapsible?t.collapseToggle:null,style:n,className:i},o?h.default.createElement("i",{className:o}):null,(0,v.isString)(s)&&s||(0,v.isString)(r)&&r||"")}())},this.renderCollapseBody=function(){var t=e.state.isExpanded,a=e.props,r=a.disabled,n=a.renderCollapseContent,i=a.resizable,o=(0,g.default)("panel-collapse collapse",{in:t,"izenda-Panel_Disabled":r}),l=void 0;return l=n?t?s:null:s,h.default.createElement("div",{className:o,disabled:r},l&&l.apply(e));function s(){return i?this.renderResizableBody(this.renderBody(),this.renderFooter()):h.default.createElement("div",null,this.renderBody(),this.renderFooter())}},this.renderBody=function(){var t=e.props,a=t.disabled,r=t.panelBodyClassName,n=t.idPanelBody,i=t.children,o=(0,g.default)("panel-body",r);return h.default.createElement("div",{id:n,className:o,disabled:a},i)},this.renderFooter=function(){var t=e.props.footer;if(!t)return null;var a=t.className,r=t.title,n=(0,g.default)("panel-footer",a);return h.default.createElement("div",{className:n},t.component?h.default.createElement(t.component,t):t&&r)}},r=i))||r;t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=C(a(14)),l=a(20),s=C(a(6)),u=C(a(2)),d=C(a(3)),c=C(a(7)),p=C(a(8)),f=a(0),h=C(f),m=a(9),g=C(a(10)),E=C(a(13)),y=C(a(26)),v=C(a(159)),T=C(a(34)),_=C(a(88)),S=a(1);function C(e){return e&&e.__esModule?e:{default:e}}var b="***HIDDEN VALUE***",N=(0,m.observer)((i=n=function(e){function t(){var e,a,r,n;(0,u.default)(this,t);for(var i=arguments.length,d=Array(i),p=0;p0?" ":"",i=e.label+a;return r.createElement("button",{ref:"btn",className:t,onClick:e.onClick,disabled:e.disabled,title:e.title,"data-toggle":e["data-toggle"],value:e.value},i,e.children)}}),e.exports=o}).call(t,a(27))},,function(e,t,a){"use strict";(function(t){!function(){var r=a(0),n=a(30),i=a(26),o=a(10),l=a(445),s=a(178),u=a(1),d=u.assign,c=u.find,p=u.concat,f=u.isArray,h=u.isEmpty,m=r.createClass({displayName:"Popup",propsType:{visible:r.PropTypes.bool,onClosed:r.PropTypes.func,type:r.PropTypes.oneOf(["default","warning","error","info","none","confirm"]),sizeClass:r.PropTypes.string,turnOffBodyDrag:r.PropTypes.bool},getDefaultProps:function(){return{visible:!1,onClosed:null,autoClose:!0,type:"default",sizeClass:"",showLoading:!1,turnOffBodyDrag:!1}},getInitialState:function(){return{isVisible:!!this.props.visible,showLoading:this.props.showLoading}},componentWillReceiveProps:function(e){this.setState({isVisible:e.visible,showLoading:e.showLoading})},render:function(){var e=this.renderChildByType("Header",!0),t=this.renderChildByType("Body"),a=this.renderChildByType("Footer",!0),n=e?r.cloneElement(e,{onClosed:this.props.onClosed,onClosing:this.props.onClosing,autoClose:this.props.autoClose,hide:this.hide,type:this.props.type}):null,u=a?r.cloneElement(a,{onClosed:this.props.onClosed,onClosing:this.props.onClosing,autoClose:this.props.autoClose,hide:this.hide}):null,c=o("izenda-modal-dialog",this.props.sizeClass,this.props.containerClass),p=d(this.props.style,this.getStyle()),f=this.props.turnOffBodyDrag||e?".modal-header":".modal-content",h=o(this.props.type,{"modal-content":!0,u_curMove:!e&&!this.props.turnOffBodyDrag}),m=this.props.backdropStyle;return r.createElement("div",null,this.state.isVisible&&r.createElement("div",{className:"modal-backdrop in",style:m}),r.createElement("div",{tabIndex:"-1",role:"dialog",style:p,className:"modal fade "+this.getShowingClass()},r.createElement(i,{shouldInjectScrollCallbackToChild:!1},r.createElement(l,{handle:f,bounds:".izenda",cancel:".btn, input, .izenda-Disable-move"},r.createElement("div",{className:c},r.createElement("div",{className:h},n,t,u,r.createElement(s,{show:this.state.showLoading})))))))},renderChildByType:function(e,a){var r=c(function(t){return t&&t.type.displayName===e})(p([],this.props.children));return t(a||r,"Popup must have %s",e),r},getShowingClass:function(){return this.state.isVisible?"in":""},getStyle:function(){return this.state.isVisible?{display:"block"}:{display:"none"}},hide:function(){this.setState({isVisible:!1})}});m.Header=r.createClass({displayName:"Header",propsType:{title:r.PropTypes.string,tooltip:r.PropTypes.string,showCloseButton:r.PropTypes.bool},getDefaultProps:function(){return{title:"",tooltip:"",showCloseButton:!0}},render:function(){var e=this.props;return r.createElement("div",{className:"modal-header"},r.createElement("h4",{className:"modal-title u_floatLeft "+e.type},e.title,!h(e.tooltip)&&r.createElement("a",{className:"modal-tooltip"},r.createElement("span",{className:"icon-info-circled",title:e.tooltip}))),e.showCloseButton&&r.createElement("div",{className:"pull-right"},r.createElement("span",{className:"icon-cancel","aria-label":"Close",onClick:function(){e.onClosing&&e.onClosing(function(){e.hide()},"cancel"),e.onClosed&&e.onClosed("cancel")}})))}}),m.Body=r.createClass({displayName:"Body",propsType:{className:r.PropTypes.string},getDefaultProps:function(){return{className:""}},render:function(){var e=o("modal-body",this.props.className);return r.createElement("div",{className:e},this.props.children)}}),m.Footer=r.createClass({displayName:"Footer",render:function(){return r.createElement("div",{className:"modal-footer"},function e(t){var a=[],n=this.props;return(t=f(t)?t:[t]).forEach(function(t,i){t&&t.type&&"ConfirmationButton"===t.type.displayName?a.push(r.cloneElement(t,{key:n.key||i,onClosed:n.onClosed,onClosing:n.onClosing,autoClose:n.autoClose,hide:n.hide})):f(t)&&a.push(e.bind(this)(t))}.bind(this)),a}.call(this,this.props.children))}}),m.ConfirmationButton=r.createClass({displayName:"ConfirmationButton",propTypes:{type:r.PropTypes.oneOf(["accept","cancel","close","custom"]),disabled:r.PropTypes.bool},render:function(){return this.renderButton()},renderButton:function(){var e=this.props.disabled,t=function(){this.props.hide()}.bind(this),a=function(){var e=this.props.type;this.props.autoClose?(t(),this.props.onClosed&&this.props.onClosed(e)):this.props.onClosing&&this.props.onClosing(t,e)}.bind(this);return"accept"===this.props.type?r.createElement("button",{onClick:a,type:"button",className:"btn btn-primary",disabled:e},this.props.children):"cancel"===this.props.type?r.createElement("button",{onClick:a,type:"button",className:"btn btn-primary btn-report-default",disabled:e},this.props.children):"close"===this.props.type?r.createElement("a",{onClick:a},r.createElement("span",{className:"icon-cancel modal-close-button"},this.props.children)):r.createElement(n,this.props)}}),e.exports=m}()}).call(t,a(42))},function(e,t,a){"use strict";(function(t){var r=u(a(58)),n=a(20),i=u(a(1542)),o=u(a(90)),l=a(1),s=u(a(226));function u(e){return e&&e.__esModule?e:{default:e}}!function(){var u=a(0),d=a(5),c=a(305),p=a(105),f=a(367),h=a(37),m=a(332),g=a(18),E=a(99),y=a(50),v=a(166),T=a(474),_=a(237),S=a(16),C=a(135),b=C.validateExistingReport,N=C.validateExistingField,A=a(230),R=a(22),O=a(61),I=O.MESSAGES,D=a(48),P=D.DEFAULT_FORMAT_BY_FUNCTION_DATA_TYPE,L=D.DEFAULT_FORMAT_BY_DATA_TYPE,M=D.FIELD_FUNCTION_MODE,F=D.FUNCTION,k=D.FUNCTION.GROUP.NAME,x=a(227),w=a(713),B=x.DATE_TIME_FORMAT,U=x.GROUP_BY,z=w.FORMATS_NOT_AVAILABLE_FOR_RUNNING_FIELD,V=w.FORMATS_NOT_AVAILABLE_FOR_PART_TYPES,G=w.FORMATS_ONLY_ON_PIVOT_GRID_VALUE_CONTAINER,H=w.FORMAT_NOT_AVAILABLE_ON_FIELD_CAN_NOT_SET_SUBTOTAL,Y=g.DATA_TYPES,j=g.REPORT_PART_TYPE,K=E.GRID_STYLES,W=E.CONTAINER_NAME,q=a(109).TIME_FORMAT,Q=a(55).EMPTY_GUID,X=a(55).MESSAGES,J=a(1178),Z=a(36),$=a(2243),ee=a(41),te=(a(43),a(2244)),ae=a(85),re=a(211),ne=a(34),ie=g.COLUMN_NAME_PREFIX,oe={persistent:!0,resolver:function(){return(0,o.default)(arguments)}},le=A.memoize(T.getFunctionData,oe),se=A.memoize(T.getFormatData,oe),ue=A.memoize(T.getFunction,oe);function de(e,t,a){var r=(0,l.flow)((0,l.flatMap)((0,l.flow)((0,l.get)("elements"),(0,l.invoke)("peek"))),(0,l.without)([t]))(e.containerCollection);return String.generateNewName(a,r,(0,l.get)("name"),"()")}function ce(e,t,a){var r={success:!0,filters:[]},n=(0,l.flow)(d.toJS,(0,l.map)((0,l.mapValues)(l.toString)))(e);if(r.filters=(0,l.map)(function(e){var t=(0,l.find)(function(t){return t.fieldNameAlias===e.fieldNameAlias},a);return t||(r.success=!1),{key:e.fieldNameInSubReport,fieldNameAlias:e.fieldNameAlias,columnName:(0,l.get)("columnName",t),linkReportFilter:!0}},t),!r.success)return r;var i=(0,l.map)("columnName",r.filters);return 1!==(n=(0,l.flow)((0,l.map)((0,l.pick)(i)),(0,l.uniqWith)(l.isEqual))(n)).length?(r.success=!1,r):(n=(0,l.head)(n),r.filters=(0,l.map)(function(e){var t=(0,l.get)(e.columnName,n);return(0,l.assign)(e,{value:t})},r.filters),r)}function pe(e,t,a,r,i){var o=de(e,t,function(e,t){var a=(0,l.getOr)("","name",t),r=(0,l.getOr)("","properties.dataFormattings.functionInfo.name",e),n=new RegExp(String.format(O.FIELD_NAME_ALIAS_REGEX,(0,l.escapeRegExp)(r))),i=(0,l.getOr)("","field.fieldName",e);if(i=""===i?e.name:i,n.test(i)){var o=n.exec(i);i=o[2]||o[3]}return!(0,l.isEmpty)(a)&&a.indexOf("[")<0&&a!==F.GROUP.NAME?String.format(O.FIELD_NAME_WITH_FUNCTION_TEMPLATE,a,i):i}(t,a));return!i&&t.setName(o),t.properties.setFunction(a),(0,n.resolve)(r&&(0,l.invokeArgs)("afterUpdateFunction",[t],e))}function fe(e,t,a,r){var i=a.fieldDataType;if(!e.getDefaultFunctionFormat||a.field.hasAggregatedFunction)return se(i,(0,l.getOr)("",i,L)).then(function(e){return{functionData:{},formatData:e||{},defaultFunctionConfig:{}}});var o=e.getDefaultFunctionFormat(t,i)||{FORMAT:{NAME:(0,l.getOr)("",i,L)}},s=void 0;s=r&&r.promiseFunctions?r.promiseFunctions.then(function(e){var t=(0,l.find)({dataType:i,querySourceId:a.field.querySourceId},e),r=t&&t.data;return(0,l.flow)((0,l.find)({name:(0,l.getOr)("","FUNCTION.NAME",o)}),(0,l.defaults)({}))(r)}):le(M.FieldProperty,i,(0,l.getOr)("","FUNCTION.NAME",o),[a.field.querySourceId]);var u=void 0;return u=r&&r.promiseFormats?r.promiseFormats.then(function(e){var t=(0,l.find)({dataType:i},e),a=t&&t.data;return(0,l.flow)((0,l.find)({name:(0,l.getOr)("","FORMAT.NAME",o)}),(0,l.defaults)({}))(a)}):se(i,(0,l.getOr)("","FORMAT.NAME",o)),(0,n.join)(s,u,function(e,t){return{functionData:e,formatData:t,defaultFunctionConfig:o}})}function he(e,t,a,r){return fe(e,t,a,r).then(function(t){return t.formatData.id&&a.properties.setFormat({formatId:t.formatData.customId,format:t.formatData.format,groupBy:t.formatData.groupBy,formatDataType:t.formatData.formatDataType}),pe(e,a,t.functionData,!0)})}function me(e,t,a,r,n){e===Y.TIME&&(t=t||q);var i=(0,l.get)("element.reportPartElm",r);if(!t)return n?ge(a,i):a;var o=void 0,s=void 0;switch(e){case Y.NUMERIC:case Y.MONEY:o=f;break;case Y.TIME:case Y.DATE_TIME:s=(0,l.get)("dateTimeFormatData.dataFormat",i);var u=B[t];if(u&&u.FOR_DATE_SETTING&&!(0,l.includes)(S.currentUser.dateFormat,u.FOR_DATE_SETTING)){var d=u.GROUP_BY;t=U[d].DEFAULT_FORMAT[S.currentUser.dateFormat]}o=p}var c=o?o(t,a,null,s):a;return n&&(c=ge(c,i)),c}function ge(e,t){if((0,l.get)("properties.dataFormattings.format.jsFormatString",t)){var a=(0,l.get)("properties.dataFormattings.functionInfo.formatDataType",t);return function(e,t,a){var r=void 0;r=(0,l.isNil)(t)||(0,l.isEqual)(t,"")?null:"Datetime"===a?new Date(t):t;return s.default.format(e,r,t)}((0,l.get)("properties.dataFormattings.format.formatId",t),e,a)}return e}function Ee(e,t){return(0,l.inRange)((0,l.toNumber)(t.from),(0,l.toNumber)(t.to),e)||e===(0,l.toNumber)(t.to)}function ye(e,t,a){if(!t)return null;var r=(0,l.get)("element",a),n=[],o=null;if((0,l.isNil)(r)&&(r=a),(0,l.get)("reportPartElm.previewDataType",r)===Y.TIME&&(e=p(q,e,!1)),t.value&&t.value.length)o=u(),n=t.value.filter(function(t){if(o)return o.value==t.key;if((0,l.isNil)(t.text)||e.toString().toUpperCase()!==t.key.toString().toUpperCase()){if("null"==e&&t.key==ne.NULL_VALUE)return t;if(""==e&&t.key==ne.BLANK_VALUE)return t}else if((0,l.isNil)(o))return t;return e.toString().toUpperCase()===t.key.toString().toUpperCase()});else if(t.rangeValue&&t.rangeValue.length)o=u(),n=t.rangeValue.filter(function(t){return o?t.from<=t.to?t.from<=o.value&&o.value<=t.to:t.from<=o.value||o.value<=t.to:Ee((0,l.toNumber)(e),t)});else if(t.rangePercent&&t.rangePercent.length&&(0,l.has)("record",a)){var s=(0,l.get)(ie.PERCENTAGE_VALUE+(0,l.get)("columnName",r),a.record);n=!(0,l.isNil)(s)&&t.rangePercent.filter(function(e){return Ee((0,l.toNumber)(s),e)})}else t.allValues&&t.allValues.length&&(n=t.allValues);return(0,l.get)("text",(0,l.head)(n));function u(){var t=(0,l.get)("reportPartElm.dateTimeFormatData",r);if(t){var a="D"===t.dataFormat&&(0,i.default)(e)?R().startOf("year").date(e):R(e,t.dataFormat,!0);if(a.isValid()){var n=a.format(t.compareFormat);if("E"===t.compareFormat){var o=parseInt(e);!(0,l.isNaN)(o)&&o>=1&&o<=7&&(n=(0,l.nth)(e,x.DAY_OF_WEEK_VALUES))}return{value:n,format:t.compareFormat}}}return null}}function ve(e,t,a){if(!t||!t.alternativeText)return null;if((0,l.isNil)(e)&&t.fieldDataType===Y.TEXT){var r=ee.advancedSettings.other.convertNullToEmptyStringValue;e=String.commonStringValue(e,r)}return ye.call(null,e,t.alternativeText,a)}function Te(e,t,a,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=e.reportPart,o=t.url,s=d.toJS(i.previewData).fieldsMapping,u=/^https?:\/\//i.test(o);return Ae(i,a,o,u,r,n).then(function(n){if(!(0,l.isEmpty)(n))return e.confirmMessage("error",n.join(", "));var i;if(u)i=Oe(a,s,o,r),h.openCustomURL(e,t,i.filters,null,u,r);else{i=Ie(a,s,o);var d=Re(o);C.getReportIdByNameAndCateName(d.cat,d.re,S.tenantId).then(function(a){if(a.data){var n=a.data;h.openCustomURL(e,t,i.filters,n,u,r)}})}})}function _e(e,t,a,r){for(var i=e.reportPart,o=e.reportPart.previewData.fieldsMapping,s=t.script,u=/^https?:\/\//i,d=[],c=/urldecode<.*>/gi,p=/(?:"|')https?:\/\/\S+(?:"|')/gi,f=void 0;f=c.exec(s);)d.push({url:f[0].substring("urldecode<".length,f[0].length-1),index:f.index,length:f[0].length});for(;f=p.exec(s);)f[0]=f[0].substring(1,f[0].length-1),d.push({url:f[0],index:f.index+1,length:f[0].length});(0,n.map)(d,function(e){var t=e.url;return Ae(i,a,t,u.test(t),r)}).then(function(t){for(var a=[],r=0;r0}function Ne(e,t){return(0,l.find)({name:e},t)}function Ae(e,t,a,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e.fieldCollection,u=d.toJS(e.previewData).fieldsMapping,c=[],p=[];if(g(a).forEach(function(e){-1===(0,l.findIndex)({fieldName:e},s)&&p.push(e)}),!o&&!(0,l.isEmpty)(p))return c.push(String.format(I.M12,p.join(", "))),(0,n.resolve)(c);if(!r){!Ie(t,u,a).success&&c.push(I.L02);var f=Re(a),h=f.cat,m=f.re;return b(h,m,S.tenantId).then(function(e){return!e.data&&c.push(I.M11),e.data}).then(function(e){if(e){var t=g(a);return N(h,m,t,S.tenantId).then(function(e){return!e.data&&c.push(String.format(I.M13,t.join(","))),c})}return c})}return o||!Oe(t,u,a,i).success&&c.push(I.L02),(0,n.resolve)(c);function g(e){for(var t=/{\[(.*?)\]}/g,a=void 0,r=[];a=t.exec(e);)r.push(a[1]);return r}}function Re(e){var t=(0,l.flow)((0,l.split)("&"),l.head,(0,l.split)("?"),l.last,(0,l.split)("="),l.last)(e),a=(0,l.head)(t.split("/")),r=(0,l.last)(t.split("/"));return{cat:a===g.UNCATEGORIZED?null:a,re:r}}function Oe(e,t,a,r){return ce(e,function(e){var t=0,a=0,n=0,i=(0,l.getOr)(0,"length",e),o="",s=[];if((0,l.isString)(e))for(;t-1?t[0].substring(1,t[0].length-1):t[0],fieldNameAlias:t[1].substring(1,t[1].length-1)}}))(a),t)}function De(e,t,a){return(0,l.flow)((0,l.get)(t),(0,l.get)("DEFAULT_SORT"),(0,l.get)(a))(e)}var Pe=(0,l.curry)(function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}),Le=function(e){var t=e.emptyRequiredParamFilters,a=e.emptyNotVisibleRequiredFilter,r=e.emptyVisibleRequiredFilter;return(0,l.isEmpty)(t)?(0,l.isEmpty)(a)?(0,l.isEmpty)(r)?null:X.EMPTY_VISIBLE_REQUIRED_FILTER(r):X.EMPTY_REQUIRED_FILTER(a):(0,l.isEmpty)(a)?X.EMPTY_FILTER_PARAM(t):X.EMPTY_REQUIRED_PARAM_FILTER(t,a)},Me=function(e){var t=v.CONDITION_TYPE,a=v.FORMAT_TYPE,r=e.previewDataFieldsMapping,n=e.reportPartContent.properties,o=function(e){var t=(0,l.find)({fieldNameAlias:e},r);return(0,l.getOr)(null,"columnName",t)},s=function(e,a){var r=(0,l.get)("conditionField.name",a),n=(0,l.get)("type",a),s=(0,l.get)("value",a),u=(0,l.get)("conditionField.dateTimeFormatData",a),d=(0,l.get)("conditionField.previewDataType",a),c=o(r),f=e[c];d===Y.TIME&&(f=p(q,f,!1));var h=function(e,t){if(e){var a="D"===e.dataFormat&&(0,i.default)(t)?R().startOf("year").date(t):R(t,e.dataFormat,!0);if(a.isValid()){var r=a.format(e.compareFormat);if("E"===e.compareFormat){var n=parseInt(t);!(0,l.isNaN)(n)&&n>=1&&n<=7&&(r=(0,l.nth)(t,x.DAY_OF_WEEK_VALUES))}return r}}return null}(u,f);switch(n){case t.ALL_VALUES.value:return!0;case t.BLANK.value:return!(0,l.isNil)(f)&&(0,l.isEmpty)(f);case t.NULL.value:return(0,l.isNil)(f)||(0,l.isEqual)(f,"null");case t.VALUE.value:if((0,l.isNil)(s))return!1;var m=h||f||"";return m=(0,l.isNumber)(s)?(0,l.toNumber)(m):m,s.toString().toUpperCase()===m.toString().toUpperCase();case t.RANGE_VALUE.value:if(h){var g=s.from,E=s.to;return h>=g&&h<=E}return Ee((0,l.toNumber)(f),s);case t.RANGE_PERCENT.value:var y=(0,l.get)(ie.PERCENTAGE_VALUE+c,e);return Ee((0,l.toNumber)(y),s)}};return{allRules:(0,l.getOr)([],"view.conditionalFormatting.rules",n).map(function(e,t){var a=(0,l.clone)(e);return a.position=t,a}),getColumnName:o,checkCondition:s,setFormat:function(e){var t=[];return(0,l.forEach)(function(e){var r=(0,l.get)("format.type.value",e),n=(0,l.get)("format.value",e),i=e.position;(0,l.forEach)(function(e){var s=function(e,a,r){var n={columnName:o(e),applyToSideTotal:a,additionalConditions:r},i=null;if(0===r.length&&(i=(0,l.find)(function(e){var t=e.definition;return 0===t.additionalConditions.length&&t.columnName===n.columnName},t)),i)return i;var s={definition:n,value:{}};return t.push(s),s}((0,l.getOr)(e,"name",e),(0,l.getOr)(!1,"applyToSideTotal",e),(0,l.getOr)([],"additionalConditions",e));switch(r){case a.ALTERNATIVE_TEXT.value:s.value.altText={value:n,priority:i};break;case a.BACKGROUND_COLOR.value:s.value.bgColor={value:n,priority:i};break;case a.FONT_COLOR.value:s.value.fontColor={value:n,priority:i};break;case a.FONT_FORMAT.value:s.value.fontFamily={value:n.font.fontFamily,priority:i},s.value.fontSize={value:n.font.fontSize,priority:i},s.value.italic={value:n.style.fontItalic,priority:i},s.value.bold={value:n.style.fontBold,priority:i},s.value.underline={value:n.style.fontUnderline,priority:i}}},e.fields)},e),t},checkAdditionalConditions:function(e,t){for(var a=0;a1&&e.openPopup(r,{fieldConfig:t}).then(function(r){"openSubReport"===r&&h.openSubReport(e,n,a,t),"openCustomURL"===r&&Te(e,i,a,t),"performEmbeddedJavascript"===r&&_e(e,o,a,t)})},openCustomURL:Te,performEmbeddedJavascript:_e,getDefaultFunctionFormat:fe,convertNonFunctionElementsToFunction:function(e,t){return(0,l.flow)((0,l.flatMap)(function(a){return(0,l.flow)((0,l.filter)({haveFunction:!1}),(0,l.map)(function(r){if(t){var i=(0,l.get)([r.fieldDataType,t].join("."),P),o=(0,n.resolve)({});return i&&(o=se(r.fieldDataType,i)),(0,n.join)(o,le(M.FieldProperty,r.fieldDataType,t),d.action(function(t,a){return t.id&&r.properties.setFormat({formatId:t.id,format:t.format,groupBy:t.groupBy,formatDataType:t.formatDataType}),pe(e,r,a)}))}return he(e,a,r)}))(a.elements.peek())}),n.all)(e.containerCollection)},setDefaultFunctionElement:he,setFunctionElement:pe,addContainers:Se,addCustomContainers:Ce,hasElement:be,checkedCompatibleFunctionHasAggregatedFunction:function(e){return!e.name||e.userDefined},checkCompatibleFunctionCommon:function(e,t,a){var r=!0,n=t.field.hasAggregatedFunction,i=(0,l.getOr)(D.EMPTY_FUNCTION.name,"name",e);if(e.userDefined&&(i=F.GROUP.NAME),a.SUPPORTED){var o=a.SUPPORTED[t.fieldDataType]||a.SUPPORTED.DEFAULT,s=(0,l.map)("NAME",o);n&&(s=(0,l.concat)([D.EMPTY_FUNCTION.name],s)),r=(0,l.includes)(i,s)}if(a.UNSUPPORTED){var u=a.UNSUPPORTED[t.fieldDataType]||a.UNSUPPORTED.DEFAULT,d=(0,l.map)("NAME",u);n&&(d=(0,l.without)([D.EMPTY_FUNCTION.name],d)),r=r&&!(0,l.includes)(i,d)}return r},hasAtLeastElement:function(){return be.apply(this,(0,l.concat)([!1],arguments))},getElements:function(e,t,a){var r=e&&e.visibleElement||[];return a&&a!==(0,l.get)("name",e)||!t?r:r.filter(function(e){return e.fieldName===t})},getUniqueName:de,buildFilterDataSubReport:ce,populateReportChartContainer:function(e,t,a){var r={};if(Se(r,t),!e)return r;var n,i=(0,l.omit)("elements",e),o=e.elements;!i.name&&(i.name=t);var s=(0,l.map)(function(e){return n=(new m).readData(e),a&&a(i,n,e),n},o);return r[t].elements=s||[],d.extendObservable(i,r[t]),i},populateReportChartCustomContainer:function(e,t){(0,l.each)(function(e){var a=(0,l.find)({name:e.name},t);(0,l.isNil)(a)&&(a=Ce(t,name));var r=(0,l.map)(function(e){return(new m).readData(e)},e.elements);a.elements=r},e)},buildMappingFields:function(e,t,a){switch(e){case 0:case 2:case 4:return function(e,t){var a,r=(0,l.getOr)([],"mappingFields",e);return(0,l.each)(function(e){a=function(e,t){return(0,l.find)(function(t){return e===t.fieldNameAlias},t)}(e.key,r),e.key=a?a.fieldNameInSubReport:null},t),(0,l.remove)(l.isNil,t)}(t,a);default:return a}},findCustomContainer:Ne,removeFieldsFromContainer:function(e,t,a,r){var n=Ne(t,a);if(n)if((0,l.isArray)(e))(0,l.forEach)(function(e){return t=n,a=e.fieldName,void((i=(0,l.find)(function(e){return e.fieldNameAlias===a},t.elements))&&r.removeFieldFromContainer(t,i));var t,a,i},e);else{var i=n.elements.slice();(0,l.forEach)(function(e){r.removeFieldFromContainer(n,e)},i)}},validateURL:Ae,buildDataSourceElement:function(e,t){return{columnName:(0,l.flow)((0,l.find)({fieldNameAlias:t.field.fieldNameAlias}),(0,l.get)("columnName"))(e.previewDataFieldsMapping),reportPartElm:t}},findCatAndReportNameInUrl:Re,getContainerByField:function(e,t){d.untracked(function(){return t?(0,l.filter)(function(e){return!!(0,l.filter)(function(e){return e===t})},e):null})},resetDefaultSetting:function(e,t){(0,l.flow)((0,l.flatMap)(function(e){return e.properties.otherProps}),(0,l.forEach)(function(e){e[t]=void 0}))(e)},transformFilterWithReportPart:function(e,t){return(0,l.map)(function(t){var a=void 0,r=(0,l.get)("field.reportPartElm.field.sourceAlias",t),n=(0,l.get)("field.reportPartElm.field.fieldName",t),i=(0,l.get)("field.reportPartElm.properties.dataFormattings.functionInfo.name",t),o=(0,l.get)("field.reportPartElm.field.relationshipId",t),s=(0,l.get)("field.reportPartElm.field.fieldId",t),u=null;if((0,l.isEmpty)(s))return t;i===k||(0,l.isEmpty)((0,l.get)("field.reportPartElm.properties.dataFormattings.functionInfo.id",t))?(0,l.isNil)(o)||o===Q?(a=null,u=s):a="["+r+"].["+n+"]":a=(0,l.flow)((0,l.find)(function(e){var t=(0,l.get)("field.relationshipId",e);return(0,l.get)("field.fieldName",e)===n&&(0,l.get)("field.sourceAlias",e)===r&&(t===o||(0,l.isEmpty)(t))&&(0,l.get)("properties.dataFormattings.functionInfo.name",e)===i}),(0,l.get)("field.fieldNameAlias"))((0,l.get)("fieldCollection",e));var d={isCrossFilter:!0,key:(0,l.toString)(a),value:t.value,dataFormat:(0,l.get)("field.reportPartElm.properties.dataFormattings.format.formatId",t)};return u&&(d.fieldId=u),d},t)},getDefaultSort:function(e,t,a){switch(e){case g.REPORT_PART_TYPE.Grid:return De(J.DefaultConfig,t,a);case g.REPORT_PART_TYPE.Chart:case g.REPORT_PART_TYPE.Gauge:case g.REPORT_PART_TYPE.KPI:case g.REPORT_PART_TYPE.Map:return De(Z.DefaultConfig,t,a);case g.REPORT_PART_TYPE.Form:return De($.DefaultConfig,"Form",a);default:return"ASC"}},renderLazyLoadingBar:function(){return u.createElement(c,{className:"u_fullSize u_flex u_flexCenterAlignItems"})},needToRenderLazyLoadingBar:function(e,t){if(t)return(0,l.isNil)(e);var a=(0,l.get)("isLoadingData",e);return void 0===a||!0===a},filterFormatForField:function(e,t,a,r){var n=(0,l.get)("type",e),i=n===j.Grid&&(0,l.get)("properties.generalInfo.gridStyle",e)===K.PIVOT.value,o=i&&r===W.VALUES,s=i&&r===W.COLUMNS,u=n===j.Grid&&r===W.SEPARATORS;return(0,l.remove)(function(e){return(0,l.includes)(n,V.partType)&&(0,l.includes)(e.name,V.formats)||a&&(0,l.includes)(e.name,z)||!o&&(0,l.includes)(e.name,G)||(u||s)&&(0,l.includes)(e.name,H)},t)},isLinear:function(e,t){var a=(0,l.get)("properties.otherProps.axis.izCategory",e),r=(0,l.get)("previewDataTypeByFunction",e);return t.hasOwnProperty("izXYplane")&&!a&&(0,l.includes)(r,y.LIST_COUNTABLE_DATA_TYPE)},checkCanUnsort:function(e,t,a,r){var n=(0,l.getOr)("","name",t);switch(e){case E.GRID_STYLES.VERTICAL.value:case E.GRID_STYLES.HORIZONTAL.value:return n!==E.CONTAINER_NAME.SEPARATORS&&!(!(0,l.isUndefined)(a)&&function(e,t){return!(!e.hasSubTotal||(0,l.isEmpty)(e.properties.dataFormattings.subTotal.function))||(0,l.flow)((0,l.map)(function(e){return e.elements}),(0,l.flatMap)(Pe),(0,l.filter)(function(e){return!(0,l.isUndefined)(e)&&e.hasSubTotal}),(0,l.some)(function(t){return(0,l.includes)("["+e.fieldName.toLowerCase()+"]",(0,l.getOr)("","properties.dataFormattings.subTotal.expression",t).toLowerCase())}))(t)}(a,r)&&function(e){return(0,l.flow)((0,l.map)(function(e){return e.elements}),(0,l.flatMap)(Pe))(e).length}(r)>32);case E.GRID_STYLES.DRILL_DOWN.value:case E.GRID_STYLES.PIVOT.value:return!1}return!1},getFunction:ue,openOtherItemsAction:function(e,t,a){return e.openPopup(te,{dataSource:t,isClickable:a}).then(function(e){return{record:e}})},getDataUtils:function(e,t,a,r,n){var i=e.reportStore,o=e.reportFilters;o.filterFields.forEach(function(e){return e.requiredFilterNotApply=!1});var l=Le(o);return l?r("Information",{description:l,type:"info",isHTMLFormat:!0,showCloseIndicator:!0}).then(function(){return!1}):(t&&o.updateConfigFieldList(),a.startLoading(),i.detectSchemaChange().then(function(e){return e.hasChanged?r("Information",{description:X.UPDATE_RESULT(e.filterFields),type:"info",isHTMLFormat:!0,showCloseIndicator:!0}).then(i.updateResults.bind(i)):n()}).finally(function(){return o.resetUpdateResult(),a.endLoading(),!0}))},checkFilterRule:Le,updateThresholdFunction:function(e,t,a,r){var n=(0,l.find)({name:ae.ContainerName.THRESHOLDS_SUBTOTAL},r.customContainers);if(n){(0,l.forEach)(function(e){var r=(0,l.get)("properties.dataFormattings",e);r.function=t,r.functionInfo.name=a,r.functionInfo.id=t},n.elements);var i=(0,l.getOr)(null,"properties.dataFormattings.color.cellColor",e);if(i){var o=(0,l.flow)(l.values,l.compact)(i);(0,l.forEach)(function(e){e.value&&(0,l.forEach)(function(e){e&&e.thresholdType===re.THRESHOLD.THRESHOLD_TYPES.DYNAMIC_SUBTOTAL.value&&(0,l.forEach)(function(e){e.functionId=t,e.functionName=a},e.fields)},e.value)},o)}}},applyConditionalFormattingForHorizontalAndVerticalGrids:function(e,t){var a=Me(t),r=a.allRules,n=a.checkCondition,i=a.setFormat;(0,l.forEach)(function(e){var t=(0,l.filter)(function(t){return n(e,t.condition)},r),a=i(t);e.conditionalFormatting=a},e)},applyConditionalFormattingForPivotAndDrilldownGrids:function(e,t){var a=Me(t),r=a.allRules,n=a.checkCondition,i=a.setFormat,o=a.checkAdditionalConditions;e.forEach(function(e){var t=function(e){return r.filter(function(t){for(var a=t.condition,r=(0,l.getOr)([],"additionalConditions",a),i=0;ia.priority)&&(l[t]=r)})},u=0;ut.priority)&&(a[e]=r)})}}}(e),a},getTextContentFromHtmlString:function(e){var a="";return t.parseHTML(e).forEach(function(e){return a+=e.textContent}),a},isInvalidRunningField:function(e,t,a){if(!a)return!1;var r=g.REPORT_PART_TYPE,n={};switch(e.type){case r.Chart:n={name:"Chart",key:"chartType"};break;case r.Gauge:n={name:"Gauge",key:"reportPartStyle"};break;case r.Map:n={name:"Map",key:"chartType"};break;case r.Grid:n={name:"Grid",key:"gridStyle"}}var i=e.reportPartContent[n.key];return(0,l.includes)(t.name,O.RUNNING_FUNCTION_INVALID_CONTAINER[n.name][i])}}}()}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(964)),n=o(a(1536)),i=o(a(12));function o(e){return e&&e.__esModule?e:{default:e}}t.default={fontFamily:{proxima:"Proxima Nova",roboto:"Roboto",georgia:"Georgia",palatinoLinotype:"Palatino Linotype",bookAntiqua:"Book Antiqua",timesNewRoman:"Times New Roman",arial:"Arial",helvetica:"Helvetica",arialBlack:"Arial Black",impact:"Impact",lucidaSansUnicode:"Lucida Sans Unicode",tahoma:"Tahoma",verdana:"Verdana",courierNew:"Courier New",lucidaConsole:"Lucida Console"},fontSize:[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72],defaultFontSize:14,defaultFontFamily:"Proxima Nova",defaultUnitType:"px",copyright:"Copyright 2016 Izenda, Inc.",columnWidthSetting:{get pixels(){return i.default.getText("UI_CONSTANT_PIXELS")},get characters(){return i.default.getText("UI_CONSTANT_CHARACTERS")}},borderColor:"#000",dashStyles:["solid","dotted","dashed"],borderWidth:1,borderWidthMin:1,borderWidthMax:6,reportPartGridDefault:{backgroundColor:"#fff"},backgroundColor:"#fff",textColor:"#000",alpha:1,isAlpha:!1,textBackgrounColor:"#fff",defaultDashStyles:"solid",MATH:{maxSignedInt32Bits:Math.pow(2,31)-1},SIZE:{WIDTH:{VALUE:null,UNIT:"Pixels"},HEIGHT:{VALUE:null,UNIT:"Pixels"}},Number:{DECIMAL_FORMAT:"-#,###.##",MIN:n.default,MAX:r.default},CHECKBOX_STATUS:{CHECKED:"checked",UNCHECK:"unchecked",INDETERMINATE:"indeterminate"},Messages:{get NoDataToShow(){return i.default.getText("NO_DATA_TO_SHOW")}},UNDEFINED_VALUE:"[UNDEFINED VALUE]",NULL_VALUE:"[NULL]",BLANK_VALUE:"[BLANK]",dropdownMaxHeight:240,DEFAUFT_DROPDOWN_ITEMS:8,LAZY_LOADING_DEFAULT_ITEMS_NUMBER:100,LAZY_LOADING_DEFAULT_PAGE_INDEX:3,DEFAULT_DEBOUNCE_TIME:500,IMAGE_CONVERSION_DELAY:1e3,MIDDLE_PANEL_LIST_MAX_HEIGHT:780,BASE_PADDING_TOP_WITH_PARENT_PIXEL:30,PAGING_SIZE_OPTIONS:[10,25,50,100,200],MOBILE_WIDTH:1024,MOBILE_XS_WIDTH:768,MOBILE_WIDTH_HEIGHT:"100%",MOBILE_GRID_ITEM_WIDTH:12,MOBILE_GRID_ITEM_HEIGHT:10,MASKED_TEXT:"●●●●●●●●●●",DEFAULT_COLOR_PALETTE:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"],LABEL_POSITION:{left:i.default.getText("GRID_POPUP_LABEL_POSITION_LEFT"),right:i.default.getText("GRID_POPUP_LABEL_POSITION_RIGHT")},DEFAULT_LABEL_POSITION:i.default.getText("GRID_POPUP_LABEL_POSITION_RIGHT"),COLOR_TYPE:{BACKGROUND_COLOR:"backgroundColor",TEXT_COLOR:"textColor"}},e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(58)),n=o(a(12)),i=a(1);function o(e){return e&&e.__esModule?e:{default:e}}var l={get izNormal(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_NORMAL")},get izPercent(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_PERCENTAGE")}},s={get solid(){return n.default.getText("REPORT_PART_PROPS_CHART_SCHEMA_LABEL_SOLID")},get dotted(){return n.default.getText("REPORT_PART_PROPS_CHART_SCHEMA_LABEL_DOT")},get dashed(){return n.default.getText("REPORT_PART_PROPS_CHART_SCHEMA_LABEL_DASH")}},u={get izCenter(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_CENTER")},get izLeft(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_LEFT")},get izRight(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_RIGHT")}},d={get izTop(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_TOP")},get izMiddle(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_MIDDLE")},get izBottom(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_BOTTOM")}},c={get izHorizontal(){return n.default.getText("REPORT_PART_PROPS_CHART_SCHEMA_LABEL_LAYOUT_HORIZONTAL")},get izVertical(){return n.default.getText("REPORT_PART_PROPS_CHART_SCHEMA_LABEL_LAYOUT_VERTICAL")}},p={get izLeft(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_LEFT")},get izCenter(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_CENTER")},get izRight(){return n.default.getText("CHART_DEFAULT_CONFIG_LABEL_RIGHT")}},f={get rangeOnly(){return n.default.getText("REPORT_PART_PROPS_CHART_SCHEMA_LABEL_RANGE_ONLY")},get rangeWithAverage(){return n.default.getText("REPORT_PART_PROPS_CHART_SCHEMA_LABEL_RANGE_WITH_AVERAGE")}},h={get basic(){return n.default.getText("REPORT_PART_PROPS_CHART_SCHEMA_LABEL_BASIC")},get ring(){return n.default.getText("REPORT_PART_PROPS_CHART_SCHEMA_LABEL_RING")},get semiCirle(){return n.default.getText("REPORT_PART_PROPS_CHART_SCHEMA_LABEL_SEMI_CIRCLE")}},m={DEFAULT_SORT:{labels:"Unsorted",values:"Unsorted",separators:"ASC"}},g={DEFAULT_SORT:{labels:"Unsorted",values:"Unsorted",separators:"ASC",sup_kpi:"Unsorted"}};t.default={CHART_TYPE:{Line:"Line",Column:"Column",Bar:"Bar",Area:"Area",Pie:"Pie",Funnel:"Funnel",Donut:"Donut",Combination:"Combination",TreeMap:"TreeMap",HeatMap:"HeatMap",Bubble:"Bubble",Scatter:"Scatter",Waterfall:"Waterfall",Sparkline:"Sparkline",SolidGauge:"SolidGauge",LinearGauge:"LinearGauge",SimpleGauge:"SimpleGauge",SimpleKPI:"SimpleKPI",Map:"Map"},OptionsValue:{STACK_TYPE_CHART:l,LINE_STYLE:s,LABEL_ROTATION:{izNormal:"Normal",izCounterclockwise:"Counterclockwise",izClockwise:"Clockwise",izTextup:"Textup",izTextdown:"Textdown"},HORIZONTAL_ALIGN:u,VERTICAL_ALIGN:d,LAYOUT_ALIGN:c,ZOOM_TYPE:{izX:"X",izY:"Y",izXY:"XY"},STEP_TYPE:p,RANGE:f,PIE_CHART_STYPE:h},MappingValues:{AXIS_ALIGN_VALUES:{izHigh:"high",izMiddle:"middle",izLow:"low"},STACK_TYPE_CHART_VALUES:{izNormal:"normal",izPercent:"percent"},LINE_STYLE_VALUES:{solid:"Solid",dotted:"Dot",dashed:"Dash"},LABEL_ROTATION_VALUES:{izNormal:0,izCounterclockwise:-45,izClockwise:45,izTextup:-90,izTextdown:90},HORIZONTAL_ALIGN_VALUES:{izCenter:"center",izLeft:"left",izRight:"right"},VERTICAL_ALIGN_VALUES:{izTop:"top",izMiddle:"middle",izBottom:"bottom"},LAYOUT_ALIGN_VALUES:{izHorizontal:"horizontal",izVertical:"vertical"},ZOOM_TYPE_VALUES:{izX:"x",izY:"y",izXY:"xy"},STEP_TYPE_VALUES:{izLeft:"left",izCenter:"center",izRight:"right"}},DefaultConfig:{LEGEND_HORIZONTAL_ALIGNMENT:"izRight",LEGEND_VERTICAL_ALIGNMENT:"izBottom",LEGEND_LAYOUT_ALIGNMENT:"izHorizontal",get METRIC_ALL(){return n.default.getText("COMMON_LABEL_ALL")},HeatMap:{MIN_COLOR:"#FFFFFF",LABEL_COLOR:"#000000",DEFAULT_SORT:{labels:"Unsorted",values:"Unsorted"}},Line:m,Column:m,Bar:m,Area:m,Pie:m,Funnel:{DEFAULT_SORT:{labels:"Unsorted",values:"Unsorted",separators:"ASC"}},Donut:m,Combination:m,TreeMap:{DEFAULT_SORT:{separators:"ASC"}},Bubble:{DEFAULT_SORT:{labels:"Unsorted",values:"Unsorted"}},Scatter:m,Waterfall:m,Sparkline:{DEFAULT_SORT:{intervals:"Unsorted",labels:"Unsorted",separators:"ASC"}},SolidGauge:g,LinearGauge:g,SimpleGauge:g,Map:{}},getOptions:function(e,t){var a=this.OptionsValue[e];if(t){var n={};return(0,r.default)(a).forEach(function(e){n[e]=e}),n}return(0,i.chain)(a).toPairs().map(function(e){return{label:e[1],value:e[0]}}).value()}},e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n=l(a(58)),i=a(1),o=l(a(42));function l(e){return e&&e.__esModule?e:{default:e}}var s=a(41),u=a(43),d=a(606),c=a(18),p=a(229),f=a(16),h=a(97).CUSTOM_URL,m=a(308),g=a(229);a(1655);var E="p";function y(){for(var e=arguments.length,t=Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},a=u.BaseUrl,r=function e(t){return t?e(t.parent)+"/"+t.path:""}(e),i=(0,n.default)(t).reduce(function(e,a){var n=new RegExp("\\(?/?:"+a+"\\)?","i"),i=n.exec(r),o=i&&i[0].indexOf("/")>=0?"/"+t[a]:t[a];return e.replace(n,o)},r).replace(/\((.*?)\)?\)/,"").replace(")","");return String.concatToUrl([a,i])}function T(e,t,a){var r=(0,i.get)(e,y());return(0,o.default)(r,"must have component route in Route Constants"),v((0,i.getOr)(r,"children."+t,r),a)}var _=(0,i.partial)(T),S=_(["Settings"]),C=_(["Dashboard"]),b=_(["Report"]),N=_(["Explore"]),A=_(["ReportDesigner"]),R=_(["Viewer"]),O=_(["ReportViewer"]),I=_(["MyProfile"]);function D(e,t,a){var r=(0,i.get)("fieldElement.fieldNameAlias",a),n=s.advancedSettings.other.encodeVariablesInCustomUrlValue;return t.forEach(function(t){var a=n?encodeURIComponent(t.value):t.value;e=e.replace("{["+t.fieldNameAlias+"]}",a),t.fieldNameAlias===r&&(e=e.replace("{0}",a))}),e}function P(e,t){return b("View",{id:t})+p.buildSubReportQuery(e)}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=window.location,n=decodeURIComponent(r.hash),i=r.origin,o=r.pathname,l=r.search,s=r.protocol,d=r.hostname,c=r.port;i&&"null"!==i||(i=s+"//"+(d+(c?":"+c:c)));var p=t?(e.indexOf("?")>-1?"&":"?")+t:"",f=""+i+(i.match(/\/$/)?"":"/")+e.replace(/^\//,"")+p;if(u.Integration&&!a){var h=n?n.replace(/\?source=[^&]+&?/i,""):"",m=h.replace(/^#/,""),g=void 0;g=l.toLowerCase().indexOf(m.toLowerCase())>=0?""+i+o+l+"#":""+i+o+l+"#"+m;var E=e+(t?"?"+t:"");f=""+g+(h.indexOf("?")>-1?"":"?")+"source="+E}return f}function M(e,t){if(!(0,i.isNil)(e)){!(0,i.isNil)(t)&&(e.query=t);var a=r.param(e.query);x(e.pathname+(a?"?"+a:""))}}function F(){return function(e){var t=/\?source=?(.+)/g.exec(location.hash),a=e;if(t){var r=t[1];a=r||e}return a}(u.BaseUrl)}function k(){var e=window.location.href.indexOf("/iframe/")>-1,t=d.parse(window.location.search),a=!(0,i.isNil)((0,i.get)("token",t));return e&&a}function x(e){decodeURIComponent(location.hash)!==decodeURIComponent(w(e))&&(location.hash=w(e))}function w(e){return function(e){return e&&e.match(/^(.+?)\?source=?/g)}(e)?e:(t=decodeURIComponent(location.hash),((a=/^(.+?)\?source=?/g.exec(t))?a[1]:t)+"?source="+e);var t,a}t.default={getUrl:T,getSettingsUrl:S,getDashboardUrl:C,getMyProfileUrl:I,getReportUrl:b,getExploreUrl:N,getReportDesignerUrl:A,getViewerUrl:R,getReportViewerUrl:O,getConfigRoute:y,getRouteUrl:v,openSubReport:function(e,t,n,o){var l=e.reportPart,s=m.buildFilterDataCommon(n,t.mappingFields,l);if(!s.success)return e.confirmMessage("error",s.errors);var u=e.getFilterInfoForSubReport(),p=t.selectedReport;if(t.style===c.DRIL_DOWN_STYLE.POPUP){var h=m.buildFilterDataForEmbededReportPart(s.fieldMapping,l,t,u),E=a(1656)();return e.openPopup(E,{reportId:p,queryObject:h})}var y=m.buildFilterDataForURL(s.fieldMapping,l,o.fieldElement,t,u);if(!y.success)return e.confirmMessage("error",y.errors);var v=g.convertFilterToQuery((0,i.omit)(["success"],y))||{},T=k();if(T){var _=d.parse(window.location.search);v.token=(0,i.get)("token",_)}var S=r.param(v),C=b(T?"IframeExport":"View",{id:p})+"?"+S;if(t.style===c.DRIL_DOWN_STYLE.LINK){var N=window.location.href.indexOf("/view/")>-1;return f.isDirty&&!N?e.confirmMessage("info",c.BUNDLE.MESSAGE.OPEN_SUB_REPORT_WARNING):(e.router?e.router.push(C):window.location.href=C,null)}window.open(L(C,null,!0),"_blank")},openCustomURL:function(e,t,a,r,n,i){var o=e.confirmDirtyForm,l=e.router,s=t.url,u=t.option,d=n?D(s,a,i):P(a,r),c=window,p=c.innerWidth,m=c.innerHeight;switch(u){case h.OPTIONS.LINK_CURRENT_WINDOW:o(f.isDirty,{onConfirmDirtyForm:f.onOkDirtyForm}).then(function(){n?window.open(d,"_top"):l?l.push(d):window.location.href=d});break;case h.OPTIONS.LINK_NEW_WINDOW:window.open(n?d:L(d,null,!0),"_blank","toolbar=1,location=1,menubar=1,statusbar=1,width="+p+",height="+m);break;case h.OPTIONS.LINK_NEW_TAB:window.open(n?d:L(d,null,!0))}return null},getCustomURLExternalLink:D,getCustomURLInternalLink:P,transformQueryToFilters:function(e){return(0,i.chain)(e).keys().filter(function(e){return(0,i.startsWith)(E,(0,i.lowerCase)(e))}).map(function(t){return{positionString:t.substring(1),value:decodeURIComponent(e[t])}}).value()},makeAbsoluteUrl:L,listenHistoryChange:function(e,t,a){var r=e.synergyHistory,n=e.isPageLoad,o=!0;UrlHashMonitor.init(),r.listenBefore(function(e){M(e,o?a:null)}),"onhashchange"in window&&(window.onhashchange=function(e){l(),r.push(F())}),function(e,t,a){if(t){var r=F();(0,i.isEqual)(r,u.BaseUrl)?e.push(a):e.push(r)}else e.push(a)}(r,n,t);var l=r.listen(function(e){M(e,o?a:null),o=!1})},getHashLocation:F,getPreviousLink:function(){return u.Integration?F():window.location.pathname},getNoPermissionUrl:function(){return(u.BaseUrl+"/NoPermission").replace("//","/")},getPathForIntegration:function(e){return w(e)},checkIframeExported:k},e.exports=t.default}).call(t,a(27))},,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={PERMISSION_KEY:{FullReportAndDashboardAccess:"fullReportAndDashboardAccess",SystemConfigurationScheduledInstancesValue:"systemConfiguration.scheduledInstances.value",TenantSetupActionsCreate:"tenantSetup.actions.create",TenantSetupActionsEdit:"tenantSetup.actions.edit",TenantSetupActionsDel:"tenantSetup.actions.del",TenantSetupPermissionsValue:"tenantSetup.permissions.value",DataSetupDataModelValue:"dataSetup.dataModel.value",DataSetupDataConnectorsValue:"dataSetup.dataConnectors.value",DataSetupDataModelCustomViewCreate:"dataSetup.dataModel.customView.create",DataSetupDataModelCustomViewEdit:"dataSetup.dataModel.customView.edit",DataSetupDataModelCustomViewDelete:"dataSetup.dataModel.customView.delete",DataSetupAdvancedSettingsCategory:"dataSetup.advancedSettings.category",DataSetupAdvancedSettingsOthers:"dataSetup.advancedSettings.others",DataSetupImportValue:"dataSetup.import.value",UserSetupUserRoleAssociationValue:"userSetup.userRoleAssociation.value",UserSetupActionsCreate:"userSetup.actions.create",UserSetupActionsEdit:"userSetup.actions.edit",UserSetupActionsDel:"userSetup.actions.del",UserSetupActionsConfigureSecurityOptions:"userSetup.actions.configureSecurityOptions",RoleSetupActionsCreate:"roleSetup.actions.create",RoleSetupActionsEdit:"roleSetup.actions.edit",RoleSetupActionsDel:"roleSetup.actions.del",RoleSetupDataModelAccessValue:"roleSetup.dataModelAccess.value",RoleSetupPermissionsValue:"roleSetup.permissions.value",RoleSetupGrantRoleWithFullReportAndDashboardAccessValue:"roleSetup.grantRoleWithFullReportAndDashboardAccess.value",ReportsCanCreateNewReportValue:"reports.canCreateNewReport.value",ReportsShowExploreMenuValue:"reports.showExploreMenu.value",ReportsDataSourcesSimpleDataSources:"reports.dataSources.simpleDataSources",ReportsDataSourcesAdvancedDataSources:"reports.dataSources.advancedDataSources",ReportsReportPartTypesChart:"reports.reportPartTypes.chart",ReportsReportPartTypesForm:"reports.reportPartTypes.form",ReportsReportPartTypesGauge:"reports.reportPartTypes.gauge",ReportsReportPartTypesKPI:"reports.reportPartTypes.kpi",ReportsReportPartTypesMap:"reports.reportPartTypes.map",ReportsReportPartTypesEnableGoogleAddress:"reports.reportPartTypes.isEnableGoogleAddress",ReportsCanCreateNewCategoryValue:"reports.reportCategoriesSubcategories.canCreateNewCategory.value",ReportsPreventReportSharingValue:"reports.reportCategoriesSubcategories.preventReportSharing.value",ReportsFilterPropertiesFilterLogic:"reports.filterProperties.filterLogic",ReportsFilterPropertiesCrossFiltering:"reports.filterProperties.crossFiltering",ReportsFieldPropertiesCustomURL:"reports.fieldProperties.customURL",ReportsFieldPropertiesEmbeddedJavaScript:"reports.fieldProperties.embeddedJavaScript",ReportsFieldPropertiesSubreport:"reports.fieldProperties.subreport",ReportsActionsSchedule:"reports.actions.schedule",ReportsActionsEmail:"reports.actions.email",ReportsActionsViewReportHistory:"reports.actions.viewReportHistory",ReportsActionsDel:"reports.actions.del",ReportsActionsRegisterForAlerts:"reports.actions.registerForAlerts",ReportsActionsPrint:"reports.actions.print",ReportsActionsUnarchiveReportVersions:"reports.actions.unarchiveReportVersions",ReportsActionsOverwriteExistingReport:"reports.actions.overwriteExistingReport",ReportsActionsSubscribe:"reports.actions.subscribe",ReportsActionsExporting:"reports.actions.exporting",ReportsActionsConfigureAccessRights:"reports.actions.configureAccessRights",DashboardsCanCreateNewDashboardValue:"dashboards.canCreateNewDashboard.value",DashboardsCanCreateNewCategoryValue:"dashboards.dashboardCategoriesSubcategories.canCreateNewCategory.value",DashboardsActionsSchedule:"dashboards.actions.schedule",DashboardsActionsEmail:"dashboards.actions.email",DashboardsActionsDel:"dashboards.actions.del",DashboardsActionsSubscribe:"dashboards.actions.subscribe",DashboardsActionsPrint:"dashboards.actions.print",DashboardsActionsExporting:"dashboards.actions.exporting",DashboardsActionsOverwriteExistingDashboard:"dashboards.actions.overwriteExistingDashboard",DashboardsActionsConfigureAccessRights:"dashboards.actions.configureAccessRights",SchedulingSchedulingScopeSystemUsers:"scheduling.schedulingScope.systemUsers",SchedulingSchedulingScopeExternalUsers:"scheduling.schedulingScope.externalUsers",EmailingDeliveryMethodLink:"emailing.deliveryMethod.link",EmailingDeliveryMethodEmbeddedHTML:"emailing.deliveryMethod.embeddedHTML",EmailingDeliveryMethodAttachment:"emailing.deliveryMethod.attachment",EmailingAttachmentTypeWord:"emailing.attachmentType.word",EmailingAttachmentTypeExcel:"emailing.attachmentType.excel",EmailingAttachmentTypePdf:"emailing.attachmentType.pdf",EmailingAttachmentTypeCsv:"emailing.attachmentType.csv",EmailingAttachmentTypeXml:"emailing.attachmentType.xml",EmailingAttachmentTypeJson:"emailing.attachmentType.json",EmailingAttachmentTypeDefinition:"emailing.attachmentType.definition",ExportingExportingFormatWord:"exporting.exportingFormat.word",ExportingExportingFormatExcel:"exporting.exportingFormat.excel",ExportingExportingFormatPdf:"exporting.exportingFormat.pdf",ExportingExportingFormatCsv:"exporting.exportingFormat.csv",ExportingExportingFormatXml:"exporting.exportingFormat.xml",ExportingExportingFormatJson:"exporting.exportingFormat.json",ExportingExportingFormatDefinition:"exporting.exportingFormat.definition",ExportingExportingFormatQueryExecution:"exporting.exportingFormat.queryExecution",ExportingExportingFormatIframe:"exporting.exportingFormat.iframe",SystemwideCanSeeSystemMessagesValue:"systemwide.canSeeSystemMessages.value"},PERMISSION_OPERATOR:{And:"&&",Or:"||"},ACCESS_RIGHT:{FullAccess:1,SaveAs:2,QuickEdit:3,Locked:4,ViewOnly:5,NoAccess:6}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s=h(a(17)),u=h(a(23)),d=h(a(2)),c=h(a(3)),p=a(5),f=a(1);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,a,r){a&&(0,s.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function g(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var E=(r=function(){function e(){(0,d.default)(this,e),m(this,"advancedSettings",n,this),m(this,"systemDate",i,this),m(this,"useLegacyMhtExcelExport",o,this),m(this,"useLegacyMhtWordExport",l,this),this.containerElement=null,this.countryCodes=[],this.currentUserContext={token:null}}return(0,c.default)(e,[{key:"dataSourceLimitValue",get:function(){return this.advancedSettings.performance.dataSourceLimitValue}},{key:"appSettings",get:function(){return this.appSettings}}]),(0,c.default)(e,[{key:"setPerformance",value:function(e){this.advancedSettings.performance=e}},{key:"setSecurity",value:function(e){this.advancedSettings.security=e}},{key:"setOther",value:function(e){this.advancedSettings.other=e}},{key:"setSystemSettings",value:function(e){e.success&&(this.systemDate=(0,f.get)("data.systemDate",e),this.useLegacyMhtExcelExport=(0,f.getOr)(!1,"data.useLegacyMhtExcelExport",e),this.useLegacyMhtWordExport=(0,f.getOr)(!1,"data.useLegacyMhtWordExport",e))}},{key:"setCountryCodes",value:function(e){this.countryCodes=e}},{key:"canShowPreview",value:function(){return(0,f.get)("advancedSettings.other.showPreviewValue",this)}},{key:"doesHideReportHeaderAndFooter",value:function(){return(0,f.get)("advancedSettings.other.hideReportHeaderAndFooterValue",this)}},{key:"isRenderHtmlInReportViewer",value:function(){return(0,f.getOr)(!1,"advancedSettings.security.renderHtmlInReportViewerValue",this)}}]),e}(),n=g(r.prototype,"advancedSettings",[p.observable],{enumerable:!0,initializer:function(){return{performance:{},security:{},other:{}}}}),i=g(r.prototype,"systemDate",[p.observable],{enumerable:!0,initializer:function(){return null}}),o=g(r.prototype,"useLegacyMhtExcelExport",[p.observable],{enumerable:!0,initializer:function(){return!1}}),l=g(r.prototype,"useLegacyMhtWordExport",[p.observable],{enumerable:!0,initializer:function(){return!1}}),g(r.prototype,"dataSourceLimitValue",[p.computed],(0,u.default)(r.prototype,"dataSourceLimitValue"),r.prototype),g(r.prototype,"setPerformance",[p.action],(0,u.default)(r.prototype,"setPerformance"),r.prototype),g(r.prototype,"setSecurity",[p.action],(0,u.default)(r.prototype,"setSecurity"),r.prototype),g(r.prototype,"setOther",[p.action],(0,u.default)(r.prototype,"setOther"),r.prototype),r);t.default=new E,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var a=arguments.length,r=Array(a>2?a-2:0),n=2;n0&&(this.tableStore.tableHeight<=0||this.tableStore.tableHeight!==e.minHeight)&&this.tableStore.updateHeight(e.minHeight)},finishedRender:function(e){var a=this,r=this.props,n=this.refs.table,i=r.draggableTable?21:0;if(r.containerWidth===1/0&&r.autoResize&&(D(e)||e.children!==r.children)){var o=t(n).width();this.changeTableWidth(Math.floor(o)-i,r.children,!0)}if(r.minHeight>0&&r.showScroll&&!this.isHeightUpdated&&(this.tableStore.updateHeight(r.minHeight,this.refs.headerTable.clientHeight),this.isHeightUpdated=!0),this.headerGroupAfterRenderCallBack(),this.headerAfterRenderCallBack(),this.cellAfterRenderCallBack(),this.afterRenderCallBack(),r.stickHorizontal){var l=this.refs.tableBody.offsetWidth;l>0&&n.style.setProperty("width",l+"px")}if(!this.isSupportSticky){var s=this.refs.headerTable,d=u.findScrollableParent(n),c=this.refs.virtualHeaderTable;if(c&&(c.style.setProperty("width",s.offsetWidth+"px"),c.style.setProperty("height",s.offsetHeight+"px")),r.stickVertical||r.stickHorizontal){var p=0,f=0;t(d).on("scroll",function(e){var t=e.target;p!==t.scrollTop&&r.stickVertical&&(p=t.scrollTop,a.tableStore.updateTopPosition(t,n)),f!==t.scrollLeft&&r.stickHorizontal&&(f=t.scrollLeft,a.tableStore.updateLeftPosition(t,n))})}r.stickVertical?this.tableStore.updateTopPosition(d,n):this.tableStore.resetTopPosition(),r.stickHorizontal?this.tableStore.updateLeftPosition(d,n):this.tableStore.resetLeftPosition()}},componentDidMount:function(){var e=this.props,a=this.refs.table,r=e.draggableTable?21:0;e.containerWidth===1/0&&e.autoResize&&s.listenTo(a,L(250,function(){var e=t(a).width();!this.userResizing&&this.changeTableWidth(Math.floor(e)-r,this.props.children,!0)}.bind(this))),document.addEventListener("click",this.handleOutsideClick),this.finishedRender()},componentDidUpdate:function(e){this.finishedRender(e)},componentWillUnmount:function(){var e=this.refs.table;this.props.containerWidth===1/0&&this.props.autoResize&&s.removeAllListeners(e)},render:function(){var e=this,t=this.tableStore,a=this.props,r=a.showScroll,i=a.stickVertical,o=a.stickHorizontal,s=a.className,u=a.containerWidth,d=a.children,c=a.tableStyle,p=a.draggableTable,h=a.rowSpan,m=a.defaultColumnWidth,g=a.removeHeaderForViewer,E=a.removeBodyForViewer,y=a.sourceForm,v=a.isGridPreviewModal,T=M(n.Children.toArray(d)),_=F(c,u===1/0?{width:"100%"}:null),S=l("table",s,{"default-table":!s});"report-part-grid"!==y&&"report-part-grid-pivot"!==y||(_.borderRadius="10px",_.width="fit-content",S=l(S,"table-new-grid"));var N=l("table-header",{"u-stickTop":i});t.resetHeaderGroups(),this.columnHeaderCounter=0;var A=this.tableStore.menuSetting;return n.createElement("section",{ref:"table",className:S,style:_},i&&!this.isSupportSticky&&n.createElement("div",{className:"u-posAbsolute u-virtualStickTop"}),!g&&n.createElement("div",{className:N,ref:"headerTable"},n.createElement("div",{className:"table-row"},p&&n.createElement("div",{className:"table-cell u_paddingAll"}),h&&n.createElement(C,{width:h.width||m,cell:k(null),handleItemClick:this.handleItemClick,sourceForm:a.sourceForm,selectCell:this.tableStore.selectCell}),o&&!this.isSupportSticky&&n.createElement("div",{className:"u-virtualStickLeft"}),T.map(this.renderHeaderCells.bind(this,1,[])))),!E&&(r?n.createElement(f,{onScroll:this.handleScroll,containerStyle:{height:t.bodyHeight}},this.renderBody()):this.renderBody()),!g&&!v&&n.createElement(b,{isVisible:A.isVisible,mouseEvent:A.mouseEvent,root:this,cellInfor:A.cellInfor,needUpdatePreview:a.needUpdatePreview,onSetFunctionCallback:a.onSetFunctionCallback,onSetFormatterCallback:a.onSetFormatterCallback,reportPart:a.reportPart,sourceForm:a.sourceForm,previewRecords:a.previewRecords,ref:function(t){return e.elm=t},item:"Item 1",localization:a.localization,isPreview:a.isPreview,isExploreView:a.isExploreView,exploreStore:a.exploreStore,reportDesignerFieldStore:a.store}))},renderBody:function(){var e=this.props,t=this.renderTableBody();if(e.rowSpan&&!e.staticRender){var a=l("table-cell",{"u-stickLeft":e.stickHorizontal});return n.createElement("div",{className:"table-row",ref:"tableBody"},e.stickHorizontal&&!this.isSupportSticky&&n.createElement("div",{className:"u-virtualStickLeft"}),n.createElement("div",{className:a},n.createElement(S,{tableStore:this.tableStore,rowSpan:e.rowSpan,width:e.rowSpan.width||e.defaultColumnWidth})),n.createElement("div",{className:"table-cell"},t))}return t},disableSyncHeaderHeightOnce:function(){this.skipSyncHeaderHeight=!0,this.skipSyncGroupHeaderHeight=!0},handleOutsideClick:function(e){var t=this.tableStore.menuSetting,a=t.isVisible,r=t.sourceFlag,n=!(e.target.contains===this.elm),i=this.tableStore.menuSetting;n&&!r&&a&&(i.isVisible=!1,i.sourceFlag=!1,this.disableSyncHeaderHeightOnce(),this.tableStore.updateMenuSetting(i)),i.sourceFlag=!1},toggleContextMenu:function(e){var t=e.nativeEvent,a={isVisible:!this.tableStore.menuSetting.isVisible,mouseEvent:t,sourceFlag:!1};this.tableStore.updateMenuSetting(a)},openMenu:function(e){e.preventDefault(),this.toggleContextMenu(e)},renderTableBody:function(){var e=this.props.getChildItems,t=this.props.dataSource,a=this.tableStore.selectCell;this.props.sourceForm,a.left,a.top,a.width,a.height;return n.createElement("div",{className:"table-body",ref:"tableBody",style:{position:"relative"}},x(t)?this.renderNoRecordFound():this.props.staticRender?this.renderRows(t):n.createElement(c,{bufferClassName:"table-row",dataSource:t,renderItem:this.renderRow,getItemKey:w("getId"),getChildItems:e,registerVirtualStore:this.registerVirtualStore}))},renderNoRecordFound:function(){var e=this.props.isLoading?this.props.loadingText:_.getText("COMMON_MESSAGES_NO_RECORD_FOUND");return n.createElement("div",{className:"u_paddingAll"},e)},staticRenderRowSpan:function(e){var t=this.props,a=I("rowSpan",t),r=0,i=B(["fnGetCellStyle","fnGetCellContentStyle","cell"],a),o=O.convert({cap:!1});return M(o(function(o,l){var s=r+o.size,u=e.slice(r,s);return r=s,x(u)?null:n.createElement("div",{key:r,className:"table-row"},n.createElement(C,(0,X.default)({rowSpan:o,width:a.width||t.defaultColumnWidth},i,{index:l,handleItemClick:this.handleItemClick,selectCell:this.tableStore.selectCell,sourceForm:t.sourceForm})),n.createElement("div",{className:"table-cell"},u))},a.data))},renderRows:function(e){var t=this.props,a=U((e=e||[]).map(function(e,t){var a=this.renderRow(e,t);return Y(W,a)}.bind(this)));return I("rowSpan",t)?this.staticRenderRowSpan(a):a},renderRow:function(e,t){var a=G(null,"currentRow.isHiddenRowFn",e);if(a&&a())return null;var r=this.props,i=this.getAllColumns(r.children),o=this.tableStore.getActualColumnWidths(),l=r.draggableTable?v:E;return n.createElement(l,{key:e.getId&&e.getId()||t,rowSpan:r.rowSpan,rowProps:r.rowProps,rowData:e,columns:i,columnWidths:o,move:r.move,canDrop:r.canDrop,index:t,canDrag:r.canDrag,warning:r.warning,onClickRow:r.onClickRow,isHighLight:r.isHighLight,didUpdate:this.afterRenderCallBack,registerCell:this.registerCell,unregisterCell:this.unregisterCell,stickHorizontal:r.stickHorizontal,isSupportSticky:this.isSupportSticky,tableStore:this.tableStore,cellAfterRenderCallBack:this.cellAfterRenderCallBack,handleItemClick:this.handleItemClick,sourceForm:r.sourceForm,selectCell:this.tableStore.selectCell})},handleCellUpdate:function(e){var t=this.tableStore.selectCell.tableBody;t.leftt.bottom||this.tableStore.updateSelectCell({rowIndex:-1,columnIndex:-1,top:-1,left:-1,width:0,height:0})},handleMenuClick:function(e,t,a){var r=this.tableStore.menuSetting,n={clientX:t.x,clientY:t.y};r.isVisible=!0,r.mouseEvent=n,r.sourceFlag=!0,r.cellInfor=a,this.disableSyncHeaderHeightOnce(),this.tableStore.updateMenuSetting(r)},handleItemClick:function(e){var t=this.refs.tableBody.getBoundingClientRect();e.top=e.top-t.top,e.left=e.left-t.left,e.tableBody=t,this.disableSyncHeaderHeightOnce(),this.tableStore.updateSelectCell(e)},renderHeaderCells:function(e,t,a,r){if(!a)return null;var i=this.props,o=i.dataSource,s=this.tableStore,u=a.props,d=j(["width","title","getTitle","resizable","fnGetCellStyle","fnGetCellContentStyle"],u),c=u.resizable,f={},E={};if(o&&o.length){var v=G(null,"currentRow.rowDataObject",o[0]);if(v){var T=v.subKeyPath||null;if(T&&T.length>r&&(f=T[r]),v.childs&&v.childs.length){var _=G(null,"childs[0].subKeyPath",v);_&&_.length>r&&(E=_[r])}}}e>this.maxDeepHeader&&(this.maxDeepHeader=e);var S=function(e){return a.props.title||K(a.props.getTitle)&&a.props.getTitle(e)},C=i.sortInfo?n.createElement(y,(0,X.default)({},i,u)):n.createElement(N,{infoIconOptions:u.infoIconOptions,didUpdate:this.headerAfterRenderCallBack,renderTitle:S}),b=u.headerComponent,A=u.headerComponentProps,R=this.columnHeaderCounter,O=s.getColumnWidth(this.columnHeaderCounter);u.width;if(a.type===g){var I=l({"table-cell-group-header":!0,"table-content-hidden":!!a.props.isInvisible}),D=V(t,r),P={path:D,ref:H("_",D),startColumn:this.columnHeaderCounter,index:r,deep:e},L=V([],a.props.children).map(this.renderHeaderCells.bind(this,e+1,D));P.endColumn=this.columnHeaderCounter,s.addHeaderGroup(P);var M=s.calculateHeaderGroupWidth(P),F=G(!0,"props.canRenderHeader",a)?n.createElement("div",{className:I},n.createElement(h,{columnIndex:r,fnGetCellStyle:u.fnGetCellStyle,fnGetCellContentStyle:u.fnGetCellContentStyle,width:M,didUpdate:this.headerGroupAfterRenderCallBack,registerCell:this.memoizeRegisterHeaderGroup(P.ref),unregisterCell:this.memoizeUnregisterHeaderGroup(P.ref)},n.createElement("span",{className:"table-cell-group-title"},u.iconExpandCollapse,n.createElement(N,{infoIconOptions:u.infoIconOptions,didUpdate:this.headerGroupAfterRenderCallBack,renderTitle:S})))):null,k=l("table-cell-group",{"u-stickLeft":i.stickHorizontal&&a.props.isColumnHeader});return n.createElement("div",{key:r,className:k},n.createElement("div",{className:"nested-table"},F,n.createElement("div",{className:"table-row"},L)))}if(a.type!==m)return null;var x=this.handleColumnResize(this.columnHeaderCounter),w=this.handleResizeStop(this.columnHeaderCounter);return this.columnHeaderCounter++,c?n.createElement(p,{key:r,width:O,rightResize:!0,minConstraints:[i.defaultColumnWidth,0],onResize:x,onResizeStop:w},n.createElement(h,(0,X.default)({fnGetCellContentStyle:u.fnGetHeaderCellContentStyle,fnGetCellStyle:u.fnGetHeaderCellStyle,type:"header-cell",deep:e,columnIndex:R,registerCell:this.registerHeaderCell,unregisterCell:this.unregisterHeaderCell,didUpdate:this.headerAfterRenderCallBack},d,f,E,{handleMenuClick:this.handleMenuClick,sourceForm:i.sourceForm,isGridPreviewModal:i.isGridPreviewModal}),b?n.createElement(b,A):C)):n.createElement(h,(0,X.default)({key:r,width:O,fnGetCellContentStyle:u.fnGetHeaderCellContentStyle,fnGetCellStyle:u.fnGetHeaderCellStyle,type:"header-cell",deep:e,columnIndex:R,registerCell:this.registerHeaderCell,unregisterCell:this.unregisterHeaderCell,didUpdate:this.headerAfterRenderCallBack},d),b?n.createElement(b,A):C)},registerHeaderGroupCell:function(e,t){this.tableStore.registerHeaderGroupCell(t,e)},unregisterHeaderGroupCell:function(e,t){this.tableStore.unregisterHeaderGroupCell(t,e)},registerHeaderCell:function(e,t,a){this.tableStore.registerHeaderCell(e,t,a)},unregisterHeaderCell:function(e,t,a){this.tableStore.unregisterHeaderCell(e,t,a)},registerCell:function(e,t){this.tableStore.registerCell(e,t)},unregisterCell:function(e,t){this.tableStore.unregisterCell(e,t)},registerVirtualStore:function(e){this.tableStore.registerVirtualStore(e)},registerRenderCallback:function(e){this.afterRenderCallBack=L(100,e.afterRenderCallBack||q),this.headerGroupAfterRenderCallBack=L(100,function(){this.skipSyncGroupHeaderHeight||x(this.tableStore.headerGroups)||(this.tableStore.updateHeaderGroupHeight(),this.afterRenderCallBack()),this.skipSyncGroupHeaderHeight=!1}.bind(this)),this.headerAfterRenderCallBack=L(100,function(){this.skipSyncHeaderHeight||x(this.tableStore.headerGroups)||(this.tableStore.updateHeaderHeight(),this.afterRenderCallBack()),this.skipSyncHeaderHeight=!1}.bind(this)),this.cellAfterRenderCallBack=L(100,function(){this.props.stickHorizontal&&!x(this.tableStore.cellElements)&&(this.tableStore.updateCellsHeight(),this.afterRenderCallBack())}.bind(this))},handleScroll:function(e){var t=this.refs.headerTable;e.target.scrollLeft>=0&&(t.style.left=-1*e.target.scrollLeft+"px")},handleColumnResize:function(e){var t=this,a=this.tableStore;return function(r){t.userResizing=!0,a.resizeColumn(e,r.width,!0)}},handleResizeStop:function(e){var t=this.props;return this.userResizing=!1,function(a){var r={index:e,columnWidth:a.width};return t.onResizeStopCallback&&t.onResizeStopCallback(r)}},getAllColumns:function(e){return M(function e(t){return t=V([],t),x(t)?[]:z(function(t){return t?t.type===g?e(t.props.children):t.type===m?[t]:[]:[]},t)}(e))},initColumnSizes:function(e,t){this.changeTableWidth(1/0,e.children,t)},changeTableWidth:function(e,t,a){var r=this.getAllColumns(t),n=O(function(e){return{width:e.props.width,fixed:!!e.props.fixed}},r);this.tableStore.updateWidths(e,n,a)},onTableWidthChanged:function(e,a){e+=this.props.draggableTable?21:0,e+=this.props.rowSpan&&this.props.staticRender?this.props.rowSpan.width:0;var r=this.refs.tableBody;r&&t(r).width(e)}}),e.exports={Table:r(Q),Column:m,ColumnGroup:g,DraggableRow:v}}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=D(a(90)),l=D(a(175)),s=D(a(14)),u=D(a(58)),d=D(a(6)),c=D(a(2)),p=D(a(3)),f=D(a(7)),h=D(a(8)),m=a(0),g=D(m),E=D(a(13)),y=D(a(10)),v=D(a(1999)),T=D(a(2e3)),_=D(a(2001)),S=D(a(12)),C=D(a(34)),b=D(a(159)),N=D(a(26)),A=D(a(677)),R=D(a(276)),O=D(a(305)),I=a(1);function D(e){return e&&e.__esModule?e:{default:e}}var P=E.default.oneOfType([E.default.string,E.default.node]),L=(n=r=function(e){function t(e){(0,c.default)(this,t);var a=(0,f.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));i.call(a);var r=e.required,n=e.value,o=e.multi;return a.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:r&&a.handleRequired(n,o)},a}return(0,h.default)(t,e),(0,p.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.props.autofocus&&this.focus(),this.onChangeWithoutDebounce=function(t){e.handleKeyEnterInput(t)},this.onChangeWithDebounce=(0,I.debounce)(C.default.DEFAULT_DEBOUNCE_TIME,function(t){e.handleKeyEnterInput(t)})}},{key:"componentWillUpdate",value:function(e,t){if(t.isOpen!==this.state.isOpen){var a=t.isOpen?e.onOpen:e.onClose;a&&a()}}},{key:"componentDidUpdate",value:function(e,t){var a=this.state,r=a.isOpen,n=a.inputValue;this.refs.scrollBox&&this.scrollTop&&r&&!this.hasScrolledToOption?this.hasScrolledToOption=!0:r||(this.hasScrolledToOption=!1),t.inputValue!==n&&this.props.onInputChange&&this.props.onInputChange(n),e.disabled!==this.props.disabled&&this.setState({isFocused:!1})}},{key:"changeInputValue",value:function(e){this.setState({inputValue:e})}},{key:"handleKeyEnterInput",value:function(e){var t=this,a={fromIndex:0,pageSize:C.default.LAZY_LOADING_DEFAULT_ITEMS_NUMBER};this.props.onSearchLazy?this.props.onSearchLazy(e,a).then(function(e){t.isLoading=!1,(0,I.isEmpty)(e)&&!t.props.onAddNew||t.setState({isOpen:!0})}):(this.isLoading=!1,this.setState({isOpen:!0}))}},{key:"renderArrow",value:function(){return g.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:this.handleMouseDownOnArrow},g.default.createElement("span",{className:"Select-arrow",onMouseDown:this.handleMouseDownOnArrow}))}},{key:"getOptionList",value:function(e,t,a){var r=e.length,n=!1;return e.map(function(e,i){return n=t&&t.indexOf(e)>-1,{isFirstItem:0===i,isLastItem:i===r-1,option:e,isSelected:n,isFocused:e===a}})}},{key:"renderMenu",value:function(e){var t=this.props,a=!0;return!t.noResultsText||this._visibleOptions&&this._visibleOptions.length&&t.options&&t.options.length||(t.isLazyLoading?t.onSearchLazy&&(a=!1):a=!1),!a||this.isLoading?t.isLazyLoading&&this.isLoading?g.default.createElement(O.default,{className:"Select-option u_flex u_flexCenterAlignItems"}):g.default.createElement("div",{className:"Select-noresults"},this.state.inputValue+" "+this.props.noResultsText):t.isLazyLoading?g.default.createElement(R.default,{data:this._visibleOptions,isLastPage:t.isLastPage,getData:t.getData,renderItem:this.renderItemLazy,viewHeight:C.default.dropdownMaxHeight,itemHeight:30,registerLazyLoadingStore:this.registerLazyLoadingStore}):e&&e.length?g.default.createElement(A.default,{dataSource:this.getOptionList.apply(this,arguments),getItemKey:this.getOptionKey,renderItem:this.renderOption}):null}},{key:"renderSelectWithScroll",value:function(e,t){var a=(0,y.default)("Select-control",this.props.controlClass);return g.default.createElement("div",{ref:"control",className:a,style:this.props.style,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown},g.default.createElement(N.default,{autoHeight:!0,autoHeightMax:this.props.inputMaxHeight},this.renderValue(e,t),this.renderInput(e)),!this.props.textboxMode&&this.renderArrow())}},{key:"renderInputValue",value:function(e,t){var a=(0,y.default)("Select-control",this.props.controlClass);return g.default.createElement("div",{ref:"control",className:a,style:this.props.style,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown},this.renderValue(e,t),this.renderInput(e),!this.props.textboxMode&&this.renderArrow())}},{key:"getSelectMenuStyle",value:function(e){return{height:30*((0,I.isEmpty)(e)&&this.props.noResultsText?1:Math.min(e.length,C.default.DEFAUFT_DROPDOWN_ITEMS))}}},{key:"render",value:function(){var e=this.props,t=e.multi,a=e.disabled,r=e.searchable,n=e.inputMaxHeight,i=e.hiddenMenu,o=this.state,l=o.isFocused,s=o.isOpen,u=o.isPseudoFocused,d=this.getValueArray(),c=this._visibleOptions=this.filterOptions(t?d:null),p=this._focusedOption=this.getFocusableOption(d[0]),f=(0,y.default)("Select",this.props.className,{"Select--multi":t,"is-disabled":a,"is-focused":l,"is-open":s&&!i,"is-pseudo-focused":u,"is-searchable":r,"has-value":d.length}),h=this.getSelectMenuStyle(c);return g.default.createElement("div",{ref:"wrapper",className:f},this.renderHiddenField(d),n?this.renderSelectWithScroll(d,s):this.renderInputValue(d,s),!i&&s&&g.default.createElement(b.default,{anchor:this.refs.control,onParentScroll:this.closeMenu,onClickOutside:this.closeMenu},g.default.createElement("div",{ref:"menuContainer",className:"Select-menu-outer"},g.default.createElement(N.default,{autoHeight:!0,autoHeightMax:C.default.dropdownMaxHeight,ref:"scrollBox"},g.default.createElement("div",{ref:"menu",className:"Select-menu",style:h,onMouseDown:this.handleMouseDownOnMenu},this.renderMenu(c,t?null:d,p))))))}}]),t}(m.Component),r.displayName="Select",r.propTypes={autoBlur:E.default.bool,autofocus:E.default.bool,className:E.default.string,clearAllText:P,clearValueText:P,clearable:E.default.bool,delimiter:E.default.string,disabled:E.default.bool,filterOption:E.default.func,filterOptions:E.default.any,ignoreCase:E.default.bool,inputProps:E.default.object,labelKey:E.default.string,matchProp:E.default.string,multi:E.default.bool,name:E.default.string,noResultsText:P,onBlur:E.default.func,onBlurResetsInput:E.default.bool,onChange:E.default.func,onClose:E.default.func,onFocus:E.default.func,onInputChange:E.default.func,onInputKeyDown:E.default.func,onOpen:E.default.func,onValueClick:E.default.func,optionComponent:E.default.func,optionRenderer:E.default.func,options:E.default.any,placeholder:P,required:E.default.bool,scalable:E.default.bool,searchable:E.default.bool,simpleValue:E.default.bool,style:E.default.object,tabIndex:E.default.string,value:E.default.any,valueComponent:E.default.func,valueKey:E.default.string,valueRenderer:E.default.func,onAddNew:E.default.func,isInsertOnBlur:E.default.bool,textboxMode:E.default.bool,openOnFocus:E.default.bool,inputMaxHeight:E.default.number,hiddenMenu:E.default.bool,controlClass:E.default.string},r.defaultProps={clearable:!0,clearAllText:S.default.getText("IZENDA_SELECT_CLEAR_ALL_TEXT"),clearValueText:S.default.getText("IZENDA_SELECT_CLEAR_VALUE_TEXT"),delimiter:",",disabled:!1,filterOptions:!0,ignoreCase:!0,inputProps:{},labelKey:"label",matchProp:"label",multi:!1,noResultsText:S.default.getText("IZENDA_SELECT_NO_RESULT_TEXT"),onBlurResetsInput:!0,optionComponent:T.default,placeholder:S.default.getText("IZENDA_SELECT_PLACE_HOLDER"),required:!1,scalable:!0,searchable:!0,simpleValue:!1,valueComponent:_.default,valueKey:"value",options:[],textboxMode:!1},i=function(){var e=this;this.focus=function(){var t=e.refs.input;t&&t.focus()},this.blurInput=function(){var t=e.refs.input;t&&t.blur()},this.handleMouseDown=function(t){var a=e.props,r=a.disabled,n=a.searchable;if(!(r||"mousedown"===t.type&&0!==t.button)){if(t.stopPropagation(),t.preventDefault(),!n)return e.focus(),e.setState({isOpen:!e.state.isOpen});e.focus(),"Select-arrow-zone"!==t.target.className&&"Select-arrow"!==t.target.className||e.setState({isOpen:!0,isPseudoFocused:!1})}},this.handleMouseDownOnArrow=function(t){var a=e.props,r=a.disabled,n=a.searchable,i=a.isLazyLoading;r||!n||e.isLoading||"mousedown"===t.type&&0!==t.button||(e.state.isOpen?(t.stopPropagation(),t.preventDefault(),e.closeMenu()):i?(e.isLoading=!0,e.onChangeWithoutDebounce("")):e.setState({isOpen:!0}))},this.handleMouseDownOnMenu=function(t){e.props.disabled||"mousedown"===t.type&&0!==t.button||(t.stopPropagation(),t.preventDefault(),e.focus())},this.closeMenu=function(){e.setState({isOpen:!1,isPseudoFocused:e.state.isFocused&&!e.props.multi,inputValue:""}),e.hasScrolledToOption=!1,e.props.onCloseMenu&&e.props.onCloseMenu()},this.handleInputFocus=function(t){var a=e.state.isOpen||e.props.openOnFocus;e.props.onFocus&&e.props.onFocus(t),e.setState({isFocused:!0,isOpen:a})},this.handleInputBlur=function(){var t=e.refs.menu,a=e.props,r=a.isInsertOnBlur,n=a.valueKey,i=a.labelKey,o=a.onBlurResetsInput,l=e.state.inputValue;if(!t||!document.activeElement.isEqualNode(t)){if(e.props.onBlur&&r){var s={};s[n]=l,s[i]=l,e.setState({inputValue:""}),e.props.onBlur(s),e.addValue(s)}var u={isFocused:!1,isPseudoFocused:!1};o&&(u.inputValue=""),e.setState(u)}},this.handleInputChange=function(t){var a=t.target.value,r=e.props.isLazyLoading?{inputValue:a}:{isOpen:!(0,I.isEmpty)(a),isPseudoFocused:!1,inputValue:a};e.isLoading=!0,e.setState(r),e.onChangeWithDebounce(a)},this.handleKeyDown=function(t){var a=e.props,r=a.disabled,n=a.clearable,i=a.hiddenMenu,o=e.state,l=o.inputValue,s=o.isOpen;if(!r){switch(t.keyCode){case 8:return void(l||(t.preventDefault(),e.popValue()));case 9:if(t.shiftKey||!s)return;return void e.selectFocusedOption(!1);case 13:if(!s&&!i)return;t.stopPropagation(),e.selectFocusedOption(!0);break;case 27:s?e.closeMenu():n&&e.clearValue(t);break;default:return}t.preventDefault()}},this.handleValueClick=function(t,a){e.props.onValueClick&&e.props.onValueClick(t,a)},this.handleRequired=function(e,t){return!e||(t?0===e.length:0===(0,u.default)(e).length)},this.getOptionLabel=function(t){return t[e.props.labelKey]},this.getValueArray=function(){var t=e.props,a=t.value,r=t.multi,n=t.delimiter,i=a;if(r){if("string"==typeof i&&(i=i.split(n)),!Array.isArray(i)){if(null===i||void 0===i)return[];i=[a]}return i.map(e.expandValue).filter(function(e){return e}.bind(e))}var o=e.expandValue(i);return o?[o]:[]},this.expandValue=function(t){if("string"!=typeof t&&"number"!=typeof t)return t;var a=e.props,r=a.options,n=a.valueKey;if(r)for(var i=0;i-1)return!1;if(this.props.filterOption)return this.props.filterOption.call(this,e,a);if(!a)return!0;if(a&&u)return!0;var r=String(e[l]),n=String(e[s]);return i&&("label"!==o&&(r=r.toLowerCase()),"value"!==o&&(n=n.toLowerCase())),"label"!==o&&r.indexOf(a)>=0||"value"!==o&&n.indexOf(a)>=0}.bind(e))):r},this.renderOption=function(t){var a=e.props.optionComponent,r=e.props.optionRenderer||e.getOptionLabel,n=t.isFocused?"focused":null,i=(0,y.default)("Select-option overflow-text",{"is-selected":t.isSelected,"is-focused":t.isFocused,"is-disabled":t.option.disabled});return(0,I.isNil)(r(t.option))||(0,I.isEmpty)(r(t.option))?null:g.default.createElement(a,{className:i,isDisabled:t.option.disabled,isFocused:t.isFocused,onSelect:e.selectValue,onFocus:e.focusOption,option:t.option,isSelected:t.isSelected,ref:n,title:r(t.option)},r(t.option))},this.getOptionKey=function(t){return t[e.props.valueKey]},this.renderItemLazy=function(t){var a=e.props.optionRenderer||e.getOptionLabel,r=e.getValueArray(),n=r&&r.indexOf(t)>-1,i=(0,y.default)("Select-option overflow-text",{"is-disabled":t.disabled,"is-selected":n}),o=a(t),l=t[e.props.optionTooltip];return!l&&(l=o),(0,I.isEmpty)(o)?null:g.default.createElement(T.default,{className:i,isDisabled:t.disabled,onSelect:e.selectValue,isSelected:n,onFocus:e.focusOption,option:t,title:l},o)},this.registerLazyLoadingStore=function(t){e.lazyLoadingStore=t},this.renderHiddenField=function(t){if(e.props.name)return t.map(function(e,t){return g.default.createElement(v.default,{key:"hidden."+t,type:"hidden",ref:"value"+t,name:this.props.name,value:(a=e[this.props.valueKey],"object"===(void 0===a?"undefined":(0,l.default)(a))?(0,o.default)(a):a),disabled:this.props.disabled});var a}.bind(e))},this.getFocusableOption=function(t){var a=e._visibleOptions;if(a.length){var r=e.state.focusedOption||t;if(r&&a.indexOf(r)>-1)return r;for(var n=0;n";t+=a},e),t+=""}var u=[{prop:"subCategories",expand:!1,children:[{prop:"subCategories",expand:!1}]}];t.default={NO_PERMISSION:"NO_PERMISSION",CATEGORY_TYPE:{REPORT:"0",TEMPLATES:"1",CATEGORY_ID:"CategoryId",SUB_CATEGORY_ID:"SubCategoryId"},reportTypeName:function(e){return"0"===e?"report":"template"},REPORT_PROPERTY:{All:0,DataSource:1,Relationship:2,Filter:3,ReportPart:4,CalculatedField:5,DynamicQuerySourceField:6,Scheduling:7,Access:8,Report:9},ALL_CATEGORY_TYPES:{ALL_REPORTS:{get name(){return i.default.getText("REPORTS_CONSTANTS_LABEL_ALL_REPORTS")},type:0,id:"0000",isGlobal:null},ALL_TEMPLATES:{get name(){return i.default.getText("REPORTS_CONSTANTS_LABEL_ALL_TEMPLATES")},type:1,id:"0000",isGlobal:null}},ACTION_TYPES:{get MOVE_TITLE(){return i.default.getText("REPORTS_CONSTANTS_REPORT_LABEL_MOVE")},MOVE_CONTENT:" move ",get COPY_TITTLE(){return i.default.getText("REPORTS_CONSTANTS_REPORT_LABEL_COPY")},COPY_CONTENT:" copy "},SEARCH_CRITERIA:[{value:"All",get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:"ReportName",get label(){return i.default.getText("COMMON_LABEL_REPORT_NAME")}},{value:"ReportDescription",get label(){return i.default.getText("COMMON_LABEL_REPORT_DESCRIPTION")}},{value:"CreatedBy",get label(){return i.default.getText("COMMON_CRITERIA_CREATED_BY")}},{value:"CreatedDate",get label(){return i.default.getText("COMMON_CRITERIA_CREATED_DATE")}},{value:"LastEditedBy",get label(){return i.default.getText("COMMON_CRITERIA_EDITED_BY")}},{value:"LastEditedDate",get label(){return i.default.getText("COMMON_CRITERIA_EDITED_DATE")}},{value:"Category",get label(){return i.default.getText("COMMON_LABEL_CATEGORY")}},{value:"Subcategory",get label(){return i.default.getText("COMMON_LABEL_SUBCATEGORY")}}],TEMPLATE_SEARCH_CRITERIA:[{value:"All",get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:"ReportName",get label(){return i.default.getText("COMMON_LABEL_TEMPLATE_NAME")}},{value:"ReportDescription",get label(){return i.default.getText("COMMON_LABEL_TEMPLATE_DESCRIPTION")}},{value:"CreatedBy",get label(){return i.default.getText("COMMON_CRITERIA_CREATED_BY")}},{value:"CreatedDate",get label(){return i.default.getText("COMMON_CRITERIA_CREATED_DATE")}},{value:"LastEditedBy",get label(){return i.default.getText("COMMON_CRITERIA_EDITED_BY")}},{value:"LastEditedDate",get label(){return i.default.getText("COMMON_CRITERIA_EDITED_DATE")}},{value:"Category",get label(){return i.default.getText("COMMON_LABEL_CATEGORY")}},{value:"Subcategory",get label(){return i.default.getText("COMMON_LABEL_SUBCATEGORY")}}],SORT_CRITERIA:[{value:"ReportName",get label(){return i.default.getText("COMMON_LABEL_REPORT_NAME")}},{value:"CreatedBy",get label(){return i.default.getText("COMMON_CRITERIA_CREATED_BY")}},{value:"CreatedDate",get label(){return i.default.getText("COMMON_CRITERIA_CREATED_DATE")}},{value:"LastEditedBy",get label(){return i.default.getText("COMMON_CRITERIA_EDITED_BY")}},{value:"LastEditedDate",get label(){return i.default.getText("COMMON_CRITERIA_EDITED_DATE")}},{value:"NumberOfView",get label(){return i.default.getText("COMMON_CRITERIA_NUMBER_OF_VIEWS")}},{value:"RenderingTime",get label(){return i.default.getText("COMMON_CRITERIA_AVERAGE_RENDERING_TIME")}},{value:"Category",get label(){return i.default.getText("COMMON_LABEL_CATEGORY")}},{value:"Subcategory",get label(){return i.default.getText("COMMON_LABEL_SUBCATEGORY")}},{value:"LastViewed",get label(){return i.default.getText("COMMON_CRITERIA_LAST_VIEWED")}}],TEMPLATE_SORT_CRITERIA:[{value:"ReportName",get label(){return i.default.getText("COMMON_LABEL_TEMPLATE_NAME")}},{value:"CreatedBy",get label(){return i.default.getText("COMMON_CRITERIA_CREATED_BY")}},{value:"CreatedDate",get label(){return i.default.getText("COMMON_CRITERIA_CREATED_DATE")}},{value:"LastEditedBy",get label(){return i.default.getText("COMMON_CRITERIA_EDITED_BY")}},{value:"LastEditedDate",get label(){return i.default.getText("COMMON_CRITERIA_EDITED_DATE")}},{value:"NumberOfView",get label(){return i.default.getText("COMMON_CRITERIA_NUMBER_OF_VIEWS")}},{value:"RenderingTime",get label(){return i.default.getText("COMMON_CRITERIA_AVERAGE_RENDERING_TIME")}},{value:"Category",get label(){return i.default.getText("COMMON_LABEL_CATEGORY")}},{value:"Subcategory",get label(){return i.default.getText("COMMON_LABEL_SUBCATEGORY")}},{value:"LastViewed",get label(){return i.default.getText("COMMON_CRITERIA_LAST_VIEWED")}}],SORT_TYPES:{ASC:"asc",DESC:"desc"},CATEGORY:"category",SUBCATEGORY:"subcategory",UNCATEGORIZED:"Uncategorized",EMPTY_GUID:"00000000-0000-0000-0000-000000000000",CONSTRAINTS:{NAME:{presence:{presence:!0,get message(){return i.default.getText("REPORTDESIGNER_MESSAGE_REPORT_NAME_REQUIRED")}},format:{pattern:o.VALID_REPORT_NAME_REGEX,get message(){return i.default.getText("INVALID_REPORT_NAME")}}},TEMPLATE_NAME:{presence:{presence:!0,get message(){return i.default.getText("REPORTDESIGNER_MESSAGE_TEMPLATE_NAME_REQUIRED")}},format:{pattern:o.VALID_REPORT_NAME_REGEX,get message(){return i.default.getText("INVALID_TEMPLATE_NAME")}}}},MESSAGES:{get M03(){return i.default.getText("CATEGORY_MESSAGES_CONFIRM_DELETE_CATEGORY")},get M04(){return i.default.getText("CATEGORY_MESSAGES_CONFIRM_DELETE_SUBCATEGORY")},get M05a(){return i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_DELETE_REPORT")},get M05b(){return i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_DELETE_TEMPLATE")},get M06a(){return i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_SUCCESSFULLY_COPIED")},get M06b(){return i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_SUCCESSFULLY_MOVED")},get SAVE_REPORT(){return i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_SAVE_REPORT")},get SAVE_AS_REPORT(){return i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_SAVE_AS_REPORT")},get INVALID_REPORT(){return i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_INVALID_REPORT")},get CANCEL(){return i.default.getText("COMMON_MESSAGES_CONFIRM_CHANGES_LOST")},UPDATE_RESULT:function(e){return"

"+i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_DIFFERENT_SCHEMA")+"

"+s(e)},EMPTY_FILTER_PARAM:function(e){return"

"+i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_SELECT_FILTER_VALUE")+"

"+s(e)},EMPTY_REQUIRED_FILTER:function(e){return"

"+i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_SELECT_REQUIRE_AND_NOT_VISIBLE_FIELD")+"

"+s(e)},EMPTY_VISIBLE_REQUIRED_FILTER:function(e){return"

"+i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_SELECT_REQUIRE_AND_VISIBLE_FIELD")+"

"+s(e)},EMPTY_REQUIRED_PARAM_FILTER:function(e,t){var a="",r="

- "+i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_SELECT_FILTER_VALUE")+"

";a+=r+=s(e)+"
";var n="

- "+i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_SELECT_REQUIRE_AND_NOT_VISIBLE_FIELD")+"

";return a+=n+=s(t)+"
"},get NEED_UPDATE_RESULTS(){return i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_CLICK_UPDATE_RESULT")}},COPY_REPORT:{get TEXT_CREATE_CATEGORY(){return i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_TEXT_CREATE_CATEGORY")},get TEXT_CREATE_SUB_CATEGORY(){return i.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_TEXT_CREATE_SUB_CATEGORY")}},FITLERS_PANEL_UI:{minHeight:55,maxHeight:210},SYSTEM_VARIABLES:{REPORT_NAME:"{reportName}",CURRENT_DATETIME:"{currentDateTime}",CURRENT_USERNAME:"{currentUserName}",TENANT_NAME:"{tenantName}"},MINIMUM_ROW:4,DATETIME_FORMAT:"MM/dd/yyyy",SUBREPORT_POPUP:{get popupTitle(){return i.default.getText("REPORTS_CONSTANTS_REPORT_LABEL_SUBREPORT")},frameHeightInPx:"700px",frameWidthInPercent:"100%"},REPORT_EXPORT_IFRAME_POPUP:{get popupTitle(){return i.default.getText("REPORTS_CONSTANTS_IFRAME_EXPORT_POPUP_LABEL")}},GRID_PREVIEW_POPUP_SIZE:{height:500},REPORT_LIST_CONCAT_TREE_MAP:[{prop:"subCategories",children:[{prop:"subCategories",children:[{prop:"reports"}]}]}],LEFT_MENU_CONCAT_TREE_MAP:u,LEFT_MENU_TREE_MAP:[{prop:"globalLocalCategory",expand:!0,children:u}]},e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.className,a=e.htmlFor,r=e.children;return i.default.createElement("label",{className:t,htmlFor:a},r)};var r,n=a(0),i=(r=n)&&r.__esModule?r:{default:r};e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportClass=function(e){return function(t){return i.default.register(e,t),t}};var r,n=a(963),i=(r=n)&&r.__esModule?r:{default:r}},function(e,t,a){"use strict";(function(e){var t,r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y;t=a(1),r=t.toString,n=t.isNil,i=t.isEmpty,o=t.trim,l=t.toUpper,s=t.some,u=t.reject,d=t.join,c=t.flow,p=t.isUndefined,f=t.isNumber,h=t.escapeRegExp,m=t.map,g=t.includes,E=t.placeholder,y=a(55).EMPTY_GUID,String.format=function(){var e=arguments[0];if(void 0===e||""===e)return e;for(var t=1;t$&".replace(/{tag}/gi,a);if(a=a||"mark",0===e.length)return t;var s=RegExp(n,r?"g":"gi");return t.replace(s,l)},render:function(){return r.createElement("span",{className:this.props.className,onClick:this.props.onClick,dangerouslySetInnerHTML:this.createMarkup(),title:this.props.tooltip})}}),e.exports=l},,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(14)),n=s(a(0)),i=s(a(10)),o=s(a(13)),l=a(1);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=(0,l.omit)(["text","tooltip","title","className"],e);return n.default.createElement("span",(0,r.default)({},t,{className:(0,i.default)(["overflow-text",e.className]),title:e.tooltip}),e.children||e.text)};u.propTypes={text:o.default.string,tooltip:o.default.string},t.default=u,e.exports=t.default},function(e,t,a){"use strict";(function(r,n){Object.defineProperty(t,"__esModule",{value:!0});var i=v(a(90)),o=v(a(2)),l=v(a(3)),s=a(20),u=v(a(70));t.default=function(e,t){return new S(e,t)};var d=v(a(43)),c=v(a(41)),p=v(a(16)),f=v(a(84)),h=v(a(106)),m=v(a(12)),g=v(a(43)),E=v(a(37)),y=a(1);function v(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if((e=e||{}).excludeAuthHeader)return null;var a={},r=f.default.HEADER_KEYS,n=f.default.HEADER_PREFER,i=t.getAccessToken();(0,y.isNil)(i)||(a[r.access_token]=i);var o=p.default.currentUser.tenantId;return(0,y.isNil)(o)||(a[r.current_tenant]=o),a[r.selected_tenant]=p.default.tenantId,(0,y.isNil)(e.prefer)||(a[r.prefer]=n[e.prefer]),a}function _(e,t){var a,i,o,l=(0,y.merge)({cache:!1,url:function(e){r(e||""!==e,"Path of url must be provided");var t=d.default.WebApiUrl,a=e?"/"===e[0]?e.substring(1):e:"";return t.concat("/"!==t.slice(-1)?"/".concat(a):a)}(e),contentType:"application/json",timeout:1e3*(c.default.advancedSettings.performance.queryTimeoutValue||c.default.advancedSettings.performance.queryTimeoutDefaultValue||d.default.TimeOut),async:!!(0,y.isNil)(t.async)||t.async,error:function(e,t){var a=e.status,r=(0,y.getOr)("","responseJSON.message",e);switch(a){case 401:var n=E.default.checkIframeExported();g.default.Integration&&!n?(0,y.isFunction)(g.default.OnReceiveUnauthorizedResponse)&&g.default.OnReceiveUnauthorizedResponse(r):p.default.setNeedLogin(!0);break;case 408:p.default.setSystemError("Query timeout expired.");break;case 0:p.default.setSystemError(m.default.getText("COMMON_MESSAGES_GENERIC_ERROR"))}(0,y.some)(function(e){return a===e},[401,500,501,502,503,504,505,506,507,508,510,511])&&d.default.ErrorHandler(a,r)},headers:(a=t.config,i=t.securityManager,o={},(0,u.default)(o,T(a,i)),o)},t),f=(0,y.merge)(l,g.default.AjaxSettings);return(0,s.resolve)(n.ajax(f))}var S=function(){function e(t,a){(0,o.default)(this,e),this.path=t,this.config=a,this.securityManager=new h.default}return(0,l.default)(e,[{key:"get",value:function(){return _(this.path,{type:"GET",config:this.config,securityManager:this.securityManager})}},{key:"post",value:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return _(this.path,{type:"POST",data:e?(0,i.default)(e):e,config:this.config,securityManager:this.securityManager,async:a})}},{key:"delete",value:function(e){return _(this.path,{type:"DELETE",data:e?(0,i.default)(e):e,config:this.config,securityManager:this.securityManager})}},{key:"upload",value:function(e){var t=new FormData;return(0,y.forEach)(function(e){t.append(e.name,e)},e),_(this.path,{type:"POST",data:t,contentType:!1,processData:!1,enctype:"multipart/form-data",config:this.config,securityManager:this.securityManager})}},{key:"getAuthHeader",value:function(){return T(this.config,this.securityManager)}}]),e}();e.exports=t.default}).call(t,a(42),a(27))},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n=h(a(80)),i=h(a(70)),o=h(a(198)),l=h(a(58)),s=(a(20),h(a(71))),u=h(a(255)),d=h(a(192)),c=h(a(210)),p=a(317),f=a(1);function h(e){return e&&e.__esModule?e:{default:e}}var m=function(){for(var e=arguments.length,t=Array(e),a=0;a5&&void 0!==arguments[5]&&arguments[5];n=!!(0,i.isNil)(n)||n;var s={fieldName:(0,p.getFieldName)(t)},u=(0,i.get)("record",r),d=(0,i.get)("columnName",t),f=(0,i.get)("reportPartElm.properties.dataFormattings.format.jsFormatString",t),h=void 0;if(f){var m=(0,i.get)("reportPartElm.properties.dataFormattings.functionInfo.formatDataType",t);h=L((0,i.get)("reportPartElm.properties.dataFormattings.format.formatId",t),e,m)}var E=void 0;if(!(0,i.isEmpty)(u)&&d){var y=void 0;if((0,i.has)(d,u))o&&(0,i.startsWith)(l.RANGE_ALIAS.MAX_ALIAS,d)&&(d=d.replace(l.RANGE_ALIAS.MAX_ALIAS,l.RANGE_ALIAS.MIN_ALIAS)),y=g.default.getFieldValue(d,u);else y={value:e,originalValue:(0,i.getOr)(e,"nameFieldValue.originalValue",r)};f&&(y.value=h),E=n&&c.default.getValueStyle(y,a,r),s.data=(0,i.getOr)(e,"fomattedValue",E)}else E=n&&c.default.getValueStyle({value:e},a,r||t),s.data=f?h:(0,i.getOr)(e,"fomattedValue",E);return s}function D(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=String.commonStringValue(e,f.default.advancedSettings.other.convertNullToEmptyStringValue);return t?(0,i.escape)(a):a}function P(e,t){var a,r=[];if(t&&(e=(0,i.reverse)(e)),1!==e.length||(a=(0,i.head)(e),(0,i.get)("series.userOptions.isRegressionLine",a))){var n=O("x",e[0]||{});r.push(""+D(n.data)+""),e.forEach(function(e){!(0,i.get)("point.options.isDefaultValue",e)&&r.push(o(e)+" "+l(e))})}else!function(e){var t=O("name",e),a=O("value",e),n=O("x",e),i=O("y",e),s=O("z",e),u=S(e);if(u.isSum)return void(i.fieldName&&r.push(""+D(u.sumTitle)+" "+D(i.data)+""));t.fieldName&&r.push(o(e)+" "+D(t.fieldName)+": "+D(t.data)+""),a.fieldName&&r.push(o(e)+" "+D(a.fieldName)+": "+D(a.data)+""),t.fieldName||a.fieldName?n.fieldName&&r.push(""+D(n.fieldName)+": "+D(n.data)+""):n.fieldName&&r.push(o(e)+" "+D(n.data)+"");i.fieldName&&r.push(""+l(e)),s.fieldName&&r.push(""+D(s.fieldName)+": "+D(s.data)+"")}((0,i.head)(e));return r.join("
");function o(e){return''}function l(e){var t=O("y",e),a=function(e){var t=(0,i.get)("point.options.yRawData",e),a=!(0,i.isUndefined)(t);return t=String.commonStringValue(t,f.default.advancedSettings.other.convertNullToEmptyStringValue),{useYRawData:a,yRawData:t}}(e),r=(0,i.get)("series.userOptions.name",e),n=""+D((0,i.isNil)(r)?t.fieldName:r)+": "+D(a.useYRawData?a.yRawData:t.data),o=(0,i.getOr)({},"series",e),l=(0,i.getOr)({},"chart.userOptions",o);if((0,i.get)("plotOptions.series.stacking",l)===T.izPercent&&(0,i.has)("percentage",e)){var s=(0,i.get)("percentage",e);n+=y.highcharts.format(" ({percentage:.2f}%)",{percentage:s})}return n+=""}}function L(e,t,a){var r=void 0;return r=(0,i.isNil)(t)||(0,i.isEqual)(t,"")?null:"Datetime"===a?new Date(t):t,E.default.format(e,r,t)}t.default={setDefaultAxisName:function(e,t){try{var a=t.containers,r=t.expandedLevel,n=a.labels,o=(0,i.isArray)(e.xAxis)?e.xAxis[r]:e.xAxis,s={text:n[r]&&n[r].fieldName};!o.title&&(o.title=s);var u=a.values,d=e.yAxis,c=u&&u.length,p=void 0;c>1?(p={text:h.DefaultConfig.METRIC_ALL},!d.title&&(d.title=p)):1===c&&(p={text:(f=u[0].fieldName,e.izendaOptions&&!(0,i.isNil)(e.izendaOptions.range)?(0,i.flow)((0,i.trimCharsStart)(l.RANGE_ALIAS.MIN_ALIAS),(0,i.trimCharsStart)(l.RANGE_ALIAS.MAX_ALIAS),(0,i.trimCharsStart)(l.RANGE_ALIAS.AVG_ALIAS))(f):f)},!d.title&&(d.title=p))}catch(e){}var f},addPointActionLink:function(e,t,a,o,l,s){var u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],d=arguments[7];if(!(0,i.get)("numberOfPointActions",l))return a;var c=(0,i.get)("formatter",a),p=(0,i.get)("commonActions.pointAction",t),f=(0,i.get)("commonActions.drillOnOthersPeace",t),h=(0,i.get)("commonActions.chartContainer",t),g=e?".is-mainAxis":".is-subAxis",E={name:"hyperlink-action u_textLink "+(e?"is-mainAxis":"is-subAxis"),query:u?g+"."+o:g};h&&r(h).off("click",E.query),h&&r(h).on("click",E.query,function(e){e.stopPropagation();var a=r(e.currentTarget),n=void 0;if(!0===(n="TSPAN"===a[0].nodeName.toUpperCase()?a.parent().data():a.data()).isothers){var o=(0,i.get)("series",t),s=(0,i.find)(function(e){return!0===e.isComputed},o[0].data);return f(s.includedItems,1).then(function(e){var t=e.record;t&&(n.filters=n.filters.replace("Others",t.name),u())})}function u(){var e=JSON.parse(decodeURI(n.filters)),t=JSON.parse(decodeURI(n.separator));p(l,[{key:e[0],value:e[1]}],t.separatorColumnName&&t)}u()});var y=r.extend(a,{useHTML:!0,hasPointAction:!0,className:E.name,getData:v,formatter:function(){var e=c.apply(this,arguments);if(!(0,i.isNil)(this.axis)&&!(0,i.size)(this.axis.categories)&&!function e(t,a,r){var n=!1;if((0,i.isNil)(a)||(0,i.isEmpty)(a))return n;var o=(0,i.get)("processedXData",(0,i.head)(a));if((0,i.isNil)(o))return n;if(t.isDatetimeAxis){var l=t.isDatetimeAxis?new Date(r).getTime():null;n=!!(0,i.find)(function(e){return l===new Date(e).getTime()},o)}else n=(0,i.includes)(r,o);return n||e(t,(0,i.tail)(a),r)}(this.axis,this.chart.series,this.value))return e;if(u&&o!==(0,i.get)("point.labelName",this)&&o!==(0,i.get)("point.series.userOptions.labelName",this))return e;var t=v.call(this,e),a=u?E.name+" "+t.labelName:E.name,r=t["data-filters"],n=t["data-separator"],l=t["data-isOthers"];return(0,i.isNil)(d)?''+e+"":''+e+'"}});return u&&delete y.className,y;function v(e){var t=(0,i.get)("series.userOptions",this),a=(0,i.get)("separatorField.columnName",t),l=(0,i.get)("separatorValue",t),d=(0,i.isFunction)(s)?s.call(this):this.value||this.key||this.x,c=(0,i.get)("nameField.reportPartElm.isDateTimeType",t),p=(0,i.get)("nameField.reportPartElm.fieldFormatData",t);d=this.dateTimeLabelFormat?e:c?(0,m.default)(p,d):d;var f=(0,i.find)(function(e){return e.name===d},(0,i.get)("data",t)),h=u?f.labelName:o,g={"data-filters":encodeURI((0,n.default)([h,d])),"data-separator":encodeURI((0,n.default)({separatorColumnName:a,separatorValue:l})),"data-isOthers":f&&f.isComputed};return u&&((0,i.get)("nameField.fieldNameAlias",f)!==o?r.extend(g,{class:""+f.labelName,labelName:f.labelName,isKeepDataInMultiLevel:!0}):r.extend(g,{class:E.name+" "+f.labelName,labelName:f.labelName})),g}},getPointName:function(e){var t=_("name",e);if(!(0,i.isNil)(t))return t;if((0,i.has)("category",e)&&!(0,i.isDate)(e.category))return _("x",e)||_("category",e);var a=_("key",e),r=_("x",e);return(0,i.isNil)(a)?r:a},getPointValue:function(e){var t=_("y",e);return(0,i.isNil)(t)?_("value",e):t},formatterData:I,getFormatedValueByStringFormat:function(e,t,a){var r=void 0,n=(0,i.get)("properties.dataFormattings.format.jsFormatString",e),o=(0,i.isNil)(a)?(0,i.get)("field.dataFieldType",e):a;return n&&(r=L((0,i.get)("properties.dataFormattings.format.formatId",e),t,o)),r},getPointOptions:S,getAxisType:function(e,t,a,r){var n=(0,i.get)("reportPartElm.previewDataType",e),o=!!a&&!!a.izCategory,l=void 0,s=void 0;switch(n){case"Money":case"Numeric":l="linear",s=o;break;case"Datetime":case"Time":l="datetime",s=o;break;default:s=!0,l="category"}var u=r?(0,i.uniq)(t):t;return{type:l,categories:s?u:void 0}},getColorPointBySerie:b,getColorPointBySeries:function(e,t,a){(0,i.each)((0,i.curry)(b)(t,a),e)},getColorForSiries:C,getFormattedLabelAxis:function(e,t){e=e||this.axis||{},t=t||(0,i.getOr)({},"chart.userOptions",this);var a,r=(0,i.head)(e.series),n=(e.coll,e.series&&e.series.length,(e.coll||"xAxis")+"Field"),o=(0,i.flow)((0,i.filter)(function(e){return e.name===r.name}),i.head,(0,i.get)(n))(t.series),l=e.categories,s=this.value;return(0,i.size)(l)?s=(0,i.includes)(s,l)?s:null:e.isDatetimeAxis&&(s=new Date(s)),D((a=I(s,o,N(o,t.izendaSeriesConfig)))&&a.data)},getFormattedDataByPoint:O,getTooltipFormatter:function(e){return P(this.points||[this.point],e)},getTooltipFormatterForPoint:P,onDrilldownGauge:function(e,t){return function(){var r=(0,i.get)("commonActions.onDrilldown",e),n=(0,i.get)("data[0].name",t);(0,i.isFunction)(r)&&r({field:t.xAxisField,value:a(n),record:(0,i.get)("data[0].record",t)},{field:t.separatorField,value:a(t.separatorValue)})};function a(e){return e===o.UNDEFINED_VALUE?"":e}},showText:D,getCustomFormat:function(e){var t=(0,i.get)("series[0].data[0].record",e),a=(0,i.flow)((0,i.get)("series"),i.head,(0,i.get)("yAxisField"))(e),r=(0,i.flow)((0,i.get)("series"),i.head,(0,i.get)("yAxisField.columnName"))(e);if((0,i.get)("reportPartElm.properties.dataFormattings.format.jsFormatString",a)){var n=(0,i.get)("reportPartElm.properties.dataFormattings.functionInfo.formatDataType",a);return L((0,i.get)("reportPartElm.properties.dataFormattings.format.formatId",a),(0,i.get)(r,t),n)}return(0,i.has)(u.CUSTOM_FORMAT_PREFIX+r,t)?(0,i.get)(r,t):null},formatDataByStringFormat:L,setColorPointForAreaLine:function(e,t,a){e.izMultiColor&&!e.izDisableMultiColor&&(0,i.forEach)(function(e){var t=0;(0,i.forEach)(function(e){var r=(0,i.isEmpty)(a)?null:a[t];!(0,i.isEmpty)(r)&&(0,i.isEmpty)(e.color)&&(e.color=r),++t>a.length-1&&(t=0)})(e.data)})(t)},getCategoriesTicksPositioner:function(){return function(){var e=[],t=this.tickInterval,a=Math.floor(this.dataMax),r=Math.floor(this.dataMin);if(null!==this.dataMax&&null!==this.dataMin){for(;r-tthis.categories.length-1&&t>1)for(var n=this.categories.length;n1&&(n=Math.floor(n)),0===n&&(n=r);for(var o=t-1.5*n,l=e;l-n0&&a[0].messages[0]?(t+="

"+a[0].messages[0]+"

",t+='
    ',e.messages[0].detail.forEach(function(e){var a="",r={KEY:"CommonFilterFields",NAME:i.default.getText("DASHBOARD_COMMON_FILTER_FIELDS")},n=e.key===r.KEY?r.NAME:e.key;a="
  • "+n,a+='
      ',(0,o.forEach)(function(e){a+="
    • "+e+"
    • "},e.value),t+=a+="
  • "}),t+="
"):""},DASHBOARD_LIST_CONCAT_TREE_MAP:[{prop:"subCategories",children:[{prop:"subCategories",children:[{prop:"dashboards"}]}]}],LEFT_MENU_CONCAT_TREE_MAP:l,LEFT_MENU_TREE_MAP:[{prop:"globalLocalCategory",expand:!0,children:l}],DASHBOARD_PART_WORKER_CHUNK:3},e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={openNewTab:function(e){return window.open(e)},isMobileDevice:function(){return window.innerWidth<=1024},isIpadDevice:function(){return window.innerWidth<1100},getScreenSize:function(){return{width:window.innerWidth,height:window.innerHeight}},isIEBrowser:function(){return/(?:MSIE |Trident\/.*; rv:)(\d+)/.test(navigator.userAgent)},isEdgeBrowser:function(){return navigator.userAgent.indexOf("Edge")>-1},isIEOrEdgeBrowser:function(){return this.isIEBrowser()||this.isEdgeBrowser()},isChromeBrowser:function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)},isSafariBrowser:function(){return/Safari/.test(navigator.userAgent)&&/Apple/.test(navigator.vendor)},isSupportSticky:function(){var e=document.createElement("div");return["","-webkit-","-moz-","-ms-"].some(function(t){try{e.style.position=t+"sticky"}catch(e){}return""!=e.style.position})}},e.exports=t.default},,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(a(177)),n=d(a(33)),i=a(5),o=a(18),l=d(a(105)),s=a(36),u=a(1);function d(e){return e&&e.__esModule?e:{default:e}}var c=";#",p=a(1).isObject;function f(e,t,a){t=t||{};var r=p(e)?(0,u.getOr)(null,"originalValue",e):e,i=p(e)?e:{value:e};return{fomattedValue:n.default.getDataFormat(i,t,a),valueWithoutAltText:n.default.getDataFormat(i,t,a,!1),style:{color:h(r,t,a),cellColor:m(r,t,a)}}}function h(e,t,a){var r=(0,u.get)("textColor",t);return(0,u.isNil)(e)||(0,u.isNil)(r)?void 0:n.default.getConfigDataByRange(e,r,a)}function m(e,t,a){var r=(0,u.get)("cellColor",t);return(0,u.isNil)(e)||(0,u.isNil)(r)||(0,u.isNil)(a.record)?void 0:n.default.getConfigDataByRange(e,r,a)}function g(e){return(0,u.getOr)("","fieldNameAlias",e).split(c)}function E(e,t){var a=(0,i.toJS)(t);return e.previewDataType===o.DATA_TYPES.DATE_TIME&&(0,u.map)(function(t){t.izValue=(0,l.default)(e.fieldFormatData,t.izValue,!1)},a),a}t.default={parser:function(e,t,a,o){var l=a.fieldsMapping,s=a.records||{},d=e,p=(0,i.isObservable)(l)?(0,i.toJS)(l):l;return o=o||r.default.restructureField(d,p),{expandedLevel:t||0,dataStructure:o,fieldsMapping:p,records:s,cities:(0,u.get)("cities",a),countryCodes:(0,u.get)("countryCodes",a),postalCodes:(0,u.get)("postalCodes",a),stateCodes:(0,u.get)("stateCodes",a),countyCodes:(0,u.get)("countyCodes",a),addressCodes:(0,u.get)("addressCodes",a),rawData:a.rawData,containers:d,groupData:function(e,t,a){var r=a||s,n=[],i=void 0,l=void 0;return e=(0,u.isString)(e)?(0,u.first)(o[e]):e,i=(0,u.get)("columnName",e),l=i?function(e,t){var a=void 0;return(0,u.groupBy)(function(t){return a=t[e],n&&n.push(a),a},t)}(i,r):r,(0,u.forEach)(function(e){t.push(e)},(0,u.uniq)(n)),l},hasSeparator:function(e){return o[e]&&!!o[e].length},getSeparatorInfo:function(e){return o[e]&&o[e][0]},getConfigDataByRange:n.default.getConfigDataByRange,getFormatData:n.default.getDataFormat,getConfigField:function(e,t,a){var r={};return((0,u.getOr)({},"reportPartElm",t)||{}).hasSubReport&&(r.className=r.className?[r.className,"u_textLink"].join(" "):"u_textLink",r.onClick=function(){a.onOpenSubReport&&a.onOpenSubReport(e)}),r},getDataByField:function(e,t,a){return e?{name:e.fieldNameAlias,data:r.default.getListValueByField(e,t||s,a)}:{}},getSerieName:function(e){return{name:(e=e&&e.split(c)||[]).length>1?e[1]:e[0],other:e[0]}},getValueStyle:f,setRecord:function(e){s=e}}},getSerieProppertiesByField:function(e){if(!(e=e||{}).fieldName)return{};var t=e.properties||{},a=t.getValueByKey&&t.getValueByKey.bind(t),r=t.otherProps||{},n=a&&a("alternativeText"),d=a&&a("subReport")||{},c=a&&a("customURL"),p=a&&a("embeddedJavascript"),f=a&&a("color"),h=(0,u.getOr)({},"textColor",f),m=(0,u.getOr)({},"cellColor",f);return{fieldElement:e,fieldDataType:e.previewDataType,fieldFormatData:e.fieldFormatData,numberOfPointActions:e.numberOfPointActions,alternativeText:{rangePercent:n.rangePercent,rangeValue:n.rangeValue,value:n.value},textColors:h,textColor:{rangePercent:h.rangePercent,rangeValue:h.rangeValue,value:h.value},cellColors:m,cellColor:{rangePercent:m.rangePercent,rangeValue:m.rangeValue,value:m.value},customURL:c.url?c:null,embeddedJavascript:p.script?p:null,chartOptions:{chartType:r.chartType,yAxisName:r.yAxis,izLineDashStyle:r.dashStyle,izLineWidth:r.lineWidth},subReport:d.selectedReport?d:null,showTotal:r.showTotal,axisOption:function(e,t){var a=(0,i.toJS)(t);e.previewDataType===o.DATA_TYPES.DATE_TIME&&(0,u.get)("izStartingPoint",a)&&(a.izStartingPoint=Date.parse((0,l.default)(e.fieldFormatData,(0,u.get)("izStartingPoint",a),!1)));return a}(e,r.axis),threshold:E(e,r.threshold),dynamicThresholds:E(e,r.dynamicThresholds),regression:function(e){if((0,u.isNil)(e))return e;var t=(0,i.toJS)(e);return t.dashStyle=s.MappingValues.LINE_STYLE_VALUES[e.dashStyle],t}(r.regression)}},getValueStyle:f,processDataByBottomPercent:function(e,t,a,r){var n=0,i=void 0,o=(0,u.sortBy)(function(e){return i=(0,u.get)(r,e),n+=i,i},t),l=(e*n/100).toFixed(2),s=0,d=0,c=[],p=[],f=void 0;for(;sl&&(s-=(0,u.get)(r,c.pop()),p.pop());if(!c.length)return{otherItems:null,otherItem:null,newData:t};f=(0,u.set)(a,"Others",f),f=(0,u.set)(r,s,f),(f=(0,u.set)(r,s,f)).isComputed=!0,f.includedItems=(0,u.zipWith)(function(e,t){return(0,u.assign)(e,t)},p,c);var h=(0,u.remove)(function(e){return!!(0,u.find)(function(t){return(0,u.get)(a,e)===(0,u.get)(a,t)},c)},t);return h.push(f),{otherItems:c,otherItem:f,newData:h}},getTextColor:h,getCellColor:m,getName:function(e){return(0,u.last)(g(e))},getPartNames:g},e.exports=t.default},function(e,t,a){"use strict";var r,n=a(14),i=(r=n)&&r.__esModule?r:{default:r};!function(){var t=a(0),r=a(1054),n=a(5).observable,o=a(5).action,l=a(9).observer,s=a(1).omit;e.exports=function(e){var a=t.createClass({displayName:String.format("Dimensions({0})",e.displayName),componentWillMount:function(){this.dim=n({width:0,height:0})},render:function(){var a=this.props.measureBeforeMount,n=s(["measureBeforeMount"],this.props),o=this.dim.width,l=this.dim.height;return t.createElement(r,{measureBeforeMount:a,onChange:this.onChange},t.createElement(e,(0,i.default)({},n,{width:o,height:l})))},onChange:o(function(e,t){this.dim.width=e,this.dim.height=t})});return l(a)}}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.className,a=e.children;return r.default.createElement("div",{className:(0,n.default)(t,"form-group")},a)};var r=i(a(0)),n=i(a(10));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=f(r),i=f(a(281)),o=f(a(10)),l=f(a(16)),s=f(a(105)),u=f(a(55)),d=a(1),c=f(a(88)),p=f(a(129));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){var a=(0,d.reduce)(function(e,t){return{x:(0,d.isNil)(e.x)?t.positionX:Math.min(t.positionX,e.x),y:(0,d.isNil)(e.y)?t.positionY:Math.min(t.positionY,e.y),x2:(0,d.isNil)(e.x2)?t.positionX+t.width:Math.max(t.positionX+t.width,e.x2),y2:(0,d.isNil)(e.y2)?t.positionY+t.height:Math.max(t.positionY+t.height,e.y2)}},{x:null,y:null,x2:null,y2:null},e||[]);return t&&(a.x2-=a.x,a.y2-=a.y,a.x=0,a.y=0),a}t.default={getReportPartContainerStyle:function(e){return e.setting&&e.exportFormatSetting?{display:"table",margin:(e.exportFormatSetting||{}).centerOnPage.horizontally?"auto":0,height:"auto"}:null},getSeparatorContainerStyle:function(e,t){if(!e.setting||!e.exportFormatSetting)return null;var a,r=e.exportFormatSetting||{},n=r.centerOnPage,o=i.default.getPageSize(r.pageSizeKey,r.orientation),l=e.reportPart.reportPartContent.checkBreakPage()&&o?{height:n.vertically?i.default.formatCSSValueInInches(o.heightInInches-.8):0,display:"table",margin:n.horizontally?"auto":0}:{};return t?"height: "+(a=l).height+"; position: relative; display: "+a.display+"; margin: "+a.margin:l},getReportPartClassName:function(e){if(!e.setting||!e.exportFormatSetting)return null;var t=e.exportFormatSetting,a=(t?t.centerOnPage:{}).vertically&&!e.reportPart.reportPartContent.checkBreakPage();return(0,o.default)("u_tableCell",{u_alignMiddle:a})},getSeparatorClassName:function(e){if(!e.setting||!e.exportFormatSetting)return null;var t=e.exportFormatSetting,a=(t?t.centerOnPage:{}).vertically&&e.reportPart.reportPartContent.checkBreakPage();return(0,o.default)("u_tableCell",{u_alignMiddle:a})},replaceFormStyles:function(e,t){if(!e.printingMode)return null;var a="
';return t=(0,d.replace)("
",a,t),t=(0,d.replace)("
","
",t)},createPartRenderPromise:function(e){return(0,d.memoize)(function(){var t=null,a=new n.default(function(e,a){t=e});return{partId:e,promise:a,resolve:t}})()},replaceSystemVariable:function(e,t){var a=t.value,r=(e.reportStore||{}).model||{};switch(a){case u.default.SYSTEM_VARIABLES.REPORT_NAME:a=r.reportName;break;case u.default.SYSTEM_VARIABLES.CURRENT_DATETIME:var n=t.format||l.default.currentUser.dateFormat,i=p.default.getUtcTimeWithTimestampOffset();a=(0,s.default)(n,i);break;case u.default.SYSTEM_VARIABLES.CURRENT_USERNAME:a=l.default.currentUser.fullName;break;case u.default.SYSTEM_VARIABLES.TENANT_NAME:a=l.default.currentUser.tenantName}return a},getPageMarginsInPercent:function(e,t,a){var r=i.default.MIN_SIZE_UI_SETTING/2,n=i.default.getPageSize(e,t),o=100*r/n.widthInInches,l=100*a.left/n.widthInInches,s=100*a.right/n.widthInInches,u=100*a.top/n.heightInInches,d=100*a.bottom/n.heightInInches;return{line:o,horizontal:{left:l,right:s,center:100-Math.round(l+s+2*o)},vertical:{top:u,bottom:d,center:100-Math.round(u+d+2*o)}}},getDPI:function(){var e={dpi:96};return("undefined"==typeof window?0:+window.devicePixelRatio||Math.sqrt(screen.deviceXDPI*screen.deviceYDPI)/e.dpi||0)*e.dpi},getBbox:function(e,t){return h(e,t)},buildScaleStyleSimple:function(e,t){var a=(0,d.isNil)(t)?"scale("+e+")":"scale("+e+", "+t+")";return{transformOrigin:"0 0 0",MozTransformOrigin:"0 0 0",MsTransformOrigin:"0 0 0",WebkitTransformOrigin:"0 0 0",OTransformOrigin:"0 0 0",transform:a,MozTransform:a,MsTransform:a,WebkitTransform:a,OTransform:a}},buildScaleStyle:function(e,t,a){if(a){var r=a.partsToRender,n=a.width,i=a.height,o=a.vertically,l=a.horizontally,s=(a.isPageBreak,h(r,!1)),u=n/12;if(l){var c=s.x2-s.x;(6-s.x-c/2)*u+"px"}if(o){var p=s.y2-s.y;if(p*u=1&&u<=7&&(t=(0,l.nth)(t,i.DAY_OF_WEEK_VALUES))}var d=void 0,c=(0,l.getOr)(o.default.currentUser.dateFormat,"MOMENT_OUTPUT",i.DATE_TIME_FORMAT[e]);if((0,l.isDate)(t))d=(0,r.default)(t);else if(s)d=(0,r.default)(t,s);else{var p=(0,l.get)("GROUP_BY",i.DATE_TIME_FORMAT[e]),f=(0,l.get)("GROUP_BY_EXPECTED_FORMAT",i.GROUP_BY[p]);!(d=(0,r.default)(t,f?[f,n.DATE_TIME_FORMAT]:n.DATE_TIME_FORMAT)).isValid()&&(d=(0,r.default)(t,n.DATE_TIME_FORMAT_WITH_TIMEZONE))}return"Day"===e&&((0,l.isString)(t)&&/^\d{1,2}$/.test(t)||(0,l.isNumber)(t))&&(d=(0,r.default)().startOf("year").date(t)),!1===a?d.toDate():d.isValid()?d.format(c):t};var r=s(a(22)),n=a(109),i=a(227),o=s(a(16)),l=a(1);function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=v(a(23)),i=v(a(175)),o=v(a(2)),l=v(a(3)),s=v(a(42)),u=a(1),d=v(a(40)),c=v(a(49)),p=v(a(16)),f=v(a(1004)),h=a(607),m=v(a(1005)),g=a(5),E=v(a(302)),y=v(a(606));function v(e){return e&&e.__esModule?e:{default:e}}var T,_,S,C,b,N,A=(r=function(){function e(){(0,o.default)(this,e)}return(0,l.default)(e,[{key:"setAccessToken",value:function(e){E.default.setAccessToken(e)}},{key:"getAccessToken",value:function(){return E.default.getAccessToken()}},{key:"removeAuthCookies",value:function(){E.default.removeAuthCookies()}},{key:"clear",value:function(){this.removeAuthCookies(),m.default.clear()}},{key:"clearPermission",value:function(){m.default.clear()}},{key:"checkPrivileges",value:function(e,t){var a=this;(0,s.default)(e,"permission keys must be set");var r=void 0,n=m.default.permission;return(0,u.isNil)(n)||(0,u.isNil)(this.getAccessToken())?null:(0,u.isFunction)(e)?e.call(this,n):((0,u.forEach)(function(e){r=(0,u.isObject)(e)?(0,u.isNil)(r)?a.checkPrivilegesByObject(e,n):(0,u.isNil)(t)||t!==d.default.PERMISSION_OPERATOR.Or?r&&a.checkPrivilegesByObject(e,n):r||a.checkPrivilegesByObject(e,n):(0,u.isNil)(r)?a.checkPrivilegesByKey(e,n):(0,u.isNil)(t)||t!==d.default.PERMISSION_OPERATOR.Or?r&&a.checkPrivilegesByKey(e,n):r||a.checkPrivilegesByKey(e,n)},e),r)}},{key:"checkPrivilegesByObject",value:function(e,t){var a=!1;a=(0,u.isObject)(e.left)?this.checkPrivilegesByObject(e.left,t):(0,u.get)(e.left,t);var r=!1;return r=(0,u.isObject)(e.right)?this.checkPrivilegesByObject(e.right,t):(0,u.get)(e.right,t),e.operator===d.default.PERMISSION_OPERATOR.Or?a||r:a&&r}},{key:"checkPrivilegesByKey",value:function(e,t){return(0,u.get)(e,t)}},{key:"checkLoginStatus",value:function(){return!(0,u.isNil)(E.default.getAccessToken())}},{key:"isIntegrationMode",value:function(){return f.default.isIntegrationMode}},{key:"checkLicense",value:function(e){(0,s.default)(e,"license key must be set");var t=p.default.currentUser.currentModules;return(0,u.isNil)(t)||(0,u.isNil)(this.getAccessToken())?null:(0,u.isFunction)(e)?e.call(this,t):!(0,u.isEmpty)((0,u.filter)(function(t){return(0,u.isEqual)(t,e)},t))}},{key:"getDefaultLink",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=[{key:c.default.LICENSE_KEY.Nlq,url:e.getRouteUrl(e.getConfigRoute("Explore"))},{key:c.default.LICENSE_KEY.ReportDesigner,url:e.getRouteUrl(e.getConfigRoute("Report"))},{key:c.default.LICENSE_KEY.Dashboard,url:e.getRouteUrl(e.getConfigRoute("Dashboard"))},{url:e.getRouteUrl(e.getConfigRoute("Settings"))}],r=E.default.getAccessToken(),n=h.licenseInfoInstance.modules;if((0,u.isNil)(r))return e.getRouteUrl(e.getConfigRoute("Account","Login"));if((0,u.isNil)(n)||t)return e.getRouteUrl(e.getConfigRoute("Settings"));for(var o=function(e){var t=(0,u.find)(function(t){return(0,u.isNil)((0,u.get)("key",a[e]))||(0,u.isEqual)(t.name,(0,u.get)("key",a[e]))},n);if(!(0,u.isNil)(t))return{v:a[e].url}},l=0;l1&&void 0!==arguments[1])||arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return(0,n.resolve)({});var i=f(e);return i.loadDraft=t,a||(i.validateReportDataSource=a),r&&(i.increaseView=r),(0,o.default)("report/loadforedit").post(i)},addCalculatedField:function(e){return(0,o.default)("report/calculatedfield").post(e)},deleteReportCalculatedField:function(e){return(0,o.default)("report/deleteReportCalculatedField").post(e)},hasReportUseCalculatedField:function(e){return(0,o.default)("report/hasReportUseCalculatedField/"+e).get()},hasReportUsePredicatedField:function(e){return(0,o.default)("report/hasReportUsePredictedField/"+e).get()},getPreviewData:function(e){return(0,o.default)("fusion/loadData").post(e)},getConfigReportPartPreviewData:function(e){return(0,o.default)("fusion/reportPartPreview").post(e)},getRandomPreviewData:function(e){return(0,o.default)("fusion/retrieveRandomExpandedLevelData").post(e)},validateFieldExpression:function(e){return(0,o.default)("fusion/validateExpression").post(e)},validateSubTotalExpression:function(e){return(0,o.default)("fusion/validateSubTotalExpression").post(e)},validateGrandTotalExpression:function(e){return(0,o.default)("fusion/validateGrandTotalExpression").post(e)},detectReportChange:function(e){return(0,o.default)("report/detectReportChange").post(e)},previewDSCalculatedField:function(e){return(0,o.default)("fusion/previewCalculatedField").post(e)},previewGrandTotal:function(e){return(0,o.default)("fusion/previewGrandTotal").post(e)},previewSubTotal:function(e){return(0,o.default)("fusion/previewSubTotal").post(e)},loadReportPartDefinition:s.default.memoize(function(e,t,a){var r="report/reportPart/"+e;return t&&(r+="/"+t),(0,d.isNil)(a)||(r+="?page="+a),(0,o.default)(r).get()},{resolver:function(){for(var e=arguments.length,t=Array(e),a=0;a5&&void 0!==arguments[5]&&arguments[5];return function(){return{container:{containerKey:e,get label(){return(0,o.isFunction)(t)?t():t},dataKey:a,height:r||70,maximumField:n,isHorizontal:i}}}},t.createConditionalContainerSchema=function(e,t,a,r,n,i){var l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return function(s){return e(s)?{container:{containerKey:t,get label(){return(0,o.isFunction)(a)?a():a},dataKey:r,height:n,maximumField:i,isHorizontal:l}}:null}},t.createXAxisCustomNameSchema=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){return{chart_xaxis:{maximumField:e,axisCustomName:a?i.default.getText(t):t}}}}),p=(t.createXAxisSchema=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return c(e,String.format(i.default.getText("REPORTDESIGNER_LABEL_X_AXIS_NAME"),i.default.getText(t)))},t.createXAxisSchemaWithTransposedLabel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return c(e,String.format(i.default.getText("REPORTDESIGNER_LABEL_Y_AXIS_NAME"),i.default.getText(t)))},t.createYAxisCustomNameSchema=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(){return{chart_yaxis:{maximumField:e,axisCustomName:a?i.default.getText(t):t,simpleViewForFullContainer:r}}}});t.createYAxisSchema=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;return p(e,String.format(i.default.getText("REPORTDESIGNER_LABEL_Y_AXIS_NAME"),i.default.getText(t)))},t.createYAxisSchemaWithTransposedLabel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return p(e,String.format(i.default.getText("REPORTDESIGNER_LABEL_X_AXIS_NAME"),i.default.getText(t)))},t.createYAxisMetricsSchema=function(){return{chart_yaxisMetrics:!0}},t.createGaugeYAxisMetricsSchema=function(){return{gauge_yaxisMetrics:!0}},t.createValuesLabelsSchema=function(e){return function(){return{chart_valuesLabels:{maximumField:e}}}},t.createBubbleSizeSchema=function(e){return function(){return{chart_bubbleSize:{maximumField:e}}}},t.createTotalLabelSchema=function(){return{chart_totalLabel:!0}},t.createSeparatorSchema=function(e){return(0,o.getOr)(!1,"properties.optionByType.izUseSeparator",e)?{chart_separators:{maximumField:1}}:{}},t.createStaticLabelSchema=function(e,t){return function(){return{staticLabel:{containerKey:e,get label(){return(0,o.isFunction)(t)?t():t}}}}}},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=y(a(14)),o=y(a(6)),l=y(a(2)),s=y(a(3)),u=y(a(7)),d=y(a(8)),c=y(a(1869)),p=a(0),f=y(p),h=a(1086),m=y(a(10)),g=a(1),E=a(34);function y(e){return e&&e.__esModule?e:{default:e}}(0,c.default)();var v=(n=r=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0&&r.goTo(1)},r._onClickLast=function(){var e=r.props.totalPage;e>0&&r.goTo(e)},r._onClickNext=function(){var e=r.props,t=e.pageIndex;t1&&r.goTo(e-1)},r._onPageNumberChange=function(e){r.paginatorStatus.pageIndexInputVal=e.target.value},r._onKeyPress=function(e){if("Enter"===e.key){var t=parseInt(e.target.value,10)||1,a=r.props.totalPage;r.paginatorStatus.pageIndexInputVal=t,t>=1&&t<=a&&r.goTo(t)}},r._onDropdownChange=function(e){var t=r.props;return t.confirmDirtyForm(t.isDirty&&t.isDirty()).then(function(){return S.default.resolve(t.onDropdownChange(parseInt(e.value,10))).then(function(){r.paginatorStatus.pageIndexInputVal=1})})},r.setDomNode=function(e){r.domNode=e},n=a,(0,p.default)(r,n)}return(0,f.default)(t,e),(0,c.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.pageIndex;t&&(this.paginatorStatus.pageIndexInputVal=t)}},{key:"componentDidMount",value:function(){this.addListener()}},{key:"componentWillUnmount",value:function(){this.removeListener()}},{key:"goTo",value:function(e){var t=this,a=this.props,r=this.props.pageIndex;a.confirmDirtyForm(a.isDirty&&a.isDirty()).then(function(){e!==r&&S.default.resolve(a.onChange(e)).then(function(){t.paginatorStatus.pageIndexInputVal=e})})}},{key:"addListener",value:function(){var e=this;this.domNode&&v.default.listenTo(this.domNode,function(t){t.clientWidth<325?!e.paginatorStatus.isSmall&&(e.paginatorStatus.isSmall=!0):e.paginatorStatus.isSmall&&(e.paginatorStatus.isSmall=!1)})}},{key:"removeListener",value:function(){this.domNode&&v.default.removeAllListeners(this.domNode)}},{key:"renderNoRecordFound",value:function(){var e=this.props,t=e.localization,a=e.className,r=this.getPaginatorClass(a);return m.default.createElement("nav",{className:r},m.default.createElement("span",null,t.getText("COMMON_MESSAGES_NO_RECORD_FOUND")))}},{key:"getButtonsClassName",value:function(e){var t=this.props,a=t.pageIndex,r=t.totalPage;return(0,T.default)({disabled:a===(e?r:1)})}},{key:"getPaginatorClass",value:function(e){return(0,T.default)("paginator",e)}},{key:"renderPaging",value:function(){var e=this.props,t=e.localization,a=e.totalPage,r=e.canChangePageSize,n=e.beginRecord,i=e.endRecord,o=e.className,l=e.totalRecords,s=this.getPaginatorClass(o),u=this.paginatorStatus.isSmall,d=!r||u?t.getText("PAGINATOR_WITHOUT_ITEMS_PER_PAGE"):t.getText("PAGINATOR_ITEMS_PER_PAGE"),c=String.format(d,n,i,l);return m.default.createElement("nav",{className:s,ref:this.setDomNode},m.default.createElement("div",null,c,!u&&r&&this.renderItemPerPageControl()),m.default.createElement("div",{className:"paginate"},u&&r&&this.renderItemPerPageControl(),m.default.createElement("a",{onClick:this._onClickFirst,className:this.getButtonsClassName(!1)},m.default.createElement("i",{className:"icon-step-backward"})),m.default.createElement("a",{onClick:this._onClickPrev,className:this.getButtonsClassName(!1)},m.default.createElement("i",{className:"icon-triangle-left"})),m.default.createElement("input",{type:"text",pattern:"[0-9]*",value:this.paginatorStatus.pageIndexInputVal,onChange:this._onPageNumberChange,onKeyPress:this._onKeyPress}),"/ ",a,m.default.createElement("a",{onClick:this._onClickNext,className:this.getButtonsClassName(!0)},m.default.createElement("i",{className:"icon-triangle-right"})),m.default.createElement("a",{onClick:this._onClickLast,className:this.getButtonsClassName(!0)},m.default.createElement("i",{className:"icon-step-forward"}))))}},{key:"getPageSizeOptions",value:function(e){return(0,C.map)(function(e){return{value:e}},e)}},{key:"renderItemPerPageControl",value:function(){var e=this.props,t=e.pageSizes,a=e.pageSize;return m.default.createElement(y.default,{className:"u_marginRight",options:this.getPageSizeOptions(t||b.PAGING_SIZE_OPTIONS),value:a,labelField:"value",valueField:"value",onChange:this._onDropdownChange,ref:"searchDropdown"})}},{key:"render",value:function(){var e=this.props.totalRecords;return e?0!==e?this.renderPaging():this.renderNoRecordFound():null}}]),t}(h.Component),o.displayName="Paginator",o.propTypes={totalRecords:h.PropTypes.number.isRequired,pageSize:h.PropTypes.number.isRequired,pageSizes:h.PropTypes.array,pageIndex:h.PropTypes.number.isRequired,onChange:h.PropTypes.func.isRequired,onDropdownChange:h.PropTypes.func.isRequired,className:h.PropTypes.string,canChangePageSize:h.PropTypes.bool},o.defaultProps={canChangePageSize:!0},A=(n=l).prototype,R="paginatorStatus",O=[g.observable],I={enumerable:!0,initializer:function(){return{pageIndexInputVal:this.props.pageIndex,isSmall:!1}}},P={},Object.keys(I).forEach(function(e){P[e]=I[e]}),P.enumerable=!!P.enumerable,P.configurable=!!P.configurable,("value"in P||P.initializer)&&(P.writable=!0),P=O.slice().reverse().reduce(function(e,t){return t(A,R,e)||e},P),D&&void 0!==P.initializer&&(P.value=P.initializer?P.initializer.call(D):void 0,P.initializer=void 0),void 0===P.initializer&&(Object.defineProperty(A,R,P),P=null),i=P,r=n))||r;t.default=L,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p,f=O(a(17)),h=a(20),m=O(a(2)),g=O(a(3)),E=a(5),y=a(1),v=O(a(41)),T=O(a(1145)),_=O(a(1146)),S=O(a(1149)),C=O(a(162)),b=O(a(106)),N=O(a(685)),A=O(a(389)),R=O(a(2046));function O(e){return e&&e.__esModule?e:{default:e}}function I(e,t,a,r){a&&(0,f.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function D(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var P=new(r=function(){function e(){(0,m.default)(this,e),I(this,"hasSetupAndLicense",n,this),I(this,"licenseInfoStore",i,this),I(this,"provisionMapDataStore",o,this),I(this,"performanceStore",l,this),I(this,"securityStore",s,this),I(this,"otherSettingsStore",u,this),I(this,"accountStore",d,this),I(this,"securityManager",c,this),I(this,"systemSettingsStore",p,this)}return(0,g.default)(e,[{key:"loadAppState",value:function(){var e=this.securityManager.getAccessToken();(0,y.isNil)(e)||this.loadAppSettings()}},{key:"loadAppSettings",value:function(){return(0,h.all)([this.loadPerformance(),this.loadSecurity(),this.loadOther(),this.loadSystemSettings()])}},{key:"loadPerformance",value:function(){return this.performanceStore.loadPerformance().then(v.default.setPerformance.bind(v.default))}},{key:"loadSecurity",value:function(){return this.securityStore.loadSecurity().then(v.default.setSecurity.bind(v.default))}},{key:"loadOther",value:function(){return this.otherSettingsStore.loadOther().then(v.default.setOther.bind(v.default))}},{key:"loadSystemSettings",value:function(){return this.systemSettingsStore.loadSystemSettings().then(v.default.setSystemSettings.bind(v.default))}},{key:"loadCategorySettings",value:function(){return this.systemSettingsStore.loadCategorySettings()}},{key:"getProvisionMapDataStatus",value:function(){var e=this.securityManager.getAccessToken();(0,y.isNil)(e)||this.provisionMapDataStore.getProvisioningStatus()}}]),e}(),n=D(r.prototype,"hasSetupAndLicense",[E.observable],{enumerable:!0,initializer:function(){return!1}}),i=D(r.prototype,"licenseInfoStore",[E.observable],{enumerable:!0,initializer:function(){return N.default}}),o=D(r.prototype,"provisionMapDataStore",[E.observable],{enumerable:!0,initializer:function(){return A.default}}),l=D(r.prototype,"performanceStore",[E.observable],{enumerable:!0,initializer:function(){return new T.default}}),s=D(r.prototype,"securityStore",[E.observable],{enumerable:!0,initializer:function(){return new _.default}}),u=D(r.prototype,"otherSettingsStore",[E.observable],{enumerable:!0,initializer:function(){return new S.default}}),d=D(r.prototype,"accountStore",[E.observable],{enumerable:!0,initializer:function(){return new C.default}}),c=D(r.prototype,"securityManager",[E.observable],{enumerable:!0,initializer:function(){return new b.default}}),p=D(r.prototype,"systemSettingsStore",[E.observable],{enumerable:!0,initializer:function(){return new R.default}}),r);t.default=P,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(12)),n=i(a(34));function i(e){return e&&e.__esModule?e:{default:e}}var o={FILTER:"filter",HEADER:"reportHeader",FOOTER:"reportFooter",TITLE_DESCRIPTION:"reportTitleDescription"},l=[{get label(){return r.default.getText("REPORTDESIGNER_LABEL_FIELDS_FILTERS_HEADER")},value:o.FILTER},{get label(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_REPORT_HEADER")},value:o.HEADER},{get label(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_REPORT_TITLE_DESCRIPTION")},value:o.TITLE_DESCRIPTION},{get label(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_REPORT_FOOTER")},value:o.FOOTER}],s={image:{value:"image",get label(){return r.default.getText("COMMON_DATA_TYPE_IMAGE")},defaultName:"image",defaultValue:"",width:6,height:6,imageUrl:"http://",defaultImgBtn:"button",imageDimensions:{imageWidth:1,imageHeight:1,isConstrainProportions:!0}},text:{value:"text",get label(){return r.default.getText("COMMON_DATA_TYPE_TEXT")},defaultName:"text",defaultValue:"",width:8,height:2,minHeight:2},horizontalRule:{value:"horizontalRule",get label(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_ITEMS_TYPE_HORIZONTAL_RULE")},defaultName:"horizontalRule",defaultValue:"{horizontalRule}",width:12,height:1},thinHorizontalRule:{value:"thinHorizontalRule",get label(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_ITEMS_TYPE_HORIZONTAL_RULE")},defaultName:"horizontalRule",defaultValue:"{horizontalRule}",width:16,height:1},verticalRule:{value:"verticalRule",get label(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_ITEMS_TYPE_VERTICAL_RULE")},defaultName:"verticalRule ",defaultValue:"{verticalRule}",width:1,height:5},dateTime:{value:"dateTime",get label(){return r.default.getText("COMMON_LABEL_DATE_TIME")},defaultName:"currentDateTime",defaultValue:"{currentDateTime}",width:8,height:2,minHeight:2},pageNumber:{value:"pageNumber",get label(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_ITEMS_TYPE_PAGE_NUMBER")},defaultName:"pageNumber",defaultValue:"{pageNumber}",width:8,height:2,minHeight:2},title:{value:"title",get label(){return r.default.getText("COMMON_LABEL_TITLE")}},description:{value:"description",get label(){return r.default.getText("COMMON_LABEL_DESCRIPTION")}}},u={image:{type:s.image.value,label:s.image.label,name:"",imageUrl:s.image.imageUrl,defaultImgBtn:s.image.defaultImgBtn,imageDimensions:{imageWidth:1,imageHeight:1,isConstrainProportions:!0}},text:{type:s.text.value,label:s.text.label,name:"",value:"",fontFormat:{},fontStyle:{},alignment:null},dateTime:{type:s.dateTime.value,label:s.dateTime.label,name:"",value:"",format:null,fontFormat:{},fontStyle:{},alignment:null},pageNumber:{type:s.pageNumber.value,label:s.pageNumber.label,name:"",value:"",format:null,fontFormat:{},fontStyle:{},alignment:null},horizontalRule:{type:s.horizontalRule.value,label:s.horizontalRule.label,name:"",value:"",color:"",dashStyle:"",thickness:1},thinHorizontalRule:{type:s.thinHorizontalRule.value,label:s.thinHorizontalRule.label,name:"",value:"",color:"",dashStyle:"",thickness:1},verticalRule:{type:s.verticalRule.value,label:s.verticalRule.label,name:"",value:"",color:"",dashStyle:"",thickness:1},title:{get label(){return r.default.getText("COMMON_LABEL_TITLE")},fontFormat:{},fontStyle:{},alignment:null},description:{get label(){return r.default.getText("COMMON_LABEL_DESCRIPTION")},fontFormat:{},fontStyle:{},alignment:null}},d=[{value:s.image.value,get label(){return s.image.label}},{value:s.text.value,get label(){return s.text.label}},{value:s.dateTime.value,get label(){return s.dateTime.label}},{value:s.pageNumber.value,get label(){return s.pageNumber.label}},{value:s.horizontalRule.value,get label(){return s.horizontalRule.label}},{value:s.verticalRule.value,get label(){return s.verticalRule.label}}],c={image:{type:s.image.value,label:s.image.label,positionX:0,positionY:0,width:6,height:6,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_LOGO_IMAGE")},value:"",imageUrl:"http://",imageDimensions:{imageWidth:1,imageHeight:1,isConstrainProportions:!0}},reportName:{type:s.text.value,label:s.text.label,positionX:20,positionY:0,width:12,height:2,minHeight:s.text.minHeight,get name(){return r.default.getText("COMMON_LABEL_REPORT_NAME")},value:"{reportName}"},upperSeparatorLine:{type:s.thinHorizontalRule.value,label:s.thinHorizontalRule.label,positionX:20,positionY:4,width:12,height:1,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_UPPER_SEPARATOR_LINE")},value:"{horizontalRule}",thickness:2,color:n.default.borderColor},reportGenerate:{type:s.text.value,label:s.text.label,positionX:20,positionY:5,width:6,height:2,minHeight:s.text.minHeight,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_REPORT_GENERATED")},value:"Report Generated:"},user:{type:s.text.value,label:s.text.label,positionX:20,positionY:7,width:6,height:2,minHeight:s.text.minHeight,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_USER")},value:"User:"},tenant:{type:s.text.value,label:s.text.label,positionX:20,positionY:9,width:6,height:2,minHeight:s.text.minHeight,get name(){return r.default.getText("COMMON_LABEL_TENANT")},value:"Tenant:"},currentDateTime:{type:s.dateTime.value,label:s.dateTime.label,positionX:26,positionY:5,width:6,height:2,minHeight:s.dateTime.minHeight,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_CURRENT_DATE_TIME")},value:"{currentDateTime}"},currentUserName:{type:s.text.value,label:s.text.label,positionX:26,positionY:7,width:6,height:2,minHeight:s.text.minHeight,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_CURRENT_USER_NAME")},value:"{currentUserName}"},tenantName:{type:s.text.value,label:s.text.label,positionX:26,positionY:9,width:6,height:2,minHeight:s.text.minHeight,get name(){return r.default.getText("COMMON_LABEL_TENANT_NAME")},value:"{tenantName}"},lowerSeparatorLine:{type:s.horizontalRule.value,label:s.horizontalRule.label,positionX:0,positionY:11,width:32,height:1,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_LOWER_SEPARATOR_LINE")},value:"{horizontalRule}",thickness:4,color:n.default.borderColor}},p={separatorLine:{type:s.horizontalRule.value,label:s.horizontalRule.label,positionX:0,positionY:0,width:32,height:1,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_SEPARATOR_LINE")},value:"{horizontalRule}",thickness:4,color:n.default.borderColor},footerText:{type:s.text.value,label:s.text.label,positionX:0,positionY:1,width:10,height:2,minHeight:s.text.minHeight,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_FOOTER_TEXT")},value:"Footer Text"},page:{type:s.text.value,label:s.text.label,positionX:20,positionY:1,width:4,height:2,minHeight:s.text.minHeight,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_PAGE")},value:"Page"},pageNumber:{type:s.pageNumber.value,label:s.pageNumber.label,positionX:24,positionY:1,width:8,height:2,minHeight:s.text.minHeight,get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_PAGE_NUMBER")},value:"{pageNumber}"}},f={title:{type:s.title.value,label:s.title.label,name:s.title.label,value:""},description:{type:s.description.value,label:s.description.label,name:s.description.label,value:""}},h={get M01(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_MESSAGES_ITEM_NAME_EXISTS")}};t.default={FORMAT_GROUP_CONFIG:o,FORMAT_GROUP:l,get TITLE(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_TITLE_REPORT_FORMATTING")},HEADER_FOOTER:{get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_REPORT_HEADER_FOOTER")},items:d},GRID_ROWS_COLUMNS:15,TITLE_DESCRIPTION:{get name(){return r.default.getText("REPORT_DESIGNER_FORMAT_CONSTANTS_LABEL_REPORT_TITLE_DESCRIPTION")}},NUMBER_HEADER_COLS:32,NUMBER_HEADER_ROWS:12,NUMBER_FOOTER_COLS:32,NUMBER_FOOTER_ROWS:5,ROW_HEIGHT:25,ITEMS_TYPE:s,reportHeader:c,reportFooter:p,reportTitleDescription:f,OPTIONS_BY_FORMAT_TYPE:u,MESSAGES:h,DEFAULT_ITEM_MIN_HEIGHT:1},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(a(12));n(a(25));function n(e){return e&&e.__esModule?e:{default:e}}var i={REPORT:0,DASHBOARD:1,TENANT:2},o={ACCESS:1,SCHEDULE:2};t.default={get DEFAULT_VALUE(){return{SEARCH_CRITERIA:"All",SORT_DIRS:{shareWith:"DESC"}}},get ACCESS_TABLE_DEF(){return{selected:{key:"selected",width:30,title:"",sortable:!1,columnKey:"selected ",fixed:!0,align:"center"},shareWith:{key:"shareWith",width:300,title:r.default.getText("ACCESS_CONSTANT_ACCESS_TABLE_DEF_SHARE_WITH"),sortable:!0,columnKey:"shareWith"},accessRight:{key:"accessRight",width:150,title:r.default.getText("ACCESS_CONSTANT_ACCESS_TABLE_DEF_ACCESS_RIGHT"),sortable:!0,columnKey:"accessRight",fixed:!0},actions:{key:"actions",width:80,title:r.default.getText("COMMON_LABEL_ACTION"),sortable:!1,columnKey:"actions",fixed:!0,align:"center"}}},get SEARCH_OPTIONS(){return[{value:"All",label:r.default.getText("COMMON_LABEL_ALL")},{value:"shareWith",label:r.default.getText("ACCESS_CONSTANT_LABEL_SEARCH_OPTION_SHARE_WITH")},{value:"accessRight",label:r.default.getText("ACCESS_CONSTANT_LABEL_SEARCH_OPTION_ACCESS_RIGHT")}]},get ASSIGNED_TYPE(){return[{value:1,label:r.default.getText("ACCESS_CONSTANT_LABEL_ASSIGNED_TYPE_EVERYONE"),visibility:"all"},{value:4,label:r.default.getText("COMMON_LABEL_TENANT"),visibility:"global"},{value:2,label:r.default.getText("COMMON_LABEL_ROLE"),visibility:"all"},{value:3,label:r.default.getText("ACCESS_CONSTANT_LABEL_ASSIGNED_TYPE_USER"),visibility:"local"}]},COMPONENT_CONFIG:{1:null,2:{component:a(1147),props:{usingPopup:!0,valueField:"id",textField:"name"}},3:{component:a(385),props:{useSearchName:!0,usingPopup:!0,valueField:"id",textField:"name",userModeType:1,useEmailInOptions:!0}},4:{component:a(2223),props:{usingPopup:!0,valueField:"id",textField:"name"}}},get CONSTRAINTS(){return{SHARE_WITH:{presence:{presence:!0,message:r.default.getText("COMMON_CONSTRAINT_REQUIRED")}},ACCESS_RIGHT:{presence:{presence:!0,message:r.default.getText("ACCESS_CONSTANT_CONSTRAINT_ACCESS_RIGHT")}},USER:{presence:{presence:!0,message:r.default.getText("ACCESS_CONSTANT_CONSTRAINT_USER")}},ROLE:{presence:{presence:!0,message:r.default.getText("ACCESS_CONSTANT_CONSTRAINT_ROLE")}},TENANT:{presence:{presence:!0,message:r.default.getText("ACCESS_CONSTANT_CONSTRAINT_TENANT")}},REPORT_OWNER:{presence:{presence:!0,message:r.default.getText("ACCESS_CONSTANT_CONSTRAINT_REPORT_OWNER")}},DASHBOARD_OWNER:{presence:{presence:!0,message:r.default.getText("ACCESS_CONSTANT_CONSTRAINT_DASHBOARD_OWNER")}}}},get MESSAGE(){return{M01a:r.default.getText("ACCESS_CONSTANT_MESSAGE_CONFIRM_DELETE_SHARED_INSTANCE"),M01b:r.default.getText("ACCESS_CONSTANT_MESSAGE_CONFIRM_DELETE_SELECTED_SHARED_INSTANCES"),M02a:r.default.getText("ACCESS_CONSTANT_MESSAGE_CONFIRM_DELETE_DEFAULT_ACCESS_RIGHT"),M02b:r.default.getText("ACCESS_CONSTANT_MESSAGE_CONFIRM_DELETE_SELECTED_DEFAULT_ACCESS_RIGHT"),REMOVE_ROLE:r.default.getText("ACCESS_CONSTANT_MESSAGE_REMOVE_ROLES"),REMOVE_USER:r.default.getText("ACCESS_CONSTANT_MESSAGE_REMOVE_USERS"),REMOVE_DASHBOARD_USER:r.default.getText("DASHBOARD_CONSTANT_MESSAGE_REMOVE_USERS"),REMOVE_DASHBOARD_ROLE:r.default.getText("DASHBOARD_CONSTANT_MESSAGE_REMOVE_ROLES")}},get PERMISSION_ACCESS_TABLE_DEF(){return{selected:{key:"selected",width:30,title:"",sortable:!1,columnKey:"selected ",fixed:!0,align:"center"},shareWith:{key:"shareWith",width:200,get title(){return r.default.getText("ACCESS_CONSTANT_PERMISSION_ACCESS_TABLE_DEF_SHARE_WITH")},sortable:!0,columnKey:"shareWith"},reportAccessRightId:{key:"reportAccessRight",width:200,get title(){return r.default.getText("ACCESS_CONSTANT_PERMISSION_ACCESS_TABLE_DEF_REPORT_ACCESS_RIGHT")},sortable:!0,columnKey:"reportAccessRights",fixed:!0},dashboardAccessRightId:{key:"dashboardAccessRight",width:200,get title(){return r.default.getText("ACCESS_CONSTANT_PERMISSION_ACCESS_TABLE_DEF_DASHBOARD_ACCESS_RIGHT")},sortable:!0,columnKey:"dashboardAccessRights",fixed:!0},actions:{key:"actions",width:80,get title(){return r.default.getText("COMMON_LABEL_ACTION")},sortable:!1,columnKey:"actions",fixed:!0,align:"center"}}},get PERMISSION_SEARCH_OPTIONS(){return[{value:"All",label:r.default.getText("COMMON_LABEL_ALL")},{value:"shareWith",label:r.default.getText("ACCESS_CONSTANT_LABEL_PERMISSION_SEARCH_OPTION_SHARE_WITH")},{value:"reportAccessRights",label:r.default.getText("ACCESS_CONSTANT_LABEL_PERMISSION_SEARCH_OPTION_REPORT_ACCESS_RIGHT")},{value:"dashboardAccessRights",label:r.default.getText("ACCESS_CONSTANT_LABEL_PERMISSION_SEARCH_OPTION_DASHBOARD_ACCESS_RIGHT")}]},get ACCESS_MODE(){return i},get BUTTON(){return{ADD_SHARING_LABEL:r.default.getText("ACCESS_CONSTANT_LABEL_ADD_SHARING"),ADD_DEFAULT_ACCESS:r.default.getText("ACCESS_CONSTANT_LABEL_ADD_DEFAULT_ACCESS")}},get USER_ACCESS_MODE(){return o},get ACCESS_DEFAULT_GRID(){return{assignedTypeName:{key:"assignedTypeName",width:150,get title(){return r.default.getText("ACCESS_CONSTANT_PERMISSION_ACCESS_TABLE_DEF_SHARE_WITH")},sortable:!0,columnKey:"assignedTypeName ",fixed:!0},accessorNames:{key:"accessorNames",width:340,get title(){return r.default.getText("ACCESS_CONSTANT_PERMISSION_ACCESS_TABLE_DEF_SHARING_SELECTION")},sortable:!0,columnKey:"accessorNames",fixed:!0},reportAccessRights:{key:"reportAccessRights",width:180,get title(){return r.default.getText("ACCESS_CONSTANT_PERMISSION_ACCESS_TABLE_DEF_REPORT_ACCESS_RIGHT")},sortable:!0,columnKey:"reportAccessRights",fixed:!0},dashboardAccessRights:{key:"dashboardAccessRights",width:200,get title(){return r.default.getText("ACCESS_CONSTANT_PERMISSION_ACCESS_TABLE_DEF_DASHBOARD_ACCESS_RIGHT")},sortable:!0,columnKey:"dashboardAccessRights"}}},ASSIGN_TYPE:{ALL:1,ROLE:2,USER:3,TENANT:4}},e.exports=t.default},,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeNode=void 0;var r,n,i,o,l,s,u,d=v(a(17)),c=v(a(80)),p=v(a(175)),f=v(a(58)),h=v(a(23)),m=v(a(2)),g=v(a(3));t.concatTree=function(e,t,a,r,n){if((0,y.isEmpty)(e))return void t.forEach(function(i,o){e.push(i),o===t.length-1&&C(e,i,a,r,n)});!function e(t,a,r,n,i,o,l){a.forEach(function(s,u){var d=(0,y.find)(["id",s.id],t);d?(0,y.forEach)(function(t){var a=(0,y.clone)(i);a.push(s.id);var r={checked:d.checked,indeterminate:d.indeterminate};e(d[t.prop],s[t.prop],t.children,s.numOfChilds,a,r,s.isLastPage)},r):((0,y.some)("isVirtualNode",t)&&t.splice(t.length-1,1),!o||(0,y.isNil)(o.checked)||!o.checked&&o.indeterminate||function e(t,a){t.checked=a;t.indeterminate=!1;t.numOfCheckedChilds=a?t.numOfChilds:0;t.childNodes&&t.childNodes.forEach(function(t){return e(t,a)})}(s,o.checked),t.push(s),l||u!==a.length-1||C(t,s,r,n,i))});(0,y.isEmpty)(a)&&(0,y.some)("isVirtualNode",t)&&t.splice(t.length-1,1)}(e,t,a,r,n,null,!1)},t.updateTree=function(e,t,a,r){if((0,y.isEmpty)(t))return;function n(e){return!!(0,y.isNil)(r)||(0,y.includes)(e,r)}!function e(t,a,r){(0,y.forEach)(function(a){var i=(0,y.find)(["id",a.id],t);if(i){var o=(0,y.reduce)(function(e,t){return t.checked?e+1:e},0,a.childNodes);(a.checked||!a.checked&&!a.indeterminate||a.numOfCheckedChilds===o&&a.interacted)&&i.childNodes&&i.childNodes.forEach(function(e){e.checked=a.checked,e.indeterminate=!1});for(var l=(0,f.default)(i),s=0;s0&&(o-=n),e.push(b([],o))}}),e;(0,y.some)("isVirtualNode",e)&&e.splice(e.length-1,1),t.forEach(function(t){return(null===t[a]||!(0,y.some)((0,c.default)({},a,t[a]),e))&&e.push(t)});var i=e.length;!(0,y.isNil)(n)&&n>0&&(i-=n);return r&&e.push(b([],i)),e},t.parseToTree=function(e,t){var a=[];return(0,y.forEach)(function(t){var r=(0,y.flow)((0,y.map)(function e(t,a,r,n){var i=[];this&&!this.indeterminate&&(n.checked=this.checked,n.indeterminate=!1),n.indeterminate||(n.numOfCheckedChilds=n.checked?n.numOfChilds:0),(0,y.isNil)(n.name)&&(n.name=t.defaultName);var o={checked:n.checked,indeterminate:n.indeterminate};return!(0,y.isNil)(t.children)&&(0,y.forEach)(function(t){var a=(0,y.flow)((0,y.map)(e.bind(o,t,!1,n.id)),(0,y.filter)(function(e){return!(0,y.isNil)(e)}))(n[t.prop]);i=i.concat(a)},t.children),new S({mapItem:t,child:n,firstNode:a,childNodes:i})}.bind(null,t,!0,null)),(0,y.filter)(function(e){return!(0,y.isNil)(e)}))(e);a=a.concat(r)},t),a},t.updateInteractiveTree=function(e,t,a){var r=R(e);r.interacted=!0;for(;null!==t;)r=R(t.data,r),t=t.parent;!function e(t,a){var r=(0,y.find)(function(e){return e.id===a.id},t);r?(r.checked=a.checked,r.interacted=r.interacted||a.interacted,r.indeterminate=a.indeterminate,r.numOfCheckedChilds=a.numOfCheckedChilds,(0,y.isEmpty)(r.childNodes)?r.childNodes=a.childNodes:(0,y.isEmpty)(a.childNodes)?r.childNodes=[]:e(r.childNodes,a.childNodes[0])):t.push(a)}(a,r)};var E=a(5),y=a(1);function v(e){return e&&e.__esModule?e:{default:e}}function T(e,t,a,r){a&&(0,d.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function _(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var S=t.TreeNode=(r=function(){function e(t){(0,m.default)(this,e),T(this,"nodeType",n,this),T(this,"source",i,this),T(this,"isLeafNode",o,this),T(this,"showTotal",l,this),T(this,"expand",s,this),T(this,"disabled",u,this),this.map={},this.childNodes=[],this.populateData(t)}return(0,g.default)(e,[{key:"populateData",value:function(e){this.nodeType=e.mapItem.nodeType,this.source=e.child,this.expand=(0,y.isNil)(e.child.expand)?e.mapItem.expand:e.child.expand,this.isLeafNode=(0,y.isNil)(e.mapItem.children),this.showTotal=e.mapItem.showTotal,this.disabled=e.mapItem.disabledIfNoChild&&(0,y.isEmpty)(e.childNodes),this.childNodes=e.childNodes,this.map=e.mapItem}},{key:"onChange",value:function(e,t,a){return function(e,t,a,r){var n=r.target.checked,i=N(t);A(t,n),function e(t,a,r){(0,y.forEach)(function(r){(0,y.forEach)(function(t){A(t,a),e(t,a,r.children)},t[r.prop])},r)}(t,n,e),function e(t,a,r,n){if(!(0,y.isNil)(t)){var i=t.data.source;n?(r&&i.numOfCheckedChilds--,r=N(i),i.indeterminate=!0):a?(i.numOfCheckedChilds++,i.numOfCheckedChilds===i.numOfChilds?(i.checked=!0,i.indeterminate=!1):i.indeterminate=!0):(r&&i.numOfCheckedChilds--,r=N(i),0===i.numOfCheckedChilds&&(0,y.every)(function(e){return!e.source.indeterminate},t.data.childNodes)?(i.checked=!1,i.indeterminate=!1):i.indeterminate=!0),(0,y.isNil)(t.parent)||e(t.parent,i.checked,r,i.indeterminate)}}(a,n,i,t.indeterminate)}(this.map.children,e,t,a)}},{key:"getChildNodes",value:function(){return this.isLeafNode?[]:this.childNodes}}]),e}(),n=_(r.prototype,"nodeType",[E.observable],{enumerable:!0,initializer:function(){return""}}),i=_(r.prototype,"source",[E.observable],{enumerable:!0,initializer:function(){return null}}),o=_(r.prototype,"isLeafNode",[E.observable],{enumerable:!0,initializer:function(){return!1}}),l=_(r.prototype,"showTotal",[E.observable],{enumerable:!0,initializer:function(){return!1}}),s=_(r.prototype,"expand",[E.observable],{enumerable:!0,initializer:function(){return!1}}),u=_(r.prototype,"disabled",[E.observable],{enumerable:!0,initializer:function(){return!1}}),_(r.prototype,"populateData",[E.action],(0,h.default)(r.prototype,"populateData"),r.prototype),r);function C(e,t,a,r,n){r!==e.length&&e.push(b(n,e.length)),n.push(t.id),function e(t,a,r){(0,y.forEach)(function(a){var n=t[a.prop];if(!(0,y.isEmpty)(n)){var i=n[n.length-1],o=(0,y.clone)(r);o.push(i.id),e(i,a.children,o),t.isLastPage||t.numOfChilds===n.length||n.push(b(r,n.length))}},a)}(t,a,n)}function b(e,t){return{id:(0,y.uniqueId)("VirtualNode_"),name:"Virtual Node",isVirtualNode:!0,isRendering:!1,parentIds:e,fromIndex:t}}function N(e){return!e.indeterminate&&e.checked}function A(e,t){e.checked=t,!(0,y.isNil)(e.indeterminate)&&(e.indeterminate=!1),!(0,y.isNil)(e.numOfCheckedChilds)&&!(0,y.isNil)(e.numOfChilds)&&(e.numOfCheckedChilds=t?e.numOfChilds:0)}function R(e,t){var a=(0,y.pick)(["id","name","checked","interacted","indeterminate","numOfCheckedChilds","uncheckedSSO"],e.source);return a.childNodes=t?[t]:[],a}},,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};var o={link:"link",embedded:"Embedded HTML",attachment:"attachment"};t.default={EMAIL:{sale:"mailto:sales@izenda.com",licenseAssistance:"mailto:sales@izenda.com?Subject=License%20Assistance",connectionStringAssistance:"mailto:customersupport@izenda.com?Subject=Connection%20String%20Assistance"},MESSAGE:{get M12a(){return i.default.getText("EMAIL_MESSAGE_SENT_SUCCESSFULLY")},get M12b(){return i.default.getText("EMAIL_MESSAGE_SENT_FAIL")}},get REQUIRE_CONSTRAINTS(){return{presence:{presence:!0,message:i.default.getText("EMAIL_MESSAGE_CONSTRAINT")}}},get EMAIL_VALIDATION(){return{REGEX:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,MESSAGE:function(e){return i.default.getText("EMAIL_MESSAGE_VALIDATION")+e.join("; ")}}},DELIVERY_METHOD:o,DELIVERY_OPTIONS:[{value:o.link,key:"EmailingDeliveryMethodLink",get label(){return i.default.getText("COMMON_LABEL_LINK")}},{value:o.embedded,key:"EmailingDeliveryMethodEmbeddedHTML",get label(){return i.default.getText("COMMON_LABEL_EMBEDDED_HTML")}},{value:o.attachment,key:"EmailingDeliveryMethodAttachment",get label(){return i.default.getText("COMMON_LABEL_ATTACHMENT")}}],ATTACH_TYPE_OPTIONS:[{value:"Word",label:"Word",key:"EmailingAttachmentTypeWord"},{value:"Excel",label:"Excel",key:"EmailingAttachmentTypeExcel"},{value:"Pdf",label:"PDF",key:"EmailingAttachmentTypePdf"},{value:"Csv",label:"CSV",key:"EmailingAttachmentTypeCsv"},{value:"Xml",label:"XML",key:"EmailingAttachmentTypeXml"},{value:"Json",label:"JSON",key:"EmailingAttachmentTypeJson"},{value:"Definition",key:"EmailingAttachmentTypeDefinition",get label(){return i.default.getText("PERMISSION_LABEL_DEFINITION")}}],EMAIL_TYPE:{report:"report",dashboard:"dashboard"},EMAIL_SUBJECT:{KEY:"Subject",CLASS:".email-subject",DEFAULT:{report:"{reportName}",dashboard:"{dashboardName}"}},EMAIL_BODY:{KEY:"Body",CLASS:".email-body"},TEMPLATE_TYPE:2},e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(227),n=d(a(16)),i=a(1),o=d(a(22)),l=d(a(41)),s=a(43),u=a(109);function d(e){return e&&e.__esModule?e:{default:e}}t.default={TimeZoneOffset:{onChangePattern:/^(\+|\-)?((1[0-2])|0?[0-9])?$/,finishedPattern:/^(\+|\-)?((1[0-2])|0?[0-9])$/,checkTimeZoneFormatOnTyping:function(e){return this.onChangePattern.test(e)},checkTimeZoneFormat:function(e){return this.finishedPattern.test(e)},formatTimeZone:function(e){return(e>0?"+":"")+e}},DEFAULT_TIME_VALUE:u.DEFAULT_TIME_VALUE,filterDateTimeFormat:(0,i.filter)(function(e){var t=(0,i.get)("FOR_DATE_SETTING",r.DATE_TIME_FORMAT[e.name]);return(0,i.isNil)(t)||(0,i.includes)(n.default.currentUser.dateFormat,t)}),compareDateStringFormat:function(e,t){var a=new Date(e),r=new Date(t);return a.getTime()>r.getTime()},getUtcTimeWithTimestampOffset:function(){var e=o.default.utc(),t=(0,i.getOr)(0,"advancedSettings.other.timezoneForTimestampOffsetValue",l.default),a=(0,i.get)("currentUser.timestampOffset",n.default),r=(0,i.isNil)(a)?t:a;return e.add(r,"hours"),e},reverseRangeValuesIfNeeded:function(e){return e[0]&&e[0].isAfter(e[1])?(0,i.reverse)(e):e},getConfiguredMinMaxDateTime:function(){return{MinDate:(0,o.default)(s.MinDate).set({hour:0,minute:0,second:0,millisecond:0}).toDate(),MaxDate:(0,o.default)(s.MaxDate).set({hour:23,minute:59,second:59,millisecond:999}).toDate()}},getNowWithoutTime:function(){return(0,o.default)({h:0,m:0,s:0,ms:0})},parseDateTime:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if((0,i.isEmpty)(e))return null;var a=null,r=[u.DATE_TIME_FORMAT,u.DATE_FORMAT,u.TIME_FORMAT].concat(t);return(0,i.reduce)(function(t,r){if(t)return!0;var n=(0,o.default)(e,r,!0);return n.isValid()&&(a=n),n.isValid()},!1,r)?a:null},formattedDateTime:function(e){var t=new Date(e),a=""+t.getDate()+function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(t.getDate());return u.MONTHS[t.getMonth()]+" "+a+", "+t.getFullYear()},isDateTimeValid:function(e){return e&&e.isValid()},isDateValid:function(e,t){t=t.split(" ")[0];var a=(0,o.default)(e,t);return!(null==a||!a.isValid())&&e.indexOf(a.format(t))>=0},formatAMPM:function(e){var t=e.getHours(),a=e.getMinutes(),r=t>=12?"pm":"am";return{hours:t=(t%=12)||12,minutes:a=a<10?"0"+a:a,ampm:r}}},e.exports=t.default},,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(90)),n=s(a(76)),i=s(a(259)),o=s(a(230)),l=a(1);function s(e){return e&&e.__esModule?e:{default:e}}var u="report/",d={loadAllCategories:function(e,t){return t=(0,l.isNil)(t)?"":t,(0,n.default)("report/allcategories/"+e+"/"+t).get()},loadCategoriesForCopyPopup:function(e,t,a){return(0,l.isNil)(t)&&(t=""),(0,n.default)("report/category/"+e+"/"+t+"?isGlobal="+!!a).get()},loadSubCategoriesForCopyPopup:function(e){return(0,n.default)("report/subcategory/"+e).get()},loadReportCategories:function(e,t){return t=!(0,l.isNil)(t)&&t,(0,n.default)("report/list?includeHashCode="+t).post(e)},loadReportHistory:function(e,t,a){var r={reportId:a,tenantId:e,criteria:(t=t||{}).searchCriteria||[],pageIndex:t.pageIndex||1,pageSize:t.pageSize||10,sortOrders:t.sortOrders||[{key:"version",descending:!0}]};return(0,n.default)("report/history").post(r)},updateSubscriptions:function(e){return e=e||[],(0,n.default)("report/subscriptions").post(e)},loadSubscription:function(e,t,a,r){var i={reportId:a,isSubscription:r,tenantId:e,criteria:(t=t||{}).searchCriteria||[],pageIndex:t.pageIndex||1,pageSize:t.pageSize||10,sortOrders:t.sortOrders||[{key:"name",descending:!0}]};return(0,n.default)("report/loadSubscriptions").post(i)},loadSchedules:function(e,t,a){var r={reportId:e,subscriptions:t,criteria:(a=a||{}).searchCriteria||[],pageIndex:a.pageIndex||1,pageSize:a.pageSize||10,sortOrders:a.sortOrders||[{key:"name",descending:!0}]};return(0,n.default)("report/loadSchedules").post(r)},validateCategoryName:function(e){return(0,n.default)("report/category").post(e)},getReportIdByNameAndCateName:function(e,t,a){return a=a||"",t=t?"?reportName="+t:"",e=e?"&categoryName="+e:"",(0,n.default)("report/reportId/"+a+t+e).get()},validateExistingReport:function(e,t,a){var r={tenantId:a,reportName:t,categoryName:e};return(0,n.default)("report/validateExistingReport").post(r)},validateExistingField:function(e,t,a,r){var i={tenantId:r,reportName:t,categoryName:e,columnFullReference:a};return(0,n.default)("report/validateExistingField").post(i)},renameReport:function(e){return(0,n.default)("report/rename").post(e)},deleteReport:function(e,t){return t=t||"",(0,n.default)("report/delete/"+t).post(e)},deleteReportCategory:function(e){return(0,n.default)("report/category/"+e).delete()},copyNewReport:function(e){return(0,n.default)("report/copy").post(e)},moveReport:function(e){return(0,n.default)("report/move").post(e)},validateSubscription:function(e){return(0,n.default)("report/subscription/validate").post(e)},fetchEmailTemplates:function(e){return(0,n.default)("report/emailTemplates/"+e).get()},loadReportVersion:function(e,t,a){return(0,n.default)("report/version/"+e+"/"+t).post(a||{})},deleteReportHistory:function(e,t){return t=t||0,(0,n.default)("report/history/"+e+"/"+t).delete()},reportInfo:function(e,t){return t=t||null,(0,n.default)("report/info/"+e+"/"+t).get()},reportByProperty:o.default.memoize(function(e,t){return(0,n.default)("report/reportByProperty/"+e+"/"+t).get()},{resolver:function(){return(0,l.join)("_",arguments)}}),searchReport:function(e){return(0,n.default)("report/advancedSearch").post(e)},loadAllFilterFieldsData:o.default.memoize(function(e){return(0,n.default)("report/loadAllFilterFieldsData").post(e)},{resolver:function(e){return(0,r.default)(e)}}),detectSchemaChange:function(e){return(0,n.default)("report/detectSchemaChange").post(e)},loadAccesses:function(e,t,a){var r={reportId:e,accesses:t,criteria:(a=a||{}).searchCriteria||[],pageIndex:a.pageIndex||1,pageSize:a.pageSize||10,sortOrders:a.sortOrders||[{key:"all",descending:!0}]};return(0,n.default)("report/loadAccesses").post(r)},updateRenderingTime:function(e,t){var a={id:e,renderingTime:t};return(0,n.default)("report/updateRenderingTime").post(a)},clearArchivedVersion:function(){return(0,n.default)("report/deleteAllArchiveVersions").post()},postPrintDraftData:function(e){return(0,n.default)("report/printDraft").post(e)},getPrintDraftData:function(e){return(0,n.default)("report/printDraft/"+e).get()},validateRequiredFilters:function(e){return(0,n.default)("report/validateFilter/"+e).get()},lazyLoadingReports:function(e,t){var a="list2";return a+=(0,l.isNil)(t)?"":"?includeHashCode="+t,(0,n.default)(u+a).post(e)},loadLazyLoadingCategories:function(e){return(0,n.default)("report/allcategories/").post(e)},lazyLoadingSearchCategories:function(e){return(0,n.default)("report/list2").post(e)},loadLazyLoadingAllowedSavingCategories:function(e){return(0,n.default)("report/allowedSavingCategories").post(e)},loadLazyLoadAllowedSavingSubCategories:function(e){return(0,n.default)("report/allowedSavingSubCategories").post(e)}};i.default.linkToLoadingProgress(d,{updateSubscriptions:{allowToCancel:!1},renameReport:{allowToCancel:!1},deleteReport:{allowToCancel:!1},deleteReportCategory:{allowToCancel:!1},copyNewReport:{allowToCancel:!1},moveReport:{allowToCancel:!1},deleteReportHistory:{allowToCancel:!1},lazyLoadingReports:{allowToCancel:!1},loadLazyLoadingCategories:{allowToCancel:!1},lazyLoadingSearchCategories:{allowToCancel:!1}}),t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(12)),n=l(a(48)),i=a(36),o=a(1);function l(e){return e&&e.__esModule?e:{default:e}}var s=n.default.FUNCTION,u=n.default.FORMAT_KEY,d=[{get label(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_SIMPLE_GAUGE")},value:i.CHART_TYPE.SimpleGauge,className:"gauge-simple"}],c={image:{id:"kpi-image",menuLabel:r.default.getText("KPI_GRID_MENU_IMAGE")},metric:{id:"kpi-metric",menuLabel:r.default.getText("KPI_GRID_MENU_METRIC")},text:{id:"kpi-text",menuLabel:r.default.getText("KPI_GRID_MENU_TEXT")}},p={VALUES:"values"},f={};f[i.CHART_TYPE.SimpleKPI]={},f[i.CHART_TYPE.SimpleKPI][p.VALUES]={Numeric:{FUNCTION:s.SUM,FORMAT:u.NONE},Money:{FUNCTION:s.SUM,FORMAT:u.NONE},Others:{FUNCTION:s.COUNT,FORMAT:u.NONE}};var h={};h[i.CHART_TYPE.SimpleKPI]=h[i.CHART_TYPE.SolidGauge];var m={get M01(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_MESSAGE_LOW_VALUE_MUST_LESS_THAN_HIGH_VALUE")},get M02(){return r.default.getText("GAUGE_MESSAGE_THRESHOL_NUMBER")},get M04(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_MESSAGE_THRESHOLDS_MUST_BE_WITHIN_SCALE_FORM_SCALE_TO")},get M05(){return r.default.getText("COMMON_MESSAGES_MUST_BE_FUNCTION")},get M06(){return r.default.getText("GAUGE_MESSAGE_SCALE_RANGE")},get M07(){return r.default.getText("GAUGE_MESSAGE_THRESHOLD_MAX_VALUE")},get M08(){return r.default.getText("GAUGE_MESSAGE_THRESHOLD_MIN_VALUE")},get FIELDS_EXCEEDED_LIMITATION(){return r.default.getText("REPORTDESIGNER_MESSAGE_FIELDS_IN_REPORT_PART_EXCEEDED_LIMITATION")}},g={NAME:"customURL",get CONTENT_DESCRIPTION(){return r.default.getText("PROPERTIES_BUILDER_CONSTANTS_CUSTOM_URL_CONTENT_DESCRIPTION")},CONSTRAINTS:{URL:{presence:{presence:!0,get message(){return r.default.getText("PROPERTIES_BUILDER_CONSTANTS_CUSTOM_URL_CONSTRAINTS_MESSAGE_URL_IS_REQUIRED")}}}},DEFAULT_VALUE:"LINK_NEW_WINDOW",OPTIONS:{LINK_NEW_WINDOW:"LINK_NEW_WINDOW",LINK_NEW_TAB:"LINK_NEW_TAB",LINK_CURRENT_WINDOW:"LINK_CURRENT_WINDOW"}};t.default={ContainerName:p,MaximumField:h,Message:m,DefaultFunction:f,DefaultChartType:i.CHART_TYPE.SimpleKPI,draggableClass:"kpi-draggable",CHART_TYPES:d,TileTypes:c,ITEM_PER_ROWS:3,KPI_REPORT_PART_PROPERTIES:{numRows:15,numCols:15,cellSize:25},CUSTOM_URL:g,getOptions:function(e){var t=this[e]||{};return(0,o.values)(t)},DEFAULT_SETTING_VALUE:{refreshIntervalDefault:{enable:!1,isAll:!0,latestRecord:0,updateInterval:0}},textProperties:{alignment:"left",font:{fontFamily:"Proxima Nova",fontSize:14},fontStyle:{fontBold:!1,fontItalic:!1,fontUnderline:!1},color:{textColor:"#000000",backgroundColor:"#FFFFFF",alpha:1,isAlpha:!0},border:{top:{color:"#FFFFFF",dashStyle:"none",thinkness:1},right:{color:"#FFFFFF",dashStyle:"none",thinkness:1},bottom:{color:"#FFFFFF",dashStyle:"none",thinkness:1},left:{color:"#FFFFFF",dashStyle:"none",thinkness:1}}},metricProperties:{border:{top:{color:"#FFFFFF",dashStyle:"none",thinkness:1},right:{color:"#FFFFFF",dashStyle:"none",thinkness:1},bottom:{color:"#FFFFFF",dashStyle:"none",thinkness:1},left:{color:"#FFFFFF",dashStyle:"none",thinkness:1}},font:{fontFamily:"Proxima Nova",fontSize:14},fontStyle:{fontBold:!1,fontItalic:!1,fontUnderline:!1},color:{textColor:"#000000",backgroundColor:"#FFFFFF",alpha:1,isAlpha:!0}},imageProperties:{image:""}},e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(5),n=a(1),i=a(11),o=a(100),l=(0,i.compose)((0,i.withHandlers)({toggle:(0,n.curry)(function(e,t,a){e.permissionStore[t]=!e.permissionStore[t]}),getIconClass:(0,n.curry)(function(e,t){return e.permissionStore[t]?o.ICON_TRIANGLE.ICON_DOWN:o.ICON_TRIANGLE.ICON_RIGHT}),updateSectionCommon:(0,n.curry)(function(e,t,a){e.permissionStore.model.isClickedSection||e.permission.updateSection(t),a&&(e.permissionStore.model.isClickedSection=!1)}),getIndeterminateCommon:(0,n.curry)(function(e,t){return 2===t.tenantAccess}),getCheckedCommon:(0,n.curry)(function(e,t){return(0,n.isNumber)(t)?1===t:t}),checkShowGroupCommon:(0,n.curry)(function(e,t){var a=(0,r.isObservable)(t)?(0,n.cloneDeep)(t):t;a=(0,n.omit)(["propsCloned","section","isTenantSetup","cleanDirty","isDirty"],a);var i={isShowByTenantAccess:!(0,n.isNil)(t.tenantAccess)&&0!==t.tenantAccess,isShowByOtherFields:!1};return function(e,t){if(0===e.tenantAccess)return!1;!function e(t,a){for(var r in a)(0,n.isPlainObject)(a[r])?e(t,a[r]):"tenantAccess"===r&&(t.isShowByTenantAccess=t.isShowByTenantAccess||0!==a[r])}(t,(0,n.omit)("tenantAccess",e))}(a,i),function e(t,a){for(var i in(0,n.omit)("tenantAccess",t))(0,n.isFunction)(t[i])||(0,r.isObservableArray)(t[i])||((0,n.isPlainObject)(t[i])?e(t[i],a):a.isShowByOtherFields=a.isShowByOtherFields||t[i])}(a,i),i.isShowByTenantAccess&&i.isShowByOtherFields}),permissionUpdateData:(0,n.curry)(function(e,t,a,r){e.permission.updateData(t,a,r.target.checked)}),permissionUpdateTenantAccess:(0,n.curry)(function(e,t,a,r){e.permission.updateTenantAccess(t,a,r.target.checked)}),permissionUpdateTenantAccessParent:(0,n.curry)(function(e,t,a){e.permission.updateTenantAccessParent(t,a.target.checked)}),getRolePermission:function(e){return function(){e.permissionStore.isTenantSetup&&(0,n.isNil)(e.permissionStore.tenantId)||e.permissionStore.getRolePermission()}},getCategoryAccessibility:function(e){return function(){e.permissionStore.loadLazyCategory(e.permissionStore.dashboardCategoryAccessibility,o.CATEGORY_TYPE.DASHBOARD),e.permissionStore.loadLazyCategory(e.permissionStore.reportCategoryAccessibility,o.CATEGORY_TYPE.REPORT)}}}));t.default=l,e.exports=t.default},,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r},o=a(1);var l=(0,o.toLower)(i.default.getText("COMMON_LABEL_REPORT")),s=(0,o.toLower)(i.default.getText("COMMON_LABEL_DASHBOARD")),u=(0,o.toLower)(i.default.getText("ROLE_SETUP_PERMISSION_CATEGORIES_ERROR_EDITABLE")),d=(0,o.toLower)(i.default.getText("ROLE_SETUP_PERMISSION_CATEGORIES_ERROR_ACCESSIBLE")),c={selected:{key:"selected",width:30,title:"",sortable:!1,columnKey:"selected ",fixed:!0},fullName:{key:"fullName",width:250,get title(){return i.default.getText("USER_LABEL_USER_NAME")},sortable:!0,columnKey:"fullName",fixed:!0},emailAddress:{key:"emailAddress",width:250,get title(){return i.default.getText("USER_LABEL_EMAIL_ADDRESS")},sortable:!0,columnKey:"emailAddress",fixed:!0},roles:{key:"roles",width:320,get title(){return i.default.getText("USER_LABEL_ROLE")},sortable:!1,columnKey:"roles"}},p=[{value:"all",get label(){return i.default.getText("USER_LABEL_ALL")}},{value:"fullName",get label(){return i.default.getText("USER_LABEL_USER_NAME")}},{value:"emailAddress",get label(){return i.default.getText("USER_LABEL_EMAIL_ADDRESS")}},{value:"role",get label(){return i.default.getText("USER_LABEL_ROLE")}}];t.default={DEFAULT_VALUE:{SEARCH_CRITERIA:"all",SORT_DIRS:{fullName:"ASC"},MAX_RECORDS_FETCH:1e3},ADD_USER_TABLE_DEF:c,SEARCH_OPTIONS:p,PASSWORD_OPSTIONS:{EMAIL_NEW_PASSWORD_CONSTRAINTS:{presence:{presence:!0,get message(){return i.default.getText("USER_MESSAGE_FIELD_IS_REQUIRED")}}},get SEND_PASSWORD(){return i.default.getText("USER_MESSAGE_SEND_PASSWORD")},get EMAIL(){return i.default.getText("USER_MESSAGE_EMAIL")}},USER_STATE:{get ACTIVATE(){return i.default.getText("USER_STATE_ACTIVATE")},get DEACTIVATE(){return i.default.getText("USER_STATE_DEACTIVATE")}},MESSAGE:{get DEACTIVE(){return i.default.getText("USER_MESSAGE_DEACTIVE")},get DELETE(){return i.default.getText("USER_MESSAGE_DELETE")},get LAST_SYSTEM_ADMIN(){return i.default.getText("USER_MESSAGE_DELETE_LAST_SYSTEM_ADMIN")}},INACTIVE_REASON:{get 1(){return i.default.getText("USER_INACTIVE_REASON_ACTIVE")},get 2(){return i.default.getText("USER_INACTIVE_REASON_INACTIVE_USER")},get 3(){return i.default.getText("USER_INACTIVE_REASON_INACTIVE_PASSWORD")},get 4(){return i.default.getText("USER_INACTIVE_REASON_INACTIVE_LOGIN")},get INTEGRATION(){return i.default.getText("USER_INACTIVE_REASON_INTEGRATION")}},NUMBER_INACTIVE_REASON_STATUS:{ACTIVE:1,DEACTIVATED:2,NO_PASSWORD_SET:3,FAILED_LOGIN:4},USER_SETUP_CONSTRAINTS:{USER_ID:{presence:{presence:!0,get message(){return i.default.getText("USER_MESSAGE_USER_ID_IS_REQUIRED")}}},FIRST_NAME:{presence:{presence:!0,get message(){return i.default.getText("USER_MESSAGE_FIRST_NAME_IS_REQUIRED")}}},LAST_NAME:{presence:{presence:!0,get message(){return i.default.getText("USER_MESSAGE_LAST_NAME_REQUIRED")}}},ROLE:{presence:{presence:!0,get message(){return i.default.getText("USER_MESSAGE_ROLE_IS_REQUIRED")}}},RECIPIENTS:{presence:{presence:!0,get message(){return i.default.getText("USER_MESSAGE_RECIPIENT_IS_REQUIRED")}}},EMAIL:{format:{pattern:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,message:function(e,t,a,r,n){return i.default.getText("ACCOUNT_CONSTANTS_MESSAGE_INVALID_EMAIL")}}}},VALIDATE_RESULT_ROLE_ASSOCIATION_KEYS:{InvalidReportInVisibleCategoiesKey:{type:l,permission:u},InvalidReportInSavableCategoiesKey:{type:l,permission:d},InvalidDashboardVisibleCategoiesKey:{type:s,permission:u},InvalidDashboardSavableCategoiesKey:{type:s,permission:d}},USER_LIST_SEARCH_KEY:"FullName"},e.exports=t.default},,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=v(a(70)),l=v(a(90)),s=a(20),u=v(a(6)),d=v(a(2)),c=v(a(3)),p=v(a(7)),f=v(a(8));a(1868);var h=a(0),m=v(h),g=a(9),E=v(a(654)),y=a(1);function v(e){return e&&e.__esModule?e:{default:e}}var T=(0,g.observer)((i=n=function(e){function t(){var e,a,r,n;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),l=0;l=0?R.INSERT:R.UPDATE,this.endDate=N().add(3,"month").format(D),this.recurrencePattern=1,this.recurrencePatternSetting=this.weeklyRecurrencePatternSetting,this.isEdit=!1,this}),P.prototype.timezone=function(){var e,t=this||{};return e=t.timeZoneValue?t.timeZoneValue:b.TIMEZONE[0].value,y(function(t){return s(t.value,e)||t.abr&&m(e,t.abr)>-1},b.TIMEZONE)},P.prototype.getEmailBody=function(){var e=this.deliveryMethod,t=y(function(t){return e===t.key},this.emailTemplates);this.emailBody=t&&this.replaceBrTagInEmailBody(t.value),this.markDirty()},P.prototype.buildDataForSaving=function(){this.buildRecurrencePatternSetting(),this.syncRangeRecurrenceData(),this.buildEmailTemplateForSave()},P.prototype.buildRecurrencePatternSetting=function(){var e=O.RECURRENCE_PATTERN;switch(this.recurrencePattern){case e[0].value:this.recurrencePatternSetting=this.dailyRecurrencePatternSetting;break;case e[1].value:this.recurrencePatternSetting=this.weeklyRecurrencePatternSetting;break;case e[2].value:this.recurrencePatternSetting=this.monthlyRecurrencePatternSetting;break;case e[3].value:this.recurrencePatternSetting=this.yearlyRecurrencePatternSetting}},P.prototype.syncRangeRecurrenceData=function(){!this.isEndAfter&&(this.occurrence=0),!this.isEndBy&&(this.endDate=null),this.isEndless&&(this.occurrence=0,this.endDate=null),this.markDirty()},P.prototype.buildEmailTemplateForSave=function(){var e=new RegExp("\\n","g"),t=this.emailBody;t&&(this.emailBody=t.replace(e,"
")),this.markDirty()},P.prototype.addRecipients=function(e){this.recipients=f(e).flatMap(function(e){return e.emailAddress}).join(";").value(),this.markDirty()},P.prototype.getRecipients=function(){if(!this.recipients)return null;var e=g(this.recipients)?this.recipients:T(E(";",this.recipients));return l(function(e){return{emailAddress:e}},e)},P.prototype.omitData=function(){return u(["dailyRecurrencePatternSetting","weeklyRecurrencePatternSetting","monthlyRecurrencePatternSetting","yearlyRecurrencePatternSetting","reportFilter"],this)},P.prototype.updateDataForEditMode=_.action(function(e){this.emailTemplates=e.emailTemplates,this.state=e.state,this.isEdit=!0,this.isSubscription=e.isSubscription}),P.prototype.updateSelectedValue=function(e){this.selectedValue=e,this.markDirty()},P.prototype.addMoreRecipients=function(e){var t=g(this.recipients)?this.recipients:T(E(";",this.recipients)),a=l("emailAddress",e);this.recipients=r(function(e){return!n(e)},h(t,a)).join(";"),this.markDirty()},P.prototype.setCurrentTab=function(e){this.currentTab=e},P.prototype.replaceBrTagInEmailBody=function(e){return e&&e.split(//).map(d).join("\n")},e.exports=P}()},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=h(a(0)),n=h(a(4)),i=h(a(15)),o=h(a(19)),l=h(a(10)),s=h(a(32)),u=h(a(100)),d=h(a(119)),c=h(a(2937)),p=h(a(26)),f=a(1);function h(e){return e&&e.__esModule?e:{default:e}}var m=(0,n.default)()(function(e){var t,a;return r.default.createElement(i.default.Col,{cols:"9",className:"u_noPaddingAll text-center"},r.default.createElement(i.default.Row,{className:"u_noMarginAll"},r.default.createElement(i.default.Col,{cols:"12",className:"u_noPaddingAll u_flex"},(t=[],(a=e.model)&&!(0,f.isEmpty)(a.permissionSummary)&&(0,f.forEach)(function(a){var n=(0,f.get)(e.keysPath,a.permission);t.push(r.default.createElement(i.default.Col,{cols:1,className:(0,l.default)("grid-small-column u_borderRight",{"grid-medium-column":e.notShowBlankCharacter&&(0,f.isEmpty)(n),"grid-medium-column-has-content":e.showRole&&!(0,f.isEmpty)(n)}),key:(0,f.uniqueId)(a.id)},!e.isParent&&r.default.createElement(o.default,{type:"checkbox",checked:n,disabled:!0}),e.isParent&&(!e.notShowBlankCharacter||(0,f.isEmpty)(n))&&r.default.createElement("span",null," "),e.showRole&&!(0,f.isEmpty)(n)&&function(t){var a=e.localization,n=[],i=void 0,o=function(e,t){var a=(0,f.isObject)(e)?e.name:e,i=(0,l.default)("u_textTruncate",{"tree-data-inner":t});n.push(r.default.createElement("div",{className:i},a))};if(e.treeType===u.default.TREE_TYPE.CATEGORY){var s=(0,f.find)(function(e){return e.isGlobal},t),c=(0,f.find)(function(e){return!e.isGlobal},t),p=e.savableCategories,h=function(e,t){if(!(0,f.isNil)(e)){!p&&n.push(r.default.createElement("div",{className:"u_textTruncate"},e.name));var a=p?u.default.NUMBER_CATEGORY_TAKE.SAVEABLE:u.default.NUMBER_CATEGORY_TAKE.VISIBLE;(0,f.take)(a,(0,f.filter)(function(e){return!p||e.savable},e.subCategories)).forEach(function(e){o(e,t)})}};!p&&h(s,!0),h(c,!p),i=p?(0,f.filter)(function(e){return!e.isGlobal},t):t}else e.treeType===u.default.TREE_TYPE.ACCESS&&((0,f.take)(3,t).forEach(function(t,r){if(e.isAccessDefault){var n=t.assignedType===d.default.ASSIGN_TYPE.ALL?a.getText("ACCESS_CONSTANT_LABEL_ASSIGNED_TYPE_EVERYONE"):(0,f.join)(", ",t.accessorNames.sort());o(r+1+" "+n,!1)}else o(t,!1)}),i=t);return(0,f.isEmpty)(n)||n.push(r.default.createElement("a",{className:"u-colorBlue u_textUnderline u_floatRight",onClick:function(){e.openPopup(g,{isAccessDefault:e.isAccessDefault,popupData:i,treeType:e.treeType,checkSavable:e.savableCategories,popupTitle:e.popupTitle,popupMessage:e.popupMessage})}},a.getText("ROLE_SETUP_PERMISSION_SUMMARY_MORE"))),n}(n),e.showRadioButton&&r.default.createElement(o.default,{type:"radio",checked:n,disabled:!0})))},(0,f.take)(12,a.permissionSummary)),t))))}),g=(0,n.default)()(function(e){var t=e.localization,a=e.checkSavable,n=e.popupData,o=void 0,l=void 0,d=void 0,h=e.treeType===u.default.TREE_TYPE.CATEGORY;h?(o="subCategories",l="name"):(o="users",l="fullName",d="name");var m,g=(0,f.split)("\n",e.popupMessage);return r.default.createElement(s.default,{visible:!0,type:"none",onClosing:e.onReject,autoClose:!1,sizeClass:"modal-lg"},r.default.createElement(s.default.Header,{title:e.popupTitle,className:"u_floatLeft"}),r.default.createElement(s.default.Body,null,r.default.createElement(i.default,{className:"izenda-PasswordOptions"},(0,f.map)(function(e){return r.default.createElement(i.default.Row,null,e)},g),e.isAccessDefault?(m=n,r.default.createElement(c.default,{data:m})):r.default.createElement(p.default,{autoHeight:!0,fullWidth:!0,autoHeightMax:500},function e(t,n){var s=!(!a||0!==n),u={paddingLeft:10+10*n+"px"};return r.default.createElement("div",null,(0,f.map)(function(t){return!(h&&a&&!t.savable||!h&&0!==n&&t.notAllowSharing)&&r.default.createElement("div",{style:u},!s&&r.default.createElement(i.default.Row,{className:"u_noMarginLeft u_noMarginRight",key:t.id},(0,f.isNil)(t[l])?t[d]:t[l]),t[o]&&e(t[o],n+1))},t))}(n,0)))),r.default.createElement(s.default.Footer,null,r.default.createElement(s.default.ConfirmationButton,{type:"cancel"},t.getText("COMMON_LABEL_CLOSE"))))});t.default=m,e.exports=t.default},,,,,function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(0),n=a(9).observer,i=a(10),o=a(377),l=a(1854),s=a(1081),u=r.createClass({displayName:"FloatAffixed",propTypes:{children:r.PropTypes.oneOfType([r.PropTypes.element,r.PropTypes.array]).isRequired,anchor:r.PropTypes.object.isRequired,edges:r.PropTypes.string,renderInContainer:r.PropTypes.bool,onClickOutside:r.PropTypes.func,onParentScroll:r.PropTypes.func,autoWidth:r.PropTypes.bool,minWidth:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),maxWidth:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string])},getDefaultProps:function(){return{minWidth:160,renderInContainer:!0}},componentWillMount:function(){var e=this.props;this.anchor=e.anchor,this.controller=e.floatAffixedController||new l},componentDidMount:function(){this.eventWithAnchorAncestors(function(e){o.on(e,"scroll",this.handleElementScroll)}.bind(this)),o.on(window,"resize",this.handleWindowResize),o.on(window,"mousedown",this.handleDocumentClick),o.on(window,"touchend",this.handleDocumentClick),this.controller.reposition(this.props,this.popup)},componentWillUnmount:function(){this.eventWithAnchorAncestors(function(e){o.off(e,"scroll",this.handleElementScroll)}.bind(this)),o.off(window,"resize",this.handleWindowResize),o.off(window,"mousedown",this.handleDocumentClick),o.off(window,"touchend",this.handleDocumentClick)},componentWillReceiveProps:function(e){e!=this.props&&this.controller.reposition(e,this.popup)},handleDocumentClick:function(e){var t,a,r=this.popup.contains(e.target)||this.popup===e.target,n=this.anchor.contains(e.target)||this.anchor===e.target;r||n||(t=e.target,a="izenda",t.className&&new RegExp("(\\s|^)"+a+"(\\s|$)").test(t.className))||this.props.onClickOutside&&this.props.onClickOutside(e)},eventWithAnchorAncestors:function(e){if(this.anchor)for(var t=this.anchor.parentNode;null!==t&&t!==window;)e(t),t=t.parentNode},handleElementScroll:function(e){this.controller.reposition(this.props,this.popup),this.props.onParentScroll&&this.props.onParentScroll(e)},handleWindowResize:function(){this.controller.reposition(this.props,this.popup)},refPopup:function(e){this.popup=e},render:function(){var e=this.props,t={left:this.controller.translation.x,top:this.controller.translation.y,width:this.anchor.offsetWidth};if(e.autoWidth){var a=this.anchor.offsetWidth>e.minWidth?this.anchor.offsetWidth:e.minWidth;t.width=a>e.maxWidth?e.maxWidth:a}var n=i({"izenda-FloatAffixed":!0,invisible:!this.controller.isElementInView(this.anchor,this.anchor.offsetParent)},e.className,this.controller.schemeName);return e.renderInContainer?r.createElement(s,null,r.createElement("div",{ref:this.refPopup,style:t,className:n},e.children)):r.createElement("div",{ref:this.refPopup,style:t,className:n},e.children)}}),e.exports=n(u)},function(e,t,a){"use strict";var r,n=a(20),i=(r=n)&&r.__esModule?r:{default:r};!function(){var t=a(110),r=a(226),o=a(18).DATA_TYPES,l=a(1),s=l.isNil,u=l.forEach,d=l.filter,c=l.map,p={DATA_TYPE:{}};function f(e,t){return p[e]&&p[e][t]}function h(e,t,a){p[e]=p[e]||{},p[e][t]=a}var m=function(e,t,a,r){return e+"_"+t+"_"+a+"_"+r};e.exports={loadReportFunction:function(e,a,r,n,i){var o="RP_FUNCTION",l=m(e,a,r,n&&n.join("_")),u=void 0;return i||(u=f(o,l)),(s(u)||u.isRejected())&&(u=t.loadReportFunction(e,a,r,n),!i&&h(o,l,u)),u.catch(function(){return[]})},loadReportFunctions:function(e,a,r){var o=d(function(t){var a=f("RP_FUNCTION",m(e,t.dataType,r,t.querySourceId));return s(a)||a.isRejected()},a);return new i.default(function(l){t.loadReportFunctions(e,o,r).then(function(t){return u(function(t){var a=m(e,t.dataType,r,t.querySourceId),i=f("RP_FUNCTION",a);(s(i)||i.isRejected())&&h("RP_FUNCTION",a,(0,n.resolve)(t.data))},t),t}).then(function(){return c(function(t){var a=t.dataType,n=t.querySourceId,o=m(e,a,r,n);return new i.default(function(e){f("RP_FUNCTION",o).then(function(t){e({dataType:a,querySourceId:n,data:t})})})},a)}).then(function(e){return(0,n.all)(e).then(l),null})}).catch(function(){return[]})},loadFilterDataFormat:function(e){var a="FILTER_DATA_TYPE",r=f(a,e);return(s(r)||r.isRejected())&&h(a,e,r=t.loadFilterDataFormat(e)),r.catch(function(){return[]})},loadReportFieldDataFormats:function(e){var a="RP_FIELD_DATA_TYPE",r=d(function(e){var t=f(a,e);return s(t)||t.isRejected()},e);return new i.default(function(o){t.loadReportFieldDataFormats(r).then(function(e){return u(function(e){var t=f(a,e.dataType);(s(t)||t.isRejected())&&h(a,e.dataType,(0,n.resolve)(e.data))},e),e}).then(function(){return c(function(e){return new i.default(function(t){f(a,e).then(function(a){t({dataType:e,data:a})})})},e)}).then(function(e){return(0,n.all)(e).then(o),null})}).catch(function(){return[]})},loadReportFieldDataFormat:function(e,a){var r,n="RP_FIELD_DATA_TYPE";return a||(r=f(n,e)),(s(r)||r.isRejected())&&(r=t.loadReportFieldDataFormat(e),!a&&h(n,e,r)),r.catch(function(){return[]})},loadCustomDataFormat:function(e,a){var n,i="RP_FIELD_DATA_TYPE";return a||(n=f(i,e)),(s(n)||n.isRejected())&&(n=t.loadReportFieldDataFormat(o.CUSTOM).then(function(e){var t=d(function(e){return null!==e.jsFormatString},e);u(function(e){r.registerJsFormatString(e.name,e.jsFormatString)},t)}),!a&&h(i,e,n)),n.catch(function(){return[]})}}}()},,function(e,t,a){"use strict";var r=a(20);!function(){var t=a(5),n=a(587),i=a(967),o=a(444),l=a(330),s=a(79),u=a(388),d=a(84),c=a(16),p=a(2044),f=a(163),h=a(106),m=a(1),g=m.find,E=m.isEmpty,y=m.map,v=m.trim,T=m.pick,_=m.mapValues;function S(e){var a={model:new n(e),tenantId:function(){return c.getTenantId()},tenantDisplayId:function(){return c.currentUser.tenantDisplayID},userName:function(){return c.currentUser.userName},alertDetails:new f};this.contextMenu=new p,t.extendObservable(this,a)}S.prototype.init=function(e){c.setCheckDirtyFunction(function(){return this.model.isDirty}.bind(this))},S.prototype.destroy=function(e){c.resetCheckDirtyFunction()},S.prototype.populateTenantInfo=function(){return this.populateTenantConfig().bind(this).then(t.action(function(e){return this.model.populateSystemConfig(e)}))},S.prototype.loadUserSecurityQuestions=function(e){return this.populateTenantInfo().bind(this).then(function(){return this.model.populateUserSecurityQuestions(e)})},S.prototype.validateExpirationPasswordLink=function(e){return o.validateExpirationPasswordLink({verification:e})},S.prototype.validatePasswordLink=t.action(function(){var e=_(v,T(["tenantName","userName","firstName","lastName","emailAddress","verification"],this.model));return(this.model.verification?o.validatePasswordLink:o.validateUserInfo)(e).bind(this).then(function(e){if(e.success)switch(this.model.updateProperty("tenantDisplayID",e.data.tenantDisplayId),this.model.mode){case d.MODES.PASSWORD_SETUP:return(0,r.join)([this.model.updateCurrentStep(d.STEP_KEYS.SecurityInfo),this.loadUserSecurityQuestions()]);case d.MODES.FORGOT_PASSWORD:case d.MODES.RESET_PASSWORD:return this.model.id=e.data.id,(0,r.join)(this.model.updateCurrentStep(d.STEP_KEYS.QuestionInfo),this.loadSecurityQuestionsOfUser(),function(e,t){return this.loadUserSecurityQuestions(t.data)}.bind(this))}return this.model.updateProperty("message",d.MESSAGES.M01),e})}),S.prototype.passwordAndSecurityQuestion=function(){var e=T(["tenantDisplayID","tenantName","password","verification","userName","firstName","lastName","emailAddress"],this.model);return e.userSecurityQuestions=y(function(e){return e.buildDataForSaving()},this.model.userSecurityQuestions),e.autoLogin=!0,o.passwordAndSecurityQuestion(e)},S.prototype.loadSecurityQuestions=function(){var e=T(["tenantDisplayID","tenantName","userName"],this.model);return s.securityQuestions(e).then(function(e){return y(function(e){return new i(e)},e)})},S.prototype.populateTenantConfig=function(){return(0,r.join)(this.loadSecurityQuestions(),this.loadSystemConfig(),function(e,t){return{fullSecurityQuestions:e,numberOfQuestionProfile:t.numberOfQuestionProfile}})},S.prototype.login=function(){var e=T(["tenantName","password","userName"],this.model);return o.login(e)},S.prototype.logout=function(){return o.logout()},S.prototype.loadSecurityQuestionsOfUser=function(){var e=T(["tenantDisplayID","userName"],this.model);return o.securityQuestion(e)},S.prototype.validateSecurityQuestion=function(){var e=T(["tenantDisplayID","userName"],this.model);return e.userSecurityQuestions=this.model.buildUserSecurityQuestionsForSaving(),o.validateSecurityQuestion(e)},S.prototype.updatePassword=function(){var e=T(["tenantDisplayID","tenantName","password","userName","id"],this.model);return e.userSecurityQuestions=y(function(e){return e.buildDataForSaving()},this.model.userSecurityQuestions),e.autoLogin=!0,o.password(e)},S.prototype.updateInfoAfterCheckedPasswordLink=t.action(function(e,t){this.model.updateProperty("verification",e),this.model.updateProperty("isExpiration",t)}),S.prototype.loadGeneralErrorMessage=function(e){var t=g(function(e){return E(e.key)},e);t&&this.model.updateProperty("message",t.messages)},S.prototype.loadSystemConfig=function(){return s.loadSecurityPolicies()},S.prototype.checkDatabaseSetup=function(){return s.databaseSetup()},S.prototype.loadSystemMode=function(){return s.loadSystemModeSettings()},S.prototype.loadCurrentUser=function(){return o.loadCurrentUser()},S.prototype.loadExportQueueList=function(){var e=this,t={pageSize:this.model.exportPagingInfo.pageSize,pageIndex:this.model.exportPagingInfo.pageIndex},a=c.currentUser.id;return l.getExportQueueList(a,t).then(function(t){e.model.exportList=t.result,e.model.exportTotalRecords=t.total,e.model.exportPagingInfo.totalRecords=t.total})},S.prototype.goToExportManagerPage=t.action(function(e){return this.model.exportPagingInfo.setPageIndex(e),this.loadExportQueueList()}),S.prototype.getNotificationInterval=function(){return s.getNotificationInterval()},S.prototype.markNotificationsAsRead=function(){return u.markNotificationsAsRead()},S.prototype.downloadExportQueueFile=function(e){return l.getExportQueueFile(e)},S.prototype.deleteExportQueueFile=function(e){return l.deleteExportQueueFile(e)},S.prototype.getMyProfile=function(){var e={tenantDisplayID:this.tenantDisplayId,userName:this.userName};return(0,r.join)(this.loadCurrentUser(),s.loadAllLanguages(),s.loadAllDateFormat(),s.securityQuestions(e),this.loadSystemConfig(),function(e,t,a,r,n){this.model.populateMyProfile(e,t,a,r,n)}.bind(this))},S.prototype.save=function(){var e=this.model.buildDataForSaving(),a=e.hasChangeLanguage;return o.saveUserProfile(e).bind(this).then(t.action(function(e){return e.success?(this.model.populate(e.data),c.currentUser.populate(e.data),this.model.resetDirty(),e.hasChangeLanguage=a,(0,r.resolve)(e)):e}))},S.prototype.updateNewPassword=function(e,t){var a={newPassword:t,password:e,userName:this.model.userName,Id:this.model.id};return o.updateNewPassword(a).bind(this).then(function(e){return e.success?((new h).setAccessToken(e.data.token),(0,r.resolve)(!0)):e})},S.prototype.updateSecurityQuesitions=function(e,t){var a=this.model.buildForUpdateSecurityQuestions();return o.updateSecurityQuesitions(a).bind(this).then(function(e){return e.success?(this.model.resetAnswers(),this.loadCurrentUser().bind(this).then(function(e){this.model.populate(e.data)}),(0,r.resolve)(!0)):e})},e.exports=S}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d=g(a(17)),c=g(a(23)),p=g(a(2)),f=g(a(3)),h=a(5),m=a(329);function g(e){return e&&e.__esModule?e:{default:e}}function E(e,t,a,r){a&&(0,d.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function y(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var v=(r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,p.default)(this,e),E(this,"type",n,this),E(this,"message",i,this),E(this,"success",o,this),E(this,"errors",l,this),E(this,"key",s,this),E(this,"showType",u,this),t&&this.set(t)}return(0,f.default)(e,[{key:"alertType",get:function(){var e=void 0;switch(this.success){case!0:e=m.ALERT_TYPES.SUCCESS;break;case!1:e=m.ALERT_TYPES.ERROR;break;default:e=m.ALERT_TYPES.INFO}return this.type||e}}]),(0,f.default)(e,[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=e||{},this.success=e.success,this.message=e.message,this.errors=e.errors,this.key=e.key,this.showType=e.showType,this.type=e.type}},{key:"reset",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.set({message:null,success:!0,errors:[],key:null,showType:e?m.SHOW_TYPES.RESET:m.SHOW_TYPES.BRIEF,type:null})}}]),e}(),n=y(r.prototype,"type",[h.observable],{enumerable:!0,initializer:function(){return null}}),i=y(r.prototype,"message",[h.observable],{enumerable:!0,initializer:function(){return null}}),o=y(r.prototype,"success",[h.observable],{enumerable:!0,initializer:function(){return!0}}),l=y(r.prototype,"errors",[h.observable],{enumerable:!0,initializer:function(){return[]}}),s=y(r.prototype,"key",[h.observable],{enumerable:!0,initializer:function(){return null}}),u=y(r.prototype,"showType",[h.observable],{enumerable:!0,initializer:function(){return m.SHOW_TYPES.BRIEF}}),y(r.prototype,"alertType",[h.computed],(0,c.default)(r.prototype,"alertType"),r.prototype),y(r.prototype,"set",[h.action],(0,c.default)(r.prototype,"set"),r.prototype),y(r.prototype,"reset",[h.action],(0,c.default)(r.prototype,"reset"),r.prototype),r);t.default=v,e.exports=t.default},function(e,t,a){"use strict";var r,n,i;r=a(0),n=a(10),i=r.createClass({displayName:"MainContent",getDefaultProps:function(){return{hidden:!1}},render:function(){var e=this.props;return e.hidden?null:r.createElement("section",{className:n(["izenda-MainContent",e.className])},this.props.children)}}),e.exports=i},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E=a(14),y=(r=E)&&r.__esModule?r:{default:r};n=a(0),i=a(10),o=a(2065),l=a(16),s=a(37),u=a(43),d=a(4),c=a(88),p=a(1),f=p.isNil,h=p.get,m=n.createClass({displayName:"Tabs",propTypes:{activeTabKey:n.PropTypes.string,onChange:n.PropTypes.func,canChangeTab:n.PropTypes.func,beforeChangeTab:n.PropTypes.func,isResponsive:n.PropTypes.bool,children:n.PropTypes.oneOfType([n.PropTypes.array,n.PropTypes.element]).isRequired,navigationClass:n.PropTypes.string,isOnPopover:n.PropTypes.bool},getDefaultProps:function(){return{activeTabKey:"",isResponsive:!1}},getInitialState:function(){return{activeTabKey:this.props.activeTabKey||this.getDefaultTabKey()}},getDefaultTabKey:function(){if(this.props.children.length>0)return this.props.children[0].props.tabKey},componentWillReceiveProps:function(e){e.activeTabKey&&e.activeTabKey!==this.state.activeTabKey&&this.setState({activeTabKey:e.activeTabKey})},render:function(){var e=i("tabs",this.props.className);return n.createElement("div",{className:e},this.getMenuItems(),this.getSelectedPanel())},openHref:function(e){this.props.confirmDirtyForm(l.isDirty,{onConfirmDirtyForm:l.onOkDirtyForm}).bind(this).then(function(){this.props.router.push(e)})},setActive:function(e,t){t&&t.preventDefault();var a=this.props,r=this.props.onChange,n=this.props.canChangeTab,i=this.refs["tab-panel"],o=this.refs["tab-menu-"+e],l=this.props.children[e-1].props.tabKey;if(!this.props.children[e-1].props.isDisabled){var s=function(){l!==this.state.activeTabKey&&(a.beforeChangeTab&&a.beforeChangeTab(l),this.setState({activeTabKey:l},function(){r&&r(e,i,o,l)}))}.bind(this);n?n(e,i,o,l).then(function(e){e&&s()}):s()}},getMenuItems:function(){var e=i("nav","nav-tabs","tabs-navigation",this.props.navigationClass);Array.isArray(this.props.children)||(this.props.children=[this.props.children]);var t=this.props.children.map(function(e){return"function"==typeof e?e():e}).filter(function(e){return e}).map(function(e,t){var a=this,r=t+1,o="tab-menu-"+r,l=e.props.title,d=e.props.tabKey,p=e.props.href,h=i(e.props.headerClassName,{active:this.state.activeTabKey===e.props.tabKey,"tabs-menu-item":!this.props.isResponsive}),m=this.props.isOnPopover&&c.isIEBrowser(),g=function(){return a.setActive(r)},E=m?{onMouseDown:g}:{onClick:g},v=function(e){0===e.button&&e.preventDefault(),a.openHref(p)},T=m?{onMouseDown:v}:{onClick:v},_=p;return!f(_)&&u.Integration&&(_=s.getPathForIntegration(_)),n.createElement("li",{role:"presentation",ref:o,key:d,className:h},f(_)?n.createElement("a",E,l):n.createElement("a",(0,y.default)({href:_},T),l))}.bind(this));return this.props.isResponsive?n.createElement(o,{menuItems:t}):n.createElement("ul",{className:e},t)},getSelectedPanel:function(){var e=this.props,t=e.children.filter(function(e){return h("props.tabKey",e)===this.state.activeTabKey}.bind(this)),a=i("tab-panel",e.panelClassName);return n.createElement("div",{ref:"tab-panel",className:a},t)}}),g=n.createClass({displayName:"Tab",propTypes:{title:n.PropTypes.oneOfType([n.PropTypes.object,n.PropTypes.string]).isRequired,tabKey:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).isRequired,children:n.PropTypes.oneOfType([n.PropTypes.array,n.PropTypes.element]).isRequired,href:n.PropTypes.string},render:function(){return n.createElement("div",{className:this.props.className},this.props.children)}}),e.exports={Tabs:d({toClass:!0})(m),Tab:g}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={NOT_SELECTED_COLUMN_VALUE:i.default.getText("CONDITIONAL_FORMATTING_LABEL_NOT_SELECTED"),CONDITION_MANAGER_TABLE_DEF:{condition:{key:"conditionTextValue",width:100,minWidth:100,get title(){return i.default.getText("CONDITIONAL_FORMATTING_TABEL_CONDITION_COL")}},fields:{key:"fieldsTextValue",width:160,get title(){return i.default.getText("CONDITIONAL_FORMATTING_TABEL_FIELDS_COL")}},format:{key:"formatTextValue",width:100,get title(){return i.default.getText("CONDITIONAL_FORMATTING_TABEL_FORMAT_COL")}},action:{width:40,align:"center",get title(){return i.default.getText("COMMON_LABEL_ACTION")}}},CONDITION_TYPE:{VALUE:{title:"Value",value:"value"},RANGE_VALUE:{title:"Value Range",value:"rangeValue"},RANGE_PERCENT:{title:"Percentage Range",value:"rangePercent"},ALL_VALUES:{title:"All Values",value:"allValues"},NULL:{title:"NULL",value:"null"},BLANK:{title:"BLANK",value:"blank"}},DATA_TYPE:{TEXT:"Text",BOOLEAN:"Boolean",NUMERIC:"Numeric",DATETIME:"Datetime",TIME:"Time",MONEY:"Money"},INPUT_DATA_TYPE:{TEXT:"text",TIME:"time",DATETIME:"datetime",NUMBER:"number",SELECT:"select",COLOR:"color"},BOOLEAN_OPTION:{options:[{value:"true",get label(){return i.default.getText("FILTER_DETAIL_CONFIG_CONSTANTS_VALUE_LIST_TRUE")}},{value:"false",get label(){return i.default.getText("FILTER_DETAIL_CONFIG_CONSTANTS_VALUE_LIST_FALSE")}}],blankOption:!0},FORMAT_TYPE:{BACKGROUND_COLOR:{title:"Background Color",value:"backgroundColor"},FONT_COLOR:{title:"Font Color",value:"fontColor"},FONT_FORMAT:{title:"Font Format",value:"fontFormat"},ALTERNATIVE_TEXT:{title:"Alternative Text",value:"alternativeText"}},GRID_STYLES:{VERTICAL:"Vertical",HORIZONTAL:"Horizontal",PIVOT:"Pivot",DRILL_DOWN:"Drilldown"},FIELD_CONTAINER_TYPES:{ROW:"row",COLUMN:"column",VALUE:"value"}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={TAB_VISUAL:{index:0,value:"Visual",key:"visual"},TAB_HTML:{index:1,value:"HTML",key:"html"},MESSAGES:{get M01(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_FIELD_NOT_UNIQUE")},get M02(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_FIELD_NOT_FOUND")},get M03(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_REPORT_NOT_FOUND")},get M04(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_REPORT_PART_NAME_NOT_UNIQUE")},get M05(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_REPORT_PART_NOT_FOUND")},get M06(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_NO_SUBTOTAL_INFO_SET_UP")},get M07(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_SUBTOTAL_INSIDE_REPEATER")},get M08(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_OPEN_NEW_FORM")},get M09(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_NO_GRAND_TOTOAL_INFO_SET_UP")},get M10(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_NOTHING_FOUND")},get M11(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_NOTHING_TO_REPLACE")},get M12(){return i.default.getText("COMMON_MESSAGES_MUST_BE_FUNCTION")},get M13(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_INCORRECT_GRAND_TOTAL_SYNTAX")},get M14(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_INCORRECT_SUBTOTAL_SYNTAX")},get M15(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_NO_TEMPLATE_DEFINED")},get M16(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_FIELD_NAME_ALIAS_NOT_UNIQUE")},get M17(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_LOB_FIELDS_OUTSIDE_REPEATER")},get ERROR_MESS_IN_LOW_LEVEL(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_SUBTOTAL_IN_CHILD_LEVEL")},get ERROR_MESSAGE_FOR_SUBTOTAL_IN_PARALLEL(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_MESSAGE_DOES_NOT_ALLOW_SUBTOTAL_IN_PARALLEL")}},FORM_STYLE_DEFAULT:{borderStyle:"solid",borderColor:"#000",borderWidth:1,backgroundColor:"#FFF"},FORMAT_CONFIG:{FONT_NAME:{Arial:"arial,helvetica,sans-serif","Arial Black":"arial black,sans-serif","Book Antiqua":"book antiqua,palatino,serif","Courier New":"courier new,courier,monospace",Georgia:"georgia,palatino,serif",Helvetica:"helvetica,arial,sans-serif",Impact:"impact,sans-serif","Lucida Console":"lucida console,monaco,monospace","Lucida Sans Unicode":"lucida sans unicode,lucida grande,sans-serif","Palatino Linotype":"palatino linotype,book antiqua,palatino,serif",Roboto:"roboto,sans-serif",Proxima:"proxima nova,sans-serif",Tahoma:"tahoma,arial,helvetica,sans-serif","Times New Roman":"times new roman,times,serif",Verdana:"verdana,geneva,sans-serif"},FONT_SIZE:["8px","9px","10px","11px","12px","14px","16px","18px","20px","22px","24px","26px","28px","36px","48px","72px"],HEADING:[{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_HEADING_1")},value:"h1",className:"format-h1"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_HEADING_2")},value:"h2",className:"format-h2"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_HEADING_3")},value:"h3",className:"format-h3"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_HEADING_4")},value:"h4",className:"format-h4"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_HEADING_5")},value:"h5",className:"format-h5"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_HEADING_6")},value:"h6",className:"format-h6"}],BLOCK:[{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_PARAGRAPH")},value:"p"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_BLOCKQUOTE")},value:"blockquote"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_DIV")},value:"div"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_PRE")},value:"pre"}],NUMBER_LIST:[{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_DEFAULT")},value:""},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_LOWER_ALPHA")},value:"lower-alpha"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_LOWER_GREEK")},value:"lower-greek"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_LOWER_ROMAN")},value:"lower-roman"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_UPPER_ALPHA")},value:"upper-alpha"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_UPPER_ROMAN")},value:"upper-roman"}],BULLET_LIST:[{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_DEFAULT")},value:""},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_CIRCLE")},value:"circle"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_DISC")},value:"disc"},{get label(){return i.default.getText("REPORT_PART_FORM_CONSTANTS_LABEL_SQUARE")},value:"square"}],REPEATER_LIST:[{get label(){return i.default.getText("COMMON_LABEL_ADD")},value:"Add"},{get label(){return i.default.getText("COMMON_LABEL_REMOVE")},value:"Remove"}],SMARTTAG_LIST:[{get label(){return i.default.getText("COMMON_LABEL_DATE_TIME")},value:"DateTime"},{get label(){return i.default.getText("COMMON_LABEL_SUBTOTAL")},value:"Subtotal"},{get label(){return i.default.getText("COMMON_LABEL_GRAND_TOTAL")},value:"GrandTotal"}]},DEFAULT_SETTING_VALUE:{refreshIntervalDefault:{enable:!1,isAll:!0,latestRecord:0,updateInterval:0},boder:{}},DEFAULT_SORT_VALUE:"ASC"},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={QUERY_SOURCE_TYPE:{TABLE:"Table",VIEW:"View",FUNCTION:"Function",STORED_PROC:"Stored Procedure"},STORED_PROC_TYPE:{STATIC:"STATIC",DYNAMIC:"DYNAMIC",NON_DYNAMIC:"NON_DYNAMIC"},FIELD_TYPE:{SCHEMA:0,PARAM:1},FILTER_TYPE:{DB_STRUCTURE:"1",USER_DEFINED:"2"},BUNDLE:{MESSAGE:{get MG01(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_MESSAGE_REQUIRE_PARAMETER")},get MG02(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_MESSAGE_CHANGE_PROCEDURE_TYPE")},get MG03(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_MESSAGE_CHANGE_FIELD")}},CRITERIALIST:{Function:[{value:"All",get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:"DatabaseName",get label(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_LABEL_CRITERIALIST_DATABASE_NAME")}},{value:"DataSourceName",get label(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_LABEL_CRITERIALIST_FUNCTION_NAME")}}],DEFAULT_CRITERIA_LIST:[{value:"All",get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:"Category",get label(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_LABEL_DEFAULT_CRITERIA_LIST_CATEGORY")}},{value:"DatabaseName",get label(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_LABEL_DEFAULT_CRITERIA_LIST_DATABASE_NAME")}},{value:"DataSourceName",get label(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_LABEL_DEFAULT_CRITERIA_LIST_DATA_SOURCE_NAME")}},{value:"DataSourceAlias",get label(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_LABEL_DEFAULT_CRITERIA_LIST_DATA_SOURCE_ALIAS")}},{value:"ColumnName",get label(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_LABEL_DEFAULT_CRITERIA_LIST_COLUMN_NAME")}},{value:"ColumnAlias",get label(){return i.default.getText("QUERY_SOURCE_TYPE_CONFIG_LABEL_DEFAULT_CRITERIA_LIST_COLUMN_ALIAS")}}]},SORTDEFAULTLIST:{Function:{DatabaseName:"DESC"},DEFAULT_SORT:{Category:"DESC"}},DEFAULT_CRITERIA:"All"}},e.exports=t.default},function(e,t,a){"use strict";var r,n,i;r=a(0),n=a(1).omit,i=r.createClass({displayName:"List",propTypes:{itemClass:r.PropTypes.string},render:function(){var e=this.props,t=this.props.children.map(function(t,a){return r.createElement("li",{className:e.itemClass,key:a},t)}),a=n(["children","itemClass"],this.props);return r.createElement("ul",a,t)}}),e.exports=i},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(4),n=a(0),i=a(19),o=a(24),l=a(9),s=a(15),u=l.observer(function(e){o.notifyChange;var t=e.permission,a=e.section,r=e.tenantPermission,l=t.isTenantSetup?t.isAllTenantSectionIndeterminate(a):t.isAllRoleSectionIndeterminate(a,r),s=t.isTenantSetup?t.isAllTenantSectionChecked(a):t.isAllRoleSectionChecked(a,r);return n.createElement(i,{type:"checkbox",readOnly:e.readOnly,disabled:e.disabled,indeterminate:l,checked:s,onChange:function(e){var n=e.target.checked;t.isTenantSetup?t.updateAllTenantSection(a,n):t.updateAllRoleSection(a,r,n)}})}),(d=function(e){var t=e.permission,a=o.notifyChange,r=this.props.localization;return e.selectAllPermimssion?n.createElement("div",{className:"u_paddingLeftRight u_borderBottom"},n.createElement(s,null,n.createElement(s.Row,{className:"u_noBorder"},n.createElement(s.Col,{cols:11},n.createElement("label",{className:"u_noBorderAll"},n.createElement(u,e),n.createElement("span",{className:"u_marginLeftRight u_textNormal"},r.getText("TENANT_SELECT_ALL")))),n.createElement(s.Col,{cols:1,className:"u_textCenter"},t.isTenantSetup&&e.selectAllPermimssion&&n.createElement(i,{indeterminate:t.isAllTenantIndeterminate(t),type:"checkbox",readOnly:e.readOnly,checked:t.isAllTenantAccessChecked(t),onChange:a(t.updateAllTenantAccess.bind(t,t),o.CHECKBOX)}))))):n.createElement("label",{className:"u_noBorderAll"},n.createElement(u,e),n.createElement("span",{className:"u_marginLeftRight u_textNormal"},r.getText("TENANT_SELECT_ALL")))}).displayName="CheckboxAllPermission",d.propTypes={selectAllPermimssion:n.PropTypes.bool,permission:n.PropTypes.object.isRequired,section:n.PropTypes.object.isRequired,tenantPermission:n.PropTypes.object},e.exports=r()(d)},function(e,t,a){"use strict";!function(){var t=a(0),r=(a(5),a(9).observer),n=a(1),i=n.isNil,o=n.omit,l=n.assign;e.exports=function(){return function(e){var a=t.createClass({displayName:"Authorization("+e.displayName+")",propTypes:{keys:t.PropTypes.oneOfType([t.PropTypes.object.isRequired,t.PropTypes.array.isRequired]),integrationHidden:t.PropTypes.bool,authHidden:t.PropTypes.bool,onAuth:t.PropTypes.func},contextTypes:{authorization:t.PropTypes.oneOfType([t.PropTypes.array,t.PropTypes.object])},getDefaultProps:function(){return{authHidden:!0,integrationHidden:!1}},componentWillMount:function(){this.hasPrivilege=this.context.authorization.checkPrivileges(this.props.keys),this.hideAsIntegration=this.props.integrationHidden&&this.context.authorization.isIntegrationMode()},buildProps:function(){var e=o(["keys","authHidden","integrationHidden"],this.props);return i(this.props.onAuth)?e:l(e,this.props.onAuth())},render:function(){var a=this.buildProps();return!this.hasPrivilege&&this.props.authHidden||this.hideAsIntegration?null:t.createElement(e,a)}});return r(a)}}}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=l(a(4)),i=l(a(15)),o=a(1);function l(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)()(function(e){return r.default.createElement("div",{onClick:e.collapseToggle},r.default.createElement(i.default.Row,{className:"u_noMarginAll"},r.default.createElement(i.default.Col,{cols:"12",className:"u_noPaddingAll"},r.default.createElement(i.default.Col,{cols:"3",className:"grid-small-column u_borderRight u-bgGrayBlue text-bold"},r.default.createElement("i",{className:"icon-toggle-triangle"}),r.default.createElement("label",{className:"panel-title"},e.headerName)),r.default.createElement(i.default.Col,{cols:"9",className:"u_noPaddingAll"},r.default.createElement(i.default.Row,{className:"u_noMarginAll"},r.default.createElement(i.default.Col,{cols:"12",className:"u_noPaddingAll u-bgGray"},(t=[],e.model&&!(0,o.isEmpty)(e.model.permissionSummary)&&(0,o.forEach)(function(e){t.push(r.default.createElement(i.default.Col,{cols:"1",className:"grid-small-column u_borderRight",key:(0,o.uniqueId)(e.id)}," "))},(0,o.take)(12,e.model.permissionSummary)),t)))))));var t});t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};var o={presence:!0,message:i.default.getText("COMMON_CONSTRAINT_REQUIRED")};t.default={DEFAULT_TABLE_HEIGHT:328,DEFAULT_REST_HEIGHT:122,DEFAULT_DATABASE_MAPPING_HEIGHT:238,get TableDefinition(){return{get ImportSourceType(){return{fileName:{columnKey:"FileName",width:250,get title(){return i.default.getText("IMPORT_CONSTANTS_SOURCE_TYPE_FILENAME")},sortable:!0},type:{columnKey:"Type",width:200,get title(){return i.default.getText("IMPORT_CONSTANTS_SOURCE_TYPE_TYPE")},sortable:!0},newReportName:{columnKey:"NewReportName",width:300,get title(){return i.default.getText("IMPORT_CONSTANTS_SOURCE_TYPE_NEW_REPORT_NAME")},sortable:!0},newReportOrDashboardName:{columnKey:"NewReportName/DashboardName",width:300,get title(){return i.default.getText("IMPORT_CONSTANTS_SOURCE_TYPE_NEW_REPORT_OR_DASHBOARD_NAME")},sortable:!0},saveInto:{columnKey:"SaveInto",width:250,get title(){return i.default.getText("IMPORT_CONSTANTS_SOURCE_TYPE_SAVE_INTO")},sortable:!0},category:{columnKey:"Category",width:250,get title(){return i.default.getText("IMPORT_CONSTANTS_SOURCE_TYPE_CATEGORY")},sortable:!0},subCategory:{columnKey:"SubCategory",width:250,get title(){return i.default.getText("IMPORT_CONSTANTS_SOURCE_TYPE_SUB_CATEGORY")},sortable:!0},gear:{columnKey:"Gear",width:60,title:"",sortable:!0}}},get DatabaseMappingSourceType(){return{physicalDatabase:{columnKey:"PhysicalDatabase",width:150,get title(){return i.default.getText("DATABASE_MAPPING_PHYSICAL_DATABASE")},sortable:!0},databaseName:{columnKey:"DatabaseName",width:150,get title(){return i.default.getText("DATABASE_MAPPING_DATABASE_NAME")},sortable:!0},schema:{columnKey:"Schema",width:150,get title(){return i.default.getText("DATABASE_MAPPING_SCHEMA")},sortable:!0},action:{columnKey:"Action",width:50,get title(){return i.default.getText("DATABASE_MAPPING_ACTION")},sortable:!0}}},get ReportInformation(){return{shareWith:{columnKey:"ShareWith",width:450,get title(){return i.default.getText("COMMON_LABEL_SHARE_WITH")},sortable:!0},accessRights:{columnKey:"AccessRights",width:150,get title(){return i.default.getText("COMMON_LABEL_ACCESS_RIGHT")},sortable:!0}}}}},getReportType:function(e){return 0===e?"Report":"Template"},KEY_NEW_REPORT_NAME:"newReportName",KEY_NEW_REPORT_DASHBOARD_NAME:"newReportDashboardName",KEY_SAVE_INTO:"saveInto",KEY_CATEGORY:"category",KEY_SUBCATEGORY:"subCategory",KEY_TO_DATABASE_NAME:"toDatabaseName",KEY_TO_SCHEMA:"toSchema",REQUIRED_VALIDATION_RULES:{presence:{presence:!0,message:i.default.getText("COMMON_CONSTRAINT_REQUIRED")},format:{pattern:/^[^/<>&]*$/,get message(){return i.default.getText("INVALID_TEMPLATE_NAME")}}},FILE_EXTENSION:{REPORT:".birt",DASHBOARD:".bidb",DATAMODEL:".bidm"},REPORT_NAME_VALIDATION_RULES:{presence:o,format:{pattern:/^[^/<>&]*$/,get message(){return i.default.getText("INVALID_REPORT_NAME")}}},TEMPLATE_NAME_VALIDATION_RULES:{presence:o,format:{pattern:/^[^/<>&]*$/,get message(){return i.default.getText("INVALID_TEMPLATE_NAME")}}},DASHBOARD_NAME_VALIDATION_RULES:{presence:o,format:{pattern:/^[^/<>&]*$/,get message(){return i.default.getText("INVALID_DASHBOARD_NAME")}}},IMPORT_PROGRESS_LIST_MAX_HEIGHT:300,get ImportStatus(){return{NOT_PROCESSED:{value:0,label:i.default.getText("IMPORT_STATUS_NOT_PROCESSED")},SUCCESS:{value:1,label:i.default.getText("IMPORT_STATUS_SUCCESS")},FAILED:{value:2,label:i.default.getText("IMPORT_STATUS_FAILED")},CANCELED:{value:3,label:""},IN_PROGRESS:{value:4,label:""}}},IMPORT_STATUS_REFRESH_INTERVAL:2e3,TYPE_REPORT:1,TYPE_DASHBOARD:2,TYPE_ACCESS_REPORT:0,TYPE_ACCESS_DASHBOARD:1,get TitlesData(){return{get settingLevel(){return i.default.getText("IMPORT_SETTING_LEVEL")},get databases(){return i.default.getText("IMPORT_DATABASES")},get dataSources(){return i.default.getText("IMPORT_DATA_SOURCES")},get customViews(){return i.default.getText("IMPORT_CUSTOM_VIEWS")},get calculatedFields(){return i.default.getText("IMPORT_CALCULATED_FIELDS")}}},HINT_MESSAGE:{get CATEGORY(){return i.default.getText("REPORTDESIGNER_MESSAGE_HINT_CATEGORY")},get SUB_CATEGORY(){return i.default.getText("REPORTDESIGNER_MESSAGE_HINT_SUB_CATEGORY")}}},e.exports=t.default},,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Highcharts:"Highcharts",Highmaps:"Highmaps"},e.exports=t.default},function(e,t,a){"use strict";(function(t){var r,n=a(58),i=(r=n)&&r.__esModule?r:{default:r};!function(){var r=a(50).RANGE_ALIAS,n=a(41),o=a(48).SORT_ORDERS,l=a(33),s=a(1),u=s.head,d=s.tail,c=s.orderBy,p=s.toLower,f=s.map,h=s.mapValues,m=s.isUndefined,g=s.curry,E=s.concat,y=s.flatten,v=s.toNumber,T=s.isNull,_=s.find,S=s.isNil,C=s.sortBy,b=s.flow,N=s.compact,A=s.clone,R=s.forEach,O=s.union,I=s.isEqual,D=s.flatMap,P=s.uniqWith,L=s.get,M=s.getOr,F=s.chain;function k(e,t){var a={};return(0,i.default)(e).forEach(function(n){var i=[];e[n].map(function(e){var a=t.filter(function(t){return t.fieldNameAlias===r.MIN_ALIAS+e.name||t.fieldNameAlias===r.MAX_ALIAS+e.name||t.fieldNameAlias===r.AVG_ALIAS+e.name||t.fieldNameAlias===e.name});R(function(t){t.reportPartElm=e},a),i=O(a,i)}),a[n]=P(I,i)}),a}function x(e,t,a){var r=M(null,"value",e);if(!r||!r.length)return null;var n=!1,i=F(r).sortBy(function(e){return"High"===e.name?1:0}).map(function(e){if("static"===e.thresholdType)return e.key;if("dynamic_subtotal"===e.thresholdType){var r=M(null,"fields[0]",e).fieldName;return a["subtotal_"+r]}var i=M(null,"fields[0]",e);return n=!0,function(e,t,a){if(e){var r=_(function(t){return t.fieldNameAlias===e.fieldName},t);if(r)return M(null,r.columnName,a)}return null}(i,t,a)}).value();return{isDynamic:n,min:i[0],max:i[1]}}e.exports={splitDataForSeparator:function(e,a,r,i,l){var s=function e(t,a,r,i,l){var s=r||1,E=u(a),y=d(a);if(!E)return[];var S=E.element.properties.getDataValueByKey("sort"),C=null;C=!i||S!==o.ASC.value&&S!==o.DESC.value?function(e){return e}:c([function(e){var t=e[0];return T(t)?"":isNaN(t)?t:v(t)}],[p(S)]);var N=function(e){return f(h(function(e){return String.commonStringValue(e,n.advancedSettings.other.convertNullToEmptyStringValue)}),e)};return b(g(function(e,t){var a=[];return(t.data||t).forEach(function(t){var r=m(t[e])?"undefined":t[e],n=null;(!l||y.length>0)&&(n=_(function(e){return e[0]===r},a)),n?n[1].push(t):a.push([r,[t]])}),a})(E.columnName),C,f(function(t){var a=t[1],r={level:s,columnName:E.columnName,element:E.element,value:String.commonStringValue(t[0],n.advancedSettings.other.convertNullToEmptyStringValue)};return y.length>0?{key:[r],data:N(a),subGroup:e(a,y,s+1,i,l)}:{key:[r],data:N(a)}}))(t)}(e,a,1,i,l);return r?s:function e(a,r){var n=r||[],i=[];return b(f(function(a){var r=a.key;return t(r,"key must exists"),i=E(n,r),a.subGroup?e(a.subGroup,i):{key:i,data:a.data||[]}}),y)(a)}(s)},filterMappingByContainer:function(e,t){var a=S(t)?[]:C("position",t.elements);return b(f(function(t){var a=t.field||{},r=A(_({fieldNameAlias:a.fieldNameAlias,fieldId:a.fieldId},e));return r&&(r.element=t),r}),N)(a)},getListValueByGroup:function(e,t,a){var r=t.columnName,n=a.filter(function(e){return!!e[r]});return D(function(t){return{key:t[e.columnName],value:t[r]}},n)},restructureField:k,getListValueByField:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return D(function(t){var r=l.getOriginalValue(e,t);return l.getAlternativeText(r,a,t)||r},t)},getValueOfField:function(e,t,a){if(!e)return null;var r=k({field:[e]},t);return a[(r=M({},"field[0]",r)).columnName]},getValueFromMappingField:function(e,t){var a=e.columnName;return a?t.length?f(a,t):t[e.columnName]:null},getFieldName:function(e){return L("fieldNameAlias",e)},getColorSettingsRange:function(e,t,a,r){var n=x(e,t,a);if(!n)return null;var i=n.min,o=n.max;if(S(i)||S(o)||isNaN(i)||isNaN(o))return null;var l=o-i;return!n.isDynamic&&l>1&&(i=Math.floor(i),o=Math.ceil(o)),{type:"value",range:[[i,o]]}}}}()}).call(t,a(42))},function(e,t,a){"use strict";var r,n,i,o;r=a(0),n=a(9).observer,i=a(1).invoke,(o=n(r.createClass({displayName:"Loading",onCancel:function(){i("onCancel",this.props)},render:function(){var e=this.props;if(!e.show)return null;var t=r.createElement("div",{className:"progress-bar progress-bar-striped active u_fullWidth","aria-valuenow":"100","aria-valuemin":"0","aria-valuemax":"100"});t=i("allowToCancelProgress",e)?function(e){return r.createElement("div",{className:"Loading-With-Btns u-posRelative"},r.createElement("div",{className:"progress-section"},e),r.createElement("div",{className:"btn-section u-posAbsolute u-posTopRight"},r.createElement("a",{label:"Cancel",onClick:this.onCancel},"Cancel")))}.call(this,t):t;var a=e.withoutBorder?t:r.createElement("div",{className:"Reporting-Loading-Overlay"},r.createElement("div",{className:"Reporting-Loading-Canvas"},t));return e.classNameContainer?r.createElement("div",{className:e.classNameContainer},a):a}}))).propTypes={show:r.PropTypes.bool,withoutBorder:r.PropTypes.bool},e.exports=o},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f;r=a(42),n=a(316),i=a(1771),o={Dashboard:"Dashboard",Viewer:"Viewer",Report:"Report"},l=a(1),s=l.chain,u=l.filter,d=l.indexOf,c=l.placeholder,p={},f={component:{BackSide:n,FrontSide:n}},e.exports={DISPLAY_SECTION:o,registerReportPartType:function(e,t){r(e,"Invalid reportPart"),r(t,"Invalid reportPart key"),p[t]=e},getReportPartType:function(e,t){t=t||"value";var a=s(p).values().find([t,e]).value();return a||f},getReportFrontSide:function(e,t){var a=this.getReportPartType(e).component.FrontSide,r=null;switch(t){case o.Dashboard:r=i.dashboard;break;case o.Viewer:r=i.viewer;break;default:r=i.report}return r(a)},filterSupportedReports:function(e){var t=c(p).values().map("value").value();return u(function(e){return d(e.type,t)>=0},e)}}},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s=N(a(17)),u=N(a(14)),d=N(a(6)),c=N(a(2)),p=N(a(3)),f=N(a(7)),h=N(a(8)),m=a(0),g=N(m),E=N(a(13)),y=N(a(1904)),v=N(a(2006)),T=N(a(2007)),_=a(109),S=a(5),C=a(9),b=N(a(16));function N(e){return e&&e.__esModule?e:{default:e}}var A,R,O,I,D,P,L=(0,C.observer)((l=o=function(e){function t(){var e,a,r,n,o,l,u,p;(0,c.default)(this,t);for(var h=arguments.length,m=Array(h),g=0;g1?i-1:0),s=1;s0,"baseStyles must have a value"),(0,l.includes)(n,o))return!0;var u=a(n);return!(0,l.isNil)(u)&&!(0,l.isEmpty)(u)&&t.isReportPartStyle(e).apply(void 0,[u].concat(o))}},reset:function(){s.reset()}},e.exports=t.default}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={availableLevels:[{get label(){return i.default.getText("COMMON_LABEL_SYSTEM")},value:"System"},{get label(){return i.default.getText("COMMON_LABEL_TENANT")},value:"Tenant"}],SYSTEM_MODE:1,TENANT_MODE:0,COOKIES:{SAMESITE:{NONE:"None",LAX:"Lax",STRICT:"Strict"}}},e.exports=t.default},,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};var o={DATE:"date",EMPTY:"",CANNOT_BE_SEND:"The report cannot be sent",HAS_NOT_STATED:"The schedule has not started"},l={EMPTY:"",EMAIL:"Email",FILE_LOCATION:"File Location"},s={EMPTY:"",LINK:"link",ATTACHMENT:"Attachment",EMBEDDED_HTML:"Embedded HTML",SEND_TO_DISK:"Send to Disk"},u={EMPTY:"",EVERY_HOURLY:"0",EVERY_DAILY:"1",EVERY_DAY:"2",EVERY_WEEKDAY:"3",EVERY_WEEK:"4",EVERY_TWO_WEEK:"5",EVERY_MONTH:"6",EVERY_QUARTER:"7",CUSTOM:"8"},d={EMPTY:"",SCHEDULE_REPORT:"Scheduled Reporting Item",SCHEDULE_ALERT:"Scheduled Alert",SUBSCRIBE_REPORTING_ITEM:"Subscribed Reporting Item",SUBSCRIBE_ALERT:"Subscribed Alert"};t.default={PAGE_SEARCH_SIZE:10,LAST_SUCCESS_RUN_VALUE:o,DELIVERY_TYPE_VALUE:l,RECURRENCE_VALUE:u,INSTANCE_TYPE_VALUE:d,DELIVER_METHOD_VALUE:s,REPORT_TYPE_VALUE:{Report:1,Dashboard:2},VALIDATE_DATE_MESSAGE:"To Date must be greater than or equal to From Date",TOOLTIP:{get EXPAND(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_TOOLTIP_EXPAND")},get COLLAPSE(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_TOOLTIP_COLLAPSE")}},DEFAULT_OPTION:{value:"",get label(){return i.default.getText("COMMON_LABEL_ALL")}},REPORT_TYPE:[{value:"",get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:"Report",get label(){return i.default.getText("COMMON_LABEL_REPORTS")}},{value:"Dashboard",get label(){return i.default.getText("COMMON_LABEL_DASHBOARD")}}],INSTANCE_TYPE:[{value:"",get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:d.SCHEDULE_REPORT,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_INSTANCE_TYPE_SCHEDULE_REPORT")}},{value:d.SCHEDULE_ALERT,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_INSTANCE_TYPE_SCHEDULE_ALERT")},alertingLicense:!0},{value:d.SUBSCRIBE_REPORTING_ITEM,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_INSTANCE_TYPE_SUBSCRIBE_REPORT")}},{value:d.SUBSCRIBE_ALERT,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_INSTANCE_TYPE_SUBSCRIBE_ALERT")},alertingLicense:!0}],RECURRENCE:[{value:u.EMPTY,get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:u.EVERY_DAY,get label(){return i.default.getText("COMMON_LABEL_EVERY_DATE")}},{value:u.EVERY_WEEKDAY,get label(){return i.default.getText("COMMON_LABEL_EVERY_WEEKDAY")}},{value:u.EVERY_WEEK,get label(){return i.default.getText("COMMON_LABEL_EVERY_WEEK")}},{value:u.EVERY_TWO_WEEK,get label(){return i.default.getText("COMMON_LABEL_EVERY_TWO_WEEK")}},{value:u.EVERY_MONTH,get label(){return i.default.getText("COMMON_LABEL_EVERY_MONTH")}},{value:u.EVERY_QUARTER,get label(){return i.default.getText("COMMON_LABEL_EVERY_QUARTER")}},{value:u.EVERY_HOURLY,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_RECURRENCE_EVERY_HOURLY")}},{value:u.EVERY_DAILY,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_RECURRENCE_EVERY_DAILY")}},{value:u.CUSTOM,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_RECURRENCE_CUSTOM")}}],DELIVERY_TYPE:[{value:l.EMPTY,get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:l.EMAIL,get label(){return i.default.getText("COMMON_LABEL_EMAIL")}},{value:l.FILE_LOCATION,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_DELIVERY_TYPE_FILE_LOCATION")}}],DELIVERY_METHOD:[{value:s.EMPTY,get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:s.LINK,get label(){return i.default.getText("COMMON_LABEL_LINK")}},{value:s.ATTACHMENT,get label(){return i.default.getText("COMMON_LABEL_ATTACHMENT")}},{value:s.EMBEDDED_HTML,get label(){return i.default.getText("COMMON_LABEL_EMBEDDED_HTML")}},{value:s.SEND_TO_DISK,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_DELIVERY_METHOD_SEND_TO_DISK")}}],EXPORT_FILE_TYPE:[{value:"",get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:"PDF",label:"PDF"},{value:"Word",label:"Word"},{value:"Excel",label:"Excel"},{value:"CSV",label:"CSV"}],LAST_SUCCESS_RUN:[{value:o.EMPTY,get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:o.DATE,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_DATE")}},{value:o.CANNOT_BE_SEND,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_LAST_SUCCESS_RUN_CANNOT_BE_SEND")}},{value:o.HAS_NOT_STATED,get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_LAST_SUCCESS_RUN_NOT_STARTED")}}],NEXT_SCHEDULED_RUN:[{value:"",get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:"date",get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_DATE")}},{value:"No recurrence",get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_NEXT_SCHEDULED_RUN_NO_RECURRENCE")}},{value:"The Schedule has ended",get label(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_NEXT_SCHEDULED_RUN_ENDED")}}],SEARCH_KEY:{reportType:"ReportingType",name:"ReportDashboardName",deliveryType:"DeliveryType",deliveryMethod:"DeliveryMethod",recipients:"Recipients",instanceType:"Type",lastSuccessfulRun:"LastSuccessfulRun",nextScheduledRun:"NextScheduledRun",nextScheduledRunFrom:"NextScheduledRunFrom",nextScheduledRunTo:"NextScheduledRunTo",lastSuccessfulRunFrom:"LastSuccessfulRunFrom",lastSuccessfulRunTo:"LastSuccessfulRunTo",recurrence:"RecurrenceType",exportFileType:"ExportFileType",createdBy:"CreatedBy"},TABLE_DEF:{selected:{key:"selected",width:30,title:"",sortable:!1,columnKey:"selected"},reportingType:{key:"reportingType",width:120,get title(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_REPORT_TYPE")},sortable:!0,columnKey:"reportingType"},reportDashboardName:{key:"reportDashboardName",width:140,get title(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_REPORTING_NAME")},sortable:!0,columnKey:"reportDashboardName"},name:{key:"name",width:140,get title(){return i.default.getText("COMMON_LABEL_INSTANCE_NAME")},sortable:!0,columnKey:"name"},type:{key:"type",width:100,get title(){return i.default.getText("COMMON_LABEL_TYPE")},sortable:!0,columnKey:"type"},schedule:{key:"schedule",width:220,get title(){return i.default.getText("COMMON_LABEL_SCHEDULE")},sortable:!0,columnKey:"schedule"},deliveryType:{key:"deliveryType",width:120,get title(){return i.default.getText("COMMON_LABEL_DELIVERY_TYPE")},sortable:!0,columnKey:"deliveryType"},deliveryMethod:{key:"deliveryMethod",width:140,get title(){return i.default.getText("COMMON_LABEL_DELIVERY_METHOD")},sortable:!0,columnKey:"deliveryMethod"},exportFileType:{key:"exportFileType",width:140,get title(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_EXPORT_FILE_TYPE")},sortable:!0,columnKey:"exportFileType"},recipients:{key:"recipients",width:120,get title(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_RECIPENT")},sortable:!0,columnKey:"recipients"},lastSuccessfulRun:{key:"lastSuccessfulRun",width:170,get title(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_LAST_SUCCESS_RUN")},sortable:!0,columnKey:"lastSuccessfulRun"},nextScheduledRun:{key:"nextScheduledRun",width:170,get title(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_NEXT_SCHEDULED_RUN")},sortable:!0,columnKey:"nextScheduledRun"},createdBy:{key:"createdBy",width:100,get title(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_LABEL_CREATED_BY")},sortable:!0,columnKey:"createdBy"},action:{key:"action",width:80,get title(){return i.default.getText("COMMON_LABEL_ACTION")},sortable:!1,fixed:!0}},ACTION_TEXT:{get EditText(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_ACTION_EDIT_TEXT")},get DeleteText(){return i.default.getText("SCHEDULING_SEARCH_CONSTANT_ACTION_DELETE_TEXT")}},DEFAULT_SORT_ORDER:{name:"DESC"},TEMPLATE_TYPE:0},e.exports=t.default},,function(e,t,a){"use strict";!function(){var t=a(5),r=a(68),n=a(86),i=a(3036),o=a(3037),l=a(3040),s=a(16),u=a(55),d=a(1),c=d.forEach,p=d.map,f=d.isNil;function h(e,a){var i={id:"",type:u.CATEGORY_TYPE.REPORT,name:"",parentId:"",dateTimeNow:"",status:r.NONE,state:r.NONE,modified:null,canDelete:!0,subCategories:[],dashboards:[],reports:[],checked:!1,indeterminate:!1,numOfCheckedChilds:0,numOfChilds:0,isGlobal:!1,isEditing:!1,editable:!0,tenantId:s.tenantId,isUncategorized:function(){return f(this.id)||this.id===u.EMPTY_GUID},isSubCategory:function(){return!f(this.parentId)},isRootCategory:function(){return this.id===n.ALL_CATEGORY_TYPES.ALL_DASHBOARDS.id},isUneditable:function(){return this.isRootCategory||this.id===u.EMPTY_GUID||f(this.id)||!this.editable},isEmpty:function(){return this.canDelete}};t.extendObservable(this,i),e&&this.populateData(e,a)}h.prototype.populateData=t.action(function(e,t){e=e||{},this.id=e.id,this.type=e.type,this.name=e.name,this.parentId=e.parentId,this.tenantId=e.tenantId,this.dateTimeNow=e.dateTimeNow,this.status=e.status,this.state=e.state,this.modified=e.modified,this.subCategories=e.subCategories,this.canDelete=e.canDelete,this.editable=e.editable,this.checked=e.checked,this.numOfCheckedChilds=e.numOfCheckedChilds,this.numOfChilds=e.numOfChilds,this.isGlobal=e.isGlobal,this.populateSubCategories(e.subCategories,t),this.populateDashboardData(e.dashboards,t),this.populateReportData(e.reports)}),h.prototype.populateDataForGlobalLocalCategory=t.action(function(e){e=e||{},this.id=e.id,this.type=e.type,this.name=e.name,this.parentId=e.parentId,this.tenantId=e.tenantId,this.dateTimeNow=e.dateTimeNow,this.status=e.status,this.state=e.state,this.modified=e.modified,this.subCategories=e.subCategories,this.canDelete=e.canDelete,this.editable=e.editable,this.checked=e.checked,this.numOfCheckedChilds=e.numOfCheckedChilds,this.numOfChilds=e.numOfChilds,this.isGlobal=e.isGlobal,this.subCategories=p(function(e){return new h(e)},e.subCategories)}),h.prototype.populateSubCategories=t.action(function(e,t){e=e||[],this.subCategories=e.map(function(e){return new h(e,t)})}),h.prototype.updateName=function(e){this.name=e},h.prototype.updateIsEditing=function(e){this.isEditing=e},h.prototype.populateDashboardData=function(e,t){e=e||[],this.dashboards=e.map(function(e){return t?new o(e):new i(e)})},h.prototype.populateReportData=function(e){e=e||[],this.reports=e.map(function(e){return new l(e)})},h.prototype.resetSubscribes=t.action(function(){c(function(e){e.isSubscribeMode=!1},this.reports),c(function(e){c(function(e){e.isSubscribeMode=!1},e.reports)},this.subCategories)}),e.exports=h}()},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=a(11).withProps,n=a(11).withHandlers,i=(a(11).lifecycle,a(11).setPropTypes,a(0).PropTypes,a(4),a(205)),o=(a(9).observer,a(44),a(3133)),l=a(1),s=l.curry,u=l.isEmpty,d=l.isNil,c=l.toNumber,p=t(r({store:new o}),n({onBlurFocusField:s(function(e,t,a,r){e.validation.validate(t)}),onChangeValueCheckbox:s(function(e,t,a,r){var n=e.store.model;a||e.validation.reset();n.updateValueByKey(t,a)}),onChangeSettingValueMinPasswordLength:s(function(e,t,a,r){var n=e.store.model;n.updateValueByKey(t,a),n.autoCalculateMinPasswordLength()}),onChangeSettingValueMaxPasswordLength:s(function(e,t,a,r){var n=e.store.model;n.updateValueByKey(t,a),n.autoCalculateMaxPasswordLength()}),onChangeRequiredValue:s(function(e,t,a,r,n){var o=e.store.model;u(r)?o.updateValueByKey(t,r):(r=o.toNumber(r))>=i.REQUIRED_MIN_VALUE&&r<=a&&o.updateValueByKey(t,r)}),onChangeRequiredPositiveValue:s(function(e,t,a,r){e.store.model.updateValueByKey(t,a,i.REQUIRED_MIN_POSITIVE_VALUE)}),onSave:s(function(e,t){var a=e.store,r=e.loader,n=e.validation,i=e.localization,o=f(e);n.validate(o).then(function(t){t&&(r.startLoading(),a.save().then(function(t){return d(t.messages)?this.setAlertMessage("success",i.getText("COMMON_MESSAGES_DETAILS_WERE_SAVED")):u(t.messages[0].key)?e.store.alertMessage={type:"error",message:t.messages[0].messages[0]}:n.updateErrors(t.messages),null}).finally(r.endLoading.bind(r)))})}),onCancel:s(function(e,t){var a=e.loader,r=e.store;a.startLoading(),e.validation.reset(),r.loadSecurityPoliciesDetail().finally(a.endLoading.bind(a))}),getFieldValidateBeforeSave:s(f)}));function f(e){var t=[],a=e.store.model;return a.passwordLength&&t.push("minNumberOfPasswordLenght","maxNumberOfPasswordLenght"),a.numberSpecialCharacters&&t.push("minNumberOfSpecialCharacter","maxNumberOfSpecialCharacter"),a.numberUppercaseCharacters&&t.push("minNumberOfUppercaseCharacter","maxNumberOfUppercaseCharacter"),a.numberLowercaseCharacters&&t.push("minNumberOfLowercaseCharacter","maxNumberOfLowercaseCharacter"),a.numberNumericCharacters&&t.push("minNumberOfNumericCharacte","maxNumberOfNumericCharacter"),a.numberNumericCharacters&&t.push("minNumberOfNumericCharacte","maxNumberOfNumericCharacter"),a.maxNumberSequentialRepeated&&t.push("maxNumberOfRepeatSequential"),a.passwordAge&&t.push("minNumberOfPasswordAge","maxNumberOfPasswordAge"),a.notifyUser&&t.push("notifyUseDuring"),a.enforcePasswordHistory&&t.push("numberOfPasswordToKeep"),a.passwordLinkValidityChecked&&t.push("passwordLinkValidit"),a.useSecurityQuestions&&t.push("numberOfQuestionProfile"),a.useSecurityQuestions&&0!==c(a.numberOfQuestionProfile)&&t.push("numberOfQuestionResetPassword"),a.numberFailedLogonAttemptsAllowed&&t.push("numberOfFailedLogonAllowed"),a.numberFailedSecurityQuestionAttemptsAllowed&&t.push("numberOfFailedAnswerAllowed"),(0===c(a.numberOfFailedAnswerAllowed)||0===c(a.numberOfFailedLogonAllowed))&&t.push("lockoutPeriod"),t}e.exports=p}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r},o=a(1);t.default={REQUIRED_MIN_VALUE:0,REQUIRED_MIN_POSITIVE_VALUE:1,REQUIRED_VALUE_NO_PASSWORD_KEEP:5,REQUIRED_VALUE_NO_SECURITY_QUESTIONS:18,PASSWORD_VALIDITY:{get MIN_PASSWORD_AGE(){return i.default.getText("SECURITY_POLICIES_CONSTANT_MIN_PASSWORD_AGE")},get MAX_PASSWORD_AGE(){return i.default.getText("SECURITY_POLICIES_CONSTANT_MAX_PASSWORD_AGE")}},SECURITY_QUESTION_FIELD_NAME:{get USER_PROFILE(){return i.default.getText("SECURITY_POLICIES_CONSTANT_USER_PROFILE")},get RESET_PASSWORD(){return i.default.getText("SECURITY_POLICIES_CONSTANT_RESET_PASSWORD")}},get SECURITY_QUESTIONS(){return i.default.getText("SECURITY_POLICIES_CONSTANT_SECURITY_QUESTIONS")},numberLimitConstraints:function(e,t,a,r,n,l){var s=void 0;if((r=(0,o.toNumber)(r))<(n=(0,o.toNumber)(n))&&l){var u=void 0;u=e?r1&&void 0!==arguments[1]?arguments[1]:0;this.setState({color:e,alpha:t}),this.hideColorPicker(),this.props.onChange&&this.props.onChange(e,t)},hideColorPicker:function(){this.setState({isOpen:!1})},render:function(){var e=this.props,t=this.state,a=e.disabled?null:{background:this.state.color},l=!e.iconName,s=n(e.className,{"color-picker":!0,"full-size-picker":l,"btn-highlight":!l,"active-check":e.hadSetting}),u=n({"color-indicator":!0,"full-size-indicator":l});return r.createElement("button",{ref:"colorPicker",title:e.title,className:s,onMouseDown:this.handleShowColorPicker},!l&&r.createElement("span",{className:this.props.iconName}),r.createElement("div",{className:u,style:a}),t.isOpen&&r.createElement(i,{autoWidth:!0,minWidth:515,anchor:this.refs.colorPicker,onClickOutside:this.hideColorPicker},r.createElement(o,{alpha:this.state.alpha,isAlpha:this.state.isAlpha,color:this.state.color,onAccept:this.handleAccept,onCancel:this.hideColorPicker})))}}),e.exports=l()(s)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=g(a(6)),o=g(a(2)),l=g(a(3)),s=g(a(7)),u=g(a(8)),d=a(0),c=g(d),p=g(a(13)),f=g(a(10)),h=g(a(12)),m=g(a(270));function g(e){return e&&e.__esModule?e:{default:e}}var E=(n=r=function(e){function t(){var e,a,r,n;(0,o.default)(this,t);for(var l=arguments.length,u=Array(l),d=0;d3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){};return r(e,"schemaDefinition must be defined"),r(a,"mappingProps must be defined"),{definedSchema:e,widgets:t,source:n,mappingProps:a,mappingSource:i,onChangeValue:o}}},e.exports=t.default}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(12)),n=l(a(48)),i=a(36),o=a(1);function l(e){return e&&e.__esModule?e:{default:e}}var s=n.default.FUNCTION,u=n.default.FORMAT_KEY,d=[{get label(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_LINEAR_GAUGE")},value:i.CHART_TYPE.LinearGauge,className:"gauge-linear"},{get label(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_SIMPLE_GAUGE")},value:i.CHART_TYPE.SimpleGauge,className:"gauge-simple"},{get label(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_SOLID_GAUGE")},value:i.CHART_TYPE.SolidGauge,className:"gauge-solid"}],c={LABELS:"labels",VALUES:"values",SEPARATORS:"separators",THRESHOLD:"threshold",SCALE:"scale",SUP_KPI:"sup_kpi",DRILLDOWN:"labels",METRIC_DROPDOWN:"values"},p={};p[i.CHART_TYPE.SolidGauge]={},p[i.CHART_TYPE.SolidGauge][c.LABELS]={Datetime:{FUNCTION:s.GROUP,FORMAT:u.YEAR},Time:{FUNCTION:s.GROUP,FORMAT:u.DEFAULT_TIME},Others:{FUNCTION:s.GROUP,FORMAT:u.NONE}},p[i.CHART_TYPE.SolidGauge][c.VALUES]={Numeric:{FUNCTION:s.SUM,FORMAT:u.NONE},Money:{FUNCTION:s.SUM,FORMAT:u.NONE},Others:{FUNCTION:s.COUNT,FORMAT:u.NONE}},p[i.CHART_TYPE.SolidGauge][c.SEPARATORS]=p[i.CHART_TYPE.SolidGauge][c.LABELS],p[i.CHART_TYPE.SolidGauge][c.THRESHOLD]=p[i.CHART_TYPE.SolidGauge][c.VALUES],p[i.CHART_TYPE.SolidGauge][c.SCALE]=p[i.CHART_TYPE.SolidGauge][c.VALUES],p[i.CHART_TYPE.LinearGauge]=p[i.CHART_TYPE.SolidGauge],p[i.CHART_TYPE.SimpleGauge]=p[i.CHART_TYPE.SolidGauge],p[i.CHART_TYPE.SimpleGauge][c.SUP_KPI]=p[i.CHART_TYPE.LinearGauge][c.VALUES];var f={};f[i.CHART_TYPE.SolidGauge]={},f[i.CHART_TYPE.SolidGauge][c.SEPARATORS]=1,f[i.CHART_TYPE.SolidGauge][c.THRESHOLD]=1,f[i.CHART_TYPE.SolidGauge][c.SCALE]=1,f[i.CHART_TYPE.LinearGauge]=f[i.CHART_TYPE.SolidGauge],f[i.CHART_TYPE.SimpleGauge]=f[i.CHART_TYPE.SolidGauge],f[i.CHART_TYPE.SimpleGauge][c.SUP_KPI]=1;var h={get M01(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_MESSAGE_LOW_VALUE_MUST_LESS_THAN_HIGH_VALUE")},get M02(){return r.default.getText("GAUGE_MESSAGE_THRESHOL_NUMBER")},get M04(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_MESSAGE_THRESHOLDS_MUST_BE_WITHIN_SCALE_FORM_SCALE_TO")},get M05(){return r.default.getText("COMMON_MESSAGES_MUST_BE_FUNCTION")},get M06(){return r.default.getText("GAUGE_MESSAGE_SCALE_RANGE")},get M07(){return r.default.getText("GAUGE_MESSAGE_THRESHOLD_MAX_VALUE")},get M08(){return r.default.getText("GAUGE_MESSAGE_THRESHOLD_MIN_VALUE")}},m={STATIC:{get label(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_STATIC")},value:"static"},DYNAMIC:{get label(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_DYNAMIC")},value:"dynamic"}},g=m,E={LESS_THAN:{get label(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_LESS_THAN")},value:"less than"},BETWEEN:{get label(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_BETWEEN")},value:"between"},GREAT_THAN:{get label(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_GREATER_THAN")},value:"greater than"}},y={LOW:{get label(){return r.default.getText("COMMON_LABEL_LOW")},value:"low",defautColor:"#55BF3B",defautOperator:E.LESS_THAN.value},TARGET:{get label(){return r.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_TARGET")},value:"target",defautColor:"#DDDF0D",defautOperator:E.LESS_THAN.value},HIGH:{get label(){return r.default.getText("COMMON_LABEL_HIGH")},value:"high",defautColor:"#DF5353",defautOperator:E.GREAT_THAN.value}},v=m;t.default={ContainerName:c,MaximumField:f,Message:h,DefaultFunction:p,DefaultChartType:i.CHART_TYPE.SolidGauge,CHART_TYPES:d,SETTING_VALUES:m,THRESHOLD_SETTINGS:g,THRESHOLD_OPERATORS:E,THRESHOLD_VALUES:y,SUPP_SETTINGS:v,ITEM_PER_ROWS:3,getOptions:function(e){var t=this[e]||{};return(0,o.values)(t)},DEFAULT_SETTING_VALUE:{borderDefault:{"izEntire.borderColor":"#000","izEntire.borderWidth":void 0,"izEntire.borderStyle":"solid"},borderNew:{"izEntire.borderColor":void 0,"izEntire.borderWidth":void 0,"izEntire.borderStyle":void 0},refreshIntervalDefault:{enable:!1,isAll:!0,latestRecord:0,updateInterval:0}}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(76)),n=o(a(16)),i=a(1);function o(e){return e&&e.__esModule?e:{default:e}}var l="DataModel/";t.default={loadQuerySourceFields:function(e,t,a,n){var i={querySource:e,criteria:[],tenantId:n,pageIndex:(a=a||{}).pageIndex||1,pageSize:1e3,sortOrders:t};return(0,r.default)(l+"LoadQuerySourceFields").post(i)},updateQuerySource:function(e){return(0,r.default)(l).post(e)},loadQuerySources:function(e,t,a,n,i){a=a||{};var o={querySourceType:t,tenantId:e,criteria:i||[],pageIndex:a.pageIndex||1,pageSize:a.pageSize||10,sortOrders:n||[{key:"name",descending:!0}]};return(0,r.default)(l+"LoadQuerySources").post(o)},executeStoredProc:function(e,t,a){var n={querySourceId:e,postedParameters:t||[],sortOrders:a};return(0,r.default)(l+"ReloadQuerySourceFields").post(n)},getSchemaDetails:function(e){var t=(0,i.isEmpty)(e)?"":e;return(0,r.default)(l+"Schema/"+t).get()},getJoinTypes:function(){return(0,r.default)(l+"/relationship/joinTypes/").get()},getBasicConnectionsInfo:function(e){var t=(0,i.isEmpty)(e)?"":e;return(0,r.default)(l+"basicConnectionsInfo/"+t).get()},getBasicQuerySourcesInfo:function(e){return(0,r.default)(l+"basicQuerySourcesInfo/"+e).get()},getQuerySourcesInfo:function(e){return(0,r.default)(l+"querySourcesInfo/"+e).get()},getBasicQuerySourceFieldsInfo:function(e){return(0,r.default)(l+"basicQuerySourceFieldsInfo/"+e+"?type=1").get()},getRelationships:function(e,t,a,n,i){a=a||{};var o={querySourceId:e,tenantId:t,criteria:i||[],pageIndex:a.pageIndex||1,pageSize:a.pageSize||10,sortOrders:n||[{key:"DataObject",descending:!0}],includeDisabledRelationships:!0};return(0,r.default)(l+"loadRelationships/").post(o)},getInvalidRelationships:function(e,t,a,n,i){var o={querySourceId:e,tenantId:t,criteria:n||[],sortOrders:a,modifiedRelationships:i};return(0,r.default)(l+"loadInvalidRelationships/").post(o)},validateRelationships:function(e){var t={modifiedRelationships:e};return(0,r.default)(l+"validateRelationships/").post(t)},saveRelationships:function(e){return(0,r.default)(l+"relationships/").post(e)},loadIndicator:function(e){var t=(0,i.isNil)(e)?"":e;return(0,r.default)(l+"indicator/"+t).get()},deleteRelationship:function(e){return(0,r.default)(l+"relationship/"+e).delete()},deleteQuerySourceField:function(e){return(0,r.default)(l+"querySourceField/"+e).delete()},fetchFunctionOperators:function(e,t,a){var n={querySourceIds:(0,i.isArray)(t)?t:[t],tenantId:e,includeCustomJsonFunction:a};return(0,r.default)(l+"functionOperators").post(n)},validateExpression:function(e,t,a,i){var o={querySourceId:e,expression:t,izendaDataType:a,querySourceFieldId:i,tenantId:n.default.tenantId};return(0,r.default)("fusion/validateDataModelExpression").post(o)},previewCalculatedField:function(e,t,a,i){var o={querySourceId:e,expression:t,izendaDataType:a,querySourceFieldId:i,tenantId:n.default.tenantId};return(0,r.default)("fusion/calculatedFieldValue").post(o)},getPredictedFieldModels:function(e){return(0,r.default)("machinelearning/modelDetails/"+e).get()},getDatabases:function(e){return(0,r.default)(l+"basicConnectionsInfo").post(e)},getConnectionInfo:function(e){return(0,r.default)(l+"connectionsInfo").post(e)},getSchemas:function(e){return(0,r.default)(l+"basicQuerySourceCategoriesInfo").post(e)},validateCustomQuerySource:function(e){return(0,r.default)(l+"validateCustomQuerySource").post(e)},saveCustomQuerySource:function(e){return(0,r.default)(l+"customQuerySource").post(e)},deleteCustomQuerySource:function(e){return(0,r.default)(l+"deleteCustomQuerySource").post(e)}},e.exports=t.default},,function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y;r=a(0),n=a(11),i=n.withContext,o=n.getContext,l=n.compose,s=n.branch,u=n.renderNothing,d=n.mapProps,c=a(9).observer,p=a(1),f=p.get,h=p.identity,m=p.omit,g={integrationStyle:r.PropTypes.object},E=i(g,function(e){return{integrationStyle:e.integrationStyle}}),y=o(g),e.exports={defineContext:E,accessContext:y,checkDisplayByKey:function(e){return l(y,c,s(function(t){return f(e,t.integrationStyle)},u,h),d(function(e){return m("integrationStyle",e)}))}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r},o=a(1);var l=(0,o.toLower)(i.default.getText("COMMON_LABEL_REPORT")),s=(0,o.toLower)(i.default.getText("COMMON_LABEL_DASHBOARD")),u=(0,o.toLower)(i.default.getText("ROLE_SETUP_PERMISSION_CATEGORIES_ERROR_EDITABLE")),d=(0,o.toLower)(i.default.getText("ROLE_SETUP_PERMISSION_CATEGORIES_ERROR_ACCESSIBLE")),c=[{prop:"childNodes",children:[{prop:"childNodes",showTotal:!0,children:[{prop:"childNodes",children:[{prop:"childNodes"}]}]}]}];t.default={EMPTY_GUID:"00000000-0000-0000-0000-000000000000",MIDDLE_MIN_WIDTH:0,MIDDLE_MAX_WIDTH:250,MESSAGE:{get DELETE(){return i.default.getText("ROLE_SETUP_CONSTANT_MESSAGE_DELETE")},get DEACTIVE(){return i.default.getText("ROLE_SETUP_CONSTANT_MESSAGE_DEACTIVE")}},PERMISSION_ERROR:{validateReportUneditableCategoryKey:{type:l,permission:u},validateReportInaccessibleCategoryKey:{type:l,permission:d},validateDashboardUneditableCategoryKey:{type:s,permission:u},validateDashboardInaccessibleCategoryKey:{type:s,permission:d}},ROLE_STATE:{get ACTIVATE(){return i.default.getText("COMMON_LABEL_ACTIVATE")},get DEACTIVATE(){return i.default.getText("COMMON_LABEL_DEACTIVATE")}},CONSTRAINTS:{ROLE_NAME:{presence:{presence:!0,get message(){return i.default.getText("ROLE_SETUP_CONSTANT_CONSTRAINTS_REQUIRE_VALUE")}}}},ROLE_SETUP:{get USERS(){return i.default.getText("ROLE_SETUP_CONSTANT_ROLE_SETUP_USERS")}},DEFAULT_ITEMS_LAZY_LOADING:100,DATA_SOURCE_CONCAT_TREE_MAP:c,DATA_SOURCE_TREE_MAP:[{prop:"childNodes",children:c}],ROLE_TYPES:{Administrator:"Administrator",AdvReportCreator:"AdvReportCreator",BasicReportCreator:"BasicReportCreator",ReportViewer:"ReportViewer",Custom:"Custom"}},e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(0),n=a(9).observer,i=a(159),o=a(16),l=a(12),s=a(1),u=s.filter,d=s.isObject,c=r.createClass({displayName:"ActionButton",getInitialState:function(){return{isOpen:!1}},hideMenu:function(e){this.setState({isOpen:!1})},showMenu:function(e){this.setState({isOpen:!this.state.isOpen})},renderActionButtons:function(){return u(function(e){return d(e)&&!e.props.keepDisplay},this.props.children).map(function(e,t){return r.createElement("div",{key:t,onClick:this.hideMenu}," ",e," ")}.bind(this))},renderStaticButtons:function(){return u(function(e){return d(e)&&e.props.keepDisplay},this.props.children)},render:function(){return o.isMobile?r.createElement("div",{className:"u_inlineBlock izenda-ActionButton"},r.createElement("button",{ref:"btnAction",onMouseDown:this.showMenu,className:"btn btn-primary"},l.getText("COMMON_LABEL_ACTION"),"  ",r.createElement("span",{className:"caret"})),this.renderStaticButtons(),this.state.isOpen&&r.createElement(i,{className:"izenda-ActionButton-menu",edges:"under,over",renderInContainer:!1,autoWidth:!0,anchor:this.refs.btnAction,onClickOutside:this.hideMenu},r.createElement("div",null,this.renderActionButtons()))):r.createElement("div",{className:"u_inlineBlock izenda-ActionButton"},this.props.children)}}),e.exports=n(c)},,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(a(359)),n=c(a(2)),i=c(a(3)),o=c(a(965)),l=c(a(1550)),s=a(300),u=c(a(129)),d=a(1);function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){return(0,d.padCharsStart)("0",2,e)},f=function(e){return(0,d.isNumber)(e)?e:(0,l.default)(e)?0:(0,o.default)(e)},h=function(e,t){var a=e<0?"-":"",r=Math.abs(e).toString().split(".")[0];return a+t+(r=r.replace(/\B(?=(\d{3})+(?!\d))/g,","))},m=[{name:"By Hour",formatFn:function(e){if(!(0,d.isDate)(e))return e;var t=u.default.formatAMPM(e);return e.getMonth()+1+"/"+e.getDate()+"/"+e.getFullYear()+" "+t.hours+":00 "+t.ampm}},{name:"HH:MM:SS",formatFn:function(e){var t=new Date(1e3*e);return p(Math.floor(e/86400))+"."+p(t.getUTCHours())+":"+p(t.getMinutes())+":"+p(t.getSeconds())}},{name:"0,000",formatFn:function(e){return h(f(e),"")}},{name:"$0,000",formatFn:function(e){return h(f(e),"$")}},{name:"¥0,000",formatFn:function(e){return h(f(e),"¥")}},{name:"£0,000",formatFn:function(e){return h(f(e),"£")}},{name:"1k",formatFn:function(e){return Math.floor(f(e)/1e3)+"k"}}],g=function(){function e(){(0,n.default)(this,e),this.jsFormats=new r.default,this.jsFormatStringList=new r.default,this.initDefaultJsFormats()}return(0,i.default)(e,[{key:"initDefaultJsFormats",value:function(){var e=this;(0,d.forEach)(function(t){return e.addJsFormat(t.name,t.formatFn)},m)}},{key:"addJsFormat",value:function(e,t){this.jsFormats.set(e,t)}},{key:"removeJsFormat",value:function(e){this.jsFormats.delete(e)}},{key:"registerJsFormatString",value:function(e,t){this.jsFormatStringList.set(e,t)}},{key:"removeJsFormatString",value:function(e){this.jsFormatStringList.delete(e)}},{key:"format",value:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.jsFormatStringList.get(e);if(function(e){return/\{(.*)\}/.test(e)}(r))return s.highcharts.format(r,{value:t});var n=this.jsFormats.get(r);return n?n(t):a||t}}]),e}();t.default=new g,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={DEFAULT_FORMAT_PATTERN:"MM/dd/yyyy",DATE_TIME_FORMAT:{"MM/dd/yyyy":{FOR_DATE_SETTING:["MM/DD/YYYY"],GROUP_BY:"date",MOMENT_OUTPUT:"MM/DD/YYYY",INTERVAL_VALUE:"d"},"M/d/yyyy":{FOR_DATE_SETTING:["MM/DD/YYYY"],GROUP_BY:"date",MOMENT_OUTPUT:"M/D/YYYY",INTERVAL_VALUE:"d"},"MM/dd/yy":{FOR_DATE_SETTING:["MM/DD/YYYY"],GROUP_BY:"date",MOMENT_OUTPUT:"MM/DD/YY",INTERVAL_VALUE:"d"},"M/d/yy":{FOR_DATE_SETTING:["MM/DD/YYYY"],GROUP_BY:"date",MOMENT_OUTPUT:"M/D/YY",INTERVAL_VALUE:"d"},"dd/MM/yyyy":{FOR_DATE_SETTING:["DD/MM/YYYY"],GROUP_BY:"date",MOMENT_OUTPUT:"DD/MM/YYYY",INTERVAL_VALUE:"d"},"d/M/yyyy":{FOR_DATE_SETTING:["DD/MM/YYYY"],GROUP_BY:"date",MOMENT_OUTPUT:"D/M/YYYY",INTERVAL_VALUE:"d"},"dd/MM/yy":{FOR_DATE_SETTING:["DD/MM/YYYY"],GROUP_BY:"date",MOMENT_OUTPUT:"DD/MM/YY",INTERVAL_VALUE:"d"},"d/M/yy":{FOR_DATE_SETTING:["DD/MM/YYYY"],GROUP_BY:"date",MOMENT_OUTPUT:"D/M/YY",INTERVAL_VALUE:"d"},"yyyy/MM/dd":{FOR_DATE_SETTING:["YYYY/MM/DD"],GROUP_BY:"date",MOMENT_OUTPUT:"YYYY/MM/DD",INTERVAL_VALUE:"d"},"yyyy/M/d":{FOR_DATE_SETTING:["YYYY/MM/DD"],GROUP_BY:"date",MOMENT_OUTPUT:"YYYY/M/D",INTERVAL_VALUE:"d"},"MM-yy":{FOR_DATE_SETTING:["MM/DD/YYYY","DD/MM/YYYY"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"MM-YY",INTERVAL_VALUE:"M"},"M-yy":{FOR_DATE_SETTING:["MM/DD/YYYY","DD/MM/YYYY"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"M-YY",INTERVAL_VALUE:"M"},"MM-yyyy":{FOR_DATE_SETTING:["MM/DD/YYYY","DD/MM/YYYY"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"MM-YYYY",INTERVAL_VALUE:"M"},"M-yyyy":{FOR_DATE_SETTING:["MM/DD/YYYY","DD/MM/YYYY"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"M-YYYY",INTERVAL_VALUE:"M"},"yy-MM":{FOR_DATE_SETTING:["YYYY/MM/DD"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"YY-MM",INTERVAL_VALUE:"M"},"yy-M":{FOR_DATE_SETTING:["YYYY/MM/DD"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"YY-M",INTERVAL_VALUE:"M"},"yyyy-MM":{FOR_DATE_SETTING:["YYYY/MM/DD"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"YYYY-MM",INTERVAL_VALUE:"M"},"yyyy-M":{FOR_DATE_SETTING:["YYYY/MM/DD"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"YYYY-M",INTERVAL_VALUE:"M"},"[Month Name]-yy":{FOR_DATE_SETTING:["MM/DD/YYYY","DD/MM/YYYY"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"MMMM-YY",INTERVAL_VALUE:"M"},"[Month Name]-yyyy":{FOR_DATE_SETTING:["MM/DD/YYYY","DD/MM/YYYY"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"MMMM-YYYY",INTERVAL_VALUE:"M"},"yyyy-[Month Name]":{FOR_DATE_SETTING:["YYYY/MM/DD"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"YYYY-MMMM",INTERVAL_VALUE:"M"},"yy-[Month Name]":{FOR_DATE_SETTING:["YYYY/MM/DD"],GROUP_BY:"yearandmonth",MOMENT_OUTPUT:"YY-MMMM",INTERVAL_VALUE:"M"},"[Day Names of the Week], [Month Name] dd, yyyy":{FOR_DATE_SETTING:["MM/DD/YYYY"],GROUP_BY:"date",MOMENT_OUTPUT:"dddd, MMMM DD, YYYY",INTERVAL_VALUE:"d"},"[Day Names of the Week], [Month Name] d, yyyy":{FOR_DATE_SETTING:["MM/DD/YYYY"],GROUP_BY:"date",MOMENT_OUTPUT:"dddd, MMMM D, YYYY",INTERVAL_VALUE:"d"},Day:{GROUP_BY:"day",MOMENT_OUTPUT:"DD",INTERVAL_VALUE:"d"},Month:{GROUP_BY:"month",MOMENT_OUTPUT:"MM",INTERVAL_VALUE:"M"},Year:{GROUP_BY:"year",MOMENT_OUTPUT:"YYYY",INTERVAL_VALUE:"y"},"Month Name":{GROUP_BY:"month",MOMENT_OUTPUT:"MMMM",INTERVAL_VALUE:"M"},"Day of Week":{GROUP_BY:"weekday",MOMENT_OUTPUT:"dddd",INTERVAL_VALUE:"d"},Date:{GROUP_BY:"date",INTERVAL_VALUE:"d"},"Week Number":{GROUP_BY:"weeknumber",MOMENT_OUTPUT:"[Week] WW - YYYY",INTERVAL_VALUE:"w"},"yyyy - Qtr":{GROUP_BY:"yearandquarter",MOMENT_OUTPUT:"YYYY[ - Q]Q",INTERVAL_VALUE:"Q"},Qtr:{GROUP_BY:"quarter",MOMENT_OUTPUT:"[Q]Q",INTERVAL_VALUE:"Q"},"HH:mm tt (12-hour time)":{GROUP_BY:"time",MOMENT_OUTPUT:"hh:mm A",INTERVAL_VALUE:"m"},"H:mm tt (12-hour time)":{GROUP_BY:"time",MOMENT_OUTPUT:"h:mm A",INTERVAL_VALUE:"m"},"HH:mm (24-hour time)":{GROUP_BY:"time",MOMENT_OUTPUT:"HH:mm",INTERVAL_VALUE:"m"},"H:mm (24-hour time)":{GROUP_BY:"time",MOMENT_OUTPUT:"H:mm",INTERVAL_VALUE:"m"},"HH:mm:ss tt":{GROUP_BY:"time",MOMENT_OUTPUT:"hh:mm:ss A",INTERVAL_VALUE:"s"},"H:mm:ss tt":{GROUP_BY:"time",MOMENT_OUTPUT:"h:mm:ss A",INTERVAL_VALUE:"s"},"HH:mm:ss":{GROUP_BY:"time",MOMENT_OUTPUT:"HH:mm:ss",INTERVAL_VALUE:"s"},"H:mm:ss":{GROUP_BY:"time",MOMENT_OUTPUT:"H:mm:ss",INTERVAL_VALUE:"s"},"MM/dd/yyyy HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"MM/DD/YYYY hh:mm:ss A",INTERVAL_VALUE:"s"},"M/d/yyyy HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"M/D/YYYY hh:mm:ss A",INTERVAL_VALUE:"s"},"MM/dd/yy HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"MM/DD/YY hh:mm:ss A",INTERVAL_VALUE:"s"},"M/d/yy HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"M/D/YY hh:mm:ss A",INTERVAL_VALUE:"s"},"dd/MM/yyyy HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["DD/MM/YYYY"],MOMENT_OUTPUT:"DD/MM/YYYY hh:mm:ss A",INTERVAL_VALUE:"s"},"d/M/yyyy HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["DD/MM/YYYY"],MOMENT_OUTPUT:"D/M/YYYY hh:mm:ss A",INTERVAL_VALUE:"s"},"dd/MM/yy HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["DD/MM/YYYY"],MOMENT_OUTPUT:"DD/MM/YY hh:mm:ss A",INTERVAL_VALUE:"s"},"d/M/yy HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["DD/MM/YYYY"],MOMENT_OUTPUT:"D/M/YY hh:mm:ss A",INTERVAL_VALUE:"s"},"yyyy/MM/dd HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YYYY/MM/DD hh:mm:ss A",INTERVAL_VALUE:"s"},"yyyy/M/d HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YYYY/M/D hh:mm:ss A",INTERVAL_VALUE:"s"},"MM-yy HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"MM-YY hh:mm:ss A",INTERVAL_VALUE:"s"},"M-yy HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"M-YY hh:mm:ss A",INTERVAL_VALUE:"s"},"MM-yyyy HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"MM-YYYY hh:mm:ss A",INTERVAL_VALUE:"s"},"M-yyyy HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"M-YYYY hh:mm:ss A",INTERVAL_VALUE:"s"},"yy-MM HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YY-MM hh:mm:ss A",INTERVAL_VALUE:"s"},"yy-M HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YY-M hh:mm:ss A",INTERVAL_VALUE:"s"},"yyyy-MM HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YYYY-MM hh:mm:ss A",INTERVAL_VALUE:"s"},"yyyy-M HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YYYY-M hh:mm:ss A",INTERVAL_VALUE:"s"},"MM/dd/yyyy HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"MM/DD/YYYY HH:mm:ss",INTERVAL_VALUE:"s"},"M/d/yyyy HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"M/D/YYYY HH:mm:ss",INTERVAL_VALUE:"s"},"MM/dd/yy HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"MM/DD/YY HH:mm:ss",INTERVAL_VALUE:"s"},"M/d/yy HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"M/D/YY HH:mm:ss",INTERVAL_VALUE:"s"},"dd/MM/yyyy HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["DD/MM/YYYY"],MOMENT_OUTPUT:"DD/MM/YYYY HH:mm:ss",INTERVAL_VALUE:"s"},"d/M/yyyy HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["DD/MM/YYYY"],MOMENT_OUTPUT:"D/M/YYYY HH:mm:ss",INTERVAL_VALUE:"s"},"dd/MM/yy HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["DD/MM/YYYY"],MOMENT_OUTPUT:"DD/MM/YY HH:mm:ss",INTERVAL_VALUE:"s"},"d/M/yy HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["DD/MM/YYYY"],MOMENT_OUTPUT:"D/M/YY HH:mm:ss",INTERVAL_VALUE:"s"},"yyyy/MM/dd HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YYYY/MM/DD HH:mm:ss",INTERVAL_VALUE:"s"},"yyyy/M/d HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YYYY/M/D HH:mm:ss",INTERVAL_VALUE:"s"},"MM-yy HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"MM-YY HH:mm:ss",INTERVAL_VALUE:"s"},"M-yy HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"M-YY HH:mm:ss",INTERVAL_VALUE:"s"},"MM-yyyy HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"MM-YYYY HH:mm:ss",INTERVAL_VALUE:"s"},"M-yyyy HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"M-YYYY HH:mm:ss",INTERVAL_VALUE:"s"},"yy-MM HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"YY-MM HH:mm:ss",INTERVAL_VALUE:"s"},"yy-M HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"YY-M HH:mm:ss",INTERVAL_VALUE:"s"},"yyyy-MM HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YYYY-MM HH:mm:ss",INTERVAL_VALUE:"s"},"yyyy-M HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YYYY-M HH:mm:ss",INTERVAL_VALUE:"s"},"[Month Name]-yy HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"MMMM-YY hh:mm:ss A",INTERVAL_VALUE:"s"},"[Month Name]-yyyy HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"MMMM-YYYY hh:mm:ss A",INTERVAL_VALUE:"s"},"yyyy-[Month Name] HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YYYY-MMMM hh:mm:ss A",INTERVAL_VALUE:"s"},"yy-[Month Name] HH:mm:ss tt":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YY-MMMM hh:mm:ss A",INTERVAL_VALUE:"s"},"[Day Names of the Week], [Month Name] dd, yyyy HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"dddd, MMMM DD, YYYY hh:mm:ss A",INTERVAL_VALUE:"s"},"[Day Names of the Week], [Month Name] d, yyyy HH:mm:ss tt":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"dddd, MMMM D, YYYY hh:mm:ss A",INTERVAL_VALUE:"s"},"[Month Name]-yy HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"MMMM-YY HH:mm:ss",INTERVAL_VALUE:"s"},"[Month Name]-yyyy HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["DD/MM/YYYY","MM/DD/YYYY"],MOMENT_OUTPUT:"MMMM-YYYY HH:mm:ss",INTERVAL_VALUE:"s"},"yyyy-[Month Name] HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YYYY-MMMM HH:mm:ss",INTERVAL_VALUE:"s"},"yy-[Month Name] HH:mm:ss":{GROUP_BY:"yearmonthandtime",FOR_DATE_SETTING:["YYYY/MM/DD"],MOMENT_OUTPUT:"YY-MMMM HH:mm:ss",INTERVAL_VALUE:"s"},"[Day Names of the Week], [Month Name] dd, yyyy HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"dddd, MMMM DD, YYYY HH:mm:ss",INTERVAL_VALUE:"s"},"[Day Names of the Week], [Month Name] d, yyyy HH:mm:ss":{GROUP_BY:"dateandtime",FOR_DATE_SETTING:["MM/DD/YYYY"],MOMENT_OUTPUT:"dddd, MMMM D, YYYY HH:mm:ss",INTERVAL_VALUE:"s"}},GROUP_BY:{day:{SETTINGS_VALUE_TYPE:["value","rangeValue"],GROUP_BY_EXPECTED_FORMAT:"D",NUMBER_PICKER_PROPS:{min:1,max:31},RANGE_CYCLE:!0,COMPARE_FORMAT:"DD"},month:{SETTINGS_VALUE_TYPE:["value","rangeValue"],GROUP_BY_EXPECTED_FORMAT:"M",NUMBER_PICKER_PROPS:{min:1,max:12},RANGE_CYCLE:!0,COMPARE_FORMAT:"MM"},year:{SETTINGS_VALUE_TYPE:["value","rangeValue"],GROUP_BY_EXPECTED_FORMAT:"YYYY",COMPARE_FORMAT:"YYYY"},weekday:{SETTINGS_VALUE_TYPE:["value","rangeValue"],GROUP_BY_EXPECTED_FORMAT:"E",COMPARE_FORMAT:"E",DISPLAY_DATE_FORMAT:"dddd"},date:{SETTINGS_VALUE_TYPE:["value","rangeValue"],DATE_PICKER_PROPS:{time:!1,calendar:!0},GROUP_BY_EXPECTED_FORMAT:"YYYY-M-D",COMPARE_FORMAT:"YYYY-MM-DD",DEFAULT_FORMAT:{"YYYY/MM/DD":"yyyy/MM/dd","MM/DD/YYYY":"MM/dd/yyyy","DD/MM/YYYY":"dd/MM/yyyy"}},weeknumber:{SETTINGS_VALUE_TYPE:["value","rangeValue"],DATE_PICKER_PROPS:{time:!1,calendar:!0},GROUP_BY_EXPECTED_FORMAT:"YYYY-W",COMPARE_FORMAT:"YYYY-WW",DISPLAY_DATE_FORMAT:"[Week] WW - YYYY"},yearandquarter:{SETTINGS_VALUE_TYPE:["value","rangeValue"],DATE_PICKER_PROPS:{time:!1,calendar:!0,initialView:"year"},GROUP_BY_EXPECTED_FORMAT:"YYYY-Q",COMPARE_FORMAT:"YYYY-Q",DISPLAY_DATE_FORMAT:"YYYY-[Q]Q"},quarter:{SETTINGS_VALUE_TYPE:["value","rangeValue"],NUMBER_PICKER_PROPS:{min:1,max:4},GROUP_BY_EXPECTED_FORMAT:"Q",RANGE_CYCLE:!0,COMPARE_FORMAT:"Q"},yearandmonth:{SETTINGS_VALUE_TYPE:["value","rangeValue"],DATE_PICKER_PROPS:{time:!1,calendar:!0,initialView:"year"},DISPLAY_DATE_FORMAT:{"YYYY/MM/DD":"YYYY-MM","MM/DD/YYYY":"MM-YYYY","DD/MM/YYYY":"MM-YYYY"},GROUP_BY_EXPECTED_FORMAT:"YYYY-M",COMPARE_FORMAT:"YYYY-MM",DEFAULT_FORMAT:{"YYYY/MM/DD":"yy-MM","MM/DD/YYYY":"MM-yy","DD/MM/YYYY":"MM-yy"}},time:{SETTINGS_VALUE_TYPE:["value","rangeValue"],GROUP_BY_EXPECTED_FORMAT:"H:m:s",RANGE_CYCLE:!0,DATE_PICKER_PROPS:{time:!0,calendar:!1},COMPARE_FORMAT:"HH:mm:ss"},dateandtime:{SETTINGS_VALUE_TYPE:["value","rangeValue"],DATE_PICKER_PROPS:{time:!0,calendar:!0},GROUP_BY_EXPECTED_FORMAT:"YYYY-M-D H:m:s",COMPARE_FORMAT:"YYYY-MM-DDTHH:mm:ss",DEFAULT_FORMAT:{"YYYY/MM/DD":"yyyy/MM/dd HH:mm:ss tt","MM/DD/YYYY":"MM/dd/yyyy HH:mm:ss tt","DD/MM/YYYY":"dd/MM/yyyy HH:mm:ss tt"}},yearmonthandtime:{SETTINGS_VALUE_TYPE:["value"],DATE_PICKER_PROPS:{time:!0,calendar:!0},DISPLAY_DATE_FORMAT:{"YYYY/MM/DD":"YYYY-MM HH:mm:ss","MM/DD/YYYY":"MM-YYYY HH:mm:ss","DD/MM/YYYY":"MM-YYYY HH:mm:ss"},GROUP_BY_EXPECTED_FORMAT:"YYYY-M H:m:s",COMPARE_FORMAT:"YYYY-MMTHH:mm:ss",DEFAULT_FORMAT:{"YYYY/MM/DD":"yy-MM HH:mm:ss tt","MM/DD/YYYY":"MM-yy HH:mm:ss tt","DD/MM/YYYY":"MM-yy HH:mm:ss tt"}}},DAY_OF_WEEK_VALUES:[,7,1,2,3,4,5,6]},e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(80)),n=s(a(16)),i=s(a(43)),o=a(1),l=a(102);function s(e){return e&&e.__esModule?e:{default:e}}var u=/^m?p(\d+)value$/,d=a(18).FILTER_URL.OVERIDE_MASTER_REPORT_USE_USER_LOOKUP.REGEX,c={cap:!1};t.default={readSubReportQuery:function(e){var t=o.map.convert(c),a=o.pickBy.convert(c)(function(e,t){return(0,o.startsWith)("filters",(0,o.toLower)(t))}),r=t(function(e,t){return{key:(0,o.toLower)((0,o.replace)(/^filters(\[[0-9]+\])?_/,"",t)),value:e,linkReportFilter:!0}}),n={},i={filters:(0,o.flow)(a,r,(0,o.forEach)(function(e){u.test((0,o.toLower)(e.key))&&(n[(0,o.toLower)(e.key)]=e.value)}),(0,o.filter)(function(e){return!u.test((0,o.toLower)(e.key))}))(e),overridingFilterValue:n};return e.masterReportId&&(i=(0,o.assign)(i,{masterReportId:e.masterReportId,inheritMasterReportFilter:!0})),i},buildSubReportQuery:function(e,t){var a=(0,o.reject)((0,o.flow)((0,o.get)("key"),o.isNil)),r=(0,o.groupBy)("key"),n=(0,o.flatMap)(function(e){if(1===e.length){var t=e[0];return["filters_"+encodeURIComponent((0,o.toLower)(t.key))+"="+encodeURIComponent(t.value)]}return e.map(function(e,t){return"filters["+t+"]_"+encodeURIComponent((0,o.toLower)(e.key))+"="+encodeURIComponent(e.value)})}),i=(0,o.flow)(a,r,n)(e),l=t?"masterReportId="+t:"";return"?"+(0,o.flow)((0,o.concat)(i),o.compact,(0,o.join)("&"))([l])},convertFilterToQuery:function(e){if(!e)return null;var t=e.masterReportId,a=e.inheritMasterReportFilter,r=e.masterReportPartId,l=e.containerName,s=e.fieldsMapping,u=e.filters,d=e.overridingFilterValue,c={masterReportId:t,inheritFilter:a,masterReportPartId:r,containerName:l,tenantId:n.default.tenantId},p=["value","originalValue","dataFormat","function","dataType"];return(0,o.forEach)(function(e){var t=e.key,a={};p.forEach(function(r){var n=t+"_"+r,l=(0,o.get)(r,e);i.default.NeedToEncodeUrl||"value"!==r||(l=encodeURIComponent(l)),a=(0,o.set)(n,l,a)}),c=(0,o.merge)(c,a)},s),(0,o.forEach)(function(e){var t=e.key,a=e.value;c["field_"+t]=a},u),c=(0,o.merge)(c,d),c=(0,o.omitBy)(o.isUndefined,c)},convertQueryToFilter:function(e){if(!e)return null;var t=e.masterReportId||void 0,a=e.masterReportPartId||void 0,n=e.containerName||void 0,i=e.inheritFilter,s={masterReportId:t,masterReportPartId:a,containerName:n,inheritMasterReportFilter:"true"===i||void 0},p=[],f=[],h={},m=/^(fm(\d+)_(\d+))_(value|originalvalue|dataformat|function|datatype)$/,g=/^(field)_(.*)/;o.forOwn.convert(c)(function(e,i){if(e="null"===e?l.DEFAUFT_VALUE.NULL:e,d.test((0,o.toLower)(i))&&(h[(0,o.toLower)(i)]=!/false/.test((0,o.toLower)(e))),u.test((0,o.toLower)(i))&&(h[(0,o.toLower)(i)]=e),g.test(i)){var s=g.exec((0,o.toLower)(i));f.push({key:s[2],value:e})}if(a&&n&&t&&m.test((0,o.toLower)(i))){var c=m.exec((0,o.toLower)(i)),E=c[1],y=c[4],v=(0,o.find)(function(e){return e.key===E},p);v?v[y]=e:p.push((0,r.default)({key:E,linkReportFilter:!0},y,e))}},e);var E=function(e){return(0,o.isEmpty)(e)?void 0:e};return s.filters=E(f),s.fieldsMapping=E(p),s.overridingFilterValue=E(h),(0,o.omitBy)(o.isUndefined,s)}},e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p=a(576),f=(r=p)&&r.__esModule?r:{default:r};n=a(302),i=a(1),o=i.constant,l=i.uniqueId,s=i.identity,u=i.get,d=i.invoke,c=i.cloneDeep,e.exports={memoize:function(e,t){t=t||{};var a=(0,f.default)(null),r=n.getAccessToken(),i=t.resolver||(0===e.length?o(l("memoizeCache_")):s),p=!!u("persistent",t),h=t.timeOut||3e3;return function(){var t=n.getAccessToken();t!==r&&(a=(0,f.default)(null),r=t);var o=arguments,l=i.apply(this,arguments),s=a[l],u=function(){delete a[l]};return s&&!d("isRejected",s)?s.then(c):(a[l]=s=e.apply(this,o),s.then(function(){!p&&window.setTimeout(u,h)}).catch(u),s.then(c))}}}},,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={TABLE_REPORT:{height:400},TABLE_REPORT_PART:{height:180},TABLE_DEF_REPORT:{selectedIcon:{key:"selectedIcon",labelKey:"selectedIcon",width:30,fixed:!0,renderMethod:"renderRadioButton"},reportName:{columnKey:"reportname",key:"name",labelKey:"name",width:200,get title(){return i.default.getText("COMMON_LABEL_REPORT_NAME")},sortable:!0,renderMethod:"renderReportData"},saveInto:{columnKey:"isGlobal",key:"isGlobal",labelKey:"isGlobal",width:120,get title(){return i.default.getText("COMMON_LABEL_SAVE_INTO")},sortable:!0,renderMethod:"renderSaveInto"},category:{columnKey:"category",key:"categoryName",labelKey:"categoryName",width:120,get title(){return i.default.getText("COMMON_LABEL_CATEGORY")},sortable:!0,renderMethod:"renderReportData"},subCategory:{columnKey:"subCategory",key:"subCategoryName",labelKey:"subCategoryName",width:120,get title(){return i.default.getText("REPORT_PART_SELECTION_CONSTANTS_SUB_CATEGORY")},sortable:!0,renderMethod:"renderReportData"},createdBy:{columnKey:"createdBy",key:"createdBy",labelKey:"createdBy",width:105,get title(){return i.default.getText("COMMON_CRITERIA_CREATED_BY")},sortable:!0,renderMethod:"renderReportData"},created:{columnKey:"createdDate",key:"created",labelKey:"created",width:120,get title(){return i.default.getText("COMMON_CRITERIA_CREATED_DATE")},sortable:!0,fixed:!0,renderMethod:"renderReportData"},modifiedBy:{columnKey:"lastEditedBy",key:"modifiedBy",labelKey:"modifiedBy",width:125,get title(){return i.default.getText("COMMON_CRITERIA_EDITED_BY")},sortable:!0,renderMethod:"renderReportData"},modified:{columnKey:"lastEditedDate",key:"modified",labelKey:"modified",width:135,get title(){return i.default.getText("COMMON_CRITERIA_EDITED_DATE")},sortable:!0,fixed:!0,renderMethod:"renderReportData"}},TABLE_DEF_REPORT_PART:{selectedIcon:{key:"selectedIcon",labelKey:"selectedIcon",width:30,fixed:!0},reportPartTitle:{columnKey:"title",key:"title",labelKey:"title",width:400,get title(){return i.default.getText("REPORT_PART_SELECTION_CONSTANTS_REPORT_PART_TITLE")},sortable:!0},reportPartTypeName:{columnKey:"reportPartTypeName",key:"reportPartTypeName",labelKey:"reportPartTypeName",width:400,get title(){return i.default.getText("REPORT_PART_SELECTION_CONSTANTS_REPORT_PART_TYPE")},sortable:!0}},TYPE:{REPORT:"report",REPORT_PART:"report part"}},e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(1),r=t.get,n=t.isNil,i=t.isEmpty,o=a(18),l=a(109).DATE_TIME_FORMAT,s=a(48),u=a(227).GROUP_BY;e.exports={previewDataTypeByFunction:function(e,t){return e.formatDataType||t},getDateTimeFormatData:function(e,t,a){if((r("formatDataType",t)||e)===o.DATA_TYPES.DATE_TIME){var n=r("groupBy",a),i=r(n,u);return{groupBy:n,settingByGroupBy:i,dataFormat:r("name",t)===s.FUNCTION.GROUP.NAME&&r("GROUP_BY_EXPECTED_FORMAT",i)||l,compareFormat:r("COMPARE_FORMAT",i)||l}}return null},checkUsingCustomFormat:function(e){var t=r("reportPartElm.properties.dataFormattings.format.format",e),a=r("reportPartElm.properties.dataFormattings.format.formatId",e);return!n(a)&&(i(t)||n(t))},checkUsingCustomStringFormat:function(e){var t=r("reportPartElm.properties.dataFormattings.format.jsFormatString",e);return!n(t)||!i(t)}}}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=y(a(6)),l=y(a(2)),s=y(a(3)),u=y(a(7)),d=y(a(8)),c=a(0),p=y(c),f=y(a(13)),h=y(a(212)),m=a(1),g=y(a(12)),E=y(a(34));function y(e){return e&&e.__esModule?e:{default:e}}var v=(n=r=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));i.call(a);var r=a.props.value||{};return a.state={textColor:r.textColor,backgroundColor:r.backgroundColor,alpha:r.alpha,isAlpha:r.isAlpha},a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.value||{};this.setState({textColor:t.textColor,backgroundColor:t.backgroundColor,alpha:t.alpha})}},{key:"render",value:function(){var e=this.state,t=this.props,a=t.options,r=t.className;return p.default.createElement("div",{className:r},!(0,m.isNil)(a.text)&&this.renderColorPicker(e.textColor,"textColor","icon-font",g.default.getText("COLOR_STYLING_TEXT_TOOLTIP"),e.alpha),!(0,m.isNil)(a.background)&&this.renderColorPicker(e.backgroundColor,"backgroundColor","icon-tint",g.default.getText("COLOR_STYLING_BACKGROUND_TOOLTIP"),e.alpha))}}]),t}(c.Component),r.propTypes={value:f.default.object,options:f.default.object,type:f.default.string,onChangeColor:f.default.func,disabled:f.default.bool},r.defaultProps={value:{textColor:E.default.textColor,backgroundColor:E.default.backgroundColor,alpha:E.default.alpha,isAlpha:E.default.isAlpha},options:{text:!0,background:!0}},i=function(){var e=this;this.renderColorPicker=function(t,a,r,n,i){var o=e.props,l=a===E.default.COLOR_TYPE.BACKGROUND_COLOR&&e.state.isAlpha||!1;return p.default.createElement(h.default,{color:t,disabled:o.disabled,iconName:r,type:o.type,position:o.position,onChange:function(t,r){var n={};n[a]=t,n.alpha=r,e.setState(n,function(){o.onChange&&o.onChange({value:e.state},{keyChange:a})})},title:n,alpha:i,isAlpha:l})}},n);t.default=v,e.exports=t.default},function(e,t,a){"use strict";var r,n=a(14),i=(r=n)&&r.__esModule?r:{default:r};!function(){var t=a(0),r=a(9).observer,n=a(4),o=a(215),l=a(214),s=a(1).invoke;e.exports={wrapper:function(e){var a=r(t.createClass({displayName:"ReportDesignerWidget",propTypes:{propsEditors:t.PropTypes.array,checkRegistedItem:t.PropTypes.func,beforeShowProps:t.PropTypes.func,showPropOnMount:t.PropTypes.func,isRerenderOnActive:t.PropTypes.bool},isShowingPropsEditor:function(){var e=this.props.propsEditors;return l.isShowingPropsEditor(e)},getShowingComponentInfo:function(){var e=this.props.propsEditors;return l.getShowingComponentInfo(e)},componentDidUpdate:function(){var e=this.props;this.isShowingPropsEditor()&&e.afterActiveEditor&&e.afterActiveEditor()},render:function(){var a=this.props,r=this.props.checkRegistedItem,n=s("isShowingPropsEditor",this);return this.isRegistedItem=n&&(!r||r(this.getShowingComponentInfo())),t.createElement(e,(0,i.default)({},a,{isRegistedItem:this.isRegistedItem,onClick:this.onClick,isShowingPropsEditor:this.isShowingPropsEditor,getShowingComponentInfo:this.getShowingComponentInfo}))},onClick:function(){var e=this.props,t=e.propsEditors;return e.onClick&&e.onClick.apply(this,arguments),o.switchToEditor(this,e,t)}})),u=e.displayName||e.name;return u&&(a.displayName="ReportDesignerWidget("+u+")"),n({toClass:!0})(a)}}}()},function(e,t,a){"use strict";(function(t,r){var n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T=a(14),_=(n=T)&&n.__esModule?n:{default:n};i=a(0),o=a(10),l=a(5),s=a(9).observer,u=a(1),d=u.omit,c=u.each,p=u.concat,f=u.find,h=u.castArray,m=u.chain,g=u.isNil,E=u.isString,u.invoke,y=d,(v=i.createClass({displayName:"CollapsibleList",propTypes:{autoCollapse:i.PropTypes.bool,defaultExpand:i.PropTypes.bool,afterToggleCallback:i.PropTypes.func},getDefaultProps:function(){return{autoCollapse:!0,defaultExpand:!1}},render:function(){return i.createElement("div",(0,_.default)({},y(["children","autoCollapse","defaultExpand","afterToggleCallback"],this.props),{"data-container":"true"}),this.renderItems())},renderItems:function(){var e=c(function(e){return"Item"===e.type});return t(e(this.props.children),"Child item of CollapsibleList must be CollapsibleList.Item"),h(this.props.children).map(function(e){return i.cloneElement(e,{autoCollapse:this.props.autoCollapse,defaultExpand:this.props.defaultExpand,afterToggleCallback:this.props.afterToggleCallback})}.bind(this))}})).Item=s(i.createClass({displayName:"Item",getDefaultProps:function(){return{autoCollapse:!0,defaultExpand:!1}},componentWillMount:function(){this.defaultExpand=this.props.itemExpanded||!!this.props.defaultExpand,this.observableProps=l.observable({expanded:this.defaultExpand})},componentDidMount:function(){this.defaultExpand=!1},render:function(){var e=this.renderChildByType("ItemHeader"),t=this.renderChildByType("ItemBody",!0),a=i.cloneElement(e,{expanded:this.observableProps.expanded,autoCollapse:this.props.autoCollapse,toggleCollapse:this.toggleCollapse}),r=t?i.cloneElement(t,{expanded:this.observableProps.expanded,defaultExpand:this.defaultExpand,afterToggleCallback:this.props.afterToggleCallback,ref:"itemBody"}):void 0,n=y(["children","autoCollapse","defaultExpand","itemExpanded","toggleCollapse","expanded","afterToggleCallback"],this.props);return i.createElement("div",(0,_.default)({},n,{"aria-expanded":this.observableProps.expanded}),a,r)},renderChildByType:function(e,a){var r=f(function(t){return t.type.displayName===e})(p([],this.props.children));return t(a||r,"CollapsibleList.Item must have %s",e),r},toggleCollapse:l.action(function(){this.refs.itemBody&&this.refs.itemBody.collapse(this.observableProps)})})),v.ItemHeader=i.createClass({displayName:"ItemHeader",render:function(){var e=this.props,t=m(e.children).castArray().filter(function(e){return!g(e)}).value(),a=y(["children","expanded","autoCollapse","toggleCollapse","afterToogleCallback"],e);return i.createElement("div",(0,_.default)({onClick:e.autoCollapse?e.toggleCollapse:null,"aria-expanded":e.expanded},a),t.map(function(t){return E(t.type)?t:i.cloneElement(t,{toggleCollapse:e.toggleCollapse})}))}}),v.ItemBody=i.createClass({displayName:"ItemBody",componentWillMount:function(){this.defaultExpand=this.props.defaultExpand,this.animationStatus=!1},componentWillUnmount:function(){this.dom&&r(this.dom).off("hide.bs.collapse show.bs.collapse hidden.bs.collapse shown.bs.collapse")},setDom:function(e){this.dom&&this.dom!==e&&(r(this.dom).off("hide.bs.collapse show.bs.collapse hidden.bs.collapse shown.bs.collapse"),this.endAnimation()),this.dom=e,e&&r(e).off("hide.bs.collapse show.bs.collapse hidden.bs.collapse shown.bs.collapse").on("hide.bs.collapse show.bs.collapse",this.startAnimation).on("hidden.bs.collapse shown.bs.collapse",this.endAnimation)},render:function(){var e=this.props,t=o(e.className,"collapse",{in:this.defaultExpand}),a=y(["children","className","defaultExpand","toggleCollapse","expanded","afterToggleCallback"],e);return i.createElement("div",(0,_.default)({className:t,ref:this.setDom,"aria-expanded":e.expanded},a),e.children)},startAnimation:function(){this.animationStatus=!0},endAnimation:function(){this.animationStatus=!1},collapse:function(e){this.defaultExpand=!1;var t=this.props,a=t.afterToggleCallback,n=t.expanded,i=t.data;if(a&&a(!n,i),!this.animationStatus){var o=e.expanded=!e.expanded;r(this.dom).collapse(o?"show":"hide")}}}),e.exports=v}).call(t,a(42),a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=g(a(6)),l=g(a(2)),s=g(a(3)),u=g(a(7)),d=g(a(8)),c=a(0),p=g(c),f=g(a(2110)),h=a(61),m=g(a(10));function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,g(a(4)).default)()((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"renderConfig",value:function(){var e=this.props.reportPart,t=this.props.localization,a=(0,m.default)(this.props.className,"report-part-title");return p.default.createElement("div",{className:a},p.default.createElement(f.default,{reportPart:e,dataKey:"previewTitle",title:t.getText("REPORTDESIGNER_LABEL_TITLE_SETTINGS")}),p.default.createElement(f.default,{reportPart:e,dataKey:"description",title:t.getText("REPORTDESIGNER_LABEL_DESCRIPTION_SETTINGS")}))}},{key:"renderPreview",value:function(){var e=this.props.reportPart,t=i("previewTitle"),a=i("description"),r=(0,m.default)(this.props.className,"u_textBreak");return p.default.createElement("div",{className:r},p.default.createElement("div",{style:t.gridStyle},p.default.createElement("span",{style:t.spanStyle},n("previewTitle"))),p.default.createElement("div",{style:a.gridStyle},p.default.createElement("span",{style:a.spanStyle},n("description"))));function n(t){var a=e.getDataValueByKey&&e.getDataValueByKey(t);return a&&a.text}function i(t){var a=e[t]&&e[t].settings||{},r=a.font||{},n=a.alignment&&a.alignment.alignment;return{gridStyle:{fontFamily:r.family,fontSize:r.size+"px",fontWeight:r.bold?"bold":"normal",textAlign:n||"none",textDecoration:r.underline?"underline":"none",fontStyle:r.italic?"italic":"normal",color:r.color},spanStyle:{backgroundColor:r.highlightColor}}}}},{key:"render",value:function(){return this.props.mode===h.REPORT_PART_MODE.CONFIG?this.renderConfig():this.renderPreview()}}]),t}(c.Component),n.propTypes={mode:c.PropTypes.oneOf([h.REPORT_PART_MODE.CONFIG,h.REPORT_PART_MODE.PREVIEW]),reportPart:c.PropTypes.object},r=i))||r;t.default=E,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o;r=a(34),n=a(0),i=a(115),o=n.createClass({displayName:"Thinkness",propTypes:{value:n.PropTypes.number,onChange:n.PropTypes.func,disabled:n.PropTypes.bool},getInitialState:function(){return{value:this.props.value||r.borderWidth}},onValueChange:function(e){var t=this.props;this.setState({value:e}),t.onChange&&t.onChange({value:e})},componentWillReceiveProps:function(e){this.setState({value:e.value})},render:function(){return n.createElement("div",{className:"thinkness input-group"},n.createElement(i,{value:this.state.value,onChange:this.onValueChange,min:r.borderWidthMin,max:r.borderWidthMax,disabled:this.props.disabled}),n.createElement("div",{className:"input-group-addon"},"px"))}}),e.exports=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(90)),n=s(a(76)),i=s(a(230)),o=s(a(259)),l=a(1);function s(e){return e&&e.__esModule?e:{default:e}}var u="dashboard/",d=function(e,t){var a=(0,l.getOr)(null,"criteria",t),n=(0,l.getOr)((0,l.uniqueId)(),"commonFilterName",t),i=(0,l.getOr)(null,"dashboard.commonFilterFields",t),o=(0,l.getOr)(0,"skipItems",t);return e+"_"+n+"_"+(i?(0,r.default)(i):(0,l.uniqueId)())+"_"+(0,r.default)(a)+"_"+o},c={loadAllCategories:function(e){return e=(0,l.isNil)(e)?"":e,(0,n.default)(u+"categories/"+e).get()},loadLazyLoadCategories:function(e){return(0,n.default)(u+"allowedSavingCategories").post(e)},loadLazyLoadSubcategories:function(e){return(0,n.default)(u+"allowedSavingSubCategories").post(e)},getSubCategories:function(e){return(0,n.default)(u+"subcategories")},searchCategories:function(e){return(0,n.default)(u+"search").post(e)},lazyLoadingSearchCategories:function(e){return(0,n.default)(u+"search2").post(e)},validateCategoryName:function(e){return(0,n.default)(u+"category").post(e)},deleteDashboard:function(e){return(0,n.default)(u+e).delete()},deleteReportCategory:function(e){return(0,n.default)(u+"category/"+e).delete()},loadSubscription:function(e,t,a,r){var i={dashboardId:a,isSubscription:r,tenantId:e,criteria:(t=t||{}).searchCriteria||[],pageIndex:t.pageIndex||1,pageSize:t.pageSize||10,sortOrders:t.sortOrders||[{key:"name",descending:!0}]};return(0,n.default)(u+"loadSubscriptions").post(i)},fetchEmailTemplates:function(e){return(0,n.default)(u+"emailTemplates/"+e).get()},validateSubscription:function(e,t){var a={subscription:(0,l.omit)(["reportFilter"],e),commonFilterFields:t};return(0,n.default)(u+"subscription/validate").post(a)},loadFilterDataSource:function(e){return(0,n.default)(u+"loadFilterComparisonFields").post(e)},loadFilterFieldData:function(e){return(0,n.default)(u+"loadFilterFieldData").post(e)},loadPartialFilterFieldData:i.default.memoize(function(e){return(0,n.default)(u+"loadPartialFilterFieldData").post(e)},{timeOut:3e4,resolver:function(e){return d("loadPartialFilterFieldData",e)}}),loadFilterFieldDataAsTree:i.default.memoize(function(e){return(0,n.default)(u+"loadFilterFieldDataAsTree").post(e)},{timeOut:3e4,resolver:function(e){return d("loadFilterFieldDataAsTree",e)}}),loadPartialFilterFieldDataAsTree:i.default.memoize(function(e){return(0,n.default)(u+"loadPartialFilterFieldDataAsTree").post(e)},{timeOut:3e4,resolver:function(e){return d("loadPartialFilterFieldDataAsTree",e)}}),loadDashboardCategories:function(e,t){return t=!(0,l.isNil)(t)&&t,(0,n.default)(u+"list?includeHashCode="+t).post(e)},lazyLoadingDashboards:function(e,t){return t=!(0,l.isNil)(t)&&t,(0,n.default)(u+"list2?includeHashCode="+t).post(e)},moveDashboard:function(e){return(0,n.default)(u+"move").post(e)},renameDashboard:function(e){return(0,n.default)(u+"rename").post(e)},copyDashboard:function(e){return(0,n.default)(u+"copy").post(e)},validateDashboardName:function(e){return(0,n.default)(u+"validateDashboardName").post(e)},loadDashboard:function(e){return(0,n.default)(u+"loadDashboard").post(e)},loadCommonFilters:function(e){return(0,n.default)(u+"loadCommonFilters").post(e)},loadFilterDescription:function(e){return(0,n.default)(u+"loadFilterDescription").post(e)},loadDashboardPartData:function(e){return(0,n.default)(u+"loadDashboardPartData").post(e)},previewDashboardPartData:function(e){return(0,n.default)(u+"previewDashboardPartData").post(e)},saveDashboard:function(e){return(0,n.default)(u).post(e)},saveSubscriptions:function(e){return(0,n.default)(u+"subscriptions").post(e)},loadDashboardPartDefinition:function(e){return(0,n.default)(u+"dashboardPart/"+e).get()},loadAccesses:function(e,t,a){var r={dashboardId:e,criteria:(a=a||{}).searchCriteria||[],pageIndex:a.pageIndex||1,pageSize:a.pageSize||10,sortOrders:a.sortOrders||[{key:"all",descending:!0}]};return(0,n.default)(u+"loadAccesses").post(r)},validateAccesses:function(e){return(0,n.default)(u+"accesses/validate").post(e)},validateDashboard:function(e){return(0,n.default)(u+"validate").post(e)},getAllowedSavingCategories:function(e){return e=(0,l.isNil)(e)?"":e,(0,n.default)(u+"allowedSavingCategories/"+e).get()},updateRenderingTime:function(e,t){var a={id:e,renderingTime:t};return(0,n.default)(u+"updateRenderingTime").post(a)},getCommonFilterById:function(e){return(0,n.default)(u+"commonFilters/"+e).get()},saveDraftDataForPrint:function(e){return(0,n.default)(u+"draft").post(e)},getDraftDataForPrint:function(e){return(0,n.default)(u+"draft/"+e).get()},loadLazyLoadingCategories:function(e){return(0,n.default)(u+"categories/").post(e)},validateGlobalDashboard:function(e){return(0,n.default)(u+"validateGlobalDashboard").post(e)},loadRelatedDashboardParts:function(e){return(0,n.default)(u+"loadRelatedDashboardParts/"+e).get()}};o.default.linkToLoadingProgress(c,{deleteDashboard:{allowToCancel:!1},deleteReportCategory:{allowToCancel:!1},moveDashboard:{allowToCancel:!1},renameDashboard:{allowToCancel:!1},copyDashboard:{allowToCancel:!1},saveDashboard:{allowToCancel:!1},saveSubscriptions:{allowToCancel:!1},lazyLoadingDashboards:{allowToCancel:!1},loadLazyLoadingCategories:{allowToCancel:!1}}),t.default=c,e.exports=t.default},,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=C(a(17)),l=C(a(6)),s=C(a(2)),u=C(a(3)),d=C(a(7)),c=C(a(8)),p=a(0),f=C(p),h=a(5),m=C(a(10)),g=a(1),E=C(a(305)),y=C(a(392)),v=C(a(12)),T=C(a(16)),_=C(a(41)),S=C(a(280));C(a(33));function C(e){return e&&e.__esModule?e:{default:e}}var b,N,A,R,O,I,D=(0,a(59).exportClass)("ChartSettingsContainer")((n=function(e){function t(){var e,a,r,n,u,c,p,f;(0,s.default)(this,t);for(var h=arguments.length,m=Array(h),g=0;g1&&void 0!==arguments[1]&&arguments[1],r=arguments[2];(0,o.default)(this,e),this.type=t,this.factories=new i.default,this.cache=a?new i.default:null,this.cacheKeyResolver=r}return(0,l.default)(e,[{key:"register",value:function(e,t){this.factories.set(e,t)}},{key:"containKey",value:function(e){return this.factories.has(e)}},{key:"containBaseKey",value:function(e){var t=null;return this.factories.forEach(function(a,r){!t&&(0,s.startsWith)(e,r)&&(t=r)}),!!t}},{key:"values",value:function(){return[].concat((0,n.default)(this.factories.values()))}},{key:"unregister",value:function(e){this.factories.delete(e),this.cache&&this.cache.delete(e)}},{key:"reset",value:function(){this.factories.clear(),this.cache&&this.cache.clear()}},{key:"create",value:function(e){r(this.factories.has(e),e+" must be defined as a "+this.type);for(var t=arguments.length,a=Array(t>1?t-1:0),n=1;n2?a-2:0),n=2;n=0)throw new Error("loading instance is watched");_.push({instance:e,fetchingPromise:[],loadingConfig:t.observable({allowToCancel:null})})},removeLoadingWatcher:function(e){var t=C(e);if(t<0)throw new Error("loading instance is not added");n(_[t].fetchingPromise)||(S.fetchingPromise=[],S.loadingConfig.allowToCancel=null),_.splice(t,1)},cancelLoading:function(e){var t=C(e);function a(e){n(e.fetchingPromise)||(e=S);var t=e.fetchingPromise;s(function(e){c("cancel",e)},t),t.splice(0,t.length),e.loadingConfig.allowToCancel=null}t<0&&s(a,_),a(l(t,_))},allowToCancelGlobalProgress:function(e){var t=C(e);if(t<0)return!1;var a=l(t,_),r=n(a.fetchingPromise),i=(n(S.fetchingPromise),s(a)),o=s(S);return r>0?i:o;function s(e){return u(!1,"allowToCancel",e.loadingConfig)}}}}()},function(e,t,a){"use strict";var r;r=a(1658)({callOnAdd:!1}),e.exports=r},,,,function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(1).assignAll,n=a(0).PropTypes,i=a(1738),o=a(1739),l=a(1742),s=a(106),u=a(40),d=a(12),c=a(1745),e.exports={validationShape:{validation:n.object.isRequired},loaderShape:{loader:n.object.isRequired},dialogsShape:{dialogs:n.object.isRequired},authorizationShape:{authorization:n.object.isRequired},authorizationConstantsShape:{authorizationConstants:n.object.isRequired},localizationShape:{localization:n.object.isRequired},exportLoaderShape:{exportLoader:n.object.isRequired},createValidationContext:function(){return{validation:new o}},createLoaderContext:function(){return{loader:new i}},createExportLoaderContext:function(){return{exportLoader:new c}},createDialogsContext:function(){return{dialogs:new l}},createAppContextShape:function(){return r([this.validationShape,this.loaderShape,this.dialogsShape,this.authorizationShape,this.authorizationConstantsShape,this.localizationShape,this.exportLoaderShape])},createAuthorizationContext:function(){return{authorization:new s}},createAuthorizationConstantsContext:function(){return{authorizationConstants:u}},createLocalizerContext:function(){return{localization:d}},createAppContext:function(){var e=this.createValidationContext(),t=this.createLoaderContext(),a=this.createDialogsContext(),n=this.createAuthorizationContext(),i=this.createAuthorizationConstantsContext(),o=this.createLocalizerContext(),l=this.createExportLoaderContext();return r([e,t,a,n,i,o,l])}}},,,function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n=a(20);t.default=function(e,t,a,_){var S=_.configField,C=void 0===S?{}:S,b=_.authorization,N=_.authorizationConstants.PERMISSION_KEY,A=t.configReportPart||{},R=(t.reportFields||{}).reportFilter||{},O=A.reportPartContent||{},I=(0,M.get)("fieldContainerDetails.name",_);return r(!!t,"reportDesignerModel must be set"),{definedSchema:(0,M.cloneDeep)(l.default),UPDATE_DATA_BY_KEY_CHANGE:["function","subTotal","grandTotal","format","sort","fieldNameAlias","fieldItemVisible","embeddedJavascript"],widgets:B,source:C,mappingProps:{fieldStore:_.fieldStore,stypeOptions:o.DRIL_DOWN_STYLE_OPTIONS,changeFieldNameAlias:function(e,t){R.updateAggregatedFieldReportFieldAlias(t,e.value,A.headerTitle),A.updateContentWithFieldName&&A.updateContentWithFieldName(t,e.value)},beforeChangeFormat:function(e,t){var a=(0,M.getOr)({},(0,M.get)("format",t),T.DATE_TIME_FORMAT),r=(0,M.getOr)({},(0,M.get)("fieldFormatData",t),T.DATE_TIME_FORMAT);if(a.INTERVAL_VALUE!==r.INTERVAL_VALUE&&C.properties.changeFunctionFormatAction&&C.properties.changeFunctionFormatAction(),e&&(0,M.isNil)(e.value)){var i=arguments;return f.default.getDefaultFormat(C).then(function(e){return e?[{value:(0,M.get)("id",e)},e]:i})}return(0,n.resolve)(arguments)},beforeChangeFunction:function(e,t){var a=(0,M.getOr)(null,"value",e),r=(0,M.getOr)(null,"name",t),o=_.fieldContainerDetails,l=arguments,u=O.validateFunction(o,t),d=_.confirmMessage;C.properties.changeFunctionFormatAction&&C.properties.changeFunctionFormatAction();return function(e){var t=e.configField,a=e.fieldStore.reportFilters.filterFields;if(t.isAggregatedField){var r=(0,M.filter)(function(e){return!(0,M.isNil)(e.reportPartTitle)},a);if(!(0,M.isEmpty)(r))return e.confirmFn("Confirmation",{description:i.default.MESSAGES.M06})}return(0,n.resolve)()}(_).then(function(){if(!u.status&&u.useDefaultFunction)return function(e,t,a){return f.default.getDefaultFunctionFormat(e,t,a).then(function(e){var t=e.functionData,r=e.defaultFunctionConfig||{};return r.ON_NULL_FUNCTION===s.ERROR_TYPE.ERROR_MESSAGE?d("error",String.format(s.MESSAGES.M10,a.field.fieldName)):r.ON_NULL_FUNCTION===s.ERROR_TYPE.NOTIFY&&d("error",s.MESSAGES.M08),t?(t.defaultFormat=e.formatData?{formatId:e.formatData.id,format:e.formatData.format,groupBy:e.formatData.groupBy,formatDataType:e.formatData.formatDataType}:"",[{value:t.id},t]):l})}(O,o,C);var e=l[1],t=l[0];return f.default.getDefaultFormat(C,e).then(function(n){return n&&((e=e||{}).defaultFormat={formatId:n.customId,format:n.format,groupBy:n.groupBy,formatDataType:n.formatDataType}),f.default.updateThresholdFunction(C,a,r,O),[t,e]})})},beforeChangeSorting:function(e,t){return h.default.isBinary(C.field.dataFieldType)?(_.confirmMessage("error",i.default.MESSAGES.M08),(0,n.reject)()):(0,n.resolve)()},afterOnChangeSubTotal:function(e,t){e.functionName&&C.properties.setSortValue(t.value)},canUnsort:function(){return O.checkCanUnsort&&O.checkCanUnsort(_.fieldContainerDetails)},resetDefaultAlternativeText:function(){C.resetDefaultAlternativeText&&C.resetDefaultAlternativeText(),O.updateHTMLCodeFieldContent&&O.updateHTMLCodeFieldContent(C)},resetDefaultCustomURL:function(){C.resetDefaultCustomURL&&C.resetDefaultCustomURL(),O.updateHTMLCodeFieldContent&&O.updateHTMLCodeFieldContent(C)},resetDefaultSubReport:function(){C.resetDefaultSubReport&&C.resetDefaultSubReport(),O.updateHTMLCodeFieldContent&&O.updateHTMLCodeFieldContent(C)},resetDefaultEmbeddedJavascript:function(){C.resetDefaultEmbeddedJavascript&&C.resetDefaultEmbeddedJavascript(),O.updateHTMLCodeFieldContent&&O.updateHTMLCodeFieldContent(C)},resetDefaultSubTotal:(0,c.action)(function(){C.resetDefaultSubTotal&&C.resetDefaultSubTotal(),O.updateHTMLCodeFieldContent&&O.updateHTMLCodeFieldContent(C),A.shouldUpdatePreview&&_.fieldStore.needUpdatePreview(A)}),resetDefaultGrandTotal:(0,c.action)(function(){C.resetDefaultGrandTotal&&C.resetDefaultGrandTotal(),O.updateHTMLCodeFieldContent&&O.updateHTMLCodeFieldContent(C),A.shouldUpdatePreview&&_.fieldStore.needUpdatePreview(A)}),fnResetTextDefaultValue:function(){C.resetTextDefaultValue&&C.resetTextDefaultValue(),O.updateHTMLCodeFieldContent&&O.updateHTMLCodeFieldContent(C)},fnResetCellDefaultValue:function(){C.resetCellDefaultValue&&C.resetCellDefaultValue(),O.updateHTMLCodeFieldContent&&O.updateHTMLCodeFieldContent(C)},hasSettingAlternativeText:function(){return!(0,M.isEqual)((0,c.toJS)(C.properties.dataFormattings.alternativeText),m.DEFAULT_PROPERTIES_VALUE.dataFormattings.alternativeText)},getAlternativeText:function(){return(0,c.toJS)(C.properties.dataFormattings.alternativeText)||m.DEFAULT_PROPERTIES_VALUE.dataFormattings.alternativeText},getCustomUrl:function(){var e=(0,M.getOr)({},"properties.dataFormattings.customURL",C);return(0,M.pick)(["url","option","selectedIconValue","viewSettingByLink"],e)},hasSettingCustomURL:function(){return!!C.properties.dataFormattings.customURL.url},getEmbeddedScript:function(){var e=(0,M.getOr)({},"properties.dataFormattings.embeddedJavascript",C);return(0,M.pick)(["script","selectedIconValue","viewSettingByLink"],e)},hasSettingEmbeddedJavascript:function(){return!!C.properties.dataFormattings.embeddedJavascript.script},getSubReport:function(){var e=(0,M.getOr)({},"properties.drillDown.subReport",C);return(0,M.pick)(["style","selectedReport","reportPartUsed","reportFilter","mappingFields","selectedIconValue","viewSettingByLink"],e)},hasSettingSubReport:function(){return!!(0,M.getOr)({},"properties.drillDown.subReport",C).selectedReport},hasSettingSubTotal:function(){var e=(0,M.getOr)({},"properties.dataFormattings.subTotal",C);return!(0,M.isEmpty)(e.label)},hasSettingGrandTotal:function(){var e=(0,M.getOr)({},"properties.dataFormattings.grandTotal",C);return!(0,M.isEmpty)(e.label)},getDataSubTotal:function(){var e=C.properties.dataFormattings.subTotal;return e.querySourceId=C.field.querySouceId,e.fieldDataType=C.field.dataFieldType,e.previewRecord=t.previewRecord,e},getDataGrandTotal:function(){var e=C.properties.dataFormattings.grandTotal;return e.querySourceId=C.field.querySouceId,e.fieldDataType=C.field.dataFieldType,e.previewRecord=t.previewRecord,e},getDataTypeTextCellColor:function(){return{dataType:(0,M.get)("previewDataType",C),dateTimeFormatData:(0,M.get)("dateTimeFormatData",C),settingValue:(0,c.toJS)(C.properties.dataFormattings.color)}},getDateTimeFormatData:function(){return(0,M.get)("dateTimeFormatData",C)},getSortValue:function(){return C.properties.dataFormattings},getWordWrapValue:function(){return C.properties.headerFormating},isEmptySortValue:function(e){return!0},getSortList:function(){return O.checkCanUnsort&&!O.checkCanUnsort(_.fieldContainerDetails,_.configField)?(0,M.map)((0,M.omit)(["headerIcon"]),[s.SORT_ORDERS.ASC,s.SORT_ORDERS.DESC]):(0,M.map)((0,M.omit)(["headerIcon"]),[s.SORT_ORDERS.Unsorted,s.SORT_ORDERS.ASC,s.SORT_ORDERS.DESC])}},mappingSource:{getWidthValue:function(){return C.properties.dataFormattings},getHeightValue:function(){return C.properties.headerFormating},getFieldName:function(){return C.field&&C.field.visible?C.field.fieldName:i.default.FIELD_HIDDEN_LABEL},getFieldNameAlias:function(){return C.field&&C.field.visible?C.field.fieldNameAlias:i.default.FIELD_HIDDEN_LABEL},getDataType:function(){return C.previewDataType},isHiddenFunction:function(){var e=C&&C.getValueByKey("dataFieldType")||{};return!!(A.reportPartContent.type===o.REPORT_PART_TYPE.Chart&&(0,M.includes)(A.reportPartContent.chartType,[p.CHART_TYPE.Column,p.CHART_TYPE.Area,p.CHART_TYPE.Bar])&&A.reportPartContent.properties.optionByType&&A.reportPartContent.properties.optionByType.izRange&&"values"===_.fieldContainerDetails.name)||"LargerObject"===e},isVerticalHeaderHeightHidden:function(){return!(0,M.getOr)(!1,"properties.headerFormating.verticalHeader",C)},isHiddenCustomURL:function(){return b&&!b.checkPrivileges([N.ReportsFieldPropertiesCustomURL])},isHiddenEmbeddedJavascript:function(){return b&&!b.checkPrivileges([N.ReportsFieldPropertiesEmbeddedJavaScript])},hiddenByReportPartType:function(){return O.type!==o.REPORT_PART_TYPE.Form},isHiddenSubReport:function(){return b&&!b.checkPrivileges([N.ReportsFieldPropertiesSubreport])},isHiddenSort:function(){var e=!1;return O.type===o.REPORT_PART_TYPE.Chart&&(e=O.isLinear()&&I===u.ContainerName.VALUES),C.field.isRunningField||C.hiddenSortFeature||!!(0,M.invokeArgs)("checkHiddenSortField",[C,_.fieldContainerDetails],A.reportPartContent)||e},getFunctions:function(){var e=(0,M.get)("querySourceId",C.field);return d.default.loadReportFunction(s.FIELD_FUNCTION_MODE.FieldProperty,C.getValueByKey("dataFieldType"),g.default.tenantId,[e]).then(function(e){return e=(0,M.concat)([s.EMPTY_FUNCTION],e),O.checkedCompatibleFunction?(0,M.filter)(O.checkedCompatibleFunction.bind(O,_.fieldContainerDetails,C),e):e})},getDataFormats:function(){var e=(C.getValueByKey("functionInfo")||{}).formatDataType||C.getValueByKey("dataFieldType");return d.default.loadReportFieldDataFormat(e).then(function(t){return e===o.DATA_TYPES.DATE_TIME?v.default.filterDateTimeFormat(t):e===o.DATA_TYPES.MONEY||e===o.DATA_TYPES.NUMERIC?f.default.filterFormatForField(O,t,C.field.isRunningField,I):t})},getDataFormatsWidth:function(){return C.properties.getDataValueByKey("width").value},getVerticalHeaderHeight:function(){return C.properties.getHeaderValueByKey("verticalHeaderHeight").value},getDataFormatType:function(){return(C.getValueByKey("format")||{}).formatId},getDataFontFormat:function(){var e=C.properties.dataFormattings.font||{};return{fontFamily:e.family,fontSize:e.size}},getDataFontStyle:function(){var e=C.getValueByKey("font")||{};return{fontUnderline:e.underline,fontItalic:e.italic,fontBold:e.bold}},getHeaderFontFormat:function(){var e=C.properties.headerFormating.font||{};return{fontFamily:e.family,fontSize:e.size}},getHeaderFontStyle:function(){var e=C.properties.headerFormating.font||{};return{fontUnderline:e.underline,fontItalic:e.italic,fontBold:e.bold}},getDataAlignmentFormat:function(){return C.properties.dataFormattings.alignment},getDataWordWrap:function(){return C.properties.dataFormattings.wordWrap},getHeaderAlignmentFormat:function(){return C.properties.headerFormating.alignment},getHeaderVerticalAlignmentFormat:function(){return C.properties.headerFormating.verticalAlignment},getDataFormattingVerticalAlignmentFormat:function(){return C.properties.dataFormattings.verticalAlignment},getFieldStore:function(){return _.fieldStore},getSettingDataType:function(){return(0,M.get)("previewDataType",C)},getHeaderColorStyling:function(){return{textColor:C.properties.headerFormating.font.color,backgroundColor:C.properties.headerFormating.font.backgroundColor}},hiddenIconSettingSubReport:function(){var e=A.reportPartContent.type;return(0,M.includes)(e,[o.REPORT_PART_TYPE.Chart,o.REPORT_PART_TYPE.Gauge,o.REPORT_PART_TYPE.Map,o.REPORT_PART_TYPE.KPI])},checkUniqLinkOption:function(){var e=C.properties||{};return e.checkUniqLinkOption.bind(e)},checkEmbeddedLinkOption:function(){var e=C.properties||{};return e.checkEmbeddedLinkOption.bind(e)},getAliasValidation:function(){return{presence:{presence:!0,message:E.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_FIELD_NAME_ALIAS_MESSAGE_REQUIRED")},action:(0,c.asReference)(function(){return function(e){return A.checkExistingFieldNameAlias&&A.checkExistingFieldNameAlias(C,e)?(0,n.resolve)(String.format(k.M09,t.configReportPart.headerTitle)):e.indexOf("[")>-1||e.indexOf("]")>-1?(0,n.resolve)(E.default.getText("CALCULATED_FIELD_MESSAGE_INVALID_NAME")):(0,n.resolve)("")}})}},getFieldSetting:function(){return(0,M.getOr)("","field.fieldNameAlias",C)},hiddenAlternativeTextByReportPartType:function(){return O.type===o.REPORT_PART_TYPE.Grid||O.type===o.REPORT_PART_TYPE.Map},hiddenColorByReportPartType:function(){return O.type===o.REPORT_PART_TYPE.Grid},isGridReport:function(){return O.type===o.REPORT_PART_TYPE.Grid},isRunningField:function(){return(0,M.get)("field.isRunningField",C)}},onChangeValue:(0,c.action)("OnChangedFieldProps",function(e,t,r,i,l){var d=this,c=(r&&r.length?(0,M.get)(r,e):e)[t];c&&(c.value=i);var p=(0,M.invoke)("needPercentageData",C.properties),h=this.UPDATE_DATA_BY_KEY_CHANGE||[],g=C.name,v=(0,M.getOr)({},"dataFormattings",e)||{},T=(0,M.getOr)({},"fontFormat.value",v)||{},S=(0,M.getOr)({},"fontStyle.value",v)||{},b=(0,M.getOr)({},"alternativeText.value",v)||{},N=(0,M.getOr)({},"customURL.value",v),I=(0,M.getOr)({},"embeddedJavascript.value",v),D=(0,M.getOr)({},"headerFormating",e)||{},P=(0,M.getOr)({},"fontFormat.value",D)||{},F=(0,M.getOr)({},"fontStyle.value",D)||{},k=(0,M.getOr)({},"drillDown",e)||{},B=(0,M.getOr)({},"subReport",k)||{},z=(0,M.getOr)({},"value",B)||{},V=(0,M.getOr)({},"dataSource",e)||{},G=(0,M.getOr)({},"color.value",D)||{},H=(0,M.getOr)({},"grandTotal.value",v)||{},Y=(0,M.getOr)({},"subTotal.value",v)||{},j=(0,M.getOr)({},"otherProps",e)||{},K=(0,M.get)("width.value",v),W=(0,M.get)("verticalHeaderHeight.value",D);if("width"!==t){var q=(0,M.get)("width",v),Q=(0,M.getOr)("props.values",q);Q&&(K=(0,M.get)(Q.propertyKey,Q.loadValue))}if("verticalHeaderHeight"!==t){var X=(0,M.get)("verticalHeaderHeight",v),J=(0,M.getOr)("props.values",X);J&&(W=(0,M.get)(J.propertyKey,J.loadValue))}var Z="function"===t;"customURL"!==t&&"embeddedJavascript"!==t&&"subReport"!==t||((0,M.get)("url",N)||(0,M.get)("selectedReport",B)||(0,M.get)("script",I))&&O.enableValueLabel&&O.enableValueLabel(),"subReport"===t&&(0,M.get)("style.value",B)===o.DRIL_DOWN_STYLE.EMBEDDED&&function(){N&&N.url&&N.viewSettingByLink&&(N.viewSettingByLink=!1,N.selectedIconValue=(0,M.find)(function(e){return e.value!=(0,M.get)("selectedIconValue.value",I)},x));I&&I.script&&I.viewSettingByLink&&(I.viewSettingByLink=!1,I.selectedIconValue=(0,M.find)(function(e){return e.value!=(0,M.get)("selectedIconValue.value",N)},x))}();var $={fieldNameAlias:"fieldNameAlias"===t||Z?(0,M.get)("fieldNameAlias.value",V):C.name,visible:(0,M.get)("dataSource.visible.value",e)},ee=Z&&l&&!(0,M.isNil)(l.defaultFormat)?l.defaultFormat:function(){l=l||{};var e=Z&&y.default.previewDataTypeByFunction(l,(0,M.get)("field.dataFieldType",C));if(t===U.FormatKey)return v.format.value?{formatId:v.format.value,format:l.format||"",groupBy:l.groupBy||null,formatDataType:l.formatDataType,jsFormatString:l.jsFormatString}:{};if(Z&&e!==C.previewDataType)return{};return}(),te=(0,M.get)("color.value.settingValue.cellColor",v),ae=(0,M.get)("color.value.settingValue.textColor",v);(Z||t===U.FormatKey)&&function(){var e=!1,t=Z?(0,M.omit)("defaultFormat",l):(0,M.getOr)({},"properties.dataFormattings.functionInfo",C),a=(0,M.get)("field.dataFieldType",C),r=C.previewDataTypeByFunction,n=y.default.previewDataTypeByFunction(t,a);if(!(e=r!==n)&&n===o.DATA_TYPES.DATE_TIME){var i=C.dateTimeFormatData,s=y.default.getDateTimeFormatData(a,t,ee);e=(0,M.isNil)(i)!==(0,M.isNil)(s)||(0,M.get)("groupBy",i)!==(0,M.get)("groupBy",s)}e&&(b=(0,M.cloneDeep)(w),ae=(0,M.cloneDeep)(w),te=(0,M.assignWith)(function(e){return(0,M.isUndefined)(e)?(0,M.cloneDeep)(w):null},(0,M.cloneDeep)(w),(0,M.get)("color.value.settingValue.cellColor",v)))}();var re=m.DEFAULT_PROPERTIES_VALUE.dataFormattings.alternativeText,ne={fieldItemVisible:(0,M.get)("dataSource.fieldItemVisible.value",e),dataFormattings:{format:ee,font:{family:T.fontFamily,size:T.fontSize,bold:S.fontBold,italic:S.fontItalic,underline:S.fontUnderline},width:{value:K},alignment:(0,M.get)("alignment.value",v),verticalAlignment:(0,M.get)("verticalAlignment.value",v),wordWrap:(0,M.get)("columnWordWrap.value",v),sort:(0,M.get)("sort.value",v)||"",color:{textColor:ae,cellColor:te},alternativeText:{value:(0,M.getOr)(re.value,"value",b),rangeValue:(0,M.getOr)(re.rangeValue,"rangeValue",b),rangePercent:(0,M.getOr)(re.rangePercent,"rangePercent",b)},customURL:{url:(0,M.get)("url",N),option:(0,M.get)("option",N),selectedIconValue:(0,M.get)("selectedIconValue",N),viewSettingByLink:(0,M.get)("viewSettingByLink",N)},embeddedJavascript:{script:(0,M.get)("script",I),selectedIconValue:(0,M.get)("selectedIconValue",I),viewSettingByLink:(0,M.get)("viewSettingByLink",I)},subTotal:Y,grandTotal:H},headerFormating:{font:{family:(0,M.get)("fontFamily",P),size:(0,M.get)("fontSize",P),bold:(0,M.get)("fontBold",F),italic:(0,M.get)("fontItalic",F),underline:(0,M.get)("fontUnderline",F),color:(0,M.get)("textColor",G),backgroundColor:(0,M.get)("backgroundColor",G)},alignment:(0,M.get)("alignment.value",D),verticalAlignment:(0,M.get)("verticalAlignment.value",D),wordWrap:(0,M.get)("wordWrap.value",D),columnGroup:(0,M.get)("columnGroup.value",D),verticalHeader:(0,M.get)("verticalHeader.value",D),verticalHeaderHeight:{value:W}},drillDown:{subReport:{selectedReport:z.selectedReport,style:z.style,reportPartUsed:z.reportPartUsed,reportFilter:z.reportFilter,mappingFields:z.gridData,selectedIconValue:z.selectedIconValue,viewSettingByLink:z.viewSettingByLink}},otherProps:j};C.updateData($,ne),(0,M.invokeArgs)("changePropertiesByField",[C,ne,t],A.reportPartContent),(0,n.resolve)().bind(this).then(function(){var t=d.mappingSource;if(Z){var a=l.name===s.FUNCTION.GROUP.NAME||l.name===s.FUNCTION.GROUP_DAYS_OLD.NAME,r=(0,M.constant)(null);return a?R.removeAggregatedField(C):r=function(){var e=C.name;R.updateAggregatedFieldReportFieldAlias(g,e,A.headerTitle)},f.default.setFunctionElement(O,C,(0,M.omit)("defaultFormat",l)||{},!0).then(r).then(function(){C.field&&C.field.visible&&(e.dataSource.fieldNameAlias.value=C.name);var a=e.dataFormattings.format;return t.getDataFormats().then(function(e){a.props.promiseProps.options=e}),a.value=C.properties.dataFormattings.format.formatId,O.type===o.REPORT_PART_TYPE.Chart&&f.default.isLinear(C,O.defaultOptionsByType)&&(0,M.includes)(C,O.labelsElements)&&O.resetSortAscending(C)&&(e.dataFormattings.sort.value=u.SORT_TYPES.ASC),null})}return null}).then(function(){g!==C.name&&A.processAfterChangeFieldNameAlias(g,C.name),O.updateHTMLCodeFieldContent&&O.updateHTMLCodeFieldContent(C);var e=(0,M.invoke)("needPercentageData",C.properties);if("subReport"===t){var r=a.reportStore;return r.model.setIgnoreCheckChange(),r.saveDraftReport(o.PAGE_NAME.FIELDS,!0).then(function(){"subReport"===t&&(0,M.get)("value.style",B)===o.DRIL_DOWN_STYLE.EMBEDDED&&a.validateFilterFieldsTypeSubReport().then(function(e){var t=(0,M.getOr)(null,"messages[0]",e);if((0,M.isNil)(t))e&&_.confirmFn("Information",{type:L.default.MESSAGE_TYPE.INFO_ACCEPT,description:E.default.getText("REPORTDESIGNER_FILTER_LOGIC_SUBREPORT"),showCancel:!1});else{var a=E.default.getText("COMMON_MESSAGES_GENERIC_ERROR");_.confirmFn("Error",{type:L.default.MESSAGE_TYPE.ERROR,description:(0,M.getOr)(a,"messages[0]",t),showCloseIndicator:!0})}})})}return O.type===o.REPORT_PART_TYPE.Form?null:O.type===o.REPORT_PART_TYPE.Map&&"color"==t||h.indexOf(t)>=0||p!=e&&e?A.shouldUpdatePreview&&_.fieldStore.needUpdatePreview(A):null})})}},a(60);var i=F(a(61)),o=a(18),l=F(a(1855)),s=a(48),u=a(50),d=F(a(160)),c=a(5),p=a(36),f=F(a(33)),h=F(a(390)),m=a(97),g=F(a(16)),E=F(a(12)),y=F(a(237)),v=F(a(129)),T=a(227),_=F(a(28)),S=F(a(213)),C=F(a(183)),b=F(a(687)),N=F(a(1154)),A=F(a(238)),R=F(a(331)),O=F(a(2049)),I=F(a(2050)),D=F(a(381)),P=F(a(1156)),L=F(a(44)),M=a(1);function F(e){return e&&e.__esModule?e:{default:e}}var k=o.BUNDLE.MESSAGE,x=m.SUB_REPORT.ICON_TYPES,w={rangePercent:null,rangeValue:null,value:null,allValues:null},B={Panel:_.default,FontStyle:S.default,FontFormat:C.default,ButtonHighlight:b.default,SizeSetting:N.default,ColorStyling:A.default,AlignmentSetting:R.default,VerticalAlignmentSetting:P.default,TextCellColorSettings:O.default,CalculatedFieldProperties:I.default,CustomInput:D.default},U={FormatKey:"format",FunctionGroup:"Group"};e.exports=t.default}).call(t,a(42))},function(e,t,a){"use strict";var r;r=a(1).isUndefined,e.exports=function(e,t,a){return e&&!r(a)&&(e[t]=a)}},function(e,t,a){"use strict";var r,n=a(14),i=(r=n)&&r.__esModule?r:{default:r};!function(){var t=a(9),r=a(0),n=a(35),o=a(458).DropTarget,l=a(1).pick;e.exports=function(e,a){return function(s){var u=r.createClass({displayName:"DroppableComponent",componentDidMount:function(){this.props.connectDropTarget(n.findDOMNode(this))},render:function(){var e=this.props.connectDropTarget;return r.createElement(s,(0,i.default)({},this.props,{ref:function(t){return e(n.findDOMNode(t))}}))}});return t.observer(o(e,l(["canDrop","hover","drop"],a),function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),canDrop:t.canDrop(),item:t.getItem(),canAccess:a.canAccess,itemType:t.getItemType()}})(u))}}}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=g(a(14)),o=g(a(6)),l=g(a(2)),s=g(a(3)),u=g(a(7)),d=g(a(8)),c=a(0),p=g(c),f=g(a(10)),h=a(1),m=g(a(30));function g(e){return e&&e.__esModule?e:{default:e}}var E=(n=r=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=(0,f.default)(e.className,"btn-highlight",{"active-check":e.hasValue}),a=(0,h.omit)(["hasValue","className"],e);return p.default.createElement(m.default,(0,i.default)({},a,{defaultClasses:!1,className:t}),e.children)}}]),t}(c.Component),r.propTypes={hasValue:c.PropTypes.bool},n);t.default=E,e.exports=t.default},,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u=b(a(6)),d=b(a(2)),c=b(a(3)),p=b(a(7)),f=b(a(8)),h=a(0),m=b(h),g=b(a(35)),E=b(a(2004)),y=(b(a(4)),a(9)),v=b(a(326)),T=b(a(10)),_=b(a(2005)),S=b(a(305)),C=a(1);function b(e){return e&&e.__esModule?e:{default:e}}var N=(0,y.observer)((i=n=function(e){function t(e){(0,d.default)(this,t);var a=(0,p.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return a.onScroll=function(){a.loadVirtualNode()},a.loadVirtualNode=function(){var e=a.store,t=e.getVirtualNode(a.scrollParent);(0,C.isNil)(t)?a.endLoading():(e.showLoading(),e.setRenderingNode(t),a.getData(t))},a.setDom=function(e){e&&(a.scrollParent=v.default.findScrollableParent(e))},a.store=new E.default(e),a}return(0,f.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){this.registerLazyLoadingStore(),this.addEvent(),this.store.training?(this.setViewHeight(),this.getData()):this.endLoading()}},{key:"componentWillUnmount",value:function(){this.removeEvent()}},{key:"componentWillReceiveProps",value:function(e){var t=e.data,a=e.isLastPage;this.store.updateData(t,a)}},{key:"componentDidUpdate",value:function(){var e=this.store,t=e.isLoading,a=e.isLastPage;this.store.removeVirtualNode(),!t&&this.loadVirtualNode(),a&&this.endLoading()}},{key:"endLoading",value:function(){this.props.loader&&this.props.loader.endLoading()}},{key:"registerLazyLoadingStore",value:function(){(0,C.invokeArgs)("registerLazyLoadingStore",[this.store],this.props)}},{key:"setViewHeight",value:function(){var e=this.props.viewHeight;if(e)this.store.setViewHeight(e);else{var t=(0,C.isNil)(this.scrollParent)?0:this.scrollParent.offsetHeight-this.getScrollbarWidth();this.store.setViewHeight(t)}}},{key:"getScrollbarWidth",value:function(){var e=0;if("undefined"!=typeof document){var t=document.createElement("div");t.className="izenda-ScrollBox-WidthMeasure",document.body.appendChild(t),e=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e}},{key:"getData",value:function(e){var t=this.props.getData;t(this.store.getPageInfo(e))}},{key:"addEvent",value:function(){this.scrollParent&&this.scrollParent.addEventListener("scroll",this.loadVirtualNode,{capture:!1,passive:!0})}},{key:"removeEvent",value:function(){this.scrollParent&&this.scrollParent.removeEventListener("scroll",this.loadVirtualNode,{capture:!1,passive:!0})}},{key:"renderLazyLoadingItemList",value:function(){var e=this,t=this.store,a=this.props,r=a.renderItem,n=a.itemClassName,i=a.itemKey,o=t.getItemsOnViewScreen;if(t.resetVirtualNodes(),!(0,C.isEmpty)(o))return(0,C.map)(function(a){return(0,C.get)("data.source.isVirtualNode",a)?(t.virtualNodes.push(a.data.source),m.default.createElement(_.default,{key:a.key,store:t,source:a.data.source,className:n})):(0,C.get)("isVirtualNode",a)?(t.virtualNodes.push(a),m.default.createElement(_.default,{key:a.id,store:t,source:a,className:n})):m.default.createElement(A,{store:t,getData:e.getData,className:n,key:a[i],item:a},r(a,t.pageSize,e.loadVirtualNode))},o)}},{key:"render",value:function(){return m.default.createElement("div",{ref:this.setDom,className:(0,T.default)("izenda-LazyLoading",this.props.className)},this.renderLazyLoadingItemList(),m.default.createElement(S.default,{store:this.store,className:"u_inlineBlock u_fullWidth"}))}}]),t}(h.Component),n.propTypes={data:y.propTypes.arrayOrObservableArray.isRequired,defaultItemsNumber:h.PropTypes.number,viewHeight:h.PropTypes.number,itemHeight:h.PropTypes.number,getData:h.PropTypes.func.isRequired,isLastPage:h.PropTypes.bool.isRequired,registerLazyLoadingStore:h.PropTypes.func},n.defaultProps={itemKey:"key"},r=i))||r;t.default=N;var A=(0,y.observer)((s=l=function(e){function t(){var e,a,r,n;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),l=0;l0}}).map(a(e,!1,o)))}var T=g.map(a(e,t,o));return m.concat(T)}var g=function(e,t,a,r){return r&&!querySource.checked?null:function(r){return new E(e,t,r,a)}};function E(e,a,r,n){this.dataSource=r;var o=i(r.querySources)?r.querySourceFields:r.querySources,l=!i(r.querySourceFields),s={id:r.id,name:r.name,change:r.physicalChange,approval:r.approval,checked:r.checked,parentNode:n,childNodes:function(){return i(o)?[]:m(e,a,g,o,this)},isFieldNode:l};r&&(this.initData=r),t.extendObservable(this,s)}function y(e,a,r){var n={filter:{text:"",isFilterFields:r},querySources:e,root:function(){return o(function(e){return e.querySources=e.dbSource.querySources,g(this.filter,!0,a)({id:"#root",name:"root",querySources:[e]})}.bind(this),this.querySources)}};t.extendObservable(this,n)}E.prototype.childCount=function(e){return e?this.childNodes.filter(e).length:this.childNodes.length},E.prototype.setChecked=function(e){t.transaction(function(){this.dataSource.checked=e,this.toggleSelect(e),this.toggleParentSelect(e)}.bind(this))},E.prototype.toggleSelect=function(e){if(!i(this.childNodes)){var t=this.childNodes.filter(c("dataSource.checked",!e)).map(function(t){t.dataSource.checked=e,t.toggleSelect(e)});return d(Boolean,t)}return!1},E.prototype.toggleParentSelect=function(e){var t=this.parentNode;if(t){var a=t.childNodes.filter(c("dataSource.checked",!0));t.dataSource.checked=a.length>0,t.toggleParentSelect&&t.toggleParentSelect(e)}},E.prototype.isTypeGroup=function(){return!!this.dataSource.group},y.prototype.setFilter=function(e){this.filter.text=e},y.prototype.setQuerySources=function(e){this.querySources=e},e.exports=y}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=y(a(14)),l=y(a(6)),s=y(a(2)),u=y(a(3)),d=y(a(7)),c=y(a(8)),p=a(9),f=a(0),h=y(f),m=y(a(1141)),g=y(a(214)),E=y(a(2068));function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,p.observer)((i=n=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"setPropertySchema",value:function(e){this.propertyConfig=e||{}}},{key:"buildSchemaData",value:function(e){var t=e.propertyConfig||this.propertyConfig||{};this.propertiesEditorModel.setPropertyConfig(t),this.schemaData=this.propertiesEditorModel.getDataBySchema()}},{key:"componentWillUpdate",value:function(e){e.editorName&&e.editorName!==this.props.editorName&&(g.default.resetEditor(this.props.editorName),g.default.addEditor(this,e.editorName)),this.buildSchemaData(e)}},{key:"componentWillMount",value:function(){var e=this.props.editorName;e&&g.default.addEditor(this,e),this.propertiesEditorModel=new m.default,this.buildSchemaData(this.props)}},{key:"componentWillUnmount",value:function(){var e=this.props.editorName;e&&g.default.resetEditor(e)}},{key:"render",value:function(){var e=this.props.propertyConfig||this.propertyConfig||{};return h.default.createElement(E.default,(0,o.default)({},e,{className:this.props.className,propertiesEditorModel:this.propertiesEditorModel,schemaData:this.schemaData,closePopover:this.props.closePopover}))}}]),t}(h.default.Component),n.displayName="PropertiesEditorContainer",n.propTypes={propertyConfig:f.PropTypes.object,editorName:f.PropTypes.string,className:f.PropTypes.string},r=i))||r;t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={A0:{widthInInches:33.1,heightInInches:46.8},A1:{widthInInches:23.4,heightInInches:33.1},A2:{widthInInches:16.5,heightInInches:23.4},A3:{widthInInches:11.7,heightInInches:16.5},A4:{widthInInches:8.25,heightInInches:11.69},A5:{widthInInches:5.8,heightInInches:8.3}},n=0;t.default={PAGE_SIZES:r,DEFAULT_PAGE_SIZE_KEY:"A4",MIN_SIZE_UI_SETTING:.02,getContentSizeInInches:function(e,t,a,i,o){var l=r[e];if(!l)return null;var s=void 0,u=void 0;return o&&o!==n?(s=l.heightInInches,u=l.widthInInches):(s=l.widthInInches,u=l.heightInInches),{widthOfContentInInches:s,heightOfContentInInches:u}},getBodyContentSizeInInches:function(e,t,a,i,o){var l=r[e];if(!l)return null;var s=void 0,u=void 0;return o&&o!==n?(s=l.heightInInches,u=l.widthInInches):(s=l.widthInInches,u=l.heightInInches),{widthOfContentInInches:s-(t.left+t.right),heightOfContentInInches:u-(t.top+t.bottom+a+i)}},formatCSSValueInInches:function(e,t){return e+"in"},getContainerHeight:function(e,t){return(t?e-3.12:e)+"in"},formatCSSValueInPercent:function(e){return e+"%"},isPortrait:function(e){return!e||e===n},getPageSize:function(e,t){var a=void 0,i=void 0,o=r[e=e||"A4"];return t&&t!==n?(a=o.heightInInches,i=o.widthInInches):(a=o.widthInInches,i=o.heightInInches),{widthInInches:a,heightInInches:i}}},e.exports=t.default},function(e,t,a){"use strict";(function(r,n){Object.defineProperty(t,"__esModule",{value:!0});var i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b,N,A,R,O,I,D=Q(a(17)),P=Q(a(23)),L=a(20),M=Q(a(2)),F=Q(a(3)),k=a(5),x=a(1),w=Q(a(332)),B=Q(a(2107)),U=a(61),z=Q(a(33)),V=Q(a(18)),G=a(99),H=Q(a(67)),Y=Q(a(41)),j=Q(a(53)),K=Q(a(210)),W=a(50),q=Q(a(34));function Q(e){return e&&e.__esModule?e:{default:e}}function X(e,t,a,r){a&&(0,D.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function J(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Z=(0,j.default)((o=function(){function e(t,a,r,n,i){(0,M.default)(this,e),X(this,"accessPriority",l,this),X(this,"isActive",s,this),X(this,"reportPartContent",u,this),X(this,"headerTitle",d,this),X(this,"previewTitle",c,this),X(this,"description",p,this),X(this,"reportId",f,this),X(this,"id",h,this),X(this,"positionX",m,this),X(this,"positionY",g,this),X(this,"width",E,this),X(this,"height",y,this),X(this,"state",v,this),X(this,"modified",T,this),X(this,"numberOfRecord",_,this),X(this,"isBackSide",S,this),X(this,"allowToSave",C,this),X(this,"queryData",b,this),X(this,"configField",N,this),X(this,"isLoadingData",A,this),X(this,"newestField",R,this),X(this,"onDrilldown",O,this),X(this,"stateReview",I,this),this.reportInfo=[],this.clone=function(){var t=new e;t.readData(this),t.headerTitle=this.headerTitle;var a=(0,x.getOr)({},"queryData[0]",this);return t.setQueryData(a),t},this.accessPriority=r,this.embedReportDef={reports:{},reportParts:{}},this.elementInfo=[],this.colorPalettes=[],this.validateDetail=null,t&&this.readData(t,a,r,n,i),this.cleanDirty()}return(0,F.default)(e,[{key:"isBeingBuild",get:function(){return this.reportPartContent&&this.reportPartContent.isBeingBuild}},{key:"containerCollection",get:function(){return this.reportPartContent&&this.reportPartContent.containerCollection?this.reportPartContent.containerCollection:[]}},{key:"fieldCollection",get:function(){return(0,x.flatMap)(function(e){return e.elements?e.elements.slice():[]},this.containerCollection)}},{key:"configurableFieldCollection",get:function(){return(0,x.flow)((0,x.filter)(function(e){return e.name!==W.ContainerName.DYNAMIC_THRESHOLD}),(0,x.flatMap)(function(e){return e.elements?e.elements.slice():[]}))(this.containerCollection)}},{key:"visibleFieldCollection",get:function(){return(0,x.filter)(function(e){return!!e.field.visible},this.fieldCollection)}},{key:"autoSize",get:function(){return(0,x.getOr)(!1,"autoSize",this.reportPartContent)}},{key:"embededInfo",get:function(){var e=(0,x.reduce)(function(e,t){return e.reportIds.push((0,x.get)("embededInfo.reportId",t)),e.reportPartIds=e.reportPartIds.concat((0,x.getOr)([],"embededInfo.reportPartIds",t)),e},{reportIds:[],reportPartIds:[]},this.fieldCollection),t=(0,x.flow)(x.compact,x.uniq);return(0,x.mapValues)(t,e)}},{key:"type",get:function(){return this.reportPartContent&&this.reportPartContent.type}},{key:"isNew",get:function(){return!String.isGuidFormat(this.id)}},{key:"isDelete",get:function(){return this.state===V.default.OBJECT_STATE.DELETE}},{key:"previewData",get:function(){return 1===this.queryData.length?this.queryData[0]:this.queryData}},{key:"previewDataFieldsMapping",get:function(){return this.previewData.fieldsMapping||[]}},{key:"previewDataRecords",get:function(){return this.previewData.records||[]}},{key:"cities",get:function(){return this.previewData.cities||[]}},{key:"postalCodes",get:function(){return this.previewData.postalCodes||[]}},{key:"countryCodes",get:function(){return this.previewData.countryCodes||[]}},{key:"stateCodes",get:function(){return this.previewData.stateCodes||[]}},{key:"countyCodes",get:function(){return this.previewData.countyCodes||[]}},{key:"addressCodes",get:function(){return this.previewData.addressCodes||[]}},{key:"groupTotalValues",get:function(){return this.previewData.groupTotalValues||{}}},{key:"existInvisibleField",get:function(){return!!(0,x.find)(function(e){return!e.properties.fieldItemVisible},this.fieldCollection)}},{key:"aggregatedFieldCollection",get:function(){var e=this;return(0,x.map)(function(t){if(!e.isDelete&&(0,x.get)("isAggregatedField",t))return{dataType:t.fieldDataType,sourceFieldName:t.field.fieldNameAlias,reportFieldAlias:t.field.fieldNameAlias,querySourceFieldId:t.fieldId,sourceDataObjectName:"Aggregated Field",querySourceType:"Aggregated Field",sourceFieldVisible:!0,sourceFieldFilterable:!0,sortType:"Unsorted",reportPartTitle:e.headerTitle}},this.fieldCollection)}},{key:"shouldUpdatePreview",get:function(){return Y.default.canShowPreview()&&this.stateReview!==U.DIRECTION_STATE.LEFT}}]),(0,F.default)(e,[{key:"readData",value:function(e,t,a,r,n){var i=e.reportPartContent&&e.reportPartContent.type;this.id=e.id,this.isActive=e.isActive,this.headerTitle=e.title||"",this.reportId=e.reportId,this.positionX=e.positionX,this.positionY=e.positionY,this.width=e.width,this.height=e.height,this.state=(0,x.getOr)(V.default.OBJECT_STATE.INSERT,"state",e),this.numberOfRecord=e.numberOfRecord,(0,x.isUndefined)(a)||(this.accessPriority=a),this.setReportPartType(i),this.reportPartContent.readData&&this.reportPartContent.readData(e.reportPartContent,t,r,n),this.elementInfo=this.buildElementInfo(),e.reportPartContent&&(e.reportPartContent.title&&(this.previewTitle=e.reportPartContent.title),e.reportPartContent.description&&(this.description=e.reportPartContent.description)),this.newestField=null,this.allowToSave=e.allowToSave}},{key:"buildDataForSave",value:function(){var e=(0,x.omit)(["id","headerTitle","previewTitle","description","previewData","embedReportDef","queryData","positionX","positionY","elementInfo","newestField","isLoadingData","onDrilldown","isBackSide"],this);return e.positionY=(0,x.floor)(this.positionY),e.positionX=(0,x.floor)(this.positionX),e.title=this.headerTitle,e.reportPartContent||(e.reportPartContent={}),(0,x.isFunction)(e.reportPartContent.buildDataForSave)&&(e.reportPartContent=e.reportPartContent.buildDataForSave()),e.reportPartContent.title=this.previewTitle,e.reportPartContent.description=this.description,this.checkDirty()&&e.state===V.default.OBJECT_STATE.NONE&&(e.state=V.default.OBJECT_STATE.UPDATE),!this.isNew&&(e.id=this.id),e}},{key:"setPosition",value:function(e,t){this.positionX=e.positionX,this.positionY=e.positionY,this.width=e.width,this.height=e.height,t&&this.markDirty()}},{key:"setReportPartType",value:function(e){var t=e&&K.default.getConfiguration(e),a=t&&t.model,r=[],n=[];this.reportPartContent&&(r=(0,x.concat)(this.reportPartContent.containersHistory,[]),n=(0,x.concat)(this.reportPartContent.containersHistoryMetric,[])),this.reportPartContent=a?new t.model(null,r,n):{type:e},this.isNew&&this.reportPartContent.autoSize&&(this.width=0,this.height=0),this.isNew&&this.markDirty()}},{key:"clearContainer",value:function(e){e.elements=(0,k.observable)([])}},{key:"checkDirty",value:function(){var e=this.reportPartContent;return this.isDirty||e&&e.checkDirty&&e.checkDirty()}},{key:"cleanDirty",value:function(){(0,x.invoke)("cleanDirty",this.reportPartContent),this.resetDirty()}},{key:"insertFieldToContainer",value:function(e,t,a,r,n,i){var o=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],l=t.alias||t.name,s=r||((0,x.flow)((0,x.map)("position"),x.max)(e.elements)||0)+1,u=this.reportPartContent.type,d=this.reportPartContent.reportPartStyle,c=e.name,p=z.default.getDefaultSort(u,d,c),f=new w.default(t,a,l,s,p);return n&&f.properties.setFunction(n),this.commonInsertField(l,f,e,s,!!n,i,o)}},{key:"commonInsertField",value:function(e,t,a,r,n,i){var o=this,l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],s=(0,L.resolve)();r=r||((0,x.flow)((0,x.map)("position"),x.max)(a.elements)||0)+1,t.setUniqueName(e,this),this.markDirty(),t.haveFunction||t.field.isRunningField||(s=z.default.setDefaultFunctionElement(this.reportPartContent,a,t,i));var u=(0,k.action)(function(){var e=!0,i=z.default.getUniqueName(o.reportPartContent,t,t.fieldNameAlias);if(t.setName(i),a.elements.slice()[r-1]?a.elements.splice(r-1,0,t):(e=!1,r>a.elements.length&&(a.elements.length=r),a.elements[r-1]=t),!n&&(o.newestField=t),e)for(var s=r;s-1&&e.elements.splice(a,1),(0,x.flow)((0,x.filter)(function(e){return e.position>t.position}),(0,x.forEach)(function(e){e.position=e.position-1}))(e.elements),(0,x.invoke)("delete",t),this.reportPartContent.afterRemoveField&&this.reportPartContent.afterRemoveField(e,t),this.markDirty()}},{key:"delete",value:function(){r(!this.isDelete,"can't delete deleted object"),!this.isNew&&this.markDirty(),this.state=V.default.OBJECT_STATE.DELETE,this.clearRefreshData()}},{key:"changePositionField",value:function(e,t,a){if(t>e.position+1){for(var r=e.position;r-1||n&&n.function===H.default.FUNCTION_NAME.EXPRESSION&&n.expression.indexOf("["+t+"]")>-1)&&(a=!0),!a},this.fieldCollection),a}},{key:"buildElementInfo",value:function(){var e=this.reportPartContent.getContainerName||(0,x.get)("name");return(0,x.flatMap)(function(t){var a=e(t);return(0,x.map)(function(e){return{element:e,container:a,position:e.position}},t.elements)},this.containerCollection)}},{key:"setCrossFiltering",value:function(e){this.reportPartContent.isCrossFiltering=e,this.markDirty()}},{key:"processAfterChangeFieldNameAlias",value:function(e,t){(0,x.forEach)(function(a){a.properties.updateGrandSubTotal(e,t)},this.fieldCollection);var a=(0,x.find)({fieldNameAlias:e},(0,x.getOr)([],"properties.subReport.mappingFields",this.configField));a&&(a.fieldNameAlias=t),this.reportPartContent.afterChangeFieldNameAlias&&this.reportPartContent.afterChangeFieldNameAlias(e,t)}},{key:"getCrossFilteringFilter",value:function(){var e=(0,x.invoke)("getCrossFilteringInfo",this.reportPartContent);return(0,x.isEmpty)(e)?[]:e.map(function(e){return{key:(0,x.get)("key",e),value:(0,x.get)("value",e),fieldId:(0,x.get)("field.fieldId",e),field:(0,x.get)("field",e)}})}},{key:"updateStateReview",value:function(e){this.stateReview=e}},{key:"getThemeColors",value:function(e){var t=(0,x.find)(function(t){return(0,x.isUndefined)(e.colorTheme)?t.isDefaultTheme:t.name===e.colorTheme},this.colorPalettes);return t?t.colors:null}},{key:"setLookupErrorMassage",value:function(e){this.validateDetail=e}},{key:"getLookupErrorMessage",value:function(){return(0,x.head)((0,x.get)("messages",(0,x.head)(this.validateDetail)))}}]),e}(),l=J(o.prototype,"accessPriority",[k.observable],{enumerable:!0,initializer:null}),s=J(o.prototype,"isActive",[k.observable],{enumerable:!0,initializer:function(){return!1}}),u=J(o.prototype,"reportPartContent",[k.observable],{enumerable:!0,initializer:function(){return null}}),d=J(o.prototype,"headerTitle",[k.observable],{enumerable:!0,initializer:function(){return""}}),c=J(o.prototype,"previewTitle",[k.observable],{enumerable:!0,initializer:function(){return{text:"",properties:{},settings:{font:{family:q.default.fontFamily.proxima,size:14,bold:!0,italic:!1,underline:!1,color:"",highlightColor:""},alignment:{alignment:""}},elements:[]}}}),p=J(o.prototype,"description",[k.observable],{enumerable:!0,initializer:function(){return{text:"",properties:{},settings:{font:{family:q.default.fontFamily.proxima,size:14,bold:!1,italic:!1,underline:!1,color:"",highlightColor:""},alignment:{alignment:""}},elements:[]}}}),f=J(o.prototype,"reportId",[k.observable],{enumerable:!0,initializer:function(){return null}}),h=J(o.prototype,"id",[k.observable],{enumerable:!0,initializer:function(){return"0"}}),m=J(o.prototype,"positionX",[k.observable],{enumerable:!0,initializer:function(){return 0}}),g=J(o.prototype,"positionY",[k.observable],{enumerable:!0,initializer:function(){return 0}}),E=J(o.prototype,"width",[k.observable],{enumerable:!0,initializer:function(){return 1}}),y=J(o.prototype,"height",[k.observable],{enumerable:!0,initializer:function(){return 1}}),v=J(o.prototype,"state",[k.observable],{enumerable:!0,initializer:function(){return 0}}),T=J(o.prototype,"modified",[k.observable],{enumerable:!0,initializer:function(){return null}}),_=J(o.prototype,"numberOfRecord",[k.observable],{enumerable:!0,initializer:function(){return null}}),S=J(o.prototype,"isBackSide",[k.observable],{enumerable:!0,initializer:function(){return!1}}),C=J(o.prototype,"allowToSave",[k.observable],{enumerable:!0,initializer:function(){return!1}}),b=J(o.prototype,"queryData",[k.observable],{enumerable:!0,initializer:function(){return[]}}),N=J(o.prototype,"configField",[k.observable],{enumerable:!0,initializer:function(){return{}}}),A=J(o.prototype,"isLoadingData",[k.observable],{enumerable:!0,initializer:function(){return!0}}),R=J(o.prototype,"newestField",[k.observable],{enumerable:!0,initializer:function(){return null}}),O=J(o.prototype,"onDrilldown",[k.observable],{enumerable:!0,initializer:function(){return null}}),I=J(o.prototype,"stateReview",[k.observable],{enumerable:!0,initializer:function(){return Y.default.canShowPreview()?U.DIRECTION_STATE.NORMAL:U.DIRECTION_STATE.LEFT}}),J(o.prototype,"isBeingBuild",[k.computed],(0,P.default)(o.prototype,"isBeingBuild"),o.prototype),J(o.prototype,"containerCollection",[k.computed],(0,P.default)(o.prototype,"containerCollection"),o.prototype),J(o.prototype,"fieldCollection",[k.computed],(0,P.default)(o.prototype,"fieldCollection"),o.prototype),J(o.prototype,"configurableFieldCollection",[k.computed],(0,P.default)(o.prototype,"configurableFieldCollection"),o.prototype),J(o.prototype,"visibleFieldCollection",[k.computed],(0,P.default)(o.prototype,"visibleFieldCollection"),o.prototype),J(o.prototype,"autoSize",[k.computed],(0,P.default)(o.prototype,"autoSize"),o.prototype),J(o.prototype,"embededInfo",[k.computed],(0,P.default)(o.prototype,"embededInfo"),o.prototype),J(o.prototype,"type",[k.computed],(0,P.default)(o.prototype,"type"),o.prototype),J(o.prototype,"isNew",[k.computed],(0,P.default)(o.prototype,"isNew"),o.prototype),J(o.prototype,"isDelete",[k.computed],(0,P.default)(o.prototype,"isDelete"),o.prototype),J(o.prototype,"previewData",[k.computed],(0,P.default)(o.prototype,"previewData"),o.prototype),J(o.prototype,"previewDataFieldsMapping",[k.computed],(0,P.default)(o.prototype,"previewDataFieldsMapping"),o.prototype),J(o.prototype,"previewDataRecords",[k.computed],(0,P.default)(o.prototype,"previewDataRecords"),o.prototype),J(o.prototype,"cities",[k.computed],(0,P.default)(o.prototype,"cities"),o.prototype),J(o.prototype,"postalCodes",[k.computed],(0,P.default)(o.prototype,"postalCodes"),o.prototype),J(o.prototype,"countryCodes",[k.computed],(0,P.default)(o.prototype,"countryCodes"),o.prototype),J(o.prototype,"stateCodes",[k.computed],(0,P.default)(o.prototype,"stateCodes"),o.prototype),J(o.prototype,"countyCodes",[k.computed],(0,P.default)(o.prototype,"countyCodes"),o.prototype),J(o.prototype,"addressCodes",[k.computed],(0,P.default)(o.prototype,"addressCodes"),o.prototype),J(o.prototype,"groupTotalValues",[k.computed],(0,P.default)(o.prototype,"groupTotalValues"),o.prototype),J(o.prototype,"existInvisibleField",[k.computed],(0,P.default)(o.prototype,"existInvisibleField"),o.prototype),J(o.prototype,"aggregatedFieldCollection",[k.computed],(0,P.default)(o.prototype,"aggregatedFieldCollection"),o.prototype),J(o.prototype,"shouldUpdatePreview",[k.computed],(0,P.default)(o.prototype,"shouldUpdatePreview"),o.prototype),J(o.prototype,"readData",[k.action],(0,P.default)(o.prototype,"readData"),o.prototype),J(o.prototype,"setPosition",[k.action],(0,P.default)(o.prototype,"setPosition"),o.prototype),J(o.prototype,"setReportPartType",[k.action],(0,P.default)(o.prototype,"setReportPartType"),o.prototype),J(o.prototype,"clearContainer",[k.action],(0,P.default)(o.prototype,"clearContainer"),o.prototype),J(o.prototype,"cleanDirty",[k.action],(0,P.default)(o.prototype,"cleanDirty"),o.prototype),J(o.prototype,"insertFieldToContainer",[k.action],(0,P.default)(o.prototype,"insertFieldToContainer"),o.prototype),J(o.prototype,"commonInsertField",[k.action],(0,P.default)(o.prototype,"commonInsertField"),o.prototype),J(o.prototype,"setReportPartName",[k.action],(0,P.default)(o.prototype,"setReportPartName"),o.prototype),J(o.prototype,"setNumberOfRecord",[k.action],(0,P.default)(o.prototype,"setNumberOfRecord"),o.prototype),J(o.prototype,"removeFieldFromContainer",[k.action],(0,P.default)(o.prototype,"removeFieldFromContainer"),o.prototype),J(o.prototype,"delete",[k.action],(0,P.default)(o.prototype,"delete"),o.prototype),J(o.prototype,"changePositionField",[k.action],(0,P.default)(o.prototype,"changePositionField"),o.prototype),J(o.prototype,"changeFieldContainer",[k.action],(0,P.default)(o.prototype,"changeFieldContainer"),o.prototype),J(o.prototype,"updateTitleSettings",[k.action],(0,P.default)(o.prototype,"updateTitleSettings"),o.prototype),J(o.prototype,"updateReportPartPreviewTitle",[k.action],(0,P.default)(o.prototype,"updateReportPartPreviewTitle"),o.prototype),J(o.prototype,"updateDescriptionSettings",[k.action],(0,P.default)(o.prototype,"updateDescriptionSettings"),o.prototype),J(o.prototype,"updateReportPartDescription",[k.action],(0,P.default)(o.prototype,"updateReportPartDescription"),o.prototype),J(o.prototype,"setQueryData",[k.action],(0,P.default)(o.prototype,"setQueryData"),o.prototype),J(o.prototype,"setReportPartProperties",[k.action],(0,P.default)(o.prototype,"setReportPartProperties"),o.prototype),J(o.prototype,"setConfigField",[k.action],(0,P.default)(o.prototype,"setConfigField"),o.prototype),J(o.prototype,"resetConfigField",[k.action],(0,P.default)(o.prototype,"resetConfigField"),o.prototype),J(o.prototype,"setAllFieldVisible",[k.action],(0,P.default)(o.prototype,"setAllFieldVisible"),o.prototype),J(o.prototype,"startLoadData",[k.action],(0,P.default)(o.prototype,"startLoadData"),o.prototype),J(o.prototype,"updateField",[k.action],(0,P.default)(o.prototype,"updateField"),o.prototype),J(o.prototype,"setCrossFiltering",[k.action],(0,P.default)(o.prototype,"setCrossFiltering"),o.prototype),J(o.prototype,"processAfterChangeFieldNameAlias",[k.action],(0,P.default)(o.prototype,"processAfterChangeFieldNameAlias"),o.prototype),i=o))||i;t.default=Z,e.exports=t.default}).call(t,a(42),a(27))},function(e,t,a){"use strict";(function(t){var r,n,i,o,l,s;r=a(0),n=a(9).observer,i=a(10),o=a(167).FORMAT_CONFIG,l=a(1).isNil,s=r.createClass({displayName:"IconDropdownSetting",propTypes:{onChange:r.PropTypes.func},handleSelectItem:function(e,t){var a=this.props,r=a.editorControl;switch(t){case"numbered":r&&r.applyListFormat("OL",e.value),a.applyListFormat&&a.applyListFormat("OL",e.value);break;case"bullet":r&&r.applyListFormat("UL",e.value),a.applyListFormat&&a.applyListFormat("UL",e.value);break;case"repeater":r&&r.updateRepeater(e.value);break;default:r&&r.toggleFormat(e.value)}},renderOption:function(e,t){var a=this.props,n=i(e.className,{active:!l(a.value)&&(a.value[e.value]||a.value[t]===e.value)});return r.createElement("li",{key:e.value,className:n},r.createElement("a",{onClick:this.handleSelectItem.bind(this,e,t)},r.createElement("i",{className:e.icon}),e.label))},renderOptions:function(){var e=[],t=this.props.data.type;switch(t){case"heading":e=o.HEADING;break;case"block":e=o.BLOCK;break;case"numbered":e=o.NUMBER_LIST;break;case"bullet":e=o.BULLET_LIST;break;case"repeater":e=o.REPEATER_LIST}return e.map(function(e){return this.renderOption(e,t)}.bind(this))},render:function(){var e=this.props.data;return r.createElement("span",{className:"izenda-FormSettings"},r.createElement("a",{ref:function(e){e&&t(e).dropdown()},className:"btn","data-toggle":"dropdown",title:e.title},r.createElement("i",{className:e.className}),r.createElement("span",{className:"caret"})),r.createElement("ul",{className:"dropdown-menu"},this.renderOptions()))}}),e.exports=n(s)}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p,f,h,m,g=G(a(17)),E=G(a(23)),y=G(a(90)),v=a(20),T=G(a(2)),_=G(a(3)),S=a(5),C=a(1),b=G(a(18)),N=G(a(110)),A=G(a(135)),R=G(a(285)),O=G(a(2212)),I=G(a(163)),D=G(a(16)),P=G(a(41)),L=G(a(117)),M=G(a(330)),F=G(a(106)),k=a(40),x=G(a(338)),w=G(a(518)),B=G(a(2236)),U=G(a(1212)),z=G(a(12)),V=G(a(400));function G(e){return e&&e.__esModule?e:{default:e}}function H(e,t,a,r){a&&(0,g.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function Y(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var j=(r=function(){function e(t,a,r,g,E,y,v){(0,T.default)(this,e),H(this,"model",n,this),H(this,"reportAccessPriority",i,this),H(this,"alertDetails",o,this),H(this,"saveAsMode",l,this),H(this,"disabled",s,this),H(this,"isNewReport",u,this),H(this,"disableReportDesigner",d,this),H(this,"advancedMode",c,this),H(this,"isCompleteLoad",p,this),H(this,"globalReportName",f,this),H(this,"localReportName",h,this),H(this,"isShowingHeaderFooter",m,this),this.isLoadDraft=!1,this.switchToDesignReportContainer=!1,this.disposers=[],this.model=r||new O.default(t,a,g,E),this.editMode=!!E;var _=this.model;y&&_.read(v),this.canSaveAs=!(0,C.isNil)(a),this.isNewReport=!a,this.isCompleteLoad=!!r,this.fieldsStore=new x.default(this,t),this.dataSourceStore=new w.default(this),this.scheduleStore=new B.default(this),this.accessStore=new U.default(this.model.reportAccess,this.reportId),this.reportListURI=null,this.reactiveStore(this)}return(0,_.default)(e,[{key:"reactiveStore",value:function(e){var t=(0,S.observe)(e,"reportId",function(){e.loadReportDesigner()});e.disposers.push(t)}},{key:"validateReportName",value:function(e){return N.default.validateReportName(e)}},{key:"loadCategorySettings",value:function(){var e=this;L.default.loadCategorySettings().bind(this).then((0,S.action)(function(t){var a=(0,C.find)({isGlobal:!0},t),r=(0,C.find)({isGlobal:!1},t);e.globalReportName=(0,C.getOr)(null,"name",a),e.localReportName=(0,C.getOr)(null,"name",r)}))}},{key:"detectReportChange",value:function(e){var t=this.model.getReportDefinition(e);return this.model.isGlobal&&!(0,C.isNil)(this.accessStore.tenantId)&&(t.category=void 0,t.categoryId=void 0,t.report.category=void 0,t.report.categoryId=void 0),t.report.reportDataSource=(0,C.isEmpty)(t.report.reportDataSource)?this.model.reportDataSource:t.report.reportDataSource,N.default.detectReportChange(t)}},{key:"saveReport",value:function(e,t){return this.saveOrSaveDraftReport(e,!1,t)}},{key:"saveDraftReport",value:function(e,t){return this.saveOrSaveDraftReport(e,!0,!1,t)}},{key:"saveOrSaveDraftReport",value:function(e,t,a,r){this.syncRelationshipFilters(),!t&&this.model.removeUnuseDynamicThresholds();var n=this.model.getReportDefinition(e),i=t?N.default.saveDaftReportDesigner:N.default.saveReportDesigner;return this.isLoadDraft=t,this.alertDetails.reset(),this.model.updateErrorMessages(null),this.checkDataObjectLimitation().then(function(e){return e.success||a?i(n).then((0,S.action)(function(e){if(e.report){t&&(e.report.version=n.report.version),(0,C.isNil)((0,C.getOr)(null,"report.reportFilter.filterFields",e))||e.report.reportFilter.filterFields.filter(function(e){return e.isParameter&&!(0,C.isNil)(e.value)&&!(0,C.isEmpty)(e.value)}).forEach(function(e){e.value=e.value.replace("[Current User]","[User: "+D.default.currentUser.userName+"]"),D.default.currentUser.systemAdmin||(e.value=e.value.replace("[Current Tenant]","[Tenant: "+D.default.currentUser.tenantDisplayID+"]"))});var a=this.model.checkDirty(),i=this.model.dataSource.reportMode===b.default.ADVANCED;this.model.updateReportInfo(e.reportKey.key,e.report,i,r),this.accessStore.updateReporId(e.report.id),(new F.default).checkPrivileges([k.PERMISSION_KEY.ReportsActionsSchedule])&&this.updateSchedules(e.report.id,t),this.ignoreCheckChange=!0,t?!a&&this.model.cleanDirty():(this.fieldsStore.getFilterData(),this.alertDetails.set({success:!0,message:z.default.getText("COMMON_MESSAGES_DETAILS_WERE_SAVED")}),this.canSaveAs=!0,this.accessStore.model.cleanDraftAccesses(),this.model.cleanDirty()),this.dataSourceStore.resetDataSourceGridDirty()}(0,C.isEmpty)(e.messages)?(this.model.resetSaveAs(),this.scheduleStore.subscribedInstancesStore.model.cleanDirty()):this.model.updateErrorMessages(e.messages);var o=(0,C.get)("reportFilters.configField",this.fieldsStore);return this.fieldsStore.getOperatorValueSource(o),{success:(0,C.isEmpty)(e.messages),messages:e.messages,reportId:e.reportKey&&e.reportKey.key}}.bind(this))):e}.bind(this))}},{key:"updateSchedules",value:function(e,t){if(!t){this.model.schedules=[];var a=this.scheduleStore.subscribedInstancesStore;a.updateReportId(e),a.loadSchedules(!0,null)}}},{key:"validateRelationshipSyntax",value:function(e){var t=this.model.getReportDefinition(e);return N.default.validateRelationshipSyntax(t)}},{key:"validateSimpleModeRelationship",value:function(e){var t=this.model.getReportDefinition(e);return N.default.validateSimpleModeRelationship(t)}},{key:"cancelChanges",value:function(){var e=this.model;return e.cleanDirty(),N.default.cancelReportChanges(e.reportId)}},{key:"changeType",value:function(e){return this.model.updateType(e),this.loadCategories(e)}},{key:"changeSaveInto",value:function(e){return this.model.changeGlobalType(e),this.loadCategories(this.model.reportType,null,!!e)}},{key:"changeCategory",value:function(e,t){return this.model.updateCategory(e,t),this.model.updateSubCategory(),this.loadSubCategories(e)}},{key:"loadCategories",value:function(e,t,a){var r=this.model,n=e||r.reportType,i=(0,C.isNil)(a)?r.isGlobal:a,o=(0,C.isNil)(t)||!String.isGuidFormat(t)?D.default.getTenantId():t;return N.default.loadCategories(n,o,i).then(r.readCategoryData.bind(r))}},{key:"loadSubCategories",value:function(e){var t=this.model;return!(0,C.isNil)(e)&&String.isGuidFormat(e)?N.default.loadSubCategories(e).then(t.readSubCategoryData.bind(t)):(0,v.resolve)(t.readSubCategoryData())}},{key:"validate",value:function(e){var t=this.model.getGeneralData(),a=D.default.getTenantId();return a&&(t.tenantId=a),e&&(t.name=e),this.saveAsMode&&(t.id=null,this.saveAsMode=!1),this.model.reportName?this.validateReportName(t).then((0,C.get)("messages")):(0,v.resolve)("")}},{key:"setAlertDetails",value:function(e){this.alertDetails.set(e)}},{key:"resetAlertDetails",value:function(){this.alertDetails.reset()}},{key:"changeGlobalType",value:function(e){this.model.changeGlobalType(e)}},{key:"clearCategory",value:function(){this.model.clearCategory()}},{key:"clearSubCategory",value:function(){this.model.clearSubCategory()}},{key:"getBundle",value:function(){return b.default.BUNDLE}},{key:"addNewReportPart",value:function(){this.model.reportFields.reportBody.addReportPart()}},{key:"checkDataObjectLimitation",value:function(e){if(!(0,C.isNil)(e)&&!e)return(0,v.resolve)({success:!1});var t=this.model,a=(0,C.isEmpty)(t.dataSource.dataTree.selectedItems)?this.model.reportDataSource:t.dataSource.dataTree.selectedItems;return((0,C.isNil)(a)?0:a.length)>P.default.advancedSettings.performance.dataSourceLimitValue?(t.updateErrorMessages(b.default.BUNDLE.MESSAGE.M11),(0,v.resolve)({isDisableReport:!0,success:!1})):(0,v.resolve)({success:!0})}},{key:"getUnspecifiedFilterWarning",value:function(){var e=(0,C.getOr)({},"model.reportFields.reportFilter",this),t=e.logic,a=e.filterFields,r="";t&&a&&((0,C.find)(function(e){return e.state!==b.default.OBJECT_STATE.DELETE&&t.indexOf(e.position)<0},a)&&(r=b.default.BUNDLE.MESSAGE.FILTER_WILL_BE_IGNORED));return r}},{key:"validateFilterSyntax",value:function(){var e=(0,C.getOr)({},"model.reportFields.reportFilter",this),t=e.logic,a=e.filterFields,r=a&&(0,C.flow)((0,C.filter)(function(e){return e.state!==b.default.OBJECT_STATE.DELETE}),(0,C.map)(function(e){return e.position}))(a);return t?N.default.validateFilterSyntax(t,r):(0,v.resolve)({success:!0})}},{key:"setSaveAsMode",value:function(e){this.saveAsMode=e}},{key:"setNewReport",value:function(e){this.isNewReport=e}},{key:"detectSchemaChange",value:function(e){var t=this.model.getReportDefinition(b.default.PAGE_NAME.FIELDS);return(e===b.default.PAGE_NAME.DATA_SOURCE?this.model.dataSource.dataTree.hasDynamicStore(!0):this.model.reportFields.dataTree.hasDynamicStore(!0))?A.default.detectSchemaChange(t):(0,v.resolve)({hasChanged:!1})}},{key:"disable",value:function(){this.disabled=!0}},{key:"loadReportDesigner",value:function(e,t,a,r){var n=this.model,i=n.reportId,o=n.subReportFilter,l=(0,C.omit)([],o);!(0,C.isNil)(a)&&(l.page=a);return r&&(l.action=2),(this.model.draftId?A.default.getPrintDraftData(this.model.draftId):(0,C.isNil)(e)?N.default.loadForEdit(i,this.isLoadDraft,!1).then(function(e){return(0,C.isNil)(e.report)?e:e.report}):A.default.loadReportVersion(i,e,l)).then((0,S.action)(function(e){return this.isNewReport||((0,C.isNil)(e.messages)?(n.read(e),t&&t(),(0,C.isNil)(e.tenantId)||D.default.setTenantId(e.tenantId,!0)):this.disableReportDesigner=!(0,C.isEmpty)(e.messages[0].detail)),this.advancedMode=e.advancedMode,this.isCompleteLoad=!0,this.isShowingHeaderFooter=!P.default.doesHideReportHeaderAndFooter(),e}).bind(this))}},{key:"dispose",value:function(){this.disposers&&(0,C.placeholder)(this.disposers).forEach(function(e){e()})}},{key:"savePrintDraft",value:function(){return A.default.postPrintDraftData(this.model.getReportDefinition())}},{key:"validateReport",value:function(){var e=this.model.getReportDefinition();return e.ignoreCheckName=!0,N.default.validate(e)}},{key:"validateCycleRelationships",value:function(){var e=this.model.getReportRelationship();return N.default.validateCycleRelationships(e)}},{key:"updateResults",value:function(){var e=this,t=this.model.getReportDefinition();return N.default.updateResults(t).then(function(a){return a.report.name=t.report.name,a.report.previewRecord=t.report.previewRecord,e.model.updateReportInfo(a.reportKey.key,a.report,!0),a.success&&e.model.read(a.report),a.report}).then(function(t){return t.dynamicQuerySourceFields.length?e.dataSourceStore.updateDynamicQuerySourceFields().then(function(){return{success:!0}}):{success:!0}})}},{key:"resetModel",value:function(){this.model=new O.default}},{key:"init",value:function(){D.default.setCheckDirtyFunction(function(){return!(!(new F.default).checkPrivileges([k.PERMISSION_KEY.ReportsActionsOverwriteExistingReport])||!this.isNewReport&&!this.model.checkSavePermission())&&this.model.checkDirty()}.bind(this),this.cancelChanges.bind(this))}},{key:"destroy",value:function(){D.default.resetCheckDirtyFunction()}},{key:"exportReport",value:function(e,t,a,r,n,i,o){var l=this.model.getReportDefinition();return M.default.export({url:e,reportKey:l.reportKey.key,reportDefinition:(0,y.default)(l.report),format:t,filters:r,draftId:(0,C.get)("draftId",n),subReportFilters:(0,C.get)("subReportFilter",n),queryString:(0,C.get)("queryString",n),tenantId:D.default.getTenantId()},i,o)}},{key:"loadDefaultAccess",value:function(){var e=this;return R.default.loadDefaultAccess(0).bind(this).then(function(t){e.model.reportAccess.populateAccessDefault(t)})}},{key:"updateReportCategory",value:function(e,t){this.model.updateCategory((0,C.get)("id",e),(0,C.get)("name",e)),this.model.updateSubCategory((0,C.get)("id",t),(0,C.get)("name",t))}},{key:"validateReportId",value:function(e){var t=this,a=this.model.reportId,r=this.model;return(0,C.isNil)(a)?(0,v.resolve)(!0):N.default.validateReportIdNoCache(a,!e).then(function(a){if(!a.success)if(e){var n=a.messages,i=!(0,C.isNil)(n)&&(0,C.isArray)(n)&&n.length>0&&!(0,C.isEmpty)(n[0].key)?n[0].messages[0]:z.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_INVALID_REPORT");t.alertDetails.set({errors:[{message:i}],success:!1,key:"report"})}else if(!(0,C.isNil)(a.messages)){var o=[b.default.ERROR_KEY.calculatedfield,b.default.ERROR_KEY.filter,b.default.ERROR_KEY.relationship],l=(0,C.includes)(a.messages[0].key,o)?"report":null;a.messages[0].messages[0]&&r.markDirty(),t.alertDetails.set({errors:(0,C.map)(function(e){return{message:e.messages[0]}},a.messages),success:!1,key:l})}return a.success})}},{key:"setAccessPriority",value:function(e){this.reportAccessPriority=e}},{key:"updateReportListURI",value:function(e){this.reportListURI=e}},{key:"resetShowingHeaderFooter",value:function(){this.isShowingHeaderFooter=!P.default.doesHideReportHeaderAndFooter()}},{key:"syncRelationshipFilters",value:function(){var e=this.fieldsStore,t=this.model,a=this.model.reportFields.reportFilter,r=t.getReportRelationship(),n=(0,C.flow)((0,C.map)(function(e){return e.relationshipKeyJoins.toJS()}),C.flatten,(0,C.filter)({comparisonOperator:"= (Filter)"}))(r||[]);this.removeOutdatedKeyJoinFilters(a,n),this.updateExistingKeyJoinFilters(a,n,e),(0,C.forEach)(function(t){var r=t.foreignFilterAlias,n=(0,C.find)(function(e){return e.isForKeyJoin&&e.alias===r},a.availableFilterFields);if(r&&(0,C.isNil)(n)){a.addFilter({sourceFieldVisible:!1,sourceFieldFilterable:!0,cascading:!1},0);var i=(0,C.find)({querySourceFieldId:t.joinFieldId,sourceDataObjectName:t.joinSourceAlias||t.joinQuerySourceName},e.reportFilters.commonData.querySource);if(i){a.setConfigModeToField(new V.default((0,S.toJS)(i))),a.loadDefaultOperator(i);var o=(0,C.merge)(i,{alias:r,isForKeyJoin:!0,required:!0});a.newestFilter.setFilterDetails(o,!1)}a.disableCascading()}},n),a.resetUpdateResult()}},{key:"removeOutdatedKeyJoinFilters",value:function(e,t){var a=(0,C.filter)(function(e){return e.isForKeyJoin&&(0,C.isNil)((0,C.find)(function(t){return t.foreignFilterAlias===e.alias},t))},e.filterFields);if((0,C.isEmpty)(a))return 0;var r=0;return(0,C.forEach)(function(t){e.removeFilter(t),r++},a),r}},{key:"updateExistingKeyJoinFilters",value:function(e,t,a){(0,C.forEach)(function(e){if(e.isForKeyJoin){var r=(0,C.find)(function(t){return t.foreignFilterAlias===e.alias},t);if(!(0,C.isNil)(r)){var n=(0,C.find)({querySourceFieldId:r.joinFieldId,sourceDataObjectName:r.joinSourceAlias||r.joinQuerySourceName},a.reportFilters.commonData.querySource);e.relationshipId=n.relationshipId,e.sourceDataObjectName=n.sourceDataObjectName,e.setFilterDetails(e.getFilterDetails(),!1)}}},e.availableFilterFields)}},{key:"validateCategoryName",value:function(e){return A.default.validateCategoryName(e)}},{key:"isEnableOverlay",get:function(){return this.isNewReport&&!this.model.hasSelectedDataSource}},{key:"canSaveGlobalReport",get:function(){return!this.model.isGlobal||(0,C.isNil)(D.default.tenantId)&&D.default.currentUser.systemAdmin}},{key:"reportId",get:function(){return this.model.reportId}},{key:"disableSubCategory",get:function(){return(0,C.isEmpty)(this.model.categoryId)||(0,C.isNil)(this.model.categoryId)}},{key:"disableReportType",get:function(){return(0,C.isEmpty)(this.model.reportFields.reportFilter.filterFields)&&this.model.reportFields.reportBody.hasAnyField}},{key:"statusSaveInto",get:function(){return{visible:(0,C.isNil)(D.default.tenantId)&&!!D.default.currentUser.systemAdmin}}},{key:"showCascadingChangedMessage",get:function(){return this.fieldsStore.reportFilters.hasCascadingChanged&&this.fieldsStore.reportFilters.showCascadingChangedMessage}},{key:"needUpdateResult",get:function(){return(0,C.get)("reportFilters.needUpdateResult",this.fieldsStore)}},{key:"statusGlobalCheckbox",get:function(){var e=void 0,t=!0,a=this.model.isGlobal;return this.isNewReport?(e=!1,D.default.currentUser.systemAdmin&&(0,C.isNil)(D.default.tenantId)&&(e=!0,t=!1)):this.model.isGlobal?(e=!0,(D.default.currentUser.isSystemUser&&!D.default.currentUser.systemAdmin&&!(0,C.isNil)(D.default.tenantId)||!D.default.currentUser.isSystemUser&&(0,C.isNil)(D.default.tenantId))&&(e=!1)):(e=!1,D.default.currentUser.systemAdmin&&(0,C.isNil)(D.default.tenantId)&&(e=!0)),{visible:e,disabled:t,checked:a}}},{key:"previewRecord",get:function(){return this.model.previewRecord}}]),e}(),n=Y(r.prototype,"model",[S.observable],{enumerable:!0,initializer:null}),i=Y(r.prototype,"reportAccessPriority",[S.observable],{enumerable:!0,initializer:function(){return null}}),o=Y(r.prototype,"alertDetails",[S.observable],{enumerable:!0,initializer:function(){return new I.default}}),l=Y(r.prototype,"saveAsMode",[S.observable],{enumerable:!0,initializer:function(){return!1}}),s=Y(r.prototype,"disabled",[S.observable],{enumerable:!0,initializer:function(){return!1}}),u=Y(r.prototype,"isNewReport",[S.observable],{enumerable:!0,initializer:null}),d=Y(r.prototype,"disableReportDesigner",[S.observable],{enumerable:!0,initializer:function(){return!1}}),c=Y(r.prototype,"advancedMode",[S.observable],{enumerable:!0,initializer:function(){return!1}}),p=Y(r.prototype,"isCompleteLoad",[S.observable],{enumerable:!0,initializer:null}),f=Y(r.prototype,"globalReportName",[S.observable],{enumerable:!0,initializer:function(){return null}}),h=Y(r.prototype,"localReportName",[S.observable],{enumerable:!0,initializer:function(){return null}}),m=Y(r.prototype,"isShowingHeaderFooter",[S.observable],{enumerable:!0,initializer:function(){return!P.default.doesHideReportHeaderAndFooter()}}),Y(r.prototype,"isEnableOverlay",[S.computed],(0,E.default)(r.prototype,"isEnableOverlay"),r.prototype),Y(r.prototype,"canSaveGlobalReport",[S.computed],(0,E.default)(r.prototype,"canSaveGlobalReport"),r.prototype),Y(r.prototype,"reportId",[S.computed],(0,E.default)(r.prototype,"reportId"),r.prototype),Y(r.prototype,"disableSubCategory",[S.computed],(0,E.default)(r.prototype,"disableSubCategory"),r.prototype),Y(r.prototype,"disableReportType",[S.computed],(0,E.default)(r.prototype,"disableReportType"),r.prototype),Y(r.prototype,"statusSaveInto",[S.computed],(0,E.default)(r.prototype,"statusSaveInto"),r.prototype),Y(r.prototype,"showCascadingChangedMessage",[S.computed],(0,E.default)(r.prototype,"showCascadingChangedMessage"),r.prototype),Y(r.prototype,"needUpdateResult",[S.computed],(0,E.default)(r.prototype,"needUpdateResult"),r.prototype),Y(r.prototype,"statusGlobalCheckbox",[S.computed],(0,E.default)(r.prototype,"statusGlobalCheckbox"),r.prototype),Y(r.prototype,"previewRecord",[S.computed],(0,E.default)(r.prototype,"previewRecord"),r.prototype),Y(r.prototype,"detectReportChange",[S.action],(0,E.default)(r.prototype,"detectReportChange"),r.prototype),Y(r.prototype,"saveReport",[S.action],(0,E.default)(r.prototype,"saveReport"),r.prototype),Y(r.prototype,"saveDraftReport",[S.action],(0,E.default)(r.prototype,"saveDraftReport"),r.prototype),Y(r.prototype,"saveOrSaveDraftReport",[S.action],(0,E.default)(r.prototype,"saveOrSaveDraftReport"),r.prototype),Y(r.prototype,"updateSchedules",[S.action],(0,E.default)(r.prototype,"updateSchedules"),r.prototype),Y(r.prototype,"validateRelationshipSyntax",[S.action],(0,E.default)(r.prototype,"validateRelationshipSyntax"),r.prototype),Y(r.prototype,"validateSimpleModeRelationship",[S.action],(0,E.default)(r.prototype,"validateSimpleModeRelationship"),r.prototype),Y(r.prototype,"cancelChanges",[S.action],(0,E.default)(r.prototype,"cancelChanges"),r.prototype),Y(r.prototype,"changeType",[S.action],(0,E.default)(r.prototype,"changeType"),r.prototype),Y(r.prototype,"changeSaveInto",[S.action],(0,E.default)(r.prototype,"changeSaveInto"),r.prototype),Y(r.prototype,"changeCategory",[S.action],(0,E.default)(r.prototype,"changeCategory"),r.prototype),Y(r.prototype,"loadCategories",[S.action],(0,E.default)(r.prototype,"loadCategories"),r.prototype),Y(r.prototype,"loadSubCategories",[S.action],(0,E.default)(r.prototype,"loadSubCategories"),r.prototype),Y(r.prototype,"validate",[S.action],(0,E.default)(r.prototype,"validate"),r.prototype),Y(r.prototype,"setAlertDetails",[S.action],(0,E.default)(r.prototype,"setAlertDetails"),r.prototype),Y(r.prototype,"resetAlertDetails",[S.action],(0,E.default)(r.prototype,"resetAlertDetails"),r.prototype),Y(r.prototype,"changeGlobalType",[S.action],(0,E.default)(r.prototype,"changeGlobalType"),r.prototype),Y(r.prototype,"clearCategory",[S.action],(0,E.default)(r.prototype,"clearCategory"),r.prototype),Y(r.prototype,"clearSubCategory",[S.action],(0,E.default)(r.prototype,"clearSubCategory"),r.prototype),Y(r.prototype,"addNewReportPart",[S.action],(0,E.default)(r.prototype,"addNewReportPart"),r.prototype),Y(r.prototype,"validateFilterSyntax",[S.action],(0,E.default)(r.prototype,"validateFilterSyntax"),r.prototype),Y(r.prototype,"setSaveAsMode",[S.action],(0,E.default)(r.prototype,"setSaveAsMode"),r.prototype),Y(r.prototype,"setNewReport",[S.action],(0,E.default)(r.prototype,"setNewReport"),r.prototype),Y(r.prototype,"detectSchemaChange",[S.action],(0,E.default)(r.prototype,"detectSchemaChange"),r.prototype),Y(r.prototype,"disable",[S.action],(0,E.default)(r.prototype,"disable"),r.prototype),Y(r.prototype,"loadReportDesigner",[S.action],(0,E.default)(r.prototype,"loadReportDesigner"),r.prototype),Y(r.prototype,"validateReport",[S.action],(0,E.default)(r.prototype,"validateReport"),r.prototype),Y(r.prototype,"validateCycleRelationships",[S.action],(0,E.default)(r.prototype,"validateCycleRelationships"),r.prototype),Y(r.prototype,"updateResults",[S.action],(0,E.default)(r.prototype,"updateResults"),r.prototype),Y(r.prototype,"resetModel",[S.action],(0,E.default)(r.prototype,"resetModel"),r.prototype),Y(r.prototype,"init",[S.action],(0,E.default)(r.prototype,"init"),r.prototype),Y(r.prototype,"destroy",[S.action],(0,E.default)(r.prototype,"destroy"),r.prototype),Y(r.prototype,"validateReportId",[S.action],(0,E.default)(r.prototype,"validateReportId"),r.prototype),Y(r.prototype,"syncRelationshipFilters",[S.action],(0,E.default)(r.prototype,"syncRelationshipFilters"),r.prototype),r);t.default=j,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(76)),n=i(a(230));function i(e){return e&&e.__esModule?e:{default:e}}var o="accessright/";t.default={loadAccessRight:n.default.memoize(function(e){return(0,r.default)(o+"reportDashboard/"+e).get()}),loadTenantSettingAccessRight:function(e){return(0,r.default)(o+"authentication/"+e).get()},loadAccesses:function(e,t){var a={accesses:e,criteria:(t=t||{}).searchCriteria||[],pageIndex:t.pageIndex||1,pageSize:t.pageSize||10,sortOrders:t.sortOrders||[{key:"shareWith",descending:!0}]};return(0,r.default)(o+"load").post(a)},validateAccesses:function(e){return(0,r.default)(o+"validate").post(e)},loadDefaultAccess:function(e){return(0,r.default)(o+"loadAccessDefaults/"+e).get()},loadUsersAccess:function(e){return(0,r.default)(o+"users").post(e)},loadRolesAccess:function(e){return(0,r.default)(o+"roles").post(e)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={FILTER_MODE:{DbStructure:"DbStructure",UserDefined:"UserDefined"},FILTER_LOOKUP_STATUSES:{VALID:0,INVALID_QUERY_SOURCE:1,INVALID_CONNECTION:2,LOOKUP_IS_TENANT_FIELD:4,LOOKUP_INVISIBLE:8,DISPLAY_IS_TENANT_FIELD:16,DISPLAY_INVISIBLE:32},CONSTRAINTS:{presence:{presence:!0,get message(){return i.default.getText("COMMON_CONSTRAINT_REQUIRED")}}},FILTER_LOOKUP_TYPES:{NONE:0,LOOKUP_KEY:1,USER_DEFINED:2}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(76),i=(r=n)&&r.__esModule?r:{default:r},o=a(1);t.default={getAllTenantGroups:function(){return(0,i.default)("tenant/allTenantGroups/").get()},getAllTenantList:function(){return(0,i.default)("tenant/allTenants/").get()},getAllBasicTenantList:function(){return(0,i.default)("tenant/basicInfos/").get()},getTenantGroupsHierarchy:function(){return(0,i.default)("tenant/tenantGroupsHierarchy/").get()},getAllNameTenantList:function(){return(0,i.default)("tenant/namesOnly/").get()},getAllModulesOfLicense:function(){return(0,i.default)("License/currenttoken/").get().then(function(e){return e&&e.modules})},saveTenant:function(e){return(0,i.default)("tenant/",{prefer:"minimal"}).post(e)},deleteTenant:function(e){return(0,i.default)("tenant/"+e).delete()},activeTenant:function(e){return(0,i.default)("tenant/active/"+e).post()},deactiveTenant:function(e){return(0,i.default)("tenant/deactive/"+e).post()},loadTenant:function(e){return(0,i.default)((0,o.isNil)(e)?"tenant/":"tenant/"+e,{prefer:"minimal"}).get()},getCategoryAccessibility:function(e){return(0,i.default)("tenant/availableCategory/"+e).get()},loadPartialAccessLimits:function(e){return(0,i.default)("tenant/accessLimits").post(e)},loadPartialScheduleLimits:function(e){return(0,i.default)("tenant/scheduleLimits").post(e)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};var o={SUNDAY:1,MONDAY:2,TUESDAY:3,WEDNESDAY:4,THURSDAY:5,FRIDAY:6,SATURDAY:7};t.default={DAYOFWEEK:o,RECURRENCE_PATTERN:[{value:0,label:"daily"},{value:1,label:"weekly"},{value:2,label:"monthly"},{value:3,label:"yearly"}],RECURRENCE_REPORTLIST:[{value:"2",get label(){return i.default.getText("COMMON_LABEL_EVERY_DATE")}},{value:"3",get label(){return i.default.getText("COMMON_LABEL_EVERY_WEEKDAY")}},{value:"4",get label(){return i.default.getText("COMMON_LABEL_EVERY_WEEK")}},{value:"5",get label(){return i.default.getText("COMMON_LABEL_EVERY_TWO_WEEK")}},{value:"6",get label(){return i.default.getText("COMMON_LABEL_EVERY_MONTH")}},{value:"7",get label(){return i.default.getText("COMMON_LABEL_EVERY_QUARTER")}},{value:"8",get label(){return i.default.getText("SCHEDULE_CONSTANTS_RECURRENCE_REPORTLIST_CUSTOM_RECURRENCE")}}],RECURRENCE_ALERTLIST:[{value:"0",get label(){return i.default.getText("SCHEDULE_CONSTANTS_RECURRENCE_ALERTLIST_ALERT_HOURLY")}},{value:"1",get label(){return i.default.getText("SCHEDULE_CONSTANTS_RECURRENCE_ALERTLIST_ALERT_DAILY")}},{value:"8",get label(){return i.default.getText("SCHEDULE_CONSTANTS_RECURRENCE_REPORTLIST_CUSTOM_RECURRENCE")}}],ORDINAL_LIST:[{value:"1",get label(){return i.default.getText("SCHEDULE_CONSTANTS_ORDINAL_LIST_FIRST")}},{value:"2",get label(){return i.default.getText("SCHEDULE_CONSTANTS_ORDINAL_LIST_SECOND")}},{value:"3",get label(){return i.default.getText("SCHEDULE_CONSTANTS_ORDINAL_LIST_THIRD")}},{value:"4",get label(){return i.default.getText("SCHEDULE_CONSTANTS_ORDINAL_LIST_FOURTH")}},{value:"100",get label(){return i.default.getText("SCHEDULE_CONSTANTS_ORDINAL_LIST_LAST")}}],DAYNAME_LIST:[{value:o.SUNDAY,label:"Sunday"},{value:o.MONDAY,label:"Monday"},{value:o.TUESDAY,label:"Tuesday"},{value:o.WEDNESDAY,label:"Wednesday"},{value:o.THURSDAY,label:"Thursday"},{value:o.FRIDAY,label:"Friday"},{value:o.SATURDAY,label:"Saturday"}],MONTHNAME_LIST:[{value:"1",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_JANUARY")}},{value:"2",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_FEBRUARY")}},{value:"3",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_MARCH")}},{value:"4",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_APRIL")}},{value:"5",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_MAY")}},{value:"6",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_JUNE")}},{value:"7",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_JULY")}},{value:"8",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_AUGUST")}},{value:"9",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_SEPTEMBER")}},{value:"10",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_OCTOBER")}},{value:"11",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_NOVEMBER")}},{value:"12",get label(){return i.default.getText("SCHEDULE_CONSTANTS_MONTHNAME_LIST_DECEMBER")}}],DATE_SIMPLE_FORMAT:"MM/DD/YYYY",DEFAULT_OCCURRENCE:1},e.exports=t.default},function(e,t,a){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.d3=void 0;var n=s(a(2)),i=s(a(3)),o=a(1),l=s(a(2268));function s(e){return e&&e.__esModule?e:{default:e}}var u=15,d=function(){return"undefined"!=typeof window?window:void 0},c={};var p=t.d3=function(){if(c.d3)return c.d3;var t,r=function(){var e=d(),t=void 0;return(0,o.isUndefined)(e.d3)||(t=e.d3,e.d3=void 0),t}();return e.d3=a(520),c.d3=e.d3,t=r,d().d3=t,c.d3}(),f=function(){function e(t,a,i){var s=this;(0,n.default)(this,e),r(!(0,o.isUndefined)(t),"Container must be provided."),this.container=t;var d=this.container,c=d.offsetWidth,f=d.offsetHeight;if(p.select(this.container).selectAll("*").remove(),Math.min(c,f)<=u)this.container.innerHTML='',i();else{var h=p.select(this.container).append("div").classed("d3-container",!0);this.svg=h.append("svg"),this.renderingServices=new l.default(this.svg,h.node()),this.renderingServices.draw(a).then(i).then(function(){return s.hasRendered=!0})}}return(0,i.default)(e,[{key:"destroy",value:function(){c.d3=null,this.svg.remove()}}]),e}();t.default=f}).call(t,a(107),a(42))},,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(520));t.default={SYMBOL_LIST:[r.symbolCircle,r.symbolDiamond],SYMBOL_SIZE:40,MARGIN:{left:10,right:10,top:10,bottom:15},TOOLTIP_VERTICAL_SPACING:50,TOOLTIP_HORIZONTAL_SPACING:25,TRANSITION_DURATION:500,ANIMATION_PORTION:20,HOVER_OPACITY:.7,LABEL_ADDITION_MARGIN:10,LABEL_BASELINE_SHIFT:.92,DISABLE_LEGEND_COLOR:"#CCC",LAYOUT_CLASSES:{background:{class:"d3-background","z-index":0},plotBackground:{class:"d3-plot-background","z-index":0},seriesGroup:{class:"d3-series-group","z-index":1},labelGroup:{class:"d3-label-group","z-index":2},legend:{class:"d3-legend","z-index":3}},TREEMAP_BANNER_HEIGHT:20},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=A(a(23)),i=A(a(2)),o=A(a(3)),l=A(a(79)),s=A(a(2768)),u=A(a(16)),d=a(5),c=A(a(1329)),p=A(a(2769)),f=A(a(2772)),h=A(a(2779)),m=A(a(709)),g=A(a(2780)),E=A(a(2785)),y=A(a(547)),v=A(a(2790)),T=A(a(2792)),_=A(a(2794)),S=A(a(1333)),C=A(a(2796)),b=A(a(79)),N=a(1);function A(e){return e&&e.__esModule?e:{default:e}}function R(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var O=["setupAndLicense","tenantManagement","copyManagement","securityPolicies","databaseMapping","cachingConfiguration","exportingConfiguration"],I=[],D=(R((r=function(){function e(t){(0,i.default)(this,e),this.settingLevel=new s.default,this.contextMenu=new c.default,this.licenseChecker=new p.default,this.dataModel=new f.default,this.advanceSettings=new h.default,this.tenantManagement=new m.default(t),this.schedulingSearch=new g.default,this.emailConfiguration=new E.default(t),this.machineLearning=new S.default,this.nlqConfigurationStore=new C.default,this.reportConfiguration=new _.default(t),this.cachingConfiguration=new y.default(t),this.googleMapConfiguration=new v.default(t),this.exportingConfiguration=new T.default(t),(0,N.forEach)((0,N.invoke)("init"),this.getInstances())}return(0,o.default)(e,[{key:"destroy",value:function(){(0,N.forEach)((0,N.invoke)("destroy"),this.getInstances())}},{key:"getInstances",value:function(){return[this.contextMenu,this.licenseChecker,this.dataModel,this.advanceSettings,this.tenantManagement,this.schedulingSearch,this.emailConfiguration,this.reportConfiguration,this.cachingConfiguration,this.machineLearning,this.nlqConfigurationStore,this.exportingConfiguration,this.googleMapConfiguration]}},{key:"loadSettingLevel",value:function(){var e=this;l.default.getSystemMode().then(function(t){e.settingLevel.loadInitial(t),!t&&e.loadTenants()})}},{key:"loadTenants",value:function(e){return l.default.getTenants().then(this.settingLevel.readTenants.bind(this.settingLevel,e))}},{key:"changeSystemMode",value:function(e){return"Tenant"===e.value?this.loadTenants(!0):this.settingLevel.setSelectedTenant(null)}},{key:"onlyShowTenant",value:function(e){u.default.onlyShowTenant=e,e&&(u.default.enableSystemSetting(e),!u.default.tenantId&&this.loadTenants(!0))}},{key:"checkSettingLevel",value:function(e){e=e||this.contextMenu.contextMenuActiveLink,u.default.setDisableSettingLevel(O.indexOf(e)>-1),this.onlyShowTenant(I.indexOf(e)>-1)}},{key:"checkDatabaseSetup",value:function(){return b.default.databaseSetup()}}]),e}()).prototype,"loadSettingLevel",[d.action],(0,n.default)(r.prototype,"loadSettingLevel"),r.prototype),R(r.prototype,"changeSystemMode",[d.action],(0,n.default)(r.prototype,"changeSystemMode"),r.prototype),R(r.prototype,"onlyShowTenant",[d.action],(0,n.default)(r.prototype,"onlyShowTenant"),r.prototype),R(r.prototype,"checkSettingLevel",[d.action],(0,n.default)(r.prototype,"checkSettingLevel"),r.prototype),r);t.default=D,e.exports=t.default},,,,function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return"undefined"!=typeof window?window:void 0},i={};function o(){var e=n(),t=void 0;return void 0!==e.Highcharts&&(t=e.Highcharts,e.Highcharts=void 0),t}function l(e){n().Highcharts=e}t.default={highcharts:function(){if(i.izendaHighCharts)return i.izendaHighCharts;var e=o();return i.izendaHighCharts=r.Highcharts=a(301),a(1526),l(e),i.izendaHighCharts}(),treemap:function(){if(i.treemap)return i.treemap;var e=o();return n().Highcharts=a(301),i.treemap=a(1527),l(e),i.treemap}(),heatmap:function(){if(i.heatmap)return i.heatmap;var e=o();return n().Highcharts=a(301),i.heatmap=a(1528),l(e),i.heatmap}(),funnel:function(){if(i.funnel)return i.funnel;var e=o();return n().Highcharts=a(301),i.funnel=a(1529),l(e),i.funnel}(),solidGauge:function(){if(i.solidGauge)return i.solidGauge;var e=o();return n().Highcharts=a(301),i.solidGauge=a(1530),l(e),i.solidGauge}(),enhanceHighcharts:function(){if(i.hightChartMore)return i.hightChartMore;var e=o();return n().Highcharts=a(301),i.hightChartMore=a(1531),l(e),i.hightChartMore}(),highmaps:function(){if(i.highmaps)return i.highmaps;var e=o();return i.highmaps=a(1532),l(e),i.highmaps}()},e.exports=t.default}).call(t,a(107))},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(84)),n=l(a(588)),i=l(a(41)),o=a(1);function l(e){return e&&e.__esModule?e:{default:e}}var s={getAccessToken:function(){if(i.default.currentUserContext.token)return i.default.currentUserContext.token;var e=n.default.get(r.default.HEADER_KEYS.access_token);return(0,o.isNil)(e)?null:e},setAccessToken:function(e){n.default.set(r.default.HEADER_KEYS.access_token,e)},getSelectedTenant:function(){return n.default.get(r.default.HEADER_KEYS.selected_tenant)},setSelectedTenant:function(e){n.default.set(r.default.HEADER_KEYS.selected_tenant,e)},removeSelectedTenant:function(){n.default.remove(r.default.HEADER_KEYS.selected_tenant)},removeAuthCookies:function(){n.default.remove(r.default.HEADER_KEYS.access_token),n.default.remove(r.default.HEADER_KEYS.selected_tenant)}};t.default=s,e.exports=t.default},,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(0),i=(r=n)&&r.__esModule?r:{default:r};var o=(0,a(9).observer)(function(e){var t=e.className;return e.store.isLoading&&i.default.createElement("div",{className:t},i.default.createElement("div",{className:"izenda-LazyLoadingIndicator"},i.default.createElement("span",null),i.default.createElement("span",null),i.default.createElement("span",null)))});o.displayName="LazyLoadingBar",o.defaultProps={store:{isLoading:!0}},t.default=o,e.exports=t.default},,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(20),i=a(1),o=a(5),l=a(110),s=(r=l)&&r.__esModule?r:{default:r},u=a(18),d=a(97),c=a(102);var p=d.SUB_REPORT.ERROR_MESSAGE;t.default={buildFilterDataCommon:function(e,t,a){var r=a.previewDataFieldsMapping,n=a.fieldCollection,l={success:!0},s=(0,i.flow)(o.toJS,(0,i.map)((0,i.mapValues)(function(e){return(0,i.isNull)(e)||(0,i.isEqual)("null",e)?c.DEFAUFT_VALUE.NULL:(0,i.isEqual)("",e)?c.DEFAUFT_VALUE.BLANK:(0,i.toString)(e)})))(e),d=(0,i.flow)(i.trim,i.toUpper),f=[],h=t.map(function(e,t){var a=d(e.fieldNameAlias),o=(0,i.find)(function(e){return d(e.fieldNameAlias)===a},r),s=(0,i.find)(function(e){return d(e.name)===a},n),u=(0,i.get)("properties.dataFormattings.function",s),c=(0,i.get)("properties.dataFormattings.format.formatId",s);return o&&s||(l.success=!1,f.push(e.fieldNameAlias)),{mappingField:e,mappingFieldIndex:t,dataFormat:c||void 0,function:u||void 0,columnName:(0,i.get)("columnName",o),dataType:(0,i.get)("field.dataFieldType",s)}});if(!l.success)return l.errors=String.format(p.CANT_RESOLVE_FIELD,f.join(", ")),l;var m=(0,i.uniq)((0,i.map)("columnName",h)),g=(0,i.pick)(m);if(1!=(s=(0,i.uniqWith)(function(e,t){return(0,i.isEqual)(g(e),g(t))},s)).length){l.success=!1;var E=[];return(0,i.forEach)(function(e){1!==(0,i.uniq)((0,i.map)(e,s)).length&&E.push((0,i.flow)((0,i.filter)({columnName:e}),(0,i.map)("mappingField.fieldNameAlias"),i.uniq)(h))},m),E=(0,i.uniq)(E),l.errors=String.format(p.MULTIPLE_VALUE,E.join(", ")),l}s=(0,i.head)(s);var y=[];return h=(0,i.map)(function(e){var t=(0,i.get)(e.columnName,s),a=(0,i.get)(u.COLUMN_NAME_PREFIX.ORIGINAL_VALUE+e.columnName,s);return(0,i.isUndefined)(t)&&(l.success=!1,y.push(e.mappingField.fieldNameAlias)),(0,i.flow)((0,i.assign)(i.placeholder,{value:t,originalValue:a}),(0,i.unset)("columnName"))(e)},h),l.success?(0,i.flow)((0,i.set)("fieldMapping",h),(0,i.omit)(["errors"]))(l):(l.errors=String.format(p.CANT_RESOLVE_FIELD,y.join(", ")),l)},buildFilterDataForEmbededReportPart:function(e,t,a,r){var n={filters:(0,i.map)(function(e){var t=e.mappingField.fieldNameInSubReport;return(0,i.flow)((0,i.set)("key",t),(0,i.set)("linkReportFilter",!0),(0,i.omit)(["mappingField","mappingFieldIndex"]))(e)},e)};return a.reportFilter?(0,i.assign)(n,{masterReportId:t.reportId,inheritMasterReportFilter:!0,overridingFilterValue:r}):n},buildFilterDataForURL:function(e,t,a,r,n){var o=(0,i.find)(function(e){return e.element===a},t.elementInfo),l=o.container,s=o.position,d=t.reportId,c=t.id;if(!o||!String.isGuidFormat(c))return{success:!1,errors:p.NEED_UPDATE_RESULT};var f=(0,i.map)(function(e){return(0,i.flow)((0,i.assign)(i.placeholder,{key:String.format(u.FILTER_URL.SUB_REPORT_FIELD_MAPPING_KEY.FORMAT,s,e.mappingFieldIndex)}),(0,i.omit)(["mappingField","mappingFieldIndex"]),(0,i.omitBy)(i.isUndefined))(e)},e),h={success:!0,fieldsMapping:(0,i.isEmpty)(f)?void 0:f,overridingFilterValue:(0,i.isEmpty)(n)||!r.reportFilter?void 0:n,inheritMasterReportFilter:!!r.reportFilter||void 0};return h.fieldsMapping&&(h=(0,i.assign)(h,{masterReportId:d,containerName:l,masterReportPartId:c})),(h.fieldsMapping||h.overridingFilterValue||h.inheritMasterReportFilter)&&(h=(0,i.assign)(h,{masterReportId:d})),h},resolveSubReportFilter:function(e){var t=(0,i.get)("masterReportId",e),a=(0,i.get)("fieldsMapping",e),r=(0,i.get)("masterReportPartId",e),o=(0,i.get)("containerName",e);return t&&r&&o&&!(0,i.isEmpty)(a)?s.default.loadForEdit(t).then(function(e){return(0,i.isNil)(e.report)?e:e.report}).then(function(t){var n=/fm(\d+)_(\d+)/,l=(0,i.get)([0,"key"],a),s=(0,i.toNumber)(n.exec(l)[1]),u=(0,i.flow)((0,i.get)("reportPart"),(0,i.find)({id:r}),(0,i.getOr)([],["reportPartContent",o,"elements"]),(0,i.find)({position:s}),(0,i.get)("properties.drillDown.subReport.mappingFields"),function(e){return(0,i.isNil)(e)?[]:(0,i.map)(function(t){var a=t.key,r=(0,i.toNumber)(n.exec(a)[2]);return(0,i.flow)((0,i.omit)(["key"]),(0,i.assign)({key:e[r].fieldNameInSubReport,linkReportFilter:!0}))(t)},a)})(t),d=(0,i.compact)((0,i.concat)(e.filters,u));return d=(0,i.isEmpty)(d)?void 0:d,(0,i.flow)((0,i.omit)(["fieldsMapping","masterReportPartId","containerName"]),(0,i.set)("filters",d),(0,i.omitBy)(i.isUndefined))(e)}):(0,n.resolve)(e)}},e.exports=t.default},,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=C(a(6)),s=C(a(2)),u=C(a(3)),d=C(a(7)),c=C(a(8)),p=a(0),f=C(p),h=C(a(13)),m=C(a(35)),g=C(a(1752)),E=C(a(1758)),y=a(9),v=C(a(10)),T=C(a(42)),_=a(1),S=(a(1051),C(a(16)));function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,y.observer)((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));o.call(a);var r=a.props,n=r.layoutStore,i=r.layoutData,u=r.snapToGrid;return!r.printingMode&&n.setSnapToGrid(u),n.setLayout(i,!0),a.onMoveStart=a.onInteractStart(!0),a.onMove=a.onInteracting(!0),a.onMoveStop=a.onInteractStop(!0),a.onResizeStart=a.onInteractStart(!1),a.onResize=a.onInteracting(!1),a.onResizeStop=a.onInteractStop(!1),a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,a=t.snapToGrid,r=t.layoutData,n=e.layoutStore;if(e.snapToGrid===a||e.printingMode||n.setSnapToGrid(e.snapToGrid),!(0,_.isEqual)(e.layoutData,r)){var i=m.default.findDOMNode(this.gridItemsContainer);i&&i.clientWidth>0&&i.clientWidth!==n.innerWidth&&n.setViewWidth(i.clientWidth),n.setLayout(e.layoutData,!1),n.resize=!1,n.layout.length&&e.onUpdateItemPositions&&e.onUpdateItemPositions(n.layout.map(function(e){return{id:e.id,top:e.gridTop,left:e.gridLeft,width:e.gridWidth,height:e.gridHeight}}))}}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.layoutStore,a=e.layoutStore,r=a.isFullSize,n=a.fullSizedItem,i=a.isSnapEditOn;(r||!!n)&&this.scrollTo({top:0,left:0}),i&&t.compactLayout()}},{key:"render",value:function(){var e,t=this.props,a=t.layoutStore,r=t.editable,n=t.allowAddInline,i=t.onAddItem,o=t.className,l=t.gridItemMenu,s=t.printingMode,u=t.maxWidth,d=t.horizontalAlign,c=t.children,p=t.fullHeight,h=t.stickyScrollBottom,m=t.alwaysShowHorizontalScroll,y=t.alwaysShowVerticalScroll,T=(t.gridHeight,a.fullSizedItem),_=a.isFullSize,S=a.height,C=a.width,b=(0,v.default)("izenda-GridView",o),N=_||!!T;e=this.getHeaderHeight();var A={height:s?null:e},R=r?f.default.createElement(g.default,{layoutStore:a,allowAddInline:n,gridItemMenu:l,onAddItem:i,editable:r,renderHeight:e}):null,O=f.default.Children.map(c,this.attachViewProps),I=this.getScrollBoxStyle();d&&(I.width=u||C,I.margin="auto");var D=s?"u-posRelative":"";return f.default.createElement(E.default,{stickyScrollBottom:h,alwaysShowHorizontalScroll:m,alwaysShowVerticalScroll:y,ref:this.setGridItemsContainer,printingMode:s,className:b,style:A,editable:r,fullSize:N,fullHeight:p,scrollBoxStyle:I,viewClassName:D,gridLines:R,gridItems:O,layoutStore:a})}},{key:"getScrollBoxStyle",value:function(){var e=this.props,t=e.gridHeight,a=e.layoutStore,r=e.printingMode,n=e.forDashboard,i=e.fullHeight,o=a.height;return i?{}:t&&o>t?{height:t}:r&&!n?{minHeight:o+"px",overflow:"hidden"}:{height:o+"px"}}},{key:"getScrollBox",value:function(){return(0,_.get)("refs.scrollBox",this.gridItemsContainer)}}]),t}(p.Component),n.propTypes={layoutStore:y.propTypes.observableObject,layoutData:h.default.array,editable:h.default.bool,snapToGrid:h.default.bool,allowAddInline:function(e,t){var a=e.editable,r=e[t];(0,T.default)((0,_.isBoolean)(r),"allowAddInline must be boolean"),(0,T.default)(a||!r,"Only allowAddInline when is editable")},gridItemMenu:h.default.element,onAddItem:h.default.func,onUpdateItemPositions:h.default.func,showLoading:h.default.bool,printingMode:h.default.bool},n.defaultProps={editable:!1,allowAddInline:!1,showLoading:!0,snapToGrid:!1,printingMode:!1},o=function(){var e=this;this.setGridItemsContainer=function(t){e.gridItemsContainer=t},this.getHeaderHeight=function(){var t=e.props,a=t.editable,r=t.className,n=t.layoutData,i=t.layoutStore.height;if(!S.default.isMobile||"report-format-footer"!==r&&"report-format-header"!==r||(i="auto"),!S.default.isMobile&&"report-format-header"===r&&n&&!a){var o=n.map(function(e){return e.height+e.y});i=25*o.sort(function(e,t){return e-t})[o.length-1]}return i},this.attachViewProps=function(t){var a=e.props,r=a.layoutStore,n=a.editable,i=a.showLoading,o=r.infinityRows,l=r.infinityCols,s=r.fullSizedItem,u=r.cellWidth,d=r.cellHeight,c=r.minItemWidth,p=r.minItemHeight,h=r.gridWidth,m=r.gridHeight,g=r.width,E=r.height,y=t.props,v=y.id,T=y.useItemMinHeight,_=y.minHeight,S=r.getLayoutItem(v),C=!!s&&!S.isFullSize,b={editable:n,layoutItem:S,scrollTo:e.scrollTo,getScrollTop:e.getScrollTop,cellWidth:u,cellHeight:d,minWidth:c,minHeight:T?_:p,maxWidth:l?1/0:h,maxHeight:o?1/0:m,onMoveStop:e.onMoveStop,onMoveStart:e.onMoveStart,onMove:e.onMove,onResizeStop:e.onResizeStop,onResizeStart:e.onResizeStart,onResize:e.onResize,onSizeChanged:e.onItemSizeChanged,showLoading:i,isHidden:C,containerWidth:g,containerHeight:E};return f.default.cloneElement(t,b)},this.getScrollTop=function(){var t=e.getScrollBox();return t?t.getScrollTop():0},this.scrollTo=function(t){var a=e.getScrollBox();return a&&a.scrollTo(t)},this.onInteractStart=function(t){return function(t,a){e.props.layoutStore.setOverlayPosition(a)}},this.onInteractStop=function(t){return function(a,r){var n=e.props,i=n.layoutStore,o=n.layoutStore.isSnapEditOn,l=e.props.onUpdateItemPositions;if(o){var s=i.getLastCompactedLayout();s.length>0&&l&&l(s,!0)}else{var u=i.updatePosition(a,r,t);l&&l(u,!0)}}},this.onInteracting=function(t){return function(a,r){var n=e.props,i=n.layoutStore,o=n.layoutStore.isSnapEditOn,l=i.snap(r);o?i.snapArrange(a.id,l,t):i.setOverlayPosition(l)}},this.onItemSizeChanged=function(t,a,r){if(!t.isLoading||!t.isLoading()){var n=e.props,i=n.layoutStore,o=n.onUpdateItemPositions,l=t.gridWidth,s=t.gridHeight;i.resize=!0,i.updateLayoutItemSize(t,a,r),l===t.gridWidth&&s===t.gridHeight||o&&o([{id:t.id,top:t.gridTop,left:t.gridLeft,width:t.gridWidth,height:t.gridHeight}])}}},r=i))||r;t.default=b,e.exports=t.default},,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=S(a(6)),l=S(a(2)),s=S(a(3)),u=S(a(7)),d=S(a(8)),c=a(0),p=S(c),f=S(a(13)),h=S(a(10)),m=a(9),g=S(a(1052)),E=S(a(1766)),y=S(a(1054)),v=S(a(1768)),T=S(a(1055)),_=a(1);function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,m.observer)(function(e){var t=e.layoutItem,a=e.isKPILayout,r=e.interpolatingStyle,n=e.mixinResizable,i=e.mixinDraggable,o=e.isHidden,l=e.targetTop,s=e.targetLeft,u=e.targetWidth,d=e.targetHeight,c=e.onMeasureChange,f=e.printingMode,m=e.isFirstItem,g=!f&&t.autoSize,E={top:l,left:s,width:u,height:d},T=f&&e.doesBreakPage;e.fillWidth&&(r.width=100*t.gridWidth/e.cols+"%",r.left=100*t.gridLeft/e.cols+"%");var _=t.isFullSize?v.default.transformToFullSizeStyle(r):v.default.transformToDefaultStyle(r,!0,T,f,g,m);_.left+=1,_.top+=1;var S=(0,h.default)({u_hidden:o,"izenda-GridItemAnimation":!a});return o&&(_.position="fixed",_.zIndex=-1e3,_.top=-1e5,_.left=-1e5),i(n(p.default.createElement("div",{className:S,style:_},p.default.createElement(y.default,{onChange:c},e.children)),E),E)}),b=(0,m.observer)((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;dn?u=n:d<0?d=0:d>i&&(d=i);var c=100*u/n,p=-100*d/i+100;return{h:a.hsl.h,s:c,v:p,a:a.hsl.a,source:"rgb"}},hueCalculateChange:function(e,t,a,r){!t&&e.preventDefault(),r.clientWidth;var n=r.clientHeight,i=("number"==typeof e.pageX?e.pageX:e.touches[0].pageX,"number"==typeof e.pageY?e.pageY:e.touches[0].pageY),o=window.self!==window.top||window.document!==r.ownerDocument,l=(r.getBoundingClientRect().left,o||window.pageXOffset,i-(r.getBoundingClientRect().top+(o?0:window.pageYOffset)));if("vertical"===a.direction){var s;if(s=l<0?359:l>n?0:360*(-100*l/n+100)/100,a.hsl.h!==s)return{h:s,s:a.hsl.s,l:a.hsl.l,a:a.hsl.a,source:"rgb"}}return null},convertHexToRGBA:function(e,a){var r=t(e);return r.setAlpha(a),r.toRgbString()}}}()},,,,function(e,t,a){"use strict";(function(a){Object.defineProperty(t,"__esModule",{value:!0}),t.default={isNodeCollided:function(e,t){var a=e.offsetTop,r=e.offsetLeft,n=r+e.offsetWidth,i=a+e.offsetHeight,o=t.offsetTop,l=t.offsetLeft,s=l+t.offsetWidth;return!(a>=o+t.offsetHeight||n<=l||i<=o||r>=s)},findScrollableParent:function(e){for(;e&&e.parentNode;)if((e=e.parentNode)!==document&&e!==document.documentElement&&!(e instanceof DocumentFragment)){var t=window.getComputedStyle(e),a=t.getPropertyValue("overflow-y")||t.getPropertyValue("overflow");if("auto"===a||"scroll"===a)return e}return null},findRelativePositionToAcesstor:function(e,t){var r=a(e).offset(),n=a(t).offset();return{top:r.top-n.top,left:r.left-n.left}}},e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(76),i=(r=n)&&r.__esModule?r:{default:r},o=a(1);var l="advancedSetting/";t.default={BASE_PATH:l,loadPerformance:function(e){var t=(0,o.isEmpty)(e)?"":e;return(0,i.default)(l+"Performance/"+t).get()},savePerformance:function(e){return(0,i.default)(l+"Performance/").post(e)},loadOther:function(e){var t=(0,o.isEmpty)(e)?"":e;return(0,i.default)(l+"miscSetting/"+t).get()},saveOther:function(e){return(0,i.default)(l+"miscSetting/").post(e)},getAllCategories:function(e){return(0,i.default)(l+"category/"+e).get()},saveCategories:function(e){return(0,i.default)(l+"category/").post(e)},deleteCategory:function(e){return(0,i.default)(l+"category/"+e).delete()},getTenantSecurity:function(e){var t=(0,o.isEmpty)(e)?"":e;return(0,i.default)(l+"security/"+t).get()},saveTenantSecurity:function(e){return(0,i.default)(l+"security/").post(e)},getDefaultImageUrl:function(e){return(0,o.isNil)(e)?(0,i.default)(l+"defaultImageUrl").get():(0,i.default)(l+"defaultImageUrl?tenantId="+e).get()},saveDefaultImageUrl:function(e){return(0,i.default)(l+"defaultImageUrl").post(e)},getDefaultTheme:function(e){var t=(0,o.isNil)(e)?l+"defaultTheme":l+"defaultTheme/"+e;return(0,i.default)(t).get()},saveDefaultTheme:function(e){return(0,i.default)(l+"defaultTheme").post(e)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(76)),n=a(1);i(a(230));function i(e){return e&&e.__esModule?e:{default:e}}t.default={getRoleList:function(e,t,a){var i="role/all/"+(e=e||"")+"?includeHashcode="+(t=(0,n.toString)(!!t))+"&basicInfo="+(a=(0,n.toString)(!!a));return(0,r.default)(i).get()},getRoleTemplates:function(e){return(0,r.default)("role/roleTemplates/"+(e||"")).get()},getTypedRole:function(e,t){return t=t||"",(0,r.default)(String.format("{0}availableRole/{1}/{2}","role/",e,t)).get()},getTypedCategory:function(e,t){return t=t||"",(0,r.default)(String.format("{0}availableCategory/{1}/{2}","role/",e,t)).get()},loadLazyTypedCategory:function(e){return(0,r.default)(String.format("{0}availableCategory/","role/")).post(e)},activateRole:function(e,t){var a=t?"/"+t:"";return(0,r.default)("role/active/"+e+a).post()},deactivateRole:function(e,t){var a=t?"/"+t:"";return(0,r.default)("role/deactive/"+e+a).post()},deleteRole:function(e){return(0,r.default)("role/"+e).delete()},loadRole:function(e){return(0,r.default)("role/"+e,{prefer:"minimal"}).get()},saveRole:function(e){return(0,r.default)("role/",{prefer:"minimal"}).post(e)},loadPermissionSummary:function(e){return e=e||"",(0,r.default)("role/summaries/"+e).get()},loadAllowedSharingRoles:function(e){return(0,r.default)("role/allowedSharingRoles").post(e)},loadAllowedSharingRolesPaging:function(e){return(0,r.default)("role/allowedSharingRolesPaging").post(e)},loadPartialAccessLimits:function(e){return(0,r.default)("role/accessLimits").post(e)},loadPartialScheduleLimits:function(e){return(0,r.default)("role/scheduleLimits").post(e)},loadPartialDataModelAccess:function(e){return(0,r.default)("role/loadPartialDataModelAccess").post(e)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={ALERT_TYPES:{SUCCESS:"success",INFO:"info",WARNING:"warning",ERROR:"error"},SHOW_TYPES:{ALWAYS:"always",BRIEF:"brief",RESET:"reset"},DISPLAY_TIME:1e4},e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n=d(a(76)),i=d(a(1150)),o=d(a(106)),l=d(a(43)),s=d(a(497)),u=a(1);function d(e){return e&&e.__esModule?e:{default:e}}t.default={export:function(e,t,a){r(e.format,"Format must be defined"),r(e.reportId||e.dashboardId||e.reportDefinition,"Ether report or dashboard ID must be set");var d=(0,u.omit)("format",e);if(d.fileSessionKey=d.reportId||d.dashboardId,l.default.Integration&&(d.token=(new o.default).getAccessToken()),e.format===s.default.HTML.value)return(0,n.default)("export/html").post(d);var c="export/"+e.format;return(0,i.default)(c).post(d,t,a,this.checkExportStatus)},email:function(e,t){var a=(0,u.assign)(e,{deliveryType:"Email",deliveryMethod:t.deliveryMethod,exportAttachmentType:t.attachmentType,emailSubject:t.subject,emailBody:t.body,recipients:t.to,additionalRecipients:t.cc,subscriptionCommonFilterFields:t.subscriptionCommonFilterFields,subscriptionFilterFields:t.subscriptionFilterFields});return(0,n.default)("export/email").post(a)},exportPerformanceStatisticsTrend:function(){return(0,i.default)("export/performanceStatisticsTrend").post({fileSessionKey:"Performance Statistics Trend"})},checkExportStatus:function(e){var t="export/checkExportStatus/"+e;return(0,n.default)(t).get()},validateExportQueue:function(e){return(0,n.default)("export/exportQueueValidate/").post(e)},validateExportQueueAsync:function(e){return(0,n.default)("export/exportQueueAsyncValidate/").post(e)},saveExportQueue:function(e){return(0,n.default)("export/exportQueue/").post(e)},getExportQueueFile:function(e){return(0,i.default)("export/exportQueueFile").post(e)},deleteExportQueueFile:function(e){var t=e.id;return(0,n.default)("export/exportQueue/"+t).delete()},getExportQueueList:function(e,t){var a={userId:e,pageIndex:(t=t||{}).pageIndex||1,pageSize:t.pageSize||10};return(0,n.default)("export/exportQueueList").post(a)}},e.exports=t.default}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=E(a(6)),o=E(a(2)),l=E(a(3)),s=E(a(7)),u=E(a(8)),d=a(0),c=E(d),p=E(a(13)),f=E(a(10)),h=a(1),m=E(a(12)),g=E(a(270));function E(e){return e&&e.__esModule?e:{default:e}}var y=(n=r=function(e){function t(){var e,a,r,n;(0,o.default)(this,t);for(var l=arguments.length,u=Array(l),d=0;d-1},hasSubReport:function(){return!!m("drillDown.subReport.selectedReport",this.properties)},hasSubTotal:function(){return!f(this.properties.dataFormattings.subTotal.label)},fieldDataType:function(){return this.field&&this.field.dataFieldType},hiddenSortFeature:function(){return E(this.previewDataType,s)},numberOfPointActions:function(){var e=this.properties,t=e.getValueByKey("subReport"),a=e.getValueByKey("customURL"),r=e.getValueByKey("embeddedJavascript"),n=0;return t&&t.selectedReport&&n++,a&&a.url&&n++,r&&r.script&&n++,n},isAggregatedField:function(){var e=this.functionInfo;return!this.isDeleted&&!f(e)&&!!e.name&&e.name!==d.GROUP.NAME&&e.name!==d.GROUP_DAYS_OLD.NAME},functionInfo:function(){var e=((this.properties||{}).dataFormattings||{}).functionInfo||{};return e}};t.extendObservable(u(this),g),t.autorun(function(){return this.hiddenSortFeature&&this.properties.setSortValue("")}.bind(this)),this.cleanDirty()}S.prototype.getValueByKey=function(e){return this.isDeleted?void 0:this[e]||this.field[e]||this.properties.getValueByKey(e)},S.prototype.delete=t.action(function(){this.isDeleted=!0}),S.prototype.resetProperties=t.action(function(e){this.properties=new i(e)}),S.prototype.readData=t.action(function(e){r(this,"name",e.name),r(this,"position",e.position);var t=this.field,a=e.field||{};return r(t,"relationData",a.relationData),r(t,"querySourceId",a.querySourceId),r(t,"fieldId",a.fieldId),r(t,"fieldName",a.fieldName),r(t,"fieldNameAlias",a.fieldNameAlias),r(t,"dataFieldType",a.dataFieldType),r(t,"visible",a.visible),r(t,"schemaName",a.schemaName),r(t,"querySourceName",a.querySourceName),r(t,"databaseName",a.databaseName),r(t,"calculatedTree",a.calculatedTree),r(t,"isCalculated",a.isCalculated),r(t,"querySourceType",a.querySourceType),r(t,"sourceAlias",a.sourceAlias),r(t,"relationshipId",a.relationshipId),r(t,"hasAggregatedFunction",a.hasAggregatedFunction),r(t,"hasSupportDefaultTotal",a.hasSupportDefaultTotal),r(t,"isRunningField",a.isRunningField),r(t,"isPredicated",a.isPredicated),r(t,"modelName",a.modelName),r(t,"relationColumn",a.relationColumn),this.properties.updateData(e.properties),this.cleanDirty(),this}),S.prototype.checkDirty=function(){return this.isDirty||this.properties.checkDirty&&this.properties.checkDirty()},S.prototype.cleanDirty=t.action(function(){this.properties.resetDirty&&this.properties.resetDirty(),this.resetDirty()}),S.prototype.updateData=t.action(function(e,t,a){var n=this.field;e=e||{},a=a||{},this.setName(e.fieldNameAlias),r(n,"querySouceId",a.querySouceId),r(n,"fieldId",e.fieldId),r(n,"fieldName",e.fieldName),r(n,"dataFieldType",e.dataFieldType),r(n,"calculatedTree",e.calculatedTree),r(n,"isCalculated",e.isCalculated),r(n,"querySourceType",e.querySourceType),r(n,"sourceAlias",e.sourceAlias),r(n,"relationshipId",e.relationshipId),r(n,"isPredicated",e.isPredicated),r(n,"modelName",e.modelName),r(n,"relationColumn",e.relationColumn),this.setProperties(t),this.markDirty()}),S.prototype.setProperties=t.action(function(e){this.properties.updateData(e||{}),this.markDirty()}),S.prototype.setOtherProps=t.action(function(e,t){this.properties.setOtherProps(e,t),this.markDirty()}),S.prototype.setUniqueName=t.action(function(e,t){var a=h(y(function(e){return e.elements?e.elements.peek():[]}),T([this]))(t.containerCollection),r=String.generateNewName(e,a,m("name"),"()");this.setName(r)}),S.prototype.setName=t.action(function(e){this.field.fieldNameAlias=this.name=v(e)}),S.prototype.setFormat=t.action(function(e){e.formatData&&this.properties.setFormat({formatId:e.formatData.id,format:e.formatData.format,groupBy:e.formatData.groupBy})}),S.prototype.setFunctionFormat=t.action(function(e,t){return e.formatData&&this.properties.setFormat({formatId:e.formatData.id,format:e.formatData.format,groupBy:e.formatData.groupBy}),this.setFieldFunction(e.functionData,t)}),S.prototype.setFunction=function(e){e.functionData&&this.properties.setFunction(e.functionData)},S.prototype.setSelected=function(e){this.isSelected=e},S.prototype.resetDefaultAlternativeText=t.action("resetDefaultAlternativeText",function(){this.properties.dataFormattings.alternativeText=g(c.DEFAULT_PROPERTIES_VALUE.dataFormattings.alternativeText),this.markDirty()}),S.prototype.resetDefaultCustomURL=t.action("resetDefaultCustomURL",function(){this.properties.dataFormattings.customURL=g(c.DEFAULT_PROPERTIES_VALUE.dataFormattings.customURL),this.markDirty()}),S.prototype.resetDefaultSubReport=t.action("resetDefaultSubReport",function(){this.properties.drillDown.subReport=g(c.DEFAULT_PROPERTIES_VALUE.drillDown.subReport),this.markDirty()}),S.prototype.resetDefaultEmbeddedJavascript=t.action("resetDefaultEmbeddedJavascript",function(){this.properties.dataFormattings.embeddedJavascript=g(c.DEFAULT_PROPERTIES_VALUE.dataFormattings.embeddedJavascript),this.markDirty()}),S.prototype.resetDefaultSubTotal=t.action("resetDefaultSubTotal",function(){this.properties.dataFormattings.subTotal=g(c.DEFAULT_PROPERTIES_VALUE.dataFormattings.subTotal),this.markDirty()}),S.prototype.resetDefaultGrandTotal=t.action("resetDefaultGrandTotal",function(){this.properties.dataFormattings.grandTotal=g(c.DEFAULT_PROPERTIES_VALUE.dataFormattings.grandTotal),this.markDirty()}),S.prototype.resetTextDefaultValue=t.action("resetTextDefaultValue",function(){this.properties.dataFormattings.color.textColor={},this.markDirty()}),S.prototype.resetCellDefaultValue=t.action("resetCellDefaultValue",function(){this.properties.dataFormattings.color.cellColor={},this.markDirty()}),S.prototype.updateColumnWidth=t.action(function(e){e&&(this.properties.dataFormattings.width.value=e,this.markDirty())}),S.prototype.clone=function(){return(new S).readData(this)},S.prototype.setRepeaterLevel=function(e){this.repeaterLevel=e},e.exports=S}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={REPEATER_START:"",REPEATER_END:"",PAGE_BREAK_HTML:"
",FIELD:"field",REPEATER_START_FORTABLE:"\x3c!-- [repeater] --\x3e",REPEATER_END_FORTABLE:"\x3c!-- [/repeater] --\x3e",SUBTOTAL_START:"SUBTOTAL_",SUBTOTAL_END:"_SUBTOTAL"},e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(1),r=t.isString,n=t.isNil,i=t.map;function o(e){return function(t,a){var n=0;return n=r(t)?function(e,t){return e.localeCompare(t,void 0,{sensitivity:"base"})}(t[e.key],a[e.key]):t[e.key]>a[e.key]?1:t[e.key]3&&void 0!==arguments[3]?arguments[3]:null;(0,S.default)(this,e),f.call(this),this.reportStore=t,this.viewMode=a,this.tenantId=O.default.getTenantId(),this.reportState=r||L.default.REPORT_STATE.POSTED,this.reportWorkerPendingList=[],this.reportWorkerPendingExecuted=[],this.previousPreviewData,this.masterModel=t.model,this.setUseCache(),this.exploreStore=n,this.exploreRecords=n?n.model.resultReportRecords:null,this.needToExploreStoreReportInfoUpdate=!1}return(0,C.default)(e,[{key:"loadAvailableQuerySourceFields",value:function(e){var t=this.dataTree,a=this.masterModel,r=e||a.getReportDefinition();return A.default.availableQuerySourceFields(r).then(function(e){return t.readDataSource(e),(0,g.resolve)(!0)})}},{key:"getFilterData",value:function(e,t,a,r,n){var i=this,o=this.dataTree,l=this.reportFilters,s=this.reportId,u=this.model.reportBody,d=a?this.masterModel.getReportDefinition():s;return(0,g.join)(A.default.loadFilterOperatorGroup(),a?A.default.availableQuerySourceFields(d,this.reportStore.isLoadDraft):null,!this.viewMode||n?A.default.loadFilterSource(d):null,(0,b.action)(function(e,a,n){return l.populateOperatorGroup(e),!(0,N.isNil)(n)&&l.populateFilterQuerySource(n),l.updateConfigFieldList(t,[],u.viewMode),!(0,N.isNil)(a)&&o.readDataSource(a),(0,N.isFunction)(r)&&r(),null})).then(function(){var e=[];return l.configFieldList.forEach(function(t){((0,N.contains)(t.filterInfo.sourceType,["fieldSource","inTimePeriod"])||(0,N.contains)(t.filterInfo.operator.key,["equals(checkbox)","notequal(checkbox)"]))&&e.push(i.getOperatorValueSource(t))}),(0,g.all)(e)}).then(function(){return(!i.viewMode||n)&&i.fillCalculatedFieldData(),!0})}},{key:"loadInitial",value:function(){var e=this,t=this.dataTree,a=this.reportFilters,r=this.reportId,n=this.reportStore;return t.loadedDataSource=!1,(0,g.join)(A.default.loadFilterOperatorGroup(),A.default.availableQuerySourceFields(r,this.reportStore.isLoadDraft),A.default.loadFilterSource(r),(0,b.action)(function(r,i,o){a.populateOperatorGroup(r),!(0,N.isNil)(o)&&a.populateFilterQuerySource(o),n.syncRelationshipFilters(),a.disableCascading(),!(0,N.isNil)(i)&&t.readDataSource(i),e.fillCalculatedFieldData()}))}},{key:"fillCalculatedFieldData",value:function(e,t,a){var r=this,n=this.dataTree.details;if(0!==n.length&&n[0].querySource&&0!==n[0].querySource.length){var i=n[0].querySource[0],o=(0,b.toJS)(n[0].querySource);n.length>1&&n[1].querySource&&(o=o.concat((0,b.toJS)(n[1].querySource))),t||(t=i&&i.fields.map(function(e){return{name:e.name,dataType:e.izendaDataType||e.dataType,description:e.expression}}));var l=(0,N.map)("id",n[0].querySource);return D.default.fetchFunctionOperators(this.tenantId,l,a).then(function(a){var n;r.calculatedStore.fillCalculatedFieldData({databaseName:i.connectionName,fields:(n=i.fields,(0,N.filter)(function(t){return t.id!==e},n)),id:i.id,name:i.name,schemaName:i.querySourceCategoryName},o,a,r.reportId,t)})}}},{key:"updateFieldDetailsForLoadOperatorValue",value:function(e,t){if(e.uniqueId===t.fieldDetails.uniqueId){var a=(0,N.omit)(["filterItemDom","filterList"],t.fieldDetails);return(0,_.default)(e,(0,b.toJS)(a),{selected:!0})}}},{key:"getOperatorValueSource",value:function(e,t){var a=this,r=e&&e.filterInfo||{};if((0,N.includes)((0,N.get)("operator.key",r),M.default.NO_POPULATE_IMMEDIATELY_FILTER_DATA))e.populatedData=!0;else{var n=e.fieldDetails.izendaDataType||e.fieldDetails.dataType,i=this.reportId,o=r.sourceType,l=this.masterModel.getReportDefinition();l.reportState=this.reportState,t?(l.report.reportFilter=t,(0,N.forEach)(function(t){t.value=null,t.id===e.fieldDetails.id&&(t.selected=!0)},l.report.reportFilter.filterFields)):(0,N.forEach)(function(t){a.updateFieldDetailsForLoadOperatorValue(t,e)},l.report.reportFilter.filterFields);var s=function(t){e.populateOperatorSourceValue(o,t)};switch(o){case"fieldSource":return A.default.loadFilterDataSource(i,n).then(s);case"inTimePeriod":return A.default.loadTimeperiods().then(s);case"dataSource":return A.default.loadFilterFieldData(l).then(s);case"dataSourceTree":return A.default.loadFilterFieldData(l,!0).then(s);default:return A.default.loadFilterDataSource(i,n).then(s)}}}},{key:"getOperatorValueSources",value:function(e,t){var a=this,r=[];return(0,N.forEach)(function(e){r.push(a.getOperatorValueSource(e,(0,N.cloneDeep)((0,b.toJS)(t))))},e),(0,g.all)(r)}},{key:"getData",value:function(e,t,a,r,n){var i=this,o=this.masterModel.getReportDefinition(),l=t&&t.filterInfo||{};n&&(o.report.reportFilter.filterFields=(0,N.map)(function(e){return(0,b.toJS)(e.fieldDetails)},this.reportFilters.configFieldList)),(0,N.forEach)(function(e){i.updateFieldDetailsForLoadOperatorValue(e,t)},o.report.reportFilter.filterFields),o.reportState=this.reportState;var s={skipItems:e.fromIndex,pageSize:e.pageSize,reportParameter:o,includeAll:!1,includeBlank:!1,criteria:[{key:"filter",value:a}]};return(0,N.includes)(l.operator.key,["equals(popup)","notequal(popup)"])&&(s.includeBlank=!0),(0,N.includes)(l.operator.key,["equals(manualentry)","equals(manualentrynoauto-complete)","notequal(manualentry)","notequal(manualentrynoauto-complete)","equals(selection)","notequal(selection)"])&&(s.includeBlank=!0,t.fieldDetails.operatorSetting===M.default.SELECT_SETTINGS.MULTIPLE&&(s.includeAll=!0)),A.default.loadPartialFilterFieldData(s).then((0,b.action)(function(e){t.updateOperatorSourceDisplay(e,r)}))}},{key:"updateCascadingValue",value:function(e){var t=this.reportFilters.configFieldList||[],a=t.indexOf(e);if(a<0)return(0,g.resolve)();var r=[];if(e.fieldDetails.cascading)for(var n=a+1;n7&&void 0!==arguments[7]&&arguments[7];return v.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=t||this.model.reportBody&&this.model.reportBody.configReportPart,!o&&this.model.reportBody.updateCrossFiltering(s,a),u=void 0,d=void 0,this.masterModel.checkDirty()||this.masterModel.draftId||!this.masterModel.active||s.useForThreshold||this.needToExploreStoreReportInfoUpdate?(u=this.buildRequestDataForEditMode(s,a,r,s.useForThreshold,h),d="REPORT_PART_REVIEW_DATA_CONFIG"):(u=this.buildRequestDataForViewMode(s,a,r,h),d="REPORT_PART_REVIEW_DATA"),c=JSON.parse((0,y.default)(u)),s&&!(0,N.isNil)(s.refreshDataProcess)||!this.previousPreviewData||!(0,H.default)(this.previousPreviewData,c)||l||c.ignoreCache||this.exploreStore){e.next=8;break}return e.abrupt("return",(0,g.resolve)(!1));case 8:if(this.previousPreviewData=c,!(0,N.any)(function(e){return s.reportPartContent.type===e},[L.default.REPORT_PART_TYPE.Chart,L.default.REPORT_PART_TYPE.Map,L.default.REPORT_PART_TYPE.Gauge,L.default.REPORT_PART_TYPE.KPI])){e.next=30;break}if(s&&s.isBeingBuild){e.next=15;break}return s&&s.setQueryData&&s.setQueryData({}),e.abrupt("return",(0,g.resolve)(!1));case 15:if(s.setQueryData({},!0),this.masterModel.printingMode&&(u.loadAll=!0),p=new Y.default,!(0,N.isEmpty)(s.colorPalettes)){e.next=22;break}return e.next=21,p.loadThemes();case 21:s.colorPalettes=e.sent;case 22:if(!this.exploreRecords||!this.exploreStore||this.needToExploreStoreReportInfoUpdate){e.next=26;break}return f=this.exploreRecords,t.setQueryData&&t.setQueryData(f),e.abrupt("return",(0,g.resolve)({}));case 26:return this.createReportPartWorker(s,u,d),e.abrupt("return",(0,g.resolve)({}));case 28:e.next=32;break;case 30:return this.exploreStore&&this.needToExploreStoreReportInfoUpdate&&this.exploreStore.updateGetVisualizationRequest(c.report),e.abrupt("return",this.needUpdatePreviewForGridForm(u,t,a,r,n,i,o));case 32:case"end":return e.stop()}},e,this)}));return function(t,a,r,n,i,o,l){return e.apply(this,arguments)}}()},{key:"deletePreviousPreviewData",value:function(){this.previousPreviewData=null}},{key:"loadReportPartDataByCrossFiltering",value:function(e){var t=this;this.reportWorkerPendingExecuted=(0,N.filter)(function(e){return!e.reportPart.isCrossFiltering},this.reportWorkerPendingExecuted),(0,N.forEach)(function(t){t.reportPart.isCrossFiltering&&e!==t.reportPart.id&&t.worker.terminate()},this.reportWorkerPendingList),this.reportWorkerPendingList=(0,N.filter)(function(e){return!e.reportPart.isCrossFiltering},this.reportWorkerPendingList),(0,N.flow)((0,N.filter)(function(t){return t.reportPartContent.isCrossFiltering&&t.id!==e}),(0,N.forEach)(function(e){var a=e.reportPartContent.getDrilldownInfo();Array.prototype.push.apply(a.filters,w.default.transformFilterWithReportPart(e,t.reportBody.crossFilteringDrillFilterInfo)),a.filters=(0,N.uniqBy)(function(e){return(0,y.default)((0,N.pick)(["key","fieldId","value","dataFormat"],e))},a.filters),t.needUpdatePreview(e,a)}))(this.model.reportBody.activeReportParts)}},{key:"removePillByReportPart",value:function(e){this.model.reportBody.removePillByReportPart(e),this.loadReportPartDataByCrossFiltering()}},{key:"removePill",value:function(e){this.model.reportBody.removePill(e),this.loadReportPartDataByCrossFiltering()}},{key:"removeAllPills",value:function(){this.model.reportBody.removeAllPills(),this.loadReportPartDataByCrossFiltering()}},{key:"getRandomPreviewData",value:function(e){var t=this.masterModel.getReportDefinition("Fields");return t.title=k.default.getText("COMMON_LABEL_CHART"),t.expandedLevel=e,t.filters=null,A.default.getRandomPreviewData(t)}},{key:"getDrillDownData",value:function(e,t){return e.filters=t.filters||[],e.expandedLevel=(0,N.isNil)(t.expandedLevel)?e.filters.length:t.expandedLevel,e.groupTotalValues=t.groupTotalValues,e}},{key:"loadReportPartDefinition",value:function(e){return A.default.loadReportPartDefinition(e)}},{key:"updateReportsParts",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.needToExploreStoreReportInfoUpdate=r;var n=this.model.reportBody||{};return!e&&n.removeAllPills(),(0,N.flow)((0,N.reject)({type:void 0}),(0,N.forEach)(function(a){t.needUpdatePreview(a,null,null,null,null,null,null,e)}))(a||n.activeReportParts),(0,g.resolve)({})}},{key:"getFilterSources",value:function(){return A.default.loadFilterSource(this.reportId).then(this.reportFilters.populateFilterQuerySource.bind(this.reportFilters))}},{key:"toggleSnapToGrid",value:function(){var e=this.reportBody;e.snapToGrid=!e.snapToGrid,e.markDirty()}},{key:"loadReportFilter",value:function(){var e=this;return A.default.loadFilterOfReport(this.reportId).then(function(t){return e.model.reportFilter.populateFilterList(t.filterFields),t.filterFields})}},{key:"loadDefaultImageUrl",value:function(e){var t=this;return R.default.getDefaultImageUrl(e).then(function(e){var a=(0,N.get)("value",e);(0,N.isEmpty)(a)||t.reportHeader.formatItems.filter(function(e){return"image"===e.type}).forEach(function(t){(t.imageUrl===B.default.ITEMS_TYPE.image.imageUrl||(0,N.isEmpty)(t.imageUrl))&&(t.imageUrl=e.value)});t.masterModel.defaultImageUrl=e})}},{key:"resetCrossFilterDefaultValue",value:function(){this.removeAllPills(),this.reportBody.cleanCrossFiltering()}},{key:"resetneedToExploreStoreReportInfoUpdate",value:function(){this.needToExploreStoreReportInfoUpdate=!1,this.exploreRecords=null}},{key:"setNeedToExploreStoreReportInfoUpdate",value:function(e){this.needToExploreStoreReportInfoUpdate=e}},{key:"createReportPartWorker",value:function(e,t,a){var r=(0,N.findIndex)(function(t){return t.reportPart.id===e.id},this.reportWorkerPendingList);r>-1&&(this.reportWorkerPendingList[r].worker.terminate(),this.reportWorkerPendingList.splice(r,1));if("undefined"!=typeof Worker)if(this.reportWorkerPendingList.length0){var l=this.reportWorkerPendingExecuted[0];this.reportWorkerPendingExecuted.splice(0,1),this.createReportPartWorker(l.reportPart,l.data,l.type)}}},{key:"terminateAllReportPartWorker",value:function(e){this.reportWorkerPendingExecuted=[],(0,N.forEach)(function(t){e&&(0,N.isNil)((0,N.find)({id:t.reportPart.id},e))||t.worker.terminate()},this.reportWorkerPendingList),this.reportWorkerPendingList=[]}},{key:"resetFunctionFormat",value:function(e){var t=e.valuesElements,a=e.values,r=function(e){var t=e.functionData,a=e.formatData;return t?(t.defaultFormat=a?{formatId:a.id,format:a.format,groupBy:a.groupBy,formatDataType:a.formatDataType}:"",t):{}};return(0,g.all)(t.map(function(t){return w.default.getDefaultFunctionFormat(e,a,t).then(r).then(function(a){var r=(0,N.get)([t.fieldDataType,a.name].join("."),K.DEFAULT_FORMAT_BY_FUNCTION_DATA_TYPE);return(r?j.default.loadReportFieldDataFormat(t.fieldDataType).then((0,N.flow)((0,N.find)({format:r}),defaults({}))):(0,g.resolve)({})).then(function(t,a){return(0,b.action)(function(r){return t.properties.setFormat({formatId:r.id||null,format:r.format||null,groupBy:r.groupBy||null,formatDataType:r.formatDataType||null}),w.default.setFunctionElement(e,t,(0,N.omit)("defaultFormat",a)||{},!0,!0)})}(t,a))})}))}},{key:"model",get:function(){return this.reportStore.model.reportFields}},{key:"dataTree",get:function(){return this.model.dataTree}},{key:"reportFilters",get:function(){return this.model.reportFilter}},{key:"reportId",get:function(){return this.reportStore.reportId}},{key:"reportBody",get:function(){return this.model.reportBody}},{key:"reportHeader",get:function(){return this.model.reportHeader}},{key:"reportFooter",get:function(){return this.model.reportFooter}},{key:"reportFormats",get:function(){return this.reportStore.model.reportFormats}},{key:"fieldQuerySource",get:function(){var e=[],t=(0,b.toJS)((0,N.getOr)([],"querySource",(0,N.first)(this.dataTree.details))),a=(0,N.map)(function(e){return e.filterFields=(0,N.filter)({inaccessible:!1},e.filterFields),e.fields=(0,N.filter)({inaccessible:!1},e.fields),e},t);return this.dataTree.details.length>1&&(e=(0,b.toJS)(this.dataTree.details[1].querySource)),(0,N.concat)(a.slice(),e)}},{key:"displayFieldQuerySource",get:function(){var e=function(e){return-1===M.default.HIDDEN_DATA_TYPE.indexOf(e.dataType)};return(0,N.map)(function(t){return t.filterFields=(0,N.filter)(e,t.filterFields),t.fields=(0,N.filter)(e,t.fields),t},this.fieldQuerySource)}},{key:"isVisibleHeaderFooter",get:function(){return this.reportFormats.headerFooter.visible}},{key:"isVisibleTitleDescription",get:function(){return this.reportFormats.titleDescription.visible}},{key:"isEditingKPIReportPart",get:function(){return this.reportBody.configReportPart&&this.reportBody.configReportPart.type===P.REPORT_PART_TYPE.KPI}},{key:"reportTitleDescription",get:function(){return this.model.reportTitleDescription}},{key:"crossFilteringDrillFilterInfo",get:function(){return this.model.reportBody.crossFilteringDrillFilterInfo}}]),e}(),f=function(){var e=this;q(this,"masterModel",i,this),q(this,"calculatedStore",o,this),q(this,"isLoading",l,this),q(this,"reportPartErrorMessages",s,this),q(this,"exploreRecords",u,this),q(this,"exploreStore",d,this),q(this,"needToExploreStoreReportInfoUpdate",c,this),this.getReportPartData=U.default.addLoadingProgress(A.default,function(t,a){return function(t,r,n){var i=null,o=null;return e.masterModel.checkDirty()||e.masterModel.draftId||!e.masterModel.active?(i=e.buildRequestDataForEditMode(t,r,n),o=a.getConfigReportPartPreviewData):(i=e.buildRequestDataForViewMode(t,r,n),o=a.getPreviewData),e.masterModel.printingMode&&(i.loadAll=!0),o(i)}}),this.getReportPartDataForReportPart=U.default.addLoadingProgress(A.default,function(t,a){return function(t){var r=null;return r=e.masterModel.checkDirty()||e.masterModel.draftId||!e.masterModel.active?a.getConfigReportPartPreviewData:a.getPreviewData,e.masterModel.printingMode&&(t.loadAll=!0),r(t)}}),this.needUpdatePreviewForGridForm=U.default.addLoadingProgress(A.default,function(t,a){return function(r,n,i,o,l,s,u,d){var c=e,p=n||e.model.reportBody&&e.model.reportBody.configReportPart;if(!p||!p.isBeingBuild)return p&&p.setQueryData&&p.setQueryData({}),(0,g.resolve)(!1);!u&&e.model.reportBody.updateCrossFiltering(p,i),!l&&(e.isLoading=!0);var f=e.reportStore;p.startLoadData();var h=x.default.buildPromiseFetcher(p,a.loadReportPartDefinition.bind(a),a.loadForEdit.bind(a),e.viewMode);return e.exploreRecords&&e.exploreStore&&!e.needToExploreStoreReportInfoUpdate?new E.default(function(e){(0,b.transaction)(function(){p.setQueryData(c.exploreRecords)}),e(!1)}):(0,g.join)(e.getReportPartDataForReportPart.apply(e,(0,N.concat)(t?[t]:[],[r])),h,function(t,a){if(t.messages){if(t.messages[0].key===L.default.ERROR_KEY.reportPart)e.reportPartErrorMessages.push({reportPartId:p.id,message:t.messages[0].messages[0]}),f.setAlertDetails({errors:[{message:k.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_INVALID_REPORTPART")}],success:!1});else{var n=[L.default.ERROR_KEY.calculatedfield,L.default.ERROR_KEY.filter,L.default.ERROR_KEY.relationship],i=(0,N.includes)(t.messages[0].key,n)?"report":null;f.setAlertDetails({errors:[{message:(0,N.find)({key:""},t.messages).messages[0]}],success:!1,key:i})}p.setQueryData({})}else e.populateReportPart(t,p),(0,b.transaction)(function(){p.setQueryData(t),p.readEmbededReportDef(a),c.exploreStore&&c.exploreStore.updateReportDefnitionInfo(r),c.exploreStore&&c.needToExploreStoreReportInfoUpdate&&(c.exploreStore.updateGetVisualizationRecords(t),c.resetneedToExploreStoreReportInfoUpdate())});return t.messages||null}).catch(function(e){var t=e.responseJSON||{};return f.setAlertDetails({errors:[t],message:t.message,success:!1}),p.setQueryData({}),!1}).finally(function(){!l&&(e.isLoading=!1)})}})},i=Q((n=p).prototype,"masterModel",[b.observable],{enumerable:!0,initializer:null}),o=Q(n.prototype,"calculatedStore",[b.observable],{enumerable:!0,initializer:function(){return new I.default}}),l=Q(n.prototype,"isLoading",[b.observable],{enumerable:!0,initializer:function(){return!1}}),s=Q(n.prototype,"reportPartErrorMessages",[b.observable],{enumerable:!0,initializer:function(){return[]}}),u=Q(n.prototype,"exploreRecords",[b.observable],{enumerable:!0,initializer:null}),d=Q(n.prototype,"exploreStore",[b.observable],{enumerable:!0,initializer:null}),c=Q(n.prototype,"needToExploreStoreReportInfoUpdate",[b.observable],{enumerable:!0,initializer:function(){return!1}}),Q(n.prototype,"model",[b.computed],(0,m.default)(n.prototype,"model"),n.prototype),Q(n.prototype,"dataTree",[b.computed],(0,m.default)(n.prototype,"dataTree"),n.prototype),Q(n.prototype,"reportFilters",[b.computed],(0,m.default)(n.prototype,"reportFilters"),n.prototype),Q(n.prototype,"reportId",[b.computed],(0,m.default)(n.prototype,"reportId"),n.prototype),Q(n.prototype,"reportBody",[b.computed],(0,m.default)(n.prototype,"reportBody"),n.prototype),Q(n.prototype,"reportHeader",[b.computed],(0,m.default)(n.prototype,"reportHeader"),n.prototype),Q(n.prototype,"reportFooter",[b.computed],(0,m.default)(n.prototype,"reportFooter"),n.prototype),Q(n.prototype,"reportFormats",[b.computed],(0,m.default)(n.prototype,"reportFormats"),n.prototype),Q(n.prototype,"fieldQuerySource",[b.computed],(0,m.default)(n.prototype,"fieldQuerySource"),n.prototype),Q(n.prototype,"displayFieldQuerySource",[b.computed],(0,m.default)(n.prototype,"displayFieldQuerySource"),n.prototype),Q(n.prototype,"isVisibleHeaderFooter",[b.computed],(0,m.default)(n.prototype,"isVisibleHeaderFooter"),n.prototype),Q(n.prototype,"isVisibleTitleDescription",[b.computed],(0,m.default)(n.prototype,"isVisibleTitleDescription"),n.prototype),Q(n.prototype,"isEditingKPIReportPart",[b.computed],(0,m.default)(n.prototype,"isEditingKPIReportPart"),n.prototype),Q(n.prototype,"reportTitleDescription",[b.computed],(0,m.default)(n.prototype,"reportTitleDescription"),n.prototype),Q(n.prototype,"crossFilteringDrillFilterInfo",[b.computed],(0,m.default)(n.prototype,"crossFilteringDrillFilterInfo"),n.prototype),Q(n.prototype,"loadInitial",[b.action],(0,m.default)(n.prototype,"loadInitial"),n.prototype),Q(n.prototype,"getData",[b.action],(0,m.default)(n.prototype,"getData"),n.prototype),Q(n.prototype,"updateCascadingValue",[b.action],(0,m.default)(n.prototype,"updateCascadingValue"),n.prototype),Q(n.prototype,"updateReportDesignerCascadingFilter",[b.action],(0,m.default)(n.prototype,"updateReportDesignerCascadingFilter"),n.prototype),Q(n.prototype,"deleteCalculatedField",[b.action],(0,m.default)(n.prototype,"deleteCalculatedField"),n.prototype),Q(n.prototype,"needUpdatePreview",[b.action],(0,m.default)(n.prototype,"needUpdatePreview"),n.prototype),Q(n.prototype,"updateReportsParts",[b.action],(0,m.default)(n.prototype,"updateReportsParts"),n.prototype),Q(n.prototype,"getFilterSources",[b.action],(0,m.default)(n.prototype,"getFilterSources"),n.prototype),Q(n.prototype,"toggleSnapToGrid",[b.action],(0,m.default)(n.prototype,"toggleSnapToGrid"),n.prototype),Q(n.prototype,"loadReportFilter",[b.action],(0,m.default)(n.prototype,"loadReportFilter"),n.prototype),Q(n.prototype,"resetCrossFilterDefaultValue",[b.action],(0,m.default)(n.prototype,"resetCrossFilterDefaultValue"),n.prototype),Q(n.prototype,"terminateAllReportPartWorker",[b.action],(0,m.default)(n.prototype,"terminateAllReportPartWorker"),n.prototype),Q(n.prototype,"resetFunctionFormat",[b.action],(0,m.default)(n.prototype,"resetFunctionFormat"),n.prototype),r=n))||r;t.default=X,e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={get SCHEDULE_REPORT(){return i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_SCHEDULE_REPORT")},get SEARCH_OPTION(){return[{value:"All",label:i.default.getText("COMMON_LABEL_ALL")},{value:"Name",label:i.default.getText("COMMON_LABEL_INSTANCE_NAME")},{value:"Type",label:i.default.getText("COMMON_LABEL_TYPE")},{value:"Schedule",label:i.default.getText("COMMON_LABEL_SCHEDULE")},{value:"FilterValueSelection",label:i.default.getText("COMMON_LABEL_FILTER_VALUE_SELECTION")},{value:"DeliveryType",label:i.default.getText("COMMON_LABEL_DELIVERY_TYPE")},{value:"DeliveryMethod",label:i.default.getText("COMMON_LABEL_DELIVERY_METHOD")},{value:"Recipients",label:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_TABLE_DEF_TITLE_RECIPIENTS")},{value:"LastSuccessfulRun",label:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_TABLE_DEF_TITLE_LAST_SUCCESS_RUN")},{value:"NextScheduledRun",label:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_TABLE_DEF_TITLE_NEXT_SCHEDULED_RUN")}]},get SCHEDULE_TYPE(){return[{value:"Scheduled Reporting Item",label:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_SCHEDULE_TYPE_LABEL_REPORTING_ITEM")},{value:"Scheduled Alert",label:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_SCHEDULE_TYPE_LABEL_SCHEDULED_ALERT")}]},get SCHEDULE_TYPE_VALUES(){return{scheduleReport:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_SCHEDULE_TYPE_VALUES_SCHEDULE_REPORT"),scheduleAlert:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_SCHEDULE_TYPE_VALUES_SCHEDULE_ALERT")}},get PAGE_TEXT(){return{AddText:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_PAGE_TEXT_ADD"),EditText:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_PAGE_TEXT_EDIT"),CopyText:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_PAGE_TEXT_COPY"),DeleteText:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_PAGE_TEXT_DELETE")}},get TABLE_DEF(){return{selectedValue:{key:"selectedValue",width:30,title:"",sortable:!1},name:{key:"name",width:150,title:i.default.getText("COMMON_LABEL_INSTANCE_NAME"),sortable:!0,columnKey:"name"},type:{key:"type",width:100,title:i.default.getText("COMMON_LABEL_TYPE"),sortable:!0,columnKey:"type"},schedule:{key:"schedule",width:180,title:i.default.getText("COMMON_LABEL_SCHEDULE"),sortable:!0,columnKey:"schedule"},filterValueSelection:{key:"filterValueSelection",width:180,title:i.default.getText("COMMON_LABEL_FILTER_VALUE_SELECTION"),sortable:!0,columnKey:"filterValueSelection"},deliveryType:{key:"deliveryType",width:150,title:i.default.getText("COMMON_LABEL_DELIVERY_TYPE"),sortable:!0,columnKey:"deliveryType"},deliveryMethodView:{key:"deliveryMethodView",width:150,title:i.default.getText("COMMON_LABEL_DELIVERY_METHOD"),sortable:!0,columnKey:"deliveryMethodView"},recipients:{key:"recipients",width:120,title:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_TABLE_DEF_TITLE_RECIPIENTS"),sortable:!0,columnKey:"recipients"},lastSuccessfulRun:{key:"lastSuccessfulRun",width:180,title:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_TABLE_DEF_TITLE_LAST_SUCCESS_RUN"),sortable:!0,columnKey:"lastSuccessfulRun"},nextScheduledRun:{key:"nextScheduledRun",width:180,title:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_TABLE_DEF_TITLE_NEXT_SCHEDULED_RUN"),sortable:!0,columnKey:"nextScheduledRun"},action:{key:"action",width:80,title:i.default.getText("COMMON_LABEL_ACTION"),sortable:!1,fixed:!0}}},get MESSAGE(){return{M01a:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_MESSAGE_DELETE_SCHEDULE_INSTANTCE"),M01b:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_MESSAGE_DELETE_SELECTED_SCHEDULE_INSTANTCE")}},get CONTRAINTS(){return{RECIPIENTS:{presence:{presence:!0,message:i.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_CONTRAINTS_MESSAGE_RECIPIENTS_IS_REQUIRE")}}}}},e.exports=t.default},,,,,,,function(e,t,a){"use strict";var r,n,i,o,l,s;r=a(0),n=a(10),i=a(4),o=a(16),l=a(88),a(296),s=r.createClass({displayName:"MainWrapper",componentDidMount:function(){window.addEventListener("resize",this.handleWindowResize,!1)},componentWillUnmount:function(){window.removeEventListener("resize",this.handleWindowResize,!1)},handleWindowResize:function(){var e=l.isMobileDevice();e!==o.isMobile&&o.setMobileVersion(e)},render:function(){var e=this.props,t=e.settingStore.settingLevel.showTenants(),a=n(e.className,{"izenda-Main-wrapper-system-mode":o.hideSystemLevel,"izenda-Main-wrapper":!o.hideSystemLevel,"Izenda-main-wrapper-margin-top":!t,"Izenda-main-wrapper-tenant-margin-top":t});return r.createElement("section",{className:a},e.children,r.createElement("section",{className:"izenda-Overlay","aria-expanded":"false"}))}}),e.exports=i()(s)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=T(a(6)),l=T(a(2)),s=T(a(3)),u=T(a(7)),d=T(a(8)),c=a(0),p=T(c),f=T(a(13)),h=a(9),m=a(5),g=a(1),E=T(a(26)),y=T(a(2840)),v=T(a(2841));function T(e){return e&&e.__esModule?e:{default:e}}var _=(0,h.observer)((i=n=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return a.setScrollboxRef=function(e){a.scrollBox=e,(0,g.invokeArgs)("getTreeScrollbox",[e],a.props)},a.flattenTree=new y.default,a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.nodes,r=e.renderNode,n=e.getChildNodes,i=e.getKey,o=e.nodeExpand,l=e.collapsed,s=(e.autoHeight,(0,g.curry)(S,6)(0,o,n,i,l,null)),u=(0,g.flatMap)(s,a);return p.default.createElement(E.default,{ref:this.setScrollboxRef,autoHeight:this.props.autoHeight},p.default.createElement(v.default,{className:t,treeViewItemClassName:e.treeViewItemClassName,flattenNodes:u,isLastPage:e.isLastPage,treeStore:this.flattenTree,renderNode:r,getData:e.getData,viewHeight:e.viewHeight,itemHeight:e.itemHeight,defaultItemsNumber:e.defaultItemsNumber,registerLazyLoadingStore:e.registerLazyLoadingStore}))}}]),t}(c.Component),n.propTypes={nodes:h.propTypes.arrayOrObservableArray,getChildNodes:f.default.func.isRequired,getKey:f.default.func.isRequired,renderNode:f.default.func.isRequired,collapsed:f.default.bool,nodeExpand:f.default.func,getData:f.default.func.isRequired,isLastPage:f.default.bool.isRequired,registerLazyLoadingStore:p.default.PropTypes.func},n.defaultProps={collapsed:!0},r=i))||r;function S(e,t,a,r,n,i,o){if(!o)return[];var l,s=e,u=r(o),d=void 0,c=void 0,p=!(0,g.isNil)(t)&&t(o)||!n,f=a(o)||[],h=function(e,t,a,r,n,i){return{level:e,data:(0,m.asReference)(i),key:t,parent:n,childCount:r,expanded:a}}(s,u,p,f.length,i,o),E=[h];for(d=0,l=f.length;d2&&void 0!==arguments[2]?arguments[2]:null,n=(0,O.get)("model.userAccountList",this),i=(0,O.isNil)(e)||(0,O.isEmpty)(n);e=e||this.lazyLoadingStore.pageInfoForFirstTime;var o={tenantId:this.tenantId,skipItems:e.fromIndex,pageSize:e.pageSize,criteria:[{key:A.default.USER_LIST_SEARCH_KEY,value:r}]};return v.default.getPartialUsers(o).then(function(e){var n=(0,O.get)("filterText",a.model);(r===n||(0,O.isEmpty)(r)===(0,O.isEmpty)(n))&&a.model.populateLazyUserAccountList(e,t),i&&a.setSelectFirstUser()})}},{key:"addUser",value:function(){var e=E.default.advancedSettings.other;this.model.resetAllSelected(),this.resetAlertMessage(),this.configUser=new C.default,this.configUser.dataOffset=e.timezoneForDataOffsetValue,this.configUser.timestampOffset=e.timezoneForTimestampOffsetValue,this.cloneUserSetupDetail()}},{key:"selectUser",value:function(e){this.resetAlertMessage(),this.model.resetAllSelected(),this.configUser=e,this.configUser.updateSelected(!0),this.cloneUserSetupDetail()}},{key:"resetAlertMessage",value:function(){this.alertMessage={}}},{key:"generatePasswordLink",value:function(){var e=this.configUserCloned,t={id:e.id,username:e.userName,firstname:e.firstName,lastname:e.lastName,emailaddress:e.emailAddress};return y.default.generatePasswordLink(t).then(e.populatePasswordLink.bind(e))}},{key:"setUserStatus",value:function(e,t){var a=this,r=t?y.default.activateUser:y.default.deactivateUser,n=(0,g.action)(function(t){return(0,O.isNil)(t.messages)?(e.populateData(t),a.cloneUserSetupDetail(),!0):t});return r(e).bind(this).then(n)}},{key:"cloneUserSetupDetail",value:function(){this.configUserCloned=new C.default((0,O.cloneDeep)(b.default.toJS(this.configUser)))}},{key:"save",value:function(){var e=this,t=this.configUser,a=this.configUserCloned,r=a.getDataForSave(a),n=(0,g.action)(function(r){if((0,O.isNil)(r.messages)){if(r.hasChangeLanguage=a.hasChangeLanguage,a.isNew){var n=e.model.addUser(r.data);e.selectUser(n)}else t.populateData(r.data),a.populateData(r.data);N.default.currentUser.id===r.data.id&&N.default.currentUser.populate(r.data),a.resetDirty(),a.resetRecipientValue(),a.resetPasswordLink(),e.alertMessage={type:"success",message:_.default.getText("COMMON_MESSAGES_DETAILS_WERE_SAVED")}}return r});return(0,p.default)(r,{tenantId:this.tenantId}),y.default.save(r).bind(this).then(n)}},{key:"savePasswordOptions",value:function(){var e=this,t=this.configUserCloned.getDataForSavePasswordOptions(),a=(0,g.action)(function(t){return t?(e.alertMessage={type:"success",message:_.default.getText("COMMON_MESSAGES_DETAILS_WERE_SAVED")},t):null});return y.default.savePasswordOptions(t).bind(this).then(a)}},{key:"deleteUser",value:function(e){var t=this,a=e.id,r=(0,g.action)(function(a){return(0,O.isNil)(a.messages)&&(t.model.deleteUser(e),t.setSelectFirstUser()),a});return y.default.deleteUser(a).bind(this).then(r)}},{key:"findRoleId",value:function(e,t){var a=[],r=e&&(0,O.split)(",",e);return!(0,O.isEmpty)(r)&&r.forEach(function(e){!String.searchString(t,e)&&a.push(e)}),a}},{key:"validateUserRoleAssociation",value:function(){var e=this.configUserCloned;if(e.systemAdmin)return(0,f.resolve)(!0);var t=this.configUser.rolesValue,a=e.rolesValue,r=this.findRoleId(t,a),n=this.findRoleId(a,t);if((0,O.isEmpty)(r))return(0,f.resolve)(!0);var i={userId:e.id,removedRoleIds:r,addedRoleIds:n};return y.default.validateUserRoleAssociation(i).then(function(t){return(0,O.isNil)(t.messages)||!(0,O.isEmpty)(t.messages[0])&&e.populateAfterValidateRoleAssociation(t.messages[0].detail),t})}},{key:"checkLastSystemAdmin",value:function(){return y.default.checkLastSystemAdmin()}},{key:"validateEmails",value:function(e){var t=(0,O.filter)(function(e){return(0,O.isEmpty)(e.emailAddress)||(0,O.isNil)(e.emailAddress)},e),a=_.default.getText("DASHBOARD_SCHEDULING_CONSTANTS_RECIPIENT_NO_EMAIL"),r=String.format(a,(0,O.flatMap)("fullName",t));this.alertMessage={type:"error",message:r}}},{key:"registerLazyLoadingStore",value:function(e){this.lazyLoadingStore=e}},{key:"tenantId",get:function(){return N.default.getTenantId()}},{key:"isDirty",get:function(){return this.configUserCloned.isDirty}}]),e}(),i=P(n.prototype,"model",[g.observable],{enumerable:!0,initializer:function(){return new S.default}}),o=P(n.prototype,"configUser",[g.observable],{enumerable:!0,initializer:function(){return null}}),l=P(n.prototype,"configUserCloned",[g.observable],{enumerable:!0,initializer:function(){return null}}),s=P(n.prototype,"alertMessage",[g.observable],{enumerable:!0,initializer:function(){return{}}}),u=P(n.prototype,"isLoadingData",[g.observable],{enumerable:!0,initializer:function(){return!1}}),P(n.prototype,"tenantId",[g.computed],(0,c.default)(n.prototype,"tenantId"),n.prototype),P(n.prototype,"isDirty",[g.computed],(0,c.default)(n.prototype,"isDirty"),n.prototype),P(n.prototype,"loadAllUserAccounts",[g.action],(0,c.default)(n.prototype,"loadAllUserAccounts"),n.prototype),P(n.prototype,"loadAllUserSetup",[g.action],(0,c.default)(n.prototype,"loadAllUserSetup"),n.prototype),P(n.prototype,"setSelectFirstUser",[g.action],(0,c.default)(n.prototype,"setSelectFirstUser"),n.prototype),P(n.prototype,"onPageSizeChange",[g.action],(0,c.default)(n.prototype,"onPageSizeChange"),n.prototype),P(n.prototype,"goToPage",[g.action],(0,c.default)(n.prototype,"goToPage"),n.prototype),P(n.prototype,"search",[g.action],(0,c.default)(n.prototype,"search"),n.prototype),P(n.prototype,"onSortChange",[g.action],(0,c.default)(n.prototype,"onSortChange"),n.prototype),P(n.prototype,"updateSearchCriteria",[g.action],(0,c.default)(n.prototype,"updateSearchCriteria"),n.prototype),P(n.prototype,"updateColSortDirs",[g.action],(0,c.default)(n.prototype,"updateColSortDirs"),n.prototype),P(n.prototype,"loadUserList",[g.action],(0,c.default)(n.prototype,"loadUserList"),n.prototype),P(n.prototype,"getPartialUsers",[g.action],(0,c.default)(n.prototype,"getPartialUsers"),n.prototype),P(n.prototype,"addUser",[g.action],(0,c.default)(n.prototype,"addUser"),n.prototype),P(n.prototype,"selectUser",[g.action],(0,c.default)(n.prototype,"selectUser"),n.prototype),P(n.prototype,"resetAlertMessage",[g.action],(0,c.default)(n.prototype,"resetAlertMessage"),n.prototype),P(n.prototype,"generatePasswordLink",[g.action],(0,c.default)(n.prototype,"generatePasswordLink"),n.prototype),P(n.prototype,"setUserStatus",[g.action],(0,c.default)(n.prototype,"setUserStatus"),n.prototype),P(n.prototype,"cloneUserSetupDetail",[g.action],(0,c.default)(n.prototype,"cloneUserSetupDetail"),n.prototype),P(n.prototype,"save",[g.action],(0,c.default)(n.prototype,"save"),n.prototype),P(n.prototype,"savePasswordOptions",[g.action],(0,c.default)(n.prototype,"savePasswordOptions"),n.prototype),P(n.prototype,"deleteUser",[g.action],(0,c.default)(n.prototype,"deleteUser"),n.prototype),P(n.prototype,"validateEmails",[g.action],(0,c.default)(n.prototype,"validateEmails"),n.prototype),P(n.prototype,"registerLazyLoadingStore",[g.action],(0,c.default)(n.prototype,"registerLazyLoadingStore"),n.prototype),r=n))||r;t.default=L,e.exports=t.default},function(e,t,a){"use strict";var r,n=a(175),i=(r=n)&&r.__esModule?r:{default:r};!function(){var t=a(5);e.exports={toJS:function e(a,r,n){if("function"==typeof t.toJS)return t.toJS(a,r,n);var o=function(e){return"function"==typeof e.get};if(!a||a instanceof Date||a instanceof RegExp)return a;if(Array.isArray(a)||t.isObservableArray(a)){var l=[],s=a.map(function(t){return e(t)});l.length=s.length;for(var u=0,d=s.length;u=a)return l.childs=r,l;return l.childs[0]=e(s,a,r,i),l},createSideTotal:function(e,t){var a=r.default.filterMappingByContainer(e.fieldsMapping,t),i=(0,s.map)(n.default.createLeafNode.bind(null,1,null,"Total",n.default.COLUMN_TYPE.SIDE_TOTAL),a);return(0,s.filter)(function(e){return e.forcePrefix=!0,e.element.isVisible},i)},updateSideTotalMapping:function(e,t,a){if(!(0,s.isEmpty)(t)){var r=(0,s.map)((0,s.get)("field.fieldNameAlias"),a.visibleElement),n=(0,s.reject)(function(e){return(0,s.includes)(e.groupFieldLevel,r)},t);(0,s.forEach)(function(e){var t=(0,s.find)({fieldNameAlias:e.element.field.fieldNameAlias},n);t&&!(0,s.includes)(t.columnName,e.keyList)&&e.keyList.unshift(t.columnName)},e)}},flattenRowDataObject:function e(t,a,r,n){if(t.ignore)return t;var i=(0,s.partial)(e,[s.placeholder,a,r,n]);if((0,s.isArrayLike)(t))return(0,s.flatMap)(i,t);var o={rowDataObject:t,firstRow:!0};if((t.isExpand||t.element&&!t.element.isVisible)&&!(0,s.isEmpty)(t.childs)){var l=(0,s.flatMap)(i,t.childs);t.element.isVisible&&(a||n)&&(l=(0,s.concat)([{currentRow:o,rowDataObjects:{}}],l)),a&&t.element.isVisible&&r&&(l=(0,s.concat)(l,[{currentRow:(0,s.set)("isSupTotalRow",!0,(0,s.set)("firstRow",!1,o)),rowDataObjects:{}}]));var u=l.length-1;return l.map(function(e,n){e.rowDataObjects[t.uniqueFieldNameAlias]={rowDataObject:t,firstRow:0===n,isSupTotalRow:n===u&&a&&r&&t.size>1}}),l}var d={currentRow:o,rowDataObjects:{}};return d.currentRow.isSupTotalRow=a&&r&&!(0,s.isEmpty)(t.childs)&&!t.isExpand,d.rowDataObjects[t.uniqueFieldNameAlias]=o,[d]},createSupTotalRowDataObject:function(e,t,a,r,n){var o={key:[{columnName:"",element:a,value:r}],data:n},l=i.default.createRowDataObject(0,[],!0,o),s={rowDataObject:l,isSupTotalRow:!0,firstRow:!1},u={currentRow:s,rowDataObjects:{}};return l.childs=t,l.isExpand=!0,u.rowDataObjects[e]=s,u},getDataForCell:function(e,t,a,r,i){var l=t.currentRow;if(e.type===n.default.COLUMN_TYPE.ROW&&(!l.isSupTotalRow||r)){var u=t.rowDataObjects[e.uniqueFieldNameAlias];return{isEmpty:!u||a&&!u.isSupTotalRow&&!u.firstRow,data:(0,s.get)("rowDataObject.value",u),isAllRow:(0,s.get)("rowDataObject.isAllRow",u)}}if(!l.isSupTotalRow){var d=l.rowDataObject,p=a&&d.isExpand&&!(0,s.isEmpty)(d),f=!p&&c(d.data,(0,s.fromPairs)(e.keyPath),(0,s.concat)(e.keyList,e.key)),h=!p&&c(d.data,(0,s.fromPairs)(e.keyPath),(0,s.concat)(""+o.CUSTOM_FORMAT_PREFIX+e.keyList,""+o.CUSTOM_FORMAT_PREFIX+e.key));return{isEmpty:p,dataNotFound:(0,s.isNil)(f),data:f||"",orgData:h}}var m={fieldNameAlias:e.uniqueFieldNameAlias};d=t.currentRow.rowDataObject,e.type!==n.default.COLUMN_TYPE.ROW&&(m.groupFieldLevel=r?d.uniqueFieldNameAlias:e.groupFieldLevel);var g=[];d.isAllRow?(g=d.data,i=d.subTotalMapping):g=d.childsData;var E=(0,s.find)(function(e){return e.fieldNameAlias===m.fieldNameAlias&&(m.groupFieldLevel===e.groupFieldLevel||!m.groupFieldLevel&&(0,s.isEmpty)(e.groupFieldLevel))},i);return{isEmpty:!E,data:E&&(0,s.flow)((0,s.find)((0,s.fromPairs)(e.keyPath)),(0,s.get)(E.columnName))(g)}},createAllRowDataObject:function(e,t,a,r){var n=i.default.createRowDataObject(-1,[],!0,{key:[{columnName:"",value:"All"}],data:[]});n.childs=t,n.isExpand=!0,n.level=r,n.ascendingLevel=-1,n.subKeyPath=a||[],n.isAllRow=!0;var o={rowDataObject:n,isSupTotalRow:!1,firstRow:!0,mustHaveExpander:!0},l={currentRow:o,rowDataObjects:{}};return l.rowDataObjects[e]=o,l},getRawData:function(e,t){var a=void 0;return(a=e.type===n.default.COLUMN_TYPE.ROW?(0,s.get)("rowDataObject.data",t.rowDataObjects[e.uniqueFieldNameAlias]):(0,s.get)("currentRow.rowDataObject.data",t))?d(e,a):[]},getMultiLevelData:function(e,t,a){var n=r.default.filterMappingByContainer(t.fieldsMapping,a);return r.default.splitDataForSeparator(e,n,!0)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=c(a(17)),o=c(a(23)),l=c(a(2)),s=c(a(3)),u=a(5),d=a(1);function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var f={ROW:"row",COLUMN:"column",SIDE_TOTAL:"side total",VALUE:"value"},h=(r=function(){function e(t){var a,r,o,s;(0,l.default)(this,e),a=this,r="isExpand",s=this,(o=n)&&(0,i.default)(a,r,{enumerable:o.enumerable,configurable:o.configurable,writable:o.writable,value:o.initializer?o.initializer.call(s):void 0}),this.isLeaf=!0,this.key="",this.keyList=[],this.element=null,this.value="",this.childs=[],this.sideTotals=[],this.level=1,this.forcePrefix=!1,this.isInvisible=!1,this.type=f.COLUMN,this.uniqueFieldNameAlias="",this.groupFieldLevel="",this.keyPath=[],this.isColumnHeader=t||!1}return(0,s.default)(e,[{key:"title",get:function(){return this.isLeaf?this.forcePrefix?this.sideTotalTitle:this.element.field.fieldNameAlias:this.value}},{key:"pivotColumn",get:function(){return this.type!==f.COLUMN?0:(0,d.sumBy)("pivotColumn",this.childs)||1}},{key:"sideTotalColumns",get:function(){return this.type!==f.COLUMN?[]:(0,d.flow)((0,d.flatMap)("sideTotalColumns"),(0,d.concat)(d.placeholder,this.sideTotals))(this.childs)}},{key:"sideTotalTitle",get:function(){return String.format("{0} {1}",this.prefix,(0,d.get)("field.fieldNameAlias",this.element))}}]),(0,s.default)(e,[{key:"toggleExpand",value:function(){this.isExpand=!this.isExpand}},{key:"toLeafNode",value:function(e,t,a,r,n,i){return this.isLeaf=!0,this.key=n.columnName,this.element=n.element,this.uniqueFieldNameAlias=n.element.field.fieldNameAlias,this.keyPath=t,this.prefix=a,this.type=r,this.groupFieldLevel=n.groupFieldLevel,this.isColumnHeader=i||!1,this}},{key:"toBranchNode",value:function(e,t,a,r,n){var i,o,l=n.key[0];if(this.isLeaf=!1,this.key=l.columnName,this.element=l.element,this.value=l.value,this.data=n.data,this.level=t,this.keyPath=i=(0,d.concat)(r||[],[[this.key,this.value]]),o=(0,d.map)(g.bind(null,e,t-1,a,i),n.subGroup),(0,d.isEmpty)(o)){var s=(0,d.map)(function(e){return(0,d.set)("groupFieldLevel",l.element.field.fieldNameAlias,(0,d.clone)(e))},e);this.childs=(0,d.map)(m.bind(null,1,i,"",f.VALUE),s)}else{this.childs=o;var u=(0,d.flow)((0,d.filter)({groupFieldLevel:l.element.field.fieldNameAlias}),(0,d.sortBy)("position"))(a);this.sideTotals=(0,d.map)(m.bind(null,t,i,this.value,f.SIDE_TOTAL),u)}return this}}]),e}(),n=p(r.prototype,"isExpand",[u.observable],{enumerable:!0,initializer:function(){return!0}}),p(r.prototype,"title",[u.computed],(0,o.default)(r.prototype,"title"),r.prototype),p(r.prototype,"pivotColumn",[u.computed],(0,o.default)(r.prototype,"pivotColumn"),r.prototype),p(r.prototype,"sideTotalColumns",[u.computed],(0,o.default)(r.prototype,"sideTotalColumns"),r.prototype),p(r.prototype,"sideTotalTitle",[u.computed],(0,o.default)(r.prototype,"sideTotalTitle"),r.prototype),p(r.prototype,"toggleExpand",[u.action],(0,o.default)(r.prototype,"toggleExpand"),r.prototype),p(r.prototype,"toBranchNode",[u.action],(0,o.default)(r.prototype,"toBranchNode"),r.prototype),r),m=function(e,t,a,r,n,i){return(new h).toLeafNode(e,t,a,r,n,i)},g=function(e,t,a,r,n){return(new h).toBranchNode(e,t,a,r,n)};t.default={ColumnDataObject:h,createBranchNode:g,createLeafNode:m,COLUMN_TYPE:f},e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o;r=a(0),n=a(10),i=a(34).dashStyles,o=r.createClass({displayName:"DashStyle",propTypes:{onChange:r.PropTypes.func,dashStyle:r.PropTypes.string,disabled:r.PropTypes.bool},getInitialState:function(){return{dashStyle:this.props.dashStyle}},getDefaultProps:function(){return{dashStyle:"dotted"}},onClick:function(e){this.setState({dashStyle:e}),this.props.onChange&&this.props.onChange(e)},componentWillReceiveProps:function(e){this.setState({dashStyle:e.dashStyle})},render:function(){var e=this.state,t=i.map(function(t){var a=n("line-style",{selected:t===e.dashStyle});return r.createElement("div",{className:a,onClick:this.onClick.bind(this,t),key:t},r.createElement("div",{className:t}))}.bind(this)),a=n("dash-style",this.props.className,{"disabled-elm":this.props.disabled});return r.createElement("div",{className:a},t)}}),e.exports=o},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b,N,A,R,O,I,D,P,L,M,F,k,x,w,B,U,z,V,G,H,Y,j,K,W,q,Q,X,J,Z,$,ee,te,ae=ge(a(17)),re=ge(a(23)),ne=ge(a(2)),ie=ge(a(3)),oe=ge(a(268)),le=a(5),se=ge(a(53)),ue=a(18),de=ge(ue),ce=ge(a(34)),pe=ge(a(68)),fe=a(1),he=a(286),me=a(102);function ge(e){return e&&e.__esModule?e:{default:e}}function Ee(e,t,a,r){a&&(0,ae.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function ye(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var ve={fontFamily:ce.default.defaultFontFamily,fontSize:ce.default.defaultFontSize||ce.default.fontSize[0]},Te=(0,se.default)((n=function(){function e(t,a,r){(0,ne.default)(this,e),Ee(this,"connectionName",i,this),Ee(this,"querySourceCategoryName",o,this),Ee(this,"sourceFieldName",l,this),Ee(this,"sourceFieldVisible",s,this),Ee(this,"sourceFieldFilterable",u,this),Ee(this,"sourceDataObjectName",d,this),Ee(this,"dataType",c,this),Ee(this,"filterId",p,this),Ee(this,"querySourceFieldId",f,this),Ee(this,"querySourceType",h,this),Ee(this,"querySourceId",m,this),Ee(this,"relationshipId",g,this),Ee(this,"alias",E,this),Ee(this,"position",y,this),Ee(this,"visible",v,this),Ee(this,"required",T,this),Ee(this,"cascading",_,this),Ee(this,"operatorId",S,this),Ee(this,"operatorName",C,this),Ee(this,"operatorSetting",b,this),Ee(this,"value",N,this),Ee(this,"defaultValue",A,this),Ee(this,"sortType",R,this),Ee(this,"fontFamily",O,this),Ee(this,"fontSize",I,this),Ee(this,"textColor",D,this),Ee(this,"backgroundColor",P,this),Ee(this,"fontBold",L,this),Ee(this,"fontItalic",M,this),Ee(this,"fontUnderline",F,this),Ee(this,"id",k,this),Ee(this,"state",x,this),Ee(this,"modified",w,this),Ee(this,"dateTimeNow",B,this),Ee(this,"selected",U,this),Ee(this,"reportPartTitle",z,this),Ee(this,"reportFieldAlias",V,this),Ee(this,"dataFormatId",G,this),Ee(this,"dataFormat",H,this),Ee(this,"isInheritableFilter",Y,this),Ee(this,"filterLookupType",j,this),Ee(this,"filterLookupStatus",K,this),Ee(this,"useLookup",W,this),Ee(this,"isPredicated",q,this),Ee(this,"targetValue",Q,this),Ee(this,"modelName",X,this),Ee(this,"relationColumn",J,this),Ee(this,"isParameter",Z,this),Ee(this,"isForKeyJoin",$,this),Ee(this,"isDisableCascading",ee,this),this.commonFilterRequired=!1,Ee(this,"requiredFilterNotApply",te,this),this.markUpdateResult=r,this.filterList=a||[],this.filterItemDom={},(0,fe.get)("uniqueId",t)?this.uniqueId=t.uniqueId:this.uniqueId=(0,fe.uniqueId)(),t&&this.setFilterDetails(t),this.cleanDirty()}return(0,ie.default)(e,[{key:"sourceDataObjectFullName",get:function(){return"{"+this.connectionName+"}.{"+this.querySourceCategoryName+"}.{"+this.sourceDataObjectName+"}"}},{key:"hasUserDefinedLookup",get:function(){return this.filterLookupType===he.FILTER_LOOKUP_TYPES.USER_DEFINED}},{key:"hasValidLookupKey",get:function(){return this.filterLookupType===he.FILTER_LOOKUP_TYPES.LOOKUP_KEY&&this.filterLookupStatus===he.FILTER_LOOKUP_STATUSES.VALID}},{key:"showUseLookupCheckbox",get:function(){return this.hasValidLookupKey&&!this.isParameter&&!this.isForKeyJoin}},{key:"displayable",get:function(){return this.dataType!=me.EXCLUDE_FILTER_DATA_TYPE.REF_CURSOR&&this.dataType!=me.EXCLUDE_FILTER_DATA_TYPE.SYS_REFCURSOR&&this.state!==de.default.OBJECT_STATE.DELETE}}]),(0,ie.default)(e,[{key:"setDataSource",value:function(e,t){var a=e.querySourceType===ue.CALCULATED_FIELD_NAME;(0,oe.default)(this,"connectionName",e.connectionName),(0,oe.default)(this,"querySourceCategoryName",e.querySourceCategoryName),(0,oe.default)(this,"sourceFieldName",e.sourceFieldName),(0,oe.default)(this,"sourceDataObjectName",a?ue.CALCULATED_FIELD_NAME:e.sourceDataObjectName),(0,oe.default)(this,"dataType",e.dataType),!t&&(0,oe.default)(this,"filterId",e.filterId),(0,oe.default)(this,"querySourceFieldId",e.querySourceFieldId),(0,oe.default)(this,"querySourceId",e.querySourceId),(0,oe.default)(this,"relationshipId",e.relationshipId),(0,oe.default)(this,"querySourceType",e.querySourceType),(0,oe.default)(this,"sourceFieldVisible",e.sourceFieldVisible),(0,oe.default)(this,"sourceFieldFilterable",e.sourceFieldFilterable),(0,oe.default)(this,"reportPartTitle",e.reportPartTitle),(0,oe.default)(this,"reportFieldAlias",e.reportFieldAlias),this.markDirty(),this.markUpdateResult&&this.markUpdateResult()}},{key:"setFilterSettings",value:function(e){var t=this,a=String.generateNewName(e.sourceFieldName,(0,fe.remove)(function(e){return t.alias===e.alias},this.filterList),(0,fe.get)("alias"));(0,oe.default)(this,"alias",e.alias||a),(0,oe.default)(this,"visible",e.visible),(0,oe.default)(this,"required",e.required),(0,oe.default)(this,"cascading",e.cascading),(0,oe.default)(this,"operatorId",e.operatorId),(0,oe.default)(this,"operatorName",e.operatorName),(0,oe.default)(this,"operatorSetting",e.operatorSetting),(0,oe.default)(this,"value",this.resolveValueForUpdating(e.value)),(0,oe.default)(this,"defaultValue",this.resolveValueForUpdating(e.value)),(0,oe.default)(this,"sortType",e.sortType),e.position&&(0,oe.default)(this,"position",e.position),this.markDirty(),this.markUpdateResult&&this.markUpdateResult()}},{key:"setFilterLookup",value:function(e){(0,oe.default)(this,"filterLookupType",(0,fe.getOr)(he.FILTER_LOOKUP_TYPES.NONE,"filterLookupType",e)),(0,oe.default)(this,"filterLookupStatus",(0,fe.getOr)(he.FILTER_LOOKUP_STATUSES.VALID,"filterLookupStatus",e)),(0,oe.default)(this,"useLookup",!this.showUseLookupCheckbox||(0,fe.getOr)(!0,"useLookup",e)),this.markDirty(),this.markUpdateResult&&this.markUpdateResult()}},{key:"setFilterFormat",value:function(e){(0,oe.default)(this,"fontFamily",e.fontFamily||ve.fontFamily),(0,oe.default)(this,"fontSize",e.fontSize||ve.fontSize),(0,oe.default)(this,"textColor",e.textColor),(0,oe.default)(this,"backgroundColor",e.backgroundColor),(0,oe.default)(this,"fontBold",e.fontBold),(0,oe.default)(this,"fontItalic",e.fontItalic),(0,oe.default)(this,"fontUnderline",e.fontUnderline),(0,oe.default)(this,"dataFormatId",e.dataFormatId),(0,oe.default)(this,"dataFormat",e.dataFormat||null),(0,oe.default)(this,"commonFilterRequired",e.commonFilterRequired),this.markDirty(),this.markUpdateResult&&this.markUpdateResult()}},{key:"setCommon",value:function(e,t){this.state!==pe.default.DELETE&&(!t&&(0,oe.default)(this,"id",e.id),(0,oe.default)(this,"state",t?pe.default.UPDATE:e.state),(0,oe.default)(this,"modified",e.modified),(0,oe.default)(this,"dateTimeNow",e.dateTimeNow),(0,oe.default)(this,"isParameter",e.isParameter),(0,oe.default)(this,"isForKeyJoin",e.isForKeyJoin),(0,oe.default)(this,"isPredicated",e.isPredicated),(0,oe.default)(this,"targetValue",e.targetValue),(0,oe.default)(this,"modelName",e.modelName),(0,oe.default)(this,"relationColumn",e.relationColumn),(0,oe.default)(this,"isInheritableFilter",e.isInheritableFilter),this.markDirty(),this.markUpdateResult&&this.markUpdateResult())}},{key:"setFilterDetails",value:function(e,t){this.setCommon(e,t),this.setDataSource(e,t),this.setFilterSettings(e),this.setFilterLookup(e),this.setFilterFormat(e)}},{key:"updateByKey",value:function(e,t){return this.state!==pe.default.DELETE&&(!(0,fe.isEqual)((0,fe.get)(e,this),t)&&(!(0,fe.get)(e,this)&&this.required&&this.visible&&(this.requiredFilterNotApply=!0),(0,oe.default)(this,e,t),this.state!==pe.default.INSERT&&(0,oe.default)(this,"state",pe.default.UPDATE),this.markDirty(),this.markUpdateResult&&this.markUpdateResult(),!0))}},{key:"updateOperatorDetail",value:function(e){e=e||{},(0,oe.default)(this,"operatorId",e.operatorId),(0,oe.default)(this,"operatorName",e.operatorName),(0,oe.default)(this,"operatorSetting",e.operatorSetting),(0,oe.default)(this,"value",this.resolveValueForUpdating(e.value)),this.markDirty(),this.markUpdateResult&&this.markUpdateResult()}},{key:"checkDirty",value:function(){return this.isDirty}},{key:"cleanDirty",value:function(){this.resetDirty()}},{key:"getFilterDetails",value:function(){return{connectionName:this.connectionName,querySourceCategoryName:this.querySourceCategoryName,sourceFieldName:this.sourceFieldName,sourceFieldVisible:this.sourceFieldVisible,sourceFieldFilterable:this.sourceFieldFilterable,sourceDataObjectName:this.sourceDataObjectName,dataType:this.dataType,filterId:this.filterId,querySourceFieldId:this.querySourceFieldId,querySourceType:this.querySourceType,querySourceId:this.querySourceId,relationshipId:this.relationshipId,alias:this.alias,position:this.position,visible:this.visible,required:this.required,cascading:this.cascading,operatorId:this.operatorId,operatorName:this.operatorName,operatorSetting:this.operatorSetting,value:this.value,defaultValue:this.defaultValue,sortType:this.sortType,fontFamily:this.fontFamily,fontSize:this.fontSize,textColor:this.textColor,backgroundColor:this.backgroundColor,fontBold:this.fontBold,fontItalic:this.fontItalic,fontUnderline:this.fontUnderline,id:this.id,state:this.state,modified:this.modified,dateTimeNow:this.dateTimeNow,isParameter:this.isParameter,isForKeyJoin:this.isForKeyJoin,isPredicated:this.isPredicated,targetValue:this.targetValue,modelName:this.modelName,relationColumn:this.relationColumn,sourceDataObjectFullName:this.sourceDataObjectFullName,selected:this.selected,dataFormatId:this.dataFormatId,reportPartTitle:this.reportPartTitle,reportFieldAlias:this.reportFieldAlias,uniqueId:this.uniqueId,isInheritableFilter:this.isInheritableFilter,useLookup:this.useLookup}}},{key:"setOperatorSetting",value:function(e){this.updateByKey("operatorSetting",e)}},{key:"getFilterId",value:function(){var e=this.querySourceType===ue.FIELD_TYPE.AggregatedField?"":this.querySourceFieldId;return this.reportPartTitle?e+this.reportPartTitle+this.reportFieldAlias:e&&this.sourceDataObjectName?e+this.sourceDataObjectName:null}},{key:"getDisplayStyle",value:function(){return{fontFamily:this.fontFamily,fontSize:this.fontSize,fontWeight:this.fontBold?"bold":"normal",fontStyle:this.fontItalic?"italic":"normal",textDecoration:this.fontUnderline?"underline":"none",color:this.textColor,backgroundColor:this.backgroundColor}}},{key:"setDisableCascading",value:function(e){return this.isDisableCascading=e,!(!e||!this.cascading)&&(this.markDirty(),this.cascading=!1,!0)}},{key:"resolveValueForUpdating",value:function(e){return(0,fe.isNull)(e)?"":e}}]),e}(),i=ye(n.prototype,"connectionName",[le.observable],{enumerable:!0,initializer:function(){return""}}),o=ye(n.prototype,"querySourceCategoryName",[le.observable],{enumerable:!0,initializer:function(){return""}}),l=ye(n.prototype,"sourceFieldName",[le.observable],{enumerable:!0,initializer:function(){return""}}),s=ye(n.prototype,"sourceFieldVisible",[le.observable],{enumerable:!0,initializer:function(){return!0}}),u=ye(n.prototype,"sourceFieldFilterable",[le.observable],{enumerable:!0,initializer:function(){return!0}}),d=ye(n.prototype,"sourceDataObjectName",[le.observable],{enumerable:!0,initializer:function(){return""}}),c=ye(n.prototype,"dataType",[le.observable],{enumerable:!0,initializer:function(){return""}}),p=ye(n.prototype,"filterId",[le.observable],{enumerable:!0,initializer:function(){return null}}),f=ye(n.prototype,"querySourceFieldId",[le.observable],{enumerable:!0,initializer:function(){return null}}),h=ye(n.prototype,"querySourceType",[le.observable],{enumerable:!0,initializer:function(){return""}}),m=ye(n.prototype,"querySourceId",[le.observable],{enumerable:!0,initializer:function(){return null}}),g=ye(n.prototype,"relationshipId",[le.observable],{enumerable:!0,initializer:function(){return null}}),E=ye(n.prototype,"alias",[le.observable],{enumerable:!0,initializer:function(){return""}}),y=ye(n.prototype,"position",[le.observable],{enumerable:!0,initializer:function(){return 0}}),v=ye(n.prototype,"visible",[le.observable],{enumerable:!0,initializer:function(){return!0}}),T=ye(n.prototype,"required",[le.observable],{enumerable:!0,initializer:function(){return!1}}),_=ye(n.prototype,"cascading",[le.observable],{enumerable:!0,initializer:function(){return!1}}),S=ye(n.prototype,"operatorId",[le.observable],{enumerable:!0,initializer:function(){return null}}),C=ye(n.prototype,"operatorName",[le.observable],{enumerable:!0,initializer:function(){return""}}),b=ye(n.prototype,"operatorSetting",[le.observable],{enumerable:!0,initializer:function(){return""}}),N=ye(n.prototype,"value",[le.observable],{enumerable:!0,initializer:function(){return""}}),A=ye(n.prototype,"defaultValue",[le.observable],{enumerable:!0,initializer:function(){return""}}),R=ye(n.prototype,"sortType",[le.observable],{enumerable:!0,initializer:function(){return null}}),O=ye(n.prototype,"fontFamily",[le.observable],{enumerable:!0,initializer:function(){return ve.fontFamily}}),I=ye(n.prototype,"fontSize",[le.observable],{enumerable:!0,initializer:function(){return ve.fontSize}}),D=ye(n.prototype,"textColor",[le.observable],{enumerable:!0,initializer:function(){return ce.default.textColor}}),P=ye(n.prototype,"backgroundColor",[le.observable],{enumerable:!0,initializer:function(){return ce.default.backgroundColor}}),L=ye(n.prototype,"fontBold",[le.observable],{enumerable:!0,initializer:function(){return!1}}),M=ye(n.prototype,"fontItalic",[le.observable],{enumerable:!0,initializer:function(){return!1}}),F=ye(n.prototype,"fontUnderline",[le.observable],{enumerable:!0,initializer:function(){return!1}}),k=ye(n.prototype,"id",[le.observable],{enumerable:!0,initializer:function(){return null}}),x=ye(n.prototype,"state",[le.observable],{enumerable:!0,initializer:function(){return 0}}),w=ye(n.prototype,"modified",[le.observable],{enumerable:!0,initializer:function(){return""}}),B=ye(n.prototype,"dateTimeNow",[le.observable],{enumerable:!0,initializer:function(){return""}}),U=ye(n.prototype,"selected",[le.observable],{enumerable:!0,initializer:function(){return!1}}),z=ye(n.prototype,"reportPartTitle",[le.observable],{enumerable:!0,initializer:function(){return null}}),V=ye(n.prototype,"reportFieldAlias",[le.observable],{enumerable:!0,initializer:function(){return null}}),G=ye(n.prototype,"dataFormatId",[le.observable],{enumerable:!0,initializer:function(){return null}}),H=ye(n.prototype,"dataFormat",[le.observable],{enumerable:!0,initializer:function(){return null}}),Y=ye(n.prototype,"isInheritableFilter",[le.observable],{enumerable:!0,initializer:function(){return!1}}),j=ye(n.prototype,"filterLookupType",[le.observable],{enumerable:!0,initializer:function(){return he.FILTER_LOOKUP_TYPES.NONE}}),K=ye(n.prototype,"filterLookupStatus",[le.observable],{enumerable:!0,initializer:function(){return he.FILTER_LOOKUP_STATUSES.VALID}}),W=ye(n.prototype,"useLookup",[le.observable],{enumerable:!0,initializer:function(){return!0}}),q=ye(n.prototype,"isPredicated",[le.observable],{enumerable:!0,initializer:function(){return!1}}),Q=ye(n.prototype,"targetValue",[le.observable],{enumerable:!0,initializer:function(){return null}}),X=ye(n.prototype,"modelName",[le.observable],{enumerable:!0,initializer:function(){return null}}),J=ye(n.prototype,"relationColumn",[le.observable],{enumerable:!0,initializer:function(){return null}}),Z=ye(n.prototype,"isParameter",[le.observable],{enumerable:!0,initializer:function(){return!1}}),$=ye(n.prototype,"isForKeyJoin",[le.observable],{enumerable:!0,initializer:function(){return!1}}),ee=ye(n.prototype,"isDisableCascading",[le.observable],{enumerable:!0,initializer:function(){return!1}}),te=ye(n.prototype,"requiredFilterNotApply",[le.observable],{enumerable:!0,initializer:function(){return!1}}),ye(n.prototype,"sourceDataObjectFullName",[le.computed],(0,re.default)(n.prototype,"sourceDataObjectFullName"),n.prototype),ye(n.prototype,"hasUserDefinedLookup",[le.computed],(0,re.default)(n.prototype,"hasUserDefinedLookup"),n.prototype),ye(n.prototype,"hasValidLookupKey",[le.computed],(0,re.default)(n.prototype,"hasValidLookupKey"),n.prototype),ye(n.prototype,"showUseLookupCheckbox",[le.computed],(0,re.default)(n.prototype,"showUseLookupCheckbox"),n.prototype),ye(n.prototype,"displayable",[le.computed],(0,re.default)(n.prototype,"displayable"),n.prototype),ye(n.prototype,"setDataSource",[le.action],(0,re.default)(n.prototype,"setDataSource"),n.prototype),ye(n.prototype,"setFilterSettings",[le.action],(0,re.default)(n.prototype,"setFilterSettings"),n.prototype),ye(n.prototype,"setFilterLookup",[le.action],(0,re.default)(n.prototype,"setFilterLookup"),n.prototype),ye(n.prototype,"setFilterFormat",[le.action],(0,re.default)(n.prototype,"setFilterFormat"),n.prototype),ye(n.prototype,"setCommon",[le.action],(0,re.default)(n.prototype,"setCommon"),n.prototype),ye(n.prototype,"setFilterDetails",[le.action],(0,re.default)(n.prototype,"setFilterDetails"),n.prototype),ye(n.prototype,"updateByKey",[le.action],(0,re.default)(n.prototype,"updateByKey"),n.prototype),ye(n.prototype,"updateOperatorDetail",[le.action],(0,re.default)(n.prototype,"updateOperatorDetail"),n.prototype),ye(n.prototype,"setDisableCascading",[le.action],(0,re.default)(n.prototype,"setDisableCascading"),n.prototype),r=n))||r;t.default=Te,e.exports=t.default},function(e,t,a){"use strict";(function(t){var r,n=a(119),i=(r=n)&&r.__esModule?r:{default:r};!function(){var r=a(5),n=a(63),o=a(108),l=a(2231),s=a(68),u=a(1),d=u.filter,c=u.isEmpty,p=u.every,f=u.some,h=u.map,m=u.forEach,g=u.unionBy,E=u.omit,y=u.remove,v=u.uniqueId,T=u.invoke,_=u.find;function S(e){this.draftAccesses=[],this.accessRight=[],this.reportAccessRight=[],this.dashboardAccessRight=[];var t={pageInfo:new o(i.default.DEFAULT_VALUE.SORT_DIRS,i.default.DEFAULT_VALUE.SEARCH_CRITERIA),tenantHierarchy:[],accessList:[],visibleAccessList:function(){return d(function(e){return 2!==e.state},this.accessList)},hasNoActiveAccess:function(){return c(this.visibleAccessList)},hasSelectAllActiveAccess:function(){return!this.hasNoActiveAccess&&p("selected",this.visibleAccessList)},hasActiveInstancesSelected:function(){return!this.hasNoActiveAccess&&f("selected",this.visibleAccessList)},hasAsLeastAccessHasRoleSelect:function(){return f("hasRolesAccessor",this.visibleAccessList)},hasAsLeastAccessHasUserSelect:function(){return f("hasUserAccessor",this.visibleAccessList)}};r.extendObservable(n(this),t),e&&this.populateData(e)}S.prototype.populateData=r.action(function(e){var t=this.tenantHierarchy;this.accessList=h(function(e){return new l(e,t)},e.accessList),m(function(e){var t=_({tempId:e.tempId},this.draftAccesses);t&&(t.id=e.id)}.bind(this),e.accessList),this.resetDirty()}),S.prototype.populateAccessDetails=r.action(function(e){var t=this.tenantHierarchy;this.accessList=h(function(e){return new l(e,t)},e.result),this.pageInfo.setTotalRecords(e.total||0),this.resetDirty()}),S.prototype.checkDirty=function(){var e=d(function(e){return e.checkDirty&&e.checkDirty()},this.accessList);return!c(e)||this.isDirty},S.prototype.addAccess=r.action(function(){var e=this.tenantHierarchy,t=new l(null,e);this.accessList.splice(0,0,t),this.pageInfo.increaseRecord(),this.markDirty()}),S.prototype.deleteAccess=r.action(function(){var e=this.pageInfo;m(function(t){t.selected&&(t.delete(),e.descreaseRecord())},this.accessList),this.markDirty()}),S.prototype.populateAccessRight=function(e){this.accessRight=e},S.prototype.mergeWithReportDraftAccess=r.action(function(){var e=this.getUpdateAccess();this.draftAccesses=g("tempId",e,this.draftAccesses)}),S.prototype.getUpdateAccess=function(){return d(function(e){return e.state!==s.NONE},this.accessList)},S.prototype.readFromReport=r.action(function(e){t(e,"Report cannot be null or undefined");var a=this.tenantHierarchy;this.accessList=h(function(e){return new l(e,a)},e.accesses)}),S.prototype.populateReportAccessRight=function(e){this.reportAccessRight=e},S.prototype.populateDashboardAccessRight=function(e){this.dashboardAccessRight=e},S.prototype.getAccessRightByKey=function(e){return this[e]||[]},S.prototype.getAccessForSave=function(e){var t=d(function(e){return e.state!==s.DELETE},this.accessList);return h(function(t){return e?t.buildDataForSaveAccessSettings():E("state",t.buildDataForSaveAccessSettings())},t)},S.prototype.removeAccessor=function(e){m(function(t){t.accessors=y(function(t){return f({id:t},e)},t.accessors),t.accessorNames=y(function(t){return f({name:t},e)},t.accessorNames)},this.accessList)},S.prototype.cleanDirty=r.action(function(){this.resetDirty(),m(function(e){e.resetDirty()},this.accessList)}),S.prototype.populateAccessDefault=function(e){var t=this.tenantHierarchy;this.draftAccesses=h(function(e){return e.state=s.INSERT,e.tempId=v(),new l(e,t)},e)},S.prototype.cleanDraftAccesses=r.action(function(){this.draftAccesses=[],m(function(e){e.state=s.NONE},this.accessList)}),S.prototype.clearAllUserAccessor=r.action(function(){m(function(e){e.assignedType===i.default.ASSIGN_TYPE.USER&&(e.state=s.DELETE)},this.accessList),this.markDirty()}),S.prototype.removeAllGlobalRolesOnAccessor=r.action("removeAllGlobalRolesOnAccessor",function(){m(T("removeAllGlobalRoles"),this.accessList)}),e.exports=S}()}).call(t,a(42))},function(e,t,a){"use strict";var r=a(20);!function(){var t=a(5),n=a(135),i=a(243),o=a(2237),l=a(68),s=a(152),u=a(387),d=a(2240),c=a(79),p=1,f=2,h={SCHEDULE:0,SUBSCRIPTION:1},m=a(16),g=a(1),E=g.isNil,y=g.map,v=g.cloneDeep,T=g.placeholder;function _(e,a){this.fetcher=!E(e)&&e?i:n;var r={model:new o,systemVariables:new d,reportId:null,dashboardId:null,activeInstances:function(){return this.model.loadActiveInstances()},isSubscriptionMode:function(){return this.model.isSubscriptionMode},tenantId:function(){return m.getTenantId()},templateType:function(){return this.isSubscriptionMode?h.SUBSCRIPTION:h.SCHEDULE}};t.extendObservable(this,r),a&&this.setObserveSubscriptions(a)}_.prototype.fetchSystemVariables=t.action(function(){var e=E(this.reportId)?f:p;return this.systemVariables.pageInfo.buildPagingRequest(),c.loadEmailVariables(e,this.systemVariables.pageInfo).bind(this).then(function(e){return this.systemVariables.populateData(e)})}),_.prototype.updateReportId=t.action(function(e){this.model.resetPageModel(),this.reportId=e}),_.prototype.updateDashboardId=t.action(function(e,t){this.dashboardId!==e&&(this.model=new o,this.model.isSubscriptionMode=t,this.dashboardId=e)}),_.prototype.loadInstances=t.action(function(e){var a=this.model;return e&&e.length>0?(a.populateData({result:e,total:e.length}),this.fetcher.fetchEmailTemplates(this.templateType).then(t.action(function(e){return a.populateEmailTemplates(e),(0,r.resolve)(!0)}))):this.loadInstancesWithEmailTemplates()}),_.prototype.loadInstancesWithEmailTemplates=t.action(function(){var e=this.model;return e.pageInfo.buildPagingRequest(),(0,r.join)(this.fetcher.loadSubscription(this.tenantId,e.pageInfo,this.reportId||this.dashboardId,this.isSubscriptionMode),this.fetcher.fetchEmailTemplates(this.templateType),t.action(function(t,a){return e.populateData(t),e.populateEmailTemplates(a),(0,r.resolve)(!0)}))}),_.prototype.saveInstances=function(){var e=y(function(e){return e.omitData()},this.model.buildDataForSaving());return this.fetcher.updateSubscriptions(e)},_.prototype.onPageSizeChange=function(e){return this.model.pageInfo.setPageSize(e),this.goToPage(1)},_.prototype.goToPage=function(e){return this.model.pageInfo.setPageIndex(e),this.loadInstances()},_.prototype.search=function(e,t){return this.model.pageInfo.setSearchValues(e,t),this.goToPage(1)},_.prototype.onSortChange=function(e,t){return this.model.pageInfo.setColSortDirs(e,t),this.loadInstances()},_.prototype.sortSystemVariables=t.action(function(e,t){return this.systemVariables.pageInfo.setColSortDirs(e,t),this.fetchSystemVariables()}),_.prototype.onSystemVariablesPageSizeChange=t.action(function(e){return this.systemVariables.pageInfo.setPageSize(e),this.fetchSystemVariables()}),_.prototype.goToSystemVariablesPage=t.action(function(e){return this.model.systemVariables.setPageIndex(e),this.fetchSystemVariables()}),_.prototype.updateSearchCriteria=function(e,t){this.model.pageInfo.setSearchValues(e,t)},_.prototype.copySubscribedInstance=function(e){this.model.copySubscribedInstance(e)},_.prototype.removeSubscribedInstances=function(e){this.model.removeSubscribedInstances(e)},_.prototype.fetchEmailTemplates=function(){return this.fetcher.fetchEmailTemplates(this.templateType).then(function(e){return this.model.populateEmailTemplates(e)}.bind(this))},_.prototype.validateSubscription=function(e,t){var a=new s(v(e));return a.buildRecurrencePatternSetting(),a.subscriptionFilterFields=e.subscriptionFilterFields&&v(u.toJS(e.subscriptionFilterFields)),a.subscriptionCommonFilterFields=e.subscriptionCommonFilterFields&&v(u.toJS(e.subscriptionCommonFilterFields)),a.state===l.INSERT&&(a.id=null),a.dashboardId=this.dashboardId,this.fetcher.validateSubscription(a.omitData(),t)},_.prototype.setObserveSubscriptions=function(e){this.disposeSubscriptions=t.observe(e.model.dashboardDetail.dashboard,"id",function(){this.model.subscribedInstances=y(function(e){return new s(e)},e.model.dashboardDetail.dashboard.subscriptions)}.bind(this))},_.prototype.disposeObserveSubscriptions=function(){this.disposeSubscriptions()},_.prototype.loadSchedules=function(e,a){var n=this.model;return n.pageInfo.buildPagingRequest(),(0,r.join)(this.fetcher.loadSchedules(this.reportId,a,n.pageInfo),this.fetcher.fetchEmailTemplates(this.templateType),function(a,i){return t.transaction(function(){n.populateData(a),n.updateScheduleInstances(e),n.populateEmailTemplates(i)}),(0,r.resolve)(!0)})},_.prototype.searchSchedules=function(e,t){this.model.pageInfo.setSearchValues(e,t),this.model.pageInfo.setPageIndex(1);var a=T(this.model.scheduleInstances).chain().map(function(e){return new s(e)}).filter(function(e){return e.state!==l.NONE}).forEach(function(e){e.state===l.INSERT&&(e.id=null)}).value();return this.loadSchedules(!1,a)},_.prototype.cleanSubscription=function(){this.model=new o},e.exports=_}()},,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=T(a(6)),l=T(a(2)),s=T(a(3)),u=T(a(7)),d=T(a(8)),c=a(0),p=T(c),f=T(a(10)),h=T(a(13)),m=T(a(4)),g=T(a(1311)),E=T(a(2650)),y=a(1),v=T(a(270));function T(e){return e&&e.__esModule?e:{default:e}}var _=(0,m.default)(E.default)((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0)return!0;var t=(0,O.find)(function(e){if("Days Old"!==(0,O.get)("fieldElement.properties.dataFormattings.functionInfo.name",e))return!1;var t=(0,O.get)("fieldElement.name",e),a=(0,O.findKey)(function(e){return(0,O.some)(function(e){return e.fieldNameAlias===t},e)},h);return(0,O.isNil)(a)||"values"===a},E);return(0,O.isNil)(t)}()),x=k.categories,w=this.getAxisFieldValue(C,"axisOption",E),B=(0,O.get)("izCategory",w)?(0,O.getOr)(null,"tickCategoryInterval",w):(0,O.get)("tickInterval",w),U=t.commonActions.chartContainer,z=(0,O.isNil)(C)||(0,O.isNil)(g)?[]:this.getSeries(a,t,C,g),V=z&&function(e){var a=void 0,r=(0,O.get)("commonXYAxis",t);if(N(e)>1)a=(0,O.get)("metricAllOption",r);else{var i=(0,O.get)("yAxisField",(0,O.nth)(0,e));a=n.getAxisFieldValue(i,"axisOption",E)}return(0,O.merge)(a,(0,O.get)("yAxis",r))}(z),G=(0,O.nth)(a.expandedLevel,h[f]),H=(0,O.findIndex)(function(e){return null===e},x);H>-1&&x.splice(H,1,"null");var Y=(0,O.get)("sort.valueXAxisForLinear",t),j=Y===b.SORT_ORDERS.DESC.value?"bar"!==t.chart.type:void 0;Y===b.SORT_ORDERS.DESC.value&&("column"===t.chart.type||"bar"===t.chart.type)&&(z=(0,O.reverse)(z));var K=(0,O.get)("chart.type",t);this.configureRegression(E,z);var W={series:z,xAxis:{axisName:F,categories:x,type:k.type,labels:{formatter:v.default.getFormattedLabelAxis,useHTML:!0},plotLines:n.getAxisFieldValue(C,"threshold",E),tickPositioner:function(){return function(e,t,a){var n=(0,O.get)("reportPartElm.fieldDataType",e),i=_.DATA_TYPES.DATE_TIME,o=_.DATA_TYPES.TIME;if((0,O.isEmpty)(k.categories)&&(n===i||n===o)&&a&&null!==this.dataMax&&null!==this.dataMin){var l=[],s=C.reportPartElm.fieldFormatData,u=a,d=(0,O.getOr)("s","INTERVAL_VALUE",S.DATE_TIME_FORMAT[s]),c=(0,p.default)(t.min||this.dataMin),f=(0,p.default)(this.dataMax),h=r(U).width()/P,m=(0,p.default)(new Date(0)).add(u,d),g=Date.parse(m),E=(Date.parse(f)-Date.parse(c))/g;for(E>h&&(u=(E*u/h).toFixed(0));c<=f;)l.push(c.valueOf()),c.add(u,d);return l}return null}.bind(this)(C,R,B)},tickInterval:B,reversed:j},yAxis:{gridLineColor:"transparent",labels:{formatter:v.default.getFormattedLabelAxis,useHTML:!0},plotLines:function(e){if(N(e)>1){var t=[];return(0,O.each)(function(e){var a=(0,O.get)("yAxisField",e),r=n.getAxisFieldValue(a,"threshold",E);(0,O.size)(r)>0&&t.push.apply(t,(0,o.default)(r))},e),t}var a=(0,O.get)("yAxisField",(0,O.nth)(0,e));return n.getAxisFieldValue(a,"threshold",E)}(z)},legend:{labelFormatter:function(){if(L((0,O.upperFirst)(K),m.CHART_TYPE.Pie,m.CHART_TYPE.Funnel)){var e=A(G,E),t=A(C,E),r=t.fieldElement,n=t.fieldDataType,i=(0,O.get)("record",this),o=(0,O.isNil)(e)?(0,O.get)("columnName",C):(0,O.get)("series.options.nameField.columnName",this),l=T.default.getFieldValue(o,i),s=v.default.getFormatedValueByStringFormat(r,l.originalValue,n);return(0,O.isNil)(s)||(l.value=s),a.getFormatData(l,t,{element:(0,O.get)("series.userOptions.nameField",this),record:i,fieldValues:l})}return this.name}}};W.yAxis=(0,O.merge)(W.yAxis,V||{}),W.xAxis=(0,O.merge)(W.xAxis,R||{});var q={minorTickLength:0,tickLength:0,title:{text:null},labels:{enabled:!1}};if((0,O.get)("izendaHiddenAllAxis",t.izendaOptions)?(W.yAxis=(0,O.merge)(W.yAxis,q),W.xAxis=(0,O.merge)(W.xAxis,q)):v.default.setDefaultAxisName(W,a),(!t.izMultiLevel||!L(this.chartOptions.chartType,m.CHART_TYPE.TreeMap))&&v.default.addPointActionLink(!0,t,W.xAxis.labels,F,(0,O.get)(F,E)),t.izDisableMultiColor){W.plotOptions=(0,O.merge)(W.plotOptions,{series:{colorByPoint:!1}})}return W}},{key:"getValueFromSeriesConfig",value:function(e,t){var a=F(e);return(0,O.get)("['"+a+"']",t)}},{key:"getXAxisOption",value:function(e,t){var a=(0,O.get)("commonXYAxis.xAxis",t),r=t.izendaSeriesConfig||{},n=this.getAxisFieldValue(e,"axisOption",r),i=(0,O.merge)(n,a);return v.default.setTickIntervalForXAxis(i,(0,O.get)("reportPartElm.fieldDataType",e))}},{key:"getAxisFieldValue",value:function(e,t,a){var r=this.getValueFromSeriesConfig(e,a);return(0,O.get)("['"+t+"']",r)}},{key:"getSeries",value:function(e,t,a,r){var n=this,i=[],o=y.default.ContainerName.SEPARATORS,l=(0,O.getOr)(o,"SEPARATOR_CONTAINER_NAME",t),s=e.dataStructure||{},u=t.izendaSeriesConfig||{},d=e.getDataByField(a),c=this.getXAxisOption(a,t),p=M(a,d.data,c),f=d.name,h=u[f];if(e.hasSeparator(l)){var m=(0,O.first)(s[l]),g=[],S=e.groupData(m,g);(0,O.each)(function(t){var o=n.getValueFromSeriesConfig(m,u),l=(0,O.head)(S[t]),s=T.default.getFieldValue(m.columnName,l).originalValue,d=m.reportPartElm,c=m.fieldDataType,f=v.default.getFormatedValueByStringFormat(d,t,c),h={value:(0,O.isNil)(f)?t:f,originalValue:s};i=(0,O.concat)(i,b(a,S[t],{field:m,rawValue:t===E.UNDEFINED_VALUE?"":t,value:e.getFormatData(h,o,{element:{columnName:m.columnName,reportPartElm:o.fieldElement},record:l}),groupNamesSize:g.length},(0,O.isNil)(p.categories)?null:(0,O.uniq)(p.categories),r))},g)}else i=(0,O.concat)(i,b(a,e.records,null,null,r));return function(e){(0,O.each)(function(e){var t=e.data,a=void 0;if(p.categories)a=function(e){return n(e,function(e){e.xRawData=e.x,delete e.x}),e}(t);else switch(p.type){case"linear":n(t),a=r(t);break;case"datetime":n(t,function(e){var t=(0,O.get)("fieldDataType",h),a=t===_.DATA_TYPES.TIME?(0,O.getOr)(C.TIME_FORMAT,"fieldFormatData",h):(0,O.get)("fieldFormatData",h);e.xRawData=e.x,e.x=(0,A.default)(a,e.x,!1)}),a=r(t)}function r(e){var t=void 0;return(0,O.flow)((0,O.filter)(function(e){return t=e.x,(0,O.isDate)(t)?!!t.getTime():!!t}),(0,O.sortBy)("x"))(e)}function n(e,t){return(0,O.forEach)(t,e)}e.data=a},e)}(i),i;function b(e,t,a,r,n){var i={};return function(t,r,n){var i=void 0,l=(0,O.get)("rawValue",a),s=(0,O.size)(n);(0,O.each)(function(r){i=o(r),t[i.name]=(0,O.assignIn)({separatorField:(0,O.get)("field",a),separatorValue:l,name:(0,O.toString)(function(e,t){var a=(0,O.isNil)(e.rawValue)&&(0,O.isNil)(e.value)?String.commonStringValue(e.rawValue,N.default.advancedSettings.other.convertNullToEmptyStringValue):(0,O.get)("value",e),r=e.groupNamesSize>=1,n=String.isGuidFormat(t);return s>1&&!n?(!(0,O.isNil)(a)&&r?a+" - ":"")+t:r?a:t}(a||{},i.name)),xAxisField:e,yAxisField:r,data:[],dataLabels:{formatter:function(){if(!(0,O.isNil)(this.y)){var e=(0,O.get)("options.isDefaultValue",this.point),t=(0,O.get)("data",v.default.getFormattedDataByPoint("y",this.point,!0));return e?null:v.default.showText(t)}return(0,O.isNil)(this.value)?"":(0,O.get)("data",v.default.getFormattedDataByPoint("value",this.point,!0))}}},(0,O.get)("chartOptions",u[i.name]))},n)}(i,0,n),(0,O.each)(function(t){!function(e,t,a,r,n){var i={},l=void 0,s=void 0;for(var u in(0,O.each)(function(e){!function(e,t){var r=o(e),n=T.default.getOriginalValue(e,a),l=void 0;(0,O.isNil)(r.data)?i[r.name]=n:((l={})[r.data]=n,(0,O.has)(r.name,i)?i[r.name]=(0,O.assignIn)(i[r.name],l):i[r.name]=l)}(e)},r),i){var d=i[u],c=!(0,O.isNil)(d)&&""!==d;l=c?d:D,s={x:t,record:a},c||(s.yRawData=d),(0,O.isObject)(l)?s=(0,O.assignIn)(s,l):s.y=l,e[u].data.push(s)}}(i,T.default.getOriginalValue(e,t),t,n)},t),(0,O.map)(function(e){return r&&function(e,t,a){var r=[],n=t.data,i=(0,O.map)((0,O.get)("x"),t.data),o=void 0,l=void 0;(0,O.each)(function(e){o=i.indexOf(e),l=o>-1?n[o]:{x:e,y:a,isDefaultValue:!0},r.push(l)},e),t.data=r}(r,e,D),e},i);function o(e){var t=R.default.getPartNames(e);F(e);return{name:(0,O.last)(t),data:(0,O.size)(t)>1?(0,O.head)(t):null}}}}},{key:"configureRegression",value:function(e,t){(0,O.isEmpty)(e)||(0,O.isEmpty)(t)||(0,O.forEach)(function(t){var a=e[t.name];if(!a&&!(0,O.isNil)(t.nameField)){var r=t.nameField.fieldNameAlias,n=(0,O.find)(function(e){return e===r},(0,O.keys)(e));a=e[n]}var o=(0,O.get)("regression",a),l={regression:!!o,regressionSettings:o};(0,i.default)(t,l)},t)}}]),t}(f.default))||n;t.default=k,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,l,s,u=_(a(17)),d=_(a(23)),c=_(a(80)),p=_(a(2)),f=_(a(3)),h=a(192),m=_(h),g=_(a(33)),E=a(77),y=a(1),v=a(59),T=a(5);function _(e){return e&&e.__esModule?e:{default:e}}function S(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var C=(n=(0,v.exportClass)("ReportPartContent"),i=(0,T.action)("readData"),n((l=function(){function e(t){var a,r,n,i;(0,p.default)(this,e),a=this,r="customContainers",i=this,(n=s)&&(0,u.default)(a,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.type=t,this.optionsDefaultFunc=function(e,a){return(0,y.compose)((0,y.get)("optionsDefault"),E.getConfiguration)(t,e,a)},this.isChartType=m.default.isReportPartStyle(this.type),this.getBaseChartType=m.default.getBaseStyle(this.type)}return(0,f.default)(e,[{key:"setVizEngine",value:function(e){throw new Error("This report part content has not implemented the set visualization engine function")}},{key:"setVizEngineByCurrentChartType",value:function(){var e=(0,y.flow)((0,y.filter)({style:this.reportPartStyle}),(0,y.map)("vizEngine"))((0,h.getAll)(this.type)),t=(0,y.includes)(this.defaultVizEngine,e);this.setVizEngine(t?this.defaultVizEngine:(0,y.first)(e))}},{key:"addCustomContainer",value:function(e){r(e,"Container name must have a value"),r(!(0,y.has)(e,this),"The container name "+e+" has been used.");var t=g.default.addCustomContainers(this.customContainers,e);(0,T.extendObservable)(this,(0,c.default)({},e,t))}},{key:"readData",value:function(e){e=e||{};var t=(0,y.get)("customContainers",e);if(t&&t.length>0){var a=this.customContainers.map(function(e){var a=e.name,r=(0,y.find)(["name",a],t);return r?g.default.populateReportChartContainer(r,a):e});this.customContainers.replace(a)}}},{key:"autoSize",get:function(){return!1}},{key:"optionsDefault",get:function(){return this.optionsDefaultFunc(this.reportPartStyle,this.vizEngine)}},{key:"defaultOptionsByType",get:function(){return this.optionsDefault.optionsByType}},{key:"defaultCommonOptions",get:function(){return this.optionsDefault.commonOptions}},{key:"reportPartStyle",get:function(){throw new Error("The report part content has not defined report part style")}},{key:"vizEngine",get:function(){throw new Error("The report part content has not defined visualization engine")}},{key:"defaultVizEngine",get:function(){throw new Error("The report part content has not defined default visualization engine")}}]),e}(),s=S(l.prototype,"customContainers",[T.observable],{enumerable:!0,initializer:function(){return[]}}),S(l.prototype,"setVizEngineByCurrentChartType",[T.action],(0,d.default)(l.prototype,"setVizEngineByCurrentChartType"),l.prototype),S(l.prototype,"readData",[i],(0,d.default)(l.prototype,"readData"),l.prototype),o=l))||o);t.default=C,e.exports=t.default}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(58),i=(r=n)&&r.__esModule?r:{default:r},o=a(1);var l={world:["World","world"]},s={africa:["Africa","continents/africa"],antarctica:["Antarctica","continents/antarctica"],asia:["Asia","continents/asia"],"british-isles":["British-Isles","continents/british-isles"],"usa-and-canada":["Canada-and-United-States-of-America","continents/usa-and-canada"],"central-america":["Central America","continents/central-america"],europe:["Europe","continents/europe"],"middle-east":["Middle East","continents/middle-east"],"nordic-countries":["Nordic-Countries","continents/nordic-countries"],"north-america":["North America","continents/north-america"],scandinavia:["Scandinavia","continents/scandinavia"],"south-america":["South America","continents/south-america"]},u={af:["Afghanistan","countries/af-all"],al:["Albania","countries/al-all"],dz:["Algeria","countries/dz-all"],as:["American Samoa","countries/as-all"],ad:["Andorra","countries/ad-all"],ao:["Angola","countries/ao-all"],ag:["Antigua and Barbuda","countries/ag-all"],ar:["Argentina","countries/ar-all"],am:["Armenia","countries/am-all"],au:["Australia","countries/au-all"],at:["Austria","countries/at-all"],az:["Azerbaijan","countries/az-all"],bh:["Bahrain","countries/bh-all"],bd:["Bangladesh","countries/bd-all"],bb:["Barbados","countries/bb-all"],by:["Belarus","countries/by-all"],be:["Belgium","countries/be-all"],bz:["Belize","countries/bz-all"],bj:["Benin","countries/bj-all"],bt:["Bhutan","countries/bt-all"],bo:["Bolivia","countries/bo-all"],ba:["Bosnia and Herzegovina","countries/ba-all"],bw:["Botswana","countries/bw-all"],br:["Brazil","countries/br-all"],bn:["Brunei","countries/bn-all"],bg:["Bulgaria","countries/bg-all"],bf:["Burkina Faso","countries/bf-all"],bi:["Burundi","countries/bi-all"],kh:["Cambodia","countries/kh-all"],cm:["Cameroon","countries/cm-all"],ca:["Canada","countries/ca-all",{STATE_LIST_NAME:"CANADA_STATES",COUNTY_MAP:"countries/ca-all-all"}],cv:["Cape Verde","countries/cv-all"],cf:["Central African Republic","countries/cf-all"],td:["Chad","countries/td-all"],cl:["Chile","countries/cl-all"],cn:["China","countries/cn-all"],co:["Colombia","countries/co-all"],km:["Comoros","countries/km-all"],ck:["Cook Islands","countries/ck-all"],cr:["Costa Rica","countries/cr-all"],hr:["Croatia","countries/hr-all"],cu:["Cuba","countries/cu-all"],cy:["Cyprus","countries/cy-all"],cz:["Czech Republic","countries/cz-all"],cd:["Democratic Republic of the Congo","countries/cd-all"],dk:["Denmark","countries/dk-all"],dj:["Djibouti","countries/dj-all"],dm:["Dominica","countries/dm-all"],do:["Dominican Republic","countries/do-all"],tl:["East Timor","countries/tl-all"],ec:["Ecuador","countries/ec-all"],eg:["Egypt","countries/eg-all"],sv:["El Salvador","countries/sv-all"],gq:["Equatorial Guinea","countries/gq-all"],er:["Eritrea","countries/er-all"],ee:["Estonia","countries/ee-all"],et:["Ethiopia","countries/et-all"],fo:["Faroe Islands","countries/fo-all"],fj:["Fiji","countries/fj-all"],fi:["Finland","countries/fi-all"],fr:["France","countries/fr-all"],ga:["Gabon","countries/ga-all"],gm:["Gambia","countries/gm-all"],ge:["Georgia","countries/ge-all"],de:["Germany","countries/de-all"],gh:["Ghana","countries/gh-all"],gr:["Greece","countries/gr-all"],gl:["Greenland","countries/gl-all"],gd:["Grenada","countries/gd-all"],gu:["Guam","countries/gu-all"],gt:["Guatemala","countries/gt-all"],gn:["Guinea","countries/gn-all"],gw:["Guinea Bissau","countries/gw-all"],gy:["Guyana","countries/gy-all"],ht:["Haiti","countries/ht-all"],hn:["Honduras","countries/hn-all"],hu:["Hungary","countries/hu-all"],is:["Iceland","countries/is-all"],in:["India","countries/in-all"],id:["Indonesia","countries/id-all"],ir:["Iran","countries/ir-all"],iq:["Iraq","countries/iq-all"],ie:["Ireland","countries/ie-all"],il:["Israel","countries/il-all"],it:["Italy","countries/it-all"],ci:["Ivory Coast","countries/ci-all"],jm:["Jamaica","countries/jm-all"],jp:["Japan","countries/jp-all"],jo:["Jordan","countries/jo-all"],kz:["Kazakhstan","countries/kz-all"],ke:["Kenya","countries/ke-all"],kv:["Kosovo","countries/kv-all"],kw:["Kuwait","countries/kw-all"],kg:["Kyrgyzstan","countries/kg-all"],la:["Laos","countries/la-all"],lv:["Latvia","countries/lv-all"],lb:["Lebanon","countries/lb-all"],ls:["Lesotho","countries/ls-all"],lr:["Liberia","countries/lr-all"],ly:["Libya","countries/ly-all"],li:["Liechtenstein","countries/li-all"],lt:["Lithuania","countries/lt-all"],lu:["Luxembourg","countries/lu-all"],mk:["Macedonia","countries/mk-all"],mg:["Madagascar","countries/mg-all"],mw:["Malawi","countries/mw-all"],my:["Malaysia","countries/my-all"],ml:["Mali","countries/ml-all"],mt:["Malta","countries/mt-all"],mr:["Mauritania","countries/mr-all"],mu:["Mauritius","countries/mu-all"],mx:["Mexico","countries/mx-all"],md:["Moldova","countries/md-all"],mc:["Monaco","countries/mc-all"],mn:["Mongolia","countries/mn-all"],me:["Montenegro","countries/me-all"],ma:["Morocco","countries/ma-all"],mz:["Mozambique","countries/mz-all"],mm:["Myanmar","countries/mm-all"],na:["Namibia","countries/na-all"],nr:["Nauru","countries/nr-all"],np:["Nepal","countries/np-all"],nc:["New Caledonia","countries/nc-all"],nz:["New Zealand","countries/nz-all"],ni:["Nicaragua","countries/ni-all"],ne:["Niger","countries/ne-all"],ng:["Nigeria","countries/ng-all"],kp:["North Korea","countries/kp-all"],mp:["Northern Mariana Islands","countries/mp-all"],no:["Norway","countries/no-all"],om:["Oman","countries/om-all"],pk:["Pakistan","countries/pk-all"],pw:["Palau","countries/pw-all"],pa:["Panama","countries/pa-all"],pg:["Papua New Guinea","countries/pg-all"],py:["Paraguay","countries/py-all"],pe:["Peru","countries/pe-all"],ph:["Philippines","countries/ph-all"],pl:["Poland","countries/pl-all"],pt:["Portugal","countries/pt-all"],pr:["Puerto Rico","countries/pr-all"],qa:["Qatar","countries/qa-all"],rs:["Republic of Serbia","countries/rs-all"],cg:["Republic of the Congo","countries/cg-all"],ro:["Romania","countries/ro-all"],ru:["Russia","countries/ru-all"],rw:["Rwanda","countries/rw-all"],kn:["Saint Kitts and Nevis","countries/kn-all"],lc:["Saint Lucia","countries/lc-all"],vc:["Saint Vincent and the Grenadines","countries/vc-all"],ws:["Samoa","countries/ws-all"],sm:["San Marino","countries/sm-all"],st:["Sao Tome and Principe","countries/st-all"],sa:["Saudi Arabia","countries/sa-all"],sn:["Senegal","countries/sn-all"],sc:["Seychelles","countries/sc-all"],sl:["Sierra Leone","countries/sl-all"],sg:["Singapore","countries/sg-all"],sk:["Slovakia","countries/sk-all"],si:["Slovenia","countries/si-all"],sb:["Solomon Islands","countries/sb-all"],so:["Somalia","countries/so-all"],sx:["Somaliland","countries/sx-all"],za:["South Africa","countries/za-all"],kr:["South Korea","countries/kr-all"],ss:["South Sudan","countries/ss-all"],es:["Spain","countries/es-all"],lk:["Sri Lanka","countries/lk-all"],sd:["Sudan","countries/sd-all"],sr:["Suriname","countries/sr-all"],sz:["Swaziland","countries/sz-all"],se:["Sweden","countries/se-all"],ch:["Switzerland","countries/ch-all"],sy:["Syria","countries/sy-all"],tw:["Taiwan","countries/tw-all"],tj:["Tajikistan","countries/tj-all"],th:["Thailand","countries/th-all"],bs:["The Bahamas","countries/bs-all"],nl:["The Netherlands","countries/nl-all"],tg:["Togo","countries/tg-all"],tt:["Trinidad and Tobago","countries/tt-all"],tn:["Tunisia","countries/tn-all"],tr:["Turkey","countries/tr-all"],tm:["Turkmenistan","countries/tm-all"],ug:["Uganda","countries/ug-all"],ua:["Ukraine","countries/ua-all"],ae:["United Arab Emirates","countries/ae-all"],gb:["United Kingdom","countries/gb-all"],tz:["United Republic of Tanzania","countries/tz-all"],vi:["United States Virgin Islands","countries/vi-all"],us:["United States of America","countries/us-all",{STATE_LIST_NAME:"US_STATES",COUNTY_MAP:"countries/us-all-all"}],"us-all-territories":["United States of America with Territories","countries/us-all-territories",{STATE_LIST_NAME:"US_STATES",COUNTY_MAP:"countries/us-all-all",BASE_NAME:"United States of America"}],uy:["Uruguay","countries/uy-all"],uz:["Uzbekistan","countries/uz-all"],vu:["Vanuatu","countries/vu-all"],ve:["Venezuela","countries/ve-all"],vn:["Vietnam","countries/vn-all"],wf:["Wallis and Futuna","countries/wf-all"],eh:["Western Sahara","countries/eh-all"],ye:["Yemen","countries/ye-all"],zm:["Zambia","countries/zm-all"],zw:["Zimbabwe","countries/zw-all"]},d={"ca-ab":["Alberta","ca/ca-ab-all"],"ca-bc":["British Columbia","ca/ca-bc-all"],"ca-mb":["Manitoba","ca/ca-mb-all"],"ca-nb":["New Brunswick","ca/ca-nb-all"],"ca-nl":["Newfoundland and Labrador","ca/ca-nf-all"],"ca-nt":["Northwest Territories","ca/ca-nt-all"],"ca-ns":["Nova Scotia","ca/ca-ns-all"],"ca-nu":["Nunavut","ca/ca-nu-all"],"ca-on":["Ontario","ca/ca-on-all"],"ca-pe":["Prince Edward Island","ca/ca-pe-all"],"ca-qc":["Quebec","ca/ca-qc-all"],"ca-sk":["Saskatchewan","ca/ca-sk-all"],"ca-yt":["Yukon","ca/ca-yt-all"]},c={"us-al":["Alabama","us/us-al-all"],"us-ak":["Alaska","us/us-ak-all"],"us-az":["Arizona","us/us-az-all"],"us-ar":["Arkansas","us/us-ar-all"],"us-ca":["California","us/us-ca-all"],"us-co":["Colorado","us/us-co-all"],"us-ct":["Connecticut","us/us-ct-all"],"us-de":["Delaware","us/us-de-all"],"us-dc":["District of Columbia","us/us-dc-all"],"us-fl":["Florida","us/us-fl-all"],"us-ga":["Georgia","us/us-ga-all"],"us-hi":["Hawaii","us/us-hi-all"],"us-id":["Idaho","us/us-id-all"],"us-il":["Illinois","us/us-il-all"],"us-in":["Indiana","us/us-in-all"],"us-ia":["Iowa","us/us-ia-all"],"us-ks":["Kansas","us/us-ks-all"],"us-ky":["Kentucky","us/us-ky-all"],"us-la":["Louisiana","us/us-la-all"],"us-me":["Maine","us/us-me-all"],"us-md":["Maryland","us/us-md-all"],"us-ma":["Massachusetts","us/us-ma-all"],"us-mi":["Michigan","us/us-mi-all"],"us-mn":["Minnesota","us/us-mn-all"],"us-ms":["Mississippi","us/us-ms-all"],"us-mo":["Missouri","us/us-mo-all"],"us-mt":["Montana","us/us-mt-all"],"us-ne":["Nebraska","us/us-ne-all"],"us-nv":["Nevada","us/us-nv-all"],"us-nh":["New Hampshire","us/us-nh-all"],"us-nj":["New Jersey","us/us-nj-all"],"us-nm":["New Mexico","us/us-nm-all"],"us-ny":["New York","us/us-ny-all"],"us-nc":["North Carolina","us/us-nc-all"],"us-nd":["North Dakota","us/us-nd-all"],"us-oh":["Ohio","us/us-oh-all"],"us-ok":["Oklahoma","us/us-ok-all"],"us-or":["Oregon","us/us-or-all"],"us-pa":["Pennsylvania","us/us-pa-all"],"us-ri":["Rhode Island","us/us-ri-all"],"us-sc":["South Carolina","us/us-sc-all"],"us-sd":["South Dakota","us/us-sd-all"],"us-tn":["Tennessee","us/us-tn-all"],"us-tx":["Texas","us/us-tx-all"],"us-ut":["Utah","us/us-ut-all"],"us-vt":["Vermont","us/us-vt-all"],"us-va":["Virginia","us/us-va-all"],"us-wa":["Washington","us/us-wa-all"],"us-wv":["West Virginia","us/us-wv-all"],"us-wi":["Wisconsin","us/us-wi-all"],"us-wy":["Wyoming","us/us-wy-all"]};function p(e,t){return f(e,t?t[e]:l[e]||s[e]||u[e]||[])}function f(e,t){return{label:(0,o.nth)(0,t),value:e,geoFile:(0,o.nth)(1,t),others:(0,o.nth)(2,t)}}function h(e){return(0,i.default)(e).map(function(t){return p(t,e)})}t.default={WORLDS:l,CONTINENTS:h(s),COUNTRIES:h(u),CANADA_STATES:h(d),US_STATES:h(c),SUPPORTED_COUNTRY_COUNTRIES:["ca","us","us-all-territories"],getMapInfo:p,searchMapInfoByMapLevel:function(e,t){switch(e){case"CONTINENT":var a=(0,o.get)("properties.continent",t)||(0,o.get)("continent",t);return l=a,p=s,(h=(0,o.find)(function(e){return l.toLowerCase()===e[0].toLowerCase()},(0,o.values)(p)))&&f(null,h);case"COUNTRY":var r=((0,o.get)("id",t)||(0,o.get)("hc-a2",t)).toLowerCase();return u[r]&&f(r,u[r]);case"STATE":var n=(0,o.get)("hc-key",t)||(0,o.get)("hc-key",t.properties);n=(0,o.toLower)(n);var i=d[n]||c[n];return i&&f(n,i);default:return null}var l,p,h}},e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(5),r=a(2733),n=a(110),i=a(258);function o(){var e={model:new i};t.extendObservable(this,e)}o.prototype.loadAllPermissions=function(){return r.loadAllPermissions()},o.prototype.loadAccessPriority=function(e){return n.accessPriority(e)},e.exports=o}()},function(e,t,a){"use strict";var r,n,i,o,l,s;r=a(0),n=a(29),i=a(10),o=a(4),a(193),l=a(16),s=r.createClass({displayName:"SettingsLevel",propTypes:{store:r.PropTypes.object.isRequired},componentDidMount:function(){this.props.store.loadTenants()},render:function(){var e=this.props.store,t=this.props.localization,a=i({"izenda-SettingLevel":!0,"disabled-elm":e.settingLevel.disableSystemSetting});return l.hideSystemLevel?null:r.createElement("section",{className:a},r.createElement("div",{className:"form-inline"},this.createRoleList(t),this.renderTenants(t)))},createRoleList:function(e){var t=this.props.store;i({"form-group u_noMarginAll u_marginRight u_inlineBlock":!0,"disabled-elm":t.settingLevel.disableRoleDropdown});return r.createElement("div",{className:"form-group u_noMarginAll u_marginRight u_inlineBlock"},r.createElement("label",{className:"u_marginRight"},e.getText("SETTING_LEVEL_LABEL_SETTING_LEVEL")),r.createElement("div",{className:"u_inlineBlock"},r.createElement(n,{options:t.settingLevel.availableLevels,value:t.settingLevel.selectedLevel(),labelField:"label",valueField:"value",onChange:this.changeSystemMode,disabled:t.settingLevel.disableRoleDropdown})))},renderTenants:function(e){var t=this.props.store.settingLevel,a=this.props.store.settingLevel.disableSystemSetting,o=i({"form-group u_noMarginAll u_inlineBlock izenda-SettingLevel-TenantName":!0,"disabled-elm":a});return t.showTenants()?r.createElement("div",{className:o},r.createElement("label",{className:"u_marginLeft u_marginRight"},e.getText("COMMON_LABEL_TENANT_NAME")),r.createElement("div",{className:"u_inlineBlock"},r.createElement(n,{options:t.tenants,value:t.selectedTenant,labelField:"name",valueField:"id",onChange:this.changeTenant,disabled:a}))):null},changeSystemMode:function(e){var t=this.props.store;if(t.settingLevel.selectedLevel()!==e.value)return this.props.confirmDirtyForm(l.isDirty,{onConfirmDirtyForm:l.onOkDirtyForm}).then(function(){return t.changeSystemMode(e)})},changeTenant:function(e){var t=this.props.store.settingLevel;if(t.selectedTenant!==e.value)return this.props.confirmDirtyForm(l.isDirty,{onConfirmDirtyForm:l.onOkDirtyForm}).then(function(){return t.changeTenant(e)})}}),e.exports=o()(s)},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(26),i=a(10),o=a(1).isNil,l=r.createClass({displayName:"Sidebar",propTypes:{isHiddenOnCollapsed:r.PropTypes.bool,isExpanded:r.PropTypes.bool,hasScrollBox:r.PropTypes.bool},getDefaultProps:function(){return{hasScrollBox:!0}},getInitialState:function(){return{isExpanded:!0}},componentWillMount:function(){this.updateExpanded(this.props.isExpanded)},componentWillReceiveProps:function(e){this.updateExpanded(e.isExpanded)},updateExpanded:function(e){o(e)||this.setState({isExpanded:e})},toggleSidebar:function(){this.setState({isExpanded:!this.state.isExpanded})},getCollapsibleStatus:function(){return this.state.isExpanded?"expanded":"collapsed"},render:function(){var e=i(this.getCollapsibleStatus(),{"izenda-Sidebar":!0});return r.createElement("div",{className:e,"aria-expanded":"false"},r.createElement("div",{className:"u_marginLeft u_fullHeight"},this.renderContent()))},renderContent:function(){var e=this.props.isHiddenOnCollapsed&&!this.state.isExpanded,t=i(this.props.className,this.getCollapsibleStatus()),a=r.createElement("div",null,this.renderCollapsibleSection(),!e&&r.createElement("div",{className:t},this.props.children));return this.props.hasScrollBox?r.createElement(n,{shouldInjectScrollCallbackToChild:!1},a):a},renderCollapsibleSection:function(){return r.createElement("div",{className:"collapsible"},r.createElement("div",{className:i("izenda-NavIcon",this.getCollapsibleStatus()),onClick:this.toggleSidebar},r.createElement("span",null),r.createElement("span",null),r.createElement("span",null),r.createElement("span",null),r.createElement("span",null),r.createElement("span",null)))}}),e.exports=l},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n,i,o,l=C(a(6)),s=C(a(2)),u=C(a(3)),d=C(a(7)),c=C(a(8)),p=a(0),f=C(p),h=C(a(13)),m=C(a(240)),g=C(a(169)),E=C(a(10)),y=C(a(88)),v=C(a(209)),T=C(a(4)),_=C(a(2798)),S=a(1);function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,T.default)()((o=i=function(e){function t(){var e,a,n,i;(0,s.default)(this,t);for(var o=arguments.length,u=Array(o),c=0;c1&&void 0!==arguments[1]&&arguments[1]?e.map(function(e){return{separatorList:t.getSeparatorInfo(e.separatorInfo),rowCollapsableList:t.buildCollapsableItems(e.records)}}):[]}},{key:"prepareDataForSave",value:function(){var e=this.reportPart,t=(0,Z.omit)(["report","reportPart","id","contentTitle","contentDescription","filters","contentFromPreset","editingTitle"],this);this.state!==V.default.INSERT?t.id=this.id:t.id=null,this.isDirty&&this.state===V.default.NONE&&(t.state=V.default.UPDATE),t.reportId=this.reportId,t.reportPartId=this.reportPartId,t.dashboardPartContent={contentTitle:this.contentTitle,contentDescription:this.contentDescription,contentFromPreset:this.contentFromPreset,textTypeContent:this.bodyContent.text},t.filters=(0,Z.invokeMap)("buildDataForSaving",this.filters),t.collapsableList=e&&this.buildReportView(e.reportInfo,this.isMaintainState)||[];var a=(0,Z.getOr)(Q.default.DEFAULT_PAGE_INDEX,"previewData.paging.pageIndex",e),r=(0,Z.getOr)(Q.default.DEFAULT_PAGE_SIZE,"previewData.paging.pageSize",e);return t.paging={pageIndex:a,pageSize:r},t}},{key:"delete",value:function(){this.state=V.default.DELETE,this.markDirty()}},{key:"buildConfigFieldList",value:function(e,t){var a=this;(0,Z.forEach)(function(r){var n=new Y.default(r.filterField,t);n.commonData.operatorGroup=(0,Z.clone)(e),n.value=r.value,n.setFilterValue=function(e){Y.default.prototype.setFilterValue.call(n,e),r.setFilterValue(this.fieldDetails.value),r.setOperatorId(this.fieldDetails.operatorId),r.configField.value=this.fieldDetails.value,r.operatorId=this.fieldDetails.operatorId,a.markDirty()},r.configField=n},this.filters)}},{key:"getRawContainerSize",value:function(e){return!(0,Z.isNil)(this.type)&&this.type!==U.default.TILE_TYPE.text.type&&(0,Z.getOr)(!1,"autoSize",this.reportPart)?{}:{height:e*this.height,width:e*this.width}}},{key:"getContainerSize",value:function(e){var t=this.getRawContainerSize(e);return(0,Z.isEmpty)(t)?{}:{height:t.height+"px",width:t.width+"px"}}},{key:"isNew",get:function(){return this.state===V.default.INSERT}},{key:"isDelete",get:function(){return this.state===V.default.DELETE}},{key:"isFullSize",get:function(){return this.isBackSide}},{key:"getDefaultName",get:function(){if(this.type===U.default.TILE_TYPE.text.type)return U.default.TILE_TYPE.text.type;var e=(0,Z.compact)([(0,Z.get)("categoryName",this.report)||U.default.UNCATEGORIZED,(0,Z.get)("subCategoryName",this.report),(0,Z.get)("name",this.report),(0,Z.get)("headerTitle",this.reportPart)]);return(0,Z.join)("/",e)}},{key:"typeConfig",get:function(){return(0,Z.flow)(Z.values,(0,Z.find)({type:this.type}))(U.default.TILE_TYPE)}},{key:"isReportPartType",get:function(){return this.type===U.default.TILE_TYPE.reportPart.type}},{key:"isTextType",get:function(){return this.type===U.default.TILE_TYPE.text.type}},{key:"numberOfRecordDisplayValue",get:function(){return this.numberOfRecord<0?"":this.numberOfRecord}},{key:"showNumberOfRecord",get:function(){return this.isReportPartType}},{key:"showRefeshButton",get:function(){return this.isReportPartType&&!this.isBackSide}},{key:"individualConfigFieldList",get:function(){return(0,Z.flow)((0,Z.filter)({isCommon:!1}),(0,Z.map)("configField"))(this.displayFilters)}},{key:"fullConfigFieldList",get:function(){return(0,Z.flow)((0,Z.sortBy)([(0,Z.negate)((0,Z.get)("isCommon")),(0,Z.get)("configField.fieldDetails.position")]),(0,Z.map)("configField"))(this.displayFilters)}},{key:"displayFilters",get:function(){return(0,Z.filter)(function(e){return!(0,Z.isNil)(e.filterField)&&e.filterField.dataType!=J.default.EXCLUDE_FILTER_DATA_TYPE.REF_CURSOR&&e.filterField.dataType!=J.default.EXCLUDE_FILTER_DATA_TYPE.SYS_REFCURSOR},this.filters)}}]),e}(),i=te(n.prototype,"id",[B.observable],{enumerable:!0,initializer:null}),o=te(n.prototype,"dashboardId",[B.observable],{enumerable:!0,initializer:null}),l=te(n.prototype,"positionX",[B.observable],{enumerable:!0,initializer:null}),s=te(n.prototype,"positionY",[B.observable],{enumerable:!0,initializer:null}),u=te(n.prototype,"width",[B.observable],{enumerable:!0,initializer:null}),d=te(n.prototype,"height",[B.observable],{enumerable:!0,initializer:null}),c=te(n.prototype,"title",[B.observable],{enumerable:!0,initializer:null}),p=te(n.prototype,"editingTitle",[B.observable],{enumerable:!0,initializer:null}),f=te(n.prototype,"isBackSide",[B.observable],{enumerable:!0,initializer:null}),h=te(n.prototype,"filterDescription",[B.observable],{enumerable:!0,initializer:null}),m=te(n.prototype,"isFullScreenMode",[B.observable],{enumerable:!0,initializer:null}),g=te(n.prototype,"numberOfRecord",[B.observable],{enumerable:!0,initializer:null}),E=te(n.prototype,"state",[B.observable],{enumerable:!0,initializer:null}),y=te(n.prototype,"filters",[B.observable],{enumerable:!0,initializer:null}),v=te(n.prototype,"type",[B.observable],{enumerable:!0,initializer:null}),T=te(n.prototype,"contentTitle",[B.observable],{enumerable:!0,initializer:null}),_=te(n.prototype,"contentDescription",[B.observable],{enumerable:!0,initializer:null}),S=te(n.prototype,"contentFromPreset",[B.observable],{enumerable:!0,initializer:null}),C=te(n.prototype,"bodyContent",[B.observable],{enumerable:!0,initializer:null}),b=te(n.prototype,"reportId",[B.observable],{enumerable:!0,initializer:null}),N=te(n.prototype,"reportPartId",[B.observable],{enumerable:!0,initializer:null}),A=te(n.prototype,"report",[B.observable],{enumerable:!0,initializer:null}),R=te(n.prototype,"reportPart",[B.observable],{enumerable:!0,initializer:null}),O=te(n.prototype,"disableViewReport",[B.observable],{enumerable:!0,initializer:null}),I=te(n.prototype,"disableViewReportMessage",[B.observable],{enumerable:!0,initializer:null}),D=te(n.prototype,"disableViewReportMessageKey",[B.observable],{enumerable:!0,initializer:null}),P=te(n.prototype,"filterRequired",[B.observable],{enumerable:!0,initializer:null}),L=te(n.prototype,"displayDashboardTileHeader",[B.observable],{enumerable:!0,initializer:null}),te(n.prototype,"isNew",[B.computed],(0,F.default)(n.prototype,"isNew"),n.prototype),te(n.prototype,"isDelete",[B.computed],(0,F.default)(n.prototype,"isDelete"),n.prototype),te(n.prototype,"isFullSize",[B.computed],(0,F.default)(n.prototype,"isFullSize"),n.prototype),te(n.prototype,"getDefaultName",[B.computed],(0,F.default)(n.prototype,"getDefaultName"),n.prototype),te(n.prototype,"typeConfig",[B.computed],(0,F.default)(n.prototype,"typeConfig"),n.prototype),te(n.prototype,"isReportPartType",[B.computed],(0,F.default)(n.prototype,"isReportPartType"),n.prototype),te(n.prototype,"isTextType",[B.computed],(0,F.default)(n.prototype,"isTextType"),n.prototype),te(n.prototype,"numberOfRecordDisplayValue",[B.computed],(0,F.default)(n.prototype,"numberOfRecordDisplayValue"),n.prototype),te(n.prototype,"showNumberOfRecord",[B.computed],(0,F.default)(n.prototype,"showNumberOfRecord"),n.prototype),te(n.prototype,"showRefeshButton",[B.computed],(0,F.default)(n.prototype,"showRefeshButton"),n.prototype),te(n.prototype,"individualConfigFieldList",[B.computed],(0,F.default)(n.prototype,"individualConfigFieldList"),n.prototype),te(n.prototype,"fullConfigFieldList",[B.computed],(0,F.default)(n.prototype,"fullConfigFieldList"),n.prototype),te(n.prototype,"displayFilters",[B.computed],(0,F.default)(n.prototype,"displayFilters"),n.prototype),te(n.prototype,"cleanDirty",[B.action],(0,F.default)(n.prototype,"cleanDirty"),n.prototype),te(n.prototype,"populateData",[B.action],(0,F.default)(n.prototype,"populateData"),n.prototype),te(n.prototype,"setPosition",[B.action],(0,F.default)(n.prototype,"setPosition"),n.prototype),te(n.prototype,"setType",[B.action],(0,F.default)(n.prototype,"setType"),n.prototype),te(n.prototype,"buildFilters",[B.action],(0,F.default)(n.prototype,"buildFilters"),n.prototype),te(n.prototype,"setNumberOfRecord",[B.action],(0,F.default)(n.prototype,"setNumberOfRecord"),n.prototype),te(n.prototype,"readReportInfo",[B.action],(0,F.default)(n.prototype,"readReportInfo"),n.prototype),te(n.prototype,"toggleSide",[B.action],(0,F.default)(n.prototype,"toggleSide"),n.prototype),te(n.prototype,"setTitle",[B.action],(0,F.default)(n.prototype,"setTitle"),n.prototype),te(n.prototype,"setEditingTitle",[B.action],(0,F.default)(n.prototype,"setEditingTitle"),n.prototype),te(n.prototype,"updateContentTitle",[B.action],(0,F.default)(n.prototype,"updateContentTitle"),n.prototype),te(n.prototype,"updateContentDescription",[B.action],(0,F.default)(n.prototype,"updateContentDescription"),n.prototype),te(n.prototype,"updateContentTitleSettings",[B.action],(0,F.default)(n.prototype,"updateContentTitleSettings"),n.prototype),te(n.prototype,"updateContentDescriptionSettings",[B.action],(0,F.default)(n.prototype,"updateContentDescriptionSettings"),n.prototype),te(n.prototype,"toggleFullScreenMode",[B.action],(0,F.default)(n.prototype,"toggleFullScreenMode"),n.prototype),te(n.prototype,"setVerticalAlignConfig",[B.action],(0,F.default)(n.prototype,"setVerticalAlignConfig"),n.prototype),te(n.prototype,"delete",[B.action],(0,F.default)(n.prototype,"delete"),n.prototype),te(n.prototype,"buildConfigFieldList",[B.action],(0,F.default)(n.prototype,"buildConfigFieldList"),n.prototype),r=n))||r;t.default=ne,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(12)),n=o(a(1358)),i=a(1);function o(e){return e&&e.__esModule?e:{default:e}}var l={Schema:1,Database:2};function s(e){return String.format("{0} - [{1}] {2} - {3}",e.databaseServer,e.serverTypeName,e.databaseName,e.databaseUser)}t.default={get TABLE_DEF(){return{fromDatabaseName:{key:"fromDatabaseName",columnKey:"fromDatabaseName",width:150,title:r.default.getText("DATABASE_MAPPING_LABEL_TABLE_DEF_GLOBAL_MAPPING_FROM_DB_NAME")},type:{key:"type",columnKey:"type",width:150,title:r.default.getText("COMMON_LABEL_TYPE")},fromObject:{key:"fromObject",columnKey:"fromObject",width:150,title:r.default.getText("COMMON_LABEL_OBJECT")},toDatabaseName:{key:"toDatabaseName",columnKey:"toDatabaseName",width:150,title:r.default.getText("DATABASE_MAPPING_LABEL_TABLE_DEF_GLOBAL_MAPPING_TO_DB_NAME")},toObject:{key:"toObject",columnKey:"toObject",width:150,title:r.default.getText("COMMON_LABEL_OBJECT"),infoIconOptions:{iconClass:"icon-info-circled",iconTitle:r.default.getText("COPY_MANAGEMENT_OBJECT_TOOLTIP")}},tenant:{key:"mappingTenants",columnKey:"mappingTenants",width:200,title:r.default.getText("DATABASE_MAPPING_LABEL_TENANT_COLUMN")},action:{width:60,fixed:!0,align:"center",title:r.default.getText("COMMON_LABEL_ACTION"),className:"align-bottom"}}},get REQUIRE_CONSTRAINT(){return{presence:{presence:!0,message:r.default.getText("COMMON_CONSTRAINT_REQUIRED")}}},get MAPPING_TYPES(){return[{label:r.default.getText("COPY_MANAGEMENT_LABEL_MAPPING_TYPE_SCHEMA"),value:l.Schema},{label:r.default.getText("COPY_MANAGEMENT_LABEL_MAPPING_TYPE_DATABASE"),value:l.Database}]},MAPPING_TYPE:l,MAPPING_HEIGHT:40,ALL_TENANT_ID:"AllTenantId",ALL_TENANT_OPTION:new n.default({id:"AllTenantId",name:r.default.getText("DATABASE_MAPPING_ALL_TENANTS")}),ALL_MAPPINGS_OPTION:new n.default({id:"AllTenantId",name:r.default.getText("DATABASE_MAPPING_ALL_MAPPINGS")}),DATABASE_NAME_OPTION_MAPPINGS:[{source:function(e){return s(e)},target:"key"},{source:function(e){return s(e)},target:"valueField"},{source:function(e){return String.format("[{0}] {1}",e.serverTypeName,e.databaseName)},target:"labelField"},{source:function(e){return(0,i.join)("\n",e.distinctKey)},target:"optionTooltip"},{source:function(e){return String.format("{0} - [{1}] {2} - {3}",e.databaseServer,e.serverTypeName,e.databaseName,e.name)},target:"connectionKey"},{source:function(e){return e.databaseServer},target:"databaseServer"},{source:function(e){return e.databaseUser},target:"databaseUser"}],DATABASE_NAME_KEY:"valueField",OBJECT_OPTION_MAPPINGS:[{source:function(e){return e},target:"key"},{source:function(e){return e},target:"valueField"},{source:function(e){return e},target:"labelField"}],OBJECT_KEY:"valueField",DEFAULT_PAGE_INDEX:1,DEFAULT_PAGE_SIZE:10,ID_PREFIX:"temp_",MAPPING_HASH_PATTERN:"{0}#{1}#{2}#{3}#{4}#{5}#{6}#{7}#{8}"},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(44)),n=i(a(10));function i(e){return e&&e.__esModule?e:{default:e}}var o=r.default.MESSAGE_TYPE,l=r.default.NLQCONFIGURATION_STATUS_MESSAGE,s=(0,n.default)("customeHeight");t.default={NLQ_NOTIFICATION_MESSAGE_KEY:{COMPLETED:"COMPLETED",PROGRESS:"IN_PROGRESS",ERROR:"ERROR"},RESET_NLQ_NOTIFICATION_MESSAGE_KEY:{RESETSUCCESS:"ResetSuccess",RESETERROR:"ResetError"},MESSAGE_TYPE:o,NLQCONFIGURATION_STATUS_MESSAGE:l,CLAZZNAME:s,SUCESS_CONFIG_MESSAGE:"NLQ Module Configured",INFOCONFIGMESSAGE:"NLQ configuration is in progress",RESET_CONFIG_MESSAGE:"Are you sure you want to reset NLQ configuration ?",COMPLETED:"COMPLETED",INPROGRESS:"IN_PROGRESS",INITIALIZE:"INITIALIZE",DELETED:"DELETED",ERROR:"ERROR",ERRORMESSAGE:"We are not able to connect to ML service. Please contact administrator for this.",ACTIVE_NLQ_DISABLEMSG:"Active NLQ schema is disabled",CONNECTION_DISABLE_MSG:"You cannot configure this because NLQ schema is disabled",SEARCH_MODE:{GUIDED:0,NATURAL:1},REQUEST_MODE:{NONE:0,CONFIG:1,SWITCH:2},CONFIG_STATUS_CALL_TIME:13e4,SEARCH_MODE_TEXT:{GUIDED:"Guided SearchMode Configured",NATURAL:"Natural SearchMode Configured"}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(70),i=(r=n)&&r.__esModule?r:{default:r};var o=function(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""))?e.split("&").reduce(function(e,t){var a=t.replace(/\+/g," ").split("="),r=a.shift(),n=a.length>0?a.join("="):void 0;return r=decodeURIComponent(r),n=void 0===n?null:decodeURIComponent(n),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(n):e[r]=[e[r],n]:e[r]=n,e},{}):{}};t.default={mergeQuery:function(){for(var e=arguments.length,t=Array(e),a=0;a=0?C.default.INSERT:C.default.UPDATE,isSubscription:o.model.isSubscriptionMode}),e.showSubscriptionPopup(t)},value:t})),f.default.createElement("a",null,f.default.createElement("span",{title:s.CopyText,className:"icon-copy",onClick:function(){(0,D.isNil)(d)?(o.copySubscribedInstance(t.id),c&&c(o.model.subscribedInstances),e.onClickSave()):d(t.id)},value:t})),f.default.createElement("a",null,f.default.createElement("span",{title:s.DeleteText,className:"icon-cancel",onClick:function(a){p("Confirmation",{description:u.M01a}).then(function(){(0,D.isNil)(h)?(o.removeSubscribedInstances([t.id]),c&&c(o.model.subscribedInstances),e.onClickSave()):h([t.id])})},value:r})))},e.getSelectedInstanceIds=function(){var t=e.props.store||{};return(0,D.placeholder)(t.activeInstances).chain().filter(function(e){return e.selectedValue}).map(function(e){return e.id}).value()},e.onClickDelete=function(t){var a=e.props,r=a.store,n=a.confirmFn,i=a.pageConstants,o=a.onSyncSubscription,l=(a.doesSaveToDB,a.onDelete);n("Confirmation",{description:i.MESSAGE.M01b}).then(function(){var t=e.getSelectedInstanceIds();(0,D.isNil)(l)?(r.removeSubscribedInstances(t),o&&o(r.model.subscribedInstances),e.onClickSave()):l(t)})},e.onClickAdd=function(){var t=e.props,a=t.store,r=t.confirmMessage;if(a.reportId&&(0,D.isNil)(O.default.currentUser.emailAddress))return r("error",I.default.MESSAGE.M04);var n=new S.default({dashboardId:a.dashboardId,reportId:a.reportId,state:C.default.INSERT,isSubscription:a.model.isSubscriptionMode},a.model.emailTemplates).init();e.showSubscriptionPopup(n)},e.showSubscriptionPopup=function(t){var a=e.props,r=a.store,n=a.openPopup,i=a.reportState,o=a.onSavePopupDesigner,l=a.dashboardDetail,s=a.updateCascadingFilterValue,u=r.model;return n(N.default,{reportState:i,data:t,onSave:o,onCheckDuplicateInstanceName:u.checkDuplicateInstanceName.bind(u),onValidateSubscription:r.validateSubscription.bind(r),dashboardDetail:l,store:r,updateCascadingFilterValue:s})},e.checkAll=function(t){e.props.store.model.selectAll(t)},e.beforeClosing=function(t,a){var r=e.props.store||{};return"cancel"!==a||e.props.confirmDirtyForm(!0===r.model.checkDirty()).then(function(){return!0})},e.onClickClose=function(){var t=e.props,a=(t.store||{}).model.checkDirty(),r=function(){t.onClose&&t.onClose()};a?t.confirmDirtyForm(a).then(function(){r()}):r()},e.onClickSave=function(){e.props.onSave&&e.props.onSave()},e.renderTable=function(){var t=e.props,a=t.store,r=t.pageConstants.TABLE_DEF,n=a.model||{},i=n.pageInfo||{},l=n.activeInstances||[],s={checked:n.hasAllActiveInstancesSelected,onChange:(0,A.notifyChange)(e.checkAll,R.default.CHECKBOX),type:"checkbox"},u=(0,D.merge)(r.selectedValue,{headerComponent:_.default,headerComponentProps:s},{});return f.default.createElement(y.Table,{dataSource:l,onSortChange:e.onSortChange,draggableTable:!1,sortInfo:i.colSortDirs},(0,D.map)(function(t){switch(t.key){case"selectedValue":return f.default.createElement(y.Column,(0,o.default)({},u,{cell:e.renderSelectCell}));case"action":return f.default.createElement(y.Column,(0,o.default)({},t,{cell:e.renderAction}));default:return f.default.createElement(y.Column,(0,o.default)({},t,{cell:e.renderTextCell}))}},(0,D.values)(r)))},e.updateSearchCriteria=function(){for(var t,a=arguments.length,r=Array(a),n=0;n0&&this.renderGrid(),"none"===a||"value"===a&&e||"allValues"===a&&1===r.length?null:C.default.createElement(A.default,{className:"u_floatRight",label:O.default.getText("SETTING_BY_RANGE_ADD_SETTING"),onClick:this.addNewSetting}))}},{key:"renderHeader",value:function(){var e=this.props,t=this.model,a=(0,b.getOr)({},"valueProps",e);return C.default.createElement(R.default,{className:"izenda-SettingByRange-Header"},C.default.createElement(R.default.Row,null,C.default.createElement(R.default.Col,{cols:5,className:"u_controlHeight"},C.default.createElement("span",null,a.title)),C.default.createElement(R.default.Col,{cols:7},C.default.createElement(N.default,{options:function(){var t=function(t){var a=[];for(var r in F)(e.isGridReport||"allValues"!==r)&&t.indexOf(r)>-1&&a.push((0,b.assign)(F[r],{key:r}));return a};if(e.haveName)return e.isHiddenValueOption?t(["none","rangeValue","rangePercent","allValues"]):t(["none","value","rangeValue","rangePercent","allValues"]);switch(e.dataType){case M.TEXT:case M.BOOLEAN:return t(["value","allValues"]);case M.DATETIME:var a=k(e.dateTimeFormatData);return t((0,b.getOr)(["value","rangeValue","allValues"],"settingByGroupBy.SETTINGS_VALUE_TYPE",a));case M.TIME:return t(["value","rangeValue","allValues"]);case M.MONEY:case M.NUMERIC:default:return t(["value","rangeValue","rangePercent","allValues"])}}(),value:t.selectedValueType,labelField:"label",valueField:"key",onChange:function(e,a){t.setValueType(e.value),this.initData()}.bind(this)}))))}},{key:"renderGrid",value:function(){var e=this.props,t=this.props,a=t.containerName,r=t.fieldStore,n=t.haveName,i=t.useThresholds,o=t.canMove,l=this.model,s=l.selectedValueType,d=l.selectedSettingsList,c=(0,b.get)("dataTree.flattenQuerySourceIncludeCalculatedField",r),p=d||[],f=!!o&&"value"!==s,h=i&&"value"===s&&"shadingMetric"===a;return C.default.createElement("table",{className:"table table-bordered u_fullWidth"},C.default.createElement("thead",null,C.default.createElement("tr",null,o?C.default.createElement("th",null):null,h&&C.default.createElement("th",{style:{minWidth:"150px"}},C.default.createElement("label",null,O.default.getText("COMMON_LABEL_TYPE"))),n?C.default.createElement("th",null,C.default.createElement("label",null,O.default.getText("COMMON_LABEL_NAME"))):null,C.default.createElement("th",{className:"izenda-SettingByRange_ValueLabel"},C.default.createElement("label",null,O.default.getText("COMMON_LABEL_VALUE"))),C.default.createElement("th",null,C.default.createElement("label",null,(0,b.get)("valueProps.title",e))),n&&"value"===s?null:C.default.createElement("th",null))),C.default.createElement("tbody",null,p.map(function(t,r){return C.default.createElement(I.default,(0,u.default)({},e,{fieldContainerName:a,dataTree:c,itemData:t,itemIndex:r,valueType:s,key:t.id,canChangeThresholdType:h,canMove:f,onMove:m,onDelete:function(e){p.splice(e,1)}.bind(null,r)}))})));function m(e,t){t<0&&(t=0),t>=p.length&&(t=p.length-1),e!==t&&p.splice(t,0,p.splice(e,1)[0])}}},{key:"initData",value:function(){var e=this.props.haveName,t=this.model,a=this.props,r=t.selectedValueType,n=t.settingsValue[r]||[];a.allowNullValueOverwrite&&!e&&"value"===r&&(t.settingsValue.value.find(function(e){return e.key===P.default.NULL_VALUE})||t.addNewSetting({canBeBlank:!0,forcedDataType:M.TEXT,key:P.default.NULL_VALUE,text:"",id:(0,b.uniqueId)("setting_"),functionId:null,canDelete:!0,fields:[new v.default],thresholdType:"static"}),t.settingsValue.value.find(function(e){return e.key===P.default.BLANK_VALUE})||t.addNewSetting({canBeBlank:!0,forcedDataType:M.TEXT,key:P.default.BLANK_VALUE,text:"",id:(0,b.uniqueId)("setting_"),functionId:null,canDelete:!0,fields:[new v.default],thresholdType:"static"})),e&&"value"===r&&0===n.length?(t.addNewSetting({name:O.default.getText("COMMON_LABEL_LOW"),key:"",text:a.minColor||"",id:(0,b.uniqueId)("setting_"),functionId:null,canDelete:!1,thresholdType:a.useThresholds?m.default.THRESHOLD.THRESHOLD_TYPES.STATIC.value:null,fields:[new v.default]}),t.addNewSetting({name:O.default.getText("COMMON_LABEL_HIGH"),key:"",text:a.maxColor||"",id:(0,b.uniqueId)("setting_"),functionId:null,canDelete:!1,thresholdType:a.useThresholds?m.default.THRESHOLD.THRESHOLD_TYPES.STATIC.value:null,fields:[new v.default]})):(0,b.forEach)(function(e){return e.id=(0,b.uniqueId)("setting_")},n)}},{key:"getThresholdContainer",value:function(){var e=(0,b.getOr)(null,"reportPartContent.customContainers",this.props);return D.default.findCustomContainer(g.default.ThresholdContainer,e)}},{key:"getThresholdSubtotalsContainer",value:function(){var e=(0,b.getOr)(null,"reportPartContent.customContainers",this.props);return D.default.findCustomContainer(g.default.ThresholdSubtotalsContainer,e)}},{key:"cleanUpCustomContainers",value:function(){var e=(0,b.getOr)(null,"reportPartContent.customContainers",this.props);if(e&&e.length){var t=this.props.configReportPart;D.default.removeFieldsFromContainer(null,g.default.ThresholdContainer,e,t),D.default.removeFieldsFromContainer(null,g.default.ThresholdSubtotalsContainer,e,t)}}},{key:"updateCustomContainers",value:function(){var e=this,t=this.model,a=this.props,r=t.selectedValueType;if("value"!==r)return(0,l.resolve)();var n=a.configField,i=a.fieldStore,o=a.configReportPart,u=(0,b.get)("dataTree.flattenQuerySourceIncludeCalculatedField",i);return this.cleanUpCustomContainers(),new s.default(function(a){var i=[],s=t.settingsValue[r];(0,b.forEach)(function(t){var a=t.thresholdType,r=t.fields,l=t.functionId,s=t.functions,d=t.functionData,c=r[0];if(c)if(m.default.THRESHOLD.THRESHOLD_TYPES.DYNAMIC_SUBTOTAL.value===a){var p=(0,b.find)(function(e){return e.id===c.fieldId&&e.querySourceDetail.id===c.querySourceId},u),f=e.getThresholdSubtotalsContainer(),h=o.insertFieldToContainer(f,p.field,p.querySourceDetail,null,n.functionInfo,null,!1).then(function(e){var t=String.newGuid();e.name=t,e.field.fieldNameAlias=t,c.updateFieldName(t);var a,r,n,i=(0,b.find)({name:E.default.FUNCTION.COUNT.NAME},s),o=(0,b.getOr)(null,"id",i),u=(0,b.find)({id:l||o},s);a=e,r=u,(n=(0,b.get)("properties.dataFormattings.subTotal",a)).label=r.name+"("+a.name+")",n.expression=r.name+"(["+a.name+"])",n.dataType=r.dataType,n.function=r.name});i.push(h)}else if(m.default.THRESHOLD.THRESHOLD_TYPES.DYNAMIC.value===a){var g=(0,b.find)(function(e){return e.id===c.fieldId&&e.querySourceDetail.id===c.querySourceId},u),y=e.getThresholdContainer(),v=o.insertFieldToContainer(y,g.field,g.querySourceDetail,null,d,null,!1).then(function(e){var t=String.newGuid();e.name=t,e.field.fieldNameAlias=t,c.updateFieldName(t)});i.push(v)}},s),i.length?(0,l.all)(i).then(a):a()})}}]),t}(S.Component),n.propsType={allowNullValueOverwrite:C.default.PropTypes.bool,dataType:C.default.PropTypes.string,settingValue:C.default.PropTypes.object,valueProps:C.default.PropTypes.object,haveName:C.default.PropTypes.bool},n.getDefaultProps={allowNullValueOverwrite:!1,haveName:!1},o=function(){var e=this;this.getValue=function(){return e.cleanUp(),(0,T.toJS)(e.model.getSettingValue())},this.beforeClosing=function(t,a){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("cancel"===a)return!0;var n=e.model,i=e.props,o=i.allowNullValueOverwrite,u=i.fieldStore,d=i.configReportPart,c=i.haveName;if(e.valManager=t,n.removeEmptySettingValue(c,o),!n.isExistsUncompleteRangeValue(c)){var p=(0,b.getOr)({},"validateMessages",e.props),f=c&&n.checkDuplicateName()||[],h=n.checkEmptyDynamicValues(),m=n.checkEmptyDynamicSubtotalValues(),g=k(e.props.dateTimeFormatData),E=n.checkConstrains(e.props.dataType,(0,b.getOr)(!1,"settingByGroupBy.RANGE_CYCLE",g)),y=E.duplicate,v=E.invalidRange,T=[];if(h&&h.length&&(T=(0,b.concat)(T,e.buildValidationError(h,p.FIELD_VALUE))),m&&m.length&&(T=(0,b.concat)(T,e.buildValidationError(m,p.FIELD_FUNCTION_IS_MISSING))),f.length>0&&(T=(0,b.concat)(T,e.buildValidationError(f,p.DUPLICATE_NAME))),y.length>0&&(T=(0,b.concat)(T,e.buildOverlapRangeError(y))),v.length>0&&(T=(0,b.concat)(T,e.buildErrorList(v,p.INVALID_RANGE))),T.length>0)return t.reset(),t.updateErrors(T),(0,l.resolve)(!1)}return new s.default(function(t){e.updateCustomContainers().then(function(){d&&r&&(d.useForThreshold=!0,d.refreshDataProcess=!0,u.needUpdatePreview(d)),t(!0)})})},this.buildValidationError=function(e,t){return(0,b.map)(function(e){return{key:""+e.id,messages:[t]}},e)},this.buildErrorList=function(t,a){var r=e.model.selectedValueType;return(0,b.flatMap)(function(e){return"value"===r?[{key:e.id,messages:[a]}]:[{key:e.id+"_from",messages:[a]},{key:e.id+"_to",messages:[a]}]},t)},this.buildOverlapRangeError=function(t){var a=(0,b.getOr)({},"validateMessages",e.props),r=e.model.selectedValueType,n=function(){var e="";switch(r){case"value":e=a.VALUE;break;case"rangeValue":e=a.RANGE_VALUE;break;case"rangePercent":e=a.RANGE_PERCENT;break;case"allValues":e=a.VALUE}return e}();return e.buildErrorList(t,n)},this.addNewSetting=function(){e.valManager&&e.valManager.reset(),e.model.addNewSetting()}},r=i))||r;t.default=x,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(16)),n=o(a(160)),i=a(1);function o(e){return e&&e.__esModule?e:{default:e}}t.default={getFunctionsData:function(e,t){return n.default.loadReportFunctions(e,t,r.default.tenantId)},getFunctionData:function(e,t,a,o){return n.default.loadReportFunction(e,t,r.default.tenantId,o).then(function(e){return(0,i.flow)((0,i.find)({name:a}),(0,i.defaults)({}))(e)})},getFormatsData:function(e){return n.default.loadReportFieldDataFormats(e)},getFormatData:function(e,t){return n.default.loadReportFieldDataFormat(e).then((0,i.flow)((0,i.find)({format:t}),(0,i.defaults)({})))},getFunction:function(e,t){return n.default.loadReportFunction(e,t,r.default.tenantId)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d=O(a(70)),c=a(20),p=O(a(14)),f=O(a(6)),h=O(a(2)),m=O(a(3)),g=O(a(7)),E=O(a(8)),y=a(0),v=O(y),T=a(5),_=O(a(10)),S=O(a(4)),C=O(a(32)),b=O(a(1083)),N=a(1),A=O(a(13)),R=O(a(270));function O(e){return e&&e.__esModule?e:{default:e}}var I=(0,S.default)()((n=function(e){function t(e){(0,h.default)(this,t);var a=(0,g.default)(this,(t.__proto__||(0,f.default)(t)).call(this,e));i.call(a);var r=e.uiState.value||{},n={};return((e.popupContentProps||{}).settingsBtn||[]).forEach(function(e,t){var a=e.disabledBy&&!r[e.disabledBy];n[e.ref||t]=!!a}),a.buttonSettingState=(0,T.observable)(n),a}return(0,E.default)(t,e),(0,m.default)(t,[{key:"render",value:function(){var e=this.props,t=e.popupContentProps,a=void 0===t?{}:t,r=e.localization,n=a.confirmButtonLabel||r.getText("COMMON_LABEL_OK");return v.default.createElement(C.default,(0,p.default)({},e.popupProps,{visible:!0,onClosing:this.closingPopup,onClosed:this.closePopup}),v.default.createElement(C.default.Header,{title:e.popupTitle||r.getText("POPUP_INPUT_DEFAULT_TITLE")}),v.default.createElement(C.default.Body,null,e.popupContent?v.default.createElement(e.popupContent,(0,p.default)({},e,a,{settingValue:e.uiState.settingValue,value:e.uiState.value,notifySettingButtonState:this.notifySettingButtonState,ref:this.setDom})):"empty-popup"),v.default.createElement(C.default.Footer,null,this.getSettingButtons(),v.default.createElement(C.default.ConfirmationButton,{type:"accept"},n),v.default.createElement(C.default.ConfirmationButton,{type:"cancel"},r.getText("COMMON_LABEL_CANCEL"))))}}]),t}(y.Component),i=function(){var e=this;this.closePopup=function(t){var a=e.props;if("accept"===t){var r=(0,N.invoke)("getValue",e.popupContent);(0,c.resolve)(a.onChange&&a.onChange({value:r})).finally(function(){a.onAccept()})}a.onReject()},this.closingPopup=function(t,a){var r=e.props,n=r.popupContentProps,i=void 0===n?{}:n,o=r.validation,l=e.popupContent;(function(e){var t=i.beforeClosing;if(t&&l[t])return(0,c.resolve)(l[t](o,e));return(0,c.resolve)(!0)})(a).then(function(e){e&&("accept"===a?o.validate().then(function(e){if(e)return(0,c.resolve)(r.onChange&&r.onChange({value:l.getValue&&l.getValue()})).finally(function(){o.reset(),r.onAccept()})}):((0,N.invoke)("resetData",l),o.reset(),r.onAccept()))})},this.handleConfirm=function(t){var a=e.props.validation,r=(0,N.getOr)([],"popupContentProps.settingsBtn",e.props),n=e.popupContent;a.reset();var i=r[t].action;i&&n[i]&&n[i]()},this.getSettingButtons=function(){return(0,N.getOr)([],"popupContentProps.settingsBtn",e.props).map(function(t,a){return v.default.createElement(C.default.ConfirmationButton,(0,p.default)({disabled:e.buttonSettingState[t.ref||a],ref:t.ref,key:a},t,{onClick:e.handleConfirm.bind(e,a)}))})},this.notifySettingButtonState=function(t,a){e.buttonSettingState[t]=a},this.setDom=function(t){e.popupContent=t}},r=n))||r,D=(0,S.default)()((s=l=function(e){function t(e){(0,h.default)(this,t);var a=(0,g.default)(this,(t.__proto__||(0,f.default)(t)).call(this,e));return u.call(a),a.uiState=new b.default,a.uiState.update(a.props),a}return(0,E.default)(t,e),(0,m.default)(t,[{key:"componentWillUpdate",value:function(e){this.uiState.update(e)}},{key:"render",value:function(){var e=this.props,t=this.uiState.hadSetting,a=e.localization,r=e.label,n=e.popupTitle,i=e.className,o=(0,_.default)("izenda-PopupInput",e.containerClassName);return v.default.createElement("div",{className:o},v.default.createElement(R.default,{hasValue:t,className:i,label:r,onClick:this.onClick,title:n}),t&&v.default.createElement("span",null,v.default.createElement("i",{className:"icon-cancel u-colorRed",title:a.getText("PROPERTIES_EDITOR_REMOVE_SETTING"),onClick:this.onResetValue})))}}]),t}(y.Component),l.propTypes={warningCondition:A.default.func,warningAction:A.default.func},u=function(){var e=this;this.onClick=function(){for(var t=arguments.length,a=Array(t),r=0;r-1||e.name.indexOf("[")>-1)}},{key:"render",value:function(){var e=this.props,t=e.localization,a=e.type,r=e.store,n=e.validation,i=e.reportDesigner,o=e.reportPart,l=e.expressionConfig,s=e.requireLabel,u=e.querySourceId;return p.default.createElement(E.default,{visible:!0,onClosing:this.onClosing,autoClose:!1,type:"none",sizeClass:"modal-lg",showLoading:this.uiStore.showLoading},p.default.createElement(E.default.Header,{title:a.title}),p.default.createElement(E.default.Body,null,p.default.createElement(y.default,{ref:"calculatedFieldContainer",store:r,validation:n,type:a,localization:t,reportDesigner:i,reportPart:o,expressionConfig:l,validateExpression:this.validateExpression,startLoading:this.startLoading,endLoading:this.endLoading,updateError:this.updateError,requireLabel:s,querySourceId:u})),p.default.createElement(E.default.Footer,null,p.default.createElement(E.default.ConfirmationButton,{key:"accept",type:"accept"},t.getText("COMMON_LABEL_OK")),p.default.createElement(E.default.ConfirmationButton,{key:"cancel",type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))}}]),t}(p.default.Component),r.propTypes={store:c.PropTypes.object.isRequired,onClose:c.PropTypes.func.isRequired,type:c.PropTypes.object.isRequired,reportPart:c.PropTypes.object,reportDesigner:c.PropTypes.object,requireLabel:c.PropTypes.bool,isCheckDuplicateWithActualField:c.PropTypes.bool},r.defaultProps={type:m.default.TYPES.ADD,requireLabel:!0,isCheckDuplicateWithActualField:!0},i=function(){var e=this;this.startLoading=function(){e.uiStore.showLoading=!0},this.endLoading=function(){e.uiStore.showLoading=!1},this.onAcceptClosing=function(){var t=e.props,a=t.store,r=t.localization,n=t.validation,i=t.requireLabel,o=t.onClose,l=t.onAccept,s=t.reportPart,u=t.reportDesignerStore,d=t.type;return e.startLoading(),e.validateExpression(!0).bind(e).then(function(t){return e.endLoading(),t}).then(function(t){if(t)return n.validate().then(function(t){var c=e.validateDuplicateName(),p=e.validateName();return c?(n.updateErrors([{key:m.default.VALIDATION_FIELD_NAME,messages:String.format(m.default.MESSAGES.DUPLICATE_NAME,a.clonedModel.name)}]),null):p?(n.updateErrors([{key:i?m.default.VALIDATION_FIELD_NAME:m.default.VALIDATION_SUB_TOTAL_FIELD_NAME,messages:r.getText("CALCULATED_FIELD_MESSAGE_INVALID_NAME")}]),null):i&&e.validateIzendaDataType()?(n.updateErrors([{key:m.default.VALIDATION_DATA_TYPE,messages:r.getText("CALCULATED_FIELD_MESSAGE_MISSING_DATA_TYPE")}]),null):(t&&(d&&d.name===v.default.getText("CALCULATED_FIELD_CONSTANTS_FUNCTION_TYPE_SUB_TOTAL_NAME")&&(u.alertDetails.set({success:!0,message:s.configField.field.fieldName+" "+v.default.getText("CALCULATED_FIELD_DEFAULT_SORT_MESSAGE")}),void 0===a.clonedModel.font.isChanged&&(a.clonedModel.font.isChanged=!0,a.clonedModel.font.bold=!0)),n.reset(),a.acceptClonedModel(),o(a.clonedModel),l()),t)})})},this.onCancelClosing=function(t){e.props.validation.reset(),t()},this.onClosing=function(t,a){return e.refs.calculatedFieldContainer.closeExpressionSelection(),"accept"===a?e.onAcceptClosing():"cancel"===a?e.onCancelClosing(function(){e.props.onAccept(),e.props.onClose(),t()}):void 0},this.validateExpression=function(t){var a=e.props,r=a.store,n=a.validation,i=a.reportDesigner,o=void 0===i?{}:i,l=a.reportPart,s=a.querySourceId,u=a.type,d=(0,T.get)("previewRecord",o);switch(n.reset(),u.name){case m.default.TYPES.SUB_TOTAL.name:case m.default.TYPES.GRAND_TOTAL.name:return r.validateExpressionWithReportKey(o,l,t).then(function(t){return e.updateError(t)});default:return r.validateExpression(s,t,d).then(function(t){return e.updateError(t)})}},this.updateError=function(t){return!!(0,T.isEmpty)(t)||(e.props.validation.updateErrors(t),!1)}},n);t.default=(0,g.default)(h.pure)(S),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=p(a(80)),i=p(a(58)),o=p(a(14)),l=p(a(198)),s=p(a(2)),u=p(a(3)),d=a(1),c=a(5);function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,a(59).exportClass)("ChartOptionsBuilder")(r=function(){function e(t,a,r,n,i){var o=this;(0,s.default)(this,e),this.visualType=t,this.chartOptions=n||{},this.chartData=r||[],this.fieldOptions=i,this.chartContainer=a,this.chartOptions.xAxis&&this.chartOptions.xAxis.forEach(function(e){e&&(e.axisName=o.chartData[0]&&o.chartData[0][0])})}return(0,u.default)(e,[{key:"setOnClickXLabel",value:function(e){this.chartOptions.onClickXLabel=e}},{key:"setOnClickYLabel",value:function(e){this.chartOptions.onClickYLabel=e}},{key:"mapOptionValues",value:function(e){var t=function(e,t,a){var r=a||{},n=r.commonOptions,i=r.optionsByType,s=r.axisOptions,u=r.thresholdOptions,c=e||{},p=c.commonOptions,f=c.optionByType,g=c.commonXYAxis,E=(0,l.default)(c,["commonOptions","optionByType","commonXYAxis"]),y=(0,o.default)({izLabelOrientation:(0,d.get)("izLabelOrientationX",g)},(0,d.get)("izGridLine.xAxis",g),(0,d.getOr)({},"xAxis",g)),v=(0,o.default)({izLabelOrientation:(0,d.get)("izLabelOrientationY",g)},(0,d.get)("izGridLine.yAxis",g),(0,d.getOr)({},"yAxis",g));return{chartOptions:(0,o.default)({commonOptions:m(p,n),optionByType:m(f,i),commonXYAxis:{xAxis:m(y,s),yAxis:m(v,s),metricAllOption:m((0,d.get)("metricAllOption",g),s),metricAllPlotLinesOption:m(h((0,d.get)("metricAllPlotLinesOption",g)),u),metricAllDynamicThresholdOption:m(h((0,d.get)("allDynamicThresholdLine",g)),u)}},E),fieldOptions:(0,d.mapValues)(function(e){var t=e.chartOptions,a=e.axisOption,r=e.threshold,n=e.dynamicThresholds,d=(0,l.default)(e,["chartOptions","axisOption","threshold","dynamicThresholds"]);return(0,o.default)({chartOptions:m(t,i),axisOption:m(a,s),threshold:m(h(r),u),dynamicThresholds:m(h(n),u)},d)},t)}}(this.chartOptions,this.fieldOptions,e),a=t.chartOptions,r=t.fieldOptions;this.chartOptions=a,this.fieldOptions=r}},{key:"build",value:function(){throw new Error("The build() method of ChartOptionsBuilder must be implementated appropriately.")}}]),e}())||r;function h(e){return(0,d.filter)(function(e){return e.izVisibleThresholdsSetting&&!!e.izValue},e)}function m(e,t){switch(!0){case!e||!t:return e;case(0,d.isString)(e):return t[e];case(0,d.isArray)(e)||(0,c.isObservableArray)(e):return(0,d.map)(function(e){return m(e,t)},e);case(0,d.isObject)(e):var a=(0,i.default)(e).reduce(function(a,r){var i=t[r];return i&&null!=e[r]?(0,d.merge)((0,n.default)({},i.key,i.source?m(e[r],i.source):e[r]),a):null!=e[r]?(0,d.merge)((0,n.default)({},r,e[r]),a):a},{});return(0,i.default)(a).reduce(function(e,t){return(0,d.set)(t,a[t],e)},{});default:throw new Error("Cannot recognize objValue type to parse")}}t.default=f,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o;r=a(0),n=a(15),i=a(1).isEmpty,o=r.createClass({displayName:"ErrorContainer",render:function(){var e=this.props.errors;if(i(e))return null;var t=e.map(function(e,t){return r.createElement(n.Col,{className:"error static-message",key:t},e)});return r.createElement(n.Row,null,t)}}),e.exports=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(1),n=[-85,85],i=[-180,180];function o(e,t){return e>=t[0]&&e<=t[1]}t.default={isValidLatLong:function(e,t){var a=parseFloat(e),l=parseFloat(t);return(0,r.isFinite)(a)&&(0,r.isFinite)(l)&&o(a,n)&&o(l,i)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=a(20),l=A(a(6)),s=A(a(2)),u=A(a(3)),d=A(a(7)),c=A(a(8)),p=a(0),f=A(p),h=A(a(13)),m=a(9),g=A(a(2106)),E=A(a(178)),y=A(a(26)),v=A(a(179)),T=A(a(308)),_=A(a(395)),S=A(a(43)),C=A(a(160)),b=a(1),N=a(34);function A(e){return e&&e.__esModule?e:{default:e}}var R=(0,m.observer)((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));a.completedRender=function(){var e=a.props,t=e.finishedRender;e.printingMode&&setTimeout(function(){window.status="completed",window.parent&&window.parent.postMessage("window.status.completed","*")},N.IMAGE_CONVERSION_DELAY),"function"==typeof t&&t()},a.mountReportPartDom=function(e){a.mounted=!0,a.frontSidePartRef=e},a.state={fulfilledData:!1};var r=e.reportPart;return a.mounted=!1,C.default.loadCustomDataFormat(),a.reportPartStore=new g.default,a.reportPartStore.pageId=e.page,r?(a.reportPartStore.reportPart=e.reportPart,a.reportPartStore.readyData=!0):a.reloadData(e).then(function(){a.mounted&&a.reportPartStore.readyData&&a.setState({fulfilledData:!0})}),a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.notInvokeRenderCallBackAfterDidMount,a=e.reportPart,r=e.printingMode;t||(0,b.invoke)("afterRenderCallBack",this.props),a&&S.default.Integration&&_.default.updateReportPart(a),a&&r&&this.setState({fulfilledData:!0})}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,a=this.reportPartStore,r=t.previewRecords;t.reportPartId===e.reportPartId&&t.reportPartDef===e.reportPartDef&&(0,b.isEqual)(t.subReportFilter,e.subReportFilter)?!t.setting&&(!(0,b.isEqual)(t.subReportFilter,e.subReportFilter)||S.default.Integration&&a.reportPart&&t.crosssfilters!==e.crosssfilters)&&a.updatePreviewData(e.subReportFilter,a.reportPart,{filters:e.crosssfilters},null,e.printingMode,!0,r,e.ignoreCache):this.reloadData(e)}},{key:"shouldComponentUpdate",value:function(e,t){return!(e.printingMode&&this.state.fulfilledData===t.fulfilledData)}},{key:"componentDidUpdate",value:function(){S.default.Integration&&_.default.updateReportPart(this.reportPartStore.reportPart),(0,b.invoke)("afterRenderCallBack",this.props)}},{key:"reloadData",value:function(e){var t=e.reportPartDef,a=e.printingMode,r=e.intergrateMode,n=e.location,i=e.subReportFilterFromQuery,l=e.subReportFilter,s=e.reportPartId,u=e.reportId,d=e.previewRecords,c=e.ignoreCache,p=this.reportPartStore,f=r?e.query:(0,b.get)("query",n),h=(0,b.get)("numberOfRecords",f),m=(0,b.getOr)(null,"draftId",f),g=(0,b.getOr)(null,"reportPartName",f);return(i?T.default.resolveSubReportFilter(i):(0,o.resolve)(l)).then(function(e){return m&&g?p.getDraftReportPartDefinition(m,g,e,a,d,h,c):t?p.updateDefinition(t,e,a,d,h,c):p.getReportPartDefinition(s,e,a,u,d,h,c)})}},{key:"checkBreakPage",value:function(){var e=this.reportPartStore.reportPart;return e.reportPartContent.checkBreakPage&&e.reportPartContent.checkBreakPage()}},{key:"render",value:function(){var e=this.props,t=this.props.store||this.reportPartStore,a=this.reportPartStore.reportPart,r=this.props,n=r.subReportFilter,i=r.printingMode,o=r.hideGridPopup,l=r.embededReportPart,s=r.containerSizeFixed,u=r.forExporting,d=r.width,c=r.height,p=r.exportFormatSetting,h=r.setting,m=r.afterRenderCallBack,g=r.isFirstReportPart,T=r.hideTitle,_=r.separator,S=r.pageNumber,C=r.elementsCountInContainer,b=r.publishDrillInfo,N=r.forDashboard,A=r.viewMode,R=r.previewRecords,O=r.ignoreCache;if(!a)return f.default.createElement(E.default,{show:!0});var I=v.default.getReportFrontSide(a.type,e.reportPart&&e.store?v.default.DISPLAY_SECTION.Report:v.default.DISPLAY_SECTION.Viewer),D={width:"100%",height:"100%"},P=void 0,L=void 0;l&&(P=e.containerWidth,L=e.containerHeight);var M=s?a.getContainerSize(P,L):D,F=i?D:M;u&&(F.width=d,F.height=c);var k=f.default.createElement(I,{style:i&&!u?M:D,reportPart:a,store:t,subReportFilter:n,afterRenderCallBack:m,printingMode:i,setting:h,exportFormatSetting:p,finishedRender:this.completedRender,fulfilledData:this.state.fulfilledData,doesBreakPage:this.checkBreakPage(),isFirstReportPart:g,hideTitle:T,separator:_,elementsCountInContainer:C,pageNumber:S,forExporting:u,embededReportPart:l,hideGridPopup:i||o||l,publishDrillInfo:b,forDashboard:N,viewMode:A,frontSidePartRef:this.frontSidePartRef,previewRecords:R,ignoreCache:O});return f.default.createElement("div",{style:F,ref:this.mountReportPartDom,className:"izenda-ReportPartFrontSideViewer-container"},i||e.containerSizeFixed&&a.autoSize?k:f.default.createElement(y.default,null,k))}}]),t}(p.Component),n.propTypes={containerSizeFixed:h.default.bool},n.defaultProps={containerSizeFixed:!0},r=i))||r;t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=h(a(17)),o=h(a(23)),l=h(a(2)),s=h(a(3)),u=h(a(79)),d=a(5),c=a(1),p=h(a(1171)),f=h(a(12));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var g=(r=function(){function e(){var t,a,r,o;(0,l.default)(this,e),t=this,a="palettes",o=this,(r=n)&&(0,i.default)(t,a,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(o):void 0}),this.originalColorPalette=null,this.currentColorPalette=null,this.needMaskDefault=!1}return(0,s.default)(e,[{key:"init",value:function(e,t,a){return this.originalColorPalette=this.currentColorPalette=e,this.needMaskDefault=t,this.loadThemes(a)}},{key:"loadThemes",value:function(e){var t=this;return u.default.fetchThemes().then(function(a){return t.palettes=a.map(function(t){return new p.default(t,e)}),a})}},{key:"getColorPaletteDetail",value:function(e){var t=this;if(!this.palettes)return null;var a=this.palettes.find(function(t){return t.name===e});if(a||(a=this.palettes.find(function(e){return e.name===t.defaultColorPalette})),a&&this.needMaskDefault&&a.name===this.defaultColorPalette){var r=f.default.getText("COLORPALETTE_DEFAULT");a.displayName=a.displayName+" ("+r+")"}return this.currentColorPalette=a.name,this.originalColorPalette=a.name,a}},{key:"updateSelectedPalette",value:function(e){this.currentColorPalette=e}},{key:"resetSelectedPalette",value:function(){(0,c.isUndefined)(this.originalColorPalette)?this.currentColorPalette=this.defaultColorPalette:this.currentColorPalette=this.originalColorPalette}},{key:"updateOriginalPalette",value:function(e){this.originalColorPalette=e}},{key:"defaultColorPalette",get:function(){var e=(0,c.find)("isDefaultTheme",this.palettes);return e?e.name:null}}]),e}(),n=m(r.prototype,"palettes",[d.observable],{enumerable:!0,initializer:function(){return[]}}),m(r.prototype,"defaultColorPalette",[d.computed],(0,o.default)(r.prototype,"defaultColorPalette"),r.prototype),r);t.default=g,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(a(14)),n=a(1),i=u(a(1172)),o=a(99),l=u(a(33)),s=u(a(396));function u(e){return e&&e.__esModule?e:{default:e}}var d=o.DEFAULT_VALUE_PROPERTIES.VERTICAL_ALIGNMENT;function c(e,t,a){var r={},l=e.isColumnHeader&&e.canRenderHeader?o.EMPTY_CELL_BACKGROUND_COLOR:null;return a.top&&1===t.deep&&!e.hideTopLeftBorder&&(r=(0,n.assign)(r,i.default.getBorderStyle("Top",a.top,l))),a.midHor&&1!==t.deep&&!e.hideTopLeftBorder&&(r=(0,n.assign)(r,i.default.getBorderStyle("Top",a.midHor,l))),a.left&&t.firstColumn&&!e.hideTopLeftBorder&&(r=(0,n.assign)(r,i.default.getBorderStyle("Left",a.left,l))),a.midVer&&!t.firstColumn&&(r=(0,n.assign)(r,i.default.getBorderStyle("Left",a.midVer,l))),a.right&&t.lastColumn&&!e.hideTopLeftBorder&&(r=(0,n.assign)(r,i.default.getBorderStyle("Right",a.right,l))),r}t.default={getCellStyleForPivotHeader:function(e,t){var a=this.props,i=a.reportPart,u=a.records,d=i.getReportPartProperties(),p=(0,n.get)("border",d.table),f=d.headers,h=(0,r.default)({},o.DEFAULT_PIVOT_GRID_CELL_STYLE);if(e.isColumnHeader){var m=(0,n.get)("font.backgroundColor",f);return e.canRenderHeader?(0,r.default)({backgroundColor:m},h,c(e,t,p)):(0,r.default)({backgroundColor:m},h)}var g=c(e,t,p);h=(0,n.assign)(h,g);var E="",y="",v={},T="";if(e.isColumnGroup)e.value?(E=(0,n.get)("font.backgroundColor",f),y=(0,n.get)("font.color",f),T=(0,n.get)("verticalAlignment",f),v=(0,n.get)("wordWrap",f)?{wordWrap:"break-word",whiteSpace:"pre-line"}:{wordWrap:"normal",whiteSpace:"pre"}):(E=o.EMPTY_CELL_BACKGROUND_COLOR,y=o.EMPTY_CELL_COLOR);else if(e.element){var _=e.element,S=e.element.properties.getDefaultsHeaderProperty("font.backgroundColor",f),C=e.element.properties.getDefaultsHeaderProperty("font.color",f),b=_.properties.hasRangePercent?s.default.buildRawRecordFilterForPivotGrid(e,u)[0]:{},N={element:{columnName:(0,n.flow)((0,n.find)({fieldNameAlias:_.field.fieldNameAlias}),(0,n.get)("columnName"))(i.previewDataFieldsMapping),element:_},record:b};E=l.default.getConfigDataByRange(e.title,_.properties.dataFormattings.color.cellColor,N)||S,y=l.default.getConfigDataByRange(e.title,_.properties.dataFormattings.color.textColor,N)||C,T=_.properties.dataFormattings.verticalAlignment||d.columns.verticalAlignment,v=e.element.properties.getDefaultsHeaderProperty("font.wordWrap",f)?{wordWrap:"break-word",whiteSpace:"pre-line"}:{wordWrap:"normal",whiteSpace:"pre"}}else E=d.table&&d.table.backgroundColor,y=d.table&&d.table.color;return(0,n.flow)((0,n.defaults)(n.placeholder,{color:y,background:E,verticalAlign:T}),(0,n.defaults)(n.placeholder,v))(h)},createStyleObject:function(e){return(0,n.defaults)(o.DEFAULT_CELL_STYLE,{fontFamily:e.fontFamily,fontSize:e.fontSize+"px",fontWeight:e.bold?"bold":"normal",textAlign:e.alignment||"none",textDecoration:e.underline?"underline":"none",fontStyle:e.italic?"italic":"normal",color:e.textColor||"",wordWrap:e.wordWrap?"break-word":"normal",whiteSpace:e.wordWrap?"pre-line":"pre"})},getCellStyleSetting:function(e,t,a,r,o,l){var s={},u=void 0,c=e.getReportPartProperties(),p=(0,n.get)("border",c.table),f=i.default.getBorderStyle,h=(0,n.get)("alternativeBackgroundColor",c.table),m=(0,n.get)("alterBackgroundColor",c.columns)?1:0,g=(0,n.get)("alterBackgroundColor",c.rows)?1:0,E=(0,n.get)("backgroundColor",c.table),y=(0,n.get)("backgroundColor",c.headers.font),v=(0,n.get)("verticalAlignment",c.headers),T=(0,n.get)("height",c.rows);return p.top&&l&&(s=(0,n.assign)(s,f("Top",p.top))),p.bottom&&a===o&&(s=(0,n.assign)(s,f("Bottom",p.bottom))),p.midVer&&!t.firstColumn&&(s=(0,n.assign)(s,f("Left",p.midVer))),p.left&&t.firstColumn&&(s=(0,n.assign)(s,f("Left",p.left))),p.right&&t.lastColumn&&(s=(0,n.assign)(s,f("Right",p.right))),p.midHor&&(a=this.cols)return null;var a=n.convertLayoutsToRects(this.layout,this.cellWidth,this.cellHeight),r=n.calculateSpareOffset(e,t,a);return{top:r.top,left:r.left,width:Math.max(this.minItemWidth,r.width),height:Math.max(this.minItemHeight,r.height)}},E.prototype.keepLastAdjustedLayout=r(function(e){this.compactedLayout=e}),E.prototype.getLastCompactedLayout=function(){var e=this.minItemWidth,t=this.minItemHeight,a=m(this.compactedLayout).map(function(a){return{id:a.id,top:a.top||0,left:a.left||0,width:a.width||e,height:a.height||t}}).value();return this.keepLastAdjustedLayout([]),a||[]},E.prototype.snapArrange=function(e,t,a){var r=this.minItemWidth,i=this.minItemHeight,l={top:n.getGridTop(t.top,this.cellHeight)||0,left:n.getGridLeft(t.left,this.cellWidth)||0,height:n.getGridHeight(t.height,this.cellHeight)||i,width:n.getGridWidth(t.width,this.cellWidth)||r},s=this.getLayout(),d=u({id:e},s),c=o.move(s,d,l,!0),p=o.compact(c);if(a)this.setOverlayPosition(t);else{var f=u({id:e},p),h=n.getDomPosition(f.left,f.top,f.width,f.height,this.cellWidth,this.cellHeight);this.setOverlayPosition(h)}this.keepLastAdjustedLayout(p),this.updateLayoutPosition(p)},E.prototype.compactLayout=r(function(){var e=this.getLayout(),t=o.compact(e);this.keepLastAdjustedLayout(t),this.updateLayoutPosition(t)}),E.prototype.updateLayoutItemSize=r(function(e,t,a){var r=0===e.pxWidth&&0===e.pxHeight?null:f({gridTop:n.getGridTop(e.pxTop,this.cellHeight),gridLeft:n.getGridLeft(e.pxLeft,this.cellWidth),gridWidth:n.getGridWidth(e.pxWidth,this.cellWidth),gridHeight:n.getGridHeight(e.pxHeight,this.cellHeight)},e);e.updateActualSize(t,a),e.updateGridPosition({top:e.gridTop,left:e.gridLeft,width:n.getGridWidth(t,this.cellWidth),height:n.getGridHeight(a,this.cellHeight)}),this.arrange(r)}),E.prototype.arrange=r(function(e){var t=this.cellWidth,a=this.cellHeight,r=e?n.convertToLayoutItem(e,t,a):null,i=this.getLayout(!0),o=n.compactLayout(i,r,this.resize);this.updateLayoutPosition(o)}),E.prototype.updatePosition=r(function(e,t,a){var r=this.snap(t);return this.rearrange(e,r,a)}),E.prototype.getLayout=function(e){var t=this.cellWidth,a=this.cellHeight;return m(this.layout).map(function(r){return n.convertToLayoutItem(r,t,a,e)}).sortBy(["left","top"]).value()},E.prototype.updateLayoutPosition=r(function(e){var t=this.leftPadding||0,a=g.MOBILE_WIDTH,r=g.MOBILE_GRID_ITEM_WIDTH,i=g.MOBILE_GRID_ITEM_HEIGHT,o=!this.isKPILayout&&window.innerWidth<=a,l=this.cellWidth,u=this.cellHeight;!function(e){s(["top","left"],e).forEach(function(e,t){return e.index=t})}(e),m(this.layout).forEach(function(a){var s=m(e).find(["id",a.id]);s&&(o?a.updatePosition({top:n.getDomTop(s.index*i,u),left:n.getDomLeft(0,l),width:n.getDomWidth(r,l),height:n.getDomHeight(i,u)}):a.updatePosition({top:n.getDomTop(s.top,u),left:n.getDomLeft(s.left,l)+t,width:n.getDomWidth(s.width,l),height:n.getDomHeight(s.height,u)}),a.updateGridPosition(s))})}),E.prototype.recalculateLayoutPosition=function(){var e=this.getLayout(!0);this.updateLayoutPosition(e)},e.exports=E}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=g(a(6)),o=g(a(2)),l=g(a(3)),s=g(a(7)),u=g(a(8)),d=a(0),c=g(d),p=g(a(13)),f=g(a(1081)),h=g(a(41)),m=a(1);function g(e){return e&&e.__esModule?e:{default:e}}var E="Izenda-MenuContext_",y=0,v=(n=r=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return a.initListener=function(){document.addEventListener("click",a.onClickOverMenu),document.addEventListener("mousedown",a.onClickOverMenu),document.addEventListener("mousewheel",a.onClickOverMenu),window.addEventListener("resize",a.onClickOverMenu)},a.destroyListener=function(){document.removeEventListener("click",a.onClickOverMenu),document.removeEventListener("mousedown",a.onClickOverMenu),document.removeEventListener("mousewheel",a.onClickOverMenu),window.removeEventListener("resize",a.onClickOverMenu)},a.getMousePosition=function(e){var t=h.default.containerElement.getBoundingClientRect(),a=e.clientX||(0,m.getOr)(y,"touches[0].pageX",e),r=e.clientY||(0,m.getOr)(y,"touches[0].pageY",e),n=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),i=Math.max(document.documentElement.scrollTop,document.body.scrollTop);return{left:a+n-t.left,top:r+i-t.top}},a.show=function(e){a.props.isDisabled||(a.setState({isShowMenuContext:!0,top:e.top,left:e.left}),a.props.onMenuContextChanged&&a.props.onMenuContextChanged(!0))},a.hide=function(){a.props.onMenuContextChanged&&a.props.onMenuContextChanged(!1),a.setState({isShowMenuContext:!1})},a.onClickOverMenu=function(e){var t=a.mountNode;var r=function(e){for(;null!=e&&e.parentNode!=window;){if(e===t)return!0;e=e.parentNode}return!1}(e.target);return r&&"function"==typeof e.target.click&&"click"===e.type?(a.hide(),e.preventDefault(),e.stopPropagation(),!1):(!r&&a.hide(),!1)},a.onShowMenuContextEvent=function(e){a.state.isShowMenuContext&&e.type!==a.customEventName&&a.hide(),(0,m.isNumber)(e.detail.top)&&(0,m.isNumber)(e.detail.left)&&a.show(e.detail)},a.dispatchEvent=function(e){var t=new CustomEvent(a.customEventName,{detail:e});document.dispatchEvent(t)},a.onContextMenuEvent=function(e){var t=a.getMousePosition(e);return(0,m.isNumber)(t.top)&&(0,m.isNumber)(t.left)&&a.dispatchEvent(t),e.preventDefault(),e.stopPropagation(),!1},a.getPositionStyle=function(){var e=a.state.isShowMenuContext||!1;return{position:"absolute",top:a.state.top,left:a.state.left,display:e?null:"none",zIndex:1e3}},a.setMountNode=function(e){a.mountNode=e?e.getMountNode():e},a.state={left:0,top:0,isShowMenuContext:!1,isDisabled:e.isDisabled||!1},a.customEventName=E+e.id,a}return(0,u.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){document.addEventListener(this.customEventName,this.onShowMenuContextEvent,!1),this.initListener()}},{key:"shouldComponentUpdate",value:function(e,t){return t.isShowMenuContext!==this.state.isShowMenuContext||t.top!==this.state.top||t.left!==this.state.left||!(0,m.isEqual)(e,this.props)}},{key:"componentWillUnmount",value:function(){document.removeEventListener(this.customEventName,this.onShowMenuContextEvent),this.destroyListener()}},{key:"render",value:function(){var e=this.props,t=e.classes,a=e.children,r="izenda-MenuContext "+(t||"");return c.default.createElement("div",{className:r,onContextMenu:this.onContextMenuEvent},a,this.state.isShowMenuContext&&c.default.createElement(f.default,{ref:this.setMountNode},c.default.createElement("div",{style:this.getPositionStyle()},this.props.menuComponent)))}}]),t}(d.Component),r.propTypes={classes:p.default.string,isDisabled:p.default.bool,id:p.default.string.isRequired,children:p.default.element.isRequired,menuComponent:p.default.element,onMenuContextChanged:p.default.func},n);t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=g(a(6)),l=g(a(2)),s=g(a(3)),u=g(a(7)),d=g(a(8)),c=a(0),p=g(c),f=g(a(13)),h=g(a(178)),m=g(a(259));function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,g(a(4)).default)()((i=n=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return a.onLoadingChanged=function(e,t){a.loadingProps=t||{},a.isMountedStatus&&a.setState({show:e})},a.onCancel=function(){m.default.cancelLoading(a.props.loader)},a.allowToCancelProgress=function(){return m.default.allowToCancelGlobalProgress(a.props.loader)},a.state={show:!1},a.isMountedStatus=!1,a.unregister=e.loader.registerLoadingChanged(a.onLoadingChanged),a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.isMountedStatus=!0}},{key:"componentWillUnmount",value:function(){this.unregister(),this.isMountedStatus=!1}},{key:"render",value:function(){return p.default.createElement(h.default,{show:this.state.show,onCancel:this.onCancel,allowToCancelProgress:this.allowToCancelProgress})}}]),t}(c.Component),n.propTypes={loader:f.default.object.isRequired},r=i))||r;t.default=E,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f=a(14),h=(r=f)&&r.__esModule?r:{default:r};n=a(0),i=a(1198),o=a(118),l=a(4),s=a(10),u=a(1),d=u.isEmpty,c=u.omit,p=n.createClass({displayName:"ReportHeader",componentDidMount:function(){var e=this.props.store;e.loadDefaultImageUrl(e.tenantId)},publishFinishedRender:function(){var e=this.props;e.finishedRender&&e.finishedRender()},componentDidUpdate:function(){this.props.printingMode&&this.publishFinishedRender()},render:function(){var e=this.props,t=e.store,a=t.reportHeader,r=((t.masterModel||{}).reportFormats||{}).headerFooter||{},l=e.localization,u=e.afterToggled,p=s("report-format-header",e.className);return!e.viewMode||!d(a.formatItems)&&r.visible?n.createElement(i,(0,h.default)({store:t,className:p,afterToggled:u,title:l.getText("REPORTDESIGNER_TOOLTIP_REPORT_HEADER"),formatElement:a,cols:o.NUMBER_HEADER_COLS,rows:o.NUMBER_HEADER_ROWS,viewMode:e.viewMode},c(["className"],e),{setting:e.setting,horizontalAlign:e.horizontalAlign,fillWidth:e.printingMode})):null}}),e.exports=l()(p)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f=a(14),h=(r=f)&&r.__esModule?r:{default:r};n=a(0),i=a(1198),o=a(118),l=a(4),s=a(10),u=a(1),d=u.isEmpty,c=u.omit,p=n.createClass({displayName:"ReportFooter",publishFinishedRender:function(){var e=this.props;e.finishedRender&&e.finishedRender()},componentDidUpdate:function(){this.props.printingMode&&this.publishFinishedRender()},render:function(){var e=this.props,t=e.store,a=t.reportFooter,r=((t.masterModel||{}).reportFormats||{}).headerFooter||{},l=e.localization,u=s("report-format-footer",e.className);return!e.viewMode||!d(a.formatItems)&&r.visible?n.createElement(i,(0,h.default)({store:t,className:u,title:l.getText("REPORTDESIGNER_TOOLTIP_REPORT_FOOTER"),formatElement:a,cols:o.NUMBER_FOOTER_COLS,rows:o.NUMBER_FOOTER_ROWS,viewMode:e.viewMode,style:e.style},c(["className"],e),{setting:e.setting,horizontalAlign:e.horizontalAlign,fillWidth:e.printingMode})):null}}),e.exports=l()(p)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=u(a(17)),l=u(a(2)),s=(u(a(282)),a(5));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function c(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var p=(n=c((r=function e(t,a,r){(0,l.default)(this,e),d(this,"reportPart",n,this),d(this,"tooltip",i,this),this.reportPart=a,this.id=t,this.tooltip=r}).prototype,"reportPart",[s.observable],{enumerable:!0,initializer:null}),i=c(r.prototype,"tooltip",[s.observable],{enumerable:!0,initializer:null}),r);t.default=p,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(5),r=a(334).updateArray,n=a(334).sortArray,i=a(108),o=a(41),l=a(1).getOr;function s(e){this.id=e.id,this.tempId=e.tempId,this.name=e.name,this.dataType=e.dataType||e.izendaDataType,this.description=e.description||e.expression,this.databaseName=e.databaseName,this.schemaName=e.schemaName,this.querySourceName=e.querySourceName}function u(e){var a={name:o.advancedSettings.other.sortColumnNameValue?null:"ASC"};this.backupFieldNames=[];var r={fieldNames:[],selectedDataSource:{},dataSources:[],pageInfo:new i(a)};t.extendObservable(this,r),this.fetchData(e)}u.prototype.fetchData=function(e){e=e||{},t.transaction(function(){this.fetchFieldNames(e.fieldNames),this.updateSelectedDataSource(e.selectedDataSource),this.fetchDataSources(e.dataSources)}.bind(this))},u.prototype.fetchFieldNames=function(e){var t=function(e){return new s(e)};r(this.fieldNames,e,t),this.sort(this.fieldNames),r(this.backupFieldNames,e,t)},u.prototype.fetchDataSources=function(e){r(this.dataSources,e,function(e){return new function(e){this.id=e.id,this.name=e.name,this.fieldNames=e.fields,this.databaseName=e.connectionName,this.schemaName=e.querySourceCategoryName}(e)})},u.prototype.updateSelectedDataSource=function(e){this.selectedDataSource=e},u.prototype.getSelectedDataSourceId=function(){return l(null,"id",this.selectedDataSource)},u.prototype.sort=function(){this.pageInfo.buildPagingRequest();var e=this.pageInfo.sortOrders,t=[];t=e?n(this.fieldNames,e):this.backupFieldNames,r(this.fieldNames,t,function(e){return new s(e)})},e.exports=u}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(334).updateArray,n=a(334).sortArray,i=a(108);function o(e){this.name=e.name,this.syntax=e.syntax,this.expressionSyntax=e.expressionSyntax}function l(e){this.backupFunctionOperators=[];var a={functionOperators:[],pageInfo:new i({name:"ASC"})};t.extendObservable(this,a),this.fetchData(e)}l.prototype.fetchData=function(e){e=e||{};var t=function(e){return new o(e)};r(this.functionOperators,e.functionOperators,t),this.sort(this.functionOperators),r(this.backupFunctionOperators,e.functionOperators,t)},l.prototype.sort=function(){this.pageInfo.buildPagingRequest();var e=this.pageInfo.sortOrders,t=[];t=e?n(this.functionOperators,e):this.backupFunctionOperators,r(this.functionOperators,t,function(e){return new o(e)})},e.exports=l}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=y(a(17)),o=y(a(23)),l=a(20),s=y(a(70)),u=y(a(2)),d=y(a(3)),c=a(5),p=y(a(16)),f=y(a(110)),h=y(a(18)),m=a(1),g=a(123),E=a(1210);function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var T=(v((r=function(){function e(t){var a,r,o,l;(0,u.default)(this,e),a=this,r="isAllQuerySourceUncategorized",l=this,(o=n)&&(0,i.default)(a,r,{enumerable:o.enumerable,configurable:o.configurable,writable:o.writable,value:o.initializer?o.initializer.call(l):void 0}),this.reportStore=t,this.stopUpdateIsAllQuerySource=!1}return(0,d.default)(e,[{key:"model",get:function(){return this.reportStore.model.dataSource}},{key:"dataSourceDetail",get:function(){return this.model.dataSourceDetail}},{key:"dataTree",get:function(){return this.model.dataTree}},{key:"tenantId",get:function(){return p.default.getTenantId()}},{key:"fieldsStoreDataTree",get:function(){return this.reportStore.fieldsStore.dataTree.details}}]),(0,d.default)(e,[{key:"loadInitial",value:function(e){this.updateSelectedQuerySource().then(this.updateRelationshipsQuerySourceCategory.bind(this));var t=e||this.reportStore.reportId;return f.default.getReportMode(t).then(this.model.readReportMode.bind(this.model))}},{key:"loadInitialWithUpdateFilter",value:function(e){return(0,m.isEmpty)(this.fieldsStoreDataTree)&&(this.getFilterData(),this.loadQuerySourceFieldsForUpdateRelationship(this.reportStore.reportId)),this.loadInitial(e)}},{key:"updateSelectedQuerySource",value:function(){var e=this;if(this.fieldsStoreDataTree.length){var t=this.fieldsStoreDataTree[0].querySource;if(this.model.reportMode===h.default.SIMPLE)return this.setSelectedTreeFromFieldTree(t),(0,l.resolve)();var a=(0,m.flow)((0,m.filter)({dataSourceCategoryId:null}),(0,m.map)("id"))(t);return this.loadOriginalJoinAliasQuerySource(a).then(function(a){a&&a.forEach(function(e){var a=(0,m.find)({id:e.relationshipId},t);a&&(a.selected=!0,a.id=e.querySourceId,a.dataSourceCategoryId=e.dataSourceCategoryId,a.dataSourceCategoryName=e.dataSourceCategoryName,a.name=e.querySourceName)}),t=(0,m.uniqBy)("id",t),e.setSelectedTreeFromFieldTree(t)})}return(0,l.resolve)()}},{key:"getFilterData",value:function(){var e=this,t=this.reportStore.model.reportFields.reportFilter;return f.default.loadFilterOperatorGroup().then(function(a){!(0,m.isNil)(a)&&t.populateFilterQuerySource(a),t.configFieldList.forEach(function(t){((0,m.contains)(t.filterInfo.sourceType,["fieldSource","inTimePeriod"])||(0,m.contains)(t.filterInfo.operator.key,["equals(checkbox)","notequal(checkbox)"]))&&e.getOperatorValueSource(t)})})}},{key:"loadQuerySourceFieldsForUpdateRelationship",value:function(e){var t=this;(0,m.isNil)(e)||(0,m.isEmpty)(e)||f.default.availableQuerySourceFields(e,this.reportStore.isLoadDraft).then(function(e){(0,m.isNil)(e)||(e.isFromDataSource=!0,t.dataTree.readDataSource(e),t.reportStore.fieldsStore.dataTree.details=e,t.updateSelectedQuerySource().then(t.updateRelationshipsQuerySourceCategory.bind(t)))})}},{key:"setSelectedTreeFromFieldTree",value:function(e){this.dataTree.selectedTree=(0,m.flow)((0,m.groupBy)("dataSourceCategoryId"),(0,m.map)(function(e){var t=(0,m.head)(e);return{id:t.dataSourceCategoryId,name:t.dataSourceCategoryName,querySource:e}}))(e)}},{key:"loadOriginalJoinAliasQuerySource",value:function(e){if((0,m.isEmpty)(e))return(0,l.resolve)(null);var t={reportKey:{key:this.reportStore.model.reportId},tenantId:p.default.getTenantId(),relationshipIds:e};return f.default.loadJoinQuerySourceByRelationship(t)}},{key:"updateSelected",value:function(e,t){return e.selected=t,!t&&this.dataSourceDetail.removeUncheckRelationships(e),(0,l.resolve)(e)}},{key:"buildPageInfo",value:function(){var e=this.dataSourceDetail.pageInfo;return e.buildPagingRequest(),e}},{key:"checkRemoveSelectedRelation",value:function(e){return this.model.removeFilterParams(e),(0,l.resolve)({hasRemovedRelationship:(0,E.hasRemovedRelationship)(this.dataTree,this.dataSourceDetail.dataSourceGrid,e),dataObject:e})}},{key:"loadDataSourceDetail",value:function(e,t){var a=[];return e?a=this.dataTree.getDataTreeItems(e):this.dataTree&&(a=this.dataTree.getDataTreeItems()),(0,m.isEmpty)(a)?(0,l.resolve)():this.loadDataSource(a,e,t)}},{key:"searchDataSource",value:function(){var e=this.dataTree.getDataTreeItems(null);this.loadDataSource(e)}},{key:"loadDataSource",value:function(e,t,a){var r=this,n=(0,c.action)(function(e){return r.dataSourceDetail.populateData(e,t,r.model.reportMode,a)});return(0,E.loadRelationship)(this.reportStore.model.reportId,this.model.reportMode,e,this.buildPageInfo(),(0,m.isBoolean)(a),this.model.reportMode===h.default.ADVANCED?this.dataSourceDetail.getDbRelationshipIds():[]).bind(this).then(n)}},{key:"updateRelationshipsQuerySourceCategory",value:function(){var e=this;(0,m.isEmpty)(this.dataTree.selectedTree)||(0,m.isEmpty)(this.dataSourceDetail.dataSourceGrid)||this.dataTree.getSelectedQuerySources().forEach(function(t){var a=t.id,r=t.dataSourceCategoryId,n=t.dataSourceCategoryName;e.dataSourceDetail.dataSourceGrid.forEach(function(e){e.joinQuerySourceId===a&&e.joinDataSourceCategoryId!==r&&(e.joinDataSourceCategoryId=r,e.joinDataSourceCategoryName=n),e.foreignQuerySourceId===a&&e.foreignDataSourceCategoryId!==r&&(e.foreignDataSourceCategoryId=r,e.foreignDataSourceCategoryName=n)})})}},{key:"goToPage",value:function(e){this.dataSourceDetail.pageInfo.setPageIndex(e),this.loadDataSourceDetail()}},{key:"startLoadingRelationship",value:function(){return(0,E.startLoadingRelationship)(this.dataSourceDetail)}},{key:"endLoadingRelationship",value:function(){return(0,E.endLoadingRelationship)(this.dataSourceDetail)}},{key:"lazyLoadingQuerySource",value:function(e,t,a){a=a||this.dataTree.filterText;var r=this.dataTree.getDataTreeItems();return this.model.reportMode===h.default.SIMPLE&&(0,m.some)("selected",r)?this.lazyLoadingQuerySourceSimpleMode(a):this.lazyLoadingDataSourceCategory(e,t,a)}},{key:"lazyLoadingQuerySourceSimpleMode",value:function(e){var t=this;if(this.model.reportMode===h.default.ADVANCED)return(0,l.resolve)();var a=this.reportStore.model.reportId,r=this.dataTree.getDataTreeItems();if(!(0,m.some)("selected",r))return this.lazyLoadingDataSourceCategory(null,!0,e);var n={objectId:a,querySources:r,tenantId:p.default.getTenantId(),criteria:[{key:"Name",value:e}]};return f.default.loadRelatedQuerySources(n).then(function(e){var a=e.data,r=e.isLastPage,n=e.numOfChilds;return t.processTreeData(a,r,n,!0)})}},{key:"lazyLoadingDataSourceCategory",value:function(e,t,a){var r=this;e=e||this.lazyLoadingStore.pageInfoForFirstTime;var n={tenantId:p.default.getTenantId(),reportKey:{key:this.reportStore.model.reportId},criteria:[{key:"Name",value:a}],skipItems:e.fromIndex,pageSize:e.pageSize,parentIds:e.parentIds};return f.default.loadPartialDataSourceCategory(n).then(function(e){var n=e.data,i=e.isLastPage,o=e.numOfChilds;return(0,m.toString)(a)===(0,m.toString)(r.dataTree.filterText)?r.processTreeData(n,i,o,t):(0,l.resolve)()})}},{key:"processTreeData",value:function(e,t,a,r){var n=this.dataTree,i=n.convertDataSource(e);return n.isLastPage=t,r&&(n.details=[],n.displayData=[]),(0,g.concatTree)(n.details,i,h.default.DATA_SOURCE_CONCAT_TREE_MAP,a,[]),this.updateTree(),this.stopUpdateIsAllQuerySource||(this.stopUpdateIsAllQuerySource=!0,this.isAllQuerySourceUncategorized=(0,m.every)(function(e){return e.id===h.default.EMPTY_GUID},n.details)),e}},{key:"updateTree",value:function(){var e=this.dataTree;(0,g.updateTree)(e.details,e.selectedTree,h.default.DATA_SOURCE_CONCAT_TREE_MAP,["selected"]),e.displayData=(0,g.parseToTree)(e.details,e.filterText?h.default.DATA_SOURCE_TREE_MAP_FOR_SEARCH:h.default.DATA_SOURCE_TREE_MAP),e.updateSelectedItemNodes()}},{key:"registerLazyLoadingStore",value:function(e){this.lazyLoadingStore=e}},{key:"updateDynamicQuerySourceFields",value:function(){var e=this,t={tenantId:p.default.getTenantId(),reportKey:{key:this.reportStore.model.reportId}};return f.default.loadDynamicDataSourceCategory(t).then(function(t){var a=t.data,r=t.isLastPage,n=t.numOfChilds;return e.updateDynamicQuerySourceInSelectedTree(a),e.processTreeData(a,r,n)})}},{key:"updateDynamicQuerySourceInSelectedTree",value:function(e){var t=this.dataTree.selectedTree;e.forEach(function(e){var a=(0,m.find)({id:e.id},t);a&&e.querySource.forEach(function(e){var t=(0,m.find)({id:e.id},a.querySource);t&&(t.fields=e.fields)})})}},{key:"updateSelectedTree",value:function(e,t,a,r){var n=this.dataTree.selectedTree,i=e.dataSourceCategoryId,o=e.dataSourceCategoryName,u=this.model.reportMode,d=this.reportStore.model.reportId,c=(0,m.find)({id:i},n),g=(0,s.default)({},e,{selected:t,aliasId:e.aliasId,isStoreProcedure:e.isStoreProcedure}),E=!1;if(c){var y=(0,m.find)({id:e.id},c.querySource);y?y.selected=t:(c.querySource.push(g),E=!0)}else{var v={id:i,name:o,querySource:[g]};n.push(v),E=!0}if(this.dataTree.updateSelectedItemNodes(),E&&a&&u===h.default.ADVANCED){var T={reportKey:{key:d},tenantId:p.default.getTenantId(),querySourceId:g.id};return f.default.loadDataSourceFields(T).then(function(e){g.fields=e})}return(0,l.resolve)()}},{key:"handleChangeSelectedQuerySource",value:function(e,t,a){return this.updateSelected(e,t),t||!e.isDynamic||(0,m.every)("isParameter",e.fields)||(e.fields=(0,m.filter)("isParameter",e.fields),a.childNodes=(0,m.filter)(function(e){return e.source.isParameter},a.childNodes)),(0,l.all)([this.updateSelectedTree(e,t,!(0,m.isEmpty)(this.dataTree.filterText),a),this.loadDataSourceDetail(e,t),this.lazyLoadingQuerySourceSimpleMode(this.dataTree.filterText)])}},{key:"resetDataSourceGridDirty",value:function(){this.dataSourceDetail.resetDataSourceGridDirty()}}]),e}()).prototype,"model",[c.computed],(0,o.default)(r.prototype,"model"),r.prototype),v(r.prototype,"dataSourceDetail",[c.computed],(0,o.default)(r.prototype,"dataSourceDetail"),r.prototype),v(r.prototype,"dataTree",[c.computed],(0,o.default)(r.prototype,"dataTree"),r.prototype),v(r.prototype,"tenantId",[c.computed],(0,o.default)(r.prototype,"tenantId"),r.prototype),v(r.prototype,"fieldsStoreDataTree",[c.computed],(0,o.default)(r.prototype,"fieldsStoreDataTree"),r.prototype),n=v(r.prototype,"isAllQuerySourceUncategorized",[c.observable],{enumerable:!0,initializer:function(){return!1}}),v(r.prototype,"loadInitial",[c.action],(0,o.default)(r.prototype,"loadInitial"),r.prototype),v(r.prototype,"loadInitialWithUpdateFilter",[c.action],(0,o.default)(r.prototype,"loadInitialWithUpdateFilter"),r.prototype),v(r.prototype,"updateSelectedQuerySource",[c.action],(0,o.default)(r.prototype,"updateSelectedQuerySource"),r.prototype),v(r.prototype,"updateSelected",[c.action],(0,o.default)(r.prototype,"updateSelected"),r.prototype),v(r.prototype,"buildPageInfo",[c.action],(0,o.default)(r.prototype,"buildPageInfo"),r.prototype),v(r.prototype,"checkRemoveSelectedRelation",[c.action],(0,o.default)(r.prototype,"checkRemoveSelectedRelation"),r.prototype),v(r.prototype,"loadDataSource",[c.action],(0,o.default)(r.prototype,"loadDataSource"),r.prototype),v(r.prototype,"updateRelationshipsQuerySourceCategory",[c.action],(0,o.default)(r.prototype,"updateRelationshipsQuerySourceCategory"),r.prototype),v(r.prototype,"goToPage",[c.action],(0,o.default)(r.prototype,"goToPage"),r.prototype),v(r.prototype,"lazyLoadingQuerySource",[c.action],(0,o.default)(r.prototype,"lazyLoadingQuerySource"),r.prototype),v(r.prototype,"lazyLoadingQuerySourceSimpleMode",[c.action],(0,o.default)(r.prototype,"lazyLoadingQuerySourceSimpleMode"),r.prototype),v(r.prototype,"lazyLoadingDataSourceCategory",[c.action],(0,o.default)(r.prototype,"lazyLoadingDataSourceCategory"),r.prototype),v(r.prototype,"processTreeData",[c.action],(0,o.default)(r.prototype,"processTreeData"),r.prototype),v(r.prototype,"updateTree",[c.action],(0,o.default)(r.prototype,"updateTree"),r.prototype),v(r.prototype,"updateDynamicQuerySourceInSelectedTree",[c.action],(0,o.default)(r.prototype,"updateDynamicQuerySourceInSelectedTree"),r.prototype),v(r.prototype,"updateSelectedTree",[c.action],(0,o.default)(r.prototype,"updateSelectedTree"),r.prototype),v(r.prototype,"handleChangeSelectedQuerySource",[c.action],(0,o.default)(r.prototype,"handleChangeSelectedQuerySource"),r.prototype),v(r.prototype,"resetDataSourceGridDirty",[c.action],(0,o.default)(r.prototype,"resetDataSourceGridDirty"),r.prototype),r);t.default=T,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterAllowedSubscriptionDeliveryMethods=function(e,t,a){if((0,l.isNil)(e))return[];if("Email"!==t)return e;var r=new o.default,i=r.checkPrivileges([n.PERMISSION_KEY.EmailingDeliveryMethodLink]),u=r.checkPrivileges([n.PERMISSION_KEY.EmailingDeliveryMethodAttachment]);u=u&&s(a).length>0;var d=r.checkPrivileges([n.PERMISSION_KEY.EmailingDeliveryMethodEmbeddedHTML]);return(0,l.filter)(function(e){return(i||"Link"!==e.value)&&(u||"Attachment"!==e.value)&&(d||"Embedded HTML"!==e.value)},e)},t.filterAllowedSubscriptionAttachmentTypes=s,t.filterAllowedSubscriptionExportFileTypes=function(e){if((0,l.isNil)(e))return[];var t=new o.default,a=t.checkPrivileges([n.PERMISSION_KEY.ExportingExportingFormatPdf]),r=t.checkPrivileges([n.PERMISSION_KEY.ExportingExportingFormatWord]),i=t.checkPrivileges([n.PERMISSION_KEY.ExportingExportingFormatExcel]),s=t.checkPrivileges([n.PERMISSION_KEY.ExportingExportingFormatCsv]),u=t.checkPrivileges([n.PERMISSION_KEY.ExportingExportingFormatXml]),d=t.checkPrivileges([n.PERMISSION_KEY.ExportingExportingFormatJson]);return(0,l.filter)(function(e){return(r||"Word"!==e.value)&&(i||"Excel"!==e.value)&&(a||"PDF"!==e.value)&&(s||"CSV"!==e.value)&&(u||"XML"!==e.value)&&(d||"JSON"!==e.value)},e)},t.isAnySubscriptionAvailable=function(){return(new o.default).checkPrivileges([n.PERMISSION_KEY.EmailingDeliveryMethodLink,n.PERMISSION_KEY.EmailingDeliveryMethodAttachment,n.PERMISSION_KEY.EmailingDeliveryMethodEmbeddedHTML,n.PERMISSION_KEY.ExportingExportingFormatPdf,n.PERMISSION_KEY.ExportingExportingFormatWord,n.PERMISSION_KEY.ExportingExportingFormatExcel,n.PERMISSION_KEY.ExportingExportingFormatCsv,n.PERMISSION_KEY.ExportingExportingFormatXml,n.PERMISSION_KEY.ExportingExportingFormatJson],n.PERMISSION_OPERATOR.Or)};var r,n=a(40),i=a(106),o=(r=i)&&r.__esModule?r:{default:r},l=a(1);function s(e){if((0,l.isNil)(e))return[];var t=new o.default,a=t.checkPrivileges([n.PERMISSION_KEY.EmailingAttachmentTypePdf]),r=t.checkPrivileges([n.PERMISSION_KEY.EmailingAttachmentTypeWord]),i=t.checkPrivileges([n.PERMISSION_KEY.EmailingAttachmentTypeExcel]),s=t.checkPrivileges([n.PERMISSION_KEY.EmailingAttachmentTypeCsv]),u=t.checkPrivileges([n.PERMISSION_KEY.EmailingAttachmentTypeXml]),d=t.checkPrivileges([n.PERMISSION_KEY.EmailingAttachmentTypeJson]);return(0,l.filter)(function(e){return(r||"Word"!==e.value)&&(i||"Excel"!==e.value)&&(a||"PDF"!==e.value)&&(s||"CSV"!==e.value)&&(u||"XML"!==e.value)&&(d||"JSON"!==e.value)},e)}},,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=_(a(14)),o=_(a(198)),l=_(a(6)),s=_(a(2)),u=_(a(3)),d=_(a(7)),c=_(a(8)),p=_(a(500)),f=a(300),h=a(1),m=a(83),g=a(34),E=a(36),y=a(59),v=_(a(33)),T=_(a(104));function _(e){return e&&e.__esModule?e:{default:e}}var S=E.MappingValues.LABEL_ROTATION_VALUES,C=(0,y.exportClass)("HighchartOptionsBuilder")(n=function(e){function t(){var e;(0,s.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n0&&(0,m.getColorPointBySeries)(c.series,c,u),(0,h.omitBy)(h.isNil,c)}},{key:"buildOptionsByType",value:function(e,t,a){throw new Error("The buildOptionsByType() method must be implemented for "+e+" chart before using")}},{key:"buildCommonHighchartOptions",value:function(e,t,a,n){var o=n.chartOptions,l=n.fieldOptions;r(o,"chartOptions must be set");var s=this.onClickOnPoint,u=this.onClickOnChart,d=this.getClassList,c=o.commonOptions,p=o.optionByType,f=o.commonActions,g=o.xAxis,E=o.yAxis,y=o.commonXYAxis,v=o.sort,T=o.colors;return(0,h.mergeAll)([p,c],{izendaSeriesConfig:l,credits:{enabled:!1},chart:{label:{enabled:!1},type:t,events:{click:function(){var e=(0,h.getOr)({},"hoverPoints[0]",this);return u(e,f)}}},title:{text:null},tooltip:{backgroundColor:"rgba(255,255,255,0)",borderWidth:0,borderRadius:0,shadow:!1,shared:!0,useHTML:!0,formatter:function(){var e="DESC"===(0,h.get)("valueXAxisForLinear",this.sort)&&("column"===t||"bar"===t);return m.getTooltipFormatter.call(this,e)}},plotOptions:{series:{cursor:"pointer",label:{enabled:!1},point:{events:{click:function(e){-1!==(0,h.findIndex)(function(e){return"highcharts-point"===e},d(e.srcElement))&&s(this,f)}}},turboThreshold:Number.MAX_VALUE,connectNulls:!0,marker:{enabled:!0,states:{hover:{fillColor:function(){return!0}}}}}},data:a&&a.parsedData,commonActions:(0,i.default)({},f,{chartContainer:e}),xAxis:g,yAxis:E,commonXYAxis:y,sort:v,colors:T})}},{key:"getClassList",value:function(e){return e.classList?e.classList:(e.getAttribute("class")||"").split(" ")}},{key:"adjustChartSpacings",value:function(e){e.chart.type!==T.default.Combination&&e.chart.type!==T.default.Line&&e.chart.type!==T.default.Column&&e.chart.type!==T.default.Area||!e.commonXYAxis.yAxis.labels||e.commonXYAxis.yAxis.labels.rotation!==S.izClockwise&&e.commonXYAxis.yAxis.labels.rotation!==S.izCounterclockwise&&e.commonXYAxis.yAxis.labels.rotation!==S.izTextdown&&e.commonXYAxis.yAxis.labels.rotation!==S.izTextup||(e.chart.spacingTop=70),e.chart.type!==T.default.Combination&&e.chart.type!==T.default.Line&&e.chart.type!==T.default.Area||!e.commonXYAxis.xAxis.labels||e.commonXYAxis.xAxis.labels.rotation!==S.izClockwise||(e.chart.spacingRight=70),e.chart.type===T.default.Bar&&e.commonXYAxis.xAxis.labels&&(e.commonXYAxis.xAxis.labels.rotation===S.izClockwise&&(e.chart.spacingTop=70),e.commonXYAxis.yAxis.labels.rotation===S.izClockwise&&(e.chart.spacingRight=70)),e.chart.type===T.default.KPI&&(e.chart.spacingTop=0,e.chart.spacingBottom=0,e.chart.spacingLeft=0,e.chart.spacingRight=0)}},{key:"onClickOnChart",value:function(e,t){if(!(0,h.isEmpty)(e)){var a=(0,h.get)("series.userOptions",e);!a.isRegressionLine&&t.onDrilldown&&t.onDrilldown({field:a.xAxisField,value:(0,m.getPointName)(e),record:(0,h.get)("options.record",e)},null)}}},{key:"onClickOnPoint",value:function(e,t){var a=(0,h.getOr)({},"series.userOptions",e);if(!a.isRegressionLine){var r=(0,m.getPointName)(e),n=(0,h.get)("separatorField",a),i=(0,h.get)("record",e),o=v.default.getOriginalValue(n,i);t.onDrilldown&&t.onDrilldown({field:a.xAxisField||a.nameField,value:r,record:(0,h.get)("options.record",e)},{field:a.separatorField,value:a.separatorValue===g.UNDEFINED_VALUE?"":o})}}},{key:"DefaultColors",get:function(){return f.highcharts.getOptions().colors}}]),t}(p.default))||n;t.default=C,e.exports=t.default}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AXIS_OPTIONS=t.THRESHOLDS_LINE=t.COMMON_OPTIONS=void 0;var r=a(36),n=r.MappingValues.LABEL_ROTATION_VALUES,i=r.MappingValues.HORIZONTAL_ALIGN_VALUES,o=r.MappingValues.VERTICAL_ALIGN_VALUES,l=r.MappingValues.LINE_STYLE_VALUES,s=r.MappingValues.AXIS_ALIGN_VALUES,u=r.MappingValues.LAYOUT_ALIGN_VALUES;t.COMMON_OPTIONS={izHeight:{propKey:"chart.height",defaultValue:void 0},izWidth:{propKey:"chart.width",defaultValue:void 0},izMargin:{propKey:"chart.margin",defaultValue:void 0},izDisableMultiColor:{defaultValue:!1},izColorPattern:{propKey:"colors",defaultValue:void 0},"izEntire.borderColor":{defaultValue:void 0},"izEntire.borderWidth":{defaultValue:void 0},"izEntire.borderStyle":{defaultValue:void 0},"izEntire.backgroundColor":{propKey:"chart.backgroundColor",defaultValue:void 0},"izPlot.borderColor":{propKey:"chart.plotBorderColor",defaultValue:void 0},"izPlot.borderWidth":{propKey:"chart.plotBorderWidth",defaultValue:void 0},"izPlot.backgroundColor":{propKey:"chart.plotBackgroundColor",defaultValue:void 0},izHoverLabels:{propKey:"plotOptions.series.states.hover.enabled",defaultValue:!0},izLabelOrientation:{propKey:"plotOptions.series.dataLabels.rotation",propSource:n},"izLegend.visibility":{propKey:"legend.enabled",defaultValue:!1},"izLegend.horizontalAlign":{propKey:"legend.align",propSource:i,defaultValue:"izRight"},"izLegend.verticalAlign":{propKey:"legend.verticalAlign",propSource:o,defaultValue:"izBottom"},"izLegend.borderVisible":{propKey:"legend.borderVisible",defaultValue:!1},"izLegend.borderColor":{propKey:"legend.borderColor",defaultValue:void 0},"izLegend.borderWidth":{propKey:"legend.borderWidth",defaultValue:0},"izLegend.fontStyling":{propKey:"legend.itemStyle",defaultValue:void 0},"izLegend.title":{propKey:"legend.title",defaultValue:void 0},"izLegend.layout":{propKey:"legend.layout",propSource:u,defaultValue:void 0},"izLegend.backgroundColor":{propKey:"legend.backgroundColor",defaultValue:void 0},izDataRefreshInterval:{defaultValue:void 0},"izMarker.radius":{propKey:"plotOptions.series.marker.radius",defaultValue:void 0},izChartStyle:{propKey:"chart.style",defaultValue:{}},izendaHiddenAllAxis:{propKey:"izendaOptions.izendaHiddenAllAxis",defaultValue:!1},"izTooltip.enabled":{propKey:"tooltip.enabled",defaultValue:void 0},"izTooltip.backgrounColor":{propKey:"tooltip.backgroundColor",defaultValue:void 0},"izTooltip.borderWidth":{propKey:"tooltip.borderWidth",defaultValue:void 0},"izTooltip.shadow":{propKey:"tooltip.shadow",defaultValue:void 0},"izTooltip.useHTML":{propKey:"tooltip.useHTML",defaultValue:void 0},"izTooltip.hideDelay":{propKey:"tooltip.hideDelay",defaultValue:void 0},"izTooltip.shared":{propKey:"tooltip.shared",defaultValue:void 0},"izTooltip.padding":{propKey:"tooltip.backgroundColor",defaultValue:void 0},"izTooltip.positioner":{propKey:"tooltip.positioner",defaultValue:void 0},izFillContainer:{propKey:"izendaOptions.fillContainer"}},t.THRESHOLDS_LINE={"izLabel.text":{propKey:"label.text",defaultValue:""},"izLabel.horizontalAlign":{propKey:"label.align",propSource:i,defaultValue:i.izLeft},"izLabel.verticalAlign":{propKey:"label.verticalAlign",propSource:o,defaultValue:o.izTop},"izLabel.style":{propKey:"label.style",propSource:l,defaultValue:{}},izValue:{propKey:"value",defaultValue:0},izWidth:{propKey:"width",defaultValue:0},izDashStyle:{propKey:"dashStyle",propSource:l,defaultValue:l.izSolid},izIndex:{propKey:"zIndex",defaultValue:1},izThresholdColor:{propKey:"color",defaultValue:""},"izLabel.textAlign":{propKey:"label.textAlign",defaultValue:""}},t.AXIS_OPTIONS={izLabelOrientation:{propKey:"labels.rotation",propSource:n,defaultValue:null},"izLabel.enabled":{propKey:"labels.enabled",defaultValue:null},izStartOnTick:{propKey:"startOnTick",defaultValue:!0},izEndOnTick:{propKey:"endOnTick",defaultValue:!0},izTickPositions:{propKey:"tickPositions",defaultValue:null},"izTitle.enabled":{propKey:"title.enabled",defaultValue:!0},"izTitle.text":{propKey:"title.text",defaultValue:""},"izTitle.style":{propKey:"title.style",defaultValue:null},"izTitle.align":{propKey:"title.align",propSource:s,defaultValue:s.izLeft},izTickInterval:{propKey:"tickInterval",defaultValue:0},izTickCategoryInterval:{propKey:"tickCategoryInterval",defaultValue:0},izStartingPoint:{propKey:"min",defaultValue:0},izEndingPoint:{propKey:"max",defaultValue:null},izCategory:{defaultValue:!1},izOpposite:{propKey:"opposite",defaultValue:null},"izGrid.lineWidth":{propKey:"gridLineWidth",defaultValue:1},"izGrid.lineColor":{propKey:"gridLineColor",defaultValue:""},"izGrid.lineDashStyle":{propKey:"gridLineDashStyle",propSource:l,defaultValue:l.izSolid}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=h(a(71)),i=h(a(6)),o=h(a(2)),l=h(a(3)),s=h(a(7)),u=h(a(133)),d=h(a(8)),c=h(a(412)),p=a(1),f=a(50);function h(e){return e&&e.__esModule?e:{default:e}}var m=(0,a(59).exportClass)("ChartHasThresholdOptionBuilder")(r=function(e){function t(){var e;(0,o.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n3&&void 0!==arguments[3])||arguments[3],l=f.ContainerName.LABELS,s=f.ContainerName.VALUES,d=f.ContainerName.DYNAMIC_THRESHOLD,c=r.dataStructure||{},h=(0,p.getOr)(s,"Y_AXIS_CONTAINER_NAME",a),m=(0,p.getOr)(l,"X_AXIS_CONTAINER_NAME",a),g=c[d],E=c[h],y=(0,p.nth)(r.expandedLevel,c[m]),v=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"buildOptionsByType",this).call(this,e,a,r),T=(0,p.getOr)([],"commonXYAxis.metricAllDynamicThresholdOption",a),_=(0,p.getOr)([],"commonXYAxis.metricAllPlotLinesOption",a),S=this.findThresholdFields(g,E,T,o),C=S.dynamicThresholdSettings,b=S.thresholdFields,N=(0,p.isNil)(y)||(0,p.isNil)(b)?[]:this.getSeries(r,a,y,b);if(N=this.buildStyleForSeries(N,C,a),o){var A=(0,p.getOr)([],"yAxis.plotLines",v);A.push.apply(A,(0,n.default)(_)),v=(0,p.assignIn)(v,{plotLines:A})}return(0,p.assignIn)(v,{thresholdSeries:N})}},{key:"findThresholdFields",value:function(e,t,a,r){var i=this.fieldOptions,o=[],l=[],s=function(t){var a=(0,p.find)({fieldNameAlias:t},e);(0,p.isNil)(a)||o.push(a)};return(0,p.each)(function(e){var t=e.fieldNameAlias,a=(0,p.flow)((0,p.get)(t),(0,p.getOr)([],"dynamicThresholds"))(i);(0,p.size)(a)>0&&(l.push.apply(l,(0,n.default)(a)),(0,p.each)(function(e){s(e.fieldName)},a))},t),r&&(0,p.each)(function(e){l.push(e),s(e.fieldName)},a),{dynamicThresholdSettings:l,thresholdFields:o}}},{key:"buildStyleForSeries",value:function(e,t,a){var r=(0,p.getOr)(!1,"izendaOptions.spline",a);return e=(0,p.map)(function(e){var a=(0,p.find)({fieldName:e.yAxisField.fieldNameAlias},t),n=(0,p.get)("label.text",a);e=(0,p.assignIn)(e,{label:{enabled:!0},marker:{enabled:!1},type:r?f.THRESHOLD_TYPES.SPLINE:f.THRESHOLD_TYPES.LINE,color:a.color,colorByPoint:!1,lineWidth:a.width,dashStyle:a.dashStyle,isThreshold:!0});var i=!(0,p.isUndefined)(e.separatorField);return e.name=i?e.name+" - "+n:n,e},e)}}]),t}(c.default))||r;t.default=m,e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=T(a(6)),o=T(a(2)),l=T(a(3)),s=T(a(7)),u=T(a(133)),d=T(a(8)),c=T(a(412)),p=T(a(226)),f=T(a(91)),h=T(a(83)),m=a(50),g=(T(m),a(1)),E=a(59),y=a(36),v=a(48);function T(e){return e&&e.__esModule?e:{default:e}}var _=h.default.showText,S=(0,E.exportClass)("PieChartOptionsBuilder")(n=function(e){function t(){var e;(0,o.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n{0}',_(f)));var y=this.getValueLabel((0,g.get)("options",e),l,s,u);return this.izendaOptions.showValueLabel&&o.push(r||n?" "+_(y,!1):String.format(' {0}',_(y))),this.izendaOptions.showPercentage&&o.push(r||n?" ("+a.toFixed(2)+"%)":String.format(' ({0}%)',a.toFixed(2))),r||n?o.join(" "):String.format('{0}',o.join(" "))}},{key:"getValueLabel",value:function(e,t,a,r){var n=this.getCustomFormat(e,t.yAxisField),i=this.izendaSeriesConfig[t.name]||this.izendaSeriesConfig[e.name],o=(0,g.get)("fieldElement.properties.dataFormattings.format.jsFormatString",i),l=(0,g.get)("fieldElement.properties.dataFormattings.format.formatId",i);o&&(n=p.default.format(l,e.y||e.value));var s={value:n||e.y||e.value,originalValue:e.y||e.value};return this.dataParser.getFormatData(s,i,{element:(0,g.get)("yAxisField",e)||(0,g.get)("yAxisField",t),record:(0,g.get)("record",e)||(0,g.get)("record",e),nameFieldValue:{value:a,originalValue:r}})}},{key:"getCustomFormat",value:function(e,t){var a=null,r=(0,g.get)("columnName",t);return(0,g.flow)((0,g.get)("record"),(0,g.has)(v.CUSTOM_FORMAT_PREFIX+r))(e)&&(a=(0,g.flow)((0,g.get)("record"),(0,g.get)(r))(e)),a}},{key:"buildOptionsByType",value:function(e,a,n){this.dataParser=n;var o=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"buildOptionsByType",this).call(this,e,a,n),l=a.izendaOptions||{};this.izendaOptions=l;var s=a.izendaSeriesConfig||{};this.izendaSeriesConfig=s;var d=l.showValueLabel||l.showSliceLabel||l.showPercentage||!1,c=Math.round(50),p=o.xAxis.axisName,E=this.getDataLabelFormatProcess.bind(this),v=this.getValueLabel.bind(this);a.series&&(o=(0,g.omit)("series",o));var T,_=a.series?a.series.length:0;if(a.series=(T=a.series||o.series,(0,g.isArray)(T)?T.filter(function(e){return e.data=(0,g.filter)(function(e){return e.value=e.y,(0,g.get)("y",e)>0},e.data),(0,g.size)(e.data)}):T),_>0&&0===a.series.length)throw new Error("All series are negative or null!");return l.bottomXpercent&&function(e){var t=a.series||o.series,r=(0,g.get)("[0].data",t),n=(0,g.get)("[0].nameField.columnName",t),i=(0,g.get)("[0].yAxisField.columnName",t);if(r){var l=(0,g.get)("newData",f.default.processDataByBottomPercent(e.bottomXpercent,r,"name","y")),s=(0,g.findIndex)(function(e){return e.isComputed},l);if(-1!=s){var u=l[s];u.includedItems.forEach(function(e){e.label=E({options:e,name:e.name,value:e.value},{userOptions:(0,g.first)(t)},e.percentage,!0)}),u.record={},u.record[n]=(0,g.get)("name",u),u.record[i]=(0,g.get)("y",u)}t[0].data=l}}(l),o=(0,g.merge)(o,{chart:{type:"pie"},plotOptions:{series:{dataLabels:{enabled:d,formatter:function(){return E(this.point,this.series,this.percentage)},useHTML:!0}},pie:{showInLegend:!0,size:"100%",dataLabels:{padding:0}}},commonActions:{getDataLabelFormatProcess:E,getValueLabel:v},userOptions:a}),l.showPercentage&&(o=(0,g.assign)(o,{tooltip:{pointFormat:"{series.name}: {point.percentage:.1f}%"}})),(!a.izMultiLevel||!(0,m.isChartType)(this.chartOptions.chartType,y.CHART_TYPE.TreeMap))&&h.default.addPointActionLink(!0,a,(0,g.get)("plotOptions.series.dataLabels",o),p,(0,g.get)(p,s)),"ring"===l.pieChartStyle?r.extend(!0,o,{plotOptions:{pie:{innerSize:c+"%"}}}):"semiCirle"===l.pieChartStyle?r.extend(!0,o,{plotOptions:{pie:{startAngle:-90,endAngle:90,center:["50%","80%"],innerSize:c+"%"}}}):o}},{key:"_onClickOnPoint",value:function(e,a){var r=this;if(e.isComputed){var n=(0,g.get)("series",e),o=(0,g.get)("userOptions.nameField.reportPartElm.position",n);return a.drillOnOthersPeace(e.includedItems,o).then(function(e){var o=e.record;o&&(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"onClickOnPoint",r).call(r,{series:n,record:o.record,options:o,name:o.name},a)})}(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"onClickOnPoint",this).call(this,e,a)}}]),t}(c.default))||n;t.default=S,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(113),n=a(414),i=a(85),o=d(a(12)),l=d(a(106)),s=a(40),u=d(a(16));function d(e){return e&&e.__esModule?e:{default:e}}t.default=[(0,r.createStaticLabelSchema)("LabelPoint",function(){return o.default.getText("REPORTDESIGNER_LABEL_POINT_OPTIONS")}),(0,r.createConditionalContainerSchema)(function(e){return!(0,e.isMapStyle)(i.MAP_TYPES.Country)},"countryContainer",function(){return o.default.getText("REPORT_PART_MAP_POINT_country")},i.ContainerName.COUNTRY,70,1,!0),(0,r.createContainerSchema)("stateContainer",function(){return o.default.getText("REPORT_PART_MAP_POINT_state")},i.ContainerName.STATE,70,1,!0),(0,r.createConditionalContainerSchema)(function(e){var t=e.isMapStyle,a=e.properties.country;return t(i.MAP_TYPES.World)||t(i.MAP_TYPES.Google)||n.SUPPORTED_COUNTRY_COUNTRIES.indexOf(a)>-1},"countyContainer",function(){return o.default.getText("REPORT_PART_MAP_POINT_county")},i.ContainerName.COUNTY,70,1,!0),(0,r.createContainerSchema)("cityContainer",function(){return o.default.getText("REPORT_PART_MAP_POINT_city")},i.ContainerName.CITY,70,1,!0),(0,r.createContainerSchema)("postalCodeContainer",function(){return o.default.getText("REPORT_PART_MAP_POINT_postalCode")},i.ContainerName.POSTAL_CODE,70,1,!0),(0,r.createConditionalContainerSchema)(function(e){return(0,e.isMapStyle)(i.MAP_TYPES.Google)&&(u.default.currentUser.systemAdmin||(new l.default).checkPrivileges([s.PERMISSION_KEY.ReportsReportPartTypesEnableGoogleAddress]))},"addressContainer",function(){return o.default.getText("REPORT_PART_MAP_POINT_address")},i.ContainerName.ADDRESS,70,1,!0),(0,r.createContainerSchema)("latContainer",function(){return o.default.getText("REPORT_PART_MAP_POINT_latitude")},i.ContainerName.LATITUDE,70,1,!0),(0,r.createContainerSchema)("lonContainer",function(){return o.default.getText("REPORT_PART_MAP_POINT_longtitude")},i.ContainerName.LONGTITUDE,70,1,!0),(0,r.createStaticLabelSchema)("LabelValues",function(){return o.default.getText("REPORTDESIGNER_LABEL_VALUES")}),(0,r.createContainerSchema)("shadingContainer",function(){return o.default.getText("REPORT_PART_MAP_CONSTANTS_SHADING_METRIC")},i.ContainerName.SHADING_VALUES,70,1,!0),(0,r.createContainerSchema)("bubbleContainer",function(){return o.default.getText("REPORT_PART_MAP_CONSTANTS_BUBBLE_METRIC")},i.ContainerName.BUBBLE_VALUES,void 0,void 0,!0)],e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(36),n=r.MappingValues.HORIZONTAL_ALIGN_VALUES,i=r.MappingValues.VERTICAL_ALIGN_VALUES;t.default={optionsByType:{izValueLabel:{propKey:"izendaOptions.dataLabels",defaultValue:!1},izShowTooltip:{propKey:"tooltip.enabled",defaultValue:!0},izMapLabel:{propKey:"izendaOptions.mapLabel",defaultValue:!1},"izMapNavigation.enabled":{propKey:"mapNavigation.enabled",defaultValue:!1},"izMapNavigation.align":{propKey:"mapNavigation.buttonOptions.align",propSource:n,defaultValue:void 0},"izMapNavigation.verticalAlign":{propKey:"mapNavigation.buttonOptions.verticalAlign",propSource:i,defaultValue:void 0},legendSettings:{defaultValue:!0}}},e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(76),i=(r=n)&&r.__esModule?r:{default:r},o=a(1);var l="MachineLearning/";t.default={saveConfigureforNLQ:function(e,t,a){return t=(0,o.isEmpty)(t)?"":t,(0,i.default)(l+"configureNLQ/"+e+"/"+t+"/"+a).post()},getConfigureNLQStatus:function(e){return e=(0,o.isEmpty)(e)?"":e,(0,i.default)(l+"configureNLQStatus/"+e).get()},resetNLQ:function(e,t){return e=(0,o.isEmpty)(e)?"":e,(0,i.default)(l+"resetNLQ/"+e+"/"+t).post()},switchConfigureforSearchMode:function(e,t,a){return t=(0,o.isEmpty)(t)?"":t,(0,i.default)(l+"switchSearchModeNLQ/"+e+"/"+t+"/"+a).post()},getNLQSearchModeVisibility:function(){return(0,i.default)("SystemSetting/naturalSearchStatus").get()}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(76)),n=i(a(1150));function i(e){return e&&e.__esModule?e:{default:e}}var o="copyManagement/";t.default={getAllWorkspaces:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,r.default)(o+"workspaces/null/"+e).get()},getAvailableSources:function(){return null},getWorkspaceDetail:function(e){return e=e||"null",(0,r.default)(o+"workspace/"+e).get()},delete:function(e){return(0,r.default)(o+"workspace/"+e).delete()},saveWorkspaceDetail:function(e){return(0,r.default)(o).post(e)},loadDestinationConnections:function(e){return(0,r.default)(o+"workspace/loadDestinationConnections/").post(e)},validateWorkspaceTenant:function(e){return(0,r.default)(o+"workspace/validateWorkspaceTenant").post(e)},loadDistinctConnections:function(e){var t={tenantIds:e};return(0,r.default)("connection/loadDistinctConnections/").post(t)},validateWorkspaceName:function(e){return(0,r.default)(o+"workspace/validateName").post(e)},checkConnectionHasDataModel:function(e){return(0,r.default)(o+"connectionsHasDataModel").post(e)},detectConflictingRolePermission:function(e){return(0,r.default)(o+"workspace/detectConflictingRolePermission").post(e)},detectConflictingTenantPermissions:function(e){return(0,r.default)(o+"workspace/detectConflictingTenantPermissions").post(e)},detectConflictingAdvancedSettings:function(e){return(0,r.default)(o+"workspace/detectConflictingAdvancedSettings").post(e)},detectConflictingDashboards:function(e){return(0,r.default)(o+"workspace/detectConflictingDashboard").post(e)},detectConflictingReports:function(e){return(0,r.default)(o+"workspace/detectConflictingReport").post(e)},detectConflictingTemplates:function(e){return(0,r.default)(o+"workspace/detectConflictingTemplate").post(e)},runCopy:function(e){return(0,r.default)(o+"copy").post(e)},exportDataModel:function(e,t,a){return(0,n.default)(o+"exportDataModel").post(e,t,a,this.checkExportDataModelStatus)},checkExportDataModelStatus:function(e){var t=o+"checkExportDataModelStatus/"+e;return(0,r.default)(t).get()},getSourceConnectionsFromImportDataModel:function(e){return(0,r.default)(o+"getSourceConnectionsFromImportDataModel").post(e)},validateImportDataModel:function(e){return(0,r.default)(o+"validateImportDataModel").post(e)},checkDataSourcesConflictsWhenImportDataModel:function(e){return(0,r.default)(o+"checkDataSourcesConflictsWhenImportDataModel").post(e)},importDataModel:function(e){return(0,r.default)(o+"importDataModel").post(e)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=m(a(17)),l=m(a(2)),s=m(a(3)),u=m(a(16)),d=a(5),c=m(a(2787)),p=m(a(163)),f=m(a(79)),h=a(1);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function E(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var y=(r=function(){function e(t){var a=this;(0,l.default)(this,e),g(this,"cachingConfiguration",n,this),g(this,"alertDetails",i,this),this.dirtyFn=function(){return(0,h.get)("cachingConfiguration.isDirty",a)},this.noDirtyFnRegistration=!!t}return(0,s.default)(e,[{key:"loadCachingConfiguration",value:function(){var e=this;return f.default.loadCachingConfiguration().then((0,d.action)(function(t){return e.cachingConfiguration.populateData(t),e.resetDirty(),e.alertDetails.reset(),t}))}},{key:"saveCachingConfiguration",value:function(){var e=this;return f.default.saveCachingConfiguration(this.cachingConfiguration.buildDataForSave()).then(function(t){return t.success&&(e.cachingConfiguration.populateData(t.data),e.resetDirty()),t})}},{key:"resetDirty",value:function(){this.cachingConfiguration.resetDirty()}},{key:"init",value:function(){this.noDirtyFnRegistration||u.default.setCheckDirtyFunction(this.dirtyFn)}},{key:"destroy",value:function(){this.noDirtyFnRegistration||u.default.resetCheckDirtyFunction()}}]),e}(),n=E(r.prototype,"cachingConfiguration",[d.observable],{enumerable:!0,initializer:function(){return new c.default}}),i=E(r.prototype,"alertDetails",[d.observable],{enumerable:!0,initializer:function(){return new p.default}}),r);t.default=y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.id,a=e.onLabel,o=e.offLabel,l=e.value,s=e.onChange,u=t||String.newGuid();return r.default.createElement("div",{className:"u_table"},r.default.createElement("span",{className:"u_tableCell u_alignMiddle"},(0,n.isNil)(a)?i.default.getText("COMMON_LABEL_OFF"):a),r.default.createElement("div",{className:"izenda-Switch u_marginLeftRight"},r.default.createElement("input",{type:"checkbox",id:u,className:"izenda-Switch-checkbox",onChange:s,checked:l}),r.default.createElement("label",{className:"izenda-Switch-label",htmlFor:u})),r.default.createElement("span",{className:"u_tableCell u_alignMiddle"},(0,n.isNil)(o)?i.default.getText("COMMON_LABEL_ON"):o))};var r=o(a(0)),n=a(1),i=o(a(12));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IzendaRequestHeader=t.default=t.IZENDA_REQUEST_BODY_LANGUAGES=void 0;var r,n,i,o,l,s,u,d,c,p,f=T(a(17)),h=T(a(23)),m=T(a(2)),g=T(a(3)),E=T(a(53)),y=a(5),v=a(1);function T(e){return e&&e.__esModule?e:{default:e}}function _(e,t,a,r){a&&(0,f.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function S(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var C=t.IZENDA_REQUEST_BODY_LANGUAGES={TEXT:"text",JSON:"json",XML:"xml"},b=(0,E.default)((n=function(){function e(t,a,r){(0,m.default)(this,e),_(this,"headers",i,this),_(this,"body",o,this),_(this,"bodyLanguage",l,this),this.init(t,a,r)}return(0,g.default)(e,[{key:"init",value:function(e,t,a){this.body=t,this.bodyLanguage=a,this.headers=e,this.addEmptyLastHeader()}},{key:"setBody",value:function(e){this.body!==e&&(this.body=e,this.markDirty())}},{key:"setBodyLanguage",value:function(e){this.bodyLanguage!==e&&(this.bodyLanguage=e,this.markDirty())}},{key:"reset",value:function(){this.headers=[],this.body="",this.resetDirty()}},{key:"pushHeader",value:function(e){this.headers.splice(this.headers.length-1,0,e)}},{key:"removeHeader",value:function(e){this.headers.splice(this.headers.indexOf(e),1),this.addEmptyLastHeader()}},{key:"addEmptyLastHeader",value:function(){this.hasEmptyLastHeader()||this.headers.push(new N(!0,"",""))}},{key:"hasEmptyLastHeader",value:function(){return!(0,v.isEmpty)(this.headers)&&!(0,v.last)(this.headers).name}},{key:"clone",value:function(){var t=new e([],this.body,this.bodyLanguage);return t.headers=(0,v.map)(function(e){return e.clone()},this.headers),t}},{key:"headersCount",get:function(){return(0,v.filter)(function(e){return!!e.name},this.headers).length}},{key:"bodyBase64",get:function(){return e.b64EncodeUnicode(this.body)}}],[{key:"b64EncodeUnicode",value:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))}}]),e}(),i=S(n.prototype,"headers",[y.observable],{enumerable:!0,initializer:function(){return[]}}),o=S(n.prototype,"body",[y.observable],{enumerable:!0,initializer:function(){return""}}),l=S(n.prototype,"bodyLanguage",[y.observable],{enumerable:!0,initializer:function(){return C.TEXT}}),S(n.prototype,"init",[y.action],(0,h.default)(n.prototype,"init"),n.prototype),S(n.prototype,"setBody",[y.action],(0,h.default)(n.prototype,"setBody"),n.prototype),S(n.prototype,"setBodyLanguage",[y.action],(0,h.default)(n.prototype,"setBodyLanguage"),n.prototype),S(n.prototype,"reset",[y.action],(0,h.default)(n.prototype,"reset"),n.prototype),S(n.prototype,"pushHeader",[y.action],(0,h.default)(n.prototype,"pushHeader"),n.prototype),S(n.prototype,"removeHeader",[y.action],(0,h.default)(n.prototype,"removeHeader"),n.prototype),S(n.prototype,"addEmptyLastHeader",[y.action],(0,h.default)(n.prototype,"addEmptyLastHeader"),n.prototype),S(n.prototype,"headersCount",[y.computed],(0,h.default)(n.prototype,"headersCount"),n.prototype),r=n))||r;t.default=b;var N=t.IzendaRequestHeader=(0,E.default)((u=function(){function e(t,a,r){(0,m.default)(this,e),_(this,"enabled",d,this),_(this,"name",c,this),_(this,"value",p,this),this.init(t,a,r)}return(0,g.default)(e,[{key:"init",value:function(e,t,a){this.enabled=e,this.name=t,this.value=a}},{key:"setEnabled",value:function(e){this.enabled!==e&&(this.enabled=!!e,this.markDirty())}},{key:"setName",value:function(e){this.name!==e&&(this.name=e,this.markDirty())}},{key:"setValue",value:function(e){this.value!==e&&(this.value=e,this.markDirty())}},{key:"clone",value:function(){return new e(this.enabled,this.name,this.value)}}]),e}(),d=S(u.prototype,"enabled",[y.observable],{enumerable:!0,initializer:function(){return!0}}),c=S(u.prototype,"name",[y.observable],{enumerable:!0,initializer:function(){return null}}),p=S(u.prototype,"value",[y.observable],{enumerable:!0,initializer:function(){return null}}),S(u.prototype,"init",[y.action],(0,h.default)(u.prototype,"init"),u.prototype),S(u.prototype,"setEnabled",[y.action],(0,h.default)(u.prototype,"setEnabled"),u.prototype),S(u.prototype,"setName",[y.action],(0,h.default)(u.prototype,"setName"),u.prototype),S(u.prototype,"setValue",[y.action],(0,h.default)(u.prototype,"setValue"),u.prototype),s=u))||s},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=v(a(23)),o=v(a(124)),l=v(a(125)),s=a(20),u=v(s),d=v(a(2)),c=v(a(3)),p=a(1),f=a(5),h=v(a(278)),m=v(a(16)),g=v(a(190)),E=v(a(12)),y=(v(a(785)),v(a(787)));function v(e){return e&&e.__esModule?e:{default:e}}function T(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var _=(r=(0,f.action)("save"),T((n=function(){function e(t){(0,d.default)(this,e),this.masterStore=null,this.masterStore=t}return(0,c.default)(e,[{key:"init",value:function(){var e=this;m.default.setCheckDirtyFunction(function(){return e.item.needConfirmWhenLeaving})}},{key:"destroy",value:function(){this.masterStore.deleteTempExcelFiles(),m.default.resetCheckDirtyFunction()}},{key:"load",value:function(e){var t=this,a=e||this.item.id;return(0,p.isEmpty)(a)?(0,s.resolve)(!0):h.default.getConnectionString(a).then((0,p.get)("connection")).then((0,f.action)(function(e){var a=t.item;return a.setConnectionStringStatus(),a.readDetail(e),e})).then(function(e){return t.connectToDataSource(e),null})}},{key:"reloadDetectChanges",value:function(){var e=this.item;if(!(0,p.isEmpty)(e.id)){return h.default.getConnectionString(e.id).then((0,p.get)("connection")).then(function(t){return e.setChange(t.physicalChange),m.default.increaseDetectChangeCount(),t})}}},{key:"connectToDataSource",value:function(e,t){var a=this,r=(0,p.isEmpty)(e.dbSource),n=e.needReloadDetectChange;return(r||t?n?h.default.reloadRemoteSchema(e):h.default.getRemoteSchema(e.connectionString,e.serverTypeId):(0,s.resolve)({dBSource:e.dbSource})).then((0,f.action)(function(e){return!1===e.success?a.updateErrorMessage(e):(a.item.readDbSource(e.dBSource),r&&!t||!n||a.reloadDetectChanges()),e}))}},{key:"loadConnectionStringPreset",value:function(e){return h.default.getConnectionStringPreset(e)}},{key:"loadConnectionStringData",value:function(e){return e?(0,p.isEmpty)(e.connectionString)?(0,s.resolve)({success:!0,data:null}):h.default.getConnectionStringData({connectionId:e.id,serverTypeId:e.serverTypeId,serverTypeName:e.serverTypeName,connectionString:e.connectionString}):(0,s.reject)()}},{key:"getUploadUrl",value:function(){return h.default.UPLOAD_URL}},{key:"populateDatabaseName",value:function(){var e,t,a=this.item;return!y.default.isDbType(a.serverTypeId,"REST",this.masterStore)&&(0,p.isEmpty)(a.name)?(e=a,t={ServerTypeId:e.serverTypeId,ConnectionString:e.connectionString},h.default.getDatabaseName(t)).then(function(e){return e.success&&!(0,p.isEmpty)(e.data)&&a.setName(e.data),e}):(0,s.resolve)({success:!0})}},{key:"performConnection",value:function(e){var t,a=this;return new u.default((t=(0,l.default)(o.default.mark(function t(r){var n,i,l,s;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.item.setConnectionString(e),t.next=4,a.populateDatabaseName();case 4:if((n=t.sent).success){t.next=8;break}return r(n),t.abrupt("return");case 8:return t.next=10,a.validateConnection();case 10:if((i=t.sent).success){t.next=14;break}return r(i),t.abrupt("return");case 14:if(!a.item.isCurrentConnectionStringSameAsSavedConnectionString){t.next=17;break}return r({success:!1,messages:[{key:"connectionString",messages:[E.default.getText("CONNECTION_IS_DUPLICATED")]}]}),t.abrupt("return");case 17:return t.next=19,a.validateSchema();case 19:return t.sent,t.next=22,a.connectToDataSource(a.item,!0);case 22:l=t.sent,r(l),t.next=37;break;case 26:if(t.prev=26,t.t0=t.catch(0),!t.t0||(0,p.isNil)(t.t0.status)||200===t.t0.status){t.next=31;break}return r({success:!1,messages:[{key:"",messages:[(0,p.getOr)(t.t0.statusText,"responseJSON.message",t.t0)]}]}),t.abrupt("return");case 31:if(!(s=(0,p.getOr)(null,"messages",t.t0))||!s.length){t.next=36;break}r({success:!1,messages:s}),t.next=37;break;case 36:throw new Error("Unknown error: ",t.t0);case 37:case"end":return t.stop()}},t,a,[[0,26]])})),function(e){return t.apply(this,arguments)}))}},{key:"validateConnection",value:function(){var e=this.item;return(0,p.isEmpty)(e.connectionString)?(0,s.resolve)({success:!1,messages:[{key:"connectionString",messages:[E.default.getText("CONNECTION_REQUIRE_CONNECTION_STRING")]}]}):function(e){var t={ServerTypeId:e.serverTypeId,ConnectionString:e.connectionString,ConnectionId:e.id};return h.default.testConnectionString(t)}(e).then(function(t){return e.readTestResult(t),e.setConnectionStringValid(t.success),t})}},{key:"validateSchema",value:function(){var e=this.item;return e.notNeedToValidateSchema?(0,s.resolve)(!0):e.isNew?(0,s.resolve)(!1):function(e){var t=e.getData(!0);return h.default.validateSchema(t)}(e).then(function(t){return e.readStatusValidateSchema(t),t})}},{key:"save",value:function(){var e=this,t=this.item.getData();return t.tenantId=m.default.getTenantId(),h.default.updateConnectionString(t).then((0,f.action)(function(a){if(a.success&&(e.item.connectionString=a.connectionString,e.masterStore.deleteTempExcelFiles()),a.success&&(0,p.isEmpty)(t.id)){var r=e.dbTypeList.find(function(e){return e.id===t.serverTypeId});e.item.serverTypeName=r.shortName,e.item.id=a.connectionId,e.masterStore.addConnectionToList(e.item),m.default.increaseDetectChangeVisibleConnection()}else e.item.change!==g.default.DETECTED_CHANGE_LEVEL.NONE&&e.connectToDataSource(e.item,!0);return a.success?(e.load(),e.masterStore.loadList(m.default.tenantId),e.item.resetDirty(),m.default.increaseDetectChangeCount(),e.item.resetAvailableDataSourceChange(),e.item.setAlertMessage({type:"success",message:E.default.getText("COMMON_MESSAGES_DETAILS_WERE_SAVED")})):e.updateErrorMessage(a),a}))}},{key:"updateErrorMessage",value:function(e){var t=(0,p.isEmpty)(e.messages)||""!==e.messages[0].key?null:e.messages[0].messages[0];this.item.setAlertMessage({type:"error",message:t})}},{key:"item",get:function(){return this.masterStore.item}},{key:"dbTypeList",get:function(){return this.masterStore.dbTypeList}},{key:"tenantId",get:function(){return m.default.getTenantId()}}]),e}()).prototype,"item",[f.computed],(0,i.default)(n.prototype,"item"),n.prototype),T(n.prototype,"dbTypeList",[f.computed],(0,i.default)(n.prototype,"dbTypeList"),n.prototype),T(n.prototype,"tenantId",[f.computed],(0,i.default)(n.prototype,"tenantId"),n.prototype),T(n.prototype,"init",[f.action],(0,i.default)(n.prototype,"init"),n.prototype),T(n.prototype,"destroy",[f.action],(0,i.default)(n.prototype,"destroy"),n.prototype),T(n.prototype,"load",[f.action],(0,i.default)(n.prototype,"load"),n.prototype),T(n.prototype,"reloadDetectChanges",[f.action],(0,i.default)(n.prototype,"reloadDetectChanges"),n.prototype),T(n.prototype,"connectToDataSource",[f.action],(0,i.default)(n.prototype,"connectToDataSource"),n.prototype),T(n.prototype,"populateDatabaseName",[f.action],(0,i.default)(n.prototype,"populateDatabaseName"),n.prototype),T(n.prototype,"performConnection",[f.action],(0,i.default)(n.prototype,"performConnection"),n.prototype),T(n.prototype,"save",[r],(0,i.default)(n.prototype,"save"),n.prototype),n);t.default=_,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(11),n=s(a(44)),i=s(a(12)),o=s(a(780)),l=a(1);function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.withHandlers)({onSave:(0,l.curry)(function(e,t){var a=e.store,r=e.store.reportConfiguration,l=e.loader;if(!r.isDirty)return void a.updateAlertMessage(n.default.MESSAGE_TYPE.INFO,i.default.getText("COMMON_MESSAGES_NO_CHANGES_FOUND"));e.validation.validate().then(function(t){if(t=t&&function(e){var t=e.reportConfiguration;if(e.doesNeedToValidateGlobalAndLocalNames()&&t.doesDuplicateGlobalAndLocalName())return e.updateAlertMessage(n.default.MESSAGE_TYPE.ERROR,o.default.MESSAGES.M04),!1;return!0}(a))return l.startLoading(),a.onSave().then(function(t){if(t.success)a.updateAlertMessage(n.default.MESSAGE_TYPE.SUCCESS,i.default.getText("COMMON_MESSAGES_DETAILS_WERE_SAVED"));else{var o=t.messages;if(r.recurrentReportSetting.once)switch(o[0].key){case"StartDate":o[0].key="atDate";break;case"StartTime":o[0].key="atTime"}e.validation.updateErrors(o)}}).then(l.endLoading.bind(l))})}),onCancel:(0,l.curry)(function(e,t){e.validation.reset();var a=e.store,r=e.store.reportConfiguration,o=e.loader;if(!r.isDirty)return void a.updateAlertMessage(n.default.MESSAGE_TYPE.INFO,i.default.getText("COMMON_MESSAGES_NO_CHANGES_FOUND"));e.confirmFn("Confirmation",{description:i.default.getText("COMMON_MESSAGES_CONFIRM_CANCEL")}).then(function(){return o.startLoading(),a.onCancel().finally(o.endLoading.bind(o))})}),onChangeTime:(0,l.curry)(function(e,t,a){e.store.reportConfiguration.setValueByKey(t,a)}),onClearArchivedVersion:(0,l.curry)(function(e,t){t.stopPropagation();var a=e.store,r=e.loader;e.confirmFn("Confirmation",{description:i.default.getText("SYSTEM_CONFIGURATION_REPORT_SYSTEM_REMOVE_ALL_ARCHIVED")}).then(function(){return r.startLoading(),a.onClearArchivedVersion().finally(r.endLoading.bind(r))})}),setEnforceVersionHistory:(0,l.curry)(function(e,t){t.target.checked?e.store.reportConfiguration.setValueByKey("enforceVersionHistory",!0):e.confirmFn("Confirmation",{description:i.default.getText("SYSTEM_CONFIGURATION_REPORT_ALL_ARCHIVED_WILL_REMOVED")}).then(function(){e.store.reportConfiguration.setValueByKey("enforceVersionHistory",!1)})}),setNumOfArchivedVersionToKeep:(0,l.curry)(function(e,t){0===t&&e.confirmFn("Information",{description:i.default.getText("SYSTEM_CONFIGURATION_REPORT_CONFIRM_AFTER_SAVING_SETTING"),type:"info",showCloseIndicator:!0})}),defaultImageUrlHander:(0,l.curry)(function(e,t){var a=e.store.reportConfiguration;a.setValueByKey.call(a,"defaultImageUrl",t.target.value)}),onCheckRemoveArchivedVersions:(0,l.curry)(function(e,t){var a=e.store.reportConfiguration;a.setValueByKey.call(a,"removeArchivedVersions",t.target.checked)})}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={NUMBER_COLS:12,NUMBER_ROWS:5,GRID_CELL_SIZE:90,DEFAULT_TILE_WIDTH:12,DEFAULT_TILE_HEIGHT:4,DEFAULT_TILE_HEIGHT_MOBILE:400,TILE_MAX_HEIGHT:440,get DELETE_CONFIRM_MESSAGE(){return i.default.getText("DASHBOARD_GRID_CONSTANTS_DELETE_CONFIRM_MESSAGE")},get DELETE_ICON_TOOLTIP(){return i.default.getText("COMMON_LABEL_DELETE")},get DUPLICATE_MESSAGE(){return i.default.getText("DASHBOARD_GRID_CONSTANTS_DUPLICATE_MESSAGE")}},e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,l=k(a(124)),s=k(a(125)),u=k(a(6)),d=k(a(2)),c=k(a(3)),p=k(a(7)),f=k(a(8)),h=a(127),m=k(a(12)),g=k(a(35)),E=a(0),y=k(E),v=k(a(4)),T=k(a(3208)),_=k(a(1367)),S=k(a(402)),C=k(a(32)),b=k(a(3210)),N=k(a(15)),A=k(a(3211)),R=k(a(29)),O=k(a(688)),I=k(a(25)),D=k(a(1366)),P=a(391),L=k(a(26)),M=a(1),F=k(a(1361));function k(e){return e&&e.__esModule?e:{default:e}}var x=a(386),w=(0,I.default)()(O.default);function B(e){var t=e.label,a=e.options,r=e.value,n=(0,I.default)()(R.default);return y.default.createElement(N.default.Row,null,y.default.createElement(N.default.Col,{cols:2,className:"Izenda-EmailPopup-Input"},y.default.createElement("span",null,t)),y.default.createElement(N.default.Col,{cols:10},y.default.createElement(n,{field:t,options:a,value:r,onChange:e.onChange,validations:h.REQUIRE_CONSTRAINTS})))}var U=(0,v.default)(T.default)((i=function(e){function t(e){(0,d.default)(this,t);var a=(0,p.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));o.call(a),a.systemVariablesUI=new _.default,a.subscribedInstancesStore=new S.default,a.emailOptions=[];var r=a.props,n=r.email,i=r.type,l=r.dashboardId,s=r.reportId,c=r.authorization,f=r.authorizationConstants.PERMISSION_KEY;return a.domNodes={},i===h.EMAIL_TYPE.dashboard?a.subscribedInstancesStore.updateDashboardId(l):a.subscribedInstancesStore.updateReportId(s),a.deliveryOptions=(0,M.filter)(function(e){return c.checkPrivileges([f[e.key]])},h.DELIVERY_OPTIONS),(0,M.find)({value:h.DELIVERY_METHOD.attachment},a.deliveryOptions)&&(a.attachmentOptions=(0,M.filter)(function(e){return c.checkPrivileges([f[e.key]])},h.ATTACH_TYPE_OPTIONS),a.attachmentOptions.length>0?(0,M.find)({value:n.attachmentType},a.attachmentOptions)||(n.attachmentType=(0,M.getOr)("","[0].value",a.attachmentOptions)):a.deliveryOptions=(0,M.filter)(function(e){return e.value!==h.DELIVERY_METHOD.attachment},a.deliveryOptions)),(0,M.find)({value:n.deliveryMethod},a.deliveryOptions)||(n.deliveryMethod=(0,M.getOr)("","[0].value",a.attachmentOptions)),a.userAccountStore=new x(a.props.loadUsers,a.props.userModeType),a.userAccountStore.getAllUserAccounts().then(function(e){for(var t=e.result.length,r=0;r=0||i>o)?r.addClass("dropup"):r.removeClass("dropup")})},render:function(){var e=this.props,t=e.disabled,a=e.isNLQVisualization||!1,n=e.isNLQVisualizationActive||!1,o=e.getExportFormats(""),s=e.localization.getText("COMMON_LABEL_EXPORT"),d=e.isDashboard?e.exportDashboard:e.exportReport;return o.length>0&&r.createElement("div",{ref:"group",className:"btn-group"},a?a&&n?r.createElement(l,{ref:"button",className:"btn-export dropdown-toggle","data-toggle":"dropdown",disabled:t,defaultClasses:!1},r.createElement("i",{className:"icomoon-export",title:"Export Report"})):r.createElement("button",{type:"button",className:"btn-export",onClick:e.isReportActive},r.createElement("i",{className:"icomoon-export",title:"Export Report"})):r.createElement(l,{ref:"button",label:s,className:"btn-report-default dropdown-toggle","data-toggle":"dropdown",disabled:t},r.createElement("span",{className:"caret"})),r.createElement("ul",{ref:"menu",className:i("dropdown-menu",{"dropdown-menu-right":e.menuRight})},u(function(e){return r.createElement("li",{key:e.label},r.createElement("a",{onClick:d(e.value)},e.label))},o)))}}),e.exports=o(s)(d)}).call(t,a(27))},function(e,t,a){"use strict";var r,n;r=a(0),n=r.createClass({displayName:"GroupPanel",render:function(){var e=this,t=this.props,a=r.Children.map(t.children,function(t){return r.cloneElement(t,{parent:e})});return r.createElement("div",{className:"panel-group "+(t.className||""),ref:"panelGroup"},a)}}),e.exports=n},function(e,t,a){"use strict";var r,n=a(90),i=(r=n)&&r.__esModule?r:{default:r},o=a(20);!function(){var t=a(5),r=a(135),n=a(110),l=a(3274),s=a(330),u=a(16),d=a(55),c=a(123),p=a(203),f=a(94),h=a(1),m=h.isEmpty,g=h.isArray,E=h.map,y=h.isNil,v=h.getOr,T=h.get,_=h.find;function S(){this.contentLazyLoadingStore={},this.leftMenuLazyLoadingStore={};var e={model:new l,selectedReportId:null,report:null,reportName:"",categoryId:d.EMPTY_GUID,reportType:d.CATEGORY_TYPE.REPORT,version:0,disabled:!1,selectedCategoryId:null,reportListLink:null,reportCategoryTree:function(){return this.model.reportCategoryTree},items:function(){return this.model.items},tenantId:function(){return u.getTenantId()},isTemplateType:function(){return this.reportType===d.CATEGORY_TYPE.TEMPLATES},isUncategorized:function(){return this.selectedCategoryId===d.EMPTY_GUID},isRootCategory:function(){return this.selectedCategoryId===d.ALL_CATEGORY_TYPES.ALL_REPORTS.id||this.selectedCategoryId===d.ALL_CATEGORY_TYPES.ALL_TEMPLATES.id}};t.extendObservable(this,e)}S.prototype.loadAllCategories=t.action(function(e){return this.reportType=e||d.CATEGORY_TYPE.REPORT,r.loadAllCategories(this.reportType,this.tenantId).then(function(e){return this.model.readReportCategoryTree(e,this.reportType),e}.bind(this))}),S.prototype.loadCategoriesForCopyPopup=t.action(function(e,t){this.reportType=e||d.CATEGORY_TYPE.REPORT;var a=this.model;return r.loadCategoriesForCopyPopup(this.reportType,this.tenantId,t).then(function(e){return a.readCopyReportCategoryList(e),e})}),S.prototype.loadSubCategoriesForCopyPopup=function(e){return r.loadSubCategoriesForCopyPopup(e)},S.prototype.validateCategoryName=function(e){return r.validateCategoryName(e).then(function(e){return e.messages})},S.prototype.validateName=function(e){return n.validateReportName(e).then(function(e){return e.messages})},S.prototype.checkValidReportId=function(e){return n.validateReportId(e)},S.prototype.rename=function(e){return r.renameReport({name:e.name,reportKey:{key:e.id}}).then(function(e){return e})},S.prototype.deleteReport=function(e,t,a){var n=e.id,i=this.buildReportKey(n);return r.deleteReport(i,a).then(function(e){return e&&this.removeReport(n,t)}.bind(this))},S.prototype.removeReport=t.action(function(e,t){var a=_({id:e},t.reports);return t.reports.remove(a),0===t.reports.length&&(this.loadLazyLoadingReports(null,this.reportType,!0,null),this.loadLazyLoadingCategories(this.reportType,!0)),null}),S.prototype.deleteReportCategory=t.action(function(e){var a=e.id;return a?r.deleteReportCategory(a).then(t.action(function(t){t.success&&this.model.removeReportCategory(e);var a=e.isSubCategory?e.parentId:e.id;return t.success&&a===this.selectedCategoryId||this.isRootCategory()?this.selectedCategoryId:null}.bind(this))):(0,o.resolve)({success:!1})}),S.prototype.copyNewReport=t.action(function(e,t,a,n){var i=e.category||{},o=e.subCategory||{},l=i.id?i.tenantId:this.tenantId,s=o.id?o.tenantId:this.tenantId,u={isGlobal:!!e.saveInto,id:t.id,name:e.reportName,version:n,category:{id:String.isGuidFormat(i.id)?i.id:null,name:i.name,type:t.type,tenantId:l},subCategory:{id:String.isGuidFormat(o.id)?o.id:null,name:o.name,type:t.type,parentId:String.isGuidFormat(i.id)?i.id:null,tenantId:s},type:t.type,tenantId:this.tenantId};return(a?r.moveReport:r.copyNewReport)(u).then(function(e){return g(e.messages)?e.messages:e})}),S.prototype.updateAddtionalInfo=t.action(function(e){this.selectedCategoryId=T("subCategoryId",e.masterModel)||T("categoryId",e.masterModel)}),S.prototype.updateReportId=t.action(function(e,t){this.selectedReportId=e,this.version=t||0}),S.prototype.getReportInfo=function(){var e=this.selectedReportId;return e?r.reportInfo(e,this.version).then(t.action(function(e){return this.reportType=e.type.toString()||d.CATEGORY_TYPE.REPORT,this.reportName=e.name||"",this.categoryId=e.categoryId||d.EMPTY_GUID,this.selectedCategoryId||(this.selectedCategoryId=e.subCategoryId||e.categoryId),null}.bind(this))):(0,o.resolve)("")},S.prototype.buildReportKey=function(e){return{reportKey:{key:e}}},S.prototype.exportReport=function(e,t,a,r,n,o,l){var u=E(function(e){return e.getFilterDetails()},r);return s.export({url:e,format:t,reportId:a,filters:(0,i.default)(u),draftId:T("draftId",n),subReportFilters:(0,i.default)(v([],"subReportFilter",n)),queryString:T("queryString",n),tenantId:this.tenantId},o,l)},S.prototype.printReport=function(e,t,a,r,n,i,o){var l=E(function(e){return e.getFilterDetails()},r);return s.export({fileSessionKey:String.newGuid(),current_tenant:u.getTenantId(),url:e,format:t,reportId:a,filters:l,draftId:T("draftId",n),subReportFilters:v([],"subReportFilter",n),queryString:T("queryString",n),tenantId:this.tenantId}).then(function(e){i(e),f.printHtml(e)},o)},S.prototype.sendEmail=function(e,t,a){return s.email({reportId:a,draftId:e},t)},S.prototype.disable=t.action(function(){this.disabled=!0}),S.prototype.resetModel=t.action(function(){this.reportType=d.CATEGORY_TYPE.REPORT,this.selectedReportId=null,this.report=null}),S.prototype.updateRenderingTime=function(e){return r.updateRenderingTime(this.selectedReportId,e)},S.prototype.readReport=function(e){this.report=e},S.prototype.resetReportData=function(){this.report=null},S.prototype.savePreviousLink=function(e){this.reportListLink=e},S.prototype.loadLazyLoadingReports=t.action(function(e,a,n,i,o){this.selectedCategoryId=e,o=o||this.contentLazyLoadingStore.pageInfoForFirstTime,i=this.convertIsGlobal(i);var l={tenantId:this.tenantId,type:a,isUncategorized:this.isUncategorized,skipItems:o.fromIndex,pageSize:o.pageSize,parentIds:o.parentIds,includeGlobalCategory:!0,isGlobal:i};return this.isRootCategory||this.isUncategorized||(l.criterias=[{key:d.CATEGORY_TYPE.CATEGORY_ID,value:this.selectedCategoryId}]),r.lazyLoadingReports(l).bind(this).then(t.action(function(e){this.items.populate(e,n,d.REPORT_LIST_CONCAT_TREE_MAP)}))}),S.prototype.loadLazyLoadingCategories=t.action(function(e,a,n){n=n||this.leftMenuLazyLoadingStore.pageInfoForFirstTime,this.reportType=e||d.CATEGORY_TYPE.REPORT;var i={tenantId:this.tenantId,type:this.reportType,isUncategorized:this.isUncategorized,skipItems:n.fromIndex,pageSize:n.pageSize,parentIds:n.parentIds,includeGlobalCategory:!0};return r.loadLazyLoadingCategories(i).bind(this).then(t.action(function(t){var r,n=t.data,i=E(function(e){var t=new p;return t.populateDataForGlobalLocalCategory(e),t},n);r=e.toString()===d.CATEGORY_TYPE.REPORT?this.model.leftMenuReportCategories:this.model.leftMenuTemplateCategories,a&&r.splice(0,r.length),m(r)||r.shift(),c.concatTree(r,i,d.LEFT_MENU_CONCAT_TREE_MAP,t.numOfChilds,[]),r.splice(0,0,this.model.createAllItem(this.reportType));var o=c.parseToTree(r,d.LEFT_MENU_TREE_MAP);e.toString()===d.CATEGORY_TYPE.REPORT?this.model.leftMenuReportCategoryTree=o:this.model.leftMenuTemplateCategoryTree=o,this.model.resetCategoryStatus()}))}),S.prototype.lazyLoadingSearch=function(e,t){var a=this.items,n=y(t);t=t||this.contentLazyLoadingStore.pageInfoForFirstTime;var i={criterias:[],isUncategorized:this.isUncategorized,sortCriteria:{key:a.sortBy,descending:a.sortDir!==d.SORT_TYPES.ASC},tenantId:this.tenantId,type:this.reportType,skipItems:t.fromIndex,pageSize:t.pageSize,parentIds:t.parentIds,includeGlobalCategory:!0,isGlobal:this.convertIsGlobal(e)};return this.isRootCategory||y(this.selectedCategoryId)||i.criterias.push({key:d.CATEGORY_TYPE.CATEGORY_ID,value:this.selectedCategoryId}),(!y(a.searchType)||!y(a.searchText))&&i.criterias.push({key:a.searchType,value:a.searchText}),r.lazyLoadingSearchCategories(i).then(function(e){return this.items.populate(e,n,d.REPORT_LIST_CONCAT_TREE_MAP)}.bind(this))},S.prototype.convertIsGlobal=function(e){switch(e){case"null":return null;case"false":return!1;case"true":return!0;case void 0:return null;default:return e}},S.prototype.registerContentLazyLoadingStore=function(e){this.contentLazyLoadingStore=e},S.prototype.registerLeftMenuLazyLoadingStore=function(e){this.leftMenuLazyLoadingStore=e},S.prototype.cancelChanges=function(){return n.cancelReportChanges(this.selectedReportId)},e.exports=S}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=s(a(41)),i=s(a(18)),o=a(11),l=(a(168),a(1));function s(e){return e&&e.__esModule?e:{default:e}}var u=(0,o.withHandlers)({toggleSourceSelection:(0,l.curry)(function(e,t,a,o){var l=e.store,s=e.loader,u=l.reportStore,d=l.dataTree,c=u.fieldsStore,p=c.reportFilters,f=c.dataTree;if(u.model.markDirty(),u.alertDetails.reset(),!a)return l.checkRemoveSelectedRelation(t).then(function(t){return function(e,t,a){var r=e.store,n=e.loader,o=t.dataObject,l=r.reportStore.fieldsStore.reportFilters,s=r.model.reportMode===i.default.ADVANCED?i.default.BUNDLE.MESSAGE.ADVANCED_UNSELECT:i.default.BUNDLE.MESSAGE.SIMPLE_UNSELECT;function u(){return n.startLoading(),l.removeFiltersOfUncheckedDataObject(o),r.handleChangeSelectedQuerySource(o,!1,a).then(function(){return r.updateTree(),n.endLoading.bind(n)})}return r.model.reportMode!==i.default.ADVANCED||t.hasRemovedRelationship?e.confirmFn("Confirmation",{description:String.format(s,t.dataObject.name),isHTMLFormat:!0}).then(u):u()}(e,t,o)}).then(function(){t.isStoreProcedure&&c.reportFilters.setConfigModeToField(null)}).finally(s.endLoading.bind(s));if(!(d.selectedItems.length>=n.default.dataSourceLimitValue))return s.startLoading(),l.startLoadingRelationship().then(l.handleChangeSelectedQuerySource.bind(l,t,!0,o)).then(function(){return t.isStoreProcedure?(l.model.addFilterParams(t),c.getFilterData(null,null,!0).then(function(){return p.addFilterByIds(f.parameterFieldIds,{isParameter:!0}),(0,r.resolve)()})):(0,r.resolve)()}).then(l.endLoadingRelationship.bind(l)).finally(s.endLoading.bind(s));e.confirmFn("Information",{description:i.default.BUNDLE.MESSAGE.M16,type:"info",showCloseIndicator:!0})},1),deleteCalculatedField:(0,l.curry)(function(e,t){var a=e.store,r=e.localization,n=(a.reportStore||{}).fieldsStore,i=n.reportBody.hasCalculatedField(t.id,t.name),o=n.reportFilters.isFilterUseCalculatedField(t),l=n.dataTree.isAnotherCalculatedFieldUse(t);if(i||o||l)return e.confirmMessage("error",r.getText("CALCULATED_FIELD_MESSAGE_HAS_BEEN_USED"));return n.deleteCalculatedField(t)},1)});t.default=u,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(4),r=a(0),n=a(9).observer,i=a(41),o=a(25),l=a(29),s=a(3346),u=a(18),d=a(19),c=o()(d),p=a(24),f=p.notifyChange,h=a(12),m=a(10),g=a(75),E=a(1).merge,y=n(function(e){var t=i.advancedSettings.other,a=t.showIntroductionTextValue?t.introductionTextValue:"";return this.props.showTooltip?r.createElement("div",{className:"tool-tip u_paddingAll u_marginBottom"},r.createElement(g,{tooltip:a},r.createElement("i",{className:"icon-lightbulb"}),a)):null}),v=n(function(e){var t=this.props.isPreviewRecord,a=this.props.previewRecord,n=this.props.updatePreviewRecord;return t?r.createElement("div",{className:"col-md-4"},r.createElement("div",{className:"u_table u_fullWidth u_paddingInner u-bgWhite preview-records"},r.createElement("span",{className:"u_tableCell control-label u_alignMiddle"},h.getText("REPORTDESIGNER_LABEL_PREVIEW_RECORDS")),r.createElement("div",{className:"u_tableCell u_fullWidth"},r.createElement(l,{options:u.PREVIEW_RECORD,value:a,labelField:"label",valueField:"value",onChange:f(n,p.DROPDOWN)})))):null}),T=n(function(e){var t=e.store.statusGlobalCheckbox,a=m(e.className,"global-report");return t.visible?r.createElement("div",{className:a},r.createElement("label",{className:"u_table u_fullWidth"},r.createElement(d,{type:"checkbox",className:"global-checkbox",disabled:t.disabled,checked:t.checked,onChange:f(e.onChangeGlobalValue,p.CHECKBOX)}),h.getText("COMMON_LABEL_GLOBAL_REPORT"))):null});T.displayName="GlobalReportCheckbox";var _=r.createClass({displayName:"ReportNameEditor",propTypes:{store:r.PropTypes.object.isRequired,name:r.PropTypes.string.isRequired,isPreviewRecord:r.PropTypes.bool.isRequired,showTooltip:r.PropTypes.bool.isRequired},componentWillReceiveProps:function(e){e.name!==this.props.name&&e.updateReportName(e.name)},renderEditMode:function(){var e=this.props,t=e.store,a=e.reportName,n=t.model.reportType,i=e.onSave,o=e.onCancel,l=e.onKeyPress,s=(e.onBlur,e.updateReportName),d=e.localization,h=E(t.isNewReport||n===u.REPORT_TYPE_ENUM.REPORT?u.CONSTRAINTS.REPORT_NAME:u.CONSTRAINTS.TEMPLATE_NAME,{action:function(){return t.validate.bind(t,a)}});return r.createElement("div",{className:"title-edit"},r.createElement("div",{className:"input-group"},r.createElement(c,{value:a,onChange:f(s,p.INPUT),onBlur:i,onKeyPress:l,field:"reportName",validations:h,className:"form-control",autoFocus:!0}),r.createElement("span",{className:"input-group-btn"},r.createElement("button",{className:"btn btn-default",onMouseDown:i,title:d.getText("COMMON_TOOLTIP_UPDATE_CHANGE")},r.createElement("span",{className:"icon-ok success-color"})),r.createElement("button",{className:"btn btn-default",onMouseDown:o,title:d.getText("COMMON_TOOLTIP_CANCEL_CHANGE")},r.createElement("span",{className:"icon-cancel"})))))},renderNormalMode:function(){var e=this.props.name,t=this.props.onEdit,a=this.props.localization;return r.createElement("div",{className:"u_flexHorizontal"},r.createElement("div",{className:"u_textTruncate"},r.createElement("span",{className:"text-bold"},e)),r.createElement("div",{className:"u_fullInlineBlock"},r.createElement("i",{className:"icon-pencil-new",title:a.getText("COMMON_TOOLTIP_RENAME"),onClick:t})))},renderReportNameEditor:function(){var e,t=this.props.editMode,a=this.props.store.statusGlobalCheckbox.visible;return e=this.props.isPreviewRecord?m({"col-md-5":a,"col-md-8":!a}):m({"col-md-9":a,"col-md-12":!a}),r.createElement("div",{className:"report-name "+e},r.createElement("div",null,t?this.renderEditMode():this.renderNormalMode()))},render:function(){var e=this.props,t=e.store.model,a=e.showTooltip,n=e.isPreviewRecord,i=t.previewRecord;return r.createElement("div",{className:"izenda-ReportDesignerToolBar"},r.createElement("div",{className:"row izenda-ReportHeader"},this.renderReportNameEditor(),r.createElement(T,{store:e.store,className:"col-md-3",onChangeGlobalValue:e.onChangeGlobalValue}),r.createElement(v,{isPreviewRecord:n,previewRecord:i,updatePreviewRecord:function(a){t.updatePreviewRecord(a),e.onChangePreviewRecord&&e.onChangePreviewRecord(e)}})),r.createElement(y,{showTooltip:a}))}});e.exports=t(s)(_)}()},,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=a(1),i=(d(a(84)),d(a(193))),o=d(a(117)),l=(d(a(16)),a(5)),s=d(a(44)),u=d(a(37));function d(e){return e&&e.__esModule?e:{default:e}}s.default.MESSAGE_TYPE;t.default={checkShowOrganization:function(){return function(e){return e.model.updateProperty("enableForEnter",!1),e.loadSystemMode().then((0,l.action)(function(t){return e.model.updateProperty("hasOrg",t.systemMode===i.default.TENANT_MODE&&t.allowDuplicateUser),e.model.updateProperty("enableForEnter",!0),(0,r.resolve)(!0)}))}},setUpAuthInfo:function(e,t,a){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=e.data||{};t.authorization.setAccessToken(l.token);var s=t.authorization.getDefaultLink(u.default,i&&(0,n.isEmpty)((0,n.get)("licenseInfoStore.licenseInfo.licenseStatus",o.default)));return a=(0,n.isNil)(a)?s:a,history.replaceState&&history.replaceState({},document.title,a),null!==localStorage.getItem("redirectUrl")?t.router.push(localStorage.getItem("redirectUrl")):t.router.replace(a),(0,r.resolve)(!0)}},e.exports=t.default},function(e,t,a){"use strict";!function(){a(0);var t=a(11).compose,r=a(11).withHandlers,n=a(16),i=a(1),o=i.curry,l=i.isNil,s=t(r({updateValue:o(function(e,t,a){e.store.model.updateProperty(t,l(a.target)?a:a.target.value)}),resetDataOffset:o(function(e){e.store.model.updateProperty("dataOffset",n.currentUser.dataOffset)}),resetTimestampOffset:o(function(e){e.store.model.updateProperty("timestampOffset",n.currentUser.timestampOffset)})}));e.exports=s}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(14)),n=s(a(0)),i=s(a(768)),o=s(a(10)),l=s(a(37));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.printingMode,a=e.resetTopMargin,s=l.default.checkIframeExported(),u=(0,o.default)("unfilledLayout",{"izenda-Main":!t,"izenda-Main-Iframe-export":s}),d=a?{top:"0"}:{};return n.default.createElement(i.default,(0,r.default)({},e,{isNeedLoginForm:!1}),n.default.createElement("div",{style:d,className:u},e.children))},e.exports=t.default},,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var r=a(20);!function(){var t=a(1),n=t.isNil,i=t.isBoolean,o=t.map,l=t.forEach,s=t.isEqual,u=t.min,d=t.differenceBy,c=t.take,p=t.find,f=a(5),h=a(1553),m=a(84),g=a(63),E=a(967),y=a(108);function v(e,t,a){this.numberOfQuestionProfile=null,this.fullSecurityQuestions=null,this.mode=e||m.MODES.PASSWORD_SETUP;var r={id:null,systemAdmin:!1,active:!1,userName:null,firstName:null,lastName:null,emailAddress:null,verification:null,userSecurityQuestions:[],password:null,tenantDisplayID:null,tenantName:null,roles:[],dataOffset:null,timestampOffset:null,cultureName:"en-US",dateFormat:"MM/DD/YYYY",tenantId:null,fullName:null,passwordLastChanged:null,securityQuestionLastChanged:null,isUserIdHidden:!0,isUserProfileHidden:!0,isExpiration:null,confirmPassword:null,message:null,currentStep:null,hasOrg:!1,enableForEnter:!1,hasChangeLanguage:!1,securityQuestions:function(){return d("securityQuestionId",this.fullSecurityQuestions,this.userSecurityQuestions)}.bind(this),isSystemUser:function(){return n(this.tenantId)},languageList:[],dateFormatList:[],alertMessage:{},selectedQuestionList:[],currentModules:[],exportList:[],exportPagingInfo:new y,exportTotalRecords:0};f.extendObservable(g(this),r),a&&this.populateSystemConfig(a),t&&this.populate(t)}v.prototype.populateSystemConfig=function(e){return this.numberOfQuestionProfile=e.numberOfQuestionProfile,this.fullSecurityQuestions=e.fullSecurityQuestions,(0,r.resolve)(!0)},v.prototype.populate=f.action(function(e){this.tenantDisplayID=e.tenantDisplayId,this.tenantName=e.tenantName,this.id=e.id,this.active=e.active,this.systemAdmin=e.systemAdmin,this.userName=e.userName,this.firstName=e.firstName,this.lastName=e.lastName,this.fullName=e.fullName,this.emailAddress=e.emailAddress,this.verification=e.verification,this.tenantId=e.tenantId,this.roles=e.roles,this.dataOffset=e.dataOffset,this.timestampOffset=e.timestampOffset,this.cultureName=e.cultureName,this.dateFormat=e.dateFormat,this.passwordLastChanged=e.passwordLastChanged,this.securityQuestionLastChanged=e.securityQuestionLastChanged,this.hasChangeLanguage=!1,this.currentModules=e.currentModules,this.isUserIdHidden=i(e.isUserIdHidden)&&e.isUserIdHidden,this.isUserProfileHidden=i(e.isUserProfileHidden)&&e.isUserProfileHidden,this.populateUserSecurityQuestions(e.userSecurityQuestions),this.getSelectedQuestionList()}),v.prototype.updateCurrentStep=f.action(function(e){switch(this.currentStep=e,this.message=null,e){case m.STEP_KEYS.SecurityInfo:this.resetPasswordInfo(),this.resetUserSecurityQuestions();break;case m.STEP_KEYS.QuestionInfo:this.resetUserSecurityQuestions();break;case m.STEP_KEYS.PasswordInfo:this.resetPasswordInfo()}}),v.prototype.resetSecurityInfo=f.action(function(){this.password=null,this.confirmPassword=null}),v.prototype.updateProperty=f.action(function(e,t){this[e]=t,this.markDirty(),"cultureName"===e&&(this.hasChangeLanguage=!0)}),v.prototype.resetUserSecurityQuestions=f.action(function(){l(function(e){e.answer=null},this.userSecurityQuestions)}),v.prototype.resetPasswordInfo=f.action(function(){this.password=null,this.confirmPassword=null}),v.prototype.isCurrentStep=function(e){return s(e,this.currentStep)},v.prototype.isMode=function(e){return s(e,this.mode)},v.prototype.populateUserSecurityQuestions=f.action(function(e){if(this.userSecurityQuestions&&this.userSecurityQuestions.clear(),n(e)&&!n(this.fullSecurityQuestions)){var t=u([this.numberOfQuestionProfile,this.fullSecurityQuestions.length]);e=c(t,this.fullSecurityQuestions)}return l(function(e){this.userSecurityQuestions.push(new h(e,this.fullSecurityQuestions))}.bind(this),e),(0,r.resolve)(!0)}),v.prototype.getSelectedQuestionList=f.action(function(){this.selectedQuestionList=o(function(e){var t={securityQuestionId:e.securityQuestionId};return new h(t,this.fullSecurityQuestions)}.bind(this),this.userSecurityQuestions);var e=this.numberOfQuestionProfile-this.userSecurityQuestions.length;if(e>0){var t=d("securityQuestionId",this.fullSecurityQuestions,this.userSecurityQuestions);t=o(function(e){var t={securityQuestionId:e.securityQuestionId};return new h(t,this.fullSecurityQuestions)}.bind(this),c(e,t)),l(function(e){this.selectedQuestionList.push(e)}.bind(this),t)}}),v.prototype.updateUserSecurityQuestion=f.action(function(e,t,a){var r=p(function(t){return s(t.securityQuestionId,e.securityQuestionId)},this.userSecurityQuestions);n(r)||(r[t]=a)}),v.prototype.buildUserSecurityQuestionsForSaving=function(){return o(function(e){return{userId:this.id,securityQuestionId:e.securityQuestionId,answer:e.answer}}.bind(this),this.userSecurityQuestions)},v.prototype.populateMyProfile=f.action(function(e,t,a,r,n){this.numberOfQuestionProfile=n.numberOfQuestionProfile,this.fullSecurityQuestions=o(function(e){return new E(e)},r),this.populate(e.data),this.languageList=t,this.dateFormatList=o(function(e){return{labelDateFormat:e,dateFormat:e}},a)}),v.prototype.buildDataForSaving=function(){return{id:this.id,active:this.active,systemAdmin:this.systemAdmin,userName:this.userName,firstName:this.firstName,lastName:this.lastName,cultureName:this.cultureName,dateFormat:this.dateFormat,tenantId:this.tenantId,emailAddress:this.emailAddress,roles:this.roles,dataOffset:this.dataOffset,timestampOffset:this.timestampOffset,tenantName:this.tenantName,hasChangeLanguage:this.hasChangeLanguage}},v.prototype.reset=f.action(function(e){n(e)||(this.userName=e.userName,this.firstName=e.firstName,this.lastName=e.lastName,this.cultureName=e.cultureName,this.dateFormat=e.dateFormat,this.emailAddress=e.emailAddress,this.dataOffset=e.dataOffset,this.timestampOffset=e.timestampOffset),this.alertMessage={}}),v.prototype.getRemainingQuestionList=function(e){var t=[e],a=d("securityQuestionId",this.fullSecurityQuestions,this.selectedQuestionList);return l(function(e){var a={securityQuestionId:e.securityQuestionId};t.push(new h(a,this.fullSecurityQuestions))}.bind(this),a),t},v.prototype.buildForUpdateSecurityQuestions=function(){return{userSecurityQuestions:o(function(e){return{securityQuestionId:e.securityQuestionId,answer:e.answer}},this.selectedQuestionList),userName:this.userName,id:this.id}},v.prototype.resetAnswers=f.action(function(){l(function(e){e.answer=null},this.selectedQuestionList)}),v.prototype.resetValidation=function(){this.alertMessage={}},v.prototype.resetForLogin=f.action(function(){this.password=null,this.isExpiration=null,this.confirmPassword=null,this.message=null,this.currentStep=null,this.hasOrg=!1,this.enableForEnter=!1,this.hasChangeLanguage=!1,this.populate({})}),e.exports=v}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(1554)),n=a(1);function i(e){return e&&e.__esModule?e:{default:e}}var o={sameSite:i(a(193)).default.COOKIES.SAMESITE.LAX,secure:!1};t.default={setDefaultOptions:function(e){o=(0,n.extend)(o,e)},get:function(e){return r.default.get(e)},set:function(e,t,a){r.default.set(e,t,(0,n.defaults)(o,a))},remove:function(e,t){r.default.remove(e,t)}},e.exports=t.default},,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.licenseInfoInstance=t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m=C(a(17)),g=C(a(23)),E=C(a(2)),y=C(a(3)),v=a(5),T=a(1),_=C(a(12)),S=C(a(368));function C(e){return e&&e.__esModule?e:{default:e}}function b(e,t,a,r){a&&(0,m.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function N(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var A=(r=function(){function e(){(0,E.default)(this,e),this.hasValidLicense=!1,b(this,"licenseInfoDetail",n,this),b(this,"licenseStatus",i,this),b(this,"validatedLicense",o,this),b(this,"validatedLicenseToken",l,this),b(this,"isValidLicense",s,this),b(this,"disableLicense",u,this),b(this,"exceedLostConnectionAllowPeriod",d,this),b(this,"validationError",c,this),b(this,"licenseInValidMsg",p,this),b(this,"productVersion",f,this),b(this,"isConnectedToLicenseServer",h,this)}return(0,y.default)(e,[{key:"readLicenseStatus",value:function(e){e=e||{},this.licenseStatus=e,this.disableLicense=e.disabled,this.exceedLostConnectionAllowPeriod=e.exceedLostConnectionAllowPeriod,this.isConnectedToLicenseServer=e.connected,e.exceedLostConnectionAllowPeriod&&(this.isValidLicense=!1)}},{key:"readValidateLicense",value:function(e){this.validatedLicense=!0,this.validatedLicenseToken=!0,this.isValidLicense=e.success,e.success&&(this.licenseInfoDetail=e,this.hasValidLicense=!0)}},{key:"readLicenseInforation",value:function(e){e.success||(e.licenseOnlineMode=!0),this.hasValidLicense=this.isValidLicense=this.validatedLicense=this.validatedLicenseToken=(0,T.isNil)(e.success)?!!e.licenseKey:e.success,this.disableLicense=!e.licenseEnable,this.validationError=this.disableLicense?[S.default.MESSAGE.MG10]:[],this.licenseInValidMsg="",this.licenseInfoDetail=e,this.productVersion=e.productVersion?String.format(_.default.getText("COMMON_CRITERIA_VERSION")+" {0}",e.productVersion):""}},{key:"resetLicenseInfo",value:function(){this.validatedLicense=!1,this.validatedLicenseToken=!1,this.isValidLicense=!1,this.hasValidLicense=!1,this.exceedLostConnectionAllowPeriod=!1,this.licenseInfoDetail={},this.licenseStatus={}}},{key:"updateLicenseInfoByKey",value:function(e,t){"tokenKey"===e?this.validatedLicenseToken=!1:"licenseKey"===e?this.validatedLicense=!1:(this.validatedLicenseToken=!1,this.validatedLicense=!1),this.isValidLicense&&(this.isValidLicense=!1),this.licenseInfoDetail[e]=t}},{key:"isActiveLicense",get:function(){return this.integrationActiveLicense&&this.isValidLicense}},{key:"integrationActiveLicense",get:function(){return this.numberOfDayToExpire>0&&0===this.numberOfDayToValid&&!this.disableLicense&&!this.exceedLostConnectionAllowPeriod}},{key:"startDate",get:function(){return this.licenseInfoDetail.startDate||""}},{key:"endDate",get:function(){return this.licenseInfoDetail.endDate||""}},{key:"tokenKey",get:function(){return this.licenseInfoDetail.tokenKey||""}},{key:"licenseKey",get:function(){return this.licenseInfoDetail.licenseKey||""}},{key:"enableValidateButton",get:function(){return this.licenseOnlineMode?!!this.licenseKey:!(!this.tokenKey||!this.licenseKey)}},{key:"licenseOnlineMode",get:function(){return this.licenseInfoDetail.licenseOnlineMode}},{key:"licenseEndDate",get:function(){return this.licenseInfoDetail.licenseEndDate||""}},{key:"previousStartDate",get:function(){return this.licenseInfoDetail.previousStartDate||""}},{key:"previousEndDate",get:function(){return this.licenseInfoDetail.previousEndDate||""}},{key:"modules",get:function(){return this.licenseInfoDetail.modules||[]}},{key:"previousModules",get:function(){return this.licenseInfoDetail.previousModules||[]}},{key:"hasMapModules",get:function(){return!!(0,T.find)(function(e){return e.name===S.default.MAP_MODULES_NAME},this.modules)}},{key:"numberOfDayToValid",get:function(){return this.licenseInfoDetail&&this.licenseInfoDetail.numberOfDayToValid||this.licenseStatus&&this.licenseStatus.numberOfDayToValid}},{key:"meetExprireWarningPeriod",get:function(){return this.licenseStatus&&this.licenseStatus.meetExprireWarningPeriod||!1}},{key:"numberOfDayToExpire",get:function(){return this.licenseStatus&&this.licenseStatus.numberOfDayToExpire}},{key:"trialLicense",get:function(){return this.licenseStatus&&this.licenseStatus.trialLicense||!1}},{key:"isOnlineLicenseValidInLostConnectionAllowPeriod",get:function(){return this.licenseOnlineMode&&this.isValidLicense&&!this.isConnectedToLicenseServer&&!this.exceedLostConnectionAllowPeriod}}]),e}(),n=N(r.prototype,"licenseInfoDetail",[v.observable],{enumerable:!0,initializer:function(){return{}}}),i=N(r.prototype,"licenseStatus",[v.observable],{enumerable:!0,initializer:function(){return{}}}),o=N(r.prototype,"validatedLicense",[v.observable],{enumerable:!0,initializer:function(){return!1}}),l=N(r.prototype,"validatedLicenseToken",[v.observable],{enumerable:!0,initializer:function(){return!1}}),s=N(r.prototype,"isValidLicense",[v.observable],{enumerable:!0,initializer:function(){return!1}}),u=N(r.prototype,"disableLicense",[v.observable],{enumerable:!0,initializer:function(){return!0}}),d=N(r.prototype,"exceedLostConnectionAllowPeriod",[v.observable],{enumerable:!0,initializer:function(){return!1}}),c=N(r.prototype,"validationError",[v.observable],{enumerable:!0,initializer:function(){return{}}}),p=N(r.prototype,"licenseInValidMsg",[v.observable],{enumerable:!0,initializer:function(){return""}}),f=N(r.prototype,"productVersion",[v.observable],{enumerable:!0,initializer:function(){return""}}),h=N(r.prototype,"isConnectedToLicenseServer",[v.observable],{enumerable:!0,initializer:function(){return!0}}),N(r.prototype,"isActiveLicense",[v.computed],(0,g.default)(r.prototype,"isActiveLicense"),r.prototype),N(r.prototype,"integrationActiveLicense",[v.computed],(0,g.default)(r.prototype,"integrationActiveLicense"),r.prototype),N(r.prototype,"startDate",[v.computed],(0,g.default)(r.prototype,"startDate"),r.prototype),N(r.prototype,"endDate",[v.computed],(0,g.default)(r.prototype,"endDate"),r.prototype),N(r.prototype,"tokenKey",[v.computed],(0,g.default)(r.prototype,"tokenKey"),r.prototype),N(r.prototype,"licenseKey",[v.computed],(0,g.default)(r.prototype,"licenseKey"),r.prototype),N(r.prototype,"enableValidateButton",[v.computed],(0,g.default)(r.prototype,"enableValidateButton"),r.prototype),N(r.prototype,"licenseOnlineMode",[v.computed],(0,g.default)(r.prototype,"licenseOnlineMode"),r.prototype),N(r.prototype,"licenseEndDate",[v.computed],(0,g.default)(r.prototype,"licenseEndDate"),r.prototype),N(r.prototype,"previousStartDate",[v.computed],(0,g.default)(r.prototype,"previousStartDate"),r.prototype),N(r.prototype,"previousEndDate",[v.computed],(0,g.default)(r.prototype,"previousEndDate"),r.prototype),N(r.prototype,"modules",[v.computed],(0,g.default)(r.prototype,"modules"),r.prototype),N(r.prototype,"previousModules",[v.computed],(0,g.default)(r.prototype,"previousModules"),r.prototype),N(r.prototype,"hasMapModules",[v.computed],(0,g.default)(r.prototype,"hasMapModules"),r.prototype),N(r.prototype,"numberOfDayToValid",[v.computed],(0,g.default)(r.prototype,"numberOfDayToValid"),r.prototype),N(r.prototype,"meetExprireWarningPeriod",[v.computed],(0,g.default)(r.prototype,"meetExprireWarningPeriod"),r.prototype),N(r.prototype,"numberOfDayToExpire",[v.computed],(0,g.default)(r.prototype,"numberOfDayToExpire"),r.prototype),N(r.prototype,"trialLicense",[v.computed],(0,g.default)(r.prototype,"trialLicense"),r.prototype),N(r.prototype,"isOnlineLicenseValidInLostConnectionAllowPeriod",[v.computed],(0,g.default)(r.prototype,"isOnlineLicenseValidInLostConnectionAllowPeriod"),r.prototype),N(r.prototype,"readLicenseStatus",[v.action],(0,g.default)(r.prototype,"readLicenseStatus"),r.prototype),N(r.prototype,"readValidateLicense",[v.action],(0,g.default)(r.prototype,"readValidateLicense"),r.prototype),N(r.prototype,"readLicenseInforation",[v.action],(0,g.default)(r.prototype,"readLicenseInforation"),r.prototype),N(r.prototype,"resetLicenseInfo",[v.action],(0,g.default)(r.prototype,"resetLicenseInfo"),r.prototype),N(r.prototype,"updateLicenseInfoByKey",[v.action],(0,g.default)(r.prototype,"updateLicenseInfoByKey"),r.prototype),r);t.default=A;t.licenseInfoInstance=new A},,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=a(20),l=P(a(6)),s=P(a(2)),u=P(a(3)),d=P(a(7)),c=P(a(8)),p=a(0),f=P(p),h=P(a(13)),m=a(1),g=P(a(4)),E=P(a(1751)),y=P(a(1196)),v=P(a(513)),T=P(a(514)),_=P(a(704)),S=P(a(284)),C=P(a(229)),b=P(a(308)),N=P(a(44)),A=P(a(2242)),R=P(a(94)),O=P(a(26)),I=P(a(10)),D=P(a(281));function P(e){return e&&e.__esModule?e:{default:e}}var L=(0,g.default)(A.default)((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return a.init(),a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentWillUnmount",value:function(){var e=this.props;(0,m.getOr)(0,"pageIndex",e)>0||this.designerStore.fieldsStore.terminateAllReportPartWorker()}},{key:"init",value:function(){var e=this,t=this.props,a=t.params,r=t.loader,n=t.setting,i=t.id,l=t.viewMode,s=t.queryObject,u=t.printingMode,d=t.confirmFn,c=t.localization,p=t.skipLoad,f=t.partsToRender,h=(t.location||{}).query||{},g=h.version||0;this.renderListeners=[];var E=i||a.id;this.designerStore=t.reportDesignerStore||new S.default(l,E);var y=this.designerStore.fieldsStore;n&&!g&&(g=-1),this.reportHeaderKey="ReportHeader",this.reportFooterKey="ReportFooter",R.default.pushRenderListener(this.renderListeners,this.reportHeaderKey),R.default.pushRenderListener(this.renderListeners,this.reportFooterKey);var v=function(){var t=e.renderListeners,a=f||y.reportBody.activeReportParts;(0,m.forEach)(function(e){t.push(R.default.createPartRenderPromise(e.id))},a)};if(p)y.updateReportsParts(!1,f||null);else{r.startLoading();var T=(0,o.resolve)();if(s)this.designerStore.model.setSubReportFilters(s,!1);else if(h){var _=C.default.convertQueryToFilter(h);this.designerStore.model.setSubReportFilters(_,!0),T=b.default.resolveSubReportFilter(_).then(function(t){return e.designerStore.model.setSubReportFilters(t,!1),null})}this.designerStore.model.readURLOptions(h),T.then(function(){return e.designerStore.loadReportDesigner(g,u&&!n&&v)}).then(function(){if(!u){var t=e.designerStore.model.subReportFilter,a={selectedReport:E,masterReportId:t.masterReportId,reportFilter:t.inheritMasterReportFilter};y.validateFilterFieldsTypeSubReport(a).then(function(e){var t=(0,m.getOr)(null,"messages[0]",e);if((0,m.isNil)(t))e&&d("Information",{type:N.default.MESSAGE_TYPE.INFO_ACCEPT,description:c.getText("REPORTDESIGNER_FILTER_LOGIC_SUBREPORT"),showCancel:!1});else{var a=c.getText("COMMON_MESSAGES_GENERIC_ERROR");d("Error",{type:N.default.MESSAGE_TYPE.ERROR,description:(0,m.getOr)(a,"messages[0]",t),showCloseIndicator:!0})}})}return y.getFilterData()}).then(function(){if(s&&y.updateSpFilters(s.filters),n)return r.endLoading(),(0,o.resolve)(!0)})}}},{key:"checkPageBreak",value:function(){var e=(this.props.exportFormatSetting||this.designerStore.model.export).pageBreakAfterReportPart,t=this.designerStore.fieldsStore.reportBody.activeReportParts;return!e&&(0,m.forEach)(function(t){if(t.reportPartContent.checkBreakPage&&t.reportPartContent.checkBreakPage())return e=!0,!1},t),e}},{key:"render",value:function(){var e=this.props,t=e.setting,a=e.hideHeaderFooter,r=e.hideGridPopup,n=e.className,i=e.printingMode,o=e.getContainerClassName,l=e.partsToRender,s=e.exportFormatSetting||this.designerStore.model.export,u=s.marginSettingInInches,d=this.checkPageBreak(),c=this.designerStore.fieldsStore,p=!t&&!a,h={height:u.header,overflow:"hidden"},m={height:u.footer,overflow:"hidden"},g=(0,I.default)("content-container",n),S=f.default.createElement("div",{className:g},p&&f.default.createElement(v.default,{store:c,viewMode:!0,replaceSystemVariable:R.default.replaceSystemVariable,style:h,finishedRender:R.default.getFinishedRenderPromiseById(this.renderListeners,this.reportHeaderKey),printingMode:i}),f.default.createElement(_.default,{store:c,viewMode:!0}),f.default.createElement(y.default,{store:c}),f.default.createElement(E.default,{store:c,viewMode:!0,hideGridPopup:r,printingMode:i,doesBreakPage:d,pageBreakAfterReportPart:s.pageBreakAfterReportPart,exportFormatSetting:s,renderListeners:this.renderListeners,setting:t,partsToRender:l}),p&&f.default.createElement(T.default,{store:c,viewMode:!0,style:m,finishedRender:R.default.getFinishedRenderPromiseById(this.renderListeners,this.reportFooterKey),printingMode:i}));t&&D.default.getBodyContentSizeInInches(s.pageSizeKey,s.currentMarginSetting,s.currentMarginSetting.header,s.currentMarginSetting.footer,s.orientation);var C=t?{width:"100%",height:"100%"}:{};return f.default.createElement("section",{className:o(s),style:C},i?S:f.default.createElement(O.default,null,S))}}]),t}(p.Component),n.propTypes={params:h.default.object},n.defaultProps={hideHeaderFooter:!1,hideGridPopup:!1,viewMode:!0},r=i))||r;t.default=L,e.exports=t.default},,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(0)),n=s(a(4)),i=(s(a(24)),s(a(32))),o=s(a(15)),l=a(1);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=e.fieldConfig,a=(0,l.get)("subReport",t),n=(0,l.get)("customURL",t),s=(0,l.get)("embeddedJavascript",t),u=e.localization;return r.default.createElement(i.default,{visible:!0,onClosed:function(t){e.onAccept()},type:"none",sizeClass:"modal-sm"},r.default.createElement(i.default.Header,{title:u.getText("REPORTDESIGNER_LABEL_OPEN_ACTIONS")}),r.default.createElement(i.default.Body,null,function(e){return r.default.createElement(o.default,null,(0,l.get)("selectedReport",a)?r.default.createElement(o.default.Row,null,r.default.createElement(o.default.Col,{cols:1},(0,l.get)("viewSettingByLink",a)?null:r.default.createElement("span",{className:(0,l.get)("selectedIconValue.icon",a)})),r.default.createElement(o.default.Col,{cols:11},r.default.createElement("a",{onClick:d},e.getText("REPORTDESIGNER_LABEL_OPEN_SUBREPORT")))):null,(0,l.get)("url",n)?r.default.createElement(o.default.Row,null,r.default.createElement(o.default.Col,{cols:1},(0,l.get)("viewSettingByLink",n)?null:r.default.createElement("span",{className:(0,l.get)("selectedIconValue.icon",n)})),r.default.createElement(o.default.Col,{cols:11},r.default.createElement("a",{onClick:c},e.getText("REPORTDESIGNER_LABEL_OPEN_LINK")))):null,(0,l.get)("script",s)?r.default.createElement(o.default.Row,null,r.default.createElement(o.default.Col,{cols:1},(0,l.get)("viewSettingByLink",s)?null:r.default.createElement("span",{className:(0,l.get)("selectedIconValue.icon",s)})),r.default.createElement(o.default.Col,{cols:11},r.default.createElement("a",{onClick:p},e.getText("REPORTDESIGNER_LABEL_PERFORM_ACTION")))):null)}(u)));function d(){e.onAccept("openSubReport")}function c(){e.onAccept("openCustomURL")}function p(){e.onAccept("performEmbeddedJavascript")}};u.propsType={fieldConfig:r.default.PropTypes.object},t.default=(0,n.default)()(u),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(179)),n=s(a(12)),i=a(40),o=a(49),l=a(18);function s(e){return e&&e.__esModule?e:{default:e}}var u=[{key:"chart",value:l.REPORT_PART_TYPE.Chart,icon:"icon-chart-bar",get label(){return n.default.getText("COMMON_LABEL_CHART")},haveDashboardScroll:!1,component:{BackSide:a(455),FrontSide:a(2077)},properties:{reportPart:a(508),fieldProps:a(2116)},permissions:[i.PERMISSION_KEY.ReportsReportPartTypesChart],licenseKey:o.LICENSE_KEY.Charting},{key:"form",value:l.REPORT_PART_TYPE.Form,icon:"icon-doc-text",get label(){return n.default.getText("COMMON_LABEL_FORM")},haveDashboardScroll:!0,component:{BackSide:a(2117),FrontSide:a(2137)},properties:{reportPart:a(2143),fieldProps:a(2156)},permissions:[i.PERMISSION_KEY.ReportsReportPartTypesForm],licenseKey:o.LICENSE_KEY.Form},{key:"gauge",value:l.REPORT_PART_TYPE.Gauge,icon:"icon-gauge",get label(){return n.default.getText("COMMON_LABEL_GAUGE")},component:{BackSide:a(455),FrontSide:a(2157)},properties:{reportPart:a(508),fieldProps:a(2159)},permissions:[i.PERMISSION_KEY.ReportsReportPartTypesGauge],licenseKey:o.LICENSE_KEY.Charting},{key:"grid",value:l.REPORT_PART_TYPE.Grid,icon:"icon-grid",get label(){return n.default.getText("COMMON_LABEL_GRID")},haveDashboardScroll:!0,width:0,height:0,component:{BackSide:a(2160),FrontSide:a(2161)},properties:{reportPart:a(2171),fieldProps:a(2181)}},{key:"map",value:l.REPORT_PART_TYPE.Map,icon:"icon-globe",get label(){return n.default.getText("COMMON_LABEL_MAP")},haveDashboardScroll:!1,component:{BackSide:a(455),FrontSide:a(2182)},properties:{reportPart:a(508),fieldProps:a(2186)},permissions:[i.PERMISSION_KEY.ReportsReportPartTypesMap],licenseKey:o.LICENSE_KEY.Maps},{key:"kpi",value:l.REPORT_PART_TYPE.KPI,icon:"icomoon-looks_one u_icon-marginLeftRight",get label(){return n.default.getText("COMMON_LABEL_KPI")},component:{BackSide:a(455),FrontSide:a(2188)},properties:{reportPart:a(508),fieldProps:a(2202)},permissions:[i.PERMISSION_KEY.ReportsReportPartTypesKPI],licenseKey:o.LICENSE_KEY.Charting}];t.default={REPORT_PART_TYPES:u,initRegistry:function(){u.forEach(function(e){r.default.registerReportPartType(e,e.key)})}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(255),i=(r=n)&&r.__esModule?r:{default:r};t.default=new i.default("Field Container"),e.exports=t.default},,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";!function(){var t=a(5),r=a(268),n=a(63),i=a(97).CUSTOM_URL,o=a(97),l=a(18),s=a(34),u=a(1),d=u.filter,c=u.isEmpty,p=u.some,f=u.isNil,h=u.get,m=u.getOr,g=u.cloneDeep,E=u.trim,y=u.replace,v=u.merge,T=u.set,_=u.assignIn,S=u.isUndefined;function C(e){var a={fieldItemVisible:!0,dataFormattings:{function:"",functionInfo:{dataType:null,expression:null,expressionSyntax:null,extendedProperties:{},id:"",isOperator:null,name:null,syntax:null,userDefined:!1},format:{},font:{family:s.fontFamily.proxima,size:s.defaultFontSize,bold:!1,italic:!1,underline:!1,color:"",backgroundColor:""},width:{value:s.SIZE.WIDTH.VALUE},alignment:null,verticalAlignment:null,wordWrap:null,sort:e,color:{textColor:{rangePercent:null,rangeValue:null,value:null,allValues:null},cellColor:{rangePercent:null,rangeValue:null,value:null,allValues:null}},alternativeText:{rangePercent:null,rangeValue:null,value:null},customURL:{url:"",option:i.DEFAULT_VALUE},embeddedJavascript:{script:""},subTotal:{label:"",function:"",expression:"",dataType:"",format:{},previewResult:"",levels:[],font:{family:s.fontFamily.proxima,size:s.defaultFontSize,bold:!1,italic:!1,underline:!1,color:"",backgroundColor:""}},grandTotal:{label:"",function:"",expression:"",dataType:"",format:{},previewResult:""}},headerFormating:{font:{family:null,size:null,bold:null,italic:null,underline:null,color:null,backgroundColor:null},alignment:null,verticalAlignment:null,wordWrap:null,columnGroup:"",verticalHeader:!1,verticalHeaderHeight:{value:s.SIZE.HEIGHT.VALUE}},drillDown:{subReport:{selectedReport:null,style:null,reportPartUsed:null,reportFilter:!0,mappingFields:[],selectedIconValue:{icon:null,value:null},viewSettingByLink:null}},otherProps:{},subReport:function(){return this.drillDown.subReport},customURL:function(){return this.dataFormattings.customURL},embeddedJavascript:function(){return this.dataFormattings.embeddedJavascript},hasRangePercent:function(){var e=this.dataFormattings.color,t=e.textColor,a=e.cellColor;return!(c(t.rangePercent)&&c(a.rangePercent))}};t.extendObservable(n(this),a),this.dataFormattings.functionInfo.formatDataType=null,this.cleanDirty()}C.prototype.getValueByKey=function(e){return S(this[e])?S(this.getDataValueByKey(e))?S(this.getHeaderValueByKey(e))?S(this.getDrilldownValueByKey(e))?this.getOtherProps(e):this.getDrilldownValueByKey(e):this.getHeaderValueByKey(e):this.getDataValueByKey(e):this[e]},C.prototype.getDataValueByKey=function(e){return g(t.toJS(this.dataFormattings[e]))},C.prototype.getHeaderValueByKey=function(e){return this.headerFormating[e]},C.prototype.getDrilldownValueByKey=function(e){return this.drillDown[e]},C.prototype.setDataFormattings=t.action(function(e){e=e||{};var t=this.dataFormattings,a=e.font||{},n=e.width||{},i=e.grandTotal||{},o=e.subTotal||{};e.functionInfo&&this.setFunctionInfo(e.functionInfo),r(t,"function",e.function),r(t,"format",e.format),r(t.font,"family",a.family),r(t.font,"size",a.size),r(t.font,"bold",a.bold),r(t.font,"italic",a.italic),r(t.font,"underline",a.underline),r(t.width,"value",n.value),r(t,"alignment",e.alignment),r(t,"verticalAlignment",e.verticalAlignment),r(t,"wordWrap",e.wordWrap),r(t.customURL,"url",e.customURL&&e.customURL.url),r(t.customURL,"option",e.customURL&&e.customURL.option),r(t.customURL,"viewSettingByLink",e.customURL&&e.customURL.viewSettingByLink),r(t.customURL,"selectedIconValue",e.customURL&&e.customURL.selectedIconValue),r(t.embeddedJavascript,"script",e.embeddedJavascript&&e.embeddedJavascript.script),r(t.embeddedJavascript,"viewSettingByLink",e.embeddedJavascript&&e.embeddedJavascript.viewSettingByLink),r(t.embeddedJavascript,"selectedIconValue",e.embeddedJavascript&&e.embeddedJavascript.selectedIconValue),this.updateGrandTotalData(i),this.updateSubTotalData(o),this.updateSetingByRange(t.alternativeText,e.alternativeText),this.updateSetingByRange(t.color.cellColor,h("color.cellColor",e)),this.updateSetingByRange(t.color.textColor,h("color.textColor",e)),this.setSortValue(e.sort),t.format=t.format||{},t.format.createNewHiddenPercenOfGroupField=this.needPercentageData(),this.markDirty()}),C.prototype.setSortValue=t.action(function(e){var t=this.dataFormattings;r(t,"sort",e)}),C.prototype.updateSetingByRange=t.action(function(e,a){a&&t.extendObservable(e,a)}),C.prototype.needPercentageData=t.action(function(){var e=this.dataFormattings||{},t=e.alternativeText,a=h("color.cellColor",e),r=h("color.textColor",e);return n(t)||n(a)||n(r);function n(e){return!f(h("rangePercent",e))||p(function(e){return!f(e)&&!f(e.rangePercent)},e)}}),C.prototype.setPercentOfGroupRequiredForConditionalFormatting=t.action(function(e){this.dataFormattings.format=this.dataFormattings.format||{},this.dataFormattings.format.percentOfGroupRequiredForConditionalFormatting=e,this.markDirty()}),C.prototype.setHeaderFormattings=t.action(function(e){e=e||{};var t=this.headerFormating,a=e.font||{},n=e.verticalHeaderHeight||{};r(t.font,"family",a.family),r(t.font,"size",a.size),r(t.font,"bold",a.bold),r(t.font,"italic",a.italic),r(t.font,"underline",a.underline),r(t,"wordWrap",e.wordWrap),r(t,"alignment",e.alignment),r(t,"verticalAlignment",e.verticalAlignment),r(t,"columnGroup",E(e.columnGroup)),r(t.font,"color",a.color),r(t.font,"backgroundColor",a.backgroundColor),r(t,"verticalHeader",e.verticalHeader),r(t.verticalHeaderHeight,"value",n.value),this.markDirty()}),C.prototype.setDrillDownConfig=t.action(function(e){e=e||{};var t=this.drillDown||{},a=e.subReport||{};r(t.subReport,"selectedReport",a.selectedReport),r(t.subReport,"style",a.style),r(t.subReport,"reportPartUsed",a.reportPartUsed),r(t.subReport,"reportFilter",a.reportFilter),r(t.subReport,"mappingFields",a.mappingFields),r(t.subReport,"selectedIconValue",a.selectedIconValue),r(t.subReport,"viewSettingByLink",a.viewSettingByLink),this.markDirty()}),C.prototype.updateData=t.action(function(e){e=e||{},this.setDataFormattings(e.dataFormattings),this.setHeaderFormattings(e.headerFormating),this.setDrillDownConfig(e.drillDown),this.setOtherProps(null,v(this.otherProps,e.otherProps)),this.fieldItemVisible=e.fieldItemVisible,this.markDirty()}),C.prototype.updateGrandTotalData=t.action(function(e){e=e||{};var t=this.dataFormattings.grandTotal;r(t,"label",f(e.name)?e.label:e.name),r(t,"function",f(e.functionName)?e.function:e.functionName),r(t,"expression",e.expression),r(t,"dataType",f(e.izendaDataType)?e.dataType:e.izendaDataType),r(t,"previewResult",e.previewResult),r(t,"format",e.format),r(t,"font",e.font)}),C.prototype.updateSubTotalData=t.action(function(e){e=e||{};var t=this.dataFormattings.subTotal;r(t,"label",f(e.name)?e.label:e.name),r(t,"function",f(e.functionName)?e.function:e.functionName),r(t,"expression",e.expression),r(t,"dataType",f(e.izendaDataType)?e.dataType:e.izendaDataType),r(t,"previewResult",e.previewResult),r(t,"format",e.format),r(t,"font",e.font)}),C.prototype.checkDirty=function(){return this.isDirty},C.prototype.cleanDirty=function(){this.resetDirty()},C.prototype.getDefaultsHeaderProperty=function(e,t){var a=h(e,this.headerFormating);return f(a)?h(e,t):a},C.prototype.getUIStyle=function(){return{fontFamily:h("font.family",this.dataFormattings),fontSize:h("font.size",this.dataFormattings),bold:h("font.bold",this.dataFormattings),italic:h("font.italic",this.dataFormattings),underline:h("font.underline",this.dataFormattings),alignment:h("alignment",this.dataFormattings),verticalAlignment:h("verticalAlignment",this.dataFormattings),wordWrap:h("wordWrap",this.dataFormattings)}},C.prototype.getHeaderCellStyle=function(e){return{fontFamily:this.getDefaultsHeaderProperty("font.family",e),fontSize:this.getDefaultsHeaderProperty("font.size",e),bold:this.getDefaultsHeaderProperty("font.bold",e),italic:this.getDefaultsHeaderProperty("font.italic",e),underline:this.getDefaultsHeaderProperty("font.underline",e),textColor:this.getDefaultsHeaderProperty("font.color",e),backgroundColor:this.getDefaultsHeaderProperty("font.backgroundColor",e),alignment:this.getDefaultsHeaderProperty("alignment",e),verticalAlignment:this.getDefaultsHeaderProperty("verticalAlignment",e),wordWrap:this.getDefaultsHeaderProperty("wordWrap",e)}},C.prototype.getOtherProps=function(e){return e?this.otherProps[e]:this.otherProps},C.prototype.setOtherProps=t.action(function(e,t){this.otherProps=e?T(e,t,this.otherProps):_(this.otherProps,t),this.markDirty()}),C.prototype.setFormat=t.action(function(e){r(this.dataFormattings,"format",e)}),C.prototype.setDataFormatByKey=t.action(function(e,t){r(this.dataFormattings,e,t),this.markDirty()}),C.prototype.setFunction=t.action(function(e){r(this.dataFormattings,"function",e.id||""),this.setFunctionInfo(e)}),C.prototype.setFunctionInfo=t.action(function(e){this.dataFormattings.functionInfo.dataType=h("dataType",e),this.dataFormattings.functionInfo.expression=h("expression",e),this.dataFormattings.functionInfo.expressionSyntax=h("expressionSyntax",e),this.dataFormattings.functionInfo.extendedProperties=h("extendedProperties",e),this.dataFormattings.functionInfo.formatDataType=h("formatDataType",e),this.dataFormattings.functionInfo.id=m(null,"id",e),this.dataFormattings.functionInfo.isOperator=h("isOperator",e),this.dataFormattings.functionInfo.name=m("","name",e),this.dataFormattings.functionInfo.syntax=h("syntax",e),this.dataFormattings.functionInfo.userDefined=h("userDefined",e)}),C.prototype.checkUniqLinkOption=function(e,t){var a=!0;return d(function(e){return e!=t},o.CHECK_UNIQ_OPTIONS).forEach(function(t){var r=this[t].selectedIconValue||{},n=this[t].style&&this[t].style===l.DRIL_DOWN_STYLE.EMBEDDED,i=t===o.SUB_REPORT.NAME&&!h("selectedReport",this[t]);n||i||this[t].viewSettingByLink||!e.viewSettingByLink||r.value!==e.selectedIconValue.value||(a=!1)}.bind(this)),a},C.prototype.checkEmbeddedLinkOption=function(e){return(e=e||this.subReport.style)!==l.DRILL_DOWN_STYLE_OPTION_VALUES.embedded||!this.customURL.viewSettingByLink&&!this.embeddedJavascript.viewSettingByLink},C.prototype.changeFunctionFormatAction=t.action(function(e){var t=this.otherProps.axis;t&&(t.izTickInterval=null,t.izTickCategoryInterval=null,t.izStartingPoint=null,t.izEndingPoint=null,t.izCategory=!1)}),C.prototype.updateGrandSubTotal=t.action(function(e,t){var a=this.dataFormattings,r=a.grandTotal,n=a.subTotal,i="["+e+"]",o="["+t+"]";!c(r.expression)&&(r.expression=y(i,o,r.expression)),!c(n.expression)&&(n.expression=y(i,o,n.expression))}),e.exports=C}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});a(0);var r,n=a(255),i=(r=n)&&r.__esModule?r:{default:r};t.default=new i.default("Property Editor"),e.exports=t.default},,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(a(14)),n=f(a(0)),i=f(a(13)),o=f(a(10)),l=f(a(159)),s=f(a(1905)),u=f(a(16)),d=a(129),c=f(a(92)),p=f(a(4));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){var t=e.calendar,a=e.time,i=e.hasRange,c=e.renderInContainer,p=e.disabled,f=e.pickerWidth,h=e.visible,m=e.hidePicker,g=e.anchor,E=e.calendarProps,y=e.className,v=e.children,T=e.pickerAsPopover,_=(0,o.default)(y,"izenda-DateTimePicker"),S=(0,d.getConfiguredMinMaxDateTime)(),C=S.MinDate,b=S.MaxDate,N=n.default.createElement(s.default,(0,r.default)({disabled:p,hasRange:i,hasDate:t,hasTime:a,minDate:C,maxDate:b,locale:u.default.currentUser.cultureName},E));return n.default.createElement("div",{className:_},T?v:N,h&&T&&n.default.createElement(l.default,{anchor:g,onClickOutside:m,onParentScroll:m,autoWidth:!0,minWidth:f,maxWidth:f,renderInContainer:c},n.default.createElement(s.default,(0,r.default)({disabled:p,hasRange:i,hasDate:t,hasTime:a,minDate:C,maxDate:b,locale:u.default.currentUser.cultureName},E))))};h.propTypes={time:i.default.bool,calendar:i.default.bool,placeholder:i.default.string,name:i.default.string,options:i.default.object,disabled:i.default.bool,onBlur:i.default.func,onChange:i.default.func,multi:i.default.bool,hasRange:i.default.bool,renderInContainer:i.default.bool,pickerAsPopover:i.default.bool},t.default=(0,p.default)(c.default)(h),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d=O(a(17)),c=O(a(6)),p=O(a(2)),f=O(a(3)),h=O(a(7)),m=O(a(8)),g=a(0),E=O(g),y=O(a(13)),v=a(5),T=a(9),_=O(a(326)),S=O(a(2002)),C=O(a(2003)),b=O(a(26)),N=O(a(260)),A=O(a(10)),R=a(1);function O(e){return e&&e.__esModule?e:{default:e}}var I,D,P,L,M,F,k=200,x=(0,T.observer)(r=function(e){function t(){return(0,p.default)(this,t),(0,h.default)(this,(t.__proto__||(0,c.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,f.default)(t,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.childRef,r=e.children,n=(0,A.default)("table-height",t);return E.default.createElement("div",{className:n,ref:a},r)}}]),t}(g.Component))||r,w=(0,T.observer)(n=function(e){function t(){return(0,p.default)(this,t),(0,h.default)(this,(t.__proto__||(0,c.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,f.default)(t,[{key:"render",value:function(){var e=this.props.className,t=(0,R.getOr)(0,"virtualStore.bufferHeight",this.props);return E.default.createElement("div",{style:{height:t},className:e})}}]),t}(g.Component))||n,B=(0,T.observer)((u=s=function(e){function t(){var e,a,r,n,i,o,s,u;(0,p.default)(this,t);for(var f=arguments.length,m=Array(f),g=0;g0&&void 0!==arguments[0]?arguments[0]:1)*parseFloat(getComputedStyle(document.documentElement).fontSize)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=E(a(14)),l=E(a(6)),s=E(a(2)),u=E(a(3)),d=E(a(7)),c=E(a(8)),p=a(0),f=E(p),h=E(a(10)),m=a(9),g=a(1);function E(e){return e&&e.__esModule?e:{default:e}}var y=0,v=1,T=(0,m.observer)((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u=u.length-1?c=y:c++;var p=[{value:u[c].value}],f=function(e){p=e||p,l&&l.apply(null,p)};s?s.apply(r,p).then(f):f()},n=a,(0,d.default)(r,n)}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.propertyKey,a=e.value,r=e.loadValue,n=e.className,i=e.states,l=e.loadStates,s=e.isEmptyValue,u=e.defaultIcon,d=e.description,c=(0,g.isFunction)(r)?(0,g.get)(t,r()):a,p=(0,h.default)(n,"btn-highlight",{"active-check":(0,g.isFunction)(s)?!s(c):c}),m=(0,g.isFunction)(l)?l():i,E=(0,g.find)(function(e){return e.value===c},m)||(0,g.first)(m),y=(0,g.getOr)(u,"icon",E),v=(0,g.omit)(["states","description","onClick","keyPath","disabledIcon","beforeOnChange","hiddenByState","loadValue","propertyKey","defaultIcon","showInactiveState","loadStates","isEmptyValue","closePopover"],this.props);return f.default.createElement("button",(0,o.default)({},v,{value:c,className:p,title:d,onClick:this.onClick}),f.default.createElement("span",{className:y,value:c}))}}]),t}(p.Component),n.propTypes={description:p.PropTypes.string,states:p.PropTypes.oneOfType([p.PropTypes.array,p.PropTypes.object]),value:p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.bool]),onChange:p.PropTypes.func,isEmptyValue:p.PropTypes.func},n.defaultProps={states:[],onClick:null,description:""},r=i))||r;t.default=T,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u=a(14),d=(r=u)&&r.__esModule?r:{default:r};n=a(0),i=a(2056),o=a(1).omit,l={TEXT_AREA:"textarea",INPUT:"input"},s=n.createClass({displayName:"IconAfterCursorInput",getDefaultProps:function(){return{iconClassName:"icon-lightbulb",type:l.TEXT_AREA}},getInitialState:function(){return{isInitial:!0,style:{top:0,left:0,height:30}}},setMinMaxTop:function(){var e=this.refs.input,t=i(e,e.selectionEnd),a=t.top+15;return ae.offsetHeight-30&&(a=e.offsetHeight-30),a},updatePosition:function(){var e=this.refs.input,t=i(e,e.selectionEnd);this.setState({style:{top:this.setMinMaxTop(),left:e.offsetLeft-e.scrollLeft+t.left}})},renderInput:function(){var e=this.props,t=e.type,a=e.onClick,r=e.onKeyUp,i=e.onScroll;e=o(["iconClassName","componentType","onClickIcon","onClick","onKeyUp","onScroll"],e);var s={className:"form-control",onClick:function(e){this.updatePosition(),a&&a(e)}.bind(this),onKeyUp:function(e){this.updatePosition(),r&&r(e)}.bind(this),onScroll:function(e){this.updatePosition(),i&&i(e)}.bind(this),ref:"input"};return function(){switch(t){case l.TEXT_AREA:return n.createElement("textarea",(0,d.default)({},s,e));case l.INPUT:return n.createElement("input",(0,d.default)({},s,e));default:return n.createElement("textarea",(0,d.default)({},s,e))}}()},render:function(){var e=this.props;return n.createElement("div",{onClick:function(e){this.setState({isInitial:!1})}.bind(this),className:"icon-after-cursor"},this.renderInput(),function(){return this.state.isInitial||e.disabled?null:n.createElement("a",{onMouseDown:function(t){t.preventDefault(),t.stopPropagation(),e.onClickIcon&&e.onClickIcon(this.state.style)}.bind(this),style:this.state.style},n.createElement("span",{className:e.iconClassName}))}.call(this))}}),e.exports=s},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=h(a(6)),o=h(a(2)),l=h(a(3)),s=h(a(7)),u=h(a(8)),d=h(a(13)),c=a(0),p=h(c),f=h(a(12));function h(e){return e&&e.__esModule?e:{default:e}}var m=(n=r=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){var e=this.props.finishedRender;"function"==typeof e&&e()}},{key:"render",value:function(){return p.default.createElement("span",null,f.default.getText("NO_RECORD_FOUND"))}}]),t}(c.Component),r.propTypes={finishedRender:d.default.func},n);t.default=m,e.exports=t.default},function(e,t,a){"use strict";var r=a(20);!function(){var t=a(85).MappingKey,n=a(2087),i=a(1),o=i.find,l=i.get,s=i.invoke,u=i.compact,d=i.groupBy,c=i.memoize;function p(e,t,a){return d(function(t){return o(function(e){return function(e,t,a){return!!o(function(a){return a.compare(t[a.key],e)},a)}(e,t,a)},e)},t)}e.exports={getGEOJson:c(function(e){var t=l("cache",this.getGEOJson);return t.size>3&&s("clear",t),n.getGEOJson(e)}),getCountryCodes:function(e,a){var n=p(u(e),a,t.country);return(0,r.resolve)(n)},getCitiesByState:function(e,a){var n=p(u(e),a,t.state);return(0,r.resolve)(n)},getCities:function(e,a){var n=p(u(e),a,t.city);return(0,r.resolve)(n)},getPostalCode:function(e,a){var n=p(u(e),a,t.postalCode);return(0,r.resolve)(n)},getCounties:function(e,a){var n=p(u(e),a,t.county);return(0,r.resolve)(n)},getCountryCode:function(){return n.getCountryCode()},getStateCodes:function(e,a){var n=p(u(e),a,t.GOOGLE);return(0,r.resolve)(n)},getCountiesGGMap:function(e,a){var n=p(u(e),a,t.GOOGLE);return(0,r.resolve)(n)},getAddressesGGMap:function(e,a){var n=p(u(e),a,t.address);return(0,r.resolve)(n)}}}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(0)),n=a(9),i=o(a(10));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.observer)(function(e){var t=e.className,a=e.children,n=(0,i.default)("izenda-ReportPartToolbar form-inline izenda-Wrapper-header",t);return r.default.createElement("section",{className:n},a)}),e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=S(a(14)),n=S(a(6)),i=S(a(2)),o=S(a(3)),l=S(a(7)),s=S(a(8)),u=a(0),d=S(u),c=S(a(4)),p=S(a(92)),f=S(a(503)),h=S(a(18)),m=S(a(33)),g=S(a(308)),E=S(a(394)),y=S(a(633)),v=S(a(10)),T=S(a(94)),_=a(1);function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,p.default)(function(e){function t(){return(0,i.default)(this,t),(0,l.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.width,r=t.height;a===e.width&&r===e.height||(0,_.invoke)("afterRenderCallBack",this.props)}},{key:"render",value:function(){var e=this.props,t=this.props.width,a=(0,_.isUndefined)(e.containerWidth)?t:e.containerWidth||0;return d.default.createElement("div",null,d.default.createElement(f.default,(0,r.default)({containerWidth:a},(0,_.omit)(["width","height","containerWidth"],e),{embededReportPart:!0})))}}]),t}(u.Component));t.default=(0,c.default)()(function(e){var t=e.reportPart,a=e.rawRecord,r=e.fieldElement,n=e.linkTitleText,i=(0,_.get)("properties",r),o=(0,_.get)("subReport",i),l=(0,_.get)("customURL",i),s=(0,_.get)("embeddedJavascript",i),u=(0,_.get)("numberOfPointActions",r),c={subReport:o,customURL:l,embeddedJavascript:s,numberOfPointActions:u,fieldElement:r};if(o&&o.style===h.default.DRILL_DOWN_STYLE_OPTION_VALUES.embedded)return function(){var n=g.default.buildFilterDataCommon(a,o.mappingFields,t);if(!n.success)return d.default.createElement("section",null,n.errors);var i=e.getFilterInfoForSubReport(),u=g.default.buildFilterDataForEmbededReportPart(n.fieldMapping,t,o,i),c=(0,_.get)("url",l)&&(0,_.get)("selectedIconValue.icon",l),p=(0,_.get)("script",s)&&(0,_.get)("selectedIconValue.icon",s),f=E.default.readEmbededReportDef(t,r),h=[];return(0,_.forEach)(function(e){T.default.pushRenderListener(h,e.id)},f),e.printingMode&&T.default.publishFinishedRender(h,function(){e.finishedRender&&e.finishedRender()}),d.default.createElement("section",null,c&&d.default.createElement("span",{className:c,onClick:N}),p&&d.default.createElement("span",{className:p,onClick:A}),(0,_.isEmpty)(f)?e.children:f.map(function(t){return d.default.createElement(C,{key:t.id,reportPartDef:t,subReportFilter:u,printingMode:e.printingMode,containerWidth:e.containerWidth,finishedRender:T.default.getFinishedRenderPromiseById(h,t.id),afterRenderCallBack:e.afterRenderCallBack,ignoreCache:e.ignoreCache})}))}();var p=void 0,f=!1;1===u?(o&&o.selectedReport&&(o.viewSettingByLink?f=!0:p=o.selectedIconValue.icon),l&&l.url&&(l.viewSettingByLink?f=!0:p=l.selectedIconValue.icon),s&&s.script&&(s.viewSettingByLink?f=!0:p=s.selectedIconValue.icon)):u>1&&(f=!0);var S=l&&l.url||"";return n&&(S=n),f?d.default.createElement("a",{title:S},d.default.createElement("span",{className:"u_textLink",onClick:b},e.children)):d.default.createElement("div",null,d.default.createElement("a",{title:S},d.default.createElement("span",{className:(0,v.default)("u_textLink",p),onClick:b})),e.children);function b(){m.default.openHyperlinkAction(e,c,a,y.default)}function N(){m.default.openCustomURL(e,l,a)}function A(){m.default.performEmbeddedJavascript(e,s,a)}}),e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n,i,o,l=C(a(6)),s=C(a(2)),u=C(a(3)),d=C(a(7)),c=C(a(8)),p=a(0),f=C(p),h=C(a(13)),m=C(a(43)),g=C(a(695));a(2119);var E=C(a(2120)),y=C(a(34)),v=a(167),T=C(a(333)),_=C(a(12)),S=a(1);function C(e){return e&&e.__esModule?e:{default:e}}var b=E.default.EVENTS.map(function(e){return"on"+(0,S.head)(e).toUpperCase()+e.substring(1)}),N=(i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));o.call(a);var r=e.id,n=e.value;return a.state={id:r,value:n},a.tinymce=g.default,a.id=a.id||r,a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=(0,S.clone)(this.props.config);this.initTinyMCE(e)}},{key:"componentWillReceiveProps",value:function(e){(0,S.isEqual)(this.props.config,e.config)||this.initTinyMCE((0,S.clone)(e.config),e.content),(0,S.isEqual)(this.props.id,e.id)||(this.id=e.id),(0,S.isEqual)(this.props.content,e.content)||this.tinymce.get(this.id).setContent(e.content),this.toggleShowInvisibleChars(e)}},{key:"shouldComponentUpdate",value:function(e){return!(0,S.isEqual)(this.props.content,e.content)||!(0,S.isEqual)(this.props.config,e.config)}},{key:"componentWillUnmount",value:function(){this.removeTinyMCE()}},{key:"replaceContent",value:function(e,t){e.execCommand("mceReplaceContent",!1,t)}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.content;return f.default.createElement("textarea",{id:this.id,className:t,defaultValue:a,ref:this.updateNodeRef})}}]),t}(p.Component),n.propTypes={config:h.default.object,content:h.default.string,id:h.default.string},n.defaultProps={config:{},content:""},o=function(){var e=this;this.toggleShowInvisibleChars=function(t){t.visualChars!==e.props.visualChars&&e.tinymce.activeEditor.execCommand("mceVisualChars",!0,null,{skip_focus:!0})},this.initTinyMCE=function(t,a){e.isInit&&e.removeTinyMCE();var r=e;e.node.style.hidden="hidden";var n=t.setup,i="function"==typeof n;t.pagebreak_separator=T.default.PAGE_BREAK_HTML,t.selector="#"+e.id,t=(0,S.assignIn)(E.default.DEFAULT_CONFIG,t),(0,S.isEmpty)(m.default.RootPath)||(e.tinymce.baseURL=m.default.RootPath),(0,S.isEmpty)(m.default.CssFile)||(t.content_css=m.default.RootPath+"/"+m.default.CssFile),t.setup=function(e){E.default.EVENTS.forEach(function(t,a){var n=r.props[b[a]];"function"==typeof n&&e.on(t,function(t){n(t,e)})}),e.on("NodeChange",function(t){r.handleNodeChange(t,e)}),e.on("init",function(){E.default.FORMAT_CHANGES.forEach(function(t){e.formatter.formatChanged(t,function(e,t){r.props.onFormatChange&&r.props.onFormatChange(t.format,e)})}),(0,S.isNil)(a)||e.setContent(a),r.props.visualChars&&r.tinymce.activeEditor.execCommand("mceVisualChars",!0,null,{skip_focus:!0})}),e.addMenuItem("spell_checker",{text:_.default.getText("TINY_MCE_SPELL_CHECKER"),onclick:r.handleSpellCheck,onPostRender:r.handleDisabledState}),e.addMenuItem("label",{text:"Label Field",onclick:r.props.labelHandler}),e.addMenuItem("metric",{text:"Metric Field",onclick:r.props.metricHandler}),e.on("contextmenu",function(){r.handleContextMenu()}),e.on("BeforeSetContent",function(e){e.content=e.content.replace('
',"")}),i&&n(e)},e.tinymce.init(t),e.node.style.hidden="",e.isInit=!0},this.handleContextMenu=function(){(0,S.isNil)(e.spellCheckItem)||e.checkContentSelected()},this.handleDisabledState=function(t){e.spellCheckItem=t.control,e.checkContentSelected()},this.checkContentSelected=function(){var t=e.tinymce.get(e.id).selection.getContent();!t||r("
"+t+"
").find("field").length?e.spellCheckItem.disabled(!0):e.spellCheckItem.disabled(!1)},this.handleSpellCheck=function(){if(e.props.onSpellCheck){var t=e.tinymce.get(e.id).selection,a=t.getContent(),r=t.getRng();e.props.onSpellCheck(a,r.startOffset,r.endOffset)}},this.removeElement=function(t){e.tinymce.get(e.id).dom.remove(t)},this.handleNodeChange=function(t){var a=e.props,r={},n=e.getFormatValue(t,v.FORMAT_CONFIG.FONT_SIZE,"fontsize"),i=e.getFormatValue(t,v.FORMAT_CONFIG.FONT_NAME,"fontname");if(r.fontSize=n?n.replace(y.default.defaultUnitType,""):y.default.defaultFontSize,r.fontFamily=i?(0,S.findKey)(function(e){return e===i},v.FORMAT_CONFIG.FONT_NAME):y.default.defaultFontFamily,r.textColor=e.getCurrentColor("forecolor")||y.default.textColor,r.backgroundColor=e.getCurrentColor("hilitecolor")||y.default.backgroundColor,r.bullet=e.getSelectionList(t,"ul"),r.numbered=e.getSelectionList(t,"ol"),a.onFormatChange)for(var o in r)r.hasOwnProperty(o)&&a.onFormatChange(o,r[o])},this.getSelectionList=function(t,a){var r=e.tinymce.get(e.id),n=r.dom.getParent(r.selection.getNode(),a);return r.dom.getStyle(n,"listStyleType")||""},this.getCurrentColor=function(t){var a="",r=g.default.get(e.id);return r.dom.getParents(r.selection.getStart(),function(e){var r=e.style&&e.style["forecolor"==t?"color":"background-color"];r&&(a=String.rgbToHex(r))}),a},this.getFormatValue=function(t,a,r){var n=e.tinymce.get(e.id).formatter,i=null;return(0,S.forEach)(function(e){(0,S.forEach)(function(t){n.matchNode(e,r,{value:t})&&(i=t)},a)},t.parents),i},this.removeTinyMCE=function(){e.tinymce.get(e.id).getBody()&&e.tinymce.EditorManager.execCommand("mceRemoveEditor",!0,e.id),e.isInit=!1},this.insertContent=function(t){e.tinymce.get(e.id).execCommand("mceInsertContent",!1,t)},this.toggleFormat=function(t){e.tinymce.get(e.id).execCommand("mceToggleFormat",!1,t)},this.applyFormat=function(t,a){var r=e.tinymce.get(e.id);r.undoManager.transact(function(){r.focus(),r.formatter.apply(t,{value:a}),r.nodeChanged()})},this.applyListFormat=function(t,a){var r=e.tinymce.get(e.id);r.undoManager.transact(function(){var e=void 0,n=r.dom,i=r.selection;if(!(e=n.getParent(i.getNode(),"ol,ul"))||e.nodeName!==t||""===a){var o={"list-style-type":a};r.execCommand("UL"===t?"InsertUnorderedList":"InsertOrderedList",!1,o)}(e=n.getParent(i.getNode(),"ol,ul"))&&(n.setStyle(e,"listStyleType",a||null),e.removeAttribute("data-mce-style")),r.focus()})},this.insertContentDnD=function(t){var a=e.tinymce.get(e.id),r=a.getBody(),n=a.dom,i=a.selection,o=i.getRng();("BODY"===o.startContainer.nodeName&&"STYLE"===r.firstChild.firstChild.nodeName||"STYLE"===o.startContainer.nodeName)&&((o=n.createRng()).setStartAfter(r.lastChild),o.setEndAfter(r.lastChild),i.setRng(o)),a.execCommand("mceInsertContent",!1,t)},this.updateRepeater=function(t){var a=e.tinymce.get(e.id);switch(t){case"Add":var r=a.selection.getContent();if(r.indexOf("=0){var n=T.default.REPEATER_START+r+T.default.REPEATER_END,i=e.getContent();i.indexOf(r)<0?a.insertContent(n):(i=i.replace(r,n),a.setContent(i))}a.focus();break;case"Remove":e.removeRepeater(a)}},this.getContent=function(){return e.tinymce.get(e.id).getContent()},this.removeRepeater=function(t){var a=t.selection.getContent();a.indexOf(T.default.REPEATER_START)>=0?(t.focus(),r("repeater",t.selection.getNode()).unwrap()):"REPEATER"===e.tinymce.get(e.id).selection.getNode().nodeName&&(a=r(e.tinymce.get(e.id).selection.getNode().parentNode).html(),a=(0,S.chain)(a).split(T.default.REPEATER_START).join("").split(T.default.REPEATER_END).join("").value(),t.focus(),e.tinymce.get(e.id).selection.getNode().parentNode.innerHTML=a)},this.insertSmartTag=function(t,a){switch(e.tinymce.get(e.id).focus(),t){case"DateTime":e.insertContent(''+a+"");break;case"Subtotal":e.insertContent('Click here to select field');break;case"GrandTotal":e.insertContent('Click here to select field')}},this.execCommand=function(t,a){e.tinymce.get(e.id).execCommand(t,!1,a),(0,S.includes)(t,["Undo","Redo"])&&e.props.onChange&&e.props.onChange({target:e.tinymce.get(e.id)})},this.isSelectedCell=function(){var t=e.tinymce.get(e.id);if(!t.dom)return!1;var a=t.dom.select("td[data-mce-selected],th[data-mce-selected]"),r=(0,S.head)(a);return r||(r=t.selection.getStart()),!!t.dom.getParent(r,"td,th")},this.insertTable=function(t,a){var r=e.tinymce.get(e.id),n=void 0,i=void 0,o=void 0,l=void 0;for(o='',n=0;n",i=0;i
";o+=""}return o+="
",r.undoManager.transact(function(){r.insertContent(o),l=r.dom.get("__mce"),r.dom.setAttrib(l,"id",null),r.dom.setAttribs(l,r.settings.table_default_attributes||{}),r.dom.setStyles(l,r.settings.table_default_styles||{})}),l},this.updateNodeRef=function(t){e.node=t}},i);t.default=N,e.exports=t.default}).call(t,a(27))},,function(e,t,a){"use strict";!function(){var t=a(5),r=a(2122);e.exports=function(){var e={model:new r};t.extendObservable(this,e)}}()},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f=C(a(17)),h=C(a(23)),m=C(a(2)),g=C(a(3)),E=a(5),y=C(a(18)),v=C(a(2139)),T=C(a(53)),_=a(1),S=a(123);function C(e){return e&&e.__esModule?e:{default:e}}function b(e,t,a,r){a&&(0,f.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function N(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var A=(0,T.default)((n=function(){function e(){(0,m.default)(this,e),b(this,"details",i,this),b(this,"filterText",o,this),b(this,"loadedDataSource",l,this),b(this,"relationItemIds",s,this),b(this,"isLastPage",u,this),b(this,"displayData",d,this),b(this,"selectedTree",c,this),b(this,"selectedItemNodes",p,this),this.selectedCategories=[]}return(0,g.default)(e,[{key:"checkDirty",value:function(){return this.isDirty||(0,_.flow)((0,_.flatMap)(function(e){return e.querySource?e.querySource.slice():[]}),(0,_.some)(["isDirty",!0]))(this.details)}},{key:"cleanDirty",value:function(){this.resetDirty(),(0,_.forEach)(function(e){e.resetDirty&&e.resetDirty()},this.details)}},{key:"cleanCalculatedFieldDirty",value:function(){var e=(0,_.find)({name:y.default.CALCULATED_FIELD_NAME},this.details);if(!(0,_.isNil)(e)){var t=(0,_.getOr)([],"querySource",e);(0,_.forEach)(function(e){e.resetDirty&&e.resetDirty()},t)}}},{key:"getDataTreeItems",value:function(e){var t=this,a=[],r=y.default.UNCATEGORIZED;return this.selectedCategories=[],(0,_.forEach)(function(n){(0,_.forEach)(function(i){if(!i.isVirtualNode&&(a.push({querySourceId:i.id,selected:i.selected,physicalChange:e&&i.id===e.id?2:0,state:e&&e.selected?y.default.OBJECT_STATE.INSERT:y.default.OBJECT_STATE.DELETE}),i.selected)){var o=n.id||y.default.EMPTY_GUID;(0,_.isNil)(t.selectedCategories[o])?t.selectedCategories[o]={name:(0,_.isNil)(n.name)?r:n.name,dataObjects:[i]}:t.selectedCategories[o].dataObjects.push(i)}},n.querySource)},this.selectedTree),a}},{key:"showRelationship",value:function(e){(0,_.isEmpty)(e)||(this.relationItemIds=(0,_.map)((0,_.get)("querySourceId"),e))}},{key:"getIcon",value:function(e){return(0,_.getOr)("",e,y.default.ICON)}},{key:"readDataSource",value:function(e){var t=this.details;(0,_.forEach)(function(e){e.isVirtualNode||(e.querySource=(0,_.map)(function(e){return e.fields=(0,_.filter)({inaccessible:!1},e.fields),e.isVirtualNode?e:new v.default(e)},e.querySource))},e),e&&!e.isFromDataSource&&t.replace(e),this.loadedDataSource=!0}},{key:"convertDataSource",value:function(e){var t=this;return(0,_.forEach)(function(e){e.expand=!0,e.querySource=(0,_.map)(function(e){return e.expand=!!t.filterText,e.fields=(0,_.filter)({inaccessible:!1},e.fields),new v.default(e)},e.querySource)},e),e}},{key:"readCalculatedDataSource",value:function(e,t){e.querySource=(0,_.map)(function(e){var a=new v.default(e);return t&&a.markDirty(),a},e.querySource),this.details.length>=1&&(this.details[1]=e)}},{key:"deleteCalculatedField",value:function(e){var t=(this.details[1]||{}).querySource[0].fields;t=(0,_.remove)(function(t){return t.id===e.id},t),(0,_.isEmpty)(t)?this.details.splice(1,1):this.details[1].querySource[0].fields=t}},{key:"updateSelectedItemNodes",value:function(e,t){var a=this;this.selectedItemNodes=[],this.selectedTree.forEach(function(e){e.querySource.forEach(function(e){e.selected&&a.selectedItemNodes.push(e)})}),this.selectedItemNodes=(0,S.parseToTree)(this.selectedItemNodes,y.default.SELECTED_DATA_SOURCE_TREE_MAP)}},{key:"hasDynamicStore",value:function(){return(0,_.flow)((0,_.flatMap)(function(e){return e.querySource?e.querySource.slice():[]}),(0,_.filter)("isDynamic"),(0,_.negate)(_.isEmpty))(this.selectedTree)}},{key:"getSelectedItems",value:function(e){var t=[];return(0,_.forEach)(function(e){(0,_.forEach)(function(a){if(a.selected){var r=(0,_.filter)(function(e){var t=(0,_.isEmpty)(e.extendedProperties)?{}:JSON.parse(e.extendedProperties);return!(0,_.isEmpty)(t)&&t.PrimaryKey},a.fields);t.push({aliasId:a.aliasId,querySourceId:a.id,querySourceName:a.name,selected:!0,categoryId:e.id,primaryFields:r})}},e.querySource)},e),t}},{key:"getSelectedQuerySources",value:function(){return(0,_.flow)((0,_.flatMap)(function(e){return e.querySource.slice()}),(0,_.filter)("selected"))(this.selectedTree)}},{key:"isAnotherCalculatedFieldUse",value:function(e){return(0,_.some)(function(t){return t.id!==e.id&&t.expression.indexOf("["+e.name+"]")>-1},this.calculatedFields)}},{key:"populateDataForCalculatedFields",value:function(e){var t=this;(0,_.forEach)(function(e){var a=(0,_.find)(function(t){return t.name===e.name},t.calculatedFields);a&&(a.id=e.id)},e),this.cleanCalculatedFieldDirty()}},{key:"hasLoadDataSource",get:function(){return this.loadedDataSource}},{key:"filterSource",get:function(){var e=(0,_.toLower)(this.filterText),t=new RegExp((0,_.escapeRegExp)(e),"ig"),a=this.relationItemIds;return(0,_.forEach)(function(r){r.querySource&&(0,_.forEach)(function(t){var a=(0,_.filter)(function(t){return(0,_.toLower)(t.name).indexOf(e)>-1},t.fields);t.filterFields=a},r.querySource);var n=r.querySource&&(0,_.filter)(function(e){return(e.filterFields&&e.filterFields.length||e.name.search(t)>-1)&&(a.indexOf(e.id)>-1||0===a.length)},r.querySource);r.filterQuerySource=n},this.details),(0,_.filter)(function(e){return e.filterQuerySource&&e.filterQuerySource.length>0},this.details)}},{key:"showAllowNull",get:function(){var e=0;return(0,_.forEach)(function(t){if((e+=(0,_.filter)("selected",t.querySource).length)>1)return!1},this.details),e>1}},{key:"selectedItems",get:function(){return this.getSelectedItems(this.details)}},{key:"isAllDataOjectUncategory",get:function(){var e=(0,_.filter)(function(e){return e.id!==y.default.EMPTY_GUID},this.details);return!((0,_.isEmpty)(this.details)||!(0,_.isEmpty)(e))}},{key:"getItemIsOnlyOne",get:function(){return 1===this.selectedItems.length?this.selectedItems[0]:null}},{key:"parameterFieldIds",get:function(){return(0,_.flow)((0,_.flatMap)(function(e){return(0,E.toJS)(e.querySource)}),(0,_.filter)("selected"),(0,_.flatMap)(function(e){return(0,E.toJS)(e.fields)}),(0,_.filter)("isParameter"),(0,_.filter)("filterable"),(0,_.filter)("visible"),(0,_.filter)({inaccessible:!1}),(0,_.map)((0,_.get)("id")))(this.details)}},{key:"noCategory",get:function(){return 1===this.details.length}},{key:"haveDataObjects",get:function(){return!(0,_.isEmpty)(this.selectedItems)}},{key:"calculatedFields",get:function(){var e=(0,_.find)({name:y.default.CALCULATED_FIELD_NAME},this.details);return e?e.querySource[0].fields:[]}},{key:"flattenQuerySourceIncludeCalculatedField",get:function(){var e=[];return(0,_.forEach)(function(t){(0,_.forEach)(function(t){e=(0,_.concat)(e,t.flattenQuerySource)},t.querySource)},this.details),e}}]),e}(),i=N(n.prototype,"details",[E.observable],{enumerable:!0,initializer:function(){return[]}}),o=N(n.prototype,"filterText",[E.observable],{enumerable:!0,initializer:function(){return""}}),l=N(n.prototype,"loadedDataSource",[E.observable],{enumerable:!0,initializer:function(){return!1}}),s=N(n.prototype,"relationItemIds",[E.observable],{enumerable:!0,initializer:function(){return[]}}),u=N(n.prototype,"isLastPage",[E.observable],{enumerable:!0,initializer:function(){return!1}}),d=N(n.prototype,"displayData",[E.observable],{enumerable:!0,initializer:function(){return[]}}),c=N(n.prototype,"selectedTree",[E.observable],{enumerable:!0,initializer:function(){return[]}}),p=N(n.prototype,"selectedItemNodes",[E.observable],{enumerable:!0,initializer:function(){return[]}}),N(n.prototype,"hasLoadDataSource",[E.computed],(0,h.default)(n.prototype,"hasLoadDataSource"),n.prototype),N(n.prototype,"filterSource",[E.computed],(0,h.default)(n.prototype,"filterSource"),n.prototype),N(n.prototype,"showAllowNull",[E.computed],(0,h.default)(n.prototype,"showAllowNull"),n.prototype),N(n.prototype,"selectedItems",[E.computed],(0,h.default)(n.prototype,"selectedItems"),n.prototype),N(n.prototype,"isAllDataOjectUncategory",[E.computed],(0,h.default)(n.prototype,"isAllDataOjectUncategory"),n.prototype),N(n.prototype,"getItemIsOnlyOne",[E.computed],(0,h.default)(n.prototype,"getItemIsOnlyOne"),n.prototype),N(n.prototype,"parameterFieldIds",[E.computed],(0,h.default)(n.prototype,"parameterFieldIds"),n.prototype),N(n.prototype,"noCategory",[E.computed],(0,h.default)(n.prototype,"noCategory"),n.prototype),N(n.prototype,"haveDataObjects",[E.computed],(0,h.default)(n.prototype,"haveDataObjects"),n.prototype),N(n.prototype,"calculatedFields",[E.computed],(0,h.default)(n.prototype,"calculatedFields"),n.prototype),N(n.prototype,"flattenQuerySourceIncludeCalculatedField",[E.computed],(0,h.default)(n.prototype,"flattenQuerySourceIncludeCalculatedField"),n.prototype),N(n.prototype,"cleanDirty",[E.action],(0,h.default)(n.prototype,"cleanDirty"),n.prototype),N(n.prototype,"cleanCalculatedFieldDirty",[E.action],(0,h.default)(n.prototype,"cleanCalculatedFieldDirty"),n.prototype),N(n.prototype,"getDataTreeItems",[E.action],(0,h.default)(n.prototype,"getDataTreeItems"),n.prototype),N(n.prototype,"showRelationship",[E.action],(0,h.default)(n.prototype,"showRelationship"),n.prototype),N(n.prototype,"readDataSource",[E.action],(0,h.default)(n.prototype,"readDataSource"),n.prototype),N(n.prototype,"readCalculatedDataSource",[E.action],(0,h.default)(n.prototype,"readCalculatedDataSource"),n.prototype),N(n.prototype,"deleteCalculatedField",[E.action],(0,h.default)(n.prototype,"deleteCalculatedField"),n.prototype),N(n.prototype,"updateSelectedItemNodes",[E.action],(0,h.default)(n.prototype,"updateSelectedItemNodes"),n.prototype),N(n.prototype,"populateDataForCalculatedFields",[E.action],(0,h.default)(n.prototype,"populateDataForCalculatedFields"),n.prototype),r=n))||r;t.default=A,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(14)),n=o(a(0)),i=o(a(10));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.className,a=e.title;return n.default.createElement("label",{className:(0,i.default)(["custom-checkbox",t])},n.default.createElement("input",(0,r.default)({type:"checkbox"},e)),n.default.createElement("span",{className:"fontello-icon"},a))},e.exports=t.default},,function(e,t,a){"use strict";!function(){var t=a(5).action,r=a(5).extendObservable;function n(e,t,a,n,i,o,l,s){this.id=e,this.autoSize=l,this.isLoading=s,r(this,{gridLeft:t,gridTop:a,gridWidth:n,gridHeight:i,pxTop:0,pxLeft:0,pxWidth:0,pxHeight:0,isFullSize:o,isMoving:!1,isResizing:!1,isInteracting:function(){return this.isResizing||this.isMoving},needAnimation:!1})}n.prototype.moving=t(function(e){this.isMoving=e}),n.prototype.resizing=t(function(e){this.isResizing=e}),n.prototype.animating=t(function(e){this.needAnimation=e}),n.prototype.getPxPosition=function(){return{top:this.pxTop,left:this.pxLeft,width:this.pxWidth,height:this.pxHeight}},n.prototype.updatePosition=t(function(e){this.pxTop=e.top,this.pxLeft=e.left,(!this.autoSize||0===this.pxWidth)&&(this.pxWidth=e.width),(!this.autoSize||0===this.pxHeight)&&(this.pxHeight=e.height)}),n.prototype.updateGridPosition=t(function(e){this.gridTop=e.top,this.gridLeft=e.left,this.gridWidth=e.width,this.gridHeight=e.height}),n.prototype.updateActualSize=t(function(e,t){this.pxWidth=e,this.pxHeight=t}),n.prototype.copy=t(function(e){var t,a;this.animating((a=e,(t=this).gridLeft!==a.gridLeft||t.gridTop!==a.gridTop||t.gridWidth!==a.gridWidth||t.gridHeight!==a.gridHeight||t.isFullSize!==a.isFullSize||t.autoSize!==a.autoSize)),this.isFullSize=e.isFullSize,this.autoSize=e.autoSize,this.gridLeft=e.gridLeft,this.gridTop=e.gridTop,this.gridWidth=e.gridWidth,this.gridHeight=e.gridHeight,this.isLoading=e.isLoading}),n.prototype.clone=function(){return{id:this.id,isFullSize:this.isFullSize,autoSize:this.autoSize,gridLeft:this.gridLeft,gridTop:this.gridTop,gridWidth:this.gridWidth,gridHeight:this.gridHeight,pxTop:this.pxTop,pxLeft:this.pxLeft,pxWidth:this.pxWidth,pxHeight:this.pxHeight,isLoading:this.isLoading}},e.exports=n}()},function(e,t,a){"use strict";(function(t){var r,n;r={title:"",component:"FormatItemPropsContainer",props:{reportDesignerModel:"reportDesignerModel",fieldStore:"fieldStore"},fields:{}},n={FormatItemPropsContainer:a(2208)},e.exports=function(e,a,i){return t(!!a,"reportDesignerModel must be set"),{definedSchema:r,widgets:n,source:{},mappingProps:{reportDesignerModel:a,fieldStore:i},mappingSource:{},onChangeValue:function(e){}}}}).call(t,a(42))},function(e,t,a){"use strict";e.exports={sourceOptions:{beginDrag:function(e){var t=e.subItem||{};return{type:t.value,defaultWidth:t.width,defaultHeight:t.height}}},targetOptions:{drop:function(e,t,a){if(!t.didDrop()){var r=t.getItem();r&&e.onDrop&&e.onDrop(r)}},canAccess:function(e){return!!e}}}},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g;r=a(9),n=a(0),i=a(24),o=a(239),l=a(702),s=o.wrapper(a(19)),u=o.wrapper(a(681)),d=a(15),c=a(28),p=a(57),f=a(1199),h=a(12),m=[{name:"formatItemProps",getDefinedSchema:l}],g=r.observer(function(e){var t=e.store||{},a=e.viewMode,r=e.afterToggled,o=t.model||{},l=o.reportTitleDescription,g=l.formatItems,E=g[0],y=g[1],v={title:h.getText("REPORTDESIGNER_TOOLTIP_REPORT_TITLE_AND_DESCRIPTION"),icon:"icon-toggle-thick"},T=function(t){o.updateFormatItem&&o.updateFormatItem(t,l.name),e.onClick&&e.onClick()},_=function(e){E.updateValueByKey("value",e)},S=function(e){y.updateValueByKey("value",e)},C=function(){var e=f.getStyle(E),t=f.getBackgroundStyle(E);return a?n.createElement("div",{style:e},n.createElement("span",{style:t},E.value)):n.createElement(d.Row,null,n.createElement(d.Col,{cols:"3"},n.createElement(p,null,h.getText("COMMON_LABEL_TITLE"))),n.createElement(d.Col,{cols:"9"},n.createElement(s,{className:"form-control",itemData:E,propsEditors:m,onClick:T.bind(this,E),value:E.value,onChange:i.notifyChange(_,i.INPUT)})))}.bind(this),b=function(){var e=f.getStyle(y),t=f.getBackgroundStyle(y);return a?n.createElement("div",{style:e},n.createElement("span",{style:t},y.value)):n.createElement(d.Row,null,n.createElement(d.Col,{cols:"3"},n.createElement(p,null,h.getText("COMMON_LABEL_DESCRIPTION"))),n.createElement(d.Col,{cols:"9"},n.createElement(u,{itemData:y,className:"form-control",propsEditors:m,onClick:T.bind(this,y),value:y.value,onChange:i.notifyChange(S,i.INPUT)})))}.bind(this);return a?n.createElement("div",{className:"report-format-element u_paddingAll"},C(),b()):n.createElement(c,{header:v,afterToggled:r,collapsible:!0,initState:!0,className:"report-format-element",ref:"reportElement"},n.createElement(d,{className:"u_paddingAll"},C(),b()))}),e.exports=g},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b,N,A,R,O,I,D,P,L,M,F,k,x,w,B,U,z,V,G,H,Y,j,K,W,q,Q,X,J,Z,$,ee,te,ae,re,ne,ie,oe,le,se,ue,de,ce,pe,fe=Se(a(17)),he=Se(a(23)),me=Se(a(2)),ge=Se(a(3)),Ee=a(5),ye=a(18),ve=Se(a(1200)),Te=Se(a(53)),_e=a(1);function Se(e){return e&&e.__esModule?e:{default:e}}function Ce(e,t,a,r){a&&(0,fe.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function be(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Ne=(r=(0,Ee.action)("populateData"),n=(0,Ee.action)("cleanDirty"),i=(0,Ee.action)("setJoinDataSourceCategory"),o=(0,Ee.action)("resetKeyJoinCategory"),l=(0,Ee.action)("resetKeyJoinDataObject"),s=(0,Ee.action)("setForeignDataSourceCategory"),u=(0,Ee.action)("setJoinQuerySource"),d=(0,Ee.action)("setForeignQuerySource"),c=(0,Ee.action)("setJoinField"),p=(0,Ee.action)("setForeignField"),f=(0,Ee.action)("setDefaultValueByQuerySource"),h=(0,Ee.action)("addNewKeyJoin"),m=(0,Ee.action)("copyKeyJoin"),g=(0,Ee.action)("updateState"),E=(0,Ee.action)("setAlias"),y=(0,Ee.action)("updateRelationshipItem"),v=(0,Ee.action)("newId"),T=(0,Ee.action)("cloneRelationship"),_=(0,Ee.action)("reindexKeyJoinsPosition"),S=(0,Ee.action)("updateJoinType"),C=(0,Ee.action)("clearKeyJoin"),b=(0,Ee.action)("createDataForCopying"),N=(0,Ee.action)("setComparisionOperator"),A=(0,Ee.action)("setComparisionValue"),(0,Te.default)((O=function(){function e(t){(0,me.default)(this,e),Ce(this,"joinConnectionId",I,this),Ce(this,"foreignConnectionId",D,this),Ce(this,"joinQuerySourceId",P,this),Ce(this,"joinQuerySourceName",L,this),Ce(this,"joinDataSourceCategoryName",M,this),Ce(this,"joinDataSourceCategoryId",F,this),Ce(this,"foreignDataSourceCategoryName",k,this),Ce(this,"foreignDataSourceCategoryId",x,this),Ce(this,"foreignQuerySourceId",w,this),Ce(this,"foreignQuerySourceName",B,this),Ce(this,"foreignAlias",U,this),Ce(this,"joinFieldId",z,this),Ce(this,"joinFieldName",V,this),Ce(this,"foreignFieldId",G,this),Ce(this,"foreignFieldName",H,this),Ce(this,"alias",Y,this),Ce(this,"aliasTempId",j,this),Ce(this,"systemRelationship",K,this),Ce(this,"joinType",W,this),Ce(this,"parentRelationshipId",q,this),Ce(this,"position",Q,this),Ce(this,"relationshipKeyJoins",X,this),Ce(this,"reportId",J,this),Ce(this,"selectedForeignAlias",Z,this),Ce(this,"isForeignDataObjectAlias",$,this),Ce(this,"id",ee,this),Ce(this,"state",te,this),Ce(this,"validationKey",ae,this),Ce(this,"relationshipPosition",re,this),Ce(this,"needAlias",ne,this),Ce(this,"level",ie,this),Ce(this,"comparisonOperator",oe,this),Ce(this,"comparisonValue",le,this),Ce(this,"hidden",se,this),Ce(this,"invalidAlias",ue,this),Ce(this,"predictionId",de,this),Ce(this,"isPredictionRelation",ce,this),Ce(this,"predictionRelationId",pe,this),this.previousAlias="",this.tempId="",this.hasBeenModified=!1,this.populateData(t||{}),this.cleanDirty()}return(0,ge.default)(e,[{key:"populateData",value:function(e){this.tempId=(0,_e.get)("id",e)||(0,_e.uniqueId)("relationship_"),this.joinConnectionId=(0,_e.getOr)(null,"joinConnectionId",e),this.foreignConnectionId=(0,_e.getOr)(null,"foreignConnectionId",e),this.joinQuerySourceId=(0,_e.getOr)(null,"joinQuerySourceId",e),this.joinQuerySourceName=(0,_e.get)("joinQuerySourceName",e)||"",this.joinDataSourceCategoryName=(0,_e.get)("joinDataSourceCategoryName",e)||"",this.joinDataSourceCategoryId=(0,_e.getOr)(null,"joinDataSourceCategoryId",e),this.foreignDataSourceCategoryName=(0,_e.get)("foreignDataSourceCategoryName",e)||"",this.foreignDataSourceCategoryId=(0,_e.getOr)(null,"foreignDataSourceCategoryId",e),this.foreignQuerySourceId=(0,_e.getOr)(null,"foreignQuerySourceId",e),this.foreignQuerySourceName=(0,_e.get)("foreignQuerySourceName",e)||"",this.foreignAlias=(0,_e.getOr)(null,"foreignAlias",e),this.joinFieldId=(0,_e.getOr)(null,"joinFieldId",e),this.joinFieldName=(0,_e.get)("joinFieldName",e)||"",this.foreignFieldId=(0,_e.getOr)(null,"foreignFieldId",e),this.foreignFieldName=(0,_e.get)("foreignFieldName",e)||"",this.alias=(0,_e.get)("alias",e)||"",this.aliasTempId=(0,_e.get)("aliasTempId",e)||(0,_e.uniqueId)("alias_"),this.systemRelationship=(0,_e.get)("systemRelationship",e)||!1,this.joinType=(0,_e.get)("joinType",e)||"Inner",this.parentRelationshipId=(0,_e.getOr)(null,"parentRelationshipId",e),this.position=(0,_e.getOr)(null,"position",e),this.reportId=(0,_e.getOr)(null,"reportId",e),this.selectedForeignAlias=(0,_e.get)("selectedForeignAlias",e)||"",this.isForeignDataObjectAlias=(0,_e.getOr)(null,"isForeignDataObjectAlias",e),this.id=(0,_e.getOr)(null,"id",e),this.state=(0,_e.isNil)(e.state)?ye.OBJECT_STATE.INSERT:e.state,this.validationKey=(0,_e.get)("id",e)||this.tempId,this.relationshipPosition=(0,_e.get)("relationshipPosition",e)||0,this.needAlias=!!e.alias,this.previousAlias=(0,_e.get)("alias",e)||"",this.level=(0,_e.getOr)(null,"level",e),this.comparisonOperator=(0,_e.get)("comparisonOperator",e)||ye.DEFAULT_COMPARISION_OPERATOR,this.comparisonValue=(0,_e.getOr)(null,"comparisonValue",e),this.predictionId=(0,_e.getOr)(null,"predictionId",e),this.isPredictionRelation=(0,_e.getOr)(!1,"isPredictionRelation",e),this.predictionRelationId=(0,_e.getOr)(null,"predictionRelationId",e),this.populateRelationshipKeyJoins((0,_e.get)("relationshipKeyJoins",e)||[]),this.setModify(!!e.hasBeenModified)}},{key:"populateRelationshipKeyJoins",value:function(e){this.relationshipKeyJoins=[];for(var t=0;t0&&this.relationshipKeyJoins.forEach(function(t){!(0,_e.includes)(t.foreignDataSourceCategoryId,e)&&t.setForeignDataSourceCategory(null),!(0,_e.includes)(t.joinDataSourceCategoryId,e)&&t.setJoinDataSourceCategory(null)})}},{key:"resetKeyJoinDataObject",value:function(){this.displayKeyJoins.length>0&&this.displayKeyJoins.forEach(function(e){e.setJoinQuerySource(null,null),e.setForeignQuerySource(null,null)})}},{key:"setForeignDataSourceCategory",value:function(e){this.foreignDataSourceCategoryId=e,this.setForeignQuerySource(null),this.markDirty()}},{key:"setJoinQuerySource",value:function(e,t){this.joinQuerySourceId=e,this.joinQuerySourceName=t,this.joinFieldId=null,this.resetKeyJoinDataObject()}},{key:"setForeignQuerySource",value:function(e,t,a){this.isForeignDataObjectAlias=!!a,this.selectedForeignAlias=e,this.foreignQuerySourceName=t,this.foreignFieldId=null,this.resetKeyJoinDataObject()}},{key:"setJoinField",value:function(e,t){this.joinFieldId=e,this.joinFieldName=t,this.updateState()}},{key:"setForeignField",value:function(e,t){this.foreignFieldId=e,this.foreignFieldName=t,this.updateState()}},{key:"setDefaultValueByQuerySource",value:function(e,t){if(!(0,_e.isNil)(e)){var a=(0,_e.isEmpty)(e.primaryFields)?null:e.primaryFields[0];this.joinDataSourceCategoryId=e.categoryId,this.foreignDataSourceCategoryId=e.categoryId,this.joinQuerySourceId=e.querySourceId,this.selectedForeignAlias=e.aliasId,this.joinQuerySourceName=e.querySourceName,this.foreignQuerySourceName=e.querySourceName,this.joinFieldId=(0,_e.isEmpty)(a)?null:a.id,this.foreignFieldId=(0,_e.isEmpty)(a)?null:a.id;var r=(0,_e.find)({id:e.categoryId},t);if(r&&this.joinFieldId){var n=(0,_e.find)({aliasId:e.aliasId},r.querySource),i=(0,_e.find)({id:this.joinFieldId},n.fields);this.joinDataSourceCategoryName=r.name,this.foreignDataSourceCategoryName=r.name,this.joinFieldName=i.name,this.foreignFieldName=i.name}}}},{key:"addKeyJoin",value:function(e,t){t?this.relationshipKeyJoins.splice(t,0,e):this.relationshipKeyJoins.push(e)}},{key:"addNewKeyJoin",value:function(e){var t=new ve.default;t.setParentId(this.tempId),e&&(t.setJoinDataSourceCategory(ye.EMPTY_GUID),t.setForeignDataSourceCategory(ye.EMPTY_GUID)),this.addKeyJoin(t),this.reindexKeyJoinsPosition()}},{key:"copyKeyJoin",value:function(e){var t=e.clone(),a=(0,_e.findIndex)({tempId:e.tempId},this.relationshipKeyJoins);this.addKeyJoin(t,a+1),this.reindexKeyJoinsPosition()}},{key:"delete",value:function(){this.state=ye.OBJECT_STATE.DELETE}},{key:"setState",value:function(e){this.state=e}},{key:"setModify",value:function(e){this.hasBeenModified=e}},{key:"updateState",value:function(){this.id&&this.setState(ye.OBJECT_STATE.UPDATE),this.markDirty()}},{key:"setAlias",value:function(e){this.alias=e,this.updateState()}},{key:"updateForeignAlias",value:function(e,t,a){this.selectedForeignAlias===e+"_"+a&&(this.selectedForeignAlias=e+"_"+t)}},{key:"updateKeyJoinForeignAlias",value:function(e,t,a){(0,_e.forEach)(function(r){r.updateAlias(e,a,t)},this.relationshipKeyJoins)}},{key:"updateRelationshipItem",value:function(e,t,a){this[e]=t,!a&&this.updateState()}},{key:"getId",value:function(){return this.id||this.tempId}},{key:"newId",value:function(){this.id=null,this.tempId=this.validationKey=(0,_e.uniqueId)("relationship_")}},{key:"setRelationshipPosition",value:function(e){this.relationshipPosition=e}},{key:"setHidden",value:function(e){this.hidden=e}},{key:"cloneRelationship",value:function(){var e=(0,Ee.toJS)(this),t=(0,_e.cloneDeep)(e),a=(0,_e.cloneDeep)((0,Ee.toJS)(e.relationshipKeyJoins));return t.relationshipKeyJoins=[],(0,_e.placeholder)(a).forEach(function(e){t.relationshipKeyJoins.push(new ve.default(e))}),t}},{key:"deleteKeyJoin",value:function(e){(0,_e.isEmpty)(e.id)?this.relationshipKeyJoins.splice(this.relationshipKeyJoins.indexOf(e),1):e.delete()}},{key:"reindexKeyJoinsPosition",value:function(){var e,t=(e=this.level,(0,Ee.action)(function(t,a){t.position=a,t.level=e}));this.relationshipKeyJoins.forEach(t)}},{key:"updateJoinType",value:function(e,t){this[e]=t,this.joinType===ye.JOIN_TYPE_CROSS&&(this.relationshipKeyJoins=[]),this.updateState()}},{key:"clearKeyJoin",value:function(){this.relationshipKeyJoins=[],this.updateState()}},{key:"createDataForCopying",value:function(){this.level++,this.newId(),this.setState(ye.OBJECT_STATE.INSERT),this.generateAliasTempId()}},{key:"setLevel",value:function(e){this.level=e}},{key:"generateAliasTempId",value:function(){this.aliasTempId=(0,_e.uniqueId)("alias_")}},{key:"setComparisionOperator",value:function(e){this.comparisonOperator=e,this.updateState()}},{key:"setComparisionValue",value:function(e){this.comparisonValue=e,this.updateState()}},{key:"displayKeyJoins",get:function(){return(0,_e.filter)({deleted:!1},this.relationshipKeyJoins)}},{key:"deleted",get:function(){return this.state===ye.OBJECT_STATE.DELETE}},{key:"isJoinQuerySourceReady",get:function(){return!(0,_e.isEmpty)(this.joinDataSourceCategoryId)}},{key:"isforeignQuerySourceReady",get:function(){return!(0,_e.isEmpty)(this.foreignDataSourceCategoryId)}},{key:"isJoinFieldReady",get:function(){return!(0,_e.isEmpty)(this.joinQuerySourceId)}},{key:"isForeignFieldReady",get:function(){return!(0,_e.isEmpty)(this.selectedForeignAlias)}},{key:"keyJoinCount",get:function(){return(0,_e.filter)(function(e){return e.state!==ye.OBJECT_STATE.DELETE},this.relationshipKeyJoins.slice()).length}},{key:"originalAliasId",get:function(){if(this.selectedForeignAlias&&this.selectedForeignAlias.indexOf("_")>=0){var e=this.selectedForeignAlias.indexOf("_");return this.selectedForeignAlias.substring(0,e)}return this.selectedForeignAlias}}]),e}(),I=be(O.prototype,"joinConnectionId",[Ee.observable],{enumerable:!0,initializer:null}),D=be(O.prototype,"foreignConnectionId",[Ee.observable],{enumerable:!0,initializer:null}),P=be(O.prototype,"joinQuerySourceId",[Ee.observable],{enumerable:!0,initializer:null}),L=be(O.prototype,"joinQuerySourceName",[Ee.observable],{enumerable:!0,initializer:null}),M=be(O.prototype,"joinDataSourceCategoryName",[Ee.observable],{enumerable:!0,initializer:null}),F=be(O.prototype,"joinDataSourceCategoryId",[Ee.observable],{enumerable:!0,initializer:null}),k=be(O.prototype,"foreignDataSourceCategoryName",[Ee.observable],{enumerable:!0,initializer:null}),x=be(O.prototype,"foreignDataSourceCategoryId",[Ee.observable],{enumerable:!0,initializer:null}),w=be(O.prototype,"foreignQuerySourceId",[Ee.observable],{enumerable:!0,initializer:null}),B=be(O.prototype,"foreignQuerySourceName",[Ee.observable],{enumerable:!0,initializer:null}),U=be(O.prototype,"foreignAlias",[Ee.observable],{enumerable:!0,initializer:null}),z=be(O.prototype,"joinFieldId",[Ee.observable],{enumerable:!0,initializer:null}),V=be(O.prototype,"joinFieldName",[Ee.observable],{enumerable:!0,initializer:null}),G=be(O.prototype,"foreignFieldId",[Ee.observable],{enumerable:!0,initializer:null}),H=be(O.prototype,"foreignFieldName",[Ee.observable],{enumerable:!0,initializer:null}),Y=be(O.prototype,"alias",[Ee.observable],{enumerable:!0,initializer:null}),j=be(O.prototype,"aliasTempId",[Ee.observable],{enumerable:!0,initializer:null}),K=be(O.prototype,"systemRelationship",[Ee.observable],{enumerable:!0,initializer:null}),W=be(O.prototype,"joinType",[Ee.observable],{enumerable:!0,initializer:null}),q=be(O.prototype,"parentRelationshipId",[Ee.observable],{enumerable:!0,initializer:null}),Q=be(O.prototype,"position",[Ee.observable],{enumerable:!0,initializer:null}),X=be(O.prototype,"relationshipKeyJoins",[Ee.observable],{enumerable:!0,initializer:null}),J=be(O.prototype,"reportId",[Ee.observable],{enumerable:!0,initializer:null}),Z=be(O.prototype,"selectedForeignAlias",[Ee.observable],{enumerable:!0,initializer:null}),$=be(O.prototype,"isForeignDataObjectAlias",[Ee.observable],{enumerable:!0,initializer:null}),ee=be(O.prototype,"id",[Ee.observable],{enumerable:!0,initializer:null}),te=be(O.prototype,"state",[Ee.observable],{enumerable:!0,initializer:null}),ae=be(O.prototype,"validationKey",[Ee.observable],{enumerable:!0,initializer:null}),re=be(O.prototype,"relationshipPosition",[Ee.observable],{enumerable:!0,initializer:null}),ne=be(O.prototype,"needAlias",[Ee.observable],{enumerable:!0,initializer:null}),ie=be(O.prototype,"level",[Ee.observable],{enumerable:!0,initializer:null}),oe=be(O.prototype,"comparisonOperator",[Ee.observable],{enumerable:!0,initializer:null}),le=be(O.prototype,"comparisonValue",[Ee.observable],{enumerable:!0,initializer:null}),se=be(O.prototype,"hidden",[Ee.observable],{enumerable:!0,initializer:function(){return!1}}),ue=be(O.prototype,"invalidAlias",[Ee.observable],{enumerable:!0,initializer:null}),de=be(O.prototype,"predictionId",[Ee.observable],{enumerable:!0,initializer:null}),ce=be(O.prototype,"isPredictionRelation",[Ee.observable],{enumerable:!0,initializer:null}),pe=be(O.prototype,"predictionRelationId",[Ee.observable],{enumerable:!0,initializer:null}),be(O.prototype,"displayKeyJoins",[Ee.computed],(0,he.default)(O.prototype,"displayKeyJoins"),O.prototype),be(O.prototype,"deleted",[Ee.computed],(0,he.default)(O.prototype,"deleted"),O.prototype),be(O.prototype,"isJoinQuerySourceReady",[Ee.computed],(0,he.default)(O.prototype,"isJoinQuerySourceReady"),O.prototype),be(O.prototype,"isforeignQuerySourceReady",[Ee.computed],(0,he.default)(O.prototype,"isforeignQuerySourceReady"),O.prototype),be(O.prototype,"isJoinFieldReady",[Ee.computed],(0,he.default)(O.prototype,"isJoinFieldReady"),O.prototype),be(O.prototype,"isForeignFieldReady",[Ee.computed],(0,he.default)(O.prototype,"isForeignFieldReady"),O.prototype),be(O.prototype,"keyJoinCount",[Ee.computed],(0,he.default)(O.prototype,"keyJoinCount"),O.prototype),be(O.prototype,"originalAliasId",[Ee.computed],(0,he.default)(O.prototype,"originalAliasId"),O.prototype),be(O.prototype,"populateData",[r],(0,he.default)(O.prototype,"populateData"),O.prototype),be(O.prototype,"cleanDirty",[n],(0,he.default)(O.prototype,"cleanDirty"),O.prototype),be(O.prototype,"setJoinDataSourceCategory",[i],(0,he.default)(O.prototype,"setJoinDataSourceCategory"),O.prototype),be(O.prototype,"resetKeyJoinCategory",[o],(0,he.default)(O.prototype,"resetKeyJoinCategory"),O.prototype),be(O.prototype,"resetKeyJoinDataObject",[l],(0,he.default)(O.prototype,"resetKeyJoinDataObject"),O.prototype),be(O.prototype,"setForeignDataSourceCategory",[s],(0,he.default)(O.prototype,"setForeignDataSourceCategory"),O.prototype),be(O.prototype,"setJoinQuerySource",[u],(0,he.default)(O.prototype,"setJoinQuerySource"),O.prototype),be(O.prototype,"setForeignQuerySource",[d],(0,he.default)(O.prototype,"setForeignQuerySource"),O.prototype),be(O.prototype,"setJoinField",[c],(0,he.default)(O.prototype,"setJoinField"),O.prototype),be(O.prototype,"setForeignField",[p],(0,he.default)(O.prototype,"setForeignField"),O.prototype),be(O.prototype,"setDefaultValueByQuerySource",[f],(0,he.default)(O.prototype,"setDefaultValueByQuerySource"),O.prototype),be(O.prototype,"addNewKeyJoin",[h],(0,he.default)(O.prototype,"addNewKeyJoin"),O.prototype),be(O.prototype,"copyKeyJoin",[m],(0,he.default)(O.prototype,"copyKeyJoin"),O.prototype),be(O.prototype,"updateState",[g],(0,he.default)(O.prototype,"updateState"),O.prototype),be(O.prototype,"setAlias",[E],(0,he.default)(O.prototype,"setAlias"),O.prototype),be(O.prototype,"updateKeyJoinForeignAlias",[Ee.action],(0,he.default)(O.prototype,"updateKeyJoinForeignAlias"),O.prototype),be(O.prototype,"updateRelationshipItem",[y],(0,he.default)(O.prototype,"updateRelationshipItem"),O.prototype),be(O.prototype,"newId",[v],(0,he.default)(O.prototype,"newId"),O.prototype),be(O.prototype,"cloneRelationship",[T],(0,he.default)(O.prototype,"cloneRelationship"),O.prototype),be(O.prototype,"reindexKeyJoinsPosition",[_],(0,he.default)(O.prototype,"reindexKeyJoinsPosition"),O.prototype),be(O.prototype,"updateJoinType",[S],(0,he.default)(O.prototype,"updateJoinType"),O.prototype),be(O.prototype,"clearKeyJoin",[C],(0,he.default)(O.prototype,"clearKeyJoin"),O.prototype),be(O.prototype,"createDataForCopying",[b],(0,he.default)(O.prototype,"createDataForCopying"),O.prototype),be(O.prototype,"setComparisionOperator",[N],(0,he.default)(O.prototype,"setComparisionOperator"),O.prototype),be(O.prototype,"setComparisionValue",[A],(0,he.default)(O.prototype,"setComparisionValue"),O.prototype),R=O))||R);t.default=Ne,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(1);a(18);t.default={getAvailableQuerySources:function(e){return(0,r.isEmpty)(e)?[]:(0,r.flow)(r.head,(0,r.get)("querySource"))(e)},haveSelectedAtLeastOneQuerySource:function(e){return(0,r.some)(function(e){return(0,r.some)(function(e){return e.selected},e.querySource)},e)},getSelectedQuerySources:function(e){var t=[];return e.forEach(function(e){e.querySource.forEach(function(a){if(a.selected){var n=(0,r.filter)(function(e){var t=(0,r.isEmpty)(e.extendedProperties)?{}:JSON.parse(e.extendedProperties);return!(0,r.isEmpty)(t)&&t.PrimaryKey},a.fields);t.push({aliasId:a.aliasId,querySourceId:a.id,querySourceName:a.name,selected:!0,categoryId:e.id,primaryFields:n})}})}),t}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p=b(a(17)),f=b(a(23)),h=b(a(2)),m=b(a(3)),g=a(5),E=a(1),y=a(102),v=a(68),T=b(a(53)),_=b(a(33)),S=b(a(16)),C=a(123);function b(e){return e&&e.__esModule?e:{default:e}}function N(e,t,a,r){a&&(0,p.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function A(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}a(60);var R=(0,T.default)((n=function(){function e(t,a){(0,h.default)(this,e),N(this,"fieldDetails",i,this),N(this,"commonData",o,this),N(this,"selectedOperatorId",l,this),N(this,"operatorSourceInfo",s,this),N(this,"operatorSourceDisplay",u,this),N(this,"populatedData",d,this),N(this,"isValueChangeFromPopup",c,this),this.markUpdateResult=a,t&&((0,E.isUndefined)(t.markUpdateResult)&&(t.markUpdateResult=a),this.setFieldDetails(t)),this.resetDirty()}return(0,m.default)(e,[{key:"filterValue",get:function(){return this.parseFilterValue(this.fieldDetails.value,!0)}},{key:"operatorGroup",get:function(){var e=this.fieldDetails&&this.fieldDetails.dataType||"",t=(0,E.concat)(y.OPERATER_BY_DATA_TYPE[e.toLowerCase()],[y.OPERATOR_GROUP.UNKNOWN]);return this.commonData.operatorGroup.filter(function(e){var a=e.key;return t.indexOf(a)>-1})}},{key:"availableOperatorGroup",get:function(){return this.fieldDetails.isPredicated?this.operatorGroup.filter(function(e){var t=e.key;return y.OPERATOR_GROUP.FIELDCOMPARISON!==t}):this.fieldDetails.isParameter?this.operatorGroup.filter(function(e){var t=e.key;return!(0,E.includes)((0,E.lowerCase)(t),[y.OPERATOR_GROUP.COMPARISON,y.OPERATOR_GROUP.FIELDCOMPARISON,y.OPERATOR_GROUP.STRING])}):this.operatorGroup}},{key:"operators",get:function(){return(0,E.get)("group.filterOperators",this.filterInfo)}},{key:"operatorSourceValue",get:function(){return this.operatorSourceInfo.data}},{key:"isUpdateSource",get:function(){return this.filterInfo.sourceType!==this.operatorSourceInfo.sourceType}},{key:"filterInfo",get:function(){var e=this.getGroupAndOperatorByOperatorId(this.fieldDetails.operatorId)||{},t=e.group,a=e.operator;return{groupId:t&&t.id,group:t,operatorId:a&&a.id,operator:a,value:this.filterValue,sourceType:e.sourceTypeByGroup}}},{key:"sourceFieldName",get:function(){return this.fieldDetails.sourceFieldName}},{key:"doesSupportDataSourceLazyLoading",get:function(){return(0,E.contains)(this.filterInfo.sourceType,["dataSource","dataSourceTree"])}}]),(0,m.default)(e,[{key:"checkDirty",value:function(){return this.isDirty}},{key:"cleanDirty",value:function(){this.resetDirty()}},{key:"populateOperatorGroup",value:function(e){this.commonData.operatorGroup=e}},{key:"parseFilterValue",value:function(e,t){return t?(e=e||"")&&e.split(";#")||[]:(e=e||[],(0,E.isEqual)((0,E.compact)(e),[])?"":e.join(";#"))}},{key:"setFilterValue",value:function(e){e=(0,E.isArray)(e)?e:[e],e=this.parseFilterValue(e,!1),this.fieldDetails&&this.fieldDetails.updateByKey("value",e)}},{key:"setIsValueChangeFromPopup",value:function(e){this.isValueChangeFromPopup=e}},{key:"updateFilterValue",value:function(e,t,a,r,n,i){if(a)return this.updateCommonFilterValue(e,t,r,n,i);r=(0,E.isArray)(r)?r:[r],r=this.parseFilterValue(r,!1),this.fieldDetails&&this.fieldDetails.updateByKey("value",r);var o=(0,E.find)(function(e){return(0,E.isEqual)(e.filterFieldId,t)},e.subscriptionFilterFields);if((0,E.isNil)(o))e.subscriptionFilterFields.push({filterFieldId:t,value:r,state:v.INSERT,operatorId:n,operatorSetting:i});else{var l=(0,E.indexOf)(o,e.subscriptionFilterFields);e.subscriptionFilterFields[l].operatorId=n,e.subscriptionFilterFields[l].operatorSetting=i,e.subscriptionFilterFields[l].value=r,e.subscriptionFilterFields[l].state!==v.INSERT&&(e.subscriptionFilterFields[l].state=v.UPDATE)}this.markDirty(),this.markUpdateResult&&this.markUpdateResult()}},{key:"updateCommonFilterValue",value:function(e,t,a,r,n){var i=e.subscriptionCommonFilterFields;a=(0,E.isArray)(a)?a:[a],a=this.parseFilterValue(a,!1),this.fieldDetails&&this.fieldDetails.updateByKey("value",a);var o=(0,E.find)(function(e){var a=e.commonFilterFieldId;return(0,E.isEqual)(a,t)},i);if((0,E.isNil)(o))i.push({commonFilterFieldId:t,value:a,state:v.INSERT,operatorId:r,operatorSetting:n});else{var l=(0,E.indexOf)(o,i);i[l].value=a,i[l].state!==v.INSERT&&(i[l].state=v.UPDATE)}this.markDirty(),this.markUpdateResult&&this.markUpdateResult()}},{key:"updateFilterValueToField",value:function(){var e=this.filterInfo;this.setOperatorId(e.operatorId,!1),this.setFilterValue(e.value)}},{key:"getGroupByOperatorId",value:function(e){var t=this.getOperatorById(e);return t&&this.getGroupById(t.operatorGroupId)}},{key:"getGroupById",value:function(e){return(0,E.find)({id:e},this.commonData.operatorGroup)}},{key:"getGroupByKey",value:function(e){return(0,E.find)({key:e},this.commonData.operatorGroup)}},{key:"getOperatorById",value:function(e){return(0,E.flow)((0,E.flatMap)(function(e){var t=e.filterOperators;return(0,g.toJS)(t)}),(0,E.find)({id:e}))(this.commonData.operatorGroup)}},{key:"getOperatorByIndex",value:function(e,t){var a=this.getGroupById(e)||{},r=a.filterOperators||[];return!(y.BLANK_NULL_OPERATOR.indexOf(t)>-1)&&(0,E.find)({id:a.defaultOperatorId},r)||r[0]}},{key:"getValueByKey",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this[e]||this.fieldDetails[e]}},{key:"updateFilterConfig",value:function(e){var t=this,a=this.fieldDetails;(0,g.transaction)(function(){t.selectedOperatorId!==a.operatorId&&(t.setFilterValue([]),a.updateByKey("operatorId",t.selectedOperatorId)),a.updateByKey("alias",e)})}},{key:"getGroupAndOperatorByOperatorId",value:function(e){var t=this.getGroupByOperatorId(e)||{},a=this.getOperatorById(e)||{},r=this.fieldDetails&&this.fieldDetails.dataType||"",n=y.DEFAUFT_OPERATOR_GROUP[r.toLowerCase()],i=void 0;return t.id||(a=(t=this.getGroupByKey(n)||{}).filterOperators&&this.getOperatorByIndex(t.id,r.toLowerCase())),i=y.OPERATOR_VALUE_SOURCE[t.key],{group:t,operator:a,sourceTypeByGroup:i=(0,E.isObject)(i)?i[a.key]:i}}},{key:"getFilterInfoDisplayName",value:function(e,t){var a=this.fieldDetails||{},r=this.filterInfo||{},n=this.filterValue||[],i=a.dataType,o=(0,E.find)({querySourceFieldId:n[0]},this.operatorSourceValue)||{},l=(0,E.find)({id:r.operatorId},this.operators)||{},s=(0,E.includes)(l.name,y.OPERATOR_VALUE_LIST)?l.name:n,u=(0,E.partial)(_.default.applyFormater,[i,(0,E.get)("dataFormat.format",a),E.placeholder,null]);if((0,E.isArray)(s)&&1===s.length&&String.isGuidFormat(s[0])){var d="inTimePeriod"===r.sourceType,c="fieldSource"===r.sourceType;if(d||c){var p=(0,E.flow)((0,E.find)(function(e){return e.operatorSourceInfo.sourceType===r.sourceType}),(0,E.get)("operatorSourceInfo.data"))(t);s=c?(0,E.flow)((0,E.find)({querySourceFieldId:s[0]}),(0,E.get)("sourceFieldName"))(p):(0,E.flow)((0,E.find)({id:s[0]}),(0,E.get)("name"))(p)}else s=o.sourceFieldName}else s=(0,E.isArray)(s)?(0,E.flow)((0,E.filter)((0,E.negate)(E.isEmpty)),(0,E.map)(u),(0,E.join)(", "))(s):u(s);return!(0,E.isEmpty)(s)&&(s=s.replace("[Current User]",S.default.currentUser.userName).replace("[Current Tenant]",S.default.currentUser.tenantDisplayID||"[Current Tenant]").replace(/\[(User|Tenant|Role): (.+?)\]/g,"$2")),(0,E.isEmpty)(a.alias)||(0,E.isNil)(r.operator)?null:((0,E.isFinite)(e)?e:a.position)+" "+a.alias+" "+r.operator.label+" "+s}},{key:"setFieldDetails",value:function(e){e=e||{},this.selectedOperatorId=e.operatorId,this.fieldDetails=e,this.resetOperatorSourceValue()}},{key:"populateOperatorSourceValue",value:function(e,t){var a="fieldSource"===e?(0,E.map)(function(e){return!!e.sourceFieldVisible&&{querySourceFieldId:(0,E.isNil)(e.relationshipId)?e.querySourceFieldId:e.querySourceFieldId+"##"+e.relationshipId,sourceFieldName:e.sourceFieldName,sourceDataObjectName:e.sourceDataObjectName}},t):t;this.operatorSourceInfo.data=(0,E.compact)(a),this.operatorSourceInfo.sourceType=e,this.populatedData=!0}},{key:"populateExistingSourceValue",value:function(e){this.operatorSourceInfo=(0,E.get)("operatorSourceInfo",e)}},{key:"updateOperatorSourceDisplay",value:function(e,t){var a=e.result,r=e.isLastPage;this.operatorSourceDisplay.isLastPage=r,t&&(this.operatorSourceDisplay.data=[]);var n,i,o,l=void 0;return l=this.operatorSourceDisplay.data.length?(0,E.filter)(function(e){return[y.DEFAUFT_VALUE.ALL,y.DEFAUFT_VALUE.BLANK,y.DEFAUFT_VALUE.NULL].indexOf(e.key)>=0},this.operatorSourceDisplay.data):(0,E.filter)(function(e){return[y.DEFAUFT_VALUE.ALL,y.DEFAUFT_VALUE.BLANK,y.DEFAUFT_VALUE.NULL].indexOf(e)>=0},a),(0,C.concatArray)(this.operatorSourceDisplay.data,(n=a,i=this.filterValue,o=1===i.length&&i[0]===y.DEFAUFT_VALUE.ALL,n.map(function(e){return(0,g.observable)({key:e,value:e,label:e,checked:!!o||(0,E.includes)(e,i)})})),"key",!r,l.length),this.operatorSourceDisplay.data}},{key:"resetOperatorSourceDisplay",value:function(){this.operatorSourceDisplay.data=[],this.operatorSourceDisplay.isLastPage=!1}},{key:"resetOperatorSourceValue",value:function(){this.operatorSourceInfo.data=[],this.operatorSourceInfo.sourceType=""}},{key:"setOperatorGroupId",value:function(e){var t=(0,E.getOr)("","dataType",this.fieldDetails),a=this.getOperatorByIndex(e,t.toLowerCase());this.setOperatorId(a&&a.id)}},{key:"setOperatorIdSubscription",value:function(e,t,a,r){var n=r.selectedOperatorId;if(this.selectedOperatorId=n,this.fieldDetails&&this.fieldDetails.updateByKey("operatorId",n),a)return this.setCommonOperatorIdSubscription(e,t,n);var i=(0,E.find)(function(e){return(0,E.isEqual)(e.filterFieldId,t)},e.subscriptionFilterFields);if((0,E.isNil)(i))e.subscriptionFilterFields.push({filterFieldId:t,operatorId:n,state:v.INSERT});else{var o=(0,E.indexOf)(i,e.subscriptionFilterFields);e.subscriptionFilterFields[o].operatorId=n,e.subscriptionFilterFields[o].state!==v.INSERT&&(e.subscriptionFilterFields[o].state=v.UPDATE)}this.setFilterValue([])}},{key:"setCommonOperatorIdSubscription",value:function(e,t,a){var r=e.subscriptionCommonFilterFields;this.selectedOperatorId=a,this.fieldDetails&&this.fieldDetails.updateByKey("operatorId",a);var n=(0,E.find)(function(e){return(0,E.isEqual)(e.commonFilterFieldId,t)},r);if((0,E.isNil)(n))r.push({commonFilterFieldId:t,operatorId:a,state:v.INSERT});else{var i=(0,E.indexOf)(n,r);r[i].operatorId=a,r[i].state!==v.INSERT&&(r[i].state=v.UPDATE)}this.setFilterValue([])}},{key:"setOperatorId",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.selectedOperatorId=e,this.fieldDetails&&this.fieldDetails.updateByKey("operatorId",e);var a=(0,E.get)("operator.name",this.filterInfo);this.fieldDetails.updateByKey("operatorName",a),t&&this.setFilterValue([])}}]),e}(),i=A(n.prototype,"fieldDetails",[g.observable],{enumerable:!0,initializer:function(){return{}}}),o=A(n.prototype,"commonData",[g.observable],{enumerable:!0,initializer:function(){return{operatorGroup:[]}}}),l=A(n.prototype,"selectedOperatorId",[g.observable],{enumerable:!0,initializer:null}),s=A(n.prototype,"operatorSourceInfo",[g.observable],{enumerable:!0,initializer:function(){return{sourceType:"",data:[]}}}),u=A(n.prototype,"operatorSourceDisplay",[g.observable],{enumerable:!0,initializer:function(){return{isLastPage:!1,data:[]}}}),d=A(n.prototype,"populatedData",[g.observable],{enumerable:!0,initializer:function(){return!1}}),c=A(n.prototype,"isValueChangeFromPopup",[g.observable],{enumerable:!0,initializer:function(){return!1}}),A(n.prototype,"filterValue",[g.computed],(0,f.default)(n.prototype,"filterValue"),n.prototype),A(n.prototype,"operatorGroup",[g.computed],(0,f.default)(n.prototype,"operatorGroup"),n.prototype),A(n.prototype,"availableOperatorGroup",[g.computed],(0,f.default)(n.prototype,"availableOperatorGroup"),n.prototype),A(n.prototype,"operators",[g.computed],(0,f.default)(n.prototype,"operators"),n.prototype),A(n.prototype,"operatorSourceValue",[g.computed],(0,f.default)(n.prototype,"operatorSourceValue"),n.prototype),A(n.prototype,"isUpdateSource",[g.computed],(0,f.default)(n.prototype,"isUpdateSource"),n.prototype),A(n.prototype,"filterInfo",[g.computed],(0,f.default)(n.prototype,"filterInfo"),n.prototype),A(n.prototype,"sourceFieldName",[g.computed],(0,f.default)(n.prototype,"sourceFieldName"),n.prototype),A(n.prototype,"doesSupportDataSourceLazyLoading",[g.computed],(0,f.default)(n.prototype,"doesSupportDataSourceLazyLoading"),n.prototype),A(n.prototype,"updateFilterValueToField",[g.action],(0,f.default)(n.prototype,"updateFilterValueToField"),n.prototype),A(n.prototype,"setFieldDetails",[g.action],(0,f.default)(n.prototype,"setFieldDetails"),n.prototype),A(n.prototype,"populateOperatorSourceValue",[g.action],(0,f.default)(n.prototype,"populateOperatorSourceValue"),n.prototype),A(n.prototype,"populateExistingSourceValue",[g.action],(0,f.default)(n.prototype,"populateExistingSourceValue"),n.prototype),A(n.prototype,"updateOperatorSourceDisplay",[g.action],(0,f.default)(n.prototype,"updateOperatorSourceDisplay"),n.prototype),A(n.prototype,"resetOperatorSourceDisplay",[g.action],(0,f.default)(n.prototype,"resetOperatorSourceDisplay"),n.prototype),A(n.prototype,"resetOperatorSourceValue",[g.action],(0,f.default)(n.prototype,"resetOperatorSourceValue"),n.prototype),A(n.prototype,"setOperatorGroupId",[g.action],(0,f.default)(n.prototype,"setOperatorGroupId"),n.prototype),A(n.prototype,"setOperatorIdSubscription",[g.action],(0,f.default)(n.prototype,"setOperatorIdSubscription"),n.prototype),A(n.prototype,"setCommonOperatorIdSubscription",[g.action],(0,f.default)(n.prototype,"setCommonOperatorIdSubscription"),n.prototype),A(n.prototype,"setOperatorId",[g.action],(0,f.default)(n.prototype,"setOperatorId"),n.prototype),r=n))||r;t.default=R,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s;(r=a(1)).get,n=r.some,i=r.max,o=r.map,l=r.isNil,s=function(e,t){var a=e.positionX,r=e.positionX+e.width-1,i=e.positionY,o=e.positionY+e.height-1;return n(function(e){var t=e.positionX,n=e.positionX+e.width-1,l=e.positionY,s=e.positionY+e.height-1;return!(t>r||no||s0){if(!D.isBoolean(e)&&e){var i=a.tenantList.getFilterList()[0];return a.loadTenant(i).then(function(){return n}),null}}else t||a.addTenant();return n})}},{key:"loadGroupingsList",value:function(){var e=this;return v.default.getAllTenantGroups().then(function(t){return e.groupingList.clear(),D.isArray(t)&&e.groupingList.populateData(t),e.groupingList})}},{key:"getModulesOfLicense",value:function(){var e=this;return v.default.getAllModulesOfLicense().then(function(t){return e.modulesOfLicense=t||[],t})}},{key:"setShowingTenant",value:function(e){this.showingTenant&&this.showingTenant.setSelected(!1),e&&(this.showingTenant=e),this.showingTenant.setSelected(!0),this.loadGroupingsList().then(function(e){})}},{key:"setShowingTenantByIndex",value:function(e){var t=this.tenantList.tenantList;this.loadTenant(t[e])}},{key:"addTenant",value:function(){this.showingTenant.setSelected(!1),this.showingTenantCloned.setSelected(!1);var e=D.map("name",this.modulesOfLicense);this.showingTenantCloned=new _.default({tenantModules:e}),this.permissionStore=new N.default(this.showingTenantCloned.permission,null,!0),this.accessStore.updateModel(this.showingTenantCloned.permissionAccessModel),this.accessStore.initialAccessGrid(),this.resetAlertMessage()}},{key:"updateFilterText",value:function(e){this.tenantList.filterText=e,this.tenantList.filterTenants.length>0&&this.setShowingTenant(this.tenantList.filterTenants[0])}},{key:"saveTenant",value:function(){var e=this,t=this.showingTenantCloned,a=this.showingTenantCloned.permissionAccessModel.getAccessForSave();t.permission.updateAccessDefault(a);var r=t.toJson();return v.default.saveTenant(r).then(function(a){return a.success&&(t.isNew?e.getTenantList(!1).then(function(){var t=D.find({id:a.tenant.id},e.tenantList.tenantList);t&&e.loadTenant(t)}):(e.showingTenant.populateData(a.tenant),e.loadTenant(e.showingTenant)),e.showingTenantCloned.cleanDirty(),e.showingTenant.updateVersion(),e.accessStore.updateAccessOrigin(e.showingTenantCloned.permission.access.accessDefaults.value)),a}).then(function(t){return e.alertMessage={type:t.success?"success":"error",message:t.success?O.default.getText("COMMON_MESSAGES_DETAILS_WERE_SAVED"):t.messages[0].messages||null},t.messages}).then(function(t){return new m.default(function(a){e.loadGroupingsList().then(function(){return a(t)})})})}},{key:"deleteTenant",value:function(e){var t=this,a=D.findIndex({id:e},this.tenantList.tenantList),r=(0,y.action)(function(){var e=t.tenantList.tenantList;e.length>0&&(a>=e.length&&(a=e.length-1),t.setShowingTenantByIndex(a))});return v.default.deleteTenant(e).then(function(e){return e.success?(t.getTenantList().then(r),(0,h.resolve)(!0)):e})}},{key:"activeTenant",value:function(e){return e.setActive(!0),this.showingTenant===e&&this.setTenantStatus(e,!0),v.default.activeTenant(e.id)}},{key:"setTenantStatus",value:function(e,t){e&&(this.showingTenant=e),this.showingTenant.setActive(t),this.cloneTenantDetail()}},{key:"deactiveTenant",value:function(e){return e.setActive(!1),this.showingTenant===e&&this.setTenantStatus(e,!1),v.default.deactiveTenant(e.id)}},{key:"getBundle",value:function(){return C.default}},{key:"setAlertMessage",value:function(e,t){this.alertMessage={type:e,message:t}}},{key:"resetAlertMessage",value:function(){this.alertMessage=b.default.EMPTY_MESSAGE}},{key:"cloneTenantDetail",value:function(){this.showingTenantCloned=new _.default(D.cloneDeep((0,y.toJS)(this.showingTenant)))}},{key:"loadTenant",value:function(e){var t=this,a=(0,y.action)(function(a){return e.populateData(a),t.setShowingTenant(e),t.cloneTenantDetail(),t.permissionStore=new N.default(t.showingTenantCloned.permission,e.id,!0),t.accessStore.updateModel(t.showingTenantCloned.permissionAccessModel),t.accessStore.initialAccessGrid(a.permission.access.accessDefaults.value),(0,h.resolve)()});return v.default.loadTenant(e.id).then(a)}},{key:"validateAccesses",value:function(){var e=this.showingTenantCloned.permissionAccessModel.getAccessForSave(!0);return T.default.validateAccesses(e)}}],[{key:"getTenantGroupsHierarchy",value:function(){var e=(0,f.default)(p.default.mark(function e(t){var a,r,n,i,o;return p.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=I.default.currentUser,r=L.default.PERMISSION_KEY,n=new M.default,i=n.checkPrivileges([r.TenantSetupActionsCreate,r.TenantSetupActionsEdit,r.TenantSetupActionsDel],L.default.PERMISSION_OPERATOR.Or),!(a.systemAdmin||a.isSystemUser&&i)){e.next=11;break}return e.next=8,v.default.getTenantGroupsHierarchy();case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=null;case 12:if((o=e.t0)&&D.isArray(o)){e.next=15;break}return e.abrupt("return",[]);case 15:return e.abrupt("return",D.flow(D.sortBy(["tenantGroupName"]),D.groupBy("tenantGroupName"),D.toPairs,D.map(function(e){var a=D.getOr(P.EMPTY_GUID,"[1][0].tenantGroupId",e),r=a!==P.EMPTY_GUID&&!!D.find(function(e){return e===a},t||[]);return{checked:r,disabled:r,tenantGroupId:a,tenantGroupName:e[0]||O.default.getText("COMMON_LABEL_UNCATEGORIZED"),tenantGroupItems:D.map(function(e){var a=D.getOr(P.EMPTY_GUID,"tenantId",e),n=a!==P.EMPTY_GUID&&(r||!!D.find(function(e){return e===a},t));return D.defaults(e,{checked:n,disabled:n})},e[1]||[])}}))(o));case 16:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),e}(),n=x(r.prototype,"showingTenantCloned",[y.observable],{enumerable:!0,initializer:function(){return{}}}),i=x(r.prototype,"showingTenant",[y.observable],{enumerable:!0,initializer:function(){return new _.default}}),o=x(r.prototype,"tenantList",[y.observable],{enumerable:!0,initializer:function(){return new S.default}}),l=x(r.prototype,"modulesOfLicense",[y.observable],{enumerable:!0,initializer:function(){return[]}}),s=x(r.prototype,"alertMessage",[y.observable],{enumerable:!0,initializer:function(){return""}}),u=x(r.prototype,"groupingList",[y.observable],{enumerable:!0,initializer:function(){return new R.default}}),x(r.prototype,"getTenantList",[y.action],(0,c.default)(r.prototype,"getTenantList"),r.prototype),x(r.prototype,"loadGroupingsList",[y.action],(0,c.default)(r.prototype,"loadGroupingsList"),r.prototype),x(r.prototype,"setShowingTenant",[y.action],(0,c.default)(r.prototype,"setShowingTenant"),r.prototype),x(r.prototype,"addTenant",[y.action],(0,c.default)(r.prototype,"addTenant"),r.prototype),x(r.prototype,"deleteTenant",[y.action],(0,c.default)(r.prototype,"deleteTenant"),r.prototype),x(r.prototype,"setTenantStatus",[y.action],(0,c.default)(r.prototype,"setTenantStatus"),r.prototype),x(r.prototype,"deactiveTenant",[y.action],(0,c.default)(r.prototype,"deactiveTenant"),r.prototype),x(r.prototype,"loadTenant",[y.action],(0,c.default)(r.prototype,"loadTenant"),r.prototype),r);t.default=w,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S=M(a(17)),C=M(a(23)),b=M(a(2)),N=M(a(3)),A=a(1),R=a(5),O=M(a(53)),I=M(a(336)),D=M(a(258)),P=M(a(401)),L=a(1051);function M(e){return e&&e.__esModule?e:{default:e}}function F(e,t,a,r){a&&(0,S.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function k(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var x=(0,O.default)((_=T=function(){function e(t){(0,b.default)(this,e),F(this,"id",i,this),F(this,"tenantID",o,this),F(this,"name",l,this),F(this,"description",s,this),F(this,"tenantGroups",u,this),F(this,"active",d,this),F(this,"deleted",c,this),F(this,"tenantModules",p,this),F(this,"isSelected",f,this),F(this,"permission",h,this),F(this,"version",m,this),F(this,"created",g,this),F(this,"createdBy",E,this),F(this,"modified",y,this),F(this,"modifiedBy",v,this),this.permissionAccessModel=null,this.permissionAccessModel=new P.default,this.populateData(t||{})}return(0,N.default)(e,[{key:"populateData",value:function(e){this.id=e.id,this.tenantID=e.tenantID,this.name=e.name,this.description=e.description,this.active=!!(0,A.isUndefined)(e.active)||e.active,this.deleted=e.deleted,this.tenantModules=e.tenantModules,this.permission=new D.default(e.permission,!0),this.tenantGroups=e.tenantGroups||[],this.version=e.version||0,this.created=e.created,this.createdBy=e.createdBy,this.modified=e.modified,this.modifiedBy=e.modifiedBy}},{key:"toJson",value:function(){return(0,R.toJS)(this)}},{key:"setDataByKey",value:function(e,t){this[e]=t,this.markDirty()}},{key:"updateModules",value:function(e,t){var a=this.tenantModules=this.tenantModules||[];if(this.markDirty(),t)return!this.hasModule(e)&&a.push(e.name);var r=a.indexOf(e.name);return r>-1&&a.splice(r,1)}},{key:"hasModule",value:function(e){return this.tenantModules&&this.tenantModules.indexOf(e.name)>-1}},{key:"setSelected",value:function(e){return this.isSelected=e}},{key:"setActive",value:function(e){return this.active=e}},{key:"updatePermission",value:function(e){this.permission=e}},{key:"cleanDirty",value:function(){this.resetDirty(),this.permission.cleanDirty(),this.permissionAccessModel.cleanDirty()}},{key:"updateVersion",value:function(){this.version++}},{key:"hasDirty",get:function(){return this.isDirty||this.permission.isDirty||this.permissionAccessModel.checkDirty()}},{key:"displayName",get:function(){return this.tenantID+" - "+this.name}},{key:"isNew",get:function(){return!String.isGuidFormat(this.id)}},{key:"tenantGroup",get:function(){return(0,A.head)(this.tenantGroups)},set:function(e){(0,R.isObservableArray)(this.tenantGroups)?this.tenantGroups.clear():this.tenantGroups=[],(0,L.isNil)(e)||this.tenantGroups.push(e)}}]),e}(),T.constraints={tenantID:I.default.TENANT_ID_CONSTRAINT,name:I.default.TENANT_NAME_CONSTRAINT},i=k((n=_).prototype,"id",[R.observable],{enumerable:!0,initializer:function(){return null}}),o=k(n.prototype,"tenantID",[R.observable],{enumerable:!0,initializer:function(){return""}}),l=k(n.prototype,"name",[R.observable],{enumerable:!0,initializer:function(){return""}}),s=k(n.prototype,"description",[R.observable],{enumerable:!0,initializer:function(){return""}}),u=k(n.prototype,"tenantGroups",[R.observable],{enumerable:!0,initializer:function(){return[]}}),d=k(n.prototype,"active",[R.observable],{enumerable:!0,initializer:function(){return null}}),c=k(n.prototype,"deleted",[R.observable],{enumerable:!0,initializer:function(){return null}}),p=k(n.prototype,"tenantModules",[R.observable],{enumerable:!0,initializer:function(){return[]}}),f=k(n.prototype,"isSelected",[R.observable],{enumerable:!0,initializer:function(){return!1}}),h=k(n.prototype,"permission",[R.observable],{enumerable:!0,initializer:function(){return null}}),m=k(n.prototype,"version",[R.observable],{enumerable:!0,initializer:function(){return 0}}),g=k(n.prototype,"created",[R.observable],{enumerable:!0,initializer:function(){return null}}),E=k(n.prototype,"createdBy",[R.observable],{enumerable:!0,initializer:function(){return null}}),y=k(n.prototype,"modified",[R.observable],{enumerable:!0,initializer:function(){return null}}),v=k(n.prototype,"modifiedBy",[R.observable],{enumerable:!0,initializer:function(){return null}}),k(n.prototype,"populateData",[R.action],(0,C.default)(n.prototype,"populateData"),n.prototype),r=n))||r;t.default=x,e.exports=t.default},function(e,t,a){"use strict";var r,n=a(20),i=a(401),o=(r=i)&&r.__esModule?r:{default:r};!function(){var t=a(5),r=a(285),i=a(119);function l(e){var a={model:e||new o.default};this.accessOrigin=null,t.extendObservable(this,a)}l.prototype.loadAllAccess=function(e){var a=this.model;return a.pageInfo.buildPagingRequest(),r.loadAccesses(e,a.pageInfo).then(t.action(function(e){return this.model.populateAccessDetails(e),(0,n.resolve)(!0)}.bind(this)))},l.prototype.onPageSizeChange=function(e){return this.model.pageInfo.setPageSize(e),this.goToPage(1)},l.prototype.goToPage=function(e){return this.model.pageInfo.setPageIndex(e),this.loadAllAccess(this.accessOrigin)},l.prototype.search=function(e,t){return this.model.pageInfo.setSearchValues(e,t),this.goToPage(1)},l.prototype.onSortChange=function(e,t){return this.model.pageInfo.setColSortDirs(e,t),this.loadAllAccess(this.accessOrigin)},l.prototype.updateSearchCriteria=function(e,t){this.model.pageInfo.setSearchValues(e,t)},l.prototype.initialAccessGrid=t.action(function(e){var a=this.model;return a.pageInfo.buildPagingRequest(),this.accessOrigin=e,(0,n.join)(r.loadAccesses(e,a.pageInfo),r.loadTenantSettingAccessRight(i.ACCESS_MODE.REPORT),r.loadTenantSettingAccessRight(i.ACCESS_MODE.DASHBOARD),t.action(function(e,t,a){this.model.populateAccessDetails(e),this.model.populateReportAccessRight(t),this.model.populateDashboardAccessRight(a)}).bind(this))}),l.prototype.updateAccessOrigin=function(e){this.accessOrigin=e},l.prototype.updateModel=t.action(function(e){this.model=e}),e.exports=l}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(516),n=a(517);function i(e){var a={expressionFieldName:new r,expressionFunctionOperators:new n};t.extendObservable(this,a),e&&this.fetchData(e)}i.prototype.fetchData=t.action(function(e){this.expressionFieldName=e.expressionFieldName,this.expressionFunctionOperators=e.expressionFunctionOperators}),i.prototype.updateFieldName=function(e){this.expressionFieldName&&this.expressionFieldName.fetchData(e)},i.prototype.getSelectedDataSourceId=function(){this.expressionFieldName&&this.expressionFieldName.getSelectedDataSourceId()},e.exports=i}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(18);t.default={FORMATS_NOT_AVAILABLE_FOR_RUNNING_FIELD:["% of Group","% of Group (with rounding)","% of Subtotal","% of Subtotal (with rounding)","% of Grandtotal","% of Grandtotal (with rounding)","% of Sidetotal","% of Sidetotal (with rounding)"],FORMAT_NOT_AVAILABLE_ON_FIELD_CAN_NOT_SET_SUBTOTAL:["% of Subtotal","% of Subtotal (with rounding)"],FORMATS_NOT_AVAILABLE_FOR_PART_TYPES:{partType:[r.REPORT_PART_TYPE.Chart,r.REPORT_PART_TYPE.Gauge,r.REPORT_PART_TYPE.Map,r.REPORT_PART_TYPE.KPI],formats:["% of Subtotal","% of Subtotal (with rounding)","% of Grandtotal","% of Grandtotal (with rounding)","% of Sidetotal","% of Sidetotal (with rounding)"]},FORMATS_ONLY_ON_PIVOT_GRID_VALUE_CONTAINER:["% of Sidetotal","% of Sidetotal (with rounding)"]},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,a){var n=!0;(0,r.forEach)(function(i){if(!(0,r.has)(i,a))return n=!1,!1;if(!(0,r.isFunction)(t[i])&&!(0,r.isEqual)(a[i],t[i]))if((0,r.isPlainObject)(t[i])){if(n&&(n=e(t[i],a[i])),!n)return!1}else n=(0,r.isEqual)(a[i],t[i]);return!!n&&void 0},(0,r.keys)(t));return n};var r=a(1);e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(91),i=(r=n)&&r.__esModule?r:{default:r},o=a(1),l=a(83),s=a(33);function u(e,t,a,r,n){var l="style."+(n?"cellColor":"color");if(e.isUserDefinedPoint){var s=(0,o.get)((0,o.get)("fieldNameAlias",e.latField),a),u=(0,o.get)((0,o.get)("fieldNameAlias",e.lonField),a),d=i.default.getValueStyle(t.lat,s,{element:e.latField,record:t.record}),c=i.default.getValueStyle(t.lon,u,{element:e.lonField,record:t.record});return(0,o.get)(l,d)||(0,o.get)(l,c)}return(0,o.get)(l,i.default.getValueStyle(t.pointName,r,{element:t.valueField,record:t.record}))}function d(e,t,a,r){var n=e.pointName,l=n&&i.default.getValueStyle(n,a[t.label],{element:e.nameField,record:e.record})||{};return(0,o.has)("fomattedValue",l)?(0,o.escape)(l.fomattedValue):function(e,t,a){if(!(0,o.has)("lat",e)||!(0,o.has)("lon",e))return"";var r=(0,o.get)((0,o.get)("fieldNameAlias",a.latField),t),n=(0,o.get)((0,o.get)("fieldNameAlias",a.lonField),t),l=i.default.getValueStyle(e.lat,r,{element:a.latField,record:e.record}),s=i.default.getValueStyle(e.lon,n,{element:a.lonField,record:e.record});return"("+(0,o.get)("fomattedValue",l)+", "+(0,o.get)("fomattedValue",s)+")"}(e,a,r)}t.default={applyPointOptionsColor:function(e,t,a){var r=(0,o.getOr)({},(0,o.get)("field.name",t),a);(0,o.each)(function(e){if(e.isBackgroundMap||e.hasColor)return!0;(0,o.each)(function(t){var n=u(e,t,a,r,!0);n&&(t.color=n,t.pointOptionColor=!0);var i=u(e,t,a,r,!1);i&&(t.textColor=i)},e.data)},e)},applyValuesColor:function(e,t,a){var r=(0,o.get)("pointType",t);(0,o.each)(function(e){var t=(0,o.get)("field.fieldNameAlias",e),n=(0,o.get)(["cellColors",r].join("."),a[t]);(0,o.each)(function(e){var t=(0,s.getConfigDataByRange)(e.originalValue||e.value,n,{element:e.valueField,record:e.record});t&&(e.color=t,e.pointOptionColor=!1)},e.data)},e)},getTooltipContent:function(e,t,a,r,n){var u=e.valueField,c=(0,s.getFieldValue)(u.columnName,e.record),p=(0,o.get)("fieldElement.properties.dataFormattings.format",a[u.fieldNameAlias]),f=void 0;(0,o.isNil)(p.jsFormatString)||""===p.jsFormatString||(f=(0,l.formatDataByStringFormat)(p.formatId,c.value,a[u.fieldNameAlias].fieldDataType));var h=i.default.getValueStyle({originalValue:c.originalValue,value:(0,o.isNil)(f)?c.value:f},a[u.fieldNameAlias],{element:e.valueField,record:e.record})||{},m=d(e,t,a,r);return' '+(0,o.escape)(e.valueField.fieldNameAlias)+"
"+m+": "+(0,o.escape)(h.fomattedValue)+""},getFormattedPointName:d,getNameOfCellConfig:function(e,t){var a=function(t){return(0,o.find)({text:e},t)},r=a(t.rangeValue)||a(t.rangePercent);return(0,o.get)("name",r)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="Google Maps",e.exports=t.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContrastTextColor=function(e){var t=(0,i.default)(e).toRgb();return(299*t.r+587*t.g+114*t.b)/1e3>=128?"#000":"#FFF"},t.isLeafNode=function(e,t){return e.depth===t},t.addClipPath=function(e,t,a){var r=(0,n.uniqueId)("clipPath-"),i=e.select("defs");i.empty()&&(i=e.append("defs"));var o=i.append("clipPath").attr("id",r).append("rect").attr("height",a).attr("width",t).attr("fill","none");return{id:r,rect:o}},t.beginPlotAnimation=function(e,t){var a=null;a=(0,o.default)(function r(){var i=(0,n.toNumber)(e.attr("width"));if(id+p||m+Ec+f||g+y=r&&(u.push(f.Message.M01),d.push(f.Message.M01)),!i(a)&&!i(s)&&a>s&&(u.push(f.Message.M04),p.push(f.Message.M04)),!i(r)&&!i(n)&&n>r&&(d.push(f.Message.M04),c.push(f.Message.M04)),!i(a)&&!i(n)&&n>a&&(u.push(f.Message.M04),c.push(f.Message.M04)),!i(r)&&!i(s)&&r>s&&(p.push(f.Message.M04),d.push(f.Message.M04)),e){case"low":if(u.length>0)return{key:"",messages:u};break;case"high":if(d.length>0)return{key:"",messages:d};break;case"from":if(c.length>0)return{key:e,messages:c};break;case"to":if(p.length>0)return{key:e,messages:p}}},e.exports=E}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=m(a(6)),i=m(a(2)),o=m(a(3)),l=m(a(7)),s=m(a(8)),u=m(a(0)),d=a(5),c=m(a(34)),p=m(a(247)),f=m(a(12)),h=m(a(761));function m(e){return e&&e.__esModule?e:{default:e}}var g=(0,a(59).exportClass)("ChartBorderSettings")(r=function(e){function t(e){(0,i.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));r.getDefaultValue=function(){return{"izEntire.borderWidth":0,"izEntire.borderColor":c.default.borderColor}},r.onChangeValue=function(e,t,a,n,i){var o=(a&&a.length?get(a,e):e)[t];o&&(o.value=n);var l=e.borderWidth.value,s=e.visible.value;l=s?"visible"!==t||l?l:c.default.borderWidth:0,r.setState({visible:s,borderWidth:l,borderColor:e.borderColor.value,borderStyle:e.borderStyle.value})},r.getValue=function(){var e=r.state;return{"izEntire.borderWidth":e.visible?e.borderWidth:0,"izEntire.borderColor":e.borderColor,"izEntire.borderStyle":e.borderStyle}},r.getSchema=function(e){return{schemaKey:"BORDER_SCHEMA",fields:{visible:{title:f.default.getText("COMMON_LABEL_VISIBLE"),type:"checkbox",controlClassName:"u_controlHeight"},borderColor:{title:f.default.getText("COMMON_LABEL_COLOR"),type:"color",props:{disabled:!e.visible}},borderStyle:{title:f.default.getText("BORDER_SETTING_LABEL_DASH_STYLE"),component:"DashStyle",props:{disabled:!e.visible}},borderWidth:{title:f.default.getText("BORDER_SETTING_LABEL_THICKNESS"),component:a(242),props:{disabled:!e.visible}}}}},r.allChartProps=(0,d.toJS)(e.allChartProps);var o=e&&e.value||{};return r.state={visible:!!o["izEntire.borderWidth"],borderWidth:o["izEntire.borderWidth"],borderColor:o["izEntire.borderColor"]||c.default.borderColor,borderStyle:o["izEntire.borderStyle"]||c.default.defaultDashStyles},r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this.state,t={commonOptions:{"izEntire.borderWidth":e.borderWidth,"izEntire.borderColor":e.borderColor,"izEntire.borderStyle":e.borderStyle}},a={source:e,widgets:{DashStyle:h.default},definedSchema:this.getSchema(e),onChangeValue:this.onChangeValue};return u.default.createElement(p.default,{type:this.props.reportPartType,configurationDef:a,chartOptions:t,allChartProps:this.allChartProps})}}]),t}(u.default.Component))||r;t.default=g,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s;r=a(0),n=a(9),i=a(34),o=a(159),l=a(10),s=r.createClass({displayName:"DashStyleDropdown",propsType:{value:r.PropTypes.object,onChange:r.PropTypes.func},getInitialState:function(){return{isOpen:!1}},getDefaultProps:function(){return{value:i.defaultDashStyles}},onChange:function(e){this.props.onChange&&this.props.onChange(e),this.hideDashStyles()},showDashStyles:function(){this.setState({isOpen:!this.state.isOpen})},hideDashStyles:function(){this.setState({isOpen:!1})},render:function(){var e=i.dashStyles.map(function(e){return r.createElement("div",{className:"izenda-Dropdown-option",value:e,onClick:this.onChange.bind(this,e),key:e},r.createElement("div",{className:e}))}.bind(this)),t=this.props.value?this.props.value+" review-icon":"dotted review-icon",a=l("izenda-DashStyleDropDown u_controlHeight",{"disabled-elm":this.props.disabled});return r.createElement("div",{className:a},r.createElement("div",{ref:"dashStyle",className:"line-style",onMouseDown:this.showDashStyles},r.createElement("div",{className:t}),r.createElement("i",{className:"icon-triangle-down"})),this.state.isOpen&&r.createElement(o,{anchor:this.refs.dashStyle,onClickOutside:this.hideDashStyles,onParentScroll:this.hideDashStyles,className:"izenda-Dropdown izenda-DashStyleDropDown"},r.createElement("div",{className:"izenda-Dropdown-menu"},e)))}}),e.exports=n.observer(s)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r},o=a(1);var l={type:{columnKey:"Type",width:100,get title(){return"Type"},sortable:!1,key:"label"},field:{columnKey:"Field",width:140,get title(){return"Field"},sortable:!0,key:"label"},label:{columnKey:"Label",width:120,get title(){return i.default.getText("THRESHOLD_GRID_CONSTANT_LABEL")},sortable:!1,key:"label"},value:{columnKey:"Value",width:140,get title(){return i.default.getText("COMMON_LABEL_VALUE")},sortable:!1,key:"value"},dashStyle:{columnKey:"DashStyle",width:100,get title(){return i.default.getText("THRESHOLD_GRID_CONSTANT_DASHSTYLE")},sortable:!1,key:"dashStyle"},color:{columnKey:"Color",width:50,get title(){return i.default.getText("COMMON_LABEL_COLOR")},sortable:!1,key:"color",align:"center"},thickness:{columnKey:"Thickness",width:80,get title(){return i.default.getText("THRESHOLD_GRID_CONSTANT_THICKNESS")},sortable:!1,key:"thickness"},visible:{columnKey:"Visible",width:50,get title(){return i.default.getText("COMMON_LABEL_VISIBLE")},sortable:!1,key:"visible",align:"center"},action:{columnKey:"Action",width:50,get title(){return i.default.getText("COMMON_LABEL_ACTION")},sortable:!1,key:"action",align:"center"}},s={width:(0,o.flow)(o.values,(0,o.sumBy)("width"))(l)};t.default={MESSAGE:{get M03(){return i.default.getText("THRESHOLD_GRID_CONSTANT_MESSAGE_THRESHOLD_EXIST")},get M04(){return i.default.getText("THRESHOLD_GRID_CONSTANT_MESSAGE_THRESHOLD_VALUE_EXIST")},get M05(){return i.default.getText("THRESHOLD_GRID_CONSTANT_MESSAGE_THRESHOLD_REQUIRED_VALUE")},get M06(){return i.default.getText("THRESHOLD_GRID_CONSTANT_MESSAGE_THRESHOLD_REQUIRED_LABEL")}},TABLE_DEF:{label:{columnKey:"Label",width:130,get title(){return i.default.getText("THRESHOLD_GRID_CONSTANT_LABEL")},sortable:!0,key:"label"},value:{columnKey:"Value",width:130,get title(){return i.default.getText("COMMON_LABEL_VALUE")},sortable:!0,key:"value"},dashStyle:{columnKey:"DashStyle",width:100,get title(){return i.default.getText("THRESHOLD_GRID_CONSTANT_DASHSTYLE")},sortable:!0,key:"dashStyle"},color:{columnKey:"Color",width:60,get title(){return i.default.getText("COMMON_LABEL_COLOR")},sortable:!0,key:"color",align:"center"},thickness:{columnKey:"Thickness",width:100,get title(){return i.default.getText("THRESHOLD_GRID_CONSTANT_THICKNESS")},sortable:!0,key:"thickness"},visible:{columnKey:"Visible",width:60,get title(){return i.default.getText("COMMON_LABEL_VISIBLE")},sortable:!0,key:"visible",align:"center"},action:{columnKey:"Action",width:60,get title(){return i.default.getText("COMMON_LABEL_ACTION")},sortable:!0,key:"action",align:"center"}},DEFAULT_VALUE:{COLOR:"#000",DASH_STYLE:"solid",WIDTH:1,FONT_STYLE:"italic",FONT_WEIGHT:"bold",TEXT_DECORATION:"underline",ALIGNMENT:"left",FONT_SIZE:8},NUMBER_REGEX:/^-?\d*\.?\d*$/,SORT_DIRS:{name:"DESC"},THRESHOLD_MAX_HEIGHT:500,THRESLOD_TYPE:[{value:"static",label:"Static"},{value:"dynamic",label:"Dynamic"}],DYNAMIC_TABLE_DEF:l,TABLE_CONTAINER_STYLE:s},e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n=p(a(58)),i=p(a(90)),o=p(a(332)),l=p(a(167)),s=a(1318),u=p(a(2680)),d=(p(a(333)),p(a(61))),c=a(1);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e,t){return r("
"+e+"
").find(t)},h=function(e,t){var a={},n=[],i=new o.default;(0,c.forEach)(function(e){var t=r(e),i=t.attr("key"),o=s.FieldPropertiesPaths[i];if(o){var l=o.dataType.parseValue(t.attr("value"));a=(0,c.set)(o.path,l,a),n.push(i)}},e),(0,c.flow)((0,c.omit)(n),c.values,(0,c.filter)({needDefaultValue:!0}),(0,c.forEach)(function(e){var t=(0,c.get)(e.path,i);a=(0,c.set)(e.path,t,a)}))(s.FieldPropertiesPaths);return(0,c.get)(s.FieldPropertiesPaths.funcInfoId.path,a)||(a=(0,c.set)(s.FieldPropertiesPaths.funcInfoId.path,null,a)),(0,c.isNil)(t)||(0,c.isNil)(t.field)?i.field.visible=!1:i.readData(t),i.readData(a),(0,c.isNil)((0,c.get)("properties.fieldItemVisible",i))&&i.field&&(i.properties.fieldItemVisible=i.field.visible),i},m=function(e){e.elements=(0,c.orderBy)(["position"],["asc"],e.elements);for(var t=e.elements.length,a=0;a=0;i--)n(i);var o=function(a){var r=t[a],n=(0,c.findIndex)(function(e){return e.name==r.name},e);-1!==n&&(t[a].readData(e[n]),e.splice(n,1))};for(i=0;i1&&(o=String.format(l.default.MESSAGES.M01,n)),o},_=function(e,t){var a=t.fieldNameAliases;if((0,c.isNil)(a))return null;var n=(0,c.trim)(r(e).text());return(0,c.filter)(function(e){return e===n},a).length>1?String.format(l.default.MESSAGES.M16,n):null},S=function(e,t){var a=(0,c.template)('');if(!s.FieldPropertiesPaths[e])return"";var r=new o.default,n=(0,c.get)(s.FieldPropertiesPaths[e].path,r);return!(0,c.isNil)(n)&&t!==n||(0,c.isNil)(n)&&!s.FieldPropertiesPaths[e].dataType.isDefaultValue(t)?(t=t.toJS?t.toJS():t,(0,c.isArray)(t)&&(t=(0,i.default)(t)),a({key:e,value:t})):""};t.default={syncFromHTMLToElements:function(e,t,a,n){var i=[];f(a,"field").each(function(e,t){var a=r(t).attr("field-name"),o=(0,c.trim)(r(t).text());if(o===d.default.FIELD_HIDDEN_LABEL){var l=(a=r(t).attr("field-name")).match(/\[(.*?)\]/g);o=l[l.length-1].replace("[","").replace("]","")}var s=f(t.innerHTML,"field-prop"),u={},p=n&&a&&y(a,n);u.field=(0,c.cloneDeep)(p),(u=h(s,u)).field&&(u.field.fieldNameAlias=o),u.name=o,u.position=e,i.push(u)});var o=g(i,e.elements,t.elements);g([],t.elements,o),m(e),m(t)},generateHTMLFieldPropTag:S,FieldPropertiesPaths:s.FieldPropertiesPaths,validateField:function(e,t){var a=[];a.push(T),a.push(_);for(var r=null,n=0;(0,c.isNil)(r)&&n"+a+"").html(),i=r(e).get(0).outerHTML,o=r(t).get(0).outerHTML;return n.substring(n.indexOf(i)+i.length,n.indexOf(o))},filterByNodeName:f,cleanHtmlFromTinyMCE:function(e){var t=r("
").html(e);return r("field",t).removeAttr("contenteditable").removeAttr("data-mce-selected"),r(t)[0].innerHTML},mapFromHTMLToObject:h},e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(a(2)),n=l(a(3)),i=a(1),o=a(48);function l(e){return e&&e.__esModule?e:{default:e}}o.FUNCTION.GROUP.NAME;var s=function(){function e(t){(0,r.default)(this,e),this.level=0,this.fields=[],this.fieldSupportSubtotal=[],this.subTotalSmartTag=[],this.placeHolderPattern="",this.placeHolderKey="",this.pattern="",this.childNodes=[],this.populateData(t)}return(0,n.default)(e,[{key:"fieldHasSubtotalConfig",get:function(){return(0,i.filter)(function(e){return(0,i.get)("fieldInfo.hasSubTotal",e)},this.fieldSupportSubtotal)}},{key:"fieldHasNoGroupingData",get:function(){return(0,i.filter)(function(e){return!((0,i.get)("fieldInfo.haveFunction",e)&&(0,i.get)("fieldInfo.functionInfo.name",e)!==o.FUNCTION.DAYS_OLD.NAME)||(0,i.get)("fieldInfo.functionInfo.userDefined",e)},this.fields)}},{key:"fieldGroupingData",get:function(){return(0,i.filter)(function(e){return(0,i.get)("fieldInfo.haveFunction",e)},this.fields)}},{key:"totalFieldGroupingData",get:function(){var e=(0,i.reduce)(function(e,t){return(0,i.concat)(e,t.totalFieldGroupingData)},[],this.childNodes);return(0,i.concat)(this.fieldGroupingData,e)}},{key:"totalFieldHasNoGroupingData",get:function(){var e=(0,i.reduce)(function(e,t){return(0,i.concat)(e,t.totalFieldHasNoGroupingData)},[],this.childNodes);return(0,i.concat)(this.fieldHasNoGroupingData,e)}},{key:"fieldIsRunning",get:function(){return 0===this.level||0===this.childNodes.length?[]:(0,i.filter)(function(e){return(0,i.get)("fieldInfo.field.isRunningField",e)},this.fields)}},{key:"validSubtotalSmartTag",get:function(){return(0,i.filter)(function(e){return e.isValidSubTotalSmartTag},this.smartTagInContent)}},{key:"hasSupportUnsort",get:function(){return(0,i.isEmpty)(this.childNodes)}},{key:"totalFields",get:function(){var e=(0,i.reduce)(function(e,t){return(0,i.concat)(e,t.totalFields)},[],this.childNodes);return(0,i.concat)(this.fields,e)}},{key:"hasGroupingData",get:function(){return(0,i.size)(this.totalFieldGroupingData)===(0,i.size)(this.totalFields)}},{key:"totalFieldRunningField",get:function(){var e=(0,i.reduce)(function(e,t){return(0,i.concat)(e,t.totalFieldRunningField)},[],this.childNodes);return(0,i.concat)(this.fieldIsRunning,e)}},{key:"allFieldIsNotGroupingData",get:function(){return(0,i.size)(this.totalFieldHasNoGroupingData)===(0,i.size)(this.totalFields)}}]),(0,n.default)(e,[{key:"populateData",value:function(e){this.childNodes=e.childNodes,this.level=e.level,this.fields=e.fields,this.smartTagInContent=e.smartTagInContent,this.fieldSupportSubtotal=e.fieldSupportSubtotal,this.subTotalSmartTag=e.subTotalSmartTag,this.placeHolderPattern=e.placeHolderPattern,this.placeHolderKey=e.placeHolderKey,this.pattern=e.pattern}}]),e}();t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(113);t.default=[(0,r.createXAxisSchema)(),r.createGaugeYAxisMetricsSchema,r.createSeparatorSchema],e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=S(a(70)),o=S(a(58)),l=S(a(14)),s=S(a(71)),u=S(a(6)),d=S(a(2)),c=S(a(3)),p=S(a(7)),f=S(a(8)),h=S(a(500)),m=a(1),g=S(a(91)),E=a(85),y=a(83),v=a(33),T=a(59),_=a(715);function S(e){return e&&e.__esModule?e:{default:e}}var C=30,b=2,N=1.2,A=(0,T.exportClass)("HighmapOptionsBuilder")(n=function(e){function t(){var e;(0,d.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n1&&(l=Math.floor(l),s=Math.ceil(s));return{minColor:(0,m.getOr)(void 0,"text",r[1]),maxColor:(0,m.getOr)(void 0,"text",r[0]),startOnTick:!1,endOnTick:!1,tickPositioner:(0,y.getMapTicksPositioner)(l,s),min:l,max:s,showInLegend:!o}}(0,u,d);p&&s.push(p);var f=O(o,u,d);return f.map(function(n){return r.extend({},u,{data:u.data,hasColor:!!p,name:o,joinBy:["hc-key","code"],dataLabels:R(e,t,a,i,!1,!0,u.activePointOption),showInLegend:!c},n)})},(0,o.default)(l)),colorAxises:s}}(n,h,T,A,u,v.shadingSeries),L=D.series,M=D.colorAxises,F=[].concat((0,s.default)(I),(0,s.default)(L)),k=function(e,t,a,n,i,l,s){if(!i)return[];return(0,m.flatMap)(function(o){var s=i[o];s.data.forEach(function(e){e.z=(0,m.isNil)(e.originalValue)||""===e.originalValue?e.value:e.originalValue});var u=O(o,s,(0,m.get)(["cellColors",l].join("."),n[o]));return u.map(function(i){return r.extend({},s,{type:"mapbubble",name:o,showInLegend:!0,dataLabels:R(e,t,a,n,!1,!0,s.activePointOption),joinBy:["hc-key","code"],minSize:E.MapUIConstant.bubbleMinSize,maxSize:E.MapUIConstant.bubbleMaxSize},i)})},(0,o.default)(i))}(n,h,T,u,v.bubbleSeries,A),x=(0,m.max)((0,m.map)(function(e){return e.legendIndex},F))||0;k&&k.forEach(function(e){return e.legendIndex=x+((0,m.isNil)(e.legendIndex)?k.length:e.legendIndex)}),S&&(0,_.applyPointOptionsColor)(F,S,u),S&&(0,_.applyPointOptionsColor)(k,S,u);var w=this.buildHighmapOptions(c,T,F,k,M,f,v,g,u,d);return function(e,t,a){var r=(0,m.getOr)({},"legend",e),n=parseInt((0,m.get)("itemStyle.fontSize",r));if(n){var o=n*N;"horizontal"===r.layout?r.symbolHeight=o:r.symbolWidth=o}(0,m.size)(t.bubbleSeries)+(0,m.size)(t.shadingSeries)<1&&e.series.forEach(function(e){e.isBackgroundMap&&(e.showInLegend=!0)});if(r.enabled){var l=a.clientWidth-C,s="horizontal"===r.layout&&"middle"!=r.verticalAlign?l:l/2;(0,i.default)(r.title.style,{width:s,overflow:"hidden",textOverflow:"ellipsis"})}}(w,v,a),(0,l.default)({bubbleSeries:k,activePointOption:S,seriesConfig:u},w)}},{key:"buildHighmapOptions",value:function(e,t,a,n,i,o,l,s,u,d){var c=this,p=(0,m.get)("geojson",s),f=r.extend(!0,e,{chart:{type:"map"},title:{text:""},credits:{enabled:!1},plotOptions:{map:{allAreas:!1,point:{events:{click:function(e){var t;if(r(e.target).hasClass("hyperlink-action"))return!1;t=this.options,(0,m.isEmpty)(l.shadingSeries)&&!(0,m.isEmpty)(l.bubbleSeries)&&(t=(0,m.find)({code:t.code},n[0].data)||t),c.onDrilldown(t,d)}}}},series:{mapData:p,clip:!1}},tooltip:{formatter:function(){return function(e,t,a){if((0,m.get)("series.userOptions.isBackgroundMap",e))return!1;var r=(0,m.get)("options",e),n=(0,m.get)("series.userOptions",e);return(0,_.getTooltipContent)(r,t,a,n,e.color)}(this.point,t,u)},useHTML:!0,backgroundColor:"rgba(255,255,255,0)",borderWidth:0,borderRadius:0,shadow:!1}});return f.series=a,f.colorAxis=(0,m.head)(i),!(0,m.isNil)(o)&&(f.colors=o),(0,m.omitBy)(m.isNil,f)}},{key:"onDrilldown",value:function(e,t){return t.onDrilldown&&t.onDrilldown({point:e})}}]),t}(h.default))||n;function R(e,t,a,r,n,i,o){var l=(0,m.get)("field.name",o),s={enabled:n?(0,m.get)("mapLabel",t):(0,m.get)("dataLabels",t),padding:0,rotation:0,formatter:function(){var e=this.point,n=e.options||{},i=(0,m.get)("label",a),o=void 0,l=r[i],s=(0,m.getOr)({},"series.userOptions",e),u={element:n.nameField,record:n.record};return!s.isBackgroundMap&&(0,m.get)("dataLabels",t)?(o=D.call(this))?(0,m.escape)(I(o,l,u)):function(e,t){if(!(0,m.has)("lat",t)||!(0,m.has)("lon",t))return"";var a=(0,m.getOr)({},"series",t),r=(0,m.get)("userOptions",a),n=(0,m.get)((0,m.get)("fieldNameAlias",r.latField),e),i=(0,m.get)((0,m.get)("fieldNameAlias",r.lonField),e),o=g.default.getValueStyle(t.lat,n,{element:r.latField,record:t.record}),l=g.default.getValueStyle(t.lon,i,{element:r.lonField,record:t.record});return"("+(0,m.get)("fomattedValue",o)+", "+(0,m.get)("fomattedValue",l)+")"}(r,e):t.mapLabel?(o=(0,m.getOr)("",t.dataLabelKey||"name",n.pointInfo.properties),(0,m.escape)(o?I(o,l,u):void 0)):void 0}},u=(0,m.getOr)(void 0,"commonOptions.plotOptions.series.dataLabels.rotation",e);return i&&o&&(0,y.addPointActionLink)(!0,e,s,l,r[l],D,!1,u)||s}function O(e,t,a){if(!a)return[t];var r=a.rangePercent||a.rangeValue||[],n=[].concat((0,s.default)(r.map(function(e){return e.text})),["NO_COLOR"]),i=(0,m.groupBy)(function(e){return(0,v.getConfigDataByRange)(e.originalValue||e.value,a,{element:e.valueField,record:e.record})||"NO_COLOR"},t.data);return(0,o.default)(i).map(function(t){var r=(0,_.getNameOfCellConfig)(t,a),o=n.indexOf(t);return{name:r||e,color:r?t:null,hasColor:!!r,data:i[t],legendIndex:o>=0?o:void 0}})}function I(e,t,a){return(0,m.getOr)("","fomattedValue",g.default.getValueStyle(e,t,a))}function D(){return(0,m.getOr)("","options.pointName",this.point)}function P(e,t){return(0,m.flow)((0,m.get)(e),m.toNumber)(t)}t.default=A,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";var r,n,i,o,l,s;r=a(0),n=a(11).withContext,i=a(11).getContext,o={registerExposeMethod:r.PropTypes.func,unregisterExposeMethod:r.PropTypes.func},l=n(o,function(e){return{registerExposeMethod:e.registerExposeMethod,unregisterExposeMethod:e.unregisterExposeMethod}}),s=i(o),e.exports={defineContext:l,accessContext:s}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=x(a(6)),o=x(a(2)),l=x(a(3)),s=x(a(7)),u=x(a(8)),d=a(0),c=x(d),p=a(5),f=x(a(41)),h=x(a(117)),m=x(a(588)),g=x(a(106)),E=x(a(769)),y=x(a(2735)),v=x(a(512)),T=x(a(2737)),_=x(a(2739)),S=a(11),C=a(9),b=x(a(2755)),N=x(a(16)),A=x(a(37)),R=x(a(88)),O=a(64),I=x(a(10)),D=x(a(775)),P=x(a(162)),L=x(a(12)),M=a(1),F=x(a(79)),k=x(a(388));function x(e){return e&&e.__esModule?e:{default:e}}var w=(n=r=function(e){function t(){(0,o.default)(this,t);var e=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return e.handleNeedLogin=function(){if(N.default.needLogin){var t=e.securityManager.getAutoAuthToken();if((0,M.isNil)(t))if(window.status="completed",e.props.isNeedLoginForm){e.securityManager.clear(),e.context.dialogs.reset();var a=A.default.getRouteUrl(A.default.getConfigRoute("Account","Login"),{redirectTo:e.props.location.pathname+e.props.location.search});e.props.router.push(a)}else e.setState({showPermissionError:!0});else e.securityManager.authWithAutoAuthToken(t,function(){e.setState({showPermissionError:!1})},function(){window.status="completed",e.setState({showPermissionError:!0})})}},e.loadGoogleApiKey=function(){F.default.loadGoogleMapConfiguration(N.default.tenantId).then(function(e){var t=(0,M.get)("googleAPIKey",e);N.default.setGoogleApiKey(t)})},e.state={store:h.default,showPermissionError:!1,isCookieOptionLoaded:!1},e.securityManagerStore=new E.default,e.securityManager=new g.default,e.accountStore=new P.default,e.getSecurity(),e.updateNotificationsDisposer=(0,p.observe)(N.default,"updateNotifications",function(){N.default.updateNotifications&&(k.default.getAllNotifications().then(function(e){N.default.unReadNotificationsCount=e.data.unReadCount,N.default.notifications=e.data.notifications}),N.default.resetUpdateNotifications())}),e.needLoginDisposer=(0,p.observe)(N.default,"needLogin",e.handleNeedLogin),e.needChangeGoogleApiKey=(0,p.observe)(N.default,"tenantId",e.loadGoogleApiKey),N.default.setMobileVersion(R.default.isMobileDevice()),window.onbeforeunload=function(){if(N.default.isDirty)return L.default.getText("COMMON_MESSAGES_CONFIRM_CHANGES_LOST")},window.onerror=function(){window.status="completed"},e}return(0,u.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.state.store.getProvisionMapDataStatus(),this.ensureDatabaseConfigured()}},{key:"componentWillUnmount",value:function(){this.needLoginDisposer(),this.updateNotificationsDisposer()}},{key:"componentDidUpdate",value:function(){this.getSecurity()}},{key:"ensureDatabaseConfigured",value:function(){var e=this;this.accountStore.checkDatabaseSetup().then(function(t){if(!t){e.securityManager.clear();var a=A.default.getSettingsUrl(null,{notSetupDatabase:!0});e.props.router?e.props.router.push(a):window.location.href=a}return t})}},{key:"getSecurity",value:function(){var e=this;this.state.isCookieOptionLoaded||F.default.getCookieOptions().then(function(t){m.default.setDefaultOptions(t),e.state.isCookieOptionLoaded=!0});var t=this.securityManager.getAccessToken();(0,M.isNil)(t)||this.securityManagerStore.fetchData()}},{key:"checkPrintMode",value:function(){var e=this.props,t=e.location&&e.location.query;return t&&"true"===t.print}},{key:"setContainerElement",value:function(e){f.default.containerElement=e}},{key:"render",value:function(){var e=(0,M.get)("location.pathname",this.props),t=this.context.dialogs,a=this.state.showPermissionError,r=this.securityManager.getAccessToken(),n=this.checkPrintMode(),i=A.default.getRouteUrl(A.default.getConfigRoute("Explore")),o=(0,I.default)("izenda-root izenda-container",{"hide-overflow":e!==i}),l=(0,I.default)("izenda page",{u_overflowVisible:n,u_inline:n,"izenda-print":n});return((0,M.isNil)(r)||this.securityManager.isCompleteLoad)&&c.default.createElement("div",{className:o},c.default.createElement("section",{ref:this.setContainerElement,className:l},a?c.default.createElement(D.default,null):this.props.children,c.default.createElement(y.default,{dialog:t.child}),c.default.createElement(v.default,null),c.default.createElement(T.default,{loaders:N.default.exportingLoadings}),c.default.createElement(b.default,null)))}}]),t}(d.Component),r.contextTypes={dialogs:d.PropTypes.object},r.propTypes={isNeedLoginForm:d.PropTypes.bool},r.defaultProps={isNeedLoginForm:!0},n),B=(0,S.compose)(O.withRouter,_.default,C.observer);t.default=B(w),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=T(a(23)),o=a(20),l=T(a(2)),s=T(a(3)),u=a(5),d=T(a(287)),c=T(a(79)),p=T(a(415)),f=T(a(162)),h=T(a(685)),m=T(a(2734)),g=T(a(1005)),E=T(a(16)),y=T(a(117)),v=T(a(302));function T(e){return e&&e.__esModule?e:{default:e}}var _,S,C,b,N,A,R=(r=(0,u.action)("fetchData"),n=function(){function e(){(0,l.default)(this,e),this.authorizationStore=new p.default,this.accountStore=new f.default,this.licenseInfoStore=h.default,this.integrationSettingStore=new m.default}return(0,s.default)(e,[{key:"fetchData",value:function(){var e=this;if(!g.default.isLoaded){var t=this.licenseInfoStore,a=v.default.getSelectedTenant(),r=!0;return(0,o.join)(this.accountStore.loadCurrentUser(),t.getLicenseInfo(),this.integrationSettingStore.getDeploymentMode(),c.default.getSystemMode(),(0,u.action)(function(n,i,l,s){return E.default.setCurrentUser(n.data),E.default.setSystemMode(s),n.data.systemAdmin||(v.default.removeSelectedTenant(),r=!1),E.default.updateLicenseStatus(i.expired),t.licenseInfo.readLicenseInforation(i),e.integrationSettingStore.integrationSetting.readDeploymentMode(l),(0,o.join)(e.authorizationStore.loadAllPermissions(),d.default.loadTenant(E.default.tenantId),(0,u.action)(function(e,t){return g.default.populate(e,t,!0),r&&a&&E.default.setTenantId(a),(0,o.resolve)()})).then(y.default.loadAppSettings.bind(y.default))}).bind(this)).then(t.getLicenseStatus.bind(t))}}},{key:"checkAccessPage",value:function(e,t,a){return this.authorizationStore.loadAccessPriority(t).then(function(t){if(!a)return(0,o.resolve)(!0);var r=a(t);return r||e.router.push("NoPermission"),(0,o.resolve)(r)})}}]),e}(),_=n.prototype,S="fetchData",C=[r],b=(0,i.default)(n.prototype,"fetchData"),N=n.prototype,A={},Object.keys(b).forEach(function(e){A[e]=b[e]}),A.enumerable=!!A.enumerable,A.configurable=!!A.configurable,("value"in A||A.initializer)&&(A.writable=!0),A=C.slice().reverse().reduce(function(e,t){return t(_,S,e)||e},A),N&&void 0!==A.initializer&&(A.value=A.initializer?A.initializer.call(N):void 0,A.initializer=void 0),void 0===A.initializer&&(Object.defineProperty(_,S,A),A=null),n);t.default=R,e.exports=t.default},,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(0)),n=i(a(12));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return r.default.createElement("h3",{className:"izenda-no-permission"},n.default.getText("NO_PERMISSION_TEXT"))},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d=T(a(17)),c=T(a(23)),p=T(a(2)),f=T(a(3)),h=T(a(41)),m=a(249),g=a(286),E=T(a(68)),y=a(168),v=a(5);function T(e){return e&&e.__esModule?e:{default:e}}function _(e,t,a,r){a&&(0,d.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function S(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var C=(0,T(a(53)).default)((n=function(){function e(t){(0,p.default)(this,e),_(this,"visibleChanged",i,this),_(this,"filterableChanged",o,this),_(this,"details",l,this),_(this,"aliasError",s,this),_(this,"state",u,this),this.showTenantFieldValue=h.default.advancedSettings.security.showTenantFieldValue,t.filteredValue=JSON.parse(t.filteredValue||"{}"),this.state=t.state,this.details=t}return(0,f.default)(e,[{key:"isVisible",get:function(){return this.details.visible}},{key:"isFilterable",get:function(){return this.details.filterable}},{key:"isMatchTenant",get:function(){return this.details.matchedTenant}},{key:"isParameter",get:function(){return this.details.type===y.FIELD_TYPE.PARAM}},{key:"isDisabledVisible",get:function(){return this.details.matchedTenant&&!this.showTenantFieldValue||this.details.physicalChange===m.DETECTED_CHANGE_LEVEL.DELETED}},{key:"isDisabledFilterable",get:function(){return this.details.isCompositeField||this.details.isRunningField||this.details.matchedTenant&&!this.showTenantFieldValue||!this.details.visible}},{key:"isDisableFilterLookup",get:function(){return this.details.physicalChange===m.DETECTED_CHANGE_LEVEL.DELETED}},{key:"isChangeToInvisible",get:function(){return 0==this.isVisible&&1==this.visibleChanged}},{key:"isChangeToUnfilterable",get:function(){return 0==this.isFilterable&&1==this.filterableChanged}},{key:"isNewField",get:function(){return this.details.approval0?t:{}}})}O.prototype.initData=function(e){return this.disposeObserveTenantID=r.observe(p,"tenantId",function(){p.silentUpdate||(this.setShowInvalidScreen(!1),this.goToPage(1))}.bind(this)),this.showInvalidScreen&&(this.modifiedRelationships=[],this.syncModifiedRelationships()),this.resetData(),!e&&p.setCheckDirtyFunction(function(){return this.hasChange}.bind(this)),this.showInvalidScreen?(0,n.join)(this.getInvalidRelationships(),this.getJoinTypes()):(0,n.join)(this.getRelationships(),this.getJoinTypes())},O.prototype.destroy=function(e){!e&&p.resetCheckDirtyFunction(),this.setShowInvalidScreen(!1),this.disposeObserveTenantID()},O.prototype.resetData=function(){this.relationshipList=[],this.isLoading=!0;var e=u.SORTDEFAULTLIST,t=v(e.DEFAULT_SORT);this.pageInfo=new l(t,u.DEFAULT_CRITERIA)},O.prototype.getRelationships=function(){var e={pageSize:this.pageInfo.pageSize,pageIndex:this.pageInfo.pageIndex};this.pageInfo.buildPagingRequest();var t=this.pageInfo.sortOrders;return(0,n.join)(i.getRelationships(this.querySourceId,p.getTenantId(),e,t,this.pageInfo.searchCriteria),i.getBasicConnectionsInfo(p.getTenantId()),this.populateData.bind(this))},O.prototype.getModifiedRelationships=function(){var e=g(function(e){return e.state!=d.NONE},this.relationshipList);return T(function(e){return{id:e.id,joinConnectionId:e.joinConnectionId,foreignConnectionId:e.foreignConnectionId,joinQuerySourceId:e.joinQuerySourceId,foreignQuerySourceId:e.foreignQuerySourceId,joinFieldId:e.joinFieldId,foreignFieldId:e.foreignFieldId,alias:e.alias,systemRelationship:e.systemRelationship,joinType:e.joinType,modified:e.modified,positionId:e.positionId,position:parseInt(e.position),state:e.state,disabled:e.disabled}},e)},O.prototype.syncModifiedRelationships=function(){var e=this,t=this.getModifiedRelationships();E(t)||(E(this.modifiedRelationships)?this.modifiedRelationships=[].concat((0,o.default)(this.modifiedRelationships),(0,o.default)(t)):T(function(t){if(y(["position",t.position],e.modifiedRelationships)){var a=e.getIndexOfModified(t);e.modifiedRelationships[a]=_(e.modifiedRelationships[a],t)}else e.modifiedRelationships.push(t)},t))},O.prototype.getInvalidRelationships=function(){this.syncModifiedRelationships(),this.pageInfo.buildPagingRequest();var e=this.pageInfo.sortOrders;return(0,n.join)(i.getInvalidRelationships(this.querySourceId,p.getTenantId(),e,this.pageInfo.searchCriteria,this.modifiedRelationships),i.getBasicConnectionsInfo(p.getTenantId()),this.populateData.bind(this))},O.prototype.populateData=function(e,t){var a=this;this.databases=t||[];var r=this.editable,n=this.showInvalidScreen,i=(e=e||{}).result,o=T(function(e){var t=new s(e);if(t.setEditable(r),n){var i=a.getIndexOfModified(t);-1!==i&&(a.modifiedRelationships[i].invalid=e.invalid),t.markDirty()}return t},i);return this.relationshipList=o,this.pageInfo.setTotalRecords(e.total),null},O.prototype.getInvalidErrors=function(e){var t=T(function(t){var a=r.toJS(t.errors);if(!E(a)){var n=m({key:"Relationships"},a);return n&&T(function(e){"positionId"!=e&&a.push({key:n.key+"["+t.position+"]"+e,messages:n.messages})},e),a}},this.relationshipList);return b(N,C(t))},O.prototype.getCriteriaList=function(){return this.querySource?u.DATASOURCE_CRITERIA_LIST:u.DEFAULT_CRITERIA_LIST},O.prototype.goToPage=function(e){this.pageInfo.setPageIndex(e),this.getRelationships()},O.prototype.getJoinTypes=function(){var e=function(e){e=e||{},this.joinTypes=T(function(e){return{value:e,key:e}},e)}.bind(this);return i.getJoinTypes().then(e)},O.prototype.validateModifiedRelationships=function(){if(this.showInvalidScreen)return this.syncModifiedRelationships(),i.validateRelationships(this.modifiedRelationships);var e=this.getModifiedRelationships();return e.length>0?i.validateRelationships(e):(0,n.resolve)({success:!0})},O.prototype.validate=function(){var e=!0;return r.transaction(function(){this.relationshipList.forEach(function(t){e=t.validate()&&e})}.bind(this)),e},O.prototype.processErrorAfterSave=function(e){var a=e.relationshipErrors,n=e.messages,i=T(function(e){return e.generalEror="",e},this.relationshipList);if(E(a)||r.transaction(function(){S(a).forEach(function(e){var a=t.grep(i,function(t){return t.position===e.id});E(a)||(a[0].generalEror=e.message)})}),!E(n))return n},O.prototype.save=function(){var e=this.getModifiedRelationships();return e.length>0?i.saveRelationships(e):(0,n.resolve)({success:!0})},O.prototype.handleDeleteAction=function(e){var t=this,a=function(e){return!y(function(e){return!N(e)},e)&&E(t.modifiedRelationships)?(t.setShowInvalidScreen(!1),t.resetData(),t.getRelationships()):(0,n.resolve)(e)},r=function(e){var a=t.getIndexOfModified(e);t.relationshipList.splice(t.relationshipList.indexOf(e),1),t.modifiedRelationships.splice(a,1)};if(!E(e.id)){return i.deleteRelationship(e.id).then(function(n){return n.success?t.showInvalidScreen?(r(e),t.getInvalidRelationships().then(function(){return a(t.relationshipList)})):t.getRelationships():null})}return r(e),this.showInvalidScreen?this.getInvalidRelationships().then(function(){return a(t.relationshipList)}):(this.pageInfo.descreaseRecord(),(0,n.resolve)())},O.prototype.getNewPosition=function(){var e=A(function(e){return parseInt(e.position)},this.relationshipList);return!N(e)&&e.position?parseInt(e.position)+1:null},O.prototype.addNew=function(){var e={id:null,joinConnectionId:this.databaseId,foreignConnectionId:null,joinQuerySourceId:this.querySourceId,foreignQuerySourceId:null,joinFieldId:null,foreignFieldId:null,alias:"",systemRelationship:!1,joinType:"Inner",position:this.getNewPosition()},t=new s(e);return this.relationshipList.unshift(t),t.markDirty(),this.pageInfo.increaseRecord(),(0,n.resolve)()},O.prototype.copy=function(e){var t={id:null,joinConnectionId:e.joinConnectionId,foreignConnectionId:e.foreignConnectionId,joinQuerySourceId:e.joinQuerySourceId,joinQuerySourceName:e.joinQuerySourceName,foreignQuerySourceId:e.foreignQuerySourceId,foreignQuerySourceName:e.foreignQuerySourceName,joinFieldId:e.joinFieldId,foreignFieldId:e.foreignFieldId,alias:e.alias,systemRelationship:!1,joinType:e.joinType,position:this.getNewPosition()},a=this.relationshipList.indexOf(e)+1,r=new s(t);return r.markDirty(),this.relationshipList.splice(a,0,r),this.pageInfo.increaseRecord(),(0,n.resolve)()},O.prototype.resetNewValueToDefault=function(e,t,a){return a?{value:"",label:"",isNew:a}:{value:e,label:t,isNew:a}},O.prototype.setAlertMessage=function(e,t){this.alertMessage={type:e,message:t}},O.prototype.checkExistEntities=function(e){var t=e.joinType;return e.joinQuerySourceId&&e.foreignQuerySourceId?m(function(a){return e!==a&&(a.joinQuerySourceId===e.joinQuerySourceId&&a.foreignQuerySourceId===e.foreignQuerySourceId&&a.joinType!==t||a.joinQuerySourceId===e.foreignQuerySourceId&&a.foreignQuerySourceId===e.joinQuerySourceId&&(a.joinType!==t&&(a.joinType!==c.JOIN_TYPE.LEFT||t!==c.JOIN_TYPE.RIGHT)&&(a.joinType!==c.JOIN_TYPE.RIGHT||t!==c.JOIN_TYPE.LEFT)||a.joinType===c.JOIN_TYPE.LEFT&&t===c.JOIN_TYPE.LEFT||a.joinType===c.JOIN_TYPE.RIGHT&&t===c.JOIN_TYPE.RIGHT))},this.relationshipList):null},O.prototype.updateJoinTypeForSameEntities=r.action(function(e){if(!e.joinQuerySourceId||!e.foreignQuerySourceId)return null;e.joinType===c.JOIN_TYPE_CROSS&&(e.joinFieldId=null,e.foreignFieldId=null),T(function(t){if(e===t||t.state===c.OBJECT_STATE.DELETE)return!1;if(t.joinQuerySourceId===e.foreignQuerySourceId&&t.foreignQuerySourceId===e.joinQuerySourceId||t.joinQuerySourceId===e.joinQuerySourceId&&t.foreignQuerySourceId===e.foreignQuerySourceId&&(t.joinType!==e.joinType&&(t.joinType!==c.JOIN_TYPE.LEFT||e.joinType!==c.JOIN_TYPE.RIGHT)&&(t.joinType!==c.JOIN_TYPE.RIGHT||e.joinType!==c.JOIN_TYPE.LEFT)||t.joinType===c.JOIN_TYPE.LEFT&&e.joinType===c.JOIN_TYPE.LEFT||t.joinType===c.JOIN_TYPE.RIGHT&&e.joinType===c.JOIN_TYPE.RIGHT))switch(e.joinType){case c.JOIN_TYPE.LEFT:t.setJoinType(c.JOIN_TYPE.RIGHT);break;case c.JOIN_TYPE.RIGHT:t.setJoinType(c.JOIN_TYPE.LEFT);break;default:t.setJoinType(e.joinType)}t.joinQuerySourceId===e.joinQuerySourceId&&t.foreignQuerySourceId===e.foreignQuerySourceId&&t.joinType!==e.joinType&&t.setJoinType(e.joinType),t.joinType===c.JOIN_TYPE_CROSS&&(t.joinFieldId=null,t.foreignFieldId=null)},this.relationshipList)}),O.prototype.getIndexOfModified=function(e){return R(function(t){return t.position==e.position},this.modifiedRelationships)},O.prototype.setEditable=function(e){this.editable=e},O.prototype.setShowInvalidScreen=function(e){this.showInvalidScreen=e},e.exports=O}()}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={get CONSTRAINTS(){return{GLOBAL_NAME:{presence:{presence:!0,message:i.default.getText("SYSTEM_CONFIGURATION_REPORT_GLOBAL_NAME_REQUIRED")}},LOCAL_NAME:{presence:{presence:!0,message:i.default.getText("SYSTEM_CONFIGURATION_REPORT_LOCAL_NAME_REQUIRED")}}}},get MESSAGES(){return{M04:i.default.getText("SYSTEM_CONFIGURATION_REPORT_DUPLICATE_GLOBAL_LOCAL_NAME")}},get DEFAULT_VALUES(){return{GLOBAL_NAME:i.default.getText("SYSTEM_CONFIGURATION_REPORT_DEFAULT_GLOBAL_NAME"),LOCAL_NAME:i.default.getText("SYSTEM_CONFIGURATION_REPORT_DEFAULT_LOCAL_NAME")}}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T=Y(a(17)),_=Y(a(23)),S=a(20),C=Y(S),b=Y(a(6)),N=Y(a(2)),A=Y(a(3)),R=Y(a(7)),O=Y(a(8));a(60);var I=a(0),D=Y(I),P=a(5),L=Y(a(13)),M=Y(a(4)),F=Y(a(12)),k=Y(a(29)),x=Y(a(32)),w=Y(a(2804)),B=Y(a(25)),U=Y(a(19)),z=Y(a(548)),V=a(1),G=Y(a(26)),H=Y(a(33));function Y(e){return e&&e.__esModule?e:{default:e}}function j(e,t,a,r){a&&(0,T.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function K(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var W=(0,B.default)()(U.default),q=function(){return D.default.createElement("div",{className:"u_fullSize"},D.default.createElement(G.default,null,H.default.renderLazyLoadingBar()))},Q=(0,M.default)()((v=y=function(e){function t(e){(0,N.default)(this,t);var a=(0,R.default)(this,(t.__proto__||(0,b.default)(t)).call(this,e));j(a,"isConnectionStringSecure",i,a),j(a,"isConnectionStringMode",o,a),j(a,"connectionString",l,a),j(a,"connectionStringEncrypted",s,a),j(a,"serverName",u,a),j(a,"database",d,a),j(a,"authentication",c,a),j(a,"login",p,a),j(a,"password",f,a),j(a,"passwordEncrypted",h,a),j(a,"isPasswordSecure",m,a),j(a,"options",g,a),a.initialConnectionString="",a.state={isLoading:!1},a.handleServerNameInput=function(e){a.serverName=e.target.value},a.handleConnectionStringInputFocus=function(e){a.isConnectionStringSecure&&(a.connectionString="",a.connectionStringEncrypted="",a.isConnectionStringSecure=!1)},j(a,"handleConnectionStringInput",E,a),a.handleDatabaseInput=function(e){a.database=e.target.value},a.handleAuthenticationInput=function(e){a.authentication=e.target.value},a.handleLoginInput=function(e){a.login=e.target.value},a.handlePasswordInputFocus=function(e){a.password="",a.passwordEncrypted="",a.isPasswordSecure=!1},a.handlePasswordInput=function(e){a.password=e.target.value},a.handleOptionsInput=function(e){a.options=e.target.value},a.connectionStringCustomValidation=function(){var e=a.props.connectionDetailStore,t=a.composeConnectionString();return t===a.initialConnectionString?(0,S.resolve)(null):e.performConnection(t).then(function(e){return(0,V.getOr)(void 0,"messages[0].messages[0]",e)})},a.renderLoadingBar=function(){return D.default.createElement("div",{className:"u-posAbsolute u-posFit u-bgWhite"},D.default.createElement(q,null))},a.onClosing=function(e,t){"accept"===t?a.onOkHandle():"cancel"===t&&a.props.onReject()};var r=e.connectionInfo||{};return a.connectionString=r.connectionString||"",a.isConnectionStringSecure=!(0,V.isEmpty)(a.connectionString),a.connectionStringEncrypted=a.isConnectionStringSecure?"************************************************************":"",a.serverName=r.serverName||"",a.database=r.database||"",a.authentication=w.default.AUTHENTICATION_TYPES.Standard.value||"",a.login=r.login||"",a.password=r.password||"",a.isPasswordSecure=!(0,V.isEmpty)(a.connectionString),a.passwordEncrypted=a.isPasswordSecure?"**********":"",a.options=r.options||"",a}return(0,O.default)(t,e),(0,A.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.setState({isLoading:!0}),this.loadConnectionStringData().then(function(t){if((0,V.isNil)(t))return null;var a=(0,V.getOr)(null,"[1]",(0,V.flattenDeep)(t));if((0,V.isEmpty)(a))return null;e.initialConnectionString=a.connectionString,e.connectionString=a.connectionString,e.isConnectionStringSecure=!(0,V.isEmpty)(e.connectionString),e.connectionStringEncrypted=e.isConnectionStringSecure?"************************************************************":"",e.serverName=a.serverName,e.database=a.databaseName,e.login=a.login,e.password=a.password,e.isPasswordSecure=!(0,V.isEmpty)(e.connectionString),e.passwordEncrypted=e.isPasswordSecure?"**********":"",e.options=a.options}).finally(function(){return e.setState({isLoading:!1})})}},{key:"loadConnectionStringData",value:function(){var e=(0,V.getOr)(null,"props.connectionDetailStore",this);if((0,V.isNil)(e))return(0,S.resolve)(null);var t=e.item;return new C.default(function(a,r){e.loadConnectionStringData(t).then(function(e){e.success?a((0,V.toPairs)(e.data)):r(e)},function(e){r(e)})})}},{key:"buildAuthenticationOptions",value:function(){var e=this.props.serverType||"",t=w.default.AUTHENTICATION_TYPES,a=[{value:t.Standard.value,label:String.format(t.Standard.displayPattern,e)},{value:t.Trusted.value,label:t.Trusted.displayPattern}];return D.default.createElement(k.default,{id:"connectionStringBuilder_Authentication",options:a,value:this.authentication,labelField:"label",valueField:"value",onChange:this.handleAuthenticationInput})}},{key:"composeConnectionString",value:function(){var e=this.password,t=this.login,a=this.database,r=this.serverName,n=this.authentication,i=this.isConnectionStringMode,o=this.connectionString;if(i)return o;var l=w.default.AUTHENTICATION_TYPES,s="",u=void 0;return n===l.Standard.value?s=l.Standard.connectionStringPattern:n===l.Trusted.value&&(s=l.Trusted.connectionStringPattern),""!==s&&(u=String.format(s,r,a,t,e)),u}},{key:"onOkHandle",value:function(){var e=this,t=this.props,a=t.validation,r=t.connectionDetailStore,n=r.item.name;return this.setState({isLoading:!0}),a.validate().then(function(t){t?(e.props.onAccept(),e.props.onOk&&e.props.onOk(r.item.connectionString)):(r.item.name=n,e.setState({isLoading:!1}))}),!1}},{key:"renderContent",value:function(){var e=this,t=this.authentication,a=this.serverName,r=this.database,n=this.login,i=this.options,o=this.password,l=this.passwordEncrypted,s=this.isPasswordSecure,u=this.connectionString,d=this.isConnectionStringMode,c=this.connectionStringEncrypted,p=this.isConnectionStringSecure,f=w.default.AUTHENTICATION_TYPES,h=w.default.SERVER_NAME_CONSTRAINT,m=w.default.DATABASE_CONSTRAINT,g=w.default.CONNECTION_STRING_CONSTRAINT,E=this.props.isConnectionStringEnabled,y=function(t){return(0,V.merge)(t,{action:function(){return function(){return e.connectionStringCustomValidation()}}})},v=t===f.Trusted.value,T=E&&d;return D.default.createElement("form",null,E&&D.default.createElement(z.default,{offLabel:F.default.getText("CONNECTION_LABEL_CONNECTION_STRING"),onLabel:F.default.getText("CONNECTION_LABEL_CONNECTION_BUILDER"),value:d,onChange:function(){return e.isConnectionStringMode=!e.isConnectionStringMode}}),E&&D.default.createElement("hr",{className:"izenda-full-hr"}),T&&D.default.createElement("div",{className:"form-horizontal"},D.default.createElement("div",{className:"form-group"},D.default.createElement("label",{className:"control-label col-md-3 validation required"},F.default.getText("CONNECTION_LABEL_CONNECTION_STRING")),D.default.createElement("div",{className:"col-md-9"},D.default.createElement(W,{className:"form-control",name:"connectionString",onFocus:this.handleConnectionStringInputFocus,onChange:this.handleConnectionStringInput,value:p?c:u,type:p?"password":"text",maxLength:"MAX",validations:y(g),field:"connectionString"})))),!T&&D.default.createElement("div",{className:"form-horizontal"},D.default.createElement("div",{className:"form-group"},D.default.createElement("label",{className:"control-label col-md-3 validation required"},F.default.getText("CONNECTION_STRING_BUILDER_LABEL_SERVER_NAME")),D.default.createElement("div",{className:"col-md-9"},D.default.createElement(W,{className:"form-control",name:"serverName",onChange:this.handleServerNameInput,value:a,type:"text",validations:y(h),field:"serverName"}))),D.default.createElement("div",{className:"form-group"},D.default.createElement("label",{className:"control-label col-md-3 validation required"},F.default.getText("CONNECTION_STRING_BUILDER_LABEL_DATABASE")),D.default.createElement("div",{className:"col-md-9"},D.default.createElement(W,{className:"form-control",name:"database",onChange:this.handleDatabaseInput,value:r,type:"text",validations:m,field:"database"}))),D.default.createElement("div",{className:"form-group"},D.default.createElement("label",{className:"control-label col-md-3"},F.default.getText("CONNECTION_STRING_BUILDER_TEXT_AUTHENTICATION")),D.default.createElement("div",{className:"col-md-9"},this.buildAuthenticationOptions())),D.default.createElement("div",{className:"form-group"},D.default.createElement("label",{className:"control-label col-md-3"},F.default.getText("COMMON_LABEL_LOGIN")),D.default.createElement("div",{className:"col-md-9"},D.default.createElement(W,{className:"form-control text-box single-line",name:"Login",type:"text",value:n,onChange:this.handleLoginInput,disabled:v}))),D.default.createElement("div",{className:"form-group"},D.default.createElement("label",{className:"control-label col-md-3"},F.default.getText("COMMON_LABEL_PASSWORD")),D.default.createElement("div",{className:"col-md-9"},D.default.createElement("input",{className:"form-control text-box single-line",name:"Password",type:"password",value:s?l:o,onFocus:this.handlePasswordInputFocus,onChange:this.handlePasswordInput,disabled:v}))),D.default.createElement("div",{className:"form-group"},D.default.createElement("label",{className:"control-label col-md-3"},F.default.getText("COMMON_LABEL_OPTIONS")),D.default.createElement("div",{className:"col-md-9"},D.default.createElement(W,{className:"form-control text-box single-line",name:"Options",type:"text",value:i,onChange:this.handleOptionsInput})))))}},{key:"render",value:function(){var e=this.state.isLoading;return D.default.createElement(x.default,{visible:!0,onClosing:this.onClosing,type:"none",autoClose:!1},D.default.createElement(x.default.Header,{title:F.default.getText("CONNECTION_STRING_BUILDER_LABEL_DATABASE_CONNECTION")}),D.default.createElement(x.default.Body,{className:"connection-string-builder-popup-content"},this.renderContent(),e&&this.renderLoadingBar()),D.default.createElement(x.default.Footer,null,D.default.createElement(x.default.ConfirmationButton,{type:"accept",disabled:e},F.default.getText("COMMON_LABEL_OK")),D.default.createElement(x.default.ConfirmationButton,{type:"cancel",disabled:e},F.default.getText("COMMON_LABEL_CANCEL"))))}}]),t}(I.Component),y.propTypes={serverName:L.default.string,database:L.default.string,login:L.default.string,password:L.default.string,options:L.default.string,onOk:L.default.func.isRequired,connectionInfo:L.default.object,isConnectionStringEnabled:L.default.bool,connectionDetailStore:L.default.any},y.defaultProps={serverName:"",database:"",login:"",password:"",options:"",modalId:"myModal",connectionInfo:null,isConnectionStringEnabled:!1},i=K((n=v).prototype,"isConnectionStringSecure",[P.observable],{enumerable:!0,initializer:function(){return!0}}),o=K(n.prototype,"isConnectionStringMode",[P.observable],{enumerable:!0,initializer:function(){return!1}}),l=K(n.prototype,"connectionString",[P.observable],{enumerable:!0,initializer:function(){return""}}),s=K(n.prototype,"connectionStringEncrypted",[P.observable],{enumerable:!0,initializer:function(){return""}}),u=K(n.prototype,"serverName",[P.observable],{enumerable:!0,initializer:function(){return""}}),d=K(n.prototype,"database",[P.observable],{enumerable:!0,initializer:function(){return""}}),c=K(n.prototype,"authentication",[P.observable],{enumerable:!0,initializer:function(){return""}}),p=K(n.prototype,"login",[P.observable],{enumerable:!0,initializer:function(){return""}}),f=K(n.prototype,"password",[P.observable],{enumerable:!0,initializer:function(){return""}}),h=K(n.prototype,"passwordEncrypted",[P.observable],{enumerable:!0,initializer:function(){return""}}),m=K(n.prototype,"isPasswordSecure",[P.observable],{enumerable:!0,initializer:function(){return!0}}),g=K(n.prototype,"options",[P.observable],{enumerable:!0,initializer:function(){return""}}),E=K(n.prototype,"handleConnectionStringInput",[P.action],{enumerable:!0,initializer:function(){var e=this;return function(t){e.connectionString=t.target.value}}}),K(n.prototype,"onOkHandle",[P.action],(0,_.default)(n.prototype,"onOkHandle"),n.prototype),r=n))||r;t.default=Q,Q.$popupName="ConnectionStringBuilder",e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=E(a(14)),l=E(a(6)),s=E(a(2)),u=E(a(3)),d=E(a(7)),c=E(a(8)),p=a(0),f=E(p),h=E(a(13)),m=E(a(19)),g=a(1);function E(e){return e&&e.__esModule?e:{default:e}}var y=(n=r=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return i.call(a),a.state={value:e.value,secure:e.secure},a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.props!==e&&this.setState({value:e.value,secure:e.secure})}},{key:"render",value:function(){var e=this.props,t=this.state,a=(0,g.isEmpty)(e.autoComplete)?"new-password":e.autoComplete,r=(0,g.omit)(["className","onChange","onReset","enabled","secure","value"],e);return f.default.createElement(m.default,(0,o.default)({autoComplete:a,className:e.className,type:t.secure?"password":"text",onChange:this.guardOnChange,value:t.value,onFocus:this.reset,disabled:!e.enabled},r))}}]),t}(p.Component),r.propTypes={className:h.default.string,value:h.default.string,secure:h.default.bool,enabled:h.default.bool,onChange:h.default.func,onReset:h.default.func,autoComplete:h.default.string},r.defaultProps={className:"",value:"",secure:!1,enabled:!0,onChange:function(){},onReset:function(){}},i=function(){var e=this;this.reset=function(){var t=e.props;t.secure&&e.setState({value:"",secure:!1},function(){t.onReset&&t.onReset()})},this.guardOnChange=function(t){var a=e.props;e.state.secure||a.onChange(t)}},n);t.default=y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=P(a(14)),l=P(a(6)),s=P(a(2)),u=P(a(3)),d=P(a(7)),c=P(a(8)),p=a(0),f=P(p),h=P(a(13)),m=P(a(4)),g=P(a(24)),E=a(9),y=a(1),v=P(a(119)),T=P(a(25)),_=P(a(75)),S=P(a(182)),C=a(46),b=P(a(30)),N=P(a(116)),A=P(a(15)),R=P(a(19)),O=P(a(2843)),I=P(a(29)),D=P(a(2845));function P(e){return e&&e.__esModule?e:{default:e}}var L=g.default.notifyChange,M=(0,T.default)()(I.default),F=(0,m.default)(D.default)((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,u=Array(i),c=0;c0&&t.setConnectionDetail(t.list[0]),null})})}return(0,p.default)(e,[{key:"setFilter",value:function(e){this.filter=e||""}},{key:"setConnectionDetail",value:function(e){if((0,h.isNil)(this.item.id)){var t=this.list.indexOf(this.item);t>=0&&this.list.splice(t,1)}this.item=e}},{key:"readConnectionList",value:function(e){this.list=(0,h.map)(function(e){var t=new y.default;return t.readDetail(e),t},e)}},{key:"findDbTypeInList",value:function(e){return e&&this.dbTypeList.find(function(t){return t.id===e})||null}},{key:"readDbTypeList",value:function(e){this.dbTypeList=e}},{key:"addConnection",value:function(e){return this.item=new y.default,this.item.id=e,(0,d.resolve)(this.item)}},{key:"nextConnection",value:function(e){if(((0,h.isNil)(this.item)||(0,h.isNil)(this.item.id))&&(0,h.isNil)(e))(0,h.isEmpty)(this.list)?this.addConnection():this.item=(0,h.head)(this.list);else if(this.item.id!==e){var t=(0,h.find)(["id",e],this.filteredConnections)||(0,h.find)(["id",e],this.list);(0,h.isNil)(t)?this.addConnection():this.item=t}}},{key:"loadList",value:function(e){var t=this,a=(0,h.isEmpty)(e)?this.tenantId:e;return(0,d.join)(m.default.getAllConnectionString(a),m.default.getSupportedDatabaseType(),(0,f.action)(function(e,a){return t.readDbTypeList(a),t.readConnectionList(e),null})).then(function(){return(0,h.isEmpty)(t.list)&&t.addConnection(),null})}},{key:"updateToggleVisibility",value:function(e){return(e.visible?m.default.invisible:m.default.visible)(e.id).then((0,f.action)(function(){return g.default.increaseDetectChangeVisibleConnection(),e.toggleVisibility(),(0,d.resolve)()}))}},{key:"deleteConnection",value:function(e){var t=this;return m.default.delete(e.id).then((0,f.action)(function(){g.default.increaseDetectChangeVisibleConnection();var a,r,n,i,o=(a=t.filteredConnections,r=t.list,n=t.item,(i=function(t){if(e.id===n.id&&t.length>1){var a=(0,h.findIndex)(["id",e.id],t);return a===t.length-1?t[0].id:t[a+1].id}return e.id!==n.id?n.id:null})(a)||i(r));t.nextConnection(o);var l=(0,h.findIndex)(["id",e.id],t.list);return t.list.splice(l,1),null})).then(function(){return e.change!==E.default.DETECTED_CHANGE_LEVEL.NONE&&g.default.increaseDetectChangeCount(),null})}},{key:"addConnectionToList",value:function(e){this.list.push(e)}},{key:"addTempExcelFileToDeleteQueue",value:function(e){this.tempExcelFileConnectionStrings||(this.tempExcelFileConnectionStrings=[]),this.tempExcelFileConnectionStrings.push(e)}},{key:"deleteTempExcelFiles",value:function(){if(this.tempExcelFileConnectionStrings){var e={ConnectionStrings:this.tempExcelFileConnectionStrings};m.default.deleteTempExcelFiles(e)}}},{key:"filteredConnections",get:function(){var e=new RegExp((0,h.escapeRegExp)(this.filter),"i");return(0,h.uniq)((0,h.filter)(function(t){return t.id&&e.test(t.name)},this.list))}},{key:"tenantId",get:function(){return g.default.getTenantId()}}]),e}(),n=_(r.prototype,"item",[f.observable],{enumerable:!0,initializer:function(){return new y.default}}),i=_(r.prototype,"list",[f.observable],{enumerable:!0,initializer:function(){return[]}}),o=_(r.prototype,"filter",[f.observable],{enumerable:!0,initializer:function(){return""}}),l=_(r.prototype,"dbTypeList",[f.observable],{enumerable:!0,initializer:function(){return[]}}),_(r.prototype,"filteredConnections",[f.computed],(0,u.default)(r.prototype,"filteredConnections"),r.prototype),_(r.prototype,"tenantId",[f.computed],(0,u.default)(r.prototype,"tenantId"),r.prototype),_(r.prototype,"setConnectionDetail",[f.action],(0,u.default)(r.prototype,"setConnectionDetail"),r.prototype),_(r.prototype,"readConnectionList",[f.action],(0,u.default)(r.prototype,"readConnectionList"),r.prototype),_(r.prototype,"readDbTypeList",[f.action],(0,u.default)(r.prototype,"readDbTypeList"),r.prototype),_(r.prototype,"addConnection",[f.action],(0,u.default)(r.prototype,"addConnection"),r.prototype),_(r.prototype,"nextConnection",[f.action],(0,u.default)(r.prototype,"nextConnection"),r.prototype),_(r.prototype,"loadList",[f.action],(0,u.default)(r.prototype,"loadList"),r.prototype),_(r.prototype,"updateToggleVisibility",[f.action],(0,u.default)(r.prototype,"updateToggleVisibility"),r.prototype),_(r.prototype,"deleteConnection",[f.action],(0,u.default)(r.prototype,"deleteConnection"),r.prototype),_(r.prototype,"addConnectionToList",[f.action],(0,u.default)(r.prototype,"addConnectionToList"),r.prototype),_(r.prototype,"deleteTempExcelFiles",[f.action],(0,u.default)(r.prototype,"deleteTempExcelFiles"),r.prototype),r);t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b,N,A,R,O,I=V(a(17)),D=V(a(23)),P=V(a(2)),L=V(a(3)),M=a(1),F=a(5),k=V(a(53)),x=V(a(2869)),w=V(a(190)),B=V(a(44)),U=a(549),z=V(U);function V(e){return e&&e.__esModule?e:{default:e}}function G(e,t,a,r){a&&(0,I.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function H(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Y=(r=(0,F.action)("readDetail"),n=(0,F.action)("readDbSource"),i=(0,F.action)("setConnectionStringStatus"),o=(0,F.action)("setRequest"),l=(0,F.action)("setConnectionString"),s=(0,F.action)("setName"),u=(0,F.action)("setServerTypeId"),(0,k.default)((c=function(){function e(){(0,P.default)(this,e),this.endpointModels=[],G(this,"id",p,this),G(this,"connectionString",f,this),G(this,"previousConnectionStringHasDataSource",h,this),G(this,"name",m,this),G(this,"serverTypeId",g,this),G(this,"serverTypeName",E,this),G(this,"visible",y,this),G(this,"isSelected",v,this),G(this,"change",T,this),G(this,"dbSource",_,this),G(this,"connectionStringChanged",S,this),G(this,"isNewConnectionStringWithoutUpdateDataSource",C,this),G(this,"isCurrentConnectionStringSameAsSavedConnectionString",b,this),G(this,"isConnectionStringValid",N,this),G(this,"isAvailableDataSourceChange",A,this),G(this,"alertMessage",R,this),G(this,"request",O,this)}return(0,L.default)(e,[{key:"readDetail",value:function(e){this.id=e.id,this.connectionString=e.connectionString,this.name=e.name,this.serverTypeId=e.serverTypeId,this.visible=e.visible,this.change=e.physicalChange,this.isConnectionStringValid=!!e.id,this.connectionStringChanged=!1,e.serverTypeName&&(this.serverTypeName=e.serverTypeName),this.resetDirty(),this.resetAvailableDataSourceChange()}},{key:"resetAvailableDataSourceChange",value:function(){this.isAvailableDataSourceChange=!1}},{key:"markAvailableDataSourceChange",value:function(){this.isAvailableDataSourceChange=!0}},{key:"readDbSource",value:function(e){var t=e&&(0,M.forEach)(function(e){e.querySources=(0,M.filter)(function(e){return!(e.type===w.default.QUERY_SOURCE_TYPE.VIEW&&e.isCustomQuerySource)},e.querySources)},e.querySources);this.dbSource=t||[],this.isNewConnectionStringWithoutUpdateDataSource=!1,this.isNew&&this.saveCurrentToPreviousConnectionStringHasDataSource(),this.resetAvailableDataSourceChange()}},{key:"setConnectionStringStatus",value:function(){this.isCurrentConnectionStringSameAsSavedConnectionString=!0,this.isNewSchemaMatchPrevious=!0}},{key:"setRequest",value:function(e){this.request=e,this.markDirty()}},{key:"saveCurrentToPreviousConnectionStringHasDataSource",value:function(){this.previousConnectionStringHasDataSource=this.connectionString}},{key:"readTestResult",value:function(e){}},{key:"readStatusValidateSchema",value:function(e){this.isNewSchemaMatchPrevious=e}},{key:"setConnectionString",value:function(e){this.connectionStringChanged=this.connectionString!==e||(0,M.isEmpty)(e),this.isConnectionStringValid=!this.connectionStringChanged,this.isNewConnectionStringWithoutUpdateDataSource=!0,this.isCurrentConnectionStringSameAsSavedConnectionString=!1,this.isNewSchemaMatchPrevious=!1,this.connectionString=e,this.markDirty()}},{key:"toggleVisibility",value:function(){this.visible=!this.visible}},{key:"setName",value:function(e){this.name=e,this.markDirty()}},{key:"setConnectionStringValid",value:function(e){this.isConnectionStringValid=e}},{key:"setServerTypeId",value:function(e){this.serverTypeId=e,this.markDirty()}},{key:"setChange",value:function(e){this.change=e}},{key:"getData",value:function(e){var t=function(t){return!e&&(!(0,M.has)("selected",t)||t.selected)},a=(0,F.toJS)((0,M.flow)((0,M.filter)(t),(0,M.map)(function e(a){var r=a.querySources,n=(0,M.omit)("querySources",a);return(0,M.assign)(n,{querySources:r?(0,M.flow)((0,M.filter)(t),(0,M.map)(e))(r):null},{})}))(this.dbSource));return{id:this.id,name:this.name,serverTypeId:this.serverTypeId,connectionString:this.connectionString,visible:this.visible,dBSource:{querySources:(0,M.isEmpty)(a)?[]:a}}}},{key:"resetModelError",value:function(){this.setAlertMessage(B.default.EMPTY_MESSAGE),this.setConnectionStringValid(!0)}},{key:"setAlertMessage",value:function(e){this.alertMessage=e}},{key:"isConnectionStringReady",get:function(){return this.visible&&!(0,M.isEmpty)(this.connectionString)&&this.isConnectionStringValid}},{key:"isSecured",get:function(){return this.isConnectionStringValid}},{key:"securedConnectionString",get:function(){return this.isSecured?w.default.CONNECTION_STRING_HASH:this.connectionString}},{key:"requestDetail",get:function(){return this.request||new z.default([],"",U.IZENDA_REQUEST_BODY_LANGUAGES.TEXT)}},{key:"availableQuerySourceTree",get:function(){return new x.default(this.dbSource)}},{key:"selectedQuerySourceTree",get:function(){return new x.default(this.dbSource)}},{key:"isNew",get:function(){return!this.id}},{key:"haveDataSource",get:function(){return!(0,M.isEmpty)(this.dbSource)}},{key:"needConfirmMessageForAvailableDatasouceChange",get:function(){return!this.isNew&&this.isAvailableDataSourceChange}},{key:"needConfirmWhenLeaving",get:function(){return this.isDirty&&this.visible}},{key:"canSave",get:function(){return this.isDirty||0!==this.change}},{key:"notNeedToValidateSchema",get:function(){return!this.haveDataSource||!this.connectionStringChanged||!this.isNewConnectionStringWithoutUpdateDataSource||this.isNew&&this.connectionString===this.previousConnectionStringHasDataSource||this.isCurrentConnectionStringSameAsSavedConnectionString||this.isNewSchemaMatchPrevious}},{key:"needReloadDetectChange",get:function(){return!this.isNew}}],[{key:"constraints",get:function(){return{name:w.default.DATABASE_NAME_CONSTRAINT,connectionString:w.default.CONNECTION_STRING_CONSTRAINT}}}]),e}(),p=H(c.prototype,"id",[F.observable],{enumerable:!0,initializer:function(){return null}}),f=H(c.prototype,"connectionString",[F.observable],{enumerable:!0,initializer:function(){return""}}),h=H(c.prototype,"previousConnectionStringHasDataSource",[F.observable],{enumerable:!0,initializer:function(){return""}}),m=H(c.prototype,"name",[F.observable],{enumerable:!0,initializer:function(){return""}}),g=H(c.prototype,"serverTypeId",[F.observable],{enumerable:!0,initializer:function(){return w.default.SERVER_TYPE.MSSQL}}),E=H(c.prototype,"serverTypeName",[F.observable],{enumerable:!0,initializer:function(){return""}}),y=H(c.prototype,"visible",[F.observable],{enumerable:!0,initializer:function(){return!0}}),v=H(c.prototype,"isSelected",[F.observable],{enumerable:!0,initializer:function(){return!1}}),T=H(c.prototype,"change",[F.observable],{enumerable:!0,initializer:function(){return 0}}),_=H(c.prototype,"dbSource",[F.observable],{enumerable:!0,initializer:function(){return[]}}),S=H(c.prototype,"connectionStringChanged",[F.observable],{enumerable:!0,initializer:function(){return!1}}),C=H(c.prototype,"isNewConnectionStringWithoutUpdateDataSource",[F.observable],{enumerable:!0,initializer:function(){return!0}}),b=H(c.prototype,"isCurrentConnectionStringSameAsSavedConnectionString",[F.observable],{enumerable:!0,initializer:function(){return!0}}),N=H(c.prototype,"isConnectionStringValid",[F.observable],{enumerable:!0,initializer:function(){return!1}}),A=H(c.prototype,"isAvailableDataSourceChange",[F.observable],{enumerable:!0,initializer:function(){return!1}}),R=H(c.prototype,"alertMessage",[F.observable],{enumerable:!0,initializer:function(){return B.default.EMPTY_MESSAGE}}),O=H(c.prototype,"request",[F.observable],{enumerable:!0,initializer:function(){return new z.default([new U.IzendaRequestHeader(!0,"header1","header value 1"),new U.IzendaRequestHeader(!1,"header2","header value 2")],'{\n "Chart":"0",\n "Form":"1",\n "Gauge":"2",\n "Grid":"3",\n "Map":"4"\n}',U.IZENDA_REQUEST_BODY_LANGUAGES.JSON)}}),H(c.prototype,"isConnectionStringReady",[F.computed],(0,D.default)(c.prototype,"isConnectionStringReady"),c.prototype),H(c.prototype,"isSecured",[F.computed],(0,D.default)(c.prototype,"isSecured"),c.prototype),H(c.prototype,"securedConnectionString",[F.computed],(0,D.default)(c.prototype,"securedConnectionString"),c.prototype),H(c.prototype,"requestDetail",[F.computed],(0,D.default)(c.prototype,"requestDetail"),c.prototype),H(c.prototype,"availableQuerySourceTree",[F.computed],(0,D.default)(c.prototype,"availableQuerySourceTree"),c.prototype),H(c.prototype,"selectedQuerySourceTree",[F.computed],(0,D.default)(c.prototype,"selectedQuerySourceTree"),c.prototype),H(c.prototype,"isNew",[F.computed],(0,D.default)(c.prototype,"isNew"),c.prototype),H(c.prototype,"haveDataSource",[F.computed],(0,D.default)(c.prototype,"haveDataSource"),c.prototype),H(c.prototype,"needConfirmMessageForAvailableDatasouceChange",[F.computed],(0,D.default)(c.prototype,"needConfirmMessageForAvailableDatasouceChange"),c.prototype),H(c.prototype,"needConfirmWhenLeaving",[F.computed],(0,D.default)(c.prototype,"needConfirmWhenLeaving"),c.prototype),H(c.prototype,"canSave",[F.computed],(0,D.default)(c.prototype,"canSave"),c.prototype),H(c.prototype,"notNeedToValidateSchema",[F.computed],(0,D.default)(c.prototype,"notNeedToValidateSchema"),c.prototype),H(c.prototype,"needReloadDetectChange",[F.computed],(0,D.default)(c.prototype,"needReloadDetectChange"),c.prototype),H(c.prototype,"readDetail",[r],(0,D.default)(c.prototype,"readDetail"),c.prototype),H(c.prototype,"readDbSource",[n],(0,D.default)(c.prototype,"readDbSource"),c.prototype),H(c.prototype,"setConnectionStringStatus",[i],(0,D.default)(c.prototype,"setConnectionStringStatus"),c.prototype),H(c.prototype,"setRequest",[o],(0,D.default)(c.prototype,"setRequest"),c.prototype),H(c.prototype,"setConnectionString",[l],(0,D.default)(c.prototype,"setConnectionString"),c.prototype),H(c.prototype,"setName",[s],(0,D.default)(c.prototype,"setName"),c.prototype),H(c.prototype,"setServerTypeId",[u],(0,D.default)(c.prototype,"setServerTypeId"),c.prototype),d=c))||d);t.default=Y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(a(20)),n=u(a(2)),i=u(a(3)),o=a(1),l=u(a(1340)),s=u(a(190));u(a(786)),u(a(550));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,null,[{key:"isDbType",value:function(e,t,a){if(!e||!t)return!1;var r=a.findDbTypeInList(e);return!(!r||!r.shortName||r.shortName.toUpperCase()!==t.toUpperCase())}},{key:"openUploadExcelPopup",value:function(e,t){var a=e.openPopup;return new r.default(function(e,r){var n=t.item;a(l.default,{fileExtentions:s.default.EXCEL_FILE_EXTENSIONS,url:t.getUploadUrl(),params:{batchId:String.newGuid(),connectorId:(0,o.getOr)(s.default.EMPTY_GUID,"serverTypeId",n),connectionId:(0,o.getOr)(s.default.EMPTY_GUID,"id",n)},onSuccess:function(a){if(a.success){var n=(0,o.getOr)(null,"data.connectionString",a);t.masterStore.addTempExcelFileToDeleteQueue(n),e(n)}else{var i=(0,o.getOr)(null,"messages[0].messages[0]",a);r(new Error(i))}return connectionString},onError:function(e){return r(e),e}})})}}]),e}();t.default=d,e.exports=t.default},function(e,t,a){"use strict";var r,n=a(14),i=(r=n)&&r.__esModule?r:{default:r};!function(){a(44);var t=a(0),r=a(35),n=a(5),o=a(5).observable,l=a(4),s=a(92),u=a(16),d=a(26),c=a(46).Table,p=a(46).Column,f=a(116),h=a(2889),m=a(2890),g=a(2891),E=a(2892),y=a(2893),v=a(2894),T=a(2895),_=a(2896),S=a(2897),C=a(2898),b=a(18),N=a(249),A=a(189).FIELDCHECK,R=N.TableDefinition,O=a(686).rem2px,I=a(1).getOr,D=t.createClass({displayName:"RelationshipList",propTypes:{store:t.PropTypes.object.isRequired,isPopup:t.PropTypes.bool,isHideActionColumn:t.PropTypes.bool,isHidePaging:t.PropTypes.bool,isSort:t.PropTypes.bool},componentWillMount:function(){this.size=o({height:0});var e=this.props.validation;this.disposeObserveTenantID=n.observe(u,"tenantId",function(){u.silentUpdate||e.reset()})},componentDidMount:function(){var e=r.findDOMNode(this).clientHeight;e>0&&e!==this.size.height&&(this.size.height=e)},componentWillUnmount:function(){this.disposeObserveTenantID()},getDefaultProps:function(){return{isSort:!0}},onSortChange:function(e,t){var a=this;if(this.props.isSort){var r=this.props,n=r.store,i=r.validation,o=function(){return a.props.validation.reset(),n.pageInfo.setColSortDirs(e,t),n.showInvalidScreen?n.getInvalidRelationships().then(function(){var e=n.getInvalidErrors(A);i.updateErrors(e)}):n.getRelationships()};return n.showInvalidScreen?o():this.props.confirmDirtyForm(n.hasChange).then(o)}},onPageSizeChange:function(e){var t=this;return this.props.confirmDirtyForm(this.props.store.hasChange).then(function(){return t.props.validation.reset(),t.props.store.pageInfo.setPageSize(e),t.goToPage(1)})},goToPage:function(e){var t=this;return this.props.confirmDirtyForm(this.props.store.hasChange).then(function(){t.props.validation.reset(),t.props.store.goToPage(e)})},render:function(){var e=this.props.store,a=this.props,r=this.size,n=e.relationshipList,o=I(0,"length",n),l=R.Relationship,s=(a.height||r.height||N.DEFAULT_TABLE_HEIGHT)-N.DEFAULT_REST_HEIGHT-O();return t.createElement("div",{className:"izenda-Wrapper"},t.createElement(d,null,t.createElement("section",{className:"u_paddingLeftRight "},t.createElement(c,{dataSource:n,rowProps:this.getRowProps,onSortChange:this.onSortChange,sortInfo:a.isSort?e.pageInfo.colSortDirs:"",minHeight:s,maxHeight:s,isLoading:a.isLoading},t.createElement(p,(0,i.default)({},l.joinType,{cell:h.bind(this)})),!this.props.isPopup&&t.createElement(p,(0,i.default)({},l.positionId,{cell:m.bind(this)})),t.createElement(p,(0,i.default)({},l.dbName,{cell:g.bind(this)})),t.createElement(p,(0,i.default)({},l.dataObject,{cell:E.bind(this)})),t.createElement(p,(0,i.default)({},l.joinField,{cell:y.bind(this)})),t.createElement(p,(0,i.default)({},l.equal,{cell:t.createElement("div",{className:"equal-sign-in-cell u_textCenter"},"=")})),t.createElement(p,(0,i.default)({},l.frDbName,{cell:v.bind(this)})),t.createElement(p,(0,i.default)({},l.frDataObject,{cell:T.bind(this)})),t.createElement(p,(0,i.default)({},l.frField,{cell:_.bind(this)})),t.createElement(p,(0,i.default)({},l.disabled,{align:"center",cell:C.bind(this)})),!this.props.isHideActionColumn&&t.createElement(p,(0,i.default)({},l.action,{cell:S.bind(this)}))),!this.props.isHidePaging&&t.createElement(f,{onChange:this.goToPage,onDropdownChange:this.onPageSizeChange,pageInfo:e.pageInfo,currentPageSize:o}))))},getRowProps:function(e){return this.props.store.selectedQuerySource?{className:e.isSelected?"selected-row":""}:null},checkExistEntities:function(e,t,a){var r=this.props,n=r.store,i=n.checkExistEntities(e),o=function(){n.updateJoinTypeForSameEntities(e,!0)};if(i){var l=String.format(b.BUNDLE.MESSAGE.CHANGE_JOIN_TYPE,i.joinQuerySourceName,i.foreignQuerySourceName);r.confirmFn("Confirmation",{description:l}).then(o).catch(function(){a.call(e,t)})}else o()}});e.exports=l(s)(D)}()},function(e,t,a){"use strict";!function(){var t=a(0),r=a(24),n=a(5),i=(a(9).observer,a(10)),o=a(4),l=a(28),s=a(169),u=a(26),d=a(240),c=a(29),p=a(2999),f=a(98),h=a(1),m=h.isEmpty,g=h.isFunction;function E(e,a,r,n){var i=function(e,a,r){return function(n){return t.createElement(p,{key:n.id,node:n,store:a,filter:e.filter.text,showCheckbox:r.showCheckbox,showIcon:r.showIcon,showSelected:r.showSelected})}}(e,a,n);return function(e,t){return!(m(e.childNodes)&&!e.isTypeGroup()||!(e.isFieldNode&&t||!e.isFieldNode))}(r,n.showFieldNode)?t.createElement(d,{className:"panel-group collapsible-list-items datasource",key:r.id,autoCollapse:!1,defaultExpand:!0},t.createElement(d.Item,{expanded:!0,key:r.id},t.createElement(d.ItemHeader,{className:"panel-heading"},i(r)),t.createElement(d.ItemBody,{className:"panel-body"},t.createElement(s,{className:"list-group",key:r.id},r.childNodes.map(function(t){return function(t,r){if(g(n.showSelected))return n.showSelected(r)?t.isFieldNode?i(r):E(e,a,r,n):null;return n.showSelected&&!r.checked?t.isFieldNode?i(r):null:E(e,a,r,n)}(r,t)}))))):i(r)}var y=t.createClass({displayName:"SourceTree",propTypes:{store:t.PropTypes.object.isRequired,tree:t.PropTypes.object.isRequired,title:t.PropTypes.string.isRequired,showSelected:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.bool]),showCheckbox:t.PropTypes.bool,showFieldNode:t.PropTypes.bool,showIcon:t.PropTypes.bool},render:function(){var e,a=this.props,n=a.store;a.isDataModel?e=n.item.querySourceTree:a.isTenant?e=n.item.selectedTenant.querySourceTree:a.isDestination&&(e=n.item.selectedTenant.destinationQuerySourceTree);a.localization.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_SOURCE"),this.onChangeSourceDropDown,a.hideDropdown;return t.createElement(l,{className:"u_borderAll workspace-tree u_noMarginAll"},function(e,a){var n=r.notifyChange;return i("search-box",{invisible:!a.item.haveDataSource}),t.createElement("div",{className:"search-box"},t.createElement(f,{value:e.filter.text,onChange:n(e.setFilter.bind(e),r.INPUT),disabled:!a.item.haveDataSource}))}(e,n),t.createElement("div",{className:i(a.className,"workspace-tree-wraper")},t.createElement(u,null,e.root.map(function(t){return t.childNodes.map(function(t){return g(a.showSelected)?a.showSelected(t)?E(e,n,t,a):null:a.showSelected&&!t.checked?null:E(e,n,t,a)})}))))},onChangeSourceDropDown:n.action(function(e){var t=this.props.store,a=this.props.loader;a.startLoading(),t.item.updateDataForDestination(e),t.item.updateSelectedTenantsForDestination(t.item.selectedDestinationTenantIDs,e).finally(a.endLoading.bind(a))})});t.createClass({displayName:"Header",render:function(){var e=this.props;return t.createElement("div",null,t.createElement("span",{className:"u_inlineBlock text-bold"},e.title),e.hideDropdown?null:t.createElement("span",{className:"u_inlineBlock padding-left"},t.createElement(c,{options:e.store.tenantList,onChange:r.notifyChange(e.onChangeSourceDropDown,r.DROPDOWN),value:e.store.item.sourceId,valueField:"id",labelField:"name"})))}});e.exports=o()(y)}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p;r=a(0),n=a(4),i=a(184),o=a(19),l=a(69),s=a(3017),u=a(1),d=u.isEmpty,c=u.invoke,p=r.createClass({displayName:"Tree",propTypes:{resetWorkspaceTenantsStatus:r.PropTypes.func,data:r.PropTypes.object.isRequired,dataPrev:r.PropTypes.array,filterText:r.PropTypes.string,resetPrevData:r.PropTypes.func,leafKey:r.PropTypes.string.isRequired},componentWillMount:function(){this.tree=this.props.buildTree(this.props.data,this.props.filterText)},componentWillReceiveProps:function(e,t){this.tree=this.props.buildTree(e.data,e.filterText)},renderNode:function(e,t,a,r,n){var i,o=this.props,l=o.leafKey,s=e.source,u=!1;switch(e.nodeType){case"All":i=o.onChangeAll.bind(o,s,n);break;case"Category":i=o.onChangeCategory.bind(o,s,n);break;case"SubCategory":i=o.onChangeSubCategory.bind(o,s,n);break;case l:i=o.onChangeLeafNode.bind(o,s,n),u=!0;break;default:return null}return this.renderData(e.source,t,a,r,n,u,i)},renderData:function(e,t,a,n,i,s,u){var c=this.props,p=d(e.name)?"UNCATEGORIZED":e.name;return r.createElement("div",null,r.createElement(o,{type:"checkbox",indeterminate:e.indeterminate,checked:e.checked,onChange:u}),r.createElement(l,{highlight:c.filterText,onClick:a,text:p,className:"selectable u_inline u_paddingLeft",tooltip:p}),s?null:t)},render:function(){var e=this.props,t=c("getChildNodes");return r.createElement(i,{className:"u_paddingRight",nodes:this.tree,renderNode:this.renderNode,getKey:e.getKey,getChildNodes:t,collapsed:!1})}}),e.exports=n(s)(p)},function(e,t,a){"use strict";!function(){var t=a(5),r=a(11).compose,n=a(11).pure,i=a(11).withHandlers,o=a(420),l=o.TABLE_DEF,s=a(1),u=s.curry,d=s.isObject,c=s.isNil,p=s.find,f=r(n,i({onDeleteMapping:u(function(e,t){g(e),e.store.databaseMappingDetail.deleteMapping(t.id)}),onChangeMergeDuplicateMappings:u(function(e,t){g(e),e.store.databaseMappingDetail.setPropertyValue("doesMergeDuplicate",t.target.checked)}),onChangeMappingItem:u(h),onChangeDatabaseName:u(function(e,a,r,n){var i=a===l.fromDatabaseName.key,s=i?e.store.fromDatabaseNameDataSource:e.store.toDatabaseNameDataSource,u=p(function(e){return e[o.DATABASE_NAME_KEY]===n},s.items);if(!u)return;var d=u.databaseServer,c=u.labelField,f=u.databaseUser;t.action(function(){h(e,a,r,c),h(e,i?"fromServer":"toServer",r,d),h(e,i?"fromDatabaseUser":"toDatabaseUser",r,f),i&&m(e,"type",r,o.MAPPING_TYPE.Schema)})()}),onChangeType:u(m),onChangeMappingTenant:u(function(e,t){g(e),e.store.databaseMappingDetail.setPropertyValue("selectedTenantId",t.value,!0)})}));function h(e,t,a,r){a.setPropertyValue(t,d(r)?c(r.value)?r.target.value:r.value:r)}function m(e,a,r,n){t.action(function(){h(0,a,r,n),e.store.loadObjects(r)})()}function g(e){e.validation.reset()}e.exports=f}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(a(0)),n=u(a(13)),i=u(a(15)),o=u(a(62)),l=u(a(30)),s=u(a(4));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=e.localization,a=e.cancelChangeConfig,n=e.saveConfig,s=e.store.alertDetails,u=e.resetAlert;return r.default.createElement(i.default,null,r.default.createElement(i.default.Row,null,r.default.createElement(i.default.Col,{cols:9},r.default.createElement(o.default,{type:s.alertType,onAutoHide:u},s.message)),r.default.createElement(i.default.Col,{cols:3},r.default.createElement(l.default,{label:t.getText("COMMON_LABEL_CANCEL"),className:"u_floatRight btn-report-default",onClick:a}),r.default.createElement(l.default,{label:t.getText("COMMON_LABEL_SAVE"),className:"u_marginLeftRight u_floatRight btn-primary",onClick:n}))))};d.propsType={store:n.default.object,localization:n.default.object,saveConfig:n.default.func,cancelChangeConfig:n.default.func,resetAlert:n.default.func},t.default=(0,s.default)()(d),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(a(14)),n=a(9),i=m(a(0)),o=m(a(19)),l=m(a(1364)),s=m(a(794)),u=m(a(3104)),d=m(a(3108)),c=m(a(3110)),p=a(102),f=a(1),h=m(a(10));function m(e){return e&&e.__esModule?e:{default:e}}var g={fieldcomparison:{component:l.default,props:{labelField:"sourceFieldName",valueField:"querySourceFieldId",groupBy:"sourceDataObjectName"}},"date&time":{component:u.default},string:{component:s.default},comparison:{component:d.default},boolean:{component:o.default},equivalence:{component:c.default}};t.default=(0,n.observer)(function(e){var t,a,n=e.filterInfo,o=e.className,l=n.group||{},s=n.operator||{},u=l.key,d=s.key,c=(t=g,a=u,(0,f.get)(a,t));var m,E,y=(0,h.default)("u_marginTop izenda-OperatorValue",o);return!(0,f.isNil)(c)&&(m=[p.OPERATOR_GROUP.BOOLEAN,p.OPERATOR_GROUP.UNKNOWN],E=[p.OPERATOR.BLANK,p.OPERATOR.NOTBLANK,p.OPERATOR.UNKNOWN,p.OPERATOR.NULL,p.OPERATOR.NOTNULL],!(0,f.some)(function(e){return e===u},m)&&!(0,f.some)(function(e){return e===d},E))&&i.default.createElement("div",{className:y},i.default.createElement(c.component,(0,r.default)({},c.props,e)))}),e.exports=t.default},function(e,t,a){"use strict";!function(){a(60);var t=a(0),r=a(19),n=a(102),i=a(1),o=(i.isNil,i.isEmpty),l=t.createClass({displayName:"OperatorValueInput",propTypes:{filterInfo:t.PropTypes.object.isRequired},render:function(){var e=this.props,a=e.filterInfo||{};return t.createElement(r,{onChange:function(t){if(e.isNumberInput&&!o(t.target.value)&&!String.isPatternFormat(t.target.value,n.REGEX.INT_NUMBER))return;e.onChange([t.target.value])}.bind(this),value:a.value&&a.value[0],className:"form-control",disabled:e.disabled})}});e.exports=l}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(6)),l=_(a(2)),s=_(a(3)),u=_(a(7)),d=_(a(8)),c=a(9),p=a(0),f=_(p),h=_(a(35)),m=_(a(10)),g=_(a(29)),E=_(a(793)),y=_(a(102)),v=a(1),T=_(a(13));function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,c.observer)((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0&&t.setOperatorId(n[0].id)}}},{key:"getOperators",value:function(e,t,a){var r=e.operators,n=a?y.default.BLANK_VALUE_LIST:y.default.OPERATOR_VALUE_LIST;return t||a?(0,v.filter)(function(e){return(0,v.includes)(e.name,n)},r):r}},{key:"render",value:function(){var e=this.props,t=e.configField,a=e.notInReportDesignerMode,r=e.configField,n=r.operatorSourceValue,i=r.availableOperatorGroup,o=r.filterInfo,l=r.filterInfo,s=l.groupId,u=l.operatorId,d=r.fieldDetails.isParameter,c=e.className,p=e.hideValue,h=e.store,T=e.isLazyLoading,_=e.updateSourceValue,S=e.renderInContainer,C=(0,v.get)("fieldDetails.dataType",t),b=y.default.BLANK_NULL_OPERATOR.indexOf((0,v.toLower)(C))>-1,N=this.getOperators(t,a,b);d&&(N=(0,v.filter)(function(e){var t=(0,v.get)(C,y.default.PARAM_OPERATOR_BY_DATA_TYPE);return e.allowParameter&&(!t||t.indexOf(e.key)>-1)},N));var A=(0,m.default)(c,{"operator-group":!a});return f.default.createElement("section",{className:A},!a&&f.default.createElement(g.default,{renderInContainer:S,className:"izenda-OperatorGroup",options:i,onChange:this.onChangeOperatorGroup,value:s,valueField:"id",labelField:"name"}),!(0,v.isEmpty)(N)&&f.default.createElement(g.default,{renderInContainer:S,className:"operator",options:N,onChange:this.onChangeOperator,value:u,valueField:"id",labelField:"name"}),!(!0===p||b)&&f.default.createElement(E.default,{closePopover:this.props.closePopover,renderInContainer:S,filterSource:n,filterInfo:o,updateSourceValue:_,operatorGroup:t,onChange:this.onChangeOperatorValue,store:h,isLazyLoading:T,configField:t,updateKeepShowingHost:this.props.updateKeepShowingHost,disabled:this.props.disabled}))}},{key:"updateSourceFilter",value:function(){var e=this.props,t=e.configField,a=e.configField,r=a.filterInfo,n=a.fieldDetails,i=e.notInReportDesignerMode,o=e.hideValue,l=r.operatorId;(0,v.isNil)(n.operatorId)&&l&&t.setOperatorId(l),i?this.props.updateSourceValue(t):!0!==o&&(t.resetOperatorSourceValue(),t.isUpdateSource&&this.props.updateSourceValue(t))}},{key:"updateDisableCascading",value:function(){this.props.reportFilters.disableCascading()}},{key:"componentDidUpdate",value:function(){var e=h.default.findDOMNode(this),t=e.getElementsByClassName("operator");t=t.length?t[0]:null,e.getElementsByClassName&&e.getElementsByClassName("btn-popup").length?t&&t.setAttribute("data-inlineOpValue",!0):t&&t.setAttribute("data-inlineOpValue",!1)}}]),t}(p.Component),n.propTypes={configField:T.default.object.isRequired,updateSourceValue:T.default.func.isRequired},r=i))||r;t.default=S,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p;r=a(0),n=a(3128),i=a(326),o=a(1091),l=a(3129),s=a(208),u=a(1009),d=a(313),c=a(1).isNil,p=r.createClass({displayName:"AffixContainer",propTypes:{affixClass:r.PropTypes.string,getAffix:r.PropTypes.func.isRequired,onAffix:r.PropTypes.func},componentDidMount:function(){this.listen()},componentWillUnmount:function(){this.unlisten()},render:function(){return r.createElement(n,{className:this.props.className,onChanged:this.onAffixChanged},r.createElement("div",{ref:"spaceDiv",style:{height:"0px"}}),this.props.children)},listen:function(){var e=function(){this.onAffixChanged(null)}.bind(this),t=this.props.getAffix(),a=i.findScrollableParent(t);a&&a.addEventListener("scroll",e,{passive:!0}),this.unlisten=function(){a&&a.removeEventListener("scroll",e,{passive:!0})}},onAffixChanged:function(e){c(e)?this.update(this.onEdge,!1):(this.onEdge=e,this.rafCancelId&&o.cancel(this.rafCancelId),this.rafCancelId=o(function(){this.update(this.onEdge,!0)}.bind(this)))},update:function(e,t){var a=this.props.getAffix();if(a){var r=i.findScrollableParent(a),n=e?"absolute":"static",o=d(a),c=this.refs.spaceDiv;this.scrollTop=r?r.scrollTop:0,e?(this.lastOffset=o,s(a,{position:n,width:"100%",zIndex:1,top:(this.scrollTop||0)+"px"}),l.addClass(a,this.props.affixClass||"affix"),s(c,{height:o.height+"px"}),this.props.onAffix&&this.props.onAffix(t)):this.lastOffset&&(u(a,"width"),u(a,"z-index"),s(a,{position:n,top:this.lastOffset.top+"px"}),l.removeClass(a,this.props.affixClass||"affix"),s(c,{height:"0px"}))}}}),e.exports=p},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(76),i=(r=n)&&r.__esModule?r:{default:r};var o="importManagement/";t.default={BASE_PATH:o,validateImportContent:function(e){return(0,i.default)(o+"validate").post(e)},uploadFiles:function(e){return(0,i.default)(o+"file").upload(e)},getDetailFile:function(e){return(0,i.default)(o+"information").post(e)},validateOverride:function(e){return(0,i.default)(o+"validateOverride").post(e)},importFiles:function(e){return(0,i.default)(o+"import").post(e)},cancelImport:function(e){return(0,i.default)(o+"cancel").post(e)},getImportStatus:function(e){return(0,i.default)(o+"status").post(e)},getDatabaseMappings:function(e){return(0,i.default)(o+"databaseMapping").post(e)},removeFiles:function(e){return(0,i.default)(o+"removeFiles").post(e)},removeFilesSync:function(e){return(0,i.default)(o+"removeFiles").post(e,null,!1)},loadImportHistories:function(e){return(0,i.default)(o+"loadImportHistories").post(e)},deleteHistories:function(e){return(0,i.default)(o+"deleteHistories").post(e)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c=Z(a(17)),p=Z(a(14)),f=a(20),h=Z(a(6)),m=Z(a(2)),g=Z(a(3)),E=Z(a(7)),y=Z(a(8)),v=a(5),T=a(0),_=Z(T),S=a(1),C=Z(a(13)),b=Z(a(4)),N=Z(a(10)),A=Z(a(284)),R=Z(a(415)),O=Z(a(338)),I=Z(a(518)),D=Z(a(18)),P=Z(a(55)),L=Z(a(3206)),M=Z(a(3228)),F=Z(a(803)),k=Z(a(1389)),x=Z(a(1394)),w=Z(a(808)),B=Z(a(555)),U=Z(a(229)),z=Z(a(308)),V=Z(a(1396)),G=Z(a(1382)),H=Z(a(62)),Y=Z(a(16)),j=Z(a(30)),K=Z(a(37)),W=a(40),q=Z(a(49)),Q=Z(a(1391)),X=Z(a(92)),J=Z(a(547));function Z(e){return e&&e.__esModule?e:{default:e}}function $(e,t,a,r){a&&(0,c.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function ee(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var te=(0,b.default)(G.default,X.default)((d=u=function(e){function t(e){(0,m.default)(this,t);var a=(0,E.default)(this,(t.__proto__||(0,h.default)(t)).call(this,e));return $(a,"viewerContentHeight",i,a),$(a,"footerHeight",o,a),$(a,"isCacheEnable",l,a),a.handleNeedUpdateResultChanged=function(e){a.props.handleNeedUpdateResultChanged(e,a.masterStore.alertDetails)},$(a,"updateViewerContentHeight",s,a),a.updateReportParts=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(){var t=a.props.loader,r=a.reportDesignerFieldsStore;t.startLoading();var n=void 0;if(a.props.editMode)n=a.masterStore.saveDraftReport(D.default.PAGE_NAME.FIELDS,!0).then(function(){return r.updateReportsParts(e)});else{r.model.reportFilter.updateFilterInfoForSubReport();var i=(0,S.getOr)([],"model.reportBody.reportParts",r);(0,S.map)(function(e){var t=e.reportInfo||[];(0,S.map)(function(e){e.separatorInfo&&(e.separatorInfo.isExpand=!0)},t)},i),n=r.updateReportsParts(e)}return n.finally(function(){t.endLoading()})}},a.removeCrossFiltering=function(e){a.reportDesignerFieldsStore.removePill(e)},a.removeAllCrossFiltering=function(){a.reportDesignerFieldsStore.removeAllPills()},a.resetDefaultValue=function(){a.reportDesignerFieldsStore.resetCrossFilterDefaultValue()},a.setViewerContentRef=function(e){a.viewerContentNode=e,a.updateViewerContentHeight()},a.cancelReport=function(){var e=a.props,t=e.loader,r=e.store,n=e.router,i=e.route.name,o=e.params.id,l=e.location.query.inheritFilter;return r.readReport(null),a.returnToReportDefinition(l,i,o,n),t.startLoading(),r.cancelChanges().then(function(){t.endLoading(),a.init(void 0,!0)})},a.resetReport=function(){var e=a.props,t=e.store,r=e.router,n=e.route.name,i=e.params.id,o=e.location.query.inheritFilter;return t.readReport(null),a.returnToReportDefinition(o,n,i,r),t.cancelChanges().then(function(){a.init(void 0,!0)})},a.setViewerRef=function(e){a.viewerNode=e},a.returnToReportDefinition=function(e,t,a,r){if(e){var n=K.default.getReportUrl(t,{id:a});r.push({pathname:n})}},a.startTime=(new Date).getTime(),a.initState(e),a}return(0,y.default)(t,e),(0,g.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=(0,S.get)("state.fromList",e.location),a=(0,S.get)("state.fromReportDesigner",e.location),r=(0,S.get)("state.fromQuickEdit",e.location);if((0,S.get)("location.pathname",this.props)!==(0,S.get)("location.pathname",e)&&!t&&!a&&!r)return this.initState(e),this.init(e)}},{key:"componentDidMount",value:function(){this.rotateLandscape()}},{key:"initState",value:function(e){var t=e.store,a=e.params,r=e.location,n=e.editMode,i=this.getParamID(a.id),o=(0,S.get)("query.tenantId",r);(0,S.isEmpty)(o)||Y.default.setTenantId(o,!0),(t.selectedReportId!==i||t.selectedReportId===i&&t.version!==a.version)&&t.resetModel(),this.masterStore=new A.default(!0,i,t.report,null,n),this.authorizationStore=new R.default,this.reportDesignerFieldsStore=new O.default(this.masterStore,!0),this.reportDesignerDataSource=new I.default(this.masterStore),this.cachingConfiguration=new J.default,this.observeNeedUpdateResult(),t.updateReportId(i,a.version),t.model.resetReportList()}},{key:"init",value:function(e,t){var a=this,r=e||this.props,n=r.store,i=r.loader,o=this.getParamID((0,S.get)("params.id",r));return i.startLoading(),(0,f.join)(this.masterStore.validateReportId(!0),this.authorizationStore.loadAccessPriority(o),(0,v.action)(function(e,i){return a.masterStore.setAccessPriority(i),a.cachingConfiguration.loadCachingConfiguration(!1).then(function(e){a.isCacheEnable=(0,S.getOr)(!1,"dataCacheSetting.isEnableDataCache",e)}),e&&a.masterStore.cancelChanges().then(function(){return(0,f.all)([a.loadInitialData(r,n.version,t),a.masterStore.init()])})})).finally(i.endLoading.bind(i))}},{key:"rotateLandscape",value:function(){var e=this;"onorientationchange"in window&&window.addEventListener("orientationchange",function(){e.setState({orientation:!e.state.orientation})},!1)}},{key:"getParamID",value:function(e){var t=e;return e&&e.indexOf("?")>0&&(t=e.split("?")[0]),t}},{key:"componentDidMount",value:function(){var e=this;this.cascadingChangedDisposer=(0,v.observe)(this.masterStore,"showCascadingChangedMessage",this.props.handleCascadingChanged),this.needUpdateResultChangedDisposer=(0,v.observe)(this.masterStore,"needUpdateResult",this.handleNeedUpdateResultChanged),this.init().then(function(){var t=(new Date).getTime()-e.startTime;return e.props.store.updateRenderingTime(t)}),this.updateViewerContentHeight()}},{key:"observeNeedUpdateResult",value:function(){this.needUpdateResultChangedDisposer&&this.needUpdateResultChangedDisposer(),this.needUpdateResultChangedDisposer=(0,v.observe)(this.masterStore,"needUpdateResult",this.handleNeedUpdateResultChanged)}},{key:"componentWillUnmount",value:function(){this.reportDesignerFieldsStore.terminateAllReportPartWorker(),this.props.store.readReport(this.masterStore.model),this.cascadingChangedDisposer&&this.cascadingChangedDisposer(),this.needUpdateResultChangedDisposer&&this.needUpdateResultChangedDisposer(),this.masterStore.destroy()}},{key:"loadInitialData",value:function(e,t,a){var r=this,n=e.store,i=e.params,o=e.location,l=this.getParamID(i.id),s=this.reportDesignerFieldsStore,u=this.masterStore,d=o.query,c=(0,S.getOr)(null,"state.page",o);return(0,S.get)("tempUrl",d)?(this.subReportFilter=U.default.readSubReportQuery(d),this.masterStore.model.setSubReportFilters(this.subReportFilter,!1)):(this.subReportFilterFromQuery=U.default.convertQueryToFilter(d),this.masterStore.model.setSubReportFilters(this.subReportFilterFromQuery,!0)),n.updateReportId(l,i.version),this.masterStore.model.displayMode.reset(),(this.subReportFilterFromQuery?z.default.resolveSubReportFilter(this.subReportFilterFromQuery):(0,f.resolve)(this.subReportFilter)).then(function(e){return r.masterStore.model.setSubReportFilters(e,!1),null}).then(function(){return n.report?(0,f.resolve)():r.masterStore.loadReportDesigner(n.version,null,c,a)}).then(function(t){var a=t||{},i=!(0,S.isNil)(a)&&!(0,S.isNil)(a.messages)&&!(0,S.isEmpty)(a.messages[0].detail)&&"NoPermission"===a.messages[0].detail;if(!(0,S.isEmpty)(a)){r.masterStore.model.dataSource.readDataSourceGrid((0,S.get)("reportRelationship",a)),n.reportType=(0,S.getOr)(P.default.CATEGORY_TYPE.REPORT,"type",a).toString(),n.reportName=(0,S.getOr)("","name",a),n.categoryId=a.categoryId||P.default.EMPTY_GUID,!n.selectedCategoryId&&(n.selectedCategoryId=a.subCategoryId||a.categoryId);var o={selectedReport:l,masterReportId:d.masterReportId,reportFilter:d.inheritFilter};s.validateFilterFieldsTypeSubReport(o).then(function(t){var a=(0,S.getOr)(null,"messages[0]",t);if((0,S.isNil)(a))t&&(u.alertDetails.set({success:!0,message:e.localization.getText("REPORTDESIGNER_FILTER_LOGIC_REPORT")}),s.reportFilters.setLogic(""));else{var r=e.localization.getText("COMMON_MESSAGES_GENERIC_ERROR");u.alertDetails.set({success:!1,errors:[{message:(0,S.getOr)(r,"messages[0]",a)}]})}})}var c=t.reportFilter.filterFields;return(0,S.some)("isOveridingInheritedFilter",c)&&r.masterStore.model.markDirty(),!i&&e.detectReportChange(r.masterStore)}).then(function(t){return t?(0,f.join)(s.getFilterData(n.version,null,null,null,e.editMode),s.loadAvailableQuerySourceFields(u.reportId)):t})}},{key:"renderReportFilter",value:function(){var e=this.reportDesignerFieldsStore,t=e.reportBody,a=(0,S.get)("reportStore.model.accessPriority",e),r=this.props,n=r.localization,i=e.reportStore.model.displayMode,o=(0,S.get)("doesDisableUpdateResultBtn",i),l={updateResults:r.updateResults(e,this.updateReportParts(!1)),doesDisableUpdateResultBtn:o,localization:n,accessPriority:a};return r.editMode?_.default.createElement(B.default,{className:"izenda-FilterGroupPanel u_noMarginAll"},_.default.createElement(k.default,{store:e,viewMode:!1,editMode:r.editMode,uiStore:Q.default.targetOptions,afterToggled:this.updateViewerContentHeight,afterMove:this.updateViewerContentHeight,updateResultInfo:l})):_.default.createElement(F.default,{accessPriority:a,afterToggled:this.updateViewerContentHeight,afterMove:this.updateViewerContentHeight,fieldStore:e,configFields:e.reportFilters.displayConfigFields,isLazyLoading:!0,isReport:!0,removeCrossFiltering:this.removeCrossFiltering,hadSetting:t.hadCrossFilteringSetting,removeAllCrossFiltering:this.removeAllCrossFiltering,resetDefaultValue:this.resetDefaultValue,enableDeleteAll:t.enableDeleteAll,crossFilteringDetails:t.crossFilteringDetail,showCrossFilteringOption:!0,enableCrossFilteringOption:t.enableCrossFiltering,updateResultInfo:l})}},{key:"renderReportViewerMode",value:function(){var e=this.props.store;return(0,S.get)("model.displayMode.isSubscriptionMode",this.masterStore)?null:_.default.createElement(w.default,(0,p.default)({setViewerContentRef:this.setViewerContentRef,className:"content-container",bottom:this.footerHeight},this.props,{store:this.reportDesignerFieldsStore,reportViewerStore:e,viewerContentHeight:this.viewerContentHeight}))}},{key:"renderSubscriptionMode",value:function(e){return(0,S.get)("model.displayMode.isSubscriptionMode",this.masterStore)?_.default.createElement("div",{className:"u_paddingLeftRight"},_.default.createElement(V.default,{reportId:e,reportType:this.props.store.reportType,subscribedInstancesStore:this.props.reportSubscriptionStore,reportStore:this.reportDesignerFieldsStore.reportStore})):null}},{key:"render",value:function(){var e=(0,N.default)("izenda-ReportViewer izenda-Wrapper",{hide:this.props.store.disabled}),t=this.masterStore.alertDetails.key;return _.default.createElement("section",{className:e,ref:this.setViewerRef},(0,S.isEqual)(t,"report")?this.renderErrorReport():this.renderContent())}},{key:"renderErrorReport",value:function(){var e=this,t=this.props,a=t.authorization,r=t.localization,n=this.masterStore.alertDetails,i=a.checkLicense(q.default.LICENSE_KEY.ReportDesigner),o=this.masterStore.reportAccessPriority;return _.default.createElement("div",{className:"u_table izenda-Wrapper"},_.default.createElement("div",{className:"u_tableCell u_alignMiddle u_textCenter"},_.default.createElement(H.default,{type:"error",className:"white-space-pre-line align-left",autoHide:!1},(0,S.map)(function(e){return _.default.createElement("div",{key:e.message},_.default.createElement("span",null,e.message))},n.errors)),i&&(o===W.ACCESS_RIGHT.FullAccess||o===W.ACCESS_RIGHT.SaveAs)&&_.default.createElement("div",{className:"u_paddingTop"},_.default.createElement(j.default,{onClick:function(){var t=e.masterStore.reportId,a=K.default.getReportDesignerUrl("ReportDesignerDetail",{reportId:t});e.props.router.push(a)}},r.getText("REPORT_LABEL_DESIGN")))))}},{key:"renderContent",value:function(){var e=this.props,t=e.localization,a=e.store,r=e.params,n=this.getParamID(r.id),i=this.masterStore.model,o=this.reportDesignerFieldsStore,l=(0,S.get)("integrationStyle.hideIntegratedButton",this.props),s=K.default.checkIframeExported(),u={type:a.reportType,name:i.reportName,id:n,isGlobal:i.isGlobal,version:i.version};return _.default.createElement("div",null,this.masterStore.disableReportDesigner&&_.default.createElement(H.default,{type:"error",autoHide:!1},t.getText("COMMON_MESSAGES_NOPERMISSION_VIEWREPORT")),s||this.masterStore.isCompleteLoad&&!this.masterStore.disableReportDesigner&&_.default.createElement(L.default,(0,p.default)({},this.props,{store:a,reportId:n,fieldStore:o,designerStore:this.masterStore,boardDetail:u,updateReportParts:this.updateReportParts(!0),cancelReport:this.cancelReport,hideIntegratedButton:l,resetReport:this.resetReport,isCacheEnable:this.isCacheEnable})),this.masterStore.isCompleteLoad&&!this.masterStore.disableReportDesigner&&_.default.createElement("div",{className:"izenda-Wrapper-content"},_.default.createElement("div",{className:"izenda-TableLayout"},_.default.createElement("div",{className:"izenda-TableLayout-Cell"},_.default.createElement("div",{className:"u_fullHeight"},!s&&_.default.createElement("div",{className:"u_paddingLeftRight"},_.default.createElement(M.default,(0,p.default)({},this.props,{boardDetail:u,fieldStore:o,updateReportName:i.changeName.bind(i),updateReportParts:this.updateReportParts(!1)})),this.renderReportFilter()),_.default.createElement("div",{className:"u_fullHeight"},this.renderReportViewerMode(),this.renderSubscriptionMode(n)))),this.props.editMode&&_.default.createElement(x.default,{fieldStore:o,reportDesignerModel:i}))))}}]),t}(T.Component),u.propTypes={store:C.default.object,editMode:C.default.bool},i=ee((n=d).prototype,"viewerContentHeight",[v.observable],{enumerable:!0,initializer:null}),o=ee(n.prototype,"footerHeight",[v.observable],{enumerable:!0,initializer:null}),l=ee(n.prototype,"isCacheEnable",[v.observable],{enumerable:!0,initializer:function(){return!1}}),s=ee(n.prototype,"updateViewerContentHeight",[v.action],{enumerable:!0,initializer:function(){var e=this;return function(){if(e.viewerNode){var t=e.viewerNode.getBoundingClientRect(),a=t.top,r=t.height,n=window.innerHeight-a-r;n!==e.footerHeight&&(e.footerHeight=n)}if(e.viewerContentNode){var i=e.viewerContentNode.getBoundingClientRect().top,o=window.innerHeight-i-e.footerHeight;o!==e.viewerContentHeight&&(e.viewerContentHeight=o)}}}}),r=n))||r;t.default=te,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s=b(a(17)),u=b(a(6)),d=b(a(2)),c=b(a(3)),p=b(a(7)),f=b(a(8)),h=a(0),m=b(h),g=b(a(62)),E=a(9),y=b(a(10)),v=a(1),T=b(a(13)),_=a(5),S=b(a(163)),C=a(329);function b(e){return e&&e.__esModule?e:{default:e}}var N,A,R,O,I,D,P=(0,E.observer)(function(e){var t=e.item,a=e.className;return m.default.createElement("div",{key:t.message},m.default.createElement("span",{className:a},t.message),t.itemErrors?m.default.createElement("ol",null,(0,v.map)(function(e){return m.default.createElement("li",{key:e},e)},t.itemErrors)):null)}),L=(0,E.observer)((l=o=function(e){function t(){var e,a,r,n,o,l,c,f;(0,d.default)(this,t);for(var h=arguments.length,m=Array(h),g=0;g1}),u={type:r,displayTime:C.DISPLAY_TIME,onAutoHide:this.onAutoHide,onDismiss:this.onDismiss,dismissible:this.savedInfo.showType===C.SHOW_TYPES.ALWAYS};((0,v.isEqual)(n,"report")||o===C.SHOW_TYPES.ALWAYS)&&(u=(0,v.assign)({autoHide:!1},u));var d=i?(0,v.isEmpty)(l)?null:l:(0,v.isEmpty)(a)?null:a.map(function(e,t){return m.default.createElement(P,{key:t,item:e,className:s})});return m.default.createElement(g.default,u,d)}}]),t}(h.Component),o.propTypes={showType:T.default.string,alertKey:T.default.string,message:T.default.string,errors:T.default.oneOfType([T.default.array,T.default.object]),type:T.default.string,success:T.default.bool,onDismiss:T.default.func},N=(n=l).prototype,A="showOldAlertDetails",R=[_.observable],O={enumerable:!0,initializer:function(){return!1}},D={},Object.keys(O).forEach(function(e){D[e]=O[e]}),D.enumerable=!!D.enumerable,D.configurable=!!D.configurable,("value"in D||D.initializer)&&(D.writable=!0),D=R.slice().reverse().reduce(function(e,t){return t(N,A,e)||e},D),I&&void 0!==D.initializer&&(D.value=D.initializer?D.initializer.call(I):void 0,D.initializer=void 0),void 0===D.initializer&&(Object.defineProperty(N,A,D),D=null),i=D,r=n))||r;t.default=L,e.exports=t.default},function(e,t,a){"use strict";e.exports={ViewReportButton:a(3213),SubscribeReportButton:a(3214),ExportReportButton:a(554),EditReportButton:a(3218),RefreshDataButton:a(1380),ApplyFilterButton:a(802),SaveReportButton:a(3223),CancelViewReportButton:a(3225),CloseViewReportButton:a(3226),PrintReportButton:a(3227)}},function(e,t,a){"use strict";(function(t){var r=a(20);!function(){var n=a(5),i=a(11).compose,o=a(11).withHandlers,l=a(497),s=a(1377),u=a(229),d=a(185),c=a(79),p=a(330),f=a(99),h=a(3216),m=a(37),g=a(1),E=g.get,y=g.getOr,v=g.uniqueId,T=g.curry,_=g.omit,S=g.isNil,C=g.filter,b=g.some,N=g.every,A=g.map,R=g.toUpper,O=g.invokeMap,I=g.includes,D=2e3,P=i(o({exportReport:T(function(e,n,i){var o=e.name,s=e.exportLoader,c=v(o),p=e.store,f=e.id,g=n===l.HTML.value,T=e.designerStore,C=!S(T),b=E(C?"designerStore.model":"store.model",e);function N(){return e.designerStore?e.designerStore.savePrintDraft().get("id").then(function(a){var r=E("model.subReportFilter",e.designerStore),n=y({},"model.subReportFilterFromQuery",e.designerStore),i=y([],"filters",r),o=u.convertFilterToQuery(_(["success","overideFilterValue"],n));return{draftId:a,subReportFilter:i,queryString:t.param(o||{})}}):(0,r.resolve)(null)}function R(t){function a(){var a=window.location.href,r=g?e.print.bind(e.store):e.export.bind(e.store);return e.isDownloadCompleted&&e.isDownloadCompleted(!0),setTimeout(function(){e.isDownloadCompleted&&e.isDownloadCompleted(!1)},D),s.startExportLoading(F(n,o,c,!0)),r(a,n,e.id,e.filters,t,s.endExportLoading.bind(s,c),s.updateError.bind(s,c))}var r=C&&T.editMode,i=b&&b.isMaintainState;if(g||r||i)return a();var l=y(null,"draftId",t),u=[];if(C){var d=b.getReportDefinition(),p=y([],"report.reportFilter.filterFields",d);u=A(function(e){return{filterFieldId:e.id,operatorId:e.operatorId,operatorSetting:e.operatorSetting,value:e.value,defaultValue:e.defaultValue}},p)}return k(n,l,u,e,a.bind(this),C)}function O(){var t=y(null,"reportFields.reportBody.reportParts",b),i=L(t,n);if(!i){if(b&&(b.isMaintainState=!1),n===l.Iframe.value){var o=a(444);return o.getAutoAuthToken(e.id).then(function(t){if(t.success&&t.data){var a=t.data,n=m.getConfigRoute("Report","IframeExport"),i=m.getRouteUrl(n,{id:e.id})+"?token="+a,o=m.makeAbsoluteUrl(i,null,!0);e.openPopup(h,{embedLink:o})}else{var l=y(e.localization.getText("COMMON_MESSAGES_GENERIC_ERROR"),"messages[0].messages[0]",t);C&&T.alertDetails.set({success:!1,errors:[{message:l}]})}return(0,r.resolve)(null)})}return N().then(R)}var s=[{label:e.localization.getText("REPORT_CONSTANT_DRILL_DOWN_EXPORT_WITH_PREVIEW_STATE"),value:e.localization.getText("COMMON_LABEL_YES")},{label:e.localization.getText("REPORT_CONSTANT_DRILL_DOWN_EXPORT_WITHOUT_PREVIEW_STATE"),value:e.localization.getText("COMMON_LABEL_NO")}];e.confirmFn("Confirmation",{description:e.localization.getText("REPORT_CONSTANTS_DRILL_DOWN_STATE_MAINTAIN"),confirmLabel:e.localization.getText("COMMON_LABEL_OK"),abortLabel:e.localization.getText("COMMON_LABEL_CANCEL"),showRadio:!0,radioOptions:s,radioValue:e.localization.getText("COMMON_LABEL_YES")}).then(function(t){return t===e.localization.getText("COMMON_LABEL_YES")?b&&(b.isMaintainState=!0):b&&(b.isMaintainState=!1),N().then(R)},function(e){})}function I(){var e=y(null,"reportFields.reportFilter",b);return S(e)||(e.isFilterIncludeInExport=e.visible),O()}function P(){if(n===l.Query.value||n===l.Definition.value)return I();var t=e.localization.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_REQUIRED_FILTER_EXPORT");return d.checkRequiredFilters(T,e.id).then(function(a){return a?I():(C?T.alertDetails.set({success:!1,errors:[{message:t}]}):e.confirmMessage("error",t),!1)})}if(p.checkValidReportId)return p.checkValidReportId(f).then(function(t){if(!t.success){var a=t.messages[0]||{},r=a.messages[0]||"";return e.confirmMessage("error",r)}return P()});return P()}),exportDashboard:T(function(e,t,a){var i=e.name,o=e.exportLoader,s=v(i),u=e.id,d=t===l.HTML.value;function c(){var a=e.isDesignerMode,l=a?y([],"store.model.dashboardDetail.dashboard.commonFilterFields",e):[];return l=O("buildDataForSave",n.toJS(l)),l=A(function(e){return{commonFilterFieldId:e.id,operatorId:e.operatorId,operatorSetting:e.operatorSetting,value:e.value,defaultValue:e.defaultValue}},l),function(){if(e.isDesignerMode)return e.store.saveDraftDataForPrint();return(0,r.resolve)(u)}().then(function(r){function n(){return o.startExportLoading(F(t,i,s,!1)),e.export(r,t,o.endExportLoading.bind(o,s),o.updateError.bind(o,s))}var u=E("store.model.dashboardDetail.dashboard.isMaintainState",e);return d||u?n():k(t,r,l,e,n.bind(this),a,!0)})}var p=y([],"store.model.dashboardDetail.dashboard.dashboardParts",e);if(L(A(function(e){return y([],"reportPart",e)},p),t)){var f=[{label:e.localization.getText("DASHBOARD_CONSTANT_DRILL_DOWN_EXPORT_WITH_PREVIEW_STATE"),value:e.localization.getText("COMMON_LABEL_YES")},{label:e.localization.getText("DASHBOARD_CONSTANT_DRILL_DOWN_EXPORT_WITHOUT_PREVIEW_STATE"),value:e.localization.getText("COMMON_LABEL_NO")}];e.confirmFn("Confirmation",{description:e.localization.getText("DASHBOARD_CONSTANTS_REPORT_DRILL_DOWN_STATE_MAINTAIN"),confirmLabel:e.localization.getText("COMMON_LABEL_OK"),abortLabel:e.localization.getText("COMMON_LABEL_CANCEL"),showRadio:!0,radioOptions:f,radioValue:e.localization.getText("COMMON_LABEL_YES")}).then(function(t){t===e.localization.getText("COMMON_LABEL_YES")?e.store.model.dashboardDetail.dashboard.isMaintainState=!0:e.store.model.dashboardDetail.dashboard.isMaintainState=!1,c()},function(e){})}else c()}),getExportFormats:T(function(e,t){var a=e.authorization,r=e.authorizationConstants.PERMISSION_KEY,n=a.checkPrivileges([r.ExportingExportingFormatWord]),i=a.checkPrivileges([r.ExportingExportingFormatExcel]),o=a.checkPrivileges([r.ExportingExportingFormatPdf]),s=a.checkPrivileges([r.ExportingExportingFormatCsv]),u=a.checkPrivileges([r.ExportingExportingFormatXml]),d=a.checkPrivileges([r.ExportingExportingFormatJson]),c=a.checkPrivileges([r.ExportingExportingFormatQueryExecution]),p=a.checkPrivileges([r.ExportingExportingFormatDefinition]),f=a.checkPrivileges([r.ExportingExportingFormatIframe]);if(e.reportDesignerMode)return C(function(e){return c&&"query"===e.value&&e.value!==l.HTML.value},l);return C(function(t){return t.value!==l.HTML.value&&(n||"word"!==t.value)&&(i||"excel"!==t.value)&&(o||"pdf"!==t.value)&&(s||"csv"!==t.value)&&(u||"xml"!==t.value)&&(d||"json"!==t.value)&&(c&&!e.isDashboard||"query"!==t.value)&&(p||"definition"!==t.value)&&(f&&!e.isDashboard||"iframe"!==t.value)},l)})}));function L(e,t){var a=b(function(e){var t=y(null,"reportPartContent.properties.generalInfo.gridStyle",e),a=y([],"reportPartContent.separators.elements",e),r=y(!1,"reportPartContent.rows.properties.useExpanders",e),n=t===f.GRID_STYLES.DRILL_DOWN.value,i=t===f.GRID_STYLES.PIVOT.value;return n||i&&r||a.length>0},e||[]);switch(t){case l.Excel.value:case l.Pdf.value:case l.Word.value:case l.HTML.value:break;default:a=!1}var r=function(e){var t=function(e){return N(function(e){var t=y([],"reportInfo",e);return N(function(e){var t=y(!1,"separatorInfo.isLogicalSeparator",e);if(t){var a=e.records||[];return!b(function(e){return!M(e)},a)}var r=e.records||{};return M(r)},t)},e||[])}(e),a=function(e){return N(function(e){var t=y([],"reportInfo",e);return N(function(e){if(e.separatorInfo){var t=e.separatorInfo;return t.isExpand}return!0},t)},e||[])}(e);return!t||!a}(e);return a&&r}function M(e){return!!Array.isArray(e)||!(!e.isExpand&&0!=e.childs.length)&&(0==e.childs.length||!b(function(e){return!M(e)},e.childs))}function F(e,t,a,r){var n=s.getFileTypeByFormat(e,r),i=void 0,o=void 0;return e===l.HTML.value?(i=t,o=!0):i='"'+t+"."+n+'"',{isPrinting:o,name:i,key:a,error:!1}}function k(e,t,a,r,n,i,o){function s(e){return e.status=1,e.state=1,p.saveExportQueue(e).then(function(e){e.success&&u()})}function u(){var t=o?"dashboard":"report";r.confirmFn("Information",{description:String.format(r.localization.getText("REPORT_CONSTANT_ASYNC_EXPORT_IN_PROGRESS"),R(e),r.name,t),showCancel:!1})}var d=[l.Query.value,l.Definition.value,l.Iframe.value];return I(e,d)?n():c.loadExportingConfiguration().then(function(l){if(l.isEnableAsyncExporting){var d=y(null,"store.tenantId",r),c=l.asyncRefreshExportingInterval>0,f=b(function(e){return e.value!==e.defaultValue},a),h={name:r.name,tenantId:d,exportFileType:e,exportQueueFilterFields:a,reapeat:c&&!f?1:0,isExportFromList:i?0:1};return o?h.dashboardId=r.id:h.reportId=r.id,t&&(h.draftId=t),p.validateExportQueue(h).then(function(e){return 1===e.status?s(h):2===e.status?(h.id=e.exportQueueId,p.getExportQueueFile(h)):3===e.status?p.validateExportQueueAsync(h).then(function(e){return e?n():s(h)}):(4===e.status&&u(),null)})}return n()})}e.exports=P}()}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=l(a(30)),i=l(a(4)),o=l(a(13));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.localization,a=e.updateResults,i=e.disabled;return r.default.createElement(n.default,{onClick:a,disabled:i,className:"btn-updateResult"},r.default.createElement("i",{className:"icon-refresh"}),r.default.createElement("span",{className:"btn-updateResult-label"},t.getText("REPORTDESIGNER_LABEL_APPLY_FILTER")))};s.propTypes={updateResults:o.default.func.isRequired},t.default=(0,i.default)()(s),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=P(a(6)),l=P(a(2)),s=P(a(3)),u=P(a(7)),d=P(a(8)),c=a(9),p=a(0),f=P(p),h=P(a(28)),m=P(a(55)),g=P(a(3230)),E=P(a(4)),y=P(a(15)),v=P(a(26)),T=P(a(1383)),_=P(a(1388)),S=a(40),C=P(S),b=P(a(219)),N=P(a(802)),A=P(a(43)),R=a(1),O=a(34),I=a(185),D=P(a(30));function P(e){return e&&e.__esModule?e:{default:e}}var L=b.default.checkDisplayByKey("hideFilter"),M=(0,E.default)()(function(e){var t=e.localization,a=e.authorization,r=e.crossFilteringDetails,n=(e.hadSetting,e.removeCrossFiltering),i=e.removeAllCrossFiltering,o=e.fieldStore,l=e.resetDefaultValue,s=e.enableDeleteAll,u=e.isReport,d=e.enableCrossFilteringOption,c=e.openPopup,p=e.collapseToggle,h=e.updateResultInfo,m=(u&&a.checkPrivileges([C.default.PERMISSION_KEY.FullReportAndDashboardAccess,C.default.PERMISSION_KEY.ReportsFilterPropertiesCrossFiltering],C.default.PERMISSION_OPERATOR.Or),u?!(0,R.isEmpty)(r):!(0,R.flow)(R.head,(0,R.get)("pillDefinitions"),R.isEmpty)(r));return f.default.createElement("div",{className:"u_table izenda-FilterHeader "},f.default.createElement("div",{className:"u_tableCell u_alignMiddle u_paddingRight",onClick:p},f.default.createElement("i",{className:"icon-toggle-thick"}),f.default.createElement("strong",null,t.getText("REPORT_LABEL_FILTERS"))),f.default.createElement("div",{className:"u_tableCell u_alignMiddle u_ullWidth izenda-FilterHeader__CrossFilteringContainer"},m&&f.default.createElement(T.default,{crossFilteringDetail:r,showCrossFilteringOption:!1,hadSetting:!1,removeCrossFiltering:n,removeAllCrossFiltering:i,onCrossFilteringOptionClick:function(){c(_.default,{store:o})},resetDefaultValue:l,enableDeleteAll:s,enableCrossFilteringOption:d})),h&&h.accessPriority!==S.ACCESS_RIGHT.Locked&&f.default.createElement("div",{className:"izenda-FilterHeader__UpdateResult"},f.default.createElement(N.default,{updateResults:h.updateResults,disabled:h.doesDisableUpdateResultBtn}),f.default.createElement(D.default,{onClick:function(){o.reportFilters.configFieldList.map(function(e){e.fieldDetails.value&&e.fieldDetails.updateByKey("value",null)}),o&&o.filters&&o.filters.map(function(e){e.setFilterValue(null)})},className:"btn-updateResult"},f.default.createElement("span",{className:"btn-updateResult-label"},t.getText("REPORTDESIGNER_LABEL_CLEAR_FILTER")))))});M.displayName="FiltersHeader";var F=(0,c.observer)((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0&&f>0&&p=h.length&&(r.value=h.length),r.value===h.length?m(h,r.value-1,"Right"):m(h,r.value,"Left")}}function m(e,t,a){(0,n.isNil)(e[t])||(e[t].style["border"+a+"Style"]=l.default.GENNERAL.BORDER_HOVER_ITEM.STYLE,e[t].style["border"+a+"Color"]=l.default.GENNERAL.BORDER_HOVER_ITEM.COLOR)}}},e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(9).observer,r=a(4),n=a(11).withProps,i=a(11).setPropTypes,o=a(11).withHandlers,l=a(0),s=a(280),u=a(215),d=a(1393).getFilterSchema,c=a(1),p=c.isEmpty,f=c.getOr,h=c.curry,m=c.merge,g=["fields.sourceInfo.fields","fields.filterOperator.fields","fields.filterSettings.fields","fields.filterFormating.fields"],E=t(function(e){var t=e.getConfigFilter();return l.createElement("fieldset",null,l.createElement(y,{alias:e.reportFilter.configField.fieldDetails.alias,reportDesignerModel:e.reportDesignerModel,fieldStore:e.fieldStore,reportFilter:e.reportFilter,validation:e.validation,querySourceFieldId:t.fieldDetails.querySourceFieldId,isGlimpse:e.isGlimpse,updateKeepShowingHost:e.updateKeepShowingHost,closePopover:this.props.closePopover,isPopup:e.isPopup}))});E.displayName="FilterPropsContainer";var y=t(l.createClass({displayName:"FilterDetailsContainer",shouldComponentUpdate:function(e){return e.querySourceFieldId!==this.props.querySourceFieldId},hasUiProps:function(){return!!this.props.updateKeepShowingHost},render:function(){var e=this.props,t=e.validation,a=d(this,e.reportDesignerModel,e.fieldStore,e.reportFilter,t,e.isGlimpse,e.isPopup);return p(e.alias)&&function(e){u.removeProps(e,g)}(a),this.hasUiProps()&&(a=m(a,{uiProps:{updateKeepShowingHost:e.updateKeepShowingHost}})),l.createElement(s,{propertyConfig:a,closePopover:this.props.closePopover})}}));y.displayName="FilterDetailsContainer",e.exports=r(i({reportDesignerModel:l.PropTypes.object.isRequired,fieldStore:l.PropTypes.object.isRequired}),n(function(e){return{reportFilter:f({},"reportFields.reportFilter",e.reportDesignerModel)}}),o({setFilterConfig:h(function(e,t,a){var r=e.reportFilter;r.setConfigModeToField&&r.setConfigModeToField(a)}),getFilterList:h(function(e){return function(){var t=e.reportFilter;return f([],"filterFields",t)}}),getConfigFilter:h(function(e){return function(){var t=e.reportFilter;return f(null,"configField",t)}})}))(E)}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=A(a(6)),l=A(a(2)),s=A(a(3)),u=A(a(7)),d=A(a(8)),c=a(0),p=A(c),f=A(a(35)),h=A(a(13)),m=a(1),g=A(a(10)),E=A(a(4)),y=A(a(1196)),v=A(a(1395)),T=A(a(513)),_=A(a(514)),S=A(a(704)),C=A(a(94)),b=A(a(26)),N=a(88);function A(e){return e&&e.__esModule?e:{default:e}}var R=(0,E.default)({toClass:!0})((i=n=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return a.setReportHeader=function(e){a.reportHeader=e},a.setReportTitle=function(e){a.reportTitle=e},a.setFilterDescription=function(e){a.reportFilterDescription=e},a.setReportBody=function(e){a.reportBody=e},a.setReportFooter=function(e){a.reportFooter=e},a.setOuterScrollBox=function(e){a.scrollBox=e},a.setGridViewScrollBox=function(e){e&&(a.gridViewScrollBox=e.getGridViewScrollBox(),a.handleStickyScroll())},a.onScroll=function(e){var t=e.target.scrollLeft,r=a.props.editMode;if(!r&&!a.isSupportSticky){[a.reportHeader,a.reportTitle,a.reportFilterDescription,a.reportFooter].forEach(function(e){e&&(e.style.left=t+"px")})}r&&a.handleStickyScroll()},a.handleStickyScroll=function(){a.scrollBox&&a.gridViewScrollBox&&(a.checkShouldStickScroll()?a.gridViewScrollBox.stickHorizontalScroll():a.gridViewScrollBox.unstickHorizontalScroll())},a.getOuterScrollTop=function(){return a.scrollBox?a.scrollBox.getScrollTop():0},a.getInvalidFilters=function(e){var t=e.emptyRequiredParamFilters,a=e.emptyNotVisibleRequiredFilter,r=e.emptyVisibleRequiredFilter,n=function(e,t){return{index:t,filter:e}};return(0,m.flow)((0,m.concat)(a.map(n)),(0,m.concat)(r.map(n)),(0,m.uniqBy)(function(e){return e.filter.alias+e.index}))(t.map(n))},a.isSupportSticky=(0,N.isSupportSticky)(),a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"buildListFilter",value:function(e){if((0,m.isEmpty)(e))return null;return p.default.createElement("div",{className:"u-center izenda-ReportViewer-FilterList"},e.map(function(e){return p.default.createElement("p",{key:e.index},"Filter #"+(e.index+1)+" - "+e.filter.alias)}))}},{key:"checkHasOuterScroll",value:function(){var e=this.props,t=e.store,a=e.store.reportStore,r=e.editMode;return a.isShowingHeaderFooter&&t.isVisibleHeaderFooter||!r}},{key:"checkShouldStickScroll",value:function(){if(this.checkHasOuterScroll()&&this.scrollBox&&this.gridViewScrollBox){var e=this.scrollBox.getScrollTop(),t=f.default.findDOMNode(this.reportBody),a=(0,m.getOr)(0,"offsetHeight",this.reportHeader),r=(0,m.getOr)(0,"offsetHeight",this.reportTitle),n=(0,m.getOr)(0,"offsetHeight",this.reportFilterDescription),i=this.scrollBox.getTrackHeight();return a+r+n+t.clientHeight+i>=this.props.viewerContentHeight+e&&this.gridViewScrollBox.isInsideOfViewport()}return!1}},{key:"render",value:function(){var e=this.props,t=e.store,a=e.store,r=a.reportFilters,n=a.reportStore,i=e.editMode,o=e.localization,l=e.className,s=(e.isFullSize,e.bottom),u=e.viewerContentHeight,d=(0,g.default)(l,"u-bgWhite","izenda-ReportViewer-FilterError"),c=(0,m.get)("reportFormats.titleDescription.visible",t),f=this.checkHasOuterScroll(),h=u?{height:u}:null,E=(0,g.default)({"u-stickLeft":this.isSupportSticky,"u-posRelative":!this.isSupportSticky}),N=this.getInvalidFilters(r);if(!(0,m.isEmpty)(N))return p.default.createElement("div",{className:"u_paddingLeftRight",ref:this.props.setViewerContentRef},p.default.createElement("div",{className:d,style:h},p.default.createElement("div",{className:"u-center"},o.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_SELECT_REQUIRE_AND_VISIBLE_FIELD"),this.buildListFilter(N))));var A=p.default.createElement(b.default,{fullWidth:i,viewClassName:(0,g.default)({u_paddingLeftRight:i,"viewer-mode":!i}),onScroll:this.onScroll,onUpdate:this.handleStickyScroll,ref:this.setOuterScrollBox},n.isShowingHeaderFooter&&p.default.createElement("div",{className:E,ref:this.setReportHeader},p.default.createElement(T.default,{store:t,viewMode:!0,replaceSystemVariable:C.default.replaceSystemVariable})),c&&p.default.createElement("div",{className:E,ref:this.setReportTitle},p.default.createElement(S.default,{store:t,viewMode:!0})),p.default.createElement("div",{className:E,ref:this.setFilterDescription},p.default.createElement(y.default,{store:t})),p.default.createElement("div",{ref:this.setReportBody},p.default.createElement(v.default,{getOuterScrollTop:this.getOuterScrollTop,finishRender:this.setGridViewScrollBox,bottom:s,fullSize:!0,store:t,viewMode:!i,quickEdit:!!i,hasOuterScroll:f})),n.isShowingHeaderFooter&&p.default.createElement("div",{className:E,ref:this.setReportFooter},p.default.createElement(_.default,{store:t,viewMode:!0,replaceSystemVariable:C.default.replaceSystemVariable})));return p.default.createElement("div",{className:l,style:h,ref:this.props.setViewerContentRef},i?A:p.default.createElement("div",{className:"u_paddingLeftRight u_fullHeight"},A))}}]),t}(c.Component),n.displayName="ReportViewerContent",n.propTypes={store:h.default.object},n.defaultProps={className:"content-container"},r=i))||r;t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(a(0)),n=c(a(41)),i=c(a(75)),o=c(a(69)),l=c(a(699)),s=c(a(30)),u=a(9),d=c(a(10));a(1);function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){var t=e.node,a=e.store,u=e.dataSource,c=e.toggleIcon,p=e.collapseToggle,f=e.useCheckBox,h=e.useDeleteButton,m=e.useAddButton,g=e.filterText,E=e.handleCheck,y=(0,d.default)({normal:!f,checkbox:f}),v=u.connectionName+"."+u.querySourceCategoryName+"."+u.originalName,T=n.default.advancedSettings.other.showSchemaNameValue?u.querySourceCategoryName+"."+u.name:u.name;return r.default.createElement("div",{className:y},r.default.createElement(i.default,{className:"selectable",text:T,tooltip:v,onClick:p},r.default.createElement("i",{className:a.dataTree.getIcon(u.type)}),r.default.createElement(o.default,{text:T,tooltip:v,highlight:g})),r.default.createElement("span",{className:"pull-right"},c,f&&r.default.createElement(l.default,{type:"checkbox",checked:u.selected,onChange:function(e){E(u,e.target.checked,t)}}),h&&r.default.createElement(s.default,{className:"icon-trash-empty icon-removeAllCrossFilteringItem u_noPaddingAll u_noBorder",disabled:!1,onClick:function(e){E(u,!1,t)}}),m&&r.default.createElement(s.default,{className:"icon-plus u_noPaddingAll u_noBorder",disabled:!1,onClick:function(e){E(u,!0,t)}})))};p.displayName="DataObjectItem",t.default=(0,u.observer)(p),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(a(0)),n=d(a(10)),i=a(9),o=d(a(239)),l=d(a(75)),s=d(a(69)),u=d(a(209));function d(e){return e&&e.__esModule?e:{default:e}}var c=(0,i.observer)(function(e){var t=e.itemData,a=e.className,i=e.store,o=e.isRegistedItem,d=(0,n.default)("fieldItem u_curPointer",a,{"registed-prop-editor":o});return r.default.createElement("div",{className:d,onMouseDown:e.onClick,onClick:function(){u.default.togglePropertiesEditor(!0)}},r.default.createElement(l.default,{text:t.name,tooltip:t.izendaDataType},r.default.createElement("i",{className:i.dataTree.getIcon(t.izendaDataType)}),r.default.createElement(s.default,{highlight:e.filterText,text:t.isPredicated?t.name+"(P)":t.name,tooltip:t.name})),e.isCalculated&&r.default.createElement("div",{title:"Delete",className:"icon-cancel pull-right",onClick:function(a){e.clickDelete(t)}}))});c.displayName="DataFieldItem",t.default=o.default.wrapper(c),e.exports=t.default},,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(0)),n=o(a(62)),i=o(a(4));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)()(function(e){var t=e.alertMessage,a=t.type,i=t.message;return r.default.createElement("div",{className:"izenda-Alert-container"},r.default.createElement(n.default,{type:a},i))}),e.exports=t.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(255);var i=new((r=n)&&r.__esModule?r:{default:r}).default("Service");t.default={register:function(e,t){i.register(e,function(){return t})},get:function(e){return i.create(e)}},e.exports=t.default},,,,function(e,t,a){"use strict";!function(){function t(e){this.securityQuestionId=null,this.question=null,e&&this.populate(e)}t.prototype.populate=function(e){this.securityQuestionId=e.securityQuestionId||e.id,this.question=e.question},e.exports=t}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";!function(){var t=a(5).extendObservable;function r(){t(this,{deploymentMode:0,isIntegrationMode:function(){return this.deploymentMode>0}})}r.prototype.readDeploymentMode=function(e){this.deploymentMode=e.deploymentMode},e.exports=new r}()},function(e,t,a){"use strict";!function(){var t=a(1),r=t.get,n=t.isPlainObject,i=t.omit,o=t.isBoolean,l=t.isNil,s=a(5),u=a(258),d=a(587),c=a(16);function p(){var e={permission:new u,isLoaded:!1};s.extendObservable(this,e)}p.prototype.populate=s.action(function(e,t,a){this.getPermission(e,r("permission",t)),this.permission.populateData(e,this.permission.propsCloned,this.permission),this.isLoaded=a}),p.prototype.getPermission=function(e,t){function a(e,t){for(var s in i("tenantAccess",e)){var u=e[s],d=r(s,t);n(u)?a(u,d):o(u)&&(l(t)?e[s]=u:e[s]=d)}}e.fullReportAndDashboardAccess&&(a(e.reports,r("reports",t)),a(e.dashboards,r("dashboards",t)),a(e.access,r("access",t)),a(e.scheduling,r("scheduling",t)),a(e.emailing,r("emailing",t)),a(e.exporting,r("exporting",t)))},p.prototype.clear=s.action(function(){this.permission=new u,c.currentUser=new d,c.setTenantId(null,!1,!0),this.isLoaded=!1});var f=new p;e.exports=f}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";!function(){function t(){this.suppressUnhandledRejections=!0}t.prototype=Error.prototype,e.exports=t}()},function(e,t,a){"use strict";var r,n;r=a(0),n=r.createClass({displayName:"GroupRadioInput",propTypes:{onChange:r.PropTypes.func.isRequired,options:r.PropTypes.oneOfType([r.PropTypes.object.isRequired,r.PropTypes.array.isRequired]),value:r.PropTypes.string},handleValueChange:function(e){this.props.onChange&&this.props.onChange({value:e.target.value})},render:function(){var e=this.props.value||this.props.options[0].value,t=this.props.options.map(function(t,a){return r.createElement("div",{key:a},r.createElement("input",{type:"radio",value:t.value,checked:t.value===e,onChange:this.handleValueChange}),r.createElement("span",{title:t.label}," ",t.label," "))}.bind(this));return r.createElement("div",null,t)}}),e.exports=n},,,,,,,,function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_=C(a(14)),S=C(a(80));function C(e){return e&&e.__esModule?e:{default:e}}n=a(0),i=a(35),o=n.PropTypes,l=a(445).DraggableCore,s=a(9).observer,u=a(10),d=a(1045),c=a(1053),p=c.Handle,f=c.EventName,h=a(1),m=h.isEqual,g=h.assign,E=h.omit,y=h.assignAll,v=h.placeholder,T=n.createClass({displayName:"Resizable",propTypes:(r={},(0,S.default)(r,""+f.Resize,o.func),(0,S.default)(r,""+f.ResizeStart,o.func),(0,S.default)(r,""+f.ResizeStop,o.func),(0,S.default)(r,"style",o.object),(0,S.default)(r,"children",o.element.isRequired),(0,S.default)(r,"width",o.oneOfType([o.number,o.string])),(0,S.default)(r,"height",o.oneOfType([o.number,o.string])),(0,S.default)(r,"draggableOptions",o.object),(0,S.default)(r,"minConstraints",o.arrayOf(o.number)),(0,S.default)(r,"maxConstraints",o.arrayOf(o.number)),(0,S.default)(r,"topResize",n.PropTypes.bool),(0,S.default)(r,"leftResize",n.PropTypes.bool),(0,S.default)(r,"rightResize",n.PropTypes.bool),(0,S.default)(r,"bottomResize",n.PropTypes.bool),(0,S.default)(r,"topLeftResize",n.PropTypes.bool),(0,S.default)(r,"topRightResize",n.PropTypes.bool),(0,S.default)(r,"bottomLeftResize",n.PropTypes.bool),(0,S.default)(r,"bottomRightResize",n.PropTypes.bool),(0,S.default)(r,"topResizeClass",n.PropTypes.string),(0,S.default)(r,"leftResizeClass",n.PropTypes.string),(0,S.default)(r,"rightResizeClass",n.PropTypes.string),(0,S.default)(r,"bottomResizeClass",n.PropTypes.string),(0,S.default)(r,"topLeftResizeClass",n.PropTypes.string),(0,S.default)(r,"topRightResizeClass",n.PropTypes.string),(0,S.default)(r,"bottomLeftResizeClass",n.PropTypes.string),(0,S.default)(r,"bottomRightResizeClass",n.PropTypes.string),(0,S.default)(r,"resizableController",n.PropTypes.object),r),getDefaultProps:function(){return{minConstraints:[20,20],maxConstraints:[1/0,1/0],topResize:!1,leftResize:!1,rightResize:!1,bottomResize:!1,topLeftResize:!1,topRightResize:!1,bottomLeftResize:!1,bottomRightResize:!1,topResizeClass:"",leftResizeClass:"",rightResizeClass:"",bottomResizeClass:"",topLeftResizeClass:"",topRightResizeClass:"",bottomLeftResizeClass:"",bottomRightResizeClass:""}},componentWillMount:function(){var e=this.props;this.controller=e.resizableController||new c(0,0,e.width,e.height,e.minConstraints,e.maxConstraints)},componentWillReceiveProps:function(e){m(this.props.minConstraints,e.minConstraints)||this.controller.setMinConstraints(e.minConstraints),m(this.props.maxConstraints,e.maxConstraints)||this.controller.setMaxConstraints(e.maxConstraints)},render:function(){var e=this.props,t=n.Children.only(e.children),a=e.width,r=e.height,i=u("izenda-Resizable",e.className,t.props.className),o=E(["children","className","width","height","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","style","resizableController","topResize","leftResize","rightResize","bottomResize","topLeftResize","topRightResize","bottomLeftResize","bottomRightResize","topResizeClass","leftResizeClass","rightResizeClass","bottomResizeClass","topLeftResizeClass","topRightResizeClass","bottomLeftResizeClass","bottomRightResizeClass"],e),l=g(e.style,t.props.style),s=y([o,{width:a,height:r},{style:l},{className:i}]),d=n.Children.toArray(t.props.children).concat(this.getHandles());return n.cloneElement(t,s,d)},getHandles:function(){var e,t=this.props,a=this.resizeHandler,r=(e={},(0,S.default)(e,""+p.top,{allow:t.topResize,className:u("izenda-Handle-HorizontalTop",t.topResizeClass)}),(0,S.default)(e,""+p.left,{allow:t.leftResize,className:u("izenda-Handle-VerticalLeft",t.leftResizeClass)}),(0,S.default)(e,""+p.right,{allow:t.rightResize,className:u("izenda-Handle-VerticalRight",t.rightResizeClass)}),(0,S.default)(e,""+p.bottom,{allow:t.bottomResize,className:u("izenda-Handle-HorizontalBottom",t.bottomResizeClass)}),(0,S.default)(e,""+p.topLeft,{allow:t.topLeftResize,className:u("izenda-Handle-CornerLeftTop",t.topLeftResizeClass)}),(0,S.default)(e,""+p.topRight,{allow:t.topRightResize,className:u("izenda-Handle-CornerRightTop",t.topRightResizeClass)}),(0,S.default)(e,""+p.bottomLeft,{allow:t.bottomLeftResize,className:u("izenda-Handle-CornerLeftBottom",t.bottomLeftResizeClass)}),(0,S.default)(e,""+p.bottomRight,{allow:t.bottomRightResize,className:u("izenda-Handle-CornerRightBottom",t.bottomRightResizeClass)}),e);return v(p).chain().values().filter(function(e){return r[e].allow}).map(function(e){var i=r[e],o=u("js-resize-handle",i.className);return n.createElement(l,(0,_.default)({key:e,onStop:a(f.ResizeStop,e),onStart:a(f.ResizeStart,e),onDrag:a(f.Resize,e)},t.draggableOptions),n.createElement("div",{className:o}))}).value()},synchSize:function(){var e=i.findDOMNode(this),t=this.props,a=t.width,r=t.height,n=t.draggableOptions,o=n?n.offsetParent:null,l=d.position(e,o);a=l.width,r=l.height,this.controller.updatePosition(l.left,l.top,a,r)},resizeHandler:function(e,t){var a=this.controller,r=this.synchSize,n=this.props[e];return function(i,o){e===f.ResizeStart&&r(),a.resizeHandler(e,t,o,n)}}}),e.exports=s(T)},function(e,t,a){"use strict";!function(){var t=a(5).action,r=a(5).extendObservable,n=a(1),i=n.max,o=n.min,l={Resize:"onResize",ResizeStart:"onResizeStart",ResizeStop:"onResizeStop"};function s(e,t,a,n,i,o){this.minConstraints=i,this.maxConstraints=o,r(this,{width:a,height:n,slackWidth:0,slackHeight:0,x:e,y:t})}function u(e){return/(LEFT|RIGHT)/g.test(e)}function d(e){return/(TOP|BOTTOM)/g.test(e)}function c(e){return/LEFT/g.test(e)}function p(e){return/TOP/g.test(e)}s.prototype.updatePosition=t(function(e,t,a,r){this.x=e,this.y=t,this.width=a,this.height=r}),s.prototype.setWidthHeight=t(function(e,t){this.width=e,this.height=t}),s.prototype.setMinConstraints=t(function(e){this.minConstraints=e}),s.prototype.setMaxConstraints=t(function(e){this.maxConstraints=e}),s.prototype.resizeHandler=t(function(e,t,a,r){e===l.ResizeStart&&(this.slackWidth=0,this.slackHeight=0);var n=c(t)?-a.deltaX:a.deltaX,i=p(t)?-a.deltaY:a.deltaY,o=this.width+n,s=this.height+i,f=this.runConstraints(o,s,t),h=this.width!==f.width&&u(t),m=this.height!==f.height&&d(t);(e!==l.Resize||h||m)&&(this.width!==f.width&&u(t)&&(c(t)&&(this.x+=this.width-f.width),this.width=f.width),this.height!==f.height&&d(t)&&(p(t)&&(this.y+=this.height-f.height),this.height=f.height),r&&r({left:this.x,top:this.y,width:this.width,height:this.height}))}),s.prototype.runConstraints=t(function(e,t,a){var r=e,n=t,l=this.slackWidth,s=this.slackHeight,u=this.maxConstraints?this.maxConstraints[0]:1/0,d=this.maxConstraints?this.maxConstraints[1]:1/0,f=c(a),h=p(a),m=f?this.x+this.width:u-this.x,g=h?this.y+this.height:d-this.y,E=u===1/0?1/0:m,y=d===1/0?1/0:g;return this.minConstraints||this.maxConstraints?(e+=l,t+=s,this.minConstraints&&(e=i([this.minConstraints[0],e]),t=i([this.minConstraints[1],t])),this.maxConstraints&&(e=o([E,e]),t=o([y,t])),this.slackWidth+=r-e,this.slackHeight+=n-t,{width:e,height:t}):{width:e,height:t}}),s.Handle={top:"TOP",left:"LEFT",right:"RIGHT",bottom:"BOTTOM",topLeft:"TOP_LEFT",topRight:"TOP_RIGHT",bottomLeft:"BOTTOM_LEFT",bottomRight:"BOTTOM_RIGHT"},s.EventName=l,e.exports=s}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g=a(14),E=(r=g)&&r.__esModule?r:{default:r};n=a(0),i=a(35),o=n.PropTypes,l=a(9).observer,s=a(5).observable,u=a(609),d=a(260),c=a(1),p=c.debounce,f=c.isNil,h=c.omit,m=n.createClass({displayName:"Measure",propTypes:{children:o.element,measureBeforeMount:o.bool,onChange:o.func},getDefaultProps:function(){return{measureBeforeMount:!1}},componentWillMount:function(){this.dimensionState=s({mounted:!1})},onChange:function(e){var t=this.props.onChange;u.measure(function(){e&&t&&t(e.clientWidth,e.clientHeight)})},initListener:function(e){var t=e&&d.listenTo(e,p(450,this.onChange));this.domNode=e,this.listener=t},componentDidMount:function(){var e=i.findDOMNode(this);this.dimensionState.mounted=!0,this.initListener(e),this.onChange(e)},componentDidUpdate:function(e,t){var a=i.findDOMNode(this);this.listener&&this.domNode!==a&&(d.removeListener(this.domNode,this.listener),this.initListener(a))},componentWillUnmount:function(){var e=i.findDOMNode(this);!f(e)&&d.removeAllListeners(e)},render:function(){return this.props.measureBeforeMount&&!this.dimensionState.mounted?n.createElement("div",(0,E.default)({style:{width:this.dimensionState.width}},h(["measureBeforeMount","children"],this.props))):this.props.children}}),e.exports=l(m)},function(e,t,a){"use strict";var r,n,i,o,l,s;r=a(1),n=r.get,i=r.map,o=r.sortBy,l=r.forEach,s=r.placeholder,e.exports={getGridLeft:function(e,t){return Math.floor(e/t)},getGridTop:function(e,t){return Math.floor(e/t)},getGridWidth:function(e,t){return Math.round(e/t)},getGridHeight:function(e,t){return Math.round(e/t)},getDomLeft:function(e,t){return(e||0)*t},getDomTop:function(e,t){return(e||0)*t},getDomWidth:function(e,t){return(e||0)*t},getDomHeight:function(e,t){return(e||0)*t},getDomPosition:function(e,t,a,r,n,i){return{left:this.getDomLeft(e,n),top:this.getDomTop(t,i),width:a===1/0?a:this.getDomWidth(a,n),height:r===1/0?r:this.getDomWidth(r,i)}},getGridPosition:function(e,t,a,r,n,i){return{left:this.getGridLeft(e,n),top:this.getGridTop(t,i),width:this.getGridWidth(a,n),height:this.getGridWidth(r,i)}},roundWidth:function(e,t){return Math.ceil(e/t)*t},roundHeight:function(e,t){return Math.ceil(e/t)*t},convertToLayoutItem:function(e,t,a,r){return r?{id:e.id,top:e.gridTop,left:e.gridLeft,width:e.gridWidth,height:e.gridHeight}:{id:e.id,top:e.pxTop?this.getGridTop(e.pxTop,a):e.gridTop,left:e.pxLeft?this.getGridLeft(e.pxLeft,t):e.gridLeft,width:e.pxWidth?this.getGridWidth(e.pxWidth,t):e.gridWidth,height:e.pxHeight?this.getGridHeight(e.pxHeight,a):e.gridHeight}},convertToRect:function(e,t,a,r,n){return{id:e,x1:t,y1:a,x2:t+r,y2:a+n}},convertLayoutItemToRect:function(e,t){var a=this;return function(r){var n=r.autoSize?a.getGridWidth(r.pxWidth,e):r.gridWidth,i=r.autoSize?a.getGridHeight(r.pxHeight,t):r.gridHeight;return a.convertToRect(r.id,r.gridLeft,r.gridTop,n,i)}},convertLayoutsToRects:function(e,t,a){var r=this.convertLayoutItemToRect(t,a);return i(r,e)},convertRectToLayoutItem:function(e,t,a){var r=e.x2-e.x1,n=e.y2-e.y1;return{gridLeft:e.x1,gridTop:e.y1,gridWidth:r,gridHeight:n,pxTop:this.getDomTop(e.y1,a),pxLeft:this.getDomLeft(e.x1,t),pxWidth:this.getDomWidth(r,t),pxHeight:this.getDomHeight(n,a)}},calculateIntersection:function(e,t){var a=Math.min(e.x2,t.x2),r=Math.min(e.y2,t.y2),n=Math.max(e.x1,t.x1),i=Math.max(e.y1,t.y1);return Math.max(0,a-n)*Math.max(0,r-i)},calculateIntersectionRatio:function(e,t){var a=this.calculateIntersection(e,t),r=(e.x2-e.x1)*(e.y2-e.y1);return r<=0?0:a/r},calculateSpareOffset:function(e,t,a){var r=e,i=e,o=t,l=t+1,u=s(a).filter(function(e){return e.x1>i&&e.y1o}).map(n("x1")).min(),d=s(a).filter(function(e){return e.y1>=l&&e.x1<(u||1/0)&&e.x2>r}).map(n("y1")).min();return{left:e,top:t,width:u?u-e:1/0,height:d?d-t:1/0}},collide:function(e){var t=this;return function(a){return t.calculateIntersection(e,a)>0}},swappable:function(e,t){var a=this;return function(r){return a.calculateIntersectionRatio(e,r)>t}},sortLayout:function(e){return s(e).sortBy(["y1","x1"])},getAllCollisions:function(e,t){return s(t).filter(this.collide(e))},getFirstCollision:function(e,t){return s(t).find(this.collide(e))},getBottom:function(e){return s(e).map(n("y2")).max()},getRight:function(e){return s(e).map(n("x2")).max()},compactLayout:function(e,t,a){var r,n,i,u,d,c,p=0,f=e.length,h=o(["left","top"],e);if(!t){for(;p0?Math.max:Math.min,_={id:m.id,top:m.top,left:m.left,width:t.width,height:T(t.height,m.height)},S=this.getPossibleCollision(_,E,function(e,t){return t.left>=e.left+e.width&&t.tope.top}),C=this.moveItems(S,E,y,!1);l(function(e){s(E).find(["id",e.id]).left=e.left},C);var b=v>0?Math.max:Math.min,N={id:m.id,top:m.top,left:m.left,width:b(t.width,m.width),height:t.height},A=this.getPossibleCollision(N,E,function(e,t){return t.top>=e.top+e.height&&t.lefte.left}),R=this.moveItems(A,E,v,!0);return C.concat(R)},moveItems:function(e,t,a,r){var n,i,o,l,u,d=[],c=r?function(e,t){return{id:e.id,top:e.top+t,left:e.left,width:e.width,height:e.height}}:function(e,t){return{id:e.id,top:e.top,left:e.left+t,width:e.width,height:e.height}},p=r?function(e){return s(e).map(function(e){return e.top+e.height}).max()}:function(e){return s(e).map(function(e){return e.left+e.width}).max()},f=r?function(e,t){return t-e.top}:function(e,t){return t-e.left},h=r?function(e,t){return t.top+t.height<=e.top&&t.lefte.left}:function(e,t){return t.left+t.width<=e.left&&t.tope.top},m=s(t).reject(function(t){return s(e).findIndex(["id",t.id])>=0}).value();for(n=0,i=e.length;n-1?(0,R.isEqual)(o,i):o===i))return!0}for(var l in e)if(e.hasOwnProperty(l)){var s=e[l],u=(0,R.get)(l,this.props);if(!(I.indexOf(l)>-1?(0,R.isEqual)(u,s):u===s))return!0}return!1}},{key:"componentDidMount",value:function(){var e=this.props,t=e.onMeasureChange,a=e.autoSize,r=this.containerRef,n=r.clientWidth,i=r.clientHeight;a&&t&&t(n,i)}},{key:"render",value:function(){var e=this.props,t=e.store,a=e.uiStore,r=e.viewMode,n=e.printingMode,o=e.quickEdit,l=e.reportBody,s=void 0===l?{}:l,u=e.autoSize,d=e.minWidth,c=e.minHeight,f=e.loader,h=e.hideGridPopup,m=e.gridItem,g=m.id,E=this.checkPrivileges(),v=(0,R.isNil)(m.type),T={reportPart:m,reportBody:s,store:t,viewMode:r,quickEdit:o,hasPrivileges:E,autoSize:u,loader:f,hideGridPopup:h},_=(0,i.default)({},!m.isLoadingData&&{minWidth:d-10||0,minHeight:c-10||0}),A={component:E?N.default.wrapper(y.default):y.default};if(n){var O=t.reportId;return p.default.createElement("div",{id:g,ref:this.setDom,className:"report-part u-bgWhite u_noPaddingAll"},p.default.createElement("div",{className:"report-content u-bgWhite",style:_},p.default.createElement(S.default,{reportPart:m,store:t,reportPartId:g,reportId:O,exportFormatSetting:e.exportFormatSetting,printingMode:n,hideGridPopup:!0,setting:e.setting,finishedRender:e.finishedRender,doesBreakPage:e.doesBreakPage,isFirstReportPart:e.isFirstReportPart})),e.pageBreakAfterReportPart&&!e.isLastReportPart&&p.default.createElement("div",{className:"u_alwaysBreakAfter"}))}return p.default.createElement("div",{id:g,ref:this.setDom,className:"report-part",style:e.style},p.default.createElement("div",{className:"report-content",style:_},p.default.createElement(A.component,{itemData:m,reportPart:m,reportBody:s,store:t,uiStore:a,viewMode:r,quickEdit:o,propsEditors:C.default.EDITOR_CONFIG.ReportPart,beforeShowProps:e.beforeShowProps,setStateReview:e.setStateReview,stateReview:e.stateReview,hasPrivileges:E,onChangeFullScreen:e.onChangeFullScreen,loadReportPartData:e.loadReportPartData}),this.renderContent(T,v),m.type!==C.default.REPORT_PART_TYPE.Chart&&p.default.createElement(b.default,null)))}}]),t}(c.Component),r.propTypes={store:h.default.object,gridItem:h.default.object.isRequired,reportBody:h.default.object,uiStore:h.default.object,minWidth:h.default.number,minHeight:h.default.number,autoSize:h.default.bool,isSnapEditOn:h.default.bool},n),P={};t.default=(0,m.default)({context:{childContextTypes:E.default.loaderShape,getChildContext:function(e){var t=e.gridItem;return P[t.id]||(P[t.id]=E.default.createLoaderContext()),P[t.id]}}},g.default)(D),e.exports=t.default},function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.initTooltip=n,t.updateTooltip=i,t.disableTooltip=o,t.destroyTooltip=l;var r=a(35);function n(t,a){var n=(0,r.findDOMNode)(t);n&&a&&e(n).tooltip(a)}function i(t,a){var n=(0,r.findDOMNode)(t);n&&(e(n).tooltip("enable"),e(n).attr("data-original-title",a))}function o(t){var a=(0,r.findDOMNode)(t);a&&e(a).tooltip("disable")}function l(t){var a=(0,r.findDOMNode)(t);a&&e(a).tooltip("destroy")}t.default={initTooltip:n,updateTooltip:i,disableTooltip:o,destroyTooltip:l}}).call(t,a(27))},,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var r,n,i,o,l,s;r=a(0),n=r.PropTypes,i=a(1053),o=a(1052),l=a(9).observer,s=r.createClass({displayName:"Resizer",propTypes:{children:n.element.isRequired,width:n.oneOfType([n.number,n.string]),height:n.oneOfType([n.number,n.string]),onResize:n.func,onResizeStop:n.func,minConstraints:n.arrayOf(n.number),maxConstraints:n.arrayOf(n.number),rightResize:r.PropTypes.bool,bottomResize:r.PropTypes.bool,bottomRightResize:r.PropTypes.bool,rightResizeClass:r.PropTypes.string,bottomResizeClass:r.PropTypes.string,bottomRightResizeClass:r.PropTypes.string},getDefaultProps:function(){return{width:"auto",height:"auto",rightResize:!1,bottomResize:!1,bottomRightResize:!1}},componentWillMount:function(){var e=this.props;this.controller=new i(0,0,e.width,e.height,e.minConstraints,e.maxConstraints)},componentWillReceiveProps:function(e){e.width===this.props.width&&e.height===this.props.height||this.controller.setWidthHeight(e.width,e.height)},render:function(){var e=this.props,t=e.minConstraints,a=e.maxConstraints,n=e.rightResize,i=e.bottomResize,l=e.bottomRightResize,s=e.rightResizeClass,u=e.bottomResizeClass,d=e.bottomRightResizeClass,c=e.onResize,p=e.onResizeStop,f={width:this.controller.width,height:this.controller.height};return r.createElement(o,{width:this.controller.width,height:this.controller.height,minConstraints:t,maxConstraints:a,rightResize:n,bottomResize:i,bottomRightResize:l,rightResizeClass:s,bottomResizeClass:u,bottomRightResizeClass:d,resizableController:this.controller,style:f,onResize:c,onResizeStop:p},this.props.children)}}),e.exports=l(s)},,,function(e,t,a){"use strict";var r,n,i,o;r=a(0),n=a(35),i=a(41),o=r.createClass({displayName:"Portal",componentDidMount:function(){this.renderOverlay()},componentDidUpdate:function(){this.renderOverlay()},renderOverlay:function(){var e=this.props.children?r.Children.only(this.props.children):null;null!==e?(this.mountOverlayTarget(),this.overlayInstance=n.unstable_renderSubtreeIntoContainer(this,e,this.overlayTarget)):(this.unrenderOverlay(),this.unmountOverlayTarget())},componentWillUnmount:function(){this.unrenderOverlay(),this.unmountOverlayTarget()},mountOverlayTarget:function(){this.overlayTarget||(this.overlayTarget=document.createElement("div"),this.portalContainerNode=i.containerElement,this.portalContainerNode.appendChild(this.overlayTarget))},unmountOverlayTarget:function(){this.overlayTarget&&(this.portalContainerNode.removeChild(this.overlayTarget),this.overlayTarget=null),this.portalContainerNode=null},unrenderOverlay:function(){this.overlayTarget&&(n.unmountComponentAtNode(this.overlayTarget),this.overlayInstance=null)},render:function(){return null},getMountNode:function(){return this.overlayTarget},getOverlayDOMNode:function(){if(this.isMounted())return this.overlayInstance?n.findDOMNode(this.overlayInstance):null}}),e.exports=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(1856)),n=s(a(652)),i=s(a(17)),o=s(a(962)),l=s(a(1861));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,l.default)(e),s=(0,l.default)(t),u=(0,o.default)("isa");function d(t){var r=!0,o=!1,l=void 0;try{for(var s,d=(0,n.default)(a);!(r=(s=d.next()).done);r=!0){var c=s.value;(0,i.default)(t.prototype,c,{value:e[c],writable:!0})}}catch(e){o=!0,l=e}finally{try{!r&&d.return&&d.return()}finally{if(o)throw l}}return(0,i.default)(t.prototype,u,{value:!0}),t}var c=!0,p=!1,f=void 0;try{for(var h,m=(0,n.default)(s);!(c=(h=m.next()).done);c=!0){var g=h.value;(0,i.default)(d,g,{value:t[g],enumerable:t.propertyIsEnumerable(g)})}}catch(e){p=!0,f=e}finally{try{!c&&m.return&&m.return()}finally{if(p)throw f}}return(0,i.default)(d,r.default,{value:function(e){return!!e[u]}}),d},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l=f(a(17)),s=f(a(23)),u=f(a(2)),d=f(a(3)),c=a(5),p=a(1);function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function m(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var g=(r=function(){function e(){(0,u.default)(this,e),h(this,"hadSetting",n,this),h(this,"value",i,this),h(this,"settingValue",o,this)}return(0,d.default)(e,[{key:"update",value:function(e){this.value=(0,p.isFunction)(e.loadValue)?e.loadValue():e.value,this.settingValue=(0,p.isFunction)(e.loadValue)?e.loadValue():e.settingValue,this.hadSetting=(0,p.isFunction)(e.hadSetting)?e.hadSetting():e.hadSetting}}]),e}(),n=m(r.prototype,"hadSetting",[c.observable],{enumerable:!0,initializer:function(){return null}}),i=m(r.prototype,"value",[c.observable],{enumerable:!0,initializer:function(){return null}}),o=m(r.prototype,"settingValue",[c.observable],{enumerable:!0,initializer:function(){return null}}),m(r.prototype,"update",[c.action],(0,s.default)(r.prototype,"update"),r.prototype),r);t.default=g,e.exports=t.default},,,,,,,,,,,,function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(0),n=a(4),i=a(1899),o=a(1900),l=a(1901),s=a(1902),u=a(322),d=a(1).assign,c=r.createClass({displayName:"ColorDialog",getDefaultProps:function(){return{color:{h:0,s:0,l:1,a:0}}},getInitialState:function(){var e=this.props;return d(u.toState(e.color,0,e.alpha),{visible:e.display,currentColor:e.color})},handleChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=u.simpleCheckForValidColor(e);if((parseInt(t)>1||parseInt(t)<0||isNaN(parseInt(t)))&&(t=1),a){t=this.props.isAlpha?t:this.props.alpha||1;var r=u.toState(e,e.h||this.state.oldHue,t);this.setState(r),this.props.onChangeComplete&&this.debounce(this.props.onChangeComplete,r),this.props.onChange&&this.props.onChange(r)}},handleAccept:function(){this.props.onAccept&&this.props.onAccept(this.state.hex,this.state.alpha)},componentWillReceiveProps:function(e){this.setState(d(u.toState(e.color,this.state.oldHue,e.alpha),{visible:e.display}))},render:function(){var e=this.props.localization;return r.createElement("div",{className:"izenda-ColorDialog"},r.createElement("div",{className:"izenda-ColorDialog-header"},e.getText("COLOR_DIALOG_LABEL_TITLE")),r.createElement("div",{className:"izenda-ColorDialog-content"},r.createElement("div",{className:"izenda-ColorDialog-saturation izenda-Disable-move"},r.createElement(o,{hsl:this.state.hsl,hsv:this.state.hsv,onChange:this.handleChange})),r.createElement("div",{className:"izenda-ColorDialog-hue izenda-Disable-move"},r.createElement(i,{direction:"vertical",hsl:this.state.hsl,onChange:this.handleChange})),r.createElement("div",{className:"izenda-ColorDialog-controls"},r.createElement("div",{className:"u_flex"},r.createElement("div",{className:"izenda-ColorDialog-previews"},r.createElement(l,{rgb:this.state.rgb,currentColor:this.state.currentColor})),r.createElement("div",{className:"izenda-ColorDialog-actions"},r.createElement("div",{className:"izenda-ColorDialog-button",onClick:this.handleAccept},e.getText("COMMON_LABEL_OK")),r.createElement("div",{className:"izenda-ColorDialog-button",onClick:this.props.onCancel},e.getText("COMMON_LABEL_CANCEL")),r.createElement(s,{rgb:this.state.rgb,hsv:this.state.hsv,hex:this.state.hex,onChange:this.handleChange,alpha:this.state.alpha,isAlpha:this.props.isAlpha}))))))}}),e.exports=n()(c)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E=a(20);r=a(0),n=a(24),i=a(25)()(a(19)),o=a(97).CUSTOM_URL,l=a(97).SUB_REPORT,s=a(97).MESSAGE,u=a(680),d=a(12),c=a(1),p=c.isNil,f=c.find,h=c.map,m=c.uniqueId,g=r.createClass({displayName:"CustomURLBody",getDefaultProps:function(){return{value:{url:"",option:o.DEFAULT_VALUE}}},getInitialState:function(){var e=this.props.value,t=e.selectedIconValue;return(!t||p(t.icon)||p(t.value))&&(t={icon:l.DEFAULT_ICON.icon,value:l.DEFAULT_ICON.value}),{url:e.url,option:e.option,viewSettingByLink:!!p(e.viewSettingByLink)||e.viewSettingByLink,selectedIconValue:t}},beforeClosing:function(e,t){var a=this.props;return"accept"===t&&a.checkUniqLinkOption&&!a.checkUniqLinkOption(this.state,o.NAME)?a.confirmMessage("error",s.DUPLICATE_VIEW_SETTING):(0,E.resolve)(!0)},getValue:function(){return this.state},updateViewSettingByLink:function(){this.setState({viewSettingByLink:!this.state.viewSettingByLink})},updateSelectedViewSettingIcon:function(e){var t=f({value:e},l.ICON_TYPES);t&&this.setState({selectedIconValue:{icon:t.icon,value:t.value}})},renderRadioSelection:function(){var e=n.notifyChange,t=function(e){this.setState({option:e})}.bind(this);return h(function(a){return r.createElement("div",{key:m("url_"),className:"radio"},r.createElement("label",null,r.createElement("input",{onChange:e(t,n.INPUT),type:"radio",name:"optradio",value:a,checked:a===this.state.option}),d.getText(String.format("PROPERTIES_BUILDER_CONSTANTS_CUSTOM_URL_OPTIONS_{0}",a))))}.bind(this),o.OPTIONS)},renderViewSetting:function(){var e=this.state;return!1===this.props.hiddenIconSettingSubReport&&r.createElement(u,{viewSettingByLink:e.viewSettingByLink,selectedIconValue:e.selectedIconValue,updateSelectedViewSettingIcon:this.updateSelectedViewSettingIcon,updateViewSettingByLink:this.updateViewSettingByLink})},render:function(){var e=n.notifyChange,t=function(e){this.setState({url:e})}.bind(this);return r.createElement("div",null,r.createElement("label",null,o.CONTENT_DESCRIPTION),r.createElement(i,{className:"form-control u_resizeVertical",onChange:e(t,n.INPUT),value:this.state.url,validations:o.CONSTRAINTS.URL,field:"url"}),this.renderRadioSelection(),this.renderViewSetting())}}),e.exports=g},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=y(a(14)),o=y(a(6)),l=y(a(2)),s=y(a(3)),u=y(a(7)),d=y(a(8)),c=y(a(0)),p=y(a(129)),f=y(a(160)),h=a(48),m=y(a(1141)),g=a(18),E=y(a(33));function y(e){return e&&e.__esModule?e:{default:e}}var v=a(1),T=(v.isNil,v.getOr,v.concat,v.has,v.clone,v.reduce,v.isObject,v.assign,v.get,v.isFunction,v.tail,v.isString,v.isUndefined,v.flow,v.map,v.find,v.groupBy,"Vertical"),S=[{name:"Sort",type:"MAIN_MENU_ITEM",subItems:[{name:"Sort Up",type:"SUB_MENU_ITEM"},{name:"Sort Down",type:"SUB_MENU_ITEM"},{name:"Unsort",type:"SUB_MENU_ITEM"}]}],C=[{name:"Function",type:"MAIN_MENU_ITEM",subItems:[]},{name:"Formats",type:"MAIN_MENU_ITEM",subItems:[]}],b=[{name:"Remove",type:"MAIN_MENU_ITEM"}];var N=(r=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));n.call(a);var r,i,s=e.isPreview||e.isExploreView?(r=e.reportPart,i=S.concat(C),r.reportPartContent.properties.generalInfo.gridStyle==T&&(i=[].concat(i,b)),i):S;return a.state={menuItems:s},a.existingFormatfieldDataType=null,a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.propertiesEditorModel=new m.default}},{key:"componentDidUpdate",value:function(){if(this.props.isPreview||this.props.isExploreView){var e=this.props.cellInfor,t=e.field,a=t.querySourceId,r=t.dataFieldType,n=e.element;a&&r!=this.existingFormatfieldDataType&&(this.existingFormatfieldDataType=n.field.dataFieldType,this.getFunctions(a,r,n),this.getFormats(a,r,n))}}},{key:"getIndex",value:function(e,t){return"SUB_MENU_ITEM_FORMAT_CLEAR"===e.subItems[0].type?t-1:t}},{key:"render",value:function(){var e=this,t=this.props,a=t.isVisible,r=t.mouseEvent,n=this.state.menuItems,i={top:r&&r.clientY||0,left:r&&r.clientX||0},o=a?" is-open":"";return c.default.createElement("ul",{className:"izenda-context-menu"+o,style:i},n.map(function(t,a){return c.default.createElement("li",{key:a,className:"main-menu-item "+(t.subItems&&0===t.subItems.length?"disabled":""),onClick:"Remove"==t.name&&function(){return e.handleActionClick(t,null)}},t.name,t.subItems&&t.subItems.length>0&&c.default.createElement("div",{className:"sub-menu-container"},c.default.createElement("ul",null,t.subItems.map(function(a,r){return c.default.createElement("li",{key:r,className:"sub-menu-item",onClick:"Formats"==t.name&&"SUB_MENU_ITEM_FORMAT_CLEAR"!=a.type?"":function(){return e.handleActionClick(a,r)}},a.name,a&&a.subMenuLinks&&c.default.createElement("div",{className:"sub-menu-link-container"},c.default.createElement("ul",null,a.subMenuLinks.map(function(a,n){return c.default.createElement("li",{key:n,className:"sub-menu-item",onClick:function(){return e.handleActionClick({name:""+a,type:"SUB_MENU_ITEM"},n,e.getIndex(t,r))}},a)}))))}))))}))}}]),t}(c.default.Component),n=function(){var e=this;this.groupByFormats=function(e,t){return _(e).groupBy("category").map(function(e,a){return{name:a,fieldDataType:t||null,subMenuLinks:_.map(e,"name"),subCategory:e}}).value()},this.setMenuFormats=function(t,a){var r=e.props.localization,n=e.groupByFormats(t,a.field.dataFieldType);if(t&&t.length>0){var i=e.state.menuItems;i[2].subItems=e.groupByFormats(t),a&&a.properties&&a.properties.dataFormattings&&a.properties.dataFormattings.format.formatId&&i[2].subItems&&i[2].subItems.length>0&&(i[2].subItems.splice(0,0,{name:r.getText("COMMON_LABEL_MENU_CLEAR_FORMAT"),type:"SUB_MENU_ITEM_FORMAT_CLEAR"}),t.splice(0,0,{})),e.setState({menuItems:i,formatterData:n})}else{var o=e.state.menuItems;o[2].subItems=[],e.setState({menuItems:o,formatterData:[{fieldDataType:a.field.dataFieldType}]})}},this.getFunctions=function(t,a,r){var n=e.props.localization;if("report-part-grid-pivot"===e.props.sourceForm){var o=e.state.menuItems;return o[1].subItems=[{name:h.FUNCTION.GROUP.NAME,type:"SUB_MENU_ITEM_FUNCTION"}],e.setState({menuItems:o})}f.default.loadReportFunction(h.FIELD_FUNCTION_MODE.FieldProperty,a,{}.tenantId,[t]).then(function(t){var a=[],o=[];if(r&&r.properties&&r.properties.dataFormattings&&r.properties.dataFormattings.functionInfo.id&&r.properties.dataFormattings.functionInfo.id.length>0&&r.properties.dataFormattings.functionInfo.name!=h.FUNCTION.GROUP.NAME){if(t&&t.length>0){var l=(0,i.default)({},t.filter(function(e){return e.name===h.FUNCTION.GROUP.NAME})[0]);l.type="SUB_MENU_ITEM_FUNCTION_REMOVE",l.name=n.getText("COMMON_LABEL_MENU_REMOVE_FUNCTION"),a.push(l)}o=t.filter(function(e){return e.id!==r.properties.dataFormattings.functionInfo.id})}else o=t;var s=a.concat(o),u=e.state.menuItems;u[1].subItems=s,e.setState({menuItems:u})})},this.getFormats=function(t,a){var r=e.props,n=(r.needUpdatePreview,r.cellInfor),i=r.reportPart,o=(r.previewRecords,n.field),l=n.element,s=i.reportPartContent,u=l&&l.properties&&l.properties.dataFormattings&&l.properties.dataFormattings.functionInfo&&l.properties.dataFormattings.functionInfo.formatDataType?l.properties.dataFormattings.functionInfo.formatDataType:o.dataFieldType;f.default.loadReportFieldDataFormat(u).then(function(t){if(u===g.DATA_TYPES.DATE_TIME){var a=p.default.filterDateTimeFormat(t);return e.setMenuFormats(a,l)}if(u===g.DATA_TYPES.MONEY||u===g.DATA_TYPES.NUMERIC){var r=E.default.filterFormatForField(s,t,!1,"columns");return e.setMenuFormats(r,l),r}return e.setMenuFormats(t,l),t})},this.handleActionClick=function(t,a){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("Sort Up"!==t.name)if("Sort Down"!==t.name)if("Unsort"!==t.name)if("Remove"!==t.name)if("SUB_MENU_ITEM_FUNCTION_REMOVE"===t.type&&(t.name=h.FUNCTION.GROUP.NAME),"SUB_MENU_ITEM_FORMAT_CLEAR"!==t.type)if("SUB_MENU_ITEM"!==t.type){if("report-part-grid-pivot"!==e.props.sourceForm){var n=e.props;(0,n.onSetFunctionCallback)({index:n.cellInfor.element.position,functionData:t})}}else{var o=e.props,l=o.onSetFormatterCallback,s=o.cellInfor.element,u=e.state.formatterData[r].subCategory[a],d={id:u.customId},c=(0,i.default)({},u,d),p="Custom Format"!=u.category?u:c;l({index:s.position,formatData:p})}else{var f=e.props;(0,f.onSetFormatterCallback)({index:f.cellInfor.element.position,formatData:{id:null,format:null,groupBy:null}})}else e.handleRemoveField();else e.handleSortReport("");else e.handleSortReport("DESC");else e.handleSortReport("ASC")},this.handleSortReport=function(t){var a=e.props,r=a.needUpdatePreview,n=a.cellInfor,i=a.reportPart,o=a.previewRecords;n.element.properties.setSortValue(t),r(i,null,null,null,null,o)},this.handleRemoveField=function(){var t=e.props,a=t.needUpdatePreview,r=t.cellInfor,n=t.reportPart,i=(t.previewRecords,t.isExploreView),o=t.exploreStore,l=t.reportDesignerFieldStore,s=r.element;i&&(o.originalAllQuerySourceFields[0].querySource.map(function(e){var t=e.fields.filter(function(e){return e.id==s.field.fieldId});t.length>0&&o.availableAllQuerySourceFields[0].querySource.map(function(e){e.id==s.field.querySourceId&&e.fields.push(t[0])})}),l.setNeedToExploreStoreReportInfoUpdate(!0));var u=n.getContainerDetails(s);n.removeFieldFromContainer(u,s),a(n)}},r);t.default=N,e.exports=t.default},function(e,t,a){"use strict";(function(t){var r=i(a(71)),n=i(a(20));function i(e){return e&&e.__esModule?e:{default:e}}!function(){var i={GROUP:"GROUP",FIELD:"FIELD"},o=a(5),l=a(1),s=l.isObject,u=l.isFunction,d=l.isString,c=l.isUndefined,p=l.values,f=l.omit,h=l.get;function m(){this.definedSchema={},this.source={},this.mappingProps={},this.mappingSource={}}m.prototype.getDataBySchema=function(){return this.buildData("",this.definedSchema,{})},m.prototype.buildData=function(e,t,a){if(!s(t))return a;for(var r in(a=a||{}).itemType=s(t.fields)?i.GROUP:i.FIELD,this.getItemData(e,t,a),t.fields)a[r]=this.buildData(r,t.fields[r],{});return a},m.prototype.getItemData=function(e,t,a){return s(a)?((a=a||{}).value=this.getValue(e,t,a),a.props=this.getProps(e,t,a),a):a},m.prototype.getValue=function(e,t,a){var r,n=this.source||{},i=this.mappingSource||{},o=this.mappingProps||{};if(r=n[e]||t.value,!t.fnValue)return r;var l=t.fnValue;return d(l)?(u(n[l])?l=n[l].bind(n):u(i[l])?l=i[l]:u(o[l])&&(l=o[l]),u(l)&&l(e,t)):l},m.prototype.getProps=function(e,a,r){var i,l=this.mappingSource||{},c={},p=a.props;if(u(p)&&(p=p.call(null,e,a)),d(p)&&u(l[p])&&(p=l[p].call(null,e,a)),!s(p))return c;for(i in a=t.extend(!0,{},a,{props:p}),p)f(i,d(p[i])?this.getPropValueByKey(e,a,r,i):p[i]);return c;function f(e,t){var a="";t instanceof n.default?a="promiseProps":u(t)?(a="fnProps",t=o.asReference(t)):a="values",c[a]=c[a]||{},c[a][e]=t}},m.prototype.getPropValueByKey=function(e,t,a,r){if(t&&t.props&&t.props[r]){var n=this.source||{},i=this.mappingProps||{},o=this.mappingSource||{},l=t.props[r];return u(l)?l:d(l)?c(i[l])?u(n[l])?n[l].call(n,e,t,r):u(o[l])?o[l].call(null,e,t,r):l:i[l]:l}},m.prototype.observerObject=function(e){return function e(t){if(!s(t)||-1===p(i).indexOf(t.itemType))return;o.extendObservable(t,f("props",t));t.props.values&&o.extendObservable(t.props.values,t.props.values);t.props.promiseProps&&this.observerPromiseProp(t.props.promiseProps);for(var a in f(["props","value","itemType"],t))e.call(this,t[a])}.call(this,e),e},m.prototype.observerPromiseProp=function(e,t){var a;for(var r in t=t||e,e)(a=e[r])instanceof n.default?a.isFulfilled&&a.isFulfilled()?t[r]=a.value():i(r,a):t[r]=a;return o.extendObservable(t,t);function i(e,a){t[e]=null,a.then(function(a){t[e]=a})}},m.prototype.updateSchemaData=function(e,t){return o.transaction(function(){(function e(t,a){if(!s(t)||-1===p(i).indexOf(t.itemType))return;o.extendObservable(t,f("props",a));a.props.values&&o.extendObservable(t.props.values,a.props.values);a.props.promiseProps&&this.observerPromiseProp(a.props.promiseProps,t.props.promiseProps);for(var r in f(["props","value","itemType"],a))e.call(this,t[r],a[r])}).call(this,e,t)}.bind(this))},m.prototype.setDataSchema=function(e){this.dataSchema=e},m.prototype.updateDataSchemaByKey=function(e,t,a){for(var n=arguments.length,i=Array(n>3?n-3:0),l=3;l0){var n=r.cellElements[0],i=n[0],o=parseInt(i.style.left);o>0&&r.setLeftPosition(n[a],o)}}},{key:"render",value:function(){var e=this,t=this.props,a=t.connectDragSource,r=t.rowData,n=t.columns,i=!(0,g.isNil)(a);if(r&&(r.deleted||r.hidden))return f.default.createElement("div",null);var l=(0,g.invokeArgs)("rowProps",[r],t),s=(0,g.getOr)("","className",l),u=t.item||{},d=(0,m.default)("table-row",s,{"can-drop":u.isDroppable&&t.isOver,"cannot-drop":!u.isDroppable&&t.isOver,selectable:!!t.onClickRow,"highlight-row":t.isHighLight&&t.isHighLight(r)}),c=(0,m.default)("table-cell",{"u-stickLeft":t.stickHorizontal}),p=t.rowSpan?{left:t.rowSpan.width}:{},h=[],E=[];return n.forEach(function(t,a){t.props.isColumnHeader?h.push(e.renderCell(t,a)):E.push(e.renderCell(t,a))}),i?t.connectDragPreview(f.default.createElement("div",(0,o.default)({},l,{className:d,onClick:this.handleRowClick}),a(f.default.createElement("div",{className:"icon-draggable table-cell",style:{paddingRight:"1px"}})),n.map(this.renderCell))):t.stickHorizontal?f.default.createElement("div",(0,o.default)({},l,{className:d,onClick:this.handleRowClick}),!t.isSupportSticky&&f.default.createElement("div",{style:p,className:"u-virtualStickLeft"}),!(0,g.isEmpty)(h)&&f.default.createElement("div",{className:c},h),E):f.default.createElement("div",(0,o.default)({},l,{className:d,onClick:this.handleRowClick}),[].concat(h,E))}}]),t}(p.Component),n.propTypes={registerCell:p.PropTypes.func.isRequired,unregisterCell:p.PropTypes.func.isRequired,rowData:p.PropTypes.oneOfType([p.PropTypes.object,p.PropTypes.array]),rowProps:p.PropTypes.func,columns:p.PropTypes.array,columnWidths:h.propTypes.arrayOrObservableArray,index:p.PropTypes.number,isOver:p.PropTypes.bool,isHighLight:p.PropTypes.func,handleItemClick:p.PropTypes.func},r=i))||r;t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=y(a(6)),s=y(a(2)),u=y(a(3)),d=y(a(7)),c=y(a(8)),p=a(0),f=y(p),h=y(a(13)),m=a(9),g=y(a(682)),E=a(1);function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,m.observer)((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return o.call(a),a.buildFn(a.props),a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.props.fnGetCellStyle!==e.fnGetCellStyle&&this.buildFn(e)}},{key:"render",value:function(){var e=this.props,t=e.cell,a=e.rowSpan,r=e.index,n=e.handleItemClick,i=e.selectCell,o=e.sourceForm;return f.default.createElement(g.default,{cell:t,rowData:a,fnGetCellStyle:this.fnGetCellStyle,fnGetCellContentStyle:this.fnGetCellContentStyle,columnIndex:r,rowIndex:r,selectCell:i,handleItemClick:n,sourceForm:o})}}]),t}(p.Component),n.propTypes={rowSpan:h.default.object,width:h.default.number,height:h.default.number,fnGetCellStyle:h.default.func,fnGetCellContentStyle:h.default.func,cell:h.default.func,index:h.default.number},o=function(){var e=this;this.injectHeigth=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.props.height;return a?(0,E.assign)(t,{height:a}):t},this.injectMaxHeigth=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.props.height;return a?(0,E.assign)(t,{maxHeight:a}):t},this.injectWidth=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.props.width;return a?(0,E.assign)(t,{width:a,minWidth:a,maxWidth:a}):t},this.buildFn=function(t){e.fnGetCellStyle=(0,E.flow)(t.fnGetCellStyle||E.noop,e.injectWidth,e.injectHeigth),e.fnGetCellContentStyle=(0,E.flow)(t.fnGetCellContentStyle||E.noop,e.injectMaxHeigth)}},r=i))||r;t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(9),n=a(11),i=a(1);t.default=(0,n.compose)(r.observer,(0,n.mapProps)(function(e){var t=e.pageInfo,a=e.totalRecords,r=e.pageSize;return(0,i.assignAll)([(0,i.pick)(["pageSize","pageIndex","totalRecords"],t),{totalPage:(0,i.getOr)((0,i.ceil)(a/r),"totalPage",t)},(0,i.omit)(["pageInfo"],e)])}),(0,n.withProps)(function(e){var t=e.pageSize,a=e.pageIndex,r=e.currentPageSize,n=e.totalRecords,o=t*(a-1)+1,l=(0,i.isNil)(r)?t:r;return{beginRecord:o,endRecord:(0,i.min)([o+l-1,n])}})),e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(5),r=a(5).action,n=a(327),i=a(2032),o=a(16),l=a(41);function s(){this.performanceModel=new i}s.prototype.init=r(function(){return this.observeTenantId(),o.setCheckDirtyFunction(function(){return this.performanceModel.isDirty}.bind(this)),this.getInitial()}),s.prototype.observeTenantId=r(function(){this.disposePerformance=t.observe(o,"tenantId",function(){o.silentUpdate||this.getInitial()}.bind(this))}),s.prototype.destroy=r(function(){this.disposePerformance(),o.resetCheckDirtyFunction()}),s.prototype.getInitial=r(function(){return this.performanceModel.resetErrorMessage(),this.updateData()}),s.prototype.updateData=r(function(){return n.loadPerformance(o.getTenantId()).then(this.performanceModel.readPerformanceData.bind(this.performanceModel))}),s.prototype.onSave=r(function(){var e=this.performanceModel,t=e.buildSaveData(o.getTenantId());return n.savePerformance(t).then(e.showAlertMessage.bind(e)).then(e.resetDirty).then(this.updateData.bind(this)).then(l.setPerformance.bind(l,t))}),s.prototype.loadPerformance=r(function(){return n.loadPerformance(o.getTenantId())}),e.exports=s}()},function(e,t,a){"use strict";!function(){var t=a(5).observe,r=a(327),n=a(278),i=a(16),o=a(41),l=a(2033),s=a(2034);function u(){this.model=new s}u.prototype.init=function(){return this.observeTenantId(),i.setCheckDirtyFunction(function(){return this.model.isDirty}.bind(this)),this.getInitial()},u.prototype.observeTenantId=function(){this.disposeSecurity=t(i,"tenantId",function(){i.silentUpdate||this.getInitial()}.bind(this))},u.prototype.getInitial=function(){return this.model.resetErrorMessage(),r.getTenantSecurity(i.getTenantId()).then(this.model.readSecuritySetting.bind(this.model))},u.prototype.destroy=function(){i.resetCheckDirtyFunction(),this.disposeSecurity()},u.prototype.saveTenantSecurity=function(){var e=this.model.buildSaveData(i.getTenantId());return r.saveTenantSecurity(e).then(this.model.showAlertMessage.bind(this.model)).then(this.model.resetDirty).then(o.setSecurity.bind(o,e))},u.prototype.loadSecurity=function(){return r.getTenantSecurity(i.getTenantId())},u.prototype.getConnectionDetailInfo=function(){return n.getConnectionDetailInfo(i.getTenantId(),!1,{defaultChecked:!1})},u.prototype.getConnectionDetailInfoByQuerySoures=function(e){return n.getConnectionDetailInfoByQuerySoures(e)},u.prototype.getBundle=function(){return l.BUNDLE},e.exports=u}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=m(a(6)),i=m(a(2)),o=m(a(3)),l=m(a(7)),s=m(a(8)),u=a(0),d=m(u),c=m(a(4)),p=m(a(2037)),f=m(a(25)),h=m(a(47));function m(e){return e&&e.__esModule?e:{default:e}}var g=(0,f.default)()(h.default),E=(0,c.default)()(r=function(e){function t(){var e,a,r,o;(0,i.default)(this,t);for(var s=arguments.length,u=Array(s),d=0;dMath.pow(2,32))&&this.setState({value:a})},componentWillReceiveProps:function(e){this.setState({value:d(this.props.propertyKey,e.loadValue)})},shouldComponentUpdate:function(e,t){return this.state.value!==t.value},componentWillUpdate:function(){this.setState({value:d(this.props.propertyKey,this.props.loadValue)})},render:function(){var e=i("height-format input-group",this.props.className);return r.createElement("div",{className:e},r.createElement(o,{value:d(this.props.propertyKey,this.props.loadValue),onChange:this.onValueChange,onBlur:this.onBlur}),r.createElement("span",{className:"height-unit input-group-addon"},l.getText("UI_CONSTANT_PIXEL")))}}),e.exports=n.observer(c)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=y(a(6)),l=y(a(2)),s=y(a(3)),u=y(a(7)),d=y(a(8)),c=y(a(0)),p=a(9),f=y(a(67)),h=(y(a(164)),a(165)),m=y(a(28)),g=y(a(2066)),E=y(a(2067));function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,p.observer)((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0?n.default.createElement("a",{className:"overflow-text u_textLink",style:m.style,onClick:function(t){var r=e.pointAction,n=e.linkTo,i=e.fieldName,l=n?{separatorColumnName:(0,o.get)("groupField.columnName",n),separatorValue:(0,o.get)("groupName",n)}:null;r&&r(a,[{key:i,value:t}],l)}.bind(this,f)},m.fomattedValue):n.default.createElement("span",{className:"overflow-text",style:m.style},m.fomattedValue)}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(a(14)),n=c(a(0)),i=c(a(691)),o=c(a(1162)),l=c(a(1163)),s=c(a(4)),u=a(1),d=c(a(2093));function c(e){return e&&e.__esModule?e:{default:e}}t.default=(0,s.default)(d.default)(function(e){var t=(0,u.getOr)(!0,"isShowMetric",e),a=(0,u.getOr)(!0,"isShowBreadcrumb",e),s=e.localization,d=e.hideGridPopup,c=e.showGridPreviewPopup,p=t||!d,f=(0,u.pick)(["reportPart","reportPartContent","onDrillDown","points","getPoints","className","hideAllLevel"],e),h=(0,u.pick)(["reportPart","className"],e);return n.default.createElement(i.default,null,a&&n.default.createElement(l.default,(0,r.default)({},f,{className:"izenda-ReportPartChartToolbar_leftSide"})),p&&n.default.createElement("div",{className:"izenda-ReportPartToolbar_rightSide u-posTopRight u-posAbsolute u_textRight"},!d&&n.default.createElement("a",{className:"izenda-GridPopupIcon",title:s.getText("GRID_POPUP_TOOLTIP")},n.default.createElement("span",{className:"icon-grid",onClick:c})),t&&n.default.createElement(o.default,h)))}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(a(0)),n=d(a(2091)),i=d(a(10)),o=d(a(4)),l=a(1),s=d(a(2092)),u=d(a(13));function d(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.reportPart,a=e.className,o=e.localization,s=e.onChange,u=t.reportPartContent||{},d=u.serieChartList,c=(0,i.default)(a,"chart-metric-wrapper");return d.length&&r.default.createElement("span",{className:c},r.default.createElement(n.default,{options:d,onChange:s,value:(0,l.get)("fieldName",u.activeSerie),blankOption:!0,blankOptionText:o.getText("COMMON_LABEL_ALL"),tooltipText:o.getText("REPORTDESIGNER_TOOLTIP_CHARTMETRIC"),valueField:"fieldName",labelField:"fieldName",renderInContainer:!1,maxHeight:120}))};c.propTypes={reportPart:u.default.object,className:u.default.string,onChange:u.default.func},t.default=(0,o.default)(s.default)(c),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(1),i=a(11),o=a(1164),l=(r=o)&&r.__esModule?r:{default:r};var s=(0,i.withProps)(function(e){return{getPoints:function(){return(0,n.getOr)([],"reportPart.reportPartContent.drilldownInfo.filters",e)}}})(l.default);t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(a(0)),n=c(a(10)),i=c(a(33)),o=c(a(83)),l=c(a(91)),s=a(34),u=c(a(4)),d=a(1);function c(e){return e&&e.__esModule?e:{default:e}}t.default=(0,u.default)()(function(e){var t=this,a=e.reportPartContent||(0,d.get)("reportPart.reportPartContent",e);if(!a||!a.hasDrillDown)return null;var u,c,p=function(t){(0,d.isFunction)(e.onDrillDown)&&e.onDrillDown(t,null)},f=function(e){var t=function(e){if(!(0,d.isNil)(e.mapInfo)){if((0,d.getOr)("","mapInfo.mapLevel",e).toUpperCase()!=(0,d.getOr)("","point.nameField.pointType",e).toUpperCase())return e.value;(e=(0,d.getOr)({},"point",e)).field=e.drillingDownField}var t=(0,d.get)("field",e),a=(0,d.get)("columnName",t),r=i.default.getFieldValue(a,e.record),n=(0,d.get)("reportPartElm",t),s=(0,d.get)("fieldDataType",n),u=o.default.getFormatedValueByStringFormat(n,r.value,s);return(0,d.isNil)(u)||(r.value=u),i.default.getDataFormat(r,l.default.getSerieProppertiesByField(n),{record:e.record,element:t})}(e);switch(t){case null:return s.NULL_VALUE;case"":return s.BLANK_VALUE;default:return t}},h=e.localization,m=e.points||e.getPoints&&e.getPoints(),g=(0,n.default)("izenda-ReportPartChart-Breadcrumb overflow-text",e.className);return r.default.createElement("div",{className:g},!e.hideAllLevel&&(u=(0,d.size)(m),c=h.getText("COMMON_LABEL_ALL"),0===u?r.default.createElement("span",{title:c},c):r.default.createElement("a",{title:c,onClick:p.bind(t,null)},c)),m.map(function(a,n){var i=f(a),o=n+i,l=!(e.hideAllLevel&&0===n);return n===m.length-1?r.default.createElement("span",{key:o,title:i},l&&"|"," ",i):r.default.createElement("a",{key:o,title:i,onClick:p.bind(t,a)},l&&"|"," ",i)}))}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=I(a(124)),l=I(a(125)),s=I(a(14)),u=I(a(6)),d=I(a(2)),c=I(a(3)),p=I(a(7)),f=I(a(8)),h=a(0),m=I(h),g=a(9),E=a(5),y=a(1),v=I(a(4)),T=I(a(32)),_=I(a(2104)),S=I(a(26)),C=I(a(2105)),b=I(a(33)),N=I(a(689)),A=I(a(1170)),R=I(a(1173)),O=a(55);function I(e){return e&&e.__esModule?e:{default:e}}var D=function(){return m.default.createElement("div",{style:O.GRID_PREVIEW_POPUP_SIZE},m.default.createElement(S.default,null,b.default.renderLazyLoadingBar()))},P=(0,I(a(2112)).default)(A.default,D),L=(0,v.default)(_.default)((i=n=function(e){function t(){var e,a,r,n;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),l=0;l1&&n<0,o=this.renderLoadingBar;return t.isProcessingData||(o=i?this.renderWithMetric:this.renderWithoutMetric),m.default.createElement(T.default,{sizeClass:"modal-lg grid-preview-modal",visible:!0,autoClose:!1,onClosing:this.props.onClosing,type:"none"},m.default.createElement(T.default.Header,null),m.default.createElement(T.default.Body,null,o()))}}]),t}(h.Component),n.propTypes={reportPart:g.propTypes.observableObject.isRequired},r=i))||r;t.default=L,e.exports=t.default},,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=P(a(14)),s=P(a(6)),u=P(a(2)),d=P(a(3)),c=P(a(7)),p=P(a(8)),f=a(0),h=P(f),m=P(a(13)),g=P(a(4)),E=a(46),y=P(a(33)),v=P(a(10)),T=a(99),_=a(48),S=P(a(693)),C=P(a(94)),b=P(a(2108)),N=P(a(390)),A=P(a(41)),R=a(1),O=a(33),I=P(a(215)),D=P(a(472));function P(e){return e&&e.__esModule?e:{default:e}}var L=["null",""],M=(0,g.default)(b.default)((i=n=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this));o.call(a),a.renderListeners=[];var r=e.records,n=e.reportPart;return y.default.applyConditionalFormattingForHorizontalAndVerticalGrids(r,n),a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){var e=this.props;e.printingMode&&C.default.publishFinishedRender(this.renderListeners,function(){e.finishedRender&&e.finishedRender()})}},{key:"isDataContainImage",value:function(e){return null!=e&&(0,R.includes)("data:image",e)}},{key:"render",value:function(){var e=this.props,t=this.renderTable,a=e.generateHeaderData(e);return h.default.createElement("section",null,a.map(t))}}]),t}(f.Component),n.propTypes={reportPart:m.default.object.isRequired,records:m.default.oneOfType([m.default.object,m.default.array]).isRequired},o=function(){var e=this;this.renderTable=function(t,a){var r=e.props,n=r.staticRender,i=r.afterRenderCallBack,o=r.reportPart,s=r.getStickyValue,u=r.isHeaderOnly,d=t.headers,c=t.rowSpan,p=o.reportPartContent.gridStyle,f=o.getReportPartProperties(),m=(0,v.default)("report-part-grid-preview",{hide:(0,R.isNil)(d)},{"vertical-grid":p===T.GRID_STYLES.VERTICAL.value},{"horizontal-grid":p===T.GRID_STYLES.HORIZONTAL.value});c&&(c.cell=(0,R.get)("title"),c.fnGetCellStyle=r.getColumnGroupCellStyle(c.data.length),c.fnGetCellContentStyle=r.getColumnGroupCellContentStyle);var g=f.headers.disableRepeatHeaders&&o.reportPartContent.useSeparator&&T.SEPARATOR_STYLE.LOGICAL.value!==(0,R.getOr)(null,"reportPartContent.separatorStyle.value",o)&&!u,y=p===T.GRID_STYLES.VERTICAL.value&&(f.headers.removeHeaderForViewer||g),_=p===T.GRID_STYLES.HORIZONTAL.value&&f.headers.removeHeaderForViewer,S=p===T.GRID_STYLES.VERTICAL.value&&u&&f.headers.disableRepeatHeaders,C=(0,v.default)("custom-table",{"headless-table":y,"bodyless-table":S}),b=r.store&&r.store.exploreStore&&r.store.exploreStore.isExploreView,N=r.store&&r.store.exploreStore;return h.default.createElement("section",{key:a,className:m},a>0&&h.default.createElement("div",{className:"u_alwaysBreakAfter"}),h.default.createElement(E.Table,(0,l.default)({showScroll:!1,dataSource:u?[]:t.records,className:C,autoResize:!1,afterRenderCallBack:i,rowSpan:_?null:c,staticRender:n,onResizeStopCallback:e.onResizeStopCallback,onSetFunctionCallback:e.onSetFunctionCallback,onSetFormatterCallback:e.onSetFormatterCallback,stickVertical:s(f.isHeaderStickVertical),stickHorizontal:s(f.isHeaderStickHorizontal),removeHeaderForViewer:y,removeBodyForViewer:u,sourceForm:"report-part-grid",isExploreView:b||!1,exploreStore:N,reportDesignerFieldStore:r.store,isGridPreviewModal:r.isGridPreviewModal||!1},e.props),e.renderColumns(t.headers,a,t.records.length)))},this.onResizeStopCallback=function(t){var a=t.index,r=t.columnWidth,n=(0,R.get)("reportPart.reportPartContent.columns.elements",e.props);if(!(0,R.isEmpty)(n)){var i=(0,R.find)({position:a+1},n);i&&i.updateColumnWidth(r)}},this.onSetFormatterCallback=function(t){var a=e.props,r=a.reportPart,n=a.needUpdatePreview,i=a.reportBody,o=a.store.masterModel,l=t.index,s=t.formatData,u=e.props.store&&e.props.store.exploreStore&&e.props.store.exploreStore.isExploreView,d=(0,R.get)("reportPart.reportPartContent.columns.elements",e.props);u&&e.props.store.setNeedToExploreStoreReportInfoUpdate(!0);if(!(0,R.isEmpty)(d)){var c=(0,R.find)({position:l},d);c&&c.setFormat({formatData:s}),o.markDirty(),u?(r.id=r.id||null,i.setConfigReportPart(r),i.configReportPart&&i.configReportPart.setConfigField(c)):I.default.switchToEditor(null,{isRerenderOnActive:!0,itemData:c,beforeShowProps:function(){i.configReportPart&&i.configReportPart.setConfigField(c)}},[{name:"fieldProps",getDefinedSchema:D.default}]),r.shouldUpdatePreview&&n()}},this.onSetFunctionCallback=function(t){var a=e.props,r=a.reportPart,n=a.reportPart.reportPartContent,i=a.needUpdatePreview,o=a.reportBody,l=a.store.masterModel,s=e.props.store&&e.props.store.exploreStore&&e.props.store.exploreStore.isExploreView,u=t.index,d=t.functionData,c=(0,R.get)("reportPart.reportPartContent.columns.elements",e.props);s&&e.props.store.setNeedToExploreStoreReportInfoUpdate(!0);var p=function(){r.shouldUpdatePreview&&i()};if(!(0,R.isEmpty)(c)){var f=(0,R.find)({position:u},c);if(l.markDirty(),f&&f.setFunction({functionData:d}),d.name===_.FUNCTION.GROUP.NAME){f&&f.setFormat({formatData:{id:null,format:null,groupBy:null}});var h=r.getContainerDetails(f);(0,O.setDefaultFunctionElement)(n,h,f).then(function(){p()})}else(0,O.setFunctionElement)(n,f,d,!0).then(function(){p()});if(s)r.id=r.id||null,o.setConfigReportPart(r),o.configReportPart&&o.configReportPart.setConfigField(f);else{var m=[{name:"fieldProps",getDefinedSchema:D.default}];I.default.switchToEditor(e,{isRerenderOnActive:!0,itemData:f,fieldContainerDetails:r.reportPartContent.columns,beforeShowProps:function(){o.configReportPart&&o.configReportPart.setConfigField(f)}},m)}}},this.renderColumnContent=function(t,a,r,n,i,o,l,s,u){var d=e.props,c=d.printingMode,p=d.reportPart,f=d.isHeaderOnly,m=d.isJsFormatEnabled;if(f)return null;var g=p.getReportPartProperties(),E=d.records.slice(),v=g.generalInfo.gridStyle===T.GRID_STYLES.HORIZONTAL.value?1:0;if(v&&!n[s])return null;var b=g.view.pivotColumnsPerExportedPage||0,O=v?n:t,I=(0,R.get)("element",O),D=void 0,P=void 0,M=v?"sub-total"===n[s].className:(0,R.get)("isSubTotal",n),F=(0,R.isNil)(t.columnKey)?null:_.CUSTOM_FORMAT_PREFIX+t.columnKey,k=(0,R.getOr)(!1,"properties.dataFormattings.format.jsFormatString",I),x=m&&!!k;M?D=v?n[s]:n[I.fieldNameAlias]:(D=(0,R.isNil)(n[t.columnKey])?n[s]:n[t.columnKey],P=(0,R.isNil)(F)?n[s]:n[F]);var w=v||(0,R.isObject)(D)?D&&D.data:D,B=v||(0,R.isObject)(P)?P&&P.originalData:P,U=A.default.advancedSettings.other.convertNullToEmptyStringValue,z=String.commonStringValue(w,U),V=(0,R.get)("properties",I),G=M?(0,R.get)("subTotalFormat.format",D):(0,R.get)("dataFormattings.format.format",V),H=(0,R.get)("subTotalDataType",D),Y=(0,R.get)("subTotalFont",D),j=(0,R.getOr)(z,"title",D);if(!v||s>0){var K=function(e,t,a){if(e&&e.length){if(!e[0].data)return e[t];for(var r=0,n=0;nt)return}}}(E,v?a*b+s-1:o,r),W=v?n.columnName:t.columnKey,q=(0,R.getOr)([],"conditionalFormatting",K),Q=y.default.getCellConditionalFormattingValue(W,q),X=(0,R.getOr)("","altText.value",Q);z=y.default.getDataFormat({originalValue:B,value:z},{alternativeText:(0,R.get)("dataFormattings.alternativeText",V),conditionalFormattingAlternativeText:X,fieldFormatData:G,fieldDataType:M?H:(0,R.get)("previewDataType",I)},{element:y.default.buildDataSourceElement(p,I),record:K},!0,x);var J=(0,R.get)("numberOfPointActions",I);if(K&&J>0){var Z=[a,s,o].join(".");return C.default.pushRenderListener(e.renderListeners,Z),A.default.isRenderHtmlInReportViewer()&&(z=h.default.createElement("span",{dangerouslySetInnerHTML:{__html:z}}),j=y.default.getTextContentFromHtmlString(j)),h.default.createElement(S.default,{reportPart:p,fieldElement:I,afterRenderCallBack:u,printingMode:c,finishedRender:C.default.getFinishedRenderPromiseById(e.renderListeners,Z),getFilterInfoForSubReport:d.getFilterInfoForSubReport,rawRecord:[K],ignoreCache:d.ignoreCache,linkTitleText:j},z)}}if(v&&0===s)return d.renderHeader(p.reportPartContent.rows,I,z,u);if(N.default.isImage(O.element.field.dataFieldType)&&(!v||v&&s>0)&&!(0,R.any)(function(e){return z===e},L)||e.isDataContainImage(z))return h.default.createElement("img",{src:z});A.default.isRenderHtmlInReportViewer()&&(z=h.default.createElement("span",{dangerouslySetInnerHTML:{__html:z}}),j=y.default.getTextContentFromHtmlString(j));var $=d.getContentCellStyle(M,Y);return h.default.createElement("span",{style:$,key:j,title:j,className:D&&D.className||n.className},z)},this.renderColumn=function(t,a,r,n,i,o){var s=e.props,u=s.isHeaderOnly,d=s.reportPart.getReportPartProperties(),c=d.isHeaderStickHorizontal,p=d.generalInfo.gridStyle===T.GRID_STYLES.HORIZONTAL.value,f=s.getStickyValue(0===i&&p&&c),m=d.headers.removeHeaderForViewer&&p&&0===i,g=u?function(){return{display:"none"}}:s.fnGetCellContentStyle(n);return h.default.createElement(E.Column,(0,l.default)({className:f?"u-stickLeft":"",key:n.columnKey},n,{isHide:m,cell:e.renderColumnContent.bind(e,n,r,o),fnGetCellContentStyle:g,fnGetHeaderCellStyle:s.getCellStyle(n,a,t),fnGetHeaderCellContentStyle:s.getHeaderCellStyle(n),fnGetCellStyle:s.getCellStyle(n,a,t)}))},this.renderColumns=function(t,a,r){var n=e.props,i=(0,R.reduce)(function(e,t){return t.isColumnGroup?e+t.child.length:e+1},0,t),o=(0,R.some)(function(e){return(0,R.getOr)(!1,"element.hasSubTotal",e)},t);return t.map(function(l,s){return l.isColumnGroup?h.default.createElement(E.ColumnGroup,{key:s,title:l.title,fnGetCellStyle:n.getColumnGroupCellStyle(t.length,l,s),fnGetCellContentStyle:n.getColumnGroupCellContentStyle(l)},(0,R.map)(function(t){return e.renderColumn(i,r,a,t,s,o)},l.child)):e.renderColumn(i,r,a,l,s,o)})}},r=i))||r;t.default=M,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=a(2),i=(r=n)&&r.__esModule?r:{default:r};t.default=function e(t,a){var r=t.name,n=t.colors,o=t.isDefaultTheme;(0,i.default)(this,e),this.name=null,this.colors=null,this.displayName=null,this.isDefaultTheme=!1,this.name=r,this.colors=n,this.isDefaultTheme=o,this.displayName=r||a},e.exports=t.default},function(e,t,a){"use strict";e.exports={getBorderStyle:function(e,t,a){var r={};return r["border"+e+"Style"]=t.dashStyle,r["border"+e+"Width"]=t.thinkness,r["border"+e+"Color"]=a||t.color,r}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u=L(a(71)),d=L(a(90)),c=L(a(6)),p=L(a(2)),f=L(a(3)),h=L(a(7)),m=L(a(8)),g=L(a(14)),E=a(0),y=L(E),v=a(9),T=a(1),_=L(a(240)),S=L(a(241)),C=L(a(177)),b=a(99),N=L(b),A=L(a(693)),R=L(a(505)),O=L(a(33)),I=L(a(94)),D=L(a(61)),P=L(a(41));function L(e){return e&&e.__esModule?e:{default:e}}var M=D.default.REPORT_PART_MODE,F=N.default.COLLAPSE_STATUS,k=(0,v.observer)(function(e){var t=e.separatorContent,a=e.separatorStyle,r=e.reportPart,n=e.staticRender,i=e.getFilterInfoForSubReport,o=e.renderListeners,l=e.isLogicalSeparator,s=e.isHeaderOnly;return l?y.default.createElement(w,(0,g.default)({},e,{staticRender:n})):y.default.createElement("div",null,!s&&y.default.createElement(U,{separatorStyle:a,keyCollection:t.key,separatorContent:t,reportPart:r,getFilterInfoForSubReport:i,renderListeners:o}),y.default.createElement(w,(0,g.default)({},e,{staticRender:n})))}),x=(0,v.observer)(function(e){return y.default.createElement("section",null,y.default.createElement("i",{className:"icon-toggle-triangle collapse-icon",onClick:e.toggleCollapse}),y.default.createElement(U,{separatorStyle:e.separatorStyle,keyCollection:e.keyCollection,separatorContent:e.separatorContent,toggleCollapse:e.toggleCollapse,getFilterInfoForSubReport:e.getFilterInfoForSubReport,reportPart:e.reportPart}))}),w=(0,v.observer)(r=function(e){function t(){var e,a,r,n;(0,p.default)(this,t);for(var i=arguments.length,o=Array(i),l=0;l0?y.default.createElement(A.default,{reportPart:r,fieldElement:s,rawRecord:n,afterRenderCallBack:e.afterRenderCallBack,printingMode:e.printingMode,containerWidth:(0,T.get)("properties.dataFormattings.width.value",s),getFilterInfoForSubReport:e.getFilterInfoForSubReport,finishedRender:e.finishedRender,ignoreCache:e.ignoreCache,linkTitleText:c},y.default.createElement("span",{key:p,style:l},d)):y.default.createElement("span",{key:p,style:l,onClick:e.toggleCollapse},d)}}]),t}(E.Component))||n,U=(0,v.observer)(i=function(e){function t(){return(0,p.default)(this,t),(0,h.default)(this,(t.__proto__||(0,c.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,f.default)(t,[{key:"componentWillMount",value:function(){this.renderListeners=[]}},{key:"componentDidMount",value:function(){var e=this.props;e.printingMode&&I.default.publishFinishedRender(this.renderListeners,function(){e.finishedRender&&e.finishedRender()})}},{key:"render",value:function(){var e=this.props,t=this.renderListeners,a=e.separatorStyle,r=e.keyCollection,n=e.separatorContent,i=e.reportPart,o=void 0;return a.multiLine?y.default.createElement("div",{className:"header-group separator-title u_fullWidth"},(0,T.map)(function(r){var o="SeparatorHeader."+(0,d.default)(r);return I.default.pushRenderListener(t,o),y.default.createElement("div",null,y.default.createElement(B,{item:r,separatorStyle:a,separatorContent:n,reportPart:i,toggleCollapse:e.toggleCollapse,afterRenderCallBack:e.printingMode&&e.afterRenderCallBack,printingMode:e.printingMode,getFilterInfoForSubReport:e.getFilterInfoForSubReport,finishedRender:I.default.getFinishedRenderPromiseById(t,o)}))},r)):y.default.createElement("div",{className:"inline-block header-group separator-title u_fullWidth"},r.map(function(r,l){var s="SeparatorHeader."+(0,d.default)(r);return I.default.pushRenderListener(t,s),y.default.createElement("span",{key:l},function(e,t){var a=o&&o.element.properties.fieldItemVisible;return o=t,a?", ":""}(0,r),y.default.createElement(B,{item:r,separatorStyle:a,separatorContent:n,reportPart:i,toggleCollapse:e.toggleCollapse,afterRenderCallBack:e.printingMode&&e.afterRenderCallBack,printingMode:e.printingMode,getFilterInfoForSubReport:e.getFilterInfoForSubReport,finishedRender:I.default.getFinishedRenderPromiseById(t,s)}))}))}}]),t}(E.Component))||i,z=(0,v.observer)((s=l=function(e){function t(e){(0,p.default)(this,t);var a=(0,h.default)(this,(t.__proto__||(0,c.default)(t)).call(this,e)),r=a.props.reportPart;return a.state=t.createSeparatorList(r),a}return(0,m.default)(t,e),(0,f.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.props.records!==e.records&&this.setState(t.createSeparatorList(e.reportPart))}},{key:"componentWillMount",value:function(){this.renderListeners=[]}},{key:"componentDidMount",value:function(){var e=this.props;e.printingMode&&I.default.publishFinishedRender(this.renderListeners,function(){e.finishedRender&&e.finishedRender()})}},{key:"componentDidUpdate",value:function(){this.props.reportPart.reportPartContent.setCollapseStatus(F.DEFAULT)}},{key:"render",value:function(){var e=this.props,t=e.records,a=e.reportPart.reportPartContent.separatorStyle,r=(0,T.sortBy)("element.position",this.state.separatorList),n=a.value===N.default.SEPARATOR_STYLE.LOGICAL.value,i=C.default.splitDataForSeparator(t,r,a.multiLevel);return e.isPreview&&(i=(0,T.take)(N.default.NUMBER_OF_PREVIEW_SEPARATOR,i)),n?e.printingMode?this.renderLogicalPrintingMode(i,a):this.renderLogicalNormalMode(i,a):e.printingMode?this.renderPrintingMode(i,a):this.renderNormalMode(i,a)}},{key:"expandAll",value:function(){var e=this.props,t=e.reportPart.reportPartContent;e.reportPart.isExpandCollapseAllClick=!0,t.setCollapseStatus(F.EXPAND),this.updateDrillDownRecords(t.getDrilldownInfo(!0))}},{key:"collapseAll",value:function(){var e=this.props,t=e.reportPart.reportPartContent;e.reportPart.isExpandCollapseAllClick=!0,t.setCollapseStatus(F.COLLAPSE),this.updateDrillDownRecords(t.getDrilldownInfo(!1,F.DEFAULT))}},{key:"updateDrillDownRecords",value:function(e){var t=this.props,a=t.reportPart,r=t.loader;r.startLoading(),this.props.getDrillDownRecords(a,e,a.previewData.paging.pageIndex).then(function(e){return a.setQueryData(e)}).finally(r.endLoading.bind(r))}},{key:"buildSeparatorData",value:function(e,t,a){var r=this;e.subGroup?(t.push(e.key),(0,T.forEach)(function(e){var n=[].concat((0,u.default)(t));r.buildSeparatorData(e,n,a)},e.subGroup)):(t.push(e.key),a.push(t))}},{key:"buildReportInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.map(function(e,n){var i=e.key.map(function(e){return e.value});return{separatorInfo:{isExpand:!t||(0,T.getOr)(!0,"separatorInfo.isExpand",a[n]),isLogicalSeparator:r,keys:e.key,subKey:e.subGroup,values:i},records:[]}})}},{key:"normalizeMultiLevelData",value:function(e){var t=this;return(0,T.flattenDeep)((0,T.map)(function(e){var a=[];return t.buildSeparatorData(e,[],a),a.map(function(t){return{data:e.data,key:(0,T.flattenDeep)(t)}})},e))}},{key:"renderLogicalNormalMode",value:function(e,t){var a=this.props,r=a.reportPart,n=(0,T.getOr)([],"reportPart.reportInfo",a),i=this.normalizeMultiLevelData(e);return r.reportInfo=this.buildReportInfo(i,r.isExpandCollapseAllClick,n,!0),y.default.createElement(w,(0,g.default)({},a,{separatorContent:e,separatorStyle:t,isLogicalSeparator:!0}))}},{key:"renderNormalMode",value:function(e,t){var a=this.props,r=a.reportPart,n=a.localization,i=a.afterToggleCallback,o=(0,T.getOr)([],"reportPart.reportInfo",a),l=this.normalizeMultiLevelData(e);r.reportInfo=this.buildReportInfo(l,r.isExpandCollapseAllClick,o),this.props.reportPart.isExpandCollapseAllClick=!1;var s=r.reportPartContent.gridStyle===N.default.GRID_STYLES.DRILL_DOWN.value,u=r.getReportPartProperties(),d=r.reportPartContent.gridStyle===b.GRID_STYLES.VERTICAL.value&&!u.headers.removeHeaderForViewer&&u.headers.disableRepeatHeaders;return y.default.createElement("div",null,s&&y.default.createElement("div",null,y.default.createElement("span",{className:"icon-plus-circled",title:n.getText("REPORT_PART_GRID_CONSTANTS_LABEL_EXPAND_ALL_TOOLTIP"),onClick:this.expandAll}),y.default.createElement("span",{className:"icon-minus-circled",title:n.getText("REPORT_PART_GRID_CONSTANTS_LABEL_COLLAPSE_ALL_TOOLTIP"),onClick:this.collapseAll})),d&&e&&e.length&&y.default.createElement("div",{className:"separator-body-standalone"},y.default.createElement(w,(0,g.default)({},a,{separatorContent:e[0],separatorStyle:t,isLogicalSeparator:!1,isHeaderOnly:!0}))),y.default.createElement(_.default,{defaultExpand:!0,className:"panel separator-grid",autoCollapse:!1,afterToggleCallback:i},(0,T.map)(function(e){var n=(0,T.map)("value",e.key).join("_");return y.default.createElement(_.default.Item,{key:n},y.default.createElement(_.default.ItemHeader,{className:"row panel-heading separator-header"},y.default.createElement(x,{key:n,separatorStyle:t,keyCollection:e.key,separatorContent:e,getFilterInfoForSubReport:a.getFilterInfoForSubReport,reportPart:r})),y.default.createElement(_.default.ItemBody,{className:"separator-body",data:e.data},y.default.createElement(w,(0,g.default)({},a,{separatorContent:e,separatorStyle:t,isLogicalSeparator:!1}))))},e)))}},{key:"renderLogicalPrintingMode",value:function(e,t){var a=this.props,r=this.renderListeners,n=(0,T.omit)(["finishedRender"],a),i="SeparatorBody."+(0,d.default)(e.length?e[0].key:"");return I.default.pushRenderListener(r,i),y.default.createElement(w,(0,g.default)({},n,{separatorContent:e,separatorStyle:t,staticRender:!0,finishedRender:I.default.getFinishedRenderPromiseById(r,i),isLogicalSeparator:!0}))}},{key:"renderPrintingMode",value:function(e,t){var a=this.props,r=this.renderListeners,n=a.reportPart,i=n.reportPartContent.usePageBreakAfterSeparator,o=0,l=e&&e.length;return y.default.createElement("section",{className:"printMode u-bgWhite"},(0,T.map)(function(e){var s=[],u=(0,T.omit)(["finishedRender"],a),c=(0,d.default)(e.key),p="SeparatorHeader."+c,f="SeparatorBody."+c;return I.default.pushRenderListener(r,p),I.default.pushRenderListener(r,f),s.push(y.default.createElement("div",{style:I.default.getSeparatorContainerStyle(a)},y.default.createElement("div",{className:I.default.getSeparatorClassName(a)},i&&0===o&&y.default.createElement(S.default,{mode:M.PREVIEW,reportPart:n,className:"u_marginBottom izenda-reportPartGrid_titl"}),y.default.createElement(U,{separatorStyle:t,keyCollection:e.key,separatorContent:e,reportPart:n,printingMode:!0,afterRenderCallBack:a.afterRenderCallBack,getFilterInfoForSubReport:a.getFilterInfoForSubReport,finishedRender:I.default.getFinishedRenderPromiseById(r,p)}),y.default.createElement(w,(0,g.default)({},u,{separatorContent:e,separatorStyle:t,staticRender:!0,finishedRender:I.default.getFinishedRenderPromiseById(r,f),isLogicalSeparator:!1}))))),o=0?(0,h.take)(++e,n):i===t&&a?(0,h.filter)(function(e){return e===a},n):n}}},{key:"buildSeparators",value:function(e){return{elements:(0,h.map)(this.removeLinkedObject,(0,h.get)("separators.elements",e.reportPartContent))}}},{key:"removeLinkedObject",value:function(e){var t=(0,m.toJS)(e);if(e&&e.properties){var a=t.properties;a.drillDown.subReport.selectedReport=null,a.drillDown.subReport.reportPartUsed=null,a.dataFormattings.customURL.url="",a.dataFormattings.embeddedJavascript.script=""}return t}},{key:"buildVerticalGridDetail",value:function(e,t,a,r){var n=this.buildColumns(e),i=this.buildSeparators(e),o=(0,d.default)({},e.reportPartContent,{type:E.GRID_STYLES.VERTICAL.value,columns:n,separators:i});o.properties=new v.default,o.properties.grouping.useSeparator=!0,o.properties.view=e.reportPartContent.properties.view,o.properties.headers.freezeHeaders=E.FREEZE_HEADERS.VERTICALLY.value;var l=new y.default;return l.reportPartContent=new g.default(o),l.queryData=t,{partDefinition:l,metric:{label:(0,h.get)("name",r.elements[a]),value:a}}}},{key:"updateShowingPartIndex",value:function(e){this.showingPartIndex=e}},{key:"turnOffProcessingDataIndicator",value:function(){this.isProcessingData=!1}}]),e}(),n=b(r.prototype,"selectedMetricIndex",[m.observable],{enumerable:!0,initializer:function(){return-1}}),i=b(r.prototype,"showingPartIndex",[m.observable],{enumerable:!0,initializer:function(){return 0}}),o=b(r.prototype,"isProcessingData",[m.observable],{enumerable:!0,initializer:function(){return!0}}),l=b(r.prototype,"buildGridReportParts",[m.action],{enumerable:!0,initializer:function(){var e=this;return function(t){e.isProcessingData=!0;var a=t.queryData,r=t.reportPartContent.getMetricContainer(),n=(0,h.find)(function(e){return e.name===r},t.containerCollection);e.gridReportParts=a.map(function(a,r){return e.buildVerticalGridDetail(t,a,r,n)});if(e.gridReportParts.length>1){var i=t.reportPartContent.activeSerie,o=(0,h.findIndex)(function(e){return e===i},n.elements);e.selectedMetricIndex=o>=0?o:-1}return(0,u.resolve)(!0)}}}),r);t.default=N,e.exports=t.default},function(e,t,a){"use strict";var r,n=a(71),i=(r=n)&&r.__esModule?r:{default:r},o=a(20);var l=a(5),s=a(332),u=a(1177),d=a(99),c=a(1178),p=a(63),f=a(185),h=a(18),m=a(48),g=a(2114),E=a(33),y=a(61),v=a(390),T=m.SORT_ORDERS,_=(a(48).FUNCTION,a(166)),S=a(1),C=S.filter,b=S.isEmpty,N=S.some,A=S.forEach,R=S.map,O=S.isNil,I=S.flow,D=S.getOr,P=S.omit,L=S.get,M=S.assign,F=S.compact,k=S.flatMap,x=S.defaults,w=S.includes,B=S.invoke,U=S.each,z=S.clone,V=S.max,G=S.find,H=S.isString;function Y(e,t){if(!t)return{elements:[],name:e,visibleElement:f.getVisibleField};var a=P("elements",t),r=t.elements,n=R(function(e){return(new s).readData(e)},r);return l.observable(M(a,{elements:n||[],name:e,visibleElement:f.getVisibleField}))}function j(e){this.subReportDefinitionCollection=[],this.collapseStatus=0,this.autoSize=!0;var t={isCrossFiltering:!1,type:h.REPORT_PART_TYPE.Grid,columns:Y("columns"),rows:Y("rows"),values:Y("values"),separators:Y("separators"),properties:new u,settings:{},changeGridStyleStatus:!0,containerCollection:function(){return F([this.columns,this.rows,this.values,this.separators])},gridStyle:function(){return this.properties.generalInfo.gridStyle},optionalParams:function(){var e=R(function(e){var t=L("properties.dataFormattings.sort",e);return{key:e.field.fieldNameAlias,sortingType:t||T.Unsorted.value}},this.fieldCollection),t={expandedLevel:h.EXPANDED_LEVEL.ALL,sortOrders:e};return this.properties.view.usePagination&&(t=x(t,{paging:{pageIndex:h.DEFAULT_PAGE_INDEX,pageSize:this.properties.view.pageSize||h.DEFAULT_PAGE_SIZE}})),t},isBeingBuild:function(){if(this.inconsitentFunction)return!1;switch(this.gridStyle){case d.GRID_STYLES.VERTICAL.value:return!b(this.columns.visibleElement);case d.GRID_STYLES.HORIZONTAL.value:return!b(this.rows.visibleElement);case d.GRID_STYLES.DRILL_DOWN.value:return!b(this.rows.visibleElement)&&!b(this.values.visibleElement);default:return!b(this.columns.visibleElement)&&!b(this.rows.visibleElement)&&!b(this.values.visibleElement)}},haveRowExpander:function(){switch(this.gridStyle){case d.GRID_STYLES.DRILL_DOWN.value:return!0;case d.GRID_STYLES.PIVOT.value:return L("properties.useExpanders",this.rows);default:return!1}},useSeparator:function(){return this.properties.grouping.useSeparator&&!b(this.separators.elements)},containersNeedDefaultFunction:function(){switch(this.gridStyle){case d.GRID_STYLES.PIVOT.value:return[this.columns,this.values,this.rows,this.separators];case d.GRID_STYLES.DRILL_DOWN.value:return[this.values,this.rows,this.separators];default:return[]}},fieldCollection:function(){return k(function(e){return e.elements?e.elements.slice():[]},this.containerCollection)},haveFunction:function(){return N("haveFunction",this.fieldCollection)},separatorStyle:function(){return G({value:this.properties.generalInfo.separatorStyle},d.SEPARATOR_STYLE)},inconsitentFunction:!1,usePageBreakAfterSeparator:function(){return this.properties.printing.usePageBreakAfterSeparator},dataRefreshInterval:function(){return L("view.dataRefreshInterval",this.properties)},reportPartStyle:function(){return this.properties.generalInfo.gridStyle}};l.extendObservable(p(this),t),e&&this.readData(e),this.cleanDirty()}j.prototype.checkHiddenSortField=function(e,t){return w(this.gridStyle,[d.GRID_STYLES.PIVOT.value,d.GRID_STYLES.DRILL_DOWN.value])&&t.name===d.CONTAINER_NAME.VALUES},j.prototype.validateCanAddField=function(e,t,a){var r=L("dataSource.distinct",e),n=this.properties.generalInfo.gridStyle,i=t.name,o=null,l=!0;if(r)o=y.MESSAGES.M05_1;else switch(n){case d.GRID_STYLES.VERTICAL.value:case d.GRID_STYLES.HORIZONTAL.value:i===d.CONTAINER_NAME.SEPARATORS?(l=!1,o=y.MESSAGES.M08):this.haveFunction&&(o=y.MESSAGES.M08);break;case d.GRID_STYLES.DRILL_DOWN.value:case d.GRID_STYLES.PIVOT.value:l=!1,o=i===d.CONTAINER_NAME.VALUES?y.MESSAGES.M09:y.MESSAGES.M08}var s=C(function(e){return v.isBinary(e.izendaDataType||e.fieldDataType)},a);return o&&!b(s)?{message:String.format(o,R("name",s).join(", ")),errorField:l?[]:s}:{message:null,errorField:[]}},j.prototype.checkedCompatibleFunction=function(e,t,a){var r=!0;t.field.hasAggregatedFunction&&(r=E.checkedCompatibleFunctionHasAggregatedFunction(a));var n=g.AVAILABLE_FUNCTION_CONFIG[this.gridStyle];return(n=n&&e&&n[e.name])&&r?E.checkCompatibleFunctionCommon(a,t,n):r},j.prototype.readData=l.action(function(e){e=e||{},this.type=e.type,this.isCrossFiltering=e.isCrossFiltering,this.columns=Y("columns",e.columns),this.rows=Y("rows",e.rows),this.values=Y("values",e.values),this.separators=Y("separators",e.separators),e.properties&&this.properties.setReportPartProperties(e.properties),this.settings=e.settings,this.dataSource=e.dataSource||{},this.markDirty()}),j.prototype.validateFunction=function(e,t){return!t&&w(e,this.containersNeedDefaultFunction)?{status:!1,useDefaultFunction:!0}:{status:!0}},j.prototype.getDefaultFunctionFormat=function(e,t){var a=e.name,r=c.DefaultConfig[this.gridStyle];return((this.haveFunction?r.DEFAULT_FUNCTION_WITH_AREGATED_FUNCTION:r.DEFAULT_FUNCTION)[a]||{})[t]},j.prototype.afterInsertFieldToContainer=function(e,t){return t.haveFunction?E.convertNonFunctionElementsToFunction(this,m.FUNCTION.GROUP.NAME):(0,o.resolve)()},j.prototype.afterRemoveField=function(e,t){var a=D("","field.fieldNameAlias",t),r=function(e){return D("","conditionField.name",e)===a},n=[];D([],"properties.view.conditionalFormatting.rules",this).forEach(function(e){var t=e.condition;if(!r(t)){var i=D([],"additionalConditions",t);t.additionalConditions=i.filter(function(e){return!r(e)}),e.fields=e.fields.filter(function(e){if(H(e))return e!==a;if(e.name===a)return!1;var t=D([],"additionalConditions",e);return e.additionalConditions=t.filter(function(e){return!r(e)}),!0}),n.push(e)}}),this.properties.view.conditionalFormatting.rules=n,this.properties.markDirty()},j.prototype.afterChangeFieldNameAlias=function(e,t){var a=function(a){D("","conditionField.name",a)===e&&(a.conditionField.name=t)};D([],"properties.view.conditionalFormatting.rules",this).map(function(r){var n=r.condition;a(n),D([],"additionalConditions",n).forEach(function(e){return a(e)}),r.fields=r.fields.map(function(r){return H(r)?r===e?t:r:(r.name=r.name===e?t:r.name,D([],"additionalConditions",r).forEach(function(e){return a(e)}),r)})}),this.properties.markDirty()},j.prototype.afterUpdateFunction=l.action(function(e){var t=function(){this.inconsitentFunction=N({haveFunction:!0},this.fieldCollection)&&N({haveFunction:!1},this.fieldCollection)}.bind(this);if(e.haveFunction){L("functionInfo.name",e);return E.convertNonFunctionElementsToFunction(this,m.FUNCTION.GROUP.NAME).then(t)}return(0,o.resolve)().then(t)}),j.prototype.getData=function(){return P("dataSource",l.toJS(this))},j.prototype.checkDirty=function(){var e=f.dirtyReportPartElementField(this.containerCollection),t=this.properties;return this.isDirty||!b(e)||t&&t.checkDirty&&t.checkDirty()},j.prototype.cleanDirty=function(){var e=f.dirtyReportPartElementField(this.containerCollection);U(function(e){e.resetDirty&&e.resetDirty()},e);var t=this.properties;B("resetDirty",t),this.resetDirty()},j.prototype.resetPropertiesAfterChangeGridStyle=function(){var e=D([],"columns.elements",this);A(function(e){var t=e.properties.headerFormating;t.verticalHeader=!1,t.verticalHeaderHeight.value=null},e)},j.prototype.changeGridStyle=l.action(function(e,t,a){A(function(e){e.properties=null},this.containerCollection),A(function(e){this[e.key].properties=l.observable(z(e.properties))}.bind(this),d.GRID_STYLES_CONSTANT_PROPERTIES[t]),this.resetPropertiesAfterChangeGridStyle(),this.properties.generalInfo.gridStyle=t;var r=G({fromStyle:e,toStyle:t},d.MAPPING_GRID_STYLE);if(!r)return(0,o.resolve)();A(function(e){var t=L(e.toContainer,this),a=[],r=function(e){e.position=(I(R("position"),V)(a)||0)+1,a.push(e)};A(function(e){var t=L(e,this),a=t.elements;A(r,a),t.elements=[]}.bind(this),e.fromContainer),t.elements=a}.bind(this),r.mappings);var n=I(k(function(e){return R(function(t){return!this.checkedCompatibleFunction(e,t,D({},"properties.dataFormattings.functionInfo",t))?E.setDefaultFunctionElement(this,e,t):null}.bind(this),e.elements)}.bind(this)),F)(this.containerCollection);return this.changeGridStyleStatus=b(n),(0,o.all)(n)}),j.prototype.updateColumnsUseExpanders=l.action(function(e){L("columns.properties",this).useExpanders=e,this.markDirty()}),j.prototype.changePageSize=l.action(function(e){this.properties.changePageSize(e),this.markDirty()}),j.prototype.updateColumnsAddSideTotal=l.action(function(e){var t=L("columns.properties",this);t.addSideTotal=e,t.removeExtraSideTotalColumns=e?t.removeExtraSideTotalColumns:e,this.markDirty()}),j.prototype.updateColumnsRemoveExtraSideTotalColumns=l.action(function(e){L("columns.properties",this).removeExtraSideTotalColumns=e,this.markDirty()}),j.prototype.updateRowsUseExpanders=l.action(function(e){this.rows.properties.useExpanders=e,this.markDirty()}),j.prototype.checkBreakPage=function(){return this.useSeparator&&this.usePageBreakAfterSeparator},j.prototype.getNewSortValue=function(e,t,a){switch(t){case T.ASC.value:return T.DESC.value;case T.DESC.value:return this.checkCanUnsort(e,a)?"":T.ASC.value;default:return T.ASC.value}},j.prototype.resetSortValue=l.action(function(e){A(function(e){return e.properties.setSortValue(T.Unsorted.value)},e.elements)}),j.prototype.checkCanUnsort=function(e,t){return E.checkCanUnsort(this.gridStyle,e,t,this.containerCollection)},j.prototype.getDrilldownInfo=function(e,t){var a=D(!1,"properties.view.collapseDrilldownByDefault",this),r=D(!1,"rows.properties.useExpanders",this),n=D(null,"properties.generalInfo.gridStyle",this),o=d.GRID_STYLES.PIVOT.value===n,l=N("hasSubTotal",this.values.visibleElement),s=void 0;if((s=e||l?-1:O(t)?a&&(!o||o&&r)?0:-1:t)>=0){var u=Math.min.apply(Math,(0,i.default)(this.rows.visibleElement.map(function(e){return e.position})))-1;s=Math.max(s,u)}return{expandedLevel:s,filters:[]}},j.prototype.setCollapseStatus=function(e){this.collapseStatus=e},j.prototype.checkIfPercentOfGroupRequiredForConditionalFormatting=function(e){var t=this;D([],"rules",e).forEach(function(e){var a=_.CONDITION_TYPE,r=D({},"condition",e),n=L("conditionField.name",r),i=L("type",r)===a.RANGE_PERCENT.value,o=G(function(e){return e.field.fieldNameAlias===n},t.fieldCollection);L("properties.setPercentOfGroupRequiredForConditionalFormatting",o)&&o.properties.setPercentOfGroupRequiredForConditionalFormatting(i)})},e.exports=j},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f=b(a(17)),h=b(a(23)),m=b(a(2)),g=b(a(3)),E=a(5),y=a(1),v=b(a(53)),T=b(a(268)),_=a(99),S=b(a(34)),C=a(18);function b(e){return e&&e.__esModule?e:{default:e}}function N(e,t,a,r){a&&(0,f.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function A(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var R=(0,v.default)((n=function(){function e(t){(0,m.default)(this,e),N(this,"generalInfo",i,this),N(this,"table",o,this),N(this,"columns",l,this),N(this,"rows",s,this),N(this,"headers",u,this),N(this,"grouping",d,this),N(this,"view",c,this),N(this,"printing",p,this),this.view.pivotColumnsPerExportedPage="",t&&this.setReportPartProperties(t),this.cleanDirty()}return(0,g.default)(e,[{key:"pageSize",get:function(){return this.view.pageSize}},{key:"isHeaderStickVertical",get:function(){return this.headers.freezeHeaders===_.FREEZE_HEADERS.VERTICALLY.value}},{key:"isHeaderStickHorizontal",get:function(){return this.headers.freezeHeaders===_.FREEZE_HEADERS.HORIZONTALLY.value}}]),(0,g.default)(e,[{key:"getTableByKey",value:function(e){return(0,y.get)(e,this.table)}},{key:"getHeadersByKey",value:function(e){return(0,y.get)(e,this.headers)}},{key:"getColumnsByKey",value:function(e){return(0,y.get)(e,this.columns)}},{key:"getColumnWidth",value:function(){return(0,y.get)("width.value",this.columns)}},{key:"getRowsByKey",value:function(e){return(0,y.get)(e,this.rows)}},{key:"getGeneralInfoByKey",value:function(e){return(0,y.get)(e,this.generalInfo)}},{key:"getGroupingByKey",value:function(e){return(0,y.get)(e,this.grouping)}},{key:"getViewByKey",value:function(e){return(0,y.get)(e,this.view)}},{key:"setReportPartProperties",value:function(e){(0,T.default)(this.generalInfo,"gridStyle",(0,y.get)("generalInfo.gridStyle",e)),(0,T.default)(this.generalInfo,"separatorStyle",(0,y.get)("generalInfo.separatorStyle",e)),this.setTable(e.table),(0,T.default)(this.rows,"alterBackgroundColor",(0,y.get)("rows.alterBackgroundColor",e)),(0,T.default)(this.grouping,"useSeparator",(0,y.get)("grouping.useSeparator",e)),(0,T.default)(this.printing,"usePageBreakAfterSeparator",(0,y.get)("printing.usePageBreakAfterSeparator",e)),this.setHeaders(e.headers),this.setView(e.view),this.setColumns(e.columns),this.markDirty()}},{key:"setTable",value:function(e){var t=(0,E.action)(function(e){var t=(0,y.get)(e,r);(0,T.default)(a.border[e],"color",(0,y.getOr)(null,"color",t)),(0,T.default)(a.border[e],"dashStyle",(0,y.getOr)(null,"dashStyle",t)),(0,T.default)(a.border[e],"thinkness",(0,y.getOr)(null,"thinkness",t))}),a=this.table,r=(0,y.get)("border",e);(0,T.default)(a,"backgroundColor",(0,y.get)("backgroundColor",e)),(0,T.default)(a,"alternativeBackgroundColor",(0,y.get)("alternativeBackgroundColor",e)),t("bottom"),t("left"),t("midHor"),t("midVer"),t("right"),t("top")}},{key:"setColumns",value:function(e){var t=this.columns;(0,T.default)(t.width,"value",(0,y.get)("width.value",e)),(0,T.default)(t,"alterBackgroundColor",(0,y.get)("alterBackgroundColor",e)),(0,T.default)(t,"wordWrap",(0,y.get)("wordWrap",e)),(0,T.default)(t,"alignment",(0,y.get)("alignment",e)),(0,T.default)(t,"verticalAlignment",(0,y.get)("verticalAlignment",e))}},{key:"setView",value:function(e){var t=this.view;(0,T.default)(t,"dataRefreshInterval",(0,y.get)("dataRefreshInterval",e)),(0,T.default)(t,"conditionalFormatting",(0,y.get)("conditionalFormatting",e)),(0,T.default)(t,"usePagination",(0,y.get)("usePagination",e)),(0,T.default)(t,"expanderRowsSpacing",(0,y.get)("expanderRowsSpacing",e)),(0,T.default)(t,"collapseDrilldownByDefault",(0,y.get)("collapseDrilldownByDefault",e)),(0,T.default)(t,"pivotColumnsPerExportedPage",(0,y.toNumber)((0,y.get)("pivotColumnsPerExportedPage",e))||""),(0,T.default)(t,"pageSize",(0,y.get)("pageSize",e))}},{key:"setHeaders",value:function(e){var t=this.headers;(0,T.default)(t.font,"family",(0,y.get)("font.family",e)),(0,T.default)(t.font,"size",(0,y.get)("font.size",e)),(0,T.default)(t.font,"bold",(0,y.get)("font.bold",e)),(0,T.default)(t.font,"italic",(0,y.get)("font.italic",e)),(0,T.default)(t.font,"underline",(0,y.get)("font.underline",e)),(0,T.default)(t.font,"color",(0,y.get)("font.color",e)),(0,T.default)(t.font,"backgroundColor",(0,y.get)("font.backgroundColor",e)),(0,T.default)(t,"alignment",(0,y.get)("alignment",e)),(0,T.default)(t,"verticalAlignment",(0,y.get)("verticalAlignment",e)),(0,T.default)(t,"wordWrap",(0,y.get)("wordWrap",e)),(0,T.default)(t,"removeHeaderForExport",(0,y.get)("removeHeaderForExport",e)),(0,T.default)(t,"disableRepeatHeaders",(0,y.get)("disableRepeatHeaders",e)),(0,T.default)(t,"removeHeaderForViewer",(0,y.get)("removeHeaderForViewer",e)),(0,T.default)(t,"freezeHeaders",(0,y.get)("freezeHeaders",e))}},{key:"getHeaderCellStyle",value:function(){var e=this.headers;return{fontFamily:(0,y.get)("font.family",e),fontSize:(0,y.get)("font.size",e),bold:(0,y.get)("font.bold",e),italic:(0,y.get)("font.italic",e),underline:(0,y.get)("font.underline",e),textColor:(0,y.get)("font.color",e),backgroundColor:(0,y.get)("font.backgroundColor",e),alignment:(0,y.get)("alignment",e),verticalAlignment:(0,y.get)("verticalAlignment",e),wordWrap:(0,y.get)("wordWrap",e)}}},{key:"checkDirty",value:function(){return this.isDirty}},{key:"changePageSize",value:function(e){this.view.pageSize=e,this.markDirty()}},{key:"cleanDirty",value:function(){this.resetDirty()}},{key:"getPageBreakAfterSeparator",value:function(e){return(0,y.get)(e,this.printing)}},{key:"resetBorderDefaultValue",value:function(){this.table.border=(0,y.cloneDeep)(_.DEFAULT_SETTING_VALUE.border),this.markDirty()}},{key:"resetRefreshInterval",value:function(){this.view.dataRefreshInterval=_.DEFAULT_SETTING_VALUE.refreshIntervalDefault,this.markDirty()}},{key:"resetConditionalFormatting",value:function(){this.view.conditionalFormatting=_.DEFAULT_SETTING_VALUE.conditionalFormattingDefault,this.markDirty()}}]),e}(),i=A(n.prototype,"generalInfo",[E.observable],{enumerable:!0,initializer:function(){return{gridStyle:_.GRID_STYLES.VERTICAL.value,separatorStyle:_.SEPARATOR_STYLE.COMMA.value}}}),o=A(n.prototype,"table",[E.observable],{enumerable:!0,initializer:function(){return{border:(0,y.cloneDeep)(_.DEFAULT_SETTING_VALUE.border),backgroundColor:S.default.reportPartGridDefault.backgroundColor,alternativeBackgroundColor:_.DEFAULT_VALUE_PROPERTIES.TABLE.ALTERNATIVE_BACKGROUND_COLOR}}}),l=A(n.prototype,"columns",[E.observable],{enumerable:!0,initializer:function(){return{width:{value:_.DEFAULT_VALUE_PROPERTIES.COLUMNS.WIDTH.VALUE},alterBackgroundColor:!1,wordWrap:_.DEFAULT_VALUE_PROPERTIES.COLUMNS.WORDWRAP,alignment:_.DEFAULT_VALUE_PROPERTIES.COLUMNS.ALIGNMENT,verticalAlignment:_.DEFAULT_VALUE_PROPERTIES.COLUMNS.VERTICAL_ALIGNMENT}}}),s=A(n.prototype,"rows",[E.observable],{enumerable:!0,initializer:function(){return{alterBackgroundColor:!1}}}),u=A(n.prototype,"headers",[E.observable],{enumerable:!0,initializer:function(){return{font:{family:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.FAMILY,size:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.SIZE,bold:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.BOLD,italic:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.ITALIC,underline:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.UNDERLINE,color:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.COLOR,backgroundColor:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.BACKGROUND_COLOR},alignment:_.DEFAULT_VALUE_PROPERTIES.HEADERS.ALIGNMENT,verticalAlignment:_.DEFAULT_VALUE_PROPERTIES.HEADERS.VERTICAL_ALIGNMENT,wordWrap:_.DEFAULT_VALUE_PROPERTIES.HEADERS.WORDWRAP,removeHeaderForExport:!1,disableRepeatHeaders:!1,removeHeaderForViewer:!1,freezeHeaders:null}}}),d=A(n.prototype,"grouping",[E.observable],{enumerable:!0,initializer:function(){return{useSeparator:!0}}}),c=A(n.prototype,"view",[E.observable],{enumerable:!0,initializer:function(){return{dataRefreshInterval:{enable:!1,updateInterval:0,isAll:!0,latestRecord:0},conditionalFormatting:{rules:[]},usePagination:!0,expanderRowsSpacing:!1,collapseDrilldownByDefault:!1,pageSize:C.DEFAULT_PAGE_SIZE}}}),p=A(n.prototype,"printing",[E.observable],{enumerable:!0,initializer:function(){return{usePageBreakAfterSeparator:!1}}}),A(n.prototype,"pageSize",[E.computed],(0,h.default)(n.prototype,"pageSize"),n.prototype),A(n.prototype,"isHeaderStickVertical",[E.computed],(0,h.default)(n.prototype,"isHeaderStickVertical"),n.prototype),A(n.prototype,"isHeaderStickHorizontal",[E.computed],(0,h.default)(n.prototype,"isHeaderStickHorizontal"),n.prototype),A(n.prototype,"setReportPartProperties",[E.action],(0,h.default)(n.prototype,"setReportPartProperties"),n.prototype),A(n.prototype,"setTable",[E.action],(0,h.default)(n.prototype,"setTable"),n.prototype),A(n.prototype,"setColumns",[E.action],(0,h.default)(n.prototype,"setColumns"),n.prototype),A(n.prototype,"setView",[E.action],(0,h.default)(n.prototype,"setView"),n.prototype),A(n.prototype,"setHeaders",[E.action],(0,h.default)(n.prototype,"setHeaders"),n.prototype),A(n.prototype,"changePageSize",[E.action],(0,h.default)(n.prototype,"changePageSize"),n.prototype),A(n.prototype,"resetBorderDefaultValue",[E.action],(0,h.default)(n.prototype,"resetBorderDefaultValue"),n.prototype),A(n.prototype,"resetRefreshInterval",[E.action],(0,h.default)(n.prototype,"resetRefreshInterval"),n.prototype),A(n.prototype,"resetConditionalFormatting",[E.action],(0,h.default)(n.prototype,"resetConditionalFormatting"),n.prototype),r=n))||r;t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(2113),i=(r=n)&&r.__esModule?r:{default:r};var o={columns:"Unsorted",separators:"ASC",rows:"Unsorted"},l={DEFAULT_FUNCTION:i.default.HORIZONTAL_DEFAULT_FUNCTION,DEFAULT_FUNCTION_WITH_SEPARATORS:i.default.HORIZONTAL_DEFAULT_FUNCTION_WITH_SEPARATORS,DEFAULT_FUNCTION_WITH_AREGATED_FUNCTION:i.default.HORIZONTAL_DEFAULT_FUNCTION_WITH_AREGATED_FUNCTION,DEFAULT_SORT:o},s={DEFAULT_FUNCTION:i.default.VERTICAL_DEFAULT_FUNCTION,DEFAULT_FUNCTION_WITH_SEPARATORS:i.default.VERTICAL_DEFAULT_FUNCTION_WITH_SEPARATORS,DEFAULT_FUNCTION_WITH_AREGATED_FUNCTION:i.default.VERTICAL_DEFAULT_FUNCTION_WITH_AREGATED_FUNCTION,DEFAULT_SORT:o},u={DEFAULT_FUNCTION:i.default.DRILL_DOWN_DEFAULT_FUNCTION,DEFAULT_FUNCTION_WITH_SEPARATORS:i.default.DRILL_DOWN_DEFAULT_FUNCTION,DEFAULT_FUNCTION_WITH_AREGATED_FUNCTION:i.default.DRILL_DOWN_DEFAULT_FUNCTION,DEFAULT_SORT:{rows:"ASC",separators:"ASC"}},d={DEFAULT_FUNCTION:i.default.PIVOT_DEFAULT_FUNCTION,DEFAULT_FUNCTION_WITH_SEPARATORS:i.default.PIVOT_DEFAULT_FUNCTION,DEFAULT_FUNCTION_WITH_AREGATED_FUNCTION:i.default.PIVOT_DEFAULT_FUNCTION,DEFAULT_SORT:{rows:"Unsorted",columns:"ASC",separators:"ASC"}};t.default={DefaultConfig:{Pivot:d,Horizontal:l,Vertical:s,Drilldown:u}},e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g;r=a(0),n=a(15),i=a(47),o=a(19),l=a(9).observer,s=a(696),u=a(12),d=a(496),c=a(236),p=a(277),f=a(1),h=f.isNil,m=f.map,g=r.createClass({displayName:"EmbedReport",componentWillMount:function(){this.store=this.props.store||new s},getValue:function(){return{selectedReport:this.store.model.selectedReport}},setSelectedReport:function(e){var t=e.report;this.store.model.setSelectedReport(t)},setSelectedReportPart:function(e){this.store.model.selectedReport.setSelectedReportPart(e)},getSelectedReportParts:function(){return m(function(e){return e.id},this.store.model.selectedReport.selectedReportParts)},openSearchReportPopup:function(){var e=this.props;e.openPopup(d,{onChange:this.setSelectedReport,type:c.TYPE.REPORT,excludeIds:h(e.reportId)?[]:[e.reportId]})},render:function(){var e=this.store.model.selectedReport;return r.createElement(n,null,r.createElement(n.Row,null,r.createElement(n.Col,{cols:"3"},u.getText("COMMON_LABEL_REPORTS")),r.createElement(n.Col,{cols:"8"},r.createElement(o,{value:e.name,className:"form-control",disabled:!0})),r.createElement(n.Col,{cols:"1"},r.createElement(p,{className:"icon-search",onClick:this.openSearchReportPopup}))),r.createElement(n.Row,null,r.createElement(n.Col,{cols:"3"},u.getText("REPORTDESIGNER_LABEL_REPORT_PART_USED")),r.createElement(n.Col,{cols:"8"},r.createElement(i,{simpleValue:!0,multi:!0,options:e.reportParts,labelKey:"title",valueKey:"id",onChange:this.setSelectedReportPart,value:this.getSelectedReportParts(),scalable:!1}))))}}),e.exports=l(g)},function(e,t,a){"use strict";var r,n,i,o;r=a(41),n=a(269),i=a(18),o=a(1).constant,e.exports=function(e){var t={drop:function(e,t,a){if(!t.didDrop()){var n=e.reportPart.reportPartContent,o=t.getItem()||{},l=r.advancedSettings.performance.fieldLimitValue;e.reportPart.fieldCollection.length>=l?e.confirmFn("Information",{description:i.BUNDLE.MESSAGE.FIELDS_EXCEEDED_LIMITATION,type:"error",showCloseIndicator:!0}):o.querySourceField.isPredicated?e.confirmFn("Information",{description:e.localization.getText("REPORTDESIGNER_FEATURE_NOT_AVAILABLE"),type:"error",showCloseIndicator:!0}):(n.updateContainerField(),e.reportPart.insertFieldToContainer(n.columns,o.querySourceField,o.dataObject).then(function(e){var t=n.getHTMLCodeField(e,o.dataObject);n.getEditorControl().insertContentDnD(t)}))}},canAccess:o(!0)};return n([i.GENNERAL.FIELD_ITEM],t)(e)}},,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=_(a(6)),o=_(a(2)),l=_(a(3)),s=_(a(7)),u=_(a(8)),d=a(0),c=_(d),p=_(a(13)),f=a(5),h=a(97),m=_(a(242)),g=_(a(212)),E=_(a(398)),y=_(a(15)),v=_(a(12)),T=a(1);function _(e){return e&&e.__esModule?e:{default:e}}var S=(n=r=function(e){function t(e){var a=this;(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));r.getInitialValue=function(e){var t=r.props.value;return(0,T.get)(e,t.top)||(0,T.get)(e,t.bottom)||(0,T.get)(e,t.left)||(0,T.get)(e,t.right)||(0,T.get)(e,t.midHor)||(0,T.get)(e,t.midVer)},r.getValue=function(){return r.state.borderStyle},r.resetAllBorderStyle=function(){var e=r.state.borderStyle;for(var t in e)({}).hasOwnProperty.call(e,t)&&(e[t]={});r.setState({borderStyle:e})},r.setBorderStyle=function(e,t){var a=r.state.borderStyle;e.split(" ").forEach(function(e){var n=a[e]&&a[e].dashStyle===r.dashStyle&&a[e].color===r.color&&a[e].thinkness===r.thinkness;a[e]=n&&!0!==t?{}:{dashStyle:r.dashStyle,color:r.color,thinkness:r.thinkness}}),r.setState({borderStyle:a})},r.setBorderStyleAction=function(e){return function(t){r.setBorderStyle(e,t)}},r.handleChangeBorderStyle=function(e){return function(){switch(e){case h.BORDER_POSITION.NONE:r.resetAllBorderStyle(),r.setBorderStyle("");break;case h.BORDER_POSITION.OUTLINE:r.resetAllBorderStyle(),r.setBorderStyle("top right left bottom",!0);break;case h.BORDER_POSITION.INLINE:r.resetAllBorderStyle(),r.setBorderStyle("midVer midHor",!0);break;case h.BORDER_POSITION.ALL:r.setBorderStyle("top right left bottom midVer midHor",!0)}}},r.getStylesBorder=function(e){var t=r.state.borderStyle;switch(e){case h.BORDER_POSITION.MID_VER:return{borderRightStyle:(0,T.get)("dashStyle",t.midVer),borderRightWidth:(0,T.get)("thinkness",t.midVer),borderRightColor:(0,T.get)("color",t.midVer)};case h.BORDER_POSITION.MID_HOR:return{borderBottomStyle:(0,T.get)("dashStyle",t.midHor),borderBottomWidth:(0,T.get)("thinkness",t.midHor),borderBottomColor:(0,T.get)("color",t.midHor)};case h.BORDER_POSITION.ALL:return{borderTopStyle:(0,T.get)("dashStyle",t.top),borderTopWidth:(0,T.get)("thinkness",t.top),borderTopColor:(0,T.get)("color",t.top),borderRightStyle:(0,T.get)("dashStyle",t.right),borderRightWidth:(0,T.get)("thinkness",t.right),borderRightColor:(0,T.get)("color",t.right),borderBottomStyle:(0,T.get)("dashStyle",t.bottom),borderBottomWidth:(0,T.get)("thinkness",t.bottom),borderBottomColor:(0,T.get)("color",t.bottom),borderLeftStyle:(0,T.get)("dashStyle",t.left),borderLeftWidth:(0,T.get)("thinkness",t.left),borderLeftColor:(0,T.get)("color",t.left)}}},r.onChangeDashStyle=function(e){r.dashStyle=e},r.onChangeColor=function(e){r.color=e},r.onChangeThickness=function(e){var t=e.value;r.thinkness=t},r.renderConfiguration=function(){return c.default.createElement(y.default.Col,{cols:"6",className:"text-center form-horizontal",xs:"12"},c.default.createElement("div",{className:"form-group"},c.default.createElement("label",{className:"col-md-4 text-left u_paddingLeft"},v.default.getText("BORDER_SETTING_LABEL_SETIING")),c.default.createElement("div",{className:"col-md-8"},c.default.createElement("a",{title:v.default.getText("BORDER_SETTING_LABEL_NONE"),className:"icon-border",onClick:r.handleChangeBorderStyle("none")},c.default.createElement("i",{className:"icon-no-boder"})),c.default.createElement("a",{title:v.default.getText("BORDER_SETTING_LABEL_OUTLINE"),className:"icon-border",onClick:r.handleChangeBorderStyle("outline")},c.default.createElement("i",{className:"icon-all-boder"})),!r.props.disableMultipleBorderSettings&&c.default.createElement("a",{title:v.default.getText("BORDER_SETTING_LABEL_INSIDE"),className:"icon-border",onClick:r.handleChangeBorderStyle("inline")},c.default.createElement("i",{className:"icon-table-noboder"})),!r.props.disableMultipleBorderSettings&&c.default.createElement("a",{title:v.default.getText("COMMON_LABEL_ALL"),className:"icon-border",onClick:r.handleChangeBorderStyle("all")},c.default.createElement("i",{className:"icon-table-boder"})))),c.default.createElement("div",{className:"form-group"},c.default.createElement("label",{className:"col-md-4 text-left u_paddingLeft"},v.default.getText("BORDER_SETTING_LABEL_DASH_STYLE")),c.default.createElement("div",{className:"col-md-8"},c.default.createElement(E.default,{dashStyle:r.dashStyle,onChange:r.onChangeDashStyle,className:"u_marginRight"}))),c.default.createElement("div",{className:"form-group"},c.default.createElement("label",{className:"col-md-4 text-left u_paddingLeft"},v.default.getText("COMMON_LABEL_COLOR")),c.default.createElement("div",{className:"col-md-8 text-left"},c.default.createElement("div",{className:"borders-color"},c.default.createElement(g.default,{color:r.color,onChange:r.onChangeColor})))),c.default.createElement("div",{className:"form-group"},c.default.createElement("label",{className:"col-md-4 text-left u_paddingLeft"},v.default.getText("BORDER_SETTING_LABEL_THICKNESS")),c.default.createElement("div",{className:"col-md-8"},c.default.createElement(m.default,{value:r.thinkness,onChange:r.onChangeThickness}))))},r.renderPreview=function(){return c.default.createElement(y.default.Col,{cols:"6",className:"text-center",xs:"0"},c.default.createElement("span",null,v.default.getText("BORDER_SETTING_TOOLTIP_APPLY_BORDER")),c.default.createElement(y.default,null,c.default.createElement(y.default.Row,{className:"border-settings-preview u_marginTop"},c.default.createElement(y.default.Col,{cols:"3",className:"border-preview-right"},c.default.createElement("a",{className:"icon-border",onClick:r.setBorderStyleAction("top")},c.default.createElement("i",{className:"icon-top-boder"})),!r.props.disableMultipleBorderSettings&&c.default.createElement("a",{className:"icon-border",onClick:r.setBorderStyleAction("midHor")},c.default.createElement("i",{className:"icon-mid-hor-boder"})),c.default.createElement("a",{className:"icon-border",onClick:r.setBorderStyleAction("bottom")},c.default.createElement("i",{className:"icon-bottom-boder"}))),c.default.createElement(y.default.Col,{cols:"9",className:"no-padding"},c.default.createElement(a.props.previewComponent,{getStylesBorder:r.getStylesBorder,previewData:r.props.previewData}),c.default.createElement("div",{className:"border-preview-bottom"},c.default.createElement("a",{className:"icon-border",onClick:r.setBorderStyleAction("left")},c.default.createElement("i",{className:"icon-left-boder"})),!r.props.disableMultipleBorderSettings&&c.default.createElement("a",{className:"icon-border",onClick:r.setBorderStyleAction("midVer")},c.default.createElement("i",{className:"icon-mid-ver-boder"})),c.default.createElement("a",{className:"icon-border",onClick:r.setBorderStyleAction("right")},c.default.createElement("i",{className:"icon-right-boder"})))))))},r.dashStyle=r.getInitialValue("dashStyle")||"solid",r.color=r.getInitialValue("color")||"#000",r.thinkness=r.getInitialValue("thinkness")||1;var n=(0,f.toJS)(e.value);return r.state={borderStyle:n},r}return(0,u.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){return c.default.createElement(y.default,{className:"border-settings"},c.default.createElement(y.default.Row,{className:"u_noMarginAll border-settings-header"},c.default.createElement(y.default.Col,{cols:"6",className:"text-center",xs:"12"},v.default.getText("COMMON_LABEL_CONFIGURATION")),c.default.createElement(y.default.Col,{cols:"6",className:"text-center",xs:"0"},v.default.getText("COMMON_LABEL_PREVIEW"))),c.default.createElement(y.default.Row,{className:"no-gutter u_noMarginAll border-settings-body"},this.renderConfiguration(),this.renderPreview()))}}]),t}(d.Component),r.propTypes={disableMultipleBorderSettings:p.default.bool,onChange:p.default.func,borderStyle:p.default.object,previewComponent:p.default.func.isRequired,previewData:p.default.object},n);t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d=h(a(3)),c=h(a(17)),p=h(a(2)),f=a(5);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,a,r){a&&(0,c.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function g(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var E=h(a(166)).default.CONDITION_TYPE,y=(n=g((r=function e(){(0,p.default)(this,e),m(this,"from",n,this),m(this,"to",i,this)}).prototype,"from",[f.observable],{enumerable:!0,initializer:null}),i=g(r.prototype,"to",[f.observable],{enumerable:!0,initializer:null}),r),v=(o=function(){function e(t){(0,p.default)(this,e),m(this,"conditionField",l,this),m(this,"type",s,this),m(this,"value",u,this),this.additionalConditions=[],t&&this.parseData(t)}return(0,d.default)(e,[{key:"setField",value:function(e){var t=e.additionalValue,a=t.previewDataType,r=t.dateTimeFormatData,n=t.containerType;this.conditionField={name:e.value,type:a,dateTimeFormatData:r,containerType:n},this.type=null,this.value=null,this.additionalConditions=[]}},{key:"setType",value:function(e){this.type=e,e===E.RANGE_VALUE.value||e===E.RANGE_PERCENT.value?this.value=new y:this.value=null}},{key:"setValue",value:function(e){this.type===E.RANGE_VALUE.value||this.type===E.RANGE_PERCENT.value?(this.value=new y,this.value.from=e.from,this.value.to=e.to):this.value=e}},{key:"parseData",value:function(e){this.conditionField=e.conditionField,this.type=e.type,this.additionalConditions=e.additionalConditions||[],e.type===E.RANGE_VALUE.value||e.type===E.RANGE_PERCENT.value?(this.value=new y,this.value.from=e.value.from,this.value.to=e.value.to):this.value=e.value}},{key:"serializeData",value:function(){return{conditionField:this.conditionField,type:this.type,value:this.value,additionalConditions:this.additionalConditions}}}]),e}(),l=g(o.prototype,"conditionField",[f.observable],{enumerable:!0,initializer:function(){return{name:"",type:"",dateTimeFormatData:"",containerType:""}}}),s=g(o.prototype,"type",[f.observable],{enumerable:!0,initializer:function(){return null}}),u=g(o.prototype,"value",[f.observable],{enumerable:!0,initializer:function(){return null}}),o);t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=T(a(6)),n=T(a(2)),i=T(a(3)),o=T(a(7)),l=T(a(8)),s=a(0),u=T(s),d=T(a(4)),c=a(1),p=T(a(32)),f=T(a(15)),h=T(a(26)),m=T(a(1184)),g=T(a(1186)),E=T(a(1188)),y=T(a(147)),v=T(a(57));function T(e){return e&&e.__esModule?e:{default:e}}var _=T(a(166)).default.CONDITION_TYPE,S=function(e){function t(e){(0,n.default)(this,t);var a=(0,o.default)(this,(t.__proto__||(0,r.default)(t)).call(this,e));return a.additionalConditions=[],a.setAdditionalConditions=function(){var e=a.props,t=e.additionalFields,r=e.additionalConditions;t.forEach(function(e){var t=e.name,n=e.value,i={value:t,additionalValue:n},o=new m.default;o.setField(i);var l=(0,c.find)(function(e){return e.conditionField.name==t},r);if(l){var s=l.type,u=l.value;o.setType(s),o.setValue(u)}a.additionalConditions.push(o)})},a.getNotEmptyAdditionalConditions=function(){return a.getAdditionalConditionsWithSideTotalFlag().filter(function(e){var t=e.type;if(!t)return!1;switch(t){case _.ALL_VALUES.value:case _.NULL.value:case _.BLANK.value:return!0;case _.VALUE.value:return!!e.value;case _.RANGE_VALUE.value:return!!e.value.from&&!!e.value.to;default:return!1}})},a.getAdditionalConditionsWithSideTotalFlag=function(){var e=a.props,t=e.isAdditionalConditionsForField,r=e.field,n=a.additionalConditions;return t&&r.applyToSideTotal?n.slice(0,-1):n},a.renderAdditionalCondition=function(e,t){var r=a.props.localization,n=(0,c.getOr)("","conditionField.name",e);return u.default.createElement(f.default,{key:t},u.default.createElement(f.default.Row,null,u.default.createElement(f.default.Col,null,u.default.createElement("span",{className:"u_textBold"},n))),u.default.createElement(g.default,{condition:e,localization:r,isAdditionalCondition:!0}),u.default.createElement(E.default,{condition:e,localization:r}),u.default.createElement(f.default.Row,null),u.default.createElement(f.default.Row,null))},a.setAdditionalConditions(),a}return(0,l.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){var e=this.props,t=e.localization,a=e.onReject,r=e.onAccept,n=e.onAdditionalConditionsChange,i=e.isAdditionalConditionsForField,o=e.field,l=this.renderAdditionalCondition,s=this.getNotEmptyAdditionalConditions,d=this.getAdditionalConditionsWithSideTotalFlag;return u.default.createElement(p.default,{visible:!0,onClosing:function(e,t){"accept"===t?(n(s()),r()):a()},autoClose:!1,type:"none",sizeClass:"modal-sm"},u.default.createElement(p.default.Header,{title:t.getText("CONDITIONAL_FORMATTING_ADDITIONAL_CONDITIONS_POPUP_TITLE")}),u.default.createElement(p.default.Body,null,i&&u.default.createElement("div",{style:{padding:"0 10px 10px"}},u.default.createElement(v.default,null,u.default.createElement("span",{style:{"margin-right":"10px"}},t.getText("CONDITIONAL_FORMATTING_ADDITIONAL_CONDITIONS_APPLY_TO_SIDE_TOTAL")),u.default.createElement(y.default,{value:o.applyToSideTotal,type:"checkbox",onChange:function(e){o.applyToSideTotal=e.value}}))),u.default.createElement("div",{style:{height:"180px"}},u.default.createElement(h.default,{fullWidth:!0},u.default.createElement("div",{style:{padding:"0 10px"}},d().map(l))))),u.default.createElement(p.default.Footer,null,u.default.createElement(p.default.ConfirmationButton,{type:"accept"},t.getText("COMMON_LABEL_OK")),u.default.createElement(p.default.ConfirmationButton,{type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))}}]),t}(s.Component),C=(0,d.default)()(S);C.displayName="ConditionalFormattingAdditionalConditionsPopup",t.default=C,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=g(a(6)),i=g(a(2)),o=g(a(3)),l=g(a(7)),s=g(a(8)),u=a(0),d=g(u),c=a(9),p=a(1),f=g(a(15)),h=g(a(29)),m=g(a(1187));function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,c.observer)(r=function(e){function t(e){return(0,i.default)(this,t),(0,l.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this.props,t=e.localization,a=e.condition,r=e.isAdditionalCondition;if(""===(0,p.getOr)("","conditionField.name",a))return null;var n=(0,p.getOr)("","conditionField.type",a),i=m.default.getConditionTypesByFieldType(n,r);return d.default.createElement(f.default.Row,null,d.default.createElement(f.default.Col,{className:"u_controlHeight",cols:3},t.getText("CONDITIONAL_FORMATTING_LABEL_CONDITION_TYPE")),d.default.createElement(f.default.Col,{cols:9},d.default.createElement(h.default,{options:i,value:a.type,onChange:function(e){a.setType(e.value)},valueField:"value",labelField:"title"})))}}]),t}(u.Component))||r;t.default=E,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(1),i=a(166),o=(r=i)&&r.__esModule?r:{default:r};var l=o.default.GRID_STYLES,s=o.default.FIELD_CONTAINER_TYPES,u=o.default.CONDITION_TYPE,d=o.default.DATA_TYPE,c=function(e,t){return{name:(0,n.getOr)("","field.fieldNameAlias",e),value:{type:(0,n.getOr)("","field.dataFieldType",e),dateTimeFormatData:(0,n.getOr)("","dateTimeFormatData",e),previewDataType:(0,n.getOr)("","previewDataType",e),containerType:t}}},p=function(e){return{gridStyle:e.gridStyle,useSideTotal:(0,n.getOr)(!1,"columns.properties.addSideTotal",e)}};t.default={getConditionField:c,groupReportPartElements:function(e){var t=p(e),a=t.gridStyle,r=(t.useSideTotal,[]),n=[];return a===l.VERTICAL?e.columns.elements.forEach(function(e){r.push(c(e,s.COLUMN))}):a===l.HORIZONTAL?e.rows.elements.forEach(function(e){r.push(c(e,s.ROW))}):a===l.PIVOT?(e.rows.elements.forEach(function(e){r.push(c(e,s.ROW))}),e.values.elements.forEach(function(e){r.push(c(e,s.VALUE))}),e.columns.elements.forEach(function(e){n.push(c(e,s.COLUMN))})):a===l.DRILL_DOWN&&(e.rows.elements.forEach(function(e){r.push(c(e,s.COLUMN))}),e.values.elements.forEach(function(e){r.push(c(e,s.VALUE))})),{simpleFields:r,additionalFields:n}},getConditionTypesByFieldType:function(e,t){var a=[];switch(e){default:case d.MONEY:case d.NUMERIC:a.push(u.VALUE),a.push(u.RANGE_VALUE),t||a.push(u.RANGE_PERCENT),a.push(u.ALL_VALUES),a.push(u.BLANK),a.push(u.NULL);break;case d.DATETIME:case d.TIME:a.push(u.VALUE),a.push(u.RANGE_VALUE),a.push(u.ALL_VALUES),a.push(u.BLANK),a.push(u.NULL);break;case d.TEXT:case d.BOOLEAN:a.push(u.VALUE),a.push(u.ALL_VALUES),a.push(u.BLANK),a.push(u.NULL)}return a},getGridProperties:p},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=E(a(14)),i=E(a(6)),o=E(a(2)),l=E(a(3)),s=E(a(7)),u=E(a(8)),d=a(0),c=E(d),p=a(9),f=E(a(166)),h=a(1),m=E(a(15)),g=E(a(147));function E(e){return e&&e.__esModule?e:{default:e}}var y=f.default.CONDITION_TYPE,v=f.default.DATA_TYPE,T=f.default.INPUT_DATA_TYPE,_=f.default.BOOLEAN_OPTION,S=(0,p.observer)(r=function(e){function t(e){return(0,o.default)(this,t),(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=e.localization,a=e.condition,r=a.type;if(!r||r==y.ALL_VALUES.value||r==y.BLANK.value||r==y.NULL.value)return null;var i=a.conditionField,o=i.type,l=i.dateTimeFormatData,s=function(e){switch(e){case v.TEXT:return T.TEXT;case v.MONEY:case v.NUMERIC:return T.NUMBER;case v.BOOLEAN:return T.SELECT;case v.DATETIME:return T.DATETIME;case v.TIME:return T.TIME;default:return T.TEXT}}(o),u=function(){var e,t={};if(s===T.DATETIME||s===T.TIME){var a=(e=l,(0,h.isFunction)(e)?e():e);t=(0,h.assign)(t,{groupByDateTime:(0,h.get)("groupBy",a)})}return r===y.RANGE_PERCENT.value&&s===T.NUMBER?t=(0,h.assign)(t,{min:0,max:100}):s===T.SELECT&&(t=(0,h.assign)(t,_)),t};if(r==y.RANGE_PERCENT.value||r==y.RANGE_VALUE.value){return c.default.createElement(m.default.Row,null,c.default.createElement(m.default.Col,{className:"u_controlHeight",cols:3},t.getText("CONDITIONAL_FORMATTING_LABEL_CONDITION_VALUE")),c.default.createElement(m.default.Col,{cols:4},c.default.createElement(g.default,(0,n.default)({type:s,onChange:function(e){a.value.from=e.value},value:a.value.from},u()))),c.default.createElement(m.default.Col,{className:"u_controlHeight u_textCenter",cols:1},c.default.createElement("span",null,"-")),c.default.createElement(m.default.Col,{cols:4},c.default.createElement(g.default,(0,n.default)({type:s,onChange:function(e){a.value.to=e.value},value:a.value.to},u()))))}return c.default.createElement(m.default.Row,null,c.default.createElement(m.default.Col,{className:"u_controlHeight",cols:3},t.getText("CONDITIONAL_FORMATTING_LABEL_CONDITION_VALUE")),c.default.createElement(m.default.Col,{cols:9},c.default.createElement(g.default,(0,n.default)({value:a.value,onChange:function(e){a.value=e.value},type:s},u()))))}}]),t}(d.Component))||r;t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(1),i=a(11),o=a(1164),l=(r=o)&&r.__esModule?r:{default:r};var s=(0,i.withProps)(function(e){return{getPoints:function(){var t=(0,n.getOr)([],"reportPart.reportPartContent.drilldownInfo",e);return(0,n.map)(function(e){var t=(0,n.getOr)({},"point",e);return(0,n.assign)(e,{value:t.name||(0,n.get)("mapInfo.backgroundMap.label",e)})},t)}}})(l.default);t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,a){return{definedSchema:i,widgets:o,source:{},mappingProps:{reportDesignerModel:t,fieldStore:a},mappingSource:{},onChangeValue:function(e){}}};var r,n=a(2194);var i={title:"",component:"TilePropertiesContainer",props:{reportDesignerModel:"reportDesignerModel",fieldStore:"fieldStore"},fields:{}},o={TilePropertiesContainer:((r=n)&&r.__esModule?r:{default:r}).default};e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(14)),n=s(a(0)),i=a(9),o=s(a(13)),l=a(136);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=e.tile,a=e.tile.properties,i=e.isPreview,o=e.isBorderConfig?{}:a.getBorderStyle();return n.default.createElement("div",{className:"kpi-text-container "+l.draggableClass},n.default.createElement("textarea",{className:"kpi-text-container__text-area",id:e.id,value:t.value,onChange:function(e){t.updateValue(e.target.value)},style:(0,r.default)({},a.getStyle(),o),disabled:!i}))};u.propTypes={id:o.default.string.isRequired,isPreview:o.default.bool,tile:o.default.object.isRequired},t.default=(0,i.observer)(u),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=y(a(14)),i=y(a(6)),o=y(a(2)),l=y(a(3)),s=y(a(7)),u=y(a(8)),d=a(0),c=y(d),p=a(9),f=y(a(13)),h=a(5),m=a(1),g=a(136),E=y(a(2198));function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,p.observer)(r=function(e){function t(){var e,a,r,l;(0,o.default)(this,t);for(var u=arguments.length,d=Array(u),p=0;pt&&(t=a)},e),t},renderHeader:function(e){var a=this.props,r=a.viewMode,n=a.formatElement;return t.createElement("div",{className:"inline-block full-width"},t.createElement("strong",{onClick:e.collapseToggle,className:"report-format-label"},t.createElement("i",{className:"icon-toggle-thick"})," ",a.title),r?null:t.createElement(f,{className:"pull-right",onChange:function(e){var t=A.ITEMS_TYPE[e.value];n.addItem&&n.addItem(e.value,t.width,t.height)}}))},render:function(){var e=this.props,a=e.formatElement,r=e.afterToggled,n={component:this.renderHeader},i=this.layoutStore,o=a.formatItems.map(I),u=function(){return t.createElement(v,{className:this.props.className,layoutStore:i,layoutData:o,flatTransformStyle:!0,editable:!e.viewMode,onDrop:this.onDrop,allowAddInline:!1,onUpdateItemPositions:this.onUpdateItemPositions,showLoading:!1,horizontalAlign:e.horizontalAlign,maxWidth:this.getRealValueOnXAxis()*i.cellWidth},this.renderListFormatItems())}.bind(this),d=e.setting?l("report-format-element",e.className):l("report-format-element");return e.viewMode?t.createElement("div",{className:d,style:e.style}," ",u()," "):t.createElement(s,{header:n,afterToggled:r,collapsible:!0,initState:!0,className:"report-format-element"},u())},onUpdateItemPositions:function(e){var t=function(t){return C({id:t.id},e)},a=function(t){var a=b({id:t.id},e);S(a,{id:t.id,left:t.positionX,top:t.positionY,width:t.width,height:t.height})||t.setPosition({positionX:a.left,positionY:a.top,width:a.width,height:a.height})},r=this.props.formatElement.formatItems;o(function(){N(r).filter(t).forEach(a)})},onDrop:function(e){var t=A.ITEMS_TYPE[e.type];this.props.formatElement.addItem(e.type,t.width,t.height)}});function I(e){return{id:e.id,x:e.positionX,y:e.positionY,width:e.width,height:e.height,isFullSize:!1}}e.exports=n(d)(O)}()},function(e,t,a){"use strict";var r;r=a(118).ITEMS_TYPE,e.exports={getStyle:function(e){var t=e.font||{},a=e.alignment,r=e.imageUrl,n={fontFamily:t.family,fontSize:t.size+"px",fontWeight:t.bold?"bold":"normal",textAlign:a||"none",textDecoration:t.underline?"underline":"none",fontStyle:t.italic?"italic":"normal",color:t.color};return r&&(n["background-size"]="100% 100%"),r&&(n.backgroundImage="url("+r+")"),r&&(n.height=e.height),r&&(n.width=e.width),n},getBackgroundStyle:function(e){return{backgroundColor:(e.font||{}).backgroundColor}},getLineStyle:function(e,t){var a=t?e.color:"#000",n=t?e.dashStyle:"solid",i=t?e.thickness:4;switch(e.type){case r.horizontalRule.value:case r.thinHorizontalRule.value:return{borderTopColor:a,borderTopStyle:n,borderTopWidth:i};case r.verticalRule.value:return{borderLeftColor:a,borderLeftStyle:n,borderLeftWidth:i}}}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b,N,A,R,O,I,D,P,L,M,F,k,x,w,B,U,z,V,G,H,Y,j,K,W,q,Q,X,J=ie(a(17)),Z=ie(a(23)),$=ie(a(2)),ee=ie(a(3)),te=a(5),ae=a(18),re=ie(a(53)),ne=a(1);function ie(e){return e&&e.__esModule?e:{default:e}}function oe(e,t,a,r){a&&(0,J.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function le(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var se=(r=(0,te.action)("populateData"),n=(0,te.action)("setJoinDataSourceCategory"),i=(0,te.action)("updateForeignFilterAlias"),o=(0,te.action)("setForeignDataSourceCategory"),l=(0,te.action)("setJoinQuerySource"),s=(0,te.action)("setForeignQuerySource"),u=(0,te.action)("setJoinField"),d=(0,te.action)("setForeignField"),c=(0,te.action)("clone"),p=(0,te.action)("setAlias"),f=(0,te.action)("updateKeyJoinItem"),h=(0,te.action)("newId"),m=(0,te.action)("setComparisionOperator"),g=(0,te.action)("setComparisionValue"),E=(0,te.action)("updateForeignDataObjectAlias"),(0,re.default)((v=function(){function e(t){(0,$.default)(this,e),oe(this,"parentId",T,this),oe(this,"isKeyJoin",_,this),oe(this,"relationshipId",S,this),oe(this,"joinFieldId",C,this),oe(this,"foreignFieldId",b,this),oe(this,"operator",N,this),oe(this,"joinQuerySourceId",A,this),oe(this,"joinQuerySourceName",R,this),oe(this,"joinDataSourceCategoryId",O,this),oe(this,"joinDataSourceCategoryName",I,this),oe(this,"joinFieldName",D,this),oe(this,"foreignFieldName",P,this),oe(this,"foreignQuerySourceId",L,this),oe(this,"foreignQuerySourceName",M,this),oe(this,"foreignDataSourceCategoryId",F,this),oe(this,"foreignDataSourceCategoryName",k,this),oe(this,"joinSourceAlias",x,this),oe(this,"foreignSourceAlias",w,this),oe(this,"selectedJoinSourceAlias",B,this),oe(this,"selectedForeignSourceAlias",U,this),oe(this,"id",z,this),oe(this,"state",V,this),oe(this,"modified",G,this),oe(this,"dateTimeNow",H,this),oe(this,"validationKey",Y,this),oe(this,"position",j,this),oe(this,"level",K,this),oe(this,"comparisonOperator",W,this),oe(this,"comparisonValue",q,this),oe(this,"isForeignDataObjectAlias",Q,this),oe(this,"foreignFilterAlias",X,this),this.tempId="",this.convertedFromRelationshipId="",this.populateData(t||{}),this.resetDirty()}return(0,ee.default)(e,[{key:"populateData",value:function(e){this.tempId=(0,ne.get)("id",e)||(0,ne.uniqueId)("keyjoin_"),this.parentId=(0,ne.getOr)(null,"relationshipId",e),this.isKeyJoin=!0,this.relationshipId=(0,ne.getOr)(null,"relationshipId",e),this.joinFieldId=(0,ne.getOr)(null,"joinFieldId",e),this.foreignFieldId=(0,ne.getOr)(null,"foreignFieldId",e),this.operator=(0,ne.get)("operator",e)||ae.OPERATOR_TYPES[0].value,this.joinQuerySourceId=(0,ne.getOr)(null,"joinQuerySourceId",e),this.joinQuerySourceName=(0,ne.get)("joinQuerySourceName",e)||"",this.joinDataSourceCategoryId=(0,ne.getOr)(null,"joinDataSourceCategoryId",e),this.joinDataSourceCategoryName=(0,ne.get)("joinDataSourceCategoryName",e)||"",this.joinFieldName=(0,ne.get)("joinFieldName",e)||"",this.foreignFieldName=(0,ne.get)("foreignFieldName",e)||"",this.foreignQuerySourceId=(0,ne.getOr)(null,"foreignQuerySourceId",e),this.foreignQuerySourceName=(0,ne.get)("foreignQuerySourceName",e)||"",this.foreignDataSourceCategoryId=(0,ne.getOr)(null,"foreignDataSourceCategoryId",e),this.foreignDataSourceCategoryName=(0,ne.get)("foreignDataSourceCategoryName",e)||"",this.joinSourceAlias=(0,ne.get)("joinSourceAlias",e)||"",this.foreignSourceAlias=(0,ne.get)("foreignSourceAlias",e)||"",this.selectedJoinSourceAlias=(0,ne.get)("selectedJoinSourceAlias",e)||"",this.selectedForeignSourceAlias=(0,ne.get)("selectedForeignSourceAlias",e)||"",this.id=(0,ne.getOr)(null,"id",e),this.state=(0,ne.isNil)(e.state)?ae.OBJECT_STATE.INSERT:e.state,this.modified=null,this.dateTimeNow=null,this.validationKey=(0,ne.get)("id",e)||this.tempId,this.position=(0,ne.get)("position",e)||0,this.level=null,this.comparisonOperator=(0,ne.get)("comparisonOperator",e)||ae.DEFAULT_COMPARISION_OPERATOR,this.comparisonValue=(0,ne.getOr)(null,"comparisonValue",e),this.isForeignDataObjectAlias=(0,ne.get)("isForeignDataObjectAlias",e)||!1,this.foreignFilterAlias=(0,ne.get)("foreignFilterAlias",e)||null,this.convertedFromRelationshipId=(0,ne.get)("convertedFromRelationshipId",e)}},{key:"setJoinDataSourceCategory",value:function(e,t){this.joinDataSourceCategoryId=e,this.joinDataSourceCategoryName=t,this.setJoinQuerySource(null),this.updateState()}},{key:"setForeignFilterAlias",value:function(e){this.foreignFilterAlias=e,this.updateState()}},{key:"setForeignDataSourceCategory",value:function(e,t){this.foreignDataSourceCategoryId=e,this.foreignDataSourceCategoryName=t,this.setForeignQuerySource(null),this.updateState()}},{key:"setJoinQuerySource",value:function(e,t){this.joinSourceAlias="",this.selectedJoinSourceAlias=e,this.joinQuerySourceName=t,this.joinFieldId=null,this.updateState()}},{key:"setForeignQuerySource",value:function(e,t,a){this.isForeignDataObjectAlias=!!a,this.selectedForeignSourceAlias=e,this.foreignQuerySourceName=t,this.foreignFieldId=null,this.updateState()}},{key:"setJoinField",value:function(e,t){this.joinFieldId=e,this.joinFieldName=t,this.updateState()}},{key:"setForeignField",value:function(e,t){this.foreignFieldId=e,this.foreignFieldName=t,this.updateState()}},{key:"clone",value:function(){var t=(0,ne.clone)(this),a=new e(t);return a.setParentId(t.parentId),a.newId(),a}},{key:"delete",value:function(){this.state=ae.OBJECT_STATE.DELETE}},{key:"setAlias",value:function(e){this.alias=e,this.updateState()}},{key:"setState",value:function(e){this.state=e}},{key:"updateState",value:function(){this.id&&this.state!==ae.OBJECT_STATE.DELETE&&this.setState(ae.OBJECT_STATE.UPDATE)}},{key:"setHidden",value:function(e){this.hidden=e}},{key:"updateKeyJoinItem",value:function(e,t){this[e]=t,this.updateState()}},{key:"getId",value:function(){return this.id||this.tempId}},{key:"newId",value:function(){this.id=null,this.tempId=(0,ne.uniqueId)("keyjoin_")}},{key:"setParentId",value:function(e){this.parentId=e}},{key:"setComparisionOperator",value:function(e){this.comparisonOperator=e,this.markDirty(),this.updateState()}},{key:"setComparisionValue",value:function(e){this.comparisonValue=e,this.markDirty(),this.updateState()}},{key:"updateForeignDataObjectAlias",value:function(e,t){this.isForeignDataObjectAlias&&this.selectedForeignSourceAlias===this.originalAliasId+"_"+e&&(this.selectedForeignSourceAlias=this.originalAliasId+"_"+t)}},{key:"updateAlias",value:function(e,t,a){var r=this.createAliasString(e,t),n=this.createAliasString(e,a);this.isJoinFieldReady&&this.selectedJoinSourceAlias===r&&(this.selectedJoinSourceAlias=n),this.isForeignFieldReady&&this.selectedForeignSourceAlias===r&&(this.selectedForeignSourceAlias=n)}},{key:"createAliasString",value:function(e,t){return e+"_"+t}},{key:"deleted",get:function(){return this.state===ae.OBJECT_STATE.DELETE}},{key:"isJoinQuerySourceReady",get:function(){return!(0,ne.isEmpty)(this.joinDataSourceCategoryId)}},{key:"isforeignQuerySourceReady",get:function(){return!(0,ne.isEmpty)(this.foreignDataSourceCategoryId)}},{key:"isJoinFieldReady",get:function(){return!(0,ne.isEmpty)(this.selectedJoinSourceAlias)}},{key:"isForeignFieldReady",get:function(){return!(0,ne.isEmpty)(this.selectedForeignSourceAlias)}},{key:"originalAliasId",get:function(){if(this.selectedForeignSourceAlias&&this.selectedForeignSourceAlias.indexOf("_")>=0){var e=this.selectedForeignSourceAlias.indexOf("_");return this.selectedForeignSourceAlias.substring(0,e)}return this.selectedForeignSourceAlias}},{key:"isFilterKeyJoin",get:function(){return this.comparisonOperator===ae.DEFAULT_COMPARISION_FILTER_OPERATOR}}]),e}(),T=le(v.prototype,"parentId",[te.observable],{enumerable:!0,initializer:null}),_=le(v.prototype,"isKeyJoin",[te.observable],{enumerable:!0,initializer:null}),S=le(v.prototype,"relationshipId",[te.observable],{enumerable:!0,initializer:null}),C=le(v.prototype,"joinFieldId",[te.observable],{enumerable:!0,initializer:null}),b=le(v.prototype,"foreignFieldId",[te.observable],{enumerable:!0,initializer:null}),N=le(v.prototype,"operator",[te.observable],{enumerable:!0,initializer:null}),A=le(v.prototype,"joinQuerySourceId",[te.observable],{enumerable:!0,initializer:null}),R=le(v.prototype,"joinQuerySourceName",[te.observable],{enumerable:!0,initializer:null}),O=le(v.prototype,"joinDataSourceCategoryId",[te.observable],{enumerable:!0,initializer:null}),I=le(v.prototype,"joinDataSourceCategoryName",[te.observable],{enumerable:!0,initializer:null}),D=le(v.prototype,"joinFieldName",[te.observable],{enumerable:!0,initializer:null}),P=le(v.prototype,"foreignFieldName",[te.observable],{enumerable:!0,initializer:null}),L=le(v.prototype,"foreignQuerySourceId",[te.observable],{enumerable:!0,initializer:null}),M=le(v.prototype,"foreignQuerySourceName",[te.observable],{enumerable:!0,initializer:null}),F=le(v.prototype,"foreignDataSourceCategoryId",[te.observable],{enumerable:!0,initializer:null}),k=le(v.prototype,"foreignDataSourceCategoryName",[te.observable],{enumerable:!0,initializer:null}),x=le(v.prototype,"joinSourceAlias",[te.observable],{enumerable:!0,initializer:null}),w=le(v.prototype,"foreignSourceAlias",[te.observable],{enumerable:!0,initializer:null}),B=le(v.prototype,"selectedJoinSourceAlias",[te.observable],{enumerable:!0,initializer:null}),U=le(v.prototype,"selectedForeignSourceAlias",[te.observable],{enumerable:!0,initializer:null}),z=le(v.prototype,"id",[te.observable],{enumerable:!0,initializer:null}),V=le(v.prototype,"state",[te.observable],{enumerable:!0,initializer:null}),G=le(v.prototype,"modified",[te.observable],{enumerable:!0,initializer:null}),H=le(v.prototype,"dateTimeNow",[te.observable],{enumerable:!0,initializer:null}),Y=le(v.prototype,"validationKey",[te.observable],{enumerable:!0,initializer:null}),j=le(v.prototype,"position",[te.observable],{enumerable:!0,initializer:null}),K=le(v.prototype,"level",[te.observable],{enumerable:!0,initializer:null}),W=le(v.prototype,"comparisonOperator",[te.observable],{enumerable:!0,initializer:null}),q=le(v.prototype,"comparisonValue",[te.observable],{enumerable:!0,initializer:null}),Q=le(v.prototype,"isForeignDataObjectAlias",[te.observable],{enumerable:!0,initializer:null}),X=le(v.prototype,"foreignFilterAlias",[te.observable],{enumerable:!0,initializer:null}),le(v.prototype,"deleted",[te.computed],(0,Z.default)(v.prototype,"deleted"),v.prototype),le(v.prototype,"isJoinQuerySourceReady",[te.computed],(0,Z.default)(v.prototype,"isJoinQuerySourceReady"),v.prototype),le(v.prototype,"isforeignQuerySourceReady",[te.computed],(0,Z.default)(v.prototype,"isforeignQuerySourceReady"),v.prototype),le(v.prototype,"isJoinFieldReady",[te.computed],(0,Z.default)(v.prototype,"isJoinFieldReady"),v.prototype),le(v.prototype,"isForeignFieldReady",[te.computed],(0,Z.default)(v.prototype,"isForeignFieldReady"),v.prototype),le(v.prototype,"originalAliasId",[te.computed],(0,Z.default)(v.prototype,"originalAliasId"),v.prototype),le(v.prototype,"populateData",[r],(0,Z.default)(v.prototype,"populateData"),v.prototype),le(v.prototype,"setJoinDataSourceCategory",[n],(0,Z.default)(v.prototype,"setJoinDataSourceCategory"),v.prototype),le(v.prototype,"setForeignFilterAlias",[i],(0,Z.default)(v.prototype,"setForeignFilterAlias"),v.prototype),le(v.prototype,"setForeignDataSourceCategory",[o],(0,Z.default)(v.prototype,"setForeignDataSourceCategory"),v.prototype),le(v.prototype,"setJoinQuerySource",[l],(0,Z.default)(v.prototype,"setJoinQuerySource"),v.prototype),le(v.prototype,"setForeignQuerySource",[s],(0,Z.default)(v.prototype,"setForeignQuerySource"),v.prototype),le(v.prototype,"setJoinField",[u],(0,Z.default)(v.prototype,"setJoinField"),v.prototype),le(v.prototype,"setForeignField",[d],(0,Z.default)(v.prototype,"setForeignField"),v.prototype),le(v.prototype,"clone",[c],(0,Z.default)(v.prototype,"clone"),v.prototype),le(v.prototype,"setAlias",[p],(0,Z.default)(v.prototype,"setAlias"),v.prototype),le(v.prototype,"updateKeyJoinItem",[f],(0,Z.default)(v.prototype,"updateKeyJoinItem"),v.prototype),le(v.prototype,"newId",[h],(0,Z.default)(v.prototype,"newId"),v.prototype),le(v.prototype,"setComparisionOperator",[m],(0,Z.default)(v.prototype,"setComparisionOperator"),v.prototype),le(v.prototype,"setComparisionValue",[g],(0,Z.default)(v.prototype,"setComparisionValue"),v.prototype),le(v.prototype,"updateForeignDataObjectAlias",[E],(0,Z.default)(v.prototype,"updateForeignDataObjectAlias"),v.prototype),le(v.prototype,"updateAlias",[te.action],(0,Z.default)(v.prototype,"updateAlias"),v.prototype),y=v))||y);t.default=se,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m=D(a(17)),g=D(a(23)),E=D(a(2)),y=D(a(3)),v=a(5),T=D(a(400)),_=D(a(34)),S=a(18),C=D(S),b=D(a(53)),N=a(102),A=D(N),R=D(a(707)),O=D(a(68)),I=a(1);function D(e){return e&&e.__esModule?e:{default:e}}function P(e,t,a,r){a&&(0,m.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function L(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var M=(0,b.default)((n=function(){function e(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,E.default)(this,e),P(this,"id",i,this),P(this,"logic",o,this),P(this,"visible",l,this),P(this,"filterFields",s,this),P(this,"configField",u,this),P(this,"configFieldList",d,this),P(this,"needUpdateResult",c,this),P(this,"commonData",p,this),P(this,"newestFilter",f,this),P(this,"hasCascadingChanged",h,this),this.isFilterIncludeInExport=!1,this.isFilterIncludeFirstinExport=!0,this.showCascadingChangedMessage=!0,this.showCascadingChangedMessage=!a,t&&this.populateData(t),this.cleanDirty()}return(0,y.default)(e,[{key:"visibleConfigFields",get:function(){return(0,I.filter)(function(e){return(0,I.get)("fieldDetails.visible",e)},this.configFieldList)}},{key:"emptyRequiredParamFilters",get:function(){return(0,I.filter)(function(e){return e.required},this.emptyParamFilters)}},{key:"emptyParamFilters",get:function(){return(0,I.filter)(function(e){var t=A.default.OPERATOR_GROUP_KEYS.BOOLEAN,a=e.isParameter,r=e.dataType,n=e.value,i=e.operatorId,o=e.requiredFilterNotApply;return a&&(r!==t&&(0,I.isEmpty)(n)||r===t&&!i||o)},this.displayFilterFields)}},{key:"emptyNotVisibleRequiredFilter",get:function(){var e=this;return(0,I.filter)(function(t){return e.isEmptyRequiredFilter(t)&&!t.visible},this.displayFilterFields)}},{key:"emptyVisibleRequiredFilter",get:function(){var e=this;return(0,I.filter)(function(t){return e.isEmptyRequiredFilter(t)&&t.visible},this.displayFilterFields)}},{key:"paramFilterFields",get:function(){return(0,I.filter)({isParameter:!0},this.displayFilterFields)}},{key:"displayFilterFields",get:function(){return(0,I.filter)(function(e){return e.displayable},this.filterFields)}},{key:"availableFilterFields",get:function(){return(0,I.filter)(function(e){return e.state!==C.default.OBJECT_STATE.DELETE},this.filterFields)}},{key:"displayConfigFields",get:function(){return(0,I.filter)(function(e){var t=e.fieldDetails;return!(0,I.isEqual)(t.dataType,N.EXCLUDE_FILTER_DATA_TYPE.REF_CURSOR)&&!(0,I.isEqual)(t.dataType,N.EXCLUDE_FILTER_DATA_TYPE.SYS_REFCURSOR)&&t.state!==C.default.OBJECT_STATE.DELETE&&t.visible},this.configFieldList)}}]),(0,y.default)(e,[{key:"resetConfigField",value:function(){this.configField.setFieldDetails(null)}},{key:"setConfigModeToField",value:function(e){if(!e)return this.resetConfigField();if(!(0,I.isEqual)(this.configField.fieldDetails,e)){var t=this.configField;t.fieldDetails&&t.fieldDetails.querySourceFieldId&&(t.updateFilterValueToField(),t.resetOperatorSourceDisplay()),this.configField.setFieldDetails(e)}}},{key:"updateConfigFieldList",value:function(e,t,a){var r=this;t=t||[];var n=this.filterFields;this.configFieldList=(0,I.map)(function(t){var n=new R.default(t,r.markUpdateResult);if(n.commonData=r.configField.commonData,!a&&(n.operatorSourceInfo=(0,I.clone)(r.configField.operatorSourceInfo),e&&e.length>0)){var i=n.fieldDetails,o=(0,I.find)({filterFieldId:i.id},e);if(!(0,I.isNil)(o)){var l=o.value,s=o.operatorId,u=o.operatorSetting,d=o.position;i.value=l,i.operatorId=s,n.selectedOperatorId=s,i.operatorSetting=u,i.position=d}}return n},n)}},{key:"populatedFilterSourceData",value:function(e){var t=this,a=this.filterFields;e=e||[],this.configFieldList=(0,I.map)(function(a){var r=new R.default(a,t.markUpdateResult.bind(t));r.commonData=t.configField.commonData;var n=r.filterInfo.sourceType,i=r.fieldDetails.id,o=(0,I.find)({filterFieldId:i},e)||{},l=(0,I.getOr)([],"data",o);return r.populateOperatorSourceValue(n,l),r},a)}},{key:"resetConfigMode",value:function(){this.setConfigModeToField(null)}},{key:"populateData",value:function(e){this.id=e.id,this.logic=e.logic,this.visible=e.visible,this.populateFilterList(e.filterFields),this.updateFilterInfoForSubReport(),this.cleanDirty()}},{key:"populateFilterList",value:function(e){var t=this;e=e||[],e=(0,I.filter)(function(e){return e.state!==C.default.OBJECT_STATE.DELETE},e),this.filterFields=e.map(function(a){return new T.default(a,e,t.markUpdateResult.bind(t))}),this.hasCascadingChanged=this.disableCascading();var a=this.configField.fieldDetails;if(!(0,I.isEmpty)(a)){var r=(0,I.find)({sourceFieldName:a.sourceFieldName},this.filterFields);this.configField.setFieldDetails(r)}}},{key:"updateFilterFieldDetail",value:function(){var e=this.configField.fieldDetails;if(!(0,I.isEmpty)(e)){var t=(0,I.findIndex)({uniqueId:e.uniqueId},this.availableFilterFields);-1!==t&&this.filterFields[t].setFilterDetails(this.configField.fieldDetails),this.disableCascading()}}},{key:"disableCascading",value:function(){var e=this,t=[],a=(0,I.flow)((0,I.filter)(function(e){return e.state!==C.default.OBJECT_STATE.DELETE}),(0,I.orderBy)("position","asc"))(this.filterFields);a.forEach(function(r,n){var i=a[n+1];i&&(0,I.get)("allowLookup",e.configField.getOperatorById(i.operatorId))&&(i.hasValidLookupKey&&i.useLookup||i.hasUserDefinedLookup)&&t.push(r)});var r=!1;return t.forEach(function(e){return r=r||e.setDisableCascading(!0)}),(0,I.difference)(a,t).forEach(function(e){return e.setDisableCascading(!1)}),r}},{key:"populateOperatorGroup",value:function(e){this.configField.populateOperatorGroup(e)}},{key:"populateFilterQuerySource",value:function(e){this.commonData.querySource=e}},{key:"removeFilter",value:function(e){var t=e.position,a=(0,I.findIndex)(function(e){return e.position===t&&e.state!==C.default.OBJECT_STATE.DELETE},this.filterFields);-1!==a&&(this.filterFields[a].id===C.default.EMPTY_GUID||null===this.filterFields[a].id?this.filterFields.splice(a,1):this.filterFields[a].state=C.default.OBJECT_STATE.DELETE,this.reorderPosition(),this.markDirty(),this.markUpdateResult())}},{key:"reorderPosition",value:function(){for(var e=this.filterFields.length,t=1,a=0;a0)for(var t=0;ta.position&&e.cascading}),(0,I.forEach)((0,I.invokeArgs)("updateByKey",["value",""])))(this.filterFields)}},{key:"loadDefaultOperator",value:function(e){var t=this.configField.commonData,a=e.dataType||"";a=a.toLowerCase();var r=A.default.DEFAUFT_OPERATOR_GROUP[a],n=(0,I.find)({key:r},t.operatorGroup)||{};if(n.filterOperators){var i=(0,I.find)({id:n.id},t.operatorGroup)||{},o=i.filterOperators||[],l=A.default.BLANK_NULL_OPERATOR.indexOf(a)>-1,s=(0,I.head)(o),u=void 0;u=a===A.default.DATA_TYPE.TIME.toLowerCase()?(0,I.find)({key:A.default.PARAM_OPERATOR_BY_DATA_TYPE.Time[0]},o)||s:!l&&(0,I.find)({id:i.defaultOperatorId},o)||s,e.operatorId=u.id,e.operatorName=u.name}}},{key:"addFilterById",value:function(e,t,a,r){var n=this.getFieldDetailsByIdAndSourceDataObjectName(e,t)||{};n=(0,v.toJS)(n),!(n=(0,I.assign)(n,a)).operatorId&&this.loadDefaultOperator(n),n&&(this.addFilter(n,r),this.markDirty(),this.markUpdateResult())}},{key:"addFilterByIds",value:function(e,t){var a=this,r=this.filterFields;(e=e||[]).forEach(function(e){var n;n=e,!(0,I.find)(function(e){return e.querySourceFieldId===n&&e.state!==O.default.DELETE},r)&&a.addFilterById(e,null,t)})}},{key:"getFieldDetailsByIdAndSourceDataObjectName",value:function(e,t){return(0,I.find)(function(a){return a.querySourceFieldId===e&&(!t||a.sourceDataObjectName===t)},this.commonData.querySource)}},{key:"getPredictionRelationData",value:function(e,t){return(0,I.isEmpty)(e)?{}:{relationData:{},fieldId:e.querySourceFieldId,fieldName:e.sourceFieldName,fieldNameAlias:e.sourceFieldName,dataFieldType:e.dataType,querySourceId:e.querySourceId,querySourceType:t.isAlias?null:t.type,sourceAlias:t.name,relationshipId:t.isAlias?t.id:null,visible:!0,calculatedTree:null,schemaName:t.querySourceCategoryName,querySourceName:t.name,databaseName:t.connectionName,isCalculated:e.isCalculated,isRunningField:e.isRunningField,hasAggregatedFunction:e.hasAggregatedFunction,hasSupportDefaultTotal:e.hasSupportDefaultTotal,isPredicated:e.isPredicated,modelName:e.modelName,relationColumn:e.relationColumn}}},{key:"buildDataForSaving",value:function(){var e=this,t=(this.filterFields||[]).map(function(e){return e.getFilterDetails()}),a=(0,I.getOr)([],"commonData.querySource",this);return t=t.map(function(t){var r=(0,I.find)(function(e){var a=t.relationColumn||"",r=e.sourceFieldName||"";return a.toLowerCase()===r.toLowerCase()},a);return t.relationData=e.getPredictionRelationData(r,a),t}),{logic:this.logic,visible:this.visible,filterFields:t,id:this.id,isFilterIncludeFirstinExport:this.isFilterIncludeFirstinExport,isFilterIncludeInExport:this.isFilterIncludeInExport}}},{key:"moveTo",value:function(e,t){if((0,I.isNumber)(t)){var a=(0,I.filter)(function(e){return e.state!==O.default.DELETE},this.filterFields);if(!(t<0||t>(0,I.size)(a))){var r=this.findIndexInFilterListByViewIndex(e),n=this.findIndexInFilterListByViewIndex(t),i=this.filterFields.splice(r,1);(0,I.size)(i)&&this.filterFields.splice(n,0,(0,I.head)(i)),this.reorderPosition(),this.markDirty(),this.markUpdateResult()}}}},{key:"checkDirty",value:function(){var e=(0,I.filter)(function(e){return e.checkDirty&&e.checkDirty()},this.filterFields),t=(0,I.some)(["isDirty",!0],this.configFieldList);return this.isDirty||t||e&&e.length>0}},{key:"cleanDirty",value:function(){this.hasCascadingChanged||((0,I.forEach)(function(e){e.cleanDirty&&e.cleanDirty()},this.filterFields),(0,I.forEach)(function(e){e.cleanDirty&&e.cleanDirty()},this.configFieldList),this.resetDirty(),this.resetUpdateResult())}},{key:"checkExistingFilter",value:function(e,t){var a=(0,I.filter)(function(e){return e.uniqueId!==t.uniqueId},this.availableFilterFields);return String.checkDuplicate(e,a,(0,I.get)("alias"))}},{key:"findIndexInFilterListByViewIndex",value:function(e){return(0,I.findIndex)(function(t){var a=t.state,r=t.position;return a!==O.default.DELETE&&r===e+1},this.filterFields)}},{key:"isFilterUseAggregatedField",value:function(e,t){return t.reportFieldAlias===e.field.fieldNameAlias&&t.querySourceFieldId===e.fieldId&&t.sourceDataObjectName===C.default.FIELD_TYPE.AggregatedField}},{key:"removeAggregatedField",value:function(e){var t=this;this.filterFields=(0,I.map)(function(a){if(t.isFilterUseAggregatedField(e,a)){var r=(0,I.clone)(a);return r.state=C.default.OBJECT_STATE.DELETE,r.alias="",r.cascading=!a.isParameter,new T.default(r,t.availableFilterFields)}return a},this.filterFields)}},{key:"updateAggregatedFieldReportPartTitle",value:function(e,t){(0,I.forEach)(function(a){a.reportPartTitle===e&&(a.reportPartTitle=t)},this.filterFields)}},{key:"updateAggregatedFieldReportFieldAlias",value:function(e,t,a){(0,I.forEach)(function(r){r.reportPartTitle===a&&r.reportFieldAlias===e&&(r.sourceFieldName=t,r.reportFieldAlias=t)},this.filterFields)}},{key:"isEmptyRequiredFilter",value:function(e){var t=(0,I.isEmpty)((0,I.trim)(e.value))||(0,I.includes)("",(0,I.split)(";#",e.value));return!e.isParameter&&e.required&&(t||e.requiredFilterNotApply)&&this.needCheckOperatorValue(e)}},{key:"needCheckOperatorValue",value:function(e){var t=e.operatorName;return t&&!(0,I.includes)(t,N.OPERATOR_NAMES)}},{key:"removeFiltersOfUncheckedDataObject",value:function(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=this.getRequestParam(e);return F.default.loadUsersAccess(t)}},{key:"loadAvailableRoles",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getRequestParam(e);return F.default.loadRolesAccess(t)}},{key:"toggleAll",value:function(e){this.isShowSystemConfiguration=e,this.isShowTenantSetup=e,this.isShowDataSetup=e,this.isShowUserSetup=e,this.isShowRoleSetup=e,this.isShowReports=e,this.isShowDashboards=e,this.isShowAccess=e,this.isShowScheduling=e,this.isShowEmailing=e,this.isShowExporting=e,this.isShowSystemWide=e}},{key:"updateTenantDetail",value:function(e){this.tenantDetail=e}}]),e}(),n=G(r.prototype,"model",[D.observable],{enumerable:!0,initializer:function(){return{}}}),i=G(r.prototype,"tenantId",[D.observable],{enumerable:!0,initializer:function(){return""}}),o=G(r.prototype,"roleAccessLimits",[D.observable],{enumerable:!0,initializer:function(){return new k.default}}),l=G(r.prototype,"roleSchedulingLimits",[D.observable],{enumerable:!0,initializer:function(){return new k.default}}),s=G(r.prototype,"dashboardCategoryAccessibility",[D.observable],{enumerable:!0,initializer:function(){return{}}}),u=G(r.prototype,"reportCategoryAccessibility",[D.observable],{enumerable:!0,initializer:function(){return{}}}),d=G(r.prototype,"tenantDetail",[D.observable],{enumerable:!0,initializer:function(){return null}}),c=G(r.prototype,"isShowSystemConfiguration",[D.observable],{enumerable:!0,initializer:function(){return!0}}),p=G(r.prototype,"isShowTenantSetup",[D.observable],{enumerable:!0,initializer:function(){return!0}}),f=G(r.prototype,"isShowDataSetup",[D.observable],{enumerable:!0,initializer:function(){return!0}}),h=G(r.prototype,"isShowUserSetup",[D.observable],{enumerable:!0,initializer:function(){return!0}}),m=G(r.prototype,"isShowRoleSetup",[D.observable],{enumerable:!0,initializer:function(){return!0}}),g=G(r.prototype,"isShowReports",[D.observable],{enumerable:!0,initializer:function(){return!0}}),E=G(r.prototype,"isShowDashboards",[D.observable],{enumerable:!0,initializer:function(){return!0}}),y=G(r.prototype,"isShowAccess",[D.observable],{enumerable:!0,initializer:function(){return!0}}),v=G(r.prototype,"isShowScheduling",[D.observable],{enumerable:!0,initializer:function(){return!0}}),T=G(r.prototype,"isShowEmailing",[D.observable],{enumerable:!0,initializer:function(){return!0}}),_=G(r.prototype,"isShowExporting",[D.observable],{enumerable:!0,initializer:function(){return!0}}),S=G(r.prototype,"isShowSystemWide",[D.observable],{enumerable:!0,initializer:function(){return!0}}),G(r.prototype,"reset",[D.action],(0,b.default)(r.prototype,"reset"),r.prototype),G(r.prototype,"getRolePermission",[D.action],(0,b.default)(r.prototype,"getRolePermission"),r.prototype),G(r.prototype,"updateAccessLimitData",[D.action],(0,b.default)(r.prototype,"updateAccessLimitData"),r.prototype),G(r.prototype,"updateSchedulingLimitsData",[D.action],(0,b.default)(r.prototype,"updateSchedulingLimitsData"),r.prototype),G(r.prototype,"updateReportAccessibilityCategory",[D.action],(0,b.default)(r.prototype,"updateReportAccessibilityCategory"),r.prototype),G(r.prototype,"updateDashboardAccessibilityCategory",[D.action],(0,b.default)(r.prototype,"updateDashboardAccessibilityCategory"),r.prototype),G(r.prototype,"getCategoryAccessibility",[D.action],(0,b.default)(r.prototype,"getCategoryAccessibility"),r.prototype),G(r.prototype,"loadLazyCategory",[D.action],(0,b.default)(r.prototype,"loadLazyCategory"),r.prototype),G(r.prototype,"loadPartialRolePermission",[D.action],(0,b.default)(r.prototype,"loadPartialRolePermission"),r.prototype),G(r.prototype,"loadPartialPermissionAccess",[D.action],(0,b.default)(r.prototype,"loadPartialPermissionAccess"),r.prototype),G(r.prototype,"loadPartialPermissionSchedule",[D.action],(0,b.default)(r.prototype,"loadPartialPermissionSchedule"),r.prototype),G(r.prototype,"toggleAll",[D.action],(0,b.default)(r.prototype,"toggleAll"),r.prototype),r);t.default=H,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(5).extendObservable,r=a(63),n=a(16),i=a(1),o=i.uniqueId,l=i.assign,s=i.omit;function u(e){var a={key:o(),id:null,tenantId:n.getTenantId()||null,name:"",modified:null};e=l(a,e||{}),t(r(this),e)}u.prototype.prepareRequestJSON=function(){return s(["isDirty","key"],this)},e.exports=u}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=R(a(17)),s=R(a(23)),u=a(20),d=R(a(2)),c=R(a(3)),p=R(a(217)),f=R(a(110)),h=R(a(2234)),m=R(a(712)),g=R(a(516)),E=R(a(517)),y=R(a(67)),v=R(a(160)),T=a(18),_=R(T),S=R(a(129)),C=R(a(68)),b=R(a(713)),N=a(5),A=a(1);function R(e){return e&&e.__esModule?e:{default:e}}function O(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function I(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var D=(r=function(){function e(){(0,d.default)(this,e),O(this,"model",n,this),O(this,"clonedModel",i,this),O(this,"expressionSelection",o,this),this.reportKey=null,this.init(),this.expressionSelection=new m.default,this.reportKey=null}return(0,c.default)(e,[{key:"init",value:function(){this.model=new h.default,this.clonedModel=this.model.clone()}},{key:"preview",value:function(e){var t=this.clonedModel,a=this.reportKey,r=t.expression,n=t.izendaDataType,i=t.id,o=t.previewRecord;if(a){var l={reportKey:{key:a},expression:r,izendaDataType:n,querySourceFieldId:i,previewRecord:o};return f.default.previewDSCalculatedField(l).then(t.readPreviewResult.bind(t))}return p.default.previewCalculatedField(e,r,n,i).then(t.readPreviewResult.bind(t))}},{key:"previewReportProperties",value:function(e,t){var a=this,r=this.clonedModel,n=r.type;if(!e&&!t)return(0,u.resolve)();var i=this.getConfigFieldInReportDefinition(e.getReportDefinition().report,t),o=this.getCalculatedDetail(e,t);switch(n.name){case y.default.TYPES.GRAND_TOTAL.name:return f.default.previewGrandTotal(o).then(function(e){return a.revertToBackupData(i),r.readPreviewResult(e)});case y.default.TYPES.SUB_TOTAL.name:return f.default.previewSubTotal(o).then(function(e){return a.revertToBackupData(i),r.readPreviewResult(e)});default:return(0,u.resolve)()}}},{key:"revertToBackupData",value:function(e){var t=(0,A.cloneDeep)((0,A.get)("properties.dataFormattings.subTotal",e)),a=(0,A.cloneDeep)((0,A.get)("properties.dataFormattings.grandTotal",e));if(e){var r=e.properties;r.updateSubTotalData(t),r.updateGrandTotalData(a)}}},{key:"validateExpression",value:function(e,t){var a=this,r=this.clonedModel,n=r.querySourceId,i=r.expression,o=r.izendaDataType,l=r.id;return this.reportKey?this.validateFieldExpression().then(function(e){return a.readDataType(e,t)}):p.default.validateExpression(e||n,i,o,l).then(function(e){return a.readDataType(e,t)})}},{key:"readDataType",value:function(e,t){var a=this.clonedModel;if(!t)return a.readDataType(e);var r=e.result,n=e.messages;return r?(a.suggestedDataType=(0,A.defaultTo)(null,r.izendaDataType),a.validExpression=(0,A.isEmpty)(n),a.isRunningField=(0,A.defaultTo)(!1,r.isRunningField),a.isCompositeField=(0,A.defaultTo)(!1,r.isCompositeField),(0,A.isNil)(a.izendaDataType)&&(a.izendaDataType=(0,A.defaultTo)(null,r.izendaDataType)),n):n}},{key:"validateFieldExpression",value:function(){var e=this.clonedModel,t=e.expression,a=e.izendaDataType,r=e.id,n=e.previewRecord,i={reportKey:{key:this.reportKey},expression:t,izendaDataType:a,querySourceFieldId:r,previewRecord:n};return f.default.validateFieldExpression(i)}},{key:"validateExpressionWithReportKey",value:function(e,t,a){var r=this;if(!e&&!t)return(0,u.resolve)();var n=this.clonedModel.type,i=this.getConfigFieldInReportDefinition(e.getReportDefinition().report,t),o=this.getCalculatedDetail(e,t);return(0,A.isEqual)(n,y.default.TYPES.GRAND_TOTAL)?f.default.validateGrandTotalExpression(o).then(function(e){return r.updateDataType(i,e,a)}):(0,A.isEqual)(n,y.default.TYPES.SUB_TOTAL)?f.default.validateSubTotalExpression(o).then(function(e){return r.updateDataType(i,e,a)}):(0,u.resolve)()}},{key:"updateDataType",value:function(e,t,a){var r=this.clonedModel;return this.revertToBackupData(e),!a&&r.readDataType(t),t.messages}},{key:"fillCalculatedFieldData",value:function(e,t,a,r,n){this.reportKey=r,this.expressionSelection=new m.default({expressionFieldName:new g.default({fieldNames:n,selectedDataSource:e,dataSources:t}),expressionFunctionOperators:new E.default({functionOperators:a})})}},{key:"getCalculatedDetail",value:function(e,t){var a=this.clonedModel,r=a.type,n=a.name,i=a.functionName,o=a.izendaDataType,l=a.previewResult,s=a.format,u=a.expression,d=a.id,c=a.previewRecord,p=a.font,f=t.configField,h=e.getReportDefinition(),m=h.report,g=h.reportKey.tenantId,E=r.title===y.default.TYPES.SUB_TOTAL.title,v={label:n,function:i,expression:i===y.default.FUNCTION_NAME.EXPRESSION?u:"",dataType:o,previewResult:l,format:s,font:p},T=this.getConfigFieldInReportDefinition(m,t);if(T){var S=T.properties;if(E?S.updateSubTotalData(v):S.updateGrandTotalData(v),t.type===_.default.REPORT_PART_TYPE.Form&&E){var C=(0,A.invokeArgs)("getDataValueByKey",["subTotal"],S);C.label&&(C.levels=[""],(0,A.invokeArgs)("setDataFormatByKey",["subTotal",C],S))}}return{reportKey:{key:this.reportKey,tenantId:g},report:m,title:t.headerTitle,expression:u,totalProperties:v,izendaDataType:o,reportField:f.field,querySourceFieldId:d,previewRecord:c,font:p}}},{key:"getConfigFieldInReportDefinition",value:function(e,t){var a=(0,A.find)(function(e){return e.state!==C.default.DELETE&&e.title===t.headerTitle},e.reportPart),r=a.reportPartContent,n=function(e,t){return(0,A.get)("field.fieldId",e)===(0,A.get)("configField.field.fieldId",t)&&(0,A.get)("name",e)===(0,A.get)("configField.name",t)},i=(0,A.find)(function(e){return n(e,a)},(0,A.get)("columns.elements",r));return i||(i=(0,A.find)(function(e){return n(e,a)},(0,A.get)("rows.elements",r))),i||(i=(0,A.find)(function(e){return n(e,a)},(0,A.get)("values.elements",r))),i||(i=(0,A.find)(function(e){return n(e,a)},(0,A.get)("separators.elements",r))),i}},{key:"getFormatsByType",value:function(e){var t=this.clonedModel;return v.default.loadReportFieldDataFormat(e).then(function(e){return t.izendaDataType===T.DATA_TYPES.DATE_TIME&&(e=S.default.filterDateTimeFormat(e)),t.izendaDataType!==T.DATA_TYPES.NUMERIC&&t.izendaDataType!==T.DATA_TYPES.MONEY||(e=(0,A.remove)(function(e){return((0,A.has)("subTotalProperties",t.type)||(0,A.has)("grandTotalProperties",t.type))&&(0,A.includes)(e.name,b.default.FORMATS_ONLY_ON_PIVOT_GRID_VALUE_CONTAINER)||((0,A.has)("grandTotalProperties",t.type)||!t.canSetSubtotal)&&(0,A.includes)(e.name,b.default.FORMAT_NOT_AVAILABLE_ON_FIELD_CAN_NOT_SET_SUBTOTAL)},e)),t.formats=e,e})}},{key:"acceptClonedModel",value:function(){var e=this.clonedModel;this.model.populateData(e)}}]),e}(),n=I(r.prototype,"model",[N.observable],{enumerable:!0,initializer:function(){return null}}),i=I(r.prototype,"clonedModel",[N.observable],{enumerable:!0,initializer:function(){return null}}),o=I(r.prototype,"expressionSelection",[N.observable],{enumerable:!0,initializer:function(){return null}}),I(r.prototype,"init",[N.action],(0,s.default)(r.prototype,"init"),r.prototype),I(r.prototype,"revertToBackupData",[N.action],(0,s.default)(r.prototype,"revertToBackupData"),r.prototype),I(r.prototype,"readDataType",[N.action],(0,s.default)(r.prototype,"readDataType"),r.prototype),I(r.prototype,"updateDataType",[N.action],(0,s.default)(r.prototype,"updateDataType"),r.prototype),I(r.prototype,"fillCalculatedFieldData",[N.action],(0,s.default)(r.prototype,"fillCalculatedFieldData"),r.prototype),I(r.prototype,"getFormatsByType",[N.action],(0,s.default)(r.prototype,"getFormatsByType"),r.prototype),r);t.default=D,e.exports=t.default},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={WORKER_CHUNK:3},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getApiInfo=function(){var e=new n.default;return{tenantId:r.default.tenantId,headers:{access_token:e.getAccessToken(),tenantId:r.default.tenantId,currentTenantId:r.default.currentUser.tenantId},webApiUrl:i.default.WebApiUrl}};var r=o(a(16)),n=o(a(106)),i=o(a(43));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCacheInAPISide=function(e,t,a){var r=a.value;"function"==typeof r&&(a.value=function(){this.setUseCache();for(var e=arguments.length,t=Array(e),a=0;a=v?f:(t-_)/y*f,E[0]!==_&&(a=f-Math.abs(a)),m.style[g]=a+"%",m.style.visibility="visible"}else m.style.visibility="hidden"}}}(t.gradientRange,L,M,K);n.appendChild(d.element),c.showGradientCaret=d.showGradientCaret}else{n.className=(0,u.default)("izenda-GoogleMaps-Legend-OptionContent");var p=document.createElement("span");p.className=b;var h=(0,o.default)(t.iconColor).setAlpha("bubbleSeries"===t.type?i.GOOGLE_MAPS_CONSTANTS.BUBBLE_FILL_OPACITY:i.GOOGLE_MAPS_CONSTANTS.DEFAULT_SHADING_FILL_OPACITY);p.style.backgroundColor=h.toRgbString(),p.style.borderColor=t.iconColor;var m=document.createElement("span");m.className=N,m.innerText=t.label,R(m,M),n.appendChild(p),n.appendChild(m),!(0,l.isEmpty)(t.eventListeners)&&t.eventListeners.forEach(function(r){a.addEventListener(r.eventName,r.eventHandler.bind(t,e,{icon:p,label:m}))})}a.appendChild(n),G.appendChild(a)}),B.appendChild(G);var W=function(e,t){var a=document.createElement("div"),r=document.createElement("div"),n=document.createElement("div"),i="izenda-GoogleMaps-Legend-UpArrow icon-chevron-up",o="izenda-GoogleMaps-Legend-DownArrow icon-chevron-down";return a.className="izenda-GoogleMaps-Legend-ArrowContainer",r.className=i,n.className=o,r.onclick=function(){A(t,-p,l)},n.onclick=function(){A(t,p,l)},a.appendChild(r),a.appendChild(n),e.appendChild(a),l(),l;function l(){var e=t.scrollTop;r.className=e?i:i+" disabled-elm";var a=o;if(t.scrollHeight>t.clientHeight){t.scrollTop=t.scrollTop+1;var l=e&&e===t.scrollTop;t.scrollTop=e,l&&(a+=" disabled-elm")}else a+=" disabled-elm";n.className=a}}(B,G);w=setInterval(function(){B.clientHeight&&(W(),d&&d(),clearInterval(w))},h)};var i=a(85),o=c(a(382)),l=a(1),s=c(a(1002)),u=c(a(10)),d=c(a(261));function c(e){return e&&e.__esModule?e:{default:e}}var p=90,f=100,h=500,m=.25,g=160,E=70,y=55,v=20,T=i.GOOGLE_MAPS_CONSTANTS.GRADIENT_BAR_MARKER_PORTION,_=200,S=5,C=5,b="izenda-GoogleMaps-Legend-OptionIcon",N="izenda-GoogleMaps-Legend-OptionLabel";function A(e,t,a){var r=e.scrollTop,n=function(e,t,a,r){return(e/=r/2)<1?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t},i=r+t,o=500,l=void 0,s=void 0;function u(c){s=c-l,e.scrollTop=n(s,r,t,o),s0?function(){e&&r(n,[{key:a,value:t.pointName}],null)}:null}},{key:"buildSeries",value:function(e,t){var a=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this.chartOptions,s=n.commonOptions,u=n.colors,d=n.reportPartState.activeSerie,c=this.fieldOptions,p=(0,h.get)("izendaOptions",s),f=(0,h.getOr)({},"seriesMap",p),y=(0,h.getOr)({},"activePointOption",p),v=(0,h.getOr)({},"pointOption",f),T=(0,h.compact)(t?(0,h.flatMap)(function(e){return(0,h.isEmpty)(d)||d.name===e?(0,l.default)({name:e},t[e]):null},(0,o.default)(t)):[]);y&&(0,m.applyPointOptionsColor)(T,y,c),y&&(0,m.applyValuesColor)(T,y,c);var _=u||g.DEFAULT_COLOR_PALETTE,S=_.length;T.forEach(function(t,n){var i=_[(n+r)%S];t.color=i,t.display=!0;var o=(0,h.get)("field.fieldNameAlias",t),l=(0,h.get)(o+".cellColors."+y.pointType+".value",c),s=void 0,u=void 0;l&&"shadingSeries"===e&&(s=(0,h.get)("text",(0,h.find)({name:"High"},l)),u=(0,h.get)("text",(0,h.find)({name:"Low"},l))),t.data.forEach(function(e){var r=(0,h.get)("rangesObject",e);"value"===(0,h.get)("type",r)&&s&&u&&(t.gradientRange={range:r.range,highColor:(0,E.default)(s).toHexString(),lowColor:(0,E.default)(u).toHexString()},a.buildGradientRangeColor(e,s,u)),(0,h.isEmpty)(e.color)&&(e.color=i),e.tooltip=(0,m.getTooltipContent)(e,v,c,t),e.formattedPointName=(0,m.getFormattedPointName)(e,v,c,t),e.action=a.addPointActions(y,e)})});var C=y.pointType,b=(0,h.reduce)(function(e,t){return e.concat(a.splitSeriesByColor(t,(0,h.get)("cellColors."+C,c[t.name])))},[],T);return(0,i.default)({},e,b)}},{key:"buildLegendOption",value:function(e,t){var a=e.shadingSeries,r=t.bubbleSeries,n=function(e,t){return(0,h.isEmpty)(e)?[]:(e=e.filter(function(e){return!(0,h.isEmpty)(e.data)&&!function(e){var t=(0,h.get)("activePointOption.pointType",e),a=(0,h.get)("field.reportPartElm.properties",e),r=(0,h.getOr)([],"dataFormattings.color.cellColor."+t+".value",a);return(0,h.some)(function(e){return"dynamic"===e.thresholdType},r)}(e)}),(0,h.map)(function(e){return function(e,t){return{label:e.name!==e.metricName?e.name+" - "+e.metricName:e.name,display:!!e.display,iconColor:e.color,gradientRange:e.gradientRange,type:t,eventListeners:[{eventName:"click",eventHandler:function(a,r){e.display=!e.display;var n=(0,h.get)("name",e),i=(0,h.get)("metricName",e),o=e.display;(0,y.updateDisplayStatus)(r,o),a.refresh({key:T([t,n,i]),nextDisplayStatus:o})}}]}}(e,t)},e))},i=[].concat(n(a,"shadingSeries")).concat(n(r,"bubbleSeries")),o=(0,h.get)("commonOptions.legend",this.chartOptions),s=o.align,u=o.verticalAlign,d=this.getControlPosition(s,u);return{legend:(0,l.default)({},o,{series:i,position:d})}}},{key:"buildGradientRangeColor",value:function(e,t,a){function r(e,t,a){return(e-t)*a+t}var i=(0,E.default)(t).toRgb(),o=(0,E.default)(a).toRgb(),l=e.originalValue||e.value,s=(0,h.get)("rangesObject.range[0]",e),u=Math.max.apply(Math,(0,n.default)(s)),d=Math.min.apply(Math,(0,n.default)(s));if(s[0]!==d){var c=[t,a];a=c[0],t=c[1]}var p=void 0;if(l<=d)p=a;else if(l>=u)p=t;else{var f=(l-d)/(s[1]-s[0]);s[0]!==d&&(f=1-Math.abs(f)),p=(0,E.default)({r:r(i.r,o.r,f),g:r(i.g,o.g,f),b:r(i.b,o.b,f)}).toHexString()}!(0,h.isEmpty)(p)&&(e.color=p)}},{key:"splitSeriesByColor",value:function(e,t){if((0,h.isEmpty)(e))return[e];var a=e.name,n=(0,h.groupBy)(function(t){return"value"===(0,h.get)("rangesObject.type",t)?e.color:(0,E.default)(t.color).toHexString()},e.data);return(0,o.default)(n).map(function(i){var o=t?(0,m.getNameOfCellConfig)(i,t):null,l=(0,h.first)(n[i]),s=o||(l.pointOptionColor?l.formattedPointName:a);return(0,r.default)({color:i,name:s,metricName:a,data:n[i]},(0,h.omit)(["data","name","color"],e))})}}]),t}(f.default);t.default=_},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chartStyle=void 0,t.draw=function(e,t){var a=t.container,h=t.series,m=t.plotOptions.series,g=m.cursor,E=m.dataLabels.rotation,y=t.tooltip.formatter,v=t.izMultiLevel,T=t.commonActions,_=t.izendaSeriesConfig,S=t.izendaOptions,C=S.showSliceLabel,b=S.showValueLabel,N=a.clientWidth,A=a.clientHeight,R=(0,i.first)(h),O=R.data,I=R.display,D=void 0===I||I,P=O.height,L=(0,s.drawLegend)(e,t,N,A,n.MARGIN),M=L.remainingWidth,F=L.remainingHeight,k=L.topTranslate,x=L.leftTranslate,w=Math.round(M/c),B=2*w,U=M-(n.MARGIN.left+n.MARGIN.right+B),z=F-(n.MARGIN.top+n.MARGIN.bottom);if(U<=0||z<=0||(0,i.isEmpty)(O))return;var V=(0,o.addClipPath)(e,0,z),G=V.id,H=V.rect,Y=v&&(C||b),j=n.MARGIN.left+w+x,K=n.MARGIN.top+k,W="translate("+j+", "+K+")";(0,u.drawBackground)(e,N,A,U+B,z,"translate("+(j-w)+", "+K+")",t);var q=e.append("g").classed(n.LAYOUT_CLASSES.seriesGroup.class,!0).datum(n.LAYOUT_CLASSES.seriesGroup).attr("transform",W).append("g").classed("d3-series-0",!0).classed("d3-treemap-series",!0).attr("visibility",D?"visible":"hidden").attr("clip-path","url(#"+G+")"),Q=e.append("g").classed(n.LAYOUT_CLASSES.labelGroup.class,!0).datum(n.LAYOUT_CLASSES.labelGroup).attr("transform",W).attr("clip-path","url(#"+G+")").append("g").classed("d3-series-0",!0);r.treemap().size([U,z]).paddingInner(p).tile(r.treemapSquarify).paddingTop(function(e){return Y&&!e.data.isRoot?n.TREEMAP_BANNER_HEIGHT:0}).round(!0)(O);var X=(0,i.map)(function(e){return{point:e.data,serie:R,node:e,label:{rotation:(0,o.isLeafNode)(e,P)?E:0,width:e.x1-e.x0,height:e.y1-e.y0,x:e.x0,y:e.y0}}},O.descendants()),J=q.selectAll("rect").data(X).enter().append("rect").style("cursor",g);J.attr("x",function(e){var t=e.node;return t.x0}).attr("y",function(e){var t=e.node;return t.y0}).attr("width",function(e){var t=e.node;return t.x1-t.x0}).attr("height",function(e){var t=e.node;return t.y1-t.y0}).attr("fill",function(e){var t=e.point;return t.color}).attr("fill-opacity",1).classed("d3-treemap-parent",function(e){var t=e.node,a=e.point;return!(0,o.isLeafNode)(t,P)&&!a.isRoot}).classed("d3-treemap-root",function(e){var t=e.point;return t.isRoot}).classed("d3-treemap-leaf",function(e){var t=e.node;return(0,o.isLeafNode)(t,P)}).on("click.drilldown",function(e){return!v&&(0,o.onDrilldown)(e,R,T.onDrilldown)});var Z=q.selectAll(".d3-treemap-parent");Y?(q.selectAll(".d3-treemap-parent").clone(!0).classed("d3-treemap-background",!0).classed("d3-treemap-parent",!1).attr("x",function(e){var t=e.node;return t.x0}).attr("y",function(e){var t=e.node;return t.y0+n.TREEMAP_BANNER_HEIGHT-1}).attr("width",function(e){var t=e.node;return t.x1-t.x0}).attr("height",function(e){var t=e.node;return Math.max(0,t.y1-t.y0-n.TREEMAP_BANNER_HEIGHT+1)}),Z.classed("d3-treemap-banner",!0)):Z.remove();var $=(0,i.filter)(function(e){var t=e.node;return t.depth>0},X),ee=(0,d.drawTreemapLabels)(Q,$,t,U,z,P);(0,o.setLabelsClick)(Q.selectAll(".u_textLink"),_,(0,i.get)("commonActions.pointAction",t));var te=(0,i.get)("plotOptions.series.states.hover.enabled",t);D&&te&&(f(J,J,v,"hoverSlice"),f(ee,J,v,"hoverLabel"));(0,l.addTooltipContent)(this.baseOptions.tooltip,a,y,J,ee,n.MARGIN,k,x+w),e.selectAll(function(){return this.childNodes}).filter(function(){return"g"===this.tagName}).sort(function(e,t){return e["z-index"]-t["z-index"]}),(0,o.beginPlotAnimation)(H,U)};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(520));a(2610);var n=a(295),i=a(1),o=a(758),l=a(2616),s=a(2617),u=a(2618),d=a(2619);t.chartStyle="d3treemap";var c=200,p=1;function f(e,t,a,r){e.on("mouseover."+r,function(e){return h(e,t,n.HOVER_OPACITY,a)}).on("mouseout."+r,function(e){return h(e,t,1,a)})}function h(e,t,a,r){var i=e.node,o=e.point;t.filter(function(e){var t=e.node,a=e.point;return r?a===o||function(e,t){var a=e.parent;for(;a;){if(a===t)return!0;a=a.parent}return!1}(t,i):a.name===o.name}).transition().duration(n.TRANSITION_DURATION).attr("fill-opacity",a)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={D3:"D3"},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=T(a(14)),l=T(a(6)),s=T(a(2)),u=T(a(3)),d=T(a(7)),c=T(a(8)),p=a(0),f=T(p),h=a(1),m=T(a(10)),g=T(a(28)),E=T(a(30)),y=T(a(4)),v=T(a(12));function T(e){return e&&e.__esModule?e:{default:e}}var _=(0,y.default)()((i=n=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"renderMetric",value:function(e,a){var r=this,n=this.props,i=this.props.canDelete,l=function(){var e=r.props.onDeleteMetric;e&&e(a)},s={component:function(e){var t=(0,m.default)("pull-right",{"disabled-elm":!i}),r=e.isExpanded?v.default.getText("COMMON_LABEL_COLLAPSE"):v.default.getText("COMMON_LABEL_EXPAND");return f.default.createElement("div",{className:"left-header-metric"},f.default.createElement("div",{className:"inline-block",onClick:e.collapseToggle},f.default.createElement("i",{title:r,className:"icon-toggle"}),f.default.createElement("span",{className:"panel-title"},[v.default.getText("COMMON_LABEL_METRIC"),a+1].join(" "))),f.default.createElement("a",{title:v.default.getText("COMMON_LABEL_DELETE"),className:t,onClick:l},f.default.createElement("span",{className:"icon-cancel"})))}},u=(0,h.omit)((0,h.keys)(t.propTypes),n);return f.default.createElement(g.default,{key:a,header:s,collapsible:!0,initState:n.isExpanded},f.default.createElement(n.itemComponent,(0,o.default)({},u,{value:e,index:a})))}},{key:"render",value:function(){var e=this.props,t=e.dataSource,a=(0,m.default)("metrics",e.className),r=!e.canAdd||t.length>=e.maximumMetrics;return f.default.createElement("div",{className:a},t.map(this.renderMetric.bind(this)),f.default.createElement("div",{className:"metrics-footer"},f.default.createElement(E.default,{disabled:r,className:"pull-right",label:v.default.getText("COMPONENT_CONTROL_LABEL_ADD_METRIC"),onClick:function(){e.canAdd&&(e.maximumMetrics?t.length0?(0,m.fill)(0,t,null,Array(t)):new Array;return e.concat(r)}return null}),(0,m.take)(t.MaxColorCount),(0,m.chunk)(t.ColumnCount))(e).map(function(e,t){return p.default.createElement(h.default.Row,{key:t,className:"u_noMarginAll"},r.renderColorsCol(t,e))})},n=a,(0,u.default)(r,n)}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.selected,a=e.className,r=e.isDefaultTheme,n=e.localization,i=e.displaySettingStatus,o=(0,m.get)("model.displayName",this.props),l=i&&r,s=l?"("+n.getText("COLORPALETTE_DEFAULT")+")":"",u=(0,m.get)("model.colors",this.props),d=(0,E.default)("izenda-ColorPalette",a,{"izenda-ColorPalette-selected":t});return p.default.createElement(h.default,{className:d},p.default.createElement(h.default.Row,{className:"u_noMarginAll izenda-ColorPalette-InforRowContainer"},p.default.createElement("div",{className:"u_textTruncate",title:o+" "+s},o,l&&p.default.createElement("small",{className:"u_marginLeftInnerSpace"},s))),u&&p.default.createElement(h.default.Row,{className:"u_noMarginAll izenda-ColorPalette-ColorRowsContainer"},this.renderColorsRow(u)))}}]),t}(c.Component),n.MaxColorCount=12,n.ColumnCount=6,n.Cols=2,r=i))||r;t.default=v,e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,l=y(a(6)),s=y(a(2)),u=y(a(3)),d=y(a(7)),c=y(a(8)),p=a(0),f=y(p),h=y(a(13)),m=a(9),g=a(1),E=y(a(12));function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,m.observer)((o=i=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u"+i+"
"),t.forEach(function(t){var a=t.point||{},n=a.series.name,i=r.getFormatData(a.low||a.value,s[n],a.series.yData),o=r.getFormatData(a.high||a.value,s[n],a.series.yData);e.push(''+n+": "+i+" - "+o+"
")}),e.join("")}}}}if(l.range===f.RANGE_OPTION_KEYS.rangeWithAverage){var R=function(e){var t=[];return(0,h.forEach)(function(e){t=(0,h.concat)(function(e){var t=(0,h.assign)(e,{type:"line",zIndex:1,name:e.name+"_AVG",data:[]}),a=(0,h.assign)(e,{type:"arearange",lineWidth:0,linkedTo:":previous",name:e.name+"_Range",data:[],fillOpacity:.3,zIndex:0});return(0,h.map)(function(e){t.data.push((0,h.merge)({y:e.avg},e)),a.data.push((0,h.merge)({low:e.min,high:e.max},e))},e.data),[a,t]}(e),t)},e),t}(o.series);return{series:R,xAxis:o.xAxis,yAxis:(0,h.assignIn)(o.yAxis,{labels:{formatter:function(){return r.getFormatData(this.value,s[R[0].name],[100])}}}),tooltip:{crosshairs:!1,shared:!0,formatter:function(){var e=[],t=this.points||[this.point],a=t[0]||{},n=o.xAxis||{},i=[],l=0,u=r.getFormatData(a.key||a.name||a.x,s[n.axisName]);e.push(""+u+"
");for(var d=0;d●'+p+": "+f+"
")}}for(var m=0;m●'+E+": "+y+" - "+v+"
"),l+=1}}return e.join("")}}}}return l.spline?(0,h.assignIn)({chart:{type:"areaspline"}},o):o}}]),t}(c.default))||r;t.default=E,e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=y(a(953)),o=y(a(14)),l=y(a(6)),s=y(a(2)),u=y(a(3)),d=y(a(7)),c=y(a(133)),p=y(a(8)),f=y(a(541)),h=a(59),m=a(1),g=y(a(83)),E=a(5);function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,h.exportClass)("TreemapChartOptionsBuilder")(n=function(e){function t(){var e;(0,s.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n0&&0===h.length)throw new Error("All series are negative or null!");u={chart:{events:{click:null}},plotOptions:{series:{point:{events:{click:null}}}},series:s=[{data:h,levels:this.buildLevelsSetting(p,f),name:a.series.serieName,yAxisField:s.yAxisField}]}}return r.extend(!0,i,{plotOptions:{treemap:{layoutAlgorithm:"squarified",showInLegend:!0}}},u)}},{key:"parseAllSeries",value:function(e,t){if(!e)return[];var a=e.yAxisField,r=e.separatorField,n=e.separatorValue,i=e.serieName,l=function(e,t){return[].concat(t,e)};return function e(t,s,u){var d=(0,m.find)(function(e){return e.level===u},t),c=d.data,p=d.nameField,f=(0,m.get)("fieldNameAlias",p),h=(0,m.flow)((0,m.filter)(function(e){return!(0,m.isNil)(e.y)&&e.y>0}),(0,m.map)(function(e){return(0,o.default)({},e,{id:e.name+"_"+u+"_"+(0,m.getOr)("","groupId.path",e),value:e.y,yAxisField:a,nameField:p,labelName:f,separatorField:r,separatorValue:n,serieName:i})}))(c);if(0===u)return l(s,h);var g=u-1;return(0,m.find)(function(e){return e.level===g},t).data.forEach(function(e){var t=e.groupId.path,a=e.name;h.forEach(function(e){var r=(0,m.get)("groupId.path",e);r&&r.includesString(t)&&(e.parent=a+"_"+(u-1)+"_"+t)})}),e(t,s=l(s,h),g)}(e.data,[],t)}},{key:"buildLevelsSetting",value:function(e,t){return(0,i.default)(Array(e+1),function(e,a){return{level:a,dataLabels:{enabled:t}}})}}]),t}(f.default))||n;t.default=v,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=y(a(71)),o=y(a(6)),l=y(a(2)),s=y(a(3)),u=y(a(7)),d=y(a(8)),c=y(a(412)),p=y(a(83)),f=a(1),h=a(59),m=y(a(177)),g=y(a(105)),E=y(a(33));function y(e){return e&&e.__esModule?e:{default:e}}var v="labels",T="values",_="bubbleSize",S="valuesLabels",C=(0,h.exportClass)("BubbleChartOptionsBuilder")(n=function(e){function t(){var e;(0,l.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n0?l.parseMultiColorSeriesData(o,c,M,F):[l.getSerieOption.apply(l,[g.fieldNameAlias,M].concat(F))];function k(e,t,a){return"datetime"===a?(0,f.filter)(function(e){return!!E.default.getOriginalValue(t,e)},e):e}}(t.fieldsMapping,t.records,n,i,e)});return(0,f.compact)((0,f.flattenDeep)(o))}(t),N=function(e){var t=(0,f.first)(e),a={};return r("x"),r("y"),a;function r(e){var r=(0,f.get)(e+"Categories",t),n=e+"Axis",i=a[n]=a[n]||{};i.type=t[e+"AxisType"],r&&r.length&&(i.categories=r,i.tickPositioner=p.default.getCategoriesTicksPositioner())}}(b),A={series:b,yAxis:{labels:{formatter:p.default.getFormattedLabelAxis},plotLines:function(){var e=(0,f.get)("fieldName",g);return(0,f.get)(e+".threshold",d)}()},xAxis:{labels:{formatter:p.default.getFormattedLabelAxis},plotLines:(0,f.get)(h.fieldName+".threshold",d)}};return A.plotOptions=(0,f.merge)(A.plotOptions,{series:{colorByPoint:!1}}),A.yAxis=(0,f.merge)(A.yAxis,y),A.xAxis=(0,f.merge)(A.xAxis,C),p.default.setDefaultAxisName(A,a),this.configureRegression(d,b),r.extend(!0,A,N)}},{key:"getAxisData",value:function(e,t,a,r){switch(a){case"linear":return(0,f.toNumber)(e);case"datetime":return(e=(0,g.default)((0,f.get)("fieldFormatData",r),e,!1)).getTime?e.getTime():e;default:var n=t.obj=t.obj||{},i=t.arr=t.arr||[];return(0,f.has)(e,n)?n[e]:(n[e]=i.length,i.push(e),i.length-1)}}},{key:"getSerieOption",value:function(e,t,a,r,n,i,o,l,s,u,d,c){var h={name:e,data:t,xFieldName:n.fieldNameAlias,yFieldName:l.fieldNameAlias,xCategories:o.arr,yCategories:u.arr,xAxisType:i,yAxisType:s,xAxisField:n,yAxisField:l,zAxisField:r,nameField:a,nameFieldName:a.fieldNameAlias,bubbleFieldName:r.fieldNameAlias,dataLabels:{useHTML:!0,formatter:this.getDataLabelFormat}};return p.default.addPointActionLink(!0,d,h.dataLabels,a.fieldNameAlias,(0,f.get)(a.fieldNameAlias,c)),h}},{key:"getDataLabelFormat",value:function(){var e=p.default.getFormattedDataByPoint("name",this.point,!0);return(0,f.get)("data",e)}},{key:"parseMultiColorSeriesData",value:function(e,t,a,r){var n=this,o=(0,f.isNil)(e.colors)?t:e.colors,l=(0,f.flow)((0,f.map)(function(e){return(0,f.isNil)(e.name)?"null":e.name.toString()}),f.uniq)(a),s=(0,f.flow)((0,f.groupBy)("name"),f.toPairs,(0,f.map)(function(e){var t=e[0],a=e[1];return{key:t,value:n.getSerieOption.apply(n,[t,a].concat((0,i.default)(r)))}}))(a);return(0,f.map)(function(e,t){var a=(0,f.find)(function(t){return t.key===e},s).value;return(0,f.forEach)(function(e){return e.color=o[(t+1)%o.length]},a.data),a},l)}}]),t}(c.default))||n;t.default=C,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(1),n={string:{parseValue:function(e){return e?(0,r.toString)(e):null},isDefaultValue:function(e){return!e},defaultValue:(0,r.constant)("")},number:{parseValue:function(e){return(0,r.toNumber)(e)},isDefaultValue:function(e){return!e},defaultValue:(0,r.constant)(0)},boolean:{parseValue:function(e){switch((0,r.toLower)(e)){case"true":case"yes":case"1":return!0;default:return!1}},isDefaultValue:function(e){return!e},defaultValue:(0,r.constant)(!1)},array:{parseValue:function(e){return(0,r.isArray)(e)?e:JSON.parse(e)},isDefaultValue:function(e){return(0,r.isNil)(e)||(0,r.isEmpty)(e)},defaultValue:function(){return[]}},object:{parseValue:function(e){return e},isDefaultValue:function(e){return(0,r.isNil)(e)||(0,r.isEmpty)(e)},defaultValue:function(){return{}}}},i={name:{key:"name",path:"name",dataType:n.string},isFieldVisible:{key:"isFieldVisible",path:"properties.fieldItemVisible",dataType:n.boolean},function:{key:"function",path:"properties.dataFormattings.function",dataType:n.string},funcInfoId:{key:"funcInfoId",path:"properties.dataFormattings.functionInfo.id",dataType:n.string},funcName:{key:"funcName",path:"properties.dataFormattings.functionInfo.name",dataType:n.string},funcExpression:{key:"funcExpression",path:"properties.dataFormattings.functionInfo.expression",dataType:n.string},funcDataType:{key:"funcDataType",path:"properties.dataFormattings.functionInfo.dataType",dataType:n.string},funcFormatDataType:{key:"funcFormatDataType",path:"properties.dataFormattings.functionInfo.formatDataType",dataType:n.string},funcSyntax:{key:"funcSyntax",path:"properties.dataFormattings.functionInfo.syntax",dataType:n.string},funcExpressionSyntax:{key:"funcExpressionSyntax",path:"properties.dataFormattings.functionInfo.expressionSyntax",dataType:n.string},funcIsOperator:{key:"funcIsOperator",path:"properties.dataFormattings.functionInfo.isOperator",dataType:n.boolean},formatId:{key:"formatId",path:"properties.dataFormattings.format.formatId",dataType:n.string},format:{key:"format",path:"properties.dataFormattings.format.format",dataType:n.string},formatGroupBy:{key:"formatGroupBy",path:"properties.dataFormattings.format.groupBy",dataType:n.string},width:{key:"width",path:"properties.dataFormattings.width.value",dataType:n.number},fontFamily:{key:"fontFamily",path:"properties.dataFormattings.font.family",dataType:n.string},fontSize:{key:"fontSize",path:"properties.dataFormattings.font.size",dataType:n.number},fontBold:{key:"fontBold",path:"properties.dataFormattings.font.bold",dataType:n.boolean},fontItalic:{key:"fontItalic",path:"properties.dataFormattings.font.italic",dataType:n.boolean},fontUnderline:{key:"fontUnderline",path:"properties.dataFormattings.font.underline",dataType:n.boolean},fontColor:{key:"fontColor",path:"properties.dataFormattings.font.color",dataType:n.string},fontBackgroundColor:{key:"fontBackgroundColor",path:"properties.dataFormattings.font.backgroundColor",dataType:n.string},alignment:{key:"alignment",path:"properties.dataFormattings.alignment",dataType:n.string},wordWrap:{key:"wordWrap",path:"properties.dataFormattings.wordWrap",dataType:n.boolean},sort:{key:"sort",path:"properties.dataFormattings.sort",dataType:n.string,needDefaultValue:!0},textColorRangePercent:{key:"textColorRangePercent",path:"properties.dataFormattings.color.textColor.rangePercent",dataType:n.array},textColorRangeValue:{key:"textColorRangeValue",path:"properties.dataFormattings.color.textColor.rangeValue",dataType:n.array},textColorValue:{key:"textColorValue",path:"properties.dataFormattings.color.textColor.value",dataType:n.array},cellColorRangePercent:{key:"cellColorRangePercent",path:"properties.dataFormattings.color.cellColor.rangePercent",dataType:n.array},cellColorRangeValue:{key:"cellColorRangeValue",path:"properties.dataFormattings.color.cellColor.rangeValue",dataType:n.array},cellColorValue:{key:"cellColorValue",path:"properties.dataFormattings.color.cellColor.value",dataType:n.array},altTextRangePercent:{key:"altTextRangePercent",path:"properties.dataFormattings.alternativeText.rangePercent",dataType:n.array},altTextRangeValue:{key:"altTextRangeValue",path:"properties.dataFormattings.alternativeText.rangeValue",dataType:n.array},altValue:{key:"altValue",path:"properties.dataFormattings.alternativeText.value",dataType:n.array},customURL:{key:"customURL",path:"properties.dataFormattings.customURL.url",dataType:n.string},customURLOption:{key:"customURLOption",path:"properties.dataFormattings.customURL.option",dataType:n.string},embeddedJavascript:{key:"embeddedJavascript",path:"properties.dataFormattings.embeddedJavascript.script",dataType:n.string},subTotalLabel:{key:"subTotalLabel",path:"properties.dataFormattings.subTotal.label",dataType:n.string},subTotalFunction:{key:"subTotalFunction",path:"properties.dataFormattings.subTotal.function",dataType:n.string},subTotalExpression:{key:"subTotalExpression",path:"properties.dataFormattings.subTotal.expression",dataType:n.string},subTotalDataType:{key:"subTotalDataType",path:"properties.dataFormattings.subTotal.dataType",dataType:n.string},subTotalFormatId:{key:"subTotalFormatId",path:"properties.dataFormattings.subTotal.format.formatId",dataType:n.string},subTotalFormat:{key:"subTotalFormat",path:"properties.dataFormattings.subTotal.format.format",dataType:n.string},subTotalPreviewResult:{key:"subTotalPreviewResult",path:"properties.dataFormattings.subTotal.previewResult",dataType:n.string},subTotalFieldDataType:{key:"subTotalFieldDataType",path:"properties.dataFormattings.subTotal.fieldDataType",dataType:n.string},grandTotalLabel:{key:"grandTotalLabel",path:"properties.dataFormattings.grandTotal.label",dataType:n.string},grandTotalFunction:{key:"grandTotalFunction",path:"properties.dataFormattings.grandTotal.function",dataType:n.string},grandTotalExpression:{key:"grandTotalExpression",path:"properties.dataFormattings.grandTotal.expression",dataType:n.string},grandTotalDataType:{key:"grandTotalDataType",path:"properties.dataFormattings.grandTotal.dataType",dataType:n.string},grandTotalFormat:{key:"grandTotalFormat",path:"properties.dataFormattings.grandTotal.format.format",dataType:n.string},grandTotalFormatId:{key:"grandTotalDataType",path:"properties.dataFormattings.grandTotal.format.formatId",dataType:n.string},grandTotalPreviewResult:{key:"grandTotalPreviewResult",path:"properties.dataFormattings.grandTotal.previewResult",dataType:n.string},grandTotalFieldDataType:{key:"grandTotalFieldDataType",path:"properties.dataFormattings.grandTotal.fieldDataType",dataType:n.string},headerFontFamily:{key:"headerFontFamily",path:"properties.headerFormating.font.family",dataType:n.string},headerFontSize:{key:"headerFontSize",path:"properties.headerFormating.font.size",dataType:n.number},headerFontBold:{key:"headerFontBold",path:"properties.headerFormating.font.bold",dataType:n.boolean},headerFontItalic:{key:"headerFontItalic",path:"properties.headerFormating.font.italic",dataType:n.boolean},headerFormatingFontUnderline:{key:"headerFormatingFontUnderline",path:"properties.headerFormating.font.underline",dataType:n.boolean},headerFontColor:{key:"headerFontColor",path:"properties.headerFormating.font.color",dataType:n.string},headerFontBackgroundColor:{key:"headerFontBackgroundColor",path:"properties.headerFormating.font.backgroundColor",dataType:n.string},headerAlign:{key:"headerAlign",path:"properties.headerFormating.alignment",dataType:n.string},headerWordWrap:{key:"headerWordWrap",path:"properties.headerFormating.wordWrap",dataType:n.boolean},headerColumnGroup:{key:"headerColumnGroup",path:"properties.headerFormating.columnGroup",dataType:n.string},subReportSelReport:{key:"subReportSelReport",path:"properties.drillDown.subReport.selectedReport",dataType:n.string},subReportStyle:{key:"subReportStyle",path:"properties.drillDown.subReport.style",dataType:n.string},subReportReportPartUsed:{key:"subReportReportPartUsed",path:"properties.drillDown.subReport.reportPartUsed",dataType:n.string},subReportFilter:{key:"subReportFilter",path:"properties.drillDown.subReport.reportFilter",dataType:n.boolean},subReportMappingFields:{key:"subReportMappingFields",path:"properties.drillDown.subReport.mappingFields",dataType:n.array},subReportSelectedIconValue:{key:"subReportSelectedIconValue",path:"properties.drillDown.subReport.selectedIconValue.value",dataType:n.string},subReportSelectedIcon:{key:"subReportSelectedIcon",path:"properties.drillDown.subReport.selectedIconValue.icon",dataType:n.string},subReportViewSettingByLink:{key:"subReportSelectedIcon",path:"properties.drillDown.subReport.viewSettingByLink",dataType:n.boolean,needDefaultValue:!0},position:{key:"position",path:"position",dataType:n.number},fieldId:{key:"fieldId",path:"field.fieldId",dataType:n.string},fieldName:{key:"fieldName",path:"field.fieldName",dataType:n.string},fieldNameAlias:{key:"fieldNameAlias",path:"field.fieldNameAlias",dataType:n.string},dataFieldType:{key:"dataFieldType",path:"field.dataFieldType",dataType:n.string},querySourceId:{key:"querySourceId",path:"field.querySourceId",dataType:n.string},querySourceType:{key:"querySourceType",path:"field.querySourceType",dataType:n.string},sourceAlias:{key:"sourceAlias",path:"field.sourceAlias",dataType:n.string},relationshipId:{key:"relationshipId",path:"field.relationshipId",dataType:n.string},visible:{key:"visible",path:"field.visible",dataType:n.boolean},calculatedTree:{key:"calculatedTree",path:"field.calculatedTree",dataType:n.string},schemaName:{key:"schemaName",path:"field.schemaName",dataType:n.string},querySourceName:{key:"querySourceName",path:"field.querySourceName",dataType:n.string},databaseName:{key:"databaseName",path:"field.databaseName",dataType:n.string},isCalculated:{key:"isCalculated",path:"field.isCalculated",dataType:n.boolean},isDeleted:{key:"isDeleted",path:"isDeleted",dataType:n.boolean}},o=(0,r.assign)({fieldId:i.fieldId,querySourceId:i.querySourceId,dataFieldType:i.dataFieldType,sort:i.sort},{}),l=(0,r.assign)({fieldNameAlias:i.fieldNameAlias,name:i.name,fieldName:i.fieldName,querySourceType:i.querySourceType,sourceAlias:i.sourceAlias,schemaName:i.schemaName,querySourceName:i.querySourceName,databaseName:i.databaseName},{});t.default={FieldPropertiesPaths:i,InitialFieldPropertiesPaths:o,ExcludeOnHtmlViewPaths:l},e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=p(a(2)),i=p(a(3)),o=p(a(105)),l=p(a(339)),s=p(a(167)),u=p(a(333)),d=p(a(33)),c=a(1);a(60);p(a(764));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.default)(this,e),this.configField={},this.subTotalDom=null,this.type=null,this.setRepeaterLevel=null,this.name=null,this.subTotalDom=t.subTotalDom,this.name=t.name,this.type=t.type,this.configField=t.configField,this.repeaterLevel=t.repeaterLevel}return(0,i.default)(e,[{key:"isValidSubTotalSmartTag",get:function(){var e=(0,c.get)("fieldInfo.hasSubTotal",this.configField);return!(0,c.isEmpty)(this.configField)&&this.repeaterLevel<=this.configField.fieldInfo.repeaterLevel&&e}},{key:"isValidSubTotalSmartTagLevel",get:function(){return this.repeaterLevel<=(0,c.get)("configField.fieldInfo.repeaterLevel",this)}}]),(0,i.default)(e,[{key:"isFieldInvisible",value:function(e){return r(e).find("field-prop[key='isFieldVisible'][value='false']").length>0}},{key:"generateDateTimeSmartTag",value:function(e){return r("
"+e+"
").find("datetime").each(function(t,a){var n=r(a).text(),i=(0,o.default)(n,(0,l.default)());e=e.replace(r(a).get(0).outerHTML,i)}),e}},{key:"generateGrandTotalSmartTag",value:function(e,t,a,n){var i=this,o=r("
"+n+"
"),l=[];return r(o).find("grandtotal").each(function(n,s){var u=(0,c.find)({fieldNameAlias:(0,c.trim)(s.textContent)},t),p=i.validateGrandTotalSmartTag(u,o,s),f=(0,c.find)({fieldName:(0,c.get)("fieldNameAlias",u)},e),h=(0,c.get)("properties.dataFormattings.grandTotal.dataType",f),m=(0,c.get)("properties.dataFormattings.grandTotal.format",f),g=m&&d.default.applyFormater(h,m.format,a[0][u.columnName]);(0,c.isNil)(p)?l.push({dom:r(s).get(0).outerHTML,data:g||a[0][u.columnName]}):l.push({dom:r(s).get(0).outerHTML,data:p})}),(0,c.forEach)(function(e){n=n.replace(e.dom,e.data)},l),n}},{key:"validateSubTotalSmartTag",value:function(e,t,a){var n=r(a).text().trim(),i=void 0,o=r("
"+t+"
");if(r(o).find("field").each(function(e,t){r(t).text().trim()!==n||(i=t)}),(0,c.isNil)(i))return"<subtotal>"+n+"</subtotal>";if((0,c.isNil)(e))return this.isFieldInvisible(i)?"":String.format(s.default.MESSAGES.M06,n);if(this.isFieldInvisible(i))return"";var l=d(t,u.default.REPEATER_START,u.default.REPEATER_END);return!l&&(l=d(t,u.default.REPEATER_START_FORTABLE,u.default.REPEATER_END_FORTABLE)),l?null:String.format(s.default.MESSAGES.M07,n);function d(e,t,a){if(-1===e.indexOf(t))return!1;var n=r(i).get(0).outerHTML,o=e.lastIndexOf(t),l=e.indexOf(a,o)+a.length,s=e.substring(o,l);return r("
"+s+"
").get(0).outerHTML.indexOf(n)>-1||d(e.replace(s,""),t,a)}}},{key:"validateGrandTotalSmartTag",value:function(e,t,a){if(r(a).find("field").length>0)return s.default.MESSAGES.M13;var n=a.textContent,i=void 0;return r(t).find("field").each(function(e,t){(0,c.trim)(r(t).text())!==(0,c.trim)(n)||(i=t)}),(0,c.isNil)(i)?"<grandtotal>"+n+"</grandtotal>":(0,c.isNil)(e)?this.isFieldInvisible(i)?"":String.format(s.default.MESSAGES.M09,n):this.isFieldInvisible(i)?"":null}},{key:"updateGrandTotalHtml",value:function(e,t){var a=String.format("{0}",e);t.outerHTML=a}},{key:"updateSubTotalHtml",value:function(e,t){var a=String.format("{0}",e);t.outerHTML=a}},{key:"checkParallelInRepeater",value:function(e){return!(0,c.isNil)(e)&&(0,c.get)("childNodes.length",e)>1}},{key:"splitByPlacesHolders",value:function(e,t){var a=[];return(0,c.forEach)(function(t){if((0,c.isEmpty)(a))a=e.split(t);else{var r=[];(0,c.forEach)(function(e){r=(0,c.concat)(r,e.split(t))},a),a=r}},t),a}},{key:"validateSubTotalSmartTagInRepeater",value:function(e,t,a){var r=this,n=t;if(!(0,c.isNil)(e.placeHolderPattern)){var i=e.smartTagInContent;if((0,c.isEmpty)(e.placeHolderKey))n=this.validateBySubTotalDom(e.placeHolderPattern,i,n,a);else{var o=this.splitByPlacesHolders(e.placeHolderPattern,e.placeHolderKey);(0,c.forEach)(function(e){n=r.validateBySubTotalDom(e,i,n,a)},o),a=a||this.checkParallelInRepeater(e),(0,c.forEach)(function(e){n=r.validateSubTotalSmartTagInRepeater(e,n,a)},e.childNodes)}return n}}},{key:"validationSubTotalSmartTag",value:function(e,t){var a=(0,c.head)(t);return(0,c.isNil)(a)?e:this.validateSubTotalSmartTagInRepeater(a,e,!1)}},{key:"validateBySubTotalDom",value:function(e,t,a,n){var i=e;return this.getSubTotalsByHtml(e).each(function(e,o){var l=r(o).get(0).outerHTML,u=(0,c.find)(["name",(0,c.trim)(o.textContent)],t),d=(0,c.get)("configField.fieldInfo.hasSubTotal",u),p=(0,c.trim)(o.textContent),f=a.indexOf(i),h=i.length,m=l;switch(!0){case(0,c.isNil)((0,c.get)("configField.fieldInfo",u)):m="<subtotal>"+p+"</subtotal>";break;case!(0,c.get)("configField.fieldInfo.isVisible",u):m="";break;case u.configField.fieldInfo&&0===u.configField.fieldInfo.repeaterLevel:m=String.format(s.default.MESSAGES.M07,p);break;case n:m=s.default.MESSAGES.ERROR_MESSAGE_FOR_SUBTOTAL_IN_PARALLEL;break;case!u.isValidSubTotalSmartTagLevel:m=s.default.MESSAGES.ERROR_MESS_IN_LOW_LEVEL;break;case u.configField&&!d:m=String.format(s.default.MESSAGES.M06,p)}f<0||m===l||(i=i.replace(l,m),a=String.replaceAt(a,f,h,i))}),a}},{key:"getSubTotalsByHtml",value:function(e){var t=r("
"+e+"
");return r(t).find("subtotal")}}]),e}();t.default=f,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=y(a(90)),i=y(a(2)),o=y(a(3)),l=y(a(33)),s=y(a(333)),u=y(a(763)),d=y(a(34)),c=y(a(18)),p=y(a(394)),f=y(a(94)),h=y(a(390)),m=y(a(308)),g=y(a(41)),E=a(1);function y(e){return e&&e.__esModule?e:{default:e}}var v=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"showValue",value:function(e){return String.commonStringValue(e,g.default.advancedSettings.other.convertNullToEmptyStringValue)}},{key:"isDataContainImage",value:function(e){return null!=e&&(0,E.includes)("data:image",e)}},{key:"generateField",value:function(e,t,a,n,i,o,u,d,c){var p=this,h=r("
"+u+"
").find("field"),m=[],g=e.printingMode,y=e.reportPart,v=e.viewMode;if(!(0,E.isEmpty)(h)){var T="",_={},S=s.default.PAGE_BREAK_HTML,C={dataTree:i,fieldNameAliases:function(e){return(0,E.map)(function(e){return(0,E.trim)(r(e).text())},e)}(h)};return h.each(function(e,a){var r=(0,E.trim)(a.textContent),n=(0,E.find)({fieldNameAlias:r},t)||{},i=(0,E.find)({fieldName:r},o)||{},l=null;if((0,E.get)("isVisible",i)){var s=p.validateField(a,C);l=g||v||!s?{value:n.columnName,fieldInfo:i,index:e}:{error:s,index:e}}else l={invisible:!0,index:e};_[a.outerHTML]=l}),a.forEach(function(a,i){var o=u,s=r("
"+u+"
"),h=s.find("field");(0,E.mapKeys)(function(e){var n=_[e].error,f=_[e].fieldInfo;if(!(0,E.get)("invisible",_[e])&&(0,E.isNil)(n)&&f.properties){var g=_[e].value,v=l.default.getFieldValue(g,a);v.value=p.showValue(v.value);var T=u.indexOf(e),S=p.formatField({reportPartElm:f,columnName:g},v,d,i,y,a,t,c,T);n=S.newText,(0,E.isEmpty)(S.embeddedSubReports)||(m=m.concat(S.embeddedSubReports))}r(h.get(_[e].index)).replaceWith(n),o=s.html()},_),n&&n.pageBreakAfterEachEntry&&e.printingMode&&(o=f.default.replaceFormStyles(e,o),o+=S),T+=o}),(0,E.isEmpty)(a)&&(T=u,(0,E.mapKeys)(function(e){e=e.replace(//g,""),T=T.replace(e,"")},_)),{htmlContent:T,embeddedSubReports:m}}return{htmlContent:u,embeddedSubReports:m}}},{key:"formatField",value:function(e,t,a,r,n,i,o,l,s){var u=this,d=e.reportPartElm,f=[],h=d.properties,m=h.dataFormattings,g=d.previewDataType,y=(0,E.getOr)({},"drillDown.subReport",h),v=this.getTextWithFormat(m,t,g,e,i);if(y.selectedReport&&y.style===c.default.DRILL_DOWN_STYLE_OPTION_VALUES.embedded){var T=this.getSubReportQuery(d,i,o,a,n,l),_=this.applySubReportEmbedded(v,d,r);if((0,E.isBoolean)(T.success)&&!T.success)_=_+"
"+T.errors+"
";else p.default.readEmbededReportDef(n,d).forEach(function(e){var t=u.getSubReportObject(d,r,e.id,(0,E.omit)(["success"],T),e);_=_+'
',t.index=s,f.push(t)});v=_}else v=this.applyHyperLink(v,d,r);return{newText:v,embeddedSubReports:f}}},{key:"getTextWithFormat",value:function(e,t,a,r,n){var i=e.font,o=r.reportPartElm,s=(0,E.isObject)(t)?t:{value:t,originalValue:t},u=s.value,c=s.originalValue;if(h.default.isImage(o.field.dataFieldType)||this.isDataContainImage(u))return String.format("",u);var p={element:r,record:n},f=l.default.getConfigDataByRange(c,e.color.textColor,p),m=l.default.getConfigDataByRange(c,e.color.cellColor,p),y="";i.family!==d.default.defaultFontFamily&&(y+=String.format("font-family:{0};",i.family)),i.size!==d.default.defaultFontSize&&(y+=String.format("font-size:{0}px;",i.size)),y+=i.bold?"font-weight:bold;":"",y+=i.italic?"font-style:italic;":"",y+=i.underline?"text-decoration:underline;":"",y+=f?"color:"+f+";":"",y+=m?String.format("background-color:{0};",m):"";var v=l.default.getDataFormat(t,{alternativeText:e.alternativeText,fieldFormatData:e.format.format,fieldDataType:a},p);return''+(g.default.isRenderHtmlInReportViewer()?v:(0,E.escape)(v))+""}},{key:"applySubReportEmbedded",value:function(e,t,a){var r=t.properties,i='data-selectedfieldname="'+encodeURI((0,n.default)(t.fieldName))+'" data-recordIndex="'+a+'" data-hyperlinkaction="true" data-isCustomURL="true"',o=(0,E.get)("customURL",r),l=(0,E.get)("url",o)&&(0,E.get)("selectedIconValue.icon",o),s=l&&String.format('',l,i),u='data-selectedfieldname="'+encodeURI((0,n.default)(t.fieldName))+'" data-recordIndex="'+a+'" data-hyperlinkaction="true" data-isEmbeddedJavascript="true"',d=(0,E.get)("embeddedJavascript",r),c=(0,E.get)("script",d)&&(0,E.get)("selectedIconValue.icon",d);return[s,c&&String.format('',c,u)].join("")}},{key:"applyHyperLink",value:function(e,t,a){var r=t.properties,i=(0,E.get)("subReport",r),o=(0,E.get)("customURL",r),l=(0,E.get)("embeddedJavascript",r),s=t.numberOfPointActions,u='data-selectedfieldname="'+encodeURI((0,n.default)(t.fieldName))+'" data-recordIndex="'+a+'" data-hyperlinkaction="true"',d=!1,c=void 0;if(1===s)i.selectedReport&&(i.viewSettingByLink?d=!0:c=i.selectedIconValue.icon),o.url&&(o.viewSettingByLink?d=!0:c=o.selectedIconValue.icon),l.script&&(l.viewSettingByLink?d=!0:c=l.selectedIconValue.icon);else if(s>1)d=!0;else if(0===s)return e;return d?""+e+"":'"+e}},{key:"validateField",value:function(e,t){return u.default.validateField(e,t)}},{key:"updateContainerField",value:function(e,t){var a=r("
"+t+"
").find("field"),n=[];return a.length===e.length?null:(a.each(function(e,t){n.push({fieldName:t.textContent})}),(0,E.intersectionBy)("fieldName",e,n))}},{key:"getSubReportObject",value:function(e,t,a,r,n){return{id:a,reportPartDomId:["EmbededSubReport",t,a,e.position].join("_"),queryObject:r,reportPartDef:n,fieldInfo:e}}},{key:"getSubReportQuery",value:function(e,t,a,r,n,i){var o=e.properties,l=(0,E.get)("subReport",o),s=[t],u=m.default.buildFilterDataCommon(s,l.mappingFields,n);return u.success?m.default.buildFilterDataForEmbededReportPart(u.fieldMapping,n,l,i):u}}]),e}();t.default=v,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(48),n=a(36),i={SUPPORTED:{Datetime:[r.FUNCTION.GROUP,r.FUNCTION.GROUP_DAYS_OLD],DEFAULT:[r.FUNCTION.GROUP]}},o=[r.FUNCTION.GROUP,r.FUNCTION.GROUP_DAYS_OLD],l={};l[n.CHART_TYPE.SolidGauge]=l[n.CHART_TYPE.SolidGauge]=l[n.CHART_TYPE.SolidGauge]={values:{UNSUPPORTED:{DEFAULT:o}},threshold:{UNSUPPORTED:{DEFAULT:o}},separators:i},t.default={AVAILABLE_FUNCTION_CONFIG:l},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=m(a(6)),i=m(a(2)),o=m(a(3)),l=m(a(7)),s=m(a(8)),u=m(a(538)),d=m(a(83)),c=m(a(226)),p=(m(a(237)),a(1)),f=a(59),h=m(a(33));function m(e){return e&&e.__esModule?e:{default:e}}var g=(0,f.exportClass)("SolidGaugeOptionsBuilder")(r=function(e){function t(){var e;(0,i.default)(this,t);for(var a=arguments.length,r=Array(a),o=0;o"),r>1&&b.default.createElement("span",{onClick:function(t){return(0,A.partial)(e.onEndpointRemove,[t])}(o),className:"endpoint-tab-remove icon-cancel"}))}),b.default.createElement("div",{onClick:this.onEndpointAdd,className:"endpoint-tab-add",style:n(this.endpointModels.length)},b.default.createElement("div",{className:"icon-plus add-endpoint-icon"}),b.default.createElement("div",{className:"add-endpoint-label",style:{msGridRow:2}},O.default.getText("CONNECTION_STRING_BUILDER_ADD_ENDPOINT"))))}},{key:"renderBody",value:function(){var e=this.state.currentEndpoint;return(0,A.isNil)(e)?null:b.default.createElement(L.default,{endpointModel:e,cachingConfiguration:this.cachingConfiguration})}},{key:"render",value:function(){var e=this.state.isLoaded;return b.default.createElement(I.default,{visible:!0,onClosing:this.closePopup,type:"none",autoClose:!1,sizeClass:"modal-lg",turnOffBodyDrag:!0},b.default.createElement(I.default.Body,null,b.default.createElement("div",{className:"connection-string-builder-rest-wrapper"},b.default.createElement("div",{className:"connection-string-builder-header"},b.default.createElement("h4",{className:"modal-title u_floatLeft none"},O.default.getText("CONNECTION_STRING_BUILDER_REST_TITLE")),e&&this.renderPresets()),b.default.createElement("div",{className:"connection-string-builder-body-wrapper"},!e&&this.renderLoadingBar(),e&&b.default.createElement(D.default,null,b.default.createElement("div",{className:"connection-string-builder-body u_fullSize"},this.renderTabs(),this.renderBody()))))),b.default.createElement(I.default.Footer,null,b.default.createElement(I.default.ConfirmationButton,{type:"accept",disabled:!e},O.default.getText("COMMON_LABEL_OK")),b.default.createElement(I.default.ConfirmationButton,{type:"cancel",disabled:!e},O.default.getText("COMMON_LABEL_CANCEL"))))}}]),t}(C.Component),u.propTypes={connectionDetailStore:N.default.any,endpointModels:N.default.any},i=U((n=d).prototype,"endpointModels",[S.observable],{enumerable:!0,initializer:function(){return[]}}),o=U(n.prototype,"onEndpointAdd",[S.action],{enumerable:!0,initializer:function(){var e=this;return function(){var t=e.createNewEndpointInstance();t.endpointName=e.getNewEndpointName(),e.endpointModels.push(t),e.setState({currentEndpoint:t})}}}),l=U(n.prototype,"onEndpointSelect",[S.action],{enumerable:!0,initializer:function(){var e=this;return function(t){e.props.validation.reset(),e.setState({currentEndpoint:t})}}}),s=U(n.prototype,"onEndpointRemove",[S.action],{enumerable:!0,initializer:function(){var e=this;return function(t,a){a.stopPropagation(),e.endpointModels.remove(t),e.state.currentEndpoint===t&&e.setState({currentEndpoint:e.endpointModels[0]})}}}),r=n))||r;t.default=V,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m=b(a(17)),g=b(a(23)),E=b(a(2)),y=b(a(3)),v=a(5),T=a(549),_=b(T),S=b(a(12)),C=a(1);function b(e){return e&&e.__esModule?e:{default:e}}function N(e,t,a,r){a&&(0,m.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function A(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var R=(r=function(){function e(t,a,r,m){(0,E.default)(this,e),this.defaultCacheEnabled=!0,this.defaultCacheTtl=600,N(this,"endpointName",n,this),N(this,"address",i,this),N(this,"schemePath",o,this),N(this,"dataPath",l,this),N(this,"flattenArrays",s,this),N(this,"flattenObjects",u,this),N(this,"flattenDepth",d,this),N(this,"subColumnSeparator",c,this),N(this,"requestCacheEnabled",p,this),N(this,"requestCacheTtl",f,this),N(this,"request",h,this),this.requestCacheEnabled=t,this.requestCacheTtl=a,this.defaultCacheEnabled=r,this.defaultCacheTtl=m}return(0,y.default)(e,[{key:"composeConnectionString",value:function(){var e={},t=function(e,t,a,r){if((0,C.isNil)(a)||a===r)return null;e[t]=a};return t(e,"name",this.endpointName),t(e,"address",this.address),t(e,"datapath",this.dataPath),t(e,"schemapath",this.schemePath,""),t(e,"flattenarrays",this.flattenArrays,!0),t(e,"flattendepth",this.flattenDepth,4),t(e,"flattenobjects",this.flattenObjects,!0),t(e,"subcolumnseparator",this.subColumnSeparator,"."),t(e,"cacheenabled",this.requestCacheEnabled,this.defaultCacheEnabled),t(e,"cachettl",this.requestCacheTtl,this.defaultCacheTtl),this.request.headersCount>0&&(e.headers=[],(0,C.each)(function(t){t.name&&e.headers.push({name:t.name,value:t.value})},this.request.headers)),this.request.body&&t(e,"bodycontent",this.request.bodyBase64),e}},{key:"getValidationMessage",value:function(e){var t=this;if(!this.endpointName||!this.dataPath||!this.address)return S.default.getText("CONNECTION_STRING_BUILDER_REST_VALIDATION1");if(!e||e.length<2)return null;var a=(0,C.find)(function(e){return e!==t&&e.endpointName===t.endpointName},e);return(0,C.isNil)(a)?null:S.default.getText("CONNECTION_STRING_BUILDER_REST_VALIDATION2")}},{key:"applyPreset",value:function(e,t){t&&(this.endpointName=e.endpointName),this.address=e.address,this.dataPath=e.dataPath,this.schemePath=e.schemePath,this.flattenArrays=e.flattenArrays,4!==e.flattenDepth&&(this.flattenDepth=e.flattenDepth),this.flattenObjects=e.flattenObjects,"."!==e.subColumnSeparator&&(this.subColumnSeparator=e.subColumnSeparator),this.requestCacheEnabled=e.requestCacheEnabled,this.requestCacheTtl=e.requestCacheTtl,this.request.body=e.body||"",(0,C.isNil)(e.headers)||(this.request.headers=(0,C.map)(function(t){return new T.IzendaRequestHeader(!0,t,e.headers[t])},(0,C.keys)(e.headers||[])),this.request.addEmptyLastHeader())}},{key:"toPreset",value:function(){return{endpointName:this.endpointName,address:this.address,dataPath:this.dataPath,schemePath:this.schemePath,flattenArrays:this.flattenArrays,flattenDepth:this.flattenDepth,flattenObjects:this.flattenObjects,subColumnSeparator:this.subColumnSeparator,requestCacheEnabled:this.requestCacheEnabled,requestCacheTtl:this.requestCacheTtl,body:this.request.body,headers:(0,C.reduce)(function(e,t){return e[t.name]=t.value,e},{},this.request.headers)}}}]),e}(),n=A(r.prototype,"endpointName",[v.observable],{enumerable:!0,initializer:function(){return null}}),i=A(r.prototype,"address",[v.observable],{enumerable:!0,initializer:function(){return null}}),o=A(r.prototype,"schemePath",[v.observable],{enumerable:!0,initializer:function(){return null}}),l=A(r.prototype,"dataPath",[v.observable],{enumerable:!0,initializer:function(){return null}}),s=A(r.prototype,"flattenArrays",[v.observable],{enumerable:!0,initializer:function(){return!0}}),u=A(r.prototype,"flattenObjects",[v.observable],{enumerable:!0,initializer:function(){return!0}}),d=A(r.prototype,"flattenDepth",[v.observable],{enumerable:!0,initializer:function(){return null}}),c=A(r.prototype,"subColumnSeparator",[v.observable],{enumerable:!0,initializer:function(){return null}}),p=A(r.prototype,"requestCacheEnabled",[v.observable],{enumerable:!0,initializer:function(){return!0}}),f=A(r.prototype,"requestCacheTtl",[v.observable],{enumerable:!0,initializer:function(){return 600}}),h=A(r.prototype,"request",[v.observable],{enumerable:!0,initializer:function(){return new _.default([],"",T.IZENDA_REQUEST_BODY_LANGUAGES.TEXT)}}),A(r.prototype,"applyPreset",[v.action],(0,g.default)(r.prototype,"applyPreset"),r.prototype),r);t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=v(a(14)),l=v(a(6)),s=v(a(2)),u=v(a(3)),d=v(a(7)),c=v(a(8)),p=v(a(4)),f=a(0),h=v(f),m=v(a(32)),g=v(a(2867)),E=v(a(13)),y=a(1);function v(e){return e&&e.__esModule?e:{default:e}}var T=(0,p.default)()((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u1?n("Confirmation",{description:i[1]}).then(r.saveCustomQuerySource).catch(function(){r.processingSave=!1}):r.saveCustomQuerySource()}).catch(function(){r.processingSave=!1}):r.saveCustomQuerySource():("Name"===i[0].key?l.updateErrors(i):n("Information",{type:"error",description:i[0].messages[0],showCancel:!1,showCloseIndicator:!0}),r.processingSave=!1)}):r.processingSave=!1}):o()}},r.renderContainer=function(){var e=r.props.localization,t=r.customView,a=t.query,n=t.updateQuery,i=t.viewName,o=t.updateViewName;return d.default.createElement(h.default,null,d.default.createElement(h.default.Row,null,d.default.createElement(h.default.Col,{cols:2},e.getText("DATA_MODEL_LABEL_ADD_CUSTOM_VIEW_VIEW_NAME")),d.default.createElement(h.default.Col,{cols:10},d.default.createElement(_,{type:"text",field:"Name",value:i,onChange:o,validations:r.constraint,className:"form-control"}))),d.default.createElement(h.default.Row,null,d.default.createElement(h.default.Col,{cols:2},e.getText("DATA_MODEL_LABEL_ADD_CUSTOM_VIEW_DATABASE_NAME")),d.default.createElement(h.default.Col,{cols:10},r.renderDatabaseName())),d.default.createElement(h.default.Row,null,d.default.createElement(h.default.Col,{cols:2},e.getText("DATA_MODEL_LABEL_ADD_CUSTOM_VIEW_SCHEMA_NAME")),d.default.createElement(h.default.Col,{cols:10},r.renderSchemaName())),d.default.createElement(h.default.Row,null,d.default.createElement(h.default.Col,{cols:2},e.getText("DATA_MODEL_LABEL_ADD_CUSTOM_VIEW_QUERY")),d.default.createElement(h.default.Col,{cols:10},d.default.createElement(C,{rows:"15",value:a,onChange:n,validations:r.constraint,className:"form-control",field:"queryString"}))))},o=a,(0,l.default)(r,o)}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentWillMount",value:function(){var e=this.props,t=e.localization,a=e.detail,r=e.store;this.customView=new E.default(a),this.onChangeDatabase=this.customView.setDatabase.bind(this.customView),this.onChangeSchema=this.customView.setSchema.bind(this.customView),this.getDatabases=r.getDatabases.bind(r,this.customView),this.getSchemas=r.getSchemas.bind(r,this.customView),this.title=t.getText(a?"DATA_MODEL_LABEL_EDIT_CUSTOM_VIEW":"DATA_MODEL_LABEL_ADD_CUSTOM_VIEW"),this.constraint={presence:{presence:!0,message:t.getText("COMMON_CONSTRAINT_REQUIRED")}},this.processingSave=!1}},{key:"render",value:function(){var e=this.props.localization;return d.default.createElement(f.default,{visible:!0,autoClose:!1,onClosing:this.onClosing,type:"none",sizeClass:"modal-lg"},d.default.createElement(f.default.Header,{title:this.title}),d.default.createElement(f.default.Body,null,this.renderContainer()),d.default.createElement(f.default.Footer,null,d.default.createElement(f.default.ConfirmationButton,{type:"accept"},e.getText("DATA_MODEL_LABEL_ADD_CUSTOM_VIEW_SAVE_EXECUTE")),d.default.createElement(f.default.ConfirmationButton,{type:"cancel"},e.getText("COMMON_LABEL_CANCEL"))))}}]),t}(u.Component))||r;t.default=b,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=C(a(6)),i=C(a(2)),o=C(a(3)),l=C(a(7)),s=C(a(8)),u=a(0),d=C(u),c=C(a(13)),p=C(a(4)),f=C(a(96)),h=C(a(30)),m=C(a(191)),g=C(a(788)),E=C(a(182)),y=C(a(62)),v=C(a(44)),T=C(a(1345)),_=C(a(2899)),S=C(a(16));function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,p.default)(T.default)(r=function(e){function t(){var e,a,r,o;(0,i.default)(this,t);for(var s=arguments.length,u=Array(s),d=0;d10;return d.default.createElement(h.default,{visible:!0,type:"error",onClosing:e.onReject,autoClose:!1},d.default.createElement(h.default.Header,{title:g.default.getText("COMMON_MESSAGES_ERROR"),className:"u_floatLeft"}),d.default.createElement(h.default.Body,null,t?d.default.createElement("div",{className:"izenda-DefaultPopupContentWrapper"},d.default.createElement(p.default,null,this.renderBody())):this.renderBody()),d.default.createElement(h.default.Footer,null,d.default.createElement(h.default.ConfirmationButton,{type:"cancel"},g.default.getText("COMMON_LABEL_OK"))))}}]),t}(u.Component))||r;t.default=y,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(0),r=a(24),n=(a(5),a(9).observer,a(10),a(4)),i=a(28),o=a(169),l=a(26),s=a(240),u=a(2981),d=a(98),c=a(1),p=c.isEmpty;c.getOr;function f(e,a,r){var n=function(e,a){return function(r,n){return t.createElement(u,{key:r.id,node:r,showCheckbox:n,filter:e.filter.text,showIcon:a.showIcon})}}(e,r);if(!p(a.childNodes))return t.createElement(s,{className:"panel-group collapsible-list-items datasource",key:a.id,autoCollapse:!1,defaultExpand:!0},t.createElement(s.Item,{expanded:!0,key:a.id},t.createElement(s.ItemHeader,{className:"panel-heading"},n(a,!1)),t.createElement(s.ItemBody,{className:"panel-body"},t.createElement(o,{className:"list-group",key:a.id},a.childNodes.map(function(t){return f(e,t,r)})))));var i=a.parentNode||{},l=r.fieldLevel&&i.isFieldNode;return r.querySourceLevel&&i.isTypeGroup&&i.isTypeGroup()||l?n(a,!0):null}var h=t.createClass({displayName:"SourceTree",propTypes:{tree:t.PropTypes.object.isRequired,querySourceLevel:t.PropTypes.bool,fieldLevel:t.PropTypes.bool,showIcon:t.PropTypes.bool},render:function(){var e=this.props,a=e.tree;return t.createElement(i,{className:"workspace-tree"},function(e){var a=r.notifyChange;return t.createElement("div",{className:"search-box"},t.createElement(d,{value:e.filter.text,onChange:a(e.setFilter.bind(e),r.INPUT)}))}(a),t.createElement("div",{className:"workspace-tree-wraper"},t.createElement(l,null,a.root.map(function(t){return t.childNodes.map(function(t){return f(a,t,e)})}))))}});e.exports=n()(h)}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r},o=a(1);t.default={get CONSTRAINTS(){return{presence:{presence:!0,message:i.default.getText("CATEGORY_REQUIRED_NAME")}}},get CATEGORY_TREE(){return{CONSTRAINTS:{CATEGORY_NAME:{presence:{presence:!0,message:i.default.getText("CATEGORY_REQUIRED_NAME")}},SUB_CATEGORY_NAME:{presence:{presence:!0,message:i.default.getText("CATEGORY_REQUIRED_SUBCATEGORY")}}},MESSAGES:{M03:i.default.getText("CATEGORY_MESSAGES_CONFIRM_DELETE_CATEGORY"),M04:i.default.getText("CATEGORY_MESSAGES_CONFIRM_DELETE_SUBCATEGORY")}}},get ERROR_MESSAGE_TEMPLATE(){return(0,o.template)(i.default.getText("CATEGORY_ERROR_MESSAGE_TEMPLATE"))}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=N(a(14)),l=N(a(6)),s=N(a(2)),u=N(a(3)),d=N(a(7)),c=N(a(8)),p=a(0),f=N(p),h=N(a(13)),m=N(a(4)),g=N(a(112)),E=N(a(25)),y=N(a(3e3)),v=N(a(28)),T=a(46),_=N(a(19)),S=N(a(47)),C=N(a(29)),b=a(1);function N(e){return e&&e.__esModule?e:{default:e}}var A=(0,E.default)()(S.default),R=(0,E.default)()(C.default),O=(0,E.default)()(_.default),I=(0,m.default)()((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u0}(e,t.CollectionKey)},a)}return v.getLazyConnectionDetailInfo({tenantId:t.sourceId,defaultChecked:t.copyDataModel,loadField:!1,pageIndex:e.pageIndex,pageSize:e.pageSize}).then(m.action(function(e){if(!n(e.connections)){!t.fakeDataModels.connections&&(t.fakeDataModels.connections=[]);var o=function(e){for(var t=0;t=0;a--)this.workspaceMappings.splice(t[a],1);var r=this.mergeMapping();this.workspaceMappings=this.workspaceMappings.concat(r),this.selectedTenant=null}),G.prototype.mergeMapping=D.action(function(){var e=this.selectedTenant,t=e.dataMapping,a=[];return d(function(t){var n=r(function(a){return a.compare(t,e)},this.workspaceMappings),i=O(function(t){return!!O({tenantId:e.tenantId},t.workspaceMappingTenants)},n);if(i)1===i.workspaceMappingTenants.length&&(i.toDatabaseName=t.toDatabaseName,i.toObject=t.toObject);else if(n.length>0&&n[0]){var o=n[0].workspaceMappingTenants;!O({tenantId:e.tenantId},o)&&n[0].addMappingTenant(e.tenantId)}else t.addMappingTenant(e.tenantId),a.push(new x(t,this.mapppingDatabasesSource))}.bind(this),t),a}),G.prototype.splitMapping=D.action(function(){var e=this.selectedTenant,t=this.workspaceMappings,a=e.dataMapping,r=[],n=t.filter(function(t){return e&&!!O({tenantId:e.tenantId},t.workspaceMappingTenants)});return d(function(n){if(!O(function(t){return n.compare(t,e)},a)){var i=n.workspaceMappingTenants,o=O({tenantId:e.tenantId},n.workspaceMappingTenants);if(o&&1===i.length){var l=t.indexOf(n);r.push(l)}else if(o){var s=i.indexOf(o);i.splice(s,1)}}},n),r}),G.prototype.addWorkspaceMapping=function(){var e=new x;this.workspaceMappings.push(e)},G.prototype.getDataForSave=function(e){var t=D.toJS(this.workspaceTenants),a=D.toJS(this.copySchedule)||null;a&&(a.id&&0!==a.id.indexOf("newInstance_")||(a.id=i.EMPTY_GUID));var r={workspace:{id:e?null:this.id,name:this.name,description:this.description,tenantId:this.tenantId,ownerId:this.ownerId,created:this.created||null,createdBy:this.createdBy,deleted:this.deleted,modified:this.modified,modifiedBy:this.modifiedBy,copyDataModel:this.copyDataModel,copyPositionId:!!this.copyDataModel&&this.copyPositionId,copyFilterValues:!(!this.copyReport&&!this.copyDashboard)&&this.copyFilterValues,copyRoles:this.copyRoles,copyRolePermission:this.copyRolePermission,copyAdvancedSettings:this.copyAdvancedSettings,copyTenantPermissions:this.copyTenantPermissions,copyDashboard:this.copyDashboard,copyReport:this.copyReport,copyDataConnector:this.copyDataConnector,schedule:a,copySystemConfiguration:this.copySystemConfiguration,mergeDuplicateMappings:this.mergeDuplicateMappings,sourceId:this.sourceId,sourceHashCode:this.sourceHashCode,state:this.state||0,selectAllTenants:this.selectAllTenants,workspaceTenants:t.map(m(["sourceConnections","destinationConnections"])),workspaceMappings:this.workspaceMappings,copyOption:this.copyOption,copyOnlySettings:this.copyOnlySettings,copyAdvancedSettingOption:this.copyAdvancedSettingOption,copyDashboardOption:this.copyDashboardOption,copyReportOption:this.copyReportOption,copyTemplateOption:this.copyTemplateOption,copyTenantPermissionOption:this.copyTenantPermissionOption,copyRolePermissionOption:this.copyRolePermissionOption,copiedRoles:this.copyRoles?this.copiedRoles:[],copiedRolePermission:this.copyRolePermission?this.copiedRolePermission:[],copyEmailConfiguration:this.copyEmailConfiguration,copyGoogleMapConfiguration:this.copyGoogleMapConfiguration,copyReportConfiguration:this.copyReportConfiguration,allHashcodes:{advancedSettings:this.allHashcodes.advancedSettings||"",tenantPermission:this.allHashcodes.tenantPermission||"",roles:this.allHashcodes.roles||"",rolePermissions:this.allHashcodes.rolePermissions||"",dashboards:this.allHashcodes.dashboards||"",reports:this.allHashcodes.reports||"",templates:this.allHashcodes.templates||""},sourceDashboards:this.copyDashboard?this.sourceDashboards.categories:[]},selectedSources:this.omitProperties(this.mapppingDatabasesSource,"querySourceFields")};return this.copyReport&&(r.workspace.sourceReports=D.toJS(g("categories",this.sourceReports)),r.workspace.sourceTemplates=D.toJS(g("categories",this.sourceTemplates))),r},G.prototype.getAllDestinationConnection=function(){var e=[];return d(function(t){d(function(t){e.push(t.id)},t.destinationConnections)}.bind(this),this.workspaceTenants),e},G.prototype.getMatchedSourceTreeForRunCopy=D.action(function(e,t){var a=D.toJS(d(function(t){return d(function(t){return e.indexOf(t.id)>=0},t)},this.workspaceTenants));return t&&(a=r(function(e){return e.status===P.STATUS_OF_DESTINATION.READY_TO_COPY},a)),a.forEach(function(t){var a=O({id:t.tenantId},e);t.querySources=a?a.roles:t.destinationConnections,t.checked=!0,t.name=t.tenantName,t.querySources.forEach(function(e){e.checked=!0})}),this.runCopyDataModels=[{id:"all",name:"All",checked:!0,dbSource:{querySources:a}}],this.runCopyQuerySourceTree}),G.prototype.getSourceTreeTenantForRunCopy=D.action(function(e){var t=D.toJS(this.workspaceTenants);return t.forEach(function(t){e.indexOf(t.tenantId)>=0&&(t.checked=!0,t.name=t.tenantName)}),this.runCopyDataModels=[{id:"all",name:"All",checked:!0,dbSource:{querySources:t}}],this.runCopyQuerySourceTree}),G.prototype.getConflictingDashboardTree=D.action(function(e){return this.conflictingDashboardTree=o(e)?[]:{name:"All",id:"All",checked:!0,indeterminate:!1,tenants:c(function(e){return{name:e.tenantName,id:e.tenantId,checked:e.checked,indeterminate:!1,categories:c(function(e){return new w(e,!0)},e.categories)}},e)},this.conflictingDashboardTree}),G.prototype.getConflictingReportTree=D.action(function(e){return this.conflictingReportTree=o(e)?[]:{name:"All",id:"All",checked:!0,indeterminate:!1,tenants:c(function(e){return{name:e.tenantName,id:e.tenantId,checked:e.checked,indeterminate:!1,categories:c(function(e){return new w(e)},e.categories)}},e)},this.conflictingReportTree}),G.prototype.omitProperties=function(e,t){var a=D.toJS(e);return a.map(function(e){delete e.querySources,function e(a){c(function(a,r){delete a[t],!o(a.querySources)&&e(a.querySources)},a)}(e.dbSource.querySources)}),a},G.prototype.resetSelectedTenant=function(){this.selectedTenant=null},G.prototype.getDataModelForRunCopy=D.action(function(e,t,a){d(function(r){t?this[e][r.tenantId]=R(a)?a:r.checked:d(function(t){this[e][t.id]=R(a)?a:t.checked}.bind(this),r.querySources)}.bind(this),this.runCopyDataModels[0].dbSource.querySources)}),G.prototype.getDataDashboardsForRunCopy=D.action(function(e){this.copyDashboardOption={},d(function(t){d(function(t){d(function(t){d(function(t){this.copyDashboardOption[t.id]=!!p(e)&&t.checked}.bind(this),t.dashboards)}.bind(this),t.subCategories)}.bind(this),t.categories)}.bind(this),this.conflictingDashboardTree.tenants)}),G.prototype.getDataReportsForRunCopy=D.action(function(e,t){this[e]={},d(function(a){d(function(a){d(function(a){d(function(a){this[e][a.id]=!!p(t)&&a.checked}.bind(this),a.reports)}.bind(this),a.subCategories)}.bind(this),a.categories)}.bind(this),this.conflictingReportTree.tenants)}),G.prototype.findSelectedDatabase=function(e){return O({fullDatabaseKey:e},this.mapppingDatabasesSource)},G.prototype.findSelectedConnection=function(e){var t=this.selectedTenant||{};return O({fullDatabaseKey:e},t.databaseSources)},G.prototype.deleteDestinationTenant=D.action(function(e){var t=this.workspaceTenants.indexOf(e);this.workspaceTenants.splice(t,1),this.selectedDestinationTenantIDs=b(function(e){return e.tenantId},this.workspaceTenants).toString(),this.selectAllTenants=!1}),G.prototype.setSource=D.action(function(e){this.sourceId=e,this.isSystemSource&&(this.copyTenantPermissions=!1,this.copyRoles=!1),this.resetDataSourceForCopy()}),G.prototype.populateRolesAndPermissions=function(e){this.roleList=c(function(e){var t=!!O(function(t){return t===e.id},this.copiedRoles);return{id:e.id,name:e.name,checked:t}}.bind(this),e.data),this.allHashcodes.roles=e.roleHashcode||"",this.allHashcodes.rolePermissions=e.permissionHashcode||""},G.prototype.selectAllRole=D.action(function(e){this.copiedRoles=[],this.roleList.forEach(function(t){t.checked=e,e&&this.copiedRoles.push(t.id)}.bind(this))}),G.prototype.selectedRoleCopy=D.action(function(e,t,a){this.copiedRoles=[],this.copiedRolePermission=[],d(function(e){e.id===t&&(e.checked=a),e.checked&&(this.copiedRoles.push(e.id),this.copyRolePermission&&this.copiedRolePermission.push(e.id))}.bind(this),e),this.markDirty()}),G.prototype.setCopySchedule=D.action(function(e){this.copySchedule=e,this.markDirty()}),G.prototype.setCopyRolePermissions=D.action(function(e){this.copyRolePermission=e,this.copyRolePermission?d(function(e){this.copiedRolePermission.push(e)}.bind(this),this.copiedRoles):this.copiedRolePermission=[],this.markDirty()}),G.prototype.resetValueForRunCopy=D.action(function(){this.copyOption={},this.copyAdvancedSettingOption={},this.copyDashboardOption={},this.copyReportOption={},this.copyTenantPermissionOption={},this.copyRolePermissionOption={}}),G.prototype.setCanRunCopyStatus=D.action(function(e){this.canRunCopy=e}),G.prototype.checkHasSelectedConflictingItem=function(e){return u(function(e){return!0===e},e)},G.prototype.getSelectedQuerySources=function(){var e={};return function t(a){d(function(a){if(a.checked){e[a.id]=a.name;var r=a.dbSource?a.dbSource.querySources:a.querySources;t(r)}},a)}(this.sourceConnections),e},G.prototype.populateCheckedQuerySources=D.action(function(e,t){!function e(a){d(function(a){if(t[a.id]===a.name){a.checked=!0;var r=a.dbSource?a.dbSource.querySources:a.querySources;e(r)}},a)}(e),this.readSourceConnections(e)}),G.prototype.updateMappingData=D.action(function(e){(e=e||this.selectedTenant).dataMapping.forEach(function(t){if(t.type===P.MAPPING_TYPE.Database){var a=this.findSelectedDatabase(t.fromDatabaseKey);a&&o(t.fromObject)&&(t.fromObject=a.name);var r=O({fullDatabaseKey:t.toDatabaseKey},e.databaseSources);r&&o(t.toObject)&&(t.toObject=r.name)}}.bind(this))}),G.prototype.setHashCodeForReports=D.action(function(e,t){this.allHashcodes.reports=e,this.allHashcodes.templates=t}),G.prototype.getSourceReportsPrev=D.action(function(){this.sourceReportsPrev.push({id:this.sourceReports.id,checked:this.sourceReports.checked}),d(function(e){this.sourceReportsPrev.push({id:e.id,checked:e.checked}),d(function(e){this.sourceReportsPrev.push({id:e.id,checked:e.checked}),d(function(e){this.sourceReportsPrev.push({id:e.id,checked:e.checked})}.bind(this),e.reports)}.bind(this),e.subCategories)}.bind(this),this.sourceReports.categories)}),G.prototype.getSourceTemplatesPrev=D.action(function(){this.sourceTemplatesPrev.push({id:this.sourceTemplates.id,checked:this.sourceTemplates.checked}),d(function(e){this.sourceTemplatesPrev.push({id:e.id,checked:e.checked}),d(function(e){this.sourceTemplatesPrev.push({id:e.id,checked:e.checked}),d(function(e){this.sourceTemplatesPrev.push({id:e.id,checked:e.checked})}.bind(this),e.reports)}.bind(this),e.subCategories)}.bind(this),this.sourceTemplates.categories)}),G.prototype.getSourceDashboardsPrev=D.action(function(){this.sourceDashboardsPrev.push({id:this.sourceDashboards.id,checked:this.sourceDashboards.checked}),d(function(e){this.sourceDashboardsPrev.push({id:e.id,checked:e.checked}),d(function(e){this.sourceDashboardsPrev.push({id:e.id,checked:e.checked}),d(function(e){this.sourceDashboardsPrev.push({id:e.id,checked:e.checked})}.bind(this),e.dashboards)}.bind(this),e.subCategories)}.bind(this),this.sourceDashboards.categories)}),G.prototype.resetPrevData=D.action(function(){this.sourceReportsPrev=[],this.sourceTemplatesPrev=[]}),G.prototype.resetDashboardPrevData=D.action(function(){this.sourceDashboardsPrev=[]}),G.prototype.resetDataSourceForCopy=D.action(function(){this.resetCopyReportSource(),this.resetCopyDashboardSource()}),G.prototype.updateQuerySourceTree=D.action(function(){var e=this.querySourceTree.querySources,t=this.copyDataModel;d(function(e){e.checked=t,d(function(e){e.checked=t,d(function(e){e.checked=t,d(function(e){e.checked=t},e.querySourceFields)},e.querySources)},e.dbSource.querySources)},e)}),G.prototype.setHashCodeForDashboards=D.action(function(e){this.allHashcodes.dashboards=e}),G.prototype.resetWorkspaceTenantsStatus=D.action(function(e){var t=e||this.selectedTenant;t?(t.setDirty(),t.readSourceConnections(this.mapppingDatabasesSource)):this.workspaceTenants.forEach(function(e){e.setDirty(),e.readSourceConnections(this.mapppingDatabasesSource)}.bind(this)),this.alertMessage.message="",this.markDirty()}),k(G),e.exports=G}()},function(e,t,a){"use strict";!function(){var t=a(1).forEach;e.exports={updateDataSoucreBasedOnLinkedReport:function(e){var a=0;return t(function(e){var r=0;t(function(e){r+=e.belongToCopiedReport},e.querySources),e.belongToCopiedReport=r>0,a+=r},e.dbSource.querySources),e.belongToCopiedReport=a>0,a>0}}}()},function(e,t,a){"use strict";!function(){var t=a(1),r=t.uniqueId,n=t.map,i=t.split,o=t.toLower,l=t.find,s=a(5),u=a(112),d=a(63),c=a(3042);function p(e,t,a){var i={uniqueId:r,workspaceId:null,fromDatabaseName:"",type:u.MAPPING_TYPE.Schema,fromObject:"",fromServer:"",fromDatabaseUser:"",toDatabaseName:"",toObject:"",toServer:"",toDatabaseUser:"",isGlobal:!1,id:null,inserted:!1,version:null,created:null,createdBy:null,modified:null,modifiedBy:null,workspaceMappingTenants:[],fromDatabaseKey:function(){return this.fromDatabaseName+" - "+this.fromServer+" - "+this.fromDatabaseUser},toDatabaseKey:function(){return this.toDatabaseName+" - "+this.toServer+" - "+this.toDatabaseUser},mappingTenantIds:function(){return n(function(e){return e.tenantId},this.workspaceMappingTenants).toString()}};s.extendObservable(d(this),i),e&&this.readWorkspaceMapping(e,t,a)}p.prototype.readWorkspaceMapping=s.action(function(e,t,a){this.workspaceId=e.workspaceId||null,this.fromDatabaseName=e.fromDatabaseName||"",this.type=e.type||u.MAPPING_TYPE.Schema,this.fromObject=this.getFromObject(e,t),this.fromServer=e.fromServer,this.fromDatabaseUser=e.fromDatabaseUser,this.toDatabaseName=e.toDatabaseName||"",this.toObject=this.getToObject(e,a),this.toServer=e.toServer,this.toDatabaseUser=e.toDatabaseUser,this.isGlobal=e.isGlobal||!1,this.id=e.id||null,this.inserted=e.inserted||!1,this.version=e.version||null,this.created=e.created||null,this.createdBy=e.createdBy||null,this.modified=e.modified||null,this.modifiedBy=e.modifiedBy||null,this.workspaceMappingTenants=n(function(e){return new c(e)},e.workspaceMappingTenants)}),p.prototype.getFromObject=function(e,t){if(!e.fromObject&&this.type===u.MAPPING_TYPE.Database){var a=l({fullDBName:e.fromDatabaseName,databaseServer:e.fromServer,databaseUser:e.fromDatabaseUser},t);return a?a.name:""}return e.fromObject||""},p.prototype.getToObject=function(e,t){if(!e.toObject&&this.type===u.MAPPING_TYPE.Database){var a=l({fullDBName:e.toDatabaseName,databaseServer:e.toServer,databaseUser:e.toDatabaseUser},t);return a?a.name:""}return e.toObject||""},p.prototype.updateMappingTenant=s.action(function(e){var t=i(",",e),a=this.workspaceId;this.workspaceMappingTenants=n(function(e){return new c({tenantId:e,workspaceId:a})},t)}),p.prototype.checkDatabaseName=function(e,t){l({fullDBName:this[t]},e)||(this[t]=e[0].fullDBName)},p.prototype.checkDataObject=function(e){l({name:this.fromObject},e)||(this.fromObject=e[0].name)},p.prototype.compare=function(e,t){return this.workspaceId===e.workspaceId&&this.fromDatabaseName===e.fromDatabaseName&&this.type===e.type&&this.fromObject===e.fromObject&&(o(this.toObject)===o(e.toObject)||o(this.toObject).indexOf(u.TENANT_TOKEN)>-1&&o(e.toObject).replace(t.tenantUniqueName,u.TENANT_TOKEN)===o(this.toObject)||o(this.toObject).indexOf(u.TENANT_NAME_TOKEN)>-1&&o(e.toObject).replace(t.name,u.TENANT_NAME_TOKEN)===o(this.toObject))},p.prototype.addMappingTenant=function(e){!l({tenantId:e},this.workspaceMappingTenants)&&this.workspaceMappingTenants.push({workspaceMappingId:this.id,tenantId:e})},e.exports=p}()},function(e,t,a){"use strict";!function(){var t=a(1).isNil;e.exports=function(e){e=e||{},this.id=e.id,this.tenantID=e.tenantID,this.name=e.name,this.displayValue=t(this.tenantID)?this.name:String.format("{0} - {1}",this.tenantID,this.name)}}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f;r=a(0),n=a(24),i=a(10),o=a(9).observer,l=a(25),s=a(19),u=l()(a(19)),d=l()(a(115)),c=a(15),p=a(127).REQUIRE_CONSTRAINTS,f=a(1).assign,e.exports=o(function(e){var t,a,o=e.type,l=i({"validation required":e.isRequired});return r.createElement(c.Row,null,r.createElement(c.Col,{cols:3},r.createElement("label",{className:l},e.title)),r.createElement(c.Col,{cols:9},(t=s,a={className:"form-control",type:e.type,value:e.value,maxLength:256,onChange:n.notifyChange(h,n.INPUT)},e.isRequired&&(t=u,a=f(a,{field:e.dataKey,validations:p})),"checkbox"===o?r.createElement(s,{checked:e.value,type:"checkbox",onChange:n.notifyChange(h,n.CHECKBOX)}):"numeric"===o?r.createElement(d,{value:e.value,onChange:h,field:e.dataKey,validations:p}):r.createElement(t,a))));function h(t){e.onChange(e.dataKey,t)}})},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=M(a(14)),l=a(20),s=M(a(6)),u=M(a(2)),d=M(a(3)),c=M(a(7)),p=M(a(8)),f=a(0),h=M(f),m=M(a(13)),g=a(5),E=M(a(4)),y=M(a(79)),v=M(a(16)),T=M(a(32)),_=a(165),S=M(a(1352)),C=M(a(3102)),b=M(a(28)),N=M(a(68)),A=M(a(151)),R=a(127),O=M(a(152)),I=M(a(3122)),D=M(a(387)),P=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(519)),L=a(1);M(a(12));function M(e){return e&&e.__esModule?e:{default:e}}var F="cancel",k="accept",x=(0,E.default)()((i=n=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return a.onClosing=function(e,t){switch(t){case k:a.onAcceptClosing();break;case F:a.onCancelClosing()}},a.cloneData(),a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentWillReceiveProps",value:function(){this.cloneData()}},{key:"cloneData",value:function(){var e=this,t=this.props.data;(0,g.transaction)(function(){e.subscriptionData=new O.default((0,L.cloneDeep)(t),t.emailTemplates,t.reportFilter),e.subscriptionData.updateProperty("subscriptionFilterFields",t.subscriptionFilterFields&&(0,L.cloneDeep)(D.default.toJS(t.subscriptionFilterFields))),e.subscriptionData.updateProperty("subscriptionCommonFilterFields",t.subscriptionCommonFilterFields&&(0,L.cloneDeep)(D.default.toJS(t.subscriptionCommonFilterFields))),e.subscriptionData.cleanDirty()})}},{key:"getTitle",value:function(){var e=this.props.localization,t=this.subscriptionData,a=t.isSubscription,r=t.isEdit;return a?r?e.getText("DASHBOARD_SUBSCRIPTION_CONSTANTS_PAGE_TEXT_EDIT"):e.getText("DASHBOARD_SUBSCRIPTION_CONSTANTS_PAGE_TEXT_ADD"):r?e.getText("DASHBOARD_SCHEDULING_CONSTANTS_PAGE_TEXT_EDIT"):e.getText("DASHBOARD_SCHEDULING_CONSTANTS_PAGE_TEXT_ADD")}},{key:"validateOccurrence",value:function(){var e=this.props.validation;if(this.subscriptionData.isEndAfter){var t=parseInt(this.subscriptionData.occurrence,10);if(!t)return e.updateErrors([{key:"occurrence",messages:[A.default.MESSAGE.requiredOccurrence]}]),(0,l.resolve)(!1);this.subscriptionData.occurrence=t}return(0,l.resolve)(!0)}},{key:"validatePermissions",value:function(){var e={success:!0,errors:[]};if(this.subscriptionData.deliveryType===A.default.DELIVERY_TYPE[0].value){var t=this.subscriptionData,a=t.deliveryMethod,r=t.exportAttachmentType,n=P.filterAllowedSubscriptionDeliveryMethods(A.default.DELIVERY_TYPE[0].deliveryMethod,this.subscriptionData.deliveryType,A.default.EXPORT_TYPE);if((0,L.find)({value:a},n)||(e.success=!1,e.errors.push({message:String.format(A.default.MESSAGE.deliveryTypeNoPermission,a)})),"Attachment"===a){var i=P.filterAllowedSubscriptionAttachmentTypes(A.default.EXPORT_TYPE);(0,L.find)({value:r},i)||(e.success=!1,e.errors.push({message:String.format(A.default.MESSAGE.attachmentTypeNoPermission,r)}))}}else{var o=this.subscriptionData.exportFileType,l=P.filterAllowedSubscriptionExportFileTypes(A.default.EXPORT_TYPE);(0,L.find)({value:o},l)||(e.success=!1,e.errors.push({message:String.format(A.default.MESSAGE.fileTypeNoPermission,o)}))}return e}},{key:"validateSubscription",value:function(e){var t=this;return this.props.validation.validate().then(function(a){return a?t.validateOccurrence().then(function(a){return a?e?t.checkDuplicateInstanceName(e):(0,l.resolve)(!0):(0,l.resolve)(!1)}):a})}},{key:"checkDuplicateInstanceName",value:function(e){var t=this,a=this.props,r=a.validation,n=a.dashboardDetail,i=(0,L.get)("dashboard.commonFilterFields",n);if(this.props.onCheckDuplicateInstanceName(this.subscriptionData))return r.updateErrors([{key:"name",messages:[A.default.MESSAGE.M05]}]),(0,l.resolve)(!1);var o=n&&i.toJSON();return this.props.onValidateSubscription(this.subscriptionData,o).then(function(a){if(a.success){var n=t.subscriptionData.id;e&&t.subscriptionData.buildDataForSaving(),t.subscriptionData.populate(a.subscription,t.subscriptionData.emailTemplates,t.subscriptionData.reportFilter);var i=(0,L.get)("subscription",a);if(i&&i.state===N.default.INSERT&&(t.subscriptionData.id=n),t.subscriptionData.markDirty(),a.subscription.isStartDateAdjusted&&e)return t.props.confirmMessage("warning",A.default.MESSAGE.M06).then(function(){return(0,l.resolve)(!1)})}if(!a.success){var o=(0,L.map)(function(e){return e.key},a.messages);return t.handleRedirectTabWhenError(o),r.updateErrors(a.messages),(0,l.resolve)(!e)}return r.updateErrors(a.messages),(0,l.resolve)(a.success)})}},{key:"handleRedirectTabWhenError",value:function(e){var t=this.refs.tabs.props.activeTabKey;this.isAllErrorInSet([A.default.FIELD_KEY.Recipients],e)&&t!==A.default.DELIVERY_TAB.key?this.setActiveTab(A.default.DELIVERY_TAB.key):this.isAllErrorInSet([A.default.FIELD_KEY.StartDate,A.default.FIELD_KEY.StartTime,A.default.FIELD_KEY.EndDate],e)&&t!==A.default.SCHEDULER_TAB.key&&this.setActiveTab(A.default.SCHEDULER_TAB.key)}},{key:"isAllErrorInSet",value:function(e,t){var a=!0;return(0,L.forEach)(function(t){if(-1===(0,L.findIndex)(function(e){return e===t},e))return a=!1,!1},t),a}},{key:"setActiveTab",value:function(e){this.subscriptionData.setCurrentTab(e)}},{key:"onAcceptClosing",value:function(){var e=this,t=this.props,a=this.props.validation,r=this.subscriptionData,n=this.validatePermissions();if(!n.success)return t.confirmMessage("error",(0,L.map)("message",n.errors).join(", ")),void(this.subscriptionData.currentTab!==A.default.DELIVERY_TAB.key&&this.subscriptionData.setCurrentTab(A.default.DELIVERY_TAB.key));y.default.isHavemailConfiguration(v.default.tenantId).then(function(n){if(!n.success&&r.deliveryType===(0,L.head)(A.default.DELIVERY_TYPE).value)return t.confirmMessage("error",n.message);e.validateSubscription(!0).then(function(n){return n&&e.validateEmailFormat()&&(t.onSave(r),a.reset(),t.onAccept(r)),n})})}},{key:"validateEmailFormat",value:function(){var e=this.props.validation,t=(0,L.split)(";",this.subscriptionData.recipients),a=[];return(0,L.forEach)(function(e){e&&!R.EMAIL_VALIDATION.REGEX.test(e)&&a.push(e)},t),!!(0,L.isEmpty)(a)||(e.updateErrors([{key:A.default.FIELD_KEY.Recipients,messages:[R.EMAIL_VALIDATION.MESSAGE(a)]}]),!1)}},{key:"onCancelClosing",value:function(){this.props.validation.reset(),this.props.onReject()}},{key:"render",value:function(){var e=this,t=this.subscriptionData,a=this.props.localization;return h.default.createElement(T.default,{visible:!0,onClosing:this.onClosing,autoClose:!1,type:"none",sizeClass:"modal-xs"},h.default.createElement(T.default.Header,{title:this.getTitle()}),h.default.createElement(T.default.Body,null,h.default.createElement("div",{className:"subscription"},h.default.createElement("div",{className:"form-horizontal"},h.default.createElement(I.default,{data:t}),h.default.createElement("hr",{className:"izenda-full-hr"}),h.default.createElement(b.default,{className:"panel-header-custom"},h.default.createElement(_.Tabs,{ref:"tabs",activeTabKey:t.currentTab,className:"left-tab",canChangeTab:function(t,a,r,n){return e.validateSubscription().then(function(t){return t&&e.subscriptionData.setCurrentTab(n),!1})}},h.default.createElement(_.Tab,{title:a.getText("SUBSCRIPTION_LABEL_SCHEDULE"),tabKey:A.default.SCHEDULER_TAB.key},h.default.createElement(S.default,{data:t,onValidateSubscription:this.props.onValidateSubscription})),h.default.createElement(_.Tab,{title:a.getText("SUBSCRIPTION_LABEL_DELIVERY"),tabKey:A.default.DELIVERY_TAB.key},h.default.createElement(C.default,(0,o.default)({},this.props,{data:t})))))))),h.default.createElement(T.default.Footer,null,h.default.createElement(T.default.ConfirmationButton,{type:"accept"},a.getText("COMMON_LABEL_OK")),h.default.createElement(T.default.ConfirmationButton,{type:"cancel"},a.getText("COMMON_LABEL_CANCEL"))))}}]),t}(f.Component),n.propTypes={data:m.default.object},r=i))||r;t.default=x,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=S(a(14)),l=a(20),s=S(a(6)),u=S(a(2)),d=S(a(3)),c=S(a(7)),p=S(a(8)),f=a(0),h=S(f),m=a(9),g=(S(a(5)),S(a(338))),E=S(a(1362)),y=S(a(284)),v=S(a(3103)),T=S(a(12)),_=a(1);function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,m.observer)((i=n=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));a.showFilter=function(){return a.store.model.reportFilter.configFieldList.length>0&&(0,_.filter)(function(e){return"..."!==e.filterInfo.operator.name},a.store.model.reportFilter.configFieldList).length>0};var r=e.dashboardDetail,n=e.data,i=e.reportState;a.store=null;var o=null;if(r)a.store=new E.default(r),o=n.subscriptionCommonFilterFields,a.store.getFilterData(null,o).then(function(){var e=a.props.data,t=n.subscriptionCommonFilterFields,r=(0,_.get)("store.model.reportFilter.configFieldList",a),i=(0,_.get)("store.filters",a);0==t.length&&a.initDefaultFilters(e,r,!0,i)});else{var d=new y.default;a.store=new g.default(d,!0,i),a.store.reportStore.model.reportId=n.reportId,o=n.subscriptionFilterFields,(e.reportFilter?(0,l.resolve)(e.reportFilter).then(function(e){return a.store.model.reportFilter.populateFilterList(e.filterFields),e.filterFields}):a.store.loadReportFilter()).then(function(e){a.store.getFilterData(null,o).then(function(){var t=a.store.model.reportFilter.configFieldList,r=a.props.data;0==n.subscriptionFilterFields.length&&a.initDefaultFilters(r,t,!1,e)})})}return a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"initDefaultFilters",value:function(e,t,a,r){(0,_.forEach)(function(t){var n=t.fieldDetails.id,i=a?(0,_.find)({id:n},r):(0,_.find)({sourceFieldName:t.sourceFieldName,alias:t.fieldDetails.alias},r),o=i.value,l=i.operatorId,s=i.operatorSetting;t.updateFilterValue(e,n,a,o,l,s)},t)}},{key:"render",value:function(){return this.showFilter()?h.default.createElement("div",null,h.default.createElement("div",{className:"text-center izenda-text-bold"},T.default.getText("SUBSCRIPTION_LABEL_FILTER_VALUE_SELECTION")),h.default.createElement(v.default,(0,o.default)({},this.props,{filterStore:this.store,filters:this.store.model.reportFilter,isLazyLoading:!0}))):null}}]),t}(f.Component),n.propTypes={data:f.PropTypes.object},n.displayName="FilterValueSelection",r=i))||r;t.default=C,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l=S(a(17)),s=S(a(23)),u=a(20),d=S(a(2)),c=S(a(3)),p=S(a(243)),f=S(a(110)),h=a(1),m=S(a(102)),g=a(68),E=S(a(1363)),y=S(a(400)),v=S(a(707)),T=S(a(1201)),_=a(5);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var b=(r=(0,_.action)("updateCascadingValue"),n=(0,_.action)("updateCascadingFilterValue"),i=function(){function e(t){var a,r,n,i;(0,d.default)(this,e),a=this,r="model",i=this,(n=o)&&(0,l.default)(a,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.fetchFilterOperatorGroup=function(){return f.default.loadFilterOperatorGroup()},this.model.dashboardDefinition=t}return(0,c.default)(e,[{key:"reportFilter",get:function(){return this.model.reportFilter}},{key:"reportFilters",get:function(){return this.model.reportFilter}}]),(0,c.default)(e,[{key:"getFilterData",value:function(e,t,a,r){var n=this;return this.fetchFilterOperatorGroup().then(function(e){var i={operatorGroup:e};return n.getConfigFieldList(i,t,a,r)})}},{key:"getConfigFieldList",value:function(e,t,a,r){var n=this,i=(0,_.action)("mapCommonFilterToFilterDetail",function(e){var t=new y.default;return t.required=e.required,t.operatorId=e.operatorId,t.operatorSetting=e.operatorSetting,t.alias=e.displayName,t.name=e.name,t.dataType=e.dataType,t.value=e.value,t.id=e.id,t.visible=!0,t.cascading=e.cascading,t.commonFilterRequired=(0,h.some)("required",e.filterFields),t}),o=[];this.filters=r?this.model.commonFilters:this.model.clonedFilters;var l=this.model.reportFilter.configFieldList;return this.model.reportFilter.configFieldList=this.filters.map(function(r){var s=(0,h.find)(function(e){return r.id===(0,h.get)("fieldDetails.id",e)},l),u=i(r),d=new v.default(u,n.reportFilter.markUpdateResult.bind(n.reportFilter));if(d.setFilterValue=function(e){v.default.prototype.setFilterValue.call(d,e),r.setFilterValue(d.fieldDetails.value),r.setOperatorValue(d.fieldDetails.operatorId)},d.commonData=e,!(0,h.isNil)(t)){var c=(0,h.find)(function(e){return e.commonFilterFieldId===r.id},t);(0,h.isNil)(c)||(d.fieldDetails.operatorId=c.operatorId,d.fieldDetails.value=c.value)}var p=(0,h.isNil)(s)||a?d.doesSupportDataSourceLazyLoading?null:n.getOperatorValueSource(d):n.copyFilterValue(d,s);return o.push(p),d}),(0,u.all)(o)}},{key:"updateReportDesignerCascadingFilter",value:function(e){var t=(this.reportFilter.configFieldList||[]).map(function(e){return e.fieldDetails}),a=(0,h.findIndex)(function(t){return t.uniqueId===e.uniqueId},t);if(!(a<0)&&e.cascading)for(var r=a+1;r0?e.configField.operatorSourceDisplay.data:[];return r.createElement(n,{visible:!0,onClosed:this.onClosingPopup,autoClose:!0,type:"none",style:{zIndex:1061},backdropStyle:{zIndex:1060}},r.createElement(n.Header,{title:t}),r.createElement(n.Body,null,r.createElement("div",{className:"izenda-DefaultPopupContentWrapper"},r.createElement(l,null,r.createElement(o,null,r.createElement(o.Row,{className:"u_noMarginAll"},r.createElement(s,{data:i,viewHeight:300,isLastPage:a,getData:this.getData,renderItem:this.renderItemPopup,itemClassName:"izenda-GridLayout-Col4"})))))),r.createElement(n.Footer,null,r.createElement(n.ConfirmationButton,{type:"accept"},u.getText("COMMON_LABEL_OK")),r.createElement(n.ConfirmationButton,{type:"cancel"},u.getText("COMMON_LABEL_CANCEL"))))}}),m=t(function(e){var t=e.item;return r.createElement("div",{className:"checkbox u_noMarginTop",key:"chk-"+t.value},r.createElement("label",null,r.createElement("input",{type:"checkbox",value:t.value,checked:t.checked,onChange:e.onChange.bind(null,t)}),r.createElement(i,{tooltip:e.label},e.label)))});e.exports=t(h)}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m=a(14),g=(r=m)&&r.__esModule?r:{default:r};n=a(0),i=a(4),o=a(151).SYSTEM_VARIABLES,l=a(57),s=a(15),u=a(46).Table,d=a(46).Column,c=a(116),p=a(3121),f=o.TABLE_DEF,h=n.createClass({displayName:"SystemVariables",render:function(){var e=this.props,t=e.store,a=t.systemVariables;return n.createElement(s,{className:"izenda-SystemVariables"},n.createElement(s.Row,null,n.createElement(s.Col,{cols:"12"},n.createElement("span",{className:"u_textBold"},o.TITLE),n.createElement("hr",null))),n.createElement(s.Row,null,n.createElement(s.Col,{cols:"12"},n.createElement(l,{className:""},o.INSTRUCTION))),n.createElement(s.Row,null,n.createElement(s.Col,{cols:"12"},n.createElement(u,{dataSource:a.variables,onSortChange:e.onSortChange,sortInfo:a.pageInfo.colSortDirs},n.createElement(d,(0,g.default)({},f.name,{cell:this.renderName})),n.createElement(d,(0,g.default)({},f.dataType,{cell:this.renderDataType})),n.createElement(d,(0,g.default)({},f.description,{cell:this.renderDescription}))),n.createElement(c,{onChange:t.goToSystemVariablesPage.bind(t),onDropdownChange:t.onSystemVariablesPageSizeChange.bind(t),totalRecords:a.pageInfo.totalRecords,pageSize:a.pageInfo.pageSize,pageIndex:a.pageInfo.pageIndex}))))},renderName:function(e){return n.createElement("span",{className:"izenda-SystemVariables-linkable truncate overflow-text",title:e.name,onClick:this.props.onSelect.bind(this,e)},e.name)},renderDataType:function(e){return n.createElement("span",{onClick:this.props.onSelect.bind(this,e)},e.dataType)},renderDescription:function(e){return n.createElement("span",{onClick:this.props.onSelect.bind(this,e)},e.description)}}),e.exports=i(p)(h)},function(e,t,a){"use strict";!function(){var t=a(5);function r(e){this.$sourceNode=null;t.extendObservable(this,{visible:!1,left:0,top:0,sourceType:null,cursorPosition:0}),e&&this.populateData(e)}r.prototype.populateData=t.action(function(e){this.visible=e.visible,this.left=e.left,this.top=e.top,this.sourceType=e.sourceType,this.cursorPosition=e.cursorPosition,this.$sourceNode=e.$sourceNode}),r.prototype.updateVisible=function(e){this.visible=e},e.exports=r}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(5),n=a(1),i=n.isArray,o=n.isEmpty,l=n.map,s=a(203),u=a(123),e.exports=function(e,t){var a="";function n(){var t={isLastPage:!1,categories:[],searchType:e.SEARCH_CRITERIA[0].value,searchText:a,sortBy:e.SORT_CRITERIA[0].value,sortDir:e.SORT_TYPES.ASC,isEmpty:function(){for(var e=!0,t=0;tg.DEFAULT_TABLE_HEIGHT?t-(g.DEFAULT_REST_HEIGHT+g.DEFAULT_DATABASE_MAPPING_HEIGHT):g.DEFAULT_TABLE_HEIGHT;return f.default.createElement(m.Table,{minHeight:n,maxHeight:n,dataSource:a,sortInfo:!0,staticRender:!0},f.default.createElement(m.Column,(0,o.default)({},O.fileName,{cell:this.renderFileName})),f.default.createElement(m.Column,(0,o.default)({},O.type,{cell:this.renderType})),f.default.createElement(m.Column,(0,o.default)({},O[r?"newReportOrDashboardName":"newReportName"],{cell:this.renderNewReportName})),(0,C.isNil)(S.default.tenantId)&&f.default.createElement(m.Column,(0,o.default)({},O.saveInto,{cell:this.renderSaveInto})),f.default.createElement(m.Column,(0,o.default)({},O.category,{cell:this.renderCategory})),f.default.createElement(m.Column,(0,o.default)({},O.subCategory,{cell:this.renderSubCategory})),f.default.createElement(m.Column,(0,o.default)({},O.gear,{cell:this.renderGear})))}}]),t}(p.Component),n.propTypes={height:h.default.number,dataSource:b.propTypes.arrayOrObservableArray,saveInto:b.propTypes.arrayOrObservableArray,loadCategories:h.default.func,loadSubCategories:h.default.func,store:b.propTypes.observableObject},r=i))||r;t.default=I,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=f(a(6)),i=f(a(2)),o=f(a(3)),l=f(a(7)),s=f(a(8)),u=a(0),d=f(u),c=f(a(32)),p=f(a(26));function f(e){return e&&e.__esModule?e:{default:e}}var h=(0,f(a(4)).default)()(r=function(e){function t(){var e,a,r,o;(0,i.default)(this,t);for(var s=arguments.length,u=Array(s),c=0;c1?e[1].trim():""},set:function(e){}}),"function"!=typeof window.CustomEvent){var l=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a};l.prototype=window.Event.prototype,window.CustomEvent=l}if("function"!=typeof window.Map){var s=function(e){var t=[],a=[],i=[],o=n.default||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},l=function(e){if(e!=e||0===e)for(var t=this.length;t--&&!o(this[t],e););else t=[].indexOf.call(this,e);return t},s=function(e,r){var n=l.call(a,e);n>-1?(t[n][1]=r,i[n]=r):(t.push([e,r]),a.push(e),i.push(r))};if(Array.isArray(e))e.forEach(function(e){if(2!==e.length)throw new TypeError("Invalid iterable passed to Map constructor");s(e[0],e[1])});else if(void 0!==e)throw new TypeError("Invalid Map");return(0,r.default)(u,{items:{value:function(){return[].slice.call(t)}},keys:{value:function(){return[].slice.call(a)}},values:{value:function(){return[].slice.call(i)}},has:{value:function(e){return l.call(a,e)>-1}},get:{value:function(e){var t=l.call(a,e);return t>-1?i[t]:void 0}},set:{value:s},size:{get:function(){return t.length}},clear:{value:function(){a.length=i.length=t.length=0}},delete:{value:function(e){var r=l.call(a,e);return r>-1&&(a.splice(r,1),i.splice(r,1),t.splice(r,1),!0)}},forEach:{value:function(e){if("function"!=typeof e)throw new TypeError("Invalid callback function given to forEach");function t(){try{return a.next()}catch(e){return}}for(var a=this.iterator(),r=t(),n=t();void 0!==r;)e.apply(arguments[1],[r[1],r[0],this]),r=n,n=t()}},iterator:{value:function(){return new function(e,t){var a=0;return(0,r.default)({},{next:{value:function(){if(athis.length)&&-1!==this.indexOf(e,t)}}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var a=Object(this),r=a.length>>>0;if(0===r)return!1;var n,i,o=0|t,l=Math.max(o>=0?o:r-Math.abs(o),0);for(;l

{1}

{3}

',a,u,r,d,s,(0,o.get)("textColor",t))}})}},yAxis:function(e){return{stops:e.plotBands&&e.plotBands.length>0?e.plotBands.map(function(t){return[(t.from+t.to)/(2*Math.max(e.max-e.min,Math.max(t.to-t.from,1))),t.color]}):null,tickPositions:[e.min,e.max],innerRadius:n+"%",labels:function(){var e=(0,o.get)("yAxis.labels.formatter",s);return{formatter:function(){var a=(0,o.isFunction)(e)?e.call(this):this.value;return String.format('{1}',t,a)},distance:15,y:20}}()}}(s.yAxis)})),l.call(this,s,u)})},e.exports=t.default},,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(48),i=(r=n)&&r.__esModule?r:{default:r},o=a(36);var l=i.default.FUNCTION,s=i.default.FORMAT_KEY,u={},d=i.default.ERROR_TYPE;u[o.CHART_TYPE.Line]={},u[o.CHART_TYPE.Line].labels=u[o.CHART_TYPE.Line].separators={Datetime:{FUNCTION:l.GROUP,FORMAT:s.YEAR,ON_NULL_FUNCTION:d.ERROR_MESSAGE},Time:{FUNCTION:l.GROUP,FORMAT:s.DEFAULT_TIME,ON_NULL_FUNCTION:d.ERROR_MESSAGE},Others:{FUNCTION:l.GROUP,FORMAT:s.NONE,ON_NULL_FUNCTION:d.ERROR_MESSAGE}},u[o.CHART_TYPE.Line].values={Others:{FUNCTION:l.COUNT,FORMAT:s.NONE,ON_NULL_FUNCTION:d.ERROR_MESSAGE}},u[o.CHART_TYPE.Line].values.Numeric=u[o.CHART_TYPE.Line].values.Money={FUNCTION:l.SUM,FORMAT:s.NONE,ON_NULL_FUNCTION:d.ERROR_MESSAGE},u[o.CHART_TYPE.Bar]=u[o.CHART_TYPE.Column]=u[o.CHART_TYPE.Area]=u[o.CHART_TYPE.Pie]=u[o.CHART_TYPE.Funnel]=u[o.CHART_TYPE.Donut]=u[o.CHART_TYPE.Combination]=u[o.CHART_TYPE.TreeMap]=u[o.CHART_TYPE.Waterfall]=u[o.CHART_TYPE.Sparkline]=u[o.CHART_TYPE.Line],u[o.CHART_TYPE.Bubble]={},u[o.CHART_TYPE.Bubble].labels=u[o.CHART_TYPE.Bubble].values=u[o.CHART_TYPE.Bubble].bubbleSize={Numeric:{FUNCTION:l.SUM,FORMAT:s.NONE,ON_NULL_FUNCTION:d.ERROR_MESSAGE},Money:{FUNCTION:l.SUM,FORMAT:s.NONE,ON_NULL_FUNCTION:d.ERROR_MESSAGE},Others:{FUNCTION:l.COUNT,FORMAT:s.NONE,ON_NULL_FUNCTION:d.NOTIFY}},u[o.CHART_TYPE.Bubble].valuesLabels={Datetime:{FUNCTION:l.GROUP,FORMAT:s.YEAR,ON_NULL_FUNCTION:d.NOTIFY},Time:{FUNCTION:l.GROUP,FORMAT:s.DEFAULT_TIME,ON_NULL_FUNCTION:d.NOTIFY},Others:{FUNCTION:l.GROUP,FORMAT:s.NONE,ON_NULL_FUNCTION:d.NOTIFY}},u[o.CHART_TYPE.Scatter]=u[o.CHART_TYPE.Bubble],u[o.CHART_TYPE.HeatMap]={},u[o.CHART_TYPE.HeatMap].labels=u[o.CHART_TYPE.HeatMap].values=u[o.CHART_TYPE.Line].labels,u[o.CHART_TYPE.HeatMap].valuesLabels=u[o.CHART_TYPE.Line].values,t.default=u,e.exports=t.default},,,,,,,,,,,,,,function(e,t,a){"use strict";!function(){var t=a(1),r=t.isNil,n=t.pick,i=t.isEqual,o=t.find,l=a(5),s=a(63);function u(e,t){this.questions=t;var a={securityQuestionId:null,answer:null,question:function(){var e=o(function(e){return i(e.securityQuestionId,this.securityQuestionId)}.bind(this),this.questions);if(!r(e))return e.question}.bind(this),remainingQuestionList:[]};l.extendObservable(s(this),a),e&&this.populate(e)}u.prototype.populate=l.action(function(e){this.securityQuestionId=e.securityQuestionId||e.id,this.answer=e.answer}),u.prototype.buildDataForSaving=function(){return n(["securityQuestionId","answer"],this)},u.prototype.updateProperty=function(e,t){this[e]=t,this.markDirty()},e.exports=u}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";(function(e){!function(e,t){var a={oldHash:"",newHash:"",oldHref:"",newHref:"",onHashChange:function(r){t(window).on("hashchange",function(t){a.oldHash=a.newHash,a.newHash=e.location.hash,a.oldHref=a.newHref,a.newHref=e.location.href,r(t)})},init:function(){a.oldHash=a.newHash=e.location.hash,a.oldHref=a.newHref=e.location.href}};e.UrlHashMonitor=a}(window,e)}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,d.uniqueId)("ReportViewerPopup_"),t=(0,u.setDisplayName)(e)((0,i.default)(o.default)(p));return t.$popupName=e,t};var r=c(a(0)),n=c(a(32)),i=c(a(4)),o=c(a(1750)),l=a(55),s=c(a(624)),u=a(11),d=a(1);function c(e){return e&&e.__esModule?e:{default:e}}function p(e){var t=e.localization,a=e.onClosing,i=e.queryObject,o=e.reportId,u={width:l.SUBREPORT_POPUP.frameWidthInPercent,height:l.SUBREPORT_POPUP.frameHeightInPx};return r.default.createElement(n.default,{visible:!0,onClosing:a,type:"none",autoClose:!1,sizeClass:"modal-lg"},r.default.createElement(n.default.Header,{title:l.SUBREPORT_POPUP.popupTitle}),r.default.createElement(n.default.Body,null,r.default.createElement("div",{style:u},r.default.createElement(s.default,{hideGridPopup:!0,hideHeaderFooter:!0,id:o,queryObject:i}))),r.default.createElement(n.default.Footer,null,r.default.createElement(n.default.ConfirmationButton,{type:"accept"},t.getText("COMMON_LABEL_OK"))))}e.exports=t.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var r,n;r=a(264),n=(0,a(11).getContext)(r.createAppContextShape()),e.exports=n},function(e,t,a){"use strict";!function(){var t=a(1).concat,r=a(259);function n(){this.loadingCounter=0,this.notifyLoadingChanged=null}n.prototype.startLoading=function(){0===this.loadingCounter++&&(r.addLoadingWatcher(this),this.notifyLoadingChanged&&this.notifyLoadingChanged.apply(null,t([!0],arguments)))},n.prototype.endLoading=function(){var e=this.loadingCounter;this.loadingCounter&&--this.loadingCounter,1===e&&(r.removeLoadingWatcher(this),this.notifyLoadingChanged&&this.notifyLoadingChanged.apply(null,t([!1],arguments)))},n.prototype.registerLoadingChanged=function(e){return this.notifyLoadingChanged=e,function(){delete this.notifyLoadingChanged}.bind(this)},e.exports=n}()},function(e,t,a){"use strict";(function(t){var r=a(20);!function(){a(60);var n=a(1740),i=a(1),o=i.filter,l=i.isArray,s=i.isEmpty,u=i.forEach,d=i.invoke,c=(i.map,i.get,i.isNil),p=i.toLower,f=i.placeholder;function h(e){this.validatorStrategy=e||n,this.components=[],this.modelErrors=[]}h.prototype.attachComponent=function(e){this.components.indexOf(e)<0&&this.components.push(e)},h.prototype.detachComponent=function(e){var t=this.components.indexOf(e);this.components.splice(t,1)},h.prototype.validate=function(e,t){var a=o(function(a){return(!e||!l(e)&&a.props.field===e||l(e)&&e.indexOf(a.props.field)>-1)&&(!t||a.props.group===t)},this.components);s(a)&&(0,r.resolve)(!0);var n=this.validatorStrategy,i=this.getKey,c=f(a).chain().map(function(e){return{key:i(e),value:e.getValue(),rules:n.parseRules(e.props.validations)}}).reduce(function(e,t){return e.rules[t.key]=t.rules,e.attributes[t.key]=t.value,e},{attributes:{},rules:{}}).value();return n.validate(c.attributes,c.rules).then(function(){return u(d("setSuccess"),a),!0},function(t){var r=n.parseErrors(t);return e?a.map(function(e){var t=i(e);r[t]&&e.setError(r[t])}):f(a).chain().map(function(e){var t=i(e);return{msg:r[t],com:e}}).forEach(function(e){e.msg?e.com.setError(e.msg):e.com.setSuccess()}).commit(),!1})},h.prototype.getFieldValue=function(e,a){t(e,"Field name must be defined");var r=f(this.components).chain().filter(["props.group",a]).find(["props.field",e]).value();return t(r,"Cannot find component that holds value of field %s",e),r.getValue()},h.prototype.updateErrors=function(e){if(e){var t=this.getKey;this.setModelErrors(o(function(e){return c(e.key)||s(e.key)},e)),f(this.components).chain().map(function(a){return{errors:o(function(e){var r=String.hashKeyId(e.key);return a.props.group&&p(r)===p(a.props.group)||p(r)===p(t(a))},e),component:a}}).filter(function(e){return!s(e.errors)}).forEach(function(e){e.component.setError(e.errors)}).commit()}},h.prototype.getKey=function(e){return String.hashKeyId((e.props.group?e.props.group+".":"")+e.props.field)},h.prototype.setModelErrors=function(e){this.modelErrors=e},h.prototype.reset=function(e,t){f(this.components).chain().filter(function(e){return!t||e.props.group===t}).filter(function(t){return!e||t.props.field===e}).forEach(d("setPristine")).commit()},h.prototype.unvalidatedChange=function(e,t){f(this.components).chain().filter(function(e){return!t||e.props.group===t}).filter(function(t){return!e||t.props.field===e}).forEach(d("setUnvalidatedChange")).commit()},e.exports=h}()}).call(t,a(42))},function(e,t,a){"use strict";var r,n;r=a(623),n=a(1741),e.exports={parseRules:function(e){return e},parseErrors:function(e){return e.errors},validate:function(e,t){var a={fullMessages:!1,wrapErrors:n,cleanAttributes:!1};return r.async(e,t,a)}}},function(e,t,a){"use strict";!function(){var t=a(1).create;function r(e){this.errors=e}r.prototype=t(Error.prototype,{constructor:r}),e.exports=r}()},function(e,t,a){"use strict";(function(t){!function(){var r=a(1743),n=a(5).extendObservable,i=a(1),o=i.last,l=i.isNil;function s(){this.names=[],n(this,{child:null})}function u(e,t){if(l(t))return e;for(var a=e.child;a&&a.info.name!==t;)a=a.child;return a}s.prototype.registerDialog=function(e,a,n){t(this.names.indexOf(e)<0,"%s dialog already existed",e);var i=u(this,o(this.names));this.names.push(e);var l=this.names.length;i.child=new r(e,a,l,n)},s.prototype.createUnregister=function(e){return function(){var t=this.names.indexOf(e);t<=0?this.child=null:u(this,this.names[t-1]).child=null;this.names.splice(t)}.bind(this)},s.prototype.reset=function(){this.names=[],this.child=null},e.exports=s}()}).call(t,a(42))},function(e,t,a){"use strict";!function(){var t=a(1744),r=a(5).extendObservable;e.exports=function(e,a,n,i){r(this,{info:new t(e,a,n,i),child:null})}}()},function(e,t,a){"use strict";!function(){var t=a(5).extendObservable;e.exports=function(e,a,r,n){this.props=n,t(this,{name:e,type:a,level:r})}}()},function(e,t,a){"use strict";!function(){function t(){this.addExportLoading=null,this.removeExportLoading=null}t.prototype.registerExportLoadingChanged=function(e,t,a){return this.addExportLoading=e,this.removeExportLoading=t,this.updateError=a,function(){delete this.addExportLoading,delete this.removeExportLoading,delete this.updateError}.bind(this)},t.prototype.startExportLoading=function(e){this.addExportLoading(e)},t.prototype.endExportLoading=function(e){this.removeExportLoading(e)},t.prototype.updateError=function(e){this.updateError(e)},e.exports=t}()},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n=a(20),i=p(n),o=p(a(1043)),l=p(a(1747)),s=a(11),u=p(a(16)),d=a(1),c=p(a(12));function p(e){return e&&e.__esModule?e:{default:e}}var f="Confirmation",h={confirmFn:function(e){return function(t,a){return m(e.dialogs,t,a)}},confirmDirtyForm:function(e){return function(t,a){if(!t)return(0,n.resolve)();var r=(0,d.get)("customMessage",a)||c.default.getText(u.default.dirtyMessage),i=(0,d.get)("onConfirmDirtyForm",a)||d.identity;return m(e.dialogs,"Confirmation",{description:r}).then(i)}},confirmMessage:function(e){return function(t,a){return m(e.dialogs,"Information",{type:t,description:a,showCancel:!1,showCloseIndicator:!0})}},openPopup:function(e){return function(t,a){return function(e,t,a){r(!a||!(a.onAccept||a.onReject),"onAccept and onReject properties is reserved for popup closing");var n=t.displayName||t.$popupName||t.name||("string"==typeof t?t:"Component"),l=e.createUnregister(n);return new i.default(function(r,i){var l=(0,d.assign)({onAccept:r,onReject:function(){i(new o.default)}},a||{});e.registerDialog(n,t,l)}).finally(l)}(e.dialogs,t,a)}}};function m(e,t,a){var r=e.createUnregister(f);return new i.default(function(r,n){var i=(0,d.assign)({message:t,onAccept:r,onReject:function(){n(new o.default)}},a||{});e.registerDialog(f,l.default,i)}).finally(r)}t.default=(0,s.withHandlers)(h),e.exports=t.default}).call(t,a(42))},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g;r=a(0),n=a(35),i=a(32),o=a(10),l=a(44),s=a(12),u=a(1044),d=a(1),c=d.noop,p=d.isNil,f=d.isFunction,h=d.truncate,m=d.isObject,g=r.createClass({displayName:"Confirmation",propTypes:{confirmLabel:r.PropTypes.string,abortLabel:r.PropTypes.string,showCancel:r.PropTypes.bool,type:r.PropTypes.string,showCloseIndicator:r.PropTypes.bool,onAccept:r.PropTypes.func.isRequired,onReject:r.PropTypes.func.isRequired,style:r.PropTypes.object,showRadio:r.PropTypes.bool,radioOptions:r.PropTypes.array,radioValue:r.PropTypes.string},getDefaultProps:function(){return{confirmLabel:null,abortLabel:null,showCancel:!0,type:"confirm",showCloseIndicator:!1,onAccept:c,onReject:c,isHTMLFormat:!1,showRadio:!1,radioOptions:[],radioValue:""}},getInitialState:function(){return{radioValue:this.props.radioValue}},componentDidMount:function(){var e=this.props.type;e!==l.MESSAGE_TYPE.INFO&&e!==l.MESSAGE_TYPE.ERROR&&e!==l.MESSAGE_TYPE.WARNING&&(this.props.showCancel?n.findDOMNode(this.refs.cancelButton).focus():n.findDOMNode(this.refs.acceptButton).focus()),window.onkeyup=this.onEscape},componentWillUnmount:function(){window.onkeyup=null},rawMarkup:function(e){return{__html:e}},onPopupClosed:function(e){"accept"===e&&f(this.props.onAccept)?this.props.showRadio?this.props.onAccept(this.state.radioValue):this.props.onAccept():"cancel"===e&&f(this.props.onReject)&&this.props.onReject()},onPopupAccept:function(){this.onPopupClosed("accept")},onEscape:function(e){27===e.keyCode&&this.onPopupClosed("cancel"),13===e.keyCode&&this.onPopupClosed("accept")},render:function(){var e=function(){var e=o("icon-cancel","close-indicator");return this.props.showCloseIndicator?r.createElement("div",{className:"izenda-Confirmation-close"},r.createElement("span",{onClick:this.onPopupAccept,className:e})):null}.bind(this),t=function(){var e=a();if(this.props.isHTMLFormat)return r.createElement("div",{className:"izenda-Confirmation-content description"},r.createElement("div",{dangerouslySetInnerHTML:this.rawMarkup(e)}));var t=h({length:1e3,separator:" ",omission:"..."},e);return r.createElement("div",{className:"izenda-Confirmation-content"},r.createElement("span",{title:e,className:"u_textBreak"},t))}.bind(this),a=function(){var e=this.props.description;return m(e)&&e.messages.length>0?e.messages[0].messages:m(e)?s.getText("COMMON_MESSAGES_GENERIC_ERROR"):e}.bind(this),n=function(){var e=this.props,t=e.showRadio,a=e.radioOptions,n=function(e){this.setState({radioValue:e.value})}.bind(this);return t?r.createElement(u,{onChange:n,value:this.state.radioValue,options:a}):null}.bind(this),d=o("confirm-message-icon",{"icon-help-circled confirm":"confirm"===this.props.type,"icon-attention-circled warning":this.props.type===l.MESSAGE_TYPE.WARNING,"icon-info-circled info":this.props.type===l.MESSAGE_TYPE.INFO_ACCEPT,"icon-error-circled error":this.props.type===l.MESSAGE_TYPE.ERROR});return r.createElement(i,{visible:!0,onClosed:this.onPopupClosed,type:this.props.type,style:this.props.style},r.createElement(i.Body,null,r.createElement("div",{className:"izenda-Confirmation"},r.createElement("div",{className:"izenda-Confirmation-icon"},r.createElement("span",{className:d})),t(),n(),e())),this.renderFooter())},renderFooter:function(){var e=this.props,t=p(e.confirmLabel)?s.getText("COMMON_LABEL_OK"):e.confirmLabel,a=p(e.abortLabel)?s.getText("COMMON_LABEL_CANCEL"):e.abortLabel,n=function(){return this.props.showCloseIndicator?null:r.createElement(i.ConfirmationButton,{ref:"acceptButton",type:"accept"},t)}.bind(this),o=function(){return this.props.showCancel?r.createElement(i.ConfirmationButton,{ref:"cancelButton",type:"cancel"},a):null}.bind(this),u=this.props.type;return u!==l.MESSAGE_TYPE.INFO&&u!==l.MESSAGE_TYPE.ERROR?r.createElement(i.Footer,null,n(),o()):null}}),e.exports=g},function(e,t,a){"use strict";!function(){var t=a(0),r=a(9).observer,n=a(37),i=a(1),o=i.isNil,l=i.isFunction;e.exports=function(e,a,i){var s=t.createClass({displayName:"AuthorizationComponent",contextTypes:{authorization:t.PropTypes.oneOfType([t.PropTypes.array,t.PropTypes.object])},componentWillMount:function(){var t=this.context.authorization.checkPrivileges(e);l(a)?a.call(null,t):o(t)||t||(this.hasNoPermission=!0,this.props.router.push(n.getNoPermissionUrl()))},render:function(){return!this.hasNoPermission&&t.createElement(i,this.props)}});return r(s)}}()},function(e,t,a){"use strict";!function(){var t=a(0),r=a(9).observer,n=a(37),i=a(1),o=i.isNil,l=i.isFunction;e.exports=function(e,a,i){var s=t.createClass({displayName:"LicenseCheckerComponent",contextTypes:{authorization:t.PropTypes.object.isRequired},componentWillMount:function(){var t=this.context.authorization.checkLicense(e);l(a)?a.call(null,t):o(t)||t||(this.hasNoLicense=!0,this.props.router.push(n.getNoPermissionUrl()))},render:function(){return!this.hasNoLicense&&t.createElement(i,this.props)}});return r(s)}}()},function(e,t,a){"use strict";!function(){a(0).PropTypes;var t=a(11).compose,r=a(11).withHandlers,n=a(1).curry,i=t(r({onClosing:n(function(e,t){return e.loader.endLoading(),e.onAccept()}),onIFrameLoad:n(function(e,t){e.loader.endLoading()})}));e.exports=i}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=y(a(6)),i=y(a(2)),o=y(a(3)),l=y(a(7)),s=y(a(8)),u=a(0),d=y(u),c=y(a(4)),p=y(a(311)),f=y(a(315)),h=y(a(92)),m=y(a(1056)),g=y(a(1195)),E=a(1);function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,c.default)(h.default)(r=function(e){function t(){return(0,i.default)(this,t),(0,l.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentWillMount",value:function(){this.layoutStore=new g.default(null,!0,!1,!1),this.initReportParts(this.props)}},{key:"componentWillReceiveProps",value:function(e){var t=this.getReportParts(e);this.reportParts.length!==t.length&&this.initReportParts(e)}},{key:"getReportParts",value:function(e){var t=(0,E.get)("partsToRender",e),a=e.store.reportBody;return t||a.activeReportParts}},{key:"initReportParts",value:function(e){this.reportParts=this.getReportParts(e),e.printingMode&&e.doesBreakPage&&(this.reportParts=(0,E.placeholder)(this.reportParts.slice()).sortBy(["positionY","positionX"]).value())}},{key:"render",value:function(){var e=this.props,t=e.store.reportBody.snapToGrid,a=this.layoutStore,r=this.reportParts.map(function(e){return{id:e.id,x:e.positionX,y:e.positionY,width:e.width,height:e.height,isFullSize:!1,autoSize:e.autoSize}});return d.default.createElement("div",{className:"report-body"},d.default.createElement(p.default,{className:"report-body-grid u_fullSize",ref:"gridView",printingMode:e.printingMode,editable:!e.viewMode,layoutStore:a,layoutData:r,snapToGrid:t},this.renderListReportPart()))}},{key:"renderListReportPart",value:function(){var e=this,t=this.props,a=t.store,r=t.printingMode,n=t.hideGridPopup,i=t.doesBreakPage,o=t.renderListeners;return this.reportParts.map(function(l,s){var u=(0,E.find)(function(e){return e.partId===l.id},o);return d.default.createElement(f.default,{key:l.id,id:l.id,printingMode:r,isDraggable:!1,isResizable:!l.autoSize,doesBreakPage:i,isFirstItem:0===s},d.default.createElement(m.default,{isSnapEditOn:e.layoutStore.isSnapEditOn,gridItem:l,store:a,hideGridPopup:n,autoSize:l.autoSize,viewMode:t.viewMode,printingMode:r,setting:t.setting,pageBreakAfterReportPart:t.pageBreakAfterReportPart,doesBreakPage:t.doesBreakPage,exportFormatSetting:t.exportFormatSetting,finishedRender:u&&u.resolve,isFirstReportPart:0===s,isLastReportPart:s===e.reportParts.length-1}))})}}]),t}(u.Component))||r;t.default=v,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(0),n=r.PropTypes,a(35),i=a(1753),o=a(1754),l=a(1045),s=a(5).autorun,u=a(9).observer,d=a(9).propTypes,c=r.createClass({displayName:"GridLines",cellState:null,propTypes:{layoutStore:d.observableObject,allowAddInline:r.PropTypes.bool,gridItemMenu:n.element,onAddItem:r.PropTypes.func,transparent:r.PropTypes.bool},defaultProps:{transparent:!1},componentWillMount:function(){var e=this.props.layoutStore;this.cellState=new i(e.cellWidth,e.cellHeight,e.leftPadding,e.rightPadding,this.props.transparent),this.disposeAutoRunWidth=s(function(){this.cellState.updateDimension(this.props.layoutStore.cellWidth,this.props.layoutStore.cellHeight,this.props.layoutStore.leftPadding,this.props.layoutStore.rightPadding)}.bind(this)),this.disposeAutoRunTransparent=s(function(){this.cellState.setTransparent(this.props.layoutStore.transparent)}.bind(this))},componentDidMount:function(){this.listen()},componentWillUnmount:function(){this.unlisten(),this.disposeAutoRunWidth(),this.disposeAutoRunTransparent()},render:function(){var e=this.props,t=e.layoutStore,a=t.calcActualGridSize(),n=this.cellState,i=e.allowAddInline,l=t.isInteracting,s=n.getCellLineStyle(a.width,a.height,!t.readOnlyMode),u=n.getAddButtonCellStyle(),d=i&&!l&&this.cellState.isHover&&!t.readOnlyMode?r.createElement("div",{className:"grid-cell",style:u},r.createElement("button",{type:"button",className:"btn AddItemButton",onClick:this.onAddItem},r.createElement("span",{className:"icon-plus"}))):null,c=this.cellState.isMenuVisible?r.createElement(o,{cellState:this.cellState,menu:e.gridItemMenu}):null;return r.createElement("div",{ref:"gridLines",className:"GridLine",style:s},e.children,d,c)},listen:function(){var e=this.refs.gridLines;this.props.allowAddInline&&(e.addEventListener("mousemove",this.onMouseMove,!1),e.addEventListener("mouseleave",this.onMouseLeave,!1))},unlisten:function(){var e=this.refs.gridLines;this.props.allowAddInline&&(e.removeEventListener("mousemove",this.onMouseMove,!1),e.removeEventListener("mouseleave",this.onMouseLeave,!1))},onMouseMove:function(e){var t=this.props.layoutStore;if(!this.props.isMoving&&!this.cellState.isMenuVisible){var a=l.offset(this.refs.gridLines),r=e.pageX-a.left-this.refs.gridLines.clientLeft,n=e.pageY-a.top-this.refs.gridLines.clientTop;r<0&&(r=0),n<0&&(n=0);var i=!t.infinityCols&&t.cols>0&&r>=t.cols*t.cellWidth;i||this.cellState.isCurrentCell(r,n)?i&&this.cellState.resetPosition():this.cellState.onPosition(r,n,!0)}},onMouseLeave:function(e){this.props.isMoving||(this.cellState.resetPosition(),this.cellState.setMenuVisible(!1))},onAddItem:function(e){var t=this.props,a=this.cellState.getHoverCellPosition(),r=t.layoutStore.addItemAt(a.x,a.y);this.cellState.setMenuVisible(!0),r&&t.onAddItem&&t.onAddItem(r,e)}}),e.exports=u(c)},function(e,t,a){"use strict";!function(){var t=a(5).action,r=a(5).extendObservable,n=a(1).floor;function i(e,t,a,n,i){r(this,{cellWidth:e,cellHeight:t,leftPadding:a||0,rightPadding:n||0,hoverCellTop:-1,hoverCellLeft:-1,isHover:!1,isMenuVisible:!1,transparent:!!i})}i.prototype.setTransparent=t(function(e){this.transparent=!!e}),i.prototype.setMenuVisible=t(function(e){this.isMenuVisible=e}),i.prototype.updateDimension=t(function(e,t,a,r){this.cellWidth=e,this.cellHeight=t,this.leftPadding=a||0,this.rightPadding=r||0}),i.prototype.getCellLineStyle=function(e,t,a){return{left:this.leftPadding,height:Math.round(t/this.cellHeight)*this.cellHeight,width:Math.round(e/this.cellWidth)*this.cellWidth+1,backgroundSize:a?String.format("{0}px {1}px, {0}px {1}px",this.cellWidth,this.cellHeight):null,backgroundColor:this.transparent?"transparent":void 0}},i.prototype.getAddButtonCellStyle=function(){return{width:this.cellWidth+"px",height:this.cellHeight+"px",left:this.hoverCellLeft+"px",top:this.hoverCellTop+"px",position:"absolute",display:this.isHover?"block":"none"}},i.prototype.getAddButtonMenuStyle=function(){return{position:"absolute",display:"block",left:this.hoverCellLeft+this.cellWidth+"px",top:this.hoverCellTop+"px"}},i.prototype.resetPosition=t(function(){this.hoverCellLeft=-1,this.hoverCellTop=-1,this.isHover=!1}),i.prototype.onPosition=t(function(e,t,a){var r=this.snapToCellGrid(e,t);this.hoverCellLeft=r.x,this.hoverCellTop=r.y,this.isHover=a}),i.prototype.getHoverCellPosition=function(){return{x:n(this.hoverCellLeft/this.cellWidth),y:n(this.hoverCellTop/this.cellHeight)}},i.prototype.snapToCellGrid=function(e,t){var a=this.cellWidth>0?e%this.cellWidth:e,r=this.cellHeight>0?t%this.cellHeight:t;return{x:e+(this.leftPadding||0)-a,y:t-r}},i.prototype.isCurrentCell=function(e,t){var a=this.snapToCellGrid(e,t);return this.hoverCellLeft===a.x&&this.hoverCellTop===a.y},e.exports=i}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=f(a(6)),i=f(a(2)),o=f(a(3)),l=f(a(7)),s=f(a(8)),u=a(0),d=f(u),c=f(a(13)),p=a(9);function f(e){return e&&e.__esModule?e:{default:e}}var h=(0,p.observer)(r=function(e){function t(){var e,a,r,o;(0,i.default)(this,t);for(var s=arguments.length,u=Array(s),d=0;dr?e+(r-n):e}function d(e){var t=e.getBoundingClientRect();return{x:t.left,y:t.top,min:{x:t.left,y:t.top},max:{x:t.left+t.width,y:t.top+t.height}}}function c(e){var t={over:{name:"over",fits:function(e,t,a){return t.y<=Math.min(e.min.y,a.y)},calcTranslation:function(e,t,a){return{x:u(s(e.min.x,e.max.x,t.min.x,t.max.x,a.x),t.min.x,t.max.x,a.x),y:u(e.min.y-t.max.y,t.min.y,t.max.y,a.y)}}},under:{name:"under",fits:function(e,t,a){return t.y<=a.y-e.max.y},calcTranslation:function(e,t,a){return{x:u(s(e.min.x,e.max.x,t.min.x,t.max.x,a.x),t.min.x,t.max.x,a.x),y:u(e.max.y-t.min.y,t.min.y,t.max.y,a.y)}}},left:{name:"left",fits:function(e,t,a){return t.x<=Math.min(e.min.x,a.x)},calcTranslation:function(e,t,a){return{x:u(e.min.x-t.max.x,t.min.x,t.max.x,a.x),y:u(s(e.min.y,e.max.y,t.min.y,t.max.y,a.y),t.min.y,t.max.y,a.y)}}},right:{name:"right",fits:function(e,t,a){return t.x<=a.x-e.max.x},calcTranslation:function(e,t,a){return{x:u(e.max.x-t.min.x,t.min.x,t.max.x,a.x),y:u(s(e.min.y,e.max.y,t.min.y,t.max.y,a.y),t.min.y,t.max.y,a.y)}}}};return e?e.split(",").map(function(e){return t[e]}):[t.under,t.over,t.right,t.left]}function p(){r(this,{translation:{x:0,y:0},schemeName:""})}p.prototype.isElementInView=function(e,t){var a=e.getBoundingClientRect(),r=t.getBoundingClientRect();return a.bottom>=r.top&&a.top<=r.bottom},p.prototype.chooseScheme=function(e,t,a){return this._scheme&&this._scheme.fits(e,t,a)&&-1!=this._schemes.indexOf(this._scheme)?this._scheme:(this._scheme=o(function(r){return r.fits(e,t,a)},this._schemes)||this._schemes[0],this._scheme)},p.prototype.reposition=t(function(e,t){if(!l(t)){this._schemes=this._schemes||c(e.edges);var a,r=d(t),i={x:(a=t.getBoundingClientRect()).width,y:a.height},o=d(e.anchor),s=function(){var e=n.containerElement.getBoundingClientRect();return{x:e.width+e.left,y:e.top+e.height}}(),u=this.chooseScheme(function(e){return{min:{x:e.min.x,y:e.min.y},max:{x:e.max.x,y:e.max.y}}}(o),i,s),p=u.calcTranslation(o,r,s);this.translation={x:this.translation.x+p.x,y:this.translation.y+p.y},this.schemeName=u.name}}),e.exports=p}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(211),n=a(97),i=l(a(67)),o=l(a(12));function l(e){return e&&e.__esModule?e:{default:e}}var s=r.MESSAGE.M03;t.default={schemaKey:"RP_FIELD_PROPERTIES",fields:{dataSource:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return o.default.getText("COMMON_LABEL_DATA_SOURCE")},icon:"icon-toggle-triangle"}},fields:{querySourceType:{get title(){return o.default.getText("COMMON_LABEL_TYPE")},type:"static",fnValue:"getValueByKey",props:{hiddenByState:"hiddenByReportPartType"}},sourceAlias:{get title(){return o.default.getText("COMMON_LABEL_NAME")},type:"static",fnValue:"getValueByKey",props:{hiddenByState:"hiddenByReportPartType"}},fieldName:{get title(){return o.default.getText("COMMON_LABEL_FIELD_NAME")},type:"static",fnValue:"getFieldName"},fieldNameAlias:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_FIELD_NAME_ALIAS")},component:"CustomInput",fnValue:"getFieldNameAlias",props:{beforeOnChange:"changeFieldNameAlias",validations:"getAliasValidation",field:"fieldNameAlias"}},dataFieldType:{get title(){return o.default.getText("COMMON_LABEL_DATA_TYPE")},type:"static",fnValue:"getValueByKey",props:{hiddenByState:"hiddenByReportPartType"}},fieldItemVisible:{get title(){return o.default.getText("COMMON_LABEL_VISIBLE")},type:"checkbox",fnValue:"getValueByKey",isHidden:"isHiddenFieldItemVisible",props:{hiddenByState:"hiddenByReportPartType"}}}},dataFormattings:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_DATA_FORMATTING_HEADER")},icon:"icon-toggle-triangle"}},fields:{function:{get title(){return o.default.getText("MODEL_LABEL_FUNCTION")},type:"select",fnValue:"getValueByKey",isHidden:"isHiddenFunction",props:{beforeOnChange:"beforeChangeFunction",options:"getFunctions",labelField:"name",valueField:"id",disabled:"isRunningField"}},format:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_FORMAT")},type:"select",fnValue:"getDataFormatType",props:{beforeOnChange:"beforeChangeFormat",options:"getDataFormats",labelField:"name",valueField:"customId",groupBy:"category",showTooltip:!0,blankOption:!0,blankOptionText:"..."}},width:{get title(){return o.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_WIDTH")},component:"SizeSetting",fnValue:"getDataFormatsWidth",props:{loadValue:"getWidthValue",propertyKey:"width.value"}},fontFormat:{get title(){return o.default.getText("FONT_SETTINGS_LABEL_FONT")},component:"FontFormat",fnValue:"getDataFontFormat",props:{hiddenByState:"hiddenByReportPartType"}},fontStyle:{title:"",component:"FontStyle",fnValue:"getDataFontStyle",props:{hiddenByState:"hiddenByReportPartType"}},alignment:{get title(){return o.default.getText("FONT_SETTINGS_LABEL_ALIGNMENT")},component:"AlignmentSetting",fnValue:"getDataAlignmentFormat",isHidden:"isSeparator",props:{hiddenByState:!0}},verticalAlignment:{title:"",component:"VerticalAlignmentSetting",fnValue:"getDataFormattingVerticalAlignmentFormat",isHidden:"isSeparator",props:{hiddenByState:!0}},columnWordWrap:{get title(){return o.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_WORD_WRAP")},component:"ButtonHighlight",fnValue:"getDataWordWrap",isHidden:"isSeparator",staticProps:{defaultIcon:"icon-word-wr"},props:{loadValue:"getDataWordWrap",propertyKey:"wordWrap",get description(){return o.default.getText("BUTTON_HIGHLIGHT_WRAP_TEXT")},states:[{value:!1,icon:"icon-word-wr"},{value:!0,icon:"icon-word-wr active"}],disabledIcon:"icon-word-wr"}},sort:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_SORT")},component:"ButtonHighlight",fnValue:"getValueByKey",isHidden:"isHiddenSort",staticProps:{defaultIcon:"icon-unsort"},props:{loadValue:"getSortValue",propertyKey:"sort",get description(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_SORT")},beforeOnChange:"beforeChangeSorting",loadStates:"getSortList",isEmptyValue:"isEmptySortValue",disabled:"isRunningField"}},color:{get title(){return o.default.getText("COMMON_LABEL_COLOR")},component:"TextCellColorSettings",fnValue:"getDataTypeTextCellColor",staticProps:{allowNullValueOverwrite:!0,cellComponent:a(473)},props:{fnResetTextDefaultValue:"fnResetTextDefaultValue",fnResetCellDefaultValue:"fnResetCellDefaultValue",hiddenByState:"hiddenColorByReportPartType",loadValue:"getDataTypeTextCellColor",isGridReport:"isGridReport"}},alternativeText:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_ALTERNATIVE_TEXT")},type:"btnPopup",fnValue:"getAlternativeText",props:{dataType:"getSettingDataType",dateTimeFormatData:"getDateTimeFormatData",fnResetDefaultValue:"resetDefaultAlternativeText",hadSetting:"hasSettingAlternativeText",loadValue:"getAlternativeText",hiddenByState:"hiddenAlternativeTextByReportPartType"},staticProps:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_ALTERNATIVE_TEXT_SETTINGS")},className:"icon-setting btn-icon",get popupTitle(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_ALTERNATIVE_TEXT_SETTINGS")},popupContent:a(473),popupProps:{type:"none",autoClose:!1,sizeClass:"modal-lg"},popupContentProps:{validateMessages:s,valueProps:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_ALTERNATIVE_TEXT")},type:"text"},beforeClosing:"beforeClosing",allowNullValueOverwrite:!0}}},customURL:{get title(){return o.default.getText("COMMON_LABEL_CUSTOM_URL")},type:"btnPopup",fnValue:"getCustomUrl",props:{checkUniqLinkOption:"checkUniqLinkOption",hadSetting:"hasSettingCustomURL",loadValue:"getCustomUrl",hiddenIconSettingSubReport:"hiddenIconSettingSubReport",fnResetDefaultValue:"resetDefaultCustomURL",hiddenByState:"hiddenByReportPartType"},isHidden:"isHiddenCustomURL",staticProps:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_CUSTOM_URL_SETTINGS")},className:"icon-setting btn-icon",get popupTitle(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_CUSTOM_URL_SETTINGS")},popupContent:a(1139),popupProps:{type:"none",autoClose:!1},popupContentProps:{beforeClosing:"beforeClosing"}}},embeddedJavascript:{get title(){return o.default.getText("COMMON_LABEL_EMBEDDED_JAVASCRIPT")},type:"btnPopup",fnValue:"getEmbeddedScript",props:{checkUniqLinkOption:"checkUniqLinkOption",hadSetting:"hasSettingEmbeddedJavascript",loadValue:"getEmbeddedScript",hiddenIconSettingSubReport:"hiddenIconSettingSubReport",fnResetDefaultValue:"resetDefaultEmbeddedJavascript",hiddenByState:"hiddenByReportPartType"},isHidden:"isHiddenEmbeddedJavascript",staticProps:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_EMBEDDED_JAVASCRIPT_SETTINGS")},className:"icon-setting btn-icon",get popupTitle(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_EMBEDDED_JAVASCRIPT_SETTINGS")},popupContent:a(2011),popupProps:{type:"none",autoClose:!1},popupContentProps:{beforeClosing:"beforeClosing"}}},subTotal:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_SUBTOTAL")},component:"CalculatedFieldProperties",fnValue:"getDataSubTotal",props:{fieldStore:"getFieldStore",hadSetting:"hasSettingSubTotal",fieldSetting:"getFieldSetting",loadValue:"getDataSubTotal",fnResetDefaultValue:"resetDefaultSubTotal",disabled:"isRunningField",afterOnChange:"afterOnChangeSubTotal"},isHidden:"isHiddenSubTotal",staticProps:{requireLabel:!1,get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_SUBTOTAL_SETTINGS")},type:i.default.TYPES.SUB_TOTAL,className:"icon-setting btn-icon",isSubTotalSetting:!0}},grandTotal:{get title(){return o.default.getText("COMMON_LABEL_GRAND_TOTAL")},component:"CalculatedFieldProperties",fnValue:"getDataGrandTotal",props:{fieldStore:"getFieldStore",hadSetting:"hasSettingGrandTotal",loadValue:"getDataGrandTotal",fnResetDefaultValue:"resetDefaultGrandTotal",disabled:"isRunningField"},staticProps:{requireLabel:!1,get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_GRAND_TOTAL_SETTING")},className:"icon-setting btn-icon",type:i.default.TYPES.GRAND_TOTAL}}}},headerFormating:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_HEADER_FORMATING")},icon:"icon-toggle-triangle"},hiddenByState:"hiddenByReportPartType"},fields:{fontFormat:{get title(){return o.default.getText("FONT_SETTINGS_LABEL_FONT")},component:"FontFormat",fnValue:"getHeaderFontFormat",staticProps:{blankOption:!0},props:{hiddenByState:"hiddenByReportPartType"}},fontStyle:{title:"",component:"FontStyle",fnValue:"getHeaderFontStyle",props:{hiddenByState:"hiddenByReportPartType"}},alignment:{get title(){return o.default.getText("FONT_SETTINGS_LABEL_ALIGNMENT")},component:"AlignmentSetting",fnValue:"getHeaderAlignmentFormat",isHidden:"isSeparator",props:{hiddenByState:!0}},verticalAlignment:{title:"",component:"VerticalAlignmentSetting",fnValue:"getHeaderVerticalAlignmentFormat",isHidden:"isSeparator",props:{hiddenByState:!0}},color:{get title(){return o.default.getText("COMMON_LABEL_COLOR")},component:"ColorStyling",fnValue:"getHeaderColorStyling",props:{type:"photoshop",position:"left"}},wordWrap:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_WORD_WRAP")},component:"ButtonHighlight",fnValue:"getValueByKey",staticProps:{defaultIcon:"icon-word-wr"},props:{loadValue:"getWordWrapValue",propertyKey:"wordWrap",get description(){return o.default.getText("BUTTON_HIGHLIGHT_WRAP_TEXT")},states:[{value:!1,icon:"icon-word-wr"},{value:!0,icon:"icon-word-wr active"}],hiddenByState:"hiddenByReportPartType"}},verticalHeader:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_VERTICAL_HEADER")},type:"checkbox",fnValue:"getValueByKey",isHidden:"isVerticalHeaderHidden",props:{}},verticalHeaderHeight:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_HEADER_HEIGHT")},component:"SizeSetting",fnValue:"getVerticalHeaderHeight",isHidden:"isVerticalHeaderHeightHidden",props:{loadValue:"getHeightValue",propertyKey:"verticalHeaderHeight.value"}},columnGroup:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_COLUMN_GROUP")},component:"CustomInput",fnValue:"getValueByKey",props:{title:n.MESSAGE.COLUMN_GROUP_TOOLTIP,hiddenByState:"hiddenByReportPartType"}}}},drillDown:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_DRILL_DOWN")},icon:"icon-toggle-triangle"},hiddenByState:"hiddenByReportPartType"},fields:{subReport:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_SUB_REPORT")},type:"btnPopup",fnValue:"getSubReport",isHidden:"isHiddenSubReport",props:{fieldStore:"getFieldStore",className:"icon-setting btn-icon",stypeOptions:"stypeOptions",hiddenIconSettingSubReport:"hiddenIconSettingSubReport",checkUniqLinkOption:"checkUniqLinkOption",checkEmbeddedLinkOption:"checkEmbeddedLinkOption",hadSetting:"hasSettingSubReport",loadValue:"getSubReport",fnResetDefaultValue:"resetDefaultSubReport"},staticProps:{get title(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_SUB_REPORT_SETTING")},get popupTitle(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_SUB_REPORT_SETTING")},popupContent:a(2012),popupProps:{type:"none",autoClose:!1},popupContentProps:{settingsBtn:[{get label(){return o.default.getText("REPORT_PART_FIELD_PROP_SCHEMA_ADD_FIELD_MAPPING")},action:"addMappingField",ref:"addMappingField",disabledBy:"selectedReport"}],beforeClosing:"beforeClosing"}}}}}}},e.exports=t.default},,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=m(a(17)),s=m(a(23)),u=m(a(2)),d=m(a(3)),c=a(5),p=a(211),f=a(1),h=m(a(320));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function E(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var y=(r=function(){function e(){(0,u.default)(this,e),g(this,"selectedValueType",n,this),g(this,"settingsValue",i,this),g(this,"editMode",o,this),this.setSettingValue=function(e){e=e||{},this.setValueByType("none",e),this.setValueByType("value",e),this.setValueByType("rangeValue",e),this.setValueByType("rangePercent",e),this.setValueByType("allValues",e)}}return(0,d.default)(e,[{key:"setValueByType",value:function(e,t){var a=t[e];if(a){var r=(p.VALUE_TYPES[e]||{}).dataStructure||{},n=(0,f.map)(function(e){var t=(0,f.defaults)(r,e);return t.fields=(0,f.map)(function(e){var t=new h.default;return t.populateFieldFromObject(e),t},t.fields),t},a);this.settingsValue[e]=(0,c.observable)(n),this.selectedValueType=e,this.editMode=!0}else this.settingsValue[e]=[]}},{key:"disableEditMode",value:function(){this.editMode=!1}},{key:"getSettingValue",value:function(){this.removeUnSelectSettingValue();var e={};return e[this.selectedValueType]=(0,c.observable)(this.selectedSettingsList),(0,f.isEmpty)(e.rangeValue)&&(e.rangeValue=null),(0,f.isEmpty)(e.rangePercent)&&(e.rangePercent=null),(0,f.isEmpty)(e.allValues)&&(e.allValues=null),(0,f.isEmpty)(e[this.selectedValueType])&&(e[this.selectedValueType]=null),e}},{key:"removeUnSelectSettingValue",value:function(){var e=this.selectedSettingsList;this.settingsValue.value=[],this.settingsValue.rangeValue=[],this.settingsValue.rangePercent=[],this.settingsValue.allValues=[],this.settingsValue[this.selectedValueType]=e,this.removeEmptySettingValue()}},{key:"removeEmptySettingValue",value:function(e,t){var a=this.selectedValueType;this.settingsValue[a]=this.settingsValue[a].filter(function(r){return"value"===a?r.thresholdType===p.THRESHOLD.THRESHOLD_TYPES.DYNAMIC.value||(t?!!r.text:!!r.key||!!r.text):e?!!(r.from||r.to||r.text||r.name):!!r.from||!!r.to||!!r.text})}},{key:"isExistsUncompleteRangeValue",value:function(e){if("none"===this.selectedValueType||"value"===this.selectedValueType)return!1;var t=function(e){return!(!e&&0!==e)};return!!(0,f.find)(function(a){var r=!1;return e?t(a.from)===t(a.to)&&t(a.to)===t(a.name)||(r=!0):t(a.from)!==t(a.to)&&(r=!0),r},this.selectedSettingsList)}},{key:"checkConstrains",value:function(e,t){var a=this.selectedValueType,r=function(e,t){return e.thresholdType===t.thresholdType&&("dynamic"===e.thresholdType?(0,f.getOr)(null,"fields[0].fieldId",e)===(0,f.getOr)(null,"fields[0].fieldId",t)&&(0,f.getOr)(null,"functionId",e)===(0,f.getOr)(null,"functionId",t):"dynamic_subtotal"===e.thresholdType?(0,f.getOr)(null,"functionId",e)===(0,f.getOr)(null,"functionId",t):e.key===t.key)},n=this.settingsValue[a],i=0,o=0,l=[],s=[],u={},d={};function c(e){(0,f.isNil)(u[e])&&(s.push(n[e]),u[e]=n[e])}function p(e,t){return e.from>e.to&&(t.from>e.from||t.to>e.from||t.from=n[i].to)c(i);else for(o=i+1;o<=n.length-1;o++)n[o].from>=n[o].to?c(o):n[o].from1&&void 0!==arguments[1]?arguments[1]:null)||e){case L.TEXT:return"text";case L.MONEY:case L.NUMERIC:return"number";case L.BOOLEAN:return"select";case L.DATETIME:return"datetime";case L.TIME:return"time";default:return"text"}}},{key:"getDateTimeFormatData",value:function(e){return(0,E.isFunction)(e)?e():e}}]),t}(m.Component)).prototype,"loadThresholdFieldFunctions",[h.action],(0,i.default)(n.prototype,"loadThresholdFieldFunctions"),n.prototype),O(n.prototype,"onInputFieldChanged",[h.action],(0,i.default)(n.prototype,"onInputFieldChanged"),n.prototype),O(n.prototype,"onSubtotalFunctionChanged",[h.action],(0,i.default)(n.prototype,"onSubtotalFunctionChanged"),n.prototype),r=n))||r;t.default=F,e.exports=t.default},function(e,t,a){"use strict";var r=y(a(654)),n=y(a(10)),i=a(1),o=a(24),l=y(a(25)),s=y(a(19)),u=y(a(475)),d=y(a(476)),c=y(a(115)),p=y(a(381)),f=y(a(212)),h=y(a(29)),m=y(a(181)),g=y(a(679)),E=y(a(75));function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,l.default)()(s.default),T=(0,l.default)()(c.default),_=(0,l.default)()(h.default),S=(0,l.default)()(m.default),C=(0,l.default)()(g.default),b=(0,l.default)()(p.default);function N(e,t){var a=t.value,r=t.onChange,n=(0,i.has)("validations",t);return{props:{type:e,className:"default",containerClassName:e,checked:!!a,onChange:(0,o.notifyChange)(r,o.CHECKBOX)},component:n?v:s.default}}function A(e,t){var a=t.className,r=t.onChange,l=(0,i.has)("validations",t);return{props:{className:(0,n.default)("form-control",a),containerClassName:"",onChange:(0,o.notifyChange)(r,o.INPUT)},component:l?v:s.default}}function R(e,t){var a=t.className,r=t.onChange,n=(0,i.has)("validations",t);return{props:{className:a,onChange:(0,o.notifyChange)(r)},component:n?T:c.default}}function O(e,t){var a=t.className,r=t.onChange;return{props:{className:a,onChange:(0,o.notifyChange)(r,o.COLOR)},component:f.default}}function I(e,t){var a=t.className,r=t.onChange,n=(0,i.has)("validations",t);return{props:{className:a,onChange:(0,o.notifyChange)(r,o.DROPDOWN)},component:n?_:h.default}}function D(e,t){var a=t.className,r=t.onChange,n=(0,i.has)("validations",t);return{props:{className:a,calendar:!1,onChange:(0,o.notifyChange)(r,o.DATE)},component:n?S:m.default}}function P(e,t){var a=t.className,r=t.onChange,n=(0,i.has)("validations",t);return{props:{className:a,time:!1,onChange:(0,o.notifyChange)(r,o.DATE)},component:n?S:m.default}}function L(e,t){var a=t.className,r=t.onChange,n=t.groupByDateTime,l=(0,i.has)("validations",t);return{props:{className:a,groupByDateTime:n,onChange:(0,o.notifyChange)(r,o.DATE)},component:l?C:g.default}}function M(e,t){var a=t.className,r=t.value;return{props:{className:a,tooltip:r},child:r,component:E.default}}function F(e,t){return{props:{className:t.className,onClosed:t.onChange,onChange:t.onChangePopup},component:u.default}}function k(e,t){return{props:{className:t.className,onChange:t.onChange},component:d.default}}function x(e,t){var a=t.className,r=t.onChange;return{props:{className:(0,n.default)("form-control",a),containerClassName:"",onChange:(0,o.notifyChange)(r,o.INPUT)},component:hasValidation?b:p.default}}r.default.register("checkbox",N),r.default.register("radio",N),r.default.register("text",A),r.default.register("password",A),r.default.register("file",A),r.default.register("number",R),r.default.register("color",O),r.default.register("select",I),r.default.register("time",D),r.default.register("date",P),r.default.register("datetime",L),r.default.register("static",M),r.default.register("btnPopup",F),r.default.register("btnGroup",k),r.default.register("customInput",x)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var r,n,i,o;r=a(0),n=a(377),i=a(322),o=r.createClass({displayName:"Hue",componentWillUnmount:function(){this.unbindEventListeners()},handleChange:function(e,t){var a=i.hueCalculateChange(e,t,this.props,this.refs.container);a&&this.props.onChange(a)},handleMouseDown:function(e){this.handleChange(e,!0),n.on(window,"mousemove",this.handleChange),n.on(window,"mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){n.off(window,"mousemove",this.handleChange),n.off(window,"mouseup",this.handleMouseUp)},render:function(){return r.createElement("div",{className:"izenda-Hue"},r.createElement("div",{className:"izenda-Hue-container",ref:"container",onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("div",{className:"izenda-Hue-pointer"},r.createElement("div",null,r.createElement("div",{className:"izenda-Hue-left"},r.createElement("div",{className:"izenda-Hue-leftInside"})),r.createElement("div",{className:"izenda-Hue-right"},r.createElement("div",{className:"izenda-Hue-rightInside"}))))))}}),e.exports=o},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(377),i=a(322),o=a(1).throttle,l=r.createClass({displayName:"Saturation",componentWillUnmount:function(){this.unbindEventListeners()},handleChange:function(e,t){o(50,function(){this.props.onChange(i.saturationCalculateChange(e,t,this.props,this.refs.container))}.bind(this))()},handleMouseDown:function(e){this.handleChange(e,!0),n.on(window,"mousemove",this.handleChange),n.on(window,"mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){n.off(window,"mousemove",this.handleChange),n.off(window,"mouseup",this.handleMouseUp)},render:function(){var e={background:"hsl("+this.props.hsl.h+",100%, 50%)"},t={top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%"};return r.createElement("div",{className:"izenda-Saturation",style:e,ref:"container",onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("div",{className:"izenda-Saturation-wrapper"},r.createElement("div",{className:"izenda-Saturation-content"}),r.createElement("div",{className:"izenda-Saturation-pointer",style:t},r.createElement("div",{className:"izenda-Saturation-circle"}))))}}),e.exports=l},function(e,t,a){"use strict";var r,n,i;r=a(0),n=a(4),i=r.createClass({displayName:"ColorPreviews",render:function(){var e=this.props.rgb,t=this.props.localization,a={background:"rgb("+e.r+","+e.g+", "+e.b+")"},n={background:this.props.currentColor};return r.createElement("div",null,r.createElement("div",{className:"izenda-ColorPreviews-label"},t.getText("COLOR_DIALOG_LABEL_NEW")),r.createElement("div",{className:"izenda-ColorPreviews-swatches"},r.createElement("div",{className:"izenda-ColorPreviews-new",style:a}),r.createElement("div",{className:"izenda-ColorPreviews-current",style:n})),r.createElement("div",{className:"izenda-ColorPreviews-label"},t.getText("COLOR_DIALOG_LABEL_CURRENT")))}}),e.exports=n()(i)},function(e,t,a){"use strict";var r,n,i,o;r=a(0),n=a(1903),i=a(322),o=r.createClass({displayName:"ColorFields",propTypes:{disabled:r.PropTypes.bool,onChange:r.PropTypes.func,rgb:r.PropTypes.object,hsv:r.PropTypes.object,hex:r.PropTypes.string},handleChange:function(e){var t=this.props.onChange,a=this.props.rgb,r=this.props.hsv,n=this.props.alpha;e["#"]?i.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?t({r:e.r||a.r,g:e.g||a.g,b:e.b||a.b,source:"rgb"},e.a||n):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"})},render:function(){var e=this.props.rgb,t=this.props.hsv,a=this.props.hex,i=this.props.alpha;return r.createElement("div",{className:"izenda-ColorFields"},r.createElement(n,{label:"h",value:Math.round(t.h),onChange:this.handleChange}),r.createElement(n,{label:"s",value:Math.round(100*t.s),onChange:this.handleChange}),r.createElement(n,{label:"v",value:Math.round(100*t.v),onChange:this.handleChange}),r.createElement("div",{className:"izenda-ColorFields-divider"}),r.createElement(n,{label:"r",value:e.r,onChange:this.handleChange}),r.createElement(n,{label:"g",value:e.g,onChange:this.handleChange}),r.createElement(n,{label:"b",value:e.b,onChange:this.handleChange}),this.props.isAlpha&&r.createElement(n,{label:"a",value:i,onChange:this.handleChange}),r.createElement("div",{className:"izenda-ColorFields-divider"}),r.createElement(n,{type:"hex",label:"#",value:a.replace("#",""),onChange:this.handleChange}),r.createElement("div",{className:"izenda-ColorFields-fieldSymbols"},r.createElement("div",{className:"izenda-ColorFields-symbol"},"°"),r.createElement("div",{className:"izenda-ColorFields-symbol"},"%"),r.createElement("div",{className:"izenda-ColorFields-symbol"},"%")))}}),e.exports=o},function(e,t,a){"use strict";var r,n,i,o,l=a(80),s=(r=l)&&r.__esModule?r:{default:r};n=a(0),i=a(377),o=n.createClass({displayName:"EditableInput",getInitialState:function(){var e=this.props;return{value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()}},componentWillReceiveProps:function(e){var t=this.refs.input;e.value!==this.state.value&&(t===document.activeElement?this.setState({blurValue:String(e.value).toUpperCase()}):this.setState({value:String(e.value).toUpperCase()}))},componentWillUnmount:function(){this.unbindEventListeners()},handleBlur:function(){this.state.blurValue&&this.setState({value:this.state.blurValue,blurValue:null})},handleChange:function(e){this.props.label?this.props.onChange((0,s.default)({},this.props.label,e.target.value)):this.props.onChange(e.target.value),this.setState({value:e.target.value})},handleKeyDown:function(e){var t=Number(e.target.value);if(t){var a=this.props.arrowOffset||1;38===e.keyCode&&(null!==this.props.label?this.props.onChange((0,s.default)({},this.props.label,t+a)):this.props.onChange(t+a),this.setState({value:t+a})),40===e.keyCode&&(null!==this.props.label?this.props.onChange((0,s.default)({},this.props.label,t-a)):this.props.onChange(t-a),this.setState({value:t-a}))}},handleDrag:function(e){if(this.props.dragLabel){var t=Math.round(this.props.value+e.movementX);t>=0&&t<=this.props.dragMax&&this.props.onChange((0,s.default)({},this.props.label,t))}},handleMouseDown:function(e){this.props.dragLabel&&(e.preventDefault(),this.handleDrag(e),i.on(window,"mousemove",this.handleDrag),i.on(window,"mouseup",this.handleMouseUp))},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){i.off(window,"mousemove",this.handleDrag),i.off(window,"mouseup",this.handleMouseUp)},render:function(){var e="hex"===this.props.type?"izenda-EditableInput-hexInput":"izenda-EditableInput-input",t="hex"===this.props.type?"izenda-EditableInput-hexLabel":"izenda-EditableInput-label";return n.createElement("div",{className:"u-posRelative izenda-EditableInput"},n.createElement("input",{className:e,ref:"input",value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder}),this.props.label?n.createElement("span",{className:t,onMouseDown:this.handleMouseDown},this.props.label):null)}}),e.exports=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u=I(a(17)),d=I(a(14)),c=I(a(6)),p=I(a(2)),f=I(a(3)),h=I(a(7)),m=I(a(8)),g=a(0),E=I(g),y=I(a(660)),v=a(5),T=a(494),_=I(a(495)),S=I(a(22)),C=I(a(4)),b=I(a(47)),N=I(a(678)),A=a(1),R=a(129),O=I(a(35));function I(e){return e&&e.__esModule?e:{default:e}}function D(e,t,a,r){a&&(0,u.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function P(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var L=";#",M=(0,C.default)(N.default)((s=l=function(e){function t(e){(0,p.default)(this,t);var a=(0,h.default)(this,(t.__proto__||(0,c.default)(t)).call(this,e));return D(a,"model",i,a),D(a,"values",o,a),a.setAnchor=function(e){a.anchor=O.default.findDOMNode(e),a.selectInput=e},a.onAddNew=function(e){var t=a.props.displayFormat,r=(0,S.default)(e.value,t,!0);return(0,R.isDateTimeValid)(r)},a.onSelect=function(e){var t=a.props.displayFormat;a.selectInput.changeInputValue(e.format(t)),a.selectInput.focus()},a.syncDateTimeToInput=function(){a.selectInput.changeInputValue(a.model.inputValue)},a.onChange=function(e){var t=a.props,r=t.displayFormat,n=t.storeFormat,i=t.onChange,o=(0,A.isEmpty)(e)?e:(0,A.flow)((0,A.split)(L),(0,A.map)(function(e){return(0,S.default)(e,r,!0).format(n)}),(0,A.join)(L))(e);i&&i(o)},a.model=new _.default,a.values=[],a.setFormats(e),a.setData(e),a}return(0,m.default)(t,e),(0,f.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,a=t.displayFormat,r=t.storeFormat,n=t.visible,i=e.displayFormat,o=e.storeFormat,l=e.visible;(a!==i||r!==o)&&this.setFormats(e),this.setData(e),n&&!l&&this.clearInput(e)}},{key:"setFormats",value:function(e){var t=e.displayFormat,a=e.storeFormat;this.model.setFormats(t,a)}},{key:"setData",value:function(e){var t=e.value,a=e.displayFormat,r=e.storeFormat;(0,A.isEmpty)(t)?this.values=[]:this.values=(0,A.flow)((0,A.split)(L),(0,A.map)(function(e){var t=(0,R.parseDateTime)(e,[a,r]);return(0,R.isDateTimeValid)(t)?t.format(a):""}),A.compact)(t)}},{key:"clearInput",value:function(){this.selectInput&&this.selectInput.changeInputValue("")}},{key:"renderControl",value:function(){var e=this.props,t=e.placeholder,a=e.onKeyDownInput,r=e.onChangeInput,n=e.onFocusInput,i=(0,A.map)(function(e){return{label:e,value:e}},this.values),o=i.map(function(e){return e.value}).join(L)||"";return E.default.createElement(b.default,{ref:this.setAnchor,simpleValue:!0,placeholder:t,className:"izenda-DateTimePicker-select u_fullWidth",controlClass:"fitContent",delimiter:L,textboxMode:!0,multi:!0,hiddenMenu:!0,options:i,scalable:!1,inputMaxHeight:90,value:o,onAddNew:this.onAddNew,onChange:this.onChange,onBlurResetsInput:!1,onInputChange:r(this.model,this.syncDateTimeToInput),onInputKeyDown:a(this.model,this.syncDateTimeToInput),onFocus:n(this.model)})}},{key:"render",value:function(){var e=this.props,t=e.calendar,a=e.time,r={onSelect:this.onSelect,value:this.model.dateTime},n=this.props.containerProps.visible,i=(0,A.merge)(this.props.containerProps,{visible:n&&(t||!a)});return E.default.createElement(y.default,(0,d.default)({calendarProps:r,anchor:this.anchor,pickerAsPopover:!0,pickerWidth:T.PickerDimension.SINGLE_WIDTH},i),this.renderControl())}}]),t}(g.Component),l.propTypes={onChange:g.PropTypes.func.isRequired,visible:g.PropTypes.bool.isRequired,hidePicker:g.PropTypes.func.isRequired,containerProps:g.PropTypes.object.isRequired,value:g.PropTypes.string,onBlur:g.PropTypes.func,displayFormat:g.PropTypes.string,storeFormat:g.PropTypes.string,renderInContainer:g.PropTypes.bool,disabled:g.PropTypes.bool,name:g.PropTypes.string,placeholder:g.PropTypes.string},i=P((n=s).prototype,"model",[v.observable],{enumerable:!0,initializer:function(){return null}}),o=P(n.prototype,"values",[v.observable],{enumerable:!0,initializer:function(){return null}}),r=n))||r;t.default=M,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=C(a(14)),l=C(a(80)),s=C(a(6)),u=C(a(2)),d=C(a(3)),c=C(a(7)),p=C(a(8)),f=a(0),h=C(f),m=C(a(13)),g=C(a(10)),E=C(a(22)),y=a(1),v=a(1906),T=a(141),_=C(a(1998)),S=a(129);function C(e){return e&&e.__esModule?e:{default:e}}var b={toDay:new Date},N=(n=r=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));i.call(a);var r=a.props,n=r.hasRange,o=r.value;return n&&(a.originalRange=o||[null,null]),a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentWillUpdate",value:function(){var e=this.props,t=e.hasRange,a=e.value;t&&(this.originalRange=a||[null,null])}},{key:"convertValueForPicker",value:function(e){var t=e.value,a=e.minDate,r=e.maxDate,n=e.hasRange;return(0,y.isNil)(t)?null:n&&!(0,y.isEmpty)(t)?[(0,y.isNil)(t[0])?null:(0,S.isDateTimeValid)(t[0])&&t[0]>=a?t[0].toDate():a,(0,y.isNil)(t[1])?null:(0,S.isDateTimeValid)(t[1])&&t[1]<=r?t[1].toDate():r]:(0,S.isDateTimeValid)(t)&&t>=a&&t<=r?t.toDate():null}},{key:"componentWillReceiveProps",value:function(e){var t=e.hasRange,a=e.hasTime;if(t&&a){var r=this.convertValueForPicker(e);this.updateValue(r)}}},{key:"render",value:function(){var e,t=this.props,a=t.hasRange,r=t.hasDate,n=t.hasTime,i=t.minDate,s=t.maxDate,u=t.locale,d=t.disabled,c=t.boundaryToModify,p=this.getType(a,r,n),f=this.getComponent(p),m=f.Component,v=f.defaultProps,_=n?"second":null,S=this.convertValueForPicker(this.props),C=(0,y.assign)(v,{value:S,formatDate:function(e){return E.default.formatDate(e)},parseDate:function(e){return E.default.parseDate(e)},onChange:a?this.onChangeRange:this.onChange,precision:_,timePrecision:_,maxDate:s,minDate:i,locale:u,disabled:d,boundaryToModify:c});_&&(C.timePickerProps={onChange:this.onChange});var b=(0,g.default)((e={},(0,l.default)(e,T.Classes.ELEVATION_1,r),(0,l.default)(e,"three-sections","second"===_),e));return h.default.createElement("div",{className:"izenda-DateTimeCalendar"},h.default.createElement(m,(0,o.default)({ref:this.setPickerRef,className:b},C)))}}]),t}(f.PureComponent),r.propTypes={value:m.default.oneOfType([m.default.object,m.default.array]),onSelect:m.default.func.isRequired,hasRange:m.default.bool,hasDate:m.default.bool,hasTime:m.default.bool,minDate:m.default.object,maxDate:m.default.object},i=function(){var e=this;this.originalRange=[null,null],this.getComponent=function(e){switch(e){case"DatePicker":return{Component:v.DatePicker,defaultProps:{showActionsBar:!0,canClearSelection:!1,dayPickerProps:{modifiers:b}}};case"TimePicker":return{Component:_.default};case"DateRangePicker":return{Component:v.DateRangePicker,defaultProps:{shortcuts:!1,allowSingleDayRange:!0}}}return{}},this.getType=function(e,t,a){switch(!0){case e&&t&&a:case e&&t&&!a:return"DateRangePicker";case a&&!t:case e&&!t&&a:return"TimePicker";default:return"DatePicker"}},this.onChange=function(t,a){var r=e.props.onSelect;if(a||(0,y.isUndefined)(a)){var n=(0,y.isNil)(t)?null:(0,E.default)(t);r&&r(n)}},this.onChangeRange=function(t){var a=e.props,r=a.onSelect,n=a.boundaryToModify,i=a.minDate,o=a.maxDate,l=(0,y.map)(function(e){return(0,y.isNil)(e)?null:(0,E.default)(e)},t);n!==T.Boundary.START&&l[0]&&e.originalRange[0]&&e.originalRange[0]o&&(l[1]=e.originalRange[1]),r&&r(l)},this.setPickerRef=function(t){return e.pickerRef=t},this.updateValue=function(t){e.pickerRef.setState({value:t,time:t})}},n);t.default=N,e.exports=t.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=S(a(58)),s=S(a(652)),u=S(a(14)),d=S(a(6)),c=S(a(2)),p=S(a(3)),f=S(a(7)),h=S(a(8)),m=S(a(80)),g=a(141),E=S(a(10)),y=a(0),v=S(y),T=a(1),_=S(a(22));function S(e){return e&&e.__esModule?e:{default:e}}var C=g.Classes.getClassNamespace()+"-timepicker",b=C+"-input-row",N=C+"-minute",A=C+"-second",R=C+"-hour",O=C+"-input",I=C+"-divider-text",D=0,P=0,L=0,M=0,F=23,k=59,x=59,w=999,B={HOUR_24:"hour24",MINUTE:"minute",SECOND:"second"},U=(r={},(0,m.default)(r,B.HOUR_24,{className:R,max:F,min:D,placeHolder:"HH"}),(0,m.default)(r,B.MINUTE,{className:N,max:k,min:P,placeHolder:"mm"}),(0,m.default)(r,B.SECOND,{className:A,max:x,min:L,placeHolder:"ss"}),r),z=(i=n=function(e){function t(e){(0,c.default)(this,t);var a=(0,f.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));o.call(a);var r=e.defaultValue;return(0,T.isUndefined)(e.value)||(r=e.value),a.state=a.getFullStateFromValue(r),a.clonedState=(0,T.cloneDeep)(a.state),a}return(0,h.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=(0,E.default)(C,this.props.className,(0,m.default)({},g.Classes.DISABLED,this.props.disabled));return v.default.createElement("div",{className:e},v.default.createElement("div",{className:b},this.renderInput(R,B.HOUR_24,this.state.hourText),this.renderDivider(),this.renderInput(N,B.MINUTE,this.state.minuteText),this.renderDivider(),this.renderInput(A,B.SECOND,this.state.secondText)))}},{key:"componentWillReceiveProps",value:function(e){var t=e.minTime!==this.props.minTime,a=e.maxTime!==this.props.maxTime,r=t||a,n=this.state.value;r&&(n=q(this.state.value,e.minTime,e.maxTime)),H(e.value,this.props.value)||(n=e.value),this.setState(this.getFullStateFromValue(n))}},{key:"renderDivider",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":";return v.default.createElement("span",{className:I},e)}},{key:"renderInput",value:function(e,t,a){return v.default.createElement("input",{className:(0,E.default)(O,e),onBlur:this.getInputBlurHandler(t),onChange:this.getInputChangeHandler(t),onFocus:this.handleFocus,onKeyDown:this.getInputKeyDownHandler(t),value:a,disabled:this.props.disabled,placeholder:function(e){return U[e].placeHolder}(t)})}},{key:"getFullStateFromValue",value:function(e){var t=q(e,this.props.minTime,this.props.maxTime);return{hourText:t?V(t.getHours(),B.HOUR_24):"",minuteText:t?V(t.getMinutes(),B.MINUTE):"",secondText:t?V(t.getSeconds(),B.SECOND):"",value:t}}},{key:"shiftTime",value:function(e,t){if(!this.props.disabled&&this.state.value){var a=function(e,t){switch(e){case B.HOUR_24:return t.getHours();case B.MINUTE:return t.getMinutes();case B.SECOND:return t.getSeconds();default:throw Error("Invalid TimeUnit")}}(e,this.state.value)+t;this.updateTime(function(e,t){var a=X(e),r=J(e);if(t>a)return r;if(t2&&void 0!==arguments[2])||arguments[2],r=!0,n=!1,i=void 0;try{for(var o,u=(0,s.default)((0,l.default)(t));!(r=(o=u.next()).done);r=!0){var d=o.value,c=Number(d);e.which===c&&(a&&e.preventDefault(),t[c]())}}catch(e){n=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(n)throw i}}}(a,(r={},(0,m.default)(r,g.Keys.ARROW_UP,function(){return e.incrementTime(t)}),(0,m.default)(r,g.Keys.ARROW_DOWN,function(){return e.decrementTime(t)}),(0,m.default)(r,g.Keys.ENTER,function(){a.currentTarget.blur()}),r))}},this.handleFocus=function(t){e.props.selectAllOnFocus&&t.currentTarget.select(),e.clonedState=(0,T.cloneDeep)(e.state)},this.incrementTime=function(t){return e.shiftTime(t,1)},this.decrementTime=function(t){return e.shiftTime(t,-1)}},i);function V(e,t){switch(t){case B.HOUR_24:return e.toString();case B.MINUTE:case B.SECOND:return a=e.toString(),r=2,a.length=t.getTime()},K=function(e,t){return e.getTime()<=t.getTime()};function W(e,t,a){var r=Q(e),n=Q(t),i=Q(a),o=j(r,n),l=K(r,i);return K(i,n)?o||l:o&&l}function q(e,t,a){return(0,T.isNil)(e)?e:H(t,a)?a:W(e,t,a)?e:function(e,t){var a=Q(e),r=Q(t);return j(a,r)}(e,a)?a:t}function Q(e){return new Date(0,0,0,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function X(e){return U[e].max}function J(e){return U[e].min}e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(a(198)),n=f(a(14)),i=f(a(6)),o=f(a(2)),l=f(a(3)),s=f(a(7)),u=f(a(8)),d=a(0),c=f(d),p=f(a(13));function f(e){return e&&e.__esModule?e:{default:e}}var h={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},m=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],g=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},E=f(a(88)).default.isIEOrEdgeBrowser(),y=function(){return E?"_"+Math.random().toString(36).substr(2,12):void 0},v=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return a.inputRef=function(e){a.input=e,"function"==typeof a.props.inputRef&&a.props.inputRef(e)},a.placeHolderSizerRef=function(e){a.placeHolderSizer=e},a.sizerRef=function(e){a.sizer=e},a.state={inputWidth:e.minWidth,inputId:e.id||y()},a}return(0,u.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||y()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(g(e,this.sizer),this.placeHolderSizer&&g(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)0?this.pages[this.startIndex]:this.newVirtualPage(),this.training)a.append(new L(e[0],!0)),this.training=!1;else for(this.itemHeight||(this.itemHeight=a.items[0].height),this.itemWidth||(this.itemWidth=a.items[0].width),this.release(),r=0,n=e.length;r0?t[t.length-1]:null;a&&a.hasVacancy||(a=this.newVirtualPage()),a.appendSilent(e)}}},{key:"append",value:function(e){if(e){var t=this.pages,a=t.length>0?t[t.length-1]:null;a&&a.hasVacancy||(a=this.newVirtualPage()),a.append(e)}}},{key:"release",value:function(){this.pages=[],M.reset()}},{key:"setViewportDimension",value:function(e,t){this.viewportWidth=e,this.viewportHeight=t,this.repartition()}},{key:"calculateStartIndex",value:function(e){var t=0,a=(0,A.flow)((0,A.map)(function(e){var a={id:e.id,top:t,bottom:t+e.height};return t+=e.height,a}),(0,A.findLast)(function(t){return e>=t.top&&e<=t.bottom}))(this.pages),r=(0,A.getOr)(0,"id",a),n=Math.max(this.pages.length-this.numPageOnScreen,0),i=Math.min(Math.max(r-1,0),n);i!==this.startIndex&&(this.startIndex=i)}},{key:"repartition",value:function(){var e,t=void 0,a=void 0,r=void 0,n=void 0,i=void 0,o=this.pages.peek();this.release();var l=this.newVirtualPage();for(t=0,e=o.length;t=e&&a.id<=t}),(0,A.flatMap)((0,A.get)("items")))(this.pages)}}]),e}(),n=I(r.prototype,"width",[N.observable],{enumerable:!0,initializer:function(){return 0}}),i=I(r.prototype,"startIndex",[N.observable],{enumerable:!0,initializer:function(){return 0}}),o=I(r.prototype,"viewportHeight",[N.observable],{enumerable:!0,initializer:function(){return 0}}),l=I(r.prototype,"viewportWidth",[N.observable],{enumerable:!0,initializer:function(){return 0}}),s=I(r.prototype,"itemHeight",[N.observable],{enumerable:!0,initializer:function(){return 0}}),u=I(r.prototype,"itemWidth",[N.observable],{enumerable:!0,initializer:function(){return 0}}),d=I(r.prototype,"pages",[N.observable],{enumerable:!0,initializer:function(){return[]}}),I(r.prototype,"items",[N.computed],(0,S.default)(r.prototype,"items"),r.prototype),I(r.prototype,"screenPageHeight",[N.computed],(0,S.default)(r.prototype,"screenPageHeight"),r.prototype),I(r.prototype,"bufferHeight",[N.computed],(0,S.default)(r.prototype,"bufferHeight"),r.prototype),I(r.prototype,"virtualItemsOnScreen",[N.computed],(0,S.default)(r.prototype,"virtualItemsOnScreen"),r.prototype),I(r.prototype,"initialize",[N.action],(0,S.default)(r.prototype,"initialize"),r.prototype),I(r.prototype,"append",[N.action],(0,S.default)(r.prototype,"append"),r.prototype),I(r.prototype,"release",[N.action],(0,S.default)(r.prototype,"release"),r.prototype),I(r.prototype,"setViewportDimension",[N.action],(0,S.default)(r.prototype,"setViewportDimension"),r.prototype),I(r.prototype,"repartition",[N.action],(0,S.default)(r.prototype,"repartition"),r.prototype),I(r.prototype,"newVirtualPage",[N.action],(0,S.default)(r.prototype,"newVirtualPage"),r.prototype),r);t.default=D;var P=(c=function(){function e(t){(0,C.default)(this,e),this.id=0,this.parent=null,this.items=[],O(this,"lazyLoaded",p,this),O(this,"onScreen",f,this),this.id=t.pages.length,this.parent=t}return(0,b.default)(e,[{key:"appendSilent",value:function(e){this.items.push(e)}},{key:"append",value:function(e){this.appendSilent(e)}},{key:"top",get:function(){return 0}},{key:"bottom",get:function(){return this.top+this.height}},{key:"width",get:function(){var e=this;return(0,A.flow)((0,A.map)((0,A.get)("width")),(0,A.reduce)(function(t,a){return t+(0===a?e.parent.itemWidth:a)},0))(this.items)}},{key:"height",get:function(){var e=this;return(0,A.flow)((0,A.map)((0,A.get)("height")),(0,A.reduce)(function(t,a){return t+(0===a?e.parent.itemHeight:a)},0))(this.items)}},{key:"hasVacancy",get:function(){return this.height0||0===this.itemHeight?this.pageSize:Math.floor(this.viewHeight/this.itemHeight);return this.pageSize=n,this.training?(t=0,a=this.defaultItemsNumber,r=[]):(t=e.fromIndex,a=n,r=e.parentIds),{fromIndex:t,pageSize:a,parentIds:r}}},{key:"setPageInfoForFirstTime",value:function(){this.pageInfoForFirstTime={fromIndex:0,pageSize:this.defaultItemsNumber,parentIds:[]}}},{key:"updateData",value:function(e,t){this.items=e,this.isLoading=!1,this.isLastPage=t,t&&(this.stop=!0)}},{key:"getVirtualNode",value:function(e){var t=this;if(!(0,v.some)("isRendering",this.virtualNodes)){var a=(0,v.get)("scrollTop",e);return(0,v.find)(function(e){var n=t.viewHeight,i=a,o=i+n,l=e.virtualNodeDom.offsetTop;return o>=l&&l>=i&&r(e.virtualNodeDom).is(":visible")},this.virtualNodes)}}},{key:"setRenderingNode",value:function(e){e.isRendering=!0}},{key:"removeVirtualNode",value:function(){var e=(0,v.find)("isRendering",this.virtualNodes);if(!(0,v.isNil)(e)){var t=(0,v.findIndex)("isRendering",this.virtualNodes);this.virtualNodes.splice(t,1)}}},{key:"showLoading",value:function(){this.isLoading=!0}},{key:"resetVirtualNodes",value:function(){this.virtualNodes.splice(1,this.virtualNodes.length)}},{key:"getItemsOnViewScreen",get:function(){return this.isLastPage?this.items:this.training?(0,v.take)(1,this.items):this.items}}]),e}(),d=S(u.prototype,"items",[E.observable],{enumerable:!0,initializer:function(){return[]}}),c=S(u.prototype,"isLoading",[E.observable],{enumerable:!0,initializer:function(){return!1}}),p=S(u.prototype,"training",[E.observable],{enumerable:!0,initializer:function(){return!0}}),S(u.prototype,"getItemsOnViewScreen",[E.computed],(0,h.default)(u.prototype,"getItemsOnViewScreen"),u.prototype),S(u.prototype,"setupDefaultData",[n],(0,h.default)(u.prototype,"setupDefaultData"),u.prototype),S(u.prototype,"setViewHeight",[i],(0,h.default)(u.prototype,"setViewHeight"),u.prototype),S(u.prototype,"updateData",[o],(0,h.default)(u.prototype,"updateData"),u.prototype),S(u.prototype,"removeVirtualNode",[l],(0,h.default)(u.prototype,"removeVirtualNode"),u.prototype),S(u.prototype,"showLoading",[s],(0,h.default)(u.prototype,"showLoading"),u.prototype),u);t.default=C,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=p(a(6)),o=p(a(2)),l=p(a(3)),s=p(a(7)),u=p(a(8)),d=a(0),c=p(d);a(9);function p(e){return e&&e.__esModule?e:{default:e}}var f=(n=r=function(e){function t(){var e,a,r,n;(0,o.default)(this,t);for(var l=arguments.length,u=Array(l),d=0;d0&&void 0!==arguments[0])||arguments[0],t=a.props.onChange,r=(0,S.map)(function(e){return e.dateTime},a.models);e&&(r=(0,b.reverseRangeValuesIfNeeded)(r)),a.models.forEach(function(e,t){return e.setDateTime(r[t])}),(0,S.some)(function(e){return e.hadValueChanged()},a.models)&&t&&t((0,S.map)(function(e){return e.getSavingValue()},a.models))},a.onSelect=function(e){a.models.forEach(function(t,a){return t.setDateTime(e[a])}),!(0,S.isNil)(a.models[L].dateTime)&&(0,S.isNil)(a.models[M].dateTime)?a.focusInput(M):(0,S.isNil)(a.models[L].dateTime)&&!(0,S.isNil)(a.models[M].dateTime)&&a.focusInput(L),a.save()},a.models=[new A.default,new A.default],a.setFormats(e),a.setData(e),a}return(0,m.default)(t,e),(0,f.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,a=t.displayFormat,r=t.storeFormat,n=e.displayFormat,i=e.storeFormat;(a!==n||r!==i)&&this.setFormats(e),this.setData(e)}},{key:"setData",value:function(e){var t=e.value;this.models.forEach(function(e,a){return e.setData((0,S.get)(a,t))})}},{key:"setFormats",value:function(e){var t=e.displayFormat,a=e.storeFormat;this.models.forEach(function(e){return e.setFormats(t,a)})}},{key:"focusInput",value:function(e){var t=this.props.onFocusInput;this.boundaryToModify=e===L?y.Boundary.START:y.Boundary.END,t(this.models[e])()}},{key:"renderInput",value:function(e){var t=this.props,a=t.disabled,r=t.name,n=t.placeholder,i=t.visible,o=t.onKeyDownInput,l=t.onChangeInput,s=t.setInputDOMNode,u=t.onBlurInput,d=this.models[e],c=this.onFocusInput(e),p=(0,v.default)("izenda-DateTimePicker-input",{"select-boundary":this.boundaryToModify===(e===L?y.Boundary.START:y.Boundary.END)&&i}),f=this.models[e].inputValue;return E.default.createElement(_.default,{type:"text",ref:s(d),value:f,title:f,onBlur:u(d,this.save),onKeyDown:o(d,this.save),onChange:l(d,this.saveWithoutReverseValue),placeholder:n,name:r,className:p,disabled:a,onClick:c,onFocus:c})}},{key:"renderControl",value:function(){return E.default.createElement("div",{ref:this.setAnchor,className:"izenda-FilterRangeInput"},this.renderInput(L),E.default.createElement("div",{className:"izenda-Filter-BetweenIcon"},E.default.createElement("span",{className:"icon-big-arr"})),this.renderInput(M))}},{key:"render",value:function(){var e={boundaryToModify:this.boundaryToModify,onSelect:this.onSelect,value:(0,S.map)(function(e){return e.dateTime},this.models)};return E.default.createElement(T.default,(0,d.default)({anchor:this.anchor,pickerWidth:N.PickerDimension.RANGE_WIDTH,calendarProps:e,hasRange:!0,pickerAsPopover:!0},this.props.containerProps),this.renderControl())}}]),t}(g.Component),l.propTypes={onChange:g.PropTypes.func.isRequired,visible:g.PropTypes.bool.isRequired,hidePicker:g.PropTypes.func.isRequired,containerProps:g.PropTypes.object.isRequired,value:g.PropTypes.array,onBlur:g.PropTypes.func,displayFormat:g.PropTypes.string,storeFormat:g.PropTypes.string,renderInContainer:g.PropTypes.bool,disabled:g.PropTypes.bool,name:g.PropTypes.string,placeholder:g.PropTypes.string},i=P((n=s).prototype,"models",[C.observable],{enumerable:!0,initializer:function(){return null}}),o=P(n.prototype,"boundaryToModify",[C.observable],{enumerable:!0,initializer:function(){return null}}),r=n))||r;t.default=F,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s=b(a(17)),u=b(a(14)),d=b(a(6)),c=b(a(2)),p=b(a(3)),f=b(a(7)),h=b(a(8)),m=a(0),g=b(m),E=b(a(660)),y=b(a(19)),v=a(5),T=a(494),_=b(a(495)),S=(b(a(22)),b(a(4))),C=b(a(678));function b(e){return e&&e.__esModule?e:{default:e}}var N,A,R,O,I,D,P=(0,S.default)(C.default)((l=o=function(e){function t(e){(0,c.default)(this,t);var a,r,n,o,l=(0,f.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));return a=l,r="model",o=l,(n=i)&&(0,s.default)(a,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(o):void 0}),l.setAnchor=function(e){l.anchor=e},l.onSelect=function(e){l.model.setDateTime(e),l.save();var t=l.props,a=t.calendar,r=t.time,n=t.hidePicker;a&&!r&&n()},l.save=function(){var e=l.props.onChange;l.model.hadValueChanged()&&e&&e(l.model.getSavingValue())},l.model=new _.default,l.setFormats(e),l.setData(e),l}return(0,h.default)(t,e),(0,p.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,a=t.displayFormat,r=t.storeFormat,n=e.displayFormat,i=e.storeFormat;(a!==n||r!==i)&&this.setFormats(e),this.setData(e)}},{key:"setFormats",value:function(e){var t=e.displayFormat,a=e.storeFormat;this.model.setFormats(t,a)}},{key:"setData",value:function(e){var t=e.value;this.model.setData(t)}},{key:"renderControl",value:function(){var e=this.props,t=e.name,a=e.disabled,r=e.placeholder,n=e.calendar,i=e.onKeyDownInput,o=e.setInputDOMNode,l=e.onChangeInput,s=e.onBlurInput,u=e.onFocusInput,d=this.model.inputValue;return n&&g.default.createElement("div",{ref:this.setAnchor,className:"u_fullWidth"},g.default.createElement(y.default,{type:"text",ref:o(this.model),value:d,onBlur:s(this.model,this.save),onKeyDown:i(this.model,this.save),onChange:l(this.model,this.save),placeholder:r,name:t,className:"izenda-DateTimePicker-input",disabled:a,onClick:u(this.model),onFocus:u(this.model)}))}},{key:"render",value:function(){var e={onSelect:this.onSelect,value:this.model.dateTime};return g.default.createElement(E.default,(0,u.default)({calendarProps:e,anchor:this.anchor,pickerAsPopover:this.props.calendar,pickerWidth:T.PickerDimension.SINGLE_WIDTH},this.props.containerProps),this.renderControl())}}]),t}(m.Component),o.propTypes={onChange:m.PropTypes.func.isRequired,visible:m.PropTypes.bool.isRequired,hidePicker:m.PropTypes.func.isRequired,containerProps:m.PropTypes.object.isRequired,onBlur:m.PropTypes.func,displayFormat:m.PropTypes.string,storeFormat:m.PropTypes.string,renderInContainer:m.PropTypes.bool,disabled:m.PropTypes.bool,name:m.PropTypes.string,placeholder:m.PropTypes.string},N=(n=l).prototype,A="model",R=[v.observable],O={enumerable:!0,initializer:function(){return null}},D={},Object.keys(O).forEach(function(e){D[e]=O[e]}),D.enumerable=!!D.enumerable,D.configurable=!!D.configurable,("value"in D||D.initializer)&&(D.writable=!0),D=R.slice().reverse().reduce(function(e,t){return t(N,A,e)||e},D),I&&void 0!==D.initializer&&(D.value=D.initializer?D.initializer.call(I):void 0,D.initializer=void 0),void 0===D.initializer&&(Object.defineProperty(N,A,D),D=null),i=D,r=n))||r;t.default=P,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(a(6)),n=p(a(2)),i=p(a(3)),o=p(a(7)),l=p(a(8)),s=a(0),u=p(s),d=(p(a(4)),p(a(34))),c=(p(a(320)),p(a(2009)));function p(e){return e&&e.__esModule?e:{default:e}}var f=a(1),h=f.isEmpty,m=(f.isNull,f.isNil),g=(f.has,function(e){function t(){var e,a,i,l;(0,n.default)(this,t);for(var s=arguments.length,u=Array(s),d=0;d-1&&r.splice(a,1)}},{key:"addHeaderGroup",value:function(e){this.headerGroups[e.ref]=e}},{key:"resetHeaderGroups",value:function(){this.headerGroups={}}},{key:"calculateHeaderGroupWidth",value:function(e){return(0,g.flow)((0,g.slice)(e.startColumn,e.endColumn),g.sum)(this.getActualColumnWidths())}},{key:"updateHeaderHeight",value:function(){C(this.headerElementsPivot[this.maxDeep])}},{key:"updateCellsHeight",value:function(){var e=(0,g.flattenDepth)(1,this.cellElements);C(e)}},{key:"getRowSpanHeight",value:function(e,t){var a=t&&e+t;return this.virtualStore?(0,g.flow)((0,g.map)("height"),g.sum)(this.virtualStore.items.slice(e,a)):0}},{key:"updateHeaderGroupHeight",value:function(){var e=this;h.default.measure(function(){(0,g.flow)((0,g.map)(g.identity),(0,g.groupBy)("deep"),g.toPairs,(0,g.sortBy)(g.head),(0,g.map)(g.last),(0,g.forEach)(function(t){var a=(0,g.map)("ref",t),r=(0,g.flow)((0,g.pick)(a),(0,g.map)(g.identity))(e.headerGroupElements);C(r)}))(e.headerGroups)})}},{key:"updateHeight",value:function(e,t){this.tableHeight=e,(0,g.isUndefined)(t)||(this.headerHeight=t)}},{key:"updateSelectCell",value:function(e){this.selectCell=e}},{key:"updateMenuSetting",value:function(e){this.menuSetting=e}},{key:"updateSelectCell",value:function(e){this.selectCell=e}},{key:"updateMenuSetting",value:function(e){this.menuSetting=e}},{key:"registerVirtualStore",value:function(e){this.virtualStore=e}},{key:"updateWidths",value:function(e,t,a){var r=this,n=void 0,i=this.defaultColumnWidth,o=(0,g.placeholder)(t).filter("fixed").map((0,g.get)("width")).reduce(g.add)||0,l=(0,g.placeholder)(t).filter({fixed:!1}).map((0,g.get)("width")).reduce(g.add)||0;!this.autoResize||e===1/0||!e||l+o>e?n=(0,g.map)((0,g.get)("width"),t):(n=(0,g.map)(function(t){return t.fixed?t.width:Math.round(t.width/l*(e-o))},t))[n.length-1]+=e-(0,g.sum)(n),n=n.map(function(e){return e||i}),this.columnWidths=n,a&&this.getActualColumnWidths().forEach(function(e,t){r.resizeColumn(t,e,!1)})}},{key:"getColumnWidth",value:function(e){return ee}),(0,g.forEach)(function(e){i=n.calculateHeaderGroupWidth(e),(o=n.headerGroupElements[e.ref])&&r(o).css({width:i+"px",minWidth:i+"px",maxWidth:i+"px"})}))(n.headerGroups),a||(l=n.headerElements[e])&&r(l).css({width:t+"px",minWidth:t+"px",maxWidth:t+"px"})})}},{key:"updateTopPosition",value:function(e,t){var a=t.offsetHeight,n=e.getBoundingClientRect(),i=r(t).find(".u-virtualStickTop");this.listStickTop=r(t).find(".u-stickTop"),this.listStickTop.each(function(e,t){var r=i.get(e).getBoundingClientRect(),o=_(n.top-r.top,0,a-t.offsetHeight);t.style.setProperty("z-index",1),t.style.setProperty("top",o+"px")})}},{key:"resetTopPosition",value:function(){this.listStickTop&&(this.listStickTop.each(function(e,t){t.style.removeProperty("z-index"),t.style.removeProperty("top")}),this.listStickTop=null)}},{key:"updateLeftPosition",value:function(e,t){var a=this,n=this.getTableWidth(),i=e.getBoundingClientRect(),o=r(t).find(".u-virtualStickLeft");this.listStickLeft=r(t).find(".u-stickLeft"),this.listStickLeft.each(function(e,t){if(r(t).is(":visible")){var l=o.get(e).getBoundingClientRect(),s=parseInt(o.get(e).style.left||0),u=_(i.left-l.left+s,0,n-t.offsetWidth);a.setLeftPosition(t,u)}})}},{key:"setLeftPosition",value:function(e,t){e&&(e.style.setProperty("z-index",1),e.style.setProperty("position","relative"),e.style.setProperty("left",t+"px"))}},{key:"resetLeftPosition",value:function(){this.listStickLeft&&this.listStickLeft.each(function(e,t){t.style.removeProperty("z-index"),t.style.removeProperty("position"),t.style.removeProperty("left")})}}]),e}(),i=v(n.prototype,"tableHeight",[m.observable],{enumerable:!0,initializer:function(){return 0}}),o=v(n.prototype,"headerHeight",[m.observable],{enumerable:!0,initializer:function(){return 37}}),l=v(n.prototype,"virtualStore",[m.observable],{enumerable:!0,initializer:function(){return(0,m.asReference)(null)}}),s=v(n.prototype,"selectCell",[m.observable],{enumerable:!0,initializer:null}),u=v(n.prototype,"menuSetting",[m.observable],{enumerable:!0,initializer:null}),v(n.prototype,"bodyHeight",[m.computed],(0,c.default)(n.prototype,"bodyHeight"),n.prototype),n);t.default=b,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f=a(14),h=(r=f)&&r.__esModule?r:{default:r};n=a(0),i=n.PropTypes,o=a(1143),l=a(9).observer,s=a(1),u=s.pick,d=s.map,c=l(function(e){var t=e.element,a=e.init,r=e.tableStore.getRowSpanHeight(a,t.size),i=u(["fnGetCellStyle","fnGetCellContentStyle","cell"],e);return n.createElement("div",{className:"table-row",style:{height:r}},n.createElement(o,(0,h.default)({rowSpan:t,height:r},i,{index:e.index})))}),p=n.createClass({displayName:"RowSpanColumn",propTypes:{tableStore:i.object.isRequired,rowSpan:i.object.isRequired},render:function(){var e=this.props,t=0,a=e.rowSpan,r=u(["fnGetCellStyle","fnGetCellContentStyle","cell"],a),i=d.convert({cap:!1});return n.createElement("div",{className:"table-body",style:{width:e.width}},i(function(a,i){var o=t;return t+=a.size,n.createElement(c,(0,h.default)({element:a,key:o,index:i,init:o,tableStore:e.tableStore},r))},a.data))}}),e.exports=l(p)},function(e,t,a){"use strict";var r,n,i,o,l,s,u=c(a(41)),d=c(a(33));function c(e){return e&&e.__esModule?e:{default:e}}r=a(0),n=a(9).observer,i=a(1),o=i.isString,l=i.isFunction,s=n(r.createClass({displayName:"GroupHeaderCell",render:function(){var e=this.props;if(l(this.props.renderTitle)){var t=this.props.renderTitle(this.props.didUpdate),a=o(t)?t:null,n=e.infoIconOptions;return u.default.isRenderHtmlInReportViewer()&&o(t)&&(t=r.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),a=d.default.getTextContentFromHtmlString(a)),r.createElement("span",{title:a},t||" ",n&&r.createElement("span",{className:n.iconClass,title:n.iconTitle}))}return null},componentDidMount:function(){this.props.didUpdate&&this.props.didUpdate()},componentDidUpdate:function(){this.props.didUpdate&&this.props.didUpdate()}})),e.exports=s},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f=D(a(14)),h=D(a(6)),m=D(a(2)),g=D(a(3)),E=D(a(7)),y=D(a(8)),v=a(0),T=D(v),_=D(a(4)),S=D(a(13)),C=D(a(15)),b=D(a(30)),N=D(a(19)),A=D(a(29)),R=D(a(181)),O=D(a(24)),I=D(a(18));function D(e){return e&&e.__esModule?e:{default:e}}var P=(0,_.default)()((i=n=function(e){function t(){var e,a,r,n;(0,m.default)(this,t);for(var i=arguments.length,o=Array(i),l=0;l1&&void 0!==arguments[1]?arguments[1]:{};(0,c.default)(this,e),v(this,"roles",n,this),v(this,"searchText",i,this),v(this,"pageInfo",o,this),this.loadRoles=t,this.roleOption=a}return(0,p.default)(e,[{key:"tenantId",get:function(){return g.default.getTenantId()}},{key:"selectedRoles",get:function(){return(0,h.filter)(function(e){return e.selected},this.roles)}},{key:"allCheckboxStatus",get:function(){return this.roles.length?(0,h.every)("selected",this.roles)?{checked:!0}:(0,h.some)("selected",this.roles)?{indeterminate:!0}:{checked:!1}:{checked:!1}}}]),(0,p.default)(e,[{key:"loadAllRoles",value:function(){var e=this;this.pageInfo.buildPagingRequest();var t=this.pageInfo,a=(0,d.default)({},this.roleOption,{criteria:t.searchCriteria||[],pageIndex:t.pageIndex||1,pageSize:t.pageSize||10,sortOrders:t.sortOrders||[{key:"name",descending:!0}]});return((0,h.isNil)(this.loadRoles)?E.default.loadAllowedSharingRolesPaging(a):this.loadRoles(t)).then(function(t){return e.roles=t.result,e.pageInfo.totalRecords=t.total,(0,u.resolve)(!0)})}},{key:"setSearchValue",value:function(e){this.searchText=e.target.value}},{key:"toggleAllRoles",value:function(e){(0,h.forEach)(function(t){t.selected=e.target.checked},this.roles)}},{key:"onPageSizeChange",value:function(e){return this.pageInfo.setPageSize(e),this.goToPage(1)}},{key:"goToPage",value:function(e){return this.pageInfo.setPageIndex(e),this.loadAllRoles()}},{key:"search",value:function(){return this.pageInfo.setSearchValues("name",this.searchText),this.goToPage(1)}},{key:"onSortChange",value:function(e,t){return this.pageInfo.setColSortDirs(e,t),this.loadAllRoles()}}]),e}(),n=T(r.prototype,"roles",[f.observable],{enumerable:!0,initializer:function(){return[]}}),i=T(r.prototype,"searchText",[f.observable],{enumerable:!0,initializer:function(){return""}}),o=T(r.prototype,"pageInfo",[f.observable],{enumerable:!0,initializer:function(){return new m.default({name:"DESC"})}}),T(r.prototype,"tenantId",[f.computed],(0,s.default)(r.prototype,"tenantId"),r.prototype),T(r.prototype,"selectedRoles",[f.computed],(0,s.default)(r.prototype,"selectedRoles"),r.prototype),T(r.prototype,"allCheckboxStatus",[f.computed],(0,s.default)(r.prototype,"allCheckboxStatus"),r.prototype),T(r.prototype,"loadAllRoles",[f.action],(0,s.default)(r.prototype,"loadAllRoles"),r.prototype),T(r.prototype,"setSearchValue",[f.action],(0,s.default)(r.prototype,"setSearchValue"),r.prototype),T(r.prototype,"toggleAllRoles",[f.action],(0,s.default)(r.prototype,"toggleAllRoles"),r.prototype),T(r.prototype,"onPageSizeChange",[f.action],(0,s.default)(r.prototype,"onPageSizeChange"),r.prototype),T(r.prototype,"goToPage",[f.action],(0,s.default)(r.prototype,"goToPage"),r.prototype),T(r.prototype,"search",[f.action],(0,s.default)(r.prototype,"search"),r.prototype),T(r.prototype,"onSortChange",[f.action],(0,s.default)(r.prototype,"onSortChange"),r.prototype),r);t.default=_,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});o(a(0));var r=a(11),n=a(1),i=o(a(683));function o(e){return e&&e.__esModule?e:{default:e}}var l=(0,r.withHandlers)({openPopupAddUserPopup:(0,n.curry)(function(e,t){e.openPopup(i.default,{onChange:e.onChangeFromPopup,singleUser:e.singleUser,selectedItems:e.value,loadUsers:e.loadUsers,userModeType:e.userModeType})})});t.default=l,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l=N(a(14)),s=N(a(6)),u=N(a(2)),d=N(a(3)),c=N(a(7)),p=N(a(8)),f=a(0),h=N(f),m=N(a(4)),g=a(143),E=N(a(75)),y=N(a(182)),v=a(46),T=N(a(116)),_=N(a(15)),S=N(a(19)),C=N(a(62)),b=a(1);function N(e){return e&&e.__esModule?e:{default:e}}var A=(0,m.default)()((i=n=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));o.call(a);var r=e.store,n=e.store.model;return a.checkDirty=n.checkDirty.bind(n),a.goToPage=r.goToPage.bind(r),a.onPageSizeChange=r.onPageSizeChange.bind(r),a.updateSearchCriteria=r.updateSearchCriteria.bind(r),a.search=r.search.bind(r),a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.store,t=e.model.pageInfo,a=e.alertMessage;return h.default.createElement(_.default,null,h.default.createElement(_.default.Row,null,h.default.createElement(_.default.Col,{cols:"12"},h.default.createElement(C.default,{type:a.type},a.message))),h.default.createElement(_.default.Row,null,h.default.createElement(_.default.Col,{cols:"12"},h.default.createElement(y.default,{options:g.SEARCH_OPTIONS,value:t.searchProperty,onSearch:this.search,onSearchPropertiesChange:this.updateSearchCriteria}))),h.default.createElement(_.default.Row,null,h.default.createElement(_.default.Col,{cols:"12"},this.renderTable())),h.default.createElement(_.default.Row,null,h.default.createElement(_.default.Col,{cols:"12"},h.default.createElement(T.default,{onChange:this.goToPage,onDropdownChange:this.onPageSizeChange,totalRecords:t.totalRecords,pageSize:t.pageSize,pageIndex:t.pageIndex,isDirty:this.checkDirty}))))}}]),t}(f.Component),n.propTypes={store:f.PropTypes.object},o=function(){var e=this;this.onSortChange=function(){var t=e.props.store;e.props.confirmDirtyForm(e.checkDirty()).then(function(){t.onSortChange()})},this.renderSelectCell=function(t,a){var r=e.props.singleUser?"radio":"checkbox",n=e.props.store.model;return h.default.createElement("input",{type:r,value:t[a],checked:t[a],onChange:function(e){this.props.singleUser&&n.resetAllSelected(),t.updateSelected(e.target.checked)}.bind(e)})},this.renderTextCell=function(e,t){var a=e[t]||"";return h.default.createElement(E.default,{tooltip:a,text:a})},this.renderRoleCell=function(e,t){var a=e[t]||[],r=(0,b.join)(", ",(0,b.map)(function(e){return e.name},(0,b.filter)(function(e){return!(0,b.isEmpty)(e)},a)));return h.default.createElement(E.default,{tooltip:r,text:r})},this.checkAll=function(t){var a=(e.props.store||{}).model.userAccountList||[];(0,b.forEach)(function(e){e.updateSelected(t.target.checked)},a)},this.renderTable=function(){var t=e.props,a=t.localization,r=t.store,n=r.model,i=r.isLoadingData;return h.default.createElement(v.Table,{dataSource:n.userAccountList,onSortChange:e.onSortChange,draggableTable:!1,sortInfo:n.pageInfo.colSortDirs,isLoading:i,loadingText:a.getText("USER_MESSAGE_LOADING_TEXT")},e.renderColumns())},this.renderColumns=function(){var t={checked:e.props.store.model.hasSelectedAllUser,onChange:e.checkAll,type:"checkbox"},a=e.props.singleUser?g.ADD_USER_TABLE_DEF.selected:(0,b.merge)(g.ADD_USER_TABLE_DEF.selected,{headerComponent:S.default,headerComponentProps:t},{});return(0,b.map)(function(t){switch(t.key){case"selected":return h.default.createElement(v.Column,(0,l.default)({},a,{cell:e.renderSelectCell}));case"roles":return h.default.createElement(v.Column,(0,l.default)({},t,{cell:e.renderRoleCell}));default:return h.default.createElement(v.Column,(0,l.default)({},t,{cell:e.renderTextCell}))}},(0,b.values)(g.ADD_USER_TABLE_DEF))}},r=i))||r;t.default=A,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p=b(a(17)),f=b(a(23)),h=b(a(2)),m=b(a(3)),g=a(5),E=b(a(53)),y=b(a(108)),v=a(143),T=b(a(1148)),_=a(123),S=b(a(16)),C=a(1);function b(e){return e&&e.__esModule?e:{default:e}}function N(e,t,a,r){a&&(0,p.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function A(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var R=(0,E.default)((n=function(){function e(t){(0,h.default)(this,e),N(this,"pageInfo",i,this),N(this,"userAccountList",o,this),N(this,"filterText",l,this),N(this,"roleList",s,this),N(this,"languageList",u,this),N(this,"dateFormatList",d,this),N(this,"isLastPage",c,this),t&&this.populateData(t)}return(0,m.default)(e,[{key:"populateData",value:function(e){this.userAccountList=e.userAccountList}},{key:"populateUserAccountList",value:function(e){this.userAccountList=(0,C.map)(function(e){return new T.default(e)},e.result),this.pageInfo.totalRecords=e.total}},{key:"populateLazyUserAccountList",value:function(e,t){var a=e.result,r=e.isLastPage,n=e.total;this.isLastPage=r,this.pageInfo.totalRecords=n,t&&(this.userAccountList=[]);var i=(0,C.map)(function(e){return new T.default(e)},a),o=S.default.getTenantId();return(0,C.flow)(C.head,(0,C.get)("tenantId"))(i)===o&&(0,_.concatArray)(this.userAccountList,i,"id",!r),this.userAccountList}},{key:"checkDirty",value:function(){var e=(0,C.filter)(function(e){return e.checkDirty&&e.checkDirty()},this.userAccountList);return!(0,C.isEmpty)(e)}},{key:"resetAllSelected",value:function(){(0,C.forEach)(function(e){e.selected&&e.updateSelected(!1)},this.userAccountList)}},{key:"updateFilterText",value:function(e){this.filterText=e}},{key:"populateRoleList",value:function(e){this.roleList=e}},{key:"populateLanguageList",value:function(e){this.languageList=e}},{key:"populateDateFormatList",value:function(e){this.dateFormatList=(0,C.map)(function(e){return{labelDateFormat:e,dateFormat:e}},e)}},{key:"deleteUser",value:function(e){this.userAccountList=(0,C.remove)({id:e.id},this.userAccountList)}},{key:"addUser",value:function(e){var t=new T.default(e);return(0,_.concatArray)(this.userAccountList,[t],"id"),t}},{key:"hasSelectedAllUser",get:function(){return!(0,C.isEmpty)(this.userAccountList)&&(0,C.every)(["selected",!0],this.userAccountList)}},{key:"filterUser",get:function(){return(0,C.reject)("deleted",this.userAccountList)}}]),e}(),i=A(n.prototype,"pageInfo",[g.observable],{enumerable:!0,initializer:function(){return new y.default(v.DEFAULT_VALUE.SORT_DIRS,v.DEFAULT_VALUE.SEARCH_CRITERIA)}}),o=A(n.prototype,"userAccountList",[g.observable],{enumerable:!0,initializer:function(){return[]}}),l=A(n.prototype,"filterText",[g.observable],{enumerable:!0,initializer:function(){return null}}),s=A(n.prototype,"roleList",[g.observable],{enumerable:!0,initializer:function(){return[]}}),u=A(n.prototype,"languageList",[g.observable],{enumerable:!0,initializer:function(){return[]}}),d=A(n.prototype,"dateFormatList",[g.observable],{enumerable:!0,initializer:function(){return[]}}),c=A(n.prototype,"isLastPage",[g.observable],{enumerable:!0,initializer:function(){return!1}}),A(n.prototype,"hasSelectedAllUser",[g.computed],(0,f.default)(n.prototype,"hasSelectedAllUser"),n.prototype),A(n.prototype,"filterUser",[g.computed],(0,f.default)(n.prototype,"filterUser"),n.prototype),A(n.prototype,"populateData",[g.action],(0,f.default)(n.prototype,"populateData"),n.prototype),A(n.prototype,"populateUserAccountList",[g.action],(0,f.default)(n.prototype,"populateUserAccountList"),n.prototype),A(n.prototype,"populateLazyUserAccountList",[g.action],(0,f.default)(n.prototype,"populateLazyUserAccountList"),n.prototype),A(n.prototype,"checkDirty",[g.action],(0,f.default)(n.prototype,"checkDirty"),n.prototype),A(n.prototype,"resetAllSelected",[g.action],(0,f.default)(n.prototype,"resetAllSelected"),n.prototype),A(n.prototype,"updateFilterText",[g.action],(0,f.default)(n.prototype,"updateFilterText"),n.prototype),A(n.prototype,"populateRoleList",[g.action],(0,f.default)(n.prototype,"populateRoleList"),n.prototype),A(n.prototype,"populateLanguageList",[g.action],(0,f.default)(n.prototype,"populateLanguageList"),n.prototype),A(n.prototype,"deleteUser",[g.action],(0,f.default)(n.prototype,"deleteUser"),n.prototype),r=n))||r;t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b,N,A,R,O,I,D,P,L,M,F,k,x,w,B,U,z,V,G,H,Y,j,K=re(a(17)),W=re(a(23)),q=re(a(2)),Q=re(a(3)),X=a(5),J=a(1),Z=re(a(684)),$=re(a(53)),ee=a(129),te=re(a(44)),ae=re(a(16));function re(e){return e&&e.__esModule?e:{default:e}}function ne(e,t,a,r){a&&(0,K.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function ie(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var oe=(0,$.default)((n=function(){function e(){(0,q.default)(this,e),ne(this,"tenantId",i,this),ne(this,"modified",o,this),ne(this,"alertMessage",l,this),ne(this,"sortColumnNameValue",s,this),ne(this,"sortColumnNameDefaultValue",u,this),ne(this,"trimTimeInJoinsValue",d,this),ne(this,"trimTimeInJoinsDefaultValue",c,this),ne(this,"timezoneForDataOffsetValue",p,this),ne(this,"timezoneForDataOffsetDefaultValue",f,this),ne(this,"timezoneForTimestampOffsetValue",h,this),ne(this,"timezoneForTimestampOffsetDefaultValue",m,this),ne(this,"convertNullToEmptyStringValue",g,this),ne(this,"convertNullToEmptyStringDefaultValue",E,this),ne(this,"encodeVariablesInCustomUrlValue",y,this),ne(this,"encodeVariablesInCustomUrlDefaultValue",v,this),ne(this,"showSchemaNameValue",T,this),ne(this,"showSchemaNameDefaultValue",_,this),ne(this,"showIntroductionTextValue",S,this),ne(this,"showIntroductionTextDefaultValue",C,this),ne(this,"introductionTextValue",b,this),ne(this,"introductionTextDefaultValue",N,this),ne(this,"sendToDiskPathValue",A,this),ne(this,"sendToDiskPathDefaultValue",R,this),ne(this,"excelDataFilesSystemPathValue",O,this),ne(this,"excelDataFilesSystemPathDefaultValue",I,this),ne(this,"commonFilterSettingValue",D,this),ne(this,"commonFilterSettingDefaultValue",P,this),ne(this,"inheritFilterSettingValue",L,this),ne(this,"inheritFilterSettingDefaultValue",M,this),ne(this,"multipleSortOnGridHeaderValue",F,this),ne(this,"multipleSortOnGridHeaderDefaultValue",k,this),ne(this,"showPreviewValue",x,this),ne(this,"showPreviewDefaultValue",w,this),ne(this,"hideReportHeaderAndFooterValue",B,this),ne(this,"hideReportHeaderAndFooterDefaultValue",U,this),ne(this,"repeatTableHeaderValue",z,this),ne(this,"repeatTableHeaderDefaultValue",V,this),ne(this,"maximumSubreportLevelValue",G,this),ne(this,"maximumSubreportLevelDefaultValue",H,this),ne(this,"calendarWeekStartDayValue",Y,this),ne(this,"calendarWeekStartDayDefaultValue",j,this)}return(0,Q.default)(e,[{key:"readOtherSettingsDetail",value:function(e){return this.sortColumnNameValue=e.sortColumnNameValue,this.trimTimeInJoinsValue=e.trimTimeInJoinsValue,this.timezoneForDataOffsetValue=ee.TimeZoneOffset.formatTimeZone(parseInt(e.timezoneForDataOffsetValue)||0),this.timezoneForTimestampOffsetValue=ee.TimeZoneOffset.formatTimeZone(parseInt(e.timezoneForTimestampOffsetValue)||0),this.convertNullToEmptyStringValue=e.convertNullToEmptyStringValue,this.encodeVariablesInCustomUrlValue=e.encodeVariablesInCustomUrlValue,this.showSchemaNameValue=e.showSchemaNameValue,this.showIntroductionTextValue=e.showIntroductionTextValue,this.introductionTextValue=e.introductionTextValue,this.sendToDiskPathValue=e.sendToDiskPathValue,this.excelDataFilesSystemPathValue=e.excelDataFilesSystemPathValue,this.commonFilterSettingValue=e.commonFilterSettingValue,this.inheritFilterSettingValue=e.inheritFilterSettingValue,this.multipleSortOnGridHeaderValue=e.multipleSortOnGridHeaderValue,this.showPreviewValue=e.showPreviewValue,this.hideReportHeaderAndFooterValue=e.hideReportHeaderAndFooterValue,this.repeatTableHeaderValue=e.repeatTableHeaderValue,this.maximumSubreportLevelValue=e.maximumSubreportLevelValue,this.calendarWeekStartDayValue=e.calendarWeekStartDayValue,this.sortColumnNameDefaultValue=e.sortColumnNameDefaultValue,this.trimTimeInJoinsDefaultValue=e.trimTimeInJoinsDefaultValue,this.timezoneForDataOffsetDefaultValue=e.timezoneForDataOffsetDefaultValue,this.timezoneForTimestampOffsetDefaultValue=e.timezoneForTimestampOffsetDefaultValue,this.convertNullToEmptyStringDefaultValue=e.convertNullToEmptyStringDefaultValue,this.encodeVariablesInCustomUrlDefaultValue=e.encodeVariablesInCustomUrlDefaultValue,this.showSchemaNameDefaultValue=e.showSchemaNameDefaultValue,this.showIntroductionTextDefaultValue=e.showIntroductionTextDefaultValue,this.introductionTextDefaultValue=e.introductionTextDefaultValue,this.sendToDiskPathDefaultValue=e.sendToDiskPathDefaultValue,this.excelDataFilesSystemPathDefaultValue=e.excelDataFilesSystemPathDefaultValue,this.commonFilterSettingDefaultValue=e.commonFilterSettingDefaultValue,this.inheritFilterSettingDefaultValue=e.inheritFilterSettingDefaultValue,this.multipleSortOnGridHeaderDefaultValue=e.multipleSortOnGridHeaderDefaultValue,this.showPreviewDefaultValue=e.showPreviewDefaultValue,this.hideReportHeaderAndFooterDefaultValue=e.hideReportHeaderAndFooterDefaultValue,this.repeatTableHeaderDefaultValue=e.repeatTableHeaderDefaultValue,this.maximumSubreportLevelDefaultValue=e.maximumSubreportLevelDefaultValue,this.calendarWeekStartDayDefaultValue=e.calendarWeekStartDayDefaultValue,this.tenantId=e.tenantId||null,this.modified=e.modified,this.resetDirty(),null}},{key:"resetValue",value:function(e){switch(e){case"sortColumnName":this.sortColumnNameValue=this.sortColumnNameDefaultValue;break;case"trimTimeInJoins":this.trimTimeInJoinsValue=this.trimTimeInJoinsDefaultValue;break;case"timezoneForDataOffset":this.timezoneForDataOffsetValue=this.timezoneForDataOffsetDefaultValue;break;case"timezoneForTimestampOffset":this.timezoneForTimestampOffsetValue=this.timezoneForTimestampOffsetDefaultValue;break;case"convertNullToEmptyString":this.convertNullToEmptyStringValue=this.convertNullToEmptyStringDefaultValue;break;case"encodeVariablesInCustomUrl":this.encodeVariablesInCustomUrlValue=this.encodeVariablesInCustomUrlDefaultValue;break;case"showSchemaName":this.showSchemaNameValue=this.showSchemaNameDefaultValue;break;case"showIntroductionText":this.showIntroductionTextValue=this.showIntroductionTextDefaultValue;break;case"introductionText":this.introductionTextValue=this.introductionTextDefaultValue;break;case"sendToDiskPath":this.sendToDiskPathValue=this.sendToDiskPathDefaultValue;break;case"excelDataFilesSystemPath":this.excelDataFilesSystemPathValue=this.excelDataFilesSystemPathDefaultValue;break;case"commonFilterSetting":this.commonFilterSettingValue=this.commonFilterSettingDefaultValue;break;case"inheritFilterSetting":this.inheritFilterSettingValue=this.inheritFilterSettingDefaultValue;break;case"multipleSortOnGridHeader":this.multipleSortOnGridHeaderValue=this.multipleSortOnGridHeaderDefaultValue;break;case"showPreview":this.showPreviewValue=this.showPreviewDefaultValue;break;case"hideReportHeaderAndFooter":this.hideReportHeaderAndFooterValue=this.hideReportHeaderAndFooterDefaultValue;break;case"repeatTableHeader":this.repeatTableHeaderValue=this.repeatTableHeaderDefaultValue;break;case"maximumSubreportLevel":this.maximumSubreportLevelValue=this.maximumSubreportLevelDefaultValue;break;case"calendarWeekStartDay":this.calendarWeekStartDayValue=this.calendarWeekStartDayDefaultValue}this.markDirty()}},{key:"updateValue",value:function(e,t){switch(e){case"sortColumnName":this.sortColumnNameValue=t;break;case"trimTimeInJoins":this.trimTimeInJoinsValue=t;break;case"timezoneForDataOffset":ee.TimeZoneOffset.checkTimeZoneFormatOnTyping(t)&&(this.timezoneForDataOffsetValue=t);break;case"timezoneForTimestampOffset":ee.TimeZoneOffset.checkTimeZoneFormatOnTyping(t)&&(this.timezoneForTimestampOffsetValue=t);break;case"convertNullToEmptyString":this.convertNullToEmptyStringValue=t;break;case"encodeVariablesInCustomUrl":this.encodeVariablesInCustomUrlValue=t;break;case"showSchemaName":this.showSchemaNameValue=t;break;case"showIntroductionText":this.showIntroductionTextValue=t;break;case"introductionText":this.introductionTextValue=t;break;case"sendToDiskPath":this.sendToDiskPathValue=t;break;case"excelDataFilesSystemPath":this.excelDataFilesSystemPathValue=t;break;case"commonFilterSetting":this.commonFilterSettingValue=parseInt(t);break;case"inheritFilterSetting":this.inheritFilterSettingValue=parseInt(t);break;case"multipleSortOnGridHeader":this.multipleSortOnGridHeaderValue=t;break;case"showPreview":this.showPreviewValue=t;break;case"hideReportHeaderAndFooter":this.hideReportHeaderAndFooterValue=t;break;case"repeatTableHeader":this.repeatTableHeaderValue=t;break;case"maximumSubreportLevel":(function(e){var t=new RegExp("^["+Z.default.MAXIMUM_SUBREPORT_LEVEL_MIN_VALUE+"-"+Z.default.MAXIMUM_SUBREPORT_LEVEL_MAX_VALUE+"]$");return""===e||t.test(e)})(t)&&(this.maximumSubreportLevelValue=parseInt(t)||"");break;case"calendarWeekStartDay":this.calendarWeekStartDayValue=parseInt(t.value)}this.markDirty()}},{key:"postUpdateValue",value:function(e,t){switch(e){case"maximumSubreportLevel":this.maximumSubreportLevelValue=parseInt(t)||this.maximumSubreportLevelDefaultValue;break;case"timezoneForDataOffset":this.timezoneForDataOffsetValue=ee.TimeZoneOffset.formatTimeZone(parseInt(t)||this.timezoneForDataOffsetDefaultValue);break;case"timezoneForTimestampOffset":this.timezoneForTimestampOffsetValue=ee.TimeZoneOffset.formatTimeZone(parseInt(t)||this.timezoneForTimestampOffsetDefaultValue)}this.markDirty()}},{key:"resetErrorMessage",value:function(){this.alertMessage=te.default.EMPTY_MESSAGE}},{key:"isAllowMultiSortDisplayed",get:function(){return(0,J.isNil)(ae.default.tenantId)}},{key:"canShowPreview",get:function(){return!ae.default.tenantId&&!ae.default.onlyShowTenant}}]),e}(),i=ie(n.prototype,"tenantId",[X.observable],{enumerable:!0,initializer:function(){return null}}),o=ie(n.prototype,"modified",[X.observable],{enumerable:!0,initializer:function(){return null}}),l=ie(n.prototype,"alertMessage",[X.observable],{enumerable:!0,initializer:function(){return te.default.EMPTY_MESSAGE}}),s=ie(n.prototype,"sortColumnNameValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),u=ie(n.prototype,"sortColumnNameDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),d=ie(n.prototype,"trimTimeInJoinsValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),c=ie(n.prototype,"trimTimeInJoinsDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),p=ie(n.prototype,"timezoneForDataOffsetValue",[X.observable],{enumerable:!0,initializer:function(){return 0}}),f=ie(n.prototype,"timezoneForDataOffsetDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return 0}}),h=ie(n.prototype,"timezoneForTimestampOffsetValue",[X.observable],{enumerable:!0,initializer:function(){return 0}}),m=ie(n.prototype,"timezoneForTimestampOffsetDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return 0}}),g=ie(n.prototype,"convertNullToEmptyStringValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),E=ie(n.prototype,"convertNullToEmptyStringDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),y=ie(n.prototype,"encodeVariablesInCustomUrlValue",[X.observable],{enumerable:!0,initializer:function(){return!0}}),v=ie(n.prototype,"encodeVariablesInCustomUrlDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return!0}}),T=ie(n.prototype,"showSchemaNameValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),_=ie(n.prototype,"showSchemaNameDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),S=ie(n.prototype,"showIntroductionTextValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),C=ie(n.prototype,"showIntroductionTextDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),b=ie(n.prototype,"introductionTextValue",[X.observable],{enumerable:!0,initializer:function(){return null}}),N=ie(n.prototype,"introductionTextDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return null}}),A=ie(n.prototype,"sendToDiskPathValue",[X.observable],{enumerable:!0,initializer:function(){return null}}),R=ie(n.prototype,"sendToDiskPathDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return null}}),O=ie(n.prototype,"excelDataFilesSystemPathValue",[X.observable],{enumerable:!0,initializer:function(){return null}}),I=ie(n.prototype,"excelDataFilesSystemPathDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return null}}),D=ie(n.prototype,"commonFilterSettingValue",[X.observable],{enumerable:!0,initializer:function(){return 0}}),P=ie(n.prototype,"commonFilterSettingDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return 0}}),L=ie(n.prototype,"inheritFilterSettingValue",[X.observable],{enumerable:!0,initializer:function(){return 0}}),M=ie(n.prototype,"inheritFilterSettingDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return 0}}),F=ie(n.prototype,"multipleSortOnGridHeaderValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),k=ie(n.prototype,"multipleSortOnGridHeaderDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),x=ie(n.prototype,"showPreviewValue",[X.observable],{enumerable:!0,initializer:function(){return!0}}),w=ie(n.prototype,"showPreviewDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return!0}}),B=ie(n.prototype,"hideReportHeaderAndFooterValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),U=ie(n.prototype,"hideReportHeaderAndFooterDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),z=ie(n.prototype,"repeatTableHeaderValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),V=ie(n.prototype,"repeatTableHeaderDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return!1}}),G=ie(n.prototype,"maximumSubreportLevelValue",[X.observable],{enumerable:!0,initializer:function(){return 1}}),H=ie(n.prototype,"maximumSubreportLevelDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return 1}}),Y=ie(n.prototype,"calendarWeekStartDayValue",[X.observable],{enumerable:!0,initializer:function(){return 1}}),j=ie(n.prototype,"calendarWeekStartDayDefaultValue",[X.observable],{enumerable:!0,initializer:function(){return 1}}),ie(n.prototype,"isAllowMultiSortDisplayed",[X.computed],(0,W.default)(n.prototype,"isAllowMultiSortDisplayed"),n.prototype),ie(n.prototype,"canShowPreview",[X.computed],(0,W.default)(n.prototype,"canShowPreview"),n.prototype),ie(n.prototype,"readOtherSettingsDetail",[X.action],(0,W.default)(n.prototype,"readOtherSettingsDetail"),n.prototype),ie(n.prototype,"resetValue",[X.action],(0,W.default)(n.prototype,"resetValue"),n.prototype),r=n))||r;t.default=oe,e.exports=t.default},function(e,t,a){"use strict";(function(e){!function(e,t){var a=/[<>&\r\n"']/gm,r={"<":"lt;",">":"gt;","&":"amp;","\r":"#13;","\n":"#10;",'"':"quot;","'":"#39;"};e.extend({fileDownload:function(n,i){var o,l,s,u=e.extend({preparingMessageHtml:null,failMessageHtml:null,androidPostUnsupportedMessageHtml:"Unfortunately your Android browser doesn't support this type of file download. Please try again with a different browser.",dialogOptions:{modal:!0},prepareCallback:function(e){},successCallback:function(e){},abortCallback:function(e){},failCallback:function(e,t,a){},httpMethod:"GET",data:null,checkInterval:2e3,cookieName:"fileDownload",cookieValue:"true",cookiePath:"/",cookieDomain:null,popupWindowTitle:"Initiating file download...",encodeHTMLEntities:!0,checkStatus:null},i),d=new e.Deferred,c=(navigator.userAgent||navigator.vendor||t.opera).toLowerCase();/ip(ad|hone|od)/.test(c)?o=!0:-1!==c.indexOf("android")?l=!0:s=/avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|playbook|silk|iemobile|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(c.substr(0,4));var p=u.httpMethod.toUpperCase();if(l&&"GET"!==p&&u.androidPostUnsupportedMessageHtml)return e().dialog&&e("
").html(u.androidPostUnsupportedMessageHtml).dialog(u.dialogOptions),d.reject();var f,h,m,g,E=null,y={onPrepare:function(t){u.preparingMessageHtml?E=e("
").html(u.preparingMessageHtml).dialog(u.dialogOptions):u.prepareCallback&&u.prepareCallback(t)},onSuccess:function(e){E&&E.dialog("close"),u.successCallback(e),d.resolve(e)},onAbort:function(e){E&&E.dialog("close"),u.abortCallback(e),d.reject(e),u.checkStatus=null},onFail:function(t,a,r){E&&E.dialog("close"),u.failMessageHtml&&e("
").html(u.failMessageHtml).dialog(u.dialogOptions),u.failCallback(t,a,r),d.reject(t,a)}};if(y.onPrepare(n),null!==u.data&&"string"!=typeof u.data&&(u.data=e.param(u.data)),"GET"===p){if(null!==u.data)-1!==n.indexOf("?")?"&"!==n.substring(n.length-1)&&(n+="&"):n+="?",n+=u.data;o||l?((h=t.open(n)).document.title=u.popupWindowTitle,t.focus()):s?t.location(n):f=e("").appendTo("body")),m.write("
"+v+"
"+u.popupWindowTitle+""),g=e(m).find("form")),g.submit()}function T(e){var t=e[0].contentWindow||e[0].contentDocument;return t.document&&(t=t.document),t}function _(e){setTimeout(function(){h&&(l&&h.close(),o&&h.focus&&(h.focus(),e&&h.close()))},0)}function S(e){return e.replace(a,function(e){return"&"+r[e]})}setTimeout(function t(){if(h||f)try{var a=h?h.document:T(f);if(a&&null!==a.body&&a.body.innerHTML.length){var r=!0;if(g&&g.length){var i=e(a.body).contents().first();try{i.length&&i[0]===g[0]&&(r=!1)}catch(e){if(!e||-2146828218!=e.number)throw e;r=!0}}if(r)return void setTimeout(function(){y.onFail(a.body.innerHTML,n),_(!0)},100)}}catch(e){return y.onFail("",n,e),void _(!0)}u.checkStatus&&u.checkStatus(u.cookieName).then(function(e){if(e){y.onSuccess(n);var a=u.cookieName+"=; path="+u.cookiePath+"; expires="+new Date(0).toUTCString()+";";u.cookieDomain&&(a+=" domain="+u.cookieDomain+";"),document.cookie=a,_(!1)}else setTimeout(t,u.checkInterval)})},u.checkInterval);var C=d.promise();return C.abort=function(){_(),f.attr("src","").html(""),y.onAbort(n)},C}})}(e,window)}).call(t,a(27))},function(e,t,a){"use strict";!function(){var t=a(5),r=a(1151),n=a(16);function i(){this.contextMenu=r.MENU_DEFINITION;var e=n.getOpenExportManagerStatus()?r.MENU_DEFINITION[2].key:r.MENU_DEFINITION[0].key;t.extendObservable(this,{contextMenuActiveLink:e,menuStatus:!1})}i.prototype.changeActiveLink=t.action("changeMenuItem",function(e){this.contextMenuActiveLink!==e&&(this.contextMenuActiveLink=e)}),i.prototype.updateMenuState=t.action("updateMenuState",function(e){this.menuStatus=e}),e.exports=i}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(76)),n=a(1),i=o(a(230));function o(e){return e&&e.__esModule?e:{default:e}}t.default={getLicenseStatus:i.default.memoize(function(){return(0,r.default)("License/Status").get().then((0,n.get)("licenseStatus"))}),validateLicense:function(e,t){var a={LicenseKey:e};return t&&(a.TokenKey=t),(0,r.default)("License/validate").post(a)},getLicenseInformation:i.default.memoize(function(){return(0,r.default)("License/currenttoken").get()})},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(a(2)),n=o(a(3)),i=o(a(79));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(){(0,r.default)(this,e)}return(0,n.default)(e,[{key:"loadSystemSettings",value:function(){return i.default.loadSystemSettings()}},{key:"loadCategorySettings",value:function(){return i.default.categorySetting()}}]),e}();t.default=l,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m=C(a(17)),g=C(a(23)),E=C(a(2)),y=C(a(3)),v=a(5),T=C(a(18)),_=C(a(97)),S=a(1);function C(e){return e&&e.__esModule?e:{default:e}}function b(e,t,a,r){a&&(0,m.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function N(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var A=_.default.SUB_REPORT,R=(r=function(){function e(){(0,E.default)(this,e),this.ADD_MAPPING_FIELD_BUTTON="addMappingField",b(this,"fieldInCurrentReportPart",n,this),b(this,"fieldInSubReport",i,this),b(this,"gridData",o,this),b(this,"reportParts",l,this),b(this,"selectedReport",s,this),b(this,"style",u,this),b(this,"reportPartUsed",d,this),b(this,"reportFilter",c,this),b(this,"viewSettingByLink",p,this),b(this,"selectedReportName",f,this),b(this,"selectedIconValue",h,this)}return(0,y.default)(e,[{key:"readInitialData",value:function(e,t){e=e||{};var a=!!(0,S.isNil)(e.viewSettingByLink)||!!e.viewSettingByLink,r=e.selectedIconValue;this.selectedReport=e.selectedReport,this.style=e.style||T.default.DRIL_DOWN_STYLE.LINK_NEW_WINDOW,this.reportPartUsed=e.reportPartUsed||null,this.gridData=e.mappingFields&&(0,v.toJS)(e.mappingFields),this.reportFilter=e.reportFilter,!r||(0,S.isNil)(r.icon)||(0,S.isNil)(r.value)||(this.selectedIconValue=r),this.viewSettingByLink=!!t||a}},{key:"readReports",value:function(e){this.selectedReportName=e.reportData.name,this.fieldInCurrentReportPart=e.fieldInCurrentReportPart,this.readSubReport(e),this.populateReportsListData()}},{key:"populateReportsListData",value:function(){(0,S.forEach)(function(e){e.name||e.id!==A.UNDEFINED||(e.name=A.UNCATEGORIZED)},this.reports)}},{key:"readSubReport",value:function(e){this.fieldInSubReport=(0,S.map)(function(e){var t=(0,S.join)("_",(0,S.compact)([e.relationshipId,e.querySourceFieldId])),a=String.format("[{0}]",e.sourceFieldName);return e.isCalculated&&"Calculated Fields"===e.querySourceType||(a=String.format("[{0}].{1}",e.sourceDataObjectName,a),!e.relationshipId&&e.connectionName&&e.querySourceCategoryName&&(a=String.format("[{0}].[{1}].{2}",e.connectionName,e.querySourceCategoryName,a))),(0,S.flow)((0,S.set)("id",t),(0,S.set)("fieldNameInSubReport",a))(e)},e.fieldInSubReport||[]),this.reportParts=e.reportData.reportPart||[]}},{key:"updateSelectedReport",value:function(e){this.selectedReport=e.id||null,this.selectedReportName=e.name||null,this.gridData=[]}},{key:"updateStyle",value:function(e){this.style=e}},{key:"updateReportPart",value:function(e){var t=(0,S.join)(",",(0,S.map)("id",e||[]));e&&e.indexOf(A.ALL_OPTION)>-1&&(t="All"),this.reportPartUsed=t}},{key:"updateReportFilter",value:function(e){this.reportFilter=e}},{key:"addMappingField",value:function(){this.gridData.push({fieldNameAlias:"",fieldInSubReport:"",relationshipInSubReport:"",fieldNameInSubReport:""})}},{key:"removeMappingField",value:function(e){e>-1&&this.gridData.splice(e,1)}},{key:"removeUnusedMappingField",value:function(){this.gridData=(0,S.filter)(function(e){return e.fieldNameAlias||e.fieldInSubReport||e.relationshipInSubReport},this.gridData)}},{key:"updateViewSettingByLink",value:function(){this.viewSettingByLink=!this.viewSettingByLink}},{key:"updateSelectedViewSettingIcon",value:function(e){var t=(0,S.find)({value:e},A.ICON_TYPES);t&&(this.selectedIconValue={icon:t.icon,value:t.value})}},{key:"validateDuplicate",value:function(){var e={},t=[],a=(0,v.toJS)(this.gridData||[]);return(0,S.forEach)(function(a,r){var n=(0,S.join)("_",[a.fieldNameAlias,a.fieldNameInSubReport]);e[n]?t.push(r):e[n]=!0},a),(0,S.map)(function(e){return{key:A.SUB_REPORT_GRID.VALIDATOR_GROUP+e,messages:[A.SUB_REPORT_GRID.DUPLICATE_ERROR_MESSAGE]}},t)}}]),e}(),n=N(r.prototype,"fieldInCurrentReportPart",[v.observable],{enumerable:!0,initializer:function(){return[]}}),i=N(r.prototype,"fieldInSubReport",[v.observable],{enumerable:!0,initializer:function(){return[]}}),o=N(r.prototype,"gridData",[v.observable],{enumerable:!0,initializer:function(){return[]}}),l=N(r.prototype,"reportParts",[v.observable],{enumerable:!0,initializer:function(){return[]}}),s=N(r.prototype,"selectedReport",[v.observable],{enumerable:!0,initializer:function(){return null}}),u=N(r.prototype,"style",[v.observable],{enumerable:!0,initializer:function(){return T.default.DRIL_DOWN_STYLE.LINK_NEW_WINDOW}}),d=N(r.prototype,"reportPartUsed",[v.observable],{enumerable:!0,initializer:function(){return null}}),c=N(r.prototype,"reportFilter",[v.observable],{enumerable:!0,initializer:function(){return!0}}),p=N(r.prototype,"viewSettingByLink",[v.observable],{enumerable:!0,initializer:function(){return!0}}),f=N(r.prototype,"selectedReportName",[v.observable],{enumerable:!0,initializer:function(){return null}}),h=N(r.prototype,"selectedIconValue",[v.observable],{enumerable:!0,initializer:function(){return{icon:A.DEFAULT_ICON.icon,value:A.DEFAULT_ICON.value}}}),N(r.prototype,"readInitialData",[v.action],(0,g.default)(r.prototype,"readInitialData"),r.prototype),N(r.prototype,"readReports",[v.action],(0,g.default)(r.prototype,"readReports"),r.prototype),N(r.prototype,"populateReportsListData",[v.action],(0,g.default)(r.prototype,"populateReportsListData"),r.prototype),N(r.prototype,"readSubReport",[v.action],(0,g.default)(r.prototype,"readSubReport"),r.prototype),N(r.prototype,"updateSelectedReport",[v.action],(0,g.default)(r.prototype,"updateSelectedReport"),r.prototype),N(r.prototype,"updateStyle",[v.action],(0,g.default)(r.prototype,"updateStyle"),r.prototype),N(r.prototype,"updateReportFilter",[v.action],(0,g.default)(r.prototype,"updateReportFilter"),r.prototype),N(r.prototype,"addMappingField",[v.action],(0,g.default)(r.prototype,"addMappingField"),r.prototype),N(r.prototype,"removeUnusedMappingField",[v.action],(0,g.default)(r.prototype,"removeUnusedMappingField"),r.prototype),N(r.prototype,"updateViewSettingByLink",[v.action],(0,g.default)(r.prototype,"updateViewSettingByLink"),r.prototype),N(r.prototype,"updateSelectedViewSettingIcon",[v.action],(0,g.default)(r.prototype,"updateSelectedViewSettingIcon"),r.prototype),r);t.default=R,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(0),r=a(11).compose,n=a(11).withHandlers,i=a(11).withState,o=a(11).setPropTypes,l=a(11).withProps,s=a(11).onlyUpdateForKeys,u=a(1),d=u.curry,c=u.get,p=a(686),f=r(i("position","setPosition",{x:0,y:0}),i("newValue","setNewValue",0),i("domNode","setDomNode",null),i("defaultValue","setDefaultValue",function(e){return e.config.defaultValue}),l(function(e){var t="horizontal"===e.orientation?{axis:"x",type:"width"}:{axis:"y",type:"height"};return{axis:t.axis,type:t.type}}),n({onStop:d(function(e,t){e.setDefaultValue(e.newValue),e.setPosition({x:0,y:0}),e.afterMove&&e.afterMove()}),onDrag:d(function(e,t,a){var r=a[e.axis],n="px";if(e.toViewPortDimension&&"horizontal"!==e.orientation){var i=p.px2vh(r);r=i.value,n=i.unit}var o=function(e,t){var a=e.config.minValue,r=e.config.maxValue;return Math.min(Math.max(t,a),r)}(e,e.defaultValue+r);c(e.nodeHandle,e.domNode).style[e.type]=""+o+n,e.setNewValue(o)})}),o({orientation:t.PropTypes.string.isRequired,nodeHandle:t.PropTypes.string.isRequired,config:t.PropTypes.object.isRequired,afterMove:t.PropTypes.func}),s(["position"]));e.exports=f}()},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,l,s=b(a(6)),u=b(a(2)),d=b(a(3)),c=b(a(7)),p=b(a(8)),f=a(0),h=b(f),m=a(5),g=b(a(13)),E=b(a(10)),y=a(9),v=b(a(147)),T=b(a(34)),_=b(a(12)),S=a(211),C=a(1);function b(e){return e&&e.__esModule?e:{default:e}}var N=(0,y.observer)((o=i=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return l.call(a),a.state={value:a.props.loadValue?a.props.loadValue():a.props.value},a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentWillReceiveProps",value:function(e){e.value&&this.setState({value:e.loadValue?e.loadValue():e.value})}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.showTextColor,r=e.showCellColor,n=(0,E.default)("text-cell-color",t);return h.default.createElement("div",{className:n},a&&this.renderBtn("textColor"),r&&this.renderBtn("cellColor"))}}]),t}(f.Component),i.propTypes={value:g.default.object.isRequired,onChange:g.default.func.isRequired,loadValue:g.default.func,pointOptionList:g.default.oneOfType([g.default.array,g.default.object])},i.defaultProps={value:{dataType:"text",settingValue:{}},showTextColor:!0,showCellColor:!0,pointOptionList:[{}]},l=function(){var e=this;this.renderBtn=function(t){var a=e.props,n=e.state,i={textColor:{icon:"icon-font text-color",title:_.default.getText("TEXT_CELL_COLOR_TOOLTIP_TEXT_COLOR")},cellColor:{icon:"icon-tint text-color",title:_.default.getText("TEXT_CELL_COLOR_TOOLTIP_CELL_COLOR")}},o=a.loadValue?a.loadValue():a.value,l=r.extend({},a,{dataType:o.dataType,dateTimeFormatData:o.dateTimeFormatData,settingValue:o.settingValue[t],colorType:t,validateMessages:S.MESSAGE.M02,pointOptionList:a.pointOptionList,isBubbleContainer:a.isBubbleContainer,isGridReport:a.isGridReport,valueProps:{title:_.default.getText("COLOR_SETTING_TOOLTIP"),type:"color",defaultColor:"textColor"===t?T.default.textColor:T.default.backgroundColor},beforeClosing:"beforeClosing"}),s=(0,C.getOr)({},t,o.settingValue),u=!(0,C.isEmpty)(s.value)||!(0,C.isEmpty)(s.rangeValue)||!(0,C.isEmpty)(s.rangePercent)||!(0,C.isEmpty)(s.allValues)||(0,C.some)(function(e){return!((0,C.isNil)(e)||(0,C.isNil)(e.value)&&(0,C.isNil)(e.rangePercent)&&(0,C.isNil)(e.rangeValue)&&(0,C.isNil)(e.allValues))},s),d="textColor"===t?a.fnResetTextDefaultValue:a.fnResetCellDefaultValue;return h.default.createElement(v.default,{type:"btnPopup",popupTitle:i[t].title,popupContent:a.cellComponent,containerClassName:"text-color",className:i[t].icon,popupProps:{type:"none",autoClose:!1,sizeClass:"modal-lg"},popupContentProps:l,onChange:function(e){var r=e||{};n.value.settingValue[t]=r.value,this.setState({value:n.value},(0,m.action)(function(){d(),a.onChange&&a.onChange({value:n.value})}))}.bind(e),hadSetting:u,fnResetDefaultValue:d,value:o,settingValue:s})}},n=o))||n;t.default=N,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";var r,n,i,o,l,s=a(270),u=(r=s)&&r.__esModule?r:{default:r};n=a(0),i=a(4),o=a(2051),l=n.createClass({displayName:"CalculatedFieldProperties",getDefaultProps:function(){return{requireLabel:!0}},render:function(){var e=this.props;return e.uiState.update(this.props),n.createElement("div",{className:"expression-input"},n.createElement(u.default,{hasValue:e.uiState.hadSetting,onClick:e.showPopup,title:e.title,disabled:e.disabled,className:e.className}),e.uiState.hadSetting&&n.createElement("span",null,n.createElement("i",{className:"icon-cancel u-colorRed",title:e.localization.getText("PROPERTIES_EDITOR_REMOVE_SETTING"),onClick:e.fnResetDefaultValue})))}}),e.exports=i(o)(l)},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=a(11).withHandlers,n=a(11).withProps,i=a(499),o=a(18),l=a(1083),s=a(48),u=a(99).GRID_STYLES,d=a(1),c=d.curry,p=d.get,f=d.includes,h=d.forEach,m=s.SORT_ORDERS,g=t(n(function(){return{uiState:new l}}),r({showPopup:c(function(e,t){if(e.onClick&&!e.onClick(t))return;var a=e.uiState.value||{},r=a.label||a.name,n=a.function||a.functionName,l=a.dataType||a.izendaDataType,s=e.fieldStore.masterModel,d=s.configReportPart,c=d.configField,g=d.fieldCollection,E=p("field.hasSupportDefaultTotal",c),y=p("properties.dataFormattings.functionInfo.formatDataType",c)||"",v=!function(e,t){var a=e.reportPartContent,r=e.type===o.REPORT_PART_TYPE.Grid,n=r&&p("properties.generalInfo.gridStyle",a)===u.PIVOT.value;return r&&f(t,p("separators.elements",a))||n&&f(t,p("columns.elements",a))}(d,c),T=[];g&&h(function(e){e.field.visible&&T.push({name:e.field.fieldNameAlias,description:e.field.expression,dataType:e.field.dataFieldType,fieldId:e.field.fieldId,schemaName:e.field.schemaName,querySourceName:e.field.querySourceName,databaseName:e.field.databaseName})},g),e.fieldStore.fillCalculatedFieldData(null,T,!1);var _=e.fieldStore.calculatedStore.expressionSelection.getSelectedDataSourceId();e.isSubTotalSetting&&!e.uiState.hadSetting&&(r=String.format("Subtotal {0}",e.fieldSetting));var S={name:r,functionName:n,expression:a.expression,izendaDataType:l,format:a.format,font:a.font,querySourceId:a.querySourceId,fieldDataType:a.fieldDataType,previewResult:a.previewResult,previewRecord:a.previewRecord,hasSupportDefaultTotal:E,formatDataType:y,canSetSubtotal:v};return e.openPopup(i,{reportPart:s.configReportPart,reportDesigner:s,store:e.fieldStore.calculatedStore,onClose:function(t){t&&(e.onChange&&e.onChange({value:t}),e.afterOnChange&&e.afterOnChange(t,m.ASC),e.uiState.update(e))},type:e.type,value:S,querySourceId:_,expressionConfig:o.EXPRESSION_SELECTION.REPORT_PART,requireLabel:e.requireLabel,reportDesignerStore:e.fieldStore.reportStore})}),fnResetDefaultValue:c(function(e,t){e.fnResetDefaultValue&&(e.fnResetDefaultValue(),e.onChange&&e.onChange())})}));e.exports=g}()},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n,i,o,l,s,u=I(a(17)),d=I(a(6)),c=I(a(2)),p=I(a(3)),f=I(a(7)),h=I(a(8)),m=I(a(0)),g=I(a(35)),E=a(5),y=I(E),v=a(9),T=(I(a(67)),I(a(2053))),_=I(a(2054)),S=I(a(2055)),C=I(a(2057)),b=I(a(2058)),N=I(a(2059)),A=I(a(2060)),R=I(a(2061)),O=(I(a(2062)),I(a(2064)));function I(e){return e&&e.__esModule?e:{default:e}}var D,P,L,M,F,k,x=(0,v.observer)((s=l=function(e){function t(e){(0,c.default)(this,t);var a,r,n,i,l=(0,f.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));return l.closeExpressionSelection=function(){l.expressionSelectionUI.visible=!1},a=l,r="displayExpressionSelection",i=l,(n=o)&&(0,u.default)(a,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),l.expressionSelectionUI=y.default.observable({visible:!1,left:0,top:0,cursorPosition:0}),l}return(0,h.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props;return m.default.createElement("div",{className:"calculated-field-popup",onFocus:this.closeExpressionSelection},m.default.createElement("div",{className:"calculated-field-container form-horizontal"},m.default.createElement(T.default,{store:e.store,type:e.type,localization:e.localization,requireLabel:e.requireLabel}),m.default.createElement(_.default,{store:e.store,validation:e.validation,type:e.type}),m.default.createElement(S.default,{store:e.store,validation:e.validation,type:e.type,localization:e.localization,validateExpression:e.validateExpression,ref:"textareaInput",displayExpressionSelection:this.displayExpressionSelection,closeExpressionSelection:this.closeExpressionSelection,expressionSelectionUI:this.expressionSelectionUI}),m.default.createElement(C.default,{store:e.store,validation:e.validation,localization:e.localization,type:e.type,reportDesigner:e.reportDesigner,reportPart:e.reportPart}),m.default.createElement(b.default,{store:e.store,localization:e.localization,type:e.type}),m.default.createElement(R.default,{store:e.store,localization:e.localization,type:e.type}),m.default.createElement(A.default,{store:e.store,localization:e.localization,type:e.type}),m.default.createElement(N.default,{store:e.store,localization:e.localization,validation:e.validation,type:e.type,updateError:e.updateError,reportDesigner:e.reportDesigner,reportPart:e.reportPart,startLoading:e.startLoading,endLoading:e.endLoading,querySourceId:e.querySourceId})),m.default.createElement(O.default,{expressionConfig:e.expressionConfig,store:e.store,type:e.type,expressionSelectionUI:this.expressionSelectionUI,displayExpressionSelection:this.displayExpressionSelection,sourceId:"expressionInput"}))}}]),t}(m.default.Component),l.displayName="CalculatedFieldBody",D=(i=s).prototype,P="displayExpressionSelection",L=[E.action],M={enumerable:!0,initializer:function(){var e=this;return function(t){var a=g.default.findDOMNode(e.refs.textareaInput),n=a.offsetLeft+(t&&t.left),i=a.offsetTop+(t&&t.top+90),o=r("#expressionInput").prop("selectionStart"),l=!e.expressionSelectionUI.visible;e.expressionSelectionUI.visible=l,e.expressionSelectionUI.left=n,e.expressionSelectionUI.top=i,e.expressionSelectionUI.cursorPosition=o}}},k={},Object.keys(M).forEach(function(e){k[e]=M[e]}),k.enumerable=!!k.enumerable,k.configurable=!!k.configurable,("value"in k||k.initializer)&&(k.writable=!0),k=L.slice().reverse().reduce(function(e,t){return t(D,P,e)||e},k),F&&void 0!==k.initializer&&(k.value=k.initializer?k.initializer.call(F):void 0,k.initializer=void 0),void 0===k.initializer&&(Object.defineProperty(D,P,k),k=null),o=k,n=i))||n;t.default=x,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(14)),n=p(a(0)),i=a(9),o=p(a(24)),l=p(a(67)),s=p(a(25)),u=p(a(93)),d=p(a(57)),c=p(a(19));function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,s.default)()(c.default),h=(0,i.observer)(function(e){var t=e.type,a=(e.localization,e.store.clonedModel),i=e.requireLabel,s=o.default.notifyChange,c=t.name!==l.default.TYPES.SUB_TOTAL.name&&t.name!==l.default.TYPES.GRAND_TOTAL.name||a.functionName!==l.default.FUNCTION_NAME.NONE?l.default.COLUMN_NAME_CONSTRAINT(t.name):{},p={};return i&&(p.validations=l.default.COLUMN_NAME_CONSTRAINT(t.name),p.field="columnName"),n.default.createElement(u.default,{className:"u_paddingRight"},n.default.createElement(d.default,{className:"col-md-3 text-left u_paddingLeft validation required"},t.name),n.default.createElement("div",{className:"col-md-9 u_noPaddingAll"},n.default.createElement(f,(0,r.default)({value:a.name,className:"form-control",field:"name",onChange:s(a.changeFieldName.bind(a),o.default.INPUT),validations:c},p,{type:"text"}))))});h.displayName="CalculatedLabel",t.default=h,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s=T(a(17)),u=T(a(6)),d=T(a(2)),c=T(a(3)),p=T(a(7)),f=T(a(8)),h=T(a(0)),m=a(9),g=a(5),E=T(a(93)),y=T(a(57)),v=T(a(29));function T(e){return e&&e.__esModule?e:{default:e}}var _,S,C,b,N,A,R=(0,m.observer)((l=o=function(e){function t(){var e,a,r,n,o,l,c,f;(0,d.default)(this,t);for(var h=arguments.length,m=Array(h),g=0;gparseInt(s.height)&&(l.overflowY="scroll"):l.overflow="hidden",o.textContent=e.value.substring(0,i),"INPUT"===e.nodeName&&(o.textContent=o.textContent.replace(/\s/g," "));var u=document.createElement("span");u.textContent=e.value.substring(i)||".",o.appendChild(u);var d={top:u.offsetTop+parseInt(s.borderTopWidth),left:u.offsetLeft+parseInt(s.borderLeftWidth)};return t(o).remove(),d}}()}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=T(a(6)),l=T(a(2)),s=T(a(3)),u=T(a(7)),d=T(a(8)),c=T(a(0)),p=a(9),f=T(a(24)),h=T(a(93)),m=T(a(57)),g=T(a(29)),E=T(a(25)),y=T(a(67)),v=a(1);function T(e){return e&&e.__esModule?e:{default:e}}var _=(0,E.default)()(g.default),S=(0,p.observer)((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d=0,v=o("form-group",t.fieldClassName||"",{"middle-align":y}),_=T("values.disabled",r),C=t.disabledInfo,b=i.createElement("div",{className:E},function(){return e.component?i.createElement(e.component,(0,n.default)({closePopover:e.closePopover},e.uiProps,t.staticProps,r.values,r.fnProps,{keyPath:e.keyPath},r.promiseProps,{value:a.value,onChange:A.bind(this)})):i.createElement(s,(0,n.default)({},e.uiProps,t.staticProps,r.values,r.fnProps,{keyPath:e.keyPath},r.promiseProps,{type:t.type,value:a.value,onChange:A.bind(this)}))}.bind(this)(),_&&C&&i.createElement("a",{className:"icon-info"},i.createElement("span",{className:"icon-info-circled",title:C}))),N=p("","values.title",r);return d||m?i.createElement(l,{className:v,key:u},t.title&&i.createElement("label",{className:g,title:N},t.title,t.infoIcon&&i.createElement("a",{className:"icon-info"},i.createElement("span",{className:"icon-info-circled",title:t.infoIcon}))),b):b;function A(t){var a=e.parentProps.propertiesEditorModel||{};a.updateDataSchemaByKey&&a.updateDataSchemaByKey.apply(a,f([h("value",t)?t.value:t,u,e.keyPath],S(arguments)))}});N.displayName="FieldItem";var A=t.observer(i.createClass({displayName:"GroupItem",propTypes:{keyPath:i.PropTypes.array,itemName:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.number])},componentWillMount:function(){this.keyPath=m(this.props.keyPath||[]),this.props.itemName&&this.keyPath.push(this.props.itemName)},render:function(){var e=this.props,t=e.itemName,a=e.itemDef,o=e.itemSource||{};return function(){var t=0,n=(0,r.default)(a.fields);if(!n.length)return!1;return(t=E(function(t,r){return o[r]&&R(r,a.fields[r],e.parentProps.mappingSource,e.itemSource)?t+1:t},t,n))===n.length}()?null:e.component?i.createElement(e.component,(0,n.default)({key:t,closePopover:e.closePopover},a.props,a.staticProps,{keyPath:this.keyPath},o.props.values,o.props.fnProps),l.bind(this)()):i.createElement("section",(0,n.default)({key:t},a.props,a.staticProps,o.props.values,o.props.fnProps),a.title?i.createElement("div",{className:"title-group-container"},i.createElement("strong",{className:"title-group"},a.title)):null,l.bind(this)());function l(){return(0,r.default)(a.fields).map(function(t){return i.createElement(O,{key:t,closePopover:this.props.closePopover,itemName:t,itemDef:a.fields[t],keyPath:this.keyPath,parentProps:e.parentProps,itemSource:o[t],uiProps:e.uiProps})}.bind(this))}}}));function R(e,t,a,r){if(b(t.isHidden))return!1;if(C(t.isHidden)){var n=a[t.isHidden];return _(n)?a[t.isHidden](e,t,r):!!n}return!!t.isHidden}var O=t.observer(function(e){var t=e.itemName,a=e.itemDef,r=e.itemSource,n=e.parentProps.mappingSource,o=e.keyPath||[],l=u.getViewStyle(),s=T("props.values.hiddenByState",r);if(r&&(R(t,a,n,r)||s&&l.simpleState))return null;if(!b(a.fnProps)){var d=r&&function(e,t,a,r){if(b(t.fnProps))return!1;if(C(t.fnProps)){var n=a[t.fnProps];return _(n)?a[t.fnProps](e,t,r):!!n}return!!t.fnProps}(t,a,n,r);a.staticProps=g(a.staticProps||{},d)}var c,p={name:a.fields?A:N};return i.createElement(p.name,{itemName:t,closePopover:this.props.closePopover,itemDef:a,keyPath:o,itemSource:r,component:a.component&&(c=a.component,e.parentProps.widgets&&e.parentProps.widgets[c]||c),parentProps:e.parentProps,uiProps:e.uiProps})});O.displayName="GeneralItem";var I=i.createClass({displayName:"PropertiesEditor",propTypes:{definedSchema:i.PropTypes.object.isRequired,schemaData:i.PropTypes.object,propertiesEditorModel:i.PropTypes.object},componentWillMount:function(e){this.updateSchemaData(this.props.schemaData)},componentWillReceiveProps:function(e){var t=this.props,a=t.propertiesEditorModel||{};e.definedSchema.schemaKey!==t.definedSchema.schemaKey?this.updateSchemaData(e.schemaData):a.updateSchemaData&&a.updateSchemaData(this.schemaData,e.schemaData)},updateSchemaData:function(e){var t=this.props.propertiesEditorModel||{};this.schemaData=t.observerObject&&t.observerObject(e),t.setDataSchema&&t.setDataSchema(this.schemaData)},renderItem:function(e,t,a){return i.createElement(O,{key:e,itemName:e,itemDef:t,itemSource:a,parentProps:v(this.props,{updateSchema:this.updateSchema}),uiProps:this.props.uiProps,closePopover:this.props.closePopover})},render:function(){var e=this.props.definedSchema;if(!e)return null;e=y(e)?[e]:e;var t=o(this.props.className,"izenda-PropertiesEditor");return i.createElement("section",{className:t,"aria-expanded":"false"},e.map(function(e,t){return this.renderItem(t,e,this.schemaData)}.bind(this)))}});e.exports=t.observer(I)}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=a(11),i=a(5),o=a(35),l=a(1),s=g(a(41)),u=g(a(269)),d=g(a(61)),c=g(a(18)),p=g(a(33)),f=g(a(2070)),h=a(390),m=a(50);function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,i.action)(function(e,t,a,r){var n=e.store,i=e.reportPart;i.changePositionField(t,a,r),i.shouldUpdatePreview&&n.needUpdatePreview()}),y=(0,i.action)(function(e,t,a,r,n,i){var o=(0,l.get)("field.isRunningField",a);if(!p.default.isInvalidRunningField(e.reportPart,i,o)){var s=e.store,u=e.reportPart;return s.reportFilters.removeAggregatedField(a),t.onDeleteElement&&t.onDeleteElement(a),u.changeFieldContainer(a,r,n,i).then(function(t){return e.onAddElement&&e.onAddElement(t)}).then(function(){u.shouldUpdatePreview&&s.needUpdatePreview()})}e.confirmMessage("error",String.format(d.default.MESSAGES.M28,a.name))}),v=(0,u.default)([c.default.GENNERAL.FIELD_ITEM,d.default.DRAG_ITEM.REPORT_PART_FIELD_ITEM],{drop:function(e,t){if(!t.didDrop()){var a=t.getItem()||{},n=a.querySourceField||{},i=a.dragItemContainer,o=e.position,s=e.reportPart;if(a.itemType===c.default.GENNERAL.FIELD_ITEM||a.itemType===d.default.DRAG_ITEM.REPORT_PART_FIELD_ITEM)if(n.isRunningField&&p.default.isInvalidRunningField(s,e.container,n.isRunningField))e.warning(String.format(d.default.MESSAGES.M28,n.name));else if(i!==e.container){var u=(0,r.resolve)();if(i&&i!==e.container){(e.container.name===m.ContainerName.SEPARATORS?e.confirmRemoveRegressionLine():e.confirmTurnOffMultiColor()).then(function(){var t=e.validateAddNewFieldToContainer([n]);t.message&&(u=e.warning(t.message)),u.then(function(){!(0,l.includes)(n,t.errorField)&&e.changeFieldContainer(a,n,o,i,e.container)})})}else{var f=e.validateAddNewFieldToReportPart([n]);u=(0,l.isEmpty)(f.message)?e.confirmTurnOffMultiColor():e.warning(f.message),e.container.name===m.ContainerName.SEPARATORS&&(u=e.confirmRemoveRegressionLine()),u.then(function(){var t=e.store;!(0,l.includes)(n,f.errorField)&&e.addField(a.querySourceField,a.dataObject,o).then(function(){s.shouldUpdatePreview&&t.needUpdatePreview()})})}}else e.changePositionField(n,o,i)}},canAccess:function(e,t){var a=t||{},r=a.querySourceField||{},n=(0,l.get)("isRunningField",r)||(0,l.get)("field.isRunningField",r);if(a.itemType!==c.default.GENNERAL.FIELD_ITEM&&a.itemType!==d.default.DRAG_ITEM.REPORT_PART_FIELD_ITEM)return!1;if(!n&&a.dragItemContainer===e.container)return!0;var i=a.itemType===c.default.GENNERAL.FIELD_ITEM?e.validateAddNewFieldToReportPart([r]):e.validateAddNewFieldToContainer([r]);return!(0,l.includes)(r,i.errorField)&&!p.default.isInvalidRunningField(e.reportPart,e.container,n)},hover:function(e,t,a){var r=t.getClientOffset(),n=(0,o.findDOMNode)(a).getBoundingClientRect(),i=(0,o.findDOMNode)(a).getElementsByClassName("field-wrapper"),s=r.x-n.left,u=r.y-n.top,d=!1,p=e.container.elements;function f(){(0,l.forEach)(function(e){e.style.borderLeftStyle="",e.style.borderRightStyle=""},i)}function h(e,t){(0,l.isNil)(i[e])||(i[e].style["border"+t+"Style"]=c.default.GENNERAL.BORDER_HOVER_ITEM.STYLE,i[e].style["border"+t+"Color"]=c.default.GENNERAL.BORDER_HOVER_ITEM.COLOR)}s>0&&u>0&&s0&&(f(),e.setPostition(p.length+1),h(p.length-1,"Right")),p.length||e.setPostition(1))}});t.default=(0,n.compose)((0,n.withState)("position","setPostition",1),(0,n.withHandlers)({changePositionField:(0,l.curryN)(4,E),changeFieldContainer:(0,l.curryN)(6,y),validateAddingFieldToDefault:(0,l.curry)(function(e,t,a){var r=(0,l.filter)(function(t){return a?p.default.isInvalidRunningField(e.reportPart,e.container,t.isRunningField):(0,h.isBinary)(t.izendaDataType||t.fieldDataType)},t);return(0,l.isEmpty)(r)?{message:null,errorField:null}:{message:a?String.format(d.default.MESSAGES.M28,(0,l.map)("name",r).join(", ")):String.format(d.default.MESSAGES.M05,(0,l.map)("name",r).join(", ")),errorField:r}}),addField:function(e){return function(t,a,n,i){var o=e.container,l=e.reportPart,s=e.reportPart.reportPartContent,u=e.onAddElement;return l.insertFieldToContainer(o,t,a,n,null,i).then(function(e){return u&&u(e),e}).then(function(e){return s.afterAddField&&s.afterAddField(),(0,r.resolve)().return(e)})}},warning:(0,l.curry)(function(e,t){return e.confirmFn("Information",{description:t,type:"error",showCloseIndicator:!0})})}),(0,n.withHandlers)({validateAddNewFieldToContainer:function(e){return function(t){if(e.maximumField&&e.container.elements.length+t.length>e.maximumField)return{message:c.default.BUNDLE.MESSAGE.FIELDS_EXCEEDED_LIMITATION,errorField:t};var a=e.validateAddingFieldToDefault(t,!0);if(!(0,l.isNil)(a.errorField))return a;var r=e.reportPart,n=(0,l.filter)(function(e){return e.isPredicated},t);if(r.type!==c.default.REPORT_PART_TYPE.Grid&&n.length)return{message:e.localization.getText("REPORTDESIGNER_FEATURE_NOT_AVAILABLE"),errorField:t};var i=e.reportPart.reportPartContent;return i.validateCanAddField?i.validateCanAddField(e.store.masterModel,e.container,t):e.validateAddingFieldToDefault(t,!1)}}}),(0,n.withHandlers)({confirmTurnOffMultiColor:function(e){return function(){var t=(0,l.get)("reportPart.reportPartContent",e),a=t.validateMoreThanOneMetric?t.validateMoreThanOneMetric(e.container):null;return a?e.confirmFn("Confirmation",{description:a}):(0,r.resolve)()}},confirmRemoveRegressionLine:function(e){return function(){var t=e.reportPart.reportPartContent,a=e.container,n=t.validateRemoveRegressionLine?t.validateRemoveRegressionLine(a):{remove:!1};return n.remove?n.message?e.confirmFn("Confirmation",{description:n.message}).then(t.resetRegressionLineDefaultValue.bind(t)):(0,r.resolve)(t.resetRegressionLineDefaultValue()):(0,r.resolve)()}}}),(0,n.withHandlers)({validateAddNewFieldToReportPart:function(e){return function(t){var a=s.default.advancedSettings.performance.fieldLimitValue;return e.reportPart.fieldCollection.length+t.length>a?{message:c.default.BUNDLE.MESSAGE.FIELDS_EXCEEDED_LIMITATION,errorField:t}:e.validateAddNewFieldToContainer(t)}}}),(0,n.withHandlers)({openSelectionFieldPopup:function(e){return function(){return e.openPopup(f.default,e)}}}),v,(0,n.onlyUpdateForKeys)(["isOver","canDrop","container"])),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(6)),l=_(a(2)),s=_(a(3)),u=_(a(7)),d=_(a(8)),c=a(0),p=_(c),f=_(a(13)),h=_(a(32)),m=_(a(305)),g=_(a(12)),E=_(a(1158)),y=_(a(2075)),v=_(a(4)),T=a(1);function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,v.default)(y.default)((i=n=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e)),r=a.props.store.displayFieldQuerySource,n=(0,T.isEmpty)(r)?null:(0,T.head)(r[0].fields),i=(0,T.isEmpty)(r)?null:r[0];return a.state={selectedQuerySource:i,selectedField:n},a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props.store.displayFieldQuerySource,t={isLoading:(0,T.isEmpty)(e)};return p.default.createElement(h.default,{visible:!0,onClosing:this.props.closed,type:"none",autoClose:!1,containerClass:"izenda-SelectionFieldPopup"},p.default.createElement(h.default.Header,{title:g.default.getText("REPORTDESIGNER_LABEL_FIELD_SELECTION")}),p.default.createElement(h.default.Body,null,t.isLoading&&p.default.createElement(m.default,{store:t,className:"u_inlineBlock u_fullWidth"}),!t.isLoading&&p.default.createElement(E.default,{data:e,onChangeData:this.props.onChangeSeletedField})),p.default.createElement(h.default.Footer,null,!t.isLoading&&p.default.createElement(h.default.ConfirmationButton,{type:"accept"},g.default.getText("COMMON_LABEL_OK")),p.default.createElement(h.default.ConfirmationButton,{type:"cancel"},g.default.getText("COMMON_LABEL_CANCEL"))))}}]),t}(c.Component),n.propTypes={onAccept:f.default.func.isRequired,onReject:f.default.func.isRequired,validateAddNewFieldToReportPart:f.default.func.isRequired,warning:f.default.func.isRequired,store:f.default.object.isRequired},r=i))||r;t.default=S,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(0),n=a(9).propTypes,i=a(9).observer,o=a(677),l=a(2072),s=a(10),u=r.createClass({displayName:"TreeViewItemList",propTypes:{treeStore:n.observableObject},componentWillMount:function(){var e=this.props;e.treeStore.setNodes(e.flattenNodes)},componentWillReceiveProps:function(e){e.treeStore.setNodes(e.flattenNodes)},render:function(){var e=this.props,t=e.treeStore.visibleNodeList,a=t.length,n=s("izenda-TreeViewItemList",e.className);return a?r.createElement(o,{className:n,dataSource:t,getItemKey:this.getKey,renderItem:this.renderItem}):null},renderItem:function(e){var t=this.props,a=t.renderNode,n=t.treeStore,i=n.isExpanded(e);return r.createElement(l,{node:e,treeViewItemClassName:t.treeViewItemClassName,renderNode:a,expanded:i,toggleCollapsible:n.toggleCollapsibleOfNode.bind(n)})},getKey:function(e){return e.key}}),e.exports=i(u)},function(e,t,a){"use strict";var r,n,i,o,l,s;r=a(0),n=r.PropTypes,i=a(9).propTypes,o=a(9).observer,l=a(10),s=r.createClass({displayName:"TreeViewItem",propTypes:{node:i.objectOrObservableObject,renderNode:n.func.isRequired,toggleCollapsible:n.func.isRequired,expanded:n.bool},shouldComponentUpdate:function(e){return e.expanded!==this.props.expanded||e.node!==this.props.node},render:function(){var e=this.props,t=e.node,a=e.renderNode,n=t.childCount?this.renderToggleIcon():null,i=!e.expanded,o=t.level,s=l("izenda-TreeViewItem",e.treeViewItemClassName);return r.createElement("div",{className:s,style:{paddingLeft:20*o}},a(t.data,n,this.toggle,i,t.parent))},renderToggleIcon:function(){var e=this.props.expanded,t=l("u_curPointer icon-arrow",{expanded:e});return r.createElement("i",{className:t,onClick:this.toggle})},toggle:function(){var e=this.props,t=e.node;(0,e.toggleCollapsible)(t)}}),e.exports=o(s)},function(e,t,a){"use strict";!function(){var t=a(5).extendObservable,r=a(5).action,n=a(5).asMap,i=a(1),o=i.filter,l=i.memoize,s=i.isUndefined;function u(){t(this,{expandedMap:n(),nodeList:[],visibleNodeList:function(){var e=this.memoizeIsVisible=l(this.isVisible.bind(this)),t=o(e,this.nodeList);return this.memoizeIsVisible=null,t}})}u.prototype.setNodes=r(function(e){this.nodeList=e}),u.prototype.toggleCollapsibleOfNode=r(function(e){var t=this.isExpanded(e);e.expanded=!t,e.key&&this.expandedMap.set(e.key,!t)}),u.prototype.isVisible=function(e){var t=e.parent;return!t||!!this.isExpanded(t)&&(this.memoizeIsVisible?this.memoizeIsVisible(t):this.isVisible(t))},u.prototype.isExpanded=function(e){var t=this.expandedMap.get(e.key);return s(t)?e.expanded:t},e.exports=u}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(5),n=a(11),i=a(1),o=i.map.convert({cap:!1});function l(e,t,a,n,i){return(0,r.observable)({key:a,index:i,value:e.name,nodes:t,checked:!1,nodeType:n,indeterminate:!1})}t.default=(0,n.compose)((0,n.withProps)(function(e){return{treeData:(t=e.data,o(function(e,t){return l(e,o(function(e,t){return l(e,[],a.name+"_"+e.id+"_"+e.name,"Field",t)},(a=e).fields),e.id+"_"+e.name,"QuerySource",t);var a},t))};var t}),(0,n.withHandlers)({onChange:(0,r.action)((0,i.curry)(function(e,t,a){if(t.checked=!t.checked,"Field"===t.nodeType){var r=a.data;r.checked=(0,i.every)("checked",r.nodes),r.indeterminate=!r.checked&&(0,i.some)("checked",r.nodes)}else"QuerySource"===t.nodeType&&(t.indeterminate=!1,(0,i.forEach)(function(e){e.checked=t.checked},t.nodes));!function(e){var t=[];(0,i.forEach)(function(e){(0,i.forEach)(function(a){a.checked&&t.push({field:a.index,querySource:e.index})},e.nodes)},e.treeData),e.onChangeData(t)}(e)}))})),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=a(1),i=a(11),o=s(a(48)),l=s(a(474));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.compose)((0,i.withProps)(function(){return{popupFields:{selectedData:[]}}}),(0,i.withHandlers)({closed:(0,n.curry)(function(e,t,a){if("cancel"===a)e.onReject(),e.popupFields.selectedData=[];else{var i=e.container,s=(e.reportPart,(0,n.map)(function(t){var a=e.store.displayFieldQuerySource[t.querySource],r=a.fields[t.field];return{field:r,querySource:a}},e.popupFields.selectedData)),u=e.validateAddNewFieldToReportPart((0,n.map)("field",s),!1),d=i.elements.length,c=!1;if(!(0,n.isEmpty)(s)){var p=(0,n.flow)((0,n.map)(function(e){return{dataType:e.field.izendaDataType,querySourceId:e.querySource.id}}),(0,n.uniqBy)(function(e){return e.dataType+"_"+e.querySourceId}),n.compact)(s),f={promiseFunctions:null,promiseFormats:null};return(0,n.isEmpty)(p)||(f={promiseFunctions:l.default.getFunctionsData(o.default.FIELD_FUNCTION_MODE.FieldProperty,p),promiseFormats:l.default.getFormatsData((0,n.uniq)((0,n.map)("dataType",p)))}),e.confirmTurnOffMultiColor().then(e.confirmRemoveRegressionLine).then(function(){return(0,r.map)(s,function(t){return(0,n.includes)(t.field,u.errorField)?(0,r.resolve)():(d++,c=!0,e.addField(t.field,t.querySource,d,f))}).then(function(){return(0,n.isEmpty)(u.message)?null:!(0,n.isEmpty)(u.message)&&e.warning(u.message)}).then(function(){c&&(e.onAccept(),e.reportPart.shouldUpdatePreview&&e.store.needUpdatePreview())}).finally(function(){e.popupFields.selectedData=[]})})}e.onAccept()}}),onChangeSeletedField:(0,n.curry)(function(e,t){e.popupFields.selectedData=t})})),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(a(6)),n=m(a(2)),i=m(a(3)),o=m(a(7)),l=m(a(8)),s=m(a(10)),u=a(0),d=m(u),c=a(9),p=m(a(61)),f=m(a(239)),h=a(1);function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,(t.__proto__||(0,r.default)(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){this.props.itemData.offset=this.getOffset()}},{key:"componentDidUpdate",value:function(){this.props.itemData.offset=this.getOffset(),this.props.isOverContainer||this.refs.fieldItem.removeAttribute("style")}},{key:"render",value:function(){var e,t=this.props,a=t.store.reportFilters,r=t.container||{},n=t.canAccess&&t.canAccess(t.item,r),i=t.itemData||{},o=t.reportPart,l=(0,s.default)("field-element",{"can-drop":n&&t.isOver&&t.item.dragItem!==t.itemData,"field-element-selected":t.isRegistedItem&&(e=i,(0,h.isEqual)(e,o.configField))}),u=i.field&&i.field.visible?i.name:p.default.FIELD_HIDDEN_LABEL;return d.default.createElement("div",{className:"field-wrapper",ref:"fieldItem"},d.default.createElement("div",{className:l,key:i.name},d.default.createElement("span",{className:"field-label overflow-text",onMouseDown:t.onClick,onTouchStart:t.onClick,title:u},u),d.default.createElement("span",{className:"icon-cancel field-icon",onClick:function(){o.removeFieldFromContainer(r,i),t.onDeleteElement&&t.onDeleteElement(i),a.removeAggregatedField(i),o.shouldUpdatePreview&&t.store.needUpdatePreview(o)}})))}},{key:"getOffset",value:function(){return(0,h.pick)(["x","y","width","height","left","right","top","bottom"],this.refs.fieldItem.getBoundingClientRect())}}]),t}(u.Component),E=(0,h.flow)(c.observer,f.default.wrapper);t.default=E(g),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=C(a(14)),i=C(a(6)),o=C(a(2)),l=C(a(3)),s=C(a(7)),u=C(a(8)),d=a(0),c=C(d),p=a(9),f=C(a(10)),h=C(a(4)),m=C(a(2078)),g=C(a(241)),E=C(a(94)),y=a(61),v=C(a(12)),T=C(a(507)),_=C(a(2115)),S=a(1);function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,p.observer)(function(e){var t=(0,S.get)("reportPartContent.isBeingBuild",e.reportPart),a=e.finishedRender;return t?c.default.createElement(m.default,e):("function"==typeof a&&a(),c.default.createElement("div",{className:"default-layout"},c.default.createElement("div",{className:"chart-goes-here"},c.default.createElement("span",null,v.default.getText("REPORTDESIGNER_PLACEHOLDER_CHART_GOES_HERE")))))}),N=(0,h.default)(_.default)(r=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=e.reportPart||{},a=t.reportPartContent,r=e.style?e.style:{},i=e.printingMode,o=e.hideTitle,l=e.width,s=e.separator,u=e.elementsCountInContainer,d=e.pageNumber,p=e.forExporting,h=e.forDashboard,m=e.doesBreakPage,v=e.embededReportPart,_=(0,f.default)({"report-part-chart-front-side":!0,"izenda-ReportPart-smallSize":l=u)throw new Error(n.Message.M01);(o||l)&&r.push({from:s,to:u,color:e.color})}),r}((0,i.getOr)({},"thresholds",m)),S=function(e,t,a,r,o){e=e||0,a=a||{};var l=(0,i.get)("scale.fromElement",t),s=(0,i.get)("scale.toElement",t),u=(0,i.isNil)(l)?(0,i.get)("scale.from",t):C(l,E,o),d=(0,i.isNil)(s)?(0,i.get)("scale.to",t):C(s,E,o),c=(0,i.isNumber)(u),h=(0,i.isNumber)(d),m=!!(0,i.size)(r),g=void 0,y=void 0,v=void 0,T=void 0;(0,i.isNil)(u)&&(m?(g=(0,i.head)(r),v=g.from||g.to,u=Math.min(a.min,v)):u=a.min);(0,i.isNil)(d)&&(m?(y=(0,i.last)(r),T=y.from||y.to,d=Math.max(a.max,T)):d=a.max);(0,i.isNil)(u)&&(u=.5*e);(0,i.isNil)(d)&&(d=1.5*e);if(!(0,i.isNil)(u)&&u===d)if(0===u)u=f,d=p;else{var _=Math.ceil(Math.abs(e/2)||Math.abs(u/2));u-=_,d+=_}if(u>=d){if(c&&!h)throw new Error(n.Message.M07);if(!c&&h)throw new Error(n.Message.M08);throw new Error(n.Message.M06)}return{min:u,max:d}}(g,m,T,_,t);if(!function(e,t){if(!e||!e.length)return!0;var a=!0,r=(0,i.head)(e),n=(0,i.last)(e),o=(0,i.isNil)(r.from)?r.to:r.from,l=(0,i.isNil)(n.to)?n.from:n.to;if(t.min>o||t.max=e[s-1].to;return a}(_,S))throw new Error(n.Message.M04);(0,i.size)(_)&&function(e,t){var a=(0,i.head)(e),r=(0,i.last)(e);(0,i.isNil)(a.from)&&(a.from=t.min),(0,i.isNil)(r.to)&&(r.to=t.max)}(_,S);return{commonOptions:{izendaOptions:{showLabels:(0,i.get)("view.showLabels",e.chartOptions),autoResized:!0,scaleFrom:S.min,scaleTo:S.max,serieName:c,dataUnit:(0,i.getOr)("","unitLabel",m),threshold:_,izendaHiddenAllAxis:!0},series:[{data:[{y:g,name:r&&t[r.columnName],textColor:v,supplementaryKPI:function(e,t,a){var r=e.element||{},n=r.name||"",l=e.value||C(r,t,a);if((0,i.isNil)(l))return null;var u=(0,i.get)("properties.dataFormattings.format.jsFormatString",r);return{name:n,value:l,unit:e.unitLabel,dataFormatter:function(e){if(u){var t=(0,i.get)("properties.dataFormattings.functionInfo.formatDataType",r),l=(0,i.get)("properties.dataFormattings.format.formatId",r);return o.default.formatDataByStringFormat(l,e,t)}return(0,i.getOr)(e,"fomattedValue",s.default.getValueStyle(e,y[n],{element:r,record:a}))}}}((0,i.getOr)("","supplementaryKPI",m),E,t),record:t}],xAxisField:r,yAxisField:a,separatorField:(0,i.get)("linkTo.groupField",l),separatorValue:(0,i.get)("linkTo.groupName",l)}]}}},N=function(e,t){var a=(0,i.nth)(E.expandedLevel,_.labels),n=[],o=E.groupData(a,n,e),l=void 0,s=void 0;a||(n=["ALL"],o={ALL:o}),n.forEach(function(e,n){s=o[e],(l=r.extend(!1,S(s,E),{groupField:a,groupName:a?e:"",groupIndex:n,isShowPanel:!1,records:s}))?t&&(l=(0,i.set)(t.groupField?"linkTo":"allData",t,l)):l=t,o[e].forEach(function(e){!function(e,t){var a=[];e.forEach(function(e){e.id=(0,i.uniqueId)(),e.linkTo=t,v.charts.push(e),a.push({id:e.id})});var r=(0,i.get)("linkTo.groupName",t);void 0!==r&&((0,i.isNil)(T[r])&&(T[r]=[]),T[r]=(0,i.concat)(a,T[r]))}(function(e,t,a){return _.values.map(function(r,n){return function(){return b(e,r,t,a)}})}(e,a,l),l)})})};return t=(0,i.head)(_.separators),a=[],c=E.groupData(t,a),m=void 0,g=void 0,t||(a=["ALL"],c={ALL:c}),a.forEach(function(e,a){g=c[e],m=r.extend(!1,S(g,E),{groupField:t,groupName:e,groupIndex:a,isShowPanel:!0,records:g}),N(c[e],m)}),{charts:v.charts,numberMetrics:(0,i.size)(_.values),groupCharts:T}};t.default=function(e){return{getChartSeries:function(){return m(e)}}},e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(a(14)),n=f(a(58));t.default=function(e){return{getChartSeries:function(){return function(e){var t=e.chartData,a=t.dataStructure,f={groups:{},charts:[]},v={};return T=(0,l.first)(a[g]),_=(0,l.nth)(t.expandedLevel,a[h]),S=(0,l.getOr)(!1,"chartOptions.optionByType.izMultiLevel",e),C=[],b=t.groupData(T,C),N=void 0,A=void 0,T||(C=["ALL"],b={ALL:b}),C.forEach(function(o,f){A=b[o],N=T&&{groupField:T,groupName:o,groupIndex:f,isShowPanel:!0,records:A},(e.chartType===s.CHART_TYPE.Donut||u.default.isChartType(e.chartType,s.CHART_TYPE.TreeMap)&&S?function(e,o,s){var u=a[h],d=(0,i.toJS)(u);d=(0,l.map)(function(e){var t=(0,l.find)({fieldNameAlias:e.fieldNameAlias},u);return e.reportPartElm=(0,l.isNil)(t)||(0,l.isNil)(e.reportPartElm)?e.reportPartElm:(0,l.assign)(e.reportPartElm,{isDateTimeType:(0,l.get)("reportPartElm.isDateTimeType",t),fieldFormatData:(0,l.get)("reportPartElm.fieldFormatData",t)}),e},d);var c={},f=void 0;a[m].forEach(function(e){c[O(e)]=function(e){var t={yAxisField:e,drilldownData:{}},a=t.drilldownData;return d.forEach(function(e,t){a[O(e)]={data:[],nameField:e,level:t}}),t}(e)});try{!function e(n,i,o){var s=n.shift(),u=void 0;if(!s||!n.length)return u=function(e,t,r,n){var i={};return a[m].forEach(function(e){i[O(e)]={data:[],sum:0}}),t.forEach(function(t){var o=p.default.getOriginalValue(e,t),s=(0,l.get)(e.columnName,t),u=O(e);a[m].forEach(function(e){var a=(0,l.toNumber)(p.default.getOriginalValue(e,t)),d=O(e),c=i[O(e)];I(c.data,s,o,a,r,n,d,u,t),c.sum+=a})}),i}(s,i,n.length,o),g(s,u),u;var d=[],c=t.groupData(s,d,i),f=(0,l.get)("reportPartElm.properties.dataFormattings.sort",s);if((0,l.includes)(f,[E.ASC,E.DESC]))d=(0,l.flow)(l.keys,(0,l.orderBy)([function(e){return(0,l.isNaN)((0,l.toNumber)(e))?e:(0,l.toNumber)(e)}],[f===E.DESC?(0,l.toLower)(E.DESC):(0,l.toLower)(E.ASC)]))(c);else{var h=(0,l.last)(a[m]),v=h.columnName,T=(0,l.get)("reportPartElm.properties.dataFormattings.sort",h);d=(0,l.flow)(l.keys,(0,l.map)(function(e){return{key:e,value:(0,l.sumBy)(function(e){return e[v]},c[e])}}),(0,l.orderBy)(["value"],[T===E.DESC?(0,l.toLower)(E.DESC):(0,l.toLower)(E.ASC)]),(0,l.map)("key"))(c)}var _=0;return(0,l.forEach)(function(t){var a={},r=""+_+t+y;a.id=(0,l.isNil)(o)||(0,l.isEmpty)(o)?_:o.id,a.path=(0,l.isNil)(o)||(0,l.isEmpty)(o)?r:""+r+o.path,c[t]={groupId:a,data:e((0,l.clone)(n),c[t],a),records:c[t]},_++},d),u=function(e,t,n,i,o){var s=void 0,u={},d=void 0,c=void 0;return a[m].forEach(function(e){u[O(e)]={data:[],sum:0}}),t.forEach(function(t){c=(0,l.get)("data",n[t]);var o=(0,l.flow)((0,l.get)("records"),l.head)(n[t]),f=p.default.getOriginalValue(e,o);a[m].forEach(function(a){var o=O(a);s=(0,l.toNumber)((0,l.get)("sum",c[o])),I((d=u[o]).data,t,f,s,i,(0,l.get)("groupId",n[t]),o,O(e),function(e,t,a){var n=(0,l.get)("data[0].record",e),i=t.columnName,o="percentage_"+i,s={};return s[o]=a*n[o]/n[i],s[i]=a,(0,r.default)({},n,s)}(c[o],a,s)),d.sum+=s})}),u}(s,d,c,n.length),g(s,u),u}(d,e),(0,n.default)(c).map(function(e){var t,a,r;f=c[e],R({commonOptions:{series:{data:(t=f.drilldownData,a=[],r=void 0,(0,n.default)(t).forEach(function(e){r=t[e],a[(0,l.get)("level",r)]=r}),a),yAxisField:f.yAxisField,serieName:e,separatorField:(0,l.get)("groupField",s),separatorValue:(0,l.get)("groupName",s)}}},s)})}catch(e){return null}function g(e,t){var r=O(e),n=void 0,i=void 0;a[m].forEach(function(e){n=O(e),(i=c[n].drilldownData[r]).data=i.data.concat((0,l.getOr)([],"data",t[n]))})}}:function(e,t,r){var n={},i=void 0,o=void 0,s=void 0,u=void 0;e.forEach(function(f){i=f[t.columnName],o=p.default.getOriginalValue(t,f),a[m].forEach(function(a){u=a.fieldNameAlias;var p=c.default.checkUsingCustomFormat(a);s=p?f[d.CUSTOM_FORMAT_PREFIX+a.columnName]:f[a.columnName],n[u]||(n[u]={name:u,labelName:t.fieldNameAlias,nameField:t,yAxisField:a,data:[],rawData:e,separatorField:(0,l.get)("groupField",r),separatorValue:(0,l.get)("groupName",r)}),(i||s)&&n[u].data.push({name:(0,l.isNull)(i)?"null":i,originalNameValue:(0,l.isNull)(o)?"null":o,y:s,record:f})})}),(0,l.forIn)(function(e){R([{commonOptions:{series:[e]}}],r)},n)})(A,_,N)}),{charts:f.charts,numberMetrics:(0,l.size)(a[m]),groupCharts:v};var T,_,S,C,b,N,A;function R(e,t){var a=[];(e=(0,l.isArray)(e)?e:[e]).forEach(function(e){e.id=(0,l.uniqueId)(),e.linkTo=t,f.charts.push(e),a.push({id:e.id})});var r=(0,l.get)("groupName",t);void 0!==r&&((0,l.isNil)(v[r])&&(v[r]=[]),v[r]=(0,l.concat)(a,v[r]))}function O(e){return(0,l.get)("fieldNameAlias",e)}function I(t,a,r,n,i,s,u,d,c){var p=e.chartOptions,f=p.colors,h=p.optionByType.izMultiColor,m=p.commonOptions.izDisableMultiColor,g=f||o.highcharts.getOptions().colors,E=h&&!m?(0,l.get)("id",s)%g.length:0,y={name:a,originalNameValue:r,y:n,groupId:s,record:c,color:g[E]};t.push(y)}}(e)}}};var i=a(5),o=a(300),l=a(1),s=a(36),u=f(a(50)),d=a(48),c=f(a(237)),p=f(a(33));function f(e){return e&&e.__esModule?e:{default:e}}var h="labels",m="values",g="separators",E=u.default.SORT_TYPES,y=";#";e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n=T(a(14)),i=T(a(6)),o=T(a(2)),l=T(a(3)),s=T(a(7)),u=T(a(8)),d=a(9),c=a(0),p=T(c),f=a(1),h=a(91),m=T(a(393)),g=a(46),E=T(a(1160)),y=a(50),v=T(a(226));function T(e){return e&&e.__esModule?e:{default:e}}var _="labels",S="values",C="separators",b=40,N=14,A=10,R={commonOptions:{izendaHiddenAllAxis:!0,izMargin:0,"izLegend.visibility":!1,"izMarker.radius":1,izChartStyle:{overflow:"visible"},"izTooltip.enabled":!0,"izTooltip.borderWidth":0,"izTooltip.hideDelay":0,"izTooltip.shared":!0,"izTooltip.positioner":function(e,t,a){return{x:0,y:-t/2}},izFillContainer:!0},optionByType:{izValueLabel:!1,izInverted:!1,izStacking:null,izMultiColor:!1},commonXYAxis:{allDynamicThresholdLine:[],metricAllPlotLinesOption:[],xAxis:{izTickPositions:[],izStartOnTick:!1,izEndOnTick:!1,"izLabel.enabled":!1,"izTitle.enabled":!1,"izTitle.text":""},yAxis:{izTickPositions:[0],izStartOnTick:!1,izEndOnTick:!1,"izLabel.enabled":!1,"izTitle.enabled":!1,"izTitle.text":""},commonXYAxis:{izGridLine:null}}},O={Total:"Total",Chart:"Chart",Separator:"Separator"},I=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"renderByField",value:function(e,t,a,i){var o=this.props,l=o.chartData,s=o.seriesOptions,u=o.chartOptions,d=l.dataStructure,c=[],E=e.fieldNameAlias,T=(0,f.getOr)({},E,s),S={fnGetCellContentStyle:function(){return i(!1)},resizable:!1};return T.showTotal&&c.push(p.default.createElement(g.Column,(0,n.default)({key:t+"_total"},S,{columnType:O.Total,title:"Total of "+E,className:"align-right",align:"center",cell:function(t){var a=l.getDataByField(e,t.data),r=(0,f.get)("reportPartElm.properties.dataFormattings.format.jsFormatString",e),n=(0,f.sumBy)(f.toNumber,a.data),i=r?(0,f.get)("reportPartElm.properties.dataFormattings.format.formatId",e):null,o=r?v.default.format(i,n):n;return p.default.createElement("span",null,l.getFormatData(o,T))}}))),S.fnGetCellContentStyle=function(){return i(!0)},c.push(p.default.createElement(g.Column,(0,n.default)({key:t},S,{columnType:O.Chart,title:E,cell:function(t){var a=r.extend(!0,{},d);a.values=[e];var i=(0,f.nth)(l.expandedLevel,a[_]),c=(0,f.mapValues)(function(e){return(0,f.omit)([y.ContainerName.DYNAMIC_THRESHOLD,"thresholds"],e)},(0,n.default)({},s)),g=i&&c[i.fieldNameAlias];return g&&(g.axisOption=(0,n.default)({},g.axisOption,{izCategory:!0})),p.default.createElement(m.default,(0,n.default)({},o,{seriesOptions:c,chartOptions:r.extend(!0,{},u,R),chartType:(0,f.get)("chartOptions.chartType",T),chartData:(0,h.parser)(null,null,{fieldsMapping:null,records:t.data},a)}))}}))),c}},{key:"getCellSize",value:function(e,t,a){var r=e.height;return{width:e.width/a,height:Math.min(b,r/(t+2))}}},{key:"render",value:function(){var e=this.props,t=e.chartOptions,a=e.seriesOptions,r=e.chartData,n=e.printingMode,i=e.isPreview,o=e.containerSize,l=o.height,s=o.width,u=r.dataStructure,d=r.hasSeparator(C),c=function(){var e=[],t=r.groupData(C,e);d||(e=["ALL"],t={ALL:t});var a=e.map(function(e){return{name:e,data:t[e]}});if(i&&!n)return(0,f.slice)(0,y.PAGE_SIZE_BACK_SIDE,a);return a}()||[],h={height:l-(n?0:2*b),width:s},m=function(){var e=this,t=[];return u[S].forEach(function(a,r){t=(0,f.concat)(t,e.renderByField(a,r,v,T)||[])}),t}.call(this),v=void 0;return function(e){if(!d)return e;return e.unshift((n=r.getSeparatorInfo(C),i=(0,f.getOr)({},n.fieldNameAlias,a),o=(0,f.get)("commonActions.pointAction",t),p.default.createElement(g.Column,{key:"separatorColumn",columnType:O.Separator,title:n.fieldNameAlias,cell:function(e){var t={element:n,record:(0,f.head)(e.data)};return p.default.createElement(E.default,{value:e&&e.name,fieldName:n.fieldNameAlias,configField:i,fieldSource:t,pointAction:o})},resizable:!1,fnGetCellContentStyle:function(){return T(!1)}}))),e;var n,i,o}(m),v=this.getCellSize(h,(0,f.size)(c),(0,f.size)(m)),function(e,t){var a={fontSize:N*(v.height/b)},r=Math.ceil(h.width/(0,f.size)(t)),n=(0,f.map)(function(e){return p.default.cloneElement(e,{width:r})},t);return p.default.createElement(g.Table,{dataSource:e,staticRender:!0,className:"simple-table",tableStyle:a,showScroll:!1},n)}(c,m);function T(e){var t=Math.ceil(A*(v.height/b)*(e?.5:1));return{paddingTop:t,paddingBottom:t,height:Math.ceil(v.height)+"px"}}}}]),t}(c.Component);t.default=(0,d.observer)(I),e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n,i,o,l,s,u=L(a(58)),d=a(20),c=L(a(14)),p=L(a(6)),f=L(a(2)),h=L(a(3)),m=L(a(7)),g=L(a(8)),E=a(50),y=L(a(4)),v=a(11),T=a(9),_=a(0),S=L(_),C=L(a(10)),b=a(1),N=L(a(1159)),A=L(a(116)),R=L(a(393)),O=L(a(1160)),I=L(a(2083)),D=L(a(94)),P=a(34);function L(e){return e&&e.__esModule?e:{default:e}}var M=[5,10,20,30,40,50],F=I.default.hasCharts,k=I.default.buildChartTree,x=I.default.getNumChart,w=I.default.getGroupChartInfo,B=I.default.getSizePercent,U=I.default.shouldApplyMobileStyles,z=(0,T.observer)(n=function(e){function t(){return(0,f.default)(this,t),(0,m.default)(this,(t.__proto__||(0,p.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e,t=this.props,a=t.groupName,r=t.groupLevels,n=t.chartOptions,i=t.seriesOptions,o=t.children,l=t.chartType,s=t.printingMode,u=this.props.chartSeries||[],d=w(u,r),c=(0,b.get)("groupField",d),p=(0,b.get)("fieldNameAlias",c),f=(0,b.get)("commonActions.pointAction",n),h=(0,b.get)(p,i),m=(0,C.default)("izenda-ChartWrapper-header",{u_borderBottom:d&&d.isShowPanel}),g=!s&&U(l)?"izenda-ChartWrapper-content izenda-ChartWrapper-content-mobile":"izenda-ChartWrapper-content";return S.default.createElement("div",{className:"izenda-Wrapper grid-chart-item"},S.default.createElement("div",{className:m},(e={element:(0,b.get)("groupField",d),record:(0,b.head)((0,b.get)("records",d))},d&&S.default.createElement(O.default,{value:a,configField:h,pointAction:f,fieldName:p,fieldSource:e,linkTo:d.linkTo}))),S.default.createElement("div",{className:g},o))}}]),t}(_.Component))||n,V=(0,T.observer)(i=function(e){function t(){return(0,f.default)(this,t),(0,m.default)(this,(t.__proto__||(0,p.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e=this.props,t=e.chart,a=(e.printingMode,e.style),n=e.chartOptions,i=e.finishedRender,o=(0,b.omit)(["style"],this.props);try{var l=(0,b.isFunction)(t)?t():t;return l=r.extend(!0,{},n,l,{commonOptions:{izendaOptions:{autoResized:!0}}}),S.default.createElement("div",{style:a,className:"grid-chart-item"},S.default.createElement(R.default,(0,c.default)({},o,{chartOptions:l})))}catch(e){return"function"==typeof i&&i(),S.default.createElement("div",{style:a,className:"grid-chart-item"},e.message)}}}]),t}(_.Component))||i,G=(0,y.default)()(o=function(e){function t(){return(0,f.default)(this,t),(0,m.default)(this,(t.__proto__||(0,p.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e,a,r,n=this,i=this.props,o=i.groupName,l=i.itemPerRow,s=i.itemOrder,u=i.groupLevels,d=i.renderListeners,p=i.style,f=i.chartType,h=i.printingMode,m=function(e){var t=e.charts||[],a=B(100/l,100);return t.map(function(e,t){var r=(0,b.find)(function(t){return t.partId===e.id},d);return S.default.createElement(V,(0,c.default)({},(0,b.omit)(["renderListeners"],n.props),{key:t,groupLevels:E,style:a,chart:e,finishedRender:r&&r.resolve}))})},g=this.props.chartSeries||[],E=(e=u,(a=o)?(0,b.concat)(e||[],a):e),y=void 0;F(g)?y=m(g):1===(0,b.size)(g)&&F(g[o])?y=m(g[o]):(r=g,y=(0,b.map)(function(e){var a=x(r[e]),i=Math.min(a,l),o=B(100/l*i,100);return S.default.createElement(t,(0,c.default)({},n.props,{key:e,groupName:e,groupLevels:E,chartSeries:r[e],style:o,numCharts:a,itemPerRow:i}))},s)),(0,b.isNil)(o)||(y=S.default.createElement(z,(0,c.default)({},this.props,{groupName:o}),y));var v=!h&&U(f)?{width:P.MOBILE_WIDTH_HEIGHT,height:P.MOBILE_WIDTH_HEIGHT}:p;return S.default.createElement("section",{className:"grid-chart-item",style:v},y)}}]),t}(_.Component))||o,H=(0,T.observer)(l=function(e){function t(){return(0,f.default)(this,t),(0,m.default)(this,(t.__proto__||(0,p.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.chartSeries,r=t.itemPerRow,n=t.className,i=t.style,o=k(a),l=o.chartTree,s=o.groupPathInOrder,u=(0,C.default)("izenda-GridChart_row",n),d=void 0,p=function(t,a,n){var i=l[t]||a,o=x(i,0),u=B(100/r*o,100),d=(0,b.isNaN)((0,b.toNumber)(t))?t:(0,b.toNumber)(t),p=(0,b.reduce)(function(e,t){return t[0]===d&&t.length>1&&e.push(t[1]),e},[],s);return S.default.createElement(G,(0,c.default)({},e.props,{chartLevel:n,gridLevel:0,key:t,chartSeries:i,style:u,itemPerRow:o,groupName:t,itemOrder:p}))};if(F(l))d=p(null,l,0);else{var f=I.default.getGroupNameInOrder(o.chartTree,o.groups);d=(0,b.map)(p,f)}return S.default.createElement("div",{style:i,className:u},d)}}]),t}(_.Component))||l,Y=(0,T.observer)(s=function(e){function t(){return(0,f.default)(this,t),(0,m.default)(this,(t.__proto__||(0,p.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.itemPerRow,r=t.numRows,n=t.chartSeries,i=t.printingMode,o=t.pagingMode,l=(t.doesBreakPage,(0,b.size)(n)),s=function(e){var t=void 0,r=[],n=0;for(;n0,y=(0,C.default)("izenda-grid-chart u_fullWidth u_overflowVisible",r),v=this.props.chartSeries||{},T=[],_=(0,b.get)("view.izItemPerRow",n)||(0,b.get)("optionByType.izItemPerRow",n)||2;if(a){var A=function(){var t=e.props.groupCharts;if(!e.props.forExporting)return t;(0,b.isNil)(h)&&(h=P.UNDEFINED_VALUE);var a={};return(0,b.forEach)(function(e){e===h&&(a[e]=t[e])},(0,u.default)(t)),(0,b.isEmpty)(a)?t:a}();(0,b.forEach)(function(e){T.push(function(e,t){var a=[];return e?((0,b.forEach)(function(e){var r=(0,b.find)(function(t){return t.id===e.id},t);r&&a.push(r)},e),a):a}(A[e],v))},(0,u.default)(A))}else T.push(v);E&&(T[0]=K(T[0],m,g),(0,b.forEach)(function(e){(0,b.some)(function(t){return t.id===e.partId},T[0])||e.resolve()},d));var R=(0,b.size)(T[0]),O=Math.ceil(R/_),I=[],D=T.length-1;T.map(function(e,t){I.push(S.default.createElement(Y,{printingMode:!0,pagingMode:E,type:p,vizEngine:f,doesBreakPage:a,fulfilledData:i,chartData:o,chartOptions:n,chartType:l,seriesOptions:s,renderListeners:d,chartSeries:e,itemPerRow:_,numRows:O,key:t})),t!==D&&a&&I.push(S.default.createElement("div",{className:"u_alwaysBreakAfter",key:(0,b.uniqueId)()}))});try{return S.default.createElement("section",{className:y,style:a?{float:"none"}:null},S.default.createElement(N.default,this.props,c,S.default.createElement("div",{className:"u_overflowVisible u_fullHeight"},I)))}catch(e){return S.default.createElement("span",null,"Can't draw chart")}}},{key:"render",value:function(){var e=this.props,t=e.printingMode,a=e.className,r=e.pageIndex,n=e.goToPage,i=e.changePageSize,o=e.viewMode,l=e.chartOptions,s=e.chartSeries,u=e.pageSize,d=e.children;if(t)return this.printingRender();this.props.chartOptions.optionByType.izShowValueFieldName;var p=(0,C.default)("izenda-grid-chart u_fullHeight u_fullWidth",a),f=(0,b.get)("view.izItemPerRow",l)||(0,b.get)("optionByType.izItemPerRow",l)||2,h=(0,b.getOr)(!1,"optionByType.izUsePagination",l),m=(0,b.size)(s),g=h?u:m;try{var E=K(s,r,g);f=Math.min(f,g);var y=Math.ceil(Math.min(g,m)/f),v=(0,C.default)("chart-body izenda-ChartWrapper-body");return S.default.createElement("section",{className:p},S.default.createElement(N.default,this.props,d,S.default.createElement("div",{className:v},S.default.createElement(Y,(0,c.default)({},this.props,{chartSeries:E,itemPerRow:f,numRows:y,key:r}))),h&&S.default.createElement(A.default,{onChange:n,onDropdownChange:i,totalRecords:m,pageSize:g,pageIndex:r,canChangePageSize:!o,pageSizes:M})))}catch(e){return S.default.createElement("span",null,"Can't draw chart")}}}]),t}(_.Component);function K(e,t,a){var r=(t-1)*a,n=Math.min(r+a,(0,b.size)(e));return e.slice(r,n)}t.default=(0,y.default)((0,v.withProps)(function(e){var t,a=void 0,r=[];try{a=e.getChartSeries()}catch(e){a={}}var n=e.separator,i=(0,b.getOr)([],"groupCharts",a);t=(0,b.getOr)([],"charts",a),(0,b.isNil)(n)&&(n=P.UNDEFINED_VALUE);var o=i[n];return e.finishedRender&&(0,b.forEach)(function(e){((0,b.isEmpty)(o)||(0,b.some)(function(t){return t.id===e.id},o))&&r.push(D.default.createPartRenderPromise(e.id))},e.printingMode?t:(0,b.slice)(0,5,t)),{chartSeries:e.isPreview&&!e.printingMode?(0,b.slice)(0,E.PAGE_SIZE_BACK_SIDE,t):t,groupCharts:i,renderListeners:r}}),(0,v.withState)("pageIndex","goToPage",1),(0,v.withState)("pageSize","updatePageSize",function(e){return(0,b.getOr)(5,"staticProperties.pageSize",e.chartOptions)}),(0,v.withHandlers)({changePageSize:(0,b.curry)(function(e,t){var a=(0,b.get)("commonActions.setPageSize",e.chartOptions);a&&a(t),e.updatePageSize&&e.updatePageSize(t),e.goToPage&&e.goToPage(1)})}))(j),e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(1),i=a(36),o=a(88),l=(r=o)&&r.__esModule?r:{default:r},s=a(34);function u(e){return e&&(0,n.has)(e.charts)&&(0,n.isArray)(e.charts)}t.default={buildChartTree:function(e){var t={},a={},r=void 0,i=void 0,o=[];return e.forEach(function(e){r=(0,n.filter)(function(e){return void 0!=e},function e(t){if(!(0,n.isObject)(t))return[];var r=(0,n.flow)((0,n.get)("linkTo.groupName"),function(e){return(0,n.isNull)(e)?"null":e})(t);if((0,n.isNil)(r))return[];(0,n.has)(r,a)?a[r].numElement+=1:a[r]={info:t.linkTo,numElement:1};var i=e(t.linkTo);return(0,n.concat)(i,r,[])}(e)),(i=(0,n.get)(r,t)||((0,n.has)("charts",t)?t:null))?i.charts.push(e):(o.push(r),function e(t,a,r){if(t.length){if(1===t.length)return void(r[t]=a);var n=t.shift();return!r[n]&&(r[n]={}),e(t,a,r[n])}}((0,n.concat)(r,["charts"]),[e],t))}),{chartTree:t,groups:a,groupPathInOrder:o}},getNumChart:function e(t){if(!(0,n.isObject)(t))return 0;if(u(t))return(0,n.size)(t.charts);var a=0;return(0,n.forIn)(function(t){a+=e(t)},t),a},getGroupChartInfo:function(e,t){var a=function e(t){return(0,n.isObject)(t)?u(t)?(0,n.head)(t.charts):e((0,n.get)((0,n.flow)([n.keys,n.head])(t),t)):null}(e);if(!a)return null;var r=(0,n.get)("linkTo",a);return function e(t,a){return a<1?t:e(t.linkTo,a-1)}(r,function e(t,a){a=a||[];var r=(0,n.get)("groupName",t);return(0,n.isNil)(r)||a.unshift(r),(0,n.has)("linkTo",t)?e(t.linkTo,a):(0,n.size)(a)}(r)-(0,n.size)(t)-1)},getSizePercent:function(e,t){return{width:Math.min(100,e)+"%",height:Math.min(100,t)+"%"}},hasCharts:u,getGroupNameInOrder:function(e,t){var a=(0,n.keys)(e);return(0,n.sortBy)(function(e){return(0,n.get)("info.groupIndex",t[e])},a)},shouldApplyMobileStyles:function(e){var t=l.default.getScreenSize().width;return i.CHART_TYPE.SimpleGauge===e&&t=u)throw new Error(n.Message.M01);(o||l)&&r.push({from:s,to:u,color:e.color})}),r}((0,i.getOr)({},"thresholds",m)),S=function(e,t,a,r,o){e=e||0,a=a||{};var l=(0,i.get)("scale.fromElement",t),s=(0,i.get)("scale.toElement",t),u=(0,i.isNil)(l)?(0,i.get)("scale.from",t):C(l,E,o),d=(0,i.isNil)(s)?(0,i.get)("scale.to",t):C(s,E,o),c=(0,i.isNumber)(u),h=(0,i.isNumber)(d),m=!!(0,i.size)(r),g=void 0,y=void 0,v=void 0,T=void 0;(0,i.isNil)(u)&&(m?(g=(0,i.head)(r),v=g.from||g.to,u=Math.min(a.min,v)):u=a.min);(0,i.isNil)(d)&&(m?(y=(0,i.last)(r),T=y.from||y.to,d=Math.max(a.max,T)):d=a.max);(0,i.isNil)(u)&&(u=.5*e);(0,i.isNil)(d)&&(d=1.5*e);if(!(0,i.isNil)(u)&&u===d)if(0===u)u=f,d=p;else{var _=Math.ceil(Math.abs(e/2)||Math.abs(u/2));u-=_,d+=_}if(u>=d){if(c&&!h)throw new Error(n.Message.M07);if(!c&&h)throw new Error(n.Message.M08);throw new Error(n.Message.M06)}return{min:u,max:d}}(g,m,T,_,t);if(!function(e,t){if(!e||!e.length)return!0;var a=!0,r=(0,i.head)(e),n=(0,i.last)(e),o=(0,i.isNil)(r.from)?r.to:r.from,l=(0,i.isNil)(n.to)?n.from:n.to;if(t.min>o||t.max=e[s-1].to;return a}(_,S))throw new Error(n.Message.M04);(0,i.size)(_)&&function(e,t){var a=(0,i.head)(e),r=(0,i.last)(e);(0,i.isNil)(a.from)&&(a.from=t.min),(0,i.isNil)(r.to)&&(r.to=t.max)}(_,S);return{commonOptions:{izendaOptions:{showLabels:(0,i.get)("view.showLabels",e.chartOptions),autoResized:!0,scaleFrom:S.min,scaleTo:S.max,serieName:c,dataUnit:(0,i.getOr)("","unitLabel",m),threshold:_,izendaHiddenAllAxis:!0},series:[{data:[{y:g,name:r&&t[r.columnName],textColor:v,supplementaryKPI:function(e,t,a){var r=e.element||{},n=r.name||"",l=e.value||C(r,t,a);if((0,i.isNil)(l))return null;var u=(0,i.get)("properties.dataFormattings.format.jsFormatString",r);return{name:n,value:l,unit:e.unitLabel,dataFormatter:function(e){if(u){var t=(0,i.get)("properties.dataFormattings.functionInfo.formatDataType",r),l=(0,i.get)("properties.dataFormattings.format.formatId",r);return o.default.formatDataByStringFormat(l,e,t)}return(0,i.getOr)(e,"fomattedValue",s.default.getValueStyle(e,y[n],{element:r,record:a}))}}}((0,i.getOr)("","supplementaryKPI",m),E,t),record:t}],xAxisField:r,yAxisField:a,separatorField:(0,i.get)("linkTo.groupField",l),separatorValue:(0,i.get)("linkTo.groupName",l)}]}}},N=function(e,t){var a=(0,i.nth)(E.expandedLevel,_.labels),n=[],o=E.groupData(a,n,e),l=void 0,s=void 0;a||(n=["ALL"],o={ALL:o}),n.forEach(function(e,n){s=o[e],(l=r.extend(!1,S(s,E),{groupField:a,groupName:a?e:"",groupIndex:n,isShowPanel:!1,records:s}))?t&&(l=(0,i.set)(t.groupField?"linkTo":"allData",t,l)):l=t,o[e].forEach(function(e){!function(e,t){var a=[];e.forEach(function(e){e.id=(0,i.uniqueId)(),e.linkTo=t,v.charts.push(e),a.push({id:e.id})});var r=(0,i.get)("linkTo.groupName",t);void 0!==r&&((0,i.isNil)(T[r])&&(T[r]=[]),T[r]=(0,i.concat)(a,T[r]))}(function(e,t,a){return _.values.map(function(r,n){return function(){return b(e,r,t,a)}})}(e,a,l),l)})})};return t=(0,i.head)(_.separators),a=[],c=E.groupData(t,a),m=void 0,g=void 0,t||(a=["ALL"],c={ALL:c}),a.forEach(function(e,a){g=c[e],m=r.extend(!1,S(g,E),{groupField:t,groupName:e,groupIndex:a,isShowPanel:!0,records:g}),N(c[e],m)}),{charts:v.charts,numberMetrics:(0,i.size)(_.values),groupCharts:T}};t.default=function(e){return{getChartSeries:function(){return m(e)}}},e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=T(a(14)),i=T(a(58)),o=T(a(6)),l=T(a(2)),s=T(a(3)),u=T(a(7)),d=T(a(8)),c=T(a(4)),p=T(a(690)),f=T(a(41)),h=T(a(393)),m=a(0),g=T(m),E=T(a(2088)),y=a(1),v=a(85);function T(e){return e&&e.__esModule?e:{default:e}}var _=(0,c.default)(E.default)(r=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d-1&&(0,f.isNil)(s))return function(e,t,a,i){var o="",l=[];switch(e){case r.ContainerName.STATE:o="getStateCodes",l=(0,n.toJS)((0,f.getOr)([],"stateCodes",t));break;case r.ContainerName.COUNTY:o="getCountiesGGMap",l=(0,n.toJS)((0,f.getOr)([],"countyCodes",t));break;case r.ContainerName.CITY:o="getCities",l=(0,n.toJS)((0,f.getOr)([],"cities",t));break;case r.ContainerName.POSTAL_CODE:o="getPostalCode",l=(0,n.toJS)((0,f.getOr)([],"postalCodes",t))}o=d.default[o],(0,f.isFunction)(o)&&o(a,l).then(i)}(N,a,(0,c.getValueFromMappingField)(M,x),h),{};A&&(w={latField:(0,f.head)(y[r.ContainerName.LATITUDE]),lonField:(0,f.head)(y[r.ContainerName.LONGTITUDE]),isUserDefinedPoint:A});var Z=(0,f.last)(e.reportPartState.drilldownInfo),$=g(Z,"hc-a2");if(r.ContainerName.POSTAL_CODE===N){var ee=void 0,te=void 0;if(B)switch(B.mapLevel){case r.DrilldownLevels.COUNTRY:ee=$;break;case r.DrilldownLevels.STATE:ee=g(Z,"country"),te=g(Z,"name")}else[r.DrilldownLevels.COUNTRY,r.DrilldownLevels.WORLD,r.DrilldownLevels.CONTINENT,r.DrilldownLevels.STATE].indexOf(e.commonOptions.izendaOptions.mapLevel)>-1&&(ee=(0,f.get)("countryInfo.others.BASE_NAME",e)?(0,f.get)("countryInfo.others.BASE_NAME",e):(0,f.get)("countryInfo.value",e),te=(0,f.get)("stateInfo.label",e));x=x.filter(function(e){var t=(0,c.getValueFromMappingField)(M,e),a=(0,f.flow)([(0,f.get)(t),f.head])(s);if(!a||!ee)return!0;var r=(0,f.find)(function(e){return(0,f.toLower)(e.postalCode)===(0,f.toLower)(a.postalCode)},E);return!r||((0,f.toLower)(r.countryCode)===(0,f.toLower)(ee)||(0,f.toLower)(r.countryName)===(0,f.toLower)(ee))&&(!te||((0,f.toLower)(r.province)===(0,f.toLower)(te)||(0,f.toLower)(r.province)===(0,f.toLower)($)))})}if(r.ContainerName.CITY===N){var ae=void 0,re=void 0;if(B)switch(B.mapLevel){case r.DrilldownLevels.CONTINENT:re=r.DrilldownLevels.CONTINENT,ae=g(Z,"continent");break;case r.DrilldownLevels.COUNTRY:ae=$,re=r.DrilldownLevels.COUNTRY;break;case r.DrilldownLevels.STATE:ae=g(Z,"woe-name"),re=r.DrilldownLevels.STATE}else{var ne=(0,f.get)("countryInfo.others.BASE_NAME",e)?(0,f.get)("countryInfo.others.BASE_NAME",e):(0,f.get)("countryInfo.value",e),ie=(0,f.get)("stateInfo.label",e);ie?(re=r.DrilldownLevels.STATE,ae=ie):ne?(re=r.DrilldownLevels.COUNTRY,ae=ne):(ae=(0,f.get)("continentInfo.value",e))&&(re=r.DrilldownLevels.CONTINENT)}x=x.filter(function(e){var t=(0,c.getValueFromMappingField)(M,e),a=m((0,f.get)(t,s),e,y,N);if(!a||!ae)return!0;switch(re){case r.DrilldownLevels.CONTINENT:return!!(0,f.find)(function(e){return(0,f.toLower)((0,f.get)('properties["hc-a2"]',e))===(0,f.toLower)(a.countryCode)},T);case r.DrilldownLevels.COUNTRY:return(0,f.toLower)(ae)===(0,f.toLower)(a.countryCode);case r.DrilldownLevels.STATE:return(0,f.toLower)(ae)===(0,f.toLower)(a.woeName)}return!0})}D=(0,f.first)(y[r.ContainerName.SHADING_VALUES]),P=y[r.ContainerName.BUBBLE_VALUES],D&&oe(S,D,l),P&&P.forEach(function(e){oe(C,e,l,w)}),x.forEach(function(e){if(!(L=(0,c.getValueFromMappingField)(M,e)))return!0;if(A)return P&&le(l,C,null,null,null,e,v)&&R.push(e),!0;if(!(F=z?function(e,t,a,r,n){var i=(0,f.findIndex)(function(a){return ue(e,a.properties,t,n)},a);return r&&i>-1&&(o=i,_[o]=!0),i>-1?(0,f.nth)(i,a):null;var o}(L,O,T,!1,N):m((0,f.get)(L,s),e,y,N)))return b.push({pointName:L,record:e}),!0;k=(0,f.get)(I.key,F.properties);var t=!1,a=!1;D&&(se(l,S,D,e,k,L,F,v),t=!0),P&&(a=le(l,C,L,k,F,e)),(t||a)&&R.push(e)})}return{pointOption:l,backgroundMap:{joinBy:["hc-key","code"],data:function(e,t){for(var a=[],r=0;r-1&&(0,c.isNil)(o))return function(e,t,a,r){var o="",l=[];switch(e){case n.ContainerName.COUNTRY:o="getCountryCodes",l=(0,i.toJS)((0,c.getOr)([],"countryCodes",t));break;case n.ContainerName.STATE:o="getStateCodes",l=(0,i.toJS)((0,c.getOr)([],"stateCodes",t));break;case n.ContainerName.COUNTY:o="getCountiesGGMap",l=(0,i.toJS)((0,c.getOr)([],"countyCodes",t));break;case n.ContainerName.CITY:o="getCities",l=(0,i.toJS)((0,c.getOr)([],"cities",t));break;case n.ContainerName.POSTAL_CODE:o="getPostalCode",l=(0,i.toJS)((0,c.getOr)([],"postalCodes",t));break;case n.ContainerName.ADDRESS:o="getAddressesGGMap",l=(0,i.toJS)((0,c.getOr)([],"addressCodes",t))}o=s.default[o],(0,c.isFunction)(o)&&o(a,l).then(r)}(y,a,(0,u.getValueFromMappingField)(A,I),l),{};v&&(D={latField:(0,c.head)(h[n.ContainerName.LATITUDE]),lonField:(0,c.head)(h[n.ContainerName.LONGTITUDE]),isUserDefinedPoint:v}),C=(0,c.first)(h[n.ContainerName.SHADING_VALUES]),b=h[n.ContainerName.BUBBLE_VALUES],C&&P(g,C,r),b&&b.forEach(function(e){P(E,e,r,D)}),I.forEach(function(e){if(!(N=(0,u.getValueFromMappingField)(A,e)))return!0;if(v)return b&&L(r,E,null,null,null,e,m)&&T.push(e),!0;if(!(R=f((0,c.get)(N,o),e,h,y)))return!0;O=(0,c.get)(S.key,R.properties);var t=!1,a=!1;C&&(M(r,g,C,e,O,N,R,m),t=!0),b&&(a=L(r,E,N,O,R,e)),(t||a)&&T.push(e)})}return{pointOption:r,shadingSeries:g,bubbleSeries:E,pointMap:[],shownRecords:T};function P(e,a,r,n){e[a.fieldNameAlias]=t.extend(!0,{},n,{sum:0,min:Number.MAX_VALUE,max:Number.MIN_VALUE,data:[],field:a,activePointOption:r})}function L(e,t,a,r,n,i,o){var l=!1;return b.forEach(function(s){M(e,t,s,i,r,a,n,o),l=!0}),l}function M(e,a,r,n,i,o,l,s){var f=(0,c.getOr)("","pointType",e);l=(0,c.get)("properties",l)||l||{};var m=a[r.fieldNameAlias],g=r.columnName?(0,d.getFieldValue)(r.columnName,n):{},E=g.originalValue||g.value,y=function(e,t,a,r){return(0,u.getColorSettingsRange)(e,t,a,r)}((0,c.getOr)(null,"reportPartElm.properties.dataFormattings.color.cellColor."+f,r),s,n,E),v={originalValue:g.originalValue,value:E,rangesObject:y,formatedValue:g.originalValue,pointName:o,pointInfo:l,valueField:r,drillingDownField:(0,c.first)(h[e.pointType]),nameField:e,record:n};i&&(v.code=i),(0,c.has)("latField",m)&&(l.latitude=(0,u.getValueFromMappingField)(m.latField,n)),(0,c.has)("lonField",m)&&(l.longitude=(0,u.getValueFromMappingField)(m.lonField,n)),l.longitude&&l.latitude&&(t.extend(v,{lon:Number(l.longitude),lat:Number(l.latitude)}),(0,p.isValidLatLong)(l.latitude,l.longitude)&&(m.sum+=E,m.min=Math.min(m.min,E),m.max=Math.max(m.max,E))),m.data.push(v)}}function h(e,t){var a=[];return(0,c.each)(function(e){(0,c.each)(function(e){(0,p.isValidLatLong)(e.lat,e.lon)&&a.push(e.record)},e.data)},t),a}e.exports=(0,o.compose)((0,o.withProps)(function(e){var t=(0,c.get)("commonOptions.izendaOptions.activePointOption",e.chartOptions);return{seriesMap:f(e.chartOptions,e.chartData,t,e.mappingData,function(t){return e.setMapData("mappingData",t),null},e.getGeoPoint),filterRecordsByLatLon:h}}))}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=C(a(14)),l=a(20),s=C(a(6)),u=C(a(2)),d=C(a(3)),c=C(a(7)),p=C(a(8)),f=a(0),h=C(f),m=a(9),g=C(a(10)),E=C(a(13)),y=C(a(26)),v=C(a(159)),T=C(a(34)),_=C(a(88)),S=a(1);function C(e){return e&&e.__esModule?e:{default:e}}var b="***HIDDEN VALUE***",N=(0,m.observer)((i=n=function(e){function t(){var e,a,r,n;(0,u.default)(this,t);for(var i=arguments.length,d=Array(i),p=0;p3&&void 0!==arguments[3])||arguments[3],i=e.reportPart,o=e.reportPart,u=o.previewData,d=o.previewDataFieldsMapping,c=o.reportPartContent.rows,p=null,h=i.getReportPartProperties(),m=h.columns,g=h.headers,E=(0,f.flow)((0,f.map)("properties.dataFormattings.width"),(0,f.maxBy)("value"))(c.visibleElement),y={width:(0,f.get)("value",E)||m.width.value},v=h.view.pivotColumnsPerExportedPage||0,T=(p=a&&v?(0,f.chunk)(v,t.slice()):e.isPreview?[(0,f.take)(l.default.RECORDS_MAX_LENGTH,t.slice())]:[t.slice()]).length-1;return p.map(function(a,i){var o=[],l=[],p=!1,h=void 0;if(!(0,f.isEmpty)(c.visibleElement)){n&&o.push(y);for(var m=a.length,E=0;E1},size:function(){return i(this.childs)?1:p("size",this.childs)},childsData:function(){return i(this.childs)?this.data:h("childsData",this.childs)}})},E=function(e,t,a,r){return new g(e,t,a,r)},g.prototype.nearestAscendingLevelToExpand=function(){return this.childs.length<=0||this.childs.some(function(e){return!0===u("element.properties.fieldItemVisible",e)})?this.ascendingLevel:Math.min.apply(Math,(0,v.default)(this.childs.map(function(e){return e.nearestAscendingLevelToExpand()})))},g.prototype.buildDrillDownParams=function(e,t){return{expandedLevel:e?this.nearestAscendingLevelToExpand():this.ascendingLevel-1,groupTotalValues:t,filters:l(function(e){return{key:e.element.field.fieldNameAlias,value:e.value}},this.subKeyPath)}},g.prototype.setChilds=function(e){o(function(e){e.level=this.level-1,e.ascendingLevel=this.level+1,e.subKeyPath=c(this.subKeyPath,e.subKeyPath)}.bind(this),e),this.childs=e},g.prototype.toggleExpand=function(e){s(e)?this.isExpand=!this.isExpand:this.isExpand=e},e.exports={RowDataObject:g,createRowDataObject:E}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(6)),l=_(a(2)),s=_(a(3)),u=_(a(7)),d=_(a(8)),c=a(0),p=_(c),f=_(a(19)),h=_(a(24)),m=_(a(4)),g=a(50),E=_(a(15)),y=a(18),v=_(a(2111)),T=a(1);function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,m.default)(v.default)((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e,t=this.props,a=t.reportPart,r=t.dataKey,n=a.type===y.REPORT_PART_TYPE.Grid||a.type===y.REPORT_PART_TYPE.Map,i=n?3:12,o=n?9:12,l=t.getFontSettings(),s=!((0,T.isEqual)(l,g.DEFAULT_SETTING_VALUE.titleDescriptionNew("previewTitle"===r))||(0,T.isEqual)(l,g.DEFAULT_SETTING_VALUE.titleDescriptionDefault));return p.default.createElement(E.default.Row,null,p.default.createElement(E.default.Col,{cols:i,xs:"3"},g.LABEL_TEXT[r]),p.default.createElement(E.default.Col,{cols:o,xs:"9"},p.default.createElement("div",{className:"configuration-input"},p.default.createElement(f.default,{className:"form-control",value:(e=a.getDataValueByKey(r),e&&e.text),onChange:h.default.notifyChange(function(e){var t="previewTitle"===r?"updateReportPartPreviewTitle":"updateReportPartDescription";a[t]&&a[t](e)},h.default.INPUT)}),p.default.createElement("a",{onClick:t.togglePopup},p.default.createElement("span",{className:"icon-setting",title:t.title},s&&p.default.createElement("div",{className:"u_floatRight u-posRelative"},p.default.createElement("i",{className:"icon-ok u_smallIcon u-hadSetting u-colorWhite u-bgGreen"})))))))}}]),t}(c.Component),n.propTypes={reportPart:p.default.PropTypes.object.isRequired,dataKey:p.default.PropTypes.string.isRequired},r=i))||r;t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(1174),i=(r=n)&&r.__esModule?r:{default:r},o=a(11),l=a(1);var s=function(e,t){var a=e.reportPart,r="previewTitle"===e.dataKey?"updateTitleSettings":"updateDescriptionSettings";a[r]&&a[r](t)},u=function(e){return function(){var t=e.reportPart[e.dataKey].settings,a=t.font,r=t.alignment.alignment;return{fontFamily:a.family,fontSize:a.size,fontBold:a.bold,fontItalic:a.italic,fontUnderline:a.underline,fontColor:a.color,fontHighlightColor:a.highlightColor,alignment:r}}};t.default=(0,o.withHandlers)({togglePopup:function(e){return function(){e.reportPart,e.dataKey;var t=u(e);e.openPopup(i.default,{title:e.title,font:t(),save:(0,l.curry)(s)(e)})}},getFontSettings:u}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(6)),n=p(a(2)),i=p(a(3)),o=p(a(7)),l=p(a(8));t.default=function(e,t){(0,d.isNil)(t)&&(t=null);return function(a){function s(){(0,n.default)(this,s);var e=(0,o.default)(this,(s.__proto__||(0,r.default)(s)).call(this));return e.state={shouldRender:!1},e}return(0,l.default)(s,a),(0,i.default)(s,[{key:"componentDidMount",value:function(){var e=this;this.requestFrame=(0,c.default)(function(){e.requestFrame=(0,c.default)(function(){return e.setState({shouldRender:!0})})})}},{key:"componentWillUnmount",value:function(){c.default.cancel(this.requestFrame)}},{key:"render",value:function(){return this.state.shouldRender?u.default.createElement(e,this.props):u.default.createElement(t,null)}}]),s}(s.Component)};var s=a(0),u=p(s),d=a(1),c=p(a(261));function p(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(48),i=(r=n)&&r.__esModule?r:{default:r};var o=i.default.FUNCTION,l=i.default.FORMAT_KEY,s={FUNCTION:o.GROUP,FORMAT:l.NONE},u={FUNCTION:o.GROUP,FORMAT:l.YEAR},d={FUNCTION:o.SUM,FORMAT:l.NONE},c={FUNCTION:o.COUNT,FORMAT:l.NONE},p={FUNCTION:o.GROUP,FORMAT:l.DEFAULT_TIME},f={separators:{Numeric:s,Text:s,Lob:s,Boolean:s,Datetime:u,Time:s,Image:s,Money:s},columns:{Numeric:s,Text:s,Lob:s,Boolean:s,Datetime:u,Time:s,Image:s,Money:s}},h={separators:{Numeric:s,Text:s,Lob:s,Boolean:s,Datetime:u,Time:s,Image:s,Money:s},rows:{Numeric:s,Text:s,Lob:s,Boolean:s,Datetime:u,Time:s,Image:s,Money:s}},m={columns:{Numeric:s,Text:s,Boolean:s,Datetime:u,Time:p,Money:s},rows:{Numeric:s,Text:s,Boolean:s,Datetime:u,Time:p,Money:s},values:{Numeric:d,Text:c,Boolean:c,Datetime:c,Time:c,Money:d},separators:{Numeric:s,Text:s,Boolean:s,Datetime:u,Time:p,Money:s}},g={rows:{Numeric:s,Text:s,Boolean:s,Datetime:u,Time:p,Money:s},values:{Numeric:d,Text:c,Boolean:c,Datetime:c,Time:c,Money:d},separators:{Numeric:s,Text:s,Boolean:s,Datetime:u,Time:p,Money:s}};t.default={PIVOT_DEFAULT_FUNCTION:m,HORIZONTAL_DEFAULT_FUNCTION:{},HORIZONTAL_DEFAULT_FUNCTION_WITH_SEPARATORS:{},HORIZONTAL_DEFAULT_FUNCTION_WITH_AREGATED_FUNCTION:h,DRILL_DOWN_DEFAULT_FUNCTION:g,VERTICAL_DEFAULT_FUNCTION_WITH_SEPARATORS:{},VERTICAL_DEFAULT_FUNCTION:{},VERTICAL_DEFAULT_FUNCTION_WITH_AREGATED_FUNCTION:f},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(48),n={rows:{UNSUPPORTED:{DEFAULT:[r.FUNCTION.NONE]}},values:{UNSUPPORTED:{DEFAULT:[r.FUNCTION.NONE,r.FUNCTION.GROUP_DAYS_OLD]}},separators:{UNSUPPORTED:{DEFAULT:[r.FUNCTION.NONE]}}},i={rows:{UNSUPPORTED:{DEFAULT:[r.FUNCTION.NONE]}},columns:{SUPPORTED:{Datetime:[r.FUNCTION.GROUP,r.FUNCTION.GROUP_DAYS_OLD],DEFAULT:[r.FUNCTION.GROUP]}},values:{UNSUPPORTED:{DEFAULT:[r.FUNCTION.NONE,r.FUNCTION.GROUP,r.FUNCTION.GROUP_DAYS_OLD]}},separators:{UNSUPPORTED:{DEFAULT:[r.FUNCTION.NONE]}}};t.default={AVAILABLE_FUNCTION_CONFIG:{Pivot:i,Drilldown:n}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(5),n=a(11),i=a(1),o=a(33);t.default=(0,n.compose)((0,n.withProps)({updateDrillComponent:function(){(0,i.getOr)({},"reportPart",this.props).onDrilldown=this.onDrilldown},setDefaultIntervalForDatetime:function(){(0,i.get)("reportPart.reportPartContent",this.props).setDefaultIntervalForDatetime()}}),(0,n.withHandlers)({onDrilldown:(0,i.curry)(function(e,t,a){var r=e.reportPart,n=e.printingMode,i=e.reportPart.reportPartContent,o=e.store,l=e.previewRecords;if(i.updateDrilldownInfo(t,a)){e.publishDrillInfo&&e.publishDrillInfo(r.id,r.reportPartContent.getCrossFilteringInfo());var s=e.needUpdatePreview(r,i.getDrilldownInfo(),null,null,n,l,null,!1).then(function(){i.isCrossFiltering&&o&&o.loadReportPartDataByCrossFiltering(r.id)});e.showLoading&&e.showLoading(s)}}),setPageSize:(0,i.curry)(function(e,t){return e.reportPart.reportPartContent.setPageSize(t)}),drillOnOthersPeace:(0,i.curry)(function(e,t,a){var r=e.reportPart.reportPartContent.canDrillDown(a);return(0,o.openOtherItemsAction)(e,t,r)}),getSortValueForLinearChart:function(e){return(0,r.action)(function(){var t=e.reportPart;if(!t)return null;var a=t.reportPartContent,r=(0,i.get)("currentDrilldownField",a),n=(0,i.get)("properties.dataFormattings.sort",r);return(0,o.isLinear)(r,a.defaultOptionsByType)?n:null})}})),e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,a,u){u.authorizationConstants.PERMISSION_OPERATOR;var c=u.authorizationConstants.PERMISSION_KEY,p=(u.authorization,u.configField,t.configReportPart.reportPartContent),f=u.fieldContainerDetails||{},h=i.default.apply(null,arguments),m=f.name||"",g=(h.mappingSource,h.mappingProps);return g.stypeOptions=(0,s.remove)({value:"embedded"},g.stypeOptions),l.default.removeProps(h,d),function(e,t){var a=(0,s.get)("fields.dataFormattings.fields.color",e);if(!a)return;var i=void 0;switch(p.chartType){case n.CHART_TYPE.Pie:case n.CHART_TYPE.Donut:case n.CHART_TYPE.Funnel:case n.CHART_TYPE.TreeMap:i=!(t===o.ContainerName.SEPARATORS);break;default:i=!0}if(!i)return delete e.fields.dataFormattings.fields.color;r.extend(!0,a,{staticProps:{showTextColor:!1,showCellColor:i}})}(h.definedSchema,m),function(e,t){var a=void 0;switch(p.chartType){case n.CHART_TYPE.Sparkline:a=!([o.ContainerName.LABELS,o.ContainerName.VALUES].indexOf(t)>-1);break;default:a=!0}a||delete e.fields.dataFormattings.fields.alternativeText}(h.definedSchema,m),function(e){var t=h.mappingSource;function a(e){return function(){if(!u.authorization||!u.authorization.checkPrivileges([e]))return!0;return function(){var e=!0;switch(p.chartType){case n.CHART_TYPE.Line:case n.CHART_TYPE.Column:case n.CHART_TYPE.Bar:case n.CHART_TYPE.Area:case n.CHART_TYPE.Combination:case n.CHART_TYPE.Waterfall:e=r([o.ContainerName.LABELS]);break;case n.CHART_TYPE.Pie:case n.CHART_TYPE.Funnel:case n.CHART_TYPE.Donut:case n.CHART_TYPE.TreeMap:e=r([o.ContainerName.LABELS,o.ContainerName.SEPARATORS]);break;case n.CHART_TYPE.HeatMap:e=r([o.ContainerName.LABELS,o.ContainerName.VALUES]);break;case n.CHART_TYPE.Bubble:case n.CHART_TYPE.Scatter:e=r([o.ContainerName.VALUES_LABELS]);break;case n.CHART_TYPE.Sparkline:e=r([o.ContainerName.SEPARATORS])}return!e}()}}function r(t){return t.indexOf(e)>-1}t.isHiddenEmbeddedJavascript=a(c.ReportsFieldPropertiesEmbeddedJavaScript),t.isHiddenCustomURL=a(c.ReportsFieldPropertiesCustomURL),t.isHiddenSubReport=a(c.ReportsFieldPropertiesSubreport)}(m),h};var n=a(36),i=u(a(267)),o=a(50),l=(u(a(40)),u(a(215))),s=a(1);function u(e){return e&&e.__esModule?e:{default:e}}var d=["fields.dataFormattings.fields.fontFormat","fields.dataFormattings.fields.fontStyle","fields.dataFormattings.fields.alignment","fields.dataFormattings.fields.subTotal","fields.dataFormattings.fields.grandTotal","fields.dataFormattings.fields.width","fields.dataFormattings.fields.columnWordWrap","fields.dataFormattings.fields.verticalAlignment","fields.headerFormating"];e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=a(20),l=_(a(6)),s=_(a(2)),u=_(a(7)),d=_(a(3)),c=_(a(8)),p=a(0),f=_(p),h=_(a(13)),m=a(9),g=a(5),E=a(1),y=a(165),v=_(a(167)),T=_(a(2118));function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,_(a(1180)).default)(a(2130)),C=(0,m.observer)((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return a.setSelectedTab=function(e,t,r,n){var i=a.props.reportPart;i.reportPartContent.activeTabKey===v.default.TAB_HTML.key&&i.reportPartContent.syncFromHTMLToElements(),i.reportPartContent.activeTabKey=n},a.beforeChangeTab=function(e,t,r,n){var i=a.props.reportPart;return i.reportPartContent.activeTabKey===v.default.TAB_HTML.key?(0,o.resolve)(!0):i.reportPartContent.rebuildHTMLContent(!0)},a.init(),a.disposeObserve=(0,g.observe)(a.props.reportPart,"reportPartContent",function(e,t){a.init((0,E.get)("activeTabKey",t))}),a}return(0,c.default)(t,e),(0,d.default)(t,[{key:"init",value:function(e){var t=this.props,a=t.reportPart.reportPartContent,r=t.store;a.setFormState(e||v.default.TAB_VISUAL.key,(0,E.uniqueId)("reportPartForm-")),a.setDataTree(r.model.dataTree),a.syncFromHTMLToElements()}}]),(0,d.default)(t,[{key:"componentWillUnmount",value:function(){this.disposeObserve()}},{key:"render",value:function(){var e=this.props,t=this.props.reportPart,a=v.default.TAB_VISUAL,r=v.default.TAB_HTML;return f.default.createElement(y.Tabs,{canChangeTab:this.beforeChangeTab,className:"report-part-form full-height u-bgGray",activeTabKey:t.reportPartContent.activeTabKey,onChange:this.setSelectedTab},f.default.createElement(y.Tab,{title:a.value,tabKey:a.key},f.default.createElement(T.default,e)),f.default.createElement(y.Tab,{title:r.value,tabKey:r.key},f.default.createElement(S,e)))}}]),t}(p.Component),n.propTypes={reportPart:h.default.object},r=i))||r;t.default=C,e.exports=t.default},function(e,t,a){"use strict";(function(t){var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S;r=a(0),n=a(4),i=a(10),o=a(694),l=a(167),s=a(472),u=a(215),d=a(2121),c=a(2126),p=a(2127),f=a(1180)(a(2129)),h=a(61),m=a(1),g=m.trim,E=m.find,y=m.isNil,v=m.merge,T=m.getOr,_=m.flow,S=r.createClass({displayName:"ReportPartFormVisual",propTypes:{reportPart:r.PropTypes.object},handleEditorChange:function(e){var t=this.props.store,a=this.props.reportPart,r=a.reportPartContent,n=e.target.getContent({no_events:!0});r.setHTMLContent(n,a),t.model.markDirty()},handleClick:function(e){var a=this.props,r=e.target,n=this.props.reportPart;if("icon-cancel"!==r.className)switch(r.tagName){case"FIELD":var i=g(r.textContent);if(i===h.FIELD_HIDDEN_LABEL){var o=t(r).attr("field-name").match(/\[(.*?)\]/g);i=o[o.length-1].replace("[","").replace("]","")}delete n.reportPartContent.selectedFieldElement,n.reportPartContent.selectedFieldElement=r;var l=E({fieldName:i},n.fieldCollection);if(!l)return;var c=v(a,{itemData:l,fieldContainerDetails:n.reportPartContent.columns,beforeShowProps:function(){n.setConfigField(l)}}),f=[{name:"fieldProps",getDefinedSchema:s}];u.switchToEditor(this,c,f);break;case"EMBEDDED-REPORT":this.props.openPopup(d,{reportPartContent:n.reportPartContent,embeddedReportDOM:t(e.target)});break;case"SUBTOTAL":this.props.openPopup(p,{store:this.props.store,reportPartContent:n.reportPartContent,isSubTotal:!0,selectedElement:this.getSelectionNode()});break;case"GRANDTOTAL":this.props.openPopup(p,{store:this.props.store,reportPartContent:n.reportPartContent,selectedElement:this.getSelectionNode()})}else{var m=g(r.parentElement.textContent);if(m===h.FIELD_HIDDEN_LABEL){var T=t(r.parentElement).attr("field-name").match(/\[(.*?)\]/g);m=T[T.length-1].replace("[","").replace("]","")}var S=E({fieldName:m},n.fieldCollection);if(S){var C=!_(E({fieldNameAlias:m}),y)(n.reportPartContent.columns.elements);n.removeFieldFromContainer(C?n.reportPartContent.columns:n.reportPartContent.separators,S),n.reportPartContent.editorControl.removeElement(r.parentElement)}}},handleNodeChange:function(e){var t=this.props.reportPart.reportPartContent||{},a=t.properties;"ltr"===e.element.dir?(a.mceDirectionLTR=!0,a.mceDirectionRTL=!1):"rtl"===e.element.dir?(a.mceDirectionRTL=!0,a.mceDirectionLTR=!1):(a.mceDirectionRTL=!1,a.mceDirectionLTR=!1);var r=t.getEditorControl().isSelectedCell;t.isSelectedCell=r&&r()},handleFocus:function(){(this.props.reportPart.reportPartContent||{}).isActiveForEdit=!0},componentDidMount:function(){this.setEditorControl()},componentDidUpdate:function(){this.setEditorControl()},setEditorControl:function(){var e=this.props.reportPart.reportPartContent,t=this.domEditor||{};e.setEditorControl(t)},getSelectionNode:function(){var e=T({},"tinymce",this.domEditor),t=T({},"id",this.domEditor),a=e.get&&e.get(t);return a&&a.selection.getNode()},handleFormatChange:function(e,t){var a=this.props.reportPart.reportPartContent.properties;for(var r in a.format)a.format[r].hasOwnProperty(e)&&(a.format[r][e]=t)},handleSpellCheck:function(e,t,a){var r=this.props.reportPart,n=r.reportPartContent,i=n.htmlContent,o=function(e){var o=i.substring(0,t)+e+i.substring(a);n.setHTMLContent(o,r),n.editorControl.insertContent(e)}.bind(this);this.props.openPopup(c,{onAcceptChange:o.bind(this),content:e})},setDom:function(e){this.domEditor=e},render:function(){var e=(this.props.reportPart||{}).reportPartContent;e.convertRepeaterTag(0,l.TAB_VISUAL.key);var t=T(!1,"properties.mceVisualChars",e),a={paste_as_text:T(!1,"properties.pasteAsText",e),visual:T(!0,"properties.mceToggleVisualAid",e),table_default_styles:{margin:"0"}},n=i({"report-part-form-visual":!0}),s=e.formState.id;return r.createElement("div",{className:n},r.createElement(o,{ref:this.setDom,key:s,id:s,config:a,visualChars:t,content:e.htmlContent,onChange:this.handleEditorChange,onClick:this.handleClick,onNodeChange:this.handleNodeChange,onFocus:this.handleFocus,onFormatChange:this.handleFormatChange,onSpellCheck:this.handleSpellCheck}),r.createElement(f,this.props))}}),e.exports=n()(S)}).call(t,a(27))},,function(e,t,a){"use strict";e.exports={DEFAULT_CONFIG:{branding:!1,contextmenu:"link image inserttable | cell row column deletetable | spell_checker",height:"100%",toolbar:!1,menubar:!1,resize:!1,plugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace wordcount visualblocks visualchars code fullscreen","insertdatetime media nonbreaking save table contextmenu directionality","emoticons template paste textcolor colorpicker textpattern imagetools noneditable"],convert_urls:!1,paste_data_images:!0,noneditable_noneditable_class:"field-wrapper",valid_elements:"*[*]",extended_valid_elements:"field[class|field-name],field-prop[key|value|type],repeater,embedded-report[id|class],span[class|style],datetime[class],subtotal[class],grandtotal[class],title,script[language|type|src],link[href|rel]",body_class:"izenda-Tinymce",content_css:"/izenda-ui.css",forced_root_block:"div",entity_encoding:"raw",valid_children:"+body[style|link]"},EVENTS:["focusin","focusout","click","dblclick","mousedown","mouseup","mousemove","mouseover","beforepaste","paste","cut","copy","selectionchange","mouseout","mouseenter","mouseleave","keydown","keypress","keyup","contextmenu","dragend","dragover","draggesture","dragdrop","drop","drag","BeforeRenderUI","SetAttrib","PreInit","PostRender","init","deactivate","activate","NodeChange","BeforeExecCommand","ExecCommand","show","hide","ProgressState","LoadContent","SaveContent","BeforeSetContent","SetContent","BeforeGetContent","GetContent","VisualAid","remove","submit","reset","BeforeAddUndo","AddUndo","change","undo","redo","ClearUndos","ObjectSelected","ObjectResizeStart","ObjectResized","PreProcess","PostProcess","focus","blur","dirty"],FORMAT_CHANGES:["alignleft","aligncenter","alignright","alignjustify","p","blockquote","div","pre","bold","italic","underline","strikethrough","superscript","subscript","code","h1","h2","h3","h4","h5","h6"]}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(0)),n=s(a(32)),i=s(a(1179)),o=s(a(2125)),l=s(a(4));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,l.default)(o.default)(function(e){var t=e.localization;return r.default.createElement(n.default,{visible:!0,onClosing:e.onClosing,autoClose:!1,type:"none"},r.default.createElement(n.default.Header,{title:t.getText("REPORTDESIGNER_LABEL_EMBEDDED_REPORT_SETTINGS")}),r.default.createElement(n.default.Body,null,r.default.createElement(i.default,e)),r.default.createElement(n.default.Footer,null,r.default.createElement(n.default.ConfirmationButton,{type:"accept"},t.getText("COMMON_LABEL_OK")),r.default.createElement(n.default.ConfirmationButton,{type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))}),e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(5),r=a(2123);function n(){var e={selectedReport:new r};t.extendObservable(this,e)}n.prototype.setSelectedReport=function(e){this.selectedReport.populateData(e)},e.exports=n}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(2124),n=a(1),i=n.map,o=n.split,l=n.filter,s=n.includes;function u(e){t.extendObservable(this,{id:null,name:null,reportParts:[],selectedReportParts:[]}),e&&this.populateData(e)}u.prototype.populateData=t.action(function(e){this.id=e.id,this.name=e.name,this.reportParts=i(function(e){return new r(e)},e.reportPart)}),u.prototype.setSelectedReportPart=t.action(function(e){var t=o(",",e);this.selectedReportParts=l(function(e){return s(e.id,t)},this.reportParts)}),e.exports=u}()},function(e,t,a){"use strict";!function(){var t=a(5);function r(e){t.extendObservable(this,{id:null,title:null,width:null,height:null}),e&&this.populateData(e)}r.prototype.populateData=t.action(function(e){this.id=e.id,this.title=e.title,this.width=e.width,this.height=e.height}),e.exports=r}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(11),i=a(696),o=(r=i)&&r.__esModule?r:{default:r},l=a(1);var s="cancel",u="accept";t.default=(0,n.compose)((0,n.setDisplayName)("EmbedReportPopup"),(0,n.withProps)(function(){return{store:new o.default}}),(0,n.withHandlers)({onClosing:(0,l.curry)(function(e,t,a){switch(a){case u:e.reportPartContent.updateEmbeddedReportHtml(e.embeddedReportDOM,e.store.model),e.onAccept();break;case s:e.onReject()}})})),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(32),i=a(4),o=a(694),l=r.createClass({displayName:"ReportPartFormSpellCheck",propTypes:{content:r.PropTypes.string},onClosing:function(e,t){switch(t){case"accept":this.props.onAcceptChange(this.refs.tinyEditor.getContent()),this.props.onAccept();break;case"cancel":this.props.onReject()}},render:function(){var e=this.props.localization;return r.createElement(n,{visible:!0,onClosing:this.onClosing,autoClose:!1,type:"none"},r.createElement(n.Header,{title:e.getText("REPORTDESIGNER_LABEL_SPELL_CHECKER")}),r.createElement(n.Body,null,r.createElement(o,{id:"izenda-FormSpellCheck",ref:"tinyEditor",config:{browser_spellcheck:!0,contextmenu:!1,statusbar:!1,plugins:[]},content:this.props.content})),r.createElement(n.Footer,null,r.createElement(n.ConfirmationButton,{type:"accept"},e.getText("COMMON_LABEL_APPLY")),r.createElement(n.ConfirmationButton,{type:"cancel"},e.getText("COMMON_LABEL_CANCEL"))))}}),e.exports=i()(l)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(a(0)),n=u(a(32)),i=u(a(15)),o=u(a(29)),l=u(a(2128)),s=u(a(4));function u(e){return e&&e.__esModule?e:{default:e}}t.default=(0,s.default)(l.default)(function(e){var t=e.localization;return r.default.createElement(n.default,{visible:!0,onClosing:e.onClosing,autoClose:!1,type:"none"},r.default.createElement(n.default.Header,{title:t.getText("REPORTDESIGNER_LABEL_FIELD_SELECTION")}),r.default.createElement(n.default.Body,null,r.default.createElement(i.default,{className:"form-horizontal"},r.default.createElement(i.default.Row,{className:"form-group"},r.default.createElement(i.default.Col,{cols:"3"},t.getText("COMMON_LABEL_DATA_SOURCE")),r.default.createElement(i.default.Col,{cols:"9"},r.default.createElement(o.default,{options:e.fieldQuerySourceList,onChange:e.onChangeDataSouce,value:e.selectedQuerySource.id,valueField:"id",labelField:"name"}))),r.default.createElement(i.default.Row,{className:"form-group"},r.default.createElement(i.default.Col,{cols:"3"},t.getText("COMMON_LABEL_FIELD")),r.default.createElement(i.default.Col,{cols:"9"},r.default.createElement(o.default,{options:e.selectedQuerySource.fields,onChange:e.onChangeField,value:e.selectedField.name,valueField:"name",labelField:"name"}))))),r.default.createElement(n.default.Footer,null,r.default.createElement(n.default.ConfirmationButton,{type:"accept"},t.getText("COMMON_LABEL_OK")),r.default.createElement(n.default.ConfirmationButton,{type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))}),e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=a(11).setDisplayName,n=a(11).withState,i=a(11).withProps,o=a(11).withHandlers,l="cancel",s="accept",u=a(1),d=u.flow,c=u.map,p=u.find,f=u.groupBy,h=u.curry,m=t(r("FieldSelectionPopup"),i(function(e){var t=e.reportPartContent,a=t.columns,r=t.separators,n=a.visibleElement.concat(r.visibleElement),i=d(c("field"),c(function(e){return{id:e.fieldId,name:e.fieldNameAlias}}),c(function(t){var a=p(function(e){return p(function(e){return e.id===t.id},e.fields)},e.store.fieldQuerySource);return{id:t.id,name:t.name,querySourceId:a.id,querySourceName:a.name}}),f("querySourceId"))(n),o=[];for(var l in i){for(var s=i[l],u={id:l,name:s[0].querySourceName,fields:[]},h=0;h0?e.fieldQuerySourceList[0]:{}}),n("selectedField","updateSelectedField",function(e){return e.fieldQuerySourceList.length>0?e.fieldQuerySourceList[0].fields[0]:{}}),o({onChangeDataSouce:h(function(e,t,a){e.updateSelectedQuerySource(a),e.updateSelectedField(a.fields[0])}),onChangeField:h(function(e,t,a){e.updateSelectedField(a)}),onClosing:h(function(e,t,a){switch(a){case s:e.isSubTotal?(e.reportPartContent.updateSubTotalHtml(e.selectedField.name,e.selectedElement),e.reportPartContent.rebuildHTMLContent(!1),e.reportPartContent.syncHtmlContentToTinyMCE()):e.reportPartContent.updateGrandTotalHtml(e.selectedField.name,e.selectedElement),e.onAccept();break;case l:e.onReject()}})}));e.exports=m}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(0),i=(r=n)&&r.__esModule?r:{default:r},o=a(9);t.default=(0,o.observer)(function(e){var t=e.canDrop?"izenda-Wrapper can-drop":"";return i.default.createElement("div",{className:t})}),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),n=a(9).observer,i=a(10),o=a(24),l=a(2131),s=a(167),u=a(1).getOr,d=r.createClass({displayName:"ReportPartFormHTML",propTypes:{reportPart:r.PropTypes.object},handleChange:function(e){var t=this.props.store,a=this.props.reportPart.reportPartContent;a.setHTMLContent&&a.setHTMLContent(e),t.model.markDirty()},componentDidMount:function(){var e=this.props.reportPart.reportPartContent,t=this.refs.codeEditor||{};e.setEditorControl(t)},render:function(){var e=o.notifyChange,t=this.props.reportPart.reportPartContent;t.convertRepeaterTag(0,s.TAB_HTML.key);var a=u(!0,"properties.highlightCode",t),n={lineNumbers:!0,lineWrapping:u(!0,"properties.wrapText",t),mode:"text/html",highlightSelectionMatches:!0,indentUnit:2,matchBrackets:!0},d=i("report-part-form-html",{"can-drop":this.props.canDrop});return r.createElement("div",{className:d},a?r.createElement(l,{onChange:this.handleChange,value:t.htmlContent,reportPartContent:t,options:n,ref:"codeEditor"}):r.createElement("textarea",{name:"form",onChange:e(this.handleChange,o.INPUT),defaultValue:t.htmlContent}))}}),e.exports=n(d)},function(e,t,a){"use strict";var r,n,i;r=a(0),n=a(2132),i=r.createClass({displayName:"CodeMirror",propTypes:{value:r.PropTypes.string,defaultValue:r.PropTypes.string,className:r.PropTypes.string,onChange:r.PropTypes.func,options:r.PropTypes.object,reportPartContent:r.PropTypes.object},getCodeMirror:function(){return this.codeMirror},componentDidMount:function(){var e=this.refs.textarea;this.codeMirror=n.fromTextArea(e,this.props.options),this.codeMirror.on("change",this.handleChange),this.codeMirror.setValue(this.props.defaultValue||this.props.value||""),this.props.reportPartContent.isFormatted&&this.codeMirror.autoFormatAll()},handleChange:function(e,t){this.props.onChange&&"setValue"!=t.origin&&this.props.onChange(e.getValue())},componentWillUnmount:function(){this.codeMirror&&this.codeMirror.toTextArea()},searchCode:function(e){return this.codeMirror.searchCode(e)},replaceCode:function(e,t){return this.codeMirror.replaceCode(e,t)},insertContent:function(e){this.codeMirror.replaceSelection(e),this.codeMirror.setCursor(this.codeMirror.getCursor())},execCommand:function(e){switch(e){case"Undo":this.codeMirror.execCommand("undo");break;case"Redo":this.codeMirror.execCommand("redo");break;case"Reformat":this.props.reportPartContent.markFormated(),this.codeMirror.autoFormatAll()}},componentWillReceiveProps:function(e){this.codeMirror&&void 0!==e.value&&this.codeMirror.getValue()!=e.value&&this.codeMirror.setValue(e.value),this.codeMirror&&e.options!==this.props.options&&this.codeMirror.setOption("lineWrapping",e.options.lineWrapping)},render:function(){return r.createElement("div",{className:"izenda-CodeMirror"},r.createElement("textarea",{ref:"textarea",name:this.props.path,defaultValue:this.props.value,onChange:this.valueChanged,autoComplete:"off"}))}}),e.exports=i},function(e,t,a){"use strict";!function(){var t=a(150);a(2133),a(2135),a(1182);var r=null,n=null,i=[];function o(){for(var e=0;e$/.test(t)||/^this.domNode.offsetHeight?this.domNode.offsetHeight:n;a.style.height=i+"px"}}},{key:"generateHTMLCode",value:function(){var e=this.props,t=this.props,a=t.store,r=t.reportPart,n=t.reportPart,i=n.reportPartContent,o=n.previewData,l=(0,D.get)("reportId",a)||r.reportId,s=(0,D.getOr)([],"previewDataRecords",r),u=(0,D.getOr)([],"fieldsMapping",o),d=(0,D.getOr)([],"subTotalMapping",o),c=(0,D.getOr)([],"grandTotalMapping",o);return i.generatePreviewData(e,u,d,c,s,this.embedReportStore.model,l)}},{key:"render",value:function(){var e=this.props,t=this.props,a=t.viewMode,r=t.reportPart,n=t.reportPart,i=n.reportPartContent,o=n.previewData,l=t.printingMode,s=t.finishedRender,u=t.embededReportPart,d=t.forDashboard,c=(0,D.getOr)({},"properties",i),p=c.isVisibleBorder?{borderStyle:c.borderStyle,borderColor:c.borderColor,borderWidth:c.borderWidth}:{};p.backgroundColor=c.backgroundColor;var f=(0,D.getOr)({},"paging",o),h=(0,T.default)("u_clearBoth with-border",{hide:!c.usePagination});return e.refreshData&&e.refreshData(!0),E.default.createElement("div",{ref:this.setDom},E.default.createElement(O.default,{embeddedReports:this.resultHTMLCode.embeddedReports,embeddedSubReports:this.resultHTMLCode.embeddedSubReports,masterDomNode:this.domNode,finishGetData:this.loadedData,viewHeight:r.height*I.default.BODY_CELL_HEIGHT,printingMode:l,finishedRender:s,embededReportPart:u,viewMode:a,forDashboard:d,ignoreCache:e.ignoreCache},E.default.createElement("div",{className:"report-part-form-front custom-tinymce izenda-ResetCssForm",style:p,dangerouslySetInnerHTML:{__html:this.resultHTMLCode.htmlContent}})),!l&&E.default.createElement(S.default,{onChange:this.goToPage,onDropdownChange:this.onPageSizeChange,totalRecords:f.total||0,pageSize:f.pageSize||C.default.DEFAULT_PAGE_SIZE,pageIndex:f.pageIndex||C.default.DEFAULT_PAGE_INDEX,className:h,canChangePageSize:!a}))}}]),t}(g.Component),s.propTypes={reportPart:y.default.object},o=M((i=u).prototype,"loadedData",[v.observable],{enumerable:!0,initializer:function(){return!1}}),l=M(i.prototype,"resultHTMLCode",[v.observable],{enumerable:!0,initializer:function(){return{embeddedReports:[],embeddedSubReports:[],htmlContent:""}}}),n=i))||n;t.default=k,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";!function(){var t=a(110),r=a(698);function n(e){this.reportDesignerDataTree=new r,e.reportPartContent.setDataTree(this.reportDesignerDataTree)}n.prototype.loadDataTree=function(e,a){var r=this.reportDesignerDataTree;return t.availableQuerySourceFields(e,a).then(r.readDataSource.bind(r))},e.exports=n}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C=M(a(17)),b=M(a(23)),N=M(a(2)),A=M(a(3)),R=M(a(268)),O=(a(334),M(a(53))),I=a(112),D=a(5),P=a(1),L=a(18);function M(e){return e&&e.__esModule?e:{default:e}}function F(e,t,a,r){a&&(0,C.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function k(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var x=(0,O.default)((n=function(){function e(t){(0,N.default)(this,e),F(this,"id",i,this),F(this,"name",o,this),F(this,"originalName",l,this),F(this,"type",s,this),F(this,"selected",u,this),F(this,"visible",d,this),F(this,"querySourceCategoryName",c,this),F(this,"connectionName",p,this),F(this,"isAlias",f,this),F(this,"fields",h,this),F(this,"functionName",m,this),F(this,"expression",g,this),F(this,"izendaDataType",E,this),F(this,"dataSourceCategoryId",y,this),F(this,"dataSourceCategoryName",v,this),F(this,"numOfChilds",T,this),F(this,"isDynamic",_,this),F(this,"allowToSave",S,this),this.expand=!1,this.populateData(t||{}),this.resetDirty()}return(0,A.default)(e,[{key:"aliasId",get:function(){return this.id+"_"+this.name}},{key:"isStoreProcedure",get:function(){return this.type===I.NODE_TYPE.STORE_PROCEDURE}},{key:"flattenQuerySource",get:function(){var e=this,t=this.name;return(0,P.flow)((0,P.filter)(function(e){return e.izendaDataType!==L.DATA_TYPES.LOB&&e.izendaDataType!==L.DATA_TYPES.IMAGE&&e.izendaDataType!==L.DATA_TYPES.BOOLEAN}),(0,P.map)(function(a){return{field:a,querySourceDetail:e,name:a.name,id:a.id,category:t}}))(this.fields)}}]),(0,A.default)(e,[{key:"populateData",value:function(e){this.id=e.id||null,this.name=e.name||"",this.originalName=e.originalName||"",this.type=e.type||"",this.selected=e.selected||!1,this.visible=e.visible||!1,this.querySourceCategoryName=e.querySourceCategoryName||"",this.connectionName=e.connectionName||"",this.isAlias=e.isAlias||!1,this.fields=e.fields||[],this.functionName=e.functionName||"",this.expression=e.expression||"",this.izendaDataType=e.izendaDataType||"",this.dataSourceCategoryId=e.dataSourceCategoryId||null,this.dataSourceCategoryName=e.dataSourceCategoryName||"",this.numOfChilds=e.numOfChilds||0,this.isDynamic=e.isDynamic||!1,this.expand=e.expand||!1,this.allowToSave=e.allowToSave||!1}},{key:"updateData",value:function(e){var t=(0,P.find)({id:e.id},this.fields);return t?((0,R.default)(t,"name",e.name),(0,R.default)(t,"expression",e.expression),(0,R.default)(t,"izendaDataType",e.izendaDataType),this.markDirty(),this):null}},{key:"checkExistingFieldName",value:function(e,t){var a=(0,P.filter)(function(a){return a.name===t&&a.id!==e},this.fields);return a&&a.length>0}}]),e}(),i=k(n.prototype,"id",[D.observable],{enumerable:!0,initializer:null}),o=k(n.prototype,"name",[D.observable],{enumerable:!0,initializer:null}),l=k(n.prototype,"originalName",[D.observable],{enumerable:!0,initializer:null}),s=k(n.prototype,"type",[D.observable],{enumerable:!0,initializer:null}),u=k(n.prototype,"selected",[D.observable],{enumerable:!0,initializer:null}),d=k(n.prototype,"visible",[D.observable],{enumerable:!0,initializer:null}),c=k(n.prototype,"querySourceCategoryName",[D.observable],{enumerable:!0,initializer:null}),p=k(n.prototype,"connectionName",[D.observable],{enumerable:!0,initializer:null}),f=k(n.prototype,"isAlias",[D.observable],{enumerable:!0,initializer:null}),h=k(n.prototype,"fields",[D.observable],{enumerable:!0,initializer:null}),m=k(n.prototype,"functionName",[D.observable],{enumerable:!0,initializer:null}),g=k(n.prototype,"expression",[D.observable],{enumerable:!0,initializer:null}),E=k(n.prototype,"izendaDataType",[D.observable],{enumerable:!0,initializer:null}),y=k(n.prototype,"dataSourceCategoryId",[D.observable],{enumerable:!0,initializer:null}),v=k(n.prototype,"dataSourceCategoryName",[D.observable],{enumerable:!0,initializer:null}),T=k(n.prototype,"numOfChilds",[D.observable],{enumerable:!0,initializer:null}),_=k(n.prototype,"isDynamic",[D.observable],{enumerable:!0,initializer:null}),S=k(n.prototype,"allowToSave",[D.observable],{enumerable:!0,initializer:null}),k(n.prototype,"aliasId",[D.computed],(0,b.default)(n.prototype,"aliasId"),n.prototype),k(n.prototype,"isStoreProcedure",[D.computed],(0,b.default)(n.prototype,"isStoreProcedure"),n.prototype),k(n.prototype,"flattenQuerySource",[D.computed],(0,b.default)(n.prototype,"flattenQuerySource"),n.prototype),k(n.prototype,"updateData",[D.action],(0,b.default)(n.prototype,"updateData"),n.prototype),r=n))||r;t.default=x,e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,l,s=O(a(14)),u=O(a(6)),d=O(a(2)),c=O(a(3)),p=O(a(7)),f=O(a(8)),h=a(1),m=a(5),g=O(a(13)),E=a(0),y=O(E),v=O(a(35)),T=a(9),_=O(a(264)),S=O(a(4)),C=O(a(260)),b=O(a(94)),N=O(a(326)),A=O(a(2141)),R=O(a(2142));function O(e){return e&&e.__esModule?e:{default:e}}var I=(0,S.default)()((o=i=function(e){function t(e){(0,d.default)(this,t);var a=(0,p.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return l.call(a),a.store=new A.default(e.viewHeight),a}return(0,f.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){var e=N.default.findScrollableParent(this.virtualForm),t=(0,h.debounce)({maxWait:450},this.onScroll);e&&e.addEventListener("scroll",t,{capture:!1,passive:!0}),this.props.embededReportPart&&this.publishFinishedRender()}},{key:"componentDidUpdate",value:function(e){var t=e.embeddedReports,a=e.embeddedSubReports,r=this.props,n=r.embeddedReports,i=r.embeddedSubReports;(0,h.isEqual)((0,m.toJS)(t),(0,m.toJS)(n))&&(0,h.isEqual)((0,m.toJS)(a),(0,m.toJS)(i))||(this.store.cleanUp(),this.store.updateItems(this.getData()),this.renderReports(0),this.publishFinishedRender())}},{key:"componentWillUnmount",value:function(){(0,h.forEach)(v.default.unmountComponentAtNode.bind(v.default),this.needUnmount),(0,h.forEach)(function(e){C.default.removeListener(e.element,e.listener)},this.elementResizeListener),this.needUnmount=[],this.elementResizeListener=[]}},{key:"createContextProvider",value:function(e){return y.default.createClass({childContextTypes:{loader:y.default.PropTypes.object,dialogs:y.default.PropTypes.object,exportLoader:y.default.PropTypes.object,validation:y.default.PropTypes.object,authorization:y.default.PropTypes.object,authorizationConstants:y.default.PropTypes.object,localization:y.default.PropTypes.object},getChildContext:function(){return{loader:e.loader,exportLoader:e.exportLoader,dialogs:e.dialogs,validation:e.validation,authorization:e.authorization,authorizationConstants:e.authorizationConstants,localization:e.localization}},render:function(){return this.props.children}})}},{key:"checkNextRendering",value:function(e,t,a){var r=this.store,n=e.reportPartDomId;if(!r.checkRenderedItem(n))if(r.updateRenderedIds(n),this.props.printingMode)b.default.getFinishedRenderPromiseById(this.renderListeners,a),this.renderReports(t+1);else{var i=this.reportDom;r.hasVacancy((0,h.get)("offsetHeight",i),e.reportPartDomId,t)?this.renderReports(t+1):(r.updateVirtualSections(),!(0,h.isEmpty)(r.virtualSections)&&this.renderReports(0))}}},{key:"render",value:function(){var e=this;return y.default.createElement("div",{ref:function(t){return e.virtualForm=t}},this.props.children)}}]),t}(E.Component),i.propTypes={embeddedReports:T.propTypes.arrayOrObservableArray.isRequired,embeddedSubReports:T.propTypes.arrayOrObservableArray.isRequired,finishGetData:g.default.bool,viewHeight:g.default.number,printingMode:g.default.bool},l=function(){var e=this;this.needUnmount=[],this.renderListeners=[],this.elementResizeListener=[],this.virtualForm=null,this.reportDom=null,this.setDom=function(t){e.reportDom=t},this.onScroll=function(t){var a=e.store,r=t.target.scrollTop,n=a.getItemsOnViewScreen(),i=(0,h.head)(n),o=(0,h.get)("reportPartDomId",i);a.hasVirtualSection(r)&&1===a.virtualSections.length&&!a.checkRenderedItem(o)&&e.renderReports(0)},this.getData=function(){var t=e.props;return t.finishGetData?(0,h.flow)(m.toJS,(0,h.concat)((0,m.toJS)(t.embeddedSubReports)))(t.embeddedReports):[]},this.publishFinishedRender=function(){var t=e.props;b.default.publishFinishedRender(e.renderListeners,function(){t.finishedRender&&t.finishedRender()})},this.renderReports=function(t){var a=e.store,n=a.getItemsOnViewScreen(),i=n[t];if(!(0,h.isEmpty)(n)&&tthis.getContainerHeight())||(this.heightTotalOnAViewScreen=0,this.startIndex=(0,i.findIndex)(["reportPartDomId",t],this.items)+1,this.first=!1,!1)}},{key:"hasNeedToCreateVirtualSectionPosition",value:function(e){return this.heightForRender-50=e?y.confirmMessage("error",l.BUNDLE.MESSAGE.FIELDS_EXCEEDED_LIMITATION).finally(function(){return(0,E.reject)(new s)}):(0,E.resolve)(arguments)},fnResetBorderDefaultValue:v.resetBorderDefaultValue.bind(v),fnResetRefreshIntervalDefaultValue:v.resetRefreshIntervalValue.bind(v),getBorderSettings:function(){return{isVisibleBorder:_("isVisibleBorder",!1),borderStyle:_("borderStyle",o.FORM_STYLE_DEFAULT.borderStyle),borderColor:_("borderColor",o.FORM_STYLE_DEFAULT.borderColor),borderWidth:_("borderWidth",o.FORM_STYLE_DEFAULT.borderWidth)}},hadSettingBorder:function(){var e={isVisibleBorder:_("isVisibleBorder",!1),borderStyle:_("borderStyle",o.FORM_STYLE_DEFAULT.borderStyle),borderColor:_("borderColor",o.FORM_STYLE_DEFAULT.borderColor),borderWidth:_("borderWidth",o.FORM_STYLE_DEFAULT.borderWidth)},t={isVisibleBorder:!1,borderStyle:o.FORM_STYLE_DEFAULT.borderStyle,borderColor:o.FORM_STYLE_DEFAULT.borderColor,borderWidth:o.FORM_STYLE_DEFAULT.borderWidth};return!c(e,t)},getDataRefreshInterval:function(){return _("dataRefreshInterval",{})},hadRefreshInterval:function(){var e=o.DEFAULT_SETTING_VALUE.refreshIntervalDefault,t=_("dataRefreshInterval",{});return t.value!==e.value||t.updateInterval!==e.updateInterval},getFieldQuerySource:function(){return{fieldQuerySource:d.fieldQuerySource}}},mappingSource:{getBackgroundColor:function(){return _("backgroundColor",o.FORM_STYLE_DEFAULT.backgroundColor)},hadSettingBackgroundColor:function(){return _("backgroundColor",o.FORM_STYLE_DEFAULT.backgroundColor)!==o.FORM_STYLE_DEFAULT.backgroundColor},getToolbarSetting:function(){return{pasteAsText:_("pasteAsText",!1)}},getHightlightCodeValue:function(){return _("highlightCode",!0)},getWrapTextValue:function(){return _("wrapText",!0)},getEditorControl:function(){return v.getEditorControl()},getEditButtonHidden:function(){var e=!v.isActiveForEdit||T;return{cut:e,copy:e,paste:e,pasteAsText:e,selectAll:T,searchReplace:T,searchReplaceHTML:!T}},getDirectionSetting:function(){return{mceDirectionRTL:_("mceDirectionRTL",!1),mceDirectionLTR:_("mceDirectionLTR",!0)}},getShowInvisibleCharacters:function(){return _("mceVisualChars",!1)},getVisualAids:function(){return _("mceToggleVisualAid",!0)},getUsePagination:function(){return _("usePagination",!1)},getPageBreakAfterEachEntry:function(){return _("pageBreakAfterEachEntry",!1)},isHiddenTableCell:function(){return!v.isSelectedCell},isActiveForEdit:function(){return!v.isActiveForEdit||T},isViewFrontSide:function(){return!a.isBackSide},isHiddenHTMLCode:function(){return!a.isBackSide||v.activeTabKey!==o.TAB_HTML.key},getTableButtonHidden:function(){var e=!v.isSelectedCell;return{tableDelete:e,tableProperties:e}},isInsertHidden:function(){return!v.isActiveForEdit},getFormatDateByKey:function(e){return p(e,_("format"))},getReportId:function(){return d.reportId}},onChangeValue:u.action(function(e,t,n,l,s){var u=(n&&n.length?p(n,e):e)[t];u&&(u.value=l);var c=v.formState.id,g={},E=!1;if("backgroundColor"===t&&(g.backgroundColor=p("form.backgroundColor.value",e)),"border"===t&&(g=f(g,p("form.border.value",e))),"field"===t){var y=p("insert.field.value.selectedFields",e),T=h(y)?y:y.peek();v.updateContainerField(),T.forEach(function(e){a.insertFieldToContainer(v.columns,e.field,e.querySource).then(function(t){var a=v.getHTMLCodeField(t,e.querySource);v.getEditorControl().insertContent(a)})})}if("embedReport"===t){var S=e.insert.embedReport.value;v.insertEmbeddedReportHtml(S)}"wrapText"===t&&(g.wrapText=e.html.wrapText.value),"highlightCode"===t&&(g.highlightCode=e.html.highlightCode.value),"showInvisibleCharacters"===t&&(g.mceVisualChars=p("view.showInvisibleCharacters.value",e)),"visualAids"===t&&(g.mceToggleVisualAid=p("view.visualAids.value",e)),"dataRefreshInterval"===t&&(g.dataRefreshInterval=p("view.dataRefreshInterval.value",e)),"usePagination"===t&&(g.usePagination=p("view.usePagination.value",e),E=!0),"pageBreakAfterEachEntry"===t&&(g.pageBreakAfterEachEntry=p("printing.pageBreakAfterEachEntry.value",e)),"pasteAsText"===s&&(g.pasteAsText=!m(!1,"pasteAsText",_())),"mceTemplateEmpty"!==s?(a.setReportPartProperties(g),E&&r.canShowPreview()&&d.needUpdatePreview()):i.showNotify(c,o.MESSAGES.M15)})}}}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};a(97);t.default={schemaKey:"RP_FORM_TYPE",fields:{form:{component:"Panel",isHidden:"isNotShow",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("COMMON_LABEL_FORM")},icon:"icon-toggle-triangle"}},fields:{border:{get title(){return i.default.getText("COMMON_LABEL_BORDER")},type:"btnPopup",fnValue:"getBorderSettings",props:{hadSetting:"hadSettingBorder",fnResetDefaultValue:"fnResetBorderDefaultValue",loadValue:"getBorderSettings"},staticProps:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_FORM_BORDER_SETTINGS")},className:"icon-setting btn-icon",get popupTitle(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_FORM_BORDER_SETTINGS")},popupContent:a(2145),popupProps:{type:"none"}}},backgroundColor:{get title(){return i.default.getText("COLOR_STYLING_BACKGROUND_TOOLTIP")},type:"color",fnValue:"getBackgroundColor",props:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_BACKGROUND_COLOR_SETTINGS")},position:"left",hadSetting:"hadSettingBackgroundColor",loadValue:"getBackgroundColor"}}}},edit:{component:"Panel",isHidden:"isViewFrontSide",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("COMMON_LABEL_EDIT")},icon:"icon-toggle-triangle"}},fields:{toolbar:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_TOOL_BAR")},component:"ButtonGroup",fnValue:"getToolbarSetting",props:{editorControl:"getEditorControl",buttonsHidden:"getEditButtonHidden",buttons:{cut:{className:"icon-cut",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_CUT")},value:"Cut",isExecute:!0},copy:{className:"icon-copy",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_COPY")},value:"Copy",isExecute:!0},paste:{className:"icon-paste",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_PASTE")},value:"Paste",isExecute:!0},pasteAsText:{className:"icon-pastetext",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_PASTE_AS_TEXT")},value:"pasteAsText",breakLine:!0},selectAll:{className:"icon-select-all",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_SELECT_ALL")},value:"selectAll",isExecute:!0},searchReplace:{className:"icon-search-replace",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_FIND_AND_REPLACE_SHORT_CUT")},value:"SearchReplace",isExecute:!0},searchReplaceHTML:{component:a(2146),className:"icon-search-replace",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_FIND_AND_REPLACE")}},undo:{className:"icon-back",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_UNDO")},value:"Undo",isExecute:!0},redo:{className:"icon-next",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_REDO")},value:"Redo",isExecute:!0}}}}}},insert:{component:"Panel",isHidden:"isInsertHidden",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("COMMON_LABEL_INSERT")},icon:"icon-toggle-triangle"}},fields:{item:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_ITEM")},component:"ButtonGroup",isHidden:"isActiveForEdit",props:{editorControl:"getEditorControl",buttons:{link:{className:"icon-link",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_EDIT_LINK")},value:"mceLink",isExecute:!0},image:{className:"icon-img",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_EDIT_IMAGE")},value:"mceImage",isExecute:!0},anchor:{className:"icon-anchor",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_EDIT_ANCHOR")},value:"mceAnchor",isExecute:!0},charmap:{className:"icon-special",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_SPECIAL_CHARACTER")},value:"mceShowCharmap",isExecute:!0,breakLine:!0},insertDate:{className:"icon-calendar",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_DATE_TIME_VALUE")},value:"mceInsertDate",isExecute:!0},insertRule:{className:"icon-line",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_HORIZONTAL_LINE")},value:"InsertHorizontalRule",isExecute:!0},pageBreak:{className:"icon-seperate",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_PAGE_BREAK")},value:"mcePageBreak",isExecute:!0},template:{className:"icon-temp",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_TEMPLATE_BREAK")},value:"mceTemplateEmpty"}}}},field:{get title(){return i.default.getText("COMMON_LABEL_FIELD")},type:"btnPopup",fnValue:"getFieldQuerySource",props:{beforeOnChange:"beforeAddField",loadValue:"getFieldQuerySource"},staticProps:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_ADD_FIELD")},className:"icon-plus-circled btn-icon",get popupTitle(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_FIELD_SELECTION")},popupContent:a(2147),popupProps:{type:"none",containerClass:"izenda-SelectionFieldPopup"}}},smartTag:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_SMART_TAG")},component:"ButtonGroup",fnValue:"getGeneralInfoByKey",props:{editorControl:"getEditorControl",buttons:{smartTag:{type:"smartTag",component:a(2148),className:"icon-tag",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_SMART_TAG")}}}}},repeater:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_REPEATER")},component:"ButtonGroup",fnValue:"getFormatDateByKey",props:{editorControl:"getEditorControl",buttons:{repeater:{type:"repeater",component:a(283),className:"icon-repeat",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_REPEATER")}}}}},embedReport:{get title(){return i.default.getText("COMMON_LABEL_EMBEDDED_REPORT_SETTINGS")},type:"btnPopup",props:{reportId:"getReportId"},staticProps:{get title(){return i.default.getText("COMMON_LABEL_EMBEDDED_REPORT_SETTINGS")},className:"btn-icon icon-embed",get popupTitle(){return i.default.getText("COMMON_LABEL_EMBEDDED_REPORT_SETTINGS")},popupContent:a(1179),popupProps:{type:"none",autoClose:!1}}}}},format:{component:"Panel",isHidden:"isActiveForEdit",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("COMMON_LABEL_FORMAT")},icon:"icon-toggle-triangle"}},fields:{heading:{get title(){return i.default.getText("COMMON_LABEL_HEADING")},component:"ButtonGroup",fnValue:"getFormatDateByKey",props:{editorControl:"getEditorControl",buttons:{heading:{type:"heading",component:a(283),className:"icon-heading",get title(){return i.default.getText("COMMON_LABEL_HEADING")}}}}},block:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_BLOCKS")},component:"ButtonGroup",fnValue:"getFormatDateByKey",props:{editorControl:"getEditorControl",buttons:{block:{type:"block",component:a(283),className:"icon-block",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_BLOCKS")}}}}},font:{get title(){return i.default.getText("FONT_SETTINGS_LABEL_FONT")},component:a(2152),fnValue:"getFormatDateByKey",props:{editorControl:"getEditorControl",buttons:{script:{superscript:{className:"icon-upno",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_SUPERSCRIPT")},value:"superscript"},subscript:{className:"icon-dono",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_SUBSCRIPT")},value:"subscript"}},default:{bold:{className:"u_textBold",get title(){return i.default.getText("FONT_STYLE_BOLD_TOOLTIP")},value:"bold",text:"B"},italic:{className:"u_textItalic",get title(){return i.default.getText("FONT_STYLE_ITALIC_TOOLTIP")},value:"italic",text:"I"},underline:{className:"u_textUnderline",get title(){return i.default.getText("FONT_STYLE_UNDERLINE_TOOLTIP")},value:"underline",text:"U"},strikethrough:{className:"icon-del-text",get title(){return i.default.getText("COMMON_LABEL_STRIKETHROUGH")},value:"strikethrough"}},codeScript:{code:{className:"icon-script",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_CODE")},value:"code"}}}}},alignment:{get title(){return i.default.getText("FONT_SETTINGS_LABEL_ALIGNMENT")},component:"ButtonGroup",fnValue:"getFormatDateByKey",props:{editorControl:"getEditorControl",buttons:{alignleft:{className:"icon-align-left",get title(){return i.default.getText("COMMON_LABEL_ALIGN_LEFT")},value:"JustifyLeft",isExecute:!0},aligncenter:{className:"icon-align-center",get title(){return i.default.getText("COMMON_LABEL_ALIGN_CENTER")},value:"JustifyCenter",isExecute:!0},alignright:{className:"icon-align-right",get title(){return i.default.getText("COMMON_LABEL_ALIGN_RIGHT")},value:"JustifyRight",isExecute:!0},alignjustify:{className:"icon-align-justify",get title(){return i.default.getText("COMMON_LABEL_ALIGN_JUSTIFY")},value:"JustifyFull",isExecute:!0}}}},list:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_LIST")},component:"ButtonGroup",fnValue:"getFormatDateByKey",props:{editorControl:"getEditorControl",buttons:{bullet:{type:"bullet",component:a(283),className:"icon-list-bullet",get title(){return i.default.getText("COMMON_LABEL_BULLET_LIST")}},numbered:{type:"numbered",component:a(283),className:"icon-numbered",get title(){return i.default.getText("COMMON_LABEL_NUMBERED_LIST")}}}}},indent:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INDENT")},component:"ButtonGroup",fnValue:"getGeneralInfoByKey",props:{editorControl:"getEditorControl",buttons:{indent:{className:"icon-cl",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INCREASE_INDENT")},value:"Indent",isExecute:!0},outdent:{className:"icon-ex",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_DECREASE_INDENT")},value:"Outdent",isExecute:!0}}}},clearFormatting:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_CLEAR_FORMATTING")},component:"ButtonGroup",fnValue:"getGeneralInfoByKey",props:{editorControl:"getEditorControl",buttons:{removeFormat:{className:"icon-clear",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_CLEAR_FORMATTING")},value:"RemoveFormat",isExecute:!0}}}}}},table:{component:"Panel",isHidden:"isActiveForEdit",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("MODEL_LABEL_TABLE")},icon:"icon-toggle-triangle"}},fields:{table:{get title(){return i.default.getText("MODEL_LABEL_TABLE")},component:"ButtonGroup",props:{editorControl:"getEditorControl",buttonsHidden:"getTableButtonHidden",buttons:{insertTable:{component:a(2153),className:"icon-table-new",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_TABLE")}},tableDelete:{className:"icon-notable",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_DELETE_TABLE")},value:"mceTableDelete",isExecute:!0},tableProperties:{className:"icon-setting",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_TABLE_PROPERTIES")},value:"mceInsertTable",isExecute:!0}}}},cell:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_CELL")},component:"ButtonGroup",isHidden:"isHiddenTableCell",props:{editorControl:"getEditorControl",buttons:{cellProp:{className:"icon-setting",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_CELL_PROPERTIES")},value:"mceTableCellProps",isExecute:!0},mergeCells:{className:"icon-rcell-icon",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_MERGE_CELL")},value:"mceTableMergeCells",isExecute:!0},splitCell:{className:"icon-acell",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_SPLIT_CELL")},value:"mceTableSplitCells",isExecute:!0}}}},row:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_ROW")},component:"ButtonGroup",isHidden:"isHiddenTableCell",props:{editorControl:"getEditorControl",buttons:{rowBefore:{className:"icon-addup",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_ROW_BEFORE")},value:"mceTableInsertRowBefore",isExecute:!0},rowAfter:{className:"icon-adddo",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_ROW_AFTER")},value:"mceTableInsertRowAfter",isExecute:!0},deleteRow:{className:"icon-remove-cell",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_DELETE_ROW")},value:"mceTableDeleteRow",isExecute:!0},rowProperties:{className:"icon-setting",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_ROW_PROPERTIES")},value:"mceTableRowProps",isExecute:!0,breakLine:!0},cutRow:{className:"icon-cut",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_CUT_ROW")},value:"mceTableCutRow",isExecute:!0},copyRow:{className:"icon-copy-new",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_COPY_ROW")},value:"mceTableCopyRow",isExecute:!0},pasteRowBefore:{className:"icon-paste",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_PASTE_ROW_BEFORE")},value:"mceTablePasteRowBefore",isExecute:!0},pasteRowAfter:{className:"icon-pastetext",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_PASTE_ROW_AFTER")},value:"mceTablePasteRowAfter",isExecute:!0}}}},column:{get title(){return i.default.getText("COMMON_LABEL_COLUMN")},component:"ButtonGroup",isHidden:"isHiddenTableCell",props:{editorControl:"getEditorControl",buttons:{insertColumnBefore:{className:"icon-addle-icon",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_COLUMN_BEFORE")},value:"mceTableInsertColBefore",isExecute:!0},insertColumnAfter:{className:"icon-addri",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_INSERT_COLUMN_AFTER")},value:"mceTableInsertColAfter",isExecute:!0},deleteColumn:{className:"icon-remove-row",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_DELETE_COLUMN")},value:"mceTableDeleteCol",isExecute:!0}}}}}},tool:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_TOOL")},icon:"icon-toggle-triangle"}},fields:{directionality:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_DIRECTIONALITY")},component:"ButtonGroup",isHidden:"isViewFrontSide",fnValue:"getDirectionSetting",props:{editorControl:"getEditorControl",buttons:{rightToLeft:{className:"icon-rblock",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_RIGHT_TO_LEFT")},value:"mceDirectionRTL",isExecute:!0},leftToRight:{className:"icon-lblock",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_LEFT_TO_RIGHT")},value:"mceDirectionLTR",isExecute:!0}}}}}},html:{component:"Panel",isHidden:"isHiddenHTMLCode",props:{initState:!0,collapsible:!0,header:{title:"HTML",icon:"icon-toggle-triangle"}},fields:{wrapText:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_WRAP_TEXT")},type:"checkbox",fnValue:"getWrapTextValue"},highlightCode:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_HIGHTLIGHT_CODE")},type:"checkbox",fnValue:"getHightlightCodeValue"},reformat:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_REFORMAT")},component:"ButtonGroup",props:{editorControl:"getEditorControl",buttons:{reformat:{className:"icon-reformat",get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_REFORMAT")},value:"Reformat",isExecute:!0}}}}}},view:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("MODEL_LABEL_VIEW")},icon:"icon-toggle-triangle"}},fields:{showInvisibleCharacters:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_SHOW_INVISIBLE_CHARACTERS")},type:"checkbox",fnValue:"getShowInvisibleCharacters"},visualAids:{get title(){return i.default.getText("REPORT_PART_PROPS_FORM_SCHEMA_SHOW_VISUAL_AIDS")},type:"checkbox",fnValue:"getVisualAids"},dataRefreshInterval:{get title(){return i.default.getText("COMMON_LABEL_DATA_REFRESH_INTERVAL_SETTING")},type:"btnPopup",fnValue:"getDataRefreshInterval",props:{hadSetting:"hadRefreshInterval",fnResetDefaultValue:"fnResetRefreshIntervalDefaultValue",loadValue:"getDataRefreshInterval"},staticProps:{get title(){return i.default.getText("COMMON_LABEL_DATA_REFRESH_INTERVAL_SETTING")},className:"icon-setting btn-icon",get popupTitle(){return i.default.getText("COMMON_LABEL_DATA_REFRESH_INTERVAL_SETTING")},popupContent:a(335),popupProps:{type:"none",autoClose:!1}}},usePagination:{get title(){return i.default.getText("COMMON_LABEL_USE_PAGINATION")},type:"checkbox",fnValue:"getUsePagination"}}}}},e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p;r=a(0),n=a(24),i=a(9).observer,o=a(242),l=a(212),s=a(398),u=a(19),d=a(12),c=a(41),p=r.createClass({displayName:"FormBorderSettings",propTypes:{onChange:r.PropTypes.func},getInitialState:function(){var e=this.props.value;return{isVisibleBorder:e.isVisibleBorder,borderStyle:e.borderStyle,borderColor:e.borderColor,borderWidth:e.borderWidth}},getValue:function(){var e=this.state;return{isVisibleBorder:e.isVisibleBorder,borderStyle:e.borderStyle,borderColor:e.borderColor,borderWidth:e.borderWidth}},onChange:function(e,t){var a={};a[e]=t,this.setState(a)},render:function(){var e=this.state,t=n.notifyChange,a=e.isVisibleBorder?{borderStyle:e.borderStyle,borderColor:e.borderColor,borderWidth:e.borderWidth}:null,i=c.canShowPreview()?"col-md-6":"col-md-12";return r.createElement("section",{className:"border-settings"},r.createElement("div",{className:"row no-margin border-settings-header"},r.createElement("div",{className:i+" text-center"},d.getText("COMMON_LABEL_CONFIGURATION")),c.canShowPreview()&&r.createElement("div",{className:"col-md-6 text-center"},d.getText("COMMON_LABEL_PREVIEW"))),r.createElement("div",{className:"row no-gutter no-margin border-settings-body flex-layout"},r.createElement("div",{className:i+" text-center form-horizontal"},r.createElement("div",{className:"form-group"},r.createElement("label",{className:"control-label col-md-4"},d.getText("COMMON_LABEL_VISIBLE")),r.createElement("div",{className:"col-md-8 text-left"},r.createElement(u,{className:"default",type:"checkbox",checked:!!e.isVisibleBorder,onChange:t(p.bind(this,"isVisibleBorder"),n.CHECKBOX)}))),r.createElement("div",{className:"form-group"},r.createElement("label",{className:"control-label col-md-4"},d.getText("BORDER_SETTING_LABEL_DASH_STYLE")),r.createElement("div",{className:"col-md-8"},r.createElement(s,{disabled:!e.isVisibleBorder,dashStyle:e.borderStyle,onChange:p.bind(this,"borderStyle")}))),r.createElement("div",{className:"form-group"},r.createElement("label",{className:"control-label col-md-4","aria-middle":"true"},d.getText("COMMON_LABEL_COLOR")),r.createElement("div",{className:"col-md-8 text-left"},r.createElement("div",{className:"borders-color"},r.createElement(l,{disabled:!e.isVisibleBorder,color:e.borderColor,onChange:p.bind(this,"borderColor")})))),r.createElement("div",{className:"form-group"},r.createElement("label",{className:"control-label col-md-4","aria-middle":"true"},d.getText("BORDER_SETTING_LABEL_THICKNESS")),r.createElement("div",{className:"col-md-8"},r.createElement(o,{disabled:!e.isVisibleBorder,value:e.borderWidth,onChange:p.bind(this,"borderWidth")})))),c.canShowPreview()&&r.createElement("div",{className:"col-md-6 text-center"},r.createElement("div",{className:"full-height",style:a},d.getText("REPORTDESIGNER_PLACEHOLDER_DUMMY_REPORT_PART_FORM")))));function p(e){var t="borderWidth"===e?arguments[1].value:arguments[1];this.onChange.call(this,arguments[0],t)}}}),e.exports=i(p)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p;r=a(0),n=a(24),i=a(19),o=a(15),l=a(32),s=a(62),u=a(167),d=a(4),c=a(1).isNil,p=r.createClass({displayName:"FormSearchPopup",propTypes:{onChange:r.PropTypes.func},getInitialState:function(){return this.setupPopupState()},setupPopupState:function(){return{message:"",searchText:"",replaceText:"",activePopup:!1}},handleClick:function(e){var t=this.props.editorControl,a=this.state,r="";c(a.searchText)||("searchCode"===e&&!1===t.searchCode(a.searchText)?r=u.MESSAGES.M10:"replaceCode"===e&&!1===t.replaceCode(a.searchText,a.replaceText)&&(r=u.MESSAGES.M11),this.state.message!==r&&this.setState({message:r}))},renderPopupContent:function(){var e=this.props.localization,t=this.state,a=n.notifyChange;return r.createElement(l,{type:"none",visible:!0,onClosed:function(e){this.setState(this.setupPopupState())}.bind(this)},r.createElement(l.Header,{title:e.getText("REPORTDESIGNER_LABEL_FIND_AND_REPLACE")}),r.createElement(l.Body,null,r.createElement(o,{className:"form-horizontal"},r.createElement(o.Row,null,r.createElement(o.Col,{cols:"12"},r.createElement(s,{type:"info"},t.message))),r.createElement(o.Row,null,r.createElement(o.Col,{cols:"3"},e.getText("REPORTDESIGNER_LABEL_FIND")),r.createElement(o.Col,{cols:"9"},r.createElement(i,{value:t.searchText,onChange:a(function(e){this.setState({searchText:e})}.bind(this),n.INPUT)}))),r.createElement(o.Row,null,r.createElement(o.Col,{cols:"3"},e.getText("REPORTDESIGNER_LABEL_REPLACE_WITH")),r.createElement(o.Col,{cols:"9"},r.createElement(i,{value:t.replaceText,onChange:a(function(e){this.setState({replaceText:e})}.bind(this),n.INPUT)}))))),r.createElement(l.Footer,null,r.createElement(l.ConfirmationButton,{label:e.getText("REPORTDESIGNER_LABEL_FIND"),onClick:this.handleClick.bind(this,"searchCode")}),r.createElement(l.ConfirmationButton,{label:e.getText("REPORTDESIGNER_LABEL_REPLACE"),onClick:this.handleClick.bind(this,"replaceCode")}),r.createElement(l.ConfirmationButton,{type:"cancel"},e.getText("COMMON_LABEL_CANCEL"))))},render:function(){return r.createElement("span",null,r.createElement("a",{className:"btn",title:"Find and Replace",onClick:function(){this.setState({activePopup:!0})}.bind(this)},r.createElement("span",{className:"icon-search-replace"})),r.createElement("span",{className:"u_inlineBlock"},this.state.activePopup?this.renderPopupContent():null))}}),e.exports=d()(p)},function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(0),n=a(9).observer,i=a(1158),o=a(1),l=o.get,s=o.map,u=r.createClass({displayName:"SelectionField",propTypes:{value:r.PropTypes.object},componentWillMount:function(){this.selectedData=[],this.selectedFields=[]},getValue:function(){return{selectedFields:this.selectedFields}},onChangeSeletedField:function(e){var t=l("value.fieldQuerySource",this.props);this.selectedFields=s(function(e){var a=t[e.querySource];return{field:a.fields[e.field],querySource:a}},e),this.selectedData=e},render:function(){var e=l("value.fieldQuerySource",this.props);return r.createElement(i,{data:e,onChangeData:this.onChangeSeletedField})}}),e.exports=n(u)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h;r=a(0),n=a(2149),i=a(26),o=a(159),l=a(4),s=a(1),u=s.isNil,d=s.flow,c=s.orderBy,p=s.groupBy,f=s.forEach,h=r.createClass({displayName:"SmartTag",propTypes:{onChange:r.PropTypes.func},getInitialState:function(){return{isOpen:!1}},componentWillMount:function(){this.smartTagStore=new n},onClickSubtotal:function(){this.hideMenu();var e=this.props;u(e.editorControl)||e.editorControl.insertSmartTag("Subtotal")},onClickGrandTotal:function(){this.hideMenu();var e=this.props;u(e.editorControl)||e.editorControl.insertSmartTag("GrandTotal")},onClickDateFormat:function(e){this.hideMenu();var t=this.props;u(t.editorControl)||t.editorControl.insertSmartTag("DateTime",e)},componentDidMount:function(){this.smartTagStore.getDateFormats()},renderDateFormat:function(){var e=d(c("position","asc"),p("category"))(this.smartTagStore.model.smartTags),t=[];for(var a in e){var n=e[a];t.push(r.createElement("div",{className:"u_textBold",key:a},a)),f(function(e){t.push(r.createElement("div",{className:"izenda-DateTimeItem u_paddingLeft",key:e.position,onClick:this.onClickDateFormat.bind(this,e.name)},e.name))}.bind(this),n)}return t},showMenu:function(e){e.stopPropagation(),e.preventDefault(),this.setState({isOpen:!this.state.isOpen})},hideMenu:function(){this.setState({isOpen:!1})},render:function(){var e=this.props,t=e.data,a=e.localization;return r.createElement("span",{className:"u-posRelative izenda-SmartTag"},r.createElement("a",{className:"btn",title:t.title,ref:"smartTag",onClick:this.showMenu},r.createElement("i",{className:t.className}),r.createElement("span",{className:"caret"})),this.state.isOpen&&r.createElement(o,{className:"izenda-SmartTag",anchor:this.refs.smartTag,onClickOutside:this.hideMenu,onParentScroll:this.hideMenu},r.createElement("div",{className:"izenda-SmartTag-list"},r.createElement("div",{className:"izenda-SmartTag-item"},r.createElement("a",null,a.getText("COMMON_LABEL_DATE_TIME")),r.createElement("div",{className:"izenda-SmartTag-hover"},r.createElement("div",{className:"izenda-SmartTag-logo"},r.createElement(i,null,this.renderDateFormat())))),r.createElement("div",{className:"izenda-SmartTag-item"},r.createElement("a",{onClick:this.onClickSubtotal},a.getText("COMMON_LABEL_SUBTOTAL"))),r.createElement("div",{className:"izenda-SmartTag-item"},r.createElement("a",{onClick:this.onClickGrandTotal},a.getText("COMMON_LABEL_GRAND_TOTAL"))))))}}),e.exports=l()(h)},function(e,t,a){"use strict";!function(){var t=a(5),r=a(110),n=a(2150);function i(){var e={model:new n};t.extendObservable(this,e)}i.prototype.getDateFormats=function(){var e=t.action(function(e){this.model.populateData(e)}.bind(this));return r.loadReportFieldDataFormat("datetime").then(e)},e.exports=i}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(2151),n=a(1).map;function i(e){t.extendObservable(this,{smartTags:[]}),e&&this.populateData(e)}i.prototype.populateData=t.action(function(e){this.smartTags=n(function(e){return new r(e)},e)}),e.exports=i}()},function(e,t,a){"use strict";!function(){var t=a(5);function r(e){t.extendObservable(this,{category:null,created:null,createdBy:null,dataType:null,description:null,format:null,groupBy:null,id:null,inserted:!1,modified:null,modifiedBy:null,name:null,position:null,state:null,subCategory:null,version:null}),e&&this.populateData(e)}r.prototype.populateData=t.action(function(e){this.category=e.category,this.created=e.created,this.createdBy=e.createdBy,this.dataType=e.dataType,this.description=e.description,this.format=e.format,this.groupBy=e.groupBy,this.id=e.id,this.inserted=e.inserted,this.modified=e.modified,this.modifiedBy=e.modifiedBy,this.name=e.name,this.position=parseInt(e.position,10),this.state=e.state,this.subCategory=e.subCategory,this.version=e.version}),e.exports=r}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c=a(14),p=(r=c)&&r.__esModule?r:{default:r};n=a(0),i=a(9).observer,o=a(183),l=a(238),s=a(476),u=a(167).FORMAT_CONFIG,d=n.createClass({displayName:"FormFontSettings",propTypes:{onChange:n.PropTypes.func},handleChange:function(e){var t=this.props;e.value&&this.props.editorControl&&t.editorControl.toggleFormat(e.value)},handleChangeFont:function(e,t){var a=this.props.editorControl;switch(t.keyChange){case"fontFamily":var r=u.FONT_NAME[e.value.fontFamily];a.execCommand("FontName",r);break;case"fontSize":var n=e.value.fontSize+"px";a.execCommand("FontSize",n)}},handleChangeColor:function(e,t){var a=this.props.editorControl;switch(t.keyChange){case"textColor":a.applyFormat("forecolor",e.value.textColor);break;case"backgroundColor":a.applyFormat("hilitecolor",e.value.backgroundColor)}},render:function(){var e=this.props,t=this.props.value||{},a={textColor:t.textColor,backgroundColor:t.backgroundColor};return n.createElement("span",{className:"u-posRelative izenda-FormSettings"},n.createElement(o,(0,p.default)({},e,{onChange:this.handleChangeFont})),n.createElement(s,(0,p.default)({},e,{className:"u_inlineBlock",buttons:e.buttons.default,onChange:this.handleChange})),n.createElement("br",null),n.createElement(s,(0,p.default)({},e,{className:"u_inlineBlock",buttons:e.buttons.script,onChange:this.handleChange})),n.createElement(l,{value:a,className:"u_inlineBlock",position:"left",onChange:this.handleChangeColor}),n.createElement(s,(0,p.default)({},e,{className:"u_inlineBlock",buttons:e.buttons.codeScript,onChange:this.handleChange})))}}),e.exports=i(d)},function(e,t,a){"use strict";var r,n,i,o;r=a(0),n=a(1).times,i=a(391).Popover,o=r.createClass({displayName:"InsertTablePopup",propTypes:{onChange:r.PropTypes.func},getInitialState:function(){return{isOpen:!1}},getValue:function(){return this.state},selectGrid:function(e,t){var a,r,n,i,o,l=this.refs.gridTable;for(l.nextSibling.innerHTML=e+1+" x "+(t+1),r=0;r<10;r++)for(a=0;a<10;a++)i=l.rows[r].childNodes[a].firstChild,o=a<=e&&r<=t,i.className=o?"active":"",o&&(n=i);return n&&n.parentNode},handleSelectCell:function(e){var t,a,r=e.target;"A"===r.tagName.toUpperCase()&&(t=parseInt(r.getAttribute("data-x"),10),a=parseInt(r.getAttribute("data-y"),10),t===this.lastX&&a===this.lastY||(this.selectGrid(t,a,e.control),this.lastX=t,this.lastY=a))},handleInsertTable:function(e){"A"===e.target.tagName.toUpperCase()&&(e.preventDefault(),e.stopPropagation(),this.props.editorControl.insertTable(this.lastX+1,this.lastY+1),this.setState({isOpen:!1}))},generateTableGrid:function(){var e=n(String,10),t=e.map(function(t){return r.createElement("tr",{key:t},function(t){return e.map(function(e){return r.createElement("td",{className:"grid-cell",key:e+t},r.createElement("a",{"data-x":e,"data-y":t}))})}(t))});return r.createElement("table",{className:"grid-border",ref:"gridTable",onMouseMove:this.handleSelectCell,onClick:this.handleInsertTable},r.createElement("tbody",null,t))},renderPopup:function(){return r.createElement(i,{visible:this.state.isOpen,positionLeft:-75,positionTop:15,onHide:this.onHidePopup,rootClose:!0},this.generateTableGrid(),r.createElement("div",{className:"text-center"},"1 x 1"))},handleClickButton:function(){this.setState({isOpen:!0})},render:function(){var e=this.props.data;return r.createElement("span",{className:"u-posRelative insert-table"},r.createElement("a",{className:"btn",title:e.title,onClick:this.handleClickButton},r.createElement("i",{className:e.className})),this.renderPopup())}}),e.exports=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={get NUMBER_CONSTRAINT(){return{get UPDATE_INTERVAL(){return{presence:{presence:!0,message:i.default.getText("DATA_REFRESH_SETTING_CONSTANTS_UPDATE_INTERVAL_MESSAGE_UPDATE_INTERVAL_IS_REQUIRED")},numericality:{onlyInteger:!0,message:i.default.getText("DATA_REFRESH_SETTING_CONSTANTS_UPDATE_INTERVAL_MESSAGE_UPDATE_INTERVAL_SHOULD_BE_NUMBER")}}},get LATEST_RECORD(){return{presence:{presence:!0,message:i.default.getText("DATA_REFRESH_SETTING_CONSTANTS_LASTEST_RECORD_MESSAGE_LASTEST_RECORDS_IS_REQUIRED")},numericality:{onlyInteger:!0,message:i.default.getText("DATA_REFRESH_SETTING_CONSTANTS_LASTEST_RECORD_MESSAGE_LASTEST_RECORDS_SHOULD_BE_NUMBER")}}}}}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(1),n=void 0;function i(e){return(n=n||a(695)).get(e)}t.default={getContent:function(e){return i(e).getContent()},execCommand:function(e,t){if((0,r.isNil)(t)||(0,r.isNil)(e))return!1;i(e).execCommand(t,!1)},insertContent:function(e,t){i(e).execCommand("mceInsertContent",!1,t)},checkDirty:function(e){return i(e).isDirty()},showNotify:function(e,t,a){a=a||"info",i(e).windowManager.alert(t)},checkSelectedCell:function(e){var t=i(e),a=t.dom.select("td[data-mce-selected],th[data-mce-selected]")[0];return a||(a=t.selection.getStart()),t.dom.getParent(a,"td,th")}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,a,r){var n,s,u,d,c,p=i.default.apply(null,arguments),f=r.configField||{};return p.definedSchema=(n=p.definedSchema,s=n,l.forEach(function(e){s=(0,o.unset)(e,s)}),s),u=p.definedSchema,d=(0,o.get)("fields.dataFormattings.fields.sort",u),c=(0,o.invokeArgs)("getOtherProps",["hasRepeaterPart"],f.properties),d.props.showInactiveState=!c,p};var r,n=a(267),i=(r=n)&&r.__esModule?r:{default:r},o=a(1);var l=["fields.dataFormattings.fields.alignment","fields.dataFormattings.fields.verticalAlignment","fields.dataFormattings.fields.columnWordWrap","fields.headerFormating"];e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,l,s=L(a(14)),u=L(a(6)),d=L(a(2)),c=L(a(3)),p=L(a(7)),f=L(a(8)),h=a(5),m=L(a(4)),g=a(0),E=L(g),y=L(a(13)),v=a(9),T=L(a(10)),_=L(a(392)),S=L(a(1161)),C=a(91),b=L(a(241)),N=a(61),A=L(N),R=L(a(94)),O=L(a(33)),I=L(a(507)),D=a(1),P=L(a(2158));function L(e){return e&&e.__esModule?e:{default:e}}var M=(0,v.observer)((o=i=function(e){function t(){return(0,d.default)(this,t),(0,p.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,c.default)(t,[{key:"componentWillUnmount",value:function(){this.props.refreshData&&this.props.refreshData(!1)}},{key:"componentDidMount",value:function(){this.props.updateDrillComponent.call(this)}},{key:"componentDidUpdate",value:function(){this.props.updateDrillComponent.call(this)}},{key:"render",value:function(){var e=this.props,t=this.props,a=t.viewMode,n=t.reportPart,i=t.printingMode,o=t.reportPart.reportPartContent,l=(0,h.toJS)(n.getReportPartProperties())||{},s=o.checkBreakPage(),u=o.type,d=(0,C.parser)(o.activeElmsByContainers,o.expandedLevel,{fieldsMapping:n.previewDataFieldsMapping,records:n.previewDataRecords,rawData:n.previewData},null);return r.extend(!0,l,{colors:n.getThemeColors(l),commonActions:{onDrilldown:e.onDrilldown,setPageSize:e.setPageSize,pointAction:e.pointAction}}),e.refreshData&&e.refreshData(!0),O.default.needToRenderLazyLoadingBar(n,i)?O.default.renderLazyLoadingBar():E.default.createElement(_.default,{type:u,reportPart:n,vizEngine:o.vizEngine,isPreview:e.isPreview,chartType:l.chartType,chartOptions:l,seriesOptions:e.reportPart.fieldCollection,chartData:d,printingMode:i,doesBreakPage:!e.forDashboard&&s&&!e.embededReportPart,gaugePartType:!0,viewMode:a,style:i&&e.style?e.style:{},finishedRender:e.finishedRender,fulfilledData:e.fulfilledData,isLoading:n.isLoadingData,separator:e.separator,elementsCountInContainer:e.elementsCountInContainer,pageNumber:e.pageNumber,forExporting:e.forExporting},!i&&E.default.createElement(S.default,{reportPart:n,onDrillDown:e.onDrilldown,isShowMetric:o.isShowMetric}))}}]),t}(g.Component),i.propTypes={store:y.default.object,reportPart:y.default.object.isRequired},n=o))||n,F=(0,m.default)(P.default)(l=function(e){function t(){var e,a,r,n;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),l=0;l=0,m=g("value",y.rows).indexOf(d)>=0,S=g("value",y.values).indexOf(d)>=0,C=g("value",y.groups).indexOf(d)>=0,N=f.PIVOT.value===d,A=this.props.store,R=N?p.PIVOT.LABEL:null,O=function(){t.shouldUpdatePreview&&A.needUpdatePreview()};return v.createElement(u,{className:"izenda-ReportPartConfiguration"},v.createElement(o,{mode:h.CONFIG,reportPart:t}),c&&v.createElement("div",{className:"row form-group"},v.createElement("div",{className:T},v.createElement("div",{className:"row"},v.createElement("div",{className:"col-md-12"},e.getText("REPORTDESIGNER_LABEL_COLUMNS")),N&&v.createElement("section",null,v.createElement("div",{className:"col-md-12"},v.createElement("div",{className:"checkbox"},v.createElement("label",null,v.createElement(i,{type:"checkbox",checked:a.columns.properties.addSideTotal,onChange:s(E(a.updateColumnsAddSideTotal.bind(a),O),l.CHECKBOX)}),e.getText("REPORTDESIGNER_LABEL_ADD_SIDE_TOTAL")))),v.createElement("div",{className:"col-md-12"},v.createElement("div",{className:"checkbox"},v.createElement("label",null,v.createElement(i,{type:"checkbox",disabled:!a.columns.properties.addSideTotal,checked:a.columns.properties.removeExtraSideTotalColumns,onChange:s(E(a.updateColumnsRemoveExtraSideTotalColumns.bind(a),O),l.CHECKBOX)}),e.getText("REPORTDESIGNER_LABEL_REMOVE_EXTRA_COLUMN_SIDE_TOTAL")))),v.createElement("div",{className:"col-md-12"},v.createElement("div",{className:"checkbox"},v.createElement("label",null,v.createElement(i,{type:"checkbox",checked:a.columns.properties.useExpanders,onChange:s(E(a.updateColumnsUseExpanders.bind(a),O),l.CHECKBOX)}),e.getText("REPORTDESIGNER_LABEL_USE_EXPANDERS"))))))),v.createElement("div",{className:_},v.createElement(n,(0,b.default)({},this.props,{container:a.columns,maximumField:R})))),m&&v.createElement("div",{className:"row form-group"},v.createElement("div",{className:T},v.createElement("div",{className:"row"},v.createElement("div",{className:"col-md-12"},e.getText("REPORTDESIGNER_LABEL_ROWS")),N&&v.createElement("div",{className:"col-md-12"},v.createElement("div",{className:"checkbox"},v.createElement("label",null,v.createElement(i,{type:"checkbox",checked:a.rows.properties.useExpanders,onChange:s(E(a.updateRowsUseExpanders.bind(a),O),l.CHECKBOX)}),e.getText("REPORTDESIGNER_LABEL_USE_EXPANDERS")))))),v.createElement("div",{className:_},v.createElement(n,(0,b.default)({},this.props,{container:a.rows})))),C&&v.createElement("div",{className:"row form-group"},v.createElement("div",{className:T},v.createElement("div",{className:"col-md-12 row"},e.getText("REPORTDESIGNER_LABEL_GROUPS"))),v.createElement("div",{className:_},v.createElement(n,(0,b.default)({},this.props,{container:a.rows})))),S&&v.createElement("div",{className:"row form-group"},v.createElement("div",{className:T},v.createElement("div",{className:"col-md-12 row"},e.getText("REPORTDESIGNER_LABEL_VALUES"))),v.createElement("div",{className:_},v.createElement(n,(0,b.default)({},this.props,{container:a.values})))),r&&v.createElement("div",{className:"row form-group"},v.createElement("div",{className:T},v.createElement("div",{className:"col-md-12 row"},e.getText("REPORTDESIGNER_LABEL_SEPARATORS"))),v.createElement("div",{className:_},v.createElement(n,(0,b.default)({},this.props,{container:a.separators})))))}}),e.exports=d()(S)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=F(a(14)),l=F(a(6)),s=F(a(2)),u=F(a(3)),d=F(a(7)),c=F(a(8)),p=a(0),f=F(p),h=a(5),m=a(1),g=F(a(10)),E=F(a(689)),y=F(a(1170)),v=F(a(1173)),T=F(a(2162)),_=a(99),S=F(_),C=F(a(2164)),b=a(48),N=F(a(241)),A=a(61),R=F(a(116)),O=F(a(15)),I=F(a(2169)),D=F(a(4)),P=F(a(2170)),L=F(a(94)),M=F(a(33));function F(e){return e&&e.__esModule?e:{default:e}}var k=(0,I.default)(R.default),x=(0,D.default)(P.default)((n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));i.call(a);var r=e.reportPart.reportPartContent;return a.mainComponentKey="MainComponent",a.renderListeners=[],a.dispose=(0,h.observe)(r,"changeGridStyleStatus",function(t){!t&&e.confirmMessage("info",S.default.MESSAGES.M07).then(function(){r.changeGridStyleStatus=!0})}),a.disposeInconsitentFunction=(0,h.observe)(r,"inconsitentFunction",function(t){t&&e.confirmMessage("info",b.MESSAGES.M08)}),a.buildChildPromises(),a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentWillUnmount",value:function(){var e=this.props,t=this.dispose,a=this.disposeInconsitentFunction;t(),a(),e.refreshData&&e.refreshData(!1)}},{key:"publishFinishedRender",value:function(){var e=this.props,t=this.renderListeners;e.printingMode?L.default.publishFinishedRender(t,function(){e.finishedRender&&e.fulfilledData&&e.finishedRender()}):e.finishedRender&&e.fulfilledData&&e.finishedRender()}},{key:"buildChildPromises",value:function(){this.renderListeners.push(L.default.createPartRenderPromise(this.mainComponentKey))}},{key:"componentDidUpdate",value:function(){var e=this;setTimeout(function(){e.publishFinishedRender()},500)}},{key:"render",value:function(){var e=this.props,t=this.props,a=t.reportPart,r=t.printingMode,n=this.renderPrintingMode,i=this.renderNormalMode;return e.refreshData&&e.refreshData(!0),M.default.needToRenderLazyLoadingBar(a,r)?M.default.renderLazyLoadingBar():r?n():i()}}]),t}(p.Component),i=function(){var e=this;this.renderHeader=(0,m.curry)(function(e,t,a,r,n){var i=(0,m.getOr)(!1,"reportPart.isBackSide",e),o=e.resolveSortValue(t,a),l=!i&&(0,m.getOr)("",[o,"headerIcon"],b.SORT_ORDERS),s=(0,g.default)({u_curPointer:!i}),u={fontFamily:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.FAMILY,fontSize:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.SIZE+"px",fontWeight:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.BOLD?"bold":"normal",textAlign:_.DEFAULT_VALUE_PROPERTIES.HEADERS.ALIGNMENT||"none",textDecoration:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.UNDERLINE?"underline":"none",fontStyle:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.ITALIC?"italic":"normal",color:_.DEFAULT_VALUE_PROPERTIES.HEADERS.FONT.COLOR,wordWrap:_.DEFAULT_VALUE_PROPERTIES.HEADERS.WORDWRAP?"break-word":"normal",whiteSpace:_.DEFAULT_VALUE_PROPERTIES.HEADERS.WORDWRAP?"pre-line":"pre",display:_.DEFAULT_VALUE_PROPERTIES.HEADERS.DISPLAY};return a.hiddenSortFeature?r:f.default.createElement("span",{className:s,onClick:e.onSortChange(t,a,o,e.previewRecords)},f.default.createElement("a",null,r),f.default.createElement("i",{className:l,style:u}))}),this.renderPrintingMode=function(){var t=e.props,a=e.props,r=a.printingMode,n=a.exportFormatSetting,i=a.reportPart,o=a.reportPart.reportPartContent.usePageBreakAfterSeparator;return f.default.createElement("div",{style:L.default.getReportPartContainerStyle(t)},f.default.createElement("div",{className:L.default.getReportPartClassName(t)},!o&&f.default.createElement(N.default,{mode:A.REPORT_PART_MODE.PREVIEW,reportPart:i,className:"u_marginBottom izenda-reportPartGrid_title"}),e.renderMainComponent(!0),f.default.createElement(T.default,{reportPart:i,staticRender:!0,printingMode:r,exportFormatSetting:n})))},this.renderNormalMode=function(){var t=e.props,a=t.viewMode,r=t.reportPart,n=t.printingMode,i=e.renderMainComponent,o=e.goToPage,l=e.onPageSizeChange;return f.default.createElement(O.default,{className:"izenda-GridFrontSide"},f.default.createElement(N.default,{mode:A.REPORT_PART_MODE.PREVIEW,reportPart:r}),f.default.createElement(O.default.Row,null,f.default.createElement(O.default.Col,{cols:"12"},i())),f.default.createElement(O.default.Row,null,f.default.createElement(T.default,{reportPart:r})),!n&&f.default.createElement(O.default.Row,null,f.default.createElement(O.default.Col,{cols:"12"},f.default.createElement(k,{onChange:o,onDropdownChange:l,reportPart:r,canChangePageSize:!a}))))},this.goToPage=function(t){var a=e.props,r=e.props.reportPart;a.needUpdatePreview(r,null,t,null,null,e.props.previewRecords)},this.onPageSizeChange=function(t){var a=e.props,r=e.props.reportPart;r.reportPartContent.changePageSize(t),a.needUpdatePreview(r,null,1,null,null,e.props.previewRecords)},this.checkSeparatorInfo=function(e,t,a){var r=(0,m.getOr)(null,"reportPartContent.properties.generalInfo.separatorStyle",e);r===S.default.SEPARATOR_STYLE.MULTI_LEVEL.value||S.default.SEPARATOR_STYLE.MULTI_LEVEL_WITH_LABEL.value;e.reportInfo.map(function(e){e.separatorInfo.keys.every(function(e){return t.some(function(t){return t[e.columnName]==e.value})})&&(e.separatorInfo.isExpand=a)})},this.onSeparatorToggle=function(t,a){var r=e.props;e.checkSeparatorInfo(r.reportPart,a,t)},this.renderMainComponent=function(t){var a=e.props,r=e.props,n=r.reportPart,i=r.reportPart.previewDataRecords,l=r.ignoreCache;if(!n.isBeingBuild)return null;if(!(0,m.isEmpty)(i)){var s=e.getGridByName(),u=(0,m.omit)(["finishedRender","onSortChange"],a);return n.reportPartContent.useSeparator?f.default.createElement(v.default,(0,o.default)({records:i,mainComponent:s,afterToggleCallback:e.onSeparatorToggle},u,{ignoreCache:l,renderHeader:e.renderHeader(a),finishedRender:L.default.getFinishedRenderPromiseById(e.renderListeners,e.mainComponentKey)})):f.default.createElement(s,(0,o.default)({records:i},u,{ignoreCache:l,staticRender:t,renderHeader:e.renderHeader(a),finishedRender:L.default.getFinishedRenderPromiseById(e.renderListeners,e.mainComponentKey)}))}return n.isLoadingData?null:f.default.createElement(E.default,null)},this.getGridByName=function(){switch(e.props.reportPart.reportPartContent.properties.generalInfo.gridStyle){case S.default.GRID_STYLES.PIVOT.value:case S.default.GRID_STYLES.DRILL_DOWN.value:return C.default;default:return y.default}}},r=n))||r;t.default=x,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=A(a(58)),l=A(a(14)),s=A(a(6)),u=A(a(2)),d=A(a(3)),c=A(a(7)),p=A(a(8)),f=a(0),h=A(f),m=A(a(41)),g=a(9),E=A(a(10)),y=A(a(99)),v=A(a(67)),T=A(a(2163)),_=A(a(15)),S=(A(a(367)),A(a(105)),A(a(12))),C=A(a(94)),b=a(33),N=a(1);function A(e){return e&&e.__esModule?e:{default:e}}var R=(0,g.observer)((i=n=function(e){function t(){return(0,u.default)(this,t),(0,c.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.reportPart,t=e.previewData,a=(0,E.default)("grant-total",{hide:(0,N.isEmpty)(t.grandTotalMapping),"has-separator":e.reportPartContent.useSeparator}),r=this.getReportPartElementMapping(t.grandTotalMapping);if((0,N.isEmpty)(t.grandTotalMapping))return null;var n=this.getHorizontalElementTypes(),i=this.getHorizontalRecords(r,n);return this.props.printingMode?this.renderPrintingMode(r,n,i,a):this.renderNormalMode(r,n,i,a)}},{key:"renderNormalMode",value:function(e,t,a,r){return h.default.createElement(_.default.Col,{className:r},h.default.createElement(T.default,(0,l.default)({records:a},this.props,{useFieldNameAlias:!0,staticRender:this.props.staticRender,reportPartElementTypes:t,reportPartElementMapping:e})),h.default.createElement("div",{className:"grand-table grand-table-wrap"},this.renderVerticalGrandTotals(e,t,a)))}},{key:"renderPrintingMode",value:function(e,t,a,r){var n=this.props,i=(0,E.default)(r,C.default.getSeparatorClassName(n));return h.default.createElement("div",{style:C.default.getSeparatorContainerStyle(n)},h.default.createElement("div",{className:i},h.default.createElement(T.default,(0,l.default)({records:a},this.props,{useFieldNameAlias:!0,staticRender:this.props.staticRender,reportPartElementTypes:t})),h.default.createElement("div",{className:"grand-table"},this.renderVerticalGrandTotals(e,t,a))))}},{key:"renderVerticalGrandTotals",value:function(e,t,a){if(!(0,N.isNil)(e)){var r=this.props.reportPart.previewData,n=[],i={};(0,N.isEmpty)(r)||(i=r.records[0]),n.push(this.renderHorizontalGrandLabel(a));var o=this.renderVerticalRows(e,t,i);return(0,N.isEmpty)(o)||n.push(o),n}return""}},{key:"renderHorizontalGrandLabel",value:function(e){var t=[];return(0,N.forEach)(function(e,a){t.push(h.default.createElement("div",{className:"grand-row",key:"hor-"+e.fieldNameAlias},h.default.createElement("div",{className:"grand-column"},h.default.createElement("div",{className:"grand-cell-content u_paddingAll"},e.grandTotalLabel))))},e),t}},{key:"renderSeparatorLine",value:function(){return h.default.createElement("div",{className:"grand-row"},e(),e());function e(){return h.default.createElement("div",{className:"grand-column"},h.default.createElement("div",{className:"grand-cell-content blank-line"}))}}},{key:"renderVerticalRows",value:function(e,t,a){var r=this,n=[];return(0,o.default)(e).forEach(function(i,o){(0,N.findIndex)(function(e){return e===i},t)>=0||(n.length>0&&!(0,N.isEmpty)(e[i])&&n.push(r.renderSeparatorLine()),(0,N.isEmpty)(e[i])||n.push(r.renderVerticalColumns(e,i,a)))}),(0,N.isEmpty)(n)?null:h.default.createElement("div",{className:"grand-row"},h.default.createElement("div",{className:"grand-column"},h.default.createElement("div",{className:"grand-table"},n)))}},{key:"renderVerticalColumns",value:function(e,t,a){var r=[];return(0,N.forEach)(function(e,t){var n,i=a[e.columnName],o={fontWeight:void 0!==(n=e.grandTotalFont).bold?n.bold?"bold":"normal":v.default.DEFAULT_VALUE_PROPERTIES.GRAND_TOTAL.FONT.BOLD?"bold":"normal",fontStyle:n.italic?"italic":"normal",textDecoration:n.underline?"underline":"none",fontFamily:void 0!==n.family?n.family:v.default.DEFAULT_VALUE_PROPERTIES.FONT.FAMILY,fontSize:(n.size?n.size:v.default.DEFAULT_VALUE_PROPERTIES.FONT.SIZE)+"px",backgroundColor:n.backgroundColor?n.backgroundColor:v.default.DEFAULT_VALUE_PROPERTIES.FONT.BACKGROUND_COLOR,color:n.color?n.color:v.default.DEFAULT_VALUE_PROPERTIES.FONT.COLOR};r.push(h.default.createElement("div",{className:"grand-row",key:"ver-"+e.fieldNameAlias},h.default.createElement("div",{className:"grand-column no-border-left"},h.default.createElement("div",{className:"grand-cell-content"},String.format(S.default.getText("REPORTDESIGNER_LABEL_GRANDTOTAL_FOR"),e.grandTotalLabel,e.fieldNameAlias))),h.default.createElement("div",{className:"grand-column",style:o},h.default.createElement("div",{className:"grand-cell-content"},function(e,t,a){var r=(0,b.applyFormater)(e,t,a);return m.default.isRenderHtmlInReportViewer()&&(r=h.default.createElement("span",{dangerouslySetInnerHTML:{__html:r}})),r}(e.grandTotalDataType,e.grandTotalFormat,i)))))},e[t]),r}},{key:"getReportPartElementMapping",value:function(e){var t=this.props.reportPart.reportPartContent,a={};return(0,N.forEach)(function(r){a[r]=[],(0,N.forEach)(function(e){var n=(0,N.find)({name:e.fieldNameAlias},t[r].visibleElement);n&&(e.grandTotalLabel=n.properties.dataFormattings.grandTotal.label||e.fieldNameAlias,e.grandTotalFormat=(0,N.get)("properties.dataFormattings.grandTotal.format.format",n),e.grandTotalFont=(0,N.get)("properties.dataFormattings.grandTotal.font",n),e.grandTotalDataType=n.properties.dataFormattings.grandTotal.dataType,e.fieldFormatData=n.fieldFormatData,e.field=n.field,a[r].push(e))},e)},["columns","rows","values","separators"]),a}},{key:"getHorizontalElementTypes",value:function(){switch(this.props.reportPart.reportPartContent.properties.generalInfo.gridStyle){case y.default.GRID_STYLES.VERTICAL.value:return["columns"];case y.default.GRID_STYLES.DRILL_DOWN.value:return["rows","values"];case y.default.GRID_STYLES.PIVOT.value:case y.default.GRID_STYLES.HORIZONTAL.value:return["rows"];default:return[]}}},{key:"getHorizontalRecords",value:function(e,t){if(!(0,N.isNil)(e)){var a=this.props.reportPart.previewData,r={},n=[];(0,N.isEmpty)(a)||(r=a.records[0]);return(0,N.forEach)(function(t){r&&(0,N.forEach)(function(e){var t=(0,N.find)(function(t){return t.grandTotalLabel.toLowerCase()===e.grandTotalLabel.toLowerCase()},n);if(t)t[e.fieldNameAlias]=r[e.columnName];else{var a={};a[e.fieldNameAlias]=r[e.columnName],a.grandTotalLabel=e.grandTotalLabel||e.fieldNameAlias,a.fieldNameAlias=e.fieldNameAlias,n.push(a)}},e[t])},t),n}return[]}}]),t}(f.Component),n.propTypes={reportPart:f.PropTypes.object},r=i))||r;t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=A(a(14)),l=A(a(6)),s=A(a(2)),u=A(a(3)),d=A(a(7)),c=A(a(8)),p=a(0),f=A(p),h=A(a(41)),m=A(a(33)),g=A(a(67)),E=a(5),y=A(a(4)),v=a(46),T=A(a(10)),_=a(99),S=A(a(105)),C=A(a(367)),b=a(1),N=A(a(13));function A(e){return e&&e.__esModule?e:{default:e}}var R=(0,y.default)()((i=n=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=(0,b.get)("reportPart.reportPartContent.properties.generalInfo.gridStyle",this.props),t=(0,b.get)("reportPartElementMapping",this.props),a=this.generateHeaderData(),r=(0,T.default)("report-part-grid-preview",{hide:(0,b.isNil)(a.headers)},{"vertical-grid":e===_.GRID_STYLES.VERTICAL.value},{"horizontal-grid":e===_.GRID_STYLES.HORIZONTAL.value}),n=this.props.isPreview?(0,b.take)(_.RECORDS_MAX_LENGTH,a.records):a.records,i=(0,b.get)("reportPartContent.properties.columns.width.value",this.props.reportPart);return!(0,b.isEmpty)(n)&&f.default.createElement("section",{className:r},f.default.createElement(v.Table,{showScroll:!1,dataSource:n,className:"custom-table",autoResize:!(i>0),staticRender:this.props.staticRender},this.renderColumn(a.headers,t)))}},{key:"renderColumn",value:function(e,t){var a=[],r=this.props.reportPart.getReportPartProperties().generalInfo.gridStyle===_.GRID_STYLES.HORIZONTAL.value;return e&&e.map(function(e,n){var i=function(t,a){var r=(0,b.get)("style.header",t)||(a?e.style:e.cellStyle);if(!r)return{};var n=r.fontFamily,i=r.fontSize,o=r.bold,l=r.alignment,s=r.underline,u=r.italic,d=r.textColor,c=r.backgroundColor,p=r.wordWrap,f=r.height,h=(0,b.defaults)(_.DEFAULT_CELL_STYLE,{fontFamily:n,fontSize:i+"px",fontWeight:o?"bold":"normal",textAlign:l||"none",textDecoration:s?"underline":"none",fontStyle:u?"italic":"normal",wordWrap:p?"break-word":"normal",whiteSpace:p?"pre-line":"pre",height:p?null:f||null});return a&&(h.color=d,h.backgroundColor=c),h},l=function(e){return i(e,!0)};a.push(f.default.createElement(v.Column,(0,o.default)({key:e.columnKey},e,{cell:function(a){var r=(0,b.isNil)(a[e.columnKey])?a[n]:a[e.columnKey],i=r&&!(0,b.isNil)(r.data)?r.data:r,o=function(e){return{fontWeight:void 0!==e.bold?e.bold?"bold":"normal":g.default.DEFAULT_VALUE_PROPERTIES.GRAND_TOTAL.FONT.BOLD?"bold":"normal",fontStyle:e.italic?"italic":"normal",textDecoration:e.underline?"underline":"none",fontFamily:void 0!==e.family?e.family:g.default.DEFAULT_VALUE_PROPERTIES.FONT.FAMILY,fontSize:(e.size?e.size:g.default.DEFAULT_VALUE_PROPERTIES.FONT.SIZE)+"px",backgroundColor:e.backgroundColor?e.backgroundColor:g.default.DEFAULT_VALUE_PROPERTIES.FONT.BACKGROUND_COLOR,color:e.color?e.color:g.default.DEFAULT_VALUE_PROPERTIES.FONT.COLOR}},l=i,s=i,u=0,d=["columns","rows","values"],c={};do{for(var p=t[d[u]],E=p.length,y=0;y0&&p.default.createElement("div",{className:"u_alwaysBreakAfter"}),p.default.createElement(E.Table,(0,i.default)({showScroll:!1,dataSource:t,className:"custom-table pivot-table",autoResize:!1,afterRenderCallBack:c,staticRender:f,onResizeStopCallback:e.onResizeStopCallback,stickVertical:m(g.isHeaderStickVertical),stickHorizontal:m(g.isHeaderStickHorizontal),sourceForm:"report-part-grid-pivot"},e.props),a))}))},e.renderTable=function(t,a){var r=e.props,n=r.localization,o=r.pageColumnHeader,l=r.forDrillDown,s=r.reportPart,u=r.expandAll,d=r.collapseAll,c=r.afterRenderCallBack,f=r.staticRender,h=r.getStickyValue,m=s.getReportPartProperties();return p.default.createElement("section",null,l&&!s.reportPartContent.useSeparator&&p.default.createElement("div",null,p.default.createElement("span",{className:"icon-plus-circled",title:n.getText("REPORT_PART_GRID_CONSTANTS_LABEL_EXPAND_ALL_TOOLTIP"),onClick:u}),p.default.createElement("span",{className:"icon-minus-circled",title:n.getText("REPORT_PART_GRID_CONSTANTS_LABEL_COLLAPSE_ALL_TOOLTIP"),onClick:d})),o.map(function(r,n){return p.default.createElement("section",{key:n,className:"report-part-grid-preview"},n>0&&p.default.createElement("div",{className:"u_alwaysBreakAfter"}),p.default.createElement(E.Table,(0,i.default)({showScroll:!1,dataSource:t,className:"custom-table pivot-table",autoResize:!1,afterRenderCallBack:c,staticRender:f,onResizeStopCallback:e.onResizeStopCallback,stickVertical:h(m.isHeaderStickVertical),stickHorizontal:h(m.isHeaderStickHorizontal),sourceForm:"report-part-grid-pivot",onSetFunctionCallback:e.onSetFunctionCallback,onSetFormatterCallback:e.onSetFormatterCallback},e.props),e.renderGroupingHeaders(r,a)))}))},e.onSetFunctionCallback=function(t){var a=e.props,r=a.reportPart,n=a.reportPart.reportPartContent,i=a.needUpdatePreview,o=a.previewRecords,l=t.index,s=t.functionData,u=(0,O.get)("reportPart.reportPartContent.columns.elements",e.props);if(!(0,O.isEmpty)(u)){var d=(0,O.find)({position:l},u);d&&d.setFunction({functionData:s}),(0,I.setFunctionElement)(n,d,s,!0),i(r,null,null,null,o)}},e.onSetFormatterCallback=function(t){var a=e.props,r=(a.reportPart,a.reportPart.reportPartContent,a.needUpdatePreview,a.previewRecords,t.index),n=t.formatData,i=(0,O.get)("reportPart.reportPartContent.columns.elements",e.props);if(!(0,O.isEmpty)(i)){var o=(0,O.find)({position:r},i);o&&o.setFormat({formatData:n})}},e.onResizeStopCallback=function(t){var a=t.index,r=t.columnWidth,n=e.props.reportPart.reportPartContent,i=n.rows.elements,o=n.values.elements,l=n.gridStyle===T.default.GRID_STYLES.PIVOT.value,s=a0&&(0,O.first)(t.childs).isLeaf;return r&&!t.isHidden&&!a.printingMode&&!t.isLeaf&&!i?p.default.createElement("span",{className:n,onClick:(0,O.partial)(a.onToggleColumn,[t])}):null},e.renderExpandSideTotal=function(t,a,r){var n=e.props;if((0,O.getOr)(!1,"reportPart.reportPartContent.columns.properties.removeExtraSideTotalColumns",n))return null;var i=(0,O.get)("reportPart.reportPartContent.properties.columns.width.value",n),o=e.props,l=o.getCellData,s=o.getCellStyle,u=o.getCellContentStyle,d=o.fnGetHeaderCellStyle,c=o.fnGetHeaderCellContentStyle,f=(0,O.sortBy)("element.position",t.sideTotals),h=f.length-1;return f.map(function(t,n){var o=(0,O.clone)(r);o.firstColumn&&0!==n&&(o.firstColumn=!1),o.lastColumn&&n!==h&&(o.lastColumn=!1);var f=(0,O.get)("element.properties.dataFormattings.width.value",t)||i||void 0;return p.default.createElement(E.Column,{getTitle:function(){return t.sideTotalTitle},width:f,cell:e.renderCellContent.bind(e,t),fnGetCellData:l(t),fnGetCellStyle:s(t,o,a),fnGetCellContentStyle:u(t),fnGetHeaderCellStyle:d(t,o,a),fnGetHeaderCellContentStyle:c(t),key:t.key})})},e.getTitle=function(t,a){var r=e.props,n=r.reportPart,i=r.renderHeader,o=r.printingMode,l=r.getFilterInfoForSubReport,s=n.previewDataFieldsMapping,u=t.title,d=(0,O.get)("element",t);if(t.isLeaf||!d)return t.type!==S.default.COLUMN_TYPE.ROW?u:i(n.reportPartContent.rows,d,u,a);var c=(0,O.get)("properties",d),p=t.data;return u=C.default.getDataFormat(u,{alternativeText:(0,O.get)("dataFormattings.alternativeText",c),fieldFormatData:(0,O.get)("dataFormattings.format.format",c),fieldDataType:(0,O.get)("previewDataType",d)},{element:C.default.buildDataSourceElement(n,d),record:p[0]}),0===((0,O.get)("numberOfPointActions",d)||0)?u:y.default.applySubReportLink(n,u,t,p,s,a,o,e.renderListeners,null,l)},e.renderCellContent=function(t,a,r,n,i,o,l,s){var u=s.value,d=s.source,c=e.props,h=c.forDrillDown,m=c.subTotalMapping,g=c.reportPart,E=c.printingMode,T=c.getFilterInfoForSubReport,_=c.isDisplayRowExpander,b=c.renderExpandIcon,N=a.currentRow,A=a.rowDataObjects[t.uniqueFieldNameAlias],R=g.previewDataFieldsMapping,I=g.reportPartContent.haveRowExpander,D="",P="",L=t.element,M=t.type;(0,O.get)("data",u)&&d&&(d.record=(0,O.head)((0,O.get)("currentRow.rowDataObject.data",a)));var F=(0,O.getOr)("","conditionalFormattingStyles.altText.value",s);if(N.isSupTotalRow&&(!h||t.type!==S.default.COLUMN_TYPE.ROW||N.rowDataObject.isExpand)){var k=N.rowDataObject.uniqueFieldNameAlias===t.uniqueFieldNameAlias;return p.default.createElement(v.default,{fieldElement:L,columnData:t,rowData:a,subTotalMapping:m,forDrillDown:h,rowExpanders:I,isDisplayCell:k})}if(u.isEmpty||u.isAllRow&&!h)return null;if(u.isAllRow)P=D=u.data;else{P=D=function(e,t){return C.default.getDataFormat({value:t,originalValue:e},{alternativeText:(0,O.get)("properties.dataFormattings.alternativeText",L),fieldFormatData:(0,O.get)("properties.dataFormattings.format.format",L),fieldDataType:(0,O.get)("previewDataType",L),conditionalFormattingAlternativeText:F,fieldColumnType:M},d)}(u.orgData,u.data);var x=(0,O.get)("element.numberOfPointActions",t)||0;if(!u.dataNotFound&&x>0&&(t.type===S.default.COLUMN_TYPE.ROW||t.type===S.default.COLUMN_TYPE.VALUE)){var w=o+"."+n;D=y.default.applySubReportCellLink(g,D,t,a,R,l,E,e.renderListeners,w,T)}}var B=p.default.isValidElement(D)?null:P;f.default.isRenderHtmlInReportViewer()&&(0,O.isString)(D)&&(D=p.default.createElement("span",{dangerouslySetInnerHTML:{__html:D}}),B=C.default.getTextContentFromHtmlString(B));var U=_(A,t);return p.default.createElement("span",{className:"u_fullInlineBlock",title:B},U&&b(A.rowDataObject),D)},e.renderGroupingHeadersExporting=function(t,a,r){var n=e.props,i=e.props,o=i.getCellData,l=i.fnGetHeaderCellContentForPivotHeader,s=(0,O.get)("reportPart.reportPartContent.properties.columns.width.value",n),u=t.columnDataObject,d=t.from,c=t.to;if(u.type===S.default.COLUMN_TYPE.COLUMN&&(0,O.every)({type:S.default.COLUMN_TYPE.VALUE},u.childs))return e.renderGroupingHeaders([u],a,r)[0];var f=b.default.breakChildrenColumn(u,d,c),h=e.renderChildPage(f,a,r),m=(0,O.get)("element.properties.dataFormattings.width.value",u)||s||void 0;return p.default.createElement(E.ColumnGroup,{getTitle:e.getTitle.bind(e,u),width:m,cell:null,fnGetCellData:o(u),fnGetCellStyle:N.default.getCellStyleForPivotHeader.bind(e,u,r),fnGetCellContentStyle:l(u),isHidden:u.isHidden,key:u.key,fnGetHeaderCellStyle:null,fnGetHeaderCellContentStyle:null},h)},e.renderGroupingHeaders=function(t,a,r){var n=[],i=e.props,o=i.reportPart,l=i.getCellData,s=i.getCellStyle,u=i.fnGetHeaderCellContentForPivotHeader,d=i.getCellContentStyle,c=i.fnGetHeaderCellStyle,f=i.fnGetHeaderCellContentStyle,h=o.reportPartContent,m=(0,O.get)("properties.columns.width.value",h),g=(0,O.getOr)(!1,"columns.properties.useExpanders",h),y=(0,O.getOr)(!1,"columns.properties.addSideTotal",h);(0,O.getOr)(!1,"columns.properties.removeExtraSideTotalColumns",h);if((0,O.isEmpty)(t))return null;var v=(0,O.clone)(r)||{firstColumn:!0,lastColumn:!0,deep:0};v.deep++;var T=t.length-1,_=(0,O.findIndex)((0,O.negate)((0,O.get)("isHidden")),t);return t.map(function(t,r){var i=t.isLeaf?E.Column:E.ColumnGroup,o=(0,O.clone)(v);o.firstColumn&&r!==_&&0!==r&&(o.firstColumn=!1),o.lastColumn&&r!==T&&(o.lastColumn=!1);var h=[];if(y&&t.isExpand){var S=(0,O.clone)(o);S.firstColumn=!1,h=e.renderExpandSideTotal(t,a,S)}o.lastColumn&&!(0,O.isEmpty)(h)&&(o.lastColumn=!1);var C=(0,O.get)("element.properties.dataFormattings.width.value",t),b=(0,O.getOr)(!1,"element.properties.headerFormating.verticalHeader",t),A=(0,O.get)("element.properties.dataFormattings.alignment",t),R=(0,O.get)("element.properties.dataFormattings.verticalAlignment",t),I=C||m||void 0,D=(0,O.get)("element.properties.headerFormating.verticalHeaderHeight.value",t);n.push(p.default.createElement(i,{getTitle:e.getTitle.bind(e,t),isVerticalHeader:b,width:I,vHeaderAlignment:A,verticalHeaderHeight:D,vHeaderVerticalAlignment:R,isInvisible:t.isInvisible,canRenderHeader:t.canRenderHeader,cell:t.isLeaf?e.renderCellContent.bind(e,t):null,fnGetCellData:l(t),fnGetCellStyle:t.isLeaf?s(t,o,a):N.default.getCellStyleForPivotHeader.bind(e,t,o),fnGetCellContentStyle:t.isLeaf?d(t):u(t),key:t.key+r,fnGetHeaderCellStyle:t.isLeaf?c(t,o,a):null,fnGetHeaderCellContentStyle:t.isLeaf?f(t):null,iconExpandCollapse:e.renderCollapsedIcon(t),isColumnHeader:t.isColumnHeader&&1===t.level},t.isExpand||!g?e.renderGroupingHeaders((0,O.sortBy)((0,O.getOr)(0,"element.position"),t.childs),a,o):e.renderCollapsedSideTotal(t.sideTotals,a,t.level,o))),n=(0,O.concat)(n,h)}),n},e.renderListeners=[],e}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.printingMode,a=e.finishedRender;t&&A.default.publishFinishedRender(this.renderListeners,function(){a&&a()})}},{key:"render",value:function(){var e=this.props,t=e.allGroupSuptotal,a=e.rowDataObject,r=e.rowDataObjectSubTotal,n=e.haveSupTotal,i=e.forDrillDown,o=e.isPreview,l=e.allRow,s=e.pageStatus,u=e.isLogicalSeparator,d=e.reportPart,c=(0,O.getOr)(!1,"props.reportPart.reportPartContent.rows.properties.useExpanders",this)&&(0,O.getOr)(!1,"props.reportPart.reportPartContent.properties.view.expanderRowsSpacing",this),p=[];u?p=a.flatMap(function(e,a){var l=_.default.flattenRowDataObject(e,i,n,c);return o&&(l=(0,O.take)(T.default.MAX_ROW,l)),t?(0,O.concat)(l,r[a]):l}):(p=_.default.flattenRowDataObject(a,i,n,c),o&&(p=(0,O.take)(T.default.MAX_ROW,p)),t&&r.length&&(p=(0,O.concat)(p,r[0]))),l&&(p=this.props.getFirstRecordForDrilldown(p));var f=p.length-1;return C.default.applyConditionalFormattingForPivotAndDrilldownGrids(p,d),s?this.renderTable(p,f):this.renderPageBreakPerPivotColumnTable(p,f)}}]),t}(c.Component),r.propTypes={reportPart:c.PropTypes.object.isRequired,records:m.propTypes.arrayOrObservableArray.isRequired,loader:c.PropTypes.object.isRequired},n);t.default=(0,g.default)(R.default)(P),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d=p(a(41)),c=p(a(33));function p(e){return e&&e.__esModule?e:{default:e}}r=a(0),n=a(693),i=a(397),o=a(396),l=a(94),s=a(1).get,u=function(e,t,a,i,u,p,f,h,m,g){var E=s("element",a),y=o.buildRawRecordFilterForPivotGrid(a,i);l.pushRenderListener(h,m);var v=t;return d.default.isRenderHtmlInReportViewer()&&(t=r.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),v=c.default.getTextContentFromHtmlString(v)),r.createElement(n,{reportPart:e,fieldElement:E,afterRenderCallBack:p,printingMode:f,finishedRender:l.getFinishedRenderPromiseById(h,m),getFilterInfoForSubReport:g,rawRecord:y,linkTitleText:v},t)},e.exports={applySubReportLink:u,applySubReportCellLink:function(e,t,a,r,n,o,l,s,d,c){var p=[];return p=a.type===i.COLUMN_TYPE.ROW?r.rowDataObjects[a.uniqueFieldNameAlias].rowDataObject.childsData:r.currentRow.rowDataObject.childsData,u(e,t,a,p,0,o,l,s,d,c)}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=y(a(6)),i=y(a(2)),o=y(a(3)),l=y(a(7)),s=y(a(8)),u=a(0),d=y(u),c=y(a(41)),p=a(1),f=y(a(4)),h=y(a(33)),m=y(a(397)),g=y(a(396)),E=y(a(67));function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,f.default)()(r=function(e){function t(){return(0,i.default)(this,t),(0,l.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this.props,t=e.localization,a=e.rowData,r=e.columnData,n=e.subTotalMapping,i=e.rowExpanders,o=e.forDrillDown,l=e.fieldElement,s=e.isDisplayCell,u=g.default.getDataForCell(r,a,i,o,n),f=(0,p.get)("properties.dataFormattings.alternativeText",l),y=(0,p.get)("element.properties.dataFormattings",r),v=(0,p.get)("format.format",y),T=(0,p.get)("subTotal.format.format",y),_=(0,p.get)("subTotal.font",y),S=(0,p.get)("previewDataType",l),C=h.default.getDataFormat(u.data,{alternativeText:f,fieldFormatData:T||v,fieldDataType:S});if(!u.isEmpty||s){var b=y.subTotal,N=function(e){return e?{fontWeight:void 0!==e.bold?e.bold?"bold":"normal":E.default.DEFAULT_VALUE_PROPERTIES.SUB_TOTAL.FONT.BOLD?"bold":"normal",fontStyle:e.italic?"italic":"normal",textDecoration:e.underline?"underline":"none",fontFamily:void 0!==e.family?e.family:E.default.DEFAULT_VALUE_PROPERTIES.FONT.FAMILY,fontSize:(e.size?e.size:E.default.DEFAULT_VALUE_PROPERTIES.FONT.SIZE)+"px",color:e.color?e.color:E.default.DEFAULT_VALUE_PROPERTIES.FONT.COLOR}:{}}(_);return d.default.createElement("span",{className:"sub-total",title:b.label,style:N},function(){var e=C;return o&&r.type===m.default.COLUMN_TYPE.ROW&&(e=String.format(t.getText("REPORTDESIGNER_LABEL_TOTAL_FOR"),C)),c.default.isRenderHtmlInReportViewer()&&(e=d.default.createElement("span",{dangerouslySetInnerHTML:{__html:e}})),e}())}return null}}]),t}(u.Component))||r;t.default=v,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f;r=a(1),n=r.map,i=r.flow,o=r.max,l=r.min,s=r.sumBy,u=r.times,d=r.identity,c=r.filter,p=function(e){var t=0;return n(function(e){var a=t+e.pivotColumn,r={from:t,to:a,columnDataObject:e};return t=a,r},e)},f=function(e,t,a){return i(c(function(e){return!(e.to<=t||a<=e.from)}),n(function(e){return{from:o([t-e.from,0]),to:l([e.columnDataObject.pivotColumn,a-e.from]),columnDataObject:e.columnDataObject}}))(e)},e.exports={breakPage:function(e,t){var a=s("pivotColumn",e),r=Math.ceil(a/t),o=p(e);return i(u(d),n(function(e){return f(o,e*t,(e+1)*t)}))(r)},breakChildrenColumn:function(e,t,a){var r=p(e.childs);return f(r,t,a)}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=E(a(71)),n=E(a(14)),i=E(a(0)),o=a(5),l=a(9),s=E(a(10)),u=a(11),d=E(a(396)),c=E(a(33)),p=E(a(88)),f=E(a(397)),h=E(a(99)),m=E(a(505)),g=a(1);function E(e){return e&&e.__esModule?e:{default:e}}var y=h.default.COLLAPSE_STATUS;var v=(0,g.get)("element.properties.headerFormating.columnGroup");function T(e,t){var a=function(e){var a=new f.default.ColumnDataObject;return function(e,a){var r=v(a);e.value=r,e.isLeaf=!1,e.isHidden=!0,e.level=t,e.isInvisible=!1,e.isColumnGroup=!0,e.hideTopLeftBorder=!r,e.childs=[a]}(a,e),a};return(0,g.flow)((0,g.reduce)(function(e,t){return e.lastLeaf&&v(e.lastLeaf)===v(t)?(e.lastGroup.childs=(0,g.concat)(e.lastGroup.childs,t),(0,g.set)("lastLeaf",t,e)):function(e,t){var r=a(t);return{leafRowHeaders:(0,g.concat)(e.leafRowHeaders,r),lastGroup:r,lastLeaf:t}}(e,t)},{leafRowHeaders:[],lastGroup:null,lastLeaf:null}),(0,g.get)("leafRowHeaders"))(e)}function _(e,t){if((0,g.isNil)(e)||(0,g.isEmpty)(e.childs))return[e];var a=t?e.childs.map(function(e){return _(e,t)}):_(e.childs[0]);return(0,g.flow)(g.concat,g.flatten,g.compact)(e,a)}function S(e,t){var a=(0,o.action)(function(e){!(0,g.isEmpty)(e)&&e.forEach(function(e){(0,g.isEmpty)(e.childs)||(a(e.childs),e.isExpand!==t&&e.toggleExpand(t))})});a(e.rowDataObject)}t.default=(0,u.compose)((0,u.withPropsOnChange)(["records"],function(e){var t=!!(0,g.getOr)(!1,"reportPartContent.columns.properties.addSideTotal",e.reportPart),a=e.reportPart,r=a.reportPartContent,n=a.previewData,i=a.previewData.subTotalMapping,o=r.properties,l=o.view.pivotColumnsPerExportedPage,s=(0,g.getOr)(!1,"rows.properties.useExpanders",r),u=(0,g.getOr)(null,"properties.generalInfo.gridStyle",r)===h.default.GRID_STYLES.PIVOT.value,c=void 0;c=r.collapseStatus!==y.EXPAND&&!e.printingMode&&!(!s&&u)&&(r.collapseStatus===y.COLLAPSE||o.view.collapseDrilldownByDefault);var p=d.default.createRowHeadersDataObject(r.rows),f=[],m=[],E=[];e.records.length&&(e.records[0].data?(m=(0,g.map)(function(e){return e.data},e.records),E=(0,g.reduce)(function(e,t){return(0,g.concat)(e,t.data)},[],e.records),f=(0,g.map)(function(e){return e.key},e.records)):(m=[e.records],E=e.records,f=[e.keyPath]));var v=d.default.createColumnDataObject(E,n,r.columns,r.values,r.separators,e.keyPath),T=r.gridStyle===h.default.GRID_STYLES.DRILL_DOWN.value,_=(0,g.map)(function(t){return d.default.createRowDataObject(t,n,r.rows,e.keyPath||[],T,!c)},m),S=[];t&&(S=d.default.createSideTotal(n,r.values),d.default.updateSideTotalMapping(S,n.sideTotalMapping,r.columns));var C=(0,g.flow)((0,g.sortBy)("position"),g.last,(0,g.get)("isVisible"))(r.separators.elements),b=!(0,g.isEmpty)(e.keyPath),N=(0,g.some)(function(e){var t=(0,g.find)(["fieldNameAlias",e.fieldNameAlias],r.fieldCollection);return t&&t.isVisible},i),A=N&&(!T||b&&C),R=(0,g.flow)((0,g.sortBy)("position"),g.head)(r.rows.visibleElement),O=[];if(A)for(var I=function(e){var t=(0,g.flow)((0,g.sortBy)("position"),g.last)(r.separators.visibleElement),a=(0,g.flow)((0,g.find)(function(e){return e.element===t}),(0,g.getOr)("","value"))(f[e]),i=d.default.createSupTotalRowDataObject(R.field.fieldNameAlias,_[e],t,a,n);O.push(i)},D=0;D0&&(e.records=t[0].records)}}):e=[{separatorInfo:null,records:t}],e}(o,i.currentRow.rowDataObject):(a=o,r=i.currentRow.rowDataObject,n=r.subKeyPath.map(function(e){return e.value}),null!=a&&0!=a.length&&a[0].separatorInfo?a.map(function(e){e.separatorInfo&&(0,g.isEqual)(e.separatorInfo.values,n)&&(e.records=r)}):a=[{separatorInfo:null,records:r}],a),(0,g.get)("currentRow.rowDataObject",i).isExpand?(i.currentRow.isSupTotalRow=!1,(0,g.concat)([i],t)):(i.currentRow.isSupTotalRow=e.haveSupTotal,[i])}),isDisplayRowExpander:(0,g.curry)(function(e,t,a){return e.reportPart.reportPartContent.haveRowExpander&&t&&(a.type===f.default.COLUMN_TYPE.ROW&&t.firstRow||t.mustHaveExpander)}),fnGetHeaderCellContentStyle:(0,g.curry)(function(e,t,a){var r=e.reportPart.getReportPartProperties().headers,n=t.element.properties.getHeaderCellStyle(r);return m.default.createStyleObject(n)}),fnGetHeaderCellContentForPivotHeader:(0,g.curry)(function(e,t,a){var r=t.element,n=e.reportPart;if((0,g.isNil)(t.element)){if(t.isColumnGroup||t.canRenderHeader){var i=n.getReportPartProperties().headers;return m.default.createStyleObject({fontFamily:(0,g.get)("font.family",i),fontSize:(0,g.get)("font.size",i),bold:(0,g.get)("font.bold",i),italic:(0,g.get)("font.italic",i),underline:(0,g.get)("font.underline",i),textColor:t.canRenderHeader?null:(0,g.get)("font.color",i),alignment:(0,g.get)("alignment",i),wordWrap:(0,g.get)("wordWrap",i)})}return{}}var o=e.records,l=n.getReportPartProperties().columns,s=l.alignment,u=l.wordWrap,p=t.element.properties.getUIStyle();p.alignment=(0,g.isNil)(p.alignment)?s:p.alignment,p.wordWrap=(0,g.isNil)(p.wordWrap)?u:p.wordWrap;var f=m.default.createStyleObject(p),h=r.properties.hasRangePercent?(0,g.head)(d.default.buildRawRecordFilterForPivotGrid(t,o)):{},E={element:c.default.buildDataSourceElement(n,r),record:h};return f.color=c.default.getConfigDataByRange(t.title,r.properties.dataFormattings.color.textColor,E),f}),fnGetHeaderCellStyle:(0,g.curry)(function(e,t,a,r,i,o,l){var s=e.reportPart,u=s.getReportPartProperties().headers,d=m.default.getCellStyleSetting(s,a,o,l,r,!0),c={backgroundColor:t.element.properties.getDefaultsHeaderProperty("font.backgroundColor",u),verticalAlign:t.element.properties.getDefaultsHeaderProperty("verticalAlignment",u)},p=(0,g.defaults)(d,c);return(0,n.default)({},p,h.default.DEFAULT_PIVOT_GRID_CELL_STYLE)}),getCellStyle:(0,g.curry)(function(e,t,a,r,i,o,l,s){var u=s.value,d=s.source,p=e.reportPart,E=p.getReportPartProperties(),y=E&&E.columns.verticalAlignment,v={},T=t.element,_=m.default.getCellStyleSetting(p,a,o,l,r),S=i.currentRow;if(u.isEmpty||S.isSupTotalRow&&(!e.forDrillDown||t.type!==f.default.COLUMN_TYPE.ROW||S.rowDataObject.isExpand))return(0,n.default)({},_,h.default.DEFAULT_PIVOT_GRID_CELL_STYLE);var C=s.conditionalFormattingStyles;v.backgroundColor=(0,g.getOr)("","bgColor.value",C)||v.backgroundColor;var b=(0,g.isNil)(u.orgData)||"null"===u.orgData?u.data:u.orgData;return S.isSupTotalRow||(v={backgroundColor:c.default.getConfigDataByRange(b,T.properties.dataFormattings.color.cellColor,d)||v.backgroundColor,verticalAlign:T.properties.dataFormattings.verticalAlignment||y}),(0,n.default)({},(0,g.defaults)(_,v),h.default.DEFAULT_PIVOT_GRID_CELL_STYLE)}),getCellContentStyle:(0,g.curry)(function(e,t,a,r,n,i,o,l){var s=l.value,u=l.source,d=t.element,p=d.properties.getUIStyle(),f=e.reportPart.getReportPartProperties(),h=f.columns.alignment,E=f.columns.wordWrap;p.wordWrap=(0,g.isNil)(p.wordWrap)?E:p.wordWrap,p.alignment=(0,g.isNil)(p.alignment)?h:p.alignment;var y=m.default.createStyleObject(p);if(s.isEmpty)return y;var v=l.conditionalFormattingStyles,T=(0,g.getOr)("","fontSize.value",v);y.fontSize=T?T+"px":y.fontSize,y.fontFamily=(0,g.getOr)("","fontFamily.value",v)||y.fontFamily,y.fontWeight=(0,g.getOr)("","bold.value",v)?"bold":y.fontWeight,y.textDecoration=(0,g.getOr)("","underline.value",v)?"underline":y.textDecoration,y.fontStyle=(0,g.getOr)("","italic.value",v)?"italic":y.fontStyle,y.color=(0,g.getOr)("","fontColor.value",v)||y.color;var _=(0,g.isNil)(s.orgData)||"null"===s.orgData?s.data:s.orgData;return a.currentRow.isSupTotalRow||(y.color=c.default.getConfigDataByRange(_,d.properties.dataFormattings.color.textColor,u)||y.color),y}),collapseAll:(0,g.curry)(function(e,t){var a=e.reportPart,n=e.loader,i=e.reportPart.reportPartContent;if(e.allRow.currentRow.rowDataObject.isExpand=!0,e.haveSupTotal)S(e,!1);else if(n.startLoading(),(0,g.some)(function(e){return(0,g.isEmpty)(e.data)},e.rowDataObject)){i.setCollapseStatus(-1);var o=0,l=Math.min.apply(Math,(0,r.default)(i.rows.visibleElement.map(function(e){return e.position})))-1;o=Math.max(o,l),e.getDrillDownRecords(a,{expandedLevel:o,filters:[]},a.previewData.paging.pageIndex).then(function(e){return a.setQueryData(e)}).finally(n.endLoading.bind(n))}else S(e,!1),n.endLoading()}),expandAll:(0,g.curry)(function(e,t){var a=e.reportPart,r=e.loader,n=e.reportPart.reportPartContent;e.allRow.currentRow.rowDataObject.isExpand=!0,e.haveSupTotal?S(e,!0):(r.startLoading(),n.setCollapseStatus(1),e.getDrillDownRecords(a,{expandedLevel:-1,filters:[]},a.previewData.paging.pageIndex).then(function(e){return a.setQueryData(e)}).finally(r.endLoading.bind(r)))}),getCellData:(0,g.curry)(function(e,t,a){var r=e.reportPart,n=e.forDrillDown,i=e.subTotalMapping,o=r.reportPartContent.haveRowExpander,l=t.element,s=d.default.getDataForCell(t,a,o,n,i),u={element:c.default.buildDataSourceElement(r,l),record:l.properties.hasRangePercent?(0,g.head)(d.default.getRawData(t,a)):{}},p={};if(!s.isEmpty&&!s.dataNotFound){var f=!0,m=!0;if((0,g.getOr)("","reportPart.reportPartContent.gridStyle",e)===h.default.GRID_STYLES.PIVOT.value&&(m=(0,g.getOr)(!1,"reportPart.reportPartContent.rows.properties.useExpanders",e)),m&&"row"===t.type){var E=(0,g.getOr)({},"rowDataObject",a.rowDataObjects[t.uniqueFieldNameAlias]);E.isExpandable&&E.isExpand&&(p=c.default.getConditionalFormattingForColapsedCell(E),f=!1)}if(f){var y=(0,g.getOr)("","element.columnName",u),v=(0,g.head)(d.default.getRawData(t,a))||{},T=v,_=!1;"side total"==t.type&&((T={})[t.key]=v[t.key],t.keyPath&&(0,g.forEach)(function(e){var t=e[0];T[t]=v[t]},t.keyPath),_=!0);var S=(0,g.getOr)([],"currentRow.rowDataObject.conditionalFormatting",a);p=c.default.getCellConditionalFormattingValue(y,S,T,e.reportPart,_)}}return{value:s,source:u,conditionalFormattingStyles:p}})}),l.observer,(0,u.withProps)(function(e){var t=e.forDrillDown,a=e.rowHeaderColumnDataObject,r=e.columnDataObjects,n=e.reportPart,i=e.embededReportPart,o=e.sideTotalColumns,l=n.reportPartContent,s=l.properties.view.pivotColumnsPerExportedPage,u=(0,g.some)(v,a),c=l.columns.visibleElement.length,f=p.default.isMobileDevice(),h=a,m=h;u?(m=h=T(h,c),c>1&&(h=[d.default.createBlankHeaders(0,c-1,h)])):c&&(h=[d.default.createBlankHeaders(0,c,h)]);var E=(0,g.curry)(function(e){var r=t&&(0,g.some)(v,e),n=void 0,i=e;r?i=T(e,1):t&&u&&(i=[d.default.createBlankHeaders(0,1,e)]);var o=_((0,g.find)((0,g.get)("element"),i));n=[d.default.createBlankHeaders(0,o.length-1,a)];var l=_((0,g.first)(n));if(l.length!==o.length){var s=[d.default.createBlankHeaders(0,1,a)];n=r&&!u?s:h}else u&&(n=h),(0,g.zip)(o,l).forEach(function(e){return e[0]&&(e[0].canRenderHeader=e[1].canRenderHeader=e[0].element.properties.fieldItemVisible)}),i.forEach(function(e){_(e,!0).forEach(function(e){return e.canRenderHeader=e.element.properties.fieldItemVisible})});return(0,g.concat)(n,i)}),y={pageColumnHeader:[(0,g.concat)(E(r),o)],pageStatus:!0},S=[];return e.printingMode&&s&&(t?y={pageColumnHeader:(0,g.flow)((0,g.chunk)(s),(0,g.map)(E))(r),pageStatus:!0}:(0,g.every)({pivotColumn:s},r)?((0,g.isEmpty)(o)||(u&&(o=[d.default.createBlankHeaders(0,1,o)]),S=[(0,g.concat)(m,o)]),y={pageColumnHeader:(0,g.flow)((0,g.chunk)(1),(0,g.map)(E),(0,g.concat)(g.placeholder,S))(r),pageStatus:!0}):y={haveGroupForRow:u,fullRowHeader:h,onlyColumnGroupRowHeader:m,pageStatus:!1}),y.getStickyValue=function(e){return!i&&!f&&e},y})),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h;r=a(11).compose,n=a(11).mapProps,i=a(9).observer,o=a(10),l=a(18),s=a(1),u=s.omit,d=s.isEmpty,c=s.assign,p=s.isNil,f=s.get,h=r(i,n(function(e){var t=u(["reportPart"],e),a=e.reportPart,r=f("reportPartContent.properties.view.usePagination",a),n=a.previewDataRecords,i=!a.isBeingBuild||!r||d(n),s=a.previewData.paging||{total:0,pageSize:l.DEFAULT_PAGE_SIZE,pageIndex:l.DEFAULT_PAGE_INDEX};return c(t,{totalRecords:s.total||0,pageSize:p(s.pageSize)?l.DEFAULT_PAGE_SIZE:s.pageSize,pageIndex:p(s.pageIndex)?l.DEFAULT_PAGE_INDEX:s.pageIndex,className:o("with-border",{hide:i})})})),e.exports=h},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(1),n=a(11),i=a(99),o=a(48),l=u(a(33)),s=u(a(41));function u(e){return e&&e.__esModule?e:{default:e}}var d=(0,n.compose)(n.pure,(0,n.withHandlers)({onSortChange:(0,r.curry)(function(e,t,a,n,o,l){var u=e.reportPart,d=e.reportPart,c=d.reportPartContent,p=d.isBackSide,f=e.reportPart.reportPartContent.properties.generalInfo.gridStyle,h=c.getNewSortValue(t,n,a);if(p||(0,r.get)("field.isRunningField",a))return!1;!s.default.advancedSettings.other.multipleSortOnGridHeaderValue&&(0,r.includes)(f,[i.GRID_STYLES.VERTICAL.value,i.GRID_STYLES.HORIZONTAL.value])&&c.resetSortValue(t),a.properties.setSortValue(h),e.needUpdatePreview(u,null,null,null,null,o)}),resolveSortValue:(0,r.curry)(function(e,t,a){var n=(0,r.get)("properties.dataFormattings.sort",a),s=(0,r.getOr)("","reportPart.reportPartContent.properties.generalInfo.gridStyle",e);if(s===i.GRID_STYLES.VERTICAL.value||s===i.GRID_STYLES.HORIZONTAL.value){var u=(0,r.compact)([e.reportPart.reportPartContent.columns,e.reportPart.reportPartContent.rows,e.reportPart.reportPartContent.values,e.reportPart.reportPartContent.separators]);l.default.checkCanUnsort(s,t,a,u)||!(0,r.isEmpty)(n)&&n!==o.SORT_ORDERS.Unsorted.value||(n=o.SORT_ORDERS.ASC.value)}return n})}));t.default=d,e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n=a(20);t.default=function(e,t,a,s){var u=t.reportPartContent,d=u.properties;return r(!!e,"reportDesignerModel must be set"),{definedSchema:i.default,widgets:T,source:d,mappingProps:{beforeChangeSeparator:function(e){return e.value||(0,E.isEmpty)((0,E.get)("separators.elements",u))?(0,n.resolve)():s.confirmFn("Confirmation",{description:o.default.MESSAGES.SEPARATOR_CONFIRM})},fnResetRefreshIntervalDefaultValue:d.resetRefreshInterval.bind(d),fnResetConditionalFormattingDefaultValue:d.resetConditionalFormatting.bind(d),fnResetBorderDefaultValue:d.resetBorderDefaultValue.bind(d),getBorderSettings:function(){return d.getTableByKey("border")},hadSettingBorder:function(){var e=d.getTableByKey("border"),t=(0,E.cloneDeep)(o.default.DEFAULT_SETTING_VALUE.border);return!!e&&!(0,E.isEqual)(e,t)},getDataRefreshInterval:function(){return d.getViewByKey("dataRefreshInterval")},hadSettingRefreshInterval:function(){var e=o.default.DEFAULT_SETTING_VALUE.refreshIntervalDefault,t=d.getViewByKey("dataRefreshInterval");return!!t&&(t.value!==e.value||t.updateInterval!==e.updateInterval)},getConditionalFormatting:function(){return d.getViewByKey("conditionalFormatting")},getConditionalFormattingWithReportPart:function(){var e=d.getViewByKey("conditionalFormatting");return{reportPartContent:u,conditionalFormatting:e}},hadConditionalFormattingSetting:function(){var e=d.getViewByKey("conditionalFormatting");return e.rules&&0!==e.rules.length},getWordWrapValue:function(){return d.headers},getColumnsWordWrapValue:function(){return d.columns},getColumnAlignment:function(){return d.columns.alignment},getColumnVerticalAlignment:function(){return d.columns.verticalAlignment},filterFreezeHeaderOptions:function(e){var t=o.default.GRID_STYLES,a=o.default.FREEZE_HEADERS,r=a.VERTICALLY,n=a.HORIZONTALLY;switch(u.gridStyle){case t.VERTICAL.value:return(0,E.filter)(function(e){return e.value===r.value},e);case t.HORIZONTAL.value:return(0,E.filter)(function(e){return e.value===n.value},e);case t.DRILL_DOWN.value:return(0,E.filter)(function(e){return e.value===r.value},e);default:return e}}},mappingSource:{getWidthValue:function(){return d.columns},getGridStyle:function(){return(0,E.values)(o.default.GRID_STYLES)},getSeparatorStyle:function(){return(0,E.values)(o.default.SEPARATOR_STYLE)},getHeaderFontFormat:function(){var e=d.getHeadersByKey("font");return{fontFamily:e.family,fontSize:e.size}},getHeaderFontStyle:function(){var e=d.getHeadersByKey("font");return{fontUnderline:e.underline,fontItalic:e.italic,fontBold:e.bold}},getHeaderColorStyling:function(){var e=d.getHeadersByKey("font");return{textColor:e.color,backgroundColor:e.backgroundColor}},getTableColorStyling:function(){return{backgroundColor:d.getTableByKey("backgroundColor")}},getTableAlternativeBackgroundValue:function(){var e=d.getColumnsByKey("alterBackgroundColor"),t=d.getRowsByKey("alterBackgroundColor");return e&&t?o.default.ALTERNATIVE_BACKGROUND.COLUMNS_AND_ROWS.value:e?o.default.ALTERNATIVE_BACKGROUND.COLUMNS.value:t?o.default.ALTERNATIVE_BACKGROUND.ROWS.value:o.default.ALTERNATIVE_BACKGROUND.NONE.value},getTableAlternativeBackgroundOptions:function(){return(0,E.values)(o.default.ALTERNATIVE_BACKGROUND)},isHiddenByAlternativeBackground:function(){var e=d.getColumnsByKey("alterBackgroundColor"),t=d.getRowsByKey("alterBackgroundColor");return!e&&!t},getTableAlternativeBackgroundColor:function(){return{backgroundColor:d.getTableByKey("alternativeBackgroundColor")}},isNotVerticalGrid:function(){return u.gridStyle!==o.default.GRID_STYLES.VERTICAL.value},getPivotColumnsPerExportedPageProps:function(){var e=(0,E.getOr)(!1,"properties.headers.disableRepeatHeaders",u);return{disabled:e,title:e?y.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_EXPORT_COLUMNS_PER_PAGE_DISABLED"):y.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_EXPORT_COLUMNS_PER_PAGE")}},isNotGridDrillDown:function(){return u.gridStyle!==o.default.GRID_STYLES.DRILL_DOWN.value&&u.gridStyle!==o.default.GRID_STYLES.PIVOT.value},isExpanderRowsSpacingHidden:function(){return u.gridStyle!==o.default.GRID_STYLES.PIVOT.value},isGridDrillDownOrPivot:function(){return u.gridStyle===o.default.GRID_STYLES.DRILL_DOWN.value||u.gridStyle===o.default.GRID_STYLES.PIVOT.value},getFreezeHeaderOptions:function(){return(0,E.values)(o.default.FREEZE_HEADERS)},getFreezeHeaderValue:function(){return d.getHeadersByKey("freezeHeaders")}},onChangeValue:(0,l.action)(function(e,r,i,l,s){var c=(i&&i.length?(0,E.get)(i,e):e)[r];c&&(c.value=l);var p=e.generalInfo,f=p.gridStyle.value,h=p.separatorStyle.value,m=e.table,g=m.backgroundColor.value.backgroundColor,y=m.alternativeBackground.value,v=y===o.default.DEFAULT_VALUE_PROPERTIES.TABLE.ALTERNATIVE_BACKGROUND?o.default.DEFAULT_VALUE_PROPERTIES.TABLE.ALTERNATIVE_BACKGROUND_COLOR:m.alternativeBackgroundColor.value.backgroundColor,T=(0,E.getOr)({},"border.value",m),_=e.columns,S=_.width.value,C=y===o.default.ALTERNATIVE_BACKGROUND.COLUMNS.value||y===o.default.ALTERNATIVE_BACKGROUND.COLUMNS_AND_ROWS.value,b=_.columnWordWrap.value,N=_.columnAlignment.value,A=_.columnVerticalAlignment.value,R=y===o.default.ALTERNATIVE_BACKGROUND.ROWS.value||y===o.default.ALTERNATIVE_BACKGROUND.COLUMNS_AND_ROWS.value,O=e.headers,I=O.alignment.value,D=O.verticalAlignment.value,P=O.wordWrap.value,L=O.removeHeaderForExport.value,M=O.disableRepeatHeaders.value,F=O.removeHeaderForViewer.value,k=O.freezeHeaders.value,x=O.fontFormat.value,w=x.fontFamily,B=x.fontSize,U=O.fontStyle.value,z=U.fontBold,V=U.fontItalic,G=U.fontUnderline,H=O.color.value,Y=H.textColor,j=H.backgroundColor,K=e.grouping.useSeparator.value,W=e.view,q={generalInfo:{gridStyle:f,separatorStyle:h},table:{backgroundColor:g,border:T,alternativeBackgroundColor:v},columns:{width:{value:S},alterBackgroundColor:C,wordWrap:b,alignment:N,verticalAlignment:A},rows:{alterBackgroundColor:R},headers:{font:{family:w,size:B,bold:z,italic:V,underline:G,color:Y,backgroundColor:j},alignment:I,verticalAlignment:D,wordWrap:P,removeHeaderForExport:L,disableRepeatHeaders:M,removeHeaderForViewer:F,freezeHeaders:k},grouping:{useSeparator:K},view:{dataRefreshInterval:W.dataRefreshInterval.value,conditionalFormatting:W.conditionalFormatting.value,usePagination:W.usePagination.value,expanderRowsSpacing:!!W.expanderRowsSpacing&&W.expanderRowsSpacing.value,collapseDrilldownByDefault:W.collapseDrilldownByDefault.value,pivotColumnsPerExportedPage:W.pivotColumnsPerExportedPage.value},printing:{usePageBreakAfterSeparator:e.printing.usePageBreakAfterSeparator.value}},Q=null,X=!1,J=(0,n.resolve)();"gridStyle"===r&&(q.headers.freezeHeaders=null,O.freezeHeaders.value=null,Q=d.getGeneralInfoByKey("gridStyle"),f!==o.default.GRID_STYLES.DRILL_DOWN.value&&f!==o.default.GRID_STYLES.PIVOT.value||(q.view.conditionalFormatting.rules=[]),J=u.changeGridStyle(Q,f,t),X=!0),"useSeparator"!==r||K||(t.clearContainer(u.separators),X=!0),"usePagination"===r&&(X=!0),"expanderRowsSpacing"===r&&(X=!0),"collapseDrilldownByDefault"===r&&(X=!0),"conditionalFormatting"===r&&(u.checkIfPercentOfGroupRequiredForConditionalFormatting(l),X=!0),d.setReportPartProperties(q),X&&t.shouldUpdatePreview&&J.then(function(){a.needUpdatePreview(t)})})}};var i=v(a(2172)),o=v(a(99)),l=a(5),s=v(a(28)),u=v(a(1154)),d=v(a(213)),c=v(a(183)),p=v(a(238)),f=v(a(331)),h=v(a(1156)),m=v(a(687)),g=v(a(509)),E=a(1),y=v(a(12));function v(e){return e&&e.__esModule?e:{default:e}}var T={Panel:s.default,SizeSetting:u.default,FontStyle:d.default,FontFormat:c.default,ColorStyling:p.default,AlignmentSetting:f.default,VerticalAlignmentSetting:h.default,ButtonHighlight:m.default,CustomDropdown:g.default};e.exports=t.default}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};a(97);t.default={schemaKey:"RP_GRID_TYPE",fields:{generalInfo:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("COMMON_LABEL_GENERAL_INFO")},icon:"icon-toggle-triangle"}},fields:{gridStyle:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_GRID_STYLE")},component:"CustomDropdown",fnValue:"getGeneralInfoByKey",props:{options:"getGridStyle"}},separatorStyle:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_SEPARATOR_STYLE")},component:"CustomDropdown",fnValue:"getGeneralInfoByKey",props:{options:"getSeparatorStyle"}}}},table:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("MODEL_LABEL_TABLE")},icon:"icon-toggle-triangle"},hiddenByState:!0},fields:{border:{get title(){return i.default.getText("COMMON_LABEL_BORDER")},type:"btnPopup",fnValue:"getBorderSettings",props:{hadSetting:"hadSettingBorder",fnResetDefaultValue:"fnResetBorderDefaultValue",loadValue:"getBorderSettings",previewComponent:a(2173)},staticProps:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_GRID_BORDER_SETTINGS")},className:"icon-setting btn-icon",get popupTitle(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_GRID_BORDER_SETTINGS")},popupContent:a(1183),popupProps:{type:"none"}}},backgroundColor:{get title(){return i.default.getText("COLOR_STYLING_BACKGROUND_TOOLTIP")},component:"ColorStyling",fnValue:"getTableColorStyling",props:{type:"photoshop",position:"left",options:{text:void 0,background:!0}}},alternativeBackground:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_ALTERNATIVE_BACKGROUND")},type:"select",fnValue:"getTableAlternativeBackgroundValue",props:{options:"getTableAlternativeBackgroundOptions"}},alternativeBackgroundColor:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_ALTERNATIVE_BACKGROUND_COLOR")},isHidden:"isHiddenByAlternativeBackground",component:"ColorStyling",fnValue:"getTableAlternativeBackgroundColor",props:{type:"photoshop",position:"left",options:{text:void 0,background:!0}}}}},columns:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_COLUMNS")},icon:"icon-toggle-triangle"}},fields:{width:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_WIDTH")},component:"SizeSetting",fnValue:"getColumnWidth",props:{loadValue:"getWidthValue",propertyKey:"width.value"}},columnAlignment:{get title(){return i.default.getText("FONT_SETTINGS_LABEL_ALIGNMENT")},component:"AlignmentSetting",fnValue:"getColumnAlignment"},columnVerticalAlignment:{title:"",component:"VerticalAlignmentSetting",fnValue:"getColumnVerticalAlignment"},columnWordWrap:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_WORD_WRAP")},component:"ButtonHighlight",fnValue:"getColumnsByKey",staticProps:{defaultIcon:"icon-word-wr"},props:{loadValue:"getColumnsWordWrapValue",propertyKey:"wordWrap",get description(){return i.default.getText("BUTTON_HIGHLIGHT_WRAP_TEXT")},states:[{value:!0,icon:"icon-word-wr active"},{value:!1,icon:"icon-word-wr"}],disabledIcon:"icon-word-wr"}}}},headers:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_HEADERS")},icon:"icon-toggle-triangle"}},fields:{fontFormat:{get title(){return i.default.getText("FONT_SETTINGS_LABEL_FONT")},component:"FontFormat",fnValue:"getHeaderFontFormat"},fontStyle:{title:"",component:"FontStyle",fnValue:"getHeaderFontStyle"},color:{get title(){return i.default.getText("COMMON_LABEL_COLOR")},component:"ColorStyling",fnValue:"getHeaderColorStyling",props:{type:"photoshop",position:"left"}},alignment:{get title(){return i.default.getText("FONT_SETTINGS_LABEL_ALIGNMENT")},component:"AlignmentSetting",fnValue:"getHeadersByKey"},verticalAlignment:{title:"",component:"VerticalAlignmentSetting",fnValue:"getHeadersByKey"},wordWrap:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_WORD_WRAP")},component:"ButtonHighlight",fnValue:"getHeadersByKey",staticProps:{defaultIcon:"icon-word-wr"},props:{loadValue:"getWordWrapValue",propertyKey:"wordWrap",get description(){return i.default.getText("BUTTON_HIGHLIGHT_WRAP_TEXT")},states:[{value:!0,icon:"icon-word-wr active"},{value:!1,icon:"icon-word-wr"}],disabledIcon:"icon-word-wr"}},freezeHeaders:{get title(){return i.default.getText("REPORT_PART_GRID_CONSTANTS_LABEL_FREEZE_HEADERS")},type:"select",fnValue:"getFreezeHeaderValue",props:{options:"getFreezeHeaderOptions",filterOptions:"filterFreezeHeaderOptions",blankOption:!0}},disableRepeatHeaders:{get title(){return i.default.getText("REPORT_PART_GRID_CONSTANTS_LABEL_DISABLE_REPEAT_HEADERS")},type:"checkbox",fnValue:"getHeadersByKey",isHidden:"isNotVerticalGrid",props:{hiddenByState:!0}},removeHeaderForExport:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_REMOVE_HEADER_FOR_EXPORT")},fnValue:"getHeadersByKey",type:"checkbox",props:{hiddenByState:!0}},removeHeaderForViewer:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_REMOVE_HEADER_FOR_VIEWER")},isHidden:"isGridDrillDownOrPivot",fnValue:"getHeadersByKey",type:"checkbox",props:{hiddenByState:!0}}}},grouping:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("COMMON_LABEL_GROUPING")},icon:"icon-toggle-triangle"},hiddenByState:!0},fields:{useSeparator:{get title(){return i.default.getText("COMMON_LABEL_USE_SEPARATOR")},fnValue:"getGroupingByKey",type:"checkbox",props:{beforeOnChange:"beforeChangeSeparator"}}}},view:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("MODEL_LABEL_VIEW")},icon:"icon-toggle-triangle"}},fields:{dataRefreshInterval:{get title(){return i.default.getText("COMMON_LABEL_DATA_REFRESH_INTERVAL_SETTING")},type:"btnPopup",fnValue:"getDataRefreshInterval",props:{hadSetting:"hadSettingRefreshInterval",fnResetDefaultValue:"fnResetRefreshIntervalDefaultValue",hiddenByState:!0,loadValue:"getDataRefreshInterval"},staticProps:{get title(){return i.default.getText("COMMON_LABEL_DATA_REFRESH_INTERVAL_SETTING")},className:"icon-setting btn-icon",get popupTitle(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_DATA_REFRESH_INTERVAL")},popupContent:a(335),popupProps:{type:"none",autoClose:!1}}},conditionalFormatting:{get title(){return i.default.getText("COMMON_LABEL_CONDITIONAL_FORMATTING_SETTING")},type:"btnPopup",fnValue:"getConditionalFormatting",props:{hadSetting:"hadConditionalFormattingSetting",fnResetDefaultValue:"fnResetConditionalFormattingDefaultValue",hiddenByState:!0,loadValue:"getConditionalFormattingWithReportPart"},staticProps:{get title(){return i.default.getText("COMMON_LABEL_CONDITIONAL_FORMATTING_SETTING")},className:"icon-setting btn-icon",get popupTitle(){return i.default.getText("COMMON_LABEL_CONDITIONAL_FORMATTING_SETTING")},popupContent:a(2174),popupProps:{type:"none",autoClose:!1,sizeClass:"modal-lg"}}},usePagination:{get title(){return i.default.getText("COMMON_LABEL_USE_PAGINATION")},fnValue:"getViewByKey",type:"checkbox"},expanderRowsSpacing:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_EXPANDER_ROW_SPACING")},fnValue:"getViewByKey",type:"checkbox",isHidden:"isExpanderRowsSpacingHidden"},collapseDrilldownByDefault:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_COLLAPSE_DRILLDOWN_BY_DEFAULT")},fnValue:"getViewByKey",type:"checkbox",isHidden:"isNotGridDrillDown"},pivotColumnsPerExportedPage:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_EXPORT_COLUMNS_PER_PAGE")},fnValue:"getViewByKey",type:"number",fnProps:"getPivotColumnsPerExportedPageProps",staticProps:{isDecimal:!1}}}},printing:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return i.default.getText("COMMON_LABEL_PRINTINGS")},icon:"icon-toggle-triangle"},hiddenByState:!0},fields:{usePageBreakAfterSeparator:{get title(){return i.default.getText("REPORT_PART_PROPS_GRID_SCHEMA_LABEL_PAGE_BREAK_AFTER_SEPARATOR")},fnValue:"getPageBreakAfterSeparator",type:"checkbox"}}}}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(6)),n=p(a(2)),i=p(a(3)),o=p(a(7)),l=p(a(8)),s=a(0),u=p(s),d=p(a(13)),c=a(97);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,(t.__proto__||(0,r.default)(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){var e=this.props.getStylesBorder;return u.default.createElement("div",{className:"border-preview"},u.default.createElement("div",{className:"border-box box1",style:e(c.BORDER_POSITION.ALL)}),u.default.createElement("div",{className:"border-box box2",style:e(c.BORDER_POSITION.MID_HOR)}),u.default.createElement("div",{className:"border-box box3",style:e(c.BORDER_POSITION.MID_VER)}),u.default.createElement("div",{className:"border-paragraph"},u.default.createElement("i",{className:"icon-pra"}),u.default.createElement("i",{className:"icon-pra"}),u.default.createElement("i",{className:"icon-pra"}),u.default.createElement("i",{className:"icon-pra"})))}}]),t}(s.Component);f.propTypes={getStylesBorder:d.default.func.isRequired},t.default=f,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=O(a(17)),l=O(a(14)),s=O(a(90)),u=O(a(6)),d=O(a(2)),c=O(a(3)),p=O(a(7)),f=O(a(8)),h=a(0),m=O(h),g=a(9),E=a(5),y=O(a(166)),v=a(46),T=a(1),_=O(a(2175)),S=O(a(2176)),C=O(a(2177)),b=O(a(2179)),N=O(a(15)),A=O(a(30)),R=O(a(1187));function O(e){return e&&e.__esModule?e:{default:e}}var I,D,P,L,M,F,k=y.default.CONDITION_MANAGER_TABLE_DEF,x=y.default.CONDITION_TYPE,w=y.default.FORMAT_TYPE,B=(0,g.observer)((n=function(e){function t(e){(0,d.default)(this,t);var a,r,n,l,c=(0,p.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return a=c,r="rules",l=c,(n=i)&&(0,o.default)(a,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0}),c.gridProperties={},c.fields=[],c.onAddRuleBtnClick=function(){var e=new _.default;c.rules.push(e)},c.onRuleMove=function(e,t,a){var r=c.rules;r.splice(e,1),r.splice(t,0,a)},c.getCellContentLink=function(e,t){return m.default.createElement("a",{onClick:t},m.default.createElement("span",{style:{marginRight:"4px",lineHeight:"22px"},className:"u_textUnderline"},e))},c.getConditionValue=function(e){var t="",a=!1;switch((0,T.get)("type",e)){case x.ALL_VALUES.value:t=x.ALL_VALUES.title;break;case x.NULL.value:t=x.NULL.title;break;case x.BLANK.value:t=x.BLANK.title;break;case x.VALUE.value:t=(0,T.get)("value",e);break;case x.RANGE_PERCENT.value:a=!0;case x.RANGE_VALUE.value:var r=(0,T.get)("value.from",e),n=(0,T.get)("value.to",e);a&&(r=(0,T.isNumber)(r)?r+"%":r,n=(0,T.isNumber)(n)?n+"%":n),r&&n&&(t=r+" - "+n)}return t},c.getAdditionalConditionsString=function(e,t){var a=c.getConditionValue,r="";if(t&&(r+=" + Side Total"),e.length>0){var n=!0;e.forEach(function(e){n?(r+=" WHERE ",n=!1):r+=" AND ";var t=(0,T.get)("conditionField.name",e),i=a(e);r+=t+" = "+i})}return r},c.renderConditionCell=function(e){var t=c.getCellContentLink,a=c.getConditionValue,r=c.getAdditionalConditionsString,n=c.fields,i=c.gridProperties,o=c.props.openPopup,l=(0,T.get)("condition",e),s=(0,T.getOr)([],"additionalConditions",l),u=(0,T.get)("conditionField.name",l)||y.default.NOT_SELECTED_COLUMN_VALUE;u+=r(s);var d;return m.default.createElement("div",null,t(u,function(){o(S.default,{gridProperties:i,fields:n,condition:e.condition,onConditionChange:function(t){e.condition=t}})}),(d=a(l))?m.default.createElement("div",{className:"conditional-formatting-value-wrapper"},m.default.createElement("span",{title:d,className:"overflow-text"},d)):null)},c.renderFieldsCell=function(e){var t=c.getCellContentLink,a=c.getAdditionalConditionsString,r=c.fields,n=c.gridProperties,i=c.props.openPopup,o=y.default.NOT_SELECTED_COLUMN_VALUE;return 0!==e.fields.length&&(o=e.fields.map(function(e){if((0,T.isString)(e))return e;var t=(0,T.getOr)([],"additionalConditions",e);return e.name+a(t,e.applyToSideTotal)}).join(", ")),t(o,function(){i(C.default,{gridProperties:n,fields:r,selectedFields:e.fields,onFieldsChange:function(t){e.fields=t}})})},c.renderFormatCell=function(e){var t=c.getCellContentLink,a=c.props.openPopup,r=(0,T.get)("format.type.title",e)||y.default.NOT_SELECTED_COLUMN_VALUE,n=!1,i="";switch((0,T.get)("format.type.value",e)){case w.FONT_COLOR.value:case w.BACKGROUND_COLOR.value:n=!0;case w.ALTERNATIVE_TEXT.value:i=(0,T.get)("format.value",e);break;case w.FONT_FORMAT.value:var o=(0,T.get)("format.value.font.fontFamily",e),l=(0,T.get)("format.value.font.fontSize",e);i=o+" "+l,(0,T.get)("format.value.style.fontBold",e)&&(i+=" Bold"),(0,T.get)("format.value.style.fontItalic",e)&&(i+=" Italic"),(0,T.get)("format.value.style.fontUnderline",e)&&(i+=" Underline")}return m.default.createElement("div",null,t(r,function(){a(b.default,{format:e.format,onFormatChange:function(t){e.format=t}})}),i?n?m.default.createElement("span",{className:"conditional-formatting-color-value",style:{backgroundColor:i}}):n?void 0:m.default.createElement("div",{className:"conditional-formatting-value-wrapper"},m.default.createElement("span",{title:i,className:"overflow-text"},i)):null)},c.renderActionCell=function(e){var t=c.props.localization;return m.default.createElement("div",null,m.default.createElement("a",{onClick:function(){var t=(0,s.default)(e),a=new _.default(JSON.parse(t));c.rules.push(a)}},m.default.createElement("span",{title:t.getText("CONDITIONAL_FORMATTING_LABEL_CLONE_RULE"),className:"icon-copy"})),m.default.createElement("span",null," "),m.default.createElement("a",{onClick:function(){c.rules=(0,T.filter)(function(t){return t.id!=e.id},c.rules)}},m.default.createElement("span",{title:t.getText("CONDITIONAL_FORMATTING_LABEL_DELETE_RULE"),className:"icon-cancel"})))},c}return(0,f.default)(t,e),(0,c.default)(t,[{key:"componentWillMount",value:function(){var e=this.props.value,t=e.reportPartContent,a=e.conditionalFormatting.rules;this.gridProperties=R.default.getGridProperties(t),this.fields=R.default.groupReportPartElements(t),this.rules=a.map(function(e){return new _.default(e)})}},{key:"getValue",value:function(){return{rules:this.rules.filter(function(e){return!e.isEmpty()}).map(function(e){return e.serializeData()})}}},{key:"render",value:function(){var e=this.props.localization,t=this.onAddRuleBtnClick,a=this.rules,r=this.renderConditionCell,n=this.renderFieldsCell,i=this.renderFormatCell,o=this.renderActionCell,s=this.onRuleMove;return m.default.createElement("div",{className:"izenda-ConditionalFormattingSetting"},m.default.createElement(N.default,{className:"form-horizontal"},m.default.createElement(N.default.Row,{className:"form-group"},m.default.createElement(N.default.Col,{className:"u_textRight"},m.default.createElement(A.default,{onClick:t,className:"btn-report-default",label:e.getText("CONDITIONAL_FORMATTING_LABEL_ADD_RULE")}))),m.default.createElement(N.default.Row,{className:"form-group"},m.default.createElement(N.default.Col,null,m.default.createElement(v.Table,{dataSource:a,isLoading:!0,draggableTable:!0,canDrag:(0,T.constant)(!0),canDrop:(0,T.constant)(!0),move:s},m.default.createElement(v.Column,(0,l.default)({},k.condition,{cell:r})),m.default.createElement(v.Column,(0,l.default)({},k.fields,{cell:n})),m.default.createElement(v.Column,(0,l.default)({},k.format,{cell:i})),m.default.createElement(v.Column,(0,l.default)({},k.action,{cell:o})))))))}}]),t}(h.Component),I=n.prototype,D="rules",P=[E.observable],L={enumerable:!0,initializer:null},F={},Object.keys(L).forEach(function(e){F[e]=L[e]}),F.enumerable=!!F.enumerable,F.configurable=!!F.configurable,("value"in F||F.initializer)&&(F.writable=!0),F=P.slice().reverse().reduce(function(e,t){return t(I,D,e)||e},F),M&&void 0!==F.initializer&&(F.value=F.initializer?F.initializer.call(M):void 0,F.initializer=void 0),void 0===F.initializer&&(Object.defineProperty(I,D,F),F=null),i=F,r=n))||r;t.default=B,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=p(a(17)),s=p(a(2)),u=p(a(3)),d=a(5),c=a(1);function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function h(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var m=p(a(166)).default.CONDITION_TYPE,g=(r=function(){function e(t){(0,s.default)(this,e),this.id=null,f(this,"condition",n,this),f(this,"fields",i,this),f(this,"format",o,this),this.id=this.getUniqueId(),t&&this.parseData(t)}return(0,u.default)(e,[{key:"getUniqueId",value:function(){return(0,c.uniqueId)("conditionalFormattingRule_")}},{key:"isEmpty",value:function(){var e,t,a=this.condition,r=this.fields,n=this.format,i=!0;switch((0,c.get)("type",a)){case m.ALL_VALUES.value:case m.BLANK.value:case m.NULL.value:i=!1;break;case m.VALUE.value:i=!(0,c.get)("value",a);break;case m.RANGE_PERCENT.value:case m.RANGE_VALUE.value:var o=(0,c.get)("value.from",a),l=(0,c.get)("value.to",a);i=!(0,c.isNumber)(o)||!(0,c.isNumber)(l)}return e=0===r.length,t=!(0,c.get)("value",n),i&&e&&t}},{key:"serializeData",value:function(){return{condition:this.condition,fields:this.fields,format:this.format}}},{key:"parseData",value:function(e){var t=e.condition,a=e.fields,r=e.format;this.condition=t,this.fields=a,this.format=r}}]),e}(),n=h(r.prototype,"condition",[d.observable],{enumerable:!0,initializer:function(){return null}}),i=h(r.prototype,"fields",[d.observable],{enumerable:!0,initializer:function(){return[]}}),o=h(r.prototype,"format",[d.observable],{enumerable:!0,initializer:function(){return null}}),r);t.default=g,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=S(a(6)),i=S(a(2)),o=S(a(3)),l=S(a(7)),s=S(a(8)),u=a(0),d=S(u),c=a(9),p=S(a(4)),f=S(a(166)),h=a(1),m=S(a(1184)),g=S(a(32)),E=S(a(15)),y=S(a(29)),v=S(a(1185)),T=S(a(1186)),_=S(a(1188));function S(e){return e&&e.__esModule?e:{default:e}}var C=f.default.GRID_STYLES,b=f.default.FIELD_CONTAINER_TYPES,N=(0,c.observer)(r=function(e){function t(e){(0,i.default)(this,t);var a=(0,l.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return a.condition=null,a.gridProperties=null,a.fields=[],a.setGridProperties=function(){var e=a.props.gridProperties;a.gridProperties=e},a.setFields=function(){var e=a.props.fields;a.fields=e},a.setCondition=function(){var e=a.props.condition;a.condition=new m.default(e)},a.renderFieldRow=function(){var e=a.condition,t=a.fields.simpleFields,r=a.props.localization;return d.default.createElement(E.default.Row,null,d.default.createElement(E.default.Col,{className:"u_controlHeight",cols:3},r.getText("CONDITIONAL_FORMATTING_LABEL_CONDITION_FIELD")),d.default.createElement(E.default.Col,{cols:9},d.default.createElement(y.default,{value:e.conditionField.name,onChange:function(t){e.setField(t)},options:t,valueField:"name",labelField:"name",additionalValueField:"value"})))},a.renderAdditionalLinkRow=function(){var e=a.props,t=e.localization,r=e.openPopup,n=a.condition,i=a.fields,o=a.gridProperties.gridStyle,l=(0,h.getOr)("","conditionField.containerType",n);if(o!==C.PIVOT||l!==b.VALUE)return null;var s=function(e){n.additionalConditions=e};return d.default.createElement(E.default.Row,null,d.default.createElement(E.default.Col,{className:"u_textRight"},d.default.createElement("a",{onClick:function(){r(v.default,{additionalConditions:n.additionalConditions,additionalFields:i.additionalFields,onAdditionalConditionsChange:s})}},d.default.createElement("span",{className:"u_textUnderline"},t.getText("CONDITIONAL_FORMATTING_LABEL_MORE")))))},a.setGridProperties(),a.setFields(),a.setCondition(),a}return(0,s.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this.props,t=e.localization,a=e.onReject,r=e.onAccept,n=e.onConditionChange,i=this.condition,o=this.renderFieldRow,l=this.renderAdditionalLinkRow;return d.default.createElement(g.default,{visible:!0,onClosing:function(e,t){if("accept"===t){var o=i.serializeData();n(o),r()}else a()},autoClose:!1,type:"none",sizeClass:"modal-sm"},d.default.createElement(g.default.Header,{title:t.getText("CONDITIONAL_FORMATTING_CONDITION_POPUP_TITLE")}),d.default.createElement(g.default.Body,null,d.default.createElement("div",{className:"izenda-ConditionalFormattingCondititon"},d.default.createElement(E.default,null,o(),l(),d.default.createElement(T.default,{condition:i,localization:t}),d.default.createElement(_.default,{condition:i,localization:t})))),d.default.createElement(g.default.Footer,null,d.default.createElement(g.default.ConfirmationButton,{type:"accept"},t.getText("COMMON_LABEL_OK")),d.default.createElement(g.default.ConfirmationButton,{type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))}}]),t}(u.Component))||r,A=(0,p.default)()(N);A.displayName="ConditionalFormattingConditionPopup",t.default=A,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=C(a(6)),i=C(a(2)),o=C(a(3)),l=C(a(7)),s=C(a(8)),u=a(0),d=C(u),c=a(9),p=C(a(4)),f=a(1),h=C(a(32)),m=C(a(15)),g=C(a(26)),E=C(a(147)),y=C(a(57)),v=C(a(30)),T=C(a(2178)),_=C(a(1185)),S=C(a(166));function C(e){return e&&e.__esModule?e:{default:e}}var b=S.default.GRID_STYLES,N=S.default.FIELD_CONTAINER_TYPES,A=(0,c.observer)(r=function(e){function t(e){(0,i.default)(this,t);var a=(0,l.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return a.fields=[],a.setFields=function(){var e=a.props,t=e.gridProperties.gridStyle,r=e.fields.simpleFields,n=e.selectedFields;r.forEach(function(e){var r=t===b.PIVOT&&e.value.containerType===N.VALUE,i=(0,f.find)(function(t){return(0,f.isString)(t)?t===e.name:t.name===e.name},n);i=i?new T.default(i,!0,r):new T.default(e.name,!1,r),a.fields.push(i)})},a.getSelectedFields=function(){return a.fields.filter(function(e){return e.isSelected}).map(function(e){return e.serializeData()})},a.selectDeselectAll=function(e){a.fields.forEach(function(t){t.isSelected=e})},a.renderField=function(e,t){var r=a.props,n=r.localization,i=r.fields.additionalFields,o=r.openPopup,l=function(t){e.additionalConditions=t};return d.default.createElement(m.default.Row,{key:t},d.default.createElement(m.default.Col,{cols:8},d.default.createElement(y.default,null,d.default.createElement(E.default,{value:e.isSelected,type:"checkbox",onChange:function(t){e.isSelected=t.value}}),e.name)),d.default.createElement(m.default.Col,{cols:4,className:"u_textRight"},e.hasAdditionalConditions&&d.default.createElement("a",{onClick:function(){o(_.default,{isAdditionalConditionsForField:!0,field:e,additionalConditions:e.additionalConditions,additionalFields:i,onAdditionalConditionsChange:l})}},d.default.createElement("span",{className:"u_textUnderline"},n.getText("CONDITIONAL_FORMATTING_LABEL_MORE")))))},a.setFields(),a}return(0,s.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this.selectDeselectAll,t=this.renderField,a=this.fields,r=this.getSelectedFields,n=this.props,i=n.localization,o=n.onReject,l=n.onAccept,s=n.onFieldsChange;return d.default.createElement(h.default,{visible:!0,onClosing:function(e,t){"accept"===t?(s(r()),l()):o()},autoClose:!1,type:"none",sizeClass:"modal-sm"},d.default.createElement(h.default.Header,{title:i.getText("CONDITIONAL_FORMATTING_FIELDS_POPUP_TITLE")}),d.default.createElement(h.default.Body,null,d.default.createElement("div",{className:"izenda-ConditionalFormattingFields"},d.default.createElement(m.default,null,d.default.createElement(m.default.Row,null,d.default.createElement(m.default.Col,null,d.default.createElement(v.default,{onClick:function(){e(!0)},className:"btn-report-default set-apart-btn",label:i.getText("CONDITIONAL_FORMATTING_LABEL_SELECT_ALL_FIELDS")}),d.default.createElement(v.default,{onClick:function(){e(!1)},className:"btn-report-default",label:i.getText("CONDITIONAL_FORMATTING_LABEL_RESET_ALL_FIELDS")})))),d.default.createElement("div",{style:{height:"150px",marginTop:"15px"}},d.default.createElement(g.default,{fullWidth:!0},d.default.createElement(m.default,null,a.map(t)))))),d.default.createElement(h.default.Footer,null,d.default.createElement(h.default.ConfirmationButton,{type:"accept"},i.getText("COMMON_LABEL_OK")),d.default.createElement(h.default.ConfirmationButton,{type:"cancel"},i.getText("COMMON_LABEL_CANCEL"))))}}]),t}(u.Component))||r,R=(0,p.default)()(A);R.displayName="ConditionalFormattingFieldsPopup",t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s=p(a(17)),u=p(a(2)),d=a(5),c=a(1);function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t,a,r){a&&(0,s.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function h(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var m=(o=function e(t,a,r){(0,u.default)(this,e),l.call(this),this.isSelected=a,this.hasAdditionalConditions=r,t&&this.parseData(t)},l=function(){var e=this;f(this,"isSelected",n,this),f(this,"applyToSideTotal",i,this),this.name="",this.hasAdditionalConditions=!1,this.additionalConditions=[],this.parseData=function(t){(0,c.isString)(t)?e.name=t:(e.name=t.name,e.applyToSideTotal=t.applyToSideTotal,e.additionalConditions=t.additionalConditions)},this.serializeData=function(){return{name:e.name,applyToSideTotal:e.applyToSideTotal,additionalConditions:e.additionalConditions}}},n=h((r=o).prototype,"isSelected",[d.observable],{enumerable:!0,initializer:null}),i=h(r.prototype,"applyToSideTotal",[d.observable],{enumerable:!0,initializer:function(){return!1}}),r);t.default=m,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=S(a(6)),i=S(a(2)),o=S(a(3)),l=S(a(7)),s=S(a(8)),u=a(0),d=S(u),c=a(9),p=a(1),f=S(a(32)),h=S(a(15)),m=S(a(29)),g=S(a(147)),E=S(a(183)),y=S(a(213)),v=S(a(2180)),T=S(a(4)),_=S(a(166));function S(e){return e&&e.__esModule?e:{default:e}}var C=_.default.FORMAT_TYPE,b=_.default.INPUT_DATA_TYPE,N=(0,c.observer)(r=function(e){function t(e){(0,i.default)(this,t);var a=(0,l.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e)),r=e.format;return a.format=new v.default(r),a}return(0,s.default)(t,e),(0,o.default)(t,[{key:"renderFormatTypeRow",value:function(e,t){var a=[];a.push(C.BACKGROUND_COLOR),a.push(C.FONT_COLOR),a.push(C.FONT_FORMAT),a.push(C.ALTERNATIVE_TEXT);return d.default.createElement(h.default.Row,null,d.default.createElement(h.default.Col,{className:"u_controlHeight",cols:3},t.getText("CONDITIONAL_FORMATTING_LABEL_FORMAT_TYPE")),d.default.createElement(h.default.Col,{cols:9},d.default.createElement(m.default,{value:e.type.value,options:a,onChange:function(t){e.setFormatType(t)},valueField:"value",labelField:"title"})))}},{key:"renderFormatValueRow",value:function(e,t){var a=(0,p.getOr)("","type.value",e);if(""!==a){var r=function(t){e.value=t.value};return d.default.createElement(h.default.Row,null,d.default.createElement(h.default.Col,{className:"u_controlHeight",cols:3},t.getText("CONDITIONAL_FORMATTING_LABEL_FORMAT_VALUE")),d.default.createElement(h.default.Col,{cols:9},a===C.BACKGROUND_COLOR.value&&d.default.createElement(g.default,{value:e.value,onChange:r,type:b.COLOR}),a==C.FONT_COLOR.value&&d.default.createElement(g.default,{value:e.value,onChange:r,type:b.COLOR}),a==C.ALTERNATIVE_TEXT.value&&d.default.createElement(g.default,{value:e.value,onChange:r,type:b.TEXT}),a==C.FONT_FORMAT.value&&d.default.createElement("div",null,d.default.createElement("div",{style:{marginBottom:"10px"}},d.default.createElement(E.default,{onChange:function(t){e.value.font=t.value},value:e.value.font})),d.default.createElement("div",null,d.default.createElement(y.default,{onChange:function(t){e.value.style=t.value},value:e.value.style})))))}}},{key:"render",value:function(){var e=this.renderFormatTypeRow,t=this.renderFormatValueRow,a=this.format,r=this.props,n=r.localization,i=r.onReject,o=r.onAccept,l=r.onFormatChange;return d.default.createElement(f.default,{visible:!0,onClosing:function(e,t){if("accept"===t){var r=a.serializeData();l(r),o()}else i()},autoClose:!1,type:"none",sizeClass:"modal-sm"},d.default.createElement(f.default.Header,{title:n.getText("CONDITIONAL_FORMATTING_FORMAT_POPUP_TITLE")}),d.default.createElement(f.default.Body,null,d.default.createElement("div",{className:"izenda-ConditionalFormattingFormat"},d.default.createElement(h.default,null,e(a,n),t(a,n)))),d.default.createElement(f.default.Footer,null,d.default.createElement(f.default.ConfirmationButton,{type:"accept"},n.getText("COMMON_LABEL_OK")),d.default.createElement(f.default.ConfirmationButton,{type:"cancel"},n.getText("COMMON_LABEL_CANCEL"))))}}]),t}(u.Component))||r,A=(0,T.default)()(N);A.displayName="ConditionalFormattingFormatPopup",t.default=A,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=c(a(17)),l=c(a(2)),s=c(a(3)),u=a(5),d=a(1);function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function f(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var h=c(a(166)).default.FORMAT_TYPE,m=(r=function(){function e(t){(0,l.default)(this,e),p(this,"type",n,this),p(this,"value",i,this),t&&this.parseData(t),this.setDefaultFormatValueIfEmpty()}return(0,s.default)(e,[{key:"setFormatType",value:function(e){this.type={value:e.value,title:e.label},this.value=null,this.setDefaultFormatValueIfEmpty()}},{key:"parseData",value:function(e){e=(0,d.cloneDeep)(e),this.type=e.type,this.value=e.value}},{key:"setDefaultFormatValueIfEmpty",value:function(){var e=this.type.value,t=this.value;if(e===h.FONT_FORMAT.value){var a=(0,d.get)("font.fontFamily",t),r=(0,d.get)("font.fontSize",t),n=!!(0,d.get)("style.fontBold",t),i=!!(0,d.get)("style.fontItalic",t),o=!!(0,d.get)("style.fontUnderline",t);this.value={font:{fontFamily:(0,d.isNil)(a)?"Roboto":a,fontSize:(0,d.isNil)(r)?14:r},style:{fontBold:n,fontItalic:i,fontUnderline:o}}}else{if(!(0,d.isNil)(t))return;switch(e){case h.FONT_COLOR.value:this.value="#000";break;case h.BACKGROUND_COLOR.value:this.value="#fff"}}}},{key:"serializeData",value:function(){return{type:this.type,value:this.value}}}]),e}(),n=f(r.prototype,"type",[u.observable],{enumerable:!0,initializer:function(){return{title:"",value:""}}}),i=f(r.prototype,"value",[u.observable],{enumerable:!0,initializer:function(){return null}}),r);t.default=m,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,a,o){var s=r.default.apply(null,arguments),u=o.fieldContainerDetails,d=t.configReportPart.reportPartContent,c=s.mappingSource,p=i.forEach.convert({cap:!1});return c.isHiddenSubTotal=function(){return(0,i.get)([d.gridStyle,(0,i.getOr)("","name",u),"hideSubTotal"].join("."),n.default.FIELD_PROPERTY_CONFIG)},c.isSeparator=function(){return(0,i.get)("name",u)===n.default.CONTAINER_NAME.SEPARATORS},c.isVerticalHeaderHidden=function(){return(0,i.get)("name",u)!==n.default.CONTAINER_NAME.COLUMNS||d.gridStyle!==n.default.GRID_STYLES.PIVOT.value},p(function(e,t){(function(e){return(0,i.get)([d.gridStyle,(0,i.getOr)("","name",u),e].join("."),n.default.FIELD_PROPERTY_CONFIG)})(t)&&(s.definedSchema=(0,i.reduce)((0,i.rearg)([1,0],i.unset),s.definedSchema,e))},l),s};var r=o(a(267)),n=o(a(99)),i=a(1);function o(e){return e&&e.__esModule?e:{default:e}}var l={hideConflitHeaderFormating:["fields.headerFormating.fields.fontFormat","fields.headerFormating.fields.fontStyle","fields.headerFormating.fields.alignment","fields.headerFormating.fields.verticalAlignment","fields.headerFormating.fields.columnGroup"],hideColumnGroup:["fields.headerFormating.fields.columnGroup"],hideAllHeaderFormating:["fields.headerFormating"]};e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,l=D(a(14)),s=D(a(6)),u=D(a(2)),d=D(a(3)),c=D(a(7)),p=D(a(8)),f=D(a(4)),h=a(0),m=D(h),g=a(9),E=a(5),y=D(a(10)),v=D(a(392)),T=a(91),_=D(a(241)),S=D(a(2183)),C=D(a(61)),b=D(a(389)),N=D(a(16)),A=D(a(94)),R=D(a(33)),O=D(a(507)),I=a(1);function D(e){return e&&e.__esModule?e:{default:e}}var P=C.default.REPORT_PART_MODE,L=(0,g.observer)(n=function(e){function t(){return(0,u.default)(this,t),(0,c.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentWillReceiveProps",value:function(e){e.isReloadData&&e.reloadData()}},{key:"render",value:function(){return m.default.createElement(v.default,this.props)}}]),t}(h.Component))||n,M=(0,g.observer)(i=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return a.saveCurrentReportState=function(e){a.activePointOptionByView=e.activePointOption,a.isBeingBuildByView=e.isBeingBuild,a.previousMapType=e.chartType},a.updateDrillComponent=function(){(0,I.getOr)({},"reportPart",a.props).onDrilldown=a.onDrilldown},a.reloadData=function(){var e=a.props,t=e.printingMode,r=e.publishDrillInfo,n=e.store,i=e.needUpdatePreview,o=a.props.reportPart||{},l=o.reportPartContent;return r&&r(o.id,o.reportPartContent.getCrossFilteringInfo()),i(o,(0,I.invoke)("getDrilldownInfo",l),null,null,t).then(function(){n&&n.loadReportPartDataByCrossFiltering(o.id)})},a.onDrilldown=(0,E.action)(function(e){var t=a.props,n=t.reportBody,i=t.publishDrillInfo,o=t.store,l=a.props.reportPart||{},s=l.reportPartContent;if(!(0,I.flow)((0,I.get)("point"),I.isNil)(e)){var u=(0,I.get)("point.nameField.field.name",e);r.extend(!0,e.point.drillingDownField,{reportPartElm:(0,I.find)(function(e){return(0,I.get)("field.fieldNameAlias",e)==u},l.fieldCollection)})}if(s.updateDrilldownInfo(e),s.isCrossFiltering){var d={filters:[],expandedLevel:0},c=s.getPoints();(0,I.isEmpty)(e)||(0,I.isEmpty)(c)||(d.expandedLevel=1,(0,I.forEach)(function(e){var t=(0,I.get)("point.nameField.field.name",e);!(0,I.isEmpty)(e.mapInfo.backgroundMap.value)&&t&&d.filters.push({key:t,value:e.value,field:(0,I.get)("point.drillingDownField",e)})},c)),n&&n.updateCrossFiltering(l,d),i&&i(l.id,l.reportPartContent.getCrossFilteringInfo()),s.isCrossFiltering&&o&&o.loadReportPartDataByCrossFiltering(l.id)}}),a.checkReloadData=function(){var e=(a.props.reportPart||{}).reportPartContent,t=e.isBeingBuild,r=a.isBeingBuildByView,n=a.previousMapType!==e.chartType;if(!t||!r)return!1;a.previousMapType=e.chartType;var i=e.activePointOption||{};return(a.activePointOptionByView||{}).field.fieldNameAlias!==i.field.fieldNameAlias||n},a.updateShownRecords=function(e){a.setState({shownRecords:e})},a.saveCurrentReportState((0,I.getOr)({},"reportPart.reportPartContent",e)),a.state={shownRecords:[]},a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){this.updateDrillComponent()}},{key:"shouldComponentUpdate",value:function(e,t){return!(0,I.isEqual)(this.props,e)||!(0,I.isEqual)(this.state,t)}},{key:"componentDidUpdate",value:function(){this.updateDrillComponent()}},{key:"getChartProperties",value:function(e){var t=e.printingMode,a=e.pointAction,r=e.reportPart||{},n=r.reportPartContent,i=n.getMapOptions()||{};return i=(0,I.merge)(i,{colors:r.getThemeColors(i),commonOptions:{},commonActions:{onDrilldown:this.onDrilldown,pointAction:a},changeZoomLevel:function(e){return n.changeZoomLevel(e)},changeCenterPoint:function(e){return n.changeCenterPoint(e)}}),t&&(i.commonOptions=(0,I.merge)(i.commonOptions,{izendaOptions:{printingMode:t}})),i}},{key:"render",value:function(){var e=this.props,t=e.printingMode,a=e.refreshData,r=e.isPreview,n=e.style,i=e.finishedRender,o=e.fulfilledData,l=e.hideGridPopup,s=this.props.reportPart||{},u=s.reportPartContent,d=this.getChartProperties(this.props)||{},c=u.type,p=this.checkReloadData(u);this.saveCurrentReportState(u);var f=u.isBeingBuild&&(0,T.parser)(u.activeElmsByContainers,u.expandedLevel,{fieldsMapping:s.previewDataFieldsMapping,records:s.previewDataRecords,rawData:s.previewData,cities:s.cities,addressCodes:s.addressCodes,countryCodes:s.countryCodes,postalCodes:s.postalCodes,stateCodes:s.stateCodes,countyCodes:s.countyCodes});return a&&a(!0),R.default.needToRenderLazyLoadingBar(s,t)?R.default.renderLazyLoadingBar():m.default.createElement(L,{type:c,vizEngine:u.vizEngine,reportPart:s,isReloadData:p,reloadData:this.reloadData,isPreview:r,chartType:d.chartType,chartOptions:d,seriesOptions:s.fieldCollection,printingMode:t,finishedRender:i,fulfilledData:o,isLoading:s.isLoadingData,style:t&&n?n:{},chartData:f,updateShownRecords:this.updateShownRecords},!t&&m.default.createElement(S.default,{hideGridPopup:l,reportPart:s,onDrillDown:this.onDrilldown,shownRecords:this.state.shownRecords}))}}]),t}(h.Component))||i,F=(0,f.default)()(o=function(e){function t(){return(0,u.default)(this,t),(0,c.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){!N.default.isMapDataAvailable&&b.default.getProvisioningStatus()}},{key:"shouldComponentUpdate",value:function(e){return!(0,I.isEqual)(this.props,e)}},{key:"render",value:function(){var e=this.props,t=e.hideTitle,a=e.width,r=e.printingMode,n=this.props.reportPart||{},i=this.props.style||{},o=N.default.isMapDataAvailable,s=(0,y.default)({"report-part-gauge-front-side":!0,"izenda-ReportPartMap_frontSide":!0,"izenda-ReportPart-smallSize":a-1?E=!0:n.default.ValuesContainers.indexOf(g)>-1&&(y=!0);var v=i.default.apply(null,arguments),T=(v.mappingSource,v.mappingProps);return T.stypeOptions=(0,s.remove)({value:"embedded"},T.stypeOptions),v.definedSchema=function(e){var t=e,a=[];E?a=c:y&&(a=p);return a.forEach(function(e){t=(0,s.set)([e,"isHidden"].join("."),!0,t)}),t}(v.definedSchema),function(e){var t=(0,s.get)("fields.dataFormattings.fields.color",e);if(!t)return;var n={showTextColor:E,showCellColor:E||y};r.extend(!0,t,{staticProps:{cellComponent:E?o.default:l.default,configReportPart:h,configField:f,reportPartContent:m,containerName:g,fieldStore:a,maxColor:"rgb(217,228,251)",minColor:"rgb(79,134,189)",useThresholds:!0,canMove:!1}},{props:{showTextColor:n.showTextColor,showCellColor:n.showCellColor,pointOptionList:m.pointOptionsList,isBubbleContainer:g===d.BUBBLE_VALUES}})}(v.definedSchema),v};var n=u(a(85)),i=u(a(267)),o=u(a(473)),l=u(a(2187)),s=a(1);function u(e){return e&&e.__esModule?e:{default:e}}var d=n.default.ContainerName,c=["fields.dataFormattings.fields.fontFormat","fields.dataFormattings.fields.fontStyle","fields.dataFormattings.fields.alignment","fields.dataFormattings.fields.verticalAlignment","fields.dataFormattings.fields.sort","fields.dataFormattings.fields.subTotal","fields.dataFormattings.fields.grandTotal","fields.dataFormattings.fields.width","fields.dataFormattings.fields.columnWordWrap","fields.headerFormating"],p=["fields.dataFormattings.fields.fontFormat","fields.dataFormattings.fields.fontStyle","fields.dataFormattings.fields.alignment","fields.dataFormattings.fields.verticalAlignment","fields.dataFormattings.fields.sort","fields.dataFormattings.fields.subTotal","fields.dataFormattings.fields.grandTotal","fields.dataFormattings.fields.width","fields.dataFormattings.fields.columnWordWrap","fields.dataFormattings.fields.customURL","fields.dataFormattings.fields.embeddedJavascript","fields.headerFormating","fields.drillDown.fields.subReport"];e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=a(20),s=C(a(14)),u=C(a(6)),d=C(a(2)),c=C(a(3)),p=C(a(7)),f=C(a(8)),h=a(0),m=C(h),g=a(5),E=a(9),y=C(a(473)),v=C(a(15)),T=C(a(29)),_=C(a(12)),S=a(1);function C(e){return e&&e.__esModule?e:{default:e}}var b=C(a(211)).default.DATA_TYPE,N=(0,E.observer)((i=n=function(e){function t(e){(0,d.default)(this,t);var a=(0,p.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));o.call(a),a.settingByRangeRef=null;var r=e.pointOptionList||[{}];return a.state={selectedPoint:r[0].pointType},a.initData(),a}return(0,f.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.state.selectedPoint,t=this.settings[e],a=this.props,r=a.isBubbleContainer,n=a.validateMessages,i=a.defaultValue,o=a.pointOptionList,l={settingValue:t,defaultValueType:t.rangeValue?"rangeValue":t.value?"value":"none",dataType:b.NUMERIC,haveName:!0,isHiddenValueOption:r,validateMessages:n,valueProps:{title:_.default.getText("COLOR_SETTING_TOOLTIP"),type:"color",defaultColor:i},selectedPoint:this.state.selectedPoint};return m.default.createElement("div",{className:"izenda-CellColorSettings"},m.default.createElement(v.default,{className:"u_paddingAll"},m.default.createElement(v.default.Row,null,m.default.createElement(v.default.Col,{cols:5,className:"u_controlHeight"},m.default.createElement("span",null,_.default.getText("COLOR_SETTING_POINT_OPTIONS"))),m.default.createElement(v.default.Col,{cols:7},m.default.createElement(T.default,{options:o,onChange:this.handleChangePlotOption,value:e,valueField:"pointType",labelField:function(e){var t=(0,S.get)("pointTypeName",e);return _.default.getText(["REPORT_PART_MAP_POINT",t].join("_"))}})))),m.default.createElement(y.default,(0,s.default)({},this.props,l,{ref:this.setSettingByRangeRef})))}}]),t}(h.Component),n.propTypes={value:m.default.PropTypes.object},n.getDefaultProps={settingValue:{},pointOptionsList:[{}]},o=function(){var e=this;this.getValue=function(){return e.settings[e.state.selectedPoint]=(0,g.toJS)(e.getSettingValue()),e.settings},this.getSettingValue=function(){return e.settingByRangeRef?e.settingByRangeRef.getValue():{}},this.initData=function(){var t=e.props,a=(0,g.toJS)(t.settingValue)||{};t.pointOptionList.map(function(e){return e.pointType}).forEach(function(e){return!a[e]&&(a[e]={})}),e.settings=a},this.beforeClosing=function(t,a){if("cancel"===a)return(0,l.resolve)(!0);var r=e.props;r.configReportPart,r.fieldStore;return(e.settingByRangeRef||{})[(r.popupContentProps||{}).beforeClosing](t,a,!1).then(function(a){return a?t.validate().then(function(t){if(t){var a=e.getSettingValue();return a&&a.value&&(0,S.forEach)(function(e){delete e.functions,delete e.functionData},a.value),e.settings[e.state.selectedPoint]=a,(0,l.resolve)(!0)}return(0,l.reject)(!1)}):(0,l.reject)(!1)})},this.setSettingByRangeRef=function(t){e.settingByRangeRef=t},this.handleChangePlotOption=function(t,a){e.setState({selectedPoint:a.pointType})}},r=i))||r;t.default=N,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=R(a(700)),l=R(a(14)),s=R(a(6)),u=R(a(2)),d=R(a(3)),c=R(a(7)),p=R(a(8)),f=a(0),h=R(f),m=a(9),g=a(5),E=R(a(2192)),y=a(136),v=a(61),T=R(a(4)),_=R(a(315)),S=R(a(311)),C=R(a(94)),b=R(a(1190)),N=R(a(241)),A=R(a(2200));function R(e){return e&&e.__esModule?e:{default:e}}var O=[{name:"tileProps",getDefinedSchema:b.default}];function I(e){return{id:e.id,x:e.left,y:e.top,width:e.width,height:e.height,isFullSize:!1,autoSize:e.autoSize,isLoading:!1}}var D=(0,T.default)()((n=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));i.call(a);var r=e.reportPart.reportPartContent;return a.layoutStore=new E.default({numRows:r.getReportPartProperties("numRows"),numCols:r.getReportPartProperties("numCols"),cellSize:r.getReportPartProperties("cellSize")}),a.checkUpdateTransparent(),a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.updateGridDimensionsAutoRun=(0,g.autorun)(function(){var t=e.props.reportPart.reportPartContent,a=t.getReportPartProperties("numRows"),r=t.getReportPartProperties("numCols");t.needUpdateLayoutStore?(e.layoutStore.updateGridDimensions({numRows:a,numCols:r,cellSize:t.getReportPartProperties("cellSize")}),t.setNeedUpdateLayoutStore(!1)):e.layoutStore.rows===a&&e.layoutStore.cols===r||e.layoutStore.updateGridDimensions({numRows:a,numCols:r}),t.reportWidth===e.layoutStore.width&&t.reportHeight===e.layoutStore.height||t.setDimensions(e.layoutStore.width,e.layoutStore.height)}),this.props.reportPart.reportPartContent.checkAdditionalGridDimensions(this.layoutStore.maxItemRows,this.layoutStore.maxItemCols)}},{key:"componentDidUpdate",value:function(){this.checkUpdateTransparent()}},{key:"checkUpdateTransparent",value:function(){var e=this.props.reportPart.reportPartContent.getReportPartProperties("backgroundImage");!this.layoutStore.transparent&&e.dataUrl?this.layoutStore.setTransparent(!0):this.layoutStore.transparent&&!e.dataUrl&&this.layoutStore.setTransparent(!1)}},{key:"componentWillUnmount",value:function(){this.updateGridDimensionsAutoRun()}},{key:"render",value:function(){var e=this.props,t=e.hideTitle,a=e.reportPart,r=e.reportPart,n=(r.isLoadingData,r.reportPartContent),i=e.printingMode,o=n.gridData.map(I),s={backgroundImage:"url("+n.getReportPartProperties("backgroundImage").dataUrl+")",backgroundRepeat:"no-repeat",width:this.layoutStore.width+"px"},u=(0,l.default)({},i?C.default.getReportPartContainerStyle(this.props):{}),d=i?"report-part-chart-front-side":"";return h.default.createElement("div",{className:d+" iz-kpi izenda-KPIFrontSide",style:u},!t&&h.default.createElement(N.default,{mode:v.REPORT_PART_MODE.PREVIEW,reportPart:a,reportPartContent:n}),h.default.createElement("div",{style:s},h.default.createElement(S.default,{allowShowHorizontalScroll:!0,allowAddInline:this.props.isPreview,gridItemMenu:this.renderGridItemMenu(),layoutStore:this.layoutStore,layoutData:o,editable:this.props.isPreview,showLoading:!0,printingMode:!1,onAddItem:this.updateActiveGridItem,onUpdateItemPositions:this.updateItemPositions},this.renderGridItems())))}}]),t}(f.Component),i=function(){var e=this;this.updateActiveGridItem=function(t){e.layoutStore.setActiveGridItem(t)},this.addNewGridItem=function(t){e.props.reportPart.reportPartContent.addGridData(t,e.layoutStore.activeGridItem,!0)},this.updateItemPositions=function(t){var a=e.props.reportPart.reportPartContent;t.map(function(e){a.updateGridDataPosition(e)}),a.checkAdditionalGridDimensions(e.layoutStore.maxItemRows,e.layoutStore.maxItemCols)},this.setActive=function(t){e.props.reportPart.reportPartContent.setActiveTile(t)},this.renderGridItemMenu=function(){var t=e.props.reportPart.reportPartContent,a=(0,o.default)(y.TileTypes);return t.hasMetricTile&&(a=a.filter(function(e){return e.id!==y.TileTypes.metric.id})),h.default.createElement("div",{className:"grid-item-menu"},a.map(function(t,a){return h.default.createElement("button",{className:"btn grid-item-menu__btn",key:a,onClick:e.addNewGridItem.bind(e,t.id)},t.menuLabel)}))},this.renderGridItems=function(){return e.props.reportPart.reportPartContent.gridData.map(function(t){return h.default.createElement(_.default,{key:t.id,id:t.id,isDraggable:!0,isResizable:!0,handle:"."+y.draggableClass,isKPILayout:e.layoutStore.isKPILayout},h.default.createElement(A.default,(0,l.default)({propsEditors:O,tile:t},e.props)))})}},r=n))||r;D.propTypes={reportPart:m.PropTypes.observableObject},t.default=D,e.exports=t.default},,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=g(a(17)),s=g(a(23)),u=g(a(6)),d=g(a(2)),c=g(a(3)),p=g(a(7)),f=g(a(8)),h=a(5),m=(a(1),g(a(118)));function g(e){return e&&e.__esModule?e:{default:e}}function E(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function y(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var v=(r=function(e){function t(e){var a=e.numRows,r=e.numCols,l=e.cellSize;(0,d.default)(this,t);var s=m.default.GRID_ROWS_COLUMNS,c=m.default.ROW_HEIGHT,f=l&&r?l*r:c*s,h=(0,p.default)(this,(t.__proto__||(0,u.default)(t)).call(this,l||c,l||c,f,r||s,a||s,!1,!1,!1,!1));return E(h,"activeGridItem",n,h),E(h,"transparent",i,h),E(h,"rows",o,h),h.isKPILayout=!0,h}return(0,f.default)(t,e),(0,c.default)(t,[{key:"setTransparent",value:function(e){this.transparent=e}},{key:"setActiveGridItem",value:function(e){this.activeGridItem=e}},{key:"updateGridDimensions",value:function(e){var t=e.numRows,a=e.numCols,r=e.cellSize;this.rows=t||this.rows,this.cols=a||this.cols,this.cellWidth=r||this.cellWidth,this.cellHeight=r||this.cellHeight,this.setViewWidth(this.cellWidth*this.cols),this.recalculateLayoutPosition(),this.resetOverlayPosition()}}]),t}(g(a(510)).default),n=y(r.prototype,"activeGridItem",[h.observable],{enumerable:!0,initializer:function(){return null}}),i=y(r.prototype,"transparent",[h.observable],{enumerable:!0,initializer:function(){return!1}}),o=y(r.prototype,"rows",[h.observable],{enumerable:!0,initializer:null}),y(r.prototype,"setTransparent",[h.action],(0,s.default)(r.prototype,"setTransparent"),r.prototype),y(r.prototype,"setActiveGridItem",[h.action],(0,s.default)(r.prototype,"setActiveGridItem"),r.prototype),y(r.prototype,"updateGridDimensions",[h.action],(0,s.default)(r.prototype,"updateGridDimensions"),r.prototype),r);t.default=v,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=.33,r=a(1),n=r.clone,i=r.findIndex,o=r.find,l=r.filter,s=r.placeholder;function u(e,t){return e.id!==t.id&&(!(e.left+e.width<=t.left)&&(!(e.left>=t.left+t.width)&&(!(e.top+e.height<=t.top)&&!(e.top>=t.top+t.height))))}function d(e,t){var a;for(t.left=Math.min(s(e).map(function(e){return e.left+e.width}).max()||0,t.left);t.left>0&&!c(e,t);)t.left--;for(;a=c(e,t);)t.left=a.left+a.width;return t}function c(e,t){return o(function(e){return u(t,e)},e)}function p(e,a,r,n){if(a.left===r.left&&a.top===r.top&&a.width===r.width&&a.height===r.height)return e;var i=a.left>r.left&&a.width!==r.width;a.left=r.left,a.top=r.top,a.width=r.width,a.height=r.height,a.moved=!0;var o=h(e);i&&Array.isArray(o)&&o.reverse();for(var s=function(e,t){return l(function(e){return u(t,e)},e)}(o,a),d=0,c=s.length;dp.left&&a.left-p.left>p.width*t||(e=f(e,a,p,n)))}return e}function f(e,t,a,r){if(r){var n={left:a.left,top:a.top,width:a.width,height:a.height,id:-1};if(n.left=Math.max(t.left-a.width,0),!c(e,n))return p(e,a,n)}return p(e,a,{left:a.left+1,top:a.top,width:a.width,height:a.height})}function h(e){return[].concat(e).sort(function(e,t){return e.left>t.left||e.left===t.left&&e.top>t.top?1:-1})}e.exports={compact:function(e){for(var t=h(e),a=Array(e.length),r=[],o=0,l=t.length;o1?e.imageDimensions.imageHeight:"100px",width:e.imageDimensions&&e.imageDimensions.imageWidth>1?e.imageDimensions.imageWidth:"auto"};if("image"===e.type){var a=t.imageUrl;if(a&&a.indexOf("\\\\")>=0)t.imageUrl="";else if(!m("http",a)){var r=window.location.origin;a=g(/\\/g,"/",a);var n=m("/",a)?a:"/"+a;t.imageUrl=""+r+n}}return t}(f),_={};s&&T.imageUrl&&f.imageDimensions.imageHeight>1&&(_={height:"auto"});var S=s?u.getStyle(T):{},C=u.getBackgroundStyle(f),b=u.getLineStyle(f,s);return r.createElement("div",{onMouseDown:function(){var t=e.onClick;return t&&t(e).then(function(e){e&&a.updateFormatItem&&a.updateFormatItem(f,o.name)})},className:v,style:_,draggable:"true"},r.createElement("div",{className:y,style:S},function(){var a={presence:{presence:!0,message:p.getText("REPORTDESIGNER_MESSAGE_ITEM_NAME_REQUIRED")}},i=function(t){var a=o&&o.checkExistingFormatItemName&&o.checkExistingFormatItemName(t),r=o.name;if(a){var n=h(function(e){return e.value===r}.bind(this),d.FORMAT_GROUP)||{},i=n.label,l=String.format(d.MESSAGES.M01,i);e.validationManager.updateErrors([{key:f.id,messages:[l]}])}return a},l=f.value;e.replaceSystemVariable&&(l=e.replaceSystemVariable(t,f));switch(f.type){case c.image.value:return s?r.createElement("div",{className:"image u_block full-height"}):r.createElement("div",{className:"image"},r.createElement("span",{className:"icon-img"}),r.createElement("span",null,f.name));case c.text.value:case c.dateTime.value:return s?r.createElement("span",{style:C},l):r.createElement(n,{className:"form-control",value:f.name,onChange:N,validations:a,field:f.id,onValidate:i.bind(this)});case c.pageNumber.value:return s?r.createElement("span",{style:C,className:"page-number"}):r.createElement(n,{className:"form-control",value:f.name,onChange:N,validations:a,field:f.id,onValidate:i.bind(this)});case c.horizontalRule.value:return r.createElement("div",{className:"horizontal-rule",style:b});case c.thinHorizontalRule.value:return r.createElement("div",{className:"thin-horizontal-rule",style:b});case c.verticalRule.value:return r.createElement("div",{className:"vertical-rule",style:b})}}()),s?null:r.createElement("a",{className:y},r.createElement("span",{onClick:function(){l.splice(l.indexOf(f),1),a.selectedFormatItem.id===f.id&&a.setSelectedFormatItem({})},className:"icon-cancel"})));function N(e){f.updateValueByKey("name",e.value)}})).displayName="ReportFormatItem",E=s.wrapper(E),e.exports=o()(E)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(0),n=a(475),i=a(29),o=a(118),l=a(24),s=a(10),u=a(12),d=r.createClass({displayName:"AddItemPopupContent",getInitialState:function(){return{selectValue:o.HEADER_FOOTER.items[0].value}},onChangeSelectItem:function(e){this.setState({selectValue:e})},getValue:function(){return this.state.selectValue},render:function(){return r.createElement("div",{className:"add-item-popup-content"},r.createElement("span",null,"To add an item, select a type:"),r.createElement(i,{className:"selection-item",options:o.HEADER_FOOTER.items,valueField:"value",labelField:"label",onChange:l.notifyChange(this.onChangeSelectItem,l.DROPDOWN),value:this.state.selectValue}))}}),c=r.createClass({displayName:"AddItemPopup",propTypes:{onChange:r.PropTypes.func.isRequired},onChange:function(e){this.props.onChange&&this.props.onChange(e)},render:function(){var e=s("add-format-item",this.props.className);return r.createElement(n,{containerClassName:e,className:"btn btn-primary",label:u.getText("REPORTDESIGNER_LABEL_ADD_ITEM"),onChange:this.onChange,popupProps:{type:"none",autoClose:!0,sizeClass:"modal-sm"},popupTitle:u.getText("REPORTDESIGNER_LABEL_ADD_ITEM"),popupContent:d})}}),e.exports=c},function(e,t,a){"use strict";!function(){a(9).observer;var t=a(0),r=a(4),n=a(93),i=a(29),o=a(280),l=a(215),s=a(118),u=a(2209),d=a(24),c=(a(10),a(1).get),p=["fields.generalInfo.fields","fields.itemFormat.fields"],f=t.createClass({displayName:"FormatItemPropsContainer",propTypes:{reportDesignerModel:t.PropTypes.object.isRequired,fieldStore:t.PropTypes.object.isRequired},render:function(){d.notifyChange;var e=this.props,a=(e.reportDesignerModel||{}).reportFields||{},r=a.selectedFormatItem||{};e.fieldStore;return t.createElement("section",{className:"form-horizontal field-props-container"},t.createElement("strong",{className:"title-group"},"FORMAT PROPERTIES"),t.createElement(n,{className:"report-parts-ctrl"},t.createElement(i,{blankOption:!0,options:s.FORMAT_GROUP,valueField:"value",labelField:"label",value:a.selectedFormatGroup,onChange:this.onChangeFormat}),t.createElement(i,{blankOption:!0,key:"reportFields",valueField:"id",labelField:"name",value:r.id,options:a.getFormatItems()||[],onChange:function(e,t){t=t||{},a.updateFormatItem&&a.updateFormatItem(t,a.selectedFormatGroup)}.bind(this)})),function(){var a=e.reportDesignerModel,n=u(a,r,e.validation),i=!c("id",r);return i&&(s=n,l.removeProps(s,p)),t.createElement("fieldset",{disabled:i},t.createElement(o,{propertyConfig:n}));var s}())},onChangeFormat:function(e){((this.props.reportDesignerModel||{}).reportFields||{}).updateFormatGroup(c("value",e)),l.takeAction("beforeRender","formatItemProps")}});e.exports=r()(f)}()},function(e,t,a){"use strict";(function(t){var r=a(20);!function(){a(60);var n=a(5),i=a(160),o=a(118),l=a(12),s=a(1),u=s.isNil,d=s.find,c=s.get,p={schemaKey:"FORMAT_ITEM_PROPERTIES",props:{className:"form-horizontal"},fields:{generalInfo:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return l.getText("COMMON_LABEL_GENERAL_INFO")},icon:"icon-toggle-triangle"}},fields:{label:{get title(){return l.getText("FORMAT_PROPERTIES_LABEL_ITEM_TYPE")},type:"static",fnValue:"getValueByKey",isHidden:"showByFormatType",props:{field:"label"}},name:{get title(){return l.getText("FORMAT_PROPERTIES_LABEL_ITEM_NAME")},component:"CustomInput",fnValue:"getValueByKey",isHidden:"showByFormatType",props:{validations:"getFormatNameValidation",field:"name"}},value:{get title(){return l.getText("FORMAT_PROPERTIES_LABEL_ITEM_VALUE")},component:"InputByDataType",fnValue:"getValueByKey",isHidden:"showByFormatType",props:{type:"getInputByDataType",validations:{presence:{presence:!0,message:l.getText("FORMAT_PROPERTIES_MESSAGE_ITEM_VALUE_REQUIRED")}},onBlur:"validateItemValue",field:"value"}},imageUrl:{get title(){return l.getText("FORMAT_PROPERTIES_LABEL_IMAGE_URL")},component:"CustomInput",fnValue:"getValueByKey",isHidden:"showByFormatType",props:{validations:{presence:{presence:!0,get message(){return l.getText("FORMAT_PROPERTIES_MESSAGE_IMAGE_URL_REQUIRED")}}},field:"urlImage"}},imageDimensions:{get title(){return l.getText("FORMAT_PROPERTIES_LABEL_IMAGE_DIMENSIONS")},component:"ImageDimensions",fnValue:"getDimensions",isHidden:"showByFormatType",field:"imageDimensions"},defaultImgBtn:{get title(){return" "},component:"Button",isHidden:"shouldDefaultImgBtnHidden",props:{label:l.getText("FORMAT_PROPERTIES_LABEL_DEFAULT_IMAGE_BUTTON"),onClick:"loadDefaultImageUrl"}}}},itemFormat:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return l.getText("FORMAT_PROPERTIES_LABEL_ITEM_FORMATTING")},icon:"icon-toggle-triangle"}},fields:{format:{get title(){return l.getText("COMMON_LABEL_FORMAT")},type:"select",fnValue:"getValueByKey",isHidden:"showByFormatType",props:{options:"getDataFormats",labelField:"name",valueField:"name",groupBy:"getGroupBy",showTooltip:!0,blankOption:!0,blankOptionText:"..."}},fontFormat:{get title(){return l.getText("FONT_SETTINGS_LABEL_FONT")},component:"Font",fnValue:"getFontFormat",isHidden:"showByFormatType",props:{position:"left"}},alignment:{get title(){return l.getText("FONT_SETTINGS_LABEL_ALIGNMENT")},component:"AlignmentSetting",fnValue:"getValueByKey",isHidden:"showByFormatType"},dashStyle:{get title(){return l.getText("BORDER_SETTING_LABEL_DASH_STYLE")},component:"DashStyle",isHidden:"showByFormatType",props:{dashStyle:"getValueByKey"}},color:{get title(){return l.getText("COMMON_LABEL_COLOR")},component:"ColorPicker",fnValue:"getValueByKey",isHidden:"showByFormatType",props:{position:"left"}},thickness:{get title(){return l.getText("BORDER_SETTING_LABEL_THICKNESS")},component:"Thickness",fnValue:"getValueByKey",isHidden:"showByFormatType"}}}}},f={Panel:a(28),AlignmentSetting:a(331),Font:a(506),ColorPicker:a(212),Thickness:a(242),DashStyle:a(398),InputByDataType:a(147),CustomInput:a(381),Button:a(30),ImageDimensions:a(2210)};e.exports=function(e,a,s){t(!!e,"reportDesignerModel must be set");var h=a.type,m=function(t){var a=e.reportFields.selectedFormatGroup,n=e.reportFields.selectedFormatItem,i=e.reportFields[a],l=i.checkExistingFormatItemName&&i.checkExistingFormatItemName(t,n),s=(d(function(e){return e.value===a}.bind(this),o.FORMAT_GROUP)||{}).label,u=String.format(o.MESSAGES.M01,s);return l?(0,r.resolve)(u):(0,r.resolve)("")};return{definedSchema:p,widgets:f,source:a,mappingProps:{validateItemValue:function(){s.validate().then(function(e){return e&&s.reset(),e})},loadDefaultImageUrl:function(){u(e.defaultImageUrl.value)||a.updateValueByKey("imageUrl",e.defaultImageUrl.value)}},mappingSource:{getFormatNameValidation:function(){return{presence:{presence:!0,message:l.getText("REPORTDESIGNER_MESSAGE_ITEM_NAME_REQUIRED")},action:n.asReference(function(){return m})}},getDimensions:function(){var e=a.imageDimensions||{imageWidth:1,imageHeight:1,isConstrainProportions:!0};return{imageHeight:e.imageHeight,imageWidth:e.imageWidth,isConstrainProportions:e.isConstrainProportions}},showByFormatType:function(e){var t=o.OPTIONS_BY_FORMAT_TYPE[h];return!!u(t)||!t.hasOwnProperty(e)},getInputByDataType:function(){return"text"===h?"text":"static"},getDataFormats:function(){return i.loadReportFieldDataFormat(h)},getGroupBy:function(){return h===o.ITEMS_TYPE.pageNumber.value?null:"category"},getFontFormat:function(){var e=a.font||{};return{backgroundColor:e.backgroundColor,color:e.color,format:{fontFamily:e.family,fontSize:e.size},style:{fontBold:e.bold,fontItalic:e.italic,fontUnderline:e.underline}}},shouldDefaultImgBtnHidden:function(t){return this.showByFormatType(t)||u(e.defaultImageUrl.value)||""===e.defaultImageUrl.value}},onChangeValue:function(e,t,r,n,i){var o=(r&&r.length?c(r,e):e)[t];o&&(o.value=n);var l,s,u,d=a,p=e.generalInfo,f=e.itemFormat,h=f.fontFormat.value||{},m=h.format||{},g=h.style||{};"imageUrl"===t&&(l=p.imageUrl.value,s=function(e,t){p.imageDimensions.value={imageWidth:e,imageHeight:t,isConstrainProportions:p.imageDimensions.value.isConstrainProportions},a.updateValueByKey("imageDimensions",{imageWidth:e,imageHeight:t,isConstrainProportions:p.imageDimensions.value.isConstrainProportions})},(u=new Image).src=l,u.onload=function(){s(this.width,this.height)}),d.setItemsDetails({name:p.name.value,value:p.value.value,imageUrl:p.imageUrl.value,format:f.format.value,alignment:f.alignment.value,color:f.color.value,dashStyle:f.dashStyle.value,thickness:f.thickness.value,family:m.fontFamily,size:m.fontSize,bold:g.fontBold,italic:g.fontItalic,underline:g.fontUnderline,textColor:h.color,textBackgrounColor:h.backgroundColor,imageDimensions:p.imageDimensions.value})}}}}()}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=m(a(14)),o=m(a(6)),l=m(a(2)),s=m(a(3)),u=m(a(7)),d=m(a(8)),c=a(0),p=m(c),f=m(a(13)),h=m(a(15));function m(e){return e&&e.__esModule?e:{default:e}}var g=a(25)()(a(19)),E=a(24),y=a(12),v=(n=r=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var s=arguments.length,d=Array(s),c=0;c4&&void 0!==arguments[4]?arguments[4]:null;this.reportId=e,this.version=t.version,this.reportFields.readFromReport(t,r,n),this.isGlobal=!(0,Ne.isNil)(t.isGlobal)&&t.isGlobal,this.categoryId=t.categoryId,this.categoryName=t.categoryName,this.subCategoryId=t.subCategoryId,this.subCategoryName=t.subCategoryName,this.schedules=t.schedules,this.owner=t.owner,this.ownerId=t.ownerId,this.createdBy=t.createdBy,this.reportAccess.populateData({accessList:t.accesses}),a&&this.updateAdvanceDataSource(t)}},{key:"updateType",value:function(e){this.reportType=e,this.updateCategory(),this.updateSubCategory(),this.markDirty()}},{key:"updateCategory",value:function(e,t){this.categoryId=e||null,this.categoryName=t||"",this.markDirty()}},{key:"getTenantIdOfCategory",value:function(e,t){if(!e)return Te.default.getTenantId();var a=t?this.categories:this.subCategories,r=(0,Ne.find)(["id",e],a);return r?r.tenantId:null}},{key:"updateErrorMessages",value:function(e){this.errorMessages=e}},{key:"updateSubCategory",value:function(e,t){this.subCategoryId=e||null,this.subCategoryName=t||"",this.markDirty()}},{key:"getGeneralData",value:function(){var e={id:this.reportId,name:this.reportName,type:this.reportType,category:{},subCategory:{}};return(0,Ne.isNil)(this.categoryName)||(e.category={id:String.isGuidFormat(this.categoryId)&&this.categoryId!==Ee.EMPTY_GUID?this.categoryId:null,name:this.categoryName,type:this.reportType},e.category.tenantId=this.getTenantIdOfCategory(e.category.id,!0)),(0,Ne.isNil)(this.subCategoryName)||(e.subCategory={id:String.isGuidFormat(this.subCategoryId)&&this.categoryId!==Ee.EMPTY_GUID?this.subCategoryId:null,name:this.subCategoryName,type:this.reportType},e.subCategory.tenantId=this.getTenantIdOfCategory(e.subCategory.id,!1)),e.category.isGlobal=this.isGlobal,e.subCategory.isGlobal=this.isGlobal,e.tenantId=this.tenantId,e}},{key:"addSubCategory",value:function(e){(0,Ne.findIndex)(e,this.subCategories)<0&&this.subCategories.push(e),this.markDirty()}},{key:"addCategory",value:function(e){(0,Ne.findIndex)(e,this.categories)<0&&this.categories.push(e),this.updateSubCategory(),this.subCategories=[],this.markDirty()}},{key:"readSubCategoryData",value:function(e){return e=e||[],this.subCategories=e.map(function(e){return new ye.default(e)}),(0,le.resolve)("")}},{key:"readCategoryData",value:function(e){return e=e||[],this.categories=e.map(function(e){return new ye.default(e)}),null}},{key:"markSaveAs",value:function(){this.saveAs=!0}},{key:"resetSaveAs",value:function(){this.saveAs=!1}},{key:"checkSavePermission",value:function(){return this.accessPriority===be.ACCESS_RIGHT.FullAccess&&!this.isGlobal||this.isGlobal&&Te.default.currentUser.systemAdmin&&!Te.default.tenantId}},{key:"checkDirty",value:function(){return this.isDirty||this.dataSource.checkDirty&&this.dataSource.checkDirty()||this.reportFields.checkDirty&&this.reportFields.checkDirty()||this.reportFormats.checkDirty&&this.reportFormats.checkDirty()||this.reportAccess.checkDirty()||this.export.checkDirty()||this.checkScheduleDirty()}},{key:"cleanDirty",value:function(){this.dataSource.cleanDirty&&this.dataSource.cleanDirty(),this.reportFields.cleanDirty&&this.reportFields.cleanDirty(),this.reportFormats.cleanDirty&&this.reportFormats.cleanDirty(),this.reportAccess.cleanDirty(),this.export.cleanDirty(),this.resetDirty()}},{key:"checkScheduleDirty",value:function(){for(var e=0;e0&&(0,A.some)(function(e){return""===e.alias},r)&&this.updateAlias(e),this.markDirty()}}},{key:"generateAliases",value:function(){var e=this;this.generateAliasForSelfJoin(),this.dataSourceGrid.forEach(function(t){return e.generateAliasForItem(t)})}},{key:"generateAliasForSelfJoin",value:function(){var e=this;this.dataSourceGrid.forEach(function(t){return e.isSelfJoin(t)&&""===t.alias&&e.updateAlias(t)})}},{key:"isFirstSelfJoin",value:function(e){return this.isSelfJoin(e)&&!this.hasAlreadyFirstSelfJoin(e.joinQuerySourceId,e.id)}},{key:"isSelfJoin",value:function(e){return e.joinQuerySourceId===e.originalAliasId}},{key:"hasAlreadyFirstSelfJoin",value:function(e,t){return(0,A.filter)(function(a){return!0===a.isSelfJoin&&a.joinQuerySourceId===e&&t!==a.id},this.dataSourceGrid).length>0}},{key:"delete",value:function(e){this.updateAliasLevel(null,e),(0,A.isEmpty)(e.id)?this.dataSourceGrid.splice(this.dataSourceGrid.indexOf(e),1):e.delete(),this.markDataSourceGridDirty(),this.markDirty()}},{key:"populateData",value:function(e,t,a){return a===S.ADVANCED?this.populateDataForAdvancedMode(e):this.populateDataForSimpleMode(e)}},{key:"populateDataForSimpleMode",value:function(e){return e=e||{},this.dataSourceGrid=e.result,this.pageInfo.totalRecords=e.total,(0,E.resolve)(e.relatedDataSourceCategories)}},{key:"populateDataForAdvancedMode",value:function(e){!function(e){e.result&&e.result.forEach(function(e){e.relationshipKeyJoins.forEach(function(t){t.parentId=e.id})})}(e=e||{});var t=e.result;return this.isDataSourceGridDirty&&(t=this.mergeRelationships(t)),this.populateDataSourceGrid(this.processDbRelationships(t,this.dirtyDataSourceGrid)),this.dataSourceGrid=this.filterNewRelationships(this.dataSourceGrid),this.pageInfo.totalRecords=e.total,this.reindexLevelAndPosition(),this.generateAliases(),(0,E.resolve)()}},{key:"processDbRelationships",value:function(e,t){var a=[],r=e.length;e.forEach(function(e,t){e.relationshipPosition=t});var n=function(e){return e.alias||function(e){return e.joinQuerySourceId===e.originalAliasId}(e)||e.isForeignDataObjectAlias},i=function(e,t,a){return e[a]===t||"null"===t&&(0,A.isNull)(e[a])};a.push.apply(a,(0,g.default)((0,A.filter)(n,e)));for(var o=(0,A.reject)(n,e);a.length=0},o=(0,A.find)({id:n.id},e);if((0,A.isNil)(o))n.setHidden&&n.setHidden(!0);else if(r===S.SEARCH_ALL){var l=S.BUNDLE.CRITERIA_LIST_ADVANCED_MODE;for(var s in l)if(s=0&&this.aliasLevel.splice(r,1)}}},{key:"removeAliasLevel",value:function(e){var t=(0,A.findIndex)({id:e.tempId},this.aliasLevel);t>=0&&this.aliasLevel.splice(t,1)}},{key:"updateAliasLevelOnly",value:function(e,t){var a=(0,A.find)({id:e.tempId},this.aliasLevel);a&&(a.level=t)}},{key:"populateUpdatedAlias",value:function(e){var t=e.alias,a=e.previousAlias,r=e.joinQuerySourceId;(0,A.isNull)(t)||this.dataSourceGrid.forEach(function(e){e.updateForeignAlias(r,t,a),e.updateKeyJoinForeignAlias(r,t,a)})}},{key:"getAliasOption",value:function(e,t){return t?{name:t,sourceId:e.joinQuerySourceId,aliasId:this.generateAliasId(e,t),visible:!0}:null}},{key:"generateAliasId",value:function(e,t){return e.joinQuerySourceId+"_"+t}},{key:"moveRelationshipOrKeyJoin",value:function(e,t){var a=(0,A.isEmpty)(e.parentId),r=(0,A.isEmpty)(t.parentId);return a&&r?this.moveRelationship(e,t):a||this.moveKeyJoin(e,t),this.markDirty(),(0,E.resolve)(!0)}},{key:"moveRelationship",value:function(e,t){var a=(0,A.findIndex)({tempId:e.tempId},this.dataSourceGrid),r=(0,A.findIndex)({tempId:t.tempId},this.dataSourceGrid);this.dataSourceGrid.splice(a,1),this.dataSourceGrid.splice(r,0,e),this.updateDataAfterMoveSuccess(e,t)}},{key:"moveKeyJoin",value:function(e,t){var a=L(e,this.dataSourceGrid),r=L(t,this.dataSourceGrid);if(r.joinType===S.JOIN_TYPE_CROSS)return S.BUNDLE.MESSAGE.M04;var n=(0,A.findIndex)({tempId:e.tempId},a.relationshipKeyJoins),i=(0,A.isEmpty)(t.parentId)?r.relationshipKeyJoins?r.relationshipKeyJoins.length:0:(0,A.findIndex)({tempId:t.tempId},r.relationshipKeyJoins);a.relationshipKeyJoins.splice(n,1),r.relationshipKeyJoins.splice(i,0,e),e.setParentId(r.tempId),this.updateDataAfterMoveSuccess(e,t),a.reindexKeyJoinsPosition(),r.reindexKeyJoinsPosition();var o=(0,A.head)(this.dataSourceGrid);this.dataSourceGrid.splice(0,1,o)}},{key:"updateDataAfterMoveSuccess",value:function(e,t){this.reindexLevelAndPosition(),e.updateState(),t.updateState(),this.markDataSourceGridDirty()}},{key:"reindexLevelAndPosition",value:function(e){var t=this,a=e?e.level:1;this.dataSourceGrid.forEach(function(e,r){e.relationshipPosition=r,e.level=r+1,e.relationshipKeyJoins.forEach(function(e){e.level=r+1}),e.level>=a&&t.updateAliasLevelOnly(e,r+1)})}},{key:"getInvalidAliasLevelsForRow",value:function(e){var t=L(e,this.dataSourceGrid),a=e.isKeyJoin?e.selectedForeignSourceAlias:t.selectedForeignAlias;return(0,A.filter)(function(e){return t.level<=e.level&&a===e.alias.aliasId},this.aliasLevel)}},{key:"checkExistEntities",value:function(e){return e.joinQuerySourceId&&e.originalAliasId?(0,A.find)(function(t){return e!==t&&t.state!=S.OBJECT_STATE.DELETE&&(t.joinQuerySourceId===e.joinQuerySourceId&&t.originalAliasId===e.originalAliasId&&t.joinType!==e.joinType||t.joinQuerySourceId===e.originalAliasId&&t.originalAliasId===e.joinQuerySourceId&&(t.joinType!==e.joinType&&(t.joinType!==S.JOIN_TYPE.LEFT||e.joinType!==S.JOIN_TYPE.RIGHT)&&(t.joinType!==S.JOIN_TYPE.RIGHT||e.joinType!==S.JOIN_TYPE.LEFT)||t.joinType===S.JOIN_TYPE.LEFT&&e.joinType===S.JOIN_TYPE.LEFT||t.joinType===S.JOIN_TYPE.RIGHT&&e.joinType===S.JOIN_TYPE.RIGHT))&&t.alias===e.alias},this.dataSourceGrid):null}},{key:"updateJoinTypeForSameEntities",value:function(e,t){e.joinQuerySourceId&&e.originalAliasId&&((0,A.map)(function(a){if(e!==a&&a.state!=S.OBJECT_STATE.DELETE&&a.joinQuerySourceId===e.originalAliasId&&a.originalAliasId===e.joinQuerySourceId&&(a.joinType!==e.joinType&&(a.joinType!==S.JOIN_TYPE.LEFT||e.joinType!==S.JOIN_TYPE.RIGHT)&&(a.joinType!==S.JOIN_TYPE.RIGHT||e.joinType!==S.JOIN_TYPE.LEFT)||a.joinType===S.JOIN_TYPE.LEFT&&e.joinType===S.JOIN_TYPE.LEFT||a.joinType===S.JOIN_TYPE.RIGHT&&e.joinType===S.JOIN_TYPE.RIGHT)&&a.alias===e.alias)switch(t?e.joinType:a.joinType){case S.JOIN_TYPE.LEFT:t?a.joinType=S.JOIN_TYPE.RIGHT:e.joinType=S.JOIN_TYPE.RIGHT;break;case S.JOIN_TYPE.RIGHT:t?a.joinType=S.JOIN_TYPE.LEFT:e.joinType=S.JOIN_TYPE.LEFT;break;default:t?a.joinType=e.joinType:e.joinType=a.joinType}e!==a&&a.joinQuerySourceId===e.joinQuerySourceId&&a.originalAliasId===e.selectedForeignAliass&&a.joinType!==e.joinType&&a.alias===e.alias&&(a.joinType=e.joinType),a.joinType===S.JOIN_TYPE_CROSS&&e!==a&&(a.joinFieldId=null,a.foreignFieldId=null)},this.dataSourceGrid),this.markDirty())}},{key:"removeUncheckRelationships",value:function(e){var t=this;this.dataSourceGrid.forEach(function(a){a.foreignQuerySourceId!==e.id&&a.joinQuerySourceId!==e.id||t.removeAliasLevel(a)}),this.dataSourceGrid.replace((0,A.filter)(function(t){return t.foreignQuerySourceId!==e.id&&t.joinQuerySourceId!==e.id},this.dataSourceGrid)),this.reindexLevelAndPosition()}},{key:"markDataSourceGridDirty",value:function(){this.isDataSourceGridDirty=!0,this.dataSourceGrid.forEach(function(e){e.setModify(!0)}),this.dirtyDataSourceGrid=this.dataSourceGrid}},{key:"resetDataSourceGridDirty",value:function(){this.isDataSourceGridDirty=!1,this.dirtyDataSourceGrid=[]}},{key:"getDbRelationshipIds",value:function(){return(0,A.flow)((0,A.remove)({state:S.OBJECT_STATE.DELETE}),(0,A.map)(function(e){return{alias:e.alias,joinQuerySourceId:e.joinQuerySourceId,selectedForeignAlias:e.selectedForeignAlias,relationshipPosition:e.relationshipPosition,hasBeenModified:e.hasBeenModified,convertedKeyJoinIds:(0,A.flow)((0,A.map)("convertedFromRelationshipId"),A.compact)(e.relationshipKeyJoins.slice())}}))(this.dataSourceGrid)}},{key:"validateDataSourceGrid",value:function(){var e=this,t=(0,A.filter)(function(t){return!(0,A.isEmpty)(e.getInvalidAliasLevelsForRow(t))},this.dataSourceGrid);return(0,A.isEmpty)(t)}},{key:"resetAliasLevel",value:function(){this.aliasLevel=[]}},{key:"totalKeyJoin",get:function(){return(0,A.sumBy)("keyJoinCount",this.dataSourceGrid)}},{key:"haveRelationships",get:function(){return!(0,A.isEmpty)((0,A.filter)({deleted:!1},this.dataSourceGrid))}},{key:"displayDataSourceGrid",get:function(){return(0,A.filter)({deleted:!1,hidden:!1},this.dataSourceGrid)}},{key:"displayDataSourceGridFlatten",get:function(){return(0,A.flattenDeep)(this.displayDataSourceGrid)}},{key:"displayDataSourceGridKeyJoins",get:function(){return(0,A.flatMap)(function(e){return e.displayKeyJoins},this.displayDataSourceGridFlatten)}}]),e}(),i=I(n.prototype,"dataSourceGrid",[T.observable],{enumerable:!0,initializer:function(){return[]}}),o=I(n.prototype,"dirtyDataSourceGrid",[T.observable],{enumerable:!0,initializer:function(){return[]}}),l=I(n.prototype,"pageInfo",[T.observable],{enumerable:!0,initializer:function(){return new _.default(S.BUNDLE.SORT_ORDERS,S.BUNDLE.DEFAULT_CRITERIA)}}),s=I(n.prototype,"totalRecords",[T.observable],{enumerable:!0,initializer:function(){return 0}}),u=I(n.prototype,"aliasLevel",[T.observable],{enumerable:!0,initializer:function(){return[]}}),d=I(n.prototype,"isDataSourceGridDirty",[T.observable],{enumerable:!0,initializer:function(){return!1}}),c=I(n.prototype,"dbRelationships",[T.observable],{enumerable:!0,initializer:function(){return[]}}),p=I(n.prototype,"isLoadingRelationship",[T.observable],{enumerable:!0,initializer:function(){return!0}}),I(n.prototype,"totalKeyJoin",[T.computed],(0,m.default)(n.prototype,"totalKeyJoin"),n.prototype),I(n.prototype,"haveRelationships",[T.computed],(0,m.default)(n.prototype,"haveRelationships"),n.prototype),I(n.prototype,"displayDataSourceGrid",[T.computed],(0,m.default)(n.prototype,"displayDataSourceGrid"),n.prototype),I(n.prototype,"displayDataSourceGridFlatten",[T.computed],(0,m.default)(n.prototype,"displayDataSourceGridFlatten"),n.prototype),I(n.prototype,"displayDataSourceGridKeyJoins",[T.computed],(0,m.default)(n.prototype,"displayDataSourceGridKeyJoins"),n.prototype),I(n.prototype,"cleanDirty",[T.action],(0,m.default)(n.prototype,"cleanDirty"),n.prototype),I(n.prototype,"reset",[T.action],(0,m.default)(n.prototype,"reset"),n.prototype),I(n.prototype,"addNew",[T.action],(0,m.default)(n.prototype,"addNew"),n.prototype),I(n.prototype,"copyRelationship",[T.action],(0,m.default)(n.prototype,"copyRelationship"),n.prototype),I(n.prototype,"findRelationshipById",[T.action],(0,m.default)(n.prototype,"findRelationshipById"),n.prototype),I(n.prototype,"updateAlias",[T.action],(0,m.default)(n.prototype,"updateAlias"),n.prototype),I(n.prototype,"initAliasForAddItem",[T.action],(0,m.default)(n.prototype,"initAliasForAddItem"),n.prototype),I(n.prototype,"onDataObjectChangeToGenerateAlias",[T.action],(0,m.default)(n.prototype,"onDataObjectChangeToGenerateAlias"),n.prototype),I(n.prototype,"delete",[T.action],(0,m.default)(n.prototype,"delete"),n.prototype),I(n.prototype,"populateData",[T.action],(0,m.default)(n.prototype,"populateData"),n.prototype),I(n.prototype,"populateDataForSimpleMode",[T.action],(0,m.default)(n.prototype,"populateDataForSimpleMode"),n.prototype),I(n.prototype,"populateDataForAdvancedMode",[T.action],(0,m.default)(n.prototype,"populateDataForAdvancedMode"),n.prototype),I(n.prototype,"processDbRelationships",[T.action],(0,m.default)(n.prototype,"processDbRelationships"),n.prototype),I(n.prototype,"populateDataSourceGrid",[T.action],(0,m.default)(n.prototype,"populateDataSourceGrid"),n.prototype),I(n.prototype,"mergeRelationships",[T.action],(0,m.default)(n.prototype,"mergeRelationships"),n.prototype),I(n.prototype,"filterNewRelationships",[T.action],(0,m.default)(n.prototype,"filterNewRelationships"),n.prototype),I(n.prototype,"updateAliasLevel",[T.action],(0,m.default)(n.prototype,"updateAliasLevel"),n.prototype),I(n.prototype,"removeAliasLevel",[T.action],(0,m.default)(n.prototype,"removeAliasLevel"),n.prototype),I(n.prototype,"updateAliasLevelOnly",[T.action],(0,m.default)(n.prototype,"updateAliasLevelOnly"),n.prototype),I(n.prototype,"populateUpdatedAlias",[T.action],(0,m.default)(n.prototype,"populateUpdatedAlias"),n.prototype),I(n.prototype,"moveRelationshipOrKeyJoin",[T.action],(0,m.default)(n.prototype,"moveRelationshipOrKeyJoin"),n.prototype),I(n.prototype,"moveRelationship",[T.action],(0,m.default)(n.prototype,"moveRelationship"),n.prototype),I(n.prototype,"moveKeyJoin",[T.action],(0,m.default)(n.prototype,"moveKeyJoin"),n.prototype),I(n.prototype,"updateDataAfterMoveSuccess",[T.action],(0,m.default)(n.prototype,"updateDataAfterMoveSuccess"),n.prototype),I(n.prototype,"reindexLevelAndPosition",[T.action],(0,m.default)(n.prototype,"reindexLevelAndPosition"),n.prototype),I(n.prototype,"updateJoinTypeForSameEntities",[T.action],(0,m.default)(n.prototype,"updateJoinTypeForSameEntities"),n.prototype),I(n.prototype,"removeUncheckRelationships",[T.action],(0,m.default)(n.prototype,"removeUncheckRelationships"),n.prototype),I(n.prototype,"resetAliasLevel",[T.action],(0,m.default)(n.prototype,"resetAliasLevel"),n.prototype),r=n))||r;function P(e){switch(S.DATA_OBJECT_SWAP_KEYS.forEach(function(t){return function(e,t){var a=(0,f.default)(t,2),r=a[0],n=a[1],i=e[r];e[r]=e[n],e[n]=i}(e,t)}),e.selectedForeignAlias=e.foreignQuerySourceId+"_"+e.foreignQuerySourceName,e.joinType){case S.JOIN_TYPE.LEFT:return void(e.joinType=S.JOIN_TYPE.RIGHT);case S.JOIN_TYPE.RIGHT:return void(e.joinType=S.JOIN_TYPE.LEFT);default:return}}function L(e,t){return(0,A.isEmpty)(e.parentId)?e:(0,A.find)({tempId:e.parentId},t)}t.default=D,e.exports=t.default},,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f=N(a(17)),h=N(a(23)),m=N(a(2)),g=N(a(3)),E=a(5),y=N(a(1201)),v=N(a(698)),T=N(a(2219)),_=N(a(2220)),S=N(a(118)),C=N(a(53)),b=a(1);function N(e){return e&&e.__esModule?e:{default:e}}function A(e,t,a,r){a&&(0,f.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function R(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var O=S.default.FORMAT_GROUP_CONFIG,I=(0,C.default)((n=function(){function e(t,a,r){(0,m.default)(this,e),A(this,"dataTree",i,this),A(this,"reportFilter",o,this),A(this,"reportBody",l,this),A(this,"reportHeader",s,this),A(this,"reportFooter",u,this),A(this,"reportTitleDescription",d,this),A(this,"selectedFormatItem",c,this),A(this,"selectedFormatGroup",p,this),this.reportFilter=new y.default(null,a),this.reportBody=new T.default(null,t,r),this.initDefaultLayout()}return(0,g.default)(e,[{key:"initDefaultLayout",value:function(){this.reportHeader.initDefaultLayout(),this.reportFooter.initDefaultLayout(),this.reportTitleDescription.initDefaultLayout(),this.cleanDirty()}},{key:"readFromReport",value:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e.reportFilter||{},n=e.header||{},i=e.footer||{},o=e.titleDescription||{},l=e.reportPart,s=e.snapToGrid;this.reportFilter.populateData(r),this.reportBody.populateData(l,s,t,a),this.reportHeader.populateData(n.items),this.reportFooter.populateData(i.items),this.reportTitleDescription.populateData(o.items),this.dataTree.populateDataForCalculatedFields(e.calculatedFields)}},{key:"buildDataForSaving",value:function(e,t){var a=this.reportFilter.buildDataForSaving(),r=this.reportBody.buildDataForSaving(t);return a.reportId=e||null,(0,b.isEmpty)(r.reportPart)||(r.reportPart=(0,b.clone)(r.reportPart),(0,b.forEach)(function(e){e.configField={}},r.reportPart)),{reportFilter:a,reportPart:r.reportPart,snapToGrid:r.snapToGrid}}},{key:"checkDirty",value:function(){return this.isDirty||this.dataTree.checkDirty&&this.dataTree.checkDirty()||this.reportFilter.checkDirty&&this.reportFilter.checkDirty()||this.reportBody.checkDirty&&this.reportBody.checkDirty()||this.reportHeader.checkDirty&&this.reportHeader.checkDirty()||this.reportFooter.checkDirty&&this.reportFooter.checkDirty()}},{key:"cleanDirty",value:function(){this.resetDirty(),this.dataTree.cleanDirty&&this.dataTree.cleanDirty(),this.reportFilter.cleanDirty&&this.reportFilter.cleanDirty(),this.reportBody.cleanDirty&&this.reportBody.cleanDirty(),this.reportHeader.cleanDirty&&this.reportHeader.cleanDirty(),this.reportFooter.cleanDirty&&this.reportFooter.cleanDirty()}},{key:"updateFormatGroup",value:function(e){if(!(0,b.isNil)(e)){this.setSelectedFormatGroup(e);var t=(0,b.head)(this.getFormatItems())||{};this.setSelectedFormatItem(t),this.markDirty()}}},{key:"getFormatItems",value:function(){var e=(this[this.selectedFormatGroup]||{}).formatItems||[];return(0,b.sortBy)(function(e){return e.name},e)}},{key:"updateFormatItem",value:function(e,t){this.setSelectedFormatGroup(t),this.setSelectedFormatItem(e),this.markDirty()}},{key:"setSelectedFormatItem",value:function(e){this.selectedFormatItem.isSelected=!1,e.isSelected=!0,this.selectedFormatItem=e}},{key:"setSelectedFormatGroup",value:function(e){this.selectedFormatGroup=e}}]),e}(),i=R(n.prototype,"dataTree",[E.observable],{enumerable:!0,initializer:function(){return new v.default}}),o=R(n.prototype,"reportFilter",[E.observable],{enumerable:!0,initializer:function(){return null}}),l=R(n.prototype,"reportBody",[E.observable],{enumerable:!0,initializer:function(){return null}}),s=R(n.prototype,"reportHeader",[E.observable],{enumerable:!0,initializer:function(){return new _.default(O.HEADER)}}),u=R(n.prototype,"reportFooter",[E.observable],{enumerable:!0,initializer:function(){return new _.default(O.FOOTER)}}),d=R(n.prototype,"reportTitleDescription",[E.observable],{enumerable:!0,initializer:function(){return new _.default(O.TITLE_DESCRIPTION)}}),c=R(n.prototype,"selectedFormatItem",[E.observable],{enumerable:!0,initializer:function(){return{}}}),p=R(n.prototype,"selectedFormatGroup",[E.observable],{enumerable:!0,initializer:function(){return""}}),R(n.prototype,"initDefaultLayout",[E.action],(0,h.default)(n.prototype,"initDefaultLayout"),n.prototype),R(n.prototype,"readFromReport",[E.action],(0,h.default)(n.prototype,"readFromReport"),n.prototype),R(n.prototype,"cleanDirty",[E.action],(0,h.default)(n.prototype,"cleanDirty"),n.prototype),R(n.prototype,"updateFormatGroup",[E.action],(0,h.default)(n.prototype,"updateFormatGroup"),n.prototype),R(n.prototype,"updateFormatItem",[E.action],(0,h.default)(n.prototype,"updateFormatItem"),n.prototype),R(n.prototype,"setSelectedFormatItem",[E.action],(0,h.default)(n.prototype,"setSelectedFormatItem"),n.prototype),r=n))||r;t.default=I,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p=D(a(17)),f=D(a(23)),h=a(20),m=D(a(90)),g=D(a(2)),E=D(a(3)),y=a(5),v=D(a(282)),T=D(a(53)),_=a(18),S=(D(_),a(61)),C=D(S),b=D(a(179)),N=D(a(1202)),A=D(a(515)),R=D(a(33)),O=D(a(708)),I=a(1);function D(e){return e&&e.__esModule?e:{default:e}}function P(e,t,a,r){a&&(0,p.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function L(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var M=(0,O.default)(1/0,S.REPORT_PART_MAX_WIDTH,S.REPORT_PART_MAX_HEIGHT),F=(0,T.default)((n=function(){function e(t,a,r){(0,g.default)(this,e),this.crossFilteringDrillFilterInfo=[],P(this,"reportParts",i,this),P(this,"selectedPart",o,this),P(this,"configReportPart",l,this),P(this,"viewMode",s,this),P(this,"isFullScreen",u,this),P(this,"snapToGrid",d,this),P(this,"crossFilteringDetail",c,this),this.viewMode=a,this.editMode=r,t&&this.populateData(t),this.cleanDirty()}return(0,E.default)(e,[{key:"activeReportParts",get:function(){return(0,I.reject)("isDelete",this.reportParts)}},{key:"supportReportParts",get:function(){return b.default.filterSupportedReports(this.activeReportParts)}},{key:"hasInvisibleFields",get:function(){return(0,I.some)("existInvisibleField",this.reportParts)}},{key:"hasAnyField",get:function(){return(0,I.flow)((0,I.map)("fieldCollection"),(0,I.every)(I.isEmpty))(this.activeReportParts)}},{key:"aggregatedFields",get:function(){var e=[];return this.reportParts.forEach(function(t){e=(0,I.concat)(e,(0,I.compact)(t.aggregatedFieldCollection))}),e}},{key:"fields",get:function(){var e=[];return this.reportParts.forEach(function(t){e=(0,I.concat)(e,(0,I.compact)(t.fieldCollection))}),e}},{key:"enableCrossFiltering",get:function(){return!(((0,I.filter)(function(e){return!(0,I.isNil)(e.type)},this.activeReportParts)||[]).length<1)&&(0,I.some)(function(e){return!!(0,I.some)(function(t){return e.type===t},[_.REPORT_PART_TYPE.Chart,_.REPORT_PART_TYPE.Gauge,_.REPORT_PART_TYPE.Map,_.REPORT_PART_TYPE.KPI])},this.activeReportParts)}},{key:"enableDeleteAll",get:function(){return!(0,I.flow)(I.head,(0,I.getOr)([],"pillDefinitions"),I.isEmpty)(this.crossFilteringDetail)}},{key:"hadCrossFilteringSetting",get:function(){return!(0,I.flow)((0,I.filter)(function(e){return e.reportPartContent.isCrossFiltering}),I.isEmpty)(this.activeReportParts)}},{key:"crossFilteringReportParts",get:function(){return(0,I.flow)((0,I.getOr)([],"activeReportParts"),(0,I.filter)(function(e){var t=e.headerTitle,a=e.reportPartContent;return!(0,I.isEmpty)(t)&&a.isCrossFiltering}),(0,I.map)(function(e){return e.id}))(this)}}]),(0,E.default)(e,[{key:"cleanDrillInfo",value:function(){var e=this;this.crossFilteringDrillFilterInfo=(0,I.remove)(function(t){return-1===(0,I.flow)((0,I.flatMap)(function(e){return(0,I.invoke)("reportPartContent.getCrossFilteringInfo",e)||(0,I.getOr)([],"reportPartContent.drilldown.filters",e)}),(0,I.findIndex)(function(e){return e.key===t.key}))(e.activeReportParts)},this.crossFilteringDrillFilterInfo)}},{key:"updateDrillInfo",value:function(e,t){var a=this;if(!e.reportPartContent.isCrossFiltering)return t;if(this.cleanDrillInfo(),(0,I.isEmpty)(t)){var r=e.reportPartContent.getDrilldownInfo();return Array.prototype.push.apply(r.filters,R.default.transformFilterWithReportPart(e,this.crossFilteringDrillFilterInfo)),r.filters=(0,I.uniqBy)(function(e){return(0,m.default)((0,I.pick)(["key","fieldId"],e))},r.filters),r}var n=(0,I.invoke)("getCrossFilteringInfo",e.reportPartContent);(0,I.forEach)(function(e){var t=(0,I.findIndex)(function(t){return t.key===e.key},a.crossFilteringDrillFilterInfo);-1===t?a.crossFilteringDrillFilterInfo.push(e):a.crossFilteringDrillFilterInfo[t].value=e.value},n)}},{key:"updateCrossFiltering",value:function(e,t){var a=(0,I.head)(this.crossFilteringDetail);if((0,I.isEmpty)(a)||!e.reportPartContent.isCrossFiltering)return this.updateDrillInfo(e,t);var r=(0,I.get)("pillDefinitions",a),n=(0,I.findIndex)(function(t){return t.reportPart.id===e.id},r),i=e.reportPartContent.getDrilldownInfo(),o=(0,I.getOr)(0,"expandedLevel",t)||i.expandedLevel;-1!==n&&0===o&&r.splice(n,1),-1===n&&0!==o&&-1!==o&&r.push(new A.default(e.id,e,(0,I.getOr)("","headerTitle",e))),this.updateDrillInfo(e,t)}},{key:"removePill",value:function(e){var t=e.reportPart,a=(0,I.head)(this.crossFilteringDetail),r=(0,I.get)("pillDefinitions",a),n=(0,I.findIndex)(function(e){return e.reportPart.id===t.id},r);-1!==n&&r.splice(n,1),t.reportPartContent.resetDrilldownInfo&&t.reportPartContent.resetDrilldownInfo(),this.cleanDrillInfo()}},{key:"removePillByReportPart",value:function(e){var t=(0,I.flow)(I.head,(0,I.get)("pillDefinitions"))(this.crossFilteringDetail),a=(0,I.filter)({id:e.id},t);(0,I.forEach)(function(e){var a=e.id,r=(0,I.findIndex)({id:a},t);-1!==r&&t.splice(r,1)},a),e.reportPartContent.resetDrilldownInfo&&e.reportPartContent.resetDrilldownInfo(),this.cleanDrillInfo()}},{key:"removeAllPills",value:function(){var e=(0,I.flow)(I.head,(0,I.get)("pillDefinitions"))(this.crossFilteringDetail);e&&e.clear(),this.crossFilteringDrillFilterInfo=[],(0,I.forEach)(function(e){e.reportPartContent.resetDrilldownInfo&&e.reportPartContent.resetDrilldownInfo()},this.activeReportParts)}},{key:"resetReportBodyStatus",value:function(){this.setConfigReportPart(null),this.removeAllPills(),this.isFullScreen=!1}},{key:"appliedStatusPreviousConfigReportPart",value:function(){var e=this.configReportPart,t=(0,I.get)("headerTitle",e),a=(0,I.getOr)(!1,"isBackSide",e),r=(0,I.getOr)(null,"configField",e),n=(0,I.getOr)(null,"name",r),i=e&&(0,I.find)({headerTitle:t},this.supportReportParts.slice());if(i){i!==e&&(this.setConfigReportPart(i),this.changeReportPartSide(i,a));var o=r&&(0,I.find)({name:n},i.fieldCollection.slice());i.setConfigField(o)}else this.resetReportBodyStatus()}},{key:"populateData",value:function(e,t,a){var r=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=!!t;var i=this.reportParts,o=n&&!(0,I.isEmpty)(n),l=void 0,s=e&&!(0,I.isEmpty)(e)&&e.map(function(e){return(l=(0,I.find)({headerTitle:e.title},i))&&(o&&(e.id=l.id),l.readData(e)),l||new v.default(e,null,null,r.viewMode,r.editMode)});o?!s&&this.reportParts.remove(n):this.reportParts.replace(s||[]),this.snapToGrid=t,a?this.appliedStatusPreviousConfigReportPart():this.resetReportBodyStatus(),this.activeReportParts.length||!this.viewMode&&this.addReportPart(),(0,I.isEmpty)(this.crossFilteringDetail)&&this.crossFilteringDetail.push(new N.default(null,null,[]))}},{key:"checkDirty",value:function(){var e=(0,I.filter)(function(e){return e.checkDirty&&e.checkDirty()},this.reportParts);return this.isDirty||e&&e.length>0}},{key:"cleanDirty",value:function(){(0,I.forEach)(function(e){e.cleanDirty&&e.cleanDirty()},this.reportParts),this.resetDirty()}},{key:"addReportPart",value:function(e,t,a,r){var n=this.reportParts.length,i=M.getDimension(this.activeReportParts,e,t),o=e||i.positionX,l=t||i.positionY,s=(0,I.isNil)(a)||a===1/0||a>C.default.REPORT_PART_MAX_WIDTH,u=(0,I.isNil)(r)||r===1/0||r>C.default.REPORT_PART_MAX_HEIGHT,d=s?C.default.REPORT_PART_MAX_WIDTH:a,c=u?C.default.REPORT_PART_MAX_HEIGHT:r;this.configReportPart&&this.configReportPart.isBackSide&&this.changeReportPartSide(this.configReportPart,!1);var p={id:(0,I.uniqueId)("reportPart_"),positionX:o,positionY:l,width:d,height:c,isAddNew:!0},f=new v.default(p);this.reportParts.splice(n,0,f),this.setConfigReportPart(f),this.markDirty()}},{key:"deleteReportPart",value:function(e){this.isFullScreen=!1,e.isNew&&this.reportParts.remove(e),e.delete(),this.configReportPart===e&&this.setConfigReportPart(null),this.removePill({reportPart:e}),this.validateCrossFilteringItems(),this.markDirty()}},{key:"validateCrossFilteringItems",value:function(){this.enableCrossFiltering||(0,I.forEach)(function(e){e.reportPartContent.isCrossFiltering=!1},this.activeReportParts)}},{key:"copyReportPart",value:function(e){var t=String.generateNewName(e.headerTitle,this.activeReportParts,(0,I.get)("headerTitle"),"()"),a=M.getDefaultDimension(this.activeReportParts),r=a.positionX,n=a.positionY,i=(0,y.toJS)(e.buildDataForSave());return i=(0,I.assign)(i,{id:(0,I.uniqueId)("reportPart_"),title:t,isBackSide:!1,positionX:r,positionY:n,width:i.width,height:i.height,state:_.OBJECT_STATE.INSERT}),i=new v.default(i,!0),this.reportParts.splice(this.reportParts.length,0,i),this.setConfigReportPart(i),this.markDirty(),i}},{key:"validateNewNameReportPart",value:function(e,t){var a=(0,I.flow)(I.trim,I.toUpper);return(0,h.resolve)(!(0,I.isEmpty)(t)&&(0,I.flow)((0,I.reject)({id:e.id}),(0,I.some)((0,I.flow)((0,I.get)("headerTitle"),a,(0,I.isEqual)(a(t)))))(this.activeReportParts)?C.default.MESSAGES.M02:"")}},{key:"renameReportPart",value:function(e,t,a){(0,I.isEmpty)(t)?this.setDefaultName(e,a):e.setReportPartName(t)}},{key:"setConfigReportPart",value:function(e){if(e&&e.reportPartContent&&(0,I.invoke)("configModeAction",e.reportPartContent),!e||(0,I.get)("id",this.configReportPart)!==(0,I.get)("id",e)){var t=(0,I.get)("isBackSide",this.configReportPart);t&&this.changeReportPartSide(this.configReportPart,!1),e?(t&&this.changeReportPartSide(e,!1),this.configReportPart=e):(this.configReportPart=null,this.resetFullScreenMode())}}},{key:"changeFullScreenMode",value:function(e){this.setConfigReportPart(e),this.isFullScreen=!this.isFullScreen}},{key:"resetFullScreenMode",value:function(){this.isFullScreen=!1}},{key:"changeReportPartSide",value:function(e,t){if(e){var a=(0,I.isNil)(t)?!e.isBackSide:t;e.isBackSide=a,(0,I.invokeArgs)("reportPartContent.afterChangeSide",[a],e),this.setConfigReportPart(e)}}},{key:"setViewReportPart",value:function(e,t){e.setReportPartType(t.value),e.isBackSide=!0,this.setConfigReportPart(e),this.setDefaultName(e,t.label)}},{key:"setDefaultName",value:function(e,t){var a=String.generateNewName(t,(0,I.reject)({id:e.id},this.activeReportParts),(0,I.get)("headerTitle"));e.setReportPartName(a)}},{key:"buildCollapsableItems",value:function(e){var t={value:"",key:"",childs:[],isExpand:!1};if(e&&e.childs){if(0===e.childs.length)return t.value=e.value,t.key=e.key,t.isExpand=e.isExpand,t.columnName=e.uniqueFieldNameAlias,t;t.value=e.value,t.key=e.key,t.isExpand=e.isExpand,t.columnName=e.uniqueFieldNameAlias;for(var a=[],r=0;r1&&void 0!==arguments[1]&&arguments[1]?e.map(function(e){var a=(0,I.getOr)(!1,"separatorInfo.isLogicalSeparator",e);return{separatorList:t.getSeparatorInfo(e.separatorInfo),rowCollapsableList:a?t.buildCollapsableItems({value:"",key:"All",childs:e.records,isExpand:!0}):t.buildCollapsableItems(e.records)}}):[]}},{key:"buildDataForSaving",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=(0,I.flow)((0,I.filter)(function(e){return!(0,I.isNil)(e.type)}),(0,I.map)(function(e){return e.buildDataForSave&&e.buildDataForSave()||e}))(this.reportParts);return a.map(function(a){a.reportPartContent&&a.reportPartContent.rows&&(a.reportPartContent.rows.collapsableList=e.buildReportView(a.reportInfo,t))}),(0,I.map)(function(e){return delete e.reportInfo,e},a),{reportPart:a,snapToGrid:!!this.snapToGrid}}},{key:"removeUnuseDynamicThresholds",value:function(){(0,I.flow)((0,I.filter)({type:_.REPORT_PART_TYPE.Chart}),(0,I.forEach)(function(e){return e.reportPartContent.removeUnuseDynamicThresholds&&e.reportPartContent.removeUnuseDynamicThresholds()}))(this.reportParts)}},{key:"markVisibleAllField",value:function(){return this.reportParts.forEach(function(e){e.setAllFieldVisible()}),this.markDirty(),(0,h.resolve)()}},{key:"updateElementInfo",value:function(e,t,a){var r=!1,n=(0,I.find)(function(t){return t.field.fieldId===e},this.fields);if(!(0,I.isNil)(n))return this.reportParts.forEach(function(i){var o=i.updateField(e,(0,I.cloneDeep)(n.field.fieldName),t,a);r=r||o}),r&&this.markDirty(),r}},{key:"hasCalculatedField",value:function(e,t){return(0,I.some)(function(a){return a.hasCalculatedField(e,t)},this.reportParts)}},{key:"cleanCrossFiltering",value:function(){(0,I.invokeMap)("setCrossFiltering",this.reportParts,!1)}}]),e}(),i=L(n.prototype,"reportParts",[y.observable],{enumerable:!0,initializer:function(){return[]}}),o=L(n.prototype,"selectedPart",[y.observable],{enumerable:!0,initializer:function(){return{}}}),l=L(n.prototype,"configReportPart",[y.observable],{enumerable:!0,initializer:function(){return null}}),s=L(n.prototype,"viewMode",[y.observable],{enumerable:!0,initializer:null}),u=L(n.prototype,"isFullScreen",[y.observable],{enumerable:!0,initializer:function(){return!1}}),d=L(n.prototype,"snapToGrid",[y.observable],{enumerable:!0,initializer:function(){return!1}}),c=L(n.prototype,"crossFilteringDetail",[y.observable],{enumerable:!0,initializer:function(){return[]}}),L(n.prototype,"activeReportParts",[y.computed],(0,f.default)(n.prototype,"activeReportParts"),n.prototype),L(n.prototype,"supportReportParts",[y.computed],(0,f.default)(n.prototype,"supportReportParts"),n.prototype),L(n.prototype,"hasInvisibleFields",[y.computed],(0,f.default)(n.prototype,"hasInvisibleFields"),n.prototype),L(n.prototype,"hasAnyField",[y.computed],(0,f.default)(n.prototype,"hasAnyField"),n.prototype),L(n.prototype,"aggregatedFields",[y.computed],(0,f.default)(n.prototype,"aggregatedFields"),n.prototype),L(n.prototype,"fields",[y.computed],(0,f.default)(n.prototype,"fields"),n.prototype),L(n.prototype,"enableCrossFiltering",[y.computed],(0,f.default)(n.prototype,"enableCrossFiltering"),n.prototype),L(n.prototype,"enableDeleteAll",[y.computed],(0,f.default)(n.prototype,"enableDeleteAll"),n.prototype),L(n.prototype,"hadCrossFilteringSetting",[y.computed],(0,f.default)(n.prototype,"hadCrossFilteringSetting"),n.prototype),L(n.prototype,"crossFilteringReportParts",[y.computed],(0,f.default)(n.prototype,"crossFilteringReportParts"),n.prototype),L(n.prototype,"cleanDrillInfo",[y.action],(0,f.default)(n.prototype,"cleanDrillInfo"),n.prototype),L(n.prototype,"updateDrillInfo",[y.action],(0,f.default)(n.prototype,"updateDrillInfo"),n.prototype),L(n.prototype,"updateCrossFiltering",[y.action],(0,f.default)(n.prototype,"updateCrossFiltering"),n.prototype),L(n.prototype,"removePill",[y.action],(0,f.default)(n.prototype,"removePill"),n.prototype),L(n.prototype,"removePillByReportPart",[y.action],(0,f.default)(n.prototype,"removePillByReportPart"),n.prototype),L(n.prototype,"removeAllPills",[y.action],(0,f.default)(n.prototype,"removeAllPills"),n.prototype),L(n.prototype,"resetReportBodyStatus",[y.action],(0,f.default)(n.prototype,"resetReportBodyStatus"),n.prototype),L(n.prototype,"appliedStatusPreviousConfigReportPart",[y.action],(0,f.default)(n.prototype,"appliedStatusPreviousConfigReportPart"),n.prototype),L(n.prototype,"populateData",[y.action],(0,f.default)(n.prototype,"populateData"),n.prototype),L(n.prototype,"cleanDirty",[y.action],(0,f.default)(n.prototype,"cleanDirty"),n.prototype),L(n.prototype,"addReportPart",[y.action],(0,f.default)(n.prototype,"addReportPart"),n.prototype),L(n.prototype,"deleteReportPart",[y.action],(0,f.default)(n.prototype,"deleteReportPart"),n.prototype),L(n.prototype,"copyReportPart",[y.action],(0,f.default)(n.prototype,"copyReportPart"),n.prototype),L(n.prototype,"setConfigReportPart",[y.action],(0,f.default)(n.prototype,"setConfigReportPart"),n.prototype),L(n.prototype,"changeFullScreenMode",[y.action],(0,f.default)(n.prototype,"changeFullScreenMode"),n.prototype),L(n.prototype,"changeReportPartSide",[y.action],(0,f.default)(n.prototype,"changeReportPartSide"),n.prototype),L(n.prototype,"setViewReportPart",[y.action],(0,f.default)(n.prototype,"setViewReportPart"),n.prototype),L(n.prototype,"removeUnuseDynamicThresholds",[y.action],(0,f.default)(n.prototype,"removeUnuseDynamicThresholds"),n.prototype),L(n.prototype,"markVisibleAllField",[y.action],(0,f.default)(n.prototype,"markVisibleAllField"),n.prototype),L(n.prototype,"updateElementInfo",[y.action],(0,f.default)(n.prototype,"updateElementInfo"),n.prototype),L(n.prototype,"cleanCrossFiltering",[y.action],(0,f.default)(n.prototype,"cleanCrossFiltering"),n.prototype),r=n))||r;t.default=F,e.exports=t.default},function(e,t,a){"use strict";var r,n=a(58),i=(r=n)&&r.__esModule?r:{default:r};!function(){a(60);var t=a(5);a(60);var r=a(63),n=a(2221),o=a(118),l=a(708)(o.NUMBER_HEADER_COLS,1,1),s=o.ITEMS_TYPE,u=a(1),d=u.map,c=u.forEach,p=u.uniqueId,f=u.get,h=u.filter,m=u.every;function g(e,a){var n={name:e,formatItems:[],hasSelectedItem:function(){return!m(["isSelected",!1],this.formatItems)}};t.extendObservable(r(this),n),this.populateData(a),this.cleanDirty()}g.prototype.populateData=t.action(function(e){e&&this.formatItems.replace(d(function(e){return new n(e)},e))}),g.prototype.getItems=function(){return this.formatItems},g.prototype.initDefaultLayout=t.action(function(){var e=o[this.name],t=(0,i.default)(e).map(function(t){return new n(e[t])});this.formatItems.replace(t)}),g.prototype.addItem=t.action(function(e,t,a){var r=s[e],i=this.formatItems.length,o=l.getAvaiablePosition(this.formatItems,t,a),u=h({type:e},this.formatItems),d=String.generateNewName(r.defaultName,u,f("name"));t=r.width||t,a=r.height||a;var c={id:p("reportFormatItems_"),type:e,label:r.label,positionX:o.positionX,positionY:o.positionY,width:o.width,height:o.height,name:d,value:r.defaultValue,minHeight:r.minHeight},m=new n(c);this.formatItems.splice(i,0,m),this.markDirty()}),g.prototype.checkDirty=function(){var e=this.formatItems;if(!this.isDirty)for(var t=0;t=0&&(a.splice(r,1),String.checkDuplicate(e,a))},e.exports=g}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(63),n=a(34),i=a(268),o=a(118),l=a(1),s=l.uniqueId,u=l.lowerCase;function d(e){var a={type:"text",label:"Text",id:s("formatDetails_"),positionX:0,positionY:0,width:1,height:1,name:"",sortName:function(){return u(this.name)},value:"",format:null,font:{family:n.fontFamily.proxima,size:n.defaultFontSize,bold:!1,italic:!1,underline:!1,color:n.textColor,backgroundColor:n.textBackgrounColor},alignment:null,color:n.borderColor,imageUrl:"",imageDimensions:{imageWidth:1,imageHeight:1,isConstrainProportions:!0},dashStyle:n.defaultDashStyles,thickness:n.borderWidth,isSelected:!1,minHeight:o.DEFAULT_ITEM_MIN_HEIGHT};t.extendObservable(r(this),a),e&&this.populateData(e),this.resetDirty()}d.prototype.populateData=t.action(function(e){e=e||{},this.type=e.type,this.label=e.label,this.positionX=e.positionX,this.positionY=e.positionY,this.width=e.width,this.height=e.height,this.name=e.name,this.value=e.value,this.format=e.format,this.font=e.font||{family:n.fontFamily.proxima,size:n.defaultFontSize,bold:!1,italic:!1,underline:!1,color:n.textColor,backgroundColor:n.textBackgrounColor},this.alignment=e.alignment,this.color=e.color||n.borderColor,this.imageUrl=e.imageUrl,this.dashStyle=e.dashStyle||n.defaultDashStyles,this.thickness=e.thickness||n.borderWidth,this.minHeight=e.minHeight,this.imageDimensions=e.imageDimensions||{imageWidth:1,imageHeight:1,isConstrainProportions:!0}}),d.prototype.setPosition=t.action(function(e){this.positionX=e.positionX,this.positionY=e.positionY,this.width=e.width,this.height=e.height,this.markDirty()}),d.prototype.getValueByKey=function(e){return this[e]},d.prototype.setItemsDetails=t.action(function(e){var t=this.font,a=this.imageDimensions,r=(e=e||{}).imageDimensions||a;e.name&&i(this,"name",e.name),e.value&&i(this,"value",e.value),e.imageUrl&&i(this,"imageUrl",e.imageUrl),i(this,"format",e.format),i(this,"alignment",e.alignment),i(this,"color",e.color),i(this,"dashStyle",e.dashStyle),i(this,"thickness",e.thickness),i(t,"family",e.family),i(t,"size",e.size),i(t,"bold",e.bold),i(t,"italic",e.italic),i(t,"underline",e.underline),i(t,"color",e.textColor),i(t,"backgroundColor",e.textBackgrounColor),i(this,"width",e.width),i(this,"height",e.height),i(a,"imageWidth",r.imageWidth),i(a,"imageHeight",r.imageHeight),i(a,"isConstrainProportions",r.isConstrainProportions),this.markDirty()}),d.prototype.updateValueByKey=function(e,t){this[e]=t,this.markDirty()},e.exports=d}()},function(e,t,a){"use strict";(function(t){!function(){var r=a(5),n=a(118),i=a(63),o=a(1).isNil,l=function(e){var t={name:e.name||"",items:e.items||[],visible:e.visible||!1};r.extendObservable(i(this),t)};function s(){var e={name:n.TITLE,headerFooter:new l(n.HEADER_FOOTER),titleDescription:new l(n.TITLE_DESCRIPTION)};r.extendObservable(i(this),e)}l.prototype.setVisible=r.action(function(e,t){var a=o(t)||t;this.visible=e,a&&this.markDirty()}),s.prototype.readFromReport=r.action(function(e){t(e,"Report cannot be null or undefined");var a=e.header||{},r=e.titleDescription||{};this.headerFooter.setVisible(a.visible,!1),this.titleDescription.setVisible(r.visible,!1)}),s.prototype.setHeaderFooterVisible=function(e){this.headerFooter.setVisible(e)},s.prototype.getHeaderFooterVisible=function(){return this.headerFooter.visible},s.prototype.setTitleDescriptionVisible=function(e){this.titleDescription.setVisible(e)},s.prototype.getTitleDescriptionVisible=function(){return this.titleDescription.visible},s.prototype.checkDirty=function(){return this.headerFooter.isDirty||this.titleDescription.isDirty},s.prototype.cleanDirty=function(){this.headerFooter.resetDirty(),this.titleDescription.resetDirty()},e.exports=s}()}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=g(a(6)),i=g(a(2)),o=g(a(3)),l=g(a(7)),s=g(a(8)),u=a(0),d=g(u),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(1)),p=g(a(4)),f=g(a(2224)),h=g(a(25)),m=g(a(47));function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,h.default)()(m.default),y=(0,p.default)()(r=function(e){function t(){var e,a,r,o;(0,i.default)(this,t);for(var s=arguments.length,u=Array(s),d=0;d0&&void 0!==arguments[0]?arguments[0]:{};this.id=e.id,this.accessors=e.accessors||[],this.accessRight=e.accessRight,this.assignedType=e.assignedType,this.accessRightId=e.accessRightId,this.reportAccessRightId=e.reportAccessRightId,this.dashboardAccessRightId=e.dashboardAccessRightId,this.state=e.state,this.reportId=e.reportId,this.tempId=e.tempId||e.id,this.assignedTypeName=e.assignedTypeName,this.accessorNames=e.accessorNames||[],this.reportAccessRights=e.reportAccessRights,this.dashboardAccessRights=e.dashboardAccessRights}},{key:"updateSelected",value:function(e){this.selected=e}},{key:"checkDirty",value:function(){return this.isDirty}},{key:"updateValueByKey",value:function(e,t){this[t]=e,this.updateState(),this.markDirty()}},{key:"updateAccessRight",value:function(e,t){this[t]=e.value,this.updateState(),this.markDirty()}},{key:"delete",value:function(){this.selected=!1,this.state=A.DELETE,this.markDirty()}},{key:"updateAssignedType",value:function(e){this.assignedType=e,this.accessors=[],this.accessorNames=[],this.updateState(),this.markDirty()}},{key:"addMoreAccessors",value:function(e){var t=this;if(this.hasTenantAccessor){var a=this.accessors,r=O.map("id",e);O.flow(O.filter(function(e){return t.isAccessorTenantGroup(e)}),O.map(function(e){var r=O.find({tenantGroupId:e},t.tenantHierarchy);if(r){var n=O.map("tenantId",r.tenantGroupItems),i=O.filter(function(e){return O.some(function(t){return t===e},n)},a);O.forEach(function(e){return t.removeAccessor(e)},i)}}))(r)}O.forEach(function(e){O.isEmpty(e)||O.includes(e.id,t.accessors)||(t.accessors.push(e.id),t.accessorNames.push(e.name||e.fullName))},e),this.updateState(),this.markDirty()}},{key:"removeAccessor",value:function(e){var t=this.accessors.indexOf(e);t<0||(this.accessors.splice(t,1),this.accessorNames.splice(t,1))}},{key:"buildDataForSaveAccessSettings",value:function(){return{state:this.state,assignedType:this.assignedType,accessors:this.accessors,tempId:this.tempId,id:this.id,reportAccessRightId:this.reportAccessRightId,dashboardAccessRightId:this.dashboardAccessRightId}}},{key:"updateState",value:function(){this.state!==A.INSERT&&(this.state=A.UPDATE)}},{key:"updateAccessorList",value:function(e){var t=this;this.accessors.splice(0,this.accessors.length),this.accessorNames.splice(0,this.accessorNames.length),this.localRoles.splice(0,this.localRoles.length),O.forEach(function(e){t.accessors.push(e.id),t.accessorNames.push(e.name||e.fullName),O.isNil(e.tenantId)&&t.localRoles.push(e.id)},e),this.updateState(),this.markDirty()}},{key:"removeAllGlobalRoles",value:function(){this.accessors=this.localRoles}},{key:"isAccessorTenantGroup",value:function(e){if(!this.hasTenantAccessor)return!1;var t=O.flow(O.map("tenantGroupId"),O.filter(function(e){return e!==I.EMPTY_GUID}))(this.tenantHierarchy||[]);return O.indexOf(e,t)>=0}},{key:"getAccessorName",value:function(e){var t=O.indexOf(e,this.accessors),a=this.accessorNames[t];if(!this.hasTenantAccessor)return a;var r=this.isAccessorTenantGroup(e)?D.default.getText("COMMON_LABEL_TENANT_GROUP"):D.default.getText("COMMON_LABEL_TENANT");return a.startsWith(r+": ")?a:r+": "+a}}]),e}(),i=M(n.prototype,"accessors",[b.observable],{enumerable:!0,initializer:function(){return[]}}),o=M(n.prototype,"accessRight",[b.observable],{enumerable:!0,initializer:function(){return null}}),l=M(n.prototype,"assignedType",[b.observable],{enumerable:!0,initializer:function(){return null}}),s=M(n.prototype,"id",[b.observable],{enumerable:!0,initializer:function(){return null}}),u=M(n.prototype,"permissionId",[b.observable],{enumerable:!0,initializer:function(){return null}}),d=M(n.prototype,"reportId",[b.observable],{enumerable:!0,initializer:function(){return null}}),c=M(n.prototype,"selected",[b.observable],{enumerable:!0,initializer:function(){return!1}}),p=M(n.prototype,"state",[b.observable],{enumerable:!0,initializer:function(){return A.INSERT}}),f=M(n.prototype,"accessRightId",[b.observable],{enumerable:!0,initializer:function(){return null}}),h=M(n.prototype,"reportAccessRightId",[b.observable],{enumerable:!0,initializer:function(){return null}}),m=M(n.prototype,"dashboardAccessRightId",[b.observable],{enumerable:!0,initializer:function(){return null}}),g=M(n.prototype,"assignedTypeName",[b.observable],{enumerable:!0,initializer:function(){return null}}),E=M(n.prototype,"accessorNames",[b.observable],{enumerable:!0,initializer:function(){return[]}}),y=M(n.prototype,"reportAccessRights",[b.observable],{enumerable:!0,initializer:function(){return null}}),v=M(n.prototype,"dashboardAccessRights",[b.observable],{enumerable:!0,initializer:function(){return null}}),M(n.prototype,"hasRolesAccessor",[b.computed],(0,_.default)(n.prototype,"hasRolesAccessor"),n.prototype),M(n.prototype,"hasUserAccessor",[b.computed],(0,_.default)(n.prototype,"hasUserAccessor"),n.prototype),M(n.prototype,"hasTenantAccessor",[b.computed],(0,_.default)(n.prototype,"hasTenantAccessor"),n.prototype),M(n.prototype,"accessorsInfo",[b.computed],(0,_.default)(n.prototype,"accessorsInfo"),n.prototype),M(n.prototype,"populateData",[b.action],(0,_.default)(n.prototype,"populateData"),n.prototype),M(n.prototype,"updateSelected",[b.action],(0,_.default)(n.prototype,"updateSelected"),n.prototype),M(n.prototype,"updateValueByKey",[b.action],(0,_.default)(n.prototype,"updateValueByKey"),n.prototype),M(n.prototype,"updateAccessRight",[b.action],(0,_.default)(n.prototype,"updateAccessRight"),n.prototype),M(n.prototype,"delete",[b.action],(0,_.default)(n.prototype,"delete"),n.prototype),M(n.prototype,"updateAssignedType",[b.action],(0,_.default)(n.prototype,"updateAssignedType"),n.prototype),M(n.prototype,"addMoreAccessors",[b.action],(0,_.default)(n.prototype,"addMoreAccessors"),n.prototype),M(n.prototype,"updateState",[b.action],(0,_.default)(n.prototype,"updateState"),n.prototype),M(n.prototype,"updateAccessorList",[b.action],(0,_.default)(n.prototype,"updateAccessorList"),n.prototype),M(n.prototype,"removeAllGlobalRoles",[b.action],(0,_.default)(n.prototype,"removeAllGlobalRoles"),n.prototype),r=n))||r;t.default=F,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C=L(a(17)),b=L(a(23)),N=L(a(2)),A=L(a(3)),R=a(5),O=a(1),I=L(a(53)),D=L(a(337)),P=L(a(281));L(a(16));function L(e){return e&&e.__esModule?e:{default:e}}function M(e,t,a,r){a&&(0,C.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function F(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var k=(0,I.default)((n=function(){function e(t){(0,N.default)(this,e),M(this,"type",i,this),M(this,"top",o,this),M(this,"bottom",l,this),M(this,"left",s,this),M(this,"right",u,this),M(this,"header",d,this),M(this,"footer",c,this),t&&this.readData(t)}return(0,A.default)(e,[{key:"readData",value:function(e){this.type=e.type,this.top=e.topValue,this.bottom=e.bottomValue,this.left=e.leftValue,this.right=e.rightValue,this.header=e.headerValue,this.footer=e.footerValue}},{key:"prepareData",value:function(){return{type:this.type,topValue:this.top,bottomValue:this.bottom,leftValue:this.left,rightValue:this.right,headerValue:this.header,footerValue:this.footer}}},{key:"updateValueByKey",value:function(e,t){this[t]=e,this.markDirty()}}]),e}(),i=F(n.prototype,"type",[R.observable],{enumerable:!0,initializer:function(){return D.default.DEFAULT_VALUE}}),o=F(n.prototype,"top",[R.observable],{enumerable:!0,initializer:function(){return D.default.DEFAULT_VALUE}}),l=F(n.prototype,"bottom",[R.observable],{enumerable:!0,initializer:function(){return D.default.DEFAULT_VALUE}}),s=F(n.prototype,"left",[R.observable],{enumerable:!0,initializer:function(){return D.default.DEFAULT_VALUE}}),u=F(n.prototype,"right",[R.observable],{enumerable:!0,initializer:function(){return D.default.DEFAULT_VALUE}}),d=F(n.prototype,"header",[R.observable],{enumerable:!0,initializer:function(){return D.default.DEFAULT_VALUE}}),c=F(n.prototype,"footer",[R.observable],{enumerable:!0,initializer:function(){return D.default.DEFAULT_VALUE}}),F(n.prototype,"readData",[R.action],(0,b.default)(n.prototype,"readData"),n.prototype),F(n.prototype,"updateValueByKey",[R.action],(0,b.default)(n.prototype,"updateValueByKey"),n.prototype),r=n))||r,x=(0,I.default)((f=function(){function e(t){(0,N.default)(this,e),M(this,"id",h,this),M(this,"orientation",m,this),M(this,"centerOnPage",g,this),M(this,"pageBreakAfterReportPart",E,this),M(this,"pageSizeKey",y,this),M(this,"scaleX",v,this),M(this,"scaleY",T,this),this.scaleWidth=0,this.scaleHeight=0,M(this,"margins",_,this),M(this,"marginSettings",S,this),this.marginSettings=this.initMarginSettings(D.default.DEFAULT_SETTINGS),t&&this.readFromReport(t),this.resetDirty()}return(0,A.default)(e,[{key:"readFromReport",value:function(e){var t=e.exportFormatSetting||{},a=t.centerOnPage||{};this.orientation=t.orientation,this.margins=t.margins,this.centerOnPage.horizontally=a.horizontally,this.centerOnPage.vertically=a.vertically,this.pageBreakAfterReportPart=t.pageBreakAfterReportPart,this.updateMarginSettings(t.marginSettings)}},{key:"initMarginSettings",value:function(e){return(0,O.map)(function(e){return new k(e)},e)}},{key:"updateMarginSettings",value:function(e){var t=this;(0,O.forEach)(function(e){e&&(0,O.invokeArgs)("readData",[e],(0,O.find)({type:e.type},t.marginSettings))},e)}},{key:"getExportConfig",value:function(){return{orientation:this.orientation,margins:this.margins,centerOnPage:this.centerOnPage,pageBreakAfterReportPart:this.pageBreakAfterReportPart,marginSettings:this.allMarginSettings}}},{key:"updateValueByKey",value:function(e,t){this[t]=e,this.markDirty()}},{key:"updateCenterOnPageByKey",value:function(e,t){this.centerOnPage[t]=e,this.markDirty()}},{key:"checkDirty",value:function(){var e=(0,O.filter)(function(e){return e.checkDirty&&e.checkDirty()},this.marginSettings);return!(0,O.isEmpty)(e)||this.isDirty}},{key:"cleanDirty",value:function(){this.resetDirty(),(0,O.forEach)(function(e){return e.resetDirty()},this.marginSettings)}},{key:"getMaxByKey",value:function(e){var t=P.default.getPageSize(this.pageSizeKey,this.orientation),a=this.currentMarginSetting,r=(0,O.getOr)(0,"right",a),n=(0,O.getOr)(0,"left",a),i=(0,O.getOr)(0,"bottom",a),o=(0,O.getOr)(0,"top",a),l=(0,O.getOr)(0,"header",a),s=(0,O.getOr)(0,"footer",a),u=D.default.MAX_HEIGHT;switch(e){case D.default.MARGIN_KEY.LEFT:u=t.widthInInches-r-D.default.MIN_WIDTH;break;case D.default.MARGIN_KEY.RIGHT:u=t.widthInInches-n-D.default.MIN_WIDTH;break;case D.default.MARGIN_KEY.TOP:u=t.heightInInches-D.default.MIN_HEIGHT-(i+l+s);break;case D.default.MARGIN_KEY.BOTTOM:u=t.heightInInches-D.default.MIN_HEIGHT-(o+l+s);break;case D.default.MARGIN_KEY.HEADER:u=t.heightInInches-D.default.MIN_HEIGHT-(i+o+s);break;case D.default.MARGIN_KEY.FOOTER:u=t.heightInInches-D.default.MIN_HEIGHT-(i+l+o)}return Math.round(100*u)/100}},{key:"allMarginSettings",get:function(){return(0,O.map)(function(e){return e.prepareData()},this.marginSettings)}},{key:"currentMarginSetting",get:function(){return(0,O.find)({type:this.margins},this.marginSettings)||{}}},{key:"customMarginSettings",get:function(){return(0,O.find)({type:D.default.MARGIN_VALUE.CUSTOM},this.marginSettings)}},{key:"marginSettingInInches",get:function(){var e=(0,O.find)({type:this.margins},this.marginSettings);if(!e)return{margin:0};var t=(0,R.toJS)(e);return{marginTop:t.top&&t.top+"in",marginRight:t.right&&t.right+"in",marginBottom:t.bottom&&t.bottom+"in",marginLeft:t.left&&t.left+"in",header:t.header&&t.header+"in",footer:t.footer&&t.footer+"in"}}}]),e}(),h=F(f.prototype,"id",[R.observable],{enumerable:!0,initializer:function(){return(0,O.uniqueId)()}}),m=F(f.prototype,"orientation",[R.observable],{enumerable:!0,initializer:function(){return D.default.DEFAULT_VALUE}}),g=F(f.prototype,"centerOnPage",[R.observable],{enumerable:!0,initializer:function(){return{horizontally:!1,vertically:!1}}}),E=F(f.prototype,"pageBreakAfterReportPart",[R.observable],{enumerable:!0,initializer:function(){return!1}}),y=F(f.prototype,"pageSizeKey",[R.observable],{enumerable:!0,initializer:function(){return P.default.DEFAULT_PAGE_SIZE_KEY}}),v=F(f.prototype,"scaleX",[R.observable],{enumerable:!0,initializer:function(){return 1}}),T=F(f.prototype,"scaleY",[R.observable],{enumerable:!0,initializer:function(){return 1}}),_=F(f.prototype,"margins",[R.observable],{enumerable:!0,initializer:function(){return D.default.DEFAULT_VALUE}}),S=F(f.prototype,"marginSettings",[R.observable],{enumerable:!0,initializer:function(){return null}}),F(f.prototype,"allMarginSettings",[R.computed],(0,b.default)(f.prototype,"allMarginSettings"),f.prototype),F(f.prototype,"currentMarginSetting",[R.computed],(0,b.default)(f.prototype,"currentMarginSetting"),f.prototype),F(f.prototype,"customMarginSettings",[R.computed],(0,b.default)(f.prototype,"customMarginSettings"),f.prototype),F(f.prototype,"marginSettingInInches",[R.computed],(0,b.default)(f.prototype,"marginSettingInInches"),f.prototype),F(f.prototype,"readFromReport",[R.action],(0,b.default)(f.prototype,"readFromReport"),f.prototype),F(f.prototype,"initMarginSettings",[R.action],(0,b.default)(f.prototype,"initMarginSettings"),f.prototype),F(f.prototype,"updateMarginSettings",[R.action],(0,b.default)(f.prototype,"updateMarginSettings"),f.prototype),F(f.prototype,"updateValueByKey",[R.action],(0,b.default)(f.prototype,"updateValueByKey"),f.prototype),F(f.prototype,"updateCenterOnPageByKey",[R.action],(0,b.default)(f.prototype,"updateCenterOnPageByKey"),f.prototype),F(f.prototype,"cleanDirty",[R.action],(0,b.default)(f.prototype,"cleanDirty"),f.prototype),p=f))||p;t.default=x,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(5);function r(e){t.extendObservable(this,{isSubscriptionMode:!1,doesDisablePrintBtn:function(){return this.isSubscriptionMode},doesDisableEmailBtn:function(){return this.isSubscriptionMode},doesDisableExportBtn:function(){return this.isSubscriptionMode},doesDisableEditBtn:function(){return this.isSubscriptionMode},doesDisableUpdateResultBtn:function(){return this.isSubscriptionMode}}),e&&this.populateData(e)}r.prototype.populateData=function(e){this.isSubscriptionMode=e.isSubscriptionMode},r.prototype.reset=function(){this.isSubscriptionMode=!1},r.prototype.toggleSubscription=function(){this.isSubscriptionMode=!this.isSubscriptionMode},e.exports=r}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b,N,A=k(a(17)),R=k(a(23)),O=a(20),I=k(a(2)),D=k(a(3)),P=a(1),L=a(5),M=a(18),F=k(a(67));function k(e){return e&&e.__esModule?e:{default:e}}function x(e,t,a,r){a&&(0,A.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function w(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var B=(r=function(){function e(t){(0,I.default)(this,e),x(this,"id",n,this),x(this,"tempId",i,this),x(this,"name",o,this),x(this,"functionName",l,this),x(this,"expression",s,this),x(this,"izendaDataType",u,this),x(this,"isRunningField",d,this),x(this,"isCompositeField",c,this),x(this,"format",p,this),x(this,"suggestedDataType",f,this),x(this,"previewResult",h,this),x(this,"querySourceId",m,this),x(this,"fieldDataType",g,this),x(this,"type",E,this),x(this,"validExpression",y,this),x(this,"previewRecord",v,this),x(this,"formats",T,this),x(this,"dataTypes",_,this),x(this,"hasSupportDefaultTotal",S,this),x(this,"formatDataType",C,this),x(this,"canSetSubtotal",b,this),x(this,"font",N,this),t&&this.populateData(t)}return(0,D.default)(e,[{key:"functions",get:function(){return this.loadFunctionsForDataType()}},{key:"disablePreview",get:function(){return(this.type.functionLabel?!this.expression&&this.functionName===F.default.FUNCTION_NAME.EXPRESSION||this.functionName===F.default.FUNCTION_NAME.NONE:!this.expression)||!this.validExpression}}]),(0,D.default)(e,[{key:"populateData",value:function(e){e=e||{},this.id=e.id,this.tempId=e.tempId,this.name=e.name,this.functionName=e.functionName,this.expression=e.expression,this.izendaDataType=e.izendaDataType,this.isRunningField=e.isRunningField,this.isCompositeField=e.isCompositeField,this.format=e.format,this.suggestedDataType=e.suggestedDataType,this.previewResult=e.previewResult,this.querySourceId=e.querySourceId,this.fieldDataType=e.fieldDataType,this.type=e.type,this.validExpression=e.validExpression,this.previewRecord=e.previewRecord,this.formats=e.formats,this.hasSupportDefaultTotal=e.hasSupportDefaultTotal,this.formatDataType=e.formatDataType,this.canSetSubtotal=e.canSetSubtotal,this.font=e.font}},{key:"readInitialData",value:function(e,t){return e=e||{},this.name=e.name||"",this.functionName=e.functionName||F.default.FUNCTION_NAME.NONE,this.expression=e.expression||"",this.izendaDataType=e.izendaDataType||null,this.isRunningField=e.isRunningField||!1,this.isCompositeField=e.isCompositeField||!1,this.tempId=e.tempId,this.id=e.id||null,this.querySourceId=e.querySourceId||"",this.fieldDataType=e.fieldDataType||"",this.type=t||F.default.TYPES.ADD,this.validExpression=!!e.expression,this.previewRecord=e.previewRecord||null,this.format=e.format||{},this.hasSupportDefaultTotal=!(0,P.isBoolean)(e.hasSupportDefaultTotal)||e.hasSupportDefaultTotal,this.formatDataType=e.formatDataType||"",this.canSetSubtotal=!(0,P.isBoolean)(e.canSetSubtotal)||e.canSetSubtotal,this.font=e.font||{},(0,O.resolve)()}},{key:"clone",value:function(){var t=(0,L.toJS)(this),a=new e;return a.readInitialData(t,t.type),a}},{key:"changeFunctionName",value:function(e){this.functionName=e,this.loadSuggestedDataTypeByFunction(),e===F.default.FUNCTION_NAME.NONE&&this.resetData()}},{key:"resetData",value:function(){this.name="",this.expression="",this.izendaDataType=null,this.isRunningField=!1,this.isCompositeField=!1,this.format={},this.previewResult="",this.font={}}},{key:"changeFieldName",value:function(e){this.name=e}},{key:"changeExpression",value:function(e){this.expression=e}},{key:"changeDataType",value:function(e){this.izendaDataType=e}},{key:"changeFormat",value:function(e){this.format=e}},{key:"changeFont",value:function(e){this.font.isChanged=!0,e.size&&(this.font.size=e.size),e.family&&(this.font.family=e.family),void 0!==e.bold&&(this.font.bold=e.bold),void 0!==e.italic&&(this.font.italic=e.italic),void 0!==e.underline&&(this.font.underline=e.underline)}},{key:"changeFontColor",value:function(e){""!=e.color&&(this.font.color=e.color),""!=e.backgroundColor&&(this.font.backgroundColor=e.backgroundColor)}},{key:"changeLabelPosition",value:function(e){e&&(this.font.labelPosition=e)}},{key:"readDataType",value:function(e){var t=e.result||{};return t.izendaDataType&&(this.izendaDataType=t.izendaDataType,this.isRunningField=t.isRunningField,this.isCompositeField=t.isCompositeField),this.validExpression=(0,P.isEmpty)(e.messages),e.messages}},{key:"readPreviewResult",value:function(e){return e.messages?e.messages:(this.previewResult=(0,P.isNil)(e.value)?"":e.value,this.izendaDataType=e.dataType,null)}},{key:"loadDataTypeByValue",value:function(e){return(0,P.find)(function(t){return t.value===e},F.default.DATA_TYPES)}},{key:"loadFunctionsForDataType",value:function(){var e=this.getFinalDataType(),t=this.loadDataTypeByValue(e),a=t?(0,P.map)(function(e){return(0,P.find)({value:e},F.default.FUNCTIONS)},t.functions):[];return(0,P.remove)({value:F.default.FUNCTION_NAME.DEFAULT},a)}},{key:"loadSuggestedDataTypeByFunction",value:function(){this.izendaDataType=this.calculateSuggestedDataTypeByFunction()}},{key:"getFinalDataType",value:function(){return(0,P.isEmpty)(this.formatDataType)?this.fieldDataType:this.formatDataType}},{key:"calculateSuggestedDataTypeByFunction",value:function(){var e=(0,P.isEmpty)(this.formatDataType)?this.fieldDataType:this.formatDataType;switch(this.functionName){case F.default.FUNCTION_NAME.NONE:case F.default.FUNCTION_NAME.EXPRESSION:case F.default.FUNCTION_NAME.DEFAULT:return null;case F.default.FUNCTION_NAME.COUNT:case F.default.FUNCTION_NAME.COUNT_DISTINCT:return M.DATA_TYPES.NUMERIC;case F.default.FUNCTION_NAME.AVERAGE:case F.default.FUNCTION_NAME.SUM:case F.default.FUNCTION_NAME.SUM_DISTINCT:default:return e}}},{key:"doesFunctionAcceptDataType",value:function(){var e=this.calculateSuggestedDataTypeByFunction(),t=this.loadDataTypeByValue(e);return e===this.izendaDataType||-1!==(0,P.indexOf)(this.izendaDataType,t.toDataTypes)}}]),e}(),n=w(r.prototype,"id",[L.observable],{enumerable:!0,initializer:function(){return null}}),i=w(r.prototype,"tempId",[L.observable],{enumerable:!0,initializer:function(){return null}}),o=w(r.prototype,"name",[L.observable],{enumerable:!0,initializer:function(){return""}}),l=w(r.prototype,"functionName",[L.observable],{enumerable:!0,initializer:function(){return null}}),s=w(r.prototype,"expression",[L.observable],{enumerable:!0,initializer:function(){return""}}),u=w(r.prototype,"izendaDataType",[L.observable],{enumerable:!0,initializer:function(){return null}}),d=w(r.prototype,"isRunningField",[L.observable],{enumerable:!0,initializer:function(){return!1}}),c=w(r.prototype,"isCompositeField",[L.observable],{enumerable:!0,initializer:function(){return!1}}),p=w(r.prototype,"format",[L.observable],{enumerable:!0,initializer:function(){return{}}}),f=w(r.prototype,"suggestedDataType",[L.observable],{enumerable:!0,initializer:function(){return null}}),h=w(r.prototype,"previewResult",[L.observable],{enumerable:!0,initializer:function(){return""}}),m=w(r.prototype,"querySourceId",[L.observable],{enumerable:!0,initializer:function(){return null}}),g=w(r.prototype,"fieldDataType",[L.observable],{enumerable:!0,initializer:function(){return null}}),E=w(r.prototype,"type",[L.observable],{enumerable:!0,initializer:function(){return F.default.TYPES.ADD}}),y=w(r.prototype,"validExpression",[L.observable],{enumerable:!0,initializer:function(){return!1}}),v=w(r.prototype,"previewRecord",[L.observable],{enumerable:!0,initializer:function(){return null}}),T=w(r.prototype,"formats",[L.observable],{enumerable:!0,initializer:function(){return[]}}),_=w(r.prototype,"dataTypes",[L.observable],{enumerable:!0,initializer:function(){return F.default.DATA_TYPES}}),S=w(r.prototype,"hasSupportDefaultTotal",[L.observable],{enumerable:!0,initializer:function(){return!0}}),C=w(r.prototype,"formatDataType",[L.observable],{enumerable:!0,initializer:function(){return""}}),b=w(r.prototype,"canSetSubtotal",[L.observable],{enumerable:!0,initializer:function(){return!0}}),N=w(r.prototype,"font",[L.observable],{enumerable:!0,initializer:function(){return{}}}),w(r.prototype,"functions",[L.computed],(0,R.default)(r.prototype,"functions"),r.prototype),w(r.prototype,"disablePreview",[L.computed],(0,R.default)(r.prototype,"disablePreview"),r.prototype),w(r.prototype,"populateData",[L.action],(0,R.default)(r.prototype,"populateData"),r.prototype),w(r.prototype,"readInitialData",[L.action],(0,R.default)(r.prototype,"readInitialData"),r.prototype),w(r.prototype,"changeFunctionName",[L.action],(0,R.default)(r.prototype,"changeFunctionName"),r.prototype),w(r.prototype,"resetData",[L.action],(0,R.default)(r.prototype,"resetData"),r.prototype),w(r.prototype,"readDataType",[L.action],(0,R.default)(r.prototype,"readDataType"),r.prototype),w(r.prototype,"readPreviewResult",[L.action],(0,R.default)(r.prototype,"readPreviewResult"),r.prototype),r);t.default=B,e.exports=t.default},,function(e,t,a){"use strict";!function(){var t=a(5),r=a(402);e.exports=function(e){this.reportStore=e;var a={masterModel:e.model,subscribedInstancesStore:new r(!1)};t.extendObservable(this,a)}}()},function(e,t,a){"use strict";var r=a(20);!function(){var t=a(5),n=a(108),i=a(68),o=a(151).DEFAULT_VALUE,l=a(63),s=a(152),u=a(387),d=a(1),c=d.filter,p=d.isEmpty,f=d.every,h=d.some,m=d.forEach,g=d.isNil,E=d.isEqual,y=d.map,v=d.cloneDeep,T=d.uniqueId,_=d.findIndex,S=d.indexOf,C=d.get,b=d.find,N=d.placeholder;function A(e){var a={pageInfo:new n(o.SORT_DIRS,o.SEARCH_CRITERIA),subscribedInstances:[],emailTemplates:null,isSubscriptionMode:!0,scheduleInstances:[],activeInstances:function(){return c(function(e){return e.state!==i.DELETE},this.subscribedInstances)},hasAllActiveInstancesSelected:function(){return!p(this.activeInstances)&&f(["selectedValue",!0],this.activeInstances)},hasActiveInstancesSelected:function(){return!p(this.activeInstances)&&h(["selectedValue",!0],this.activeInstances)}};t.extendObservable(l(this),a),this.cleanDirty()}A.prototype.populateData=t.action(function(e){return e=e||{},this.subscribedInstances=[],m(function(e){this.subscribedInstances.push(new s(e))}.bind(this),e.result),this.pageInfo.setTotalRecords(e.total),this.cleanDirty(),(0,r.resolve)({})}),A.prototype.loadActiveInstances=function(){return c(function(e){return e.state!==i.DELETE},this.subscribedInstances)},A.prototype.populateEmailTemplates=function(e){return this.emailTemplates=e,this.markDirty(),(0,r.resolve)({})},A.prototype.checkDirty=function(){var e=c(function(e){return e.checkDirty&&e.checkDirty()},this.subscribedInstances);return!p(e)&&this.isDirty},A.prototype.cleanDirty=function(){m(function(e){e.cleanDirty&&e.cleanDirty()},this.subscribedInstances),this.resetDirty()},A.prototype.copySubscribedInstance=function(e){this.copy(this.subscribedInstances,e)},A.prototype.copyScheduleInstances=t.action(function(e){this.scheduleInstances=this.subscribedInstances,this.markDirty()}),A.prototype.copy=t.action(function(e,a){var r=t.action(function(e){m(function(e){e.state=i.INSERT,e.id=null,e.subscriptionId=null},e)}),n=t.action(function(t){var a=new s(v(o)),n=String.generateNewName(a.name,e,C("name"));return a.updateProperty("id",T("newInstance_")),a.updateProperty("name",n),a.updateProperty("state",i.INSERT),a.updateProperty("subscriptionFilterFields",o.subscriptionFilterFields&&v(u.toJS(o.subscriptionFilterFields))),a.updateProperty("subscriptionCommonFilterFields",o.subscriptionCommonFilterFields&&v(u.toJS(o.subscriptionCommonFilterFields))),r(a.subscriptionFilterFields),r(a.subscriptionCommonFilterFields),a}),o=function(t){return b(function(e){return e.id===t},e)}(a);if(o){var l=n(o);e.splice(0,0,l),this.pageInfo.increaseRecord(),this.markDirty()}}),A.prototype.buildDataForSaving=function(){return N(this.subscribedInstances).chain().filter(function(e){return e.state!==i.NONE}).forEach(function(e){e.state===i.INSERT&&(e.id=null)}).value()},A.prototype.removeSubscribedInstances=function(e){this.delete(this.subscribedInstances,e)},A.prototype.removeScheduleInstances=function(e){this.delete(this.scheduleInstances,e)},A.prototype.delete=t.action(function(e,t){var a=this.pageInfo;m(function(t){var r=_(function(e){return e.id===t},e);if(-1!==r){switch(e[r].state){case i.INSERT:e.splice(r,1);break;default:e[r].updateProperty("state",i.DELETE),e[r].updateSelectedValue(!1),m(function(e){e.state=i.DELETE},e[r].subscriptionFilterFields)}a.descreaseRecord()}},t);var r=a.totalRecords,n=a.pageIndex,o=a.pageSize,l=a.totalPage;r>0&&r%o==0&&n===l&&1!==n&&a.setPageIndex(n-1),this.markDirty()}),A.prototype.updateSubscribedInstances=t.action(function(e){var t=b(function(t){return E(t.id,e.id)},this.subscribedInstances);if(g(t))this.subscribedInstances.push(e),this.pageInfo.increaseRecord();else{var a=S(t,this.subscribedInstances);this.subscribedInstances[a]=e}this.markDirty()}),A.prototype.checkDuplicateInstanceName=function(e){return!!b(function(t){return t.name.toUpperCase()===e.name.toUpperCase()&&t.id!==e.id},this.loadActiveInstances())},A.prototype.setType=function(e){this.isSubscriptionMode=e},A.prototype.updateScheduleInstances=t.action(function(e,t){if(e)this.scheduleInstances=y(function(e){return new s(e)},this.subscribedInstances);else if(!g(t)){var a=b(function(e){return E(e.id,t.id)},this.scheduleInstances);if(g(a))this.scheduleInstances.push(t);else{var r=S(a,this.scheduleInstances);this.scheduleInstances[r]=t}}this.markDirty()}),A.prototype.resetPageModel=function(){this.pageInfo=new n(o.SORT_DIRS,o.SEARCH_CRITERIA)},A.prototype.selectAll=t.action(function(e){m(function(t){t.updateSelectedValue(e)},this.activeInstances)}),e.exports=A}()},,,function(e,t,a){"use strict";var r=a(20);!function(){var t=a(5),n=a(108),i=a(151).SYSTEM_VARIABLES.DEFAULT_VALUE,o=a(1).forEach,l=a(2241);function s(){var e={pageInfo:new n(i.SORT_DIRS,null),variables:[]};t.extendObservable(this,e)}s.prototype.populateData=t.action(function(e){return e=e||{},this.variables.clear(),o(function(e){this.variables.push(new l(e))}.bind(this),e.result),this.pageInfo.totalRecords=e.total,(0,r.resolve)(!0)}),s.prototype.resetPageModel=t.action(function(){this.pageInfo=new n(i.SORT_DIRS,null),this.variables.clear()}),e.exports=s}()},function(e,t,a){"use strict";!function(){var t=a(5);function r(e){t.extendObservable(this,{id:null,name:null,dataType:null,description:null,scope:null}),e&&this.populate(e)}r.prototype.populate=t.action(function(e){e=e||{},this.id=e.id,this.name=e.name,this.dataType=e.dataType,this.description=e.description,this.scope=e.scope}),e.exports=r}()},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=a(11).withHandlers,n=a(11).withProps,i=a(281),o=a(10),l=a(1),s=l.get,u=l.curry,d=t(n(function(e){return{printingMode:"true"===s("location.query.print",e)||e.printingMode&&e.setting}}),r({getContainerStyle:u(function(e,t){if(e.printingMode){var a=i.getPageSize(t.pageSizeKey,t.orientation);return{height:i.formatCSSValueInInches(a.heightInInches),width:i.formatCSSValueInInches(a.widthInInches)}}return{}}),getContainerClassName:u(function(e,t){var a=t.centerOnPage;return o("izenda-ReportBodyViewer u-bgWhite",{"center-horizontal":e.printingMode&&a.horizontally,"center-vertical":e.printingMode&&a.vertically,u_fullSize:!e.printingMode,u_table:e.setting})})}));e.exports=d}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={DefaultConfig:{Form:{DEFAULT_SORT:{columns:"Unsorted"}}}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(a(14)),n=c(a(198)),i=c(a(0)),o=c(a(13)),l=c(a(4)),s=c(a(32)),u=c(a(15)),d=c(a(26));function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){var t=e.label,a=(0,n.default)(e,["label"]);return i.default.createElement("a",(0,r.default)({},a,{className:"u_textLink"}),t)},f=function(e){var t=e.label,a=(0,n.default)(e,["label"]);return a.onClick=function(){},i.default.createElement("span",a,t)},h=function(e){var t=e.localization,a=e.dataSource;return i.default.createElement(s.default,{visible:!0,onClosed:function(){e.onAccept()},type:"none",sizeClass:"modal-sm"},i.default.createElement(s.default.Header,{title:t.getText("REPORTDESIGNER_DRILL_OTHERS_POPUP_LABEL")}),i.default.createElement(s.default.Body,null,i.default.createElement("div",{style:{height:150}},i.default.createElement(d.default,null,function(){if(!a)return t.getText("NO_VALUE_FOUND");var r=e.isClickable?p:f;return i.default.createElement(u.default,null,a.map(function(t){return i.default.createElement("div",{key:t.label,className:"u_paddingBottom overflow-text"},i.default.createElement(r,{label:t.label,onClick:function(t){e.onAccept(t)}.bind(null,t),title:t.label}))}))}()))))};h.propsType={dataSource:o.default.object,localization:o.default.object,isClickable:o.default.bool},t.default=(0,l.default)()(h),e.exports=t.default},function(e,t,a){"use strict";(function(t){var r,n,i,o,l,s,u,d,c;r=a(1),n=r.get,i=r.isNumber,o=r.stop,l=r.tail,s=r.size,u=r.getOr,d=r.isNil,c=r.isEmpty,e.exports=function(e){var a=7,r=10,p=500,f=130,h=20,m=3,g=1,E="#fff",y="#ccc",v="#000",T=10,_=e.getOptions().plotOptions,S=e.seriesTypes.column,C=e.wrap,b=e.each;function N(e,t){var r=e.options.izendaOptions,n=r.scaleTo-r.scaleFrom,i=(tr.scaleTo?n:t-r.scaleFrom)/n;return Math.max(Math.min(e.plotSizeY/a,e.plotSizeX),T)*i}_.izendaLinearGauge=e.merge(_.column,{}),e.seriesTypes.izendaLinearGauge=e.extendClass(S,{type:"izendaLinearGauge",drawPoints:function(){var e,t=this,a=this.chart,r=a.options,l=r.chart.type,s=a.renderer,u=T;if("izendaLinearGauge"!==l)return S.prototype.drawPoints.apply(this,arguments);b(t.points,function(l){var d,c=l.plotY,p=l.graphic;if(i(c)&&null!==l.y)if(e=l.shapeArgs,d=-Math.min(a.plotBox[n("chart.inverted",r)?"width":"height"],e.height),p)o(p),p.animate({translateX:u/3,translateY:d});else{var f=l.plotY+e.height,h=0-u,m=["M",0,f,"L",h,f+u/2,h,f-u/2];l.graphic=s.path(m).attr({fill:v,stroke:v}).add(t.markerGroup).animate({translateX:u/3,translateY:d})}else p&&(l.graphic=p.destroy())})},alignDataLabel:function(t,a,r,n,i){var o=N(this.chart,t.y);a=t.dataLabel;var l=this.chart.plotSizeX,s=this.chart.plotSizeY,u=a.height+a.padding,d=a.width+a.padding;this.chart.options.chart.inverted?(n={x:s-t.plotY-d/2,y:l-o-a.height}).x+d>s?n.x=s-d:n.x<0&&(n.x=0):(n={x:o,y:Math.max(t.plotY-u/2,-u/2)}).height=s-n.y-1,e.Series.prototype.alignDataLabel.call(this,t,a,r,n,i)}}),C(e.Axis.prototype,"getPlotLinePath",function(e,t){var a=this.chart.options.chart.type,r=l(arguments),n=e.apply(this,r);return"izendaLinearGauge"===a?function(e,t){var a=N(this.chart,e);return this.horiz?t[2]=t[5]-a:t[4]=t[1]+a,t}.call(this,t,n):n}),C(e.Chart.prototype,"init",function(a,i,o){var l,m=i.izendaOptions||{},g=n("chart.inverted",i);"izendaLinearGauge"===i.chart.type&&(i=e.merge(i,{chart:function(e){return e?{height:f,width:p,margin:[2*r,r,3*r,r]}:{height:p,width:f+3*r,margin:[2*r,3*r,r,4*r]}}(g),title:function(e,a,r){return e?t.extend(a,{align:r?"center":"left",verticalAlign:"top",useHTML:!0,text:String.format('{1}',.7*(r?p:f),m.serieName)}):t.extend(a,{text:""})}(m.showLabels,i.title,g),yAxis:{title:{enabled:!0,text:(l=m.dataUnit,s(l=l||"")>h?l.substring(0,h)+"...":l),x:g?0:-5,margin:0},plotBands:function(t){var a,r,n,i=t.yAxis||{},o=i.plotBands;if(!o||!o.length){a=i.min,r=i.max,n=u(r+a/2,"series[0].data[0][y]",t);var l=d(t.colors)?e.getOptions().colors[0]:c(t.colors)?v:t.colors[0];return[{from:a,to:n,color:l},{from:n,to:r,color:y}]}return o}(i),labels:{style:{fontSize:"14px"}}},xAxis:{lineWidth:0,tickLength:0,labels:{enabled:!1}}})),a.apply(this,[i,o])}),C(e.Chart.prototype,"getAxes",function(t){var a=this.options,o=a.izendaOptions||{},s=a.chart.type,u=n("chart.inverted",a);"izendaLinearGauge"===s&&(this.options.xAxis={lineWidth:0,tickLength:0,labels:{enabled:!1}},this.options.yAxis=e.merge(this.options.yAxis,function(e,t,a){var o=(e=e||{}).scaleFrom,l=e.scaleTo,s={tickLength:m,tickWidth:g,tickColor:E,gridLineColor:E,gridLineWidth:g,minorTickInterval:0,minorTickWidth:0,minorGridLineWidth:0,tickPositioner:function(){var t=this.len;return i(e.intervals)?function e(a){var r=[],n=o,i=Math.floor((l-o)/a),s=Math.floor(i&&t/i);if(a<0||!i||!s)return[o,l];if(s<50)return e(Math.min(2*a,l-o));for(;n+a<=l;)r.push(n),n+=a;return r.push(l),r}(e.intervals):[o,l]}};return!a&&function(e,t){var a=n("labels.formatter",t);e.labels={useHTML:!0,formatter:function(){return String.format('{1}',2*r,a.apply(this,arguments))}}}(s,t),s}(o,this.options.yAxis,u))),t.apply(this,l(arguments))})}}).call(t,a(27))},function(e,t,a){"use strict";(function(t){var r,n,i,o,l,s,u,d,c;r=a(1),n=r.get,i=r.last,o=r.getOr,l=r.truncate,s=r.times,u=r.inRange,d=r.constant,c=r.toString,e.exports=function(e){var a=15,r=10,p=10,f=14,h=e.getOptions().plotOptions,m=e.seriesTypes.pie,g=e.each;h.izendaSimpleGauge=e.merge(h.pie,{}),e.seriesTypes.izendaSimpleGauge=e.extendClass(m,{type:"izendaSimpleGauge",padding:10,drawGraph:null,getSymbol:function(){},searchPoint:function(){},redraw:function(){this.render()},translate:function(){this.generatePoints()},generatePoints:function(){var e=this,t=e.chart.options,a=e.points=[];t.series.map(function(t){a.push(new e.pointClass(e,t.data))})},drawPoint:function(e,a){var r=this.chart,i=r.options,o=r.plotBox,l=a.textColor||"black",s=r.renderer.g("serie-name").add(e),u=r.renderer.g("primary-kpi").add(e),d=r.renderer.g("sup-kpi").add(e);this.drawPointName(s,a,l),this.drawPrimaryKPI(u,a,l),this.drawSupKPI(d,a,l);var c=this.adjustPosition((o.width-u.getBBox().width)/2-this.padding,(r.containerHeight-u.getBBox().height)/2-u.getBBox().y,u);this.adjustPosition(c.x,c.y-s.getBBox().height+s.getBBox().y,s);var p=""===n("supplementaryKPI.name",a)?c.x+u.getBBox().width/2:c.x;this.adjustPosition(p,c.y-d.getBBox().y,d);var f=n("chart.events.click",i);f&&e.element&&t(e.element).css({cursor:"pointer"}).on("click",f)},adjustPosition:function(e,t,a){return a.attr({transform:["translate(",Math.max(e,0),",",Math.max(t,0),")"].join("")}),{x:e,y:t}},addText:function(e,a,r,n,i){i=i||this.maxChars;var o=this.adjustText(r,i);return this.chart.renderer.text(o).css(t.extend(e,{fontSize:a+"px"})).add(n).attr({title:r})},drawPointName:function(e,t,a){var r=this.getTitleSize(),i=this.chart.options;n("izendaOptions.showLabels",i)&&this.addText({color:a},r.fontSize,t.serieName,e,3*this.maxChars)},containerWidth:function(e){return e.getBBox().width},drawPrimaryKPI:function(a,r,n){var i=this.getPrimarySize(),o=e.extend({color:n,fontSize:i.unitFontSize+"px"},r.style),l=this.addText(t.extend({},o,this.getColorByThreshold(r.y,n)),i.fontSize,this.getFormattedData(r.y,r),a);this.addText(o,i.unitFontSize," "+r.unit,a).attr({transform:["translate(",l.getBBox().width,",",0,")"].join("")})},getColorByThreshold:function(e,t){for(var a=((this.chart.options||{}).izendaOptions||{}).threshold||[],r=0;r0){var g=e.regressionSettings.order||2;"linear"===i&&(g=1);var S=e.xAxisField.reportPartElm,C=S.fieldFormatData||(0,n.get)("format",S.getValueByKey("format")),b=(0,n.get)("INTERVAL_VALUE",s.DATE_TIME_FORMAT[C]);o=function(e,i,o,l,s){(0,n.isUndefined)(i)&&(i=2);for(var u=[],p=[],f=[],m=0,g=0,v=i+1,T=0;TMath.abs(e[a][i])&&(i=r);for(n=a;n=a;n--)e[n][r]-=e[n][a]*e[a][r]/e[a][a]}for(r=l-1;r>=0;r--){for(o=0,n=r+1;n=0;B--)w+=B>1?Math.round(100*R[B])/100+"x^"+B+" + ":1===B?Math.round(100*R[B])/100+"x + ":Math.round(100*R[B])/100;return{equation:R,points:f,string:w}}(u,g,l.extrapolate,e.regressionSettings.decimalPlaces,b)}else"logarithmic"===i&&(o=function(e,t){for(var a=[0,0,0,0],r=0,i=[],o=e.length;rt[0]?1:e[0]1&&(0,u.isChartType)(s,l.CHART_TYPE.Line,l.CHART_TYPE.Column,l.CHART_TYPE.Bar,l.CHART_TYPE.Area,l.CHART_TYPE.Combination,l.CHART_TYPE.Bubble,l.CHART_TYPE.Scatter)){var h=f(p);h&&(r.push(h),i=Math.max(h.extrapolate,i)),arguments[1].series[c].rendered=!0}}if(r.length>0&&(arguments[1].series=t.concat(r),!(0,n.isNil)(arguments[1].xAxis.categories))){var m=new Array(i);m=(0,n.fill)(0,m.length,"",m),arguments[1].xAxis.categories=arguments[1].xAxis.categories.concat(m)}e.apply(this,Array.prototype.slice.call(arguments,1))}),e.wrap(e.Chart.prototype,"addSeries",function(e){var t=arguments[1];g();var a=f(t);arguments[1].rendered=!0,a&&this.addSeries(a),e.apply(this,Array.prototype.slice.call(arguments,1))})};var r,n=a(1),i=a(22),o=(r=i)&&r.__esModule?r:{default:r},l=a(36),s=a(227),u=a(50);e.exports=t.default},function(e,t,a){"use strict";(function(t){var r,n=a(14),i=(r=n)&&r.__esModule?r:{default:r};!function(){var r=a(1),n=(r.constant,r.get);r.times;e.exports=function(e){var a=10,r=e.getOptions().plotOptions,o=e.seriesTypes.izendaSimpleGauge,l=e.each;r.izendaKPIMetric=e.merge(r.izendaSimpleGauge,{}),e.seriesTypes.izendaKPIMetric=e.extendClass(o,{type:"izendaKPIMetric",padding:10,drawPoint:function(e,a){var r=this.chart,i=r.options,o=r.plotBox,l=a.textColor||"black",s=r.renderer.g("primary-kpi").add(e);this.drawPrimaryKPI(s,a,l),this.adjustPosition((o.width-s.getBBox().width)/2,(r.containerHeight-s.getBBox().height)/2-s.getBBox().y,s);var u=n("chart.events.click",i);u&&e.element&&t(e.element).css({cursor:"pointer"}).on("click",u)},findFontSize:function(){var e=this.chart,t=0,a=e.options.series[0].data[0],r=this.getFormattedData(a.y,a);do{t++;var n=e.renderer.text(r).css((0,i.default)({},e.renderer.style,{fontSize:t+"px"})).add(),o=n.getBBox();n.destroy()}while(o.width'),void(n&&n.apply(this,arguments));if(r("izendaOptions.fillContainer",a)){var s=r("chart.width",a),u=r("chart.height",a);return!s&&(a.chart.width=o),!u&&(a.chart.height=l),e.call(this,a,n)}if(!r("izendaOptions.autoResized",a))return e.call(this,a,n);e.call(this,a,function(e){var t=e.container,a=t.offsetHeight,r=t.offsetWidth,i=o/r,s=l/a,u=Math.min(i,s),d=String.format("scale({0}, {0})",u),c=String.format("{0} 0%",o>=r?"50%":"0%"),p=e.container.style.cssText;e.container.setAttribute("style",p+" \n transform: "+d+"; transform-origin: "+c+";\n -webkit-transform: "+d+"; -webkit-transform-origin: "+c+";\n -moz-transform: "+d+"; -moz-transform-origin: "+c+";\n -o-transform: "+d+"; -o-transform-origin: "+c+";"),n&&n.apply(this,arguments)})}),e.wrap(e.Series.prototype,"drawDataLabels",function(e){e.apply(this,arguments);var a=this.options.dataLabels;this.points.forEach(function(e){var n=e.dataLabel;if(n){var i=n.element,o=a.getData&&a.getData.apply(e.getLabelConfig());r("isKeepDataInMultiLevel",o)?t(i).attr(t.extend(o,{class:t("
"+n.textStr+"
").find("a").attr("class")})):t(i).attr(t.extend(o,{class:a.className}))}})})}}).call(t,a(27))},function(e,t,a){"use strict";(function(e){var t,r,n=a(175),i=(t=n)&&t.__esModule?t:{default:t};r=function(e){var t=3,r=e.wrap,n=e.each,i=e.extend,o=e.isNumber,l=e.Series,s=e.SVGRenderer,u=e.Chart,d=a(1),c=d.get,p=(d.includes,d.size);function f(e,t,a,r,n,i){var o=(i-t)*(a-e)-(r-t)*(n-e);return o>0||!(o<0)}function h(e,t,a,r,n,i,o,l){return f(e,t,n,i,o,l)!==f(a,r,n,i,o,l)&&f(e,t,a,r,n,i)!==f(e,t,a,r,o,l)}function m(e,t,a,r,n,i,o,l){return h(e,t,e+a,t,n,i,o,l)||h(e+a,t,e+a,t+r,n,i,o,l)||h(e,t+r,e+a,t+r,n,i,o,l)||h(e,t,e,t+r,n,i,o,l)}function g(e){var a=this;e.call(a),clearTimeout(a.seriesLabelTimer),a.seriesLabelTimer=setTimeout(function(){a.boxesToAvoid=[],p(a.series)<=0||(a.series,n(a.series,function(e){var t=e.options.label;t.enabled&&e.visible&&(e.graph||e.area)&&(e.interpolatedPoints=e.getPointsOnGraph(),n(t.boxesToAvoid||[],function(e){a.boxesToAvoid.push(e)}))}),n(a.series,function(e){var r,n,o,l,s,u,d=c("yAxis.pos",e),p=c("xAxis.pos",e),f=c("yAxis.len",e),h=c("xAxis.len",e),m=[],g=a.inverted,E=g?d:p,y=g?p:d,v=a.inverted?f:h,T=a.inverted?h:f,_=e.interpolatedPoints;function S(e,t,a){return e>E&&e<=E+v-a.width&&t>=y&&t<=y+T-a.height}if(e.visible&&_){for(e.labelBySeries||(e.labelBySeries=a.renderer.label(e.name,0,-9999,"connector").css(i({color:e.color},e.options.label.styles)).attr({padding:0,opacity:0,stroke:e.color,"stroke-width":1}).add(e.group).animate({opacity:1},{duration:200})),(r=e.labelBySeries.getBBox()).width=Math.round(r.width),s=_.length-1;s>0;s-=1)S(n=_[s].chartX+t,o=_[s].chartY-r.height-t,r)&&(u=e.checkClearPoint(n,o,r)),u&&m.push(u),S(n=_[s].chartX+t,o=_[s].chartY+t,r)&&(u=e.checkClearPoint(n,o,r)),u&&m.push(u),S(n=_[s].chartX-r.width-t,o=_[s].chartY+t,r)&&(u=e.checkClearPoint(n,o,r)),u&&m.push(u),S(n=_[s].chartX-r.width-t,o=_[s].chartY-r.height-t,r)&&(u=e.checkClearPoint(n,o,r)),u&&m.push(u);if(!m.length)for(n=E+v-r.width;n>=E;n-=16)for(o=y;ot+r?i.push("L",e+d,t+r):ue+a&&i.push("L",e+a,t+r/2)),i||[]},l.prototype.getPointsOnGraph=function(){var e,t,a,r,n,i,l,s,u,d,c=this.points,p=[],f=this.graph||this.area,h=f.element,m=this.chart.inverted,g=m?this.yAxis.pos:this.xAxis.pos,E=m?this.xAxis.pos:this.yAxis.pos;if(this.getPointSpline&&h.getPointAtLength){for(f.toD&&(d=f.attr("d"),f.attr({d:f.toD})),l=h.getTotalLength(),a=0;a0&&(r=Math.abs(e.chartX-t.chartX),n=Math.abs(e.chartY-t.chartY),(i=Math.max(r,n))>16))for(s=Math.ceil(i/16),u=1;uc.right||p.rightc.bottom||p.bottom=i)&&(void 0===o||t<=o)){l=s.color,a&&(a.dataClass=u,a.colorIndex=s.colorIndex);break}}else{for(n=hd[u][0]););i=d[u]||d[u+1],n=1-((o=d[u+1]||i)[0]-n)/(o[0]-i[0]||1),l=i.color.tweenTo(o.color,n)}return l})},e.exports=t.default},,function(e,t,a){"use strict";var r=o(a(357)),n=o(a(2257)),i=o(a(716));function o(e){return e&&e.__esModule?e:{default:e}}r.default.registerVisualizationEngine(i.default,n.default)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(a(20)),n=_(a(359)),i=_(a(70)),o=_(a(2258)),l=_(a(6)),s=_(a(2)),u=_(a(3)),d=_(a(7)),c=_(a(8)),p=_(a(85)),f=a(1),h=a(2261),m=_(a(362)),g=_(a(16)),E=_(a(43)),y=_(a(2262)),v=a(2264),T=_(a(2265));function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(){var e;(0,s.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n-1||n.call(r,e,t)};var i=this;if(this.scriptCache=this.scriptCache?this.scriptCache:(0,v.ScriptCache)(window,{izGoogle:(0,h.GoogleApi)({apiKey:(0,f.isEmpty)(g.default.googleApiKey)?"invalid key":g.default.googleApiKey,v:E.default.GoogleMapJSApiVersion})}),!window.google){return this.scriptCache.izGoogle.onLoad(function(r){r?a.drawingService.drawFailing(a.chartContainer):(a.google=window.google,a.drawProcess.call(a,i,a.chartContainer,e,t))})}this.google=window.google,this.drawProcess.call(this,i,this.chartContainer,e,t)}},{key:"drawToIFrame",value:function(e,t){var a=this.chartContainer.getElementsByTagName("iframe")[0];a&&this.clearIFrame(a);var r=document.createElement("iframe");r.setAttribute("src",this.getEmptyPageUrl()),r.setAttribute("style","width: 100%; height: 100%; border: none;");var n=this,i=n.googleApiUrl,o=n.izendaUICssLink;r.onload=function(){var a=r.contentDocument;a.getElementsByTagName("body")[0].style.margin=0;var l=document.createElement("script");l.type="text/javascript",l.src=i+"&callback=showMap",a.querySelector("body").appendChild(l);var s=document.createElement("link");s.rel="stylesheet",s.href=o,a.getElementsByTagName("head")[0].appendChild(s);var u=a.createElement("div");u.setAttribute("style","width: 100%; height: 100%"),u.className="container";var d=a.createElement("div");d.className="izenda-root izenda-container";var c=a.createElement("section");c.className="izenda page u_overflowHidden",d.appendChild(c);var p=a.createElement("div");p.className="izenda-Wrapper-content",p.setAttribute("style","width: 100%; height: 100%"),c.appendChild(p),u.appendChild(d),a.body.appendChild(u),r.contentWindow.showMap=function(){n.drawProcess.call(this,n,p,e,t)},this.contentWindow.gm_authFailure=n.onAuthFailure.bind(n)},this.chartContainer.appendChild(r),this.iframe=r}},{key:"clearIFrame",value:function(e){e instanceof HTMLIFrameElement&&e.remove()}},{key:"getEmptyPageUrl",value:function(){var e=E.default.RootPath||"/";return"/"!=e.substr(-1)&&(e+="/"),e+=T.default}},{key:"resolveIzendaUICSS",value:function(){var e=/.*\/izenda-ui\.css/;return((0,f.find)(function(t){return t.href.match(e)},document.getElementsByTagName("link"))||{}).href}},{key:"onAuthFailure",value:function(){this.drawingService.drawFailing(this.chartContainer),this.shouldRender=!1}},{key:"createCustomMapOptions",value:function(e,t){var a=t.mapOptions,r=t.mapOptions.zoomControl,n=t.zoomControlOptions.position,l=t.printingMode,s=a,u=e.clientWidth;if((0,f.isNil)(a.zoom)){s.zoom=Math.round((0,o.default)(u/256));var d=t.changeZoomLevel;d&&d(s.zoom)}else s.zoom=a.zoom;return l&&(s.zoomControl=!1),r&&(s=(0,i.default)({zoomControlOptions:{position:this.google.maps.ControlPosition[n]}},a)),s}},{key:"refresh",value:function(e){var t=this,a=e.key,r=e.nextDisplayStatus;this.map.izItems.get(a).forEach(function(e){return e.setMap(r?t.map:null)});var n=(0,f.find)({key:a},this.map.izMapLabels);n&&(n.display=r,n.items.forEach(function(e){return r?e.open():e.close()})),C(this.map.izMapLabels)}},{key:"finish",value:function(e,t){var a=function(e){return setTimeout(function(){t.then(function(){return e&&e()})},0)},r=null;try{this.google.maps.event.addListenerOnce(this.map,"idle",function(){r=a(e)})}catch(t){r=a(e)}finally{r&&r()}}},{key:"drawProcess",value:function(e,t,a,o){var l=this,s=e.createCustomMapOptions.call(this,t,a),u=(0,i.default)(p.default.GOOGLE_MAPS_DEFAULT_OPTION,s);this.map=new this.google.maps.Map(t,u),this.map.izItems=new n.default,this.map.izMapLabels=[],this.map.refresh=function(){for(var t,a=arguments.length,r=Array(a),n=0;n'}},{key:"drawTooltip",value:function(e,t,a){var n=t.isBubble,i=t.value,o=this,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"mouseover",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"mouseout";r(!(0,u.isUndefined)(e)&&!(0,u.isUndefined)(a),"Anchor and content must be provided.");var d=this.resolveInfoWindow(e,{border:!0});if(d){var c=this,p=function(e){!n&&c.isBubbleHover||(n&&(c.isBubbleHover=!0),d.setPosition(e.latLng||o.mousePositionAsLatLng),d.setContent(a),d.open(),!n&&o.map.izShowGradientCaret&&o.map.izShowGradientCaret(!0,i))},f=function(){n&&(c.isBubbleHover=!1),d.close(),!n&&o.map.izShowGradientCaret&&o.map.izShowGradientCaret(!1)};return this.addListener(e,l,p),this.addListener(e,s,f),function(){c.addDomListener(this._html.wrapper,l,p),c.addDomListener(this._html.wrapper,s,f)}}}},{key:"addListener",value:function(e,t,a){r(!(0,u.isUndefined)(this.map),"Map must be provided."),this.map.izListeners=this.map.izListeners?this.map.izListeners:[];var n=this.google.maps.event.addListener(e,t,a);this.map.izListeners.push(n)}},{key:"addDomListener",value:function(e,t,a){r(!(0,u.isUndefined)(this.map),"Map must be provided."),this.map.izListeners=this.map.izListeners?this.map.izListeners:[];var n=this.google.maps.event.addDomListener(e,t,a);this.map.izListeners.push(n)}},{key:"clearAllListeners",value:function(){r(!(0,u.isUndefined)(this.map),"Map must be provided."),this.map.izListeners&&this.map.izListeners.forEach(function(e){return e&&e.remove()})}},{key:"drawShading",value:function(e){var t=this;r(!(0,u.isUndefined)(this.map),"Map must be provided.");var a=e.shadingSeries;(0,u.isEmpty)(a)||a.forEach(function(a){return a.display&&t.drawBoundary("shadingSeries",e,a)})}},{key:"getEmptyMarkerIcon",value:function(){return{scale:0,path:this.google.maps.SymbolPath.CIRCLE}}},{key:"drawLegend",value:function(e,t){var a=e.legend;if(a&&a.enabled&&!(0,u.isEmpty)(a.series)){var r=document.createElement("div");r.className="izenda-GoogleMaps-LegendWrapper",r.index=1,r.style.maxWidth="100%";var n=new c.default(this.map,r,{legend:a},t),i=this.google.maps.ControlPosition[a.position];return this.map.controls[i].push(r),n.showGradientCaret}t&&t()}},{key:"getBubble",value:function(e,t,a,r){return{path:this.google.maps.SymbolPath.CIRCLE,fillColor:t,fillOpacity:v,scale:(0,u.isFinite)(a)?Math.max(e.formatedValue*a,g):m,strokeColor:t,strokeWeight:r}}},{key:"drawBubbleItem",value:function(e,t,a,r){var n=this,i=r.name,o=r.data,l=r.metricName,s=m/a,c=t.optionByType,p=(0,f.composeItemKey)([e,i,l]),h=(0,u.get)("izendaOptions.dataLabels",c),g=(0,u.get)("tooltip.enabled",c),v=(0,u.get)("plotOptions.series.dataLabels.rotation",t),T=(0,u.get)("plotOptions.series.states.hover.enabled",t),_=[];o.forEach(function(t){if((0,d.isValidLatLong)(t.lat,t.lon)&&!(0,u.isNil)(t.formatedValue)){var a={lat:parseFloat(t.lat),lng:parseFloat(t.lon)},r=(0,u.get)("formattedPointName",t),i=n.getBubble(t,t.color,s,E),o=new n.google.maps.Marker({position:a,icon:i,cursor:"default",map:n.map});_.push(o);var l=g&&n.drawTooltip(o,{isBubble:!0},t.tooltip,"mouseover","mouseout");h&&n.drawLabel(o,{content:r,color:t.textColor,rotation:v,action:t.action,tooltipCallback:l,key:p,seriesType:e}),T&&(n.addListener(o,"mouseover",function(){return o.setIcon(n.getBubble(t,t.color,s,y))}),n.addListener(o,"mouseout",function(){return o.setIcon(i)}))}}),this.map.izItems.set(p,_)}},{key:"drawLabel",value:function(e,t){if(r(!(0,u.isUndefined)(e)&&!(0,u.isUndefined)(t),"Anchor and options must be provided."),e.getPosition()){var a=this,n={backgroundColor:"transparent",border:!1,shadow:!1,fontColor:t.color,isLabel:!0,padding:"0px",rotation:t.rotation,isLink:!(0,u.isNil)(t.action),callbacks:{open:function(){a.addDomListener(this._html.wrapper,"click",t.action),t.tooltipCallback&&t.tooltipCallback.apply(this)}}},i=this.resolveInfoWindow(e,n);if(i){i.setContent(t.content),i.open();var o=t.key,l=(0,u.find)({key:o},this.map.izMapLabels);l?l.items.push(i):this.map.izMapLabels.push({key:o,display:!0,seriesType:t.seriesType,items:[i]})}}}},{key:"resolveInfoWindow",value:function(e,t){return this.map?new(a(2263)(this.google))((0,i.default)({map:this.map,marker:e},t)):null}},{key:"drawBoundary",value:function(e,t,a){var r=this,i=a.name,o=a.data,l=a.metricName,s=t.optionByType,c=(0,u.get)("izendaOptions.dataLabels",s),p=(0,u.get)("tooltip.enabled",s),h=(0,u.get)("plotOptions.series.dataLabels.rotation",t),m=(0,u.get)("plotOptions.series.states.hover.enabled",t),g=[],y=(0,f.composeItemKey)([e,i,l]);o.forEach(function(t){if(!(0,u.isEmpty)(t.pointInfo.coordinates)&&!(0,u.isNil)(t.formatedValue)){var a=JSON.parse(t.pointInfo.coordinates);a=(0,u.map)(function(e){return(0,u.map)(function(e){return{lng:(0,n.default)(e.lng),lat:(0,n.default)(e.lat)}},e)},a);var i=new r.google.maps.Polygon({paths:a,fillColor:t.color,strokeColor:t.color,strokeOpacity:T,strokeWeight:E,fillOpacity:C});g.push(i),m&&(r.addListener(i,"mouseover",function(){return i.setOptions({fillOpacity:b,strokeWeight:S})}),r.addListener(i,"mouseout",function(){return i.setOptions({fillOpacity:C,strokeWeight:_})}));var o=p&&r.drawTooltip(i,{isBubble:!1,value:t.originalValue||t.value},t.tooltip,"mousemove","mouseout");if(c&&(0,d.isValidLatLong)(t.lat,t.lon)){var l={lat:parseFloat(t.lat),lng:parseFloat(t.lon)},s=(0,u.get)("formattedPointName",t),f=new r.google.maps.Marker({position:l,map:r.map,icon:r.getEmptyMarkerIcon(),cursor:"default"});r.drawLabel(f,{content:s,color:t.textColor,rotation:h,action:t.action,tooltipCallback:o,key:y,seriesType:e})}}}),this.map.izItems.set(y,g)}}]),e}();t.default=N,e.exports=t.default}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(a(6)),n=c(a(2)),i=c(a(3)),o=c(a(7)),l=c(a(8)),s=c(a(175)),u=c(a(58));t.default=function(e){function t(t){if(void 0!==t&&null!==t){if(t instanceof e.maps.LatLng)return t;if(void 0!==t.lat&&void 0!==t.lng)return new e.maps.LatLng(t)}return null}return function(a){function c(a){(0,n.default)(this,c);var i=(0,o.default)(this,(c.__proto__||(0,r.default)(c)).call(this,a));if(void 0===e)return(0,o.default)(i);i._html=null,i._opts=function(e){var t={};return T(t,E),T(t,e),(0,u.default)(E).forEach(function(e){var a=E[e];if("object"===(void 0===a?"undefined":(0,s.default)(a))){var r={};T(r,a),T(r,t[e]),t[e]=r}}),t}(a),i._callbacks=i._opts.callbacks||{},i._marker=i._opts.marker,i._map=i._opts.map,i._position=t(i._opts.position),i._isOpen=!1,i._listeners=[],i._marker&&i._opts.openOnMarkerClick&&i.trackListener(e.maps.event.addListener(i._marker,"click",function(){i.getMap()||i.open()}),!0),i._position&&!i._opts.offset&&(i._opts.offset={top:"0px",left:"0px"});var l=a.placement||i._opts.position;return("string"==typeof l||l instanceof String)&&(l=l.toLowerCase()),i._opts.placement="top"!==l&&"bottom"!==l&&"left"!==l&&"right"!==l?E.placement:l,void 0===(l=i._opts.position)||null===l||"string"==typeof l||l instanceof String||(i._opts.position=l),void 0!==i._opts.border&&!0!==i._opts.border||(i._opts.border={}),void 0===i._opts.pointer&&(i._opts.pointer=E.pointer),void 0!==i._opts.shadow&&!0!==i._opts.shadow||(i._opts.shadow={}),i}return(0,l.default)(c,a),(0,i.default)(c,[{key:"activateCallback",value:function(e){var t=this._callbacks[e];return t?t.apply(this):void 0}},{key:"trackListener",value:function(e,t){this._listeners.push({listener:e,persistent:t})}},{key:"clearListeners",value:function(t){this._listeners&&(this._listeners.forEach(function(a){!t&&a.persistent||(e.maps.event.removeListener(a.listener),a.listener=null)}),this._listeners=this._listeners.filter(function(e){return null!=e.listener}))}},{key:"isOpen",value:function(){return this._isOpen}},{key:"open",value:function(){var e=this.activateCallback("beforeOpen");(void 0===e||e)&&(this._marker?this.setMap(this._marker.getMap()||this._map):this._map&&this._position&&this.setMap(this._map))}},{key:"close",value:function(){var e=this.activateCallback("beforeClose");(void 0===e||e)&&(this.clearListeners(),this.setMap(null))}},{key:"destroy",value:function(){this.getMap()&&this.setMap(null),this.clearListeners(!0)}},{key:"setContent",value:function(e){this._opts.content=e,this._html&&this._html.content&&S(this._html.content,e)}},{key:"setPosition",value:function(e){this._position=t(e),this._isOpen&&this._position&&(this.draw(),this.resize(),this.reposition())}},{key:"setWrapperClass",value:function(e){if(this._html&&this._html.wrapper){var t=this._html.wrapper;t.className=p+"wrapper-"+this._opts.placement,this._opts.border&&(t.className+=" "+p+"has-border"),this._opts.isLabel&&(t.className+=" "+p+"label"),this._opts.isLink&&(t.className+=" "+p+"link"),e&&(t.className+=" "+e)}this._opts.wrapperClass=e}},{key:"getWrapper",value:function(){return this._html?this._html.wrapper:null}},{key:"draw",value:function(){if(this.getMap()&&this._html&&(this._marker||this._position)){var t=this._opts.offset;t&&(t.left&&(this._html.wrapper.style.marginLeft=t.left),t.top&&(this._html.wrapper.style.marginTop=t.top));var a=this._opts.backgroundColor;if(a&&(this._html.contentWrapper.style.backgroundColor=a,this._opts.pointer&&(this._html.pointerBg.style["border"+C(this._opts.placement)+"Color"]=a)),this._opts.padding&&(this._html.contentWrapper.style.padding=this._opts.padding,this._opts.shadow&&(this._html.shadowFrame.style.padding=this._opts.padding)),this._opts.borderRadius&&(this._html.contentWrapper.style.borderRadius=this._opts.borderRadius,this._opts.shadow&&(this._html.shadowFrame.style.borderRadius=this._opts.borderRadius)),this._opts.fontSize&&(this._html.wrapper.style.fontSize=this._opts.fontSize),this._opts.fontColor&&(this._html.contentWrapper.style.color=this._opts.fontColor),this._opts.pointer&&!0!==this._opts.pointer&&(this._opts.shadow&&(this._html.shadowPointer.style.width=this._opts.pointer,this._html.shadowPointer.style.height=this._opts.pointer),this._html.pointerBorder&&(this._html.pointerBorder.style.borderWidth=this._opts.pointer),this._html.pointerBg.style.borderWidth=this._opts.pointer),this._opts.border){var r=0;if(void 0!==this._opts.border.width&&(r=_(this._opts.border.width,"0px"),this._html.contentWrapper.style.borderWidth=r.value+r.units),r=_((r=Math.round((this._html.contentWrapper.offsetWidth-this._html.contentWrapper.clientWidth)/2))+"px","0px"),this._opts.pointer){var n=Math.min(this._html.pointerBorder.offsetHeight,this._html.pointerBorder.offsetWidth);n=_(n+"px","0px");var i=Math.round(r.value*(f-1));i=Math.min(i,n.value),this._html.pointerBg.style.borderWidth=n.value-i+n.units;var o=C(function(e){if("top"===e)return"bottom";if("bottom"===e)return"top";if("left"===e)return"right";if("right"===e)return"left";return e}(this._opts.placement));this._html.pointerBg.style["margin"+o]=i+r.units,this._html.pointerBg.style[this._opts.placement]=-r.value+r.units}var l=this._opts.border.color;l&&(this._html.contentWrapper.style.borderColor=l,this._html.pointerBorder&&(this._html.pointerBorder.style["border"+C(this._opts.placement)+"Color"]=l))}if(this._opts.shadow){var s=this._opts.shadow,u=function(e){var t=s[e];return void 0!==t&&null!=t};if(u("h")||u("v")||u("blur")||u("spread")||u("color")){var d=_(s.h,g.h),c=_(s.v,g.v),p=_(s.blur,g.blur),E=_(s.spread,g.spread),y=s.color||g.color,v=function(e,t){return e+" "+t+" "+p.original+" "+E.original+" "+y};this._html.shadowFrame.style.boxShadow=v(d.original,c.original);var T=h*(d.value-c.value)+d.units,S=h*(d.value+c.value)+c.units;this._html.shadowPointerInner&&(this._html.shadowPointerInner.style.boxShadow=v(T,S))}this._opts.shadow.opacity&&(this._html.shadowWrapper.style.opacity=this._opts.shadow.opacity)}if(this._opts.rotation){var b="rotate("+this._opts.rotation+"deg)";this._html.contentWrapper.style.webkitTransform=b,this._html.contentWrapper.style.transform=b}var N=this.getProjection().fromLatLngToDivPixel(this._position||this._marker.position);N&&(this._html.floatWrapper.style.top=Math.floor(N.y)-this.getMarkerRadius()+"px",this._html.floatWrapper.style.left=Math.floor(N.x)+"px"),this._isOpen||(this._isOpen=!0,this.resize(),this.reposition(),this.activateCallback("afterOpen"),!this._opts.isLabel&&e.maps.event.trigger(this.getMap(),m+"opened",this))}}},{key:"onAdd",value:function(){var t=this;if(!this._html){var a=function(e,t){if(e&&t)for(var a=0;a=a.left?r=a.left-t.left:t.right<=a.right&&(r=a.left-(t.right-a.width)),t.top>=a.top?n=a.top-t.top:t.bottom<=a.bottom&&(n=a.top-(t.bottom-a.height)),{dx:r,dy:n}};if(i(),0!==r||0!==n)if(this._opts.panOnOpen)this.getMap().panBy(r,n);else{var o=this.getProjection().fromLatLngToDivPixel(this._position||this._marker.position),l=this.getMarkerRadius(),s=void 0,u=void 0,d=3;do{d--,r<0?s=o.x+a.width/2+(y+l):r>0&&(s=o.x-a.width/2-(y+l)),n<0?u=o.y+a.height+v+l:0===n&&(u=o.y+(a.height+l)/2),i()}while(0!=r&&0!=n&&d>0);this._html.floatWrapper.style.left=Math.floor(s)+"px",this._html.floatWrapper.style.top=Math.floor(u)+"px"}}}},{key:"resize",value:function(){if(this._html){var e=this.getMapInnerBounds(),t=e.width;void 0!==this._opts.maxWidth&&(t=Math.min(t,this._opts.maxWidth)),t-=this._html.wrapper.offsetWidth-this._html.content.offsetWidth,this._html.content.style.maxWidth=t+"px";var a=e.height;void 0!==this._opts.maxHeight&&(a=Math.min(a,this._opts.maxHeight)),a-=this._html.wrapper.offsetHeight-this._html.content.offsetHeight,this._html.content.style.maxHeight=a+"px"}}}]),c}(void 0!==e?e.maps.OverlayView:function(){})};var d=a(1);function c(e){return e&&e.__esModule?e:{default:e}}var p="izenda-SimpleInfoWindow-",f=1.41421356237,h=.7071067811865474,m="iz-simple-info-window-",g={h:"0px",v:"3px",blur:"6px",spread:"0px",color:"#000"},E={placement:"top",pointer:!1,openOnMarkerClick:!1,closeOnMapClick:!0,closeWhenOthersOpen:!0,showCloseButton:!1,panOnOpen:!1,edgeOffset:{top:20,right:20,bottom:20,left:20}},y=11,v=20;function T(e,t){e&&t&&(0,u.default)(t).forEach(function(a){e[a]=t[a]})}function _(e,t){var a=/^(-{0,1}\.{0,1}\d+(\.\d+)?)[\s|\.]*(\w*)$/;if(e&&a.test(e)){var r=a.exec(e);return{value:1*r[1],units:r[3]||"px",original:e}}return t?_(t):{original:t}}function S(e,t){if(e){for(;e.firstChild;)e.removeChild(e.firstChild);t&&("string"==typeof t?e.innerHTML=t:e.appendChild(t))}}function C(e){return e.charAt(0).toUpperCase()+e.slice(1)}e.exports=t.default},function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptCache=void 0;var r=l(a(58)),n=l(a(20)),i=l(a(359)),o=l(a(175));function l(e){return e&&e.__esModule?e:{default:e}}var s,u="object"===("undefined"==typeof self?"undefined":(0,o.default)(self))&&self.self===self&&self||"object"===(void 0===e?"undefined":(0,o.default)(e))&&e.global===e&&e||void 0,d=void 0!==u&&u.izScriptMap||new i.default,c=t.ScriptCache=((s=u).izScriptMap=s.izScriptMap||d,function(e,t){var a={},i=e.document;return a._onLoad=function(e){return function(t){var a=!0,r=d.get(e);return r&&r.promise.then(function(){return a&&(r.error?t(r.error):t(null,r)),r}),function(){a=!1}}},a._scriptTag=function(e,t){if(!d.has(e)){if(void 0===i)return null;var a=i.createElement("script"),r=new n.default(function(r,n){var o=i.querySelector("body");a.type="text/javascript",a.async=!1;var l=function(a){return function(i){var o=d.get(e);"loaded"===a?(o.resolved=!0,r(t)):"error"===a&&(o.errored=!0,n(i)),o.loaded=!0}};return a.onload=l("loaded"),a.onerror=l("error"),a.onreadystatechange=function(){l(a.readyState)},a.addEventListener("load",a.onload),a.addEventListener("error",a.onerror),a.src=t,o.appendChild(a),a}),o={time:new Date,loaded:!1,error:!1,promise:r,tag:a};d.set(e,o)}return d.get(e)},(0,r.default)(t).forEach(function(e){var r=t[e],n=s.izScriptMap.has(e)?s.izScriptMap.get(e).tag:a._scriptTag(e,r);a[e]={tag:n,onLoad:a._onLoad(e)}}),a});t.default=c}).call(t,a(107))},function(e,t,a){e.exports=a.p+"static/html/gm_page.html"},function(e,t,a){"use strict";var r=o(a(357)),n=o(a(2267)),i=o(a(1303));function o(e){return e&&e.__esModule?e:{default:e}}r.default.registerVisualizationEngine(i.default.D3,n.default)},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=m(a(6)),o=m(a(2)),l=m(a(3)),s=m(a(7)),u=m(a(8)),d=m(a(362)),c=a(59),p=m(a(289)),f=a(1),h=a(34);function m(e){return e&&e.__esModule?e:{default:e}}var g=(0,c.exportClass)("D3VizEngine")(n=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"draw",value:function(e,t,a,n){var i=this.afterRender;if(!(0,f.size)(a.series))return n(),r(e).empty().text(h.Messages.NoDataToShow);var o=new p.default(e,a,function(){i(this);for(var e=arguments.length,t=Array(e),a=0;a=u.top?y-=s.TOOLTIP_VERTICAL_SPACING:y+y-s.TOOLTIP_VERTICAL_SPACING<=p-u.bottom&&(y+=s.TOOLTIP_VERTICAL_SPACING);y+l>f-u.bottom&&(y-=y+l-f+u.bottom);E+o>p-u.right&&(E-=E+o-p+u.right);y<=u.top&&(E=g+s.TOOLTIP_HORIZONTAL_SPACING+o<=p?g+s.TOOLTIP_HORIZONTAL_SPACING:g-s.TOOLTIP_HORIZONTAL_SPACING-o);E=Math.max(u.left,E),y=Math.max(u.top,y),a.classed("animate",!e).style("top",y+"px").style("left",E+"px").style("max-width",p+"px")}.bind(this,o)).style("opacity",1)}function h(){this!==p&&e.classed("animate",!0).style("opacity",0).style("top",0).style("left",0)}function m(){p=null,e.classed("animate",!0).style("opacity",0)}o.d3.select(t).select(".d3-series-group").on("mouseleave.seriesGroup",function(){var e=o.d3.mouse(this),t=(0,i.default)(e,2),a=t[0],r=t[1],n=this.getBBox(),l=n.width,s=n.height;(a>l||a<0||r>s||r<0)&&m()}),o.d3.select(t).on("mouseleave.container",m),r.on("mouseover.tooltip",f).on("mouseleave.tooltip",h),n.on("mouseover.tooltip",f).on("mouseleave.tooltip",h)};var o=a(289),l=a(1),s=a(295)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.drawLegend=function(e,t,a,n,f){var h=t.legend,m=t.series;if(h.enabled){var g=h.itemStyle,E=h.verticalAlign,y=h.align,v=h.borderVisible,T=e.append("g").classed(i.LAYOUT_CLASSES.legend.class,!0).datum(i.LAYOUT_CLASSES.legend),_=T.append("rect").classed("d3-legend-box",!0).attr("fill",h.backgroundColor||u),S=T.append("g").classed("d3-legend-content",!0),C=(0,r.isArray)(m)?m:[m];C.map(function(a,n){var o=a.display,u=void 0===o||o,d=S.append("g").classed("d3-legend-item",!0).attr("transform","translate("+l+", "+l+")"),c=parseFloat(g.fontSize),p=d.append("rect").attr("width",c).attr("height",c).attr("rx",c/2).attr("ry",c/2).attr("fill",u?a.color:i.DISABLE_LEGEND_COLOR),f=p.node().getBBox(),h=f.width,m=f.height,E=d.append("text").attr("x",h+s).style("font-family",g.fontFamily).style("font-size",g.fontSize).style("font-weight",g.fontWeight).style("font-style",g.fontStyle).style("text-decoration",g.textDecoration).style("background-color",g.backgroundColor).style("fill",u?g.color:i.DISABLE_LEGEND_COLOR).attr("text-anchor","start");E.append("tspan").text(a.name),E.append("title").text(a.name);var y=E.node().getBBox(),v=y.height;return E.attr("y",Math.floor(m-(v-m)/2)),d.on("click.legend",function(){return function(e,t,a,n,o,l,s){t.series[a].display=!((0,r.isNil)(t.series[a].display)||t.series[a].display);var u=e.select("g."+i.LAYOUT_CLASSES.seriesGroup.class+" > .d3-series-"+a),d=e.select("g."+i.LAYOUT_CLASSES.labelGroup.class+" > .d3-series-"+a),c=t.series[a].display;u.style("visibility",c?"visible":"hidden"),d.style("visibility",c?"visible":"hidden"),n.style("fill",c?l.color:i.DISABLE_LEGEND_COLOR),o.style("fill",c?s.color:i.DISABLE_LEGEND_COLOR),d.selectAll("text").each(function(){this.style.visibility=c?"":"hidden"})}(e,t,n,p,E,a,g)}),d});var b=S.node().getBBox(),N=b.height,A=b.width;A=Math.floor(A+2*l),N=Math.floor(N+d),_.attr("width",A).attr("height",N);var R=function(e,t,a,r,n,i,s){var u=0,d=0,f=0,h=0,m=i,g=n,E=0,y=t.node().getBBox(),v=y.height,T=y.width,_=Math.min((i-(s.top+s.bottom))/2,v),S=t.select(".d3-legend-box");"top"===a&&(E=n-(s.left+s.right),T>E?(S.attr("width",E),t.selectAll("tspan").each(p(E-2*l))):E=T,"left"===r&&(u=s.left),"center"===r&&(u=(n-E)/2),"right"===r&&(u=n-(E+s.right)),d=s.top+c,m-=f=d+_);"middle"===a&&(E="center"===r?n-(s.left+s.right):(n-(s.left+s.right))/2,T>E?(S.attr("width",E),t.selectAll("tspan").each(p(E-2*l))):E=T,"left"===r&&(u=s.left,g-=E+c,h=E+c),"center"===r&&(u=(n-E)/2),"right"===r&&(u=n-(E+s.right),g-=E+c),d=(i-_-s.top)/2);"bottom"===a&&(E=n-(s.left+s.right),T>E?(S.attr("width",E),t.selectAll("tspan").each(p(E-2*l))):E=T,"left"===r&&(u=s.left),"center"===r&&(u=(n-E)/2),"right"===r&&(u=n-(E+s.right)),d=i-(s.bottom+_),m-=s.bottom+_);var C=(0,o.addClipPath)(e,E,_).id;return t.attr("clip-path","url(#"+C+")"),{remainingHeight:m,remainingWidth:g,legendTopTranslate:d,legendLeftTranslate:u,topTranslate:f,leftTranslate:h}}(e,T,E,y,a,n,f),O=R.remainingWidth,I=R.remainingHeight,D=R.legendTopTranslate,P=R.legendLeftTranslate,L=R.topTranslate,M=R.leftTranslate;if(T.attr("transform","translate("+Math.floor(P)+", "+Math.floor(D)+")"),v){var F=h.borderColor,k=h.borderWidth,x=void 0===k?0:k;_.attr("stroke",F).attr("stroke-width",x),function(e,t){var a=t%2/2;e.attr("x",a),e.attr("y",a),e.attr("width",Math.floor(e.attr("width")-2*a)),e.attr("height",Math.floor(e.attr("height")-2*a))}(_,x)}return{remainingWidth:O,remainingHeight:I,topTranslate:L,leftTranslate:M}}return{remainingWidth:a,remainingHeight:n,topTranslate:0,leftTranslate:0}};var r=a(1),n=a(289),i=a(295),o=a(758),l=8,s=5,u="#FFF",d=11,c=17;function p(e){return function(){for(var t=n.d3.select(this),a=n.d3.select(t.node().parentNode),i=(0,r.toNumber)(a.attr("x")),o=t.node().getComputedTextLength(),s=t.text();i+o>e-l&&!(0,r.isEmpty)(s);)s=s.slice(0,-1),t.text(s+"…"),o=t.node().getComputedTextLength()}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.drawBackground=function(e,t,a,n,i,o,l){var s=l.chart,u=s.plotBackgroundColor,d=s.backgroundColor;e.append("g").classed(r.LAYOUT_CLASSES.background.class,!0).datum(r.LAYOUT_CLASSES.background).append("rect").attr("width",t).attr("height",a).attr("fill",d||"none"),e.append("g").classed(r.LAYOUT_CLASSES.plotBackground.class,!0).datum(r.LAYOUT_CLASSES.plotBackground).append("rect").attr("width",n).attr("height",i).attr("transform",o).attr("fill",u||"none")};a(289);var r=a(295)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(a(14));t.drawTreemapLabels=function(e,t,a,u,p,f){var h=a.izendaOptions,m=h.showSliceLabel,g=h.showValueLabel;if((m||g)&&"hidden"!==e.attr("visibility")){var E=function(e,t,a,u,p,f){var h=p.izendaOptions.showValueLabel,m=p.commonActions,g=m.getDataLabelFormatProcess,E=m.getValueLabel,y=p.izendaSeriesConfig;return e.selectAll("text").data(t).enter().append("text").attr("x",function(e){var t=e.label,a=t.x,r=t.width,n=e.node;return(0,o.isLeafNode)(n,f)?a+r/2:a+c}).attr("y",function(e){var t=e.label,a=t.y,r=t.height,n=e.node;return(0,o.isLeafNode)(n,f)?a+r/2:a}).classed("u_textLink",function(e){var t,a,r,n,i,o=e.point,l=e.serie;return t=o.labelName||l.labelName,a=y[t],r=a.customURL,n=a.subReport,i=a.embeddedJavascript,r||n||i}).text(function(e){return(0,i.trim)((a=(t=e).point,n=t.serie,o=(0,r.default)({},a,{options:a}),g(o,{userOptions:n},"",!1,!0)));var t,a,n,o}).style("text-anchor",function(e){var t=e.node;return(0,o.isLeafNode)(t,f)?"middle":"start"}).style("font-weight","bold").attr("fill",function(e){var t=e.point,a=e.node;return(0,o.isLeafNode)(a,f)?(0,o.getContrastTextColor)(t.color):"#FFF"}).attr("transform",function(e){var t=e.node,a=e.label,r=a.rotation,n=a.width,i=a.height,l=a.x,s=a.y;return(0,o.isLeafNode)(t,f)?"rotate("+(r||0)+", "+(l+n/2)+", "+(s+i/2)+")":""}).classed("d3-no-rotate",function(e){var t=e.node;return(0,o.isLeafNode)(t,f)}).call(function(e){return e.each(_)}).attr("visibility",function(){var e=n.d3.select(this),t=e.datum(),r=t.node,i=t.label,s=i.height,d=i.rotation;if(!(0,o.isLeafNode)(r,f)){var c=e.select("tspan"),p=c.empty()?0:c.node().getBoundingClientRect().height;return p>Math.min(s,l.TREEMAP_BANNER_HEIGHT)?"hidden":"visible"}var h=d?(0,o.calculateBoxByRotateDegree)(this.getBBox(),d):this.getBBox(),m=h.x,g=h.y,E=h.width,y=h.height;return y>s||m<0||g<0||m+E>a||g+y>u?"hidden":"visible"});function v(e,t){e.append("tspan").text(t).style("font-weight","normal")}function T(e,t){return e.append("tspan").attr("x",e.attr("x")).attr("y",e.attr("y")).attr("dy",e.node().childNodes.length-1+"em").text(t)}function _(){var e=n.d3.select(this),t=e.datum(),a=t.point,r=t.serie,u=t.node,p=t.label,m=p.width,g=p.height,y=E(a,r,a.name,a.originalNameValue),_=(0,i.isString)(y)?(0,i.trim)(y).split(/\s+/).length:1,S=(0,o.isLeafNode)(u,f),C=e.text().split(/\s+/),b=[],N=[],A=e.text(null).append("tspan").attr("x",e.attr("x")).attr("y",e.attr("y"));C.forEach(function(t,a){var r=h&&a>=C.length-_;r?(N.push(t),b.length>0?(A.text(b.join(" ")+" "),v(A,N.join(" "))):A.text(""+N.join(" ")).style("font-weight","normal")):(b.push(t),A.text(b.join(" ")));var n=A.node().getBoundingClientRect(),i=n.width,o=n.height;(i>m||o>g)&&S&&(r?N.pop():b.pop(),b.length>0?(A.text(b.join(" ")),N.length>0&&v(A," "+N.join(" ")),A=T(e,t),r&&A.style("font-weight","normal")):N.length>0&&(A.text(N.join(" ")),(A=T(e,t)).style("font-weight","normal")),r?(b=[],N=[t]):b=[t])}),function(e,t,a){var r=e.datum(),i=(0,o.isLeafNode)(r.node,a)?r.label.y+(t-e.node().getBBox().height)/2:r.label.y+c;e.attr("y",i).selectAll(function(){return e.node().childNodes}).attr("y",i).attr("dy",function(){var e=parseFloat(n.d3.select(this).attr("dy")||0);return e+l.LABEL_BASELINE_SHIFT+"em"})}(e,g,f),!S&&function(e,t){var a=e.node().getBBox().width,r=n.d3.select((0,i.last)(e.selectAll("tspan").nodes())),o=r.text();for(;a+c>t-c&&!(0,i.isEmpty)(e.text());){if((0,i.isEmpty)(o)){if(r.remove(),(r=n.d3.select((0,i.last)(e.selectAll("tspan").nodes()))).empty())return;o=r.text()}o=o.slice(0,-1),r.text(o+"…"),a=e.node().getBBox().width}}(e,m),function(e){e.selectAll(function(){return(0,i.map)(function(e){return e},e.node().childNodes)}).each(function(){var t=n.d3.select(this),a=(0,s.default)(e.attr("fill")).isLight()?"#000":"#FFF";t.clone(!0),t.attr("stroke",a).attr("stroke-width",d).attr("stroke-linejoin","round").classed("d3-labels-outline",!0)})}(e)}}(e,t,u,p,a,f);return(0,o.hideOverlappingLabels)(E.nodes()),E}return n.d3.selectAll(null)};var n=a(289),i=a(1),o=a(758),l=a(295),s=u(a(382));function u(e){return e&&e.__esModule?e:{default:e}}var d=2,c=2},function(e,t,a){"use strict";a(2621),a(2632),a(2657),a(2658),a(2659),a(2661),a(2662),a(2663),a(2665),a(2667),a(2669),a(2670),a(2672),a(2673),a(2675),a(2677),a(2678),a(2683),a(2684),a(2691),a(2693),a(2695),a(2696),a(2709),a(2712),a(2720),a(2721),a(2722),a(2723),a(2724)},function(e,t,a){"use strict";var r=a(61),n=a(50),i=p(a(12)),o=p(a(635)),l=p(a(241)),s=p(a(2622)),u=p(a(2626)),d=p(a(2630)),c=p(a(2631));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){return{key:e,mode:r.REPORT_PART_MODE.CONFIG,component:l.default}},h=function(e,t){var a=t.axisName,r=t.axisCustomName,n=t.maximumField;return C(e,{dataKey:"labels",label:r||String.format(i.default.getText("REPORTDESIGNER_LABEL_X_AXIS_NAME"),a),maximumField:n})},m=function(e,t){var a=t.axisName,r=t.axisCustomName,n=t.maximumField,o=t.simpleViewForFullContainer;return C(e,{dataKey:"values",label:r||String.format(i.default.getText("REPORTDESIGNER_LABEL_Y_AXIS_NAME"),a),maximumField:n,simpleViewForFullContainer:o})},g=function(e){return{key:e,label:i.default.getText("REPORTDESIGNER_LABEL_Y_AXIS_VALUES"),component:s.default}},E=function(e){return{key:e,label:i.default.getText("REPORTDESIGNER_LABEL_Y_AXIS_VALUES"),component:u.default}},y=function(e,t){var a=t.maximumField;return C(e,{dataKey:"valuesLabels",label:n.LABEL_TEXT.valueLabel,maximumField:a})},v=function(e,t){var a=t.maximumField;return C(e,{dataKey:"bubbleSize",label:n.LABEL_TEXT.bubble,maximumField:a})},T=function(e,t){var a=t.maximumField;return C(e,{dataKey:"separators",label:i.default.getText("REPORTDESIGNER_LABEL_SEPARATORS"),maximumField:a})},_=function(e,t){return{key:e,label:i.default.getText("REPORTDESIGNER_LABEL_TOTAL_LABEL"),component:d.default}},S=function(e,t){return{key:t.containerKey,label:t.label,component:c.default}},C=function(e,t){var a=t.containerKey,r=t.label,n=t.dataKey,i=t.height,o=t.maximumField,l=t.isHorizontal,s=t.simpleViewForFullContainer;return{key:a||e,label:r,dataKey:n,height:i,maximumField:o,isHorizontal:l,simpleViewForFullContainer:s}};o.default.register("chart_title",f),o.default.register("chart_xaxis",h),o.default.register("chart_yaxis",m),o.default.register("chart_yaxisMetrics",g),o.default.register("gauge_yaxisMetrics",E),o.default.register("chart_valuesLabels",y),o.default.register("chart_bubbleSize",v),o.default.register("chart_separators",T),o.default.register("chart_totalLabel",_),o.default.register("staticLabel",S),o.default.register("container",C)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=g(a(14)),i=g(a(6)),o=g(a(2)),l=g(a(3)),s=g(a(7)),u=g(a(8)),d=a(0),c=g(d),p=a(9),f=g(a(456)),h=g(a(2623)),m=a(1);function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,p.observer)(r=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=e.label,a=(e.localization,e.reportPart),r=(a.reportPartContent,(0,m.get)("reportPart.reportPartContent.chartType",e));return c.default.createElement(f.default,{label:t,reportPart:a},c.default.createElement(h.default,(0,n.default)({},e,{type:r})))}}]),t}(d.Component))||r;t.default=E,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=E(a(14)),i=E(a(70)),o=E(a(6)),l=E(a(2)),s=E(a(3)),u=E(a(7)),d=E(a(8)),c=a(0),p=E(c),f=a(9),h=E(a(1304)),m=E(a(2624)),g=a(1);function E(e){return e&&e.__esModule?e:{default:e}}var y=(0,f.observer)(r=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e)),r=e.reportPart,n=[];return(r.reportPartContent&&r.reportPartContent.values).elements.forEach(function(e){n.push(e)}),a.state={dataSource:(0,g.isEmpty)(n)?[{}]:n},a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.state||{},t=this.props,a=t.type,r=t.reportPart,o=(0,g.pick)(["reportPart","store"],t),l=r.reportPartContent&&r.reportPartContent.values;return(0,i.default)(o,{onDeleteElement:function(t,a){var n=(0,g.find)({fieldId:a},l.elements);r.removeFieldFromContainer(l,n),e.dataSource[t]={}},onAddElement:function(t,a){var n=e.dataSource;return t.position=a+1,a===n.length-1?r.commonInsertField(t.fieldName,t,l).then(i):r.commonInsertField(t.fieldName,t,l,a+1).then(i);function i(e){return n[a]=e,e}},onUpdateElement:function(e,t){l.elements[t]=e},type:a,canDelete:e.dataSource.length>1}),p.default.createElement(h.default,(0,n.default)({maximumMetrics:5,dataSource:this.state.dataSource,onAddMetric:function(){this.state.dataSource.push({}),this.setState({dataSource:this.state.dataSource})}.bind(this),onDeleteMetric:function(e){e1}),p.default.createElement(h.default,(0,n.default)({maximumMetrics:e.maximumField,dataSource:o,onAddMetric:function(){this.state.dataSource.push(null),this.setState({dataSource:this.state.dataSource})}.bind(this),onDeleteMetric:function(e){this.state.dataSource.splice(e,1),this.setState({dataSource:this.state.dataSource})}.bind(this),itemComponent:m.default},i))}},{key:"deleteValuesElement",value:function(e,t){if(e){var a=this.props,r=a.reportPart,n=a.store,i=(0,E.get)("reportPartContent.values",r),o=(0,E.find)(function(t){return t.field.fieldNameAlias===e.field.fieldNameAlias},i.elements);o&&(r.removeFieldFromContainer(i,o),n.reportFilters.removeAggregatedField(o),t&&r.shouldUpdatePreview&&n.needUpdatePreview(r))}}},{key:"deleteScaleElement",value:function(e,t,a){if(e&&t){var r=this.props,n=r.reportPart,i=r.store,o=(0,E.find)({name:g.ContainerName.SCALE},n.reportPartContent.containerCollection),l=(0,E.find)(function(e){return e.field.fieldNameAlias===t.field.fieldNameAlias},o.elements);if(l){var s=(0,E.get)("properties.metric.scale",e);(0,E.isNil)(s)||(s.fromElement===t?s.fromElement=null:s.toElement===t&&(s.toElement=null)),n.removeFieldFromContainer(o,l),i.reportFilters.removeAggregatedField(l),a&&n.shouldUpdatePreview&&i.needUpdatePreview(n)}}}},{key:"updateContainerElement",value:function(){var e=this.props.reportPart,t=(0,E.compact)(this.state.dataSource),a=e.reportPartContent.values.elements,r=(0,E.size)(t),n=(0,E.size)(a);if(r!==n)if(r0&&(0,y.head)(n),selectedYAxisOption:i.length>0&&(0,y.head)(i)},a}return(0,m.default)(t,e),(0,f.default)(t,[{key:"getValue",value:function(){var e=this,t=[];this.updateElements("labelsElements",t),this.updateElements("valuesElements",t);var a=this.reportPartDetails.reportPartContent.customContainers.find(function(e){return e.name===b.ContainerName.DYNAMIC_THRESHOLD});return this.props.reportPartDetails.reportPartContent.updateDynamicThresholdFieldInContainer(a.elements),(0,y.forEach)(function(a){var r=(0,y.find)(["id",a.izValue],e.props.fieldStore.dataTree.flattenQuerySourceIncludeCalculatedField);!(0,y.isNil)(r)&&t.push(r)},this.allDynamicThresholdLine),{metricAllPlotLinesOption:this.metricAllPlotLinesOption,dynamicThresholdField:t,allDynamicThresholdLine:this.allDynamicThresholdLine}}},{key:"cloneElements",value:function(){this.reportPartDetails=this.props.reportPartDetails.clone(),this.reportPartDetails.colorPalettes=this.props.reportPartDetails.colorPalettes}},{key:"updateElements",value:function(e,t){var a=this,r=this.reportPartDetails.reportPartContent;this.props.reportPartDetails.reportPartContent[e].forEach(function(n,i){var o=(0,y.invokeArgs)("properties.getOtherProps",["threshold"],r[e][i]);n.setOtherProps("threshold",o);var l=(0,y.invokeArgs)("properties.getOtherProps",[b.ContainerName.DYNAMIC_THRESHOLD],r[e][i]);if(n.setOtherProps(b.ContainerName.DYNAMIC_THRESHOLD,l),!(0,y.isNil)(l)){var s=a.props.fieldStore.dataTree.flattenQuerySourceIncludeCalculatedField;(0,y.forEach)(function(e){var a=(0,y.find)(["id",e.izValue],s);!(0,y.isNil)(a)&&t.push(a)},l)}})}},{key:"initData",value:function(){var e=this.props.value||{},t=this.reportPartDetails;this.activeSeriesKey=null,this.metricAllPlotLinesOption=e.metricAllPlotLinesOption,this.allDynamicThresholdLine=e.allDynamicThresholdLine,this.expandedLevel=0,this.previewData=t.previewData,this.previewDataRecords=t.previewDataRecords||[],this.previewDataFieldsMapping=t.previewDataFieldsMapping||[]}},{key:"getChartData",value:function(){var e=this.reportPartDetails.reportPartContent,t=e.chartType,a=(0,b.isChartType)(t,_.CHART_TYPE.Combination,_.CHART_TYPE.Sparkline)?null:this.activeSeriesKey;return a=(0,y.isString)(a)?a:a&&a.name,(0,T.parser)(e.getActiveElmsByActiveSeries(a),this.expandedLevel,{fieldsMapping:this.previewDataFieldsMapping,records:this.previewDataRecords,rawData:this.previewData})}},{key:"getConfigurationDef",value:function(){var e=(0,y.get)("reportPartContent.chartType",this.props.reportPartDetails),t=this.props,r=O(e),n=r&&this.metricAllPlotLinesOption||[],i=r&&this.allDynamicThresholdLine||[],o=t.value||{},l=t.reportPartDetails.reportPartContent,s=o.xAxisTitleOption||[],u=o.yAxisTitleOption||[],c=this.state,p=c.selectedXAxisOption,f=c.selectedYAxisOption,h=(0,y.find)({fieldName:p.value},l.labelsElements);this.xField=h;var m=(0,y.find)({fieldName:f.value},l.valuesElements),g=this.props.fieldStore.dataTree.flattenQuerySourceIncludeCalculatedField,E=this.reportPartDetails.reportPartContent.customContainers.find(function(e){return e.name===b.ContainerName.DYNAMIC_THRESHOLD});return this.yField=m,{definedSchema:function(e,t,r,n,i,o){var l=o.reportPartContent.properties.chartType;return{schemaKey:"THRESHOLD_SETTINGS_SCHEMA",fields:{xAxisTitle:{title:S.default.getText("THREHOSLD_X_LABEL"),type:"static",isHidden:"isHiddenXAxis"},xAxis:{component:a(1308),fnValue:"getXAxis",props:{staticThreshold:!0,axis:"xAxis",selectedAxis:"getXAxisSelectedOption",dataType:"getXAxisDataType",options:e,chartType:l},isHidden:"isHiddenXAxis"},yAxisTitle:{title:S.default.getText("THREHOSLD_Y_LABEL"),type:"static",isHidden:"isHiddenYAxis"},yAxis:{component:a(1308),fnValue:"getYAxis",props:{selectedAxis:"getYAxisSelectedOption",axis:"yAxis",dataType:"getYAxisDataType",options:t,dataTree:r,reportPartContent:n,fieldStore:i,reportPartDetails:o,chartType:l},isHidden:"isHiddenYAxis"}}}}(s,u,g,l,this.props.fieldStore,this.reportPartDetails),source:{},onChangeValue:this.onChangeValue,mappingProps:{beforeChangeAxisTitle:function(){return t.validation.validate().then(function(e){return e?(0,d.resolve)():(0,d.reject)(new Error("Validation Fail."))})}},mappingSource:{getXAxis:function(){var e=[];return(0,y.forEach)(function(t){var a=t.getValueByKey("threshold")||[];(0,y.forEach)(function(e){e.fieldMappingAlias=t.fieldNameAlias},a),e=e.concat(a.slice())},l.labelsElements),e},getYAxis:function(){var t=n||[];return(0,y.forEach)(function(e){var t=(0,y.find)({fieldName:e.fieldName},E.elements);e.thresholdFieldElement=t},i),t=t.concat(i),(0,y.forEach)(function(a){var r=a.getValueByKey("threshold")||[],n=(0,b.isChartType)(e,_.CHART_TYPE.Scatter,_.CHART_TYPE.Bubble)?[]:a.getValueByKey(b.ContainerName.DYNAMIC_THRESHOLD)||[];(0,y.forEach)(function(e){var t=(0,y.find)({fieldName:e.fieldName},E.elements);e.thresholdFieldElement=t},n),(0,y.forEach)(function(e){e.fieldMappingAlias=a.fieldNameAlias},n),(0,y.forEach)(function(e){e.fieldMappingAlias=a.fieldNameAlias},r),t=(t=t.concat(r.slice())).concat(n.slice())},o.valuesElements),t},getXAxisSelectedOption:function(){return p},getXAxisSelectedOptionValue:function(){return(0,y.get)("value",p)},getYAxisSelectedOption:function(){return f},getYAxisSelectedOptionValue:function(){return(0,y.get)("value",f)},isHiddenXAxis:function(){return 0===l.listLinearFieldInLabelContainer.length},isHiddenYAxis:function(){return 0===l.listCountableFieldInValueContainer.length},getXAxisDataType:function(){return h&&h.previewDataType},getYAxisDataType:function(){return m&&m.previewDataType}}}}},{key:"render",value:function(){var e,t=this.reportPartDetails,a=t.reportPartContent,r=a.getReportPartProperties(e),n={chartOptions:(0,u.default)({},r,{colors:t.getThemeColors(r)}),seriesOptions:t.fieldCollection,fieldsMapping:t.previewDataFieldsMapping,chartData:(0,T.parser)(a.activeElmsByContainers,t.expandedLevel,{fieldsMapping:t.previewDataFieldsMapping,records:t.previewDataRecords,rawData:t.previewData})},i={commonXYAxis:{metricAllPlotLinesOption:this.metricAllPlotLinesOption,allDynamicThresholdLine:this.allDynamicThresholdLine}};return E.default.createElement(v.default,{isLoading:t.isLoadingData,className:"threshold-settings",type:this.props.reportPartType,configurationDef:this.getConfigurationDef(),chartOptions:i,allChartProps:n,chartData:n.chartData})}}]),t}(g.Component),l=function(){var e,t,a,r,n=this;e=this,t="metricAllPlotLinesOption",r=this,(a=i)&&(0,s.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0}),this.onChangeValue=function(e,t,a,r){var i=(a&&a.length?(0,y.get)(a,e):e)[t],o=n.reportPartDetails.reportPartContent;i&&(i.value=r);var l=n.props.value,s=e.yAxisTitle,u=l.xAxisTitleOption,d=l.yAxisTitleOption,c=(0,y.get)("reportPartContent.chartType",n.props.reportPartDetails),p=O(c);if(!b.isChartType.apply(void 0,[c].concat(R))&&(n.activeSeriesKey=s.value||null),"xAxis"===t){var f=(0,y.groupBy)(function(e){return e.fieldMappingAlias},e.xAxis.value);(0,y.forEach)(function(e){var t=(0,y.map)(function(e){return e.exportToChartConfig?e.exportToChartConfig():e},f[e.fieldName]);e.setOtherProps("threshold",t)},o.labelsElements)}else{var h=(0,y.groupBy)(function(e){return e.thresholdType},e.yAxis.value),m=h.static,g=h.dynamic,E=(0,y.groupBy)(function(e){return e.fieldMappingAlias},m),v=(0,y.groupBy)(function(e){return e.fieldMappingAlias},g);p&&(n.metricAllPlotLinesOption=(0,y.map)(function(e){return e.exportToChartConfig?e.exportToChartConfig():e},E[""])),p&&(n.allDynamicThresholdLine=(0,y.map)(function(e){return e.exportToChartConfig?e.exportToChartConfig():e},v[""])),(0,y.forEach)(function(e){var t=(0,y.map)(function(e){return e.exportToChartConfig?e.exportToChartConfig():e},E[e.fieldName]),a=(0,y.map)(function(e){return e.exportToChartConfig?e.exportToChartConfig():e},v[e.fieldName]);e.setOtherProps("threshold",t),e.setOtherProps("dynamicThresholds",a)},o.valuesElements)}(function(){var t=(0,y.find)({value:e.xAxisTitle.value},u)||{},a=(0,y.find)({value:e.yAxisTitle.value},d)||{};this.setState({selectedXAxisOption:{value:e.xAxisTitle.value,dateTimeFormatData:t.dateTimeFormatData},selectedYAxisOption:{value:e.yAxisTitle.value,dateTimeFormatData:a.dateTimeFormatData}})}).call(n)}},I=(n=o).prototype,D="metricAllPlotLinesOption",P=[N.observable],L={enumerable:!0,initializer:null},F={},Object.keys(L).forEach(function(e){F[e]=L[e]}),F.enumerable=!!F.enumerable,F.configurable=!!F.configurable,("value"in F||F.initializer)&&(F.writable=!0),F=P.slice().reverse().reduce(function(e,t){return t(I,D,e)||e},F),M&&void 0!==F.initializer&&(F.value=F.initializer?F.initializer.call(M):void 0,F.initializer=void 0),void 0===F.initializer&&(Object.defineProperty(I,D,F),F=null),i=F,r=n))||r;t.default=k,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=h(a(6)),o=h(a(2)),l=h(a(3)),s=h(a(7)),u=h(a(8)),d=a(0),c=h(d),p=h(a(2640)),f=h(a(34));function h(e){return e&&e.__esModule?e:{default:e}}var m=a(1),g=m.isEmpty,E=m.isNull,y=(n=r=function(e){function t(){var e,a,r,n;(0,o.default)(this,t);for(var l=arguments.length,u=Array(l),d=0;d=0?i.serieElements[o]:null;if(l)if("field"===t)i.setConfigField(l);else if(i[t]!==e[t].value)switch(t){case"name":i.changeName(l,e);break;case"decimalPlaces":i.changeDecimalPlaces(l,e);break;case"extrapolate":i.changeExtrapolate(l,e);break;default:i.updateValue(t,l,e)}}},{key:"getConfigurationDef",value:function(){var e,t,a=this.store,r=this.store.model;return{definedSchema:(e=a.buildFieldOptions(),t=a.orderTooltip,{fields:{schemaKey:"REGRESSION_LINE_SCHEMA",field:{title:f.default.getText("REGRESSION_LINE_FIELD_SELECT"),infoIcon:f.default.getText("REGRESSION_LINE_FIELD_SELECT_TOOLTIP"),type:"select",fnValue:"getField",props:{options:e}},visible:{title:f.default.getText("COMMON_LABEL_VISIBLE"),type:"checkbox",fnValue:"getVisible"},hideInLegend:{title:f.default.getText("REGRESSION_LINE_HIDE_IN_LEGEND"),type:"checkbox",fnValue:"getHideInLegend",isHidden:"isHiddenHideInLegend"},name:{title:f.default.getText("COMMON_LABEL_NAME"),infoIcon:f.default.getText("REGRESSION_LINE_NAME_TOOLTIP"),type:"text",fnValue:"getName"},type:{title:f.default.getText("REGRESSION_LINE_TYPE"),type:"select",fnValue:"getType",props:{options:_}},decimalPlaces:{title:f.default.getText("REGRESSION_LINE_DECIMAL_PLACES"),infoIcon:f.default.getText("REGRESSION_LINE_DECIMAL_PLACES_TOOLTIP"),type:"number",fnValue:"getDecimalPlaces",props:{max:C,min:b}},order:{title:f.default.getText("REGRESSION_LINE_ORDER"),isHidden:"isHiddenOrder",type:"select",fnValue:"getOrder",infoIcon:t,props:{options:S}},color:{title:f.default.getText("COMMON_LABEL_COLOR"),type:"color",fnValue:"getColor"},dashStyle:{title:f.default.getText("BORDER_SETTING_LABEL_DASH_STYLE"),component:m.default,fnValue:"getDashStyle"},lineWidth:{title:f.default.getText("BORDER_SETTING_LABEL_THICKNESS"),component:g.default,fnValue:"getLineWidth"},extrapolate:{title:f.default.getText("REGRESSION_LINE_EXTRAPOLATE"),type:"number",infoIcon:f.default.getText("REGRESSION_LINE_EXTRAPOLATE_TOOLTIP"),isHidden:"isHiddenExtrapolate",fnValue:"getExtrapolate",props:{max:N,min:A}}}}),source:{},mappingSource:{getField:function(){return a.configField.fieldName},getVisible:function(){return r.visible},getHideInLegend:function(){return r.hideInLegend},getType:function(){return r.type},getOrder:function(){return r.order},isHiddenHideInLegend:function(){return!r.visible},isHiddenOrder:function(){return r.type!==T.polynomial},isHiddenExtrapolate:function(){var e=r.type;return(0,h.every)(function(t){return e!==t},[T.polynomial,T.linear])},getLineWidth:function(){return r.lineWidth},getColor:function(){return r.color},getDashStyle:function(){return r.dashStyle},getDecimalPlaces:function(){return r.decimalPlaces},getExtrapolate:function(){return r.extrapolate},getName:function(){return r.name}},onChangeValue:this.onChangeValue.bind(this)}}},{key:"render",value:function(){var e=this.props,t=e.reportPartType,a=e.reportPartDetails,r=e.reportPartDetails.reportPartContent,n=this.store,i=this.props.allChartProps();return i.seriesOptions=n.valuesElements.concat(n.valuesLabelsElements).concat(r.labelsElements).concat(r.separatorsElements).concat(r.bubbleSizeElements),d.default.createElement(c.default,{className:"regression-line-settings",isLoading:a.isLoadingData,reportPart:a,type:t,configurationDef:this.getConfigurationDef(),allChartProps:i,chartData:n.getChartData(r)})}}]),t}(u.Component))||r;t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=E(a(17)),s=E(a(23)),u=E(a(2)),d=E(a(3)),c=E(a(2645)),p=a(50),f=a(1),h=a(5),m=a(34),g=a(91);function E(e){return e&&e.__esModule?e:{default:e}}function y(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function v(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var T=p.CHART_SETTINGS.REGRESSION_POLYNOMIAL_ORDER,_=(r=function(){function e(t){var a=this;(0,u.default)(this,e),y(this,"model",n,this),y(this,"configField",i,this),y(this,"activeSeriesKey",o,this),this.changeName=(0,f.debounce)(m.DEFAULT_DEBOUNCE_TIME,(0,h.action)(function(e,t){a.updateValue("name",e,t)})),this.changeDecimalPlaces=(0,f.debounce)(m.DEFAULT_DEBOUNCE_TIME,(0,h.action)(function(e,t){a.updateValue("decimalPlaces",e,t)})),this.changeExtrapolate=(0,f.debounce)(m.DEFAULT_DEBOUNCE_TIME,(0,h.action)(function(e,t){a.updateValue("extrapolate",e,t)})),this.model=new c.default,this.cloneElements(t),this.setSerieElements(t),this.initData(t);var r=t.reportPartContent.activeSerie;if(r){var l=(0,f.find)(function(e){return e.name===r.name},this.serieElements);this.setConfigField(l)}else this.setConfigField((0,f.first)(this.serieElements))}return(0,d.default)(e,[{key:"orderTooltip",get:function(){return(0,f.get)("tooltip",(0,f.find)({value:this.model.order},T))}}]),(0,d.default)(e,[{key:"setConfigField",value:function(e){var t=(0,f.get)("regression",e.properties.getOtherProps());this.configField=e,this.activeSeriesKey=e.name,this.model.readData(t),this.setCurrentSetting()}},{key:"cloneElements",value:function(e){var t=e.reportPartContent;this.valuesElements=t.valuesElements.map(function(e){return e.clone()}),this.valuesLabelsElements=t.valuesLabelsElements.map(function(e){return e.clone()})}},{key:"setSerieElements",value:function(e){var t=e.reportPartContent;this.serieElements="values"===t.getMetricContainer()?this.valuesElements:this.valuesLabelsElements}},{key:"setCurrentSetting",value:function(){var e=this.model,t=e.name,a=e.visible,r=e.hideInLegend,n=e.type,i=e.order,o=e.lineWidth,l=e.dashStyle,s=e.color,u=e.extrapolate,d=e.decimalPlaces;this.configField.setOtherProps("regression",{name:t,visible:a,hideInLegend:r,type:n,order:i,lineWidth:o,dashStyle:l,color:s,extrapolate:u,decimalPlaces:d})}},{key:"initData",value:function(e){var t=this;this.setPreviewData(e),this.dataObserverDisposer=(0,h.observe)(e,"isLoadingData",function(){return t.setPreviewData(e)})}},{key:"setPreviewData",value:function(e){var t=e.reportPartContent;this.expandedLevel=e.reportPartContent.expandedLevel,this.previewData=e.previewData,this.previewDataRecords=e.previewDataRecords||[],this.previewDataFieldsMapping=e.previewDataFieldsMapping||[],this.activeSeriesKey=t.getActiveSerieKey()}},{key:"disposeDataObserver",value:function(){this.dataObserverDisposer&&this.dataObserverDisposer()}},{key:"updateValue",value:function(e,t,a){this.model.updateValue(e,a[e].value),this.setCurrentSetting()}},{key:"updateElements",value:function(e){var t=this,a="values"===e.getMetricContainer()?e.valuesElements:e.valuesLabelsElements;a.forEach(function(e,a){e.setOtherProps("regression",t.serieElements[a].properties.getOtherProps().regression)})}},{key:"buildFieldOptions",value:function(){return this.serieElements.map(function(e){var t=e.name;return{value:t,label:t}})}},{key:"getChartData",value:function(e){return(0,g.parser)(e.getActiveElmsByActiveSeries(this.activeSeriesKey),this.expandedLevel,{fieldsMapping:this.previewDataFieldsMapping,records:this.previewDataRecords,rawData:this.previewData})}}]),e}(),n=v(r.prototype,"model",[h.observable],{enumerable:!0,initializer:null}),i=v(r.prototype,"configField",[h.observable],{enumerable:!0,initializer:null}),o=v(r.prototype,"activeSeriesKey",[h.observable],{enumerable:!0,initializer:null}),v(r.prototype,"orderTooltip",[h.computed],(0,s.default)(r.prototype,"orderTooltip"),r.prototype),v(r.prototype,"setConfigField",[h.action],(0,s.default)(r.prototype,"setConfigField"),r.prototype),v(r.prototype,"cloneElements",[h.action],(0,s.default)(r.prototype,"cloneElements"),r.prototype),v(r.prototype,"setSerieElements",[h.action],(0,s.default)(r.prototype,"setSerieElements"),r.prototype),r);t.default=_,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g=S(a(17)),E=S(a(23)),y=S(a(2)),v=S(a(3)),T=a(5),_=a(50);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t,a,r){a&&(0,g.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function b(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var N=_.CHART_SETTINGS.REGRESSION_TYPE_OPTIONS,A=_.CHART_SETTINGS.REGRESSION_POLYNOMIAL_ORDER,R=_.CHART_SETTINGS.DEFAULT_VALUE,O=_.CHART_SETTINGS.REGRESSION_LINEAR_DECIMAL_PLACES_DEFAULT_VALUE,I=(r=function(){function e(){(0,y.default)(this,e),C(this,"hideInLegend",n,this),C(this,"type",i,this),C(this,"order",o,this),C(this,"lineWidth",l,this),C(this,"dashStyle",s,this),C(this,"color",u,this),C(this,"visible",d,this),C(this,"field",c,this),C(this,"extrapolate",p,this),C(this,"decimalPlaces",f,this),C(this,"name",h,this),C(this,"activeSeriesKey",m,this)}return(0,v.default)(e,[{key:"readData",value:function(e){var t=e||{},a=t.visible,r=void 0===a||a,n=t.hideInLegend,i=void 0!==n&&n,o=t.type,l=void 0===o?N[0].value:o,s=t.order,u=void 0===s?A[0].value:s,d=t.lineWidth,c=void 0===d?R.WIDTH:d,p=t.dashStyle,f=void 0===p?R.DASH_STYLE:p,h=t.color,m=void 0===h?R.BLACK_COLOR:h,g=t.extrapolate,E=void 0===g?null:g,y=t.name,v=void 0===y?"":y,T=t.decimalPlaces,_=void 0===T?O:T;this.name=v,this.visible=r,this.hideInLegend=i,this.type=l,this.order=u,this.lineWidth=c,this.dashStyle=f,this.color=m,this.extrapolate=E,this.decimalPlaces=_}},{key:"updateValue",value:function(e,t){this[e]=t}}]),e}(),n=b(r.prototype,"hideInLegend",[T.observable],{enumerable:!0,initializer:null}),i=b(r.prototype,"type",[T.observable],{enumerable:!0,initializer:null}),o=b(r.prototype,"order",[T.observable],{enumerable:!0,initializer:null}),l=b(r.prototype,"lineWidth",[T.observable],{enumerable:!0,initializer:null}),s=b(r.prototype,"dashStyle",[T.observable],{enumerable:!0,initializer:null}),u=b(r.prototype,"color",[T.observable],{enumerable:!0,initializer:null}),d=b(r.prototype,"visible",[T.observable],{enumerable:!0,initializer:null}),c=b(r.prototype,"field",[T.observable],{enumerable:!0,initializer:null}),p=b(r.prototype,"extrapolate",[T.observable],{enumerable:!0,initializer:null}),f=b(r.prototype,"decimalPlaces",[T.observable],{enumerable:!0,initializer:null}),h=b(r.prototype,"name",[T.observable],{enumerable:!0,initializer:null}),m=b(r.prototype,"activeSeriesKey",[T.observable],{enumerable:!0,initializer:null}),b(r.prototype,"readData",[T.action],(0,E.default)(r.prototype,"readData"),r.prototype),b(r.prototype,"updateValue",[T.action],(0,E.default)(r.prototype,"updateValue"),r.prototype),r);t.default=I,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(14),i=(r=n)&&r.__esModule?r:{default:r},o=a(36),l=a(50),s=a(91),u=a(18),d=a(1);t.default=function(e,t){var a=e.reportPartContent||{},r=function(e){return a.getReportPartProperties(e)};return{reportPartDetails:e,getAllChartProps:function(){var t=r();return{chartOptions:(0,i.default)({},t,{colors:e.getThemeColors(t)}),seriesOptions:e.fieldCollection,chartData:(0,s.parser)(a.activeElmsByContainers,e.expandedLevel,{fieldsMapping:e.previewDataFieldsMapping,records:e.previewDataRecords,rawData:e.previewData})}},resetDefaultGridLine:a.resetGridLineDefaultValue.bind(a),fnResetBorderDefaultValue:a.resetBorderDefaultValue.bind(a),fnResetBackgroundColorDefaultValue:a.resetBackgroundColorDefaultValue.bind(a),fnResetXYPlaneDefaultValue:a.resetXYPlaneDefaultValue.bind(a),fnResetThresholdDefaultValue:a.resetThresholdDefaultValue.bind(a),fnResetRegressionLineDefaultValue:a.resetRegressionLineDefaultValue.bind(a),fnResetRefreshIntervalDefaultValue:a.resetRefreshIntervalValue.bind(a),fnResetLegendDefaultValue:a.resetLegendDefaultValue.bind(a),getBorder:function(){return{"izEntire.borderColor":r("izEntire.borderColor"),"izEntire.borderWidth":r("izEntire.borderWidth"),"izEntire.borderStyle":r("izEntire.borderStyle")}},hadSettingBorder:function(){var e={"izEntire.borderColor":r("izEntire.borderColor"),"izEntire.borderWidth":r("izEntire.borderWidth"),"izEntire.borderStyle":r("izEntire.borderStyle")};return!((0,d.isEqual)(e,l.DEFAULT_SETTING_VALUE.borderDefault)||(0,d.isEqual)(e,l.DEFAULT_SETTING_VALUE.borderNew))},getBackgroundColor:function(){return{"izEntire.backgroundColor":r("izEntire.backgroundColor"),"izPlot.backgroundColor":r("izPlot.backgroundColor")}},hadSettingBackgroundColor:function(){var e={"izEntire.backgroundColor":r("izEntire.backgroundColor"),"izPlot.backgroundColor":r("izPlot.backgroundColor")};return!((0,d.isEqual)(e,l.DEFAULT_SETTING_VALUE.backGroundColorDefault)||(0,d.isEqual)(e,l.DEFAULT_SETTING_VALUE.backGroundColorNew))},getXYPlaneSettings:function(){return{xAxisTitleOption:a.getXAxisTitleOption(),yAxisTitleOption:a.getYAxisTitleOption(),labelsElements:a.labelsElements,valuesElements:a.valuesElements,separatorsElements:a.separatorsElements,metricAllOption:r("metricAllOption")}},hadSettingXYPlane:function(){var e=a.labelsElements,t=a.valuesElements,r=function(e){var t=(0,d.filter)(function(e){var t=(0,d.get)("properties.otherProps.axis",e);return t&&(t["izTitle.enabled"]||(e.previewDataTypeByFunction===u.DATA_TYPES.DATE_TIME?!(0,d.isNil)(t.izTickInterval)&&t.izTickInterval!=l.DEFAULT_SETTING_VALUE.tickInterval:!(0,d.isNil)(t.izTickInterval))||!(0,d.isNil)(t.izStartingPoint))},e);return!(0,d.isEmpty)(t)};return r(e)||r(t)},getGridLines:function(){var e=r("izGridLine")||{};return{xAxis:e.xAxis||{},yAxis:e.yAxis||{}}},getColorTheme:function(){var e=r()||{};return{colorPalette:e.colorTheme,isDefaultTheme:e.isDefaultTheme}},hasSettingGridLine:function(){var e=r("izGridLine")||{};return!(0,d.isNil)(e.xAxis)&&!(0,d.isEmpty)(e.xAxis)&&e.xAxis!==l.DEFAULT_SETTING_VALUE.gridLineDefault||!(0,d.isNil)(e.yAxis)&&!(0,d.isEmpty)(e.yAxis)&&e.yAxis!==l.DEFAULT_SETTING_VALUE.gridLineDefault},getLegendSettings:function(){return{"izLegend.visibility":r("izLegend.visibility"),"izLegend.horizontalAlign":r("izLegend.horizontalAlign"),"izLegend.verticalAlign":r("izLegend.verticalAlign"),"izLegend.borderColor":r("izLegend.borderColor"),"izLegend.borderWidth":r("izLegend.borderWidth"),"izLegend.fontStyling":r("izLegend.fontStyling"),"izLegend.backgroundColor":r("izLegend.backgroundColor"),"izLegend.borderVisible":r("izLegend.borderVisible")}},hadSettingLegend:function(){return r("izLegend.visibility")},getThresholdSettings:function(){return{xAxisTitleOption:a.getXAxisTitleOption(!0),yAxisTitleOption:a.getYAxisTitleOption(!0,!0),labelsElements:a.labelsElements,valuesElements:a.valuesElements,separatorsElements:a.separatorsElements,metricAllPlotLinesOption:r("metricAllPlotLinesOption"),allDynamicThresholdLine:r("allDynamicThresholdLine")}},hadSettingThreshold:function(){var e=a.labelsElements,t=a.valuesElements,n=(0,d.get)("properties.chartType",a),i="Bubble"===n||"Scatter"===n,s=(0,l.isChartType)(n,o.CHART_TYPE.Combination,o.CHART_TYPE.Waterfall),u=s||i?[]:r("metricAllPlotLinesOption"),c=s||i?[]:r("allDynamicThresholdLine"),p=function(e){var t=(0,d.flow)((0,d.flatMap)(function(e){return e.properties.otherProps}),(0,d.filter)(function(e){return e.threshold&&!(0,d.isEmpty)(e.threshold)||!i&&e.dynamicThresholds&&!(0,d.isEmpty)(e.dynamicThresholds)}))(e);return!(0,d.isEmpty)(t)};return p(e)||p(t)||!(0,d.isNil)(u)&&!(0,d.isEmpty)(u)||!(0,d.isNil)(c)&&!(0,d.isEmpty)(c)},getRegressionLineSettings:function(){return{}},hadSeparators:function(){return!(0,d.isEmpty)(a.separatorsElements)},removeUseSeparator:function(){a.resetSeparator(!1),t.needUpdatePreview(e)},hadSettingRegressionLine:function(){return a.hadSettingRegressionLine()},getDataRefreshInterval:function(){return r("dataRefreshInterval")},hadSettingRefreshInterval:function(){var e=l.DEFAULT_SETTING_VALUE.refreshIntervalDefault,t=r("dataRefreshInterval");return t.value!==e.value||t.updateInterval!==e.updateInterval},filterRangeOptions:function(e){var t=(0,d.get)("properties.chartType",a);return(0,l.isChartType)(t,o.CHART_TYPE.Column,o.CHART_TYPE.Bar)?(0,d.filter)(function(e){return"rangeWithAverage"!==e.value},e):e}}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(1),n=a(36),i=a(50),o=a(18),l=a(192);t.default=function(e,t){var a=e.reportPartContent||{},s=function(e){return a.getReportPartProperties(e)};return{hideByChartType:function(e){return!(0,r.has)(e,a.defaultOptionsByType)},hideByChartTypeAndMetrics:function(e){var t=!(0,r.has)(e,a.defaultOptionsByType),n=a.isDisableMultiColor;return t||n},isNotBuild:function(){return!a.isBeingBuild},doesHidePageBreakAfterSeparator:function(){var e=(0,r.get)("properties.chartType",a);return this.isNotBuild()||!(0,i.isChartType)(e,n.CHART_TYPE.Pie,n.CHART_TYPE.Donut,n.CHART_TYPE.Funnel,n.CHART_TYPE.TreeMap)},isBeingBuild:function(){return a.isBeingBuild},getClassNameByChartStatus:function(){return a.isBeingBuild?"chart-being-build":"chart-not-build"},getChartType:function(){return a.chartType},getAvailableVizEngine:function(){return(0,r.flow)((0,r.filter)(["style",a.chartType]),(0,r.map)(function(e){var t=e.vizEngine;return{value:t,label:t}}))((0,l.getAll)(o.REPORT_PART_TYPE.Chart))},getVizEngine:function(){return a.vizEngine},getUseSeparator:function(){return s("izUseSeparator")},getLabelOrientationX:function(){return s("izLabelOrientationX")||"izNormal"},getLabelOrientationY:function(){return s("izLabelOrientationY")||"izNormal"},getValueByKey:s,getReportPartDetails:function(){return e},getFieldStore:function(){return t},doesHideSingleYAxis:function(e){return!(0,r.has)(e,a.defaultOptionsByType)||a.numberOfMetric<=1}}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(28)),n=l(a(509)),i=l(a(411)),o=l(a(1312));function l(e){return e&&e.__esModule?e:{default:e}}t.default={Panel:r.default,CustomDropdown:n.default,ColorPaletteSetting:i.default,OrientationSettings:o.default},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.value,a={backgroundColor:t},i=(0,n.default)("izenda-Color",{"izenda-Color-noColor":!t});return r.default.createElement("div",{className:i,style:a},!t&&r.default.createElement("span",{className:"icon-cancel"}))};var r=i(a(0)),n=i(a(10));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=c(a(124)),i=c(a(125)),o=(r=(0,i.default)(n.default.mark(function e(t){var a,r,i,o,l,s,d;return n.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.store,r=t.needMaskDefault,i=t.selectedPaletteName,o=t.defaultColorThemeLabel,l=t.value,s=void 0===l?{}:l,d=(0,u.isUndefined)(i)?s.colorPalette:i,e.next=4,a.init(d,r,o);case 4:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)}),l=a(11),s=c(a(2651)),u=a(1),d=c(a(504));function c(e){return e&&e.__esModule?e:{default:e}}t.default=(0,l.compose)((0,l.withProps)({store:new d.default,init:o}),(0,l.withHandlers)({showColorPaletteSelectionPopup:(0,u.curry)(function(e,t){var a=e.selectionPopupTitle,r=e.store,n=e.store,i=n.palettes,o=n.currentColorPalette,l=e.onChange,u=e.displaySettingStatus,d=e.updateSelectedPalette;e.openPopup(s.default,{palettes:i,store:r,title:a,selectedPaletteName:o,onChange:l,displaySettingStatus:u,updateSelectedPalette:d})}),resetDefaultValue:(0,u.curry)(function(e,t){var a=e.store,r=e.updateSelectedPalette,n=e.onChange;a.updateOriginalPalette(a.defaultColorPalette),r&&r(a.defaultColorPalette),n&&n({value:{colorPalette:a.defaultColorPalette,isDefaultTheme:!0}})})})),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(a(0)),n=c(a(32)),i=c(a(1311)),o=c(a(15)),l=(a(1),c(a(26))),s=c(a(2652)),u=c(a(4)),d=a(2653);function c(e){return e&&e.__esModule?e:{default:e}}var p=new d.SelectableContext,f=(0,d.createSelectable)(i.default,p);t.default=(0,u.default)(s.default)(function(e){var t=e.localization,a=e.title,i=e.palettes,s=e.selectedPaletteName;return r.default.createElement(n.default,{visible:!0,onClosing:e.onClosing,autoClose:!1,type:"none",sizeClass:"modal-lg"},r.default.createElement(n.default.Header,{title:a}),r.default.createElement(n.default.Body,null,r.default.createElement("div",{className:"izenda-ColorPaletteSelection"},r.default.createElement(l.default,null,r.default.createElement(o.default,null,function(t){return t.map(function(t,a){return r.default.createElement(o.default.Col,{cols:3,xs:6,className:"u_noPaddingLeft izenda-ColorPaletteSelection-Col",key:""+a},r.default.createElement(f,{model:t,isDefaultTheme:t.isDefaultTheme,displaySettingStatus:e.displaySettingStatus,selected:s===t.name,onClick:e.onSelectColorPalette.bind(null,t)}))})}(i))))),r.default.createElement(n.default.Footer,null,r.default.createElement(n.default.ConfirmationButton,{type:"accept"},t.getText("COMMON_LABEL_OK")),r.default.createElement(n.default.ConfirmationButton,{type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(11),i=a(1),o=a(1171);(r=o)&&r.__esModule;t.default=(0,n.withHandlers)({onClosing:(0,i.curry)(function(e,t,a){var r=e.store,n=e.selectedPaletteName,i=e.updateSelectedPalette,o=e.onChange;return"accept"===a?(r.currentColorPalette!==n&&(r.updateOriginalPalette(r.currentColorPalette),i&&i(r.currentColorPalette)),o&&o({value:{colorPalette:r.currentColorPalette,isDefaultTheme:r.currentColorPalette===r.defaultColorPalette}}),e.onAccept()):"cancel"===a?(r.resetSelectedPalette(),e.onReject()):void 0}),onSelectColorPalette:(0,i.curry)(function(e,t,a){e.store.updateSelectedPalette(t.name)})}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSelectable=t.SelectableContext=void 0;var r,n,i,o=v(a(14)),l=v(a(6)),s=v(a(7)),u=v(a(8)),d=v(a(23)),c=v(a(3)),p=v(a(17)),f=v(a(2)),h=a(0),m=v(h),g=a(1),E=a(5),y=a(9);function v(e){return e&&e.__esModule?e:{default:e}}function T(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var _=(n=T((r=function e(t){var a,r,i,o;(0,f.default)(this,e),a=this,r="selected",o=this,(i=n)&&(0,p.default)(a,r,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(o):void 0}),this.selected=t}).prototype,"selected",[E.observable],{enumerable:!0,initializer:function(){return!1}}),r);t.SelectableContext=(T((i=function(){function e(){(0,f.default)(this,e),this.observers=[]}return(0,c.default)(e,[{key:"register",value:function(e,t){this.observers.push({key:e,selectableState:t})}},{key:"unregister",value:function(e){var t=(0,g.findIndex)(function(t){return t.key===e},this.observers);t>-1&&this.observers.splice(t,1)}},{key:"onSelect",value:function(e){var t=(0,g.find)(function(t){return t.key===e},this.observers);return!t.selectableState.selected&&(this.observers.forEach(function(e){e.selectableState.selected&&(e.selectableState.selected=!1)}),t.selectableState.selected=!0,!0)}}]),e}()).prototype,"onSelect",[E.action],(0,d.default)(i.prototype,"onSelect"),i.prototype),i),t.createSelectable=function(e,t){var a;return(0,y.observer)(a=function(a){function r(e){(0,f.default)(this,r);var a=(0,s.default)(this,(r.__proto__||(0,l.default)(r)).call(this,e));return a.onClickHandler=function(e){t.onSelect(a.key)&&a.props.onClick&&a.props.onClick(e)},a.selectableState=new _(!!e.selected),a.key=(0,g.uniqueId)("Selectable_"),a}return(0,u.default)(r,a),(0,c.default)(r,[{key:"componentDidMount",value:function(){t.register(this.key,this.selectableState)}},{key:"componentWillUnmount",value:function(){t.unregister(this.key)}},{key:"render",value:function(){var t=(0,g.omit)(["selected"],this.props);return m.default.createElement("div",{onClick:this.onClickHandler},m.default.createElement(e,(0,o.default)({},t,{selected:this.selectableState.selected})))}}]),r}(h.Component))||a}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=a(1),i=a(5);function o(e,t){return(0,n.get)([e,"value"].join("."),t)}t.default=function(e,t){return(0,i.action)("OnChangeChartProps",function(a,i,l,s,u,d){var c=e.reportPartContent||{},p=(l&&l.length?(0,n.get)(l,a):a)[i];p&&(p.value=s);var f=(0,n.getOr)({},"generalInfo",a),h=(0,n.getOr)({},"chart",a),m=(0,n.getOr)({},"labels",a),g=(0,n.getOr)({},"legends",a),E=(0,n.getOr)({},"grouping",a),y=(0,n.getOr)({},"data",a),v=(0,n.getOr)({},"view",a),T=(0,n.getOr)({},"printing",a),_=o("dataRefreshInterval",v),S=o("chartType",f),C=o("library",f),b=B(i,S,h),N=o("izMultiLevel",h),A=o("izBorder",h)||{},R=o("izXYplane",h),O=o("colorTheme",h),I=o("izGridline",h)||{},D=o("izBackgroundColor",h)||{},P=o("legendSettings",g)||{},L=o("izThresholds",y)||{},M=o("izBottomXpercent",E)||0,F=o("izPageBreakAfterSeparator",T)||!1,k={chartType:S,colorTheme:O.colorPalette,isDefaultTheme:O.isDefaultTheme,commonOptions:{"izEntire.borderColor":A["izEntire.borderColor"],"izEntire.borderWidth":A["izEntire.borderWidth"],"izEntire.borderStyle":A["izEntire.borderStyle"],izLabelOrientation:o("izLabelOrientation",m),izHoverLabels:o("izHoverLabels",m),"izEntire.backgroundColor":D["izEntire.backgroundColor"],"izPlot.backgroundColor":D["izPlot.backgroundColor"],"izLegend.visibility":P["izLegend.visibility"],"izLegend.horizontalAlign":P["izLegend.horizontalAlign"],"izLegend.verticalAlign":P["izLegend.verticalAlign"],"izLegend.borderColor":P["izLegend.borderColor"],"izLegend.borderWidth":P["izLegend.borderWidth"],"izLegend.fontStyling":P["izLegend.fontStyling"],"izLegend.backgroundColor":P["izLegend.backgroundColor"],"izLegend.borderVisible":P["izLegend.borderVisible"]},optionByType:{izMultiColor:b,izMultiLevel:N,izUseSeparator:o("izUseSeparator",E),izInverted:o("izInverted",v),izStep:o("izStep",v),izSpline:o("izSpline",v),izStacking:o("izStacking",E),izRange:o("izRange",y),izValueLabel:o("izValueLabel",y),izSliceLabel:o("izSliceLabel",y),izShowValueFieldName:o("izShowValueFieldName",y),izShowPercentage:!("izBottomXpercent"!==i||!M)||o("izShowPercentage",y),izPieChartStyle:o("izPieChartStyle",v),izBottomXpercent:M,izZoom:o("izZoom",v),izUsePagination:o("izUsePagination",v),izItemPerRow:o("izItemPerRow",v),izSingleYAxis:o("izSingleYAxis",v)},commonXYAxis:{izGridLine:I,izLabelOrientationY:o("izLabelOrientationY",m),izLabelOrientationX:o("izLabelOrientationX",m),metricAllOption:(0,n.get)("metricAllOption",R),metricAllPlotLinesOption:(0,n.get)("metricAllPlotLinesOption",L),allDynamicThresholdLine:(0,n.get)("allDynamicThresholdLine",L)},view:{dataRefreshInterval:_},printing:{izPageBreakAfterSeparator:F}};if("izThresholds"===i&&t.needUpdatePreview(e,null,null,null,null,null,!0),"chartType"===i){c.setChartType(k.chartType).then(function(a){a&&!(0,n.isEmpty)(a)&&t.needUpdatePreview&&t.needUpdatePreview(e)});var x=B(i,S,h);(0,n.has)("izMultiColor.value",h)&&(h.izMultiColor.value=x),c.setMultiColor(x),(0,n.isEmpty)(o("izRange",y))||(y.izRange.value="")}"izUseSeparator"===i&&c.resetSeparator(o("izUseSeparator",E)),"izMultiColor"===i&&c.setMultiColorDirty(),"library"===i&&c.setVizEngine(C),"izMultiLevel"===i&&(c.expandedLevel>0&&(c.resetDrilldownInfo&&c.resetDrilldownInfo(),t.removePillByReportPart&&t.removePillByReportPart(e)),N&&((0,n.has)("izMultiColor.value",h)&&(h.izMultiColor.value=!0),(0,n.has)("optionByType.izMultiColor",k)&&(k.optionByType.izMultiColor=!0),c.setMultiColor(!0),c.setMultiColorDirty())),d&&d(k),k.optionByType=(0,n.omitBy)(n.isNil,k.optionByType),"chartType"!==i&&e.setReportPartProperties(k);var w=(0,n.includes)(i,["izRange","izMultiLevel"]);return("izRange"===i&&(0,n.has)("izRange",c.defaultOptionsByType)&&""===(0,n.get)("optionByType.izRange",k)?t.resetFunctionFormat(c).then((0,n.constant)(!0)):(0,r.resolve)(w)).then(function(e){return{needToUpdate:e,chartProperties:k}});function B(t,a,r){var i=c.defaultOptionsByType,l=(0,n.has)("izMultiColor",i)&&i.izMultiColor;return"chartType"===t&&1===e.state?c.multiColorDirty?o("izMultiColor",r):l:o("izMultiColor",r)}})},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b,N,A,R,O,I,D,P,L,M,F,k,x,w,B,U,z=ce(a(17)),V=ce(a(23)),G=ce(a(71)),H=a(20),Y=ce(a(80)),j=ce(a(14)),K=ce(a(6)),W=ce(a(2)),q=ce(a(3)),Q=ce(a(7)),X=ce(a(8)),J=a(5),Z=ce(a(53)),$=a(18),ee=a(59),te=ce(a(413)),ae=ce(a(48)),re=ce(a(61)),ne=ce(a(36)),ie=ce(a(50)),oe=ce(a(2656)),le=ce(a(185)),se=ce(a(33)),ue=a(176),de=a(1);function ce(e){return e&&e.__esModule?e:{default:e}}function pe(e,t,a,r){a&&(0,z.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function fe(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var he=ae.default.SORT_ORDERS,me=ie.default.ContainerName,ge=ie.default.COMBINE_CHART.DEFAULT_VALUE,Ee=ie.default.SPARK_LINE_CHART.DEFAULT_VALUE,ye=ne.default.CHART_TYPE,ve=ne.default.DefaultConfig.METRIC_ALL,Te=[ye.Bubble,ye.Scatter,ye.Donut,ye.HeatMap,ye.Sparkline,ye.TreeMap],_e=se.default.populateReportChartCustomContainer,Se=se.default.populateReportChartContainer,Ce=se.default.getElements,be=se.default.hasElement,Ne=se.default.resetDefaultSetting,Ae=(r=(0,ee.exportClass)("ReportPartChartContent"),n=(0,J.action)("setTotalLabel"),i=(0,J.action)("afterInsertFieldToContainer"),o=(0,J.action)("afterAddField"),l=(0,J.action)("afterUpdateFunction"),s=(0,J.action)("afterRemoveField"),u=(0,J.action)("readData"),d=(0,J.action)("setReportPartProperties"),c=(0,J.action)("buildDataForSave"),p=(0,J.action)("convertChartType"),f=(0,J.action)("initCombinationChartData"),h=(0,J.action)("initSparklineChartData"),m=(0,J.action)("mergeContainerElements"),g=(0,J.action)("updateContainerElementsPosition"),E=(0,J.action)("removeUndefined"),y=(0,J.action)("resetContainer"),v=(0,J.action)("resetSeparator"),T=(0,J.action)("changePositionField"),_=(0,J.action)("updateDrilldownInfo"),S=(0,J.action)("resetDrilldownInfo"),C=(0,J.action)("resetGridLineDefaultValue"),b=(0,J.action)("resetBorderDefaultValue"),N=(0,J.action)("resetBackgroundColorDefaultValue"),A=(0,J.action)("resetXYPlaneDefaultValue"),R=(0,J.action)("resetThresholdDefaultValue"),O=(0,J.action)("resetRefreshIntervalValue"),I=(0,J.action)("resetLegendDefaultValue"),r(D=(0,Z.default)((P=function(e){function t(e,a,r){(0,W.default)(this,t);var n=(0,Q.default)(this,(t.__proto__||(0,K.default)(t)).call(this,$.REPORT_PART_TYPE.Chart));pe(n,"isCrossFiltering",L,n),pe(n,"title",M,n),pe(n,"description",F,n),pe(n,"activeSerie",k,n),pe(n,"inconsitentFunction",x,n),n.multiColorDirty=!1,pe(n,"properties",w,n),pe(n,"drilldownInfo",B,n),n.containersHistory=[],n.containersHistoryMetric=[],n.isLineLikeChart=function(e){return n.isChartType(e,ye.Line,ye.Pie,ye.Funnel,ye.Donut,ye.TreeMap,ye.Column,ye.Bar,ye.Area,ye.Combination)},n.isBubbleLikeChart=function(e){return n.isChartType(e,ye.Bubble,ye.Scatter)},n.getActiveElmsByActiveSeries=function(e){var t=n.getMetricContainer(),a=function(a){return Ce(a,e,t)},r=(0,de.reduce)(function(e,t){return(0,j.default)({},e,(0,Y.default)({},t.name,a(t)))},{})(n.customContainers);return(0,j.default)({labels:a(n.labels),values:a(n.values),valuesLabels:a(n.valuesLabels),separators:a(n.separators),bubbleSize:a(n.bubbleSize)},r)},pe(n,"resetDrilldownInfo",U,n),n.afterRemoveField=function(e,t){var a=(0,de.getOr)("","field.fieldNameAlias",t),r=(0,de.getOr)([],"values.elements",this);(0,de.forEach)(function(e){(0,de.get)("properties.otherProps.yAxis",e)===a&&(e.properties.otherProps.yAxis="")},r)},n.staticProperties={};var i={};return n.containersHistory=a||[],n.containersHistoryMetric=r||[],se.default.addContainers(i,me.LABELS),se.default.addContainers(i,me.VALUES),se.default.addContainers(i,me.VALUES_LABELS),se.default.addContainers(i,me.SEPARATORS),se.default.addContainers(i,me.BUBBLE_SIZE),n.addCustomContainer(me.DYNAMIC_THRESHOLD),(0,J.extendObservable)(n,i),e?n.readData(e):n.setReportPartProperties(),n.drilldownReaction=(0,J.reaction)(function(){return n[me.LABELS].numElement+n[me.VALUES].numElement+n[me.VALUES_LABELS].numElement+n[me.SEPARATORS].numElement+n[me.BUBBLE_SIZE].numElement},n.resetDrilldownInfo),n.cleanDirty(),n}return(0,X.default)(t,e),(0,q.default)(t,[{key:"setVizEngine",value:function(e){this.properties.vizEngine=e}},{key:"checkedCompatibleFunction",value:function(e,t,a){if(!e)return!0;var r=!0,n=(0,de.getOr)(ae.default.EMPTY_FUNCTION.name,"name",a),i=t.field.hasAggregatedFunction;if(this.isChartType(this.chartType,ye.Column,ye.Area,ye.Bar)&&"values"===e.name&&(0,de.get)("optionByType.izRange",this.properties))return!1;i&&(r=a.userDefined||!n);var o=(0,de.includes)(de.placeholder,["Numeric","Money"]),l=[ye.Line,ye.Column,ye.Bar,ye.Area,ye.Pie,ye.Funnel,ye.Donut,ye.Combination,ye.TreeMap,ye.Waterfall,ye.Sparkline];r&&(this.isChartType(this.chartType,ye.Bubble)&&"bubbleSize"===e.name||this.isChartType.apply(this,[this.chartType].concat(l))&&"values"===e.name)&&(r=o(a.formatDataType)||o(t.fieldDataType)&&!n);var s=(0,oe.default)(this.chartType);return(s=s&&s[e.name])&&r?se.default.checkCompatibleFunctionCommon(a,t,s):r}},{key:"validateFunction",value:function(e,t){return(0,de.get)("name",t)?{status:!0}:{status:!0,useDefaultFunction:!0}}},{key:"getDefaultFunctionFormat",value:function(e,t){if("values"===e.name&&this.defaultOptionsByType.hasOwnProperty("izRange")&&(0,de.get)("optionByType.izRange",this.properties))return null;var a=this.getBaseChartType(this.chartType)||"",r=(0,de.get)(this.chartType,ie.default.DefaultFunction)||(0,de.get)(a,ie.default.DefaultFunction),n=r&&r[e.name||""]||{};return se.default.getDefaultFunction(n,t)}},{key:"setMultiColorDirty",value:function(){this.multiColorDirty=!0}},{key:"setTotalLabel",value:function(e){this.properties.optionByType.izTotalLabel=e,this.markDirty()}},{key:"afterInsertFieldToContainer",value:function(e,t){var a=this.getMetricContainer();switch(e.name===a&&this.setActiveSerie(null,(0,de.last)(this[a].elements)),this.updateMultiColorPropValue(),!0){case this.isChartType(this.chartType,ye.Combination):this.initCombinationElementData(t);break;case this.isChartType(this.chartType,ye.Sparkline):this.initSparklineElementData(t)}}},{key:"afterAddField",value:function(){var e=this;if(this.isBeingBuild){(0,de.forEach)(function(t){se.default.isLinear(t,e.defaultOptionsByType)&&e.resetSortAscending(t)},this.labelsElements);var t=he.ASC,a=he.DESC,r=this.labelsElements.length>=2&&!(0,de.some)(function(e){var r=(0,de.get)("properties.dataFormattings.sort",e);return(0,de.includes)(r,[t.value,a.value])},this.allFieldCollection),n=(0,de.find)(function(e){return 1===e.position},this.labelsElements);r&&n.properties.setSortValue(t.value)}}},{key:"updateMultiColorPropValue",value:function(){this.properties.commonOptions.izDisableMultiColor=this.isDisableMultiColor}},{key:"validateMoreThanOneMetric",value:function(e){var t=(0,de.get)("properties.chartType",this),a=this.getMetricContainer(),r=(0,de.get)("numberOfMetric",this),n=(0,de.get)("properties.optionByType.izMultiColor",this);return!1===(0,de.get)("properties.commonOptions.izDisableMultiColor",this)&&!this.isChartType(t,ye.Sparkline,ye.HeatMap,ye.Waterfall,ye.Donut,ye.Pie,ye.Funnel,ye.TreeMap)&&a===e.name&&!0===n&&r>0?re.default.MESSAGES.M29:null}},{key:"hadSettingRegressionLine",value:function(){return(0,de.some)(function(e){return!(0,de.isEmpty)((0,de.get)("regression",e.properties.getOtherProps()))},this.serieChartList)}},{key:"validateRemoveRegressionLine",value:function(e){return e.name===me.SEPARATORS&&this.hadSettingRegressionLine()?this.isChartType(this.chartType,ye.Sparkline,ye.HeatMap,ye.Waterfall,ye.Donut,ye.Pie,ye.Funnel,ye.TreeMap)?{remove:!0,message:null}:{remove:!0,message:re.default.MESSAGES.M30}:{remove:!1,message:null}}},{key:"afterUpdateFunction",value:function(){this.inconsitentFunction=(0,de.some)({haveFunction:!0},this.allFieldCollection)&&(0,de.some)(function(e){return!e.haveFunction&&!e.field.isRunningField},this.allFieldCollection)}},{key:"afterRemoveField",value:function(e){e.name===this.getMetricContainer()&&(this.updateMultiColorPropValue(),1===e.elements.length&&this.properties.commonXYAxis&&(this.properties.commonXYAxis.metricAllOption={}),e.elements.length>=1&&this.setActiveSerie(null,(0,de.head)(e.elements)))}},{key:"initCombinationElementData",value:function(e,t){var a=e&&e.properties,r=a&&a.getOtherProps&&a.getOtherProps();r=(0,de.merge)(r,{yAxis:t?void 0:ge.yAxis,chartType:t?void 0:ge.chartType,lineWidth:t?void 0:ge.lineWidth,dashStyle:t?void 0:ge.dashStyle}),a&&a.setOtherProps&&a.setOtherProps(void 0,r)}},{key:"initSparklineElementData",value:function(e,t){var a=e&&e.properties,r=a&&a.getOtherProps&&a.getOtherProps();r=(0,de.merge)(r,{chartType:t?void 0:Ee.chartType,lineWidth:t?void 0:Ee.lineWidth,dashStyle:t?void 0:Ee.dashStyle,showTotal:!1}),a.setOtherProps&&a.setOtherProps(void 0,r)}},{key:"readData",value:function(e){var t=(e=e||{}).properties||{};this.isCrossFiltering=e.isCrossFiltering,this.staticProperties=(0,de.get)("staticProperties",t),this.setReportPartProperties((0,de.omit)("staticProperties",t)),this.labels=Se(e.labels,"labels"),this.values=Se(e.values,"values"),_e(e.customContainers,this.customContainers),this.valuesLabels=Se(e.valuesLabels,"valuesLabels"),this.separators=Se(e.separators,"separators"),this.bubbleSize=Se(e.bubbleSize,"bubbleSize"),this.settings=e.settings,this.setActiveSerie(null,(0,de.find)({fieldName:e.selectedMetric},this.serieChartList)),this.updateMultiColorPropValue(),this.containerHistoryStore(this.chartType)}},{key:"setDataByKey",value:function(e,t){this[e]=t,this.markDirty()}},{key:"getDataByKey",value:function(e){return this[e]}},{key:"getReportPartProperties",value:function(e){var t=this.properties||{};if(!e)return(0,de.assign)({staticProperties:this.staticProperties},t);var a=(0,de.getOr)((0,de.get)(e,t.optionByType||{}),e,t.commonOptions||{});return a=(0,de.isUndefined)(a)?(0,de.get)(e,t.view):a,a=(0,de.isUndefined)(a)?(0,de.get)(e,t.commonXYAxis):a,a=(0,de.isUndefined)(a)?(0,de.get)(e,t.printing):a,(0,de.isUndefined)(a)?(0,de.getOr)((0,de.get)(e,this.defaultOptionsByType||{}),e,this.defaultCommonOptions):a}},{key:"setReportPartProperties",value:function(e){var t=function(t,r){var n=e[t]||r;(0,de.isArray)(n)||(0,J.isObservableArray)(n)?a[t].replace(n):((0,de.isObject)(n)||(0,J.isObservable)(n))&&(n=(0,de.omitBy)(de.isUndefined,n),(0,J.extendObservable)(a[t],(0,J.toJS)(n)))};e=e||{};var a=this.properties;e.chartType&&(a.chartType=e.chartType),e.vizEngine&&(a.vizEngine=e.vizEngine),t("commonOptions",this.defaultCommonOptions),t("optionByType",this.defaultOptionsByType),t("commonXYAxis",{}),t("view",{}),t("printing",{}),(0,de.isUndefined)(e.colorTheme)&&!e.isDefaultTheme||(a.isDefaultTheme=e.isDefaultTheme,a.colorTheme=e.colorTheme),this.markDirty()}},{key:"buildDataForSave",value:function(){var e=(0,de.omit)(["properties","staticProperties","expandedLevel","drilldownInfo"],this);return e.properties=this.getReportPartProperties(),e.selectedMetric=(0,de.get)("activeSerie.fieldName",this),e}},{key:"removeInvisibleDynamicThreshold",value:function(){var e=(0,de.flatMap)(function(e){return e.elements.slice()},this.containerCollection),t=(0,de.get)("elements",(0,de.find)({name:me.DYNAMIC_THRESHOLD},this.customContainers)),a=(0,de.get)("properties.commonXYAxis",this);t&&(a&&!(0,de.isEmpty)(a.allDynamicThresholdLine)&&(a.allDynamicThresholdLine=(0,de.remove)(function(e){return!(0,de.find)(function(t){return t.fieldNameAlias===e.fieldName},t)},a.allDynamicThresholdLine)),(0,de.isEmpty)(e)||e.forEach(function(e){var a=e.properties.getOtherProps();(0,de.isEmpty)(a.dynamicThresholds)||(a.dynamicThresholds=(0,de.remove)(function(e){return!(0,de.find)(function(t){return t.fieldNameAlias===e.fieldName},t)},a.dynamicThresholds),(0,de.isEmpty)(a.dynamicThresholds)&&Ne([e],"dynamicThresholds"))}))}},{key:"removeUnuseDynamicThresholds",value:function(){if(this.removeInvisibleDynamicThreshold(),!this.isChartType(this.chartType,ye.Line,ye.Column,ye.Bar,ye.Area)){var e=this.isChartType(this.chartType,ye.Pie,ye.Donut,ye.Funnel,ye.TreeMap,ye.HeatMap,ye.Sparkline),t=this.isChartType(this.chartType,ye.Bubble,ye.Scatter),a=this.isChartType(this.chartType,ye.Combination,ye.Waterfall,ye.Bubble,ye.Scatter);this.resetThresholdDefaultValue(e,t,a)}}},{key:"checkDirty",value:function(){var e=le.default.dirtyReportPartElementField(this.containerCollection),t=(0,de.get)("checkDirty",this.properties);return this.isDirty||!(0,de.isEmpty)(e)||(0,de.isFunction)(t)&&t()}},{key:"cleanDirty",value:function(){this.resetDirty()}},{key:"setChartType",value:function(e){var t=this.properties.chartType;return this.properties.chartType=e,this.setVizEngineByCurrentChartType(),this.setDefaultOptionsByTypeByCurrentChartType(),this.isLinear()&&this.resetSortAscending(this.currentDrilldownField),this.markDirty(),this.convertChartType(t,e)}},{key:"setMultiColor",value:function(e){var t=(0,de.get)("properties.optionByType",this);(0,de.has)("izMultiColor",t)&&(t.izMultiColor=e)}},{key:"metricIsOkay",value:function(e,t){return this.isLineLikeChart(e)&&this.isLineLikeChart(t)||this.isBubbleLikeChart(e)&&this.isBubbleLikeChart(t)}},{key:"convertChartType",value:function(e,t){var a=this,r=!1;switch(this.containerHistoryStore(e),this.containerHistoryRestore(t),!0){case this.isChartType(e,ye.Column,ye.Bar,ye.Area):(0,de.isNil)(this.properties.optionByType.izRange)||(r=!0,this.properties.optionByType.izRange="");break;case this.isChartType(e,ye.Combination):this.initCombinationChartData(!0);break;case this.isChartType(e,ye.Sparkline):this.initSparklineChartData(!0)}switch(!0){case this.isChartType(t,ye.Combination):this.initCombinationChartData();break;case this.isChartType(t,ye.Sparkline):this.initSparklineChartData()}this.separators.elements.length&&(this.properties.optionByType=this.properties.optionByType||{},this.properties.optionByType.izUseSeparator=!0);var n=this.getHistoryMetric(t);n.isNew?this.metricIsOkay(e,t)||this.resetMetric(t):this.setActiveSerie("",n.serieInfo),this.metricIsOkay(e,t)||(r=!0),this.markDirty(),this.updateMultiColorPropValue(),(this.isChartType.apply(this,[e].concat(Te))||this.isChartType.apply(this,[t].concat(Te)))&&(this.resetDrilldownInfo(),r=!0);var i=(0,de.flow)((0,de.flatMap)(function(e){return(0,de.map)(function(t){return!a.checkedCompatibleFunction(e,t,(0,de.getOr)({},"properties.dataFormattings.functionInfo",t))?se.default.setDefaultFunctionElement(a,e,t).then(function(){return r}):r},e.elements)}),de.compact)(this.containerCollection);return(0,H.all)(i)}},{key:"initCombinationChartData",value:function(e){var t=this;this.values.elements.forEach(function(a){t.initCombinationElementData(a,e)})}},{key:"initSparklineChartData",value:function(e){var t=this;this.values.elements.forEach(function(a){t.initSparklineElementData(a,e)})}},{key:"mergeContainerElements",value:function(){var e=[],t=void 0,a=void 0;for(t=0;t-1?(a.splice(o+1,a.length-o-1),r=!0):a.lengthe}},{key:"getDrilldownInfo",value:function(){var e=this.drilldownInfo.filters.map(function(e){return{key:(0,de.get)("key",e),value:(0,de.get)("value",e),dataType:(0,de.get)("field.reportPartElm.fieldDataType",e)}}),t={key:(0,de.get)("key",this.drilldownInfo.separatorValue),value:(0,de.get)("value",this.drilldownInfo.separatorValue),isSeparator:!0};return e=this.expandedLevel<0?[]:this.drilldownInfo.separatorValue?e.unshift(t)&&e:e,{expandedLevel:this.expandedLevel,filters:e}}},{key:"getCrossFilteringInfo",value:function(){return this.drilldownInfo.filters.map(function(e){return{key:(0,de.get)("key",e),value:(0,de.get)("value",e),field:(0,de.get)("field",e)}})}},{key:"getXAxisTitleOption",value:function(e){return(e?this.listLinearFieldInLabelContainer:this.labelsElements).map(function(e){return{value:e.fieldName,label:e.fieldName,dateTimeFormatData:e.dateTimeFormatData}})||[]}},{key:"getYAxisTitleOption",value:function(e,t){var a=e?this.listCountableFieldInValueContainer:this.valuesElements,r=[];(a.length>1||t)&&!this.isChartType(this.chartType,ye.Combination,ye.Sparkline,ye.Bubble,ye.Waterfall,ye.Scatter)&&r.push({value:"",label:ve});var n=a.filter(function(e){return t||(0,de.isEmpty)((0,de.get)("yAxis",e.properties.getOtherProps()))}).map(function(e){return{value:e.fieldName,label:e.fieldName,dateTimeFormatData:e.dateTimeFormatData}});return r.concat(n)}},{key:"setPageSize",value:function(e){this.staticProperties.pageSize=e,this.markDirty()}},{key:"checkBreakPage",value:function(){return this.properties.printing.izPageBreakAfterSeparator&&this.separators.elements&&this.separators.elements.length>0}},{key:"changePropertiesByField",value:function(e,t,a){"function"!==a&&"format"!==a||this.resetDrilldownInfo()}},{key:"checkCanUnsort",value:function(e){var t=(0,de.getOr)("","name",e),a=!1;switch(!0){case this.isChartType(this.chartType,ye.Line,ye.Column,ye.Bar,ye.Area,ye.Pie,ye.Funnel,ye.Donut,ye.Sparkline):a=t!==me.SEPARATORS||this.isChartType(this.chartType,ye.Area,ye.Bar,ye.Column,ye.Line);break;case this.isChartType(this.chartType,ye.Combination,ye.Waterfall):a=!0;break;case this.isChartType(this.chartType,ye.HeatMap,ye.Scatter):a=t!==me.VALUES_LABELS;break;case this.isChartType(this.chartType,ye.Bubble):a=t!==me.VALUES_LABELS&&t!==me.BUBBLE_SIZE}var r=!0;return t===me.LABELS?r=!se.default.isLinear(this.selectedField,this.defaultOptionsByType):t===me.VALUES&&(r=!this.isLinear()),this.isBeingBuild?a&&r:a}},{key:"checkHiddenSortField",value:function(e,t){var a=(0,de.getOr)("","name",t);switch(!0){case this.isChartType(this.chartType,ye.Scatter,ye.HeatMap):return a===me.VALUES_LABELS;case this.isChartType(this.chartType,ye.TreeMap):return a!==me.SEPARATORS;case this.isChartType(this.chartType,ye.Bubble):return a===me.VALUES_LABELS||a===me.BUBBLE_SIZE}return!1}},{key:"resetGridLineDefaultValue",value:function(){this.properties.commonXYAxis.izGridLine={},this.markDirty()}},{key:"resetBorderDefaultValue",value:function(){this.properties.commonOptions["izEntire.borderColor"]=ie.default.DEFAULT_SETTING_VALUE.borderDefault["izEntire.borderColor"],this.properties.commonOptions["izEntire.borderWidth"]=ie.default.DEFAULT_SETTING_VALUE.borderDefault["izEntire.borderWidth"],this.properties.commonOptions["izEntire.borderStyle"]=ie.default.DEFAULT_SETTING_VALUE.borderDefault["izEntire.borderStyle"],this.markDirty()}},{key:"resetBackgroundColorDefaultValue",value:function(){this.properties.commonOptions["izEntire.backgroundColor"]=ie.default.DEFAULT_SETTING_VALUE.backGroundColorDefault["izEntire.backgroundColor"],this.properties.commonOptions["izPlot.backgroundColor"]=ie.default.DEFAULT_SETTING_VALUE.backGroundColorDefault["izPlot.backgroundColor"],this.markDirty()}},{key:"resetXYPlaneDefaultValue",value:function(){Ne(this.labelsElements,"axis"),Ne(this.valuesElements,"axis"),this.markDirty()}},{key:"resetThresholdDefaultValue",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(e&&(Ne(this.labelsElements,"threshold"),Ne(this.valuesElements,"threshold"),Ne(this.valuesLabels.elements,"threshold"),Ne(this.bubbleSize.elements,"threshold")),e||t)&&(Ne(this.labelsElements,"dynamicThresholds"),Ne(this.valuesElements,"dynamicThresholds"),Ne(this.valuesLabels.elements,"dynamicThresholds"),Ne(this.bubbleSize.elements,"dynamicThresholds"),(0,de.find)({name:me.DYNAMIC_THRESHOLD},this.customContainers).elements.clear());var r=(0,de.get)("properties.commonXYAxis",this);r&&(e||a)&&(r.allDynamicThresholdLine=[],r.metricAllPlotLinesOption=[]),this.markDirty()}},{key:"resetRegressionLineDefaultValue",value:function(){Ne(this.serieChartList,"regression"),this.markDirty()}},{key:"resetRefreshIntervalValue",value:function(){this.properties.view.dataRefreshInterval=ie.default.DEFAULT_SETTING_VALUE.refreshIntervalDefault,this.markDirty()}},{key:"resetLegendDefaultValue",value:function(){this.properties.commonOptions["izLegend.visibility"]=!1,this.markDirty()}},{key:"isDrillingDown",value:function(){return!(0,de.flow)((0,de.get)("drilldownInfo.filters"),de.isEmpty)(this)}},{key:"isLinear",value:function(){return!!this.isBeingBuild&&se.default.isLinear(this.currentDrilldownField,this.defaultOptionsByType)}},{key:"setConfigField",value:function(e){this.isBeingBuild&&se.default.isLinear(e,this.defaultOptionsByType)&&(0,de.includes)(e,this.labelsElements)&&this.resetSortAscending(e),this.selectedField=e}},{key:"resetSortAscending",value:function(e){var t=he.ASC,a=he.DESC,r=(0,de.get)("properties.dataFormattings.sort",e);return!(0,de.includes)(r,[t.value,a.value])&&(e.properties.setSortValue(t.value),!0)}},{key:"setDefaultIntervalForDatetime",value:function(){var e=(0,de.get)("properties.otherProps.axis.izTickInterval",this.currentDrilldownField);this.currentDrilldownField&&this.currentDrilldownField.previewDataTypeByFunction===$.DATA_TYPES.DATE_TIME&&(0,de.isNil)(e)&&this.currentDrilldownField.properties.setOtherProps("axis",{izTickInterval:1})}},{key:"updateDynamicThresholdFieldInContainer",value:function(e){(0,de.find)({name:me.DYNAMIC_THRESHOLD},this.customContainers).elements=(0,de.filter)(function(e){return!(0,de.isNil)(e)},e)}},{key:"getHistoryMetric",value:function(e){var t=e;this.isLineLikeChart(e)?t=ye.Line:this.isBubbleLikeChart(e)&&(t=ye.Bubble);var a=(0,de.find)({chartType:t},this.containersHistoryMetric);return(0,de.isNil)(a)?(a={isNew:!0,chartType:t,serieInfo:null},this.containersHistoryMetric.push(a)):a.isNew=!1,a}},{key:"getHistoryContainer",value:function(e){var t=(0,de.find)({name:e},this.containersHistory);return(0,de.isNil)(t)&&(t={name:e,elements:[]},this.containersHistory.push(t)),t}},{key:"containerHistoryStore",value:function(e){this.containersHistory=this.containerHistoryToBase(e)}},{key:"afterChangeFieldNameAlias",value:function(e,t){var a=(0,de.getOr)([],"values.elements",this);(0,de.forEach)(function(a){(0,de.get)("properties.otherProps.yAxis",a)===e&&(a.properties.otherProps.yAxis=t)},a)}},{key:"containerHistoryRestore",value:function(e){this.containerHistoryFromBase(e)}},{key:"containerHistoryCleanCurrent",value:function(){var e=this,t=[me.LABELS,me.VALUES,me.VALUES_LABELS,me.SEPARATORS,me.BUBBLE_SIZE];(0,de.forEach)(function(t){var a=(0,de.getOr)(null,t,e);a&&(a.elements=[])},t)}},{key:"containerHistoryFromBase",value:function(e){var t=this.getHistoryContainer(me.VALUES),a=this.getHistoryContainer(me.LABELS),r=this.getHistoryContainer(me.SEPARATORS),n=t.elements=(0,de.compact)(t.elements),i=a.elements=(0,de.compact)(a.elements),o=r.elements=(0,de.compact)(r.elements);switch(this.containerHistoryCleanCurrent(),!0){case this.isChartType(e,ye.Combination):this.labels.elements=i,this.values.elements=(0,de.slice)(0,5,n);break;case this.isChartType(e,ye.HeatMap):this.labels.elements=[(0,de.head)(i)],this.values.elements=[(0,de.head)(n)],this.valuesLabels.elements=[(0,de.nth)(1,n)];break;case this.isChartType(e,ye.Bubble):this.valuesLabels.elements=i,this.labels.elements=[(0,de.head)(n)],this.values.elements=[(0,de.nth)(1,n)],this.bubbleSize.elements=[(0,de.nth)(2,n)];break;case this.isChartType(e,ye.Scatter):this.valuesLabels.elements=i,this.labels.elements=[(0,de.head)(n)],this.values.elements=[(0,de.nth)(1,n)];break;case this.isChartType(e,ye.Waterfall):this.labels.elements=[(0,de.head)(i)],this.values.elements=[(0,de.head)(n)];break;case this.isChartType(e,ye.Sparkline):this.labels.elements=[(0,de.head)(i)],this.values.elements=(0,de.slice)(0,5,n),this.separators.elements=o;break;default:this.labels.elements=i,this.values.elements=n,this.separators.elements=o}this.labels.elements=(0,de.compact)(this.labels.elements),this.values.elements=(0,de.compact)(this.values.elements),this.separators.elements=(0,de.compact)(this.separators.elements),this.valuesLabels.elements=(0,de.compact)(this.valuesLabels.elements),this.bubbleSize.elements=(0,de.compact)(this.bubbleSize.elements),this.updateContainerElementsPosition(this.labels,this.values,this.bubbleSize,this.valuesLabels,this.separators)}},{key:"containerHistoryToBase",value:function(e){var t=function(e,t){return(0,de.slice)(e,t.length,t)};this.getHistoryMetric(e).serieInfo=this.activeSerie;var a=this.getHistoryContainer(me.LABELS),r=this.getHistoryContainer(me.VALUES),n=this.getHistoryContainer(me.SEPARATORS),i=r.elements,o=a.elements,l=n.elements,s=[],u=[],d=[];switch(!0){case this.isChartType(e,ye.Combination):s=this.labels.elements,u=[].concat((0,G.default)(this.values.elements),(0,G.default)(t(5,i))),d=l;break;case this.isChartType(e,ye.HeatMap):s=[].concat((0,G.default)(this.labels.elements),(0,G.default)(t(1,o))),u=[].concat((0,G.default)(this.values.elements),(0,G.default)(this.valuesLabels.elements),(0,G.default)(t(2,i))),d=l;break;case this.isChartType(e,ye.Bubble):s=this.valuesLabels.elements,u=[].concat((0,G.default)(this.labels.elements),(0,G.default)(this.values.elements),(0,G.default)(this.bubbleSize.elements),(0,G.default)(t(3,i))),d=l;break;case this.isChartType(e,ye.Scatter):s=this.valuesLabels.elements,u=[].concat((0,G.default)(this.labels.elements),(0,G.default)(this.values.elements),(0,G.default)(t(2,i))),d=l;break;case this.isChartType(e,ye.Waterfall):s=[].concat((0,G.default)(this.labels.elements),(0,G.default)(t(1,o))),u=[].concat((0,G.default)(this.values.elements),(0,G.default)(t(1,i))),d=l;break;case this.isChartType(e,ye.Sparkline):s=[].concat((0,G.default)(this.labels.elements),(0,G.default)(t(1,o))),u=[].concat((0,G.default)(this.values.elements),(0,G.default)(t(5,i))),d=this.separators.elements;break;default:s=this.labels.elements,u=this.values.elements,d=this.separators.elements}return[{name:me.LABELS,elements:(0,de.compact)(s)},{name:me.VALUES,elements:(0,de.compact)(u)},{name:me.SEPARATORS,elements:(0,de.compact)(d)}]}},{key:"setDefaultOptionsByTypeByCurrentChartType",value:function(){this.properties.optionByType=this.defaultOptionsByType}},{key:"chartType",get:function(){return this.properties.chartType}},{key:"expandedLevel",get:function(){return this.isChartType(this.chartType,ye.Donut)||this.treeMapWithMultiLevel?$.EXPANDED_LEVEL.ALL:this.drilldownInfo.filters.length}},{key:"treeMapWithMultiLevel",get:function(){var e=(0,de.get)("properties.optionByType.izMultiLevel",this);return this.isChartType(this.chartType,ye.TreeMap)&&e}},{key:"defaultExpandedLevel",get:function(){return this.isChartType(this.chartType,ye.Donut)?$.EXPANDED_LEVEL.ALL:$.EXPANDED_LEVEL[this.hasDrillDown?"FIRST_LEVEL":"ALL"]}},{key:"drilldown",get:function(){return this.getDrilldownInfo()}},{key:"isDisableMultiColor",get:function(){return this.numberOfMetric>1&&!this.isChartType(this.chartType,ye.Donut,ye.Pie,ye.Funnel,ye.TreeMap)}},{key:"numberOfMetric",get:function(){return(0,de.flow)((0,de.get)("serieChartList"),de.size)(this)}},{key:"serieChartList",get:function(){var e=this.getMetricContainer();return(e=this[e]&&this[e].visibleElement)?e.map(function(e){return e}):[]}},{key:"activeElmsByContainers",get:function(){return this.getActiveElmsByActiveSeries((0,de.get)("fieldName",this.activeSerie))}},{key:"allFieldCollection",get:function(){return(0,de.flow)((0,de.flatMap)(function(e){return e.elements?e.elements.slice():[]}),(0,de.filter)(function(e){return!!e}))(this.containerCollection)}},{key:"containerCollection",get:function(){var e=[this.labels,this.values,this.valuesLabels,this.separators,this.bubbleSize];return this.customContainers.forEach(function(t){e.push(t)}),e}},{key:"hasDrillDown",get:function(){return!!(this.labels&&this.labels.visibleElement&&this.labels.visibleElement.length>1)&&!this.isChartType(this.chartType,ye.Donut)}},{key:"labelsElements",get:function(){return this.labels.visibleElement}},{key:"valuesElements",get:function(){return this.values.visibleElement}},{key:"separatorsElements",get:function(){return this.separators.visibleElement}},{key:"valuesLabelsElements",get:function(){return this.valuesLabels.visibleElement}},{key:"bubbleSizeElements",get:function(){return this.bubbleSize.visibleElement}},{key:"isBeingBuild",get:function(){if(this.inconsitentFunction)return!1;switch(!0){case this.isChartType(this.chartType,ye.Line,ye.Column,ye.Bar,ye.Area,ye.Pie,ye.Funnel,ye.Donut,ye.Combination,ye.TreeMap,ye.Waterfall):return be(this.labels,this.values);case this.isChartType(this.chartType,ye.HeatMap,ye.Bubble,ye.Scatter):return be(this.labels,this.values,this.valuesLabels);case this.isChartType(this.chartType,ye.Sparkline):return be(this.values,this.labels);default:return!1}}},{key:"listCountableFieldInLabelContainer",get:function(){return le.default.getCountableElements(this.labelsElements)}},{key:"listLinearFieldInLabelContainer",get:function(){return(0,de.remove)("properties.otherProps.axis.izCategory",this.listCountableFieldInLabelContainer)}},{key:"listCountableFieldInValueContainer",get:function(){return le.default.getCountableElements(this.valuesElements)}},{key:"dataRefreshInterval",get:function(){return(0,de.get)("view.dataRefreshInterval",this.properties)}},{key:"optionalParams",get:function(){return{expandedLevel:this.defaultExpandedLevel}}},{key:"isShowMetric",get:function(){return!this.isChartType(this.chartType,ye.HeatMap,ye.Waterfall)&&(!(0,de.isEmpty)(this.serieChartList)&&this.serieChartList.length>1)}},{key:"isShowBreadcrumb",get:function(){var e=[ye.Donut,ye.HeatMap,ye.Bubble,ye.Scatter,ye.Waterfall,ye.Sparkline];return!(this.isChartType.apply(this,[this.chartType].concat(e))||this.treeMapWithMultiLevel)}},{key:"reportPartStyle",get:function(){return this.properties.chartType}},{key:"vizEngine",get:function(){return this.properties.vizEngine}},{key:"defaultVizEngine",get:function(){return ue.Highcharts}},{key:"currentDrilldownField",get:function(){var e=this.expandedLevel;return(0,de.get)("labelsElements["+e+"]",this)}},{key:"autoSize",get:function(){return!1}}]),t}(te.default),L=fe(P.prototype,"isCrossFiltering",[J.observable],{enumerable:!0,initializer:function(){return!1}}),M=fe(P.prototype,"title",[J.observable],{enumerable:!0,initializer:function(){return null}}),F=fe(P.prototype,"description",[J.observable],{enumerable:!0,initializer:function(){return null}}),k=fe(P.prototype,"activeSerie",[J.observable],{enumerable:!0,initializer:function(){return null}}),x=fe(P.prototype,"inconsitentFunction",[J.observable],{enumerable:!0,initializer:function(){return!1}}),w=fe(P.prototype,"properties",[J.observable],{enumerable:!0,initializer:function(){return{chartType:ie.default.DefaultChartType,vizEngine:ue.Highcharts,colorTheme:void 0,isDefaultTheme:!0,commonOptions:{izDisableMultiColor:!1},optionByType:{izTotalLabel:"",izMultiColor:!1,izMultiLevel:!1},view:{dataRefreshInterval:{enable:!1,updateInterval:0,isAll:!0,latestRecord:0}},commonXYAxis:{},printing:{izPageBreakAfterSeparator:!1}}}}),B=fe(P.prototype,"drilldownInfo",[J.observable],{enumerable:!0,initializer:function(){return{separatorValue:null,filters:[]}}}),fe(P.prototype,"chartType",[J.computed],(0,V.default)(P.prototype,"chartType"),P.prototype),fe(P.prototype,"expandedLevel",[J.computed],(0,V.default)(P.prototype,"expandedLevel"),P.prototype),fe(P.prototype,"treeMapWithMultiLevel",[J.computed],(0,V.default)(P.prototype,"treeMapWithMultiLevel"),P.prototype),fe(P.prototype,"defaultExpandedLevel",[J.computed],(0,V.default)(P.prototype,"defaultExpandedLevel"),P.prototype),fe(P.prototype,"drilldown",[J.computed],(0,V.default)(P.prototype,"drilldown"),P.prototype),fe(P.prototype,"isDisableMultiColor",[J.computed],(0,V.default)(P.prototype,"isDisableMultiColor"),P.prototype),fe(P.prototype,"numberOfMetric",[J.computed],(0,V.default)(P.prototype,"numberOfMetric"),P.prototype),fe(P.prototype,"serieChartList",[J.computed],(0,V.default)(P.prototype,"serieChartList"),P.prototype),fe(P.prototype,"activeElmsByContainers",[J.computed],(0,V.default)(P.prototype,"activeElmsByContainers"),P.prototype),fe(P.prototype,"allFieldCollection",[J.computed],(0,V.default)(P.prototype,"allFieldCollection"),P.prototype),fe(P.prototype,"containerCollection",[J.computed],(0,V.default)(P.prototype,"containerCollection"),P.prototype),fe(P.prototype,"hasDrillDown",[J.computed],(0,V.default)(P.prototype,"hasDrillDown"),P.prototype),fe(P.prototype,"labelsElements",[J.computed],(0,V.default)(P.prototype,"labelsElements"),P.prototype),fe(P.prototype,"valuesElements",[J.computed],(0,V.default)(P.prototype,"valuesElements"),P.prototype),fe(P.prototype,"separatorsElements",[J.computed],(0,V.default)(P.prototype,"separatorsElements"),P.prototype),fe(P.prototype,"valuesLabelsElements",[J.computed],(0,V.default)(P.prototype,"valuesLabelsElements"),P.prototype),fe(P.prototype,"bubbleSizeElements",[J.computed],(0,V.default)(P.prototype,"bubbleSizeElements"),P.prototype),fe(P.prototype,"isBeingBuild",[J.computed],(0,V.default)(P.prototype,"isBeingBuild"),P.prototype),fe(P.prototype,"listCountableFieldInLabelContainer",[J.computed],(0,V.default)(P.prototype,"listCountableFieldInLabelContainer"),P.prototype),fe(P.prototype,"listLinearFieldInLabelContainer",[J.computed],(0,V.default)(P.prototype,"listLinearFieldInLabelContainer"),P.prototype),fe(P.prototype,"listCountableFieldInValueContainer",[J.computed],(0,V.default)(P.prototype,"listCountableFieldInValueContainer"),P.prototype),fe(P.prototype,"dataRefreshInterval",[J.computed],(0,V.default)(P.prototype,"dataRefreshInterval"),P.prototype),fe(P.prototype,"optionalParams",[J.computed],(0,V.default)(P.prototype,"optionalParams"),P.prototype),fe(P.prototype,"isShowMetric",[J.computed],(0,V.default)(P.prototype,"isShowMetric"),P.prototype),fe(P.prototype,"isShowBreadcrumb",[J.computed],(0,V.default)(P.prototype,"isShowBreadcrumb"),P.prototype),fe(P.prototype,"reportPartStyle",[J.computed],(0,V.default)(P.prototype,"reportPartStyle"),P.prototype),fe(P.prototype,"vizEngine",[J.computed],(0,V.default)(P.prototype,"vizEngine"),P.prototype),fe(P.prototype,"setVizEngine",[J.action],(0,V.default)(P.prototype,"setVizEngine"),P.prototype),fe(P.prototype,"currentDrilldownField",[J.computed],(0,V.default)(P.prototype,"currentDrilldownField"),P.prototype),fe(P.prototype,"setTotalLabel",[n],(0,V.default)(P.prototype,"setTotalLabel"),P.prototype),fe(P.prototype,"afterInsertFieldToContainer",[i],(0,V.default)(P.prototype,"afterInsertFieldToContainer"),P.prototype),fe(P.prototype,"afterAddField",[o],(0,V.default)(P.prototype,"afterAddField"),P.prototype),fe(P.prototype,"afterUpdateFunction",[l],(0,V.default)(P.prototype,"afterUpdateFunction"),P.prototype),fe(P.prototype,"afterRemoveField",[s],(0,V.default)(P.prototype,"afterRemoveField"),P.prototype),fe(P.prototype,"readData",[u],(0,V.default)(P.prototype,"readData"),P.prototype),fe(P.prototype,"setReportPartProperties",[d],(0,V.default)(P.prototype,"setReportPartProperties"),P.prototype),fe(P.prototype,"buildDataForSave",[c],(0,V.default)(P.prototype,"buildDataForSave"),P.prototype),fe(P.prototype,"removeInvisibleDynamicThreshold",[J.action],(0,V.default)(P.prototype,"removeInvisibleDynamicThreshold"),P.prototype),fe(P.prototype,"removeUnuseDynamicThresholds",[J.action],(0,V.default)(P.prototype,"removeUnuseDynamicThresholds"),P.prototype),fe(P.prototype,"setChartType",[J.action],(0,V.default)(P.prototype,"setChartType"),P.prototype),fe(P.prototype,"convertChartType",[p],(0,V.default)(P.prototype,"convertChartType"),P.prototype),fe(P.prototype,"initCombinationChartData",[f],(0,V.default)(P.prototype,"initCombinationChartData"),P.prototype),fe(P.prototype,"initSparklineChartData",[h],(0,V.default)(P.prototype,"initSparklineChartData"),P.prototype),fe(P.prototype,"mergeContainerElements",[m],(0,V.default)(P.prototype,"mergeContainerElements"),P.prototype),fe(P.prototype,"updateContainerElementsPosition",[g],(0,V.default)(P.prototype,"updateContainerElementsPosition"),P.prototype),fe(P.prototype,"removeUndefined",[E],(0,V.default)(P.prototype,"removeUndefined"),P.prototype),fe(P.prototype,"resetContainer",[y],(0,V.default)(P.prototype,"resetContainer"),P.prototype),fe(P.prototype,"resetSeparator",[v],(0,V.default)(P.prototype,"resetSeparator"),P.prototype),fe(P.prototype,"changePositionField",[T],(0,V.default)(P.prototype,"changePositionField"),P.prototype),fe(P.prototype,"updateDrilldownInfo",[_],(0,V.default)(P.prototype,"updateDrilldownInfo"),P.prototype),U=fe(P.prototype,"resetDrilldownInfo",[S],{enumerable:!0,initializer:function(){var e=this;return function(){e.drilldownInfo={filters:[],separatorValue:null}}}}),fe(P.prototype,"resetGridLineDefaultValue",[C],(0,V.default)(P.prototype,"resetGridLineDefaultValue"),P.prototype),fe(P.prototype,"resetBorderDefaultValue",[b],(0,V.default)(P.prototype,"resetBorderDefaultValue"),P.prototype),fe(P.prototype,"resetBackgroundColorDefaultValue",[N],(0,V.default)(P.prototype,"resetBackgroundColorDefaultValue"),P.prototype),fe(P.prototype,"resetXYPlaneDefaultValue",[A],(0,V.default)(P.prototype,"resetXYPlaneDefaultValue"),P.prototype),fe(P.prototype,"resetThresholdDefaultValue",[R],(0,V.default)(P.prototype,"resetThresholdDefaultValue"),P.prototype),fe(P.prototype,"resetRegressionLineDefaultValue",[J.action],(0,V.default)(P.prototype,"resetRegressionLineDefaultValue"),P.prototype),fe(P.prototype,"resetRefreshIntervalValue",[O],(0,V.default)(P.prototype,"resetRefreshIntervalValue"),P.prototype),fe(P.prototype,"resetLegendDefaultValue",[I],(0,V.default)(P.prototype,"resetLegendDefaultValue"),P.prototype),fe(P.prototype,"setDefaultIntervalForDatetime",[J.action],(0,V.default)(P.prototype,"setDefaultIntervalForDatetime"),P.prototype),fe(P.prototype,"updateDynamicThresholdFieldInContainer",[J.action],(0,V.default)(P.prototype,"updateDynamicThresholdFieldInContainer"),P.prototype),D=P))||D)||D);t.default=Ae,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,o.isChartType)(e,n.CHART_TYPE.HeatMap),a=(0,o.isChartType)(e,n.CHART_TYPE.Bubble,n.CHART_TYPE.Scatter),r=(0,o.isChartType)(e,n.CHART_TYPE.Column,n.CHART_TYPE.Bar,n.CHART_TYPE.Area,n.CHART_TYPE.Line,n.CHART_TYPE.Pie,n.CHART_TYPE.Funnel,n.CHART_TYPE.Donut,n.CHART_TYPE.Combination,n.CHART_TYPE.TreeMap,n.CHART_TYPE.Waterfall,n.CHART_TYPE.Sparkline);return t?{labels:s,values:s,valuesLabels:s}:a?{labels:s,values:s,valuesLabels:s,bubbleSize:{UNSUPPORTED:{DEFAULT:(0,i.concat)(d,u)}}}:r?{labels:s,values:{UNSUPPORTED:{DEFAULT:(0,i.concat)(d,u)}},separators:l}:{}};var r=a(48),n=a(36),i=a(1),o=a(50),l={SUPPORTED:{Datetime:[r.FUNCTION.GROUP,r.FUNCTION.GROUP_DAYS_OLD],DEFAULT:[r.FUNCTION.GROUP]}},s={UNSUPPORTED:{DEFAULT:[r.FUNCTION.NONE]}},u=[r.FUNCTION.GROUP,r.FUNCTION.GROUP_DAYS_OLD],d=[r.FUNCTION.NONE];e.exports=t.default},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(1313)),o=a(18),l=a(113),s=a(36),u=d(a(104));function d(e){return e&&e.__esModule?e:{default:e}}var c=s.MappingValues.STACK_TYPE_CHART_VALUES,p=s.MappingValues.STEP_TYPE_VALUES,f=s.MappingValues.ZOOM_TYPE_VALUES,h=s.MappingValues.LINE_STYLE_VALUES;r.default.extendConfiguration(o.REPORT_PART_TYPE.Chart,s.CHART_TYPE.Line,null,{visualType:u.default.Line,get visualLabel(){return n.default.getText("REPORT_CHART_TYPE_LINE")},visualPreviewCSS:"chart-line",optionsBuilder:i.default,fieldContainerSchema:[(0,l.createXAxisSchema)(),(0,l.createYAxisSchema)(),l.createSeparatorSchema],optionsMapping:{optionsByType:{izXYplane:{defaultValue:void 0},izGridline:{defaultValue:void 0},izMultiColor:{defaultValue:!1},izLabelOrientation:{defaultValue:void 0},izLabelOrientationX:{defaultValue:void 0},izLabelOrientationY:{defaultValue:void 0},izUseSeparator:{defaultValue:!0},izStacking:{propKey:"plotOptions.series.stacking",propSource:c,defaultValue:void 0},izThresholds:{defaultValue:void 0},izRegressionLine:{defaultValue:void 0},izInverted:{propKey:"chart.inverted",defaultValue:!1},izStep:{propKey:"plotOptions.series.step",propSource:p,defaultValue:void 0},izSpline:{propKey:"izendaOptions.spline",defaultValue:!1},izValueLabel:{propKey:"plotOptions.series.dataLabels.enabled",defaultValue:!1},izZoom:{propKey:"chart.zoomType",propSource:f,defaultValue:void 0},legendSettings:{defaultValue:!0},izLineDashStyle:{propKey:"dashStyle",propSource:h,defaultValue:void 0},izLineWidth:{propKey:"lineWidth",defaultValue:void 0}}}})},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(1314)),o=a(18),l=a(113),s=a(36),u=d(a(104));function d(e){return e&&e.__esModule?e:{default:e}}var c=s.MappingValues.STACK_TYPE_CHART_VALUES,p=s.MappingValues.ZOOM_TYPE_VALUES;r.default.extendConfiguration(o.REPORT_PART_TYPE.Chart,s.CHART_TYPE.Column,null,{visualType:u.default.Column,get visualLabel(){return n.default.getText("REPORT_CHART_TYPE_COLUMN")},visualPreviewCSS:"chart-column",optionsBuilder:i.default,fieldContainerSchema:[(0,l.createXAxisSchema)(),(0,l.createYAxisSchema)(),l.createSeparatorSchema],optionsMapping:{optionsByType:{izXYplane:{defaultValue:void 0},izGridline:{defaultValue:void 0},izMultiColor:{propKey:"plotOptions.series.colorByPoint",defaultValue:!1},izLabelOrientation:{defaultValue:void 0},izLabelOrientationX:{defaultValue:void 0},izLabelOrientationY:{defaultValue:void 0},izUseSeparator:{defaultValue:!0},izStacking:{propKey:"plotOptions.series.stacking",propSource:c,defaultValue:void 0},izRange:{propKey:"izendaOptions.range",defaultValue:void 0},izThresholds:{defaultValue:void 0},izRegressionLine:{defaultValue:void 0},izInverted:{propKey:"chart.inverted",defaultValue:!1},izValueLabel:{propKey:"plotOptions.series.dataLabels.enabled",defaultValue:!1},izZoom:{propKey:"chart.zoomType",propSource:p,defaultValue:void 0},legendSettings:{defaultValue:!0}}}})},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(2660)),o=a(18),l=a(113),s=a(36),u=d(a(104));function d(e){return e&&e.__esModule?e:{default:e}}var c=s.MappingValues.STACK_TYPE_CHART_VALUES,p=(s.MappingValues.STEP_TYPE_VALUES,s.MappingValues.ZOOM_TYPE_VALUES);s.MappingValues.LINE_STYLE_VALUES;r.default.extendConfiguration(o.REPORT_PART_TYPE.Chart,s.CHART_TYPE.Bar,null,{visualType:u.default.Bar,get visualLabel(){return n.default.getText("REPORT_CHART_TYPE_BAR")},visualPreviewCSS:"chart-bar",optionsBuilder:i.default,fieldContainerSchema:[(0,l.createXAxisSchemaWithTransposedLabel)(),(0,l.createYAxisSchemaWithTransposedLabel)(),l.createSeparatorSchema],optionsMapping:{optionsByType:{izXYplane:{defaultValue:void 0},izGridline:{defaultValue:void 0},izMultiColor:{propKey:"plotOptions.series.colorByPoint",defaultValue:!1},izLabelOrientation:{defaultValue:void 0},izLabelOrientationX:{defaultValue:void 0},izLabelOrientationY:{defaultValue:void 0},izUseSeparator:{defaultValue:!0},izStacking:{propKey:"plotOptions.series.stacking",propSource:c,defaultValue:void 0},izRange:{propKey:"izendaOptions.range",defaultValue:void 0},izThresholds:{defaultValue:void 0},izRegressionLine:{defaultValue:void 0},izInverted:{propKey:"chart.inverted",defaultValue:!1},izValueLabel:{propKey:"plotOptions.series.dataLabels.enabled",defaultValue:!1},izZoom:{propKey:"chart.zoomType",propSource:p,defaultValue:void 0},legendSettings:{defaultValue:!0}}}})},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=p(a(6)),i=p(a(2)),o=p(a(3)),l=p(a(7)),s=p(a(133)),u=p(a(8)),d=p(a(1314)),c=(p(a(83)),a(1));function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,a(59).exportClass)("BarChartOptionsBuilder")(r=function(e){function t(){var e;(0,i.default)(this,t);for(var a=arguments.length,r=Array(a),o=0;o1)for(var f=1;f1,_=v&&T&&!this.chartOptions.isSetting;l.series=[].concat((0,n.default)(E),(0,n.default)(y));var S=function(e){var t=o.fieldOptions,a=(0,m.getOr)("","yAxisField.fieldNameAlias",e);return(0,m.find)(function(e){var r=e.fieldNameAlias,n=t[r].dynamicThresholds;return(0,m.find)({fieldName:a},n)},d[s])};return function(e,t,a){var r=t.yAxis,n=(0,m.isNil)(e.colors)?g:e.colors;t.yAxis=[];var i=(0,m.filter)(function(e){return e.type===f.default.Line||e.type===f.default.Area},t.series);if(i.length>0){var o=(0,m.get)("plotOptions.series.colorByPoint",e),l={izMultiColor:o,izDisableMultiColor:e.izDisableMultiColor};h.default.setColorPointForAreaLine(l,i,n);t.plotOptions=(0,m.merge)(t.plotOptions,{series:{colorByPoint:!1}})}if(a){var s=n[0],u=(0,m.assignIn)(r,{title:{text:c.default.getText("COMMON_LABEL_ALL"),style:{color:s}},labels:{style:{color:s}}});t.yAxis.push(u)}else{var d=[],E=0,y=0;(0,m.forEach)(function(e){var t=(0,m.getOr)(null,"axisOption.opposite",e);!0===t?y++:!1===t&&E++},p);var v=0;(0,m.forEach)(function(e){e.serieIndex=v,v++},t.series);var _=(0,m.flow)((0,m.filter)(function(e){return!e.isThreshold}),(0,m.orderBy)(["yAxisName"],["asc"]))(t.series);(0,m.forEach)(function(e){var a=t.yAxis.length,i=e.yAxisName,o=e.serieIndex,l=n[o],s=e.name,u=s,c=!0;if(!T&&i)u=s,s=i;else if(T&&i){var f=(0,m.find)(function(e){return e.serieName===i},d);a=f.index,c=!1}if(e.yAxis=a,d.push({serieName:u,index:a}),c){var h=(0,m.assignIn)(r,{title:{text:s,style:{color:l}},plotLines:(0,m.get)("["+s+"].threshold",p)});h=(0,m.merge)(h,{labels:{style:{color:l}}});var g=(0,m.getOr)({},"["+s+"].axisOption",p);(0,m.isBoolean)(g.opposite)||(E>y?(g.opposite=!0,y++):(g.opposite=!1,E++)),h=(0,m.merge)(h,g),t.yAxis.push(h)}},_);var C=(0,m.filter)(function(e){return e.isThreshold},t.series);(0,m.forEach)(function(e){var t=S(e),a=(0,m.find)(function(e){return e.serieName===t.fieldNameAlias},d);e.yAxis=a.index},C)}}(a,l,_),l}}]),t}(p.default))||r;t.default=E,e.exports=t.default},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(1316)),o=a(18),l=a(113),s=a(36),u=d(a(104));function d(e){return e&&e.__esModule?e:{default:e}}r.default.extendConfiguration(o.REPORT_PART_TYPE.Chart,s.CHART_TYPE.TreeMap,null,{visualType:u.default.TreeMap,get visualLabel(){return n.default.getText("REPORT_CHART_TYPE_TREE_MAP")},visualPreviewCSS:"chart-treemap",visualEngine:"Highcharts",optionsBuilder:i.default,fieldContainerSchema:[(0,l.createXAxisCustomNameSchema)(void 0,l.XAXIS_LABEL_KEY,!0),(0,l.createYAxisCustomNameSchema)(void 0,l.YAXIS_VALUE_KEY,!0),l.createSeparatorSchema],optionsMapping:{optionsByType:{izUseSeparator:{defaultValue:!0},izMultiColor:{propKey:"plotOptions.series.colorByPoint",defaultValue:!1},izMultiLevel:{defaultValue:!1},izLabelOrientation:{defaultValue:void 0},izSliceLabel:{propKey:"izendaOptions.showSliceLabel",defaultValue:!1},izValueLabel:{propKey:"izendaOptions.showValueLabel",defaultValue:!1},legendSettings:{defaultValue:!0},izUsePagination:{defaultValue:!0},izItemPerRow:{defaultValue:2}}}})},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(2671)),o=a(18),l=a(113),s=a(36),u=d(a(104));function d(e){return e&&e.__esModule?e:{default:e}}r.default.extendConfiguration(o.REPORT_PART_TYPE.Chart,s.CHART_TYPE.HeatMap,null,{visualType:u.default.HeatMap,get visualLabel(){return n.default.getText("REPORT_CHART_TYPE_HEAT_MAP")},visualPreviewCSS:"chart-heat",optionsBuilder:i.default,fieldContainerSchema:[(0,l.createXAxisSchema)(1),(0,l.createYAxisSchema)(1,l.YAXIS_LABEL_KEY),(0,l.createValuesLabelsSchema)(1)],optionsMapping:{optionsByType:{izValueLabel:{propKey:"plotOptions.series.dataLabels.enabled",defaultValue:!1},legendSettings:{defaultValue:!0},izGridline:{defaultValue:void 0},izLabelOrientation:{defaultValue:void 0},izLabelOrientationX:{defaultValue:void 0},izLabelOrientationY:{defaultValue:void 0}}}})},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=y(a(6)),o=y(a(2)),l=y(a(3)),s=y(a(7)),u=y(a(133)),d=y(a(8)),c=y(a(412)),p=y(a(83)),f=y(a(33)),h=a(59),m=a(1),g=y(a(36)),E=y(a(177));function y(e){return e&&e.__esModule?e:{default:e}}E.default.getValueFromMappingField;var v=(0,h.exportClass)("HeatmapChartOptionsBuilder")(n=function(e){function t(){var e;(0,o.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n"+e+"
")).find("field").each(function(e,a){var n=(0,_.trim)(r(a).text());if(n===N.default.FIELD_HIDDEN_LABEL){var i=r(a).attr("field-name").match(/\[(.*?)\]/g);n=i[i.length-1].replace("[","").replace("]","")}var o=(0,_.find)({name:n},t);o&&o.field.isCalculated&&r(a).find('[key="fieldId"]').attr("value",o.fieldId),o&&(0,_.isNil)((0,_.get)("properties.drillDown.subReport.selectedReport",o))&&H(a),o&&!o.field.visible&&(r(a).html(r(a).children().filter(function(){var e=r("field-prop",this),t=r(".icon-cancel",this);return e||t})),r(a).find('[class="icon-cancel"]').prev().after(N.default.FIELD_HIDDEN_LABEL));var l=r(a).find('[key="fieldId"]').attr("value");(0,_.find)({fieldId:l},t)||r(a).remove()}),a.html()),this.htmlContent=this.htmlContent.replace(//g,"")}},{key:"buildDataForSave",value:function(){this.rebuildHTMLContent(),this.rearrangeFieldInColumnContainer(),!(0,_.isEmpty)(this.dataTree)&&this.syncFromHTMLToElements(),this.updateSubtotalLevels();var e=(0,_.omit)(["editorControl","selectedFieldElement","repeaterNodes"],this),t=(0,S.toJS)(this.properties);return(0,_.assign)({properties:t},e)}},{key:"setDataTree",value:function(e){this.dataTree=e}},{key:"syncFromHTMLToElements",value:function(e){var t=e||this;!(0,_.isEmpty)(this.activeTabKey)&&this.activeTabKey!==b.default.TAB_VISUAL.key&&!(0,_.isEmpty)(this.dataTree)&&I.default.syncFromHTMLToElements(this.columns,this.separators,this.htmlContent,this.dataTree,t)}},{key:"getReportPartProperties",value:function(e,t){var a=this.properties||{};return e?(0,_.getOr)(t,e,a):a}},{key:"setReportPartProperties",value:function(e){var t=(0,S.toJS)(this.properties)||{};(0,S.transaction)(function(){var a=e||{};a=(0,_.omitBy)(_.isUndefined,a),(0,S.extendObservable)(t,a)}),this.properties=t,this.markDirty()}},{key:"validateFunction",value:function(e,t){return{status:!0}}},{key:"getData",value:function(){return(0,_.omit)("dataSource",(0,_.clone)(this))}},{key:"setHTMLContent",value:function(e,t){t&&!t.isLoadingData&&this.htmlContent!==e&&(t.isLoadingData=!0),this.htmlContent=e,this.updateElementPropsForRepeater.apply(this)}},{key:"getHTMLCodeField",value:function(e,t){var a=e.field.fieldName,r="",n=(0,_.get)("field.querySourceId",e);e.field.isCalculated&&((0,_.isNil)(n)||n===O.default.EMPTY_GUID)?r="["+a+"]":r="["+t.connectionName+"].["+t.querySourceCategoryName+"].["+t.name+"].["+a+"]";r=(0,_.escape)(r);var i=this.activeTabKey===b.default.TAB_HTML.key?a:e.fieldName;return i&&(i=(0,_.escape)(i)),''+I.default.buildHTMLCodeFieldContent(e,!0)+i+''}},{key:"updateHTMLCodeFieldContent",value:function(e,t,a){var n=t||this.selectedFieldElement,i=r(n)[0];if(!(0,_.isNil)(i)){var o=i.outerHTML;o=r(o).removeAttr("contenteditable").removeAttr("data-mce-selected");var l=r(o)[0].outerHTML,s=l&&(0,_.cloneDeep)(l),u=I.default.buildHTMLCodeFieldContent(e),d=(0,_.escape)(e.fieldName);r(i).html((e.hasSubReport?'':"")+u+d+''),this.htmlContent=I.default.cleanHtmlFromTinyMCE(this.htmlContent),this.htmlContent=(0,_.replace)(s,r(i)[0].outerHTML,this.htmlContent.replace(/(\r\n|\n|\r|(\s)+$|((\s)*\t)$)| +(?= )/gm,"")),this.syncHtmlContentToTinyMCE(a)}}},{key:"setFormState",value:function(e,t){(0,_.isNil)(this.formState.id)&&(this.formState.id=t),this.activeTabKey=e}},{key:"setEditorControl",value:function(e){this.editorControl=e}},{key:"getEditorControl",value:function(){return this.editorControl}},{key:"isAllFieldsHaveFunctionOrEmpty",value:function(){return(0,_.every)(function(e){return!0===e.haveFunction||e.field.isRunningField},this.allVisibleElements)||(0,_.every)(function(e){return!e.haveFunction||e.functionInfo.name===x.FUNCTION.DAYS_OLD.NAME},this.allVisibleElements)}},{key:"findFirstNonAggregatableFieldOutsideRepeater",value:function(){if(0===r(this.htmlContent).find("repeater").length)return null;for(var e=(0,_.flow)((0,_.map)(function(e){return String.format("field-prop[key=dataFieldType][value={0}]",e)}),(0,_.join)(","))(["Lob","Image","XML","JSON"]),t=r(this.htmlContent).find(e).parent(),a=0;a0)return n}return null}},{key:"generatePreviewData",value:function(e,t,a,n,i,o,l){if((0,_.isNil)(this.repeaterNodes)){var s=[],u=(0,_.get)("columns.elements",this).concat((0,_.get)("separators.elements",this).slice());this.reportPartFormRepeater.buildRepeaterTree(this.htmlContent,u,0,s),this.repeaterNodes=s}var d,c=this.findFirstNonAggregatableFieldOutsideRepeater();if(!(0,_.isNil)(c)){var p={name:(d=c).textContent,type:r(d).find("field-prop[key=dataFieldType]").attr("value")};return(0,y.resolve)({htmlContent:String.format(b.default.MESSAGES.M17,p.type,p.name)})}if(!this.isAllFieldsHaveFunctionOrEmpty())return(0,y.resolve)({htmlContent:b.default.MESSAGES.M12});var f={},h=(0,_.get)("separators.elements",this).slice(),m=(0,_.get)("columns.elements",this).slice(),g=(0,_.flow)((0,_.concat)(h),(0,_.filter)("isVisible"))(m),E=e.getFilterInfoForSubReport(),v=this.reportPartFormSmartTag.generateDateTimeSmartTag(this.htmlContent),T=[];if((v=this.reportPartFormSmartTag.generateGrandTotalSmartTag(g,n,i,v))!==this.htmlContent?this.reportPartFormRepeater.buildRepeaterTree(v,g,0,T):T=this.repeaterNodes,((v=this.reportPartFormSmartTag.validationSubTotalSmartTag(v,T)).indexOf(R.default.REPEATER_START)>=0||v.indexOf(R.default.REPEATER_START_FORTABLE)>=0)&&t.length>0){var S={data:[]},C=(0,_.head)(this.repeaterNodes),N="";N=!C||0===(0,_.get)("totalFieldRunningField.length",C)?this.reportPartFormRepeater.generateData(v,{fieldsMapping:t,records:i},g,e.reportPart,l,S,E,a):O.default.BUNDLE.MESSAGE.CANNOT_ADD_REPEATER_RUNNING_FIELD,f={htmlContent:N,embeddedReports:[],embeddedSubReports:S.data}}else f=(0,_.isNull)(this.dataTree)||e.printingMode||e.viewMode||this.dataTree.hasLoadDataSource?this.reportPartFormField.generateField(e,t,i,this.properties,this.dataTree,g,v,l,E):{htmlContent:"",embeddedReports:[],embeddedSubReports:[]};return this.reportPartFormEmbeddedReport.generateEmbeddedReport(o,f.htmlContent).then(function(e){return f.embeddedReports=e.embeddedReports,f.htmlContent=e.htmlContent,f})}},{key:"checkBreakPage",value:function(){return this.properties.pageBreakAfterEachEntry||this.checkBreakPageFromHtmlContent()}},{key:"checkBreakPageFromHtmlContent",value:function(){var e=r("
").html(this.htmlContent);return 0!==r('[style^="page-break"]',e).length}},{key:"convertRepeaterTag",value:function(e,t){if(this.hasRepeaterAndTable(this.htmlContent,t)){var a={placeHolders:[]};this.convertTableToPlaceHolder(a,t),this.convertPlaceHolderToTable(a.placeHolders,t)}}},{key:"hasRepeaterAndTable",value:function(e,t){var a=t===b.default.TAB_HTML.key?R.default.REPEATER_START_FORTABLE:R.default.REPEATER_START;return e.indexOf("")>=0&&e.indexOf(a)>=0}},{key:"convertTableToPlaceHolder",value:function(e,t){var a=this.htmlContent.lastIndexOf("",a)+8,n=this.htmlContent.substring(a,r),i="[#TABLE_PLACEHOLDER#"+e.placeHolders.length+"]";this.htmlContent=this.htmlContent.replace(n,i),e.placeHolders.push({text:i,content:n}),this.htmlContent.indexOf("")>=0&&this.convertTableToPlaceHolder(e,t)}},{key:"convertPlaceHolderToTable",value:function(e,t){for(var a=e.length-1;a>=0;a--){var r=e[a],n=r.text,i=o(r.content,n,t);this.htmlContent=this.htmlContent.replace(n,i)}function o(e,t,a){return e=a===b.default.TAB_HTML.key?(e=e.split(R.default.REPEATER_START_FORTABLE).join(R.default.REPEATER_START)).split(R.default.REPEATER_END_FORTABLE).join(R.default.REPEATER_END):(e=e.split(R.default.REPEATER_START).join(R.default.REPEATER_START_FORTABLE)).split(R.default.REPEATER_END).join(R.default.REPEATER_END_FORTABLE)}}},{key:"updateContentWithFieldName",value:function(e,t){return!(!this.htmlContent||-1===this.htmlContent.indexOf("["+e+"]"))&&(this.htmlContent=(0,_.replace)("["+e+"]","["+t+"]",this.htmlContent),this.syncHtmlContentToTinyMCE(),!0)}},{key:"setSelectedFieldElement",value:function(e){this.selectedFieldElement=this.getSelecteField(e),this.markDirty()}},{key:"getSelecteField",value:function(e,t){var a=this.getTinyMCEContentDOM(),n=r("field:not(.mce-offscreen-selection field)",a),i={};return(0,_.forEach)(function(e){!t&&r(e).removeAttr("data-mce-selected")},n),(0,_.forEach)(function(t){var a=(0,_.trim)(r(t).text());if(a===N.default.FIELD_HIDDEN_LABEL){var n=r(t).attr("field-name").match(/\[(.*?)\]/g);a=n[n.length-1].replace("[","").replace("]","")}if(a===e)return i=t,!1},n),t||(r(i).attr("contenteditable",!1),r(i).attr("data-mce-selected",1)),i}},{key:"syncHtmlContentToTinyMCE",value:function(e){B.default.get(this.editorControl.id).setContent(this.htmlContent),!e&&this.setSelectedFieldElement((0,_.trim)(r(this.selectedFieldElement).text()))}},{key:"getTinyMCEContentDOM",value:function(){return r("#"+this.formState.id+"_ifr").contents()}},{key:"getDrilldownInfo",value:function(){return{expandedLevel:-1,filters:[]}}},{key:"checkDirty",value:function(){return this.isDirty}},{key:"cleanDirty",value:function(){this.resetDirty()}},{key:"markFormated",value:function(){this.isFormatted=!0}},{key:"checkedCompatibleFunction",value:function(e,t,a){return!a.name||!t.field.hasAggregatedFunction}},{key:"updateSubtotalLevels",value:function(){var e=(0,_.get)("columns.elements",this).concat((0,_.get)("separators.elements",this).slice());if((0,_.isNil)(this.repeaterNodes)){var t=[];this.reportPartFormRepeater.buildRepeaterTree(this.htmlContent,e,0,t),this.repeaterNodes=t}var a=[];this.clearSubtotalLevels(e);!function e(t){(0,_.forEach)(function(t){var r=function(e){if((0,_.isEmpty)(e.fields))return(0,_.isEmpty)(a)?"":(0,_.last)(a);var t=(0,_.getOr)("","fieldInfo.fieldNameAlias",(0,_.last)(e.fields));return a.push(t),t}(t);(0,_.flow)((0,_.filter)(function(e){return!!(0,_.get)("configField.fieldInfo",e)}),(0,_.forEach)(function(e){var t=e.configField.fieldInfo.properties,a=(0,_.invokeArgs)("getDataValueByKey",["subTotal"],t);a.label&&((0,_.isArray)(a.levels)?-1===(0,_.findIndex)(function(e){return e===r},a.levels)&&a.levels.push(r):a.levels=[r],(0,_.invokeArgs)("setDataFormatByKey",["subTotal",a],t))}))(t.smartTagInContent),!(0,_.isEmpty)(t.childNodes)&&e(t.childNodes),a.pop()},t)}(this.repeaterNodes)}},{key:"clearSubtotalLevels",value:function(e){(0,_.forEach)(function(e){var t=e.properties,a=(0,_.invokeArgs)("getDataValueByKey",["subTotal"],t);a.label&&!(0,_.isEmpty)(a.levels)&&(a.levels=[],(0,_.invokeArgs)("setDataFormatByKey",["subTotal",a],t))},e)}},{key:"readData",value:function(e){e=e||{},this.isCrossFiltering=e.isCrossFiltering,this.isFormatted=e.isFormatted,this.columns=G("columns",e.columns),this.separators=G("separators",e.separators),this.setHTMLContent(e.htmlContent||""),this.rebuildHtml(),this.setReportPartProperties(e.properties)}},{key:"afterChangeSide",value:function(e){!e&&this.syncFromHTMLToElements()}},{key:"buildRepeaterTree",value:function(e){var t=this,a=(0,_.get)("columns.elements",this).concat((0,_.get)("separators.elements",this).slice()),r=[];this.reportPartFormRepeater.buildRepeaterTree(this.htmlContent,a,0,r),this.repeaterNodes=r,(0,_.forEach)(function(e){e&&(e.properties.hasRepeatPart=!1)},a),this.repeaterNodes=r;!function a(r){(0,_.isEmpty)(r)||(0,_.forEach)(function(r){var n=t.checkRepeaterHasSupportUnsort(r);(0,_.forEach)(function(a){var i=a.fieldInfo||{},o=t.checkFieldOnlySupportUnsort(t.repeaterNodes,r,i);t.updateSortValue(i,e,o,n),i.properties.hasRepeatPart=!0},r.fields),a(r.childNodes)},r)}(r)}},{key:"updateSortValue",value:function(e,t,a,r){var n=(0,_.invokeArgs)("getValueByKey",["sort"],e.properties),i=a?"Unsorted":r||"DESC"===n?n:"ASC";if(i!==n){(0,_.invokeArgs)("setDataFormatByKey",["sort",i],e.properties);var o=this.getSelecteField(e.field.fieldNameAlias,!0);t&&o&&this.updateHTMLCodeFieldContent(e,o,!0)}}},{key:"rebuildHTMLContent",value:function(e){var t=B.default.get((0,_.get)("editorControl.id",this));return t&&(this.htmlContent=t.getContent()),this.buildRepeaterTree(e),(0,y.resolve)(!0)}},{key:"insertEmbeddedReportHtml",value:function(e){this.reportPartFormEmbeddedReport.insertEmbeddedReportHtml(e,this.editorControl)}},{key:"updateEmbeddedReportHtml",value:function(e,t){this.reportPartFormEmbeddedReport.insertEmbeddedReportHtml(t,this.editorControl)}},{key:"updateSubTotalHtml",value:function(e,t){this.reportPartFormSmartTag.updateSubTotalHtml(e,t)}},{key:"updateGrandTotalHtml",value:function(e,t){this.reportPartFormSmartTag.updateGrandTotalHtml(e,t)}},{key:"updateContainerField",value:function(){var e=this.reportPartFormField.updateContainerField(this.columns.elements,this.htmlContent);(0,_.isNil)(e)||(this.columns.elements=e)}},{key:"changePageSize",value:function(e){this.properties.pageSize=e}},{key:"configModeAction",value:function(){this.isActiveForEdit=!1}},{key:"resetBorderDefaultValue",value:function(){this.properties.isVisibleBorder=!1,this.properties.borderColor=b.default.FORM_STYLE_DEFAULT.borderColor,this.properties.borderStyle=b.default.FORM_STYLE_DEFAULT.borderStyle,this.properties.borderWidth=b.default.FORM_STYLE_DEFAULT.borderWidth,this.markDirty()}},{key:"resetRefreshIntervalValue",value:function(){this.properties.dataRefreshInterval=b.default.DEFAULT_SETTING_VALUE.refreshIntervalDefault,this.markDirty()}},{key:"rearrangeFieldInColumnContainer",value:function(){var e=this,t=(0,_.get)("totalFields",(0,_.head)(this.repeaterNodes));this.columns.elements.splice(0,this.columns.elements.length),(0,_.forEach)(function(t){t&&t.fieldInfo&&e.columns.elements.push(t.fieldInfo)},t),this.separators.elements.splice(0,this.separators.elements.length)}},{key:"foundRepeaternode",value:function(e,t){var a=void 0;return(0,_.forEach)(function(t){!function e(t,r){if((0,_.isEmpty)(r))return null;(0,_.find)(["fieldInfo.fieldNameAlias",t],r.fields)?a=r:(0,_.forEach)(function(a){e(t,a)},r.childNodes)}(e,t)},t),a}},{key:"checkHiddenSortField",value:function(e){var t=this.foundRepeaternode(e.fieldNameAlias,this.repeaterNodes);return this.checkFieldOnlySupportUnsort(this.repeaterNodes,t,e)}},{key:"checkFieldOnlySupportUnsort",value:function(e,t,a){return!((0,_.isEmpty)(t)||t.childNodes.length>0||0===t.level)&&(!!(0,_.get)("hasGroupingData",(0,_.head)(e))&&(!a.functionInfo.userDefined&&a.isAggregatedField&&(0,_.get)("functionInfo.name",a)!==x.FUNCTION.DAYS_OLD.NAME))}},{key:"checkRepeaterHasSupportUnsort",value:function(e){if((0,_.isNil)(e)||0===e.level&&e.hasSupportUnsort)return!0;var t=e.hasSupportUnsort&&0===(0,_.get)("validSubtotalSmartTag.length",e);return(0,_.get)("hasGroupingData",(0,_.head)(this.repeaterNodes))?!!(0,_.get)("allFieldIsNotGroupingData",(0,_.head)(this.repeaterNodes))&&t:t}},{key:"checkCanUnsort",value:function(e,t){var a=this.foundRepeaternode(t.fieldNameAlias,this.repeaterNodes);return this.checkRepeaterHasSupportUnsort(a)}},{key:"optionalParams",get:function(){return this.properties.usePagination?{expandedLevel:O.default.EXPANDED_LEVEL.ALL,paging:{pageIndex:O.default.DEFAULT_PAGE_INDEX,pageSize:this.properties.pageSize}}:{}}},{key:"reportPartStyle",get:function(){return this.type}},{key:"allVisibleElements",get:function(){return this.columns.visibleElement.concat(this.separators.visibleElement)}},{key:"containerCollection",get:function(){return(0,_.compact)([this.columns,this.separators])}},{key:"isBeingBuild",get:function(){return!(0,_.isEmpty)(this.allVisibleElements)}},{key:"dataRefreshInterval",get:function(){return(0,_.get)("dataRefreshInterval",this.properties)}}]),e}(),o=V(i.prototype,"isCrossFiltering",[S.observable],{enumerable:!0,initializer:function(){return!1}}),l=V(i.prototype,"type",[S.observable],{enumerable:!0,initializer:function(){return O.default.REPORT_PART_TYPE.Form}}),s=V(i.prototype,"editorControl",[S.observable],{enumerable:!0,initializer:function(){return{}}}),u=V(i.prototype,"activeTabKey",[S.observable],{enumerable:!0,initializer:function(){return""}}),d=V(i.prototype,"isSelectedCell",[S.observable],{enumerable:!0,initializer:function(){return!1}}),c=V(i.prototype,"isActiveForEdit",[S.observable],{enumerable:!0,initializer:function(){return!1}}),p=V(i.prototype,"properties",[S.observable],{enumerable:!0,initializer:function(){return{format:{heading:{h1:!1,h2:!1,h3:!1,h4:!1,h5:!1,h6:!1},block:{p:!0,blockquote:!1,div:!1,pre:!1},font:{bold:!1,italic:!1,underline:!1,strikethrough:!1,superscript:!1,subscript:!1,code:!1,fontFamily:F.default.defaultFontFamily,fontSize:F.default.defaultFontSize,textColor:F.default.textColor,backgroundColor:F.default.backgroundColor},alignment:{alignleft:!1,aligncenter:!1,alignright:!1,alignjustify:!1},list:{bullet:"",numbered:""}},pasteAsText:!1,highlightCode:!0,wrapText:!0,mceDirectionRTL:!1,mceDirectionLTR:!1,mceVisualChars:!1,mceToggleVisualAid:!0,usePagination:!0,pageSize:O.default.DEFAULT_PAGE_SIZE,pageBreakAfterEachEntry:!1,dataRefreshInterval:{enable:!1,updateInterval:0,isAll:!0,latestRecord:0}}}}),f=V(i.prototype,"columns",[S.observable],{enumerable:!0,initializer:function(){return{}}}),h=V(i.prototype,"separators",[S.observable],{enumerable:!0,initializer:function(){return{}}}),V(i.prototype,"optionalParams",[S.computed],(0,E.default)(i.prototype,"optionalParams"),i.prototype),V(i.prototype,"reportPartStyle",[S.computed],(0,E.default)(i.prototype,"reportPartStyle"),i.prototype),V(i.prototype,"allVisibleElements",[S.computed],(0,E.default)(i.prototype,"allVisibleElements"),i.prototype),V(i.prototype,"containerCollection",[S.computed],(0,E.default)(i.prototype,"containerCollection"),i.prototype),V(i.prototype,"isBeingBuild",[S.computed],(0,E.default)(i.prototype,"isBeingBuild"),i.prototype),V(i.prototype,"dataRefreshInterval",[S.computed],(0,E.default)(i.prototype,"dataRefreshInterval"),i.prototype),V(i.prototype,"updateSubtotalLevels",[S.action],(0,E.default)(i.prototype,"updateSubtotalLevels"),i.prototype),V(i.prototype,"clearSubtotalLevels",[S.action],(0,E.default)(i.prototype,"clearSubtotalLevels"),i.prototype),V(i.prototype,"readData",[S.action],(0,E.default)(i.prototype,"readData"),i.prototype),V(i.prototype,"afterChangeSide",[S.action],(0,E.default)(i.prototype,"afterChangeSide"),i.prototype),V(i.prototype,"buildRepeaterTree",[S.action],(0,E.default)(i.prototype,"buildRepeaterTree"),i.prototype),V(i.prototype,"rebuildHTMLContent",[S.action],(0,E.default)(i.prototype,"rebuildHTMLContent"),i.prototype),m=V(i.prototype,"updateElementPropsForRepeater",[S.action],{enumerable:!0,initializer:function(){var e=this;return(0,_.debounce)(1e3,function(){e.buildRepeaterTree(!1)})}}),V(i.prototype,"insertEmbeddedReportHtml",[S.action],(0,E.default)(i.prototype,"insertEmbeddedReportHtml"),i.prototype),V(i.prototype,"updateEmbeddedReportHtml",[S.action],(0,E.default)(i.prototype,"updateEmbeddedReportHtml"),i.prototype),V(i.prototype,"updateSubTotalHtml",[S.action],(0,E.default)(i.prototype,"updateSubTotalHtml"),i.prototype),V(i.prototype,"updateGrandTotalHtml",[S.action],(0,E.default)(i.prototype,"updateGrandTotalHtml"),i.prototype),V(i.prototype,"updateContainerField",[S.action],(0,E.default)(i.prototype,"updateContainerField"),i.prototype),V(i.prototype,"resetBorderDefaultValue",[S.action],(0,E.default)(i.prototype,"resetBorderDefaultValue"),i.prototype),V(i.prototype,"resetRefreshIntervalValue",[S.action],(0,E.default)(i.prototype,"resetRefreshIntervalValue"),i.prototype),V(i.prototype,"rearrangeFieldInColumnContainer",[S.action],(0,E.default)(i.prototype,"rearrangeFieldInColumnContainer"),i.prototype),n=i))||n;t.default=Y,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(76)),n=o(a(259)),i=a(1);function o(e){return e&&e.__esModule?e:{default:e}}var l={getReports:function(e){var t="report/reportsByTenant/";return(0,r.default)((0,i.isNil)(e)?t:t+e).get()},validateEmbeddedReport:function(e,t,a,n){var o="report/validateEmbeddedReport/";return!(0,i.isNil)(e)&&(o+=e),o=o+"?reportId="+t+"&reportName="+encodeURIComponent(a)+"&reportPartName="+encodeURIComponent(n),(0,r.default)(o).get()}};n.default.linkToLoadingProgress(l),t.default=l,e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=f(a(23)),o=a(20),l=f(a(2)),s=f(a(3)),u=a(5),d=f(a(763)),c=f(a(61)),p=a(1);function f(e){return e&&e.__esModule?e:{default:e}}var h,m,g,E,y,v,T=(n=function(){function e(){(0,l.default)(this,e)}return(0,s.default)(e,[{key:"insertEmbeddedReportHtml",value:function(e,t){var a=e.selectedReport,r=a.id,n=a.name,i=(0,p.chain)(e.selectedReport.selectedReportParts).map(function(e){return''+n+"/"+e.title+""}).join("").value();t.insertContent(i)}},{key:"updateEmbeddedReportHtml",value:function(e,t){this.insertEmbeddedReportHtml(t)}},{key:"generateEmbeddedReport",value:function(e,t){var a=this,n=r("
"+t+"
").find("embedded-report").toArray(),i=[];return(0,o.each)(n,function(n,o){var l=r(n).attr("id"),s=r(n).text();if(r(n).html()){var u=r(n).html().match(/(<\/span>)(.+)/);(0,p.isArray)(u)&&(s=u.pop())}return d.default.validateEmbeddedReport(l,s,e).then(function(e){var l=r(n).data(),s=l.width,u=l.height,d=r(n).get(0).outerHTML;if((0,p.isObject)(e)){var c=a.getSubReportObject(e,o);c.width=s,c.height=u,c.index=t.indexOf(d);var f='
';i.push(c),t=t.replace(d,f)}else t=t.replace(d,e)})}).then(function(){return{htmlContent:t,embeddedReports:i}})}},{key:"getSubReportObject",value:function(e,t){var a=["EmbededReportPart",t,e.reportPartId,(0,p.uniqueId)("_subreport")].join("_");return{id:e.reportPartId,reportPartDomId:a}}}]),e}(),h=n.prototype,m="insertEmbeddedReportHtml",g=[u.action],E=(0,i.default)(n.prototype,"insertEmbeddedReportHtml"),y=n.prototype,v={},Object.keys(E).forEach(function(e){v[e]=E[e]}),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),v=g.slice().reverse().reduce(function(e,t){return t(h,m,e)||e},v),y&&void 0!==v.initializer&&(v.value=v.initializer?v.initializer.call(y):void 0,v.initializer=void 0),void 0===v.initializer&&(Object.defineProperty(h,m,v),v=null),n);t.default=T,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=m(a(14)),i=m(a(2)),o=m(a(3)),l=a(1),s=m(a(41)),u=m(a(764)),d=m(a(1319)),c=m(a(1320)),p=m(a(333)),f=m(a(177)),h=m(a(33));function m(e){return e&&e.__esModule?e:{default:e}}var g=f.default.getValueFromMappingField,E=p.default.SUBTOTAL_START,y=p.default.SUBTOTAL_END,v=function(){function e(){(0,i.default)(this,e)}return(0,o.default)(e,[{key:"findAll",value:function(e,t,a,r){if(!e||!e.length)return r;r=r||{},a=a||0;var n=e.indexOf(t,a);return n<0?r:(r[n]=t,this.findAll(e,t,n+t.length,r))}},{key:"createPlaceHolder",value:function(e){return String.format("[#&@{0}@&#]",e)}},{key:"getRepeaterPattern",value:function(e){var t,a=this,r={},n={},i=[],o=[],s=[],u=void 0,d=void 0;this.findAll(e,p.default.REPEATER_START,0,r),this.findAll(e,p.default.REPEATER_START_FORTABLE,0,r),this.findAll(e,p.default.REPEATER_END,0,n),this.findAll(e,p.default.REPEATER_END_FORTABLE,0,n),i=(0,l.concat)((0,l.keys)(r),(0,l.keys)(n)),i=(0,l.flow)((0,l.map)(l.toNumber),(0,l.sortBy)(l.identity))(i),s.push((0,l.head)(i));for(var c=1;c"+e+"
").find("field").each(function(o,s){var u=(0,l.trim)(r(s).text()),d=(0,l.find)({fieldNameAlias:u},t),c=n.createPlaceHolder(u);if(!d)return s;d.setRepeaterLevel&&d.setRepeaterLevel(a),i.push({placeHolderKey:c,fieldInfo:d});var p=(0,l.head)(r(s)).outerHTML.length,f=e.indexOf("=0){var h=e.substr(f,p);e=e.replace(h,c)}}),{fields:i,pattern:e}}},{key:"getSubTotals",value:function(e,t){var a=this,n=[];return r("
"+e+"
").find("subtotal").each(function(r,i){var o=(0,l.trim)(i.textContent),s=(0,l.getOr)("","fieldInfo.fieldNameAlias",(0,l.last)(t)),u=a.createPlaceHolder(E+o+y),d=i.outerHTML.length,c=e.indexOf("=0){var p=e.substr(c,d);e=e.replace(p,u)}n.push({placeHolderKey:u,groupFieldLevel:s,subTotalAlias:o})}),{subTotals:n,pattern:e}}},{key:"getOuterDataOfRepeater",value:function(e,t,a){var r=this.getFields(e,t);a=a.concat(r.fields);var n=this.getSubTotals(r.pattern,a);return{fields:r.fields,subTotals:n.subTotals,pattern:n.pattern,repeaterFields:a}}},{key:"buildSmartTagInContentRepeater",value:function(e,t){return(0,l.flow)((0,l.map)(function(e){return new d.default({name:(0,l.trim)(e.textContent),type:"subTotal",repeaterLevel:t,configField:{},subTotalDom:e})}),l.compact)(e)}},{key:"processSubTotal",value:function(e,t){var a=[];return(0,l.forEach)(function(e){var r=(0,l.find)(["name",e.name],t);r&&(a.push({fieldInfo:r}),e.configField={fieldInfo:r})},e),a}},{key:"buildRepeaterTree",value:function(e,t){var a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];try{var o=this.getRepeaterPattern(e),s=this.getFields((0,l.get)("placeHolderPattern",o),t,n),d=!(0,l.flow)((0,l.get)("repeaterParts"),l.isEmpty)(o),c=void 0;try{c=r("
"+o.placeHolderPattern+"
").find("subtotal")}catch(e){}var p=this.buildSmartTagInContentRepeater(c,n),f=this.processSubTotal(p,t),h=new u.default({childNodes:[],level:n,fields:(0,l.get)("fields",s),smartTagInContent:p,fieldSupportSubtotal:f,placeHolderPattern:(0,l.get)("placeHolderPattern",o),placeHolderKey:(0,l.map)(function(e){return e.placeHolderKey},o.repeaterParts),pattern:(0,l.map)(function(e){return e.pattern},o.repeaterParts)});if(i.push(h),!d)return;(0,l.forEach)(function(e){a.buildRepeaterTree(e.pattern,t,n+1,h.childNodes)},o.repeaterParts)}catch(e){}}},{key:"generateData",value:function(e,t,a,r,n,i,o,s){var u=this,d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:[];try{var c=this.getRepeaterPattern(e);if((0,l.isEmpty)(t.records))return this.buildNoRowsRepeater(c);var p=this.getOuterDataOfRepeater((0,l.get)("placeHolderPattern",c),t.fieldsMapping,d),f=(0,l.flow)((0,l.get)("repeaterParts"),l.size)(c)>0,h=f?this.groupData(p.fields,t.records):t.records;return(0,l.map)(function(e){var d=u.parseData(p,f?(0,l.head)(e):e,a,r,n,t.fieldsMapping,i,o,s),h="";return f&&(0,l.forEach)(function(l){h=u.generateData(l.pattern,{records:e,fieldsMapping:t.fieldsMapping},a,r,n,i,o,s,p.repeaterFields),d=d.replace(l.placeHolderKey,h),h=""},c.repeaterParts),d.indexOf("=0?d:d+"
"},h).join("")}catch(e){return"

FAIL

"}}},{key:"buildNoRowsRepeater",value:function(e){var t=e.placeHolderPattern;return(0,l.forEach)(function(e){t=t.replace(e.placeHolderKey,"")},e.repeaterParts),t}},{key:"parseData",value:function(e,t,a,r,i,o,u,d,p){var f=e.pattern,m=e.fields,g=e.subTotals,E=new c.default;return m.forEach(function(e){var n=(0,l.get)("columnName",e.fieldInfo),c=h.default.getFieldValue(n,t);c.value=String.commonStringValue(c.value,s.default.advancedSettings.other.convertNullToEmptyStringValue);var p=(0,l.find)({fieldName:e.fieldInfo.fieldNameAlias},a)||{};if((0,l.isEmpty)(p))f=f.replace(e.placeHolderKey,"");else{var m=(0,l.findIndex)(function(e){return e===t},r.previewDataRecords),g=E.formatField({reportPartElm:p,columnName:n},c,i,m,r,t,o,d);g.embeddedSubReports.length>0&&(u.data=u.data.concat(g.embeddedSubReports)),f=f.replace(e.placeHolderKey,g.newText)}}),g.forEach(function(e){var r=e.placeHolderKey,i=e.subTotalAlias,o=e.groupFieldLevel,s=(0,l.flow)((0,l.find)((0,n.default)({fieldNameAlias:i},!(0,l.isEmpty)(o)&&{groupFieldLevel:o})),(0,l.get)("columnName"))(p),u=(0,l.find)({fieldName:i},a),d=(0,l.get)("properties.dataFormattings.subTotal.dataType",u),c=(0,l.get)("properties.dataFormattings.subTotal.format",u),m=c&&h.default.applyFormater(d,c.format,t[s]);f=f.replace(r,m)}),f}}]),e}();t.default=v,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";var r=i(a(1176)),n=a(18);function i(e){return e&&e.__esModule?e:{default:e}}i(a(210)).default.setConfiguration(n.REPORT_PART_TYPE.Grid,{model:r.default})},function(e,t,a){"use strict";var r=f(a(2685)),n=f(a(2686)),i=f(a(2687)),o=f(a(2688)),l=f(a(2689)),s=f(a(2690)),u=a(18),d=a(539),c=a(1),p=a(176);function f(e){return e&&e.__esModule?e:{default:e}}f(a(210)).default.setConfiguration(u.REPORT_PART_TYPE.Gauge,{visualEngine:p.Highcharts,visualLabel:null,visualPreviewCSS:null,visualType:null,model:s.default,fieldContainerSchema:[(0,c.constant)({chart_title:!0})],propertyWidgets:o.default,propertySchema:r.default,propertyMappingProps:n.default,propertyMappingSource:i.default,propertyValueChange:l.default,optionsMapping:{commonOptions:d.COMMON_OPTIONS,optionsByType:{},thresholdOptions:d.THRESHOLDS_LINE,axisOptions:d.AXIS_OPTIONS}})},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=p(a(80)),i=a(317),o=(p(a(36)),a(192)),l=a(18),s=a(50),u=p(a(12)),d=p(a(760)),c=p(a(335));function p(e){return e&&e.__esModule?e:{default:e}}s.CHART_SCHEMA_NAMES.CHART_KEY,s.CHART_SCHEMA_NAMES.GROUPS,s.CHART_SCHEMA_NAMES.FIELDS;t.default={schemaKey:"RP_GAUGE_TYPE",groups:{generalInfo:{title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_GENERAL_INFO")},fields:{chartType:{factory:i.createDropDownSchema,title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_GAUGE_TYPE")},value:"getChartType",props:{get options(){return(0,o.getAll)(l.REPORT_PART_TYPE.Gauge).map(function(e){return{label:e.label,value:e.style,className:e.previewCSS}})}}}}},gauge:{title:function(){return u.default.getText("COMMON_LABEL_GAUGE")},isHidden:"isNotBuild",hiddenByState:!0,fields:{izBorder:{factory:i.createPopupSettingSchema,title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_BORDER")},value:"getBorder",props:{get reportPartType(){return l.REPORT_PART_TYPE.Gauge},get title(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_GAUGE_BORDER_SETTINGS")},hiddenByState:!0,allChartProps:"getAllChartProps",hadSetting:"hadSettingBorder",fnResetDefaultValue:"fnResetBorderDefaultValue",loadValue:"getSettingBorder"},staticProps:{get popupTitle(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_GAUGE_BORDER_SETTINGS")},popupContent:d.default}},izIntervals:{factory:i.createNumberSchema,title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_INTERVALS")},info:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_INTERVAL_OF_TICK")},isHidden:"hideByChartType",value:"getValueByKey"},colorTheme:{factory:i.createColorPaletteSettingSchema,title:function(){return u.default.getText("COMMON_LABEL_COLOR_THEME")},value:"getColorTheme",props:{get selectionPopupTitle(){return u.default.getText("COLORTHEME_POPUP_HEADER")},get defaultColorThemeLabel(){return u.default.getText("COLORPALETTE_NOTHEME")},displaySettingStatus:!0,needMaskDefault:!1,defaultColorPalette:null,hiddenByState:!0}}}},grouping:{title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_GROUPING")},isHidden:"isNotBuild",className:"getClassNameByChartStatus",fields:{izUseSeparator:{factory:i.createCheckBoxSchema,title:function(){return u.default.getText("COMMON_LABEL_USE_SEPARATOR")},value:"getValueByKey"}}},view:{title:function(){return u.default.getText("MODEL_LABEL_VIEW")},isHidden:"isNotBuild",fields:(r={showLabels:{factory:i.createCheckBoxSchema,title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_SHOW_LABEL")},value:"getValueByKey"},izInverted:{factory:i.createCheckBoxSchema,title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_INVERTED")},isHidden:"hideByChartType",value:"getValueByKey"}},(0,n.default)(r,"izInverted",{factory:i.createCheckBoxSchema,title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_INVERTED")},isHidden:"hideByChartType",value:"getValueByKey"}),(0,n.default)(r,"dataRefreshInterval",{factory:i.createPopupSettingSchema,title:function(){return u.default.getText("COMMON_LABEL_DATA_REFRESH_INTERVAL_SETTING")},value:"getValueByKey",props:{get reportPartType(){return l.REPORT_PART_TYPE.Gauge},get title(){return u.default.getText("COMMON_LABEL_DATA_REFRESH_INTERVAL_SETTING")},hadSetting:"hadSettingRefreshInterval",fnResetDefaultValue:"fnResetRefreshIntervalDefaultValue",hiddenByState:!0,loadValue:"getSettingRefreshInterval"},staticProps:{get popupTitle(){return u.default.getText("COMMON_LABEL_DATA_REFRESH_INTERVAL_SETTING")},popupContent:c.default,popupProps:{type:"none",autoClose:!1}}}),(0,n.default)(r,"izUsePagination",{factory:i.createCheckBoxSchema,title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_USE_PAGINATION")},value:"getValueByKey"}),(0,n.default)(r,"izItemPerRow",{factory:i.createNumberSchema,title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_USE_PAGINATION_ITEM_PER_ROW")},value:"getValueByKey",props:{min:1,max:20,isDecimal:!1}}),r)},printing:{title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_LABEL_PRINTING")},isHidden:"isNotBuild",fields:{izPageBreakAfterSeparator:{factory:i.createCheckBoxSchema,title:function(){return u.default.getText("REPORT_PART_GAUGE_PROPS_SCHEMA_PAGE_BREAK_AFTER_SEPARATOR")},value:"getValueByKey"}}}}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(14),i=(r=n)&&r.__esModule?r:{default:r},o=a(5),l=a(1),s=a(216),u=a(91);t.default=function(e,t){var a=e.reportPartContent||{},r=function(t){if(!t){var r=e&&e.getReportPartProperties();return(0,o.toJS)(r)}return a.getReportPartProperties(t)};return{getAllChartProps:function(){var t=r();return{chartOptions:(0,i.default)({},t,{colors:e.getThemeColors(t)}),seriesOptions:e.fieldCollection,chartData:(0,u.parser)(a.activeElmsByContainers,e.expandedLevel,{fieldsMapping:e.previewDataFieldsMapping,records:e.previewDataRecords,rawData:e.previewData})}},getSettingBorder:function(){return{"izEntire.borderColor":r("izEntire.borderColor"),"izEntire.borderWidth":r("izEntire.borderWidth"),"izEntire.borderStyle":r("izEntire.borderStyle")}},hadSettingBorder:function(){var e={"izEntire.borderColor":r("izEntire.borderColor"),"izEntire.borderWidth":r("izEntire.borderWidth"),"izEntire.borderStyle":r("izEntire.borderStyle")};return!((0,l.isEqual)(e,s.DEFAULT_SETTING_VALUE.borderDefault)||(0,l.isEqual)(e,s.DEFAULT_SETTING_VALUE.borderNew))},getSettingRefreshInterval:function(){return r("dataRefreshInterval")},hadSettingRefreshInterval:function(){r();var e=s.DEFAULT_SETTING_VALUE.refreshIntervalDefault,t=r("dataRefreshInterval");return t.value!==e.value||t.updateInterval!==e.updateInterval},getColorTheme:function(){var e=r()||{};return{colorPalette:e.colorTheme,isDefaultTheme:e.isDefaultTheme}},fnResetBorderDefaultValue:a.resetBorderDefaultValue.bind(a),fnResetRefreshIntervalDefaultValue:a.resetRefreshIntervalValue.bind(a)}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(5),n=a(1);t.default=function(e,t){var a=e.reportPartContent||{},i=function(t){if(!t){var n=e&&e.getReportPartProperties();return(0,r.toJS)(n)}return a.getReportPartProperties(t)};return{hideByChartType:function(e){return!(0,n.has)(e,a.defaultOptionsByType)},isNotBuild:function(){return!a.isBeingBuild},isBeingBuild:function(){return a.isBeingBuild},getClassNameByChartStatus:function(){return a.isBeingBuild?"chart-being-build":"chart-not-build"},getChartType:function(){return a.chartType},getBorder:function(){return{"izEntire.borderColor":i("izEntire.borderColor"),"izEntire.borderWidth":i("izEntire.borderWidth"),"izEntire.borderStyle":i("izEntire.borderStyle")}},getValueByKey:i}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(28)),n=o(a(509)),i=o(a(411));function o(e){return e&&e.__esModule?e:{default:e}}t.default={Panel:r.default,CustomDropdown:n.default,ColorPaletteSetting:i.default},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=a(1),i=a(5);function o(e,t){return(0,n.get)([e,"value"].join("."),t)}t.default=function(e,t){return(0,i.action)("OnChangeGaugeProps",function(t,a,i,l,s,u){var d=(i&&i.length?(0,n.get)(i,t):t)[a];d&&(d.value=l);var c=e.reportPartContent||{},p=(0,n.getOr)({},"generalInfo",t),f=(0,n.getOr)({},"grouping",t),h=o("gauge.izBorder",t)||{},m=(0,n.getOr)({},"view",t),g=o("dataRefreshInterval",m)||{},E=o("gauge.colorTheme",t),y=t.printing.izPageBreakAfterSeparator.value,v={chartType:o("chartType",p),colorTheme:E.colorPalette,isDefaultTheme:E.isDefaultTheme,commonOptions:{"izEntire.borderColor":h["izEntire.borderColor"],"izEntire.borderWidth":h["izEntire.borderWidth"],"izEntire.borderStyle":h["izEntire.borderStyle"]},optionByType:{izUseSeparator:o("izUseSeparator",f),izInverted:o("izInverted",m),izIntervals:o("gauge.izIntervals",t),izUsePagination:o("izUsePagination",m),izItemPerRow:o("izItemPerRow",m)},view:{showLabels:o("showLabels",m),dataRefreshInterval:g},printing:{izPageBreakAfterSeparator:y}};return v.optionByType=(0,n.omitBy)(n.isNil,v.optionByType),"chartType"===a&&c.setChartType(v.chartType),"izUseSeparator"===a&&c.resetSeparator(o("izUseSeparator",f)),u&&u(v),"chartType"!==a&&e.setReportPartProperties(v),(0,r.resolve)({needToUpdate:!1,chartProperties:v})})},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c=F(a(17)),p=F(a(23)),f=F(a(80)),h=F(a(14)),m=F(a(6)),g=F(a(2)),E=F(a(3)),y=F(a(7)),v=F(a(8)),T=a(5),_=F(a(413)),S=a(1),C=F(a(53)),b=a(33),N=a(48),A=a(18),R=a(36),O=a(216),I=F(O),D=a(1321),P=F(a(759)),L=a(59),M=a(176);function F(e){return e&&e.__esModule?e:{default:e}}function k(e,t,a,r){a&&(0,c.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function x(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var w=(0,L.exportClass)("ReportPartGaugeContent")(r=(0,C.default)((n=function(e){function t(e){(0,g.default)(this,t);var a=(0,y.default)(this,(t.__proto__||(0,m.default)(t)).call(this,A.REPORT_PART_TYPE.Gauge));k(a,"isCrossFiltering",i,a),k(a,"title",o,a),k(a,"description",l,a),k(a,"properties",s,a),k(a,"drilldownInfo",u,a),k(a,"activeSerie",d,a),a._customContainers=[],a.staticProperties={};var r={};return(0,b.addContainers)(r,O.ContainerName.LABELS),(0,b.addContainers)(r,O.ContainerName.VALUES),(0,b.addContainers)(r,O.ContainerName.SEPARATORS),(0,T.extendObservable)(a,r),e&&a.readData(e),a.drilldownReaction=(0,T.reaction)(function(){return a[O.ContainerName.LABELS].numElement+a[O.ContainerName.VALUES].numElement+a[O.ContainerName.SEPARATORS].numElement},a.resetDrilldownInfo.bind(a)),a.cleanDirty(),a}return(0,v.default)(t,e),(0,E.default)(t,[{key:"setVizEngine",value:function(e){this.properties.vizEngine=e}},{key:"validateFunction",value:function(e,t){return t?{status:!0}:{status:!1,useDefaultFunction:!1}}},{key:"getDefaultFunctionFormat",value:function(e,t){var a=this.getBaseChartType(this.chartType)||"",r=(0,S.get)(this.chartType,I.default.DefaultFunction)||(0,S.get)(a,I.default.DefaultFunction),n=r&&r[e.name||""]||{};return(0,b.getDefaultFunction)(n,t)}},{key:"readData",value:function(e){var t=(e=e||{}).properties||{};this.isCrossFiltering=e.isCrossFiltering,this.updateMetricElementsFromCustomContainer(e.customContainers,e.values);var a=(0,S.filter)(function(e){return!(0,S.startsWith)("metric",e.name)},e.customContainers);(0,b.populateReportChartCustomContainer)(a,this._customContainers),this.labels=(0,b.populateReportChartContainer)(e.labels,"labels"),this.separators=(0,b.populateReportChartContainer)(e.separators,"separators"),this.values=(0,b.populateReportChartContainer)(e.values,"values",this.afterInsertFieldToContainer.bind(this)),this.settings=e.settings,this.setChartType(t.chartType),this.staticProperties=(0,S.get)("staticProperties",t),this.setReportPartProperties((0,S.omit)("staticProperties",t)),this.setActiveSerie(null,(0,S.find)({fieldName:e.selectedMetric},this.serieChartList))}},{key:"buildDataForSave",value:function(){var e=(0,T.toJS)((0,S.omit)(["properties","staticProperties","expandedLevel","drilldownInfo"],this));return e.properties=this.getReportPartProperties(),e.selectedMetric=(0,S.get)("activeSerie.fieldName",this),e}},{key:"setDataByKey",value:function(e,t){this[e]=t,this.markDirty()}},{key:"getDataByKey",value:function(e){return this[e]}},{key:"cleanDirty",value:function(){this.resetDirty()}},{key:"getReportPartProperties",value:function(e){var t=(0,T.toJS)(this.properties)||{};return e?(0,S.get)(e,t.commonOptions||{})||(0,S.get)(e,t.optionByType||{})||(0,S.get)(e,t.view||{})||(0,S.get)(e,t.printing||{})||(0,S.get)(e,this.defaultCommonOptions||{})||(0,S.get)(e,this.defaultOptionsByType||{}):(0,S.assign)({staticProperties:this.staticProperties},t)}},{key:"getMetricContainer",value:function(){return O.ContainerName.VALUES}},{key:"setReportPartProperties",value:function(e){var t=(0,T.toJS)(this.properties)||{};e=(0,T.toJS)(e),(0,T.extendObservable)(t,e),this.properties=t,(0,S.isUndefined)(e.colorTheme)&&!e.isDefaultTheme||(t.isDefaultTheme=e.isDefaultTheme,t.colorTheme=e.colorTheme),this.markDirty()}},{key:"checkDirty",value:function(){var e=(0,S.flow)((0,S.flatMap)(function(e){return e.elements?e.elements.peek():[]}),(0,S.filter)(function(e){var t=(0,S.get)("properties.metric",e);return e.checkDirty&&e.checkDirty()||t&&t.checkDirty&&t.checkDirty()}))(this.containerCollection),t=this.properties||{},a=t.metric;return this.isDirty||!(0,S.isEmpty)(e)||t.checkDirty&&t.checkDirty()||a&&a.checkDirty&&a.checkDirty()}},{key:"setChartType",value:function(e){var t=this.properties.chartType;this.properties.chartType=e,this.setVizEngineByCurrentChartType(),this.convertChartType(t,e),this.markDirty()}},{key:"convertChartType",value:function(e,t){switch(t){case R.CHART_TYPE.SolidGauge:case R.CHART_TYPE.LinearGauge:a.call(this,"resetSupplementaryKPISetting");break;case R.CHART_TYPE.SimpleGauge:a.call(this,"resetScaleData")}function a(e){var t=void 0;this.values.elements.map(function(a){t=(0,S.getOr)({},"properties.metric",a),(0,S.isFunction)(t[e])&&t[e](),(0,S.invoke)("cleanDirty",t)})}this.markDirty()}},{key:"setActiveSerie",value:function(e,t){this.activeSerie=t,this.markDirty()}},{key:"resetSeparator",value:function(){this.separators.elements.clear()}},{key:"updateMetricElementsFromCustomContainer",value:function(e,t){if(t&&t.elements){var a=function(e,t,a){return(0,S.find)(function(e){e.properties.otherProps.levelName===t&&e.properties.otherProps.levelNameBound},e.elements)};t.elements.forEach(function(t,r){var n=(0,S.find)({name:"metric"+r},e);if(n){var i=(0,S.getOr)(null,"properties.metric",t),o=(0,S.getOr)(null,"thresholds",i);o&&o.setting===I.default.THRESHOLD_SETTINGS.DYNAMIC.value&&(0,S.forEach)(function(e){var t=e.name;if(!(0,S.isNil)(e.element)){var r=a(n,t);r&&(e.element.field.fieldId=r.field.fieldId,e.element.field.querySourceId=r.field.querySourceId)}if(!(0,S.isNil)(e.elementUpper)){var i=a(n,t);i&&(e.elementUpper.field.fieldId=i.field.fieldId,e.elementUpper.field.querySourceId=i.field.querySourceId)}},o.levels);var l=(0,S.getOr)(null,"supplementaryKPI",i);if(l&&l.element&&l.valueType===I.default.THRESHOLD_SETTINGS.DYNAMIC.value){var s=a(n,"supplementaryKPI");s&&(l.element.field.fieldId=s.field.fieldId,l.element.field.querySourceId=s.field.querySourceId)}}})}}},{key:"afterInsertFieldToContainer",value:function(e,t,a){if(e.name===O.ContainerName.VALUES){var r=new P.default((0,S.getOr)({},"properties.metric",a));t.properties.metric=r}}},{key:"afterAddField",value:function(){var e=N.SORT_ORDERS.ASC,t=N.SORT_ORDERS.DESC,a=this.labelsElements.length>=2&&!(0,S.some)(function(a){var r=(0,S.get)("properties.dataFormattings.sort",a);return(0,S.includes)(r,[e.value,t.value])},this.allFieldCollection),r=(0,S.find)(function(e){return 1===e.position},this.labelsElements);this.isBeingBuild&&a&&r.properties.setSortValue(e.value)}},{key:"resetDrilldownInfo",value:function(){this.drilldownInfo={filters:[],separatorValue:null}}},{key:"updateDrilldownInfo",value:function(e,t){if(!this.hasDrillDown)return!1;var a=this.drilldownInfo,r=(0,S.get)("filters",a),n=!1;if(!e&&(0,S.size)(r))return this.resetDrilldownInfo(),n=!0;var i=(0,S.get)("field.fieldNameAlias",e)||(0,S.get)("key",e),o=(0,S.findIndex)({key:i},r),l=(0,S.get)("field.columnName",e);return o>-1?(r.splice(o+1,r.length-o-1),n=!0):r.length0}},{key:"changePositionField",value:function(){this.resetDrilldownInfo()}},{key:"changePropertiesByField",value:function(e,t,a){"function"!==a&&"format"!==a||this.resetDrilldownInfo()}},{key:"checkedCompatibleFunction",value:function(e,t,a){if(!e)return!0;var r=!0,n=(0,S.getOr)(N.EMPTY_FUNCTION.name,"name",a);t.field.hasAggregatedFunction&&(r=a.userDefined||!n);var i=(0,S.includes)(S.placeholder,["Numeric","Money"]);r&&[O.ContainerName.VALUES,O.ContainerName.THRESHOLD].indexOf(e.name)>-1&&(r=i(a.formatDataType)||i(t.fieldDataType)&&!n);var o=D.AVAILABLE_FUNCTION_CONFIG[this.chartType];return(o=o&&o[e.name])&&r?(0,b.checkCompatibleFunctionCommon)(a,t,o):r}},{key:"checkCanUnsort",value:function(e){var t=(0,S.getOr)("","name",e),a=!1;switch(this.chartType){case R.CHART_TYPE.SolidGauge:case R.CHART_TYPE.LinearGauge:case R.CHART_TYPE.SimpleGauge:a=t!==O.ContainerName.SEPARATORS&&t!==O.ContainerName.THRESHOLD}return a}},{key:"resetRefreshIntervalValue",value:function(){return this.properties.view.dataRefreshInterval=I.default.DEFAULT_SETTING_VALUE.refreshIntervalDefault,this.markDirty(),this.properties.view.dataRefreshInterval}},{key:"resetBorderDefaultValue",value:function(){return this.properties.commonOptions=I.default.DEFAULT_SETTING_VALUE.borderDefault,this.markDirty(),this.properties.commonOptions}},{key:"isDrillingDown",value:function(){return!(0,S.flow)((0,S.get)("drilldownInfo.filters"),S.isEmpty)(this)}},{key:"chartType",get:function(){return this.properties.chartType}},{key:"expandedLevel",get:function(){return this.drilldownInfo.filters.length}},{key:"drilldown",get:function(){return this.getDrilldownInfo()}},{key:"serieChartList",get:function(){return(this.values.visibleElement||[]).map(function(e){return e})}},{key:"activeElmsByContainers",get:function(){var e=this,t=(0,S.get)("fieldName",this.activeSerie),a=(0,S.filter)(function(e){return!(0,S.startsWith)("metric",e.name)},this.customContainers),r=(0,S.reduce)(function(t,a){return(0,h.default)({},t,(0,f.default)({},a.name,b.getElements.call(e,a)))},{})(a);return(0,h.default)({labels:b.getElements.call(this,this.labels),values:b.getElements.call(this,this.values,t),separators:b.getElements.call(this,this.separators)},r)}},{key:"containerCollection",get:function(){var e=(0,S.compact)([this.labels,this.values,this.separators]),t={};(0,b.addContainers)(t,O.ContainerName.THRESHOLD),(0,b.addContainers)(t,O.ContainerName.SUP_KPI),(0,b.addContainers)(t,O.ContainerName.SCALE);var a=t[O.ContainerName.THRESHOLD].elements,r=t[O.ContainerName.SUP_KPI].elements,n=t[O.ContainerName.SCALE].elements;return this.values.visibleElement.forEach(function(e){var t=(0,S.get)("properties.metric",e);(0,S.size)(t.thresholds.levels)&&t.thresholds.levels.forEach(function(e){e.element&&a.push(e.element)});var i=(0,S.get)("supplementaryKPI.element",t);i&&r.push(i);var o=(0,S.get)("scale.fromElement",t);o&&n.push(o);var l=(0,S.get)("scale.toElement",t);l&&n.push(l)}),t=(0,T.observable)(t),(0,S.concat)(e,[t[O.ContainerName.THRESHOLD],t[O.ContainerName.SUP_KPI],t[O.ContainerName.SCALE]])}},{key:"isApplyScale",get:function(){return R.CHART_TYPE.SimpleGauge!==this.chartType}},{key:"hasDrillDown",get:function(){return(0,S.get)("numElement",this.labels)>1}},{key:"isBeingBuild",get:function(){return(0,b.hasElement)(this.values)}},{key:"useSeparator",get:function(){return(0,S.get)("optionByType.izUseSeparator",this.properties||{})}},{key:"dataRefreshInterval",get:function(){return(0,S.get)("view.dataRefreshInterval",this.properties)}},{key:"optionalParams",get:function(){return{expandedLevel:A.EXPANDED_LEVEL[this.hasDrillDown?"FIRST_LEVEL":"ALL"]}}},{key:"reportPartStyle",get:function(){return this.properties.chartType}},{key:"vizEngine",get:function(){return this.properties.vizEngine}},{key:"defaultVizEngine",get:function(){return M.Highcharts}},{key:"labelsElements",get:function(){return this.labels.visibleElement}},{key:"valuesElements",get:function(){return this.values.visibleElement}},{key:"allFieldCollection",get:function(){return(0,S.flatMap)(function(e){return e.elements?e.elements.slice():[]},this.containerCollection)}},{key:"isShowMetric",get:function(){return!(0,S.isEmpty)(this.serieChartList)&&this.serieChartList.length>1}},{key:"customContainers",get:function(){var e=this._customContainers;return this.values.elements.forEach(function(t,a){var r=[],n=[],i=(0,T.toJS)((0,S.getOr)({},"properties.metric",t)),o=(0,S.getOr)({},"scale",i),l=(0,S.getOr)(null,"fromElement",o),s=(0,S.getOr)(null,"toElement",o);if((0,S.isNil)(l)||r.push(l),(0,S.isNil)(s)||r.push(s),(0,S.getOr)("","thresholds.setting",i)===I.default.THRESHOLD_SETTINGS.DYNAMIC.value){var u=(0,S.getOr)(null,"thresholds.levels",i);(0,S.forEach)(function(e){var t=e.name,a=e.element,r=e.elementUpper;a&&(a.properties.otherProps.levelName=t,a.properties.otherProps.levelNameBound="element",n.push(a)),r&&(r.properties.otherProps.levelName=t,r.properties.otherProps.levelNameBound="elementUpper",n.push(r))},u)}var d=(0,S.getOr)(null,"supplementaryKPI",i);if(d&&d.element&&d.valueType===I.default.THRESHOLD_SETTINGS.DYNAMIC.value&&(d.element.properties.otherProps.levelName="supplementaryKPI",d.element.properties.otherProps.levelNameBound="supplementaryKPI",n.push(d.element)),n.length){var c="metric"+a;e=(0,S.remove)(function(e){return e.name===c},e),(0,b.addCustomContainers)(e,c).elements=n}if(r.length){var p="metricScale"+a;e=(0,S.remove)(function(e){return e.name===p},e),(0,b.addCustomContainers)(e,p).elements=r}}),this._customContainers=e,e}},{key:"autoSize",get:function(){return!1}}]),t}(_.default),i=x(n.prototype,"isCrossFiltering",[T.observable],{enumerable:!0,initializer:function(){return!1}}),o=x(n.prototype,"title",[T.observable],{enumerable:!0,initializer:function(){return null}}),l=x(n.prototype,"description",[T.observable],{enumerable:!0,initializer:function(){return null}}),s=x(n.prototype,"properties",[T.observable],{enumerable:!0,initializer:function(){return{chartType:I.default.DefaultChartType,vizEngine:M.Highcharts,colorTheme:void 0,isDefaultTheme:!0,optionByType:{izUseSeparator:!0,izUsePagination:!0,izItemPerRow:I.default.ITEM_PER_ROWS},view:{showLabels:!1,dataRefreshInterval:{enable:!1,updateInterval:0,isAll:!0,latestRecord:0}},printing:{izPageBreakAfterSeparator:!1}}}}),u=x(n.prototype,"drilldownInfo",[T.observable],{enumerable:!0,initializer:function(){return{separatorValue:null,filters:[]}}}),d=x(n.prototype,"activeSerie",[T.observable],{enumerable:!0,initializer:function(){return null}}),x(n.prototype,"chartType",[T.computed],(0,p.default)(n.prototype,"chartType"),n.prototype),x(n.prototype,"expandedLevel",[T.computed],(0,p.default)(n.prototype,"expandedLevel"),n.prototype),x(n.prototype,"drilldown",[T.computed],(0,p.default)(n.prototype,"drilldown"),n.prototype),x(n.prototype,"serieChartList",[T.computed],(0,p.default)(n.prototype,"serieChartList"),n.prototype),x(n.prototype,"activeElmsByContainers",[T.computed],(0,p.default)(n.prototype,"activeElmsByContainers"),n.prototype),x(n.prototype,"containerCollection",[T.computed],(0,p.default)(n.prototype,"containerCollection"),n.prototype),x(n.prototype,"isApplyScale",[T.computed],(0,p.default)(n.prototype,"isApplyScale"),n.prototype),x(n.prototype,"hasDrillDown",[T.computed],(0,p.default)(n.prototype,"hasDrillDown"),n.prototype),x(n.prototype,"isBeingBuild",[T.computed],(0,p.default)(n.prototype,"isBeingBuild"),n.prototype),x(n.prototype,"useSeparator",[T.computed],(0,p.default)(n.prototype,"useSeparator"),n.prototype),x(n.prototype,"dataRefreshInterval",[T.computed],(0,p.default)(n.prototype,"dataRefreshInterval"),n.prototype),x(n.prototype,"optionalParams",[T.computed],(0,p.default)(n.prototype,"optionalParams"),n.prototype),x(n.prototype,"reportPartStyle",[T.computed],(0,p.default)(n.prototype,"reportPartStyle"),n.prototype),x(n.prototype,"vizEngine",[T.computed],(0,p.default)(n.prototype,"vizEngine"),n.prototype),x(n.prototype,"setVizEngine",[T.action],(0,p.default)(n.prototype,"setVizEngine"),n.prototype),x(n.prototype,"labelsElements",[T.computed],(0,p.default)(n.prototype,"labelsElements"),n.prototype),x(n.prototype,"valuesElements",[T.computed],(0,p.default)(n.prototype,"valuesElements"),n.prototype),x(n.prototype,"allFieldCollection",[T.computed],(0,p.default)(n.prototype,"allFieldCollection"),n.prototype),x(n.prototype,"isShowMetric",[T.computed],(0,p.default)(n.prototype,"isShowMetric"),n.prototype),x(n.prototype,"customContainers",[T.computed],(0,p.default)(n.prototype,"customContainers"),n.prototype),x(n.prototype,"readData",[T.action],(0,p.default)(n.prototype,"readData"),n.prototype),x(n.prototype,"buildDataForSave",[T.action],(0,p.default)(n.prototype,"buildDataForSave"),n.prototype),x(n.prototype,"setReportPartProperties",[T.action],(0,p.default)(n.prototype,"setReportPartProperties"),n.prototype),x(n.prototype,"setChartType",[T.action],(0,p.default)(n.prototype,"setChartType"),n.prototype),x(n.prototype,"convertChartType",[T.action],(0,p.default)(n.prototype,"convertChartType"),n.prototype),x(n.prototype,"afterInsertFieldToContainer",[T.action],(0,p.default)(n.prototype,"afterInsertFieldToContainer"),n.prototype),x(n.prototype,"afterAddField",[T.action],(0,p.default)(n.prototype,"afterAddField"),n.prototype),x(n.prototype,"resetDrilldownInfo",[T.action],(0,p.default)(n.prototype,"resetDrilldownInfo"),n.prototype),x(n.prototype,"updateDrilldownInfo",[T.action],(0,p.default)(n.prototype,"updateDrilldownInfo"),n.prototype),x(n.prototype,"changePositionField",[T.action],(0,p.default)(n.prototype,"changePositionField"),n.prototype),x(n.prototype,"resetRefreshIntervalValue",[T.action],(0,p.default)(n.prototype,"resetRefreshIntervalValue"),n.prototype),x(n.prototype,"resetBorderDefaultValue",[T.action],(0,p.default)(n.prototype,"resetBorderDefaultValue"),n.prototype),r=n))||r)||r;t.default=w,e.exports=t.default},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(2692)),o=d(a(765)),l=a(18),s=a(36),u=d(a(104));function d(e){return e&&e.__esModule?e:{default:e}}var c=s.MappingValues.ZOOM_TYPE_VALUES;r.default.extendConfiguration(l.REPORT_PART_TYPE.Gauge,s.CHART_TYPE.LinearGauge,null,{visualType:u.default.LinearGauge,get visualLabel(){return n.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_LINEAR_GAUGE")},visualPreviewCSS:"gauge-linear",optionsBuilder:i.default,fieldContainerSchema:o.default,optionsMapping:{optionsByType:{izInverted:{propKey:"chart.inverted",defaultValue:!1},izIntervals:{propKey:"izendaOptions.intervals",defaultValue:void 0},izValueLabel:{propKey:"plotOptions.series.dataLabels.enabled",defaultValue:!1},izZoom:{propKey:"chart.zoomType",propSource:c,defaultValue:void 0}}}})},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=h(a(6)),o=h(a(2)),l=h(a(3)),s=h(a(7)),u=h(a(133)),d=h(a(8)),c=h(a(1322)),p=h(a(83)),f=(h(a(50)),a(1));function h(e){return e&&e.__esModule?e:{default:e}}var m=(0,a(59).exportClass)("LinearGaugeOptionsBuilder")(n=function(e){function t(){var e;(0,o.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n'+a+""},style:{fontSize:"14px"}}}}})}}]),t}(c.default))||n;t.default=m,e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(2694)),o=d(a(765)),l=a(18),s=a(36),u=d(a(104));function d(e){return e&&e.__esModule?e:{default:e}}var c=s.MappingValues.ZOOM_TYPE_VALUES;r.default.extendConfiguration(l.REPORT_PART_TYPE.Gauge,s.CHART_TYPE.SimpleGauge,null,{visualType:u.default.SimpleGauge,get visualLabel(){return n.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_SIMPLE_GAUGE")},visualPreviewCSS:"gauge-simple",optionsBuilder:i.default,fieldContainerSchema:o.default,optionsMapping:{optionsByType:{izInverted:{propKey:"chart.inverted",defaultValue:!1},izIntervals:{propKey:"izendaOptions.intervals",defaultValue:void 0},izValueLabel:{propKey:"plotOptions.series.dataLabels.enabled",defaultValue:!1},izZoom:{propKey:"chart.zoomType",propSource:c,defaultValue:void 0}}}})},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=f(a(70)),i=f(a(6)),o=f(a(2)),l=f(a(3)),s=f(a(7)),u=f(a(8)),d=f(a(538)),c=f(a(83)),p=a(1);function f(e){return e&&e.__esModule?e:{default:e}}var h=(0,a(59).exportClass)("SimpleGaugeOptionsBuilder")(r=function(e){function t(){var e;(0,o.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n4?e:4,this.minGridCols=t>4?t:4}},{key:"setNeedUpdateLayoutStore",value:function(e){this.needUpdateLayoutStore=e}},{key:"setReportPartProperties",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=(0,O.toJS)(this.properties)||{};e=(0,O.toJS)(e),(0,O.extendObservable)(a,e),this.properties=a,(0,D.isUndefined)(e.colorTheme)&&!e.isDefaultTheme||(a.isDefaultTheme=e.isDefaultTheme,a.colorTheme=e.colorTheme),!t&&this.markDirty()}},{key:"checkDirty",value:function(){var e=(0,D.flow)((0,D.flatMap)(function(e){return e.elements?e.elements.peek():[]}),(0,D.filter)(function(e){var t=(0,D.get)("properties.metric",e);return e.checkDirty&&e.checkDirty()||t&&t.checkDirty&&t.checkDirty()}))(this.containerCollection),t=this.properties||{},a=t.metric;return this.isDirty||!(0,D.isEmpty)(e)||t.checkDirty&&t.checkDirty()||a&&a.checkDirty&&a.checkDirty()}},{key:"setChartType",value:function(e){var t=this.properties.chartType;this.properties.chartType=e,this.convertChartType(t,e),this.markDirty()}},{key:"convertChartType",value:function(e,t){switch(t){case k.CHART_TYPE.SimpleGauge:(function(e){var t=void 0;this.values.elements.map(function(a){t=(0,D.getOr)({},"properties.metric",a),(0,D.isFunction)(t[e])&&t[e](),(0,D.invoke)("cleanDirty",t)})}).call(this,"resetScaleData")}this.markDirty()}},{key:"setHasMetricTile",value:function(e,t){e===K.metric.id&&(this.hasMetricTile=t)}},{key:"addGridData",value:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.gridData.length;this.setHasMetricTile(e,!0);var r=new V.default((0,S.default)({},t,{tileType:e,id:(0,D.uniqueId)("reportPartKPI_"),isNew:a}));this.gridData.push(r);var n=this.gridData[this.gridData.length-1];this.setActiveTile(n),e===K.metric.id&&this.properties.optionByType.metricTile.push(this.getMetricTile(r)),this.markDirty()}},{key:"getMetricTile",value:function(e){return{tile:e,tileProperties:e.properties.getStyle&&e.properties.getStyle()}}},{key:"getMetricTileList",value:function(){var e=(0,D.head)((0,D.filter)(function(e){return e.tileType===K.metric.id},this.gridData.toJS()));return(0,D.isNil)(e)?[]:[this.getMetricTile(e)]}},{key:"updateGridDataPosition",value:function(e){var t=!1;this.gridData.map(function(a){a.id===e.id&&(a.height===e.height&&a.width===e.width&&a.left===e.left&&a.top===e.top||(t=!0),a.updatePosition(e))}),t&&this.markDirty()}},{key:"setActiveTile",value:function(e){this.activeTile=e}},{key:"deleteActiveTile",value:function(){var e=this;this.gridData=this.gridData.filter(function(t){return e.activeTile.id!==t.id}),this.setHasMetricTile(this.activeTile.tileType,!1),this.activeTile=null}},{key:"setActiveSerie",value:function(e,t){this.activeSerie=t,this.markDirty()}},{key:"afterInsertFieldToContainer",value:function(e,t,a){if(e.name===j.VALUES){var r=new B.default((0,D.getOr)({},"properties.metric",a));t.properties.metric=r}}},{key:"setPageSize",value:function(e){this.staticProperties.pageSize=e}},{key:"checkBreakPage",value:function(){return this.properties.printing.izPageBreakAfterSeparator}},{key:"checkedCompatibleFunction",value:function(e,t,a){if(!e)return!0;var r=!0,n=(0,D.getOr)(M.EMPTY_FUNCTION.name,"name",a);t.field.hasAggregatedFunction&&(r=a.userDefined||!n);var i=(0,D.includes)(D.placeholder,["Numeric","Money"]);r&&[j.VALUES].indexOf(e.name)>-1&&(r=i(a.formatDataType)||i(t.fieldDataType)&&!n);var o=w.AVAILABLE_FUNCTION_CONFIG[this.chartType];return(o=o&&o[e.name])&&r?(0,L.checkCompatibleFunctionCommon)(a,t,o):r}},{key:"resetRefreshIntervalValue",value:function(){return this.properties.view.dataRefreshInterval=x.default.DEFAULT_SETTING_VALUE.refreshIntervalDefault,this.markDirty(),this.properties.view.dataRefreshInterval}},{key:"resetBackgroundColorDefaultValue",value:function(){this.properties.commonOptions["izEntire.backgroundColor"]=x.default.DEFAULT_SETTING_VALUE.backGroundColorDefault["izEntire.backgroundColor"],this.properties.commonOptions["izPlot.backgroundColor"]=x.default.DEFAULT_SETTING_VALUE.backGroundColorDefault["izPlot.backgroundColor"],this.markDirty()}},{key:"resetBorderDefaultValue",value:function(){return this.properties.commonOptions=x.default.DEFAULT_SETTING_VALUE.borderDefault,this.markDirty(),this.properties.commonOptions}},{key:"getDrilldownInfo",value:function(){return this.drilldownInfo={filters:[],separatorValue:null}}},{key:"chartType",get:function(){return this.properties.chartType}},{key:"serieChartList",get:function(){return(this.values.visibleElement||[]).map(function(e){return e})}},{key:"activeElmsByContainers",get:function(){var e=(0,D.get)("fieldName",this.activeSerie);return{values:L.getElements.call(this,this.values,e)}}},{key:"containerCollection",get:function(){return(0,D.compact)([this.values])}},{key:"isBeingBuild",get:function(){return(0,L.hasElement)(this.values)}},{key:"dataRefreshInterval",get:function(){return(0,D.get)("view.dataRefreshInterval",this.properties)}},{key:"reportPartStyle",get:function(){return this.properties.chartType}},{key:"vizEngine",get:function(){return this.properties.vizEngine}},{key:"defaultVizEngine",get:function(){return z.Highcharts}},{key:"valuesElements",get:function(){return this.values.visibleElement}},{key:"allFieldCollection",get:function(){return(0,D.flatMap)(function(e){return e.elements?e.elements.slice():[]},this.containerCollection)}},{key:"isShowMetric",get:function(){return!(0,D.isEmpty)(this.serieChartList)&&this.serieChartList.length>1}},{key:"autoSize",get:function(){return!0}}]),t}(I.default),l=Y(o.prototype,"isCrossFiltering",[O.observable],{enumerable:!0,initializer:function(){return!1}}),s=Y(o.prototype,"title",[O.observable],{enumerable:!0,initializer:function(){return null}}),u=Y(o.prototype,"description",[O.observable],{enumerable:!0,initializer:function(){return null}}),d=Y(o.prototype,"properties",[O.observable],{enumerable:!0,initializer:function(){return{chartType:x.default.DefaultChartType,vizEngine:z.Highcharts,colorTheme:void 0,isDefaultTheme:!0,optionByType:{metricTile:[]},view:(0,S.default)({},x.default.KPI_REPORT_PART_PROPERTIES,{dataRefreshInterval:{enable:!1,updateInterval:0,isAll:!0,latestRecord:0}}),printing:{izPageBreakAfterSeparator:!1},backgroundImage:{canvasData:null,dataUrl:"",imgSrc:"",resetZoom:!0}}}}),c=Y(o.prototype,"activeSerie",[O.observable],{enumerable:!0,initializer:function(){return null}}),p=Y(o.prototype,"activeTile",[O.observable],{enumerable:!0,initializer:function(){return null}}),f=Y(o.prototype,"gridData",[O.observable],{enumerable:!0,initializer:function(){return[]}}),h=Y(o.prototype,"hasMetricTile",[O.observable],{enumerable:!0,initializer:function(){return!1}}),m=Y(o.prototype,"reportWidth",[O.observable],{enumerable:!0,initializer:function(){return 0}}),g=Y(o.prototype,"reportHeight",[O.observable],{enumerable:!0,initializer:function(){return 0}}),E=Y(o.prototype,"minGridRows",[O.observable],{enumerable:!0,initializer:function(){return 4}}),y=Y(o.prototype,"minGridCols",[O.observable],{enumerable:!0,initializer:function(){return 4}}),v=Y(o.prototype,"needUpdateLayoutStore",[O.observable],{enumerable:!0,initializer:function(){return!1}}),Y(o.prototype,"chartType",[O.computed],(0,_.default)(o.prototype,"chartType"),o.prototype),Y(o.prototype,"serieChartList",[O.computed],(0,_.default)(o.prototype,"serieChartList"),o.prototype),Y(o.prototype,"activeElmsByContainers",[O.computed],(0,_.default)(o.prototype,"activeElmsByContainers"),o.prototype),Y(o.prototype,"containerCollection",[O.computed],(0,_.default)(o.prototype,"containerCollection"),o.prototype),Y(o.prototype,"isBeingBuild",[O.computed],(0,_.default)(o.prototype,"isBeingBuild"),o.prototype),Y(o.prototype,"dataRefreshInterval",[O.computed],(0,_.default)(o.prototype,"dataRefreshInterval"),o.prototype),Y(o.prototype,"reportPartStyle",[O.computed],(0,_.default)(o.prototype,"reportPartStyle"),o.prototype),Y(o.prototype,"vizEngine",[O.computed],(0,_.default)(o.prototype,"vizEngine"),o.prototype),Y(o.prototype,"setVizEngine",[O.action],(0,_.default)(o.prototype,"setVizEngine"),o.prototype),Y(o.prototype,"valuesElements",[O.computed],(0,_.default)(o.prototype,"valuesElements"),o.prototype),Y(o.prototype,"allFieldCollection",[O.computed],(0,_.default)(o.prototype,"allFieldCollection"),o.prototype),Y(o.prototype,"isShowMetric",[O.computed],(0,_.default)(o.prototype,"isShowMetric"),o.prototype),Y(o.prototype,"readData",[O.action],(0,_.default)(o.prototype,"readData"),o.prototype),Y(o.prototype,"buildDataForSave",[O.action],(0,_.default)(o.prototype,"buildDataForSave"),o.prototype),Y(o.prototype,"setDimensions",[O.action],(0,_.default)(o.prototype,"setDimensions"),o.prototype),Y(o.prototype,"setMinRowsCols",[O.action],(0,_.default)(o.prototype,"setMinRowsCols"),o.prototype),Y(o.prototype,"setNeedUpdateLayoutStore",[O.action],(0,_.default)(o.prototype,"setNeedUpdateLayoutStore"),o.prototype),Y(o.prototype,"setReportPartProperties",[O.action],(0,_.default)(o.prototype,"setReportPartProperties"),o.prototype),Y(o.prototype,"setChartType",[O.action],(0,_.default)(o.prototype,"setChartType"),o.prototype),Y(o.prototype,"convertChartType",[O.action],(0,_.default)(o.prototype,"convertChartType"),o.prototype),Y(o.prototype,"setHasMetricTile",[O.action],(0,_.default)(o.prototype,"setHasMetricTile"),o.prototype),Y(o.prototype,"addGridData",[O.action],(0,_.default)(o.prototype,"addGridData"),o.prototype),Y(o.prototype,"updateGridDataPosition",[O.action],(0,_.default)(o.prototype,"updateGridDataPosition"),o.prototype),Y(o.prototype,"setActiveTile",[O.action],(0,_.default)(o.prototype,"setActiveTile"),o.prototype),Y(o.prototype,"deleteActiveTile",[O.action],(0,_.default)(o.prototype,"deleteActiveTile"),o.prototype),Y(o.prototype,"afterInsertFieldToContainer",[O.action],(0,_.default)(o.prototype,"afterInsertFieldToContainer"),o.prototype),Y(o.prototype,"resetRefreshIntervalValue",[O.action],(0,_.default)(o.prototype,"resetRefreshIntervalValue"),o.prototype),Y(o.prototype,"resetBackgroundColorDefaultValue",[n],(0,_.default)(o.prototype,"resetBackgroundColorDefaultValue"),o.prototype),Y(o.prototype,"resetBorderDefaultValue",[O.action],(0,_.default)(o.prototype,"resetBorderDefaultValue"),o.prototype),i=o))||i)||i);t.default=W,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g=A(a(17)),E=A(a(23)),y=A(a(2)),v=A(a(3)),T=a(5),_=a(1),S=a(136),C=A(a(2706)),b=A(a(2707)),N=A(a(2708));function A(e){return e&&e.__esModule?e:{default:e}}function R(e,t,a,r){a&&(0,g.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function O(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var I=(0,A(a(53)).default)((n=function(){function e(t){(0,y.default)(this,e),R(this,"id",i,this),R(this,"left",o,this),R(this,"top",l,this),R(this,"width",s,this),R(this,"height",u,this),R(this,"isFullSize",d,this),R(this,"isLoading",c,this),R(this,"autoSize",p,this),R(this,"tileType",f,this),R(this,"value",h,this),R(this,"properties",m,this),this.checkUniqLinkOption=function(e,t){var a=!0;return(0,_.filter)(function(e){return e!=t},S.metricProperties.CHECK_UNIQ_OPTIONS).forEach(function(t){var r=this[t].selectedIconValue||{};t===S.metricProperties.SUB_REPORT.NAME&&!(0,_.get)("selectedReport",this[t])||this[t].viewSettingByLink||!e.viewSettingByLink||r.value!==e.selectedIconValue.value||(a=!1)}.bind(this)),a},this.initializeTile(t)}return(0,v.default)(e,[{key:"initializeTile",value:function(e){this.id=e.id||this.id,this.tileType=e.tileType||this.tileType,this.left=e.left||this.left,this.top=e.top||this.top,this.width=e.width&&!e.isNew?e.width:4,this.value=e.value||this.value,!e.height||e.isNew?this.height=e.tileType===S.TileTypes.text.id?1:4:this.height=e.height,this.setProperties(e)}},{key:"updateValue",value:function(e){this.value=e,this.markDirty()}},{key:"updatePosition",value:function(e){this.height=e.height||this.height,this.width=e.width||this.width,this.left=e.left||this.left,this.top=e.top||this.top}},{key:"setProperties",value:function(e){switch(e.tileType){case S.TileTypes.text.id:this.properties=new C.default(e.properties);break;case S.TileTypes.metric.id:this.properties=new b.default(e.properties);break;case S.TileTypes.image.id:this.properties=new N.default(e.properties);break;default:this.properties={}}}},{key:"getPropertiesByKey",value:function(e){return this.properties[e]}},{key:"isImageTile",get:function(){return this.tileType===S.TileTypes.image.id}},{key:"isImageOrMetricTile",get:function(){return this.isImageTile||this.tileType===S.TileTypes.metric.id}}]),e}(),i=O(n.prototype,"id",[T.observable],{enumerable:!0,initializer:function(){return""}}),o=O(n.prototype,"left",[T.observable],{enumerable:!0,initializer:function(){return 0}}),l=O(n.prototype,"top",[T.observable],{enumerable:!0,initializer:function(){return 0}}),s=O(n.prototype,"width",[T.observable],{enumerable:!0,initializer:function(){return 0}}),u=O(n.prototype,"height",[T.observable],{enumerable:!0,initializer:function(){return 0}}),d=O(n.prototype,"isFullSize",[T.observable],{enumerable:!0,initializer:function(){return!0}}),c=O(n.prototype,"isLoading",[T.observable],{enumerable:!0,initializer:function(){return!1}}),p=O(n.prototype,"autoSize",[T.observable],{enumerable:!0,initializer:function(){return!1}}),f=O(n.prototype,"tileType",[T.observable],{enumerable:!0,initializer:function(){return""}}),h=O(n.prototype,"value",[T.observable],{enumerable:!0,initializer:function(){return""}}),m=O(n.prototype,"properties",[T.observable],{enumerable:!0,initializer:function(){return null}}),O(n.prototype,"initializeTile",[T.action],(0,E.default)(n.prototype,"initializeTile"),n.prototype),O(n.prototype,"updateValue",[T.action],(0,E.default)(n.prototype,"updateValue"),n.prototype),O(n.prototype,"updatePosition",[T.action],(0,E.default)(n.prototype,"updatePosition"),n.prototype),O(n.prototype,"setProperties",[T.action],(0,E.default)(n.prototype,"setProperties"),n.prototype),O(n.prototype,"isImageTile",[T.computed],(0,E.default)(n.prototype,"isImageTile"),n.prototype),O(n.prototype,"isImageOrMetricTile",[T.computed],(0,E.default)(n.prototype,"isImageOrMetricTile"),n.prototype),r=n))||r;t.default=I,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d=v(a(17)),c=v(a(23)),p=v(a(14)),f=v(a(58)),h=v(a(2)),m=v(a(3)),g=a(5),E=v(a(322)),y=a(136);function v(e){return e&&e.__esModule?e:{default:e}}function T(e,t,a,r){a&&(0,d.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function _(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var S=(r=function(){function e(t){(0,h.default)(this,e),T(this,"fontFormat",n,this),T(this,"fontStyle",i,this),T(this,"color",o,this),T(this,"alignment",l,this),T(this,"customURL",s,this),T(this,"border",u,this),t&&(this.alignment=t.alignment,this.color=t.color,this.fontFormat=t.fontFormat,this.fontStyle=t.fontStyle,this.customURL=t.customURL,this.border=t.border)}return(0,m.default)(e,[{key:"updateProperties",value:function(e){var t=this;(0,f.default)(e).forEach(function(a){return t[a]=e[a]})}},{key:"getStyle",value:function(){var e=this.alignment,t=(this.border,this.color),a=this.fontFormat,r=this.fontStyle,n=this.customURL,i=n&&""==n.url?"text":"pointer";return{backgroundColor:E.default.convertHexToRGBA(t.backgroundColor,t.alpha),color:t.textColor,fontFamily:a.fontFamily,fontSize:a.fontSize,fontWeight:r.fontBold?"bold":"normal",fontStyle:r.fontItalic?"italic":"normal",textAlign:e,textDecoration:r.fontUnderline?"underline":"none",cursor:i}}},{key:"getBorderStyle",value:function(){var e=this.border,t=e.top,a=e.right,r=e.bottom,n=e.left;return{borderTopStyle:t.dashStyle,borderTopWidth:t.thinkness+"px",borderTopColor:t.color,borderRightStyle:a.dashStyle,borderRightWidth:a.thinkness+"px",borderRightColor:a.color,borderBottomStyle:r.dashStyle,borderBottomWidth:r.thinkness+"px",borderBottomColor:r.color,borderLeftStyle:n.dashStyle,borderLeftWidth:n.thinkness+"px",borderLeftColor:n.color}}}]),e}(),n=_(r.prototype,"fontFormat",[g.observable],{enumerable:!0,initializer:function(){return(0,p.default)({},y.textProperties.font)}}),i=_(r.prototype,"fontStyle",[g.observable],{enumerable:!0,initializer:function(){return(0,p.default)({},y.textProperties.fontStyle)}}),o=_(r.prototype,"color",[g.observable],{enumerable:!0,initializer:function(){return(0,p.default)({},y.textProperties.color)}}),l=_(r.prototype,"alignment",[g.observable],{enumerable:!0,initializer:function(){return y.textProperties.alignment}}),s=_(r.prototype,"customURL",[g.observable],{enumerable:!0,initializer:function(){return{option:y.CUSTOM_URL.DEFAULT_VALUE,url:""}}}),u=_(r.prototype,"border",[g.observable],{enumerable:!0,initializer:function(){return(0,p.default)({},y.textProperties.border)}}),_(r.prototype,"updateProperties",[g.action],(0,c.default)(r.prototype,"updateProperties"),r.prototype),r);t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u=y(a(17)),d=y(a(23)),c=y(a(14)),p=y(a(58)),f=y(a(2)),h=y(a(3)),m=a(5),g=y(a(322)),E=a(136);function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t,a,r){a&&(0,u.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function T(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var _=(r=function(){function e(t){(0,f.default)(this,e),v(this,"border",n,this),v(this,"fontFormat",i,this),v(this,"fontStyle",o,this),v(this,"color",l,this),v(this,"customURL",s,this),t&&(this.color=t.color,this.fontFormat=t.fontFormat,this.fontStyle=t.fontStyle,this.customURL=t.customURL,this.border=t.border)}return(0,h.default)(e,[{key:"updateProperties",value:function(e){var t=this;(0,p.default)(e).forEach(function(a){return t[a]=e[a]})}},{key:"getStyle",value:function(){var e=this.color,t=this.fontFormat,a=this.fontStyle;return(0,c.default)({backgroundColor:g.default.convertHexToRGBA(e.backgroundColor,e.alpha),color:e.textColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontWeight:a.fontBold?"bold":"normal",fontStyle:a.fontItalic?"italic":"normal",textDecoration:a.fontUnderline?"underline":"none"},this.getBorderStyle())}},{key:"getBorderStyle",value:function(){var e=this.border,t=e.top,a=e.left,r=e.bottom,n=e.right;return{borderTopStyle:t.dashStyle,borderTopWidth:t.thinkness+"px",borderTopColor:t.color,borderRightStyle:n.dashStyle,borderRightWidth:n.thinkness+"px",borderRightColor:n.color,borderBottomStyle:r.dashStyle,borderBottomWidth:r.thinkness+"px",borderBottomColor:r.color,borderLeftStyle:a.dashStyle,borderLeftWidth:a.thinkness+"px",borderLeftColor:a.color}}}]),e}(),n=T(r.prototype,"border",[m.observable],{enumerable:!0,initializer:function(){return(0,c.default)({},E.metricProperties.border)}}),i=T(r.prototype,"fontFormat",[m.observable],{enumerable:!0,initializer:function(){return(0,c.default)({},E.metricProperties.font)}}),o=T(r.prototype,"fontStyle",[m.observable],{enumerable:!0,initializer:function(){return(0,c.default)({},E.metricProperties.fontStyle)}}),l=T(r.prototype,"color",[m.observable],{enumerable:!0,initializer:function(){return(0,c.default)({},E.metricProperties.color)}}),s=T(r.prototype,"customURL",[m.observable],{enumerable:!0,initializer:function(){return{option:E.CUSTOM_URL.DEFAULT_VALUE,url:""}}}),T(r.prototype,"updateProperties",[m.action],(0,d.default)(r.prototype,"updateProperties"),r.prototype),r);t.default=_,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=f(a(17)),l=f(a(23)),s=f(a(58)),u=f(a(2)),d=f(a(3)),c=a(5),p=a(136);function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function m(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var g=(r=function(){function e(t){(0,u.default)(this,e),h(this,"image",n,this),h(this,"customURL",i,this),t&&(this.image=t.image,this.customURL=t.customURL)}return(0,d.default)(e,[{key:"updateProperties",value:function(e){var t=this;(0,s.default)(e).forEach(function(a){return t[a]=e[a]})}},{key:"getStyle",value:function(){var e=this.customURL;return{cursor:e&&""==e.url?"":"pointer"}}}]),e}(),n=m(r.prototype,"image",[c.observable],{enumerable:!0,initializer:function(){return p.imageProperties.image}}),i=m(r.prototype,"customURL",[c.observable],{enumerable:!0,initializer:function(){return{option:p.CUSTOM_URL.DEFAULT_VALUE,url:""}}}),m(r.prototype,"updateProperties",[c.action],(0,l.default)(r.prototype,"updateProperties"),r.prototype),r);t.default=g,e.exports=t.default},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(2710)),o=d(a(2711)),l=a(18),s=a(36),u=d(a(104));function d(e){return e&&e.__esModule?e:{default:e}}s.MappingValues.ZOOM_TYPE_VALUES;r.default.extendConfiguration(l.REPORT_PART_TYPE.KPI,s.CHART_TYPE.SimpleKPI,null,{visualType:u.default.KPI,get visualLabel(){return n.default.getText("REPORT_PART_GAUGE_CONSTANTS_LABEL_SIMPLE_GAUGE")},visualPreviewCSS:"gauge-simple",optionsBuilder:i.default,fieldContainerSchema:o.default})},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=f(a(70)),i=f(a(6)),o=f(a(2)),l=f(a(3)),s=f(a(7)),u=f(a(8)),d=f(a(538)),c=f(a(83)),p=a(1);function f(e){return e&&e.__esModule?e:{default:e}}var h=(0,a(59).exportClass)("SimpleKPIOptionsBuilder")(r=function(e){function t(){var e;(0,o.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n0&&(a.properties.optionByType.izValueLabel=!0)})}.call(a),a.cleanDirty(),a}return(0,E.default)(t,e),(0,m.default)(t,[{key:"setVizEngine",value:function(e){this.properties.vizEngine=e}},{key:"validateFunction",value:function(e,t){return t?{status:!0}:{status:!1,useDefaultFunction:!1}}},{key:"getDefaultFunctionFormat",value:function(e,t){var a=N.DefaultFunction[e.name||""]||{};return b.default.getDefaultFunction(a,t)}},{key:"readData",value:function(e,t,a,r){var n=(e=e||{}).properties||{};this.vizState=e.vizState||this.vizState,this.type=e.type,this.isCrossFiltering=e.isCrossFiltering,this.buildPointOptionsData((0,v.get)("elements",e[N.ContainerName.POINT_OPTIONS]),!1,a,r),this[N.ContainerName.SHADING_VALUES]=U(e[N.ContainerName.SHADING_VALUES],N.ContainerName.SHADING_VALUES),this[N.ContainerName.BUBBLE_VALUES]=U(e[N.ContainerName.BUBBLE_VALUES],N.ContainerName.BUBBLE_VALUES);var i=(0,v.get)("customContainers",e);if(i&&i.length>0){var o=this.customContainers.map(function(e){var t=e.name,a=(0,v.find)(["name",t],i);return a?b.default.populateReportChartContainer(a,t):e});this.customContainers.replace(o)}this.settings=e.settings,this.setChartType(n.chartType),this.setReportPartProperties(e.properties),this.setActiveSerie(null,(0,v.find)({fieldName:e.selectedMetric},this.serieChartList))}},{key:"setDataByKey",value:function(e,t){this[e]=t,this.markDirty()}},{key:"getDataByKey",value:function(e){return this[e]}},{key:"cleanDirty",value:function(){this.resetDirty()}},{key:"getMapOptions",value:function(){var e=(0,y.toJS)(this.properties),t=this.backgroundMap,a=(0,v.merge)(e,(0,y.toJS)((0,p.default)({},this.vizState,{commonOptions:{izendaOptions:{backgroundMapName:t.backgroundMap,mapLevel:t.mapLevel,activePointOption:this.activePointOption,dataLabelKey:(0,v.getOr)("",t.mapLevel,N.DataLabels)}}})));return this.removeBackgroundColorForGoogleMaps(a),a}},{key:"removeBackgroundColorForGoogleMaps",value:function(e){this.chartType===N.MAP_TYPES.Google&&(e.commonOptions["izEntire.backgroundColor"]=N.DEFAULT_SETTING_VALUE.backGroundColorDefault["izEntire.backgroundColor"],e.commonOptions["izPlot.backgroundColor"]=N.DEFAULT_SETTING_VALUE.backGroundColorDefault["izPlot.backgroundColor"])}},{key:"getReportPartProperties",value:function(e){var t=(0,y.toJS)(this.properties)||{};if(!e)return t;var a=(0,v.get)(e,t.reportPartState);return a=(0,v.isUndefined)(a)?(0,v.getOr)((0,v.get)(e,t.optionByType||{}),e,t.commonOptions||{}):a,a=(0,v.isUndefined)(a)?(0,v.get)(e,t.view):a,a=(0,v.isUndefined)(a)?(0,v.get)(e,t):a}},{key:"setReportPartProperties",value:function(e){var t=this.chartType,a=e.reportPartState||{},r=this.properties.reportPartState;a.drilldownInfo&&(r.drilldownInfo=a.drilldownInfo),a.pointOptionsList&&(r.pointOptionsList=a.pointOptionsList),a.activeSerie||(a.activeSerie={}),(0,v.isUndefined)(e.colorTheme)&&!e.isDefaultTheme||(this.properties.isDefaultTheme=e.isDefaultTheme,this.properties.colorTheme=e.colorTheme),(0,y.extendObservable)(this.properties,e),this.convertChartType(t,this.chartType),this.markDirty()}},{key:"checkDirty",value:function(){var e=C.default.dirtyReportPartElementField(this.containerCollection),t=this.properties;return this.isDirty||!(0,v.isEmpty)(e)||t&&t.checkDirty&&t.checkDirty()}},{key:"setChartType",value:function(e){var t=this.properties.chartType;this.properties.chartType=e,this.setVizEngineByCurrentChartType(),this.convertChartType(t,e),this.markDirty()}},{key:"convertChartType",value:function(e,t){if(!e)return!1;if(e===t)return!1;var a=this.properties;switch(t){case N.MAP_TYPES.World:case N.MAP_TYPES.Google:a.continentInfo={},a.countryInfo={},a.stateInfo={};break;case N.MAP_TYPES.Continent:a.continentInfo=A.default.getMapInfo(N.DefaultContinent),a.continent=N.DefaultContinent,a.country="",a.countryInfo={},a.state="",a.stateInfo={};break;case N.MAP_TYPES.Country:a.continent="",a.continentInfo={},a.country=N.DefaultCountry,a.countryInfo=A.default.getMapInfo(N.DefaultCountry),a.state="",a.stateInfo={}}this.resetDrilldownInfo(),this.markDirty()}},{key:"buildDataForSave",value:function(){var e=N.PointsOptionsOrder,t=(0,y.toJS)((0,v.omit)(e,this));return t[N.ContainerName.POINT_OPTIONS]=(0,y.toJS)(this.buildPointOptionsData(e,!0)),t.selectedMetric=(0,v.get)("activeSerie.fieldName",this),t}},{key:"buildPointOptionsData",value:function(e,t,a,r){if(e){if(this.chartType===N.MAP_TYPES.Google&&!this.isEnableGoogleAddress&&(!a||r)){var n=-1;do{-1!==(n=(0,v.findIndex)(function(e){return(0,v.get)("properties.pointOptionType",e)===N.ContainerName.ADDRESS},e))&&(e.splice(n,1),this.markDirty())}while(-1!==n)}return t?function(){var t=this,a={},r=1;return b.default.addContainers(a,N.ContainerName.POINT_OPTIONS),a=a[N.ContainerName.POINT_OPTIONS],e.map(function(e){(0,v.map)(function(t){a.elements.push((0,v.flow)((0,v.set)("position",r),(0,v.set)("properties.pointOptionType",e))(t)),r++},t[e].elements)}),a}.apply(this):function(){var t=this,a=void 0;e.forEach(function(e){(a=(0,v.get)("properties.pointOptionType",e))&&(t[a]=U({elements:[e]},a))})}.apply(this)}}},{key:"setActiveSerie",value:function(e,t){(0,v.get)("properties.reportPartState",this).activeSerie=t,this.markDirty()}},{key:"setActivePointOption",value:function(e,t){(0,v.get)("properties.reportPartState",this).activePointOption=t,this.markDirty()}},{key:"enableValueLabel",value:function(){this.properties.optionByType.izValueLabel=!0}},{key:"updateDrilldownInfo",value:function(e){if(this.markDirty(),!e)return this.resetDrilldownInfo();var t,a,r=this.drilldownInfo,n=e.field,i=e.point,o=e.mapInfo,l=void 0;return o?(t=o.mapLevel,l=(a=(0,v.findIndex)(function(e){return(0,v.get)("mapInfo.mapLevel",e)===t},r))>-1?r.splice(a+1,r.length-a-1):null):l=function(e,t,a){var n=N.DrilldownOrders.indexOf(e),i=N.DrilldownOrders[n+1],o=i&&A.default.searchMapInfoByMapLevel(i,(0,v.get)("pointInfo",a));return o?r.push({field:t,point:a,mapInfo:{mapLevel:i,backgroundMap:o}}):null}(this.currentDrilldownLevel,n,i),l?this.updatePointOptionsList(!!o):null}},{key:"resetDrilldownInfo",value:function(){(0,v.get)("properties.reportPartState",this).drilldownInfo.clear(),this.updatePointOptionsList(!0),this.markDirty()}},{key:"afterInsertFieldToContainer",value:function(){return this.resetDrilldownInfo(),this.markDirty(),null}},{key:"getDrilldownInfo",value:function(){for(var e=this.drilldownInfo,t=[],a=0,r=(0,v.get)("pointType",this.activePointOption),n=N.PointsOptionsOrder.indexOf(r),i=void 0,o=void 0,l=0;l-1,n=N.FunctionConfig[r?"VALUES":"POINT_OPTIONS"];return b.default.checkCompatibleFunctionCommon(a,t,n)}},{key:"checkBreakPage",value:function(){return!1}},{key:"changePositionField",value:function(){this.resetDrilldownInfo()}},{key:"checkCanUnsort",value:function(){return!1}},{key:"getContainerName",value:function(e){return e.name===N.ContainerName.SHADING_VALUES||e.name===N.ContainerName.BUBBLE_VALUES?e.name:N.ContainerName.POINT_OPTIONS}},{key:"resetBorderDefaultValue",value:function(){this.properties.commonOptions["izEntire.borderColor"]=N.DEFAULT_SETTING_VALUE.borderDefault["izEntire.borderColor"],this.properties.commonOptions["izEntire.borderWidth"]=N.DEFAULT_SETTING_VALUE.borderDefault["izEntire.borderWidth"],this.properties.commonOptions["izEntire.borderStyle"]=N.DEFAULT_SETTING_VALUE.borderDefault["izEntire.borderStyle"],this.markDirty()}},{key:"resetBackgroundColorDefaultValue",value:function(){this.properties.commonOptions["izEntire.backgroundColor"]=N.DEFAULT_SETTING_VALUE.backGroundColorDefault["izEntire.backgroundColor"],this.properties.commonOptions["izPlot.backgroundColor"]=N.DEFAULT_SETTING_VALUE.backGroundColorDefault["izPlot.backgroundColor"],this.markDirty()}},{key:"resetRefreshIntervalValue",value:function(){return this.properties.view.dataRefreshInterval=N.DEFAULT_SETTING_VALUE.refreshIntervalDefault,this.markDirty(),this.properties.view.dataRefreshInterval}},{key:"resetLegendDefaultValue",value:function(){return this.properties.commonOptions["izLegend.visibility"]=!1,this.markDirty(),this.properties.commonOptions}},{key:"resetZoomDefaultValue",value:function(){return this.properties.optionByType["izMapNavigation.enabled"]=!1,this.markDirty(),this.properties.optionByType}},{key:"changeZoomLevel",value:function(e){this.vizState.zoomLevel=e,this.markDirty()}},{key:"changeCenterPoint",value:function(e){this.vizState.centerPoint={lat:e.lat(),lng:e.lng()},this.markDirty()}},{key:"isDrillingDown",value:function(){return this.hasDrillDown}},{key:"getMetricContainer",value:function(){var e=(0,v.get)("fieldName",this.activeSerie),t=(0,v.get)("pointType",this.activePointOption);return(0,v.isEmpty)(e)?null:N.PointsOptionsForBubbleAll.indexOf(t)>-1&&!(0,v.isEmpty)(w(this[N.ContainerName.BUBBLE_VALUES],e))?N.ContainerName.BUBBLE_VALUES:N.PointsOptionsForShading.indexOf(t)>-1&&!(0,v.isEmpty)(w(this[N.ContainerName.SHADING_VALUES],e))?N.ContainerName.SHADING_VALUES:void 0}},{key:"chartType",get:function(){return this.properties.chartType}},{key:"drilldownInfo",get:function(){return(0,v.get)("properties.reportPartState.drilldownInfo",this)}},{key:"activeSerie",get:function(){return(0,v.get)("properties.reportPartState.activeSerie",this)}},{key:"activePointOption",get:function(){return(0,v.get)("properties.reportPartState.activePointOption",this)}},{key:"pointOptionsList",get:function(){return(0,v.get)("properties.reportPartState.pointOptionsList",this)}},{key:"containerCollection",get:function(){var e=this,t=[];return(0,v.values)(N.ContainerName).forEach(function(a){e[a]&&t.push(e[a])}),t}},{key:"isBeingBuild",get:function(){var e=this.activePointOption,t=(0,v.get)("pointType",e),a=void 0,r=void 0;return N.PointsOptionsForBubbleAll.indexOf(t)>-1&&x.call(this,N.ContainerName.BUBBLE_VALUES)&&(r=!0),N.PointsOptionsForShading.indexOf(t)>-1&&x.call(this,N.ContainerName.SHADING_VALUES)&&(a=!0),a||r}},{key:"dataRefreshInterval",get:function(){return(0,v.get)("view.dataRefreshInterval",this.properties)}},{key:"optionalParams",get:function(){return this.getDrilldownInfo()}},{key:"serieChartList",get:function(){var e=this,t=[],a=[],r=(0,v.get)("pointType",this.activePointOption);return N.PointsOptionsForBubbleAll.indexOf(r)>-1&&a.push(N.ContainerName.BUBBLE_VALUES),N.PointsOptionsForShading.indexOf(r)>-1&&a.push(N.ContainerName.SHADING_VALUES),a.forEach(function(a){return e[a].visibleElement.forEach(function(e){t.push(e)})}),t}},{key:"activeElmsByContainers",get:function(){var e={},t=(0,v.get)("fieldName",this.activeSerie),a=(0,v.get)("pointType",this.activePointOption);if([N.ContainerName.LATITUDE,N.ContainerName.LONGTITUDE].indexOf(a)>-1)e[N.ContainerName.LATITUDE]=w(this[N.ContainerName.LATITUDE]),e[N.ContainerName.LONGTITUDE]=w(this[N.ContainerName.LONGTITUDE]);else{switch(a){case N.ContainerName.STATE:e[N.ContainerName.COUNTRY]=w(this[N.ContainerName.COUNTRY]);break;case N.ContainerName.COUNTY:e[N.ContainerName.COUNTRY]=w(this[N.ContainerName.COUNTRY]),e[N.ContainerName.STATE]=w(this[N.ContainerName.STATE]);break;case N.ContainerName.CITY:e[N.ContainerName.COUNTRY]=w(this[N.ContainerName.COUNTRY]),e[N.ContainerName.STATE]=w(this[N.ContainerName.STATE]),e[N.ContainerName.COUNTY]=w(this[N.ContainerName.COUNTY]);break;case N.ContainerName.POSTAL_CODE:e[N.ContainerName.COUNTRY]=w(this[N.ContainerName.COUNTRY]),e[N.ContainerName.STATE]=w(this[N.ContainerName.STATE]),e[N.ContainerName.COUNTY]=w(this[N.ContainerName.COUNTY]),e[N.ContainerName.CITY]=w(this[N.ContainerName.CITY]);break;case N.ContainerName.ADDRESS:e[N.ContainerName.COUNTRY]=w(this[N.ContainerName.COUNTRY]),e[N.ContainerName.STATE]=w(this[N.ContainerName.STATE]),e[N.ContainerName.COUNTY]=w(this[N.ContainerName.COUNTY]),e[N.ContainerName.CITY]=w(this[N.ContainerName.CITY]),e[N.ContainerName.POSTAL_CODE]=w(this[N.ContainerName.POSTAL_CODE])}a&&(e[a]=w(this[a]))}return N.PointsOptionsForBubbleAll.indexOf(a)>-1&&(e[N.ContainerName.BUBBLE_VALUES]=w(this[N.ContainerName.BUBBLE_VALUES],t)),N.PointsOptionsForShading.indexOf(a)>-1&&(e[N.ContainerName.SHADING_VALUES]=w(this[N.ContainerName.SHADING_VALUES],t)),e}},{key:"hasDrillDown",get:function(){return!!this.drilldownInfo.length}},{key:"currentDrilldownLevel",get:function(){var e=(0,v.last)(this.drilldownInfo);return e?(0,v.get)("mapInfo.mapLevel",e):this.mapLevelBySelectedChartType}},{key:"mapLevelBySelectedChartType",get:function(){var e=this.properties;return(0,v.get)("geoFile",e.stateInfo)?N.DrilldownLevels.STATE:(0,v.get)("geoFile",e.countryInfo)?N.DrilldownLevels.COUNTRY:(0,v.get)("geoFile",e.continentInfo)?N.DrilldownLevels.CONTINENT:N.DrilldownLevels.WORLD}},{key:"backgroundMap",get:function(){var e=this.properties,t=void 0,a=void 0;if(this.drilldownInfo.length){var r=(0,v.last)(this.drilldownInfo);t=(0,v.get)("mapInfo.backgroundMap",r),a=(0,v.get)("mapInfo.mapLevel",r)}else(0,v.has)("geoFile",e.stateInfo)?(t=e.stateInfo,a=N.DrilldownLevels.STATE):(0,v.has)("geoFile",e.countryInfo)?(t=e.countryInfo,a=N.DrilldownLevels.COUNTRY):(0,v.has)("geoFile",e.continentInfo)&&(t=e.continentInfo,a=N.DrilldownLevels.CONTINENT);return{backgroundMap:(0,v.get)("geoFile",t)||N.DefaultGEOBackground,mapLevel:a||N.DrilldownLevels.WORLD}}},{key:"reportPartStyle",get:function(){return this.properties.chartType}},{key:"vizEngine",get:function(){return this.properties.vizEngine}},{key:"defaultVizEngine",get:function(){return L.default}},{key:"isShowMetric",get:function(){return!(0,v.isEmpty)(this.serieChartList)&&this.serieChartList.length>1}},{key:"autoSize",get:function(){return!1}}]),t}(S.default),i=k(n.prototype,"isCrossFiltering",[y.observable],{enumerable:!0,initializer:function(){return!1}}),o=k(n.prototype,"type",[y.observable],{enumerable:!0,initializer:function(){return null}}),l=k(n.prototype,"title",[y.observable],{enumerable:!0,initializer:function(){return null}}),s=k(n.prototype,"description",[y.observable],{enumerable:!0,initializer:function(){return null}}),u=k(n.prototype,"properties",[y.observable],{enumerable:!0,initializer:function(){return{reportPartState:{drilldownInfo:[],activeSerie:{},activePointOption:{},pointOptionsList:[]},chartType:(0,v.isEmpty)(O.default.googleApiKey)?N.MAP_TYPES.World:N.MAP_TYPES.Google,vizEngine:(0,v.isEmpty)(O.default.googleApiKey)?P.Highmaps:L.default,colorTheme:void 0,isDefaultTheme:!0,continentInfo:{},countryInfo:{},stateInfo:{},commonOptions:{},optionByType:{},view:{showLabels:!1,dataRefreshInterval:{enable:!1,updateInterval:0,isAll:!0,latestRecord:0}}}}}),k(n.prototype,"chartType",[y.computed],(0,c.default)(n.prototype,"chartType"),n.prototype),k(n.prototype,"drilldownInfo",[y.computed],(0,c.default)(n.prototype,"drilldownInfo"),n.prototype),k(n.prototype,"activeSerie",[y.computed],(0,c.default)(n.prototype,"activeSerie"),n.prototype),k(n.prototype,"activePointOption",[y.computed],(0,c.default)(n.prototype,"activePointOption"),n.prototype),k(n.prototype,"pointOptionsList",[y.computed],(0,c.default)(n.prototype,"pointOptionsList"),n.prototype),k(n.prototype,"containerCollection",[y.computed],(0,c.default)(n.prototype,"containerCollection"),n.prototype),k(n.prototype,"isBeingBuild",[y.computed],(0,c.default)(n.prototype,"isBeingBuild"),n.prototype),k(n.prototype,"dataRefreshInterval",[y.computed],(0,c.default)(n.prototype,"dataRefreshInterval"),n.prototype),k(n.prototype,"optionalParams",[y.computed],(0,c.default)(n.prototype,"optionalParams"),n.prototype),k(n.prototype,"serieChartList",[y.computed],(0,c.default)(n.prototype,"serieChartList"),n.prototype),k(n.prototype,"activeElmsByContainers",[y.computed],(0,c.default)(n.prototype,"activeElmsByContainers"),n.prototype),k(n.prototype,"hasDrillDown",[y.computed],(0,c.default)(n.prototype,"hasDrillDown"),n.prototype),k(n.prototype,"currentDrilldownLevel",[y.computed],(0,c.default)(n.prototype,"currentDrilldownLevel"),n.prototype),k(n.prototype,"mapLevelBySelectedChartType",[y.computed],(0,c.default)(n.prototype,"mapLevelBySelectedChartType"),n.prototype),k(n.prototype,"backgroundMap",[y.computed],(0,c.default)(n.prototype,"backgroundMap"),n.prototype),k(n.prototype,"reportPartStyle",[y.computed],(0,c.default)(n.prototype,"reportPartStyle"),n.prototype),k(n.prototype,"vizEngine",[y.computed],(0,c.default)(n.prototype,"vizEngine"),n.prototype),k(n.prototype,"setVizEngine",[y.action],(0,c.default)(n.prototype,"setVizEngine"),n.prototype),k(n.prototype,"isShowMetric",[y.computed],(0,c.default)(n.prototype,"isShowMetric"),n.prototype),k(n.prototype,"readData",[y.action],(0,c.default)(n.prototype,"readData"),n.prototype),k(n.prototype,"setDataByKey",[y.action],(0,c.default)(n.prototype,"setDataByKey"),n.prototype),k(n.prototype,"setReportPartProperties",[y.action],(0,c.default)(n.prototype,"setReportPartProperties"),n.prototype),k(n.prototype,"setChartType",[y.action],(0,c.default)(n.prototype,"setChartType"),n.prototype),k(n.prototype,"convertChartType",[y.action],(0,c.default)(n.prototype,"convertChartType"),n.prototype),k(n.prototype,"buildDataForSave",[y.action],(0,c.default)(n.prototype,"buildDataForSave"),n.prototype),k(n.prototype,"buildPointOptionsData",[y.action],(0,c.default)(n.prototype,"buildPointOptionsData"),n.prototype),k(n.prototype,"setActiveSerie",[y.action],(0,c.default)(n.prototype,"setActiveSerie"),n.prototype),k(n.prototype,"setActivePointOption",[y.action],(0,c.default)(n.prototype,"setActivePointOption"),n.prototype),k(n.prototype,"updateDrilldownInfo",[y.action],(0,c.default)(n.prototype,"updateDrilldownInfo"),n.prototype),k(n.prototype,"resetDrilldownInfo",[y.action],(0,c.default)(n.prototype,"resetDrilldownInfo"),n.prototype),k(n.prototype,"afterInsertFieldToContainer",[y.action],(0,c.default)(n.prototype,"afterInsertFieldToContainer"),n.prototype),k(n.prototype,"getDrilldownInfo",[y.action],(0,c.default)(n.prototype,"getDrilldownInfo"),n.prototype),k(n.prototype,"updateActivePointOptions",[y.action],(0,c.default)(n.prototype,"updateActivePointOptions"),n.prototype),k(n.prototype,"updatePointOptionsList",[y.action],(0,c.default)(n.prototype,"updatePointOptionsList"),n.prototype),k(n.prototype,"changePositionField",[y.action],(0,c.default)(n.prototype,"changePositionField"),n.prototype),k(n.prototype,"resetBorderDefaultValue",[y.action],(0,c.default)(n.prototype,"resetBorderDefaultValue"),n.prototype),k(n.prototype,"resetBackgroundColorDefaultValue",[y.action],(0,c.default)(n.prototype,"resetBackgroundColorDefaultValue"),n.prototype),k(n.prototype,"resetRefreshIntervalValue",[y.action],(0,c.default)(n.prototype,"resetRefreshIntervalValue"),n.prototype),k(n.prototype,"resetLegendDefaultValue",[y.action],(0,c.default)(n.prototype,"resetLegendDefaultValue"),n.prototype),k(n.prototype,"resetZoomDefaultValue",[y.action],(0,c.default)(n.prototype,"resetZoomDefaultValue"),n.prototype),k(n.prototype,"changeZoomLevel",[y.action],(0,c.default)(n.prototype,"changeZoomLevel"),n.prototype),k(n.prototype,"changeCenterPoint",[y.action],(0,c.default)(n.prototype,"changeCenterPoint"),n.prototype),r=n))||r)||r;t.default=z,e.exports=t.default},function(e,t,a){"use strict";var r=c(a(77)),n=c(a(12)),i=c(a(1214)),o=c(a(542)),l=c(a(543)),s=a(18),u=a(85),d=c(a(716));function c(e){return e&&e.__esModule?e:{default:e}}r.default.extendConfiguration(s.REPORT_PART_TYPE.Map,u.MAP_TYPES.Google,null,{visualType:"googlemaps",visualEngine:d.default,get visualLabel(){return n.default.getText("REPORT_PART_MAP_CONSTANTS_GOOGLE")},optionsBuilder:i.default,fieldContainerSchema:o.default,optionsMapping:l.default})},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(766)),o=d(a(543)),l=d(a(542)),s=a(18),u=a(85);function d(e){return e&&e.__esModule?e:{default:e}}r.default.extendConfiguration(s.REPORT_PART_TYPE.Map,u.MAP_TYPES.World,null,{get visualLabel(){return n.default.getText("REPORT_PART_MAP_CONSTANTS_WORLD")},optionsBuilder:i.default,fieldContainerSchema:l.default,optionsMapping:o.default})},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(766)),o=d(a(543)),l=d(a(542)),s=a(18),u=a(85);function d(e){return e&&e.__esModule?e:{default:e}}r.default.extendConfiguration(s.REPORT_PART_TYPE.Map,u.MAP_TYPES.Continent,null,{get visualLabel(){return n.default.getText("REPORT_PART_MAP_CONSTANTS_CONTINENT")},optionsBuilder:i.default,fieldContainerSchema:l.default,optionsMapping:o.default})},function(e,t,a){"use strict";var r=d(a(77)),n=d(a(12)),i=d(a(766)),o=d(a(543)),l=d(a(542)),s=a(18),u=a(85);function d(e){return e&&e.__esModule?e:{default:e}}r.default.extendConfiguration(s.REPORT_PART_TYPE.Map,u.MAP_TYPES.Country,null,{get visualLabel(){return n.default.getText("REPORT_PART_MAP_CONSTANTS_COUNTRY")},optionsBuilder:i.default,fieldContainerSchema:l.default,optionsMapping:o.default})},function(e,t,a){"use strict";a(2725)},function(e,t,a){"use strict";var r=u(a(77)),n=u(a(12)),i=u(a(2726)),o=a(18),l=(a(113),a(1215)),s=a(36);function u(e){return e&&e.__esModule?e:{default:e}}r.default.extendConfiguration(o.REPORT_PART_TYPE.Chart,s.CHART_TYPE.TreeMap,s.CHART_TYPE.TreeMap,{visualType:l.chartStyle,get visualLabel(){return n.default.getText("REPORT_CHART_TYPE_TREE_MAP")},visualEngine:"D3",optionsBuilder:i.default})},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=v(a(71)),i=v(a(14)),o=v(a(6)),l=v(a(2)),s=v(a(3)),u=v(a(7)),d=v(a(133)),c=v(a(8)),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(520)),f=a(59),h=a(1),m=v(a(1316)),g=a(34),E=a(83),y=a(295);function v(e){return e&&e.__esModule?e:{default:e}}var T=(0,f.exportClass)("D3TreeMapChartOptionsBuilder")(r=function(e){function t(){var e;(0,l.default)(this,t);for(var a=arguments.length,r=Array(a),n=0;n1?t-1:0),i=1;i0)||0===e.children.filter(function(e){return t.isActive(y.default[e.route.configFn](e.route.param))}).length)}},{key:"isActiveSubLink",value:function(e,t){return!!this.props.router.isActive(y.default[e.route.configFn](e.route.param))}},{key:"render",value:function(){var e=this;return p.default.createElement("div",{className:"izenda-TopMenu"},p.default.createElement("div",{className:"izenda-TopMenu-logo",ref:function(t){e.logoElm=t},style:{width:this.topMenuStore.logoImageWidth+"px"}}),p.default.createElement("nav",{className:"izenda-TopMenu-nav","aria-expanded":"false"},p.default.createElement("ul",{className:"izenda-TopMenu-nav__mainMenu"},this.topMenuStore.topMenu.map(function(t){return e.renderListMenu(t)}))),p.default.createElement("div",{className:"navbar-header"},p.default.createElement("button",{type:"button",className:"navbar-toggle",onClick:this.showExpandedMenu},p.default.createElement("span",{className:"icon-menu u-colorWhite"}))))}}]),t}(c.Component),i=function(){var e=this;this.intializeLogoImage=function(){if(e.logoElm){var t=window.getComputedStyle(e.logoElm).getPropertyValue("background-image").replace(/url\(['"]*(.*?)['"]*\)/g,"$1");e.logoImage.addEventListener("load",e.getLogoImageWidth),e.logoImage.src=t}},this.getLogoImageWidth=function(){e.topMenuStore.setImageLogoWidth(e.logoImage.width)},this.showExpandedMenu=function(){E.default.toggleTopMenu()},this.hideMenu=function(t,a){var r=e.props;0===t.button&&t.preventDefault(),E.default.toggleTopMenu(!1),r.confirmDirtyForm(m.default.isDirty,{onConfirmDirtyForm:m.default.onOkDirtyForm}).then(function(){r.router.push(y.default[a.configFn](a.param))})},this.renderMenuItemChildren=function(t,a){return t.map(function(t,a){return!(m.default.isMobile&&t.isHiddenOnMobile)&&p.default.createElement("a",{className:"TopMenu__subMenuLink "+(e.isActiveSubLink(t,a)?"active":""),href:e.getRouteUrl(t.route),onClick:function(a){return e.hideMenu(a,t.route)},title:t.title,key:t.key},p.default.createElement("i",{className:"icomoon-plus"}))})},this.renderListMenu=function(t){var a=t.key,r=t.route,n=t.title,i=t.icon,o=e.isActive(t);return!(m.default.isMobile&&t.isHiddenOnMobile)&&p.default.createElement("li",{key:t.key,className:"izenda-TopMenu-nav__mainMenuItem "+("explore"===a?"explore":"")},p.default.createElement("a",{className:o?"izenda-TopMenu-nav__mainMenuItem--link active":"izenda-TopMenu-nav__mainMenuItem--link",href:e.getRouteUrl(r),key:r,onClick:function(t){return e.hideMenu(t,r)}},p.default.createElement("i",{className:i+" izenda-TopMenu-nav__mainMenuItem--icon"}),p.default.createElement("span",{className:"izenda-TopMenu-title"},n)),t.children.length>0&&e.renderMenuItemChildren(t.children,t.key))}},r=n))||r;t.default=_,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s=T(a(17)),u=T(a(23)),d=T(a(14)),c=T(a(2)),p=T(a(3)),f=a(5),h=a(49),m=a(40),g=T(a(16)),E=T(a(12)),y=T(a(106)),v=T(a(79));function T(e){return e&&e.__esModule?e:{default:e}}function _(e,t,a,r){a&&(0,s.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function S(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var C=[{isVisible:!1,icon:"icomoon-search",key:"explore",license:h.LICENSE_KEY.Nlq,needDatabase:!1,needLicense:!0,get title(){return E.default.getText("TOP_MENU_EXPLORE")},route:{configFn:"getExploreUrl",param:""},privilegeKeys:[[m.PERMISSION_KEY.ReportsShowExploreMenuValue]],children:[]},{icon:"icomoon-folder",isVisible:!1,key:"report",needDatabase:!0,needLicense:!0,get title(){return E.default.getText("TOP_MENU_REPORTS")},route:{configFn:"getReportUrl",param:""},children:[{icon:"icon-addnew",isHiddenOnMobile:!0,isVisible:!1,key:"new_report",license:h.LICENSE_KEY.ReportDesigner,needDatabase:!0,needLicense:!0,privilegeKeys:[[m.PERMISSION_KEY.ReportsCanCreateNewReportValue],[m.PERMISSION_KEY.ReportsDaaSourcesSimpleDataSources,m.PERMISSION_KEY.ReportsDataSourcesAdvancedDataSources,m.PERMISSION_KEY.ReportsReportPartTypesChart,m.PERMISSION_KEY.ReportsReportPartTypesForm,m.PERMISSION_KEY.ReportsReportPartTypesGauge,m.PERMISSION_KEY.ReportsReportPartTypesMap,m.PERMISSION_KEY.ReportsFilterPropertiesFilterLogic,m.PERMISSION_KEY.ReportsFieldPropertiesCustomURL,m.PERMISSION_KEY.ReportsFieldPropertiesEmbeddedJavaScript,m.PERMISSION_KEY.ReportsFieldPropertiesSubreport,m.PERMISSION_KEY.ReportsActionsSchedule,m.PERMISSION_KEY.ReportsActionsConfigureAccessRights,m.PERMISSION_KEY.ReportsActionsEmail,m.PERMISSION_KEY.ReportsActionsPrint,m.PERMISSION_KEY.ReportsActionsExporting]],title:E.default.getText("TOP_MENU_NEW_REPORTS"),route:{configFn:"getReportDesignerUrl",param:""}}]},{icon:"icomoon-dashboard",isVisible:!1,key:"dashboard",license:h.LICENSE_KEY.Dashboard,needDatabase:!0,needLicense:!0,get title(){return E.default.getText("TOP_MENU_DASHBOARDS")},route:{configFn:"getDashboardUrl",param:""},children:[{route:{configFn:"getDashboardUrl",param:"New"},title:E.default.getText("TOP_MENU_NEW_DASHBOARDS"),icon:"icon-addnew",isHiddenOnMobile:!0,key:"new_dashboard",needDatabase:!0,needLicense:!0,privilegeKeys:[[m.PERMISSION_KEY.DashboardsCanCreateNewDashboardValue]],license:h.LICENSE_KEY.Dashboard}]},{icon:"icomoon-settings",isHiddenOnMobile:!0,isVisible:!1,key:"settings",needDatabase:!1,needLicense:!1,privilegeKeys:[[m.PERMISSION_KEY.TenantSetupActionsCreate,m.PERMISSION_KEY.TenantSetupActionsEdit,m.PERMISSION_KEY.TenantSetupActionsDel,m.PERMISSION_KEY.TenantSetupPermissionsValue,m.PERMISSION_KEY.SystemConfigurationScheduledInstancesValue,m.PERMISSION_KEY.DataSetupDataModelValue,m.PERMISSION_KEY.DataSetupAdvancedSettingsCategory,m.PERMISSION_KEY.DataSetupAdvancedSettingsOthers,m.PERMISSION_KEY.DataSetupDataConnectorsValue,m.PERMISSION_KEY.DataSetupImportValue,m.PERMISSION_KEY.UserSetupActionsCreate,m.PERMISSION_KEY.UserSetupActionsEdit,m.PERMISSION_KEY.UserSetupActionsDel,m.PERMISSION_KEY.UserSetupActionsConfigureSecurityOptions,m.PERMISSION_KEY.UserSetupUserRoleAssociationValue,m.PERMISSION_KEY.RoleSetupActionsCreate,m.PERMISSION_KEY.RoleSetupActionsEdit,m.PERMISSION_KEY.RoleSetupActionsDel,m.PERMISSION_KEY.RoleSetupDataModelAccessValue,m.PERMISSION_KEY.RoleSetupPermissionsValue,m.PERMISSION_KEY.RoleSetupGrantRoleWithFullReportAndDashboardAccessValue]],get title(){return E.default.getText("TOP_MENU_SETTINGS")},route:{configFn:"getSettingsUrl",param:""},children:[]}],b=(r=function(){function e(){(0,c.default)(this,e),_(this,"topMenu",n,this),_(this,"hasSetupDatabase",i,this),_(this,"focusedMenuKey",o,this),_(this,"logoImageWidth",l,this),this.authorization=new y.default,this.getDatabaseConfigStatus()}return(0,p.default)(e,[{key:"updateStoreBasedonPermissions",value:function(){var e=this;this.topMenu=C.map(function(t){return(0,d.default)({},t,{isVisible:e.isMenuItemVisible(t),children:t.children.filter(function(t){return e.isMenuItemVisible(t)})})}).filter(function(e){return e.isVisible})}},{key:"getDatabaseConfigStatus",value:function(){v.default.databaseSetup().bind(this).then(function(e){this.setHasSetupDatabase(e)})}},{key:"setHasSetupDatabase",value:function(e){this.hasSetupDatabase=e,this.updateStoreBasedonPermissions()}},{key:"setImageLogoWidth",value:function(e){this.logoImageWidth=e<220?e:220}},{key:"isMenuItemVisible",value:function(e){var t=this;return!(e.needDatabase&&!this.hasSetupDatabase)&&(!(g.default.expiredLicense||e.needLicense&&e.license&&!this.authorization.checkLicense(e.license))&&!(e.privilegeKeys&&!e.privilegeKeys.reduce(function(e,a){return e&&t.authorization.checkPrivileges(a,m.PERMISSION_OPERATOR.Or)},!0)))}}]),e}(),n=S(r.prototype,"topMenu",[f.observable],{enumerable:!0,initializer:function(){return[]}}),i=S(r.prototype,"hasSetupDatabase",[f.observable],{enumerable:!0,initializer:function(){return!1}}),o=S(r.prototype,"focusedMenuKey",[f.observable],{enumerable:!0,initializer:function(){return""}}),l=S(r.prototype,"logoImageWidth",[f.observable],{enumerable:!0,initializer:function(){return 32}}),S(r.prototype,"updateStoreBasedonPermissions",[f.action],(0,u.default)(r.prototype,"updateStoreBasedonPermissions"),r.prototype),S(r.prototype,"getDatabaseConfigStatus",[f.action],(0,u.default)(r.prototype,"getDatabaseConfigStatus"),r.prototype),S(r.prototype,"setHasSetupDatabase",[f.action],(0,u.default)(r.prototype,"setHasSetupDatabase"),r.prototype),S(r.prototype,"setImageLogoWidth",[f.action],(0,u.default)(r.prototype,"setImageLogoWidth"),r.prototype),r);t.default=b,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,n.default)(i.default.getSystemDate).year();return r.default.createElement("footer",{className:"izenda-Footer"},r.default.createElement("div",{className:"izenda-Footer-copyright"},"Copyright 2016 - "+e+" Izenda, Inc."))};var r=o(a(0)),n=o(a(22)),i=o(a(41));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=S(a(6)),o=S(a(2)),l=S(a(3)),s=S(a(7)),u=S(a(8)),d=a(0),c=S(d),p=S(a(4)),f=S(a(2761)),h=a(64),m=S(a(16)),g=S(a(37)),E=S(a(43)),y=S(a(2762)),v=S(a(2763)),T=S(a(75)),_=a(1);function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,p.default)(f.default)(n=function(e){function t(){var e,a,r,n;(0,o.default)(this,t);for(var l=arguments.length,u=Array(l),d=0;d0;return r.createElement("div",{className:"izenda-NotificationBoard u-posRelative"},r.createElement("span",{onClick:this.toggleNotification,className:"icon-alert"}),t&&r.createElement("span",{className:"badge u-posAbsolute u-bgRed"},e),this.state.show&&r.createElement("span",{className:"icon-filled-triangle-up u-posAbsolute u-colorWhite"}),this.state.show&&this.renderNotifications())},renderNotifications:function(){var e=this.props.localization,t=l.notifications,a=t.length>0;return r.createElement("div",{ref:this.registerNotificationBoardElement,className:"izenda-NotificationBoard-Message u-posAbsolute u-bgWhite u_borderAll"},r.createElement(o,{autoHeight:!0,autoHeightMax:500},r.createElement("div",null,r.createElement("div",{className:"u_borderBottom u_paddingAll"},r.createElement("strong",null,e.getText("NOTIFICATION_POPUP_TITLE"))),a&&t.map(this.renderNotification),!a&&r.createElement("div",{className:"u_borderBottom u_paddingAll"},e.getText("NOTIFICATION_POPUP_NO_NOTIFICATIONS_MESSAGE")))))},renderNotification:function(e){var t=this.getNotificationMessage,a=this.getOnNotificationClickHandler,i=f("notificationMessageID",e),o=g(function(e){return e.id==i},d),l=o.module;return r.createElement("div",{onClick:a(l),style:{cursor:"pointer"},className:"u_borderBottom u_paddingAll",key:e.id},r.createElement("div",{className:"u_marginBottom"},r.createElement("strong",null,l.title)),r.createElement("div",{className:"u_marginBottom"},t(e,o,this)),r.createElement("div",{className:"align-right"},n.utc(e.created).fromNow()))},getOnNotificationClickHandler:function(e){var t=this.props.router;switch(e.value){case c.EXPORT_QUEUE.value:return function(){var e=s.getMyProfileUrl();l.setOpenExportManagerStatus(!0),t.isActive(e)?t.go(e):(this.closeNotification(),t.push(e))}.bind(this);default:return function(){}}},getNotificationMessage:function(e,t){var a,n,i,o,l=this.props.renderNotificationLink,s=t.template;switch(t.module.value){case c.EXPORT_QUEUE.value:return n=h(",",e.replaceValues),i=m(e.replaceValues.slice(0,n)),o=e.replaceValues.slice(n+1),String.format(s,i,o);case c.PROVISION_MAP.value:case c.RESET_NLQ.value:return s;case c.SAVE_NLQ_REPORT.value:return a=e.replaceValues.split(","),r.createElement("div",null,l(a[0],a[1],a[2]),s);case c.SAVE_NLQ_DASHBOARD.value:return function(){var t=e.replaceValues.split(",");return r.createElement("div",null,l(t[0],t[1],t[2]),s)}();case c.CONFIGRE_NLQ.value:return s}},closeNotification:function(){document.removeEventListener("click",this.clickListener),this.setState({show:!1})},toggleNotification:function(){var e=this,a=!this.state.show;if(a){var r=this.props.store;this.setState({show:a}),r.markNotificationsAsRead().then(function(){l.unReadNotificationsCount=0}),this.clickListener=function(a){var r=e.notificationBoardElement;r&&(t.contains(r,a.target)||e.closeNotification())},document.addEventListener("click",this.clickListener)}}}),e.exports=i()(E)}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=g(a(17)),o=g(a(6)),l=g(a(2)),s=g(a(3)),u=g(a(7)),d=g(a(8)),c=a(0),p=g(c),f=a(5),h=g(a(1329)),m=g(a(4));function g(e){return e&&e.__esModule?e:{default:e}}var E,y,v,T,_,S,C=(r=function(e){function t(){(0,l.default)(this,t);var e,a,r,s,d=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this));return e=d,a="helpSystemUrl",s=d,(r=n)&&(0,i.default)(e,a,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(s):void 0}),d.store=new h.default,d}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){var e=this;return this.store.getHelpSystemUrl().then(function(t){e.helpSystemUrl=t})}},{key:"render",value:function(){var e=this.helpSystemUrl,t=this.props.localization;return e?p.default.createElement("div",{className:"izenda-UserMenu-Bell u_fullInlineBlock"},p.default.createElement("div",{className:"u-posRelative"},p.default.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer",title:t.getText("COMMON_LABEL_HELP_SYSTEM"),className:"icon-info-circled-alt u_LargeIcon u-colorBlack"}))):null}}]),t}(c.Component),E=r.prototype,y="helpSystemUrl",v=[f.observable],T={enumerable:!0,initializer:function(){return""}},S={},Object.keys(T).forEach(function(e){S[e]=T[e]}),S.enumerable=!!S.enumerable,S.configurable=!!S.configurable,("value"in S||S.initializer)&&(S.writable=!0),S=v.slice().reverse().reduce(function(e,t){return t(E,y,e)||e},S),_&&void 0!==S.initializer&&(S.value=S.initializer?S.initializer.call(_):void 0,S.initializer=void 0),void 0===S.initializer&&(Object.defineProperty(E,y,S),S=null),n=S,r);t.default=(0,m.default)()(C),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.children;return i.default.createElement("section",{className:"bottomNotification"},t)};var r,n=a(0),i=(r=n)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,a){"use strict";!function(){a(9).observer;var t=a(4),r=a(0),n=a(127),i=a(368),o=a(117),l=a(40).PERMISSION_KEY,s=r.createClass({displayName:"LicenseStatusNotification",sendPurchaseEmail:function(){window.location=n.EMAIL.sale},render:function(){var e=this.props,t=o.licenseInfoStore.licenseInfo,a=e.localization,n=e.authorization.checkPrivileges([l.SystemwideCanSeeSystemMessagesValue]);if(!t.meetExprireWarningPeriod||!n)return null;var i=this.buildMessage(t.numberOfDayToExpire);return r.createElement("div",null,r.createElement("span",{className:"icon-attention"},i),r.createElement("button",{className:"btn btn-primary pull-right",onClick:this.sendPurchaseEmail},t.trialLicense?a.getText("LICENSE_CHECKER_LABEL_READY_PURCHASE"):a.getText("LICENSE_CHECKER_LABEL_RENEW_LICENSE")))},buildMessage:function(e){return e<0?String.format(i.MESSAGE.MG05a,Math.abs(e)):0===e?i.MESSAGE.MG05b:String.format(i.MESSAGE.MG05,e)}});e.exports=t()(s)}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=A(a(23)),s=A(a(6)),u=A(a(2)),d=A(a(3)),c=A(a(7)),p=A(a(8)),f=a(5),h=a(0),m=A(h),g=A(a(16)),E=A(a(117)),y=A(a(2767)),v=A(a(4)),T=A(a(416)),_=A(a(417)),S=A(a(164)),C=A(a(347)),b=A(a(2797)),N=A(a(2800));function A(e){return e&&e.__esModule?e:{default:e}}var R,O,I,D,P,L,M=(0,v.default)()((o=i=function(e){function t(){return(0,u.default)(this,t),(0,c.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.loader,a=e.store.contextMenu;a.activeLink&&(t.startLoading(),e.store.checkSettingLevel(),a.loadSystemIndicator().then(function(){g.default.increaseDetectChangeCount()}),a.disabledLinkBasedOnConnectionString().finally(t.endLoading.bind(t))),this.disposeReconnectBtnEvent=(0,f.observe)(g.default,"detectChangeCount",function(e){e>0&&a.loadSystemIndicator()}),this.disposeDetectVisibleConnectionString=(0,f.observe)(g.default,"detectChangeVisibleConnection",function(e){e>0&&a.disabledLinkBasedOnConnectionString()}),this.disposeObserveTenantID=(0,f.observe)(g.default,"tenantId",function(){g.default.silentUpdate||(E.default.loadAppSettings(),t.startLoading(),a.loadSystemIndicator(),a.disabledLinkBasedOnConnectionString().then(function(){a.isCurrentActiveLinkDisable&&e.confirmFn("Confirmation",{description:y.default.CONFIRM_MESSAGE_CHANGE_TENANT,showCancel:!1}).then(a.changeActiveLink.bind(a,y.default.CONTEXT_MENU_REVERT_LINK))}).finally(t.endLoading.bind(t)))})}},{key:"componentWillUnmount",value:function(){this.disposeReconnectBtnEvent(),this.disposeDetectVisibleConnectionString(),this.disposeObserveTenantID(),g.default.enableSystemSetting(),this.props.store.onlyShowTenant(!1)}},{key:"render",value:function(){var e=this.props,t=e.store,a=e.hasSetupDatabase,r=e.params;return m.default.createElement("section",{className:"izenda-Wrapper"},m.default.createElement(T.default,{store:t}),m.default.createElement(C.default,{className:"izenda-Settings-Pages",settingStore:t},m.default.createElement("div",{className:"izenda-TableLayout u_paddingTopBottom"},m.default.createElement(_.default,null,m.default.createElement(b.default,{store:t,hasSetupDatabase:a})),m.default.createElement(S.default,null,m.default.createElement(N.default,{store:t,params:r,hasSetupDatabase:a,onSaveCallback:this.onSaveCallback.bind(this)})))))}},{key:"onSaveCallback",value:function(){this.props.store.contextMenu.loadSystemIndicator().then(function(){g.default.increaseDetectChangeCount()})}}]),t}(h.Component),i.propTypes={store:h.PropTypes.object.isRequired},R=(n=o).prototype,O="onSaveCallback",I=[f.action],D=(0,l.default)(n.prototype,"onSaveCallback"),P=n.prototype,L={},Object.keys(D).forEach(function(e){L[e]=D[e]}),L.enumerable=!!L.enumerable,L.configurable=!!L.configurable,("value"in L||L.initializer)&&(L.writable=!0),L=I.slice().reverse().reduce(function(e,t){return t(R,O,e)||e},L),P&&void 0!==L.initializer&&(L.value=L.initializer?L.initializer.call(P):void 0,L.initializer=void 0),void 0===L.initializer&&(Object.defineProperty(R,O,L),L=null),r=n))||r;t.default=M,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={get CONFIRM_MESSAGE_CHANGE_TENANT(){return i.default.getText("SETTINGS_CONTEXT_MENU_MESSAGE_CONFIRM_MESSAGE_CHANGE_TENANT")},CONTEXT_MENU_REVERT_LINK:"connectionString"},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s=y(a(17)),u=y(a(23)),d=y(a(2)),c=y(a(3)),p=a(1),f=a(5),h=y(a(302)),m=y(a(193)),g=y(a(16)),E=y(a(117));function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var T=(r=(0,f.action)("loadInitial"),n=(0,f.action)("readSystemMode"),i=(0,f.action)("readTenants"),o=function(){function e(t){var a,r,n,i;(0,d.default)(this,e),a=this,r="tenants",i=this,(n=l)&&(0,s.default)(a,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.store=t,this.availableLevels=(0,p.filter)(function(e){return g.default.currentUser.isSystemUser||"System"!==e.value},m.default.availableLevels)}return(0,c.default)(e,[{key:"selectedTenant",get:function(){return g.default.tenantId}},{key:"disableRoleDropdown",get:function(){return this.disableSystemSetting||g.default.onlyShowTenant||!g.default.currentUser.systemAdmin}},{key:"disableSystemSetting",get:function(){return g.default.disableSystemSetting||g.default.systemMode}}]),(0,c.default)(e,[{key:"selectedLevel",value:function(){return g.default.tenantId||g.default.onlyShowTenant?"Tenant":"System"}},{key:"showTenants",value:function(){return"Tenant"===this.selectedLevel()}},{key:"loadInitial",value:function(e){this.readSystemMode(e)}},{key:"readSystemMode",value:function(e){this.systemMode=e,g.default.systemMode=e}},{key:"readTenants",value:function(e,t){this.tenants=t,e&&(0,p.isNil)(this.selectedTenant)&&this.setSelectedTenant((0,p.isEmpty)(this.tenants)?null:this.tenants[0].id)}},{key:"changeTenant",value:function(e){this.setSelectedTenant(e.value)}},{key:"setSelectedTenant",value:function(e){var t=g.default.tenantId;g.default.setTenantId(e),e?h.default.setSelectedTenant(e):h.default.removeSelectedTenant(),e!==t&&E.default.loadAppSettings()}}]),e}(),l=v(o.prototype,"tenants",[f.observable],{enumerable:!0,initializer:function(){return[]}}),v(o.prototype,"selectedTenant",[f.computed],(0,u.default)(o.prototype,"selectedTenant"),o.prototype),v(o.prototype,"disableRoleDropdown",[f.computed],(0,u.default)(o.prototype,"disableRoleDropdown"),o.prototype),v(o.prototype,"disableSystemSetting",[f.computed],(0,u.default)(o.prototype,"disableSystemSetting"),o.prototype),v(o.prototype,"loadInitial",[r],(0,u.default)(o.prototype,"loadInitial"),o.prototype),v(o.prototype,"readSystemMode",[n],(0,u.default)(o.prototype,"readSystemMode"),o.prototype),v(o.prototype,"readTenants",[i],(0,u.default)(o.prototype,"readTenants"),o.prototype),o);t.default=T,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=m(a(23)),i=a(20),o=m(a(2)),l=m(a(3)),s=a(5),u=m(a(1152)),d=m(a(79)),c=m(a(2770)),p=m(a(2771)),f=m(a(685)),h=m(a(16));function m(e){return e&&e.__esModule?e:{default:e}}var g,E,y,v,T,_,S=(r=function(){function e(){var t=this;(0,o.default)(this,e),this.databaseConfiguration=new c.default,this.licenseInfoStore=f.default,this.systemModeSetting=new p.default,(0,s.observe)(this.databaseConfiguration,function(e){var a=e.object;"isValidConnection"===e.name&&(a.isValidConnection?(t.licenseInfoStore.getLicenseInformation(),t.licenseInfoStore.getLicenseStatus()):t.licenseInfoStore.licenseInfo.resetLicenseInfo())})}return(0,l.default)(e,[{key:"getInitData",value:function(){return(0,i.all)([this.getConnectionInfo(),this.loadSystemSetting()])}},{key:"getSupportedDatabaseType",value:function(){var e=this;return u.default.getSupportedDatabaseType().then(function(t){e.databaseConfiguration.updateSupportedDatabaseType(t)})}},{key:"testConnection",value:function(){var e=this,t=this.databaseConfiguration.connectionInfo;return u.default.testConnection(t.serverTypeId,t.connectionString).then(function(t){return t=t||{},e.databaseConfiguration.readTestConnectionStatus(t),t.messages})}},{key:"setupDatabase",value:function(e){var t=this,a=this.databaseConfiguration.connectionInfo;return e&&this.databaseConfiguration.resetDataInfo(),u.default.setupDatabase(a.serverTypeId,a.connectionString).then(function(e){return t.databaseConfiguration.setValidConnection(e),e.success&&(t.licenseInfoStore.getLicenseInformation(),t.licenseInfoStore.getLicenseStatus(),h.default.increaseDetectChangeVisibleConnection(),h.default.increaseDetectChangeCount()),e})}},{key:"getConnectionInfo",value:function(){var e=this;return u.default.getConnectionInfo().then(function(t){return e.databaseConfiguration.updateConnectionInfo(t),null})}},{key:"saveSystemSetting",value:function(e){return d.default.saveSystemModeSettings(e).then((0,s.action)(function(t){return t.success&&(h.default.systemMode=e.systemMode),t}))}},{key:"loadSystemSetting",value:function(){return d.default.loadSystemModeSettings().then(this.systemModeSetting.readSystemModeSetting.bind(this.systemModeSetting))}}]),e}(),g=r.prototype,E="saveSystemSetting",y=[s.action],v=(0,n.default)(r.prototype,"saveSystemSetting"),T=r.prototype,_={},Object.keys(v).forEach(function(e){_[e]=v[e]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=y.slice().reverse().reduce(function(e,t){return t(g,E,e)||e},_),T&&void 0!==_.initializer&&(_.value=_.initializer?_.initializer.call(T):void 0,_.initializer=void 0),void 0===_.initializer&&(Object.defineProperty(g,E,_),_=null),r);t.default=S,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(5),r=a(49),n=a(1).findLast;function i(){this.hasValidConnection=!1,this.differentDatabase=!0,t.extendObservable(this,{supportedDatabaseType:[],connectionInfo:{},isValidConnection:!1,validatedConnection:!1,validationError:"",serverTypeName:function(){var e=this.connectionInfo.serverTypeId;return n({id:e},this.supportedDatabaseType).name}})}i.prototype.updateSupportedDatabaseType=function(e){this.supportedDatabaseType=e},i.prototype.resetDataInfo=function(){this.isValidConnection=!1},i.prototype.readTestConnectionStatus=function(e){t.transaction(function(){this.validatedConnection=!0,this.differentDatabase=e.differentDatabase,e.success||(this.validationError=e.messages&&e.messages[0])}.bind(this))},i.prototype.setValidConnection=function(e){this.isValidConnection=e.success},i.prototype.updateConnectionInfo=function(e){t.transaction(function(){this.validationError="",this.connectionInfo=e,this.connectionInfo.serverTypeId===r.SERVER_TYPE.UNKNOWN&&(this.connectionInfo.serverTypeId=r.SERVER_TYPE.MSSQL),this.hasValidConnection=this.isValidConnection=this.validatedConnection=!!e.connectionString}.bind(this))},i.prototype.updateServerType=function(e){this.connectionInfo.serverTypeId=e,this.connectionInfo.connectionString="",this.resetConnectionStatus()},i.prototype.updateConnectionString=function(e){this.connectionInfo.connectionString=e,this.resetConnectionStatus()},i.prototype.resetConnectionString=function(){this.connectionInfo.connectionString=""},i.prototype.resetConnectionStatus=function(){this.validatedConnection&&(this.validatedConnection=!1)},e.exports=i}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(5).extendObservable,n=a(193);function i(){var e={systemMode:n.TENANT_MODE,allowDuplicateUser:!0,isSingleMode:function(){return this.systemMode===n.SYSTEM_MODE}};r(this,e)}i.prototype.readSystemModeSetting=t.action(function(e){this.systemMode=e.systemMode,this.allowDuplicateUser=e.allowDuplicateUser}),i.prototype.switchToSingle=t.action(function(){this.systemMode=n.SYSTEM_MODE,this.allowDuplicateUser=!1}),i.prototype.switchToMulti=t.action(function(){this.systemMode=n.TENANT_MODE,this.allowDuplicateUser=!0}),i.prototype.updateAllowDuplicateUser=function(e){this.allowDuplicateUser=e},e.exports=i}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(17)),l=_(a(23)),s=_(a(90)),u=_(a(2)),d=_(a(3)),c=a(5),p=_(a(2773)),f=_(a(779)),h=_(a(217)),m=_(a(278)),g=_(a(546)),E=_(a(279)),y=_(a(16)),v=a(249),T=a(1);function _(e){return e&&e.__esModule?e:{default:e}}function S(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function C(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var b=(r=function(){function e(){(0,u.default)(this,e),S(this,"activeLink",n,this),S(this,"indicator",i,this),this.dataModelMenu=v.MENU,this.querySourceType=new p.default,this.relationship=new f.default}return(0,d.default)(e,[{key:"init",value:function(){var e=this;this.loadIndicator(),!this.disposeObserveTenantID&&(this.disposeObserveTenantID=(0,c.observe)(y.default,"tenantId",function(){y.default.silentUpdate||e.loadIndicator()}))}},{key:"destroy",value:function(){this.disposeObserveTenantID&&this.disposeObserveTenantID(),this.disposeObserveTenantID=null}},{key:"changeSelectItem",value:function(e){this.activeLink=e}},{key:"loadIndicator",value:function(){var e=this;return h.default.loadIndicator(y.default.getTenantId()).then(function(t){return e.indicator=t,null})}},{key:"loadItemIndicator",value:function(e){var t=(0,T.find)(function(t){return t.key===e},this.indicator);return t&&t.value}},{key:"loadSourceQuerySourceTree",value:function(){return m.default.getConnectionDetailInfo(y.default.getTenantId(),!0,{defaultChecked:!0}).then(function(e){return new E.default(e.connections)})}},{key:"exportDataModel",value:function(e,t,a){var r={sourceTenant:y.default.getTenantId(),selectedConnections:(0,s.default)(e)};return g.default.exportDataModel(r,t,a)}}]),e}(),n=C(r.prototype,"activeLink",[c.observable],{enumerable:!0,initializer:function(){return v.QUERY_SOURCE_TYPE.TABLE}}),i=C(r.prototype,"indicator",[c.observable],{enumerable:!0,initializer:function(){return[]}}),C(r.prototype,"changeSelectItem",[c.action],(0,l.default)(r.prototype,"changeSelectItem"),r.prototype),r);t.default=b,e.exports=t.default},function(e,t,a){"use strict";var r,n=a(90),i=(r=n)&&r.__esModule?r:{default:r},o=a(20);!function(){var t=a(168).QUERY_SOURCE_TYPE,r=a(16),n=a(168).BUNDLE,l=a(5),s=a(5).action,u=a(5).observable,d=a(123).concatArray,c=a(217),p=a(1332),f=a(2774),h=a(108),m=a(44),g=a(712),E=a(516),y=a(517),v=a(1),T=v.isEmpty,_=v.some,S=v.map,C=v.isNil,b=v.omit,N=v.flatMap,A=v.findIndex,R=v.each,O=v.clone,I=v.find;function D(){this.hasDynamicFeature=!1,l.extendObservable(this,{querySourceType:"",relationship:null,categoryList:new p,querySourceList:[],selectedQuerySource:null,isLoading:!0,totalRecords:0,pageInfo:new h,hasChange:function(){return _(["isDirty",!0],this.querySourceList)||_(["hasDetailChange",!0],this.querySourceList)},canSave:function(){var e=[];if(this.selectedQuerySource){var t=this.selectedQuerySource.getId(),a=A(function(e){return e.getId()===t},this.querySourceList);e=this.querySourceList[a].getFieldLists()}return this.hasChange||_("details.physicalChange",this.querySourceList)||_("details.allowToSave",e)},getCriteriaList:function(){var e=n.CRITERIALIST;return e[this.querySourceType]||e.DEFAULT_CRITERIA_LIST},showPopup:!1,alertMessage:m.EMPTY_MESSAGE})}D.prototype.init=function(){this.alertMessage=m.EMPTY_MESSAGE,this.observeTenantId(),r.setCheckDirtyFunction(function(){return this.hasChange}.bind(this))},D.prototype.destroy=l.action(function(){this.disposeQuerySourceType(),r.resetCheckDirtyFunction()}),D.prototype.observeTenantId=function(){this.disposeQuerySourceType=l.observe(r,"tenantId",function(){r.silentUpdate||this.goToPage(1)}.bind(this))},D.prototype.setQuerySourceType=l.action(function(e){return this.querySourceType=e,this.resetData(),this.resetPagingInfo(),this.loadQuerySources()}),D.prototype.search=l.action(function(e,t){return this.resetData(),this.pageInfo.setSearchValues(e,t),this.goToPage(1)}),D.prototype.reload=l.action(function(){this.resetData(),this.loadQuerySources()}),D.prototype.resetData=l.action(function(){this.querySourceList=[],this.selectedQuerySource=null,this.isLoading=!0,this.totalRecords=0}),D.prototype.resetPagingInfo=l.action(function(){var e=n.SORTDEFAULTLIST,t=O(e[this.querySourceType]||e.DEFAULT_SORT);this.pageInfo=new h(t,n.DEFAULT_CRITERIA)}),D.prototype.loadQuerySources=l.action(function(){var e={pageSize:this.pageInfo.pageSize,pageIndex:this.pageInfo.pageIndex},t=r.getTenantId()||null;this.selectedQuerySource=null,this.pageInfo.buildPagingRequest();var a=this.pageInfo.sortOrders;return(0,o.join)(this.categoryList.getCategories(t),c.loadQuerySources(t,this.querySourceType,e,a,this.pageInfo.searchCriteria),function(e,t){return this.populateData(t)}.bind(this))}),D.prototype.goToPage=l.action(function(e){return this.pageInfo.setPageIndex(e),this.loadQuerySources()}),D.prototype.populateData=l.action(function(e){var a=(e=e||{}).result;this.totalRecords=e.total;var r,n=S(function(e){return new f(e)},a);return a.length>0&&(this.hasDynamicFeature=(r=a[0])&&r.extendedProperties&&r.extendedProperties.Dynamic),this.pageInfo.totalRecords=e.total,l.transaction(function(){this.querySourceList=n,n.length>0&&this.querySourceType!==t.FUNCTION&&this.setShowingQuerySource(n[0])}.bind(this)),null}),D.prototype.setShowingQuerySource=l.action(function(e){if(!this.selectedQuerySource||this.selectedQuerySource.getId()!==e.getId()){this.selectedQuerySource&&(this.selectedQuerySource.isSelected=!1,this.selectedQuerySource.fieldList=[]),this.selectedQuerySource=e,e.isSelected=!0;var t=this.querySourceList,a=e&&e.details,n=a&&a.id;return(0,o.join)(e.loadQuerySourceFields(),c.fetchFunctionOperators(r.getTenantId(),n,!0),function(r,n){var i=N(function(e){return e.details},t);return l.transaction(function(){e.calculatedStore.expressionSelection=new g({expressionFieldName:new E({selectedDataSource:a,dataSources:i}),expressionFunctionOperators:new y({functionOperators:n})}),e.loadFieldNameForExpression()}),null})}}),D.prototype.fetchAllQuerySourceList=function(){return c.loadAllQuerySources(r.getTenantId(),this.querySourceType)},D.prototype.getBundle=function(){return n},D.prototype.isFieldInvisibleOrUnfilterable=function(){if(!C(this.selectedQuerySource)){var e=this.selectedQuerySource.getId(),t=A(function(t){return t.getId()===e},this.querySourceList),a=this.querySourceList[t].getFieldLists(),r=I(function(e){return 1==e.isChangeToInvisible||1==e.isChangeToUnfilterable},a);return!T(r)}},D.prototype.updateQuerySource=l.action(function(){var e=function(){var e=[];return R(function(t){var a=t.getDetails(),r=b(["extendedProperties","querySourceFields"],a);r.type=this.querySourceType,r.extendedProperties=(0,i.default)(a.extendedProperties),r.querySourceFields=[],r.dataSourceCategoryId=r.isNewCategory?null:r.dataSourceCategoryId,e.push(r)}.bind(this),this.querySourceList),e}.bind(this),t=function(e){if(this.selectedQuerySource){var t=this.selectedQuerySource.getId(),a=A(function(e){return e.getId()===t},this.querySourceList),r=this.querySourceList[a].getFieldLists();R(function(t){var r=t.getDetails()||{},n=b(["filteredValue","state"],r),o=r.filteredValue;n.filteredValue=(0,i.default)(o),n.state=t.getState(),e[a].querySourceFields.push(n)},r)}}.bind(this),a=function(){var a={};return a.tenantId=r.getTenantId(),a.querySources=e(),t(a.querySources),a}.bind(this)();return c.updateQuerySource(a)}),D.prototype.deleteCustomQuerySource=function(e){return c.deleteCustomQuerySource({id:e.details.id})},D.prototype.getDatabases=s(function(e,t,a){var n={tenantId:r.getTenantId(),skipItems:t.fromIndex,pageSize:t.pageSize};return c.getDatabases(n).then(s(function(t){e.isLastPageDatabase=t.isLastPage,a&&(e.databases=[]);var r=S(function(e){return u(e)},t.result);return d(e.databases,r,"key",!t.isLastPage)}))}),D.prototype.getSchemas=s(function(e,t,a){var r={connectionId:e.databaseId,skipItems:t.fromIndex,pageSize:t.pageSize};return c.getSchemas(r).then(s(function(t){e.isLastPageSchema=t.isLastPage,a&&(e.schemas=[]);var r=S(function(e){return u(e)},t.result);return d(e.schemas,r,"key",!t.isLastPage)}))}),D.prototype.validateCustomQuerySource=function(e){var t={id:e.id,name:e.viewName,connectionId:e.databaseId,categoryId:e.schemaId,customDefinition:e.query};return c.validateCustomQuerySource(t)},D.prototype.saveCustomQuerySource=function(e){var t={id:e.id,name:e.viewName,connectionId:e.databaseId,categoryId:e.schemaId,customDefinition:e.query};return c.saveCustomQuerySource(t)},e.exports=D}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g=V(a(17)),E=V(a(23)),y=V(a(124)),v=a(20),T=V(a(125)),_=V(a(70)),S=V(a(90)),C=V(a(2)),b=V(a(3)),N=a(1),A=a(5),R=a(53),O=V(R),I=V(a(68)),D=V(a(108)),P=V(a(1205)),L=V(a(217)),M=V(a(110)),F=V(a(16)),k=V(a(776)),x=V(a(249)),w=a(286),B=a(5),U=V(a(2775)),z=V(a(1333));V(a(778));function V(e){return e&&e.__esModule?e:{default:e}}function G(e,t,a,r){a&&(0,g.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function H(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Y=(0,O.default)((n=function(){function e(t){(0,C.default)(this,e),this.isDirty=!1,this.colSortDir={ColumnName:"DESC"},G(this,"details",i,this),G(this,"aliasError",o,this),G(this,"executeErrorMessage",l,this),G(this,"isSelected",s,this),G(this,"predictedFieldStore",u,this),G(this,"MachineLearningStore",d,this),G(this,"fieldList",c,this),G(this,"pageInfo",p,this),G(this,"editingQuerySourceField",f,this),G(this,"isEditingFilter",h,this),G(this,"calculatedStore",m,this),this.details=t||{},this.details.extendedProperties=JSON.parse(this.details.extendedProperties||"{}")}return(0,b.default)(e,[{key:"getParams",value:function(){return(0,N.map)(function(e){var t=(0,N.pick)(["id","name","filteredValue"],e.details);return t.filteredValue=(0,S.default)(t.filteredValue),t},(0,N.filter)({isParameter:!0},this.fieldList))}},{key:"getDetails",value:function(){return this.details}},{key:"getFieldLists",value:function(){return this.fieldList}},{key:"get",value:function(){return this.fieldList}},{key:"getId",value:function(){return(0,N.getOr)(null,"details.id",this)}},{key:"getCategory",value:function(){return(0,N.getOr)(null,"details.dataSourceCategoryId",this)||(0,N.getOr)(null,"details.dataSourceCategoryName",this)}},{key:"getDbName",value:function(){return(0,N.getOr)(null,"details.connectionName",this)}},{key:"getDbSourceName",value:function(){return(0,N.getOr)(null,"details.name",this)}},{key:"getDbSourceAlias",value:function(){return(0,N.getOr)(null,"details.alias",this)}},{key:"getFieldLevel",value:function(){return(0,N.getOr)(null,"details.extendedProperties.FieldLevel",this)}},{key:"getReturnedValue",value:function(){return(0,N.getOr)(null,"details.extendedProperties.ReturnedValue",this)}},{key:"getInputParams",value:function(){return(0,N.getOr)(null,"details.extendedProperties.InputParams",this)}},{key:"getExpressionLevel",value:function(){return(0,N.getOr)(null,"details.extendedProperties.ExpressionLevel",this)}},{key:"isDynamic",value:function(){return(0,N.getOr)(null,"details.extendedProperties.Dynamic",this)}},{key:"isStatic",value:function(){return(0,N.getOr)(null,"details.extendedProperties.Static",this)}},{key:"getQuerySourceDetailsType",value:function(){return(0,N.getOr)(null,"details.extendedProperties.storedProcType",this)}},{key:"setCategory",value:function(e,t,a){var r=this.getDetails();r.dataSourceCategoryId=e,r.dataSourceCategoryName=t,r.isNewCategory=a}},{key:"setDbSourceAlias",value:function(e){this.aliasError&&(this.aliasError=""),this.details.alias=e}},{key:"setFieldLevel",value:function(e){this.details.extendedProperties.FieldLevel=e}},{key:"setExpressionLevel",value:function(e){this.details.extendedProperties.ExpressionLevel=e}},{key:"setDynamic",value:function(e){this.details.extendedProperties.Dynamic=e}},{key:"loadQuerySourceFields",value:function(){var e=(0,_.default)({},this.details);e.extendedProperties=(0,S.default)(e.extendedProperties),this.pageInfo.buildPagingRequest();var t=this.pageInfo.sortOrders;return L.default.loadQuerySourceFields(e,t,null,F.default.getTenantId()).then(this.populateData.bind(this))}},{key:"restoreUserData",value:function(e){(0,N.forEach)(function(t){var a=(0,N.find)(function(e){return e.details.id===t.details.id},e);a&&((t.filterableChanged||t.visibleChanged||t.details.alias!==a.details.alias)&&t.markDirty(),t.filterableChanged=a.filterableChanged,t.visibleChanged=a.visibleChanged,t.details.filterable=a.details.filterable,t.details.visible=a.details.visible,t.details.alias=a.details.alias)},this.fieldList)}},{key:"populateData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=t?(0,N.map)(function(e){return(0,N.pick)(["filterableChanged","visibleChanged","details"],e)},this.fieldList):[];this.querySourceTypeDetails=e||{};var r=this.querySourceTypeDetails.result||[],n=(0,N.map)(function(e){return e.approval-1&&e.indexOf(l.FILE_LOCATION)>-1?u:e.indexOf(l.EMAIL)>-1?u.filter(function(e){return e.value!==s.SEND_TO_DISK}):e.indexOf(l.FILE_LOCATION)>-1?u.filter(function(e){return e.value===s.SEND_TO_DISK||e.value===s.EMPTY}):void 0:u},recurrenceOptions:function(){var e=this.instanceType;return e?-1===e.indexOf(c.SUBSCRIBE_ALERT)&&-1===e.indexOf(c.SUBSCRIBE_REPORTING_ITEM)?d.filter(function(e){return e.value!==p.EVERY_HOURLY||e.value!==p.EVERY_DAILY}):-1===e.indexOf(c.SCHEDULE_ALERT)&&-1===e.indexOf(c.SCHEDULE_REPORT)?d.filter(function(e){return e.value===p.EVERY_HOURLY||e.value===p.EVERY_DAILY||e.value===p.EMPTY||e.value===p.CUSTOM}):void 0:d}})}S.prototype.setValueByKey=function(e,t){this[e]=t},S.prototype.setOptionByKey=function(e,t){this[e]=_(t)},S.prototype.getMultiValueCriteria=function(e){return v(";",this[e])},S.prototype.resetData=r(function(){(0,i.default)(this.originCriteria).forEach(function(e){this[e]=this.originCriteria[e]}.bind(this))}),S.prototype.buildDataForSearch=function(){var e=T(this);return this.isDateLastSuccessRun||(e.lastSuccessfulRunFrom=null,e.lastSuccessfulRunTo=null),this.isNextScheduledRun||(e.nextScheduledRunFrom=null,e.nextScheduledRunTo=null),e},e.exports=S}()},function(e,t,a){"use strict";!function(){var t=a(1).find,r=a(5).extendObservable,n=a(5).asMap,i=a(5).action,o=a(2783);function l(e){r(this,{systemSearchResult:new o,tenantSearchResult:n({}),isEmpty:function(){for(var e=!0,t=this.tenantSearchResult,a=t.keys(),r=0;r-1},h.prototype.setPageIndex=function(e){this.pageInfo.setPageIndex(e)},h.prototype.setPageSize=r(function(e){this.pageInfo.setPageSize(e),this.pageInfo.setPageIndex(1)}),h.prototype.setColSortDirs=function(e,t){this.pageInfo.setColSortDirs(e,t)},h.prototype.deleteSchedule=r(function(e){var t=c({id:e.id},this.schedules);t>-1&&(this.schedules.splice(t,1),this.pageInfo.descreaseRecord())}),h.prototype.deleteSelectedSchedules=r(function(){var e=this.schedules.filter(function(e){return e.selected}).length;this.schedules=this.schedules.filter(function(e){return!e.selected});var t=this.pageInfo;f(t.descreaseRecord.bind(t),e)}),e.exports=h}()},function(e,t,a){"use strict";!function(){var t=a(5).extendObservable,r=a(5).action,n=a(152),i=a(1).isNil;function o(e){var a={subscription:new n,reportingType:"",reportDashboardName:"",createdBy:"",selected:!1,id:function(){return this.subscription.id}};t(this,a),e&&this.populateData(e)}o.prototype.populateData=r(function(e){this.subscription.populate(e),this.reportingType=e.reportingType,this.reportDashboardName=e.reportDashboardName,this.createdBy=e.createdBy}),o.prototype.getDataByKey=function(e){var t=this[e];return i(t)&&(t=this.subscription[e]),t},o.prototype.updateSelected=function(e){this.selected=e},e.exports=o}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=E(a(17)),s=E(a(23)),u=E(a(2)),d=E(a(3)),c=E(a(16)),p=a(5),f=a(1),h=E(a(2786)),m=E(a(163)),g=E(a(79));function E(e){return e&&e.__esModule?e:{default:e}}function y(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function v(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var T=(r=function(){function e(t){var a=this;(0,u.default)(this,e),y(this,"emailConfiguration",n,this),y(this,"clonedEmailConfiguration",i,this),y(this,"alertDetails",o,this),this.dirtyFn=function(){return(0,f.get)("emailConfiguration.isDirty",a)||(0,f.get)("clonedEmailConfiguration.isDirty",a)},this.noDirtyFnRegistration=!!t}return(0,d.default)(e,[{key:"loadEmailConfiguration",value:function(){var e=this;return g.default.loadEmailConfiguration(c.default.tenantId).then(function(t){return e.emailConfiguration=new h.default(t),e.clonedEmailConfiguration=e.emailConfiguration.clone(),e.resetDirty(),t})}},{key:"saveEmailConfiguration",value:function(){var e=this;return g.default.saveEmailConfiguration(this.clonedEmailConfiguration.buildDataForSave()).then(function(t){return t.success&&(e.emailConfiguration.populateData(e.clonedEmailConfiguration),e.resetDirty()),t})}},{key:"cancelChangeConfiguration",value:function(){this.clonedEmailConfiguration=this.emailConfiguration.clone()}},{key:"resetDirty",value:function(){this.emailConfiguration.resetDirty(),this.clonedEmailConfiguration.resetDirty()}},{key:"init",value:function(){this.noDirtyFnRegistration||c.default.setCheckDirtyFunction(this.dirtyFn)}},{key:"destroy",value:function(){this.noDirtyFnRegistration||c.default.resetCheckDirtyFunction()}},{key:"isShowConfiguration",get:function(){return c.default.tenantId}}]),e}(),n=v(r.prototype,"emailConfiguration",[p.observable],{enumerable:!0,initializer:function(){return new h.default}}),i=v(r.prototype,"clonedEmailConfiguration",[p.observable],{enumerable:!0,initializer:function(){return new h.default}}),o=v(r.prototype,"alertDetails",[p.observable],{enumerable:!0,initializer:function(){return new m.default}}),v(r.prototype,"isShowConfiguration",[p.computed],(0,s.default)(r.prototype,"isShowConfiguration"),r.prototype),r);t.default=T,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T=O(a(17)),_=O(a(23)),S=O(a(2)),C=O(a(3)),b=O(a(53)),N=a(5),A=O(a(16)),R=a(1);function O(e){return e&&e.__esModule?e:{default:e}}function I(e,t,a,r){a&&(0,T.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function D(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var P=(0,b.default)((n=function(){function e(t){(0,S.default)(this,e),I(this,"id",i,this),I(this,"tenantId",o,this),I(this,"server",l,this),I(this,"port",s,this),I(this,"secureConnection",u,this),I(this,"login",d,this),I(this,"password",c,this),I(this,"displayName",p,this),I(this,"emailFromAddress",f,this),I(this,"useSystemConfiguration",h,this),I(this,"version",m,this),I(this,"created",g,this),I(this,"createdBy",E,this),I(this,"modified",y,this),I(this,"modifiedBy",v,this),t&&this.populateData(t)}return(0,C.default)(e,[{key:"setValueByKey",value:function(e,t){this[e]!==t&&(this[e]=t,this.markDirty())}},{key:"populateData",value:function(e){this.useSystemConfiguration=e.useSystemConfiguration,this.tenantId=e.tenantId||A.default.tenantId,this.tenantId&&this.useSystemConfiguration||(this.id=e.id,this.server=e.server,this.port=e.port,this.secureConnection=e.secureConnection,this.login=e.login,this.password=e.password,this.displayName=e.displayName,this.emailFromAddress=e.emailFromAddress,this.useSystemConfiguration=e.useSystemConfiguration,this.version=e.version,this.created=e.createdBy,this.modified=e.modified,this.modifiedBy=e.modifiedBy)}},{key:"clone",value:function(){return new e(this)}},{key:"buildDataForSave",value:function(){return this.tenantId?this:(0,R.omit)(["useSystemConfiguration"],this)}}]),e}(),i=D(n.prototype,"id",[N.observable],{enumerable:!0,initializer:function(){return null}}),o=D(n.prototype,"tenantId",[N.observable],{enumerable:!0,initializer:function(){return null}}),l=D(n.prototype,"server",[N.observable],{enumerable:!0,initializer:function(){return""}}),s=D(n.prototype,"port",[N.observable],{enumerable:!0,initializer:function(){return null}}),u=D(n.prototype,"secureConnection",[N.observable],{enumerable:!0,initializer:function(){return!1}}),d=D(n.prototype,"login",[N.observable],{enumerable:!0,initializer:function(){return""}}),c=D(n.prototype,"password",[N.observable],{enumerable:!0,initializer:function(){return""}}),p=D(n.prototype,"displayName",[N.observable],{enumerable:!0,initializer:function(){return""}}),f=D(n.prototype,"emailFromAddress",[N.observable],{enumerable:!0,initializer:function(){return""}}),h=D(n.prototype,"useSystemConfiguration",[N.observable],{enumerable:!0,initializer:function(){return!0}}),m=D(n.prototype,"version",[N.observable],{enumerable:!0,initializer:function(){return null}}),g=D(n.prototype,"created",[N.observable],{enumerable:!0,initializer:function(){return null}}),E=D(n.prototype,"createdBy",[N.observable],{enumerable:!0,initializer:function(){return null}}),y=D(n.prototype,"modified",[N.observable],{enumerable:!0,initializer:function(){return null}}),v=D(n.prototype,"modifiedBy",[N.observable],{enumerable:!0,initializer:function(){return null}}),D(n.prototype,"setValueByKey",[N.action],(0,_.default)(n.prototype,"setValueByKey"),n.prototype),D(n.prototype,"populateData",[N.action],(0,_.default)(n.prototype,"populateData"),n.prototype),r=n))||r;t.default=P,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=d(a(23)),i=d(a(2)),o=d(a(3)),l=a(5),s=d(a(2788)),u=d(a(2789));function d(e){return e&&e.__esModule?e:{default:e}}var c,p,f,h,m,g,E=(r=function(){function e(t){(0,i.default)(this,e),this.dataCachingConfiguration=new s.default,this.systemCachingConfiguration=new u.default,t&&this.populateData(t),this.isDirty=!1}return(0,o.default)(e,[{key:"setDataCachingValueByKey",value:function(e,t){this.dataCachingConfiguration.setValueByKey(e,t),this.isDirty=!0}},{key:"setSystemCachingValueByKey",value:function(e,t){this.systemCachingConfiguration.setValueByKey(e,t),this.isDirty=!0}},{key:"populateData",value:function(e){this.dataCachingConfiguration.populateData(e.dataCacheSetting),this.systemCachingConfiguration.populateData(e.systemCacheSetting)}},{key:"buildDataForSave",value:function(){return{dataCacheSetting:this.dataCachingConfiguration.buildDataForSave(),systemCacheSetting:this.systemCachingConfiguration.buildDataForSave()}}},{key:"resetDirty",value:function(){this.isDirty=!1}}]),e}(),c=r.prototype,p="populateData",f=[l.action],h=(0,n.default)(r.prototype,"populateData"),m=r.prototype,g={},Object.keys(h).forEach(function(e){g[e]=h[e]}),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=f.slice().reverse().reduce(function(e,t){return t(c,p,e)||e},g),m&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(m):void 0,g.initializer=void 0),void 0===g.initializer&&(Object.defineProperty(c,p,g),g=null),r);t.default=E,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u=h(a(17)),d=h(a(23)),c=h(a(2)),p=h(a(3)),f=a(5);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,a,r){a&&(0,u.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function g(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var E=(r=function(){function e(t){(0,c.default)(this,e),m(this,"isEnableDataCache",n,this),m(this,"timeToLive",i,this),m(this,"evictionInterval",o,this),m(this,"refreshInterval",l,this),m(this,"refreshDuration",s,this),this.defaultIsEnableDataCache=null,this.defaultTimeToLive=null,this.defaultEvictionInterval=null,this.defaultRefreshInterval=null,this.defaultRefreshDuration=null,t&&this.populateData(t)}return(0,p.default)(e,[{key:"setValueByKey",value:function(e,t){this[e]=t}},{key:"populateData",value:function(e){this.isEnableDataCache=e.isEnableDataCache,this.timeToLive=e.timeToLive,this.evictionInterval=e.evictionInterval,this.refreshInterval=e.refreshInterval,this.refreshDuration=e.refreshDuration,this.defaultIsEnableDataCache=e.defaultIsEnableDataCache,this.defaultTimeToLive=e.defaultTimeToLive,this.defaultEvictionInterval=e.defaultEvictionInterval,this.defaultRefreshInterval=e.defaultRefreshInterval,this.defaultRefreshDuration=e.defaultRefreshDuration}},{key:"buildDataForSave",value:function(){return{isEnableDataCache:this.isEnableDataCache,timeToLive:this.timeToLive,evictionInterval:this.evictionInterval,refreshInterval:this.refreshInterval,refreshDuration:this.refreshDuration}}}]),e}(),n=g(r.prototype,"isEnableDataCache",[f.observable],{enumerable:!0,initializer:function(){return null}}),i=g(r.prototype,"timeToLive",[f.observable],{enumerable:!0,initializer:function(){return null}}),o=g(r.prototype,"evictionInterval",[f.observable],{enumerable:!0,initializer:function(){return null}}),l=g(r.prototype,"refreshInterval",[f.observable],{enumerable:!0,initializer:function(){return null}}),s=g(r.prototype,"refreshDuration",[f.observable],{enumerable:!0,initializer:function(){return null}}),g(r.prototype,"populateData",[f.action],(0,d.default)(r.prototype,"populateData"),r.prototype),r);t.default=E,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=p(a(17)),s=p(a(23)),u=p(a(2)),d=p(a(3)),c=a(5);function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function h(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var m=(r=function(){function e(t){(0,u.default)(this,e),f(this,"isEnableSystemCache",n,this),f(this,"timeToLive",i,this),f(this,"evictionInterval",o,this),this.defaultIsEnableSystemCache=null,this.defaultTimeToLive=null,this.defaultEvictionInterval=null,t&&this.populateData(t)}return(0,d.default)(e,[{key:"setValueByKey",value:function(e,t){this[e]=t}},{key:"populateData",value:function(e){this.isEnableSystemCache=e.isEnableSystemCache,this.defaultIsEnableSystemCache=e.defaultIsEnableSystemCache,this.timeToLive=e.timeToLive,this.evictionInterval=e.evictionInterval,this.defaultTimeToLive=e.defaultTimeToLive,this.defaultEvictionInterval=e.defaultEvictionInterval}},{key:"buildDataForSave",value:function(){return{isEnableSystemCache:this.isEnableSystemCache,timeToLive:this.timeToLive,evictionInterval:this.evictionInterval}}}]),e}(),n=h(r.prototype,"isEnableSystemCache",[c.observable],{enumerable:!0,initializer:function(){return null}}),i=h(r.prototype,"timeToLive",[c.observable],{enumerable:!0,initializer:function(){return null}}),o=h(r.prototype,"evictionInterval",[c.observable],{enumerable:!0,initializer:function(){return null}}),h(r.prototype,"populateData",[c.action],(0,s.default)(r.prototype,"populateData"),r.prototype),r);t.default=m,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=m(a(17)),l=m(a(2)),s=m(a(3)),u=m(a(16)),d=a(5),c=m(a(2791)),p=m(a(163)),f=m(a(79)),h=a(1);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function E(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var y=(r=function(){function e(t){var a=this;(0,l.default)(this,e),g(this,"googleMapConfiguration",n,this),g(this,"alertDetails",i,this),this.dirtyFn=function(){return(0,h.get)("isDirty",a)},this.noDirtyFnRegistration=!!t}return(0,s.default)(e,[{key:"loadGoogleMapConfiguration",value:function(){var e=this;return f.default.loadGoogleMapConfiguration(u.default.tenantId).then((0,d.action)(function(t){return e.setGoogleApiKeyToUiState(t),e.googleMapConfiguration.populateData(t),e.resetDirty(),e.alertDetails.reset(),t}))}},{key:"saveGoogleMapConfiguration",value:function(){var e=this;return f.default.saveGoogleMapConfiguration(this.googleMapConfiguration.buildDataForSave()).then(function(t){if(t.success){var a=t.googleAPIKeySetting;e.setGoogleApiKeyToUiState(a),e.googleMapConfiguration.populateData(a),e.resetDirty()}return t})}},{key:"setGoogleApiKeyToUiState",value:function(e){var t=(0,h.get)("googleAPIKey",e);u.default.setGoogleApiKey(t)}},{key:"setGoogleMapValueByKey",value:function(e,t){this.googleMapConfiguration.setValueByKey(e,t),this.isDirty=!0}},{key:"resetDirty",value:function(){this.isDirty=!1}},{key:"init",value:function(){this.noDirtyFnRegistration||u.default.setCheckDirtyFunction(this.dirtyFn)}},{key:"destroy",value:function(){this.noDirtyFnRegistration||u.default.resetCheckDirtyFunction()}}]),e}(),n=E(r.prototype,"googleMapConfiguration",[d.observable],{enumerable:!0,initializer:function(){return new c.default}}),i=E(r.prototype,"alertDetails",[d.observable],{enumerable:!0,initializer:function(){return new p.default}}),r);t.default=y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u=m(a(17)),d=m(a(23)),c=m(a(2)),p=m(a(3)),f=a(5),h=m(a(16));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,a,r){a&&(0,u.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function E(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var y=(r=function(){function e(t){(0,c.default)(this,e),g(this,"googleApiKey",n,this),g(this,"useSystemConfiguration",i,this),g(this,"tenantId",o,this),g(this,"id",l,this),g(this,"useGEOCodingService",s,this),t&&this.populateData(t)}return(0,p.default)(e,[{key:"setValueByKey",value:function(e,t){this[e]=t}},{key:"populateData",value:function(e){var t=e.googleAPIKey,a=e.useSystemConfiguration,r=e.tenantId,n=e.id,i=e.useGEOCodingService;a?(this.googleApiKey="",this.useGEOCodingService=!1):(this.googleApiKey=t,this.useGEOCodingService=!!i),this.useSystemConfiguration=a,this.tenantId=r||h.default.tenantId,this.id=n}},{key:"buildDataForSave",value:function(){return{googleAPIKey:this.googleApiKey,useSystemConfiguration:this.useSystemConfiguration,tenantId:this.tenantId,id:this.id,useGEOCodingService:this.useGEOCodingService}}}]),e}(),n=E(r.prototype,"googleApiKey",[f.observable],{enumerable:!0,initializer:function(){return null}}),i=E(r.prototype,"useSystemConfiguration",[f.observable],{enumerable:!0,initializer:function(){return null}}),o=E(r.prototype,"tenantId",[f.observable],{enumerable:!0,initializer:function(){return null}}),l=E(r.prototype,"id",[f.observable],{enumerable:!0,initializer:function(){return null}}),s=E(r.prototype,"useGEOCodingService",[f.observable],{enumerable:!0,initializer:function(){return!1}}),E(r.prototype,"populateData",[f.action],(0,d.default)(r.prototype,"populateData"),r.prototype),r);t.default=y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=m(a(17)),l=m(a(2)),s=m(a(3)),u=m(a(16)),d=a(5),c=m(a(2793)),p=m(a(163)),f=m(a(79)),h=a(1);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function E(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var y=(r=function(){function e(t){var a=this;(0,l.default)(this,e),g(this,"exportingConfiguration",n,this),g(this,"alertDetails",i,this),this.dirtyFn=function(){return(0,h.get)("isDirty",a)},this.noDirtyFnRegistration=!!t}return(0,s.default)(e,[{key:"init",value:function(){this.noDirtyFnRegistration||u.default.setCheckDirtyFunction(this.dirtyFn)}},{key:"loadExportingConfiguration",value:function(){var e=this;return f.default.loadExportingConfiguration().then((0,d.action)(function(t){return e.exportingConfiguration.populateData(t),e.resetDirty(),e.alertDetails.reset(),t}))}},{key:"saveExportingConfiguration",value:function(){var e=this;return f.default.saveExportingConfiguration(this.exportingConfiguration.buildDataForSave()).then(function(t){if(t.success){var a=t.exportQueueSetting;e.exportingConfiguration.populateData(a),e.resetDirty()}return t})}},{key:"setValueByKey",value:function(e,t){this.exportingConfiguration.setValueByKey(e,t),this.isDirty=!0}},{key:"resetDirty",value:function(){this.isDirty=!1}},{key:"destroy",value:function(){this.noDirtyFnRegistration||u.default.resetCheckDirtyFunction()}}]),e}(),n=E(r.prototype,"exportingConfiguration",[d.observable],{enumerable:!0,initializer:function(){return new c.default}}),i=E(r.prototype,"alertDetails",[d.observable],{enumerable:!0,initializer:function(){return new p.default}}),r);t.default=y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E=S(a(17)),y=S(a(23)),v=S(a(2)),T=S(a(3)),_=a(5);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t,a,r){a&&(0,E.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function b(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var N=(r=function(){function e(t){(0,v.default)(this,e),C(this,"isEnableAsyncExporting",n,this),C(this,"exportQueueFileStorage",i,this),C(this,"azureFileSrvceCnnctionString",o,this),C(this,"asyncExportingPath",l,this),C(this,"awsS3BucketName",s,this),C(this,"awsAccessKey",u,this),C(this,"awsSecretKey",d,this),C(this,"region",c,this),C(this,"isEnableSmartExporting",p,this),C(this,"isEnableAsyncExportEncryption",f,this),C(this,"asyncExportingInterval",h,this),C(this,"isRefreshExportingInterval",m,this),C(this,"asyncRefreshExportingInterval",g,this),t&&this.populateData(t)}return(0,T.default)(e,[{key:"populateData",value:function(e){this.isEnableAsyncExporting=e.isEnableAsyncExporting,this.asyncExportingPath=e.asyncExportingPath,this.isEnableSmartExporting=e.isEnableSmartExporting,this.isEnableAsyncExportEncryption=e.isEnableAsyncExportEncryption,this.asyncExportingInterval=e.asyncExportingInterval,this.asyncRefreshExportingInterval=e.asyncRefreshExportingInterval,this.isRefreshExportingInterval=e.asyncRefreshExportingInterval>0,this.exportQueueFileStorage=e.exportQueueFileStorage>0?e.exportQueueFileStorage:1,this.azureFileSrvceCnnctionString=e.azureFileSrvceCnnctionString,this.awsS3BucketName=e.awsS3BucketName,this.awsAccessKey=e.awsAccessKey,this.awsSecretKey=e.awsSecretKey,this.region=e.region}},{key:"setValueByKey",value:function(e,t){this[e]=t}},{key:"buildDataForSave",value:function(){return{isEnableAsyncExporting:this.isEnableAsyncExporting,asyncExportingPath:this.asyncExportingPath,isEnableSmartExporting:this.isEnableSmartExporting,isEnableAsyncExportEncryption:this.isEnableAsyncExportEncryption,asyncRefreshExportingInterval:this.asyncRefreshExportingInterval,asyncArchiveExportingInterval:this.asyncArchiveExportingInterval,asyncExportingInterval:this.asyncExportingInterval,exportQueueFileStorage:this.exportQueueFileStorage,azureFileSrvceCnnctionString:this.azureFileSrvceCnnctionString,awsS3BucketName:this.awsS3BucketName,awsAccessKey:this.awsAccessKey,awsSecretKey:this.awsSecretKey,region:this.region}}}]),e}(),n=b(r.prototype,"isEnableAsyncExporting",[_.observable],{enumerable:!0,initializer:function(){return!1}}),i=b(r.prototype,"exportQueueFileStorage",[_.observable],{enumerable:!0,initializer:function(){return 0}}),o=b(r.prototype,"azureFileSrvceCnnctionString",[_.observable],{enumerable:!0,initializer:function(){return null}}),l=b(r.prototype,"asyncExportingPath",[_.observable],{enumerable:!0,initializer:function(){return null}}),s=b(r.prototype,"awsS3BucketName",[_.observable],{enumerable:!0,initializer:function(){return null}}),u=b(r.prototype,"awsAccessKey",[_.observable],{enumerable:!0,initializer:function(){return null}}),d=b(r.prototype,"awsSecretKey",[_.observable],{enumerable:!0,initializer:function(){return null}}),c=b(r.prototype,"region",[_.observable],{enumerable:!0,initializer:function(){return null}}),p=b(r.prototype,"isEnableSmartExporting",[_.observable],{enumerable:!0,initializer:function(){return!1}}),f=b(r.prototype,"isEnableAsyncExportEncryption",[_.observable],{enumerable:!0,initializer:function(){return!1}}),h=b(r.prototype,"asyncExportingInterval",[_.observable],{enumerable:!0,initializer:function(){return 0}}),m=b(r.prototype,"isRefreshExportingInterval",[_.observable],{enumerable:!0,initializer:function(){return!1}}),g=b(r.prototype,"asyncRefreshExportingInterval",[_.observable],{enumerable:!0,initializer:function(){return 0}}),b(r.prototype,"populateData",[_.action],(0,y.default)(r.prototype,"populateData"),r.prototype),r);t.default=N,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(17)),l=_(a(23)),s=_(a(124)),u=_(a(125)),d=a(20),c=_(a(2)),p=_(a(3)),f=a(5),h=_(a(79)),m=_(a(327)),g=_(a(135)),E=_(a(16)),y=_(a(2795)),v=_(a(163)),T=a(1);function _(e){return e&&e.__esModule?e:{default:e}}function S(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function C(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var b=(r=function(){function e(t){var a=this;(0,c.default)(this,e),S(this,"reportConfiguration",n,this),S(this,"alertDetail",i,this),this.dirtyFn=function(){return(0,T.get)("reportConfiguration.isDirty",a)},this.noDirtyFnRegistration=!!t}return(0,p.default)(e,[{key:"initData",value:function(){return this.alertDetail={},this.loadData()}},{key:"loadData",value:function(){var e=this,t=[this.loadDefaultImageUrl(),this.loadDefaultTheme()];if((0,T.isNil)(this.tenantId)){var a=(0,f.action)(function(t){return t&&e.reportConfiguration.populateData(t),(0,d.resolve)(t)});t.push(h.default.getReportConfiguration().bind(this).then(a))}return(0,d.all)(t)}},{key:"loadDefaultImageUrl",value:function(){var e=this;return m.default.getDefaultImageUrl(this.tenantId).then(function(t){return(0,T.isNil)(t)||""==t?e.reportConfiguration.defaultImageUrl={value:"",tenantId:e.tenantId}:e.reportConfiguration.defaultImageUrl=t,null})}},{key:"onCancel",value:function(){return this.alertDetail={},this.loadData()}},{key:"onSave",value:function(){var e=(0,u.default)(s.default.mark(function e(){var t,a,r,n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,T.isNil)(this.tenantId)){e.next=7;break}return t=this.reportConfiguration.buildDataForSaving(),e.next=4,h.default.saveReportConfiguration(t);case 4:if(a=e.sent,(0,T.getOr)(!0,"success",a)){e.next=7;break}return e.abrupt("return",a);case 7:return e.next=9,m.default.saveDefaultImageUrl(this.reportConfiguration.defaultImageUrl);case 9:if(r=e.sent,(0,T.getOr)(!0,"success",r)){e.next=12;break}return e.abrupt("return",r);case 12:return e.next=14,m.default.saveDefaultTheme(this.reportConfiguration.defaultColorTheme);case 14:if(n=e.sent,(0,T.getOr)(!0,"success",n)){e.next=17;break}return e.abrupt("return",n);case 17:return this.reportConfiguration.resetDirty(),e.abrupt("return",{success:!0});case 19:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"onClearArchivedVersion",value:function(){return g.default.clearArchivedVersion()}},{key:"updateAlertMessage",value:function(e,t){this.alertDetail={alertType:e,message:t}}},{key:"init",value:function(){var e=this;this.disposeTenantObservation=(0,f.observe)(E.default,"tenantId",function(){E.default.silentUpdate||e.loadDefaultImageUrl()}),this.alertDetail={},this.noDirtyFnRegistration||E.default.setCheckDirtyFunction(this.dirtyFn)}},{key:"destroy",value:function(){this.disposeTenantObservation(),this.noDirtyFnRegistration||E.default.resetCheckDirtyFunction()}},{key:"doesNeedToValidateGlobalAndLocalNames",value:function(){return(0,T.isNil)(this.tenantId)&&!!E.default.currentUser.systemAdmin}},{key:"loadDefaultTheme",value:function(){var e=(0,u.default)(s.default.mark(function e(){var t;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.default.getDefaultTheme(this.tenantId);case 2:return t=e.sent,(0,T.isNil)(t)||""==t?this.reportConfiguration.defaultColorTheme={value:null,tenantId:this.tenantId}:this.reportConfiguration.defaultColorTheme=t,e.abrupt("return",(0,d.resolve)(null));case 5:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"tenantId",get:function(){return E.default.getTenantId()}}]),e}(),n=C(r.prototype,"reportConfiguration",[f.observable],{enumerable:!0,initializer:function(){return new y.default}}),i=C(r.prototype,"alertDetail",[f.observable],{enumerable:!0,initializer:function(){return new v.default}}),C(r.prototype,"tenantId",[f.computed],(0,l.default)(r.prototype,"tenantId"),r.prototype),C(r.prototype,"initData",[f.action],(0,l.default)(r.prototype,"initData"),r.prototype),C(r.prototype,"loadData",[f.action],(0,l.default)(r.prototype,"loadData"),r.prototype),C(r.prototype,"onCancel",[f.action],(0,l.default)(r.prototype,"onCancel"),r.prototype),C(r.prototype,"onSave",[f.action],(0,l.default)(r.prototype,"onSave"),r.prototype),r);t.default=b,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f=b(a(17)),h=b(a(23)),m=b(a(2)),g=b(a(3)),E=a(5),y=b(a(22)),v=b(a(53)),T=b(a(780)),_=a(109),S=a(1),C=b(a(16));function b(e){return e&&e.__esModule?e:{default:e}}function N(e,t,a,r){a&&(0,f.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function A(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var R=(0,v.default)((n=function(){function e(t){(0,m.default)(this,e),N(this,"enforceVersionHistory",i,this),N(this,"numOfArchivedVersionToKeep",o,this),N(this,"removeArchivedVersions",l,this),N(this,"recurrentReportSetting",s,this),N(this,"defaultImageUrl",u,this),N(this,"globalCategoryName",d,this),N(this,"localCategoryName",c,this),N(this,"defaultColorTheme",p,this),this.numOfArchivedVersionToKeepDefault=0,t&&this.populateData(t)}return(0,g.default)(e,[{key:"resetData",value:function(){this.resetDirty(),this.defaultColorTheme.value=void 0}},{key:"populateData",value:function(e){this.enforceVersionHistory=e.enforceVersionHistory,this.numOfArchivedVersionToKeep=e.numOfArchivedVersionToKeep,this.numOfArchivedVersionToKeepDefault=e.numOfArchivedVersionToKeepDefault,this.removeArchivedVersions=e.removeArchivedVersions,this.globalCategoryName=e.globalCategoryName||T.default.DEFAULT_VALUES.GLOBAL_NAME,this.localCategoryName=e.localCategoryName||T.default.DEFAULT_VALUES.LOCAL_NAME,this.populateRecurrentReport(e.recurrentReportSetting),this.resetDirty()}},{key:"populateRecurrentReport",value:function(e){this.recurrentReportSetting.once=e.once,this.recurrentReportSetting.recurrence=e.recurrence,this.recurrentReportSetting.recurrenceType=e.recurrenceType,this.recurrentReportSetting.occurValue=e.occurValue,this.setupDate(e.once,e)}},{key:"setupDate",value:function(e,t){var a=(t=t||{}).startDate?(0,y.default)(t.startDate).format(C.default.currentUser.dateFormat):null;e?(this.recurrentReportSetting.atDate=a,this.recurrentReportSetting.atTime=t.startTime||null,this.recurrentReportSetting.startDate=null,this.recurrentReportSetting.startTime=null):(this.recurrentReportSetting.startDate=a,this.recurrentReportSetting.startTime=t.startTime||null,this.recurrentReportSetting.atDate=null,this.recurrentReportSetting.atTime=null)}},{key:"buildDataForSaving",value:function(){var e=this.recurrentReportSetting,t=e.once?e.atDate:e.startDate,a=e.once?e.atTime:e.startTime,r=C.default.currentUser.dateFormat,n=(0,y.default)(t,r).isValid()?(0,y.default)(t,r).format(_.DATE_FORMAT):t;return{enforceVersionHistory:this.enforceVersionHistory,numOfArchivedVersionToKeep:this.numOfArchivedVersionToKeep,removeArchivedVersions:this.removeArchivedVersions,recurrentReportSetting:{once:e.once,recurrence:e.recurrence,startDate:n,startTime:a,recurrenceType:e.recurrenceType,occurValue:e.occurValue},globalCategoryName:this.globalCategoryName,localCategoryName:this.localCategoryName}}},{key:"setValueByKey",value:function(e,t){switch(e){case"enforceVersionHistory":this.enforceVersionHistory=t;break;case"numOfArchivedVersionToKeep":this.numOfArchivedVersionToKeep=parseInt(t)||0;break;case"removeArchivedVersions":this.removeArchivedVersions=t;break;case"occurValue":this.recurrentReportSetting.occurValue=parseInt(t)||0;break;case"startDate":this.recurrentReportSetting.startDate=t;break;case"startTime":this.recurrentReportSetting.startTime=t;break;case"atDate":this.recurrentReportSetting.atDate=t;break;case"atTime":this.recurrentReportSetting.atTime=t;break;case"defaultImageUrl":this.defaultImageUrl.value=t;break;case"globalCategoryName":this.globalCategoryName=t;break;case"localCategoryName":this.localCategoryName=t;break;case"defaultColorTheme":this.defaultColorTheme.value=t}this.markDirty()}},{key:"setTypeArchived",value:function(e,t){switch(e){case"once":this.recurrentReportSetting.once=!0,this.recurrentReportSetting.recurrence=!1;break;case"recurrence":this.recurrentReportSetting.once=!1,this.recurrentReportSetting.recurrence=!0}this.setupDate("once"===e),this.markDirty()}},{key:"resetNumOfArchivedVersionToKeep",value:function(){this.numOfArchivedVersionToKeep=this.numOfArchivedVersionToKeepDefault}},{key:"setNumOfArchivedVersionToKeep",value:function(e){var t=parseInt(e)||0;t>=0&&t<=20&&(this.numOfArchivedVersionToKeep=t)}},{key:"setRecurrenceType",value:function(e,t){this.recurrentReportSetting.recurrenceType=e,this.markDirty()}},{key:"doesDuplicateGlobalAndLocalName",value:function(){return!!this.globalCategoryName&&(0,S.isEqual)((0,S.trim)(this.globalCategoryName),(0,S.trim)(this.localCategoryName))}}]),e}(),i=A(n.prototype,"enforceVersionHistory",[E.observable],{enumerable:!0,initializer:function(){return!1}}),o=A(n.prototype,"numOfArchivedVersionToKeep",[E.observable],{enumerable:!0,initializer:function(){return 0}}),l=A(n.prototype,"removeArchivedVersions",[E.observable],{enumerable:!0,initializer:function(){return!1}}),s=A(n.prototype,"recurrentReportSetting",[E.observable],{enumerable:!0,initializer:function(){return{once:!1,recurrence:!1,startDate:null,startTime:null,recurrenceType:0,occurValue:0,atDate:null,atTime:null}}}),u=A(n.prototype,"defaultImageUrl",[E.observable],{enumerable:!0,initializer:function(){return{value:""}}}),d=A(n.prototype,"globalCategoryName",[E.observable],{enumerable:!0,initializer:function(){return T.default.DEFAULT_VALUES.GLOBAL_NAME}}),c=A(n.prototype,"localCategoryName",[E.observable],{enumerable:!0,initializer:function(){return T.default.DEFAULT_VALUES.LOCAL_NAME}}),p=A(n.prototype,"defaultColorTheme",[E.observable],{enumerable:!0,initializer:function(){return{value:void 0}}}),A(n.prototype,"resetData",[E.action],(0,h.default)(n.prototype,"resetData"),n.prototype),A(n.prototype,"populateData",[E.action],(0,h.default)(n.prototype,"populateData"),n.prototype),A(n.prototype,"populateRecurrentReport",[E.action],(0,h.default)(n.prototype,"populateRecurrentReport"),n.prototype),A(n.prototype,"setupDate",[E.action],(0,h.default)(n.prototype,"setupDate"),n.prototype),A(n.prototype,"setValueByKey",[E.action],(0,h.default)(n.prototype,"setValueByKey"),n.prototype),A(n.prototype,"setTypeArchived",[E.action],(0,h.default)(n.prototype,"setTypeArchived"),n.prototype),A(n.prototype,"setRecurrenceType",[E.action],(0,h.default)(n.prototype,"setRecurrenceType"),n.prototype),r=n))||r;t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=g(a(17)),s=g(a(23)),u=g(a(2)),d=g(a(3)),c=g(a(1334)),p=g(a(545)),f=g(a(778)),h=a(5),m=g(a(163));function g(e){return e&&e.__esModule?e:{default:e}}function E(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function y(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var v=(r=function(){function e(){(0,u.default)(this,e),E(this,"model",n,this),E(this,"clonedModel",i,this),E(this,"alertDetails",o,this),this.init()}return(0,d.default)(e,[{key:"init",value:function(){this.model=new f.default,this.clonedModel=this.model.clone()}},{key:"checkPredictionServerStatus",value:function(e){return c.default.checkMLServerSettings(e)}},{key:"checkMLDBStatus",value:function(e,t){return c.default.checkMLDBSettings(e,t)}},{key:"saveMLSettings",value:function(){var e={ServerIp:"",ConnectionString:""};return e.ServerIp=this.model.mlServerIp,e.ConnectionString=this.model.dbConnectionStringInput,c.default.saveMLSettings(e).then(function(e){return JSON.parse(e)})}},{key:"getpredictionServerDetails",value:function(){var e=this;return c.default.getMLSettingsDetail().then(function(t){t&&(e.model.predictionServerSuccess=!0),e.model.mlServerIp=t.perdictionServerIP})}},{key:"getMLDBsettings",value:function(){var e=this;return c.default.getDBSettingsDetail().then(function(t){"string"==typeof t&&(t=JSON.parse(t)),t.success&&(e.model.dbServerSuccess=!0,e.model.dbConnectionStringInput=t.ConnectionString),e.model.dbServerHasLoaded=!0})}},{key:"saveConfigureforNLQ",value:function(e){return p.default.saveConfigureforNLQ(e)}},{key:"getActiveNLQSchemaInfo",value:function(){return p.default.getActiveNLQSchemaInfo()}},{key:"getConfigureNLQStatus",value:function(){return p.default.getConfigureNLQStatus()}},{key:"canSaveMLSettings",get:function(){return this.model.mlDBConnectionStatus&&this.model.mlDBConnectionStatus.success&&this.model.predictionServerStatus&&this.model.predictionServerStatus.success}}]),e}(),n=y(r.prototype,"model",[h.observable],{enumerable:!0,initializer:function(){return null}}),i=y(r.prototype,"clonedModel",[h.observable],{enumerable:!0,initializer:function(){return null}}),o=y(r.prototype,"alertDetails",[h.observable],{enumerable:!0,initializer:function(){return new m.default}}),y(r.prototype,"canSaveMLSettings",[h.computed],(0,s.default)(r.prototype,"canSaveMLSettings"),r.prototype),y(r.prototype,"init",[h.action],(0,s.default)(r.prototype,"init"),r.prototype),y(r.prototype,"checkPredictionServerStatus",[h.action],(0,s.default)(r.prototype,"checkPredictionServerStatus"),r.prototype),y(r.prototype,"checkMLDBStatus",[h.action],(0,s.default)(r.prototype,"checkMLDBStatus"),r.prototype),y(r.prototype,"saveMLSettings",[h.action],(0,s.default)(r.prototype,"saveMLSettings"),r.prototype),y(r.prototype,"getpredictionServerDetails",[h.action],(0,s.default)(r.prototype,"getpredictionServerDetails"),r.prototype),y(r.prototype,"getMLDBsettings",[h.action],(0,s.default)(r.prototype,"getMLDBsettings"),r.prototype),y(r.prototype,"saveConfigureforNLQ",[h.action],(0,s.default)(r.prototype,"saveConfigureforNLQ"),r.prototype),y(r.prototype,"getActiveNLQSchemaInfo",[h.action],(0,s.default)(r.prototype,"getActiveNLQSchemaInfo"),r.prototype),y(r.prototype,"getConfigureNLQStatus",[h.action],(0,s.default)(r.prototype,"getConfigureNLQStatus"),r.prototype),r);t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=C(a(6)),l=C(a(2)),s=C(a(3)),u=C(a(7)),d=C(a(8)),c=a(0),p=C(c),f=C(a(418)),h=C(a(4)),m=a(607),g=a(43),E=C(a(100)),y=C(a(2799)),v=C(a(37)),T=a(1),_=a(5),S=C(a(16));function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,h.default)(y.default)((i=n=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return a.renderChangedIcon=function(e){var t=a.props.localization;return e.isDirty&&e.key!==E.default.DataSetup?p.default.createElement("span",{className:"icon-attention warning-color",title:t.getText("CONNECTION_DETECT_CHANGE_ICON_TOOLTIP")}):null},0===e.menu.length?e.router.push(v.default.getNoPermissionUrl()):e.updateActiveLink((0,T.head)(e.menu)),a.systemModeObserver=(0,_.observe)(S.default,"systemMode",function(){e.updateMenu(e.getLeftMenu())}),a.saveObserver=(0,_.observe)(S.default,"detectChangeCount",function(){e.updateMenu(e.getLeftMenu())}),a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentWillUnmount",value:function(){this.systemModeObserver(),this.saveObserver()}},{key:"render",value:function(){var e=g.Integration?m.licenseInfoInstance.integrationActiveLicense:m.licenseInfoInstance.isActiveLicense,t=this.props.store.contextMenu,a=t.activeLink,r=t.menuStatus;return p.default.createElement(f.default,{dataSource:this.props.menu,activeKey:a,enabled:r&&e,onSelected:this.props.changeActiveKey,renderChangedIcon:this.renderChangedIcon})}}]),t}(c.Component),n.propTypes={store:c.PropTypes.object.isRequired,hasSetupDatabase:c.PropTypes.bool},r=i))||r;t.default=b,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(6)),n=p(a(2)),i=p(a(3)),o=p(a(7)),l=p(a(8)),s=a(0),u=p(s),d=p(a(10)),c=a(1057);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){var e,a,i,l;(0,n.default)(this,t);for(var s=arguments.length,u=Array(s),d=0;d
'};(0,c.initTooltip)(this.linkRef,t),(0,c.updateTooltip)(this.linkRef,e.tooltip)}}},{key:"componentWillUnmount",value:function(){this.props.item.hoverShowTooltip&&(0,c.destroyTooltip)(this.linkRef)}},{key:"render",value:function(){var e=this.props,t=e.item,a=e.handleClick,r=e.activeKey,n=e.enabled,i=t.items?u.default.createElement("i",{className:"fontello-icon icon-toggle"}):null,o=!n&&t.key!==r,l=(0,d.default)({active:t.key===r,disabled:o,"enable-hover":t.hoverShowTooltip});return u.default.createElement("a",{onClick:a,className:l,"data-name":t.key,title:t.title,ref:this.setLinkRef},u.default.createElement("i",{className:t.icon}),u.default.createElement("span",{className:"izenda-MenuItem-label"},t.title,this.props.renderChangedIcon&&this.props.renderChangedIcon(t)),i)}}]),t}(s.Component);t.default=f,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(90)),n=a(11),i=l(a(16)),o=a(1);function l(e){return e&&e.__esModule?e:{default:e}}function s(){var e=this.store.contextMenu.contextMenu,t=this.hasSetupDatabase,a=this.authorization;if(!t)return(0,o.filter)({key:"setupAndLicense"},e);var n=[];return(0,o.forEach)(function(e){if(e.items){var t=(0,o.remove)(function(e){return!u(e,a)||!d(e,a)},e.items);if(t.length>0){t=function(e){return(0,o.uniqBy)(function(e){return(0,r.default)((0,o.pick)(["key"],e))},e)}(t);var i=(0,o.clone)(e);i.items=t,n.push(i)}}else d(e,a)&&u(e,a)&&!function(e,t){return e.integrationCheck&&t.isIntegrationMode()}(e,a)&&n.push(e)},e),n}function u(e,t){var a=e.forSystemAdmin,r=e.forSystemUser,n=e.forMultipleTenant,o=e.permissionKeys,l=e.permissionOperator,s=i.default.isSingleTenantMode,u=i.default.currentUser,d=u.systemAdmin,c=u.isSystemUser;if(!t.isCompleteLoad)return!1;if(a&&!d)return!1;if(r&&!c)return!1;if(n&&!s)return!1;if(o)if(l){if(!t.checkPrivileges(o,l))return!1}else if(!t.checkPrivileges(o))return!1;return!0}function d(e,t){var a=e.licenseKey;return!a||t.checkLicense(a)}t.default=(0,n.compose)((0,n.withProps)({getLeftMenu:s}),(0,n.withHandlers)({changeActiveKey:(0,o.curry)(function(e,t){var a=e.store,r=e.store.contextMenu;r.activeLink!==t&&e.confirmDirtyForm(i.default.isDirty,{onConfirmDirtyForm:i.default.onOkDirtyForm}).then(function(){a.checkSettingLevel(t),r.changeActiveLink(t)})}),updateActiveLink:(0,o.curry)(function(e,t){t&&(e.store.contextMenu.contextMenuActiveLink=t.key,e.store.contextMenu.activeLink=(0,o.isNil)(t.items)?t.key:t.items[0].key)})}),(0,n.withState)("menu","updateMenu",function(e){return s.call(e)})),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=x(a(6)),l=x(a(2)),s=x(a(3)),u=x(a(7)),d=x(a(8)),c=a(0),p=x(c),f=x(a(4)),h=x(a(2801)),m=x(a(2811)),g=x(a(2853)),E=x(a(2878)),y=x(a(2921)),v=x(a(2966)),T=x(a(2987)),_=x(a(3049)),S=x(a(3063)),C=x(a(3074)),b=x(a(3078)),N=x(a(3082)),A=x(a(3085)),R=x(a(3088)),O=x(a(3094)),I=x(a(3132)),D=x(a(3145)),P=x(a(3148)),L=x(a(316)),M=x(a(3154)),F=x(a(3197)),k=a(1);function x(e){return e&&e.__esModule?e:{default:e}}var w=(0,f.default)()((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0&&void 0!==arguments[0])||arguments[0];return t.confirmMessage("info",n.getText("LICENSE_CHECKER_MESSAGE_CHANGE_CONNECTION")).then(a.setupDatabase.bind(a,e)).then(function(e){if(!e.success){var r=c(d("messages"),p,d("messages"),p)(e);return t.confirmMessage("error",r).then(function(){return a.getConnectionInfo()})}return a.getConnectionInfo()})}i.validate("connectionString").then(function(e){return e?function(){if(a.licenseInfoStore.licenseInfo.isActiveLicense&&a.databaseConfiguration.differentDatabase)return t.confirmFn("Confirmation",{description:o.MESSAGE.MG07}).then(function(){return l()});return l(!1)}():function(){if(a.databaseConfiguration.hasValidConnection&&!f(a.databaseConfiguration.connectionInfo.connectionString))return t.confirmMessage("info",o.MESSAGE.MG08).then(function(){return i.reset("connectionString"),a.databaseConfiguration.resetDataInfo(),a.getConnectionInfo()});return null}()}).finally(r.endLoading.bind(r))},render:function(){var e=this.props.store,t=this.props.localization;return r.createElement(n,{header:o.Description,className:"panel-default panel-btn-wrapper"},r.createElement(i,{store:e}),r.createElement("fieldset",null,r.createElement("div",{className:"izenda-ActionBarRight u_textRight"},r.createElement("a",{className:"button-mail",href:l.EMAIL.connectionStringAssistance},t.getText("COMMON_LABEL_SENDEMAIL")),r.createElement("button",{className:"btn btn-primary",ref:"connectButton",onClick:this.onClickConnectButton},t.getText("COMMON_LABEL_CONNECT")))))}}),e.exports=s()(h)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f;r=a(0),n=a(4),i=a(24),o=a(29),l=a(781),s=a(49),u=a(25)()(a(782)),d=a(1),c=d.merge,p=d.partial,f=r.createClass({displayName:"ConnectionStringForm",propTypes:{store:r.PropTypes.object.isRequired},render:function(){var e=this.props.store,t=e.databaseConfiguration,a=t.connectionInfo,n=t.validatedConnection,l=(t.isValidConnection,i.notifyChange),d=i.notify,f=this.props.localization;return r.createElement("fieldset",{className:"row"},r.createElement("div",{className:"col-md-3"},function(){return r.createElement("div",{className:"form-group"},r.createElement("label",{className:"validation required"},f.getText("LICENSE_CHECKER_LABEL_DATA_SERVER_TYPE")),r.createElement(o,{options:t.supportedDatabaseType||[],labelField:"name",valueField:"id",value:a.serverTypeId,onChange:function(e){this.props.validation.reset(),t.updateServerType(e.value)}.bind(this),ref:"dbServerType"}))}.bind(this)()),r.createElement("div",{className:"col-md-9"},function(){var o=this.props.localization,f=c(s.CONNECTION_STRING_CONSTRAINT,{action:function(){return e.testConnection.bind(e)}},{});return r.createElement("div",{className:"form-group"},r.createElement("label",{className:"control-label validation required"},o.getText("LICENSE_CHECKER_LABEL_CONNECTION_STRING")),r.createElement("a",{className:"connection-builder pull-right",onClick:this.showConnectionStringBuilder},o.getText("LICENSE_CHECKER_LABEL_CONNECTION_BUILDER"),r.createElement("i",{className:"icon-flash"})),r.createElement(u,{className:"form-control",onReset:d(p(t.updateConnectionString.bind(t),"")),onFocus:this.onFocus,onChange:l(t.updateConnectionString.bind(t),i.INPUT),value:a.connectionString,secure:n,validations:f,field:"connectionString",maxLength:"MAX",autoComplete:"off"}))}.bind(this)()))},onFocus:function(){this.props.validation.reset()},showConnectionStringBuilder:function(e){e.preventDefault();var t=this.props.store.databaseConfiguration;this.props.openPopup(l,{onOk:function(e){return this.props.validation.reset(),t.updateConnectionString(e),!0}.bind(this),serverType:this.props.store.databaseConfiguration.serverTypeName})}}),e.exports=n()(f)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={get CONNECTION_STRING_CONSTRAINT(){return{presence:{presence:!0,message:i.default.getText("LICENSE_CHECKER_MESSAGE_CONNECTION_STRING_CONSTRAINT")}}},get SERVER_NAME_CONSTRAINT(){return{presence:{presence:!0,message:i.default.getText("CONNECTION_STRING_BUILDER_REQUIRED_SERVER_NAME")}}},get DATABASE_CONSTRAINT(){return{presence:{presence:!0,message:i.default.getText("CONNECTION_STRING_BUILDER_REQUIRED_DATABASE")}}},get AUTHENTICATION_TYPES(){return{Standard:{value:i.default.getText("CONNECTION_STRING_BUILDER_STANDARD_AUTHENTICATION"),displayPattern:"{0} "+i.default.getText("CONNECTION_STRING_BUILDER_TEXT_AUTHENTICATION"),connectionStringPattern:"server={0};database={1};User Id={2};Password={3};"},Trusted:{value:i.default.getText("CONNECTION_STRING_BUILDER_TRUSTED_AUTHENTICATION"),displayPattern:"Windows "+i.default.getText("CONNECTION_STRING_BUILDER_TEXT_AUTHENTICATION"),connectionStringPattern:"server={0};database={1};Trusted_Connection=True;"}}}},e.exports=t.default},function(e,t,a){"use strict";!function(){a(60);var t=a(0),r=a(28),n=a(127),i=a(368),o=(a(25),a(4)),l=a(2806),s=a(16),u=a(1).isEmpty,d=t.createClass({displayName:"LicenseValidation",propTypes:{store:t.PropTypes.object.isRequired,item:t.PropTypes.object.isRequired},componentWillReceiveProps:function(e){this.props.isValidConnection!=e.isValidConnection&&this.resetLicenseValidation()},getLicenseInfo:function(){return this.props.store.licenseInfo||{}},render:function(){var e=this.props.item,a=this.props,o=a.store,u=a.localization;return t.createElement(r,{header:i.Description,className:"panel-default panel-btn-wrapper"},t.createElement(l,{store:o,validatedConnection:a.validatedConnection,item:e}),t.createElement("fieldset",{className:"form-horizontal",disabled:a.validatedConnection?null:"disabled"},t.createElement("div",{className:"izenda-ActionBarRight u_textRight"},s.currentUser.systemAdmin&&t.createElement("span",{className:"button-export",onClick:this.exportPerformanceStatisticsTrend},u.getText("COMMON_LABEL_DOWNLOADFILE")),t.createElement("a",{className:"button-mail",href:n.EMAIL.licenseAssistance},u.getText("COMMON_LABEL_SENDEMAIL")),t.createElement("button",{className:"btn btn-primary",disabled:!e.enableValidateButton,onClick:this.onValidation},u.getText("COMMON_LABEL_VALIDATE")))))},resetLicenseValidation:function(){var e=this.props.validation;e.reset("licenseKey"),e.reset("tokenKey")},onValidation:function(e){e.preventDefault();var t=this,a=this.props,r=a.store,n=this.getLicenseInfo(),i=a.loader;i.startLoading();var o=this.props.validation,l=n.licenseOnlineMode?"licenseKey":["licenseKey","tokenKey"];o.validate(l).then(function(e){return e?r.validateLicense():null}).then(function(e){if(!u(e)){var i=e[0]&&e[0].messages&&e[0].messages[0];!n.isValidLicense&&n.hasValidLicense?a.confirmMessage("info",i).then(function(){return t.resetLicenseValidation(),r.getLicenseInformation()}):o.updateErrors(e)}return null}).finally(i.endLoading.bind(i))},exportPerformanceStatisticsTrend:function(e){this.props.store.exportPerformanceStatisticsTrend()}});e.exports=o()(d)}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=T(a(6)),l=T(a(2)),s=T(a(3)),u=T(a(7)),d=T(a(8));a(60);var c=a(0),p=T(c),f=T(a(13)),h=T(a(10)),m=T(a(12)),g=T(a(4)),E=T(a(368)),y=T(a(25)),v=T(a(782));function T(e){return e&&e.__esModule?e:{default:e}}var _=(0,y.default)()(v.default),S=(0,g.default)()((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0?p.default.createElement("div",{className:"form-group"},p.default.createElement("div",{className:"col-md-offset-2 col-md-10"},p.default.createElement("div",{className:"alert alert-info",role:"alert"},String.format(E.default.MESSAGE.MG07a,String.formatDate(e.startDate),String.formatDate(e.endDate))))):null}},{key:"updateLicenseMode",value:function(e){this.updateLicenseInfo("licenseOnlineMode",e),this.updateLicenseInfo("licenseKey",""),this.updateLicenseInfo("tokenKey","")}},{key:"updateLicenseInfo",value:function(e,t){this.props.item.updateLicenseInfoByKey(e,t)}},{key:"resetLicenseValidation",value:function(){var e=this.props.validation;e.reset("licenseKey"),e.reset("tokenKey")}}]),t}(c.Component),n.propTypes={store:f.default.object.isRequired,item:f.default.object.isRequired},r=i))||r;t.default=S,e.exports=t.default},function(e,t,a){"use strict";!function(){a(60);a(9).observer;var t=a(10),r=a(4),n=a(15),i=a(0),o=a(28),l=a(1323),s=function(e){var t=e.localization;return i.createElement(n,null,i.createElement(n.Row,null,i.createElement(n.Col,{cols:2},i.createElement("strong",null,t.getText("LICENSE_CHECKER_LABEL_LICENSE_INFORMATION"))),i.createElement(n.Col,{cols:10},i.createElement("span",null,e.productVersion))))},u=i.createClass({displayName:"LicenseInfo",propTypes:{item:i.PropTypes.object.isRequired,store:i.PropTypes.object},render:function(){var e=this.props.item,a=this.props.localization;if(!e.isValidLicense)return null;if(e.numberOfDayToValid>0)return null;var r={component:s,productVersion:l.VERSION,localization:a};return i.createElement(o,{header:r,className:t("panel-default","izenda-LicenseInfo",{"disabled-elm":!this.props.validatedConnection})},function(){var t=this.props.localization;return e.licenseOnlineMode||!e.previousStartDate?i.createElement("div",{className:"padding-t current-module"},this.renderLicenseInfo(t.getText("LICENSE_CHECKER_LABEL_CURRENT_DURATION"),[e.startDate,e.licenseEndDate],t.getText("LICENSE_CHECKER_LABEL_CURRENT_MODULE"),e.modules,"current-module")):i.createElement("div",{className:"row flex-layout"},i.createElement("div",{className:"col-md-6 padding-t previous-module"},this.renderLicenseInfo(t.getText("LICENSE_CHECKER_LABEL_PREVIOUS_DURATION"),[e.previousStartDate,e.previousEndDate],t.getText("LICENSE_CHECKER_LABEL_PREVIOUS_MODULE"),e.previousModules)),i.createElement("div",{className:"col-md-6 padding-t current-module"},this.renderLicenseInfo(t.getText("LICENSE_CHECKER_LABEL_NEXT_DURATION"),[e.startDate,e.endDate],t.getText("LICENSE_CHECKER_LABEL_NEXT_MODULE"),e.modules)))}.bind(this)())},renderLicenseInfo:function(e,t,a,r){return r=r||[],t[0]||t[1]?i.createElement("section",null,i.createElement("div",{className:"row"},i.createElement("label",{className:"col-md-2"},e),i.createElement("span",{className:"col-md-10"},String.formatDate(t[0])," - ",String.formatDate(t[1]))),i.createElement("div",{className:"row"},i.createElement("label",{className:"col-md-2"},a),i.createElement("div",{className:"col-md-10 modules"},r.map(function(e,t){return i.createElement("div",{key:t,className:"module"},i.createElement("i",{className:"icon-ok success-color"}),e.name)})))):null}});e.exports=r()(u)}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),n=a(4),i=a(15),o=a(30),l=a(389),s=a(16),u=a(109).PROVISIONING_STATUS,d=6e4,e.exports=n()(function(e){var t=e.loader,a=this.props.localization,n=s.canProvisioning;return r.createElement(i,{className:"u-bgWhite u_paddingAll"},r.createElement(i.Row,null,r.createElement(i.Col,{cols:2},r.createElement("span",{className:"text-bold u_controlHeight"},a.getText("LICENSE_CHECKER_LABEL_IMPORT_MAP_DATA"))),r.createElement(i.Col,{cols:10},r.createElement(o,{disabled:!n,className:"u_marginRight",label:a.getText("LICENSE_CHECKER_LABEL_PROVISION_MAP_DATA"),onClick:function(){t.startLoading(),l.importMapData().finally(t.endLoading.bind(t));var e=setInterval(function(){l.getProvisioningStatus().then(function(t){t!==u.IMPORTING&&window.clearInterval(e)})},d)}}),r.createElement("a",null,r.createElement("span",{className:"icon-info-circled",title:a.getText("LICENSE_CHECKER_LABEL_PROVISION_MAP_DATA_TOOLTIP")})))))})},function(e,t,a){"use strict";!function(){a(60);var t=a(0),r=(a(10),a(4)),n=a(193),i=a(2810),o=a(28),l=a(19),s=a(15),u=t.createClass({displayName:"SystemModeSetting",propTypes:{store:t.PropTypes.object.isRequired},render:function(){var e=this.props,a=e.store.systemModeSetting,r=e.localization;return t.createElement(o,{header:r.getText("LICENSE_CHECKER_SYSTEM_MODE_DESCRIPTION"),className:"panel-default izenda-LicenseInfo"},t.createElement(s,{className:"u-bgWhite u_paddingAll"},t.createElement(s.Row,null,t.createElement(s.Col,{cols:2},t.createElement("span",{className:"u_controlHeight"},r.getText("LICENSE_CHECKER_LABEL_SYSTEM_MODE"))),t.createElement(s.Col,{cols:10},t.createElement(l,{type:"radio",checked:a.isSingleMode,onChange:e.swithToSingleTenant,value:n.SYSTEM_MODE}),t.createElement("span",{className:"u_marginLeftInnerSpace"},r.getText("LICENSE_CHECKER_LABEL_SINGLE_TENANT")),"  ",t.createElement(l,{type:"radio",checked:!a.isSingleMode,onChange:e.switchToMultiTenant,value:n.TENANT_MODE}),t.createElement("span",{className:"u_marginLeftInnerSpace"},r.getText("LICENSE_CHECKER_LABEL_MULTI_TENANT")))),!a.isSingleMode&&t.createElement(s.Row,null,t.createElement(s.Col,{cols:2},t.createElement("span",{className:"u_controlHeight"},r.getText("LICENSE_CHECKER_LABEL_USER_ID_PROPERTIES"))),t.createElement(s.Col,{cols:10},t.createElement(l,{type:"checkbox",onChange:e.changeAllowDuplicate,checked:a.allowDuplicateUser}),t.createElement("span",{className:"u_marginLeftInnerSpace"},r.getText("LICENSE_CHECKER_LABEL_ALLOW_DUPLICATE_USER"))))))}});e.exports=r(i)(u)}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(11).compose,n=a(11).withHandlers,i=a(193),o=a(1).curry,l=r(n({swithToSingleTenant:o(function(e,a){var r=e.store.systemModeSetting;return e.confirmFn("Confirmation",{description:e.localization.getText("LICENSE_CHECKER_MESSAGE_CONFIRM_MULTI_TO_SINGLE")}).then(function(){var a=t.toJS(r);return a.systemMode=i.SYSTEM_MODE,e.store.saveSystemSetting(a)}).then(function(t){var a=t.messages;return t.success?r.switchToSingle():e.confirmMessage("error",a[0].messages[0]),null})}),switchToMultiTenant:o(function(e,a){var r=e.store.systemModeSetting;return e.confirmFn("Confirmation",{description:e.localization.getText("LICENSE_CHECKER_MESSAGE_CONFIRM_SINGLE_TO_MULTI")}).then(function(){var a=t.toJS(r);return a.systemMode=i.TENANT_MODE,a.allowDuplicateUser=!0,e.store.saveSystemSetting(a)}).then(function(t){var a=t.messages;return t.success?r.switchToMulti():e.confirmMessage("error",a[0].messages[0]),null})}),changeAllowDuplicate:o(function(e,a){var r=a.target.checked,n=e.store.systemModeSetting,i=t.toJS(n);return i.allowDuplicateUser=r,e.store.saveSystemSetting(i).then(function(t){var a=t.messages;return t.success?n.updateAllowDuplicateUser(r):e.confirmMessage("error",a[0].messages[0]),null})})}));e.exports=l}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(a(0)),n=c(a(2812)),i=c(a(2815)),o=c(a(2851)),l=c(a(250)),s=c(a(26)),u=c(a(4)),d=c(a(2852));function c(e){return e&&e.__esModule?e:{default:e}}t.default=(0,u.default)(d.default)(function(e){var t=e.store;return r.default.createElement("section",{className:"izenda-TenantManagement izenda-TableLayout"},r.default.createElement(l.default,{minWidth:t.getBundle().MIDDLE_MIN_WIDTH,maxWidth:t.getBundle().MIDDLE_MAX_WIDTH},r.default.createElement("div",{className:"u_fullHeight u-posRelative u-bgWhite izenda-Middle-section"},r.default.createElement(o.default,{store:t}),r.default.createElement("div",{className:"izenda-MiddlePanel-content izenda-TenantList-content"},r.default.createElement(s.default,null,r.default.createElement(n.default,{store:t}))))),r.default.createElement(i.default,{store:t}))}),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(169),i=a(2813),o=a(4),l=r.createClass({displayName:"TenantList",propTypes:{store:r.PropTypes.object.isRequired},componentDidMount:function(){var e=this.props,t=e.loader,a=e.store;t.startLoading(),a.getModulesOfLicense().then(a.getTenantList.bind(a)).finally(t.endLoading.bind(t))},render:function(){var e=this.props.store,t=e.tenantList.filterTenants;return r.createElement(n,null,t.map(function(t){return r.createElement(i,{tenantInfo:t,key:t.id,store:e})}))}}),e.exports=o()(l)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(0),n=a(4),i=a(10),o=a(69),l=a(336),s=a(15),u=a(2814),d=a(43),c=r.createClass({displayName:"TenantItem",propTypes:{tenantInfo:r.PropTypes.object.isRequired},render:function(){var e=this.props,t=e.store,a=e.tenantInfo,n=i("item","truncate",{selected:e.tenantInfo.isSelected}),u=a.active?l.TENANT_STATE.DEACTIVATE:l.TENANT_STATE.ACTIVATE,c=e.authorization,p=e.authorizationConstants.PERMISSION_KEY,f=c.checkPrivileges([p.TenantSetupActionsEdit]),h=c.checkPrivileges([p.TenantSetupActionsDel])&&!d.Integration;return r.createElement("div",{className:n,onClick:e.handleSelected},r.createElement(s,null,r.createElement(s.Row,null,r.createElement(s.Col,{cols:6,className:"overflow-text"},r.createElement(o,{highlight:t.tenantList.filterText,text:a.displayName,tooltip:a.displayName})),r.createElement(s.Col,{cols:6},r.createElement("div",{className:"pull-right"},f&&r.createElement("a",{className:i("izenda-TenantStatus",{"izenda-TenantStatus-Deactivate":a.active}),onClick:e.clickVisible},u),h&&r.createElement("span",{className:"icon-cancel",onClick:e.clickDelete}))))))}}),e.exports=n(u)(c)},function(e,t,a){"use strict";!function(){a(0);var t=a(11).compose,r=a(11).withHandlers,n=a(44),i=a(1),o=i.curry,l=i.isNil,s=t(r({clickDelete:o(function(e,t){t.stopPropagation();var a=e.store,r=e.loader,n=e.validation;e.confirmFn("Confirmation",{description:a.getBundle().MESSAGE.DELETE}).then(function(){r.startLoading(),a.deleteTenant(e.tenantInfo.id).then(function(e){l(e.messages)||n.updateErrors(e.messages)}).finally(r.endLoading.bind(r))})}),clickVisible:o(function(e,t){t.preventDefault(),t.stopPropagation();var a=e.store,r=e.tenantInfo,n=a.getBundle().MESSAGE.DEACTIVATE;r.active?e.confirmFn("Confirmation",{description:n}).then(a.deactiveTenant.bind(a,r)):a.activeTenant(r)}),handleSelected:o(function(e,t){var a=e.loader,r=e.store;a.startLoading(),e.store.setAlertMessage(n.EMPTY_MESSAGE.type,n.EMPTY_MESSAGE.message),e.confirmDirtyForm(r.showingTenantCloned.hasDirty).then(function(){return e.validation.reset(),e.store.loadTenant(e.tenantInfo)}).finally(a.endLoading.bind(a))})}));e.exports=s}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v=a(14),T=(r=v)&&r.__esModule?r:{default:r},_=a(20);n=a(0),i=a(9).observer,o=a(96),l=a(164),s=a(165).Tabs,u=a(165).Tab,d=a(28),c=a(62),p=a(44),f=a(4),h=a(2816),m=a(1335),g=a(1).isEmpty,E=i(function(e){var t=e.store,a=!t.showingTenantCloned.active,r=e.localization,i=e.authorization,l=e.authorizationConstants.PERMISSION_KEY,s=i.checkPrivileges([l.TenantSetupActionsEdit]),u=i.checkPrivileges([l.TenantSetupActionsCreate]);return n.createElement("section",{className:"izenda-Wrapper-header"},n.createElement(o,null),n.createElement("div",{className:"izenda-Alert-container"},n.createElement(c,{type:t.alertMessage.type},t.alertMessage.message)),(s||u)&&n.createElement("fieldset",{className:"pull-right",disabled:a},n.createElement("button",{className:"btn btn-primary",onClick:e.onSave,disabled:a},r.getText("COMMON_LABEL_SAVE")),n.createElement("button",{className:"btn btn-primary btn-report-default u_marginLeft",onClick:e.onCancel,disabled:a},r.getText("COMMON_LABEL_CANCEL"))))}),y=n.createClass({displayName:"TenantDetail",propTypes:{store:n.PropTypes.object.isRequired},componentWillMount:function(){this.props.store.init(),this.cloneTenantDetail()},componentWillReceiveProps:function(){this.props.validation.reset(),this.cloneTenantDetail()},componentWillUnmount:function(){this.props.store.destroy()},cloneTenantDetail:function(){this.props.store.cloneTenantDetail()},onSave:function(){var e=this.props,t=e.store,a=this.props.localization,r=e.validation,n=e.confirmFn;t.alertMessage=p.EMPTY_MESSAGE,r.validate().bind(this).then(function(e){e&&!t.showingTenantCloned.hasDirty?t.setAlertMessage("info",a.getText("COMMON_MESSAGES_NO_CHANGES_FOUND")):e&&t.validateAccesses().bind(this).then(function(a){!1!==a.success?n("Confirmation",{description:t.getBundle().MESSAGE.SAVE}).bind(this).then(function(){return e&&this.saveTenant()}):this.props.validation.updateErrors(a.messages)})})},saveTenant:function(){var e=this.props.validation,t=this.props.loader;return t.startLoading(),this.props.store.saveTenant().then(function(t){g(t)||e.updateErrors(t);return null}).finally(t.endLoading.bind(t))},onCancel:function(){var e=this.props.store,t=this.props.confirmFn,a=e.showingTenant;e.alertMessage=p.EMPTY_MESSAGE,e.showingTenantCloned.hasDirty&&t("Confirmation",{description:e.getBundle().MESSAGE.CANCEL}).then(function(){this.props.validation.reset(),e.loadTenant(a)}.bind(this))},validationBeforChangeTabs:function(){var e=this.props,t=e.store;return e.validation.validate().bind(this).then(function(e){if(e)return t.validateAccesses().bind(this).then(function(e){return!1===e.success?this.props.validation.updateErrors(e.messages):(0,_.resolve)(!0)})})},render:function(){var e=this.props.store,t=!e.showingTenantCloned.active,a=this.props.localization,r=this.props.authorization,i=this.props.authorizationConstants.PERMISSION_KEY,o=r.checkPrivileges([i.TenantSetupPermissionsValue]);return n.createElement(l,null,n.createElement("div",{className:"izenda-Wrapper"},n.createElement(E,(0,T.default)({},this.props,{onSave:this.onSave,onCancel:this.onCancel})),n.createElement("div",{className:"izenda-Wrapper-content u_paddingLeftRight"},n.createElement(d,{className:"panel-header-custom u_fullHeight u-posRelative"},n.createElement(s,{activeTabKey:"details",canChangeTab:this.validationBeforChangeTabs},n.createElement(u,{title:a.getText("COMMON_LABEL_DETAILS"),tabKey:"details"},n.createElement(h,{store:e,showingTenant:e.showingTenantCloned})),o?n.createElement(u,{title:a.getText("COMMON_LABEL_PERMISSIONS"),tabKey:"permissions"},n.createElement(m,{permissionStore:e.permissionStore,disabledTab:t,accessStore:e.accessStore})):null)))))}}),e.exports=f()(y)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=C(a(6)),l=C(a(2)),s=C(a(3)),u=C(a(7)),d=C(a(8)),c=a(0),p=C(c),f=a(9),h=a(1),m=C(a(4)),g=C(a(12)),E=C(a(28)),y=C(a(25)),v=C(a(19)),T=C(a(47)),_=C(a(336)),S=C(a(2817));C(a(710));function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,y.default)()(v.default),N=(0,f.observer)(function(e){var t=e.showingTenant,a=e.onUpdateTenantId;return p.default.createElement("div",{className:"form-group"},p.default.createElement("label",null,g.default.getText("TENANT_DETAIL_TAB_TENANT_ID")," ",p.default.createElement("span",{className:"validation required"})),p.default.createElement(b,{className:"form-control",type:"text",maxLength:"50",value:t.tenantID,onChange:a,validations:_.default.TENANT_ID_CONSTRAINT,field:"tenantID"}))}),A=(0,f.observer)(function(e){var t=e.showingTenant,a=e.onUpdateTenantName;return p.default.createElement("div",{className:"form-group"},p.default.createElement("label",null,g.default.getText("COMMON_LABEL_TENANT_NAME")," ",p.default.createElement("span",{className:"validation required"})),p.default.createElement(b,{className:"form-control",type:"text",maxLength:"50",value:t.name,onChange:a,validations:_.default.TENANT_NAME_CONSTRAINT,field:"name"}))}),R=(0,f.observer)(function(e){var t=e.showingTenant,a=e.onUpdateTenantDescription;return p.default.createElement("div",{className:"form-group"},p.default.createElement("label",null,g.default.getText("COMMON_LABEL_DESCRIPTION")),p.default.createElement(b,{className:"form-control",type:"text",maxLength:"100",value:t.description,onChange:a}))}),O=(0,f.observer)(function(e){var t=e.showingTenant,a=e.groupingList,r=e.onUpdateTenantGrouping;return p.default.createElement("div",{className:"form-group"},p.default.createElement("label",null,g.default.getText("COMMON_LABEL_GROUPING")),p.default.createElement(T.default,{simpleValue:!0,options:a.groupings,labelKey:"name",valueKey:"id",inputProps:{maxLength:"255"},value:t.tenantGroup,noResultsText:"",onChange:function(e,t){var n=a.findGrouping(t);(0,h.isNil)(n)||n.setName(t),r({target:{value:n}})},onAddNew:function(e){a.isGroupingExist(e.name)||a.addNewItem(e.name)}}))}),I=(0,m.default)()((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props.store,t=e.showingTenantCloned,a=e.groupingList,r=!t.active,n=function(e,t){return function(a){return e.setDataByKey(t,a.target.value)}};return p.default.createElement(E.default,{className:"u_marginLeft u_marginRight"},p.default.createElement("fieldset",{disabled:r},p.default.createElement(N,{showingTenant:t,onUpdateTenantId:n(t,"tenantID")}),p.default.createElement(A,{showingTenant:t,onUpdateTenantName:n(t,"name")}),p.default.createElement(R,{showingTenant:t,onUpdateTenantDescription:n(t,"description")}),p.default.createElement(O,{showingTenant:t,groupingList:a,onUpdateTenantGrouping:n(t,"tenantGroup")})),p.default.createElement("div",{className:"u_paddingTop"},p.default.createElement(S.default,{store:e})))}}]),t}(c.Component),n.propTypes={store:p.default.PropTypes.object.isRequired},r=i))||r;t.default=I,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(0),n=a(19),i=a(4),o=a(15),l=a(24),s=a(1).chunk,(u=function(e){var t=e.localization,a=e.store,i=a.modulesOfLicense||[],u=!a.showingTenantCloned.active,d=a.showingTenantCloned;return r.createElement("fieldset",{disabled:u},r.createElement("label",{className:"u-posAbsolute"},t.getText("TENANT_DETAIL_MODULES_LABEL_MODULES")),r.createElement(o,{className:"Izenda-TenantDetail_GridModule"},s(3,i).map(function(e,t){return r.createElement(o.Row,{key:t},e.map(function(e,t){var a=!!d.hasModule(e);return r.createElement(o.Col,{cols:4,key:t},r.createElement("label",null,r.createElement(n,{type:"checkbox",checked:a,onChange:l.notifyChange(d.updateModules.bind(d,e),l.CHECKBOX)}),r.createElement("span",null,e.name)))}))})))}).propTypes={store:r.PropTypes.object.isRequired},e.exports=i()(u)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=T(a(6)),i=T(a(2)),o=T(a(3)),l=T(a(7)),s=T(a(8)),u=a(0),d=T(u),c=T(a(4)),p=T(a(15)),f=a(100),h=T(f),m=T(a(2819)),g=T(a(138)),E=T(a(16)),y=T(a(193)),v=a(1);function T(e){return e&&e.__esModule?e:{default:e}}var _=(0,c.default)(m.default,g.default)(r=function(e){function t(){return(0,i.default)(this,t),(0,l.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentWillMount",value:function(){this.props.permissionStore.model.updateSection(f.SECTION.SystemConfiguration)}},{key:"getAllLinks",value:function(){var e=this,t=this.props,a=t.permissionStore,r=a.model,n=a.tenantDetail,i=t.permissionStore,o=t.authorization,l=E.default.systemMode===y.default.SYSTEM_MODE,s=E.default.currentUser,u=r.fullReportAndDashboardAccess?h.default.SECTION_LIST_FULL_REPORT_DASHBOARD_ACCESS:h.default.SECTION_LIST;return(i.isTenantSetup||l||n)&&(u=(0,v.remove)(function(e){return e.key===h.default.SECTION.TenantSetup},u)),u=(0,v.filter)(function(e){return!e.licenseKey||e.licenseKey&&o.checkLicense(e.licenseKey)},u),(0,v.map)(function(t){return((0,v.isNil)(n)||e.props.checkShowGroupCommon((0,v.get)(t.key,n))||"access"===t.key&&0!==n.access.tenantAccess||"scheduling"===t.key&&0!==n.scheduling.tenantAccess||"dashboards"===t.key&&0!==n.dashboards.tenantAccess||!(0,v.isNil)(t.alwaysShow)&&t.alwaysShow&&s.isSystemUser)&&d.default.createElement("a",{key:t.key,className:"u_paddingTopBottom u_paddingRight u_floatLeft"},d.default.createElement("span",{className:e.props.getActive(t.key),onClick:e.props.setActive.bind(e.props,t.key)},t.value))},u)}},{key:"render",value:function(){var e=this.props,t=e.localization,a=e.permissionStore.model.isTenantSetup;return this.props.removeActiveClass(this.props),d.default.createElement("fieldset",{disabled:this.props.disabledTab},d.default.createElement(p.default,{className:"izenda-GridLayout-Custom"},d.default.createElement(p.default.Row,{className:"izenda-PermissionBreadcrumb"},d.default.createElement(p.default.Col,{cols:11},d.default.createElement("span",{className:"u_marginRight u_paddingTopBottom u_floatLeft"},d.default.createElement("span",{className:"icon-chevron-down u_borderAll",onClick:this.props.toggleAll(!0)}),d.default.createElement("span",{className:"icon-chevron-up u_borderAll",onClick:this.props.toggleAll(!1)})),this.getAllLinks()),a&&d.default.createElement(p.default.Col,{cols:1,className:"u_textBold u_paddingTopBottom"},t.getText("PERMISSION_LABEL_TENANT_ACCESS")))))}}]),t}(u.Component))||r;t.default=_,e.exports=t.default},function(e,t,a){"use strict";(function(t){!function(){var r=a(0),n=a(11).compose,i=a(11).withHandlers,o=a(11).setPropTypes,l="izenda-PermissionBreadcrumb_active",s=a(1).curry,u=n(o({permissionStore:r.PropTypes.object.isRequired}),i({toggleAll:s(function(e,t){return function(){e.permissionStore.toggleAll(t)}}),getActive:s(function(e,t){return t===e.permissionStore.model.section?l:null}),setActive:s(function(e,a,r){e.permissionStore.model.isClickedSection=!0,d(e,r),t(r.target).addClass(l),function(e){var t=document.getElementsByClassName(e)[0];t&&t.scrollIntoView()}(a)}),removeActiveClass:s(d)}));function d(e,a){t(".izenda-PermissionBreadcrumb span, .izenda-PermissionBreadcrumb a").removeClass("izenda-PermissionBreadcrumb_active")}e.exports=u}()}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=S(a(14)),n=S(a(0)),i=S(a(13)),o=S(a(4)),l=S(a(26)),s=S(a(2821)),u=S(a(2822)),d=S(a(2823)),c=S(a(2824)),p=S(a(2825)),f=S(a(2826)),h=S(a(2835)),m=S(a(2839)),g=S(a(2846)),E=S(a(2847)),y=S(a(2848)),v=S(a(2849)),T=S(a(2850)),_=S(a(170));a(1);function S(e){return e&&e.__esModule?e:{default:e}}function C(e){var t=e.permissionStore,a=e.permissionStore,i=a.model,o=a.tenantDetail,S=e.accessStore,C=e.readOnly,b=e.disabledTab,N=e.isTemplatePermissions,A={permission:i,permissionStore:t,readOnly:C,isTemplatePermissions:N};return n.default.createElement("div",{className:"izenda-Wrapper-content"},n.default.createElement(l.default,null,n.default.createElement("fieldset",{disabled:b},n.default.createElement(_.default,{selectAllPermimssion:!0,permission:i,readOnly:C,disabled:N,section:i,tenantPermission:o,tenantDetail:o}),n.default.createElement(T.default,A),n.default.createElement(s.default,A),n.default.createElement(u.default,A),n.default.createElement(d.default,A),n.default.createElement(c.default,A),n.default.createElement(p.default,A),n.default.createElement(f.default,A),n.default.createElement(h.default,A),n.default.createElement(m.default,(0,r.default)({},A,{accessStore:S})),n.default.createElement(g.default,A),n.default.createElement(E.default,A),n.default.createElement(y.default,A),n.default.createElement(v.default,A))))}C.propTypes={permissionStore:i.default.object.isRequired,readOnly:i.default.bool},t.default=(0,o.default)()(C),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=C(a(6)),l=C(a(2)),s=C(a(3)),u=C(a(7)),d=C(a(8)),c=a(0),p=C(c),f=C(a(13)),h=C(a(4)),m=C(a(15)),g=C(a(19)),E=C(a(138)),y=a(100),v=C(a(24)),T=C(a(49)),_=C(a(170)),S=a(1);function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,h.default)({toClass:!0},E.default)((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentWillMount",value:function(){this.systemConfiguration=this.props.permission.systemConfiguration}},{key:"render",value:function(){var e=this.props,t=e.permission,a=e.permissionStore,r=e.permissionStore.tenantDetail,n=e.localization,i=e.authorization,o=e.isTemplatePermissions,l=e.readOnly,s=v.default.notifyChange,u=i.checkLicense(T.default.LICENSE_KEY.Scheduling),d=(0,S.get)("systemConfiguration",r);return u&&((0,S.isNil)(r)||this.props.checkShowGroupCommon(r.systemConfiguration))&&p.default.createElement("div",{className:y.SECTION.SystemConfiguration},p.default.createElement(m.default,{className:"izenda-GridLayout-Custom"},p.default.createElement(m.default.Row,{className:"u_textBold u_paddingTop u_paddingBottom izenda-PermissionCategory-Header"},p.default.createElement(m.default.Col,{cols:2},p.default.createElement("a",{className:this.props.getIconClass("isShowSystemConfiguration"),onClick:this.props.toggle.bind(this,"isShowSystemConfiguration")}),n.getText("COMMON_LABEL_SYSTEM_CONFIGURATION")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement(_.default,{permission:t,readOnly:l,disabled:o,section:this.systemConfiguration,tenantPermission:d,tenantDetail:r})),t.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",indeterminate:this.props.getIndeterminateCommon(this.systemConfiguration),checked:this.props.getCheckedCommon(this.systemConfiguration.tenantAccess),onChange:s(t.updateTenantAccessParent.bind(t,this.systemConfiguration),v.default.CHECKBOX),readOnly:l,disabled:o})))),a.isShowSystemConfiguration&&((0,S.isNil)(r)||this.props.checkShowGroupCommon(r.systemConfiguration.scheduledInstances))&&p.default.createElement(m.default,{className:"izenda-GridLayout-Custom"},p.default.createElement(m.default.Row,{className:"u_paddingTop u_paddingBottom"},p.default.createElement(m.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},n.getText("PERMISSION_LABEL_SCHEDULED_INSTANCES")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement(g.default,{type:"checkbox",readOnly:l,disabled:o,checked:this.props.getCheckedCommon(this.systemConfiguration.scheduledInstances.value),onChange:s(t.updateData.bind(t,this.systemConfiguration.scheduledInstances,"value"),v.default.CHECKBOX)})),t.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",readOnly:l,disabled:o,checked:this.props.getCheckedCommon(this.systemConfiguration.scheduledInstances.tenantAccess),onChange:s(t.updateTenantAccess.bind(t,this.systemConfiguration,this.systemConfiguration.scheduledInstances),v.default.CHECKBOX)})))))}}]),t}(c.Component),n.propTypes={permission:f.default.object.isRequired},r=i))||r;t.default=b,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=b(a(6)),l=b(a(2)),s=b(a(3)),u=b(a(7)),d=b(a(8)),c=a(0),p=b(c),f=b(a(13)),h=b(a(4)),m=b(a(15)),g=b(a(19)),E=b(a(138)),y=a(100),v=b(a(24)),T=b(a(16)),_=b(a(170)),S=b(a(193)),C=a(1);function b(e){return e&&e.__esModule?e:{default:e}}var N=(0,h.default)(E.default)((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentWillMount",value:function(){var e=v.default.notifyChange,t=this.props.permission;this.tenantSetup=this.props.permission.tenantSetup,this.onChangeCreate=e(t.updateData.bind(t,this.tenantSetup.actions,"create"),v.default.CHECKBOX),this.onChangeEdit=e(t.updateData.bind(t,this.tenantSetup.actions,"edit"),v.default.CHECKBOX),this.onChangeDel=e(t.updateData.bind(t,this.tenantSetup.actions,"del"),v.default.CHECKBOX),this.onChangePermission=e(t.updateData.bind(t,this.tenantSetup.permissions,"value"),v.default.CHECKBOX)}},{key:"render",value:function(){var e=this.props,t=e.isTemplatePermissions,a=e.permissionStore,r=e.permission,n=e.localization,i=e.tenantDetail,o=(0,C.get)("tenantSetup",i),l=T.default.systemMode===S.default.SYSTEM_MODE;return(0,C.isNil)(T.default.getTenantId())&&!r.isTenantSetup&&!l&&p.default.createElement("div",{className:y.SECTION.TenantSetup},p.default.createElement(m.default,{className:"izenda-GridLayout-Custom"},p.default.createElement(m.default.Row,{className:"u_textBold u_paddingTop u_paddingBottom izenda-PermissionCategory-Header"},p.default.createElement(m.default.Col,{cols:2},p.default.createElement("a",{className:this.props.getIconClass("isShowTenantSetup"),onClick:this.props.toggle.bind(this,"isShowTenantSetup")}),n.getText("COMMON_LABEL_TENANT_SETUP")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement(_.default,{permission:r,readOnly:this.props.readOnly,disabled:t,section:this.tenantSetup,tenantPermission:o,tenantDetail:i})))),a.isShowTenantSetup&&p.default.createElement(m.default,{className:"izenda-GridLayout-Custom"},p.default.createElement(m.default.Row,{className:"u_paddingTop u_paddingBottom"},p.default.createElement(m.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},n.getText("COMMON_LABEL_ACTIONS")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",checked:this.props.getCheckedCommon(this.tenantSetup.actions.create),onChange:this.onChangeCreate,disabled:t}),p.default.createElement("span",null,n.getText("COMMON_LABEL_CREATE")))),p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",readOnly:this.props.readOnly,disabled:t,checked:this.props.getCheckedCommon(this.tenantSetup.actions.edit),onChange:this.onChangeEdit}),p.default.createElement("span",null,n.getText("COMMON_LABEL_EDIT")))),p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",readOnly:this.props.readOnly,disabled:t,checked:this.props.getCheckedCommon(this.tenantSetup.actions.del),onChange:this.onChangeDel}),p.default.createElement("span",null,n.getText("COMMON_LABEL_DELETE"))))),p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"})),p.default.createElement(m.default.Row,{className:"u_paddingTop u_paddingBottom"},p.default.createElement(m.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},n.getText("PERMISSION_LABEL_PERMISSIONS")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement(g.default,{type:"checkbox",checked:this.props.getCheckedCommon(this.tenantSetup.permissions.value),onChange:this.onChangePermission,disabled:t}))),p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"}))))}}]),t}(c.Component),n.propTypes={permission:f.default.object.isRequired},r=i))||r;t.default=N,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(6)),l=_(a(2)),s=_(a(3)),u=_(a(7)),d=_(a(8)),c=a(0),p=_(c),f=_(a(13)),h=_(a(4)),m=_(a(15)),g=_(a(19)),E=_(a(138)),y=a(100),v=_(a(170)),T=a(1);function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,h.default)({toClass:!0},E.default)((i=n=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return a.dataSetup=a.props.permission.dataSetup,a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.permissionStore,a=e.permission,r=e.localization,n=e.isTemplatePermissions,i=e.readOnly,o=t.tenantDetail,l=(0,T.get)("dataSetup",o);return((0,T.isNil)(o)||this.props.checkShowGroupCommon(o.dataSetup))&&p.default.createElement("div",{className:y.SECTION.DataSetup},p.default.createElement(m.default,{className:"izenda-GridLayout-Custom"},p.default.createElement(m.default.Row,{className:"u_textBold u_paddingTop u_paddingBottom izenda-PermissionCategory-Header"},p.default.createElement(m.default.Col,{cols:2},p.default.createElement("a",{className:this.props.getIconClass("isShowDataSetup"),onClick:this.props.toggle.bind(this,"isShowDataSetup")}),r.getText("COMMON_LABEL_DATA_SETUP")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement(v.default,{permission:a,readOnly:i,disabled:n,section:this.dataSetup,tenantPermission:l,tenantDetail:o})),a.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,indeterminate:this.props.getIndeterminateCommon(this.dataSetup),checked:this.props.getCheckedCommon(this.dataSetup.tenantAccess),onChange:a.updateTenantAccessParentDataSetup.bind(a,this.dataSetup)})))),t.isShowDataSetup&&((0,T.isNil)(o)||this.props.checkShowGroupCommon(o.dataSetup))&&p.default.createElement(m.default,{className:"izenda-GridLayout-Custom"},((0,T.isNil)(o)||this.props.checkShowGroupCommon(o.dataSetup.dataConnectors))&&p.default.createElement(m.default.Row,{className:"u_paddingTop u_paddingBottom"},p.default.createElement(m.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},r.getText("CONTEXT_MENU_LABEL_CONNECTION_STRING")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.dataConnectors.value),onChange:a.updateDataSetup.bind(a,this.dataSetup.dataConnectors,"value")})),a.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",readOnly:i,checked:this.props.getCheckedCommon(this.dataSetup.dataConnectors.tenantAccess),onChange:a.updateTenantAccessDataSetup.bind(a,this.dataSetup,this.dataSetup.dataConnectors)}))),((0,T.isNil)(o)||this.props.checkShowGroupCommon(o.dataSetup.dataModel))&&p.default.createElement(m.default.Row,{className:"u_paddingTop u_paddingBottom"},p.default.createElement(m.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},r.getText("COMMON_LABEL_DATA_MODEL")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.dataModel.value),onChange:a.updateDataModel.bind(a,this.dataSetup,"value")})),a.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.dataModel.tenantAccess),onChange:a.updateTenantAccessDataModel.bind(a,this.dataSetup,this.dataSetup.dataModel)}))),((0,T.isNil)(o)||this.props.checkShowGroupCommon(o.dataSetup.dataModel.customView))&&this.props.getCheckedCommon(this.dataSetup.dataModel.value)&&p.default.createElement(m.default.Row,{className:"u_paddingTop u_paddingBottom"},p.default.createElement(m.default.Col,{cols:2,className:"izenda-PermissionCategory-SubSubCategory"},r.getText("COMMON_LABEL_CUSTOM_VIEW")),p.default.createElement(m.default.Col,{cols:9},((0,T.isNil)(o)||o.dataSetup.dataModel.customView.create)&&p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.dataModel.customView.create),onChange:a.updateDataSetup.bind(a,this.dataSetup.dataModel.customView,"create")}),p.default.createElement("span",null,r.getText("COMMON_LABEL_CREATE")))),((0,T.isNil)(o)||o.dataSetup.dataModel.customView.edit)&&p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.dataModel.customView.edit),onChange:a.updateDataSetup.bind(a,this.dataSetup.dataModel.customView,"edit")}),p.default.createElement("span",null,r.getText("COMMON_LABEL_EDIT")))),((0,T.isNil)(o)||o.dataSetup.dataModel.customView.delete)&&p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.dataModel.customView.delete),onChange:a.updateDataSetup.bind(a,this.dataSetup.dataModel.customView,"delete")}),p.default.createElement("span",null,r.getText("COMMON_LABEL_DELETE"))))),a.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.dataModel.customView.tenantAccess),onChange:a.updateTenantAccessCustomView.bind(a,this.dataSetup,this.dataSetup.dataModel.customView)}))),((0,T.isNil)(o)||this.props.checkShowGroupCommon(o.dataSetup.advancedSettings))&&p.default.createElement(m.default.Row,{className:"u_paddingTop u_paddingBottom"},p.default.createElement(m.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},r.getText("PERMISSION_LABEL_ADVANCED_SETTING")),p.default.createElement(m.default.Col,{cols:9},((0,T.isNil)(o)||o.dataSetup.advancedSettings.category)&&p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.advancedSettings.category),onChange:a.updateDataSetup.bind(a,this.dataSetup.advancedSettings,"category")}),p.default.createElement("span",null,r.getText("COMMON_LABEL_CATEGORY")))),((0,T.isNil)(o)||o.dataSetup.advancedSettings.others)&&p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.advancedSettings.others),onChange:a.updateDataSetup.bind(a,this.dataSetup.advancedSettings,"others")}),p.default.createElement("span",null,r.getText("COMMON_LABEL_OTHERS"))))),a.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.advancedSettings.tenantAccess),onChange:a.updateTenantAccessDataSetup.bind(a,this.dataSetup,this.dataSetup.advancedSettings)}))),((0,T.isNil)(o)||this.props.checkShowGroupCommon(o.dataSetup.import))&&p.default.createElement(m.default.Row,{className:"u_paddingTop u_paddingBottom"},p.default.createElement(m.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},r.getText("CONTEXT_MENU_LABEL_IMPORT")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement(g.default,{type:"checkbox",readOnly:i,disabled:n,checked:this.props.getCheckedCommon(this.dataSetup.import.value),onChange:a.updateDataSetup.bind(a,this.dataSetup.import,"value")})),a.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",readOnly:i,checked:this.props.getCheckedCommon(this.dataSetup.import.tenantAccess),onChange:a.updateTenantAccessDataSetup.bind(a,this.dataSetup,this.dataSetup.import)})))))}}]),t}(c.Component),n.propTypes={permission:f.default.object.isRequired},r=i))||r;t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=S(a(6)),l=S(a(2)),s=S(a(3)),u=S(a(7)),d=S(a(8)),c=a(0),p=S(c),f=S(a(13)),h=S(a(4)),m=S(a(15)),g=S(a(19)),E=S(a(138)),y=a(100),v=S(a(24)),T=S(a(170)),_=a(1);function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,h.default)(E.default)((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentWillMount",value:function(){var e=v.default.notifyChange,t=this.props.permission;this.userSetup=this.props.permission.userSetup,this.updateTenantAccessParent=e(t.updateTenantAccessParent.bind(t,this.userSetup),v.default.CHECKBOX),this.onChangeCreate=e(t.updateData.bind(t,this.userSetup.actions,"create"),v.default.CHECKBOX),this.onChangeEdit=e(t.updateUserSetupEdit.bind(t,this.userSetup.actions),v.default.CHECKBOX),this.onChangeDel=e(t.updateData.bind(t,this.userSetup.actions,"del"),v.default.CHECKBOX),this.onChangeConfigureSecurityOptions=e(t.updateData.bind(t,this.userSetup.actions,"configureSecurityOptions"),v.default.CHECKBOX),this.updateTenantAccessUserSetup=e(t.updateTenantAccess.bind(t,this.userSetup,this.userSetup.actions),v.default.CHECKBOX),this.onChangeUserRoleAssociation=e(t.updateData.bind(t,this.userSetup.userRoleAssociation,"value"),v.default.CHECKBOX),this.updateTenantAccessUserRoleAssociation=e(t.updateTenantAccess.bind(t,this.userSetup,this.userSetup.userRoleAssociation),v.default.CHECKBOX)}},{key:"render",value:function(){var e=this.props,t=e.permissionStore,a=e.permissionStore.tenantDetail,r=e.permission,n=e.localization,i=e.isTemplatePermissions,o=e.readOnly,l=(0,_.get)("userSetup",a);return((0,_.isNil)(a)||this.props.checkShowGroupCommon(a.userSetup))&&p.default.createElement("div",{className:y.SECTION.UserSetup},p.default.createElement(m.default,{className:"izenda-GridLayout-Custom"},p.default.createElement(m.default.Row,{className:"u_textBold u_paddingTop u_paddingBottom izenda-PermissionCategory-Header"},p.default.createElement(m.default.Col,{cols:2},p.default.createElement("a",{className:this.props.getIconClass("isShowUserSetup"),onClick:this.props.toggle.bind(this,"isShowUserSetup")}),n.getText("COMMON_LABEL_USER_SETUP")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement(T.default,{permission:r,readOnly:o,disabled:i,section:this.userSetup,tenantPermission:l,tenantDetail:a})),r.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",readOnly:o,disabled:i,indeterminate:this.props.getIndeterminateCommon(this.userSetup),checked:this.props.getCheckedCommon(this.userSetup.tenantAccess),onChange:this.updateTenantAccessParent})))),t.isShowUserSetup&&p.default.createElement(m.default,{className:"izenda-GridLayout-Custom"},((0,_.isNil)(a)||this.props.checkShowGroupCommon(a.userSetup.actions))&&p.default.createElement(m.default.Row,{className:"u_paddingTop u_paddingBottom"},p.default.createElement(m.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},n.getText("COMMON_LABEL_ACTIONS")),p.default.createElement(m.default.Col,{cols:9},((0,_.isNil)(a)||a.userSetup.actions.create)&&p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",readOnly:o,disabled:i,checked:this.props.getCheckedCommon(this.userSetup.actions.create),onChange:this.onChangeCreate}),p.default.createElement("span",null,n.getText("COMMON_LABEL_CREATE")))),((0,_.isNil)(a)||a.userSetup.actions.edit)&&p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",readOnly:o,disabled:i,checked:this.props.getCheckedCommon(this.userSetup.actions.edit),onChange:this.onChangeEdit}),p.default.createElement("span",null,n.getText("COMMON_LABEL_EDIT")))),((0,_.isNil)(a)||a.userSetup.actions.del)&&p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",readOnly:o,disabled:i,checked:this.props.getCheckedCommon(this.userSetup.actions.del),onChange:this.onChangeDel}),p.default.createElement("span",null,n.getText("COMMON_LABEL_DELETE")))),((0,_.isNil)(a)||a.userSetup.actions.configureSecurityOptions)&&p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement("label",null,p.default.createElement(g.default,{type:"checkbox",checked:this.props.getCheckedCommon(this.userSetup.actions.configureSecurityOptions),onChange:this.onChangeConfigureSecurityOptions,readOnly:o,disabled:i||!this.props.getCheckedCommon(this.userSetup.actions.edit)}),p.default.createElement("span",null,n.getText("PERMISSION_LABEL_PASSWORD_OPTIONS"))))),r.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",readOnly:o,disabled:i,checked:this.props.getCheckedCommon(this.userSetup.actions.tenantAccess),onChange:this.updateTenantAccessUserSetup}))),((0,_.isNil)(a)||this.props.checkShowGroupCommon(a.userSetup.userRoleAssociation))&&p.default.createElement(m.default.Row,{className:"u_paddingTop u_paddingBottom"},p.default.createElement(m.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},n.getText("PERMISSION_LABEL_USER_ROLE_ASSOCIATION")),p.default.createElement(m.default.Col,{cols:9},p.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},p.default.createElement(g.default,{type:"checkbox",readOnly:o,disabled:i,checked:this.props.getCheckedCommon(this.userSetup.userRoleAssociation.value),onChange:this.onChangeUserRoleAssociation}))),r.isTenantSetup&&p.default.createElement(m.default.Col,{cols:1,className:"u_textCenter"},p.default.createElement(g.default,{type:"checkbox",readOnly:o,disabled:i,checked:this.props.getCheckedCommon(this.userSetup.userRoleAssociation.tenantAccess),onChange:this.updateTenantAccessUserRoleAssociation})))))}}]),t}(c.Component),n.propTypes={permission:f.default.object.isRequired},r=i))||r;t.default=C,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(0)),n=p(a(13)),i=p(a(4)),o=p(a(15)),l=p(a(19)),s=p(a(138)),u=a(100),d=p(a(170)),c=a(1);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var t=e.permissionStore,a=t.tenantDetail,n=t.isShowRoleSetup,i=e.permission,s=e.permission,p=s.roleSetup,f=s.isTenantSetup,h=e.localization,m=e.readOnly,g=e.isTemplatePermissions,E=(0,c.get)("roleSetup",a);return((0,c.isNil)(a)||e.checkShowGroupCommon(a.roleSetup))&&r.default.createElement("div",{className:u.SECTION.RoleSetup},r.default.createElement(o.default,{className:"izenda-GridLayout-Custom"},r.default.createElement(o.default.Row,{className:"u_textBold u_paddingTop u_paddingBottom izenda-PermissionCategory-Header"},r.default.createElement(o.default.Col,{cols:2},r.default.createElement("a",{className:e.getIconClass("isShowRoleSetup"),onClick:e.toggle("isShowRoleSetup")}),h.getText("COMMON_LABEL_ROLE_SETUP")),r.default.createElement(o.default.Col,{cols:9},r.default.createElement(d.default,{permission:i,readOnly:m,disabled:g,section:p,tenantPermission:E,tenantDetail:a})),f&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:m,disabled:g,indeterminate:e.getIndeterminateCommon(p),checked:e.getCheckedCommon(p.tenantAccess),onChange:e.permissionUpdateTenantAccessParent(p)})))),n&&r.default.createElement(o.default,{className:"izenda-GridLayout-Custom"},((0,c.isNil)(a)||e.checkShowGroupCommon(a.roleSetup.actions))&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},h.getText("COMMON_LABEL_ACTIONS")),r.default.createElement(o.default.Col,{cols:9},((0,c.isNil)(a)||a.roleSetup.actions.create)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(l.default,{type:"checkbox",readOnly:m,disabled:g,checked:e.getCheckedCommon(p.actions.create),onChange:e.permissionUpdateData(p.actions,"create")}),r.default.createElement("span",null,h.getText("COMMON_LABEL_CREATE")))),((0,c.isNil)(a)||a.roleSetup.actions.edit)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(l.default,{type:"checkbox",readOnly:m,disabled:g,checked:e.getCheckedCommon(p.actions.edit),onChange:e.permissionUpdateData(p.actions,"edit")}),r.default.createElement("span",null,h.getText("COMMON_LABEL_EDIT")))),((0,c.isNil)(a)||a.roleSetup.actions.del)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(l.default,{type:"checkbox",readOnly:m,disabled:g,checked:e.getCheckedCommon(p.actions.del),onChange:e.permissionUpdateData(p.actions,"del")}),r.default.createElement("span",null,h.getText("COMMON_LABEL_DELETE"))))),f&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:m,disabled:g,checked:e.getCheckedCommon(p.actions.tenantAccess),onChange:e.permissionUpdateTenantAccess(p,p.actions)}))),((0,c.isNil)(a)||e.checkShowGroupCommon(a.roleSetup.dataModelAccess))&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},h.getText("PERMISSION_LABEL_DATA_MODEL_ACCESS")),r.default.createElement(o.default.Col,{cols:9},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement(l.default,{type:"checkbox",readOnly:m,disabled:g,checked:e.getCheckedCommon(p.dataModelAccess.value),onChange:e.permissionUpdateData(p.dataModelAccess,"value")}))),f&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:m,disabled:g,checked:e.getCheckedCommon(p.dataModelAccess.tenantAccess),onChange:e.permissionUpdateTenantAccess(p,p.dataModelAccess)}))),((0,c.isNil)(a)||e.checkShowGroupCommon(a.roleSetup.permissions))&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},h.getText("PERMISSION_LABEL_PERMISSIONS")),r.default.createElement(o.default.Col,{cols:9},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement(l.default,{type:"checkbox",readOnly:m,disabled:g,checked:e.getCheckedCommon(p.permissions.value),onChange:e.permissionUpdateData(p.permissions,"value")}))),f&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:m,disabled:g,checked:e.getCheckedCommon(p.permissions.tenantAccess),onChange:e.permissionUpdateTenantAccess(p,p.permissions)}))),((0,c.isNil)(a)||e.checkShowGroupCommon(a.roleSetup.grantRoleWithFullReportAndDashboardAccess))&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},h.getText("PERMISSION_LABEL_GRANT_ROLE_WITH_FULL_REPORT_AND_DASHBOARD_ACCESS")),r.default.createElement(o.default.Col,{cols:9},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement(l.default,{type:"checkbox",checked:e.getCheckedCommon(p.grantRoleWithFullReportAndDashboardAccess.value),onChange:e.permissionUpdateData(p.grantRoleWithFullReportAndDashboardAccess,"value"),readOnly:m,disabled:g}))),f&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:m,disabled:g,checked:e.getCheckedCommon(p.grantRoleWithFullReportAndDashboardAccess.tenantAccess),onChange:e.permissionUpdateTenantAccess(p,p.grantRoleWithFullReportAndDashboardAccess)})))))};f.propTypes={permission:n.default.object.isRequired},t.default=(0,i.default)(s.default)(f),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E;r=a(0),n=a(4),i=a(15),o=a(19),l=a(2827),s=a(2829),u=a(2833),d=a(138),c=a(100).SECTION,p=a(24),f=a(170),h=a(1),m=h.isNil,g=h.get,E=r.createClass({displayName:"PermissionReports",propTypes:{permission:r.PropTypes.object.isRequired},componentWillMount:function(){this.reports=this.props.permission.reports},render:function(){var e=p.notifyChange,t=this.props.permissionStore,a=this.props.permission,n=t.tenantDetail,d=this.props.localization,h=this.props.isTemplatePermissions,E=g("reports",n);return!a.fullReportAndDashboardAccess&&(m(n)||0!==n.reports.tenantAccess)&&r.createElement("div",{className:c.Reports},r.createElement(i,{className:"izenda-GridLayout-Custom"},r.createElement(i.Row,{className:"u_textBold u_paddingTop u_paddingBottom izenda-PermissionCategory-Header"},r.createElement(i.Col,{cols:2},r.createElement("a",{className:this.props.getIconClass("isShowReports"),onClick:this.props.toggle.bind(this,"isShowReports")}),d.getText("COMMON_LABEL_REPORTS")),r.createElement(i.Col,{cols:9},r.createElement(f,{permission:a,readOnly:this.props.readOnly,disabled:h,section:this.reports,tenantPermission:E,tenantDetail:n})),a.isTenantSetup&&r.createElement(i.Col,{cols:1,className:"u_textCenter"},r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:h,indeterminate:this.props.getIndeterminateCommon(this.reports),checked:this.props.getCheckedCommon(this.reports.tenantAccess),onChange:e(a.updateTenantAccessParent.bind(a,this.reports),p.CHECKBOX)})))),t.isShowReports&&r.createElement("div",null,r.createElement(l,this.props),r.createElement(s,this.props),r.createElement(u,this.props)))}}),e.exports=n({toClass:!0},d)(E)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(0)),n=p(a(13)),i=p(a(4)),o=p(a(15)),l=p(a(19)),s=p(a(2828)),u=p(a(49)),d=a(1),c=p(a(548));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var t=e.permission.isTenantSetup,a=e.localization,n=e.permissionStore.tenantDetail,i=e.authorization,s=e.readOnly,p=e.isTemplatePermissions,f=e.permission.reports,h=i.checkLicense(u.default.LICENSE_KEY.Nlq),m=i.checkLicense(u.default.LICENSE_KEY.ReportDesigner),g=i.checkLicense(u.default.LICENSE_KEY.Charting),E=i.checkLicense(u.default.LICENSE_KEY.Form),y=i.checkLicense(u.default.LICENSE_KEY.Maps);return r.default.createElement(o.default,{className:"izenda-GridLayout-Custom"},m&&((0,d.isNil)(n)||e.checkShowGroupCommon(n.reports.canCreateNewReport))&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},a.getText("PERMISSION_LABEL_CAN_CREATE_REPORT")),r.default.createElement(o.default.Col,{cols:9},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.canCreateNewReport.value),onChange:e.permissionUpdateData(f.canCreateNewReport,"value")}))),t&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.canCreateNewReport.tenantAccess),onChange:e.permissionUpdateTenantAccess(f,f.canCreateNewReport)}))),h&&((0,d.isNil)(n)||e.checkShowGroupCommon(n.reports.showExploreMenu))&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},a.getText("PERMISSION_LABEL_SHOW_EXPLORE_MENU")),r.default.createElement(o.default.Col,{cols:9},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.showExploreMenu.value),onChange:e.permissionUpdateData(f.showExploreMenu,"value")}))),t&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.showExploreMenu.tenantAccess),onChange:e.permissionUpdateTenantAccess(f,f.showExploreMenu)}))),m&&((0,d.isNil)(n)||0!==n.reports.dataSources.tenantAccess)&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},a.getText("PERMISSION_LABEL_DATA_SOURCES")),r.default.createElement(o.default.Col,{cols:9},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(l.default,{type:"radio",readOnly:s,disabled:p,name:"datasource",checked:e.getCheckedCommon(f.dataSources.simpleDataSources),onChange:e.onChangeSimpleDataSource}),r.default.createElement("span",null,a.getText("PERMISSION_LABEL_SIMPLE_DATA_SOURCES")))),r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(l.default,{type:"radio",readOnly:s,disabled:p,name:"datasource",checked:e.getCheckedCommon(f.dataSources.advancedDataSources),onChange:e.onChangeAdvancedDataSource}),r.default.createElement("span",null,a.getText("PERMISSION_LABEL_ADVANCED_DATA_SOURCES"))))),t&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.dataSources.tenantAccess),onChange:e.permissionUpdateTenantAccess(f,f.dataSources)}))),m&&((0,d.isNil)(n)||e.checkShowGroupCommon(n.reports.reportPartTypes))&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},a.getText("PERMISSION_LABEL_REPORT_PART_TYPES")),r.default.createElement(o.default.Col,{cols:9},g&&((0,d.isNil)(n)||n.reports.reportPartTypes.chart)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.reportPartTypes.chart),onChange:e.permissionUpdateData(f.reportPartTypes,"chart")}),r.default.createElement("span",null,a.getText("PERMISSION_LABEL_CHART")))),E&&((0,d.isNil)(n)||n.reports.reportPartTypes.form)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.reportPartTypes.form),onChange:e.permissionUpdateData(f.reportPartTypes,"form")}),r.default.createElement("span",null,a.getText("PERMISSION_LABEL_FORM")))),g&&((0,d.isNil)(n)||n.reports.reportPartTypes.gauge)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.reportPartTypes.gauge),onChange:e.permissionUpdateData(f.reportPartTypes,"gauge")}),r.default.createElement("span",null,a.getText("PERMISSION_LABEL_GAUGE")))),y&&((0,d.isNil)(n)||n.reports.reportPartTypes.map)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.reportPartTypes.map),onChange:e.onMapChange(f.reportPartTypes,"map")}),r.default.createElement("span",null,a.getText("PERMISSION_LABEL_MAP")))),g&&((0,d.isNil)(n)||n.reports.reportPartTypes.kpi)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.reportPartTypes.kpi),onChange:e.permissionUpdateData(f.reportPartTypes,"kpi")}),r.default.createElement("span",null,a.getText("PERMISSION_LABEL_KPI"))))),t&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.reportPartTypes.tenantAccess),onChange:e.permissionUpdateTenantAccess(f,f.reportPartTypes)}))),m&&t&&((0,d.isNil)(n)||e.checkShowGroupCommon(n.reports.reportPartTypes))&&e.getCheckedCommon(f.reportPartTypes.map)&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubSubCategory"},a.getText("PERMISSION_LABEL_ENABLE_GOOGLE_ADDRESS")),r.default.createElement(o.default.Col,{cols:9},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.reportPartTypes.isEnableGoogleAddress),onChange:e.permissionUpdateData(f.reportPartTypes,"isEnableGoogleAddress")})))),((0,d.isNil)(n)||e.checkShowGroupCommon(n.reports.reportCategoriesSubcategories))&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{className:"izenda-PermissionCategory-SubCategory"},a.getText("PERMISSION_LABEL_REPORT_CATEGORIES_SUBCATEGORIES"))),((0,d.isNil)(n)||e.checkShowGroupCommon(n.reports.reportCategoriesSubcategories.preventReportSharing))&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubSubCategory"},a.getText("PERMISSION_LABEL_PREVENT_REPORT_SHARING")),r.default.createElement(o.default.Col,{cols:9},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement(c.default,{value:f.reportCategoriesSubcategories.preventReportSharing.value,onChange:e.permissionUpdateData(f.reportCategoriesSubcategories.preventReportSharing,"value")}))),t&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.reportCategoriesSubcategories.preventReportSharing.tenantAccess),onChange:e.permissionUpdateTenantAccess(f,f.reportCategoriesSubcategories.preventReportSharing)}))),((0,d.isNil)(n)||e.checkShowGroupCommon(n.reports.reportCategoriesSubcategories.canCreateNewCategory))&&r.default.createElement(o.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(o.default.Col,{cols:2,className:"izenda-PermissionCategory-SubSubCategory"},a.getText("PERMISSION_LABEL_CAN_CREATE_CATEGORY")),r.default.createElement(o.default.Col,{cols:9},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.reportCategoriesSubcategories.canCreateNewCategory.value),onChange:e.permissionUpdateData(f.reportCategoriesSubcategories.canCreateNewCategory,"value")}))),t&&r.default.createElement(o.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(l.default,{type:"checkbox",readOnly:s,disabled:p,checked:e.getCheckedCommon(f.reportCategoriesSubcategories.canCreateNewCategory.tenantAccess),onChange:e.permissionUpdateTenantAccess(f,f.reportCategoriesSubcategories.canCreateNewCategory)}))))};f.propTypes={permission:n.default.object.isRequired},t.default=(0,i.default)(s.default)(f),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(11),n=a(1);a(40);t.default=(0,r.withHandlers)({onChangeSimpleDataSource:(0,n.curry)(function(e,t){var a=t.target.checked;e.permission.toggleReportDataSources(a)}),onChangeAdvancedDataSource:(0,n.curry)(function(e,t){var a=t.target.checked;e.permission.toggleReportDataSources(!a)}),permissionUpdateData:(0,n.curry)(function(e,t,a,r){e.permission.updateData(t,a,r.target.checked)}),permissionUpdateTenantAccess:(0,n.curry)(function(e,t,a,r){e.permission.updateTenantAccess(t,a,r.target.checked)}),onMapChange:(0,n.curry)(function(e,t,a,r){var i=r.target.checked;e.permission.updateData(t,a,i),function(e,t,a){var r=e.permission.isTenantSetup,i=e.permissionStore.tenantDetail;(0,n.isNil)(i)&&r&&!t&&e.permission.updateData(a,"isEnableGoogleAddress",t)}(e,i,t)})}),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f=a(14),h=(r=f)&&r.__esModule?r:{default:r};n=a(0),i=a(4),o=a(15),l=a(19),s=a(24),u=a(1336),d=a(336).TENANT_PERMISSIONS.REPORT.CATEGORY_ACCESSIBILITY,c=a(100),p=n.createClass({displayName:"PermissionReportBody",propTypes:{permission:n.PropTypes.object.isRequired},componentWillMount:function(){var e=this.props.permissionStore;this.reports=this.props.permission.reports,this.afterSwitchTree=e.updateReportAccessibilityCategory.bind(e)},render:function(){var e=s.notifyChange,t=this.props.permission,a=this.props.permissionStore,r=(a.tenantDetail,this.props.localization);return!a.isTenantSetup&&n.createElement(o,null,n.createElement(o.Row,{className:"u_paddingTop u_paddingBottom u_borderBottom u_noMarginAll"},n.createElement(o.Col,{cols:2,className:"izenda-PermissionCategory-SubSubCategory"},r.getText("PERMISSION_LABEL_CATEGORY_ACCESSIBILITY")),n.createElement(o.Col,{cols:9},n.createElement("div",{className:"u_inlineBlock u_fullWidth"},n.createElement(u,(0,h.default)({},this.props,{typeName:c.SECTION.Reports,leftHeader:d.AVAILABLE_TREE_HEADER,rightHeader:d.SAVABLE_TREE_HEADER,middleHeader:d.VISIBLE_TREE_HEADER,categoryPermission:this.props.permissionStore.reportCategoryAccessibility,afterSwitchTree:this.afterSwitchTree})))),a.isTenantSetup&&n.createElement(o.Col,{cols:1,className:"u_textCenter"},n.createElement(l,{type:"checkbox",readOnly:this.props.readOnly,checked:this.props.getCheckedCommon(this.reports.reportCategoriesSubcategories.categoryAccessibility.tenantAccess),onChange:e(t.updateTenantAccess.bind(t,this.reports,this.reports.reportCategoriesSubcategories.categoryAccessibility),s.CHECKBOX)}))))}}),e.exports=i()(p)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C;r=a(0),n=a(98),i=a(4),o=a(9).observer,l=a(11).compose,s=a(11).mapProps,u=a(11).withHandlers,d=a(19),c=a(69),p=a(184),f=a(1),h=f.curry,m=f.filter,g=f.get,E=i(l(u({onCheck:h(function(e,t){e.node.check(null)})})))(function(e){var t=e.node;return r.createElement(d,{indeterminate:0===t.displayCheckedStatus,type:"checkbox",checked:1===t.displayCheckedStatus,onChange:e.onCheck,disabled:t.disabledCheckBox||e.readOnly})}),y=o(function(e){return r.createElement(c,{highlight:e.node.hightLightText,text:e.node.nodeText,className:"u_textNormal"})}),v=o(function(e){var t=e.node;return t.showNumChildren&&t.isBranchNode?r.createElement("span",null,String.format(" ({0})",t.numberOfChildren)):null}),T=function(e,t){return r.createElement("div",{className:"checkbox u_noMarginAll"},r.createElement("label",null,r.createElement(E,{node:e}),r.createElement(y,{node:e}),r.createElement(v,{node:e})),t)},_=l(o,s(function(e){return{value:e.filter.text,onChange:function(t){e.filter.text=t.target.value}}}))(n),S=o(function(e){var t=m("isDisplayNode",e.nodes);return r.createElement(p,{className:"u_paddingRight",nodes:t,renderNode:T,getKey:g("key"),getChildNodes:g("displayChildNodes"),collapsed:!1})}),(C=i()(function(e){return r.createElement("div",{className:"izenda-CommonTree u_table u_fullSize u_borderAll"},r.createElement("div",{className:"u_tableRow"},r.createElement("div",{className:"u_tableCell u_paddingAll u_borderBottom"},e.headerIcon&&r.createElement("span",{className:e.headerIcon}),r.createElement("span",{className:"u_textBold"},e.header))),r.createElement("div",{className:"u_tableRow"},r.createElement("div",{className:"u_tableCell u_paddingAll u_borderBottom"},r.createElement("div",{className:"u-posRelative"},r.createElement(_,e)))),r.createElement("div",{className:"u_tableRow"},r.createElement("div",{className:"u_tableCell u_fullSize"},r.createElement(S,{nodes:e.nodes}))))})).propTypes={nodes:r.PropTypes.array.isRequired,filter:r.PropTypes.object.isRequired},e.exports=C},function(e,t,a){"use strict";!function(){var t=a(0),r=a(5),n=a(9).observer,i=a(11).compose,o=a(11).withProps,l=a(11).withHandlers,s=a(11).setPropTypes,u=a(2832),d=a(12),c=a(1),p=c.flow,f=c.reject,h=c.forEach,m=c.invokeArgs,g=c.isEmpty,E=c.map,y=c.join,v=c.filter,T=c.get,_=c.negate,S=c.assign,C=c.find,b=function(e,t,a,n){var i=r.action(p(f({displayCheckedStatus:-1}),h(function(e){1===e.displayCheckedStatus&&m(t,[a],e.basedNode),e.checkboxStatus=!1,i(e.displayChildNodes)}))),o=v("isDisplayNode",e);"toggleSavable"===t&&a&&function(e,t){var a=p(f({displayCheckedStatus:-1}),E(function(e){var t=g(e.displayChildNodes)?"":a(e.displayChildNodes);return String.format("
  • {0}{1}
  • ",e.basedNode.name,t)}),y(""),function(e){return g(e)?"":String.format("
      {0}
    ",e)}),r=C(function(e){return T("basedNode.isGlobal",e)},e);if(r){var n=T("displayChildNodes",r),i=a(n),o=String.format(d.getText("ROLE_SETUP_PERMISSION_NOT_ALLOW_TO_SAVE"),t.typeName,i);i&&t.confirmFn("Information",{description:o,type:"error",isHTMLFormat:!0,showCloseIndicator:!0})}}(o,n),i(o),n.afterSwitchTree()};var N=i(s({categoryPermission:t.PropTypes.object.isRequired,rightHeader:t.PropTypes.string.isRequired,leftHeader:t.PropTypes.string.isRequired,middleHeader:t.PropTypes.string.isRequired}),o(function(){var e=r.observable({text:""}),t=r.observable({text:""}),a=r.observable({text:""}),n={getChild:T("subCategories"),getText:T("name"),showNumChildren:T("showNumChildren"),getKey:T("displayKey"),checkBranchNode:_(T("isSubCategory"))},i=S(n,{checkDisplayNode:T("showInAvailableTree"),filter:e}),o=S(n,{checkDisplayNode:T("showInVisibleTree"),filter:t}),l=S(n,{checkDisplayNode:T("showInSavableTree"),filter:a});return{leftTreeFilter:e,transformerLeftTree:u(i),rightTreeFilter:a,transformerRightTree:u(l),middleTreeFilter:t,transformerMiddleTree:u(o)}}),n,o(function(e){var t=e.categoryPermission.categories;return{leftTree:e.transformerLeftTree(t),rightTree:e.transformerRightTree(t),middleTree:e.transformerMiddleTree(t)}}),l({fromLeftToMiddle:function(e){return b.bind(null,e.leftTree,"toggleVisible",!0,e)},fromMiddleToLeft:function(e){return b.bind(null,e.middleTree,"toggleVisible",!1,e)},fromRightToMiddle:function(e){return b.bind(null,e.rightTree,"toggleSavable",!1,e)},fromMiddleToRight:function(e){return b.bind(null,e.middleTree,"toggleSavable",!0,e)}}));e.exports=N}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g;r=a(5),n=a(1),i=n.isArrayLike,o=n.flatMap,l=n.invokeArgs,s=n.invokeMap,u=n.isNil,d=n.filter,c=n.every,p=n.isEmpty,f=n.escapeRegExp,h=n.forEach,m=n.isBoolean,g=n.reject,e.exports=function(e){var t=r.createTransformer(function(e){return i(e)?o(t,e):[new a(e)]},function(e){s("dispose",e)}),a=function(a){var n={basedNode:a,isBranchNode:function(){return e.checkBranchNode?e.checkBranchNode(this.basedNode):!u(e.getChild(this.basedNode))},childrenNodes:function(){return this.isBranchNode?t(e.getChild(this.basedNode)):[]},displayChildNodes:function(){return this.isBranchNode?d("isDisplayNode",this.childrenNodes):[]},disabledCheckBox:function(){return e.readOnly||e.disabledBranchNodeWithNoDisplayChild&&e.disabledBranchNodeWithNoDisplayChild(this.basedNode)&&this.isBranchNode&&c("disabledCheckBox",this.displayChildNodes)},nodeText:function(){return e.getText(this.basedNode)},hightLightText:function(){return e.filter.text},key:function(){return e.getKey(this.basedNode)},isDisplayNode:function(){var t=new RegExp(f(e.filter.text),"i");return l("checkAlwaysDisplay",[this.basedNode],e)||e.checkDisplayNode(this.basedNode)&&(t.test(this.nodeText)||this.isBranchNode&&!p(this.displayChildNodes))},showNumChildren:function(){return e.showNumChildren?e.showNumChildren(this.basedNode):!p(this.displayChildNodes)},numberOfChildren:function(){return this.displayChildNodes.length},checkboxStatus:!1,displayCheckedStatus:function(){var e=g("disabledCheckBox",this.displayChildNodes);return p(e)?this.checkboxStatus&&!this.disabledCheckBox?1:-1:c({displayCheckedStatus:1},e)?1:c({displayCheckedStatus:-1},e)?-1:0}};r.extendObservable(this,n),this.dispose=r.autorun(function(){(!this.isDisplayNode||!this.disabledCheckBox)&&r.untracked(function(){this.checkboxStatus&&(this.checkboxStatus=!1)}.bind(this))}.bind(this))};return a.prototype.check=r.action(function(t){if(!e.readOnly){var a=m(t)?t:1!==this.displayCheckedStatus;this.checkboxStatus=a,h(l("check",[a]),g("disabledCheckBox",this.displayChildNodes))}}),t}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(a(0)),n=c(a(13)),i=c(a(4)),o=c(a(2834)),l=c(a(15)),s=c(a(19)),u=c(a(49)),d=a(1);function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){var t,a=e.permission,n=e.permissionStore,i=e.localization,o=e.authorization,c=e.readOnly,p=e.isTemplatePermissions,f=a.reports,h=n.tenantDetail,m=o.checkLicense(u.default.LICENSE_KEY.ReportDesigner),g=o.checkLicense(u.default.LICENSE_KEY.Scheduling),E=o.checkLicense(u.default.LICENSE_KEY.Alerting),y=o.checkLicense(u.default.LICENSE_KEY.Exporting);return r.default.createElement(l.default,{className:"izenda-GridLayout-Custom"},((0,d.isNil)(h)||e.checkShowGroupCommon(h.reports.filterProperties))&&r.default.createElement(l.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(l.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},i.getText("COMMON_LABEL_FILTER_PROPERTIES")),r.default.createElement(l.default.Col,{cols:9},((0,d.isNil)(h)||h.reports.filterProperties.filterLogic)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.filterProperties.filterLogic),onChange:e.permissionUpdateData(f.filterProperties,"filterLogic")}),r.default.createElement("span",null,i.getText("PERMISSION_LABEL_FILTER_LOGIC")))),((0,d.isNil)(h)||h.reports.filterProperties.crossFiltering)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.filterProperties.crossFiltering),onChange:e.permissionUpdateData(f.filterProperties,"crossFiltering")}),r.default.createElement("span",null,i.getText("PERMISSION_LABEL_CROSS_FILTERING"))))),a.isTenantSetup&&r.default.createElement(l.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.filterProperties.tenantAccess),onChange:e.permissionUpdateTenantAccess(f,f.filterProperties)}))),((0,d.isNil)(h)||e.checkShowGroupCommon(h.reports.fieldProperties))&&r.default.createElement(l.default.Row,{className:"u_paddingTop u_paddingBottom"},r.default.createElement(l.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},i.getText("COMMON_LABEL_FIELD_PROPERTIES")),r.default.createElement(l.default.Col,{cols:9},((0,d.isNil)(h)||h.reports.fieldProperties.customURL)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,name:"fieldProperties",checked:e.getCheckedCommon(f.fieldProperties.customURL),onChange:e.permissionUpdateData(f.fieldProperties,"customURL")}),r.default.createElement("span",null,i.getText("COMMON_LABEL_CUSTOM_URL")))),((0,d.isNil)(h)||h.reports.fieldProperties.embeddedJavaScript)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,name:"fieldProperties",checked:e.getCheckedCommon(f.fieldProperties.embeddedJavaScript),onChange:e.permissionUpdateData(f.fieldProperties,"embeddedJavaScript")}),r.default.createElement("span",null,i.getText("COMMON_LABEL_EMBEDDED_JAVASCRIPT")))),((0,d.isNil)(h)||h.reports.fieldProperties.subreport)&&r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,name:"fieldProperties",checked:e.getCheckedCommon(f.fieldProperties.subreport),onChange:e.permissionUpdateData(f.fieldProperties,"subreport")}),r.default.createElement("span",null,i.getText("PERMISSION_LABEL_SUBREPORT"))))),a.isTenantSetup&&r.default.createElement(l.default.Col,{cols:1,className:"u_textCenter"},r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.fieldProperties.tenantAccess),onChange:e.permissionUpdateTenantAccess(f,f.fieldProperties)}))),((0,d.isNil)(h)||e.checkShowGroupCommon(h.reports.actions))&&((t=[]).push(r.default.createElement(l.default.Row,{className:"u_paddingTop u_paddingBottom",key:"actionsContent_0"},r.default.createElement(l.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},i.getText("COMMON_LABEL_ACTIONS")),g&&m&&((0,d.isNil)(h)||h.reports.actions.schedule)&&r.default.createElement(l.default.Col,{cols:2},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.schedule),onChange:e.permissionUpdateReportActionSchedule(f.actions)}),r.default.createElement("span",null,i.getText("COMMON_LABEL_SCHEDULE"))))),E&&g&&((0,d.isNil)(h)||h.reports.actions.registerForAlerts)&&r.default.createElement(l.default.Col,{cols:2},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p||!e.getCheckedCommon(f.actions.schedule),checked:e.getCheckedCommon(f.actions.registerForAlerts),onChange:e.permissionUpdateData(f.actions,"registerForAlerts")}),r.default.createElement("span",null,i.getText("PERMISSION_LABEL_REGISTER_TO_ALERTS"))))),g&&((0,d.isNil)(h)||h.reports.actions.subscribe)&&r.default.createElement(l.default.Col,{cols:2},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.subscribe),onChange:e.permissionUpdateData(f.actions,"subscribe")}),r.default.createElement("span",null,i.getText("COMMON_LABEL_SUBSCRIBE"))))),m&&((0,d.isNil)(h)||h.reports.actions.configureAccessRights)&&r.default.createElement(l.default.Col,{cols:3},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.configureAccessRights),onChange:e.permissionUpdateData(f.actions,"configureAccessRights")}),r.default.createElement("span",null,i.getText("PERMISSION_LABEL_CONFIGURE_ACCESS_RIGHT"))))),a.isTenantSetup&&r.default.createElement(l.default.Col,{cols:1,className:"u_textCenter u_floatRight"},r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.tenantAccess),onChange:e.permissionUpdateTenantAccess(f,f.actions)})))),((0,d.isNil)(h)||h.reports.actions.email||h.reports.actions.print||h.reports.actions.exporting)&&t.push(r.default.createElement(l.default.Row,{className:"u_paddingTop u_paddingBottom",key:"actionsContent_1"},r.default.createElement(l.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"}),((0,d.isNil)(h)||h.reports.actions.email)&&r.default.createElement(l.default.Col,{cols:2},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.email),onChange:e.permissionUpdateData(f.actions,"email")}),r.default.createElement("span",null,i.getText("COMMON_LABEL_EMAIL"))))),y&&((0,d.isNil)(h)||h.reports.actions.print)&&r.default.createElement(l.default.Col,{cols:2},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.print),onChange:e.permissionUpdateData(f.actions,"print")}),r.default.createElement("span",null,i.getText("COMMON_LABEL_PRINT"))))),y&&((0,d.isNil)(h)||h.reports.actions.exporting)&&r.default.createElement(l.default.Col,{cols:5},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.exporting),onChange:e.permissionUpdateData(f.actions,"exporting")}),r.default.createElement("span",null,i.getText("COMMON_LABEL_EXPORT"))))),r.default.createElement(l.default.Col,{cols:1}))),((0,d.isNil)(h)||h.reports.actions.viewReportHistory||h.reports.actions.unarchiveReportVersions)&&t.push(r.default.createElement(l.default.Row,{className:"u_paddingTop u_paddingBottom",key:"actionsContent_2"},r.default.createElement(l.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"}),((0,d.isNil)(h)||h.reports.actions.viewReportHistory)&&r.default.createElement(l.default.Col,{cols:2},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.viewReportHistory),onChange:e.permissionUpdateData(f.actions,"viewReportHistory")}),r.default.createElement("span",null,i.getText("PERMISSION_LABEL_VIEW_REPORT_HISTORY"))))),((0,d.isNil)(h)||h.reports.actions.unarchiveReportVersions)&&r.default.createElement(l.default.Col,{cols:7},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.unarchiveReportVersions),onChange:e.permissionUpdateData(f.actions,"unarchiveReportVersions")}),r.default.createElement("span",null,i.getText("PERMISSION_LABEL_UNARCHIVE_REPORT_VERSIONS"))))),r.default.createElement(l.default.Col,{cols:1}))),((0,d.isNil)(h)||h.reports.actions.del||h.reports.actions.overwriteExistingReport)&&t.push(r.default.createElement(l.default.Row,{className:"u_paddingTop u_paddingBottom",key:"actionsContent_3"},r.default.createElement(l.default.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"}),((0,d.isNil)(h)||h.reports.actions.del)&&r.default.createElement(l.default.Col,{cols:2},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.del),onChange:e.permissionUpdateData(f.actions,"del")}),r.default.createElement("span",null,i.getText("COMMON_LABEL_DELETE"))))),((0,d.isNil)(h)||h.reports.actions.overwriteExistingReport)&&r.default.createElement(l.default.Col,{cols:7},r.default.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.default.createElement("label",null,r.default.createElement(s.default,{type:"checkbox",readOnly:c,disabled:p,checked:e.getCheckedCommon(f.actions.overwriteExistingReport),onChange:e.permissionUpdateData(f.actions,"overwriteExistingReport")}),r.default.createElement("span",null,i.getText("PERMISSION_LABEL_OVERWRITE_EXISTING_REPORT"))))),r.default.createElement(l.default.Col,{cols:1}))),t))};p.propTypes={readOnly:n.default.bool,authorization:n.default.object,localization:n.default.object,tenantDetail:n.default.object,permissionStore:n.default.object,permission:n.default.object.isRequired,checkShowGroupCommon:n.default.func,getCheckedCommon:n.default.func},t.default=(0,i.default)(o.default)(p),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(11),n=a(1);t.default=(0,r.withHandlers)({permissionUpdateData:(0,n.curry)(function(e,t,a,r){e.permission.updateData(t,a,r.target.checked)}),permissionUpdateTenantAccess:(0,n.curry)(function(e,t,a,r){e.permission.updateTenantAccess(t,a,r.target.checked)}),permissionUpdateReportActionSchedule:(0,n.curry)(function(e,t,a){e.permission.updateReportActionSchedule(t,a.target.checked)})}),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y;r=a(0),n=a(4),i=a(15),o=a(19),l=a(2836),s=a(2837),u=a(2838),d=a(138),c=a(100).SECTION,p=a(24),f=a(49),h=a(170),m=a(1),g=m.isNil,E=m.get,y=r.createClass({displayName:"PermissionDashboards",propTypes:{permission:r.PropTypes.object.isRequired},componentWillMount:function(){this.dashboards=this.props.permission.dashboards},render:function(){var e=p.notifyChange,t=this.props.permissionStore,a=this.props.permission,n=t.tenantDetail,d=this.props.localization,m=this.props.authorization,y=this.props.isTemplatePermissions,v=m.checkLicense(f.LICENSE_KEY.Dashboard),T=E("dashboards",n);return v&&!a.fullReportAndDashboardAccess&&(g(n)||0!==n.dashboards.tenantAccess)&&r.createElement("div",{className:c.Dashboards},r.createElement(i,{className:"izenda-GridLayout-Custom"},r.createElement(i.Row,{className:"u_textBold u_paddingTop u_paddingBottom izenda-PermissionCategory-Header"},r.createElement(i.Col,{cols:2},r.createElement("div",{id:"hash",className:"u_inlineBlock "},r.createElement("a",{className:this.props.getIconClass("isShowDashboards"),onClick:this.props.toggle.bind(this,"isShowDashboards")}),r.createElement("span",null,d.getText("PERMISSION_LABEL_DASHBOARDS")))),r.createElement(i.Col,{cols:9},r.createElement(h,{permission:a,readOnly:this.props.readOnly,disabled:y,section:this.dashboards,tenantPermission:T,tenantDetail:n})),a.isTenantSetup&&r.createElement(i.Col,{cols:1,className:"u_textCenter"},r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:y,indeterminate:this.props.getIndeterminateCommon(this.dashboards),checked:this.props.getCheckedCommon(this.dashboards.tenantAccess),onChange:e(a.updateTenantAccessParent.bind(a,this.dashboards),p.CHECKBOX)})))),t.isShowDashboards&&r.createElement("div",null,r.createElement(l,this.props),r.createElement(s,this.props),r.createElement(u,this.props)))}}),e.exports=n(d)(y)},function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(0),n=a(4),i=a(15),o=a(19),l=a(24),s=a(1).isNil,u=r.createClass({displayName:"PermissionDashboardHeader",propTypes:{permission:r.PropTypes.object.isRequired},componentWillMount:function(){this.dashboards=this.props.permission.dashboards},render:function(){var e=l.notifyChange,t=this.props.permission,a=this.props.permissionStore.tenantDetail,n=this.props.localization,u=this.props.isTemplatePermissions;return r.createElement(i,{className:"izenda-GridLayout-Custom"},(s(a)||this.props.checkShowGroupCommon(a.dashboards.canCreateNewDashboard))&&r.createElement(i.Row,{className:"u_paddingTop u_paddingBottom"},r.createElement(i.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},n.getText("PERMISSION_LABEL_CAN_CREATE_DASHBOARD")),r.createElement(i.Col,{cols:9},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:u,checked:this.props.getCheckedCommon(this.dashboards.canCreateNewDashboard.value),onChange:e(t.updateData.bind(t,this.dashboards.canCreateNewDashboard,"value"),l.CHECKBOX)}))),t.isTenantSetup&&r.createElement(i.Col,{cols:1,className:"u_textCenter"},r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:u,checked:this.props.getCheckedCommon(this.dashboards.canCreateNewDashboard.tenantAccess),onChange:e(t.updateTenantAccess.bind(t,this.dashboards,this.dashboards.canCreateNewDashboard),l.CHECKBOX)}))),!t.isTenantSetup&&r.createElement(i.Row,{className:"u_paddingTop u_paddingBottom"},r.createElement(i.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},n.getText("PERMISSION_LABEL_DISPLAY_TILE_HEADER_IN_UNEDITABLE_DASHBOARD")),r.createElement(i.Col,{cols:9},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:u,checked:this.props.getCheckedCommon(this.dashboards.displayDashboardTileHeader.value),onChange:e(t.updateData.bind(t,this.dashboards.displayDashboardTileHeader,"value"),l.CHECKBOX)})))),(s(a)||this.props.checkShowGroupCommon(a.dashboards.dashboardCategoriesSubcategories))&&r.createElement(i.Row,{className:"u_paddingTop u_paddingBottom"},r.createElement(i.Col,{className:"izenda-PermissionCategory-SubCategory"},n.getText("PERMISSION_LABEL_DASHBOARD_CATEGORIES_SUBCATEGORIES"))),(s(a)||this.props.checkShowGroupCommon(a.dashboards.dashboardCategoriesSubcategories.canCreateNewCategory))&&r.createElement(i.Row,{className:"u_paddingTop u_paddingBottom"},r.createElement(i.Col,{cols:2,className:"izenda-PermissionCategory-SubSubCategory"},n.getText("PERMISSION_LABEL_CAN_CREATE_CATEGORY")),r.createElement(i.Col,{cols:9},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group_left"},r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:u,checked:this.props.getCheckedCommon(this.dashboards.dashboardCategoriesSubcategories.canCreateNewCategory.value),onChange:e(t.updateData.bind(t,this.dashboards.dashboardCategoriesSubcategories.canCreateNewCategory,"value"),l.CHECKBOX)}))),t.isTenantSetup&&r.createElement(i.Col,{cols:1,className:"u_textCenter"},r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:u,checked:this.props.getCheckedCommon(this.dashboards.dashboardCategoriesSubcategories.canCreateNewCategory.tenantAccess),onChange:e(t.updateTenantAccess.bind(t,this.dashboards,this.dashboards.dashboardCategoriesSubcategories.canCreateNewCategory),l.CHECKBOX)}))))}}),e.exports=n()(u)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f=a(14),h=(r=f)&&r.__esModule?r:{default:r};n=a(0),i=a(4),o=a(15),l=a(19),s=a(24),u=a(1336),d=a(336).TENANT_PERMISSIONS.DASHBOARD.CATEGORY_ACCESSIBILITY,c=a(100),p=n.createClass({displayName:"PermissionDashboardBody",propTypes:{permission:n.PropTypes.object.isRequired},componentWillMount:function(){var e=this.props.permissionStore;this.dashboards=this.props.permission.dashboards,this.afterSwitchTree=e.updateDashboardAccessibilityCategory.bind(e)},render:function(){var e=s.notifyChange,t=this.props.permissionStore,a=this.props.permission,r=(t.tenantDetail,this.props.localization);return!t.isTenantSetup&&n.createElement(o,null,n.createElement(o.Row,{className:"u_paddingTop u_paddingBottom u_borderBottom u_noMarginAll"},n.createElement(o.Col,{cols:2,className:"izenda-PermissionCategory-SubSubCategory"},r.getText("PERMISSION_LABEL_CATEGORY_ACCESSIBILITY")),n.createElement(o.Col,{cols:9},n.createElement("div",{className:"u_inlineBlock u_fullWidth"},n.createElement(u,(0,h.default)({},this.props,{typeName:c.SECTION.Dashboards,leftHeader:d.AVAILABLE_TREE_HEADER,rightHeader:d.SAVABLE_TREE_HEADER,middleHeader:d.VISIBLE_TREE_HEADER,categoryPermission:this.props.permissionStore.dashboardCategoryAccessibility,afterSwitchTree:this.afterSwitchTree})))),t.isTenantSetup&&n.createElement(o.Col,{cols:1,className:"u_textCenter"},n.createElement(l,{type:"checkbox",readOnly:this.props.readOnly,checked:this.props.getCheckedCommon(this.dashboards.dashboardCategoriesSubcategories.categoryAccessibility.tenantAccess),onChange:e(a.updateTenantAccess.bind(a,this.dashboards,this.dashboards.dashboardCategoriesSubcategories.categoryAccessibility),s.CHECKBOX)}))))}}),e.exports=i()(p)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),n=a(4),i=a(15),o=a(19),l=a(24),s=a(49),u=a(1).isNil,d=r.createClass({displayName:"PermissionDashboardFooter",propTypes:{permission:r.PropTypes.object.isRequired},componentWillMount:function(){this.dashboards=this.props.permission.dashboards},render:function(){var e=l.notifyChange,t=this.props.permission,a=this.props.permissionStore.tenantDetail,n=this.props.localization,d=this.props.authorization,c=this.props.isTemplatePermissions,p=d.checkLicense(s.LICENSE_KEY.Scheduling),f=d.checkLicense(s.LICENSE_KEY.Exporting);return(u(a)||this.props.checkShowGroupCommon(a.dashboards.actions))&&r.createElement(i,{className:"izenda-GridLayout-Custom"},r.createElement(i.Row,{className:"u_paddingTop u_paddingBottom"},r.createElement(i.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"},n.getText("COMMON_LABEL_ACTIONS")),p&&(u(a)||a.dashboards.actions.schedule)&&r.createElement(i.Col,{cols:2},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.createElement("label",null,r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:c,checked:this.props.getCheckedCommon(this.dashboards.actions.schedule),onChange:e(t.updateData.bind(t,this.dashboards.actions,"schedule"),l.CHECKBOX)}),r.createElement("span",null,n.getText("COMMON_LABEL_SCHEDULE"))))),p&&(u(a)||a.dashboards.actions.subscribe)&&r.createElement(i.Col,{cols:2},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.createElement("label",null,r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:c,checked:this.props.getCheckedCommon(this.dashboards.actions.subscribe),onChange:e(t.updateData.bind(t,this.dashboards.actions,"subscribe"),l.CHECKBOX)}),r.createElement("span",null,n.getText("COMMON_LABEL_SUBSCRIBE"))))),(u(a)||a.dashboards.actions.configureAccessRights)&&r.createElement(i.Col,{cols:5},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.createElement("label",null,r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:c,checked:this.props.getCheckedCommon(this.dashboards.actions.configureAccessRights),onChange:e(t.updateData.bind(t,this.dashboards.actions,"configureAccessRights"),l.CHECKBOX)}),r.createElement("span",null,n.getText("PERMISSION_LABEL_CONFIGURE_ACCESS_RIGHT"))))),t.isTenantSetup&&r.createElement(i.Col,{cols:1,className:"u_textCenter pull-right"},r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:c,checked:this.props.getCheckedCommon(this.dashboards.actions.tenantAccess),onChange:e(t.updateTenantAccess.bind(t,this.dashboards,this.dashboards.actions),l.CHECKBOX)}))),(u(a)||a.dashboards.actions.email||a.dashboards.actions.print)&&r.createElement(i.Row,{className:"u_paddingTop u_paddingBottom"},r.createElement(i.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"}),(u(a)||a.dashboards.actions.email)&&r.createElement(i.Col,{cols:2},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.createElement("label",null,r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:c,checked:this.props.getCheckedCommon(this.dashboards.actions.email),onChange:e(t.updateData.bind(t,this.dashboards.actions,"email"),l.CHECKBOX)}),r.createElement("span",null,n.getText("COMMON_LABEL_EMAIL"))))),f&&(u(a)||a.dashboards.actions.print)&&r.createElement(i.Col,{cols:2},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.createElement("label",null,r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:c,checked:this.props.getCheckedCommon(this.dashboards.actions.print),onChange:e(t.updateData.bind(t,this.dashboards.actions,"print"),l.CHECKBOX)}),r.createElement("span",null,n.getText("COMMON_LABEL_PRINT"))))),f&&(u(a)||a.dashboards.actions.exporting)&&r.createElement(i.Col,{cols:5},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.createElement("label",null,r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:c,checked:this.props.getCheckedCommon(this.dashboards.actions.exporting),onChange:e(t.updateData.bind(t,this.dashboards.actions,"exporting"),l.CHECKBOX)}),r.createElement("span",null,n.getText("COMMON_LABEL_EXPORT"))))),r.createElement(i.Col,{cols:1})),(u(a)||a.dashboards.actions.del||a.dashboards.actions.overwriteExistingDashboard)&&r.createElement(i.Row,{className:"u_paddingTop u_paddingBottom"},r.createElement(i.Col,{cols:2,className:"izenda-PermissionCategory-SubCategory"}),(u(a)||a.dashboards.actions.del)&&r.createElement(i.Col,{cols:2},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.createElement("label",null,r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:c,checked:this.props.getCheckedCommon(this.dashboards.actions.del),onChange:e(t.updateData.bind(t,this.dashboards.actions,"del"),l.CHECKBOX)}),r.createElement("span",null,n.getText("COMMON_LABEL_DELETE"))))),(u(a)||a.dashboards.actions.overwriteExistingDashboard)&&r.createElement(i.Col,{cols:7},r.createElement("div",{className:"u_inlineBlock izenda-PermissionCategory-group"},r.createElement("label",null,r.createElement(o,{type:"checkbox",readOnly:this.props.readOnly,disabled:c,checked:this.props.getCheckedCommon(this.dashboards.actions.overwriteExistingDashboard),onChange:e(t.updateData.bind(t,this.dashboards.actions,"overwriteExistingDashboard"),l.CHECKBOX)}),r.createElement("span",null,n.getText("PERMISSION_LABEL_OVERWRITE_EXISTING_DASHBOARD"))))),r.createElement(i.Col,{cols:1})))}}),e.exports=n()(d)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=N(a(14)),l=N(a(6)),s=N(a(2)),u=N(a(3)),d=N(a(7)),c=N(a(8)),p=a(0),f=N(p),h=N(a(13)),m=N(a(4)),g=N(a(138)),E=a(1),y=N(a(24)),v=N(a(1337)),T=N(a(15)),_=N(a(19)),S=N(a(783)),C=a(100),b=a(119);function N(e){return e&&e.__esModule?e:{default:e}}var A=(0,m.default)({toClass:!0},g.default)((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u1)&&c(e,t.root.childNodes)},getChildNodes:function(e){var t=this.props.showSelected;return f(function(e){return!p("selected",e.dataSource)||e.dataSource.selected===t},e.childNodes)}});e.exports=n()(h)}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g;r=a(0),a(35),n=a(4),i=a(10),o=a(190),l=a(69),s=a(1),u=s.has,d=s.some,c=s.cond,p=s.matches,f=s.constant,h=s.isNil,m=s.filter,g=r.createClass({displayName:"DataSourceTreeItem",propTypes:{store:r.PropTypes.object.isRequired,node:r.PropTypes.object.isRequired,filter:r.PropTypes.string,showSelected:r.PropTypes.bool,toggleIcon:r.PropTypes.element},render:function(){var e=this.props.node,t=(e.dataSource,this.props.filter),a=this.props.showSelected,n=this.props.toggleIcon,s=i({"disabled-elm":y(e)}),g=i("u_curPointer",{"tree-item":!e.isTypeGroup()}),E=e.childCount(function(e){return!u("selected",e.dataSource)||e.dataSource.selected===a});function y(e){return e.isTypeGroup()&&0===E}return r.createElement("div",{className:s,key:e.id},r.createElement("label",{className:g,key:e.id,disabled:y(e)?"disabled":null,onClick:this.onClick},r.createElement(l,{highlight:t,text:e.name}),function(e,t){return e.isTypeGroup()&&e.childNodes?r.createElement("span",null," (",t,")"):null}(e,E),function(e,t){var a="";if(e.isTypeGroup()&&e.childNodes)a=v(e).length>0?r.createElement("span",{className:"icon-attention warning-color",title:o.DATA_SOURCE_CHANGES}):"";else if(t>0){var n=d(function(e){return v(e).length>0},e.childNodes);n&&(a=r.createElement("span",{className:"icon-attention warning-color",title:o.DATA_SOURCE_CHANGES}))}else a=function(e){var t=T(e.approval,e.change,o.DETECTED_CHANGE_LEVEL.ADDED),a=T(e.approval,e.change,o.DETECTED_CHANGE_LEVEL.MODIFIED),n=T(e.approval,e.change,o.DETECTED_CHANGE_LEVEL.DELETED),l=i({"icon-fields success-color":t,"icon-attention warning-color":a,"icon-fields fail-color":n}),s=c([[p({isNew:!0}),f(o.NEW_DATA_SOURCE)],[p({isEdit:!0}),f(o.DATA_SOURCE_CHANGES)],[p({isDelete:!0}),f(o.DELETED_DATA_SOURCE)]])({isNew:t,isEdit:a,isDelete:n});return r.createElement("span",{className:l,title:s})}(e);return a}(e,E)),n);function v(e){return m(function(e){return(h(e.approval)||e.approval<1)&&e.change&&e.change!==o.DETECTED_CHANGE_LEVEL.NONE&&e.selected==a},e.childNodes)}function T(e,t,a){return(h(e)||e<1)&&t===a}},onClick:function(e){var t=this.props,a=t.store.item,r=t.localization,n=t.confirmFn,i=t.showSelected,o=t.node,l=o.dataSource,s=function(){o.toggleSelect(i)&&(a.markDirty(),a.markAvailableDataSourceChange())};l.group?d({selected:i,disabled:!0},l.querySources)?n("Confirmation",{description:r.getText("CONNECTION_CAN_NOT_MOVE_CUSTOM_VIEW"),showCancel:!1}).then(s):s():l.disabled?n("Information",{type:"error",description:r.getText("CONNECTION_CAN_NOT_MOVE_CUSTOM_VIEW"),showCancel:!1,showCloseIndicator:!0}):s()}}),e.exports=n()(g)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=D(a(20)),l=D(a(6)),s=D(a(2)),u=D(a(3)),d=D(a(7)),c=D(a(8)),p=a(0),f=D(p),h=D(a(13)),m=a(24),g=a(1),E=D(a(16)),y=D(a(714)),v=D(a(4)),T=D(a(12)),_=D(a(26)),S=D(a(98)),C=D(a(169)),b=D(a(2874)),N=D(a(2875)),A=D(a(781)),R=(D(a(786)),D(a(1338))),O=D(a(550)),I=(D(a(785)),D(a(787)));function D(e){return e&&e.__esModule?e:{default:e}}var P=(0,v.default)()((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,u=Array(i),c=0;c0&&t.setConnectionDetail(t.list[0]),null}).finally(e.endLoading.bind(e))}},{key:"shouldComponentUpdate",value:function(e){return!(0,y.default)(e,this.props)}},{key:"openExcelFileUploadPopup",value:function(e){var t=this.props;return I.default.openUploadExcelPopup(t,e)}},{key:"renderHeaderContent",value:function(){var e=this.props.store;return f.default.createElement("div",{className:"izenda-MiddlePanel-search"},f.default.createElement("a",{className:"u_block overflow-text",onClick:this.addNewConnection,title:T.default.getText("CONNECTION_LABEL_ADD_CONNECTION")},f.default.createElement("span",{className:"icon-plus"}),T.default.getText("CONNECTION_LABEL_ADD_CONNECTION")),f.default.createElement("div",{className:"search-box"},f.default.createElement(S.default,{value:e.filter,onChange:(0,m.notifyChange)(e.setFilter.bind(e),m.INPUT),onKeyPress:this.selectSearchedConnection})),f.default.createElement("hr",null))}},{key:"renderListConnection",value:function(){var e=this.props,t=e.isMiddlePanelMinimum,a=e.store;return f.default.createElement("div",{className:"izenda-ConnectionList-content izenda-MiddlePanel-content"},f.default.createElement(_.default,null,f.default.createElement(C.default,{itemClass:"connection-string-item"},a.filteredConnections.map(function(e,r){return f.default.createElement(b.default,{key:r,dataSource:e,store:a,isMiddlePanelMinimum:t})}))))}},{key:"render",value:function(){return f.default.createElement("div",{className:"izenda-ConnectionList u_fullHeight u-posRelative u-bgWhite izenda-Middle-section"},this.renderHeaderContent(),this.renderListConnection())}}]),t}(p.Component),n.propTypes={isMiddlePanelMinimum:h.default.bool,store:h.default.object.isRequired},n.defaultProps={isMiddlePanelMinimum:!1},r=i))||r;t.default=P,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=S(a(80)),l=S(a(6)),s=S(a(2)),u=S(a(3)),d=S(a(7)),c=S(a(8)),p=a(0),f=S(p),h=S(a(13)),m=(a(5),S(a(10))),g=S(a(190)),E=S(a(16)),y=S(a(12)),v=S(a(69)),T=S(a(4)),_=a(1);function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,T.default)()((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u0?e.height:this.uiStore.defaultHeight,n=p(t.selectedQuerySource,t.querySourceList);return r.createElement("div",{className:"izenda-Wrapper-content"},r.createElement(o,null,r.createElement("section",{className:"u_paddingLeftRight u_fullHeight"},r.createElement(s,{store:t,querySourceType:this.props.querySourceType,height:a,searchProperty:e.searchProperty,searchValue:e.searchValue,isNotHighLight:e.isNotHighLight,isLoading:e.isLoading}),t.selectedQuerySource&&e.querySourceType!==d.FUNCTION&&r.createElement(u,{store:t.selectedQuerySource,querySourceType:t.querySourceType,querySourceIndex:n,height:a,searchProperty:e.searchProperty,searchValue:e.searchValue}))))}}),e.exports=i(l)(f)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=L(a(14)),l=L(a(6)),s=L(a(2)),u=L(a(3)),d=L(a(7)),c=L(a(8)),p=a(0),f=L(p),h=L(a(10)),m=L(a(44)),g=a(249),E=L(g),y=L(a(168)),v=a(46),T=L(a(116)),_=L(a(2883)),S=L(a(2884)),C=L(a(2885)),b=L(a(2886)),N=L(a(779)),A=L(a(75)),R=L(a(25)),O=L(a(4)),I=L(a(1343)),D=L(a(2888)),P=a(1);function L(e){return e&&e.__esModule?e:{default:e}}var M=(0,R.default)()(a(19)),F=y.default.QUERY_SOURCE_TYPE,k=(0,O.default)()((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u0&&F.FUNCTION===t.querySourceType?e.height-E.default.DEFAULT_REST_HEIGHT:E.default.DEFAULT_TABLE_HEIGHT,r=g.TableDefinition.QuerySourceType;return f.default.createElement("section",null,f.default.createElement(v.Table,{dataSource:t.querySourceList,rowProps:this.getRowProps,onSortChange:this.onSortChange,sortInfo:t.pageInfo.colSortDirs,minHeight:a,maxHeight:a,isLoading:e.isLoading},F.FUNCTION!==t.querySourceType&&f.default.createElement(v.Column,(0,o.default)({},r.category,{cell:_.default.render.bind(this)})),f.default.createElement(v.Column,(0,o.default)({},r.dbName,{cell:this.renderDbName})),F.FUNCTION!==t.querySourceType&&f.default.createElement(v.Column,(0,o.default)({},r.dbSourceName,{cell:this.renderDbSourceName})),F.FUNCTION===t.querySourceType&&f.default.createElement(v.Column,(0,o.default)({},r.functionName,{cell:this.renderFunctionName})),F.FUNCTION!==t.querySourceType&&f.default.createElement(v.Column,(0,o.default)({},r.dbSourceAlias,{cell:this.renderDbSourceAlias})),F.STORED_PROC===t.querySourceType&&f.default.createElement(v.Column,(0,o.default)({},r.dynamic,{align:"center",cell:b.default.render.bind(this)})),F.FUNCTION===t.querySourceType&&f.default.createElement(v.Column,(0,o.default)({},r.returnedValue,{cell:this.renderReturnedValue})),F.FUNCTION===t.querySourceType&&f.default.createElement(v.Column,(0,o.default)({},r.inputParams,{cell:this.renderInputParams})),F.FUNCTION===t.querySourceType&&f.default.createElement(v.Column,(0,o.default)({},r.fieldLevel,{align:"center",cell:S.default.render.bind(this)})),F.FUNCTION===t.querySourceType&&f.default.createElement(v.Column,(0,o.default)({},r.expressionLevel,{align:"center",cell:C.default.render})),F.FUNCTION!==t.querySourceType&&f.default.createElement(v.Column,(0,o.default)({},r.controlBtn,{align:"center",cell:this.renderButtonCtrls}))),f.default.createElement(T.default,{onChange:this.goToPage,onDropdownChange:this.onPageSizeChange,totalRecords:t.totalRecords,pageSize:t.pageInfo.pageSize,pageIndex:t.pageInfo.pageIndex}))}}]),t}(p.Component),n.propTypes={store:f.default.PropTypes.object.isRequired,searchProperty:f.default.PropTypes.string,searchValue:f.default.PropTypes.string},r=i))||r;t.default=k,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(0),r=a(47),n=a(12),i=a(1),o=i.find,l=i.trim;i.template;function s(){return!1}e.exports={render:function(e){var a=this.props,i=a.store,u=function(e){!o({name:l(e.name)},i.categoryList.categoryMetadatas)&&i.categoryList.addCategory(l(e.id),l(e.name),null)},d=n.getText("QUERY_SOURCE_TYPE_CONFIG_LABEL_CATEGORY_COLUMN_ENTER_TO_CREATE_COLUMN");return a.authorization.checkPrivileges([a.authorizationConstants.PERMISSION_KEY.DataSetupAdvancedSettingsCategory])||(u=s,d=null),t.createElement(r,{simpleValue:!0,options:i.categoryList.categoryMetadatas,labelKey:"name",valueKey:"id",inputProps:{maxLength:"50"},value:e.getCategory(),noResultsText:d,onChange:function(t,a,r){t=null;var n=o({name:l(a)},i.categoryList.categoryMetadatas);return n&&(t=n.isNew?null:n.id,a=n.name,r=n.isNew),e.setCategory(t,a,r)},onAddNew:u})}}}()},function(e,t,a){"use strict";!function(){var t=a(0);e.exports={render:function(e){var a=(e.getInputParams()||"").indexOf(",")>-1;return t.createElement("div",null,t.createElement("input",{type:"checkbox",checked:e.getFieldLevel(),onChange:function(t){e.setFieldLevel(t.target.checked)},disabled:a}))}}}()},function(e,t,a){"use strict";!function(){var t=a(0);e.exports={render:function(e){return t.createElement("div",null,t.createElement("input",{type:"checkbox",checked:e.getExpressionLevel(),onChange:function(t){e.setExpressionLevel(t.target.checked)}}))}}}()},function(e,t,a){"use strict";!function(){var t=a(0);e.exports={render:function(e){var a=this.props,r=this.props.store.getBundle().MESSAGE;return t.createElement("input",{type:"checkbox",checked:e.isDynamic(),disabled:e.isStatic(),onChange:function(t){var n=t.target.checked,i=function(){e.setDynamic(n)};e.isDynamic()?i():a.confirmFn("Confirmation",{description:r.MG02}).then(function(){i()})}.bind(this)})}}}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p,f,h,m,g=v(a(17)),E=v(a(2)),y=a(5);function v(e){return e&&e.__esModule?e:{default:e}}function T(e,t,a,r){a&&(0,g.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function _(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var S=(n=_((r=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.default)(this,e),T(this,"databases",n,this),T(this,"schemas",i,this),T(this,"viewName",o,this),T(this,"databaseId",l,this),T(this,"databaseName",s,this),T(this,"schemaId",u,this),T(this,"schemaName",d,this),T(this,"query",c,this),this.isLastPageDatabase=!1,this.isLastPageSchema=!1,this.id=null,T(this,"updateViewName",p,this),T(this,"setDatabase",f,this),T(this,"setSchema",h,this),T(this,"updateQuery",m,this),this.id=t.id,this.viewName=t.realName,this.databaseId=t.connectionId,this.databaseName=t.connectionName,this.schemaId=t.categoryId,this.schemaName=t.querySourceCategoryName,this.query=t.customDefinition}).prototype,"databases",[y.observable],{enumerable:!0,initializer:function(){return[]}}),i=_(r.prototype,"schemas",[y.observable],{enumerable:!0,initializer:function(){return[]}}),o=_(r.prototype,"viewName",[y.observable],{enumerable:!0,initializer:function(){return null}}),l=_(r.prototype,"databaseId",[y.observable],{enumerable:!0,initializer:function(){return null}}),s=_(r.prototype,"databaseName",[y.observable],{enumerable:!0,initializer:function(){return null}}),u=_(r.prototype,"schemaId",[y.observable],{enumerable:!0,initializer:function(){return null}}),d=_(r.prototype,"schemaName",[y.observable],{enumerable:!0,initializer:function(){return null}}),c=_(r.prototype,"query",[y.observable],{enumerable:!0,initializer:function(){return""}}),p=_(r.prototype,"updateViewName",[y.action],{enumerable:!0,initializer:function(){var e=this;return function(t){var a=t.target.value;e.viewName=a}}}),f=_(r.prototype,"setDatabase",[y.action],{enumerable:!0,initializer:function(){var e=this;return function(t,a){e.databaseId=t,e.databaseName=a,e.schemaId=null,e.schemaName=null,e.schemas=[]}}}),h=_(r.prototype,"setSchema",[y.action],{enumerable:!0,initializer:function(){var e=this;return function(t,a){e.schemaId=t,e.schemaName=a}}}),m=_(r.prototype,"updateQuery",[y.action],{enumerable:!0,initializer:function(){var e=this;return function(t){var a=t.target.value;e.query=a}}}),r);t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=h(a(6)),i=h(a(2)),o=h(a(3)),l=h(a(7)),s=h(a(8)),u=a(0),d=h(u),c=h(a(4)),p=h(a(32)),f=h(a(1344));function h(e){return e&&e.__esModule?e:{default:e}}var m=(0,c.default)()(r=function(e){function t(){var e,a,r,o;(0,i.default)(this,t);for(var s=arguments.length,u=Array(s),d=0;d0?a-h.DEFAULT_DETAIL_REST_HEIGHT:h.DEFAULT_TABLE_HEIGHT;p=p>h.DEFAULT_TABLE_HEIGHT?p:h.DEFAULT_TABLE_HEIGHT;var f=null;d&&"Stored Procedure"!==this.props.querySourceType&&(f=this.renderPredictedFieldButton());var E=(0,k.extendColumnDefinitionProps)(w.visible,this.onSelectAllVisible,l),y=(0,m.every)(function(e){return e.isDisabledFilterable},c),T=(0,k.extendColumnDefinitionProps)(w.filterable,this.onSelectAllFilterable,u,y);return v.default.createElement("section",{className:"izenda-SubTable"},v.default.createElement("div",{className:"title"},v.default.createElement("div",{className:"content"},v.default.createElement("strong",{className:"db-name"},t.getDbSourceName())),v.default.createElement("div",null,this.renderAddCalculatedFieldButton(),f,this.renderExecuteButton())),v.default.createElement(_.Table,{dataSource:c,onSortChange:this.onSortChange,sortInfo:t.pageInfo.colSortDirs,isHighLight:this.isHighLight,minHeight:p,maxHeight:p,isLoading:!0},v.default.createElement(_.Column,(0,s.default)({},w.columnName,{cell:this.renderColumnName})),v.default.createElement(_.Column,(0,s.default)({},w.dataType,{cell:this.renderDataType})),v.default.createElement(_.Column,(0,s.default)({},w.columnAlias,{cell:this.renderColumnAlias})),v.default.createElement(_.Column,(0,s.default)({},w.filter,{align:"center",cell:this.renderFilterValueColumns})),v.default.createElement(_.Column,(0,s.default)({},E,{align:"center",cell:this.renderVisible})),v.default.createElement(_.Column,(0,s.default)({},T,{align:"center",cell:this.renderFilterable})),g.QUERY_SOURCE_TYPE.STORED_PROC!==r&&v.default.createElement(_.Column,(0,s.default)({},w.deletable,{align:"center",cell:this.renderDeleteColumn}))),n&&t.isEditingFilter&&v.default.createElement(b.default,{querySourceDetailStore:t}))}},{key:"renderExecuteButton",value:function(){var e=this.props,t=e.localization,a=e.querySourceType,r=e.store;if(g.QUERY_SOURCE_TYPE.STORED_PROC!==a)return null;return v.default.createElement(S.default,{label:t.getText("COPY_MANAGEMENT_LABEL_EXECUTE"),className:"u_floatRight btn-setting-default",onClick:function(){r.executeStoreProc()},disabled:r.isDynamic()})}},{key:"renderAddCalculatedFieldButton",value:function(){var e=this,t=this.props,a=t.localization,r=t.store,n=t.querySourceType;if(g.QUERY_SOURCE_TYPE.STORED_PROC===n)return null;return v.default.createElement(S.default,{className:"u_floatRight btn-setting-default",label:a.getText("COPY_MANAGEMENT_LABEL_ADD_FIELD"),onClick:function(){r.loadFieldNameForExpression(),e.props.openPopup(R.default,{store:r.calculatedStore,onClose:e.closeCalculatedPopup,type:D.TYPES.ADD,querySourceId:r.details.id,value:{},expressionConfig:h.EXPRESSION_SELECTION,isCheckDuplicateWithActualField:!1})}})}},{key:"renderPredictedFieldButton",value:function(){var e=this,t=this.props,a=this.props,r=a.localization,n=a.store,i=a.loader,o=this.state;o.checkPredictionServerStatus,o.dbserverStatus;return v.default.createElement(S.default,{className:"u_floatRight btn-setting-default set-apart-btn",label:r.getText("COPY_MANAGEMENT_LABEL_PREDICTED_FIELD"),onClick:function(){n.predictedFieldStore.fetchFromFetcher(n.details.id).then(function(a){n.PreditectedDetailList=JSON.parse(a),!1!==n.PreditectedDetailList.success?t.openPopup(O.default,{store:n.predictedFieldStore,onClose:e.closePredictablePopup,type:P.PM_TYPES.ADD,querySourceId:n.details.id,fieldList:n.fieldList,value:{},isCheckDuplicateWithActualField:!1}):t.openPopup(I.default,{store:n.predictedFieldStore,type:P.PM_TYPES.ADD}),i.endLoading()}).catch(function(e){})}})}}]),t}(y.Component),n.propTypes={store:M.default.object.isRequired,searchProperty:M.default.string,searchValue:M.default.string},o=function(){var e=this;this.state={selectAllCheckedVisible:!1,selectAllCheckedFilterable:!1},this.updateStateVisible=function(t){e.state.selectAllCheckedVisible!==t&&(e.setState({selectAllCheckedVisible:t}),t||e.updateStateFilterable(!1))},this.updateStateFilterable=function(t){e.state.selectAllCheckedFilterable!==t&&e.setState({selectAllCheckedFilterable:t})},this.setSelectAllVisibleDefaults=function(t){var a=t.store.displayFieldList,r=(0,m.every)("isVisible",a);e.updateStateVisible(r)},this.setSelectAllFilterableDefaults=function(t){var a=t.store.displayFieldList,r=(0,m.filter)(function(e){return!e.isDisabledFilterable},a),n=!(0,m.isEmpty)(r)&&(0,m.every)("isFilterable",r);e.updateStateFilterable(n)},this.onSelectAllVisible=function(t){var a=e.props.store.displayFieldList;(0,m.forEach)(function(e){return e.setVisible(t)},a),e.updateStateVisible(t)},this.onSelectAllFilterable=function(t){var a=e.props.store.displayFieldList,r=(0,m.filter)(function(e){return!e.isDisabledFilterable},a);r.length&&((0,m.forEach)(function(e){return e.setFilterable(t)},r),e.updateStateFilterable(t))},this.onSortChange=function(t,a){var r=e.props,n=r.store,i=r.store,o=i.hasDetailChange,s=i.pageInfo,u=(0,l.resolve)();o&&(u=e.props.confirmDirtyForm(o)),u.then(function(){s.setColSortDirs(t,a),n.loadQuerySourceFields()})},this.renderColumnName=function(t){var a=t.details,r=a.physicalChange,n=a.approval,i=a.matchedTenant,o=!!t.details.isCalculated,l=!!t.details.isPredicated,s=t.getColumnName(),u=function(){var e=n-1||e.name.indexOf("[")>-1)}},{key:"render",value:function(){var e=this.props,t=e.localization,a=e.type,r=e.store,n=e.validation,i=e.reportDesigner,o=e.reportPart,l=e.requireLabel,s=e.querySourceId;return p.default.createElement(E.default,{visible:!0,onClosing:this.onClosing,autoClose:!1,type:"none",sizeClass:"modal-lg",showLoading:this.uiStore.showLoading},p.default.createElement(E.default.Header,{title:a.title}),p.default.createElement(E.default.Body,null,p.default.createElement(y.default,{ref:"predictedFieldContainer",store:r,validation:n,type:a,localization:t,reportDesigner:i,reportPart:o,startLoading:this.startLoading,endLoading:this.endLoading,updateError:this.updateError,requireLabel:l,querySourceId:s})),p.default.createElement(E.default.Footer,null,p.default.createElement(E.default.ConfirmationButton,{key:"accept",type:"accept"},t.getText("COMMON_LABEL_OK")),p.default.createElement(E.default.ConfirmationButton,{key:"cancel",type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))}}]),t}(p.default.Component),r.propTypes={store:c.PropTypes.object.isRequired,onClose:c.PropTypes.func.isRequired,type:c.PropTypes.object.isRequired,reportPart:c.PropTypes.object,reportDesigner:c.PropTypes.object,requireLabel:c.PropTypes.bool,isCheckDuplicateWithActualField:c.PropTypes.bool,querySourceId:c.PropTypes.string},r.defaultProps={type:m.default.PM_TYPES.ADD,requireLabel:!0,isCheckDuplicateWithActualField:!0},i=function(){var e=this;this.startLoading=function(){e.uiStore.showLoading=!0},this.endLoading=function(){e.uiStore.showLoading=!1},this.onAcceptClosing=function(){var t=e.props,a=t.store,r=t.validation,n=e.props.querySourceId,i=a.clonedModel.name,o=!1;if(""!==a.clonedModel.name)if(void 0!==a.clonedModel.selectedModel){if(e.fieldExistence=e.props.fieldList.filter(function(e){return e.details.name===i}),e.fieldExistence.length>0){var l=e.fieldExistence[0];if(o=l.getState()===v.default.DELETE&&l.details.id,l.getState!==v.default.DELETE&&null===l.details.id)return void r.updateErrors([{key:m.default.VALIDATION_FIELD_NAME,messages:String.format(m.default.PM_MESSAGES.DUPLICATE_NAME,a.clonedModel.name)}]);o&&(e.fieldExistence=[])}a.validatePredictedFieldExists(i,n).then(function(t){if(!t.result.izendaDataType)return e.props.onClose(a.clonedModel),void e.props.onAccept();r.updateErrors([{key:m.default.VALIDATION_FIELD_NAME,messages:String.format(m.default.PM_MESSAGES.DUPLICATE_NAME,a.clonedModel.name)}])})}else r.updateErrors([{key:m.default.VALIDATION_FIELD_DROPDOWN,messages:String.format(m.default.PM_MESSAGES.EMPTY_FIELD,a.clonedModel.selectedModel)}]);else r.updateErrors([{key:m.default.VALIDATION_FIELD_NAME,messages:String.format(m.default.PM_MESSAGES.EMPTY_FIELD,a.clonedModel.name)}])},this.onCancelClosing=function(t){e.props.validation.reset(),t()},this.onClosing=function(t,a){return"accept"===a?e.onAcceptClosing():"cancel"===a?e.onCancelClosing(function(){e.props.onAccept(),e.props.onClose(),t()}):void 0},this.updateError=function(t){return!!(0,T.isEmpty)(t)||(e.props.validation.updateErrors(t),!1)}},n);t.default=(0,g.default)(h.pure)(S),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(14)),n=p(a(0)),i=a(9),o=p(a(24)),l=p(a(67)),s=p(a(25)),u=p(a(93)),d=p(a(57)),c=p(a(19));function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,s.default)()(c.default),h=(0,i.observer)(function(e){var t=e.type,a=(e.localization,e.store.clonedModel),i=e.requireLabel,s=o.default.notifyChange,c=t.name!==l.default.TYPES.SUB_TOTAL.name&&t.name!==l.default.TYPES.GRAND_TOTAL.name||a.functionName!==l.default.FUNCTION_NAME.NONE?l.default.COLUMN_NAME_CONSTRAINT(t.name):{},p={};return i&&(p.validations=l.default.COLUMN_NAME_CONSTRAINT(t.name),p.field="columnName"),n.default.createElement(u.default,{className:"u_paddingRight addPredictionFields"},n.default.createElement("div",{className:"fieldsWrap"},n.default.createElement("div",{className:"labelWrap"},n.default.createElement(d.default,{className:" text-left validation required"},t.name)),n.default.createElement("div",{className:"a_inputWrap"},n.default.createElement(f,(0,r.default)({value:a.name,className:"form-control",field:"name",onChange:s(a.changeFieldName.bind(a),o.default.INPUT),validations:c},p,{type:"text"})))))});h.displayName="PredictedLabel",t.default=h,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s=T(a(17)),u=T(a(6)),d=T(a(2)),c=T(a(3)),p=T(a(7)),f=T(a(8)),h=T(a(0)),m=a(9),g=a(5),E=T(a(93)),y=T(a(57)),v=T(a(29));function T(e){return e&&e.__esModule?e:{default:e}}var _,S,C,b,N,A,R=(0,m.observer)((l=o=function(e){function t(){var e,a,r,n,o,l,c,f;(0,d.default)(this,t);for(var h=arguments.length,m=Array(h),g=0;g-1||e.name.indexOf("[")>-1)}},{key:"render",value:function(){var e=this.props,t=e.localization,a=e.type;e.store,e.validation,e.reportDesigner,e.reportPart,e.expressionConfig,e.requireLabel,e.querySourceId;return p.default.createElement(E.default,{visible:!0,onClosing:this.onClosing,autoClose:!1,type:"none",sizeClass:"modal-lg",showLoading:this.uiStore.showLoading},p.default.createElement(E.default.Header,{title:a.title}),p.default.createElement(E.default.Body,null,p.default.createElement("p",{style:{textAlign:"center"}},"NO MODELS FOUND")),p.default.createElement(E.default.Footer,null,p.default.createElement(E.default.ConfirmationButton,{key:"cancel",type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))}}]),t}(p.default.Component),r.propTypes={store:c.PropTypes.object.isRequired,onClose:c.PropTypes.func.isRequired,type:c.PropTypes.object.isRequired,reportPart:c.PropTypes.object,reportDesigner:c.PropTypes.object,requireLabel:c.PropTypes.bool,isCheckDuplicateWithActualField:c.PropTypes.bool,querySourceId:c.PropTypes.string},r.defaultProps={type:m.default.TYPES.ADD,requireLabel:!0,isCheckDuplicateWithActualField:!0},i=function(){var e=this;this.startLoading=function(){e.uiStore.showLoading=!0},this.endLoading=function(){e.uiStore.showLoading=!1},this.onAcceptClosing=function(){var t=e.props,a=t.store,r=t.localization,n=t.validation,i=t.requireLabel,o=t.onClose,l=t.onAccept;return e.startLoading(),e.validateExpression(!0).bind(e).then(function(t){return e.endLoading(),t}).then(function(t){if(t)return n.validate().then(function(t){var s=e.validateDuplicateName(),u=e.validateName();return s?(n.updateErrors([{key:m.default.VALIDATION_FIELD_NAME,messages:String.format(m.default.MESSAGES.DUPLICATE_NAME,a.clonedModel.name)}]),null):u?(n.updateErrors([{key:i?m.default.VALIDATION_FIELD_NAME:m.default.VALIDATION_SUB_TOTAL_FIELD_NAME,messages:r.getText("CALCULATED_FIELD_MESSAGE_INVALID_NAME")}]),null):i&&e.validateIzendaDataType()?(n.updateErrors([{key:m.default.VALIDATION_DATA_TYPE,messages:r.getText("CALCULATED_FIELD_MESSAGE_MISSING_DATA_TYPE")}]),null):(t&&(n.reset(),a.acceptClonedModel(),o(a.clonedModel),l()),t)})})},this.onCancelClosing=function(t){e.props.validation.reset(),t()},this.onClosing=function(t,a){return"accept"===a?e.onAcceptClosing():"cancel"===a?e.onCancelClosing(function(){e.props.onAccept(),e.props.onClose(),t()}):void 0},this.validateExpression=function(t){var a=e.props,r=a.store,n=a.validation,i=a.reportDesigner,o=void 0===i?{}:i,l=a.reportPart,s=a.querySourceId,u=a.type,d=(0,y.get)("previewRecord",o);switch(n.reset(),u.name){case m.default.TYPES.SUB_TOTAL.name:case m.default.TYPES.GRAND_TOTAL.name:return r.validateExpressionWithReportKey(o,l,t).then(function(t){return e.updateError(t)});default:return r.validateExpression(s,t,d).then(function(t){return e.updateError(t)})}},this.updateError=function(t){return!!(0,y.isEmpty)(t)||(e.props.validation.updateErrors(t),!1)}},n);t.default=(0,g.default)(h.pure)(T),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendColumnDefinitionProps=function(e,t,a,r){var i={onChange:t,isChecked:!!a,isDisabled:!!r,title:e.title};return(0,n.merge)(e,{headerComponent:l,headerComponentProps:i})};var r=o(a(0)),n=a(1),i=o(a(19));function o(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.onChange,a=e.isChecked,n=e.isDisabled,o=e.title;return r.default.createElement("span",null,r.default.createElement("div",null,r.default.createElement("a",{className:"unsort",title:o},o)),r.default.createElement(i.default,{className:"u_marginTop",type:"checkbox",checked:a,disabled:n,onChange:function(e){!n&&t&&t(e.target.checked)}}))}},function(e,t,a){"use strict";var r,n,i,o,l,s;r=a(0),n=a(4),a(10),i=a(32),o=a(15),a(24),l=a(1).some,s=r.createClass({displayName:"ExportDataModelPopup",propTypes:{tree:r.PropTypes.object.isRequired,treeComponent:r.PropTypes.func.isRequired,title:r.PropTypes.string.isRequired,store:r.PropTypes.object.isRequired},render:function(){var e=this.props,t=e.localization;return r.createElement(i,{visible:!0,type:"none",onClosing:this.onClosing,autoClose:!1},r.createElement(i.Header,{title:e.title}),r.createElement(i.Body,null,r.createElement(o,null,r.createElement(o.Row,{className:"izenda-runCopyTree u_borderAll"},this.renderTree()))),r.createElement(i.Footer,null,r.createElement(i.ConfirmationButton,{type:"accept"},t.getText("COMMON_LABEL_OK")),r.createElement(i.ConfirmationButton,{type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))},renderTree:function(){var e=this.props;return r.createElement(e.treeComponent,{tree:e.tree,leafKey:e.leafKey,showCheckbox:!0})},onClosing:function(e,t){var a=this.props,r=a.localization,n=a.store,i=a.tree,o=a.loader;if("accept"===t){if(l(function(e){return e.checked},i.querySources||[])){o.startLoading();return n.exportDataModel(i.querySources,function(){o.endLoading()},function(){o.endLoading(),a.confirmFn("error",{description:r.getText("COMMON_MESSAGES_GENERIC_ERROR"),showCancel:!1})}),a.onAccept()}a.confirmFn("warning",{description:r.getText("DATA_MODEL_MESSAGE_PLEASE_SELECT_DATASOURCE"),showCancel:!1})}else if("cancel"===t)return a.onReject()}}),e.exports=n()(s)},function(e,t,a){"use strict";!function(){var t=a(0),r=(a(24),a(5),a(9).observer,a(10),a(4)),n=a(28),i=a(169),o=a(26),l=a(240),s=a(2920),u=(a(98),a(1).isEmpty);function d(e,a,r){var n=function(e,a){return function(r){return t.createElement(s,{key:r.id,node:r,filter:e.filter.text,showCheckbox:a.showCheckbox,showIcon:a.showIcon})}}(e,r);return function(e,t){return!(u(e.childNodes)&&!e.isTypeGroup()||!(e.isFieldNode&&t||!e.isFieldNode))}(a,r.showFieldNode)?t.createElement(l,{className:"panel-group collapsible-list-items datasource",key:a.id,autoCollapse:!1,defaultExpand:!0},t.createElement(l.Item,{expanded:!0,key:a.id},t.createElement(l.ItemHeader,{className:"panel-heading"},n(a)),t.createElement(l.ItemBody,{className:"panel-body"},t.createElement(i,{className:"list-group",key:a.id},a.childNodes.map(function(t){return r.showSelected&&!t.checked?a.isFieldNode?n(t):null:d(e,t,r)}))))):n(a)}var c=t.createClass({displayName:"SourceTree",propTypes:{tree:t.PropTypes.object.isRequired,showSelected:t.PropTypes.bool,showCheckbox:t.PropTypes.bool,showFieldNode:t.PropTypes.bool,showIcon:t.PropTypes.bool},render:function(){var e=this.props,a=e.tree;return t.createElement(n,{className:"workspace-tree"},t.createElement("div",{className:"workspace-tree-wraper"},t.createElement(o,null,a.root.map(function(t){return t.childNodes.map(function(t){return e.showSelected&&!t.checked?null:d(a,t,e)})}))))}});e.exports=r()(c)}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),a(35),n=a(5),a(9).observer,i=a(4),o=a(10),l=a(69),s=a(19),u=a(24),d=r.createClass({displayName:"SourceTreeItem",propTypes:{node:r.PropTypes.object.isRequired,filter:r.PropTypes.string,showCheckbox:r.PropTypes.bool,showIcon:r.PropTypes.bool},render:function(){var e=this.props.node,t=this.props.filter,a=this.props.toggleCollapse,n=o("checkbox",{"disabled-elm":c(e)}),i=o("u_noMarginAll",{hidden:!this.props.showCheckbox}),d=e.childCount();return r.createElement("div",{className:n,key:e.id},r.createElement(s,{type:"checkbox",checked:e.dataSource.checked,onChange:u.notifyChange(this.onCheck,u.CHECKBOX),className:i}),r.createElement("label",{className:"tree-item",key:e.id,disabled:c(e)?"disabled":null},r.createElement(l,{highlight:t,text:e.name})),c(e)?null:r.createElement("i",{className:"icon-toggle-triangle",onClick:function(){a()}}));function c(e){return e.isTypeGroup()&&0===d}},onCheck:n.action(function(e){this.props.node.setChecked(e)})}),e.exports=i()(d)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=y(a(6)),i=y(a(2)),o=y(a(3)),l=y(a(7)),s=y(a(8)),u=a(0),d=y(u),c=y(a(2922)),p=y(a(2925)),f=y(a(250)),h=y(a(2953)),m=y(a(26)),g=y(a(2956)),E=y(a(164));function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,y(a(4)).default)(g.default)(r=function(e){function t(){return(0,i.default)(this,t),(0,l.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){this.props.loadData()}},{key:"componentWillReceiveProps",value:function(e){this.props.store!==e.store&&e.loadData()}},{key:"componentWillUnmount",value:function(){this.props.disposeChangeTenant(),this.props.store.destroy()}},{key:"render",value:function(){var e=this.props,t=e.store,a=e.authorization,r=e.authorizationConstants.PERMISSION_KEY,n=t.roleDetail.isNew,i=a.checkPrivileges([r.RoleSetupActionsCreate]),o=a.checkPrivileges([r.RoleSetupActionsEdit]);return d.default.createElement("div",{className:"izenda-TableLayout"},d.default.createElement(f.default,null,d.default.createElement("div",{className:"u_fullHeight u-posRelative u-bgWhite izenda-Middle-section"},d.default.createElement("div",{className:"izenda-MiddlePanel-search"},d.default.createElement(h.default,{store:t,readOnly:!i})),d.default.createElement("div",{className:"izenda-MiddlePanel-content"},d.default.createElement(m.default,null,d.default.createElement(c.default,{store:t,readOnly:!o}))))),d.default.createElement(E.default,null,d.default.createElement(p.default,{store:t,readOnly:!(o||n)})))}}]),t}(u.Component))||r;t.default=v,e.exports=t.default},function(e,t,a){"use strict";var r,n,i;r=a(0),n=a(2923),(i=a(4)()(function(){var e=this.props,t=e.store,a=t.roleList.filterRole;return r.createElement("div",null,a.map(function(a){return r.createElement(n,{roleInfo:a,store:t,key:a.id,readOnly:e.readOnly})}))})).propTypes={store:r.PropTypes.object.isRequired},e.exports=i},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p;r=a(0),n=a(4),i=a(10),o=a(69),l=a(220),s=a(15),u=a(2924),d=a(1347),c=a(40).PERMISSION_KEY,(p=u(function(e){var t=e.store,a=e.roleInfo,n=a.name,u=i("u_paddingAll u_curPointer","truncate",{"u-bgGray":e.roleInfo.isSelected}),p=a.active?l.ROLE_STATE.DEACTIVATE:l.ROLE_STATE.ACTIVATE,f=!e.readOnly&&e.onToggleActive,h=e.authorization.checkPrivileges([c.RoleSetupActionsEdit]);return r.createElement("div",{className:u,onClick:e.onSelectRole},r.createElement(s,null,r.createElement(s.Row,{className:"izenda-RoleItem"},r.createElement(s.Col,{cols:7,className:"overflow-text"},r.createElement(o,{highlight:t.roleList.filterText,text:n,tooltip:n})),r.createElement(s.Col,{cols:5},r.createElement("div",{className:"pull-right"},h&&r.createElement("a",{className:i("izenda-TenantStatus",{"izenda-TenantStatus-Deactivate":a.active}),onClick:f},p),r.createElement(d,{keys:[e.authorizationConstants.PERMISSION_KEY.RoleSetupActionsDel],onClick:e.onDelete,disabled:e.readOnly}))))))})).propTypes={roleInfo:r.PropTypes.object.isRequired,store:r.PropTypes.object.isRequired},e.exports=n()(p)},function(e,t,a){"use strict";var r=a(20);!function(){var t=a(11).compose,n=a(11).withHandlers,i=a(4),o=a(220),l=a(9).observer,s=a(1),u=s.curry,d=s.get,c=t(i(),n({onToggleActive:u(function(e,t){var a=e.loader,n=e.store,i=e.roleInfo;t.stopPropagation();var l=i.active?e.confirmFn("Confirmation",{description:o.MESSAGE.DEACTIVE}):(0,r.resolve)();a.startLoading(),l.then(n.toggleActive.bind(n,e.roleInfo)).then(function(t){if(!1===t.success){var a=d("messages",t);if(a){var r=a[0],n=d("messages",r);if(n)return e.confirmMessage("error",n[0])}}}).finally(a.endLoading.bind(a))}),onDelete:u(function(e,t){var a=e.loader,r=e.store;t.stopPropagation(),a.startLoading(),e.confirmFn("Confirmation",{description:o.MESSAGE.DELETE}).then(r.deleteRole.bind(r,e.roleInfo)).finally(a.endLoading.bind(a))}),onSelectRole:u(function(e,t){if(t.stopPropagation(),e.roleInfo.isSelected)return;var a=e.loader,r=e.store;a.startLoading(),e.confirmDirtyForm(r.isDirty).then(function(){return e.validation.reset(),r.selectRole(e.roleInfo)}).finally(a.endLoading.bind(a))})}),l);e.exports=c}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=l(a(13)),i=a(9),o=l(a(2926));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.store,a=e.readOnly,n=t.roleDetail,i=n.key,l=n.active;return r.default.createElement("div",{className:"izenda-Wrapper",key:i},r.default.createElement(o.default,{store:t,readOnly:a||!l}))};s.propTypes={store:n.default.object.isRequired,readOnly:n.default.bool},t.default=(0,i.observer)(s),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(0)),n=p(a(4)),i=p(a(96)),o=p(a(191)),l=p(a(2927)),s=p(a(2929)),u=p(a(2931)),d=p(a(2932)),c=p(a(2933));function p(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.default)(d.default)(function(e){return r.default.createElement("div",null,r.default.createElement("div",{className:"izenda-Wrapper-header"},r.default.createElement(i.default,null),r.default.createElement(u.default,{store:e.store}),!e.readOnly&&r.default.createElement(o.default,{onSave:e.onSave,onCancel:e.onCancel})),r.default.createElement("div",{className:"izenda-Wrapper-content"},r.default.createElement("div",{className:"u_paddingLeftRight u_fullHeight"},r.default.createElement("div",{className:"izenda-RoleInfo form-inline"},r.default.createElement(l.default,{store:e.store,readOnly:e.readOnly}),r.default.createElement(s.default,{store:e.store,readOnly:e.readOnly})),r.default.createElement(c.default,{store:e.store,readOnly:e.readOnly}))))}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=l(a(13)),i=l(a(4)),o=l(a(2928));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.localization,a=e.store,n=e.readOnly;return r.default.createElement("div",{className:"form-group u_noMarginAll u_marginRight u_paddingRight u_inlineBlock"},r.default.createElement("label",{className:"validation required u_marginRight"},t.getText("ROLE_SETUP_ROLE_DETAIL_LABEL_ROLE_NAME")),r.default.createElement("div",{className:"u_inlineBlock"},r.default.createElement(o.default,{store:a,readOnly:n})))};s.propTypes={store:n.default.object.isRequired,readOnly:n.default.bool},t.default=(0,i.default)()(s),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(a(0)),n=c(a(13)),i=c(a(4)),o=c(a(25)),l=c(a(19)),s=c(a(24)),u=a(220),d=a(1);function c(e){return e&&e.__esModule?e:{default:e}}var p=(0,o.default)()(l.default);function f(e){var t=e.store,a=e.readOnly,n=t.roleDetail,i=!n;return r.default.createElement(p,{className:"inline-block form-control izenda-RoleInfo-name",field:"Name",validations:u.CONSTRAINTS.ROLE_NAME,value:(0,d.get)("name",n),onChange:!i&&s.default.notifyChange(n.updateName.bind(n),s.default.INPUT),disabled:!n||a})}f.propTypes={store:n.default.object.isRequired,readOnly:n.default.bool},t.default=(0,i.default)()(f),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=l(a(13)),i=l(a(4)),o=l(a(2930));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.localization,a=e.store,n=e.readOnly;return r.default.createElement("div",{className:"form-group u_noMarginAll u_marginRight u_paddingRight u_inlineBlock"},r.default.createElement("label",{className:"validation required u_marginRight"},t.getText("ROLE_SETUP_ROLE_DETAIL_LABEL_ROLE_TYPE")),r.default.createElement("div",{className:"u_inlineBlock"},r.default.createElement(o.default,{store:a,readOnly:n})))};s.propTypes={store:n.default.object.isRequired},t.default=(0,i.default)()(s),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(a(0)),n=u(a(13)),i=u(a(29)),o=a(1),l=u(a(4)),s=a(220);function u(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=e.store,a=e.store.roleDetail,n=e.authorization,l=e.authorizationConstants.PERMISSION_KEY,u=e.readOnly,d=n.checkPrivileges([l.RoleSetupGrantRoleWithFullReportAndDashboardAccessValue]),c=(0,o.map)((0,o.pick)(["id","name"]),t.roleTemplateList);if(!d){var p=(0,o.find)(function(e){return e.id==s.ROLE_TYPES.Administrator},c);p&&(p.hidden=!0)}return r.default.createElement(i.default,{className:"izenda-RoleInfo-type",value:(0,o.get)("roleType",a),valueField:"id",labelField:"name",options:c,disabled:u,onChange:function(e){this.setRoleTemplate(e.value)}.bind(t)})}d.propTypes={readOnly:n.default.bool,store:n.default.object.isRequired},t.default=(0,l.default)()(d),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(0)),n=o(a(4)),i=o(a(62));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.default)()(function(e){var t=e.store.alertMessage;return t.message?r.default.createElement(i.default,{type:t.type},t.message):null}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(11),n=u(a(44)),i=u(a(1348)),o=u(a(12)),l=u(a(220)),s=a(1);function u(e){return e&&e.__esModule?e:{default:e}}var d=(0,r.withHandlers)({onSave:(0,s.curry)(function(e,t){var a=e.store;t.stopPropagation(),t.preventDefault(),e.validation.validate().then(function(t){t&&(a.isDirty?a.validateAccesses().then(function(t){!1!==t.success?a.roleDetail.isNew?c(e):e.confirmFn("Confirmation",{description:o.default.getText("COMMON_MESSAGES_CONFIRM_SAVE")}).then(function(){return c(e)}):e.validation.updateErrors(t.messages)}):a.updateAlertMessage(n.default.MESSAGE_TYPE.INFO,o.default.getText("COMMON_MESSAGES_NO_CHANGES_FOUND")))})}),onCancel:(0,s.curry)(function(e,t){var a=e.loader,r=e.store;t.stopPropagation(),t.preventDefault(),r.isDirty?e.confirmFn("Confirmation",{description:o.default.getText("COMMON_MESSAGES_CONFIRM_CANCEL")}).then(function(){return a.startLoading(),r.cancel().finally(a.endLoading.bind(a))}).finally(a.endLoading.bind(a)):r.updateAlertMessage(n.default.MESSAGE_TYPE.INFO,o.default.getText("COMMON_MESSAGES_NO_CHANGES_FOUND"))})});function c(e){var t=e.store,a=e.loader;a.startLoading(),t.save().then(function(t){var a=(0,s.flow)(s.toPairs,(0,s.map)(function(e){var a=e[0],r=(0,s.find)({key:a},t);return r?(t=(0,s.reject)({key:a},t),r):null}),s.compact)(l.default.PERMISSION_ERROR);if(!(0,s.isEmpty)(a)){var r=l.default.PERMISSION_ERROR[a[0].key],n=String.format(o.default.getText("ROLE_SETUP_PERMISSION_CATEGORIES_ERROR_HEADER"),r.type,r.permission);e.openPopup(i.default,{header:n,data:a[0].detail,footer:o.default.getText("ROLE_SETUP_PERMISSION_CATEGORIES_ERROR_FOOTER")})}t&&e.validation.updateErrors(t)}).then(a.endLoading.bind(a))}t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=a(20),i=v(a(6)),o=v(a(2)),l=v(a(3)),s=v(a(7)),u=v(a(8)),d=a(0),c=v(d),p=v(a(4)),f=a(165),h=v(a(1335)),m=v(a(2934)),g=v(a(2936)),E=v(a(2950)),y=a(1);function v(e){return e&&e.__esModule?e:{default:e}}var T=(0,p.default)()(r=function(e){function t(){var e,a,r,l;(0,o.default)(this,t);for(var u=arguments.length,d=Array(u),c=0;ct},this.validRole)||p(this.validRole)}),y.prototype.addRole=t.action(function(e){var t=new g(e);return this.roleList.push(t),f("unselectRole",this.configRole),this.configRole=t,this.configRole.selectRole(),t}),y.prototype.selectRole=t.action(function(e){var t=h(["id",e],this.roleList);this.configRole.unselectRole(),t.selectRole(),this.configRole=t}),y.prototype.updateFilterText=t.action(function(e){this.filterText=e}),e.exports=y}()},function(e,t,a){"use strict";var r,n,i;r=a(5),n=a(63),(i=function(e){r.extendObservable(n(this),{id:null,name:null,active:null,tenantID:null,detailInfo:null,deleted:!1,isSelected:!1}),e&&this.readBasicInfo(e)}).prototype.readBasicInfo=r.action(function(e){this.id=e.id,this.name=e.name,this.active=e.active,this.deleted=e.deleted,this.tenantID=e.tenantID}),i.prototype.unselectRole=r.action(function(){this.isSelected=!1}),i.prototype.selectRole=r.action(function(){this.isSelected=!0}),i.prototype.delete=r.action(function(){this.deleted=!0}),i.prototype.toggleActive=r.action(function(){this.active=!this.active}),e.exports=i},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S=L(a(17)),C=L(a(23)),b=L(a(2)),N=L(a(3)),A=a(5),R=L(a(258)),O=L(a(401)),I=L(a(53)),D=a(1),P=a(220);function L(e){return e&&e.__esModule?e:{default:e}}function M(e,t,a,r){a&&(0,S.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function F(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var k=(0,I.default)((n=function(){function e(t){(0,b.default)(this,e),M(this,"key",i,this),M(this,"users",o,this),M(this,"permission",l,this),M(this,"visibleQuerySources",s,this),M(this,"name",u,this),M(this,"tenantId",d,this),M(this,"active",c,this),M(this,"deleted",p,this),M(this,"id",f,this),M(this,"state",h,this),M(this,"inserted",m,this),M(this,"version",g,this),M(this,"created",E,this),M(this,"createdBy",y,this),M(this,"modified",v,this),M(this,"modifiedBy",T,this),M(this,"roleType",_,this),this.permissionAccessModel=new O.default,this.basedProps={users:[],name:null,active:!0,id:null},t&&this.populateData(t)}return(0,N.default)(e,[{key:"hasChange",get:function(){return this.isDirty||this.permission.isDirty||this.permissionAccessModel.checkDirty()}},{key:"isNew",get:function(){return!String.isGuidFormat(this.id)}},{key:"isTemplateRole",get:function(){return this.roleType!==P.ROLE_TYPES.Custom}}]),(0,N.default)(e,[{key:"changeRole",value:function(){this.key=(0,D.uniqueId)("RoleDetail_")}},{key:"setRoleType",value:function(e){this.roleType=e,this.markDirty()}},{key:"toggleActive",value:function(){this.active=!this.active}},{key:"resetData",value:function(e,t){this.populateData((0,D.cloneDeep)(this.basedProps)),this.tenantId=e,t&&this.permission.populateData(t,this.permission.propsCloned,this.permission)}},{key:"populateData",value:function(e){this.users=e.users,this.permission.populateData(e.permission,this.permission.propsCloned,this.permission),this.visibleQuerySources=e.visibleQuerySources,this.name=e.name,this.tenantId=e.tenantId,this.active=e.active,this.deleted=e.deleted,this.id=e.id,this.state=e.state,this.inserted=e.inserted,this.version=e.version,this.created=e.created,this.createdBy=e.createdBy,this.modified=e.modified,this.modifiedBy=e.modifiedBy,this.roleType=e.roleType,this.resetDirty()}},{key:"populatePermissionTemplate",value:function(e){this.permission.populateData(e.permission,this.permission.propsCloned,this.permission)}},{key:"updateName",value:function(e){this.name=e,this.markDirty()}},{key:"setVisibleQuerySources",value:function(e){this.visibleQuerySources=e,this.markDirty()}},{key:"prepareDataForSave",value:function(){var e=(0,D.omit)(["id","basedProps","permissionAccessModel","key"],this);return this.isNew||(e.id=this.id),e}}]),e}(),i=F(n.prototype,"key",[A.observable],{enumerable:!0,initializer:function(){return null}}),o=F(n.prototype,"users",[A.observable],{enumerable:!0,initializer:function(){return[]}}),l=F(n.prototype,"permission",[A.observable],{enumerable:!0,initializer:function(){return new R.default(null,!1)}}),s=F(n.prototype,"visibleQuerySources",[A.observable],{enumerable:!0,initializer:function(){return[]}}),u=F(n.prototype,"name",[A.observable],{enumerable:!0,initializer:function(){return null}}),d=F(n.prototype,"tenantId",[A.observable],{enumerable:!0,initializer:function(){return null}}),c=F(n.prototype,"active",[A.observable],{enumerable:!0,initializer:function(){return!0}}),p=F(n.prototype,"deleted",[A.observable],{enumerable:!0,initializer:function(){return!1}}),f=F(n.prototype,"id",[A.observable],{enumerable:!0,initializer:function(){return null}}),h=F(n.prototype,"state",[A.observable],{enumerable:!0,initializer:function(){return 0}}),m=F(n.prototype,"inserted",[A.observable],{enumerable:!0,initializer:function(){return!1}}),g=F(n.prototype,"version",[A.observable],{enumerable:!0,initializer:function(){return 0}}),E=F(n.prototype,"created",[A.observable],{enumerable:!0,initializer:function(){return null}}),y=F(n.prototype,"createdBy",[A.observable],{enumerable:!0,initializer:function(){return""}}),v=F(n.prototype,"modified",[A.observable],{enumerable:!0,initializer:function(){return null}}),T=F(n.prototype,"modifiedBy",[A.observable],{enumerable:!0,initializer:function(){return""}}),_=F(n.prototype,"roleType",[A.observable],{enumerable:!0,initializer:function(){return P.ROLE_TYPES.Administrator}}),F(n.prototype,"hasChange",[A.computed],(0,C.default)(n.prototype,"hasChange"),n.prototype),F(n.prototype,"isNew",[A.computed],(0,C.default)(n.prototype,"isNew"),n.prototype),F(n.prototype,"isTemplateRole",[A.computed],(0,C.default)(n.prototype,"isTemplateRole"),n.prototype),F(n.prototype,"changeRole",[A.action],(0,C.default)(n.prototype,"changeRole"),n.prototype),F(n.prototype,"setRoleType",[A.action],(0,C.default)(n.prototype,"setRoleType"),n.prototype),F(n.prototype,"toggleActive",[A.action],(0,C.default)(n.prototype,"toggleActive"),n.prototype),F(n.prototype,"resetData",[A.action],(0,C.default)(n.prototype,"resetData"),n.prototype),F(n.prototype,"populateData",[A.action],(0,C.default)(n.prototype,"populateData"),n.prototype),F(n.prototype,"populatePermissionTemplate",[A.action],(0,C.default)(n.prototype,"populatePermissionTemplate"),n.prototype),F(n.prototype,"updateName",[A.action],(0,C.default)(n.prototype,"updateName"),n.prototype),F(n.prototype,"setVisibleQuerySources",[A.action],(0,C.default)(n.prototype,"setVisibleQuerySources"),n.prototype),r=n))||r;t.default=k,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u=m(a(17)),d=m(a(23)),c=m(a(2)),p=m(a(3)),f=a(5),h=a(1);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,a,r){a&&(0,u.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function E(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var y=(0,m(a(53)).default)((n=function(){function e(t){(0,c.default)(this,e),g(this,"displayData",i,this),g(this,"connectionList",o,this),g(this,"filterText",l,this),g(this,"showCheckedQuerySource",s,this),this.isLastPage=!1,this.visibleQuerySources=[],this.roleDetail=t,this.visibleQuerySourcesTree=[]}return(0,p.default)(e,[{key:"hasChange",get:function(){return this.isDirty||!(0,h.isEmpty)(this.visibleQuerySourcesTree)}}]),(0,p.default)(e,[{key:"setShowCheckedQuerySource",value:function(e){this.markDirty(),this.showCheckedQuerySource=e}},{key:"reset",value:function(){this.resetDirty(),this.resetCacheTree(),this.resetData(),this.filterText="",this.showCheckedQuerySource=!1}},{key:"resetCacheTree",value:function(){this.resetDirty(),this.visibleQuerySourcesTree.length=0}},{key:"resetData",value:function(){this.displayData.length=0,this.connectionList.length=0}},{key:"readData",value:function(e){this.connectionList=e}},{key:"convertData",value:function(e){return(0,f.observable)(e)}}]),e}(),i=E(n.prototype,"displayData",[f.observable],{enumerable:!0,initializer:function(){return[]}}),o=E(n.prototype,"connectionList",[f.observable],{enumerable:!0,initializer:function(){return[]}}),l=E(n.prototype,"filterText",[f.observable],{enumerable:!0,initializer:function(){return""}}),s=E(n.prototype,"showCheckedQuerySource",[f.observable],{enumerable:!0,initializer:function(){return!1}}),E(n.prototype,"hasChange",[f.computed],(0,d.default)(n.prototype,"hasChange"),n.prototype),E(n.prototype,"setShowCheckedQuerySource",[f.action],(0,d.default)(n.prototype,"setShowCheckedQuerySource"),n.prototype),E(n.prototype,"reset",[f.action],(0,d.default)(n.prototype,"reset"),n.prototype),E(n.prototype,"resetCacheTree",[f.action],(0,d.default)(n.prototype,"resetCacheTree"),n.prototype),E(n.prototype,"resetData",[f.action],(0,d.default)(n.prototype,"resetData"),n.prototype),E(n.prototype,"readData",[f.action],(0,d.default)(n.prototype,"readData"),n.prototype),r=n))||r;t.default=y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=g(a(17)),l=g(a(23)),s=g(a(2)),u=g(a(3)),d=a(5),c=g(a(16)),p=g(a(2963)),f=g(a(143)),h=g(a(79)),m=a(1);function g(e){return e&&e.__esModule?e:{default:e}}function E(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function y(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var v=(r=function(){function e(t){(0,s.default)(this,e),E(this,"configUser",n,this),E(this,"alertMessage",i,this),this.model=new p.default(t)}return(0,u.default)(e,[{key:"tenantId",get:function(){return c.default.getTenantId()}},{key:"isDirty",get:function(){return this.configUser.isDirty}}]),(0,u.default)(e,[{key:"resetAlertMessage",value:function(){this.alertMessage={}}},{key:"registerLazyLoadingStore",value:function(e){this.lazyLoadingStore=e}},{key:"getPartialUsers",value:function(e,t){var a=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e=e||this.lazyLoadingStore.pageInfoForFirstTime;var n={tenantId:this.tenantId,skipItems:e.fromIndex,pageSize:e.pageSize,criteria:[{key:f.default.USER_LIST_SEARCH_KEY,value:r}]};return h.default.getPartialUsers(n).then(function(e){var n=(0,m.get)("searchedUserName",a.model);r!==n&&(0,m.isEmpty)(r)!==(0,m.isEmpty)(n)||a.model.populateLazyUserList(e,t)})}},{key:"searchUsers",value:function(e){this.model.updateSearchedUserName(e),this.getPartialUsers(null,!0,e)}}]),e}(),n=y(r.prototype,"configUser",[d.observable],{enumerable:!0,initializer:function(){return null}}),i=y(r.prototype,"alertMessage",[d.observable],{enumerable:!0,initializer:function(){return{}}}),y(r.prototype,"tenantId",[d.computed],(0,l.default)(r.prototype,"tenantId"),r.prototype),y(r.prototype,"isDirty",[d.computed],(0,l.default)(r.prototype,"isDirty"),r.prototype),y(r.prototype,"resetAlertMessage",[d.action],(0,l.default)(r.prototype,"resetAlertMessage"),r.prototype),y(r.prototype,"getPartialUsers",[d.action],(0,l.default)(r.prototype,"getPartialUsers"),r.prototype),y(r.prototype,"searchUsers",[d.action],(0,l.default)(r.prototype,"searchUsers"),r.prototype),r);t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f=b(a(17)),h=b(a(23)),m=b(a(2)),g=b(a(3)),E=a(5),y=b(a(53)),v=b(a(16)),T=a(143),_=a(123),S=b(a(108)),C=a(1);function b(e){return e&&e.__esModule?e:{default:e}}function N(e,t,a,r){a&&(0,f.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function A(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var R=(0,y.default)((n=function(){function e(t,a){var r=t.id,n=t.userName,o=t.emailAddress,l=t.firstName,s=t.lastName,u=t.fullName,d=t.state;(0,m.default)(this,e),N(this,"assigned",i,this),this.id=r,this.userName=n,this.emailAddress=o,this.firstName=l,this.lastName=s,this.fullName=u,this.state=d,this.assigned=a}return(0,g.default)(e,[{key:"toggleAssign",value:function(){this.assigned=!this.assigned,this.markDirty()}}]),e}(),i=A(n.prototype,"assigned",[E.observable],{enumerable:!0,initializer:null}),A(n.prototype,"toggleAssign",[E.action],(0,h.default)(n.prototype,"toggleAssign"),n.prototype),r=n))||r,O=(0,y.default)((l=function(){function e(t){(0,m.default)(this,e),N(this,"usersList",s,this),N(this,"selectedUserIds",u,this),N(this,"searchedUserName",d,this),N(this,"isLastPage",c,this),N(this,"pageInfo",p,this),this.reload(t)}return(0,g.default)(e,[{key:"filterUser",get:function(){var e=new RegExp((0,C.escapeRegExp)(this.searchedUserName),"i");return(0,C.isNil)(this.searchedUserName)?this.usersList:(0,C.filter)((0,C.flow)((0,C.get)(["fullName"]),e.test.bind(e)),this.usersList)}},{key:"hasChanged",get:function(){return this.isDirty||(0,C.some)("isDirty",this.usersList)}},{key:"selectedUsers",get:function(){return(0,C.map)(function(e){return{id:e}},this.selectedUserIds)}}]),(0,g.default)(e,[{key:"populateLazyUserList",value:function(e,t){var a=this,r=e.result,n=e.isLastPage,i=e.total;this.isLastPage=n,this.pageInfo.totalRecords=i,t&&(this.usersList=[]);var o=(0,C.map)(function(e){var t=a.selectedUserIds.indexOf(e.id)>=0;return new R(e,t)},r),l=v.default.getTenantId();return(0,C.flow)(C.head,(0,C.get)("tenantId"))(r)===l&&(0,_.concatArray)(this.usersList,o,"id",!n),this.usersList}},{key:"updateSearchedUserName",value:function(e){this.searchedUserName=e}},{key:"toggleAssignUser",value:function(e){e.assigned?this.selectedUserIds.remove(e.id):this.selectedUserIds.push(e.id),e.toggleAssign(),this.markDirty()}},{key:"cleanDirty",value:function(){(0,C.forEach)(function(e){e.resetDirty&&e.resetDirty()},this.usersList),this.resetDirty()}},{key:"reload",value:function(e){this.usersList=[],this.selectedUserIds=null!==e?(0,C.map)((0,C.get)("id"),e):[],this.pageInfo=new S.default(T.DEFAULT_VALUE.SORT_DIRS,T.DEFAULT_VALUE.SEARCH_CRITERIA),this.isLastPage=!1,this.searchedUserName=""}}]),e}(),s=A(l.prototype,"usersList",[E.observable],{enumerable:!0,initializer:null}),u=A(l.prototype,"selectedUserIds",[E.observable],{enumerable:!0,initializer:null}),d=A(l.prototype,"searchedUserName",[E.observable],{enumerable:!0,initializer:null}),c=A(l.prototype,"isLastPage",[E.observable],{enumerable:!0,initializer:null}),p=A(l.prototype,"pageInfo",[E.observable],{enumerable:!0,initializer:null}),A(l.prototype,"filterUser",[E.computed],(0,h.default)(l.prototype,"filterUser"),l.prototype),A(l.prototype,"hasChanged",[E.computed],(0,h.default)(l.prototype,"hasChanged"),l.prototype),A(l.prototype,"populateLazyUserList",[E.action],(0,h.default)(l.prototype,"populateLazyUserList"),l.prototype),A(l.prototype,"updateSearchedUserName",[E.action],(0,h.default)(l.prototype,"updateSearchedUserName"),l.prototype),A(l.prototype,"toggleAssignUser",[E.action],(0,h.default)(l.prototype,"toggleAssignUser"),l.prototype),A(l.prototype,"cleanDirty",[E.action],(0,h.default)(l.prototype,"cleanDirty"),l.prototype),A(l.prototype,"reload",[E.action],(0,h.default)(l.prototype,"reload"),l.prototype),o=l))||o;t.default=O,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=h(a(17)),l=h(a(23)),s=h(a(2)),u=h(a(3)),d=a(5),c=h(a(328)),p=h(a(2965)),f=a(1);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function g(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var E=(r=function(){function e(t,a){(0,s.default)(this,e),m(this,"tenantId",n,this),m(this,"model",i,this),this.tenantId=t||null,this.model=a||new p.default}return(0,u.default)(e,[{key:"loadPermissionSummary",value:function(e){e=e||this.tenantId;var t=(0,d.action)(function(e){(0,f.isNil)(e.message)&&this.model.populateData(e)});return c.default.loadPermissionSummary(e).bind(this).then(t)}}]),e}(),n=g(r.prototype,"tenantId",[d.observable],{enumerable:!0,initializer:null}),i=g(r.prototype,"model",[d.observable],{enumerable:!0,initializer:null}),g(r.prototype,"loadPermissionSummary",[d.action],(0,l.default)(r.prototype,"loadPermissionSummary"),r.prototype),r);t.default=E,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=h(a(17)),s=h(a(23)),u=h(a(2)),d=h(a(3)),c=a(5),p=a(1),f=h(a(258));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function g(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var E=(r=function(){function e(t){(0,u.default)(this,e),m(this,"permissionSummary",n,this),m(this,"selectedRoleId",i,this),m(this,"collapseAll",o,this),t&&this.populateData(t)}return(0,d.default)(e,[{key:"populateData",value:function(e){var t=this;(0,p.forEach)(function(e){t.permissionSummary.push({id:e.id,name:e.name,permission:new f.default(e.permission,!1)})},e),this.setShowingRoleList()}},{key:"updateRoleSelected",value:function(e){this.selectedRoleId=e}},{key:"setShowingRoleList",value:function(){var e=(0,p.findIndex)({id:this.selectedRoleId},this.permissionSummary);if(e>0){var t=this.permissionSummary[0];this.permissionSummary[0]=this.permissionSummary[e],this.permissionSummary[e]=t}}},{key:"updateExpendCollapseAll",value:function(e){this.collapseAll=e}}]),e}(),n=g(r.prototype,"permissionSummary",[c.observable],{enumerable:!0,initializer:function(){return[]}}),i=g(r.prototype,"selectedRoleId",[c.observable],{enumerable:!0,initializer:function(){return null}}),o=g(r.prototype,"collapseAll",[c.observable],{enumerable:!0,initializer:function(){return!0}}),g(r.prototype,"populateData",[c.action],(0,s.default)(r.prototype,"populateData"),r.prototype),g(r.prototype,"updateRoleSelected",[c.action],(0,s.default)(r.prototype,"updateRoleSelected"),r.prototype),g(r.prototype,"setShowingRoleList",[c.action],(0,s.default)(r.prototype,"setShowingRoleList"),r.prototype),g(r.prototype,"updateExpendCollapseAll",[c.action],(0,s.default)(r.prototype,"updateExpendCollapseAll"),r.prototype),r);t.default=E,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(4),r=a(250),n=(a(164),a(418)),i=(a(26),a(2967)),o=a(16),l=a(0),s=a(1),u=s.filter,d=s.head,c=s.placeholder,p={performance:{component:a(2968),storePath:"performance"},security:{component:a(2971),storePath:"security"},others:{component:a(2983),storePath:"others"},category:{component:a(2985),storePath:"category"},notFound:{component:a(316)}};var f=l.createClass({displayName:"AdvancedSettings",propTypes:{store:l.PropTypes.object.isRequired},componentWillMount:function(){var e=this.props.authorization;this.menu=u(function(t){if(t.forSystemAdmin&&!o.currentUser.systemAdmin)return!1;if(t.permissionKeys)if(t.permissionOperator){if(!e.checkPrivileges(t.permissionKeys,t.permissionOperator))return!1}else if(!e.checkPrivileges(t.permissionKeys))return!1;return!0},i.MENU),this.setInitialSelectedItem()},setInitialSelectedItem:function(){var e=d(this.menu);e&&this.changeItem(e.key)},changeItem:function(e){var t=this.props.store;t.activeLink!==e&&this.props.confirmDirtyForm(o.isDirty,{onConfirmDirtyForm:o.onOkDirtyForm}).then(function(){t.changeSelectItem(e)})},renderRightContent:function(){var e,t=(e=this.props.store.activeLink,c(p).get(e,p.notFound)),a=t.storePath?c(this.props.store).get(t.storePath):null;return a?l.createElement(t.component,{store:a}):l.createElement(t.component,null)},renderMiddlePanel:function(){return l.createElement(r,null,l.createElement(n,{dataSource:this.menu,activeKey:this.props.store.activeLink,enabled:!0,onSelected:this.changeItem,className:"izenda-DataModel-Middle"}))},renderMainContent:function(){return l.createElement("div",{className:"izenda-TableLayout-Cell"},this.renderRightContent())},render:function(){this.props.store;return l.createElement("div",{className:"izenda-AdvancedSettings izenda-TableLayout"},this.renderMiddlePanel(),this.renderMainContent())}});e.exports=t()(f)}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(40)),n=i(a(12));function i(e){return e&&e.__esModule?e:{default:e}}t.default={get MENU(){return[{key:"performance",icon:"icon-gauge",title:n.default.getText("ADVANCED_SETTINGS_CONSTANTS_LABEL_MENU_PERFORMANCE"),forSystemAdmin:!0},{key:"security",icon:"icon-lock",title:n.default.getText("ADVANCED_SETTINGS_CONSTANTS_LABEL_MENU_SECURITY"),forSystemAdmin:!0},{key:"category",icon:"icon-list-bullet",title:n.default.getText("ADVANCED_SETTINGS_CONSTANTS_LABEL_MENU_CATEGORY"),permissionKeys:[r.default.PERMISSION_KEY.DataSetupAdvancedSettingsCategory]},{key:"others",icon:"icon-resize-small-alt",title:n.default.getText("COMMON_LABEL_OTHERS"),permissionKeys:[r.default.PERMISSION_KEY.DataSetupAdvancedSettingsOthers]}]}},e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m;r=a(0),n=a(96),i=a(15),o=a(191),l=a(62),s=a(24),u=a(2969),d=a(25)()(a(19)),c=a(2970),p=a(4),f=p()(function(e){var t=this.props.performanceModel.alertMessage;return r.createElement("div",{className:"izenda-Alert-container"},r.createElement(l,{type:t.type},t.message))}),h=p()(function(e){var t=s.notifyChange,a=e.store.performanceModel,n=e.localization;function i(e,t,a,i){return r.createElement("div",{className:"form-group item"},r.createElement("span",{className:"col-md-7 col-xs-5 control-label"},e,"   ",r.createElement("span",{className:"icon-info-circled",title:t})),r.createElement("div",{className:"col-md-3 col-xs-6"},a),r.createElement("div",{className:"col-md-2 col-xs-1 control-label"},r.createElement("span",{className:"icon-ccw resetButton",onClick:i,title:n.getText("PERFORMANCE_RESET_TO_DEFAULT")})))}return r.createElement("div",{className:"form-horizontal",role:"form"},r.createElement("div",{className:"form-group"},r.createElement("strong",{className:"col-md-7 col-xs-6 control-label"},n.getText("COMMON_LABEL_NAME")),r.createElement("strong",{className:"col-md-5 col-xs-6 control-label"},n.getText("COMMON_LABEL_VALUE"))),i(n.getText("PERFORMANCE_LABEL_QUERY_TIMEOUT"),n.getText("PERFORMANCE_TIMEOUT_TOOLTIP"),r.createElement("div",{className:"u_table"},r.createElement(d,{type:"text",name:c.FIELD_NAMES.QUERY_TIME_OUT,className:"form-control",maxLength:6,value:a.queryTimeoutValue,onChange:t(a.updateValue.bind(a,c.FIELD_NAMES.QUERY_TIME_OUT),s.INPUT),validations:c.getLimitConstraint(c.FIELD_NAMES.QUERY_TIME_OUT),field:c.FIELD_NAMES.QUERY_TIME_OUT}),r.createElement("span",{className:"u_tableCell"}," (s)")),a.resetValue.bind(a,"queryTimeout")),i(n.getText("PERFORMANCE_LABEL_USE_NO_LOCK"),n.getText("PERFORMANCE_NOLOCK_TOOLTIP"),r.createElement(d,{type:"checkbox",name:"noLock",checked:a.useNoLockValue,onChange:t(a.updateValue.bind(a,"useNoLock"),s.CHECKBOX)}),a.resetValue.bind(a,"useNoLock")),i(n.getText("PERFORMANCE_LABEL_DATA_SOURCE_LIMIT"),n.getText("PERFORMANCE_DATASOURCE_TOOLTIP"),r.createElement(d,{type:"text",name:c.FIELD_NAMES.DATA_SOURCE_LIMIT,className:"form-control",maxLength:6,value:a.dataSourceLimitValue,onChange:t(a.updateValue.bind(a,c.FIELD_NAMES.DATA_SOURCE_LIMIT),s.INPUT),validations:c.getLimitConstraint(c.FIELD_NAMES.DATA_SOURCE_LIMIT),field:c.FIELD_NAMES.DATA_SOURCE_LIMIT}),a.resetValue.bind(a,"dataSourceLimit")),i(n.getText("PERFORMANCE_FIELD_LIMIT"),n.getText("PERFORMANCE_FIELD_LIMIT_TOOLTIP"),r.createElement(d,{type:"text",name:c.FIELD_NAMES.FIELD_LIMIT,className:"form-control",maxLength:6,value:a.fieldLimitValue,onChange:t(a.updateValue.bind(a,c.FIELD_NAMES.FIELD_LIMIT),s.INPUT),validations:c.getLimitConstraint(c.FIELD_NAMES.FIELD_LIMIT),field:c.FIELD_NAMES.FIELD_LIMIT}),a.resetValue.bind(a,"fieldLimit")),i(n.getText("PERFORMANCE_QUERY_LIMIT"),n.getText("PERFORMANCE_QUERY_LIMIT_TOOLTIP"),r.createElement(d,{type:"text",name:c.FIELD_NAMES.QUERY_LIMIT,className:"form-control",maxLength:10,value:a.queryLimitValue,onChange:t(a.updateValue.bind(a,c.FIELD_NAMES.QUERY_LIMIT),s.INPUT),validations:c.getLimitConstraint(c.FIELD_NAMES.QUERY_LIMIT),field:c.FIELD_NAMES.QUERY_LIMIT}),a.resetValue.bind(a,"queryLimit")),i(n.getText("PERFORMANCE_PIVOT_COLUMN_LIMIT"),n.getText("PERFORMANCE_PIVOT_COLUMN_LIMIT_TOOLTIP"),r.createElement(d,{type:"text",name:c.FIELD_NAMES.PIVOT_COLUMN_LIMIT,className:"form-control",maxLength:6,value:a.pivotColumnLimitValue,onChange:t(a.updateValue.bind(a,c.FIELD_NAMES.PIVOT_COLUMN_LIMIT),s.INPUT),validations:c.getLimitConstraint(c.FIELD_NAMES.PIVOT_COLUMN_LIMIT),field:c.FIELD_NAMES.PIVOT_COLUMN_LIMIT}),a.resetValue.bind(a,"pivotColumnLimit")),i(n.getText("PERFORMANCE_FILTER_LIMIT"),n.getText("PERFORMANCE_FILTER_LIMIT_TOOLTIP"),r.createElement(d,{type:"text",name:c.FIELD_NAMES.FILTER_LIMIT,className:"form-control",maxLength:6,value:a.filterLimitValue,onChange:t(a.updateValue.bind(a,c.FIELD_NAMES.FILTER_LIMIT),s.INPUT),validations:c.getLimitConstraint(c.FIELD_NAMES.FILTER_LIMIT),field:c.FIELD_NAMES.FILTER_LIMIT}),a.resetValue.bind(a,"filterLimit")))}),m=r.createClass({displayName:"Performance",propTypes:{store:r.PropTypes.object.isRequired},componentDidMount:function(){var e=this.props.loader,t=this.props.store;e.startLoading(),t.init().finally(e.endLoading.bind(e))},componentWillUnmount:function(){this.props.store.destroy()},render:function(){var e=this.props,t=e.store.performanceModel;return r.createElement("div",{className:"izenda-Wrapper"},r.createElement("div",{className:"izenda-Wrapper-header"},r.createElement(n,null),r.createElement(f,{performanceModel:t}),r.createElement(o,{onSave:e.onSave,onCancel:e.onCancel})),r.createElement("div",{className:"izenda-Wrapper-content"},r.createElement(i,{className:"u_fullHeight u_paddingLeftRight"},r.createElement(i.Row,null,r.createElement(i.Col,null,r.createElement(h,e))))))}}),e.exports=p(u)(m)},function(e,t,a){"use strict";!function(){a(5),a(0);var t=a(11).compose,r=(a(11).withState,a(11).withHandlers),n=a(44),i=a(1),o=i.curry,l=i.isEmpty,s=t(r({onSave:o(function(e,t){var a=e.store,r=e.loader,i=a.performanceModel,o=e.validation,s=e.localization;return i.alertMessage=n.EMPTY_MESSAGE,r.startLoading(),o.validate().then(function(t){if(t&&!i.isDirty)i.alertMessage={type:"info",message:s.getText("COMMON_MESSAGES_NO_CHANGES_FOUND")};else if(t)return e.confirmFn("Confirmation",{description:s.getText("COMMON_MESSAGES_CONFIRM_SAVE")}).then(a.onSave.bind(a));return null}.bind(this)).then(function(e){return l(e)||o.updateErrors(e),null}).finally(r.endLoading.bind(r))}),onCancel:o(function(e,t){var a=e.store,r=e.localization;a.performanceModel.isDirty&&e.confirmFn("Confirmation",{description:r.getText("COMMON_MESSAGES_CONFIRM_CHANGES_LOST")}).then(function(e){var t=e.loader,a=e.store;e.validation.reset(),t.startLoading(),a.getInitial().finally(t.endLoading.bind(t))}.bind(null,e))})}));e.exports=s}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};var o={queryTimeout:["PERFORMANCE_QUERY_TIMEOUT_REQUIRED","PERFORMANCE_QUERY_TIMEOUT_NUMBERICALITY","PERFORMANCE_QUERY_TIMEOUT_GREATER_THAN_0","PERFORMANCE_QUERY_TIMEOUT_LESS_THAN_MAX_INT"],dataSourceLimit:["PERFORMANCE_DS_LIMIT_REQUIRED","PERFORMANCE_DS_LIMIT_NUMBERICALITY","PERFORMANCE_DS_LIMIT_GREATER_THAN_0","PERFORMANCE_DS_LIMIT_LESS_THAN_MAX_INT"],fieldLimit:["PERFORMANCE_FIELD_LIMIT_REQUIRED","PERFORMANCE_FIELD_LIMIT_NUMBERICALITY","PERFORMANCE_FIELD_LIMIT_GREATER_THAN_0","PERFORMANCE_FIELD_LIMIT_LESS_THAN_MAX_INT"],queryLimit:["PERFORMANCE_QUERY_LIMIT_REQUIRED","PERFORMANCE_QUERY_LIMIT_NUMBERICALITY","PERFORMANCE_QUERY_LIMIT_GREATER_THAN_0","PERFORMANCE_QUERY_LIMIT_LESS_THAN_MAX_INT"],pivotColumnLimit:["PERFORMANCE_PIVOT_COLUMN_LIMIT_REQUIRED","PERFORMANCE_PIVOT_COLUMN_LIMIT_NUMBERICALITY","PERFORMANCE_PIVOT_COLUMN_LIMIT_GREATER_THAN_0","PERFORMANCE_PIVOT_COLUMN_LIMIT_LESS_THAN_MAX_INT"],filterLimit:["PERFORMANCE_FILTER_LIMIT_REQUIRED","PERFORMANCE_FILTER_LIMIT_NUMBERICALITY","PERFORMANCE_FILTER_LIMIT_GREATER_THAN_0","PERFORMANCE_FILTER_LIMIT_LESS_THAN_MAX_INT"]};t.default={MAX_INT:Math.pow(2,31),FIELD_NAMES:{QUERY_TIME_OUT:"queryTimeout",DATA_SOURCE_LIMIT:"dataSourceLimit",FIELD_LIMIT:"fieldLimit",QUERY_LIMIT:"queryLimit",PIVOT_COLUMN_LIMIT:"pivotColumnLimit",FILTER_LIMIT:"filterLimit"},getLimitConstraint:function(e){return{presence:{presence:!0,get message(){return i.default.getText(o[e][0])}},numericality:{onlyInteger:!0,get notOnlyInteger(){return i.default.getText(o[e][1])},greaterThanOrEqualTo:0,get notGreaterThanOrEqualTo(){return i.default.getText(o[e][2])},lessThanOrEqualTo:Math.pow(2,31)-1,get notLessThanOrEqualTo(){return i.default.getText(o[e][3])}}}}},e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h;r=a(0),n=a(96),a(15),i=a(191),o=a(501),l=a(2972),s=a(2973),u=a(2974),d=a(2976),c=a(62),a(44),p=a(26),f=a(4),h=r.createClass({displayName:"Security",propTypes:{store:r.PropTypes.object.isRequired},loadInitialData:function(){var e=this.props.loader,t=this.props.store;e.startLoading(),t.getInitial().finally(e.endLoading.bind(e))},componentDidMount:function(){var e=this.props.loader,t=this.props.store;e.startLoading(),t.init().finally(e.endLoading.bind(e))},onSave:function(e){var t=this.props,a=t.loader,r=t.store,n=r.model,i=t.localization;n.resetErrorMessage(),n.isDirty?(a.startLoading(),t.confirmFn("Confirmation",{description:i.getText("COMMON_MESSAGES_CONFIRM_SAVE")}).then(r.saveTenantSecurity.bind(r)).then(r.loadSecurity.bind(r)).then(n.readSecuritySetting.bind(n)).finally(a.endLoading.bind(a))):n.alertMessage={type:"info",message:i.getText("COMMON_MESSAGES_NO_CHANGES_FOUND")}},onCancel:function(){var e=this.props.store.model,t=this.props.localization;e.isDirty&&this.props.confirmFn("Confirmation",{description:t.getText("COMMON_MESSAGES_CONFIRM_CHANGES_LOST")}).then(this.loadInitialData)},render:function(){var e=this.props.store,t=this.props.loader,a=e.model;return r.createElement(p,null,r.createElement("div",{className:"izenda-Wrapper"},r.createElement("div",{className:"izenda-Wrapper-header"},r.createElement(n,null),r.createElement(c,{type:a.alertMessage.type},a.alertMessage.message),r.createElement(i,{onSave:this.onSave,onCancel:this.onCancel}),r.createElement(o,{errors:a.errors})),r.createElement("div",{className:"izenda-Wrapper-content"},r.createElement("div",{className:"u_paddingLeftRight"},r.createElement(u,{store:e}),r.createElement(s,{store:e}),r.createElement(l,{store:e})),r.createElement(d,{store:e,loaderManager:t}))))},componentWillUnmount:function(){this.props.store.destroy()}}),e.exports=f()(h)},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(9).observer,i=a(19),o=a(24),l=r.createClass({displayName:"SecurityRenderHtmlInReportViewer",propTypes:{store:r.PropTypes.object.isRequired},renderRenderHtmlInReportViewer:function(e){var t=o.notifyChange,a=this.props.store.model;return r.createElement("div",{className:"form-group"},r.createElement("label",{className:"col-md-7 col-xs-6 control-label field-name"},r.createElement("span",null,e.LABEL.RENDER_HTML_IN_REPORT_VIEWER_LABEL),r.createElement("i",{className:"icon-info-circled",title:e.TOOLTIP.RENDER_HTML_IN_REPORT_VIEWER_TOOLTIP})),r.createElement("div",{className:"col-md-5 col-xs-6 u_controlHeight"},r.createElement(i,{type:"checkbox",checked:a.renderHtmlInReportViewerValue,onChange:t(a.updateRenderHtmlInReportViewerValue.bind(a),o.CHECKBOX)})))},render:function(){var e=this.props.store.getBundle();return r.createElement("div",{className:"form-horizontal"},this.renderRenderHtmlInReportViewer(e))}}),e.exports=n(l)},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(9).observer,i=a(19),o=a(24),l=r.createClass({displayName:"SecurityRenderHtmlInPrintingExporting",propTypes:{store:r.PropTypes.object.isRequired},renderRenderHtmlInPrintingExporting:function(e){var t=o.notifyChange,a=this.props.store.model;return r.createElement("div",{className:"form-group"},r.createElement("label",{className:"col-md-7 col-xs-6 control-label field-name"},r.createElement("span",null,e.LABEL.SECURITY_RENDER_HTML_EXPORT)),r.createElement("div",{className:"col-md-5 col-xs-6 u_controlHeight"},r.createElement(i,{type:"checkbox",checked:a.renderhtmlexport,onChange:t(a.updateHtmlexport.bind(a),o.CHECKBOX)})))},render:function(){var e=this.props.store.getBundle();return r.createElement("div",{className:"form-horizontal"},this.renderRenderHtmlInPrintingExporting(e))}}),e.exports=n(l)},function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(0),n=a(4),a(28),a(30),i=a(47),a(501),o=a(24),l=a(2975),s=a(1).isEmpty,u=r.createClass({displayName:"SecurityConfigTenant",propTypes:{store:r.PropTypes.object.isRequired},onClickResetTenantFieldValue:function(){this.props.store.model.resetTenantFieldValue()},renderTenantField:function(){var e,t=this.props,a=t.store,n=a.model,l=(o.notifyChange,a.getBundle());return r.createElement("div",{className:"form-group u_fullHeight"},r.createElement("label",{className:"col-md-7 col-xs-6 field-name control-label"},r.createElement("span",null,l.LABEL.TENANT_FIELD_LABEL),r.createElement("i",{className:"icon-info-circled",title:l.TOOLTIP.TENANT_TOOLTIP})),r.createElement("div",{className:"col-md-5 col-xs-6 tenant-fields"},r.createElement("div",{className:"col-md-10 u_inlineBlock no-padding"},(e=n.getSystemTenantFields(),n.isSystemMode||s(e)?null:r.createElement("div",{className:"field-center"},l.LABEL.SYSTEM_TENANT_FIELD_LABEL+e)),r.createElement(i,{value:n.tenantFieldValue,multi:!0,delimiter:";",simpleValue:!0,joinValues:!0,onAddNew:t.addNewTenantField,options:t.getTenantFieldOptions(n.tenantFieldValue),onBlur:t.blurTenantField,onChange:t.changeTenantField,onBlurResetsInput:!1,noResultsText:l.TEXT.TENANT_FIELD_NO_RESULT_TEXT,isInsertOnBlur:!0,textboxMode:!0,subClassName:"u_fullHeight"})),r.createElement("div",{className:"col-md-2 col-xs-1 control-label"},r.createElement("i",{className:"icon-ccw reset-tenant-field",title:l.TOOLTIP.RESET_TENANT_FIELD_TOOLTIP,onClick:this.onClickResetTenantFieldValue}))))},render:function(){var e=this.props.store,t=e.model,a=o.notifyChange,n=e.getBundle();return r.createElement("div",{className:"form-horizontal"},r.createElement("div",{className:"form-group"},r.createElement("label",{className:"col-md-7 col-xs-6 control-label field-name"},r.createElement("span",null,n.LABEL.SHOW_TENANT_FIELD_LABEL),r.createElement("i",{className:"icon-info-circled",title:n.TOOLTIP.SHOW_TENANT_TOOLTIP})),r.createElement("div",{className:"col-md-5 col-xs-6 u_controlHeight"},r.createElement("input",{type:"checkbox",className:"show-tenant-field",checked:t.showTenantFieldValue,onChange:a(t.updateShowTenantField.bind(t),o.CHECKBOX)}))),this.renderTenantField())}}),e.exports=n(l)(u)},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=a(11).withHandlers,n=a(1),i=n.curry,o=n.isNil,l=n.isEmpty,s=n.split,u=n.last,d=t(r({getTenantFieldOptions:i(function(e,t){if(o(t)||l(t))return[];return s(";",t).map(function(e){return{label:e,value:e}})}),changeTenantField:i(function(e,t){var a=e.store.model;";"===u(t)&&(t=t.slice(0,-1));a.updateTenantField(t)}),addNewTenantField:i(c),blurTenantField:i(function(e,t){c(e,t)})}));function c(e,t){var a=(e.store||{}).model;a&&!l(t.value.trim())&&(-1===s(";",a.tenantFieldValue).indexOf(t.value)&&a.addNewTenantField(t.value))}e.exports=d}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=E(a(14)),n=E(a(6)),i=E(a(2)),o=E(a(3)),l=E(a(7)),s=E(a(8)),u=a(0),d=E(u),c=E(a(4)),p=a(46),f=a(1),h=E(a(15)),m=E(a(30)),g=E(a(2977));function E(e){return e&&e.__esModule?e:{default:e}}var y=E(a(384)).default.RULES_LIST_TABLE_DEF,v=function(e){function t(e){(0,i.default)(this,t);var a=(0,l.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return a.openConfigureRulesPopup=function(e,t){var r=a.props,n=r.loaderManager,i=r.store,o=r.store.model,l=r.openPopup;o.rowLevelSecurityStepNumber=1,o.resetQuerySourceTreeFilters(),n.startLoading(),i.getConnectionDetailInfo().then(function(a){return o.populateDataSourceQuerySourceTree(a,e),l(g.default,{store:i,rulesSet:e,onSecurityRulesSetSave:t}),null}).finally(n.endLoading.bind(n))},a.addSecurityRulesSet=function(){var e=a.props.store.model;(0,a.openConfigureRulesPopup)(e.createNewSecurityRulesSet(),function(t){e.addSecurityRulesSet(t)})},a.renderDescriptionCell=function(e){var t=a.props.localization,r=e.description||t.getText("SECURITY_RULES_LIST_TEXT_NO_DESCRIPTION");return d.default.createElement("span",null,r)},a.renderNameCell=function(e){var t=a.props.localization,r=e.name||t.getText("SECURITY_RULES_LIST_TEXT_NO_NAME");return d.default.createElement("span",null,r)},a.renderActionCell=function(e){var t=a.props,r=t.localization,n=t.store.model,i=a.openConfigureRulesPopup;return d.default.createElement("div",null,d.default.createElement("a",{onClick:function(){var t=e.clone(!0);i(t,function(e){n.updateSecurityRulesSet(e)})}},d.default.createElement("span",{title:r.getText("SECURITY_RULES_LIST_TOOLTIP_EDIT_RULES_SET"),className:"icon-edit"})),d.default.createElement("span",null," "),d.default.createElement("a",{onClick:function(){var t=e.clone();n.addSecurityRulesSet(t)}},d.default.createElement("span",{title:r.getText("SECURITY_RULES_LIST_TOOLTIP_CLONE_RULES_SET"),className:"icon-copy"})),d.default.createElement("span",null," "),d.default.createElement("a",{onClick:function(){n.deleteRulesSet(e)}},d.default.createElement("span",{title:r.getText("SECURITY_RULES_LIST_TOOLTIP_DELETE_RULES_SET"),className:"icon-cancel"})))},a.onRuleMove=function(e,t,r){a.props.store.model.moveSecurityRulesSet(e,t,r)},a}return(0,s.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this.addSecurityRulesSet,t=this.props,a=t.store.model,n=t.localization,i=a.getActiveSecurityRulesSet();return d.default.createElement("div",null,d.default.createElement(h.default,{className:"u_paddingAll"},d.default.createElement(h.default.Row,null,d.default.createElement(h.default.Col,{cols:6,className:"u_controlHeight"},n.getText("SECURITY_RULES_LIST_TITLE_ROW_LEVEL_SECURITY")),d.default.createElement(h.default.Col,{cols:6,className:"u_textRight"},d.default.createElement(m.default,{onClick:e,className:"btn-report-default",label:n.getText("SECURITY_RULES_LIST_LABEL_ADD_RULES_SET")})))),d.default.createElement(p.Table,{dataSource:i,isLoading:!0,draggableTable:!0,canDrag:(0,f.constant)(!0),canDrop:(0,f.constant)(!0),move:this.onRuleMove},d.default.createElement(p.Column,(0,r.default)({},y.name,{cell:this.renderNameCell})),d.default.createElement(p.Column,(0,r.default)({},y.description,{cell:this.renderDescriptionCell})),d.default.createElement(p.Column,(0,r.default)({},y.action,{cell:this.renderActionCell}))))}}]),t}(u.Component);t.default=(0,c.default)()(v),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(a(6)),n=g(a(2)),i=g(a(3)),o=g(a(7)),l=g(a(8)),s=a(0),u=g(s),d=g(a(32)),c=g(a(2978)),p=g(a(2980)),f=g(a(2982)),h=g(a(4)),m=a(1);function g(e){return e&&e.__esModule?e:{default:e}}var E=function(e){function t(e){return(0,n.default)(this,t),(0,o.default)(this,(t.__proto__||(0,r.default)(t)).call(this,e))}return(0,l.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){var e=this.props,t=e.localization,a=e.onReject,r=e.onAccept,n=e.rulesSet,i=e.onSecurityRulesSetSave,o=e.store,l=e.confirmFn,s=e.validation,h=e.store.model,g=function(){var e=h.getSelectedQuerySourceFields();n.updateFields(e)},E="";switch(h.rowLevelSecurityStepNumber){case 1:E=t.getText("SECURITY_RULES_POPUP_TITLE_FIRST_STEP");break;case 2:E=t.getText("SECURITY_RULES_POPUP_TITLE_SECOND_STEP");break;case 3:E=t.getText("SECURITY_RULES_POPUP_TITLE_THIRD_STEP")}return u.default.createElement(d.default,{visible:!0,onClosing:function(e,o){"accept"===o?(0,m.isEmpty)(n.rules)?l("warning",{type:"warning",description:t.getText("SECURITY_RULES_MESSAGE_RULES_NOT_CREATED"),showCancel:!1}):s.validate().then(function(e){return e&&l("Confirmation",{description:t.getText("SECURITY_RULES_MESSAGE_CONFIRM_SAVING")}).then(function(){return i(n),r(),null}),null}):a()},autoClose:!1,type:"none",sizeClass:"modal-lg"},u.default.createElement(d.default.Header,{title:E}),u.default.createElement(d.default.Body,null,u.default.createElement("div",null,1===h.rowLevelSecurityStepNumber&&u.default.createElement(p.default,{store:o}),2===h.rowLevelSecurityStepNumber&&u.default.createElement(f.default,{store:o}),3===h.rowLevelSecurityStepNumber&&u.default.createElement(c.default,{rulesSet:n,store:o}))),u.default.createElement(d.default.Footer,null,h.rowLevelSecurityStepNumber>1&&u.default.createElement(d.default.ConfirmationButton,{onClick:function(){var e=h.rowLevelSecurityStepNumber-1;1===e&&g(),h.rowLevelSecurityStepNumber=e},type:"custom",className:"btn-report-default"},t.getText("COMMON_LABEL_BACK")),h.rowLevelSecurityStepNumber<3&&u.default.createElement(d.default.ConfirmationButton,{onClick:function(){var e=h.rowLevelSecurityStepNumber+1;if(2===e){var a=h.getSelectedQuerySourceIds();(0,m.isEmpty)(a)?l("warning",{type:"warning",description:t.getText("SECURITY_RULES_MESSAGE_DATA_SOURCES_NOT_SELECTED"),showCancel:!1}):o.getConnectionDetailInfoByQuerySoures({querySourceIds:a}).then(function(t){return h.populateFieldQuerySourceTree(t,n),h.rowLevelSecurityStepNumber=e,null})}else g(),(0,m.isEmpty)(n.fields)?l("warning",{type:"warning",description:t.getText("SECURITY_RULES_MESSAGE_FIELDS_NOT_SELECTED"),showCancel:!1}):h.rowLevelSecurityStepNumber=e},type:"custom"},t.getText("COMMON_LABEL_NEXT")),3===h.rowLevelSecurityStepNumber&&u.default.createElement(d.default.ConfirmationButton,{type:"cancel"},t.getText("COMMON_LABEL_CANCEL")),3===h.rowLevelSecurityStepNumber&&u.default.createElement(d.default.ConfirmationButton,{type:"accept"},t.getText("COMMON_LABEL_SAVE"))))}}]),t}(s.Component),y=(0,h.default)()(E);y.displayName="SecurityRulesPopup",t.default=y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=S(a(14)),n=S(a(6)),i=S(a(2)),o=S(a(3)),l=S(a(7)),s=S(a(8)),u=a(0),d=S(u),c=S(a(4)),p=a(46),f=a(1),h=S(a(15)),m=S(a(30)),g=S(a(19)),E=S(a(29)),y=S(a(384)),v=S(a(2979)),T=S(a(47)),_=S(a(25));function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,_.default)()(E.default),b=(0,_.default)()(T.default),N=(0,_.default)()(g.default),A=y.default.RULES_TABLE_DEF,R=y.default.ASSIGNED_TYPE,O=y.default.ACCESS_MODE_OPTIONS,I=y.default.ACCESSIBLE_VALUE_OPTIONS,D=y.default.CONSTRAINTS,P=function(e){function t(e){(0,i.default)(this,t);var a=(0,l.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return a.addRule=function(){a.props.rulesSet.addNewRule()},a.renderUserGroupCell=function(e){return d.default.createElement(C,{field:"assignType",blankOption:!0,options:R,value:e.userGroup,valueField:"value",labelField:"label",validations:D.REQUIRED,onChange:function(t){e.updateUserGroup(t.value)}})},a.renderUserValueCell=function(e){var t=a.props.store;return d.default.createElement(v.default,{data:e,store:t})},a.renderAccessibleVisibleValueCell=function(e){return d.default.createElement(b,{multi:!0,options:I,labelKey:"label",valueKey:"value",scalable:!1,value:e.accessibleValuesInfo,onChange:function(t){e.updateAccessibleValue(t)},onAddNew:function(t){return e.checkNewAccessibleValue(t)},field:"field",inputMaxHeight:85,validations:D.REQUIRED,noResultsText:"Press Enter to add value"})},a.renderAccessModeCell=function(e){return d.default.createElement(C,{field:"accessMode",blankOption:!0,options:O,value:e.accessMode,valueField:"value",labelField:"label",validations:D.REQUIRED,onChange:function(t){e.updateAccessMode(t.value)}})},a.renderActionCell=function(e){var t=a.props,r=t.rulesSet,n=t.localization;return d.default.createElement("div",null,d.default.createElement("a",{onClick:function(){r.cloneRule(e)}},d.default.createElement("span",{title:n.getText("SECURITY_RULES_SET_TOOLTIP_CLONE_RULE"),className:"icon-copy"})),d.default.createElement("span",null," "),d.default.createElement("a",{onClick:function(){r.deleteRule(e)}},d.default.createElement("span",{title:n.getText("SECURITY_RULES_SET_TOOLTIP_DELETE_RULE"),className:"icon-cancel"})))},a.onRuleMove=function(e,t,r){a.props.rulesSet.moveRule(e,t,r)},a}return(0,s.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this.props,t=e.rulesSet,a=e.localization,n=t.activeRules;return d.default.createElement("div",null,d.default.createElement(h.default,{className:"u_paddingBottom"},d.default.createElement(h.default.Row,null,d.default.createElement(h.default.Col,{cols:2,className:"u_controlHeight"},a.getText("SECURITY_RULES_SET_LABEL_NAME")),d.default.createElement(h.default.Col,{cols:10},d.default.createElement(N,{validations:D.REQUIRED,className:"form-control",value:t.name,onChange:function(e){t.updateName(e.target.value)}}))),d.default.createElement(h.default.Row,null,d.default.createElement(h.default.Col,{cols:2,className:"u_controlHeight"},a.getText("SECURITY_RULES_SET_LABEL_DESCRIPTION")),d.default.createElement(h.default.Col,{cols:10},d.default.createElement(g.default,{className:"form-control",value:t.description,onChange:function(e){t.updateDescription(e.target.value)}}))),d.default.createElement(h.default.Row,null,d.default.createElement(h.default.Col,{className:"u_textRight"},d.default.createElement(m.default,{onClick:this.addRule,className:"btn-report-default",label:a.getText("SECURITY_RULES_SET_LABEL_ADD_RULE")})))),d.default.createElement(p.Table,{dataSource:n,isLoading:!0,draggableTable:!0,canDrag:(0,f.constant)(!0),canDrop:(0,f.constant)(!0),move:this.onRuleMove},d.default.createElement(p.Column,(0,r.default)({},A.userGroup,{cell:this.renderUserGroupCell})),d.default.createElement(p.Column,(0,r.default)({},A.userValues,{cell:this.renderUserValueCell})),d.default.createElement(p.Column,(0,r.default)({},A.accessibleValues,{cell:this.renderAccessibleVisibleValueCell})),d.default.createElement(p.Column,(0,r.default)({},A.accessMode,{cell:this.renderAccessModeCell})),d.default.createElement(p.Column,(0,r.default)({},A.action,{cell:this.renderActionCell}))))}}]),t}(u.Component);t.default=(0,c.default)()(P),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=g(a(14)),i=g(a(6)),o=g(a(2)),l=g(a(3)),s=g(a(7)),u=g(a(8)),d=a(0),c=g(d),p=g(a(4)),f=a(384),h=g(a(16)),m=a(1);function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,p.default)()(r=function(e){function t(){var e,a,r,n;(0,o.default)(this,t);for(var l=arguments.length,u=Array(l),d=0;d0?t=m(s.default.DETECTED_CHANGE_LEVEL.ADDED):f(e,s.default.DETECTED_CHANGE_LEVEL.NONE).length>0&&(t=m(s.default.DETECTED_CHANGE_LEVEL.NONE)),{icon:t}},n=function(e){var t=(0,p.get)("name",e.parentNode),a=!(0,p.isEmpty)(e.childNodes),r=(0,l.default)({"u-colorBlue":y(e)});return{icon:a||[h.STORE_PROCEDURE,h.FUNCTION].indexOf(t)>-1?m(e.change):null,className:r}},o=function(e){return{icon:!(0,p.isEmpty)(e.childNodes)&&m(e.change)}},f=function(e,t){return(0,p.filter)(function(e){return e.change>=t},e.childNodes)},m=function(e){return e>s.default.DETECTED_CHANGE_LEVEL.NONE?r.default.createElement("span",{className:"icon-attention warning-color",title:s.default.INCONSISTENT_DATA_MODEL}):e===s.default.DETECTED_CHANGE_LEVEL.NONE?r.default.createElement("span",{className:"icon-ok-circled success-color",title:s.default.CONSISTENT_DATA_MODEL}):null},g=function(e){var t=E(e.change,s.default.DETECTED_CHANGE_LEVEL.ADDED),a=E(e.change,s.default.DETECTED_CHANGE_LEVEL.MODIFIED),n=(0,l.default)({u_textLineThrough:t,"icon-move-data warning-color":a,"u-colorBlue":y(e)}),i=(0,p.cond)([[(0,p.matches)({isNew:!0}),(0,p.constant)(s.default.CONSISTENT_DATA_MODEL)],[(0,p.matches)({isAdded:!0}),(0,p.constant)(s.default.INCONSISTENT_DATA_MODEL)],[(0,p.matches)({isEdited:!0}),(0,p.constant)(s.default.CHANGED_DATA_TYPE)]])({isAdded:t,isEdited:a});return t?{className:n}:{className:(0,l.default)({"u-colorBlue":y(e)}),icon:r.default.createElement("span",{className:n,title:i})}},E=function(e,t){return e===t},y=function(e){return!e.checked&&((0,p.get)("parentNode.initData.belongToCopiedReport",e)||(0,p.get)("parentNode.belongToCopiedReport",e)||(0,p.get)("initData.belongToCopiedReport",e)||(0,p.get)("belongToCopiedReport",e))},v=e.store,T=e.node,_=e.toggleCollapse,S=e.filter,C=(0,l.default)("checkbox",{"disabled-elm":t(T)}),b=(0,l.default)({hidden:!e.showCheckbox}),N=T.childCount(function(t){return(0,p.isFunction)(e.showSelected)?e.showSelected(t):!e.showSelected||t.dataSource.checked}),A=e.showIcon?function(e){var t=!(0,p.isEmpty)(e.childNodes),r=[h.STORE_PROCEDURE,h.FUNCTION,h.TABLE,h.VIEW].indexOf((0,p.get)("name",e.parentNode))>-1;return e.isTypeGroup()?t?a(e):null:r?n(e):t?o(e):g(e)}(T):{};return r.default.createElement("div",{className:C,key:T.id},r.default.createElement(c.default,{type:"checkbox",checked:T.dataSource.checked,onChange:function(e){(0,i.action)(function(){v.item.resetWorkspaceTenantsStatus(),v.item.setAlertMessage(u.default.EMPTY_MESSAGE),T.setChecked(e.target.checked),v.item.reCalculateSelectedSources()})()},className:b}),r.default.createElement("label",{className:"u_paddingLeft u_textTruncate u_alignBottom",key:T.id,disabled:t(T)?"disabled":null},r.default.createElement(d.default,{highlight:S,text:T.name,className:(0,p.get)("className",A),style:(0,p.get)("style",A),tooltip:T.name}),function(e,t){return e.isTypeGroup()&&e.childNodes?r.default.createElement("span",null," (",t,") "):null}(T,N),(0,p.get)("icon",A)),!t(T)&&r.default.createElement("i",{className:"icon-toggle-triangle",onClick:function(){_()}}))};m.propTypes={store:n.default.object.isRequired,node:n.default.object.isRequired,filter:n.default.string,showCheckbox:n.default.bool,showIcon:n.default.bool,showSelected:n.default.oneOfType([n.default.func,n.default.bool])},t.default=(0,o.default)()(m),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p;r=a(0),n=r.PropTypes,i=a(24),o=a(15),l=a(30),s=a(19),u=a(57),d=a(112),c=a(9).observer,p=r.createClass({displayName:"MappingHeader",propTypes:{item:n.object.isRequired,addMapping:n.func.isRequired,localization:n.object.isRequired,tenantMode:n.bool},getDefaultProps:function(){return{tenantMode:!1}},render:function(){var e=this.props,t=e.localization,a=e.item,n=e.addMapping,c=e.tenantMode?d.MAPPING_HEADER.TENANT:d.MAPPING_HEADER.GLOBAL,p=e.tenantMode?d.MAPPING_HEADER.SPECIFIC_MAPPING_TOOLTIP:d.MAPPING_HEADER.ALL_MAPPING_TOOLTIP;return r.createElement(o,null,r.createElement(o.Row,{className:"u_table u_fullWidth"},r.createElement(o.Col,{cols:2,className:"u_tableCell u_alignMiddle text-bold u_floatNone"},c,r.createElement("span",{className:"icon-info-circled",title:p})),!e.tenantMode&&r.createElement(o.Col,{cols:3,className:"u_tableCell u_alignMiddle u_floatNone"},r.createElement(s,{type:"checkbox",checked:a.mergeDuplicateMappings,id:"mergeDuplicate",onChange:i.notifyChange(this.onMergeDuplicateChanged,i.CHECKBOX)}),r.createElement(u,{className:"u_paddingRight u_alignMiddle u_textNormal",htmlFor:"mergeDuplicate"},t.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_MERGE_DUPLICATE_MAPPINGS"),r.createElement("span",{className:"icon-info-circled",title:d.MAPPING_HEADER.MERGE_DUPLICATE_TOOLTIP}))),r.createElement(o.Col,{cols:7,className:"u_tableCell u_alignMiddle pull-right text-right"},r.createElement(l,{label:t.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_ADD_MAPPING"),onClick:n}))))},onMergeDuplicateChanged:function(e){this.props.item.setPropertyValue("mergeDuplicateMappings",e)}}),e.exports=c(p)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),n=a(9).observer,i=a(4),o=a(28),l=a(3002),s=a(3003),u=a(3004),d=r.createClass({displayName:"HeaderSection",propTypes:{store:r.PropTypes.object.isRequired,item:r.PropTypes.object.isRequired},render:function(){var e=this.props,t=e.item,a=e.store,n={expanedOption:!0,component:l,detail:t,detailStore:a},i={component:u,detail:t};return a.item.isNew?r.createElement("div",{className:"panel-heading workspace-header"},r.createElement(l,{detail:t,detailStore:a})):r.createElement(o,{header:n,footer:i,collapsible:!0,className:"header-section"},r.createElement(s,this.props))}}),e.exports=n(i({toClass:!0})(d))},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f;r=a(0),n=a(10),i=a(24),o=a(112),l=a(4),a(30),a(191),a(62),a(15),s=a(19),u=a(25)()(s),d=a(105),c=a(16),p=a(1).isNil,f=r.createClass({displayName:"Header",getInitialState:function(){return{editWorkspaceName:!1,workspaceName:this.props.detail.name||""}},componentWillReceiveProps:function(e){this.updateEditWorkspaceName(!1),this.updateWorkspaceName(e.detail.name)},updateEditWorkspaceName:function(e){this.setState({editWorkspaceName:e})},updateWorkspaceName:function(e){this.setState({workspaceName:e})},render:function(){var e=this.props.detail,t=this.props.detailStore,a=this.props.localization,l=n("icon-pencil selectable",{hide:p(e.id)}),s=d(c.currentUser.dateFormat,e.created);return this.state.editWorkspaceName?r.createElement("div",null,r.createElement(u,{className:"form-control",containerClassName:"u_inlineBlock",field:"Name",validations:o.SAVE_WORKSPACE_CONSTRAINTS.WORKSPACE_NAME,value:this.state.workspaceName,onBlur:f.bind(this),onChange:i.notifyChange(this.updateWorkspaceName,i.INPUT)}),r.createElement("span",null,r.createElement("a",{className:"btn btn-default custom-button",title:a.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_SET_WORKSPACE_NAME"),onClick:f.bind(this)},r.createElement("i",{className:"icon-ok-circled"})),r.createElement("a",{className:"btn btn-default custom-button",title:a.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_REVERT_WORKSPACE_NAME"),onClick:function(){this.updateEditWorkspaceName(!1),this.updateWorkspaceName(this.props.detail.name)}.bind(this)},r.createElement("i",{className:"icon-cancel-circled"})))):r.createElement("div",null,r.createElement("div",{className:"text-bold u_inlineBlock",onClick:this.props.collapseToggle},e.name," | ",s||e.createdAsString),r.createElement("i",{className:l,title:a.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_RENAME"),onClick:function(){this.updateEditWorkspaceName(!0),this.updateWorkspaceName(this.props.detail.name)}.bind(this)}));function f(){var a=this.props.validation;a.validate("Name").then(function(r){r&&t.validateWorkspaceName(this.state.workspaceName).then(function(t){return!0===t?(this.updateEditWorkspaceName(!1),e.updateWorkspaceName(this.state.workspaceName),!0):t.success?void 0:(a.updateErrors(t.messages),!1)}.bind(this))}.bind(this))}}}),e.exports=l()(f)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(0),n=a(10),i=a(24),o=a(4),a(30),a(62),l=a(15),s=a(19),u=a(29),d=a(1).isNil,c=r.createClass({displayName:"Body",getInitialState:function(){return{isEditDesc:!1,description:this.props.item.description}},componentWillReceiveProps:function(e){this.showEditDesc(!1),this.updateDesc(e.item.description)},showEditDesc:function(e){this.setState({isEditDesc:e})},updateDesc:function(e){this.setState({description:e})},render:function(){var e=this.props,t=e.item,a=this.props.localization;return r.createElement(l,null,r.createElement(l.Row,null,r.createElement(l.Col,{cols:1},a.getText("COMMON_LABEL_OWNER"),": "),r.createElement(l.Col,{cols:2},r.createElement(u,{valueField:"id",labelField:"fullName",options:e.store.masterStore.ownerList,onChange:i.notifyChange(function(e){this.props.item.updateOwnerList(e)}.bind(this),i.DROPDOWN),value:t.ownerId}))),r.createElement(l.Row,null,r.createElement(l.Col,{cols:1},a.getText("COMMON_LABEL_DESCRIPTION"),": "),r.createElement(l.Col,{cols:11},this.renderEditDescription())))},renderEditDescription:function(){var e=this.props.item,t=this.state,a=this.props.localization,o=n("icon-pencil selectable",{hide:d(e.id)});return t.isEditDesc?r.createElement("div",{className:"izenda-EditDesciption u_inlineBlock"},r.createElement(s,{className:"form-control u_inlineBlock",value:t.description,onChange:i.notifyChange(this.updateDesc,i.INPUT)}),r.createElement("span",{className:""},r.createElement("a",{className:"btn btn-default custom-button",title:a.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_SET_DESCRIPTION"),onClick:function(){e.updateWorkspaceDescription(t.description),this.showEditDesc(!1)}.bind(this)},r.createElement("i",{className:"icon-ok-circled"})),r.createElement("a",{className:"btn btn-default custom-button",title:a.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_REVERT_DESCRIPTION"),onClick:function(){this.showEditDesc(!1),this.updateDesc(e.description)}.bind(this)},r.createElement("i",{className:"icon-cancel-circled"})))):r.createElement("div",null,r.createElement("span",null,t.description),r.createElement("i",{className:o,title:a.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_RENAME"),onClick:function(){this.showEditDesc(!0)}.bind(this)}))}}),e.exports=o()(c)},function(e,t,a){"use strict";var r,n,i,o,l,s;r=a(0),n=a(4),a(191),i=a(15),o=a(105),l=a(16),s=r.createClass({displayName:"Footer",render:function(){var e=this.props.detail,t=o(l.currentUser.dateFormat,e.created),a=o(l.currentUser.dateFormat,e.modified),n=this.props.localization;return r.createElement(i,null,r.createElement(i.Row,null,r.createElement(i.Col,{cols:3},r.createElement("span",null,n.getText("COMMON_LABEL_CREATED"),": "),r.createElement("span",{className:"date-text"},t||e.createdAsString)),r.createElement(i.Col,{cols:9},r.createElement("span",null,n.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_LAST_MODIFIED"),": "),r.createElement("span",{className:"date-text"},a))))}}),e.exports=n()(s)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m;r=a(0),n=a(4),i=a(19),o=a(24),l=a(28),s=a(15),u=a(1),d=u.isEmpty,c=u.chunk,p=n()(function(e){var t=e.store;return r.createElement(l,{header:{title:"Roles Copy Settings",icon:"icon-toggle-triangle",className:"u_noPaddingLeft u-bgGray"},className:"header-section",collapsible:!0,expanedOption:!0,id:e.id},r.createElement(f,{store:t}))}),f=n()(function(e){var t=e.store,a=t.item,n=e.localization.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_SELECT_ROLES_TO_COPY"),l=a.selectAllRole.bind(a),u=a.allRoleCopyChecked,c=a.roleList;return r.createElement(s,null,r.createElement(s.Row,{className:"u_noMarginAll u_paddingRight u_paddingBottom"},r.createElement(h,{store:t})),r.createElement(s.Row,{className:"u_noMarginAll u-bgLightBlue u_paddingAll"},r.createElement("span",{className:"u_marginLeft"},n)),r.createElement(s.Row,{className:"u_noMarginAll u_borderAll u_paddingAll"},!d(c)&&r.createElement(s.Col,{cols:"12"},r.createElement(s.Col,{cols:"3"},r.createElement("label",null,r.createElement(i,{type:"checkbox",checked:u,onChange:o.notifyChange(l,o.CHECKBOX)}),r.createElement("span",null,"All"))),r.createElement(m,{store:t}))))}),h=n()(function(e){var t=e.store.item,a=e.localization.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_COPY_ROLE_PERMISSIONS");return r.createElement("div",null,r.createElement("label",{className:"u_noMarginBottom"},r.createElement("input",{type:"checkbox",checked:t.copyRolePermission,onChange:function(e){t.setCopyRolePermissions(e.target.checked)},className:"u_noMarginTop u_alignMiddle"}),r.createElement("span",{className:"u_paddingRight u_alignMiddle u_textNormal u_inlineBlock"},a)))}),m=n()(function(e){var t=e.store.item,a=t.roleList,n=c(4,a);return r.createElement(s.Col,{cols:"9"},r.createElement(s.Row,null,r.createElement(s.Col,{cols:"12"},n.map(function(e,n){return r.createElement(s.Row,{key:n},function(e){var n=[];return e.forEach(function(e){n.push(r.createElement(s.Col,{cols:"3",key:e.id},r.createElement("label",{className:"u_textTruncate"},r.createElement(i,{type:"checkbox",key:e.id,value:e.id,checked:e.checked,onChange:o.notifyChange(t.selectedRoleCopy.bind(t,a,e.id),o.CHECKBOX)}),r.createElement("span",{title:e.name},e.name))))}),n}(e))}))))}),e.exports=n()(p)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i=E(a(6)),o=E(a(2)),l=E(a(3)),s=E(a(7)),u=E(a(8)),d=a(0),c=E(d),p=E(a(4)),f=E(a(19)),h=E(a(24)),m=E(a(28)),g=E(a(15));function E(e){return e&&e.__esModule?e:{default:e}}var y=(0,p.default)()(r=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=e.store,a=e.permissionSetting;return c.default.createElement(m.default,{id:this.props.id,header:{title:"System Configuration Copy Settings",icon:"icon-toggle-triangle",className:"u_noPaddingLeft u-bgGray"},className:"header-section",collapsible:!0,expanedOption:!0},c.default.createElement(v,{store:t,permissionSetting:a}))}}]),t}(d.Component))||r;t.default=y;var v=(0,p.default)()(n=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e)),r=e.store.item;return a.item=r,a}return(0,u.default)(t,e),(0,l.default)(t,[{key:"onCopyEmailConfigurationChanged",value:function(e){var t=this.item;t.copyEmailConfiguration=e,t.markDirty()}},{key:"onCopyGoogleMapConfigurationChanged",value:function(e){var t=this.item;t.copyGoogleMapConfiguration=e,t.markDirty()}},{key:"onCopyReportConfigurationChanged",value:function(e){var t=this.item;t.copyReportConfiguration=e,t.markDirty()}},{key:"render",value:function(){var e=this.props,t=e.store.item,a=e.localization,r=a.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_SELECT_SYSYEM_CONFIGURATION_TO_COPY");return c.default.createElement(g.default,null,c.default.createElement(g.default.Row,{className:"u_noMarginAll u-bgLightBlue u_paddingAll"},c.default.createElement("span",{className:"u_marginLeft"},r)),c.default.createElement(g.default.Row,{className:"u_noMarginAll u_borderAll u_paddingAll"},c.default.createElement(g.default.Col,{cols:"12"},c.default.createElement(g.default.Col,{cols:"3"},c.default.createElement("label",null,c.default.createElement(f.default,{type:"checkbox",checked:t.copyEmailConfiguration,onChange:h.default.notifyChange(this.onCopyEmailConfigurationChanged.bind(this),h.default.CHECKBOX)}),c.default.createElement("span",null,a.getText("CONTEXT_MENU_LABEL_EMAIL")))),c.default.createElement(g.default.Col,{cols:"3"},c.default.createElement("label",null,c.default.createElement(f.default,{type:"checkbox",checked:t.copyReportConfiguration,onChange:h.default.notifyChange(this.onCopyReportConfigurationChanged.bind(this),h.default.CHECKBOX)}),c.default.createElement("span",null,a.getText("CONTEXT_MENU_LABEL_REPORT")))),c.default.createElement(g.default.Col,{cols:"3"},c.default.createElement("label",null,c.default.createElement(f.default,{type:"checkbox",checked:t.copyGoogleMapConfiguration,onChange:h.default.notifyChange(this.onCopyGoogleMapConfigurationChanged.bind(this),h.default.CHECKBOX)}),c.default.createElement("span",null,a.getText("CONTEXT_MENU_LABEL_GOOGLE_MAP")))))))}}]),t}(d.Component))||n;e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(4),a(10),i=a(32),o=a(15),a(24),l=r.createClass({displayName:"RunCopyPopup",propTypes:{tree:r.PropTypes.object.isRequired,treeComponent:r.PropTypes.func.isRequired,title:r.PropTypes.string.isRequired,informationMessage:r.PropTypes.string.isRequired,confirmationMessage:r.PropTypes.string.isRequired},render:function(){var e=this.props,t=e.localization;return r.createElement(i,{visible:!0,type:"none",onClosing:this.onClosing,autoClose:!1},r.createElement(i.Header,{title:e.title}),r.createElement(i.Body,null,r.createElement("div",{className:"run-copy-info"},r.createElement(o,null,r.createElement(o.Row,null,r.createElement("div",{className:"confirmation-info"},r.createElement("p",null,e.informationMessage),r.createElement("p",null,e.confirmationMessage))))),r.createElement(o,null,r.createElement(o.Row,{className:"izenda-runCopyTree u_borderAll"},this.renderTree()))),r.createElement(i.Footer,null,r.createElement(i.ConfirmationButton,{type:"accept"},t.getText("COMMON_LABEL_OK")),r.createElement(i.ConfirmationButton,{type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))},renderTree:function(){var e=this.props;return r.createElement(e.treeComponent,{store:e.store,tree:e.tree,leafKey:e.leafKey,showCheckbox:!0})},onClosing:function(e,t){var a=this.props;return"accept"===t?a.onAccept():"cancel"===t?a.onReject():void 0}}),e.exports=n()(l)},function(e,t,a){"use strict";!function(){var t=a(0),r=(a(24),a(5),a(9).observer,a(10),a(4)),n=a(28),i=a(169),o=a(26),l=a(240),s=a(3009),u=(a(98),a(1).isEmpty);function d(e,a,r,n){var o=function(e,a,r){return function(n){return t.createElement(s,{key:n.id,node:n,store:a,filter:e.filter.text,showCheckbox:r.showCheckbox,showIcon:r.showIcon})}}(e,a,n);return function(e,t){return!(u(e.childNodes)&&!e.isTypeGroup()||!(e.isFieldNode&&t||!e.isFieldNode))}(r,n.showFieldNode)?t.createElement(l,{className:"panel-group collapsible-list-items datasource",key:r.id,autoCollapse:!1,defaultExpand:!0},t.createElement(l.Item,{expanded:!0,key:r.id},t.createElement(l.ItemHeader,{className:"panel-heading"},o(r)),t.createElement(l.ItemBody,{className:"panel-body"},t.createElement(i,{className:"list-group",key:r.id},r.childNodes.map(function(t){return n.showSelected&&!t.checked?r.isFieldNode?o(t):null:d(e,a,t,n)}))))):o(r)}var c=t.createClass({displayName:"SourceTree",propTypes:{store:t.PropTypes.object.isRequired,tree:t.PropTypes.object.isRequired,showSelected:t.PropTypes.bool,showCheckbox:t.PropTypes.bool,showFieldNode:t.PropTypes.bool,showIcon:t.PropTypes.bool},render:function(){var e=this.props,a=e.store,r=e.tree;return t.createElement(n,{className:"workspace-tree"},t.createElement("div",{className:"workspace-tree-wraper"},t.createElement(o,null,r.root.map(function(t){return t.childNodes.map(function(t){return e.showSelected&&!t.checked?null:d(r,a,t,e)})}))))}});e.exports=r()(c)}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),a(35),n=a(5),a(9).observer,i=a(4),o=a(10),l=a(69),s=a(19),u=a(24),d=r.createClass({displayName:"SourceTreeItem",propTypes:{store:r.PropTypes.object.isRequired,node:r.PropTypes.object.isRequired,filter:r.PropTypes.string,showCheckbox:r.PropTypes.bool,showIcon:r.PropTypes.bool},render:function(){this.props.store;var e=this.props.node,t=(e.dataSource,this.props.filter),a=this.props.toggleCollapse,n=o("checkbox",{"disabled-elm":c(e)}),i=o("u_noMarginAll",{hidden:!this.props.showCheckbox}),d=e.childCount();return r.createElement("div",{className:n,key:e.id},r.createElement(s,{type:"checkbox",checked:e.dataSource.checked,onChange:u.notifyChange(this.onCheck,u.CHECKBOX),className:i}),r.createElement("label",{className:"tree-item",key:e.id,disabled:c(e)?"disabled":null},r.createElement(l,{highlight:t,text:e.name})),c(e)?null:r.createElement("i",{className:"icon-toggle-triangle",onClick:function(){a()}}));function c(e){return e.isTypeGroup()&&0===d}},onCheck:n.action(function(e){this.props.node.setChecked(e)})}),e.exports=i()(d)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p;r=a(0),n=a(4),i=a(184),o=a(19),l=a(69),s=a(3011),u=a(1),d=u.isEmpty,c=u.invoke,p=r.createClass({displayName:"RunCopyTree",propTypes:{tree:r.PropTypes.object.isRequired,leafKey:r.PropTypes.string.isRequired},componentWillMount:function(){this.tree=this.props.buildTree(this.props.tree)},componentWillReceiveProps:function(e,t){this.tree=this.props.buildTree(e.tree)},renderNode:function(e,t,a,r,n){var i,o=this.props,l=o.leafKey,s=e.source,u=!1;switch(e.nodeType){case"All":i=o.onChangeAll.bind(o,s,n);break;case"Tenant":i=o.onChangeTenant.bind(o,s,n);break;case"Category":i=o.onChangeCategory.bind(o,s,n);break;case"SubCategory":i=o.onChangeSubCategory.bind(o,s,n);break;case l:i=o.onChangeLeafNode.bind(o,s,n),u=!0;break;default:return null}return this.renderData(e.source,t,a,r,n,u,i)},renderData:function(e,t,a,n,i,s,u){var c=this.props,p=d(e.name)?"UNCATEGORIZED":e.name;return r.createElement("div",null,r.createElement(o,{type:"checkbox",indeterminate:e.indeterminate,checked:e.checked,onChange:u}),r.createElement(l,{highlight:c.filterText,onClick:a,text:p,className:"selectable u_inline u_paddingLeft",tooltip:p}),s?null:t)},render:function(){var e=this.props,t=c("getChildNodes");return r.createElement(i,{className:"u_paddingRight",nodes:this.tree,renderNode:this.renderNode,getKey:e.getKey,getChildNodes:t,collapsed:!1})}}),e.exports=n(s)(p)},function(e,t,a){"use strict";!function(){a(0);var t=a(11).compose,r=a(11).withHandlers,n=(a(5).observable,a(1)),i=n.curry,o=n.map,l=n.forEach,s=n.isNil,u=n.flow,d=n.filter,c=n.size,p=n.find,f=n.get,h=n.split,m=n.noop,g=n.isPlainObject,E=n.some,y=n.isEqual,v=t(r({buildTree:i(function(e,t){var a=e.leafKey,r=function(e){var t=o(n,e.categories);return e.indeterminate=T(t),{nodeType:"Tenant",source:e,getChildNodes:function(){return t}}},n=function(e){var t;return e.subCategories.length>0&&(t=i(e.subCategories)),e.indeterminate=T(t),{nodeType:"Category",source:e,getChildNodes:function(){return t}}},i=function(e){var t=[];return l(function(e){t=s(e.id)?t.concat(d(e[a])):t.concat(u(e))},e),t},u=function(e){var t=d(e[a]);return e.indeterminate=T(t),{nodeType:"SubCategory",source:e,getChildNodes:function(){return t}}},d=function(e){return o(c,e)},c=function(e){return{nodeType:a,source:e,getChildNodes:m}};return function(e){N.push({level:0,prop:"tenants"}),N.push({level:1,prop:"categories"}),N.push({level:2,prop:"subCategories,"+e}),N.push({level:3,prop:e})}(a),g(t)?[(p=o(r,t.tenants),t.indeterminate=T(p),{nodeType:t.name,source:t,getChildNodes:function(){return p}})]:null;var p}),getKey:i(function(e,t){return t.source.id}),onChangeAll:i(function(e,t,a,r){var n=e.leafKey,i=r.target.checked;t.checked=i,t.indeterminate=!1,function(e,t,a){l(function(t){t.checked=a,t.indeterminate=!1,_(e,t.categories,a)},t)}(n,t.tenants,i)}),onChangeTenant:i(function(e,t,a,r){var n=e.leafKey,i=r.target.checked;t.checked=i,t.indeterminate=!1,_(n,t.categories,i),b(a,i)}),onChangeCategory:i(function(e,t,a,r){var n=e.leafKey,i=r.target.checked;t.checked=i,t.indeterminate=!1,S(n,t.subCategories,i),b(a,i)}),onChangeSubCategory:i(function(e,t,a,r){var n=e.leafKey,i=r.target.checked;t.checked=i,t.indeterminate=!1,C(t[n],r.target.checked),b(a,i)}),onChangeLeafNode:i(function(e,t,a,r){var n=r.target.checked;t.checked=n,b(a,n)})}));function T(e){if(!s(e)&&!s(e[0])){if(u(o("source"),o(function(e){return{indeterminate:e.indeterminate}}),E({indeterminate:!0}))(e))return!0;var t=u(o("source"),d({checked:!0}),c)(e);return 0!==t&&e.length!==t}}function _(e,t,a){l(function(t){t.checked=a,t.indeterminate=!1,S(e,t.subCategories,a)},t)}function S(e,t,a){l(function(t){t.checked=a,t.indeterminate=!1,C(t[e],a)},t)}function C(e,t){l(function(e){e.checked=t},e)}function b(e,t){s(e)||(e.data.source.checked=t||!function(e){var t=u(p(function(t){return y(t.level,e.level)}),f("prop"),h(","))(N),a=!0;return l(function(e){return!s(e.id)&&e.checked?(a=!1,!1):(l(function(e){if(e.checked)return a=!1,!1},e[t[1]]),!!a&&void 0)},e.data.source[t[0]]),a}(e),e.data.source.indeterminate=T(e.data.getChildNodes()),s(e.parent)||b(e.parent,t))}var N=[];e.exports=v}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(a(0)),n=f(a(13)),i=f(a(4)),o=f(a(28)),l=f(a(3013)),s=f(a(3026)),u=f(a(1351)),d=f(a(112)),c=f(a(3027)),p=f(a(12));function f(e){return e&&e.__esModule?e:{default:e}}function h(e){var t=e.store,a=e.item,n={title:e.buildTitle(e),icon:"icon-toggle-triangle",className:"u_noPaddingLeft u-bgGray",component:s.default};if(!(!a.copyOnlySettings&&(a.copyDataConnector||a.copyDataModel||a.copyDashboard||a.copyReport)))return null;var i=a.copyDataModel,c=a.copyReport||a.copyDashboard,f=i||c;return r.default.createElement(o.default,{collapsible:!0,header:n,className:"u_fullWidth",expanedOption:!0,id:d.default.MODULE_ANCHORS.DATA_MODEL_SETTING},f&&r.default.createElement("div",{className:"u_marginBottom"},i&&r.default.createElement("span",null,r.default.createElement("label",{className:"u_noMarginBottom"},r.default.createElement("input",{type:"checkbox",checked:a.copyPositionId,onChange:function(e){a.setCopyPositionId(e.target.checked)},className:"u_noMarginTop u_noMarginLeft u_alignMiddle"}),r.default.createElement("span",{className:"u_paddingRight u_alignMiddle u_textNormal u_inlineBlock"},p.default.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_COPY_RELATIONSHIP_POSITION_ID")))),c&&r.default.createElement("span",null,r.default.createElement("label",{className:"u_noMarginBottom"},r.default.createElement("input",{type:"checkbox",checked:a.copyFilterValues,onChange:function(e){a.setCopyFilterValues(e.target.checked)},className:"u_noMarginTop u_noMarginLeft u_alignMiddle"}),r.default.createElement("span",{className:"u_paddingRight u_alignMiddle u_textNormal u_inlineBlock"},p.default.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_COPY_FILTER_VALUES"))))),r.default.createElement(l.default,{store:t,item:a}),a.showMappingGrid&&r.default.createElement(u.default,{store:t,item:a,dataSource:a.workspaceMappings,addMapping:a.addWorkspaceMapping.bind(a)}))}h.propTypes={store:n.default.object.isRequired,item:n.default.object.isRequired},t.default=(0,i.default)(c.default)(h),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(0),n=a(4),a(789),i=a(3014),o=a(3015),l=a(3021),s=a(3023),u=a(3024),a(15),a(10),d=a(3025),a(9).observer,c=r.createClass({displayName:"SourceDestination",propTypes:{store:r.PropTypes.object.isRequired,item:r.PropTypes.object.isRequired},render:function(){this.props;var e=this.props.store,t=this.props.item;this.props.localization;return r.createElement("div",{className:"izenda-sourceDestination"},r.createElement(l,{workspaceDetail:t}),r.createElement(s,{store:e,workspaceDetail:t}),r.createElement(u,{workspaceDetail:t}),r.createElement(o,{workspaceDetail:t,store:e}),r.createElement(i,{store:e}))}}),e.exports=n(d)(c)},function(e,t,a){"use strict";var r,n=a(14),i=(r=n)&&r.__esModule?r:{default:r};!function(){a(5);var t=a(0),r=(a(24),a(4)),n=a(10),o=a(112),l=a(28),s=(a(169),a(25)()(a(47)),a(46).Table),u=a(46).Column,d=a(92),c=a(1),p=c.isEmpty,f=c.isNil,h=t.createClass({displayName:"DestinationGrid",render:function(){var e=this.props,a=e.store,r=e.localization,d=(e.height,a.item),c=d.workspaceTenants,h=o.TABLE_DESTINATION_DEFINITION,m=n("default-table u_fullHeight u_fullWidth u_noBorder",{hidden:f(d.selectedDestinationTenantIDs)});return!p(c)&&t.createElement("div",{className:"u_tableCell"},r.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_DESTINATION_GRID"),t.createElement(l,{className:"izenda-CopyManagementDestinationGrid u_borderAll"},t.createElement(s,{dataSource:c,onSortChange:this.onSortChange,sortInfo:d.pageInfo.colSortDirs,className:m,minHeight:362,maxHeight:362},t.createElement(u,(0,i.default)({},h.tenantName,{cell:this.renderTenant})),t.createElement(u,(0,i.default)({},h.status,{cell:this.renderStatus})),t.createElement(u,(0,i.default)({},h.action,{cell:this.renderActionColumn})))))},renderTenant:function(e,a){return t.createElement("div",{className:"overflow-text"},e[a])},renderStatus:function(e,a){var r=o.STATUS_OF_DESTINATION[e[a]],i=r.class;return t.createElement("div",null,t.createElement("span",{className:n("u_inline",i)},r.status),t.createElement("span",{className:r.iconClass,title:o.VALIDATION_ERROR_TOOLTIP}))},renderActionColumn:function(e,a,r,i){var l=this.props,s=o.STATUS_OF_DESTINATION[e[a]].iconOkClass,u=l.localization,d=l.loader,c=l.store,p=function(e){return c.goToTenantMode(e).finally(d.endLoading.bind(d))};return t.createElement("div",null,t.createElement("a",{onClick:this.onValidate.bind(this,e)},t.createElement("span",{title:u.getText("COMMON_LABEL_VALIDATE"),className:n("icon-ok",s)})),t.createElement("a",{onClick:function(e){d.startLoading(),e.status!==o.STATUS_OF_DESTINATION.NEED_VALIDATION?this.onValidate.bind(this,e)().then(p.bind(this,e)):p(e)}.bind(this,e)},t.createElement("span",{title:u.getText("COPY_MANAGEMENT_LABEL_ADVANCED_SETTINGS"),className:"icon-setting"})),t.createElement("a",{onClick:this.onDelete.bind(this,e)},t.createElement("span",{title:u.getText("COMMON_LABEL_DELETE"),className:"icon-cancel"})))},onSortChange:function(e,t){this.props.item.onSortChange(e,t)},onValidate:function(e){var t=this.props,a=t.store,r=t.loader,n=t.validation;return r.startLoading(),a.validateWorkspaceTenant(e,!0).then(function(e){if(!p(e.messages)){if(p(e.messages[0].key))return t.confirmFn("Confirmation",{description:e.messages[0].messages[0],showCancel:!1}).then(function(){return r.startLoading(),a.handleAfterConcurrency(e.messages[0].detail).finally(r.endLoading.bind(r))});n.updateErrors(e.messages)}}).finally(r.endLoading.bind(r))},onDelete:function(e,t){var a=this.props,r=a.loader,n=a.store.item;t.stopPropagation(),a.confirmFn("Confirmation",{description:String.format(o.M11,e.tenantName)}).then(function(){return r.startLoading(),n.deleteDestinationTenant(e),a.store.loadDistinctConnections().finally(r.endLoading.bind(r))})}});e.exports=r(d)(h)}()},function(e,t,a){"use strict";!function(){var t=a(0),r=(a(35),a(5),a(4)),n=a(165).Tabs,i=a(165).Tab,o=(a(178),a(28)),l=a(3016),s=a(3018),u=a(98),d=a(3019),c=a(9).observer,p=r()(function(e){var a=e.isReport?"reportFilterText":"templateFilterText",r=e.isReport?e.workspaceDetail.reportFilterText:e.workspaceDetail.templateFilterText;return t.createElement(u,{ref:"searchBox",key:a+"_"+e.workspaceDetail.id,className:"search-box",value:r,onChange:function(t,a){e.workspaceDetail[t]=a.target.value}.bind(this,a)})}),f=t.createClass({displayName:"ReportContainer",propTypes:{workspaceDetail:t.PropTypes.object.isRequired},getInitialState:function(){return{activeTabKey:"reports",isReport:!0}},changeTab:function(e,t,a,r){this.setState({activeTabKey:r,isReport:"reports"===r})},render:function(){var e=this.props,a=e.localization;return t.createElement("div",{className:"u_tableCell u_paddingRight"},a.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_PLEASE_SELECT_REPORT"),t.createElement(o,{className:"u_borderAll workspace-tree u_noMarginAll"},t.createElement(p,{workspaceDetail:e.workspaceDetail,isReport:this.state.isReport}),t.createElement(n,{activeTabKey:this.state.activeTabKey,onChange:this.changeTab},t.createElement(i,{title:"Reports",tabKey:"reports",className:"izenda-reportContainer"},t.createElement(l,{workspaceDetail:e.workspaceDetail,store:e.store})),t.createElement(i,{title:"Templates",tabKey:"templates",className:"izenda-reportContainer"},t.createElement(s,{workspaceDetail:e.workspaceDetail})))))}});c(t.createClass({displayName:"LazyLoadingReport",render:function(){var e=this.props;return t.createElement(d,{data:e.workspaceDetail.treeReports,isLastPage:e.workspaceDetail.isLastPage,getData:e.store.lazyLoadingReports.bind(e.store)})}}));e.exports=r()(function(e){return e.workspaceDetail&&e.workspaceDetail.copyReport?t.createElement(f,e):null})}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=l(a(13)),i=l(a(4)),o=l(a(790));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.workspaceDetail,a=e.workspaceDetail,n=a.sourceReports,i=a.sourceReportsPrev,l=a.reportFilterText,s=a.resetPrevData,u=a.resetWorkspaceTenantsStatus;return r.default.createElement(o.default,{data:n,dataPrev:i,filterText:l,resetPrevData:s.bind(t),resetWorkspaceTenantsStatus:u.bind(t),leafKey:"reports"})};s.propTypes={workspaceDetail:n.default.object.isRequired},t.default=(0,i.default)()(s),e.exports=t.default},function(e,t,a){"use strict";!function(){a(0);var t=a(11).compose,r=a(11).withHandlers,n=(a(5).observable,a(1)),i=n.curry,o=n.toUpper,l=n.filter,s=n.map,u=n.flow,d=n.isNil,c=n.isEmpty,p=n.isPlainObject,f=n.some,h=n.size,m=n.forEach,g=n.noop,E=n.isEqual,y=n.find,v=n.get,T=n.split,_=t(r({buildTree:i(function(e,t,a){var r=e.leafKey;a=o(a);var n=function(t){var n;if(t.subCategories.length>0&&(n=i(t.subCategories),n=l(function(e){return!d(e)},n)),c(n)){var s=d(t.name)?"UNCATEGORIZED":t.name;if(-1===o(s).indexOf(a))return null}return t.indeterminate=S(n),t.checked=!!t.indeterminate||function(e,t,a,r){a.id;var n=a.checked;c(t)||m(function(t){if(d(t.id))n=!0;else if(!t.checked)return n=!1,!1;if(m(function(e){if(!e.checked)return n=!1,!1},t[e]),!n)return!1},r);return n}(r,e.dataPrev,t,t.subCategories),{nodeType:"Category",source:t,getChildNodes:function(){return n}}},i=function(e){var t=[];return m(function(e){t=d(e.id)?t.concat(v(e[r])):t.concat(h(e))},e),t},h=function(t){var n=v(t[r]);if(c(n)){if(d(t.name))return null;if(-1===o(t.name).indexOf(a))return null}return t.indeterminate=S(n),t.checked=!!t.indeterminate||function(e,t,a){t.id;var r=t.checked;c(e)||(r=!f({checked:!1},a));return r}(e.dataPrev,t,t[r]),{nodeType:"SubCategory",source:t,getChildNodes:function(){return n}}},v=function(e){return s(T,l(function(e){return o(e.name).indexOf(a)>-1},e))},T=function(t){return t.checked=function(e,t){var a=t.id,r=t.checked;if(!c(e)){var n=y(function(e){return E(e.id,a)},e);d(n)||(r=n.checked)}return r}(e.dataPrev,t),{nodeType:r,source:t,getChildNodes:g}};return function(e){R.push({level:0,prop:"categories"}),R.push({level:1,prop:"subCategories,"+e}),R.push({level:2,prop:e})}(r),p(t)?[(_=u(s(n),l(function(e){return!d(e)}))(t.categories),c(_)&&-1===o(t.name).indexOf(a)?null:(t.indeterminate=S(_),t.checked=!!t.indeterminate||function(e,t,a){t.id;var r=t.checked;return c(e)||(r=!f({checked:!1},a)),r}(e.dataPrev,t,t.categories),e.resetPrevData(),{nodeType:t.name,source:t,getChildNodes:function(){return _}}))]:null;var _}),getKey:i(function(e,t){return t.source.id}),onChangeAll:i(function(e,t,a,r){var n=e.leafKey,i=r.target.checked;t.checked=i,t.indeterminate=!1,C(e),function(e,t,a){m(function(t){t.checked=a,t.indeterminate=!1,b(e,t.subCategories,a)},t)}(n,t.categories,i)}),onChangeCategory:i(function(e,t,a,r){var n=e.leafKey,i=r.target.checked;t.checked=i,t.indeterminate=!1,C(e),b(n,t.subCategories,i),A(a,i)}),onChangeSubCategory:i(function(e,t,a,r){var n=e.leafKey,i=r.target.checked;t.checked=i,t.indeterminate=!1,C(e),N(t[n],r.target.checked),A(a,i)}),onChangeLeafNode:i(function(e,t,a,r){var n=r.target.checked;t.checked=n,C(e),A(a,n)})}));function S(e){if(!d(e)&&!d(e[0])){if(u(s("source"),s(function(e){return{indeterminate:e.indeterminate}}),f({indeterminate:!0}))(e))return!0;var t=u(s("source"),l({checked:!0}),h)(e);return 0!==t&&e.length!==t}}function C(e){e.resetWorkspaceTenantsStatus()}function b(e,t,a){m(function(t){t.checked=a,t.indeterminate=!1,N(t[e],a)},t)}function N(e,t){m(function(e){e.checked=t},e)}function A(e,t){d(e)||(e.data.source.checked=t||!function(e){var t=u(y(function(t){return E(t.level,e.level)}),v("prop"),T(","))(R),a=!0;return m(function(e){return!d(e.id)&&e.checked?(a=!1,!1):(m(function(e){if(e.checked)return a=!1,!1},e[t[1]]),!!a&&void 0)},e.data.source[t[0]]),a}(e),e.data.source.indeterminate=S(e.data.getChildNodes()),d(e.parent)||A(e.parent,t))}var R=[];e.exports=_}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=l(a(4)),i=l(a(790)),o=l(a(13));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.workspaceDetail,a=e.workspaceDetail,n=a.sourceTemplates,o=a.sourceTemplatesPrev,l=a.templateFilterText,s=a.resetPrevData,u=a.resetWorkspaceTenantsStatus;return r.default.createElement(i.default,{data:n,dataPrev:o,filterText:l,resetPrevData:s.bind(t),resetWorkspaceTenantsStatus:u.bind(t),leafKey:"reports"})};s.propTypes={workspaceDetail:o.default.object.isRequired},t.default=(0,n.default)()(s),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(0),n=a(4),i=a(348),o=a(19),l=a(69),s=a(3020),u=r.PropTypes,d=a(1).invoke,c=r.createClass({displayName:"LazyLoadingTree",propTypes:{data:u.object.isRequired,getData:u.func.isRequired,isLastPage:u.bool.isRequired},renderNode:function(e,t,a,n,i){var s=e.source,u=e.onChange.bind(null,s,i),d=e.isLeafNode,c=e.showTotal,p=e.disabled,f=this.props,h=s.name;return r.createElement("div",null,r.createElement(o,{type:"checkbox",indeterminate:s.indeterminate,checked:!p&&s.checked,onChange:u,disabled:p}),r.createElement(l,{highlight:f.filterText,onClick:a,text:h,className:"selectable u_inline u_paddingLeft",tooltip:h}),c&&r.createElement("span",{className:"selectable u_inline u_paddingLeft"},"(",s.numOfChilds,")"),!d&&t)},render:function(){var e=this.props,t=d("getChildNodes");return r.createElement(i,{className:"u_paddingRight",nodes:e.data,isLastPage:e.isLastPage,renderNode:this.renderNode,getKey:e.getKey,getChildNodes:t,collapsed:!1,getData:e.getData})}}),e.exports=n(s)(c)},function(e,t,a){"use strict";!function(){a(0);var t=a(11).withHandlers,r=(a(5).observable,a(1)),n=r.curry,i=r.isNil,o=r.uniqueId,l=t({getKey:n(function(e,t){return i(t.source.id)?o(t.source.name):t.source.id})});e.exports=l}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p=a(1);r=a(0),n=a(4),i=a(28),o=a(9).observer,l=a(98),s=a(26),u=a(3022),d=n()(function(e){return r.createElement(l,{className:"search-box",value:e.workspaceDetail.dataConnectorFilterText,onChange:function(t){e.workspaceDetail.dataConnectorFilterText=t.target.value}})}),c=r.createClass({displayName:"DataConnector",propTypes:{workspaceDetail:r.PropTypes.object.isRequired},renderDataConnectorItem:function(e){var t=this.props.workspaceDetail;return r.createElement("div",{key:e.id},r.createElement(u,{workspaceDetail:t,dataConnector:e}))},render:function(){var e=this.props,t=e.localization,a=e.workspaceDetail,n=e.workspaceDetail,o=n.dataConnectorFilterText,l=n.sourceConnections,u=this.renderDataConnectorItem,c=new RegExp((0,p.escapeRegExp)(o),"i"),f=(0,p.filter)(function(e){return c.test(e.name)},l);return a.copyDataConnector&&r.createElement("div",{className:"u_tableCell u_paddingRight"},t.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_PLEASE_SELECT_DATA_CONNECTOR"),r.createElement(i,{className:"u_borderAll workspace-tree u_noMarginAll"},r.createElement(d,{workspaceDetail:a}),r.createElement("div",{className:"izenda-dashboardContainer"},r.createElement(s,{fullWidth:!0},(0,p.map)(u,f)))))}}),e.exports=o(n()(c))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=h(a(6)),i=h(a(2)),o=h(a(3)),l=h(a(7)),s=h(a(8)),u=a(0),d=h(u),c=a(9),p=h(a(19)),f=h(a(69));function h(e){return e&&e.__esModule?e:{default:e}}var m=(0,c.observer)(r=function(e){function t(){return(0,i.default)(this,t),(0,l.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this.props,t=e.dataConnector,a=e.workspaceDetail,r=String.format("[{0}] {1}",t.serverTypeName,t.name);return d.default.createElement("label",null,d.default.createElement("span",{style:{marginRight:"5px"}},d.default.createElement(p.default,{className:"izenda-CustomCheckBox",type:"checkbox",checked:t.copyDataConnector,value:t.id,onChange:function(e){t.copyDataConnector=e.target.checked,a.markDirty()}})),d.default.createElement(f.default,{highlight:a.dataConnectorFilterText,text:r}))}}]),t}(u.Component))||r;t.default=m,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(4),i=a(789),o=a(9).observer,l=r.createClass({displayName:"DataModel",propTypes:{store:r.PropTypes.object.isRequired,workspaceDetail:r.PropTypes.object.isRequired},render:function(){var e=this.props,t=e.store,a=e.workspaceDetail,n=e.localization;return a.copyDataModel&&r.createElement("div",{className:"u_tableCell u_paddingRight"},n.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_PLEASE_SELECT_DATASOURCE"),r.createElement(i,{store:t,isDataModel:!0,tree:a.querySourceTree,workspaceDetail:a,title:n.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_SOURCE"),showCheckbox:!0}))}}),e.exports=o(n()(l))},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),n=a(4),i=a(790),o=a(28),l=a(9).observer,s=a(98),u=n()(function(e){return r.createElement(s,{className:"search-box",value:e.workspaceDetail.dashboardFilterText,onChange:function(t){e.workspaceDetail.dashboardFilterText=t.target.value}})}),d=r.createClass({displayName:"Dashboard",propTypes:{workspaceDetail:r.PropTypes.object.isRequired},render:function(){var e=this.props,t=(e.store,e.localization),a=e.workspaceDetail;return a.copyDashboard&&r.createElement("div",{className:"u_tableCell u_paddingRight"},t.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_PLEASE_SELECT_DASHBOARD"),r.createElement(o,{className:"u_borderAll workspace-tree u_noMarginAll"},r.createElement(u,{workspaceDetail:a}),r.createElement("div",{className:"izenda-dashboardContainer"},r.createElement(i,{data:a.sourceDashboards,dataPrev:a.sourceDashboardsPrev,filterText:a.dashboardFilterText,resetPrevData:a.resetDashboardPrevData.bind(a),resetWorkspaceTenantsStatus:a.resetWorkspaceTenantsStatus.bind(a),leafKey:"dashboards"}))))}}),e.exports=l(n()(d))},function(e,t,a){"use strict";!function(){a(0);var t=a(11).compose,r=a(11).withHandlers,n=a(1),i=n.curry,o=n.filter,l=t(r({getWidthRatio:i(function(e,t){var a=e.item,r=new Array(4),n=[a.copyDataModel,a.copyDashboard,a.copyReport,!0],i=o(function(e){return!0===e},n).length;if(i>0){var l=12/i;a.copyDataModel&&(r[0]=l),a.copyDashboard&&(r[1]=l),a.copyReport&&(r[2]=l),r[3]=l}return r})}));e.exports=l}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(0),i=(r=n)&&r.__esModule?r:{default:r},o=a(9);t.default=(0,o.observer)(function(e){var t=e.icon,a=e.title,r=e.collapseToggle,n=e.style,o=e.className;return i.default.createElement("div",{className:"u-posRelative"},i.default.createElement("strong",{onClick:r,style:n,className:o},t?i.default.createElement("i",{className:t}):null,a))}),e.exports=t.default},function(e,t,a){"use strict";!function(){a(0);var t=(0,a(11).compose)((0,a(11).withHandlers)({buildTitle:(0,a(1).curry)(function(e,t){var a=e.localization,r=e.item,n="",i=a.getText("COMMON_LABEL_COPY_SETTINGS");r.copyDataConnector&&(n=a.getText("COMMON_LABEL_DATA_CONNECTORS"));r.copyDataModel&&(n+=(""===n?"":", ")+a.getText("COMMON_LABEL_DATA_MODEL"));r.copyDashboard&&(n+=(""===n?"":", ")+a.getText("COMMON_LABEL_DASHBOARDS"));r.copyReport&&(n+=(""===n?"":", ")+a.getText("COMMON_LABEL_REPORT"));if(""!==n){var o=(n+=" "+i).lastIndexOf(",");return o>=0&&(n=n.substring(0,o)+" and"+n.substring(o+1,n.length)),n}return i})}));e.exports=t}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=_(a(6)),s=_(a(2)),u=_(a(3)),d=_(a(7)),c=_(a(8)),p=a(0),f=_(p),h=_(a(13)),m=a(1),g=_(a(4)),E=_(a(32)),y=_(a(12)),v=_(a(1352)),T=_(a(152));function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,g.default)()((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));o.call(a);var r=e.workspaceDetail,n=new T.default;return(0,m.isNil)(r&&r.copySchedule)||(n=r.copySchedule),a.state={scheduleData:n},a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.state.scheduleData;return f.default.createElement(E.default,{visible:!0,onClosing:this.onClosing,autoClose:!1,type:"none"},f.default.createElement(E.default.Header,{title:y.default.getText("COPY_MANAGEMENT_TITLE_POPUP_CONFIGURE_SCHEDULE")}),f.default.createElement(E.default.Body,null,f.default.createElement("div",{className:"u_fullSize",style:{height:"300px"}},f.default.createElement(v.default,{data:e,onValidateSubscription:this.onValidateSubscription,isSubscriptionTypeHidden:!0}))),f.default.createElement(E.default.Footer,null,f.default.createElement(E.default.ConfirmationButton,{className:"btn-report-default",onClick:this.deleteSchedule},y.default.getText("COMMON_LABEL_DELETE")),f.default.createElement(E.default.ConfirmationButton,{type:"accept"},y.default.getText("COMMON_LABEL_OK")),f.default.createElement(E.default.ConfirmationButton,{type:"cancel"},y.default.getText("COMMON_LABEL_CANCEL"))))}}]),t}(p.Component),n.propTypes={workspaceDetail:h.default.object.isRequired},o=function(){var e=this;this.deleteSchedule=function(){e.props.workspaceDetail.setCopySchedule(null),e.props.onAccept(null)},this.onClosing=function(t,a){var r=e.state.scheduleData,n=e.props.workspaceDetail;switch(a){case"accept":n.setCopySchedule(r),e.props.onAccept(r);break;case"cancel":e.props.onReject()}},this.onValidateSubscription=function(e){}},r=i))||r;t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=l(a(3030)),i=l(a(3035)),o=l(a(12));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return r.default.createElement("div",null,r.default.createElement("div",{className:"text-center izenda-text-bold"},o.default.getText("SUBSCRIPTION_LABEL_CUSTOMER_RECERRENCE")),r.default.createElement("hr",null),r.default.createElement(n.default,e),r.default.createElement("hr",null),r.default.createElement(i.default,e))},e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f;r=a(5),n=a(0),i=a(19),o=a(3031),l=a(3032),s=a(3033),u=a(3034),d=a(288),c=a(12),p=a(1).find,f=n.createClass({displayName:"RecurrencePattern",propTypes:{data:n.PropTypes.object},getInitialState:function(){return{isDaily:!0,isWeekly:!1,isMonthly:!1,isYearly:!1}},componentWillMount:function(){var e=this.props.data;this.setState({isDaily:e.recurrencePattern===d.RECURRENCE_PATTERN[0].value,isWeekly:e.recurrencePattern===d.RECURRENCE_PATTERN[1].value,isMonthly:e.recurrencePattern===d.RECURRENCE_PATTERN[2].value,isYearly:e.recurrencePattern===d.RECURRENCE_PATTERN[3].value})},getChecked:function(e){return this.props.data.recurrencePattern==e},onClickRecurrence:r.action(function(e){var t=e.target.id,a=p(function(e){return e.label===t},d.RECURRENCE_PATTERN);this.props.data.recurrencePattern=a.value,this.props.subscription.buildRecurrencePatternSetting(),this.setState({isDaily:t===d.RECURRENCE_PATTERN[0].label,isWeekly:t===d.RECURRENCE_PATTERN[1].label,isMonthly:t===d.RECURRENCE_PATTERN[2].label,isYearly:t===d.RECURRENCE_PATTERN[3].label})}),renderDaily:function(){return this.state.isDaily?n.createElement(o,this.props):null},renderWeekly:function(){return this.state.isWeekly?n.createElement(l,this.props):null},renderMonthly:function(){return this.state.isMonthly?n.createElement(s,this.props):null},renderYearly:function(){return this.state.isYearly?n.createElement(u,this.props):null},render:function(){return n.createElement("div",null,n.createElement("div",null,c.getText("DASHBOARD_LABEL_RECURRENCE_PATTERN")),n.createElement("hr",null),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"group-schedule"},n.createElement("div",{className:"col-md-3"},n.createElement(i,{id:"daily",type:"radio",name:"recurrence",onClick:this.onClickRecurrence,checked:this.getChecked(d.RECURRENCE_PATTERN[0].value)}),n.createElement("span",{className:"radio-label"},c.getText("SUBSCRIPTION_LABEL_DAILY"))),n.createElement("div",{className:"col-md-3"},n.createElement(i,{id:"weekly",type:"radio",name:"recurrence",onClick:this.onClickRecurrence,checked:this.getChecked(d.RECURRENCE_PATTERN[1].value)}),n.createElement("span",{className:"radio-label"},c.getText("SUBSCRIPTION_LABEL_WEEKLY"))),n.createElement("div",{className:"col-md-3"},n.createElement(i,{id:"monthly",type:"radio",name:"recurrence",onClick:this.onClickRecurrence,checked:this.getChecked(d.RECURRENCE_PATTERN[2].value)}),n.createElement("span",{className:"radio-label"},c.getText("SUBSCRIPTION_LABEL_MONTHLY"))),n.createElement("div",{className:"col-md-3"},n.createElement(i,{id:"yearly",type:"radio",name:"recurrence",onClick:this.onClickRecurrence,checked:this.getChecked(d.RECURRENCE_PATTERN[3].value)}),n.createElement("span",{className:"radio-label"},c.getText("SUBSCRIPTION_LABEL_YEARLY"))))),n.createElement("div",{className:"border"},n.createElement("div",{className:"group"},this.renderDaily(),this.renderWeekly(),this.renderMonthly(),this.renderYearly())))}}),e.exports=f},function(e,t,a){"use strict";var r,n,i,o;r=a(9),n=a(0),i=a(19),o=n.createClass({displayName:"DailyRecurrence",propTypes:{data:n.PropTypes.object},componentWillMount:function(){this.recurrence=this.props.data.dailyRecurrencePatternSetting},onChangeEvery:function(){this.recurrence.isEveryWeekday=!1,this.props.data.markDirty()},getEveryInput:function(){return this.recurrence.recurrenceDay},onChangeEveryInput:function(e){this.recurrence.isEveryWeekday=!1,this.recurrence.recurrenceDay=parseInt(e.target.value,10),this.props.data.markDirty()},onChangeEveryWeekday:function(){this.recurrence.isEveryWeekday=!0,this.props.data.markDirty()},render:function(){var e=a(12);return n.createElement("div",null,n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3"},n.createElement(i,{type:"radio",name:"daily",checked:!this.recurrence.isEveryWeekday,onChange:this.onChangeEvery}),n.createElement("span",{className:"radio-label"},e.getText("SUBSCRIPTION_LABEL_EVERY"))),n.createElement("div",{className:"col-md-3"},n.createElement(i,{value:this.getEveryInput(),onChange:this.onChangeEveryInput,disabled:this.recurrence.isEveryWeekday})),n.createElement("div",{className:"col-md-3 control-label no-padding-left"},e.getText("SUBSCRIPTION_LABEL_DAYS"))),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-12"},n.createElement(i,{type:"radio",name:"daily",checked:this.recurrence.isEveryWeekday,onChange:this.onChangeEveryWeekday}),n.createElement("span",{className:"radio-label"},e.getText("SUBSCRIPTION_LABEL_EVERY_WEEKDAY")))))}}),e.exports=r.observer(o)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f;r=a(9),n=a(0),i=a(115),o=a(288),l=a(12),s=a(1),u=s.pull,d=s.join,c=s.split,p=s.indexOf,f=n.createClass({displayName:"WeeklyRecurrence",propTypes:{data:n.PropTypes.object},componentWillMount:function(){this.recurrence=this.props.data.weeklyRecurrencePatternSetting,this.days=[]},getRecurEvery:function(){return this.recurrence.recurrenceWeek},onChangeRecurEvery:function(e){this.recurrence.recurrenceWeek=e,this.props.data.markDirty()},onChangeDay:function(e){var t=e.target;t.checked?this.days.push(t.value):this.days=u(t.value,this.days),this.recurrence.selectedDayValue=d(",",this.days),this.props.data.markDirty()},getChecked:function(e){return this.days=this.recurrence.selectedDayValue.length>0?c(",",this.recurrence.selectedDayValue):[],p(e.toString(),this.days)>=0},render:function(){return n.createElement("div",null,n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3 control-label"},l.getText("SUBSCRIPTION_LABEL_RECUR_EVERY")),n.createElement("div",{className:"col-md-3"},n.createElement(i,{value:this.getRecurEvery(),onChange:this.onChangeRecurEvery,max:Math.pow(2,32)})),n.createElement("div",{className:"col-md-3 control-label no-padding-left"},l.getText("SUBSCRIPTION_LABEL_WEEKS")," ")),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3"},n.createElement("input",{type:"checkbox",value:o.DAYOFWEEK.SUNDAY,onChange:this.onChangeDay,checked:this.getChecked(o.DAYOFWEEK.SUNDAY)}),n.createElement("span",{className:"radio-label"},l.getText("COMMON_LABEL_SUNDAY"))),n.createElement("div",{className:"col-md-3"},n.createElement("input",{type:"checkbox",value:o.DAYOFWEEK.MONDAY,onChange:this.onChangeDay,checked:this.getChecked(o.DAYOFWEEK.MONDAY)}),n.createElement("span",{className:"radio-label"},l.getText("COMMON_LABEL_MONDAY"))),n.createElement("div",{className:"col-md-3"},n.createElement("input",{type:"checkbox",value:o.DAYOFWEEK.TUESDAY,onChange:this.onChangeDay,checked:this.getChecked(o.DAYOFWEEK.TUESDAY)}),n.createElement("span",{className:"radio-label"},l.getText("COMMON_LABEL_TUESDAY"))),n.createElement("div",{className:"col-md-3"},n.createElement("input",{type:"checkbox",value:o.DAYOFWEEK.WEDNESDAY,onChange:this.onChangeDay,checked:this.getChecked(o.DAYOFWEEK.WEDNESDAY)}),n.createElement("span",{className:"radio-label"},l.getText("COMMON_LABEL_WEDNESDAY")))),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3"},n.createElement("input",{type:"checkbox",value:o.DAYOFWEEK.THURSDAY,onChange:this.onChangeDay,checked:this.getChecked(o.DAYOFWEEK.THURSDAY)}),n.createElement("span",{className:"radio-label"},l.getText("COMMON_LABEL_THURSDAY"))),n.createElement("div",{className:"col-md-3"},n.createElement("input",{type:"checkbox",value:o.DAYOFWEEK.FRIDAY,onChange:this.onChangeDay,checked:this.getChecked(o.DAYOFWEEK.FRIDAY)}),n.createElement("span",{className:"radio-label"},l.getText("COMMON_LABEL_FRIDAY"))),n.createElement("div",{className:"col-md-3"},n.createElement("input",{type:"checkbox",value:o.DAYOFWEEK.SATURDAY,onChange:this.onChangeDay,checked:this.getChecked(o.DAYOFWEEK.SATURDAY)}),n.createElement("span",{className:"radio-label"},l.getText("COMMON_LABEL_SATURDAY")))))}}),e.exports=r.observer(f)},function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(9),n=a(0),i=a(19),o=a(29),l=a(288),s=a(12),u=n.createClass({displayName:"MonthlyRecurrence",propTypes:{data:n.PropTypes.object},componentWillMount:function(){this.recurrence=this.props.data.monthlyRecurrencePatternSetting},getCheckedDay:function(){return!this.recurrence.useOrdinalDay},onChangeDay:function(e){this.recurrence.useOrdinalDay=!1,this.props.data.markDirty()},getDay:function(){return this.recurrence.day},onChangeDayInput:function(e){this.recurrence.day=e.target.value,this.props.data.markDirty()},getMonth:function(){return this.recurrence.recurrenceMonth},getCheckedThe:function(){return this.recurrence.useOrdinalDay},onChangeThe:function(e){this.recurrence.useOrdinalDay=!0,this.props.data.markDirty()},onChangeMonth:function(e){this.recurrence.recurrenceMonth=e.target.value,this.props.data.markDirty()},getOrdinal:function(){return this.recurrence.ordinalDay||l.ORDINAL_LIST[0]},onChangeOrdinal:function(e){this.recurrence.ordinalDay=e.value,this.props.data.markDirty()},getDayName:function(){return this.recurrence.ordinalDayValue||l.DAYNAME_LIST[0]},onChangeDayName:function(e){this.recurrence.ordinalDayValue=e.value,this.props.data.markDirty()},getOrdinalMonth:function(){return this.recurrence.ordinalRecurrenceMonth},onChangeOrdinalMonth:function(e){this.recurrence.ordinalRecurrenceMonth=e.target.value,this.props.data.markDirty()},render:function(){return n.createElement("div",null,n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3"},n.createElement(i,{type:"radio",name:"monthlyRecurrence",checked:this.getCheckedDay(),onChange:this.onChangeDay}),n.createElement("span",{className:"radio-label"},s.getText("SUBSCRIPTION_LABEL_DAY"))),n.createElement("div",{className:"col-md-2"},n.createElement(i,{value:this.getDay(),onChange:this.onChangeDayInput,disabled:this.recurrence.useOrdinalDay})),n.createElement("div",{className:"col-md-1 no-padding-left control-label"},s.getText("SUBSCRIPTION_LABEL_OF_EVERY")),n.createElement("div",{className:"col-md-2 no-padding-left"},n.createElement(i,{value:this.getMonth(),onChange:this.onChangeMonth,disabled:this.recurrence.useOrdinalDay})),n.createElement("div",{className:"col-md-3 no-padding-left control-label"},s.getText("SUBSCRIPTION_LABEL_MONTHS"))),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3"},n.createElement(i,{type:"radio",name:"monthlyRecurrence",checked:this.getCheckedThe(),onChange:this.onChangeThe}),n.createElement("span",{className:"radio-label"},s.getText("SUBSCRIPTION_LABEL_THE"))),n.createElement("div",{className:"col-md-2"},n.createElement(o,{options:l.ORDINAL_LIST,value:this.getOrdinal(),onChange:this.onChangeOrdinal,disabled:!this.recurrence.useOrdinalDay})),n.createElement("div",{className:"col-md-2 no-padding-left"},n.createElement(o,{options:l.DAYNAME_LIST,value:this.getDayName(),onChange:this.onChangeDayName,disabled:!this.recurrence.useOrdinalDay})),n.createElement("div",{className:"col-md-1 no-padding-left control-label"},s.getText("SUBSCRIPTION_LABEL_OF_EVERY")),n.createElement("div",{className:"col-md-2 no-padding-left"},n.createElement(i,{value:this.getOrdinalMonth(),onChange:this.onChangeOrdinalMonth,disabled:!this.recurrence.useOrdinalDay})),n.createElement("div",{className:"col-md-1 no-padding-left control-label"},s.getText("SUBSCRIPTION_LABEL_MONTHS"))))}}),e.exports=r.observer(u)},function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(9),n=a(0),i=a(19),o=a(29),l=a(288),s=a(12),u=n.createClass({displayName:"YearlyRecurrence",propTypes:{data:n.PropTypes.object},componentWillMount:function(){this.recurrence=this.props.data.yearlyRecurrencePatternSetting},getYear:function(){return this.recurrence.recurrenceYear},onChangeYear:function(e){this.recurrence.recurrenceYear=e.target.value,this.props.data.markDirty()},getCheckedOn:function(){return!this.recurrence.useOrdinalDay},onChangeOn:function(e){this.recurrence.useOrdinalDay=!1,this.props.data.markDirty()},getMonth:function(){return this.recurrence.monthValue||l.MONTHNAME_LIST[0]},onChangeMonth:function(e){this.recurrence.monthValue=e.value,this.props.data.markDirty()},getDay:function(){return this.recurrence.day},onChangeDay:function(e){this.recurrence.day=e.target.value,this.props.data.markDirty()},getCheckedOnThe:function(){return this.recurrence.useOrdinalDay},onChangeOnThe:function(e){this.recurrence.useOrdinalDay=!0,this.props.data.markDirty()},getOrdinal:function(){return this.recurrence.ordinalDay||l.ORDINAL_LIST[0]},onChangeOrdinal:function(e){this.recurrence.ordinalDay=e.value,this.props.data.markDirty()},getDayName:function(){return this.recurrence.ordinalDayValue||l.DAYNAME_LIST[0]},onChangeDayName:function(e){this.recurrence.ordinalDayValue=e.value,this.props.data.markDirty()},getOrdinalMonth:function(){return this.recurrence.ordinalMonthValue||l.MONTHNAME_LIST[0]},onChangeOrdinalMonth:function(e){this.recurrence.ordinalMonthValue=e.value,this.props.data.markDirty()},render:function(){return n.createElement("div",null,n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3 control-label"},s.getText("SUBSCRIPTION_LABEL_RECUR_EVERY")),n.createElement("div",{className:"col-md-1 no-padding-left"},n.createElement(i,{value:this.getYear(),onChange:this.onChangeYear})),n.createElement("div",{className:"col-md-3 control-label no-padding-left"},s.getText("SUBSCRIPTION_LABEL_YEARS")," ")),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3"},n.createElement(i,{type:"radio",name:"yearlyRecurrence",checked:this.getCheckedOn(),onChange:this.onChangeOn}),n.createElement("span",{className:"radio-label"},s.getText("SUBSCRIPTION_LABEL_ON"))),n.createElement("div",{className:"col-md-2 no-padding-left"},n.createElement(o,{options:l.MONTHNAME_LIST,value:this.getMonth(),onChange:this.onChangeMonth,disabled:this.recurrence.useOrdinalDay})),n.createElement("div",{className:"col-md-2 no-padding-left"},n.createElement(i,{value:this.getDay(),onChange:this.onChangeDay,disabled:this.recurrence.useOrdinalDay}))),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3"},n.createElement(i,{type:"radio",name:"yearlyRecurrence",checked:this.getCheckedOnThe(),onChange:this.onChangeOnThe}),n.createElement("span",{className:"radio-label"},s.getText("SUBSCRIPTION_LABEL_ON_THE"))),n.createElement("div",{className:"col-md-2 no-padding-left"},n.createElement(o,{options:l.ORDINAL_LIST,value:this.getOrdinal(),onChange:this.onChangeOrdinal,disabled:!this.recurrence.useOrdinalDay})),n.createElement("div",{className:"col-md-2 no-padding-left"},n.createElement(o,{options:l.DAYNAME_LIST,value:this.getDayName(),onChange:this.onChangeDayName,disabled:!this.recurrence.useOrdinalDay})),n.createElement("div",{className:"control-label of"},s.getText("SUBSCRIPTION_LABEL_OF")),n.createElement("div",{className:"col-md-2"},n.createElement(o,{options:l.MONTHNAME_LIST,value:this.getOrdinalMonth(),onChange:this.onChangeOrdinalMonth,disabled:!this.recurrence.useOrdinalDay}))))}}),e.exports=r.observer(u)},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m;r=a(5),n=a(0),i=a(9).observer,o=a(25),l=a(181),s=a(19),u=a(115),d=o()(l),c=a(339),p=a(12),f=a(288).DEFAULT_OCCURRENCE,h=a(109).DATE_FORMAT,m=n.createClass({displayName:"RangeRecurrence",propTypes:{data:n.PropTypes.object},componentWillMount:function(){this.subData=this.props.data},getCheckedNoEndDate:function(){return this.subData.isEndless},onChangeNoEndDate:function(){r.transaction(function(){this.subData.isEndAfter=!1,this.subData.isEndBy=!1,this.subData.isEndless=!0,this.subData.markDirty()}.bind(this))},getCheckedEndAfter:function(){return this.subData.isEndAfter},onChangeEndAfter:function(){r.transaction(function(){this.subData.isEndAfter=!0,this.subData.isEndBy=!1,this.subData.isEndless=!1,this.subData.occurrence=f,this.subData.markDirty()}.bind(this))},getCheckedEndBy:function(){return this.subData.isEndBy},onChangeEndBy:function(){r.transaction(function(){this.subData.isEndAfter=!1,this.subData.isEndBy=!0,this.subData.isEndless=!1,this.subData.endDate=c().format(h),this.subData.markDirty(),this.props.validateEndDateWithStartDate(!1)}.bind(this))},getOccurrence:function(){return this.subData.occurrence},onChangeOccurrence:function(e){this.subData.updateProperty&&this.subData.updateProperty("occurrence",e)},getEndBy:function(){return this.subData.endDate&&c(this.subData.endDate).format(h)||c().format(h)},onChangeEndByDatePicker:function(e){this.subData.updateProperty&&this.subData.updateProperty("endDate",e),this.props.validateEndDateWithStartDate(!1)},render:function(){return n.createElement("div",null,n.createElement("div",null,p.getText("DASHBOARD_LABEL_RANGE_OF_RECURRENCE")),n.createElement("hr",null),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-12 control-label"},n.createElement(s,{type:"radio",name:"range",checked:this.getCheckedNoEndDate(),onChange:this.onChangeNoEndDate}),n.createElement("span",{className:"radio-label"},p.getText("SUBSCRIPTION_LABEL_NO_END_DAY")))),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3 control-label"},n.createElement(s,{type:"radio",name:"range",checked:this.getCheckedEndAfter(),onChange:this.onChangeEndAfter}),n.createElement("span",{className:"radio-label"},p.getText("SUBSCRIPTION_LABEL_END_AFTER"))),n.createElement("div",{className:"col-md-3"},n.createElement(u,{value:this.getOccurrence(),onChange:this.onChangeOccurrence,disabled:!this.getCheckedEndAfter(),max:Math.pow(2,32)})),n.createElement("div",{className:"col-md-3 control-label no-padding-left"},p.getText("SUBSCRIPTION_LABEL_OCCURRENCES"))),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-md-3 control-label"},n.createElement(s,{type:"radio",name:"range",checked:this.getCheckedEndBy(),onChange:this.onChangeEndBy}),n.createElement("span",{className:"radio-label"},p.getText("SUBSCRIPTION_LABEL_END_BY"))),n.createElement("div",{className:"col-md-3"},n.createElement(d,{time:!1,value:this.getEndBy(),onChange:this.onChangeEndByDatePicker,disabled:!this.getCheckedEndBy(),field:"endDate"}))))}}),e.exports=i(m)},function(e,t,a){"use strict";!function(){var t=a(5),r=a(86),n=a(367);function i(e){var a={id:null,name:"",type:null,previewRecord:0,advancedMode:!1,allowNulls:!1,isDistinct:!1,categoryId:null,categoryName:null,subCategoryId:null,subCategoryName:null,tenantId:null,description:null,createdBy:null,createdDate:null,modifiedBy:null,version:0,numberOfView:0,renderingTime:0,owner:null,lastViewed:null,state:0,modified:null,dateTimeNow:null,isShowDetail:!1,accessPriority:null,movable:!1,deletable:!1,copyable:!1,isEmpty:function(){return this.id===r.EMPTY_GUID},renderingTimeInSeconds:function(){return n("0.00",this.renderingTime/1e3)+" s"}};t.extendObservable(this,a),e&&this.populateData(e)}i.prototype.populateData=t.action(function(e){e=e||{},this.id=e.id,this.type=e.type,this.name=e.name,this.previewRecord=e.previewRecord,this.advancedMode=e.advancedMode,this.allowNulls=e.allowNulls,this.isDistinct=e.isDistinct,this.categoryId=e.categoryId,this.categoryName=e.categoryName,this.subCategoryId=e.subCategoryId,this.subCategoryName=e.subCategoryName,this.tenantId=e.tenantId,this.description=e.description,this.createdBy=e.createdBy,this.createdDate=e.createdDate,this.modifiedBy=e.modifiedBy,this.version=e.version,this.numberOfView=e.numberOfView,this.renderingTime=e.renderingTime,this.owner=e.owner,this.lastViewed=e.lastViewed,this.state=e.state,this.modified=e.modified,this.dateTimeNow=e.dateTimeNow,this.isShowDetail=e.isShowDetail||!1,this.accessPriority=e.accessPriority,this.created=e.created,this.isGlobal=e.isGlobal,this.deletable=e.deletable,this.copyable=e.copyable,this.movable=e.movable}),i.prototype.setStateExpanded=function(e){this.isShowDetail=e},i.prototype.setDashboardName=function(e){this.name=e},i.prototype.isNotHighLight=function(e,t){return e!==r.SEARCH_CRITERIA[0].value&&e!==t},i.prototype.setEditMode=function(e){this.isEditMode=e},e.exports=i}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(1).map,n=a(419);function i(e){t.extendObservable(this,{commonFilterFields:[],accesses:[],subscriptions:[],dashboardParts:[],name:"",description:null,categoryId:null,categoryName:null,subCategoryId:null,subCategoryName:null,tenantId:null,backgroundColor:"",imageUrl:null,stretchImage:!1,id:null,state:0,inserted:!1,version:null,created:null,createdBy:null,createdById:null,modified:null,modifiedBy:null,showFilterDescription:!0,ownerId:"",lastViewed:null,accessPriority:1,checked:!1}),e&&this.populateData(e)}i.prototype.populateData=t.action(function(e){var t=r(function(e){return new n(e)},(e=e||{}).dashboardParts);this.commonFilterFields=e.commonFilterFields,this.accesses=e.accesses,this.subscriptions=e.subscriptions,this.dashboardParts.replace(t),this.commonFilterFields=e.commonFilterFields,this.name=e.name,this.description=e.description,this.categoryId=e.categoryId,this.categoryName=e.categoryName,this.subCategoryId=e.subCategoryId,this.subCategoryName=e.subCategoryName,this.tenantId=e.tenantId,this.backgroundColor=e.backgroundColor,this.imageUrl=e.imageUrl,this.stretchImage=e.stretchImage,this.id=e.id,this.state=e.state,this.inserted=e.inserted,this.version=e.version,this.created=e.created,this.createdBy=e.createdBy,this.createdById=e.createdById,this.modified=e.modified,this.modifiedBy=e.modifiedBy,this.showFilterDescription=e.showFilterDescription,this.ownerId=e.ownerId,this.accessPriority=e.accessPriority,this.lastViewed=e.lastViewed,this.checked=e.checked}),e.exports=i}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(63),n=a(68),i=a(1).omit;function o(e){t.extendObservable(r(this),{filterFieldId:null,value:null,operatorId:null,isCommon:!0,filterField:null,configField:null,operatorSetting:null,displayName:null,state:null,id:null,version:null}),e&&this.populateData(e)}o.prototype.populateData=t.action(function(e){this.filterFieldId=e.filterFieldId,this.value=e.value,this.operatorId=e.operatorId,this.isCommon=e.isCommon,this.filterField=e.filterField,this.displayName=e.displayName,this.state=e.state,this.id=e.id,this.version=e.version,this.resetDirty()}),o.prototype.setOperatorId=t.action(function(e){this.operatorId=e,this.filterField.operatorId=e,this.markDirty()}),o.prototype.setFilterValue=t.action(function(e){this.value=e,this.filterField.value=e,this.state===n.NONE&&(this.state=n.UPDATE),this.markDirty()}),o.prototype.setOperatorSetting=function(e){this.operatorSetting=e,this.markDirty()},o.prototype.updateState=function(e){this.state=e,this.markDirty()},o.prototype.buildDataForSaving=function(){return t.toJS(i(["configField"],this))},e.exports=o}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(34),n=a(1),i=n.isNil,o=n.clone;function l(e){var a={text:"",settings:{fontFamily:"",fontSize:r.defaultFontSize,fontBold:!0,fontItalic:!1,fontUnderline:!1,fontColor:"",fontHighlightColor:"",alignment:""}};t.extendObservable(this,a),e&&this.populateData(e)}l.prototype.populateData=function(e){i(e)||t.transaction(function(){this.updateText(e.text),this.updateSettings(o(t.toJS(e.settings)))}.bind(this))},l.prototype.updateText=function(e){this.text=e},l.prototype.updateSettings=function(e){this.settings=e},e.exports=l}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(55),n=a(367);function i(e){this.reportDataSource=[];var a={id:"0",name:"",type:r.CATEGORY_TYPE.REPORT,previewRecord:0,advancedMode:!1,allowNulls:!1,isDistinct:!1,categoryId:null,categoryName:null,subCategoryId:null,subCategoryName:null,tenantId:null,description:null,createdBy:null,created:null,modifiedBy:null,version:0,numberOfView:0,renderingTime:0,owner:null,lastView:null,state:0,modified:null,dateTimeNow:null,isShowDetail:!1,lastViewed:null,isSubscribeMode:!1,deletable:!0,copyable:!0,movable:!0,accessPriority:null,checked:!1,indeterminate:!1,isGlobal:!1,allowToSave:!1,isEmpty:function(){return this.id===r.EMPTY_GUID},renderingTimeInSeconds:function(){return n("0.00",this.renderingTime/1e3)+" s"}};t.extendObservable(this,a),e&&this.populateData(e)}i.prototype.populateData=t.action(function(e){e=e||{},this.id=e.id,this.type=e.type,this.name=e.name,this.previewRecord=e.previewRecord,this.advancedMode=e.advancedMode,this.allowNulls=e.allowNulls,this.isDistinct=e.isDistinct,this.categoryId=e.categoryId,this.categoryName=e.categoryName,this.subCategoryId=e.subCategoryId,this.subCategoryName=e.subCategoryName,this.tenantId=e.tenantId,this.description=e.description,this.createdBy=e.createdBy,this.created=e.created,this.modifiedBy=e.modifiedBy,this.version=e.version,this.numberOfView=e.numberOfView,this.renderingTime=e.renderingTime,this.owner=e.owner,this.lastView=e.lastView,this.state=e.state,this.modified=e.modified,this.dateTimeNow=e.dateTimeNow,this.isShowDetail=e.isShowDetail||!1,this.lastViewed=e.lastViewed,this.isEditMode=!1,this.deletable=e.deletable,this.copyable=e.copyable,this.movable=e.movable,this.accessPriority=e.accessPriority,this.checked=e.checked,this.isGlobal=e.isGlobal,this.allowToSave=e.allowToSave,this.reportDataSource=e.reportDataSource}),i.prototype.setStateExpanded=function(e){this.isShowDetail=e},i.prototype.setReportName=function(e){this.name=e},i.prototype.isNotHighLight=function(e,t){return e!==r.SEARCH_CRITERIA[0].value&&e!==t},i.prototype.setEditMode=function(e){this.isEditMode=e},i.prototype.toggleSubscribeMode=function(){this.isSubscribeMode=!this.isSubscribeMode},e.exports=i}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(63),n=a(1356),i=a(68),o=a(279),l=a(1357),s=a(112),u=a(1),d=u.map,c=u.has,p=u.forEach,f=u.find;function h(e,a,n,l){var s={tenantName:"",name:"",tenantUniqueName:null,workspaceId:null,tenantId:null,status:0,state:i.NONE,inserted:!1,version:null,created:null,createdBy:null,modified:null,modifiedBy:null,destinationHashCode:null,dataMapping:[],databaseSources:[],sourceConnections:l,destinationConnections:[],querySourceTree:new o([],null,!0),destinationQuerySourceTree:new o([],null,!0)};t.extendObservable(r(this),s),e&&this.poppulateData(e,a,n,l),this.resetDirty()}h.prototype.poppulateData=t.action(function(e,t,a,r){this.tenantName=e.tenantName||"",this.name=e.name||"",this.tenantUniqueName=e.tenantUniqueName||null,this.workspaceId=e.workspaceId||null,this.tenantId=e.tenantId||null,this.status=e.status||0,this.state=e.state||i.NONE,this.inserted=e.inserted||!1,this.version=e.version||null,this.created=e.created||null,this.createdBy=e.createdBy||null,this.modified=e.modified||null,this.modifiedBy=e.modifiedBy||null,this.destinationHashCode=e.destinationHashCode,this.readDestinationConnections(e.destinationConnections),this.readSourceConnections(r),this.dataMapping=d(function(e){return e.toObject&&e.toObject.indexOf(s.TENANT_TOKEN)>-1&&(e.toObject=e.toObject.replace(s.TENANT_TOKEN,this.tenantUniqueName)),e.toObject&&e.toObject.indexOf(s.TENANT_NAME_TOKEN)>-1&&(e.toObject=e.toObject.replace(s.TENANT_NAME_TOKEN,this.name)),e}.bind(this),t),this.databaseSources=d(function(e){return e.fullDBName=String.format("[{0}] {1}",e.serverTypeName,e.databaseName),e.additionalData={fullDBName:e.fullDBName,databaseServer:e.databaseServer,databaseUser:e.databaseUser},e.fullDatabaseKey=String.format("[{0}] {1} - {2} - {3}",e.serverTypeName,e.databaseName,e.databaseServer,e.databaseUser),e},a)}),h.prototype.poppulateDataAfterValidate=t.action(function(e,t){this.status=e.status||0,this.destinationHashCode=e.destinationHashCode,t&&this.readSourceConnections(e.sourceConnections),t&&this.readDestinationConnections(e.destinationConnections),this.markDirty()}),h.prototype.readSourceConnections=t.action(function(e){p(function(e){!c("belongToCopiedReport",e)&&n.updateDataSoucreBasedOnLinkedReport(e)},e),this.sourceConnections=e,this.querySourceTree.setQuerySources(e)}),h.prototype.readDestinationConnections=t.action(function(e){this.destinationConnections=e,this.destinationQuerySourceTree.setQuerySources(e)}),h.prototype.setPropertyValue=function(e,t){this[e]=t,this.setDirty()},h.prototype.addMapping=function(){var e=new l({workspaceId:this.workspaceId});this.dataMapping.push(e),this.setDirty()},h.prototype.getMappingsForTenant=function(e){return e.filter(function(e){return!!f({tenantId:this.tenantId},e.workspaceMappingTenants)}.bind(this))},h.prototype.setDirty=t.action(function(){this.markDirty(),this.status=0}),e.exports=h}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(63);function n(e){t.extendObservable(r(this),{workspaceMappingId:null,tenantId:null,tenantName:"",id:null,state:0,inserted:!0,version:null,created:null,createdBy:null,modified:null,modifiedBy:null}),e&&this.readMappingTenant(e)}n.prototype.readMappingTenant=t.action(function(e){this.workspaceMappingId=e.workspaceMappingId||null,this.tenantId=e.tenantId||null,this.tenantName=e.tenantName||"",this.id=e.id||null,this.state=e.state||0,this.inserted=e.inserted||!0,this.version=e.version||null,this.created=e.created||null,this.createdBy=e.createdBy||null,this.modified=e.modified||null,this.modifiedBy=e.modifiedBy||null}),e.exports=n}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(203),n=a(1),i=n.isEmpty,o=n.some,l=n.forEach,s=n.map,u=n.isNil,d=n.flow,c=n.getOr,p=n.get,f=n.has,h=n.compact,m=n.find;function g(e,t){e.checked=t}function E(e){g(e,!0)}function y(e){g(e,!1)}e.exports=function(e){e.prototype.setSourceReports=t.action(function(e,a){this.resetCopyReportSource();var n=this;function l(e,t){var a=s(function(e){return new r(e,!0)},e),n=!o({checked:!1},a);this[t]=i(e)?[]:{name:"All",id:"All",checked:n,indeterminate:!1,categories:a}}function u(e){e.checked&&d(e),t.observe(e,"checked",function(t){d(e)})}function d(e){var t=e.checked?1:-1;n.findQuerySouceFromConnectionSource(e.reportDataSource).forEach(function(e){n.updateBelongToCopiedReport(t,e)})}l.call(this,e,"sourceReports"),l.call(this,a,"sourceTemplates"),this.addActionToReportList(p("categories",this.sourceReports),u),this.addActionToReportList(p("categories",this.sourceTemplates),u),t.observe(this,"copyReport",function(){var e=p("categories",this.sourceReports),t=p("categories",this.sourceTemplates);n.copyReport?(this.addActionToReportList(e,E,!0),this.addActionToReportList(t,E,!0)):(this.addActionToReportList(e,y,!0),this.addActionToReportList(t,y,!0)),this.sourceReports.checked=!o({checked:!1},e),this.sourceTemplates.checked=!o({checked:!1},t)}.bind(this))}),e.prototype.updateBelongToCopiedReport=t.action(function(e,t){if(u(t))return null;f("numberLinkedCopiedReports",t)||(t.numberLinkedCopiedReports=0),t.numberLinkedCopiedReports+=e,t.numberLinkedCopiedReports<0&&(t.numberLinkedCopiedReports=0),t.belongToCopiedReport=t.numberLinkedCopiedReports>0}),e.prototype.findQuerySouceFromConnectionSource=function(e){var t=this.sourceConnections,a=s(function(e){return d(m({id:e.connectionId}),c([],"dbSource.querySources"),m({id:e.querySourceCategoryId}),c([],"querySources"),m({id:e.querySourceId}))(t)},e||[]);return h(a)},e.prototype.addActionToReportList=function(e,t,a){this.addActionByCategories("reports",e,t,a)},e.prototype.addActionByCategories=function(e,t,a,r){function n(t){l(a,c([],e,t))}l(function(e){n(e),r&&a(e),l(function(e){n(e),r&&a(e)},e.subCategories)},t)},e.prototype.resetCopyReportSource=function(){var e=p("categories",this.sourceReports),t=p("categories",this.sourceTemplates);e&&this.addActionToReportList(e,y,!0),t&&this.addActionToReportList(t,y,!0),this.sourceReports={},this.sourceTemplates={}},e.prototype.setSourceDashboards=t.action(function(e,a){(this.copyDashboard&&!this.copyReport||a)&&this.resetCopyDashboardSource();var n=this,l=s(function(e){return new r(e,!0)},e),u=!o({checked:!1},l);this.sourceDashboards=i(e)?[]:{name:"All",id:"All",checked:u,indeterminate:!1,categories:l},this.addActionToDashboardList(p("categories",this.sourceDashboards),function(e){function a(e){var t=e.checked?1:-1;e.dashboardParts.forEach(function(e){n.findQuerySouceFromConnectionSource(e.reportDataSource||[]).forEach(function(e){n.updateBelongToCopiedReport(t,e)})})}e.checked&&a(e),t.observe(e,"checked",function(t){a(e)})}),t.observe(this,"copyDashboard",function(){var e=this.copyDashboard;this.addActionToDashboardList(p("categories",this.sourceDashboards),function(t){t.checked=e},!0),this.sourceDashboards.checked=!o({checked:!1},this.sourceDashboards)}.bind(this))}),e.prototype.addActionToDashboardList=function(e,t,a){this.addActionByCategories("dashboards",e,t,a)},e.prototype.resetCopyDashboardSource=function(){var e=p("categories",this.sourceDashboards);e&&this.addActionToDashboardList(e,y,!0),this.sourceDashboards={}}}}()},function(e,t,a){"use strict";var r=function(){function e(){}function t(e,t){return function(e,t){for(;e.length-1?i:o,s=t(e.getHours(),2),u=t(e.getMinutes(),2),d=t(e.getSeconds(),2),c=a.replace(/dd/g,r).replace(/MM/g,n).replace(/y{1,4}/g,l);return c=c.replace(/hh/g,s).replace(/mm/g,u).replace(/ss/g,d)},{DateFormatter:e}}();e.exports={DateFormatter:r.DateFormatter}},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p;r=a(0),n=a(4),i=a(24),o=a(26),l=a(98),s=a(169),u=a(3046),d=i.notifyChange,i.notify,c=a(9).observer,p=r.createClass({displayName:"WorkspaceList",propTypes:{store:r.PropTypes.object.isRequired},render:function(){return r.createElement("div",{className:"workspace-panel u_fullHeight u-posRelative"},this.getRenderHeaderContent(),this.getRenderListWorkspace())},getRenderHeaderContent:function(){var e=this.props.store,t=this.props.localization;return r.createElement("div",{className:"header-panel"},r.createElement("a",{className:"connection-builder-link btn-add-connection overflow-text text-bold",onClick:this.addNewWorkspace,title:t.getText("COPY_MANAGEMENT_WORKSPACE_DETAIL_LABEL_ADD_WORKSPACE")},r.createElement("span",{className:"icon-plus"}),t.getText("COPY_MANAGEMENT_WORK_SPACE_LIST_ADD_WORKSPACE")),r.createElement("div",{className:"search-box"},r.createElement(l,{value:e.filter,onChange:d(e.setFilter.bind(e),i.INPUT),onKeyPress:this.selectSearchedWorkspace})),r.createElement("div",{className:"checkbox-show-workspace overflow-text"},r.createElement("input",{type:"checkbox",checked:e.showOnlyMyWorkspace,onClick:this.onChangeOnlyShowMyWorkspace,className:"u_noMarginLeft",id:"showOnlyMyWorkspace"}),r.createElement("label",{htmlFor:"showOnlyMyWorkspace",className:"u_textNormal"},t.getText("COPY_MANAGEMENT_WORK_SPACE_LIST_SHOW_ONLY_MY_WORKSPACES"))),r.createElement("hr",null))},getRenderListWorkspace:function(){var e=this.props.store;return r.createElement("div",{className:"list-workspace-item"},r.createElement(o,null,r.createElement(s,{itemClass:"workspace-item-custom"},e.filteredWorkspaces.map(function(t,a){return r.createElement(u,{key:a,dataSource:t,store:e})}))))},selectSearchedWorkspace:function(e){if("Enter"===e.key){var t=this.props.store;1===t.filteredWorkspaces.length&&(t.item=t.filteredWorkspaces[0])}},addNewWorkspace:function(){this.props.store.filter="",this.props.store.addWorkspace()},onChangeOnlyShowMyWorkspace:function(e){var t=this.props.store;t.updateShowWorkspace(e.target.checked),t.loadList(t.tenantId).then(t.handleShowMyWorkspace.bind(t))}}),e.exports=c(n()(p))},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),n=a(4),i=a(10),o=a(112),l=a(16),s=a(69),u=a(9).observer,d=r.createClass({displayName:"WorkspaceItem",propTypes:{store:r.PropTypes.object.isRequired,dataSource:r.PropTypes.object.isRequired},onDelete:function(e){var t=this.props,a=t.loader;e.stopPropagation(),t.confirmFn("Confirmation",{description:o.M01}).then(function(){return a.startLoading(),t.store.deleteWorkspace(t.dataSource).finally(a.endLoading.bind(a))}.bind(this))},onSelect:function(e){e.stopPropagation();var t=this.props.store,a=this.props.dataSource;t.item.id!=a.id&&this.props.confirmDirtyForm(l.isDirty,{onConfirmDirtyForm:l.onOkDirtyForm}).then(function(){t.item=a})},render:function(){var e=this.props.dataSource,t=this.props.store.item.id,a=this.props.store.filter,n=i("truncate","overflow-text",{selected:e.id===t});return r.createElement("div",null,r.createElement("div",{className:n,onClick:this.onSelect},r.createElement(s,{className:"pull-left workspace-name",highlight:a,text:e.name,tooltip:e.name}),r.createElement("span",{className:"icon-cancel white-space-normal",onClick:this.onDelete})))}}),e.exports=u(n()(d))},function(e,t,a){"use strict";var r=a(20);!function(){var t=a(1),n=t.filter,i=t.isEmpty,o=t.isNil,l=t.findIndex,s=t.concat,u=t.toUpper,d=t.head,c=t.escapeRegExp,p=t.create,f=t.find,h=t.sortBy,m=a(5),g=a(546),E=a(287),y=a(79),v=a(112),T=a(3048);function _(){var e={filteredWorkspaces:function(){var e=new RegExp(c(this.filter),"i");return h(function(e){return u(e.name)},this.list.filter(function(t){return e.test(t.name)}))},availableSources:function(){var e=this.item.selectedDestinationTenantIDs,t=this.item.isSystemSource?[]:f({id:this.item.sourceId},this.tenantList);return o(e)?this.tenantList:this.item.isSelectAllTenants?s(v.systemSource,t):n(function(t){return-1===e.indexOf(t.id)},this.tenantList)}};T.call(e),m.extendObservable(this,e),this.dispose=m.observe(this.list,function(){this.nextWorkspace(this.item?this.item.id:null)}.bind(this))}_.prototype=p(T.prototype,{constructor:_}),_.prototype.nextWorkspace=function(e){if((o(this.item)||o(this.item.id))&&o(e))if(i(this.list))this.addWorkspace();else{var t=d(this.list);this.item=t}else if(this.item.id!==e){var a=f(["id",e],this.filteredWorkspaces)||f(["id",e],this.list);o(a)?this.addWorkspace():this.item=a}else if(this.tenantId){var r=d(this.list);o(r)?this.addWorkspace():this.item=r}},_.prototype.loadList=m.action(function(){var e=this,t=e.showOnlyMyWorkspace;return(0,r.join)(g.getAllWorkspaces(t),E.getAllNameTenantList(),y.getAllUsers(),function(t,a,r){return e.readTenantList(a),e.readWorkspaceList(t),e.updateOwnerList(r),null}).then(function(){i(e.list)&&e.addWorkspace()})}),_.prototype.deleteWorkspace=m.action(function(e){return g.delete(e.id).then(function(){var t=function(t,a,r){function n(t){if(e.id===r.id&&t.length>1){var a=l(["id",e.id],t);return a===t.length-1?t[0].id:t[a+1].id}return e.id!==r.id?r.id:null}return n(t)||n(a)}(this.filteredWorkspaces,this.list,this.item);this.nextWorkspace(t);var a=l(["id",e.id],this.list);return this.list.splice(a,1),null}.bind(this))}),e.exports=_}()},function(e,t,a){"use strict";!function(){var t=a(1355),r=a(112),n=a(5),i=a(1),o=i.map,l=i.forEach,s=i.concat;function u(){var e={item:new t,list:[],filter:"",tenantList:[],showOnlyMyWorkspace:!1,ownerList:[]};n.extendObservable(this,e)}u.prototype.setFilter=function(e){this.filter=e||""},u.prototype.readWorkspaceList=function(e){this.list.splice.apply(this.list,[0,this.list.length].concat(o(function(e){var a=new t;return a.readDetail(e),a},e)))},u.prototype.readTenantList=function(e){this.tenantList=s(r.systemSource,e),o(function(e){e.tenantName=e.name,e.tenantUniqueName=e.tenantID,e.name=e.id!==r.systemSource.id?String.format("{0} - {1}",e.tenantID,e.name):e.name,e.tenantID=e.id},this.tenantList)},u.prototype.addWorkspace=function(e){this.item=new t,this.item.id=e||null,this.item.markDirty(),this.item.getOriginalTenantList(this.tenantList)},u.prototype.updateShowWorkspace=function(e){this.showOnlyMyWorkspace=e},u.prototype.handleShowMyWorkspace=function(){l(function(e){this.item.id===e.id&&(this.item=e)}.bind(this),this.list)},u.prototype.updateOwnerList=function(e){this.ownerList=e},u.prototype.addWorkspaceToList=n.action(function(e){this.list.push(e)}),e.exports=u}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=h(a(6)),n=h(a(2)),i=h(a(3)),o=h(a(7)),l=h(a(8)),s=a(0),u=h(s),d=h(a(3050)),c=h(a(3052)),p=h(a(3059)),f=h(a(4));function h(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,(t.__proto__||(0,r.default)(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){this.props.initial(this.props)}},{key:"componentWillUnmount",value:function(){this.props.destroy(this.props.store)}},{key:"render",value:function(){var e=this.props.store;return u.default.createElement("div",{className:"izenda-DatabaseMapping izenda-TableLayout"},u.default.createElement("div",{className:"izenda-DatabaseMappingInner izenda-TableLayout-Cell"},u.default.createElement("section",{className:"izenda-Wrapper"},u.default.createElement("section",{className:"izenda-Wrapper-header"},u.default.createElement(d.default,{store:e})),u.default.createElement(p.default,{store:e}))))}}]),t}(s.Component);t.default=(0,f.default)(c.default)(m),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(0),n=a(9).propTypes,i=a(4),o=a(30),l=a(62),s=a(15),u=a(1).getOr,d=a(3051),(c=function(e){var t=e.localization,a=u(null,"responseMessage",e.store);return r.createElement(s,{className:"u_paddingBottom"},r.createElement(s.Row,null,r.createElement(s.Col,{cols:"7"},a&&r.createElement(l,{className:"u_floatLeft u_marginLeft",type:a.type},a.message)),r.createElement(s.Col,{cols:"5"},r.createElement(o,{label:t.getText("COMMON_LABEL_CANCEL"),className:"u_marginLeftRight u_floatRight btn-report-default",onClick:e.onCancel}),r.createElement(o,{label:t.getText("COMMON_LABEL_SAVE"),className:"u_marginLeft u_floatRight",onClick:e.onSave}),r.createElement(o,{label:t.getText("DATABASE_MAPPING_BUTTON_ADD_MAPPING"),className:"u_marginLeft u_floatRight",onClick:e.onAddMapping}))))}).propTypes={store:n.observableObject},e.exports=i(d)(c)},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=a(11).pure,n=a(11).withHandlers,i=a(12),o=a(1).curry,l=t(r,n({onSave:o(function(e,t){var a=e.validation,r=e.loader,n=e.store;if(!n.databaseMappingDetail.checkDirty())return void n.setAlertDetail("success",i.getText("COMMON_MESSAGES_NO_CHANGES_FOUND"));n.databaseMappingDetail.resetMessage(),a.validate().then(function(e){if(e)return n.saveDataMapping()}).finally(r.endLoading.bind(r))}),onCancel:o(function(e,t){var a=e.store,r=e.confirmFn;s(e),a.databaseMappingDetail.checkDirty()&&r("Confirmation",{description:i.getText("COMMON_MESSAGES_CONFIRM_CANCEL")}).then(function(){a.loadDataMapping()})}),onAddMapping:o(function(e,t){s(e),e.store.addMapping()})}));function s(e){e.validation.reset()}e.exports=l}()},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=a(11).pure,n=a(11).withProps,i=a(11).withHandlers,o=a(3053),l=t(r,n(function(){return{store:new o}}),i({initial:function(){return function(e){var t=e.loader,a=e.store;return t.startLoading(),a.init().finally(t.endLoading.bind(t))}},destroy:function(){return function(e){e.destroy()}}}));e.exports=l}()},function(e,t,a){"use strict";var r=a(20);!function(){var t=a(5),n=a(16),i=a(3054),o=a(287),l=a(1358),s=a(3055),u=a(3057),d=a(420),c=a(3058),p=d.MAPPING_TYPE,f=a(12),h=a(1),m=h.forEach,g=h.map,E=h.isNil,y=h.concat,v=h.sortBy,T=h.first,_=h.getOr,S=h.find;function C(){this.typeOptions=d.MAPPING_TYPES,t.extendObservable(this,{originalTenants:[],fromDatabaseNameDataSource:new c(d.DATABASE_NAME_OPTION_MAPPINGS,d.DATABASE_NAME_KEY),toDatabaseNameDataSource:new c(d.DATABASE_NAME_OPTION_MAPPINGS,d.DATABASE_NAME_KEY),objectDataSources:[],databaseMappingDetail:new s,responseMessage:new u,mappingTenants:function(){return y([d.ALL_MAPPINGS_OPTION],v(["tenantId"],this.originalTenants))},tenantOptions:function(){return y([d.ALL_TENANT_OPTION],v(["tenantId"],this.originalTenants))}})}C.prototype.init=t.action(function(){return n.setCheckDirtyFunction(function(){return this.databaseMappingDetail.checkDirty()}.bind(this)),(0,r.join)(o.getAllNameTenantList(),this.loadDatabaseNames(!0),this.loadDatabaseNames(!1),this.loadDataMapping(),function(e){this.originalTenants=g(function(e){return new l(e)},e),E(this.databaseMappingDetail.selectedTenantId)&&this.databaseMappingDetail.setPropertyValue("selectedTenantId",d.ALL_TENANT_ID,!0)}.bind(this))}),C.prototype.destroy=function(){n.resetCheckDirtyFunction(),this.databaseMappingDetail.destroy()},C.prototype.loadDatabaseNames=function(e,t){var a=e?this.fromDatabaseNameDataSource:this.toDatabaseNameDataSource,r={skipItems:t?t.fromIndex:a.skipItems,pageSize:t?t.pageSize:a.pageSize,loadFromDatabase:e};return i.loadDatabaseNames(r).bind(this).then(function(e){var t={skipItems:e.skipItems,pageSize:e.pageSize,isLastPage:e.isLastPage,items:e.result};return a.setDetail(t)})},C.prototype.loadObjects=t.action(function(e,a){var r,n,o=e.fromServer,l=e.fromDatabaseName,s=e.fromDatabaseUser,u=e.optionFromDatabaseNameValue,f=e.type,h=S(function(e){return e.id===u},this.objectDataSources);E(h)&&(h=t.observable({id:u,schemaObjects:new c(d.OBJECT_OPTION_MAPPINGS,d.OBJECT_KEY),databaseObject:new c(d.OBJECT_OPTION_MAPPINGS,d.OBJECT_KEY)}),this.objectDataSources.push(h)),n=f===p.Schema?h.schemaObjects:h.databaseObject,r={skipItems:a?a.fromIndex:n.skipItems,pageSize:a?a.pageSize:n.pageSize,databaseServer:o,databaseName:l,databaseUser:s,type:f};return i.loadObjects(r).then(function(t){var a={skipItems:t.skipItems,pageSize:t.pageSize,isLastPage:t.isLastPage,items:t.result};n.setDetail(a),function(){var t;if(p.Database===f){var a=T(n.items);t=a&&a[d.OBJECT_KEY],e.setPropertyValue("fromObject",t)}e.setPropertyValue("fromObject",t)}()})}),C.prototype.getObjectDataSource=function(e){return S(function(t){return t.id===e},this.objectDataSources)},C.prototype.addMapping=function(){var e=T(this.fromDatabaseNameDataSource.items),t=e&&e.labelField,a=e&&e.databaseUser,r=e&&e.databaseServer;this.databaseMappingDetail.addMapping(r,t,a)},C.prototype.setAlertDetail=function(e,t){this.responseMessage=new u(e,t)},C.prototype.loadDataMapping=function(){return i.loadDataMapping().bind(this).then(function(e){_(!0,"success",e)&&this.databaseMappingDetail.populate(e)})},C.prototype.saveDataMapping=t.action(function(){this.databaseMappingDetail.mergeMappings();var e=this.databaseMappingDetail.buildDataForSaving();return i.saveDataMapping(e).bind(this).then(function(e){if(e.success)return this.setAlertDetail("success",f.getText("COMMON_MESSAGES_DETAILS_WERE_SAVED")),this.databaseMappingDetail.resetDirty(),this.loadDataMapping();m(function(e){var t=e.key,a=e.messages[0];this.databaseMappingDetail.setMappingError(t,a)}.bind(this),e.messages)})}),e.exports=C}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(76),i=(r=n)&&r.__esModule?r:{default:r};t.default={loadDatabaseNames:function(e){return(0,i.default)("DataModel/loadDatabaseNames").post(e)},loadObjects:function(e){return(0,i.default)("DataModel/loadDatabaseObjects").post(e)},saveDataMapping:function(e){return(0,i.default)("DataModel/databaseMapping").post(e)},loadDataMapping:function(){return(0,i.default)("DataModel/databaseMapping").get()}},e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(5),r=a(63),n=a(68),i=a(420),o=a(3056),l=a(1),s=l.filter,u=l.some,d=l.forEach,c=l.map,p=l.isNil,f=l.isEqual,h=l.flow,m=l.uniqBy,g=l.flatten,E=l.concat,y=l.uniq,v=l.find;function T(e){var a={mappings:[],doesMergeDuplicate:!1,selectedTenantId:null,selectedMappings:function(){var e;return e=f(i.ALL_TENANT_ID,this.selectedTenantId)?this.mappings:s(function(e){return e.hasTenant(this.selectedTenantId)}.bind(this),this.mappings),s(function(e){return!e.checkState(n.DELETE)},e)},doesShowMergeDuplicateMapping:function(){return i.ALL_TENANT_ID===this.selectedTenantId}};t.extendObservable(r(this),a),e&&this.populate(e),this.disposeObserveMergeDuplicate=t.observe(this,"doesMergeDuplicate",function(){this.mergeMappings()}.bind(this)),this.resetDirty()}T.prototype.destroy=function(){this.disposeObserveMergeDuplicate()},T.prototype.populate=t.action(function(e){this.mappings.clear(),d(function(e){this.mappings.push(new o(e))}.bind(this),e)}),T.prototype.deleteMapping=t.action(function(e){var t=v({id:e},this.mappings);p(t)||(t.isNew()?(this.mappings.remove(t),this.markDirty()):t.setPropertyValue("state",n.DELETE))}),T.prototype.addMapping=t.action(function(e,t,a){this.mappings.unshift(new o({tenants:[i.ALL_TENANT_ID],state:n.INSERT,fromServer:e,fromDatabaseName:t,fromDatabaseUser:a})),this.markDirty()}),T.prototype.setPropertyValue=t.action(function(e,t,a){this[e]=t,!a&&this.markDirty()}),T.prototype.checkDirty=function(){if(this.isDirty)return this.isDirty;var e=!1;return d(function(t){if(t.isDirty)return e=t.isDirty,!1},this.mappings),e},T.prototype.buildDataForSaving=function(){return h(c(function(e){return e.buildDataForSaving()}),s(function(e){return e.state!==n.NONE}))(this.mappings)},T.prototype.mergeMappings=t.action(function(){if(this.doesMergeDuplicate&&!(this.mappings.length<=1)){var e=this.mappings.peek(),a=m("hashValue",this.mappings.peek()),r=t.action(function(){d(function(t){var a=h(s(function(e){return t.hashValue===e.hashValue}),c(function(e){return e.tenants.peek()}),g,E(t.tenants.peek()),y)(e);u(function(e){return i.ALL_TENANT_ID===e},a)&&(a=[i.ALL_TENANT_ID]),t.tenants=a},a)}),n=t.action(function(){for(var e=!1,t=this.mappings.length-1;t>=0;t--){var r=v(function(e){return this.mappings[t].id===e.id}.bind(this),a);r?(this.mappings[t].tenants=r.tenants,e=!0):this.deleteMapping(this.mappings[t].id)}e&&this.markDirty()}.bind(this));r(),n()}}),T.prototype.setMappingError=function(e,t){this.mappings[e].setPropertyValue("message",t)},T.prototype.resetMessage=t.action(function(){d(function(e){e.setPropertyValue("message",null)},this.mappings)}),e.exports=T}()},function(e,t,a){"use strict";var r,n=a(70),i=(r=n)&&r.__esModule?r:{default:r};!function(){var t=a(5),r=a(63),n=a(68),o=a(420),l=a(1),s=l.filter,u=l.isEmpty,d=l.isNil,c=l.flow,p=l.first,f=l.uniqueId,h=l.split,m=l.indexOf,g=l.remove,E=l.difference,y=l.startsWith;function v(e){var a={fromServer:null,fromDatabaseName:null,fromDatabaseUser:null,optionFromDatabaseNameValue:function(){return l(this.fromServer,this.fromDatabaseName,this.fromDatabaseUser)},optionFromConnectionNameValue:function(){return l(this.fromServer,this.fromDatabaseName,this.fromObject)},type:null,fromObject:null,toServer:null,toDatabaseName:null,toDatabaseUser:null,optionToDatabaseNameValue:function(){return l(this.toServer,this.toDatabaseName,this.toDatabaseUser)},optionToConnectionNameValue:function(){return l(this.toServer,this.toDatabaseName,this.toObject)},toObject:null,tenants:[],state:n.NONE,selectAllTenants:function(){var e=p(this.tenants);return 1===this.tenants.length&&e===o.ALL_TENANT_ID},displayTenants:function(){return this.tenants.peek().join()},hashValue:function(){return String.format(o.MAPPING_HASH_PATTERN,this.fromServer,this.fromDatabaseName,this.fromDatabaseUser,this.type,this.fromObject,this.toServer,this.toDatabaseName,this.toDatabaseUser,this.toObject)},message:null,showMessage:function(){return!d(this.message)},isMappingToGridDisabled:function(){return d(this.fromDatabaseName)||d(this.type)||d(this.fromObject)}};function l(e,t,a){return t?String.format("{0} - {1} - {2}",e,t,a):null}t.extendObservable(r(this),a),(0,i.default)(this,{version:null,id:null}),e&&this.populate(e),this.resetDirty()}v.prototype.populate=t.action(function(e){this.id=e.id||f(o.ID_PREFIX),this.version=e.version,this.state=e.state,this.fromServer=e.fromServer,this.fromDatabaseName=e.fromDatabaseName,this.fromDatabaseUser=e.fromDatabaseUser,this.type=e.type||o.MAPPING_TYPES[0].value,this.fromObject=e.fromObject,this.toServer=e.toServer,this.toDatabaseName=e.toDatabaseName,this.toDatabaseUser=e.toDatabaseUser,this.toObject=e.toObject,this.tenants=e.tenants?e.tenants:[o.ALL_TENANT_ID]}),v.prototype.setPropertyValue=t.action(function(e,t){this[e]=t,this.markDirty()}),v.prototype.updateMappingTenant=t.action(function(e){var t=h(",",e);E(t,this.tenants)[0]===o.ALL_TENANT_ID?this.tenants=[o.ALL_TENANT_ID]:this.tenants=s(function(e){return e!==o.ALL_TENANT_ID},t),this.markDirty()}),v.prototype.hasTenant=function(e){var t=-1!==m(o.ALL_TENANT_ID,this.tenants),a=c(p,u)(this.tenants);return!(!t&&!a)||-1!==m(e,this.tenants)},v.prototype.checkState=function(e){return this.state===e},v.prototype.buildDataForSaving=function(){var e={id:this.isNew()?null:this.id,fromServer:this.fromServer,fromDatabaseName:this.fromDatabaseName,fromDatabaseUser:this.fromDatabaseUser,type:this.type,fromObject:this.fromObject,toServer:this.toServer,toDatabaseName:this.toDatabaseName,toDatabaseUser:this.toDatabaseUser,toObject:this.toObject,tenants:this.selectAllTenants?null:g(u,this.tenants),state:this.state,version:this.version,selectAllTenants:this.selectAllTenants};return this.isDirty&&this.state===n.NONE&&(e.state=n.UPDATE),e},v.prototype.isNew=function(){return y(o.ID_PREFIX,this.id)},e.exports=v}()},function(e,t,a){"use strict";e.exports=function(e,t){this.type=e,this.message=t}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=h(a(17)),l=h(a(23)),s=h(a(2)),u=h(a(3)),d=a(5),c=a(34),p=a(123),f=a(1);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var g=(r=(0,d.action)("setDetail"),n=function(){function e(t,a){var r,n,l,u;(0,s.default)(this,e),this.mappingDefinitions=null,this.propertyKey=null,this.isLastPage=!1,this.skipItems=0,this.pageSize=c.LAZY_LOADING_DEFAULT_ITEMS_NUMBER,r=this,n="items",u=this,(l=i)&&(0,o.default)(r,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(u):void 0}),t&&(this.mappingDefinitions=t),a&&(this.propertyKey=a)}return(0,u.default)(e,[{key:"setDetail",value:function(e){var t=this;this.skipItems=e.skipItems,this.pageSize=e.pageSize,this.isLastPage=e.isLastPage;(0,p.concatArray)(this.items,(0,f.map)(function(e){var a={};return(0,f.forEach)(function(t){var r=null;r=(0,f.isFunction)(t.source)?t.source(e):e[t.source],a[t.target]=r},t.mappingDefinitions),a},e.items),this.propertyKey,!this.isLastPage)}}]),e}(),i=m(n.prototype,"items",[d.observable],{enumerable:!0,initializer:function(){return[]}}),m(n.prototype,"setDetail",[r],(0,l.default)(n.prototype,"setDetail"),n.prototype),n);t.default=g,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=a(9),i=l(a(3060)),o=l(a(3061));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.store;return r.default.createElement("section",{className:"izenda-Wrapper-content"},r.default.createElement(i.default,{store:t}),r.default.createElement(o.default,{store:t}))};s.propTypes={store:n.propTypes.observableObject},t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(9),n=u(a(0)),i=u(a(29)),o=u(a(15)),l=u(a(4)),s=u(a(791));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=e.localization,a=e.onChangeMappingTenant,r=e.store,l=r.mappingTenants,s=r.databaseMappingDetail;return n.default.createElement(o.default,{className:"izenda-MappingTenant"},n.default.createElement(o.default.Row,null,n.default.createElement(o.default.Col,{cols:"1"},n.default.createElement("label",null,t.getText("DATABASE_MAPPING_LABEL_MAPPING_DROPBOX"))),n.default.createElement(o.default.Col,{cols:"4"},n.default.createElement(i.default,{options:l,onChange:a,value:s.selectedTenantId,labelField:"displayValue",valueField:"id"}))))};d.propTypes={store:r.propTypes.observableObject},t.default=(0,l.default)(s.default)(d),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C=a(14),b=(r=C)&&r.__esModule?r:{default:r};n=a(0),i=a(9).propTypes,o=a(35),l=a(5).observable,s=a(420),u=s.TABLE_DEF,d=a(4),c=a(92),p=a(25),f=p()(a(29)),h=a(46).Table,m=a(46).Column,g=a(46).ColumnGroup,E=p()(a(47)),y=p()(a(19)),v=a(3062),T=a(791),_=a(1).find,S=n.createClass({displayName:"Mapping",propTypes:{store:i.observableObject.isRequired},render:function(){var e=this.props,t=this.size,a=function(t,a,r,i){var o=e.store,l=o.fromDatabaseNameDataSource.items.length>0?o.fromDatabaseNameDataSource.items:[],u=e.onChangeDatabaseName.bind(this,"fromDatabaseName",t),d=null;return d=(d=t.type===s.MAPPING_TYPE.Schema?_({valueField:t.optionFromDatabaseNameValue},l):_({connectionKey:t.optionFromConnectionNameValue},l))||{valueField:t.optionFromDatabaseNameValue,labelField:t.fromDatabaseName,optionTooltip:"No connections"},n.createElement(E,{options:l,simpleValue:!0,searchable:!1,onChange:u,value:d,valueKey:"valueField",labelKey:"labelField",optionTooltip:"optionTooltip",validations:s.REQUIRE_CONSTRAINT,isLazyLoading:!0,isLastPage:o.fromDatabaseNameDataSource.isLastPage,getData:o.loadDatabaseNames.bind(o,!0)})},r=function(t,a,r,i){var o=e.store,l=o.toDatabaseNameDataSource.items.length>0?o.toDatabaseNameDataSource.items:[],u=e.onChangeDatabaseName.bind(this,"toDatabaseName",t),d=null;return d=(d=t.type===s.MAPPING_TYPE.Schema?_({valueField:t.optionToDatabaseNameValue},l):_({connectionKey:t.optionToConnectionNameValue},l))||{valueField:t.optionToDatabaseNameValue,labelField:t.toDatabaseName,optionTooltip:"No connections"},n.createElement(E,{options:l,simpleValue:!0,searchable:!1,onChange:u,value:d,valueKey:"valueField",labelKey:"labelField",optionTooltip:"optionTooltip",field:a+r,validations:s.REQUIRE_CONSTRAINT,isLazyLoading:!0,isLastPage:o.toDatabaseNameDataSource.isLastPage,getData:o.loadDatabaseNames.bind(o,!1),disabled:t.isMappingToGridDisabled})},i=function(t,a,r,i){var o=e.onChangeType.bind(this,a,t);return n.createElement(f,{options:e.store.typeOptions,onChange:o,value:t[a],additionalKey:a+r})},o=function(t,a,r,i){var o=e.store,l=e.onChangeMappingItem.bind(this,a,t),u=t.type===s.MAPPING_TYPE.Database,d=o.getObjectDataSource(t.optionFromDatabaseNameValue),c=d&&(t.type===s.MAPPING_TYPE.Schema?d.schemaObjects:d.databaseObject),p=t.fromObject&&{valueField:t.fromObject,labelField:t.fromObject},f=c&&c.items.length>0?c.items:[];return n.createElement(E,{options:f,simpleValue:!0,searchable:!1,onChange:l,value:p,valueKey:"valueField",labelKey:"labelField",field:a+r,validations:s.REQUIRE_CONSTRAINT,disabled:u,isLazyLoading:!0,isLastPage:!!c&&c.isLastPage,getData:o.loadObjects.bind(o,t)})},l=function(t,a,r,i){var o=e.onChangeMappingItem.bind(this,a,t);return n.createElement(y,{onChange:o,value:t[a],className:"form-control",field:a+r,maxLength:256,validations:s.REQUIRE_CONSTRAINT,disabled:t.isMappingToGridDisabled})},d=function(t,a,r,i){var o=e.store.tenantOptions,l=e.localization;return n.createElement("div",{className:"select-box"},n.createElement(E,{multi:!0,simpleValue:!0,options:o,labelKey:"displayValue",valueKey:"id",noResultsText:l.getText("COMMON_MESSAGES_NO_RESULT"),allowCreate:!1,onChange:t.updateMappingTenant.bind(t),value:t.displayTenants,field:a+r,validations:s.REQUIRE_CONSTRAINT,disabled:t.isMappingToGridDisabled}))},c=function(t,a,r,i){var o=e.onDeleteMapping.bind(this,t),l=e.localization;return n.createElement("div",null,n.createElement("a",{onClick:o,className:"action-column"},n.createElement("span",{title:l.getText("COMMON_LABEL_DELETE"),className:"icon-cancel"})),t.showMessage&&n.createElement("span",{title:t.message,className:"icon-info-circled u_textErrorColor"}))},p=e.store.databaseMappingDetail;return n.createElement("div",{className:"izenda-MappingDetail"},n.createElement("div",{className:"izenda-MappingDetailContainer"},n.createElement("div",{className:"izenda-MappingDetailMergeDuplicate"},p.doesShowMergeDuplicateMapping&&n.createElement(v,{store:e.store})),n.createElement("div",{className:"izenda-MappingDetailTable"},function(){var p=e.localization,f=e.store.databaseMappingDetail,E=f.selectedMappings,y=f.doesShowMergeDuplicateMapping,v=t.height;return y&&(v-=s.MAPPING_HEIGHT),n.createElement(h,{dataSource:E,minHeight:v},n.createElement(g,{title:p.getText("COMMON_LABEL_FROM")},n.createElement(m,(0,b.default)({},u.fromDatabaseName,{cell:a})),n.createElement(m,(0,b.default)({},u.type,{cell:i})),n.createElement(m,(0,b.default)({},u.fromObject,{cell:o}))),n.createElement(g,{title:p.getText("COMMON_LABEL_TO")},n.createElement(m,(0,b.default)({},u.toDatabaseName,{cell:r})),n.createElement(m,(0,b.default)({},u.toObject,{cell:l})),n.createElement(m,(0,b.default)({},u.tenant,{cell:d}))),n.createElement(g,{title:" "},n.createElement(m,(0,b.default)({},u.action,{cell:c}))))}())))},componentDidMount:function(){var e=o.findDOMNode(this).querySelector(".izenda-MappingDetailTable").clientHeight;e>0&&e!==this.size.height&&(this.size.height=e)},componentWillMount:function(){this.size=l({height:this.props.height})},componentWillReceiveProps:function(e){this.size.height=e.height}}),e.exports=d(T,c)(S)},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(4),i=a(9).propTypes,o=a(19),(l=n(a(791))(function(e){var t=e.localization;return r.createElement("div",{className:"checkbox u_paddingLeft u_paddingTop izenda-MappingDetail-MergeDuplicateMappings"},r.createElement("label",null,r.createElement(o,{type:"checkbox",checked:e.mergeDuplicateMappings,onChange:e.onChangeMergeDuplicateMappings}),t.getText("DATABASE_MAPPING_CHECKBOX_MERGE_DUPLICATE_MAPPINGS"),r.createElement("span",{className:"icon-info-circled",title:t.getText("COPY_MANAGEMENT_MERGE_DUPLICATE_TOOLTIP")})))})).propTypes={store:i.observableObject},e.exports=l},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l=N(a(6)),s=N(a(2)),u=N(a(3)),d=N(a(7)),c=N(a(8)),p=a(0),f=N(p),h=a(5),m=N(a(4)),g=N(a(276)),E=(a(9),N(a(26))),y=N(a(3064)),v=N(a(3066)),T=N(a(250)),_=N(a(3072)),S=N(a(386)),C=N(a(34)),b=a(1);function N(e){return e&&e.__esModule?e:{default:e}}var A=(0,m.default)()((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));o.call(a);var r=e.loader;return a.store=new S.default,a.registerLazyLoadingStore=a.store.registerLazyLoadingStore.bind(a.store),a.loadData=function(){return r.startLoading(),a.store.loadAllUserSetup().finally(r.endLoading.bind(r))},a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){var e=this;this.store.init(),this.loadData();var t=this.props.loader;this.disposeChangeTenant=(0,h.observe)(this.store,"tenantId",function(){t.startLoading(),e.loadData().then(e.store.getPartialUsers.bind(e.store,null,!0)).finally(t.endLoading.bind(t))})}},{key:"componentWillUnMount",value:function(){this.store.destroy(),this.disposeChangeTenant()}},{key:"render",value:function(){var e=this.props,t=e.authorization,a=e.authorizationConstants,r=this.store,n=r.model,i=!t.checkPrivileges([a.PERMISSION_KEY.UserSetupActionsEdit]);return f.default.createElement("div",{className:"izenda-TableLayout"},f.default.createElement(T.default,{minWidth:0,maxWidth:250},f.default.createElement("div",{className:"u_fullHeight u-posRelative u-bgWhite izenda-Middle-section"},f.default.createElement("div",{className:"izenda-MiddlePanel-search"},f.default.createElement(_.default,{store:r,searchUser:this.searchUser})),f.default.createElement("div",{className:"izenda-MiddlePanel-content"},f.default.createElement(E.default,null,f.default.createElement(g.default,{data:n.filterUser,isLastPage:n.isLastPage,getData:this.getData,renderItem:this.renderUserItem,viewHeight:C.default.MIDDLE_PANEL_LIST_MAX_HEIGHT,itemHeight:37,registerLazyLoadingStore:this.registerLazyLoadingStore,itemKey:"id"}))))),f.default.createElement("div",{className:"izenda-TableLayout-Cell"},r.configUserCloned?f.default.createElement(v.default,{store:r,readOnly:i}):null))}}]),t}(p.Component),n.PropTypes={store:f.default.PropTypes.object.isRequired},o=function(){var e=this;this.renderUserItem=function(t){var a=e.props,r=a.authorization,n=a.authorizationConstants,i=!r.checkPrivileges([n.PERMISSION_KEY.UserSetupActionsEdit]);return f.default.createElement(y.default,{userInfo:t,store:e.store,key:t.id,readOnly:i})},this.getData=function(t,a){var r=e.props.loader;return t&&0===(0,b.get)("fromIndex",t)&&r.startLoading(),e.store.getPartialUsers(t,a).finally(r.endLoading.bind(r))},this.searchUser=function(t){return(0,b.get)("store.model",e).updateFilterText(t),e.store.getPartialUsers(null,!0,t)}},r=i))||r;t.default=A,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p;r=a(0),n=a(4),i=a(10),o=a(69),l=a(143),s=a(15),u=a(3065),d=a(1347),c=a(171)()(function(e){var t=e.active,a=e.onClick,n=e.userStatus,o=i("izenda-UserStatus u_textUnderline",{"izenda-UserStatus-Deactivate":!t});return r.createElement("a",{className:o,onClick:a},n)}),p=u(function(e){var t=e.authorizationConstants.PERMISSION_KEY,a=e.store,n=e.userInfo,u=n.fullName,p=e.authorization,f=i("u_paddingAll u_curPointer","truncate",{"u-bgGray":n.selected}),h=n.active?l.USER_STATE.DEACTIVATE:l.USER_STATE.ACTIVATE,m=(p.isIntegrationMode()||n.status!==l.NUMBER_INACTIVE_REASON_STATUS.NO_PASSWORD_SET)&&!e.readOnly&&e.onToggleActive;return r.createElement("div",{className:f,onClick:e.onSelectUser},r.createElement(s,null,r.createElement(s.Row,{className:"izenda-RoleItem"},r.createElement(s.Col,{cols:7,className:"overflow-text"},r.createElement(o,{highlight:a.model.filterText,text:u,tooltip:u})),r.createElement(s.Col,{cols:5},r.createElement("div",{className:"pull-right"},r.createElement(c,{keys:[t.UserSetupActionsEdit],onClick:m,active:n.active,userStatus:h}),r.createElement(d,{keys:[t.UserSetupActionsDel],onClick:e.onDelete,disabled:e.readOnly,integrationHidden:!0}))))))}),e.exports=n()(p)},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=(a(11).withProps,a(11).withHandlers),n=a(11).setPropTypes,i=a(0).PropTypes,o=a(4),l=a(143),s=(a(9).observer,a(44),a(1)),u=s.curry,d=s.isNil,c=s.isEmpty,p=t(n({userInfo:i.object.isRequired,store:i.object.isRequired}),o(),r({onToggleActive:u(function(e,t){var a=e.loader,r=e.store,n=e.userInfo,i=function(t){a.startLoading(),r.setUserStatus(n,t).then(f.bind(null,e)).finally(a.endLoading.bind(a))};n.active?e.confirmFn("Confirmation",{description:l.MESSAGE.DEACTIVE}).then(function(){i(!1)}):i(!0)}),onDelete:u(function(e,t){t.preventDefault(),t.stopPropagation();var a=e.loader,r=e.store,n=function(){return e.confirmFn("Confirmation",{description:l.MESSAGE.DELETE}).then(function(){a.startLoading(),r.deleteUser(e.userInfo).then(f.bind(null,e)).finally(a.endLoading.bind(a))})};e.userInfo.systemAdmin?r.checkLastSystemAdmin().then(function(t){if(t.data)return e.confirmMessage("error",l.MESSAGE.LAST_SYSTEM_ADMIN);n()}):n()}),onSelectUser:u(function(e,t){var a=e.loader,r=e.store;e.validation.reset(),e.confirmDirtyForm(r.isDirty).then(r.selectUser.bind(r,e.userInfo)).finally(a.endLoading.bind(a))})}));function f(e,t){if(!d(t.messages)&&!c(t.messages[0]))return e.confirmMessage("error",t.messages[0].messages[0])}e.exports=p}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c=F(a(6)),p=F(a(2)),f=F(a(3)),h=F(a(7)),m=F(a(8)),g=a(0),E=F(g),y=F(a(10)),v=F(a(4)),T=F(a(143)),_=F(a(16)),S=F(a(3067)),C=F(a(28)),b=F(a(15)),N=F(a(26)),A=F(a(19)),R=F(a(25)),O=F(a(47)),I=F(a(29)),D=F(a(106)),P=F(a(3071)),L=F(a(43)),M=a(1);function F(e){return e&&e.__esModule?e:{default:e}}var k=(0,R.default)()(A.default),x=(0,R.default)()(O.default),w=(0,v.default)()(function(e){var t=e.store.configUserCloned,a=(0,y.default)("u_floatLeft u_fullWidth izenda-HeaderInformation",t.active?"izenda-HeaderActive":"izenda-HeaderInActive"),r=(0,y.default)("izenda-CustomHeader",t.active?"izenda-ActivateUser":"izenda-InactivateUser");return E.default.createElement(b.default.Row,{className:(0,y.default)(t.isNew?"hidden":null)},E.default.createElement(b.default.Col,{cols:"12"},E.default.createElement("div",{className:a},E.default.createElement("i",{className:"icon-attention"}),E.default.createElement("span",{className:r},t.inactiveReason))))}),B=(0,v.default)()(r=function(e){function t(){var e,a,r,n;(0,p.default)(this,t);for(var i=arguments.length,o=Array(i),l=0;l-1&&(e.schedules[r]=t)}(e.data,t,a)})}),deleteSchedule:p(function(e,t){var a=e.loader;e.confirmFn("Confirmation",{description:s.MESSAGE.M01a}).then(function(){return a.startLoading(),e.store.deleteSchedules([t.id])}).then(function(){e.data.deleteSchedule(t)}).finally(a.endLoading.bind(a))}),deleteSelectedSchedules:function(e){return function(){!function(e){var a=e.loader,r=e.data.schedules,n=t(g(E("id")),y({selected:!0}))(r),i=e.data.isAllChecked;e.confirmFn("Confirmation",{description:s.MESSAGE.M01b}).then(function(){return a.startLoading(),e.store.deleteSchedules(n)}).then(function(){i?e.store.updateGridSchedules(e.data):e.data.deleteSelectedSchedules()}).finally(a.endLoading.bind(a))}(e)}},goToPage:p(function(e,t){var a=e.data;a.setPageIndex(t),e.store.updateGridSchedules(a)}),setPageSize:p(function(e,t){e.data.setPageSize(t),e.store.updateGridSchedules(e.data)}),handleChangeSortDirs:p(function(e,t,a){var r=e.loader;r.startLoading(),e.data.setColSortDirs(t,a),e.store.updateGridSchedules(e.data).finally(r.endLoading.bind(r))})}));e.exports=v}()},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var n,i,o,l=L(a(14)),s=L(a(6)),u=L(a(2)),d=L(a(3)),c=L(a(7)),p=L(a(8)),f=a(0),h=L(f),m=L(a(35)),g=L(a(4)),E=a(5),y=L(a(25)),v=L(a(29)),T=L(a(19)),_=L(a(151)),S=L(a(1361)),C=L(a(3119)),b=L(a(688)),N=L(a(26)),A=a(391),R=L(a(1366)),O=L(a(1367)),I=L(a(201)),D=a(1),P=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(519));function L(e){return e&&e.__esModule?e:{default:e}}var M=(0,y.default)()(v.default),F=a(386),k=(0,g.default)()((o=i=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return a.onChangeExportFileType=function(e){a.subData.updateProperty("exportFileType",e.value)},a.onChangeIsSubscriptionTimeZoneUsed=function(e){a.subData.updateProperty("isSubscriptionTimeZoneUsed",e.target.checked)},a.onChangeAttachmentType=function(e){a.subData.updateProperty("exportAttachmentType",e.value)},a.onChangeDeliveryType=function(e){a.subData.updateProperty("deliveryType",e.value)},a.onChangeDeliveryMethod=function(e){a.subData.updateProperty("deliveryMethod",e.value)},a.onChangeEmailSubject=function(e){a.subData.updateProperty("emailSubject",e.target.value)},a.onChangeEmailBody=function(e){a.subData.updateProperty("emailBody",e.target.value)},a.showSystemVariablesPopupForSubject=function(e){a.showSystemVariablesPopup(_.default.ELEMENTS.EMAIL_SUBJECT.KEY,e)},a.showSystemVariablesPopupForBody=function(e){a.showSystemVariablesPopup(_.default.ELEMENTS.EMAIL_BODY.KEY,e)},a.onSelectSystemVariable=function(e){var t=a.systemVariablesUI.sourceType===_.default.ELEMENTS.EMAIL_SUBJECT.KEY?a.subData.emailSubject:a.subData.emailBody,r=a.systemVariablesUI.sourceType===_.default.ELEMENTS.EMAIL_SUBJECT.KEY?"emailSubject":"emailBody",n=a.systemVariablesUI.cursorPosition,i=t.substring(0,n),o=t.substring(n,t.length);a.subData.updateProperty(r,i+e+o),a.systemVariablesUI.updateVisible(!1),a.systemVariablesUI.$sourceNode.focus()},a.subData=e.data,a.originalDeliveryMethod=a.subData.deliveryMethod,a.originalEmailBody=a.subData.emailBody,a.disposeDeliveryType=(0,E.observe)(a.subData,"deliveryType",function(){a.observeDeliveryType()}),a.disposeDeliveryMethod=(0,E.observe)(a.subData,"deliveryMethod",function(e){a.observeDeliveryMethod(e)}),a.options=[],a.init(),a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"init",value:function(){var e=this;this.subData.type!==_.default.SUBSCRIPTION_TYPE_VALUES.subscriptionAlert&&this.subData.type!==I.default.INSTANCE_TYPE_VALUE.SCHEDULE_ALERT||(this.subData.deliveryType="Email");var t=this.getDeliveryTypeList(),a=(0,D.flow)(D.head,(0,D.get)("value"))(t);!(0,D.any)(function(t){return t.value===e.subData.deliveryType},t)&&(this.subData.deliveryType=a),this.observeDeliveryType(),this.observeDeliveryMethod(this.subData.deliveryMethod),this.systemVariablesUI=new O.default,this.userAccountStore=new F(this.props.loadUsers,this.props.userModeType),this.userAccountStore.getAllUserAccounts().then(function(t){for(var a=t.result.length,r=0;r-1;return{value:e,label:r(e),checked:n}})},render:function(){var e=[l,s,u],t=this.props,a=t.filterSource||[],r=t.filterInfo.value||[],i=a.map(function(e){return e});e.push.apply(e,(0,y.default)(i));var c=1===r.length&&r[0]===l?this.mapDataSource(e,r,!0):this.mapDataSource(e,r,!1),p=c.map(function(e,a){return n.createElement("div",{className:"checkbox",key:"chk-"+a},n.createElement("label",null,n.createElement("input",{type:"checkbox",value:e.value,checked:!!e.checked,onChange:this.handleValueChange.bind(this,e,c),disabled:t.disabled}),n.createElement("span",{title:e.label}," ",e.label)))}.bind(this));return n.createElement("div",{className:"filter-value"},n.createElement(d,{autoHeight:!0,autoHeightMax:o.MAX_HEIGHT},p))}})),e.exports=g},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c=O(a(17)),p=O(a(23)),f=O(a(6)),h=O(a(2)),m=O(a(3)),g=O(a(7)),E=O(a(8)),y=a(9),v=a(5),T=a(0),_=O(T),S=O(a(13)),C=O(a(3115)),b=O(a(19)),N=O(a(47)),A=O(a(159)),R=a(1);function O(e){return e&&e.__esModule?e:{default:e}}function I(e,t,a,r){a&&(0,c.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function D(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var P=(0,y.observer)(function(e){var t=e.hideTreeView,a=e.applyFormater,r=e.handleChangeTreeSelect,n=e.disabled,i=e.observableObject,o=i.isOpen,l=i.selectedItems,s=e.masterDom.comboTreeDom,u=e.renderInContainer;return o?_.default.createElement(A.default,{anchor:s,onClickOutside:t,onParentScroll:t,renderInContainer:u},_.default.createElement(C.default,{data:l,applyFormater:a,onChange:r,disabled:n})):null}),L=(0,y.observer)(function(e){var t=e.onChangeSelect,a=e.disabled,r=(0,R.map)(function(t){return{id:t.value,label:e.applyFormater(t.text)}},this.props.observableObject.displayedValues);return(0,R.isEmpty)(r)?null:r.length>0&&_.default.createElement(N.default,{searchable:!1,multi:!0,options:r,onChange:t,value:r,disabled:a,scalable:!1,textboxMode:!0,valueKey:"id",labelField:"label",inputMaxHeight:50})}),M=(0,y.observer)((d=u=function(e){function t(e){(0,h.default)(this,t);var a=(0,g.default)(this,(t.__proto__||(0,f.default)(t)).call(this,e));return I(a,"hideTreeView",i,a),I(a,"handleShowTreeView",o,a),I(a,"handleChangeTreeSelect",l,a),I(a,"onChangeSelect",s,a),a.setComboTreeDom=function(e){a.dom.comboTreeDom=e},a.observableObject=(0,v.observable)({totalNodes:null,displayedValues:[],selectedItems:(0,v.asReference)([]),isOpen:!1}),a.tryGetData=!1,a.dom={},a.inititalTree(e),a}return(0,E.default)(t,e),(0,m.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.props.filterSource!==e.filterSource&&this.inititalTree(e)}},{key:"inititalTree",value:function(e){var t=this,a=e.filterSource,r=e.configField,n=e.store,i=e.filterInfo.value,o=(0,v.toJS)(a);!this.tryGetData&&(0,R.isEmpty)(o)&&((0,R.invokeArgs)("getOperatorValueSource",[r],n),this.tryGetData=!0);var l=(0,R.includes)("[All]",i),s=-1;if(function e(a,r){(0,R.forEach)(function(a){s++,a.key=s,e(a.nodes,a.value);var n=l||(0,R.includes)(a.value,i)||r&&(0,R.includes)(r+"\\"+a.value,i)||a.nodes&&a.nodes.length&&t.isAllOptionSelected(a.nodes);(0,v.extendObservable)(a,{checked:n})},a)}(o),o.length>0){var u=[];this.fillDisplayedValues(o,u),this.observableObject.totalNodes=s,this.observableObject.displayedValues=u,this.observableObject.selectedItems=o}}},{key:"findSelectedItem",value:function(e,t){var a={selected:{},parents:[]},r=function(e,t){return(0,R.remove)(function(e){return e===t},e)};return function e(t,a,n,i){var o=void 0;for(o=0;o0?[n[0].value]:[];this.props.onChange&&this.props.onChange(i),this.props.operatorGroup.fieldDetails.setOperatorSetting(e)}},swithToSingle:function(){this.switchToSingleOrMultiple(n.SELECT_SETTINGS.SINGLE)},switchToMultiple:function(){this.switchToSingleOrMultiple(n.SELECT_SETTINGS.MULTIPLE)},onChangeSelect:function(e){if(h(e)||e&&0===e.length)this.props.onChange&&this.props.onChange([]);else{var t=void 0;t=this.checkMultipleMode(this.props.operatorGroup.fieldDetails.operatorSetting)?e[e.length-1].value===l?[l]:p(function(e){return e.value},m(function(e){return e.value!==l&&!g(e.value)},e)):p(function(e){return e.value},e),this.props.onChange&&this.props.onChange(t)}},onAddNewSelect:function(e){if(this.props.isSelect)return!1;var t=this.props.operatorGroup.fieldDetails,a=t.dataType,r=t.useLookup;return!!this.validationValue(e.value,r?DATA_TYPE.TEXT:a)||(this.props.validation.updateErrors([{key:n.CONSTRAINTS_NAME+this.props.index,messages:this.state.errorMessage}]),!1)},validationValue:function(e,t){switch(t){case n.DATA_TYPE.TEXT:return!0;case n.DATA_TYPE.MONEY:case n.DATA_TYPE.NUMBER:return String.isPatternFormat(e,n.REGEX.NUMBER);case n.DATA_TYPE.DATE:return String.isPatternFormat(e,n.REGEX.DATETIMEFORMAT);default:return!0}},getValueFromSource:function(e){var t,a=this.props.applyFormater;return this.checkMultipleMode(this.props.operatorGroup.fieldDetails.operatorSetting)?1===(t=E(e)?p(function(e){return{value:e,label:a(e)}},e):[]).length&&g(t[0].value)&&(t=[]):t=E(e)&&!g(e[0])?{value:e[0],label:a(e[0])}:null,t},checkMultipleMode:function(e){return e===n.SELECT_SETTINGS.MULTIPLE},renderSelectBox:function(){var e=this.props.operatorGroup.fieldDetails,a=this.checkMultipleMode(e.operatorSetting);return this.props.viewMode?null:t.createElement("div",null,t.createElement(o,{type:"radio",checked:!a,onChange:this.swithToSingle,value:n.SELECT_SETTINGS.SINGLE,disabled:this.props.disabled}),n.SELECT_MODE.SINGLE,"  ",t.createElement(o,{type:"radio",checked:a,onChange:this.switchToMultiple,value:n.SELECT_SETTINGS.MULTIPLE,disabled:this.props.disabled})," ",n.SELECT_MODE.MULTIPLE)},render:function(){var e=this.props,a=e.filterInfo.value,r=this.checkMultipleMode(e.operatorGroup.fieldDetails.operatorSetting),o=this.getValueFromSource(a),l=n.CONSTRAINTS;return t.createElement("div",{className:"manual-entry"},this.renderSelectBox(),t.createElement("div",{className:"select-box-container"},t.createElement(i,{multi:r,options:this.state.options,labelKey:e.labelField,valueKey:e.valueField,scalable:!1,value:o,onChange:this.onChangeSelect,onAddNew:this.onAddNewSelect,field:n.CONSTRAINTS_NAME+e.index,validations:l,disabled:e.disabled,inputMaxHeight:85})))}});e.exports=r()(S)}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=T(a(6)),o=T(a(2)),l=T(a(3)),s=T(a(7)),u=T(a(8)),d=a(0),c=T(d),p=T(a(13)),f=T(a(4)),h=T(a(102)),m=T(a(25)),g=T(a(19)),E=T(a(10)),y=a(1),v=T(a(47));function T(e){return e&&e.__esModule?e:{default:e}}var _=(0,m.default)()(v.default),S=h.default.DEFAUFT_VALUE,C=S.ALL,b=S.NULL,N=S.BLANK,A="",R=(h.default.DATA_TYPE,n=r=function(e){function t(){var e,a,r,n;(0,o.default)(this,t);for(var l=arguments.length,u=Array(l),d=0;d=0;i--){var o=b(function(e){return e.id===r[i].id},a);-1!==o?(j(r[i],a[o])||(r[i]=a[o],n=!0),a.splice(o,1)):r[i].isSubscription===t&&(r.splice(i,1),n=!0)}z(function(e){r.push(e)},a),n&&this.markDirty()}),X.prototype.updateDashboardOwner=n.action(function(e){var t=A(e)||{};this.dashboard.owner=t.fullName,this.dashboard.ownerId=t.id,this.markDirty()}),X.prototype.updateCommonFilter=n.action(function(e){this.dashboard.commonFilterFields=U(function(e){return new o(e)},e)}),X.prototype.updateDrillDownCollection=function(e){if(this.isCrossFiltering(e)){var t=new m(e),a=Q("dashboarPartDrillDowns",this.dashboard),r=N(S(["dashboardPart.id",e.id],a),a),n=H("reportPart.reportPartContent.isDrillingDown",e);r>=0?n?a.splice(r,1,t):a.splice(r,1):n&&a.push(t)}},X.prototype.removeDrillDownInCollection=function(e){if(this.isCrossFiltering(e)){var t=Q("dashboarPartDrillDowns",this.dashboard),a=this.getRelatedDrillDown(e),r=N(a,t);r>=0&&t.splice(r,1)}},X.prototype.getRelatedDrillDown=function(e){return this.isCrossFiltering(e)?K(Q("dashboarPartDrillDowns"),S(["dashboardPart.id",e.id]))(this.dashboard):null},X.prototype.getRelatedCrossFilteringDashboardParts=function(e){var t=this;return this.isCrossFiltering(e)?K(Q("dashboardParts"),w(function(a){return a.reportId===e.reportId&&t.isCrossFiltering(a)}),R(["id",e.id]))(this.dashboard):[]},X.prototype.getCrossFilteringForDashboardPart=function(e,t){var a=this;if(!t&&!this.isCrossFiltering(e))return[];var r=K(Q("dashboarPartDrillDowns"),w(function(t){return t.dashboardPart.reportId===e.reportId&&a.isCrossFiltering(t.dashboardPart)}),R(["dashboardPart.id",e.id]))(this.dashboard),n=[];return z(function(t){var r=a.getCrossFiltering(e,t.dashboardPart);n=O(n,r)},r),n},X.prototype.getCrossFiltering=function(e,t){var a=this,r=H("reportPart.getCrossFilteringFilter",t),n=[];return z(function(t){if(!Y(t.field)){var r=a.scanRelatedField(e,t.field),i=r.key,o={isCrossFilter:!0,fieldId:r.fieldId,key:i,value:t.value,dataFormat:Q("field.reportPartElm.properties.dataFormattings.format.formatId",t)};o=C(Y,o),n.push(o)}},r),n},X.prototype.scanRelatedField=function(e,t){var a=v,r=Q("reportPartElm",t),n=Q("reportPartElm.properties.dataFormattings.functionInfo.name",t);n===a&&(n=null);var i=r.field,o=i.sourceAlias,l=i.fieldId,s=i.fieldName,u=(i.fieldNameAlias,i.relationshipId),d="["+o+"].["+s+"]",p=null,f="";if(Y(n))Y(u)||u===c.EMPTY_GUID?(p=l,f=null):f=d;else{var h=K(Q("reportPart.elementInfo"),w(function(e){return Q("element.field.sourceAlias",e)===o&&Q("element.field.fieldName",e)===s&&Q("element.field.relationshipId",e)===u}))(e);B(h)||z(function(e){var t=Q("element.properties.dataFormattings.functionInfo.name",e);if(t===a&&(t=null),t===n)return f=Y(n)?d:Q("element.field.fieldNameAlias",e),!1},h)}return{key:f,fieldId:p}},X.prototype.onDrillDownUpdatePill=function(e){var t=K(Q("dashboarPartDrillDowns"),S(["dashboardPart.id",e.id]))(this.dashboard),a=this.findRelatedPill(e);Y(a)?!Y(t)&&this.addPill(t):Y(t)&&this.removePill(Q("report.id",e),Q("id",e))},X.prototype.removePill=function(e,t){var a=Q("crossFilteringDetails",this.dashboard),r=S(["reportId",e],a);if(!Y(r)){var n=N(S(["parentId",t],r.pillDefinitions),r.pillDefinitions);if(n>=0&&r.pillDefinitions.splice(n,1),B(r.pillDefinitions)){var i=N(r,a);a.splice(i,1)}}},X.prototype.addPill=function(e){var t=this.findRelatedCrossFiltering(e.dashboardPart),a=Q("dashboardPart.id",e),r=new E(a,Q("dashboardPart.reportPart",e),e.dashboardPart.editingTitle);if(r.parentId=a,Y(t)){var n=e.dashboardPart.report,i=n.name,o=n.id;t=new g(o,i,[r]),Q("crossFilteringDetails",this.dashboard).push(t)}else t.pillDefinitions.push(r)},X.prototype.updatePill=function(e){var t=K(Q("crossFilteringDetails"),S(["report.id",e.dashboardPart.report.id]))(this.dashboard),a=new E(Q("dashboardPart.reportPart",e)),r=S(["dashboardId",Q("dashboardPart.id",e)],t.pillDefinitions),n=N(r,t.pillDefinitions);t.pillDefinitions.splice(n,1,a)},X.prototype.findRelatedCrossFiltering=function(e){return Q("report.id",e)&&K(Q("crossFilteringDetails"),S(["reportId",e.report.id]))(this.dashboard)},X.prototype.findRelatedPill=function(e){var t=this.findRelatedCrossFiltering(e);return K(Q("pillDefinitions"),S(["parentId",e.id]))(t)},X.prototype.updatePillTooltip=function(e){var t=this.findRelatedPill(e);!Y(t)&&(t.tooltip=e.editingTitle)},X.prototype.isCrossFiltering=function(e){return Q("reportPart.reportPartContent.isCrossFiltering",e)},X.prototype.onClearDrillDown=function(e){var t=Q("reportPart.reportPartContent",e);t&&H("resetDrilldownInfo",t)},X.prototype.removeAllCrossFilterings=function(){var e=this.dashboard.crossFilteringDetails;!B(e)&&e.splice(0,e.length)},X.prototype.removeAllDrillDowns=function(){var e=this.dashboard.dashboarPartDrillDowns;!B(e)&&e.splice(0,e.length)},X.prototype.calculateCrossFilteringColors=function(){var e=Q("crossFilteringDetails",this.dashboard),t=0;z(function(e){var a=!(t%2);t++,z(function(e){e.alternative=a},e.pillDefinitions)},e)},X.prototype.isAllowedCrossFiltering=function(e){var t,a=[(t=y.REPORT_PART_TYPE).Chart,t.Gauge,t.Map],r=Q("reportPart.reportPartContent.type",e);return!K(S(function(e){return e==r}),Y)(a)},X.prototype.addDashboardPart=n.action(function(e,t,a){e.setType(a,t.reportPart[0],t),this.renameDashboardPart(e),this.markDirty()}),X.prototype.resetDashboardPart=n.action(function(){this.dashboard.dashboardParts=[],this.markDirty()}),e.exports=X}()}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(a(2));n(a(419));function n(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t){(0,r.default)(this,e),this.dashboardPart=t},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c=E(a(17)),p=E(a(23)),f=E(a(2)),h=E(a(3)),m=a(5),g=E(a(163));function E(e){return e&&e.__esModule?e:{default:e}}function y(e,t,a,r){a&&(0,c.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function v(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var T=(r=function(){function e(t){(0,f.default)(this,e),y(this,"isPresentation",n,this),y(this,"isAccess",i,this),y(this,"isSubscribe",o,this),y(this,"isEdit",l,this),y(this,"isFullscreen",s,this),y(this,"isSchedule",u,this),y(this,"alertDetails",d,this),t&&this.populateData(t)}return(0,h.default)(e,[{key:"isDesigner",get:function(){return!(this.isPresentation||this.isAccess||this.isSubscribe||this.isFullscreen||this.isSchedule)}},{key:"isDisabledCloseButton",get:function(){return this.isAccess||this.isSubscribe||this.isSchedule}},{key:"isDisabledAcessButton",get:function(){return!this.isAccess&&!this.isDesigner}},{key:"isDisabledSubscribeButton",get:function(){return!this.isSubscribe&&!this.isDesigner}},{key:"isDisabledScheduleButton",get:function(){return!this.isSchedule&&!this.isDesigner}},{key:"isDisabledPresentationButton",get:function(){return!this.isPresentation&&!this.isDesigner}}]),(0,h.default)(e,[{key:"populateData",value:function(e){e=e||{},this.isPresentation=e.isPresentation,this.isAccess=e.isAccess,this.isSchedule=e.isSchedule,this.isSubscribe=e.isSubscribe,this.isEdit=e.isEdit,this.isFullscreen=e.isFullscreen}},{key:"reset",value:function(){this.isPresentation=!1,this.isAccess=!1,this.isSubscribe=!1,this.isFullscreen=!1,this.isEdit=!1,this.isSchedule=!1,this.errorMessage=""}},{key:"togglePresentation",value:function(){this.isFullscreen=!1,this.isPresentation=!this.isPresentation}},{key:"toggleAccess",value:function(){this.isAccess=!this.isAccess}},{key:"toggleSchedule",value:function(){this.isSchedule=!this.isSchedule}},{key:"toggleSubscribe",value:function(){this.isSubscribe=!this.isSubscribe}},{key:"setEditMode",value:function(){this.isEdit=!0}},{key:"switchSubscribeMode",value:function(e){this.isSubscribe=e}},{key:"setAlertDetails",value:function(e){this.alertDetails.set(e)}},{key:"resetAlertDetails",value:function(){this.alertDetails.reset()}},{key:"toggleFullscreen",value:function(){this.isPresentation=!1,this.isFullscreen=!0}},{key:"exitFullscreen",value:function(){this.isPresentation=!0,this.isFullscreen=!1}}]),e}(),n=v(r.prototype,"isPresentation",[m.observable],{enumerable:!0,initializer:function(){return!1}}),i=v(r.prototype,"isAccess",[m.observable],{enumerable:!0,initializer:function(){return!1}}),o=v(r.prototype,"isSubscribe",[m.observable],{enumerable:!0,initializer:function(){return!1}}),l=v(r.prototype,"isEdit",[m.observable],{enumerable:!0,initializer:function(){return!1}}),s=v(r.prototype,"isFullscreen",[m.observable],{enumerable:!0,initializer:function(){return!1}}),u=v(r.prototype,"isSchedule",[m.observable],{enumerable:!0,initializer:function(){return!1}}),d=v(r.prototype,"alertDetails",[m.observable],{enumerable:!0,initializer:function(){return new g.default}}),v(r.prototype,"isDesigner",[m.computed],(0,p.default)(r.prototype,"isDesigner"),r.prototype),v(r.prototype,"isDisabledCloseButton",[m.computed],(0,p.default)(r.prototype,"isDisabledCloseButton"),r.prototype),v(r.prototype,"isDisabledAcessButton",[m.computed],(0,p.default)(r.prototype,"isDisabledAcessButton"),r.prototype),v(r.prototype,"isDisabledSubscribeButton",[m.computed],(0,p.default)(r.prototype,"isDisabledSubscribeButton"),r.prototype),v(r.prototype,"isDisabledScheduleButton",[m.computed],(0,p.default)(r.prototype,"isDisabledScheduleButton"),r.prototype),v(r.prototype,"isDisabledPresentationButton",[m.computed],(0,p.default)(r.prototype,"isDisabledPresentationButton"),r.prototype),v(r.prototype,"populateData",[m.action],(0,p.default)(r.prototype,"populateData"),r.prototype),v(r.prototype,"reset",[m.action],(0,p.default)(r.prototype,"reset"),r.prototype),v(r.prototype,"togglePresentation",[m.action],(0,p.default)(r.prototype,"togglePresentation"),r.prototype),v(r.prototype,"setAlertDetails",[m.action],(0,p.default)(r.prototype,"setAlertDetails"),r.prototype),v(r.prototype,"resetAlertDetails",[m.action],(0,p.default)(r.prototype,"resetAlertDetails"),r.prototype),v(r.prototype,"toggleFullscreen",[m.action],(0,p.default)(r.prototype,"toggleFullscreen"),r.prototype),v(r.prototype,"exitFullscreen",[m.action],(0,p.default)(r.prototype,"exitFullscreen"),r.prototype),r);t.default=T,e.exports=t.default},,function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(0),n=r.PropTypes,i=a(326),o=a(377),l=a(9).observer,s=a(1).throttle,u=r.createClass({displayName:"EdgeDetector",propTypes:{onChanged:n.func},getDefaultProps:function(){return{onChanged:null}},componentDidMount:function(){var e=this,t=s(250,this.handleScroll);this.scrollableAncestor=i.findScrollableParent(this.boundary),this.scrollableAncestor&&o.on(this.scrollableAncestor,"scroll",t),this.unlisten=function(){e.scrollableAncestor&&o.off(e.scrollableAncestor,"scroll",t)},this.handleScroll(null)},componentDidUpdate:function(){this.handleScroll(null)},componentWillUnmount:function(){this.unlisten()},render:function(){return r.createElement("div",{ref:this.refBoundary,className:this.props.className},this.props.children)},refBoundary:function(e){this.boundary=e},handleScroll:function(e){try{var t=this.getBounds(),a=this.isOnEdge(t);if(this.previousState===a)return;this.previousState=a,this.props.onChanged&&this.props.onChanged(a)}catch(e){}},getBounds:function(){var e=this.boundary.getBoundingClientRect(),t=this.scrollableAncestor.getBoundingClientRect().top,a=this.scrollableAncestor.clientHeight;return{top:e.top,bottom:e.bottom,viewportTop:t,viewportBottom:t+a}},isOnEdge:function(e){return e.viewportBottom-e.viewportTop!=0&&(e.viewportTop>=e.top&&e.viewportTop<=e.bottom)}}),e.exports=l(u)},,,,function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c;r=a(0),n=a(4),i=a(204),a(205),a(15),a(28),a(62),a(164),a(19),o=a(3135),l=a(26),s=a(3136),u=a(3143),d=a(3144),c=r.createClass({displayName:"SecurityPoliciesDetail",componentDidMount:function(){var e=this.props,t=e.loader,a=e.store;t.startLoading(),a.init(),a.loadSecurityPoliciesDetail().finally(t.endLoading.bind(t))},render:function(){var e=this.props,t=e.store;return r.createElement("div",{className:"izenda-SecurityPoliciesDetail u_fullHeight u-posRelative"},r.createElement(o,{store:t,onSave:e.onSave,onCancel:e.onCancel}),r.createElement("div",{className:"u_fullHeight izenda-SecurityPoliciesPanel"},r.createElement(l,null,r.createElement("div",{className:"izenda-ControlPanel"},r.createElement(s,{store:t}),r.createElement(u,{store:t}),r.createElement(d,{store:t})))))}}),e.exports=n(i)(c)},function(e,t,a){"use strict";!function(){var t=a(1).isEmpty,r=a(5).extendObservable,n=a(16),i=a(5),o=a(3134),l=a(79),s=a(44),u=a(12);function d(){r(this,{model:new o,alertMessage:s.EMPTY_MESSAGE})}d.prototype.init=i.action(function(){n.setCheckDirtyFunction(function(){return this.model.isDirty}.bind(this)),this.alertMessage=s.EMPTY_MESSAGE}),d.prototype.loadSecurityPoliciesDetail=i.action(function(){var e=this.model,t=i.action(function(t){e.readSecuritPolicies(t)});return l.loadSecurityPolicies().then(t)}),d.prototype.save=i.action(function(){var e=this.model,a=e.getDataForSave(),r=i.action(function(a){return t(a.messages)?(e.readSecuritPolicies(a),this.setAlertMessage("success",u.getText("COMMON_MESSAGES_DETAILS_WERE_SAVED")),!0):a});return l.saveSecurityPolicies(a).bind(this).then(r)}),d.prototype.setAlertMessage=function(e,t){this.alertMessage={type:e,message:t}},e.exports=d}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(63),n=a(205),i=a(1),o=i.forEach,l=i.isNil,s=i.isEmpty,u=i.toNumber,d=i.isUndefined,c=i.isString,p=i.keys,f=i.isBoolean,h=i.isNumber;function m(e){t.extendObservable(r(this),{id:null,state:0,inserted:!1,version:null,created:null,createdBy:null,modified:null,modifiedBy:null,minNumberOfPasswordLenght:null,maxNumberOfPasswordLenght:null,passwordLength:!1,minNumberOfSpecialCharacter:null,maxNumberOfSpecialCharacter:null,numberSpecialCharacters:!1,minNumberOfUppercaseCharacter:null,maxNumberOfUppercaseCharacter:null,numberUppercaseCharacters:!1,minNumberOfLowercaseCharacter:null,maxNumberOfLowercaseCharacter:null,numberLowercaseCharacters:!1,minNumberOfNumericCharacter:null,maxNumberOfNumericCharacter:null,numberNumericCharacters:!1,maxNumberOfRepeatSequential:null,maxNumberSequentialRepeated:!1,minNumberOfPasswordAge:null,maxNumberOfPasswordAge:null,passwordAge:!1,notifyUseDuring:null,notifyUser:!1,numberOfPasswordToKeep:null,enforcePasswordHistory:!1,passwordLinkValidity:null,passwordLinkValidityChecked:!1,numberOfQuestionProfile:null,numberOfQuestionResetPassword:null,useSecurityQuestions:!1,numberOfFailedLogonAllowed:null,numberFailedLogonAttemptsAllowed:!1,numberOfFailedAnswerAllowed:null,numberFailedSecurityQuestionAttemptsAllowed:!1,lockoutPeriod:null,hideUserId:!1,hideUserProfile:!1,minPasswordLength:function(){return this.toNumber(this.minNumberOfSpecialCharacter)+this.toNumber(this.minNumberOfUppercaseCharacter)+this.toNumber(this.minNumberOfLowercaseCharacter)+this.toNumber(this.minNumberOfNumericCharacter)},maxPasswordLength:function(){return this.toNumber(this.maxNumberOfSpecialCharacter)+this.toNumber(this.maxNumberOfUppercaseCharacter)+this.toNumber(this.maxNumberOfLowercaseCharacter)+this.toNumber(this.maxNumberOfNumericCharacter)},enableSecurityQuestionToResetPassword:function(){return this.useSecurityQuestions&&this.toNumber(this.numberOfQuestionProfile)>0},enableLockoutPeriod:function(){return 0!==this.toNumber(this.numberOfFailedLogonAllowed)||0!==this.toNumber(this.numberOfFailedAnswerAllowed)}}),this.readSecuritPolicies(e)}m.prototype.readSecuritPolicies=t.action(function(e){e=e||{},o(function(t){d(this[t])||(this[t]=e[t])}.bind(this),p(e)),this.populateData(),this.resetDirty()}),m.prototype.updateValueByKey=function(e,t,a){a=a||n.REQUIRED_MIN_VALUE,f(t)?this[e]=t:c(t)&&s(t)?this[e]=null:(t=this.toNumber(t),h(t)&&t>=a&&(this[e]=t)),this.markDirty()},m.prototype.checkHasData=function(e,t){return!l(e)||!l(t)},m.prototype.populateData=t.action(function(){this.passwordLength=this.checkHasData(this.minNumberOfPasswordLenght,this.maxNumberOfPasswordLenght),this.numberSpecialCharacters=this.checkHasData(this.minNumberOfSpecialCharacter,this.maxNumberOfSpecialCharacter),this.numberUppercaseCharacters=this.checkHasData(this.minNumberOfUppercaseCharacter,this.maxNumberOfUppercaseCharacter),this.numberLowercaseCharacters=this.checkHasData(this.minNumberOfLowercaseCharacter,this.maxNumberOfLowercaseCharacter),this.numberNumericCharacters=this.checkHasData(this.minNumberOfNumericCharacter,this.maxNumberOfNumericCharacter),this.maxNumberSequentialRepeated=this.checkHasData(this.maxNumberOfRepeatSequential),this.passwordAge=this.checkHasData(this.minNumberOfPasswordAge,this.maxNumberOfPasswordAge),this.notifyUser=this.checkHasData(this.notifyUseDuring),this.enforcePasswordHistory=this.checkHasData(this.numberOfPasswordToKeep),this.passwordLinkValidityChecked=this.checkHasData(this.passwordLinkValidity),this.useSecurityQuestions=this.checkHasData(this.numberOfQuestionProfile,this.numberOfQuestionResetPassword),this.numberFailedLogonAttemptsAllowed=this.checkHasData(this.numberOfFailedLogonAllowed),this.numberFailedSecurityQuestionAttemptsAllowed=this.checkHasData(this.numberOfFailedAnswerAllowed)}),m.prototype.toNumber=function(e){return c(e)&&s(e)?null:u(e)||0},m.prototype.autoCalculateMinPasswordLength=function(){this.minNumberOfPasswordLenght0?this.props.height:this.uiStore.defaultHeight,s=d.default.createElement("div",null,d.default.createElement("span",null,t.reportTabTitle),n&&d.default.createElement("span",{className:"icon-attention warning-color"})),u=d.default.createElement("div",null,d.default.createElement("span",null,t.dashboardTabTitle),i&&d.default.createElement("span",{className:"icon-attention warning-color"}));return d.default.createElement("div",{className:"izenda-Wrapper-content"},d.default.createElement(p.default,null,d.default.createElement("div",{className:"u_fullHeight u_paddingLeftRight"},d.default.createElement(c.Tabs,{activeTabKey:o,panelClassName:"u_noMarginAll",onChange:r.changeActiveTabKey.bind(r),canChangeTab:this.props.canChangeTab},d.default.createElement(c.Tab,{title:s,tabKey:"report"},d.default.createElement(f.default,{height:l,store:t})),d.default.createElement(c.Tab,{title:u,tabKey:"dashboard"},d.default.createElement(h.default,{height:l,store:t}))),d.default.createElement(T.default,{store:t}))))}},{key:"render",value:function(){var e=this.props,t=e.store,a=e.store,r=a.hasFileLoaded,n=a.hasDataModelLoaded;return d.default.createElement("div",{className:"izenda-Import izenda-TableLayout",ref:this.setDom},d.default.createElement("div",{className:"izenda-TableLayout-Cell"},n&&d.default.createElement("section",{className:"izenda-Wrapper"},d.default.createElement(_.default,{store:t})),r&&d.default.createElement("section",{className:"izenda-Wrapper"},d.default.createElement(m.default,{store:t}),this.renderImportTabs()),!r&&!n&&d.default.createElement(y.default,{store:t})))}}]),t}(u.Component))||r;t.default=b,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=f(a(6)),i=f(a(2)),o=f(a(3)),l=f(a(7)),s=f(a(8)),u=a(0),d=f(u),c=f(a(4)),p=f(a(1372));function f(e){return e&&e.__esModule?e:{default:e}}var h=(0,c.default)()(r=function(e){function t(){return(0,i.default)(this,t),(0,l.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){this.props.validation.updateErrors(this.props.store.errorMessages)}},{key:"render",value:function(){var e=this.props,t=e.height,a=e.store;return d.default.createElement("div",null,d.default.createElement(p.default,{height:t,dataSource:a.model.reports,saveInto:a.saveInto,loadCategories:a.loadCategories,loadSubCategories:a.loadSubCategories,store:a}))}}]),t}(u.Component))||r;t.default=h,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(399)),n=a(11),i=a(1),o=a(173),l=s(a(3157));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.validation,a=e.store;t.reset(),t.updateErrors(a.errorMessages)}t.default=(0,n.withHandlers)({getType:(0,i.curry)(function(e,t){return t.isReport?(0,o.getReportType)(t.content.type):e.localization.getText("COMMON_LABEL_DASHBOARD")}),updateCategory:(0,i.curry)(function(e,t,a,r){e.store.updateCategory(t,a,r),u(e)}),updateName:(0,i.curry)(function(e,t,a){e.store.updateName(t,a.target.value),u(e)}),updateSubCategory:(0,i.curry)(function(e,t,a,r){e.store.updateSubCategory(t,a,r),u(e)}),updateSaveIntoId:(0,i.curry)(function(e,t,a){e.store.updateSaveIntoId(t,a),u(e)}),removeFile:(0,i.curry)(function(e,t){var a=t.id,r=t.name,n=t.content.index,i=e.store,o=e.validation,l=e.isDashboardTab;e.confirmFn("Information",{description:String.format(e.localization.getText("IMPORT_DELETE_MESSAGE"),r),type:"warning",showCloseIndicator:!1}).then(function(){i.removeFiles([a]).then(function(t){t&&(l?i.updateDashboards(a,n):i.updateReports(a,n),i.updateDatabaseMappings().then(function(){i.hasErrorOnClientSideReportTab&&"report"===i.model.activeTabKey||i.hasErrorOnClientSideDashboardTab&&"dashboard"===i.model.activeTabKey?o.validate().then(function(t){t&&u(e)}):u(e)}))})})}),openDetailFilePopup:(0,i.curry)(function(e,t){var a=e.store,n=a.getFileInfo(t),i=t.isReport?o.TYPE_ACCESS_REPORT:o.TYPE_ACCESS_DASHBOARD,s=function(e,t){var a=e.localization;return t.isReport?0===t.content.type?a.getText("IMPORT_REPORT_INFORMATION"):a.getText("IMPORT_TEMPLATE_INFORMATION"):a.getText("IMPORT_DASHBOARD_INFORMATION")}(e,t);a.getDetailFile(n,i).then(function(t){var a=(0,r.default)(t,2),n=a[0],i=a[1];e.openPopup(l.default,{title:s,content:n,loadAccessRights:i})})})}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(14)),l=_(a(6)),s=_(a(2)),u=_(a(3)),d=_(a(7)),c=_(a(8)),p=a(0),f=_(p),h=_(a(13)),m=_(a(26)),g=_(a(32)),E=a(46),y=a(173),v=a(1),T=_(a(4));function _(e){return e&&e.__esModule?e:{default:e}}var S=y.TableDefinition.ReportInformation,C=(0,T.default)()((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u");return t=t.replace(new RegExp("\\]","gm"),""),p.default.createElement("label",{className:"u_marginLeftInnerSpace",dangerouslySetInnerHTML:{__html:t}})}},{key:"renderErrorLocation",value:function(e,t){var a=this.props.localization,r="",n="",i="";e.report?(r=a.getText("CONTEXT_MENU_LABEL_REPORT")+": ",n=e.report,i=(0,m.getOr)("","fileName",e)):(r=a.getText("CONTEXT_MENU_LABEL_DASHBOARD")+": ",n=(0,m.get)("dashboard.dashboard",e),i=(0,m.getOr)("","dashboard.fileName",e));var o=i?a.getText("IMPORT_MAPPING_ERROR_OBJECT_LOCATION"):"";return p.default.createElement("div",null,t,p.default.createElement("label",{className:"u_marginLeftInnerSpace"},r,p.default.createElement("strong",null,n)," ",o," ",p.default.createElement("strong",null,i)))}},{key:"render",value:function(){var e=this.props.errorMessages;return p.default.createElement("div",{className:"u_fullSize u_borderAll izenda-MappingError-tree"},p.default.createElement(f.default,{collapsed:!1,nodes:e,getKey:this.getKey,renderNode:this.renderNode,getChildNodes:this.getChildNodes,nodeExpand:this.nodeExpand}))}}]),t}(c.Component),n.propTypes={errorMessages:h.default.array},r=i))||r;t.default=E,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u=C(a(17)),d=C(a(6)),c=C(a(2)),p=C(a(3)),f=C(a(7)),h=C(a(8)),m=a(0),g=C(m),E=C(a(32)),y=C(a(4)),v=C(a(3168)),T=C(a(3170)),_=a(5),S=(C(a(30)),a(173));function C(e){return e&&e.__esModule?e:{default:e}}function b(e,t,a,r){a&&(0,u.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function N(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var A=(0,y.default)(v.default)((n=function(e){function t(e){(0,c.default)(this,t);var a=(0,f.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));b(a,"importProgressList",i,a),b(a,"isImportProcessCompleted",o,a),b(a,"isClickCancelBefore",l,a),b(a,"updateStatus",s,a),a.onClickCancel=function(){a.isClickCancelBefore=!0,clearInterval(a.getStatusInterval),a.props.onCancelImport(a.importProgressList).then(function(){a.isImportProcessCompleted=!0})},a.onClickOk=function(){a.props.onClosing(a.importProgressList)};var r=a.props.importFiles;return a.importProgressList=a.props.convertToImportProgressList(r),a}return(0,h.default)(t,e),(0,p.default)(t,[{key:"componentDidMount",value:function(){this.getStatusInterval=setInterval(this.updateStatus,S.IMPORT_STATUS_REFRESH_INTERVAL)}},{key:"componentWillUnmount",value:function(){clearInterval(this.getStatusInterval)}},{key:"render",value:function(){var e=this.props.localization;return g.default.createElement(E.default,{visible:!0,type:"none",autoClose:!1},g.default.createElement(E.default.Header,{showCloseButton:!1,title:e.getText("IMPORT_PROGRESS_POPUP_TITLE")}),g.default.createElement(E.default.Body,null,g.default.createElement(T.default,{importProgressList:this.importProgressList})),g.default.createElement(E.default.Footer,null,g.default.createElement(E.default.ConfirmationButton,{disabled:!this.isImportProcessCompleted,onClick:this.onClickOk,label:e.getText("COMMON_LABEL_OK")}),g.default.createElement(E.default.ConfirmationButton,{className:"btn-setting-default",disabled:this.isClickCancelBefore||this.isImportProcessCompleted,onClick:this.onClickCancel,label:e.getText("IMPORT_PROGRESS_POPUP_CANCEL_IMPORT")})))}}]),t}(m.Component),i=N(n.prototype,"importProgressList",[_.observable],{enumerable:!0,initializer:function(){return[]}}),o=N(n.prototype,"isImportProcessCompleted",[_.observable],{enumerable:!0,initializer:function(){return!1}}),l=N(n.prototype,"isClickCancelBefore",[_.observable],{enumerable:!0,initializer:function(){return!1}}),s=N(n.prototype,"updateStatus",[_.action],{enumerable:!0,initializer:function(){var e=this;return function(){e.props.updateImportStatus(e.importProgressList).then(function(t){t&&(clearInterval(e.getStatusInterval),e.isImportProcessCompleted=!0)})}}}),r=n))||r;t.default=A,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(11),n=a(1),i=s(a(3169)),o=s(a(797)),l=a(173);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(0,n.forEach)(function(t){var a=(0,n.find)(function(e){return e.id===t.id},e);a&&(t.status=a.status)},t)}t.default=(0,r.withHandlers)({onClosing:(0,n.curry)(function(e,t){e.onAccept(t)}),onCancelImport:(0,n.curry)(function(e,t){var a=e.store,r=(0,n.map)("id",t);return a.cancelImport(r).then(function(e){u(e,t)})}),updateImportStatus:(0,n.curry)(function(e,t){var a=(0,n.map)("id",t);return o.default.getImportStatus(a).then(function(e){return u(e,t),(0,n.every)(function(e){return e.status===l.ImportStatus.SUCCESS.value||e.status===l.ImportStatus.FAILED.value},t)})}),convertToImportProgressList:(0,n.curry)(function(e,t){return(0,n.map)(function(e){return new i.default(e)},t)})}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=c(a(17)),l=c(a(23)),s=c(a(2)),u=c(a(3)),d=a(5);function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t,a,r){a&&(0,o.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function f(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var h=(r=function(){function e(t){(0,s.default)(this,e),p(this,"status",n,this),p(this,"errorCode",i,this),this.objectName=null,this.id=null,this.fileKey=null,this.setData(t)}return(0,u.default)(e,[{key:"setData",value:function(e){this.objectName=e.objectName,this.status=e.status,this.errorCode=e.errorCode,this.id=e.id,this.fileKey=e.fileKey}}]),e}(),n=f(r.prototype,"status",[d.observable],{enumerable:!0,initializer:function(){return 0}}),i=f(r.prototype,"errorCode",[d.observable],{enumerable:!0,initializer:function(){return 0}}),f(r.prototype,"setData",[d.action],(0,l.default)(r.prototype,"setData"),r.prototype),r);t.default=h,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=g(a(6)),i=g(a(2)),o=g(a(3)),l=g(a(7)),s=g(a(8)),u=a(0),d=g(u),c=a(1),p=g(a(15)),f=a(173),h=g(a(26)),m=g(a(3171));function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,a(9).observer)(r=function(e){function t(){var e,a,r,o;(0,i.default)(this,t);for(var s=arguments.length,u=Array(s),d=0;dt&&r.scrollBox.scrollTo({left:0,top:a})}},o=a,(0,l.default)(r,o)}return(0,s.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this,t=this.props.importProgressList;return d.default.createElement(h.default,{ref:this.setScrollBox,viewClassName:"izenda-ImportProgressPopup",autoHeight:!0,autoHeightMax:f.IMPORT_PROGRESS_LIST_MAX_HEIGHT,triggerOnScrollWhenScrollTo:!1,onScroll:this.onScroll},d.default.createElement(p.default,{className:"izenda-ImportProgressList"},t.map(function(t){return d.default.createElement(m.default,{key:(0,c.uniqueId)(),onUpdateStatus:e.onUpdateStatus,item:t})})))}}]),t}(u.Component))||r;t.default=E,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=g(a(6)),i=g(a(2)),o=g(a(3)),l=g(a(7)),s=g(a(8)),u=a(0),d=g(u),c=g(a(75)),p=a(173),f=g(a(10)),h=a(9),m=g(a(15));function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,h.observer)(r=function(e){function t(){var e,a,r,o;(0,i.default)(this,t);for(var s=arguments.length,u=Array(s),d=0;d=0}),(0,x.get)("detail"))(this.errorMessages);this.errorMessages=(0,x.filter)(function(e){return!(0,x.includes)(e.key,r)},this.errorMessages),(0,x.filter)(function(e){return e.detail===n},this.errorMessages).length/t.length==1&&(this.errorMessages=(0,x.filter)(function(e){return e.detail!==n},this.errorMessages)),this.updateExistingErrorInEachTab(this.errorMessages)}},{key:"updateExistingErrorInEachTab",value:function(e){this.hasErrorOnServerSideReportTab=(0,x.some)(function(e){return e.key.indexOf("report")>=0},e),this.hasErrorOnServerSideDashboardTab=(0,x.some)(function(e){return e.key.indexOf("dashboard")>=0},e)}},{key:"getErrorsPopup",value:function(){return(0,x.find)({key:"dataModelConsistency"},this.errorMessages).detail}},{key:"groupByValidFiles",value:function(e){return(0,x.groupBy)(function(e){return(0,x.endsWith)(U.FILE_EXTENSION.REPORT,e.name)||(0,x.endsWith)(U.FILE_EXTENSION.DASHBOARD,e.name)||(t=e.name,k.default.isSingleTenantMode&&k.default.currentUser.systemAdmin&&(0,x.endsWith)(U.FILE_EXTENSION.DATAMODEL,t));var t},e)}},{key:"getInvalidMessages",value:function(e){return(0,x.map)(function(e){return e.name.replace(/(^.*[\\\/]|\.[^/.]+$)/,"")+" - "+w.default.getText("IMPORT_LABEL_INVALID_FILE_FORMAT")},e)}},{key:"uploadFiles",value:function(e){var t=this,a=this.groupByValidFiles(e),r=a.true,n=a.false;return this.model.invalidFileMessages=this.getInvalidMessages(n),N.default.uploadFiles(r).then(function(e){return t.createImportContent(e),e})}},{key:"hideErrorMessages",value:function(){this.showErrorMessages=!1,this.resetArray(this.model.invalidFileMessages)}},{key:"getSchemas",value:function(e){var t={skipItems:-1,connectionId:e};return b.default.getSchemas(t).then(function(e){return e.result})}},{key:"removeFiles",value:function(e){return N.default.removeFiles(e)}},{key:"removeFilesSync",value:function(){var e=(0,x.concat)(this.model.fileIds,this.dataModelImport.fileId);!(0,x.isEmpty)(e)&&N.default.removeFilesSync(e),this.resetDirty()}},{key:"onOkDirtyForm",value:function(){var e=(0,x.concat)(this.model.fileIds,this.dataModelImport.fileId);!(0,x.isEmpty)(e)&&this.removeFiles(e),this.reset()}},{key:"updateReports",value:function(e,t){this.updateErrorMessages(t,["category","subCategory"],this.model.activeTabKey),this.arrangeErrorRows(t,1),this.model.arrangeIndex(t,1,!1),this.model.updateReports(e),(0,x.isEmpty)(this.model.reports)&&(this.hasErrorOnClientSideReportTab=!1,this.hasErrorOnServerSideReportTab=!1)}},{key:"updateDashboards",value:function(e,t){for(var a=(0,x.findIndex)({id:e},this.model.dashboards),r=(0,x.findLastIndex)({id:e},this.model.dashboards),n=a;n=0){var n=r.substring(r.indexOf(".")+1,r.lastIndexOf("."));return parseInt(n,10)>e}return!1}),(0,x.forEach)(function(e){var r=e.key,n=r.substring(r.indexOf(".")+1,r.lastIndexOf(".")),i=r.substring(e.key.lastIndexOf(".")+1,r.length);e.key=a.model.activeTabKey+"."+(n-t)+"."+i}))(this.errorMessages)}},{key:"getFileInfo",value:function(e){return{type:"report"===this.model.activeTabKey?U.TYPE_REPORT:U.TYPE_DASHBOARD,fileId:e.id,objectId:e.isReport&&"dashboard"===this.model.activeTabKey?e.content.id:""}}},{key:"getDetailFile",value:function(e,t){return(0,g.all)([N.default.getDetailFile(e),D.default.loadAccessRight(t)])}},{key:"removeNewCategory",value:function(e){var t=e.categories,a=e.subCategories,r=function(e){return(0,x.findLastIndex)({isNew:!0},e)},n=function(e){for(var t=r(e);t>-1;)e.splice(t,1),t=r(e)};n(t),n(a),this.resetArray(this.tempSubCategories),this.updateCategory(e)}},{key:"addNewCategory",value:function(e,t,a){var r=(0,x.find)({name:t.name},e.categories);r?t.id=r.id:(t.id="new_"+t.id,e.categories.push(t)),a?this.updateCategory(e,t.id,t.name):this.updateCategory(e)}},{key:"addNewSubCategory",value:function(e,t,a){var r=(0,x.find)({name:t.name},e.subCategories);r?t.id=r.id:(t.id="new_"+t.id,this.addForAllSubCategories(e,t)),a?this.updateSubCategory(e,t.id,t.name):this.updateSubCategory(e),this.tempSubCategories.push({saveIntoId:e.saveIntoId,categoryName:e.content.categoryName,isReport:e.isReport,subCategory:t})}},{key:"addForAllSubCategories",value:function(e,t){var a=e.saveIntoId,r=e.content.categoryName,n=e.isReport;(0,x.flow)((0,x.filter)(function(e){return e.saveIntoId===a&&e.content.categoryName===r&&e.isReport===n}),(0,x.map)("subCategories"),(0,x.forEach)(function(e){e.push(t)}))([].concat((0,y.default)(this.model.reports),(0,y.default)(this.model.dashboards)))}},{key:"getTempSubCategories",value:function(e){return(0,x.flow)((0,x.filter)({saveIntoId:e.saveIntoId,categoryName:e.content.categoryName,isReport:e.isReport}),(0,x.map)("subCategory"))(this.tempSubCategories)||[]}},{key:"getAllNameTenantList",value:function(){return A.default.getAllNameTenantList()}},{key:"getSourceConnectionsFromImportDataModel",value:function(e){return O.default.getSourceConnectionsFromImportDataModel({fileId:e})}},{key:"getAllDestinationConnections",value:function(e){return R.default.getConnectionDetailInfo(e.tenantId,!1,{removeEmptyParent:!1})}},{key:"validateImportDataModel",value:function(e){return O.default.validateImportDataModel(e)}},{key:"checkDataSourcesConflictsWhenImportDataModel",value:function(e){return O.default.checkDataSourcesConflictsWhenImportDataModel(e).then(function(e){var t=null;if(!(0,x.isEmpty)(e.overridenQuerySources)){var a=(0,x.map)(function(e){return e.dbSource={querySources:(0,x.map)(function(e){return e.querySources=e.schemas,e},e.connections)},e},e.overridenQuerySources);t=new I.default(a)}return{success:e.success,tree:t}})}},{key:"importDataModel",value:function(e){return O.default.importDataModel(e)}},{key:"reportTabTitle",get:function(){return w.default.getText("COMMON_LABEL_REPORT")+((0,x.isEmpty)(this.model.reports)?"":" ("+this.model.reports.length+")")}},{key:"dashboardTabTitle",get:function(){return w.default.getText("COMMON_LABEL_DASHBOARD")+((0,x.isEmpty)(this.model.dashboards)?"":" ("+(0,x.filter)({isReport:!1},this.model.dashboards).length+")")}},{key:"hasErrorReportTab",get:function(){return this.hasErrorOnServerSideReportTab||this.hasErrorOnClientSideReportTab}},{key:"hasErrorDashboardTab",get:function(){return this.hasErrorOnServerSideDashboardTab||this.hasErrorOnClientSideDashboardTab}},{key:"hasDataModelLoaded",get:function(){return this.dataModelImport.loaded}},{key:"hasFileLoaded",get:function(){return!((0,x.isEmpty)(this.model.reports)&&(0,x.isEmpty)(this.model.dashboards)||this.showErrorMessages)}}]),e}(),i=G(n.prototype,"model",[_.observable],{enumerable:!0,initializer:function(){return null}}),o=G(n.prototype,"saveInto",[_.observable],{enumerable:!0,initializer:function(){return null}}),l=G(n.prototype,"dataModelImport",[_.observable],{enumerable:!0,initializer:function(){return null}}),s=G(n.prototype,"databaseNamesTo",[_.observable],{enumerable:!0,initializer:function(){return null}}),u=G(n.prototype,"showErrorMessages",[_.observable],{enumerable:!0,initializer:function(){return!1}}),d=G(n.prototype,"hasErrorOnServerSideReportTab",[_.observable],{enumerable:!0,initializer:function(){return!1}}),c=G(n.prototype,"hasErrorOnClientSideReportTab",[_.observable],{enumerable:!0,initializer:function(){return!1}}),p=G(n.prototype,"hasErrorOnServerSideDashboardTab",[_.observable],{enumerable:!0,initializer:function(){return!1}}),f=G(n.prototype,"hasErrorOnClientSideDashboardTab",[_.observable],{enumerable:!0,initializer:function(){return!1}}),G(n.prototype,"reportTabTitle",[_.computed],(0,m.default)(n.prototype,"reportTabTitle"),n.prototype),G(n.prototype,"dashboardTabTitle",[_.computed],(0,m.default)(n.prototype,"dashboardTabTitle"),n.prototype),G(n.prototype,"hasErrorReportTab",[_.computed],(0,m.default)(n.prototype,"hasErrorReportTab"),n.prototype),G(n.prototype,"hasErrorDashboardTab",[_.computed],(0,m.default)(n.prototype,"hasErrorDashboardTab"),n.prototype),G(n.prototype,"hasDataModelLoaded",[_.computed],(0,m.default)(n.prototype,"hasDataModelLoaded"),n.prototype),G(n.prototype,"hasFileLoaded",[_.computed],(0,m.default)(n.prototype,"hasFileLoaded"),n.prototype),G(n.prototype,"initial",[_.action],(0,m.default)(n.prototype,"initial"),n.prototype),G(n.prototype,"reset",[_.action],(0,m.default)(n.prototype,"reset"),n.prototype),G(n.prototype,"createImportContent",[_.action],(0,m.default)(n.prototype,"createImportContent"),n.prototype),G(n.prototype,"appendContent",[_.action],(0,m.default)(n.prototype,"appendContent"),n.prototype),G(n.prototype,"getDatabaseNamesTo",[_.action],(0,m.default)(n.prototype,"getDatabaseNamesTo"),n.prototype),G(n.prototype,"loadInitialCategories",[_.action],(0,m.default)(n.prototype,"loadInitialCategories"),n.prototype),G(n.prototype,"processReportCategories",[_.action],(0,m.default)(n.prototype,"processReportCategories"),n.prototype),G(n.prototype,"processDashboardCategories",[_.action],(0,m.default)(n.prototype,"processDashboardCategories"),n.prototype),G(n.prototype,"finishImport",[_.action],(0,m.default)(n.prototype,"finishImport"),n.prototype),G(n.prototype,"updateDatabaseMappings",[_.action],(0,m.default)(n.prototype,"updateDatabaseMappings"),n.prototype),G(n.prototype,"getDatabaseMappings",[_.action],(0,m.default)(n.prototype,"getDatabaseMappings"),n.prototype),G(n.prototype,"loadReportTemplateCategories",[_.action],(0,m.default)(n.prototype,"loadReportTemplateCategories"),n.prototype),G(n.prototype,"loadDashboardCategories",[_.action],(0,m.default)(n.prototype,"loadDashboardCategories"),n.prototype),G(n.prototype,"updateName",[_.action],(0,m.default)(n.prototype,"updateName"),n.prototype),G(n.prototype,"updateSaveIntoId",[_.action],(0,m.default)(n.prototype,"updateSaveIntoId"),n.prototype),G(n.prototype,"updateCategory",[_.action],(0,m.default)(n.prototype,"updateCategory"),n.prototype),G(n.prototype,"loadReportTemplateSubCategories",[_.action],(0,m.default)(n.prototype,"loadReportTemplateSubCategories"),n.prototype),G(n.prototype,"loadDashboardSubCategories",[_.action],(0,m.default)(n.prototype,"loadDashboardSubCategories"),n.prototype),G(n.prototype,"toggleImportCategory",[_.action],(0,m.default)(n.prototype,"toggleImportCategory"),n.prototype),G(n.prototype,"processImportSourceCategory",[_.action],(0,m.default)(n.prototype,"processImportSourceCategory"),n.prototype),G(n.prototype,"updateSourceCategoryForImportFiles",[_.action],(0,m.default)(n.prototype,"updateSourceCategoryForImportFiles"),n.prototype),G(n.prototype,"populateImportSourceCategory",[_.action],(0,m.default)(n.prototype,"populateImportSourceCategory"),n.prototype),G(n.prototype,"loadCategories",[_.action],(0,m.default)(n.prototype,"loadCategories"),n.prototype),G(n.prototype,"loadSubCategories",[_.action],(0,m.default)(n.prototype,"loadSubCategories"),n.prototype),G(n.prototype,"updateSubCategory",[_.action],(0,m.default)(n.prototype,"updateSubCategory"),n.prototype),G(n.prototype,"validate",[_.action],(0,m.default)(n.prototype,"validate"),n.prototype),G(n.prototype,"validateOverride",[_.action],(0,m.default)(n.prototype,"validateOverride"),n.prototype),G(n.prototype,"updateExistingErrorInEachTab",[_.action],(0,m.default)(n.prototype,"updateExistingErrorInEachTab"),n.prototype),G(n.prototype,"getErrorsPopup",[_.action],(0,m.default)(n.prototype,"getErrorsPopup"),n.prototype),G(n.prototype,"uploadFiles",[_.action],(0,m.default)(n.prototype,"uploadFiles"),n.prototype),G(n.prototype,"hideErrorMessages",[_.action],(0,m.default)(n.prototype,"hideErrorMessages"),n.prototype),G(n.prototype,"getSchemas",[_.action],(0,m.default)(n.prototype,"getSchemas"),n.prototype),G(n.prototype,"updateReports",[_.action],(0,m.default)(n.prototype,"updateReports"),n.prototype),G(n.prototype,"updateDashboards",[_.action],(0,m.default)(n.prototype,"updateDashboards"),n.prototype),G(n.prototype,"getFileInfo",[_.action],(0,m.default)(n.prototype,"getFileInfo"),n.prototype),G(n.prototype,"removeNewCategory",[_.action],(0,m.default)(n.prototype,"removeNewCategory"),n.prototype),G(n.prototype,"addNewCategory",[_.action],(0,m.default)(n.prototype,"addNewCategory"),n.prototype),G(n.prototype,"addNewSubCategory",[_.action],(0,m.default)(n.prototype,"addNewSubCategory"),n.prototype),G(n.prototype,"getAllNameTenantList",[_.action],(0,m.default)(n.prototype,"getAllNameTenantList"),n.prototype),G(n.prototype,"getSourceConnectionsFromImportDataModel",[_.action],(0,m.default)(n.prototype,"getSourceConnectionsFromImportDataModel"),n.prototype),G(n.prototype,"getAllDestinationConnections",[_.action],(0,m.default)(n.prototype,"getAllDestinationConnections"),n.prototype),G(n.prototype,"validateImportDataModel",[_.action],(0,m.default)(n.prototype,"validateImportDataModel"),n.prototype),G(n.prototype,"checkDataSourcesConflictsWhenImportDataModel",[_.action],(0,m.default)(n.prototype,"checkDataSourcesConflictsWhenImportDataModel"),n.prototype),G(n.prototype,"importDataModel",[_.action],(0,m.default)(n.prototype,"importDataModel"),n.prototype),r=n))||r;t.default=H,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h=b(a(17)),m=b(a(23)),g=b(a(71)),E=b(a(2)),y=b(a(3)),v=a(5),T=b(a(1374)),_=b(a(3176)),S=a(1),C=b(a(16));function b(e){return e&&e.__esModule?e:{default:e}}function N(e,t,a,r){a&&(0,h.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function A(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var R=(r=function(){function e(){(0,E.default)(this,e),N(this,"batchId",n,this),N(this,"importSourceCat",i,this),N(this,"importAccessRights",o,this),N(this,"importFilterValues",l,this),N(this,"reports",s,this),N(this,"dashboards",u,this),N(this,"tenantId",d,this),N(this,"hasInvalidFile",c,this),N(this,"systemVersion",p,this),N(this,"databaseMappings",f,this),this.invalidFileMessages=[],this.activeTabKeys=[{key:"report",index:1},{key:"dashboard",index:2}],this.activeTabKey="report"}return(0,y.default)(e,[{key:"create",value:function(e,t){var a=this.populate(e,t),r=a.reports,n=a.dashboards,i=a.databaseMappings;this.reports=r,this.dashboards=n,this.databaseMappings=i,this.updateActiveTabKey(e)}},{key:"appendContent",value:function(e,t){var a=this.populate(e,t),r=a.reports,n=a.dashboards,i=a.databaseMappings;return Array.prototype.push.apply(this.reports,r),Array.prototype.push.apply(this.dashboards,n),Array.prototype.push.apply(this.databaseMappings,i),this.updateActiveTabKey(e),[].concat((0,g.default)(r),(0,g.default)(n))}},{key:"updateReports",value:function(e){var t=(0,S.findIndex)({id:e},this.reports);-1!==t&&this.reports.splice(t,1)}},{key:"updateDashboards",value:function(e){var t=(0,S.findIndex)({id:e},this.dashboards),a=(0,S.findLastIndex)({id:e},this.dashboards);this.dashboards.splice(t,a-t+1)}},{key:"populate",value:function(e,t){var a=this;this.batchId=e.batchId,this.importAccessRights=e.importAccessRights,this.importFilterValues=e.importFilterValues,this.tenantId=e.tenantId,this.hasInvalidFile=e.hasInvalidFile,this.systemVersion=e.systemVersion,Array.prototype.push.apply(this.invalidFileMessages,e.invalidFileMessages);var r=[];if((0,S.isEmpty)(this.databaseMappings))(0,S.forEach)(function(e){r.push(new _.default(e))},e.databaseMappings);else{var n=(0,S.differenceWith)(function(e,t){return(0,S.toLower)(e.fromDatabaseName)===(0,S.toLower)(t.fromDatabaseName)&&(0,S.toLower)(e.fromSchema)===(0,S.toLower)(t.fromSchema)&&(0,S.toLower)(e.serverType)===(0,S.toLower)(t.serverType)},e.databaseMappings,this.databaseMappings);(0,S.forEach)(function(e){r.push(new _.default(e))},n)}for(var i=0;ie+t-1}),(0,S.forEach)(function(e){e.content.index=e.content.index-t}))(a?this.dashboards:this.reports)}},{key:"toggleImportCategory",value:function(){this.importSourceCat=!this.importSourceCat}},{key:"toggleImportAccessRights",value:function(){this.importAccessRights=!this.importAccessRights}},{key:"toggleImportTheFilterValues",value:function(){this.importFilterValues=!this.importFilterValues}},{key:"fileIds",get:function(){var e=[],t=function(t){return t.reduce(function(e,t){var a=t.id;return e.push(a),e},e)};return this.reports&&t(this.reports),this.dashboards&&t(this.dashboards),e}}]),e}(),n=A(r.prototype,"batchId",[v.observable],{enumerable:!0,initializer:function(){return null}}),i=A(r.prototype,"importSourceCat",[v.observable],{enumerable:!0,initializer:function(){return!1}}),o=A(r.prototype,"importAccessRights",[v.observable],{enumerable:!0,initializer:function(){return!1}}),l=A(r.prototype,"importFilterValues",[v.observable],{enumerable:!0,initializer:function(){return!1}}),s=A(r.prototype,"reports",[v.observable],{enumerable:!0,initializer:function(){return[]}}),u=A(r.prototype,"dashboards",[v.observable],{enumerable:!0,initializer:function(){return[]}}),d=A(r.prototype,"tenantId",[v.observable],{enumerable:!0,initializer:function(){return null}}),c=A(r.prototype,"hasInvalidFile",[v.observable],{enumerable:!0,initializer:function(){return!1}}),p=A(r.prototype,"systemVersion",[v.observable],{enumerable:!0,initializer:function(){return null}}),f=A(r.prototype,"databaseMappings",[v.observable],{enumerable:!0,initializer:function(){return[]}}),A(r.prototype,"fileIds",[v.computed],(0,m.default)(r.prototype,"fileIds"),r.prototype),A(r.prototype,"create",[v.action],(0,m.default)(r.prototype,"create"),r.prototype),A(r.prototype,"appendContent",[v.action],(0,m.default)(r.prototype,"appendContent"),r.prototype),A(r.prototype,"updateReports",[v.action],(0,m.default)(r.prototype,"updateReports"),r.prototype),A(r.prototype,"updateDashboards",[v.action],(0,m.default)(r.prototype,"updateDashboards"),r.prototype),A(r.prototype,"removeCompletedFiles",[v.action],(0,m.default)(r.prototype,"removeCompletedFiles"),r.prototype),A(r.prototype,"updateDatabaseMappings",[v.action],(0,m.default)(r.prototype,"updateDatabaseMappings"),r.prototype),A(r.prototype,"updateSelectedToDatabaseName",[v.action],(0,m.default)(r.prototype,"updateSelectedToDatabaseName"),r.prototype),A(r.prototype,"arrangeIndex",[v.action],(0,m.default)(r.prototype,"arrangeIndex"),r.prototype),A(r.prototype,"toggleImportAccessRights",[v.action],(0,m.default)(r.prototype,"toggleImportAccessRights"),r.prototype),A(r.prototype,"toggleImportTheFilterValues",[v.action],(0,m.default)(r.prototype,"toggleImportTheFilterValues"),r.prototype),r);t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h=v(a(17)),m=v(a(23)),g=v(a(2)),E=v(a(3)),y=a(5);function v(e){return e&&e.__esModule?e:{default:e}}function T(e,t,a,r){a&&(0,h.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function _(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var S=(r=function(){function e(t){(0,g.default)(this,e),T(this,"categoryId",n,this),T(this,"categoryName",i,this),T(this,"id",o,this),T(this,"isGlobal",l,this),T(this,"name",s,this),T(this,"subCategoryId",u,this),T(this,"subCategoryName",d,this),T(this,"type",c,this),T(this,"index",p,this),T(this,"sourceId",f,this),this.originalCategoryName=null,this.originalSubCategoryName=null,this.categoryId=t.categoryId,this.originalCategoryName=t.categoryName,this.id=t.id,this.isGlobal=t.isGlobal,this.name=t.name,this.subCategoryId=t.subCategoryId,this.originalSubCategoryName=t.subCategoryName,this.type=t.type,this.index=t.index,this.sourceId=t.sourceId}return(0,E.default)(e,[{key:"updateName",value:function(e){this.name=e.target.value}},{key:"buildData",value:function(){return{categoryId:String.isGuidFormat(this.categoryId)?this.categoryId:null,categoryName:this.categoryName,id:this.id,isGlobal:this.isGlobal,name:this.name,subCategoryId:String.isGuidFormat(this.subCategoryId)?this.subCategoryId:null,subCategoryName:this.subCategoryName,type:this.type,index:this.index,sourceId:this.sourceId}}}]),e}(),n=_(r.prototype,"categoryId",[y.observable],{enumerable:!0,initializer:function(){return null}}),i=_(r.prototype,"categoryName",[y.observable],{enumerable:!0,initializer:function(){return null}}),o=_(r.prototype,"id",[y.observable],{enumerable:!0,initializer:function(){return null}}),l=_(r.prototype,"isGlobal",[y.observable],{enumerable:!0,initializer:function(){return!1}}),s=_(r.prototype,"name",[y.observable],{enumerable:!0,initializer:function(){return null}}),u=_(r.prototype,"subCategoryId",[y.observable],{enumerable:!0,initializer:function(){return null}}),d=_(r.prototype,"subCategoryName",[y.observable],{enumerable:!0,initializer:function(){return null}}),c=_(r.prototype,"type",[y.observable],{enumerable:!0,initializer:function(){return 0}}),p=_(r.prototype,"index",[y.observable],{enumerable:!0,initializer:function(){return 0}}),f=_(r.prototype,"sourceId",[y.observable],{enumerable:!0,initializer:function(){return""}}),_(r.prototype,"updateName",[y.action],(0,m.default)(r.prototype,"updateName"),r.prototype),r);t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h=v(a(17)),m=v(a(23)),g=v(a(2)),E=v(a(3)),y=a(5);function v(e){return e&&e.__esModule?e:{default:e}}function T(e,t,a,r){a&&(0,h.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function _(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var S=(r=function(){function e(t){(0,g.default)(this,e),T(this,"fromDatabaseName",n,this),T(this,"fromSchema",i,this),T(this,"serverType",o,this),T(this,"toDatabase",l,this),T(this,"toSchema",s,this),T(this,"selectedToDatabaseName",u,this),T(this,"selectedToDatabaseNameId",d,this),T(this,"toSchemas",c,this),T(this,"selectedToSchema",p,this),T(this,"selectedToSchemaId",f,this);var a=t.fromDatabaseName,r=t.fromSchema,h=t.serverType,m=t.toDatabase,E=t.toSchema;this.fromDatabaseName=a,this.fromSchema=r,this.serverType=h,this.toDatabase=m,this.toSchema=E,this.selectedToDatabaseName=null,this.selectedToDatabaseNameId=null,this.toSchemas=null,this.selectedToSchema=null,this.selectedToSchemaId=null}return(0,E.default)(e,[{key:"fromDatabaseNameLabel",get:function(){return"["+this.serverType+"] "+this.fromDatabaseName}}]),(0,E.default)(e,[{key:"setSelectedToDatabaseName",value:function(e,t){this.selectedToDatabaseNameId!=e&&(this.selectedToDatabaseNameId=e,this.selectedToDatabaseName=t,this.toDatabase=e,this.selectedToSchemaId=null,this.selectedToSchema=null)}},{key:"setSelectedToSchema",value:function(e,t){this.selectedToSchemaId=e,this.selectedToSchema=t,this.toSchema=e}}]),e}(),n=_(r.prototype,"fromDatabaseName",[y.observable],{enumerable:!0,initializer:function(){return null}}),i=_(r.prototype,"fromSchema",[y.observable],{enumerable:!0,initializer:function(){return null}}),o=_(r.prototype,"serverType",[y.observable],{enumerable:!0,initializer:function(){return null}}),l=_(r.prototype,"toDatabase",[y.observable],{enumerable:!0,initializer:function(){return null}}),s=_(r.prototype,"toSchema",[y.observable],{enumerable:!0,initializer:function(){return null}}),u=_(r.prototype,"selectedToDatabaseName",[y.observable],{enumerable:!0,initializer:function(){return null}}),d=_(r.prototype,"selectedToDatabaseNameId",[y.observable],{enumerable:!0,initializer:function(){return null}}),c=_(r.prototype,"toSchemas",[y.observable],{enumerable:!0,initializer:function(){return[]}}),p=_(r.prototype,"selectedToSchema",[y.observable],{enumerable:!0,initializer:function(){return null}}),f=_(r.prototype,"selectedToSchemaId",[y.observable],{enumerable:!0,initializer:function(){return null}}),_(r.prototype,"fromDatabaseNameLabel",[y.computed],(0,m.default)(r.prototype,"fromDatabaseNameLabel"),r.prototype),_(r.prototype,"setSelectedToDatabaseName",[y.action],(0,m.default)(r.prototype,"setSelectedToDatabaseName"),r.prototype),_(r.prototype,"setSelectedToSchema",[y.action],(0,m.default)(r.prototype,"setSelectedToSchema"),r.prototype),r);t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p=S(a(17)),f=S(a(23)),h=S(a(2)),m=S(a(3)),g=a(5),E=S(a(3178)),y=S(a(108)),v=S(a(44)),T=S(a(112)),_=a(1);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t,a,r){a&&(0,p.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function b(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var N=(r=function(){function e(){(0,h.default)(this,e),C(this,"loaded",n,this),C(this,"fileId",i,this),C(this,"name",o,this),C(this,"selectedDestinationTenantIDs",l,this),C(this,"importDataModelTenants",s,this),C(this,"allDestinationTenantList",u,this),C(this,"selectedTenant",d,this),C(this,"alertMessage",c,this),this.sourceConnections=[],this.pageInfo=new y.default(T.default.DESTINATION_SORT_DIR)}return(0,m.default)(e,[{key:"create",value:function(e,t,a){this.name=e.name,this.fileId=e.id,this.sourceConnections=t,this.allDestinationTenantList=a,this.loaded=!0}},{key:"updateSelectedTenantsForDestination",value:function(e){if(this.selectedDestinationTenantIDs=e,this.selectedDestinationTenantIDs){var t=(0,_.split)(",",this.selectedDestinationTenantIDs);if(t.length>this.importDataModelTenants.length){var a=(0,_.last)(t),r=(0,_.find)(function(e){return e.id===a},this.allDestinationTenantList),n=new E.default({tenantId:r.id,tenantName:r.name,sourceConnections:this.sourceConnections});this.importDataModelTenants.push(n)}else this.importDataModelTenants=(0,_.filter)(function(e){return(0,_.includes)(e.tenantId,t)},this.importDataModelTenants)}else this.importDataModelTenants=[]}},{key:"setSelectedTenant",value:function(e,t,a){this.resetAlertMessage(),t&&(e.destinationConnections=a),this.selectedTenant=e}},{key:"resetSelectedTenant",value:function(){this.resetAlertMessage(),this.selectedTenant=null}},{key:"resetAlertMessage",value:function(){this.alertMessage=v.default.EMPTY_MESSAGE}},{key:"showAlertMessage",value:function(e,t){var a={type:e,message:t};return this.alertMessage=a,null}},{key:"buildData",value:function(){var e=(0,_.isNil)(this.selectedTenant)?this.importDataModelTenants:[this.selectedTenant];return{dataModelFileId:this.fileId,destinationTenants:(0,_.map)(function(e){return e.buildData()},e)}}}]),e}(),n=b(r.prototype,"loaded",[g.observable],{enumerable:!0,initializer:function(){return!1}}),i=b(r.prototype,"fileId",[g.observable],{enumerable:!0,initializer:function(){return""}}),o=b(r.prototype,"name",[g.observable],{enumerable:!0,initializer:function(){return""}}),l=b(r.prototype,"selectedDestinationTenantIDs",[g.observable],{enumerable:!0,initializer:function(){return null}}),s=b(r.prototype,"importDataModelTenants",[g.observable],{enumerable:!0,initializer:function(){return[]}}),u=b(r.prototype,"allDestinationTenantList",[g.observable],{enumerable:!0,initializer:function(){return[]}}),d=b(r.prototype,"selectedTenant",[g.observable],{enumerable:!0,initializer:function(){return null}}),c=b(r.prototype,"alertMessage",[g.observable],{enumerable:!0,initializer:function(){return v.default.EMPTY_MESSAGE}}),b(r.prototype,"create",[g.action],(0,f.default)(r.prototype,"create"),r.prototype),b(r.prototype,"updateSelectedTenantsForDestination",[g.action],(0,f.default)(r.prototype,"updateSelectedTenantsForDestination"),r.prototype),b(r.prototype,"setSelectedTenant",[g.action],(0,f.default)(r.prototype,"setSelectedTenant"),r.prototype),b(r.prototype,"resetSelectedTenant",[g.action],(0,f.default)(r.prototype,"resetSelectedTenant"),r.prototype),b(r.prototype,"resetAlertMessage",[g.action],(0,f.default)(r.prototype,"resetAlertMessage"),r.prototype),b(r.prototype,"showAlertMessage",[g.action],(0,f.default)(r.prototype,"showAlertMessage"),r.prototype),b(r.prototype,"buildData",[g.action],(0,f.default)(r.prototype,"buildData"),r.prototype),r);t.default=N,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(5),r=a(63),n=a(3179),i=a(279),o=a(1),l=o.filter,s=o.isEmpty,u=o.map;function d(e){var a={tenantName:"",tenantId:null,status:0,mappings:[],sourceConnections:[],destinationConnections:[],validatedSourceConnections:[],validatedDestinationConnections:[],querySourceTree:new i([],null,!0),destinationQuerySourceTree:new i([],null,!0)};t.extendObservable(r(this),a),e&&this.poppulateData(e)}d.prototype.poppulateData=t.action(function(e){this.tenantName=e.tenantName||"",this.tenantId=e.tenantId||null,this.status=e.status||0,this.sourceConnections=e.sourceConnections}),d.prototype.poppulateDataAfterValidate=t.action(function(e){this.status=e.status||0,this.validatedDestinationConnections=e.destinationConnections,this.validatedSourceConnections=e.sourceConnections,this.destinationQuerySourceTree.setQuerySources(e.destinationConnections),this.querySourceTree.setQuerySources(e.sourceConnections)}),d.prototype.addMapping=t.action(function(){this.mappings.push(new n)}),d.prototype.removeEmptyMappings=t.action(function(){this.mappings=l(function(e){return!(s(e.fromConnectionName)||s(e.fromSchemaName)||s(e.toConnectionName)||s(e.toSchemaName))},this.mappings)}),d.prototype.buildData=t.action(function(){return this.removeEmptyMappings(),{name:this.tenantName,mappings:u(function(e){return{fromConnectionName:e.fromConnectionName,fromSchemaName:e.fromSchemaName,toConnectionName:e.toConnectionName,toSchemaName:e.toSchemaName}},this.mappings)}}),e.exports=d}()},function(e,t,a){"use strict";!function(){var t=a(1).uniqueId,r=a(5),n=a(63);function i(e){var a={uniqueId:t,fromConnectionName:"",fromSchemaName:"",toConnectionName:"",toSchemaName:""};r.extendObservable(n(this),a),e&&this.readImportDataModelMapping(e)}i.prototype.readImportDataModelMapping=r.action(function(e){this.fromConnectionName=e.fromConnectionName||"",this.fromSchemaName=e.fromSchemaName||"",this.toConnectionName=e.toConnectionName||"",this.toSchemaName=e.toSchemaName||""}),e.exports=i}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=a(20),i=_(a(6)),o=_(a(2)),l=_(a(3)),s=_(a(7)),u=_(a(8)),d=a(0),c=_(d),p=_(a(10)),f=_(a(4)),h=_(a(76)),m=_(a(1373)),g=a(173),E=_(a(1341)),y=_(a(784)),v=a(1),T=_(a(16));function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,f.default)()(r=function(e){function t(){var e,a,r,l;(0,o.default)(this,t);for(var u=arguments.length,d=Array(u),f=0;f0?t=f(l.default.DETECTED_CHANGE_LEVEL.ADDED):c(e,l.default.DETECTED_CHANGE_LEVEL.NONE).length>0&&(t=f(l.default.DETECTED_CHANGE_LEVEL.NONE)),{icon:t}},n=function(e){var t=(0,d.get)("name",e.parentNode),a=!(0,d.isEmpty)(e.childNodes),r=(0,o.default)({"u-colorBlue":g(e)});return{icon:a||[p.STORE_PROCEDURE,p.FUNCTION].indexOf(t)>-1?f(e.change):null,className:r}},i=function(e){return{icon:!(0,d.isEmpty)(e.childNodes)&&f(e.change)}},c=function(e,t){return(0,d.filter)(function(e){return e.change>=t},e.childNodes)},f=function(e){return e>l.default.DETECTED_CHANGE_LEVEL.NONE?r.default.createElement("span",{className:"icon-attention warning-color",title:l.default.INCONSISTENT_DATA_MODEL}):e===l.default.DETECTED_CHANGE_LEVEL.NONE?r.default.createElement("span",{className:"icon-ok-circled success-color",title:l.default.CONSISTENT_DATA_MODEL}):null},h=function(e){var t=m(e.change,l.default.DETECTED_CHANGE_LEVEL.ADDED),a=m(e.change,l.default.DETECTED_CHANGE_LEVEL.MODIFIED),n=(0,o.default)({u_textLineThrough:t,"icon-move-data warning-color":a,"u-colorBlue":g(e)}),i=(0,d.cond)([[(0,d.matches)({isNew:!0}),(0,d.constant)(l.default.CONSISTENT_DATA_MODEL)],[(0,d.matches)({isAdded:!0}),(0,d.constant)(l.default.INCONSISTENT_DATA_MODEL)],[(0,d.matches)({isEdited:!0}),(0,d.constant)(l.default.CHANGED_DATA_TYPE)]])({isAdded:t,isEdited:a});return t?{className:n}:{className:(0,o.default)({"u-colorBlue":g(e)}),icon:r.default.createElement("span",{className:n,title:i})}},m=function(e,t){return e===t},g=function(e){return!e.checked&&((0,d.get)("parentNode.initData.belongToCopiedReport",e)||(0,d.get)("parentNode.belongToCopiedReport",e)||(0,d.get)("initData.belongToCopiedReport",e)||(0,d.get)("belongToCopiedReport",e))},E=e.node,y=e.toggleCollapse,v=e.filter,T=(0,o.default)("checkbox",{"disabled-elm":t(E)}),_=(0,o.default)({hidden:!e.showCheckbox}),S=E.childCount(function(t){return(0,d.isFunction)(e.showSelected)?e.showSelected(t):!e.showSelected||t.dataSource.checked}),C=e.showIcon?function(e){var t=!(0,d.isEmpty)(e.childNodes),r=[p.STORE_PROCEDURE,p.FUNCTION,p.TABLE,p.VIEW].indexOf((0,d.get)("name",e.parentNode))>-1;return e.isTypeGroup()?t?a(e):null:r?n(e):t?i(e):h(e)}(E):{};return r.default.createElement("div",{className:T,key:E.id},r.default.createElement(u.default,{type:"checkbox",checked:E.dataSource.checked,onChange:function(e){},className:_}),r.default.createElement("label",{className:"u_paddingLeft u_textTruncate u_alignBottom",key:E.id,disabled:t(E)?"disabled":null},r.default.createElement(s.default,{highlight:v,text:E.name,className:(0,d.get)("className",C),style:(0,d.get)("style",C),tooltip:E.name}),function(e,t){return e.isTypeGroup()&&e.childNodes?r.default.createElement("span",null," (",t,") "):null}(E,S),(0,d.get)("icon",C)),!t(E)&&r.default.createElement("i",{className:"icon-toggle-triangle",onClick:function(){y()}}))};f.propTypes={node:n.default.object.isRequired,filter:n.default.string,showCheckbox:n.default.bool,showIcon:n.default.bool,showSelected:n.default.oneOfType([n.default.func,n.default.bool])},t.default=(0,i.default)()(f),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u;r=a(0),n=a(4),i=a(96),o=a(221),l=a(30),s=a(62),u=r.createClass({displayName:"AdvancedImportToolbar",render:function(){var e=this.props.localization,t=this.props.alertMessage;return r.createElement("div",{className:"izenda-Wrapper-header"},r.createElement(i,null),r.createElement(s,{type:t.type,className:"pull-left"},t.message),r.createElement("div",{className:"izenda-ActionBarRight"},r.createElement(o,null,r.createElement(l,{label:e.getText("COMMON_LABEL_VALIDATE"),onClick:this.props.onValidate,className:"btn-success"})),r.createElement(l,{className:"btn-setting-default",label:e.getText("COMMON_LABEL_CLOSE"),onClick:this.props.onClose})))}}),e.exports=n()(u)},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(4),i=a(32),o=a(15),l=r.createClass({displayName:"DataModelOverwritePopup",propTypes:{tree:r.PropTypes.object.isRequired,treeComponent:r.PropTypes.func.isRequired,title:r.PropTypes.string.isRequired,importDataModel:r.PropTypes.func.isRequired},render:function(){var e=this.props,t=e.localization;return r.createElement(i,{visible:!0,type:"none",onClosing:this.onClosing,autoClose:!1},r.createElement(i.Header,{title:e.title}),r.createElement(i.Body,null,r.createElement(o,null,r.createElement(o.Row,null,r.createElement("div",{className:"confirmation-info"},r.createElement("p",null,t.getText("IMPORT_DATAMODEL_MESSAGE_OVERWRITE_NOTIFICATION"))))),r.createElement(o,null,r.createElement(o.Row,{className:"izenda-runCopyTree u_borderAll"},this.renderTree()))),r.createElement(i.Footer,null,r.createElement(i.ConfirmationButton,{type:"accept"},t.getText("COMMON_LABEL_OK")),r.createElement(i.ConfirmationButton,{type:"cancel"},t.getText("COMMON_LABEL_CANCEL"))))},renderTree:function(){var e=this.props;return r.createElement(e.treeComponent,{tree:e.tree,leafKey:e.leafKey,showCheckbox:!1})},onClosing:function(e,t){var a=this.props,r=a.importDataModel;return"accept"===t?(r(),a.onAccept()):"cancel"===t?a.onReject():void 0}}),e.exports=n()(l)},function(e,t,a){"use strict";!function(){var t=a(0),r=a(4),n=a(28),i=a(169),o=a(26),l=a(240),s=a(3196),u=a(1).isEmpty;function d(e,a,r){var n=function(e,a){return function(r){return r.dataSource.group&&u(r.dataSource.querySources)?null:t.createElement(s,{key:r.id,node:r,filter:e.filter.text,showCheckbox:a.showCheckbox,showIcon:a.showIcon})}}(e,r);return function(e,t){return!(u(e.childNodes)&&!e.isTypeGroup()||!(e.isFieldNode&&t||!e.isFieldNode))}(a,r.showFieldNode)?t.createElement(l,{className:"panel-group collapsible-list-items datasource",key:a.id,autoCollapse:!1,defaultExpand:!0},t.createElement(l.Item,{expanded:!0,key:a.id},t.createElement(l.ItemHeader,{className:"panel-heading"},n(a)),t.createElement(l.ItemBody,{className:"panel-body"},t.createElement(i,{className:"list-group",key:a.id},a.childNodes.map(function(t){return r.showSelected&&!t.checked?a.isFieldNode?n(t):null:d(e,t,r)}))))):n(a)}var c=t.createClass({displayName:"SourceTree",propTypes:{tree:t.PropTypes.object.isRequired,showSelected:t.PropTypes.bool,showCheckbox:t.PropTypes.bool,showFieldNode:t.PropTypes.bool,showIcon:t.PropTypes.bool},render:function(){var e=this.props,a=e.tree;return t.createElement(n,{className:"workspace-tree"},t.createElement("div",{className:"workspace-tree-wraper"},t.createElement(o,null,a.root.map(function(t){return t.childNodes.map(function(t){return e.showSelected&&!t.checked?null:d(a,t,e)})}))))}});e.exports=r()(c)}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),a(35),n=a(5),a(9).observer,i=a(4),o=a(10),l=a(69),s=a(19),u=a(24),d=r.createClass({displayName:"SourceTreeItem",propTypes:{node:r.PropTypes.object.isRequired,filter:r.PropTypes.string,showCheckbox:r.PropTypes.bool,showIcon:r.PropTypes.bool},render:function(){var e=this.props.node,t=this.props.filter,a=this.props.toggleCollapse,n=o("checkbox",{"disabled-elm":c(e)}),i=o("u_noMarginAll",{hidden:!this.props.showCheckbox}),d=e.childCount();return r.createElement("div",{className:n,key:e.id},r.createElement(s,{type:"checkbox",checked:e.dataSource.checked,onChange:u.notifyChange(this.onCheck,u.CHECKBOX),className:i}),r.createElement("label",{className:"tree-item",key:e.id,disabled:c(e)?"disabled":null},r.createElement(l,{highlight:t,text:e.name})),c(e)?null:r.createElement("i",{className:"icon-toggle-triangle",onClick:function(){a()}}));function c(e){return e.isTypeGroup()&&0===d}},onCheck:n.action(function(e){this.props.node.setChecked(e)})}),e.exports=i()(d)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=E(a(6)),l=E(a(2)),s=E(a(3)),u=E(a(7)),d=E(a(8)),c=a(0),p=E(c),f=E(a(13)),h=E(a(3198)),m=E(a(3200)),g=E(a(3202));function E(e){return e&&e.__esModule?e:{default:e}}var y=(0,E(a(4)).default)(g.default)((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentWillUnmount",value:function(){this.props.disposeChangeTenant()}},{key:"render",value:function(){var e=this.props,t=e.store,a=e.loadHistories;return p.default.createElement("div",{className:"izenda-Import izenda-TableLayout"},p.default.createElement("div",{className:"izenda-TableLayout-Cell"},p.default.createElement("section",{className:"izenda-Wrapper"},p.default.createElement(h.default,{store:t,loadHistories:a}),p.default.createElement(m.default,{store:t,loadHistories:a}))))}}]),t}(c.Component),n.propTypes={store:f.default.object,loadHistories:f.default.func,disposeChangeTenant:f.default.func},r=i))||r;t.default=y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=E(a(6)),l=E(a(2)),s=E(a(3)),u=E(a(7)),d=E(a(8)),c=a(0),p=E(c),f=E(a(30)),h=E(a(96)),m=E(a(13)),g=E(a(3199));function E(e){return e&&e.__esModule?e:{default:e}}var y=(0,E(a(4)).default)(g.default)((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.localization,a=e.store.model;return p.default.createElement("section",{className:"izenda-Wrapper-header"},p.default.createElement(h.default,{className:"u_marginRightInnerSpace"}),p.default.createElement("div",{className:"izenda-ActionBarRight"},p.default.createElement(f.default,{disabled:a.isNoChecked,onClick:this.props.handleDelete,label:t.getText("COMMON_LABEL_DELETE")})))}}]),t}(c.Component),n.propTypes={store:m.default.object,loadHistories:m.default.func},r=i))||r;t.default=y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=a(11),i=a(1);var o=(0,n.withHandlers)({handleDelete:(0,i.curry)(function(e,t){var a=e.store,n=e.store,i=n.model,o=n.model,l=o.historyFiles,s=o.pageIndex;e.confirmFn("Information",{description:e.localization.getText("IMPORT_DELETE_SELECTED_MESSAGE"),type:"warning",showCloseIndicator:!1}).then(function(){a.deleteHistories().then(function(t){var a=t.success;return a&&(l.length===i.getSelectedIds().length&&s>1&&i.updatePageIndex(s-1),e.loadHistories()),(0,r.resolve)(a)})})})});t.default=o,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=b(a(14)),l=b(a(6)),s=b(a(2)),u=b(a(3)),d=b(a(7)),c=b(a(8)),p=a(0),f=b(p),h=a(46),m=b(a(13)),g=b(a(19)),E=b(a(116)),y=a(1375),v=(a(5),a(1)),T=b(a(3201)),_=b(a(4)),S=b(a(16)),C=b(a(92));function b(e){return e&&e.__esModule?e:{default:e}}var N=y.TableDefinition.ImportHistorySourceType,A=(0,_.default)(T.default,C.default)((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u0?this.props.height-y.DEFAULT_REST_HEIGHT:t-y.DEFAULT_REST_HEIGHT;return f.default.createElement("section",{className:"izenda-Wrapper-content",ref:this.setDom},f.default.createElement("div",{className:"u_fullHeight"},f.default.createElement(h.Table,{maxHeight:l,minHeight:l,dataSource:a,onSortChange:this.props.onSortChange,sortInfo:r,staticRender:!0},this.renderColumns()),f.default.createElement(E.default,{onChange:this.props.goToPage.bind(this.props),onDropdownChange:this.props.onPageSizeChange.bind(this.props),totalRecords:n,pageSize:i,pageIndex:o})))}}]),t}(p.Component),n.propTypes={store:m.default.object,loadHistories:m.default.func},r=i))||r;t.default=A,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=a(11),i=a(1);var o=(0,n.withHandlers)({handleCheckAll:(0,i.curry)(function(e,t){var a=e.store.model;(0,i.isEmpty)(a.historyFiles)||a.updateCheckAll()}),handleCheckItem:(0,i.curry)(function(e,t){t.updateSelected()}),handleDeleteItem:(0,i.curry)(function(e,t){var a=e.store,n=e.store,i=n.model,o=n.model,l=o.historyFiles,s=o.pageIndex,u=t.fileName;e.confirmFn("Information",{description:String.format(e.localization.getText("IMPORT_DELETE_MESSAGE"),u),type:"warning",showCloseIndicator:!1}).then(function(){a.deleteHistories(t).then(function(t){return t&&(1===l.length&&s>1&&i.updatePageIndex(s-1),e.loadHistories()),(0,r.resolve)(t)})})}),goToPage:(0,i.curry)(function(e,t){e.store.model.updatePageIndex(t),e.loadHistories()}),onPageSizeChange:(0,i.curry)(function(e,t){e.store.model.updatePageSize(t),e.loadHistories()}),onSortChange:(0,i.curry)(function(e,t,a){e.store.model.setSortInfo(t,a),e.loadHistories()})});t.default=o,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(11),i=a(5),o=a(3203),l=(r=o)&&r.__esModule?r:{default:r};var s=(0,n.withProps)(function(e){var t=new l.default,a=e.loader,r=function(){a.startLoading(),t.loadData().finally(a.endLoading.bind(a))},n=(0,i.reaction)(function(){return t.model.resetPageInfo(),t.tenantId},r);return{store:t,loadHistories:r,disposeChangeTenant:n}});t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l=y(a(17)),s=y(a(23)),u=a(20),d=y(a(2)),c=y(a(3)),p=a(5),f=y(a(16)),h=a(1),m=y(a(53)),g=y(a(3204)),E=y(a(797));function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t,a,r){a&&(0,l.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function T(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var _=(0,m.default)((n=function(){function e(){(0,d.default)(this,e),v(this,"model",i,this),v(this,"response",o,this),this.model=new g.default}return(0,c.default)(e,[{key:"tenantId",get:function(){return f.default.getTenantId()}}]),(0,c.default)(e,[{key:"loadData",value:function(){var e=this,t=this.model.getRequestPage(this.tenantId);return E.default.loadImportHistories(t).then(function(t){return e.response=t,e.populate(e.response),(0,u.resolve)(t)})}},{key:"deleteHistories",value:function(e){var t=[];return this.model.deletedId="",(0,h.isNil)(e)?t=this.model.getSelectedIds():(t.push(e.id),this.model.deletedId=e.id),E.default.deleteHistories(t)}},{key:"populate",value:function(e){this.model.populate(e)}}]),e}(),i=T(n.prototype,"model",[p.observable],{enumerable:!0,initializer:function(){return null}}),o=T(n.prototype,"response",[p.observable],{enumerable:!0,initializer:function(){return{}}}),T(n.prototype,"tenantId",[p.computed],(0,s.default)(n.prototype,"tenantId"),n.prototype),T(n.prototype,"loadData",[p.action],(0,s.default)(n.prototype,"loadData"),n.prototype),T(n.prototype,"deleteHistories",[p.action],(0,s.default)(n.prototype,"deleteHistories"),n.prototype),T(n.prototype,"populate",[p.action],(0,s.default)(n.prototype,"populate"),n.prototype),r=n))||r;t.default=_,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f=S(a(17)),h=S(a(23)),m=S(a(2)),g=S(a(3)),E=a(5),y=a(1),v=S(a(3205)),T=a(1375),_=a(34);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t,a,r){a&&(0,f.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function b(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var N=(r=function(){function e(){(0,m.default)(this,e),C(this,"historyFiles",n,this),C(this,"deletedId",i,this),C(this,"tableHeight",o,this),C(this,"pageIndex",l,this),C(this,"total",s,this),C(this,"pageSize",u,this),C(this,"sortOrders",d,this),C(this,"isLastPage",c,this),C(this,"sortInfo",p,this)}return(0,g.default)(e,[{key:"setTableHeight",value:function(e){this.tableHeight=e}},{key:"findSuitablePageIndex",value:function(){var e=(this.tableHeight-T.DEFAULT_REST_HEIGHT)/T.DEFAULT_ROW_HEIGHT;return(0,y.find)(function(t){return e<=t},_.PAGING_SIZE_OPTIONS)||(0,y.last)(_.PAGING_SIZE_OPTIONS)}},{key:"resetPageInfo",value:function(){this.pageIndex=1,this.total=0,this.pageSize=this.findSuitablePageIndex(),this.sortInfo={},this.sortOrders=[],this.isLastPage=!0,this.deletedId="",this.resetHistoryFiles()}},{key:"resetHistoryFiles",value:function(){this.historyFiles=[]}},{key:"populate",value:function(e){var t=this,a=e.result,r=e.total,n=e.isLastPage;this.total=r,this.isLastPage=n;var i=(0,y.isEmpty)(this.deletedId)?[]:(0,y.filter)(function(e){return e!=t.deletedId},this.getSelectedIds());this.historyFiles=(0,y.map)(function(e){return new v.default(e,(0,y.includes)(e.id,i))},a),this.deletedId=""}},{key:"updateCheckAll",value:function(){var e=!this.isAllChecked;(0,y.forEach)(function(t){t.updateSelected(e)},this.historyFiles)}},{key:"getRequestPage",value:function(e){return{tenantId:e,pageIndex:this.pageIndex,pageSize:this.pageSize,sortOrders:this.sortOrders}}},{key:"updatePageIndex",value:function(e){this.pageIndex=e}},{key:"updatePageSize",value:function(e){this.pageSize=e,this.pageIndex=1}},{key:"getSelectedIds",value:function(){var e=[];return(0,y.forEach)(function(t){t.isSelected&&e.push(t.id)},this.historyFiles),e}},{key:"setSortInfo",value:function(e,t){this.sortInfo={},this.sortOrders=[],(0,y.isEmpty)(t)||(this.sortInfo[e]=t,this.sortOrders.push({key:e,descending:"DESC"===t}))}},{key:"isAllChecked",get:function(){return!(0,y.isEmpty)(this.historyFiles)&&(0,y.every)({isSelected:!0},this.historyFiles)}},{key:"isNoChecked",get:function(){return(0,y.isEmpty)(this.historyFiles)||(0,y.every)({isSelected:!1},this.historyFiles)}},{key:"isEmptyHistories",get:function(){return(0,y.isEmpty)(this.historyFiles)}}]),e}(),n=b(r.prototype,"historyFiles",[E.observable],{enumerable:!0,initializer:function(){return[]}}),i=b(r.prototype,"deletedId",[E.observable],{enumerable:!0,initializer:function(){return""}}),o=b(r.prototype,"tableHeight",[E.observable],{enumerable:!0,initializer:function(){return 0}}),l=b(r.prototype,"pageIndex",[E.observable],{enumerable:!0,initializer:function(){return 1}}),s=b(r.prototype,"total",[E.observable],{enumerable:!0,initializer:function(){return 0}}),u=b(r.prototype,"pageSize",[E.observable],{enumerable:!0,initializer:function(){return 10}}),d=b(r.prototype,"sortOrders",[E.observable],{enumerable:!0,initializer:function(){return[]}}),c=b(r.prototype,"isLastPage",[E.observable],{enumerable:!0,initializer:function(){return!0}}),p=b(r.prototype,"sortInfo",[E.observable],{enumerable:!0,initializer:function(){return{}}}),b(r.prototype,"setTableHeight",[E.action],(0,h.default)(r.prototype,"setTableHeight"),r.prototype),b(r.prototype,"findSuitablePageIndex",[E.action],(0,h.default)(r.prototype,"findSuitablePageIndex"),r.prototype),b(r.prototype,"isAllChecked",[E.computed],(0,h.default)(r.prototype,"isAllChecked"),r.prototype),b(r.prototype,"isNoChecked",[E.computed],(0,h.default)(r.prototype,"isNoChecked"),r.prototype),b(r.prototype,"resetPageInfo",[E.action],(0,h.default)(r.prototype,"resetPageInfo"),r.prototype),b(r.prototype,"isEmptyHistories",[E.computed],(0,h.default)(r.prototype,"isEmptyHistories"),r.prototype),b(r.prototype,"resetHistoryFiles",[E.action],(0,h.default)(r.prototype,"resetHistoryFiles"),r.prototype),b(r.prototype,"populate",[E.action],(0,h.default)(r.prototype,"populate"),r.prototype),b(r.prototype,"updateCheckAll",[E.action],(0,h.default)(r.prototype,"updateCheckAll"),r.prototype),b(r.prototype,"getRequestPage",[E.action],(0,h.default)(r.prototype,"getRequestPage"),r.prototype),b(r.prototype,"updatePageIndex",[E.action],(0,h.default)(r.prototype,"updatePageIndex"),r.prototype),b(r.prototype,"updatePageSize",[E.action],(0,h.default)(r.prototype,"updatePageSize"),r.prototype),b(r.prototype,"getSelectedIds",[E.action],(0,h.default)(r.prototype,"getSelectedIds"),r.prototype),b(r.prototype,"setSortInfo",[E.action],(0,h.default)(r.prototype,"setSortInfo"),r.prototype),r);t.default=N,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b=P(a(17)),N=P(a(23)),A=P(a(2)),R=P(a(3)),O=a(5),I=P(a(16)),D=P(a(105));function P(e){return e&&e.__esModule?e:{default:e}}function L(e,t,a,r){a&&(0,b.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function M(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var F=(r=function(){function e(t,a){(0,A.default)(this,e),L(this,"isSelected",n,this),L(this,"id",i,this),L(this,"fileKey",o,this),L(this,"fileName",l,this),L(this,"type",s,this),L(this,"typeName",u,this),L(this,"modified",d,this),L(this,"modifiedBy",c,this),L(this,"status",p,this),L(this,"statusName",f,this),L(this,"errorCode",h,this),L(this,"errorMessage",m,this),L(this,"objectId",g,this),L(this,"objectName",E,this),L(this,"saveInto",y,this),L(this,"categoryId",v,this),L(this,"categoryName",T,this),L(this,"subCategoryId",_,this),L(this,"subCategoryName",S,this),L(this,"subCategory",C,this);var r=t.id,b=t.fileKey,N=t.fileName,R=t.type,O=t.typeName,I=t.modified,D=t.modifiedBy,P=t.status,M=t.statusName,F=t.errorCode,k=t.errorMessage,x=t.objectId,w=t.objectName,B=t.saveInto,U=t.categoryId,z=t.categoryName,V=t.subCategoryId,G=t.subCategoryName;this.id=r,this.fileKey=b,this.fileName=N,this.type=R,this.typeName=O,this.modified=I,this.modifiedBy=D,this.status=P,this.statusName=M,this.errorCode=F,this.errorMessage=k,this.objectId=x,this.objectName=w,this.saveInto=B,this.categoryId=U,this.categoryName=z,this.subCategoryId=V,this.subCategoryName=G,a&&(this.isSelected=!0)}return(0,R.default)(e,[{key:"updateSelected",value:function(e){this.isSelected=void 0===e?!this.isSelected:e}},{key:"dateLabel",get:function(){return(0,D.default)(I.default.currentUser.dateFormat,this.modified)}}]),e}(),n=M(r.prototype,"isSelected",[O.observable],{enumerable:!0,initializer:function(){return!1}}),i=M(r.prototype,"id",[O.observable],{enumerable:!0,initializer:function(){return null}}),o=M(r.prototype,"fileKey",[O.observable],{enumerable:!0,initializer:function(){return null}}),l=M(r.prototype,"fileName",[O.observable],{enumerable:!0,initializer:function(){return null}}),s=M(r.prototype,"type",[O.observable],{enumerable:!0,initializer:function(){return null}}),u=M(r.prototype,"typeName",[O.observable],{enumerable:!0,initializer:function(){return null}}),d=M(r.prototype,"modified",[O.observable],{enumerable:!0,initializer:function(){return null}}),c=M(r.prototype,"modifiedBy",[O.observable],{enumerable:!0,initializer:function(){return null}}),p=M(r.prototype,"status",[O.observable],{enumerable:!0,initializer:function(){return 0}}),f=M(r.prototype,"statusName",[O.observable],{enumerable:!0,initializer:function(){return null}}),h=M(r.prototype,"errorCode",[O.observable],{enumerable:!0,initializer:function(){return 0}}),m=M(r.prototype,"errorMessage",[O.observable],{enumerable:!0,initializer:function(){return null}}),g=M(r.prototype,"objectId",[O.observable],{enumerable:!0,initializer:function(){return null}}),E=M(r.prototype,"objectName",[O.observable],{enumerable:!0,initializer:function(){return null}}),y=M(r.prototype,"saveInto",[O.observable],{enumerable:!0,initializer:function(){return null}}),v=M(r.prototype,"categoryId",[O.observable],{enumerable:!0,initializer:function(){return null}}),T=M(r.prototype,"categoryName",[O.observable],{enumerable:!0,initializer:function(){return null}}),_=M(r.prototype,"subCategoryId",[O.observable],{enumerable:!0,initializer:function(){return null}}),S=M(r.prototype,"subCategoryName",[O.observable],{enumerable:!0,initializer:function(){return null}}),C=M(r.prototype,"subCategory",[O.observable],{enumerable:!0,initializer:function(){return null}}),M(r.prototype,"updateSelected",[O.action],(0,N.default)(r.prototype,"updateSelected"),r.prototype),M(r.prototype,"dateLabel",[O.computed],(0,N.default)(r.prototype,"dateLabel"),r.prototype),r);t.default=F,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=N(a(6)),l=N(a(2)),s=N(a(3)),u=N(a(7)),d=N(a(8)),c=N(a(171)),p=a(0),f=N(p),h=N(a(13)),m=N(a(4)),g=N(a(30)),E=N(a(799)),y=N(a(221)),v=N(a(3207)),T=N(a(10)),_=a(40),S=a(49),C=N(a(800)),b=a(1);N(a(16));function N(e){return e&&e.__esModule?e:{default:e}}var A=(0,c.default)()(g.default),R=(0,c.default)()(g.default),O=(0,c.default)()(function(e){return f.default.createElement(C.default.ExportReportButton,e)}),I=(0,c.default)()(function(e){return f.default.createElement(C.default.PrintReportButton,e)});A.displayName="EmailButton",R.displayName="AuthorizationButton",O.displayName="ExportReportBtn";var D=(0,m.default)(v.default)((i=n=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e)),r=e.fieldStore.reportStore.model.displayMode;return a.toggleSubscription=r.toggleSubscription.bind(r),a.exposeIntegrationMethod(),a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.props.registerExposeMethod===e.registerExposeMethod&&this.props.updateResults===e.updateResults||(this.removeIntegrationMethod(),this.exposeIntegrationMethod())}},{key:"componentWillUnmount",value:function(){this.removeIntegrationMethod()}},{key:"componentDidMount",value:function(){this.props.fieldStore.reportStore.alertDetails.reset()}},{key:"removeIntegrationMethod",value:function(){(0,b.invokeArgs)("unregisterExposeMethod",[["updateResults"]],this.props)}},{key:"exposeIntegrationMethod",value:function(){var e={updateResults:this.props.updateResults.bind(null,null)};(0,b.invokeArgs)("registerExposeMethod",[e],this.props)}},{key:"checkPermissionOfSave",value:function(){var e=this.props,t=e.authorization,a=e.authorizationConstants.PERMISSION_KEY;return t.checkPrivileges([a.ReportsCanCreateNewReportValue])}},{key:"render",value:function(){var e=this.props,t=e.localization,a=e.store,r=e.fieldStore,n=e.authorization,i=e.editMode,o=e.reportId,l=e.designerStore,s=e.boardDetail,u=e.location,d=e.reportSubscriptionStore,c=r.reportStore,p=r.reportStore.model,h=p.displayMode,m=p.accessPriority,v=p.active,b=a.reportName,N=a.reportType,D=a.selectedCategoryId,P=!i,L=this.checkPermissionOfSave(),M=n.checkLicense(S.LICENSE_KEY.Scheduling),F=n.checkLicense(S.LICENSE_KEY.Exporting),k=(0,T.default)("btn-report-default",{"izenda-Button_active":h.isSubscriptionMode}),x=c.alertDetails,w=x.message,B=x.alertType,U=x.key,z=x.success,V=x.errors,G=x.showType,H=x.type;return f.default.createElement("div",{className:"izenda-Wrapper-header"},f.default.createElement("div",{className:"izenda-Alert-container"},f.default.createElement(E.default,{message:w,alertType:B,alertKey:U,success:z,errors:V,type:H,showType:G})),f.default.createElement("div",{className:"izenda-ActionBarRight"},f.default.createElement(y.default,null,e.checkDisplayShowHideHeaderFooter(r)&&f.default.createElement(g.default,{className:"btn-report-default",onClick:e.onDisplayShowHideHeaderFooter,label:e.getShowHideHeaderFooterLabel(l,t)}),(m===_.ACCESS_RIGHT.FullAccess||m===_.ACCESS_RIGHT.QuickEdit||m===_.ACCESS_RIGHT.SaveAs)&&v&&!P&&f.default.createElement(C.default.ViewReportButton,{reportId:o,disabled:P,store:a,location:u}),M&&f.default.createElement(R,{label:t.getText("COMMON_LABEL_SUBSCRIBE"),className:k,onClick:this.toggleSubscription,keys:[_.PERMISSION_KEY.ReportsActionsSubscribe]}),F&&f.default.createElement(I,{name:b,store:a,print:a.printReport,designerStore:l,id:o,disabled:h.doesDisablePrintBtn,keys:[_.PERMISSION_KEY.ReportsActionsPrint]}),f.default.createElement(A,{className:"btn-report-default",label:t.getText("COMMON_LABEL_EMAIL"),onClick:e.openEmailPopup,disabled:h.doesDisableEmailBtn,keys:[_.PERMISSION_KEY.ReportsActionsEmail]}),F&&f.default.createElement(O,{name:b,store:a,export:a.exportReport,designerStore:l,id:o,disabled:h.doesDisableExportBtn,keys:[_.PERMISSION_KEY.ReportsActionsExporting]}),P&&e.isCacheEnable&&f.default.createElement(C.default.RefreshDataButton,{updateResults:e.updateResults,disabled:h.doesDisableUpdateResultBtn}),f.default.createElement(C.default.EditReportButton,{store:a,reportId:o,reportType:N,categoryId:D,viewMode:P,boardDetail:s,confirmFn:e.confirmFn,onSave:e.onSave,disabled:h.doesDisableEditBtn,location:u,fieldStore:r,accessPriority:m,active:v}),L&&(m===_.ACCESS_RIGHT.FullAccess||m===_.ACCESS_RIGHT.QuickEdit||m===_.ACCESS_RIGHT.SaveAs)&&f.default.createElement(C.default.SaveReportButton,{reportStore:a,fieldStore:r,subscribedInstancesStore:d,onSave:e.onSave,viewMode:P,confirmFn:e.confirmFn,accessPriority:m,boardDetail:s,active:v,keepDisplay:!0}),m!==_.ACCESS_RIGHT.Locked&&f.default.createElement(C.default.CancelViewReportButton,{confirmFn:e.confirmFn,checkDirty:e.checkDirty,cancelReport:e.cancelReport,keepDisplay:!0}),!e.hideIntegratedButton&&f.default.createElement(C.default.CloseViewReportButton,{reportId:o,reportType:N,categoryId:D,fieldStore:r,location:u,store:a}))))}}]),t}(p.Component),n.propTypes={store:h.default.object.isRequired,reportId:h.default.string.isRequired},r=i))||r;t.default=D,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=a(11),i=v(a(553)),o=v(a(185)),l=a(127),s=v(a(18)),u=v(a(44)),d=v(a(55)),c=v(a(12)),p=a(767),f=a(1),h=v(a(219)),m=v(a(16)),g=a(40),E=v(a(152)),y=a(33);function v(e){return e&&e.__esModule?e:{default:e}}var T=h.default.checkDisplayByKey("hideToolbar"),_=function(e,t){var a=e.updateReportParts,r=e.fieldStore;return(0,f.invoke)("reportFilters.resetUpdateResult",r),r.setIgnoreCache(),a(!0)},S=function(e){var t=e.fieldStore,a=e.loader,n=e.validation,i=e.reportSubscriptionStore,o=e.location.query.inheritFilter,l=t.reportStore;return l.model.setIgnoreCheckChange(),a.startLoading(),_(e).then(function(a){return a&&(0,r.join)(l.saveReport(s.default.PAGE_NAME.FIELDS,!0),function(a,r){if(a.messages&&a.messages.length>0){var o=a.messages[0].key;e.confirmFn("Information",{description:a.messages[0].messages[0],type:u.default.MESSAGE_TYPE.INFO,showCloseIndicator:!0,isHTMLFormat:!0}).then(function(){if(o===s.default.MESSAGE_KEY.CONCURRENCY)return e.confirmFn("Confirmation",{description:c.default.getText("COMMON_MESSAGES_CONFIRM_CHANGES_LOST")}).then(function(){return e.cancelReport()})})}n.reset();var l=a.success&&r.success;return l&&t.getFilterData(),r.success&&i.loadInstances(),a.success||n.updateErrors(a.messages),l})}).then(function(t){return o&&e.resetReport(),t?function(e){var t=e.fieldStore&&e.fieldStore.getUnspecifiedFilterWarning();return t?e.confirmFn("Information",{type:u.default.MESSAGE_TYPE.INFO_ACCEPT,description:t,showCancel:!1}):(0,r.resolve)(!1)}(e).then(function(){return t}):t}).finally(a.endLoading.bind(a))},C=function(e,t){e.reportSubscriptionStore;var a=e.fieldStore,r=a.reportStore,n=a.reportStore.model.accessPriority,i=e.authorization,o=e.authorizationConstants,l=e.boardDetail;return!!(i.checkPrivileges([o.PERMISSION_KEY.ReportsActionsOverwriteExistingReport])&&n===g.ACCESS_RIGHT.FullAccess&&!l.isGlobal||l.isGlobal&&m.default.currentUser.systemAdmin&&!m.default.tenantId)&&r.model.checkDirty()},b=(0,n.compose)((0,n.withHandlers)({openEmailPopup:(0,f.curry)(function(e,t){var a=e.designerStore,r=e.boardDetail,n=e.localization,u=e.store,d={reportId:r.id},c=(0,f.getOr)(null,"fieldStore.model.reportFilter",e),p=new E.default(d);e.openPopup(i.default,{onClosed:function(t){return!!t&&(t.subscriptionFilterFields=p.subscriptionFilterFields,t.subscriptionCommonFilterFields=p.subscriptionCommonFilterFields,a.savePrintDraft().get("id").then(function(r){return o.default.checkRequiredFilters(a,r).then(function(a){return a?u.sendEmail(r,t,e.reportId):n.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_REQUIRED_FILTER_EMAIL")})}))},type:l.EMAIL_TYPE.report,reportId:r.id,reportFilter:c,reportState:s.default.REPORT_STATE.SAVED,data:p})}),onSave:(0,f.curry)(function(e,t){var a=e.store,n=e.fieldStore,i=n.reportFilters,o=n.reportStore,l=n.model.reportBody;o.canSaveAs=!1,o.alertDetails.set({message:u.default.EMPTY_MESSAGE.message});var s=(0,y.checkFilterRule)(i);if(s)return e.confirmFn("Information",{description:s,type:"info",isHTMLFormat:!0,showCloseIndicator:!0});var p=(0,f.get)("masterModel.allowToSave",n);if(C(e)||(0,f.isBoolean)(t)&&t||p){if(l.hasInvisibleFields){var h=d.default.reportTypeName(a.reportType),m=String.format(d.default.MESSAGES.SAVE_REPORT,h);return e.confirmFn("Confirmation",{description:m}).then(S.bind(null,e),function(){return l.markVisibleAllField().then(S.bind(null,e))})}return S(e)}return o.alertDetails.set({success:!0,message:c.default.getText("COMMON_MESSAGES_NO_CHANGES_FOUND")}),(0,r.resolve)(!1)}),checkDirty:(0,f.curry)(C),updateResults:(0,f.curry)(_),onDisplayShowHideHeaderFooter:(0,f.curry)(function(e,t){var a=e.designerStore;a&&(a.isShowingHeaderFooter=!a.isShowingHeaderFooter)})}),(0,n.withProps)({getShowHideHeaderFooterLabel:function(e,t){var a=e.isShowingHeaderFooter?"COMMON_LABEL_HIDE_REPORT_HEADER_FOOTER":"COMMON_LABEL_SHOW_REPORT_HEADER_FOOTER";return t.getText(a)},checkDisplayShowHideHeaderFooter:function(e){return(0,f.get)("masterModel.reportFormats.headerFooter.visible",e)}}),p.accessContext,(0,n.mapProps)(function(e){return(0,f.omit)(["unregisterExposeMethod","registerExposeMethod"],e)}),T);t.default=b,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(0).PropTypes,r=a(11).compose,n=a(11).mapProps,i=a(11).withHandlers,o=a(11).withState,l=a(11).setPropTypes,s=a(127),u=a(79),d=a(135),c=a(243),p=a(16),f=s.EMAIL_SUBJECT.DEFAULT,h=s.MESSAGE,m=a(1),g=m.assign,E=m.curry,y=m.isBoolean,v=m.isEmpty,T=m.split,_=m.pluck,S=m.uniq,C=m.chain,b=m.forEach,N=m.toLower,A=a(3209),R=a(12),O=r(n(function(e){var t=new A;return t.setDataByKey("type",e.type),t.setDataByKey("subject",f[e.type]),g(e,{email:t})}),o("loadingPromise","setLoadingPromise",null),i({onClosing:E(function(e,t,a){var r=e.validation;"accept"===a?u.isHavemailConfiguration(p.tenantId).then(function(t){if(t.success)return r.validate().then(function(t){if(t&&function(e){var t=e.validation,a=e.email,r=[],n=I(a,"EMAIL_LABEL_TO"),i=I(a,"EMAIL_LABEL_CC");return!v(n)&&r.push(n),!v(i)&&r.push(i),!v(r)&&t.updateErrors(r),v(r)}(e)){r.reset();var a=e.onClosed(e.email.buildForSend());a.then(function(t){var a;if(!y(t))return a=t,e.setLoadingPromise(null),void e.confirmMessage("error",a);a=t?h.M12a:h.M12b,e.confirmFn("Confirmation",{description:a}).catch(function(){e.onAccept()}).finally(function(){e.setLoadingPromise(null)})}),e.setLoadingPromise(a)}return t});e.confirmMessage("error",t.message)}):(r.reset(),e.onReject(),e.onClosed())}),setToAddress:E(function(e,t){e.email.setDataByKey("to",P(t))}),setCcAddress:E(function(e,t){e.email.setDataByKey("cc",P(t))}),setSubject:E(function(e,t){e.email.setDataByKey("subject",t.target.value)}),setDeliveryMethod:E(function(e,t,a){e.email.setDeliveryMethod(t,a)}),setAttachment:E(function(e,t){e.email.setDataByKey("attachmentType",t.value)}),setEmailBody:E(function(e,t){e.email.setDataByKey("body",t.target.value)}),addNewEmail:E(function(e,t){return}),addToEmailFromPopup:E(function(e,t){D(e.email,"to",t)}),addCcEmailFromPopup:E(function(e,t){D(e.email,"cc",t)}),getEmailTemplates:E(function(e,t){return(t===s.EMAIL_TYPE.dashboard?c:d).fetchEmailTemplates(s.TEMPLATE_TYPE)})}),l({onClosed:t.func,deliveryMethod:t.string}));function I(e,t){var a=T(";",e[N(R.getText(t,R.getDefaultLanguage()))]),r=[];return b(function(e){e&&!s.EMAIL_VALIDATION.REGEX.test(e)&&r.push(e)},a),v(r)?null:{key:R.getText(t),messages:[s.EMAIL_VALIDATION.MESSAGE(r)]}}function D(e,t,a){var r=_("emailAddress",a),n=T(";",e[t]),i=C(n).concat(r).compact().value();r.length>0&&(e[t]=S(i).join(";"))}function P(e){var t=C(e).split(";").compact().value();return S(t).join(";")}e.exports=O}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c=y(a(17)),p=y(a(23)),f=y(a(2)),h=y(a(3)),m=a(5),g=a(127),E=a(1);function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t,a,r){a&&(0,c.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function T(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var _=(r=function(){function e(){(0,f.default)(this,e),v(this,"to",n,this),v(this,"cc",i,this),v(this,"subject",o,this),v(this,"deliveryMethod",l,this),v(this,"attachmentType",s,this),v(this,"body",u,this),v(this,"type",d,this)}return(0,h.default)(e,[{key:"setDataByKey",value:function(e,t){this[e]=t}},{key:"buildForSend",value:function(){var e=(0,m.toJS)(this);return e.body=e.body.replace(/\n/g,"
    "),e}},{key:"setEmailBody",value:function(e){var t=e&&e.split(//).map(E.trim).join("\n");this.setDataByKey("body",t)}},{key:"setDeliveryMethod",value:function(e,t){this.setDataByKey("deliveryMethod",t),this.setEmailBody(e)}}]),e}(),n=T(r.prototype,"to",[m.observable],{enumerable:!0,initializer:function(){return""}}),i=T(r.prototype,"cc",[m.observable],{enumerable:!0,initializer:function(){return""}}),o=T(r.prototype,"subject",[m.observable],{enumerable:!0,initializer:function(){return""}}),l=T(r.prototype,"deliveryMethod",[m.observable],{enumerable:!0,initializer:function(){return g.DELIVERY_METHOD.link}}),s=T(r.prototype,"attachmentType",[m.observable],{enumerable:!0,initializer:function(){return g.ATTACH_TYPE_OPTIONS[2].value}}),u=T(r.prototype,"body",[m.observable],{enumerable:!0,initializer:function(){return""}}),d=T(r.prototype,"type",[m.observable],{enumerable:!0,initializer:function(){return g.EMAIL_TYPE.report}}),T(r.prototype,"setDeliveryMethod",[m.action],(0,p.default)(r.prototype,"setDeliveryMethod"),r.prototype),r);t.default=_,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=l(a(4)),i=l(a(15)),o=l(a(178));function l(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.default)()(function(e){var t=e.localization,a=e.promiseFunction;return a&&a.isPending()&&r.default.createElement(i.default,null,r.default.createElement(i.default.Row,null,r.default.createElement(i.default.Col,{cols:2},r.default.createElement("strong",{className:"u_inlineBlock u_paddingAll"},t.getText("EMAIL_LABEL_SENDING"))),r.default.createElement(i.default.Col,{cols:8,className:"u_controlHeight u_paddingAll"},r.default.createElement(o.default,{show:!0,withoutBorder:!0})),r.default.createElement(i.default.Col,{cols:2,onClick:function(){e.setLoadingPromise(null),a.cancel()}},r.default.createElement("a",{className:"u_paddingAll u_inlineBlock u_textLink"},t.getText("COMMON_LABEL_CANCEL")))))}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(70)),n=p(a(0)),i=p(a(4)),o=p(a(15)),l=p(a(25)),s=p(a(47)),u=a(127),d=p(a(3212)),c=a(1);function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,l.default)()(s.default);t.default=(0,i.default)(d.default)(function(e){var t=e.localization,a=e.value,i=e.label,l=e.isRequired,s=a?(0,c.split)(";",a).map(function(e){return{label:e,value:e}}):{},d=e.emailOptions||[],p=(0,r.default)(d,s);return n.default.createElement(o.default.Row,null,n.default.createElement(o.default.Col,{cols:2,className:"Izenda-EmailPopup-Input"},n.default.createElement("span",null,e.label)),n.default.createElement(o.default.Col,{cols:10},n.default.createElement("div",{className:"izenda-Email-Container"},n.default.createElement(f,{value:a,containerClassName:"u_fullWidth",multi:!0,delimiter:";",simpleValue:!0,joinValues:!0,options:p,valueKey:"value",labelKey:"label",onAddNew:e.addNewEmail,onBlur:e.addNewEmail,onChange:e.onChange,onBlurResetsInput:!1,noResultsText:t.getText("USER_MESSAGE_ENTER_TO_ADD_EMAIL"),isInsertOnBlur:!0,textboxMode:!0,validations:l&&u.REQUIRE_CONSTRAINTS,field:i,clearable:!1}),n.default.createElement("div",{className:"u-posAbsolute u-iconAfterInput"},n.default.createElement("span",{onClick:e.openPopupAddUserPopup,className:"icon-plus",title:t.getText("USER_LABEL_SELECT_USER")})))))}),e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=a(11).withHandlers,n=a(683),i=a(119),o=a(1),l=o.curry,s=o.toLower,u=o.split,d=t(r({openPopupAddUserPopup:l(function(e,t){var a=e.email[s(e.label)];e.openPopup(n,{onChange:e.addRecipientsFromPopup,selectedItems:a?u(";",a).map(function(e){return{email:e}}):[],userModeType:i.USER_ACCESS_MODE.SCHEDULE,validateEmails:!0})})}));e.exports=d}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(0)),n=p(a(13)),i=a(64),o=p(a(37)),l=p(a(4)),s=p(a(10)),u=a(254),d=p(a(422)),c=a(1);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var t=e.localization,a=e.reportId,n=e.disabled,l=e.store,p=(e.location,{});p[""+u.SOURCE_PATH_QUERY_KEY]=l.reportListLink||d.default.getValueByKey((0,c.get)("location.query",e),u.SOURCE_PATH_QUERY_KEY);var f={pathname:o.default.getReportUrl("View",{id:a}),state:{fromQuickEdit:!0},query:p},h=(0,s.default)("btn","btn-primary","btn-report-default",{disabled:n});return r.default.createElement(i.Link,{className:h,to:f,disabled:n},t.getText("REPORT_LABEL_VIEW_MODE"))};f.propTypes={reportId:n.default.string.isRequired,disabled:n.default.bool.isRequired},t.default=(0,l.default)()(f),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),a(64).Link,a(30),a(3215),n=a(151),i=a(475),o=a(423),l=a(18),s=a(4),a(9).observer,a(37),a(10),u=a(1).find,d=r.createClass({displayName:"SubscribeReportButton",propTypes:{reportId:r.PropTypes.string.isRequired,reportType:r.PropTypes.string.isRequired,store:r.PropTypes.object.isRequired},render:function(){var e=this.props,t=e.localization,a=e.store,l=(e.reportId,e.reportType),s=this.getPopupTitle(l);return r.createElement("div",{className:"report-subscription btn-group floatNone u_marginLeft"},r.createElement(i,{className:"btn btn-primary",label:t.getText("COMMON_LABEL_SUBSCRIBE"),onChange:this.onChange,popupProps:{type:"none",autoClose:!1,sizeClass:"modal-lg",showSubscriptionPopup:this.props.showSubscriptionPopup,emailTemplates:a.model.emailTemplates},popupContentProps:{confirmButtonLabel:t.getText("COMMON_LABEL_SAVE"),beforeClosing:"beforeClosing",showSubscriptionPopup:this.props.showSubscriptionPopup,emailTemplates:a.model.emailTemplates},popupTitle:s,popupContent:o,store:a,onClick:this.onClick,pageConstants:n,onSavePopupDesigner:this.onSaveSubscription,isPopupMode:!0,disabled:e.disabled}))},onSaveSubscription:function(e){this.props.store.model.updateSubscribedInstances(e)},onChange:function(e){var t=this.props.store;t&&t.saveInstances()},onClick:function(){var e=this.props.store;return e&&e.updateReportId(this.props.reportId),e&&e.loadInstances()},getPopupTitle:function(e){var t=l.TYPES,a=this.props.localization,r=(u(function(t){return t.id===parseInt(e,10)}.bind(this),t)||{}).value||"";return String.format(a.getText("REPORT_LABEL_NUMBER_OF_SUBSCRIPTION"),r)}}),e.exports=s()(d)},function(e,t,a){"use strict";var r,n=a(80),i=(r=n)&&r.__esModule?r:{default:r};!function(){a(60);var t=a(0),r=a(4),n=a(475),o=a(423),l=a(10),s=a(18),u=a(1),d=u.find,c=u.isNil,p=t.createClass({displayName:"SubscriptionPopup",onChange:function(e){var t=this.props.store;t&&t.saveInstances()},onClick:function(){var e=this.props.store;return e.updateReportId(this.props.reportId),e.loadInstances()},render:function(){var e=this.props.localization,a=s.TYPES,r=(d(function(e){return e.id===parseInt(this.props.reportType,10)}.bind(this),a)||{}).value,u=String.format("{0} {1}",r,e.getText("SUBSCRIPTION_LABEL_SUBSCRIPTION")),p=this.props.store||{},f=l("report-subscription",(0,i.default)({},""+this.props.className,!c(this.props.className)));return t.createElement(n,{containerClassName:f,className:"btn btn-primary",label:e.getText("COMMON_LABEL_SUBSCRIBE"),onChange:this.onChange,popupProps:{type:"none",autoClose:!1,sizeClass:"modal-lg",showSubscriptionPopup:this.props.showSubscriptionPopup,emailTemplates:p.model.emailTemplates},popupContentProps:{confirmButtonLabel:e.getText("COMMON_LABEL_SAVE"),beforeClosing:"beforeClosing",showSubscriptionPopup:this.props.showSubscriptionPopup,emailTemplates:p.model.emailTemplates},popupTitle:u,popupContent:o,store:p,onClick:this.onClick,pageConstants:this.props.pageConstants,onSavePopupDesigner:this.props.onSavePopupDesigner,isPopupMode:!0})}});e.exports=r()(p)}()},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),n=a(32),i=a(4),o=a(3217),l=a(55),s=a(15),u=a(19),d=r.createClass({displayName:"ReportExportIframePopup",render:function(){var e=this.props.onClosing,t=this.props.localization,a=document.queryCommandSupported("copy")?t.getText("REPORTS_CONSTANTS_IFRAME_EXPORT_POPUP_LABEL_COPY_PASSWORD_LINK"):t.getText("REPORTS_CONSTANTS_IFRAME_EXPORT_POPUP_LABEL_COPY_PASTE");return r.createElement(n,{visible:!0,type:"none",onClosing:e,autoClose:!1,sizeClass:"modal-md"},r.createElement(n.Header,{title:l.REPORT_EXPORT_IFRAME_POPUP.popupTitle}),r.createElement(n.Body,null,r.createElement(s,{className:"izenda-IframeExportPopupWrapper"},r.createElement(s.Row,null,r.createElement("div",{className:"izenda-ExportIframeLinkCustom u_inlineBlock"},r.createElement(u,{className:"form-control u_inlineBlock",id:"izenda-ExportIframeLinkCustom",value:'',disabled:!0}),r.createElement("i",{className:"icon-copy u-posAbsolute izenda-IconCopyClipBoard",title:a,onClick:this.props.onCopyPasswordLink}))))),r.createElement(n.Footer,null,r.createElement(n.ConfirmationButton,{type:"accept"},this.props.localization.getText("COMMON_LABEL_OK"))))}}),e.exports=i(o)(d)},function(e,t,a){"use strict";!function(){a(0).PropTypes;var t=a(11).compose,r=a(11).withHandlers,n=a(1).curry,i=t(r({onClosing:n(function(e,t){return e.loader.endLoading(),e.onAccept()}),onCopyPasswordLink:n(function(e,t){var a=document.querySelector("#izenda-ExportIframeLinkCustom");a&&(a.disabled=!1,a.select(),document.execCommand("copy"),a.disabled=!0)}),onIFrameLoad:n(function(e,t){e.loader.endLoading()})}));e.exports=i}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=y(a(0)),n=y(a(13)),i=y(a(30)),o=y(a(1378)),l=y(a(1379)),s=y(a(4)),u=y(a(37)),d=y(a(12)),c=a(40),p=a(55),f=y(a(49)),h=y(a(16)),m=a(254),g=a(1),E=y(a(422));function y(e){return e&&e.__esModule?e:{default:e}}var v=c.ACCESS_RIGHT.FullAccess,T=c.ACCESS_RIGHT.QuickEdit,_=c.ACCESS_RIGHT.SaveAs,S=function(e){return e.store.reportListLink||E.default.getValueByKey((0,g.get)("location.query",e),m.SOURCE_PATH_QUERY_KEY)},C=function(e){var t=function(){n(!1)},a=function(){n(!0)},n=function(t){var a=e.boardDetail,r=e.boardDetail.version,n=e.store;e.openPopup(l.default,{store:n,boardDetail:a,isMoveReport:t,version:r}).then(function(e,t,a){s(e,t,a)})},s=function(t,a,r){var n=e.router,i=e.fieldStore,o=e.viewMode;if(a&&r&&i.reportStore.updateReportCategory(r.category,r.subCategory),t)return e.confirmFn("Information",{description:t,type:"info",showCloseIndicator:!0}).then(function(){(0,g.isString)(a)?!o&&n.push(E(a)):n.push(e.location.pathname)})},E=function(e){return u.default.getReportUrl("Edit",{id:e})},y=function(){var t=e.router,a=e.reportType,r=e.reportId;if((0,g.get)("state.fromList",e.location))t.goBack();else{var n=(0,g.getOr)({},"masterModel",e.fieldStore),i=p.EMPTY_GUID,o=function(e){String.isGuidFormat(e)&&e!==p.EMPTY_GUID&&(i=e)};o(n.categoryId),o(n.subCategoryId);var l=u.default.getReportUrl("List",{reportType:a,catId:i,reportId:r});t.push(l)}},C=e.localization,b=e.authorization,N=e.accessPriority,A=e.active,R=e.boardDetail,O=e.viewMode,I=e.disabled,D=b.checkPrivileges([c.PERMISSION_KEY.ReportsActionsOverwriteExistingReport]),P=b.checkPrivileges([c.PERMISSION_KEY.ReportsCanCreateNewReportValue]),L=b.checkPrivileges([c.PERMISSION_KEY.ReportsActionsViewReportHistory]),M=(N===v||N===T||N===_)&&O&&A,F=(N===v||N===_)&&A&&D,k=(N===v||N===T||N===_)&&P,x=N===v&&D&&A&&!R.isGlobal||R.isGlobal&&h.default.currentUser.systemAdmin&&!h.default.tenantId,w=b.checkLicense(f.default.LICENSE_KEY.ReportDesigner);return(M||F||k||x||L)&&r.default.createElement("div",{className:"btn-group"},r.default.createElement(i.default,{className:"btn-report-default dropdown-toggle","data-toggle":"dropdown",label:C.getText("COMMON_LABEL_EDIT"),disabled:I},r.default.createElement("span",{className:"caret"})),r.default.createElement("ul",{className:"dropdown-menu"},M&&r.default.createElement("li",null,r.default.createElement("a",{onClick:function(){var t=function(){var t=e.reportId,a=u.default.getReportUrl("Edit",{id:t}),r={};r[""+m.SOURCE_PATH_QUERY_KEY]=S(e),e.router.push({pathname:a,query:r})};e.fieldStore.masterModel.checkDirty()?e.confirmFn("Confirmation",{description:C.getText("REPORT_DESIGNER_MESSAGE_CONFIRM_QUICK_EDIT")}).then(function(){t()}):t()}},C.getText("REPORT_LABEL_QUICK_EDIT"))),w&&F&&r.default.createElement("li",null,r.default.createElement("a",{onClick:function(){var t=e.fieldStore.masterModel,a=e.reportId,r=t.checkDirty(),n={};n[""+m.SOURCE_PATH_QUERY_KEY]=S(e);var i=u.default.getReportDesignerUrl("ReportDesignerDetail",{reportId:a}),o=function(){e.router.push({pathname:i,query:n})};r?e.confirmFn("Confirmation",{description:C.getText("REPORT_DESIGNER_MESSAGE_CONFIRM_EDIT")}).then(function(){o()}):o()}},C.getText("REPORT_LABEL_DESIGN"))),k&&r.default.createElement("li",null,r.default.createElement("a",{onClick:t},d.default.getText("COMMON_LABEL_COPY"))),x&&r.default.createElement("li",null,r.default.createElement("a",{onClick:a},d.default.getText("COMMON_LABEL_MOVE"))),L&&r.default.createElement("li",null,r.default.createElement("a",{onClick:function(){var r=(0,g.getOr)(!1,"boardDetail.isGlobal",e);e.openPopup(o.default,{showCopy:t,showMove:a,reportId:e.reportId,masterStore:e.store,isGlobal:r,deleteHistory:y})}},C.getText("REPORT_LABEL_VIEW_HISTORY")))))};C.propTypes={reportId:n.default.string.isRequired,viewMode:n.default.bool.isRequired,store:n.default.object.isRequired,confirmFn:n.default.func.isRequired,boardDetail:n.default.object},C.contextTypes={router:n.default.object},t.default=(0,s.default)()(C),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(12),i=(r=n)&&r.__esModule?r:{default:r};t.default={CRITERIA_LIST:[{value:"All",get label(){return i.default.getText("COMMON_LABEL_ALL")}},{value:"Version",get label(){return i.default.getText("REPORT_HISTORY_CONSTANTS_CRITERIA_LIST_VERSION")}},{value:"Status",get label(){return i.default.getText("COMMON_LABEL_STATUS")}},{value:"Modified",get label(){return i.default.getText("REPORT_HISTORY_CONSTANTS_CRITERIA_LIST_EDITED_DATE")}},{value:"ModifiedBy",get label(){return i.default.getText("REPORT_HISTORY_CONSTANTS_CRITERIA_LIST_EDITED_BY")}}],TABLE_DEF:{version:{key:"version",columnKey:"version",width:100,get title(){return i.default.getText("REPORT_HISTORY_CONSTANTS_CRITERIA_LIST_VERSION")},sortable:!0},status:{key:"status",columnKey:"status",width:100,get title(){return i.default.getText("COMMON_LABEL_STATUS")},sortable:!0},editedDate:{key:"modified",columnKey:"modified",width:200,get title(){return i.default.getText("REPORT_HISTORY_CONSTANTS_CRITERIA_LIST_EDITED_DATE")},sortable:!0},editedBy:{key:"modifiedBy",columnKey:"modifiedBy",width:215,get title(){return i.default.getText("REPORT_HISTORY_CONSTANTS_CRITERIA_LIST_EDITED_BY")},sortable:!0},action:{width:150,resizable:!1,fixed:!0,align:"center",get title(){return i.default.getText("COMMON_LABEL_ACTION")}}},TABLE_WIDTH:590,TOOL_TIP:{get DESIGN(){return i.default.getText("REPORT_HISTORY_CONSTANTS_DESIGN")},get COPY(){return i.default.getText("REPORT_HISTORY_CONSTANTS_COPY")},get MOVE(){return i.default.getText("REPORT_HISTORY_CONSTANTS_MOVE")},get DELETE(){return i.default.getText("REPORT_HISTORY_CONSTANTS_DELETE")}},STATUS:{get ACTIVE(){return i.default.getText("COMMON_LABEL_ACTIVE")},get ARCHIVED(){return i.default.getText("COMMON_LABEL_ARCHIVED")}},MESSAGES:{get M01a(){return i.default.getText("REPORT_HISTORY_CONSTANTS_MESSAGE_DELETE_ARCHIVED")},get M01b(){return i.default.getText("REPORT_HISTORY_CONSTANTS_MESSAGE_DELETE_ACTIVE")}}},e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(5),r=a(135),n=a(3221),i=a(1).remove;function o(){this.model=new n,this.reportId=null}o.prototype.init=function(e){return this.reportId=e,this.loadReportHistory()},o.prototype.loadReportHistory=function(){var e=this.model;return e.pageInfo.buildPagingRequest(),r.loadReportHistory(null,e.pageInfo,this.reportId).then(e.readHistory.bind(e))},o.prototype.goToPage=function(e){return this.model.pageInfo.setPageIndex(e),this.loadReportHistory()},o.prototype.search=function(e,t){return this.model.pageInfo.setSearchValues(e,t),this.goToPage(1)},o.prototype.onSortChange=function(e,t){return this.model.pageInfo.setColSortDirs(e,t),this.loadReportHistory()},o.prototype.onPageSizeChange=function(e){return this.model.pageInfo.setPageSize(e),this.goToPage(1)},o.prototype.onSearchPropertiesChange=function(e,t){this.model.pageInfo.setSearchValues(e,t)},o.prototype.deleteReportHistory=t.action(function(e,t){return r.deleteReportHistory(e,t).then(function(e){var a=this.model.histories;return this.model.histories=i(function(e){return e.version===t},a),e}.bind(this)).then(this.loadReportHistory.bind(this))}),e.exports=o}()},function(e,t,a){"use strict";!function(){var t=a(5),r=a(108);function n(){var e={histories:[],pageInfo:new r({version:"DESC"},"All")};t.extendObservable(this,e)}n.prototype.readHistory=t.action(function(e){var t=(e=e||{}).result||[];return this.histories=t,this.pageInfo.totalRecords=e.total,null}),e.exports=n}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(11),n=a(5),i=u(a(55)),o=u(a(203)),l=u(a(16)),s=a(1);function u(e){return e&&e.__esModule?e:{default:e}}var d=(0,r.compose)((0,r.setDisplayName)("CopyReport"),(0,r.withState)("reportName","handleChangeReportName",function(e){return e.boardDetail.name}),(0,r.withState)("category","changeCategory",function(){return null}),(0,r.withState)("saveIntos","updateSaveIntos",function(){return[]}),(0,r.withState)("subCategory","changeSubCategory",function(){return null}),(0,r.withState)("subCategories","updateSubCategories",function(){return[]}),(0,r.withState)("categories","updateCategories",function(){return[]}),(0,r.withState)("saveInto","updateSaveInto",function(e){return l.default.currentUser.systemAdmin&&(0,s.isNil)(l.default.tenantId)?+e.boardDetail.isGlobal:0}),(0,r.mapProps)(function(e){var t=e.localization,a=e.boardDetail.type==i.default.CATEGORY_TYPE.REPORT?t.getText("COMMON_LABEL_REPORT"):t.getText("COMMON_LABEL_TEMPLATE"),r=l.default.currentUser.systemAdmin&&(0,s.isNil)(l.default.tenantId);return(0,s.assign)(e,{typeName:a,hiddenSaveintos:r})}),(0,r.withHandlers)({handleValidate:(0,s.curry)(p),updateCategory:(0,s.curry)(function(e,t,a,r){e.changeCategory({id:t,name:a}),e.changeSubCategory(null),r?e.updateSubCategories([]):e.store.loadSubCategoriesForCopyPopup(t).then(function(t){t&&e.updateSubCategories(t.map(function(e){return new o.default(e)}))})}),hasNewCategory:(0,s.curry)(c),addNewCategory:(0,s.curry)(function(e,t){e.updateCategories((0,s.concat)(t,e.categories))}),updateSubCategory:(0,s.curry)(function(e,t,a){e.changeSubCategory({id:t,name:a})}),addNewSubCategory:(0,s.curry)(function(e,t){e.updateSubCategories((0,s.concat)(t,e.subCategories))}),onClosing:(0,s.curry)(function(e,t,a){if("accept"===a)return p(e);e.onReject()}),onChangeSaveInto:(0,s.curry)(function(e,t){e.updateSaveInto(t.value),e.changeCategory(null),e.changeSubCategory(null);var a=e.store;e.store.loadCategoriesForCopyPopup(a.reportType,t.value).then(function(){e.updateCategories((0,s.cloneDeep)((0,n.toJS)(a.model.copyReportCategoryList)))})})}));function c(e){var t=e.categories,a=e.subCategories,r=(0,s.find)(["isNew",!0],t),n=(0,s.find)(["isNew",!0],a);return!(0,s.isNil)(r)||!(0,s.isNil)(n)}function p(e){var t=e.store,a=e.loader,r=e.validation,n=e.boardDetail.type,o=e.isMoveReport,l=e.reportName,u=e.category,d=e.subCategory,p=e.boardDetail,f=e.version,h=n===Number(i.default.CATEGORY_TYPE.REPORT)?"report":"template",m=o?i.default.MESSAGES.M06b:i.default.MESSAGES.M06a,g=String.format(m,h,l,(0,s.isEmpty)(u)?i.default.UNCATEGORIZED:u.name,(0,s.isEmpty)(d)?"":"/"+d.name),E=(0,s.pick)(["reportName","category","subCategory","saveInto"],e);return r.validate().then(function(n){if(n)return a.startLoading(),t.copyNewReport(E,p,o,f).then(function(t){return(0,s.isArray)(t)?(r.updateErrors(t),((0,s.isNil)(t[0].key)||(0,s.isEmpty)(t[0].key))&&e.confirmMessage("info",t[0].messages),!1):t}).then(function(a){return t.model.hasNewCategory=c(e),a&&e.onAccept(g,a,E)}).finally(a.endLoading.bind(a))})}t.default=d,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d;r=a(0),n=a(30),i=a(1381),o=a(40).ACCESS_RIGHT,l=a(4),s=a(37),u=a(16),a(1).isNil,d=r.createClass({displayName:"SaveReportButton",propTypes:{fieldStore:r.PropTypes.object.isRequired,subscribedInstancesStore:r.PropTypes.object.isRequired,viewMode:r.PropTypes.bool.isRequired,confirmFn:r.PropTypes.func.isRequired},render:function(){var e=this.props,t=e.accessPriority,a=this.props.localization,i=e.authorization.checkPrivileges([e.authorizationConstants.PERMISSION_KEY.ReportsCanCreateNewReportValue])&&(t===o.FullAccess||t===o.QuickEdit||t===o.SaveAs),l=e.authorization.checkPrivileges([e.authorizationConstants.PERMISSION_KEY.ReportsActionsOverwriteExistingReport])&&t===o.FullAccess&&!e.boardDetail.isGlobal||e.boardDetail.isGlobal&&u.currentUser.systemAdmin&&!u.tenantId;return i&&l&&e.active?r.createElement("div",{className:"btn-group"},r.createElement(n,{className:"btn-report-default dropdown-toggle","data-toggle":"dropdown",label:a.getText("COMMON_LABEL_SAVE")},r.createElement("span",{className:"caret"})),r.createElement("ul",{className:"dropdown-menu"},r.createElement("li",null,r.createElement("a",{onClick:this.props.onSave},a.getText("COMMON_LABEL_SAVE"))),r.createElement("li",null,r.createElement("a",{onClick:this.onSaveAs},a.getText("COMMON_LABEL_SAVE_AS"))))):l&&e.active?r.createElement(n,{className:"btn-report-default",onClick:e.onSave,label:a.getText("COMMON_LABEL_SAVE")}):i?r.createElement(n,{className:"btn-report-default",onClick:this.onSaveAs,label:a.getText("COMMON_LABEL_SAVE_AS")}):null},onSaveAs:function(){return this.props.fieldStore.reportStore.canSaveAs=!0,this.openPopup(!0)},openPopup:function(e){var t=this.props,a=t.fieldStore,r=a.reportStore;return r.loadCategories().then(function(){return t.openPopup(i,{store:r,onSaved:this.onCloseSavePopup,saveAsMode:e,fieldStore:a})}.bind(this))},onCloseSavePopup:function(e){var t=this.props.router;e&&(this.props.reportStore&&this.props.reportStore.resetReportData(),t.push(this.buildViewerLink(e)))},buildViewerLink:function(e){var t=this.props.viewMode?"View":"Edit";return s.getReportUrl(t,{id:e})}}),e.exports=l()(d)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(11),n=a(0),i=a(5),o=a(1),l=u(a(18)),s=u(a(55));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=e.store,a=e.section,r=e.fieldStore,n=e.confirmFn,i=e.saveAsMode,o=e.isNew,u=e.onSaved,d=e.disableReport,c=e.onReject;if((t.model.setIgnoreCheckChange(),!a&&r)&&r.reportBody.hasInvisibleFields)return n("Confirmation",{description:s.default.MESSAGES.SAVE_AS_REPORT,isHTMLFormat:!0}).then(function(){return t.saveReport(l.default.PAGE_NAME.FIELDS).then(function(e){(i||o)&&e.success&&u&&u(e.reportId),c()})});return t.saveReport(a).then(function(e){return e.isDisableReport&&d&&d(),(i||o)&&e.success&&u&&u(e.reportId),e})}function c(e){var t=e.store,a=e.section,r=e.disableReport,n=e.confirmFn;return t.detectReportChange(a).then(function(t){if(!t.success){var a=t.messages[0];switch(a.key){case l.default.DETECT_CHANGE.PHYSICAL:n("Information",{description:a.messages[0],type:"info",showCloseIndicator:!0,isHTMLFormat:!0}).then(r);break;case l.default.DETECT_CHANGE.LOGICAL:return n("Confirmation",{description:a.messages[0],isHTMLFormat:!0}).then(d.bind(null,e))}return null}return d(e)})}function p(e){var t=e.store,a=e.saveAsMode,r=e.validation,n=e.reportName,i=e.saveInto,l=e.section,s=t.model;a&&s.markSaveAs();var u=r;return u.validate().then(function(a){return!!a&&(u.reset(),t.validate(n).then(function(t){if(!t)return!!i!==s.isGlobal&&s.changeGlobalType(!!i),s.changeName(n),l?c(e):d(e);u.updateErrors(t)}))}).then(function(a){return a&&!(0,o.isEmpty)(a.messages)?u.updateErrors(a.messages):a&&(t.model.resetSaveAs(),t.setNewReport(!1),e.onAccept()),null})}function f(e){var t=e.store,a=e.originalReportName,r=e.originalReportType,n=e.originalSaveInto,i=e.originalCategoryId,l=e.originalCategoryName,s=e.originalSubCategoryId,u=e.validation,d=e.onReject,c=t.model;c.changeName(a),c.updateType(r),t.changeSaveInto(n).then(function(){t.saveAsMode&&t.model.isGlobal&&!(0,o.isNil)(t.accessStore.tenantId)?c.updateCategory(i,l):t.changeCategory(i).then(function(){c.updateSubCategory(s)})}),u.reset(),d(),t.model.resetSaveAs()}t.default=(0,r.compose)((0,r.withState)("reportName","setReportName",function(e){return e.store.model.reportName}),(0,r.withState)("originalReportName","setOriginalReportName",function(e){return e.store.model.reportName}),(0,r.withState)("originalReportType","setOriginalReportType",function(e){return e.store.model.reportType}),(0,r.withState)("originalCategoryId","setOriginalCategoryId",function(e){return e.store.model.categoryId}),(0,r.withState)("originalCategoryName","setOriginalCategoryName",function(e){return e.store.model.categoryName}),(0,r.withState)("originalSubCategoryId","setOriginalSubCategoryId",function(e){return e.store.model.subCategoryId}),(0,r.withState)("saveInto","changeSaveInto",function(e){return e.store.model.isGlobal?l.default.GLOBAL_REPORT_ENUM.GLOBAL:l.default.GLOBAL_REPORT_ENUM.LOCAL}),(0,r.withState)("originalSaveInto","changeOriginalSaveInto",function(e){return e.store.model.isGlobal}),(0,r.withHandlers)({onClosing:(0,o.curry)(function(e,t,a){"accept"===a?p(e):"cancel"===a&&f(e)}),onAcceptClosing:(0,o.curry)(p),onCancelClosing:(0,o.curry)((0,i.action)(f)),detectReportChange:(0,o.curry)(c),saveReport:(0,o.curry)(d),changeCategory:(0,o.curry)(function(e,t,a){e.store.changeCategory(t,a)}),addNewCategory:(0,o.curry)(function(e,t){e.store.model.addCategory(t)}),changeReportType:(0,o.curry)(function(e,t){var a=e.validation,r=e.store,n=e.reportName,i=e.setReportName;if(a.reset(),r.changeType(t),r.isNewReport&&(n===l.default.DEFAULT_REPORT_NAME||n===l.default.DEFAULT_TEMPLATE_NAME)){var o=r.model.reportType===l.default.REPORT_TYPE_ENUM.REPORT,s=o?l.default.DEFAULT_REPORT_NAME:l.default.DEFAULT_TEMPLATE_NAME;i(s)}}),changeSubCategory:(0,o.curry)(function(e,t,a){e.store.model.updateSubCategory(t,a)}),addNewSubCategory:(0,o.curry)(function(e,t){e.store.model.addSubCategory(t)}),updateSaveInto:(0,o.curry)(function(e,t){var a=e.store,r=e.saveInto,n=e.store.model;if(a.changeSaveInto(t).then(function(){r!==t&&e.changeSaveInto(t)}),r===t&&!(0,o.isNil)(n.categoryId))return(0,o.isNil)(n.subCategoryId)&&a.clearSubCategory(),void a.loadSubCategories(n.categoryId);a.clearCategory(),a.clearSubCategory()})}),(0,r.setPropTypes)({store:n.PropTypes.object.isRequired,section:n.PropTypes.string,onSaved:n.PropTypes.func})),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(30),i=a(55),o=a(4),l=r.createClass({displayName:"CancelViewReportButton",render:function(){var e=this.props.localization;return r.createElement(n,{className:"btn-report-default",label:e.getText("COMMON_LABEL_CANCEL"),onClick:this.onCancel})},onCancel:function(e){var t=this.props,a=t.confirmFn;return t.checkDirty(null)?a("Confirmation",{description:i.MESSAGES.CANCEL}).then(function(){t.cancelReport&&t.cancelReport()}):t.cancelReport&&t.cancelReport()}}),e.exports=o()(l)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(0)),n=p(a(13)),i=p(a(30)),o=p(a(37)),l=p(a(4)),s=p(a(55)),u=p(a(422)),d=a(254),c=a(1);function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,l.default)()(function(e){var t=e.store,a=e.localization,n=e.router,i=e.reportType,l=e.reportId,p=e.disabled,f=e.fieldStore,m=t.reportListLink||u.default.getValueByKey((0,c.get)("location.query",e),d.SOURCE_PATH_QUERY_KEY);if(m)return r.default.createElement(h,{onClickFn:n.push.bind(n,m),localization:a,disabled:p});var g=(0,c.getOr)({},"masterModel",e.fieldStore),E=null,y=function(e){String.isGuidFormat(e)&&e!==s.default.EMPTY_GUID&&(E=e)};y(g.categoryId),y(g.subCategoryId);return r.default.createElement("a",{className:"btn btn-primary btn-report-default",disabled:p,"aria-label":"Close",onClick:function(){var e=f.masterModel.isGlobal,a=o.default.getReportUrl("List",{reportType:i,catId:E,reportId:l,isGlobal:e});t.updateReportId(null,null),n.push(a)}},a.getText("COMMON_LABEL_CLOSE"))}),h=function(e){var t=e.localization,a=e.disabled,n=t.getText("COMMON_LABEL_CLOSE");return r.default.createElement(i.default,{className:"btn btn-primary btn-report-default",onClick:e.onClickFn,disabled:a,"aria-label":n},n)};f.propTypes={reportType:n.default.string.isRequired,reportId:n.default.string.isRequired,categoryId:n.default.string},t.default=f,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(0)),n=s(a(4)),i=s(a(30)),o=s(a(801)),l=a(497);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return r.default.createElement(i.default,{className:"btn-report-default",label:e.localization.getText("COMMON_LABEL_PRINT"),onClick:e.exportReport(l.HTML.value)})};u.displayName="PrintReportButton",t.default=(0,n.default)(o.default)(u),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=C(a(14)),l=C(a(6)),s=C(a(2)),u=C(a(3)),d=C(a(7)),c=C(a(8)),p=a(0),f=C(p),h=C(a(13)),m=C(a(29)),g=C(a(3229)),E=C(a(18)),y=C(a(10)),v=C(a(15)),T=C(a(4)),_=a(1),S=C(a(1382));function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,T.default)(S.default)((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u-1?a.operatorSetting===g.default.SELECT_SETTINGS.MULTIPLE||a.operatorSetting===g.default.SELECT_SETTINGS.MULTIPLE_COMMA||a.operatorSetting===g.default.SELECT_SETTINGS.MULTIPLE_NEWLINE?" - "+g.default.SELECT_TEXT.MULTIPLE:" - "+g.default.SELECT_TEXT.SINGLE:"",y=p+" - "+f+m,v=a.commonFilterRequired?y+" \n "+e.localization.getText("DASHBOARD_TOOLTIP_REQUIRED_FILTER"):y,C=(0,h.default)("filter-alias",{"required-before":n}),b=(0,h.default)("filter-control view-mode",{selected:l===a&&this.visible});return T.default.createElement(_.default.Col,{className:"izenda-FilterItemPill u_noPaddingAll",cols:"3"},T.default.createElement("div",{className:"filter-wrapper",ref:this.setDOMNode,onClick:this.onClickFilter},T.default.createElement("div",{className:b},T.default.createElement(S.default,{tooltip:v,className:C},T.default.createElement("span",null,p," "),T.default.createElement("span",{className:"operator"},String.format(" - {0}{1}",f,m))),this.visible&&l===a&&T.default.createElement(E.default,{updateCascadingValue:c,closePopover:this.closePopover,anchor:this.filterItemDom,fieldStore:o,itemData:t,isLazyLoading:s,index:d,viewMode:u}))))}}]),t}(v.Component),o.propTypes={itemData:y.default.object.isRequired,fieldStore:y.default.object,viewMode:y.default.bool,isLazyLoading:y.default.bool,index:y.default.number},A=(n=l).prototype,R="visible",O=[b.observable],I={enumerable:!0,initializer:function(){return!1}},P={},Object.keys(I).forEach(function(e){P[e]=I[e]}),P.enumerable=!!P.enumerable,P.configurable=!!P.configurable,("value"in P||P.initializer)&&(P.writable=!0),P=O.slice().reverse().reduce(function(e,t){return t(A,R,e)||e},P),D&&void 0!==P.initializer&&(P.value=P.initializer?P.initializer.call(D):void 0,P.initializer=void 0),void 0===P.initializer&&(Object.defineProperty(A,R,P),P=null),i=P,r=n))||r;t.default=L,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(6)),l=_(a(2)),s=_(a(3)),u=_(a(7)),d=_(a(8)),c=a(0),p=_(c),f=_(a(4)),h=_(a(159)),m=_(a(795)),g=_(a(793)),E=a(40),y=_(a(13)),v=_(a(102)),T=a(1);function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,f.default)()((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0)&&(n.removeAllPills(),(0,l.flow)((0,l.filter)(function(e){return!(0,l.includes)(e,s)}),(0,l.forEach)(i.default.action(function(t){var a=(0,l.find)({id:t},r);a.reportPartContent.resetDrilldownInfo&&a.reportPartContent.resetDrilldownInfo(),e.store.needUpdatePreview(a,null,null,null,null,!0)})))(n.crossFilteringReportParts),r.forEach(function(e){var t=(0,l.includes)(e.id,s);e.setCrossFiltering(t)}),e.store.loadReportPartDataByCrossFiltering()),e.onAccept()}else e.onReject()}),onSelectReportParts:(0,l.curry)(function(e,t,a){var r=(0,l.get)("target.checked",a),n=e.selectedReportParts;r?n.push(t.value):n=(0,l.without)([t.value],n),e.updateSelectedReportParts(n)})}));t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(18),n=f(a(0)),i=f(a(10)),o=f(a(1383)),l=f(a(4)),s=f(a(1388)),u=(f(a(55)),a(40)),d=f(a(802)),c=f(a(3252)),p=f(a(30));function f(e){return e&&e.__esModule?e:{default:e}}t.default=(0,l.default)()(function(e){var t=e.store,a=e.authorization,l=e.authorizationConstants,f=e.collapseToggle,h=e.openPopup,m=e.localization,g=e.updateResultInfo,E=t.reportFilters||{},y=(0,i.default)("u_tableCell izenda-FilterHeader__headerButton"),v=a.checkPrivileges([l.PERMISSION_KEY.FullReportAndDashboardAccess,l.PERMISSION_KEY.ReportsFilterPropertiesCrossFiltering],l.PERMISSION_OPERATOR.Or);return n.default.createElement("div",{className:"u_table izenda-FilterHeader u_fullWidth"},n.default.createElement("div",{className:"u_tableCell u_paddingRight u_alignMiddle",onClick:f},n.default.createElement("i",{className:"icon-toggle-thick"}),n.default.createElement("strong",null,r.FIELDS.FILTERS_HEADER_LABEL)),n.default.createElement("div",{className:"u_tableCell u_alignMiddle u_textNoWrap izenda-ShowFilter"},n.default.createElement("label",{className:"checkbox-inline"},n.default.createElement("input",{type:"checkbox",checked:E.visible,onChange:function(e){E.setVisible(e.target.checked)}}),r.FIELDS.SHOW_FILTERS_LABEL,n.default.createElement("a",{className:"icon-info-circled u_alignMiddle",title:m.getText("REPORTDESIGNER_FILTER_SHOW_TOOLTIP")}))),n.default.createElement("div",{className:"u_tableCell u_alignMiddle u_fullWidth izenda-FilterHeader__CrossFilteringContainer"},n.default.createElement(o.default,{hadSetting:t.reportBody.hadCrossFilteringSetting,crossFilteringDetail:t.reportBody.crossFilteringDetail,showCrossFilteringOption:v,enableCrossFilteringOption:t.reportBody.enableCrossFiltering,enableDeleteAll:t.reportBody.enableDeleteAll,removeCrossFiltering:function(e){return t.removePill.call(t,e)},removeAllCrossFiltering:function(){return t.removeAllPills.call(t)},onCrossFilteringOptionClick:function(){h(s.default,{store:t})},resetDefaultValue:function(){return t.resetCrossFilterDefaultValue.call(t)}})),n.default.createElement("div",{className:y},n.default.createElement("button",{className:"btn btn-addFilter btn-report-default icon-addnew",onClick:function(){h(c.default,e)},title:m.getText("REPORTDESIGNER_ADD_FILTER_TOOLTIP")}),g&&g.accessPriority!==u.ACCESS_RIGHT.Locked&&n.default.createElement(d.default,{updateResults:g.updateResults,disabled:g.doesDisableUpdateResultBtn}),n.default.createElement(p.default,{onClick:function(){var e=t.reportFilters.clearFilter,a=t.reportFilters;e.call(a)},className:"btn-updateResult"},n.default.createElement("span",{className:"btn-updateResult-label"},m.getText("REPORTDESIGNER_LABEL_CLEAR_FILTER")))))}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(6)),l=_(a(2)),s=_(a(3)),u=_(a(7)),d=_(a(8)),c=a(0),p=_(c),f=_(a(13)),h=_(a(32)),m=_(a(12)),g=_(a(3253)),E=_(a(3255)),y=_(a(4)),v=a(1),T=a(5);function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,y.default)(E.default)((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props.store,t=(0,T.toJS)(e.reportFilters.commonData.querySource),a=e.reportBody.aggregatedFields||[],r=(0,v.concat)((0,T.toJS)((0,v.filter)({isRunningField:!1,isCompositeField:!1,isParameter:!1},t)),a);return p.default.createElement(h.default,{visible:!0,onClosing:this.props.closed,type:"none",autoClose:!1,containerClass:"izenda-SelectionFieldPopup"},p.default.createElement(h.default.Header,{title:m.default.getText("REPORTDESIGNER_LABEL_ADD_FILTER_SELECTION")}),p.default.createElement(h.default.Body,null,p.default.createElement(g.default,{data:r,onChangeData:this.props.onChangeSeletedField})),p.default.createElement(h.default.Footer,null,p.default.createElement(h.default.ConfirmationButton,{type:"accept"},m.default.getText("COMMON_LABEL_OK")),p.default.createElement(h.default.ConfirmationButton,{type:"cancel"},m.default.getText("COMMON_LABEL_CANCEL"))))}}]),t}(c.Component),n.propTypes={onAccept:f.default.func.isRequired,onReject:f.default.func.isRequired,store:f.default.object.isRequired},r=i))||r;t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=T(a(6)),l=T(a(2)),s=T(a(3)),u=T(a(7)),d=T(a(8)),c=a(0),p=T(c),f=T(a(4)),h=T(a(184)),m=T(a(19)),g=T(a(75)),E=T(a(3254)),y=a(1),v=T(a(10));function T(e){return e&&e.__esModule?e:{default:e}}var _=(0,f.default)(E.default)((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0);0==a.exploreStore.getISMLError&&a.exploreStore.getShowResult&&t&&(a.exploreStore.initializeVisualizationValue(),a.getVisualizations())}},a.getNLQStatus=function(){a.exploreStore.getConfigureNLQStatus().then(function(e){a.exploreStore.setNLQStatus(e),a.getSuggestions("change"),a.exploreStore.SetRecentReportView()}).catch(function(e){}).finally(void 0)},a.getVisualizations=function(){var e=a.exploreStore,t=a.props.loader;t.startLoading(),e.getreportPartVisualization(e.getResultReportDefinition).then(function(t){e.defaultVisualizationHandler(t)}).catch(function(e){}).finally(t.endLoading.bind(t))},a.setSelectedSuggestion=function(e){a.exploreStore.setSearchstring(e.name),a.exploreStore.setNLPDict(e.nlpdict)},a.handleChange=function(e){a.exploreStore.loadSearchList(e)},a.handleEnter=function(e){"Enter"===e.key&&(a.exploreStore.setSearchstring(e.target.value),a.getSuggestions("submit"))},a.initState(),a}return(0,u.default)(t,e),(0,l.default)(t,[{key:"initState",value:function(){var e=this,t=this.props.authorization.checkLicense(A.default.LICENSE_KEY.Nlq),a=(new O.default).checkPrivileges([R.PERMISSION_KEY.ReportsShowExploreMenuValue]);if(!t||!a){var r=y.default.getReportUrl();this.props.router.push(r)}if(E.default.expiredLicense){var n=y.default.getSettingsUrl();this.props.router.push(n)}this.settingStore=new T.default(!0),this.locationKey=(0,p.uniqueId)("ExploreLocationKey_"),this.exploreStore=new v.default,E.default.currentUser.systemAdmin&&E.default.setDisableSettingLevel(!0),this.exploreStore.loadDashboardList(),this.getNLQStatus(),this.disposeObserveTenantID=(0,N.observe)(E.default,"tenantId",function(){E.default.silentUpdate||e.getNLQStatus()})}},{key:"componentWillReceiveProps",value:function(e){!(0,p.get)("location.state.keepState",e)&&e.location.key!==this.props.location.key&&this.initState()}},{key:"componentWillUnmount",value:function(){this.settingStore.destroy()}},{key:"render",value:function(){var e=!!(this.exploreStore.model.nlqDataandSchemaInfo&&this.exploreStore.model.nlqDataandSchemaInfo.nlqFustionResult&&this.exploreStore.model.nlqDataandSchemaInfo.nlqFustionResult.records.length>0);return c.default.createElement("div",null,c.default.createElement("section",{className:"izenda-Reports"},c.default.createElement(h.default,{settingStore:this.settingStore},c.default.createElement("div",{className:"izenda-TableLayout u_paddingTopBottom"},c.default.createElement(m.default,null,c.default.createElement("section",{className:"izenda-Wrapper-header home-main-wrapper"},c.default.createElement("div",{className:"board"},c.default.createElement("div",null,c.default.createElement(C.default,{activeTab:this.exploreStore.model.activeTab,isResult:!!(e&&this.exploreStore.getResultReportDefinition||e&&this.exploreStore.model.nlqVisualizationReportDefinition),onActiveTab:this.setActive.bind(this)}))),1==this.exploreStore.getactiveTab&&c.default.createElement(b.default,{handleQueryChange:this.handleChange.bind(this),onEnter:this.handleEnter.bind(this),onSearch:this.getSuggestions.bind(this,"submit"),previewReport:this.exploreStore.preview.bind(this),onSelectedSuggestion:this.setSelectedSuggestion.bind(this),store:this.exploreStore,disabledWrapper:this.disabledWrapper}),2==this.exploreStore.getactiveTab&&null!=this.exploreStore.getResultReportDefinition&&c.default.createElement(_.default,(0,n.default)({},this.props,{searchString:this.exploreStore.model.searchString,store:this.exploreStore,setActive:this.setActive.bind(this)})),3==this.exploreStore.getactiveTab&&this.exploreStore.model.nlqVisualizationRecommendationList&&this.exploreStore.model.nlqVisualizationRecommendationList.length>0&&this.exploreStore.model.nlqVisualizationReportDefinition&&c.default.createElement(S.default,(0,n.default)({},this.props,{store:this.exploreStore})),this.exploreStore.getISMLError?c.default.createElement(g.default,{containerClass:"no-search-result-container"}):null))))))}}]),t}(d.Component))||r;t.default=D,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.default.createElement("div",{className:e.containerClass},r.default.createElement("h3",null,n.default.getText("NO_SEARCH_RESULT")))};var r=i(a(0)),n=i(a(12));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b=Q(a(17)),N=a(20),A=Q(a(23)),R=Q(a(124)),O=Q(a(125)),I=Q(a(70)),D=Q(a(71)),P=Q(a(2)),L=Q(a(3)),M=a(5),F=Q(a(3291)),k=Q(a(545)),x=Q(a(163)),w=Q(a(3292)),B=Q(a(3293)),U=Q(a(117)),z=a(1),V=Q(a(349)),G=Q(a(16)),H=Q(a(37)),Y=Q(a(12)),j=a(337),K=a(421),W=Q(a(388)),q=a(498);function Q(e){return e&&e.__esModule?e:{default:e}}function X(e,t,a,r){a&&(0,b.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function J(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Z=(r=function(){function e(){(0,P.default)(this,e),X(this,"model",n,this),X(this,"storeDashboard",i,this),X(this,"alertDetails",o,this),X(this,"originalAllQuerySourceFields",l,this),X(this,"availableAllQuerySourceFields",s,this),X(this,"checkedQuerySources",u,this),X(this,"categoriesTypes",d,this),X(this,"ctaContent",c,this),X(this,"isNlqNotConfig",p,this),X(this,"noConfigPlaceHolder",f,this),X(this,"searchMode",h,this),X(this,"paging",m,this),X(this,"sortOrders",g,this),X(this,"isExploreView",E,this),X(this,"initializeAskYourQueryValue",y,this),X(this,"SetRecentReportView",v,this),X(this,"initializeQueryResultValue",T,this),X(this,"initializeVisualizationValue",_,this),X(this,"loadSearchList",S,this),X(this,"setVisualizationRecommendation",C,this),this.model=new w.default,this.alertDetails=new x.default,this.categoriesTypes=[],this.ctaContent=B.default.EXPLORE_CTAS,this.storeDashboard=new V.default,this.isNlqNotConfig=!0,this.noConfigPlaceHolder="",this.searchMode=0,this.paging={},this.sortOrders=[],this.isExploreView=!0}return(0,L.default)(e,[{key:"resetAlertDetails",value:function(){this.alertDetails.reset()}},{key:"SetISMLError",value:function(){null==this.model.nlqDataandSchemaInfo||null==this.model.nlqDataandSchemaInfo.nlqFustionResult&&null==this.model.nlqDataandSchemaInfo.reportDefinition?this.model.isMLError=!0:this.model.isMLError=!1}},{key:"SetISTobeSearch",value:function(e){this.model.isTobeSearch=e}},{key:"ReSetSetResults",value:function(){this.model.setResults=[]}},{key:"setSearchstring",value:function(e){this.model.searchString=e}},{key:"setSuggestionChangeModel",value:function(e){if(0==this.model.suggestionSearchList.length)this.model.suggestionSearchList.push(e.suggestions);else{var t=[].concat((0,D.default)(this.model.suggestionSearchList[0]),(0,D.default)(e.suggestions));this.model.suggestionSearchList=[],this.model.suggestionSearchList.push(t)}}},{key:"setSuggestionSubmitModel",value:function(e){this.model.activeTab=2,this.model.nlqDataandSchemaInfo=e,this.model.resultReportDefinition=e.reportDefinition,this.model.resultReportRecords=e.nlqFustionResult,this.model.noOfColumns=e&&e.nlqFustionResult&&e.nlqFustionResult.fieldsMapping,this.model.noOfTotalRecords=e&&e.nlqFustionResult&&e.nlqFustionResult.paging.totalRecord,this.SetISMLError(),this.model.nlpDict="{}"}},{key:"showSuggestResult",value:function(e){return F.default.suggestResult(this.getSearchstring,e,this.getnlpDict,G.default.getTenantId(),this.searchMode)}},{key:"getreportPartVisualization",value:function(e){return F.default.getreportPartVisualization(this.buildVisuaizationRequest(e))}},{key:"defaultVisualizationHandler",value:function(e){var t=this;if(t.model.nlqVisualizationRecommendationList=e.nlqVisualizationRecommendationList,t.resetIsRecommendationfromVisalizationList(),e.nlqVisualizationRecommendationList&&t.model.nlqVisualizationRecommendationList.length>0){t.model.resultReportDefinition=null,t.model.visualizationRecommendationList.map(function(t){e.nlqVisualizationRecommendationList.filter(function(e){return e.visualizationType==t.chartType}).length>0&&(t.isRecommended=!0)}),t.model.nlqVisualizationRecords=e.nlqFustionResult,t.model.resultReportRecords=e.nlqFustionResult,t.model.visualizationRecommendationList=(0,z.orderBy)(["isRecommended"],["desc"],t.model.visualizationRecommendationList);var a=this.model.nlqVisualizationRecommendationList.filter(function(e){return e.visualizationType==t.model.visualizationRecommendationList[0].chartType});t.model.nlqVisualizationReportDefinition=a[0].visualizationReportDefinition}}},{key:"resetIsRecommendationfromVisalizationList",value:function(){var e=this.defaultValuesofVisualitontype(),t=e.isSave,a=e.isRecommended,r=e.isDashboardSave,n=e.reportId,i=e.reportName;this.model.visualizationRecommendationList.map(function(e){e.isSave=t,e.isDashboardSave=r,e.reportId=n,e.reportName=i,"Grid"!=e.chartType&&(e.isRecommended=a)}),this.model.visualizationRecommendationList=(0,z.orderBy)(["position"],["asc"],this.model.visualizationRecommendationList)}},{key:"defaultValuesofVisualitontype",value:function(){return{isRecommended:!1,isSave:!1,isDashboardSave:!1,reportId:"",reportName:""}}},{key:"updateGetVisualizationRequest",value:function(e){this.model.nlqDataandSchemaInfo.nlqVisualizationReportDefinition=e,this.model.nlqDataandSchemaInfo.reportDefinition=e,this.model.resultReportDefinition=e}},{key:"updateGetVisualizationRecords",value:function(e){this.model.nlqVisualizationRecords=e,this.model.noOfColumns=e.fieldsMapping,this.model.noOfTotalRecords=e.paging.totalRecord,this.model.nlqDataandSchemaInfo.nlqFustionResult=e}},{key:"getConfigureNLQStatus",value:function(){return k.default.getConfigureNLQStatus(G.default.getTenantId())}},{key:"buildVisuaizationRequest",value:function(e){var t={};return t.reportKey={TenantId:G.default.getTenantId()},t.section=2,t.saveAs=!1,t.isTotalRecordQueryEnable=!0,t.ignoreCheckChange=!1,t.isSavingReport=!1,t.report=e,t.report.reportMode=j.REPORT_MODE,t.expandedLevel=-1,t.ignoreCache=!1,t.title="Grid",t.paging=this.paging,t.sortOrders=this.sortOrders,t.filters=[],t.reportMode=1,t}},{key:"getSearchResult",value:function(e,t){return this.search((0,M.toJS)(this.getSuggestionSearchList[e]),this.getSearchstring)}},{key:"search",value:function(e,t){if(e){for(var a=[],r=0;r-1&&a.push(e[r])}return a}}},{key:"setNLPDict",value:function(e){this.model.nlpDict=e}},{key:"resetResult",value:function(){this.ReSetSetResults()}},{key:"SetResults",value:function(e,t){this.ReSetSetResults(),e&&e.length>0?(this.model.setResults=e,this.model.showResult=!1):this.getSearchSuggestions()}},{key:"updateReportDefnitionInfo",value:function(e){this.paging=e.paging,this.sortOrders=e.sortOrders}},{key:"change1",value:function(e){this.model.nlqVisualizationReportDefinition=(0,I.default)({},e)}},{key:"getSearchSuggestions",value:function(){if(this.searchMode!=K.SEARCH_MODE.NATURAL){var e=this;this.ReSetSetResults(),this.showSuggestResult(!1).then(function(t){e.setSuggestionChangeModel(t.data),e.model.setResults=t.data.suggestions,e.model.nlpDict=null==t.data.dict?"{}":t.data.dict})}}},{key:"getALLReports",value:function(e){return F.default.getALLReports(e)}},{key:"loadALLReports",value:function(){var e=(0,O.default)(R.default.mark(function e(t,a){var r,n,i,o,l,s;return R.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.model.loadCategoriesHiearchy=[],t={tenantId:this.tenantId,isUncategorized:!1,skipItems:0,pageSize:1e5,parentIds:[],includeGlobalCategory:!0,isGlobal:null,criterias:[{key:"CategoryId"}]},e.next=4,U.default.loadCategorySettings();case 4:return r=e.sent,e.next=7,this.getALLReports(t);case 7:n=e.sent,this.categoriesTypescategoriesTypes=r,i=(0,z.find)({isGlobal:!0},r),o=(0,z.find)({isGlobal:!1},r),l=(0,z.find)({isGlobal:!1},n.data),void 0==(s=(0,z.find)({isGlobal:!0},n.data))&&(s=[]),void 0==l&&(l=[]),this.model.loadCategoriesHiearchy.push(this.getlocalCategory(o,(0,M.toJS)(l))),this.model.loadCategoriesHiearchy.push(this.getGlobalCategory(i,(0,M.toJS)(s))),this.model.OriginalLoadCategoriesHiearchy=(0,M.toJS)(this.model.loadCategoriesHiearchy);case 18:case"end":return e.stop()}},e,this)}));return function(t,a){return e.apply(this,arguments)}}()},{key:"getSubcategories",value:function(e){var t=[];return((0,z.isArray)(e)?(0,z.getOr)([],"subCategories",e[0]):(0,z.getOr)([],"subCategories",e)).forEach(function(e,a){var r={},n=(0,z.getOr)(null,"name",e),i=(0,z.getOr)(null,"id",e);r.isOpen=!1,r.newSubCategory="",r.newReport="",r.reportNameErrorClass=!1,r.currentSubCategory="",r.currentReport="";var o=(0,z.getOr)(null,"parentId",e);r.id=i,r.name=n||"Uncategorized",r.parentId=o,e.subCategories.length>0&&null==e.subCategories[0].name&&e.subCategories[0].reports.length>0&&null!=e.subCategories[0].parentId&&(r.reports=(0,z.getOr)([],"reports",e.subCategories[0])),t.push(r)}),t}},{key:"getdefaultSubcategories",value:function(e){var t=[],a={};return a.name=e,a.id=null,a.parentId=null,a.isOpen=!1,a.reportNameErrorClass=!1,a.dashboardNameErrorCls=!1,a.reports=[],a.isReportVisible=!1,t.push(a),t}},{key:"getdefaulDashboardtSubcategories",value:function(e){var t=[],a={};return a.name=e,a.id=null,a.parentId=null,a.isOpen=!1,a.reportNameErrorClass=!1,a.dashboardNameErrorCls=!1,a.dashboards=[],a.reports=[],a.isDashBoardVisible=!1,t.push(a),t}},{key:"getlocalCategory",value:function(e,t){var a={};return a.id=(0,z.getOr)(null,"id",e),a.name=(0,z.getOr)(null,"name",e),a.isGlobal=(0,z.getOr)(null,"isGlobal",e),a.isOpen=!1,a.SubCategory=[],a.isVisible=!1,a.subcategoryNameErrorClass=!1,t&&t.subCategories&&t.subCategories.length>0?a.SubCategory=this.getSubcategories(t):a.SubCategory=this.getdefaultSubcategories("Uncategorized"),a}},{key:"getGlobalCategory",value:function(e,t){var a={};return a.id=(0,z.getOr)(null,"id",e),a.name=(0,z.getOr)(null,"name",e),a.isGlobal=(0,z.getOr)(null,"isGlobal",e),a.isOpen=!1,a.SubCategory=[],a.isVisible=!1,a.subcategoryNameErrorClass=!1,t&&t.subCategories&&t.subCategories.length>0?a.SubCategory=this.getSubcategories(t):a.SubCategory=this.getdefaultSubcategories("Uncategorized"),a}},{key:"getDashboardLocalCategory",value:function(e,t){var a=this,r={};return r.id=(0,z.getOr)(null,"id",e),r.name=(0,z.getOr)(null,"name",e),r.isGlobal=(0,z.getOr)(null,"isGlobal",e),r.isOpen=!1,r.SubCategory=[],r.isVisible=!1,r.subcategoryNameErrorClass=!1,t&&t.length>0?t.forEach(function(e){r.SubCategory.push(a.getDashboardSubcategories(e))}):r.SubCategory=this.getdefaulDashboardtSubcategories("Uncategorized"),r}},{key:"getDashboardSubcategories",value:function(e){var t={},a=(0,z.getOr)(null,"name",e),r=(0,z.getOr)(null,"id",e);t.isOpen=!1,t.isDashBoardVisible=!1,t.dashboardNameErrorCls=!1,t.newSubCategory="",t.newDashBoard="",t.currentSubCategory="",t.currentDashboard="";var n=(0,z.getOr)(null,"parentId",e);return t.id=r,t.name=a||"Uncategorized",t.id=n,e.subCategories&&e.subCategories[0].dashboards.length>0&&(t.dashboards=e.subCategories[0].dashboards),t}},{key:"getDashboardGlobalCategory",value:function(e,t){var a=this,r={};return r.id=(0,z.getOr)(null,"id",e),r.name=(0,z.getOr)(null,"name",e),r.isGlobal=(0,z.getOr)(null,"isGlobal",e),r.isOpen=!1,r.SubCategory=[],r.isVisible=!1,r.subcategoryNameErrorClass=!1,t&&t.length>0?t.forEach(function(e){r.SubCategory.push(a.getDashboardSubcategories(e))}):r.SubCategory=this.getdefaulDashboardtSubcategories("Uncategorized"),r}},{key:"destroyloadCategoriesHiearchy",value:function(){this.model.loadCategoriesHiearchy=[]}},{key:"loadDashboardList",value:function(){var e=(0,O.default)(R.default.mark(function e(){var t,a,r,n,i,o,l;return R.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={fromIndex:0,pageSize:100,parentIds:[]},e.next=3,U.default.loadCategorySettings();case 3:return a=e.sent,e.next=6,this.storeDashboard.loadDashboardList(t);case 6:r=e.sent,n=(0,z.find)({isGlobal:!0},a),i=(0,z.find)({isGlobal:!1},a),o=r.filter(function(e){return 0==e.isGlobal}),void 0==(l=r.filter(function(e){return 1==e.isGlobal}))&&(l=[]),void 0==o&&(o=[]),this.model.loadDashboardCategoriesHiearchy.push(this.getDashboardLocalCategory(i,o)),this.model.loadDashboardCategoriesHiearchy.push(this.getGlobalCategory(n,(0,M.toJS)(l))),this.model.OriginalloadDashboardCategoriesHiearchy=(0,M.toJS)(this.model.loadDashboardCategoriesHiearchy);case 16:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"loadDashboardListNLQ",value:function(){var e=(0,O.default)(R.default.mark(function e(t,a){var r;return R.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={fromIndex:0,pageSize:100,parentIds:[]},"null"!=t&&(t=String.isGuidFormat(t)?t:null),e.next=4,this.storeDashboard.lazyLoadingDashboards(t,!0,a,r);case 4:case"end":return e.stop()}},e,this)}));return function(t,a){return e.apply(this,arguments)}}()},{key:"setNLQStatus",value:function(e){this.searchMode=e.searchMode,e.status===K.COMPLETED?e.isDataModelAccess?(this.isNlqNotConfig=!1,this.noConfigPlaceHolder=Y.default.getText("EXPLORE_SEARCH_PLACEHOLDER"),e.isNLQSchemaVisible||(this.isNlqNotConfig=!0,this.noConfigPlaceHolder="Active NLQ schema is disabled")):(this.isNlqNotConfig=!0,this.noConfigPlaceHolder=Y.default.getText("EXPLORE_SEARCH_ISDATAMODELACCESS")):(this.isNlqNotConfig=!0,this.noConfigPlaceHolder=Y.default.getText("EXPLORE_SEARCH_NLQ_NOT_CONFIGURED")),this.updateNLQConfigurationNotify(e)}},{key:"updateNLQConfigurationNotify",value:function(e){!e.isDataModelAccess&&e&&e.status===K.ERROR&&e.isMLCall?W.default.addNotification({notificationMessageID:q.MESSAGES.CONFIGURE_NLQ_FAILED.id}).then(function(){G.default.setUpdateNotifications()}):e&&e.status===K.ERROR&&e.isMLCall?W.default.addNotification({notificationMessageID:q.MESSAGES.CONFIGURE_NLQ_FAILED.id}).then(function(){G.default.setUpdateNotifications()}):e&&e.status===K.COMPLETED&&e.isMLCall&&W.default.addNotification({notificationMessageID:q.MESSAGES.CONFIGURE_NLQ_SUCCESSFUL.id}).then(function(){G.default.setUpdateNotifications()})}},{key:"preview",value:function(e){var t={pathname:H.default.getReportUrl("View",{id:e}),state:{fromReportDesigner:!1}};this.props.router.push(t)}},{key:"setNLQSaveReportNotification",value:function(e,t,a){if(t&&t){var r=!!e+","+t+","+a;return void W.default.addNotification({notificationMessageID:q.MESSAGES.SAVE_NLQ_REPORT_SUCCESS.id,replaceValues:r}).then(function(){G.default.setUpdateNotifications()})}}},{key:"resetStoreDashboard",value:function(){this.storeDashboard=new V.default}},{key:"getAddCategoryTreeItem",value:function(e,t,a){return!(t&""==t.trim()||!t)&&{id:null,type:a,name:t,parentId:null,state:0,modified:null,canDelete:!1,dashboards:[],reports:[],checked:!1,indeterminate:!1,numOfCheckedChilds:0,numOfChilds:0,isGlobal:e[a].isGlobal,tenantId:G.default.getTenantId()}}},{key:"getAvailableQuerySourceFields",value:function(e,t){var a=this;return F.default.getAllAvailableQuerySourceFields(e).then(function(r){a.originalAllQuerySourceFields=r;var n=a.UpdateAvailableFiledsCheckedStatus(e);a.availableAllQuerySourceFields=n,t.dataTree.readDataSource(n),a.checkedQuerySources=[]})}},{key:"UpdateAvailableFiledsCheckedStatus",value:function(e){var t=(0,M.toJS)(this.originalAllQuerySourceFields),a=e.reportPart[0].reportPartContent.columns.elements.map(function(e){return e.field.fieldId});return t[0].querySource&&t[0].querySource.length>0&&t[0].querySource.forEach(function(e){a&&a.length>0&&a.map(function(t){var a=e.fields.filter(function(e){return e.id==t});a.length>0&&e.fields.splice(e.fields.indexOf(a[0]),1)})}),t}},{key:"getFilterLogic",value:function(e,t){var a="";if(""===e||"1"===e)return a;var r=e.match(/[a-zA-Z]+/g);if(r&&1===r.length)return a;var n=t-1;r.length==n&&(n=r.length-1),r.splice(n,1);for(var i=0;i0&&d.default.createElement(T.default,{totalRecords:o.model.noOfTotalRecords,columns:o.model.noOfColumns}),l.reportFilters.filterFields.length>0?d.default.createElement("div",{className:"explore-report-header clearfix"},d.default.createElement("div",{className:"filters-wrap"},d.default.createElement("label",{className:"filter-label"}," Filters : "),d.default.createElement("ul",null,l.reportFilters.filterFields.map(function(t){return d.default.createElement(v.default,{key:t.uniqueId,itemData:t,removeNLQFilterItem:e})})))):null),d.default.createElement("div",{className:"explore-filter-wrapper-right explore-report-header clearfix"},d.default.createElement("div",{className:"wrapper-preview"},d.default.createElement("div",{className:"u_table u_paddingInner u-bgWhite preview-records default"},d.default.createElement("span",{className:"u_tableCell control-label"},i.getText("REPORTDESIGNER_LABEL_PREVIEW_RECORDS")),d.default.createElement("div",{className:"u_tableCell u_fullWidth"},d.default.createElement(E.default,{options:y.default.PREVIEW_RECORD,value:t.previewRecord,labelField:"label",valueField:"value",onChange:this.changePreviewRecord})))))),d.default.createElement("div",{className:"explore-report-wrapper"},d.default.createElement(p.default,(0,r.default)({setViewerContentRef:this.setViewerContentRef,className:"content-container",bottom:400},this.props,{store:l,reportViewerStore:s,viewerContentHeight:330})),d.default.createElement(_.default,{localization:i,reportDesignerFieldsStore:l,exploreStore:o,reportBody:l.reportBody})))}}]),t}(u.PureComponent);t.default=C,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(3296);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(0)),n=i(a(3297));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.itemData,a=e.removeNLQFilterItem,i=r.default.createElement(n.default,{itemData:t,removeNLQFilterItem:a});return r.default.createElement("li",null,i)},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(0),i=(r=n)&&r.__esModule?r:{default:r},o=a(129);t.default=function(e){var t=e.removeNLQFilterItem,a=e.itemData,r=a.alias,n=a.value,l=a.operatorName,s=n,u=a.dataType.toLowerCase();if(("datetime"==u||"date"==u)&&(s=(0,o.formattedDateTime)(n),"between"==l.toLowerCase())){var d=n.split(";#");s=(0,o.formattedDateTime)(d[0])+" and "+(0,o.formattedDateTime)(d[1])}return i.default.createElement("span",null,i.default.createElement("i",{className:"icon icon-filter"}),r," ",l," ",s.replace(";#"," and "),i.default.createElement("i",{className:"icon icon-cancel",onClick:t.bind(void 0,a)}))},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=g(a(6)),l=g(a(2)),s=g(a(3)),u=g(a(7)),d=g(a(8)),c=a(0),p=g(c),f=g(a(12)),h=g(a(4)),m=g(a(1144));function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,h.default)(m.default)((i=n=function(e){function t(e){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.totalRecords,a=e.columns,r=t>1?f.default.getText("RECORDS"):f.default.getText("RECORD"),n=a.length>1?f.default.getText("COLUMNS"):f.default.getText("COLUMN");return p.default.createElement("div",{className:"recordCount"},"(",f.default.getText("TOTAL")," ",t," ",r,", ",a.length," ",n,")")}}]),t}(c.Component),n.propTypes={totalRecords:c.PropTypes.number.isRequired,columns:c.PropTypes.object.isRequired},n.displayName="Records Count",r=i))||r;t.default=E,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(3300);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=v(a(6)),i=v(a(2)),o=v(a(3)),l=v(a(7)),s=v(a(8)),u=a(0),d=v(u),c=v(a(4)),p=v(a(3301)),f=v(a(98)),h=v(a(184)),m=v(a(19)),g=v(a(75)),E=a(5),y=a(1);function v(e){return e&&e.__esModule?e:{default:e}}var T="QuerySource",_=(0,c.default)(p.default)(r=function(e){function t(){var e,a,r,o;(0,i.default)(this,t);for(var s=arguments.length,u=Array(s),c=0;c0&&(0,y.every)("checked",e.nodes):e.checked}(e),onChange:r.props.onChange.bind(r,e,i)}),d.default.createElement(g.default,{text:e.value,tooltip:e.value,className:"QuerySource"==e.nodeType?"tablename":""}))},r.contains=function(e,t){return e.toLowerCase().includes(t.toLowerCase())},o=a,(0,l.default)(r,o)}return(0,s.default)(t,e),(0,o.default)(t,[{key:"searchBox",value:function(){var e=this,t=this.props,a=t.exploreStore,r=t.reportDesignerFieldsStore,n=t.setTreeData,i="";return d.default.createElement(f.default,{value:i,onChange:function(t){i=t.target.value;var o=(0,E.toJS)(a.availableAllQuerySourceFields),l=a.checkedQuerySources;o.map(function(t){t.querySource.map(function(t){var r=[];t.fields&&t.fields.map(function(t){e.contains(t.name,i)&&(t.isCheck=l.length>0&&(0,y.some)(function(e){return e.field.id==t.id},l),r.push(t))}),t.fields=r,a.checkedQuerySources=(0,y.remove)(function(e){return(0,y.isUndefined)(e.field)},a.checkedQuerySources)})}),r.dataTree.readDataSource(o),n()}})}},{key:"render",value:function(){var e=this.props,t=this.props,a=t.localization,r=t.displayTreeData,n=t.actionQueryWrapper,i=t.displayQueryWrapper;return d.default.createElement("div",{className:"query-result-container"},d.default.createElement("div",{className:"add-column-wrapper",onClick:n},d.default.createElement("i",{className:"arrow right"}),d.default.createElement("span",{className:"add-column-label"},a.getText("QUERY_RESULT_ADD_COLUMNS"))),i&&d.default.createElement("div",{className:"query-result-wrapper"},this.searchBox(),d.default.createElement(h.default,{nodes:r,renderNode:this.renderNode,getKey:(0,y.get)("key"),getChildNodes:(0,y.get)("nodes"),collapsed:!1}),d.default.createElement("button",{className:"btn btn-primary",onClick:e.onApplySeletedField},a.getText("QUERY_RESULT_APPLY"))))}}]),t}(u.Component))||r;t.default=_,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=c(a(14)),i=a(5),o=c(a(48)),l=c(a(474)),s=a(99),u=(c(a(282)),a(11)),d=a(1);function c(e){return e&&e.__esModule?e:{default:e}}var p=d.map.convert({cap:!1}),f="Field",h="QuerySource";function m(e,t,a,r,n){return(0,i.observable)({key:a,index:n,value:e.name,nodes:t,checked:e.isCheck,nodeType:r,indeterminate:!1})}function g(e,t){var a=e.exploreStore;a.checkedQuerySources=(0,d.remove)(function(e){return e.field.name===t.value},a.checkedQuerySources)}t.default=(0,u.compose)((0,u.withState)("displayQueryWrapper","setDisplayQueryWrapper",!1),(0,u.withState)("displayTreeData","setTreeData",[]),(0,u.withProps)(function(e){return{treeFields:{selectedData:[]},displayTreeData:(t=e.reportDesignerFieldsStore.displayFieldQuerySource,p(function(e,t){return m(e,p(function(e,t){return m(e,[],a.name+"_"+e.id+"_"+e.name,"Field",t)},(a=e).fields),e.id+"_"+e.name,"QuerySource",t);var a},t))};var t}),(0,u.withHandlers)({actionQueryWrapper:(0,d.curry)(function(e){var t=e.setDisplayQueryWrapper,a=e.displayQueryWrapper;t(!a)}),onChange:(0,i.action)((0,d.curry)(function(e,t,a){switch(t.checked=!t.checked,t.nodeType){case f:var r=a.data;r.indeterminate=!r.checked&&(0,d.some)("checked",r.nodes),!t.checked&&g(e,t);break;case h:t.indeterminate=!1,(0,d.forEach)(function(a){a.checked=t.checked,!t.checked&&g(e,a)},t.nodes)}!function(e,t){var a=[];(0,d.forEach)(function(e){0==e.nodes.length&&e.checked&&a.push({querySource:e.index}),(0,d.forEach)(function(t){t.checked&&a.push({field:t.index,querySource:e.index})},e.nodes)},e.displayTreeData),function(e,t,a){var r=e.treeFields,i=e.reportDesignerFieldsStore,o=e.exploreStore;r.selectedData=t;var l=function(e,t,a){var r=t.exploreStore;t.reportBody,t.treeFields;(0,d.forEach)(function(t){if((0,d.isUndefined)(t.field)||a.checked&&a.nodeType==h&&t.querySource.id==a.key.split("_")[0]){var n=r.availableAllQuerySourceFields[0].querySource.filter(function(e){return e.id==t.querySource.id}),i=n[0].fields;t.querySource.fields=i,(0,d.forEach)(function(a){e.push({field:a,querySource:t.querySource})},i),e=(0,d.remove)(function(e){return(0,d.isUndefined)(e.field)},e)}},e);var i=[];return e.forEach(function(e){i.some(function(t){return t.field.id===e.field.id})||i.push((0,n.default)({},e))}),i}((0,d.map)(function(e){var t=i.displayFieldQuerySource[e.querySource],a=t.fields[e.field];return{field:a,querySource:t}},r.selectedData),e,a);o.checkedQuerySources=o.checkedQuerySources.length>0?function(e,t,a){t.map(function(t){e.checkedQuerySources.push(t)}),a.checked||(e.checkedQuerySources=(0,d.remove)(function(e){return e.querySource.id==a.key.split("_")[0]},e.checkedQuerySources));return e.checkedQuerySources}(o,l,a):l,o.checkedQuerySources=function(e,t){if(e.length>0){var a=[];return e.forEach(function(e){a.some(function(t){return t.field.id===e.field.id})||a.push((0,n.default)({},e))}),a}return e}(o.checkedQuerySources)}(e,a,t)}(e,t)})),onApplySeletedField:(0,d.curry)(function(e){var t=e.exploreStore,a=e.reportBody,n=e.treeFields,u=t.checkedQuerySources;if(!(0,d.isEmpty)(u)){var c=(0,d.flow)((0,d.map)(function(e){return{dataType:e.field.izendaDataType,querySourceId:e.querySource.id}}),(0,d.uniqBy)(function(e){return e.dataType+"_"+e.querySourceId}),d.compact)(u),p={promiseFunctions:null,promiseFormats:null};(0,d.isEmpty)(c)||(p={promiseFunctions:l.default.getFunctionsData(o.default.FIELD_FUNCTION_MODE.FieldProperty,c),promiseFormats:l.default.getFormatsData((0,d.uniq)((0,d.map)("dataType",c)))});var f=(m=a.reportParts[0].reportPartContent,g=(0,d.get)("containerCollection",m),(0,d.find)({name:s.CONTAINER_NAME.COLUMNS},g)),h=a.reportParts[0].reportPartContent.columns.elements.length;return(0,r.map)(u,function(t){var a=t.querySource,r=t.field;return h++,e.reportBody.reportParts[0].insertFieldToContainer(f,r,a,h,null,p)}).then(function(){e.reportDesignerFieldsStore.updateReportsParts(!1,null,!0),function(e,t){var a=e.exploreStore,r=e.reportDesignerFieldsStore,n=e.setTreeData,o=(0,i.toJS)(a.availableAllQuerySourceFields);o.map(function(e){e.querySource.map(function(e){e.fields&&t&&t.map(function(t){var a=e.fields.filter(function(e){return e.id==t.field.id});a.length>0&&e.fields.splice(e.fields.indexOf(a[0]),1)})})}),r.dataTree.readDataSource(o),n(),a.availableAllQuerySourceFields=o}(e,u),n.selectedData=[],t.checkedQuerySources=[]})}var m,g})})),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=I(a(14)),i=I(a(6)),o=I(a(2)),l=I(a(3)),s=I(a(7)),u=I(a(8)),d=a(0),c=I(d),p=I(a(277)),f=I(a(26)),h=I(a(808)),m=I(a(284)),g=I(a(338)),E=I(a(556)),y=I(a(3303)),v=I(a(3305)),T=I(a(3307)),_=I(a(62)),S=a(40),C=a(49),b=I(a(3309)),N=I(a(171)),A=I(a(554)),R=a(1),O=I(a(86));function I(e){return e&&e.__esModule?e:{default:e}}var D=(0,N.default)()(A.default),P=2e3,L=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return a.handleMouseHover=function(e){a.setState({isHovering:!0,hoverActivevisualization:e})},a.handleMouseHoverLeave=function(){a.setState({isHovering:!1})},a.setViewerContentRef=function(e){a.viewerContentNode=e,a.updateViewerContentHeight()},a.updateViewerContentHeight=function(){if(a.viewerNode){var e=a.viewerNode.getBoundingClientRect(),t=e.top,r=e.height,n=window.innerHeight-t-r;n!==a.footerHeight&&(a.footerHeight=n)}if(a.viewerContentNode){var i=a.viewerContentNode.getBoundingClientRect().top,o=window.innerHeight-i-a.footerHeight;o!==a.viewerContentHeight&&(a.viewerContentHeight=o)}},a.setVisualizationRecommendation=function(e){if(e.chartType===a.state.currentActiveVisualizationType||1===a.props.store.model.nlqVisualizationRecommendationList.length)return!1;if(a.reportDesignerFieldsStore.setNeedToExploreStoreReportInfoUpdate(!0),!e.isRecommended)return!1;var t=a.props.store.model.nlqVisualizationRecommendationList.filter(function(t){return t.visualizationType==e.chartType});t.length>0&&(a.reportDesignerFieldsStore.exploreRecord=a.props.store.getVisualizationRecords,a.masterStore.model.read(t[0].visualizationReportDefinition),a.masterStore.model.changeName(e.reportName),a.masterStore.model.resetReportKey(e.reportId)),a.masterStore.model.setReportPartTitle(""),a.setState({currentActiveVisualizationType:e.chartType,isSave:e.isSave,isDashboardSave:e.isDashboardSave,reportId:e.reportId,reportName:e.reportName})},a.displayPermissionAlert=function(e){a.props.store.alertDetails.set({success:!1,message:e}),setTimeout(function(){this.props.store.alertDetails.reset()},P)},a.onSaveReport=function(){a.props.authorization.checkPrivileges([S.PERMISSION_KEY.ReportsCanCreateNewReportValue])?(a.masterStore.model.resetReportKey(null),a.openPopup()):(a.displayPermissionAlert(a.props.localization.getText("COMMON_MESSAGES_NOPERMISSION_CREATEREPORT")),a.setState({isStatus:!a.state.isStatus}))},a.onSaveDashBoard=function(){a.props.authorization.checkPrivileges([S.PERMISSION_KEY.DashboardsCanCreateNewDashboardValue])?a.openPopupDashBoard():(a.displayPermissionAlert(a.props.localization.getText("COMMON_MESSAGES_NOPERMISSION_CREATEDASHBOARD")),a.setState({isStatus:!a.state.isStatus}))},a.onSaveIsReport=function(){var e=a.props.authorization.checkPrivileges([S.PERMISSION_KEY.ReportsCanCreateNewReportValue]),t=a.props.authorization.checkPrivileges([S.PERMISSION_KEY.DashboardsCanCreateNewDashboardValue]);e&&t?a.openSaveIsReport(!1):(a.displayPermissionAlert(a.props.localization.getText("COMMON_MESSAGES_NOPERMISSION_GENERAL")),a.setState({isStatus:!a.state.isStatus}))},a.onSaveDashboardStatus=function(e){var t=a.state.currentActiveVisualizationType;a.props.store.model.visualizationRecommendationList.forEach(function(e){t==e.chartType&&(e.isDashboardSave=!0)}),a.setState({isDashboardSave:e})},a.onSaveReportAgain=function(){var e=a.props,t=e.store,r=e.localization;t.alertDetails.set({success:!0,message:r.getText("NLQ_MODAL_REPORT_ALREADY_CREATED_MSG")}),setTimeout(function(){t.alertDetails.reset()},P),a.setState({isStatus:!a.state.isStatus})},a.onSaveDashBoardAgain=function(){var e=a.props,t=e.store,r=e.localization;t.alertDetails.set({success:!0,message:r.getText("NLQ_MODAL_DASHBOARD_ALREADY_CREATED_MSG")}),setTimeout(function(){t.alertDetails.reset()},P),a.setState({isDashboardStatus:!a.state.isDashboardStatus})},a.onSaveStatus=function(e){var t=a.masterStore.model,r=t.reportName,n=t.reportId,i=a.props.store,o=a.state.currentActiveVisualizationType;i.model.visualizationRecommendationList.forEach(function(e){o==e.chartType&&(e.isSave=!0,e.reportName=r,e.reportId=n)}),a.setState({isSave:e,reportName:r,reportId:n})},a.isReportActive=function(){a.props.authorization.checkPrivileges([S.PERMISSION_KEY.ReportsCanCreateNewReportValue])?a.openSaveIsReport(!0):(a.displayPermissionAlert(a.props.localization.getText("COMMON_MESSAGES_NOPERMISSION_GENERAL")),a.setState({isStatus:!a.state.isStatus}))},a.isDownloadCompleted=function(e){var t=a.state.isDownloadComplete,r=(0,n.default)({},t);r=e,a.setState({isDownloadComplete:r})},a.state={showSetting:!0,isShowSettingExpanded:!1,isHovering:!1,currentActiveVisualizationType:e.store.model.nlqVisualizationReportDefinition.reportPart[0].reportPartContent.properties.chartType,hoverActivevisualization:null,isSave:!1,isDashboardSave:!1,isStatus:!1,isDashboardStatus:!1,isDownloadComplete:!1},a.masterStore=new m.default(!0,"",null,null,!1,!0,a.props.store.model.nlqVisualizationReportDefinition),a.masterStore.model.markDirty(),a.reportDesignerFieldsStore=new g.default(a.masterStore,!0,0,a.props.store),a.reportDesignerFieldsStore.setNeedToExploreStoreReportInfoUpdate(!0),a.reportStore=new E.default,e.store.loadALLReports(null,a.masterStore),a}return(0,u.default)(t,e),(0,l.default)(t,[{key:"componentWillUnmount",value:function(){this.props.store.resetAlertDetails()}},{key:"showSettingInfo",value:function(){this.setState({isShowSettingExpanded:!this.state.isShowSettingExpanded})}},{key:"toggleHoverState",value:function(e){return{isHovering:!e.isHovering}}},{key:"rendervisualizationRecommendationList",value:function(){var e=this,t=this.state.currentActiveVisualizationType?this.state.currentActiveVisualizationType:"Grid";return this.props.store.getVisualizationRecommendationList.map(function(a,r){return c.default.createElement("div",{className:"chart-box-col "+(t==a.chartType?"active":""),x:!0,onMouseEnter:e.handleMouseHover.bind(e,a.visuliazationInfo),onMouseLeave:e.handleMouseHoverLeave.bind(e,""),key:r,onClick:e.setVisualizationRecommendation.bind(e,a)},c.default.createElement("div",{title:a.chartType,className:"chart-box "+a.sectionStyle.backgroundImage+" "+(a.isRecommended?"":"disabled")}),a.isRecommended&&c.default.createElement("span",{className:"label-box"},a.isRecommended?a.recommendedText:a.chartType))})}},{key:"renderVisualization",value:function(e){if(e&&e.rules.length>0){var t=e.rules.map(function(e,t){return c.default.createElement("div",{key:t,className:"info-btn-wrapper"},c.default.createElement("span",{className:"info-text"},e.Number),c.default.createElement("button",{className:"info-btn",style:{backgroundColor:e.bgColor?e.bgColor:""}},c.default.createElement("i",{className:e.icon}),e.type))});return c.default.createElement("div",{className:"setting-chart-info"},c.default.createElement("p",null,c.default.createElement("strong",null,e.name)),t)}return null}},{key:"openPopup",value:function(){var e=this.props,t=this.onSaveStatus,a=this.masterStore,n=this.props,i=n.store,o=n.localization;((0,R.isNil)(a.model.categoryId)||a.saveAsMode?a.loadCategories():(0,r.join)(a.loadCategories(),a.loadSubCategories(a.model.categoryId))).then(function(){return e.openPopup(y.default,{store:a,localizer:o,exploreStore:i,onSaveStatus:t})})}},{key:"openPopupDashBoard",value:function(){var e=this.masterStore,t=this.onSaveDashboardStatus,a=this.props,r=a.store,n=a.localization,i=a.authorizationConstants,o=a.store,l=o.storeDashboard.model.dashboardDetail,s=o.storeDashboard;this.props.openPopup(v.default,{store:e,localizer:n,exploreStore:r,onSaveDashboardStatus:t,authorizationConstants:i,reportName:this.state.reportName,popupConfig:O.default.SAVE_POPUP_CONFIG,getCategoriesFunc:s.lazyLoadCategories,changeName:l.changeName.bind(l),changeCategoryType:l.changeCategoryType.bind(l),changeCategory:l.changeCategory.bind(l),changeDashboard:l.changeDashboard.bind(l)})}},{key:"openSaveIsReport",value:function(e){var t=this.props.localization;this.props.openPopup(T.default,{localizer:t,openSaveReportFun:this.onSaveReport.bind(this),isExportClick:e})}},{key:"render",value:function(){var e=this,t=this.state,a=t.isShowSettingExpanded,r=t.hoverActivevisualization,i=t.isSave,o=t.isStatus,l=t.isDashboardSave,s=t.isDashboardStatus,u=t.isDownloadComplete,d=this.renderVisualization(r),m=this.props||{},g=m.store.alertDetails,E=g.message,y=g.alertType,v=m.authorization,T=m.localization,N=v.checkLicense(C.LICENSE_KEY.Exporting),A=this.reportDesignerFieldsStore.masterModel.displayMode,R=this.state,O=R.reportId,I=R.reportName;return c.default.createElement("div",{className:"report-viewer-content w_96"},c.default.createElement(b.default,{isDownloadComplete:u,dloadLabel:T.getText("NOTIFICATION_DOWNLOAD_COMPLETE")}),c.default.createElement(f.default,null,c.default.createElement("div",{className:"explore-visualization-wrapper"},c.default.createElement("div",{className:"explore-report-header clearfix"},c.default.createElement("div",{className:"visualization-title-wrapper"},c.default.createElement(_.default,{type:y},E),c.default.createElement("h1",null,o,s)),c.default.createElement("div",{className:"visualization-actions-wrapper"},c.default.createElement("button",{className:"action-btn",onClick:i?this.onSaveReportAgain.bind(this):this.onSaveReport.bind(this)},c.default.createElement(p.default,{className:"icon-save-report",title:"Save Report"})),c.default.createElement("button",{className:"action-btn",onClick:i?l?this.onSaveDashBoardAgain.bind(this):this.onSaveDashBoard.bind(this):this.onSaveIsReport.bind(this)},c.default.createElement(p.default,{className:"icon-save-dashboard",title:"Add to Dashboard"})),N&&c.default.createElement(D,{name:I,store:this.reportStore,export:this.reportStore.exportReport,designerStore:this.masterStore,id:O,disabled:A.doesDisableExportBtn,keys:[S.PERMISSION_KEY.ReportsActionsExporting],isNLQVisualization:!0,isNLQVisualizationActive:i,isReportActive:this.isReportActive,isDownloadCompleted:this.isDownloadCompleted}))),c.default.createElement("div",{className:"explore-visualization-body clearfix "+(a?"visible-open":" ")},c.default.createElement("div",{className:"report-wrapper"},c.default.createElement(h.default,(0,n.default)({setViewerContentRef:this.setViewerContentRef,className:"content-container",bottom:400},this.props,{store:this.reportDesignerFieldsStore,reportViewerStore:this.reportStore,viewerContentHeight:350}))),c.default.createElement("div",{className:"explore-visualization-settings"},c.default.createElement("div",{className:"setting-tab-content "+(a?"collapse":"expand")},c.default.createElement("div",{className:"seting-tab-header"},c.default.createElement("button",{className:"collapse-setting-btn",onClick:function(){return e.showSettingInfo()}},c.default.createElement(p.default,{className:"icon-arrow-right"})),c.default.createElement(p.default,{className:"icon-bar-chart "}),"Visual Styles"),c.default.createElement("div",{className:"setting-tab-body"},c.default.createElement("div",{className:"chart-type-wrapper clearfix"},this.rendervisualizationRecommendationList()),c.default.createElement("div",{className:"chart-type-definition-section"},this.state.isHovering&&d))),c.default.createElement("div",{className:"setting-tab-wrapper "+(a?" d-block":"d-none")},c.default.createElement("div",{className:"u_textRight"},c.default.createElement("div",{className:"setting-tab",onClick:function(){return e.showSettingInfo()}},c.default.createElement(p.default,{className:"icon-arrow-right icon-arrow-left"}),c.default.createElement(p.default,{className:"icon-bar-chart "}),"Visual Styles")),c.default.createElement("div",{className:"u_textRight",style:{display:"none"}},c.default.createElement("div",{className:"setting-tab"},c.default.createElement(p.default,{className:"icon-cancel"})," Field Properties")),c.default.createElement("div",{className:"u_textRight",style:{display:"none"}},c.default.createElement("div",{className:"setting-tab"},c.default.createElement(p.default,{className:"icon-cancel"})," Report Properties"))))))))}}]),t}(d.PureComponent);t.default=L,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=S(a(6)),i=S(a(2)),o=S(a(3)),l=S(a(7)),s=S(a(8)),u=a(0),d=S(u),c=S(a(4)),p=S(a(32)),f=S(a(3304)),h=S(a(15)),m=S(a(57)),g=S(a(29)),E=S(a(47)),y=S(a(18)),v=(S(a(178)),a(1)),T=S(a(25)),_=S(a(19));function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,T.default)()(_.default),b=(0,c.default)(f.default)(r=function(e){function t(){var e,a,r,o;(0,i.default)(this,t);for(var s=arguments.length,u=Array(s),c=0;c0?r.getDashboardList(u):r.addnewDashboardAction(t);case 11:case"end":return e.stop()}},e,p)})),function(e,t,a){return c.apply(this,arguments)}),r.addnewDashboardAction=function(e){var t=[],a=e.addNewDashboardList;setTimeout(function(){a(t)},C)},r.getDashboardList=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=[],n=[];return(a=e[0].subCategories.filter(function(e){return e.name==t||e.name})[0].subCategories[0].dashboards).filter(function(e){return n.push({id:e.id,name:e.name})}),r.props.addNewDashboardList(n),a},r.getSaveInCategory=function(e,t){return(0,v.flow)((0,v.filter)({isGlobal:e}),v.head)(t)},r.getSelectedCategory=function(e){return(0,v.isNil)(e.categoryId)?null:{id:e.categoryId,name:e.categoryName}},r.getSelectedDashboard=function(e){return(0,v.isNil)(e.id)?null:{id:e.id,name:e.name}},r.doesShowSaveInto=function(){return(0,v.isNil)(T.default.tenantId)&&!!T.default.currentUser.systemAdmin},r.handleChange=function(e){r.setState((0,n.default)({},e.target.name,e.target.value))},r.onChangeSaveInHandler=function(e){(0,r.props.changeSaveInHandler)(e),r.callNLQAPI(r.props,null,r)},r.onChangeCategoryHandler=function(e,t){(0,r.props.changeCategoryHandler)(e,t),r.callNLQAPI(r.props,e,r)},r.renderContainer=function(){var e=r.props,t=r.props,a=t.localizer,n=t.authorization,i=t.selectedDashboardErrorCls,o=t.selectedDashboardErrorMsg,l=t.reportName,s=t.model,u=t.componentState,d=t.authorizationConstants.PERMISSION_KEY,c=t.popupConfig,p=t.getCategories,h=t.searchCategoryDataHandler,m=t.resetCategory,g=t.changeDashboardHandler,y=t.onFocusDashboardHandler,T=(0,v.get)("id",r.getSaveInCategory(s.isGlobal,u.localGlobalCategories)),S=n.checkPrivileges([d.DashboardsCanCreateNewCategoryValue]),C=r.getSelectedCategory(s),b=r.getSelectedDashboard(s),N=a.getText("REPORTDESIGNER_MESSAGE_HINT_CATEGORY"),A=a.getText("REPORTDESIGNER_DASHBOARD_MESSAGE_HINT_CATEGORY"),R=e.addNewCategoryHandler,O=e.addNewDashboardHandler;S||(R=function(){return!1},N=null);var I=i?"error-text dashboard-error-text":" ";return f.default.createElement(E.default,{className:"form-horizontal nlq-form nlq-dashboard"},f.default.createElement(E.default.Row,null,f.default.createElement(E.default.Col,{cols:"12"},f.default.createElement("div",{className:"labtxt"},"Report Name"),f.default.createElement("input",{type:"text",name:"title",defaultValue:l,readOnly:!0,className:"title_txtbox"}))),r.doesShowSaveInto()&&f.default.createElement(E.default.Row,null,f.default.createElement(E.default.Col,{cols:"12"},f.default.createElement("div",{className:"labtxt"},a.getText("NLQ_SAVE_POPUP_SAVE_TO")),f.default.createElement(_.default,{options:u.localGlobalCategories,labelKey:"name",valueKey:"id",value:T,onChange:r.onChangeSaveInHandler,scalable:!1,textboxMode:!1}))),f.default.createElement(E.default.Row,null,f.default.createElement(E.default.Col,{cols:"12"},f.default.createElement("div",{className:"labtxt"},c.CATEGORY),f.default.createElement(_.default,{simpleValue:!0,options:u.categories,labelKey:"name",valueKey:"id",value:C,noResultsText:N,onChange:r.onChangeCategoryHandler,onAddNew:R,isLazyLoading:!0,getData:p,onSearchLazy:h,onCloseMenu:m}))),f.default.createElement(E.default.Row,null,f.default.createElement(E.default.Col,{cols:"12"},f.default.createElement("div",{className:"labtxt"},c.DASHBOARD_NAME),f.default.createElement("div",{className:I},o&&f.default.createElement("span",{className:"error-report-message-name error-dashboard-message-name"},o),f.default.createElement(_.default,{simpleValue:!0,options:u.dashboardListData,labelKey:"name",valueKey:"id",value:b,noResultsText:A,onChange:g,onFocus:y,onAddNew:O})))))},u=a,(0,d.default)(r,u)}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.model,a=t.dashboardName,r=t.reportType,n=t.categoryId,i=t.subCategoryId,o=t.isGlobal;y.default.loadCategorySettings().then(function(t){e.props.updateComponentState((0,v.set)("localGlobalCategories",t))}),this.props.updateOriginalState({dashboardName:a,reportType:r,categoryId:n,subCategoryId:i,isGlobal:o}),this.callNLQAPI(this.props,null,this)}},{key:"componentWillUnmount",value:function(){T.default.resetCheckDirtyFunction()}},{key:"render",value:function(){var e=this.props,t=e.onClosing,a=e.localization,r=a.getText("COMMON_LABEL_DASHBOARD_NAME");return f.default.createElement(m.default,{visible:!0,onClosing:t,autoClose:!1,type:"none",sizeClass:"explore-modal"},f.default.createElement(m.default.Header,{title:r}),f.default.createElement(m.default.Body,null,this.renderContainer()),f.default.createElement(m.default.Footer,null,f.default.createElement(m.default.ConfirmationButton,{type:"accept"},a.getText("COMMON_LABEL_OK")),f.default.createElement(m.default.ConfirmationButton,{type:"cancel"},a.getText("COMMON_LABEL_CANCEL"))))}}]),t}(p.PureComponent))||r;t.default=b,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(11),n=a(1),i=u(a(18)),o=u(a(86)),l=a(123),s=u(a(16));function u(e){return e&&e.__esModule?e:{default:e}}var d=null,c=3e3;function p(e){var t=!1,a=e.exploreStore.storeDashboard.model.dashboardDetail.dashboard.id;(null==a||a&&a.includes("new_"))&&(t=!0),t?function(e){var t=e.exploreStore.storeDashboard,a=e.setSelectedDashboardErrorMsg,r=e.setSelectedDashboardErrorCls,i=e.localizer,o=e.model;if(o&&(0,n.isEmpty)(o.id))return a(i.getText("NLQ_MODAL_DASHBOARD_NAME_MANDATORY")),void r(!0);t.model.dashboardDetail.resetDashboardPart(),f(e)}(e):function(e){f(e)}(e)}function f(e){var t=e.store,a=e.exploreStore.storeDashboard,r=e.exploreStore,i=e.setSelectedDashboardErrorMsg,l=e.setSelectedDashboardErrorCls,s=e.localizer,u=a.model.dashboardDetail.addDashboardTile();a.model.dashboardDetail.addDashboardPart(u,t.model.getReportDefinition().report,o.default.TILE_TYPE.reportPart),a.saveDashboard(a.model).then(function(t){var o=(0,n.get)("messages",t);if(o)return i(o[0].messages[0]),void l(!0);if(t.success){r.alertDetails.set({success:!0,message:s.getText("COMMON_MESSAGES_DETAILS_WERE_SAVED")});var u=a.model.dashboardDetail;r.setNLQSaveReportNotification(t.dashboard,t.dashboard.id,u.dashboard.name),e.onSaveDashboardStatus(!0),setTimeout(function(){r.alertDetails.reset(),a.model.dashboardDetail.changeCategory(null,""),a.model.dashboardDetail.changeDashboard(null,"")},c),e.onAccept()}})}function h(e,t,a){var r,i,o=(0,n.get)("id",(r=e.model.isGlobal,i=e.componentState.localGlobalCategories,(0,n.flow)((0,n.filter)({isGlobal:r}),n.head)(i))),u={skipItems:t.fromIndex,pageSize:t.pageSize,type:2,criteria:[{key:"name",value:d}],parentIds:[o],includeUncategory:!1,tenantId:s.default.tenantId};return e.getCategoriesFunc(u).then(function(t){var r=(0,n.clone)(e.componentState);return a&&(r.categories=[]),(0,l.concatArray)(r.categories,t.categories,"id",!t.isLastPage),r.isLastPageCategorySearch=t.isLastPage,e.updateComponentState(r),t.categories})}t.default=(0,r.compose)((0,r.withState)("saveInto","changeSaveInto",function(e){return e.store.model.isGlobal?i.default.GLOBAL_REPORT_ENUM.GLOBAL:i.default.GLOBAL_REPORT_ENUM.LOCAL}),(0,r.withState)("model","setModel",function(e){return e.exploreStore.storeDashboard.model.dashboardDetail.dashboard}),(0,r.withState)("componentState","updateComponentState",function(){return{categories:[],isLastPageCategorySearch:!1,isLastPageSubCategorySearch:!1,localGlobalCategories:[],dashboardListData:[]}}),(0,r.withState)("original","updateOriginalState",function(){return{reportName:"",reportType:"",categoryId:null,subCategoryId:null,isGlobal:!1}}),(0,r.withState)("selectedDashboardErrorMsg","setSelectedDashboardErrorMsg",""),(0,r.withState)("selectedDashboardErrorCls","setSelectedDashboardErrorCls",!1),(0,r.withHandlers)({onClosing:(0,n.curry)(function(e,t,a){if("accept"===a)return p(e);if("cancel"===a)return function(e){e.onReject(),e.changeCategory(null,null),e.changeDashboard(null,null)}(e)}),onAcceptClosing:(0,n.curry)(p),addNewCategoryHandler:(0,n.curry)(function(e){return function(t){t.id="new_"+t.id;var a=(0,n.clone)(e.componentState),r=(0,n.set)("categories",[t])(a);return e.updateComponentState(r),!0}}),changeSaveInHandler:(0,n.curry)(function(e){return function(t){e.changeCategoryType(t),e.changeCategory(null,null),e.changeDashboard(null,null);var a=(0,n.clone)(e.componentState),r=(0,n.set)("categories",[])(a);e.updateComponentState(r)}}),changeCategoryHandler:(0,n.curry)(function(e){return function(t,a){e.changeCategory(t,a),e.changeDashboard(null,null)}}),getCategories:(0,n.curry)(function(e){return function(t){return h(e,t,!1)}}),searchCategoryDataHandler:(0,n.curry)(function(e){return function(t,a){return d=t,h(e,a,!0)}}),resetCategory:(0,n.curry)(function(e){return function(){d&&(d=null);var t=(0,n.set)("categories",[],e.componentState);e.updateComponentState(t)}}),addNewDashboardList:(0,n.curry)(function(e){return function(t){var a=(0,n.clone)(e.componentState),r=(0,n.set)("dashboardListData",t)(a);return e.updateComponentState(r),!0}}),changeDashboardHandler:(0,n.curry)(function(e){return function(t,a){e.changeDashboard(t,a);var r=(0,n.clone)(e.componentState);e.setSelectedDashboardErrorMsg(""),e.setSelectedDashboardErrorCls(!1),e.updateComponentState(r)}}),addNewDashboardHandler:(0,n.curry)(function(e){return function(t){t.id="new_"+t.id;var a=(0,n.set)("dashboardListData",[t],e.componentState);return e.updateComponentState(a),!0}}),onFocusDashboardHandler:(0,n.curry)(function(e){return function(){e.setSelectedDashboardErrorMsg(""),e.setSelectedDashboardErrorCls(!1)}})})),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=g(a(6)),l=g(a(2)),s=g(a(3)),u=g(a(7)),d=g(a(8)),c=a(0),p=g(c),f=g(a(4)),h=g(a(32)),m=g(a(3308));function g(e){return e&&e.__esModule?e:{default:e}}var E=(0,f.default)(m.default)((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0&&d.default.createElement(h.default,{recentReportViewList:l,preview:n}))}}]),t}(u.Component))||r;v.propTypes={handleQueryChange:c.default.func.isRequired,onEnter:c.default.func.isRequired,onSearch:c.default.func.isRequired,onSelectedSuggestion:c.default.func.isRequired,previewReport:c.default.func.isRequired,store:c.default.object.isRequired},t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(0)),n=i(a(13));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){var t=e.description,a=e.imageModifier,n=e.label,i=e.path;return r.default.createElement("a",{className:"card-cta",href:i},r.default.createElement("div",{className:"card-cta__icon-container"},r.default.createElement("div",{className:"card-cta__icon card-cta--"+a})),r.default.createElement("p",{className:"card-cta__label"},n),r.default.createElement("p",{className:"card-cta__description"},t))};o.propTypes={description:n.default.string.isRequired,imageModifier:n.default.string.isRequired,label:n.default.string.isRequired,path:n.default.string.isRequired},t.default=o,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(a(6)),n=p(a(2)),i=p(a(3)),o=p(a(7)),l=p(a(8)),s=a(0),u=p(s),d=p(a(13)),c=p(a(3315));p(a(3316));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,(t.__proto__||(0,r.default)(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){var e=this.props,t=e.recentReportViewList,a=e.preview;return u.default.createElement("div",{className:"recent-container-wrapper"},u.default.createElement("div",{className:"recent-container-title"},u.default.createElement("label",null," Reports ")),u.default.createElement("div",{className:"recent-container"},u.default.createElement(c.default,{recentReportViewList:t,preview:a})))}}]),t}(s.Component);t.default=f,f.propTypes={preview:d.default.func.isRequired,recentReportViewList:d.default.object.isRequired},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(6)),n=p(a(2)),i=p(a(3)),o=p(a(7)),l=p(a(8)),s=p(a(0)),u=p(a(804)),d=a(129),c=a(36);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,(t.__proto__||(0,r.default)(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,i.default)(t,[{key:"sliders",value:function(){var e=this.props,t=e.recentReportViewList,a=e.preview;return t.map(function(e){var t=JSON.parse(e.reportPartContent),r="Chart"==e.reportPartType?t.properties.chartType:e.reportPartType;"Gauge"==e.reportPartType?r="SolidGauge":t.properties.chartType==c.CHART_TYPE.TreeMap?r="TreeMap":t.properties.chartType==c.CHART_TYPE.HeatMap&&(r="HeatMap");var n=(0,d.formattedDateTime)(e.createdDate);return s.default.createElement("div",{className:"recent-report-view",onClick:function(){return a(e.reportID)},key:e.reportID},s.default.createElement("div",{className:"img-report "+r+"-Tile"}),s.default.createElement("div",{className:"img-caption"},s.default.createElement("span",{className:"report-name"}," ",e.reportName),e.createdDate?s.default.createElement("span",{className:"report-created-data"},"Last View: ",n):""))})}},{key:"render",value:function(){return s.default.createElement(u.default,{dots:!1,infinite:!1,speed:500,slidesToShow:6,slidesToScroll:1,responsive:[{breakpoint:1300,settings:{slidesToShow:4.45}},{breakpoint:1024,settings:{slidesToShow:3,dots:!0}},{breakpoint:700,settings:{slidesToShow:1,dots:!0}}]},this.sliders())}}]),t}(s.default.Component);t.default=f,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(a(6)),n=c(a(2)),i=c(a(3)),o=c(a(7)),l=c(a(8)),s=a(0),u=c(s),d=c(a(13));function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,(t.__proto__||(0,r.default)(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){var e=this.props,t=e.preview,a=e.report,r=a.createdDate,n=a.reportID,i=a.reportName,o=a.reportPartContent,l=a.reportPartType,s=JSON.parse(o),d="Chart"==l?s.properties.chartType:l;return u.default.createElement("div",{className:"recent-report-view "+d,onClick:function(){return t(n)}},u.default.createElement("div",{className:"img-caption"},u.default.createElement("span",{className:"report-name"}," ",i),r?u.default.createElement("span",{className:"report-created-data"},"Last View: ",r):""))}}]),t}(s.Component);t.default=p,p.prototypes={preview:d.default.func,report:d.default.object.isRequired},p.defaultProps={preview:function(){}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(0)),n=o(a(3318)),i=o(a(3319));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.showResult,a=e.placeholder,o=e.shouldFocus,l=e.disabled,s=e.value,u=e.onKeyPress,d=e.onChange,c=e.isActive,p=e.suggestionList,f=e.onSearch,h=e.onSelectedSuggestion,m=(e.isOverlayOpen,e.disabledWrapper),g=p&&p.length?"overlay-suggestion-list active":"overlay-suggestion-list";return!t&&r.default.createElement("div",{className:"search-wrapper suggestion-list-shadow"},r.default.createElement(n.default,{placeholder:a,showResult:t,shouldFocus:o,disabled:l,value:s,onKeyPress:u,onChange:d,isActive:c,onSearch:f},p&&p.length>0&&r.default.createElement(i.default,{suggestionList:p,showResult:t,onSelectedSuggestion:h})),r.default.createElement("div",{className:g,onClick:m}))},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(a(6)),n=c(a(2)),i=c(a(3)),o=c(a(7)),l=c(a(8)),s=a(0),u=c(s),d=c(a(98));function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,(t.__proto__||(0,r.default)(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,i.default)(t,[{key:"componentDidUpdate",value:function(e){var t=e.value!=this.props.value;(this.props.shouldFocus&&e.disabled&&!this.props.disabled||t)&&this.focusCaller&&this.focusCaller()}},{key:"render",value:function(){var e=this,t=this.props,a=t.shouldFocus,r=t.disabled,n=t.value,i=t.placeholder,o=t.onKeyPress,l=t.onChange,s=t.isActive;return u.default.createElement("div",{className:"search-wrapper"},u.default.createElement("div",{className:"input-box"},s&&u.default.createElement(d.default,{clickable:!0,className:"explore-search-input",placeholder:i,value:n,onKeyPress:o,shouldFocus:a,disabled:r,onChange:l,focusCaller:function(t){return e.focusCaller=t}})),this.props.children)}}]),t}(s.Component);t.default=p,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(0)),n=i(a(277));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.showResult,a=e.suggestionList,i=e.onSelectedSuggestion;return r.default.createElement("div",{className:"search-suggestion-wrapper"},!t&&r.default.createElement("ul",null,function(e){var t=this;return e.map(function(e,a){return r.default.createElement("li",{key:a,onClick:i.bind(t,e)},r.default.createElement(n.default,{className:"icon-search"}),e.name)})}(a)))},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Container=t.Store=t.Component=void 0;var r,n=C(a(14)),i=C(a(6)),o=C(a(2)),l=C(a(3)),s=C(a(7)),u=C(a(8)),d=a(0),c=C(d),p=C(a(3321)),f=C(a(284)),h=C(a(3373)),m=C(a(4)),g=C(a(40)),E=C(a(49)),y=C(a(37)),v=C(a(16)),T=(C(a(43)),a(1)),_=C(a(422)),S=a(254);function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,m.default)({licenseKey:E.default.LICENSE_KEY.ReportDesigner})(r=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return a.checkPermissions(e),a.loadInitial(e),a}return(0,u.default)(t,e),(0,l.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=!(0,T.get)("location.state.keepState",e)&&e.location.key!==this.props.location.key;this.checkPermissions(e),t&&this.loadInitial(e,!0)}},{key:"checkPermissions",value:function(e){var t=e.authorization,a=e.router,r=e.params.reportId,n=(0,T.get)("currentUser.id",v.default),i=(0,T.get)("store.model.ownerId",this),o=!(0,T.isNil)(r)&&!(0,T.isNil)(n)&&n===i,l=t.checkPrivileges([g.default.PERMISSION_KEY.ReportsCanCreateNewReportValue]),s=t.checkPrivileges([g.default.PERMISSION_KEY.ReportsActionsOverwriteExistingReport]);((0,T.isNil)(r)&&!l||!(0,T.isNil)(r)&&!s&&!o)&&a.push(y.default.getNoPermissionUrl())}},{key:"loadInitial",value:function(e,t){if(v.default.expiredLicense){var a=y.default.getSettingsUrl();e.router.push(a)}var r=e.params.reportId,n=e.location;this.key=(0,T.uniqueId)("ReportDesignerLocationID_"),this.store=new f.default(!1,r,null,t),this.store.updateReportListURI(_.default.getValueByKey((0,T.get)("query",n),S.SOURCE_PATH_QUERY_KEY)),this.menuStore=new h.default(r)}},{key:"componentWillUnmount",value:function(){this.store.destroy()}},{key:"render",value:function(){var e=(0,T.isNil)(this.props.params.reportId);return!v.default.expiredLicense&&c.default.createElement(p.default,(0,n.default)({key:this.key,store:this.store,menuStore:this.menuStore,isNewDefault:e},this.props))}}]),t}(d.Component))||r;t.Component=p.default,t.Store=f.default,t.Container=b},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=a(20),l=V(a(6)),s=V(a(2)),u=V(a(3)),d=V(a(7)),c=V(a(8)),p=a(0),f=V(p),h=V(a(13)),m=V(a(4)),g=V(a(18)),E=V(a(16)),y=V(a(5)),v=V(a(417)),T=V(a(164)),_=V(a(347)),S=V(a(3322)),C=V(a(3323)),b=V(a(3324)),N=V(a(3333)),A=V(a(3347)),R=V(a(3356)),O=V(a(3358)),I=V(a(3363)),D=V(a(3368)),P=V(a(416)),L=V(a(296)),M=V(a(117)),F=V(a(49)),k=V(a(3372)),x=V(a(88)),w=V(a(62)),B=V(a(769)),U=a(40),z=a(1);function V(e){return e&&e.__esModule?e:{default:e}}var G=(0,m.default)(k.default)((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return a.registerUpdateResultFuntion=function(e){a.updateResultFunction=e},a.onPageChange=function(e,t){if(e!==t){var r=a.props,n=r.store,i=r.onPageChanging,o={isChangePage:!0,currentPage:t,nextPage:e};e===g.default.PAGE_NAME.FIELDS||e===g.default.PAGE_NAME.FORMATS?(n.switchToDesignReportContainer=!1,a.updateResultFunction(o).then(function(a){a&&i(e,t,!1)})):(n.switchToDesignReportContainer=!0,a.updateResultFunction(o).then(function(a){a&&i(e,t,!0)}))}},a.getContextMenu=function(e){var t=a.props,r=t.menuStore,n=t.authorization,i=t.isNewDefault,l=t.authorizationConstants.PERMISSION_KEY,s=t.store,u=s.dataSourceStore,d=s.advancedMode,c=t.menuStore.contextMenuActiveLink;if(d){var p=n.checkPrivileges([l.ReportsDataSourcesAdvancedDataSources])||n.checkPrivileges([l.FullReportAndDashboardAccess]);if(!p&&r.excludeMenuItemByKey("DataSource"),!p||!i)return(c?u.loadInitial:u.loadInitialWithUpdateFilter).call(u).then(u.loadDataSourceDetail.bind(u)).then(function(){return r.updateMenuState(!0),r.updateMenuStatus(!0),e})}return r.updateMenuStatus(!0),(0,o.resolve)(e)},a.settingStore=new L.default(!0),a.securityManagerStore=new B.default,a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.init()}},{key:"init",value:function(){var e=this,t=this.props,a=this.securityManagerStore,r=this.props,n=r.store,i=r.menuStore,o=r.loader,l=r.authorization,s=r.detectReportChange;o.startLoading(),n.init(),i.filterContextMenuByLicense(l),E.default.isMobile&&i.filterContextMenuForMobile(),(0,z.isNil)(n.model.reportId)?n.loadDefaultAccess().finally(o.endLoading.bind(o)):a.checkAccessPage(t,n.model.reportId,function(e){return e===U.ACCESS_RIGHT.FullAccess||e===U.ACCESS_RIGHT.SaveAs}).bind(this).then(function(t){t&&n.cancelChanges().then(function(){n.loadReportDesigner().bind(e).then(e.getContextMenu).then(function(e){return e&&!(0,z.isNil)(e.messages)&&!(0,z.isEmpty)(e.messages[0].detail)&&"NoPermission"===e.messages[0].detail?null:s()}).finally(o.endLoading.bind(o))}),!t&&o.endLoading()}),M.default.loadPerformance(),n.isNewReport&&i.enableMenuItems.length>0&&(i.contextMenuActiveLink=i.enableMenuItems[0].key),this.setDisableSettingLevel(i.contextMenuActiveLink)}},{key:"setDisableSettingLevel",value:function(e){e===g.default.PAGE_NAME.DATA_SOURCE?E.default.enableSystemSetting():E.default.updateDisableSystemSetting()}},{key:"componentWillUpdate",value:function(){var e=this.props.menuStore;this.setDisableSettingLevel(e.contextMenuActiveLink)}},{key:"componentDidMount",value:function(){var e=this.props;this.disposeObserveTenantId=y.default.observe(E.default,"tenantId",function(t){E.default.silentUpdate||e.handleTenantChange(t)}),this.cascadingChangedDisposer=y.default.observe(this.props.store,"showCascadingChangedMessage",this.props.handleCascadingChanged),this.needUpdateResultDisposer=y.default.observe(this.props.store,"needUpdateResult",this.props.handleNeedUpdateResultChanged)}},{key:"componentWillUnmount",value:function(){this.disposeObserveTenantId&&this.disposeObserveTenantId(),this.cascadingChangedDisposer&&this.cascadingChangedDisposer(),this.needUpdateResultDisposer&&this.needUpdateResultDisposer(),this.props.store.destroy(),this.settingStore.destroy()}},{key:"render",value:function(){var e=this.settingStore,t=this.onPageChange,a=this.registerUpdateResultFuntion,r=this.props,n=r.store,i=r.route,o=r.params,l=r.localization,s=r.disableReport,u=r.authorization,d=r.detectReportChange,c=r.menuStore,p=r.isNewDefault,h=r.location,m=r.saveDraftReport,E=r.store.fieldsStore,y=(0,z.filter)(function(e){return u.checkLicense(F.default.LICENSE_KEY.Scheduling)||"Schedule"!==e},g.default.REPORT_DESIGNER_TAB);return f.default.createElement("section",{className:"izenda-Wrapper izenda-report-designer"},f.default.createElement(P.default,{store:e}),f.default.createElement(_.default,{settingStore:this.settingStore},f.default.createElement("div",{className:"izenda-TableLayout u_paddingTopBottom"},!(0,z.isNil)(c.contextMenuActiveLink)&&f.default.createElement(v.default,{isExpanded:function(e){if(x.default.isMobileDevice())return!0;return e.contextMenuActiveLink===g.default.PAGE_NAME.DATA_SOURCE}(c)},f.default.createElement(S.default,{menuStore:c,onPageChanging:t,disableReportDesigner:n.disableReportDesigner,dataSource:c.visibleMenuItems})),n.disableReportDesigner||(0,z.isNil)(c.contextMenuActiveLink)?!(0,z.isNil)(c.contextMenuActiveLink)&&f.default.createElement("section",{className:"izenda-MainContent"},f.default.createElement(w.default,{type:"error",autoHide:!1},l.getText("COMMON_MESSAGES_NOPERMISSION_VIEWREPORT"))):f.default.createElement(T.default,null,f.default.createElement(C.default,{componentKey:c.contextMenuActiveLink},y.map(function(e){return f.default.createElement(C.default.Item,{key:e,componentKey:e,component:b.default,pageName:e,pageInfo:function(e){switch(e){case"DataSource":return N.default;case"Fields":return A.default;case"Formats":return R.default;case"Exporting":return D.default;case"Schedule":return O.default;case"Access":return I.default;default:throw"Not found "+e}}(e),store:n,menuStore:c,fieldsStore:E,isNewDefault:p,disableReport:s,detectReportChange:d,route:i,location:h,saveDraftReport:m,registerUpdateResultFuntion:a,params:o})}))))))}}]),t}(p.Component),n.propTypes={store:h.default.object.isRequired},r=i))||r;t.default=G,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(a(0)),n=o(a(4)),i=o(a(418));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.default)()(function(e){var t=e.menuStore,a=e.onPageChanging,n=e.dataSource,o=e.disableReportDesigner;return r.default.createElement(i.default,{dataSource:n,activeKey:t.contextMenuActiveLink,enabled:t.menuStatus&&!o,isValidLicense:!0,onSelected:a})}),e.exports=t.default},function(e,t,a){"use strict";(function(t){var r,n,i,o,l,s,u,d,c;r=a(0),n=a(316),i=a(9).observer,o=a(1),l=o.find,s=o.isPlainObject,u=o.omit,d=o.assignAll,(c=i(r.createClass({displayName:"RenderSwitcher",render:function(){var e,a,i=this.props,o=i.componentKey,c=u(["componentKey","component"],i),p=r.Children.toArray(i.children),f=l(function(e){return e.props.componentKey===o},p),h=i.component,m=!h;if(f){var g=f.props.component;t(g,"RenderSwitcher.Item requires component property"),s(g)?c=d([g,f.props,c]):(e=g,a=u(["componentKey","component"],f.props))}var E=r.createElement(e||n,a);return m?E:r.createElement(h,c,e?E:null)}}))).Item=r.createClass({displayName:"Item",render:function(){return null}}),e.exports=c}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=S(a(6)),i=S(a(2)),o=S(a(3)),l=S(a(7)),s=S(a(8)),u=S(a(4)),d=a(5),c=a(0),p=S(c),f=a(11),h=S(a(3325)),m=S(a(250)),g=S(a(3326)),E=S(a(16)),y=S(a(3330)),v=S(a(3332)),T=S(a(18)),_=S(a(88));function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,u.default)({toClass:!0},(0,f.onlyUpdateForKeys)(["pageName","isNewReport"]),h.default)(r=function(e){function t(e){(0,i.default)(this,t);var a=(0,l.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e)),r=e.store;return e.pageInfo.setStore(r),e.registerUpdateResultFuntion(e.onUpdateResults.bind(a)),a}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.store,a=e.pageInfo;e.pageName!==this.props.pageName&&(a.setStore(t),a.reloadView&&a.reloadView(),t.validateReportId(!1))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.store.model,a=e.handleErrorMessages;this.dispose=(0,d.observe)(t,"hasSelectedDataSource",function(t){e.menuStore.updateMenuState(t)}),this.disposeErrorMessages=(0,d.observe)(t,"errorMessages",a),e.store.validateReportId(!1),t.isGlobal&&e.menuStore.toggleInvisibleItem("Schedule",!t.isGlobal),this.disposeScheduleTab=(0,d.observe)(t,"isGlobal",function(t){e.menuStore.toggleInvisibleItem("Schedule",!t)})}},{key:"componentWillUnmount",value:function(){var e=this.props.pageInfo;e.destroy&&e.destroy(),this.dispose&&this.dispose(),this.disposeErrorMessages(),E.default.enableSystemSetting(),this.disposeScheduleTab()}},{key:"render",value:function(){var e=this.props,t=e.store,a=e.fieldsStore,r=e.pageName,n=e.pageInfo,i=e.localization,o=e.onUpdateResults,l=e.onAddReportPart,s=e.showUpdateResult,u=e.onSave,d=e.location,c=e.onSaveAs,f=e.onCancelReport,h=e.onPreview,E=n.renderMiddlePanel?n.renderMiddlePanel():null,S=n.renderMainContent(null,{updateResults:o,doesDisableUpdateResultBtn:!s,localization:i}),C=r===T.default.PAGE_NAME.DATA_SOURCE&&t.isEnableOverlay&&!_.default.isMobileDevice();return p.default.createElement("section",{className:"izenda-ReportDesigner izenda-TableLayout izenda-report-designer-content izenda-Flex-Container"},E&&p.default.createElement(m.default,{minWidth:0,hidden:t.disabled},E),p.default.createElement("div",{className:"izenda-TableLayout-Cell u_block",hidden:t.disabled},p.default.createElement(y.default,{showOverlay:C,classNames:"izenda-Wrapper",OverlayComponent:v.default,overlayComponentProps:{classNames:"izenda-ReportDesigner-Overlay"}},p.default.createElement("section",{className:"izenda-Wrapper"},p.default.createElement(g.default,{showUpdateResult:e.showUpdateResult,store:t,fieldsStore:a,pageName:r,onUpdateResults:o,onAddReportPart:l,onSave:u,onSaveAs:c,location:d,onCancelReport:f,onPreview:h}),S))))}}]),t}(c.Component))||r;t.default=C,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(20),n=m(a(1381)),i=m(a(44)),o=a(18),l=a(5),s=a(11),u=m(a(37)),d=m(a(12)),c=m(a(16)),p=a(1),f=m(a(422)),h=a(254);function m(e){return e&&e.__esModule?e:{default:e}}var g=(0,s.compose)((0,s.withState)("isNew","updateNew",function(e){return e.isNewDefault}),(0,s.withHandlers)({onUpdateResults:(0,p.curry)(y),onAddReportPart:(0,p.curry)(function(e,t){return e.store.addNewReportPart()}),onSave:(0,p.curry)(function(e,t){var a=e.store,r=e.loader,n=e.isNew,i=e.updateNew,o=e.fieldsStore,l=e.store.canSaveAs,s=e.pageName,u=(0,p.get)("masterModel.allowToSave",o),c={isChangePage:!1,currentPage:s,nextPage:s};if(a.model.setIsSavingReport(!0),n||a.model.checkDirty()||u)return y(e,c).then(function(t){return!!t&&T(e).then(function(){return l?function(e){var t=e.store,a=e.pageName,r=e.disableReport;return t.model.setIgnoreCheckChange(),t.saveReport(a).then(function(e){return e.isDisableReport&&r(),e.success})}(e):v(e,!1)})}).then(function(e){e&&i(!1)}).finally(r.endLoading.bind(r));a.alertDetails.set({success:!0,message:d.default.getText("COMMON_MESSAGES_NO_CHANGES_FOUND")})}),onSaveAs:(0,p.curry)(function(e,t){var a=e.store;return a.model.setIsSavingReport(!0),a.setSaveAsMode(!0),a.alertDetails&&a.alertDetails.reset(),_(e,!0).then(function(t){return t&&!t.success&&a.model.updateErrorMessages(t.messages),t&&t.success&&T(e).then(function(){return v(e,!0)})})}),onCancelReport:function(e){return function(){var t=e.store,a=e.store.model.reportId,n=e.loader,i=e.router,o=e.location,l=null;if(t.reportListURI){var s={};s[""+h.SOURCE_PATH_QUERY_KEY]=t.reportListURI,l=f.default.mergeQuery(o.query,s)}var d=a&&!t.isNewReport?u.default.getReportDesignerUrl("ReportDesignerDetail",{reportId:a}):u.default.getReportDesignerUrl(),c=t.model.checkDirty()?e.confirmFn("Confirmation",{description:t.getBundle().MESSAGE.CANCEL}):(0,r.resolve)(!0),p={pathname:d};return!t.isNewReport&&l&&(p.query=l),c.then(n.startLoading.bind(n)).then(t.cancelChanges.bind(t)).then(function(){i.push(p)}).finally(n.endLoading.bind(n))}},onPreview:function(e){return function(){var t=e.store,a=e.store,r=a.model.reportId,n=a.canSaveAs,i=e.localization,o=e.router,l=null;if(t.reportListURI){var s={};s[""+h.SOURCE_PATH_QUERY_KEY]=t.reportListURI,l=f.default.mergeQuery(e.location.query,s)}return n?e.confirmDirtyForm(c.default.isDirty,{onConfirmDirtyForm:c.default.onOkDirtyForm,customMessage:i.getText("REPORTDESIGNER_MESSAGE_CONFIRM_PREVIEW")}).then(function(){var e={pathname:u.default.getReportUrl("View",{id:r}),state:{fromReportDesigner:!0}};l&&(e.query=l),o.push(e)}):e.confirmMessage("warning",i.getText("REPORTDESIGNER_MESSAGE_SAVE_BEFORE_PREVIEW"))}},handleErrorMessages:function(e){return function(t){var a=e.validation,n=e.pageInfo.store.model,s=Array.isArray(t)||(0,l.isObservableArray)(t),d=s&&!(0,p.isEmpty)(t),c=!(0,p.isNil)(t)&&!(0,p.isEmpty)(t);if(d){var m=(0,p.find)({key:""},t),g=(0,p.find)({key:o.MESSAGE_KEY.DISTINCT},t),E=(0,p.find)({key:o.MESSAGE_KEY.CONCURRENCY},t);if(!(0,p.isEmpty)(m)||!(0,p.isEmpty)(g)||!(0,p.isEmpty)(E)){var y=m?m.messages[0]:g?g.messages[0]:E.messages[0];e.confirmFn("Information",{description:y,type:i.default.MESSAGE_TYPE.INFO,showCloseIndicator:!0,isHTMLFormat:!0}).then(function(){if(!(0,p.isEmpty)(E)){var t=e.store,a=e.store.model.reportId,n=e.loader,i=e.router,o=e.location,l=null;if(t.reportListURI){var s={};s[""+h.SOURCE_PATH_QUERY_KEY]=t.reportListURI,l=f.default.mergeQuery(o.query,s)}var d=a&&!t.isNewReport?u.default.getReportDesignerUrl("ReportDesignerDetail",{reportId:a}):u.default.getReportDesignerUrl(),c=t.model.checkDirty()?e.confirmFn("Confirmation",{description:t.getBundle().MESSAGE.CANCEL}):(0,r.resolve)(!0),m={pathname:d};return!t.isNewReport&&l&&(m.query=l),c.then(n.startLoading.bind(n)).then(t.cancelChanges.bind(t)).then(function(){i.push(m)}).finally(n.endLoading.bind(n))}})}(0,p.isEmpty)(g)||n.changeDistinct(!1),a.updateErrors(t)}else c&&(e.confirmFn("Information",{description:t,type:i.default.MESSAGE_TYPE.INFO,showCloseIndicator:!0}),e.store.model.updateErrorMessages(""))}}}),(0,s.withProps)(function(e){var t=e.pageName;return{showUpdateResult:t===o.PAGE_NAME.DATA_SOURCE||t===o.PAGE_NAME.FIELDS||t===o.PAGE_NAME.FORMATS}}));function E(e,t){(0,p.get)("params.reportId",e)!==t&&e.router.push({pathname:u.default.getReportDesignerUrl("ReportDesignerDetail",{reportId:t}),state:{keepState:!0}})}function y(e,t){var a=e.loader,n=(e.fieldsStore,e.fieldsStore.reportFilters),i=e.store,l=i.model,s=i.model.dataSource.reportMode,u=i.accessStore,d=e.store,c=(0,p.getOr)(!1,"isChangePage",t),f=(0,p.get)("currentPage",t),h=(0,p.get)("nextPage",t),m=c&&f!==o.PAGE_NAME.DATA_SOURCE||s!==o.ADVANCED?function(){return(0,r.resolve)({success:!0})}:d.validateCycleRelationships.bind(d),g=c&&f===o.PAGE_NAME.DATA_SOURCE||!c;return a.startLoading(),d.model.setIsSavingReport(!c),n.resetUpdateResult(),(0,r.join)(_(e,g),m(),function(t,a){var n=t.success&&a.success;if(n)return e.saveDraftReport(!c,h).then(function(t){return e.pageName===o.PAGE_NAME.ACCESS?u.initialAccessReportPage(l.reportId,l.reportAccess.draftAccesses,l.isGlobal).then(function(){return t}):(0,r.resolve)(t)});var i=t.messages||a.messages;return i&&i.length>0?e.confirmFn("Information",{description:i[0].messages[0],type:"info",isHTMLFormat:!0,showCloseIndicator:!0}).then(function(){return n}):(0,r.resolve)(n)}).finally(a.endLoading.bind(a))}function v(e,t){var a=e.store;return a.disableReportType?a.model.setReportType(o.REPORT_TYPE_ENUM.TEMPLATE):a.model.setReportType(o.REPORT_TYPE_ENUM.REPORT),((0,p.isNil)(a.model.categoryId)||a.saveAsMode?a.loadCategories():(0,r.join)(a.loadCategories(),a.loadSubCategories(a.model.categoryId))).then(function(){return e.openPopup(n.default,{store:a,saveAsMode:t,isNew:e.isNew,section:e.pageName,onSaved:(0,p.curry)(E)(e),disableReport:e.disableReport})})}function T(e){var t=e.store,a=e.pageName,n=t.getUnspecifiedFilterWarning();return!n||a!==o.PAGE_NAME.FIELDS&&a!==o.PAGE_NAME.FORMATS?(0,r.resolve)(!1):e.confirmFn("Information",{type:i.default.MESSAGE_TYPE.INFO_ACCEPT,description:n,showCancel:!1})}function _(e,t){var a=e.validation,n=e.store,i=e.store,l=i.dataSourceStore.dataTree,s=i.model.dataSource.reportMode,u=e.pageName,c=e.localization,f=t?s===o.ADVANCED?n.validateRelationshipSyntax.bind(n):n.validateSimpleModeRelationship.bind(n):function(){return(0,r.resolve)({success:!0})};n.resetAlertDetails();return function(e,t){return e.validateFilterSyntax().then(function(e){return!e.success&&t.updateErrors(e.messages),(0,r.resolve)(e.success)})}(n,a).then(function(t){return t?a.validate().then(function(t){return!t&&n.setAlertDetails({errors:[{message:d.default.getText("COMMON_MESSAGES_GENERAL_ERROR")}],success:!1}),t?e.detectReportChange(e,u):{success:!1}}).then(function(e){return e.success?f():e}).then(function(e){return e&&e.success?n.validateReport():e}).then(function(e){if(e&&!e.success&&!(0,p.isEmpty)(e.messages)){var t=(0,p.find)(function(e){return!(0,p.isEmpty)(e.key)},e.messages);return(0,p.isNil)(t)?e:(a.updateErrors(e.messages),{success:!1})}return{success:e.success}}).then(function(e){return e&&e.success?n.detectSchemaChange(u):e}).then(function(t){return!1===(t=t||{success:!1}).success?t:t.hasChanged?l.hasDynamicStore()?u===o.PAGE_NAME.DATA_SOURCE?n.updateResults():(e.confirmMessage("info",c.getText("REPORTDESIGNER_MESSAGE_CHANGE_SCHEMA_DYNAMIC")),{success:!1}):(e.confirmMessage("error",c.getText("REPORTDESIGNER_MESSAGE_CHANGE_SCHEMA_NON_DYNAMIC")),{success:!1}):{success:!0}}).then(function(e){return e||{success:!1}}):{success:!1}})}t.default=g,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=O(a(6)),l=O(a(2)),s=O(a(3)),u=O(a(7)),d=O(a(8)),c=a(0),p=O(c),f=O(a(13)),h=O(a(171)),m=O(a(40)),g=O(a(30)),E=O(a(221)),y=O(a(96)),v=O(a(799)),T=O(a(3327)),_=O(a(3328)),S=O(a(18)),C=O(a(800)),b=O(a(4)),N=O(a(49)),A=O(a(3329)),R=a(1);function O(e){return e&&e.__esModule?e:{default:e}}var I=m.default.ACCESS_RIGHT,D=(0,h.default)()(function(e){return p.default.createElement(C.default.ExportReportButton,e)}),P=(0,b.default)(A.default)((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.props.resetAlertDetails(this.props.store)}},{key:"onDismiss",value:function(){var e=(0,R.get)("fieldsStore.reportFilters",this.props);(0,R.isNil)(e)||(e.needUpdateResult=!1)}},{key:"render",value:function(){var e=this.props,t=e.store,a=e.store,r=a.model,n=a.canSaveGlobalReport,i=e.localization,o=e.authorization,l=e.pageName,s=r.accessPriority||I.FullAccess,u=t.canSaveAs&&e.checkPermissionOfSaveAsButton(e),d=e.onAddReportPart,c=e.onSave,f=e.onSaveAs,h=e.onPreview,C=e.onCancelReport,b=o.checkLicense(N.default.LICENSE_KEY.Exporting),A=o.checkLicense(N.default.LICENSE_KEY.ReportTemplateComponent),R=l===S.default.PAGE_NAME.FIELDS,O=e.checkPermissionOfSaveButton(e),P=this.onDismiss.bind(this),L=t.alertDetails,M=L.message,F=L.alertType,k=L.key,x=L.success,w=L.errors,B=L.showType,U=L.type;return p.default.createElement("div",{className:"izenda-Wrapper-header"},p.default.createElement("div",{className:"u_inlineBlock u_fullWidth"},p.default.createElement(y.default,{key:l}),p.default.createElement("div",{className:"izenda-Alert-container"},p.default.createElement(v.default,{message:M,alertType:F,alertKey:k,success:x,errors:w,type:U,showType:B,onDismiss:P})),p.default.createElement("div",{className:"izenda-ActionBarRight"},p.default.createElement(E.default,null,e.checkDisplayShowHideHeaderFooter(l,t)&&p.default.createElement(g.default,{className:"btn-report-default",onClick:e.onDisplayShowHideHeaderFooter,label:e.getShowHideHeaderFooterLabel(i,t)}),b&&p.default.createElement(D,{reportDesignerMode:!0,name:r.reportName,store:t,print:t.printReport,export:t.exportReport,id:r.reportId,keys:[m.default.PERMISSION_KEY.ReportsActionsExporting]}),p.default.createElement(T.default,{allowAdd:R,onAdd:d}),O&&p.default.createElement(_.default,{canSaveGlobalReport:n,canSaveAs:u,onSave:c,onSaveAs:f,version:r.version,keepDisplay:!0,accessPriority:s,disabled:!A&&t.disableReportType}),p.default.createElement(g.default,{className:"btn-report-default",onClick:C,label:i.getText("COMMON_LABEL_CANCEL"),keepDisplay:!0}),p.default.createElement(g.default,{className:"btn-report-default",onClick:h,label:i.getText("COMMON_LABEL_REPORT_VIEWER")})))))}}]),t}(c.Component),n.propTypes={store:f.default.object.isRequired,fieldsStore:f.default.object.isRequired,pageName:f.default.string.isRequired,onUpdateResults:f.default.func.isRequired,onAddReportPart:f.default.func.isRequired,onSave:f.default.func.isRequired,onSaveAs:f.default.func.isRequired,onCancelReport:f.default.func.isRequired},r=i))||r;t.default=P,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(a(0)),n=l(a(30)),i=l(a(4)),o=l(a(13));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.localization,a=e.allowAdd,i=e.onAdd;return a?r.default.createElement(n.default,{className:"btn-success",onClick:i,label:t.getText("REPORTDESIGNER_LABEL_ADD_REPORT_PART")}):null};s.propTypes={allowAdd:o.default.bool.isRequired,onAdd:o.default.func.isRequired},t.default=(0,i.default)()(s),e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l;r=a(0),n=a(30),a(9).observer,i=a(4),o=a(40).ACCESS_RIGHT,(l=function(e){var t=e.localization,a=e.accessPriority,i=e.authorization.checkPrivileges([e.authorizationConstants.PERMISSION_KEY.ReportsCanCreateNewReportValue])&&(a===o.FullAccess||a===o.SaveAs),l=e.authorization.checkPrivileges([e.authorizationConstants.PERMISSION_KEY.ReportsActionsOverwriteExistingReport])&&a===o.FullAccess,s=e.canSaveAs,u=e.canSaveGlobalReport,d=e.onSave,c=e.onSaveAs;return u&&s&&i&&l?r.createElement("div",{className:"btn-group"},r.createElement(n,{className:"btn-report-default dropdown-toggle","data-toggle":"dropdown",label:t.getText("COMMON_LABEL_SAVE"),disabled:e.disabled},r.createElement("span",{className:"caret"})),r.createElement("ul",{className:"dropdown-menu"},r.createElement("li",null,r.createElement("a",{onClick:d},t.getText("COMMON_LABEL_SAVE"))),r.createElement("li",null,r.createElement("a",{onClick:c},t.getText("COMMON_LABEL_SAVE_AS"))))):u&&l||!e.version?r.createElement(n,{onClick:d,label:t.getText("COMMON_LABEL_SAVE"),className:"btn-report-default",disabled:e.disabled}):s&&i?r.createElement(n,{className:"btn-report-default",onClick:c,label:t.getText("COMMON_LABEL_SAVE_AS"),disabled:e.disabled}):null}).propTypes={canSaveAs:r.PropTypes.bool.isRequired,onSave:r.PropTypes.func.isRequired,onSaveAs:r.PropTypes.func.isRequired},e.exports=i()(l)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(11),i=a(18),o=(r=i)&&r.__esModule?r:{default:r},l=a(1),s=a(40);t.default=(0,n.compose)((0,n.withHandlers)({onDisplayShowHideHeaderFooter:(0,l.curry)(function(e,t){var a=e.store;a.isShowingHeaderFooter=!a.isShowingHeaderFooter})}),(0,n.withProps)({checkPermissionOfSaveButton:function(e){var t=e.store.model,a=e.authorization,r=e.authorizationConstants,n=r.PERMISSION_KEY,i=r.PERMISSION_OPERATOR,o=t.accessPriority||s.ACCESS_RIGHT.FullAccess,l=o===s.ACCESS_RIGHT.FullAccess||o===s.ACCESS_RIGHT.SaveAs;return!(!a.checkPrivileges([n.FullReportAndDashboardAccess])||!l)||(t.version?a.checkPrivileges([n.ReportsCanCreateNewReportValue,n.ReportsActionsOverwriteExistingReport],i.Or)&&l:a.checkPrivileges([n.ReportsCanCreateNewReportValue])&&l)},checkPermissionOfSaveAsButton:function(e){var t=e.authorization,a=e.authorizationConstants.PERMISSION_KEY;return t.checkPrivileges([a.ReportsCanCreateNewReportValue])},checkDisplayShowHideHeaderFooter:function(e,t){return e===o.default.PAGE_NAME.FIELDS&&(0,l.get)("model.reportFormats.headerFooter.visible",t)},getShowHideHeaderFooterLabel:function(e,t){var a=t.isShowingHeaderFooter?"COMMON_LABEL_HIDE_REPORT_HEADER_FOOTER":"COMMON_LABEL_SHOW_REPORT_HEADER_FOOTER";return e.getText(a)},resetAlertDetails:function(e){e.alertDetails.reset()}})),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withOverlay=void 0;var r,n,i=m(a(14)),o=m(a(6)),l=m(a(2)),s=m(a(3)),u=m(a(7)),d=m(a(8)),c=a(0),p=m(c),f=m(a(3331)),h=a(1);function m(e){return e&&e.__esModule?e:{default:e}}var g=(n=r=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.children,a=e.OverlayComponent,r=e.showOverlay,n=e.classNames,o=this.props.overlayComponentProps,l=["izenda-Overlay-Fallback",(0,h.get)("classNames",o)].join(" ");return o=(0,h.omit)(["classNames"],o),r?p.default.createElement("section",{className:n},t,p.default.createElement(a,(0,i.default)({className:l},o))):t}}]),t}(c.Component),r.defaultProps={OverlayComponent:f.default},n);t.withOverlay=function(e,t){return function(a){var r=a.showOverlay,n=a.classNames,i=a.overlayComponentProps,o=(0,h.omit)(["showOverlay","classNames","overlayComponentProps"],a);return p.default.createElement(g,{showOverlay:r,className:n,OverlayComponent:t,overlayComponentProps:i},p.default.createElement(e,o))}};t.default=g},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=a(0),i=(r=n)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.className,a=e.style,r=["izenda-Overlay-Fallback",t].join(" ");return i.default.createElement("div",{className:r,style:a})},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(a(0)),n=i(a(12));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.className;return r.default.createElement("div",{className:t},r.default.createElement("div",{className:"izenda-ReportDesigner-OverlayContent"},r.default.createElement("i",{className:"icon-big-arr"}),n.default.getText("REPORTDESIGNER_DATASOURCE_OVERLAY_LABEL")))},e.exports=t.default},function(e,t,a){"use strict";!function(){a(518);var t=a(0),r=a(3334),n=a(1403),i=a(3337);e.exports={setStore:function(e){this.store=e.dataSourceStore,this.fieldStore=e.fieldsStore},destroy:function(){delete this.store,delete this.fieldStore},reloadView:function(){return this.store.loadInitial()},renderMiddlePanel:function(){return t.createElement(r,{store:this.store})},renderMainContent:function(e,a){return t.createElement(i,{store:this.store,updateResultsInfo:a,fieldStore:this.fieldStore,ref:e,uiStore:n.targetOptions})}}}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l=C(a(6)),s=C(a(2)),u=C(a(3)),d=C(a(7)),c=C(a(8)),p=a(0),f=C(p),h=(C(a(10)),C(a(4))),m=a(18),g=C(a(24)),E=C(a(3335)),y=C(a(98)),v=C(a(19)),T=a(1),_=C(a(557)),S=C(a(3336));function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,h.default)(_.default)((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));o.call(a);var r=e.store;return a.lazyLoadingQuerySource=r.lazyLoadingQuerySource.bind(r),a.registerLazyLoadingStore=r.registerLazyLoadingStore.bind(r),a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.loader,a=e.store;return t.startLoading(),a.startLoadingRelationship().then(a.loadInitial.bind(a)).then(a.endLoadingRelationship.bind(a)).finally(t.endLoading.bind(t))}},{key:"render",value:function(){var e=this.props,t=e.store,a=e.store,r=a.dataTree,n=a.model.reportMode;return f.default.createElement("section",{className:"u_fullHeight u-posRelative u-bgWhite izenda-Middle-section"},!(0,T.isNil)(n)&&r.selectedItemNodes.length>0&&f.default.createElement(S.default,{store:t}),f.default.createElement("div",{className:"izenda-MiddlePanel-search"},this.renderControls(),f.default.createElement("div",{className:"search-box"},f.default.createElement(y.default,{value:r.filterText,onChange:this.onChangeSearchText})),f.default.createElement("hr",null)),!(0,T.isNil)(n)&&f.default.createElement(E.default,{className:"izenda-MiddlePanel-content",store:t}))}}]),t}(p.Component),n.propTypes={store:p.PropTypes.object.isRequired},o=function(){var e=this;this.onDistinctChange=function(t){var a=e.props.store;a.reportStore.model.markDirty(),a.model.changeDistinct(t.target.checked)},this.onChangeSearchText=function(t){var a=e.props.store,r=t.target.value;a.dataTree.filterText=r,a.lazyLoadingQuerySource(null,!0,r)},this.renderControls=function(){var t=e.props,a=t.localization,r=t.store,n=r.model,i=r.dataTree.showAllowNull&&n.reportMode===m.SIMPLE;return f.default.createElement("div",{className:"header-panel"},f.default.createElement("div",{className:"izenda-MiddlePanel-checkbox"},f.default.createElement("div",{className:"overflow-text"},f.default.createElement(v.default,{type:"checkbox",checked:n.distinct,onChange:e.onDistinctChange}),f.default.createElement("span",{className:"u_marginLeftInnerSpace"},a.getText("REPORTDESIGNER_LABEL_DISTINCT")))),i&&f.default.createElement("div",{className:"izenda-MiddlePanel-checkbox"},f.default.createElement("div",{className:"overflow-text",title:m.BUNDLE.MESSAGE.ALLOW_NULL_TOOLTIP},f.default.createElement(v.default,{type:"checkbox",onChange:g.default.notifyChange(n.changeAllowNull.bind(n),g.default.CHECKBOX)}),f.default.createElement("span",{className:"u_marginLeftInnerSpace"},a.getText("REPORTDESIGNER_LABEL_ALLOW_NULLS")))))},this.getKey=function(e){return e.source.id+"_"+e.source.name}},r=i))||r;t.default=b,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l=b(a(6)),s=b(a(2)),u=b(a(3)),d=b(a(7)),c=b(a(8)),p=a(0),f=b(p),h=b(a(10)),m=b(a(4)),g=a(18),E=b(a(348)),y=b(a(1402)),v=b(a(809)),T=b(a(810)),_=b(a(557)),S=a(1),C=(b(a(699)),a(123));function b(e){return e&&e.__esModule?e:{default:e}}var N=(0,m.default)(_.default)((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));o.call(a);var r=e.store;return a.lazyLoadingQuerySource=r.lazyLoadingQuerySource.bind(r),a.registerLazyLoadingStore=r.registerLazyLoadingStore.bind(r),a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e=this.props,t=e.store,a=t.dataTree,r=t.lazyLoadingStore,n=void 0===r?{}:r,i=a.displayData,o=(0,h.default)("reports-dtsourcetree",e.className,"izenda-no-padding"),l=(0,S.invoke)("getChildNodes"),s=[];return s=1===i.length?i[0].getChildNodes().filter(function(e){return!e.source.selected}):i.map(function(e){var t=new C.TreeNode({mapItem:e.map,childNodes:e.childNodes,child:e.source});return t.childNodes=t.childNodes.filter(function(e){return!e.source.selected}),t}),f.default.createElement("div",{className:o},f.default.createElement(E.default,{nodes:s,getKey:this.getKey,className:"u_paddingRight",renderNode:this.renderNode,getChildNodes:l,viewHeight:n.viewHeight,itemHeight:n.itemHeight,isLastPage:a.isLastPage,getData:this.lazyLoadingQuerySource,defaultItemsNumber:g.LAZY_LOADING_DATA_SOURCE_TREE_ITEMS,registerLazyLoadingStore:this.registerLazyLoadingStore}))}}]),t}(p.Component),n.propTypes={store:p.PropTypes.object.isRequired,expandFieldLevel:p.PropTypes.bool,useCheckBox:p.PropTypes.bool},n.defaultProps={expandFieldLevel:!1,useCheckBox:!0},o=function(){var e=this;this.renderNode=function(t,a,r,n){var i=t.source;switch(t.nodeType){case"Category":return e.renderCategory(i,r,n);case"QuerySource":return e.renderQuerySource(i,a,r,n,t);case"Field":return e.renderField(i);default:return null}},this.renderCategory=function(e,t,a){return f.default.createElement(y.default,{dataSource:e,collapseToggle:t,isCollapsed:a})},this.renderQuerySource=function(t,a,r,n,i){var o=e.props,l=o.store,s=(o.useCheckBox,o.toggleSourceSelection),u=l.dataTree.filterText;return f.default.createElement(v.default,{node:i,store:l,dataSource:t,filterText:u,toggleIcon:a,collapseToggle:r,useCheckBox:!1,useDeleteButton:!1,useAddButton:!0,isCollapsed:n,handleCheck:s})},this.renderField=function(t){var a=e.props.store;return f.default.createElement(T.default,{store:a,itemData:t,filterText:a.dataTree.filterText})},this.getKey=function(e){return e.source.id+"_"+e.source.name}},r=i))||r;t.default=N,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l=C(a(6)),s=C(a(2)),u=C(a(3)),d=C(a(7)),c=C(a(8)),p=a(0),f=C(p),h=C(a(10)),m=C(a(4)),g=a(1),E=a(18),y=C(a(26)),v=C(a(348)),T=C(a(809)),_=C(a(810)),S=C(a(557));function C(e){return e&&e.__esModule?e:{default:e}}var b=(0,m.default)(S.default)((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));o.call(a);var r=e.store;return a.lazyLoadingQuerySource=r.lazyLoadingQuerySource.bind(r),a.registerLazyLoadingStore=r.registerLazyLoadingStore.bind(r),a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e=this.props.store,t=e.dataTree,a=e.lazyLoadingStore,r=void 0===a?{}:a,n=(0,g.invoke)("getChildNodes"),i=(0,h.default)("reports-dtsourcetree","izenda-MiddlePanel-content");return f.default.createElement("div",null,f.default.createElement("p",{className:"izenda-SelectedPanel-header"},"Selected Data Sources"),f.default.createElement("div",{className:"izenda-SelectedPanel-content"},f.default.createElement(y.default,{autoHeight:!0},f.default.createElement("div",{className:i},f.default.createElement(v.default,{nodes:t.selectedItemNodes,getKey:this.getKey,autoHeight:!0,className:"u_paddingRight",renderNode:this.renderNode,getChildNodes:n,viewHeight:r.viewHeight,itemHeight:r.itemHeight,isLastPage:t.isLastPage,getData:this.lazyLoadingQuerySource,defaultItemsNumber:E.LAZY_LOADING_DATA_SOURCE_TREE_ITEMS,registerLazyLoadingStore:this.registerLazyLoadingStore})))))}}]),t}(p.Component),n.propTypes={store:p.PropTypes.object.isRequired,expandFieldLevel:p.PropTypes.bool,useCheckBox:p.PropTypes.bool},n.defaultProps={expandFieldLevel:!1,useCheckBox:!0},o=function(){var e=this;this.renderNode=function(t,a,r,n){var i=t.source;switch(t.nodeType){case"QuerySource":return e.renderQuerySource({source:i,toggleIcon:a,toggle:r,isCollapsed:n,node:t});case"Field":return e.renderField(i);default:return null}},this.renderQuerySource=function(t){var a=t.source,r=t.node,n=e.props,i=n.store,o=n.toggleSourceSelection,l=i.dataTree.filterText;return f.default.createElement(T.default,{node:r,store:i,dataSource:a,filterText:l,useCheckBox:!1,useDeleteButton:!0,handleCheck:o})},this.renderField=function(t){var a=e.props.store;return f.default.createElement(_.default,{store:a,itemData:t,filterText:a.dataTree.filterText})},this.getKey=function(e){return e.source.id+"_"+e.source.name}},r=i))||r;t.default=b,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(6)),l=_(a(2)),s=_(a(3)),u=_(a(7)),d=_(a(8)),c=_(a(4)),p=a(0),f=_(p),h=a(5),m=_(a(18)),g=_(a(3338)),E=_(a(3339)),y=_(a(558)),v=_(a(26)),T=a(1);function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,c.default)()((i=n=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e)),r=e.loader,n=e.fieldStore;return(0,T.get)("isLoading",n)&&r.startLoading(),a.disposeLoader=(0,h.observe)(n,"isLoading",function(e){e?r.startLoading():r.endLoading()}),a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){var e=this.props.store;return e.dataSourceDetail.resetAliasLevel(),e.loadDataSourceDetail()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.loader;e.fieldStore.isLoading&&t.endLoading(),this.disposeLoader()}},{key:"renderDataSourceGrid",value:function(){var e=this.props,t=e.store,a=e.width,r=e.fieldStore,n=e.updateResultsInfo,i=t.model.reportMode===m.default.ADVANCED?E.default:g.default;return f.default.createElement(i,{store:t,updateResultsInfo:n,width:a,fieldStore:r})}},{key:"render",value:function(){var e=this.props.store.reportStore;return f.default.createElement("div",{className:"izenda-Wrapper-content"},f.default.createElement("div",{className:"izenda-TableLayout"},f.default.createElement("div",{className:"izenda-TableLayout-Cell u_block"},f.default.createElement(v.default,null,f.default.createElement("div",{className:"u_fullHeight u_paddingLeft"},f.default.createElement(y.default,{store:e,name:e.model.reportName,showTooltip:!0,isPreviewRecord:!0}),this.renderDataSourceGrid())))))}}]),t}(p.Component),n.propTypes={store:p.PropTypes.object.isRequired},r=i))||r;t.default=S,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h,m=F(a(17)),g=F(a(14)),E=F(a(6)),y=F(a(2)),v=F(a(3)),T=F(a(7)),_=F(a(8)),S=a(0),C=F(S),b=a(46),N=F(a(15)),A=F(a(116)),R=F(a(555)),O=F(a(1404)),I=F(a(18)),D=F(a(75)),P=F(a(182)),L=a(9),M=a(5);function F(e){return e&&e.__esModule?e:{default:e}}function k(e,t,a,r){a&&(0,m.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function x(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var w=I.default.TABLE_DEF.SIMPLE_MODE,B=I.default.BUNDLE.CRITERIA_LIST_SIMPLE_MODE,U=(r=(0,M.action)("onSortChange"),n=(0,M.action)("onSearch"),i=(0,M.action)("onPageSizeChange"),o=(0,M.action)("onPageChange"),(0,L.observer)((h=f=function(e){function t(){var e,a,r,n;(0,y.default)(this,t);for(var i=arguments.length,o=Array(i),l=0;l-1},t)}(e,c,r));var p=x(c,!0,u||!0===s),f=r.dataTree,h=r.dataSourceDetail;return l.default.createElement(E.default,{options:p,dataObjects:c,dataSourceItem:e,dataTree:f,dataSourceDetail:h,fieldName:t,rowIndex:n,checkJoinTypeEntities:B,store:r})}function L(e,t){var a=(0,_.find)({tempId:e.parentId},t.dataSourceDetail.dataSourceGrid);return(0,_.isEmpty)(a)?[]:(0,_.filter)(function(e){return e.level<=a.level},t.dataSourceDetail.dataSourceGrid)}function M(e,t,a,r){var n=!0===e.isKeyJoin?function(e,t){var a=L(t,e),r=(0,_.reduce)(function(e,t){var a=t.joinDataSourceCategoryId&&!(0,_.includes)(t.joinDataSourceCategoryId,e);a&&e.push(t.joinDataSourceCategoryId);var r=t.foreignDataSourceCategoryId&&!(0,_.includes)(t.foreignDataSourceCategoryId,e);return r&&e.push(t.foreignDataSourceCategoryId),e},[],a);return(0,_.remove)(function(e){return!(0,_.includes)(e.value,r)},F(e))}(a,e):F(a);return l.default.createElement(g.default,{dataSourceItem:e,categoryOptions:n,fieldName:t,rowIndex:r,dataSourceDetail:a.dataSourceDetail})}function F(e){var t=e.dataTree.selectedTree;return(0,_.flow)((0,_.filter)(function(e){return(0,_.some)("selected",e.querySource)}),(0,_.map)(function(e){return{label:e.name||C.default.UNCATEGORIZED,value:e.id}}))(t)}function k(e,t,a,r){var n=a.dataTree.selectedTree,i=e[t],o=(0,_.find)({id:i},n),l=[];if(o&&(l=(0,_.filter)({selected:!0},o.querySource)),(0,_.isEmpty)(i))return[];var u=[];return(t===C.default.TABLE_DEF.ADVANCED_MODE.foreignCategory.key||r)&&(u=(0,_.reduce)(function(e,t){var a=(0,_.find)({id:t.alias.sourceId},l);if(!(0,_.isNil)(a)){var r=s.default.toJS(a);r.name=(0,_.trim)(t.alias.name),r.aliasId=(0,_.trim)(t.alias.aliasId),r.isDataSourceAlias=!0;var n=(0,_.isEmpty)((0,_.find)({aliasId:(0,_.trim)(r.aliasId)},e)),i=(0,_.isEmpty)((0,_.find)({aliasId:(0,_.trim)(r.aliasId)},l));n&&i&&e.push(r)}return e},[],a.dataSourceDetail.availableAlias(e))),(0,_.isEmpty)(l)?[]:(0,_.concat)(u,l)}function x(e,t,a){var r=[],n=u.default.advancedSettings.other.showSchemaNameValue,i=(0,_.flow)((0,_.filter)(function(e){return(e.visible||t)&&!e.isCalculated}),(0,_.map)(function(e){return{label:e.name,value:a?e.aliasId:e.id,visible:e.visible,isDataSourceAlias:e.isDataSourceAlias,labelDisplay:n&&!e.isDataSourceAlias&&e.querySourceCategoryName?e.querySourceCategoryName+"."+e.name:e.name}}))(e);return r.splice.apply(r,[1,0].concat(i)),r}function w(e,t,a,r,n,i,o,s){if(U((0,_.get)("comparisonOperator",e))!==C.default.COMPARISION_TYPE.FIELD&&s)return null;return l.default.createElement(y.default,{dataSourceItem:e,dataObjectKey:a,categoryKey:r,getDataObjects:k,getDropdownOptions:x,store:n,onChange:function(){n.reportStore.model.markDirty(),n.reportStore.dataSourceStore.dataSourceDetail.markDataSourceGridDirty(),o.reset()},rowIndex:i,column:t})}function B(e,t,a){var r=t.dataSourceDetail,n=r.checkExistEntities.call(r,a);if(n){var i=String.format(C.default.BUNDLE.MESSAGE.CHANGE_JOIN_TYPE,n.joinQuerySourceName,n.foreignQuerySourceName);return e.confirmFn("Confirmation",{description:i}).then(function(){return r.updateJoinTypeForSameEntities.call(r,a,!0),!0}).catch(function(){return r.updateJoinTypeForSameEntities.call(r,a,!1),!1})}return(0,o.resolve)(!0)}function U(e){return(0,_.flow)((0,_.find)({value:e}),(0,_.get)("type"))(C.default.COMPARISION_OPTIONS)}function z(e,t,a){var r=C.default.COMPARISION_TYPE,n=(0,_.get)("comparisonOperator",e),o=U(n),s=function(e){return(0,_.startsWith)("=",e)||(0,_.startsWith)("<>",e)}(n),u={value:e.comparisonValue,field:"comparisonValue",group:"Relationships"+e.tempId},d=V(e,t);function c(a){var r=(0,_.split)(";#",a);a=(0,_.uniq)(r).join(";#"),e.setComparisionValue&&e.setComparisionValue(a),t.dataSourceDetail.markDirty(),t.dataSourceDetail.markDataSourceGridDirty()}switch(o){case r.VALUE:return l.default.createElement(v.default,(0,i.default)({},u,{changeComparisionValue:c,joinField:d,multi:s}));case r.TIME:case r.DATE:return l.default.createElement(O,(0,i.default)({multi:s},u,{time:o!==r.DATE,calendar:o!==r.TIME,onChange:c}));case r.DATE_TIME:return l.default.createElement(O,(0,i.default)({multi:s,combine:s},u,{time:o!==r.DATE,calendar:o!==r.TIME,onChange:c}))}return null}function V(e,t){var a=k(e,C.default.TABLE_DEF.ADVANCED_MODE.category.key,t);return(0,_.flow)((0,_.flatMap)(function(e){return e.fields.slice()}),(0,_.find)({id:e.joinFieldId}))(a)}t.default=(0,T.withHandlers)({onAddRelationship:(0,_.curry)(function(e,t){var a=e.store,r=a.dataSourceDetail,n=a.dataTree.selectedTree,i=a.reportStore,o=a.isAllQuerySourceUncategorized;r.addNew(n,o),i.model.markDirty()}),onValidateSyntax:(0,_.curry)((N=(0,n.default)(r.default.mark(function e(t,a){var n,i,o,l,s,u;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.store.reportStore,i=t.validation,o=t.localization,n.alertDetails.reset(),e.next=4,i.validate();case 4:if(!(l=e.sent)){e.next=13;break}return e.next=8,n.validateRelationshipSyntax();case 8:return s=e.sent,e.next=11,n.validateCycleRelationships();case 11:u=e.sent,s.success&&u.success?n.setAlertDetails({success:!0,message:o.getText("REPORTDESIGNER_MESSAGE_VALID_SQL_STATEMENT")}):(!s.success&&n.model.updateErrorMessages(s.messages),!u.success&&n.setAlertDetails({success:!1,errors:[{message:(0,_.get)("messages[0].messages[0]",u)}]}));case 13:return e.abrupt("return",l);case 14:case"end":return e.stop()}},e,void 0)})),function(e,t){return N.apply(this,arguments)})),onMoveRelationship:(0,_.curry)(function(e,t,a,r,n){if(!(0,_.isNil)(r)&&!(0,_.isNil)(n)&&r!==n){var i=e.store,o=e.validation,l=e.localization,s=i.dataSourceDetail,u=s.dataSourceGrid;o.reset();s.moveRelationshipOrKeyJoin(r,n,S.VALIDATION_KEY).then(function(){u.map(function(e){!function(e){var t=s.getInvalidAliasLevelsForRow(e);if(e.invalidAlias=t.length>0?(0,_.first)(t):null,t>0){var a=e.isKeyJoin?l.getText("COMMON_MESSAGES_INVALID_KEY_JOIN"):l.getText("COMMON_MESSAGES_INVALID_RELATIONSHIP");o.updateErrors([{key:"Relationships"+e.validationKey+I,message:[a]}])}}(e)}),i.reportStore.model.markDirty()})}}),rebuildSearchOptions:(0,_.curry)(function(e,t){return e.store.isAllQuerySourceUncategorized?(0,_.reject)({label:"Category"},D):D}),getChildItems:(0,_.curry)(function(e,t){return t.displayKeyJoins}),renderAlias:(0,_.curry)(function(e,t,a){var r=e.validation,n=e.store;if((0,_.isNil)(t[a]))return"";var i=n.dataSourceDetail,o=n.reportStore.model,s=C.default.TABLE_DEF.ADVANCED_MODE.dataObject.key;return l.default.createElement(A,{className:"form-control col-md-12",containerClassName:"",value:t[a],maxLength:"100",onChange:function(e){r.reset(),t.setAlias(e.target.value),o.markDirty(),i.markDataSourceGridDirty()},onFocus:function(){t.needAlias&&(t.previousAlias=t.alias)},onBlur:function(e){var r,n,o,l=e.target.value;!l&&t.needAlias&&t[s]&&(r=t.previousAlias,n=t.joinQuerySourceId,o=i.dataSourceGrid,(0,_.some)(function(e){return e.selectedForeignAlias===n+"_"+r||(0,_.some)(function(e){return e.foreignQuerySourceName===r||e.joinQuerySourceName===r},e.relationshipKeyJoins)},o))&&(t.alias=t.previousAlias),l&&!t.needAlias&&(t.needAlias=!0),t.alias!==t.previousAlias&&i.populateUpdatedAlias(t),i.updateAliasLevel(i.getAliasOption(t,t[a]),t)},field:a,group:"Relationships"+t.tempId})}),renderJoinType:(0,_.curry)(function(e,t,a,r,n){var i=e.store,o=e.store.reportStore,s=e.validation,u=e.confirmFn;if((0,_.isNil)(t[a]))return"";var d=function(a){B(e,i,t).then(function(e){e&&a.value===C.default.JOIN_TYPE_CROSS&&(t.joinFieldId=null,t.foreignFieldId=null)})};return l.default.createElement(R,{options:C.default.JOIN_TYPES,onChange:function(e){s.reset(),o.model.markDirty(),o.dataSourceStore.dataSourceDetail.markDataSourceGridDirty(),e.value!==C.default.JOIN_TYPE_CROSS||(0,_.isEmpty)(t.relationshipKeyJoins)?(t.updateJoinType(a,e.value),d(e)):u("Confirmation",{description:C.default.BUNDLE.MESSAGE.SELECT_CROSS_JOIN}).then(function(){t.updateJoinType(a,e.value),d(e)})},value:t[a],valueField:"value",labelField:"label",validations:C.default.REQUIRED_CONSTRAINT,field:a,group:"Relationships"+t.tempId})}),renderOperator:(0,_.curry)(function(e,t,a,r,n){var i=e.validation,o=e.store.reportStore;if((0,_.isNil)(t[a]))return"";var s=(0,_.toUpper)(t[a]);return l.default.createElement(R,{options:C.default.OPERATOR_TYPES,onChange:function(e){i.reset(),t.updateKeyJoinItem(a,e.value),o.model.markDirty(),o.dataSourceStore.dataSourceDetail.markDataSourceGridDirty()},value:s,valueField:"value",labelField:"label",validations:C.default.REQUIRED_CONSTRAINT,field:a,group:"Relationships"+t.tempId})}),renderCategory:(0,_.curry)(function(e,t,a,r,n){var i=e.store,o=(e.validation,a===C.default.TABLE_DEF.ADVANCED_MODE.foreignCategory.key),l=U((0,_.get)("comparisonOperator",t));return!i.isAllQuerySourceUncategorized&&o&&l!==C.default.COMPARISION_TYPE.FIELD?z(t,i):M(t,a,i,r)}),renderDataObject:(0,_.curry)(function(e,t,a,r,n){e.validation;var i=e.store;return P(t,a,C.default.TABLE_DEF.ADVANCED_MODE.category.key,i,r)}),renderForeignDataObject:(0,_.curry)(function(e,t,a,r,n){e.validation;var i=e.store,o=e.store.dataTree.isAllDataOjectUncategory,l=C.default.TABLE_DEF.ADVANCED_MODE.foreignCategory.key,s=U((0,_.get)("comparisonOperator",t));return o&&s!==C.default.COMPARISION_TYPE.FIELD?z(t,i):P(t,a,l,i,r)}),renderJoinField:(0,_.curry)(function(e,t,a,r,n){var i=e.validation,o=e.store;return w(t,n,C.default.TABLE_DEF.ADVANCED_MODE.dataObject.key,C.default.TABLE_DEF.ADVANCED_MODE.category.key,o,r,i)}),renderForeignJoinField:(0,_.curry)(function(e,t,a,r,n){var i=e.validation,o=e.store,s=o.dataSourceDetail,u=o.reportStore.model;if(t.isFilterKeyJoin)return l.default.createElement(A,{className:"form-control col-md-12",containerClassName:"",value:t.foreignFilterAlias,maxLength:"100",onChange:d.default.notifyChange(function(e){i.reset(),t.setForeignFilterAlias(e),u.markDirty(),s.markDataSourceGridDirty()},d.default.INPUT),field:a,group:"Relationships"+t.tempId});var c=C.default.TABLE_DEF.ADVANCED_MODE.foreignDataObject.key,p=C.default.TABLE_DEF.ADVANCED_MODE.foreignCategory.key;return w(t,n,c,p,o,r,i,!0)}),renderAction:(0,_.curry)(function(e,t){var a=e.store;return l.default.createElement(m.default,{relationshipDetails:t,store:a})}),renderComparision:(0,_.curry)(function(e,t,a){var r=e.store,n=r.isAllQuerySourceUncategorized,i=u.default.advancedSettings.other.trimTimeInJoinsValue,o=t.isKeyJoin?C.default.COMPARISION_OPTIONS:(0,_.filter)({forRelationship:!0},C.default.COMPARISION_OPTIONS),s=V(t,r);return s&&(o=(0,_.filter)(function(e){return e.DATA_TYPES.indexOf(s.izendaDataType)>-1&&(!i||e.type!==C.default.COMPARISION_TYPE.DATE_TIME)},o)),l.default.createElement(R,{groupBy:"group",options:o,value:t[a],onChange:d.default.notifyChange(function(e){var a=U(t.comparisonOperator),i=U(e);if(t.setComparisionOperator&&t.setComparisionOperator(e),a!==i){t.setComparisionValue(null);var o=C.default.EMPTY_GUID;if(i===C.default.COMPARISION_TYPE.FIELD&&n&&(o=S.EMPTY_GUID),i===C.default.COMPARISION_TYPE.FILTER){for(var l=r.dataSourceDetail.displayDataSourceGridKeyJoins,s=(0,_.map)(function(e){return e.foreignFilterAlias},l),u=t.joinFieldName+"_KeyJoin",d=u,c=1;(0,_.includes)(d,s);)d=u+c,c++;t.foreignFilterAlias=d}t.setForeignDataSourceCategory&&t.setForeignDataSourceCategory(o)}r.dataSourceDetail.markDirty(),r.dataSourceDetail.markDataSourceGridDirty()},d.default.DROPDOWN),disabledBlankOption:!0,disabled:!t.joinFieldId,field:a,group:"Relationships"+t.tempId,showTooltip:!0})})}),e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d,c,p,f,h=R(a(17)),m=R(a(6)),g=R(a(2)),E=R(a(3)),y=R(a(7)),v=R(a(8)),T=a(0),_=R(T),S=R(a(4)),C=R(a(18)),b=R(a(10)),N=a(5),A=a(1);function R(e){return e&&e.__esModule?e:{default:e}}function O(e,t,a,r){a&&(0,h.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function I(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var D=(r=(0,S.default)(),n=(0,N.action)("onClickDelete"),i=(0,N.action)("onClickCopy"),o=(0,N.action)("onAddKeyJoin"),r((f=p=function(e){function t(){var e,a,r,n;(0,g.default)(this,t);for(var i=arguments.length,o=Array(i),l=0;l0?n.getText("REPORTDESIGNER_MESSAGE_CONFIRM_DELETE_RELATIONSHIP_WITH_KEYJOIN"):n.getText("REPORTDESIGNER_MESSAGE_CONFIRM_DELETE_RELATIONSHIP"):n.getText("REPORTDESIGNER_MESSAGE_DELETE_KEYJOIN")}).then(function(){(0,A.isNil)(o)?u.delete(i):u.findRelationshipById(s).deleteKeyJoin(i),d.model.markDirty(),u.markDataSourceGridDirty()})}}}),d=I(s.prototype,"onClickCopy",[i],{enumerable:!0,initializer:function(){var e=this;return function(){var t=e.props,a=t.store,r=t.relationshipDetails,n=a.dataSourceDetail,i=a.reportStore,o=r.isKeyJoin,l=r.parentId;(0,A.isNil)(o)?n.copyRelationship(r):n.findRelationshipById(l).copyKeyJoin(r),i.model.markDirty(),n.markDataSourceGridDirty()}}}),c=I(s.prototype,"onAddKeyJoin",[o],{enumerable:!0,initializer:function(){var e=this;return function(){var t=e.props,a=t.store,r=t.relationshipDetails,n=a.reportStore,i=a.dataTree.isAllDataOjectUncategory,o=a.dataSourceDetail;r.addNewKeyJoin(i),n.model.markDirty(),o.markDataSourceGridDirty()}}}),l=s))||l);t.default=D,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u=C(a(17)),d=C(a(6)),c=C(a(2)),p=C(a(3)),f=C(a(7)),h=C(a(8)),m=a(0),g=C(m),E=a(5),y=a(9),v=C(a(18)),T=C(a(29)),_=C(a(25)),S=a(1);function C(e){return e&&e.__esModule?e:{default:e}}var b,N,A,R,O,I,D=(0,_.default)()(T.default),P=(r=(0,E.action)("onChangeDropdown"),(0,y.observer)((s=l=function(e){function t(){var e,a,r,n,i,l,s,p;(0,c.default)(this,t);for(var h=arguments.length,m=Array(h),g=0;g3&&void 0!==arguments[3]?arguments[3]:{};t===S.default.TABLE_DEF.ADVANCED_MODE.dataObject.key?(a.setJoinQuerySource(r.value,r.label),!(0,N.isEmpty)(e)&&a.setJoinField(e.id,e.name)):(a.setForeignQuerySource(r.value,r.label,r.isDataSourceAlias),!(0,N.isEmpty)(e)&&a.setForeignField(e.id,e.name))}},{key:"render",value:function(){var e=this.props,t=e.options,a=e.dataTree,r=e.fieldName,n=e.dataSourceItem,i=e.dataSourceItem,o=i.isJoinQuerySourceReady,l=i.isforeignQuerySourceReady,s=i.tempId,u=r===S.default.TABLE_DEF.ADVANCED_MODE.dataObject.key?!o:!l,d=a.isAllDataOjectUncategory;u=u&&!d;var c=this.getQuerySourcePropertyName();return T.default.createElement(O,{options:t,onChange:this.changeDataObject,onFocus:this.focusForeignDataObject,value:n[c],disabled:u,valueField:"value",labelField:"labelDisplay",blankOption:!0,hideIcon:!0,showTooltip:!0,validations:S.default.REQUIRED_CONSTRAINT,field:r,group:"Relationships"+s})}}]),t}(v.Component),u.propTypes={dataObjects:v.PropTypes.array,options:v.PropTypes.array.isRequired,dataTree:v.PropTypes.object.isRequired,dataSourceItem:v.PropTypes.object.isRequired,dataSourceDetail:v.PropTypes.object.isRequired,fieldName:v.PropTypes.string.isRequired},R((l=d).prototype,"setQuerySourceAndPrimaryKey",[n],(0,p.default)(l.prototype,"setQuerySourceAndPrimaryKey"),l.prototype),s=R(l.prototype,"changeDataObject",[i],{enumerable:!0,initializer:function(){var e=this;return function(t,a){var r=e.props,n=r.store,i=r.dataSourceDetail,o=r.dataSourceItem,l=r.dataSourceItem,s=l.isKeyJoin,u=l.joinType,d=r.fieldName,c=r.dataObjects,p=r.checkJoinTypeEntities,f=void 0,h=S.default.TABLE_DEF.ADVANCED_MODE.dataObject.key;f=s?(0,N.find)({aliasId:t.value},c):d===h?(0,N.find)({id:t.value},c):(0,N.find)({aliasId:t.value},c);var m=e.getPrimaryKeyByDataObject(f);u!==S.default.JOIN_TYPE_CROSS?e.setQuerySourceAndPrimaryKey(m,d,o,a):(d===h?o.setJoinQuerySource:o.setForeignQuerySource).call(o,t.value,t.label);s||i.onDataObjectChangeToGenerateAlias(o,d),i.updateAliasLevel(i.getAliasOption(o,o[S.default.TABLE_DEF.ADVANCED_MODE.alias.key]),o),p&&p(e.props,n,o),n.reportStore.dataSourceStore.dataSourceDetail.markDataSourceGridDirty()}}}),o=l))||o);t.default=I,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o,l,s,u,d=b(a(17)),c=b(a(6)),p=b(a(2)),f=b(a(3)),h=b(a(7)),m=b(a(8)),g=a(0),E=b(g),y=a(5),v=(a(9),b(a(18))),T=b(a(29)),_=b(a(25)),S=a(1),C=b(a(4));function b(e){return e&&e.__esModule?e:{default:e}}var N,A,R,O,I,D,P=(0,_.default)()(T.default),L=(r=(0,C.default)(),n=(0,y.action)("changeJoinField"),r((u=s=function(e){function t(e){(0,p.default)(this,t);var a,r,n,i,o=(0,h.default)(this,(t.__proto__||(0,c.default)(t)).call(this,e));a=o,r="changeJoinField",i=o,(n=l)&&(0,d.default)(a,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),o.oldValue=null,o.newValue=null;var s=e.dataSourceItem,u=e.column.key;return o.joinFieldObserve=(0,y.observe)(s,u,function(e,t){o.oldValue=t,o.newValue=e}),o}return(0,m.default)(t,e),(0,f.default)(t,[{key:"componentDidUpdate",value:function(){if((0,S.isNil)(this.oldValue)&&!(0,S.isNil)(this.newValue)){var e=this.props,t=e.dataObjectKey,a=e.validation,r=e.dataSourceItem,n=t===v.default.TABLE_DEF.ADVANCED_MODE.dataObject.key?v.default.TABLE_DEF.ADVANCED_MODE.joinField.key:v.default.TABLE_DEF.ADVANCED_MODE.foreignJoinfield.key;a.validate(n,"Relationships"+r.tempId)}}},{key:"componentWilUnmount",value:function(){this.joinFieldObserve()}},{key:"render",value:function(){var e=this.props,t=e.dataSourceItem,a=e.dataObjectKey,r=e.categoryKey,n=e.store,i=e.column.key,o=e.getDataObjects,l=e.getDropdownOptions,s=v.default.TABLE_DEF.ADVANCED_MODE.joinField.key,u=v.default.TABLE_DEF.ADVANCED_MODE.selectedJoinSourceAlias.key,d=v.default.TABLE_DEF.ADVANCED_MODE.selectedForeignSourceAlias.key,c=i==s?!t.isJoinFieldReady:!t.isForeignFieldReady,p=t.joinType===v.default.JOIN_TYPE_CROSS,f=o(t,r,n,t.isKeyJoin),h=void 0;h=(h=t.isKeyJoin?a===v.default.TABLE_DEF.ADVANCED_MODE.dataObject.key?(0,S.find)({aliasId:t[u]},f):(0,S.find)({aliasId:t[d]},f):a===v.default.TABLE_DEF.ADVANCED_MODE.foreignDataObject.key?(0,S.find)({aliasId:t[a]},f):(0,S.find)({id:t[a]},f))||{};var m=(0,S.isNil)(h)?[]:l(h.fields,!1,!1),g=(0,S.find)({id:t[i]},h.fields),y=h&&t[i]&&((0,S.isEmpty)(g)||g.inaccessible),T=p?{}:v.default.REQUIRED_CONSTRAINT;return E.default.createElement(P,{options:m,onChange:this.changeJoinField,value:t[i],disabled:c||p,maskedHidden:y,valueField:"value",labelField:"label",blankOption:!0,hideIcon:!0,showTooltip:!0,validations:T,field:i,group:"Relationships"+t.tempId})}}]),t}(g.Component),s.propTypes={store:g.PropTypes.object.isRequired,dataSourceItem:g.PropTypes.object.isRequired,dataObjectKey:g.PropTypes.string.isRequired,categoryKey:g.PropTypes.string.isRequired,getDataObjects:g.PropTypes.func,getDropdownOptions:g.PropTypes.func,column:g.PropTypes.object.isRequired},N=(o=u).prototype,A="changeJoinField",R=[n],O={enumerable:!0,initializer:function(){var e=this;return function(t){var a=e.props,r=a.store,n=a.dataSourceItem,i=(a.column,a.column),o=i.key,l=i.props.labelKey,s=a.onChange,u=a.dataObjectKey===v.default.TABLE_DEF.ADVANCED_MODE.dataObject.key;n[o]=t.value,n[l]=t.label,s&&s(t.value),n.isKeyJoin?n.updateKeyJoinItem(o,t.value):n.updateRelationshipItem(o,t.value),r.reportStore.dataSourceStore.dataSourceDetail.markDataSourceGridDirty(),u&&n.setComparisionOperator&&n.setComparisionOperator(v.default.DEFAULT_COMPARISION_OPERATOR)}}},D={},Object.keys(O).forEach(function(e){D[e]=O[e]}),D.enumerable=!!D.enumerable,D.configurable=!!D.configurable,("value"in D||D.initializer)&&(D.writable=!0),D=R.slice().reverse().reduce(function(e,t){return t(N,A,e)||e},D),I&&void 0!==D.initializer&&(D.value=D.initializer?D.initializer.call(I):void 0,D.initializer=void 0),void 0===D.initializer&&(Object.defineProperty(N,A,D),D=null),l=D,i=o))||i);t.default=L,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(6)),l=_(a(2)),s=_(a(3)),u=_(a(7)),d=_(a(8)),c=a(0),p=_(c),f=_(a(13)),h=(_(a(1)),_(a(47))),m=_(a(25)),g=a(102),E=a(18),y=_(a(4)),v=_(a(19)),T=_(a(115));function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,m.default)()(h.default),C=(0,y.default)()((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d-1}},{key:"renderSingleSelectComponent",value:function(){var e=this.props,t=e.value,a=e.group,r=e.field,n=this.isNumericInput()?T.default:v.default;return p.default.createElement(n,{value:t,group:a,field:r,onChange:this.onChangeSingleInput})}},{key:"render",value:function(){return this.props.multi?this.renderMultiSelectComponent():this.renderSingleSelectComponent()}}]),t}(c.Component),n.propTypes={joinField:f.default.object.isRequired,changeComparisionValue:f.default.func.isRequired,value:f.default.string,multi:f.default.bool,group:f.default.string,field:f.default.string},n.defaultProps={multi:!1},r=i))||r;t.default=C,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=a(11).withState,n=a(11).withHandlers,i=a(1),o=i.curry,l=t(r("reportName","updateReportName",(0,i.get)("name")),r("editMode","updateEditMode",!1),n({onSave:o(u),onCancel:o(s),onEdit:o(function(e,t){e.updateEditMode(!0)}),onKeyPress:function(e){return function(t){"Enter"===t.key?u(e):"Escape"===t.key&&s(e)}},onBlur:function(e){return function(t){t.preventDefault(),t.stopPropagation(),u(e)}},onChangeGlobalValue:o(function(e,t){var a=e.store.accessStore,r=a.validateAccessListOnUpdateGlobalReport(t,!0);r?e.confirmFn("warning",{description:r}).then(function(){e.store.changeGlobalType(t),a.updateListAccessor(t)}):e.store.changeGlobalType(t)})}));function s(e,t){e.updateReportName(e.name),e.updateEditMode(!1)}function u(e,t){var a=e.validation,r=e.store.model;return a.validate("reportName").then(function(t){return t&&(r.changeName(e.reportName),e.updateEditMode(!1)),t})}e.exports=l}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(0)),n=s(a(1405)),i=s(a(3351)),o=s(a(1403)),l=s(a(18));function s(e){return e&&e.__esModule?e:{default:e}}t.default={setStore:function(e){this.store=e.fieldsStore,this.isReloadView=!1},destroy:function(){delete this.store,this.isReloadView=!1},reloadView:function(){return this.isReloadView=!0,this.store.loadInitial()},renderMiddlePanel:function(){return r.default.createElement(i.default,{store:this.store,uiStore:o.default.sourceOptions})},renderMainContent:function(e,t){return r.default.createElement(n.default,{ref:e,updateResultInfo:t,store:this.store,uiStore:o.default.targetOptions,isReloadView:this.isReloadView,pageName:l.default.PAGE_NAME.FIELDS})}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o,l,s,u,d,c,p=U(a(17)),f=U(a(23)),h=U(a(14)),m=U(a(6)),g=U(a(2)),E=U(a(3)),y=U(a(7)),v=U(a(8)),T=a(0),_=U(T),S=U(a(10)),C=a(118),b=U(a(4)),N=U(a(26)),A=U(a(555)),R=U(a(1389)),O=U(a(513)),I=U(a(1395)),D=U(a(514)),P=U(a(558)),L=U(a(704)),M=U(a(214)),F=U(a(3349)),k=a(1),x=U(a(35)),w=a(5),B=U(a(18));function U(e){return e&&e.__esModule?e:{default:e}}function z(e,t,a,r){a&&(0,p.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})}function V(e,t,a,r,n){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=a.slice().reverse().reduce(function(a,r){return r(e,t,a)||a},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var G=(0,b.default)(F.default)((n=function(e){function t(e){(0,g.default)(this,t);var a=(0,y.default)(this,(t.__proto__||(0,m.default)(t)).call(this,e));return z(a,"containerHeight",i,a),z(a,"headerPanelState",o,a),z(a,"titleDescriptionPanelState",l,a),z(a,"reportBodyPanelState",s,a),z(a,"adjustContainerHeight",u,a),a.setContainer=function(e){a.container=e},a.updateScrollBoxRef=function(e){a.scrollBox=e},a.updateFilterSectionRef=function(e){a.filtersSection=e},a.updateReportBodySectionRef=function(e){a.reportBodySection=e},a.setGridViewScrollBox=function(e){e&&(a.gridViewScrollBox=e.getGridViewScrollBox(),a.updateStickyScroll())},a.getOuterScrollTop=function(){return a.scrollBox?a.scrollBox.getScrollTop():0},z(a,"afterToggledFilterPanel",d,a),z(a,"updateStickyScroll",c,a),a.showReportHeaderAndFooter=function(e){var t=e.pageName,a=e.store.reportStore;return t===B.default.PAGE_NAME.FORMATS||a.isShowingHeaderFooter},a.containerHeight=0,a.sections={},a.headerPanelState=!0,a.titleDescriptionPanelState=!0,a.reportBodyPanelState=!0,a}return(0,v.default)(t,e),(0,E.default)(t,[{key:"addEditorActions",value:function(){var e=this,t=this.props.store,a=M.default.findEditorId([{name:"fieldProps"},{name:"reportPartProps"}]),r=function(t){var a=e.scrollBox,r=e[t];r=r&&x.default.findDOMNode(r),(0,k.invokeArgs)("scrollTo",[{left:0,top:(0,k.get)("offsetTop",r)}],a)},n=function(e){return function(){r(e)}};M.default.addHandlers(a,"beforeRender",{filterProps:n("filtersSection"),fieldProps:n("reportBodySection"),reportPartProps:n("reportBodySection"),formatItemProps:function(){switch((0,k.get)("model.selectedFormatGroup",t)){case C.FORMAT_GROUP_CONFIG.HEADER:return r("reportHeaderSection");case C.FORMAT_GROUP_CONFIG.TITLE_DESCRIPTION:return r("reportTitleSection");case C.FORMAT_GROUP_CONFIG.FOOTER:return r("reportFooterSection")}}})}},{key:"componentDidMount",value:function(){this.addEditorActions(),this.adjustContainerHeight()}},{key:"componentWillReceiveProps",value:function(e){e.height!==this.props.height&&this.adjustContainerHeight()}},{key:"checkShouldStickScroll",value:function(){if(this.checkHasOuterScroll()&&this.scrollBox&&this.gridViewScrollBox){var e=this.scrollBox.getScrollTop(),t=x.default.findDOMNode(this.refs.reportHeaderSection),a=x.default.findDOMNode(this.refs.reportTitleSection),r=x.default.findDOMNode(this.reportBodySection),n=(0,k.getOr)(0,"offsetHeight",t),i=(0,k.getOr)(0,"offsetHeight",a),o=this.scrollBox.getTrackHeight();return n+i+r.clientHeight+o>=this.containerHeight+e&&this.gridViewScrollBox.isInsideOfViewport()}return!1}},{key:"afterToggledFormatPanel",value:function(e,t){switch(e){case"reportHeaderSection":this.headerPanelState=t;break;case"reportTitleSection":this.titleDescriptionPanelState=t;break;case"reportBodySection":this.reportBodyPanelState=t}}},{key:"checkHasOuterScroll",value:function(){var e=this.props.store;return e.isVisibleHeaderFooter&&this.showReportHeaderAndFooter(this.props)||e.isVisibleTitleDescription}},{key:"render",value:function(){var e=this,t=this.props,a=t.store,r=a.reportStore,n=(0,k.get)("reportBody.isFullScreen",a),i=this.showReportHeaderAndFooter(t),o=function(t,r,i,o){if(!r||n)return null;var l=(0,S.default)("report-format-panel",{u_noMarginBottom:o});return _.default.createElement(A.default,{className:l,ref:i},_.default.createElement(t,{afterToggled:e.afterToggledFormatPanel.bind(e,i),store:a}))},l=this.checkHasOuterScroll(),s=l&&(!i||!a.isVisibleHeaderFooter)&&a.isVisibleTitleDescription,u=(0,S.default)("izenda-ReportGroupPanel content-container",{"izenda-ReportGroupPanel-Fullsize":n,u_noMarginBottom:n||s}),d=(0,S.default)("izenda-FilterGroupPanel u_noMarginAll",{u_none:n}),c={height:this.containerHeight},p=l?null:{height:this.containerHeight},f=_.default.createElement("div",{className:"u_paddingLeftRight"},i&&o(O.default,a.isVisibleHeaderFooter,"reportHeaderSection"),o(L.default,a.isVisibleTitleDescription,"reportTitleSection"),_.default.createElement(A.default,{className:u,ref:this.updateReportBodySectionRef},_.default.createElement(I.default,(0,h.default)({afterToggled:this.afterToggledFormatPanel.bind(this,"reportBodySection"),headerPanelState:this.headerPanelState,titleDescriptionPanelState:this.titleDescriptionPanelState,reportBodyPanelState:this.reportBodyPanelState,finishRender:this.setGridViewScrollBox},t,{store:a,hasOuterScroll:l,getOuterScrollTop:this.getOuterScrollTop}))),i&&o(D.default,a.isVisibleHeaderFooter,"reportFooterSection",!0));return _.default.createElement("div",{className:"u_fullHeight u-posRelative"},_.default.createElement("div",{className:"u_paddingLeftRight"},_.default.createElement(P.default,{store:r,name:r.model.reportName,showTooltip:!1,isPreviewRecord:!0,onChangePreviewRecord:t.updateResults}),_.default.createElement(A.default,{className:d,ref:this.updateFilterSectionRef},_.default.createElement(R.default,{afterMove:this.afterToggledFilterPanel,afterToggled:this.afterToggledFilterPanel,store:a,isFullScreen:n,uiStore:t.uiStore,updateResultInfo:t.updateResultInfo}))),_.default.createElement("div",{style:c,ref:this.setContainer},_.default.createElement(N.default,{containerStyle:p,onScroll:this.updateStickyScroll,onUpdate:this.updateStickyScroll,ref:this.updateScrollBoxRef},f)))}}]),t}(T.Component),i=V(n.prototype,"containerHeight",[w.observable],{enumerable:!0,initializer:null}),o=V(n.prototype,"headerPanelState",[w.observable],{enumerable:!0,initializer:null}),l=V(n.prototype,"titleDescriptionPanelState",[w.observable],{enumerable:!0,initializer:null}),s=V(n.prototype,"reportBodyPanelState",[w.observable],{enumerable:!0,initializer:null}),u=V(n.prototype,"adjustContainerHeight",[w.action],{enumerable:!0,initializer:function(){var e=this;return function(){if(e.container){var t=e.container.getBoundingClientRect().top,a=e.container.offsetParent.getBoundingClientRect().height-e.container.previousElementSibling.getBoundingClientRect().height-20,r=window.innerHeight-(t+e.props.bottom);e.containerHeight=r>a?a:r}}}}),d=V(n.prototype,"afterToggledFilterPanel",[w.action],{enumerable:!0,initializer:function(){var e=this;return function(){e.adjustContainerHeight()}}}),c=V(n.prototype,"updateStickyScroll",[w.action],{enumerable:!0,initializer:function(){var e=this;return function(){e.scrollBox&&e.gridViewScrollBox&&(e.checkShouldStickScroll()?e.gridViewScrollBox.stickHorizontalScroll():e.gridViewScrollBox.unstickHorizontalScroll())}}}),V(n.prototype,"afterToggledFormatPanel",[w.action],(0,f.default)(n.prototype,"afterToggledFormatPanel"),n.prototype),r=n))||r;t.default=G,e.exports=t.default},function(e,t,a){"use strict";!function(){var t=(0,a(11).withHandlers)({updateResults:(0,a(1).curry)(function(e,t){var a=e.loader,r=e.store,n=r.model;return a.startLoading(),r.updateReportsParts().then(n.cleanDirty.bind(n)).finally(a.endLoading.bind(a))})});e.exports=t}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(11),n=a(5),i=(0,r.compose)((0,r.withHandlers)({registerObserveLoading:function(e){return function(e){var t=e.props,a=t.loader,r=t.store;e.dispose=(0,n.observe)(r,"isLoading",function(e){e?a.startLoading():a.endLoading()})}},unregisterObserveLoading:function(e){return function(e){var t=e.props,a=t.loader,r=t.store;r.isLoading&&a.endLoading(),e.dispose()}}}));t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=y(a(6)),l=y(a(2)),s=y(a(3)),u=y(a(7)),d=y(a(8)),c=y(a(4)),p=a(0),f=y(p),h=y(a(98)),m=y(a(3352)),g=y(a(499)),E=y(a(18));function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,c.default)()((i=n=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"renderTopContent",value:function(){var e=this,t=this.props.localization;return f.default.createElement("div",{className:"header-panel"},f.default.createElement("a",{onClick:function(){e.renderCalculatedField()},className:"overflow-text u_block"},f.default.createElement("span",{className:"icon-plus"}),t.getText("COMMON_LABEL_ADD_CALCULATED_FIELD")))}},{key:"renderSearchBox",value:function(){var e=this.props.store;return f.default.createElement("div",{className:"search-box"},f.default.createElement(h.default,{value:e.dataTree.filterText,onChange:function(t){e.dataTree.filterText=t.target.value}}))}},{key:"closeCalculatedPopup",value:function(e){var t=this.props.store;e&&t.addCalculatedField(e)}},{key:"renderCalculatedField",value:function(){var e=this.props,t=e.store,a=t.calculatedStore,r=t.masterModel,n=a.expressionSelection.getSelectedDataSourceId();t.fillCalculatedFieldData(null,null,!0),e.openPopup(g.default,{store:a,onClose:this.closeCalculatedPopup.bind(this),expressionConfig:E.default.EXPRESSION_SELECTION.MIDDLE_FIELD,querySourceId:n,isCheckDuplicateWithActualField:!0,value:{previewRecord:r.previewRecord}})}},{key:"render",value:function(){var e=this.props,t=e.uiStore,a=e.store;return f.default.createElement("section",{className:"izenda-FieldTreeContainer u_fullHeight u-posRelative u-bgWhite izenda-Middle-section"},f.default.createElement("div",{className:"izenda-MiddlePanel-search"},this.renderTopContent(),this.renderSearchBox(),f.default.createElement("hr",null)),f.default.createElement(m.default,{className:"izenda-MiddlePanel-content",store:a,useCheckBox:!1,expandFieldLevel:!0,uiStore:t}))}}]),t}(p.Component),n.propTypes={store:p.PropTypes.object.isRequired},r=i))||r;t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=N(a(6)),l=N(a(2)),s=N(a(3)),u=N(a(7)),d=N(a(8)),c=a(0),p=N(c),f=a(1),h=N(a(10)),m=N(a(318)),g=N(a(4)),E=N(a(184)),y=N(a(1402)),v=N(a(809)),T=N(a(810)),_=N(a(18)),S=N(a(3353)),C=N(a(3354)),b=N(a(557));function N(e){return e&&e.__esModule?e:{default:e}}var A=(0,g.default)(b.default)((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0;return"Category"===e.nodeType||n||a&&"QuerySource"===e.nodeType},n=a,(0,u.default)(r,n)}return(0,d.default)(t,e),(0,s.default)(t,[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e=this.props,t=(0,h.default)("reports-dtsourcetree",e.className),a=this.buildTree(),r=(0,f.invoke)("getChildNodes");return p.default.createElement("div",{className:t},p.default.createElement(E.default,{className:"u_paddingRight",nodes:a,renderNode:this.renderNode.bind(this),getKey:this.getKey,getChildNodes:r,nodeExpand:this.shouldExpand}))}},{key:"renderNode",value:function(e,t,a,r){switch(e.nodeType){case"Category":return this.renderCategory(e.source,t,a,r);case"QuerySource":return this.renderQuerySource(e.source,t,a,r);case"Field":return this.renderField(e.source,e.querySource,t,a,r);default:return null}}},{key:"renderCategory",value:function(e,t,a,r){return p.default.createElement(y.default,{dataSource:e,collapseToggle:a,isCollapsed:r})}},{key:"renderQuerySource",value:function(e,t,a,r){var n=this.props,i=n.store,o=n.toggleSourceSelection,l=n.useCheckBox,s=i.dataTree.filterText;return p.default.createElement(v.default,{dataSource:e,filterText:s,store:i,useCheckBox:l,handleCheck:o,toggleIcon:t,collapseToggle:a,isCollapsed:r})}},{key:"renderField",value:function(e,t,a,r,n){var i=this.props,o=i.store,l=i.deleteCalculatedField,s=i.uiStore,u="Calculated Fields"===t.name&&e.isCalculated;return s?function(a){var r,n=(0,m.default)(_.default.GENNERAL.FIELD_ITEM,a)(T.default);return p.default.createElement(n,{itemData:e,filterText:o.dataTree.filterText,dataObject:t,itemDataKey:"id",propsEditors:(r=e,[{name:"dataSourceFieldProps",getDefinedSchema:r.isCalculated&&!(0,f.isNil)(r.reportId)?C.default:S.default}]),isRerenderOnActive:!0,checkRegistedItem:d,store:o,isCalculated:u,clickDelete:l})}(s):p.default.createElement(T.default,{itemData:e,filterText:o.dataTree.filterText,store:o,isCalculated:u,clickDelete:l});function d(t){return(0,f.get)("props.itemData",t)===e}}},{key:"buildTree",value:function(){var e=this.props.store,t=1===e.dataTree.filterSource.length&&!e.dataTree.filterSource[0].name,a=function(e){return function(t){return{nodeType:"Field",source:t,querySource:e,getChildNodes:f.noop}}},r=function(e){return{nodeType:"QuerySource",source:e,getChildNodes:function(){return(0,f.map)(a(e),(0,f.filter)({inaccessible:!1,visible:!0},e.filterFields))}}},n=(0,f.map)(function(e){return{nodeType:"Category",source:e,getChildNodes:function(){return"Calculated Fields"===e.name?((0,f.isEmpty)(e.filterQuerySource)&&(e.filterQuerySource=[]),(0,f.map)(a(e.filterQuerySource[0]),(0,f.get)("filterFields",e.filterQuerySource[0]))):(0,f.map)(r,e.filterQuerySource)}}},e.dataTree.filterSource);return t?n[0].getChildNodes():n}}]),t}(c.Component),n.propTypes={store:c.PropTypes.object.isRequired,expandFieldLevel:c.PropTypes.bool,useCheckBox:c.PropTypes.bool},n.defaultProps={expandFieldLevel:!1,useCheckBox:!0},r=i))||r;t.default=A,e.exports=t.default},function(e,t,a){"use strict";(function(t){var r,n;r=a(12),n={get title(){return r.getText("FIELD_PROPERTIES_SCHEMA_LABEL_FIELD_PROPERTIES")},schemaKey:"DATASOURCE_FIELD_PROPERTIES",props:{className:"form-horizontal field-props-container"},fields:{wrapperContent:{component:"ScrollBoxContainer",props:{className:"scrollbox-container"},fields:{dataSource:{component:"Panel",props:{initState:!0,collapsible:!0,header:{get title(){return r.getText("COMMON_LABEL_DATA_SOURCE")},icon:"icon-toggle-triangle"}},fields:{dataType1:{get title(){return r.getText("COMMON_LABEL_TYPE")},type:"static",fnValue:"getDataObjectType"},dataObjectName:{get title(){return r.getText("COMMON_LABEL_NAME")},type:"static",fnValue:"getDataObjectName"},name:{get title(){return r.getText("COMMON_LABEL_FIELD_NAME")},type:"static"},izendaDataType:{get title(){return r.getText("COMMON_LABEL_DATA_TYPE")},type:"static"}}}}}}},e.exports=function(e,r,i,o){return t(!!r,"reportDesignerModel must be set"),{definedSchema:n,widgets:{Panel:a(28),ScrollBoxContainer:a(1406)},source:o&&o.itemData||{},mappingSource:{getDataObjectName:function(){return o.dataObject&&o.dataObject.name},getDataObjectType:function(){return o.dataObject&&o.dataObject.type}}}}}).call(t,a(42))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,i){var o=i.dataObject,u=t.reportFields;return{definedSchema:{title:l.default.getText("CALCULATED_FIELD_PROPERTIES_SCHEMA_LABEL_FIELD_PROPERTIES"),schemaKey:"DATASOURCE_CALCULATED_FIELD_PROPERTIES",props:{className:"form-horizontal field-props-container"},fields:{wrapperContent:{component:"ScrollBoxContainer",props:{className:"scrollbox-container"},fields:{dataSource:{component:"Panel",props:{initState:!0,collapsible:!0,header:{title:l.default.getText("COMMON_LABEL_DATA_SOURCE"),icon:"icon-toggle-triangle"}},fields:{fieldType:{title:l.default.getText("COMMON_LABEL_TYPE"),type:"static",fnValue:"getDataObjectType"},name:{title:l.default.getText("COMMON_LABEL_FIELD_NAME"),type:"text",props:{onBlur:"onBlurFieldName",validations:{presence:{presence:!0,message:l.default.getText("CALCULATED_FIELD_PROPERTIES_SCHEMA_MESSAGE_FIELD_NAME")}},field:"fieldName"}},izendaDataType:{title:l.default.getText("COMMON_LABEL_DATA_TYPE"),type:"static"},expression:{title:l.default.getText("COMMON_LABEL_EXPRESSION"),component:"ExpressionInput",fnValue:"getExpression",props:{title:l.default.getText("CALCULATED_FIELD_CONSTANTS_FUNCTION_TYPE_EDIT_TITLE"),loadValue:"getExpression"},staticProps:{className:"icon-setting btn-icon expression-icon",reportDesignerModel:t,fieldStore:i.store}}}}}}}},widgets:{Panel:a(28),ExpressionInput:a(3355),ScrollBoxContainer:a(1406)},source:i&&i.itemData||{},mappingProps:{onBlurFieldName:function(e){e.preventDefault(),e.stopPropagation();var t=i.validation,a=i.localization,r=e.target.value.trim();r?r&&(r.indexOf("]")>-1||r.indexOf("[")>-1)?t.updateErrors([{key:"fieldName",messages:a.getText("CALCULATED_FIELD_MESSAGE_INVALID_NAME")}]):(0,n.placeholder)(u.dataTree.details).chain().flatMap(function(e){return e.querySource.toJSON()}).flatMap(function(e){return e.fields.toJSON()}).find(function(e){return e.isCalculated&&e.name===r&&e.id!==i.itemData.id}).value()?t.updateErrors([{key:"fieldName",messages:[s.M08]}]):i.itemData.name!==r&&(i.itemData.name=r,o.updateData(i.itemData)&&i.store.addCalculatedField(i.itemData)):t.updateErrors([{key:"fieldName",messages:[s.M01]}])},getExpression:function(){return i&&i.itemData}},mappingSource:{getDataObjectName:function(){return i.itemData&&i.itemData.name},getDataObjectType:function(){return"Calculated Field"},getExpression:function(){return i&&i.itemData}},onChangeValue:function(e,t,a,r,l){var s=(a&&a.length?(0,n.get)(a,e):e)[t];s&&(s.value=r);var d=e.wrapperContent.dataSource.expression.value;if(o.updateData(d)&&"expression"===t){var c=(0,n.get)("reportFilter.configField",u);c&&c.resetOperatorSourceDisplay();var p=(0,n.get)("reportFilter.filterFields",u),f=(0,n.find)({sourceFieldName:d.name},p);f&&f.updateByKey("value",null),i.store.addCalculatedField(d).then(function(){e.wrapperContent.dataSource.name.value=d.name,i.validation.reset()})}}}};var r,n=a(1),i=a(18),o=a(12),l=(r=o)&&r.__esModule?r:{default:r};var s=i.BUNDLE.MESSAGE;e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i,o=y(a(14)),l=y(a(6)),s=y(a(2)),u=y(a(3)),d=y(a(7)),c=y(a(8)),p=a(0),f=y(p),h=y(a(30)),m=y(a(499)),g=y(a(67)),E=y(a(18));function y(e){return e&&e.__esModule?e:{default:e}}var v=(0,y(a(4)).default)()((i=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));a.renderPopup=function(){var e=a.props,t=e.loadValue,r=e.openPopup,n=e.fieldStore.calculatedStore,i=t(),o=n.expressionSelection.getSelectedDataSourceId(),l={name:i.name,expression:i.expression,izendaDataType:i.izendaDataType,id:i.id};r(m.default,{store:n,onClose:a.closeCalculatedPopup,type:a.state.calculatedPopupType,value:l,querySourceId:o,expressionConfig:E.default.EXPRESSION_SELECTION.MIDDLE_FIELD})},a.closeCalculatedPopup=function(e){var t=a.props.onChange;e&&t&&t({value:e})},a.state={calculatedPopupType:g.default.TYPES.EDIT};var r=e.value;return e.fieldStore.fillCalculatedFieldData(r.id,null,!0),a}return(0,c.default)(t,e),(0,u.default)(t,[{key:"renderButton",value:function(){var e=this.props;return f.default.createElement(h.default,(0,o.default)({},e,{onClick:this.renderPopup}))}},{key:"renderContent",value:function(){var e=this.props,t=e.rows,a=e.value.expression;return f.default.createElement("textarea",{readOnly:!0,rows:t,className:"expression-content",value:a||""})}},{key:"render",value:function(){return f.default.createElement("div",{className:"expression-input"},this.renderContent(),this.renderButton())}}]),t}(p.Component),n.defaultProps={rows:5},r=i))||r;t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(a(0)),n=s(a(1405)),i=s(a(3357)),o=s(a(703)),l=s(a(18));function s(e){return e&&e.__esModule?e:{default:e}}t.default={setStore:function(e){this.store=e.fieldsStore},destroy:function(){delete this.store},reloadView:function(){return this.isReloadView=!0,this.store.loadInitial()},renderMiddlePanel:function(){return r.default.createElement(i.default,{store:this.store,uiStore:o.default.sourceOptions})},renderMainContent:function(e,t){return r.default.createElement(n.default,{ref:e,updateResultInfo:t,store:this.store,uiStore:o.default.targetOptions,isReloadView:this.isReloadView,pageName:l.default.PAGE_NAME.FORMATS})}},e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=T(a(6)),o=T(a(2)),l=T(a(3)),s=T(a(7)),u=T(a(8)),d=a(0),c=T(d),p=a(9),f=T(a(169)),h=T(a(28)),m=T(a(75)),g=T(a(703)),E=T(a(61)),y=T(a(318)),v=a(1);function T(e){return e&&e.__esModule?e:{default:e}}var _=(0,p.observer)(r=function(e){function t(){var e,a,r,n;(0,o.default)(this,t);for(var l=arguments.length,u=Array(l),d=0;d0&&(this.validateReportIdNoCache(this.reportId).then(function(e){t.contextMenuActiveLink=m.default.MENU_ACTIVE_LINK,e!==m.default.FILTER_CHANGE_STATE.ADDED&&e!==m.default.FILTER_CHANGE_STATE.UPDATED||(t.contextMenuActiveLink=m.default.MENU_DATASOURCE_LINK)}),this.menuStatus=!!(0,g.isNil)(e)||e)}},{key:"validateReportIdNoCache",value:function(e){return(0,g.isNil)(e)?(0,d.resolve)(!0):E.default.validateReportIdNoCache(e,!1).then(function(t){if(!t.success&&e){var a=t.messages;return!(0,g.isNil)(a)&&(0,g.isArray)(a)&&a.length>0&&!(0,g.isEmpty)(a[0].key)?a[0].key:y.default.getText("REPORTS_CONSTANTS_REPORT_MESSAGE_INVALID_REPORT")}return t.message})}},{key:"visibleMenuItems",get:function(){return(0,g.filter)("visible",this.enableMenuItems)}}]),e}(),o=_(i.prototype,"enableMenuItems",[h.observable],{enumerable:!0,initializer:function(){return[]}}),l=_(i.prototype,"contextMenuActiveLink",[h.observable],{enumerable:!0,initializer:null}),s=_(i.prototype,"menuStatus",[h.observable],{enumerable:!0,initializer:function(){return!1}}),_(i.prototype,"visibleMenuItems",[h.computed],(0,u.default)(i.prototype,"visibleMenuItems"),i.prototype),_(i.prototype,"changeActiveLink",[h.action],(0,u.default)(i.prototype,"changeActiveLink"),i.prototype),_(i.prototype,"excludeMenuItemByKey",[h.action],(0,u.default)(i.prototype,"excludeMenuItemByKey"),i.prototype),_(i.prototype,"toggleInvisibleItem",[h.action],(0,u.default)(i.prototype,"toggleInvisibleItem"),i.prototype),_(i.prototype,"populateMenuItems",[h.action],(0,u.default)(i.prototype,"populateMenuItems"),i.prototype),_(i.prototype,"filterContextMenuByLicense",[h.action],(0,u.default)(i.prototype,"filterContextMenuByLicense"),i.prototype),_(i.prototype,"filterContextMenuForMobile",[h.action],(0,u.default)(i.prototype,"filterContextMenuForMobile"),i.prototype),_(i.prototype,"updateMenuStatus",[h.action],(0,u.default)(i.prototype,"updateMenuStatus"),i.prototype),_(i.prototype,"validateReportIdNoCache",[h.action],(0,u.default)(i.prototype,"validateReportIdNoCache"),i.prototype),i);t.default=C,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Container=t.Dashboard=void 0;var r,n=v(a(14)),i=v(a(6)),o=v(a(2)),l=v(a(3)),s=v(a(7)),u=v(a(8)),d=a(0),c=v(d),p=v(a(4)),f=v(a(3375)),h=v(a(349)),m=a(49),g=v(a(37)),E=v(a(16)),y=a(1);function v(e){return e&&e.__esModule?e:{default:e}}var T=(0,p.default)({licenseKey:m.LICENSE_KEY.Dashboard})(r=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return a.initState(),a}return(0,u.default)(t,e),(0,l.default)(t,[{key:"componentWillReceiveProps",value:function(e){!(0,y.get)("location.state.keepState",e)&&e.location.key!==this.props.location.key&&this.initState()}},{key:"initState",value:function(){if(E.default.expiredLicense){var e=g.default.getSettingsUrl();this.props.router.push(e)}this.locationKey=(0,y.uniqueId)("DashboardLocationKey_"),this.store=new h.default}},{key:"componentWillUnmount",value:function(){this.store.destroy()}},{key:"render",value:function(){var e=(0,y.isNil)(this.props.params)?null:this.props.params.id,t=!!(0,y.get)("needCreateNewDashboard",this.props.location.state);return!E.default.expiredLicense&&c.default.createElement(f.default,(0,n.default)({key:this.locationKey,id:e,newDashboard:t,store:this.store},this.props))}}]),t}(d.Component))||r;t.Dashboard=d.Component,t.Container=T},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=A(a(6)),l=A(a(2)),s=A(a(3)),u=A(a(7)),d=A(a(8)),c=a(0),p=A(c),f=A(a(13)),h=a(9),m=A(a(4)),g=A(a(16)),E=a(5),y=A(a(3376)),v=A(a(416)),T=A(a(164)),_=A(a(347)),S=A(a(296)),C=A(a(37)),b=a(1),N=A(a(40));A(a(43));function A(e){return e&&e.__esModule?e:{default:e}}var R=(0,m.default)()((i=n=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return a.checkPermissionEntryDashboard=function(){var e=a.props,t=e.id,r=e.newDashboard,n=e.authorization,i=e.router;if(!((0,b.isNil)(t)&&!r)){var o=n.checkPrivileges([N.default.PERMISSION_KEY.DashboardsCanCreateNewDashboardValue]);r&&!o&&i.push(C.default.getNoPermissionUrl())}},a.settingStore=new S.default(!0),a.checkPermissionEntryDashboard(),a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"updateSystemSetting",value:function(){!(0,b.isNil)(this.props.id)||this.props.newDashboard?g.default.updateDisableSystemSetting():g.default.enableSystemSetting()}},{key:"componentDidMount",value:function(){var e=this.props;this.disposeObserveTenantId=(0,E.observe)(g.default,"tenantId",function(){g.default.silentUpdate||(e.newDashboard?e.store.cancelDashboard():e.router.push({pathname:C.default.getDashboardUrl()}))}),this.updateSystemSetting()}},{key:"componentDidUpdate",value:function(){this.updateSystemSetting()}},{key:"componentWillUnmount",value:function(){this.disposeObserveTenantId(),this.settingStore.destroy()}},{key:"render",value:function(){var e=this.props,t=e.id,a=e.store,r=e.newDashboard,n=e.children,i=(0,b.isNil)(t)&&!r;return p.default.createElement("section",{className:"izenda-TableLayout izenda-Dashboard"},p.default.createElement(v.default,{store:this.settingStore}),p.default.createElement(_.default,{settingStore:this.settingStore},p.default.createElement("div",{className:"izenda-TableLayout u_paddingTopBottom"},i&&p.default.createElement(y.default,{store:a}),p.default.createElement(T.default,null,n&&p.default.cloneElement(n,{id:t,store:a,newDashboard:r})))))}}]),t}(c.Component),n.propTypes={store:h.propTypes.observableObject.isRequired,id:f.default.string,newDashboard:f.default.bool.isRequired},r=i))||r;t.default=R,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=v(a(6)),l=v(a(2)),s=v(a(3)),u=v(a(7)),d=v(a(8)),c=a(0),p=v(c),f=v(a(4)),h=v(a(1398)),m=v(a(417)),g=v(a(37)),E=a(5),y=v(a(16));function v(e){return e&&e.__esModule?e:{default:e}}var T=(0,f.default)()((i=n=function(e){function t(e){(0,l.default)(this,t);var a=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return a.validateCategoryName=function(e){return a.props.store.validateCategoryName(e)},a.registerLeftMenuLazyLoadingStore=function(e){a.props.store.registerLeftMenuLazyLoadingStore(e)},a.loadLazyLoadingCategories=function(e){a.props.store.loadLazyLoadingCategories(!1,e)},a.loadDashboardList=function(e){return a.props.store.lazyLoadingDashboards(e,!0,null)},a.urlList=g.default.getConfigRoute("Dashboard","List"),a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.loader,a=e.store;this.disposeObserveTenantId=(0,E.observe)(y.default,"tenantId",function(){a.loadLazyLoadingCategories(!0,null).finally(t.endLoading.bind(t))})}},{key:"componentWillUnmount",value:function(){this.disposeObserveTenantId()}},{key:"render",value:function(){var e=this.props,t=e.store,a=e.store.model,r=a.leftMenuCategoryTree,n=a.isLeftMenuLastPage,i=e.store.dashboardDesignerMode,o=i.isPresentation,l=i.isFullscreen,s=e.store.selectedCategoryId;return!o&&!l&&p.default.createElement(m.default,{className:"izenda-Content-Sidebar",isHiddenOnCollapsed:!0,hasScrollBox:!1},p.default.createElement(h.default,{store:t,dataTree:r,isLastPage:n,selectedCategoryId:s,routeObject:this.urlList,routeParams:{catId:{dataKey:"id",value:null},dashboardId:{dataKey:"dashboardId",value:null},isGlobal:{dataKey:"isGlobal",value:null}},onLoadCategoryList:this.loadDashboardList,onValidateCategoryName:this.validateCategoryName,registerLazyLoadingStore:this.registerLeftMenuLazyLoadingStore,getData:this.loadLazyLoadingCategories}))}}]),t}(c.Component),n.propTypes={store:p.default.PropTypes.object},r=i))||r;t.default=T,e.exports=t.default},function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h,m,g,E,y,v,T,_,S,C,b=a(14),N=(r=b)&&r.__esModule?r:{default:r};n=a(0),i=a(4),o=a(3378),l=a(10),s=a(86),u=a(26),d=a(3379),c=a(15),p=a(1400)(s),f=a(276),h=a(1),m=h.omit,g=h.forEach,E=h.isEqual,y=h.isNil,v=h.has,T=h.isEmpty,_=h.size,S=h.getOr,C=n.createClass({displayName:"DashboardList",propTypes:{store:n.PropTypes.object},componentWillMount:function(){this.props.loader.startLoading()},componentDidMount:function(){this.props.store.dashboardDesignerMode.reset(),this.props.loader.endLoading()},componentWillReceiveProps:function(e){var t=m(["key","action","state"],e.location),a=m(["key","action","state"],this.props.location),r=m(["isGlobalExpand","isLocalExpand","location"],e),n=m(["isGlobalExpand","isLocalExpand","location"],this.props);E(t,a)&&E(r,n)||(this.isReload=!0,this.loadDashboardList(e))},loadDashboardList:function(e){var t=e.params.catId,a=e.params.isGlobal,r=e.loader;r.startLoading(),e.store.lazyLoadingDashboards(t,!0,a).finally(r.endLoading.bind(r))},render:function(){var e=this.props,t=e.store,a=e.subscriptionStore;this.globalLocalCount=0;var r=function(t){var a,r,n=[];return g(function(t){this.globalLocalCount++,t.isVirtualNode?n.push(t):(n.push({key:t.isGlobal?"GlobalCategory_"+e.isGlobalExpand:"LocalCategory_"+e.isLocalExpand,isGlobal:t.isGlobal,globalLocalCategory:t}),(t.isGlobal&&e.isGlobalExpand||!t.isGlobal&&e.isLocalExpand)&&g(function(e){e.isVirtualNode?n.push(e):e.canDelete||g(function(t){t.isVirtualNode?n.push(t):t.canDelete||(a=S([],"dashboards",t),r=_(a),a.forEach(function(a,i){a.isVirtualNode?n.push(a):n.push({key:a.id,isGlobal:e.isGlobal,isFirstItem:0===i,isLastItem:i===r-1,category:e,subCategory:t,dashboard:a})},t.dashboards))},e.subCategories)},t.subCategories))}.bind(this),t),n}.call(this,t.items.categories),i=T(t.items.searchText)?t.lazyLoadingDashboards.bind(t,e.params.catId,!1,e.params.isGlobal):t.lazyLoadingSearch.bind(t,e.params.isGlobal);return n.createElement("div",{className:"izenda-Wrapper izenda-DashboardList-container"},n.createElement(p,{ref:"dashboardListHeader",store:t,isGlobal:e.isGlobal}),n.createElement("section",{className:"izenda-DashboardList izenda-Wrapper-content u_paddingLeftRight"},n.createElement(u,null,n.createElement(f,{data:r,isLastPage:t.items.isLastPage,getData:i,renderItem:function(r){if(v("globalLocalCategory",r))return function(t){var a=t.isGlobal,r=l({"icon-minus-circled":a&&e.isGlobalExpand||!a&&e.isLocalExpand,"icon-plus-circled":a&&!e.isGlobalExpand||!a&&!e.isLocalExpand}),i=l({u_paddingTop:!a&&2===this.globalLocalCount});return n.createElement(c,{className:i},n.createElement(c.Row,{className:"u_paddingTopBottom u_noMarginAll u-bgWhite"},n.createElement(c.Col,{cols:11},n.createElement("div",{className:"u_textBold u_textUppercase"},t.globalLocalCategory.name)),n.createElement(c.Col,{cols:1},n.createElement("div",{className:"u_floatRight"},n.createElement("a",{onClick:e.toggle.bind(e,a)},n.createElement("span",{className:r}))))))}.call(this,r);return n.createElement(d,(0,N.default)({},r,{selectedDashboardId:e.params.dashboardId,store:t,subscriptionStore:a}))}.bind(this),registerLazyLoadingStore:t.registerContentLazyLoadingStore.bind(t),loader:y(this.isReload)&&e.loader}))))}}),e.exports=i(o)(C)},function(e,t,a){"use strict";!function(){var t=a(11).compose,r=a(11).withState,n=a(11).withHandlers,i=a(1).curry,o=t(r("isGlobalExpand","updateGlobalExpand",!0),r("isLocalExpand","updateLocalExpand",!0),n({toggle:i(function(e,t){t?e.updateGlobalExpand(!e.isGlobalExpand):e.updateLocalExpand(!e.isLocalExpand)})}));e.exports=o}()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(14)),l=_(a(6)),s=_(a(2)),u=_(a(3)),d=_(a(7)),c=_(a(8)),p=_(a(10)),f=_(a(86)),h=a(9),m=_(a(13)),g=a(0),E=_(g),y=_(a(796)),v=_(a(69)),T=_(a(3380));function _(e){return e&&e.__esModule?e:{default:e}}var S=f.default.SEARCH_CRITERIA,C=(0,h.observer)((i=n=function(e){function t(){var e,a,r,n;(0,s.default)(this,t);for(var i=arguments.length,o=Array(i),u=0;u0;!this.checkPermission()&&this.layoutStore.setReadonlyMode(t)}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,a=t.id,r=t.width,n=t.newDashboard,i=t.viewerContentHeight;return e.width!==r||e.newDashboard!==n||e.id!==a||e.viewerContentHeight!==i}},{key:"render",value:function(){var e=this,t=this.props,a=this.props,r=a.store,n=a.store.dashboardDetail,i=a.printingMode,o=a.renderListeners,l=a.viewerContentHeight,s=n.dashboard.activeDashboardParts,u=s.map(V),c=this.checkPermission(),p=(0,I.getOr)(0,"dashboard.dashboardParts.length",n)>0,f=!c&&!p,h=s.map(function(a){var n=U(a.id);return o&&o.push(n.promise),y.default.createElement(b.default,{key:a.id,id:a.id,isNew:a.isNew,isDraggable:!a.isFullSize&&c,isResizable:!a.isFullSize&&c,handle:".draggableBox",printingMode:i,cancel:".btn, input, a[href]",layoutStore:e.layoutStore},y.default.createElement(N.default,(0,d.default)({editDashboard:c},t,{store:r,dashboardPart:a,viewMode:!!t.viewMode,finishedRender:n.resolve})))}),m=l?{height:l}:null;return y.default.createElement("section",{className:t.className,style:m,ref:this.setDom},y.default.createElement(P.default,null,y.default.createElement(C.default,{className:"izenda-DashboardGrid",layoutStore:this.layoutStore,layoutData:u,editable:!t.viewMode&&!S.default.isMobile,allowAddInline:!t.viewMode&&!S.default.isMobile&&c,onAddItem:this.onAddItem,printingMode:i,onUpdateItemPositions:this.onUpdateItemPositions,fullHeight:f},h)))}}]),t}(E.Component),o.propTypes={store:v.default.object.isRequired,width:v.default.number.isRequired},s=function(){var e,t,a,r,n=this;this.setDom=function(e){e&&n.layoutStore.setViewWidth(e.clientWidth),e&&n.props.setViewerContentRef(e)},this.checkPermission=function(){var e=n.props,t=e.authorization,a=e.newDashboard,r=e.store.dashboardDetail,i=S.default.currentUser.systemAdmin,o=(0,I.isNil)(S.default.tenantId),l=r.dashboard.accessPriority,s=a||t.checkPrivileges([D.PERMISSION_KEY.DashboardsActionsOverwriteExistingDashboard]),u=t.checkPrivileges([D.PERMISSION_KEY.DashboardsCanCreateNewDashboardValue]),d=(0,I.getOr)({},"dashboard",r);return s&&l===D.ACCESS_RIGHT.FullAccess&&!(d.isGlobal&&!i)&&!(d.isGlobal&&!o)||u&&(l===D.ACCESS_RIGHT.FullAccess||l===D.ACCESS_RIGHT.SaveAs)},this.onAddItem=function(e){e=e||{left:0,top:0};var t=n.props.store.dashboardDetail;n.props.store.updateUseCache(!0),t.addDashboardTile(e.left,e.top)},e=this,t="onUpdateItemPositions",r=this,(a=i)&&(0,u.default)(e,t,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(r):void 0})},M=(n=l).prototype,F="onUpdateItemPositions",k=[_.action],x={enumerable:!0,initializer:function(){var e=this;return function(t){var a=e.props.store.dashboardDetail.dashboard.dashboardParts;(0,I.forEach)(function(e){S.default.isMobile?(0,I.isNil)(e.originalPosition)&&e.setOriginalPosition({positionX:e.positionX,positionY:e.positionY,width:e.width,height:e.height}):e.originalPosition=null})(a),(0,I.flow)((0,I.filter)(function(e){return(0,I.some)({id:e.id},t)}),(0,I.forEach)(function(e){var a=(0,I.find)({id:e.id},t);e.setPosition({positionX:a.left,positionY:a.top,width:a.width,height:a.height})}))(a)}}},B={},Object.keys(x).forEach(function(e){B[e]=x[e]}),B.enumerable=!!B.enumerable,B.configurable=!!B.configurable,("value"in B||B.initializer)&&(B.writable=!0),B=k.slice().reverse().reduce(function(e,t){return t(M,F,e)||e},B),w&&void 0!==B.initializer&&(B.value=B.initializer?B.initializer.call(w):void 0,B.initializer=void 0),void 0===B.initializer&&(Object.defineProperty(M,F,B),B=null),i=B,r=n))||r;function V(e,t){if(S.default.isMobile)return{id:e.id,x:0,y:t,width:O.default.DEFAULT_TILE_WIDTH,height:e.height,isFullSize:e.isFullSize};var a=(0,I.getOr)(null,"originalPosition",e);return(0,I.isNil)(a)?{id:e.id,x:e.positionX,y:e.positionY,width:e.width,height:e.height,isFullSize:e.isFullSize}:{id:e.id,x:a.positionX,y:a.positionY,width:a.width,height:a.height,isFullSize:e.isFullSize}}t.default=z,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=_(a(6)),l=_(a(2)),s=_(a(3)),u=_(a(7)),d=_(a(8)),c=_(a(4)),p=a(0),f=_(p),h=_(a(13)),m=a(9),g=_(a(86)),E=_(a(496)),y=_(a(236)),v=_(a(15)),T=a(1);function _(e){return e&&e.__esModule?e:{default:e}}var S=(0,c.default)()((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0&&n.createElement("div",{className:"btn-group dropup u_marginLeft"},n.createElement("button",{ref:function(e){e&&t(e).dropdown()},className:"btn btn-primary dropdown-toggle btn-report-default","data-toggle":"dropdown"},e.label," ",n.createElement("span",{className:"caret"})),n.createElement("ul",{className:"dropdown-menu"},e.btnGroup.map(function(e){var t=e.state,r=i({"disabled-link":t.disabled}),o=T(e,a);return!t.hide&&e.hasPrivilege&&o?n.createElement("li",{key:e.key,className:r},e.link&&!t.disabled?n.createElement(l,{to:e.link},e.label):n.createElement("a",e.props,e.label)):null})))}),(S=o(d(function(e){return{onSelectReportPartButton:function(){var t=e.dashboardPart,a=e.store,r=g(e.dashboardPart.typeConfig),n=e.loader;e.openPopup(c,{onChange:function(e){var i=e.reportPart,o=e.report;n.startLoading(),a.setDashboardTileType(t,r,i,o).finally(n.endLoading.bind(n))},type:p.TYPE.REPORT_PART})}}}))(function(e){var t=e.dashboardPart.reportPart,a=s(t.reportId,t.id,e);return a=h(function(e){return(E(e.hasPrivilege)||e.hasPrivilege)&&(E(e.hasLicense)||e.hasLicense)},a),n.createElement("div",{className:"izenda-ActionBarRight u_paddingRight"},a.map(function(e){return e.btnGroup?n.createElement(_,(0,b.default)({},e,{accessPriority:t.accessPriority})):n.createElement(v,e)}))})).propsType={dashboardPart:n.PropTypes.object.isRequired,onSelectReportPartButton:n.PropTypes.func.isRequired},e.exports=S}).call(t,a(27))},function(e,t,a){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,a){var c=n.default.getReportUrl("View",{id:e}),p=n.default.getReportUrl("Edit",{id:e}),f=n.default.getReportDesignerUrl("ReportDesignerDetail",{reportId:e}),h=a.authorization,m=a.authorizationConstants.PERMISSION_KEY,g=function(r){var n=a.dashboardPart.reportPart.headerTitle,i=a.exportLoader,o=(0,d.uniqueId)(n);i.startExportLoading({name:String.format("{0}.{1}",n,l.default.getFileTypeByFormat(r)),key:o,error:!1});var s=window.location.href,u=a.dashboardPart.filters;return a.store.exportReportPart(s,r,t,e,u,a.dashboardPart.id,i.endExportLoading.bind(i,o),i.updateError.bind(i,o))};return[{key:"open",get label(){return o.default.getText("REPORT_PART_TILE_BACK_SIDE_FOOTER_CONFIG_OPEN")},link:c},{key:"edit",get label(){return o.default.getText("REPORT_PART_TILE_BACK_SIDE_FOOTER_CONFIG_EDIT")},state:{disabled:!1,hide:!1},btnGroup:[{key:"quickEdit",get label(){return o.default.getText("REPORT_PART_TILE_BACK_SIDE_FOOTER_CONFIG_QUICK_EDIT")},state:{disabled:!1,hide:!1},link:p,hasPrivilege:h.checkPrivileges([m.ReportsCanCreateNewReportValue,m.ReportsActionsOverwriteExistingReport],a.authorizationConstants.PERMISSION_OPERATOR.Or),accessPriority:[u.default.ACCESS_RIGHT.FullAccess,u.default.ACCESS_RIGHT.QuickEdit,u.default.ACCESS_RIGHT.SaveAs]},{key:"design",get label(){return o.default.getText("REPORT_PART_TILE_BACK_SIDE_FOOTER_CONFIG_DESIGN")},state:{disabled:!1,hide:!1},link:f,hasPrivilege:h.checkPrivileges([m.ReportsActionsOverwriteExistingReport,m.ReportsCanCreateNewReportValue],a.authorizationConstants.PERMISSION_OPERATOR.Or),accessPriority:[u.default.ACCESS_RIGHT.FullAccess,u.default.ACCESS_RIGHT.SaveAs]}]},{key:"html",get label(){return o.default.getText("COMMON_LABEL_PRINT")},state:{disabled:!1,hide:!1},hasLicense:function(){return h.checkLicense(s.default.LICENSE_KEY.Exporting)},onClick:function(){var t=n.default.getViewerUrl("ReportBody",{id:e}),o=a.dashboardPart.filterInfoForReport,l=r.param(o||{});i.default.openNewTab(n.default.makeAbsoluteUrl(t,"print=true&"+l))},hasPrivilege:function(){return h.checkPrivileges([m.ReportsActionsPrint])}},{key:"export",get label(){return o.default.getText("COMMON_LABEL_EXPORT")},state:{disabled:!1,hide:!1},hasLicense:h.checkLicense(s.default.LICENSE_KEY.Exporting),btnGroup:[{key:"word",label:"Word",state:{disabled:!1,hide:!1},props:{onClick:g.bind(this,"word")},hasPrivilege:h.checkPrivileges([m.ExportingExportingFormatWord])},{key:"excel",label:"Excel",state:{disabled:!1,hide:!1},props:{onClick:g.bind(this,"excel")},hasPrivilege:h.checkPrivileges([m.ExportingExportingFormatExcel])},{key:"pdf",label:"PDF",state:{disabled:!1,hide:!1},props:{onClick:g.bind(this,"pdf")},hasPrivilege:h.checkPrivileges([m.ExportingExportingFormatPdf],a.authorizationConstants.PERMISSION_OPERATOR.Or)},{key:"csv",label:"CSV",state:{disabled:!1,hide:!1},props:{onClick:g.bind(this,"csv")},hasPrivilege:h.checkPrivileges([m.ExportingExportingFormatCsv],a.authorizationConstants.PERMISSION_OPERATOR.Or)},{key:"xml",label:"XML",state:{disabled:!1,hide:!1},props:{onClick:g.bind(this,"xml")},hasPrivilege:h.checkPrivileges([m.ExportingExportingFormatXml],a.authorizationConstants.PERMISSION_OPERATOR.Or)},{key:"json",label:"JSON",state:{disabled:!1,hide:!1},props:{onClick:g.bind(this,"json")},hasPrivilege:h.checkPrivileges([m.ExportingExportingFormatJson],a.authorizationConstants.PERMISSION_OPERATOR.Or)},{key:"query",label:"Query Execution",state:{disabled:!1,hide:!1},props:{onClick:g.bind(this,"query")},hasPrivilege:h.checkPrivileges([m.ExportingExportingFormatQueryExecution],a.authorizationConstants.PERMISSION_OPERATOR.Or)}],hasPrivilege:function(){return h.checkPrivileges([m.ReportsActionsExporting],a.authorizationConstants.PERMISSION_OPERATOR.Or)}},{key:"selectReportPart",get label(){return o.default.getText("REPORT_PART_TILE_BACK_SIDE_FOOTER_CONFIG_SELECT_REPORT_PART")},onClick:a.onSelectReportPartButton,hasPrivilege:function(){return h.checkPrivileges([m.DashboardsActionsOverwriteExistingDashboard,m.DashboardsCanCreateNewDashboardValue],a.authorizationConstants.PERMISSION_OPERATOR.Or)}}]};var n=c(a(37)),i=c(a(88)),o=c(a(12)),l=c(a(1377)),s=c(a(49)),u=c(a(40)),d=a(1);function c(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default}).call(t,a(27))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n,i,o=I(a(6)),l=I(a(2)),s=I(a(3)),u=I(a(7)),d=I(a(8)),c=a(0),p=I(c),f=I(a(13)),h=I(a(10)),m=a(9),g=I(a(4)),E=a(1),y=I(a(3410)),v=I(a(3411)),T=I(a(3412)),_=I(a(3413)),S=I(a(3414)),C=I(a(3415)),b=I(a(3416)),N=I(a(16)),A=I(a(511)),R=a(86),O=a(55);function I(e){return e&&e.__esModule?e:{default:e}}var D=(0,g.default)()((i=n=function(e){function t(){var e,a,r,n;(0,l.default)(this,t);for(var i=arguments.length,s=Array(i),d=0;d0&&e!==this.width&&(this.width=e)}},{key:"componentWillReceiveProps",value:function(e){e.width>0&&e.width!==this.width&&(this.width=e.width)}},{key:"render",value:function(){var e=this,t=this.props.store.dashboardDetail,a=Math.round(this.width/7),r=null;t.dashboard.activeDashboardParts.length>1&&(r={centerMode:!0,centerPadding:a,slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!0,lazyLoad:!0,draggable:!1,onPreArrowClick:this.onPreArrowClick});var n={width:this.width?+this.width+"px":"100%"},i={width:this.width?this.width-2*a:"100%"},o=function(){return(0,S.map)(function(t){return g.default.createElement("div",{key:t.id,className:"u_fullHeight dashboard-presentational"},g.default.createElement(T.default,(0,u.default)({},e.props,{dashboardPart:t,dashboardTileStyle:i,viewMode:!0,presentationMode:!0})))},t.dashboard.activeDashboardParts)};return g.default.createElement("div",{className:"u_fullHeight",style:n},t.dashboard.activeDashboardParts.length>1?g.default.createElement(_.default,{settings:r,className:"izenda-DashboardPresentation-SliderContainer",key:(0,S.uniqueId)()},o()):o())}}]),t}(m.Component),o.propTypes={store:m.PropTypes.object},b=(n=l).prototype,N="width",A=[v.observable],R={enumerable:!0,initializer:function(){return null}},I={},Object.keys(R).forEach(function(e){I[e]=R[e]}),I.enumerable=!!I.enumerable,I.configurable=!!I.configurable,("value"in I||I.initializer)&&(I.writable=!0),I=A.slice().reverse().reduce(function(e,t){return t(b,N,e)||e},I),O&&void 0!==I.initializer&&(I.value=I.initializer?I.initializer.call(O):void 0,I.initializer=void 0),void 0===I.initializer&&(Object.defineProperty(b,N,I),I=null),i=I,r=n))||r;t.default=D,e.exports=t.default},,function(e,t,a){"use strict";var r,n,i,o,l,s,u,d,c,p,f,h=a(14),m=(r=h)&&r.__esModule?r:{default:r};n=a(0),a(35),i=a(4),o=a(424),l=a(1418),s=a(3420),a(10),u=a(1),d=u.isNil,c=u.assign,p=u.map,(f=function(e){var t=e.store.dashboardDetail,a=e.localization,r=(Math.round(this.props.width/7),null);if(t.dashboard.activeDashboardParts.length>1&&(r={slidesToShow:1,arrows:!0,dots:!1,lazyLoad:!0,pauseOnHover:!1,draggable:!1},(e.store.model.autoDurationMinute||e.store.model.autoDurationSecond)&&e.store.dashboardDesignerMode.isFullscreen)){var i=0;d(e.store.model.autoDurationMinute)||(i=e.store.model.autoDurationMinute);var u=0;d(e.store.model.autoDurationSecond)||(u=e.store.model.autoDurationSecond),r=c({autoplaySpeed:60*i*1e3+1e3*u,autoplay:!0},r)}var f={width:this.props.width+"px",paddingBottom:"50px"};function h(){e.store.dashboardDesignerMode.exitFullscreen()}function g(){return p(function(t){return n.createElement("div",{key:t.id,className:"u_fullHeight"},n.createElement(o,(0,m.default)({},e,{dashboardPart:t,viewMode:!0,fullScreen:!0})))},t.dashboard.activeDashboardParts)}return n.createElement(s,{exitCallback:h},!d(e.dashboardDetail.dashboard.name)&&n.createElement("div",{className:"u_paddingAll dashboard-name"},e.dashboardDetail.dashboard.name,n.createElement("i",{title:a.getText("DASHBOARD_TITLE_EXIT_FULL_SCREEN_MODE"),className:"icon-cancel u_inlineBlock u_marginLeft pull-right selectable",onClick:h})),n.createElement("div",{className:"u_fullHeight dashboard-fullscreen",style:f},t.dashboard.activeDashboardParts.length>1?n.createElement(l,{settings:r},g()):g()))}).propTypes={store:n.PropTypes.object},e.exports=i()(f)},function(e,t,a){"use strict";var r,n;r=a(0),n=r.createClass({displayName:"Fullscreen",propTypes:{exitCallback:r.PropTypes.func},fn:function(){for(var e,t,a=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,n=a.length,i={};r