(self.webpackChunk=self.webpackChunk||[]).push([[37114],{724146:(e,t,n)=>{var r=n(270830),o=n(442383),i=Array.prototype.splice;e.exports=function(e,t){for(var n=e?t.length:0,a=n-1;n--;){var u=t[n];if(n==a||u!==s){var s=u;o(u)?i.call(e,u,1):r(e,u)}}return e}},127473:(e,t,n)=>{var r=n(752033);e.exports=function(e,t){var n;return r(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}},29115:(e,t,n)=>{var r=n(471928),o=n(335159),i=n(107270),a=n(280068),u=n(756016),s=n(450098),c=Object.prototype.hasOwnProperty,d=i((function(e,t){if(u(t)||a(t))o(t,s(t),e);else for(var n in t)c.call(t,n)&&r(e,n,t[n])}));e.exports=d},917078:(e,t,n)=>{var r=n(189278),o=n(724146);e.exports=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,a=[],u=e.length;for(t=r(t,3);++i{var r=n(890756),o=n(189278),i=n(127473),a=n(719785),u=n(557535);e.exports=function(e,t,n){var s=a(e)?r:i;return n&&u(e,t,n)&&(t=void 0),s(e,o(t,3))}},650469:(e,t,n)=>{"use strict";n.d(t,{printStateAsObject:()=>s,printStateAsString:()=>c,inject:()=>d,subscribe:()=>f,ComponentController:()=>p});var r=n(266726),o=n.n(r),i=n(530454),a=n.n(i),u=n(388011);function s(){console.info(a()(u.default.getState()))}function c(){console.info(JSON.stringify(u.default.getState(),null,"\t"))}function d(e){return function(t,n){l(t,e),Object.defineProperty(t,n,{get:function(){return u.default.__getUntypedState(e)},set:function(){throw new Error("You can not change state '".concat(e,"' directly"))},enumerable:!0,configurable:!0})}}function f(e){return function(e){return function(t,n,r){var o=t[n];return l(t,e,(function(e,t){o.call(e,t)})),r}}(e)}function l(e,t,n){if(!(e instanceof p))throw new Error('Component that use "@subscribe" or "@inject" must extend the ComponentController');e.__subscribes||(e.__subscribes=[]),e.__subscribes.push((function(e){return u.default.addStateChangeListenerOld(t,(function(t){n&&n(e,t),e.debouncedSafeDigest()}),!0)}))}var p=function(){function e(e){var t=this;if(this.$scope=e,this.debouncedSafeDigest=o()(this.safeDigest,10),this.__subscribes){var n=this.__subscribes.map((function(e){return e(t)}));e.$on("$destroy",(function(){t.debouncedSafeDigest.cancel(),n&&n.forEach((function(e){return e()}))}))}}return e.prototype.safeDigest=function(){this.$scope.safeDigest()},e.$inject=["$scope"],e}()},624882:(e,t,n)=>{"use strict";n.d(t,{default:()=>v,isAllModulesLoaded:()=>_});var r=n(285484),o=n(539349),i=n(139613),a=n(832732),u=n(930542),s=n(379527),c=n(510325),d=n(103238),f=n(140914),l=n(61819),p=n(556091),g=!1,m=!1;function v(){"false"!==(0,d.getParameterByName)(f.DebugParameter.PRELOAD_MODULES)&&!m&&(m=!0,setTimeout((function(){Promise.all([(0,o.default)().then((function(e){return e.preloadLazyModules()})),(0,r.default)(),(0,l.default)(),(0,s.default)(),(0,a.default)(),(0,u.default)(),(0,i.default)()]).then((function(){p.log("modules","All modules loaded: ".concat((0,c.getLoadingTime)())),g=!0}))}),300))}var _=function(){return g}},406543:(e,t,n)=>{"use strict";n.d(t,{isDataClassificationAvailable:()=>u,isSharingRecommendationsAvailable:()=>s});var r=n(336),o=n(742658),i=n(818487),a=n(115361),u=function(e){var t;return(0,r.hasFeature)(e,o.OrganizationFeatures.DATA_CLASSIFICATION)&&Boolean(null===(t=null===e||void 0===e?void 0:e.dataClassification)||void 0===t?void 0:t.enabled)},s=function(e){return u(e)&&(0,i.default)().isEnabled(a.FeatureNames.BOARD_CLASSIFICATION_SHARING_RECOMMENDATIONS)}},547717:(e,t,n)=>{"use strict";n.d(t,{boardInfoChanged:()=>r});var r=new(n(285087).default.Signal)},184751:(e,t,n)=>{"use strict";n.d(t,{sendDashboardLoaded:()=>c,sendBoardLoaded:()=>d,sendWebviewLoaded:()=>f});var r=n(339810),o=n(980534),i=n(697012),a=n(734755),u=n(189548),s=!1;function c(){l("dashboard")}function d(){l("board")}function f(){l("webview")}function l(e){(0,i.safeStatEval)((function(){if(!s){var t=(0,i.getLoadingTime)(),n=t>r.SECONDS.toMillis(.5)&&t{"use strict";function r(e){window._rtb_app_actions_&&window._rtb_app_actions_.moduleLoaded&&window._rtb_app_actions_.moduleLoaded(e)}function o(){r("dashboard")}function i(){r("board")}n.d(t,{notifyAppDashboardLoaded:()=>o,notifyAppBoardLoaded:()=>i})},994689:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});const r=function(){function e(){}return e.prototype.getSuggestions=function(e,t){throw new Error('Method "getSuggestions" is not implemented')},e.prototype.getAllSuggestions=function(){throw new Error('Method "getAllSuggestions" is not implemented')},e}()},863037:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(759312),o=n(941496),i=n(994689),a=function(){function e(){}return e.prototype.isSupported=function(){return!1},e.prototype.saveSuggestions=function(e){},e.prototype.getSuggestions=function(){return[]},e}();const u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.setStorage=function(e){t._storage=e},Object.defineProperty(t,"storage",{get:function(){return t._storage||(t._storage=new a),t._storage},enumerable:!1,configurable:!0}),t.prototype.getSuggestions=function(e,n){var r=t.storage;if(r.isSupported()){e=e.toLowerCase();var o=r.getSuggestions();if(o){var i=o.filter((function(t){return-1!=t.indexOf(e)}));return Promise.resolve(this.prepareData(i,n))}return Promise.resolve([])}return Promise.resolve([])},t.prototype.getAllSuggestions=function(){return Promise.resolve([])},t.prototype.prepareData=function(e,t){for(var n=[],r=0;r{"use strict";n.d(t,{default:()=>u});var r=n(112677),o=n(878637),i=n(641905),a="Feed";r.register(a,(function(){return Promise.all([(0,o.default)().then((function(){return Promise.all([n.e(44113),n.e(64756),n.e(91623),n.e(60038),n.e(78090),n.e(10537),n.e(90891),n.e(21290)]).then(n.bind(n,675266))})),(0,o.default)().then((function(){return n.e(59457).then(n.bind(n,620248))}))]).then((function(e){var t=e[0],n=e[1].feedTr;return(0,i.subscribeTranslator)(n).then((function(){return t.default}))}))}));const u=r.createModuleDef(a)},832732:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var r=n(112677),o=n(641905),i="Projects";r.register(i,(function(){return Promise.all([Promise.all([n.e(44113),n.e(64756),n.e(91623),n.e(89190),n.e(60038),n.e(78090),n.e(98768),n.e(84331),n.e(22702),n.e(70823),n.e(32116),n.e(30074),n.e(10907),n.e(87411),n.e(4304)]).then(n.bind(n,628802)),n.e(13910).then(n.bind(n,715623))]).then((function(e){var t=e[0],n=e[1].projectsTr;return(0,o.subscribeTranslator)(n).then((function(){return t.default}))}))}));const a=r.createModuleDef(i)},930542:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(112677),o=n(878637),i=n(641905),a="ShareAndInvite";r.register(a,(function(){return(0,o.default)().then((function(){return Promise.all([Promise.all([n.e(44113),n.e(64756),n.e(91623),n.e(89190),n.e(97925),n.e(60038),n.e(78090),n.e(98768),n.e(84331),n.e(70341),n.e(10537),n.e(22702),n.e(26653),n.e(21835),n.e(32187),n.e(54436),n.e(70823),n.e(32116),n.e(150),n.e(11550),n.e(87284),n.e(10907),n.e(86533),n.e(8782),n.e(1066),n.e(70472),n.e(38954),n.e(87411),n.e(231),n.e(39865)]).then(n.bind(n,299286)),n.e(63010).then(n.bind(n,180390))])})).then((function(e){var t=e[0],n=e[1].shareAndInviteTr;return(0,i.subscribeTranslator)(n).then((function(){return t.default}))}))}));const u=r.createModuleDef(a)},576579:(e,t,n)=>{"use strict";n.d(t,{NotificationSubscriptionMode:()=>r.NotificationSubscriptionMode,FeedMode:()=>o.FeedMode,FeedNotificationType:()=>i.FeedNotificationType,FeedAchievements:()=>a.FeedAchievements});var r=n(121011),o=n(269569),i=(n(219841),n(290931)),a=n(615031)},615031:(e,t,n)=>{"use strict";n.d(t,{FeedAchievements:()=>r});var r=(0,n(995941).createAchievements)({FEED_EARLY_ACCESS:"feed_early_access",FEED_FIRST_NOTIFICATION:"feed_first_notification",FEED_RATED_FIRST_TIME:"feed_rated_first_time",FEED_AUTO_OPEN:"feed_auto_open",FEED_FIRST_SUBSCRIBED_THREAD:"feed_first_subscribed_thread"})},219841:(e,t,n)=>{"use strict";var r;n.d(t,{FeedLocalStorageKey:()=>r}),function(e){e.feedLastRatedDate="rtb-feed-last-rated-date",e.feedLastOpenDate="rtb-feed-last-open-date",e.feedToastExperimentLastInstantToastId="rtb-feed-toast-experiment-last-instant-toast-id"}(r||(r={}))},269569:(e,t,n)=>{"use strict";var r;n.d(t,{FeedMode:()=>r}),function(e){e.UNREAD="UNREAD",e.ALL="ALL"}(r||(r={}))},290931:(e,t,n)=>{"use strict";var r;n.d(t,{FeedNotificationType:()=>r}),function(e){e.BOARD_SHARED="BOARD_SHARED",e.ACCESS_REQUESTED="ACCESS_REQUESTED",e.GREETINGS_TO_PLAN="GREETINGS_TO_PLAN",e.COMMENT_ADDED="COMMENT_ADDED",e.USER_MENTIONED="USER_MENTIONED",e.THREAD="THREAD",e.BOARD="BOARD"}(r||(r={}))},264495:(e,t,n)=>{"use strict";n.d(t,{getTriggers:()=>o,getMouseAndTouchTriggers:()=>i,getEventTarget:()=>a,getContactPointInfo:()=>s,getClientXY:()=>c,createFakeMouseEvent:()=>l,getTargetStartOffset:()=>p,needToOpenInNewTab:()=>g});var r=n(123798);function o(){return r.bowser.isTouchSupportedAndNotDesktop?{click:"touchend",down:"touchstart",up:"touchend",move:"touchmove"}:{click:"click",down:"mousedown",up:"mouseup",move:"mousemove"}}function i(){return{click:"click touchend",down:"mousedown touchstart",up:"mouseup touchend",move:"mousemove touchmove"}}function a(e){var t=u(e);if(t.touches){var n=c(e);return document.elementFromPoint(n.x,n.y)}return t.target}function u(e){return e.originalEvent?e.originalEvent:e}function s(e){var t=u(e);return t.touches?t.touches[0]:t}function c(e){var t=s(e);return{x:t.clientX,y:t.clientY}}var d=function(){},f=function(){};function l(e,t){return{clientX:e,clientY:t,preventDefault:d,stopPropagation:f}}function p(e){var t=a(e),n=c(e),r=t.getBoundingClientRect();return{x:n.x-r.left,y:n.y-r.top}}function g(e){return!!e&&(1==e.button||e.shiftKey||e.ctrlKey||e.metaKey)}},941496:(e,t,n)=>{"use strict";var r,o,i,a;n.d(t,{CustomMentionNames:()=>r,OtherMentionNames:()=>o,RANK_KEY:()=>v,SUGGESTION_TYPE:()=>i,boardMentionStr:()=>f,createCompanyUserSuggestion:()=>C,createCustomSuggestion:()=>D,createLocalUserSuggestion:()=>w,createUserGroupSuggestion:()=>y,createUserSuggestion:()=>R,customMentions:()=>m,getCustomMentionPattern:()=>A,getParentObjectType:()=>b,getSuggestionName:()=>E,getUniqueSuggestionKey:()=>S,getUserMentionPattern:()=>h,isMentionMatchedString:()=>M,isSuggestionMatchedString:()=>T,mentionsPattern:()=>g,projectMentionStr:()=>p,suggestionsComparator:()=>U,suggestionsDuplicatesCleaner:()=>L,suggestionsDuplicatesCleanerWithHigherAvatarPriority:()=>N,suggestionsRanker:()=>P,teamMentionStr:()=>l}),function(e){e.BOARD="board",e.TEAM="team",e.PROJECT="project"}(r||(r={})),function(e){e.UNKNOWN="unknown",e.DIRECT="direct"}(o||(o={})),function(e){e.USER="user",e.LOCAL_USER="local-user",e.COMPANY_USER="company-user",e.USER_GROUP="user-group",e.CUSTOM="custom"}(i||(i={}));var u="(?=\\s+|)",s="(?=\\s|(?=[,;\\.?!\u2014:]+\\s)|(?=[,;\\.?!\u2014:]+$)|$)",c="@\\[\\d+\\]",d="@\\[\\g!\\d+\\]",f="@board",l="@team",p="@project",g={delimiter:new RegExp(s,"gmi"),parser:new RegExp("".concat(u,"@(.+?)").concat(s),"gmi"),formatter:new RegExp("".concat(u,"(").concat(c,"|").concat(d,")").concat(s),"gmi"),board:new RegExp(u+f+s,"gm"),mentions:new RegExp("".concat(u,"(").concat(c,"|").concat(f,"|").concat(p,"|").concat(l,"|").concat(d,")").concat(s),"gm"),unicode:new RegExp("((?:&#.*?;)+)","gmi"),userMention:new RegExp(c,"gmi"),userGroupMention:new RegExp(d,"gmi"),boardMention:new RegExp("".concat(f).concat(s),"gmi"),teamMention:new RegExp("".concat(l).concat(s),"gmi"),projectMention:new RegExp("".concat(p).concat(s),"gmi")},m=((a={})[r.BOARD]=f,a[r.TEAM]=l,a[r.PROJECT]=p,a),v="_RANK",_=n(759312),E=function(e){switch(e.type){case i.CUSTOM:return"@".concat(e.displayName);case i.LOCAL_USER:return e.email;case i.COMPANY_USER:return e.name||e.email;default:return e.name}},S=function(e){switch(e.type){case i.LOCAL_USER:case i.COMPANY_USER:case i.USER:return e.email;default:return"".concat(e.id,"_").concat(e.name)}},h=function(e){var t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp("@".concat(t).concat(s),"gmi")},A=function(e){return new RegExp("".concat(e).concat(s),"gmi")},b=function(e){switch(e){case"chat":case"note":return"comment thread on ".concat(e);default:return"comment thread on canvas"}},R=function(e){var t=e.email;return{description:t,email:t,id:e.id,name:e.name,picture:e.picture,type:i.USER}},C=function(e){var t=e.email;return{description:t,email:t,id:e.id,name:e.name,picture:e.picture,type:i.COMPANY_USER}},y=function(e){var t=e.id,n=e.name;return{id:"g!".concat(t),name:n,type:i.USER_GROUP}},w=function(e){return{email:e,type:i.LOCAL_USER}},D=function(e){return{description:e.description,displayName:e.displayName,id:"custom",name:e.name,type:i.CUSTOM}},T=function(e,t){var n,r,o=t.toLowerCase();return((null===(n=e.email)||void 0===n?void 0:n.toLowerCase())||"").includes(o)||((null===(r=e.name)||void 0===r?void 0:r.toLowerCase())||"").includes(o)},O=function(e){var t=((null===e||void 0===e?void 0:e.toLowerCase())||"").split("@"),n=t[0]||"",r=t[1]||"";return r&&(r=r.substring(0,r.lastIndexOf("."))),{beforeAt:n.split("."),afterAt:r.split(".")}},M=function(e,t){var n,r,o=((null===(n=e.name)||void 0===n?void 0:n.toLowerCase())||"").replace(new RegExp(" ","gmi"),"_"),i=((null===(r=e.name)||void 0===r?void 0:r.toLowerCase())||"").split(" "),a=O(e.email),u=a.beforeAt,s=a.afterAt,c=t.toLowerCase();return(0,_.__spreadArray)((0,_.__spreadArray)((0,_.__spreadArray)((0,_.__spreadArray)([],i,!0),u,!0),s,!0),[o],!1).some((function(e){return e.startsWith(c)}))},L=function(e,t){void 0===t&&(t=!1);var n={};return e.reduce((function(e,r){var o,i=S(r);if(void 0===n[i])return e.push(r),n[i]=e.length-1,e;if(null===(o=r.name)||void 0===o?void 0:o.length){var a=n[i],u=e[a];if(t){var s=!u.picture||!u.name;e[a]=r.picture||s?r:u}else e[a]=r}return e}),[])},N=function(e){return L(e,!0)},P=function(e,t){var n;if(!t)return 0;var r=t.toLowerCase(),o=((null===(n=e.name)||void 0===n?void 0:n.toLowerCase())||"").split(" "),i=O(e.email),a=i.beforeAt,u=i.afterAt;return(0,_.__spreadArray)((0,_.__spreadArray)([],o,!0),a,!0).some((function(e){return e.startsWith(r)}))?3:u.some((function(e){return e.startsWith(r)}))?2:(0,_.__spreadArray)((0,_.__spreadArray)((0,_.__spreadArray)([],o,!0),a,!0),u,!0).some((function(e){return e.includes(r)}))?1:0};function U(e,t){var n=(e[v]||0)-(t[v]||0);return n<0?1:n>0?-1:(e.name||"").localeCompare(t.name||"")}}}]); //# sourceMappingURL=https://miro.com/app/static/cmn~Board~Dashboa.desktop~Dashboa.mobile.faa9f61ff0258b83.js.map