var CE_HTML={utils:{},consts:{},core:{},components:{view:{},tabs:{}},localization:{},onlineHelp:{},onlyApplied:{},versionLabels:{},svg:{},audit:{},vars:{traceLogEnabled:!1,develModuleBuild:"undefined"!=typeof DEVEL_MODULE_BUILD&&DEVEL_MODULE_BUILD,rpc_seq:1,rpc_call_url:"",lang:0,locale:"en_US",timeZoneOffsetMinutes:null,ceProductName:"",productKey:null,policyMode:!0,readOnlyMode:!1,showOnlyAppliedMode:!1,transactionID:null,clearTransactionRunning:!1,eraSessionId:"",eraCallbacks:null,$ce_div:$(),$ce_search_panel_div:$(),eraChangeNotifier:null,screenLocker:null,initState:0,editorInstanceId:"",directionLTR:!0,screenDebugModeEnabled:!1,helpVersion:"",eraHelpVersion:"63",eraHelpProductName:"era_admin",isCloudVersion:!1,standAloneInit:!1,showCloudDevelPolicies:!1,anonymousFuncCounter:1,customScripts:{},lastLoadScreenView:null,lastLoadedScreen:null,lastRequestedScreens:null,showOnlyAppliedModeTemporaryDisabled:!1,ce_plugins:{},navigationGroup:"",navigationMenu:"",isAuditMode:!1}};function initConfigEditor(){return CE_HTML.core.initConfigEditor.apply(this,arguments)}function CERPCAsync(i){function r(){function t(e,t){var n=e.indexOf(">")+1,o=e.lastIndexOf("<"),e=e.substr(n,o-n),o=moment(parseInt(e,10),"X");return null!==i.timeZoneOffsetMinutes&&o.zone(i.timeZoneOffsetMinutes),o.format(t)}var e=JSON.stringify(this.result),n=i.formatDate,o=i.formatTime;e=(e=e.replace(/<CE_FORMAT_DATE>-{0,1}\d+<\/CE_FORMAT_DATE>/gi,function(e){return t(e,n)})).replace(/<CE_FORMAT_TIME>-{0,1}\d+<\/CE_FORMAT_TIME>/gi,function(e){return t(e,o)}),this.result=JSON.parse(e)}function t(e,t){this.method="_CE.rpc_api."+t,this.params={array_filter_id:e},a.call(this),s.call(this)}function n(e,t){this.method="_CE.rpc_api."+t,this.params={job_id:e},a.call(this),s.call(this)}var e={autoCallEnabled:!0,suppressErrorReporting:!1,rpc_call_url:CE_HTML.vars.rpc_call_url||CE_HTML.core.getDefaultRpcCallUrl(),ceProductName:CE_HTML.vars.ceProductName||"era",majorVersion:CE_HTML.consts.majorVersion,minorVersion:CE_HTML.consts.minorVersion,version:CE_HTML.consts.version,lang:CE_HTML.vars.lang,eraSessionId:CE_HTML.vars.eraSessionId,timeZoneOffsetMinutes:CE_HTML.vars.timeZoneOffsetMinutes,formatDate:CE_HTML.consts.formatDate,formatTime:CE_HTML.consts.formatTime,screenLocker:CE_HTML.vars.screenLocker,displayErrorCallback:CE_HTML.core.configEngineError},s=(i=jQuery.isPlainObject(i)?(i.obsoleteVersion=!i.version&&void 0!==i.majorVersion,$.extend({},e,i)):e,function(){!0===i.autoCallEnabled&&this.call()}),a=(this.ce_syncFormatDateTime=function(e){return this.result={value:e},r.call(this),this.result.value},this.id=-1,this.method="",this.params={},this.error=null,this.result=null,this.additionalSuccesAction=null,this.editorInstanceId="",this.call=function(){var o,t,a;CE_HTML.vars.rpc_seq+=1,this.id=CE_HTML.vars.rpc_seq,this.editorInstanceId=CE_HTML.vars.editorInstanceId,this.params.lang||(this.params.lang=i.lang),this.params.transaction_id||(ce_GetTransactionID()?this.params.transaction_id=ce_GetTransactionID():jQuery.extend(this.params,i.obsoleteVersion?{product:i.ceProductName,major:i.majorVersion,minor:i.minorVersion}:{product:i.ceProductName,version:i.version})),this.params.transaction_id&&!CE_HTML.core.validateTransactionId(this.params.transaction_id,this.method)?error("Specified transaction_id is invalid!"):(o={params:this.params,method:this.method,id:this.id},i.eraSessionId&&(o.ERASessionID=i.eraSessionId),t=!1,i.screenLocker&&(i.screenLocker.lockScreen(this.method),t=!0),a=this,jQuery.ajax({type:"POST",url:i.rpc_call_url,dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify(o),success:function(e){if(a.error=e.error||null,a.result=void 0!==e.result?e.result:null,a.error)!1===i.suppressErrorReporting&&i.displayErrorCallback(a.error,o.method),error(a.error);else if(a.additionalSuccesAction){try{a.additionalSuccesAction()}catch(e){error(e)}a.additionalSuccesAction=null}this.callOnComplete(a)},error:function(e,t,n){a.result=null,a.error=t,n&&(a.error+=" (errorThrown: "+n+")"),!1===i.suppressErrorReporting&&i.displayErrorCallback(a.error,o.method),error(a.error),this.callOnComplete(a)},callOnComplete:function(e){if(jQuery.isFunction(e.onComplete))if(e.editorInstanceId===CE_HTML.vars.editorInstanceId)try{e.onComplete.call(e)}catch(e){error(e)}else trace("onComplete ingored due to different editor instance");t&&i.screenLocker&&i.screenLocker.unlockScreen(e.method)}}))},this.ce_ScreenHtmlGenerate=function(e,t,n,o){var a={html:!0,nestedViews:!0,values:!0,dependencyCheck:!0,dataProviders:!0,versioning:!0,preferCloudScreens:ce_IsCloudVersion()};o=jQuery.extend({},a,o),this.method="_CE.rpc_api.screen_get",this.params={references:jQuery.isArray(e)?e:[e],script_type:"javascript",options:o},t&&(this.params.path_prefix=t),n&&(this.params.transaction_id=n),CE_HTML.vars.lastRequestedScreens=this.params.references,s.call(this)},this.ce_ScreenResourceGet=function(e,t){this.method="_CE.rpc_api.screen_resource_get",this.params={IDs:jQuery.isArray(e)?e:[e]},void 0!==t&&(this.params.lang=t),s.call(this)},this.ce_ConfengGetUsernameFromSid=function(e){this.method="_CE.rpc_api.confeng_get_username_from_sid",this.params={sid_array:jQuery.isArray(e)?e:[e]},a.call(this),s.call(this)},this.ce_ArrayGetCount=function(e,t){t=t||null;this.method="_CE.rpc_api.array_member_count",this.params={path:e},t&&(this.params.transaction_id=t),s.call(this)},this.ce_ArrayMemberAdd=function(e,t,n,o,a,i){n=n||null;a=void 0===a||a,null!=t&&!jQuery.isEmptyObject(t)||(a=!(t={})),i=void 0===i?0:i,this.method="_CE.rpc_api.array_member_add",this.params={quick_valid:a,path:e,values:jQuery.isArray(t)?t:[t]},0!=i&&(a=parseInt(i,10),!1===isNaN(a)?(this.params.mode="insert",this.params.index=a):error("ArrayMemberAdd - index is not a number!")),n&&(this.params.transaction_id=n),s.call(this)},this.ce_ArrayMemberMove=function(e,t,n,o){o=o||null;this.method="_CE.rpc_api.array_member_move",this.params={quick_valid:!1,path:e,index_from:t,index_to:n},o&&(this.params.transaction_id=o),s.call(this)},this.ce_ArrayMemberRemove=function(e,t,n){n=n||null;this.method="_CE.rpc_api.array_member_remove",this.params={quick_valid:!1,path:e,indices:jQuery.isArray(t)?t:[t]},n&&(this.params.transaction_id=n),s.call(this)},this.ce_ArrayFilterCreate=function(e,t,n,o,a,i){t=t||null,n=n||null,o=o||null,i=i||!1;this.method="_CE.rpc_api.array_filter_create",this.params={path:e},t&&(this.params.filter_func_name=t),n&&(this.params.transaction_id=n),o&&(this.params.custom_params=o),a&&(this.params.stored_keys=a),i&&(this.params.transactionChanges=i),s.call(this)},function(){var e=ce_GetTransactionID();e&&CE_HTML.core.transactionInitialized()&&(this.params.transaction_id=e)});this.ce_ArrayFilterSetGuiFilter=function(e,t,n,o){t=t||null;this.method="_CE.rpc_api.array_filter_set_gui_filter",this.params={array_filter_id:e,filter_pattern:n,filter_keys:o},t&&(this.params.format_func_name=t),a.call(this),s.call(this)},this.ce_ArrayFilterGetMembers=function(e,t,n,o){t=t||1,n=n||0,o=o||null;this.method="_CE.rpc_api.array_filter_member_get",this.params={array_filter_id:e,from_index:t,count:n},o&&(this.params.format_func_name=o,this.additionalSuccesAction=r),a.call(this),s.call(this)},this.ce_ArrayFilterMemberMove=function(e,t,n){this.method="_CE.rpc_api.array_filter_member_move",this.params={array_filter_id:e,index_from:t,index_to:n},a.call(this),s.call(this)},this.ce_ArrayFilterGetCount=function(e){t.call(this,e,"array_filter_member_count")},this.ce_ArrayFilterReinit=function(e){t.call(this,e,"array_filter_reinit")},this.ce_ArrayFilterDestroy=function(e){t.call(this,e,"array_filter_destroy")},this.ce_ValuesGet=function(e,t,n,o){t=t||null,o=o||!1;this.method="_CE.rpc_api.screen_values_get",this.params={paths:e},t&&(this.params.transaction_id=t),o&&(this.params.transaction_origin_values=o),s.call(this)},this.ce_ValuesSet=function(e,t,n,o,a){t=t||null;this.method="_CE.rpc_api.screen_values_set",this.params={values:e,quick_valid:void 0===a||a},t&&(this.params.transaction_id=t),o&&(this.params.flags=o),this.additionalSuccesAction=r,s.call(this)},this.ce_Validate=function(e,t){t=t||null;this.method="_CE.rpc_api.validate",this.params={values:e},t&&(this.params.transaction_id=t),this.additionalSuccesAction=r,s.call(this)},this.ce_DependencyCheck=function(e,t,n){t=t||null;this.method="_CE.rpc_api.dependency_check",this.params={values:e},n&&(this.params.values_all=n),t&&(this.params.transaction_id=t),s.call(this)},this.ce_EnumTableGet=function(e){this.method="_CE.rpc_api.enum_table_get",this.params={paths:e},s.call(this)},this.ce_ProfileGetAllNames=function(e,t){t=t||null;this.method="_CE.rpc_api.profile_get_all_names",this.params={user_path_profile_arr:e},t&&(this.params.transaction_id=t),s.call(this)},this.ce_ProfileAdd=function(e,t,n,o){o=o||null;this.method="_CE.rpc_api.profile_add",this.params={user_path_profile_arr:e,profile_values:{name:t,settings:n}},o&&(this.params.transaction_id=o),s.call(this)},this.ce_ProfileRemove=function(e,t,n){n=n||null;this.method="_CE.rpc_api.profile_remove",this.params={user_path_profile_arr:e,index:t},n&&(this.params.transaction_id=n),s.call(this)},this.ce_ProfileGetActiveIndex=function(e,t){t=t||null;this.method="_CE.rpc_api.profile_get_active_index",this.params={user_path_profiles:e},t&&(this.params.transaction_id=t),s.call(this)},this.ce_ValueExists=function(e,t){t=t||null;this.method="_CE.rpc_api.value_exist",this.params={full_path:e},t&&(this.params.transaction_id=t),s.call(this)},this.ce_ValuesToDefault=function(e,t){t=t||null;this.method="_CE.rpc_api.screen_values_set_todefault",this.params={paths:e},t&&(this.params.transaction_id=t),s.call(this)},this.ce_IsChangedFromDefault=function(e,t){t=t||null;this.method="_CE.rpc_api.screen_values_is_changed_default",this.params={paths:e},t&&(this.params.transaction_id=t),s.call(this)},this.ce_StartPolicyEdit=function(e,t,n){this.method="_CE.rpc_api.start_policy_edit",this.params={product_name:e,policy:t,save_history:n},s.call(this)},this.ce_EndPolicyEdit=function(e,t,n){this.method="_CE.rpc_api.end_policy_edit",this.params={product_name:e,transaction_id:t,save_changes:n},this.additionalSuccesAction=function(){this.params.transaction_id==CE_HTML.vars.transactionID&&(CE_HTML.vars.transactionID=null)},s.call(this)},this.ce_OpenPolicyAudit=function(e){this.method="_CE.rpc_api.policy_audit_open",this.params={policy:e},s.call(this)},this.ce_ClosePolicyAudit=function(e){this.method="_CE.rpc_api.policy_audit_close",this.params={audit_handle:e},s.call(this)},this.ce_OpenPolicyDiff=function(e,t){this.method="_CE.rpc_api.policy_diff_open",this.params={policy:e,change_id:t},s.call(this)},this.ce_TransactionOpen=function(){this.method="_CE.rpc_api.transaction_open",this.params={},s.call(this)},this.ce_TransactionClose=function(e){this.method="_CE.rpc_api.transaction_close",this.params={transaction_id:e},this.additionalSuccesAction=function(){this.params.transaction_id==CE_HTML.vars.transactionID&&(CE_HTML.vars.transactionID=null)},s.call(this)},this.ce_TransactionCommit=function(e){this.method="_CE.rpc_api.transaction_commit",this.params={transaction_id:e},s.call(this)},this.ce_TransactionSnapshotSave=function(e){this.method="_CE.rpc_api.transaction_state_save",this.params={transaction_id:e},s.call(this)},this.ce_TransactionSnapshotRestore=function(e){this.method="_CE.rpc_api.transaction_state_restore",this.params={transaction_id:e},s.call(this)},this.ce_TransactionSnapshotRemove=function(e){this.method="_CE.rpc_api.transaction_state_remove",this.params={transaction_id:e},s.call(this)},this.ce_ValueFlagsGet=function(e,t){t=t||null;this.method="_CE.rpc_api.value_flags_get",this.params={paths:e},t&&(this.params.transaction_id=t),s.call(this)},this.ce_FlagsGet=this.ce_ValueFlagsGet,this.ce_ValueFlagsChange=function(e,t){t=t||null;this.method="_CE.rpc_api.value_flags_change",this.params={values:e},t&&(this.params.transaction_id=t),s.call(this)},this.ce_SubtreeValueFlagsChange=function(e,t){t=t||null;this.method="_CE.rpc_api.subtree_value_flags_change",this.params={values:e},t&&(this.params.transaction_id=t),s.call(this)},this.ce_GetPasswordHash=function(e){this.method="_CE.rpc_api.get_password_hash",this.params={password:e},s.call(this)},this.ce_ComputePassword=function(e,t){t=void 0===t?2:t,this.method="_CE.rpc_api.compute_password",this.params={password:e,algorithm:t},s.call(this)},this.ce_GetTranslatorLang=function(){this.method="_CE.rpc_api.confeng_translator_get_lang",this.params={},s.call(this)},this.ce_SetConfiguration=function(e){this.method="_CE.rpc_api.set_configuration",this.params={configuration:e},s.call(this)},this.ce_SavePolicy=function(e,t,n){this.method="_CE.rpc_api.save_policy",this.params={product_name:e,transaction_id:t,source:n},s.call(this)},this.ce_ConvertConfigurationToPolicy=function(e){this.method="_CE.rpc_api.convert_configuration_to_policy",this.params={configuration:e},s.call(this)},this.ce_ExportConfiguration=function(e,t){this.method="_CE.rpc_api.export_configuration",this.params={product_path:e,transaction_id:t},s.call(this)},this.ce_JobCreateExport=function(e,t,n,o,a){n=n||null,this.method="_CE.rpc_api.job_create_export",this.params={path:e,transaction_id:n,array_filter_id:a},s.call(this)},this.ce_JobCreateImport=function(e,t,n,o){n=n||null,this.method="_CE.rpc_api.job_create_import",this.params={path:e,data:t,transaction_id:n},o&&(this.params.member=o),s.call(this)};this.ce_JobGetStatus=function(e){n.call(this,e,"job_get_status")},this.ce_JobAbort=function(e){n.call(this,e,"job_abort")},this.ce_JobDelete=function(e){n.call(this,e,"job_delete")},this.ce_SearchQuery=function(e,t){t=t||null;this.method="_CE.rpc_api.screen_search",this.params={query:e},t&&(this.params.transaction_id=t),s.call(this)},this.ce_ScreenChangesGet=function(e){e=e||null;this.method="_CE.rpc_api.screen_changes_get",this.params={},e&&(this.params.transaction_id=e),s.call(this)},this.ce_VersionInfoGet=function(e,t){t=t||null,this.method="_CE.rpc_api.version_info_get",this.params={paths:jQuery.isArray(e)?e:[e],transaction_id:t},s.call(this)},this.ce_GetCertificateInfo=function(e,t,n,o){o=o||null,e={certificate_path:e,password_path:t,type_path:n};o&&(e.transaction_id=o),this.ce_GetCertificateInfoEx(e)},this.ce_GetCertificateInfoEx=function(e){this.method="_CE.rpc_api.certificate_info",this.params=e,s.call(this)},this.ce_LoadCertificate=function(e){this.method="_CE.rpc_api.confeng_load_certificate",this.params=e,s.call(this)},this.ce_GetHTMLGUIProductValues=function(e){this.method="_CE.rpc_api.get_html_gui_product_values",this.params={},e&&(this.params=e),s.call(this)},this.ce_GenerateGUID=function(e){e=e||null;this.method="_CE.rpc_api.generate_guid",this.params={},e&&(this.params.transaction_id=e),s.call(this)}}function ce_IsReadOnlyMode(){return CE_HTML.vars.readOnlyMode}function ce_IsPolicyMode(){return CE_HTML.core.policyModeEnabled()}function ce_IsProductMode(){return CE_HTML.core.productGUIModeEnabled()}function ce_GetTransactionID(){return CE_HTML.vars.transactionID}function ce_GetEraCallbacks(){return CE_HTML.vars.eraCallbacks}function ce_GetEraSesssionID(){return CE_HTML.vars.eraSessionId}function ce_GetProductName(){return CE_HTML.vars.ceProductName}function ce_GetProductKey(){return CE_HTML.vars.productKey}function ce_IsCloudVersion(){return CE_HTML.vars.isCloudVersion}function ce_GetCurrentLang(){return CE_HTML.vars.lang}function ce_CheckValidationStatus(e){return"CE_RET_OK"===e||"CE_RET_INFO"===e}function ce_CheckValidationResult(e){return null===ce_GetFirstInvalidResult(e)}function ce_ContainsMoreValidationResults(e){return e&&void 0===e.status}function ce_GetFirstInvalidResult(e){function t(e){return!e||!e.status||!1!==ce_CheckValidationStatus(e.status)}var n=null;if(ce_ContainsMoreValidationResults(e))jQuery.each(e,function(){return!1!==t(this)||(n=this,!1)});else if(!1===t(e))return e;return n}function ce_GetOnlineHelpLink(e,t){return CE_HTML.onlineHelp.getOnlineHelpLink(e,t)}function dbg(e){trace(e)}function trace(e){CE_HTML.vars.traceLogEnabled&&window.console&&(e=void 0===e?"trace":e,jQuery.isFunction(console.debug)?console.debug(e):console.log(e))}function assert(e,t){e||error("Assertion failed: "+t)}function error(e){window.console&&(e=e,"object"!==$.type(e)&&(e="error: "+e),jQuery.isFunction(console.error)?console.error(e):console.log(e))}CE_HTML.utils=function(){function cloneObject(e){function t(){}return t.prototype=e,new t}function freezeObject(e){var a;return jQuery.isFunction(Object.freeze)?(a=function(e){Object.freeze(e);for(var t,n=Object.keys(e),o=0;o<n.length;o++)"object"==typeof(t=e[n[o]])&&a(t);return e})(e):e}function getObjectMember(e,t){for(var n=t.split("."),o=e,a=0;a<n.length;a++)if(void 0===(o=o[n[a]]))return;return o}function currentTimeMs(){return(new Date).getTime()}function msieversion(e){var e=e||navigator.userAgent,t=e.indexOf("MSIE ");return-1<t?parseInt(e.substring(t+5,e.indexOf(".",t)),10):!!e.match(/Trident.*rv\:11\./)&&11}function runInsideMobileSafari(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&void 0===window.MSStream}function isBrowserCompatible(){var ES6testCode="(function(){let x=1;const r=[1,2].find(i => i===2);class Z{constructor(){}};for(let i of [1,2]){};Math.trunc(4.9);Math.sign(4);Math.cbrt(2);Math.log2(2);Math.log10(10);isFinite(10/0);isNaN('Hello');Number.isInteger(10);Number.isSafeInteger(10);if(Number.MIN_SAFE_INTEGER === undefined) throw new Error('MIN_SAFE_INTEGER');if(Number.MAX_SAFE_INTEGER === undefined) throw new Error('MAX_SAFE_INTEGER');if(Number.EPSILON === undefined) throw new Error('EPSILON');Symbol('id');function sum(...Args){};new Promise(function(resolve,reject){});})();";try{eval(ES6testCode)}catch(e){return!1}return!0}function compareValues(e,t,n){return n&&n.localeCompare&&"string"===$.type(e)?e.localeCompare(t):t<e?1:e<t?-1:0}function escapeHTMLSpecials(e){var t={"&":"&","<":"<",">":">","'":"'",'"':"""};return e.replace(/[&<>'"]/g,function(e){return t[e]||e})}function escapeHtmlText(e){e=escapeHTMLSpecials(e);return"<span>"+(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<b\s*>/gi,"<b>").replace(/<\/b\s*>/gi,"</b>")).replace(/<i\s*>/gi,"<i>").replace(/<\/i\s*>/gi,"</i>")).replace(/<br\s*>|(<br\s*\/>)/gi,"<br>")).replace(/&lt;/gi,"<")).replace(/&gt;/gi,">")).replace(/&quot;/gi,""")).replace(/&apos;/gi,"'")).replace(/&amp;/gi,"&")).replace(/&lrm;/gi,"‎")).replace(/&rlm;/gi,"‏"))+"</span>"}function escapeJQuerySelector(e){return e.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,function(e){return"\\"+e})}function getStackTrace(){try{undef()}catch(e){var s;return e.stack?e.stack:(s=function(e){for(var t=[],n=Array.prototype.slice,o=0;o<e.length;++o){var a=e[o];void 0===a?t[o]="undefined":null===a?t[o]="null":a.constructor&&(a.constructor===Array?a.length<3?t[o]="["+s(a)+"]":t[o]="["+s(n.call(a,0,1))+"..."+s(n.call(a,-1))+"]":a.constructor===Object?t[o]="#object":a.constructor===Function?t[o]="#function":a.constructor===String?t[o]='"'+a+'"':a.constructor===Number?t[o]=a:t[o]="?")}return t.join(",")},(e=>{for(var t,n,o="{anonymous}",a=/function(?:\s+([\w$]+))?\s*\(/,i=[],r=Array.prototype.slice;e&&i.length<10;){t=a.test(e.toString())&&RegExp.$1||o;try{n=r.call(e.arguments||[])}catch(e){n=["Cannot access arguments: "+e]}i[i.length]=t+"("+s(n)+")";try{e=e.caller}catch(e){i[i.length]="Cannot access caller: "+e;break}}return i})(arguments.callee).join("\n at "))}return""}function makeid(){for(var e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",n=0;n<10;n++)e+=t.charAt(Math.floor(Math.random()*t.length));return e}function stopEvent(e){return e&&(e.preventDefault(),e.stopPropagation()),!1}function appNameFromPath(e){var t=(e=e||"").lastIndexOf("\\");return-1===(t=-1!==t?t:e.lastIndexOf("/"))?e:e.substring(t+1)}return{freezeObject:freezeObject,cloneObject:cloneObject,getObjectMember:getObjectMember,currentTimeMs:currentTimeMs,msieversion:msieversion,runInsideMobileSafari:runInsideMobileSafari,isBrowserCompatible:isBrowserCompatible,escapeHTMLSpecials:escapeHTMLSpecials,escapeHtmlText:escapeHtmlText,escapeJQuerySelector:escapeJQuerySelector,getStackTrace:getStackTrace,makeid:makeid,stopEvent:stopEvent,compareValues:compareValues,appNameFromPath:appNameFromPath}}(),CE_HTML.consts={version:"-1.-1.-1",majorVersion:-1,minorVersion:-1,initState:{notInitialized:0,inProgress:1,initialized:2},policyFlagName:"policy_flag",policyStates:{ignore:0,apply:1,force:2,reset:3},policyArrayFlagName:"policy_flag_array",policyArrayLocalFlagName:"era_local_array_merge_flag",policyArrayStates:{replace:0,append:1,prepend:2},setByERAFlagName:"set_by_era_flag",setByERAStates:{isNotSet:0,isSet:1},userSettingFlagName:"user_setting_flag",userSettingFlagStates:{isNotSet:0,isSet:1},visibilityStates:{visible:1,disabled:2,hidden:3},screenLockerStates:{screenUnlock:0,screenLock:1,fullScreenLock:2},searchStates:{expresionInvalid:0,expresionFound:1,expresionNotFound:2},productSelectorStates:{enabled:0,disabled:1,hidden:2},keyboardKeys:{VK_TAB:9,VK_RETURN:13,VK_ESCAPE:27,VK_SPACE:32,VK_PAGEUP:33,VK_PAGEDOWN:34,VK_END:35,VK_HOME:36,VK_UP:38,VK_DOWN:40,VK_A:65},mouseKeys:{leftBtn:1,middleBtn:2,rightBtn:3},formatDate:"YYYY MMM D",formatTime:"HH:mm:ss",formatTimeNoSec:"HH:mm",productSelectorGroups:{features:{order:9,resID:"IDS_CONFENG_ERA_UI_PRODUCT_GROUP_FEATURES"},endpoint:{order:10,resID:"IDS_CONFENG_ERA_UI_PRODUCT_GROUP_ENDPOINT"},server:{order:20,resID:"IDS_CONFENG_ERA_UI_PRODUCT_GROUP_SERVER"},mobile:{order:30,resID:"IDS_CONFENG_ERA_UI_PRODUCT_GROUP_MOBILE"},management:{order:50,resID:"IDS_CONFENG_ERA_UI_PRODUCT_GROUP_MANAGEMENT"},others:{order:60,resID:"IDS_CONFENG_ERA_UI_PRODUCT_GROUP_OTHERS"}},historyFlags:{added:"added",removed:"removed",changed:"changed",same:"same"},productValues:{"eset.features.updater":{setting:"features.updater.main",ceProductName:"standalone",description:"Auto-updates",disabled:!1,replacedBy:"eset.features",helplink:"https://help.eset.com/getHelp?product=%ERA_PRODUCT_NAME%&version=latest&lang=%LCID%%TOPIC%",category:"desktop",cloudSupported:!0,localArrayMergingSupported:!0,selectorGroup:"features",groupOrder:1},"eset.features":{setting:"features.main",ceProductName:"standalone",description:"Common features",disabled:!1,helplink:"https://help.eset.com/getHelp?product=%ERA_PRODUCT_NAME%&version=latest&lang=%LCID%%TOPIC%",category:"desktop",cloudSupported:!0,localArrayMergingSupported:!0,selectorGroup:"features",groupOrder:2},"eset.local.products.endpoint":{setting:"main",ceProductName:"endpoint",description:"ESET Endpoint for Windows",disabled:!1,helplink:"https://help.eset.com/getHelp?product=ees&version=%VERSION%&lang=%LCID%%TOPIC%",category:"desktop",cloudSupported:!0,localArrayMergingSupported:!0,selectorGroup:"endpoint",platform:["windows"],groupOrder:1},"eset.local.products.desktop_mac":{setting:"dunx_new.desktop_mac",ceProductName:"desktop_mac",description:"ESET Endpoint for macOS (V7+)",disabled:!1,depedencyCheckMode:"wholeScreenOrDlg",cloudSupported:!0,localArrayMergingSupported:!0,selectorGroup:"endpoint",platform:["osx"],groupOrder:2},"eset.local.products.endpoint_mac":{setting:"dunx.endpoint.main",ceProductName:"endpoint_mac",description:"ESET Endpoint for macOS (V6) and Linux (V4)",descriptionCloud:"ESET Endpoint for macOS (V6)",disabled:!1,helplink:"https://help.eset.com/getHelp?product=ees_mac&version=%VERSION%&lang=%LCID%",depedencyCheckMode:"wholeScreenOrDlg",cloudSupported:!0,selectorGroup:"endpoint",platform:["osx"],groupOrder:3},"eset.local.products.eea_unix":{setting:"dunx_new.eea_unix",ceProductName:"eea_unix",description:"ESET Endpoint for Linux (V7+)",disabled:!1,helplink:"https://help.eset.com/getHelp?product=eeau&version=%VERSION%&lang=%LCID%%TOPIC%",depedencyCheckMode:"wholeScreenOrDlg",cloudSupported:!0,selectorGroup:"endpoint",platform:["linux"],groupOrder:4},"eset.local.products.efsw":{setting:"main",ceProductName:"efsw",description:"ESET Server/File Security for Microsoft Windows Server (V6+)",disabled:!1,helplink:"https://help.eset.com/getHelp?product=efsw&version=%VERSION%&lang=%LCID%%TOPIC%",category:"server",cloudSupported:!0,localArrayMergingSupported:!0,selectorGroup:"server",platform:["windows"],groupOrder:1},"eset.local.products.efs_unix":{setting:"dunx_new.efs_unix",ceProductName:"efs_unix",description:"ESET Server/File Security for Linux (V7+)",disabled:!1,helplink:"https://help.eset.com/getHelp?product=efsu&version=%VERSION%&lang=%LCID%%TOPIC%",depedencyCheckMode:"wholeScreenOrDlg",cloudSupported:!0,localArrayMergingSupported:!0,localArrayMergingVersionFrom:"8.1",selectorGroup:"server",platform:["linux"],groupOrder:3},"eset.local.products.emsx":{setting:"main",ceProductName:"emsx",description:"ESET Mail Security for Microsoft Exchange Server (V6+)",disabled:!1,helplink:"https://help.eset.com/getHelp?product=emsx&version=%VERSION%&lang=%LCID%%TOPIC%",category:"server",cloudSupported:!0,localArrayMergingSupported:!0,selectorGroup:"server",platform:["windows"],groupOrder:4},"eset.local.products.emsl":{setting:"main",ceProductName:"emsl",description:"ESET Mail Security for IBM Domino (V6+)",disabled:!1,helplink:"https://help.eset.com/getHelp?product=emsl&version=%VERSION%&lang=%LCID%%TOPIC%",category:"server",cloudSupported:!0,localArrayMergingSupported:!0,selectorGroup:"server",platform:["windows"],groupOrder:6},"eset.local.products.server_unix4":{setting:"dunx.endpoint.main",ceProductName:"server_unix4",description:"ESET Server/File/Mail/Gateway Security for Linux/FreeBSD (V4)",disabled:!1,helplink:"https://go.eset.eu/manual?prod_abb=efs&prod_version=45&doc_name=userguide&lng_abb=%LANG%",depedencyCheckMode:"wholeScreenOrDlg",cloudSupported:!1,selectorGroup:"server",platform:["linux"],groupOrder:9},"eset.local.products.eshp":{setting:"main",ceProductName:"eshp",description:"ESET Security for Microsoft SharePoint Server (V6+)",disabled:!1,helplink:"https://help.eset.com/getHelp?product=eshp&version=%VERSION%&lang=%LCID%%TOPIC%",category:"server",cloudSupported:!0,localArrayMergingSupported:!0,selectorGroup:"server",platform:["windows"],groupOrder:10},"eset.local.products.eesa":{setting:"eesa.main",ceProductName:"eesa",description:"ESET Endpoint Security for Android",disabled:!1,helplink:"https://help.eset.com/getHelp?product=eesa&version=%VERSION%&lang=%LCID%%TOPIC%",cloudSupported:!0,selectorGroup:"mobile",platform:["android"],onPremiseVersionMax:"11.0",groupOrder:1},"eset.local.products.era.mdm.ios":{setting:"era.mdm.ios.main",ceProductName:"era",description:"ESET MDM for iOS & iPadOS",disabled:!1,helplink:"https://help.eset.com/getHelp?product=%ERA_PRODUCT_NAME%&version=%ERA_VERSION%&lang=%LCID%%TOPIC%",cloudSupported:!0,noProductVersionLabels:!0,selectorGroup:"mobile",platform:["ios"],onPremiseVersionMax:"11.0",groupOrder:2},"eset.local.products.era.mdmcore":{setting:"era.mdmcore.main",ceProductName:"era",description:"ESET Mobile Device Connector",disabled:!1,helplink:"https://help.eset.com/getHelp?product=%ERA_PRODUCT_NAME%&version=%ERA_VERSION%&lang=%LCID%%TOPIC%",cloudSupported:!1,selectorGroup:"mobile",onPremiseVersionMax:"11.0",groupOrder:3},"eset.local.products.era.agent":{setting:"era.agent.main",ceProductName:"era",description:"ESET PROTECT Agent",disabled:!1,helplink:"https://help.eset.com/getHelp?product=%ERA_PRODUCT_NAME%&version=%ERA_VERSION%&lang=%LCID%%TOPIC%",helplinkCloud:"https://help.eset.com/getHelp?product=protect_cloud&lang=%LCID%%TOPIC%",cloudSupported:!0,selectorGroup:"management",groupOrder:1},"eset.local.products.era.server":{setting:"era.server.main",ceProductName:"era",description:"ESET PROTECT Server",disabled:!0,helplink:"https://help.eset.com/getHelp?product=%ERA_PRODUCT_NAME%&version=%ERA_VERSION%&lang=%LCID%%TOPIC%",cloudSupported:!1,selectorGroup:"management",groupOrder:2},"eset.local.products.era.rdsensor":{setting:"rdsensor.main",ceProductName:"era",description:"ESET Rogue Detection Sensor",disabled:!1,limitedSupport:!0,helplink:"https://help.eset.com/getHelp?product=%ERA_PRODUCT_NAME%&version=%ERA_VERSION%&lang=%LCID%%TOPIC%",cloudSupported:!0,selectorGroup:"management",groupOrder:3},"eset.local.products.ei.agent":{setting:"ei.agent.main",ceProductName:"ei",description:"ESET Inspect Connector",disabled:!1,cloudSupported:!0,selectorGroup:"others",groupOrder:1,platform:["windows","linux","osx"]},"eset.local.products.efde.computer":{setting:"efde.computer.main",ceProductName:"efde",description:"ESET Full Disk Encryption",disabled:!1,cloudSupported:!0,selectorGroup:"others",groupOrder:2,platform:["windows","osx"]},"eset.local.products.ech":{setting:"ech.main",ceProductName:"ech",description:"ESET Bridge",disabled:!1,cloudSupported:!0,selectorGroup:"others",groupOrder:3,platform:["windows","linux"]}},getProductValue:function(e){return"eset.local.products.efde"===e?this.productValues["eset.local.products.efde.computer"]:"eset.local.products.ei"===e?this.productValues["eset.local.products.ei.agent"]:this.productValues[e]},versionInfo:{OSMap:{windows:{icon:"CE_esetico-windows",label:"Windows",labelVersionMap:{"5.0":{desktop:"2000"},5.1:{desktop:"XP"},5.2:{desktop:"XP",server:"Server 2003"},"6.0":{desktop:"Vista",server:"Server 2008"},"6.0.6000":{desktop:"Vista (no SP)",desktopLong:"Vista (%LOCALIZATION_NO_SERVICE_PACK%)",server:"Server 2003"},"6.0.6001":{desktop:"Vista SP1",server:"Server 2008"},"6.0.6002":{desktop:"Vista SP2",server:"Server 2008 SP2"},6.1:{desktop:"7",server:"Server 2008 R2"},6.2:{desktop:"8",server:"Server 2012"},6.3:{desktop:"8.1",server:"Server 2012 R2"},"10.0":{desktop:"10",server:"Server 2016"}},maxPrecision:2},osx:{icon:"CE_esetico-apple",label:"macOS"},ios:{icon:"CE_esetico-apple",label:"iOS"},linux:{icon:"CE_esetico-linux",label:"Linux"},android:{icon:"CE_esetico-android",label:"Android"},exchange:{icon:"CE_esetico-exchange",label:"Exchange Server"}},flagsMap:{IOS_SUPERVISED:{icon:"CE_esetico-apple",label:"ABM",description:"versionLabelFlagDEP"},ANDROID_DO_MODE:{icon:"CE_esetico-android",label:"DO",description:"versionLabelFlagDO"},OS_WINDOWS:{icon:"CE_esetico-windows",label:"",description:"versionLabelFlagWin"},OS_MACOSX:{icon:"CE_esetico-apple",label:"",description:"versionLabelFlagMac"},NOT_FOR_THIRDPARTY_MDM:{icon:"CE_esetico-party-management-icon",label:"",description:"versionLabelFlagNotThirPartyMDM"}}}},CE_HTML.utils.freezeObject(CE_HTML.consts),CE_HTML.localization=(e=>{var l={policyApply:{resID:"IDS_CONFENG_UI_POLICY_APPLY_LABEL"},policyForce:{resID:"IDS_CONFENG_UI_POLICY_FORCE_LABEL"},fileSizeB:{resID:"IDS_CONFENG_UI_FILESIZE_BYTES_LABEL"},fileSizeKB:{resID:"IDS_CONFENG_UI_FILESIZE_KBYTES_LABEL"},fileSizeMB:{resID:"IDS_CONFENG_UI_FILESIZE_MBYTES_LABEL"},fileSizeGB:{resID:"IDS_CONFENG_UI_FILESIZE_GBYTES_LABEL"},timeDays:{resID:"IDS_CONFENG_UI_TIMEPERIOD_DAYS_LABEL"},timeWeeks:{resID:"IDS_CONFENG_UI_TIMEPERIOD_WEEKS_LABEL"},timeMonths:{resID:"IDS_CONFENG_UI_TIMEPERIOD_MONTHS_LABEL"},timeYears:{resID:"IDS_CONFENG_UI_TIMEPERIOD_YEARS_LABEL"},timeHours:{resID:"IDS_CONFENG_UI_TIMEPERIOD_HOURS"},timeMinutes:{resID:"IDS_CONFENG_UI_TIMEPERIOD_MINUTES"},timeSeconds:{resID:"IDS_CONFENG_UI_TIMEPERIOD_SECONDS"},showPassword:{resID:"IDS_CONFENG_UI_SHOW_PASSWORD_LABEL"},hidePassword:{resID:"IDS_CONFENG_UI_HIDE_PASSWORD_LABEL"},changePassword:{resID:"IDS_CONFENG_UI_CHANGE_PASSWORD"},buttonSave:{resID:"IDS_CONFENG_GENERAL_SAVE"},buttonOk:{resID:"IDS_CONFENG_GENERAL_OK"},buttonCancel:{resID:"IDS_CONFENG_GENERAL_CANCEL"},valueIsReadOnly:{resID:"IDS_CONFENG_UI_VALUE_IS_READONLY"},valueIsUserSetting:{resID:"IDS_CONFENG_GENERAL_USERSETTING_CAPTION"},valueIsNaN:{resID:"IDS_CONFENG_UI_VALIDATION_ERROR_NOT_A_NUMBER"},valueOutOfRangeMinValueIs:{resID:"IDS_CONFENG_UI_VALIDATION_ERROR_BELOW_MINIMUM"},valueOutOfRangeMaxValueIs:{resID:"IDS_CONFENG_UI_VALIDATION_ERROR_ABOVE_MAXIMUM"},add:{resID:"IDS_CONFENG_GENERAL_ADD"},remove:{resID:"IDS_CONFENG_GENERAL_REMOVE"},delete:{resID:"IDS_CONFENG_GENERAL_REMOVE"},edit:{resID:"IDS_CONFENG_GENERAL_EDIT"},view:{resID:"IDS_CONFENG_GENERAL_VIEW"},copy:{resID:"IDS_CONFENG_GENERAL_COPY"},import:{resID:"IDS_CONFENG_JOB_IMPORT_FILE_BUTTON_START"},export:{resID:"IDS_CONFENG_JOB_EXPORT_FILE_BUTTON_START"},validationError:{resID:"IDS_CONFENG_UI_VALIDATION_ERROR_MULTIPLE"},buttonClose:{resID:"IDS_CONFENG_UI_BUTTON_CLOSE"},selectProduct:{resID:"IDS_CONFENG_UI_SELECT_PRODUCT"},selectProductTooltip:{resID:"IDS_CONFENG_UI_SELECT_PRODUCT_TOOLTIP"},addCertificate:{resID:"IDS_CONFENG_UI_ADD_CERTIFICATE"},typeToSearch:{resID:"IDS_CONFENG_UI_TYPE_TO_SEARCH"},versionLabelFrom:{resID:"IDS_CONFENG_UI_VERSION_LABEL_FROM"},versionLabelNameFrom:{resID:"IDS_CONFENG_UI_VERSION_LABEL_NAME_FROM"},versionLabelTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_TO"},versionLabelNameTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_NAME_TO"},versionLabelFromTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_FROM_TO"},versionLabelNameFromTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_NAME_FROM_TO"},versionLabelEnumFrom:{resID:"IDS_CONFENG_UI_VERSION_LABEL_ENUM_FROM"},versionLabelEnumNameFrom:{resID:"IDS_CONFENG_UI_VERSION_LABEL_ENUM_NAME_FROM"},versionLabelEnumTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_ENUM_TO"},versionLabelEnumNameTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_ENUM_NAME_TO"},versionLabelEnumFromTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_ENUM_FROM_TO"},versionLabelEnumNameFromTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_ENUM_NAME_FROM_TO"},versionLabelFlagDEP:{resID:"IDS_CONFENG_UI_VERSION_LABEL_FLAG_DEP"},versionLabelNoServicePack:{resID:"IDS_CONFENG_UI_VERSION_LABEL_NO_SERVICE_PACK"},versionLabelFlagDO:{resID:"IDS_CONFENG_UI_VERSION_LABEL_FLAG_DO"},versionLabelToOrWithDo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_TO_OR_FLAG_DO"},versionLabelFlagWin:{resID:"IDS_CONFENG_UI_VERSION_LABEL_FLAG_OS_WINDOWS"},versionLabelFlagMac:{resID:"IDS_CONFENG_UI_VERSION_LABEL_FLAG_OS_MACOSX"},versionLabelFlagNotThirPartyMDM:{resID:"IDS_CONFENG_UI_VERSION_LABEL_NOT_FOR_THIRDPARTY_MDM"},versionLabelGruppedPrefaceAvailable:{resID:"IDS_CONFENG_UI_VERSION_LABEL_GROUPPED_PREFACE_AVAILABLE"},versionLabelGruppedFrom:{resID:"IDS_CONFENG_UI_VERSION_LABEL_GROUPPED_FROM"},versionLabelGruppedNameFrom:{resID:"IDS_CONFENG_UI_VERSION_LABEL_GROUPPED_NAME_FROM"},versionLabelGruppedTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_GROUPPED_TO"},versionLabelGruppedNameTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_GROUPPED_NAME_TO"},versionLabelGruppedFromTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_GROUPPED_FROM_TO"},versionLabelGruppedNameFromTo:{resID:"IDS_CONFENG_UI_VERSION_LABEL_GROUPPED_NAME_FROM_TO"},policyIsIgnored:{resID:"IDS_CONFENG_ERA_UI_POLICY_IGNORE_DESCRIPTION"},policyWillBeIgnored:{resID:"IDS_CONFENG_ERA_UI_POLICY_WILL_BE_IGNORED_DESC"},policyIsApplied:{resID:"IDS_CONFENG_ERA_UI_POLICY_APPLY_DESCRIPTION"},policyWillBeApplied:{resID:"IDS_CONFENG_ERA_UI_POLICY_WILL_BE_APPLIED_DESC"},policyIsForced:{resID:"IDS_CONFENG_ERA_UI_POLICY_FORCE_DESCRIPTION"},policyWillBeForced:{resID:"IDS_CONFENG_ERA_UI_POLICY_WILL_BE_FORCED_DESC"},policyGroupIgnoreAllDescription:{resID:"IDS_CONFENG_ERA_UI_POLICY_GROUP_IGNORE_DESCRIPTION"},policyGroupApplyAllDescription:{resID:"IDS_CONFENG_ERA_UI_POLICY_GROUP_APPLY_DESCRIPTION"},policyGroupForceAllDescription:{resID:"IDS_CONFENG_ERA_UI_POLICY_GROUP_FORCE_DESCRIPTION"},policyArrayReplace:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_REPLACE_LABEL"},policyArrayReplaceDescription:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_REPLACE_DESCRIPTION"},policyArrayLocalReplaceDescription:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_LOCAL_REPLACE_DESCRIPTION"},policyArrayAppend:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_APPEND_LABEL"},policyArrayAppendDescription:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_APPEND_DESCRIPTION"},policyArrayLocalAppendDescription:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_LOCAL_APPEND_VERSION_FROM_DESCRIPTION"},policyArrayPrepend:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_PREPEND_LABEL"},policyArrayPrependDescription:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_PREPEND_DESCRIPTION"},policyArrayLocalPrependDescription:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_LOCAL_PREPEND_VERSION_FROM_DESCRIPTION"},policyArrayLabel:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_LABEL"},policyArrayLocalLabel:{resID:"IDS_CONFENG_ERA_UI_POLICY_ARRAY_LOCAL_LABEL"},policyNonEmptyArraySetToIgnoreWarning:{resID:"IDS_CONFENG_ERA_UI_POLICY_NON_EMPTY_ARRAY_SET_TO_IGNORE_WARNING"},uploadFileLimitReached:{resID:"IDS_CONFENG_ERA_UI_POLICY_UPLOAD_FILE_SIZE_LIMIT_REACHED"},changeProductConfirm:{resID:"IDS_CONFENG_ERA_UI_PRODUCT_CHANGE_CONFIRM"},browserNotSupportedTitle:{resID:"IDS_CONFENG_ERA_UI_BROWSER_NOT_SUPPORTED_TITLE"},browserNotSupportedText:{resID:"IDS_CONFENG_ERA_UI_BROWSER_NOT_SUPPORTED_TEXT"},valueWasAdded:{resID:"IDS_CONFENG_ERA_AUDIT_MODE_VALUE_ADDED"},valueWasRemoved:{resID:"IDS_CONFENG_ERA_AUDIT_MODE_VALUE_REMOVED"},valueWasChanged:{resID:"IDS_CONFENG_ERA_AUDIT_MODE_VALUE_CHANGED"}},c=(e.freezeObject(l),{});return{load:function(t,n,e){function o(){function e(e){for(var t in e)c[t]=e[t].resID}e(l),n&&e(n),t&&t()}Object.keys(c).forEach(function(e){delete c[e]}),a=[],s(l),n&&s(n);var a,i,r=a;function s(e){for(var t in e){t=e[t];t.resID&&a.push(t.resID)}}r.length?((i=new CERPCAsync({suppressErrorReporting:!0})).onComplete=function(){var e;this.error?(error("Failed to load localization..."),o()):((e=function(e,t){for(var n in e){var o=e[n],a=t[o.resID],i=void 0===a||0===a.indexOf("# String not found ");c[n]&&error('Duplicit key "'+n+'" found...'),c[n]=i?o.resID:a}})(l,this.result),n&&e(n,this.result),t&&t())},i.ce_ScreenResourceGet(r,e)):o()},getStr:function(e){return c[e]},getStrMap:function(){return c},getProductChangeConfirmTextPlain:function(){return this.getStr("changeProductConfirm").replace(/<br>/g,"\n")||""}}})(CE_HTML.utils),CE_HTML.onlineHelp=((a,i)=>{function t(e,t){var t=t||i.productKey,n=e.split(":");if(1<n.length&&(t=n[0],e=n[1]),t){var o,n=a.getProductValue(t)||{},t=i.isCloudVersion&&n.helplinkCloud||n.helplink,n=$(".CE-menu");if(void 0!==(t=n.length&&(o=n.ce_GetValue())?n.ce_GetDataProvider().filter(function(e){return e?.value?.data===o})[0]?.value?.helplink||""||t:t))return e=void 0===e?"":"&topic="+e,t=t.replace("%LCID%",i.lang).replace("%VERSION%",i.helpVersion).replace("%TOPIC%",e.toLowerCase()).replace("%LANG%",i.locale.replace("_","-")).replace("%ERA_VERSION%",i.eraHelpVersion).replace("%ERA_PRODUCT_NAME%",i.eraHelpProductName)}}return{isAvailable:function(){return null!=i.productKey&&void 0!==a.getProductValue(i.productKey).helplink},isContextSensitive:function(){var e;return null!=i.productKey&&void 0!==(e=a.getProductValue(i.productKey).helplink)&&-1!=e.search("%TOPIC%")},displayHelp:function(e){return trace("Opening helplink: "+(e=t(e))),window.open(e),e},getIDH:function e(t){function i(e,t){var n,o,a=!0;(e.hasClass("CE_panel_collapsed")||e.hasClass("CE_modal")&&1e3!=t)&&(a=!1),e.hasClass("CE-group")&&(t=0),n=e.attr("helpid"),o=t,void 0!==n&&(void 0===r||o<=s)&&(r=n,s=o),t+=1,a&&e.children().each(function(){i($(this),t)})}var r=t.attr("helpid"),s=1;return i(t,1e3),r=void 0===r&&(t=t.parents(".CE_modal, #page-view")).length?e(t.first()):r},getOnlineHelpLink:t}})(CE_HTML.consts,CE_HTML.vars),CE_HTML.onlyApplied=((_,f)=>{function n(e,t){t=void 0===t||t;for(var n,o=function(e){return e instanceof f.CEText&&""===e.getText().replace("\n\r ","")},a=function(e,t){!1===t?(void 0===e.showHideAppliedVisible&&(e.showHideAppliedVisible=e.isVisible()),e.hide(),e.$component.attr("data-hidden-only-applied","yes")):(!0===e.showHideAppliedVisible&&(delete e.showHideAppliedVisible,e.show()),e.$component.removeAttr("data-hidden-only-applied"))},i=!0,r=null,s=!0,l=!0,c=!0,d=0,p=null,u=function(){r&&!s&&r.show(!0)},d=0;d<e.length;++d){var h,m=e[d],C=!1;m.isContainer()?C=v(m,t):((C=m.isVisible())&&(null===(h=m.getPolicyValue())?(n=m)instanceof f.CEHeader||n instanceof f.CERadioHorizontalHeader?(u(),r=m,C=!(c=l=s=!0)):o(m)?(l&&(C=!1),c=l=!0):(n=m)instanceof f.CEText&&""!==n.getText().replace("\n\r ","")?(c&&(C=!1),c=!0):C=!1:h===_.policyStates.ignore?c=!(C=!1):s=l=c=!1),C?p=m:a(m,t)),i=i&&!C}return u(),p&&o(p)&&a(p,t),i}function v(e,t){return t=void 0===t||t,!n(e.objects(),t)||(e.show(t),!1)}return{hideNonAppliedSettings:function(e){return v(e,!1)},showNonAppliedSettings:v,showAppliedSetting:function(e){return!(!e||!e.getPolicyValue()||(delete e.showHideAppliedVisible,e.$component.removeAttr("data-hidden-only-applied"),e.show(),0))}}})(CE_HTML.consts,CE_HTML.components),CE_HTML.versionLabels=((d,m,C,_)=>{function p(t){var e=t.split(".");this.getPrecision=function(){return e.length},this.isPrecise=function(){return"0"===e[e.length-1].trim()},this.isIncluded=function(e){return 0===e.indexOf(t)},this.getAsPreciseIfPossible=function(){return 1===this.getPrecision()?t+".0":t}}function f(t,n,o){var a={};this.setElementProps=function(e){a=e||a},this.getElementProps=function(){return a},this.getType=function(){return t},this.getSubType=function(){return n},this.getSubTypeData=function(){return o},this.toString=function(){var e={};return e[t]={},e[t][n]=o,JSON.stringify(e)},this.compareTo=function(e){return this.toString().localeCompare(e.toString())},this.compareToStr=function(e){return this.toString().localeCompare(e||"")}}function a(){var e=$('<span class="CE_label CE_label-versioning CE_height-spacer"><span class="CE_esetico">l</span></span>');return e.data("versionInfoData",new f("spacerElement","height","")),e}var v,u=function(e){for(var t="",n=0;n<e.length;++n)0<n&&e[n]===e[n].toUpperCase()&&(t+="-"),t+=e[n].toUpperCase();return new RegExp("(<"+t+">)|(<"+t+">)|(<"+t+">)|(\\${"+e+"})","g")},h=function(e,t,n,o){var a,i=e.desktop||"",r=e.server||"",s=e[o]||"",e=(e=e.desktopLong||"")&&e.replace("%LOCALIZATION_NO_SERVICE_PACK%",_.versionLabelNoServicePack);return s?(a={short:s,translationFound:!0},"desktop"===o?(a.long=n+" "+(e||i),r&&(a.long+=", "+r)):a.long=n+" "+s,a):(o=i||r||"")?{short:o,long:n+" "+(e||""||o),translationFound:!0}:{short:t,long:n+" "+t}},y=function(e,t,n,o,a){var i=new p(e);if(n){if(i.isPrecise())return h(n[e]||{},e,t,a);for(var r,s=Object.keys(n),l="",c=0;c<s.length;c++)r=s[c],i.isIncluded(r)&&l<r&&(l=r);if(l)return h(n[l],e,t,a)}n=i.getPrecision()>=o||i.isPrecise()?e:e+".x";return h({},n,t,a)},E=function(e,t,n,o,a){n=n||{};e=new p(e).getAsPreciseIfPossible();return h(n[e]||{},e,t,a)},g=function(e,t,n){maxPrecision=n.maxPrecision||4,productCategory=n.productCategory||"desktop";var o=e.from||"",a=e.to||"",i="",r="",s="";if(o.length&&a.length){var l,c=y(a,t,n.labelVersionMap,maxPrecision,productCategory),i=(l=E(o,t,n.labelVersionMap,maxPrecision,productCategory)).short,r=c.short;s=c.translationFound&&l.translationFound?(s=(n.groupped?_.versionLabelGruppedNameFromTo:_[n.enumOptionName?"versionLabelEnumNameFromTo":"versionLabelNameFromTo"]).replace(u("NameFrom"),l.long)).replace(u("NameTo"),c.long):(s=(s=(n.groupped?_.versionLabelGruppedFromTo:_[n.enumOptionName?"versionLabelEnumFromTo":"versionLabelFromTo"]).replace(u("ProductOrOsName"),t)).replace(u("VerFrom"),l.short)).replace(u("VerTo"),c.short)}else if(o.length)i=(l=E(o,t,n.labelVersionMap,maxPrecision,productCategory)).short,s=l.translationFound?(n.groupped?_.versionLabelGruppedNameFrom:_[n.enumOptionName?"versionLabelEnumNameFrom":"versionLabelNameFrom"]).replace(u("NameFrom"),l.long):(s=(n.groupped?_.versionLabelGruppedFrom:_[n.enumOptionName?"versionLabelEnumFrom":"versionLabelFrom"]).replace(u("ProductOrOsName"),t)).replace(u("VerFrom"),l.short);else if(a.length)r=(c=y(a,t,n.labelVersionMap,maxPrecision,productCategory)).short,s=c.translationFound?(n.groupped?_.versionLabelGruppedNameTo:_[n.enumOptionName?"versionLabelEnumNameTo":"versionLabelNameTo"]).replace(u("NameTo"),c.long):(s=(n.groupped?_.versionLabelGruppedTo:_[n.enumOptionName?"versionLabelEnumTo":"versionLabelTo"]).replace(u("ProductOrOsName"),t)).replace(u("VerTo"),c.short);else{if(!$.isEmptyObject(e))return w("'from' either 'to' is not set and value is not empty object!"),{};s=t}return{labelFrom:i,labelTo:r,description:s=n.enumOptionName?s.replace(u("OptionName"),n.enumOptionName):s}},b=function(e,t,n,o,a,i){a=a||4,i=i||"desktop";var e=e.to||"",r="";return e.length&&t.label.length?{labelTo:r=y(e,n,o,a,i).short,labelOr:t.label,description:_.versionLabelToOrWithDo.replace(u("ProductOrOsName"),n).replace(u("VerTo"),r)}:(w("'to' is not set!"),{})},S=function(e,t,n,o){var a,i=$('<span class="CE_label CE_label-versioning"></span>').append($('<span class="CE_esetico"></span>').addClass(e));return t.label?i.append('<span class="CE_text">'+d.escapeHTMLSpecials(t.label)+"</span>"):t.labelFrom&&t.labelTo?(i.append('<span class="CE_text CE_text_from">'+d.escapeHTMLSpecials(t.labelFrom)+"</span>"),i.append('<span class="CE_sign">–</span>'),i.append('<span class="CE_text CE_text_to">'+d.escapeHTMLSpecials(t.labelTo)+"</span>")):t.labelTo&&t.labelOr?(i.append('<span class="CE_sign">≤</span>'),i.append('<span class="CE_text CE_text_to">'+d.escapeHTMLSpecials(t.labelTo)+"</span>"),i.append('<span class="CE_sign">|</span>'),i.append('<span class="CE_text CE_text_or">'+d.escapeHTMLSpecials(t.labelOr)+"</span>")):t.labelFrom?(i.append('<span class="CE_sign">≥</span>'),i.append('<span class="CE_text CE_text_from">'+d.escapeHTMLSpecials(t.labelFrom)+"</span>")):t.labelTo&&(i.append('<span class="CE_sign">≤</span>'),i.append('<span class="CE_text CE_text_to">'+d.escapeHTMLSpecials(t.labelTo)+"</span>")),t.description&&(a=t.descriptionAsHtml?t.description:d.escapeHtmlText(t.description),i.tooltip({container:"body",placement:"auto CE_top",html:!0,template:'<div class="CE_tooltip CE_tooltip-versioning"><div class="CE_tooltip-arrow"></div><div class="CE_tooltip-inner"></div></div>',title:function(){return a}})),n&&n(i),o&&o.setElementProps({icon:e,labelTextAndDesc:t}),i},w=function(e){(v||error)(e)},I=function(e,t){var n;return!!(e&&e.length&&t)&&(n=!1,e.each(function(){var e=$(this).data("versionInfoData");return!e||0!==e.compareTo(t)||!(n=!0)}),n)};function r(e,s){v=s.errorCallback;var t,n,o,a,i,r,l,c,d,p,u,h=$();return s.orOption?(t=e,n=s,p=$(),void 0===(u=t.os)?w("OrOption - OS missing!"):void 0===(t=t.flags)?w("OrOption - Flags missing!"):(r=[],l=[],c=[],d=m.getProductValue(C.productKey).category||"desktop",$.each(u,function(e,t){if(void 0===(a=m.versionInfo.OSMap[e]))return w("OS name mismatch! Unknow key '"+e+"'"),!0;r.push("os"),l.push(e),c.push(t),o=t}),$.each(t,function(e,t){if(void 0===(i=m.versionInfo.flagsMap[e]))return w("Flag name mismatch! Unknow key '"+e+"'"),!0;r.push("flags"),l.push(e),c.push({flagVal:t})}),u=new f(r,l,c),I(n.ignoredLabels,u)?trace("ignore version label: "+u.toString()):(t=b(o,i,a.label,a.labelVersionMap,a.maxPrecision,d),!1===$.isEmptyObject(t)&&((d=S(a.icon,t,n.appendLabelCallback,u)).data("versionInfoData",u),p=p.add(d)))),h=p):$.each(e,function(o,e){if("product"===o){var t=C.ceProductName,n=C.productKey,a=e[t];if(void 0===a){trace("version label product name mismatch, trying to use first key...");var i=Object.keys(e);if(!i.length)return w("Missing product keys"),!0;if(!m.getProductValue(n="eset.local.products."+(t=i[0])))return w("Unknow product key '"+n+"'"),!0;a=e[t]}i=new f(o,t,a);if(I(s.ignoredLabels,i)||!0===m.getProductValue(n).noProductVersionLabels)return trace("ignore version label: "+i.toString()),!0;t=g(a,L(n),{enumOptionName:s.enumOptionName});!1===$.isEmptyObject(t)&&((a=S("CE_esetico-eset",t,s.appendLabelCallback,i)).data("versionInfoData",i),h=h.add(a))}else{var r;"os"===o?(r=m.getProductValue(C.productKey).category||"desktop",$.each(e,function(e,t){var n=m.versionInfo.OSMap[e];return void 0===n?(w("OS name mismatch! Unknow key '"+e+"'"),!0):(e=new f(o,e,t),I(s.ignoredLabels,e)?(trace("ignore version label: "+e.toString()),!0):(t=g(t,n.label,{enumOptionName:s.enumOptionName,labelVersionMap:n.labelVersionMap,maxPrecision:n.maxPrecision,productCategory:r}),void(!1===$.isEmptyObject(t)&&((n=S(n.icon,t,s.appendLabelCallback,e)).data("versionInfoData",e),h=h.add(n)))))})):"flags"===o?$.each(e,function(e,t){var n=m.versionInfo.flagsMap[e];return void 0===n?(w("Flag name mismatch! Unknow key '"+e+"'"),!0):(e=new f(o,e,{flagVal:t}),I(s.ignoredLabels,e)?(trace("ignore version label: "+e.toString()),!0):(t={label:n.label,description:_[n.description]||""},(n=S(n.icon,t,s.appendLabelCallback,e)).data("versionInfoData",e),void(h=h.add(n))))}):w("Unknow type '"+o+"'!")}return!0}),v=void 0,h}function s(e,s){v=s.errorCallback,trace("going to create groupped version label...");var t=e.product,l={windows:[],linux:[],osx:[]},t=($.each(t,function(a,i){var r,s;return"standalone"===a||((s=m.getProductValue(r="eset.local.products."+a))?void 0!==s.platform&&Array.isArray(s.platform)&&s.platform.length?void $.each(s.platform,function(e,t){var n=l[t];if(void 0===n)return w("Unknow product platform '"+t+"'"),!0;var t=s.category||"desktop",o={};n.push({text:g(o[a]=i,L(r,!0),{productCategory:t,groupped:!0}).description||"",order:"desktop"===t?1:3,data:o})}):(w("Empty product platform '"+r+"'"),!0):(w("Unknow product key '"+r+"'"),!0))}),e.os),c=($.each(t,function(e,t){var n,o=m.versionInfo.OSMap[e];return void 0===o?(w("OS name mismatch! Unknow key '"+e+"'"),!1):void 0===(n=l[e])?(w("Unknown or unsupported OS '"+e+"'"),!1):void n.push({text:g((n={})[e]=t,o.label,{groupped:!0,labelVersionMap:o.labelVersionMap,maxPrecision:o.maxPrecision}).description||"",order:0,data:n})}),$());return $.each(l,function(e,t){if(t.length){t=new f("groupped",e,(r={},$.each(l[e],function(e,t){r=$.extend(r,t.data)}),r));if(I(s.ignoredLabels,t))return trace("ignore version label: "+t.toString()),!0;n=t,(o=l[e=e]).sort(function(e,t){return d.compareValues(e.order,t.order)}),(a=$('<div><div class="CE_tooltip-inner-html"><p></p><ul></ul></div></div>')).find("p").text(_.versionLabelGruppedPrefaceAvailable),i=a.find("ul"),$.each(o,function(e,t){t=$("<li></li>").text(t.text);i.append(t)});o=S(m.versionInfo.OSMap[e].icon,{description:a.html(),descriptionAsHtml:!0},s.appendLabelCallback,n);o.data("versionInfoData",t),c=c.add(o)}var n,o,a,i,r}),v=void 0,c}function L(e,t){var e=m.getProductValue(e).description,n=e.lastIndexOf(" ("),o=e.lastIndexOf(")");return-1<n&&n<o&&o+1===e.length&&(e=e.substr(0,n)),t?""+e+"":'"'+e+'"'}return{createForOption:function(e,t,n,o){var a,i;return delete(a=(a=e)&&a.product||{}).home,delete a.erso,1<(i=Object.keys(a)).length||1===i.length&&$.isEmptyObject(a[i[0]])||"standalone"===C.ceProductName?(a=s(e,{appendLabelCallback:t,errorCallback:n,ignoredLabels:o}),e.flags&&a.append(r({flags:e.flags},{enumOptionName:"",orOption:"",appendLabelCallback:t,errorCallback:n,ignoredLabels:o})),a):r(e,{enumOptionName:"",orOption:"",appendLabelCallback:t,errorCallback:n,ignoredLabels:o})},createForOptionOr:function(e,t,n,o){return r(e,{enumOptionName:"",orOption:1,appendLabelCallback:t,errorCallback:n,ignoredLabels:o})},createForEnum:function(e,t,n,o,a){return r(e,{enumOptionName:t,orOption:"",appendLabelCallback:n,errorCallback:o,ignoredLabels:a})},createHeightSpacer:a,createCopyLabel:function(e,t){var n,e=e.data("versionInfoData"),o=$();return"spacerElement"===e.getType()?o=a():e.getType()&&(n=e.getElementProps(),o=S(n.icon,n.labelTextAndDesc,t)),o.data("versionInfoData",e),o}}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.vars,CE_HTML.localization.getStrMap()),CE_HTML.svg=(()=>{var o={"array-policy":'<span class="CE_svg CE_svg-array-policy"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M 6 1 C 5.453125 1 5 1.453125 5 2 L 5 5 C 5 5.546875 5.453125 6 6 6 L 7 6 L 7 7 L 4.5 7 C 3.675781 7 3 7.675781 3 8.5 L 3 9 L 2 9 C 1.453125 9 1 9.453125 1 10 L 1 13 C 1 13.546875 1.453125 14 2 14 L 5 14 C 5.546875 14 6 13.546875 6 13 L 6 10 C 6 9.453125 5.546875 9 5 9 L 4 9 L 4 8.5 C 4 8.21875 4.21875 8 4.5 8 L 10.5 8 C 10.78125 8 11 8.21875 11 8.5 L 11 9 L 10 9 C 9.453125 9 9 9.453125 9 10 L 9 13 C 9 13.546875 9.453125 14 10 14 L 13 14 C 13.546875 14 14 13.546875 14 13 L 14 10 C 14 9.453125 13.546875 9 13 9 L 12 9 L 12 8.5 C 12 7.675781 11.324219 7 10.5 7 L 8 7 L 8 6 L 9 6 C 9.546875 6 10 5.546875 10 5 L 10 2 C 10 1.453125 9.546875 1 9 1 Z M 6 2 L 9 2 L 9 5 L 6 5 Z M 2 10 L 5 10 L 5 13 L 2 13 Z M 10 10 L 13 10 L 13 13 L 10 13 Z " /> </svg> </span>',"array-policy-local":'<span class="CE_svg CE_svg-array-policy-local"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M 1.5 2 C 0.675781 2 0 2.675781 0 3.5 L 0 10.5 C 0 11.324219 0.675781 12 1.5 12 L 6.992188 12 C 6.992188 12.160156 6.992188 12.328125 6.992188 12.511719 C 6.996094 12.757813 6.996094 12.816406 6.996094 13 L 4 13 L 4 14 L 11 14 L 11 13 L 7.996094 13 C 7.996094 12.816406 7.996094 12.753906 7.992188 12.507813 C 7.992188 12.324219 7.992188 12.160156 7.992188 12 L 13.5 12 C 14.324219 12 15 11.324219 15 10.5 L 15 3.5 C 15 2.675781 14.324219 2 13.5 2 Z M 1.5 3 L 13.5 3 C 13.78125 3 14 3.21875 14 3.5 L 14 10.5 C 14 10.78125 13.78125 11 13.5 11 L 1.5 11 C 1.21875 11 1 10.78125 1 10.5 L 1 3.5 C 1 3.21875 1.21875 3 1.5 3 Z " /> </svg> </span>',"group-expand":'<span class="CE_svg CE_svg-group-expand"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M 12.5 1 L 2.5 1 C 1.671875 1 1 1.671875 1 2.5 L 1 12.5 C 1 13.328125 1.671875 14 2.5 14 L 12.5 14 C 13.328125 14 14 13.328125 14 12.5 L 14 2.5 C 14 1.671875 13.328125 1 12.5 1 Z M 11 8 L 8 8 L 8 11 L 7 11 L 7 8 L 4 8 L 4 7 L 7 7 L 7 4 L 8 4 L 8 7 L 11 7 Z " /> </svg> </span>',"group-collapse":'<span class="CE_svg CE_svg-group-collapse"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M 12.5 1 L 2.5 1 C 1.671875 1 1 1.671875 1 2.5 L 1 12.5 C 1 13.328125 1.671875 14 2.5 14 L 12.5 14 C 13.328125 14 14 13.328125 14 12.5 L 14 2.5 C 14 1.671875 13.328125 1 12.5 1 Z M 11 8 L 4 8 L 4 7 L 11 7 Z "/> </svg> </span>',"form-error":'<span class="CE_svg CE_svg-form-error"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1" style="fill: currentcolor;"> <path d="M 14.85,12.6 8.88,2.6 C 8.38,1.8 7.58,1.8 7.09,2.6 L 1.21,12.5 C 0.72,13.3 1.11,14 2.11,14 l 11.74,0 c 1,0 1.39,-0.6 1,-1.4 z m -6.77,-0.1 c -0.6,0 -1.09,-0.4 -1.09,-0.9 0,-0.5 0.5,-0.9 1.09,-0.9 0.6,0 1.09,0.4 1.09,0.9 -0.1,0.5 -0.6,0.9 -1.09,0.9 z m 0.5,-2.8 -0.5,0 -0.6,0 c 0,0 -0.6,-2.3 -0.6,-3.2 0,-1.1 1.09,-1.1 1.09,-1.1 0,0 1.09,0 1.09,1.1 0.1,0.9 -0.5,3.2 -0.5,3.2 z" /> </svg> </span>',"checkbox-checked":'<span class="CE_svg CE_svg-checkbox-checked"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M 3.5 2 C 2.675781 2 2 2.675781 2 3.5 L 2 12.5 C 2 13.324219 2.675781 14 3.5 14 L 12.5 14 C 13.324219 14 14 13.324219 14 12.5 L 14 3.5 C 14 2.675781 13.324219 2 12.5 2 Z M 3.5 3 L 12.5 3 C 12.78125 3 13 3.21875 13 3.5 L 13 12.5 C 13 12.78125 12.78125 13 12.5 13 L 3.5 13 C 3.21875 13 3 12.78125 3 12.5 L 3 3.5 C 3 3.21875 3.21875 3 3.5 3 Z M 11.269531 5.023438 L 7 9.292969 L 4.726563 7.023438 L 4.023438 7.726563 L 7 10.707031 L 11.980469 5.726563 Z " /> </svg> </span>',"checkbox-unchecked":'<span class="CE_svg CE_svg-checkbox-unchecked"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M 3.5 2 C 2.675781 2 2 2.675781 2 3.5 L 2 12.5 C 2 13.324219 2.675781 14 3.5 14 L 12.5 14 C 13.324219 14 14 13.324219 14 12.5 L 14 3.5 C 14 2.675781 13.324219 2 12.5 2 Z M 3.5 3 L 12.5 3 C 12.78125 3 13 3.21875 13 3.5 L 13 12.5 C 13 12.78125 12.78125 13 12.5 13 L 3.5 13 C 3.21875 13 3 12.78125 3 12.5 L 3 3.5 C 3 3.21875 3.21875 3 3.5 3 Z " /> </svg> </span>',"lock-locked":'<span class="CE_svg CE_svg-lock-locked"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M8 1C5.8 1 4 2.8 4 5v1h-.5C2.7 6 2 6.7 2 7.5v5c0 .8.7 1.5 1.5 1.5h9c.8 0 1.5-.7 1.5-1.5v-5c0-.8-.7-1.5-1.5-1.5H12V5c0-2.2-1.8-4-4-4zm0 1c1.7 0 3 1.3 3 3v1H5V5c0-1.7 1.3-3 3-3z"/> </svg> </span>',settings:'<span class="CE_svg CE_svg-settings"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M6.57 1l-.242 1.29a5.953 5.953 0 0 0-2.437 1.405l-1.239-.433-1.43 2.476.989.848C2.098 7.043 2 7.508 2 8c0 .492.098.957.21 1.414l-.987.848 1.43 2.476 1.234-.437a5.965 5.965 0 0 0 2.441 1.414L6.57 15h2.86l.242-1.285a5.969 5.969 0 0 0 2.437-1.414l1.235.437 1.433-2.476-.992-.848C13.898 8.957 14 8.492 14 8c0-.492-.098-.957-.21-1.414l.987-.848-1.43-2.476-1.234.433A5.95 5.95 0 0 0 9.672 2.29L9.43 1zm.828 1h1.204l.195 1.055.32.078a4.994 4.994 0 0 1 2.54 1.465l.222.238 1.016-.356.601 1.04-.812.699.097.312a5.041 5.041 0 0 1 0 2.938l-.097.312.812.7-.601 1.039-1.016-.36-.223.242a5.028 5.028 0 0 1-2.539 1.47l-.32.07L8.602 14H7.398l-.195-1.059-.32-.07a5.028 5.028 0 0 1-2.54-1.469l-.226-.242-1.015.36-.598-1.04.812-.699-.097-.312a5.041 5.041 0 0 1 0-2.938l.097-.312-.812-.7.598-1.039 1.02.356.222-.238a4.994 4.994 0 0 1 2.539-1.465l.32-.078zM8 5C6.348 5 5 6.348 5 8s1.348 3 3 3 3-1.348 3-3-1.348-3-3-3zm0 1c1.11 0 2 .89 2 2 0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2z" /> </svg> </span>',filter:'<span class="CE_svg CE_svg-filter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M3 2v1.975c0 .493.243.954.648 1.234L7 7.748V14l2-2V7.748l3.352-2.539A1.5 1.5 0 0 0 13 3.975V2H3zm1 1h8v.975a.5.5 0 0 1-.217.412l-.01.006L8.332 7h-.664L4.227 4.393l-.01-.006A.5.5 0 0 1 4 3.975V3zm6.854 7.146l-.708.708L12.293 13l-2.147 2.146.708.708L13 13.707l2.146 2.147.708-.708L13.707 13l2.147-2.146-.708-.708L13 12.293l-2.146-2.147z"/> </svg> </span>',search:'<span class="CE_svg CE_svg-search"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="m5.9 1.4c2.5 0 4.5 2 4.5 4.5 0 1.1-0.38 2-1 2.8l5 5-0.7 0.71-5-5c-0.77 0.62-1.7 1-2.8 1-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5zm0 1c-1.9 0-3.5 1.6-3.5 3.5s1.6 3.5 3.5 3.5c1.9 0 3.5-1.6 3.5-3.5s-1.6-3.5-3.5-3.5z"/> </svg> </span>',clear:'<span class="CE_svg CE_svg-clear"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="m2.7 2-0.71 0.71 0.36 0.35 4.9 4.9-5.2 5.2 0.71 0.71 5.2-5.2 5.3 5.2 0.71-0.71-5.3-5.2 5.3-5.2-0.71-0.71-5.3 5.2-4.9-4.9z"/> </svg> </span>',sideclose:'<span class="CE_svg CE_svg-sideclose"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="m3.3333 1c-1.2831 0-2.3333 1.0502-2.3333 2.3333v9.3333c0 1.2831 1.0502 2.3333 2.3333 2.3333h9.3333c1.2831 0 2.3333-1.0502 2.3333-2.3333v-9.3333c0-1.2831-1.0502-2.3333-2.3333-2.3333h-2.3333zm0 1.1675h6.4155v11.6651h-6.4155c-.6415 0-1.1659-.5243-1.1659-1.1675v-9.3317c0-.6415.5243-1.1659 1.1659-1.1659zm7.5829 0h1.7504c.6415 0 1.1675.5243 1.1675 1.1659v9.3333c0 .6415-.5243 1.1675-1.1675 1.1675h-1.7504zm-5.8325 3.4992c-.1742 0-.2915.0586-.4087.1758-.2329.2329-.2329.5829 0 .8158l1.3417 1.3417-1.3417 1.3417c-.2329.2329-.2329.5829 0 .8158.2329.2329.5829.2329.8158 0l1.7504-1.7504c.0143-.0143.0285-.0285.0412-.0444.0887-.1077.1346-.236.1346-.3628 0-.0174 0-.0364-.0016-.0554-.0127-.1267-.0713-.2519-.1727-.3532l-1.752-1.7488c-.1156-.1172-.2329-.1758-.4071-.1758z"/> </svg> </span>',sideopen:'<span class="CE_svg CE_svg-sideopen"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="m3.3333 1c-1.2831 0-2.3333 1.0502-2.3333 2.3333v9.3333c0 1.2831 1.0502 2.3333 2.3333 2.3333h9.3333c1.2831 0 2.3333-1.0502 2.3333-2.3333v-9.3333c0-1.2831-1.0502-2.3333-2.3333-2.3333h-2.3333zm0 1.1675h6.4155v11.6667h-6.4155c-.6415 0-1.1659-.5243-1.1659-1.1675v-9.3333c0-.6415.5243-1.1659 1.1659-1.1659zm7.5829 0h1.7504c.6415 0 1.1675.5243 1.1675 1.1675v9.3317c0 .6415-.5243 1.1675-1.1675 1.1675h-1.7504zm-4.0821 3.4992c-.1742 0-.2915.0586-.4087.1758l-1.7488 1.7504c-.1014.1014-.16.2265-.1727.3532v.0554c0 .1267.0444.255.1346.3628.0127.0158.0269.0301.0412.0444l1.7488 1.7488c.2329.2329.5829.2329.8158 0 .2329-.2329.2329-.5829 0-.8158l-1.3417-1.3417 1.3417-1.3417c.2329-.2329.2329-.5829 0-.8158-.1172-.1172-.2329-.1758-.4087-.1758z"/> </svg> </span>',"expand-history":'<span class="CE_svg CE_svg-expand-history"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M2.2 4.5l-.7.7L8 11.5l6.5-6.3-.7-.7L8 10.1 2.2 4.5z"></path> </svg> </span>',"collapse-history":'<span class="CE_svg CE_svg-collapse-history"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M 7.5 2.925781 L 1.023438 9.265625 L 1.726563 9.984375 L 7.5 4.324219 L 13.277344 9.984375 L 13.972656 9.265625 Z "></path> </svg> </span> ',"history-add":'<span class="CE_svg CE_svg-history-added"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M8.5,7.5h3v1h-3v3h-1v-3h-3v-1h3v-3h1v3ZM15,8c0,3.9-3.1,7-7,7S1,11.9,1,8,4.1,1,8,1s7,3.1,7,7ZM14,8c0-3.3-2.7-6-6-6s-6,2.7-6,6,2.7,6,6,6,6-2.7,6-6Z"></path> </svg> </span>',"history-remove":'<span class="CE_svg CE_svg-history-removed"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M4.5,7.5h7v1h-7v-1ZM15,8c0,3.9-3.1,7-7,7S1,11.9,1,8,4.1,1,8,1s7,3.1,7,7ZM14,8c0-3.3-2.7-6-6-6s-6,2.7-6,6,2.7,6,6,6,6-2.7,6-6Z"></path> </svg> </span>',"history-changed":'<span class="CE_svg CE_svg-history-changed"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" version="1.1" style="fill: currentcolor;"> <path d="M 7.5 1 C 3.917969 1 1 3.917969 1 7.5 C 1 11.082031 3.917969 14 7.5 14 C 11.082031 14 14 11.082031 14 7.5 C 14 3.917969 11.082031 1 7.5 1 Z M 7.5 2 C 10.542969 2 13 4.457031 13 7.5 C 13 10.542969 10.542969 13 7.5 13 C 4.457031 13 2 10.542969 2 7.5 C 2 4.457031 4.457031 2 7.5 2 Z M 7 4 L 7 9 L 8 9 L 8 4 Z M 7 10 L 7 11 L 8 11 L 8 10 Z "></path> </svg> </span>'};return{create:function(e,t){var n=o[e];return void 0===n?(error("Unknown svg: "+e),t?"":$()):t?n:$(n)}}})(),CE_HTML.core=function(utils,consts,vars,localization,onlineHelp,onlyApplied,svg){var com_view=CE_HTML.components.view;function cex_window(){return window.parent}function fixToolbarPanelOverflowIfAny(){var e,t,n,o,a,i=$(".productSelectorDiv:visible");i.length&&(n=i.children("select.productSelector:visible"),e=i.children(".CE_settings-searchPanel:visible"),n.length)&&e.length&&(t=i.width(),n=n.width(),o=e.width(),i=(i=i.children(".CE_settings-helpPanel:visible")).length?i.width():0,a=0,vars.standAloneInit&&$("#standalone-buttons").length&&(a=$("#standalone-buttons").width()),e.toggleClass("not-floated",t-n-o-i-a<16))}function createToolbarPanel(e){e=createSearchPanel(e);createOnlineHelpPanel().insertBefore(e),updateOnlineHelpPanel(),fixToolbarPanelOverflowIfAny()}function createOnlineHelpPanel(){var e=$('<a tabindex="-1" class="CE_settings-helpPanel"></a>');return e.click(function(e){$(this).blur(),onlineHelp.displayHelp(onlineHelp.getIDH($("#page-view")))}),e.hide(),e}function updateOnlineHelpPanel(){(vars.$ce_search_panel_div.length?vars.$ce_search_panel_div.children(".CE_settings-helpPanel"):vars.$ce_div.find(".productSelectorDiv > .CE_settings-helpPanel")).toggleWidth(onlineHelp.isAvailable())}function createSearchPanel(e){var r=$("<div class='CE_settings-searchPanel'> <span class='CE_glyphicon CE_glyphicon-search'></span> <input type='text' maxlength='255' placeholder='"+localization.typeToSearch+"'/> <span class='CE_glyphicon CE_glyphicon-remove'></span></div>"),s=r.children("input"),t=(!1!==utils.msieversion()&&s.removeAttr("placeholder"),r.children(".CE_glyphicon-remove"));function n(){r.toggleClass("showResetButton",0<s.val().length),clearTimeout(s.prop("searchTimeoutId")),s.prop("searchTimeoutId",setTimeout(function e(){var t=s.val();if(t!==s.prop("searchLastVal")){var n=$("#page-view");if(!0===com_view.isLoadingInProgress(n))s.prop("searchTimeoutId",setTimeout(e,700));else{s.prop("searchLastVal",t);var o=consts.searchStates.expresionInvalid,a=$(".CE-menu"),i=(trace("Searching for: "+t),utils.currentTimeMs());switch(trace("Search status: "+(o=a.length?a.ceItemObject().setFilter(t):com_view.screenHighlightText(n,t))+", it took "+(utils.currentTimeMs()-i)+" ms"),o){case consts.searchStates.expresionFound:r.removeClass("ExpresionNotFound").addClass("ExpresionFound");break;case consts.searchStates.expresionNotFound:r.removeClass("ExpresionFound").addClass("ExpresionNotFound");break;case consts.searchStates.expresionInvalid:r.removeClass("ExpresionFound ExpresionNotFound")}}}},700))}return s.prop("searchTimeoutId",0),s.prop("searchLastVal",""),s.keyup(n).change(n),t.click(function(){var e=$(".CE-menu"),t=$("#page-view");e.length?e.ceItemObject().resetFilter():com_view.screenClearHighlight(t),clearSearchPanel()}),e&&!vars.screenDebugModeEnabled||r.hide(),vars.$ce_search_panel_div.length?vars.$ce_search_panel_div.append(r):r.insertAfter(vars.$ce_div.find(".productSelectorDiv > select.productSelector")),r}function clearSearchPanel(){var e=vars.$ce_search_panel_div.length?vars.$ce_search_panel_div.children(".CE_settings-searchPanel"):vars.$ce_div.find(".productSelectorDiv > .CE_settings-searchPanel"),t=e.children("input");clearTimeout(t.prop("searchTimeoutId")),t.prop("searchTimeoutId",0),t.prop("searchLastVal",""),e.removeClass("ExpresionNotFound ExpresionFound showResetButton"),t.val(""),e.toggle(!vars.screenDebugModeEnabled)}function createProductSelector(e,a){function t(){vars.eraChangeNotifier.resetChanges(),vars.productKey=n,vars.ceProductName=o,trace("Product_Changed: "+vars.productKey+", old_TransactionID: "+vars.transactionID),cancelConfigEditInternal(),vars.clearTransactionRunning=!0,clearTransaction(vars.productKey,function(e){vars.clearTransactionRunning=!1,trace("new_TransactionID: "+e),vars.transactionID=parseInt(e,10),configEditorLoadSpecifiedProductProduct(vars.productKey,"",function(){vars.productKey!==n?t():d=!1})}),clearSearchPanel(),updateOnlineHelpPanel(),fixToolbarPanelOverflowIfAny()}var n,o,i,r=$("<div class='productSelectorDiv'/>"),s=(a.browserCompatible?vars.$ce_div.prepend(r):r.insertAfter(vars.$ce_div.children().first()),$("div.productSelectorDiv",vars.$ce_div)),l=$("<select class='productSelector'/>"),c=(l.append($("<option selected='selected'/>").text(localization.selectProduct)),{}),r=($.each(consts.productValues,function(e,t){var n,o;!a.showDisabled&&t.disabled||t.limitedSupport||a.showOnlyCloudSupported&&!(t.cloudSupported||a.showCloudDevelPolicies&&t.cloudSupportedDevel)||!("eset.features"!==e&&"eset.features.updater"!==e||(o=eraHelpVersionToNum(vars.eraHelpVersion),isNaN(o))||90<=o)||t.replacedBy||!(vars.isCloudVersion||!t.onPremiseVersionMax||eraHelpVersionToNum(vars.eraHelpVersion)<=eraHelpVersionToNum(t.onPremiseVersionMax))||(o=a.showOnlyCloudSupported&&t.descriptionCloud||t.description,e={$option:$("<option/>").attr("value",e).text(""+o+""),groupOrder:t.groupOrder},t=consts.productSelectorGroups[t.selectorGroup]?t.selectorGroup:"others",n=consts.productSelectorGroups[t],void 0===c[t]?c[t]={products:[e],label:localization["productSelectorGroup_"+t]||n.defaultLabel||"Products",order:n.order||999}:c[t].products.push(e))}),Object.keys(c)),d=(r.sort(function(e,t){return utils.compareValues(c[e].order,c[t].order)}),$.each(r,function(e,t){var t=c[t],n=$("<optgroup/>").attr("label",t.label);t.products.sort(function(e,t){return utils.compareValues(e.groupOrder,t.groupOrder)}),$.each(t.products,function(e,t){n.append(t.$option)}),l.append(n)}),!1),p=(l.change(function(){$("option:not([value])",l).remove(),$("#CE_productSwitchNotSelected").hide(),n=l.val(),o=consts.getProductValue(n).ceProductName,!1===d&&editorInitialized()&&n!==vars.productKey&&(d=!0,vars.eraChangeNotifier.wasAnythingChanged()||isAnyOptionActivated()?changesWillBeLostConfirm(function(e){e?t():(d=!1,l.val(vars.productKey))}):t())}),$('<h2 style="font-weight: normal; padding-bottom: 4px; padding-top: 4px;"></h2>'));switch(l.hide(),p.hide(),s.append(l),s.append(p),e){case consts.productSelectorStates.enabled:p.hide(),l.show(),a.showWarningTriangle&&((i=$("<span id='CE_productSwitchNotSelected' title='"+localization.selectProductTooltip+"'/>")).append(svg.create("form-error")),s.append(i));break;case consts.productSelectorStates.disabled:l.hide(),p.show();break;case consts.productSelectorStates.hidden:a.keepSpace&&(l.css("visibility","hidden"),l.show()),p.hide();break;default:error("Unknown product selector state")}a.showSeparator&&s.append("<hr style='margin-top: 6pt; margin-bottom: 0; border: 0; border-top: 1px solid #eeeeee;'/>")}function configEditorLoadSpecifiedProductProduct(e,t,n){var e=consts.getProductValue(e),o=e.description;vars.$ce_div.children(".productSelectorDiv").children("h2").text(o),$("#CE_productSwitchNotSelected").hide(),cex_load_screen(e.setting,"",function(){var e;t&&(trace("Scrolling to element "+t),(e=$("div.CE_settings",vars.$ce_div).find("#"+t)).length?scrollToElement(e):error("Element to scroll NOT found!")),n&&n()})}function getDefaultRpcCallUrl(e){e=e||"configEngine/RPC_CALL";var t=window.location;return t.protocol+"//"+t.host+t.pathname.substring(0,t.pathname.lastIndexOf("/"))+"/"+e}function standAloneNavigation(e){if(vars.standAloneInit){var t;if(vars.navigationMenu&&e.find(".CE-menu").length)return(t=$(".CE-menu").find("#"+utils.escapeJQuerySelector(vars.navigationMenu))).length?(t.children("a").click(),void(vars.navigationMenu="")):(vars.navigationMenu="",void(vars.navigationGroup=""));if(vars.navigationGroup&&"yes"!==e.attr("window")&&e.find(".CE-group").length)return(t=$(e.find(".CE-group")[vars.navigationGroup])).length&&(t.ce_SetExpand(!0),t.parents(".CE-group").each(function(){$(this).ce_SetExpand(!0)})),void(vars.navigationGroup="");if(vars.navigationGroup&&e.find(".CE-menu").length)return void(vars.navigationGroup="")}}function eraHelpVersionToNum(e){return parseInt((e||"").replace(".",""),10)}function eraHelpVersionToProductName(e){e=eraHelpVersionToNum(e);return 80<=e?"protect_admin":70<=e?"esmc_admin":"era_admin"}function initConfigEditor(e,t,s){trace("initConfigEditor: "+e),vars.initState!==consts.initState.notInitialized&&trace("initConfigEditor: duplicit/multiple initialization! Please check!");var n,l=utils.isBrowserCompatible();l||error("initConfigEditor: Web browser not supported!"),vars.develModuleBuild&&(s=!0),vars.initState=consts.initState.inProgress,vars.editorInstanceId="cehtml_"+utils.makeid(),vars.productKey=null,vars.ceProductName="",vars.lang=0,vars.locale="en_US",vars.screenDebugModeEnabled=!1,vars.timeZoneOffsetMinutes=null,vars.$ce_search_panel_div=$(),vars.clearTransactionRunning=!1,vars.customScripts={},vars.anonymousFuncCounter=1;try{var c=JSON.parse(e)}catch(e){throw error("failed to parse init data"),e}if(vars.isAuditMode=c.isAuditMode||!1,vars.eraSessionId=c.ERASessionID,vars.transactionID=c.transactionID,vars.eraHelpVersion=""+(c.helpVersion||"63"),vars.eraHelpProductName=eraHelpVersionToProductName(vars.eraHelpVersion),vars.isCloudVersion=c.isCloudVersion||!1,vars.showCloudDevelPolicies=c.showCloudDevelPolicies||!1,vars.policyMode=c.is_policy,void 0===vars.policyMode&&(vars.policyMode=!0),vars.standAloneInit=0===(vars.eraSessionId||"").length&&vars.traceLogEnabled,vars.standAloneInit&&jQuery.ajax({method:"GET",url:"screenDebugMode",dataType:"json",success:function(e){vars.screenDebugModeEnabled=e.screenDebugMode}}),c.lang&&(vars.lang=c.lang),c.locale&&(vars.locale=c.locale),!0===c.readonly?vars.readOnlyMode=!0:vars.readOnlyMode=!1,vars.helpVersion="latest",productGUIModeEnabled()&&(vars.helpVersion=""+(c.helpVersion||"latest")),!0===c.showOnlyApplied?vars.showOnlyAppliedMode=!0:vars.showOnlyAppliedMode=!1,c.product)if(vars.productKey=c.product,consts.getProductValue(vars.productKey)){var e=consts.getProductValue(vars.productKey);e.replacedBy&&consts.getProductValue(e.replacedBy)&&(vars.productKey=e.replacedBy,e=consts.getProductValue(vars.productKey)),vars.ceProductName=e.ceProductName;if(vars.isCloudVersion&&vars.policyMode&&!0!==e.cloudSupported&&(!0!==vars.showCloudDevelPolicies||!0!==e.cloudSupportedDevel)||vars.policyMode&&(e.disabled||e.limitedSupport))throw error(e="product is not supported"),new Error(e)}else error("unknown product key: "+vars.productKey),vars.productKey=null;return c.consoleTimeZoneOffsetMinutes&&(vars.timeZoneOffsetMinutes=parseInt(c.consoleTimeZoneOffsetMinutes,10),isNaN(vars.timeZoneOffsetMinutes)?vars.timeZoneOffsetMinutes=null:vars.timeZoneOffsetMinutes=-vars.timeZoneOffsetMinutes),t&&(vars.eraCallbacks=wrapChooseItem(t),vars.screenLocker=new ScreenLocker(vars.eraCallbacks),vars.eraChangeNotifier=new EraChangeNotifier(vars.eraCallbacks)),vars.$ce_div=$("#"+utils.escapeJQuerySelector(c.editorID),window.parent.document),vars.directionLTR="RTL"!==($("html",cex_window().document).attr("dir")||"").toUpperCase(),vars.rpc_call_url=c.rpc_call_url||getDefaultRpcCallUrl(),CE_HTML.localization.load(function(){if(vars.initState===consts.initState.notInitialized)trace("initConfigEditor: initialization canceled");else{var e=function(e,t,n){return{showDisabled:s,showOnlyCloudSupported:vars.isCloudVersion,showCloudDevelPolicies:vars.showCloudDevelPolicies,showWarningTriangle:e===consts.productSelectorStates.enabled,showSeparator:e!==consts.productSelectorStates.hidden||!t,keepSpace:e!==consts.productSelectorStates.hidden||!t,browserCompatible:n}},t=function(){if(c.searchPanelID){if(vars.$ce_search_panel_div=$("#"+utils.escapeJQuerySelector(c.searchPanelID),window.parent.document),vars.$ce_search_panel_div.length)return vars.$ce_search_panel_div.html(""),!0;error("Element with given searchPanelID was not found!")}return!1},n=function(){var e;vars.productKey?(e=$("div.productSelectorDiv",vars.$ce_div),$("option:not([value])",e).remove(),$("select.productSelector",e).val(vars.productKey),configEditorLoadSpecifiedProductProduct(vars.productKey,c.scrollToElementId,function(){vars.initState=consts.initState.initialized})):vars.initState=consts.initState.initialized},o=l;if(vars.$ce_div.html('<div class="CE_settings CEa CEb CEc CEd CEe"></div>'),o||(vars.$ce_div.prepend('<div class="CE_browser-not-supported-panel"><p class="CE_not-supported-title"></p><p class="CE_not-supported-text"></p></div>'),o=vars.$ce_div.find("div.CE_browser-not-supported-panel"),"eset.local.products.era.server"===vars.productKey&&o.addClass("CE_server-settings"),o.children("p.CE_not-supported-title").text(localization.browserNotSupportedTitle),o.children("p.CE_not-supported-text").text(localization.browserNotSupportedText)),(o=c.selectedScreenID||"")&&vars.$ce_div.children(".CE_settings").attr("selected-screen-ID",o),utils.runInsideMobileSafari()&&!0===vars.readOnlyMode&&(!1===policyModeEnabled()&&vars.$ce_div.css("overflow","visible"),vars.$ce_div.children().css("overflow-y","visible")),trace("ce_html plugins init.."),jQuery.each(vars.ce_plugins,r),trace("bootstrap plugins init.."),jQuery.each(window.plugin_bootstrap,r),c.productSelectorState){var a=(()=>{var e=c.productSelectorState||"";if(e){if("enabled"===e)return consts.productSelectorStates.enabled;if("disabled"===e)return consts.productSelectorStates.disabled;if("hidden"===e)return consts.productSelectorStates.hidden;error("Unknown productSelectorState value!")}return consts.productSelectorStates.enabled})(),i=(vars.readOnlyMode&&a<consts.productSelectorStates.disabled&&(a=consts.productSelectorStates.disabled),t());createProductSelector(a,e(a,i,l)),createToolbarPanel(vars.productKey),n()}else if(!0===vars.policyMode)createProductSelector(a=vars.readOnlyMode?consts.productSelectorStates.disabled:consts.productSelectorStates.enabled,e(a,i=!1,l)),createToolbarPanel(vars.productKey),n();else{if(!vars.productKey)throw error(o="Product is empty!"),new Error(o);t()&&createToolbarPanel(vars.productKey),configEditorLoadSpecifiedProductProduct(vars.productKey,c.scrollToElementId,function(){vars.initState=consts.initState.initialized})}}function r(e,t){trace(e),t.off(),t.on()}},(n={},$.each(consts.productSelectorGroups,function(e,t){n["productSelectorGroup_"+e]={resID:t.resID,defaultVal:t.defaultLabel}}),n)),{isValid:isValid,getProductValue:getProductValue,saveConfig:saveConfig,cancelConfigEdit:cancelConfigEdit,showMandatorySettings:showMandatorySettings}}function isValid(){if(editorInitialized()){if(!getProductValue())return trace("invalid 1"),!1;if(com_view.screenGetInvalid(vars.$ce_div).length)return trace("invalid 2"),!1;trace("valid")}else trace("valid - init not finished!");return!0}function showMandatorySettings(){var e;isValid()||(e=com_view.screenGetInvalid(vars.$ce_div)).length&&scrollToElement(e[0])}function getProductValue(){return vars.productKey}function saveConfig(e){trace("saveConfig()"),e&&$("#page-view").ce_SaveScreenValues(e.onSaveDone,e.onSaveFailed)}function configEngineError(e,t){var n;vars.eraCallbacks&&$.isFunction(vars.eraCallbacks.configEngineError)&&(n="Product: "+getProductValue()+"\n",trace(n=(n+="Last loaded screen: "+vars.lastLoadedScreen+"\n")+("Last requested screen(s): "+vars.lastRequestedScreens+"\n")+("RPC method: "+t+"\n")),vars.eraCallbacks.configEngineError("Config engine error: "+e,n))}function nonEmptyArraySetToIgnoreWarning(){vars.eraCallbacks&&$.isFunction(vars.eraCallbacks.configEngineMessageWithIcon)&&(trace("Config engine message: You set non empty array to ignore. Entered data will be lost when you save the policy!"),vars.eraCallbacks.configEngineMessageWithIcon(localization.policyNonEmptyArraySetToIgnoreWarning,"warning"))}function changesWillBeLostConfirm(t){vars.eraCallbacks&&$.isFunction(vars.eraCallbacks.configEngineMessageBox)?(trace("Config engine confirm: Switching to another product will discard the changes you have made. Continue anyway?"),vars.eraCallbacks.configEngineMessageBox("",CE_HTML.localization.getProductChangeConfirmTextPlain(),"warning",1,[localization.buttonOk,localization.buttonCancel],{onUserSelection:function(e){t(1==e)}})):t(!0)}function cancelConfigEditInternal(){trace("cancelConfigEditInternal"),vars.customScripts={},vars.anonymousFuncCounter=1,vars.showOnlyAppliedModeTemporaryDisabled=!1,$("head style[id^=cex_style_]").remove(),$("div.CE_modal-backdrop").remove(),com_view.cleanNoRPC($("#page-view"))}function cancelConfigEdit(){trace("cancelConfigEdit"),cancelConfigEditInternal(),vars.eraCallbacks=null,vars.initState=consts.initState.notInitialized,vars.editorInstanceId="",vars.$ce_search_panel_div.length&&(vars.$ce_search_panel_div.html(""),vars.$ce_search_panel_div=$());function e(e,t){trace(e),t.off()}trace("ce_html plugins clean up.."),jQuery.each(vars.ce_plugins,e),trace("bootstrap plugins clean up.."),jQuery.each(window.plugin_bootstrap,e),vars.$ce_div.html("")}function clearTransaction(e,t){var n;if(!vars.eraCallbacks.clearTransaction)throw error(n="clearTransaction is missing!"),new Error(n);vars.eraCallbacks.clearTransaction(e,t)}function policyModeEnabled(){return vars.policyMode}function auditLogEnabled(){return vars.isAuditMode}function productGUIModeEnabled(){return!vars.policyMode&&!vars.readOnlyMode}function transactionInitialized(){return vars.initState>=consts.initState.inProgress}function editorInitialized(){return vars.initState===consts.initState.initialized}function validateTransactionId(e,t){var e=parseInt(e,10);return isNaN(e)||4294967295<e||0===e?(trace("Given transactionID is not a valid 32-bit number or is zero!"),!1):!(vars.clearTransactionRunning&&(!vars.standAloneInit||!t||t!==((e=new CERPCAsync({autoCallEnabled:!1})).ce_EndPolicyEdit(),e.method)))||(trace("Clear transaction is in inProgress, so transactionID can not be used!"),!1)}function ComponentsContainer(){function i(e,t,n,o){void 0===e.components[t]?(e.paths.push(t),e.components[t]=n):o?(Array.isArray(e.components[t])||(e.components[t]=[e.components[t]]),e.components[t].push(n)):error("duplicated path detected - "+t)}var r={paths:[],components:{}},s={enumsMap:{enums:[],components:{}},profilesMap:{profiles:[],components:{}},instance:[]},l={paths:[],components:{}},c={paths:[],components:{}},d={paths:[],components:{}},n=[],o=[];this.addComponent=function(e,t){e.ce_IsIgnored()||(!1===(t=void 0===t||t)?n:o).push(e)},this.prepareToLoad=function(){$.each(o,function(e,t){var n,o=CE_HTML.components.is_value_holder(t),a=t.attr("data-provider");o&&(o=t.ce_GetInstancePath(),i(r,o,t),t.hasClass("CE-data-holder")?i(c,o,t):t.hasClass("CE-text")||i(l,o,t)),void 0!==a&&(o=t.ce_GetDataProviderPath(),"enum"===(a=-1!==(n=a.indexOf(":"))?a.substring(0,n):"instance")?void 0===s.enumsMap.components[o]?(s.enumsMap.enums.push(o),s.enumsMap.components[o]=[t]):s.enumsMap.components[o].push(t):"profile"===a?void 0===s.profilesMap.components[o]?(s.profilesMap.profiles.push(o),s.profilesMap.components[o]=[t]):s.profilesMap.components[o].push(t):s.instance.push({providerPath:o,component:t})),t.hasClass("CE-link")&&void 0!==t.attr("path_part")&&(n=t.ce_GetInstancePath(),i(l,n,t,!0),auditLogEnabled())&&i(d,n,t,!0)}),o=[]},this.hasValueHolders=function(){return r.paths.length},this.getValueHolders=function(){return r},this.hasLinkPartPath=function(){return d.paths.length},this.getLinkPartPath=function(){return d},this.hasCustomDepCheckItems=function(){return c.paths.length},this.getCustomDepCheckItemsMap=function(){return c},this.hasEnumsDataProviders=function(){return s.enumsMap.enums.length},this.hasProfilesDataProviders=function(){return s.profilesMap.profiles.length},this.hasInstanceDataProviders=function(){return s.instancePaths.length},this.getDataProviders=function(){return s},this.hasPolicyFlagsHolders=function(){return l.paths.length},this.getPolicyFlagsMap=function(){return l},this.hasFlagsHolders=function(){return this.hasPolicyFlagsHolders()},this.getFlagsMap=function(){return this.getPolicyFlagsMap()},this.hasVersionInfoHolders=function(){return this.hasPolicyFlagsHolders()},this.getVersionInfoMap=function(){return this.getPolicyFlagsMap()},this.getAllComponents=function(){return n}}function PageLayout(e,t){var C,_=null,f=$(),n=void 0===e?0:e,o=void 0===t?0:t,v=function(){var e,t;return n&&v||((e=$('<table class="CE_table CE_table-striped CE_configuration"><tbody></tbody></table>').append('<tr class="CE_changed"></tr>')).find("tr").append('<td class="CE_policy"></td>').append('<td class="CE_policy-array"></td>').append('<td class="CE_option-label"></td>').append('<td class="CE_option"></td>').append('<td class="CE_valid-result"></td>').append('<td class="CE_description"></td>'),$("#page-view").prepend(e),(t=e.find("td.CE_policy-array")).customCombo("dummy",getArrayPolicyOptions()),n=t.outerWidth(),t.customCombo("dummy").disable(),o=t.outerWidth(),e.remove()),vars.readOnlyMode?o:n};this.addToLayout=function(e,t,n){var o,e=$(e),a=e.attr("id"),i=(i=n=n||{},r={},(s=e).hasClass("CE-button")?(r.label=s.text(),s.text("")):r.label=CE_HTML.components.get_element_label(s)||"",(!0===i.noLabel||s.hasClass("CE-text")&&!CE_HTML.components.is_value_holder(s)||s.hasClass("CE-header"))&&(r.noLabelCol=!0),r.description=CE_HTML.components.get_element_description(s)||"",r.hasPolicyArrayCols=s.hasClass("CE-link")&&void 0!==s.attr("path_part"),r),r=(s=e,null===_&&((_=$('<table class="CE_table CE_configuration"><tbody></tbody></table>')).insertBefore(s),C=com_view.isInsideModal(s.ce_GetParentView()),_.parentsUntil('.CE-view[window="yes"]',".CE-group").length&&(_.addClass("CE_display-desc-column"),_.addClass("CE_table-striped")),f=$()),$("<tr></tr>")),s=(n.rowClass&&r.addClass(n.rowClass),$('<td class="CE_policy"></td>')),l=$('<td class="CE_option-label"></td>'),c=$('<td class="CE_option"></td>'),d=$('<td class="CE_policy-array"></td>'),p=$('<td class="CE_policy-array-local"></td>'),u=$('<td class="CE_desc-or-val-result"></td>'),h=!1===C,m=policyModeEnabled()&&h&&i.hasPolicyArrayCols;return n.onlyOption?r.append(c.attr("colspan",m?5:3)):(h&&r.append(s),!0!==i.noLabelCol?(void 0===t?r.append(l.text(i.label)):(l.append($("<label/>").attr("for",t).text(i.label)),r.append(l)),m||c.attr("colspan",3)):c.attr("colspan",m?2:4),r.append(c),m&&(n=v(),d.css({"min-width":n,width:n}),p.css({"min-width":n,width:"auto"}),r.append(d),r.append(p),r.addClass("CE_has-array-policy-cols"),a)&&r.attr("id",a+"-policy-row"),r.append(u),i.description&&""!==i.description.trim()&&(_.addClass("CE_display-desc-column"),r.children("td.CE_desc-or-val-result").append('<span class="CE_info"><a><span class="CE_glyphicon CE_glyphicon-info-sign"></span></a></span>'),o=utils.escapeHtmlText(i.description),r.find(".CE_info a").tooltip({container:"body",placement:vars.directionLTR?"CE_left":"CE_right",html:!0,title:function(){return $("#page-view").find("select").blur(),o}}))),auditLogEnabled()&&(r.append($('<td class="CE_history-change-type-icon"></td>')),r.append($('<td class="CE_history-show-or-hide-icon"></td>'))),_.children("tbody").append(r),e.appendTo(r.children("td.CE_option")),f=r},this.addToLayoutNoLabel=function(e,t){return this.addToLayout(e,void 0,{noLabel:!0,rowClass:t=t||"CE_no-label"})},this.addToLayoutContainer=function(e){if(this.empty())throw new Error("layout is empty");return!1===f.hasClass("CE_no-label")&&f.find("td.CE_option > .CE-list").length?this.addToLayout(e,void 0,{rowClass:"CE_container-option"}):this.addToLayoutNoLabel(e,"CE_container")},this.addToLayoutOnlyOption=function(e){return this.addToLayout(e,void 0,{onlyOption:!0,rowClass:"CE-only-option"})},this.closeLayout=function(){_=null,f=$()},this.getPolicyArrayColumnWidth=function(){return n},this.getPolicyArrayColumnWidthReadOnly=function(){return o},this.empty=function(){return null===_}}function PolicySwitch(e,t,n,o,a,i,r){function s(){switch(T(),S.getPolicyVal()){case consts.policyStates.ignore:break;case consts.policyStates.apply:E.addClass("CE_changed");break;case consts.policyStates.force:E.addClass("CE_forced");break;case consts.policyStates.reset:E.addClass("CE_reseted");break;default:error("unknown policyState")}}function l(e,t){e!==consts.policyStates.ignore&&t===consts.policyStates.ignore?P():e===consts.policyStates.ignore&&t!==consts.policyStates.ignore&&A()}function c(t){R(function(e){e.setState(t,!1,!0)})}function d(){var e=null;g.length&&(e=g.ceObject())&&(trace("data-ce-onpolicychange"),""!==e._ce_events.onpolicychange)&&eval_str.call(g.get(0),e._ce_events.onpolicychange)}function p(e){S.isSlave()?M().setState(e):S.hasGroup()?S.setGroupState(e):S.setState(e)}function u(t){var e=V();return e.title=function(){if(m&&!m.disabled()){var e=S.getPolicyVal()===t;switch(t){case consts.policyStates.ignore:return utils.escapeHtmlText(e?localization.policyIsIgnored:localization.policyWillBeIgnored);case consts.policyStates.apply:return utils.escapeHtmlText(e?localization.policyIsApplied:localization.policyWillBeApplied);case consts.policyStates.force:return utils.escapeHtmlText(e?localization.policyIsForced:localization.policyWillBeForced);default:return error("unknown policyState"),null}}return null},e}function h(){var e=V();return e.title=function(){if(!v||v.isOpen())return null;function e(e){return e.replace(D,consts.getProductValue(vars.productKey).localArrayMergingVersionFrom||"7")}switch(S.getArrayLocalPolicyVal()){case consts.policyArrayStates.replace:return utils.escapeHtmlText(localization.policyArrayLocalReplaceDescription);case consts.policyArrayStates.append:return utils.escapeHtmlText(e(localization.policyArrayLocalAppendDescription));case consts.policyArrayStates.prepend:return utils.escapeHtmlText(e(localization.policyArrayLocalPrependDescription));default:return error("unknown policyArrayStates"),null}},e}var m=e?$(e).stateSwitcher():null,C=e?$(e).children(".CE_state-switcher"):null,_=t?$(t).customCombo():null,f=t?$(t).children(".CE_custom-combo"):null,v=n?$(n).customCombo():null,y=n?$(n).children(".CE_custom-combo"):null,E=$(o),g=i?$(i):$(),b=r?$(r):$(),S=this,w=!1,I=g.attr("policy-group")||"",L=!1,O=!1,D=/\${VerFrom}/g,T=function(){E.removeClass("CE_changed CE_forced CE_reseted")},P=(a=null===a?void 0:a,function(){void 0!==a&&!1===x()&&a.increment()}),A=function(){void 0!==a&&!1===x()&&a.decrement()},x=function(){return void 0!==g.attr("data-attr-hidden")||g.ce_IsIgnored()||!g.ce_IsVisible(!0)},M=function(){return b.length&&b.data("PolicySwitch")||null},k=function(){return g.length&&g.data("PolicySlaves")||null},R=function(e){var t=k();if(t&&t.length){for(var n=[],o=0;o<t.length;o++){var a=t[o].data("PolicySwitch")||null;a&&(e&&e(a),n.push(t[o]))}g.data("PolicySlaves",t=n),j(t)}},j=function(e){var t;e.length&&(t=(e=e[0].ce_GetParentView()).attr("policy-master-id")||"",e=e.prev(),""!==t)&&e.hasClass("CE-header")&&e.ceObject().resetPolicyLabel(S.getPolicyVal())},V=function(){return{placement:"auto "+(vars.directionLTR?"CE_left":"CE_right"),container:"body",trigger:"hover",html:!0,delay:{show:1200,hide:0}}};C&&(C.on("stateSwitcher.change",function(e,t,n){w=n!==consts.policyStates.ignore;var o=M();o&&o.setState(n),s(),l(n,t),c(n),S.hasGroup()&&S.setGroupState(n),d(),vars.eraChangeNotifier.notifyChange(),n===consts.policyStates.ignore&&t!==consts.policyStates.ignore&&g.prop("isChangedFromDefault")&&nonEmptyArraySetToIgnoreWarning()}),C.find(".CE_ignore").tooltip(u(consts.policyStates.ignore)),C.find(".CE_apply").tooltip(u(consts.policyStates.apply)),C.find(".CE_force").tooltip(u(consts.policyStates.force)),C.tooltip(((t=V()).title=function(){if(m&&m.disabled())switch(S.getPolicyVal()){case consts.policyStates.ignore:return utils.escapeHtmlText(localization.policyIsIgnored);case consts.policyStates.apply:return utils.escapeHtmlText(localization.policyIsApplied);case consts.policyStates.force:return utils.escapeHtmlText(localization.policyIsForced);default:return error("unknown policyState"),null}return null},t))),f&&(f.on("customCombo.change",function(e,t){f.tooltip("hide"),vars.eraChangeNotifier.notifyChange()}),f.on("customCombo.open",function(){f.tooltip("hide")}),f.tooltip(((n=V()).title=function(){if(!_||_.isOpen())return null;switch(S.getArrayPolicyVal()){case consts.policyArrayStates.replace:return utils.escapeHtmlText(localization.policyArrayReplaceDescription);case consts.policyArrayStates.append:return utils.escapeHtmlText(localization.policyArrayAppendDescription);case consts.policyArrayStates.prepend:return utils.escapeHtmlText(localization.policyArrayPrependDescription);default:return error("unknown policyArrayStates"),null}},n))),y&&(y.on("customCombo.change",function(e,t){y.tooltip("hide"),vars.eraChangeNotifier.notifyChange()}),y.on("customCombo.open",function(){y.tooltip("hide")}),y.tooltip(h())),this.initialized=function(){return void 0!==e},this.activate=this.initialized()?function(){this.isActivated()||p(consts.policyStates.apply)}:function(){},this.deactivate=this.initialized()?function(){p(consts.policyStates.ignore)}:function(){},this.activateToState=this.initialized()?function(e){this.getPolicyVal()!==e&&p(e)}:function(){},this.setState=this.initialized()?function(e,t,n){var o=this.getPolicyVal(),o=(w=e!==consts.policyStates.ignore,m.setState(e),s(),l(e,o),e!==o&&(!0!==t&&d(),isPageLoaded(g))&&vars.eraChangeNotifier.notifyChange(),M());o&&!0!==n?o.resetSlaveStates():c(e)}:function(){},this.isActivated=this.initialized()?function(){return w}:function(){return null},this.getPolicyVal=this.initialized()?function(){return m.getState()}:function(){return null},this.hide=this.initialized()?function(){T()}:function(){},this.show=this.initialized()?function(){s()}:function(){},this.resetSlaveStates=this.initialized()?function(){c(this.getPolicyVal())}:function(){},this.setGroupState=this.initialized()?function(t,n){var e;this.hasGroup()&&(e=g.ce_GetParentView())&&e.find("div[class^=CE-][policy-group="+I+"]").each(function(){var e=$(this);e.ceItemObject()&&e.ceItemObject()._policy&&e.ceItemObject()._policy.setState(t,n)})}:function(){},this.hasGroup=this.initialized()?function(e){return 0<I.length}:function(){return!1},this.isSlave=this.initialized()?function(){return!!M()}:function(){return null},this.getMaster=this.initialized()?function(){return M()}:function(){return null},this.allowArrayPolicy=this.initialized()?function(e){return f&&_&&(L=!0,f.addClass("CE_array-policy-allowed"),e)&&_.showVal(consts.policyArrayStates.prepend),L}:function(){},this.allowArrayLocalPolicy=this.initialized()?function(e){return y&&v&&(O=!0,y.addClass("CE_array-policy-allowed"),e)&&v.showVal(consts.policyArrayStates.prepend),O}:function(){},this.hasArrayPolicy=this.initialized()?function(){return L&&_}:function(){return!1},this.hasArrayLocalPolicy=this.initialized()?function(){return O&&v}:function(){return!1},this.getArrayPolicyVal=this.initialized()?function(){return this.hasArrayPolicy()?parseInt(_.getVal(),10):null}:function(){return null},this.getArrayLocalPolicyVal=this.initialized()?function(){return this.hasArrayLocalPolicy()?parseInt(v.getVal(),10):null}:function(){return null},this.setArrayState=this.initialized()?function(e,t){this.hasArrayPolicy()&&_.setVal(e,t)}:function(){},this.setArrayLocalState=this.initialized()?function(e,t){this.hasArrayLocalPolicy()&&v.setVal(e,t)}:function(){},this.addVisualizationElement=this.initialized()?function(e){E=E.add(e)}:function(){}}function PolicyCounter(e,t,n,o){function a(){r.removeClass("CE_changed"),s.text(""),s.hide()}function i(){$.isFunction(u)&&u(c)}var r=$(e),s=$(t).hide(),l=$(n),c=0,d=null===o?void 0:o,p=!0,u=null;this.increment=function(){c+=1,r.addClass("CE_changed"),s.text(c),auditLogEnabled()||s.show(),void 0!==d&&p&&d.increment(),i()},this.decrement=function(){0===c||l.length&&!1===isPageLoaded(l)||(0===--c?a():s.text(c),void 0!==d&&d.decrement(),i())},this.getCount=function(){return c},this.isAnyActivated=function(){return 0<c},this.setParentCounter=function(e){d=e},this.setOnCountChange=function(e){u=e},this.enableParentCounterIncrementation=function(e){p=!0===e},this.reset=function(){c=0,a(),i()}}function PolicyHistoryCounter(e,t){var n=$(e).hide(),o=0,a=null===t?void 0:t,i=!0,r=null;this.increment=function(){o+=1,n.show(),void 0!==a&&i&&a.increment(),$.isFunction(r)&&r(o)},this.setParentCounter=function(e){a=e},this.enableParentCounterIncrementation=function(e){i=!0===e}}function processSynchronously(o,e){function t(e){var t=null;if(jQuery.isArray(e))for(var n=0;n<e.length;n++)(t=e[n].createAsyncRpc()).request_index=n,t.onComplete=function(){e[this.request_index].finished=!0,null===this.error&&(null!==this.result||null===this.result&&!0===e[this.request_index].callWithNullResponce)&&e[this.request_index].processResponse(this.result),(e=>{for(var t=0;t<e.length;t++)if(!e[t].finished)return!1;return!0})(e)&&a()},t.call();else(t=e.createAsyncRpc()).onComplete=function(){null===this.error&&(null!==this.result||null===this.result&&!0===e.callWithNullResponce)&&e.processResponse(this.result,o),a()},t.call()}var a=function(){o.length?t(o.shift()):e&&e()};a()}function LoadScreenRequestsFactory(r,e,s){this.createLoadAllEnumsRequests=function(){return{createAsyncRpc:function(){var e=new CERPCAsync({autoCallEnabled:!1});return e.ce_EnumTableGet(r.getDataProviders().enumsMap.enums),e},processResponse:function(e){jQuery.each(e,function(e,t){e=r.getDataProviders().enumsMap.components[e];jQuery.each(e,function(){addDataProviderData($(this),t,s)})})}}},this.createLoadProfileRequest=function(n){return{createAsyncRpc:function(){var e=new CERPCAsync({autoCallEnabled:!1});return e.ce_ProfileGetAllNames(n,vars.transactionID),e},processResponse:function(e){var t=r.getDataProviders().profilesMap.components[n];jQuery.each(t,function(){addDataProviderData($(this),e,s)})}}},this.createLoadValueHoldersDataRequests=function(t){var n=this;return{createAsyncRpc:function(){var e=new CERPCAsync({autoCallEnabled:!1});return e.ce_ValuesGet(r.getValueHolders().paths,vars.transactionID),this.rpcName=e.method,e},processResponse:function(a,e){var i;null!==a&&(i=!1,jQuery.each(r.getValueHolders().paths,function(e,t){var n=r.getValueHolders().components[t],o=a[t];void 0!==o?(n.ce_SetValue(o),n.ceItemObject()&&n.ceItemObject().setResetValue(o),i=!0):error("Value for path "+t+" requested but not loaded!")}),i)&&e.unshift(n.createDependencyCheckRequest(t))},callWithNullResponce:!0}},this.createLoadPartPathLinkHistoryDataRequests=function(t,e){return{createAsyncRpc:function(){var e=new CERPCAsync({autoCallEnabled:!1});return e.ce_ValuesGet(r.getLinkPartPath().paths,vars.transactionID,null,t),this.rpcName=e.method,e},processResponse:e,callWithNullResponce:!0}},this.createDependencyCheckRequest=function(t){var n=t.hasClass("CE-tab-page")?".CE-tab-page, .CE-view":".CE-view",o=com_view.getScreenValues(t,!0,function(e){return e.closest(n).get(0)!==t.get(0)});return null===o||jQuery.isEmptyObject(o)?null:{createAsyncRpc:function(){var e=new CERPCAsync({autoCallEnabled:!1});return e.ce_DependencyCheck(makeFullDepcheckInput(t,o),vars.transactionID,!0),e},processResponse:function(e){processDependencyCheckResponse(e,t)}}},this.createFilterArrayRequest=function(n,o,a){var i=this;return void 0!==o.data("ArrayFilterID")?i.createGuiFilterRequest(o,o.data("ArrayFilterID")):{createAsyncRpc:function(){var e=o.attr("data-provider-filter-func"),t=new CERPCAsync({autoCallEnabled:!1});return t.ce_ArrayFilterCreate(n,e,vars.transactionID,o.ce_GetFilterParams(),o.ceObject().getDataProviderUsedColumns(),a),t},processResponse:function(e,t){destroyArrayFilter(o),o.data("ArrayFilterID",e),t.unshift(i.createGuiFilterRequest(o,e))}}},this.createGuiFilterRequest=function(o,a){var n=this;return void 0===o.ceObject().getDataProviderFilterText()?n.createGetFilterArrayCountRequest(o,a):{createAsyncRpc:function(){var e=o.attr("data-provider-format-func"),t=o.ceObject(),n=new CERPCAsync({autoCallEnabled:!1});return n.ce_ArrayFilterSetGuiFilter(a,e,t.getDataProviderFilterText(),t.getDataProviderFilterColumns()),n},processResponse:function(e,t){t.unshift(n.createGetFilterArrayCountRequest(o,a))}}},this.createGetFilterArrayCountRequest=function(n,o){var a=this;return{createAsyncRpc:function(){var e=new CERPCAsync({autoCallEnabled:!1});return e.ce_ArrayFilterGetCount(o),e},processResponse:function(e,t){0<e?t.unshift(a.createGetFilterArrayMembersRequest(n,o,e)):addDataProviderData(n,[],s,0)}}},this.createGetFilterArrayMembersRequest=function(a,i,r){return{createAsyncRpc:function(){var e=a.ceItemObject(),t=e.getDataProviderStartIndex(r),e=e.getDataProviderLimit(),n=((-1===e||r<e)&&(e=r),1<t&&(e=Math.min(e,r-t+1)),a.attr("data-provider-format-func")),o=new CERPCAsync({autoCallEnabled:!1});return o.ce_ArrayFilterGetMembers(i,t,e,n),o},processResponse:function(e,t){addDataProviderData(a,auditLogEnabled()?CE_HTML.audit.addHistoryData(e):e,s,r);e=a.ceItemObject();e.hasAdditionalDataProviderRequest()&&t.unshift(e.createAdditionalDataProviderRequest())}}},this.createLoadDataProviderInstanceRequests=function(t,n,o){return{createAsyncRpc:function(){var e=new CERPCAsync({autoCallEnabled:!1});return e.ce_ValuesGet([t],vars.transactionID,null,o),e},processResponse:function(e){e=e[t];addDataProviderData(n,void 0!==e?e:[],s)}}}}function appendLoadInstanceDataProvidersRequest(e,t,n,o){for(var a=0;a<t.getDataProviders().instance.length;a++){var i,r,s,l=t.getDataProviders().instance[a],c=l.providerPath,l=l.component;auditLogEnabled()?(i=c,s=null,(s=l.ce_Prop("history_flag"))?(c=l.ce_GetDataProviderPath("history_current_path_part"),i=l.ce_GetDataProviderPath("history_path_part")):(r=l.ce_GetParentView())&&r.ce_Prop&&r.ce_Prop("history_flag")&&(s=r.ce_Prop("history_flag"),c=l.ce_GetDataProviderPath("history_current_path_part"),i=l.ce_GetDataProviderPath("history_path_part")),l.hasClass("CE-list")||l.hasClass("CE-data-grid")||l.attr("data-provider-filter-func")||l.attr("data-provider-format-func")?n.push(e.createFilterArrayRequest(s===consts.historyFlags.removed?i:c,l,!0)):n.push(e.createLoadDataProviderInstanceRequests(s===consts.historyFlags.removed?i:c,l,s===consts.historyFlags.removed))):l.hasClass("CE-data-grid")||l.attr("data-provider-filter-func")||l.attr("data-provider-format-func")?n.push(e.createFilterArrayRequest(c,l)):n.push(e.createLoadDataProviderInstanceRequests(c,l))}return n}function createLoadScreenRequests(e,t,n){var o=new LoadScreenRequestsFactory(e,t,n),a=[],i=[];if(e.hasEnumsDataProviders()&&i.push(o.createLoadAllEnumsRequests()),e.hasProfilesDataProviders())for(var r=0;r<e.getDataProviders().profilesMap.profiles.length;r++)i.push(o.createLoadProfileRequest(e.getDataProviders().profilesMap.profiles[r]));return i.length&&a.push(i),a=appendLoadInstanceDataProvidersRequest(o,e,a,n),e.hasValueHolders()&&a.push(o.createLoadValueHoldersDataRequests(t)),a}function createLoadScreenRequests_instanceDataProvidersOnly(e,t,n){return appendLoadInstanceDataProvidersRequest(new LoadScreenRequestsFactory(e,t,n),e,[],n)}function createLoadScreenRequests_PartPathDataProvidersOnly(o,e,t){var n,t=new LoadScreenRequestsFactory(o,e,t),a=[],r={};return auditLogEnabled()&&o.hasLinkPartPath()&&!CE_HTML.audit.selectedElementIsRemoved(e)&&(n=e.ce_Prop("selected_history_flag")||null,e.ce_Attr("profile-view-controller-id")||n===consts.historyFlags.added||a.push(t.createLoadPartPathLinkHistoryDataRequests(!0,function(e,t){r={...e}})),a.push(t.createLoadPartPathLinkHistoryDataRequests(!1,function(n,e){o.getLinkPartPath().paths.forEach(e=>{var t=o.getLinkPartPath().components[e],a=r?.[e]??[],i=n?.[e]??[];t&&JSON.stringify(i)!==JSON.stringify(a)&&(Array.isArray(t)||(t=[t]),jQuery.each(t,function(e,t){var n,o;t.ceObject().hasHistory()||(n=0===a?.length,o=0===i?.length,t.ceObject().setHasHistory(!0),CE_HTML.audit.addHistoryLayoutToRow(t.ceObject()._layout.row,n,o),CE_HTML.audit.incrementPolicyHistoryCounter(t))}))})}))),a}function loadScreenHtmlAndScripts($element,screen_name,screen_html,screen_scripts){var functionNamespace=$element.attr("id")||"",scripts=(vars.lastLoadedScreen=screen_name,screen_scripts||[]),evalString=(vars.customScripts[functionNamespace]={},cex_prepare_eval_string(scripts,"CE_HTML.vars.customScripts['"+functionNamespace+"']",[])),evalSuccess=!0;try{eval(evalString)}catch(e){evalSuccess=!1,trace("At least one script is wrong. Finding out which one...\n"),trace(evalString)}if(!evalSuccess){var failedScripts=[];jQuery.each(scripts,function(key,functionBody){try{var evaledFunction=eval("("+functionBody+")")}catch(e){failedScripts.push(key),error("Script "+key+" has syntax erros(s)")}}),evalString=cex_prepare_eval_string(scripts,"CE_HTML.vars.customScripts['"+functionNamespace+"']",failedScripts);try{eval(evalString)}catch(e){error("Scripts failed for second time. Giving up.")}}$element.css("opacity","0"),$element.show(),$element.removeProp("_hidden"),$element.html(screen_html),addViewAndCustomSripts($element,$element,functionNamespace);try{var componentContainer=solveComponents($element,functionNamespace)}catch(e){return error("Failed to solve components..."+e),void com_view.clean($element)}return callCustomScript(functionNamespace,"onInit",$element.get(0)),componentContainer.prepareToLoad(),{functionNamespace:functionNamespace,componentContainer:componentContainer}}function swithComponentsToReadOnlyIfNeeded(e,t){for(var n=!1,o=(productGUIModeEnabled()&&com_view.isInsideModal(t)?((n=t.data("readOnlyMode")||!1)||t.parents(".CE-view").each(function(){return!$(this).data("readOnlyMode")||!(n=!0)}),n&&trace("Read-only view(data)...")):void 0===t.attr("readonly")&&"yes"!==t.attr("read-only")||(t.attr("readonly","yes"),n=!0,trace("Read-only view(attr)...")),e.getAllComponents()),a=0,a=0;a<o.length;a++){var i=o[a],r=i.ceItemObject();!0!==vars.readOnlyMode&&void 0===i.attr("readonly")&&"yes"!==i.attr("read-only")&&!0!==n||r&&r.readOnly(!0)}}function loadScreenContent(s,l,c,d,p,u,h,e){function m(e,a,i,r){jQuery.each(e,function(e,n){var t,o=i[n];void 0!==o?(t=a[n],jQuery.each(t,function(e,t){r($(t),o,n)})):error("Data for path "+n+" required but not loaded!")})}function t(e,t,n){m(e,t,n,function(e,t){addDataProviderData(e,t,d)})}function C(e,t,n){m(e,t,n,function(e,t){e.ce_SetValue(t),e.ceItemObject()&&e.ceItemObject().setResetValue(t)})}function _(e,t,n,r){var o,a,i,s=!0===consts.getProductValue(vars.productKey).localArrayMergingSupported;function l(e,t){e.each(function(){var e=$(this).data("PolicyCounter");e&&e.enableParentCounterIncrementation(t),auditLogEnabled()&&(e=$(this).data("PolicyHistoryCounter"))&&e.enableParentCounterIncrementation(t)})}o=function(){var i=!1;m(e,t,n,function(e,t,n){var o,a=e.data("PolicySwitch");void 0!==a&&a.initialized()?a.isSlave()?!1===i&&(a.setState(consts.policyStates.ignore),i=!0):(o=t[consts.policyFlagName]||consts.policyStates.ignore,a.setState(o),e.ceItemObject()&&e.ceItemObject().setResetPolicyValue(o),r&&r[n]&&((o=r[n]).supportMerge&&(n=1===o.supportOrderedMerge,a.allowArrayPolicy(n),s&&a.allowArrayLocalPolicy(n),a.isActivated())&&(n=t[consts.policyArrayFlagName]||consts.policyArrayStates.replace,a.setArrayState(n),s)&&(n=t[consts.policyArrayLocalFlagName]||consts.policyArrayStates.replace,a.setArrayLocalState(n)),e.prop("isChangedFromDefault",!!o.isChangedFromDefault))):error("PolicySwitch object undefined/initialized")})},a=$("#page-view").find(".CE-group").not(".CE-group .CE-group"),0<(i=c.parents(".CE-group:last")).length&&(a=a.add(i),!(i=c.find(".CE-group").not(function(){return 0!==$(this).parentsUntil(c,".CE-group").length})).length||!1!==c.get(0).firstLoad&&!1!==(c.parents(".CE-view[policy-master-id]:last").get(0)||$()).firstLoad||(a=a.add(i))),l(a,!1),o&&o(),l(a,!0)}function f(e,t,n){var o,a,i=com_view.getIgnoredVersionLabels(c)||{};o=t,a=function(e,t){e.ceItemObject()&&e.ceItemObject().createVersionLabels(t,i)},jQuery.each(n,function(e,n){e=o[e]||[];jQuery.each(e,function(e,t){a($(t),n)})})}var v=new function(e){var t=1;this.increment=function(){t++},this.decrementAndTestFinish=function(){assert(0<=--t,"Nested screen loads counter bellow zero!"),0===t&&(trace("All nested screens loaded..."),e)&&e()}}(e);jQuery.each(s.nestedScreens,function(e,t){var a=t.screenID,i=t.path_part,r=t.data,s=!1;trace('Loading nested screen screenID="'+a+'" path_part="'+i+'"'),c.find('div.CE-view[screenID="'+a+'"]').each(function(){var e,t,n,o=$(this);return!!o.attr("profile-view-controller-id")&&(n=i,e=o.ce_GetInstancePath(),n.substring(0,n.lastIndexOf("."))===e.substring(0,e.lastIndexOf(".")))&&(e=n.substring(n.lastIndexOf(".")+1,n.length),o.attr("arrayIdx",e)),o.ce_GetInstancePath()!==i||(s=!0,cex_screen_init(o,a),auditLogEnabled()&&c.ce_Prop("popup_tab_history_flag")&&o.ce_Prop("history_flag",c.ce_Prop("popup_tab_history_flag")),(t=loadScreenHtmlAndScripts(o,a,r.body,r.scripts))?(n=function(){trace('nestedScreenDataLoadFinishCallback - screenID="'+a+'" path_part="'+i+'"'),o.get(0).pageLoaded=!0,delete o.get(0).pageLoading,swithComponentsToReadOnlyIfNeeded(t.componentContainer,o),callCustomScript(t.functionNamespace,"onLoad",o.get(0)),o.animate({opacity:1},300),v.decrementAndTestFinish()},v.increment(),"yes"===(o.attr("auto-load")||"yes")?loadScreenContent(r.content,t.componentContainer,o,t.functionNamespace,p,u,h,n):n()):error("Failed to init nested screen!"),!1)}),!s&&r.body&&error("Related nested view was not found!")}),l.hasEnumsDataProviders()&&(trace("Loading enums..."),t((e=l.getDataProviders().enumsMap).enums,e.components,s.enums)),l.hasProfilesDataProviders()&&(trace("Loading profiles..."),t((e=l.getDataProviders().profilesMap).profiles,e.components,s.profiles)),trace("Loading instance data-providers async if any..."),processSynchronously(createLoadScreenRequests_instanceDataProvidersOnly(l,c,d),function(){var t,e,n,o,a,i,r;trace("Instance data-providers async load done..."),l.hasValueHolders()&&(trace("Loading values..."),r=l.getValueHolders(),CE_HTML.audit.selectedElementIsRemoved(c)&&s.txOriginValues?(t=Object.keys(s.txOriginValues),e=r.paths.every(e=>t.includes(e))?s.txOriginValues:{...s.values,...s.txOriginValues},C(r.paths,r.components,e)):C(r.paths,r.components,s.values),s.dependencyCheck)&&(trace("Applying depedency check..."),processDependencyCheckResponse(s.dependencyCheck,c),l.hasCustomDepCheckItems())&&(trace("Setting depedency check result to custom depCheck components..."),setDepedencyCheckResponsoToCustomDepCheckComponents(s.dependencyCheck,l.getCustomDepCheckItemsMap())),p&&l.hasPolicyFlagsHolders()&&s.flags&&(trace("Loading policy flags..."),c.attr("policy-master-id")&&c.attr("group-view")&&c.parents(".CE-view[policy-master-id]:first").length?trace("Nested slave view found..skiping policy flags load"):(e=l.getPolicyFlagsMap(),_(e.paths,e.components,s.flags,s.eraPolicyArrayFlagPaths))),l.hasVersionInfoHolders()&&s.versionInfo&&(trace("Loading version info..."),e=l.getVersionInfoMap(),f(e.paths,e.components,s.versionInfo)),u&&l.hasFlagsHolders()&&s.flags&&(trace("Loading set by ERA flags..."),a=l.getFlagsMap(),e=a.paths,n=a.components,o=s.flags,m(e,n,o,function(e,t,n){(t[consts.setByERAFlagName]||consts.setByERAStates.isNotSet)===consts.setByERAStates.isSet&&(trace("Path '"+n+"' is set by ERA"),e.ce_ReadOnly(!0))})),h&&l.hasFlagsHolders()&&s.flags&&(trace("Loading user setting flags..."),a=l.getFlagsMap(),n=a.paths,o=a.components,a=s.flags,m(n,o,a,function(e,t,n){(t[consts.userSettingFlagName]||consts.userSettingFlagStates.isNotSet)===consts.userSettingFlagStates.isSet&&(trace("Path '"+n+"' is user setting"),e.ce_ReadOnly(!0,!0))})),auditLogEnabled()&&![consts.historyFlags.removed,consts.historyFlags.added].includes(c.ce_Prop("selected_history_flag"))&&![consts.historyFlags.removed,consts.historyFlags.added].includes(c.ce_Prop("popup_tab_history_flag"))&&(s.txOriginValues||s.txOriginFlags)&&(0<Object.keys(s.txOriginValues??{}).length||0<Object.keys(s.txOriginFlags??{}).length)&&(trace("Loading history..."),i=[],r=l.getValueHolders(),$.each(s?.txOriginValues??[],function(e,t){var n=s.txOriginFlags?.[e];CE_HTML.audit.equalValues(t,s.values?.[e])||null!==(n=CE_HTML.audit.cloneAndInitHistoryRow(e,d,n,l.getLinkPartPath()?.paths?.includes?.(e),s?.dependencyCheck?.[e]))&&(n.ceObject().setValue(t,!0),n.ce_ReadOnly(!0),i.push(e),CE_HTML.audit.incrementPolicyHistoryCounter(r.components[e]))}),$.each(s?.txOriginFlags??[],function(e,t){i.includes(e)||CE_HTML.audit.equalFlags(t,s.flags?.[e])||(CE_HTML.audit.cloneAndInitHistoryRow(e,d,t,l.getLinkPartPath()?.paths?.includes?.(e),s?.dependencyCheck?.[e])?.ce_ReadOnly(!0),CE_HTML.audit.incrementPolicyHistoryCounter(r.components[e]))})),v.decrementAndTestFinish()}),auditLogEnabled()&&processSynchronously(createLoadScreenRequests_PartPathDataProvidersOnly(l,c,d))}function cex_load_screen(r,e,s){var l=e?"string"===$.type(e)?$(e,vars.$ce_div):e:$("div.CE_settings",vars.$ce_div),e=(cex_screen_init(l,r),new CERPCAsync),t=(e.onComplete=function(){var e,a,i,t;trace("screenLoadFinishCallback - "+r),this.error?(error("Failed to load screen!"),s&&s()):(e=this.result[r])?(t=loadScreenHtmlAndScripts(l,r,e.body,e.scripts))?(a=t.functionNamespace,i=t.componentContainer,t=function(){trace("dataLoadFinishCallback - "+r),l.get(0).pageLoaded=!0,delete l.get(0).pageLoading,swithComponentsToReadOnlyIfNeeded(i,l);var t,n,e=$("#page-view"),o=(policyModeEnabled()&&vars.showOnlyAppliedMode&&c&&(trace("Hide non-applied settings..."),onlyApplied.hideNonAppliedSettings(e.ceContainerObject())),com_view.screenExpandFirstGroup(l),"yes"===l.attr("window")&&(l.click(),com_view.init_window(l,a),com_view.show_window(l)),fixComponentSize(l),!1===switchToFullScreenIfNeeded(l)&&setMaxDialogSize(l),l.closest(".CE_modal-dialog")),o=(o.hasClass("CE_modal-dialog-maximized")&&com_view.resizeModalDialog(o,!1),policyModeEnabled()&&c&&(o=$(".CE-menu").ceObject())&&((t=o.getPolicyCounter())&&l.find(".CE-group").not(".CE-group .CE-group").each(function(){var e=$(this);void 0===e.attr("data-attr-hidden")&&(e=e.data("PolicyCounter"))&&e.setParentCounter(t)}),auditLogEnabled())&&(n=o.getPolicyHistoryCounter(),t)&&l.find(".CE-group").not(".CE-group .CE-group").each(function(){var e=$(this);void 0===e.attr("data-attr-hidden")&&(e=e.data("PolicyHistoryCounter"))&&e.setParentCounter(n)}),e.attr("highlight-text")||"");c&&o.length&&com_view.screenHighlightText(l,o),callCustomScript(a,"onLoad",l.get(0)),policyModeEnabled()&&l.find(".CE-group").not(function(){return 1===$(this).parentsUntil(l).filter(".CE-group").length}).each(function(){$(this).ceObject().consolideVersionLabels()}),l.animate({opacity:1},300),standAloneNavigation(l),s&&s()},"yes"===(l.attr("auto-load")||"yes")?loadScreenContent(e.content,i,l,a,n,o,d,t):t()):(error("Failed to init screen!"),s&&s()):(error("Requested screen is missing inside result!"),s&&s())},trace("LoadScreen: "+r),{}),c=!1===com_view.isInsideModal(l),n=!1,o=!1,d=!1;policyModeEnabled()?(c&&(n=!0,t.flags=[consts.policyFlagName,consts.policyArrayFlagName,consts.policyArrayLocalFlagName],t.eraPolicyArrayFlagPaths=!0),t.versionInfo=!0):productGUIModeEnabled()?c&&(o=!0,t.flags=[consts.setByERAFlagName]):vars.readOnlyMode&&(d=!0,t.flags=[consts.userSettingFlagName],t.versionInfo=!0),auditLogEnabled()&&(t.txOriginValues=!0,c)&&(t.txOriginFlags=!0),e.ce_ScreenHtmlGenerate(r,l.ce_GetInstancePath(),ce_GetTransactionID(),t)}function cex_screen_init(e,t){e.html("<p>...</p>"),delete e.get(0).pageLoaded,e.get(0).pageLoading=!0,e.get(0).firstLoad=void 0===e.get(0).firstLoad,e.get(0).screenName=t}function cex_prepare_eval_string(e,n,o){var a="";return jQuery.each(e,function(e,t){-1==jQuery.inArray(e,o)&&(a+="var "+e+" = "+t+";")}),a+="\n\n",jQuery.each(e,function(e,t){-1==jQuery.inArray(e,o)&&(a+=n+"['"+e+"'] = "+e+";\n")}),a}function fixComponentSize(e){var t;e.hasClass("CE-tab-page")&&"yes"===e.parents(".CE-view").first().attr("window")?(t=e.hasClass("CE_active"),e.addClass("CE_active"),e.find(".CE-data-grid").each(function(){$(this).ceObject().layout()}),t||e.removeClass("CE_active")):e.find(".CE-data-grid").each(function(){$(this).ceObject().layout()})}function switchToFullScreenIfNeeded(e){var t=e.closest(".CE_modal-dialog");if(t.length&&e.parent().hasClass("CE_modal-body")){var e=t.find(".CE_modal-header > .CE_maximize"),n=(e.show(),$(window.parent.document).scrollTop()||$(window.parent.document.documentElement).scrollTop()),o=$(window.parent.document).scrollTopMax()||$(window.parent.document.documentElement).scrollTopMax(),a=t.offset(),i=t.outerHeight(),a=a.top-n+i;if($(window.parent.document).height()-o<=a)return trace("switch to fullscreen mode, dlg is bigger than screen"),com_view.maximizeModal(t),e.hide(),!0}return!1}function setMaxDialogSize(e){var t,n,o,a,i=e.closest(".CE_modal-dialog");i.length&&e.parent().hasClass("CE_modal-body")&&(e=e.closest(".CE-view"),t=$(window.parent.document).scrollTop()||$(window.parent.document.documentElement).scrollTop(),a=$(window.parent.document).scrollTopMax()||$(window.parent.document.documentElement).scrollTopMax(),a=$(window.parent.document).height()-a,o=(e=(n=(n=e).children().first().hasClass("CE-tabs")?e.children().first().find(".CE_tab-content"):n).offset().top-t)+n.outerHeight(),!(a={"max-height":a-e-(i.offset().top-t+i.outerHeight()-o)})===utils.runInsideMobileSafari()&&(a["overflow-y"]="auto"),n.css(a))}function getDataMemberValue(e,t,n){var o=null;return""===e?o=n:void 0!==e&&void 0!==(o=utils.getObjectMember(n,e))||(o=t),o}function getDataMemberLabel(e,t,n){var o=null,n=void 0===n?"":n,a=(auditLogEnabled()&&t.historyData?(a=t.value??t,""===e||void 0===e?o=jQuery.isPlainObject(a)?utils.getObjectMember(a,"label"):a:void 0===(o=e.startsWith("value.")?utils.getObjectMember(a||{},e.substring(6)):utils.getObjectMember(a||{},e))&&(o=a)):""===e||void 0===e?o=jQuery.isPlainObject(t)?utils.getObjectMember(t,"label"):t:void 0===(o=utils.getObjectMember(t,e))&&(o=t),jQuery.type(o));return"string"===a||"number"===a?o:n}function addDataProviderData(e,t,n,o){var a=e.attr("data-provider-sort")||"";if(""!==a)if(jQuery.isArray(t)){if(t.length&&"string"==typeof t[0]){for(var i=[],r=0;r<t.length;++r)i.push({value:t[r],index:r+1});t=i,e.attr("data-member-label","value"),e.attr("data-member-value","index")}t.sort(function(e,t){e=utils.getObjectMember(e,a),t=utils.getObjectMember(t,a);return utils.compareValues(e,t,{localeCompare:!0})})}else error("need sort but it is not array :(");e.data("ceDataProvider",t),e.ceObject().setDataProviderData(t,n,o)}function sortObjKeys(a){var n=[];return jQuery.each(a,function(e){var t=parseInt(e,10);!1===isNaN(t)?n.push(t):(error("unexpected key format - key is not a number"),n.push(e))}),n.sort(function(e,t){var n=parseInt(a[e].order,10),o=parseInt(a[t].order,10);return!1===isNaN(n)&&!1===isNaN(o)?utils.compareValues(n,o):utils.compareValues(e,t)}),n}function addCommonItems(e,a,i,r){function s(e,t,n){var o=r.slice(0);o.push(e),o.push(t),o.push(n),i.apply(this,o)}var l=e.attr("data-member-label"),n=e.attr("data-member-value");jQuery.isPlainObject(a)?(e=sortObjKeys(a),jQuery.each(e,function(e,t){var n=a[t],o=t,t=getDataMemberLabel(l,n,t);s(o,t,n)})):jQuery.isArray(a)&&jQuery.each(a,function(e){var e=getDataMemberValue(n,e+1,this),t=getDataMemberLabel(l,this);s(e,t,this)})}function destroyArrayFilter(e){var t=e.data("ArrayFilterID")||"";""!==t&&((new CERPCAsync).ce_ArrayFilterDestroy(parseInt(t,10)),e.removeData("ArrayFilterID"))}function isRefreshed(e){return!0===e.get(0).refresh}function isPageLoaded(e){var e=$(e);return e.length&&(e=e.get(0).view)&&e.get(0).pageLoaded||!1}function runDependecyCheckAndValidation(e){var t,n=e.get(0).view,e=consts.getProductValue(vars.productKey).depedencyCheckMode||"viewAndSubview",e=(n="wholeScreenOrDlg"===e?com_view.isInsideModal(n)?n.closest(".CE_modal").find(".CE_modal-body:first").children(".CE-view"):$("#page-view"):n).ce_GetScreenValues(!0,!1);!1===jQuery.isEmptyObject(e)?((t=new CERPCAsync).onComplete=function(){processDependencyCheckResponse(this.result,n),com_view.screenValidateAndSaveEditableValues(n,void 0,void 0)},t.ce_DependencyCheck(makeFullDepcheckInput(n,e),vars.transactionID,!0)):com_view.screenValidateAndSaveEditableValues(n,void 0,void 0)}var dependencyCheckSpecificity={isValid:!1,currentSpecificity:0,components:[]};function dependencyCheckSpecificityOraculum(n,o){var a,i;return!1===dependencyCheckSpecificity.isValid||null==o||(a=null,i=!1,jQuery.each(dependencyCheckSpecificity.components,function(e,t){t.component.is(n)&&(i=!0,a=o<t.specificity&&(dependencyCheckSpecificity.components[e].specificity=o,!0))}),i?a:(dependencyCheckSpecificity.components.push({component:n,specificity:o}),!0))}function processDependencyCheckResponse(e,t){try{dependencyCheckSpecificity.isValid=!0,dependencyCheckSpecificity.currentSpecificity=0,dependencyCheckSpecificity.components=[],jQuery.each(e||{},function(e,n){get_components(e,t).each(function(e,t){t=$(t);dependencyCheckSpecificity.currentSpecificity=0,t.length&&void 0===t.attr("hidden")&&(n===consts.visibilityStates.visible?(t.ce_Show(),t.ce_Enable(!0,0)):n===consts.visibilityStates.disabled?(t.ce_Show(),t.ce_Disable(0)):n===consts.visibilityStates.hidden?t.ce_Hide():jQuery.isPlainObject(n)||jQuery.isArray(n)?(t.ce_Show(),t.ce_Enable(!0,0),t.ceItemObject()&&t.ceItemObject().setItemsDepedencyCheck(n)):error("unknown dependency check status: "+n))})})}finally{dependencyCheckSpecificity.isValid=!1}}function setDepedencyCheckResponsoToCustomDepCheckComponents(t,a){$.each(a.paths||[],function(e,n){var o={};$.each(t||{},function(e,t){e.startsWith(n)&&(e.length===n.length?"object"===$.type(t)&&(o=$.extend(o,t)):"."===e[n.length]&&(assert((e=e.substr(n.length+1)).length,"Status path is empty string!"),o[e]=t))}),a.components[n].ceItemObject().setDepedencyCheck(o)})}function hasCustomScript(e,t){return void 0!==(vars.customScripts[e]&&vars.customScripts[e][t]||void 0)}function callCustomScript(e,t,n,o){e=vars.customScripts[e]&&vars.customScripts[e][t]||void 0;if(jQuery.isFunction(e))try{return n?e.apply(n,o):e.apply(this,o)}catch(e){return void error(e)}}function eval_str(str){if(""!==str)try{return eval(str)}catch(e){return void error(e)}}function transformCeEvent(element,functionNamespace,ceEvent){if(ceEvent=ceEvent.trim(),""!==ceEvent){var ceEventOrig=ceEvent,paramsBegin=(ceEvent=ceEvent.replace(/^this\.view\./,""),ceEvent=ceEvent.replace(/^this\./,""),ceEvent.indexOf("(")),paramsEnd=ceEvent.lastIndexOf(")"),params=ceEvent.substring(paramsBegin+1,paramsEnd);if(ceEvent=ceEvent.substr(0,paramsBegin),void 0===vars.customScripts[functionNamespace][ceEvent])try{eval("var newAnonymousFunc = function(){"+ceEventOrig+"};");var newAnonymousFucnName="anonymous"+vars.anonymousFuncCounter;vars.anonymousFuncCounter+=1,vars.customScripts[functionNamespace][newAnonymousFucnName]=newAnonymousFunc,ceEvent=newAnonymousFucnName,params=""}catch(e){return error("anonymous function has syntax error(s)"),""}ceEvent='CE_HTML.vars.customScripts["'+functionNamespace+'"].'+ceEvent,ceEvent+=""===params?".call(this);":".call(this,"+params+");"}return ceEvent}function transformCeEvents(e,t){var n={};return n.onchange=transformCeEvent(e,t,e.attr("data-ce-onchange")||""),n.onclick=transformCeEvent(e,t,e.attr("data-ce-onclick")||""),n.onitemdoubleclick=transformCeEvent(e,t,e.attr("data-ce-onitemdoubleclick")||""),n.onpolicychange=transformCeEvent(e,t,e.attr("data-ce-onpolicychange")||""),n.ontooltip=transformCeEvent(e,t,e.attr("data-ce-ontooltip")||""),n}function removeStandartEvents(e){e.removeAttr("onchange"),e.removeAttr("onclick"),e.removeAttr("onfocus"),e.removeAttr("onblur"),e.removeAttr("ondblclick")}function setCeEvents(e,t,n){n=$.extend({},{change:!0,click:!0,dblclick:!0},n);var o=$(e);n.change&&t.change(function(){o.ceItemObject().onChangeScript()}),n.click&&t.click(function(){o.ceItemObject().onClickScript()}),n.dblclick&&t.dblclick(function(){o.ceItemObject().onDoubleClickScript()})}function applyUserStyle(e,t){var n=$(e).attr("style")||"";$(e).removeAttr("style"),n&&$(t).attr("style",n)}function addViewAndCustomSripts(e,t,n){function a(e,t){return jQuery.merge(e.find(t),e.parent(".CE_modal-body").next(".CE_modal-footer").find(t))}var o,e=$(e),i=e.get(0),r=vars.customScripts[n];i.view=t;for(o in i.view.$=function(e){e=a($(this),e);return e.length?e.first():void 0},i.view.$$=function(e){for(var t=a($(this),e),n=[],o=0;o<t.length;++o)n.push($(t[o]));return n},r)r.hasOwnProperty(o)&&(i[o]=r[o]);var n=i.view.find('div[class^="CE-"][var]'),s=[];$.each(n,function(){var e,t=$(this);t.closest(".CE-view").get(0)===i.view.get(0)&&(e=t.attr("var").trim()||"").length&&void 0===i[e]&&(i[e]=t,s.push(e))}),e.data("varNames",s)}function delViewAndCustomSripts(e,t){for(var n,e=$(e),o=e.get(0),a=vars.customScripts[t],i=e.data("varNames")||[],r=0;r<i.length;r++)delete o[i[r]];for(n in e.removeData("varNames"),delete o.view,a)a.hasOwnProperty(n)&&delete o[n]}function deleteCustomSripts(e){e&&delete vars.customScripts[e]}function saveScreenIfNeeded(t,e,n,o){t=$(t),e=$(e).get(0),n=$(n),o=void 0!==o&&o;function a(){e.screenSavedOk=!0,n.click()}var i=com_view.getScreenProperties(t);return!0!==e.screenSavedOk&&i.needSave&&!auditLogEnabled()?(t.ce_SaveScreenValues(a,function(e){jQuery.isFunction(vars.eraCallbacks.configEngineMessage)&&!1===com_view.isInsideModal(t)&&vars.eraCallbacks.configEngineMessage(e),0===com_view.screenGetInvalid(t).length&&a()},!0,o,i),!0):(delete e.screenSavedOk,!1)}function scrollToElement(e){function t(e){(e=e.get(0))&&(e.scrollIntoView?e.scrollIntoView():error("scroolIntoView() is not supported by browser"))}var n=e.parents(".CE_collapse");n.length&&n.each(function(e,t){$(t).children().ceObject().collapse("show",{accordion:!0,animate:!1})}),t(e)}function getPolicyOptions(e){e=e.attr("id");return[{value:consts.policyStates.ignore,cssClass:"CE_ignore",innerHtml:"<span class='CE_esetico CE_esetico-circle_outline'></span>",id:e?e+"-ignore":null},{value:consts.policyStates.apply,cssClass:"CE_apply",innerHtml:"<span class='CE_esetico CE_esetico-circle_full'></span>",id:e?e+"-apply":null},{value:consts.policyStates.force,cssClass:"CE_force",innerHtml:"<span class='CE_glyphicon CE_glyphicon-flash'></span>",id:e?e+"-force":null}]}function getArrayPolicyOptions(e,t){e=e?e.attr("id"):utils.makeid();return[{label:t?localization.policyArrayLocalLabel:localization.policyArrayLabel,id:e+`-${t?"local-":"policy-"}array-header`,selectable:!1},{label:localization.policyArrayReplace,id:e+`-${t?"local-":"policy-"}array-replace`,value:consts.policyArrayStates.replace,selectedIconElement:svg.create(t?"array-policy-local":"array-policy")},{label:localization.policyArrayAppend,id:e+`-${t?"local-":"policy-"}array-append`,value:consts.policyArrayStates.append,selectedIconElement:svg.create(t?"array-policy-local":"array-policy")},{label:localization.policyArrayPrepend,id:e+`-${t?"local-":"policy-"}array-prepend`,value:consts.policyArrayStates.prepend,selectedIconElement:svg.create(t?"array-policy-local":"array-policy"),hidden:!0}]}function addDummyPolicySwitcher(e){policyModeEnabled()&&$(e).html('<div class="CE_state-switcher"></div>')}function addPolicy(e,t,n,o,a){var i=(e=$(e)).attr("id")||utils.makeid(),r=e.get(0).view.hasClass("CE-view")?e.get(0).view:e.ce_GetParentView(),s=com_view.isInsideModal(r),l=e.hasClass("CE-link")&&void 0!==e.attr("path_part"),c=e.attr("show-policy-switch"),d=null;return"yes"!==e.attr("value")&&!1===l&&"yes"!==c||s||!0!==policyModeEnabled()||null===t||"no"===c?(addDummyPolicySwitcher(t),d=new PolicySwitch,e.data("PolicySwitch",d)):(s=($(t).stateSwitcher(getPolicyOptions(e)),$(n)),c=$(o),s=(l&&(s.customCombo(i+"-policy-array",getArrayPolicyOptions(e)),c.customCombo(i+"-local-array",getArrayPolicyOptions(e,!0))),e.parents(".CE-group").first().data("PolicyCounter")),(i=""===(c=$(r).attr("policy-master-id")||"")?$():$("#"+c)).length&&(r=i.ce_GetInstancePath(),0===e.ce_GetInstancePath().indexOf(r)?((c=i.data("PolicySlaves")||[]).push(e),i.data("PolicySlaves",c)):i=$()),d=new PolicySwitch(t,l?n:void 0,l?o:void 0,a,s,e,i),e.data("PolicySwitch",d),void 0===e.attr("hidden")&&d.show()),d}function solveComponents(i,r){var s=new ComponentsContainer,l=null,e=$(i);return e.ceObject()||e.data("ce-object",new CE_HTML.components.CEContainer(e,{})),function e(t){var n=[],o=$(t).ceContainerObject();o.removeObjects(),l=l?(l.closeLayout(),new PageLayout(l.getPolicyArrayColumnWidth(),l.getPolicyArrayColumnWidthReadOnly())):new PageLayout,$(t).children("div").each(function(){var e=$(this),t=void 0;e.hasClass("CE-action-bar")?(CE_HTML.components.create_action_bar(this,i,r),e.data("ce-object",t=new CE_HTML.components.CEContainer(e,{}))):e.hasClass("CE-layout-horizontal")?(CE_HTML.components.create_horizontal_layout(this),e.data("ce-object",t=new CE_HTML.components.CEContainer(e,{})),n.push(this),l.empty()||e.parents("table.CE_table.CE_configuration").length?l.closeLayout():e.ceContainerObject().storeLayoutElements(l.addToLayoutContainer(e))):e.hasClass("CE-layout-vertical")?(l.closeLayout(),CE_HTML.components.create_vertical_layout(this,s),e.data("ce-object",t=new CE_HTML.components.CEContainer(e,{})),n.push(this)):e.hasClass("CE-view")?("yes"!==e.attr("window")&&l.closeLayout(),CE_HTML.components.create_view(this,i,r),e.data("ce-object",t=new CE_HTML.components.CEContainer(e,{functionNamespace:r,parent:i}))):e.hasClass("CE-tabs")?(l.closeLayout(),CE_HTML.components.create_tabs(this),e.data("ce-object",t=new CE_HTML.components.CEContainer(e,{})),n.push(this)):(t=e.ceObject({functionNamespace:r,componentsContainer:s,parent:i,layout:l}))&&!t.isContainer()||(t||e.data("ce-object",t=new CE_HTML.components.CEContainer(e,{})),n.push(this)),void 0!==t?o.addObject(t):(trace("Unknown object"),trace(e)),hideOrDisableIfneeded(e),e.is('[class^="CE-"]')&&s.addComponent(e,!1)});for(var a=0;a<n.length;a++)e(n[a])}(i),l.closeLayout(),s}function hideOrDisableIfneeded(e){var t=e.ce_IsIgnored(),n=void 0!==e.attr("hidden");(n||t)&&(e.ce_Hide(),n&&"always"!==e[0].getAttribute("hidden")&&e.removeAttr("hidden").attr("data-attr-hidden","yes"),t)&&e.removeAttr("value"),void 0!==e.attr("disabled")&&(e.ce_Disable(),e.removeAttr("disabled").attr("data-attr-disabled","yes"))}function getHistoryAttribute(e,t){return t||(e===consts.historyFlags.removed?"history_path_part":"history_current_path_part")}function getInstancePath(e,t,o){var a,t=t||"",e=0===t.indexOf("root.")?t=t.substr(5):(e=$(e),a="",e.parents().each(function(){var e,t=$(this),n=t.hasClass("CE-view")?com_view.getPathPart(t):$(this).attr("path_part")||"";if(""!==(n=auditLogEnabled()&&(e=t.ce_Prop("history_flag")||o?getHistoryAttribute(t.ce_Prop("history_flag"),o):null)?t.hasClass("CE-view")?com_view.getPathPart(t,e):$(this).prop(e)||n:n)){if(0===n.indexOf("root."))return n=n.substr(5),a=n+"."+a,!1;a=n+"."+a}return!0}),a+t);return e=e&&"."===e.charAt(e.length-1)?e.substr(0,e.length-1):e}function get_components(e,t){t=t||$("#page-view");for(var n=e.substr(e.lastIndexOf(".")+1),o=t.find('div[class^="CE-"][path_part$="'+n+'"]'),a=$(),i=0;i<o.length;i++){var r=$(o[i]);r.ce_GetInstancePath()===e&&(a=a.add(r),(r=r.find('div[class^="CE-"][path_part=""]')).length)&&(a=a.add(r))}return a}function makeFullDepcheckInput(e,t){for(var n=(e||$("#page-view")).find('div[class^="CE-"][path_part]'),o={},a=0;a<n.length;a++){var i=$(n[a]).ce_GetInstancePath();i&&(o[i]=null)}return Object.assign(o,t)}function applyComponentAttributes(e,t){t=t||{};var n=e.attr("ce-width")||t["ce-width"]||"",o=e.attr("ce-height")||t["ce-height"]||"",t=e.attr("ce-vscroll")||t["ce-vscroll"]||"";"fill_parent"===n&&e.addClass("CE_max-parent-width"),"fill_parent"===o&&e.addClass("CE_max-parent-height"),"scroll"===t&&e.addClass("CE_force-vscroll")}function wrapChooseItem(e){return e.chooseItemOrig=e.chooseItem,e.chooseItem=function(e,t,n,o,a){var i=$(a);i.length?(i.ce_ModalEnforceFocus(!1),this.chooseItemOrig(e,t,n,{onSuccess:function(e){i.ce_ModalEnforceFocus(!0),o.onSuccess(e)},onFailure:function(e){i.ce_ModalEnforceFocus(!0),o.onFailure(e)}})):this.chooseItemOrig(e,t,n,o)},e}function ScreenLocker(t){var n=["_CE.rpc_api.job_get_status"],o=0,a=consts.screenLockerStates.screenUnlock;this.lockScreen=function(e){-1===jQuery.inArray(e,n)&&(0===o&&(a=$(window.parent.document.body).hasClass("CE_modal-open")?consts.screenLockerStates.fullScreenLock:consts.screenLockerStates.screenLock,t.setConfigEditorWorkingStatus(a)),o+=1)},this.unlockScreen=function(e){-1===jQuery.inArray(e,n)&&(0<o&&--o,0===o)&&(a=consts.screenLockerStates.screenUnlock,t.setConfigEditorWorkingStatus(a))},this.switchToFullScreen=function(){a===consts.screenLockerStates.screenLock&&(a=consts.screenLockerStates.fullScreenLock,t.setConfigEditorWorkingStatus(a))}}function EraChangeNotifier(t){function n(e,t,n,o){return com_view.isAnyModalOpened()||n instanceof CE_HTML.components.CEMenu||n&&"no"===n.$component.attr("value")||(a=!!o||a,clearTimeout(e),e=setTimeout(t,100)),e}var o=0,e=0,a=!1;this.notifyChange=function(e){o=n(o,function(){trace("EraChangeNotifier - onChange"),t.onChange()},e,!0)},this.wasAnythingChanged=function(){return a},this.resetChanges=function(){a=!1},this.notifyValidationChange=t.onValidationChange?function(){e=n(e,function(){trace("EraChangeNotifier - onValidationChange"),t.onValidationChange(isValid())})}:function(){this.notifyChange()}}function isAnyOptionActivated(){var e,t;if(policyModeEnabled())return(e=$(".CE-menu").ceObject())?e.isAnyActivated():(t=!1,$("#page-view").find(".CE-group").not(".CE-group .CE-group").each(function(){var e=$(this);if(void 0===e.attr("data-attr-hidden")){e=e.data("PolicyCounter");if(e&&e.isAnyActivated())return!(t=!0)}return!0}),t)}return{getDefaultRpcCallUrl:getDefaultRpcCallUrl,initConfigEditor:initConfigEditor,saveConfig:saveConfig,transformCeEvents:transformCeEvents,transformCeEvent:transformCeEvent,removeStandartEvents:removeStandartEvents,setCeEvents:setCeEvents,addViewAndCustomSripts:addViewAndCustomSripts,applyComponentAttributes:applyComponentAttributes,delViewAndCustomSripts:delViewAndCustomSripts,deleteCustomSripts:deleteCustomSripts,destroyArrayFilter:destroyArrayFilter,cex_load_screen:cex_load_screen,getInstancePath:getInstancePath,saveScreenIfNeeded:saveScreenIfNeeded,eval_str:eval_str,hasCustomScript:hasCustomScript,callCustomScript:callCustomScript,cex_window:cex_window,scrollToElement:scrollToElement,fixToolbarPanelOverflowIfAny:fixToolbarPanelOverflowIfAny,hideOrDisableIfneeded:hideOrDisableIfneeded,isPageLoaded:isPageLoaded,isRefreshed:isRefreshed,getDataMemberValue:getDataMemberValue,getDataMemberLabel:getDataMemberLabel,addCommonItems:addCommonItems,addDataProviderData:addDataProviderData,policyModeEnabled:policyModeEnabled,productGUIModeEnabled:productGUIModeEnabled,PolicyCounter:PolicyCounter,PolicyHistoryCounter:PolicyHistoryCounter,addPolicy:addPolicy,addDummyPolicySwitcher:addDummyPolicySwitcher,editorInitialized:editorInitialized,transactionInitialized:transactionInitialized,validateTransactionId:validateTransactionId,ComponentsContainer:ComponentsContainer,processSynchronously:processSynchronously,createLoadScreenRequests:createLoadScreenRequests,getComponents:get_components,runDependecyCheckAndValidation:runDependecyCheckAndValidation,dependencyCheckSpecificityOraculum:dependencyCheckSpecificityOraculum,configEngineError:configEngineError,auditLogEnabled:auditLogEnabled,nonEmptyArraySetToIgnoreWarning:nonEmptyArraySetToIgnoreWarning}}(CE_HTML.utils,CE_HTML.consts,CE_HTML.vars,CE_HTML.localization.getStrMap(),CE_HTML.onlineHelp,CE_HTML.onlyApplied,CE_HTML.svg),jQuery.fn.ce_GetValue=function(){var e=$(this[0]);return jQuery.isFunction(e.data("ce_GetValue"))?e.data("ce_GetValue").call(e):e.ceItemObject()?e.ceItemObject().getValue():null},jQuery.fn.ce_SetValue=function(e,t){var n=$(this[0]);n.ceItemObject()&&(n.ceItemObject()._changedBySystem=!0),jQuery.isFunction(n.data("ce_SetValue"))?n.data("ce_SetValue").call(n,e,t):n.ceItemObject()&&(n.ceItemObject().setValue(e,t),n.ceItemObject()._changedBySystem=!1)},jQuery.fn.ce_SetMinDate=function(e){var t=$(this[0]);t.ceItemObject()&&t.ceItemObject().setMinDate(e)},jQuery.fn.ce_SetMaxDate=function(e){var t=$(this[0]);t.ceItemObject()&&t.ceItemObject().setMaxDate(e)},jQuery.fn.ce_SetAutocompleteData=function(e){var t=$(this[0]);t.ceItemObject()&&t.ceItemObject().setAutocompleteData(e)},jQuery.fn.ce_HasAutocompleteData=function(){var e=$(this[0]);return!!e.ceItemObject()&&e.ceItemObject().hasAutocompleteData()},jQuery.fn.ce_EnableAutocomplete=function(e){var t=$(this[0]);t.ceItemObject()&&t.ceItemObject().enableAutocomplete(e)},jQuery.fn.ce_SetItemState=function(e,t){this.ceItemObject()&&this.ceItemObject().setItemState(e,t)},jQuery.fn.ce_GetLabel=function(){return this.ceObject()?this.ceObject().getLabel():""},jQuery.fn.ce_SetLabel=function(e){this.ceObject()&&this.ceObject().setLabel(e)},jQuery.fn.ce_SetHref=function(e,t){this.ceItemObject()&&this.ceItemObject().setHref(e,t)},jQuery.fn.ce_GetHref=function(e){return this.ceItemObject()?this.ceItemObject().getHref(e):""},jQuery.fn.ce_SetText=function(e,t){this.ceItemObject()&&this.ceItemObject().setText(e,t)},jQuery.fn.ce_SetTextHtml=function(e,t){this.ceObject()&&this.ceObject().setTextHtml(e,t)},jQuery.fn.ce_GetText=function(e){return this.ceItemObject()?this.ceItemObject().getText(e):""},jQuery.fn.ce_SetSelection=function(e,t){var n=this.ceItemObject();n&&!1===n.$component.ce_IsReadOnly()&&n.setSelection(e,t)},jQuery.fn.ce_SetFocus=function(){var e=this.ceItemObject();e&&!1===e.$component.ce_IsReadOnly()&&e.setFocus()},jQuery.fn.ce_Disable=function(t){var e,n=$(this[0]);CE_HTML.core.dependencyCheckSpecificityOraculum(this,t)&&(n.prop("disabled",!0),n.ceItemObject()?(n.ceItemObject().disable(),n.ceItemObject()._layout.labelColumn.addClass("CE_disabled")):(e=function(){n.find('div[class^="CE-"]').each(function(){var e=$(this);!1===e.hasClass("CE-control-buttons")&&0===e.parentsUntil(n,".CE-control-buttons").length&&e.ce_Disable(t+1)})},n.hasAnyClassFrom(["CE-layout-horizontal","CE-layout-vertical","CE-view","CE-tab-page"])?e():n.hasClass("CE-group")&&(n.closest(".CE_panel").find("> .CE_panel-heading > .CE_panel-title, > .CE_panel-heading > .CE_panel-sidebar").addClass("CE_disabled"),e())))},jQuery.fn.ce_Enable=function(e,n){var o=$(this[0]);!1===e||e<=0?o.ce_Disable():o.ce_IsReadOnly()&&"yes"!==o.attr("readonly-ignored")&&!1===o.hasAnyClassFrom(["CE-data-grid","CE-list","CE-user-list","CE-tree"])||CE_HTML.core.dependencyCheckSpecificityOraculum(this,n)&&(o.removeAttr("disabled data-attr-disabled"),o.prop("disabled",!1),o.removeProp("disabled"),o.ceItemObject()?(o.ceItemObject().enable(),o.ceItemObject()._layout.labelColumn.removeClass("CE_disabled")):(e=function(){var t=[];o.find('div[class^="CE-"]').each(function(){var e=$(this);!1===e.hasClass("CE-control-buttons")&&0===e.parentsUntil(o,".CE-control-buttons").length&&(e.ce_Enable(!0,n+1),e.hasAnyClassFrom(["CE-list","CE-data-grid"]))&&0===e.find(".CE-control-buttons").length&&t.push(e)});for(var e=0;e<t.length;e++)t[e].ceItemObject().onChangeScript()},o.hasAnyClassFrom(["CE-layout-horizontal","CE-layout-vertical","CE-view","CE-tab-page"])?e():o.hasClass("CE-group")&&(o.closest(".CE_panel").find("> .CE_panel-heading > .CE_panel-title").removeClass("CE_disabled"),e())))},jQuery.fn.ce_ReadOnly=function(e,t){this.ceItemObject()&&this.ceItemObject().readOnly(e,t)},jQuery.fn.ce_Refresh=function(e,t){function n(){jQuery.isFunction(e)&&e()}var o,a,i=$(this[0]);i.length?!1===CE_HTML.core.isPageLoaded(i)?error("Refresh failed. Page is not loaded yet."):!0===i.get(0).refresh?(trace("Refresh is already running...postpone"),o=i.data("postponedRefreshQueue"),$.isArray(o)?o.push(arguments):i.data("postponedRefreshQueue",[arguments])):(!0!==t&&CE_HTML.core.destroyArrayFilter(i),t=(o=i.ce_GetParentView()).attr("id"),(a=new CE_HTML.core.ComponentsContainer).addComponent(i),a.prepareToLoad(),i.get(0).refresh=!0,CE_HTML.core.processSynchronously(CE_HTML.core.createLoadScreenRequests(a,o,t),function(){trace("refresh finished"),delete i.get(0).refresh;var e=i.data("postponedRefreshQueue");$.isArray(e)&&e.length&&(trace("Running postponed refresh..."),jQuery.fn.ce_Refresh.apply(i,e.pop())),n()})):n()},jQuery.fn.ce_RefreshMenuData=function(e,t){this.ceItemObject()&&this.ceItemObject().refreshMenuData(e,t)},jQuery.fn.ce_GetScreenPolicyCounter=function(){return this.ceItemObject()?this.ceItemObject().getPolicyCounter():null},jQuery.fn.ce_GetSelectedItemData=function(){return this.ceItemObject()?this.ceItemObject().getSelectedItemData():null},jQuery.fn.ce_GetItemHistoryData=function(){var e=this.ceItemObject()?this.ceItemObject().getSelectedItemData():null;return e&&0<e.length&&e[0].historyData},jQuery.fn.ce_GetSelectedItemValue=function(){return this.ceItemObject()?this.ceItemObject().getSelectedItemValue():null},jQuery.fn.ce_HasSelectedItem=function(){var e=this.ceItemObject()?this.ceItemObject().getSelectedItemValue():null;return null!==e&&("array"!==jQuery.type(e)||0<e.length)},jQuery.fn.ce_CreateCellRenderer=function(e,t){return this.ceItemObject()?this.ceItemObject().createCellRenderer(e,t):null},jQuery.fn.ce_UpdateCellRendererData=function(e,t){return this.ceItemObject()?this.ceItemObject().updateCellRendererData(e,t):null},jQuery.fn.ce_SetInfoPanel=function(e){this.ceItemObject()&&this.ceItemObject().setInfoPanel(e)},jQuery.fn.ce_LoadScreen=function(t,n,o,e){var a,i,r,s=$(this[0]);CE_HTML.core.auditLogEnabled()&&(e||s.ce_GetParentView().ce_Prop("selected_history_flag"))&&(e=e||s.ce_GetParentView().ce_Prop("selected_history_data"),s.ce_Prop("selected_history_flag",e.flag),s.ce_Prop("selected_history_data",e)),s.hasClass("CE-view")&&!1===CE_HTML.components.view.isLoadingInProgress(s)&&(a=(CE_HTML.vars.lastLoadScreenView=s).attr("array")||"",i=s.parent(".CE-layout-vertical").parent(".table-cell"),r=i.length&&i.inlineStyle("width")||"",i.length&&i.width(i.width()),s.ce_UnloadScreen(function(){"yes"===a&&s.attr("arrayIdx",n);function e(){CE_HTML.core.cex_load_screen(t,s,function(){i.length&&i.css("width",r),o&&o()})}"yes"!==s.attr("window")||"yes"!==s.attr("window-revocable")||CE_HTML.core.auditLogEnabled()?e():CE_HTML.components.view.transactionSnapshotSave(s,e)}))},jQuery.fn.ce_UnloadScreen=function(e){var t,n,o=$(this[0]);o.hasClass("CE-view")&&!1===CE_HTML.components.view.isLoadingInProgress(o)&&(t=o.attr("auto-save")||"yes",n=function(){trace("unloadFinishCallback"),e&&jQuery.isFunction(e)&&e()},CE_HTML.core.isPageLoaded(o)?"yes"===t?o.ce_SaveScreenValues(function(){CE_HTML.components.view.clean(o,n)},void 0,!0,!0):CE_HTML.components.view.clean(o,n):n())},jQuery.fn.ce_ReloadScreen=function(){var e,t,n=$(this[0]);n.hasClass("CE-view")&&n.ce_ScreenLoaded()&&(e=n.ce_GetScreenName(),t=n.attr("arrayidx"),n.ce_CleanScreen(function(){n.ce_LoadScreen(e,t)}))},jQuery.fn.ce_CleanScreen=function(e){var t=$(this[0]);t.hasClass("CE-view")&&CE_HTML.components.view.clean(t,e)},jQuery.fn.ce_ScreenLoaded=function(){return CE_HTML.core.isPageLoaded(this)},jQuery.fn.ce_GetScreenName=function(){var e=$(this[0]);if(e.hasClass("CE-view"))return e.get(0).screenName},jQuery.fn.ce_IsScreenValid=function(){var e=$(this[0]);if(e.hasClass("CE-view")||e.hasClass("CE-tab-page"))return 0===CE_HTML.components.view.screenGetInvalid(e).length},jQuery.fn.ce_CloseWindow=function(){var e=$(this[0]);e.hasClass("CE-view")&&"yes"===e.attr("window")&&e.closest(".CE_modal").modal("hide")},jQuery.fn.ce_ModalEnableCloseBtn=function(e){var t=$(this[0]);t.hasClass("CE-view")&&"yes"===t.attr("window")&&(t=t.closest(".CE_modal"),CE_HTML.components.view.enableCloseBtn(t,e))},jQuery.fn.ce_ModalEnforceFocus=function(e){var t=$(this[0]);t.hasClass("CE-view")&&"yes"===t.attr("window")&&(t=t.closest(".CE_modal"),CE_HTML.components.view.enforceFocus(t,e))},jQuery.fn.ce_GetComponentsByPath=function(e){var t=$(this[0]);if(t.hasClass("CE-view"))return CE_HTML.core.getComponents(e,t)},jQuery.fn.ce_SetUserInfo=function(e,t,n,o){var a,i,r,s=$(this[0]);n=parseInt(n,10)||4500,o=o||(CE_HTML.vars.directionLTR?"CE_left":"CE_right"),s.ce_ClearUserInfo(),"USER_INFO_OK"!==e&&"USER_INFO_ERR"!==e&&"USER_INFO_WARN"!==e||(s.prop("userInfo",{type:e,info:t}),s.ce_IsInvalid())||((s=s.closest("tr")).addClass("CE_has-user-info"),s.closest("table").addClass("CE_display-desc-column"),a=CE_HTML.utils.escapeHtmlText(t),t={container:"body",placement:o,html:!0,title:function(){return a}},"USER_INFO_OK"===e?i=$('<span class="CE_info CE_user-info"><a><span class="CE_glyphicon CE_glyphicon-info-sign"></span></a></span>'):"USER_INFO_WARN"===e?(i=$('<span class="CE_warning CE_user-info"><a><span class="CE_glyphicon CE_glyphicon-info-sign"></span></a></span>'),t.template='<div class="CE_tooltip CE_tooltip-warning"><div class="CE_tooltip-arrow"></div><div class="CE_tooltip-inner"></div></div>'):(i=$('<span class="CE_error CE_has-error CE_user-info"><a><span class="CE_glyphicon CE_glyphicon-warning-sign"></span></a></span>'),t.template='<div class="CE_tooltip CE_tooltip-error"><div class="CE_tooltip-arrow"></div><div class="CE_tooltip-inner"></div></div>'),(s=(e=(o=s.children(".CE_desc-or-val-result")).children("span.CE_info")).children("a").data("bs.tooltip"))&&s.hide(),e.hide(),o.append(i),(r=i.children("a")).tooltip(t),r.data("bs.tooltip").show(),setTimeout(function(){var e=r.data("bs.tooltip");e&&e.hide()},n))},jQuery.fn.ce_ClearUserInfo=function(){var e=$(this[0]),t=e.closest("tr"),t=(t.removeClass("CE_has-user-info"),e.removeProp("userInfo"),t.children(".CE_desc-or-val-result")),n=t.children(".CE_user-info"),o=n.children("a").data("bs.tooltip");o&&o.hide(),n.remove(),!1===e.ce_IsInvalid()&&t.children("span.CE_info").show()},jQuery.fn.ce_SetDescription=function(e){this.ceObject()&&this.ceObject().setDescription(e)},jQuery.fn.ce_GetDescription=function(){return this.ceObject()?this.ceObject().getDescription():""},jQuery.fn.ce_CreateVersionLabels=function(e){this.ceItemObject()?(this.ceItemObject().createVersionLabels(e),this.ceItemObject()._clonedRef&&this.ceItemObject()._clonedRef.createVersionLabels(e)):this.ceContainerObject()&&this.ceContainerObject().createVersionLabels&&this.ceContainerObject().createVersionLabels(e)},jQuery.fn.ce_ClearVersionLabels=function(){this.ceItemObject()?(this.ceItemObject().clearVersionLabels(),this.ceItemObject()._clonedRef&&this.ceItemObject()._clonedRef.clearVersionLabels()):this.ceContainerObject()&&this.ceContainerObject().clearVersionLabels&&this.ceContainerObject().clearVersionLabels()},jQuery.fn.ce_SetValidationStatus=function(e,t){var n=$(this[0]);if(jQuery.isFunction(n.data("ce_SetValidationStatus")))return n.data("ce_SetValidationStatus").call(n,e,t);n.ce_ClearValidationStatus();var o,a,i,r,s=ce_CheckValidationStatus(e);return!1===s?(n.prop("invalid",!0),o="CE_RET_REQ"===e,(r=n.closest("tr")).addClass("CE_has-error"+(o?" CE_required":" CE_invalid")),r.closest("table").addClass("CE_display-desc-column"),i=(r=r.children(".CE_desc-or-val-result")).children("span.CE_info, span.CE_user-info"),$.each(i,function(){var e=$(this).children("a").data("bs.tooltip");e&&e.hide()}),i.hide(),r.append('<span class="CE_error CE_has-error"><a><span class="CE_glyphicon '+(o?"CE_glyphicon-exclamation-sign":"CE_glyphicon-warning-sign")+'"></span></a></span>'),""!==t&&(a=CE_HTML.utils.escapeHtmlText(t),r.find(".CE_error a").tooltip({placement:CE_HTML.vars.directionLTR?"CE_left":"CE_right",container:"body",template:'<div class="CE_tooltip '+(o?"CE_tooltip-warning":"CE_tooltip-error")+'"><div class="CE_tooltip-arrow"></div><div class="CE_tooltip-inner"></div></div>',html:!0,title:function(){return a}})),n.parentsUntil(".CE_modal",".CE_panel-collapse").each(function(){$(this).prev().addClass("CE_has-error"+(o?" CE_required":" CE_invalid"))}),(i=n.closest(".CE-tab-page")).length&&(r=i.attr("id"),i.closest(".CE-tabs").find('> ul.CE_nav-tabs > li > a[href="#'+r+'"]').parent().addClass("CE_has-error"+(o?" CE_required":" CE_invalid")))):"CE_RET_INFO"===e&&t&&(n.ce_SetUserInfo("USER_INFO_OK",t),n.prop("userInfo").setByValidation=!0,n.prop("userInfo",n.prop("userInfo"))),CE_HTML.vars.eraChangeNotifier.notifyValidationChange(),s},jQuery.fn.ce_ClearValidationStatus=function(){var e=$(this[0]),t=!0===e.prop("invalid"),n=(e.removeProp("invalid"),e.closest("tr")),n=(n.removeClass("CE_has-error CE_invalid CE_required"),n.children(".CE_desc-or-val-result")),o=n.children("span.CE_error").not(".CE_user-info"),a=o.children("a").data("bs.tooltip"),a=(a&&a.hide(),o.remove(),e.prop("userInfo")),o=(a?a.setByValidation?e.ce_ClearUserInfo():!1==0<n.children("span.CE_user-info").length||t?e.ce_SetUserInfo(a.type,a.info):n.children("span.CE_user-info").show():n.children("span.CE_info").show(),e.parentsUntil(".CE_modal",".CE_panel-collapse").each(function(){var e=$(this),t=e.prev();0===e.find("tr.CE_has-error").length?t.removeClass("CE_has-error CE_required CE_invalid"):(t.toggleClass("CE_invalid",0<e.find("tr.CE_has-error.CE_invalid").length),t.toggleClass("CE_required",0<e.find("tr.CE_has-error.CE_required").length))}),e.closest(".CE-tab-page"));o.length&&(t=o.attr("id"),a=o.closest(".CE-tabs").find('> ul.CE_nav-tabs > li > a[href="#'+t+'"]').parent(),0===o.find(".CE_has-error").length?a.removeClass("CE_has-error CE_required CE_invalid"):(a.toggleClass("CE_invalid",0<o.find("tr.CE_has-error.CE_invalid").length),a.toggleClass("CE_required",0<o.find("tr.CE_has-error.CE_required").length))),CE_HTML.vars.eraChangeNotifier.notifyValidationChange()},jQuery.fn.ce_SetValidationResult=function(s){function e(e){var r=[];e.each(function(){var e,t,n,o=$(this),a=o.ce_GetInstancePath(),i=s[a];!1===o.ce_IsVisible()||!1===o.ce_IsEnabled()?(e=i&&!1===ce_CheckValidationStatus(i.status),((n=o.ce_IsInvalid())||e)&&(t=o.ceItemObject())&&(n?(t.reset(),o.ce_ClearValidationStatus()):t.resetValue()),e&&r.push(a)):i&&(n=o.ce_SetValidationStatus(i.status,i.text),l=l&&n)}),o.data("invalidHiddenOrDisabledPaths",r)}var t,n,o=$(this[0]),l=!0;o.removeData("invalidHiddenOrDisabledPaths");return o.hasClass("CE-view")||o.hasClass("CE-tab-page")?(e(o.find('div[class^="CE-"][value="yes"], .CE-link[path_part]')),n=o,jQuery.each(s,function(){var e;this.selector&&1===(e=n.find(this.selector)).length&&(e=e.ce_SetValidationStatus(this.status,this.text),l=l&&e)})):ce_ContainsMoreValidationResults(s)?e($(this)):(t=o.ce_SetValidationStatus(s.status,s.text),l=l&&t),l},jQuery.fn.ce_GetLocalScriptObj=function(){var e=$(this[0]);if(e.hasClass("CE-view")||e.hasClass("CE-tab-page"))return e=e.attr("id"),CE_HTML.vars.customScripts[e]},jQuery.fn.ce_SaveScreenValues=function(e,t,l,c,n){var d,p,u,h,m,C,_,f=$(this[0]);l=void 0===l||l,(f.hasClass("CE-view")||f.hasClass("CE-tab-page"))&&(d=CE_HTML.components.view,void 0===n&&(n=d.getScreenProperties(f)),p=function(){trace("dataSaveFinishCallback"),e&&jQuery.isFunction(e)&&e()},u=function(e){trace("dataSaveFailedCallback"),t&&jQuery.isFunction(t)&&t(e)},h=function(e,t){return!e.error||(error(t),u(e.error),!1)},n.needSave?(trace("Save screen - need save"),m=f.ce_GetScreenValues(),C=f.ce_GetScreenFlags(),(_=new CERPCAsync).onComplete=function(){if(h(_,"save screen failed, rpc1 error save values and flags")){var e,n,t,o,a,i,r=null===ce_GetFirstInvalidResult(_.result),s=(f.ce_SetValidationResult(_.result),d.screenPerformClientSideValidation(f,_.result),d.screenGetInvalid(f));if(r&&0===s.length)trace("rpc1, screen values and flags were saved sucessfully"),p();else{if(trace("rpc1, screen contains invalid values"),s.length){if(!c)return trace("rpc1, user must fix invalid values"),r=f.find("tr.CE_has-error").first(),CE_HTML.core.scrollToElement(r),void u(CE_HTML.localization.getStr("validationError"));trace("rpc1, invalid values ignored"),t=s,o=m,a=C,i=[],jQuery.each(t,function(e){e=t[e].ce_GetInstancePath();delete o[e],delete a[e],i.push(e)})}n=m,(r=f.data("invalidHiddenOrDisabledPaths")||[]).length&&(trace("ignored hidden/disabled invalid values:"),jQuery.each(r,function(e,t){delete n[t],trace(t)}),f.removeData("invalidHiddenOrDisabledPaths")),!1===$.isEmptyObject(m)||!1===$.isEmptyObject(C)?((e=new CERPCAsync).onComplete=function(){h(e,"save screen failed, rpc2 error save values and flags")&&(null===ce_GetFirstInvalidResult(e.result)?(trace("rpc2, screen values and flags were saved sucessfully"),p()):(error("rpc2, screen contains invalid values"),u(CE_HTML.localization.getStr("validationError"))))},e.ce_ValuesSet(m,ce_GetTransactionID(),null,C,l)):(trace("All invalid paths were ignored - so save is not needed"),p())}}},_.ce_ValuesSet(m,ce_GetTransactionID(),null,C,l)):(trace("Save screen - save is not needed"),p()))},jQuery.fn.ce_GetScreenValues=function(e,t){var n=$(this[0]);return t=void 0===t||t,n.hasClass("CE-view")||n.hasClass("CE-tab-page")?CE_HTML.components.view.getScreenValues(n,e,function(e){return!(!t||!e.ce_IsReadOnly())}):null},jQuery.fn.ce_GetScreenFlags=function(){var e=$(this[0]);return e.hasClass("CE-view")||e.hasClass("CE-tab-page")?CE_HTML.components.view.isInsideModal(e)?{}:CE_HTML.components.view.getScreenFlags(e):null},jQuery.fn.ce_AddAndLoadEditScreen=function(t,n,o,a){var i,r,s=$(this[0]);o=void 0===o||o,a=void 0===a?0:a,s.hasClass("CE-view")&&(s.attr("window-revocable","yes"),i=new CERPCAsync,r=(r=s.ce_GetInstancePath()).substr(0,r.lastIndexOf(".")),CE_HTML.components.view.transactionSnapshotSave(s,function(){var e=NaN;0!=a&&(e=parseInt(a,10),isNaN(e))&&error("AddAndLoadEditScreen - index is not a number!"),i.onComplete=function(){this.error||(!1===ce_CheckValidationResult(this.result)?error("validation failed"):isNaN(e)?(this.onComplete=function(){var e;this.error||(e=this.result,s.ce_LoadScreen(n,e))},this.ce_ArrayGetCount(r,ce_GetTransactionID())):s.ce_LoadScreen(n,e))},i.ce_ArrayMemberAdd(r,t,ce_GetTransactionID(),null,o,isNaN(e)?void 0:e)}))},jQuery.fn.ce_OnEditScreenOk=function(e){var t=$(this[0]);t.hasClass("CE-view")&&t.ce_SaveScreenValues(function(){delete t.get(0).transactionRollback,t.get(0).editScreenOk=!0,t.ce_CloseWindow()},void 0,e)},jQuery.fn.ce_SetSelectedItem=function(e,t){this.ceItemObject()&&this.ceItemObject().setSelectedItem(e,t)},jQuery.fn.ce_ScrollToRow=function(e){this.ceItemObject()&&this.ceItemObject().scrollToValue(e)},jQuery.fn.ce_SelectRow=function(e){this.ceItemObject()&&this.ceItemObject().setSelectedItem(e,!0)},jQuery.fn.ce_GetTotalRecordCount=function(){return this.ceItemObject()?this.ceItemObject().getTotalRecordCount():0},jQuery.fn.ce_MoveSelectedItem=function(e){var o=$(this[0]);if(o.hasClass("CE-data-grid")){var t=o.find(".row-selected:first");if(0!==t.length){var n=o.ce_GetTotalRecordCount();if(!(n<2)){var a,i,r,s=o.ceItemObject().getDataProviderStartIndex()+t.prevAll(".row-selectable").length,l=s;switch(e){case"top":l=1,a="first";break;case"bottom":l=n,a="last";break;case"up":l=Math.max(s-1,1),a="prev";break;case"down":l=Math.min(s+1,n),a="next";break;default:return void error("unknown move possition")}s===l||isNaN(s)||isNaN(l)||(i=o.data("ArrayFilterID"),r=function(e,t){var n;e&&(e.metaData&&e.metaData["read-only"]||0==e.index)||((n=new CERPCAsync).onComplete=function(){t&&o.ceItemObject().paginatorPreparePage(t),o.ce_Refresh(function(){o.ce_SetSelectedItem(e.index,!0)},!0)},n.ce_ArrayFilterMemberMove(i,s,l))},(t=o.find("[data-ce-row-id=row-"+l+"]").data("ceData"))?r(t):((e=new CERPCAsync).onComplete=function(){this.result&&$.isArray(this.result)&&r(this.result[0],a)},e.ce_ArrayFilterGetMembers(i,l,1,o.attr("data-provider-format-func"))))}}}},jQuery.fn.ce_RemoveSelectedItems=function(e){var t,n,o=$(this[0]);if(o.hasAnyClassFrom(["CE-list","CE-user-list","CE-data-grid","CE-tree"])){var a=o.ce_GetDataProviderPathWithSuffix()||o.ce_GetInstancePath(),i=o.hasClass("CE-tree"),r=o.ceItemObject(),s=i?r.getAllSelectedIndexes():r.getSelectedItemValue(),l=i?r.getAllSelectedData():r.getSelectedItemData();if(null!=s){for(var c=jQuery.isArray(s)?s:[s],d=[],p=0;p<c.length;p++)t=c[p],n=l[p],e&&jQuery.isFunction(e)&&!e(t,n)||d.push(c[p]);d.length&&((i=new CERPCAsync).onComplete=function(){o.ce_Refresh()},i.ce_ArrayMemberRemove(a,d,ce_GetTransactionID()))}}},jQuery.fn.ce_SetHighlightOptionsByValue=function(e){this.ceItemObject()&&this.ceItemObject().highlightItems(e)},jQuery.fn.ce_SetHeaderText=function(e,t){this.ceItemObject()&&this.ceItemObject().setHeaderText(e,t)},jQuery.fn.ce_ShowColumn=function(e,t){this.ceItemObject()&&this.ceItemObject().showColumn(e,t)},jQuery.fn.ce_HideColumn=function(e){this.ceItemObject()&&this.ceItemObject().showColumn(e,!1)},jQuery.fn.ce_Show=function(e){var t=$(this);if(e=void 0===e||e){if(t.ce_IsIgnored()||"always"===t[0].getAttribute("hidden"))return;var n=function(){t.removeAttr("hidden data-attr-hidden")};if(t.attr("data-hidden-only-applied"))return void(CE_HTML.onlyApplied.showAppliedSetting(t.ceObject())&&n());n()}t.ceObject()?t.ceObject().show(e):(trace("ce_Show() - ceObject() not found, please check..."),e?t.show():t.hide(),t.prop("_hidden",!e))},jQuery.fn.ce_Hide=function(){this.ce_Show(!1)},jQuery.fn.ce_ShowLink=function(e){this.ceItemObject()&&this.ceItemObject().showLink(e)},jQuery.fn.ce_HideLink=function(e){this.ceItemObject()&&this.ceItemObject().hideLink(e)},jQuery.fn.ce_IsInvalid=function(){return!0===$(this).prop("invalid")},jQuery.fn.ce_IsVisible=function(e){var t=$(this[0]),n=!0==!t.prop("_hidden");return n&&e?!(e=t.parent()).length||e.ce_IsVisible(!0):n},jQuery.fn.ce_IsEnabled=function(){return!(!0===$(this).prop("disabled"))},jQuery.fn.ce_IsReadOnly=function(){var e=$(this[0]);return void 0!==e.attr("readonly")||"yes"===e.attr("read-only")},jQuery.fn.ce_IsIgnored=function(){var e=$(this[0]);if(CE_HTML.core.productGUIModeEnabled()){if(void 0!==e.attr("ignored-in-product"))return!0}else{if(void 0!==e.attr("ignored-in-era")||void 0!==e.attr("ignored-in-policy-mode"))return!0;if(void 0!==e.attr("ignored-in-era-policy")&&CE_HTML.core.policyModeEnabled())return!0}return!1},jQuery.fn.ce_GetParentView=function(){var e,t=$(this[0]);return t.hasClass("CE-view")||t.hasClass("CE-tab-page")?(e=t.parent().closest(".CE-view")).get(0)?e.get(0).view?e.get(0).view:e:$():t.get(0)?t.get(0).view?t.get(0).view:t.parent().closest(".CE-view"):$()},jQuery.fn.ce_GetInstancePath=function(e){e=!1===e?$(this).parent():$(this),e=e.hasClass("CE-view")?CE_HTML.components.view.getPathPart(e):e.attr("path_part")||"";return CE_HTML.core.getInstancePath(this,e)},jQuery.fn.ce_GetDataProviderPathWithSuffix=function(e){var t=$(this),n=t.ce_GetDataProviderPath();if(void 0!==n)return n+(e||t.attr("data-provider-suffix")||"")},jQuery.fn.ce_GetDataProviderPath=function(e){var t,n=$(this).attr("data-provider");if(void 0!==n)return-1!==(t=n.indexOf(":"))&&(n=n.substring(t+1)),CE_HTML.core.getInstancePath(this,n,e)},jQuery.fn.ce_GetDataProvider=function(){return $(this[0]).data("ceDataProvider")},jQuery.fn.ce_SetDataProvider=function(t){var e,n,o=$(this[0]);o.hasAnyClassFrom(["CE-input-select","CE-list","CE-input-radio","CE-data-grid","CE-tree","CE-bit-check-list","CE-menu"])&&(n=function(){o.removeAttr("data-provider");var e=o.ce_GetParentView().attr("id");CE_HTML.core.addDataProviderData(o,t,e)},(e=o).ce_IsReadOnly()?(e.ce_ReadOnly(!1),n(),e.ce_ReadOnly(!0)):n())},jQuery.fn.ce_SetFilterParams=function(e,t,n){var o=$(this[0]);o.ceItemObject()&&(o.removeAttr("data-provider-filter-params"),o.ceItemObject().setDataProviderFilterParams(e),t=void 0===t||t)&&CE_HTML.core.isPageLoaded(o)&&o.ce_Refresh(n)},jQuery.fn.ce_GetFilterParams=function(){return this.ceItemObject()?this.ceItemObject().getDataProviderFilterParams():void 0},jQuery.fn.ce_SetFilter=function(e){},jQuery.fn.ce_GetActiveTab=function(){var e=$(this[0]);return e.hasClass("CE-tabs")?$(e.find(".CE-tab-page.CE_active")[0]):null},jQuery.fn.ce_GetActiveTabIndex=function(){var t,e=$(this[0]);return e.hasClass("CE-tabs")?(t=-1,e.find(".CE-tab-page").each(function(e){if($(this).hasClass("CE_active"))return t=e,!1}),t):null},jQuery.fn.ce_SetActiveTabIndex=function(e,t,n){var o=$(this[0]);o.hasClass("CE-tabs")&&(e<0||e>this.ce_GetTabsCount()?trace("tabindex out of range"):CE_HTML.components.tabs.activate_tab_page(o,e,t,n))},jQuery.fn.ce_GetActiveTabLabel=function(){var e=$(this[0]);return e.hasClass("CE-tabs")&&e.find(".CE-tab-page.CE_active").attr("label")||""},jQuery.fn.ce_GetTabsCount=function(){var e=$(this[0]);return e.hasClass("CE-tabs")?e.find("> .CE_tab-content > .CE-tab-page").length:-1},jQuery.fn.ce_AddTab=function(e,t,n){var o=$(this[0]);o.hasClass("CE-tabs")&&CE_HTML.components.tabs.create_dynamic_tab(o,$('<div class="CE-tab-page">').attr("label",n).attr("screenID",e),t)},jQuery.fn.ce_RemoveTabByIndex=function(e){var t=$(this[0]);t.hasClass("CE-tabs")&&CE_HTML.components.tabs.remove_tab_by_index(t,e)},jQuery.fn.ce_RemoveTabByScreenID=function(e){var t=$(this[0]);t.hasClass("CE-tabs")&&CE_HTML.components.tabs.remove_tab_by_screen_id(t,e)},jQuery.fn.ce_ShowTabByID=function(e,t){var n=$(this[0]);n.hasClass("CE-tabs")&&CE_HTML.components.tabs.show_tab_by_id(n,e,t)},jQuery.fn.ce_HideTabByID=function(e){this.ce_ShowTabByID(e,!1)},jQuery.fn.ce_ShowTabByIndex=function(e,t){var n=$(this[0]);n.hasClass("CE-tabs")&&CE_HTML.components.tabs.show_tab_by_index(n,e,t)},jQuery.fn.ce_HideTabByIndex=function(e,t){this.ce_ShowTabByIndex(e,!1)},jQuery.fn.ce_GetTransactionID=function(){var e=$(this[0]);return e.hasClass("CE-view")||e.hasClass("CE-tab-page")?ce_GetTransactionID():-1},jQuery.fn.ce_IsReadOnlyMode=function(){var e=$(this[0]);return e.hasClass("CE-view")||e.hasClass("CE-tab-page")?ce_IsReadOnlyMode():null},jQuery.fn.ce_SetWindowTitle=function(e){$(this).closest(".CE_modal-content").children(".CE_modal-header").children(".CE_modal-title").text(e)},jQuery.fn.ce_SetDummyPassword=function(){this.ceItemObject()&&this.ceItemObject().setDummyPassword()},jQuery.fn.ce_Prop=function(e,t){var n,o=$(this[0]);return jQuery.isFunction(t)?((n=o.get(0))&&(n[e]=t),o):1<arguments.length?o.prop(e,t):o.prop(e)},jQuery.fn.ce_PropRemove=function(e){return $(this[0]).removeProp(e)},jQuery.fn.ce_Attr=function(e,t){var n=$(this[0]);return 1<arguments.length?n.attr(e,t):n.attr(e)},jQuery.fn.ce_AttrRemove=function(e){return $(this[0]).removeAttr(e)},jQuery.fn.ce_IsChangedByUser=function(){var e=$(this[0]);return!!e.ceItemObject()&&!1===e.ceItemObject()._changedBySystem},jQuery.fn.ce_SetUserChangeOnly=function(e){var t=$(this[0]);t.ceItemObject()&&t.ceItemObject().setUserChangeOnly(e)},jQuery.fn.ce_GetPolicyValue=function(){return this.ceItemObject()?this.ceItemObject().getPolicyValue():null},jQuery.fn.ce_SetPolicyValue=function(e,t){this.ceItemObject()&&this.ceItemObject().setPolicyValue(e,t)},jQuery.fn.ce_GetArrayPolicyValue=function(){return this.ceItemObject()?this.ceItemObject().getArrayPolicyValue():null},jQuery.fn.ce_SetArrayPolicyValue=function(e,t){this.ceItemObject()&&this.ceItemObject().setArrayPolicyValue(e,t)},jQuery.fn.ce_GetArrayLocalPolicyValue=function(){return this.ceItemObject()?this.ceItemObject().getArrayLocalPolicyValue():null},jQuery.fn.ce_SetArrayLocalPolicyValue=function(e,t){this.ceItemObject()&&this.ceItemObject().setArrayLocalPolicyValue(e,t)},jQuery.fn.ce_SetExpand=function(e,t){this.ceContainerObject()&&this.ceContainerObject().expand(e)},jQuery.fn.ce_SetContract=function(){this.ce_SetExpand(!1)},jQuery.fn.ce_SetGroupSideBar=function(e){this.ceContainerObject()&&this.ceContainerObject().setGroupSideBar(e)},jQuery.fn.ce_GetControlButton=function(e){var t=this.data("ce-button-controls");return t?t.getButtonByAction(e):null},jQuery.fn.ce_GetDependency=function(){return this.ceItemObject()?this.ceItemObject().getDepedencyCheck():{}},jQuery.fn.setHtml=function(e){$(this).html(e)},jQuery.fn.setText=function(e){$(this).text(e)},jQuery.fn.toggleWidth=function(e){var t=$(this[0]);t.is(":visible")!=e&&t.animate({width:"toggle",opacity:"toggle"},250,"swing")},jQuery.fn.hasScrollBars=function(){var e={},t=this.get(0);return e.vertical=t.scrollHeight>t.clientHeight,e.horizontal=t.clientWidth<t.scrollWidth,e},jQuery.fn.hasAnyClassFrom=function(e){for(var t=$(this[0]),n=0;n<e.length;n++){var o=e[n].trim();if(t.hasClass(o))return!0}return!1},jQuery.fn.customToggle=function(e,t,n,o,a){var i=$(this[0]);void 0===n?void 0===i[o](e)?i[o](e,t):i[a](e):n?i[o](e,t):i[a](e)},jQuery.fn.toggleAttr=function(e,t,n){this.customToggle(e,t,n,"attr","removeAttr")},jQuery.fn.toggleProp=function(e,t,n){this.customToggle(e,t,n,"ce_Prop","ce_PropRemove")},jQuery.fn.setOuterHeight=function(e){var t=$(this[0]),n=t.outerHeight(),o=t.height();return t.height(e-n+o),e-n+o},jQuery.fn.childrenHeight=function(){var e=this.children(":not(.CE_modal)").last();if(e.length)return e.offset().top+e.outerHeight()-this.contentTop()+this.contentToMarginBottomOffset()},jQuery.fn.contentToMarginOffset=function(){return this.contentToMarginTopOffset()+this.contentToMarginBottomOffset()},jQuery.fn.contentToMarginTopOffset=function(){return parseInt(this.css("border-top-width"),10)+parseInt(this.css("margin-top"),10)+parseInt(this.css("padding-top"),10)},jQuery.fn.contentToMarginBottomOffset=function(e){return void 0===e?parseInt(this.css("border-bottom-width"),10)+parseInt(this.css("margin-bottom"),10)+parseInt(this.css("padding-bottom"),10):e.is(this)?this.contentToMarginBottomOffset():this.contentToMarginBottomOffset()+this.parent().contentToMarginBottomOffset(e)},jQuery.fn.contentTop=function(){return this.offset().top+this.contentToMarginTopOffset()},jQuery.fn.contentBottom=function(){return this.offset().top+this.outerHeight()-this.contentToMarginBottomOffset()},jQuery.fn.setStyle=function(n,o){this.each(function(){var e,t=$(this);void 0===t.attr("style-backup")&&(e=t.attr("style"),t.attr("style-backup",e||"")),t.css(n,o)})},jQuery.fn.inlineStyle=function(e){for(var t,n=(this.attr("style")||"").split(";"),o={},a=0;a<n.length;++a)t=n[a].split(":"),o[$.trim(t[0])]=$.trim(t[1]);return void 0===e?o:o[e]},jQuery.fn.restoreStyles=function(){this.each(function(){var e=$(this),t=e.attr("style-backup");void 0!==t&&(e.attr("style",t),e.removeAttr("style-backup"))})},jQuery.fn.scrollTopMax=function(){var e=this.get(0),e=new Number(e.scrollHeight-e.clientHeight);return isNaN(e.valueOf())||e.valueOf()<0?0:e.valueOf()},jQuery.fn.vscrollTo=function(e,t){t=$.extend({height:0},t);var n=$(this),t=[n.offset().top,Math.max(n.height(),t.height)],e=[e.offset().top,e.outerHeight()],o=n.scrollTop();if(e[1]+=e[0],t[1]+=t[0],e[0]<t[0])o+=e[0]-t[0];else{if(!(t[1]<e[1]))return!1;o+=e[1]-t[1]}return n.stop(!0,!0).animate({scrollTop:o},200),!0},jQuery.fn.nextItem=function(t,e,n,o){o=$.extend({cycle:!1,scroll_height:$(this).height()},o);var a=$(this);switch(e){case CE_HTML.consts.keyboardKeys.VK_UP:return t=0===(t=t.prevAll(n).first()).length&&o.cycle?a.children(n).last():t;case CE_HTML.consts.keyboardKeys.VK_DOWN:return t=0===(t=t.nextAll(n).first()).length&&o.cycle?a.children(n).first():t;case CE_HTML.consts.keyboardKeys.VK_PAGEUP:var i=t.prevAll(n),r=t.offset().top;return r-=o.scroll_height,i.each(function(){if((t=$(this)).offset().top<r)return!1}),t;case CE_HTML.consts.keyboardKeys.VK_PAGEDOWN:var i=t.nextAll(n),s=t.offset().top;return s+=o.scroll_height,i.each(function(){var e=(t=$(this)).offset().top;if(s<e)return!1}),t;case CE_HTML.consts.keyboardKeys.VK_HOME:return t.prevAll(n).last();case CE_HTML.consts.keyboardKeys.VK_END:return t.nextAll(n).last();default:return $()}return $()},Number.prototype.toInteger=function(){return Math.round(this.valueOf())},Number.prototype.toFloat=function(){return this.valueOf()},String.prototype.toInteger=function(e,t){t=void 0!==t?t:10;t=parseInt(this.valueOf(),t);return isNaN(t)?e:t},jQuery.fn.$=function(e){e=$(this).find(e);return e.length?e.first():void 0},jQuery.fn.$$=function(e){var t=[];return $(this).find(e).each(function(){t.push($(this))}),t},String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){return pos=0<t?0|t:0,this.substring(pos,pos+e.length)===e}}),CE_HTML.audit=((a,i,_,f,v)=>{function y(e,t,n){var o="",o=t?(e.children("td.CE_history-change-type-icon").append($('<span class="CE_history"></span>').append(f.create("history-add"))),i.valueWasAdded):n?(e.children("td.CE_history-change-type-icon").append($('<span class="CE_history"></span>').append(f.create("history-remove"))),i.valueWasRemoved):(e.children("td.CE_history-change-type-icon").append($('<span class="CE_history"></span>').append(f.create("history-changed"))),i.valueWasChanged);e.find(".CE_history span").tooltip({container:"body",placement:a.directionLTR?"CE_left":"CE_right",html:!0,title:function(){return $("#page-view").find("select").blur(),o}})}return{cloneAndInitHistoryRow:function(e,t,n,o,a){var i,r,s,l,c,d,p,u,h,m,C;return void 0===(e=_.getComponents(e)?.not?.(".CE-header,.CE-text,.CE-group,.CE-link"))?.ceObject()||e?.ceObject()?.hasHistory?.()||0===(i=e.ceObject()._layout.row)?.length?null:((r=i.clone()).addClass("CE_history-border-bottom-row"),(s=r.find('td.CE_option > div[class^="CE-"]')).attr("id")&&s.attr("id","cloned_"+s.attr("id")),s.attr("path_part",s.attr("path_part")+"Cloned"),s.attr("policy-group",""),(t=s.ceObject({functionNamespace:t,componentsContainer:new _.ComponentsContainer,parent:e[0].view,isCloned:!0,$originalComponent:e})).$component=s,l=d=c=null,r&&r.children("td.CE_policy").length&&(c=r.children("td.CE_policy"),r.children("td.CE_policy-array").length&&(d=r.children("td.CE_policy-array")),r.children("td.CE_policy-array-local").length)&&(l=r.children("td.CE_policy-array-local")),t._policy=_.addPolicy(s,c,d,l,r),r.insertAfter(i),s.data("ce-object",t),e.ce_GetDataProvider()&&(s.ce_SetDataProvider(e.ce_GetDataProvider()),s.attr("data-provider",e.attr("data-provider")+".Cloned")),e.attr("path_part")&&s.attr("path_part",e.attr("path_part")+".Cloned"),a&&s.length&&s.ce_IsVisible()&&(a===v.visibilityStates.visible||a===v.visibilityStates.disabled?s.ce_Disable(0):a===v.visibilityStates.hidden?s.ce_Hide():jQuery.isPlainObject(a)||jQuery.isArray(a)?s.ceItemObject()&&s.ceItemObject().setItemsDepedencyCheck(a):error("unknown dependency check status: "+a)),s.ceObject()._layout.table=r.closest("table"),s.ceObject()._layout.row=r,s.ceObject()._layout.policyColumn=r.children("td.CE_policy"),s.ceObject()._layout.policyArrayColumn=r.children("td.CE_policy-array"),s.ceObject()._layout.policyArrayLocalColumn=r.children("td.CE_policy-array-local"),s.ceObject()._layout.labelColumn=r.children("td.CE_option-label"),s.ceObject()._layout.optionColumn=r.children("td.CE_option"),s.ceObject()._layout.descOrValidColumn=r.children("td.CE_desc-or-val-result"),e.ceObject()._clonedRef=t,n&&(s.ceObject().setPolicyValue(n?.policy_flag??0),s.ceObject().setArrayPolicyValue(n?.policy_flag_array??0),s.ceObject().setArrayLocalPolicyValue(n?.era_local_array_merge_flag??0)),d=c=!1,(0<e.ceObject().getPolicyValue()&&0===s.ceObject().getPolicyValue()||0<e.ceObject().getArrayPolicyValue()&&0===s.ceObject().getArrayPolicyValue()||0<e.ceObject().getArrayLocalPolicyValue()&&0===s.ceObject().getArrayLocalPolicyValue())&&(c=!0),(0===e.ceObject().getPolicyValue()&&0<s.ceObject().getPolicyValue()||0===e.ceObject().getArrayPolicyValue()&&0<s.ceObject().getArrayPolicyValue()||0===e.ceObject().getArrayLocalPolicyValue()&&0<s.ceObject().getArrayLocalPolicyValue())&&(d=!0),r.hide(),e.ceObject().hasHistory()||(y(i,c,d),e.ceObject().setHasHistory(!0),o)||(p=i,u=r,h=$('<span class="CE_history-show"></span>').append(f.create("expand-history")),m=$('<span class="CE_history-hide"></span>').append(f.create("collapse-history")),C=$('<tr class="CE_history-border-middle-row"><td colspan="12" class="CE_history-header-row">Previous settings</td></tr>'),p.children("td.CE_history-show-or-hide-icon").append(h),p.children("td.CE_history-show-or-hide-icon").append(m),m.hide(),C.insertBefore(u),C.children(":first").css("background-color",p.children(":first").css("background-color")),C.hide(),p.find(".CE_history-show span svg").click(function(){p.addClass("CE_history-border-top-row"),h.hide(),m.show(),C.toggle(),u.toggle()}),p.find(".CE_history-hide span svg").click(function(){p.removeClass("CE_history-border-top-row"),m.hide(),h.show(),C.toggle(),u.toggle()})),s.ce_SetValue(e.ce_GetValue(),!0),s)},addHistoryLayoutToRow:y,selectedElementIsRemoved:function(e){return _.auditLogEnabled()&&(e.ce_Prop("selected_history_flag")===v.historyFlags.removed||e.ce_Prop("popup_tab_history_flag")===v.historyFlags.removed)},addHistoryData:function(e){var n=[];return e.forEach(e=>{var t;e.metaData?(t=Object.keys(e.metaData).find(e=>Object.keys(v.historyFlags).includes(e))||"same")===v.historyFlags.added?n.push({...e,historyData:{pastIndex:null,currentIndex:e.index?.toString(),flag:t}}):t===v.historyFlags.removed?n.push({...e,historyData:{pastIndex:e.index?.toString(),currentIndex:null,flag:t}}):n.push({...e,historyData:{pastIndex:e.index?.toString(),currentIndex:e.index?.toString(),flag:t}}):n.push({...e,historyData:{pastIndex:e.index?.toString(),currentIndex:e.index?.toString(),flag:v.historyFlags.same}})}),n},equalFlags:function(e,t){return e?.era_local_array_merge_flag===t?.era_local_array_merge_flag&&e?.policy_flag===t?.policy_flag&&e?.policy_flag_array===t?.policy_flag_array},equalValues:function(e,t){return void 0!==t&&(jQuery.isPlainObject(e)||Array.isArray(e))?JSON.stringify(e)===JSON.stringify(t):e===t},createHistoryIcon:function(e){var t=$('<span class="CE_history-menu-icon" style="display: none"></span>').append(f.create("history-changed"));return t.tooltip({container:"body",placement:e?a.directionLTR?"CE_left":"CE_right":a.directionLTR?"CE_right":"CE_left",html:!0,title:function(){return $("#page-view").find("select").blur(),i.valueWasChanged}}),t},incrementPolicyHistoryCounter:function(e){e&&(e=e.parents(".CE-group").first().data("PolicyHistoryCounter"))&&e.increment()}}})((CE_HTML.utils,CE_HTML.vars),CE_HTML.localization.getStrMap(),CE_HTML.core,CE_HTML.svg,CE_HTML.consts),((e,r,c,o,d,p,t)=>{function n(e){return"yes"===e.attr("value")&&void 0!==e.attr("path_part")}var a={"add-icon":'<span class="CE_glyphicon CE_glyphicon-plus"></span>',"remove-icon":'<span class="CE_glyphicon CE_glyphicon-minus"></span>',"edit-icon":'<span class="CE_glyphicon CE_glyphicon-pencil"></span>',"up-icon":'<span class="CE_glyphicon CE_glyphicon-play CE_rotate-up"></span>',"down-icon":'<span class="CE_glyphicon CE_glyphicon-play CE_rotate-down"></span>',"top-icon":'<span class="CE_glyphicon CE_glyphicon-forward CE_rotate-up"></span>',"bottom-icon":'<span class="CE_glyphicon CE_glyphicon-forward CE_rotate-down"></span>',"enabled-icon":t.create("checkbox-checked",!0),"disabled-icon":t.create("checkbox-unchecked",!0),"":""},u={"mdm-ios-certificate":{html:'<div class="CE-link" label="addCertificate" data-ce-onclick="this.onAddCertificateClick()"></div><div class="CE-button" label="buttonSave" data-ce-onclick="this.view.ce_OnEditScreenOk();" primary="yes"></div><div class="CE-button" label="buttonCancel" data-ce-onclick="this.view.ce_CloseWindow();"></div><div class="CE-view" id="mdm-ios-certificate-add-view" label="addCertificate" path_part="root.mdm.ios.configuration.certificates" array="yes" auto-save="no" data-ce-onclose-ok="this.onCertificateAdded();" window="yes" window-revocable="yes"></div>',scripts:{onAddCertificateClick:function(){trace("onAddCertificateClick"),this.view.$("#mdm-ios-certificate-add-view").ce_AddAndLoadEditScreen(null,"era.mdm.ios.certificates.item")},onCertificateAdded:function(){trace("onCertificateAdded");var n,o,a,i="mdm.ios.configuration.certificates",e=$('div[data-provider$="'+i+'"]');jQuery.each(e,function(){var e=$(this),t=e.ce_GetValue();e.ce_Refresh(function(){e.ce_SetValue(t,!0)})}),d.policyModeEnabled()&&!1===c.readOnlyMode&&(n=$(this),(o=new CERPCAsync).onComplete=function(){var e;this.result&&this.result[i][r.policyFlagName]===r.policyStates.ignore&&((e=new CERPCAsync).onComplete=function(){var t;this.result&&0===o.result[i][r.policyFlagName]&&(t=0===(t=n.parents('.CE-view[window="yes"]:last')).length?n:t).ce_Prop("onclose_ok",function(){t.ce_PropRemove("onclose_ok");var e,n=$('#page-view .CE-link[path_part="certificates"]');n.length&&((e=new CERPCAsync).onComplete=function(){var e,t;this.result&&(e=this.result[i][r.policyFlagName]||r.policyStates.ignore,void 0!==(t=n.data("PolicySwitch")))&&t.initialized()&&t.setState(e)},e.ce_ValueFlagsGet(a,c.transactionID))})},e.ce_SubtreeValueFlagsChange([{full_path:i,flag_name:r.policyFlagName,value:r.policyStates.apply}],c.transactionID))},(a={})[i]=r.policyFlagName,o.ce_ValueFlagsGet(a,c.transactionID))}},initTemplate:function(e,t,n){e.find('div[label="addCertificate"]').each(function(){$(this).attr("label",o.addCertificate)}),e.find('div[label="buttonSave"]').each(function(){$(this).attr("label",o.buttonSave)}),e.find('div[label="buttonCancel"]').each(function(){$(this).attr("label",o.buttonCancel)});e=e.children("#mdm-ios-certificate-add-view");e.appendTo(t),p.create_view(e,t,n)}}};e.freezeObject(u),$.extend(p,{get_element_label:function(e){return e.attr("policy-label-"+c.ceProductName)||e.attr("label-"+c.ceProductName)||e.attr("policy-label")||e.attr("label")},get_element_description:function(e){return e.attr("policy-description-"+c.ceProductName)||e.attr("description-"+c.ceProductName)||e.attr("policy-description")||e.attr("description")},create_icon:function(e){var t=a[e||""];return void 0===t?(error("Unknown icon: "+e),$()):$(t)},create_action_bar:function(e,o,a){var t=$(e);if("yes"!==$(o).attr("window"))t.remove();else if(!c.readOnlyMode&&void 0===$(o).attr("readonly")&&"yes"!==$(o).attr("read-only")||void 0!==t.attr("readonly-ignored")){var e=t.closest(".CE_modal-content"),n=(e.length&&(l=$("<div class='CE_modal-footer'></div>"),e.remove(".modal-footer"),e.append(l),t.appendTo(l)),t.attr("template")||"");if(""!==n){e=u[n];if(!e||!e.html)return void error("Unknown or bad action bar template: "+n);if(t.html(e.html),e.scripts){var i=e.scripts;for(functionName in i)void 0===c.customScripts[a][functionName]?c.customScripts[a][functionName]=i[functionName]:error("Conflict when merge scripts for action bar template: "+n+", conflicting script: "+functionName)}jQuery.isFunction(e.initTemplate)&&e.initTemplate(t,o,a)}var r,s,l=function(n){t.find('div[class^="CE-"]').each(function(){var e,t=$(this);t.hasClass("CE-input-checkbox")?(!0===n&&t.appendTo(r),t.attr("native","yes")):t.hasAnyClassFrom(["CE-button","CE-link"])&&!0===n&&(e=t.hasClass("CE-button")?s:r,t.appendTo(e)),t.ceObject({functionNamespace:a,parent:o}),d.hideOrDisableIfneeded(t)})};t.children(".CE-left").length||t.children(".CE-right").length?(e=$('<div class="CE-layout-horizontal"></div>'),t.prepend(e),t.children(".CE-left").appendTo(e),t.children(".CE-right").appendTo(e),l(),p.create_horizontal_layout(e)):(t.addClass("CE_inline-block"),t.append("<div class='CE_pull-left'></div><div class='CE_pull-right'></div>"),r=t.children(".CE_pull-left"),s=t.children(".CE_pull-right"),l(!0))}else t.remove(),p.view.addDefaultActionBar(o,a)},is_value_holder:n,is_version_label_holder:function(e){return n(e)||e.hasClass("CE-link")&&void 0!==e.attr("path_part")},get_action_bar_templates:function(){return u}})})(CE_HTML.utils,CE_HTML.consts,CE_HTML.vars,CE_HTML.localization.getStrMap(),CE_HTML.core,CE_HTML.components,CE_HTML.svg),((i,r,o,c,s,d,a)=>{s.classToObjectConstructorMap={},s.getClassToObjectConstructorMap=function(){return $.isEmptyObject(this.classToObjectConstructorMap)&&(this.classToObjectConstructorMap={"CE-input-checkbox":this.CECheckBox,"CE-bit-check-list":this.CEBitCheckList,"CE-input-radio":this.CERadio,"CE-input-radio-horizontal-header":this.CERadioHorizontalHeader,"CE-input-text":this.CEInputText,"CE-input-file":this.CEInputTextNoKeyFilter,"CE-input-folder":this.CEInputTextNoKeyFilter,"CE-input-path":this.CEInputTextNoKeyFilter,"CE-input-number":this.CEInputNumber,"CE-input-password":this.CEInputPassword,"CE-input-select":this.CEInputSelect,"CE-list":this.CEList,"CE-user-list":this.CEUserList,"CE-link":this.CELink,"CE-text":this.CEText,"CE-header":this.CEHeader,"CE-button":this.CEButton,"CE-data-grid":this.CEDataGrid,"CE-input-datetime":this.CEDateTimePicker,"CE-slider":this.CESlider,"CE-upload-file":this.CEFileUpload,"CE-menu":this.CEMenu,"CE-tree":this.CETree,"CE-horizontal-line":this.CEHorizontalLine,"CE-progress":this.CEProgress,"CE-download-file":this.CEFileDownload,"CE-data-holder":this.CEDataHolder,"CE-group":this.CEGroup},i.freezeObject(this.classToObjectConstructorMap)),this.classToObjectConstructorMap},jQuery.fn.ceItemObject=function(){var e=this.ceObject();if(!e||!e.isContainer())return e},jQuery.fn.ceContainerObject=function(){var e=this.ceObject();if(!e||e.isContainer())return e},jQuery.fn.ceObject=function(e){var t=$(this[0]),n=t.data("ce-object");if(!n&&e)try{for(var o=(t.attr("class")||"").trim().replace(/\s+/g," ").split(" "),a=0;a<o.length;a++){var i=s.getClassToObjectConstructorMap()[o[a]];if(i)return t.data("ce-object",n=new i(t,e)),n}}catch(e){throw error("Failed to construct object "+t.attr("class")),e}return n},s.CEObject=function(e,t){this.initCommon(e,t),this._ce_events=c.transformCeEvents(this.$component,t.functionNamespace),c.removeStandartEvents(this.$component),this._policy=void 0,this._readOnlyIgnored="yes"===this.$component.attr("readonly-ignored"),this._resetValue=void 0,this._resetPolicyValue=void 0,this._assignedVersionLabels={},this._runDepedencyCheckAndValidationTimeoutId=null,this._depCheckResult={},this._dataProviderFilterParams=c.eval_str((this.$component.attr("data-provider-filter-params")||"").trim()),this._hasHistory=!1},s.CEObject.prototype.initCommon=function(e){this.$component=e,this.$component.prop("_hidden",!1),this.$component.prop("disabled",!1),this._additionalOnChangeEvents=[],this._layout={table:$(),row:$(),policyColumn:$(),policyArrayColumn:$(),policyArrayLocalColumn:$(),labelColumn:$(),optionColumn:$(),descOrValidColumn:$()}},s.CEObject.prototype.show=function(e){e=void 0===e||e;var t=this._layout.row;t.length?e?(t.show(),t.hasClass("table-hidden-row")&&(t.next().remove(),t.removeClass("table-hidden-row"))):(t.hide(),t.hasClass("table-hidden-row")||($('<tr class="table-strip-fix"></tr>').hide().insertAfter(t),t.addClass("table-hidden-row"))):e?this.$component.show():this.$component.hide(),this.$component.prop("_hidden",!e)},s.CEObject.prototype.hide=function(){this.show(!1)},s.CEObject.prototype.isVisible=function(){return!this.$component.prop("_hidden")},s.CEObject.prototype.enable=function(e){return this.enableElement(this.$component,e=void 0===e||e),e},s.CEObject.prototype.disable=function(){this.enable(!1)},s.CEObject.prototype.setValue=function(e,t){error("unimplemented method setValue")},s.CEObject.prototype.getValue=function(){error("unimplemented method getValue")},s.CEObject.prototype.setPolicyValue=function(e,t){this._policy&&(this._policy.isSlave()?this._policy.getMaster().setState(e,t):this._policy.hasGroup()?this._policy.setGroupState(e,t):this._policy.setState(e,t))},s.CEObject.prototype.getPolicyValue=function(){return this._policy?this._policy.getPolicyVal():null},s.CEObject.prototype.setArrayPolicyValue=function(e,t){this._policy&&this._policy.setArrayState(e,t)},s.CEObject.prototype.getArrayPolicyValue=function(){return this._policy?this._policy.getArrayPolicyVal():null},s.CEObject.prototype.setArrayLocalPolicyValue=function(e,t){this._policy&&this._policy.setArrayLocalState(e,t)},s.CEObject.prototype.getArrayLocalPolicyValue=function(){return this._policy?this._policy.getArrayLocalPolicyVal():null},s.CEObject.prototype.setHasHistory=function(e){this._hasHistory=e},s.CEObject.prototype.hasHistory=function(){return this._hasHistory},s.CEObject.prototype.setResetValue=function(e){this._resetValue=e},s.CEObject.prototype.resetValue=function(){void 0!==this._resetValue&&void 0===this.$component.attr("data-no-reset-value")&&this.setValue(this._resetValue,!0)},s.CEObject.prototype.setResetPolicyValue=function(e){this._resetPolicyValue=e},s.CEObject.prototype.resetPolicy=function(){void 0!==this._resetPolicyValue&&this.setPolicyValue(this._resetPolicyValue,!0)},s.CEObject.prototype.reset=function(){this.resetValue(),this.resetPolicy()},s.CEObject.prototype.getLabelParentElement=function(){var e=this._layout.labelColumn,t=e,e=(t=e.children(".CE_option-label-panel").length?e.find(".CE_col-label"):t).children("label");return e.length?e:t},s.CEObject.prototype.setLabel=function(e){this.getLabelParentElement().text(e)},s.CEObject.prototype.getLabel=function(){return this.getLabelParentElement().text()},s.CEObject.prototype.setDescription=function(e){var t,n,o,a=this._layout.descOrValidColumn;e=e||"",a.length&&(t=a.children("span.CE_info:not(.CE_user-info)"),n=function(){var e=t.children("a").data("bs.tooltip");e&&e.destroy()},""===e.trim()?(n(),this.$component.removeAttr("description policy-description"),t.remove()):(t.length?n():(t=$('<span class="CE_info"><a><span class="CE_glyphicon CE_glyphicon-info-sign"></span></a></span>'),this._layout.row.hasAnyClassFrom(["CE_has-error","CE_has-user-info"])&&t.hide(),a.append(t),this._layout.table.addClass("CE_display-desc-column")),o=i.escapeHtmlText(e),this.$component.attr("description",e),this.$component.removeAttr("policy-description"),t.children("a").tooltip({container:"body",placement:r.directionLTR?"CE_left":"CE_right",html:!0,title:function(){return o}})))},s.CEObject.prototype.getDescription=function(){return s.get_element_description(this.$component)||""},s.CEObject.prototype.readOnly=function(e,t){this.$component.toggleAttr("readonly","yes",e=void 0===e||e),!0!==this._readOnlyIgnored&&(this._layout.table.hasClass("CE_configuration")?(this.toggleOverlay(e,{userSetting:t}),this.togglePolicy(e),this.toggleTabOrderAndFocus(e)):this.enable(!e))},s.CEObject.prototype.appendVersionLabel=function(e){let t=this;var n,o,a;this._layout.labelColumn.length?(n=this._layout.labelColumn,0===(a=n.children(".CE_option-label-panel")).length&&(o=$('<div class="CE_col-label table-cell CE_left"></div>'),n.children().length?n.children().wrapAll(o):n.wrapInner(o),o=$('<div class="CE_col-version-info table-cell CE_right"><div class="CE_no-wrap-wrapper"></div></div>'),t.$component.attr("id")&&o.attr("id",t.$component.attr("id")+"-versions"),o.children().append(d.createHeightSpacer()),n.append(o),n.children().wrapAll('<div class="CE_option-label-panel table-main"><div class="table-row"></div></div>'),a=n.children(".CE_option-label-panel")),a.find(".CE_col-version-info .CE_no-wrap-wrapper").append(e)):this._layout.optionColumn.length&&this._layout.row.hasClass("CE_no-label")&&"yes"===this.$component.attr("value")&&(o=this._layout.optionColumn,0===(n=o.children(".CE_option-label-panel")).length&&(o.append('<div class="CE_option-label-panel"></div>'),n=o.children(".CE_option-label-panel")),n.append(e))},s.CEObject.prototype.createVersionLabels=function(t,o){function a(e){r.appendVersionLabel(e)}function i(e){error("Version info, path: "+r.$component.ce_GetInstancePath()+", error: "+e+", value: "+JSON.stringify(t))}var r=this,e=t.option;e&&d.createForOption(e,a,i,o);(e=t.optionOr)&&d.createForOptionOr(e,a,i,o);var s,l,n,e=t.enum;e&&((s=r.$component.ce_GetDataProvider())?(l=r.$component.attr("data-member-label"),n=r.$component.attr("data-member-value"),$.isArray(s)&&(s=(e=>{for(var t={},n=0;n<s.length;n++)t[c.getDataMemberValue(e,n+1,s[n])]=s[n];return t})(n)),$.each(e,function(e,t){var n=s[e];n?(n=c.getDataMemberLabel(l,n),(t=d.createForEnum(t,n,a,i,o)).length&&r.isVersionLabelsAssignSupported()&&(r.assignVersionLabelsToKey(e,t),r.refreshAssignedVersionLabels())):i("Data provider item '"+e+"' not found!")})):i("Data provider is not defined!"))},s.CEObject.prototype.isVersionLabelsAssignSupported=function(){return!1},s.CEObject.prototype.assignVersionLabelsToKey=function(e,t){this._assignedVersionLabels[e]=t},s.CEObject.prototype.refreshAssignedVersionLabels=function(){for(var e,t=Object.keys(this._assignedVersionLabels),n=this.getValue(),o=0;o<t.length;o++)(e=t[o])==n?this._assignedVersionLabels[e].show():this._assignedVersionLabels[e].hide()},s.CEObject.prototype.clearVersionLabels=function(){this._assignedVersionLabels={},this._layout.labelColumn.length&&this._layout.labelColumn.find(".CE_option-label-panel").find(".CE_col-version-info .CE_no-wrap-wrapper").children().remove()},s.CEObject.prototype.getVersionLabels=function(){return this._layout.labelColumn.find(".CE_label.CE_label-versioning")},s.CEObject.prototype.hasVersionLabel=function(e){var t,n,o=this.getVersionLabels();return!!o.length&&(!e||!e.length||(t=!1,n=e.data("versionInfoData"),o.each(function(){if(0===$(this).data("versionInfoData").compareTo(n))return!(t=!0)}),t))},s.CEObject.prototype.removeVersionLabel=function(t){this.getVersionLabels().each(function(){var e=$(this);0===e.data("versionInfoData").compareToStr(t)&&e.remove()})},s.CEObject.prototype.setDataProviderData=function(e,t,n){this.removeItems(),c.addCommonItems(this.$component,e,function(e,t,n,o){e.addItem(t,n,o)},[this])},s.CEObject.prototype.hasAdditionalDataProviderRequest=function(){return!1},s.CEObject.prototype.createAdditionalDataProviderRequest=function(){error("unimplemented method createAdditionalDataProviderRequest")},s.CEObject.prototype.getDataProviderLimit=function(){return-1},s.CEObject.prototype.getDataProviderStartIndex=function(){return 1},s.CEObject.prototype.getDataProviderFilterText=function(){},s.CEObject.prototype.getDataProviderFilterColumns=function(){},s.CEObject.prototype.getDataProviderUsedColumns=function(){},s.CEObject.prototype.getDataProviderFilterParams=function(){return this._dataProviderFilterParams},s.CEObject.prototype.setDataProviderFilterParams=function(e){this._dataProviderFilterParams=e},s.CEObject.prototype.getSelectedItemValue=function(){return this.getValue()},s.CEObject.prototype.getSelectedItemData=function(){error("unimplemented method getSelectedItemData")},s.CEObject.prototype.removeItems=function(){error("unimplemented method removeItems")},s.CEObject.prototype.addItem=function(e,t,n){error("unimplemented method addItem")},s.CEObject.prototype.setItemState=function(e,t,n){error("unimplemented method setItemState")},s.CEObject.prototype.setItemsDepedencyCheck=function(e){var n=jQuery.isArray(e),o=this;jQuery.each(e,function(e,t){o.setItemState(n?e+1:e,t,!0)})},s.CEObject.prototype.setDepedencyCheck=function(e){this._depCheckResult=e},s.CEObject.prototype.getDepedencyCheck=function(){return this._depCheckResult},s.CEObject.prototype.addToLayout=function(e,t){var n=null,t=(void 0!==e.layout&&void 0!==s.get_element_label(this.$component)?(n=e.layout.addToLayout(this.$component,e.id),this.storeLayoutElements(n)):!0===t?e.layout?(n=e.layout.addToLayoutNoLabel(this.$component),this.storeLayoutElements(n)):e.isCloned?n=$():error("layout doesn't exists"):e.layout&&e.layout.closeLayout(),null),o=null,a=null;n&&n.children("td.CE_policy").length&&(t=n.children("td.CE_policy"),n.children("td.CE_policy-array").length&&(o=n.children("td.CE_policy-array")),n.children("td.CE_policy-array-local").length)&&(a=n.children("td.CE_policy-array-local")),this._policy=c.addPolicy(this.$component,t,o,a,n),e.componentsContainer&&e.componentsContainer.addComponent(this.$component)},s.CEObject.prototype.storeLayoutElements=function(e){this._layout.table=e.closest("table"),this._layout.row=e,this._layout.policyColumn=e.children("td.CE_policy"),this._layout.policyArrayColumn=e.children("td.CE_policy-array"),this._layout.policyArrayLocalColumn=e.children("td.CE_policy-array-local"),this._layout.labelColumn=e.children("td.CE_option-label"),this._layout.optionColumn=e.children("td.CE_option"),this._layout.descOrValidColumn=e.children("td.CE_desc-or-val-result")},s.CEObject.prototype.moveAttributes=function(o,e){var a=this;$.each(e,function(e,t){var n=a.$component.attr(e);void 0!==n&&(o.attr(t,n),a.$component.removeAttr(e))})},s.CEObject.prototype.enableElement=function(o,e){var t,n;o.is("a")?(t=function(e){var t=e?"data-attr-tabindex":"tabindex",e=e?"tabindex":"data-attr-tabindex",n=o.attr(t);void 0!==n&&o.removeAttr(t).attr(e,n)},e?(o.removeAttr("disabled"),t(!0)):(o.attr("disabled","disabled"),t(!1))):o.is("select")||(n=this,o.children().each(function(){n.enableElement($(this),e)})),o.toggleClass("CE_disabled",!e),o.prop("disabled",!e)},s.CEObject.prototype.resize=function(e){this.$component.setStyle("height",this.$component.height()+e+"px")},s.CEObject.prototype.runDependencyCheckAndValidation=function(){c.isPageLoaded(this.$component)&&!1===c.isRefreshed(this.$component)&&c.runDependecyCheckAndValidation(this.$component)},s.CEObject.prototype.runDependencyCheckAndValidationDelayed=function(e){e=void 0===e?400:e,null!==this._runDepedencyCheckAndValidationTimeoutId&&clearTimeout(this._runDepedencyCheckAndValidationTimeoutId);var t=this;this._runDepedencyCheckAndValidationTimeoutId=setTimeout(function(){t.runDependencyCheckAndValidation(),t._runDepedencyCheckAndValidationTimeoutId=null},e)},s.CEObject.prototype.runExistingDelayedDependencyCheckAndValidationAtOnce=function(){null!==this._runDepedencyCheckAndValidationTimeoutId&&(clearTimeout(this._runDepedencyCheckAndValidationTimeoutId),this._runDepedencyCheckAndValidationTimeoutId=null,this.runDependencyCheckAndValidation())},s.CEObject.prototype.activatePolicy=function(){c.isPageLoaded(this.$component)&&!1===c.isRefreshed(this.$component)&&this._policy.activate()},s.CEObject.prototype.onChangeScript=function(){trace("data-ce-onchange"),c.eval_str.call(this.$component.get(0),this._ce_events.onchange),c.isPageLoaded(this.$component)&&(this.$component.ce_GetParentView().ceContainerObject().triggerChange(this),r.eraChangeNotifier.notifyChange(this));var e=this.$component.ceItemObject()._additionalOnChangeEvents;e&&e.length&&e.forEach(function(e){if("function"==typeof e)try{e()}catch(e){error("Failed to call evt func:"+e)}else error("Invalid evt func!")})},s.CEObject.prototype.onClickScript=function(){trace("data-ce-onclick"),c.eval_str.call(this.$component.get(0),this._ce_events.onclick)},s.CEObject.prototype.onDoubleClickScript=function(){trace("data-ce-onitemdoubleclick"),c.eval_str.call(this.$component.get(0),this._ce_events.onitemdoubleclick)},s.CEObject.prototype.onTooltipScript=function(){return trace("data-ce-ontooltip"),c.eval_str.call(this.$component.get(0),this._ce_events.ontooltip)},s.CEObject.prototype.hasCeEvent=function(e){return!!this._ce_events[e]},s.CEObject.prototype.toggleOverlay=function(e,t){var n;e?this.$component.children(".CE_component-locker").length||(e=!!t&&t.onlyLockIcon,t=!!t&&t.userSetting,this.$component.css("position","relative"),this.$component.prepend('<div class="CE_component-locker'+(e?" CE_lockonly":"")+'"> <a class="CE_icon-lock"></a>'+(t?'<a class="CE_icon-user"> <span class="CE_glyphicon CE_glyphicon-user CE_glyphicon-userSetting"></span> </a>':"")+"</div>"),e=function(e,t){var n=i.escapeHtmlText(o[t]);e.tooltip({container:"body",placement:"auto CE_top",html:!0,title:function(){return n}})},(n=this.$component.find(".CE_component-locker a.CE_icon-lock")).append(a.create("lock-locked")),e(n,"valueIsReadOnly"),t&&(e(this.$component.find(".CE_component-locker a.CE_icon-user"),"valueIsUserSetting"),this._layout.labelColumn.addClass("CE_option-label-userSetting"))):(this.$component.css("position",""),this.$component.children(".CE_component-locker").remove())},s.CEObject.prototype.togglePolicy=function(e){e=void 0===e||e;var t=this._layout.policyArrayColumn.data("customCombo"),n=this._layout.policyArrayLocalColumn.data("customCombo"),o=this._layout.policyColumn.data("stateSwitcher");o&&o.enable(!e),t&&t.enable(!e),n&&n.enable(!e),this._layout.row.toggleClass("CE_readonly",e)},s.CEObject.prototype.toggleTabOrderAndFocus=function(e){var t=this.$component.find("input, textarea, button, select");t&&(e?(t.attr("tabindex",-1),t.prop("backupId",t.attr("id")),t.removeAttr("id")):(t.removeAttr("tabindex"),t.prop("backupId")&&t.attr("id",t.prop("backupId"))))},s.CEObject.prototype.toggleReadOnlyAttr=function(e){return this.$component.toggleAttr("readonly","yes",e=void 0===e||e),e},s.CEObject.prototype.isContainer=function(){return!1},s.CEContainer=function(e,t){s.CEObject.prototype.initCommon.call(this,e),this._objects=[],this._ce_events={},t&&t.functionNamespace?this._ce_events.onchange=c.transformCeEvent(this.$component,t.functionNamespace,this.$component.attr("data-ce-onchange")||""):this._ce_events.onchange=""},s.CEContainer.prototype.addObject=function(e){this._objects.push(e)},s.CEContainer.prototype.isContainer=function(){return!0},s.CEContainer.prototype.objects=function(){return this._objects},s.CEContainer.prototype.getAllObjects=function(){function o(e,n){return e.objects&&e.isVisible()&&(e=e.objects(),n=n.concat(e),$.each(e,function(e,t){n=o(t,n)})),n}return o(this,[])},s.CEContainer.prototype.removeObjects=function(){this._objects=[]},s.CEContainer.prototype.storeLayoutElements=function(e){s.CEObject.prototype.storeLayoutElements.call(this,e)},s.CEContainer.prototype.show=function(e){s.CEObject.prototype.show.call(this,e)},s.CEContainer.prototype.hide=function(){this.show(!1)},s.CEContainer.prototype.isVisible=function(){return s.CEObject.prototype.isVisible.call(this)},s.CEContainer.prototype.triggerChange=function(e){trace("data-ce-onchange container"),c.eval_str.call(e.$component.get(0),this._ce_events.onchange);e=e.$component.parents(".CE-view").first();e.length&&e.ceContainerObject().triggerChange(this)}})(CE_HTML.utils,(CE_HTML.consts,CE_HTML.vars),CE_HTML.localization.getStrMap(),CE_HTML.core,CE_HTML.components,CE_HTML.versionLabels,CE_HTML.svg),((u,h,m,C,_,f,r,v)=>{f.CEGroup=function(e,t){t.layout.closeLayout(),f.CEContainer.call(this,e,t),this.create(t)},f.CEGroup.prototype=u.cloneObject(f.CEContainer.prototype),f.CEGroup.prototype.create=function(e){var a,t,n=this.$component.attr("id"),o=(n||(n=u.makeid(),this.$component.attr("id",n)),f.get_element_label(this.$component)||""),i=f.get_element_description(this.$component)||"",r=this.$component.attr("contractible")||"no",s=this.$component.attr("contracted")||"no",l=this.$component.attr("accordion")||"no",c=this,d=(this.$panel=$("<div class='CE_panel CE_panel-default'></div>"),$("<div class='CE_panel-heading'></div>")),p=$("<h4 class='CE_panel-title'><span class='CE_icon-panel'></span><span class='CE_panel-text'></span></h4>"),r=(p.find(".CE_icon-panel").append(v.create("group-collapse"),v.create("group-expand")),"yes"===r||"yes"===l?(p.children().wrapAll("<a></a>"),r=p.children("a"),p.prepend(r),p.find("a > .CE_panel-text").text(o),r.click(function(e){c.collapse("toggle")})):p.children(".CE_panel-text").text(o),this.$a=p.find("a"),d.prepend(p),this.$panel.prepend(d),$("<span class='CE_panel-sidebar CE_pull-right'></span>")),o=(d.append(r),$("<span class='CE_panel-options CE_pull-right'></span>"));_.policyModeEnabled()&&(this.createPolicyCounter(o,e.parent),!1===m.readOnlyMode)&&!1===f.view.isInsideModal(e.parent)&&(o.append(`<span class="CE_policy-on-off"> <a class="CE_policy-off" id="${n}-policy-off"><span class="CE_esetico CE_esetico-circle_outline"></span></a> <a class="CE_policy-on" id="${n}-policy-on"><span class="CE_esetico CE_esetico-circle_full"></span></a> <a class="CE_policy-on-force" id="${n}-policy-on-force"><span class="CE_glyphicon CE_glyphicon-flash"></span></a> </span>`),a=!1,t=function(n){trace("group set policy to: "+n);var o=[];c.$component.find('div[class^="CE-"]').each(function(){var e=$(this).ceItemObject(),t=n!==h.policyStates.ignore;e&&e._policy&&!1===e.$component.ce_IsReadOnly()&&(t&&e.$component.ce_IsVisible()||!1==t)&&(!1==t&&e._policy.isActivated()&&e.$component.prop("isChangedFromDefault")&&e.$component.ce_IsVisible()&&(a=!0),e._policy.isSlave()?(t=e._policy.getMaster(),-1===jQuery.inArray(t,o)&&o.push(t)):e._policy.activateToState(n))}),trace("masters: "+o.length);for(var e=0;e<o.length;e++)o[e].activateToState(n)},o.find("a.CE_policy-on").click(function(){t(h.policyStates.apply)}).tooltip(this.getTooltipProperties(C.policyGroupApplyAllDescription,1200)),o.find("a.CE_policy-on-force").click(function(){t(h.policyStates.force)}).tooltip(this.getTooltipProperties(C.policyGroupForceAllDescription,1200)),o.find("a.CE_policy-off").click(function(){a=!1,t(h.policyStates.ignore),a&&_.nonEmptyArraySetToIgnoreWarning()}).tooltip(this.getTooltipProperties(C.policyGroupIgnoreAllDescription,1200))),o.append($('<span class="CE_info CE_info_group"><a><span class="CE_glyphicon CE_glyphicon-info-sign"></span></a></span>')),d.append(o),this.$panelHeading=d,this.$collapse=$("<div class='CE_panel-collapse CE_collapse'></div>"),"yes"!==s&&"yes"!==l?(this.$collapse.addClass("CE_in"),this.$panel.addClass("CE_panel_expanded")):this.$panel.addClass("CE_panel_collapsed"),this.$component.before(this.$panel),this.$panel.append(this.$collapse),this.$collapse.append(this.$component),this.setDescription(i),this.$collapse.collapse({toggle:!1})},f.CEGroup.prototype.getTooltipProperties=function(e,t){var n={container:"body",placement:m.directionLTR?"CE_left":"CE_right",html:!0,title:function(){return u.escapeHtmlText(e)}};return t&&(n.delay={show:t,hide:0}),n},f.CEGroup.prototype.setDescription=function(e){e=e||"";function t(){var e=o.children("a").data("bs.tooltip");e&&e.destroy()}var n,o=this.$panel.find(".CE_panel-options .CE_info.CE_info_group");e&&""!==e.trim()?(n=o.find("a"),t(),n.tooltip(this.getTooltipProperties(e)),this.$component.attr("description",e),this.$component.removeAttr("policy-description"),o.css("visibility","")):(o.css("visibility","hidden"),t(),this.$component.removeAttr("description"),this.$component.removeAttr("policy-description"))},f.CEGroup.prototype.getDescription=function(){return f.get_element_description(this.$component)||""},f.CEGroup.prototype.getLabel=function(){return f.get_element_label(this.$component)||""},f.CEGroup.prototype.setLabel=function(e){e=e||"";var t=this.$panel.find(".CE_panel-text");t.text(e),this.$component.attr("label",t.text()),this.$component.removeAttr("policy-label")},f.CEGroup.prototype.createPolicyCounter=function(e,t){var n,o,a=$('<span class="CE_count"></span>'),i=(e.append(a),this.$component.parents(".CE-group").first().data("PolicyCounter"));void 0===this.$component.attr("hidden")&&void 0===this.$component.attr("data-attr-hidden")||(i=null),_.auditLogEnabled()&&(a.hide(),n=this.$component.parents(".CE-group").first().data("PolicyHistoryCounter"),o=CE_HTML.audit.createHistoryIcon(!0),e.append(o),this.$component.data("PolicyHistoryCounter",new _.PolicyHistoryCounter(o,n))),this.$component.data("PolicyCounter",new _.PolicyCounter(this.$panel,a,t,i))},f.CEGroup.prototype.show=function(e){(e=void 0===e||e)?this.$panel.show():this.$panel.hide(),this.$component.prop("_hidden",!e)},f.CEGroup.prototype.isCollapsed=function(e){return!this.$collapse.hasClass("CE_in")},f.CEGroup.prototype.collapse=function(e,o){o=$.extend({},{accordion:!0,animate:!0},o);function t(e,t){var n=$.support.transition;o.animate||($.support.transition=!1),e.$collapse.collapse(t),$.support.transition=n}var n,a;"toggle"!=e&&"show"!=e||"yes"==(n=this).$component.attr("accordion")&&o.accordion&&n.isCollapsed()&&(a=n.$component.parent().closest(".CE_modal, .CE-group, #page-view")).find(".CE-group").filter(function(){var e=$(this);return"yes"==e.attr("accordion")&&a[0]==e.parent().closest(".CE_modal, .CE-group, #page-view")[0]&&e[0]!=n.$component[0]}).each(function(){t($(this).ceObject(),"hide")}),t(this,e)},f.CEGroup.prototype.expand=function(e,t){this.collapse((e=void 0===e||e)?"show":"hide",{accordion:t=void 0===t||t,animate:t})},f.CEGroup.prototype.contract=function(){this.expand(!1)},f.CEGroup.prototype.setGroupSideBar=function(e){var t=this.$panel.find(".CE_panel-sidebar");if(t.html(""),e&&e.length){e.sort(function(e,t){return(e.index||0)-(t.index||0)});for(var n=0;n<e.length;++n){var o=$("<span class='CE_bar-item'>").attr("order",e[n].index).text(e[n].label);e[n].bold&&o.addClass("CE_default"),e[n].icon&&o.prepend($("<div class='CE-icon'>").addClass(e[n].icon)),e[n].tooltip?o.tooltip(this.getTooltipProperties(e[n].tooltip,1200)):e[n].label&&o.attr("title",e[n].label||""),t.append(o)}}},f.CEGroup.prototype.clearVersionLabels=function(){this.$panelHeading.find(".CE_panel-versionlabels").html("")},f.CEGroup.prototype.createVersionLabels=function(t){function e(e){a.append(e)}function n(e){error("Version info group, path: "+i.$component.ce_GetInstancePath()+", error: "+e+", value: "+JSON.stringify(t))}var o=this.$component.attr("id"),a=this.$panelHeading.find(".CE_panel-versionlabels"),i=(a.length?a.html(""):(this.$panelHeading.append(`<span id="${o}-versions" class="CE_panel-versionlabels CE_pull-right"></span>`),a=this.$panelHeading.find(".CE_panel-versionlabels")),this),o=t.option;o&&r.createForOption(o,e,n),(o=t.optionOr)&&r.createForOptionOr(o,e,n)},f.CEGroup.prototype.getVersionLabels=function(){return this.$panelHeading.find(".CE_panel-versionlabels > .CE_label.CE_label-versioning")},f.CEGroup.prototype.hasVersionLabel=function(e){var t;return!!f.CEObject.prototype.hasVersionLabel.call(this,e)||(t=!1,this.$component.parentsUntil('.CE-view[window="yes"]',".CE-group").each(function(){return!f.CEObject.prototype.hasVersionLabel.call($(this).ceObject(),e)||!(t=!0)}),t)},f.CEGroup.prototype.copyVersionLabel=function(e){var t,n;this.hasVersionLabel(e)||(t=this.$component.attr("id"),(n=this.$panelHeading.find(".CE_panel-versionlabels")).length||(this.$panelHeading.append(`<span id="${t}-versions" class="CE_panel-versionlabels CE_pull-right"></span>`),n=this.$panelHeading.find(".CE_panel-versionlabels")),r.createCopyLabel(e,function(e){n.append(e)}))},f.CEGroup.prototype.consolideVersionLabels=function(){var e,n,o,t,a;trace("consolideVersionLabels"),this.$component.find(".CE-view[profile-screenID]").length||(e=this.getAllObjects().filter(function(e){return!e.isContainer()&&e.isVisible()&&f.is_version_label_holder(e.$component)}),n=this,o=[],e.length&&(a=(t=e.shift()).getVersionLabels()).length&&($.each(a,function(){var t=$(this);e.every(function(e){return e.hasVersionLabel(t)})&&(n.copyVersionLabel(t),o.push(t.data("versionInfoData").toString()))}),e.push(t)),this.$component.find(".CE-group").not(function(){return 1===$(this).parentsUntil(n.$component).filter(".CE-group").length}).each(function(){$(this).ceObject().consolideVersionLabels()}),o.map(function(t){e.map(function(e){e.removeVersionLabel(t)})}))}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.vars,CE_HTML.localization.getStrMap(),CE_HTML.core,CE_HTML.components,CE_HTML.versionLabels,CE_HTML.svg),(e=>{function i(e){var t=e.attr("ce-width")||"",n=e.attr("ce-valign")||"top",o=e.attr("ce-height")||"",e=e.attr("ce-halign")||"",a={table:"",cell:""};return"fill_parent"===t&&""===e&&(a.table+=" CE_max-parent-width"),"fill_parent"===o&&(a.table+=" CE_max-parent-height"),"top"===n?a.cell+="vertical-align: top;":"center"===n?a.cell+="vertical-align: middle;":"bottom"===n&&(a.cell+="vertical-align: bottom;"),"left"===e?a.table+=" CE_align-left":"center"===e?a.table+=" CE_align-center":"right"===e&&(a.table+=" CE_align-right"),a}e.create_horizontal_layout=function(e){var n,t,o,a;(e=$(e)).hasClass("table-main")||(n=i(e),t=e.children(".CE-left"),o=e.children(".CE-right"),a=t.length||o.length,e.addClass("table-main"),""!==n.table&&(e.addClass(n.table),e.parent().css("max-width","")),a?(a=function(e,t){e.addClass("table-cell"),e.children().wrap("<div class='table-cell'></div>"),e.children().wrapAll('<div class="CE-layout-horizontal table-main"><div class="table-row"></div></div>'),t&&e.children(".CE-layout-horizontal").addClass(t)},t.length&&a(t),o.length&&a(o,"CE_align-right"),-1===(e.attr("style")||"").search("width")&&e.addClass("CE_max-parent-width")):e.children("div").each(function(){var e,t=$(this);t.wrap("<div class='table-cell'></div>"),""!==n.cell&&(e=t.attr("style")||"",t.removeAttr("style"),t.parent().attr("style",n.cell+e),t.parent().css("max-width",""))}),e.children("div").wrapAll("<div class='table-row'></div>"))},e.create_vertical_layout=function(e,t){var n=i(e=$(e));""!==n.table&&e.addClass(n.table),e.children("div").each(function(){var e;""!==n.cell&&(e=$(this).attr("style")||"",$(this).attr("style",n.cell+e))}),t.addComponent(e)}})(CE_HTML.components),((m,l,C,s,_,f,v,c)=>{function y(e,t){e=e.data("bs.modal");e&&((t=void 0===t||t)?e.enforceFocus():e.stopEnforceFocus())}function E(){var t=!1;return $("#page-view").find(".CE_modal").each(function(){var e=$(this).data("bs.modal");return!e||!e.isShown||!(t=!0)}),t}function g(e){var n=!1,t=$(window.parent.document.body);!1===t.hasClass("CE_modal-open")&&(n="static"),t.children(".CE_tooltip").remove(),e.closest(".CE_modal").each(function(){$(this).modal({backdrop:n,keyboard:!1,show:!1});var e=$(this).data("bs.modal"),t=e.hide;e.hide=function(e){return t.call(this,e),m.stopEvent(e)},e.show(),C.screenLocker&&C.screenLocker.switchToFullScreen()})}function d(e){return!(!e.ce_IsReadOnly()&&!1!==e.ce_IsVisible()&&!1!==e.ce_IsEnabled())}function p(e,o){o=o||{},e.find(".CE-input-number").each(function(){var e,t,n=$(this);!1===d(n)&&(t=f.is_value_holder(n),e="yes"===n.attr("has-overriden-validation"),t=!1===(t&&void 0!==o[n.ce_GetInstancePath()])&&!1==e,n.ceObject().validate(t))})}function o(e,o,a,t,n){var i,r,s,e=$(e);return o=jQuery.isArray(o)?o:[],!1===e.hasClass("CE-view")&&(e=e.ce_GetParentView()),!1===_.policyModeEnabled()?[]:(i=function(e){e=e.data("PolicySwitch");if(e&&!1===e.isSlave()){if(a===l.policyFlagName)return e.getPolicyVal();if(a===l.policyArrayFlagName)return e.isActivated()?e.getArrayPolicyVal():null;if(a===l.policyArrayLocalFlagName)return e.isActivated()?e.getArrayLocalPolicyVal():null}return null},r=function(e,t,n){null!==t&&-1===jQuery.inArray(n,o)&&e.push({full_path:n,flag_name:a,value:t})},s=[],t(e).each(function(){var e=$(this);!1===e.ce_IsReadOnly()&&r(s,i(e),e.ce_GetInstancePath())}),n(e).each(function(){var e=$(this);!1===e.ce_IsReadOnly()&&!1===e.ce_IsIgnored()&&r(s,i(e),e.ce_GetInstancePath())}),s)}function i(e,t){return o(e,t,l.policyFlagName,function(e){return e.find('div[class^="CE-"][value="yes"][path_part]')},function(e){return e.find("div.CE-link[path_part]")})}function n(e,t,n){return o(e,t,n,function(){return $()},function(e){return e.find("div.CE-link[path_part]")})}function r(e,t){return n(e,t,l.policyArrayFlagName)}function u(e,t){return n(e,t,l.policyArrayLocalFlagName)}function h(e,t){function n(e,t){for(var n,o={},a=0,a=0;a<t.length;a++)void 0===(o=e[(n=t[a]).full_path])&&(e[n.full_path]={},o=e[n.full_path]),o[n.flag_name]=n.value}var o=i(e,t),a=r(e,t),e=u(e,t),t={};return n(t,o),n(t,a),n(t,e),t}function b(e,t,a){var i=$(e),r=void 0===t||t,s={};return i.find('div[class^="CE-"][value="yes"]').each(function(){var e,t,n,o=$(this);return jQuery.isFunction(a)&&a(o)||(t=r?o.ce_GetInstancePath():(e=o.ce_GetInstancePath(),n=i.ce_GetInstancePath(),void 0!==(t=i.attr("arrayIdx"))&&(n+="."+t),n===e.substr(0,n.length)?e.substr(n.length+1,e.length):e),null!==(n=o.ce_GetValue())?s[t]=n:trace("skipping "+t+" because of null value")),!0}),s}function a(e,t){for(var n=[],o={parent:e,functionNamespace:t},o=(C.readOnlyMode||void 0!==e.attr("readonly")||"yes"===e.attr("read-only")?n.push(f.createButton(s.buttonClose,{primary:!0,params:o},function(){trace("revokable window Close"),e.ce_CloseWindow()})):(n.push(f.createButton(s.buttonSave,{primary:!0,params:{...o,id:"default-action-bar-ok"}},function(){_.hasCustomScript(t,"onOk")?(trace("revokable window OK - custom script"),_.callCustomScript(t,"onOk",e.get(0))):(trace("revokable window OK"),e.ce_OnEditScreenOk())})),n.push(f.createButton(s.buttonCancel,{primary:!1,params:{...o,id:"default-action-bar-cancel"}},function(){_.hasCustomScript(t,"onCancel")?(trace("revokable window Cancel - custom script"),_.callCustomScript(t,"onCancel",e.get(0))):(trace("revokable window Cancel"),e.ce_CloseWindow())}))),$('<div class="CE_modal-footer"><div class="CE-action-bar CE_inline-block"><div class="CE_pull-right"></div></div></div>')),a=o.find(".CE_pull-right"),i=0;i<n.length;i++)a.append(n[i]);var r=e.closest(".CE_modal-content");r.length&&r.append(o)}function S(e){return 0<e.closest(".CE_modal").length}function t(n,e){function t(e){n.find(".CE_panel > .CE_panel-heading > .CE_panel-title .CE_panel-text,table.CE_table.CE_configuration .CE_option-label .CE_option-label-panel .CE_col-label,table.CE_table.CE_configuration .CE_option-label,table.CE_table.CE_configuration .CE_option > .CE-text,table.CE_table.CE_configuration .CE_option > .CE-link a,.CE-header .CE_header-text").filter(function(e,t){return 0===$(t).find(".CE_option-label-panel").length}).each(e)}function o(e){var t;_.policyModeEnabled()&&(t=function(e){c.showNonAppliedSettings(n.ceContainerObject(),e),C.showOnlyAppliedModeTemporaryDisabled=e,C.showOnlyAppliedMode=!e},!0===C.showOnlyAppliedMode&&!1===e?t(!0):!0===C.showOnlyAppliedModeTemporaryDisabled&&!0===e&&t(!1))}function a(e){var t=e.prop("highlightBackupHtml")||"";t&&e.html(t),e.removeProp("highlightBackupHtml")}var i,r;return void 0===e?(o(!0),t(function(){a($(this))}),$("#page-view").removeProp("highlightScrolledToText"),l.searchStates.expresionNotFound):(i=new f.menu.SearchExpresion(e)).isValid()?(r=$(),t(function(){var e=$(this),t=e.text(),t=i.emphasizeText(t);t.searchResult.found?(0===r.length&&(r=e),e.prop("highlightBackupHtml",e.prop("highlightBackupHtml")||e.html()),e.html(t.emphasizedTextAsHTML),e.parents(".CE-group").each(function(){$(this).ceObject().expand(!0,!1)})):a(e)}),r.length?(o(!1),e=($(".CE-menu").ce_GetValue()||"")+"_"+e,$("#page-view").prop("highlightScrolledToText")!==e&&(_.scrollToElement(r),$("#page-view").prop("highlightScrolledToText",e)),l.searchStates.expresionFound):l.searchStates.expresionNotFound):(w(n),l.searchStates.expresionInvalid)}function w(e){t(e)}function I(t,n,o){function a(){$(window.parent.document.body).children(".CE_tooltip").remove(),"page-view"!==t.attr("id")&&!1!==E()||$(window.parent.document.body).removeClass("CE_modal-open")}var e,i,r;0===t.length?(trace("cleanView: view does not exists, check it!!"),a()):(r=function(){a(),t.removeData("PolicySwitch"),t.removeData("ReleatedLinkObj"),t.removeData("ignoredVersionLabels"),t.removeData("readOnlyMode"),o||t.find('div[class^="CE-"][data-provider]').each(function(){_.destroyArrayFilter($(this))});var e=t.attr("id");_.delViewAndCustomSripts(t,e),_.deleteCustomSripts(e),t.find('.CE-view, .CE-tabs[dynamic-view="yes"] .CE-tab-page.CE_active').each(function(){_.deleteCustomSripts($(this).attr("id"))}),"yes"===t.attr("window")&&t.parent().hasClass("CE_modal-body")&&(t.closest(".CE_modal-content").find(".CE_modal-footer").remove(),P(t.closest(".CE_modal-dialog"))),t.find("div.CE-input-datetime").each(function(){$(this).ceItemObject().destroy()}),t.html(""),t.removeAttr("arrayIdx"),delete t.get(0).pageLoaded,delete t.get(0).pageLoading,delete t.get(0).transactionRollback,delete t.get(0).transactionControl,delete t.get(0).editScreenOk,delete t.get(0).screenName,n&&jQuery.isFunction(n)&&n()},o?r():(i=r,(e=t).get(0).transactionControl?(r=new CERPCAsync,e.get(0).transactionRollback?(r.onComplete=function(){this.error&&error("TransactionSnapshotRestore failed."),i&&i(),delete e.get(0).transactionRollback,delete e.get(0).transactionControl},r.ce_TransactionSnapshotRestore(ce_GetTransactionID())):(r.onComplete=function(){this.error&&error("TransactionSnapshotRemove failed."),i&&i(),delete e.get(0).transactionRollback,delete e.get(0).transactionControl},r.ce_TransactionSnapshotRemove(ce_GetTransactionID()))):i&&i()))}function L(e,t){var n,o,a,i,r,s,l,c,d=e.height()+t;e.is(":hidden")||(e.hasClass("CE-tabs")?(s=d,(r=e).find(".CE_tab-content").setStyle("max-height",""),l=r.find("> .CE_tab-content > .CE-tab-page.CE_tab-pane"),c=r.contentTop(),l.each(function(){var e=$(this),t=e.find("> *:visible:last");t.length&&(t=t.offset().top+t.outerHeight()-c,t+=e.parent().contentToMarginBottomOffset(r),L(e,s-t))})):e.hasClass("CE-layout-horizontal")?(o=d,l=(n=e).find("> .table-row > .table-cell > .CE_max-parent-height"),a={},i=n.contentTop(),n.find("> .table-row:last-child > .table-cell > *:last-child:visible").each(function(){var e=$(this),t=e.parent().index();a[t]=e.offset().top+e.outerHeight()-i,a[t]+=e.parent().contentToMarginBottomOffset(n)}),l.each(function(){var e=$(this),t=o-a[e.parent().index()];L(e,t)})):e.hasAnyClassFrom(["CE-layout-vertical","CE-view","CE-tab-page"])?O(e,d):e.ceObject()?e.ceObject().resize(t):e.setStyle("height",d+"px"))}function O(e,t){e.setStyle("max-height","none");var n,o=e.children(".CE_max-parent-height").add(e.find("> .CE_configuration .CE_option > .CE_max-parent-height")),a=e.contentTop(),i=e.find("> *:visible:last");0!==i.length&&(i=i.offset().top+i.outerHeight(),n=(t-(i=(i-=a)+e.contentToMarginBottomOffset()))/o.length,o.each(function(){L($(this),n)}))}function D(e,t){var e=e.children(".CE_modal-content"),n=e.children(".CE_modal-body"),o=n.children(".CE-view");t?(n.find("[style-backup]").add(n).restoreStyles(),(t=n.find(".CE-tab-page.CE_tab-pane.CE_active")).find("div").add(t).css("opacity","")):(t=e.find("> *:visible:last")).length&&(O(o,(t=n.height()+(e.offset().top+e.outerHeight()-(t.offset().top+t.outerHeight())-e.contentToMarginBottomOffset()))+n.contentTop()-o.offset().top),n.setStyle("height",t+n.contentToMarginOffset()+"px"))}function T(e){e.addClass("CE_modal-dialog-maximized"),D(e,!1),D(e,!1)}function P(e){D(e,!0),e.removeClass("CE_modal-dialog-maximized")}C.ce_plugins.viewresize={on:function(){var t=0;$(_.cex_window()).on("resize.ce.view",function(){var e=$(_.cex_window()).width();t!==e&&($(".CE_modal-dialog.CE_modal-dialog-maximized").each(function(){D($(this),!1)}),$(".CE-data-grid").each(function(){$(this).ceObject().layout()}),_.fixToolbarPanelOverflowIfAny(),t=e)})},off:function(){$(_.cex_window()).off("resize.ce.view")}},f.create_view=function(e,l,t){var c,n,o,a,i,e=$(e),r=f.get_element_label(e)||"",s=e.attr("window"),d=e.attr("id")||"",p=(""===d&&(d=m.makeid(),e.attr("id",d)),_.applyComponentAttributes(e),_.transformCeEvent(e,t,e.attr("data-ce-onclose")||"")),u=_.transformCeEvent(e,t,e.attr("data-ce-onclose-ok")||""),h=_.transformCeEvent(e,t,e.attr("data-ce-onclose-cancel")||"");_.removeStandartEvents(e),"yes"===s?(c=$('<div id="'+(d+"-modal")+'" class="CE_modal" tabindex="-1" role="dialog"></div>'),t=$("<div class='CE_modal-dialog'></div>"),s=$("<div class='CE_modal-content'></div>"),d=$("<div class='CE_modal-header'></div>"),n=$('<button type="button" class="CE_close" data-dismiss="modal" aria-hidden="true"></button>'),o=$('<button type="button" class="CE_maximize"></button>'),a=$('<button type="button" class="CE_help"></button>'),i=$("<h4 class='CE_modal-title'></h4>"),""!==r?i.text(r):i.html(" "),c.append(t),t.append(s),s.append(d),d.append(n),d.append(o),v.isContextSensitive()&&d.append(a),d.append(i),t.wrapAll("<div class='CE_modal-locker'></div>"),r=$("<div class='CE_modal-body'></div>"),s.append(r),e.before(c),r.append(e),(n=d.find(".CE_maximize")).length&&n.click(function(e){$modal=$(this).closest(".CE_modal-dialog"),$(this).blur(),($modal.hasClass("CE_modal-dialog-maximized")?P:T)($modal)}),(o=d.find(".CE_help")).length&&o.click(function(e){$(this).blur(),v.displayHelp(v.getIDH($(this).closest(".CE_modal")))}),e.data("updateWebConsoleCSS",function(){var e,t,n,o="auto";!0===C.readOnlyMode&&(e=c.closest(".content")).length&&(o=m.msieversion()?"0":"auto",t=e.siblings(".era_nav_panel"),n=e.closest(".clientDetailsPopup"),e.css("z-index",o),t.css("z-index",o),n.css("overflow","visible")),$(".mainSplit",window.parent.document).css("z-index",o)}),c.on("hidden.bs.modal",function(e){trace($(this).attr("id")+" dlg hidden");var t,o=c.find(".CE_modal-body").first().children(".CE-view"),n=o.attr("auto-save")||"yes",a=o.attr("window-revocable")||"no",i=o.get(0).editScreenOk,r=o.data("PolicySwitch"),s=o.data("ReleatedLinkObj");return"yes"===n&&"yes"!==a&&(n=o,a=$(n).closest(".CE_modal-content").children(".CE_modal-header").children(".CE_close").get(0),_.saveScreenIfNeeded(n,n,a))?(trace("modalDlgSaving"),g(o)):(I(o,function(){var e=$(l);if(i){_.eval_str.call(e.get(0),u);var t,n=o.ce_Prop("onclose_ok");if(jQuery.isFunction(n))try{n.call(e.get(0))}catch(e){error(e)}r&&r.activate(),s&&(t=s.$component.ce_GetInstancePath(),(n=new CERPCAsync).onComplete=function(){this.error||void 0===this.result[t]?error("Failed to refresh isChangedFromDefault for link: "+t+"!"):s.$component.prop("isChangedFromDefault",!!this.result[t])},n.ce_IsChangedFromDefault([t],ce_GetTransactionID())),e.ceContainerObject().triggerChange(o.ceContainerObject())}else _.eval_str.call(e.get(0),h);_.eval_str.call(e.get(0),p)}),!1===E()?($(window.parent.document.body).removeClass("CE_modal-open"),!0===C.readOnlyMode&&(a=(n=c.closest(".content")).siblings(".era_nav_panel"),t=n.closest(".clientDetailsPopup"),n.css("z-index","1"),a.css("z-index","2"),t.css("overflow","")),$(".mainSplit",window.parent.document).css("z-index","2"),i&&C.eraChangeNotifier.notifyChange()):y(c.closest(".CE_modal.CE_in"),!0)),m.stopEvent(e)})):!_.policyModeEnabled()||"page-view"===e.attr("id")||e.attr("policy-master-id")||S(e)||(a=e.parentsUntil('.CE-view[window="yes"]',".CE-view[policy-master-id]:first")).length&&(trace('Inherited policy-master-id: "'+(i=a.attr("policy-master-id")||"")+'"'),e.attr("policy-master-id",i))},$.extend(f.view,{isAnyModalOpened:E,maximizeModal:T,resizeModalDialog:D,init_window:function(e,t){"yes"===e.attr("window-revocable")&&0===e.closest(".CE_modal-content").children(".CE_modal-footer").length&&a(e,t),(t=e.ceContainerObject().objects().length?e.ceContainerObject().objects()[0]:null)&&t instanceof f.CEHeader&&(e.closest(".CE_modal-content").children(".CE_modal-header").children(".CE_modal-title").text(t.getText()),t.$component.remove(),t._layout.row.remove(),0===t._layout.table.find("tr").length)&&t._layout.table.remove(),t=e.data("updateWebConsoleCSS"),jQuery.isFunction(t)&&t()},show_window:g,getPathPart:function(e,t){var n=e.attr("path_part")||"",o=e.attr("array")||"",a=e.attr("arrayIdx")||"1";if(_.auditLogEnabled()){if(e.ce_Prop("history_flag"))return t=t||(e.ce_Prop("history_flag")===l.historyFlags.removed?"history_path_part":"history_current_path_part"),e.prop(t)||n;e.ce_Prop("selected_history_data")&&(a=((t=e.ce_Prop("selected_history_data")).flag===l.historyFlags.removed?t.pastIndex:t.currentIndex).toString()||a)}return"yes"===o&&(""===n?n=a:n+="."+a),n},transactionSnapshotSave:function(e,t){var n;e.get(0).transactionControl?t():((n=new CERPCAsync).onComplete=function(){this.error?error("TransactionSnapshotSave failed."):(e.get(0).transactionControl=!0,e.get(0).transactionRollback=!0,t())},n.ce_TransactionSnapshotSave(ce_GetTransactionID()))},screenGetInvalid:function(e){var t=[];return $("tr.CE_has-error",e).each(function(){var e=$(this).find("> td.CE_option > div");e.ce_IsInvalid()&&t.push(e)}),t},screenValidateAndSaveEditableValues:function(e,t,n){function o(){_.callCustomScript(e.attr("id"),"onValidationFinished",e.get(0)),t&&jQuery.isFunction(t)&&t()}var a,i,r=b(e,!0,d);!1===jQuery.isEmptyObject(r)?((a=new CERPCAsync).onComplete=function(){this.error?(error("screen validate failed, rpc error"),n&&jQuery.isFunction(n)&&n(this.error)):(e.ce_SetValidationResult(this.result),p(e,this.result),o())},"yes"===(e.attr("auto-save")||"yes")?(i=!1===_.policyModeEnabled()||S(e)?null:h(e),a.ce_ValuesSet(r,C.transactionID,null,i)):a.ce_Validate(r,C.transactionID)):(p(e),o())},screenPerformClientSideValidation:p,getScreenProperties:function(e){var t,e=$(e),n=(!(t={hasValueHolders:0<e.find('div[class^="CE-"][value="yes"]').length-e.find('div[class^="CE-"][value="yes"][readonly]').length,hasPolicyFlagsHolders:!1})===(n=e).hasClass("CE-view")&&(n=e.ce_GetParentView()),!1===_.policyModeEnabled()||S(n)||(t.hasValueHolders||0<e.find("div.CE-link[path_part]").length-e.find("div.CE-link[path_part][readonly]").length)&&(t.hasPolicyFlagsHolders=!0),t);return n.needSave=n.hasValueHolders||n.hasPolicyFlagsHolders,n},getScreenPolicyFlags:i,getScreenPolicyArrayFlags:r,getScreenPolicyArrayLocalFlags:u,getScreenFlags:h,getScreenValues:b,addDefaultActionBar:a,isInsideModal:S,isLoadingInProgress:function(e){return e&&e.get(0).pageLoading||!1},screenHighlightText:t,screenClearHighlight:w,screenExpandFirstGroup:function(e){function t(e){e.find(".CE-group").not(".CE-group .CE-group").each(function(){var e=$(this);return!e.ce_IsVisible(!0)||"yes"!==e.attr("accordion")||(e.ceObject().expand(!0,!1),!1)})}var n,o=e.closest(".CE_modal-body");o.length?(o=o.find(".CE-view:first"),e.get(0)===o.get(0)?(n=o.find(".CE-tabs")).length?"yes"!==n.attr("dynamic-view")&&n.find(".CE-tab-page").each(function(){t($(this))}):t(o):e.hasClass("CE-tab-page")&&t(e)):"page-view"!==e.attr("id")&&!e.find("#page-view").length||t($("#page-view"))},clean:I,cleanNoRPC:function(e){I(e,void 0,!0)},enforceFocus:y,enableCloseBtn:function(e,t){t=void 0===t||t,e.find(".CE_modal-header > button.CE_close").toggleClass("CE_disabled",!t)},getIgnoredVersionLabels:function(e){var t=e.data("ignoredVersionLabels")||$();return e.parents('.CE-view[window="yes"]').each(function(){t=t.add($(this).data("ignoredVersionLabels")||$())}),t}})})(CE_HTML.utils,CE_HTML.consts,CE_HTML.vars,CE_HTML.localization.getStrMap(),CE_HTML.core,CE_HTML.components,CE_HTML.onlineHelp,CE_HTML.onlyApplied),((C,_,r,h,f,o)=>{function v(e,o){var a=3,i=(o=$.extend({},{partialSearchAllowed:!0},o),(e||"").substr(0,255).trim().replace(RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g"),"\\$&").replace(/\s+/g," ").split(" ")),t=(()=>{for(var e=0,t=0;t<i.length;t++)i[t].length>=a&&e++;return e})(),r=0<t,s=r?(()=>{for(var e="",t=0;t<i.length;t++)e+=i[t]+"\\s*";return e=e.slice(0,e.length-"\\s*".length),new RegExp(e,"gi")})():null,l=r&&o.partialSearchAllowed?(()=>{for(var e="",t=0;t<i.length;t++){var n=i[t];n.length>=a&&(e+=n+"|")}return e=e.slice(0,e.length-"|".length),new RegExp(e,"gi")})():null,c=r?new RegExp("(<Em>)|(</Em>)","g"):null;this.searchText=function(e){var t,n={occurrences:{completely:0,partially:0},found:!1};return r&&"string"===$.type(e)&&e.length&&((t=e.match(s))?(n.found=!0,n.occurrences.completely+=t.length):o.partialSearchAllowed&&(t=e.match(l))&&(n.found=!0,n.occurrences.partially+=t.length)),n},this.emphasizeText=function(e){var t,n={searchResult:this.searchText(e),emphasizedTextAsHTML:""};return n.searchResult.found&&(t=n.searchResult.occurrences.completely?s:l,n.emphasizedTextAsHTML=e.replace(t,function(e){return"<Em>"+e+"</Em>"}),n.emphasizedTextAsHTML=C.escapeHTMLSpecials(n.emphasizedTextAsHTML),n.emphasizedTextAsHTML=n.emphasizedTextAsHTML.replace(c,function(e){return{"<Em>":"<em>","</Em>":"</em>"}[e]||e})),n},this.isValid=function(){return r},this.getWordsCount=function(){return t},this.getMinLength=function(){return a},this.getMaxLength=function(){return 255}}f.CEMenu=function(e,t){f.CEObject.call(this,e,t),e.html("<ul class='CE_nav CE_nav-list'></ul>"),h.policyModeEnabled()||e.addClass("CE_no-policy"),this.$ul=e.children(),this._current_selection_eventtarget=void 0,this._menuCache={},this._filtered=!1,this._topCounter=new h.PolicyCounter,this._topHistoryCounter=new h.PolicyHistoryCounter,h.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),h.setCeEvents(e,e),t.componentsContainer.addComponent(e)},f.CEMenu.prototype=C.cloneObject(f.CEObject.prototype),f.CEMenu.prototype.menuSelectChange=function(e){var t,n=e.get(0);this._current_selection_eventtarget&&this._current_selection_eventtarget===n||(t=$(),!e.attr("data")&&(e.next("ul.CE_nav").find("li").each(function(){var e=$(this);return!1!==e.hasClass("CE_filtered_not_applied")||!e.children("a").attr("data")||(t=e.children("a"),!1)}),0<t.length)?t.click():(this._current_selection_eventtarget=n,this.$component.find("a.CE_active").removeClass("CE_active"),e.addClass("CE_active"),this.$component.find("a.CE_child_active").removeClass("CE_child_active"),e.parents("ul.CE_nav").siblings("a").addClass("CE_child_active"),this.$component.find("ul.CE_nav.CE_in").removeClass("CE_in"),e.parents("ul.CE_nav").addClass("CE_in"),e.siblings("ul.CE_nav").addClass("CE_in"),selectedItem=$(this._current_selection_eventtarget).attr("data"),this.$component.attr("ce_SelectedItem",selectedItem),f.view.clean($("#page-view")),this.$component.change()))},f.CEMenu.prototype.clearSelection=function(e){this._current_selection_eventtarget&&(this._current_selection_eventtarget=void 0,this.$component.removeAttr("ce_SelectedItem"),this.$component.find("a.CE_active").removeClass("CE_active"),this.$component.find("ul.CE_in").removeClass("CE_in"),f.view.clean($("#page-view")))},f.CEMenu.prototype.showNotApplied=function(e){e=void 0===e||e,this.$component.find("li.CE_filtered_not_applied").toggleClass("CE_filtered_not_applied_disabled",e)},f.CEMenu.prototype.setDataProviderData=function(e,t){this.hideMenu(),this.$ul.html(""),this._filtered=!1,this._menuCache={};var i=this;jQuery.each(e,function(e){var t,n,o=$("<a><div class='CE_menu-item-text'></div></a>"),a=(o.children(".CE_menu-item-text").text(this.value.label),$("<li></li>"));a.append(o),a.attr("id",this.value.id),o.attr("data",this.value.data),o.attr("tooltip",this.value.tooltip),o.click(function(e){var t=$(e.target).closest("a");return i._current_selection_eventtarget&&i._current_selection_eventtarget===t.get(0)||h.saveScreenIfNeeded($("#page-view"),this,this)?C.stopEvent(e):(i.menuSelectChange(t),!0)}),(""===(this.value.parent_id||"")?i.$ul:(0===(n=(t=$("#"+C.escapeJQuerySelector(this.value.parent_id))).children("ul")).length&&(t.append("<ul class='CE_nav CE_nav-list'></ul>"),n=t.children("ul")),n)).append(a),h.policyModeEnabled()&&(o.html('<div class="table-main"><div class="table-row"><div class="table-cell CE_menu-item-text"></div><div class="table-cell CE_menu-item-counter"></div></div></div>'),o.find(".table-cell.CE_menu-item-text").text(this.value.label),t=$('<span class="CE_count"></span>'),o.find(".table-cell.CE_menu-item-counter").append(t),n=o.closest("ul").closest("li").children("a"),h.auditLogEnabled()&&(t.hide(),a=CE_HTML.audit.createHistoryIcon(),o.find(".table-cell.CE_menu-item-counter").append(a),o.data("PolicyHistoryCounter",new h.PolicyHistoryCounter(a,n.length?n.data("PolicyHistoryCounter"):i._topHistoryCounter))),o.data("PolicyCounter",new h.PolicyCounter(o,t,$("#page-view"),n.length?n.data("PolicyCounter"):i._topCounter)))}),this.shouldLoadMenuData()?void 0===this.$component.attr("data-provider")&&this.createAdditionalDataProviderRequest().createAsyncRpc().call():this.showMenu()},f.CEMenu.prototype.shouldLoadMenuData=function(){return!1===r.screenDebugModeEnabled||r.showOnlyAppliedMode},f.CEMenu.prototype.hasAdditionalDataProviderRequest=function(){return this.shouldLoadMenuData()},f.CEMenu.prototype.createAdditionalDataProviderRequest=function(){var n=this;return{createAsyncRpc:function(){return{call:function(){var e=this,t=h.policyModeEnabled();n.loadMenuData(n.$ul.find("li"),t,function(){t&&r.showOnlyAppliedMode&&n.$ul.find("a").each(function(){var e=$(this),t=e.data("PolicyCounter");t&&!1===t.isAnyActivated()&&e.parent("li").addClass("CE_filtered_not_applied")}),n.showMenu(),e.error=null,e.result=null,e.onComplete&&e.onComplete()})}}},processResponse:function(){}}},f.CEMenu.prototype.showMenu=function(){this.$ul.animate({opacity:1},300)},f.CEMenu.prototype.hideMenu=function(){this.$ul.css("opacity",0)},f.CEMenu.prototype.setValue=function(t){this.$ul.find("li > a").each(function(){var e=$(this);return e.attr("data")!==t||(e.click(),!1)})},f.CEMenu.prototype.getValue=function(){return this.$component.attr("ce_SelectedItem")},f.CEMenu.prototype.readOnly=function(e){},f.CEMenu.prototype.getPolicyCounter=function(){return $(this._current_selection_eventtarget).data("PolicyCounter")},f.CEMenu.prototype.getPolicyHistoryCounter=function(){return h.auditLogEnabled()?$(this._current_selection_eventtarget).data("PolicyHistoryCounter"):null},f.CEMenu.prototype.loadMenuData=function(e,c,t){function n(){jQuery.isFunction(t)&&t()}var o,d,p=this,u={},e=(e.each(function(){var e,t=$(this),n=t.attr("id")||"",o=t.children("a").attr("data")||"";return""===o?trace("MenuData: no menu data assigned skipping..."):(void 0===p._menuCache[n]&&""!==n||(""===n?trace("MenuData: no menu item ID assigned...generating new one"):error("MenuData: duplicit menu item ID...generating new one"),e="menu_item_"+C.makeid(),t.attr("id",e),n=e),p._menuCache[n]={},u[o]=t),!0}),Object.keys(u));0===e.length?(trace("MenuData: no screens to load..."),n()):(o=new CERPCAsync,d={values:!(o.onComplete=function(){var r,s,l,a,i;this.error?(error("MenuData: failed to load menu screens"),n()):(trace("MenuData: menu screens loaded succesfully"),r=function(e,t){return t=t||{},e.find('div[class^="CE-"]').filter(function(){var e=$(this);return!(!e.ce_IsIgnored()&&void 0===e.attr("hidden"))||(t[e.ce_GetInstancePath()]||_.visibilityStates.visible)===_.visibilityStates.hidden}).remove(),e},s=function(n,e,t){var o;c&&t&&(o=e.children("a").data("PolicyCounter"),jQuery.each(t,function(e,t){(t[_.policyFlagName]||_.policyStates.ignore)!==_.policyStates.ignore&&h.getComponents(e,n).filter('div[class^="CE-"][value="yes"][path_part], div.CE-link[path_part]').length&&o.increment()}))},l=function(n,e,t){var o;c&&(o=e.children("a").data("PolicyHistoryCounter"),jQuery.each(t??[],function(e,t){t&&(t=h.getComponents(e,n),o)&&t.filter('div[class^="CE-"][value="yes"][path_part], div.CE-link[path_part]').length&&o.increment()}))},a=function(o,a,e){o.html(e.body||""),r(o,e.content.dependencyCheck),h.auditLogEnabled()?l(o,a,e.content.transactionChanges):s(o,a,e.content.flags);function i(n,e){$.each(e,function(e,t){n.find('div.CE-view[screenID="'+t.screenID+'"]').each(function(){var e=$(this);return e.ce_GetInstancePath()!==t.path_part||(e.html(t.data.body),r(e,t.data.content.dependencyCheck),h.auditLogEnabled()?l(o,a,t.data.content.transactionChanges):s(e,a,t.data.content.flags),i(e,t.data.content.nestedScreens),!1)})})}i(o,e.content.nestedScreens)},i=[],jQuery.each(this.result,function(e,t){var o=u[e],e=$('<div class="CE-view"></div>');a(e,o,t),e.find("div.CE-view[profile-screenID]").each(function(){var t=$(this),n=t.attr("profile-screenID"),e={createAsyncRpc:function(){var e=new CERPCAsync({autoCallEnabled:!1});return e.ce_ScreenHtmlGenerate(n,t.ce_GetInstancePath(),ce_GetTransactionID(),d),e},processResponse:function(e){e=e[n];e?a(t,o,e):error("MenuData: profiles screen "+n+" request but not loaded...")}};i.length?i[0].push(e):i.push([e])}),p._menuCache[o.attr("id")]={view:e,li:o}}),i.length?(trace("MenuData: loading profile screens..."),CE_HTML.core.processSynchronously(i,function(){trace("MenuData: profiles screens loaded succesfully."),n()})):n())}),dataProviders:!1},c&&(d.flags=[CE_HTML.consts.policyFlagName]),h.auditLogEnabled()&&(d.transactionChanges=!0),o.ce_ScreenHtmlGenerate(e,"",ce_GetTransactionID(),d))},f.CEMenu.prototype.refreshMenuData=function(n,e){var o,a,i;!1===r.readOnlyMode&&(o=$(),a=this._current_selection_eventtarget?$(this._current_selection_eventtarget).parents("li:last").get(0):void 0,n=jQuery.isArray(n)?n:[],(i=this).$ul.find("a").each(function(){var e=$(this),t=e.parents("li:last");return t.get(0)===a||n.length&&-1===jQuery.inArray(t.attr("id"),n)||(e.attr("data")||"").length&&(t=e.parent("li"),o=o.add(t.get(0)),(e=e.data("PolicyCounter"))&&e.reset(),delete i._menuCache[t.attr("id")]),!0}),this.loadMenuData(o,h.policyModeEnabled(),e))},f.CEMenu.prototype.setFilter=function(e){if($.isEmptyObject(this._menuCache))return error("need to load menu data first..."),_.searchStates.expresionNotFound;var o=new v(e);if(o.isValid()){var t=Object.keys(this._menuCache),n=!1;this.$ul.find("a").removeData("filterScore");for(var a,i,r,s,l=0;l<t.length;l++){var c,d,p=t[l],u=this._menuCache[p].view,h=this._menuCache[p].li.children("a"),u=(e=>{var n={occurrences:{partially:0,completely:0},found:!1};return e.find('div[class^="CE-"]').not(".CE-view").each(function(){var e=$(this),t=f.get_element_label(e)||"",e=e.hasAnyClassFrom(["CE-text","CE-header","CE-link"])?e.text():"",t=o.searchText(t),e=o.searchText(e);(t.found||e.found)&&(n.occurrences.completely+=t.occurrences.completely+e.occurrences.completely,n.occurrences.partially+=t.occurrences.partially+e.occurrences.partially,n.found=!0)}),n})(u),p=(u.found&&(trace("found - inside screen "+p+", completelyOccurrences: "+u.occurrences.completely+", partiallyOccurrences: "+u.occurrences.partially),n=!0),o.getWordsCount()),m=u.occurrences.partially,u=(m+=Math.min(12,u.occurrences.completely*(1<p?2*p:1)),h.data("filterScore"));void 0===u&&(c=(p=h.find("div.CE_menu-item-text")).text(),(d=o.emphasizeText(c)).searchResult.found?(trace("found - "+(d.searchResult.occurrences.completely?"completely":"partially")+" inside menu text, screenText: "+c),n=!0,m+=d.searchResult.occurrences.completely?12:Math.min(12,3*d.searchResult.occurrences.partially),p.html(d.emphasizedTextAsHTML)):p.html(C.escapeHTMLSpecials(c))),m+=u||0,h.data("filterScore",m)}return n?(this.toggleOnlyApplied(!1),a=0,i=$(),this.$ul.find("a").each(function(){var e=$(this),t=e.data("filterScore")||0,n=!1;e.nextAll("ul").find("a").each(function(){return!$(this).data("filterScore")||!(n=!0)}),t||n?(e.parent("li").removeClass("CE_filtered_not_found"),a<t&&(a=t,i=e)):e.parent("li").addClass("CE_filtered_not_found")}),(r=$("#page-view")).attr("highlight-text",e),(s=this.$ul.find("a.CE_active")).length&&s.get(0)===i.get(0)?f.view.screenHighlightText(r,e):i.click(),this._filtered=!0,_.searchStates.expresionFound):(this.resetFilter(),_.searchStates.expresionNotFound)}return this.resetFilter(),_.searchStates.expresionInvalid},f.CEMenu.prototype.toggleOnlyApplied=function(e){var t,n;h.policyModeEnabled()&&(t=this,n=function(e){t.showNotApplied(e),o.showNonAppliedSettings($("#page-view").ceContainerObject(),e),r.showOnlyAppliedModeTemporaryDisabled=e,r.showOnlyAppliedMode=!e},!0===r.showOnlyAppliedMode&&!1===e?n(!0):!0===r.showOnlyAppliedModeTemporaryDisabled&&!0===e&&n(!1))},f.CEMenu.prototype.resetFilter=function(){var e;this._filtered&&((e=this.$ul.find("li")).not(".CE_filtered_not_found").find(".CE_menu-item-text").each(function(){var e=$(this);e.html(C.escapeHTMLSpecials(e.text()))}),e.removeClass("CE_filtered_not_found"),this.toggleOnlyApplied(!0),(e=$("#page-view")).removeAttr("highlight-text"),f.view.screenClearHighlight(e),this._filtered=!1)},f.CEMenu.prototype.isAnyActivated=function(){return this._topCounter.isAnyActivated()},f.menu={SearchExpresion:v}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.vars,CE_HTML.core,CE_HTML.components,CE_HTML.onlyApplied),((l,c,d)=>{function s(a,i,e,t){var r,n,o,s;e=parseInt(e,10),isNaN(e)?error("Failed to create dynamic tab. Index is not a number."):(n=d.get_element_label(i)||"",r=i.attr("policy-screenid")||i.attr("screenid"),o=i.attr("id")||"cex_tab_"+r.replace(/\./g,"_")+l.makeid(),(n=$('<li><a href="#'+o+'" data-toggle="tab">'+n+"</a></li>")).find("a").click(function(e){var t,n=$(this),o=a.find("div.CE-tab-page.CE_active");return c.saveScreenIfNeeded(o,this,this,n.data("ignoreInvalid"))?l.stopEvent(e):(t=n,d.view.clean(o,function(){var e=t.data("activationCompleteCallback");c.cex_load_screen(r,i,e),t.removeData("activationCompleteCallback"),t.removeData("ignoreInvalid")}),!0)}),i.addClass("CE_tab-pane"),i.attr("id",o),o=a.children("ul.CE_nav-tabs"),s=a.children("div.CE_tab-content"),0===e?(o.prepend(n),s.prepend(i)):(--e>=o.children().length&&(e=o.children().length-1),$(o.children()[e]).after(n),$(s.children()[e]).after(i)),t&&(n.addClass("CE_active"),i.addClass("CE_active"),c.cex_load_screen(r,i)))}function o(e,t){var n=e.children("ul.CE_nav-tabs"),e=e.children("div.CE_tab-content");return t=parseInt(t,10),isNaN(t)||t<0||t>=n.children().length?$():$(n.children()[t]).add(e.children()[t])}d.create_tabs=function(e){var a=$(e),e=a.attr("hidden-navigation")||"no",t=a.children("div.CE-tab-page"),i=(a.prepend("<ul class='CE_nav-tabs'></ul>"),a.append("<div class='CE_tab-content'></div>"),a.children("ul")),r=a.children("div.CE_tab-content");"yes"===e&&i.hide(),c.applyComponentAttributes(a),a.attr("style")&&(trace("removing user style for CE-tabs.."),a.removeAttr("style")),c.auditLogEnabled()&&a.ce_GetParentView().ce_Prop("selected_history_flag")&&a.ce_Prop("popup_tab_history_flag",a.ce_GetParentView().ce_Prop("selected_history_flag")),t.each(function(e){var t=$(this),n=t.attr("policy-screenid")||t.attr("screenid"),o=0===e;t.attr("style")&&(trace("User style removed from Tab-page"),t.removeAttr("style")),c.auditLogEnabled()&&a.ce_Prop("popup_tab_history_flag")&&t.ce_Prop("popup_tab_history_flag",a.ce_Prop("popup_tab_history_flag")),void 0!==n?s(a,t,e,o):(n=d.get_element_label(t)||"",(e=t.attr("id")||"")||(e="cex_tab__"+l.makeid(),t.attr("id",e)),e=$('<li><a href="#'+e+'" data-toggle="tab">'+n+"</a></li>"),t.addClass("CE_tab-pane"),i.append(e),r.append(t),e.find("a").on("shown.bs.tab",function(e){var t=$(this),n=t.closest(".CE_modal-dialog"),n=(n.hasClass("CE_modal-dialog-maximized")&&d.view.resizeModalDialog(n,!1),t.data("activationCompleteCallback"));n&&n(),t.removeData("activationCompleteCallback")}),o&&(e.addClass("CE_active"),t.addClass("CE_active")))}),a.remove("div.CE-tab-page")},$.extend(d.tabs,{activate_tab_page:function(e,t,n,o){var a=e.find(".CE-tab-page"),a=$(a[t]).attr("id");(t=e.find('> ul.CE_nav-tabs > li > a[href="#'+a+'"]')).data("activationCompleteCallback",function(){trace("tabPageActivationCompleteCallback"),n&&jQuery.isFunction(n)&&n()}),t.data("ignoreInvalid",o),t.click()},create_dynamic_tab:s,remove_tab_by_index:function(e,t){return(e=o(e,t)).remove(),0<e.length},remove_tab_by_screen_id:function(e,o){var t,n,a=e.children("ul.CE_nav-tabs"),e=e.children("div.CE_tab-content"),i=$();e.children(".CE-tab-page").each(function(){var e=$(this),t=e.attr("screenid"),n=e.attr("policy-screenid");if(t===o||n===o)return i=e,!1}),i.length&&(t="#"+i.attr("id"),n=$(),a.find("li").each(function(){var e=$(this);if(e.children("a").attr("href")===t)return n=e,!1}),n.length?(n.remove(),i.remove()):error("remove tab by screen id failed with no nav found for id "+t))},show_tab_by_index:function(e,t,n){return n=void 0===n||n,(e=o(e,t)).toggle(n),0<e.length},show_tab_by_id:function(o,a,i){var r;return i=void 0===i||i,!!a&&(r=!1,o.find("div.CE_tab-content .CE-tab-page").each(function(e){var t,n=$(this);if(n.attr("id")===a)return r=!0,t=o.children("ul.CE_nav-tabs"),$(t.children()[e]).toggle(i),n.toggle(i),!1}),r)}})})(CE_HTML.utils,CE_HTML.core,CE_HTML.components),((c,a,s,l,d)=>{d.CEDataListCommon=function(e,t){d.CEObject.call(this,e,t),this.$component.addClass("CE-data-list-common"),this.$scroll=$(),this.$table=$(),this.$searchInput=$(),this._controlBtns=null,this.$controls=e.children(".CE-control-buttons");var n=this;this.$component.click(function(e){$(".CE-data-list-common").removeAttr("data-list-has-focus"),e.target!=n.$searchInput.get(0)&&n.$component.attr("data-list-has-focus","true")}),$(l.cex_window().document.body).click(function(e){0===n.$component.find(e.target).length&&n.$component.removeAttr("data-list-has-focus")}),this.$component.keydown(function(e){return n.handleKey(e)}),l.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace)},d.CEDataListCommon.prototype=c.cloneObject(d.CEObject.prototype),d.CEDataListCommon.prototype.handleKey=function(e){if(this.$component.attr("data-list-has-focus")){var t=this.$component.find(".row-focused"),n=e.keyCode||e.which;switch(n){case a.keyboardKeys.VK_UP:case a.keyboardKeys.VK_DOWN:case a.keyboardKeys.VK_PAGEUP:case a.keyboardKeys.VK_PAGEDOWN:case a.keyboardKeys.VK_HOME:case a.keyboardKeys.VK_END:0!==(t=this.$table.nextItem(t,n,".row-selectable",{scroll_height:this.$scroll.height()})).length&&(this.scrollToRow(t),this.activateRow(t,e.ctrlKey,e.shiftKey,""));break;case a.keyboardKeys.VK_SPACE:this.activateRow(t,e.ctrlKey,e.shiftKey,"space");break;case a.keyboardKeys.VK_TAB:this.$component.removeAttr("data-list-has-focus");break;case a.keyboardKeys.VK_A:this.activateAllRows(e.ctrlKey);break;default:return!0}return c.stopEvent(e)}},d.CEDataListCommon.prototype.scrollToRow=function(e){l.scrollToElement(e)},d.CEDataListCommon.prototype.isMultipleSelect=function(){return"yes"===this.$component.attr("multiple-select")},d.CEDataListCommon.prototype.getAllSelectableRows=function(){return error("unimplemented method getAllSelectableRows()"),$()},d.CEDataListCommon.prototype.getAllSeparatorsRows=function(){return $()},d.CEDataListCommon.prototype.getRowVal=function(e){return error("unimplemented method getRowVal()"),null},d.CEDataListCommon.prototype.activateAllRows=function(e){e&&this.isMultipleSelect()&&((e=this.getAllSelectableRows()).removeClass("row-focused row-selection-start"),e.addClass("row-selected"),e.last().addClass("row-focused"),this.onSelectionChange())},d.CEDataListCommon.prototype.activateRow=function(e,t,n,o){if(t&&this.isMultipleSelect())"click"==o||"space"==o?(this.$table.children(".data-list-row").removeClass("row-focused row-selection-start"),e.toggleClass("row-selected row-focused row-selection-start")):(this.$table.children(".data-list-row").removeClass("row-focused row-selection-start"),e.addClass("row-focused row-selection-start"));else if(n&&this.isMultipleSelect())$rowSelectionStart=this.$table.children(".row-selection-start"),this.$table.children(".data-list-row").removeClass("row-focused row-selected"),$rowSelectionStart.length?$rowSelectionStart.index()<e.index()?e.prevUntil(".row-selection-start").add($rowSelectionStart).addClass("row-selected"):$rowSelectionStart.index()>e.index()&&e.nextUntil(".row-selection-start").add($rowSelectionStart).addClass("row-selected"):e.addClass("row-selection-start"),e.addClass("row-selected row-focused");else{if(!(!1===e.hasClass("row-selected")||1<this.$table.children().length))return;this.$table.children(".data-list-row").removeClass("row-selected row-focused row-selection-start"),e.addClass("row-selected row-focused row-selection-start")}this.onSelectionChange()},d.CEDataListCommon.prototype.getValue=function(){return this.getSelectedItemValue()},d.CEDataListCommon.prototype.setValue=function(e,t){this.setSelectedItem(e,!1,t)},d.CEDataListCommon.prototype.selectedItemsProperty=function(e){var t=[];return this.$table.children(".row-selected").each(function(){t.push(e.call($(this)))}),t.length?this.isMultipleSelect()?t:t[0]:null},d.CEDataListCommon.prototype.getSelectedItemValue=function(){var e=this;return this.selectedItemsProperty(function(){return e.getRowVal(this)})},d.CEDataListCommon.prototype.getSelectedItemData=function(){return this.selectedItemsProperty(function(){return this.data("ceData")})},d.CEDataListCommon.prototype.setSelectedItem=function(t,n,e){var o,a,i=this,r=function(){return!1},s=-1,l=(r="string"===$.type(t)&&-1<(s=t.indexOf(":"))?(o=t.substring(0,s)||"",a=t.substring(s+1)||"",function(e){e=e.data("ceData")||{};return c.getObjectMember(e,o)==a}):function(e){return i.getRowVal(e)==t},i.$table.children(".data-list-row"));l.each(function(){var e=$(this);return!r(e)||(l.removeClass("row-selected row-focused row-selection-start"),e.hasClass("row-selectable")&&e.addClass("row-selected row-focused row-selection-start"),!1!==n&&i.scrollToRow(e),i.onSelectionChange(),!1)})},d.CEDataListCommon.prototype.scrollToValue=function(t){var n=this;n.$table.children(".data-list-row").each(function(){var e=$(this);return n.getRowVal(e)!=t||(n.scrollToRow(e),!1)})},d.CEDataListCommon.prototype.resize=function(e){this.$scroll.setStyle("height",this.$scroll.height()+e+"px")},d.CEDataListCommon.prototype.removeItems=function(){this.getAllSelectableRows().add(this.getAllSeparatorsRows()).remove()},d.CEDataListCommon.prototype.readOnly=function(e,t){return e=this.toggleReadOnlyAttr(e),this._controlBtns&&this._controlBtns.readOnly(e,t),e},d.CEDataListCommon.prototype.onDoubleClickScript=function(){this._controlBtns&&!this.hasCeEvent("onitemdoubleclick")?this._controlBtns.actionToBtnsMap.edit&&this._controlBtns.onEditClick():d.CEObject.prototype.onDoubleClickScript.call(this)},d.CEDataListCommon.prototype.onSelectionChange=function(){this._controlBtns&&this._controlBtns.updateStates(),this.onChangeScript()},d.CEDataListCommon.prototype.addAuditDataToItem=function(e,t){if(l.auditLogEnabled()&&t?.metaData){var t=Object.keys(t.metaData??{})?.[0],n=null;switch(t){case a.historyFlags.added:e.addClass("history-added"),n=s.valueWasAdded;break;case a.historyFlags.removed:e.addClass("history-removed"),n=s.valueWasRemoved;break;case a.historyFlags.changed:e.addClass("history-changed"),n=s.valueWasChanged}n&&e.tooltip({container:"body",placement:"CE_top",html:!0,title:function(){return $("#page-view").find("select").blur(),n}})}},d.CEDataListCommon.prototype.enable=function(e){e=d.CEObject.prototype.enable.call(this,e),this._controlBtns&&e&&(this.$component.ce_IsReadOnly()&&this._controlBtns.readOnly(!0),this._controlBtns.updateStates())},d.CEButtonControlsCommon=function(e,t){this.$addBtn=$(),this.$editBtn=$(),this.$delBtn=$(),this.$importBtn=$(),this.$exportBtn=$(),this.$leftBar=$('<div class="CE-left"></div>'),this.$rightBar=$('<div class="CE-right"></div>'),this.dataList=e,this.$element=e.$controls||$(),this.$element.data("ce-button-controls",this),this.initParams=t,this.paramsBtn={parent:t.parent,functionNamespace:t.functionNamespace},this.$parentView=t.parent||$(),this.$element.attr("id")||this.$element.attr("id",c.makeid()),this.controlIncludeItems=(this.$element.attr("control-include").toLowerCase()||"").split(",");for(var n=0;n<this.controlIncludeItems.length;n++)this.controlIncludeItems[n]=this.controlIncludeItems[n].trim();this.actionToBtnsMap={};e="yes"===this.$element.attr("control-swap-sides");e&&this.swapSides(),this.addLeftButtons(),this.addRightButtons(),this.addCustomButtons(),e&&this.swapSides(),this._ce_events={add:l.transformCeEvent(this.$addBtn,t.functionNamespace,this.$element.attr("control-add-action")||""),edit:l.transformCeEvent(this.$editBtn,t.functionNamespace,this.$element.attr("control-edit-action")||""),delete:l.transformCeEvent(this.$delBtn,t.functionNamespace,this.$element.attr("control-delete-action")||"")},this.$element.append(this.$leftBar).append(this.$rightBar),this.wrapButtonsIntoTableLayout()},d.CEButtonControlsCommon.prototype.hasCustomControlAction=function(e){return!!this._ce_events[e]},d.CEButtonControlsCommon.prototype.triggerCustomControlAction=function(e){return trace("control-"+e+"-action"),l.eval_str.call(this.actionToBtnsMap[e].get(0),this._ce_events[e])},d.CEButtonControlsCommon.prototype.swapSides=function(){var e=this.$leftBar;this.$leftBar=this.$rightBar,this.$rightBar=e},d.CEButtonControlsCommon.prototype.controlHasButton=function(e){return-1<this.controlIncludeItems.indexOf(e)},d.CEButtonControlsCommon.prototype.getDataListId=function(){var e=this.dataList.$component.attr("id")||"";return""===e&&(e="datalist-"+c.makeid(),this.dataList.$component.attr("id",e)),e},d.CEButtonControlsCommon.prototype.addHelpIdToGeneratedView=function(e,t){t=t||this.$element.attr("control-view-helpid");t&&e.attr("helpid",t)},d.CEButtonControlsCommon.prototype.generateView=function(e,t,n){var o=$('<div class="CE-view" array="yes" window="yes" window-revocable="yes"></div>'),a=this.$element.attr("id"),a=a?a+`-${e}-view`:e+"-view-generated-"+c.makeid();return o.attr("id",a),o.attr("path_part",this.dataList.$component.attr("data-provider")||""),o.attr("auto-save",this.$element.attr("auto-save")||"no"),o.attr("label",t),o.attr("data-ce-onclose-ok",'this.view.$("#'+c.escapeJQuerySelector(this.getDataListId())+'").ce_Refresh();'),this.addHelpIdToGeneratedView(o,n),o.insertAfter(this.dataList.$component),d.create_view(o,this.initParams.parent,this.initParams.functionNamespace),a},d.CEButtonControlsCommon.prototype.generateViewImportExport=function(e,t,n,o){var a=$('<div class="CE-view" window="yes"></div>'),i=this.$element.attr("id"),i=i?i+`-${e}-view`:e+"-view-generated-"+c.makeid();return a.attr("id",i),a.attr("path_part",this.dataList.$component.attr("data-provider")||""),a.attr("label",t),this.addHelpIdToGeneratedView(a,n),o&&a.attr("data-ce-onclose",'this.view.$("#'+c.escapeJQuerySelector(this.getDataListId())+'").ce_Refresh();'),a.insertAfter(this.dataList.$component),d.create_view(a,this.initParams.parent,this.initParams.functionNamespace),i},d.CEButtonControlsCommon.prototype.addLeftButtons=function(){var i=this;let r=i.$element.attr("id");function e(e,t,n,o,a){(o={params:c.cloneObject(i.paramsBtn),...o}).params.id||(o.params.id=r+"-"+n),i[t]=d.createButton(s[n],o,a),i[e].append(i[t]),i.actionToBtnsMap[n]=i[e]}i.controlHasButton("add")&&e("$leftBar","$addBtn","add",{},function(){i.onAddClick()}),i.controlHasButton("edit")&&e("$leftBar","$editBtn","edit",{readOnlyIgnored:!0,labelReadOnly:s.view},function(){i.onEditClick()}),i.controlHasButton("delete")&&e("$leftBar","$delBtn","delete",{},function(){i.onRemoveClick()})},d.CEButtonControlsCommon.prototype.addRightButtons=function(){var i=this;let r=i.$element.attr("id");function e(e,t,n,o,a){(o={params:c.cloneObject(i.paramsBtn),...o}).params.id||(o.params.id=r?r+"-"+n:null),i[t]=d.createButton(s[n],o,a),i[e].append(i[t]),i.actionToBtnsMap[n]=i[e]}i.controlHasButton("import")&&e("$rightBar","$importBtn","import",{},function(){i.onImportClick()}),i.controlHasButton("export")&&e("$rightBar","$exportBtn","export",{readOnlyIgnored:!0},function(){i.onExportClick()})},d.CEButtonControlsCommon.prototype.addCustomButtons=function(){function n(e,t,n){(t=$(e.children()[t])||$()).length?n.insertBefore(t):e.append(n)}var o=this,e=o.$element.children(".CE-button");e.each(function(){var e=$(this);if(!1===e.ce_IsIgnored()){var t=parseInt(e.attr("control-index"),10);if(isNaN(t))return error("Bad custom btn index!"),!0;0<=t?n(o.$leftBar,t,e):n(o.$rightBar,-t-1,e),e.ceObject(o.paramsBtn)}else e.remove()})},d.CEButtonControlsCommon.prototype.wrapButtonsIntoTableLayout=function(){this.$element.addClass("table-main CE_max-parent-width"),this.$element.children("div").wrapAll("<div class='table-row'></div>"),this.$leftBar.addClass("table-cell"),this.$rightBar.addClass("table-cell"),this.$leftBar.children("div").wrap("<div class='table-cell' style='vertical-align: middle;'></div>"),this.$rightBar.children("div").wrap("<div class='table-cell' style='vertical-align: middle;'></div>"),this.$leftBar.children("div").wrapAll("<div class='table-main'><div class='table-row'></div></div>"),this.$rightBar.children("div").wrapAll("<div class='table-main CE_align-right'><div class='table-row'></div></div>")},d.CEButtonControlsCommon.prototype.generateAddView=function(){""===(this.$element.attr("control-add-view")||"")&&this.$element.attr("control-add-view",this.generateView("add",this.$element.attr("control-add-view-label")||s.add,this.$element.attr("control-add-view-helpid")||""))},d.CEButtonControlsCommon.prototype.onAddClick=function(){if(trace("onAddClick"),this.hasCustomControlAction("add"))return this.triggerCustomControlAction("add");this.generateAddView();var e,t=this.$element.attr("control-add-view")||"",n=this.$element.attr("control-add-screen")||"",o=this.$element.attr("control-add-validation")||"yes";t&&n?(e=this.$parentView.$("#"+c.escapeJQuerySelector(t))||$()).length?e.ce_AddAndLoadEditScreen(null,n,"yes"===o):error("Defined add view '"+t+"' is missing!"):error("Required 'control-add-view' or 'control-add-screen' is not defined!")},d.CEButtonControlsCommon.prototype.generateEditView=function(){var e=this.$element.attr("control-edit-view")||"",t=this.$element.attr("control-add-view")||"",n=this.$element.attr("control-edit-view-label")||"";(!e&&!t||!e&&n)&&this.$element.attr("control-edit-view",this.generateView("edit",n||s.edit,this.$element.attr("control-edit-view-helpid")||this.$element.attr("control-add-view-helpid")||""))},d.CEButtonControlsCommon.prototype.onEditClick=function(){if(trace("onEditClick"),this.hasCustomControlAction("edit"))return this.triggerCustomControlAction("edit");this.generateEditView();var e,t,n=this.$element.attr("control-edit-view")||this.$element.attr("control-add-view")||"",o=this.$element.attr("control-edit-screen")||this.$element.attr("control-add-screen")||"";n&&o?(e=this.$parentView.$("#"+c.escapeJQuerySelector(n))||$()).length?(t=this.dataList.getSelectedItemData(),(t=l.auditLogEnabled()?Array.isArray(t)&&t.length?t[0].historyData||null:t&&t.historyData?t.historyData:null:null)?e.ce_LoadScreen(o,t.flag===a.historyFlags.removed?t.pastIndex:t.currentIndex,null,t):null!==(t=this.dataList.getSelectedItemValue())&&e.ce_LoadScreen(o,this.dataList.isMultipleSelect()?t[0]:t)):error("Defined edit view '"+n+"' is missing!"):error("Required 'control-edit-view' or 'control-edit-screen' is not defined!")},d.CEButtonControlsCommon.prototype.onRemoveClick=function(){if(trace("onRemoveClick"),this.hasCustomControlAction("delete"))return this.triggerCustomControlAction("delete");this.dataList.$component.ce_RemoveSelectedItems()},d.CEButtonControlsCommon.prototype.onImportExport=function(e){var t,n=this.$element.attr("control-"+e+"-view")||"",o=this.$element.attr("control-"+e+"-screen")||"generic.arr_file_"+e;n&&o?(t=this.$parentView.$("#"+c.escapeJQuerySelector(n))||$()).length?(t.ce_Attr("arrayFilterId",this.dataList.$component.data("ArrayFilterID")),t.ce_LoadScreen(o)):error("Defined "+e+" view '"+n+"' is missing!"):error("Required 'control-"+e+"-view' or 'control-"+e+"-screen' is not defined!")},d.CEButtonControlsCommon.prototype.generateImportView=function(){""===(this.$element.attr("control-import-view")||"")&&this.$element.attr("control-import-view",this.generateViewImportExport("import",this.$element.attr("control-import-view-label")||s.import,this.$element.attr("control-import-view-helpid")||"","onclose"))},d.CEButtonControlsCommon.prototype.onImportClick=function(){trace("onImportClick"),this.generateImportView(),this.onImportExport("import")},d.CEButtonControlsCommon.prototype.generateExportView=function(){""===(this.$element.attr("control-export-view")||"")&&this.$element.attr("control-export-view",this.generateViewImportExport("export",this.$element.attr("control-export-view-label")||s.export,this.$element.attr("control-export-view-helpid")||""))},d.CEButtonControlsCommon.prototype.onExportClick=function(){trace("onExportClick"),this.generateExportView(),this.onImportExport("export")},d.CEButtonControlsCommon.prototype.updateStates=function(){trace("Control button update states");var e=!1,t=!1,n=this.dataList.$component.ce_IsReadOnly()||ce_IsReadOnlyMode(),o=this.dataList.getSelectedItemValue(),a=this.dataList.getSelectedItemData();if(null!==o&&(!1!==this.dataList.isMultipleSelect()&&1!==o.length||(e=!0,n=n||!(!(o=this.dataList.isMultipleSelect()?a[0]:a).metaData||1!=o.metaData["read-only"])),t=!0,null!==a)){var i=function(e){return e.value&&1==e.value.bDefault||e.metaData&&1==e.metaData.builtin};if(!1===this.dataList.isMultipleSelect())i(a)&&(t=!1);else for(var r=0;r<a.length;r++)if(i(a[r])){t=!1;break}}l.auditLogEnabled()?(this.$editBtn.ce_Enable(e),this.$editBtn.ce_ReadOnly(!0),this.$delBtn.ce_Enable(!1),this.$exportBtn.ce_Enable(!1)):(this.$editBtn.ce_Enable(e),this.$editBtn.ce_ReadOnly(n),this.$delBtn.ce_Enable(t),o=this.dataList.$component.ce_GetDataProvider(),this.$exportBtn.ce_Enable(!(!o||!o.length)))},d.CEButtonControlsCommon.prototype.readOnly=function(e){trace("Control buttons set readOnly to "+e),this.$element.find(".CE-button").each(function(){$(this).ceObject().readOnly(e)})},d.CEButtonControlsCommon.prototype.getButtonByAction=function(e){trace("Get button by action: "+e);e=this.actionToBtnsMap[e];return e||null}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.localization.getStrMap(),CE_HTML.core,CE_HTML.components),((d,r,s,m,C,p,o)=>{C.CEDataGridButtonControls=function(e,t){this.$copyBtn=$(),this.$topBtn=$(),this.$upBtn=$(),this.$downBtn=$(),this.$bottomBtn=$(),this.dataGrid=e,C.CEButtonControlsCommon.call(this,e,t),this._ce_events.copy=m.transformCeEvent(this.$copyBtn,t.functionNamespace,this.$element.attr("control-copy-action")||"")},C.CEDataGridButtonControls.prototype=d.cloneObject(C.CEButtonControlsCommon.prototype),C.CEDataGridButtonControls.prototype.addLeftButtons=function(){C.CEButtonControlsCommon.prototype.addLeftButtons.call(this);var e=this;e.controlHasButton("copy")&&(e.$copyBtn=C.createButton(s.copy,{params:e.paramsBtn},function(){e.onCopyClick()}),e.$leftBar.append(e.$copyBtn),e.actionToBtnsMap.copy=e.$copyBtn)},C.CEDataGridButtonControls.prototype.addRightButtons=function(){var e=this;e.controlHasButton("move")&&(e.$topBtn=C.createButton("",{params:e.paramsBtn,iconClass:"top-icon"},function(){e.onTopClick()}),e.$rightBar.append(e.$topBtn),e.$upBtn=C.createButton("",{params:e.paramsBtn,iconClass:"up-icon"},function(){e.onUpClick()}),e.$rightBar.append(e.$upBtn),e.$downBtn=C.createButton("",{params:e.paramsBtn,iconClass:"down-icon"},function(){e.onDownClick()}),e.$rightBar.append(e.$downBtn),e.$bottomBtn=C.createButton("",{params:e.paramsBtn,iconClass:"bottom-icon"},function(){e.onBottomClick()}),e.$rightBar.append(e.$bottomBtn),e.actionToBtnsMap.move=$([e.$topBtn,e.$upBtn,e.$downBtn,e.$bottomBtn])),C.CEButtonControlsCommon.prototype.addRightButtons.call(this)},C.CEDataGridButtonControls.prototype.generateCopyView=function(){var e=this.$element.attr("control-copy-view")||"",t=this.$element.attr("control-edit-view")||"",n=this.$element.attr("control-add-view")||"",o=this.$element.attr("control-copy-view-label")||"";(e||t||n)&&(e||!o)||this.$element.attr("control-copy-view",this.generateView("copy-view-generated-",this.$element.attr("control-copy-view-label")||s.edit,this.$element.attr("control-copy-view-helpid")||this.$element.attr("control-edit-view-helpid")||this.$element.attr("control-add-view-helpid")||""))},C.CEDataGridButtonControls.prototype.onCopyClick=function(){if(trace("onCopyClick"),this.hasCustomControlAction("copy"))return this.triggerCustomControlAction("copy");this.generateCopyView();var a,i,r,e,s=this.dataGrid.getSelectedItemValue();null!==s&&(s=this.dataGrid.isMultipleSelect()?s[0]:s,a=this.dataGrid.$component.ce_GetDataProviderPath()+"."+s,r=(i=this).dataGrid.getSelectedItemData(),r=this.dataGrid.isMultipleSelect()?r[0]:r,(e=new CERPCAsync).onComplete=function(){var e,t,n,o;this.error?error("Failed to get selected item value when copy!"):(e=this.result[a],t=i.$element.attr("control-copy-view")||i.$element.attr("control-edit-view")||i.$element.attr("control-add-view")||"",n=i.$element.attr("control-copy-screen")||i.$element.attr("control-edit-screen")||i.$element.attr("control-add-screen")||"",t&&n?(o=i.$parentView.$("#"+d.escapeJQuerySelector(t))||$()).length?(e.bDefault=0,r&&r.metaData&&r.metaData.builtin&&r.value&&(null!=e.DisplayName&&null!=r.value.DisplayName&&(e.DisplayName=r.value.DisplayName),null!=e.Description)&&null!=r.value.Description&&(e.Description=r.value.Description),e.Uuid&&(e.Uuid=""),o.ce_AddAndLoadEditScreen(e,n,!0,parseInt(s,10)+1)):error("Defined copy view '"+t+"' is missing!"):error("Required 'control-copy-view' or 'control-copy-screen' is not defined!"))},e.ce_ValuesGet([a],i.$parentView.ce_GetTransactionID()))},C.CEDataGridButtonControls.prototype.onMoveClick=function(e){trace("onMoveClick("+e+")"),this.dataGrid.$component.ce_MoveSelectedItem(e)},C.CEDataGridButtonControls.prototype.onTopClick=function(){trace("onTopClick"),this.onMoveClick("top")},C.CEDataGridButtonControls.prototype.onUpClick=function(){trace("onUpClick"),this.onMoveClick("up")},C.CEDataGridButtonControls.prototype.onDownClick=function(){trace("onDownClick"),this.onMoveClick("down")},C.CEDataGridButtonControls.prototype.onBottomClick=function(){trace("onBottomClick"),this.onMoveClick("bottom")},C.CEDataGridButtonControls.prototype.updateStates=function(){C.CEButtonControlsCommon.prototype.updateStates.call(this),trace("Grid control button update states");var e=this.dataGrid.getSelectedItemValue(),t=this.dataGrid.getTotalRecordCount(),n=!1,n=this.$editBtn.length&&this.$delBtn.length?this.$editBtn.ce_IsEnabled()&&this.$delBtn.ce_IsEnabled()&&1<t:e&&1===e.length&&1<t,t=!1;this.$editBtn.length?(t=this.$editBtn.ce_IsEnabled()&&this.$editBtn.ce_GetLabel()!==this.$editBtn.ce_Attr("readonly-label"),e&&1===e.length&&"0"===e[0]&&(t=!1)):n=e&&1===e.length,m.auditLogEnabled()?(this.$copyBtn.ce_Enable(!1),this.$topBtn.ce_Enable(!1),this.$upBtn.ce_Enable(!1),this.$downBtn.ce_Enable(!1),this.$bottomBtn.ce_Enable(!1)):(this.$copyBtn.ce_Enable(t),this.$topBtn.ce_Enable(n),this.$upBtn.ce_Enable(n),this.$downBtn.ce_Enable(n),this.$bottomBtn.ce_Enable(n))},C.CEDataGrid=function(e,t){C.CEDataListCommon.call(this,e,t),this.$component.removeAttr("label"),this.$controls.detach(),this._colsHiddenAr=[],this._colsHiddenArDefault=[],this.loadConfig();function n(e,t){function n(){a._reload?(trace("retrigger"),a._delayedSearch=setTimeout(n,o)):(a._reload=!0,a._delayedSearch=void 0,a.searchText(a.$searchInput.val(),function(){a._reload=!1,trace("filter completed")}))}var o=void 0!==t?t:700;return void 0!==a._delayedSearch&&(clearTimeout(a._delayedSearch),a._delayedSearch=void 0),a._delayedSearch=setTimeout(n,o),d.stopEvent(e)}var e=this.$component.children(".CE-column"),a=(e.each(function(e){var t,n,o=$(this);!1===o.ce_IsIgnored()?(t=C.get_element_label(o)||"",n=o.attr("width-era")||o.attr("width")||"",o.addClass("grid-header-column"),o.text(t),o.wrapInner("<div></div>"),""!==n&&o.css("width",n)):o.remove()}),e=this.$component.children(".grid-header-column"),this._colsHiddenAr.length!=e.length&&(this._colsHiddenAr=[]),this),o=[],e=(e.each(function(e){var t=$(this),n=C.get_element_label(t)||"";a._colsHiddenArDefault.push(!!t.attr("hidden-by-default")),a._colsHiddenAr.length<=e&&a._colsHiddenAr.push(a._colsHiddenArDefault[e]),a._colsHiddenAr[e]&&t.addClass("hidden"),o.push({label:n,index:e})}),this.$component.wrapInner('<div class="data-list-row"></div>'),this.$component.append(this.$component.children().clone()),this.$component.wrapInner('<div class="grid-main disable-text-selection" tabindex="1"></div>'),this.$component.wrapInner('<div class="grid-scroll"></div>'),this.$component.prepend('<div class="grid-header-row-background"></div>'),this.$component.wrapInner('<div class="grid-data"></div>'),this.$component.wrapInner('<div class="grid-container"></div>'),$('<div class="grid-control"></div>')),i=(e.append('<div class="grid-search"><div class="btn-search">'+p.create("search",!0)+'</div><input type="text" class="CE_form-control"><div class="btn-clear">'+p.create("clear",!0)+"</div>"),e.append('<a class="grid-option-button" id="search-btn">'+p.create("search",!0)+"</a>"),e.append('<a class="dropdown-toggle grid-option-button">'+p.create("settings",!0)+"</a>"),e.append('<div class="CE_dropdown-menu"></div>'),e.append('<a class="lnk-infopanel grid-option-button">'+p.create("sideopen",!0)+"</a>"),this.$component.prepend(e),!1===d.msieversion()&&this.$component.find(".grid-search").children("input").attr("placeholder",s.typeToSearch),this.createDropdownMenu(o));this.$component.css("position","relative"),this.$container=this.$component.find(".grid-container"),this.$data=this.$container.children(".grid-data"),this.$scroll=this.$data.children(".grid-scroll"),this.$table=this.$scroll.children(".grid-main"),this.$columnRow=this.$component.find(".grid-header-row-background"),this.$controls.length&&(this.$component.append(this.$controls),this._controlBtns=new C.CEDataGridButtonControls(this,t)),this.$searchBlock=this.$component.find(".grid-search"),this.$searchInput=this.$component.find(".grid-search input"),this.$searchBlock.hide(),this.$searchButton=this.$component.find("#search-btn"),this.$searchClear=this.$component.find(".grid-search .btn-clear"),this._searchText=void 0,$(m.cex_window().document.body).click(function(e){i.is(":visible")&&0===$(e.target).closest(".CE_dropdown-menu, .dropdown-toggle").length&&i.hide()}),this.hideSearchBtnIfNeeded(),m.applyComponentAttributes(this.$component,{"ce-width":this.$component.attr("ce-width")||"fill_parent","ce-height":this.$component.attr("ce-height")||"fill_parent"}),this._totalRecordsCount=0,this._dataIndexStart=1;this.$searchInput.change(n),this.$searchInput.keyup(n),this.$searchButton.click(function(e){return a.$searchBlock.fadeToggle(200),a.$searchBlock.show(),a.$searchInput.focus(),a.$searchButton.hide(),d.stopEvent(e)}),this.$searchClear.click(function(e){return a.$searchInput.val(""),n(e,0),a.$searchBlock.hide(),a.$searchButton.show(),d.stopEvent(e)}),this.$searchInput.blur(function(){a.$searchInput.val()||(a.$searchBlock.hide(),a.$searchButton.show())}),this.addToLayout(t,!0),1<this._layout.table.find(".CE-data-grid").length&&this._layout.table.addClass("CE_grid-low-height")},C.CEDataGrid.prototype=d.cloneObject(C.CEDataListCommon.prototype),C.CEDataGrid.prototype.createDropdownMenu=function(e){var n=this,t=$("<ul></ul>"),o=(e.forEach(function(e){t.append('<li><input type="checkbox" id="'+e.index+'" '+(n._colsHiddenAr[e.index]?" />":"checked >")+'<label for="column'+e.index+'">'+e.label+"</label></li>")}),this.$component.find(".CE_dropdown-menu"));return o.append(t),o.append('<div class="footer"><a id="reset">Reset</a></div>'),this.$component.find(".dropdown-toggle").click(function(e){o.css("max-height",n.$container.height()+"px"),o.is(":visible")||t.find("input").each(function(e){$(this).prop("checked",!n._colsHiddenAr[e])}),o.toggle(0)}),o.find("input").change(function(){var e=$(this).attr("id"),t=$(this).is(":checked");t===n._colsHiddenAr[e]&&(n.showColumn(e,t),n.saveConfig())}),o.find("#reset").click(function(){n._colsHiddenArDefault.forEach(function(e,t){e!=n._colsHiddenAr[t]&&n.showColumn(t,!e)}),n.saveConfig(),o.hide()}),o},C.CEDataGrid.prototype.saveConfig=function(){localStorage.setItem(this.getStorageId()+"/columnvisibility",JSON.stringify(this._colsHiddenAr))},C.CEDataGrid.prototype.loadConfig=function(){try{var e=JSON.parse(localStorage.getItem(this.getStorageId()+"/columnvisibility"));Array.isArray(e)&&e.every(function(e){return!0===e||!1===e})&&(this._colsHiddenAr=e)}catch(e){}},C.CEDataGrid.prototype.getStorageId=function(){return this._storageId||(this._storageId="datagrid/"+this.$component.ce_GetParentView().ce_GetScreenName().toLowerCase()+"#"+this.$component.ce_GetDataProviderPath().toLowerCase()),this._storageId},C.CEDataGrid.prototype.hideSearchBtnIfNeeded=function(){void 0===this.$component.attr("enable-info-panel")&&this.$component.find(".lnk-infopanel").hide(),void 0===this.$component.attr("enable-column-dropdown-menu")&&this.$component.find(".dropdown-toggle").hide(),void 0!==this.$component.attr("disable-search")&&this.$searchButton.hide()},C.CEDataGrid.prototype.getAllSelectableRows=function(){return this.$table.children(".data-list-row.row-selectable")},C.CEDataGrid.prototype.getAllSeparatorsRows=function(){return this.$table.children(".data-list-row.row-separator")},C.CEDataGrid.prototype.getAllItemRows=function(){return this.$table.children(".data-list-row.row-separator, .data-list-row.row-selectable")},C.CEDataGrid.prototype.getRowVal=function(e){return e.val()},C.CEDataGrid.prototype.doLocalFiltering=function(e){var o,a=new C.menu.SearchExpresion(this._searchText,{partialSearchAllowed:!1}),t=this.getAllItemRows();a.isValid()?(o=$(),t.each(function(e,t){var t=$(t),n=t.hasClass("row-separator");o=n?t:o,a.searchText(t.text()).found?(t.show(),n||o.show()):t.hide()})):""===this._searchText&&t.show(),e&&e()},C.CEDataGrid.prototype.doRemoteFiltering=function(e){this.$component.ce_Refresh(function(){e&&e()},!0)},C.CEDataGrid.prototype.searchText=function(e,t){var n,o;(this._searchText||"")!=e?(this._searchText=e,o=function(){n.$table.css("min-width",""),n.$scroll.css("overflow-y",""),n.$table.removeClass("grid-filtered")},e=function(){n._searchText||o(),t&&t()},(n=this).$table.hasClass("grid-filtered")||(n.$table.css("min-width",n.$table.width()),n.$table.addClass("grid-filtered"),n.$scroll.get(0).scrollHeight>n.$scroll.get(0).clientHeight&&n.$scroll.css("overflow-y","scroll")),this.$component.ce_GetDataProviderPath()?this.doRemoteFiltering(e):this.doLocalFiltering(e)):t&&t()},C.CEDataGrid.prototype.removeBreakWordStyles=function(){this.$component.removeClass("CE_break-word CE_break-all")},C.CEDataGrid.prototype.headerColumns=function(){return this.$table.children(".data-list-row:first-child").children(".grid-header-column")},C.CEDataGrid.prototype.getDataProviderFilterText=function(){return this._searchText},C.CEDataGrid.prototype.getDataProviderFilterColumns=function(){for(var e=[],t=this.headerColumns(),n=0;n<t.length;n++){var o=$(t[n]).attr("data-member-label");void 0!==o&&e.push(o)}return e},C.CEDataGrid.prototype.getDataProviderUsedColumns=function(){var e,t=this.$component.attr("data-provider-used-keys");if(void 0!==t)return e=this.getDataProviderFilterColumns(),t.replace(/\s+/g,"").split(",").concat(e)},C.CEDataGrid.prototype.getDataProviderLimit=function(){return 200},C.CEDataGrid.prototype.getMaxCellTextLength=function(){return 160},C.CEDataGrid.prototype.getDataProviderStartIndex=function(e){return void 0!==e&&this._dataIndexStart>=e&&(this._dataIndexStart=Math.floor((e-1)/this.getDataProviderLimit())*this.getDataProviderLimit()+1),this._dataIndexStart},C.CEDataGrid.prototype.setDataProviderData=function(n,l,e){this.removeItems(),this._totalRecordsCount=0,this.removeBreakWordStyles(),this.hideSearchBtnIfNeeded();function o(e,t){for(var n=p.$component.attr("data-member-value"),n=m.getDataMemberValue(n,e,t),o=p.getItemMetaData(t).header,a=$('<div class="data-list-row '+(o?"row-separator":"row-selectable")+'"></div>'),i=(a.val(n),a.data("ceData",t),a.attr("data-ce-row-id","row-"+e),C.CEDataListCommon.prototype.addAuditDataToItem.call(this,a,t),[]),r=0;r<u.length;r++){var s=$(u[r]),l=s.attr("data-member-label"),c=$('<div class="grid-column"></div>'),l=m.getDataMemberLabel(l,t),s=s.attr("cell-renderer")||"";""===l&&""===s||""===l?c.html(" "):l.length>p.getMaxCellTextLength()?(c.text(l.substr(0,p.getMaxCellTextLength()).concat("...")),c.attr("title",l)):c.text(l),c.toggleClass("hidden",p._colsHiddenAr[r]),a.append(c),""!==s&&i.push({cellRenderer:s,col:c})}for(r=0;r<i.length;r++){var d=i[r];h(d.cellRenderer,d.col,t)}a.click(function(e){var t=$(this);!p.$component.prop("disabled")&&t.hasClass("row-selectable")&&(p.activateRow(t,e.ctrlKey,e.shiftKey,"click"),p.onClickScript())}),a.dblclick(function(e){var t=$(this);!p.$component.prop("disabled")&&t.hasClass("row-selectable")&&(p.activateRow(t,e.ctrlKey,e.shiftKey,"click"),p.onDoubleClickScript())}),p.$table.append(a)}var t,p=this,u=this.headerColumns(),h=function(e,t,n){for(var o,a=(a=e.trim().replace(/^this\./,"")).substr(0,a.indexOf("(")),i=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(","),r=0;r<i.length;r++)1<(o=i[r].trim()).length&&'"'===o[0]&&'"'===o[o.length-1]&&(o=o.substring(1,o.length-1)),i[r]=o;var s=m.callCustomScript(l,a,p.$component.get(0),i);if(jQuery.isPlainObject(s)&&jQuery.isFunction(s.update)){t.addClass("CE_cell-renderer"),jQuery.isFunction(s.click)&&t.click(function(){try{s.click(t,n)}catch(e){error("failed to call cellRenderer click(): "+e)}});try{s.update(t,n),s.change&&s.change(t,n)}catch(e){error("failed to call cellRenderer update(): "+e)}t.data("cellRenderer",s)}else error("bad cell renderer")};jQuery.isPlainObject(n)?(this._totalRecordsCount=void 0!==e?e:Object.keys(n).length,t=m.sortObjKeys(n),jQuery.each(t,function(e,t){o(t,n[t])})):jQuery.isArray(n)&&(this._totalRecordsCount=void 0!==e?e:n.length,jQuery.each(n,function(e){o(p.getDataProviderStartIndex()+e,this)})),this.removePaginator(),this.hasPaginator()&&this.createPaginator(),this.layout(!0),trace("data load complete"),this.onSelectionChange()},C.CEDataGrid.prototype.onSelectionChange=function(){C.CEDataListCommon.prototype.onSelectionChange.call(this);var e=this.getSelectedItemData(),t=this.$component.find(".grid-control .lnk-infopanel.grid-option-button");e&&0!=e.length?t.removeAttr("disabled"):t.attr("disabled",!0)},C.CEDataGrid.prototype.removePaginator=function(){this.$component.children(".grid-paginator").remove()},C.CEDataGrid.prototype.paginatorGetPageNum=function(e,t){var n=e%t,e=(e-n)/t;return 0<n&&e++,e},C.CEDataGrid.prototype.paginatorGetTotalPages=function(){return this.paginatorGetPageNum(this.getTotalRecordCount(),this.getDataProviderLimit())},C.CEDataGrid.prototype.paginatorGetActivePage=function(){return this.paginatorGetPageNum(this.getDataProviderStartIndex(),this.getDataProviderLimit())},C.CEDataGrid.prototype.paginatorPreparePage=function(e){var t=1;switch(e){case"first":t=1;break;case"last":t=this.paginatorGetTotalPages();break;case"prev":t=Math.max(1,this.paginatorGetActivePage()-1);break;case"next":t=Math.min(this.paginatorGetTotalPages(),this.paginatorGetActivePage()+1);break;default:return void error("Unknown page to prepare!")}this._dataIndexStart=(t-1)*this.getDataProviderLimit()+1},C.CEDataGrid.prototype.hasPaginator=function(){return this.getTotalRecordCount()>this.getDataProviderLimit()},C.CEDataGrid.prototype.createPaginator=function(){function n(){var e=a.getDataProviderStartIndex()+"-"+Math.min(a.getDataProviderStartIndex()+a.getDataProviderLimit()-1,a.getTotalRecordCount())+"/"+a.getTotalRecordCount();o.text(e)}var e=$('<div class="grid-paginator"><div class="paginator-nav CE_pull-right"></div><div class="paginator-text CE_pull-right"></div></div>'),t=e.children(".paginator-nav"),o=e.children(".paginator-text"),a=(e.insertAfter(this.$container),this);n(),t.bootpag({total:a.paginatorGetTotalPages(),page:a.paginatorGetActivePage(),maxVisible:5,firstLastUse:!0,leaps:!0,directionLTR:r.directionLTR}).on("page",function(e,t){trace("Data grid paginator pageNum: "+t),a._dataIndexStart=(t-1)*a.getDataProviderLimit()+1,a.$component.ce_Refresh(function(){},!0),n()})},C.CEDataGrid.prototype.layout=function(e){function t(){return o.$component.closest(".CE_modal-dialog").outerWidth()}var n=$(m.cex_window()).width(),o=this;!1===d.msieversion()&&!0!==e&&this.removeBreakWordStyles(),!1!==d.msieversion()&&o.$component.closest(".CE_modal").css("display","block"),t()>.8*n&&(this.$component.addClass("CE_break-word"),t()>n)&&(o.$component.addClass("CE_break-all"),o.$component.removeClass("CE_break-word"))},C.CEDataGrid.prototype.getTotalRecordCount=function(){return this._totalRecordsCount},C.CEDataGrid.prototype.updateCellRendererData=function(e,t){var n,e=$(e);e.length&&(n=e.parentsUntil(this.$component,".data-list-row").first()).length&&(n=n.data("ceData")||{},n=$.extend({},n,t),e.data("ceDataExtended",n),(t=e.data("cellRenderer")||{}).update)&&t.update(e,n)},C.CEDataGrid.prototype.createCellRenderer=function(e,t){return"rule"===e?this.createRuleCellRenderer(t):"checkbox"===e?this.createCheckboxCellRenderer(t):"checkboxCbk"===e?this.createCheckboxCellRendererCbk(t):"enum"===e?this.createEnumCellRenderer(t):"radioGroupRow"===e?this.createRadioGroupRowCellRenderer(t):"radioGroupRowCbk"===e?this.createRadioGroupRowCellRendererCbk(t):"textWithVersion"===e?this.createTextWithVersionCellRenderer(t):null},C.CEDataGrid.prototype.createRuleCellRenderer=function(e){e=jQuery.extend({},e);return void 0===e.valueMember&&(e.valueMember="enabled"),this.createCheckboxCellRenderer(e)},C.CEDataGrid.prototype.createCheckboxCellRenderer=function(e){e=jQuery.extend({},e);return e.cbk={setCheckbox:function(e){return!(!e||1!=e)},invertValue:function(e){return 1==e?0:1}},this.createCheckboxCellRendererCbk(e)},C.CEDataGrid.prototype.createEnumCellRenderer=function(r){var s=this;return{click:function(e,t){},change:function(e,t){},update:function(o,a){var e,i,t,n;s.getItemMetaData(a).header?o.html(""):(e=r.enum)?(o.html('<div class="grid-enum-selector">'+(e.get(0).outerHTML||"")+"</div>"),(e=o.children().children()).length?(i=this,e.val("?"+a.value[r.valueMember]),e.change(function(){var e,t,n=$(this).val().substr(1);!s.$component.ce_GetDataProviderPath()&&s.$component.ce_GetDataProvider()?(a.value[r.valueMember]=n,i.change(o,a)):((e={})[s.$component.ce_GetDataProviderPath()+"."+a.index+"."+r.dataMember]=n,(t=new CERPCAsync).onComplete=function(){null===this.error&&(a.value[r.valueMember]=n,i.change(o,a))},t.ce_ValuesSet(e,ce_GetTransactionID()))}),e.removeAttr("hidden").removeAttr("id"),t=!1,void 0!==(n=o.data("ceDataExtended")||{}).disabled&&(t=!!n.disabled&&"disabled"),e.prop("disabled",t)):error("Failed to update enum cell renderer - selector root element was not found!")):error("Failed to update enum cell renderer - enum param was not found!")}}},C.CEDataGrid.prototype.createRadioGroupRowCellRenderer=function(e){e=jQuery.extend({},e);return e.cbk={prepareCeValue:function(e,t,n){var o={};return o[n+e.valueMember]=e.columnValue,o}},this.createRadioGroupRowCellRendererCbk(e)},C.CEDataGrid.prototype.createRadioGroupRowCellRendererCbk=function(o){var a=this;return{update:function(e,t){var n=e.closest(".data-list-row").attr("data-ce-row-id")||"",t=t.value[o.valueMember]==o.columnValue;e.html('<div style="text-align: center;"><label style="display:inline-block;text-align:center;width:4em;"><input type="radio" name="radio-group-'+n+'" '+(t?"checked":"")+"></label></div>"),e.find("input").val(o.columnValue)},click:function(e,t){var n=a.$component.ce_GetDataProviderPath()+"."+t.index+".",t=o.cbk.prepareCeValue(o,t,n);(new CERPCAsync).ce_ValuesSet(t,ce_GetTransactionID())}}},C.CEDataGrid.prototype.createCheckboxCellRendererCbk=function(s){var l=this;return{update:function(e,t){var n,o,a,i=l.getItemMetaData(t);i.header?e.html(""):(e.children(".CE_label.CE_label-versioning").tooltip("destroy"),s.cbk.setCheckbox(t.value[s.valueMember])?e.html(p.create("checkbox-checked",!0)):e.html(p.create("checkbox-unchecked",!0)),n=1==i["read-only"],o=r.readOnlyMode||l.$component.ce_IsReadOnly(),(n||o)&&e.children().css("opacity","0.5"),a=i.tooltip,!1===o&&a&&a.length&&(a=d.escapeHtmlText(a),e.children("span").wrap('<a style="cursor: default;"/>'),e.children("a").tooltip({placement:r.directionLTR?"CE_right":"CE_left",container:"body",html:!0,delay:{show:500,hide:0},title:function(){return a}})),t.version&&l.createCellVersionLabel(e,t.version[s.valueMember]))},click:function(e,t){var n,o,a=l.getItemMetaData(t),i=e.parent().attr("data-ce-row-id")||"",r=1==a["read-only"],a=a.header;!l.$component.ce_IsEnabled()||l.$component.ce_IsReadOnly()||!0==r||a||(!l.$component.ce_GetDataProviderPath()&&l.$component.ce_GetDataProvider()?(t.value[s.valueMember]=1==t.value[s.valueMember]?0:1,this.update(e,t)):(n=l.$component.ce_GetDataProviderPath()+"."+t.index+"."+s.dataMember,(o={})[n]=s.cbk.invertValue(t.value[s.valueMember]),(r=new CERPCAsync).onComplete=function(){null===this.error&&(t.value[s.valueMember]=o[n]),l.$component.ce_Refresh(function(){var e;i&&(e=l.$table.children('[data-ce-row-id="'+i+'"]'),l.activateRow(e))},!1)},r.ce_ValuesSet(o,ce_GetTransactionID())))}}},C.CEDataGrid.prototype.createTextWithVersionCellRenderer=function(o){var a=this;return{update:function(e,t){var n;a.getItemMetaData(t).header?t.value&&e.html($("<span>").text(t.value[o.valueMember])):(e.children(".CE_label.CE_label-versioning").tooltip("destroy"),t.version?((n=$('<div class="flex-label-versioning">')).append($("<span>").text(t.value[o.valueMember])),a.createCellVersionLabel(n,t.version[o.valueMember]),e.html(n)):e.html($("<span>").text(t.value[o.valueMember])))},click:function(){}}},C.CEDataGrid.prototype.setHeaderText=function(e,t){e=e||"",t=parseInt(t,10);var n=this.headerColumns();!isNaN(t)&&n.length>t&&-1<t?$(n[t]).children().text(e):error("Failed to set header text! Given index is invalid!")},C.CEDataGrid.prototype.showColumn=function(t,e){t=parseInt(t,10),e=void 0===e||e;var n,o=this.headerColumns().length;!isNaN(t)&&t<o&&-1<t?(n=!e,this.$table.children().each(function(){var e=$(this);$(e.children()[t]).toggleClass("hidden",n)}),this._colsHiddenAr[t]=n):error("Failed to show/hide column! Given index is invalid!")},C.CEDataGrid.prototype.getItemMetaData=function(e){return e&&(e.metaData||e.value&&e.value.metaData)||{}},C.CEDataGrid.prototype.createCellVersionLabel=function(t,e){var n;e&&(n=e.option)&&o.createForOption(n,function(e){t.addClass("CE_version-info"),t.append(e)},function(e){error("Version info data grid, id: "+data.id+", error: "+e+", value: "+JSON.stringify(n)+", valueMember: "+param.valueMember)},{})},C.CEDataGrid.prototype.setInfoPanel=function(e){this.$target_popup||(this.$target_popup=$("<div class='CE-info-sidepanel'>").attr("hidden","true"),this.$container.append(this.$target_popup),t=this.$target_popup,(n=this.$component.find(".grid-control .lnk-infopanel")).attr("expanded","true"),n.click(function(){var e=!!t.attr("hidden");n.html((e=!e)?p.create("sideopen",!0):p.create("sideclose",!0)),t.attr("hidden",e),n.attr("expanded",e)})),this.$target_popup.html("");for(var t,n,o=this.$container.height(),a=(this.$target_popup.css("height",o),$("<table>")),i=0;i<e.length;i++){var r=e[i],s=r.type,l=$("<tr>");if("separator"==s)l.addClass("sep"),l.append($("<td>").attr("colspan",2));else if("half"==s)l.addClass("half"),l.append($("<td>").attr("colspan",2));else if("application"==s){if(r.label){l.append($("<td>").text(r.label));var c=r.name||d.appNameFromPath(r.value);l.append($("<td>").append($("<div class='CE-info-sidepanel-value'>").attr("title",c).text(c))),a.append(l),a.append($("<tr>").append($("<td>").attr("colspan",2).text(r.value)));continue}l.append($("<td>").attr("colspan",2).text(r.value))}else"path"==s||"path-nolink"==s?l.append($("<td>").attr("colspan",2).text(r.value)):(c=r.label,s=r.value,c?s?(l.append($("<td>").text(c)),s=$("<div class='CE-info-sidepanel-value'>").attr("title",s).html(d.escapeHtmlText(s)),r.icon&&s.prepend($("<div>").addClass("CE-icon").addClass(r.icon)),r=$("<td>").append(s),l.append(r)):l.append($("<td>").attr("colspan",2).text(c)):l.append($("<td>").attr("colspan",2)));a.append(l)}this.$target_popup.append(a)}})(CE_HTML.utils,CE_HTML.vars,CE_HTML.localization.getStrMap(),CE_HTML.core,CE_HTML.components,CE_HTML.svg,CE_HTML.versionLabels),((e,s,l,t)=>{l.CEFileCommon=function(e,t){l.CEObject.call(this,e,t),s.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),this.$downloadButton=$()},l.CEFileCommon.prototype=e.cloneObject(l.CEObject.prototype),l.CEFileCommon.prototype.getSaveFileProperties=function(){var e={},t=this.$component.attr("data-save-filename");return void 0!==t&&(e.name=t),void 0===e.name&&(t=this.$component.attr("data-save-properties-callback").trim()||"",e=s.callCustomScript(this.$component.ce_GetParentView().attr("id"),t,this.$component.get(0))),void 0!==e.name&&void 0===e.type&&-1!=(t=e.name.lastIndexOf("."))&&(t=e.name.substr(t+1).toLowerCase(),e.type={pfx:"application/pkcs-12",p12:"application/pkcs-12",crt:"application/pkix-cert",der:"application/x-x509-ca-cert",txt:"text/plain",csv:"text/csv",png:"image/png",gif:"image/gif",jpg:"image/jpeg",bmp:"image/bmp"}[t]),null==e.name&&(e.name="data"),void 0===e.type&&(e.type="application/octet-stream"),e},l.CEFileCommon.prototype.onDownloadClick=function(e){function t(e,t){for(var n=window.atob(e),o=n.length,a=new Uint8Array(new ArrayBuffer(o)),i=0;i<o;i++)a[i]=n.charCodeAt(i);return new Blob([a],{type:t})}var n,o,a,i=this.getSaveFileProperties();return window.navigator.msSaveOrOpenBlob?(n=t(this.getValue(),i.type),window.navigator.msSaveOrOpenBlob(n,i.name),!1):(window.URL&&window.URL.createObjectURL?(n=t(this.getValue(),i.type),o=window.URL.createObjectURL(n),this.$downloadButton.attr("href",o).attr("download",i.name),void 0===this.$downloadButton.prop("download")&&this.$downloadButton.attr("target","_blank"),a=this,setTimeout(function(){a.$downloadButton.removeAttr("href").removeAttr("download").removeAttr("target"),window.URL.revokeObjectURL(o)},0)):(this.$downloadButton.attr("href","data:"+i.type+";base64,"+this.getValue()),this.$downloadButton.attr("download",i.name)),!0)},l.CEFileCommon.prototype.computeOriginalDataSize=function(e){for(var t=0,n=e.length;"="===e[n-1];)t++,n--;return e.length/4*3-t},l.CEFileCommon.prototype.fileSizeToLabel=function(e){return 1e6<(e=e||0)?Math.round(e/1e6)+" MB":1e3<e?Math.round(e/1e3)+" kB":e+" B"},l.CEFileUpload=function(o,a){l.CEFileCommon.call(this,o,a),o.html("<div class='CE_fileUpload'> <span class='CE_glyphicon CE_glyphicon-folder-open'></span> <span class='CE_button-text CE_fileUpload-text'></span> <input type='file' class='CE_fileUpload-input' /></div><a class='CE_fileUpload-download CE_glyphicon CE_glyphicon-download-alt'></a><a class='CE_fileUpload-reset CE_glyphicon CE_glyphicon-remove'></a>"),this.$uploadFileMain=o.find(".CE_fileUpload"),this.$input=o.find("input"),this.$resetButton=o.find("a.CE_fileUpload-reset"),this.$downloadButton=o.find("a.CE_fileUpload-download"),this.$uploadTextElement=o.find("span.CE_fileUpload-text"),a.id=e.makeid(),this.$input.attr("id",a.id),this.moveAttributes(this.$input,{accept:"accept"});var i=this,n=o.attr("value")||"no",r=(this.instantUpload=o.attr("instantUpload")||"no",this.instantUploadCallback=o.attr("instantUploadCallback"),this.supportedFileSize={maxSizeMB:4,getMaxSizeBytes:function(){return 1024*this.maxSizeMB*1024},getLocalizedErrorMsg:function(){return t.uploadFileLimitReached.replace(/(\${fileSize})/gi,this.maxSizeMB)}},e.freezeObject(this.supportedFileSize),this.$input.change(function(e){var t,e=e.target.files[0];e&&(e.size>i.supportedFileSize.getMaxSizeBytes()?(error("File is too big (> "+i.supportedFileSize.maxSizeMB+" MB)!"),((t=ce_GetEraCallbacks()||null)&&t.configEngineMessage?t.configEngineMessage:alert)(i.supportedFileSize.getLocalizedErrorMsg())):(o.data("fileName",e.name),o.data("fileSize",e.size),i.refreshView(),(t=new FileReader).onload=function(e){trace("onload");var t=(e=e.target.result).indexOf(","),e=-1!=t?e.substring(t+1):"";o.data("fileContent",e),"yes"===n&&("yes"===i.instantUpload&&r(e),i.runDependencyCheckAndValidation(),i.activatePolicy()),i.onChangeScript()},t.onloadstart=function(e){trace("onloadstart")},t.readAsDataURL(e)))}),this.$resetButton.click(function(){i.$component.hasClass("CE_disabled")||(o.data("fileName",""),o.data("fileSize",""),o.data("fileContent",""),i.refreshView(),i.$input.wrap("<form>").closest("form").get(0).reset(),i.$input.unwrap(),"yes"===n&&("yes"===i.instantUpload&&r(""),i.runDependencyCheckAndValidation(),i.activatePolicy()),i.onChangeScript())}),this.addToLayout(a,!0),this.$downloadButton.click(function(e){i.onDownloadClick()}),function(e){var t={},n=(t[o.ce_GetInstancePath()]=e,new CERPCAsync);n.onComplete=function(){n.error?error("CE-upload-file: instantUpload failed"):i.instantUploadCallback&&s.callCustomScript(a.functionNamespace,i.instantUploadCallback,o.get(0))},n.ce_ValuesSet(t,ce_GetTransactionID())})},l.CEFileUpload.prototype=e.cloneObject(l.CEFileCommon.prototype),l.CEFileUpload.prototype.getFileName=function(){return this.$component.data("fileName")},l.CEFileUpload.prototype.refreshView=function(){var e=this.$component.data("fileSize"),t=this.$component.data("fileName"),n=!e&&!t;this.$component.toggleClass("has-data",!n),n?(this.$uploadTextElement.text(""),this.$input.removeAttr("title")):(n=this.fileSizeToLabel(e),t?(33<t.length&&(e=t.length,t=t.substring(0,15)+"..."+t.substring(e-15,e)),this.$input.attr("title",t)):this.$input.attr("title",""),this.$uploadTextElement.text(n))},l.CEFileUpload.prototype.setValue=function(e,t){this.$component.data("fileContent",e),this.$component.data("fileSize",this.computeOriginalDataSize(e)),this.refreshView(),!0!==t&&(this.onChangeScript(),this.runDependencyCheckAndValidation())},l.CEFileUpload.prototype.getValue=function(){return"yes"===this.instantUpload?null:this.$component.data("fileContent")||""},l.CEFileUpload.prototype.enable=function(e){e=!(e=void 0===e||e);this.$component.toggleClass("CE_disabled",e),this.$input.prop("disabled",e)}})(CE_HTML.utils,CE_HTML.core,CE_HTML.components,CE_HTML.localization.getStrMap()),((s,i,l,n,c)=>{n.CETree=function(e,t){return new("yes"===e.attr("multiple-select")?n.CETreeMultipleSelect:n.CETreeSingleSelect)(e,t)},n.CETree.prototype=s.cloneObject(n.CEObject.prototype),n.CETree.prototype.initTreeCommon=function(e,t){n.CEObject.call(this,e,t),this._multiple="yes"===e.attr("multiple-select"),this._forceStringValue="yes"===e.attr("force-string-value"),e.html("<ul class='CE_tree'></ul>"),this.$ul=e.children(),l.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),l.setCeEvents(this.$component,this.$component),l.applyComponentAttributes(e),this.addToLayout(t,!0)},n.CETree.prototype.parseValueID=function(e){return 0===(e=(e||"").trim()).length?null:this._forceStringValue?e:(e=parseInt(e,10),isNaN(e)?null:e)},n.CETree.prototype.setDataProviderData=function(e){this.$ul.empty();var n=[],o={},a=0,t=(e.forEach(function(e){var t=e.value.parent_id;e.value.data_idx=a++,(t?(void 0===o[t]&&(o[t]=[]),o[t]):n).push(e)}),this),i=$('<ul class="CE_tree"></ul>');n.forEach(function(e){t.addNode(i,e,o)}),i.children().appendTo(this.$ul),this.$component.change()},n.CETree.prototype.addNode=function(t,e,n){var o,a=this.createNewLi(e,n),i=(void 0===e.value.parent_id||""===e.value.parent_id?t.append(a.$li):(o=$('li[CE_id="'+e.value.parent_id+'"]',t),this.addItemToParent(o,a.$li,a.$data)),this);void 0!==n[e.value.id]&&n[e.value.id].forEach(function(e){i.addNode(t,e,n)})},n.CETree.prototype.createNewLi=function(e,t){var n,o=this.$component.attr("data-member-label"),a=this.$component.attr("data-member-value"),i=this.$component.attr("data-member-description"),r=this._multiple?$("<input type='checkbox' />"):$("<div></div>"),a=(r.attr("CE_value_id",l.getDataMemberValue(a,e.index,e)),r.attr("data_idx",e.value.data_idx),r.addClass("CE_tree-data-item"),$("<label></label>")),o=(a.text(l.getDataMemberLabel(o,e)),""!=i?a.attr("title",l.getDataMemberLabel(i,e)):a.attr("title",e.value.tooltip),$("<li><div class='table-main CE_max-parent-width CE_tree-data-item-table'> <div class='table-row'> <div class='table-cell CE_tree-data-column'></div> <div class='table-cell CE_tree-label-column'></div> </div></div></li>"));return o.attr("CE_id",e.value.id),o.find(".CE_tree-data-column").append(r),o.find(".CE_tree-label-column").append(a),!1===this._multiple?(n=this,a.click(function(){n.activateItem(r),n.$component.change()}),void 0!==t[e.value.id]&&a.dblclick(function(){var e=r.closest("li.CE_tree_parent"),t=e.children("ul.CE_tree"),e=e.children("div.CE_tree-collapse-table").find("span.CE_tree_collapse");t.toggle(),e.toggleClass("CE_tree_expanded")})):(r.attr("id",e.index+"_"+s.makeid()),a.attr("for",r.attr("id"))),{$li:o,$data:r}},n.CETree.prototype.addItemToParent=function(e,t,n){var o,a=e.children("ul"),i=e.find(".CE_tree-data-item:first");0===a.length&&(a=this.createParentUl(e,a,i)),this._multiple&&(n.data("parent_checkbox",i),o=this,n.click(function(e){for(var t=n.data("parent_checkbox")||$();t.length;)o.setParentState(t,!1),t=t.data("parent_checkbox")||$()})),a.append(t)},n.CETree.prototype.createParentUl=function(e,t,n){e.addClass("CE_tree_parent");var o=$("<div class='table-main CE_max-parent-width CE_tree-collapse-table'> <div class='table-row'> <div class='table-cell CE_tree-collapse-icon-column'> <span class='CE_tree_collapse'></span> </div> <div class='table-cell CE_tree-collapse-data-column'></div> </div></div>"),a=this,i=o.find("span.CE_tree_collapse"),r=(i.append(c.create("group-collapse"),c.create("group-expand")),i.click(function(){r.toggle(),i.toggleClass("CE_tree_expanded"),!1===a._multiple&&o.find("> .table-row > .CE_tree-collapse-data-column label").click()}),o.find(".CE_tree-collapse-data-column").append(e.children(".CE_tree-data-item-table")),$("<ul class='CE_tree'></ul>"));return r.hide(),e.prepend("<hr>"),e.append(o),e.append(r),t=r,a._multiple&&n.click(function(e){a.setAllChildren(t,n.prop("checked"))}),t},n.CETree.prototype.setAllChildren=function(e,t){e=e.find(".CE_tree-data-item");e.prop("checked",t),e.prop("indeterminate",!1)},n.CETree.prototype.setSelectedItem=function(e,t){this.setValue(e)},n.CETree.prototype.getAllSelectedIndexes=function(){throw"Not implemented yet"},n.CETree.prototype.getAllSelectedData=function(){return this.getSelectedItemData()},n.CETree.prototype.setItemState=function(n,o){var a=this;a.$ul.find("[CE_value_id]").each(function(){var e=$(this),t=e.attr("CE_value_id")||"";return!t.length||t!=n||(t=e.closest("li"),o==i.visibilityStates.visible?(t.show(),a.enableElement(t,!0)):o==i.visibilityStates.disabled?(t.show(),a.enableElement(t,!1)):o==i.visibilityStates.hidden?t.hide():error("CETree - unknown dependency check status: "+o+" for item: "+n),!1)})},n.CETreeSingleSelect=function(e,t){n.CETree.prototype.initTreeCommon.call(this,e,t)},n.CETreeSingleSelect.prototype=s.cloneObject(n.CETree.prototype),n.CETreeSingleSelect.prototype.getValue=function(){var e=this.getActivatedItem();return e.length?this.parseValueID(e.attr("CE_value_id")):null},n.CETreeSingleSelect.prototype.setValue=function(n,e){var o=this;this.$ul.find("div[CE_value_id]").each(function(){var e=$(this),t=o.parseValueID(e.attr("CE_value_id"));return null===t||t!==n||(o.activateItem(e),e.closest("ul.CE_tree").show().siblings("div").find("span.CE_tree_collapse").addClass("CE_tree_expanded"),!1)}),!0!==e&&this.$component.change()},n.CETreeSingleSelect.prototype.activateItem=function(e){this.$ul.find(".CE_tree_selected_item").removeClass("CE_tree_selected_item"),e.closest("li").find(".CE_tree-label-column > label:first").addClass("CE_tree_selected_item")},n.CETreeSingleSelect.prototype.getActivatedItem=function(){return this.$ul.find("label.CE_tree_selected_item:first").closest("li").find(".CE_tree-data-column > div[CE_value_id]")},n.CETreeSingleSelect.prototype.getSelectedItemData=function(){var e=this.getActivatedItem();return e.length?this.$component.ce_GetDataProvider()[e.attr("data_idx")]:null},n.CETreeSingleSelect.prototype.getAllSelectedData=function(t){var e,n,o=[],a=this.getActivatedItem();return a.length&&(e=this.$component.ce_GetDataProvider(),n=e[a.attr("data_idx")],o.push(t?t(n):n),""===n.value.parent_id)&&jQuery.each(e,function(e){this.value.parent_id===n.value.id&&o.push(t?t(this):this)}),o},n.CETreeSingleSelect.prototype.getAllSelectedIndexes=function(){return this.getAllSelectedData(function(e){return e.index})},n.CETreeSingleSelect.prototype.readOnly=function(e){this.$component.toggleAttr("readonly","yes",!!e)},n.CETreeMultipleSelect=function(e,t){n.CETree.prototype.initTreeCommon.call(this,e,t),this._invertedValues="yes"===e.attr("multiple-select-inverse-value")},n.CETreeMultipleSelect.prototype=s.cloneObject(n.CETree.prototype),n.CETreeMultipleSelect.prototype.normalizeInverted=function(e){return this._invertedValues?!e:e},n.CETreeMultipleSelect.prototype.iterateCheckedItems=function(t){var n=this;n.$ul.find("li").find("input").each(function(){var e=$(this);n.normalizeInverted(e.prop("checked"))&&t&&t(e)})},n.CETreeMultipleSelect.prototype.getValue=function(){var t=[],n=this;return this.iterateCheckedItems(function(e){e=n.parseValueID(e.attr("CE_value_id"));null!==e&&("number"!==jQuery.type(e)||-1<e)&&t.push(e)}),t},n.CETreeMultipleSelect.prototype.setAllParentStates=function(){var t=this;t.$ul.find("li.CE_tree_parent").each(function(){var e=$(this).find("> .CE_tree-collapse-table .CE_tree-data-item-table .CE_tree-data-column > input");t.setParentState(e,!0)})},n.CETreeMultipleSelect.prototype.setParentState=function(e,t){t=this.computeParentState(e,t);t.all_checked?(e.prop("checked",!0),e.prop("indeterminate",!1)):t.all_unchecked?(e.prop("checked",!1),e.prop("indeterminate",!1)):(e.prop("checked",!1),e.prop("indeterminate",!0))},n.CETreeMultipleSelect.prototype.computeParentState=function(e,o){var a=this,i=!0,r=!0;return e.closest("li.CE_tree_parent").children("ul.CE_tree").children("li").each(function(e){var t=$(this),n=$();t.is(".CE_tree_parent")?(n=t.find("> .CE_tree-collapse-table .CE_tree-data-item-table .CE_tree-data-column > input"),o&&a.setParentState(n,!0),n.prop("indeterminate")&&(r=i=!1)):n=t.find("> .CE_tree-data-item-table .CE_tree-data-column > input"),n.prop("checked")?r=!1:i=!1}),{all_checked:i,all_unchecked:r}},n.CETreeMultipleSelect.prototype.setValue=function(n,e){var o=this;o.$ul.find("li").find("input").each(function(){var e=$(this),t=o.parseValueID(e.attr("CE_value_id"));null!==t&&-1<jQuery.inArray(t,n)?e.prop("checked",o.normalizeInverted(!0)):e.prop("checked",o.normalizeInverted(!1))}),o.setAllParentStates(),!0!==e&&this.$component.change()},n.CETreeMultipleSelect.prototype.getSelectedItemData=function(){var t=[],n=this.$component.ce_GetDataProvider();return this.iterateCheckedItems(function(e){t.push(n[e.attr("data_idx")])}),t},n.CETreeMultipleSelect.prototype.getAllSelectedIndexes=function(){var t=[],n=this.$component.ce_GetDataProvider();return this.iterateCheckedItems(function(e){t.push(n[e.attr("data_idx")].index)}),t},n.CETreeMultipleSelect.prototype.readOnly=function(e){e=!!e;this.$component.toggleAttr("readonly","yes",e),!0!==this._readOnlyIgnored&&this.$ul.find("input").prop("disabled",e)}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.core,CE_HTML.components,CE_HTML.svg),((a,i,r,s)=>{s.CEBitCheckList=function(e,t){s.CEObject.call(this,e,t),this.mask=0,this.value=0,this.isArray="yes"===this.$component.attr("is-array"),this.invert="yes"===this.$component.attr("data-invert-value");var e=this.$component.attr("ce-flow-cols"),n=this.$component.attr("ce-flow-rows"),o=((e||n)&&(this.hasMultipleColumns=!0,this.$component.css("display","grid"),e?(this.$component.css("grid-template-columns",`repeat(${e}, 1fr)`),this.$component.css("column-gap","10px")):(this.$component.css("grid-auto-flow","column"),this.$component.css("grid-template-rows",`repeat(${n}, 1fr)`))),[]);this.$component.children(".CE-option").each(function(){var e=$(this);o.push({label:s.get_element_label(e)||"",value:e.attr("value")||"",id:e.attr("id")||a.makeid()})}),o.length&&(e&&(n=Math.ceil(o.length/e.toInteger()),0!=(e=e.toInteger()*n-o.length))&&(o[o.length-1].lastColumnSpan=1+e),this.$component.attr("data-member-value","value"),this.$component.data("ceDataProvider",o)),this.setDataProviderData(o),r.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),r.setCeEvents(this.$component,this.$component),this.addToLayout(t,!0)},s.CEBitCheckList.prototype=a.cloneObject(s.CEObject.prototype),s.CEBitCheckList.prototype.getValue=function(){return this.value},s.CEBitCheckList.prototype.setValue=function(o,e){if(this.isArray){if(!Array.isArray(o))return;this.value=o,this.value.sort((e,t)=>e-t)}else this.value=(o&this.mask)>>>0;var a=this;this.$component.children("label").each(function(){var e=$(this),t=e.children("input"),n=!1;a.isArray?n=a.value.includes(e.attr("value").toInteger()):(n=0!=(e.attr("value").toInteger()&o),a.invert&&(n=!n)),t.prop("checked",n)}),!0!==e&&this.$component.change()},s.CEBitCheckList.prototype.setItemState=function(o,a){o=""+o,this.$component.children("label").each(function(){var e,t,n=$(this);if(n.attr("value")!==o)return!0;if(a==i.visibilityStates.visible)t=e=!0;else if(a==i.visibilityStates.disabled)t=!(e=!1);else{if(a!=i.visibilityStates.hidden)return error("CEBitCheckList - unknown dependency check status: "+a+" for item: "+o),!1;t=e=!1}return n.toggleClass("CE_disabled",!e),n.children().prop("disabled",!e),n.toggle(t),n.next().toggle(t),!1})},s.CEBitCheckList.prototype.addItem=function(e,t,n){var o=$("<label />"),a=this;o.attr("value",e),o.attr("id",n.id),$('<input type="checkbox" />').change(function(){var e=$(this),t=e.parent().attr("value").toInteger(),e=e.prop("checked");a.isArray?e?a.value.includes(t)||(a.value.push(t),a.value.sort((e,t)=>e-t)):a.value=a.value.filter(e=>e!==t):(a.invert&&(e=!e),a.value=e?(a.value|t)>>>0:(a.value&(a.mask^t))>>>0),a.runDependencyCheckAndValidation(),a.activatePolicy()}).appendTo(o),$(document.createTextNode(t)).appendTo(o),n.lastColumnSpan&&o.css("grid-column","span "+n.lastColumnSpan),this.$component.append(o),this.hasMultipleColumns||this.$component.append("<br/>"),this.isArray||(this.mask=(this.mask|e.toInteger())>>>0)},s.CEBitCheckList.prototype.removeItems=function(){this.$component.html("")}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.core,CE_HTML.components),((c,l,d,a,i)=>{i.CERadio=function(e,t){return new("horizontal"===e.attr("display_mode")?i.CERadioHorizontal:i.CERadioVertical)(e,t)},i.CERadioCommon=function(e,t){i.CEObject.call(this,e,t);var e=this.$component.attr("id"),n=(this._radioGroupName=e?e+"-radio":(this.$component.attr("path_part")||"")+"_"+c.makeid(),[]),o=(this.$component.children(".CE-option").each(function(){var e=$(this);n.push({label:i.get_element_label(e)||"",value:e.attr("value")||"",desc:e.attr("desc")||""})}),n.length&&(this.$component.attr("data-member-value","value"),this.$component.data("ceDataProvider",n)),this.createMainElement(),this.$mainElement=this.$component.children(),this.setDataProviderData(n),a.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),a.setCeEvents(this.$component,this.$component),this);this.$component.change(function(){o.runDependencyCheckAndValidation(),o.activatePolicy(),o.refreshAssignedVersionLabels()}),this.addToLayout(t)},i.CERadioCommon.prototype=c.cloneObject(i.CEObject.prototype),i.CERadioCommon.prototype.isHorizontal=function(){return"horizontal"===this.$component.attr("display_mode")},i.CERadioCommon.prototype.setDataProviderData=function(e){i.CEObject.prototype.setDataProviderData.call(this,e),this.$component.find('input[type="radio"]:first').prop("checked",!0)},i.CERadioCommon.prototype.getValue=function(){var e=this.$component.find('input[type="radio"]:checked');return e.length?e.val():null},i.CERadioCommon.prototype.setValue=function(e,t){e=this.$component.find('input[type="radio"][value="'+e.toString()+'"]');e.length&&!0!==e.prop("disabled")&&(e.prop("checked",!0),t?this.refreshAssignedVersionLabels():this.$component.change())},i.CERadioCommon.prototype.getSelectedItemData=function(){return this.$component.find('input[type="radio"]:checked').data("ceData")},i.CERadioCommon.prototype.setItemsDepedencyCheck=function(e){var t=this.getValue();i.CEObject.prototype.setItemsDepedencyCheck.call(this,e),t!==this.getValue()&&(this.onChangeScript(),this.refreshAssignedVersionLabels())},i.CERadioCommon.prototype.isVersionLabelsAssignSupported=function(){return!0},i.CERadioCommon.prototype.removeItems=function(){this.$mainElement.children().remove()},i.CERadioCommon.prototype.createNewRadioElement=function(e,t){var n=$('<input type="radio" />');return n.attr("name",this._radioGroupName),n.attr("id",this._radioGroupName+"_val_"+e),n.val(e),n.data("ceData",t),n},i.CERadioCommon.prototype.enable=function(e){this.$component.toggleClass("CE_disabled",!(e=void 0===e||e)),e?this.getAllowedItems().find('input[type="radio"]').prop("disabled",!1):this.$mainElement.find('input[type="radio"]').prop("disabled",!0)},i.CERadioCommon.prototype.enableRadioItem=function(e,t,n){n.toggleClass("CE_disabled",!e),t.prop("disabled",!e)},i.CERadioCommon.prototype.showRadioItem=function(e,t,n){n.toggle(e)},i.CERadioCommon.prototype.setItemState=function(a,i,r){r=void 0!==r&&r,a=""+a;var s=this;this.$component.find('input[type="radio"]').each(function(){if(this.value!==a)return!0;var e,t,n=$(this);if(i==l.visibilityStates.visible)t=e=!0;else if(i==l.visibilityStates.disabled)t=!(e=!1);else{if(i!=l.visibilityStates.hidden)return error("CERadio - unknown dependency check status: "+i+" for item: "+a),!1;t=e=!1}var o=s.getRadioLayoutElements(n);return s.enableRadioItem(e,n,o),s.showRadioItem(t,n,o),t?0===s.$component.find('input[type="radio"]:checked').length&&(n.prop("checked",!0),!1===r)&&s.onChangeScript():n.prop("checked")&&(n.prop("checked",!1),s.$component.find('input[type="radio"]:enabled').first().prop("checked",!0),!1===r)&&s.onChangeScript(),!1})},i.CERadioVertical=function(e,t){i.CERadioCommon.call(this,e,t)},i.CERadioVertical.prototype=c.cloneObject(i.CERadioCommon.prototype),i.CERadioVertical.prototype.createMainElement=function(){this.$component.html("<div class='table-main CE_max-parent-width'></div>")},i.CERadioVertical.prototype.getRadioLayoutElements=function(e){e=e.closest(".CE_radio-data-row");return e=e.next().hasClass("CE_radio-desc-row")?e.add(e.next()):e},i.CERadioVertical.prototype.getAllowedItems=function(){return this.$mainElement.children(".CE_radio-data-row:not(.CE_disabled)")},i.CERadioVertical.prototype.addItem=function(e,t,n){var e=this.createNewRadioElement(e,n),o=$("<label></label>"),t=(o.attr("for",e.attr("id")),o.text(t),$("<div class='table-row CE_radio-data-row'> <div class='table-cell CE_radio-input-column'></div> <div class='table-cell CE_radio-label-column'></div> </div>")),a=$("<div class='table-row CE_radio-desc-row'> <div class='table-cell CE_radio-input-column'></div> <div class='table-cell CE_radio-label-column'></div> </div>"),e=(t.find(".CE_radio-input-column").append(e),t.find(".CE_radio-label-column").append(o),this.$mainElement.append(t),n&&n.desc||"");e&&(a.find(".CE_radio-label-column").append($("<p></p>").text(e)),this.$mainElement.append(a))},i.CERadioHorizontal=function(e,t){i.CERadioCommon.call(this,e,t)},i.CERadioHorizontal.prototype=c.cloneObject(i.CERadioCommon.prototype),i.CERadioHorizontal.prototype.createMainElement=function(){this.$component.html("<div class='CE_flex-container'></div>")},i.CERadioHorizontal.prototype.addItem=function(t,e,n){function o(){return{container:"body",placement:d.directionLTR?"CE_left":"CE_right",trigger:"hover",html:!0,delay:{show:1200,hide:0}}}var a,i,r,s=this.createNewRadioElement(t,n),l=$("<div class='CE_flex-item'><label></label></div>"),l=(l.children().append(s),this.$mainElement.append(l),n&&n.desc||"");this.hasCeEvent("ontooltip")?(a=this,(r=o()).title=function(){a.$component.prop("tooltip-control",t);var e=a.onTooltipScript()||"";return e?c.escapeHtmlText(e):""},s.tooltip(r)):l&&(i=c.escapeHtmlText(l),(r=o()).title=function(){return i},s.tooltip(r))},i.CERadioHorizontal.prototype.getRadioLayoutElements=function(e){return e.closest(".CE_flex-item")},i.CERadioHorizontal.prototype.getAllowedItems=function(){return this.$mainElement.children(".CE_flex-item:not(.CE_disabled)")},i.CERadioHorizontal.prototype.showRadioItem=function(e,t,n){t.css("visibility",e?"":"hidden")},i.CERadioHorizontalHeader=function(e,t){i.CEObject.call(this,e,t),this.$component.children(".CE-option").each(function(){var e=$(this),t=i.get_element_label(e)||"";e.attr("title",t),e.text(t)}),this.storeLayoutElements(t.layout.addToLayout(e,void 0,{rowClass:"CE_has-label-as-header"})),this._layout.labelColumn.wrapInner("<h3></h3>")},i.CERadioHorizontalHeader.prototype=c.cloneObject(i.CEObject.prototype),i.CERadioHorizontalHeader.prototype.readOnly=function(e){this.toggleReadOnlyAttr(e)}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.vars,CE_HTML.core,CE_HTML.components),((s,l,e,o,a)=>{e.ce_plugins.autocomplete={on:function(){$(o.cex_window().document).on("click.ce.autocomplete.document",function(e){$(".CE-autocomplete.CE-autocomplete-visible").each(function(){$(this).trigger("clearmenu.ce.autocomplete",e.target)})})},off:function(){$(o.cex_window().document).off("click.ce.autocomplete.document")}},a.CEAutocomplete=function(e,t,n,o,a){var i=this;this.params={show_on_focus:!1,show_on_click:!0,show_on_change:!0,show_on_down_key:!0,request_on_change:!0,clear_on_close:!1,icon:a},$.each((o||"").split(" "),function(){this.length&&("!"==this[0]?i.params[this.substr(1).trim().replace(/-/g,"_")]=!1:i.params[this.trim().replace(/-/g,"_")]=!0)}),this.params.screen_callback=t,this.params.function_namespace=n,this.state=$.extend({},this.params,{value:"",show:!1}),this.ref=e,this.$input=this.ref.$input,this.$autocomplete=$('<ul class="CE-autocomplete" tabindex="-1" />'),""!==(this.params.icon||"")&&(a="")!==(a="user-management"===this.params.icon?"CE_glyphicon-user":a)&&(this.$icon=$('<span class="CE-autocomplete-icon CE_glyphicon '+a+'"></span>'),this.$icon.click(function(e){return i.toggle(),i.$input.focus(),$(".CE-autocomplete.CE-autocomplete-visible").each(function(){$(this).is(i.$autocomplete)||$(this).trigger("clearmenu.ce.autocomplete",e.target)}),e.stopImmediatePropagation(),s.stopEvent(e)}),this.$input.after(this.$icon)),this.$autocomplete.on("clearmenu.ce.autocomplete",function(e,t){return $(t).closest(".CE-autocomplete").length||t==i.$input[0]?i.$input.focus():i.close({restore:!0}),s.stopEvent(e)}),this.$input.after(this.$autocomplete),this.$input.focus(function(){i.state.show_on_focus&&i.show()}),this.$input.click(function(){i.state.show_on_click&&i.show()}),this.$input.keydown(function(e){return i.onKey(e,{handler:"down"})}),this.$input.keypress(function(e){return i.onKey(e,{handler:"press"})}),this.$input.keyup(function(e){return i.onKey(e,{handler:"up"})}),this.$input.on("input",function(e){i.state.show_on_change?i.show():i.state.request_on_change&&i.getValue()!=i.state.value&&i.requestData(),i.state.value=i.getValue()})},a.CEAutocomplete.prototype.onKey=function(e,t){var n=e.keyCode||e.which,o=(t=$.extend({handler:"press"},t),!1);if(this.$autocomplete.hasClass("CE-autocomplete-visible")){var a,i=this.$autocomplete.children(".CE-autocomplete-item-selected");switch(n){case l.keyboardKeys.VK_TAB:"down"===t.handler&&this.close({restore:!0});break;case l.keyboardKeys.VK_UP:case l.keyboardKeys.VK_DOWN:case l.keyboardKeys.VK_PAGEDOWN:case l.keyboardKeys.VK_PAGEUP:"down"===t.handler&&0!==(i=this.$autocomplete.nextItem(i,n,".CE-autocomplete-item-selectable",{cycle:!0})).length&&(this.$autocomplete.children().removeClass("CE-autocomplete-item-selected"),i.addClass("CE-autocomplete-item-selected"),this.scrollTo(i),(a=i.data("ce-autocomplete.item")).selectable)&&this.setValue(a.value,{temporary:!0}),o=!0;break;case l.keyboardKeys.VK_ESCAPE:"down"===t.handler&&(this.close({restore:!0}),this.$input.focus()),o=!0;break;case l.keyboardKeys.VK_RETURN:"down"===t.handler&&this.close({forced:!0}),o=!0}}else n===l.keyboardKeys.VK_DOWN&&"down"===t.handler&&this.params.show_on_down_key&&(this.show(),o=!0);var r=!0;return o?(r=e.stopImmediatePropagation(),s.stopEvent(e)):r},a.CEAutocomplete.prototype.requestData=function(){this.state.show&&o.callCustomScript(this.params.function_namespace,this.params.screen_callback,this.ref.$component.get(0),[this.getValue(),this.ref.$component])},a.CEAutocomplete.prototype.getValue=function(){return this.$input.val()},a.CEAutocomplete.prototype.setValue=function(e,t){(t=$.extend({temporary:!1,forced:!1},t)).temporary||e===this.state.value&&(t.temporary=!0),this.$input.val(e),t.temporary&&!t.forced||(this.$input.keyup(),this.$input.keydown(),this.$input.trigger("input"))},a.CEAutocomplete.prototype.setData=function(e){var o=this,a=this.$autocomplete;a.html(""),$.each(e,function(){var t=$.extend({},{value:"",text:this.value,selectable:!0,separator:this.separator},this),n=$('<li class="CE-autocomplete-item disable-text-selection" tabindex="-1" />');t.separator&&n.addClass("CE-autocomplete-separator"),t.html?n.html(t.html):n.text(t.text),t.selectable&&(n.addClass("CE-autocomplete-item-selectable"),n.on("mouseenter.ce.autocomplete",function(e){a.children().removeClass("CE-autocomplete-item-selected"),n.addClass("CE-autocomplete-item-selected")}),n.on("mousedown.ce.autocomplete",function(e){t.selectable&&(o.setValue(t.value,!0),o.close({force:!0}),o.$input.focus())}),n.data("ce-autocomplete.item",t)),a.append(n)}),this.hasData()&&this.state.show?this._show():this._hide()},a.CEAutocomplete.prototype.hasData=function(){return 0<this.$autocomplete.children().length},a.CEAutocomplete.prototype.show=function(){this.state.show=!0,this.requestData(),this._show()},a.CEAutocomplete.prototype._show=function(){var e,t,n=this;this.$autocomplete.hasClass("CE-autocomplete-visible")||this.hasData()&&(this.state.value=this.getValue(),e={width:this.$input.outerWidth()},a.view.isInsideModal(this.ref.$component.ce_GetParentView())&&(t=this.$input.offset(),e.top=t.top+this.$input.outerHeight()+"px",e.left=t.left+"px"),this.$autocomplete.css(e),this.$autocomplete.children(".CE-autocomplete-item-selectable").each(function(){($item=$(this)).removeClass("CE-autocomplete-item-selected");var e=$item.data("ce-autocomplete.item");e.selectable&&e.value===n.state.value&&($item.addClass("CE-autocomplete-item-selected"),n.scrollTo($item))}),this.$autocomplete.addClass("CE-autocomplete-visible"))},a.CEAutocomplete.prototype._hide=function(){this.$autocomplete.hasClass("CE-autocomplete-visible")&&this.$autocomplete.removeClass("CE-autocomplete-visible")},a.CEAutocomplete.prototype.toggle=function(){this.$autocomplete.hasClass("CE-autocomplete-visible")?this.hide():this.show()},a.CEAutocomplete.prototype.hide=function(){this.state.show=!1,this._hide()},a.CEAutocomplete.prototype.close=function(e){e=$.extend({restore:!1,forced:!1},e);var t=this,n=t.state.value;e.restore||(n=t.getValue()),t.setValue(n,e),t.state.show_on_focus=!1,t._hide(),t.state.clear_on_close&&t.$autocomplete.html(""),setTimeout(function(){t.state.show_on_focus=t.params.show_on_focus},50)},a.CEAutocomplete.prototype.scrollTo=function(e){this.$autocomplete.vscrollTo(e,{height:200})},a.CEAutocomplete.prototype.enable=function(e){this.$autocomplete.toggle(e=void 0===e||!!e),this.$icon.toggle(e)},a.CEInputBoxCommon=function(e,t){a.CEObject.call(this,e,t)},a.CEInputBoxCommon.prototype=s.cloneObject(a.CEObject.prototype),a.CEInputBoxCommon.prototype.setSelection=function(e,t){var n=this.$input.get(0);e=e||0,t=t||this.$input.val().length,n.setSelectionRange?(this.$input.focus(),n.setSelectionRange(e,t)):n.createTextRange&&((n=n.createTextRange()).collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select())},a.CEInputBoxCommon.prototype.setFocus=function(){this.$input.focus()},a.CEInputBoxCommon.prototype.createInputFilter=function(e,t){var n,o=this;if(e&&e.length){var a;switch(e){case"profile-name":case"profil-name":case"group-name":a=/[^<>&#@$]/g;break;default:n=e.replace(/\-/g,"\\-").replace(/~/g,"-").replace(/\]/g,"\\]"),"~"===e[e.length-1]&&(n=n.slice(0,n.length-1)+"~"),a=new RegExp("["+n+"]","g")}this.$input.keypress(function(e){if(0!==e.which&&0!==e.charCode&&!e.ctrlKey&&!e.metaKey&&!e.altKey){var t=e.keyCode||e.which,t=String.fromCharCode(t),n=t.match(a);if(t.length&&null===n)return trace("filtered: "+t),s.stopEvent(e)}return!0})}this.$input.on("input",function(){o.$component.ce_IsReadOnly()||t()})},a.CEInputBoxCommon.prototype.getValue=function(){return this.$input.val()},a.CEInputBoxCommon.prototype.setValue=function(e,t){this.$input.val(e),!0!==t&&(this.onChangeScript(),this.runDependencyCheckAndValidation())},a.CEInputTextNoKeyFilter=function(e,t){return e.removeAttr("filter"),new a.CEInputText(e,t)},a.CEInputText=function(e,t){a.CEInputBoxCommon.call(this,e,t);var e=e.attr("id"),n=(t.id=e?e+"-input-text":s.makeid(),this.trimDisabled="yes"===this.$component.attr("trim-disabled"),this.multiline="yes"===this.$component.attr("multi-line"),this.multiline?(this.$component.html('<textarea class="CE_form-control" rows="4" cols="25" />'),this.disableOverlay=!0):(this.$component.html("<input class='CE_form-control' type='text' />"),this.disableOverlay=!1),this.$input=this.$component.children(),this.$input.attr("id",t.id),this.$input.attr("maxlength",parseInt(this.$component.attr("maxlength"),10)||32768),this.moveAttributes(this.$input,{style:"style"}),!1===s.msieversion()&&this.moveAttributes(this.$input,{placeholder:"placeholder"}),o.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),o.setCeEvents(this.$component,this.$component,{change:!1}),this.$component.attr("autocomplete-data")&&(this.autocomplete=new a.CEAutocomplete(this,this.$component.attr("autocomplete-data"),t.functionNamespace,this.$component.attr("autocomplete-params"),this.$component.attr("autocomplete-icon"))),this);this.createInputFilter(this.$component.attr("filter")||"",function(){n.activatePolicy(),n.onChangeScript(),n.runDependencyCheckAndValidationDelayed()}),this.$component.change(function(){n.runExistingDelayedDependencyCheckAndValidationAtOnce()}),this.addToLayout(t,!0)},a.CEInputText.prototype=s.cloneObject(a.CEInputBoxCommon.prototype),a.CEInputText.prototype.getValue=function(){var e=a.CEInputBoxCommon.prototype.getValue.call(this);return this.multiline||this.trimDisabled?e:e.trim()},a.CEInputText.prototype.supportsAutocomplete=function(){return!!this.autocomplete},a.CEInputText.prototype.setAutocompleteData=function(e){this.autocomplete.setData(e)},a.CEInputText.prototype.hasAutocompleteData=function(){return this.autocomplete.hasData()},a.CEInputText.prototype.enableAutocomplete=function(e){return this.autocomplete.enable(e)},a.CEInputText.prototype.readOnly=function(e,t){this.$component.toggleAttr("readonly","yes",e=void 0===e||e),!0!==this._readOnlyIgnored&&(this._layout.table.hasClass("CE_configuration")?(this.disableOverlay?(this.toggleOverlay(e,{onlyLockIcon:!0,userSetting:t}),e?this.$input.attr("readonly","readonly"):this.$input.removeAttr("readonly")):this.toggleOverlay(e,{userSetting:t}),this.togglePolicy(e),this.toggleTabOrderAndFocus(e)):this.enable(!e))}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.vars,CE_HTML.core,CE_HTML.components),((s,l,c,d)=>{c.CEInputNumber=function(e,t){c.CEInputBoxCommon.call(this,e,t);var n,o=[],e=(this.$component.children(".CE-multiplier").each(function(){var e,t=c.get_element_label($(this))||"",n=parseInt($(this).attr("value")||"",10);return""===t||NaN===n||0===n?error("bad multiplier custom value"):((e={}).label=t,e.value=n,o.push(e)),!0}),this.replaceValueRegex=/(<VALUE>)|(<VALUE>)|(<VALUE>)|(\${Value})/g,this.$component.html('<input class="CE_form-control" type="number" />'),this.$input=this.$component.children(),e.attr("id")),e=(t.id=e?e+"-input-number":s.makeid(),this.$input.attr("id",t.id),"no"===(this.$component.attr("value")||"no")&&this.moveAttributes(this.$input,{minvalue:"min",maxvalue:"max"}),this.$input.val(this.$input.attr("min")||0),this.$input.attr("step","1"),this.supportedRange={minValue:-9007199254740991,maxValue:9007199254740991},s.freezeObject(this.supportedRange),"yes"===this.$component.attr("negative-value")),a=(this.minValue=this.supportedRange.minValue,this.maxValue=this.supportedRange.maxValue,""===(this.$input.attr("min")||"")?e?this.$input.attr("min",this.minValue):(this.$input.attr("min",0),this.minValue=0):(n=parseInt(this.$input.attr("min"),10),!1===isNaN(n)&&(this.minValue=Math.max(this.supportedRange.minValue,n))),""===(this.$input.attr("max")||"")?this.$input.attr("max",this.maxValue):(n=parseInt(this.$input.attr("max"),10),!1===isNaN(n)&&(this.maxValue=Math.min(this.supportedRange.maxValue,n))),this.$component.attr("multiplier")||""),i=this;if(""!==a){var r=function(e){var o=$("<select class='CE_form-control'></select>");jQuery.each(e,function(e,t){var n=$("<option></option>");n.text(t.label),n.val(t.value),o.append(n)}),i.$component.addClass("CE_units"),i.$component.append(o)};switch(a){case"filesize":r([{label:d.fileSizeB,value:1},{label:d.fileSizeKB,value:1024},{label:d.fileSizeMB,value:1048576},{label:d.fileSizeGB,value:1073741824}]);break;case"time":r([{label:d.timeDays,value:1},{label:d.timeWeeks,value:7},{label:d.timeMonths,value:30},{label:d.timeYears,value:365}]);break;case"timeSecMinHours":r([{label:d.timeSeconds,value:1},{label:d.timeMinutes,value:60},{label:d.timeHours,value:3600}]);break;case"custom":o.length&&r(o);break;default:error("unknown multiplier '"+a+"'")}}t.isCloned&&t.$originalComponent.find("select").length&&0===this.$component.find("select")?.length&&(this.$component.addClass("CE_units"),this.$component.append(t.$originalComponent.find("select").clone())),this.$multiplier=this.$component.find("select"),this.moveAttributes(this.$input.add(this.$multiplier),{style:"style"}),this.$multiplier.length&&(void 0!==this.$component.attr("multiplier-hidden")&&(this.$component.removeClass("CE_units"),this.$multiplier.hide()),this.updateMinMax()),l.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),l.setCeEvents(this.$component,this.$component,{change:!1}),this.createInputFilter(e?"-0~9":"0~9",function(){i.cropLongInput(),i.activatePolicy(),i.onChangeScript(),i.runDependencyCheckAndValidationDelayed()}),this.$input.blur(function(){i.runExistingDelayedDependencyCheckAndValidationAtOnce()}),this.$input.click(function(){i.$input.focus()}),this.$multiplier.change(function(){i.updateMinMax(),i.activatePolicy(),i.onChangeScript(),i.runDependencyCheckAndValidation()}),this.addToLayout(t,!0)},c.CEInputNumber.prototype=s.cloneObject(c.CEInputBoxCommon.prototype),c.CEInputNumber.prototype.cropLongInput=function(){var e=this.$input.val();15<e.length&&(trace("crop long input..."),this.$input.val(e.substr(0,15)))},c.CEInputNumber.prototype.getMultiplierValue=function(){var e,t=1;return this.$multiplier.length&&(e=this.$multiplier.val(),t=parseInt(e,10)),t},c.CEInputNumber.prototype.updateMinMax=function(){var e=this.computeMinMax(this.getMultiplierValue());this.$input.attr("min",e.min),this.$input.attr("max",e.max)},c.CEInputNumber.prototype.computeMinMax=function(e){function t(e,t){return t=e<0?-t:t}return{min:Math.max(this.supportedRange.minValue,t(this.minValue,Math.floor((Math.abs(this.minValue)+e-1)/e))),max:Math.min(this.supportedRange.maxValue,t(this.maxValue,Math.floor(Math.abs(this.maxValue)/e)))}},c.CEInputNumber.prototype.getValueInternal=function(){var e=this.$input.val().trim();return null===e.match(/^[-]?\d+\s*$/)?NaN:parseInt(e,10)*this.getMultiplierValue()},c.CEInputNumber.prototype.getValue=function(){var e=this.getValueInternal();return e<this.supportedRange.minValue?this.supportedRange.minValue:e>this.supportedRange.maxValue?this.supportedRange.maxValue:e},c.CEInputNumber.prototype.setValue=function(e,t){var n=parseInt(e,10);if(isNaN(n))error("Value is not a number!");else{var o=function(e,t,n,o){e.$input.val(n),void 0!==o&&e.$multiplier.val(o)};if(this.$multiplier.length){var a=[],e=(this.$multiplier.children("option").each(function(){a.push(parseInt($(this).val(),10))}),a.sort(s.compareValues),a[0]);if(0!==n){a.reverse();for(var i=!1,r=0;r<a.length;r++)if(n%a[r]==0){o(this,0,n/a[r],a[r]),i=!0;break}!1===i&&o(this,0,(n=Math.ceil(n/e)*e)/e,e)}else o(this,0,0,e);this.updateMinMax()}else o(this,0,n);!0!==t&&(this.onChangeScript(),this.runDependencyCheckAndValidation())}},c.CEInputNumber.prototype.validate=function(e){function t(e){return o.$component.ce_SetValidationStatus("CE_RET_ERR",e),!1}var o=this,n=function(e){var t=o.$component.find("select > option:first"),n=parseInt(t.val(),10)||1,t=t.text()||"",n=o.computeMinMax(n),e=e?n.min:n.max;return t.length?e+" "+t:e+""};if(e=void 0===e||e)this.$component.ce_ClearValidationStatus();else if(this.$component.ce_IsInvalid())return!1;var a,e=this.getValueInternal();return isNaN(e)?t(d.valueIsNaN):(a=e<this.minValue,e=e>this.maxValue,a?t(d.valueOutOfRangeMinValueIs.replace(this.replaceValueRegex,n(!0))):!e||t(d.valueOutOfRangeMaxValueIs.replace(this.replaceValueRegex,n(!1))))}})(CE_HTML.utils,CE_HTML.core,CE_HTML.components,CE_HTML.localization.getStrMap()),((o,a,i,r,s)=>{r.CEInputPassword=function(e,t){r.CEInputBoxCommon.call(this,e,t),this.$component.html("<form onsubmit='return false;' autocomplete='off'> <input class='CE_form-control' type='password' autocomplete='off' autocorrect='off' autocapitalize='off' /> <input class='CE_form-control' type='text' autocomplete='off' autocorrect='off' autocapitalize='off' /></form>"),this.$inputPass=this.$component.find('input[type="password"]'),this.$inputText=this.$component.find('input[type="text"]'),this.$inputs=$().add(this.$inputPass).add(this.$inputText),this.$input=this.$inputPass,this._passVisible=!1,this._passAssigned=!1;var e=e.attr("id"),n=(t.id=e?e+"-input-password":o.makeid(),this.$input.attr("id",t.id),this.$component.children("form").prepend("<input type='password' hidden='hidden' />"),this.moveAttributes(this.$inputs,{style:"style"}),!1===o.msieversion()&&this.moveAttributes(this.$input,{placeholder:"placeholder"}),this.$inputText.hide(),this.$link=$("<a>"+s.showPassword+"</a>"),this.$linkLayoutRow=$(),this);this.$link.mousedown(function(e){if(e.which===a.mouseKeys.leftBtn)return n._passAssigned?(n.resetPassword(),n.$input.focus()):n.toggleInputs(),o.stopEvent(e)}),this.$inputs.change(function(){n.runExistingDelayedDependencyCheckAndValidationAtOnce()}),this.$inputs.on("input",function(){n.activatePolicy(),n.onChangeScript(),n.runDependencyCheckAndValidationDelayed()}),i.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),i.setCeEvents(this.$component,this.$inputs,{change:!1}),this.addToLayout(t)},r.CEInputPassword.prototype=o.cloneObject(r.CEInputBoxCommon.prototype),r.CEInputPassword.prototype.addToLayout=function(e){r.CEInputBoxCommon.prototype.addToLayout.call(this,e,!0),this._layout.row.addClass("CE_password-component CE_password-link-visible"),$('<tr class="table-strip-fix"></tr>').hide().insertAfter(this._layout.row),e.isCloned?this.$linkLayoutRow=$():this._layout.labelColumn.length?this.$linkLayoutRow=e.layout.addToLayout(this.$link,void 0,{rowClass:"CE_password-link"}):this.$linkLayoutRow=e.layout.addToLayout(this.$link,void 0,{rowClass:"CE_password-link CE_no-label",noLabel:!0}),this._policy&&this._policy.addVisualizationElement(this.$linkLayoutRow)},r.CEInputPassword.prototype.enable=function(e){e=r.CEInputBoxCommon.prototype.enable.call(this,e);this.enableElement(this.$link,e)},r.CEInputPassword.prototype.showLinkRow=function(e){e?(this.$linkLayoutRow.show(),this._layout.row.addClass("CE_password-link-visible")):(this.$linkLayoutRow.hide(),this._layout.row.removeClass("CE_password-link-visible"))},r.CEInputPassword.prototype.show=function(e){r.CEInputBoxCommon.prototype.show.call(this,e),this.$component.prop("_hidden")||this.$component.attr("readonly")||"yes"===this.$component.attr("read-only")?this.showLinkRow(!1):this.showLinkRow(!0)},r.CEInputPassword.prototype.readOnly=function(e,t){r.CEObject.prototype.readOnly.call(this,e=void 0===e||e,t),this.showLinkRow(!e)},r.CEInputPassword.prototype.toggleInputs=function(){var o=this;function e(e,t){var n=t.val();t.hide(),e.val(n),e.attr("id",t.attr("id")),t.removeAttr("id"),e.show(),o.$input=e,!1===o.$component.ce_IsReadOnly()&&o.setSelection(n.length)}o._passVisible=!o._passVisible,o._passVisible?(e(o.$inputText,o.$inputPass),o.$link.text(s.hidePassword)):(e(o.$inputPass,o.$inputText),o.$link.text(s.showPassword))},r.CEInputPassword.prototype.assignPassword=function(){!0===this._passVisible&&this.toggleInputs(),this.$input.attr("readonly","readonly"),this.$input.val("********"),this.$link.text(s.changePassword),this._passAssigned=!0},r.CEInputPassword.prototype.resetPassword=function(){!0===this._passVisible&&this.toggleInputs(),this.$input.val(""),this.$input.removeAttr("readonly"),this.$link.text(s.showPassword),this._passAssigned=!1},r.CEInputPassword.prototype.setDummyPassword=function(){this.assignPassword()},r.CEInputPassword.prototype.setValue=function(e,t){"string"!==$.type(e)?error("Failed to set password! Given value is not string!"):(e.length?this.assignPassword():this.resetPassword(),!0!==t&&(this.onChangeScript(),this.runDependencyCheckAndValidation()))},r.CEInputPassword.prototype.getValue=function(){return this._passAssigned?null:r.CEInputBoxCommon.prototype.getValue.call(this)}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.core,CE_HTML.components,CE_HTML.localization.getStrMap()),((a,s,i,r)=>{r.CESelectBoxCommon=function(e,t){r.CEObject.call(this,e,t)},r.CESelectBoxCommon.prototype=a.cloneObject(r.CEObject.prototype),r.CESelectBoxCommon.prototype.removeItems=function(){this.$select.html("")},r.CESelectBoxCommon.prototype.addItem=function(e,t,n){var o=$("<option></option>");o.val(e),o.text(t),o.data("ceData",n),this.$select.append(o)},r.CESelectBoxCommon.prototype.setItemState=function(o,a,i){i=void 0!==i&&i,o=""+o;var r=this;r.$select.find("option").each(function(){var e,t,n;return this.value!==o||((e=$(this)).parent().is("span")&&e.unwrap(),t=e.prop("selected"),n=function(){t&&(r.getFirstEnabledOption().prop("selected",!0),!1===i)&&r.onChangeScript()},a==s.visibilityStates.visible?(e.prop("disabled",!1),e.show()):a==s.visibilityStates.disabled?(e.prop("disabled",!0).prop("selected",!1),e.show(),n()):a==s.visibilityStates.hidden?(e.wrap($("<span/>").hide()),e.prop("disabled",!0).prop("selected",!1),n()):error("CESelectBoxCommon - unknown dependency check status: "+a+" for item: "+o),!1)})},r.CESelectBoxCommon.prototype.getFirstEnabledOption=function(){var t=$();return this.$select.find("option").each(function(){var e=$(this);return!0===e.prop("disabled")||(t=e,!1)}),t},r.CESelectBoxCommon.prototype.setItemsDepedencyCheck=function(e){var t=this.getValue();r.CEObject.prototype.setItemsDepedencyCheck.call(this,e),t!==this.getValue()&&(this.getFirstEnabledOption().prop("selected",!0),this.onChangeScript())},r.CESelectBoxCommon.prototype.getValue=function(){return this.getSelectedItemValue()},r.CESelectBoxCommon.prototype.setValue=function(e,t){this.setSelectedItem(e,!1,t)},r.CESelectBoxCommon.prototype.selectedItemsProperty=function(e){var t=[];return this.$select.children("option").each(function(){!0===this.selected&&t.push(e.call($(this)))}),t.length?"yes"===this.$component.attr("multiple-select")?t:t[0]:null},r.CESelectBoxCommon.prototype.getSelectedItemValue=function(){return this.selectedItemsProperty(function(){return this.val()})},r.CESelectBoxCommon.prototype.getSelectedItemData=function(){return this.selectedItemsProperty(function(){return this.data("ceData")})},r.CESelectBoxCommon.prototype.setSelectedItem=function(t,e,n){var o=this;this.$select.children("option").each(function(){var e=$(this);if(e.val()==t)return!0!==e.prop("disabled")&&(o.$select.children("option").prop("selected",!1),e.prop("selected",!0),!0!==n)&&o.$select.change(),!1})},r.CESelectBoxCommon.prototype.highlightItems=function(n){this.$select.children("option").each(function(){var e=$(this),t=e.val();0<=$.inArray(t,n)?e.addClass("highlighted"):e.removeClass("highlighted")})},r.CESelectBoxCommon.prototype.resize=function(e){this.$select.setStyle("height",this.$select.height()+e+"px")},r.CEInputSelect=function(e,t){if("yes"===e.attr("editable"))return trace("editable combo found: it's not fully supported yet, converting to input text..."),e.removeAttr("data-member-label").removeAttr("data-member-value").removeAttr("editable").attr("converted-from-editable-select","yes"),e.removeClass("CE-input-select").addClass("CE-input-text"),new r.CEInputText(e,t);r.CESelectBoxCommon.call(this,e,t);var n=[],e=(this.$component.children(".CE-option").each(function(){var e=$(this);n.push({label:r.get_element_label(e)||e.text()||"",value:e.attr("value")||""})}),n.length&&(this.$component.attr("data-member-value","value"),this.$component.data("ceDataProvider",n)),this.$component.html("<select class='CE_form-control' />"),this.$select=this.$component.children(),e.attr("id")),o=(t.id=e?e+"-input-select":a.makeid(),this.$select.attr("id",t.id),this.forcedStringValue="yes"===this.$component.attr("force-string-value"),this);this.setDataProviderData(n),i.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),i.setCeEvents(this.$component,this.$select);return this.$select.change(function(){var e,t;i.isPageLoaded(o.$component)&&!1===i.isRefreshed(o.$component)&&("profile:"===(o.$component.attr("data-provider")||"").substr(0,8)&&"yes"===o.$component.attr("value")&&(e=new CERPCAsync,(t={})[o.$component.ce_GetInstancePath()]=o.getValue(),e.ce_ValuesSet(t,ce_GetTransactionID()),trace("current profile saved: "+o.getValue())),o.runDependencyCheckAndValidation(),o.activatePolicy()),o.refreshAssignedVersionLabels()}),this.addToLayout(t,!0),this},r.CEInputSelect.prototype=a.cloneObject(r.CESelectBoxCommon.prototype),r.CEInputSelect.prototype.getSelectedItemValue=function(){var e=r.CESelectBoxCommon.prototype.getSelectedItemValue.call(this);return null!==e&&!1===this.forcedStringValue&&e.match(/^[-]?\d+\s*$/)?parseInt(e,10):e},r.CEInputSelect.prototype.setValue=function(e,t){this.setSelectedItem(e,!1,t),t&&this.refreshAssignedVersionLabels()},r.CEInputSelect.prototype.isVersionLabelsAssignSupported=function(){return!0}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.core,CE_HTML.components),((e,n,i)=>{i.CEListButtonControls=function(e,t){i.CEButtonControlsCommon.call(this,e,t)},i.CEListButtonControls.prototype=e.cloneObject(i.CEButtonControlsCommon.prototype),i.CEList=function(e,t){i.CEDataListCommon.call(this,e,t),this.$component.prepend('<ul class="disable-text-selection" tabindex="1"></ul>'),this.$ul=this.$component.children("ul"),this.$scroll=this.$ul,this.$table=this.$ul,this.$controls.length&&(this._controlBtns=new i.CEListButtonControls(this,t)),n.applyComponentAttributes(this.$component,{"ce-width":"fill_parent","ce-height":"fill_parent"}),this.moveAttributes(this.$ul,{style:"style"}),this.addToLayout(t,!0)},i.CEList.prototype=e.cloneObject(i.CEDataListCommon.prototype),i.CEList.prototype.addItem=function(e,t,n){var o=this,a=$('<li class="data-list-row row-selectable"></li>');i.CEDataListCommon.prototype.addAuditDataToItem.call(this,a,n),a.prop("ceValue",e),a.text(t),a.data("ceData",n),a.click(function(e){o.$component.prop("disabled")||(o.activateRow($(this),e.ctrlKey,e.shiftKey,"click"),o.onClickScript())}),a.dblclick(function(e){o.$component.prop("disabled")||(o.activateRow($(this),e.ctrlKey,e.shiftKey,"click"),o.onDoubleClickScript())}),o.$ul.append(a)},i.CEList.prototype.setDataProviderData=function(e,t){i.CEDataListCommon.prototype.setDataProviderData.call(this,e,t),this.onSelectionChange()},i.CEList.prototype.getRowVal=function(e){return e.prop("ceValue")},i.CEList.prototype.getAllSelectableRows=function(){return this.$ul.children("li.data-list-row")},i.CEList.prototype.highlightItems=function(n){var o=this;this.getAllSelectableRows().each(function(){var e=$(this),t=o.getRowVal(e),t=-1!==$.inArray(t,n);e.toggleClass("highlighted",t)})},i.CEList.prototype.readOnly=function(e,t){return e=i.CEDataListCommon.prototype.readOnly.call(this,e,t),!0!==this._readOnlyIgnored&&(this._layout.table.hasClass("CE_configuration")?this._layout.row.hasClass("CE_no-label")||this.toggleOverlay(e,{onlyLockIcon:!0,userSetting:t}):this.enable(!e)),e}})(CE_HTML.utils,(CE_HTML.localization.getStrMap(),CE_HTML.core),CE_HTML.components),((e,i,r)=>{i.CEUserList=function(e,t){e.children(".CE-control-buttons").remove(),i.CEList.call(this,e,t),this.$component.attr("multiple-select","yes");var n=$(t.parent).find("#user-list-add-view"),o=$(t.parent).find("#user-list-edit-view"),a=this,e={parent:t.parent,functionNamespace:t.functionNamespace};this.$btnAdd=i.createButton(r.add,{params:e},function(){n.ce_LoadScreen("generic.user_list_item")}),this.$btnEdit=i.createButton(r.edit,{params:e},function(){var e=a.getSelectedItemValue();o.ce_LoadScreen("generic.user_list_item",e)}),this.$btnRemove=i.createButton(r.remove,{params:e},function(){a.$component.ce_RemoveSelectedItems()}),this.$component.append($('<div class="CE-layout-horizontal table-main"><div class="table-row"><div class="table-cell"></div><div class="table-cell"></div><div class="table-cell"></div></div></div>')),this.$component.find(".table-cell:first").append(this.$btnAdd),this.$component.find(".table-cell:nth-child(2)").append(this.$btnEdit),this.$component.find(".table-cell:last").append(this.$btnRemove),this.$ul.dblclick(function(){!a.getSelectedItemValue()||a.$btnEdit.ceItemObject().$button.click()})},i.CEUserList.prototype=e.cloneObject(i.CEList.prototype),i.CEUserList.prototype.onSelectionChange=function(){i.CEList.prototype.onSelectionChange.call(this);var e=this.getSelectedItemValue();this.$btnRemove.ce_Enable(!!e),this.$btnEdit.ce_Enable(e&&1===e.length)},i.CEUserList.prototype.getValue=function(){var t=[];return this.getAllSelectableRows().each(function(){var e=$(this),e=e.prop("SID")||e.text();t.push(e)}),t},i.CEUserList.prototype.setValue=function(e,t){var n;i.CEList.prototype.setDataProviderData.call(this,e),!0!==t&&this.onSelectionChange(),$.isArray(e)?0!==e.length&&(trace("UserList: SIDs to usernames async conversion..."),t=new CERPCAsync,n=this,t.onComplete=function(){var o,a,i;this.error?error("UserList: failed to convert SIDs to usernames - rpc error!"):(o=this.result,i=a=0,n.getAllSelectableRows().each(function(){var e=$(this),t=e.text(),n=o[t]||t;a++,e.prop("SID",t),n!==t&&(e.text(n),e.attr("title",t),i++)}),trace("UserList: "+i+"/"+a+" SIDs converted to usernames..."))},t.ce_ConfengGetUsernameFromSid(e)):error("UserList: failed to convert SIDs to usernames - bad input format!")},i.CEUserList.prototype.enable=function(e){i.CEList.prototype.enable.call(this,e=void 0===e||e),e&&this.onSelectionChange()},i.CEUserList.prototype.readOnly=function(e,t){e=this.toggleReadOnlyAttr(e),this.$component.find(".CE-button").each(function(){$(this).ceObject().readOnly(e,t)})}})(CE_HTML.utils,(CE_HTML.core,CE_HTML.components),CE_HTML.localization.getStrMap()),((l,n,o,i,c)=>{c.CELink=function(e,t){return new(e.children(".CE-option").length?c.CEMultiLink:c.CESingleLink)(e,t)},c.CELinkCommon=function(e,t){c.CEObject.call(this,e,t),this.initialize(e,t),i.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),this.addToLayout(t,!0)},c.CELinkCommon.prototype=l.cloneObject(c.CEObject.prototype),c.CELinkCommon.prototype.createLinkElement=function(e,t){var n=(e.text()||c.get_element_label(e)||"").trim(),o=e.attr("href")||e.attr("weblink")||"",a=e.attr("icon-class")||"",i=e.attr("id"),r=this.$component.attr("id"),s=$("<a/>");return""!==o?(s.attr("href",o).attr("target","_blank"),r&&s.attr("id",i||r+"-link")):s.attr("id",i||(r?r+"-link":l.makeid())).attr("tabindex","0"),s.text(n),s.prepend(c.create_icon(a)),e.attr("text",n),this.setLinkEvents(s,t,o),s},c.CELinkCommon.prototype.onClickLinkHandler=function(e){var t;o.lastLoadScreenView=null,this.onLinkClickScript(e),o.lastLoadScreenView&&((e=this.$component.ce_IsReadOnly())||(o.lastLoadScreenView.data("PolicySwitch",this._policy),void 0!==this.$component.prop("isChangedFromDefault")&&o.lastLoadScreenView.data("ReleatedLinkObj",this)),o.lastLoadScreenView.data("readOnlyMode",e),t=this._layout.labelColumn.find(".CE_label.CE_label-versioning"),this.$component.parentsUntil('.CE-view[window="yes"]',".CE-group").each(function(){t=t.add($(this).ceObject().getVersionLabels())}),t.length?o.lastLoadScreenView.data("ignoredVersionLabels",t):o.lastLoadScreenView.removeData("ignoredVersionLabels"))},c.CELinkCommon.prototype.onKeyPressHandler=function(e,t){if(0!==t.which&&0!==t.charCode&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&(t.keyCode||t.which)==n.keyboardKeys.VK_RETURN)return trace("link enter"),this.getLink(e).click(),l.stopEvent(t);return!0},c.CELinkCommon.prototype.setLinkEvents=function(e,t,n){var o=this;e.click(function(){o.onClickLinkHandler(t)}),""===n&&e.keypress(function(e){return o.onKeyPressHandler(t,e)})},c.CELinkCommon.prototype.setHref=function(e,t){this.getLink(t).attr("href",e)},c.CELinkCommon.prototype.getHref=function(e){return this.getLink(e).attr("href")},c.CELinkCommon.prototype.setText=function(e,t){this.getLink(t).text(e)},c.CELinkCommon.prototype.setTextHtml=function(e,t){this.getLink(t).html(e)},c.CELinkCommon.prototype.getText=function(e){return this.getLink(e).text()},c.CELinkCommon.prototype.setItemsDepedencyCheck=function(e){},c.CESingleLink=function(e,t){c.CELinkCommon.call(this,e,t)},c.CESingleLink.prototype=l.cloneObject(c.CELinkCommon.prototype),c.CESingleLink.prototype.initialize=function(e,t){this.$link=this.createLinkElement(this.$component),this.moveAttributes(this.$link,{style:"style"}),this.$component.html(""),this.$component.append(this.$link)},c.CESingleLink.prototype.getLink=function(e){return this.$link},c.CESingleLink.prototype.onLinkClickScript=function(e){this.onClickScript()},c.CESingleLink.prototype.readOnly=function(e,t){var n,o;this.$component.toggleAttr("readonly","yes",e=void 0===e||e),!0!==this._readOnlyIgnored&&(void 0===this.$component.attr("path_part")?this.enable(!e):(this.togglePolicy(e),n=this.$component.attr("text")||"",o=this.$component.attr("readonly-text")||"",this.setText(e&&o.length?o:n),void 0!==this.$component.attr("disabled-for-readonly")?(this.enable(!e),this.toggleOverlay(e,{userSetting:t})):this.toggleOverlay(e,{onlyLockIcon:!0,userSetting:t})))},c.CEMultiLink=function(e,t){c.CELinkCommon.call(this,e,t)},c.CEMultiLink.prototype=l.cloneObject(c.CELinkCommon.prototype),c.CEMultiLink.prototype.initialize=function(e,n){this._ce_events_links_onclick=[];var o=this,a=$("<div class='CE_flex-container' />");this.$component.children(".CE-option").each(function(e){var t=$(this);o._ce_events_links_onclick.push(i.transformCeEvent(o.$component,n.functionNamespace,t.attr("data-ce-onclick")||"")),a.append($("<div class='CE_flex-item' />").append(o.createLinkElement(t,e)))}),this.$component.html(""),this.$component.append(a)},c.CEMultiLink.prototype.getLink=function(e){return $(this.$component.children(".CE_flex-container").children(".CE_flex-item")[e]).children("a")},c.CEMultiLink.prototype.onLinkClickScript=function(e){this._ce_events.onclick=this._ce_events_links_onclick[e]||"",this.onClickScript()},c.CEMultiLink.prototype.showLink=function(e,t){t=void 0===t||t,this.getLink(e).parent().toggle(t)},c.CEMultiLink.prototype.hideLink=function(e){this.showLink(e,!1)},c.CEMultiLink.prototype.readOnly=function(e,t){this.$component.toggleAttr("readonly","yes",e=void 0===e||e),!0!==this._readOnlyIgnored&&(void 0===this.$component.attr("path_part")?this.enable(!e):(this.togglePolicy(e),this.enable(!e),this.toggleOverlay(e,{userSetting:t})))}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.vars,CE_HTML.core,CE_HTML.components),((e,n,o)=>{o.CEButton=function(e,t){o.CEObject.call(this,e,t),void 0!==t.layout&&""!==this.$component.text().trim()&&this.storeLayoutElements(t.layout.addToLayout(this.$component)),this.$component.html("<button type='button' class='CE_btn CE_btn-xs'></button>"),this.$button=this.$component.children(),this.$button.addClass("yes"===(this.$component.attr("primary")||"")?"CE_btn-primary":"CE_btn-default"),this.$button.append($('<span class="CE_button-text"></span>').text(o.get_element_label(this.$component)||"")),this.$span=this.$button.children(),this.$button.prepend(o.create_icon(this.$component.attr("icon-class")||"")),this.moveAttributes(this.$button,{style:"style"}),t.parent&&t.functionNamespace&&n.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),n.setCeEvents(this.$component,this.$button)},o.CEButton.prototype=e.cloneObject(o.CEObject.prototype),o.CEButton.prototype.getLabel=function(){return this.$span.text()},o.CEButton.prototype.setLabel=function(e){this.$span.text(e)},o.CEButton.prototype.enable=function(e){this.$component.prop("disabled",!(e=void 0===e||e)),this.$button.prop("disabled",!e)},o.CEButton.prototype.show=function(e){o.CEObject.prototype.show.call(this,e);var t,e=this.$component.parent(".table-cell");e.length&&(e=e.siblings().add(e),t=$(),e.each(function(){var e=$(this);e.children(".CE-button").ce_IsVisible()&&(t=e)}),e.removeClass("CE_last-cell-with-visible-button"),t.addClass("CE_last-cell-with-visible-button"))},o.CEButton.prototype.readOnly=function(e){e=void 0===e||e,!0!==this._readOnlyIgnored&&(this.$component.toggleAttr("readonly","yes",e),this.enable(!e));var t=this.$component.attr("label")||"",n=this.$component.attr("readonly-label")||"";this.setLabel(e&&n.length?n:t)},o.createButton=function(e,t,n){var o={labelReadOnly:"",iconClass:"",readOnlyIgnored:!1,primary:!1,params:{}},o=(t=jQuery.isPlainObject(t)?$.extend({},o,t):o,$('<div class="CE-button"/>'));return t.primary&&o.attr("primary","yes"),t.readOnlyIgnored&&o.attr("readonly-ignored","yes"),t.iconClass&&o.attr("icon-class",t.iconClass),o.attr("label",e),t.labelReadOnly&&o.attr("readonly-label",t.labelReadOnly),t.params.id&&o.attr("id",t.params.id),o.ceObject(t.params).$button.click(n),o}})(CE_HTML.utils,CE_HTML.core,CE_HTML.components),((e,o,a)=>{a.CECheckBox=function(e,t){return new("yes"===e.attr("native")?a.CECheckboxNative:a.CECheckboxBootstrapSwitch)(e,t)},a.CECheckBoxCommon=function(e,t){a.CEObject.call(this,e,t),this.$checkbox=$()},a.CECheckBoxCommon.prototype=e.cloneObject(a.CEObject.prototype),a.CECheckBoxCommon.prototype.invertValue=function(e){return"yes"===this.$component.attr("invert-value")?!e:e},a.CECheckBoxCommon.prototype.getValue=function(){return this.invertValue(this.$checkbox.is(":checked"))?1:0},a.CECheckboxBootstrapSwitch=function(e,t){a.CECheckBoxCommon.call(this,e,t),e.html("<input type='checkbox' />"),this.$checkbox=e.children("input"),this.$checkbox.bootstrapSwitch(),this.$checkbox.bootstrapSwitch("size","mini"),this.$checkbox.bootstrapSwitch("onText"," "),this.$checkbox.bootstrapSwitch("offText"," "),o.addViewAndCustomSripts(e,t.parent,t.functionNamespace);var n=this;e.on("switchChange",function(){n.runDependencyCheckAndValidation(),n.activatePolicy(),n.onChangeScript()}),this.addToLayout(t,!0)},a.CECheckboxBootstrapSwitch.prototype=e.cloneObject(a.CECheckBoxCommon.prototype),a.CECheckboxBootstrapSwitch.prototype.setValue=function(e,t){this.$checkbox.bootstrapSwitch("animate",o.isPageLoaded(this.$component)),this.$checkbox.bootstrapSwitch("state",this.invertValue(!!e),t,!0)},a.CECheckboxBootstrapSwitch.prototype.enable=function(e){this.$checkbox.bootstrapSwitch("disabled",!(e=void 0===e||e))},a.CECheckboxNative=function(e,t){a.CECheckBoxCommon.call(this,e,t),e.html("<label></label>").children("label").text(a.get_element_label(e)||"").prepend("<input type='checkbox' />"),this.$checkbox=e.find("input"),o.addViewAndCustomSripts(e,t.parent,t.functionNamespace),o.setCeEvents(e,e);var n=this;this.$component.change(function(){n.runDependencyCheckAndValidation()})},a.CECheckboxNative.prototype=e.cloneObject(a.CECheckBoxCommon.prototype),a.CECheckboxNative.prototype.setValue=function(e,t){this.$checkbox.prop("checked",this.invertValue(!!e)),!0!==t&&this.$component.change()}})(CE_HTML.utils,CE_HTML.core,CE_HTML.components),((u,h,m,C,_)=>{_.CEDateTimePicker=function(e,t){_.CEObject.call(this,e,t);var n,o=e.attr("min-date")||"",a=e.attr("max-date")||"",i=void 0!==e.attr("date-input"),r=void 0!==e.attr("time-input"),s=void 0!==e.attr("time-input-no-sec"),l=(!1===i&&!1===r&&(i=r=!0),void 0!==e.attr("data-localvalue")),c=(c=i,n=r,d=h.formatDate,s=s?h.formatTimeNoSec:h.formatTime,c&&n?d+" "+s:c?d:n?s:void 0),d=(this.onlyTimeLocalValue=!1===i&&!0===r&&!0==l,e.html('<div class="CE_form-group"><div class="CE_input-group date"> <input type="text" class="CE_form-control" /> <span class="CE_input-group-addon"> <span class="CE_glyphicon CE_glyphicon-calendar"></span> </span></div></div>'),this.$pickerElement=e.children("div").children("div").datetimepicker({language:m.locale,format:c,pickDate:i,pickTime:r}),this.pickerObj=this.$pickerElement.data("DateTimePicker"),""!==o&&(this.pickerObj.setStartDate(moment(o,"DD-MM-YYYY")),this.pickerObj.setDate(moment(o,"DD-MM-YYYY"))),""!==a&&this.pickerObj.setEndDate(moment(a,"DD-MM-YYYY")),e.attr("id")||u.makeid());t.id=d+"-input-datetime";this.$pickerElement.find("input").attr("id",t.id),C.addViewAndCustomSripts(e,t.parent,t.functionNamespace);var p=this;this.pickerVisible=!1,this.$pickerElement.on("change.dp",function(e){"dp"===e.namespace&&(p.activatePolicy(),p.onChangeScript(),p.pickerVisible?p.runDependencyCheckAndValidationDelayed():p.runDependencyCheckAndValidation())}).on("show.dp",function(e){p.pickerVisible=!0;var t=p.getValue()||0;!1===i&&t<31536e3&&!1===p.onlyTimeLocalValue&&p.setValue(t+31536e3)}).on("hide.dp",function(e){p.pickerVisible=!1,p.runExistingDelayedDependencyCheckAndValidationAtOnce()}).on("error.dp",function(e){return trace("DateTime error: "+e),u.stopEvent(e)}),this.addToLayout(t)},_.CEDateTimePicker.prototype=u.cloneObject(_.CEObject.prototype),_.CEDateTimePicker.prototype.setValue=function(e,t){var n;this.onlyTimeLocalValue?((n=moment()).hours(0),n.minutes(0),n.seconds(0),n.seconds(e)):(n=moment(e,"X"),null!==m.timeZoneOffsetMinutes&&n.zone(m.timeZoneOffsetMinutes)),this.pickerObj.setDate(n,t)},_.CEDateTimePicker.prototype.getValue=function(){var e=this.pickerObj.getDate();return null!==e?this.onlyTimeLocalValue?3600*e.hours()+60*e.minutes()+e.seconds():e.unix():null},_.CEDateTimePicker.prototype.enable=function(e){(e=void 0===e||e)?this.pickerObj.enable():this.pickerObj.disable()},_.CEDateTimePicker.prototype.setMinDate=function(e){""!==e&&this.pickerObj.setStartDate(moment(e))},_.CEDateTimePicker.prototype.setMaxDate=function(e){""!==e&&this.pickerObj.setEndDate(moment(e))},_.CEDateTimePicker.prototype.destroy=function(){this.pickerObj.destroy()}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.vars,CE_HTML.core,CE_HTML.components),((i,r,s)=>{s.CESlider=function(e,t){s.CEObject.call(this,e,t),e.html('<div class="CE_range-table"> <div class="CE_range-row"> <div class="CE_range-cell CE_range-input""><input type="range" /></div> </div></div>'),this.$input=e.find("input"),this.moveAttributes(this.$input,{style:"style",step:"step",minvalue:"min",maxvalue:"max"}),this.$input.attr("title",this.getValue());var n=e.attr("id")||i.makeid(),n=(t.id=n+"-input-slider",this.$input.attr("id",t.id),e.attr("minlabel")||""),o=e.attr("maxlabel")||"",a=(""!==n&&e.find(".CE_range-row").prepend($('<div class="CE_range-cell CE_range-minlabel"></div>').text(n)),""!==o&&e.find(".CE_range-row").append($('<div class="CE_range-cell CE_range-maxlabel"></div>').text(o)),r.addViewAndCustomSripts(e,t.parent,t.functionNamespace),r.setCeEvents(e,e),this);e.change(function(){a.$input.attr("title",a.getValue()),a.runDependencyCheckAndValidation(),a.activatePolicy()}),this.addToLayout(t)},s.CESlider.prototype=i.cloneObject(s.CEObject.prototype),s.CESlider.prototype.setValue=function(e,t){this.$input.val(e),!0!==t&&this.$input.change()},s.CESlider.prototype.getValue=function(){return parseInt(this.$input.val(),10)}})(CE_HTML.utils,CE_HTML.core,CE_HTML.components),((o,n,a,i)=>{a.CETextCommon=function(e,t){a.CEObject.call(this,e,t)},a.CETextCommon.prototype=o.cloneObject(a.CEObject.prototype),a.CETextCommon.prototype.setLabel=function(e){this.setText(e)},a.CETextCommon.prototype.getLabel=function(){return this.getText()},a.CEHeader=function(e,t){a.CETextCommon.call(this,e,t);var n=o.escapeHtmlText(a.get_element_label(e)||e.text());e.html('<h3><span class="CE_header-text"></span><span class="CE_label"></span></h3>'),this.$headerElement=e.children(),this.$headerElement.children(".CE_header-text").html(n),(e.parents(".CE-group").length||a.view.isInsideModal(t.parent))&&this.storeLayoutElements(t.layout.addToLayout(e))},a.CEHeader.prototype=o.cloneObject(a.CETextCommon.prototype),a.CEHeader.prototype.setText=function(e){this.$headerElement.children(".CE_header-text").html(o.escapeHtmlText(e))},a.CEHeader.prototype.setTextHtml=function(e){this.$headerElement.children(".CE_header-text").html("<span>"+e+"</span>")},a.CEHeader.prototype.resetPolicyLabel=function(e){var t=this.$headerElement.children(".CE_label");switch(t.removeClass("CE_label-apply").removeClass("CE_label-force").removeClass("CE_label-reset"),e){case n.policyStates.ignore:t.text("");break;case n.policyStates.apply:this.$headerElement.children(".CE_label").text(i.policyApply),t.addClass("CE_label-apply");break;case n.policyStates.force:this.$headerElement.children(".CE_label").text(i.policyForce),t.addClass("CE_label-force");break;default:error("unknown policyState")}},a.CEHeader.prototype.appendVersionLabel=function(e){var t=this.$headerElement.children(".CE_version-labels");0===t.length&&(this.$headerElement.append('<span class="CE_version-labels"></span>'),t=this.$headerElement.children(".CE_version-labels")),t.append(e)},a.CEHeader.prototype.getText=function(){return this.$headerElement.children(".CE_header-text").children().html()||""},a.CEHeader.prototype.readOnly=function(e){this.toggleReadOnlyAttr(e)}})(CE_HTML.utils,CE_HTML.consts,CE_HTML.components,CE_HTML.localization.getStrMap()),((a,i,r)=>{r.CEText=function(e,t){r.CETextCommon.call(this,e,t),this.$mainText=$('<span class="main-text"></span>');var n=r.get_element_label(e)||e.clone().children().remove().end().text().trim(),n=(e.contents().filter(function(){return 3===this.nodeType}).remove(),this.$mainText.html(a.escapeHtmlText(n)),e.append(this.$mainText),e.find(".CE-option")),o=(this._ceOptionMap={},this);0<n.length&&n.each(function(){var e=$(this),t=e.attr("value");void 0!==t&&(o._ceOptionMap[t]=e)}),r.is_value_holder(e)?(e.attr("readonly","yes").attr("show-policy-switch","no"),i.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),this.addToLayout(t),this._layout.labelColumn.addClass("CE-text-label")):(this.$mainText.html(a.escapeHtmlText(r.get_element_label(e)||e.text())),this.storeLayoutElements(t.layout.addToLayout(e)),i.addDummyPolicySwitcher(this._layout.policyColumn)),this._control_element_id=e.attr("control-element-id")||"",this._control_element_id&&(0===(n=this.$component.ce_GetParentView().$("#"+this._control_element_id)).length?error("Could not find Visible Controller element for "+e.attr("id")+",: control-element-id is "+this._control_element_id):(o=this,n.ceItemObject()._additionalOnChangeEvents.push(function(){o.updateVisibility()})))},r.CEText.prototype=a.cloneObject(r.CETextCommon.prototype),r.CEText.prototype.getOptionText=function(e){return e.attr("label")||e.text()||""},r.CEText.prototype.displayOption=function(t){var e=this._ceOptionMap[Object.keys(this._ceOptionMap).find(e=>this.areEquivalent(e,t))];return!!e&&(e=this.getOptionText(e),this.setTextHtml(e),!0)},r.CEText.prototype.updateVisibility=function(){var e=!1,t=this.$component.ce_GetParentView(),t=this._control_element_id?t.$("#"+this._control_element_id):null;t&&0<t.length&&(this.$component.attr("user-change-only")&&!t.ce_IsChangedByUser()||(this._ceOptionMap?(t=t.ce_GetValue().toString(),e=this.displayOption(t)||this.displayOption("default")):error("CE-options are not defined for "+this.attr("id")+", but control-element-id is defined - "+this._control_element_id),this.show(e)))},r.CEText.prototype.areEquivalent=function(e,t){var n={no:!1,false:!1,0:!1,yes:!0,true:!0,1:!0},o=n[e],n=n[t];return void 0!==o&&void 0!==n?o==n:e==t},r.CEText.prototype.setUserChangeOnly=function(e){e?this.$component.attr("user-change-only","yes"):this.$component.removeAttr("user-change-only"),this._control_element_id&&this.updateVisibility()},r.CEText.prototype.setText=function(e){this.$mainText.html(a.escapeHtmlText(e))},r.CEText.prototype.setTextHtml=function(e){this.$mainText.html("<span>"+e+"</span>")},r.CEText.prototype.getText=function(){return this.$mainText.children().length?this.$mainText.children().html()||"":this.$mainText.html()||""},r.CEText.prototype.readOnly=function(e){this.toggleReadOnlyAttr(e)},r.CEText.prototype.setValue=function(e,t){e="object"===$.type(e)?JSON.stringify(e):""+e;this.setText(e)},r.CEText.prototype.getValue=function(){return this.getText()},r.CEText.prototype.createVersionLabels=function(){}})(CE_HTML.utils,CE_HTML.core,CE_HTML.components),((e,n)=>{n.CEHorizontalLine=function(e,t){n.CEObject.call(this,e,t),e.html("<hr/>"),layoutRow=t.layout.addToLayoutOnlyOption(this.$component),this.storeLayoutElements(layoutRow)},n.CEHorizontalLine.prototype=e.cloneObject(n.CEObject.prototype),n.CEHorizontalLine.prototype.readOnly=function(){},n.CEHorizontalLine.prototype.enable=function(){},n.CEHorizontalLine.prototype.disable=function(){}})(CE_HTML.utils,CE_HTML.components),((n,o)=>{o.CEProgress=function(e,t){o.CEObject.call(this,e,t),this.progressRange={minValue:parseInt(e.attr("minvalue")||0,10),maxValue:parseInt(e.attr("maxvalue")||100,10)},(isNaN(this.progressRange.minValue)||isNaN(this.progressRange.maxValue)||this.progressRange.minValue>=this.progressRange.maxValue)&&(this.progressRange.minValue=0,this.progressRange.maxValue=100,error("CEProgress: bad minvalue or maxvalue! Default is used instead.")),n.freezeObject(this.progressRange),e.html('<div class="CE_progress-bar"></div>'),this.$progressMain=e.children(".CE_progress-bar"),layoutRow=t.layout.addToLayoutNoLabel(this.$component),this.storeLayoutElements(layoutRow);t=parseInt(e.attr("value")||this.progressRange.minValue,10);(isNaN(t)||t<this.progressRange.minValue||t>this.progressRange.maxValue)&&(t=this.progressRange.minValue,error("CEProgress: bad init value format or is outside of range! Default is used instead.")),t>this.progressRange.minValue&&this.setValue(t),this.value=t},o.CEProgress.prototype=n.cloneObject(o.CEObject.prototype),o.CEProgress.prototype.setValue=function(e,t){e=parseInt(e,10);isNaN(e)?error("CEProgress: bad value format!"):(e=(e=e>this.progressRange.maxValue?this.progressRange.maxValue:e)<this.progressRange.minValue?this.progressRange.minValue:e,this.$progressMain.css("width",e+"%"),this.value=e)},o.CEProgress.prototype.getValue=function(){return this.value},o.CEProgress.prototype.readOnly=function(){},o.CEProgress.prototype.enable=function(){},o.CEProgress.prototype.disable=function(){}})(CE_HTML.utils,CE_HTML.components),((e,o)=>{o.CEFileDownload=function(e,t){o.CEFileCommon.call(this,e,t),e.html("<div class='CE_fileDownload'> <a target='_blank'> <span class='CE_glyphicon CE_glyphicon-download-alt'></span> <span class='CE_button-text CE_fileDownload-text'></span> </a></div>"),this.$downloadButton=e.find("a"),this.$downloadButtonText=e.find("span.CE_fileDownload-text"),this.addToLayout(t,!0);var n=this;this.$downloadButton.click(function(e){n.onDownloadClick()}),this.enable(!1)},o.CEFileDownload.prototype=e.cloneObject(o.CEFileCommon.prototype),o.CEFileDownload.prototype.setValue=function(e,t){var n=0<(e||"").length;n?(this.$component.data("downloadData",e),e=this.computeOriginalDataSize(e),this.$downloadButtonText.text(this.fileSizeToLabel(e))):(this.$component.removeData("downloadData"),this.$downloadButtonText.text("")),this.$component.toggleClass("has-data",n),this.enable(n)},o.CEFileDownload.prototype.getValue=function(){return this.$component.data("downloadData")||""},o.CEFileDownload.prototype.readOnly=function(){}})(CE_HTML.utils,CE_HTML.components),((e,n,o)=>{o.CEDataHolder=function(e,t){o.CEObject.call(this,e,t),e.html(""),t.componentsContainer.addComponent(this.$component),n.addViewAndCustomSripts(this.$component,t.parent,t.functionNamespace),o.CEObject.prototype.show.call(this,!1),o.CEObject.prototype.enable.call(this,!1),e.attr("readonly","yes"),this._value=null},o.CEDataHolder.prototype=e.cloneObject(o.CEObject.prototype),o.CEDataHolder.prototype.setValue=function(e,t){this._value=e},o.CEDataHolder.prototype.getValue=function(){return void 0===this._value?null:this._value},o.CEDataHolder.prototype.readOnly=function(){},o.CEDataHolder.prototype.show=function(){},o.CEDataHolder.prototype.enable=function(){return!1},o.CEDataHolder.prototype.removeItems=function(){},o.CEDataHolder.prototype.addItem=function(e,t,n){}})(CE_HTML.utils,CE_HTML.core,CE_HTML.components);