![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /opt/mattermost/client/ |
Upload File : |
"use strict";(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[3572],{15252:(e,t,n)=>{n.d(t,{S:()=>o});var i=n(97023),r=n.n(i);function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const i=e=>r().createElement(r().Suspense,{fallback:n},r().createElement(t,e));return i.displayName=e,i}},83007:(e,t,n)=>{n.d(t,{J:()=>f}),n(17046),n(4290);var i=n(70893),r=n(28022),o=n(51881),s=n(75644),d=n(4715);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,i.createBrowserHistory)({basename:window.basename}),c=(0,d.y3)()&&(0,s.l)((0,d.B7)(),"5.0.0"),w=u(u({},p),{},{push:function(e){if(c)o.h.doBrowserHistoryPush("object"==typeof e?e.pathname:e);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];p.push(e,...n)}}});function f(){var e;return null!==(e=(0,r.getModule)("utils/browser_history"))&&void 0!==e?e:w}c&&o.h.onBrowserHistoryPush((e=>p.push(e)))},51881:(e,t,n)=>{n.d(t,{h:()=>d}),n(43813),n(17046),n(4290);var i=n(98449),r=n.n(i),o=n(4715);function s(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=new class{constructor(){var e,t;s(this,"getAppName",(()=>this.name)),s(this,"getAppVersion",(()=>this.version)),s(this,"getPrereleaseVersion",(()=>this.prereleaseVersion)),s(this,"isDev",(()=>this.dev)),s(this,"getDesktopAppInfo",(()=>{var e;return null!==(e=window.desktopAPI)&&void 0!==e&&e.getAppInfo?window.desktopAPI.getAppInfo():this.invokeWithMessaging("webapp-ready",void 0,"register-desktop")})),s(this,"getBrowserHistoryStatus",(async()=>{var e;if(null!==(e=window.desktopAPI)&&void 0!==e&&e.requestBrowserHistoryStatus)return window.desktopAPI.requestBrowserHistoryStatus();const{enableBack:t,enableForward:n}=await this.invokeWithMessaging("history-button",void 0,"history-button-return");return{canGoBack:t,canGoForward:n}})),s(this,"onUserActivityUpdate",(e=>{var t;if(null!==(t=window.desktopAPI)&&void 0!==t&&t.onUserActivityUpdate)return window.desktopAPI.onUserActivityUpdate(e);const n=t=>{let{userIsActive:n,manual:i}=t;return e(n,0,i)};return this.addPostMessageListener("user-activity-update",n),()=>this.removePostMessageListener("user-activity-update",n)})),s(this,"onNotificationClicked",(e=>{var t;if(null!==(t=window.desktopAPI)&&void 0!==t&&t.onNotificationClicked)return window.desktopAPI.onNotificationClicked(e);const n=t=>{let{channel:n,teamId:i,url:r}=t;return e(n.id,i,r)};return this.addPostMessageListener("notification-clicked",n),()=>this.removePostMessageListener("notification-clicked",n)})),s(this,"onBrowserHistoryPush",(e=>{var t;if(null!==(t=window.desktopAPI)&&void 0!==t&&t.onBrowserHistoryPush)return window.desktopAPI.onBrowserHistoryPush(e);const n=t=>{let{pathName:n}=t;return e(n)};return this.addPostMessageListener("browser-history-push-return",n),()=>this.removePostMessageListener("browser-history-push-return",n)})),s(this,"onBrowserHistoryStatusUpdated",(e=>{var t;if(null!==(t=window.desktopAPI)&&void 0!==t&&t.onBrowserHistoryStatusUpdated)return window.desktopAPI.onBrowserHistoryStatusUpdated(e);const n=t=>{let{enableBack:n,enableForward:i}=t;return e(n,i)};return this.addPostMessageListener("history-button-return",n),()=>this.removePostMessageListener("history-button-return",n)})),s(this,"onReceiveMetrics",(e=>{var t,n;return null===(t=window.desktopAPI)||void 0===t||null===(n=t.onSendMetrics)||void 0===n?void 0:n.call(t,e)})),s(this,"dispatchNotification",(async(e,t,n,i,r,o,s)=>{var d;if(null!==(d=window.desktopAPI)&&void 0!==d&&d.sendNotification){const d=await window.desktopAPI.sendNotification(e,t,n,i,s,r,o);return null!=d?d:{status:"unsupported",reason:"desktop_app_unsupported"}}return window.postMessage({type:"dispatch-notification",message:{title:e,body:t,channel:{id:n},teamId:i,silent:r,data:{soundName:o},url:s}},window.location.origin),{status:"unsupported",reason:"desktop_app_unsupported"}})),s(this,"doBrowserHistoryPush",(e=>{var t;null!==(t=window.desktopAPI)&&void 0!==t&&t.sendBrowserHistoryPush?window.desktopAPI.sendBrowserHistoryPush(e):window.postMessage({type:"browser-history-push",message:{path:e}},window.location.origin)})),s(this,"updateUnreadsAndMentions",((e,t)=>{var n;return(null===(n=window.desktopAPI)||void 0===n?void 0:n.setUnreadsAndMentions)&&window.desktopAPI.setUnreadsAndMentions(e,t)})),s(this,"setSessionExpired",(e=>{var t;return(null===(t=window.desktopAPI)||void 0===t?void 0:t.setSessionExpired)&&window.desktopAPI.setSessionExpired(e)})),s(this,"signalLogin",(()=>{var e,t;return null===(e=window.desktopAPI)||void 0===e||null===(t=e.onLogin)||void 0===t?void 0:t.call(e)})),s(this,"signalLogout",(()=>{var e,t;return null===(e=window.desktopAPI)||void 0===e||null===(t=e.onLogout)||void 0===t?void 0:t.call(e)})),s(this,"reactAppInitialized",(()=>{var e,t;return null===(e=window.desktopAPI)||void 0===e||null===(t=e.reactAppInitialized)||void 0===t?void 0:t.call(e)})),s(this,"postMessageListener",(e=>{var t;let{origin:n,data:{type:i,message:r}}=e;if(n!==window.location.origin)return;const o=null===(t=this.postMessageListeners)||void 0===t?void 0:t.get(i);o&&o.forEach((e=>{e(r)}))})),s(this,"addPostMessageListener",((e,t)=>{var n,i;null!==(n=this.postMessageListeners)&&void 0!==n&&n.has(e)?this.postMessageListeners.set(e,this.postMessageListeners.get(e).add(t)):null===(i=this.postMessageListeners)||void 0===i||i.set(e,new Set([t]))})),s(this,"removePostMessageListener",((e,t)=>{var n;const i=null===(n=this.postMessageListeners)||void 0===n?void 0:n.get(e);var r,o;null==i||i.delete(t),null!=i&&i.size?null===(r=this.postMessageListeners)||void 0===r||r.set(e,i):null===(o=this.postMessageListeners)||void 0===o||o.delete(e)})),s(this,"invokeWithMessaging",((e,t,n)=>new Promise((i=>{const r=t=>{let{origin:o,data:{type:s,message:d}}=t;o===window.location.origin&&s===(null!=n?n:e)&&(window.removeEventListener("message",r),i(d))};window.addEventListener("message",r),window.postMessage({type:e,message:t},window.location.origin)})))),(0,o.y3)()&&(this.getDesktopAppInfo().then((e=>{var t;let{name:n,version:i}=e;this.name=n,this.version=r().valid(r().coerce(i)),this.prereleaseVersion=null==i||null===(t=i.split("-"))||void 0===t?void 0:t[1],window.desktop||(window.desktop={}),window.desktop.version=r().valid(r().coerce(i))})),null===(e=window.desktopAPI)||void 0===e||null===(t=e.isDev)||void 0===t||t.call(e).then((e=>{this.dev=e})),this.postMessageListeners=new Map,window.addEventListener("message",this.postMessageListener),window.addEventListener("beforeunload",(()=>{window.removeEventListener("message",this.postMessageListener)})))}}},75644:(e,t,n)=>{function i(e,t){if(e===t)return!0;const n=(e||"").split(".").filter((e=>null!==/^[0-9]+$/.exec(e))),i=(t||"").split(".").filter((e=>null!==/^[0-9]+$/.exec(e)));for(let e=0;e<Math.max(n.length,i.length);e++){const t=parseInt(n[e],10)||0,r=parseInt(i[e],10)||0;if(t>r)return!0;if(t<r)return!1}return!0}n.d(t,{l:()=>i}),n(3188),n(83931)},4715:(e,t,n)=>{n.d(t,{B7:()=>x,BD:()=>b,C4:()=>d,Ct:()=>c,Ec:()=>h,Fr:()=>f,H8:()=>r,KR:()=>w,UP:()=>y,VN:()=>g,Yn:()=>u,aR:()=>l,cX:()=>k,gm:()=>v,j9:()=>A,je:()=>a,m0:()=>p,mI:()=>m,nr:()=>o,uF:()=>O,ux:()=>s,y3:()=>P}),n(3188);const i=()=>window.navigator.userAgent;function r(){return i().indexOf("Chrome")>-1&&-1===i().indexOf("Edge")}function o(){return-1!==i().indexOf("Safari")&&-1===i().indexOf("Chrome")}function s(){return(-1!==i().indexOf("iPhone")||-1!==i().indexOf("iPad"))&&-1!==i().indexOf("Safari")&&-1===i().indexOf("CriOS")}function d(){return-1!==i().indexOf("CriOS")}function a(){return-1!==i().indexOf("FxiOS")}function u(){return s()||d()}function l(){return-1!==i().indexOf("iPhone")||-1!==i().indexOf("iPad")}function p(){return-1!==i().indexOf("Android")}function c(){return-1!==i().indexOf("Android")&&-1!==i().indexOf("Chrome")&&-1===i().indexOf("Version")||-1!==i().indexOf("Android")&&-1!==i().indexOf("Firefox")}function w(){return f()&&!u()&&!c()}function f(){return l()||p()}function v(){return-1!==i().indexOf("Firefox")}function h(){return-1!==i().indexOf("CrOS")}function g(){return-1!==i().indexOf("Trident")}function y(){return-1!==i().indexOf("Edge")}function m(){return-1!==i().indexOf("Edg")&&-1===i().indexOf("Edge")}function P(){return-1!==i().indexOf("Mattermost")&&-1!==i().indexOf("Electron")}function b(){return P()&&k()}function O(){return-1!==i().indexOf("Windows")}function k(){return-1!==i().indexOf("Macintosh")}function A(){return navigator.platform.toUpperCase().indexOf("LINUX")>=0}function x(){var e;return(null===(e=/Mattermost\/(\d+\.\d+\.\d+)/gm.exec(window.navigator.appVersion))||void 0===e?void 0:e[1])||""}}}]); //# sourceMappingURL=3572.0177e4027d7f325769dd.js.map