{"use strict";var n=o("a7T2"),r=o("M4cL"),i=o("p09A"),p=o("KC/L"),M=o("TdEd"),a=o("OfVV");function c(){var e=r(window);this.resizeAll=n.debounce((function(){e.resize()}),100),this.oGetScreenFunctions={},this.screens=i.observable({}),this.oModulesNames={},this.currentScreen=i.observable(""),this.sDefaultScreen="",this.browserTitle=i.computed((function(){var e=this.screens()[this.currentScreen()];return e&&n.isFunction(e.browserTitle)?e.browserTitle():""}),this),this.informationScreen=i.observable(null),this.bStarted=!1,this.aPreInitScreens=[]}c.prototype.init=function(e){var t=M.getModulesScreens(),r=[],i=e?a.DefaultAnonymScreenHash.toLowerCase():a.DefaultUserScreenHash.toLowerCase();n.each(t,n.bind((function(e,t){this.addToScreenList(t,e)}),this)),this.addToScreenList("",o("itIC")),this.oGetScreenFunctions[i]&&(this.sDefaultScreen=i),""===this.sDefaultScreen&&(r=n.keys(this.oGetScreenFunctions),p.isNonEmptyArray(r)&&(this.sDefaultScreen=r[0]))},c.prototype.start=function(){M.getModulesTabs(!1).length>0&&this.showView("header"),this.initInformation(),this.bStarted=!0,n.each(this.aPreInitScreens,function(e){this.initHiddenView(e)}.bind(this))},c.prototype.addToScreenList=function(e,t){n.each(t,n.bind((function(t,o){this.oGetScreenFunctions[o]=t,this.oModulesNames[o]=e}),this))},c.prototype.hasScreenData=function(e){return!(!this.screens()[e]&&!this.oGetScreenFunctions[e])},c.prototype.route=function(e){var t=this.currentScreen(),o=this.screens()[t],r=e.shift(),i=this;(""===r||""===t&&!this.oModulesNames[r])&&(r=this.sDefaultScreen),""!==t||M.isModuleEnabled(this.oModulesNames[r])&&this.hasScreenData(r)||(r=n.find(n.keys(this.oModulesNames),n.bind((function(e){return M.isModuleEnabled(this.oModulesNames[e])&&this.hasScreenData(e)}),this))||this.sDefaultScreen),M.isModuleEnabled(this.oModulesNames[r])&&this.hasScreenData(r)&&(t!==r?(this.currentScreen(r),o&&n.isFunction(o.hideView)&&o.hideView(),o=this.showView(r,(function(t){i.onRouteCallback(t,e)}))):o&&this.onRouteCallback(o,e))},c.prototype.onRouteCallback=function(e,t){e&&n.isFunction(e.onRoute)&&e.onRoute(t)},c.prototype.showView=function(e,t){var o=e,r=this.oGetScreenFunctions[o],i=this.screens()[o],p=this;return!i&&r?(this.initView(o,r,(function(){p.showView(e,t)})),null):(i&&n.isFunction(i.showView)&&i.showView(),n.isFunction(t)&&t(i),i)},c.prototype.initHiddenView=function(e){var t=this.oGetScreenFunctions[e];!this.screens()[e]&&t&&(this.bStarted?this.initView(e,t):this.aPreInitScreens.push(e))},c.prototype.initView=function(e,t,o){var r=this,i=t();n.isFunction(i.then)?i.then((function(t){r.initViewCallback.call(r,e,t),t&&n.isFunction(o)&&o(t)})):(this.initViewCallback.call(this,e,i),i&&n.isFunction(o)&&o(i))},c.prototype.initViewCallback=function(e,t){if(t.ViewTemplate){var o=r("\x3c!-- ko template: { name: '"+t.ViewTemplate+"' } --\x3e\x3c!-- /ko --\x3e").appendTo(r("#auroraContent .screens"));o.length>0&&(i.applyBindings(t,o[0]),t.$viewDom=o.next(),t.onBind())}this.screens()[e]=t,this.screens.valueHasMutated(),delete this.oGetScreenFunctions[e]},c.prototype.showAnyView=function(e){if(e.ViewTemplate){var t=r("\x3c!-- ko template: { name: '"+e.ViewTemplate+"' } --\x3e\x3c!-- /ko --\x3e").appendTo(r("#auroraContent .screens"));t.length>0&&i.applyBindings(e,t[0])}},c.prototype.showLoading=function(e){this.informationScreen()&&this.informationScreen().showLoading(e)},c.prototype.hideLoading=function(){this.informationScreen()&&this.informationScreen().hideLoading()},c.prototype.showReport=function(e,t){this.informationScreen()&&this.informationScreen().showReport(e,t)},c.prototype.hideReport=function(){this.informationScreen()&&this.informationScreen().hideReport()},c.prototype.showError=function(e,t,o){this.informationScreen()&&this.informationScreen().showError(e,t,o)},c.prototype.hideError=function(e){this.informationScreen()&&this.informationScreen().hideError(e)},c.prototype.initInformation=function(){var e=this;this.showView("information",(function(t){t&&e.informationScreen(t)}))},c.prototype.hasUnsavedChanges=function(){var e=this.screens()[this.currentScreen()];return e&&n.isFunction(e.hasUnsavedChanges)&&e.hasUnsavedChanges()},c.prototype.getCurrentScreen=function(){return this.screens()[this.currentScreen()]};var b=new c;e.exports=b},OfVV:(e,t,o)=>{"use strict";var n=o("a7T2"),r=o("M4cL"),i=o("p09A"),p=o("R+qY"),M=o("Tt1R"),a=o("KC/L"),c=window.auroraAppData,b=r("html").hasClass("rtl");o("XNy+");var s={ServerModuleName:"Core",HashModuleName:"core",DebugMode:a.isString(M.getRequestParam("debugmode")),AuthTokenCookieExpireTime:30,AutodetectLanguage:!1,UserSelectsDateFormat:!1,dateFormat:i.observable("DD/MM/YYYY"),DateFormatList:["DD/MM/YYYY"],EUserRole:{},IsSystemConfigured:!1,Language:"English",LastErrorCode:0,ShortLanguage:"en",SiteName:"Afterlogic Platform",SocialName:"",StoreAuthTokenInDB:!1,TenantName:"",timeFormat:i.observable("0"),timezone:i.observable(""),UserId:0,PasswordMinLength:0,PasswordMustBeComplex:!1,CookiePath:"/",CookieSecure:!1,Version:"",ProductName:"",AdminHasPassword:"",AdminLanguage:"",AdminLogin:"",CommonLanguage:"",DbHost:"",DbLogin:"",DbName:"",EncryptionKeyNotEmpty:!1,dbSettingsChanged:i.observable(!1).extend({autoResetToFalse:100}),AllowChangeSettings:!1,AllowClientDebug:!1,AllowDesktopNotifications:!1,AllowMobile:!1,AllowPrefetch:!0,AttachmentSizeLimit:0,AutoRefreshIntervalMinutes:1,CustomLogoutUrl:"",DefaultAnonymScreenHash:"",DefaultUserScreenHash:"",GoogleAnalyticsAccount:"",HeaderModulesOrder:[],IsDemo:!1,IsMobile:-1,LanguageList:[{name:"English",text:"English"}],MultipleFilesUploadLimit:50,ShowQuotaBar:!1,ShowQuotaBarTextAsTooltip:!0,QuotaWarningPerc:0,Theme:"Default",ThemeList:["Default"],HideLogout:!1,MobileTheme:"Default",MobileThemeList:["Default"],LogoUrl:"",TopIframeUrl:"",TopIframeHeightPx:0,IsRTL:b,init:function(e){var t=e[s.ServerModuleName],o=e.CoreWebclient,i=e.CoreMobileWebclient,c=e.BrandingWebclient;n.isEmpty(t)||(this.AuthTokenCookieExpireTime=a.pInt(t.AuthTokenCookieExpireTime,this.AuthTokenCookieExpireTime),this.AutodetectLanguage=a.pBool(t.AutodetectLanguage,this.AutodetectLanguage),this.UserSelectsDateFormat=a.pBool(t.UserSelectsDateFormat,this.UserSelectsDateFormat),this.dateFormat(a.pString(t.DateFormat,this.dateFormat())),this.DateFormatList=a.pArray(t.DateFormatList,this.DateFormatList),-1===n.indexOf(this.DateFormatList,this.dateFormat())&&this.DateFormatList.unshift(this.dateFormat()),this.EUserRole=a.pObject(t.EUserRole,this.EUserRole),this.IsSystemConfigured=a.pBool(t.IsSystemConfigured,this.IsSystemConfigured),this.Language=a.pString(t.Language,this.Language),this.LastErrorCode=a.pInt(t.LastErrorCode,this.LastErrorCode),this.ShortLanguage=a.pString(t.ShortLanguage,this.ShortLanguage),this.SiteName=a.pString(t.SiteName,this.SiteName),this.SocialName=a.pString(t.SocialName,this.SocialName),this.StoreAuthTokenInDB=a.pBool(t.StoreAuthTokenInDB,this.StoreAuthTokenInDB),this.TenantName=a.pString(t.TenantName||M.getRequestParam("tenant"),this.TenantName),this.timeFormat(a.pString(t.TimeFormat,this.timeFormat())),this.timezone(a.pString(t.Timezone,this.timezone())),this.UserId=a.pInt(t.UserId,this.UserId),this.PasswordMinLength=a.pNonNegativeInt(t.PasswordMinLength,this.PasswordMinLength),this.PasswordMustBeComplex=a.pBool(t.PasswordMustBeComplex,this.PasswordMustBeComplex),this.CookiePath=a.pString(t.CookiePath,this.CookiePath),""===this.CookiePath&&(this.CookiePath="/"),this.CookieSecure=a.pBool(t.CookieSecure,this.CookieSecure),r.cookie.defaults={path:this.CookiePath,secure:this.CookieSecure},this.Version=a.pString(t.Version,this.Version),this.ProductName=a.pString(t.ProductName,this.ProductName),this.AdminHasPassword=a.pBool(t.AdminHasPassword,this.AdminHasPassword),this.AdminLanguage=a.pString(t.AdminLanguage,this.AdminLanguage),this.AdminLogin=a.pString(t.AdminLogin,this.AdminLogin),this.CommonLanguage=a.pString(t.CommonLanguage,this.CommonLanguage),this.DbHost=a.pString(t.DBHost,this.DbHost),this.DbLogin=a.pString(t.DBLogin,this.DbLogin),this.DbName=a.pString(t.DBName,this.DbName),this.EncryptionKeyNotEmpty=a.pBool(t.EncryptionKeyNotEmpty,this.EncryptionKeyNotEmpty)),n.isEmpty(o)||(this.AllowChangeSettings=a.pBool(o.AllowChangeSettings,this.AllowChangeSettings),this.AllowClientDebug=a.pBool(o.AllowClientDebug,this.AllowClientDebug),this.AllowDesktopNotifications=a.pBool(o.AllowDesktopNotifications,this.AllowDesktopNotifications),this.AllowMobile=a.pBool(o.AllowMobile,this.AllowMobile),this.AllowPrefetch=a.pBool(o.AllowPrefetch,this.AllowPrefetch),this.AttachmentSizeLimit=a.pNonNegativeInt(o.AttachmentSizeLimit,this.AttachmentSizeLimit),this.AutoRefreshIntervalMinutes=a.pNonNegativeInt(o.AutoRefreshIntervalMinutes,this.AutoRefreshIntervalMinutes),this.CustomLogoutUrl=a.pString(o.CustomLogoutUrl,this.CustomLogoutUrl),this.DefaultAnonymScreenHash=a.pString(o.DefaultAnonymScreenHash,this.DefaultAnonymScreenHash),this.DefaultUserScreenHash=a.pString(o.DefaultUserScreenHash,this.DefaultUserScreenHash),this.GoogleAnalyticsAccount=a.pString(o.GoogleAnalyticsAccount,this.GoogleAnalyticsAccount),this.HeaderModulesOrder=a.pArray(o.HeaderModulesOrder,this.HeaderModulesOrder),this.IsDemo=a.pBool(o.IsDemo,this.IsDemo),this.IsMobile=a.pInt(o.IsMobile,this.IsMobile),this.LanguageList=a.pArray(o.LanguageListWithNames,this.LanguageList),this.MultipleFilesUploadLimit=a.pNonNegativeInt(o.MultipleFilesUploadLimit,this.MultipleFilesUploadLimit),this.ShowQuotaBar=a.pBool(o.ShowQuotaBar,this.ShowQuotaBar),this.ShowQuotaBarTextAsTooltip=a.pBool(o.ShowQuotaBarTextAsTooltip,this.ShowQuotaBarTextAsTooltip),this.QuotaWarningPerc=a.pInt(o.QuotaWarningPerc,this.QuotaWarningPerc),this.Theme=a.pString(o.Theme,this.Theme),this.ThemeList=a.pArray(o.ThemeList,this.ThemeList),this.HideLogout=a.pBool(o.HideLogout,this.HideLogout)),n.isEmpty(i)||(this.MobileTheme=a.pString(i.Theme,this.MobileTheme),this.MobileThemeList=a.pArray(i.ThemeList,this.MobileThemeList)),n.isEmpty(c)||(this.LogoUrl=a.pString(c.TabsbarLogo,this.LogoUrl),this.TopIframeUrl=a.pString(c.TopIframeUrl,this.TopIframeUrl),this.TopIframeHeightPx=a.pString(c.TopIframeHeightPx,this.TopIframeHeightPx)),p.locale()!==this.ShortLanguage&&"Arabic"!==this.Language&&"Persian"!==this.Language&&p.locale(this.ShortLanguage),setTimeout(n.bind(this.initTimezone,this),1e3)},initTimezone:function(){if(o("9kOp").isUserNormalOrTenant()){var e=o("H20a"),t=o("EFhx"),i=o("skxT"),M=o("HCAJ"),a=p(),c=p.tz.guess(),b=this.timezone();""===b?t.send("Core","UpdateUserTimezone",{Timezone:c}):(b!==c&&M.getData("aurora_core_browser-timezone")!==c&&(i.showReport(e.i18n("COREWEBCLIENT/CONFIRM_TIMEZONE_CHANGES",{OLDTIME:a.clone().tz(b).format("HH:mm")+" ("+b+")",NEWTIME:a.format("HH:mm")+" ("+c+")"}),0),r(".report_panel.report a").on("click",n.bind((function(){M.removeData("aurora_core_browser-timezone"),t.send("Core","UpdateUserTimezone",{Timezone:c},n.bind((function(t){i.hideReport(),!0===t.Result?(M.setData("aurora_core_browser-timezone",c),this.timezone(c)):i.showError(e.i18n("COREWEBCLIENT/ERROR_TIMEZONE_CHANGES"))}),this))}),this))),M.setData("aurora_core_browser-timezone",c))}},update:function(e,t,o,n,r,i,p,M){"string"==typeof e&&(this.SiteName=e),"string"==typeof r&&(this.Language=r),"string"==typeof i&&this.timeFormat(i),"string"==typeof p&&this.dateFormat(p),"boolean"==typeof M&&(this.AllowDesktopNotifications=M),"number"==typeof t&&(this.AutoRefreshIntervalMinutes=t),"string"==typeof o&&(this.Theme=o),"string"==typeof n&&(this.MobileTheme=n)},updateSecurity:function(e,t){this.AdminHasPassword=t,this.AdminLogin=e},updateDb:function(e,t,o){this.DbHost=o,this.DbLogin=e,this.DbName=t,this.dbSettingsChanged(!0)}};s.init(c),e.exports=s},HCAJ:(e,t,o)=>{"use strict";var n=o("M4cL");function r(){this.bHtml5=!0,this.init()}r.prototype.hasData=function(e){return!!(this.bHtml5?localStorage.getItem(e):n.cookie(e))},r.prototype.getData=function(e){var t=this.bHtml5?localStorage.getItem(e):n.cookie(e),o="";try{o=n.parseJSON(t)}catch(e){}return o},r.prototype.setData=function(e,t){var o=JSON.stringify(t);this.bHtml5?localStorage.setItem(e,o):n.cookie(e,o,{expires:30})},r.prototype.removeData=function(e){this.bHtml5?localStorage.removeItem(e):n.cookie(e,null)},r.prototype.init=function(){if("undefined"==typeof Storage)this.bHtml5=!1;else try{localStorage.setItem("aurora_core_check","aurora"),localStorage.removeItem("aurora_core_check")}catch(e){this.bHtml5=!1}},r.prototype.replaceStorageDataKey=function(e,t){let o=this.getData(e);o&&(this.removeData(e),"MessageDetailsVisible"===e&&(o="1"===o),t&&this.setData(t,o))},r.prototype.convertStorageData=function(e,t){[{old:"showNewTimezone",new:"aurora_core_browser-timezone"},{old:"folderAccordionCleared",new:""},{old:"message_listResizerWidth",new:"aurora_mail_resizer-width"},{old:"folder_2pane_listResizerWidth",new:"aurora_mail_hr_folders_resizer-width"},{old:"message_2pane_listResizerWidth",new:"aurora_mail_hr_messages_resizer-width"},{old:"compose_attachmentsResizerWidth",new:"aurora_mail_compose_resizer-width"},{old:"contact_listResizerWidth",new:"aurora_contacts_resizer-width"},{old:"files_listResizerWidth",new:"aurora_files_resizer-width"},{old:"files_list1ResizerWidth",new:"aurora_files_preview_resizer-width"},{old:"calendarResizerWidth",new:"aurora_calendar_resizer-width"},{old:"tasks_listResizerWidth",new:"aurora_tasks_resizer-width"},{old:"sendersExpanded",new:"aurora_custom_senders-expanded"},{old:"moveMessagesHistoryData",new:"aurora_custom_move-messages-history-data"},{old:"MailtoAsked",new:"aurora_mail_is-mailto-asked"},{old:"MessageDetailsVisible",new:"aurora_mail_is-message-details-visible"}].forEach((e=>{this.replaceStorageDataKey(e.old,e.new)})),this.replaceStorageDataKey(`user_${e}_cryptoKeyEncrypted`,`aurora_paranoid_user_${e}_encrypted-crypto-key`),this.replaceStorageDataKey(`user_${e}_public-keys`,`aurora_openpgp_user_${e}_public-keys`),this.replaceStorageDataKey(`user_${e}_private-keys`,`aurora_openpgp_user_${e}_private-keys`),t&&(this.replaceStorageDataKey("folderAccordion",`aurora_mail_account_${t.currentId()}_expanded-folders`),t.collection().forEach((e=>{this.replaceStorageDataKey(`customSenderList-${e.id()}`,`aurora_custom_account_${e.id()}_sender-list`)})))},e.exports=new r},mGms:(e,t,o)=>{"use strict";var n=o("a7T2"),r=o("M4cL"),i=o("9kOp"),p=[];e.exports={openTab:function(e,t){r.cookie("aft-cache-ctrl","1");var o=window.open(e,"_blank");return o&&(o.focus(),o.name=t||(i.currentAccountId?i.currentAccountId():0),p.push(o)),o},open:function(e,t,o,n=""){var r,M,a,c,b,s="location=no,toolbar=no,status=no,scrollbars=yes,resizable=yes"+(o?",menubar=yes":",menubar=no"),z=null;return t=t.replace(/\W/g,""),s+=""===n?(r=window.screen.width,M=Math.ceil(.8*r),a=Math.ceil((r-M)/2),c=window.screen.height,",width="+M+",height="+(b=Math.ceil(.8*c))+",top="+Math.ceil((c-b)/2)+",left="+a):n,(z=window.open(e,t,s))&&(z.focus(),z.name=i.currentAccountId?i.currentAccountId():0,p.push(z)),z},isSameOrigin:function(e){var t="";try{t=e.location.origin}catch(e){console.log("The following error was catched:"),console.error(e)}return window.location.origin===t},getOpenedWindows:function(){return p=n.filter(p,function(e){return this.isSameOrigin(e)&&!e.closed}.bind(this))},closeAll:function(){n.each(p,(function(e){e.closed||e.close()})),p=[]}}},BN3r:(e,t,o)=>{var n,r=o("M4cL");o("yLoK"),(n=r).ui.autocomplete.prototype._renderItem=function(e,t){t.label=t.label.replace(/\/g,">");let o=[];t.disabled&&o.push("disabled"),t.groupId&&o.push("menu-item-group"),t.hasKey&&o.push("menu-item-has-key");let r=o.length>0?` class="${o.join(" ")}"`:"",i=t.hasKey?'':"",p="",M=t.team||t.disabled||t.groupId?"":'';return t.isUserGroup&&(p=''),t.isAllUsersGroup&&(p=''),t.isContactGroup&&(p=''),n(``).append(`${p}${i}${M}`).appendTo(e)},n.ui.autocomplete.prototype._renderMenu=function(e,t){var o=this,r="";n.each(t,(function(t,n){n&&n.category&&n.category!==r&&(r=n.category,e.append(''+n.category+"")),o._renderItemData(e,n)}))},n.ui.autocomplete.prototype._move=function(e,t){this.menu.element.is(":visible")?(this.menu.isFirstItem()&&/^previous/.test(e)?(this._value(this.term),this.menu._move("first","first",t)):this.menu.isLastItem()&&/^next/.test(e)&&(this._value(this.term),this.menu._move("last","last",t)),this.menu[e](t)):this.search(null,t)},e.exports={}},"p/cB":(e,t,o)=>{"use strict";var n=o("a7T2"),r=o("OfVV"),i={has:function(e,t){return!!n.find(window.Enums[e],(function(e){return t===e}))},Key:{Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Up:38,Down:40,Left:37,Right:39,Del:46,Six:54,a:65,b:66,c:67,f:70,i:73,k:75,n:78,p:80,q:81,r:82,s:83,u:85,v:86,y:89,z:90,F5:116,Comma:188,Dot:190,Dash:192,Apostrophe:222},Errors:{InvalidToken:101,AuthError:102,DataBaseError:104,LicenseProblem:105,DemoLimitations:106,Captcha:107,AccessDenied:108,UserAlreadyExists:111,SystemNotConfigured:112,LicenseLimit:115,CanNotChangePassword:502,AccountOldPasswordNotCorrect:1020,AccountAlreadyExists:704,HelpdeskThrowInWebmail:805,HelpdeskUserNotExists:807,HelpdeskUserNotActivated:808,IncorrectFileExtension:811,CanNotUploadFileQuota:812,FileAlreadyExists:813,FileNotFound:814,CanNotUploadFileLimit:815,DataTransferFailed:1100,NotDisplayedError:1155},SortOrder:{Asc:0,Desc:1},MobilePanel:{Groups:1,Items:2,View:3},TimeFormat:{F24:"0",F12:"1"}};i.UserRole=r.EUserRole,void 0===window.Enums&&(window.Enums={}),n.extendOwn(window.Enums,i)},"/FUc":(e,t,o)=>{"use strict";var n=o("a7T2"),r=o("M4cL"),i=o("p09A"),p=o("H20a"),M=o("KC/L"),a=o("dfnr");i.bindingHandlers.avatarIcon={init:function(e,t){var o=n.defaults(t(),{image:"",label:"",color:"#ccc"});r(e).css("background-color",o.color),o.image?r("").appendTo(e).css("background","url("+o.image+") center/cover no-repeat"):o.label[0]&&r(e).append(""+o.label[0].toUpperCase()+"")}},i.bindingHandlers.i18n={init:function(e,t){var o=t(),n=o.key,i=o.type||"text",M=p.i18n(n);if(""!==M)switch(i){case"html":r(e).html(M);break;case"placeholder":r(e).attr({placeholder:M});break;default:r(e).text(M)}}},i.bindingHandlers.dropdown={update:function(e,t,o,i){var p,a,c,b=r(e),s=n.defaults(t(),{disabled:"disabled",expand:"expand",control:!0,container:".dropdown_content",scrollToTopContainer:".scroll-inner",passClick:!0,trueValue:!0}),z="function"==typeof s.control?s.control():s.control,O=b.find(".control"),u=b.find(".dropdown"),d=b.find(".dropdown_helper"),l=b.find(".dropdown_arrow"),A=b.find(".dropdown_arrow.bottom_arrow"),f=b.hasClass("right"),h=r(document),q=!1,m=function(){n.isFunction(s.callback)&&s.callback.call(i,!!b.hasClass(s.expand)&&s.trueValue,b)},W=function(e){e.stopPropagation()},_=function(e){void 0===e&&(e=!b.hasClass(s.expand)),!e&&b.hasClass(s.expand)&&s.scrollToTopContainer&&b.find(s.scrollToTopContainer).scrollTop(0),b.toggleClass(s.expand,e),A.length>0&&b.hasClass(s.expand)&&u.css({top:b.position().top-d.height()+"px",left:b.position().left+"px",width:"auto"})},g=function(e){(p=d.offset())&&(a=p.left+10,(c=r(window).width()-(a+d.outerWidth(!0)))>0&&(c=0),f||(d.css("left",e||c+"px"),l.css("left",e||Math.abs(c?c+M.pInt(l.css("margin-left")):0)+"px")))},L=function(e){r(e.originalEvent.originalTarget).parents(".dropdown").length>0||b.hasClass(s.disabled)||q||(_(),n.defer((function(){m()})),b.hasClass(s.expand)&&(s.close&&s.close.subscribe&&s.close(!0),n.defer((function(){h.on("click.dropdown",(function(e){!s.passClick&&2===e.button||q||(h.unbind("click.dropdown"),s.close&&s.close.subscribe&&s.close(!1),_(!1),m(),g(0)),q=!1}))})),g()))};b.off(),O.off(),s.passClick||(b.find(s.container).on("click",W),b.on("click",W),O.on("click",W)),_(!1),s.close&&s.close.subscribe&&s.close.subscribe((function(e){e||(h.unbind("click.dropdown"),_(!1)),m()})),b.on("mousedown",(function(e,t){q=r(e.target).hasClass("customscroll-scrollbar")||r(e.target.parentElement).hasClass("customscroll-scrollbar")})),b.on("click",(function(e){z||L(e)})),O.on("click",(function(e){z&&L(e)})),g(0)}},i.bindingHandlers.initDom={init:function(e,t){var o=t();o&&o(r(e))}},i.bindingHandlers.command={init:function(e,t,o,n){var p=r(e),M=t();if(!M||!M.enabled||!M.canExecute)throw new Error("You are not using command function");p.addClass("command"),i.bindingHandlers[p.is("form")?"submit":"click"].init.apply(n,arguments)},update:function(e,t){var o=!0,n=r(e),i=t();o=i.enabled(),n.toggleClass("command-not-enabled",!o),o&&(o=i.canExecute(),n.toggleClass("unavailable",!o)),n.toggleClass("command-disabled disable disabled",!o),n.toggleClass("enable",o)}},i.bindingHandlers.checkstate={update:function(e,t,o,i,p){var M=e.oOptions||null,c=e.jqElement||null,b=e.oIconIE||null,s=t(),z=s.state;void 0!==s.state&&(c||(e.jqElement=c=r(e)),M||(e.oOptions=M=n.defaults(s,{activeClass:"process",duration:800})),function(e,t,o,n){!e.__interval&&t?(e.__state=!0,n(e,!0),e.__interval=window.setInterval((function(){e.__state||(n(e,!1),window.clearInterval(e.__interval),e.__interval=null)}),o)):t||(e.__state=!1)}(c,z,M.duration,(function(t,o){if(a.ie9AndBelow)if(b||(e.oIconIE=b=c.find(".icon")),!b.__intervalIE&&o){var n=0,r="";b.__intervalIE=setInterval((function(){r="0px -"+20*n+"px",n=n<7?n+1:0,b.css({"background-position":r})}),1e3/12)}else b.css({"background-position":"0px 0px"}),clearInterval(b.__intervalIE),b.__intervalIE=null;else t.toggleClass(M.activeClass,o)})))}},i.bindingHandlers.heightAdjust={update:function(e,t,o){var i=e.jqElement||null,p=0,M=t().location,a=t().delay||400;i||(e.jqElement=i=r(e)),n.delay((function(){n.each(t().elements,(function(e){var t=e();t&&(p+=t.is(":visible")?t.outerHeight():0)})),"top"===M||void 0===M?i.css({"padding-top":p,"margin-top":-p}):"bottom"===M&&i.css({"padding-bottom":p,"margin-bottom":-p})}),a)}},i.bindingHandlers.minHeightAdjust={update:function(e,t,o){var i=r(e),p=t(),M=p.adjustElement||r("body"),a=p.minHeight||0;p.removeTrigger&&M.css("min-height","inherit"),p.trigger&&n.delay((function(){M.css({"min-height":i.outerHeight(!0)+a})}),100)}},i.bindingHandlers.listWithMoreButton={init:function(e,t){var o=r(e);o.resize((function(){var e=o.find("span.hotkey"),t=o.find("span.item"),i=o.find("span.more_hints").show(),p=o.width(),M=i.width(),a=!0;n.each(e,(function(e,o){var n=r(e),i=n.width();n&&!n.hasClass("not-display")&&(a&&M+i=(p=i.outerWidth(!0))?1:p,n&&r(window).bind("resize",(function(){var e=o.width();n(00&&(c=r(n.max(e,(function(e){return e.offsetWidth}))),b=c.parent(),s=b.find(".icon"),a.css("min-width",M.pInt(b.css("margin-left"))+M.pInt(b.css("padding-left"))+M.pInt(s.width())+M.pInt(s.css("margin-left"))+M.pInt(s.css("margin-right"))+M.pInt(s.css("padding-left"))+M.pInt(s.css("padding-right"))+M.pInt(c.width())+M.pInt(c.css("margin-left"))+M.pInt(c.css("padding-left"))+10))}),this),1)}},e.exports={}},"2kH5":(e,t,o)=>{"use strict";var n=o("p09A"),r=o("a7T2"),i=o("M4cL"),p=o("REt5"),M=o("H20a"),a=o("dfnr"),c=o("HCAJ"),b=o("QD3V");o("O/kJ"),o("6gxe"),o("yLoK"),o("1kC8"),o("BN3r"),n.bindingHandlers.splitterFlex={valiateStorageData:function(e,t){return(!r.isArray(e)||r.contains(e,0)||r.contains(e,null)||r.contains(e,NaN))&&r.isArray(t)&&(e=t),e},init:function(e,t){r.defer((function(){var o=Object.assign({minSize:200,sizes:[20,80],storagePrefix:""},t()),i=`${o.storagePrefix}resizer-width`,p=n.bindingHandlers.splitterFlex.valiateStorageData(c.getData(i),o.sizes),M=null,a=[].slice.call(e.children),s={minSize:o.minSize,gutterSize:0,gutter:function(e,t){var o=document.createElement("div");return o.appendChild(document.createElement("div")),o.className="gutter gutter-"+t,o},onDragEnd:function(){c.setData(i,M.getSizes()),o.expandSecondPaneWidth&&o.expandSecondPaneWidth(!1),o.expandThirdPaneWidth&&o.expandThirdPaneWidth(!1)}};function z(){var e=o.expandSecondPaneWidth&&o.expandSecondPaneWidth(),t=o.expandThirdPaneWidth&&o.expandThirdPaneWidth();if(!e&&!t){var n=c.getData(i);r.isArray(n)&&M.setSizes(n)}}r.isArray(p)&&(s.sizes=p),o.direction&&"vertical"===o.direction&&(s.direction="vertical"),M=b(a,s),o.expandSecondPaneWidth&&o.expandSecondPaneWidth.subscribe((function(){o.expandThirdPaneWidth&&o.expandThirdPaneWidth(!1);var e=M.getSizes();o.expandSecondPaneWidth()?M.setSizes([e[0],99-e[0],1]):z()})),o.expandThirdPaneWidth&&o.expandThirdPaneWidth.subscribe((function(){o.expandSecondPaneWidth&&o.expandSecondPaneWidth(!1);var e=M.getSizes();o.expandThirdPaneWidth()?M.setSizes([e[0],1,99-e[0]]):z()}))}))}},n.bindingHandlers.customScrollbar={init:function(e,t,o,n){var p=i(e),M=r.defaults(t(),{oScroll:null,scrollToTopTrigger:null,scrollToBottomTrigger:null,scrollTo:null}),a=null;p.addClass("scroll-wrap").customscroll(M),a=p.data("customscroll"),M.oScroll&&r.isFunction(M.oScroll.subscribe)?M.oScroll(a):M.oScroll=a,M.reset||(e._customscroll_reset=r.throttle((function(){a.reset()}),100)),M.scrollToTopTrigger&&r.isFunction(M.scrollToTopTrigger.subscribe)&&M.scrollToTopTrigger.subscribe((function(){a&&a.scrollToTop()})),M.scrollToBottomTrigger&&r.isFunction(M.scrollToBottomTrigger.subscribe)&&M.scrollToBottomTrigger.subscribe((function(){a&&a.scrollToBottom()})),M.scrollTo&&r.isFunction(M.scrollTo.subscribe)&&M.scrollTo.subscribe((function(){a&&a.scrollTo(M.scrollTo())}))},update:function(e,t,o,n,r){e._customscroll_reset&&e._customscroll_reset(),t().top&&i(e).data("customscroll").vertical.set(t().top)}},n.bindingHandlers.draggable={init:function(e,t){i(e).attr("draggable",n.utils.unwrapObservable(t()))}},n.bindingHandlers.draggablePlace={update:function(e,t,o,r,p){if(null===t())return i(e).draggable()&&i(e).draggable("destroy"),null;var M=o?o():null;i(e).draggable({distance:20,handle:".dragHandle",cursorAt:{top:0,left:0},helper:function(e){var o=navigator.platform.toUpperCase().indexOf("MAC")>=0,p=o?e.metaKey:e.ctrlKey;return o&&e.ctrlKey?i(""):t().apply(r,e&&e.target?[n.dataFor(e.target),p]:null)},start:M&&M.draggableDragStartCallback?M.draggableDragStartCallback:function(){},stop:M&&M.draggableDragStopCallback?M.draggableDragStopCallback:function(){}}).on("mousedown",(function(){!function(){if(document&&document.activeElement&&document.activeElement.blur){var e=i(document.activeElement);(e.is("input")||e.is("textarea"))&&document.activeElement.blur()}}()}))}},n.bindingHandlers.droppable={update:function(e,t){var o=t(),n=o.valueFunc,p=o.switchObserv;r.isFunction(n)?(i(e).droppable({hoverClass:"droppableHover",drop:function(e,t){n(e,t)}}),p&&(p.subscribe((function(t){i(e).data().uiDroppable&&(t?i(e).droppable("disable"):i(e).droppable("enable"))}),this),p.valueHasMutated())):i(e).droppable()&&i(e).droppable("destroy")}},n.bindingHandlers.quickReplyAnim={update:function(e,t,o,n,p){var M,c=e.jqTextarea||null,b=e.jqStatus||null,s=e.jqButtons||null,z=e.jqElement||null,O=e.oPrevActions||null,u=t();M=r.defaults(u,{saveAction:!1,sendAction:!1,activeAction:!1}),z||(e.jqElement=z=i(e),e.jqTextarea=c=z.find("textarea"),e.jqStatus=b=z.find(".status"),e.jqButtons=s=z.find(".buttons"),e.oPrevActions=O={saveAction:null,sendAction:null,activeAction:null}),a.ie9AndBelow?(!c||z.defualtHeight||c.defualtHeight||(z.defualtHeight=z.outerHeight(),c.defualtHeight=c.outerHeight(),b.defualtHeight=s.outerHeight(),s.defualtHeight=s.outerHeight()),r.defer((function(){var e=O.activeAction!==M.activeAction,t=O.sendAction!==M.sendAction,o=O.saveAction!==M.saveAction;e&&(M.activeAction?(c.animate({height:c.defualtHeight+50},300),z.animate({"max-height":z.defualtHeight+s.defualtHeight+50},300)):(c.animate({height:c.defualtHeight},300),z.animate({"max-height":z.defualtHeight},300))),(t||o)&&(M.sendAction?(z.animate({"max-height":"30px"},300),b.animate({"max-height":"30px",opacity:1},300)):M.saveAction?z.animate({"max-height":0},300):(z.animate({"max-height":z.defualtHeight+s.defualtHeight+50},300),b.animate({"max-height":0,opacity:0},300)))}))):(z.toggleClass("saving",M.saveAction),z.toggleClass("sending",M.sendAction),z.toggleClass("active",M.activeAction)),r.defer((function(){O=M}))}},n.bindingHandlers.onCtrlEnter={init:function(e,t,o,n){var r=i(e);r.on("keydown",(function(e){e.ctrlKey&&e.keyCode===Enums.Key.Enter&&(r.trigger("change"),t().call(n))}))}},n.bindingHandlers.onEsc={init:function(e,t,o,n){var r=i(e);r.on("keydown",(function(e){e.keyCode===Enums.Key.Esc&&(r.trigger("change"),t().call(n))}))}},n.bindingHandlers.autocompleteSimple={init:function(e,t,o,n,M){var a=i(e),c=t(),b=c.callback,s=c.dataAccessor?c.dataAccessor:p.emptyFunction(),z=function(){fDeleteAccessor(u);var e=a.data("customAutocomplete")||a.data("uiAutocomplete")||a.data("autocomplete")||a.data("ui-autocomplete");i.ui.autocomplete.prototype.__response.call(e,r.filter(O,(function(e){return e.value!==u.value})))},O=null,u=null;if(b&&a&&a[0]){a.autocomplete({minLength:1,autoFocus:!0,position:{collision:"flip"},source:function(e,t){b(e,(function(e){O=e,t(e)}))},focus:function(e,t){return!(!t.item||t.item.disabled||(u=t.item,0))},open:function(e,t){i(a.autocomplete("widget")).find("span.del").on("click",(function(e,t){p.calmEvent(e),z()}))},select:function(e,t){return!(!t.item||t.item.disabled||(r.delay((function(){a.trigger("change")}),5),s(t.item),0))}}).on("click",(function(e,t){""===a.val()&&(i(a.autocomplete("widget")).is(":visible")?a.autocomplete("close"):(a.autocomplete("option","minLength",0),a.autocomplete("search"),a.autocomplete("option","minLength",1)))})).on("keydown",(function(e,t){O&&u&&!u.global&&e.keyCode===Enums.Key.Del&&e.shiftKey&&(p.calmEvent(e),z())}));var d=a.data("customAutocomplete")||a.data("uiAutocomplete")||a.data("autocomplete")||a.data("ui-autocomplete");d&&(r.isFunction(c.renderItem)&&(d._renderItem=c.renderItem),d._resizeMenu=function(){this.menu.element.outerWidth(this.element.outerWidth())}),a.autocomplete("widget").addClass("autocomplete-simple")}}},n.bindingHandlers.customSelect={init:function(e,t,o,p){var a=i(e),c=r.defaults(t(),{disabled:"disabled",selected:"selected",expand:"expand",control:!0,input:!1,expandState:function(){},options:[],optionsValue:"value",optionsText:"text",timeOptions:null}),b=[],s=c.control?a.find(".control"):a,z=a.find(".dropdown_content"),O=a.find(".link"),u=function(){z.empty(),b=[],r.each(n.isObservable(c.options)?c.options():c.options,(function(e){var t=i('').text(e[c.optionsText]).data("value",e[c.optionsValue]);t.data("isDisabled",e.isDisabled).toggleClass("disabled",!!e.isDisabled),b.push(t),z.append(t)}),this)};u(),z.on("click",".item",(function(){var e=i(this);e.data("isDisabled")||c.value(e.data("value"))})),n.isObservable(c.value)&&(c.value.subscribe((function(){const e=function(e){const t=n.isObservable(c.options)?c.options():c.options;r.each(b,(function(e){e.removeClass(c.selected)}));var o=r.find(t,(function(t){return t[c.optionsValue]===e}));return o?(b[r.indexOf(t,o)].addClass(c.selected),O.text(M.trim(o[c.optionsText]))):o=t[0],o[c.optionsValue]}(c.value());c.input||c.value()===e||c.value(e)}),p),c.value.valueHasMutated()),n.isObservable(c.options)&&c.options.subscribe((function(){u()}),p),a.removeClass(c.expand),s.on("click",(function(){if(!a.hasClass(c.disabled)&&(a.toggleClass(c.expand),c.expandState(a.hasClass(c.expand)),a.hasClass(c.expand))){var e=a.find(".dropdown_content"),t=e.find(".selected");t.position()&&(e.scrollTop(0),e.scrollTop(t.position().top-100)),r.defer((function(){i(document).one("click",(function(){a.removeClass(c.expand),c.expandState(!1)}))}))}}))}}},"0zH2":(e,t,o)=>{"use strict";var n=o("p09A"),r=o("KC/L");n.extenders.reversible=function(e){var t=e();return e.commit=function(){t=e()},e.revert=function(){e(t)},e.commitedValue=function(){return t},e.changed=function(){return t!==e()},e},n.extenders.autoResetToFalse=function(e,t){return e.iTimeout=0,e.subscribe((function(o){o&&(window.clearTimeout(e.iTimeout),e.iTimeout=window.setTimeout((function(){e.iTimeout=0,e(!1)}),r.pInt(t)))})),e},n.extenders.disableLinebreaks=function(e,t){if(t){var o=n.computed({read:function(){return e()},write:function(t){e(t.replace(/[\r\n\t]+/gm," "))}});return o(e()),o}return e}},QaQG:(e,t,o)=>{"use strict";var n=o("a7T2"),r=o("M4cL"),i=o("p09A");i.bindingHandlers.simpleTemplate={init:function(e,t){var o=r(e);o.length>0&&"replaced"!==o.data("replaced")&&(o.html(o.html().replace(/<script(.*?)>/i,"