/*! * !Licensed Materials - Property of IBM * IBM Cognos Products: Collaboration * (C) Copyright IBM Corp. 2017, 2022 * * US Government Users Restricted Rights - Use, duplication or disclosure * restricted by GSA ADP Schedule Contract with IBM Corp. */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("prop-types"),require("ca-ui-toolkit"),require("mobx-react"),require("mobx-state-tree"),require("react-dom"),require("mobx"),require("ba-react-admin/ba-react-admin.min"),require("bi/admin/nls/StringResource"));else if("function"==typeof define&&define.amd)define(["react","prop-types","ca-ui-toolkit","mobx-react","mobx-state-tree","react-dom","mobx","ba-react-admin/ba-react-admin.min","bi/admin/nls/StringResource"],t);else{var n="object"==typeof exports?t(require("react"),require("prop-types"),require("ca-ui-toolkit"),require("mobx-react"),require("mobx-state-tree"),require("react-dom"),require("mobx"),require("ba-react-admin/ba-react-admin.min"),require("bi/admin/nls/StringResource")):t(e.react,e["prop-types"],e["ca-ui-toolkit"],e["mobx-react"],e["mobx-state-tree"],e["react-dom"],e.mobx,e["ba-react-admin/ba-react-admin.min"],e["bi/admin/nls/StringResource"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,function(e,t,n,r,a,o,i,s,c){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/bi/collaboration-ui/",t(t.s=68)}([function(e,t,n){(function(t){!function(t,n){e.exports=function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};n.prototype.stringify=function(){return this.content},n.prototype.toString=function(){return this.stringify()},n.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};var r=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},a=("undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self,e(function(e,t){!function(t,n){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){return r&&!0===r.clone&&e(n)?o(t(n),n,r):n}function r(t,r,a){var i=t.slice();return r.forEach(function(r,s){void 0===i[s]?i[s]=n(r,a):e(r)?i[s]=o(t[s],r,a):-1===t.indexOf(r)&&i.push(n(r,a))}),i}function a(t,r,a){var i={};return e(t)&&Object.keys(t).forEach(function(e){i[e]=n(t[e],a)}),Object.keys(r).forEach(function(s){e(r[s])&&t[s]?i[s]=o(t[s],r[s],a):i[s]=n(r[s],a)}),i}function o(e,t,o){var i=Array.isArray(t),s=o||{arrayMerge:r},c=s.arrayMerge||r;return i?Array.isArray(e)?c(e,t,o):n(t,o):a(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return o(e,n,t)})},o}()}()})),o=e(function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default}),i=function(e){return Object.keys(e).map(function(t){return t+'="'+e[t].toString().replace(/"/g,""")+'"'}).join(" ")},s=o.svg,c=o.xlink,l={};l[s.name]=s.uri,l[c.name]=c.uri;var u=function(e,t){void 0===e&&(e="");var n=a(l,t||{});return""+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return r(u(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(n)}()}()}).call(t,n(25))},function(e,t,n){(function(t){!function(t,n){e.exports=function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map(function(e){e(n)}),(e["*"]||[]).map(function(e){e(t,n)})}}}function r(e,t){return w(e).reduce(function(e,n){if(!n.attributes)return e;var r=w(n.attributes),a=t?r.filter(t):r;return e.concat(a)},[])}function a(e){return e.replace(D,function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()})}function o(e,t,n){return w(e).forEach(function(e){var r=e.getAttribute(L);if(r&&0===r.indexOf(t)){var a=r.replace(t,n);e.setAttributeNS(j,L,a)}}),e}var i=("undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self,e(function(e,t){!function(t,n){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){return r&&!0===r.clone&&e(n)?o(t(n),n,r):n}function r(t,r,a){var i=t.slice();return r.forEach(function(r,s){void 0===i[s]?i[s]=n(r,a):e(r)?i[s]=o(t[s],r,a):-1===t.indexOf(r)&&i.push(n(r,a))}),i}function a(t,r,a){var i={};return e(t)&&Object.keys(t).forEach(function(e){i[e]=n(t[e],a)}),Object.keys(r).forEach(function(s){e(r[s])&&t[s]?i[s]=o(t[s],r[s],a):i[s]=n(r[s],a)}),i}function o(e,t,o){var i=Array.isArray(t),s=o||{arrayMerge:r},c=s.arrayMerge||r;return i?Array.isArray(e)?c(e,t,o):n(t,o):a(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return o(e,n,t)})},o}()}()})),s=e(function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default}),c=function(e){return Object.keys(e).map(function(t){return t+'="'+e[t].toString().replace(/"/g,""")+'"'}).join(" ")},l=s.svg,u=s.xlink,p={};p[l.name]=l.uri,p[u.name]=u.uri;var d,_=function(e,t){void 0===e&&(e="");var n=i(p,t||{});return""+e+""},f=s.svg,h=s.xlink,m={attrs:(d={style:["position: absolute","width: 0","height: 0"].join("; ")},d[f.name]=f.uri,d[h.name]=h.uri,d)},y=function(e){this.config=i(m,e||{}),this.symbols=[]};y.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},y.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},y.prototype.find=function(e){return this.symbols.filter(function(t){return t.id===e})[0]||null},y.prototype.has=function(e){return null!==this.find(e)},y.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map(function(e){return e.stringify()}).join("");return _(n,t)},y.prototype.toString=function(){return this.stringify()},y.prototype.destroy=function(){this.symbols.forEach(function(e){return e.destroy()})};var g=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};g.prototype.stringify=function(){return this.content},g.prototype.toString=function(){return this.stringify()},g.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};var v,b=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},E=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return b(_(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(g),O={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},w=function(e){return Array.prototype.slice.call(e,0)},R=navigator.userAgent,A={isChrome:/chrome/i.test(R),isFirefox:/firefox/i.test(R),isIE:/msie/i.test(R)||/trident/i.test(R),isEdge:/edge/i.test(R)},T=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},x=function(e){var t=[];return w(e.querySelectorAll("style")).forEach(function(e){e.textContent+="",t.push(e)}),t},k=function(e){return(e||window.location.href).split("#")[0]},C=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",function(t,n,r){T(e,{oldUrl:r,newUrl:n})})}])},S=function(e,t){return void 0===t&&(t="linearGradient, radialGradient, pattern"),w(e.querySelectorAll("symbol")).forEach(function(e){w(e.querySelectorAll(t)).forEach(function(t){e.parentNode.insertBefore(t,e)})}),e},j=s.xlink.uri,L="xlink:href",D=/[{}|\\\^\[\]`"<>]/g,I=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],P=I.map(function(e){return"["+e+"]"}).join(","),M=function(e,t,n,i){var s=a(n),c=a(i);r(e.querySelectorAll(P),function(e){var t=e.localName,n=e.value;return-1!==I.indexOf(t)&&-1!==n.indexOf("url("+s)}).forEach(function(e){return e.value=e.value.replace(s,c)}),o(t,s,c)},N={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},H=function(e){function t(t){var r=this;void 0===t&&(t={}),e.call(this,i(O,t));var a=n();this._emitter=a,this.node=null;var o=this,s=o.config;if(s.autoConfigure&&this._autoConfigure(t),s.syncUrlsWithBaseTag){var c=document.getElementsByTagName("base")[0].getAttribute("href");a.on(N.MOUNT,function(){return r.updateUrls("#",c)})}var l=this._handleLocationChange.bind(this);this._handleLocationChange=l,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,l),s.locationChangeAngularEmitter&&C(s.locationChangeEvent),a.on(N.MOUNT,function(e){s.moveGradientsOutsideSymbol&&S(e)}),a.on(N.SYMBOL_MOUNT,function(e){s.moveGradientsOutsideSymbol&&S(e.parentNode),(A.isIE||A.isEdge)&&x(e)})}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;void 0===e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),void 0===e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=A.isFirefox)},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},t.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(N.SYMBOL_MOUNT,t.node)),r},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"==typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach(function(e){e.mount(n.node),t._emitter.emit(N.SYMBOL_MOUNT,e.node)}),w(r.querySelectorAll("symbol")).forEach(function(e){var t=E.createFromExistingNode(e);t.node=e,n.add(t)}),this._emitter.emit(N.MOUNT,r),r},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach(function(e){return e.destroy()}),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"==typeof e?document.querySelector(e):e,a=n.render();return this.node=a,t&&r.childNodes[0]?r.insertBefore(a,r.childNodes[0]):r.appendChild(a),this._emitter.emit(N.MOUNT,a),a},t.prototype.render=function(){return b(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return M(this.node,n,k(e)+"#",k(t)+"#"),!0},Object.defineProperties(t.prototype,r),t}(y),z=e(function(e){/*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(t,n){e.exports=function(){var e,t=[],n=document,r=n.documentElement.doScroll,a=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return a||n.addEventListener("DOMContentLoaded",e=function(){for(n.removeEventListener("DOMContentLoaded",e),a=1;e=t.shift();)e()}),function(e){a?setTimeout(e,0):t.push(e)}}()}()});!window.__SVG_SPRITE__?(v=new H({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=v):v=window.__SVG_SPRITE__;var F=function(){var e=document.getElementById("__SVG_SPRITE_NODE__");e?v.attach(e):v.mount(document.body,!0)};return document.body?F():z(F),v}()}()}).call(t,n(25))},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){var r=n(46),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},function(e,t){function n(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"==typeof btoa){var o=r(a);return[n].concat(a.sources.map(function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a=0&&v.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",l(t,e.attrs),o(e,t),t}function c(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",l(t,e.attrs),o(e,t),t}function l(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function u(e,t){var n,r,a,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var l=g++;n=y||(y=s(t)),r=p.bind(null,n,l,!1),a=p.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(t),r=_.bind(null,n,t),a=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=d.bind(null,n),a=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function p(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=E(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function _(e,t,n){var r=n.css,a=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||o)&&(r=b(r)),a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var i=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(i),s&&URL.revokeObjectURL(s)}var f={},h=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),m=function(e){var t={};return function(n){if(void 0===t[n]){var r=e.call(this,n);if(r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[n]=r}return t[n]}}(function(e){return document.querySelector(e)}),y=null,g=0,v=[],b=n(182);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=h()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=a(e,t);return r(n,t),function(e){for(var o=[],i=0;i"+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(t)}()}()}).call(t,n("698d75b157f24ae829cc"))},"9ce58a7deea14f49ef01":function(e,t,n){(function(t){!function(t,n){e.exports=function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function t(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map(function(e){e(n)}),(e["*"]||[]).map(function(e){e(t,n)})}}}function n(e,t){return O(e).reduce(function(e,n){if(!n.attributes)return e;var r=O(n.attributes),a=t?r.filter(t):r;return e.concat(a)},[])}function r(e){return e.replace(L,function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()})}function a(e,t,n){return O(e).forEach(function(e){var r=e.getAttribute(j);if(r&&0===r.indexOf(t)){var a=r.replace(t,n);e.setAttributeNS(S,j,a)}}),e}var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,e(function(e,t){!function(t,n){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){return r&&!0===r.clone&&e(n)?o(t(n),n,r):n}function r(t,r,a){var i=t.slice();return r.forEach(function(r,s){void 0===i[s]?i[s]=n(r,a):e(r)?i[s]=o(t[s],r,a):-1===t.indexOf(r)&&i.push(n(r,a))}),i}function a(t,r,a){var i={};return e(t)&&Object.keys(t).forEach(function(e){i[e]=n(t[e],a)}),Object.keys(r).forEach(function(s){e(r[s])&&t[s]?i[s]=o(t[s],r[s],a):i[s]=n(r[s],a)}),i}function o(e,t,o){var i=Array.isArray(t),s=o||{arrayMerge:r},c=s.arrayMerge||r;return i?Array.isArray(e)?c(e,t,o):n(t,o):a(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return o(e,n,t)})},o}()}()})),i=e(function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default}),s=function(e){return Object.keys(e).map(function(t){return t+'="'+e[t].toString().replace(/"/g,""")+'"'}).join(" ")},c=i.svg,l=i.xlink,u={};u[c.name]=c.uri,u[l.name]=l.uri;var p,d=function(e,t){void 0===e&&(e="");var n=o(u,t||{});return""+e+""},_=i.svg,f=i.xlink,h={attrs:(p={style:["position: absolute","width: 0","height: 0"].join("; ")},p[_.name]=_.uri,p[f.name]=f.uri,p)},m=function(e){this.config=o(h,e||{}),this.symbols=[]};m.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},m.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},m.prototype.find=function(e){return this.symbols.filter(function(t){return t.id===e})[0]||null},m.prototype.has=function(e){return null!==this.find(e)},m.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map(function(e){return e.stringify()}).join("");return d(n,t)},m.prototype.toString=function(){return this.stringify()},m.prototype.destroy=function(){this.symbols.forEach(function(e){return e.destroy()})};var y=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};y.prototype.stringify=function(){return this.content},y.prototype.toString=function(){return this.stringify()},y.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};var g,v=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},b=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return v(d(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(y),E={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},O=function(e){return Array.prototype.slice.call(e,0)},w=navigator.userAgent,R={isChrome:/chrome/i.test(w),isFirefox:/firefox/i.test(w),isIE:/msie/i.test(w)||/trident/i.test(w),isEdge:/edge/i.test(w)},A=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},T=function(e){var t=[];return O(e.querySelectorAll("style")).forEach(function(e){e.textContent+="",t.push(e)}),t},x=function(e){return(e||window.location.href).split("#")[0]},k=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",function(t,n,r){A(e,{oldUrl:r,newUrl:n})})}])},C=function(e,t){return void 0===t&&(t="linearGradient, radialGradient, pattern"),O(e.querySelectorAll("symbol")).forEach(function(e){O(e.querySelectorAll(t)).forEach(function(t){e.parentNode.insertBefore(t,e)})}),e},S=i.xlink.uri,j="xlink:href",L=/[{}|\\\^\[\]`"<>]/g,D=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],I=D.map(function(e){return"["+e+"]"}).join(","),P=function(e,t,o,i){var s=r(o),c=r(i);n(e.querySelectorAll(I),function(e){var t=e.localName,n=e.value;return-1!==D.indexOf(t)&&-1!==n.indexOf("url("+s)}).forEach(function(e){return e.value=e.value.replace(s,c)}),a(t,s,c)},M={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},N=function(e){function n(n){var r=this;void 0===n&&(n={}),e.call(this,o(E,n));var a=t();this._emitter=a,this.node=null;var i=this,s=i.config;if(s.autoConfigure&&this._autoConfigure(n),s.syncUrlsWithBaseTag){var c=document.getElementsByTagName("base")[0].getAttribute("href");a.on(M.MOUNT,function(){return r.updateUrls("#",c)})}var l=this._handleLocationChange.bind(this);this._handleLocationChange=l,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,l),s.locationChangeAngularEmitter&&k(s.locationChangeEvent),a.on(M.MOUNT,function(e){s.moveGradientsOutsideSymbol&&C(e)}),a.on(M.SYMBOL_MOUNT,function(e){s.moveGradientsOutsideSymbol&&C(e.parentNode),(R.isIE||R.isEdge)&&T(e)})}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},n.prototype._autoConfigure=function(e){var t=this,n=t.config;void 0===e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),void 0===e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=R.isFirefox)},n.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},n.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(M.SYMBOL_MOUNT,t.node)),r},n.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"==typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach(function(e){e.mount(n.node),t._emitter.emit(M.SYMBOL_MOUNT,e.node)}),O(r.querySelectorAll("symbol")).forEach(function(e){var t=b.createFromExistingNode(e);t.node=e,n.add(t)}),this._emitter.emit(M.MOUNT,r),r},n.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach(function(e){return e.destroy()}),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},n.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"==typeof e?document.querySelector(e):e,a=n.render();return this.node=a,t&&r.childNodes[0]?r.insertBefore(a,r.childNodes[0]):r.appendChild(a),this._emitter.emit(M.MOUNT,a),a},n.prototype.render=function(){return v(this.stringify())},n.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},n.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return P(this.node,n,x(e)+"#",x(t)+"#"),!0},Object.defineProperties(n.prototype,r),n}(m),H=e(function(e){/*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(t,n){e.exports=function(){var e,t=[],n=document,r=n.documentElement.doScroll,a=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return a||n.addEventListener("DOMContentLoaded",e=function(){for(n.removeEventListener("DOMContentLoaded",e),a=1;e=t.shift();)e()}),function(e){a?setTimeout(e,0):t.push(e)}}()}()});window.__SVG_SPRITE__?g=window.__SVG_SPRITE__:(g=new N({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=g);var z=function(){var e=document.getElementById("__SVG_SPRITE_NODE__");e?g.attach(e):g.mount(document.body,!0)};return document.body?z():H(z),g}()}()}).call(t,n("698d75b157f24ae829cc"))}})},function(e,t,n){function r(e,t){var n=o(e,t);return a(n)?n:void 0}var a=n(80),o=n(85);e.exports=r},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){function r(e,t,n,r){var i=!n;n||(n={});for(var s=-1,c=t.length;++s=0)},y.invoke=function(e,t){var n=u.call(arguments,2),r=y.isFunction(t);return y.map(e,function(e){return(r?t:e[t]).apply(e,n)})},y.pluck=function(e,t){return y.map(e,y.property(t))},y.where=function(e,t){return y.filter(e,y.matches(t))},y.findWhere=function(e,t){return y.find(e,y.matches(t))},y.max=function(e,t,n){var r,a,o=-1/0,i=-1/0;if(null==t&&null!=e){e=e.length===+e.length?e:y.values(e);for(var s=0,c=e.length;so&&(o=r)}else t=y.iteratee(t,n),y.each(e,function(e,n,r){((a=t(e,n,r))>i||a===-1/0&&o===-1/0)&&(o=e,i=a)});return o},y.min=function(e,t,n){var r,a,o=1/0,i=1/0;if(null==t&&null!=e){e=e.length===+e.length?e:y.values(e);for(var s=0,c=e.length;sr||void 0===n)return 1;if(n>>1;n(e[s])=0;)if(e[r]===t)return r;return-1},y.range=function(e,t,n){arguments.length<=1&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),a=Array(r),o=0;ot?(clearTimeout(i),i=null,s=l,o=e.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(c,u)),o}},y.debounce=function(e,t,n){var r,a,o,i,s,c=function(){var l=y.now()-i;l0?r=setTimeout(c,t-l):(r=null,n||(s=e.apply(o,a),r||(o=a=null)))};return function(){o=this,a=arguments,i=y.now();var l=n&&!r;return r||(r=setTimeout(c,t)),l&&(s=e.apply(o,a),o=a=null),s}},y.wrap=function(e,t){return y.partial(t,e)},y.negate=function(e){return function(){return!e.apply(this,arguments)}},y.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},y.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},y.before=function(e,t){var n;return function(){return--e>0?n=t.apply(this,arguments):t=null,n}},y.once=y.partial(y.before,2),y.keys=function(e){if(!y.isObject(e))return[];if(h)return h(e);var t=[];for(var n in e)y.has(e,n)&&t.push(n);return t},y.values=function(e){for(var t=y.keys(e),n=t.length,r=Array(n),a=0;a":">",'"':""","'":"'","`":"`"},A=y.invert(R),T=function(e){var t=function(t){return e[t]},n="(?:"+y.keys(e).join("|")+")",r=RegExp(n),a=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(a,t):e}};y.escape=T(R),y.unescape=T(A),y.result=function(e,t){if(null!=e){var n=e[t];return y.isFunction(n)?e[t]():n}};var x=0;y.uniqueId=function(e){var t=++x+"";return e?e+t:t},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var k=/(.)^/,C={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},S=/\\|'|\r|\n|\u2028|\u2029/g,j=function(e){return"\\"+C[e]};y.template=function(e,t,n){!t&&n&&(t=n),t=y.defaults({},t,y.templateSettings);var r=RegExp([(t.escape||k).source,(t.interpolate||k).source,(t.evaluate||k).source].join("|")+"|$","g"),a=0,o="__p+='";e.replace(r,function(t,n,r,i,s){return o+=e.slice(a,s).replace(S,j),a=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(o+="';\n"+i+"\n__p+='"),t}),o+="';\n",t.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var i=new Function(t.variable||"obj","_",o)}catch(e){throw e.source=o,e}var s=function(e){return i.call(this,e,y)};return s.source="function("+(t.variable||"obj")+"){\n"+o+"}",s},y.chain=function(e){var t=y(e);return t._chain=!0,t};var L=function(e){return this._chain?y(e).chain():e};y.mixin=function(e){y.each(y.functions(e),function(t){var n=y[t]=e[t];y.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),L.call(this,n.apply(y,e))}})},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=i[e];y.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],L.call(this,n)}}),y.each(["concat","join","slice"],function(e){var t=i[e];y.prototype[e]=function(){return L.call(this,t.apply(this._wrapped,arguments))}}),y.prototype.value=function(){return this._wrapped},r=[],void 0!==(a=function(){return y}.apply(t,r))&&(e.exports=a)}).call(this)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return i});var a=n(9),o=(n.n(a),function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var a=n(2),o=n.n(a),i=n(3),s=n.n(i),c=n(72),l=n.n(c),u=Object.assign||function(e){for(var t=1;t-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t){function n(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&a.test(e))&&e>-1&&e%1==0&&e0?r:n,disabled:this.props.inProgress},o=this.props.nls(t>0?"edit":"add"),i=this.props.nls("label_attachment_count",{count:t});return u.a.createElement(f.FlexItem,{gutter:[.5,0,0,8],className:"attach-report-controls"},u.a.createElement(f.Link,a,o)," ",u.a.createElement("i",null,i))}},{key:"___renderMissingVersionsWarning__REACT_HOT_LOADER__",value:function(){var e=this.props.attachReportStore.reportVersions,t=e.state,n=e.versions,r=void 0;return"error"===t?r="load_versions_error":"loaded"===t&&0===n.length&&(r="no_versions_available"),r?u.a.createElement(f.Tooltip,{orient:"right",title:this.props.nls(r)},u.a.createElement(f.SVGIcon,{className:"warning-icon",iconId:m.a.id,intent:"warning",verticalAlign:"middle"})):null}},{key:"___renderAttachReport__REACT_HOT_LOADER__",value:function(){var e=this.props.attachReportStore,t=e.shareMode,n=e.attachReport,r=e.toggleAttachReport,a=e.reportVersions,o="context"===t&&n,i="context"===t&&("loaded"!==a.state||0===a.versions.length);return u.a.createElement(l.Fragment,null,u.a.createElement(f.FlexItem,{gutter:[2,3,0,3]},u.a.createElement(f.ToggleSwitch,{label:this.props.nls("context"===t?"attach_report_output":"attach_report"),"data-tid":"toggle_attach_report",disabled:this.props.inProgress||i,onChange:r,checked:n,small:!0}),i?this._renderMissingVersionsWarning():null),o?this._renderAttachReportLink():null)}},{key:"render",value:function(){var e=this.props.attachReportStore,t=!!e&&e.showAttachReport;return u.a.createElement(f.FlexLayout,{direction:"column",className:O},this.props.isLinkVisible||this.props.hasImage||t?u.a.createElement(f.FlexItem,{gutter:[3,3,0,3]},u.a.createElement("div",{className:"slack-label"}," ",this.props.nls("label_include_message")," ")):null,this._renderLink(),this.props.hasImage?u.a.createElement(f.FlexItem,{gutter:[2,3,0,3]},u.a.createElement(f.ToggleSwitch,{label:this.props.nls("toggle_include_image"),"data-tid":"toggle_include_image",disabled:this.props.inProgress,onChange:this.props.toggleImage,checked:this.props.isImageEnabled,small:!0}),u.a.createElement(f.Tooltip,{orient:"right",title:this.props.nls("zoom_info")},u.a.createElement(f.SVGIcon,{className:"info-icon",iconId:g.a.id,intent:"info",verticalAlign:"middle"}))):null,t?this._renderAttachReport():null)}}]),t}(l.Component),s.propTypes={isLinkVisible:d.a.bool.isRequired,isLinkEnabled:d.a.bool.isRequired,isLinkShareable:d.a.bool.isRequired,isDirty:d.a.bool.isRequired,toggleLink:d.a.func.isRequired,hasImage:d.a.bool.isRequired,isImageEnabled:d.a.bool.isRequired,toggleImage:d.a.func.isRequired,attachReportStore:d.a.shape({showAttachReport:d.a.bool.isRequired,attachReport:d.a.bool.isRequired,shareMode:d.a.string.isRequired,attachmentCount:d.a.number.isRequired,toggleAttachReport:d.a.func.isRequired,openEditAttachments:d.a.func.isRequired,openPickReportOutput:d.a.func.isRequired,reportVersions:d.a.object}),inProgress:d.a.bool.isRequired,isLinkEmpty:d.a.bool.isRequired,nls:d.a.func.isRequired},i=c))||i;!function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(O,"cssClassName","/usr/src/src/react/collaboration-ui/panels/PanelControls.js"),__REACT_HOT_LOADER__.register(w,"PanelControls","/usr/src/src/react/collaboration-ui/panels/PanelControls.js"))}()},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([60],{"3865314c5959606874d4":function(t,n){t.exports=e},"4f46bb157c57d1d93c34":function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"warning--alt_32_v7",use:"warning--alt_32_v7-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},a617e595f6331ab5d4fa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("4f46bb157c57d1d93c34"));t.default=a.a}},["a617e595f6331ab5d4fa"])}(n(11))}("undefined"!=typeof self&&self)},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([1058],{"1354ceb8182eaf103bb5":function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"information_32_v7",use:"information_32_v7-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},"3865314c5959606874d4":function(t,n){t.exports=e},"8bc7e3be0a35c2c98374":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("1354ceb8182eaf103bb5"));t.default=a.a}},["8bc7e3be0a35c2c98374"])}(n(11))}("undefined"!=typeof self&&self)},function(e,t,n){"use strict";var r=n(9),a=(n.n(r),n(67)),o=n(38),i=Object.freeze({HTML:"html",CSV:"csv",PDF:"pdf",XML:"xml",spreadsheetML:"spreadsheetML",xlsxData:"xlsxData"}),s=r.types.model("ReportOutput",{id:r.types.identifier,burstKey:r.types.maybeNull(r.types.string),format:r.types.string,locale:r.types.string,localeLabel:r.types.string,modificationTime:r.types.string}).views(function(e){return{get hasBurstKey(){return!!e.burstKey},get burstKeyOption(){return{value:e.burstKey,label:e.burstKey}},get formatOption(){return e.format in i?{value:e.format,label:e.formatLabel,disabled:"HTML"===e.format}:null},get localeOption(){return{value:e.locale,label:e.localeLabel}},get detailsLabel(){return e.hasBurstKey?e.burstKey+", "+e.formatLabel+", "+e.localeLabel:e.formatLabel+", "+e.localeLabel},get formatLabel(){return Object(r.getEnv)(e).nls(i[e.format])},get parentVersion(){return o.a.getParentOfType(e,"ReportVersion")},getParentCreationTime:function(){return e.parentVersion.creationTime},buildAttachment:function(t,n){var o=Object(r.getEnv)(e).dateTimeUtils.formatDateTime(e.getParentCreationTime(),"short"),i=e.hasBurstKey?t+" - "+e.burstKey+" - "+o:t+" - "+o;return n&&(i=i+" ("+e.locale.toUpperCase()+")"),a.a.buildAttachmentForOutput(i,e)}}});t.a=s,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(i,"OUTPUT_FORMATS","/usr/src/src/react/collaboration-ui/models/attachments/ReportOutput.js"),__REACT_HOT_LOADER__.register(s,"default","/usr/src/src/react/collaboration-ui/models/attachments/ReportOutput.js"))}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return u});var a=n(37),o=n.n(a),i=function(){function e(e,t){for(var n=0;n");return e})}function c(e,t){var n=t.length>1;return t.map(function(t){var r=void 0;return U.some(function(a){var o=e[a];return o&&o.some(function(e){return e.id===t.value&&(r=n?e.user:e.id),!!r}),!!r}),r||t.value})}function l(e,t){var n=t.toLowerCase();return e.label.toLowerCase().includes(n)||e.subLabel&&e.subLabel.toLowerCase().includes(n)}function u(e,t){return e.sort(function(e,n){var r=e.label.toLowerCase().indexOf(t),a=n.label.toLowerCase().indexOf(t);return 0===r&&0!==a?-1:0===a&&0!==r?1:e.label.localeCompare(n.label)})}function p(e){return"@"===e[0]||"#"===e[0]?e.slice(1):e}n.d(t,"a",function(){return W});var d,_,f,h,m=n(2),y=n.n(m),g=n(39),v=n(3),b=n.n(v),E=n(5),O=(n.n(E),n(4)),w=(n.n(O),n(41)),R=n.n(w),A=n(103),T=n.n(A),x=n(158),k=n.n(x),C=n(23),S=n.n(C),j=n(60),L=n(187),D=n.n(L),I=n(188),P=n.n(I),M=n(189),N=n.n(M),H=n(190),z=n.n(H),F=n(63),B=function(){function e(e,t){for(var n=0;n1&&(n=n.filter(function(t){return t.value!==e.props.connector.me.user_id}));var r=this.props.imageStore.isImageEnabled();r||this.imageResolve();var a=this.props.shareStore.link;return this.imageReady.then(function(){var e=this;return this.props.shareStore.send({type:"slack",data:{recipients:c(this.state.conversations,n),message:s(this.state.conversations.ims,this.state.message),url:this.props.shareStore.enabledLink&&this.state.isLinkEnabled&&a&&a.shareUrl?a.shareUrl:null,includeImage:r,dataUrl:r&&this.props.imageStore.imageLoaded?this.imageRef.exportImage():null,imageLabel:this.props.imageStore.imageLabel},connector:this.props.connector}).then(function(){e.props.goBack(),e.reset()}).then(t,t)}.bind(this))}return Promise.resolve()}},{key:"__cancelHandler__REACT_HOT_LOADER__",value:function(){this.props.goBack().then(this.props.cancel).then(this.reset)}},{key:"__onTagAdded__REACT_HOT_LOADER__",value:function(e){if(this._isGroup(e.type)){var t=this.state.conversations.mpims.find(function(t){return t.id===e.value});this.parsedUsers=t.users.map(function(e){var t=e.id,n=e.name,r=e.displayName,a=e.image,o={value:t,label:n};return r&&(o.subLabel=r),a&&(o.image=a),o})}}},{key:"__onTagsChanged__REACT_HOT_LOADER__",value:function(e){var t=void 0;this.parsedUsers?(t=T()(this.state.recipients),this.parsedUsers.forEach(function(e){t.some(function(t){return t.value===e.value})||t.push(e)}),this.parsedUsers=null):t=e,this.userInput="",this.setState({recipients:t,selectedTags:this.recipientsToTags(t),choices:[]},this.isRecipientsValid)}},{key:"_constructToolTip",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.nls("label_no_display_name");return y.a.createElement(O.FlexItem,null,y.a.createElement("img",{src:e,className:"tooltip-avatar",alt:""}),y.a.createElement(O.HSpacer,{size:"1"}),y.a.createElement("span",null,t))}},{key:"_constructLabel",value:function(e){var t=e.label,n=e.subLabel,r=e.image;return n||r?y.a.createElement(O.Tooltip,{orient:"top",title:this._constructToolTip(r,n)},y.a.createElement("span",null,t)):y.a.createElement("span",null,t)}},{key:"recipientsToTags",value:function(e){var t=this;return e.map(function(e){return{value:e.value,label:t._constructLabel(e)}})}},{key:"buildChoices",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return U.forEach(function(n){var r=(e[n]||[]).map(function(e){var t=e.user,r=e.id,a=e.name,o=e.displayName,i=e.image,s=e.users;!a&&s&&(a=s.reduce(function(e,t){return 0===e.length?t.name:e+", "+t.name},""));var c={value:t||r,label:a,type:n};return t&&(c.type="user",o&&(c.subLabel=o),i&&(c.image=i)),q[n]&&(c.iconId=q[n]),c});t[n]=r}),t}},{key:"_proccessSearchResults",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){var t=e.id,n=e.name,r=e.displayName,a=e.image,o={value:t,label:n,type:"user"};return r&&(o.subLabel=r),a&&(o.image=a),o})}},{key:"_isChannel",value:function(e){return"channels"===e||"pvtchannels"===e}},{key:"_isGroup",value:function(e){return"mpims"===e}},{key:"_isUser",value:function(e){return"user"===e}},{key:"___getChoices__REACT_HOT_LOADER__",value:function(e){var t=this;return 0===this.state.recipients.length?[].concat(r(e),r(this.initialChoices.mpims),r(this.initialChoices.channels),r(this.initialChoices.pvtchannels)):this.state.recipients.some(function(e){return t._isChannel(e.type)||e.value===t.slackbot.user||e.value===t.props.connector.me.user_id})?[]:e.filter(function(e){return e.value!==t.slackbot.user&&e.value!==t.props.connector.me.user_id})}},{key:"___convertInputToTag__REACT_HOT_LOADER__",value:function(e){var t=p(this.userInput).toLowerCase(),n=this.state.choices.find(function(e){return t===e.label.toLowerCase().trim()});if(n&&!this.state.recipients.some(function(e){return n.value===e.value})){var a=[].concat(r(this.state.recipients),[n]);this.setState({recipients:a,selectedTags:this.recipientsToTags(a),choices:[]},this.isRecipientsValid),e.target.value="",this.userInput=""}}},{key:"__tagHandler__REACT_HOT_LOADER__",value:function(e){var t={186:";",188:","};this.userInput=e.target.value?e.target.value.replace(/[,;]/g,"").trim().toLowerCase():"";var n="Unidentified"===e.key?t[e.which||e.keyCode]:e.key;","===n||";"===n||"Enter"===n||"blur"===e.type?this._convertInputToTag(e):-1===V.indexOf(n)&&(this.setState({searchInProgress:!0}),this.getUserSuggestionDebounced(e.target.value))}},{key:"__getUserSuggestion__REACT_HOT_LOADER__",value:function(e){var t=this,n=p(this.userInput);if("#"!==e[0]&&n)this.props.connector.getUsers(n).then(function(e){var n=t._proccessSearchResults(e);t.setState({searchInProgress:!1,searchResults:n,choices:t._getChoices(n)})}).catch(function(){t.setState({searchInProgress:!1,searchResults:[],choices:[]})});else{var r="#"===e[0]?this._getChoices([]):[];this.setState({searchInProgress:!1,searchResults:[],choices:r})}}},{key:"__reset__REACT_HOT_LOADER__",value:function(){this.setState(this.initialState),this.props.parentReset()}},{key:"__toggleLink__REACT_HOT_LOADER__",value:function(){var e=!this.state.isLinkEnabled;this.setState({isLinkEnabled:e,messageValidation:this._getMessageValidation(e)})}},{key:"__isRecipientsValid__REACT_HOT_LOADER__",value:function(){var e=this,t=this.state.recipients,n=this.userInput.trim(),r=!1,a=K,o={};if(0===t.length&&""!==n)r=!0,a="recipient_validation_not_found";else if(0===t.length||!t[0]||0!==t.length&&""!==n){if(r=!0,0!==t.length||""!==n){var i=t.some(function(t){return t.value===e.slackbot.user});a=i?"recipient_validation_slackbot_cant_join":"recipient_validation_incorrect"}}else t.length>this.props.connector.getMaxRecipientUsers()&&(r=!0,a="recipient_validation_too_many_recipients",o={maxRecipients:this.props.connector.getMaxRecipientUsers()});var s={invalid:r,errorID:a,errorText:this.props.nls(a,o)};return this.setState({recipientsValidation:s}),!s.invalid}},{key:"__isMessageValid__REACT_HOT_LOADER__",value:function(){var e=this._getMessageValidation(this.state.isLinkEnabled);return this.state.message&&this.state.message.trim()||(e.invalid=!this.props.shareStore.enabledLink||!this.state.isLinkEnabled),this.setState({messageValidation:e}),!e.invalid}},{key:"isValid",value:function(){var e=!0;return this.isMessageValid()||(e=!1,this.messageAreaRef.current&&this.messageAreaRef.current.focus()),this.isRecipientsValid()||(e=!1,this._moveFocusToRecipientArea()),e}},{key:"_moveFocusToRecipientArea",value:function(){this.recipientAreaRef.current&&this.recipientAreaRef.current.focus()}},{key:"___sortAndFilter__REACT_HOT_LOADER__",value:function(e,t){var n=this;t=t.toLowerCase();var a=[],o=[],i=[];e.forEach(function(e){n._isUser(e.type)?a.push(e):n._isChannel(e.type)?i.push(e):o.push(e)});var s=u(o.filter(function(e){return l(e,t)},t)),c=u(i.filter(function(e){return l(e,t)}),t);return[].concat(a,r(s),r(c))}},{key:"__filter__REACT_HOT_LOADER__",value:function(e){var t=this,n=p(e.value);if("@"===e.value[0]){var r=e.values.filter(function(e){return t._isUser(e.type)});return this._sortAndFilter(r,n).slice(0,15)}if("#"===e.value[0]){var a=e.values.filter(function(e){return t._isChannel(e.type)});return this._sortAndFilter(a,n)}return this._sortAndFilter(e.values,n)}},{key:"__listItemContentRenderer__REACT_HOT_LOADER__",value:function(e,t){var n=t.options,r=t.truncated,a=t.textDir,o=n[e.index],i=o.value,s=o.label,c=o.subLabel,l=o.title,u=o.iconId,p=o.image,d=o.type;return y.a.createElement(O.FlexItem,{shrink:!0,grow:!0,basis:"auto",className:"dropDown__menuItemInner","data-recipient-type":d},y.a.createElement(O.FlexLayout,null,y.a.createElement(O.FlexItem,{className:"listItem-icon"},p?y.a.createElement("img",{src:p,className:"slack-avatar",alt:""}):y.a.createElement(O.SVGIcon,{iconId:u})),y.a.createElement(O.FlexItem,null,y.a.createElement(O.Label,{ellipsis:r,label:s,className:"listItem-label "+(c?"width-partial":"width-full"),textDir:a,truncatedTextExtraOptions:{title:l}}),i===this.props.connector.me.user_id&&y.a.createElement(O.Label,{ellipsis:r,label:this.nls("label_you"),className:"listItem-meLabel",textDir:a,truncatedTextExtraOptions:{title:l}}),c&&y.a.createElement(O.Label,{ellipsis:r,label:c,className:"listItem-subLabel",textDir:a,truncatedTextExtraOptions:{title:l}}))))}},{key:"__onKeyDown__REACT_HOT_LOADER__",value:function(e){if("Escape"===e.key)return void(!!this.recipientAreaRef.current&&this.recipientAreaRef.current.state.open&&e.stopPropagation())}},{key:"render",value:function(){var e=this,t=this.props.shareStore.enabledLink,n=this.props.shareStore.isLinkShareable(this.props.shareStore.link),r=this._id;return y.a.createElement(O.FlexLayout,{className:G,direction:"row"},y.a.createElement(O.FlexItem,{gutter:0,grow:!0,shrink:!0,className:"editor"},this.props.imageStore.isImageEnabled()?y.a.createElement(j.a,{key:"imageView",nls:this.props.nls,ref:function(t){return e.imageRef=t},imageResolve:this.imageResolve,disabled:this.state.inProgress}):null),y.a.createElement(O.FlexItem,{basis:"400px",grow:!1,shrink:!1,relative:!0,style:{"flex-basis":this.props.imageStore.isMaximized?"0px":"400px",transition:"flex-basis 1s"}},y.a.createElement(g.a,{in:!this.props.imageStore.isMaximized,timeout:1e3},y.a.createElement(O.FlexLayout,{direction:"column",className:"ba-collab-fill-space",minWidth:"400px"},y.a.createElement(O.FlexItem,{gutter:[3,2]},y.a.createElement(O.BackButton,{buttonType:"nav_pane",onClick:this.props.goBack,title:this.nls("button_back"),disabled:this.state.inProgress})),y.a.createElement(O.FlexItem,{grow:!0,relative:!0,overflow:"auto"},y.a.createElement(O.FlexLayout,{direction:"column"},y.a.createElement(O.FlexItem,{gutter:[0,3]},y.a.createElement(O.Label,{className:"label-share-slack",label:this.nls("label_share_with_slack_single",{workspace:this.props.connector.getLabel()})})),y.a.createElement(O.FlexItem,{gutter:[3,3,0,3]},y.a.createElement(O.Label,{label:this.nls("recipient"),type:"caption",htmlFor:r+"recipient"}),y.a.createElement(O.TagInput,{id:r+"recipient",placeholder:this.nls("recipient_placeholder"),onBlur:this.tagHandler,onKeyUp:this.tagHandler,onKeyDown:this.onKeyDown,validationErrorText:this.state.recipientsValidation.errorText,hasValidationError:this.state.recipientsValidation.invalid,selectedTags:this.state.selectedTags,tagOptions:this.state.choices,listItemContentRenderer:this.listItemContentRenderer,onTagAdded:this.onTagAdded,onTagsChanged:this.onTagsChanged,ref:this.recipientAreaRef,domNodeToAttachTo:!1,customFilter:this.filter,disabled:this.state.inProgress,"data-tid":"taginput_recipient","data-errid":this.state.recipientsValidation.invalid?this.state.recipientsValidation.errorID:null})),y.a.createElement(O.FlexItem,{gutter:[0,3,0,3],style:{visibility:this.state.conversations?"hidden":"visible"}},y.a.createElement(O.ProgressIndicator,{size:"large",variant:"bar"})),y.a.createElement(O.FlexItem,{gutter:[2.5,3,0,3]},y.a.createElement(O.Label,{label:this.nls("message"),type:"caption",htmlFor:r+"message"}),y.a.createElement(O.TextArea,{id:r+"message",placeholder:this.nls("message_placeholder"),value:this.state.message,onChange:function(t){return e.setState({message:t})},rows:4,validationErrorText:this.state.messageValidation.errorText,hasValidationError:this.state.messageValidation.invalid,ref:this.messageAreaRef,"data-tid":"textarea_message",disabled:this.state.inProgress,className:"vertical-resize"})),y.a.createElement(F.a,{isLinkVisible:t,isLinkEmpty:this.props.shareStore.isLinkEmpty,isLinkEnabled:this.state.isLinkEnabled,isLinkShareable:n,isDirty:this.props.shareStore.isDirty,toggleLink:this.toggleLink,hasImage:this.props.imageStore.showIncludeImage,isImageEnabled:this.props.imageStore.includeImage,toggleImage:this.props.imageStore.toggleIncludeImage,attachReportStore:null,inProgress:this.state.inProgress,nls:this.nls}),y.a.createElement(O.FlexItem,{gutter:[2,3,0,3],style:{visibility:this.state.inProgress?"visible":"hidden"}},y.a.createElement(O.ProgressIndicator,{size:"large",variant:"bar"})))),y.a.createElement(O.FlexItem,{gutter:3,textAlign:"right"},y.a.createElement(O.Button,{label:this.nls("button_send"),variant:"solid",intent:"primary","data-tid":"button_send",onClick:this.sendHandler,disabled:this.state.inProgress}),y.a.createElement(O.Button,{label:this.nls("button_cancel"),variant:"frame",intent:"primary","data-tid":"button_cancel",onClick:this.cancelHandler,disabled:this.state.inProgress}))))))}}]),t}(m.Component),f.propTypes={shareStore:b.a.shape({isLinkShareable:b.a.func.isRequired,link:b.a.shape({shareUrl:b.a.string,embedUrl:b.a.string}).isRequired,send:b.a.func.isRequired,enabledLink:b.a.bool.isRequired,instrument:b.a.func.isRequired,isLinkEmpty:b.a.func.isRequired,isDirty:b.a.bool.isRequired,canCaptureImage:b.a.func.isRequired}).isRequired,imageStore:b.a.shape({showIncludeImage:b.a.bool.isRequired,includeImage:b.a.bool.isRequired,toggleIncludeImage:b.a.func.isRequired,isImageEnabled:b.a.func.isRequired,imageLoaded:b.a.bool.isRequired,imageLabel:b.a.string,hasRefreshImage:b.a.func.isRequired,isMaximized:b.a.bool.isRequired}).isRequired,nls:b.a.func.isRequired,connector:b.a.object.isRequired,goBack:b.a.func.isRequired,resizePanel:b.a.func.isRequired,cancel:b.a.func.isRequired,parentReset:b.a.func.isRequired},_=h))||_)||_;!function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(15,"USERS_DISPLAY_SIZE","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register("user","USER_TYPE","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(U,"CONVERSATIONS","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(q,"RECIPIENT_ICON","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(V,"ARROWS_PRESSED","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(G,"cssClassName","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register("recipient_validation_incorrect","recipient_validation_incorrect","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(K,"recipient_validation_mandatory","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register("recipient_validation_not_found","recipient_validation_not_found","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register("recipient_validation_slackbot_cant_join","recipient_validation_slackbot_cant_join","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register("recipient_validation_too_many_recipients","recipient_validation_too_many_recipients","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(s,"bindUsers","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(c,"bindConversations","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(l,"filterChoice","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(u,"sortChoices","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(p,"trimLeadingCharacters","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"),__REACT_HOT_LOADER__.register(W,"SlackPanel","/usr/src/src/react/collaboration-ui/panels/Slack/SlackPanel.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){return a=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(){}t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(3)),c=r(n(2)),l=r(n(24)),u=n(78),p=(n(40),"unmounted");t.UNMOUNTED=p;var d="exited";t.EXITED=d;var _="entering";t.ENTERING=_;var f="entered";t.ENTERED=f,t.EXITING="exiting";var h=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var a,o=n.transitionGroup,i=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(a=d,r.appearStatus=_):a=f:a=t.unmountOnExit||t.mountOnEnter?p:d,r.state={status:a},r.nextCallback=null,r}o(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===p?{status:d}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==_&&n!==f&&(t=_):n!==_&&n!==f||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=l.default.findDOMNode(this);t===_?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:p})},n.performEnter=function(e,t){var n=this,r=this.props.enter,a=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),i=a?o.appear:o.enter;if(!t&&!r)return void this.safeSetState({status:f},function(){n.props.onEntered(e)});this.props.onEnter(e,a),this.safeSetState({status:_},function(){n.props.onEntering(e,a),n.onTransitionEnd(e,i,function(){n.safeSetState({status:f},function(){n.props.onEntered(e,a)})})})},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:d},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:d},function(){t.props.onExited(e)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;if(!e||r)return void setTimeout(this.nextCallback,0);this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var e=this.state.status;if(e===p)return null;var t=this.props,n=t.children,r=a(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var o=c.default.Children.only(n);return c.default.cloneElement(o,r)},t}(c.default.Component);h.contextTypes={transitionGroup:s.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:i,onEntering:i,onEntered:i,onExit:i,onExiting:i,onExited:i},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var m=(0,u.polyfill)(h);t.default=m},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function a(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==s){var c=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=a),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return i}),r.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){var r=n(14),a=n(86),o=n(17),i=a(function(e,t){r(t,o(t),e)});e.exports=i},function(e,t,n){function r(e){return!(!i(e)||o(e))&&(a(e)?f:l).test(s(e))}var a=n(45),o=n(83),i=n(10),s=n(47),c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,p=Object.prototype,d=u.toString,_=p.hasOwnProperty,f=RegExp("^"+d.call(_).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){function r(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var a=s.call(e);return r&&(t?e[c]=n:delete e[c]),a}var a=n(16),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,c=a?a.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return a.call(e)}var r=Object.prototype,a=r.toString;e.exports=n},function(e,t,n){function r(e){return!!o&&o in e}var a=n(84),o=function(){var e=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,n){var r=n(6),a=r["__core-js_shared__"];e.exports=a},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t,n){function r(e){return a(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,a=16,o=Date.now;e.exports=n},function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?o(n)&&i(t,n.length):"string"==r&&t in n)&&a(n[t],e)}var a=n(26),o=n(27),i=n(50),s=n(10);e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n-1}var a=n(20);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var a=n(20);e.exports=r},function(e,t,n){function r(){this.__data__=new a,this.size=0}var a=n(19);e.exports=r},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof a){var r=n.__data__;if(!o||r.length=t||n<0||T&&r>=b}function _(){var e=o();if(d(e))return f(e);O=setTimeout(_,p(e))}function f(e){return O=void 0,x&&g?r(e):(g=v=void 0,E)}function h(){void 0!==O&&clearTimeout(O),R=0,g=w=v=O=void 0}function m(){return void 0===O?E:f(o())}function y(){var e=o(),n=d(e);if(g=arguments,v=this,w=e,n){if(void 0===O)return u(w);if(T)return clearTimeout(O),O=setTimeout(_,t),r(w)}return void 0===O&&(O=setTimeout(_,t)),E}var g,v,b,E,O,w,R=0,A=!1,T=!1,x=!0;if("function"!=typeof e)throw new TypeError(s);return t=i(t)||0,a(n)&&(A=!!n.leading,T="maxWait"in n,b=T?c(i(n.maxWait)||0,t):b,x="trailing"in n?!!n.trailing:x),y.cancel=h,y.flush=m,y}var a=n(10),o=n(159),i=n(160),s="Expected a function",c=Math.max,l=Math.min;e.exports=r},function(e,t,n){var r=n(6),a=function(){return r.Date.now()};e.exports=a},function(e,t,n){function r(e){if("number"==typeof e)return e;if(i(e))return s;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=l.test(e);return n||u.test(e)?p(e.slice(2),n?2:8):c.test(e)?s:+e}var a=n(161),o=n(10),i=n(59),s=NaN,c=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,p=parseInt;e.exports=r},function(e,t,n){function r(e){return e?e.slice(0,a(e)+1).replace(o,""):e}var a=n(162),o=/^\s+/;e.exports=r},function(e,t){function n(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}var r=/\s/;e.exports=n},function(e,t,n){function r(e){return null==e?"":a(e)}var a=n(164);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e)return e;if(i(e))return o(e,r)+"";if(s(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-c?"-0":t}var a=n(16),o=n(165),i=n(18),s=n(59),c=1/0,l=a?a.prototype:void 0,u=l?l.toString:void 0;e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n'});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"information_32",use:"information_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"text--creation_32",use:"text--creation_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"markup-arrow_32",use:"markup-arrow_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"markup-pen_32",use:"markup-pen_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"markup-rectangle_32",use:"markup-rectangle_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"crop_32",use:"crop_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"delete",use:"delete-usage",viewBox:"0 0 32 32",content:'trash-can'});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"undo_32",use:"undo_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"redo_32",use:"redo_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"maximize_32",use:"maximize_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"minimize_32",use:"minimize_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"chevron-down_16",use:"chevron-down_16-usage",viewBox:"0 0 16 16",content:''});i.a.add(s),t.a=s},function(e,t,n){var r=n(181);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,'.ba-collab-color-button .color{display:inline-block;padding:2px;line-height:8px}.ba-collab-color-button .color.selected{border:1px solid;border-color:#a8c0f3;border-color:hsla(var(--focus-h,220.8),var(--focus-s,75.75758%),var(--focus-l,80.58824%),1)}.ba-collab-color-button .color>div{display:inline-block;min-width:16px;min-height:16px}.ba-collab-color-button .color .fill-white{border:1px solid;border-color:#e0e0e0;border-color:hsla(var(--ui-03-h,0),var(--ui-03-s,0%),var(--ui-03-l,87.84314%),1);background-color:#fff;background-color:hsla(var(--ui-01-h,0),var(--ui-01-s,0%),var(--ui-01-l,100%),1)}.ba-collab-color-button .color .fill-black{background-color:#161616;background-color:hsla(var(--ui-05-h,0),var(--ui-05-s,0%),var(--ui-05-l,8.62745%),1)}.ba-collab-color-button .color .fill-red{background-color:#e62325}.ba-collab-color-button .color .fill-yellow{background-color:#fed500}.ba-collab-color-button .color .fill-blue{background-color:#5392ff}.ba-collab-color-button .color .fill-green{background-color:#34bc6e}.ba-collab-color-button .color .border-white{border:3px double #949394}.ba-collab-color-button .color .border-black{border:3px solid;border-color:#161616;border-color:hsla(var(--ui-05-h,0),var(--ui-05-s,0%),var(--ui-05-l,8.62745%),1)}.ba-collab-color-button .color .border-red{border:3px solid #e62325}.ba-collab-color-button .color .border-yellow{border:3px solid #fed500}.ba-collab-color-button .color .border-blue{border:3px solid #5392ff}.ba-collab-color-button .color .border-green{border:3px solid #34bc6e}.ba-collab-color-button .color .border-none,.ba-collab-color-button .color .fill-none{background-color:#f4f4f4;background-color:hsla(var(--ui-02-h,0),var(--ui-02-s,0%),var(--ui-02-l,95.68627%),1);position:relative;overflow:hidden}.ba-collab-color-button .color .border-none:after,.ba-collab-color-button .color .fill-none:after{content:"";position:absolute;border-left:1px solid #e62325;transform:rotate(45deg);height:25px;width:25px;display:inline-block;top:4px;left:4px}.ba-collab-color-button .drop-down{vertical-align:baseline}.ba-collab-color-button .toolbar-float{position:absolute;white-space:nowrap}',""]),t.locals={cssClassName:'"ba-collab-color-button"'}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var a=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(a))return e;var o;return o=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"undo_16",use:"undo_16-usage",viewBox:"0 0 16 16",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"redo_16",use:"redo_16-usage",viewBox:"0 0 16 16",content:''});i.a.add(s),t.a=s},function(e,t,n){var r=n(186);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-collab-image-view{height:100%}.ba-collab-image-view .center{text-align:center;display:flex;margin-bottom:32px;height:100%}.ba-collab-image-view .middle{position:absolute;top:50%;left:50%;margin-right:-50%;transform:translate(-50%,-50%)}.ba-collab-image-view .action{display:inline-block;min-height:32px;max-height:32px;line-height:32px}.ba-collab-image-view .action:not(:first-child){padding-left:16px}.ba-collab-image-view .transformation-control{position:absolute;transform-origin:0 0}.ba-collab-image-view .screenshot{flex:1 1 0px;position:relative;margin:0 32px 32px;border:8px solid;border-color:#e0e0e0;border-color:hsla(var(--ui-03-h,0),var(--ui-03-s,0%),var(--ui-03-l,87.84314%),1);overflow:scroll;height:100%}.ba-collab-image-view .screenshot:focus{outline:0;border:8px solid;border-color:#a8c0f3;border-color:hsla(var(--focus-h,220.8),var(--focus-s,75.75758%),var(--focus-l,80.58824%),1)}.ba-collab-image-view .info{width:256px;height:224px;background-color:#fff;background-color:hsla(var(--ui-01-h,0),var(--ui-01-s,0%),var(--ui-01-l,100%),1)}.ba-collab-image-view .info .error{fill:#f1c21b;fill:hsla(var(--support-03-h,46.82243),var(--support-03-s,88.42975%),var(--support-03-l,52.54902%),1);position:absolute;top:24px;left:40px}.ba-collab-image-view .toolbar-border{border-right:1px solid;border-right-color:#e0e0e0;border-right-color:hsla(var(--ui-03-h,0),var(--ui-03-s,0%),var(--ui-03-l,87.84314%),1);height:32px}.ba-collab-image-view .ba-common-toolbar{display:inline-block;margin:0;border:1px solid;border-color:#e0e0e0;border-color:hsla(var(--ui-03-h,0),var(--ui-03-s,0%),var(--ui-03-l,87.84314%),1);background-color:#fff;background-color:hsla(var(--ui-01-h,0),var(--ui-01-s,0%),var(--ui-01-l,100%),1)}.ba-collab-image-view .ba-common-toolbar .ba-common-toolbar__item{margin-bottom:0;display:inline-block}.ba-collab-image-view .ba-common-toolbar .ba-common-toolbar__item button{min-width:32px;min-height:32px;max-height:32px;padding:4px}.ba-collab-image-view .ba-common-toolbar .ba-common-toolbar__item button svg use{color:#161616;color:hsla(var(--icon-01-h,0),var(--icon-01-s,0%),var(--icon-01-l,8.62745%),1);fill:#161616;fill:hsla(var(--icon-01-h,0),var(--icon-01-s,0%),var(--icon-01-l,8.62745%),1)}.ba-collab-image-view a{font-weight:500}",""]),t.locals={cssClassName:'"ba-collab-image-view"'}},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([807],{"0bbc1beefe63f051e062":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("24b994bee80ee3d7ced9"));t.default=a.a},"24b994bee80ee3d7ced9":function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"numeric-identifier_16_v7",use:"numeric-identifier_16_v7-usage",viewBox:"0 0 16 16",content:''});i.a.add(s),t.a=s},"3865314c5959606874d4":function(t,n){t.exports=e}},["0bbc1beefe63f051e062"])}(n(11))}("undefined"!=typeof self&&self)},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([953],{"06034dba7b9b6868915c":function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"locked_32_v7",use:"locked_32_v7-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},"3865314c5959606874d4":function(t,n){t.exports=e},"52701d977590131b0b49":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("06034dba7b9b6868915c"));t.default=a.a}},["52701d977590131b0b49"])}(n(11))}("undefined"!=typeof self&&self)},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([1272],{"3865314c5959606874d4":function(t,n){t.exports=e},d04cd06d75ca471b2de6:function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"events_32_v7",use:"events_32_v7-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},ff7527a27f7f83870427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("d04cd06d75ca471b2de6"));t.default=a.a}},["ff7527a27f7f83870427"])}(n(11))}("undefined"!=typeof self&&self)},function(e,t,n){var r=n(191);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-collab-slack-panel .editor{overflow:hidden;border-right:1px solid;border-right-color:#e0e0e0;border-right-color:hsla(var(--ui-03-h,0),var(--ui-03-s,0%),var(--ui-03-l,87.84314%),1);background-color:#f4f4f4;background-color:hsla(var(--ui-02-h,0),var(--ui-02-s,0%),var(--ui-02-l,95.68627%),1)}.ba-collab-slack-panel .label-share-slack{font-size:16px;font-weight:700}.ba-collab-slack-panel>*{transform:translateZ(0)}.ba-collab-slack-panel .dropDown__menuItemInner{color:#161616;color:hsla(var(--text-01-h,0),var(--text-01-s,0%),var(--text-01-l,8.62745%),1);font-size:.875rem;line-height:1.125rem}.ba-collab-slack-panel .dropDown__menuItemInner .listItem-label{margin-left:8px;font-weight:500}.ba-collab-slack-panel .dropDown__menuItemInner .listItem-label.width-full{max-width:300px}.ba-collab-slack-panel .dropDown__menuItemInner .listItem-label.width-partial{max-width:180px}.ba-collab-slack-panel .dropDown__menuItemInner .listItem-subLabel{margin-left:8px;font-weight:400;max-width:120px}.ba-collab-slack-panel .dropDown__menuItemInner .listItem-meLabel{margin-left:8px;font-weight:400}.ba-collab-slack-panel .dropDown__menuItemInner .listItem-icon{height:16px;width:16px}.ba-collab-slack-panel .dropDown__menuItemInner .slack-avatar{max-width:100%;height:auto;border-radius:50%}.ba-collab-slack-panel .vertical-resize textarea{resize:vertical}.tooltip-avatar{width:16px;height:16px;border-radius:50%}",""]),t.locals={cssClassName:'"ba-collab-slack-panel"'}},function(e,t,n){var r=n(193);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-collab-panel-controls .info-icon,.ba-collab-panel-controls .warning-icon{margin:0 0 0 8px}.ba-collab-panel-controls .attach-report-controls{font-size:.75rem}",""]),t.locals={cssClassName:'"ba-collab-panel-controls"'}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return y});var i,s,c,l,u=n(2),p=n.n(u),d=n(3),_=n.n(d),f=n(5),h=(n.n(f),n(4)),m=(n.n(h),function(){function e(e,t){for(var n=0;n0?Promise.resolve(e.channels):this.props.connector.getTeamChannels(e).then(function(t){return e.channels=t,e.channels})}},{key:"render",value:function(){var e=this;return p.a.createElement(h.FlexLayout,{direction:"column"},p.a.createElement(h.FlexItem,{gutter:[2,2,0,2]},p.a.createElement(h.BackButton,{buttonType:"nav_pane",onClick:this.props.goBack})),p.a.createElement(h.FlexItem,{gutter:[2,2,0,2]},p.a.createElement(h.Label,{label:this.nls("label_share_with_msteams")})),p.a.createElement(h.FlexItem,{gutter:[2,2,1,2]},p.a.createElement(h.Label,{label:this.nls("team"),type:"caption"}),p.a.createElement(h.AutoCompleteInput,{fullWidth:!0,value:this.state.team,values:this.state.teamNames,placeholder:this.nls("team_placeholder"),onChange:function(t){return e.setState({team:t,channel:"",channelNames:[]})},onBlur:this.teamBlurHandler,validationErrorText:this.state.teamErrorText,hasValidationError:this.state.invalidTeam})),p.a.createElement(h.FlexItem,{gutter:[2,2,1,2]},p.a.createElement(h.Label,{label:this.nls("channel"),type:"caption"}),p.a.createElement(h.AutoCompleteInput,{fullWidth:!0,value:this.state.channel,values:this.state.channelNames,placeholder:this.nls("channel_placeholder"),onChange:function(t){return e.setState({channel:t})},validationErrorText:this.state.channelErrorText,hasValidationError:this.state.invalidChannel})),p.a.createElement(h.FlexItem,{gutter:[2,2,1,2]},p.a.createElement(h.Label,{label:this.nls("message"),type:"caption"}),p.a.createElement(h.TextArea,{placeholder:this.nls("message_placeholder"),rows:4,value:this.state.message,onChange:function(t){return e.setState({message:t})},validationErrorText:this.state.messageErrorText,hasValidationError:this.state.invalidMessage})),p.a.createElement(h.FlexItem,{gutter:[2,2,0,2]},p.a.createElement(h.ToggleSwitch,{label:this.nls("toggle_include_image"),onChange:function(){return e.setState({includeImage:!e.state.includeImage})},checked:!!this.state.includeImage})),p.a.createElement(h.FlexItem,{gutter:[2,2,0,2]},p.a.createElement(h.Button,{label:this.nls("button_send"),variant:"solid",intent:"primary",onClick:this.sendHandler}),p.a.createElement(h.Button,{label:this.nls("button_cancel"),variant:"frame",intent:"primary",onClick:this.cancelHandler})))}},{key:"validateForm",value:function(){return this.validateTeam()&&this.validateChannel()&&this.validateMessage()}},{key:"validateTeam",value:function(){if(!this.state.team)return this.setState({invalidTeam:!0,teamErrorText:this.nls("team_validation_empty")}),!1;var e=this.findByDisplayName(this.joinedTeams,this.state.team);if(!e)return this.setState({invalidTeam:!0,teamErrorText:this.nls("team_validation_invalid")}),!1;var t=e.channels;return Array.isArray(t)&&0!==t.length?(this.setState({invalidTeam:!1}),!0):(this.setState({invalidTeam:!0,teamErrorText:this.nls("team_validation_missing_channels")}),!1)}},{key:"validateChannel",value:function(){if(!this.state.channel)return this.setState({invalidChannel:!0,channelErrorText:this.nls("channel_validation_empty")}),!1;var e=this.findByDisplayName(this.joinedTeams,this.state.team),t=e&&e.channels;return this.findByDisplayName(t,this.state.channel)?(this.setState({invalidChannel:!1}),!0):(this.setState({invalidChannel:!0,channelErrorText:this.nls("channel_validation_invalid")}),!1)}},{key:"validateMessage",value:function(){return this.state.message?(this.setState({invalidMessage:!1}),!0):(this.setState({invalidMessage:!0,messageErrorText:this.nls("message_validation_mandatory")}),!1)}},{key:"getDisplayNames",value:function(e){return e.map(function(e){return e.displayName})}},{key:"findByDisplayName",value:function(e,t){return Array.isArray(e)?e.find(function(e){return e.displayName===t}):null}}]),t}(u.Component),c.propTypes={shareStore:_.a.shape({send:_.a.func.isRequired}).isRequired,nls:_.a.func.isRequired,connector:_.a.object.isRequired,goBack:_.a.func.isRequired,cancel:_.a.func.isRequired},s=l))||s)||s;!function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(y,"MSTeamsPanel","/usr/src/src/react/collaboration-ui/panels/MSTeams/MSTeamsPanel.js")}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){var n=Object.keys(D).find(function(n){return e(n)===t});return n&&D[n]}n.d(t,"a",function(){return I});var s,c,l,u,p=n(2),d=n.n(p),_=n(39),f=n(3),h=n.n(f),m=n(5),y=(n.n(m),n(196)),g=n.n(y),v=n(197),b=(n.n(v),n(198)),E=n.n(b),O=n(4),w=(n.n(O),n(60)),R=n(199),A=n.n(R),T=n(63),x=n(201),k=n(206),C=n(214),S=Object.assign||function(e){for(var t=1;t"+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(t)}()}()}).call(t,n("698d75b157f24ae829cc"))},"9ce58a7deea14f49ef01":function(e,t,n){(function(t){!function(t,n){e.exports=function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function t(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map(function(e){e(n)}),(e["*"]||[]).map(function(e){e(t,n)})}}}function n(e,t){return O(e).reduce(function(e,n){if(!n.attributes)return e;var r=O(n.attributes),a=t?r.filter(t):r;return e.concat(a)},[])}function r(e){return e.replace(L,function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()})}function a(e,t,n){return O(e).forEach(function(e){var r=e.getAttribute(j);if(r&&0===r.indexOf(t)){var a=r.replace(t,n);e.setAttributeNS(S,j,a)}}),e}var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,e(function(e,t){!function(t,n){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){return r&&!0===r.clone&&e(n)?o(t(n),n,r):n}function r(t,r,a){var i=t.slice();return r.forEach(function(r,s){void 0===i[s]?i[s]=n(r,a):e(r)?i[s]=o(t[s],r,a):-1===t.indexOf(r)&&i.push(n(r,a))}),i}function a(t,r,a){var i={};return e(t)&&Object.keys(t).forEach(function(e){i[e]=n(t[e],a)}),Object.keys(r).forEach(function(s){e(r[s])&&t[s]?i[s]=o(t[s],r[s],a):i[s]=n(r[s],a)}),i}function o(e,t,o){var i=Array.isArray(t),s=o||{arrayMerge:r},c=s.arrayMerge||r;return i?Array.isArray(e)?c(e,t,o):n(t,o):a(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return o(e,n,t)})},o}()}()})),i=e(function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default}),s=function(e){return Object.keys(e).map(function(t){return t+'="'+e[t].toString().replace(/"/g,""")+'"'}).join(" ")},c=i.svg,l=i.xlink,u={};u[c.name]=c.uri,u[l.name]=l.uri;var p,d=function(e,t){void 0===e&&(e="");var n=o(u,t||{});return""+e+""},_=i.svg,f=i.xlink,h={attrs:(p={style:["position: absolute","width: 0","height: 0"].join("; ")},p[_.name]=_.uri,p[f.name]=f.uri,p)},m=function(e){this.config=o(h,e||{}),this.symbols=[]};m.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},m.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},m.prototype.find=function(e){return this.symbols.filter(function(t){return t.id===e})[0]||null},m.prototype.has=function(e){return null!==this.find(e)},m.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map(function(e){return e.stringify()}).join("");return d(n,t)},m.prototype.toString=function(){return this.stringify()},m.prototype.destroy=function(){this.symbols.forEach(function(e){return e.destroy()})};var y=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};y.prototype.stringify=function(){return this.content},y.prototype.toString=function(){return this.stringify()},y.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};var g,v=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},b=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return v(d(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(y),E={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},O=function(e){return Array.prototype.slice.call(e,0)},w=navigator.userAgent,R={isChrome:/chrome/i.test(w),isFirefox:/firefox/i.test(w),isIE:/msie/i.test(w)||/trident/i.test(w),isEdge:/edge/i.test(w)},A=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},T=function(e){var t=[];return O(e.querySelectorAll("style")).forEach(function(e){e.textContent+="",t.push(e)}),t},x=function(e){return(e||window.location.href).split("#")[0]},k=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",function(t,n,r){A(e,{oldUrl:r,newUrl:n})})}])},C=function(e,t){return void 0===t&&(t="linearGradient, radialGradient, pattern"),O(e.querySelectorAll("symbol")).forEach(function(e){O(e.querySelectorAll(t)).forEach(function(t){e.parentNode.insertBefore(t,e)})}),e},S=i.xlink.uri,j="xlink:href",L=/[{}|\\\^\[\]`"<>]/g,D=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],I=D.map(function(e){return"["+e+"]"}).join(","),P=function(e,t,o,i){var s=r(o),c=r(i);n(e.querySelectorAll(I),function(e){var t=e.localName,n=e.value;return-1!==D.indexOf(t)&&-1!==n.indexOf("url("+s)}).forEach(function(e){return e.value=e.value.replace(s,c)}),a(t,s,c)},M={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},N=function(e){function n(n){var r=this;void 0===n&&(n={}),e.call(this,o(E,n));var a=t();this._emitter=a,this.node=null;var i=this,s=i.config;if(s.autoConfigure&&this._autoConfigure(n),s.syncUrlsWithBaseTag){var c=document.getElementsByTagName("base")[0].getAttribute("href");a.on(M.MOUNT,function(){return r.updateUrls("#",c)})}var l=this._handleLocationChange.bind(this);this._handleLocationChange=l,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,l),s.locationChangeAngularEmitter&&k(s.locationChangeEvent),a.on(M.MOUNT,function(e){s.moveGradientsOutsideSymbol&&C(e)}),a.on(M.SYMBOL_MOUNT,function(e){s.moveGradientsOutsideSymbol&&C(e.parentNode),(R.isIE||R.isEdge)&&T(e)})}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},n.prototype._autoConfigure=function(e){var t=this,n=t.config;void 0===e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),void 0===e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=R.isFirefox)},n.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},n.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(M.SYMBOL_MOUNT,t.node)),r},n.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"==typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach(function(e){e.mount(n.node),t._emitter.emit(M.SYMBOL_MOUNT,e.node)}),O(r.querySelectorAll("symbol")).forEach(function(e){var t=b.createFromExistingNode(e);t.node=e,n.add(t)}),this._emitter.emit(M.MOUNT,r),r},n.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach(function(e){return e.destroy()}),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},n.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"==typeof e?document.querySelector(e):e,a=n.render();return this.node=a,t&&r.childNodes[0]?r.insertBefore(a,r.childNodes[0]):r.appendChild(a),this._emitter.emit(M.MOUNT,a),a},n.prototype.render=function(){return v(this.stringify())},n.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},n.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return P(this.node,n,x(e)+"#",x(t)+"#"),!0},Object.defineProperties(n.prototype,r),n}(m),H=e(function(e){/*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(t,n){e.exports=function(){var e,t=[],n=document,r=n.documentElement.doScroll,a=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return a||n.addEventListener("DOMContentLoaded",e=function(){for(n.removeEventListener("DOMContentLoaded",e),a=1;e=t.shift();)e()}),function(e){a?setTimeout(e,0):t.push(e)}}()}()});window.__SVG_SPRITE__?g=window.__SVG_SPRITE__:(g=new N({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=g);var z=function(){var e=document.getElementById("__SVG_SPRITE_NODE__");e?g.attach(e):g.mount(document.body,!0)};return document.body?z():H(z),g}()}()}).call(t,n("698d75b157f24ae829cc"))}})},function(e,t,n){"use strict";var r=SyntaxError,a=Function,o=TypeError,i=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var c=function(){throw new o},l=s?function(){try{return arguments.callee,c}catch(e){try{return s(arguments,"callee").get}catch(e){return c}}}():c,u=n(73)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},_="undefined"==typeof Uint8Array?void 0:p(Uint8Array),f={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?p([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?p(p([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?p((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?p((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?p(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":_,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},h=function e(t){var n;if("%AsyncFunction%"===t)n=i("async function () {}");else if("%GeneratorFunction%"===t)n=i("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=i("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(n=p(a.prototype))}return f[t]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(10),g=n(15),v=y.call(Function.call,Array.prototype.concat),b=y.call(Function.apply,Array.prototype.splice),E=y.call(Function.call,String.prototype.replace),O=y.call(Function.call,String.prototype.slice),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,A=function(e){var t=O(e,0,1),n=O(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var a=[];return E(e,w,function(e,t,n,r){a[a.length]=n?E(r,R,"$1"):t||e}),a},T=function(e,t){var n,a=e;if(g(m,a)&&(n=m[a],a="%"+n[0]+"%"),g(f,a)){var i=f[a];if(i===d&&(i=h(a)),void 0===i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');var n=A(e),a=n.length>0?n[0]:"",i=T("%"+a+"%",t),c=i.name,l=i.value,u=!1,p=i.alias;p&&(a=p[0],b(n,v([0,1],p)));for(var d=1,_=!0;d=n.length){var E=s(l,h);_=!!E,l=_&&"get"in E&&!("originalValue"in E.get)?E.get:l[h]}else _=g(l,h),l=l[h];_&&!u&&(f[c]=l)}}return l}},function(t,n){t.exports=e},function(e,t,n){e.exports=n(24)()},function(e,n){e.exports=t},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n=0&&v.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",l(t,e.attrs),o(e,t),t}function c(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",l(t,e.attrs),o(e,t),t}function l(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function u(e,t){var n,r,a,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var l=g++;n=y||(y=s(t)),r=p.bind(null,n,l,!1),a=p.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(t),r=_.bind(null,n,t),a=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=d.bind(null,n),a=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function p(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=E(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function _(e,t,n){var r=n.css,a=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||o)&&(r=b(r)),a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var i=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(i),s&&URL.revokeObjectURL(s)}var f={},h=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),m=function(e){var t={};return function(n){if(void 0===t[n]){var r=e.call(this,n);if(r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[n]=r}return t[n]}}(function(e){return document.querySelector(e)}),y=null,g=0,v=[],b=n(47);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=h()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=a(e,t);return r(n,t),function(e){for(var o=[],i=0;i0?(e.emailMRUStore=n[0],e.emailMRUStore.recipients.map(function(e){return"address"===e.type?e.defaultName=e.email=e.value=e.id:e.value=e.searchPath,e})):[];throw new Error("Data recieved is not in the correct format")}).catch(function(t){e.logger.error("Failed to retrieve the email contacts.",t)})}},{key:"updateMRUContacts",value:function(t){var n=this,r=this._updateRecipients(t);return r=this._removeCmProperties(r),this._sortContacts(r),this.emailMRUStore.id?this._updateContact(this.emailMRUStore.id,{recipients:r.slice(0,e.MAX_CONTACTS)}).catch(function(e){n.logger.error("Failed to update the contacts",e)}):this._addContact({recipients:r.slice(0,e.MAX_CONTACTS)}).catch(function(e){n.logger.error("Failed to create the contacts",e)})}},{key:"_addContact",value:function(t){var n={url:e.BASE_URL,data:t};return this.client.doPost(n)}},{key:"_updateContact",value:function(t,n){var r={url:e.BASE_URL+"/"+t,data:n};return this.client.doPut(r)}},{key:"_removeCmProperties",value:function(e){return e.map(function(e){return{id:e.id,type:e.type,lastSent:e.lastSent,frequency:e.frequency,namespaceID:e.namespaceID}})}},{key:"_updateRecipients",value:function(e){var t=Date.now(),n=this.emailMRUStore.id?this.emailMRUStore.recipients:[];return e.forEach(function(e){var r=e.id,a=-1;if(n.some(function(e,t){return e.id===r&&(a=t,!0)}),-1!==a){var o=n[a].frequency+1;n[a]=i({},e,{frequency:o,lastSent:t})}else n.push(i({},e,{frequency:1,lastSent:t}))}),n}},{key:"_sortContacts",value:function(e){e.sort(function(e,t){return t.lastSent-e.lastSent})}}]),e}(),a.BASE_URL="v1/users/~/emailContactsMRU",a.MAX_CONTACTS=30,o);t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&(e.setState({recipients:n,selectedTags:e.recipientsToTags(n),recipientsValidation:e.defaultRecipientsValidation}),e.props.onAddRecipient(),e.onChange(n),1===i?e.props.glassContext.showToast(e.nls("single_recipient_added")):e.props.glassContext.showToast(e.nls("multiple_recipient_added",{recipient_count:i})))},this.convertInputToEmailTag=function(){if(O.default.isValidEmail(e.userInput)&&!e.checkForDuplicateRecipientEntries(e.state.recipients,e.userInput)){var t={type:"address",value:e.userInput,label:e.userInput},n=[].concat(a(e.state.recipients),[t]);e.setState({recipients:n,selectedTags:e.recipientsToTags(n),recipientsValidation:e.defaultRecipientsValidation}),e.props.onAddRecipient(),e.onChange(n),e.clearInputField()}},this.checkForDuplicateRecipientEntries=function(e,t){return e.some(function(e){return"address"===e.type&&t===e.value})},this.recipientTextHandler=function(t){e.setState({value:t});var n=e._canTypeInEmail(),r=Math.abs(t.length-e.userInput.length)>=2;if(!r||r&&!n)return!1;var o=t.split(/[\s,;]+/);if(!o)return!1;for(var i=[].concat(a(e.state.recipients)),s=0;s$/g,"");if(O.default.isValidEmail(c))if(e.checkForDuplicateRecipientEntries(i,c))e.clearInputField();else{var l={type:"address",value:c,label:c};i.push(l)}}return i.length>e.state.recipients.length&&(e.setState({recipients:i,selectedTags:e.recipientsToTags(i),recipientsValidation:e.defaultRecipientsValidation}),e.props.onAddRecipient(),e.onChange(i),e.clearInputField()),!0},this._canTypeInEmail=function(){return e.props.glassContext.hasCapability("canTypeInEmail")},this.tagHandler=function(t){var n=e._canTypeInEmail();if("Escape"===t.key)return void(!!e.tagInputRef.current&&e.tagInputRef.current.state.open&&t.stopPropagation());var r={186:";",188:","};e.userInput=t.target.value||e.userInput||"";var a=t.target.value?t.target.value.replace(/[,;]/g,"").trim().toLowerCase():"";if(!a&&void 0!==t.target.value)return e.directorySearch=null,void e.setState({searchResults:[],searchInProgress:!1,searchDone:!1});var o="Unidentified"===t.key?r[t.which||t.keyCode]:t.key,i=","===o||";"===o||" "===o;!n||e.props.disableExternalEmail||!i&&"blur"!==t.type?"Enter"===o&&(n&&!e.props.disableExternalEmail&&O.default.isValidEmail(a)?(e.userInput=a,e.convertInputToEmailTag(t)):e.searchDirectoryHandler()):O.default.isValidEmail(a)&&(e.userInput=a,e.convertInputToEmailTag(t),t.preventDefault())},this.customFilter=function(t){var n=t.value?t.value.toLowerCase():"",r=t.values||[],a=r.filter(function(e){return(e.defaultName?e.defaultName.toLowerCase():"").indexOf(n)>=0});return e.setState({filteredTags:a}),a},this.customOpenStateController=function(t){var n=t.value,r=t.event;return n.trim().length>0?(e.setState({searchDirectoryEnabled:!0}),!0):!(!r||"ArrowDown"!==r.key&&"Enter"!==r.key||!(e.props.mruEmailContacts.length>0)||(e.setState({searchDirectoryEnabled:!1}),0))},this.onUpdateSearchResults=function(t){e.setState({searchResults:t})},this.onSearchDone=function(){e.setState({searchInProgress:!1,searchDone:!0},function(){return e.focus()})},this._doDirectorySearch=function(){var t=e.props,n=t.nls,r=t.glassContext,a=t.getNamespaces,o=function(t){var a={nls:n,glassContext:r,namespaces:t,searchParameters:{filter:e.userInput,method:e.props.searchMethod||"contains"},adminServiceConnector:e.adminServiceConnector,onUpdateSearchResults:e.onUpdateSearchResults,onSearchDone:e.onSearchDone};try{e.directorySearch=new b.default(a),e.directorySearch.run()}catch(t){r.showToast(n("error_directory_search_unknown"),{type:"error"}),e.setState({searchInProgress:!1})}},i=function(){r.showToast(n("error_get_namespaces"),{type:"error"}),e.setState({searchInProgress:!1})};return a().then(o,i)},this.searchDirectoryHandler=function(){e.state.searchInProgress&&(e.directorySearch&&e.directorySearch.cancel(),e.directorySearch=null),e.setState({searchResults:[],searchInProgress:!0,searchDone:!1},e._doDirectorySearch)},this._getListItemSubLabel=function(t){return"address"===t.type?null:"account"===t.type||"contact"===t.type?t.email:e.nls("type_"+t.type)},this.listItemContentRenderer=function(t,n){var r=n.options,a=n.truncated,o=n.textDir,i=r[t.index],s=i.defaultName,c=e._getListItemSubLabel(i),l=R.default.getIcon(i);return _.default.createElement(m.FlexItem,{className:"dropDown__menuItemInner","data-recipient-type":i.type},_.default.createElement(m.FlexLayout,{direction:"row"},l&&_.default.createElement(m.FlexItem,{className:"listItem-icon"},_.default.createElement(m.Tooltip,{title:e.nls("type_"+i.type)},_.default.createElement(m.SVGIcon,{iconId:l.id}))),_.default.createElement(m.FlexItem,{className:"listItem-details"},_.default.createElement(m.FlexLayout,{direction:"column"},_.default.createElement(m.FlexItem,{className:"listItem-label "+(c?"":" without-subLabel")},_.default.createElement(m.Label,{ellipsis:a,label:s,textDir:o})),c&&_.default.createElement(m.FlexItem,{className:"listItem-subLabel"},_.default.createElement(m.Label,{ellipsis:a,label:c,textDir:o}))))))},this.renderSearchControls=function(){var t=e.state,n=t.searchDirectoryEnabled,r=t.searchDone,a=t.searchResults,o=r&&0===a.length,i=e.state.filteredTags.length>0;return _.default.createElement(d.Fragment,null,o&&_.default.createElement(m.FlexItem,{gutter:[2,2,0,2]},_.default.createElement(m.Label,{label:e.nls("no_results_found")})),n&&_.default.createElement(m.FlexItem,{gutter:[2,2,2,2],style:i?{borderTop:"1px solid #eaeaea"}:{}},_.default.createElement(m.Link,{className:"search-directory-link",onClick:e.searchDirectoryHandler},e.nls("search_directory"))))},this.renderProgressFooter=function(){return _.default.createElement(d.Fragment,null,0===e.state.searchResults.length&&_.default.createElement(m.FlexItem,{gutter:[2,2,0,2]},_.default.createElement(m.Label,{className:"looking-for-matches",label:e.nls("looking_for_matches")})),_.default.createElement(m.FlexItem,{gutter:[2,0,0,0]},_.default.createElement(m.ProgressIndicator,{size:"normal",variant:"bar"})))},this.dropdownFooterRenderer=function(){var t={onMouseUp:function(e){return e.stopPropagation()}};return _.default.createElement("div",t,e.state.searchInProgress?e.renderProgressFooter():e.renderSearchControls())}},l);t.default=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,c,l=function(){function e(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function e(e,t){for(var n=0;n2?arguments[2]:{},o=r(t);a&&(o=i.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";e.exports=n(78)},function(e,t,n){"use strict";var r=n(19),a=n(79),o=n(80),i=o("String.prototype.replace"),s=/^\s$/.test("᠎"),c=s?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,l=s?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=a(r(this));return i(i(e,c,""),l,"")}},function(e,t,n){"use strict";var r=n(20),a="​",o="᠎";e.exports=function(){return String.prototype.trim&&a.trim()===a&&o.trim()===o&&("_"+o).trim()==="_"+o&&(o+"_").trim()===o+"_"?String.prototype.trim:r}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UserProfileServiceConnector=t.EmailMRUServiceConnector=t.EmailRecipientInput=t.DirectoryPanel=void 0;var a=n(23),o=r(a),i=n(13),s=r(i),c=n(12),l=r(c),u=n(11),p=r(u),d=n(14),_=r(d);t.default=o.default,t.DirectoryPanel=s.default,t.EmailRecipientInput=l.default,t.EmailMRUServiceConnector=p.default,t.UserProfileServiceConnector=_.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0?e(n):t(new Error("invalid namespaces"))})})},n.getNamespaces=function(){return n.namespaces||(n.namespaces=n._loadNamespaces()),n.namespaces},n._focus=function(e){return e.current&&e.current.focus()},n._getObjectPaths=function(e){return e.current&&e.current.getObjectPaths()||[]},n._getAddresses=function(e){return e.current&&e.current.getAddresses()||[]},n._addMembersTo=function(e,t){return e.current&&e.current.addMembersTo(t)},n._getRecipients=function(e){return e.current&&e.current.getRecipients()||[]},n.updateMRUContacts=function(e){n.emailMRUService.updateMRUContacts(e)},n._isInputEmpty=function(e){return!e.current||e.current.isEmpty()},n.onAddRecipient=function(){n.setState({missingRecipients:!1})},n.updateContent=function(e){var t=e.editor.getData();n.props.onMessageChange&&n.props.onMessageChange(t),n.setState({message:t})},n.updateSubject=function(e){n.setState({subject:e,subjectChanged:!0}),n.props.onSubjectChange&&n.props.onSubjectChange(e)},n.openDirectory=function(e){n.props.onOpenDirectory?n.props.onOpenDirectory(e):(n.inputType=e,n.setState({showDirectory:!0}))},n.closeDirectory=function(){n.inputType=null,n.setState({showDirectory:!1})},n.addMembersTo=function(e){n._addMembersTo(n.refMap[n.inputType],e)},n._renderDirectoryLink=function(e){return _.default.createElement(m.FlexItem,null,_.default.createElement(m.Link,{className:"bolded-link",onClick:function(){return n.openDirectory(e)},"data-tid":"directory"},n.nls("email_directory")))},n._id=(0,I.default)("_emaileditor_"),n._onSearchMethodChange=function(e,t){n.setState({searchMethod:t})},n._searchMethodButtonComponent=function(){return _.default.createElement(m.FlexItem,{className:"search-method-button"},_.default.createElement(m.Button,{icon:g.default.id,iconSize:"small",variant:"icon",intent:"primary",size:"field",hasIconOnly:!0,tooltipAlignment:"end",iconDescription:n.nls("search_method"),onClick:function(){n.setState({dropdownOpen:!n.state.dropdownOpen})}}),n.state.dropdownOpen&&_.default.createElement(m.ContextMenu,{theme:!0,domNodeToAttachTo:n.props.$root[0],placement:n.props.contextMenuPlacement?"bottomRight":"bottomLeft",onClose:function(){n.setState({dropdownOpen:!n.state.dropdownOpen})},onChange:n._onSearchMethodChange,selected:{radio:n.state.searchMethod}},_.default.createElement(m.ContextMenu.Radio,{content:n.searchMethodOptions,name:"radio",label:n.nls("search_method")})))},n.nls=H.default.get.bind(H.default),n.defaultSubjectValidation={invalid:!1,errorText:n.props.isSubjectRequired?n.nls("subject_validation_mandatory"):""},n.defaultMessageValidation={invalid:!1,errorText:n.nls("message_validation_mandatory")},n.searchMethodOptions=[{value:"contains",label:n.nls("search_method_contains")},{value:"startsExact",label:n.nls("search_method_starts_with")},{value:"matchExact",label:n.nls("search_method_exact_match")}],n.state={subjectChanged:!1,subject:e.subject||"",subjectValidation:n.defaultSubjectValidation,message:n.props.message?n.props.message:"",messageValidation:n.defaultMessageValidation,missingRecipients:!1,showDirectory:!1,enableCc:!1,enableBcc:!1,mruEmailContacts:[],dropdownOpen:!1,searchMethod:"contains",hideEmailRecipientInput:e.hideEmailRecipientInput||!1},n.toInputRef=_.default.createRef(),n.ccInputRef=_.default.createRef(),n.bccInputRef=_.default.createRef(),n.subjectAreaRef=_.default.createRef(),n.refMap={to:n.toInputRef,cc:n.ccInputRef,bcc:n.bccInputRef},n.inputType=null,n.namespaces=null,n.emailMRUService=new O.default({glassContext:n.props.glassContext}),n.scriptUrl=n.props.glassContext.requirejs.toUrl("ckeditor").split("?")[0]+".js",n}return s(t,e),p(t,[{key:"getEmailOptions",value:function(){return{recipients:{to:this._getObjectPaths(this.toInputRef),toAddress:this._getAddresses(this.toInputRef),cc:this._getObjectPaths(this.ccInputRef),ccAddress:this._getAddresses(this.ccInputRef),bcc:this._getObjectPaths(this.bccInputRef),bccAddress:this._getAddresses(this.bccInputRef)},subject:this.state.subject,rawMessage:this.state.message,message:L.default.format(this.state.message),allRecipients:this._getAllRecipients()}}},{key:"_getAllRecipients",value:function(){var e=[].concat(a(this._getRecipients(this.toInputRef)),a(this._getRecipients(this.ccInputRef)),a(this._getRecipients(this.bccInputRef))),t=new Set;return e.filter(function(e){return!t.has(e.id)&&(t.add(e.id),!0)})}},{key:"areRecipientsValid",value:function(){var e=this._isInputEmpty(this.toInputRef)&&this._isInputEmpty(this.ccInputRef)&&this._isInputEmpty(this.bccInputRef);return this.setState({missingRecipients:e}),!e}},{key:"isSubjectValid",value:function(){var e=u({},this.defaultSubjectValidation);return this.state.subject&&this.state.subject.trim()||(e.invalid=!0),this.setState({subjectValidation:e}),!e.invalid}},{key:"isMessageValid",value:function(){var e=u({},this.defaultMessageValidation);return this.state.message&&this.state.message.trim()||(e.invalid=!0),this.setState({messageValidation:e}),!e.invalid}},{key:"isValid",value:function(){var e=this.areRecipientsValid(),t=!this.props.isSubjectRequired||this.isSubjectValid(),n=!this.props.isMessageRequired||this.isMessageValid();return e?t||this._focus(this.subjectAreaRef):this._focus(this.toInputRef),e&&t&&n}},{key:"_renderDirectoryPanel",value:function(){var e=u({},this.props,{close:this.closeDirectory,addMembersTo:this.addMembersTo});return _.default.createElement(k.default,e)}},{key:"componentDidMount",value:function(){var e=this;this.getNamespaces(),this.emailMRUService.getAllContacts().then(function(t){e.setState({mruEmailContacts:t})})}},{key:"componentDidUpdate",value:function(e){this.props.subject==e.subject||this.state.subjectChanged||this.setState({subject:this.props.subject})}},{key:"render",value:function(){var e=this,t=this._id,n=t+"to",r=t+"cc",a=t+"bcc",o=t+"subject",i=t+"message",s=u({},this.props,{nls:this.nls,requiredField:!1,getNamespaces:this.getNamespaces,mruEmailContacts:this.state.mruEmailContacts,onAddRecipient:this.onAddRecipient}),c=R.default;return this.props.richTextEditorConfig&&(c=this.props.richTextEditorConfig),_.default.createElement(m.FlexLayout,{className:z,direction:"column"},this.state.missingRecipients&&_.default.createElement(m.FlexItem,null,_.default.createElement(m.FlexLayout,{className:"missing-recipients-error",direction:"row"},_.default.createElement(m.FlexItem,null,_.default.createElement(m.SVGIcon,{iconId:b.default.id,intent:"danger",size:"small"})),_.default.createElement(m.FlexItem,{className:"error-label"},_.default.createElement(m.Label,{label:this.nls("email_recipient_validation_mandatory")})))),!this.state.hideEmailRecipientInput&&_.default.createElement(_.default.Fragment,null,_.default.createElement(m.FlexItem,null,_.default.createElement(m.FlexLayout,{direction:"row"},_.default.createElement(m.FlexItem,null,_.default.createElement(m.Label,{label:this.nls("email_to"),type:"caption",htmlFor:n})),this._canTypeInEmail()&&this._searchMethodButtonComponent()),_.default.createElement(T.default,u({addresses:this.props.toAddress},s,{onChange:this.props.onToChange,id:n,ref:this.toInputRef,ariaLabel:this.nls("email_to"),searchMethod:this.state.searchMethod}))),_.default.createElement(m.FlexItem,null,_.default.createElement(m.FlexLayout,{direction:"row",justifyContent:"space-between"},_.default.createElement(m.FlexItem,null,!this.state.enableCc&&!this.state.enableBcc&&_.default.createElement(d.Fragment,null,_.default.createElement(m.Link,{className:"bolded-link",onClick:function(){return!e.state.enableCc&&e.setState({enableCc:!0})},"data-tid":"cc"},this.nls("email_cc")),_.default.createElement(m.Separator,{orientation:"vertical"}),_.default.createElement(m.Link,{className:"bolded-link",onClick:function(){return!e.state.enableBcc&&e.setState({enableBcc:!0})},"data-tid":"bcc"},this.nls("email_bcc")))),this._renderDirectoryLink("to"))),this.state.enableCc&&_.default.createElement(m.FlexItem,{gutter:[3,0,0,0]},_.default.createElement(m.Label,{label:this.nls("email_cc"),type:"caption",htmlFor:r}),_.default.createElement(T.default,u({addresses:this.props.ccAddress},s,{onChange:this.props.onCCChange,id:r,ref:this.ccInputRef,ariaLabel:this.nls("email_cc"),searchMethod:this.state.searchMethod})),_.default.createElement(m.FlexLayout,{direction:"row",justifyContent:"space-between"},_.default.createElement(m.FlexItem,null,!this.state.enableBcc&&_.default.createElement(m.Link,{className:"bolded-link",onClick:function(){return!e.state.enableBcc&&e.setState({enableBcc:!0})},"data-tid":"bcc"},this.nls("email_bcc"))),this._renderDirectoryLink("cc"))),this.state.enableBcc&&_.default.createElement(m.FlexItem,{gutter:[3,0,0,0]},_.default.createElement(m.Label,{label:this.nls("email_bcc"),type:"caption",htmlFor:a}),_.default.createElement(T.default,u({},s,{addresses:this.props.bccAddress,onChange:this.props.onBCCChange,id:a,ref:this.bccInputRef,ariaLabel:this.nls("email_bcc"),searchMethod:this.state.searchMethod})),_.default.createElement(m.FlexLayout,{direction:"row",justifyContent:"space-between"},_.default.createElement(m.FlexItem,null,!this.state.enableCc&&_.default.createElement(m.Link,{className:"bolded-link",onClick:function(){return!e.state.enableCc&&e.setState({enableCc:!0})},"data-tid":"cc"},this.nls("email_cc"))),this._renderDirectoryLink("bcc")))),_.default.createElement(m.FlexItem,{gutter:[4,0,0,0]},_.default.createElement(m.Label,{label:this.nls("subject"),type:"caption",htmlFor:o}),_.default.createElement(m.TextInput,{id:o,type:"text",placeholder:this.nls("subject"),fullWidth:!0,value:this.state.subject,onChange:this.updateSubject,validationErrorText:this.state.subjectValidation.errorText,hasValidationError:this.state.subjectValidation.invalid,ref:this.subjectAreaRef})),_.default.createElement(m.FlexItem,{gutter:[4,0,0,0]},_.default.createElement(m.FlexLayout,{direction:"row",justifyContent:"space-between"},_.default.createElement(m.FlexItem,null,_.default.createElement(m.Label,{label:this.nls("message"),type:"caption",htmlFor:i})),this.props.isMessageRequired&&_.default.createElement(m.FlexItem,null,_.default.createElement(m.Label,{className:"message-required-text",label:this.nls("required_field"),type:"caption"}))),_.default.createElement(m.RichTextEditor,{content:this.state.message,id:i,isScriptLoaded:this.props.isCKEditorLoaded,scriptUrl:this.scriptUrl,config:u({},c,{language:this.props.language}),events:{change:this.updateContent}}),this.props.isMessageRequired&&this.state.messageValidation.invalid&&_.default.createElement(d.Fragment,null,_.default.createElement("hr",{className:"message-error-line"}),_.default.createElement(m.Label,{className:"message-error-label",label:this.state.messageValidation.errorText,type:"caption"}))),_.default.createElement(m.FlexItem,{className:"ba-collab-fill-space directoryPanel"+(this.state.showDirectory?"":" hidden")},this._renderDirectoryPanel()))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isMessageRequired&&t.messageValidation.invalid?{messageValidation:u({},t.messageValidation,{invalid:!1})}:null}}]),t}(d.Component),c.propTypes={onOpenDirectory:h.default.func,onSubjectChange:h.default.func,onToChange:h.default.func,onCCChange:h.default.func,onBCCChange:h.default.func,onMessageChange:h.default.func,message:h.default.string,toAddress:h.default.object,ccAddress:h.default.object,bccAddress:h.default.object,glassContext:h.default.object.isRequired,subject:h.default.string,language:h.default.string.isRequired,isCKEditorLoaded:h.default.bool,isSubjectRequired:h.default.bool,isMessageRequired:h.default.bool.isRequired,richTextEditorConfig:h.default.object,hideEmailRecipientInput:h.default.bool,$root:h.default.object,contextMenuPlacement:h.default.object},l);t.default=F},function(e,t,n){"use strict";var r=n(25),a=n(26),o=n(27);e.exports=function(){function e(e,t,n,r,i,s){s!==o&&a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";function r(e,t,n,r,o,i,s,c){if(a(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,c],p=0;l=new Error(t.replace(/%s/g,function(){return u[p++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var a=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([1517],{"3135f8309aad6ef12895":function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"configure_16_v7",use:"configure_16_v7-usage",viewBox:"0 0 16 16",content:''});i.a.add(s),t.a=s},"3865314c5959606874d4":function(t,n){t.exports=e},df639dbb9d3ca55e64a4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("3135f8309aad6ef12895"));t.default=a.a}},["df639dbb9d3ca55e64a4"])}(n(0))}("undefined"!=typeof self&&self)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),a=n.n(r),o=n(31),i=n.n(o),s=new a.a({id:"error",use:"error-usage",viewBox:"0 0 32 32",content:'error'});i.a.add(s),t.default=s},function(e,t,n){(function(t){!function(t,n){e.exports=function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var t=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};t.prototype.stringify=function(){return this.content},t.prototype.toString=function(){return this.stringify()},t.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},r=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,e(function(e,t){!function(t,n){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){return r&&!0===r.clone&&e(n)?o(t(n),n,r):n}function r(t,r,a){var i=t.slice();return r.forEach(function(r,s){void 0===i[s]?i[s]=n(r,a):e(r)?i[s]=o(t[s],r,a):-1===t.indexOf(r)&&i.push(n(r,a))}),i}function a(t,r,a){var i={};return e(t)&&Object.keys(t).forEach(function(e){i[e]=n(t[e],a)}),Object.keys(r).forEach(function(s){e(r[s])&&t[s]?i[s]=o(t[s],r[s],a):i[s]=n(r[s],a)}),i}function o(e,t,o){var i=Array.isArray(t),s=o||{arrayMerge:r},c=s.arrayMerge||r;return i?Array.isArray(e)?c(e,t,o):n(t,o):a(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return o(e,n,t)})},o}()}()})),a=e(function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default}),o=function(e){return Object.keys(e).map(function(t){return t+'="'+e[t].toString().replace(/"/g,""")+'"'}).join(" ")},i=a.svg,s=a.xlink,c={};c[i.name]=i.uri,c[s.name]=s.uri;var l=function(e,t){void 0===e&&(e="");var n=r(c,t||{});return""+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(t)}()}()}).call(t,n(5))},function(e,t,n){(function(t){!function(t,n){e.exports=function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function t(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map(function(e){e(n)}),(e["*"]||[]).map(function(e){e(t,n)})}}}function n(e,t){return O(e).reduce(function(e,n){if(!n.attributes)return e;var r=O(n.attributes),a=t?r.filter(t):r;return e.concat(a)},[])}function r(e){return e.replace(L,function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()})}function a(e,t,n){return O(e).forEach(function(e){var r=e.getAttribute(j);if(r&&0===r.indexOf(t)){var a=r.replace(t,n);e.setAttributeNS(S,j,a)}}),e}var o=("undefined"!=typeof window?window:"undefined"!=typeof self&&self,e(function(e,t){!function(t,n){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){return r&&!0===r.clone&&e(n)?o(t(n),n,r):n}function r(t,r,a){var i=t.slice();return r.forEach(function(r,s){void 0===i[s]?i[s]=n(r,a):e(r)?i[s]=o(t[s],r,a):-1===t.indexOf(r)&&i.push(n(r,a))}),i}function a(t,r,a){var i={};return e(t)&&Object.keys(t).forEach(function(e){i[e]=n(t[e],a)}),Object.keys(r).forEach(function(s){e(r[s])&&t[s]?i[s]=o(t[s],r[s],a):i[s]=n(r[s],a)}),i}function o(e,t,o){var i=Array.isArray(t),s=o||{arrayMerge:r},c=s.arrayMerge||r;return i?Array.isArray(e)?c(e,t,o):n(t,o):a(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return o(e,n,t)})},o}()}()})),i=e(function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default}),s=function(e){return Object.keys(e).map(function(t){return t+'="'+e[t].toString().replace(/"/g,""")+'"'}).join(" ")},c=i.svg,l=i.xlink,u={};u[c.name]=c.uri,u[l.name]=l.uri;var p,d=function(e,t){void 0===e&&(e="");var n=o(u,t||{});return""+e+""},_=i.svg,f=i.xlink,h={attrs:(p={style:["position: absolute","width: 0","height: 0"].join("; ")},p[_.name]=_.uri,p[f.name]=f.uri,p)},m=function(e){this.config=o(h,e||{}),this.symbols=[]};m.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},m.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},m.prototype.find=function(e){return this.symbols.filter(function(t){return t.id===e})[0]||null},m.prototype.has=function(e){return null!==this.find(e)},m.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map(function(e){return e.stringify()}).join("");return d(n,t)},m.prototype.toString=function(){return this.stringify()},m.prototype.destroy=function(){this.symbols.forEach(function(e){return e.destroy()})};var y=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};y.prototype.stringify=function(){return this.content},y.prototype.toString=function(){return this.stringify()},y.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};var g,v=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},b=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return v(d(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(y),E={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},O=function(e){return Array.prototype.slice.call(e,0)},w=navigator.userAgent,R={isChrome:/chrome/i.test(w),isFirefox:/firefox/i.test(w),isIE:/msie/i.test(w)||/trident/i.test(w),isEdge:/edge/i.test(w)},A=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},T=function(e){var t=[];return O(e.querySelectorAll("style")).forEach(function(e){e.textContent+="",t.push(e)}),t},x=function(e){return(e||window.location.href).split("#")[0]},k=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",function(t,n,r){A(e,{oldUrl:r,newUrl:n})})}])},C=function(e,t){return void 0===t&&(t="linearGradient, radialGradient, pattern"),O(e.querySelectorAll("symbol")).forEach(function(e){O(e.querySelectorAll(t)).forEach(function(t){e.parentNode.insertBefore(t,e)})}),e},S=i.xlink.uri,j="xlink:href",L=/[{}|\\\^\[\]`"<>]/g,D=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],I=D.map(function(e){return"["+e+"]"}).join(","),P=function(e,t,o,i){var s=r(o),c=r(i);n(e.querySelectorAll(I),function(e){var t=e.localName,n=e.value;return-1!==D.indexOf(t)&&-1!==n.indexOf("url("+s)}).forEach(function(e){return e.value=e.value.replace(s,c)}),a(t,s,c)},M={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},N=function(e){function n(n){var r=this;void 0===n&&(n={}),e.call(this,o(E,n));var a=t();this._emitter=a,this.node=null;var i=this,s=i.config;if(s.autoConfigure&&this._autoConfigure(n),s.syncUrlsWithBaseTag){var c=document.getElementsByTagName("base")[0].getAttribute("href");a.on(M.MOUNT,function(){return r.updateUrls("#",c)})}var l=this._handleLocationChange.bind(this);this._handleLocationChange=l,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,l),s.locationChangeAngularEmitter&&k(s.locationChangeEvent),a.on(M.MOUNT,function(e){s.moveGradientsOutsideSymbol&&C(e)}),a.on(M.SYMBOL_MOUNT,function(e){s.moveGradientsOutsideSymbol&&C(e.parentNode),(R.isIE||R.isEdge)&&T(e)})}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},n.prototype._autoConfigure=function(e){var t=this,n=t.config;void 0===e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),void 0===e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=R.isFirefox)},n.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},n.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(M.SYMBOL_MOUNT,t.node)),r},n.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"==typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach(function(e){e.mount(n.node),t._emitter.emit(M.SYMBOL_MOUNT,e.node)}),O(r.querySelectorAll("symbol")).forEach(function(e){var t=b.createFromExistingNode(e);t.node=e,n.add(t)}),this._emitter.emit(M.MOUNT,r),r},n.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach(function(e){return e.destroy()}),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},n.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"==typeof e?document.querySelector(e):e,a=n.render();return this.node=a,t&&r.childNodes[0]?r.insertBefore(a,r.childNodes[0]):r.appendChild(a),this._emitter.emit(M.MOUNT,a),a},n.prototype.render=function(){return v(this.stringify())},n.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},n.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return P(this.node,n,x(e)+"#",x(t)+"#"),!0},Object.defineProperties(n.prototype,r),n}(m),H=e(function(e){/*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(t,n){e.exports=function(){var e,t=[],n=document,r=n.documentElement.doScroll,a=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return a||n.addEventListener("DOMContentLoaded",e=function(){for(n.removeEventListener("DOMContentLoaded",e),a=1;e=t.shift();)e()}),function(e){a?setTimeout(e,0):t.push(e)}}()}()});window.__SVG_SPRITE__?g=window.__SVG_SPRITE__:(g=new N({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=g);var z=function(){var e=document.getElementById("__SVG_SPRITE_NODE__");e?g.attach(e):g.mount(document.body,!0)};return document.body?z():H(z),g}()}()}).call(t,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["About","ShowBlocks","Maximize","Font","FontSize","Iframe","PageBreak","Smiley","Table","Image","Flash","Unlink","Link","Anchor","SpecialChar","HorizontalRule","Language","BidiRtl","BidiLtr","JustifyBlock","JustifyRight","JustifyCenter","JustifyLeft","Blockquote","CreateDiv","Indent","Outdent","CopyFormatting","RemoveFormat","Strike","Subscript","Superscript","BulletedList","HiddenField","ImageButton","Button","Select","Textarea","TextField","Radio","Form","Scayt","SelectAll","Find","Replace","Source","Save","NewPage","Preview","Print","Templates","Cut","Copy","PasteText","PasteFromWord","Paste","Redo","Undo","BGColor","Checkbox"].join(),a={toolbarGroups:[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker","editing"]},{name:"forms",groups:["forms"]},{name:"styles",groups:["styles"]},{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"colors",groups:["colors"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi","paragraph"]},{name:"links",groups:["links"]},{name:"insert",groups:["insert"]},{name:"tools",groups:["tools"]},{name:"others",groups:["others"]},{name:"about",groups:["about"]}],toolbarLocation:"bottom",removePlugins:"elementspath",removeButtons:r};t.default=a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(){function e(e,t){for(var n=0;n0){var r=n._buildGroupName(e);t.forEach(function(t){t.group=r,t.namespaceID=e.id}),e.id===c?n.cognosNamespaceResults=t:n._mergeSearchResults(t)}n.updateInProgress()}},this.onNamespaceSearchError=function(e,t,r){if(!n.isCancelled){var a=l.includes(t.code)&&r.length<=3?"error_namespace_search_timeout":"error_namespace_search_failed",o=n.options.nls(a,{namespaceName:e.defaultName});n.options.glassContext.showToast(o,{type:"error"}),n.updateInProgress()}},this.updateInProgress=function(){n.inProgress=n.namespaceSearches.some(function(e){return e.isInProgress()}),n.inProgress||(n.cognosNamespaceResults.length>0&&n._mergeSearchResults(n.cognosNamespaceResults),n.options.onSearchDone())},this._mergeSearchResults=function(e){n.mergedResults=n.mergedResults.concat(e),"function"==typeof n.options.onUpdateSearchResults&&n.options.onUpdateSearchResults(n.mergedResults)},this.options=t;var o={searchParameters:t.searchParameters,adminServiceConnector:t.adminServiceConnector,onSuccess:this.onNamespaceSearchSuccess,onError:this.onNamespaceSearchError};this.namespaceSearches=t.namespaces.map(function(e){return new s.default(a({},o,{namespace:e}))}),this.mergedResults=[],this.cognosNamespaceResults=[],this.inProgress=!1,this.isCancelled=!1}return o(e,[{key:"run",value:function(){this.inProgress=!0,this.isCancelled=!1,this.namespaceSearches.forEach(function(e){return e.run()})}},{key:"cancel",value:function(){this.isCancelled=!0,this.inProgress&&(this.namespaceSearches.forEach(function(e){return e.cancel()}),this.inProgress=!1)}}]),e}();t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=Object.assign||function(e){for(var t=1;t'});i.a.add(s),t.a=s}},["30409a2572f8578a933a"])}(n(0))}("undefined"!=typeof self&&self)},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([1291],{"1b1a0d243ca8c2816abe":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("882fad8fafe9fc5ccf26"));t.default=a.a},"3865314c5959606874d4":function(t,n){t.exports=e},"882fad8fafe9fc5ccf26":function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"email_16_v7",use:"email_16_v7-usage",viewBox:"0 0 16 16",content:''});i.a.add(s),t.a=s}},["1b1a0d243ca8c2816abe"])}(n(0))}("undefined"!=typeof self&&self)},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([972],{"08763981af1e5db6702f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("5ac3e26a8c95859304d8"));t.default=a.a},"3865314c5959606874d4":function(t,n){t.exports=e},"5ac3e26a8c95859304d8":function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"list--bulleted_16_v7",use:"list--bulleted_16_v7-usage",viewBox:"0 0 16 16",content:''});i.a.add(s),t.a=s}},["08763981af1e5db6702f"])}(n(0))}("undefined"!=typeof self&&self)},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([1272],{"3865314c5959606874d4":function(t,n){t.exports=e},d04cd06d75ca471b2de6:function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"events_32_v7",use:"events_32_v7-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},ff7527a27f7f83870427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("d04cd06d75ca471b2de6"));t.default=a.a}},["ff7527a27f7f83870427"])}(n(0))}("undefined"!=typeof self&&self)},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([1114],{"386416e07ac84e834667":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("b7b6cb3005ea8f215433"));t.default=a.a},"3865314c5959606874d4":function(t,n){t.exports=e},b7b6cb3005ea8f215433:function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"hat_32_v7",use:"hat_32_v7-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s}},["386416e07ac84e834667"])}(n(0))}("undefined"!=typeof self&&self)},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([1106],{"3865314c5959606874d4":function(t,n){t.exports=e},"700fba089a73987b7d0d":function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"help_16_v7",use:"help_16_v7-usage",viewBox:"0 0 16 16",content:''});i.a.add(s),t.a=s},c517d0197f58051e0778:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("700fba089a73987b7d0d"));t.default=a.a}},["c517d0197f58051e0778"])}(n(0))}("undefined"!=typeof self&&self)},function(e,t,n){var r=n(46);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-email-email-recipient-input .ba-common-dropdown__menuItem{height:auto}.ba-email-email-recipient-input .dropDown__menuItemInner{color:#161616;color:hsla(var(--text-01-h,0),var(--text-01-s,0%),var(--text-01-l,8.62745%),1);font-size:.75rem;margin-top:4px;margin-bottom:4px}.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-details{height:2rem}.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-label,.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-subLabel{height:1rem}.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-label .ba-common-label,.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-subLabel .ba-common-label{margin-left:8px;max-width:300px}.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-label .ba-common-label .ba-common-truncatedText__text,.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-subLabel .ba-common-label .ba-common-truncatedText__text{font-size:.75rem;line-height:1rem}.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-label .ba-common-label{font-weight:500}.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-label.without-subLabel{margin-top:8px}.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-subLabel .ba-common-label{font-weight:400}.ba-email-email-recipient-input .dropDown__menuItemInner .listItem-icon{margin-top:8px;margin-left:8px;height:16px;width:16px}.ba-email-email-recipient-input .tooltip-avatar{width:16px;height:16px;border-radius:50%}.ba-email-email-recipient-input .search-directory-link{font-weight:500}",""]),t.locals={cssClassName:'"ba-email-email-recipient-input"'}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var a=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(a))return e;var o;return o=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},function(e,t,n){var r=n(49);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-email-directory-panel{background-color:#fff;background-color:hsla(var(--ui-01-h,0),var(--ui-01-s,0%),var(--ui-01-l,100%),1);margin:1px 3px 7px}.ba-email-directory-panel .directory .ba-admin-addMemberToPanel{z-index:9000}",""]),t.locals={cssClassName:'"ba-email-directory-panel"'}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a,o,i=function(){function e(e,t){for(var n=0;n/g,'

')},o);t.default=s},function(e,t,n){function r(e){var t=++o;return a(e)+t}var a=n(52),o=0;e.exports=r},function(e,t,n){function r(e){return null==e?"":a(e)}var a=n(53);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e)return e;if(i(e))return o(e,r)+"";if(s(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-c?"-0":t}var a=n(9),o=n(56),i=n(57),s=n(58),c=1/0,l=a?a.prototype:void 0,u=l?l.toString:void 0;e.exports=r},function(e,t,n){var r=n(55),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(5))},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n=12&&t<=14)?1:2},v={arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:g,chinese:function(){return 0},croatian:g,french:function(e){return e>1?1:0},german:function(e){return 1!==e?1:0},russian:g,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},b={arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]},E=/%\{(.*?)\}/g;l.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},l.prototype.extend=function(e,t){u(e,function(e,n){var r=t?t+"."+n:n;"object"==typeof e?this.extend(e,r):this.phrases[r]=e},this)},l.prototype.unset=function(e,t){"string"==typeof e?delete this.phrases[e]:u(e,function(e,n){var r=t?t+"."+n:n;"object"==typeof e?this.unset(e,r):delete this.phrases[r]},this)},l.prototype.clear=function(){this.phrases={}},l.prototype.replace=function(e){this.clear(),this.extend(e)},l.prototype.t=function(e,t){var n,r,a=null==t?{}:t;if("string"==typeof this.phrases[e])n=this.phrases[e];else if("string"==typeof a._)n=a._;else if(this.onMissingKey){var o=this.onMissingKey;r=o(e,a,this.currentLocale,this.tokenRegex)}else this.warn('Missing translation for key: "'+e+'"'),r=e;return"string"==typeof n&&(r=c(n,a,this.currentLocale,this.tokenRegex)),r},l.prototype.has=function(e){return d(this.phrases,e)},l.transformPhrase=function(e,t,n){return c(e,t,n)},e.exports=l},function(e,t,n){"use strict";var r=n(69),a=Object.prototype.toString,o=Object.prototype.hasOwnProperty,i=function(e,t,n){for(var r=0,a=e.length;r=3&&(o=n),"[object Array]"===a.call(e)?i(e,t,o):"string"==typeof e?s(e,t,o):c(e,t,o)};e.exports=l},function(e,t,n){"use strict";var r,a,o=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw a}}),a={},i(function(){throw 42},null,r)}catch(e){e!==a&&(i=null)}else i=null;var s=/^\s*class\b/,c=function(e){try{var t=o.call(e);return s.test(t)}catch(e){return!1}},l=function(e){try{return!c(e)&&(o.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,p="function"==typeof Symbol&&!!Symbol.toStringTag,d="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=i?function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,r)}catch(e){if(e!==a)return!1}return!c(e)}:function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(p)return l(e);if(c(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=Array.prototype.slice,a=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==a.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,o=r.call(arguments,1),i=function(){if(this instanceof n){var a=t.apply(this,o.concat(r.call(arguments)));return Object(a)===a?a:this}return t.apply(e,o.concat(r.call(arguments)))},s=Math.max(0,t.length-o.length),c=[],l=0;l0&&!a.call(e,0))for(var _=0;_0)for(var h=0;h-1?a(n):n}},function(e,t,n){"use strict";var r=n(17),a=n(21);e.exports=function(){var e=a();return r(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}}])}(n(2),n(4))}("undefined"!=typeof self&&self)},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t,n){var r=n(200);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-collab-email-panel .editor{overflow:hidden;border-right:1px solid;border-right-color:#e0e0e0;border-right-color:hsla(var(--ui-03-h,0),var(--ui-03-s,0%),var(--ui-03-l,87.84314%),1);background-color:#f4f4f4;background-color:hsla(var(--ui-02-h,0),var(--ui-02-s,0%),var(--ui-02-l,95.68627%),1)}.ba-collab-email-panel .label-share-email{font-size:16px;font-weight:700}.ba-collab-email-panel>*{transform:translateZ(0)}",""]),t.locals={cssClassName:'"ba-collab-email-panel"'}},function(e,t,n){"use strict";var r=n(9),a=(n.n(r),n(202)),o=n(203),i=n(67),s=r.types.model("AttachReportStore",{attachReport:r.types.boolean,shareMode:r.types.optional(r.types.enumeration("ReportSharingMode",["disabled","context","current"]),"disabled"),reportTitle:r.types.string,objectType:r.types.maybeNull(r.types.string),objectId:r.types.maybeNull(r.types.string),reportVersions:r.types.maybeNull(o.a),attachments:r.types.maybeNull(a.a)}).volatile(function(){return{editAttachments:!1,pickReportOutput:!1,pickReportOutputHelp:!1,attachmentsSnapshot:null}}).views(function(e){return{get showAttachReport(){return"disabled"!==e.shareMode},get isAttachEnabled(){return"disabled"!==e.shareMode&&e.attachReport},get attachmentCount(){return e.attachments?e.attachments.count:0},buildAttachments:function(){if(e.isAttachEnabled){if("context"===e.shareMode)return e.attachments?e.attachments.buildAttachments(e.reportTitle):null;if("current"===e.shareMode){var t=Object(r.getEnv)(e).glassContext.getCurrentContentView();return t?i.a.buildCurrentViewAttachment(t,Object(r.getEnv)(e)):null}}return null}}}).actions(function(e){var t=function(){return Object(r.getEnv)(e).glassContext.hasCapability("canAttach")},n=function(){var t=Object(r.getEnv)(e);return t.features.includes(t.glassFeature.EMAIL_REPORT_CURRENT)},s=function(){var t=Object(r.getEnv)(e);return t.features.includes(t.glassFeature.EMAIL_REPORT_CONTEXTUAL)},c=function(){var t=Object(r.getEnv)(e),n=t.glassContext,a=n.getCurrentContentView();return i.a.canAttachCurrentView(a)},l=function(){return["report","reportView"].includes(e.objectType)&&!!e.objectId};return{afterCreate:function(){if(t()){if(s()&&l())return e.shareMode="context",e.attachReport=!1,e.reportVersions=o.a.create(),e.reportVersions.load(),void(e.attachments=a.a.create());if(n()&&c())return e.shareMode="current",void(e.attachReport=!0)}e.shareMode="disabled"},toggleAttachReport:function(){e.attachReport=!e.attachReport},openEditAttachments:function(){e.editAttachments||(e.backupAttachments(),e.editAttachments=!0)},doneEditAttachments:function(){e.editAttachments=!1,e.attachmentsSnapshot=null},cancelEditAttachments:function(){e.restoreAttachments(),e.editAttachments=!1},backupAttachments:function(){e.attachmentsSnapshot=Object(r.getSnapshot)(e.attachments)},restoreAttachments:function(){null!==e.attachmentsSnapshot&&(Object(r.applySnapshot)(e.attachments,e.attachmentsSnapshot),e.attachmentsSnapshot=null)},openPickReportOutput:function(){e.pickReportOutput=!0},closePickReportOutput:function(){e.pickReportOutput=!1},togglePickReportOutputHelp:function(){e.pickReportOutputHelp=!e.pickReportOutputHelp}}});t.a=s,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(s,"default","/usr/src/src/react/collaboration-ui/models/attachments/AttachReportStore.js")}()},function(e,t,n){"use strict";var r=n(9),a=(n.n(r),n(66)),o=r.types.model("AttachedOutputs",{outputs:r.types.optional(r.types.array(r.types.reference(a.a)),[])}).views(function(e){return{get count(){return e.outputs.length},buildAttachments:function(t){if(0===e.outputs.length)return null;var n=e.outputs[0].locale,r=e.outputs.some(function(e){return e.locale!==n});return e.outputs.map(function(e){return e.buildAttachment(t,r)})}}}).actions(function(e){return{addOutput:function(t){e.outputs.push(t)},removeOutput:function(t){e.outputs=e.outputs.filter(function(e,n){return n!==t})}}});t.a=o,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(o,"default","/usr/src/src/react/collaboration-ui/models/attachments/AttachedOutputs.js")}()},function(e,t,n){"use strict";var r=n(9),a=(n.n(r),n(37)),o=n.n(a),i=n(204),s=n(38),c=r.types.model("ReportVersionsStore",{versions:r.types.optional(r.types.array(i.a),[]),selectedVersion:r.types.maybeNull(r.types.reference(i.a)),state:r.types.optional(r.types.enumeration("State",["pending","loaded","error"]),"pending")}).views(function(e){return{options:function(){return e.versions.map(function(e){return{value:e,label:e.dateTimeLabel}})},getParentReportId:function(){return s.a.getParentOfType(e,"AttachReportStore").objectId}}}).actions(function(e){var t=function(e,t){var n={method:"GET",contentType:"application/json; charset=utf-8",dataType:"json",url:"v1/objects/"+t+"/versions?fields=creationTime"};return e.getCoreSvc(".Ajax").ajax(n)};return{load:function(){if("loaded"===e.state)return Promise.resolve();var n=Object(r.getEnv)(e).glassContext,a=e.getParentReportId();return t(n,a).then(function(t){o.a.sortBy(t.data.data,function(e){return e.creationTime}).reverse().forEach(function(t){return e.addVersion(t)}),e.setState("loaded"),e.versions.length>0&&e.setSelectedVersion(e.versions[0])}).catch(function(){e.setState("error")})},addVersion:function(t){e.versions.push(i.a.create(t))},setState:function(t){e.state=t},setSelectedVersion:function(t){e.selectedVersion=t,t.onSelect()}}});t.a=c,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(c,"default","/usr/src/src/react/collaboration-ui/models/attachments/ReportVersionsStore.js")}()},function(e,t,n){"use strict";var r=n(9),a=(n.n(r),n(205)),o=r.types.model("ReportVersion",{id:r.types.identifier,creationTime:r.types.string,modificationTime:r.types.string,outputs:r.types.maybeNull(a.a)}).views(function(e){return{get dateTimeLabel(){return Object(r.getEnv)(e).dateTimeUtils.formatDateTime(e.creationTime,"medium")}}}).actions(function(e){return{onSelect:function(){e.outputs||(e.outputs=a.a.create(),e.outputs.load())}}});t.a=o,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(o,"default","/usr/src/src/react/collaboration-ui/models/attachments/ReportVersion.js")}()},function(e,t,n){"use strict";var r=n(9),a=(n.n(r),n(37)),o=n.n(a),i=n(66),s=n(38),c=Object.assign||function(e){for(var t=1;t0&&a(),e.setState("loaded")}).catch(function(){e.setState("error")})},addOutput:function(t){e.outputs.push(t)},setState:function(t){e.state=t},setSelectedBurstKey:function(t){e.selectedBurstKey=t},setSelectedFormat:function(t){e.selectedFormat=t},setSelectedLocale:function(t){e.selectedLocale=t},setBurstKeyOptions:function(t){e.burstKeyOptions=t},setFormatOptions:function(t){e.formatOptions=t},setLocaleOptions:function(t){e.localeOptions=t}}});t.a=p,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(u,"_getUniqueOptions","/usr/src/src/react/collaboration-ui/models/attachments/ReportOutputsStore.js"),__REACT_HOT_LOADER__.register(p,"default","/usr/src/src/react/collaboration-ui/models/attachments/ReportOutputsStore.js"))}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return w});var i,s,c,l,u=n(2),p=n.n(u),d=n(3),_=n.n(d),f=n(5),h=(n.n(f),n(4)),m=(n.n(h),n(207)),y=n.n(m),g=n(208),v=n(212),b=n.n(v),E=function(){function e(e,t){for(var n=0;n0?this.renderAttachments():p.a.createElement(h.Label,{className:"label-empty-state",label:this.nls("edit_attachments_empty_state"),type:"caption"})))),p.a.createElement(h.FlexItem,{gutter:3,textAlign:"right"},p.a.createElement(h.Button,{label:this.nls("link_done"),variant:"solid",intent:"primary","data-tid":"button_done",onClick:r}),p.a.createElement(h.Button,{label:this.nls("button_cancel"),variant:"frame",intent:"primary","data-tid":"button_cancel",onClick:a})))}}]),t}(u.Component),c.propTypes={nls:_.a.func.isRequired,attachReportStore:_.a.shape({attachments:_.a.object.isRequired,doneEditAttachments:_.a.func.isRequired,cancelEditAttachments:_.a.func.isRequired,openPickReportOutput:_.a.func.isRequired})},s=l))||s)||s;!function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(O,"cssClassName","/usr/src/src/react/collaboration-ui/panels/Attachments/EditAttachmentsPanel.js"),__REACT_HOT_LOADER__.register(w,"EditAttachmentsPanel","/usr/src/src/react/collaboration-ui/panels/Attachments/EditAttachmentsPanel.js"))}()},function(e,t,n){!function(t,r){e.exports=function(e){return webpackJsonPBaGraphics([2070],{"250457a09269537fda8e":function(e,t,n){"use strict";var r=n("9689a9c94ae38b47fa2c"),a=n.n(r),o=n("9ce58a7deea14f49ef01"),i=n.n(o),s=new a.a({id:"add--filled_32_v7",use:"add--filled_32_v7-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},"3865314c5959606874d4":function(t,n){t.exports=e},fc0dd6cdd67f05987860:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("250457a09269537fda8e"));t.default=a.a}},["fc0dd6cdd67f05987860"])}(n(11))}("undefined"!=typeof self&&self)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return v});var i,s,c=n(2),l=n.n(c),u=n(3),p=n.n(u),d=n(4),_=(n.n(d),n(209)),f=n.n(_),h=n(210),m=n.n(h),y=function(){function e(e,t){for(var n=0;n'});i.a.add(s),t.a=s}},["82643bc22d9c0e1c5ba8"])}(n(11))}("undefined"!=typeof self&&self)},function(e,t,n){var r=n(211);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-collab-report-output-list-row{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:relative;padding:8px 0;border-bottom:1px solid;border-bottom-color:#e0e0e0;border-bottom-color:hsla(var(--ui-03-h,0),var(--ui-03-s,0%),var(--ui-03-l,87.84314%),1)}.ba-collab-report-output-list-row .output-labels{font-size:.75rem}.ba-collab-report-output-list-row .remove-button-container{padding:8px 0}.ba-collab-report-output-list-row .remove-button-container .ba-common-svgIcon{height:1.25rem;width:16px}",""]),t.locals={cssClassName:'"ba-collab-report-output-list-row"'}},function(e,t,n){var r=n(213);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-collab-attached-reports-panel{background-color:#fff;background-color:hsla(var(--ui-01-h,0),var(--ui-01-s,0%),var(--ui-01-l,100%),1)}.ba-collab-attached-reports-panel .label-attach-report-output{font-size:16px;font-weight:700}.ba-collab-attached-reports-panel .label-empty-state{margin-top:8px}.ba-collab-attached-reports-panel .add-report-output-button{height:100%;color:#0f62fe;color:hsla(var(--interactive-01-h,219.16318),var(--interactive-01-s,99.17012%),var(--interactive-01-l,52.7451%),1)}",""]),t.locals={cssClassName:'"ba-collab-attached-reports-panel"'}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return A});var i,s,c,l,u=n(2),p=n.n(u),d=n(24),_=(n.n(d),n(3)),f=n.n(_),h=n(5),m=(n.n(h),n(4)),y=(n.n(m),n(215)),g=n.n(y),v=n(65),b=n.n(v),E=n(216),O=n.n(E),w=function(){function e(e,t){for(var n=0;n'});i.a.add(s),t.a=s},cb3c3ce88d37644b7f7e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3865314c5959606874d4"),a=(n.n(r),n("c02e4b7e7a77e8db255e"));t.default=a.a}},["cb3c3ce88d37644b7f7e"])}(n(11))}("undefined"!=typeof self&&self)},function(e,t,n){var r=n(217);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-collab-pick-report-output{background-color:#fff;background-color:hsla(var(--ui-01-h,0),var(--ui-01-s,0%),var(--ui-01-l,100%),1)}.ba-collab-pick-report-output .label-pick-report-output{font-size:16px;font-weight:700}.ba-collab-pick-report-output .information-icon{margin-left:8px}.ba-collab-pick-report-output .pick-output-help-flyout{width:320px}.ba-collab-pick-report-output .pick-output-help-flyout .flyout-elem{margin-top:16px;text-align:left}.ba-collab-pick-report-output .spinner-middle{position:absolute;top:50%;left:50%;margin-right:-50%;transform:translate(-50%,-50%)}.ba-collab-pick-report-output .load-outputs-error{background-color:rgba(218,30,40,.1);background-color:hsla(var(--danger-h,356.80851),var(--danger-s,75.80645%),var(--danger-l,48.62745%),.1);line-height:16px;padding:12px;margin-bottom:16px}.ba-collab-pick-report-output .load-outputs-error .error-label{margin-left:8px}",""]),t.locals={cssClassName:'"ba-collab-pick-report-output"'}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return b});var i,s,c,l,u=n(2),p=n.n(u),d=n(3),_=n.n(d),f=n(5),h=(n.n(f),n(4)),m=(n.n(h),n(219)),y=n(227),g=n(231),v=function(){function e(e,t){for(var n=0;n0?y.a.id:t.meta.disabled?m.a.id:e.connectorOrder[t.getType()].iconId,a=t.meta.errors.length>0||t.meta.disabled||t.meta.hidden?"has-icon grey-out":"has-icon",o=t.getLabel();return[p.a.createElement(h.FlexItem,{gutter:[2,0,0,0],key:n.toString(),className:a},p.a.createElement(h.SVGIcon,{className:r,iconId:r}),0!==t.meta.errors.length||t.meta.disabled&&"full"!==t.meta.permission?p.a.createElement(h.Label,{label:o}):p.a.createElement(h.Link,{onClick:function(n){return e.onClick(t,n)}},o)),t.meta.errors.length>0&&p.a.createElement(h.FlexItem,{gutter:[0,0,0,3],className:"inline-error grey-out"},p.a.createElement(h.Label,{label:e.nls("error_invalid_connection")}))]}))})))}}]),t}(u.Component),c.propTypes={shareStore:_.a.shape({connectors:_.a.arrayOf(_.a.object).isRequired,isEmailEnabled:_.a.func.isRequired}).isRequired,nls:_.a.func.isRequired,go:_.a.func.isRequired},s=l))||s)||s;!function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(R,"cssClassName","/usr/src/src/react/collaboration-ui/tabs/SendTab.js"),__REACT_HOT_LOADER__.register(A,"SendTab","/usr/src/src/react/collaboration-ui/tabs/SendTab.js"))}()},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"disable_16",use:"disable_16-usage",viewBox:"0 0 16 16",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"warning--alt_32",use:"warning--alt_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"add-data-source_128",use:"add-data-source_128-usage",viewBox:"0 0 200 200",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"logo--slack_32",use:"logo--slack_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"email_32",use:"email_32-usage",viewBox:"0 0 32 32",content:''});i.a.add(s),t.a=s},function(e,t,n){var r=n(226);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-collab-send-tab .has-icon svg{vertical-align:text-bottom;margin-right:8px}.ba-collab-send-tab .has-icon svg.warn_16{fill:#f1c21b;fill:hsla(var(--support-03-h,46.82243),var(--support-03-s,88.42975%),var(--support-03-l,52.54902%),1)}.ba-collab-send-tab .has-icon svg.disable_16{fill:#a8a8a8;fill:hsla(var(--text-03-h,0),var(--text-03-s,0%),var(--text-03-l,65.88235%),1)}.ba-collab-send-tab .grey-out a,.ba-collab-send-tab .grey-out span,.ba-collab-send-tab .grey-out svg.slack_16{opacity:.5}.ba-collab-send-tab .platform-configure-message{width:100%}.ba-collab-send-tab .inline-error{font-size:.75rem}.ba-collab-send-tab .spinner-middle{position:absolute;top:50%;left:50%;margin-right:-50%;transform:translate(-50%,-50%)}",""]),t.locals={cssClassName:'"ba-collab-send-tab"'}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return A});var i,s,c,l,u=n(2),p=n.n(u),d=n(3),_=n.n(d),f=n(5),h=(n.n(f),n(4)),m=(n.n(h),n(64)),y=n.n(m),g=n(228),v=n(23),b=n.n(v),E=n(229),O=n.n(E),w=function(){function e(e,t){for(var n=0;n'}}]),t}(u.Component),c.propTypes={shareStore:_.a.shape({link:_.a.shape({shareUrl:_.a.string,embedUrl:_.a.string}).isRequired,isDirty:_.a.bool.isRequired,instrument:_.a.func.isRequired}).isRequired,nls:_.a.func.isRequired,width:_.a.number,height:_.a.number,linkVisible:_.a.bool,embedVisible:_.a.bool,isEmptyTab:_.a.bool},s=l))||s)||s;!function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(R,"cssClassName","/usr/src/src/react/collaboration-ui/tabs/EmbedTab.js"),__REACT_HOT_LOADER__.register(A,"EmbedTab","/usr/src/src/react/collaboration-ui/tabs/EmbedTab.js"))}()},function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=new a.a({id:"empty-folder_128",use:"empty-folder_128-usage",viewBox:"0 0 200 200",content:''});i.a.add(s),t.a=s},function(e,t,n){var r=n(230);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0};a.transform=void 0,n(8)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(7)(!1),t.push([e.i,".ba-collab-embed-tab .platform-configure-message{width:100%}.ba-collab-embed-tab .warning-icon{position:relative;bottom:7px;margin:0 0 0 8px}",""]),t.locals={cssClassName:'"ba-collab-embed-tab"'}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return v});var i,s,c,l,u=n(2),p=n.n(u),d=n(3),_=n.n(d),f=n(5),h=(n.n(f),n(4)),m=(n.n(h),n(23)),y=n.n(m),g=function(){function e(e,t){for(var n=0;ntextarea{margin-top:0}.ba-collab-panel .ba-common-dropdown__wrapper{display:block}.ba-collab-panel .label{color:inherit}.ba-collab-panel .header{font-size:1.5rem;line-height:normal}.ba-collab-panel .section-header{font-weight:700;padding-bottom:8px;border-bottom:1px solid;border-bottom-color:#e0e0e0;border-bottom-color:hsla(var(--ui-03-h,0),var(--ui-03-s,0%),var(--ui-03-l,87.84314%),1)}.ba-collab-panel .section-label,.ba-collab-panel .slack-label{font-weight:700}.ba-collab-panel .send-label.ba-common-label.is-caption{margin-bottom:0}",""]),t.locals={cssClassName:'"ba-collab-panel"'}},function(e,t,n){"use strict";var r=n(9),a=(n.n(r),r.types.model("ShareStore",{canSend:r.types.optional(r.types.boolean,!1),canEmbed:r.types.optional(r.types.boolean,!1),canExport:r.types.optional(r.types.boolean,!1),assetTitle:r.types.string,assetType:r.types.string,isIE11:r.types.boolean,language:r.types.string,version:r.types.string,isDirty:r.types.boolean,objectType:r.types.maybeNull(r.types.string),objectId:r.types.maybeNull(r.types.string)}).volatile(function(){return{connectors:null,enabledSend:!0,enabledLink:!0,enabledEmailLink:!0,enabledEmbed:!0,enabledExport:!0,link:null}}).views(function(e){return{isEmailEnabled:function(){var t=Object(r.getEnv)(e);return t.features.includes(t.glassFeature.EMAIL)},isEmailImageEnabled:function(){var t=Object(r.getEnv)(e);return t.features.includes(t.glassFeature.EMAIL_IMAGE)},getEnv:function(){return Object(r.getEnv)(e)},getGlassContext:function(){return Object(r.getEnv)(e).glassContext},getRootElement:function(){return Object(r.getEnv)(e).$root},getCanvasEditor:function(){return Object(r.getEnv)(e).CanvasEditor},isLinkShareable:function(t){return Object(r.getEnv)(e).isLinkShareable(t)},generatePDF:function(t,n){return Object(r.getEnv)(e).generatePDF(t,n)},instrument:function(t,n){return Object(r.getEnv)(e).instrument(t,n)},send:function(t){return Object(r.getEnv)(e).send(t)},get isLinkEmpty(){return!e.link||!e.link.shareUrl}}}).actions(function(e){return{enableSend:function(t){e.canSend=e.enabledSend=t},enableLink:function(t){e.enabledLink=t},enableEmailLink:function(t){e.enabledEmailLink=t},enableEmbed:function(t){e.canEmbed=e.enabledEmbed=t},enableExport:function(t){e.canExport=e.enabledExport=t},setConnectors:function(t){e.connectors=t,e.canSend=e.enabledSend&&t.length>0},setLink:function(t){e.link=t,e.canEmbed=e.enabledEmbed&&!!t},setAssetTitle:function(t){e.assetTitle=t},setAssetType:function(t){e.assetType=t},setIsDirty:function(t){e.isDirty=t}}}));t.a=a,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(a,"default","/usr/src/src/react/collaboration-ui/models/ShareStore.js")}()},function(e,t,n){"use strict";var r=n(9),a=(n.n(r),r.types.model("ImageStore",{showIncludeImage:r.types.boolean,includeImage:r.types.boolean,image:r.types.string,imageLoaded:r.types.boolean,imageLabel:r.types.string,imageWidth:r.types.number,imageHeight:r.types.number,imageError:r.types.optional(r.types.string,""),isMaximized:r.types.optional(r.types.boolean,!1),zoomOption:r.types.optional(r.types.number,0),zoom:r.types.optional(r.types.number,1),translateX:r.types.optional(r.types.number,0),isImagePanelOpen:r.types.optional(r.types.boolean,!1)}).views(function(e){return{isImageEnabled:function(){return e.showIncludeImage&&e.includeImage}}}).actions(function(e){var t=null;return{setShowIncludeImage:function(t){e.showIncludeImage!==t&&(e.includeImage=t),e.showIncludeImage=t},toggleIncludeImage:function(){e.includeImage=!e.includeImage},setImage:function(t,n,r,a){e.image=t,e.imageLabel=n,e.imageWidth=r,e.imageHeight=a,e.imageLoaded=!0},setImageLoaded:function(n,r){t=null,e.imageLoaded=n,e.imageError=r&&r.message,n||(e.image="")},refreshImage:function(){return t||(t=Object(r.getEnv)(e).refreshImage().then(function(){return e.setImageLoaded(!0)},function(t){return e.setImageLoaded(!0,t)})),t},setMaximize:function(t){e.isMaximized=t},setZoomLevel:function(t,n){e.zoom=t,e.zoomOption=n},setTranslateX:function(t){e.translateX=t},setIsImagePanelOpen:function(t){e.isImagePanelOpen=t}}}));t.a=a,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(a,"default","/usr/src/src/react/collaboration-ui/models/ImageStore.js")}()}])}); //# sourceMappingURL=collaboration-ui.min.js.map