(self.webpackChunk=self.webpackChunk||[]).push([[27694],{641443:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var o,i=n(827378);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t{(e.exports=n(931506)(!1)).push([e.id,".ui-textarea {\n position: relative;\n display: block !important;\n cursor: default;\n}\n.ui-textarea[edit-by-click='false'] .ui-textarea__view {\n cursor: default;\n}\n.ui-textarea--editable {\n cursor: text;\n}\n.ui-textarea__hidden {\n display: none !important;\n}\n.ui-textarea__view,\n.ui-textarea__edit {\n display: block;\n padding: 5px 3px;\n background: #ffffff;\n box-sizing: border-box;\n word-wrap: break-word;\n word-break: break-word;\n margin: 0;\n}\n.ui-textarea__edit {\n resize: none;\n outline: none;\n padding-top: 6px;\n padding-bottom: 6px;\n border: none;\n}\n.ui-textarea__view {\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ui-textarea__view .fade-background {\n color: #5f5c80;\n}\n.ui-textarea__view > span > span {\n white-space: pre-wrap;\n}\n.ui-textarea__placeholder,\n.ui-textarea__edit:-ms-input-placeholder {\n color: #cdccd7;\n line-height: 17px;\n opacity: 1;\n font-size: 13px;\n}\n.ui-textarea__placeholder,\n.ui-textarea__edit::placeholder {\n color: #cdccd7;\n line-height: 17px;\n opacity: 1;\n font-size: 13px;\n}\n.ui-textarea__placeholder {\n position: absolute;\n top: 5px;\n left: 5px;\n pointer-events: none;\n}\n.ui-textarea__mentions {\n background: #f5f5f7;\n border-radius: 2px;\n width: 250px;\n margin-left: -30px;\n position: relative;\n box-sizing: border-box;\n padding: 20px 20px 15px;\n}\n.ui-textarea__mentions-message {\n font-size: 13px;\n color: #050038;\n line-height: 16px;\n}\n.ui-textarea__mentions-action {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\n -ms-flex-pack: center;\n justify-content: center;\n margin-top: 10px;\n}\n.ui-textarea__mentions-action-cancel,\n.ui-textarea__mentions-action-invite {\n margin: 0 10px;\n cursor: pointer;\n line-height: 18px;\n}\n.ui-textarea__mentions-action-cancel {\n color: #b3b3b3;\n}\n.ui-textarea__mentions-action-cancel:hover {\n color: #5f5c80;\n}\n.ui-textarea__mentions-action-invite {\n color: #4262ff;\n}\n.ui-textarea__mentions-action-invite:hover {\n color: #455bed;\n}\n.comments-layer .ui-textarea .ui-textarea__mentions {\n width: 290px;\n}\n",""])},410717:(e,t,n)=>{var o=n(296863);(t=e.exports=n(931506)(!1)).push([e.id,".emoji-icon {\n background-repeat: no-repeat;\n background-size: 4100%;\n display: -ms-inline-flexbox;\n display: inline-flex;\n font-size: inherit;\n height: 24px;\n image-rendering: optimizeQuality;\n line-height: normal;\n vertical-align: middle;\n width: 24px;\n position: relative;\n}\n.emoji-icon:focus,\n.emoji-icon:focus-visible {\n outline: none;\n}\n.emoji-icon:focus-visible:before {\n box-shadow: inset 0 0 0 1px #455bed, 0 0 0 1px #455bed, 0 0 0 5px #d9e0ff;\n border-radius: 4px;\n content: '';\n position: absolute;\n left: -1px;\n right: -1px;\n top: -1px;\n bottom: -1px;\n}\n.emoji-icon--16 {\n width: 16px;\n height: 16px;\n margin-right: 3px;\n}\n.emoji-icon--offset-top {\n margin-top: -2px;\n}\n.emoji-icon--offset-left {\n margin-left: 6px;\n}\n.webp-disabled .emoji-icon {\n background-image: url("+o(n(932114))+");\n}\n.webp-enabled .emoji-icon {\n background-image: url("+o(n(88956))+");\n}\n.emojiPicker-3e1pw {\n height: 420px;\n width: 320px;\n position: relative;\n border-radius: 8px;\n background-color: #fff;\n box-shadow: 0 4px 16px 0 rgba(9, 9, 9, 0.12);\n z-index: 200;\n}\n.iconsList-2MJA5 {\n height: 100%;\n width: 100%;\n padding: 0 0 20px 20px;\n box-sizing: border-box;\n overflow-x: hidden;\n -webkit-overflow-scrolling: touch;\n scrollbar-color: #5f5c80 transparent;\n scrollbar-width: thin;\n}\n.iconsList-2MJA5::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.iconsList-2MJA5::-webkit-scrollbar-thumb {\n background-color: #5f5c80;\n border: 0 solid transparent;\n border-radius: 2px;\n}\n.iconsList-2MJA5::-webkit-scrollbar-track {\n background-color: initial;\n}\n",""]),t.locals={emojiPicker:"emojiPicker-3e1pw",iconsList:"iconsList-2MJA5"}},628153:(e,t,n)=>{var o=n(296863);(t=e.exports=n(931506)(!1)).push([e.id,".emoji-icon {\n background-repeat: no-repeat;\n background-size: 4100%;\n display: -ms-inline-flexbox;\n display: inline-flex;\n font-size: inherit;\n height: 24px;\n image-rendering: optimizeQuality;\n line-height: normal;\n vertical-align: middle;\n width: 24px;\n position: relative;\n}\n.emoji-icon:focus,\n.emoji-icon:focus-visible {\n outline: none;\n}\n.emoji-icon:focus-visible:before {\n box-shadow: inset 0 0 0 1px #455bed, 0 0 0 1px #455bed, 0 0 0 5px #d9e0ff;\n border-radius: 4px;\n content: '';\n position: absolute;\n left: -1px;\n right: -1px;\n top: -1px;\n bottom: -1px;\n}\n.emoji-icon--16 {\n width: 16px;\n height: 16px;\n margin-right: 3px;\n}\n.emoji-icon--offset-top {\n margin-top: -2px;\n}\n.emoji-icon--offset-left {\n margin-left: 6px;\n}\n.webp-disabled .emoji-icon {\n background-image: url("+o(n(932114))+");\n}\n.webp-enabled .emoji-icon {\n background-image: url("+o(n(88956))+");\n}\n.categoryName-1BoVA {\n padding: 12px 0 4px 0;\n width: 100%;\n}\n.iconsList-2NgVH {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.iconContainer-1vNwr {\n width: 40px;\n height: 40px;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 2px;\n cursor: pointer;\n}\n.iconContainer-1vNwr:hover {\n background: #eeeeee;\n}\n",""]),t.locals={categoryName:"categoryName-1BoVA",iconsList:"iconsList-2NgVH",iconContainer:"iconContainer-1vNwr"}},460969:(e,t,n)=>{var o=n(296863);(t=e.exports=n(931506)(!1)).push([e.id,".emoji-icon {\n background-repeat: no-repeat;\n background-size: 4100%;\n display: -ms-inline-flexbox;\n display: inline-flex;\n font-size: inherit;\n height: 24px;\n image-rendering: optimizeQuality;\n line-height: normal;\n vertical-align: middle;\n width: 24px;\n position: relative;\n}\n.emoji-icon:focus,\n.emoji-icon:focus-visible {\n outline: none;\n}\n.emoji-icon:focus-visible:before {\n box-shadow: inset 0 0 0 1px #455bed, 0 0 0 1px #455bed, 0 0 0 5px #d9e0ff;\n border-radius: 4px;\n content: '';\n position: absolute;\n left: -1px;\n right: -1px;\n top: -1px;\n bottom: -1px;\n}\n.emoji-icon--16 {\n width: 16px;\n height: 16px;\n margin-right: 3px;\n}\n.emoji-icon--offset-top {\n margin-top: -2px;\n}\n.emoji-icon--offset-left {\n margin-left: 6px;\n}\n.webp-disabled .emoji-icon {\n background-image: url("+o(n(932114))+");\n}\n.webp-enabled .emoji-icon {\n background-image: url("+o(n(88956))+");\n}\n.inputContainer-3wC-V {\n display: -ms-flexbox;\n display: flex;\n padding: 16px 16px 4px 0;\n}\n.searchInput-1Xea8 {\n border-radius: 0;\n width: 100%;\n padding: 0;\n height: 40px;\n border-width: 0;\n border-bottom: solid 1px #dddddd;\n}\n.searchInput-1Xea8:focus {\n border-color: #6396ff;\n}\n.searchInput_clear-11LAZ {\n width: 32px;\n font-size: 18px;\n height: 40px;\n margin-left: -22px;\n margin-right: -10px;\n text-align: center;\n line-height: 40px;\n cursor: pointer;\n}\n",""]),t.locals={inputContainer:"inputContainer-3wC-V",searchInput:"searchInput-1Xea8",searchInput_clear:"searchInput_clear-11LAZ"}},348023:(e,t,n)=>{var o=n(296863);(e.exports=n(931506)(!1)).push([e.id,".emoji-icon {\n background-repeat: no-repeat;\n background-size: 4100%;\n display: -ms-inline-flexbox;\n display: inline-flex;\n font-size: inherit;\n height: 24px;\n image-rendering: optimizeQuality;\n line-height: normal;\n vertical-align: middle;\n width: 24px;\n position: relative;\n}\n.emoji-icon:focus,\n.emoji-icon:focus-visible {\n outline: none;\n}\n.emoji-icon:focus-visible:before {\n box-shadow: inset 0 0 0 1px #455bed, 0 0 0 1px #455bed, 0 0 0 5px #d9e0ff;\n border-radius: 4px;\n content: '';\n position: absolute;\n left: -1px;\n right: -1px;\n top: -1px;\n bottom: -1px;\n}\n.emoji-icon--16 {\n width: 16px;\n height: 16px;\n margin-right: 3px;\n}\n.emoji-icon--offset-top {\n margin-top: -2px;\n}\n.emoji-icon--offset-left {\n margin-left: 6px;\n}\n.webp-disabled .emoji-icon {\n background-image: url("+o(n(932114))+");\n}\n.webp-enabled .emoji-icon {\n background-image: url("+o(n(88956))+");\n}\n.emoji-picker {\n height: 420px;\n width: 320px;\n position: relative;\n border-radius: 8px;\n background-color: #fff;\n box-shadow: 0 4px 16px 0 rgba(9, 9, 9, 0.12);\n z-index: 200;\n}\n.emoji-picker .emoji-input-container {\n display: -ms-flexbox;\n display: flex;\n padding: 16px 16px 4px 0;\n}\n.emoji-picker .emoji-input-container .emoji-search-input {\n width: 100%;\n padding: 0;\n height: 40px;\n border-width: 0;\n border-bottom: solid 1px #dddddd;\n}\n.emoji-picker .emoji-input-container .emoji-search-input:focus {\n border-color: #6396ff;\n}\n.emoji-picker .emoji-input-container .emoji-input-clear {\n width: 32px;\n font-size: 18px;\n height: 40px;\n margin-left: -22px;\n margin-right: -10px;\n text-align: center;\n line-height: 40px;\n}\n.emoji-picker .emoji-icons-list {\n height: 100%;\n width: 100%;\n padding: 0 0 20px 20px;\n box-sizing: border-box;\n overflow-x: hidden;\n -webkit-overflow-scrolling: touch;\n scrollbar-color: #5f5c80 transparent;\n scrollbar-width: thin;\n}\n.emoji-picker .emoji-icons-list::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.emoji-picker .emoji-icons-list::-webkit-scrollbar-thumb {\n background-color: #5f5c80;\n border: 0 solid transparent;\n border-radius: 2px;\n}\n.emoji-picker .emoji-icons-list::-webkit-scrollbar-track {\n background-color: initial;\n}\n.emoji-picker .emoji-icons-list .emoji-cat-container .emoji-cat-name-title {\n padding: 12px 0 4px 0;\n width: 100%;\n}\n.emoji-picker .emoji-icons-list .emoji-cat-container .emoji-icon-container {\n width: 40px;\n height: 40px;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 2px;\n cursor: pointer;\n}\n.emoji-picker .emoji-icons-list .emoji-cat-container .emoji-icon-container:hover {\n background: #eeeeee;\n}\n.emoji-picker .emoji-cats {\n display: none;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n padding: 0 8px;\n border-bottom: solid 1px #e5e5e5;\n}\n.emoji-picker .emoji-cats .emoji-cat-name {\n padding: 0 8px;\n height: 46px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n margin-bottom: -1px;\n border: solid transparent;\n border-width: 2px 0;\n}\n.emoji-picker .emoji-cats .emoji-cat-name .emoji-cat-icon {\n opacity: 0.4;\n}\n.emoji-picker .emoji-cats .catCurrent {\n border-bottom-color: #6396ff;\n}\n",""])},406546:(e,t,n)=>{(e.exports=n(931506)(!1)).push([e.id,".mentions {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 99999;\n transform: translate(-400px, 0);\n width: 310px;\n overflow: auto;\n padding: 8px 0;\n min-height: 20px;\n max-height: 384px;\n background-color: #ffffff;\n box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.2);\n border-radius: 4px;\n animation: fadein 0.15s ease;\n -webkit-overflow-scrolling: touch;\n scrollbar-color: #5f5c80 transparent;\n scrollbar-width: thin;\n}\n@keyframes fadein {\n from {\n opacity: 0.1;\n }\n to {\n opacity: 1;\n }\n}\n.mentions::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.mentions::-webkit-scrollbar-thumb {\n background-color: #5f5c80;\n border: 0 solid transparent;\n border-radius: 2px;\n}\n.mentions::-webkit-scrollbar-track {\n background-color: initial;\n}\n.mentions--comment {\n width: 270px;\n}\n.mentions--comment-reply {\n width: 320px;\n}\n.mentions--chat {\n width: 280px;\n right: 20px;\n}\n.mentions.mobile {\n left: -18px;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);\n max-height: calc(100vh - 100px);\n padding: 0;\n}\n.mentions.mobile.mentions--comment-reply {\n width: 100%;\n}\n",""])},767884:(e,t,n)=>{(t=e.exports=n(931506)(!1)).push([e.id,".nameInput-wYq73 {\n width: 100%;\n padding-left: 34px;\n}\n.icon-21NAq {\n float: left;\n margin: -32px 0 0 10px;\n opacity: 0.2;\n width: 16px;\n height: 16px;\n}\n.checkbox-LNfHK {\n margin-top: 12px;\n}\n",""]),t.locals={nameInput:"nameInput-wYq73",icon:"icon-21NAq",checkbox:"checkbox-LNfHK"}},37342:(e,t,n)=>{(e.exports=n(931506)(!1)).push([e.id,".login-or-enter-name-modal .enter-name {\n width: 100%;\n padding-left: 34px;\n}\n.login-or-enter-name-modal svg {\n float: left;\n margin: -32px 0 0 10px;\n opacity: 0.2;\n}\n",""])},62605:(e,t,n)=>{(t=e.exports=n(931506)(!1)).push([e.id,".suggestion-IroPa {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n min-height: 40px;\n padding: 8px;\n margin: 0 12px;\n border-radius: 4px;\n position: relative;\n box-sizing: border-box;\n}\n.picture-2s6Ye {\n width: 24px;\n height: 24px;\n margin-right: 15px;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n color: #5f5c80;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.picture-2s6Ye img,\n.picture-2s6Ye svg {\n border-radius: 125px;\n}\n.picture-2s6Ye img {\n width: 100%;\n height: 100%;\n min-width: 100%;\n max-width: 100%;\n min-height: 100%;\n max-height: 100%;\n overflow: hidden;\n}\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .picture-2s6Ye img {\n width: auto;\n height: auto;\n }\n}\n.name-2Bhwa,\n.email-22AV3 {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 12px;\n line-height: 14px;\n}\n.email-22AV3 {\n margin-left: 8px;\n color: #5f5c80;\n padding-left: 8px;\n border-left: solid 1px #ebebef;\n}\n.suggestion__active-30jqn {\n background-color: #e8ecff;\n}\n.suggestion__userGroup-x6fqY .picture-2s6Ye img,\n.suggestion__userGroup-x6fqY .picture-2s6Ye svg {\n border-radius: 4px;\n}\n.suggestion__custom-1L13Y.suggestion__single-1izw0 {\n padding: 15px 0;\n margin-top: inherit;\n}\n.suggestion__custom-1L13Y.suggestion__single-1izw0:before {\n content: '';\n}\n.suggestion__custom-1L13Y + .suggestion__regular-_rTSE {\n margin-top: 17px;\n}\n.suggestion__custom-1L13Y + .suggestion__regular-_rTSE:before {\n content: '';\n height: 1px;\n width: 100%;\n background: #f5f5f7;\n position: absolute;\n top: -9px;\n left: 0;\n}\n.suggestion__mobile-2cnxs {\n height: 48px;\n background: none;\n padding: 4px 10px 0 10px;\n}\n.suggestion__mobile-2cnxs .name-2Bhwa,\n.suggestion__mobile-2cnxs .email-22AV3 {\n font-size: 14px;\n line-height: 18px;\n}\n.suggestion__mobile-2cnxs .name-2Bhwa {\n font-weight: bold;\n}\n.suggestion__mobile-2cnxs .picture-2s6Ye {\n width: 38px;\n height: 38px;\n}\n.suggestion__mobile-2cnxs.suggestion__custom-1L13Y {\n padding: 0;\n margin: 0;\n box-shadow: 0 -1px 0 0 #e5e5e5;\n}\n.suggestion__mobile-2cnxs.suggestion__custom-1L13Y:before {\n content: none;\n}\n.suggestion__mobile-2cnxs.suggestion__custom-1L13Y .name-2Bhwa {\n padding-left: 10px;\n}\n",""]),t.locals={suggestion:"suggestion-IroPa",picture:"picture-2s6Ye",name:"name-2Bhwa",email:"email-22AV3",suggestion__active:"suggestion__active-30jqn",suggestion__userGroup:"suggestion__userGroup-x6fqY",suggestion__custom:"suggestion__custom-1L13Y",suggestion__single:"suggestion__single-1izw0",suggestion__regular:"suggestion__regular-_rTSE",suggestion__mobile:"suggestion__mobile-2cnxs"}},432146:(e,t,n)=>{(t=e.exports=n(931506)(!1)).push([e.id,".root-2HOVz {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.emptyLabel-1xLgu,\n.guestLabel-33hqv,\n.nonParticipantLabel-2bP_q {\n font-style: normal;\n font-stretch: normal;\n letter-spacing: normal;\n font-size: 14px;\n line-height: 20px;\n font-weight: normal;\n padding: 0 16px;\n text-align: center;\n}\n",""]),t.locals={root:"root-2HOVz",emptyLabel:"emptyLabel-1xLgu",guestLabel:"guestLabel-33hqv",nonParticipantLabel:"nonParticipantLabel-2bP_q"}},989629:(e,t,n)=>{var o=n(661370),i=n(382528),r=n(765722),a='\n';e.exports=a},642227:e=>{e.exports='
\n\t
\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\n\t\t\n\t\t \n\t
\n\n\t\n\n\t\n\n\t\n\n\t
\n
\n'},871251:e=>{e.exports='
\n\t
\n\t\t
\n\t\t\t\n\n\t\t\t
\xd7
\n\t\t
\n\n\t\t\n\t\t\t
\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{{item.jsCode}}\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t\n\n'},785035:e=>{e.exports='
\n\t\n
\n'},435662:(e,t,n)=>{var o='\n\t\n\t
\n\t\t
\n\t\t\t{{modal.translationLabels.please}}\n\t\t\t{{modal.translationLabels.logIn}}\n\t\t\t{{modal.translationLabels.orEnterName}}\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\t{{modal.translationLabels.done}}\n\t\t\t\n\t\t
\n\t
\n\n';e.exports=o},632134:(e,t,n)=>{var o=n(401892),i=n(805410);"string"===typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},774267:(e,t,n)=>{var o=n(401892),i=n(410717);"string"===typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},712691:(e,t,n)=>{var o=n(401892),i=n(628153);"string"===typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},235394:(e,t,n)=>{var o=n(401892),i=n(460969);"string"===typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},187797:(e,t,n)=>{var o=n(401892),i=n(348023);"string"===typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},270544:(e,t,n)=>{var o=n(401892),i=n(406546);"string"===typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},761763:(e,t,n)=>{var o=n(401892),i=n(767884);"string"===typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},529304:(e,t,n)=>{var o=n(401892),i=n(37342);"string"===typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},927439:(e,t,n)=>{var o=n(401892),i=n(62605);"string"===typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},111475:(e,t,n)=>{var o=n(401892),i=n(432146);"string"===typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},773895:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var o=n(989629),i=n.n(o),r=n(478623),a=n(237216),s=n(399887),c=n(977832);e=n.hmd(e);var l=i();function u(){return n(594603),(0,a.getRtbApp)().directive("rtbCheckbox",d),(0,a.getRtbApp)().component("rtbCheckboxReact",(0,s.react2angular)(e)(c.default,["name","label","checked","isDisabled","onChange","className"])),l}function d(){return(0,r.default)({restrict:"E",template:l,transclude:!0,scope:{name:"=",checked:"=",label:"=",off:"=",onChange:"&",square:"=",modelOptions:"=",noLabel:"=",ariaLabel:"="}})}},406469:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var o=n(478623),i=n(237216),r=n(814396),a=n(654430),s=/Yesterday|Today/i;const c=function(){function e(e){var t=this;this.formattedValue="",this.datetimeAttribute="",this.onTimer=function(){t.updateFormattedValue(),clearTimeout(t.updateTimeoutId),t.shouldUpdate()&&(t.updateTimeoutId=setTimeout(t.onTimer,6e4))},this.$scope=e,e.$watch("value",(function(){t.onTimer()})),e.$on("$destroy",(function(){clearTimeout(t.updateTimeoutId)})),this.onTimer()}return e.prototype.updateFormattedValue=function(){this.$scope.value?(this.formattedValue=(0,r.default)(this.$scope.value,this.$scope.absoluteFormat,this.$scope.relativeFormat),(0,a.isDateValid)(new Date(this.$scope.value))&&(this.datetimeAttribute=new Date(this.$scope.value).toISOString())):(this.formattedValue="",this.datetimeAttribute=""),this.$scope.safeApply()},e.prototype.shouldUpdate=function(){return s.test(this.formattedValue)},e.$inject=["$scope"],e}();function l(){(0,i.getRtbApp)().directive("relativedate",u)}function u(){return(0,o.default)({restrict:"E",template:'',controller:c,controllerAs:"ctrl",scope:{value:"<",absoluteFormat:"<",relativeFormat:"<",datetimeAttribute:"="}})}},941018:(e,t,n)=>{"use strict";n.d(t,{SHARE_TIPS_TIME_GAP:()=>p,ifInviteTriggersTipsEnabled:()=>m});var o=n(576163),i=n(692141),r=n(915661),a=n(734497),s=n(339810),c=n(445569),l=n(127192),u=n(241443),d=n(350526),p=s.DAYS.toMillis(1);function m(e){return new Promise((function(t){if((0,c.default)().userType!=l.UserType.REGULAR)return t(!1);var n=(0,u.default)().getCurrent(),s=function(e,t){if(!(null===e||void 0===e?void 0:e.id)||"none"===e.id)return!0;void 0===t&&(t={showAfterTimeGap:!0,showWithTutorials:!1});var n=!t.showAfterTimeGap||(0,i.checkEnoughTimeHasPassedForTip)(r.default.sharingTip,p),s=t.showWithTutorials||!a.default.getState().ui.interactiveTutorial.visible;return!(0,o.isFreeAccount)(e)||!(0,o.isAdmin)(e)||!n||!s||(0,i.isWelcomeBoardTabletTasksAvailable)()}(n,e);if(s)return t(!1);(null===n||void 0===n?void 0:n.id)&&(0,d.isOneOrLessUsersInTeam)(n.id).then((function(e){t(e)})).catch((function(){t(!1)}))}))}},212849:(e,t,n)=>{"use strict";n.d(t,{default:()=>E});var o,i=n(642227),r=n.n(i),a=n(610816),s=(n(821174),n(707475)),c=["wordWrap","wordBreak","boxSizing","resize","outline","width","font","fontSize","lineHeight","overflow","overflowX","overflowY","border","borderTop","borderRight","borderBottom","borderLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"];function l(e,t){void 0===t&&(t=e.value),o||((o=document.createElement("textarea")).style.position="absolute",o.style.height="1px",o.style.opacity="0",o.style.visibility="hidden",o.style.top="-100px",o.style.left="-100px",document.body.appendChild(o));var n=getComputedStyle(e);for(var i in c){var r=c[i];o.style[r]=n[r]}return o.value=t,o.scrollHeight}function u(e){return l(e,e.value.slice(0,e.selectionStart))}var d=n(98340),p=n(792746),m=n(194606),g=n(237216),h=p.getInjectionPoint();function f(){return{restrict:"A",require:"uiTextarea",link:function(e,t,n,o){h().canvasBoardInfo.template||(o.addClick(m.uiTextareaMentionsClickCmd),o.addChange(m.uiTextareaMentionsChangeCmd));var i=function(e){return{execute:function(t){var n={hasMentions:!1,customMentionsSizes:{}};e.parseResult||(e.parseResult={});var o=m.uiTextareaMentionsParserCmd.execute(t,n);return e.parseResult.hasMentions=n.hasMentions,e.parseResult.customMentionsSizes=n.customMentionsSizes,o}}}(o);o.addParser(i),o.addFormatter(m.uiTextareaMentionsFormatterCmd)}}}var b=n(611303);function v(){return{restrict:"A",require:"uiTextarea",link:function(e,t,n,o){o.addClick(b.uiTextareaLinksClickCmd,0)}}}var y=n(266188),_=n(986030);var x=n(123798),T=n(216737),C=n(103238),k=n(332378),w=x.bowser.ios||x.bowser.mac;function E(){(0,g.getRtbApp)().directive("uiTextareaMentions",f),(0,g.getRtbApp)().directive("uiTextareaLinks",v),n(632134),(0,g.getRtbApp)().directive("uiTextarea",S)}function S(){var e=(0,C.createUniqueDOMId)();return{replace:!0,restrict:"E",require:["uiTextarea","ngModel"],template:r(),controller:I,scope:{editable:"=?",maxlength:"=?",placeholder:"=",editByClick:"=?",autoblur:"=?",autosave:"=?",autofocus:"=?",useInput:"=?",useAutosize:"=?",saveOnChange:"=?",saveOnEnter:"=?",label:"=?",isLabelVisible:"=?",editAsHtml:"=?",controller:"=?",onEsc:"&",onEnter:"&",onFocus:"&",onChange:"&"},link:function(t,n,o,i){var r=i[0],a=i[1],c=n.find("textarea"),p=n.find("input"),g=(0,y.default)().$sce,h=function(e){return"undefined"===typeof e};t.editAsHtml=!h(t.editAsHtml)&&t.editAsHtml,t.useInput=!h(t.useInput)&&t.useInput,t.useAutosize=!!h(t.useAutosize)||t.useAutosize,t.edit=t.useInput?p:c,t.forceEdit=!1,t.maxlength=t.maxlength||2e3,t.editable=!!h(t.editable)||t.editable,t.editByClick=!!h(t.editByClick)||t.editByClick,t.autoblur=!h(t.autoblur)&&t.autoblur,t.autosave=!!h(t.autosave)||t.autosave,t.autofocus=!h(t.autofocus)&&t.autofocus,t.saveOnChange=!h(t.saveOnChange)&&t.saveOnChange,t.saveOnEnter=!!h(t.saveOnEnter)||t.saveOnEnter,t.controller={view:function(){t.setEditMode(!1),t.safeApply()},edit:function(){if(t.editable){t.forceEdit=!0;var e=k.Event("click");e.target=n.get(0),e.preventDefault(),t._onClick(e)}},save:function(e){void 0===e&&(e=!0),d.uiTextareaBlurCmd.execute(null,t,r,a,e),t.safeApply()},cancel:function(){a.$rollbackViewValue(),t.setEditMode(!1),t.safeApply()},getScrollTop:function(){return t.useInput?0:u(t.edit[0])},getLineHeight:function(){return t.useInput?0:function(e){var t=getComputedStyle(e),n=parseInt(t.lineHeight,10);return isNaN(n)?1.42*parseInt(t.fontSize,10):n}(t.edit[0])},scrollIntoView:function(){if(!t.useInput){var e=t.edit[0];e.style.height="".concat(l(e),"px"),e.scrollTop=u(e)}},getEditor:function(){return t.edit[0]},change:function(e){t.editValue=e,t._onChange()},getParseResult:function(){return r.parseResult}},t.label=t.label?t.label:t.placeholder,t.isLabelVisible=!1,t.geUniqueDOMId=function(){return e},t.setEditMode=function(e){t.viewMode=!e,t.edit.toggleClass("ng-hide",!e)},t.setEditMode(!1),a.$formatters.push((function(e){return r.formatter.reduce((function(e,n){return n.execute(e,t)}),(0,s.decodeHTML)(e))})),a.$parsers.push((function(e){return r.parser.reduce((function(e,t){return t.execute(e)}),e)})),a.$render=function(){t.editValue=(0,s.decodeHTML)(a.$viewValue),w&&(t.editValue=(0,_.replaceEmojiWithUnicode)(t.editValue)),t.viewValue=function(e){var t=d.uiTextareaRendererCmd.execute((0,s.decodeHTML)(e));return t=b.uiTextareaLinksRendererCmd.execute(t),t=d.uiTextareaEmojisRendererCmd.execute(t),m.uiTextareaMentionsRendererCmd.execute(t)}(a.$modelValue).map((function(e){return e.isHtml&&(e.text=g.trustAsHtml((0,T.sanitizeCommentThreadText)(e.text))),e}))},t._onFocus=function(e){return r.focus.forEach((function(n){return n.execute(e,t,r,a)}))},t._onClick=function(e){return r.click.some((function(n){return n.execute(e,t,r,a)}))},t._onChange=function(){return r.change.forEach((function(e){return e.execute(t,r,a)}))},t._onKeyUp=function(e){return r.keyup.some((function(n){return n.execute(e,t,r,a)}))},t._onKeyDown=function(e){return r.keydown.some((function(n){return n.execute(e,t,r,a)}))},t.autofocus&&t.controller.edit()}}}var I=function(){function e(e,t){this.$scope=e,this.$element=t,this.clickListenerWrapper=this.clickListener.bind(this),this._click=[],this._blur=[],this._focus=[],this._change=[],this._keyUp=[],this._keyDown=[],this._parser=[],this._formatter=[],this.addBlur(d.uiTextareaBlurCmd),this.addClick(d.uiTextareaClickCmd),this.addChange(d.uiTextareaChangeCmd),this.addKeyUp(d.uiTextareaEscapeKeyUpCmd),this.addFormatter(d.uITextareaFormatterCmd),w&&this.addParser(d.uiTextareaEmojisParserCmd),this.addKeyDown(d.uiTextareaProcessingKeyDownCmd),this.addKeyDown(d.uiTextareaEscapeKeyDownCmd),this.addKeyDown(d.uiTextareaNewLineKeyDownCmd),this.addKeyDown(d.uiTextareaEnterKeyDownCmd)}return Object.defineProperty(e.prototype,"click",{get:function(){return this._click},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blur",{get:function(){return this._blur},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focus",{get:function(){return this._focus},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"change",{get:function(){return this._change},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyup",{get:function(){return this._keyUp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keydown",{get:function(){return this._keyDown},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"formatter",{get:function(){return this._formatter},enumerable:!1,configurable:!0}),e.prototype.addClick=function(e,t){void 0===t&&(t=this._click.length),this._click.splice(t,0,e)},e.prototype.addBlur=function(e){this._blur.push(e)},e.prototype.addFocus=function(e){this._focus.push(e)},e.prototype.addChange=function(e){this._change.push(e)},e.prototype.addKeyUp=function(e){this._keyUp.push(e)},e.prototype.addKeyDown=function(e){this._keyDown.push(e)},e.prototype.addParser=function(e){this._parser.push(e)},e.prototype.addFormatter=function(e){this._formatter.push(e)},e.prototype.addClickListener=function(){this.$scope.autoblur&&document.addEventListener("click",this.clickListenerWrapper,!0)},e.prototype.removeClickListener=function(){this.$scope.autoblur&&document.removeEventListener("click",this.clickListenerWrapper,!0)},e.prototype.clickListener=function(e){var t=this.$scope;t.$parent.$root=t.$root;var n=this.$element[0];a.checkElementAndParents(e.target,(function(e){return e===n}))||(t.autosave?t.controller.save():t.controller.view())},Object.defineProperty(e.prototype,"parseResult",{get:function(){return this._parseResult},set:function(e){this._parseResult=e},enumerable:!1,configurable:!0}),e.$inject=["$scope","$element"],e}()},16840:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var o=n(415401),i=n(576163),r=n(105603),a=n(541766),s=n(943658),c=n(788633),l=n(163204);function u(e){return{isAllowed:(0,o.CommentsController)().allowFollow,isFollowed:function(){return(0,i.isSubscribed)(e.subscriptionMode)},click:function(t){var n=!(0,i.isSubscribed)(e.subscriptionMode);e.changeSubscriptionMode(n,t),n?((0,r.default)().show(l.boardTr.t("board.comments.youWillGetNotified")),setTimeout((function(){(0,a.addTip)(s.findTipConfig(c.default.FEED_THREAD_FOLLOWED))}),5e3)):(0,r.default)().show({text:l.boardTr.t("board.comments.youWillNotGetNotified"),actionText:l.boardTr.t("board.boardTools.toolbar.undoRedo.undoRedoNew.textTooltip"),actionCallback:function(){e.changeSubscriptionMode(!0,"undo_notification")}})}}}},799787:(e,t,n)=>{"use strict";n.d(t,{default:()=>Ge,getUiCommentBodyController:()=>We});var o=n(759312),i=n(539345),r=n(240587),a=n(748812),s=n(123798),c=n(610816),l=n(445569),u=n(127192),d=n(297870),p=n(965751),m=n(757213),g=n(359878),h=n(415401),f=n(103238),b=n(660720),v=n(435662),y=n.n(v),_=n(445868),x=n(792746),T=n(648398),C=n(836522),k=n(441519),w=n(790900),E=n(163204),S=n(320615),I=l.getInjectionPoint(),j=x.getInjectionPoint(),L=function(e){function t(t){var n=e.call(this,t)||this;n.rememberMe=!0,n.name="",n.waiting=!1,n.isGuest=I().userType===u.UserType.GUEST,n.translationLabels={};var o=E.boardTr.behaviorLoadedCurrentLang((function(){var e=E.boardTr.keys,t=e.boardTools,o=e.colorPicker,i=e.modals;n.translationLabels={please:E.boardTr.t(t.boardTop.boardEditRequestPanel.please.t),logIn:E.boardTr.t(t.boardTop.boardEditRequestPanel.logIn.t).toLocaleLowerCase(),enterName:E.boardTr.t(t.boardTop.boardEditRequestPanel.guestNamesEditName.enterName.t),done:E.boardTr.t(o.eyedropper.done.t),orEnterName:E.boardTr.t(i.loginOrEnterNameModal.enterName.t).toLocaleLowerCase()}}));return t.$on("$destroy",(function(){o()})),n}return(0,o.__extends)(t,e),t.prototype.login=function(){b.clickedLoginInComment(),(0,k.getBoardUiStore)().dispatch((0,w.navigateToLoginPage)({openBoardId:j().getBoardId()}))},t.prototype.submit=function(){var t=this;this.name.trim()&&(this.waiting=!0,this.isGuest?(I().registerAsTemporaryUser(this.name,this.rememberMe).then((function(){return j().disconnect(),j().reconnect(),new Promise((function(e){T.onCanvasLoaded.addOnce((function(){e()}))}))})).then((function(){return e.prototype.submit.call(t)})).catch((function(){return e.prototype.cancel.call(t)})),b.addGuestName()):I().userInfo.temporary&&(0,S.getProfileAPI)().set({name:this.name}).then((function(){return I().updateProfile()})).then((function(){return e.prototype.submit.call(t)})).catch((function(){return e.prototype.cancel.call(t)})))},(0,o.__decorate)([(0,C.ErrorTrackerTelemetry)("LoginOrEnterNameMC.submit")],t.prototype,"submit",null),t}(_.default);const A=L;var M=n(266123),R=n(279991),P=n(254664),N=n(91470),D=n(773895);var O=n(368195),$=n(368998),U=n(915661),V=n(692141),B=n(582565),H=n(812366),F=n(793442),z=n(123),G=n(941018),W=n(957453),K=n(238729),q=n(930542),Y=n(91345),Z=n(938097),J=n(161320),X=n.n(J),Q=n(16840),ee=n(986030),te=n(114338),ne=n(803655),oe=n(742658),ie=n(336),re=n(906747),ae=n(337189),se=n(893996),ce=n(941496);function le(e){var t=e.boardsAPI,n=e.message,o=e.boardId,i=function(e,t){var n=[];return(e.match(ce.mentionsPattern.parser)||[]).forEach((function(e){if(-1!=e.search(ce.mentionsPattern.userMention)){var o=e.substring(2,e.length-1);(i=t.getMentionById(o))&&n.push(o)}else{var i,r=e.substring(1,e.length);(i=t.getMentionByName(r))&&n.push(i.id.toString())}})),n}(n,e.mentionsService);return 0===i.length?Promise.resolve([]):t.selectById(o).checkWhoCanBeInvited.get(i).catch((function(){return[]}))}var ue,de=n(822719),pe=n(865100),me=n(236978),ge=n(818487),he=n(115361),fe=n(827378),be=n(292369),ve=n(305659),ye=n(180966),_e=n(59595);function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(n+=r,o.push(Fe[i]))}return n>5?new Promise((function(t,i){var r={title:e.translationLabelsWithParams.peopleWillBeNotified(n.toString()),text:e.translationLabelsWithParams.byUsingMentionsHtml(o.join(", "),n.toString(),o.length),info:!0,submitButton:{caption:e.translationLabels.sendItNow},cancelButton:{caption:e.translationLabels.editMessage},enableSubmitByEnter:!0};(0,pe.dialogService.show({componentFactory:(0,Y.default)(r)}).waitForClose)().then((function(e){"submit"===e.type?(b.massMentionConfirmationModal(!0),t(void 0)):(b.massMentionConfirmationModal(!1),i(new Error("checkCustomMentionsSize")))}))})):Promise.resolve()}return Promise.resolve()},e.prototype.addReplyMessageStep2=function(e){e?(this.$scope.messages.any()?this.$scope.comment.replyCreate(e):this.$scope.comment.commentCreateOnServer(e),this.$scope.focusComment(),this.tryShowReplyTips(e)):this.$scope.tryRemove(),this.$scope.endReplyMessage()},e.prototype.authUser=function(e){var t,i=$e.Deferred();if(this.isNoNameUser())if((0,ge.default)().isEnabled(he.FeatureNames.LOGIN_OR_ENTER_NAME_DIALOG_IN_REACT)){(0,pe.dialogService.show({componentFactory:Ne()}).waitForClose)().then((function(e){"submit"===e.type?i.resolve():i.reject()}))}else{var r=Be().show((void 0===t&&(t={}),(0,P.default)(),(0,N.default)(),(0,D.default)(),n(529304),M.mergeParams(R.default.LOGIN_OR_ENTER_NAME,A,y(),(0,o.__assign)({enableSubmitByEnter:!0},t))));r.canceled.addOnce(i.reject),r.submitted.addOnce(i.resolve)}else i.resolve(e);return i.promise()},e.prototype.initUserData=function(){var e=Ve().myUserId;this.$scope.myUserIdStr=e&&e.toString()||""},e.prototype.initMessagesData=function(){this.$scope.messages={$element:null,messages:[],format:function(e){this.messages=e.map((function(e){return $e.extend(e,{senderIdStr:e.senderId?e.senderId.toString():"0",fromNow:X()(c.getDate(e.timestampData)).format("DD MMM HH:mm")})}))},any:function(){return!!this.messages.length}},this.$scope.messages.format(this.$scope.comment.messages)},e.prototype.initReplyData=function(){var e=this.$scope.comment.lastReplyingMessage;this.$scope.reply={message:e,opened:!!e,replying:!!e}},e.prototype.getSlackAppTipConfig=function(){var e=this;return{type:b.TipsStat.TipType.SlackApp,text:this.translationLabels.slackAppTipConfigHtml,icon:a,onClick:function(){b.TipsStat.clickTip(b.TipsStat.TipType.SlackApp,b.TipsStat.TipContent.CommentWidget),(0,B.connectSlackApp)(!1)},onClose:function(){b.TipsStat.closeTip(b.TipsStat.TipType.SlackApp,b.TipsStat.TipContent.CommentWidget),e.$scope.tip.visible=!1},submitLabel:this.translationLabels.getApp,cancelLabel:this.translationLabels.dismissTip}},e.prototype.tryShowReplyTips=function(e){return(0,o.__awaiter)(this,void 0,void 0,(function(){return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return this.$scope.tip.visible=!1,[4,this.tryToShowInviteTip(e)];case 1:return t.sent()?[2]:(this.$scope.inviteTip.visible=!1,[4,this.tryToShowInviteTriggerTip()]);case 2:return t.sent()?[2]:[4,this.tryToShowFirstReplyTip()];case 3:return t.sent()?[2]:[4,this.tryToShowFirstMentionTip()];case 4:return t.sent()||this.tryToShowFirstAutoFollowTip(this.$scope.comment),[2]}}))}))},e.prototype.tryToShowInviteTip=function(e){var t;return(0,o.__awaiter)(this,void 0,Promise,(function(){var n,i,r;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return this.$scope.inviteTip.visible?[2,Promise.resolve(!0)]:(n=W.UICurrentBoard.getInfo(),i=(0,re.default)(),(0,ie.hasFeature)(null===(t=n.account)||void 0===t?void 0:t.organization,oe.OrganizationFeatures.SHARING_FROM_MENTIONS)&&(0,ae.canViewShareModal)(n)?[4,le({boardsAPI:(0,S.getBoardsAPI)(),message:e,boardId:n.id,mentionsService:i})]:[3,2]);case 1:if((r=o.sent()).length>0)return this.showInviteTip(r),[2,!0];o.label=2;case 2:return[2,!1]}}))}))},e.prototype.tryToShowFirstReplyTip=function(){return(0,o.__awaiter)(this,void 0,Promise,(function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.checkShouldShowSlackTip(O.CommonAchievements.COMMENT_CREATED)];case 1:return e.sent()?(this.showSlackTip(O.CommonAchievements.COMMENT_CREATED),[2,!0]):[2,!1]}}))}))},e.prototype.tryToShowInviteTriggerTip=function(){return(0,o.__awaiter)(this,void 0,Promise,(function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.checkShouldShowInviteTriggerTip()];case 1:return e.sent()?(this.showInviteTriggerTip(),[2,!0]):[2,!1]}}))}))},e.prototype.tryToShowFirstMentionTip=function(){return(0,o.__awaiter)(this,void 0,void 0,(function(){var e,t,n;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return e=!1,[4,this.checkShouldShowSlackTip(O.CommonAchievements.COMMENT_WITH_MENTION_CREATED)];case 1:return o.sent()&&(t=this.$scope.reply.controller,(n=t.getParseResult())&&n.hasMentions&&(this.showSlackTip(O.CommonAchievements.COMMENT_WITH_MENTION_CREATED),e=!0)),[2,e]}}))}))},e.prototype.tryToShowFirstUnreadThreadTip=function(e){return(0,o.__awaiter)(this,void 0,void 0,(function(){var t;return(0,o.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.checkShouldShowSlackTip(O.CommonAchievements.UNREAD_THREAD_OPENED)];case 1:return n.sent()&&(t=Ve().userInfo.id,(0,$.getCommentUnreadMessagesCount)(e.openTime,e.messages,ne.Long.fromString(t))>0&&this.showSlackTip(O.CommonAchievements.UNREAD_THREAD_OPENED)),[2]}}))}))},e.prototype.tryToShowFirstAutoFollowTip=function(e){var t=this;if(this.checkCanShowTip(O.CommonAchievements.EXISTING_THREAD_REPLY)&&e.creatorId.toString()!==Ve().userInfo.id){var n=(0,me.getLocalizedHelpArticleLink)("360017730873",{queryParams:{utm_source:"tip",utm_medium:"comment-widget",utm_campaign:"follow-thread",utm_content:"learn-more"}}),o={type:b.TipsStat.TipType.FollowThread,text:this.translationLabels.autoFollowTipHtml,icon:r,iconClass:"comment-message__picture--small",onClick:function(){(0,se.getOpener)(n).openInNewTab(),b.TipsStat.clickTip(b.TipsStat.TipType.FollowThread,b.TipsStat.TipContent.CommentWidget)},onClose:function(){b.TipsStat.closeTip(b.TipsStat.TipType.FollowThread,b.TipsStat.TipContent.CommentWidget),t.$scope.tip.visible=!1},submitLabel:this.translationLabels.learnMore,cancelLabel:this.translationLabels.dismissTip,isSubmitSecondary:!0};return this.showTip(o,O.CommonAchievements.EXISTING_THREAD_REPLY),!0}return!1},e.prototype.checkShouldShowSlackTip=function(e){return(0,o.__awaiter)(this,void 0,Promise,(function(){var t;return(0,o.__generator)(this,(function(n){switch(n.label){case 0:return(t=this.checkCanShowTip(e))?[4,(0,S.getIntegrationsAPI)().get()]:[3,4];case 1:return n.sent().SLACK?(Ve().achievements.open(e),t=!1,[3,4]):[3,2];case 2:return[4,(0,S.getBoardsAPI)().selectById(W.UICurrentBoard.getInfo().id).get({fields:"account{usersNumber}"}).then((function(e){e.account.usersNumber<2&&(t=!1)})).catch((function(){return t=!1}))];case 3:n.sent(),n.label=4;case 4:return[2,t]}}))}))},e.prototype.showSlackTip=function(e){var t=this.getSlackAppTipConfig();this.showTip(t,e),b.TipsStat.showTip(t.type,b.TipsStat.TipContent.CommentWidget)},e.prototype.checkShouldShowInviteTriggerTip=function(){return(0,o.__awaiter)(this,void 0,Promise,(function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return this.checkCanShowTip(O.CommonAchievements.INVITE_TO_ACCOUNT_COMMENT_TIP)?[4,(0,G.ifInviteTriggersTipsEnabled)({showWithTutorials:!0,showAfterTimeGap:!1})]:[2,!1];case 1:return[2,e.sent()]}}))}))},e.prototype.getInviteTriggerTipConfig=function(){var e=this;return{type:b.TipsStat.TipType.InviteTrigger,text:this.translationLabels.triggerTipConfigHtml,icon:i,onClick:function(){(0,K.lazyModuleWithLockLayer)((function(){return(0,q.default)()})).then((function(e){return e.runShareFlow({boardId:W.UICurrentBoard.getInfo().id,from:"comment"})})),b.clickSharingTip("comment","invite",W.UICurrentBoard.getInfo().account.id,W.UICurrentBoard.getInfo().id)},onClose:function(){e.$scope.tip.visible=!1,b.clickSharingTip("comment","cross",W.UICurrentBoard.getInfo().account.id,W.UICurrentBoard.getInfo().id)},submitLabel:this.translationLabels.inviteText,cancelLabel:this.translationLabels.dismissTip}},e.prototype.showInviteTriggerTip=function(){var e=this.getInviteTriggerTipConfig();this.showTip(e,O.CommonAchievements.INVITE_TO_ACCOUNT_COMMENT_TIP),b.showSharingTip("comment",W.UICurrentBoard.getInfo().account.id,W.UICurrentBoard.getInfo().id)},e.prototype.checkCanShowTip=function(e){return(0,H.default)().getMode()!==F.LayoutViewMode.EMBED&&s.bowser.desktop&&Ve().userType===u.UserType.REGULAR&&!Ve().achievements.isOpened(e)&&(0,V.checkEnoughTimeHasPassedForTip)(U.default.lastCommentWidgetTipCloseDate)},e.prototype.showTip=function(e,t){this.$scope.tip=e,this.$scope.tip.visible=!0,this.$scope.safeDigest(),this.$scope.scrollToMessage(),(0,V.saveTipLastTime)(U.default.lastCommentWidgetTipCloseDate),Ve().achievements.open(t)},e.prototype.showInviteTip=function(e){var t=this;this.$scope.inviteTip={users:e,onSubmit:function(){t.$scope.inviteTip.visible=!1,t.$scope.safeDigest()},onCancel:function(){t.$scope.inviteTip.visible=!1,t.$scope.safeDigest()},visible:!0},this.$scope.safeDigest(),this.$scope.scrollToMessage()},e.$inject=["$scope","$element","$timeout"],e}();const Ge=ze;function We(){var e;return null===(e=Oe.default.instance)||void 0===e?void 0:e.getAngularStatic().element("div.comment-body").controller("commentBody")}},930314:(e,t,n)=>{"use strict";n.d(t,{default:()=>w});var o=n(610816),i=n(334529),r=n(978040),a=n(821174),s=n(814396),c=n(941496),l=n(114338),u=n(906747),d=n(326292),p=n(415401),m=n(103238),g=n(91696),h=n(660720),f=n(445569),b=n(127192),v=n(938097),y=n(123798),_=n(163204),x=n(714573),T=n(912266),C=p.getInjectionPoint(),k=(0,u.default)();const w=function(e,t,n,u){var p,w=e.comment,E=e.message&&e.message.text||"",S=0,I=_.boardTr.behaviorLoadedCurrentLang((function(){var t=_.boardTr.keys,n=t.comments,o=t.activityList,i=t.boardTools;p={delete:_.boardTr.t(n.menu.items.delete.t),cancel:_.boardTr.t(o.saveAsCopyModal.cancel.t),save:_.boardTr.t(i.boardTop.boardTopAnonymousPanel.saveAnonymousBoardMdal.saveBtn.t),addEmojiButtonName:_.boardTr.t(_.boardTr.keys.comments.body.addEmoji.t)},e.translationLabelsBoard=p})),j=function(n){void 0===n&&(n=!0),e.editMode=!n,w.setCmtMode(!0),n&&(t.find(":focus").blur(),document.activeElement&&document.activeElement.blur()),P()},L=function(t){o.checkElementAndParents(t.target,(function(t){return(0,m.hasClassName)(t,"stop-textarea-click-"+e.id)||(0,m.hasClassName)(t,"emoji-picker")||"mentions"==t.id}))||(e.editor.controller.save(),e.safeApply())},A=o.getDate(e.message.timestampData),M=function(e){var t=e.target;"function"===typeof(null===t||void 0===t?void 0:t.focus)&&window.setTimeout((function(){t.focus()}))};function R(){var n=t.parents(".comment-body__messages"),o=n.scrollTop(),i=n.outerHeight(),r=t.outerHeight(),a=t.position().top,s=e.editor.controller.getScrollTop(),c=e.editor.controller.getLineHeight(),l=o+a;if(l<=o+2*c||l+r>=o+i-2*c){var u=r1?e.canDelete?w.replyDelete(t):t.text=E:(t.text=E,w.commentDelete())),j()},e.applyMessage=function(){y.bowser.isTouchSupported&&e.editor.controller.save()},e.cancelMessage=function(t){t.preventDefault(),e.editor.controller.cancel(),j()},e.messageFocused=function(){return e.editor.controller.getEditor().selectionStart=999999,void(S=setTimeout(R,200))},e.messageChanged=function(){return R()},e.deleteMessage=function(){j(),h.deleteCommentMessage(),1==e.$parent.messages.messages.length?w.commentDelete():w.replyDelete(e.message)},e.edit=function(){E=e.message.text,j(!1),y.bowser.mobile||e.editor.controller.edit(),e.safeApply(),y.bowser.mobile||document.addEventListener("click",L,!0),h.editComment(),(0,g.default)().hide(),e.scrollToLastMessage()},d.getBasicInfo(e.message.senderId?e.message.senderId.toString():"0").then((function(t){var n=a.getPlainText(t.name);e.userName=n,e.userPicture=t.picture.medium||r.DEFAULT_USER_AVATAR,e.commentA11yText=function(e,t,n,o){var i=e.replace(c.mentionsPattern.unicode,(function(e){return a.getPlainText(e)})).replace(c.mentionsPattern.mentions,(function(e){if(-1!=e.search(c.mentionsPattern.userMention)){var t=e.substring(2,e.length-1),n=k.getMentionById(t);return n&&n.name?(0,l.encodeHTML)(n.name):"unknown"}for(var o in c.customMentions){var i=(0,c.getCustomMentionPattern)(c.customMentions[o]);if(-1!=e.search(i))return o}return"unknown"})),r=(0,s.default)(t,"DD MMM, HH:mm",", HH:mm"),u="".concat(r,", ").concat(i);if(o&&!n)return"".concat(o,", ").concat(u);return u}(e.message.text,e.message.timestamp,e.repeat,n),e.safeApply()})).catch((function(){})),e.$on("$destroy",(function(){I(),e.editor.controller&&e.editMode&&e.editor.controller.save(),P(),clearTimeout(S)}))}},295939:(e,t,n)=>{"use strict";n.d(t,{default:()=>O});var o,i=n(237216),r=n(399887),a=n(759312),s=n(827378),c=n(774267),l=n.n(c),u=n(123798),d=n(524506),p=n(170658),m=n(60042),g=n.n(m),h=n(235394),f=n.n(h),b=n(622039),v="rtb-recent-emoji",y="emoji-picker",_="emoji-picker__emoji-icon",x="emoji-picker__emoji-search-input",T="emoji-picker__emoji-search-input-clear-button",C=s.forwardRef((function(e,t){var n=e.value,o=e.onSearchChange,i=e.onClearSearch,r=e.placeholder;return s.createElement("div",{className:g()("no-prevent-default",f().inputContainer)},s.createElement("input",{className:f().searchInput,placeholder:r,value:n,onChange:function(e){o(e.target.value)},autoComplete:"off",ref:t,"data-testid":x}),s.createElement(b.If,{cond:!!n},s.createElement("div",{"data-testid":T,className:f().searchInput_clear,onClick:i},"\xd7")))})),k=n(975026),w=function(e){var t=(0,k.convertPixelPositionToPercent)(e),n=t.left,o=t.top;return{backgroundPosition:"".concat(n,"% ").concat(o,"%")}},E=n(712691),S=n.n(E),I=function(e){var t=e.categories,n=e.onItemClicked;return s.createElement(s.Fragment,null,t.map((function(e){var t=e.name,o=e.nameUpper,i=e.items;return s.createElement("div",{key:t},s.createElement("div",{className:S().categoryName},o),s.createElement("ul",{className:S().iconsList},i.map((function(e){return s.createElement("li",{className:S().iconContainer,key:e.name},s.createElement(b.Tappable.Button,{type:"button",className:"emoji-icon",style:w(e),"data-testid":_,hmTap:function(){n(e)}},s.createElement("span",{className:"sr-only"},e.jsCode)))}))))})))},j=n(292369),L=n(163204);!function(e){e.changeSearchValue="CHANGE_SEARCH_VALUE",e.clearSearchValue="CLEAR_SEARCH_VALUE",e.addCategories="ADD_CATEGORIES",e.loadRecentEmojis="LOAD_RECENT_EMOJIS",e.addRecentEmoji="ADD_RECENT_EMOJI",e.setIsClicked="SET_IS_CLICKED",e.setIsRecentChanged="SET_IS_RECENT_CHANGED",e.setIsLoaded="SET_IS_LOADED"}(o||(o={}));var A=function(e){return{type:o.addCategories,categories:e}},M=function(e){return{type:o.setIsClicked,isClicked:e}},R=function(e,t){switch(t.type){case o.addCategories:return function(e,t){return(0,a.__assign)((0,a.__assign)({},e),{categories:(0,a.__spreadArray)((0,a.__spreadArray)([],e.categories,!0),t.categories,!0),filteredCategories:(0,a.__spreadArray)((0,a.__spreadArray)([],e.categories,!0),t.categories,!0)})}(e,t);case o.loadRecentEmojis:return function(e,t){var n=t.length,o=t.items,i=(0,a.__spreadArray)([],e.categories,!0);i[0].items=[];for(var r=0;r=35&&i.pop(),i.unshift(n),(0,a.__assign)((0,a.__assign)({},e),{categories:o,filteredCategories:o,isRecentChanged:!0})}(e,t);case o.changeSearchValue:return function(e,t){var n=t.searchValue,o=n.trim().toLowerCase(),i=(0,a.__spreadArray)([],e.categories,!0);return i.forEach((function(e){var t=!0;e.items.forEach((function(e){var n=-1==e.words.indexOf(o);e.hidden=n,t=t&&n})),e.hidden=t})),(0,a.__assign)((0,a.__assign)({},e),{searchValue:n,categories:i,filteredCategories:i.filter((function(e){var t=e.items,n=e.hidden;return 0!==t.length&&!n})).map((function(e){var t=e.items.filter((function(e){return!e.hidden}));return(0,a.__assign)((0,a.__assign)({},e),{items:t})}))})}(e,t);case o.clearSearchValue:return function(e){var t=e.categories.map((function(e){return e.items.forEach((function(e){e.hidden=!1})),e.hidden=!1,e}));return(0,a.__assign)((0,a.__assign)({},e),{searchValue:"",categories:t,filteredCategories:t})}(e);case o.setIsClicked:return function(e,t){return(0,a.__assign)((0,a.__assign)({},e),{isClicked:t.isClicked})}(e,t);case o.setIsRecentChanged:return function(e,t){return(0,a.__assign)((0,a.__assign)({},e),{isRecentChanged:t.isChanged})}(e,t);case o.setIsLoaded:return function(e,t){return(0,a.__assign)((0,a.__assign)({},e),{isLoaded:t.isLoaded})}(e,t);default:return e}},P=n(556091),N={searchValue:"",isRecentChanged:!1,isClicked:!1,isLoaded:!1,categories:[],filteredCategories:[]},D=function(e){var t=e.visibility,n=e.onSelected,i=(0,j.useTranslator)(L.boardTr).t,r=(0,s.useReducer)(R,N),c=r[0],m=r[1],h=c.categories,f=c.searchValue,b=c.isClicked,_=c.isLoaded,x=c.isRecentChanged,T=s.useRef(0),k=s.useRef(null),w=i("board.components.emojiPicker.searchInput.placeholder"),E=function(){m({type:o.clearSearchValue})},S=function(){_||(m(function(e){return{type:o.setIsLoaded,isLoaded:e}}(!0)),$(),D())},D=function(){P.log("emoji","[EmojiPickerController] loadRecent");var e=d.getItem(v);if(e){var t=e.split(","),n=Math.min(t.length,35);m(function(e,t){return{type:o.loadRecentEmojis,items:e,length:t}}(t,n))}},O=function(e){P.log("emoji","[EmojiPickerController] loadEmojisChunkAsync",e);var t=p.getCategories();void 0!==t&&e=2&&m(A([e[0],e[1]])),T.current=setTimeout(O,0,2)},U=function(){var e,t;P.log("emoji","[EmojiPickerController] saveRecent"),x&&d.isSupported()&&(m((t=!1,{type:o.setIsRecentChanged,isChanged:t})),d.setItem(v,null===(e=h[0])||void 0===e?void 0:e.items.map((function(e){return e.name})).join()))};s.useEffect((function(){P.log("emoji","[EmojiPickerController] onVisibilityChanged",t),m(M(!1)),void 0!==t&&(t?(S(),function(){var e;P.log("emoji","[EmojiPickerController] scrollIntoView"),null===(e=k.current)||void 0===e||e.scrollIntoView({block:"nearest"})}(),E(),P.log("emoji","[EmojiPickerController] setSearchFocus"),u.bowser.mobile||u.bowser.winDesktopAppWithTouch||setTimeout((function(){var e;null===(e=k.current)||void 0===e||e.focus()}),50)):U())}),[t]),s.useEffect((function(){return function(){P.log("emoji","[EmojiPickerController] onDestroy"),U(),T.current&&clearTimeout(T.current)}}),[]);var V=s.useMemo((function(){return h.filter((function(e){var t=e.items,n=e.hidden;return 0!==t.length&&!n})).map((function(e){var t=e.items.filter((function(e){return!e.hidden}));return(0,a.__assign)((0,a.__assign)({},e),{items:t})}))}),[h]);return s.createElement("div",{id:"emoji-picker",className:l().emojiPicker,"data-testid":y},s.createElement("div",{className:g()("no-prevent-default",l().iconsList)},s.createElement(C,{value:f,placeholder:w,ref:k,onSearchChange:function(e){m(function(e){return{type:o.changeSearchValue,searchValue:e}}(e))},onClearSearch:function(){E()}}),s.createElement(I,{categories:V,onItemClicked:function(e){b||(m(M(!0)),m(function(e){return{type:o.addRecentEmoji,item:e}}(e)),n(e))}})))};function O(){(0,i.getRtbApp)().component("emojiPicker",(0,r.react2angular)(e)(D,["visibility","onSelected"]))}e=n.hmd(e)},338832:(e,t,n)=>{"use strict";n.d(t,{default:()=>h});var o=n(871251),i=n.n(o),r=n(478623),a=n(123798),s=n(524506),c=n(170658),l=n(975026),u=n(163204),d=n(556091),p="rtb-recent-emoji";const m=function(){function e(e,t){var n=this;this.$scope=e,this.$element=t,this.loadEmojisChunkAsyncWrapper=this.loadEmojisChunkAsync.bind(this),this.onDestroyWrapper=this.onDestroy.bind(this),this.onVisibilityChangedWrapper=this.onVisibilityChanged.bind(this),this.categories=[],this.searchValue="",this.recentChanged=!1,this.asyncId=0,this.loaded=!1,this.translationLabels={},d.log("emoji","[EmojiPickerController] constructor",this),e.$watch("picker.visibility",this.onVisibilityChangedWrapper),e.$on("$destroy",this.onDestroyWrapper);var o=u.boardTr.behaviorLoadedCurrentLang((function(){var e=u.boardTr.keys.components;n.translationLabels={inputSearchPlaceholder:u.boardTr.t(e.emojiPicker.searchInput.placeholder.t)}}));e.$on("$destroy",(function(){o()}))}return e.prototype.onItemClicked=function(e){this.clicked||(this.clicked=!0,this.addRecent(e),this.onSelected({emoji:e}))},e.prototype.clearSearch=function(){this.searchValue="",this.categories.forEach((function(e){e.items.forEach((function(e){e.hidden=!1})),e.hidden=!1}))},e.prototype.onSearchChanged=function(){var e=this.searchValue.trim().toLowerCase();this.categories.forEach((function(t){var n=!0;t.items.forEach((function(t){var o=-1==t.words.indexOf(e);t.hidden=o,n=n&&o})),t.hidden=n}))},e.prototype.getItemStyle=function(e){var t=(0,l.convertPixelPositionToPercent)(e),n=t.left,o=t.top;return{backgroundPosition:"".concat(n,"% ").concat(o,"%")}},e.prototype.loadEmojis=function(){this.loaded||(this.loaded=!0,this.loadEmojisChunk(),this.loadRecent())},e.prototype.loadRecent=function(){d.log("emoji","[EmojiPickerController] loadRecent");var e=s.getItem(p);if(e){var t=e.split(","),n=Math.min(t.length,35);this.categories[0].items=[];for(var o=0;o=35&&t.pop(),t.unshift(e),this.recentChanged=!0},e.prototype.saveRecent=function(){d.log("emoji","[EmojiPickerController] saveRecent"),this.recentChanged&&s.isSupported()&&(this.recentChanged=!1,s.setItem(p,this.categories[0].items.map((function(e){return e.name})).join()))},e.prototype.onVisibilityChanged=function(e){d.log("emoji","[EmojiPickerController] onVisibilityChanged",e),this.clicked=!1,void 0!==e&&(e?(this.loadEmojis(),this.scrollIntoView(),this.clearSearch(),this.setSearchFocus()):this.saveRecent())},e.prototype.onDestroy=function(){d.log("emoji","[EmojiPickerController] onDestroy"),this.saveRecent(),this.asyncId&&clearTimeout(this.asyncId)},e.prototype.scrollIntoView=function(){var e;d.log("emoji","[EmojiPickerController] scrollIntoView"),null===(e=document.getElementById("emoji-picker-input"))||void 0===e||e.scrollIntoView({block:"nearest"})},e.prototype.setSearchFocus=function(){d.log("emoji","[EmojiPickerController] setSearchFocus"),a.bowser.mobile||a.bowser.winDesktopAppWithTouch||setTimeout((function(){document.getElementById("emoji-picker-search").focus()}),50)},e.$inject=["$scope","$element"],e}();var g=n(237216);function h(){n(187797),(0,g.getRtbApp)().directive("emojiPicker",f)}function f(){return(0,r.default)({restrict:"E",template:i(),controller:m,controllerAs:"picker",bindToController:!0,scope:{visibility:"=",onSelected:"&"}})}},359878:(e,t,n)=>{"use strict";n.d(t,{default:()=>P,getUiMentionsCtrl:()=>$});var o,i=n(759312),r=n(785035),a=n.n(r),s=n(285087),c=n(941496),l=n(445569),u=n(648398),d=n(209115),p=n(127192),m=n(410119),g=n(266726),h=n.n(g),f=n(237216),b=n(123),v=n(878637),y=n(123798),_=n(818487),x=n(115361),T=n(980534),C=n(388011),k=n(359465),w=n(356579),E=n(381242),S=n(604620),I=n(336),j=n(163204),L=n(822719),A=n(791010),M=l.getInjectionPoint(),R=y.bowser.mobile?48:40;function P(){n(270544),(0,k.register)(),(0,f.getRtbApp)().directive("uiMentions",D),A.QuillMentionsModule.RegisterMentionsSuggestionAPI((function(){var e,t,n;return{show:null===(e=$())||void 0===e?void 0:e.showMentions.bind($()),close:null===(t=$())||void 0===t?void 0:t.close.bind($()),selectionChanged:null===(n=$())||void 0===n?void 0:n.selectionChanged}}))}!function(e){e.USER="user",e.USER_GROUP="group",e.ALL="user,group"}(o||(o={}));var N=(0,_.default)().isEnabled(x.FeatureNames.DECREASE_SEARCH_TIMEOUT);function D(){return{replace:!0,restrict:"E",controller:O,controllerAs:"ctrl",template:a(),link:function(e,t,n,i){y.bowser.mobile&&t.addClass("mobile"),e.mentions=[],e.opened=!1,e.onMentionClick=function(t,n){var r;void 0===n&&(n=!1),i.selectionChanged.dispatch(t,n),i.close();var a=null===(r=C.default.getState().board.info)||void 0===r?void 0:r.id,s=i.getSource(),l=t.type===c.SUGGESTION_TYPE.USER_GROUP?o.USER_GROUP:o.USER;(0,T.default)().sendApiEvent("search_used",{action_type:"clicking_result",board_id:a,object_type:l,reason:"mentions",source:s,search_session_id:i.searchSessionId,item_clicked_number:e.mentions.indexOf(t)+1,total_items_number:e.mentions.length,medium:"comment"}),(0,T.default)().sendApiEvent("object_insertion_completed",{board_id:a,object_type:l,objects_added:1,reason:"clicking_search_result",search_session_id:i.searchSessionId,source:s,successful_objects_added:1,medium:"comment",parent_object_type:(0,c.getParentObjectType)(s),source_object_type:"comment message"}),i.closeSearchSession()}}}}var O=function(){function e(e,t){var n=this;this.waitEvent=!1,this.prevSearch={search:null,suggestions:null,withCustom:!1},this.isSearchSessionOpened=!1,this.searchSessionId=0,this.selectionChanged=new s.default.Signal,this.closed=new s.default.Signal,this.onTryShowSuggestions=h()((function(e,t,o){n.tryShowSuggestions(e,t,o)}),N?300:500),this.translationLabels={},this.$scope=e,this.$element=t}return e.prototype.showMentions=function(e,t,n,o,i){void 0===o&&(o="top"),void 0===i&&(i=!1),this.offset=t,this.location=n,this.openingDirection=o,this.search(e,i)},e.prototype.search=function(e,t){var n,i=this;if(void 0===t&&(t=!1),M().userType!==p.UserType.REGULAR)return this.open();e=j.boardTr.getCurrentLang().key===L.TranslationLangKey.de?e:e.toLowerCase();var r=M().myUserId.toString();0!==e.length||this.isSearchSessionOpened||(this.isSearchSessionOpened=!0,this.searchSessionId=Date.now(),(0,T.default)().sendApiEvent("search_used",{action_type:"start_search",board_id:null===(n=C.default.getState().board.info)||void 0===n?void 0:n.id,object_type:(0,I.isUserGroupsEnabled)((0,S.default)().getCurrent())?o.ALL:o.USER,reason:"mentions",source:this.getSource(),search_session_id:this.searchSessionId,medium:"comment"})),this.onTryShowSuggestions(e,!0,(function(n){var o=n.data.reduce((function(e,n){return(t||n.id!==r)&&e.push(n),e}),[]);return i.$scope.empty=!e.length&&!o.length,Promise.resolve(o)}))},e.prototype.closeSearchSession=function(){this.isSearchSessionOpened=!1,this.searchSessionId=0},e.prototype.tryShowSuggestions=function(e,t,n){var r,a=this;e.length>0&&(0,T.default)().sendApiEvent("search_used",{action_type:"typing",board_id:null===(r=C.default.getState().board.info)||void 0===r?void 0:r.id,object_type:(0,I.isUserGroupsEnabled)((0,S.default)().getCurrent())?o.ALL:o.USER,reason:"mentions",source:this.getSource(),search_session_id:this.searchSessionId,medium:"comment"});var s=(new Date).getTime();(0,m.default)().getSuggestions(e,!0,n,(0,b.CommentsService)().activeMessage).then((function(t){var n,r=t.suggestions;r=(0,i.__spreadArray)((0,i.__spreadArray)([],t.custom,!0),r,!0);var c=a.$scope,l=r.length;a.prevSearch.withCustom=t.custom.length>0,c.mentions=r,c.empty=!t.allCount,a.prevSearch.search=e,a.prevSearch.suggestions=l,c.empty||l?(a.open(),(0,T.default)().sendApiEvent("search_results_shown",{board_id:null===(n=C.default.getState().board.info)||void 0===n?void 0:n.id,duration:(new Date).getTime()-s,object_type:(0,I.isUserGroupsEnabled)((0,S.default)().getCurrent())?o.ALL:o.USER,query_length:e.length,reason:"mentions",search_session_id:a.searchSessionId,source:a.getSource(),medium:"comment",total_items_number:r.length})):a.close()}))},e.prototype.close=function(){var e=this.$scope;e.opened&&(e.opened=!1,e.safeApply(),u.onCanvasUnloaded.remove(this.close,this),u.canvasController.removeEventListener(d.default.VIEWPORT_UPDATED,this.close,this)),this.onTryShowSuggestions.cancel(),this.closed.dispatch()},e.prototype.reopen=function(){this.$scope.opened&&this.open()},e.prototype.open=function(){var e=this,t=this.$scope;t.opened||(t.opened=!0,t.safeApply(),u.onCanvasUnloaded.add(this.close,this),u.canvasController.addEventListener(d.default.VIEWPORT_UPDATED,this.close,this)),this.prevSearch.suggestions>0?this.setPosition(this.prevSearch.suggestions):(this.$element.css({height:"",visibility:"hidden"}),setTimeout((function(){return e.setPosition(0)}),500)),setTimeout((function(){return e.$element.scrollTop(0)}))},e.prototype.setPosition=function(e){if(this.$scope.opened){var t=this.prevSearch.withCustom&&e>1?17:0,n=this.offset,o=this.location;if(n&&o){var i,r,a=this.$element;if(y.bowser.mobile)r=(s=Math.min(e,8,~~((n.top-12)/R)))*R,i=n.top-r-12+1;else if("top"==this.openingDirection){if(e>0)r=(s=Math.min(e,8,~~((n.top-16)/(R+2*w.SUGGESTION_LIST_VERTICAL_PADDING))))*R+t;else r=a.height()||0;i=Math.max(n.top-16-r-w.SUGGESTION_LIST_VERTICAL_PADDING,16)}else{var s=Math.min(e,8,~~((document.body.clientHeight-(n.top+16))/(R+2*w.SUGGESTION_LIST_VERTICAL_PADDING)));i=Math.max(n.top+16+17),r=s*R+t}var c=0,l=0,u="";switch(o){case"chat":c=20,l=n.left,u="mentions--chat";break;case"comment":c=20,l=n.left,u="mentions--comment";break;case"comment-reply":c=20,l=n.left,u="mentions--comment-reply";break;case"note":c=0,l=n.left,u="mentions--comment";break;case"widget":c=20,l=n.left,u="mentions--widget"}a.removeClass("mentions--chat mentions--comment mentions--comment-reply mentions--widget"),a.addClass(u),a.css({height:e>0?r:"",left:c,transform:"translate(".concat(l,"px, ").concat(i,"px)"),visibility:""}),this.$scope.safeApply()}}},e.prototype.getSource=function(){switch(this.location){case"chat":case"note":case"widget":return this.location}return"board"},e.$inject=["$scope","$element"],(0,i.__decorate)([E.autobind],e.prototype,"close",null),e}();function $(){return v.default.instance.getAngularStatic().element("#mentions").controller("uiMentions")}},359465:(e,t,n)=>{"use strict";n.d(t,{register:()=>y});var o=n(237216),i=n(399887),r=n(759312),a=n(827378),s=n(127192),c=n(445569),l=n(308536),u=n(356579),d=n(980534),p=n(441519),m=n(790900),g=n(238729),h=n(930542),f=n(957453),b=n(163204),v=function(e){var t=e.hasSuggestions,n=e.onCancel,o=(0,r.__rest)(e,["hasSuggestions","onCancel"]),i=a.useCallback((function(){(0,d.default)().sendApiEvent("click_login_mention_by_guest",{}),(0,p.getBoardUiStore)().dispatch((0,m.navigateToLoginPage)({openBoardId:f.UICurrentBoard.getInfo().id}))}),[]),v=a.useCallback((function(){n(),(0,g.lazyModuleWithLockLayer)((function(){return(0,h.default)()})).then((function(e){return e.runShareFlow({boardId:f.UICurrentBoard.getInfo().id,from:"mentions"})}))}),[n]);return a.createElement(u.SuggestionList,(0,r.__assign)({},o,{emptyListConfig:{areSuggestionsAllowed:(0,l.isAllowAnySuggestions)(f.UICurrentBoard.getInfo()),hasSuggestions:t,isDirectlyShared:f.UICurrentBoard.getInfo().currentUserContext.directlyShared,isRegularUser:(0,c.default)().userType===s.UserType.REGULAR,onLoginClick:i,onShareClick:v},locale:b.boardTr.getCurrentLang().key,onCancel:n}))};function y(){(0,o.getRtbApp)().component("suggestionListContainer",(0,i.react2angular)(e)(v,["hasSuggestions","suggestions","onCancel","onSuggestionClick","scrollContainerSelector"]))}e=n.hmd(e)},91696:(e,t,n)=>{"use strict";function o(){return"EmojiPickerService"}n.d(t,{getServiceKey:()=>o,default:()=>i});const i=n(285289).getInjectionPoint("EmojiPickerService")},912266:(e,t,n)=>{"use strict";n.d(t,{getDateMonthLokalisedDateTimeFormat:()=>i});var o=n(822719);function i(e){return e===o.TranslationLangKey.ja_JP?"MMM Do, HH:mm":"DD MMM, HH:mm"}},356579:(e,t,n)=>{"use strict";n.d(t,{SUGGESTION_LIST_VERTICAL_PADDING:()=>S,SuggestionList:()=>O});var o,i,r=n(827378),a=n(366115),s=n(123798),c=n(292369),l=n(38990),u=n(941496),d=n(60042),p=n.n(d),m=n(494301),g=n(641443);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;ts?n.scrollTo({top:l-a+S}):c=d.length&&(e=0),f(e),T(e)}),[h,T,d]),k=r.useCallback((function(){var e=h-1;e<0&&(e=d.length-1),f(e),T(e)}),[h,T,d]),w=r.useCallback((function(e){f(d.indexOf(e)),o(e)}),[d,o]),I=r.useCallback((function(e){f(d.indexOf(e))}),[d]),j=r.useCallback((function(e){var t=e.keyCode,i=e.shiftKey;t===a.Keyboard.TAB?(1===d.length?o(d[h],!0):i?k():C(),P(e)):t===a.Keyboard.UP_ARROW||t===a.Keyboard.DOWN_ARROW?(t===a.Keyboard.UP_ARROW?k():C(),P(e)):t===a.Keyboard.LEFT_ARROW||t===a.Keyboard.RIGHT_ARROW||t===a.Keyboard.ESCAPE?(y(!0),n(),t===a.Keyboard.ESCAPE&&P(e)):t===a.Keyboard.ENTER&&(y(!0),P(e),d.length>0?o(d[h],!0):n())}),[h,d,o,n,C,k]),L=r.useCallback((function(e){var t=e.keyCode;t!==a.Keyboard.UP_ARROW&&t!==a.Keyboard.DOWN_ARROW&&t!==a.Keyboard.ENTER&&t!==a.Keyboard.ESCAPE&&t!==a.Keyboard.TAB||P(e),v&&document.removeEventListener("keyup",L,!0)}),[v]),M=r.useCallback((function(e){e.target.closest(i)||e.target.closest(".ui-textarea__editing")||(n(),P(e))}),[n,i]);r.useEffect((function(){return document.addEventListener(s.bowser.isTouchSupportedAndNotDesktop?"touchstart":"click",M,!0),document.addEventListener("keydown",j,!0),document.addEventListener("keyup",L,!0),function(){document.removeEventListener(s.bowser.isTouchSupportedAndNotDesktop?"touchstart":"click",M,!0),document.removeEventListener("keydown",j,!0),v||document.removeEventListener("keyup",L,!0)}}),[M,j,L,v]),r.useEffect((function(){f(d.filter((function(e){return"custom"===e.id})).length)}),[d]);var N=(0,c.useTranslator)(A);if(t&&0===d.length){var O=t.areSuggestionsAllowed,$=t.hasSuggestions,U=t.isDirectlyShared,V=t.isRegularUser,B=t.onLoginClick,H=t.onShareClick;if(!$&&U)return r.createElement("div",{"data-testid":m.emptyLabel,className:R().emptyLabel},r.createElement(c.Trans,{translator:A,translationKey:{tKey:"suggestionsMentions.emptyLabel"}},"To mention someone,",r.createElement("br",null),r.createElement(l.Link,{onClick:H,"data-testid":m.inviteLink},"invite")," ","them to the board"));if(!V)return r.createElement("div",{"data-testid":m.guestLabel,className:R().guestLabel},r.createElement(c.Trans,{translator:A,translationKey:{tKey:"suggestionsMentions.guestLabel"}},r.createElement(l.Link,{onClick:B},"Log in")," to mention board participants."));if(!O)return r.createElement("div",{"data-testid":m.nonParticipantLabel,className:R().nonParticipantLabel},N.t("suggestionsMentions.guestCannotMentionOthers"))}return r.createElement("div",{"data-testid":m.root,ref:_,className:R().root},d.map((function(e,t){return r.createElement(E,{ref:function(t){x.current[(0,u.getUniqueSuggestionKey)(e)]=t},key:(0,u.getUniqueSuggestionKey)(e),index:t,isActive:h===t,isSingle:1===d.length,suggestion:e,onClick:w,onMouseOver:I})})))}))},765722:(e,t,n)=>{"use strict";e.exports=n.p+"3728eadeec2ff862.svg"},382528:(e,t,n)=>{"use strict";e.exports=n.p+"6bf1eb7d704e6f50.svg"},539345:(e,t,n)=>{"use strict";e.exports=n.p+"b9ca3eef0c568c05.svg"},748812:(e,t,n)=>{"use strict";e.exports=n.p+"f2d51e4d12b381e7.svg"},240587:(e,t,n)=>{"use strict";e.exports=n.p+"ce391dc0782498d6.svg"},484408:(e,t,n)=>{"use strict";e.exports=n.p+"13a12718c0eda54a.svg"}}]); //# sourceMappingURL=https://miro.com/app/static/cmn~BoardUI.desktop~BoardUI.mobile~Notes.9452946b95d56bd8.js.map