www.sednanetwork.com Open in urlscan Pro
35.170.167.69  Public Scan

Submitted URL: http://sednanetwork.com/launch/static/js/main.a851a2e1.chunk.js
Effective URL: https://www.sednanetwork.com/launch/static/js/main.a851a2e1.chunk.js
Submission: On December 04 via api from CH — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

(this["webpackJsonpsedna-portal"]=this["webpackJsonpsedna-portal"]||[]).push([[5],[,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return empty})),n.d(t,"g",(function(){return get})),n.d(t,"h",(function(){return getAll})),n.d(t,"l",(function(){return isLoaded})),n.d(t,"o",(function(){return load})),n.d(t,"p",(function(){return loadAll})),n.d(t,"t",(function(){return update})),n.d(t,"u",(function(){return updateArray})),n.d(t,"v",(function(){return upsert})),n.d(t,"w",(function(){return upsertAll})),n.d(t,"x",(function(){return upsertAllFromMap})),n.d(t,"j",(function(){return insertAll})),n.d(t,"k",(function(){return insertAllFromMap})),n.d(t,"b",(function(){return deleteEntity})),n.d(t,"s",(function(){return removeFrom})),n.d(t,"c",(function(){return deleteFrom})),n.d(t,"d",(function(){return deleteWhere})),n.d(t,"q",(function(){return loadAllFromMap})),n.d(t,"i",(function(){return getAllAsMap})),n.d(t,"r",(function(){return loading})),n.d(t,"f",(function(){return fail})),n.d(t,"m",(function(){return join})),n.d(t,"n",(function(){return join2}));var r=n(7),a=n(4),i=n(42);function not(e){return function(t){return!e(t)}}var o="singleton";function empty(){return{entity:{},error:{},fetchStatus:{},lastLoaded:{}}}function get(e,t){var n=e.entity[t],r=e.lastLoaded[t];if("undefined"!==typeof n)return i.a.of(n,r);var a=e.error[t];return a?i.a.ofError(a):"LOADING"===e.fetchStatus[t]?i.a.loading():i.a.notLoading()}function getAll(e){var t=[];for(var n in e.entity)if(e.entity.hasOwnProperty(n)){var r=e.entity[n];"undefined"!==typeof r&&t.push(r)}return t}function isLoaded(e,t){return"LOADED"===e.fetchStatus[t]}function load(e,t,n,r){return loadAll(e,[n],(function(){return t}),r)}function loadAll(e,t,n,r){return t.reduce((function reducer(e,t,a){var i=n(t,a);return e.entity[i]=t,e.error[i]=void 0,e.fetchStatus[i]="LOADED",(null===r||void 0===r?void 0:r.includeTimestamp)&&(e.lastLoaded[i]=Date.now()),e}),clone(e))}function update(e,t,n){return Object.keys(e.entity).reduce((function(e,r){var a=e.entity[r];return"undefined"===typeof a||(e.entity[r]=n(a)?t(a):a),e}),clone(e))}function updateArray(e,t,n){return Object.keys(e.entity).reduce((function(e,r){var a=e.entity[r];return"undefined"===typeof a||(e.entity[r]=a.map((function(e){return n(e)?t(e):e}))),e}),clone(e))}function upsert(e,t,n,i,o){var c,s=null!==(c=e.entity[t])&&void 0!==c?c:[],l=i(n);return Object(a.a)(Object(a.a)({},e),{},{entity:Object(a.a)(Object(a.a)({},e.entity),{},Object(r.a)({},t,[n].concat(s.filter((function(e){return i(e)!==l}))).reverse())),fetchStatus:Object(a.a)(Object(a.a)({},e.fetchStatus),{},Object(r.a)({},t,"LOADED")),error:Object(a.a)(Object(a.a)({},e.error),{},Object(r.a)({},t,void 0))},(null===o||void 0===o?void 0:o.includeTimestamp)&&{lastLoaded:Object(a.a)(Object(a.a)({},e.lastLoaded),{},Object(r.a)({},t,Date.now()))})}function upsertAll(e,t,n,i,o){var c,s=null!==(c=e.entity[t])&&void 0!==c?c:[],l=new Set(n.map(i));return Object(a.a)(Object(a.a)({},e),{},{entity:Object(a.a)(Object(a.a)({},e.entity),{},Object(r.a)({},t,s.filter((function(e){return!l.has(i(e))})).concat(n))),fetchStatus:Object(a.a)(Object(a.a)({},e.fetchStatus),{},Object(r.a)({},t,"LOADED")),error:Object(a.a)(Object(a.a)({},e.error),{},Object(r.a)({},t,void 0))},(null===o||void 0===o?void 0:o.includeTimestamp)&&{lastLoaded:Object(a.a)(Object(a.a)({},e.lastLoaded),{},Object(r.a)({},t,Date.now()))})}function upsertAllFromMap(e,t,n){var r={};for(var a in t)t.hasOwnProperty(a)&&function(){var i,o,c=null!==(i=e.entity[a])&&void 0!==i?i:[],s=new Set(null===(o=t[a])||void 0===o?void 0:o.map(n));r[a]=c.filter((function(e){return!s.has(n(e))})).concat(t[a])}();return loadAllFromMap(e,r)}function insertAll(e,t,n,i){var o,c=null!==(o=e.entity[t])&&void 0!==o?o:[],s=new Set(c.map(i));return Object(a.a)(Object(a.a)({},e),{},{entity:Object(a.a)(Object(a.a)({},e.entity),{},Object(r.a)({},t,c.concat(n.filter((function(e){return!s.has(i(e))}))))),fetchStatus:Object(a.a)(Object(a.a)({},e.fetchStatus),{},Object(r.a)({},t,"LOADED")),error:Object(a.a)(Object(a.a)({},e.error),{},Object(r.a)({},t,void 0))})}function insertAllFromMap(e,t,n){var r={};for(var a in t)t.hasOwnProperty(a)&&function(){var i,o=null!==(i=e.entity[a])&&void 0!==i?i:[],c=new Set(o.map(n));r[a]=o.concat(t[a].filter((function(e){return!c.has(n(e))})))}();return loadAllFromMap(e,r)}function deleteEntity(e,t){var n=clone(e);return delete n.entity[t],delete n.error[t],delete n.fetchStatus[t],delete n.lastLoaded[t],n}function removeFrom(e,t,n){var i=e.entity[t];return i?Object(a.a)(Object(a.a)({},e),{},{entity:Object(a.a)(Object(a.a)({},e.entity),{},Object(r.a)({},t,i.filter(not(n))))}):e}function deleteFrom(e,t){return Object(a.a)(Object(a.a)({},e),{},{entity:Object.keys(e.entity).reduce((function(n,r){var a=e.entity[r];return"undefined"!==typeof a&&(n[r]=a.filter(not(t))),n}),{})})}function deleteWhere(e,t){var n=clone(e);return Object.keys(e.entity).forEach((function(r){var a=e.entity[r];void 0!==a&&t(a)&&(delete n.entity[r],delete n.error[r],delete n.fetchStatus[r],delete n.lastLoaded[r])})),n}function loadAllFromMap(e,t){return Object.keys(t).reduce((function(e,n){return e.entity[n]=t[n],e.error[n]=void 0,e.fetchStatus[n]="LOADED",e}),clone(e))}function getAllAsMap(e){var t={};for(var n in e.entity)if(e.entity.hasOwnProperty(n)){var r=e.entity[n];"undefined"!==typeof r&&(t[n]=r)}return t}function loading(e,t){return Object(a.a)(Object(a.a)({},e),{},{entity:Object(a.a)(Object(a.a)({},e.entity),{},Object(r.a)({},t,void 0)),error:Object(a.a)(Object(a.a)({},e.error),{},Object(r.a)({},t,void 0)),fetchStatus:Object(a.a)(Object(a.a)({},e.fetchStatus),{},Object(r.a)({},t,"LOADING"))})}function fail(e,t,n){return Object(a.a)(Object(a.a)({},e),{},{entity:Object(a.a)(Object(a.a)({},e.entity),{},Object(r.a)({},t,void 0)),fetchStatus:Object(a.a)(Object(a.a)({},e.fetchStatus),{},Object(r.a)({},t,"ERROR")),error:Object(a.a)(Object(a.a)({},e.error),{},Object(r.a)({},t,n))})}function join(e,t){return e.flatMap((function(e){return i.a.traverse(e,t)}))}function join2(e,t,n){return e.flatMap((function(e){return i.a.traverse(e,t)})).flatMap((function(e){return i.a.traverse(e,n)}))}function clone(e){return{entity:Object(a.a)({},e.entity),fetchStatus:Object(a.a)({},e.fetchStatus),error:Object(a.a)({},e.error),lastLoaded:Object(a.a)({},e.lastLoaded)}}},,,,,,function(e,t,n){"use strict";var r,a,i,o,c,s,l,u,d;function negateApplies(e){return e===i.YES?i.NO:e===i.NO?i.YES:i.MAYBE}function addressToString(e){return e.name?e.email?"".concat(e.name," <").concat(e.email,">"):e.name:e.email}n.d(t,"j",(function(){return r})),n.d(t,"i",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"y",(function(){return negateApplies})),n.d(t,"l",(function(){return o})),n.d(t,"m",(function(){return c})),n.d(t,"x",(function(){return addressToString})),n.d(t,"v",(function(){return s})),n.d(t,"t",(function(){return l})),n.d(t,"r",(function(){return u})),n.d(t,"w",(function(){return d})),n.d(t,"e",(function(){return _})),n.d(t,"f",(function(){return b})),n.d(t,"s",(function(){return p})),n.d(t,"u",(function(){return m})),n.d(t,"p",(function(){return h})),n.d(t,"o",(function(){return j})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return O})),n.d(t,"n",(function(){return T})),n.d(t,"k",(function(){return y})),n.d(t,"g",(function(){return S})),n.d(t,"h",(function(){return C})),n.d(t,"c",(function(){return A})),n.d(t,"q",(function(){return E})),function(e){e.BOOKMARK="BOOKMARK",e.LIST="LIST",e.BUCKET="BUCKET",e.ITEMS_AND_DOCUMENTS="ITEMS_AND_DOCUMENTS"}(r||(r={})),function(e){e.FRESH="FRESH",e.NEXT_PAGE="NEXT_PAGE",e.AUTO_REFRESH="AUTO_REFRESH"}(a||(a={})),function(e){e.YES="YES",e.NO="NO",e.MAYBE="\xaf\\_(\u30c4)_/\xaf"}(i||(i={})),function(e){e.UNVERIFIED="UNVERIFIED",e.UNSIGNED="UNSIGNED",e.VERIFIED="VERIFIED",e.FAILED_VERIFICATION="FAILED_VERIFICATION"}(o||(o={})),function(e){e.PrivateDraft="PRIVATE_DRAFT",e.Draft="DRAFT",e.Sending="SENDING",e.Sent="SENT",e.Scheduled="SCHEDULED",e.Cancelled="CANCELLED",e.Received="RECEIVED"}(c||(c={})),function(e){e.TEAM_NAME="TEAM_NAME",e.TEAM_NAME_WITH_COUNT="TEAM_NAME_WITH_COUNT",e.SEARCH_NAME="SEARCH_NAME",e.SEARCH_NAME_WITH_COUNT="SEARCH_NAME_WITH_COUNT",e.TEAM_AND_SEARCH_NAME="TEAM_AND_SEARCH_NAME",e.TEAM_AND_SEARCH_NAME_WITH_COUNT="TEAM_AND_SEARCH_NAME_WITH_COUNT"}(s||(s={})),function(e){e.ON="ON",e.OFF="OFF",e.OPT_IN="OPT_IN",e.OPT_OUT="OPT_OUT"}(l||(l={})),function(e){e.OFF="OFF",e.A="A",e.B="B",e.C="C",e.D="D",e.E="E"}(u||(u={})),function(e){e.NONE="NONE",e.MODEST="MODEST",e.BOLD="BOLD"}(d||(d={}));var b,p,m,h,g,j,v,O,T,y,S,C,A,E,w,_={BULK_ARCHIVE_MY_MESSAGES:!1,TOPICS:!0,BOOKMARK_UNREAD:!1,ARCHIVE_FOR_ALL:!1,UPDATE_BAR_FREQUENCY:24,NESTED_SEARCH:!1,SEARCH_PARTIAL_MATCH_FUZZINESS:80,SUGGEST_CATEGORY_AND_ASSIGNMENT_TAGS:!0,LIVE_CHAT:!1,SEARCH_BUCKETS:0,CHANGE_DRAFT_OWNER:!1,ENABLE_VIRUS_SCANNING:!1,FLEX_DOCS_MANAGEMENT:!1,LIST_WIDTH:25,JRM_CREATE:!1,TITLE:s.TEAM_NAME,PARTIAL_AUTO_SUGGEST:!1,MUTE_CONTACT:!1,SPLIT_CONTACT_ADDRESSES:!0,REMOVE_DATE_HEADERS:!1,TAG_SEARCH_ALL_TEAMS:!1,MANAGE_CATEGORY_TAGS:!1,UNREAD_COMMENT_SEARCH_TOKEN:!1,UNREAD_COMMENT_IN_BUCKET:!1,MANAGE_TEAMS:!1,NEW_NOTES_UI:!1,EXPLICIT_TEAM_TOKEN:!1,VERIFIED_BY_SEDNA:d.NONE,MANAGE_USERS:!1,SEDNA_GUIDES_LAUNCHPAD:!1,TABLEAU_REPORTS_CONFIG:[],NEW_MESSAGE_SHARE_MODAL:!1,DEFAULT_TEAM_BADGE:!1,INLINE_DATE_FILTERS:!1,SEARCH_PLATFORM:!1,SIDEBAR_NAVIGATION:l.OFF,FILTER_SENT_IN_INBOX:!1,SHOW_PROFILES:!1,MY_WORK:!1,SEDNA_LITE_EXPERIMENT:u.OFF,P2_ADDRESS_BOOK:!1,AUTOMATIC_SIGNATURE_SWITCHER:!1,FOLLOW_JOB_TAGS:!1,SEDNA_LITE_DOMAIN_ALLOWLIST:[],ADD_FROM_SEDNA_SEARCH_LIMIT:36,SEDNA_LITE:!1,MESSAGE_LIST_QUICK_FILTERS:!1,WORKFLOWS:!1,SIDEBAR_BOOKMARKS:!1,ENABLE_OPEN_TELEMETRY:!1,HIDE_LARGE_MESSAGE_THREAD:0};!function(e){e.ALL="VISIBLE_TO_ALL",e.ONLY_AUTHOR="VISIBLE_ONLY_TO_AUTHOR"}(b||(b={})),function(e){e.NOT_SENT="NOT_SENT",e.SENDING="SENDING",e.SENT="SENT"}(p||(p={})),function(e){e.AFFINITY="40"}(m||(m={})),function(e){e.TENANT="TENANT",e.TEAM="TEAM"}(h||(h={})),function(e){e.EXPERIMENT_A="A",e.EXPERIMENT_B="B",e.ENABLED="ENABLED",e.LEGACY="LEGACY"}(g||(g={})),function(e){e.DEFAULT="default",e.DENIED="denied",e.GRANTED="granted"}(j||(j={})),function(e){e.UNRECOGNIZED="UNRECOGNIZED",e.IN_ADDRESS_BOOK="IN_ADDRESS_BOOK"}(v||(v={})),function(e){e.NONE="NONE",e.READ_ONLY="READ_ONLY",e.READ_WRITE="READ_WRITE"}(O||(O={})),function(e){e[e.info=0]="info",e[e.warning=1]="warning"}(T||(T={})),function(e){e.NOT_LOADING="NOT_LOADING",e.LOADING="LOADING",e.LOADED="LOADED"}(y||(y={})),function(e){e.AND="and",e.OR="or",e.NOT="not"}(S||(S={})),function(e){e.text="text",e.subject="subject",e.body="body",e.from="from",e.fromEmail="fromEmail",e.fromEmailPartial="fromEmailPartial",e.to="to",e.toEmail="toEmail",e.toEmailPartial="toEmailPartial",e.cc="cc",e.ccEmail="ccEmail",e.ccEmailPartial="ccEmailPartial",e.category="category",e.jobReference="jobReference",e.vesselName="vesselName",e.team="team",e.user="user",e.comment="comment",e.attachmentName="attachmentName",e.relativeTime="relativeTime",e.beforeTime="beforeTime",e.afterTime="afterTime",e.inbox="inbox",e.stored="stored",e.sent="sent",e.draft="draft",e.myMessages="myMessages",e.myWork="myWork",e.following="following",e.allTeams="allTeams",e.hasComment="hasComment",e.hasUnreadComment="hasUnreadComment",e.hasCategory="hasCategory",e.hasJobReference="hasJobReference",e.hasPerson="hasPerson",e.isRead="isRead",e.isUnread="isUnread",e.isNote="isNote",e.hasAttachment="hasAttachment",e.messageId="messageId",e.scheduled="scheduled",e.cancelled="cancelled"}(C||(C={})),function(e){e.ONLINE="ONLINE",e.OFFLINE="OFFLINE"}(A||(A={})),function(e){e.STABLE="stable",e.CRITICAL="critical"}(E||(E={})),function(e){e.AOS="aos"}(w||(w={}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return va})),n.d(t,"e",(function(){return getIcon})),n.d(t,"a",(function(){return _e})),n.d(t,"b",(function(){return xe})),n.d(t,"d",(function(){return ut}));var r=n(7),a=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=a.createElement("path",{d:"M11 11V4h2v7h7v2h-7v7h-2v-7H4v-2z"});function SvgAdd(e,t){var n=e.title,r=e.titleId,o=_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?a.createElement("title",{id:r},n):null,i)}var o=a.forwardRef(SvgAdd);n.p;function add_snippet_extends(){return(add_snippet_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function add_snippet_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function add_snippet_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=a.createElement("path",{d:"M17 14v-3h2v3h3v2h-3v3h-2v-3h-3v-2h3zm3-8v2H4V6h16zm-8 5v2H4v-2h8zm0 5v2H4v-2h8z"});function SvgAddSnippet(e,t){var n=e.title,r=e.titleId,i=add_snippet_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",add_snippet_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,c)}var s=a.forwardRef(SvgAddSnippet);n.p;function message_all_extends(){return(message_all_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function message_all_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function message_all_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.createElement("path",{d:"M18 17v4H2V7h4V3h16v14h-4zm-2 0H6V9H4v10h12v-2zM8 5.485l6 4.286 6-4.286V5H8v.485zm0 2.458V15h12V7.943l-6 4.286-6-4.286z"});function SvgMessageAll(e,t){var n=e.title,r=e.titleId,i=message_all_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",message_all_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,l)}var u=a.forwardRef(SvgMessageAll);n.p;function archive_all_extends(){return(archive_all_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function archive_all_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function archive_all_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var d=a.createElement("path",{d:"M17 5h2v3h2v14H3V8h2V5h2V2h10v3zm-2 0V4H9v1h6zM7 8h10V7H7v1zm-2 2v10h14V10H5zm11 2v2H8v-2h8z"});function SvgArchiveAll(e,t){var n=e.title,r=e.titleId,i=archive_all_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",archive_all_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,d)}var b=a.forwardRef(SvgArchiveAll);n.p;function archive_extends(){return(archive_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function archive_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function archive_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=a.createElement("path",{d:"M19 9H5v10h14V9zm2 0v12H3V9H2V3h20v6h-1zM4 7h16V5H4v2zm12 4v2H8v-2h8z"});function SvgArchive(e,t){var n=e.title,r=e.titleId,i=archive_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",archive_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,p)}var m=a.forwardRef(SvgArchive);n.p;function icons_18_archive_extends(){return(icons_18_archive_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function icons_18_archive_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function icons_18_archive_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var h=a.createElement("path",{d:"M2,6 L2,2 L16,2 L16,6 L15,6 L15,16 L3,16 L3,6 L2,6 Z M12,9 L6,9 L6,11 L12,11 L12,9 Z"});function archive_SvgArchive(e,t){var n=e.title,r=e.titleId,i=icons_18_archive_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",icons_18_archive_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,h)}var g=a.forwardRef(archive_SvgArchive);n.p;function arrow_down_extends(){return(arrow_down_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function arrow_down_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function arrow_down_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var j=a.createElement("path",{d:"M13 16.586l4.293-4.293 1.414 1.414L12 20.414l-6.707-6.707 1.414-1.414L11 16.586V5h2z"});function SvgArrowDown(e,t){var n=e.title,r=e.titleId,i=arrow_down_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",arrow_down_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,j)}var v=a.forwardRef(SvgArrowDown);n.p;function arrow_left_extends(){return(arrow_left_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function arrow_left_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function arrow_left_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var O=a.createElement("path",{d:"M7.414 13l4.293 4.293-1.414 1.414L3.586 12l6.707-6.707 1.414 1.414L7.414 11H19v2z"});function SvgArrowLeft(e,t){var n=e.title,r=e.titleId,i=arrow_left_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",arrow_left_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,O)}var T=a.forwardRef(SvgArrowLeft);n.p;function arrow_right_extends(){return(arrow_right_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function arrow_right_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function arrow_right_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var y=a.createElement("path",{d:"M16.586 11l-4.293-4.293 1.414-1.414L20.414 12l-6.707 6.707-1.414-1.414L16.586 13H5v-2h11.586z"});function SvgArrowRight(e,t){var n=e.title,r=e.titleId,i=arrow_right_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",arrow_right_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,y)}var S=a.forwardRef(SvgArrowRight);n.p;function arrow_up_extends(){return(arrow_up_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function arrow_up_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function arrow_up_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var C=a.createElement("path",{d:"M13 7.414V19h-2V7.414l-4.293 4.293-1.414-1.414L12 3.586l6.707 6.707-1.414 1.414z"});function SvgArrowUp(e,t){var n=e.title,r=e.titleId,i=arrow_up_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",arrow_up_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,C)}var A=a.forwardRef(SvgArrowUp);n.p;function ic_bookmark_add_24px_extends(){return(ic_bookmark_add_24px_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ic_bookmark_add_24px_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function ic_bookmark_add_24px_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var E=a.createElement("path",{d:"M17 3H7a2 2 0 00-2 2v16l7-3 7 3V5a2 2 0 00-2-2zm0 15l-5-2.18L7 18V5h10z"}),w=a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),_=a.createElement("path",{d:"M14.5 11.06h-2v2h-1v-2h-2v-1h2v-2h1v2h2z"});function SvgIcBookmarkAdd24Px(e,t){var n=e.title,r=e.titleId,i=ic_bookmark_add_24px_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",ic_bookmark_add_24px_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,E,w,_)}var I=a.forwardRef(SvgIcBookmarkAdd24Px);n.p;function bookmark_extends(){return(bookmark_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function bookmark_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function bookmark_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var x=a.createElement("path",{d:"M6 4v14.277l6-3.429 6 3.429V4H6zm6 13.152l-8 4.571V2h16v19.723l-8-4.571z"});function SvgBookmark(e,t){var n=e.title,r=e.titleId,i=bookmark_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",bookmark_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,x)}var k=a.forwardRef(SvgBookmark);n.p;function calendar_extends(){return(calendar_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function calendar_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function calendar_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var N=a.createElement("path",{d:"M4 7h16V5H4v2zm0 2v10h16V9H4zm13-6h5v18H2V3h5V1h2v2h6V1h2v2zm0 12v2h-2v-2h2zm-4 0v2h-2v-2h2zm-4 0v2H7v-2h2zm0-4v2H7v-2h2zm8 0v2h-2v-2h2zm-4 0v2h-2v-2h2z"});function SvgCalendar(e,t){var n=e.title,r=e.titleId,i=calendar_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",calendar_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,N)}var R=a.forwardRef(SvgCalendar);n.p;function cancel_extends(){return(cancel_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cancel_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function cancel_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var F=a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),M=a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9A7.902 7.902 0 014 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1A7.902 7.902 0 0120 12c0 4.42-3.58 8-8 8z"});function SvgCancel(e,t){var n=e.title,r=e.titleId,i=cancel_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",cancel_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,F,M)}var D=a.forwardRef(SvgCancel);n.p;function cancel_send_extends(){return(cancel_send_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cancel_send_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function cancel_send_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var L=a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),P=a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9A7.902 7.902 0 014 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1A7.902 7.902 0 0120 12c0 4.42-3.58 8-8 8z"});function SvgCancelSend(e,t){var n=e.title,r=e.titleId,i=cancel_send_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",cancel_send_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,L,P)}var U=a.forwardRef(SvgCancelSend);n.p;function chevron_down_extends(){return(chevron_down_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function chevron_down_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function chevron_down_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var B=a.createElement("path",{d:"M12 14.586l5.293-5.293 1.414 1.414L12 17.414l-6.707-6.707 1.414-1.414z"});function SvgChevronDown(e,t){var n=e.title,r=e.titleId,i=chevron_down_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",chevron_down_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,B)}var H=a.forwardRef(SvgChevronDown);n.p;function chevron_left_extends(){return(chevron_left_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function chevron_left_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function chevron_left_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var G=a.createElement("path",{d:"M15.707 17.293l-1.414 1.414L7.586 12l6.707-6.707 1.414 1.414L10.414 12z"});function SvgChevronLeft(e,t){var n=e.title,r=e.titleId,i=chevron_left_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",chevron_left_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,G)}var W=a.forwardRef(SvgChevronLeft);n.p;function chevron_right_extends(){return(chevron_right_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function chevron_right_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function chevron_right_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var z=a.createElement("path",{d:"M14.586 12L9.293 6.707l1.414-1.414L17.414 12l-6.707 6.707-1.414-1.414z"});function SvgChevronRight(e,t){var n=e.title,r=e.titleId,i=chevron_right_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",chevron_right_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,z)}var V=a.forwardRef(SvgChevronRight);n.p;function chevron_up_extends(){return(chevron_up_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function chevron_up_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function chevron_up_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var J=a.createElement("path",{d:"M6.707 14.707l-1.414-1.414L12 6.586l6.707 6.707-1.414 1.414L12 9.414z"});function SvgChevronUp(e,t){var n=e.title,r=e.titleId,i=chevron_up_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",chevron_up_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,J)}var Y=a.forwardRef(SvgChevronUp);n.p;function close_extends(){return(close_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function close_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function close_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var q=a.createElement("path",{d:"M10.586 12L5.293 6.707l1.414-1.414L12 10.586l5.293-5.293 1.414 1.414L13.414 12l5.293 5.293-1.414 1.414L12 13.414l-5.293 5.293-1.414-1.414z"});function SvgClose(e,t){var n=e.title,r=e.titleId,i=close_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",close_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,q)}var K=a.forwardRef(SvgClose);n.p;function comment_extends(){return(comment_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function comment_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function comment_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var X=a.createElement("path",{d:"M5 5v11h4.414L12 18.586 14.586 16H19V5H5zM3 18V3h18v15h-5.586L12 21.414 8.586 18H3zM17 7v2H7V7h10zm0 4v2H7v-2h10z"});function SvgComment(e,t){var n=e.title,r=e.titleId,i=comment_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",comment_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,X)}var Q=a.forwardRef(SvgComment);n.p;function user_book_extends(){return(user_book_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function user_book_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function user_book_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Z=a.createElement("path",{d:"M11.087 11.311a3 3 0 113.825 0A6.003 6.003 0 0119 17v1H7v-1a6.003 6.003 0 014.087-5.689zM7 4v16h12V4H7zM5 17v-2H3v-2h2v-2H3V9h2V7H3V5h2V2h16v20H5v-3H3v-2h2zm8-7a1 1 0 100-2 1 1 0 000 2zm0 3a4.002 4.002 0 00-3.874 3h7.748A4.002 4.002 0 0013 13z"});function SvgUserBook(e,t){var n=e.title,r=e.titleId,i=user_book_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",user_book_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Z)}var $=a.forwardRef(SvgUserBook);n.p;function data_extends(){return(data_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function data_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function data_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ee=a.createElement("path",{d:"M5 9.834V12.5c0 .515 3.152 1.5 7 1.5s7-.985 7-1.5V9.834C17.353 10.595 14.834 11 12 11c-2.834 0-5.353-.405-7-1.166zM3.07 7C3.622 5.068 7.395 4 12 4c4.605 0 8.378 1.068 8.93 3H21v10.5c0 2.246-4.012 3.5-9 3.5s-9-1.254-9-3.5V7h.07zM19 14.834C17.353 15.595 14.834 16 12 16c-2.834 0-5.353-.405-7-1.166V17.5c0 .515 3.152 1.5 7 1.5s7-.985 7-1.5v-2.666zM12 9c3.848 0 7-.985 7-1.5S15.848 6 12 6s-7 .985-7 1.5S8.152 9 12 9z"});function SvgData(e,t){var n=e.title,r=e.titleId,i=data_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",data_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ee)}var te=a.forwardRef(SvgData);n.p;function delete_extends(){return(delete_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function delete_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function delete_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ne=a.createElement("path",{d:"M10 6h4V4h-4v2zM8 6V2h8v4h5v2h-2v13H5V8H3V6h5zm9 2H7v11h10V8zm-8 2h2v7H9v-7zm4 0h2v7h-2v-7z"});function SvgDelete(e,t){var n=e.title,r=e.titleId,i=delete_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",delete_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ne)}var re=a.forwardRef(SvgDelete);n.p;function check_extends(){return(check_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function check_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function check_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ae=a.createElement("path",{d:"M9.067 16.519L19.293 6.293l1.414 1.414L8.933 19.481l-5.701-6.84 1.536-1.281z"});function SvgCheck(e,t){var n=e.title,r=e.titleId,i=check_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",check_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ae)}var ie=a.forwardRef(SvgCheck);n.p;function download_extends(){return(download_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function download_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function download_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var oe=a.createElement("path",{d:"M13 13.586l4.293-4.293 1.414 1.414L12 17.414l-6.707-6.707 1.414-1.414L11 13.586V4h2v9.586zM19 19v2H5v-2h14z"});function SvgDownload(e,t){var n=e.title,r=e.titleId,i=download_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",download_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,oe)}var ce=a.forwardRef(SvgDownload);n.p;function drag_drop_extends(){return(drag_drop_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function drag_drop_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function drag_drop_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var se=a.createElement("path",{d:"M6.5 2.5C7.32843 2.5 8 3.17157 8 4C8 4.82843 7.32843 5.5 6.5 5.5C5.67157 5.5 5 4.82843 5 4C5 3.17157 5.67157 2.5 6.5 2.5ZM6.5 7.5C7.32843 7.5 8 8.17157 8 9C8 9.82843 7.32843 10.5 6.5 10.5C5.67157 10.5 5 9.82843 5 9C5 8.17157 5.67157 7.5 6.5 7.5ZM8 14C8 13.1716 7.32843 12.5 6.5 12.5C5.67157 12.5 5 13.1716 5 14C5 14.8284 5.67157 15.5 6.5 15.5C7.32843 15.5 8 14.8284 8 14ZM11.5 2.5C12.3284 2.5 13 3.17157 13 4C13 4.82843 12.3284 5.5 11.5 5.5C10.6716 5.5 10 4.82843 10 4C10 3.17157 10.6716 2.5 11.5 2.5ZM13 9C13 8.17157 12.3284 7.5 11.5 7.5C10.6716 7.5 10 8.17157 10 9C10 9.82843 10.6716 10.5 11.5 10.5C12.3284 10.5 13 9.82843 13 9ZM11.5 12.5C12.3284 12.5 13 13.1716 13 14C13 14.8284 12.3284 15.5 11.5 15.5C10.6716 15.5 10 14.8284 10 14C10 13.1716 10.6716 12.5 11.5 12.5Z"});function SvgDragDrop(e,t){var n=e.title,r=e.titleId,i=drag_drop_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",drag_drop_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,se)}var le=a.forwardRef(SvgDragDrop);n.p;function draft_extends(){return(draft_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function draft_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function draft_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ue=a.createElement("path",{d:"M20 8.412V7.65l-8-3.556L4 7.65v.762l8 4.444 8-4.444zm0 2.288l-8 4.444L4 10.7V18h16v-7.3zm2 9.3H2V6.35l10-4.444L22 6.35V20z"});function SvgDraft(e,t){var n=e.title,r=e.titleId,i=draft_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",draft_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ue)}var de=a.forwardRef(SvgDraft);n.p;function duplicate_extends(){return(duplicate_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function duplicate_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function duplicate_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var fe=a.createElement("path",{d:"M15 19V9H5v10h10zm2-4h2V5H9v2h8v8zm0 2v4H3V7h4V3h14v14h-4zm-8-4v-2h2v2h2v2h-2v2H9v-2H7v-2h2z"});function SvgDuplicate(e,t){var n=e.title,r=e.titleId,i=duplicate_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",duplicate_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,fe)}var be=a.forwardRef(SvgDuplicate);n.p;function pen_extends(){return(pen_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pen_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function pen_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var pe=a.createElement("path",{d:"M14 7.414l-9 9V19h2.586l9-9L14 7.414zM19.414 10l-11 11H3v-5.414l11-11L19.414 10zm-4.828-6L16 2.586 21.414 8 20 9.414 14.586 4z"});function SvgPen(e,t){var n=e.title,r=e.titleId,i=pen_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",pen_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,pe)}var me=a.forwardRef(SvgPen);n.p;function edit_signature_extends(){return(edit_signature_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function edit_signature_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function edit_signature_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var he=a.createElement("circle",{cx:16,cy:16,r:16,fill:"#503FA5"}),ge=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 8.93933L17.9393 9.99999L22 14.0607L23.0607 13L19 8.93933ZM21.5607 14.5L13.3107 22.75H9.25V18.6893L17.5 10.4393L21.5607 14.5ZM17.5 12.5607L10.75 19.3107V21.25H12.6893L19.4393 14.5L17.5 12.5607Z",fill:"white"});function SvgEditSignature(e,t){var n=e.title,r=e.titleId,i=edit_signature_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",edit_signature_extends({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,he,ge)}var je=a.forwardRef(SvgEditSignature),ve=(n.p,n(559));function star_extends(){return(star_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function star_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function star_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Oe=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2369 8.88921L12 2.5L8.7631 8.88921L2 9.76543L7.30412 14.2557L5.81966 21.5211L12 17.9071L18.1803 21.5211L16.6959 14.2557L22 9.76543L15.2369 8.88921ZM17.8375 10.9932L14.0925 10.508L12 6.37766L9.90747 10.508L6.16255 10.9932L9.22896 13.5891L8.32207 18.0277L12 15.877L15.6779 18.0277L14.771 13.5891L17.8375 10.9932Z"});function SvgStar(e,t){var n=e.title,r=e.titleId,i=star_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",star_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Oe)}var Te=a.forwardRef(SvgStar);n.p;function follow_extends(){return(follow_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function follow_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function follow_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ye=a.createElement("path",{d:"M7 4.204l3.296.761 4.954-1.524L20 5.321v10.15l-4.833-1.912-4.797 1.476L7 14.257V21H5V3h2v1.204zm0 2.053v5.947l3.296.761 4.954-1.524L18 12.529v-5.85l-2.833-1.12-4.797 1.476L7 6.257z"});function SvgFollow(e,t){var n=e.title,r=e.titleId,i=follow_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",follow_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ye)}var Se=a.forwardRef(SvgFollow);n.p;function forward_extends(){return(forward_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function forward_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function forward_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ce=a.createElement("path",{d:"M12 15H3V8h9V4.099L22.765 11.5 12 18.901V15zm-7-2h9v2.099l5.235-3.599L14 7.901V10H5v3z"});function SvgForward(e,t){var n=e.title,r=e.titleId,i=forward_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",forward_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Ce)}var Ae=a.forwardRef(SvgForward);n.p;function four_oh_four_24px_extends(){return(four_oh_four_24px_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function four_oh_four_24px_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function four_oh_four_24px_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ee=a.createElement("path",{d:"M21 19.1H3V5h18v14.1zM21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),we=a.createElement("path",{d:"M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41z"});function SvgFourOhFour24Px(e,t){var n=e.title,r=e.titleId,i=four_oh_four_24px_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",four_oh_four_24px_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Ee,we)}var _e=a.forwardRef(SvgFourOhFour24Px);n.p;function baseline_generic_4xx_24px_extends(){return(baseline_generic_4xx_24px_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function baseline_generic_4xx_24px_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function baseline_generic_4xx_24px_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ie=a.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"});function SvgBaselineGeneric4Xx24Px(e,t){var n=e.title,r=e.titleId,i=baseline_generic_4xx_24px_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",baseline_generic_4xx_24px_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Ie)}var xe=a.forwardRef(SvgBaselineGeneric4Xx24Px);n.p;function info_extends(){return(info_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function info_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function info_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ke=a.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 8v5h-2v-5h2zm0-5v3h-2V7h2z"});function SvgInfo(e,t){var n=e.title,r=e.titleId,i=info_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",info_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ke)}var Ne=a.forwardRef(SvgInfo);n.p;function baseline_swap_vert_24px_extends(){return(baseline_swap_vert_24px_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function baseline_swap_vert_24px_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function baseline_swap_vert_24px_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Re=a.createElement("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"}),Fe=a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"});function SvgBaselineSwapVert24Px(e,t){var n=e.title,r=e.titleId,i=baseline_swap_vert_24px_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",baseline_swap_vert_24px_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Re,Fe)}var Me=a.forwardRef(SvgBaselineSwapVert24Px);n.p;function inbox2_extends(){return(inbox2_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function inbox2_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function inbox2_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var De=a.createElement("path",{d:"M5 13h4.618l1 2h2.764l1-2H19V5h-2V3h4v18H3V3h4v2H5v8zm0 2v4h14v-4h-3.382l-1 2H9.382l-1-2H5zm8-6.414l2.293-2.293 1.414 1.414L12 12.414 7.293 7.707l1.414-1.414L11 8.586V3h2v5.586z"});function SvgInbox2(e,t){var n=e.title,r=e.titleId,i=inbox2_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",inbox2_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,De)}var Le=a.forwardRef(SvgInbox2);n.p;function unseen_extends(){return(unseen_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function unseen_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function unseen_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Pe=a.createElement("path",{d:"M6.975 3.603l10.29 13.832.003-.003.602.809-1.605 1.194-2.827-3.801a3 3 0 01-3.547-4.767l-.936-1.258c-1.588.695-2.947 1.988-4.097 3.905l-.515.858-1.715-1.029.514-.857c1.264-2.107 2.801-3.618 4.595-4.515L5.373 4.795l1.602-1.192zM11.995 7H12c3.703 0 6.685 1.864 8.858 5.486l.514.857-1.715 1.029-.515-.858c-1.485-2.476-3.317-3.91-5.544-4.36L11.995 7zm-.873 5.521a1 1 0 001.084 1.457l-1.084-1.457z"});function SvgUnseen(e,t){var n=e.title,r=e.titleId,i=unseen_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",unseen_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Pe)}var Ue=a.forwardRef(SvgUnseen);n.p;function job_extends(){return(job_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function job_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function job_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Be=a.createElement("path",{d:"M8 8v11h8V8H8zm0-2V2h8v4h6v15H2V6h6zm2 0h4V4h-4v2zm8 13h2V8h-2v11zM6 19V8H4v11h2z"});function SvgJob(e,t){var n=e.title,r=e.titleId,i=job_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",job_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Be)}var He=a.forwardRef(SvgJob);n.p;function launch_extends(){return(launch_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function launch_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function launch_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ge=a.createElement("path",{d:"M17.586 5H14V3h7v7h-2V6.414l-9.293 9.293-1.414-1.414L17.586 5zM19 13h2v8H3V3h8v2H5v14h14v-6z"});function SvgLaunch(e,t){var n=e.title,r=e.titleId,i=launch_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",launch_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Ge)}var We=a.forwardRef(SvgLaunch);n.p;function link_extends(){return(link_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function link_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function link_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ze=a.createElement("path",{d:"M16 11v2H8v-2h8zm-5-4v2H7a3 3 0 000 6h4v2H7A5 5 0 017 7h4zm2 0h4a5 5 0 010 10h-4v-2h4a3 3 0 000-6h-4V7z"});function SvgLink(e,t){var n=e.title,r=e.titleId,i=link_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",link_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ze)}var Ve=a.forwardRef(SvgLink);n.p;function check_messages_extends(){return(check_messages_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function check_messages_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function check_messages_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Je=a.createElement("path",{d:"M21.293 13.293l1.414 1.414L17 20.414l-3.707-3.707 1.414-1.414L17 17.586l4.293-4.293zM20 6v2H4V6h16zm-4 5v2H4v-2h12zm-5 5v2H4v-2h7z"});function SvgCheckMessages(e,t){var n=e.title,r=e.titleId,i=check_messages_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",check_messages_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Je)}var Ye=a.forwardRef(SvgCheckMessages);n.p;function location_extends(){return(location_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function location_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function location_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var qe=a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Ke=a.createElement("path",{d:"M17.27 6.73l-4.24 10.13-1.32-3.42-.32-.83-.82-.32-3.43-1.33 10.13-4.23M21 3L3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z"});function SvgLocation(e,t){var n=e.title,r=e.titleId,i=location_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",location_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,qe,Ke)}var Xe=a.forwardRef(SvgLocation);n.p;function lock_extends(){return(lock_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lock_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function lock_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Qe=a.createElement("path",{d:"M7 9V7a5 5 0 1110 0v2h3v13H4V9h3zm2 0h6V7a3 3 0 00-6 0v2zm-3 2v9h12v-9H6zm7 7h-2v-3h2v3z"});function SvgLock(e,t){var n=e.title,r=e.titleId,i=lock_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",lock_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Qe)}var Ze=a.forwardRef(SvgLock);n.p;function message_extends(){return(message_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function message_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function message_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var $e=a.createElement("path",{d:"M4 6.51l8 6.223 8-6.222V6H4v.51zm0 2.535V18h16V9.045l-8 6.222-8-6.222zM22 4v16H2V4h20z"});function SvgMessage(e,t){var n=e.title,r=e.titleId,i=message_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",message_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,$e)}var et=a.forwardRef(SvgMessage);n.p;function message_id_outline_extends(){return(message_id_outline_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function message_id_outline_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function message_id_outline_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var tt=a.createElement("path",{d:"M2 4h20v16H2V4zm2 2v12h16V6H4zm5 10a4 4 0 110-8 4 4 0 010 8zm0-2a2 2 0 100-4 2 2 0 000 4zm10-5v2h-5V9h5zm0 4v2h-5v-2h5z"});function SvgMessageIdOutline(e,t){var n=e.title,r=e.titleId,i=message_id_outline_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",message_id_outline_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,tt)}var nt=a.forwardRef(SvgMessageIdOutline);n.p;function message_id_extends(){return(message_id_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function message_id_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function message_id_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var rt=a.createElement("path",{d:"M2 4h20v16H2V4zm2 2v12h16V6H4zm4.9 2v8H7.2V8h1.7zm1.4 8V8h3.1c2.4 0 3.8 1.4 3.8 4 0 2.5-1.4 4-3.8 4h-3.1zm2.8-6.6h-1.2v5.2h1.2c1.5 0 2.3-.9 2.3-2.6 0-1.7-.8-2.6-2.3-2.6z",fillRule:"evenodd",clipRule:"evenodd"});function SvgMessageId(e,t){var n=e.title,r=e.titleId,i=message_id_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",message_id_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,rt)}var at=a.forwardRef(SvgMessageId);n.p;function ic_more_horiz_24px_extends(){return(ic_more_horiz_24px_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ic_more_horiz_24px_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function ic_more_horiz_24px_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var it=a.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"});function SvgIcMoreHoriz24Px(e,t){var n=e.title,r=e.titleId,i=ic_more_horiz_24px_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",ic_more_horiz_24px_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,it)}var ot=a.forwardRef(SvgIcMoreHoriz24Px);n.p;function user_card_extends(){return(user_card_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function user_card_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function user_card_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ct=a.createElement("path",{d:"M9.083 18a6.006 6.006 0 013.011-4.25 4 4 0 115.811 0A6.006 6.006 0 0120.918 18H21V6H3v12h6.083zM23 4v16H1V4h22zM9 8v2H5V8h4zm0 3v2H5v-2h4zm6 2a2 2 0 100-4 2 2 0 000 4zm0 2a4.002 4.002 0 00-3.874 3h7.748A4.002 4.002 0 0015 15z"});function SvgUserCard(e,t){var n=e.title,r=e.titleId,i=user_card_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",user_card_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ct)}var st=a.forwardRef(SvgUserCard);n.p;function baseline_new_version_alert_24px_extends(){return(baseline_new_version_alert_24px_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function baseline_new_version_alert_24px_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function baseline_new_version_alert_24px_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var lt=a.createElement("path",{d:"M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"});function SvgBaselineNewVersionAlert24Px(e,t){var n=e.title,r=e.titleId,i=baseline_new_version_alert_24px_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",baseline_new_version_alert_24px_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,lt)}var ut=a.forwardRef(SvgBaselineNewVersionAlert24Px);n.p;function note_extends(){return(note_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function note_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function note_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var dt=a.createElement("path",{d:"M13 4H6v16h12V9h-5V4zm2 .414V7h2.586L15 4.414zM4 2h11.414L20 6.586V22H4V2zm3 13v-2h9v2H7zm0 3v-2h5v2H7z"});function SvgNote(e,t){var n=e.title,r=e.titleId,i=note_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",note_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,dt)}var ft=a.forwardRef(SvgNote);n.p;function notification_extends(){return(notification_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function notification_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function notification_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var bt=a.createElement("path",{d:"M18 16h2v2h-5a3 3 0 01-6 0H4v-2h2v-6a6 6 0 1112 0v6zm-2 0v-6a4 4 0 10-8 0v6h8zm-3 2h-2a1 1 0 002 0z"});function SvgNotification(e,t){var n=e.title,r=e.titleId,i=notification_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",notification_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,bt)}var pt=a.forwardRef(SvgNotification);n.p;function notifications_solid_extends(){return(notifications_solid_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function notifications_solid_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function notifications_solid_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var mt=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 16H18V10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10V16H4V18H9C9 19.6569 10.3431 21 12 21C13.6569 21 15 19.6569 15 18H20V16ZM12 19C11.4477 19 11 18.5523 11 18H13C13 18.5523 12.5523 19 12 19Z"});function SvgNotificationsSolid(e,t){var n=e.title,r=e.titleId,i=notifications_solid_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",notifications_solid_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,mt)}var ht=a.forwardRef(SvgNotificationsSolid);n.p;function notification_strikethrough_extends(){return(notification_strikethrough_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function notification_strikethrough_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function notification_strikethrough_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var gt=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.96676 5.55776L6.84339 4.1199L5.26736 5.35123L6.70002 7.18495C6.2532 8.02444 6 8.98265 6 10V16H4V18H9C9 19.6569 10.3431 21 12 21C13.6569 21 15 19.6569 15 18H15.1497L17.5806 21.1114L19.1566 19.8801L17.6877 18L16 15.8398L9.20319 7.14031L7.96676 5.55776ZM20 17.7111V16H18.6632L20 17.7111ZM18 15.1512V10C18 6.68629 15.3137 4 12 4C11.1691 4 10.3777 4.16888 9.65822 4.47418L10.9575 6.1372C11.2899 6.04772 11.6394 6 12 6C14.2091 6 16 7.79086 16 10V12.5913L18 15.1512ZM8 10C8 9.65745 8.04306 9.32495 8.12406 9.00763L13.5871 16H8V10ZM11 18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18H11Z"});function SvgNotificationStrikethrough(e,t){var n=e.title,r=e.titleId,i=notification_strikethrough_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",notification_strikethrough_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,gt)}var jt=a.forwardRef(SvgNotificationStrikethrough);n.p;function outbox_extends(){return(outbox_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function outbox_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function outbox_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var vt=a.createElement("path",{d:"M5 13h4.618l1 2h2.764l1-2H19V5h-2V3h4v18H3V3h4v2H5v8zm0 2v4h14v-4h-3.382l-1 2H9.382l-1-2H5zm8-8.586V12h-2V6.414L8.707 8.707 7.293 7.293 12 2.586l4.707 4.707-1.414 1.414L13 6.414z"});function SvgOutbox(e,t){var n=e.title,r=e.titleId,i=outbox_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",outbox_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,vt)}var Ot=a.forwardRef(SvgOutbox);n.p;function ic_close_panel_24px_extends(){return(ic_close_panel_24px_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ic_close_panel_24px_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function ic_close_panel_24px_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Tt=a.createElement("path",{d:"M12.586 11L8.293 6.707l1.414-1.414L16.414 12l-6.707 6.707-1.414-1.414L12.586 13H3v-2h9.586zM18 5h2v14h-2V5z"});function SvgIcClosePanel24Px(e,t){var n=e.title,r=e.titleId,i=ic_close_panel_24px_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",ic_close_panel_24px_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Tt)}var yt=a.forwardRef(SvgIcClosePanel24Px);n.p;function attachment_45_extends(){return(attachment_45_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function attachment_45_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function attachment_45_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var St=a.createElement("path",{d:"M7.964 16.596l6.541-6.54a.75.75 0 00-1.06-1.061l-6.718 6.717a2.25 2.25 0 103.182 3.182l7.425-7.424a3.75 3.75 0 00-5.304-5.304L6.197 12l-1.061-1.06 5.834-5.834a5.25 5.25 0 117.424 7.424l-7.424 7.425a3.75 3.75 0 01-5.304-5.303l6.718-6.718a2.25 2.25 0 113.182 3.182l-6.54 6.54-1.062-1.06z"});function SvgAttachment45(e,t){var n=e.title,r=e.titleId,i=attachment_45_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",attachment_45_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,St)}var Ct=a.forwardRef(SvgAttachment45);n.p;function attachment_extends(){return(attachment_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function attachment_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function attachment_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var At=a.createElement("path",{d:"M14 8.5V18h-2V8.5a.5.5 0 10-1 0V18a2 2 0 104 0V7.5a3.5 3.5 0 00-7 0V16H6V7.5a5.5 5.5 0 0111 0V18a4 4 0 11-8 0V8.5a2.5 2.5 0 115 0z"});function SvgAttachment(e,t){var n=e.title,r=e.titleId,i=attachment_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",attachment_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,At)}var Et=a.forwardRef(SvgAttachment);n.p;function team_extends(){return(team_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function team_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function team_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var wt=a.createElement("path",{d:"M13.386 13.544a4.997 4.997 0 011.757-1.188 3 3 0 113.714 0A5.002 5.002 0 0122 17v1h-2v-1a3 3 0 00-5.247-1.988A6.968 6.968 0 0116 19v1h-2v-1a5 5 0 00-10 0v1H2v-1a7.003 7.003 0 014.812-6.651 4 4 0 114.377 0c.807.265 1.55.674 2.197 1.195zM9 11a2 2 0 100-4 2 2 0 000 4zm8 0a1 1 0 100-2 1 1 0 000 2z"});function SvgTeam(e,t){var n=e.title,r=e.titleId,i=team_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",team_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,wt)}var _t=a.forwardRef(SvgTeam);n.p;function user_extends(){return(user_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function user_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function user_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var It=a.createElement("path",{d:"M9.576 12.374a5 5 0 114.849 0A8.004 8.004 0 0120 20v1H4v-1c0-3.573 2.343-6.6 5.576-7.626zM12 11a3 3 0 100-6 3 3 0 000 6zm0 3a6.002 6.002 0 00-5.917 5h11.834A6.002 6.002 0 0012 14z"});function SvgUser(e,t){var n=e.title,r=e.titleId,i=user_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",user_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,It)}var xt=a.forwardRef(SvgUser);n.p;function pin_on_extends(){return(pin_on_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pin_on_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function pin_on_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var kt=a.createElement("path",{fillRule:"evenodd",d:"M11.1914225,2.17574 C10.9570225,1.94142 10.5771225,1.94142 10.3428225,2.17574 C10.1085225,2.41005 10.1085225,2.78996 10.3428225,3.02427 L11.1265225,3.80788 L5.3079525,8.17174 L3.9788525,6.84264 C3.7445425,6.60833 3.3646525,6.60833 3.1303325,6.84264 C2.8960225,7.07696 2.8960225,7.45685 3.1303325,7.69116 L4.8273925,9.38823 L6.1001825,10.66102 L2.1757325,14.5855 C1.9414225,14.8198 1.9414225,15.1997 2.1757325,15.434 C2.4100625,15.6683 2.7899525,15.6683 3.0242725,15.434 L6.9487125,11.5096 L8.2215025,12.7823 L9.9185225,14.4794 C10.1528225,14.7137 10.5328225,14.7137 10.7671225,14.4794 C11.0014225,14.2451 11.0014225,13.8652 10.7671225,13.6309 L9.4380225,12.3018 L13.8019225,6.48329 L14.5855225,7.2669 C14.8198225,7.50121 15.1996225,7.50121 15.4340225,7.2669 C15.6683225,7.03259 15.6683225,6.6527 15.4340225,6.41837 L14.1611225,5.14558 L12.4641225,3.44853 L11.1914225,2.17574 Z"});function SvgPinOn(e,t){var n=e.title,r=e.titleId,i=pin_on_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",pin_on_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,kt)}var Nt=a.forwardRef(SvgPinOn);n.p;function pin_off_extends(){return(pin_off_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pin_off_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function pin_off_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Rt=a.createElement("path",{fillRule:"evenodd",d:"M11.1914225,2.17574 C10.9570225,1.94142 10.5771225,1.94142 10.3428225,2.17574 C10.1085225,2.41005 10.1085225,2.78996 10.3428225,3.02427 L11.1265225,3.80788 L5.3079525,8.17174 L3.9788525,6.84264 C3.7445425,6.60833 3.3646525,6.60833 3.1303325,6.84264 C2.8960225,7.07696 2.8960225,7.45685 3.1303325,7.69116 L4.8273925,9.38823 L6.1001825,10.66102 L2.1757325,14.5855 C1.9414225,14.8198 1.9414225,15.1997 2.1757325,15.434 C2.4100625,15.6683 2.7899525,15.6683 3.0242725,15.434 L6.9487125,11.5096 L8.2215025,12.7823 L9.9185225,14.4794 C10.1528225,14.7137 10.5328225,14.7137 10.7671225,14.4794 C11.0014225,14.2451 11.0014225,13.8652 10.7671225,13.6309 L9.4380225,12.3018 L13.8019225,6.48329 L14.5855225,7.2669 C14.8198225,7.50122 15.1996225,7.50122 15.4340225,7.2669 C15.6683225,7.03259 15.6683225,6.6527 15.4340225,6.41837 L14.1611225,5.14558 L12.4641225,3.44853 L11.1914225,2.17574 Z M6.1651025,9.02888 L11.9836225,4.66502 L12.9447225,5.62616 L8.5808625,11.4446 L6.1651025,9.02888 Z"});function SvgPinOff(e,t){var n=e.title,r=e.titleId,i=pin_off_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",pin_off_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Rt)}var Ft=a.forwardRef(SvgPinOff);n.p;function printer_extends(){return(printer_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function printer_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function printer_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Mt=a.createElement("path",{d:"M6 20H2V7h5V2h10v5h5v13h-4v2H6v-2zm0-2v-5h12v5h2V9H4v9h2zM9 7h6V4H9v3zm9 3v2h-4v-2h4zM8 15v5h8v-5H8z"});function SvgPrinter(e,t){var n=e.title,r=e.titleId,i=printer_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",printer_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Mt)}var Dt=a.forwardRef(SvgPrinter);n.p;n.p;function message_read_extends(){return(message_read_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function message_read_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function message_read_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Lt=a.createElement("path",{d:"M4 9.412l1 .555V7.87l-1 .666v.877zM4 11.7V19h16v-7.3l-8 4.444L4 11.7zm16-2.288v-.877l-1-.666v2.098l1-.555zm-3 1.666V4H7v7.078l5 2.778 5-2.778zm2-5.613l3 2V21H2V7.465l3-2V2h14v3.465zM15 6v2H9V6h6zm0 3v2H9V9h6z"});function SvgMessageRead(e,t){var n=e.title,r=e.titleId,i=message_read_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",message_read_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Lt)}var Pt=a.forwardRef(SvgMessageRead);n.p;function ic_remove_24px_extends(){return(ic_remove_24px_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ic_remove_24px_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function ic_remove_24px_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ut=a.createElement("path",{d:"M19 13H5v-2h14v2z"});function SvgIcRemove24Px(e,t){var n=e.title,r=e.titleId,i=ic_remove_24px_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",ic_remove_24px_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Ut)}var Bt=a.forwardRef(SvgIcRemove24Px);n.p;function reply_all_extends(){return(reply_all_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function reply_all_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function reply_all_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ht=a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Gt=a.createElement("path",{d:"M3.47 10.5l6.21 5.767-1.36 1.466L.53 10.5l7.79-7.233 1.36 1.466L3.47 10.5zM14 14.049v4.224L5.52 10.5 14 2.727v4.311c2.474.196 4.422 1.14 5.78 2.837C21.277 11.745 22 14.46 22 18v4.236l-1.894-3.789c-.596-1.19-1.493-2.238-2.706-3.147-.93-.697-2.057-1.116-3.4-1.251zm-2-.322V12h1c2.207 0 4.084.563 5.6 1.7.395.296.764.607 1.107.932-.289-1.465-.788-2.633-1.488-3.507C17.09 9.712 15.38 9 13 9h-1V7.273L8.48 10.5 12 13.727z"});function SvgReplyAll(e,t){var n=e.title,r=e.titleId,i=reply_all_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",reply_all_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Ht,Gt)}var Wt=a.forwardRef(SvgReplyAll);n.p;function reply_extends(){return(reply_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function reply_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function reply_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var zt=a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Vt=a.createElement("path",{d:"M12 14.049V17.9L1.235 10.5 12 3.099v3.926c3.097.161 5.376 1.095 6.78 2.85C20.277 11.745 21 14.46 21 18v2.414l-1.707-1.707A36.555 36.555 0 0015.4 15.3c-.93-.697-2.057-1.116-3.4-1.251zm-2 .05V12h1c2.207 0 4.084.563 5.6 1.7a35.53 35.53 0 012.254 1.845c-.244-1.9-.795-3.37-1.635-4.42C16.104 9.73 14.057 9 11 9h-1V6.901L4.765 10.5 10 14.099z"});function SvgReply(e,t){var n=e.title,r=e.titleId,i=reply_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",reply_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,zt,Vt)}var Jt=a.forwardRef(SvgReply);n.p;function return_extends(){return(return_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function return_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function return_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Yt=a.createElement("path",{d:"M7.414 12H18V7h2v7H7.414l3.293 3.293-1.414 1.414L3.586 13l5.707-5.707 1.414 1.414z"});function SvgReturn(e,t){var n=e.title,r=e.titleId,i=return_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",return_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Yt)}var qt=a.forwardRef(SvgReturn);n.p;function save_extends(){return(save_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function save_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function save_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Kt=a.createElement("path",{d:"M18 19h1V8.414L15.586 5H15v4H6V5H5v14h1v-7h12v7zM16.414 3L21 7.586V21H3V3h13.414zM8 14v5h8v-5H8zm0-9v2h5V5H8z"});function SvgSave(e,t){var n=e.title,r=e.titleId,i=save_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",save_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Kt)}var Xt=a.forwardRef(SvgSave);n.p;function schedule_send_extends(){return(schedule_send_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function schedule_send_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function schedule_send_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Qt=a.createElement("path",{d:"M13 7L1 1V6H6V8H1V13L13 7Z"}),Zt=a.createElement("path",{d:"M12 9L14.5744 7.7128C16.0278 8.58741 17 10.1802 17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 11.8268 7.00881 11.6557 7.026 11.487L11 9.5V13H15V11H13V9H12Z"});function SvgScheduleSend(e,t){var n=e.title,r=e.titleId,i=schedule_send_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",schedule_send_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Qt,Zt)}var $t=a.forwardRef(SvgScheduleSend);n.p;function search_extends(){return(search_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function search_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function search_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var en=a.createElement("path",{d:"M15.606 14.192l5.101 5.1-1.414 1.415-5.1-5.1a7 7 0 111.414-1.414zM10 15a5 5 0 100-10 5 5 0 000 10z"});function SvgSearch(e,t){var n=e.title,r=e.titleId,i=search_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",search_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,en)}var tn=a.forwardRef(SvgSearch);n.p;function SEDNAnetwork_extends(){return(SEDNAnetwork_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function SEDNAnetwork_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function SEDNAnetwork_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var nn=a.createElement("circle",{cx:12,cy:12,r:10,fill:"#DBD9ED"}),rn=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9362 11.3446L9.06462 11.3376C8.65303 11.3376 8.3178 11.0024 8.3178 10.5904C8.3178 10.1788 8.65303 9.84356 9.06462 9.84356H11.0325V8.52576H9.06462C7.92618 8.52576 7 9.45233 7 10.5904C7 11.7292 7.92618 12.6554 9.06383 12.655L14.9354 12.6624C15.347 12.6624 15.6822 12.9977 15.6822 13.4093C15.6822 13.8212 15.347 14.1561 14.9354 14.1561H12.9675V15.4743H14.9354C16.0738 15.4743 17 14.5477 17 13.4093C17 12.2708 16.0738 11.3446 14.9362 11.3446ZM12.9677 9.84356H16.4417V8.52576H12.9677V9.84356ZM11.0328 15.4741H7.56108V14.1563H11.0328V15.4741Z",fill:"#503FA5"});function SvgSednAnetwork(e,t){var n=e.title,r=e.titleId,i=SEDNAnetwork_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",SEDNAnetwork_extends({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,nn,rn)}var an=a.forwardRef(SvgSednAnetwork);n.p;function send_extends(){return(send_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function send_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function send_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var on=a.createElement("path",{d:"M5 11h7v2H5v5.382L17.764 12 5 5.618V11zm17.236 1L3 21.618V2.382L22.236 12z"});function SvgSend(e,t){var n=e.title,r=e.titleId,i=send_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",send_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,on)}var cn=a.forwardRef(SvgSend);n.p;function share_extends(){return(share_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function share_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function share_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var sn=a.createElement("path",{d:"M8.35 15.238a4 4 0 11.339-6.2l4.399-2.2a4 4 0 11.895 1.789l-4.191 2.095A4 4 0 0110 12c0 .578-.122 1.126-.343 1.622l4.262 1.827a4 4 0 11-.85 1.811l-4.72-2.022zM17 8a2 2 0 100-4 2 2 0 000 4zm0 12a2 2 0 100-4 2 2 0 000 4zM6 14a2 2 0 100-4 2 2 0 000 4z"});function SvgShare(e,t){var n=e.title,r=e.titleId,i=share_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",share_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,sn)}var ln=a.forwardRef(SvgShare);n.p;function sort_extends(){return(sort_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sort_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function sort_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var un=a.createElement("path",{d:"M20 6v2H4V6h16zm-8 5v2H4v-2h8zm-4 5v2H4v-2h4z"});function SvgSort(e,t){var n=e.title,r=e.titleId,i=sort_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",sort_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,un)}var dn=a.forwardRef(SvgSort);n.p;function tag_extends(){return(tag_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function tag_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function tag_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var fn=a.createElement("path",{d:"M5 11.586l8 8L19.586 13l-8-8H5v6.586zM3 3h9.414l10 10L13 22.414l-10-10V3zm6 8a2 2 0 110-4 2 2 0 010 4z"});function SvgTag(e,t){var n=e.title,r=e.titleId,i=tag_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",tag_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,fn)}var bn=a.forwardRef(SvgTag);n.p;function document_text_extends(){return(document_text_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function document_text_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function document_text_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var pn=a.createElement("path",{d:"M18 9h-5V4H6v16h12V9zm-.414-2L15 4.414V7h2.586zM13 13v5h-2v-5H8v-2h8v2h-3zm2.414-11L20 6.586V22H4V2h11.414z"});function SvgDocumentText(e,t){var n=e.title,r=e.titleId,i=document_text_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",document_text_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,pn)}var mn=a.forwardRef(SvgDocumentText);n.p;function building_extends(){return(building_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function building_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function building_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var hn=a.createElement("path",{d:"M17 8h4v14H3V3h14v5zm-2 12V5H5v15h2v-5h6v5h2zm-6 0h2v-3H9v3zM9 7v2H7V7h2zm0 4v2H7v-2h2zm4-4v2h-2V7h2zm0 4v2h-2v-2h2zm4-1v10h2V10h-2z"});function SvgBuilding(e,t){var n=e.title,r=e.titleId,i=building_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",building_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,hn)}var gn=a.forwardRef(SvgBuilding),jn=(n.p,n(560));function time_extends(){return(time_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function time_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function time_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var vn=a.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 100-16 8 8 0 000 16zm5.514-5.857l-1.028 1.714L11 12.567V5h2v6.434l4.514 2.709z"});function SvgTime(e,t){var n=e.title,r=e.titleId,i=time_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",time_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,vn)}var On=a.forwardRef(SvgTime);n.p;function unfold_less_extends(){return(unfold_less_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function unfold_less_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function unfold_less_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Tn=a.createElement("path",{d:"M12 16.414l-3.293 3.293-1.414-1.414L12 13.586l4.707 4.707-1.414 1.414L12 16.414zm0-8.828l3.293-3.293 1.414 1.414L12 10.414 7.293 5.707l1.414-1.414L12 7.586z"});function SvgUnfoldLess(e,t){var n=e.title,r=e.titleId,i=unfold_less_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",unfold_less_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Tn)}var yn=a.forwardRef(SvgUnfoldLess);n.p;function unfold_more_extends(){return(unfold_more_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function unfold_more_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function unfold_more_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Sn=a.createElement("path",{d:"M12 6.414L8.707 9.707 7.293 8.293 12 3.586l4.707 4.707-1.414 1.414L12 6.414zm3.293 7.879l1.414 1.414L12 20.414l-4.707-4.707 1.414-1.414L12 17.586l3.293-3.293z"});function SvgUnfoldMore(e,t){var n=e.title,r=e.titleId,i=unfold_more_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",unfold_more_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Sn)}var Cn=a.forwardRef(SvgUnfoldMore);n.p;function unfollow_extends(){return(unfollow_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function unfollow_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function unfollow_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var An=a.createElement("path",{d:"M6.10251 2.00336L4.5 3.20001L5 3.86959V21H7V14.257L10.3704 15.0348L12.7831 14.2925L18.5606 22.0295L20.1631 20.8328L14.8129 13.6679L13.5422 11.9664L9.75336 6.89243L7.90152 4.41252L7 3.20525L6.84673 2.99999L6.10251 2.00336ZM10.7142 4.83653L11.9849 6.5381L15.1669 5.55901L18 6.6798V12.529L15.8121 11.6635L18.0916 14.716L20 15.471V5.32019L15.2498 3.44098L10.7142 4.83653ZM7 12.2045V6.54791L11.5125 12.5909L10.2962 12.9651L7 12.2045Z"});function SvgUnfollow(e,t){var n=e.title,r=e.titleId,i=unfollow_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",unfollow_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,An)}var En=a.forwardRef(SvgUnfollow);n.p;function unlock_extends(){return(unlock_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function unlock_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function unlock_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var wn=a.createElement("path",{d:"M7 9V7a5 5 0 018.65-3.417L14.19 4.95A3 3 0 009 7v2h11v13H4V9h3zm-1 2v9h12v-9H6zm7 7h-2v-3h2v3z"});function SvgUnlock(e,t){var n=e.title,r=e.titleId,i=unlock_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",unlock_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,wn)}var _n=a.forwardRef(SvgUnlock);n.p;function update_extends(){return(update_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function update_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function update_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var In=a.createElement("path",{d:"M4.901 11.978l.131.992c.285 2.158 1.543 4.097 3.441 5.193A7 7 0 0017.787 16H16v-2h5v5h-2v-1.273a9.004 9.004 0 01-11.527 2.168c-2.358-1.361-3.942-3.722-4.38-6.368l-.044-.295-.13-.992 1.982-.262zm10.392-3.685l1.414 1.414L11 15.414l-3.707-3.707 1.414-1.414L11 12.586l4.293-4.293zm1.234-4.187a8.963 8.963 0 014.39 6.374l.042.296.124.992-1.985.248-.124-.992a6.965 6.965 0 00-3.447-5.186 7 7 0 00-9.313 2.161L8 8v2H3V5h2v1.274a9.001 9.001 0 0111.527-2.168z"});function SvgUpdate(e,t){var n=e.title,r=e.titleId,i=update_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",update_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,In)}var xn=a.forwardRef(SvgUpdate);n.p;function upload_extends(){return(upload_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function upload_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function upload_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var kn=a.createElement("path",{d:"M13 7.414V17h-2V7.414l-4.293 4.293-1.414-1.414L12 3.586l6.707 6.707-1.414 1.414L13 7.414zM19 19v2H5v-2h14z"});function SvgUpload(e,t){var n=e.title,r=e.titleId,i=upload_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",upload_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,kn)}var Nn=a.forwardRef(SvgUpload);n.p;function seen_extends(){return(seen_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function seen_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function seen_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Rn=a.createElement("path",{d:"M4.858 13.514l-.515.858-1.715-1.029.514-.857C5.315 8.864 8.297 7 12 7c3.703 0 6.685 1.864 8.858 5.486l.514.857-1.715 1.029-.515-.858C17.316 10.47 14.965 9 12 9c-2.965 0-5.316 1.47-7.142 4.514zM12 16a3 3 0 110-6 3 3 0 010 6zm0-2a1 1 0 100-2 1 1 0 000 2z"});function SvgSeen(e,t){var n=e.title,r=e.titleId,i=seen_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",seen_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Rn)}var Fn=a.forwardRef(SvgSeen);n.p;function priority_list_extends(){return(priority_list_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function priority_list_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function priority_list_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Mn=a.createElement("path",{fillRule:"nonzero",d:"M20,3 L20,21 L4,21 L4,3 L20,3 Z M18,5 L6,5 L6,19 L18,19 L18,5 Z M16,15 L16,17 L8,17 L8,15 L16,15 Z M16,11 L16,13 L8,13 L8,11 L16,11 Z M16,7 L16,9 L8,9 L8,7 L16,7 Z"});function SvgPriorityList(e,t){var n=e.title,r=e.titleId,i=priority_list_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",priority_list_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Mn)}var Dn=a.forwardRef(SvgPriorityList);n.p;n.p;function arrow_drop_extends(){return(arrow_drop_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function arrow_drop_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function arrow_drop_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ln=a.createElement("path",{d:"M7 10l5 5 5-5z"});function SvgArrowDrop(e,t){var n=e.title,r=e.titleId,i=arrow_drop_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",arrow_drop_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Ln)}var Pn=a.forwardRef(SvgArrowDrop);n.p;function arrow_drop_up_extends(){return(arrow_drop_up_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function arrow_drop_up_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function arrow_drop_up_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Un=a.createElement("path",{d:"M7 14l5-5 5 5z"});function SvgArrowDropUp(e,t){var n=e.title,r=e.titleId,i=arrow_drop_up_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",arrow_drop_up_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Un)}var Bn=a.forwardRef(SvgArrowDropUp);n.p;function icons_18_attachment_extends(){return(icons_18_attachment_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function icons_18_attachment_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function icons_18_attachment_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Hn=a.createElement("path",{fillRule:"nonzero",d:"M10,5.5 C10,4.11928813 8.88071187,3 7.5,3 C6.1745166,3 5.08996133,4.03153594 5.00531768,5.33562431 L5,5.5 L5,11 C5,13.209139 6.790861,15 9,15 C11.1421954,15 12.8910789,13.3160315 12.9951047,11.1996403 L13,11 L13,4 L15,4 L15,11 C15,14.3137085 12.3137085,17 9,17 C5.76160306,17 3.12242824,14.4344251 3.00413847,11.2249383 L3,11 L3,5 L3.02743156,5.00029704 C3.27601865,2.7501788 5.18362124,1 7.5,1 C9.91427333,1 11.8844891,2.90123652 11.995102,5.2881643 L12,5.5 L12,10 L11.9949073,10.1762728 C11.9036609,11.75108 10.5976809,13 9,13 C7.40231912,13 6.09633912,11.75108 6.00509269,10.1762728 L6,10 L6,6 L8,6 L8,10 C8,10.5522847 8.44771525,11 9,11 C9.51283584,11 9.93550716,10.6139598 9.99327227,10.1166211 L10,10 L10,5.5 Z"});function attachment_SvgAttachment(e,t){var n=e.title,r=e.titleId,i=icons_18_attachment_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",icons_18_attachment_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Hn)}var Gn=a.forwardRef(attachment_SvgAttachment);n.p;function icons_18_comment_extends(){return(icons_18_comment_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function icons_18_comment_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function icons_18_comment_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Wn=a.createElement("polygon",{fillRule:"nonzero",points:"2 2 16 2 16 13 12 13 9 16 6 13 2 13"});function comment_SvgComment(e,t){var n=e.title,r=e.titleId,i=icons_18_comment_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",icons_18_comment_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Wn)}var zn=a.forwardRef(comment_SvgComment);n.p;function icons_18_job_extends(){return(icons_18_job_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function icons_18_job_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function icons_18_job_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Vn=a.createElement("path",{fillRule:"nonzero",d:"M13,2 L13,6 L16,6 L16,16 L2,16 L2,6 L5,6 L5,2 L13,2 Z M11,4 L7,4 L7,6 L11,6 L11,4 Z"});function job_SvgJob(e,t){var n=e.title,r=e.titleId,i=icons_18_job_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",icons_18_job_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Vn)}var Jn=a.forwardRef(job_SvgJob);n.p;function icons_18_send_extends(){return(icons_18_send_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function icons_18_send_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function icons_18_send_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Yn=a.createElement("polygon",{fillRule:"nonzero",points:"8 10 8 8 2 8 2 2 16 9 2 16 2 10"});function send_SvgSend(e,t){var n=e.title,r=e.titleId,i=icons_18_send_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",icons_18_send_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Yn)}var qn=a.forwardRef(send_SvgSend);n.p;function icons_18_share_extends(){return(icons_18_share_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function icons_18_share_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function icons_18_share_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Kn=a.createElement("path",{fillRule:"nonzero",d:"M13,1 C14.6568542,1 16,2.34314575 16,4 C16,5.65685425 14.6568542,7 13,7 C12.2935332,7 11.6441015,6.75580431 11.1315082,6.34721648 L7.92915366,8.34891797 C7.97554133,8.55854623 8,8.7764168 8,9 C8,9.22393753 7.97546374,9.44214431 7.92893295,9.65207862 L11.1315082,11.6527835 C11.6441015,11.2441957 12.2935332,11 13,11 C14.6568542,11 16,12.3431458 16,14 C16,15.6568542 14.6568542,17 13,17 C11.3431458,17 10,15.6568542 10,14 C10,13.7760625 10.0245363,13.5578557 10.071067,13.3479214 L6.86849184,11.3472165 C6.35589855,11.7558043 5.70646675,12 5,12 C3.34314575,12 2,10.6568542 2,9 C2,7.34314575 3.34314575,6 5,6 C5.70646675,6 6.35589855,6.24419569 6.86849184,6.65278352 L10.071067,4.65207862 C10.0245363,4.44214431 10,4.22393753 10,4 C10,2.34314575 11.3431458,1 13,1 Z"});function share_SvgShare(e,t){var n=e.title,r=e.titleId,i=icons_18_share_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",icons_18_share_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Kn)}var Xn=a.forwardRef(share_SvgShare);n.p;function icons_18_tag_extends(){return(icons_18_tag_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function icons_18_tag_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function icons_18_tag_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Qn=a.createElement("path",{fillRule:"nonzero",d:"M9,2 L17,10 L10,17 L2,9 L2,2 L9,2 Z M6.5,5 C5.67157288,5 5,5.67157288 5,6.5 C5,7.32842712 5.67157288,8 6.5,8 C7.32842712,8 8,7.32842712 8,6.5 C8,5.67157288 7.32842712,5 6.5,5 Z"});function tag_SvgTag(e,t){var n=e.title,r=e.titleId,i=icons_18_tag_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",icons_18_tag_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Qn)}var Zn=a.forwardRef(tag_SvgTag);n.p;function icons_18_time_extends(){return(icons_18_time_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function icons_18_time_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function icons_18_time_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var $n=a.createElement("path",{fillRule:"nonzero",d:"M9,1 C13.418278,1 17,4.581722 17,9 C17,13.418278 13.418278,17 9,17 C4.581722,17 1,13.418278 1,9 C1,4.581722 4.581722,1 9,1 Z M10,4 L8,4 L8,9.67703296 L13.6286093,11.9284767 L14.3713907,10.0715233 L10,8.32296704 L10,4 Z"});function time_SvgTime(e,t){var n=e.title,r=e.titleId,i=icons_18_time_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",icons_18_time_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,$n)}var er=a.forwardRef(time_SvgTime);n.p;function time_off_extends(){return(time_off_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function time_off_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function time_off_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var tr=a.createElement("path",{fillRule:"nonzero",d:"M17,9 C17,13.418278 13.418278,17 9,17 C7.67059896,17 6.41693368,16.6757367 5.31378279,16.1019887 L10.67,10.744 L13.6286093,11.9284767 L14.3713907,10.0715233 L12.208,9.206 L16.1019887,5.31378279 C16.6757367,6.41693368 17,7.67059896 17,9 Z M9,1 C10.8482015,1 12.550021,1.62673571 13.9045228,2.67927125 L15.2928932,1.29289322 L16.7071068,2.70710678 L2.70710678,16.7071068 L1.29289322,15.2928932 L2.67927125,13.9045228 C1.62673571,12.550021 1,10.8482015 1,9 C1,4.581722 4.581722,1 9,1 Z M10,4 L8,4 L7.999,8.585 L9.999,6.585 L10,4 Z"});function SvgTimeOff(e,t){var n=e.title,r=e.titleId,i=time_off_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",time_off_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,tr)}var nr=a.forwardRef(SvgTimeOff);n.p;function icons_18_user_extends(){return(icons_18_user_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function icons_18_user_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function icons_18_user_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var rr=a.createElement("path",{fillRule:"nonzero",d:"M5.44322389,10.8311507 C6.43821888,11.5662539 7.66845603,12 9,12 C10.331544,12 11.5617811,11.5662539 12.5571277,10.8323455 C14.5502681,11.8411475 15.9087791,13.6742859 15.9955814,15.7847993 L16,16 L2,16 C2,13.799301 3.38226916,11.8753274 5.44322389,10.8311507 Z M9,2 C11.209139,2 13,3.790861 13,6 C13,8.209139 11.209139,10 9,10 C6.790861,10 5,8.209139 5,6 C5,3.790861 6.790861,2 9,2 Z"});function user_SvgUser(e,t){var n=e.title,r=e.titleId,i=icons_18_user_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",icons_18_user_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,rr)}var ar=a.forwardRef(user_SvgUser);n.p;function people_extends(){return(people_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function people_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function people_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ir=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.45945 10C5.17016 10.7111 6.0489 11.1307 7 11.1307C7.9511 11.1307 8.82984 10.7111 9.54081 10.0012C10.9645 10.977 11.9348 12.7503 11.9968 14.7918L12 15H2C2 12.8712 2.98733 11.0101 4.45945 10ZM7 4C8.65685 4 10 5.34315 10 7C10 8.65685 8.65685 10 7 10C5.34315 10 4 8.65685 4 7C4 5.34315 5.34315 4 7 4ZM14.9155 11C16.1223 11.7807 16.9448 13.1993 16.9973 14.8325L17 14.9991H13.8214L13.818 14.7909C13.7838 13.7274 13.4884 12.7367 13 11.8936C13.7141 11.8349 14.3725 11.5117 14.9155 11ZM13 7C14.1046 7 15 7.89543 15 9C15 10.1046 14.1046 11 13 11C11.8954 11 11 10.1046 11 9C11 7.89543 11.8954 7 13 7Z"});function SvgPeople(e,t){var n=e.title,r=e.titleId,i=people_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",people_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ir)}var cr=a.forwardRef(SvgPeople);n.p;function asset_extends(){return(asset_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function asset_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function asset_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var sr=a.createElement("path",{d:"M18 19a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 2a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 11h10l-5-9-5 9zm3.399-2h3.202L13 6.118 11.399 9zM10 15H6v4h4v-4zm-6-2v8h8v-8H4z"});function SvgAsset(e,t){var n=e.title,r=e.titleId,i=asset_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",asset_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,sr)}var lr=a.forwardRef(SvgAsset);n.p;function copy_extends(){return(copy_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function copy_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function copy_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ur=a.createElement("path",{d:"M15 19V9H5v10h10zm2-4h2V5H9v2h8v8zm0 2v4H3V7h4V3h14v14h-4z"});function SvgCopy(e,t){var n=e.title,r=e.titleId,i=copy_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",copy_extends({width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ur)}var dr=a.forwardRef(SvgCopy);n.p;function sent_archive_extends(){return(sent_archive_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sent_archive_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function sent_archive_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var fr=a.createElement("path",{d:"M8 10.75V17H16V10H17V7H15.5L8 10.75ZM10 12.5H14V14H10V12.5Z"}),br=a.createElement("path",{d:"M13 7L1 1V6H6V8H1V13L13 7Z"});function SvgSentArchive(e,t){var n=e.title,r=e.titleId,i=sent_archive_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",sent_archive_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,fr,br)}var pr=a.forwardRef(SvgSentArchive);n.p;function verified_shield_extends(){return(verified_shield_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function verified_shield_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function verified_shield_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var mr=a.createElement("path",{d:"M9 0.945312L16 3.27865V10.2355L15.8944 10.4466C14.5265 13.1825 12.4936 15.2748 9.81629 16.7032L9.44721 16.8938L9 17.1174L8.55279 16.8938C5.81695 15.5259 3.72456 13.493 2.29623 10.8157L2.10557 10.4466L2 10.2355V3.27865L9 0.945312ZM9.999 3.38631L9.99984 14.2643C11.5431 13.228 12.7829 11.8948 13.727 10.2569L13.9248 9.90121L13.999 9.7554V4.7194L9.999 3.38631Z"});function SvgVerifiedShield(e,t){var n=e.title,r=e.titleId,i=verified_shield_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",verified_shield_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,mr)}var hr=a.forwardRef(SvgVerifiedShield);n.p;function open_link_extends(){return(open_link_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function open_link_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function open_link_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var gr=a.createElement("path",{d:"M7 2V4L3.999 3.999V13.999H13.999L14 11H16V16H2V2H7ZM16 2V8H14L13.999 5.415L7.70711 11.7071L6.29289 10.2929L12.585 3.999L10 4V2H16Z"});function SvgOpenLink(e,t){var n=e.title,r=e.titleId,i=open_link_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",open_link_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,gr)}var jr=a.forwardRef(SvgOpenLink),vr=(n.p,n(561)),Or=n(562),Tr=n(563),yr=n(564),Sr=n(565),Cr=n(566),Ar=n(567);function doc_email_extends(){return(doc_email_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function doc_email_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function doc_email_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Er=a.createElement("path",{d:"M7 4L19 4L25 10V28H7L7 4Z",fill:"none"}),wr=a.createElement("path",{d:"M7 4H19L25 10V28H7V4Z",fill:"none",stroke:"#4879BA",strokeWidth:2}),_r=a.createElement("path",{d:"M11 16H21V24H11V16Z",stroke:"#4879BA",strokeWidth:2}),Ir=a.createElement("path",{d:"M21 17L16 21L11 17",stroke:"#4879BA",strokeWidth:2}),xr=a.createElement("path",{d:"M25 11H18V4",stroke:"#4879BA",strokeWidth:2});function SvgDocEmail(e,t){var n=e.title,r=e.titleId,i=doc_email_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",doc_email_extends({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Er,wr,_r,Ir,xr)}var kr=a.forwardRef(SvgDocEmail);n.p;function cross_in_circle_extends(){return(cross_in_circle_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cross_in_circle_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function cross_in_circle_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Nr=a.createElement("path",{d:"M12,2 C17.5228475,2 22,6.4771525 22,12 C22,17.5228475 17.5228475,22 12,22 C6.4771525,22 2,17.5228475 2,12 C2,6.4771525 6.4771525,2 12,2 Z M12,4 C7.581722,4 4,7.581722 4,12 C4,16.418278 7.581722,20 12,20 C16.418278,20 20,16.418278 20,12 C20,7.581722 16.418278,4 12,4 Z M15.2928932,7.29289322 L16.7071068,8.70710678 L13.415,12 L16.7071068,15.2928932 L15.2928932,16.7071068 L12,13.415 L8.70710678,16.7071068 L7.29289322,15.2928932 L10.585,12 L7.29289322,8.70710678 L8.70710678,7.29289322 L12,10.585 L15.2928932,7.29289322 Z"});function SvgCrossInCircle(e,t){var n=e.title,r=e.titleId,i=cross_in_circle_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",cross_in_circle_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Nr)}var Rr=a.forwardRef(SvgCrossInCircle);n.p;function desktop_extends(){return(desktop_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function desktop_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function desktop_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Fr=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3H3H21H22V4V17V18H21H13V20H17V22H7V20H11V18H3H2V17V4V3ZM20 16H13H11H4V5H20V16Z"});function SvgDesktop(e,t){var n=e.title,r=e.titleId,i=desktop_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",desktop_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Fr)}var Mr=a.forwardRef(SvgDesktop);n.p;function phone_extends(){return(phone_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function phone_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function phone_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Dr=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3H5V4V20V21H6H18H19V20V4V3H18H6ZM7 19V5H17V19H7ZM10.5 16.5C10.5 17.3284 11.1716 18 12 18C12.8284 18 13.5 17.3284 13.5 16.5C13.5 15.6716 12.8284 15 12 15C11.1716 15 10.5 15.6716 10.5 16.5Z"});function SvgPhone(e,t){var n=e.title,r=e.titleId,i=phone_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",phone_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Dr)}var Lr=a.forwardRef(SvgPhone);n.p;function tablet_extends(){return(tablet_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function tablet_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function tablet_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Pr=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3H3V4V20V21H4H20H21V20V4V3H20H4ZM5 19V5H19V19H5ZM10.5 16.5C10.5 17.3284 11.1716 18 12 18C12.8284 18 13.5 17.3284 13.5 16.5C13.5 15.6716 12.8284 15 12 15C11.1716 15 10.5 15.6716 10.5 16.5Z"});function SvgTablet(e,t){var n=e.title,r=e.titleId,i=tablet_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",tablet_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Pr)}var Ur=a.forwardRef(SvgTablet);n.p;function gift_extends(){return(gift_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gift_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function gift_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Br=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 5.5C13 4.67157 13.6716 4 14.5 4C15.3284 4 16 4.67157 16 5.5V6H13V5.5ZM11.6373 3.48579C12.2708 2.58706 13.3169 2 14.5 2C16.433 2 18 3.567 18 5.5V6H20H21V7V11V12H20V20V21H19H5H4V20V12H3V11V7V6H4H7C7 4.34315 8.34315 3 10 3C10.6041 3 11.1665 3.17856 11.6373 3.48579ZM11 6C11 5.44772 10.5523 5 10 5C9.44772 5 9 5.44772 9 6H11ZM13 12H18V19H13V12ZM13 10H19V8H13V10ZM11 8H5V10H11V8ZM11 12V19H6V12H11Z"});function SvgGift(e,t){var n=e.title,r=e.titleId,i=gift_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",gift_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Br)}var Hr=a.forwardRef(SvgGift);n.p;function grad_hat_extends(){return(grad_hat_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function grad_hat_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function grad_hat_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Gr=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.82805L12.5215 2.14671L21.5215 7.64671L22.9177 8.49999L21.5215 9.35328L19 10.8942V17V17.1623L18.9487 17.3162L18 17C18.9487 17.3162 18.9485 17.3169 18.9482 17.3176L18.9477 17.3191L18.9466 17.3224L18.9441 17.3296L18.9378 17.3475C18.933 17.3609 18.9269 17.3772 18.9196 17.3961C18.9048 17.4341 18.8847 17.4829 18.8584 17.5411C18.8058 17.6573 18.7282 17.8113 18.6189 17.9902C18.4001 18.3482 18.0534 18.8071 17.5258 19.2593C16.4537 20.1782 14.7169 21 12 21C9.28308 21 7.54634 20.1782 6.47421 19.2593C5.94666 18.8071 5.59987 18.3482 5.3811 17.9902C5.27178 17.8113 5.1942 17.6573 5.14163 17.5411C5.11533 17.4829 5.09521 17.4341 5.08045 17.3961C5.07307 17.3772 5.06702 17.3609 5.0622 17.3475L5.05588 17.3296L5.05339 17.3224L5.0523 17.3191L5.0518 17.3176C5.05156 17.3169 5.05132 17.3162 6 17L5.05132 17.3162L5 17.1623V17V10.8942L4 10.2831V16H2V9.06083L1.08228 8.49999L2.47855 7.64671L11.4786 2.14671L12 1.82805ZM12.5215 14.8533L17 12.1164V16.7915C16.9781 16.8344 16.9492 16.887 16.9123 16.9473C16.7874 17.1518 16.5717 17.4429 16.2242 17.7407C15.5463 18.3218 14.2831 19 12 19C9.71693 19 8.45367 18.3218 7.7758 17.7407C7.42835 17.4429 7.21264 17.1518 7.08766 16.9473C7.05082 16.887 7.02194 16.8344 7 16.7915V12.1164L11.4786 14.8533L12 15.1719L12.5215 14.8533ZM4.91773 8.49999L12 12.828L19.0823 8.49999L12 4.17194L4.91773 8.49999Z"});function SvgGradHat(e,t){var n=e.title,r=e.titleId,i=grad_hat_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",grad_hat_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Gr)}var Wr=a.forwardRef(SvgGradHat);n.p;function empty_buckets_extends(){return(empty_buckets_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function empty_buckets_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function empty_buckets_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var zr=a.createElement("path",{d:"M25 12V5H23V12H25Z",fill:"#6A7372"}),Vr=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 16V43.7662L24 37.1662L35 43.7662V16H13ZM15 18H33V40.2338L24 34.8338L15 40.2338V18Z",fill:"#6A7372"}),Jr=a.createElement("path",{d:"M14.7809 6.3753L18.7809 11.3753L17.2191 12.6247L13.2191 7.6247L14.7809 6.3753Z",fill:"#6A7372"}),Yr=a.createElement("path",{d:"M30.7071 12.7071L35.7071 7.70711L34.2929 6.29289L29.2929 11.2929L30.7071 12.7071Z",fill:"#6A7372"});function SvgEmptyBuckets(e,t){var n=e.title,r=e.titleId,i=empty_buckets_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",empty_buckets_extends({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,zr,Vr,Jr,Yr)}var qr=a.forwardRef(SvgEmptyBuckets);n.p;function inbox_empty_extends(){return(inbox_empty_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function inbox_empty_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function inbox_empty_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Kr=a.createElement("path",{d:"M25 12V5H23V12H25Z",fill:"#6A7372"}),Xr=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4064 16H34.5936L41 27.745V41H7V27.745L13.4064 16ZM14.5936 18L9.68454 27H18.618L20.618 31H27.382L29.382 27H38.3155L33.4064 18H14.5936ZM9 39V29H17.382L19.382 33H28.618L30.618 29H39V39H9Z",fill:"#6A7372"}),Qr=a.createElement("path",{d:"M14.7809 6.3753L18.7809 11.3753L17.2191 12.6247L13.2191 7.6247L14.7809 6.3753Z",fill:"#6A7372"}),Zr=a.createElement("path",{d:"M30.7071 12.7071L35.7071 7.70711L34.2929 6.29289L29.2929 11.2929L30.7071 12.7071Z",fill:"#6A7372"});function SvgInboxEmpty(e,t){var n=e.title,r=e.titleId,i=inbox_empty_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",inbox_empty_extends({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Kr,Xr,Qr,Zr)}var $r=a.forwardRef(SvgInboxEmpty);n.p;function no_messages_extends(){return(no_messages_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function no_messages_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function no_messages_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ea=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 11H41V25H39V14.2558L24 27.8496L9 14.2558V34H24V36H7V11ZM24 25.1504L10.5926 13H37.4074L24 25.1504Z",fill:"#6A7372"}),ta=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.6064 35.1922L44.7071 40.2929L43.2929 41.7071L38.1922 36.6064C37.0236 37.4816 35.5723 38 34 38C30.134 38 27 34.866 27 31C27 27.134 30.134 24 34 24C37.866 24 41 27.134 41 31C41 32.5723 40.4816 34.0236 39.6064 35.1922ZM34 36C36.7614 36 39 33.7614 39 31C39 28.2386 36.7614 26 34 26C31.2386 26 29 28.2386 29 31C29 33.7614 31.2386 36 34 36Z",fill:"#6A7372"});function SvgNoMessages(e,t){var n=e.title,r=e.titleId,i=no_messages_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",no_messages_extends({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ea,ta)}var na=a.forwardRef(SvgNoMessages);n.p;function gear_extends(){return(gear_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gear_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function gear_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ra=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.61044 7.62327L1.433 8.02045L3.11782 12L1.433 15.9796L1.61044 16.3767C1.95932 17.1576 2.40055 17.8957 2.92411 18.5768L3.17649 18.9051L7.5718 19.4807L10.2848 22.8819L10.6971 22.9279C11.1276 22.9758 11.5624 23 12 23C12.4376 23 12.8724 22.9758 13.3029 22.9279L13.7152 22.8819L16.4282 19.4807L20.8235 18.9051L21.0759 18.5768C21.5994 17.8957 22.0407 17.1576 22.3895 16.3767L22.567 15.9796L20.8822 12L22.567 8.02045L22.3895 7.62327C22.0407 6.84238 21.5994 6.10429 21.0759 5.42321L20.8235 5.0949L16.4282 4.51934L13.7152 1.11808L13.3029 1.07213C12.8724 1.02417 12.4376 1 12 1C11.5624 1 11.1276 1.02417 10.6971 1.07213L10.2848 1.11808L7.5718 4.51934L3.17649 5.0949L2.92411 5.42321C2.40055 6.10429 1.95932 6.84238 1.61044 7.62327ZM3.61942 15.9451L5.28967 12L3.61942 8.05485C3.80979 7.67867 4.02727 7.31579 4.27009 6.96877L8.63193 6.3976L11.3234 3.02331C11.5477 3.0078 11.7733 3 12 3C12.2267 3 12.4523 3.0078 12.6766 3.02331L15.3681 6.3976L19.7299 6.96877C19.9727 7.31579 20.1902 7.67867 20.3806 8.05485L18.7103 12L20.3806 15.9451C20.1902 16.3213 19.9727 16.6842 19.7299 17.0312L15.3681 17.6024L12.6766 20.9767C12.4523 20.9922 12.2267 21 12 21C11.7733 21 11.5477 20.9922 11.3234 20.9767L8.63193 17.6024L4.27009 17.0312C4.02727 16.6842 3.80979 16.3213 3.61942 15.9451ZM12 17C9.23857 17 6.99999 14.7614 6.99999 12C6.99999 9.23858 9.23857 7 12 7C14.7614 7 17 9.23858 17 12C17 14.7614 14.7614 17 12 17ZM15 12C15 13.6569 13.6568 15 12 15C10.3431 15 8.99999 13.6569 8.99999 12C8.99999 10.3431 10.3431 9 12 9C13.6568 9 15 10.3431 15 12Z"});function SvgGear(e,t){var n=e.title,r=e.titleId,i=gear_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",gear_extends({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ra)}var aa=a.forwardRef(SvgGear);n.p;function menu_extends(){return(menu_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function menu_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function menu_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ia=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 6V8H4V6H20ZM20 11V13H4V11H20ZM20 18V16H4V18H20Z"});function SvgMenu(e,t){var n=e.title,r=e.titleId,i=menu_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",menu_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ia)}var oa=a.forwardRef(SvgMenu);n.p;function s_logo_extends(){return(s_logo_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s_logo_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function s_logo_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ca=a.createElement("path",{d:"M18.4164 8.89541H13.3967V7H18.4164V8.89541ZM19.2248 14.0233C19.2248 12.387 17.8862 11.0547 16.242 11.0547L7.75775 11.0451C7.16281 11.0451 6.67781 10.564 6.67781 9.97023C6.67781 9.37812 7.16119 8.89541 7.75775 8.89541H10.6015V7H7.75775C6.11359 7 4.77499 8.33226 4.77499 9.96862C4.77499 11.6066 6.11359 12.9372 7.75775 12.9372L16.242 12.9469C16.837 12.9469 17.322 13.428 17.322 14.0217C17.322 14.6138 16.8386 15.0965 16.242 15.0965H13.3983V16.992H16.242C17.8862 16.992 19.2248 15.6597 19.2248 14.0233ZM10.6015 15.0965H5.58656V16.992H10.6031V15.0965H10.6015Z"});function SvgSLogo(e,t){var n=e.title,r=e.titleId,i=s_logo_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",s_logo_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ca)}var sa=a.forwardRef(SvgSLogo);n.p;function menu_collapse_left_extends(){return(menu_collapse_left_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function menu_collapse_left_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function menu_collapse_left_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var la=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 8V6H9V8H21ZM7 13H21V11H7V12V13ZM4 8L5.5 9L4 12L5.5 15L4 16L2 12L4 8ZM21 18V16H9V18H21Z"});function SvgMenuCollapseLeft(e,t){var n=e.title,r=e.titleId,i=menu_collapse_left_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",menu_collapse_left_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,la)}var ua=a.forwardRef(SvgMenuCollapseLeft);n.p;function workflow_extends(){return(workflow_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function workflow_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function workflow_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var da=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.41574 8.6456C9.3587 8.13994 10 7.14486 10 6C10 4.34315 8.65685 3 7 3C5.34315 3 4 4.34315 4 6C4 7.42086 4.98777 8.61101 6.31409 8.92123C6.41424 9.13371 6.54382 9.39407 6.69837 9.67328C7.06584 10.3372 7.65327 11.2559 8.41102 11.8081C9.07417 12.2915 9.98402 12.5781 10.6277 12.7419C10.9679 12.8285 11.2728 12.89 11.4929 12.9299C11.5251 12.9358 11.7567 12.9736 11.936 13.0028L11.9398 13.0035C11.9607 13.0069 11.9809 13.0102 11.9999 13.0133C12.0823 13.0267 12.1432 13.0367 12.1497 13.0379C12.3361 13.0717 12.5942 13.1238 12.8792 13.1964C13.486 13.3508 14.0762 13.5641 14.411 13.8081C14.7912 14.0852 15.2038 14.6665 15.5518 15.2953L15.5843 15.3544C14.6413 15.8601 14 16.8551 14 18C14 19.6569 15.3431 21 17 21C18.6569 21 20 19.6569 20 18C20 16.5791 19.0122 15.389 17.6859 15.0788C17.5858 14.8663 17.4562 14.6059 17.3016 14.3267C16.9342 13.6628 16.3467 12.7441 15.589 12.1919C14.9258 11.7085 14.016 11.4219 13.3723 11.2581C13.0321 11.1715 12.7272 11.11 12.5071 11.0701C11.9999 10.9779 11.9764 10.9783 11.9594 10.9786C11.9498 10.9787 11.9423 10.9788 11.8503 10.9621C11.6639 10.9283 11.4058 10.8761 11.1208 10.8036C10.514 10.6492 9.92385 10.4359 9.58899 10.1919C9.20882 9.91478 8.79625 9.33352 8.4482 8.70471L8.41574 8.6456ZM7 7C7.55228 7 8 6.55228 8 6C8 5.44772 7.55228 5 7 5C6.44772 5 6 5.44772 6 6C6 6.55228 6.44772 7 7 7ZM18 18C18 18.5523 17.5523 19 17 19C16.4477 19 16 18.5523 16 18C16 17.4477 16.4477 17 17 17C17.5523 17 18 17.4477 18 18Z"}),fa=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.6859 8.92123C19.0122 8.61101 20 7.42086 20 6C20 4.34315 18.6569 3 17 3C15.3431 3 14 4.34315 14 6C14 7.14486 14.6413 8.13994 15.5843 8.6456L15.5518 8.70471C15.2037 9.33351 14.7912 9.91478 14.411 10.1918C14.3095 10.2658 14.1845 10.337 14.0427 10.4046C14.6656 10.587 15.4617 10.8792 16.1186 11.3412C16.6235 10.8176 17.0249 10.1732 17.3016 9.67328C17.4562 9.39407 17.5858 9.13371 17.6859 8.92123ZM17 7C17.5523 7 18 6.55228 18 6C18 5.44772 17.5523 5 17 5C16.4477 5 16 5.44772 16 6C16 6.55228 16.4477 7 17 7Z"}),ba=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 21C8.65685 21 10 19.6569 10 18C10 16.8551 9.3587 15.8601 8.41573 15.3544L8.44819 15.2953C8.79625 14.6665 9.20882 14.0852 9.58899 13.8081C9.69052 13.7341 9.81552 13.663 9.95734 13.5954C9.33444 13.413 8.53828 13.1208 7.88143 12.6588C7.37649 13.1824 6.97507 13.8268 6.69837 14.3267C6.54382 14.6059 6.41423 14.8663 6.31408 15.0788C4.98777 15.389 4 16.5791 4 18C4 19.6569 5.34315 21 7 21ZM7 19C7.55228 19 8 18.5523 8 18C8 17.4477 7.55228 17 7 17C6.44772 17 6 17.4477 6 18C6 18.5523 6.44772 19 7 19Z"});function SvgWorkflow(e,t){var n=e.title,r=e.titleId,i=workflow_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",workflow_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,da,fa,ba)}var pa=a.forwardRef(SvgWorkflow);n.p;function noworkflows_extends(){return(noworkflows_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function noworkflows_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function noworkflows_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ma=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a6.003 6.003 0 0 1-4.076 5.685c.122.238.264.502.423.778.604 1.044 1.389 2.133 2.226 2.717.796.556 2.038 1.02 3.162 1.352.547.16 1.04.283 1.394.365.327.076.654.126.983.176h.005l.248.039a26.66 26.66 0 0 1 1.79.346c1.371.315 3.157.848 4.415 1.72 1.218.845 2.183 2.258 2.817 3.357.326.566.584 1.083.76 1.46l.004.007a6 6 0 1 1-2.073.313 17.495 17.495 0 0 0-.424-.78c-.603-1.046-1.387-2.133-2.224-2.713-.924-.642-2.389-1.109-3.722-1.415a24.567 24.567 0 0 0-1.655-.32l-.234-.036c-.382-.06-.762-.118-1.14-.205-.384-.089-.915-.22-1.51-.396-1.157-.341-2.664-.878-3.742-1.63-1.213-.848-2.178-2.26-2.812-3.357a19.903 19.903 0 0 1-.761-1.457l-.004-.008A6 6 0 1 1 20 12Zm-2 0a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm20 24a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-3.871-18.001a6 6 0 1 0-2.085-.325c-.128.237-.276.5-.44.776-.627 1.054-1.42 2.158-2.207 2.752a4.926 4.926 0 0 1-.069.05c.669.24 1.36.531 2.017.888.797-.81 1.48-1.83 1.977-2.667.334-.56.604-1.072.792-1.444l.015-.03ZM38 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM14 42a6 6 0 0 0 1.956-11.674c.129-.237.276-.5.44-.776.627-1.054 1.42-2.158 2.207-2.752l.04-.03a15.667 15.667 0 0 1-1.99-.906c-.796.81-1.478 1.829-1.975 2.665-.334.56-.604 1.072-.792 1.444l-.015.03A6 6 0 0 0 14 42Zm0-2a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"});function SvgNoworkflows(e,t){var n=e.title,r=e.titleId,i=noworkflows_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",noworkflows_extends({width:48,height:48,xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ma)}var ha=a.forwardRef(SvgNoworkflows);n.p;function filter_extends(){return(filter_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function filter_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function filter_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ga=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.667 5.333V4h10.666v1.333H2.667Zm2 3.334V7.333h6.666v1.334H4.667Zm2 2V12h2.666v-1.333H6.667Z",fill:"currentColor"});function SvgFilter(e,t){var n=e.title,r=e.titleId,i=filter_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",filter_extends({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ga)}var ja,va,Oa=a.forwardRef(SvgFilter);n.p;!function(e){e.ADD="ADD",e.ADD_SNIPPET="ADD_SNIPPET",e.ALL_INBOX="ALL_INBOX",e.ARCHIVE="ARCHIVE",e.ARCHIVE_18="ARCHIVE_18",e.ARCHIVE_TEAM="ARCHIVE_TEAM",e.ARROW_DOWN="ARROW_DOWN",e.ARROW_DROP_DOWN="ARROW_DROP_DOWN",e.ARROW_DROP_UP="ARROW_DROP_UP",e.ARROW_LEFT="ARROW_LEFT",e.ARROW_RIGHT="ARROW_RIGHT",e.ARROW_UP="ARROW_UP",e.ATTACHMENT_18="ATTACHMENT_18",e.ASSET="ASSET",e.BELL="BELL",e.BELL_STRIKETHROUGH="BELL_STRIKETHROUGH",e.BELL_SOLID="BELL_SOLID",e.BOOKMARK="BOOKMARK",e.BOOKMARK_ADD="BOOKMARK_ADD",e.CALENDAR="CALENDAR",e.CANCEL="CANCEL",e.CANCELLED="CANCELLED",e.CANCELLED_18="CANCELLED_18",e.CHEVRON_DOWN="CHEVRON_DOWN",e.CHEVRON_LEFT="CHEVRON_LEFT",e.CHEVRON_RIGHT="CHEVRON_RIGHT",e.CHEVRON_UP="CHEVRON_UP",e.CLEAR="CLEAR",e.COMMENT="COMMENT",e.COMMENT_18="COMMENT_18",e.CONTACTS="CONTACTS",e.COPY="COPY",e.CROSS_IN_CIRCLE="CROSS_IN_CIRCLE",e.MENU_COLLAPSE_LEFT="MENU_COLLAPSE_LEFT",e.DATA="DATA",e.DELETE="DELETE",e.DESKTOP="DESKTOP",e.DONE="DONE",e.DOWNLOAD="DOWNLOAD",e.DRAG_DROP="DRAG_DROP",e.DRAFTS="DRAFTS",e.DUPLICATE="DUPLICATE",e.EDIT="EDIT",e.EDIT_SIGNATURE="EDIT_SIGNATURE",e.EMPTY_BUCKETS="EMPTY_BUCKETS",e.EXPAND="EXPAND",e.FAVOURITE="FAVOURITE",e.FILE_PDF="FILE_PDF",e.FILE_EXCEL="FILE_EXCEL",e.FILE_COMPRESSED="FILE_COMPRESSED",e.FILE_WORD="FILE_WORD",e.FILE_POWERPOINT="FILE_POWERPOINT",e.FILE_EMAIL="FILE_EMAIL",e.FILE_TEXT="FILE_TEXT",e.FILE_UNKNOWN="FILE_UNKNOWN",e.FOLLOW="FOLLOW",e.FORWARD="FORWARD",e.GEAR="GEAR",e.GIFT="GIFT",e.GRAD_HAT="GRAD_HAT",e.IMPORT="IMPORT",e.INBOX="INBOX",e.INBOX_EMPTY="INBOX_EMPTY",e.INFO="INFO",e.INVISIBLE="INVISIBLE",e.JOB="JOB",e.JOB_18="JOB_18",e.LAUNCH="LAUNCH",e.LINK="LINK",e.LIST_CHECK="LIST_CHECK",e.LOCATION="LOCATION",e.LOCK="LOCK",e.LOCK_OPEN="LOCK_OPEN",e.MENU="MENU",e.MESSAGE="MESSAGE",e.MESSAGE_ID="MESSAGE_ID",e.MESSAGE_ID_ICON="MESSAGE_ID_ICON",e.MORE_HORIZ="MORE_HORIZ",e.MY_MESSAGES="MY_MESSAGES",e.NOTE="NOTE",e.NO_MESSAGES="NO_MESSAGES",e.OUTBOX="OUTBOX",e.PANE_CLOSE="PANE_CLOSE",e.PAPERCLIP="PAPERCLIP",e.PAPERCLIP45="PAPERCLIP45",e.PEOPLE="PEOPLE",e.PEOPLE_18="PEOPLE-18",e.PERSON="PERSON",e.PERSON_18="PERSON-18",e.PHONE="PHONE",e.PIN="PIN",e.UNPIN="UNPIN",e.PRINT="PRINT",e.READ="READ",e.REMOVE="REMOVE",e.REPLY="REPLY",e.REPLY_ALL="REPLY_ALL",e.RETURN="RETURN",e.S_LOGO="S_LOGO",e.SAVE="SAVE",e.SCHEDULED="SCHEDULED",e.SCHEDULED_18="SCHEDULED_18",e.SEARCH="SEARCH",e.SEDNA_NETWORK="SEDNA_NETWORK",e.SEND="SEND",e.SEND_18="SEND_18",e.SHARE="SHARE",e.SHARE_18="SHARE_18",e.SORT="SORT",e.TABLET="TABLET",e.TAG="TAG",e.TAG_18="TAG_18",e.TEMPLATE_DOC="TEMPLATE_DOC",e.TENANT="TENANT",e.TEXT="TEXT",e.TIME="TIME",e.UNFOLD_LESS="UNFOLD_LESS",e.UNFOLD_MORE="UNFOLD_MORE",e.UNFOLLOW="UNFOLLOW",e.UPDATE="UPDATE",e.UPLOAD="UPLOAD",e.VISIBLE="VISIBLE",e.PRIORITY_LIST="PRIORITY_LIST",e.SENT_ARCHIVE="SENT_ARCHIVE",e.VERIFIED="VERIFIED",e.OPEN_LINK="OPEN_LINK",e.WORKFLOWS="WORKFLOWS",e.NO_WORKFLOWS="NO_WORKFLOWS",e.FILTER="FILTER"}(va||(va={}));var Ta=(ja={},Object(r.a)(ja,va.ADD,o),Object(r.a)(ja,va.ADD_SNIPPET,s),Object(r.a)(ja,va.ALL_INBOX,u),Object(r.a)(ja,va.ARCHIVE,m),Object(r.a)(ja,va.ARCHIVE_18,g),Object(r.a)(ja,va.ARCHIVE_TEAM,b),Object(r.a)(ja,va.ARROW_DOWN,v),Object(r.a)(ja,va.ARROW_DROP_DOWN,Pn),Object(r.a)(ja,va.ARROW_DROP_UP,Bn),Object(r.a)(ja,va.ARROW_LEFT,T),Object(r.a)(ja,va.ARROW_RIGHT,S),Object(r.a)(ja,va.ARROW_UP,A),Object(r.a)(ja,va.ATTACHMENT_18,Gn),Object(r.a)(ja,va.ASSET,lr),Object(r.a)(ja,va.BOOKMARK,k),Object(r.a)(ja,va.BOOKMARK_ADD,I),Object(r.a)(ja,va.BELL,pt),Object(r.a)(ja,va.BELL_STRIKETHROUGH,jt),Object(r.a)(ja,va.BELL_SOLID,ht),Object(r.a)(ja,va.CALENDAR,R),Object(r.a)(ja,va.CANCELLED,U),Object(r.a)(ja,va.CANCELLED_18,nr),Object(r.a)(ja,va.CANCEL,D),Object(r.a)(ja,va.CHEVRON_DOWN,H),Object(r.a)(ja,va.CHEVRON_LEFT,W),Object(r.a)(ja,va.CHEVRON_RIGHT,V),Object(r.a)(ja,va.CHEVRON_UP,Y),Object(r.a)(ja,va.CLEAR,K),Object(r.a)(ja,va.COMMENT,Q),Object(r.a)(ja,va.COMMENT_18,zn),Object(r.a)(ja,va.CONTACTS,$),Object(r.a)(ja,va.COPY,dr),Object(r.a)(ja,va.CROSS_IN_CIRCLE,Rr),Object(r.a)(ja,va.DATA,te),Object(r.a)(ja,va.DELETE,re),Object(r.a)(ja,va.DESKTOP,Mr),Object(r.a)(ja,va.DONE,ie),Object(r.a)(ja,va.DOWNLOAD,ce),Object(r.a)(ja,va.DRAG_DROP,le),Object(r.a)(ja,va.DRAFTS,de),Object(r.a)(ja,va.DUPLICATE,be),Object(r.a)(ja,va.EDIT,me),Object(r.a)(ja,va.EDIT_SIGNATURE,je),Object(r.a)(ja,va.EMPTY_BUCKETS,qr),Object(r.a)(ja,va.EXPAND,ve.a),Object(r.a)(ja,va.FAVOURITE,Te),Object(r.a)(ja,va.FILE_PDF,vr.a),Object(r.a)(ja,va.FILE_EXCEL,Or.a),Object(r.a)(ja,va.FILE_COMPRESSED,Cr.a),Object(r.a)(ja,va.FILE_POWERPOINT,yr.a),Object(r.a)(ja,va.FILE_TEXT,Ar.a),Object(r.a)(ja,va.FILE_WORD,Tr.a),Object(r.a)(ja,va.FILE_UNKNOWN,Sr.a),Object(r.a)(ja,va.FILE_EMAIL,kr),Object(r.a)(ja,va.FOLLOW,Se),Object(r.a)(ja,va.FORWARD,Ae),Object(r.a)(ja,va.GEAR,aa),Object(r.a)(ja,va.GIFT,Hr),Object(r.a)(ja,va.GRAD_HAT,Wr),Object(r.a)(ja,va.IMPORT,Me),Object(r.a)(ja,va.INBOX,Le),Object(r.a)(ja,va.INBOX_EMPTY,$r),Object(r.a)(ja,va.INFO,Ne),Object(r.a)(ja,va.INVISIBLE,Ue),Object(r.a)(ja,va.JOB,He),Object(r.a)(ja,va.JOB_18,Jn),Object(r.a)(ja,va.LAUNCH,We),Object(r.a)(ja,va.LINK,Ve),Object(r.a)(ja,va.LIST_CHECK,Ye),Object(r.a)(ja,va.LOCATION,Xe),Object(r.a)(ja,va.LOCK,Ze),Object(r.a)(ja,va.MENU,oa),Object(r.a)(ja,va.MENU_COLLAPSE_LEFT,ua),Object(r.a)(ja,va.MESSAGE,et),Object(r.a)(ja,va.MESSAGE_ID,nt),Object(r.a)(ja,va.MESSAGE_ID_ICON,at),Object(r.a)(ja,va.MORE_HORIZ,ot),Object(r.a)(ja,va.MY_MESSAGES,st),Object(r.a)(ja,va.OUTBOX,Ot),Object(r.a)(ja,va.NOTE,ft),Object(r.a)(ja,va.NO_MESSAGES,na),Object(r.a)(ja,va.PANE_CLOSE,yt),Object(r.a)(ja,va.PAPERCLIP,Et),Object(r.a)(ja,va.PAPERCLIP45,Ct),Object(r.a)(ja,va.PEOPLE,_t),Object(r.a)(ja,va.PEOPLE_18,cr),Object(r.a)(ja,va.PERSON,xt),Object(r.a)(ja,va.PERSON_18,ar),Object(r.a)(ja,va.PHONE,Lr),Object(r.a)(ja,va.PIN,Nt),Object(r.a)(ja,va.UNPIN,Ft),Object(r.a)(ja,va.PRINT,Dt),Object(r.a)(ja,va.READ,Pt),Object(r.a)(ja,va.REPLY,Jt),Object(r.a)(ja,va.REMOVE,Bt),Object(r.a)(ja,va.REPLY_ALL,Wt),Object(r.a)(ja,va.RETURN,qt),Object(r.a)(ja,va.S_LOGO,sa),Object(r.a)(ja,va.SAVE,Xt),Object(r.a)(ja,va.SCHEDULED,$t),Object(r.a)(ja,va.SCHEDULED_18,er),Object(r.a)(ja,va.SEARCH,tn),Object(r.a)(ja,va.SEDNA_NETWORK,an),Object(r.a)(ja,va.SEND,cn),Object(r.a)(ja,va.SEND_18,qn),Object(r.a)(ja,va.SHARE,ln),Object(r.a)(ja,va.SHARE_18,Xn),Object(r.a)(ja,va.SORT,dn),Object(r.a)(ja,va.TABLET,Ur),Object(r.a)(ja,va.TAG,bn),Object(r.a)(ja,va.TAG_18,Zn),Object(r.a)(ja,va.TEMPLATE_DOC,mn),Object(r.a)(ja,va.TENANT,gn),Object(r.a)(ja,va.TEXT,jn.a),Object(r.a)(ja,va.TIME,On),Object(r.a)(ja,va.UNFOLD_LESS,yn),Object(r.a)(ja,va.UNFOLD_MORE,Cn),Object(r.a)(ja,va.UNFOLLOW,En),Object(r.a)(ja,va.UPDATE,xn),Object(r.a)(ja,va.LOCK_OPEN,_n),Object(r.a)(ja,va.UPLOAD,Nn),Object(r.a)(ja,va.VISIBLE,Fn),Object(r.a)(ja,va.PRIORITY_LIST,Dn),Object(r.a)(ja,va.SENT_ARCHIVE,pr),Object(r.a)(ja,va.VERIFIED,hr),Object(r.a)(ja,va.OPEN_LINK,jr),Object(r.a)(ja,va.WORKFLOWS,pa),Object(r.a)(ja,va.NO_WORKFLOWS,ha),Object(r.a)(ja,va.FILTER,Oa),ja);function getIcon(e){return Ta[e]}},,,,function(e,t,n){"use strict";n.d(t,"k",(function(){return T})),n.d(t,"l",(function(){return S})),n.d(t,"K",(function(){return C})),n.d(t,"I",(function(){return A})),n.d(t,"e",(function(){return E})),n.d(t,"n",(function(){return w})),n.d(t,"M",(function(){return _})),n.d(t,"h",(function(){return I})),n.d(t,"g",(function(){return x})),n.d(t,"z",(function(){return k})),n.d(t,"u",(function(){return N})),n.d(t,"O",(function(){return R})),n.d(t,"J",(function(){return F})),n.d(t,"i",(function(){return M})),n.d(t,"c",(function(){return D})),n.d(t,"L",(function(){return y})),n.d(t,"U",(function(){return toTimeUnit})),n.d(t,"E",(function(){return P})),n.d(t,"d",(function(){return U})),n.d(t,"a",(function(){return B})),n.d(t,"v",(function(){return H})),n.d(t,"F",(function(){return G})),n.d(t,"f",(function(){return W})),n.d(t,"H",(function(){return z})),n.d(t,"G",(function(){return V})),n.d(t,"j",(function(){return J})),n.d(t,"B",(function(){return Y})),n.d(t,"C",(function(){return q})),n.d(t,"m",(function(){return K})),n.d(t,"b",(function(){return X})),n.d(t,"p",(function(){return Q})),n.d(t,"r",(function(){return Z})),n.d(t,"s",(function(){return $})),n.d(t,"q",(function(){return ee})),n.d(t,"t",(function(){return te})),n.d(t,"o",(function(){return ne})),n.d(t,"x",(function(){return re})),n.d(t,"y",(function(){return ae})),n.d(t,"w",(function(){return ie})),n.d(t,"N",(function(){return oe})),n.d(t,"A",(function(){return ce})),n.d(t,"S",(function(){return se})),n.d(t,"Q",(function(){return ue})),n.d(t,"D",(function(){return L})),n.d(t,"T",(function(){return de})),n.d(t,"P",(function(){return fe})),n.d(t,"R",(function(){return isPlainFilterSetSubscribable}));var r=n(5),a=n(6),i=n(86),o=n(23),c=n(3),s=n(32),l=n.n(s),u=n(25),d=n(52),b=n(37),p=n(128),m=n(2),h=n(44),g=n(138),j=n(314),v=n(15),O=n(8),T=function FilterSet(e,t){var n=this,r=this;Object(c.a)(this,FilterSet),this.combinator=e,this.children=t,this.isEmpty=function(){return 0===n.children.length},this.equals=function(e){return n.combinator===e.combinator&&n.children.length===e.children.length&&n.children.reduce((function(t,n,r){if(!t)return!1;var a=e.children[r];return(n instanceof FilterSet&&a instanceof FilterSet||n instanceof S&&a instanceof S)&&n.equals(a)}),!0)},this.and=function(e){return r.isEmpty()?new FilterSet(O.g.AND,[e]):r.combinator!==O.g.AND?new FilterSet(O.g.AND,[r,e]):e instanceof FilterSet&&e.combinator===O.g.AND?new FilterSet(O.g.AND,Object(d.b)([r.children,e.children])):new FilterSet(O.g.AND,Object(d.a)(r.children,e))},this.or=function(e){return r.isEmpty()?new FilterSet(O.g.OR,[e]):r.combinator!==O.g.OR?new FilterSet(O.g.OR,[r,e]):e instanceof FilterSet&&e.combinator===O.g.OR?new FilterSet(O.g.OR,Object(d.b)([r.children,e.children])):new FilterSet(O.g.OR,Object(d.a)(r.children,e))},this.not=function(e){return r.isEmpty()?new FilterSet(O.g.NOT,[e]):new FilterSet(O.g.NOT,Object(d.a)(r.children,e))},this.append=function(e){return r.isEmpty()?e:e.isEmpty()?r:e.combinator!==r.combinator?new FilterSet(r.combinator,[].concat(Object(o.a)(r.children),[e])):new FilterSet(r.combinator,[].concat(Object(o.a)(r.children),Object(o.a)(e.children)))},this.remove=function(e){return new FilterSet(r.combinator,r.children.reduce((function(t,n){if(n instanceof FilterSet){if(e instanceof FilterSet&&n.equals(e))return t;var r=n.remove(e);return Object(d.a)(t,r)}return e instanceof S&&n.equals(e)?t:Object(d.a)(t,n)}),[])).normalize()},this.getNumLeafNodes=function(){return r.children.reduce((function(e,t){return t instanceof FilterSet?t.getNumLeafNodes()+e:e+1}),0)},this.filter=function(e){return new FilterSet(r.combinator,r.children.reduce((function(t,n){return n instanceof FilterSet?Object(d.a)(t,n.filter(e)):e(n)?Object(d.a)(t,n):t}),[])).normalize()},this.shallowFilter=function(e){return new FilterSet(r.combinator,r.children.filter(e)).normalize()},this.getNumNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return r.children.reduce((function(e,t){return t instanceof FilterSet?e+=t.getNumNodes(e):e++,e}),e)},this.find=function(e){var t,n=Object(i.a)(r.children);try{for(n.s();!(t=n.n()).done;){var a=t.value;if(e(a))return u.a.of(a);if(a instanceof FilterSet){var o=a.find(e);if(o.isPresent())return o}}}catch(c){n.e(c)}finally{n.f()}return u.a.empty()},this.map=function(e){return new FilterSet(r.combinator,r.children.map((function(t){return t instanceof FilterSet?t.map(e):e(t)}))).normalize()},this.relevantIfTagAdded=function(e,t,n,a){var i=r.children.map((function(r){return r.relevantIfTagAdded(e,t,n,a)}));return 0===r.children.length?O.b.YES:r.combinator===O.g.AND?i.some((function(e){return e===O.b.NO}))?O.b.NO:i.some((function(e){return e===O.b.MAYBE}))?O.b.MAYBE:O.b.YES:r.combinator===O.g.NOT&&i.some((function(e){return e===O.b.YES}))?O.b.NO:i.some((function(e){return e===O.b.YES}))?O.b.YES:i.some((function(e){return e===O.b.MAYBE}))?O.b.MAYBE:O.b.NO},this.relevantIfTagRemoved=function(e,t,n,a){var i=r.children.map((function(r){return r.relevantIfTagRemoved(e,t,n,a)}));return 0===r.children.length?O.b.YES:r.combinator===O.g.AND?i.some((function(e){return e===O.b.NO}))?O.b.NO:i.some((function(e){return e===O.b.MAYBE}))?O.b.MAYBE:O.b.YES:r.combinator===O.g.NOT&&i.some((function(e){return e===O.b.YES}))?O.b.NO:i.some((function(e){return e===O.b.YES}))?O.b.YES:i.some((function(e){return e===O.b.MAYBE}))?O.b.MAYBE:O.b.NO},this.serialize=function(){return{type:r.combinator,children:r.children.map((function(e){return e.serialize()}))}},this.serializeToString=function(){return r.isEmpty()?"":JSON.stringify(r.serialize())},this.appliesToMessage=function(e){return r.appliesTo((function(t){return t.appliesToMessage(e)}))},this.appliesToTopic=function(e,t){return r.appliesTo((function(n){return n.appliesToTopic(e,t)}))},this.appliesTo=function(e){var t,n;if(r.combinator===O.g.AND)return null!==(t=r.children.reduce((function(t,n){var r=e(n);switch(t){case null:return r;case O.b.NO:return O.b.NO;case O.b.MAYBE:return r===O.b.NO?O.b.NO:O.b.MAYBE;case O.b.YES:return r===O.b.YES?O.b.YES:r}return t}),null))&&void 0!==t?t:O.b.YES;if(r.combinator===O.g.OR)return null!==(n=r.children.reduce((function(t,n){var r=e(n);switch(t){case null:return r;case O.b.YES:return O.b.YES;case O.b.MAYBE:return r===O.b.YES?O.b.YES:O.b.MAYBE;case O.b.NO:return r===O.b.MAYBE?O.b.MAYBE:r===O.b.YES?O.b.YES:O.b.NO}return t}),null))&&void 0!==n?n:O.b.YES;var a=new FilterSet(O.g.OR,r.children);return Object(O.y)(a.appliesTo(e))},this.normalize=function(){return 1===r.children.length&&r.children[0]instanceof FilterSet?r.children[0].normalize():new FilterSet(r.combinator,r.children.filter((function(e){return!(e instanceof FilterSet&&0===e.children.length)})).map((function(e){return e.normalize()})))}};T.empty=function(){return new T(O.g.AND,[])},T.fromFilterTerm=function(e){return new T(O.g.AND,[e])};var y,S=function FilterTerm(){var e=this;Object(c.a)(this,FilterTerm),this.type=void 0,this.appliesToTopic=void 0,this.appliesToMessage=void 0,this.relevantIfTagAdded=void 0,this.relevantIfTagRemoved=void 0,this.equals=function(t){return e.type===t.type&&e.getLabel()===t.getLabel()},this.normalize=function(){return e},this.getLabel=function(){return e.constructor.name},this.serialize=function(){return{term:{type:e.type}}},this.serializeToString=function(){return JSON.stringify(e.serialize())}},C=function(e){Object(r.a)(TextFilter,e);var t=Object(a.a)(TextFilter);function TextFilter(e){var n;return Object(c.a)(this,TextFilter),(n=t.call(this)).value=e,n.type=O.h.text,n.appliesToTopic=function(){return O.b.MAYBE},n.appliesToMessage=function(){return O.b.MAYBE},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.text,query:n.value}}},n.getLabel=function(){return"".concat(n.value)},n}return TextFilter}(S),A=function(e){Object(r.a)(SubjectFilter,e);var t=Object(a.a)(SubjectFilter);function SubjectFilter(e){var n;return Object(c.a)(this,SubjectFilter),(n=t.call(this)).value=e,n.type=O.h.subject,n.appliesToTopic=function(){return O.b.MAYBE},n.appliesToMessage=function(){return O.b.MAYBE},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.subject,query:n.value}}},n.getLabel=function(){return"subject:".concat(n.value)},n}return SubjectFilter}(S),E=function(e){Object(r.a)(BodyFilter,e);var t=Object(a.a)(BodyFilter);function BodyFilter(e){var n;return Object(c.a)(this,BodyFilter),(n=t.call(this)).value=e,n.type=O.h.body,n.appliesToTopic=function(){return O.b.MAYBE},n.appliesToMessage=function(){return O.b.MAYBE},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.body,query:n.value}}},n.getLabel=function(){return"body:".concat(n.value)},n}return BodyFilter}(S),w=function(e){Object(r.a)(FromFilter,e);var t=Object(a.a)(FromFilter);function FromFilter(e){var n;return Object(c.a)(this,FromFilter),(n=t.call(this)).value=e,n.type=O.h.from,n.appliesToTopic=function(){return O.b.MAYBE},n.appliesToMessage=function(){return O.b.MAYBE},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.from,query:n.value}}},n.getLabel=function(){return"from:".concat(n.value)},n}return FromFilter}(S),_=function(e){Object(r.a)(ToFilter,e);var t=Object(a.a)(ToFilter);function ToFilter(e){var n;return Object(c.a)(this,ToFilter),(n=t.call(this)).value=e,n.type=O.h.to,n.appliesToTopic=function(){return O.b.MAYBE},n.appliesToMessage=function(){return O.b.MAYBE},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.to,query:n.value}}},n.getLabel=function(){return"to:".concat(n.value)},n}return ToFilter}(S),I=function(e){Object(r.a)(CcFilter,e);var t=Object(a.a)(CcFilter);function CcFilter(e){var n;return Object(c.a)(this,CcFilter),(n=t.call(this)).value=e,n.type=O.h.cc,n.appliesToTopic=function(){return O.b.MAYBE},n.appliesToMessage=function(){return O.b.MAYBE},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.cc,query:n.value}}},n.getLabel=function(){return"cc:".concat(n.value)},n}return CcFilter}(S),x=function(e){Object(r.a)(CategoryFilter,e);var t=Object(a.a)(CategoryFilter);function CategoryFilter(e){var n;return Object(c.a)(this,CategoryFilter),(n=t.call(this)).value=e,n.type=O.h.category,n.appliesToTopic=function(e){var t;return(null===(t=e.relationships.category_tag)||void 0===t?void 0:t.data.some((function(e){return e.id===n.value.id})))?O.b.YES:O.b.NO},n.appliesToMessage=function(e){return e.categories.some((function(e){return e.id===n.value.id}))?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(e){return String(e.tagId)===n.value.tagId?O.b.YES:O.b.MAYBE},n.relevantIfTagRemoved=function(e){return String(e.tagId)===n.value.tagId?O.b.NO:O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.category,query:n.value.name}}},n.getLabel=function(){return n.value.label},n}return CategoryFilter}(S),k=function(e){Object(r.a)(JobReferenceFilter,e);var t=Object(a.a)(JobReferenceFilter);function JobReferenceFilter(e){var n;return Object(c.a)(this,JobReferenceFilter),(n=t.call(this)).value=e,n.type=O.h.jobReference,n.appliesToTopic=function(e){var t;return(null===(t=e.relationships.job_reference)||void 0===t?void 0:t.data.some((function(e){return e.id===n.value.id})))?O.b.YES:O.b.NO},n.appliesToMessage=function(e){return e.jobReferences.some((function(e){return e.id===n.value.id}))?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(e){return String(e.tagId)===n.value.tagId?O.b.YES:O.b.MAYBE},n.relevantIfTagRemoved=function(e){return String(e.tagId)===n.value.tagId?O.b.NO:O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.jobReference,query:n.value.name}}},n.getLabel=function(){return n.value.name},n.equals=function(e){return e instanceof JobReferenceFilter&&n.value.id===e.value.id},n}return JobReferenceFilter}(S),N=function(e){Object(r.a)(InactiveJobReferenceFilter,e);var t=Object(a.a)(InactiveJobReferenceFilter);function InactiveJobReferenceFilter(e){var n;return Object(c.a)(this,InactiveJobReferenceFilter),(n=t.call(this)).value=e,n.type=O.h.jobReference,n.appliesToTopic=function(){return O.b.NO},n.appliesToMessage=function(e){return e.jobReferences.find((function(e){return e.name===n.value}))?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(e){return e.tag.tagTypeId===b.h.JOB_REFERENCE&&e.tag.label===n.value?O.b.YES:O.b.MAYBE},n.relevantIfTagRemoved=function(e){return e.tag.tagTypeId===b.h.JOB_REFERENCE&&e.tag.label===n.value?O.b.NO:O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.jobReference,query:n.value}}},n.equals=function(e){return e instanceof InactiveJobReferenceFilter&&n.value===e.value},n}return InactiveJobReferenceFilter}(S),R=function(e){Object(r.a)(VesselNameFilter,e);var t=Object(a.a)(VesselNameFilter);function VesselNameFilter(e){var n;return Object(c.a)(this,VesselNameFilter),(n=t.call(this)).value=e,n.type=O.h.vesselName,n.appliesToTopic=function(){return O.b.NO},n.getLabel=function(){return n.value},n.appliesToMessage=function(e){return e.jobReferences.some((function(e){var t;return(null===(t=e.attributes)||void 0===t?void 0:t.vesselName)===n.value}))?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.vesselName,query:n.value}}},n}return VesselNameFilter}(S),F=function(e){Object(r.a)(TeamFilter,e);var t=Object(a.a)(TeamFilter);function TeamFilter(e){var n;return Object(c.a)(this,TeamFilter),(n=t.call(this)).value=e,n.type=O.h.team,n.appliesToTopic=function(){return O.b.YES},n.appliesToMessage=function(e){return e.teamIds.some((function(e){return e===n.value.id}))?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.team,query:n.value.name}}},n.getLabel=function(){return n.value.name},n.equals=function(e){return e instanceof TeamFilter&&n.value.id===e.value.id},n}return TeamFilter}(S),M=function(e){Object(r.a)(CommentFilter,e);var t=Object(a.a)(CommentFilter);function CommentFilter(e){var n;return Object(c.a)(this,CommentFilter),(n=t.call(this)).value=e,n.type=O.h.comment,n.appliesToTopic=function(){return O.b.MAYBE},n.appliesToMessage=function(){return O.b.MAYBE},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.comment,query:n.value}}},n.getLabel=function(){return"comment:".concat(n.value)},n}return CommentFilter}(S),D=function(e){Object(r.a)(AttachmentNameFilter,e);var t=Object(a.a)(AttachmentNameFilter);function AttachmentNameFilter(e){var n;return Object(c.a)(this,AttachmentNameFilter),(n=t.call(this)).value=e,n.type=O.h.attachmentName,n.appliesToTopic=function(){return O.b.MAYBE},n.appliesToMessage=function(){return O.b.MAYBE},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.attachmentName,query:n.value}}},n.getLabel=function(){return"attachment:".concat(n.value)},n}return AttachmentNameFilter}(S);function toTimeUnit(e){var t={hour:y.HOUR,day:y.DAY,week:y.WEEK,month:y.MONTH,year:y.YEAR};return u.a.of(t[e])}!function(e){e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year"}(y||(y={}));var L,P=function(e){Object(r.a)(RelativeTimeFilter,e);var t=Object(a.a)(RelativeTimeFilter);function RelativeTimeFilter(e){var n;return Object(c.a)(this,RelativeTimeFilter),(n=t.call(this)).value=e,n.type=O.h.relativeTime,n.appliesToTopic=function(e){return l()(e.attributes.modified,p.a).diff(l()(),n.value.unit,!0)>=-n.value.n?O.b.YES:O.b.NO},n.appliesToMessage=function(e){return l()(e.meta.receivedDate,p.a).diff(l()(),n.value.unit,!0)>=-n.value.n?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.relativeTime,query:"".concat(n.value.n,":").concat(n.value.unit)}}},n.getLabel=function(){return"last:".concat(n.value.n).concat(n.value.unit)},n}return RelativeTimeFilter}(S),U=function(e){Object(r.a)(BeforeTimeFilter,e);var t=Object(a.a)(BeforeTimeFilter);function BeforeTimeFilter(e){var n;return Object(c.a)(this,BeforeTimeFilter),(n=t.call(this)).value=e,n.type=O.h.beforeTime,n.appliesToTopic=function(e){return l()(e.attributes.modified,p.a).isBefore(n.value)?O.b.YES:O.b.NO},n.appliesToMessage=function(e){return l()(e.meta.receivedDate,p.a).isSameOrBefore(n.value)?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.beforeTime,query:n.value.utc(!1).format(p.a)}}},n.getLabel=function(){return"before:".concat(n.value.format("YYYY/MM/DD"))},n}return BeforeTimeFilter}(S),B=function(e){Object(r.a)(AfterTimeFilter,e);var t=Object(a.a)(AfterTimeFilter);function AfterTimeFilter(e){var n;return Object(c.a)(this,AfterTimeFilter),(n=t.call(this)).value=e,n.type=O.h.afterTime,n.appliesToTopic=function(e){return l()(e.attributes.modified).isAfter(n.value)?O.b.YES:O.b.NO},n.appliesToMessage=function(e){return l()(e.meta.receivedDate).isSameOrAfter(n.value)?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.afterTime,query:n.value.utc(!1).format(p.a)}}},n.getLabel=function(){return"after:".concat(n.value.format("YYYY/MM/DD"))},n}return AfterTimeFilter}(S),H=function(e){Object(r.a)(InboxFilter,e);var t=Object(a.a)(InboxFilter);function InboxFilter(){var e;Object(c.a)(this,InboxFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.inbox,e.appliesToTopic=function(e,t){var n;return(null===(n=e.relationships.stored_by)||void 0===n?void 0:n.data.some((function(e){return e.id===t.currentUserId})))?O.b.NO:e.attributes.visible?O.b.YES:O.b.NO},e.appliesToMessage=function(e){return e.meta.inInbox?O.b.YES:O.b.NO},e.relevantIfTagAdded=function(e,t){return e.tagId===b.g.INBOX&&String(e.userId)===t.user.id?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e,t){return e.tagId===b.g.INBOX&&String(e.userId)===t.user.id?O.b.NO:O.b.MAYBE},e.getLabel=function(){return"in:Inbox"},e}return InboxFilter}(S),G=function(e){Object(r.a)(ScheduledFilter,e);var t=Object(a.a)(ScheduledFilter);function ScheduledFilter(){var e;Object(c.a)(this,ScheduledFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.scheduled,e.appliesToTopic=function(e,t){return O.b.NO},e.appliesToMessage=function(e){return e.meta.state===O.m.Scheduled?O.b.YES:O.b.NO},e.relevantIfTagAdded=function(e,t){return"scheduled"===e.tag.name&&1===e.tag.tagTypeId?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e){return"scheduled"===e.tag.name&&1===e.tag.tagTypeId?O.b.NO:O.b.MAYBE},e.getLabel=function(){return"in:Scheduled"},e}return ScheduledFilter}(S),W=function(e){Object(r.a)(CancelledFilter,e);var t=Object(a.a)(CancelledFilter);function CancelledFilter(){var e;Object(c.a)(this,CancelledFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.cancelled,e.appliesToTopic=function(){return O.b.NO},e.appliesToMessage=function(e){return e.meta.state===O.m.Cancelled?O.b.YES:O.b.NO},e.relevantIfTagAdded=function(e){return"cancelled"===e.tag.name&&1===e.tag.tagTypeId?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e){return"cancelled"===e.tag.name&&1===e.tag.tagTypeId?O.b.NO:O.b.MAYBE},e.getLabel=function(){return"in:Cancelled"},e}return CancelledFilter}(S),z=function(e){Object(r.a)(StoredFilter,e);var t=Object(a.a)(StoredFilter);function StoredFilter(){var e;Object(c.a)(this,StoredFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.stored,e.appliesToTopic=function(e,t){var n;return(null===(n=e.relationships.stored_by)||void 0===n?void 0:n.data.some((function(e){return e.id===t.currentUserId})))?O.b.YES:O.b.NO},e.appliesToMessage=function(e){return e.meta.inInbox?O.b.NO:O.b.YES},e.relevantIfTagAdded=function(e,t){return e.tagId===b.g.INBOX&&String(e.userId)===t.user.id?O.b.NO:O.b.MAYBE},e.relevantIfTagRemoved=function(e,t){return e.tagId===b.g.INBOX&&String(e.userId)===t.user.id?O.b.YES:O.b.MAYBE},e.getLabel=function(){return"in:Archive"},e}return StoredFilter}(S),V=function(e){Object(r.a)(SentFilter,e);var t=Object(a.a)(SentFilter);function SentFilter(){var e;Object(c.a)(this,SentFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.sent,e.appliesToTopic=function(){return O.b.NO},e.appliesToMessage=function(e){switch(e.meta.state){case O.m.Sent:case O.m.Sending:case O.m.Scheduled:return O.b.YES;default:return O.b.NO}},e.relevantIfTagAdded=function(e){return e.tagId===b.g.SENT?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e){return e.tagId===b.g.SENT?O.b.NO:O.b.MAYBE},e.getLabel=function(){return"in:Out"},e}return SentFilter}(S),J=function(e){Object(r.a)(DraftFilter,e);var t=Object(a.a)(DraftFilter);function DraftFilter(){var e;Object(c.a)(this,DraftFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.draft,e.appliesToMessage=function(e){switch(e.meta.state){case O.m.PrivateDraft:case O.m.Draft:case O.m.Cancelled:return O.b.YES;default:return O.b.NO}},e.appliesToTopic=function(e){return e.attributes.visible?O.b.NO:O.b.YES},e.relevantIfTagAdded=function(e){return e.tagId===b.g.DRAFT?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e){return e.tagId===b.g.DRAFT?O.b.NO:O.b.MAYBE},e.getLabel=function(){return"in:Draft"},e}return DraftFilter}(S),Y=function(e){Object(r.a)(MyMessagesFilter,e);var t=Object(a.a)(MyMessagesFilter);function MyMessagesFilter(e){var n;return Object(c.a)(this,MyMessagesFilter),(n=t.call(this)).value=e,n.type=O.h.myMessages,n.relevantKeywordLabels=["ndr","no match"],n.hasMyMessageKeyword=function(e,t){return m.g(e.messageKeyword,t).map((function(e){return e.some((function(e){return n.relevantKeywordLabels.includes(e.label.toLowerCase())}))})).orElse(!1)},n.appliesToTopic=function(){return O.b.NO},n.appliesToMessage=function(e){if(n.value.id!==e.userConfig.user.id)return O.b.MAYBE;if(!e.meta.inInbox)return O.b.NO;var t=e.jobReferenceMetas.some((function(t){return t.tagId&&e.userConfig.myMessageTagIds.has(t.tagId)}));if(e.tenantConfig.settings.SLIM_MY_MESSAGES)return t||0===e.jobReferenceMetas.length?O.b.YES:O.b.NO;var r=e.keywords.some((function(t){return e.userConfig.myMessageTagIds.has(t.tagId)}));return t||r?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(e,t,n,r){return n.settings.SLIM_MY_MESSAGES&&e.tag.tagTypeId===b.h.JOB_REFERENCE?m.g(r.messageJobReferenceTag,e.messageId.toString()).map((function(n){var r=n.map((function(e){return e.tagId}));return[].concat(Object(o.a)(r),[e.id.toString(10)]).some((function(e){return t.myMessageTagIds.has(e)}))?O.b.MAYBE:O.b.NO})).orElse(O.b.MAYBE):O.b.MAYBE},n.relevantIfTagRemoved=function(e,t,r,a){return e.tagId===b.g.INBOX?O.b.NO:e.tag.tagTypeId===b.h.JOB_REFERENCE?m.g(a.messageJobReferenceTag,e.messageId.toString()).map((function(i){var o=i.map((function(e){return e.tagId}));return 0===o.length?r.settings.SLIM_MY_MESSAGES||n.hasMyMessageKeyword(a,e.messageId.toString())?O.b.YES:O.b.NO:o.some((function(e){return t.myMessageTagIds.has(e)}))?O.b.YES:O.b.NO})).orElse(O.b.MAYBE):O.b.MAYBE},n.getLabel=function(){return"MyMessages:".concat(Object(h.c)(n.value.firstName,n.value.lastName))},n.equals=function(e){return e instanceof MyMessagesFilter&&n.value.id===e.value.id},n.serialize=function(){return{term:{type:O.h.myMessages,query:n.value.id.toString()}}},n}return MyMessagesFilter}(S),q=function(e){Object(r.a)(MyWorkFilter,e);var t=Object(a.a)(MyWorkFilter);function MyWorkFilter(e){var n;return Object(c.a)(this,MyWorkFilter),(n=t.call(this)).value=e,n.type=O.h.myWork,n.relevantKeywordLabel="ndr",n.hasMyWorkKeyword=function(e,t){return m.g(e.messageKeyword,t).map((function(e){return e.some((function(e){return n.relevantKeywordLabel===e.label.toLowerCase()}))})).orElse(!1)},n.appliesToTopic=function(){return O.b.NO},n.appliesToMessage=function(e){if(n.value.id!==e.userConfig.user.id)return O.b.MAYBE;if(!e.meta.inInbox)return O.b.NO;var t=e.jobReferenceMetas.some((function(t){return t.tagId&&e.userConfig.myMessageTagIds.has(t.tagId)})),r=e.keywords.some((function(t){return e.userConfig.myMessageTagIds.has(t.tagId)}));return t||r?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(e,t,n,r){return e.tag.tagTypeId===b.h.JOB_REFERENCE?m.g(r.messageJobReferenceTag,e.messageId.toString()).map((function(n){var r=n.map((function(e){return e.tagId}));return[].concat(Object(o.a)(r),[e.id.toString(10)]).some((function(e){return t.myMessageTagIds.has(e)}))?O.b.MAYBE:O.b.NO})).orElse(O.b.MAYBE):O.b.MAYBE},n.relevantIfTagRemoved=function(e,t,r,a){return e.tagId===b.g.INBOX?O.b.NO:e.tag.tagTypeId===b.h.JOB_REFERENCE?m.g(a.messageJobReferenceTag,e.messageId.toString()).map((function(r){var i=r.map((function(e){return e.tagId}));return 0===i.length?n.hasMyWorkKeyword(a,e.messageId.toString())?O.b.YES:O.b.NO:i.some((function(e){return t.myMessageTagIds.has(e)}))?O.b.YES:O.b.NO})).orElse(O.b.MAYBE):O.b.MAYBE},n.getLabel=function(){return"MyWork:".concat(Object(h.c)(n.value.firstName,n.value.lastName))},n.equals=function(e){return e instanceof MyWorkFilter&&n.value.id===e.value.id},n.serialize=function(){return{term:{type:O.h.myWork,query:n.value.id.toString()}}},n}return MyWorkFilter}(S),K=function(e){Object(r.a)(FollowingFilter,e);var t=Object(a.a)(FollowingFilter);function FollowingFilter(){var e;Object(c.a)(this,FollowingFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.following,e.appliesToTopic=function(){return O.b.NO},e.appliesToMessage=function(e){return e.assignments.some((function(t){return t.assignedToUserId===e.userConfig.user.id}))?O.b.YES:O.b.NO},e.relevantIfTagAdded=function(e,t){return String(e.assignedToUserId)===t.user.id&&e.tag.id===b.g.TODO?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e,t){return String(e.assignedToUserId)===t.user.id&&e.tag.id===b.g.TODO?O.b.NO:O.b.MAYBE},e.getLabel=function(){return"in:Following"},e}return FollowingFilter}(S),X=function(e){Object(r.a)(AllTeamsFilter,e);var t=Object(a.a)(AllTeamsFilter);function AllTeamsFilter(){var e;Object(c.a)(this,AllTeamsFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.allTeams,e.appliesToTopic=function(){return O.b.YES},e.appliesToMessage=function(){return O.b.YES},e.relevantIfTagAdded=function(){return O.b.YES},e.relevantIfTagRemoved=function(){return O.b.YES},e.getLabel=function(){return"in:AllTeams"},e}return AllTeamsFilter}(S),Q=function(e){Object(r.a)(HasCategoryFilter,e);var t=Object(a.a)(HasCategoryFilter);function HasCategoryFilter(){var e;Object(c.a)(this,HasCategoryFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.hasCategory,e.appliesToTopic=function(e){var t,n;return(null!==(t=null===(n=e.relationships.category_tag)||void 0===n?void 0:n.data.length)&&void 0!==t?t:0)>0?O.b.YES:O.b.NO},e.appliesToMessage=function(e){return e.categories.length>0?O.b.YES:O.b.NO},e.relevantIfTagAdded=function(e){return e.tag.tagTypeId===b.h.CATEGORY?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e,t,n,r){return e.tag.tagTypeId!==b.h.CATEGORY?O.b.MAYBE:m.g(r.messageCategoryTag,e.messageId.toString()).orElse([]).length>0?O.b.YES:O.b.NO},e}return HasCategoryFilter}(S),Z=function(e){Object(r.a)(HasJobReferenceFilter,e);var t=Object(a.a)(HasJobReferenceFilter);function HasJobReferenceFilter(){var e;Object(c.a)(this,HasJobReferenceFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.hasJobReference,e.appliesToTopic=function(e){var t,n;return(null!==(t=null===(n=e.relationships.job_reference)||void 0===n?void 0:n.data.length)&&void 0!==t?t:0)>0?O.b.YES:O.b.NO},e.appliesToMessage=function(e){return e.jobReferences.length>0?O.b.YES:O.b.NO},e.relevantIfTagAdded=function(e){return e.tag.tagTypeId===b.h.JOB_REFERENCE?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e,t,n,r){return e.tag.tagTypeId!==b.h.JOB_REFERENCE?O.b.MAYBE:m.g(r.messageJobReferenceTag,e.messageId.toString()).orElse([]).length>0?O.b.YES:O.b.NO},e}return HasJobReferenceFilter}(S),$=function(e){Object(r.a)(HasPersonFilter,e);var t=Object(a.a)(HasPersonFilter);function HasPersonFilter(){var e;Object(c.a)(this,HasPersonFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.hasPerson,e.appliesToTopic=function(){return O.b.NO},e.appliesToMessage=function(e){return e.assignments.length>0?O.b.YES:O.b.NO},e.relevantIfTagAdded=function(e){return e.tag.tagTypeId===b.h.TODO?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e,t,n,r){var a=m.g(r.messageAssignment,e.messageId.toString()).orElse([]);return e.tag.tagTypeId!==b.h.TODO?O.b.MAYBE:a.length>0?O.b.YES:O.b.NO},e}return HasPersonFilter}(S),ee=function(e){Object(r.a)(HasCommentFilter,e);var t=Object(a.a)(HasCommentFilter);function HasCommentFilter(){var e;Object(c.a)(this,HasCommentFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.hasComment,e.appliesToTopic=function(e){return e.relationships.topic_comment&&e.relationships.topic_comment.data.length>0?O.b.YES:O.b.NO},e.appliesToMessage=function(e){return e.meta.activitySummary.comments.length>0?O.b.YES:O.b.NO},e.relevantIfTagAdded=function(e){return e.tagId===b.g.COMMENT?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e){return e.tagId===b.g.COMMENT?O.b.NO:O.b.MAYBE},e.getLabel=function(){return"has:Comment"},e}return HasCommentFilter}(S),te=function(e){Object(r.a)(HasUnreadCommentFilter,e);var t=Object(a.a)(HasUnreadCommentFilter);function HasUnreadCommentFilter(){var e;Object(c.a)(this,HasUnreadCommentFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.hasUnreadComment,e.appliesToTopic=function(e){var t=Object(j.a)(e);return e.relationships.topic_comment&&t>0?O.b.YES:O.b.NO},e.appliesToMessage=function(e){var t;return e.meta.activitySummary.comments.length>0&&(null===(t=e.meta.witness)||void 0===t?void 0:t.comment.time)&&parseInt(e.meta.witness.comment.time,10)<Math.max.apply(Math,Object(o.a)(e.meta.activitySummary.comments.map((function(e){return parseInt(e.time,10)}))))?O.b.YES:O.b.NO},e.relevantIfTagAdded=function(e){return e.tagId===b.g.COMMENT?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(e){return O.b.MAYBE},e.getLabel=function(){return"has:UnreadComment"},e}return HasUnreadCommentFilter}(S),ne=function(e){Object(r.a)(HasAttachmentFilter,e);var t=Object(a.a)(HasAttachmentFilter);function HasAttachmentFilter(){var e;Object(c.a)(this,HasAttachmentFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.hasAttachment,e.appliesToTopic=function(e){return e.relationships.topic_attachment&&e.relationships.topic_attachment.data.length>0?O.b.YES:O.b.NO},e.appliesToMessage=function(e){return e.meta.hasAttachment?O.b.YES:O.b.NO},e.relevantIfTagAdded=function(){return O.b.MAYBE},e.relevantIfTagRemoved=function(){return O.b.MAYBE},e.getLabel=function(){return"has:Attachment"},e}return HasAttachmentFilter}(S),re=function(e){Object(r.a)(IsReadFilter,e);var t=Object(a.a)(IsReadFilter);function IsReadFilter(){var e;Object(c.a)(this,IsReadFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.isRead,e.appliesToTopic=function(){return O.b.NO},e.appliesToMessage=function(){return O.b.NO},e.relevantIfTagAdded=function(t,n){return e.isReadOrViewedTagForCurrentUser(t,n)?O.b.YES:O.b.MAYBE},e.relevantIfTagRemoved=function(t,n){return e.isReadOrViewedTagForCurrentUser(t,n)?O.b.NO:O.b.MAYBE},e.getLabel=function(){return"is:Read"},e.isReadOrViewedTagForCurrentUser=function(e,t){var n=e.tag.tagTypeId===b.h.SYSTEM,r=[b.g.VIEWED,b.g.READ].includes(e.tag.id),a=String(e.userId)===t.user.id;return n&&r&&a},e}return IsReadFilter}(S),ae=function(e){Object(r.a)(IsUnreadFilter,e);var t=Object(a.a)(IsUnreadFilter);function IsUnreadFilter(){var e;Object(c.a)(this,IsUnreadFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.isUnread,e.appliesToTopic=function(){return O.b.NO},e.appliesToMessage=function(){return O.b.YES},e.relevantIfTagAdded=function(e,t){return(new re).relevantIfTagAdded(e,t)===O.b.YES?O.b.NO:O.b.MAYBE},e.relevantIfTagRemoved=function(e,t){return(new re).relevantIfTagRemoved(e,t)===O.b.NO?O.b.YES:O.b.MAYBE},e.getLabel=function(){return"is:Unread"},e}return IsUnreadFilter}(S),ie=function(e){Object(r.a)(IsNoteFilter,e);var t=Object(a.a)(IsNoteFilter);function IsNoteFilter(){var e;Object(c.a)(this,IsNoteFilter);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=O.h.isNote,e.query=u.a.of("isNote:1"),e.appliesToTopic=function(){return O.b.YES},e.appliesToMessage=function(){return O.b.NO},e.relevantIfTagAdded=function(){return O.b.MAYBE},e.relevantIfTagRemoved=function(){return O.b.MAYBE},e.serialize=function(){return{term:{type:O.h.isNote}}},e.getLabel=function(){return"is:Note"},e}return IsNoteFilter}(S),oe=function(e){Object(r.a)(UserFilter,e);var t=Object(a.a)(UserFilter);function UserFilter(e){var n;return Object(c.a)(this,UserFilter),(n=t.call(this)).value=e,n.type=O.h.user,n.appliesToTopic=function(e,t){return e.relationships.author.data.id===t.currentUserId?O.b.YES:O.b.NO},n.appliesToMessage=function(e){return e.assignments.some((function(e){return e.assignedToUserId===n.value.id}))||e.meta.sender&&e.meta.sender.userId===n.value.id?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(e){return e.tag.id===b.g.TODO&&String(e.assignedToUserId)===n.value.id||String(e.userId)===n.value.id&&(e.tag.id===b.g.SENDING||e.tag.id===b.g.SENT)?O.b.YES:O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.user,query:n.value.id.toString()}}},n.getLabel=function(){return Object(h.c)(n.value.firstName,n.value.lastName)},n.equals=function(e){return e instanceof UserFilter&&n.value.id===e.value.id},n}return UserFilter}(S),ce=function(e){Object(r.a)(MessageIdFilter,e);var t=Object(a.a)(MessageIdFilter);function MessageIdFilter(e){var n;return Object(c.a)(this,MessageIdFilter),(n=t.call(this)).value=e,n.type=O.h.messageId,n.appliesToTopic=function(){return O.b.NO},n.appliesToMessage=function(e){return e.meta.id===n.value.toString()?O.b.YES:O.b.NO},n.relevantIfTagAdded=function(){return O.b.MAYBE},n.relevantIfTagRemoved=function(){return O.b.MAYBE},n.serialize=function(){return{term:{type:O.h.messageId,query:n.value.toString()}}},n.getLabel=function(){return"messageid:".concat(n.value)},n}return MessageIdFilter}(S),se=function isQuickFilter(e,t){var n=new Set([O.h.inbox,O.h.following,O.h.draft,O.h.stored,O.h.sent]),r=e instanceof Y&&e.value.id===t.id,a=e instanceof q&&e.value.id===t.id;return e instanceof S&&n.has(e.type)||r||a},le=new Set([O.h.inbox,O.h.myMessages,O.h.myWork,O.h.following,O.h.draft,O.h.stored,O.h.sent,O.h.subject,O.h.body,O.h.from,O.h.fromEmail,O.h.to,O.h.toEmail,O.h.cc,O.h.ccEmail,O.h.comment,O.h.hasComment,O.h.hasUnreadComment,O.h.attachmentName,O.h.hasAttachment,O.h.hasCategory,O.h.hasPerson,O.h.hasJobReference,O.h.allTeams,O.h.relativeTime,O.h.afterTime,O.h.beforeTime]),ue=function isModifier(e){return e instanceof S&&le.has(e.type)};!function(e){e.INBOX="inbox",e.FOLLOWING="following",e.STORED="stored",e.DRAFT="draft",e.SENT="sent",e.ALL="all",e.MY_MESSAGES="myMessages",e.MY_WORK="myWork"}(L||(L={}));var de=function quickFilterLabel(e){switch(e){case L.ALL:return"All";case L.INBOX:return"Inbox";case L.SENT:return"Out";case L.STORED:return"Archive";case L.DRAFT:return"Draft";case L.FOLLOWING:return"Follow";case L.MY_MESSAGES:return"My Messages";case L.MY_WORK:return v.b.t(v.a.MY_WORK);default:return Object(g.a)(e)}};function isPlainFilterTerm(e){return!!e.term}var fe=function buildSubscribableValidationDict(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{hasTeamToken:!1,hasMyMessages:!1,hasMyWork:!1,hasDateTime:!1,hasAssetTag:!1};return e.children.reduce((function(e,t){var n,r,a,i,o;if(!isPlainFilterTerm(t)){var c=buildSubscribableValidationDict(t);return Object.keys(c).forEach((function(t){c[t]&&(e[t]=!0)})),e}return e.hasTeamToken=null!==(n=e.hasTeamToken)&&void 0!==n&&n||t.term.type===O.h.allTeams||t.term.type===O.h.team,e.hasMyMessages=null!==(r=e.hasMyMessages)&&void 0!==r&&r||t.term.type===O.h.myMessages,e.hasMyWork=null!==(a=e.hasMyWork)&&void 0!==a&&a||t.term.type===O.h.myWork,e.hasDateTime=null!==(i=e.hasDateTime)&&void 0!==i&&i||t.term.type===O.h.afterTime||t.term.type===O.h.beforeTime||t.term.type===O.h.relativeTime,e.hasAssetTag=null!==(o=e.hasAssetTag)&&void 0!==o&&o||t.term.type===O.h.vesselName,e}),t)};function isPlainFilterSetSubscribable(e){var t=fe(e),n=t.hasTeamToken,r=t.hasMyMessages,a=t.hasMyWork,i=t.hasDateTime,o=t.hasAssetTag;return!!n&&!r&&!a&&!i&&!o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(5),a=n(6),i=n(3),o=function BasicAction(){Object(i.a)(this,BasicAction),this.type=this.constructor.name},c=function(e){Object(r.a)(BasicErrorAction,e);var t=Object(a.a)(BasicErrorAction);function BasicErrorAction(e){var n;return Object(i.a)(this,BasicErrorAction),(n=t.call(this)).error=e,n}return BasicErrorAction}(o);t.c=function middleware(e){return function(e){return function(t){return e(t instanceof o?function classToPlainObject(e,t){var n={type:e.type};return Object.keys(e).reduce((function(n,r){return"type"!==r&&(!t||"string"===typeof r&&t.includes(r))&&(n[r]=e[r]),n}),n)}(t):t)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r,a,i=n(7),o=n(475);!function(e){e.JOB_TAG="jobTag",e.JOB_TAG_PLURAL="jobTag_plural",e.JOB_TAG_ARTICLE="jobTag_article",e.ASSET_TAG="assetTag",e.ASSET_TAG_PLURAL="assetTag_plural",e.ASSET_TAG_ARTICLE="assetTag_article",e.CATEGORY_TAG="categoryTag",e.CATEGORY_TAG_PLURAL="categoryTag_plural",e.CATEGORY_TAG_ARTICLE="categoryTag_article",e.PERSON_TAG="personTag",e.PERSON_TAG_PLURAL="personTag_plural",e.PERSON_TAG_ARTICLE="personTag_article",e.PERSON="person",e.PERSON_PLURAL="person_plural",e.PERSON_ARTICLE="person_article",e.TEAM_TAG="teamTag",e.TEAM_TAG_PLURAL="teamTag_plural",e.TEAM_TAG_ARTICLE="teamTag_article",e.TEAM="team",e.TEAM_PLURAL="team_plural",e.TEAM_ARTICLE="team_article",e.PROFILE="profile",e.PROFILE_PLURAL="profile_plural",e.TENANT="tenant",e.TENANT_PLURAL="tenant_plural",e.MY_WORK="myWork",e.CONTACT="contact",e.CONTACT_PLURAL="contact_plural",e.CONTACT_GROUP="contactGroup",e.CONTACT_GROUP_PLURAL="contactGroup_plural",e.SEARCH_CONTACTS="search_contacts",e.CONTACTS_TABLE_NAME="contacts_table_name",e.CONTACTS_TABLE_EMAIL="contacts_table_email",e.CONTACTS_TABLE_REMOVE_LINK="contacts_table_remove_link",e.EDIT_CONTACT_GROUP_NAME_INPUT_LABEL="edit_contactGroup_name_input_label",e.EDIT_CONTACT_GROUP_ADD_CONTACTS_LABEL="edit_contactGroup_add_contacts_label",e.EDIT_CONTACT_GROUP_ADD_CONTACTS_INFO="edit_contactGroup_add_contacts_info",e.EDIT_CONTACT_GROUP_CANCEL_BUTTON="edit_contactGroup_cancel_button",e.EDIT_CONTACT_GROUP_SUBMIT_BUTTON="edit_contactGroup_submit_button",e.SAVE_CONTACT_GROUP_TITLE="save_contactGroup_title"}(a||(a={})),o.a.init({lng:"en",defaultNS:"glossary",resources:{en:{glossary:(r={},Object(i.a)(r,a.JOB_TAG,"Job Tag"),Object(i.a)(r,a.JOB_TAG_PLURAL,"Job Tags"),Object(i.a)(r,a.JOB_TAG_ARTICLE,"a Job Tag"),Object(i.a)(r,a.ASSET_TAG,"Asset Tag"),Object(i.a)(r,a.ASSET_TAG_PLURAL,"Asset Tags"),Object(i.a)(r,a.ASSET_TAG_ARTICLE,"an Asset Tag"),Object(i.a)(r,a.CATEGORY_TAG,"Category Tag"),Object(i.a)(r,a.CATEGORY_TAG_PLURAL,"Category Tags"),Object(i.a)(r,a.CATEGORY_TAG_ARTICLE,"a Category Tag"),Object(i.a)(r,a.PERSON_TAG,"Person Tag"),Object(i.a)(r,a.PERSON_TAG_PLURAL,"Person Tags"),Object(i.a)(r,a.PERSON_TAG_ARTICLE,"a Person Tag"),Object(i.a)(r,a.PERSON,"Person"),Object(i.a)(r,a.PERSON_PLURAL,"People"),Object(i.a)(r,a.PERSON_ARTICLE,"a Person"),Object(i.a)(r,a.TEAM_TAG,"Team Tag"),Object(i.a)(r,a.TEAM_TAG_PLURAL,"Team Tags"),Object(i.a)(r,a.TEAM_TAG_ARTICLE,"a Team Tag"),Object(i.a)(r,a.TEAM,"Team"),Object(i.a)(r,a.TEAM_PLURAL,"Teams"),Object(i.a)(r,a.TEAM_ARTICLE,"a Team"),Object(i.a)(r,a.PROFILE,"Profile"),Object(i.a)(r,a.PROFILE_PLURAL,"Profiles"),Object(i.a)(r,a.TENANT,"Tenant"),Object(i.a)(r,a.TENANT_PLURAL,"Tenants"),Object(i.a)(r,a.MY_WORK,"My Messages"),Object(i.a)(r,a.CONTACT,"Contact"),Object(i.a)(r,a.CONTACT_PLURAL,"Contacts"),Object(i.a)(r,a.CONTACT_GROUP,"Contact Group"),Object(i.a)(r,a.CONTACT_GROUP_PLURAL,"Contact Groups"),Object(i.a)(r,a.SEARCH_CONTACTS,"Search Contacts"),Object(i.a)(r,a.CONTACTS_TABLE_NAME,"Name"),Object(i.a)(r,a.CONTACTS_TABLE_EMAIL,"Emails"),Object(i.a)(r,a.CONTACTS_TABLE_REMOVE_LINK,"Remove"),Object(i.a)(r,a.EDIT_CONTACT_GROUP_NAME_INPUT_LABEL,"List Name"),Object(i.a)(r,a.EDIT_CONTACT_GROUP_ADD_CONTACTS_LABEL,"Add Contacts"),Object(i.a)(r,a.EDIT_CONTACT_GROUP_ADD_CONTACTS_INFO,"You can only add contacts that already exist in the system."),Object(i.a)(r,a.EDIT_CONTACT_GROUP_CANCEL_BUTTON,"Cancel"),Object(i.a)(r,a.EDIT_CONTACT_GROUP_SUBMIT_BUTTON,"Save"),Object(i.a)(r,a.SAVE_CONTACT_GROUP_TITLE,"New Group"),r)}}}),t.b=o.a},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return E}));var r,a=n(3),i=n(23),o=n(21),c=n(10),s=n(874),l=n(1454),u=n(1455),d=n(1456),b=n(1442),p=n(556),m=n(872),h=n(1453),g=n(1457),j=n(1458),v=n(1459),O=function(){function EffectCallback(e){var t=e.responseMapper,n=e.onSuccess,r=e.onError;Object(a.a)(this,EffectCallback),this.responseMapper=void 0,this.onSuccess=void 0,this.onError=void 0,this.cancel$=void 0,this.maxRetryCount=void 0,this.retryWait=void 0,this.unauthorizedHandler=void 0,this.responseMapper=t,this.onSuccess=n,this.onError=r,this.cancel$=null,this.maxRetryCount=0,this.retryWait=function(){return 0},this.unauthorizedHandler=null}return Object(c.a)(EffectCallback,[{key:"liftInto",value:function liftInto(e){var t=this,n=e.pipe(Object(m.a)((function(e){return t.onSuccess(t.responseMapper(e))})),Object(h.a)((function(e){return Object(l.a)(e,Object(u.a)(0,t.maxRetryCount+1)).pipe(Object(m.a)((function(e){var n=Object(o.a)(e,2),r=n[0],a=n[1];if(!(r instanceof s.a))throw r;if(r.status>=400&&r.status<=499)throw r;if(a>=t.maxRetryCount)throw r;return Object(d.a)(t.retryWait(a))})))})),Object(g.a)((function(e){var n=t.onError(e);return e instanceof s.a&&401===e.status&&t.unauthorizedHandler?[].concat(Object(i.a)(n),Object(i.a)(t.unauthorizedHandler(e.xhr.response,e.status))):n})));return this.cancel$?n.pipe(Object(j.a)(this.cancel$)):n}},{key:"setRetryRules",value:function setRetryRules(e,t){this.maxRetryCount=e,t&&(this.retryWait=t)}},{key:"setUnauthorizedHandler",value:function setUnauthorizedHandler(e){this.unauthorizedHandler=e}},{key:"cancelOn",value:function cancelOn(e,t){this.cancel$=b.a.apply(void 0,Object(i.a)(t.map((function(t){return e.pipe(Object(v.a)((function(e){return e.type===t.constructor.name})))}))))}},{key:"error",value:function error(e){return p.a.apply(void 0,Object(i.a)(this.onError(e)))}}]),EffectCallback}(),T=n(1461),y=n(555),S=n(1460),C=n(1488);!function(e){e.GET="GET",e.POST="POST",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(r||(r={}));var A=function HttpEffect(e){var t=e.url,n=e.method,r=e.body,i=e.responseMapper,o=e.callbacks,c=e.headers,s=e.cancelOnActions,l=e.responseType,u=e.disableRetry,d=e.crossDomain;Object(a.a)(this,HttpEffect),this.url=void 0,this.method=void 0,this.body=void 0,this.responseMapper=void 0,this.headers=void 0,this.cancelOnActions=void 0,this.callback=void 0,this.responseType=void 0,this.disableRetry=void 0,this.crossDomain=!1;var b=null!==c&&void 0!==c?c:{};this.url=t,this.method=n,this.body=r,this.headers=b,this.responseMapper=i,this.cancelOnActions=s,this.callback=new O(o),this.responseType=null!==l&&void 0!==l?l:"json",this.disableRetry=null!==u&&void 0!==u&&u,this.crossDomain=null!==d&&void 0!==d&&d};function hasHttpEffect(e){return"function"===typeof e.httpEffect}var E=function HttpEpic(e){return function(t,n){return t.pipe(Object(v.a)(hasHttpEffect)).pipe(Object(y.a)((function(e){return e.httpEffect()})),Object(S.a)((function(e){return e.method===r.GET?e.method+"-"+e.url:e.method})),Object(m.a)((function(a){var i=a.pipe(Object(y.a)((function(r){var a=r.url,i=r.method,o=r.headers,c=r.body,s=r.callback,l=r.cancelOnActions,u=r.responseType,d=r.disableRetry,b=r.crossDomain;return l&&s.cancelOn(t,l),s.setRetryRules(d?0:3,(function(e){return 1e3*e})),s.setUnauthorizedHandler(e(n.value)),s.liftInto(function call(e,t,n,r,a,i){return Object(T.a)({url:e,method:t,headers:n,body:r,responseType:a,crossDomain:i&&!0,withCredentials:i&&!0})}(a,i,o,c,u,b))})));return a.key.substring(0,3)===r.GET?i.pipe(Object(C.a)(100),Object(m.a)((function(e){return e}))):i.pipe(Object(m.a)((function(e){return e})))})))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),a=function Routes(){Object(r.a)(this,Routes)};a.LIST="/list",a.LIST_ACTIONS="/list/actions",a.LIST_ACTIONS_EXPORT=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/list/actions/export/".concat(e)},a.LIST_ACTIONS_TAG="/list/actions/tag",a.LIST_ACTIONS_CONFIRM_STORE="/list/actions/confirm/store",a.LIST_ACTIONS_CONFIRM_UNSTORE="/list/actions/confirm/unstore",a.LIST_ACTIONS_CONFIRM_FOLLOW="/list/actions/confirm/follow",a.LIST_ACTIONS_CONFIRM_UNFOLLOW="/list/actions/confirm/unfollow",a.LIST_ACTIONS_CONFIRM_SHARE_MESSAGE_LINKS="/list/actions/confirm/share-message-links",a.LIST_ACTIONS_CONFIRM_DELETE_PRIVATE_DRAFTS="/list/actions/confirm/delete-private-drafts",a.LIST_ITEM=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":type",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":id";return"/list/".concat(e,"/").concat(t)},a.LIST_ITEM_TAB=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":type",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":id",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:":tab";return"/list/".concat(e,"/").concat(t,"/").concat(n)},a.LIST_MOBILE_SEARCH="/list/search",a.ADDRESS_BOOK="/address-book",a.ADDRESS_BOOK_CONTACTS="/address-book/contacts",a.ADDRESS_BOOK_CONTACT_GROUPS="/address-book/contact-groups",a.ADDRESS_BOOK_CONTACT_DETAILS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/address-book/contacts/".concat(e)},a.ADDRESS_BOOK_CONTACT_GROUP_DETAILS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/address-book/contact-groups/".concat(e)},a.ADDRESS_BOOK_CONTACT_UPDATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/address-book/contacts/".concat(e,"/update")},a.ADDRESS_BOOK_CONTACT_GROUP_CREATE="/address-book/contact-groups/:id/create",a.ADDRESS_BOOK_CONTACT_CREATE=function(){return"/address-book/contacts/create"},a.ADDRESS_BOOK_CONTACT_GROUP_UPDATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/address-book/contact-groups/".concat(e,"/update")},a.MESSAGE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/list/message/".concat(e)},a.MESSAGE_ACTIVITY=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/list/message/".concat(e,"/activity")},a.MESSAGE_TAGS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/list/message/".concat(e,"/tags")},a.TOPIC=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/list/topic/".concat(e)},a.TOPIC_FOLLOWERS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/list/topic/".concat(e,"/followers")},a.TOPIC_ACTIVITY=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/list/topic/".concat(e,"/activity")},a.COMPOSE_NEW_MESSAGE="/compose/message/new",a.COMPOSE_MESSAGE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/compose/message/".concat(e)},a.COMPOSE_MESSAGE_TAGS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/compose/message/".concat(e,"/tags")},a.COMPOSE_MESSAGE_ACTIVITY=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/compose/message/".concat(e,"/activity")},a.SELECT_TEMPLATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/compose/templates/message/".concat(e,"/")},a.COMPOSE_FOLLOW_UP_MESSAGE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":action";return"/follow-up/message/".concat(e,"/").concat(t)},a.COMPOSE_NEW_TOPIC="/compose/topic/new",a.COMPOSE_TOPIC=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/compose/topic/".concat(e)},a.COMPOSE_TOPIC_FOLLOWERS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/compose/topic/".concat(e,"/followers")},a.COMPOSE_TOPIC_ACTIVITY=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/compose/topic/".concat(e,"/activity")},a.INSIGHTS="/insights",a.JOB_REFERENCES="/jobreference",a.JOB_REFERENCE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/jobreference/".concat(e)},a.WORKFLOWS_INDEX="/workflows",a.WORKFLOWS_CREATE="/workflows/create",a.WORKFLOW=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.WORKFLOWS_INDEX,"/").concat(e)},a.SETTINGS_INDEX="/settings",a.SETTINGS_CHANGE_PASSWORD="/settings/change-password",a.SETTINGS_CATEGORY_TAGS="/settings/category-tags",a.SETTINGS_CATEGORY_TAGS_NEW="/settings/category-tags/new",a.SETTINGS_CATEGORY_TAGS_DETAIL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/settings/category-tags/".concat(e,"/view")},a.SETTINGS_CATEGORY_TAGS_EDIT=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/settings/category-tags/".concat(e,"/edit")},a.SETTINGS_CATEGORY_TAGS_DETAIL_TEAMS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/settings/category-tags/".concat(e,"/teams")},a.SETTINGS_APPEARANCE="/settings/appearance",a.SETTINGS_TEAMS="/settings/teams",a.SETTINGS_TEAMS_CREATE="/settings/teams/create",a.SETTINGS_PROFILES="/settings/profiles",a.SETTINGS_TENANT="/settings/tenant",a.SETTINGS_TEAMS_DETAILS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/settings/teams/".concat(e,"/details")},a.SETTINGS_TEAM_PROFILE_DETAILS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(e,"/profile/details")},a.SETTINGS_TEAM_PROFILE_UPDATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(e,"/profile/update")},a.SETTINGS_TEAM_PROFILE_CREATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(e,"/profile/create")},a.SETTINGS_TEAMS_UPDATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/settings/teams/".concat(e,"/details/update")},a.SETTINGS_TEAMS_USERS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/settings/teams/".concat(e,"/users")},a.SETTINGS_USERS="/settings/users",a.SETTINGS_USERS_CREATE="/settings/users/create",a.SETTINGS_TENANT_PROFILE_DETAILS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(e,"/profile")},a.SETTINGS_TENANT_PROFILE_UPDATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(e,"/profile/update")},a.SETTINGS_TENANT_PROFILE_CREATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(e,"/profile/create")},a.SETTINGS_TEAMS_TEAM_PROFILE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.SETTINGS_TEAMS,"/").concat(a.SETTINGS_TEAM_PROFILE_DETAILS(e))},a.SETTINGS_TEAMS_TEAM_PROFILE_UPDATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.SETTINGS_TEAMS,"/").concat(a.SETTINGS_TEAM_PROFILE_UPDATE(e))},a.SETTINGS_TEAMS_TEAM_PROFILE_CREATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.SETTINGS_TEAMS,"/").concat(a.SETTINGS_TEAM_PROFILE_CREATE(e))},a.SETTINGS_PROFILES_TEAM_PROFILE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.SETTINGS_PROFILES,"/").concat(a.SETTINGS_TEAM_PROFILE_DETAILS(e))},a.SETTINGS_PROFILES_TEAM_PROFILE_UPDATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.SETTINGS_PROFILES,"/").concat(a.SETTINGS_TEAM_PROFILE_UPDATE(e))},a.SETTINGS_PROFILES_TENANT_PROFILE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.SETTINGS_PROFILES,"/").concat(a.SETTINGS_TENANT_PROFILE_DETAILS(e))},a.SETTINGS_PROFILES_TENANT_PROFILE_UPDATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.SETTINGS_PROFILES,"/").concat(a.SETTINGS_TENANT_PROFILE_UPDATE(e))},a.SETTINGS_TENANT_TENANT_PROFILE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.SETTINGS_TENANT,"/").concat(a.SETTINGS_TENANT_PROFILE_DETAILS(e))},a.SETTINGS_TENANT_TENANT_PROFILE_UPDATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.SETTINGS_TENANT,"/").concat(a.SETTINGS_TENANT_PROFILE_UPDATE(e))},a.SETTINGS_TENANT_TENANT_PROFILE_CREATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"".concat(a.SETTINGS_TENANT,"/").concat(a.SETTINGS_TENANT_PROFILE_CREATE(e))},a.SETTINGS_USERS_DETAILS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/settings/users/".concat(e,"/details")},a.SETTINGS_USERS_DETAILS_TEAMS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/settings/users/".concat(e,"/details/teams")},a.SETTINGS_USERS_UPDATE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/settings/users/".concat(e,"/details/update")},a.SETTINGS_USERS_ROLES=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/settings/users/".concat(e,"/roles")},a.SETTINGS_MY_WORK="/settings/my-work",a.SETTINGS_NOTIFICATIONS="/settings/notifications",a.PREVIEW=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":id";return"/preview/".concat(e)},a.CREDITS="/credits",a.SEDNA_LITE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":tenant";return"/lite/".concat(e)},a.SEDNA_LITE_LOGIN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":tenant";return"".concat(a.SEDNA_LITE(e),"/login")},a.SEDNA_LITE_MESSAGE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":tenant",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":id";return"".concat(a.SEDNA_LITE(e),"/").concat(t)},a.SHARED_MESSAGE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":tenant?",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":id";return"/shared-message/".concat(e,"/").concat(t)},a.MOBILE_TEAMS="/teams"},function(e,t,n){"use strict";n.d(t,"S",(function(){return r})),n.d(t,"I",(function(){return O})),n.d(t,"H",(function(){return T})),n.d(t,"N",(function(){return y})),n.d(t,"b",(function(){return S})),n.d(t,"f",(function(){return C})),n.d(t,"x",(function(){return A})),n.d(t,"M",(function(){return E})),n.d(t,"h",(function(){return w})),n.d(t,"F",(function(){return _})),n.d(t,"G",(function(){return I})),n.d(t,"p",(function(){return x})),n.d(t,"m",(function(){return k})),n.d(t,"l",(function(){return N})),n.d(t,"J",(function(){return R})),n.d(t,"t",(function(){return F})),n.d(t,"w",(function(){return M})),n.d(t,"s",(function(){return D})),n.d(t,"v",(function(){return L})),n.d(t,"u",(function(){return P})),n.d(t,"r",(function(){return U})),n.d(t,"c",(function(){return B})),n.d(t,"z",(function(){return H})),n.d(t,"A",(function(){return G})),n.d(t,"y",(function(){return W})),n.d(t,"g",(function(){return z})),n.d(t,"O",(function(){return V})),n.d(t,"q",(function(){return J})),n.d(t,"R",(function(){return Y})),n.d(t,"j",(function(){return q})),n.d(t,"k",(function(){return K})),n.d(t,"d",(function(){return X})),n.d(t,"i",(function(){return Q})),n.d(t,"B",(function(){return Z})),n.d(t,"T",(function(){return $})),n.d(t,"K",(function(){return ee})),n.d(t,"P",(function(){return te})),n.d(t,"Q",(function(){return ne})),n.d(t,"D",(function(){return re})),n.d(t,"e",(function(){return ae})),n.d(t,"a",(function(){return ie})),n.d(t,"L",(function(){return oe})),n.d(t,"E",(function(){return ce})),n.d(t,"C",(function(){return se})),n.d(t,"o",(function(){return de})),n.d(t,"n",(function(){return ge})),n.d(t,"V",(function(){return Oe})),n.d(t,"U",(function(){return Te}));var r,a=n(23),i=n(4),o=n(7),c=n(10),s=n(5),l=n(6),u=n(3),d=n(13),b=n(52),p=n(44),m=n(138),h=n(15),g=n(8);!function(e){e.ALL_TEAMS="ALL_TEAMS",e.ATTACHMENT_NAME="ATTACHMENT_NAME",e.BODY="BODY",e.CATEGORY="CATEGORY",e.COMMENT="COMMENT",e.CUSTOM="CUSTOM",e.DRAFT="DRAFT",e.FOLLOWING="FOLLOWING",e.FROM="FROM",e.HAS_ATTACHMENT="HAS_ATTACHMENT",e.HAS_CATEGORY="HAS_CATEGORY",e.HAS_COMMENT="HAS_COMMENT",e.HAS_UNREAD_COMMENT="HAS_UNREAD_COMMENT",e.HAS_JOB_REFERENCE="HAS_JOB_REFERENCE",e.HAS_PERSON="HAS_PERSON",e.INBOX="INBOX",e.JOB_REFERENCE="JOB_REFERENCE",e.LOADING="LOADING",e.MY_MESSAGE="MY_MESSAGE",e.MY_WORK="MY_WORK",e.NOT="NOT",e.OR="OR",e.OUT="OUT",e.PERSON="PERSON",e.STORED="STORED",e.SUBJECT="SUBJECT",e.TEAM="TEAM",e.TEXT="TEXT",e.TO="TO",e.CC="CC",e.USER="USER",e.VESSEL_NAME="VESSEL_NAME",e.IS_READ="IS_READ",e.IS_UNREAD="IS_UNREAD",e.MESSAGE_ID="MESSAGE_ID",e.IS_NOTE="IS_NOTE",e.SCHEDULED="SCHEDULED",e.CANCELLED="CANCELLED",e.BEFORE_TIME="BEFORE_TIME",e.AFTER_TIME="AFTER_TIME",e.RELATIVE_TIME="RELATIVE_TIME",e.AFTER="AFTER",e.BEFORE="BEFORE",e.SINCE="SINCE"}(r||(r={}));var j=function FilterToken(){Object(u.a)(this,FilterToken),this.type=void 0},v=function(e){Object(s.a)(FilterQueryToken,e);var t=Object(l.a)(FilterQueryToken);function FilterQueryToken(e){var n;return Object(u.a)(this,FilterQueryToken),(n=t.call(this)).query=e,n}return FilterQueryToken}(j),O=function(e){Object(s.a)(OrToken,e);var t=Object(l.a)(OrToken);function OrToken(){var e;Object(u.a)(this,OrToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=OrToken.type,e}return OrToken}(j);O.type=r.OR;var T=function(e){Object(s.a)(NotToken,e);var t=Object(l.a)(NotToken);function NotToken(){var e;Object(u.a)(this,NotToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=NotToken.type,e}return NotToken}(j);T.type=r.NOT;var y=function(e){Object(s.a)(SinceToken,e);var t=Object(l.a)(SinceToken);function SinceToken(){var e;Object(u.a)(this,SinceToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=SinceToken.type,e}return SinceToken}(j);y.type=r.SINCE;var S=function(e){Object(s.a)(AfterToken,e);var t=Object(l.a)(AfterToken);function AfterToken(){var e;Object(u.a)(this,AfterToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=AfterToken.type,e}return AfterToken}(j);S.type=r.AFTER;var C=function(e){Object(s.a)(BeforeToken,e);var t=Object(l.a)(BeforeToken);function BeforeToken(){var e;Object(u.a)(this,BeforeToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=BeforeToken.type,e}return BeforeToken}(j);C.type=r.BEFORE;var A=function(e){Object(s.a)(InboxToken,e);var t=Object(l.a)(InboxToken);function InboxToken(){var e;Object(u.a)(this,InboxToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=InboxToken.type,e}return InboxToken}(j);A.type=r.INBOX;var E=function(e){Object(s.a)(ScheduledToken,e);var t=Object(l.a)(ScheduledToken);function ScheduledToken(){var e;Object(u.a)(this,ScheduledToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=ScheduledToken.type,e}return ScheduledToken}(j);E.type=r.SCHEDULED;var w=function(e){Object(s.a)(CancelledToken,e);var t=Object(l.a)(CancelledToken);function CancelledToken(){var e;Object(u.a)(this,CancelledToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=CancelledToken.type,e}return CancelledToken}(j);w.type=r.CANCELLED;var _=function(e){Object(s.a)(MyMessagesToken,e);var t=Object(l.a)(MyMessagesToken);function MyMessagesToken(){var e;Object(u.a)(this,MyMessagesToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=MyMessagesToken.type,e}return MyMessagesToken}(v);_.type=r.MY_MESSAGE;var I=function(e){Object(s.a)(MyWorkToken,e);var t=Object(l.a)(MyWorkToken);function MyWorkToken(){var e;Object(u.a)(this,MyWorkToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=MyWorkToken.type,e}return MyWorkToken}(v);I.type=r.MY_WORK;var x=function(e){Object(s.a)(FollowingToken,e);var t=Object(l.a)(FollowingToken);function FollowingToken(){var e;Object(u.a)(this,FollowingToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=FollowingToken.type,e}return FollowingToken}(j);x.type=r.FOLLOWING;var k=function(e){Object(s.a)(DraftToken,e);var t=Object(l.a)(DraftToken);function DraftToken(){var e;Object(u.a)(this,DraftToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=DraftToken.type,e}return DraftToken}(j);k.type=r.DRAFT;var N=function(e){Object(s.a)(DoneToken,e);var t=Object(l.a)(DoneToken);function DoneToken(){var e;Object(u.a)(this,DoneToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=DoneToken.type,e}return DoneToken}(j);N.type=r.STORED;var R=function(e){Object(s.a)(OutToken,e);var t=Object(l.a)(OutToken);function OutToken(){var e;Object(u.a)(this,OutToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=OutToken.type,e}return OutToken}(j);R.type=r.OUT;var F=function(e){Object(s.a)(HasCommentToken,e);var t=Object(l.a)(HasCommentToken);function HasCommentToken(){var e;Object(u.a)(this,HasCommentToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=HasCommentToken.type,e}return HasCommentToken}(j);F.type=r.HAS_COMMENT;var M=function(e){Object(s.a)(HasUnreadCommentToken,e);var t=Object(l.a)(HasUnreadCommentToken);function HasUnreadCommentToken(){var e;Object(u.a)(this,HasUnreadCommentToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=HasUnreadCommentToken.type,e}return HasUnreadCommentToken}(j);M.type=r.HAS_UNREAD_COMMENT;var D=function(e){Object(s.a)(HasCategoryToken,e);var t=Object(l.a)(HasCategoryToken);function HasCategoryToken(){var e;Object(u.a)(this,HasCategoryToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=HasCategoryToken.type,e}return HasCategoryToken}(j);D.type=r.HAS_CATEGORY;var L=function(e){Object(s.a)(HasPersonToken,e);var t=Object(l.a)(HasPersonToken);function HasPersonToken(){var e;Object(u.a)(this,HasPersonToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=HasPersonToken.type,e}return HasPersonToken}(j);L.type=r.HAS_PERSON;var P=function(e){Object(s.a)(HasJobReferenceToken,e);var t=Object(l.a)(HasJobReferenceToken);function HasJobReferenceToken(){var e;Object(u.a)(this,HasJobReferenceToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=HasJobReferenceToken.type,e}return HasJobReferenceToken}(j);P.type=r.HAS_JOB_REFERENCE;var U=function(e){Object(s.a)(HasAttachmentToken,e);var t=Object(l.a)(HasAttachmentToken);function HasAttachmentToken(){var e;Object(u.a)(this,HasAttachmentToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=HasAttachmentToken.type,e}return HasAttachmentToken}(j);U.type=r.HAS_ATTACHMENT;var B=function(e){Object(s.a)(AllTeamsToken,e);var t=Object(l.a)(AllTeamsToken);function AllTeamsToken(){var e;Object(u.a)(this,AllTeamsToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=AllTeamsToken.type,e}return AllTeamsToken}(j);B.type=r.ALL_TEAMS;var H=function(e){Object(s.a)(IsReadToken,e);var t=Object(l.a)(IsReadToken);function IsReadToken(){var e;Object(u.a)(this,IsReadToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=IsReadToken.type,e}return IsReadToken}(j);H.type=r.IS_READ;var G=function(e){Object(s.a)(IsUnreadToken,e);var t=Object(l.a)(IsUnreadToken);function IsUnreadToken(){var e;Object(u.a)(this,IsUnreadToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=IsUnreadToken.type,e}return IsUnreadToken}(j);G.type=r.IS_UNREAD;var W=function(e){Object(s.a)(IsNoteToken,e);var t=Object(l.a)(IsNoteToken);function IsNoteToken(){var e;Object(u.a)(this,IsNoteToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=IsNoteToken.type,e}return IsNoteToken}(j);W.type=r.IS_NOTE;var z=function(e){Object(s.a)(BodyToken,e);var t=Object(l.a)(BodyToken);function BodyToken(){var e;Object(u.a)(this,BodyToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=BodyToken.type,e}return BodyToken}(v);z.type=r.BODY;var V=function(e){Object(s.a)(SubjectToken,e);var t=Object(l.a)(SubjectToken);function SubjectToken(){var e;Object(u.a)(this,SubjectToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=SubjectToken.type,e}return SubjectToken}(v);V.type=r.SUBJECT;var J=function(e){Object(s.a)(FromToken,e);var t=Object(l.a)(FromToken);function FromToken(){var e;Object(u.a)(this,FromToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=FromToken.type,e}return FromToken}(v);J.type=r.FROM;var Y=function(e){Object(s.a)(ToToken,e);var t=Object(l.a)(ToToken);function ToToken(){var e;Object(u.a)(this,ToToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=ToToken.type,e}return ToToken}(v);Y.type=r.TO;var q=function(e){Object(s.a)(CcToken,e);var t=Object(l.a)(CcToken);function CcToken(){var e;Object(u.a)(this,CcToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=CcToken.type,e}return CcToken}(v);q.type=r.CC;var K=function(e){Object(s.a)(CommentToken,e);var t=Object(l.a)(CommentToken);function CommentToken(){var e;Object(u.a)(this,CommentToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=CommentToken.type,e}return CommentToken}(v);K.type=r.COMMENT;var X=function(e){Object(s.a)(AttachmentToken,e);var t=Object(l.a)(AttachmentToken);function AttachmentToken(){var e;Object(u.a)(this,AttachmentToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=AttachmentToken.type,e}return AttachmentToken}(v);X.type=r.ATTACHMENT_NAME;var Q=function(e){Object(s.a)(CategoryToken,e);var t=Object(l.a)(CategoryToken);function CategoryToken(){var e;Object(u.a)(this,CategoryToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=CategoryToken.type,e}return CategoryToken}(v);Q.type=r.CATEGORY;var Z=function(e){Object(s.a)(JobToken,e);var t=Object(l.a)(JobToken);function JobToken(){var e;Object(u.a)(this,JobToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=JobToken.type,e}return JobToken}(v);Z.type=r.JOB_REFERENCE;var $=function(e){Object(s.a)(VesselNameToken,e);var t=Object(l.a)(VesselNameToken);function VesselNameToken(){var e;Object(u.a)(this,VesselNameToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=VesselNameToken.type,e}return VesselNameToken}(v);$.type=r.VESSEL_NAME;var ee=function(e){Object(s.a)(PersonToken,e);var t=Object(l.a)(PersonToken);function PersonToken(){var e;Object(u.a)(this,PersonToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=PersonToken.type,e}return PersonToken}(v);ee.type=r.PERSON;var te=function(e){Object(s.a)(TeamToken,e);var t=Object(l.a)(TeamToken);function TeamToken(){var e;Object(u.a)(this,TeamToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=TeamToken.type,e}return TeamToken}(v);te.type=r.TEAM;var ne=function(e){Object(s.a)(TextToken,e);var t=Object(l.a)(TextToken);function TextToken(){var e;Object(u.a)(this,TextToken);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).type=TextToken.type,e}return TextToken}(v);ne.type=r.TEXT;var re=function(e){Object(s.a)(MessageIdToken,e);var t=Object(l.a)(MessageIdToken);function MessageIdToken(e){var n;return Object(u.a)(this,MessageIdToken),(n=t.call(this,Number.parseInt(e,10).toString())).value=e,n.type=MessageIdToken.type,n}return MessageIdToken}(v);re.type=r.MESSAGE_ID;var ae=function(e){Object(s.a)(BeforeTimeToken,e);var t=Object(l.a)(BeforeTimeToken);function BeforeTimeToken(e){var n;return Object(u.a)(this,BeforeTimeToken),(n=t.call(this)).value=e,n.type=BeforeTimeToken.type,n.value=e.endOf("date"),n}return BeforeTimeToken}(j);ae.type=r.BEFORE_TIME;var ie=function(e){Object(s.a)(AfterTimeToken,e);var t=Object(l.a)(AfterTimeToken);function AfterTimeToken(e){var n;return Object(u.a)(this,AfterTimeToken),(n=t.call(this)).value=e,n.type=AfterTimeToken.type,n.value=e.startOf("date"),n}return AfterTimeToken}(j);ie.type=r.AFTER_TIME;var oe=function(e){Object(s.a)(RelativeTimeToken,e);var t=Object(l.a)(RelativeTimeToken);function RelativeTimeToken(e){var n;return Object(u.a)(this,RelativeTimeToken),(n=t.call(this)).value=e,n.type=RelativeTimeToken.type,n}return RelativeTimeToken}(j);oe.type=r.RELATIVE_TIME;var ce,se,le=function(e){Object(s.a)(CustomSearchToken,e);var t=Object(l.a)(CustomSearchToken);function CustomSearchToken(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object(u.a)(this,CustomSearchToken),(n=t.call(this)).query=e,n.name=r,n.type=CustomSearchToken.type,n}return CustomSearchToken}(j);le.type=r.CUSTOM,function(e){e.is="is",e.in="in",e.has="has",e.subject="subject",e.body="body",e.from="from",e.to="to",e.cc="cc",e.comment="comment",e.attachment="attachment",e.mymessages="mymessages",e.mywork="mywork",e.team="team",e.messageid="messageid"}(ce||(ce={})),function(e){e.Or="or",e.Not="not",e.Read="read",e.Unread="unread",e.Inbox="inbox",e.Following="following",e.Drafts="drafts",e.Archive="archive",e.Out="out",e.AllTeams="all teams",e.Subject="subject",e.From="from",e.To="to",e.Comment="comment",e.UnreadComment="unreadComment",e.Attachment="attachment",e.Category="category",e.Job="job",e.Person="person",e.Note="note",e.Scheduled="scheduled",e.Cancelled="cancelled",e.After="after",e.Before="before",e.Since="since"}(se||(se={}));var ue,de=function(){function FilterTokenizer(e){var t=this;Object(u.a)(this,FilterTokenizer),this.handlers=[{modifier:null,keyword:se.Or,handler:function handler(){return new O}},{modifier:null,keyword:se.Not,handler:function handler(){return new T}},{modifier:null,keyword:se.Since,handler:function handler(){return new y}},{modifier:null,keyword:se.After,handler:function handler(){return new S}},{modifier:null,keyword:se.Before,handler:function handler(){return new C}},{modifier:ce.is,keyword:se.Read,handler:function handler(){return new H}},{modifier:ce.is,keyword:se.Unread,handler:function handler(){return new G}},{modifier:ce.is,keyword:se.Note,handler:function handler(){return new W}},{modifier:ce.in,keyword:se.Inbox,handler:function handler(){return new A}},{modifier:ce.mymessages,keyword:null,handler:function handler(e){var n=e.query,r=e.textToken,a=t.teamNames[n.toLowerCase()];return a?new _(a):r}},{modifier:ce.mywork,keyword:null,handler:function handler(e){var n=e.query,r=e.textToken,a=t.teamNames[n.toLowerCase()];return a?new I(a):r}},{modifier:ce.in,keyword:se.Following,handler:function handler(){return new x}},{modifier:ce.in,keyword:se.Drafts,handler:function handler(){return new k}},{modifier:ce.in,keyword:se.Archive,handler:function handler(){return new N}},{modifier:ce.in,keyword:se.Out,handler:function handler(){return new R}},{modifier:ce.in,keyword:se.Scheduled,handler:function handler(){return new E}},{modifier:ce.in,keyword:se.Cancelled,handler:function handler(){return new w}},{modifier:ce.has,keyword:se.Comment,handler:function handler(){return new F}},{modifier:ce.has,keyword:se.UnreadComment,handler:function handler(){return new M}},{modifier:ce.has,keyword:se.Category,handler:function handler(){return new D}},{modifier:ce.has,keyword:se.Job,handler:function handler(){return new P}},{modifier:ce.has,keyword:se.Person,handler:function handler(){return new L}},{modifier:ce.has,keyword:se.Attachment,handler:function handler(){return new U}},{modifier:ce.team,keyword:se.AllTeams,handler:function handler(){return new B}},{modifier:ce.team,keyword:null,handler:function handler(e){var n=e.query,r=e.textToken,a=t.teamNames[n.toLowerCase()];return a?new te(a):r}},{modifier:ce.subject,keyword:null,handler:function handler(e){var t=e.query;return new V(t)}},{modifier:ce.body,keyword:null,handler:function handler(e){var t=e.query;return new z(t)}},{modifier:ce.from,keyword:null,handler:function handler(e){var t=e.query;return new J(t)}},{modifier:ce.to,keyword:null,handler:function handler(e){var t=e.query;return new Y(t)}},{modifier:ce.cc,keyword:null,handler:function handler(e){var t=e.query;return new q(t)}},{modifier:ce.comment,keyword:null,handler:function handler(e){var t=e.query;return new K(t)}},{modifier:ce.attachment,keyword:null,handler:function handler(e){var t=e.query;return new X(t)}},{modifier:ce.messageid,keyword:null,handler:function handler(e){var t=e.query;return new re(t)}}],this.teamNames=void 0,this.suggestionTypesToExclude=void 0,this.inputMap=void 0,this.teamNames=e.teamNames.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),this.suggestionTypesToExclude=e.suggestionTypesToExclude,this.inputMap=this.handlers.reduce((function(e,t){return e.has(t.modifier)||e.set(t.modifier,new Map),e.get(t.modifier).set(t.keyword,t.handler),e}),new Map)}return Object(c.a)(FilterTokenizer,null,[{key:"parseUserInput",value:function parseUserInput(e){return{modifier:be(e),query:he(e),keyword:pe(e),displayName:me(e),textToken:new ne(e)}}}]),Object(c.a)(FilterTokenizer,[{key:"tokenize",value:function tokenize(e){var t,n=FilterTokenizer.parseUserInput(e),r=this.inputMap.get(n.modifier);if(!r)return n.textToken;var a=null!==(t=r.get(n.keyword))&&void 0!==t?t:r.get(n.displayName);if(!a)return n.textToken;var i=a(n);return this.suggestionTypesToExclude.has(i.type)?n.textToken:i}}]),FilterTokenizer}(),fe=function isKeyofEnum(e,t){return Object.prototype.hasOwnProperty.call(e,t)},be=function modifierFromTerm(e){var t=/^(\w+):./.exec(e);if(!t)return null;var n=t[1].toLowerCase();return fe(ce,n)?ce[n]:null},pe=function keywordFromTerm(e){var t=e.indexOf(":"),n=(t>-1?e.substring(t+1):e).split(" ").map((function(e){return e.toLowerCase()})).map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("");return fe(se,n)?se[n]:null},me=function displayNameFromTerm(e){var t,n=e.indexOf(":"),r=(n>-1?e.substring(n+1):e).toLowerCase().replace(" ","");return null!==(t=function translatedNamesToKeywords(){var e;return e={},Object(o.a)(e,h.b.t(h.b.t(h.a.CATEGORY_TAG).replace(" ","").toLowerCase()),se.Category),Object(o.a)(e,h.b.t(h.b.t(h.a.JOB_TAG).replace(" ","").toLowerCase()),se.Job),Object(o.a)(e,h.b.t(h.b.t(h.a.PERSON_TAG).replace(" ","").toLowerCase()),se.Person),e}()[r])&&void 0!==t?t:null},he=function queryFromTerm(e){if(null===be(e))return e;var t=e.indexOf(":");return t>-1?e.substring(t+1):e};!function(e){e.AND="and",e.OR="or",e.NOT="not",e.OR_NOT="or_not"}(ue||(ue={}));var ge=function FilterTokenParser(e){var t=this;Object(u.a)(this,FilterTokenParser),this.categories=void 0,this.jobs=void 0,this.teams=void 0,this.people=void 0,this.parse=function(e){var n=e.reduce((function(e,n){if(n instanceof O)return Object(i.a)(Object(i.a)({},e),{},{combiner:ue.OR});if(n instanceof T)return Object(i.a)(Object(i.a)({},e),{},{combiner:e.combiner===ue.OR?ue.OR_NOT:ue.NOT});if(n instanceof S)return Object(i.a)(Object(i.a)({},e),{},{combiner:ue.AND});if(n instanceof C)return Object(i.a)(Object(i.a)({},e),{},{combiner:ue.AND});if(n instanceof y)return Object(i.a)(Object(i.a)({},e),{},{combiner:ue.AND});var r=t.parseToken(n),a=Object(b.h)(e.nodes);return{nodes:e.combiner===ue.OR&&null!==a?Object(b.a)(e.nodes.slice(0,-1),je(a,r)):e.combiner===ue.OR_NOT&&null!==a?Object(b.a)(e.nodes.slice(0,-1),je(a,ve(r))):e.combiner===ue.OR_NOT||e.combiner===ue.NOT?Object(b.a)(e.nodes,ve(r)):Object(b.a)(e.nodes,r),combiner:ue.AND}}),{nodes:[],combiner:ue.AND}).nodes;return 1===n.length?n[0]:new d.k(g.g.AND,n)},this.parseToken=function(e){switch(e.type){case r.INBOX:return new d.v;case r.MY_MESSAGE:return t.parseMyMessagesToken(e);case r.MY_WORK:return t.parseMyWorkToken(e);case r.FOLLOWING:return new d.m;case r.DRAFT:return new d.j;case r.STORED:return new d.H;case r.OUT:return new d.G;case r.SCHEDULED:return new d.F;case r.CANCELLED:return new d.f;case r.IS_READ:return new d.x;case r.IS_UNREAD:return new d.y;case r.IS_NOTE:return new d.w;case r.HAS_COMMENT:return new d.q;case r.HAS_UNREAD_COMMENT:return new d.t;case r.HAS_CATEGORY:return new d.p;case r.HAS_JOB_REFERENCE:return new d.r;case r.HAS_PERSON:return new d.s;case r.HAS_ATTACHMENT:return new d.o;case r.SUBJECT:return new d.I(e.query);case r.BODY:return new d.e(e.query);case r.FROM:return new d.n(e.query);case r.TO:return new d.M(e.query);case r.CC:return new d.h(e.query);case r.COMMENT:return new d.i(e.query);case r.ATTACHMENT_NAME:return new d.c(e.query);case r.CATEGORY:return t.parseCategoryToken(e);case r.JOB_REFERENCE:return t.parseJobToken(e);case r.VESSEL_NAME:return new d.O(e.query);case r.PERSON:return t.parsePersonToken(e);case r.TEAM:return t.parseTeamToken(e);case r.ALL_TEAMS:return new d.b;case r.TEXT:return new d.K(e.query);case r.CUSTOM:return e.query;case r.MESSAGE_ID:var n=e.query,a=Number.parseInt(n,10);return isNaN(a)?new d.K(n):new d.A(a);case r.AFTER_TIME:return new d.a(e.value);case r.BEFORE_TIME:return new d.d(e.value);case r.RELATIVE_TIME:return new d.E(e.value);default:throw new Error("Could not parse token of type: ".concat(e.constructor.name))}},this.parseCategoryToken=function(e){var n=e.query,r=t.categories.find((function(e){return e.label===n}));return r?new d.g(r):new d.K(n)},this.parseJobToken=function(e){var n=e.query,r=t.jobs.find((function(e){return e.name===n}));return(null===r||void 0===r?void 0:r.tagId)?new d.z(r):new d.u(n)},this.parsePersonToken=function(e){var n=e.query,r=t.people.find((function(e){return Object(p.c)(e.firstName,e.lastName)===n}));return r?new d.N(r):new d.K(n)},this.parseMyMessagesToken=function(e){var n=e.query,r=t.people.find((function(e){return Object(p.c)(e.firstName,e.lastName)===n}));return r?new d.B(r):new d.K(n)},this.parseMyWorkToken=function(e){var n=e.query,r=t.people.find((function(e){return Object(p.c)(e.firstName,e.lastName)===n}));return r?new d.C(r):new d.K(n)},this.parseTeamToken=function(e){var n=e.query,r=t.teams.find((function(e){return e.name===n}));return r?new d.J(r):new d.K(n)};var n=e.categories,a=e.teams,o=e.jobs,c=e.people;this.teams=a,this.categories=n,this.jobs=o,this.people=c},je=function or(e,t){return e instanceof d.k?e.or(t):new d.k(g.g.OR,[e,t])},ve=function not(e){return new d.k(g.g.NOT,[e])},Oe=function fromFilterTerm(e){switch(e.type){case g.h.text:return new ne(e.value);case g.h.subject:return new V(e.value);case g.h.body:return new z(e.value);case g.h.from:case g.h.fromEmail:case g.h.fromEmailPartial:return new J(e.value);case g.h.to:case g.h.toEmail:case g.h.toEmailPartial:return new Y(e.value);case g.h.cc:case g.h.ccEmail:case g.h.ccEmailPartial:return new q(e.value);case g.h.category:return new Q(e.value.label);case g.h.jobReference:var t=e;return new Z("string"===typeof t.value?t.value:t.value.name);case g.h.vesselName:return new $(e.value);case g.h.user:var n=e.value;return new ee(Object(p.c)(n.firstName,n.lastName));case g.h.team:return new te(e.value.name);case g.h.allTeams:return new B;case g.h.comment:return new K(e.value);case g.h.attachmentName:return new X(e.value);case g.h.inbox:return new A;case g.h.scheduled:return new E;case g.h.cancelled:return new w;case g.h.stored:return new N;case g.h.sent:return new R;case g.h.draft:return new k;case g.h.myMessages:var r=e.value;return new _(Object(p.c)(r.firstName,r.lastName));case g.h.myWork:var a=e.value;return new I(Object(p.c)(a.firstName,a.lastName));case g.h.following:return new x;case g.h.isRead:return new H;case g.h.isUnread:return new G;case g.h.isNote:return new W;case g.h.hasCategory:return new D;case g.h.hasJobReference:return new P;case g.h.hasPerson:return new L;case g.h.hasComment:return new F;case g.h.hasUnreadComment:return new M;case g.h.hasAttachment:return new U;case g.h.messageId:return new re(e.value.toString());case g.h.beforeTime:return new ae(e.value);case g.h.afterTime:return new ie(e.value);case g.h.relativeTime:return new oe(e.value);default:return m.a(e.type)}},Te=function fromFilterSet(e){return e instanceof d.l?[Oe(e)]:ye(e)},ye=function filterTokensFromFilterSet(e){var t;if(!Se(e))return[new le(e)];switch(e.combinator){case g.g.AND:return Object(b.e)(e.children,(function(e){return Te(e)}));case g.g.OR:var n=e.children.map((function(e){return Te(e)}));return Object(b.g)([new O],n);case g.g.NOT:return(t=[]).concat.apply(t,[new T].concat(Object(a.a)(Te(e.children[0]))))}},Se=function isNormalForm(e){switch(e.combinator){case g.g.AND:return e.children.every((function(e){return e instanceof d.l||e.combinator!==g.g.AND&&isNormalForm(e)}));case g.g.OR:return e.children.every((function(e){return e instanceof d.l||e.combinator===g.g.NOT&&isNormalForm(e)}));case g.g.NOT:return 1===e.children.length&&e.children[0]instanceof d.l}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Icon}));var r=n(4),a=n(0),i=(n(1),n(1168),{small:"18px",regular:"24px",large:"32px",xlarge:"48px",xxlarge:"54px"});function Icon(e){var t=e.className,n=e.hidden,i=void 0!==n&&n,c=e.size,s=o(void 0===c?"regular":c),l=e.glyph,u={role:"img",className:"c-icon "+(null!==t&&void 0!==t?t:""),width:s,height:s};return i&&(u["aria-hidden"]="true"),Object(a.jsx)(l,Object(r.a)(Object(r.a)({},u),{},{"data-testid":e.testId}))}var o=function sizeToPx(e){return i[e]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(16),l=n(642),u=n(51),d=function(e){Object(i.a)(ApiAction,e);var t=Object(o.a)(ApiAction);function ApiAction(){var e;Object(r.a)(this,ApiAction);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).config=null,e}return Object(a.a)(ApiAction,[{key:"httpEffect",value:function httpEffect(){var e,t,n=this,r=this.config;if(!r)throw new Error("Configuration must be set before httpEffect can be executed");var a=this.apiEffect(r.apiConfig),i=Object(u.n)(a.path+r.teamId.map((function(e){return(a.path.includes("?")?"&":"?")+"currentTeamId="+e})).orElse("")),o=null!==(e=a.headers)&&void 0!==e?e:{};return void 0===o["Content-Type"]&&i.includes(r.apiConfig.platformUrl)&&(o["Content-Type"]="application/vnd.api+json"),o["x-client-version"]=null!==(t="v20211204-0141")?t:"",o["x-trace-id"]=Object(l.a)(),r.tenant.ifPresent((function(e){return o["x-sedna-tenant"]=e})),r.userId.ifPresent((function(e){return o["x-sedna-user"]=e})),r.teamId.ifPresent((function(e){return o["x-sedna-team"]=e})),r.explicitTeam&&(o["explicit-team"]="true"),new s.a({url:i,body:a.body,method:a.method,headers:o,callbacks:{responseMapper:function responseMapper(e){return e.response},onSuccess:function onSuccess(e){return n.onSuccess(n.mapResponse(e))},onError:function onError(e){return n.onError(n.mapError(e))}},disableRetry:r.disableRetry||a.disableRetry,crossDomain:!0})}},{key:"mapResponse",value:function mapResponse(e){return e}},{key:"mapError",value:function mapError(e){return{message:e.message,status:e.status,response:e.response}}}]),ApiAction}(c.a);t.b=function ApiMiddleware(e){return function(t){return function(n){return function(r){return function hasApiEffect(e){return"function"===typeof e.apiEffect}(r)?(r.config=e(t.getState()),n(r)):n(r)}}}}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(86),a=n(3),i=n(10),o=function(){function Optional(e){Object(a.a)(this,Optional),this.val=e}return Object(i.a)(Optional,null,[{key:"of",value:function of(e){return null===e||"undefined"===typeof e?Optional.empty():new Optional(e)}},{key:"ofNull",value:function ofNull(e){return"undefined"===typeof e?Optional.empty():new Optional(e)}},{key:"empty",value:function empty(){return new Optional}},{key:"traverse",value:function traverse(e,t){var n,a=[],i=Object(r.a)(e);try{for(i.s();!(n=i.n()).done;){var o=t(n.value);if(o.isEmpty())return Optional.empty();var c=o.orElseThrow(new Error("unreachable"));a.push(c)}}catch(s){i.e(s)}finally{i.f()}return Optional.of(a)}},{key:"mapOptional",value:function mapOptional(e,t){return t.reduce((function(t,n){return e(n).ifPresent((function(e){return t.push(e)})),t}),[])}},{key:"catOptionals",value:function catOptionals(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Optional.mapOptional((function(e){return e}),t)}},{key:"join",value:function join(e){return e.maybe(Optional.empty(),(function(e){return e}))}}]),Object(i.a)(Optional,[{key:"toString",value:function toString(){return this.isEmpty()?"Optional.empty":"Optional.of{".concat(this.val,"}")}},{key:"toNullable",value:function toNullable(){return this.maybe(null,(function(e){return e}))}},{key:"toUndefined",value:function toUndefined(){return this.maybe(void 0,(function(e){return e}))}},{key:"isEmpty",value:function isEmpty(){return"undefined"===typeof this.val}},{key:"isPresent",value:function isPresent(){return"undefined"!==typeof this.val}},{key:"map",value:function map(e){return"undefined"===typeof this.val?new Optional:new Optional(e(this.val))}},{key:"ifPresent",value:function ifPresent(e){return"undefined"!==typeof this.val&&e(this.val),this}},{key:"ifAbsent",value:function ifAbsent(e){return"undefined"===typeof this.val&&e(),this}},{key:"flatMap",value:function flatMap(e){return"undefined"===typeof this.val?new Optional:e(this.val)}},{key:"or",value:function or(e){return"undefined"===typeof this.val?e:this}},{key:"orElse",value:function orElse(e){return"undefined"===typeof this.val?e:this.val}},{key:"orElseThrow",value:function orElseThrow(e){if("undefined"===typeof this.val)throw e;return this.val}},{key:"maybe",value:function maybe(e,t){return"undefined"===typeof this.val?e:t(this.val)}},{key:"equals",value:function equals(e){return this.val===e.val}}]),Optional}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return equalityCheck})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l}));var r=n(84),a=n(42),i=n(25),o=n(28);function equalityCheck(e,t){return e instanceof a.a&&t instanceof a.a||e instanceof i.a&&t instanceof i.a?e.equals(t):!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var c=Object(r.b)(r.c,equalityCheck),s=function useSednaSelector(e){return Object(o.useSelector)(e,equalityCheck)},l=function useLiteSelector(e){return Object(o.useSelector)(e,equalityCheck)}},function(e,t,n){"use strict";n.d(t,"S",(function(){return ee})),n.d(t,"X",(function(){return te})),n.d(t,"U",(function(){return ne})),n.d(t,"T",(function(){return re})),n.d(t,"V",(function(){return ae})),n.d(t,"R",(function(){return ie})),n.d(t,"G",(function(){return oe})),n.d(t,"m",(function(){return ce})),n.d(t,"rb",(function(){return se})),n.d(t,"p",(function(){return ue})),n.d(t,"sb",(function(){return de})),n.d(t,"ub",(function(){return be})),n.d(t,"r",(function(){return me})),n.d(t,"ab",(function(){return he})),n.d(t,"v",(function(){return ge})),n.d(t,"f",(function(){return je})),n.d(t,"gb",(function(){return ve})),n.d(t,"A",(function(){return Oe})),n.d(t,"j",(function(){return Te})),n.d(t,"bb",(function(){return ye})),n.d(t,"w",(function(){return Se})),n.d(t,"g",(function(){return Ce})),n.d(t,"db",(function(){return Ae})),n.d(t,"y",(function(){return Ee})),n.d(t,"h",(function(){return we})),n.d(t,"fb",(function(){return _e})),n.d(t,"i",(function(){return xe})),n.d(t,"cb",(function(){return ke})),n.d(t,"x",(function(){return Ne})),n.d(t,"eb",(function(){return Fe})),n.d(t,"z",(function(){return Me})),n.d(t,"ib",(function(){return Le})),n.d(t,"C",(function(){return Pe})),n.d(t,"kb",(function(){return Be})),n.d(t,"l",(function(){return Ge})),n.d(t,"wb",(function(){return We})),n.d(t,"N",(function(){return ze})),n.d(t,"t",(function(){return Ve})),n.d(t,"mb",(function(){return Je})),n.d(t,"F",(function(){return Ye})),n.d(t,"pb",(function(){return Ke})),n.d(t,"hb",(function(){return Xe})),n.d(t,"k",(function(){return Qe})),n.d(t,"xb",(function(){return Ze})),n.d(t,"O",(function(){return $e})),n.d(t,"lb",(function(){return tt})),n.d(t,"E",(function(){return nt})),n.d(t,"u",(function(){return at})),n.d(t,"P",(function(){return ot})),n.d(t,"ob",(function(){return lt})),n.d(t,"I",(function(){return ut})),n.d(t,"n",(function(){return dt})),n.d(t,"a",(function(){return ft})),n.d(t,"B",(function(){return bt})),n.d(t,"jb",(function(){return mt})),n.d(t,"D",(function(){return ht})),n.d(t,"tb",(function(){return jt})),n.d(t,"K",(function(){return vt})),n.d(t,"q",(function(){return Ot})),n.d(t,"qb",(function(){return Tt})),n.d(t,"J",(function(){return yt})),n.d(t,"o",(function(){return St})),n.d(t,"W",(function(){return Ct})),n.d(t,"L",(function(){return At})),n.d(t,"nb",(function(){return Et})),n.d(t,"H",(function(){return wt})),n.d(t,"vb",(function(){return It})),n.d(t,"M",(function(){return xt})),n.d(t,"s",(function(){return kt})),n.d(t,"b",(function(){return Nt})),n.d(t,"c",(function(){return Rt})),n.d(t,"d",(function(){return Ft})),n.d(t,"e",(function(){return Mt})),n.d(t,"Q",(function(){return Dt})),n.d(t,"Z",(function(){return Lt})),n.d(t,"Y",(function(){return Pt}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(125),l=n(32),u=n.n(l),d=n(17),b=n(377),p=n(52),m=n(25),h=n(14),g=n(16),j=n(38),v=n(20),O=n(37),T=function(e){Object(o.a)(DraftPublishApiAction,e);var t=Object(c.a)(DraftPublishApiAction);function DraftPublishApiAction(e){var n;return Object(a.a)(this,DraftPublishApiAction),(n=t.call(this)).messageId=e,n}return Object(i.a)(DraftPublishApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/message/").concat(this.messageId,"/publish"),method:g.c.POST}}}]),DraftPublishApiAction}(v.a),y=n(568),S=function(e){Object(o.a)(MessageBatchDeleteAction,e);var t=Object(c.a)(MessageBatchDeleteAction);function MessageBatchDeleteAction(e){var n;return Object(a.a)(this,MessageBatchDeleteAction),(n=t.call(this)).messageIds=e,n}return Object(i.a)(MessageBatchDeleteAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/message/delete"),body:JSON.stringify(this.messageIds),method:g.c.POST,headers:{"Content-Type":O.d.JSONPATCH}}}}]),MessageBatchDeleteAction}(v.a),C=function(e){Object(o.a)(MessageBatchExportAction,e);var t=Object(c.a)(MessageBatchExportAction);function MessageBatchExportAction(e,n){var r;return Object(a.a)(this,MessageBatchExportAction),(r=t.call(this)).taskId=e,r.messageIds=n,r}return Object(i.a)(MessageBatchExportAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/message/export"),body:JSON.stringify({messageIds:this.messageIds,taskId:this.taskId}),method:g.c.POST,headers:{"Content-Type":"application/json"}}}}]),MessageBatchExportAction}(v.a),A=function(e){Object(o.a)(MessageCancelApiAction,e);var t=Object(c.a)(MessageCancelApiAction);function MessageCancelApiAction(e){var n;return Object(a.a)(this,MessageCancelApiAction),(n=t.call(this)).messageId=e,n}return Object(i.a)(MessageCancelApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/message/cancel"),body:this.messageId,method:g.c.POST,headers:{"Content-Type":O.d.JSONPATCH}}}}]),MessageCancelApiAction}(v.a),E=function(e){Object(o.a)(MessageConvertAttachmentsToLinks,e);var t=Object(c.a)(MessageConvertAttachmentsToLinks);function MessageConvertAttachmentsToLinks(e){var n;return Object(a.a)(this,MessageConvertAttachmentsToLinks),(n=t.call(this)).messageId=e,n}return Object(i.a)(MessageConvertAttachmentsToLinks,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/shareable-attachment/message/").concat(this.messageId,"/convert-attachments"),method:g.c.POST}}}]),MessageConvertAttachmentsToLinks}(v.a),w=function(e){Object(o.a)(MessageCreateApiAction,e);var t=Object(c.a)(MessageCreateApiAction);function MessageCreateApiAction(e,n,r,i,o,c,s){var l;return Object(a.a)(this,MessageCreateApiAction),(l=t.call(this)).subject=e,l.body=n,l.toAddresses=r,l.ccAddresses=i,l.bccAddresses=o,l.fromName=c,l.explicitTeamId=s,l}return Object(i.a)(MessageCreateApiAction,null,[{key:"buildFormData",value:function buildFormData(e,t,n,r,a,i){var o=new FormData;return i&&o.append("fromName",i),o.append("subject",e),o.append("bodyHtml",t),n.forEach((function(e,t){o.append("toAddresses[".concat(t,"][email]"),e.email),o.append("toAddresses[".concat(t,"][name]"),e.name||"")})),r.forEach((function(e,t){o.append("ccAddresses[".concat(t,"][email]"),e.email),o.append("ccAddresses[".concat(t,"][name]"),e.name||"")})),a.forEach((function(e,t){o.append("bccAddresses[".concat(t,"][email]"),e.email),o.append("bccAddresses[".concat(t,"][name]"),e.name||"")})),o}}]),Object(i.a)(MessageCreateApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=function getMessageQueryParams(e){var t=["private=true"];e&&t.push("currentTeamId=".concat(e));return t}(this.explicitTeamId);return{body:MessageCreateApiAction.buildFormData(this.subject,this.body,this.toAddresses,this.ccAddresses,this.bccAddresses,this.fromName),path:"".concat(e.apiUrl,"/message?").concat(t.join("&")),method:g.c.POST}}},{key:"mapResponse",value:function mapResponse(e){var t;return Object(r.a)(Object(r.a)({},e),{},{id:String(e.id),subject:null!==(t=e.subject)&&void 0!==t?t:""})}}]),MessageCreateApiAction}(v.a);var _=n(23),I=n(142),x=function(e){Object(o.a)(MessageCreateFromEmlApiAction,e);var t=Object(c.a)(MessageCreateFromEmlApiAction);function MessageCreateFromEmlApiAction(e,n,r,i,o,c){var s;return Object(a.a)(this,MessageCreateFromEmlApiAction),(s=t.call(this)).emlFile=e,s.teamId=n,s.fromName=r,s.fields=i,s.include=o,s.addressSeparator=c,s}return Object(i.a)(MessageCreateFromEmlApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=this.fields instanceof Array?m.a.of(this.fields):m.a.empty(),n=[].concat(Object(_.a)(m.a.catOptionals(t.map((function(e){return"fields[message]=".concat(e.join(","))})),this.include.map((function(e){return"include=".concat(e.join(","))})))),["fromName=".concat(this.fromName),"teamId=".concat(this.teamId),"addressSeparator=".concat(this.addressSeparator)]);return{body:new File([this.emlFile],"file.eml",{type:"message/rfc822"}),path:"".concat(e.platformUrl,"/message/import-eml?").concat(n.join("&")),method:g.c.POST,headers:{"Content-Type":"message/rfc822"}}}},{key:"mapResponse",value:function mapResponse(e){return Object(r.a)(Object(r.a)({},e),{},{attributes:Object(r.a)(Object(r.a)({},e.attributes),{},{bodyHtml:e.attributes.bodyHtml?I.b.mungeLinks(e.attributes.bodyHtml):"",bodyText:e.attributes.bodyText||""})})}}]),MessageCreateFromEmlApiAction}(v.a),k=function(e){Object(o.a)(MessageDeleteApiAction,e);var t=Object(c.a)(MessageDeleteApiAction);function MessageDeleteApiAction(e){var n;return Object(a.a)(this,MessageDeleteApiAction),(n=t.call(this)).messageId=e,n}return Object(i.a)(MessageDeleteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/message/").concat(this.messageId),method:g.c.DELETE}}}]),MessageDeleteApiAction}(v.a),N=function(e){Object(o.a)(MessageDiscardApiAction,e);var t=Object(c.a)(MessageDiscardApiAction);function MessageDiscardApiAction(e){var n;return Object(a.a)(this,MessageDiscardApiAction),(n=t.call(this)).messageId=e,n}return Object(i.a)(MessageDiscardApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/message/").concat(this.messageId,"/discard"),method:g.c.POST}}}]),MessageDiscardApiAction}(v.a),R=function(e){Object(o.a)(MessagePostImportEmlAction,e);var t=Object(c.a)(MessagePostImportEmlAction);function MessagePostImportEmlAction(e,n,r){var i;return Object(a.a)(this,MessagePostImportEmlAction),(i=t.call(this)).messageId=e,i.emlFile=n,i.include=r,i}return Object(i.a)(MessagePostImportEmlAction,[{key:"apiEffect",value:function apiEffect(e){var t=m.a.catOptionals(this.include.map((function(e){return"include=".concat(e.join(","))})));return{path:"".concat(e.platformUrl,"/message/").concat(this.messageId,"/import-eml?").concat(t.join("&")),method:g.c.POST,body:this.emlFile,headers:{"Content-Type":this.emlFile.type}}}},{key:"mapResponse",value:function mapResponse(e){return Object(r.a)(Object(r.a)({},e),{},{attributes:Object(r.a)(Object(r.a)({},e.attributes),{},{bodyHtml:e.attributes.bodyHtml?I.b.mungeLinks(e.attributes.bodyHtml):"",bodyText:e.attributes.bodyText||""})})}}]),MessagePostImportEmlAction}(v.a),F=n(57),M=function(e){Object(o.a)(MessageMarkReadApiAction,e);var t=Object(c.a)(MessageMarkReadApiAction);function MessageMarkReadApiAction(e,n){var r;return Object(a.a)(this,MessageMarkReadApiAction),(r=t.call(this)).messageId=e,r.userId=n,r}return Object(i.a)(MessageMarkReadApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/messagetag"),body:{tagId:O.g.VIEWED,messageId:this.messageId,userId:this.userId},method:g.c.POST}}},{key:"mapResponse",value:function mapResponse(e){return F.a.tagMapper(e)}}]),MessageMarkReadApiAction}(v.a),D=n(237),L=n(277),P=n(173),U=function(e){Object(o.a)(MessageSendApiAction,e);var t=Object(c.a)(MessageSendApiAction);function MessageSendApiAction(e,n,r,i){var o;return Object(a.a)(this,MessageSendApiAction),(o=t.call(this)).messageId=e,o.clientCopy=n,o.sendDelay=r,o.scanForVirus=i,o}return Object(i.a)(MessageSendApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=D.a.buildFormData(this.messageId,this.clientCopy);return t.append("sendDelay",this.sendDelay.toString()),t.append("scanForVirus",this.scanForVirus.toString()),{body:t,path:"".concat(e.apiUrl,"/message/send"),method:g.c.POST,disableRetry:!0}}},{key:"mapResponse",value:function mapResponse(e){var t;return Object(r.a)(Object(r.a)({},e),{},{id:String(e.id),subject:null!==(t=e.subject)&&void 0!==t?t:""})}},{key:"mapError",value:function mapError(e){var t;return(null===(t=e.response)||void 0===t?void 0:t.errors)&&e.response.errors.length>0?{status:e.status,message:e.response.errors[0].message}:Object(L.a)(Object(P.a)(MessageSendApiAction.prototype),"mapError",this).call(this,e)}}]),MessageSendApiAction}(v.a),B=function(e){Object(o.a)(MessageSendNowApiAction,e);var t=Object(c.a)(MessageSendNowApiAction);function MessageSendNowApiAction(e,n){var r;return Object(a.a)(this,MessageSendNowApiAction),(r=t.call(this)).messageId=e,r.scanForVirus=n,r}return Object(i.a)(MessageSendNowApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/message/send-scheduled?scanForVirus=").concat(this.scanForVirus.toString()),body:this.messageId,method:g.c.POST}}}]),MessageSendNowApiAction}(v.a),H=function(e){Object(o.a)(MessageStoreForCurrentTeamApiAction,e);var t=Object(c.a)(MessageStoreForCurrentTeamApiAction);function MessageStoreForCurrentTeamApiAction(e){var n;return Object(a.a)(this,MessageStoreForCurrentTeamApiAction),(n=t.call(this)).messageId=e,n}return Object(i.a)(MessageStoreForCurrentTeamApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:{},path:"".concat(e.apiUrl,"/message/").concat(this.messageId,"/archive-for-team?tag=inbox"),method:g.c.POST}}}]),MessageStoreForCurrentTeamApiAction}(v.a),G=function(e){Object(o.a)(MessageWitnessCommentApiAction,e);var t=Object(c.a)(MessageWitnessCommentApiAction);function MessageWitnessCommentApiAction(e,n){var r;return Object(a.a)(this,MessageWitnessCommentApiAction),(r=t.call(this)).messageId=e,r.commentId=n,r}return Object(i.a)(MessageWitnessCommentApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/message/").concat(this.messageId,"/witness/comment/").concat(this.commentId),method:g.c.POST}}}]),MessageWitnessCommentApiAction}(v.a),W=n(422),z=n(421),V=function(e){Object(o.a)(TemplateListApiAction,e);var t=Object(c.a)(TemplateListApiAction);function TemplateListApiAction(){return Object(a.a)(this,TemplateListApiAction),t.apply(this,arguments)}return Object(i.a)(TemplateListApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/template?include=documents"),method:g.c.GET}}},{key:"mapResponse",value:function mapResponse(e){var t,n=null!==(t=e.included)&&void 0!==t?t:[];return Object(r.a)(Object(r.a)({},e),{},{included:n.map((function(e){var t,n,r,a;return{id:e.id,hash:null!==(t=e.attributes.hash)&&void 0!==t?t:"",name:null!==(n=e.attributes.name)&&void 0!==n?n:"",size:null!==(r=e.attributes.size)&&void 0!==r?r:0,type:null!==(a=e.attributes.type)&&void 0!==a?a:"attachment"}}))})}}]),TemplateListApiAction}(v.a),J=n(29),Y=n(43),q=n(51),K=n(126),X=n(15),Q=n(59),Z=n(30),$=n(8),ee="----------- Original Message -----------<br>",te=function(e){Object(o.a)(RequestMessageDetails,e);var t=Object(c.a)(RequestMessageDetails);function RequestMessageDetails(e,n,r){var i;return Object(a.a)(this,RequestMessageDetails),(i=t.call(this,e,I.a,RequestMessageDetails.INCLUDES)).messageId=e,i.currentUserId=n,i.setToLoading=r,i}return Object(i.a)(RequestMessageDetails,null,[{key:"setToLoading",value:function setToLoading(e,t){return new RequestMessageDetails(e,t,!0)}},{key:"doNotSetToLoading",value:function doNotSetToLoading(e,t){return new RequestMessageDetails(e,t,!1)}}]),Object(i.a)(RequestMessageDetails,[{key:"onSuccess",value:function onSuccess(e){return[new oe(e,this.currentUserId)]}},{key:"onError",value:function onError(e){return[new ce(this.messageId,e)]}}]),RequestMessageDetails}(I.b);te.INCLUDES=m.a.of(["comment","document.doctype","share","team","inbox","category","job_reference","assignment","keyword","read_by","address","witness","activity_summary","follow_up","archived_for_team","scheduled","scheduled_events","cancelled","cancelled_events","draft_edited_events","sender_changed_events","send_now_events","ics_downloaded_events","share_external","public_comment"]);var ne=function(e){Object(o.a)(ReceiveMessageFollowingUp,e);var t=Object(c.a)(ReceiveMessageFollowingUp);function ReceiveMessageFollowingUp(e,n){var r;return Object(a.a)(this,ReceiveMessageFollowingUp),(r=t.call(this)).id=e,r.followUp=n,r}return ReceiveMessageFollowingUp}(h.a),re=function(e){Object(o.a)(ReceiveExternalMessageFollowingUp,e);var t=Object(c.a)(ReceiveExternalMessageFollowingUp);function ReceiveExternalMessageFollowingUp(e,n){var r;return Object(a.a)(this,ReceiveExternalMessageFollowingUp),(r=t.call(this)).id=e,r.externalFollowUp=n,r}return ReceiveExternalMessageFollowingUp}(h.a),ae=function(e){Object(o.a)(ReceiveMessageSent,e);var t=Object(c.a)(ReceiveMessageSent);function ReceiveMessageSent(e,n,r){var i;return Object(a.a)(this,ReceiveMessageSent),(i=t.call(this)).userId=e,i.messageId=n,i.time=r,i}return ReceiveMessageSent}(h.a),ie=3e7,oe=function(e){Object(o.a)(FulfillMessageDetails,e);var t=Object(c.a)(FulfillMessageDetails);function FulfillMessageDetails(e,n){var r;return Object(a.a)(this,FulfillMessageDetails),(r=t.call(this)).response=e,r.currentUserId=n,r.details=FulfillMessageDetails.mapToDetails(r.response,new I.c(r.response.included),m.a.of(r.currentUserId)),r}return Object(i.a)(FulfillMessageDetails,null,[{key:"calculateMessageState",value:function calculateMessageState(e){var t=e.attributes,n=e.relationships,r=n.scheduled?n.scheduled.data.id:null,a=n.cancelled?n.cancelled.data.id:null;return t.sent?$.m.Sent:null!==r&&null===a?$.m.Scheduled:null===r&&null!==a?$.m.Cancelled:null!==r&&null!==a?r>a?$.m.Scheduled:$.m.Cancelled:t.sending?$.m.Sending:t.draft&&t.draftStatus===$.f.ONLY_AUTHOR?$.m.PrivateDraft:t.draft?$.m.Draft:$.m.Received}},{key:"mapToDetails",value:function mapToDetails(e,t,n){var a,i,o,c,s,l,u,d,b,m=e.id,h=e.attributes,g=e.relationships,j=h.bodyText,v=h.bodyHtml,O=this.calculateMessageState(e),T=g.inbox?g.inbox.data:[],y=Object(p.b)(T.map((function(e){return t.get({type:"inbox",id:e.id})}))),S=g.comment?g.comment.data:[],C=Object(p.b)(S.map((function(e){return t.get({type:"comment",id:e.id})}))),A=g.public_comment?g.public_comment.data:[],E=Object(p.b)(A.map((function(e){return t.get({type:"public_comment",id:e.id})}))).map((function(e){var t,n;return{id:e.id,createdAt:e.attributes.createdAt,content:e.attributes.content,userId:null===(t=e.relationships.user)||void 0===t?void 0:t.data.id,externalUserId:null===(n=e.relationships.external_user)||void 0===n?void 0:n.data.id}})),w=g.share?g.share.data:[],_=Object(p.b)(w.map((function(e){return t.get({type:"share",id:e.id})}))).map((function(e){return{id:e.id,messageId:m,time:e.attributes.time,sharedFromTeamId:e.attributes.fromTeamId,sharedToTeamId:e.attributes.toTeamId,sharedByUserId:e.attributes.byUserId}})),I=g.share_external?g.share_external.data:[],x=Object(p.b)(I.map((function(e){return t.get({type:"share_external",id:e.id})}))).map((function(e){return{id:e.id,createdAt:e.attributes.date,sharedTo:e.attributes.sharedTo,sharedByUserId:e.attributes.userId}})),k=g.document?g.document.data:[],N=[],R=Object(p.b)(k.map((function(e){return t.get({type:"document",id:e.id}).filter((function(e){return"attachment"===e.attributes.type}))}))).map((function(e){var t,n;return(null===(t=e.relationships)||void 0===t||null===(n=t.document_type)||void 0===n?void 0:n.data)&&N.push({documentId:e.id,documentTypeId:e.relationships.document_type.data.id}),{id:e.id,hash:e.attributes.hash,name:e.attributes.name,size:e.attributes.size,type:e.attributes.type}}));N.map((function(e){return{documentId:e.documentId,documentTypeArray:t.get({type:"document-type",id:e.documentTypeId})}})).filter((function(e){return 1===e.documentTypeArray.length})).map((function(e){return{documentId:e.documentId,documentType:e.documentTypeArray[0]}}));var F=N.map((function(e){return{documentId:e.documentId,documentTypeArray:t.get({type:"document-type",id:e.documentTypeId})}})).filter((function(e){return 1===e.documentTypeArray.length})).map((function(e){return{documentId:e.documentId,documentType:e.documentTypeArray[0]}})).map((function(e){var t=e.documentId,n=e.documentType;return{id:n.id,documentId:t,documentTypeId:n.attributes.documentTypeId,expires:n.attributes.expires,updated:n.attributes.modifiedAt,flexType:n.attributes.name,flexGroup:n.attributes.vesselName}})),M=g.job_reference?g.job_reference.data:[],D=Object(p.b)(M.map((function(e){return t.get({type:"job_reference",id:e.id})}))).map((function(e){var t={parentId:m,relationshipId:e.attributes.messageTagId,jobReferenceId:e.attributes.jobReferenceId,label:e.attributes.name,tagId:e.attributes.tagId};if(e.attributes.attributes){var n;try{n=JSON.parse(e.attributes.attributes)}catch(a){n={}}if(n.vesselName)return Object(r.a)(Object(r.a)({},t),{},{vesselName:n.vesselName})}return t})),L=g.category?g.category.data:[],P=Object(p.b)(L.map((function(e){return t.get({type:"category",id:e.id})}))).map((function(e){return{categoryTagId:e.attributes.categoryTagId,parentId:m,relationshipId:e.attributes.messageTagId,label:e.attributes.label,name:e.attributes.name,tagId:e.attributes.tagId}})),U=g.assignment?g.assignment.data:[],B=Object(p.b)(U.map((function(e){return t.get({type:"assignment",id:e.id})}))).map((function(e){return{id:"".concat(m,"-").concat(e.attributes.assignedTo),assignedToUserId:e.attributes.assignedTo,assignedByUserId:e.attributes.assignedBy,time:e.attributes.assignedAt}})),H=g.keyword?g.keyword.data:[],G=Object(p.b)(H.map((function(e){return t.get({type:"keyword",id:e.id})}))).map((function(e){return{id:e.id,messageTagId:e.attributes.messageTagId,messageId:m,tagId:e.attributes.tagId,label:e.attributes.name}})),W=g.address?g.address.data:[],z=Object(p.b)(W.map((function(e){return t.get({type:"address",id:e.id})}))),V=g.read_by?g.read_by.data:[],J=Object(p.k)(Object(p.b)(V.map((function(e){return t.get({type:"read_by",id:e.id})}))).map((function(e){return{messageId:m,userId:e.attributes.userId,time:e.attributes.readAt}})),(function(e){return e.userId})),Y=g.follow_up?g.follow_up.data:[],q=Object(p.b)(Y.map((function(e){return t.get({type:"follow_up",id:e.id})}))).map((function(e){return{userId:e.attributes.userId,originMessageId:e.attributes.originMessageId,messageId:e.attributes.messageId,time:e.attributes.time,followUpType:e.attributes.followUpType}})),K=g.external_follow_up?g.external_follow_up.data:[],X=Object(p.b)(K.map((function(e){return t.get({type:"external_follow_up",id:e.id})}))).map((function(e){return{fromEmail:e.attributes.fromEmail,originMessageId:e.attributes.originMessageId,messageId:e.attributes.messageId,time:e.attributes.time,followUpType:e.attributes.followUpType}})),Q=g.team?g.team.data.map((function(e){return e.id})):[],Z=g.witness?t.get({type:"witness",id:g.witness.data.id})[0]:void 0,$=g.activity_summary?t.get({type:"activity_summary",id:g.activity_summary.data.id})[0]:void 0,ee=g.archived_for_team?g.archived_for_team.data:[],te=Object(p.b)(ee.map((function(e){return t.get({type:"archived_for_team",id:e.id})}))).map((function(e){return{messageId:m,userId:e.attributes.userId,teamId:e.attributes.teamId,time:e.attributes.archivedAt}})),ne=g.scheduled_events?g.scheduled_events.data:[],re=Object(p.b)(ne.map((function(e){return t.get({type:"scheduled_events",id:e.id})}))).map((function(e){return{id:e.id,messageId:m,userId:e.attributes.userId,time:e.attributes.date}})),ae=g.cancelled_events?g.cancelled_events.data:[],ie=Object(p.b)(ae.map((function(e){return t.get({type:"cancelled_events",id:e.id})}))).map((function(e){return{id:e.id,messageId:m,userId:e.attributes.userId,time:e.attributes.date}})),oe=g.edited_events?g.edited_events.data:[],ce=Object(p.b)(oe.map((function(e){return t.get({type:"draft_edited_events",id:e.id})}))).map((function(t){return{eventId:t.id,messageId:e.id,userId:t.attributes.userId,time:t.attributes.date}})),se=g.sender_changed_events?g.sender_changed_events.data:[],le=Object(p.b)(se.map((function(e){return t.get({type:"sender_changed_events",id:e.id})}))).map((function(t){return{eventId:t.id,messageId:e.id,userId:t.attributes.userId,time:t.attributes.date}})),ue=g.ics_downloaded_events?g.ics_downloaded_events.data:[],de=Object(p.b)(ue.map((function(e){return t.get({type:"ics_downloaded_events",id:e.id})}))).map((function(e){return{eventId:e.id,userId:e.attributes.userId,time:e.attributes.date}})),fe=g.send_now_events?g.send_now_events.data:[],be=Object(p.b)(fe.map((function(e){return t.get({type:"send_now_events",id:e.id})}))).map((function(t){return{eventId:t.id,messageId:e.id,userId:t.attributes.userId,time:t.attributes.date}})),pe=g.draft?t.get({type:"draftTag",id:g.draft.data.id})[0]:void 0,me={id:m,state:O,fromName:null!==(a=h.fromName)&&void 0!==a?a:"",fromEmail:null!==(i=h.fromEmail)&&void 0!==i?i:"",subject:null!==(o=h.subject)&&void 0!==o?o:"",snippet:h.snippet,hasAttachment:h.hasAttachment,inInbox:y.some((function(e){return n.map((function(t){return e.attributes.userId===t})).orElse(!1)})),receivedDate:h.receivedAt,latestActivity:h.latestActivity,sentDate:null!==(c=h.sentAt)&&void 0!==c?c:"",messageId:null!==(s=h.messageId)&&void 0!==s?s:"",importId:null!==(l=h.importId)&&void 0!==l?l:"",createdAt:null!==(u=h.createdAt)&&void 0!==u?u:"",modifiedAt:null!==(d=h.modifiedAt)&&void 0!==d?d:"",witness:Z?Z.attributes:void 0,sender:g.sender?{userId:g.sender.data.id,time:g.sender.meta.sent_at}:void 0,activitySummary:$?$.attributes:{comments:C.map((function(e){return{byUserId:e.relationships.user.data.id,time:e.attributes.createdAt}})),shares:_.map((function(e){return{time:e.time,fromTeamId:e.sharedFromTeamId,toTeamId:e.sharedToTeamId}}))},toAddresses:z.filter((function(e){return"TO"===e.attributes.addressType})).map((function(e){return{email:e.attributes.email,name:e.attributes.name}})),ccAddresses:z.filter((function(e){return"CC"===e.attributes.addressType})).map((function(e){return{email:e.attributes.email,name:e.attributes.name}})),bccAddresses:z.filter((function(e){return"BCC"===e.attributes.addressType})).map((function(e){return{email:e.attributes.email,name:e.attributes.name}})),draftTag:pe?pe.attributes:void 0,signed:h.signed,createdBy:null!==(b=null===pe||void 0===pe?void 0:pe.attributes.userId)&&void 0!==b?b:""};return{id:m,body:{id:m,html:v,text:j},meta:me,comments:C,shares:_,documents:R,teams:Q,jobReferences:D,categories:P,assignments:B,keywords:G,reads:J,followUp:q,archivedForTeams:te,scheduledEvents:re,cancelledEvents:ie,editedEvents:ce,flexDocuments:F,senderChangedEvents:le,icsDownloadedEvents:de,sendNowEvents:be,externalFollowUp:X,externalShares:x,publicComments:E}}}]),FulfillMessageDetails}(h.a),ce=function(e){Object(o.a)(FailMessageDetails,e);var t=Object(c.a)(FailMessageDetails);function FailMessageDetails(e,n){var r;return Object(a.a)(this,FailMessageDetails),(r=t.call(this,n)).messageId=e,r}return FailMessageDetails}(h.b),se=function(e){Object(o.a)(SubmitMessageStore,e);var t=Object(c.a)(SubmitMessageStore);function SubmitMessageStore(e,n){var r;return Object(a.a)(this,SubmitMessageStore),(r=t.call(this,String(O.g.INBOX),e)).messageIds=e,r.search=n,r.notify=!1,r.undo=!1,r.replace=!1,r.undoAction=function(){},r}return Object(i.a)(SubmitMessageStore,null,[{key:"withNotification",value:function withNotification(e,t,n){var r=new SubmitMessageStore(e,t);return r.notify=!0,r.replace=n,r}},{key:"withUndo",value:function withUndo(e,t,n,r){var a=new SubmitMessageStore(e,t);return a.undo=!0,a.notify=!0,a.undoAction=n,a.replace=r,a}}]),Object(i.a)(SubmitMessageStore,[{key:"onSuccess",value:function onSuccess(){var e=[new le];return this.notify&&e.push(this.notification(this.undo,this.undoAction,this.replace)),e}},{key:"onError",value:function onError(e){return[new ue(this.messageIds,this.search,e)]}},{key:"notification",value:function notification(e,t,n){var r="Archived 1 message",a="Archived ".concat(this.messageIds.length," messages");return e&&t?new Y.b({message:1===this.messageIds.length?r:a,level:$.n.info,button:{label:"Undo",onClick:t},replace:n}):new Y.b({message:1===this.messageIds.length?r:a,level:$.n.info,replace:n})}}]),SubmitMessageStore}(z.a),le=function(e){Object(o.a)(FulfillMessageStore,e);var t=Object(c.a)(FulfillMessageStore);function FulfillMessageStore(){return Object(a.a)(this,FulfillMessageStore),t.apply(this,arguments)}return FulfillMessageStore}(h.a),ue=function(e){Object(o.a)(FailMessageStore,e);var t=Object(c.a)(FailMessageStore);function FailMessageStore(e,n,r){var i;return Object(a.a)(this,FailMessageStore),(i=t.call(this,r)).messageIds=e,i.search=n,i}return FailMessageStore}(h.b),de=function(e){Object(o.a)(SubmitMessageStoreForTeam,e);var t=Object(c.a)(SubmitMessageStoreForTeam);function SubmitMessageStoreForTeam(e,n){var r;return Object(a.a)(this,SubmitMessageStoreForTeam),(r=t.call(this,e)).messageId=e,r.search=n,r.eventSpec=Object(J.j)("Archive for Team",r.messageId),r}return Object(i.a)(SubmitMessageStoreForTeam,[{key:"onSuccess",value:function onSuccess(){return[new fe]}},{key:"onError",value:function onError(e){return[new ue([this.messageId],this.search,e)]}}]),SubmitMessageStoreForTeam}(H),fe=function(e){Object(o.a)(FulfillMessageStoreForTeam,e);var t=Object(c.a)(FulfillMessageStoreForTeam);function FulfillMessageStoreForTeam(){return Object(a.a)(this,FulfillMessageStoreForTeam),t.apply(this,arguments)}return FulfillMessageStoreForTeam}(h.a),be=function(e){Object(o.a)(SubmitMessageUnstore,e);var t=Object(c.a)(SubmitMessageUnstore);function SubmitMessageUnstore(e,n){var r;return Object(a.a)(this,SubmitMessageUnstore),(r=t.call(this,String(O.g.INBOX),e)).messageIds=e,r.search=n,r.notify=!1,r.replace=!1,r}return Object(i.a)(SubmitMessageUnstore,null,[{key:"withNotification",value:function withNotification(e,t,n){var r=new SubmitMessageUnstore(e,t);return r.notify=!0,r.replace=n,r}}]),Object(i.a)(SubmitMessageUnstore,[{key:"onSuccess",value:function onSuccess(){var e=[new pe];return this.notify&&e.push(this.notification(this.replace)),e}},{key:"onError",value:function onError(e){return[new me(this.messageIds,this.search,e)]}},{key:"notification",value:function notification(e){var t="Unarchived ".concat(this.messageIds.length," messages");return new Y.b({message:1===this.messageIds.length?"Unarchived 1 message":t,level:$.n.info,replace:e})}}]),SubmitMessageUnstore}(W.a),pe=function(e){Object(o.a)(FulfillMessageUnstore,e);var t=Object(c.a)(FulfillMessageUnstore);function FulfillMessageUnstore(){return Object(a.a)(this,FulfillMessageUnstore),t.apply(this,arguments)}return FulfillMessageUnstore}(h.a),me=function(e){Object(o.a)(FailMessageUnstore,e);var t=Object(c.a)(FailMessageUnstore);function FailMessageUnstore(e,n,r){var i;return Object(a.a)(this,FailMessageUnstore),(i=t.call(this,r)).messageIds=e,i.search=n,i}return FailMessageUnstore}(h.b),he=function(e){Object(o.a)(SubmitBatchAssign,e);var t=Object(c.a)(SubmitBatchAssign);function SubmitBatchAssign(e,n,r){var i;return Object(a.a)(this,SubmitBatchAssign),(i=t.call(this,String(O.g.TODO),e,r,n)).messageIds=e,i.toUserId=n,i.byUserId=r,i}return Object(i.a)(SubmitBatchAssign,[{key:"onSuccess",value:function onSuccess(e){var t=this.toUserId===this.byUserId?"Followed":"Assigned",n="".concat(t," 1 message"),r="".concat(t," ").concat(this.messageIds.length," messages");return[new ge(e),new Y.b({message:1===this.messageIds.length?n:r,level:$.n.info})]}},{key:"onError",value:function onError(e){return[new je(this.messageIds,this.toUserId,this.byUserId,e)]}}]),SubmitBatchAssign}(W.a),ge=function(e){Object(o.a)(FulfillBatchAssign,e);var t=Object(c.a)(FulfillBatchAssign);function FulfillBatchAssign(e){var n;return Object(a.a)(this,FulfillBatchAssign),(n=t.call(this)).response=e,n}return FulfillBatchAssign}(h.a),je=function(e){Object(o.a)(FailBatchAssign,e);var t=Object(c.a)(FailBatchAssign);function FailBatchAssign(e,n,r,i){var o;return Object(a.a)(this,FailBatchAssign),(o=t.call(this,i)).messageIds=e,o.toUserId=n,o.byUserId=r,o}return FailBatchAssign}(h.b),ve=function(e){Object(o.a)(SubmitBatchUnAssign,e);var t=Object(c.a)(SubmitBatchUnAssign);function SubmitBatchUnAssign(e,n,r,i){var o;return Object(a.a)(this,SubmitBatchUnAssign),(o=t.call(this,String(O.g.TODO),e,void 0,n)).messageIds=e,o.toUserId=n,o.byUserId=r,o.search=i,o}return Object(i.a)(SubmitBatchUnAssign,[{key:"onSuccess",value:function onSuccess(){var e=1===this.messageIds.length?"message":"messages",t=this.toUserId===this.byUserId?"Un-followed ".concat(this.messageIds.length," ").concat(e):"Un-assigned ".concat(this.messageIds.length," ").concat(e);return[new Oe(this.messageIds,this.toUserId),new Y.b({message:t,level:$.n.info})]}},{key:"onError",value:function onError(e){return[new Te(this.messageIds,this.toUserId,this.byUserId,this.search,e)]}}]),SubmitBatchUnAssign}(z.a),Oe=function(e){Object(o.a)(FulfillBatchUnAssign,e);var t=Object(c.a)(FulfillBatchUnAssign);function FulfillBatchUnAssign(e,n){var r;return Object(a.a)(this,FulfillBatchUnAssign),(r=t.call(this)).messageIds=e,r.userId=n,r}return FulfillBatchUnAssign}(h.a),Te=function(e){Object(o.a)(FailBatchUnAssign,e);var t=Object(c.a)(FailBatchUnAssign);function FailBatchUnAssign(e,n,r,i,o){var c;return Object(a.a)(this,FailBatchUnAssign),(c=t.call(this,o)).messageIds=e,c.toUserId=n,c.byUserId=r,c.search=i,c}return FailBatchUnAssign}(h.b),ye=function(e){Object(o.a)(SubmitBatchCategorize,e);var t=Object(c.a)(SubmitBatchCategorize);function SubmitBatchCategorize(e,n,r){var i;return Object(a.a)(this,SubmitBatchCategorize),(i=t.call(this,n,e)).messageIds=e,i.tagId=n,i.label=r,i.eventSpec={eventCategory:"Tag Actions",eventAction:"Category Tag Added",tagName:i.label},i}return Object(i.a)(SubmitBatchCategorize,[{key:"onSuccess",value:function onSuccess(e){var t="Tagged ".concat(this.messageIds.length," messages");return[new Se(e),new Y.b({message:1===this.messageIds.length?"Tagged 1 message":t,level:$.n.info})]}},{key:"onError",value:function onError(e){return[new Ce(this.messageIds,this.tagId,e)]}}]),SubmitBatchCategorize}(W.a),Se=function(e){Object(o.a)(FulfillBatchCategorize,e);var t=Object(c.a)(FulfillBatchCategorize);function FulfillBatchCategorize(e){var n;return Object(a.a)(this,FulfillBatchCategorize),(n=t.call(this)).result=e,n}return FulfillBatchCategorize}(h.a),Ce=function(e){Object(o.a)(FailBatchCategorize,e);var t=Object(c.a)(FailBatchCategorize);function FailBatchCategorize(e,n,r){var i;return Object(a.a)(this,FailBatchCategorize),(i=t.call(this,r)).messageIds=e,i.tagId=n,i}return FailBatchCategorize}(h.b),Ae=function(e){Object(o.a)(SubmitBatchDeCategorize,e);var t=Object(c.a)(SubmitBatchDeCategorize);function SubmitBatchDeCategorize(e,n,r){var i;return Object(a.a)(this,SubmitBatchDeCategorize),(i=t.call(this,n,e)).messageIds=e,i.tagId=n,i.label=r,i.eventSpec={eventCategory:"Tag Actions",eventAction:"Category Tag Removed",tagName:i.label},i}return Object(i.a)(SubmitBatchDeCategorize,[{key:"onSuccess",value:function onSuccess(){var e="Un-tagged ".concat(this.messageIds.length," messages");return[new Ee(this.messageIds,this.tagId),new Y.b({message:1===this.messageIds.length?"Un-tagged 1 message":e,level:$.n.info})]}},{key:"onError",value:function onError(e){return[new we(this.messageIds,this.tagId,e)]}}]),SubmitBatchDeCategorize}(z.a),Ee=function(e){Object(o.a)(FulfillBatchDeCategorize,e);var t=Object(c.a)(FulfillBatchDeCategorize);function FulfillBatchDeCategorize(e,n){var r;return Object(a.a)(this,FulfillBatchDeCategorize),(r=t.call(this)).messageIds=e,r.tagId=n,r}return FulfillBatchDeCategorize}(h.a),we=function(e){Object(o.a)(FailBatchDeCategorize,e);var t=Object(c.a)(FailBatchDeCategorize);function FailBatchDeCategorize(e,n,r){var i;return Object(a.a)(this,FailBatchDeCategorize),(i=t.call(this,r)).messageIds=e,i.tagId=n,i}return FailBatchDeCategorize}(h.b),_e=function(e){Object(o.a)(SubmitBatchExport,e);var t=Object(c.a)(SubmitBatchExport);function SubmitBatchExport(){return Object(a.a)(this,SubmitBatchExport),t.apply(this,arguments)}return Object(i.a)(SubmitBatchExport,[{key:"onSuccess",value:function onSuccess(){return[new Ie(this.taskId,this.messageIds)]}},{key:"onError",value:function onError(e){return[new xe(this.taskId,this.messageIds,e)]}}]),SubmitBatchExport}(C),Ie=function(e){Object(o.a)(FulfillBatchExport,e);var t=Object(c.a)(FulfillBatchExport);function FulfillBatchExport(e,n){var r;return Object(a.a)(this,FulfillBatchExport),(r=t.call(this)).taskId=e,r.messageIds=n,r}return FulfillBatchExport}(h.a),xe=function(e){Object(o.a)(FailBatchExport,e);var t=Object(c.a)(FailBatchExport);function FailBatchExport(e,n,r){var i;return Object(a.a)(this,FailBatchExport),(i=t.call(this,r)).taskId=e,i.messageIds=n,i.error=r,i}return FailBatchExport}(h.b),ke=function(e){Object(o.a)(SubmitBatchCreateShareableMessageLink,e);var t=Object(c.a)(SubmitBatchCreateShareableMessageLink);function SubmitBatchCreateShareableMessageLink(e){var n;return Object(a.a)(this,SubmitBatchCreateShareableMessageLink),(n=t.call(this,e.map((function(e){return e.id})))).messages=e,n}return Object(i.a)(SubmitBatchCreateShareableMessageLink,[{key:"onSuccess",value:function onSuccess(e){var t=this,n="Added ".concat(this.messages.length," messages as links"),r="No Subject",a=function displaySubject(e){if(e.type===j.a.message)return""!==e.data.meta.subject?e.data.meta.subject:r},i="Unknown",o=function displayName(e){if(e.type===j.a.message)return""!==e.data.meta.fromName?e.data.meta.fromName:""!==e.data.meta.fromEmail?e.data.meta.fromEmail:i},c="<div><br></div>"+e.map((function(e){var n=t.messages.find((function(t){return e.data.relationships.message.data.id===t.id})),c=K.e?"".concat(Object(K.c)(),"/"):"";return{subject:n?a(n):r,uri:window.location.origin+q.i+"/shared-message/".concat(c).concat(e.data.id),sender:n?o(n):i}})).map((function(e){return'\n        <div class="sedna-noneditable" contenteditable="false" style="border-radius: 4px; cursor: default; width: 308px">\n          <table style="font-family: sans-serif; font-size: 14px; border-spacing: 0; background-color: #f9f9f9; border: 1px solid #d4d9d8; width: 308px; margin-bottom: 10px;">\n            <tbody>\n              <tr>\n                <td style="width: 39px; padding: 7px 0 7px 7px; border: 0; vertical-align: middle;"><img src="https://www.sednanetwork.com/launch/sedna-message-32.png" style="vertical-align: middle;" width="32" height="32"></td>\n                <td style="border: 0; padding: 7px 0 7px 7px;">\n                  <div style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 255px;">\n                    <a href="'.concat(e.uri,'" style="text-decoration: none;">').concat(e.subject,'</a>\n                  </div>\n                  <div style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 255px; font-size: 12px;"><a href="').concat(e.uri,'" style="text-decoration: none; color: #1E2424;">').concat(e.sender,"</a></div>\n                </td>\n              </tr>\n            </tbody>\n          </table>\n        </div>\n")})).join("");return[new Ne(e,c),Object(s.e)({pathname:d.a.COMPOSE_NEW_MESSAGE}),new Y.b({message:1===this.messages.length?"Added 1 message as link":n,level:$.n.info})]}},{key:"onError",value:function onError(e){return[new Re(e)]}}]),SubmitBatchCreateShareableMessageLink}(y.a),Ne=function(e){Object(o.a)(FulfillBatchCreateShareableMessageLink,e);var t=Object(c.a)(FulfillBatchCreateShareableMessageLink);function FulfillBatchCreateShareableMessageLink(e,n){var r;return Object(a.a)(this,FulfillBatchCreateShareableMessageLink),(r=t.call(this)).result=e,r.bodyHtml=n,r}return FulfillBatchCreateShareableMessageLink}(h.a),Re=function(e){Object(o.a)(FailBatchCreateShareableMessageLink,e);var t=Object(c.a)(FailBatchCreateShareableMessageLink);function FailBatchCreateShareableMessageLink(){return Object(a.a)(this,FailBatchCreateShareableMessageLink),t.apply(this,arguments)}return FailBatchCreateShareableMessageLink}(h.b),Fe=function(e){Object(o.a)(SubmitBatchDeletePrivateDrafts,e);var t=Object(c.a)(SubmitBatchDeletePrivateDrafts);function SubmitBatchDeletePrivateDrafts(e,n){var r;return Object(a.a)(this,SubmitBatchDeletePrivateDrafts),(r=t.call(this,e)).messageIds=e,r.search=n,r.eventSpec={eventCategory:"Message Panel",eventAction:"Batch delete private drafts",eventLabel:r.messageIds.length.toString()},r}return Object(i.a)(SubmitBatchDeletePrivateDrafts,[{key:"onSuccess",value:function onSuccess(){var e=1===this.messageIds.length?"item":"items",t="Deleted ".concat(this.messageIds.length," ").concat(e);return[new Me(this.messageIds,this.search),new Y.b({message:t,level:$.n.info})]}},{key:"onError",value:function onError(e){return[new De(this.messageIds,e)]}}]),SubmitBatchDeletePrivateDrafts}(S),Me=function(e){Object(o.a)(FulfillBatchDeletePrivateDrafts,e);var t=Object(c.a)(FulfillBatchDeletePrivateDrafts);function FulfillBatchDeletePrivateDrafts(e,n){var r;return Object(a.a)(this,FulfillBatchDeletePrivateDrafts),(r=t.call(this)).messageIds=e,r.search=n,r}return FulfillBatchDeletePrivateDrafts}(h.a),De=function(e){Object(o.a)(FailBatchDeletePrivateDrafts,e);var t=Object(c.a)(FailBatchDeletePrivateDrafts);function FailBatchDeletePrivateDrafts(e,n){var r;return Object(a.a)(this,FailBatchDeletePrivateDrafts),(r=t.call(this,n)).messageIds=e,r}return FailBatchDeletePrivateDrafts}(h.b),Le=function(e){Object(o.a)(SubmitMarkMessageRead,e);var t=Object(c.a)(SubmitMarkMessageRead);function SubmitMarkMessageRead(e,n,r){var i;return Object(a.a)(this,SubmitMarkMessageRead),(i=t.call(this,e,n)).messageId=e,i.userId=n,i.searchesToUpdate=r,i}return Object(i.a)(SubmitMarkMessageRead,[{key:"onSuccess",value:function onSuccess(e){return[new Pe(this.messageId,this.searchesToUpdate,e)]}},{key:"onError",value:function onError(e){return[new Ue(this.messageId,this.userId,e)]}}]),SubmitMarkMessageRead}(M),Pe=function(e){Object(o.a)(FulfillMarkMessageRead,e);var t=Object(c.a)(FulfillMarkMessageRead);function FulfillMarkMessageRead(e,n,r){var i;return Object(a.a)(this,FulfillMarkMessageRead),(i=t.call(this)).messageId=e,i.searchesToUpdate=n,i.response=r,i}return FulfillMarkMessageRead}(h.a),Ue=function(e){Object(o.a)(FailMarkMessageRead,e);var t=Object(c.a)(FailMarkMessageRead);function FailMarkMessageRead(e,n,r){var i;return Object(a.a)(this,FailMarkMessageRead),(i=t.call(this,r)).messageId=e,i.userId=n,i.error=r,i}return FailMarkMessageRead}(h.b),Be=function(e){Object(o.a)(SubmitMessageCancel,e);var t=Object(c.a)(SubmitMessageCancel);function SubmitMessageCancel(e,n,r,i,o,c){var s;return Object(a.a)(this,SubmitMessageCancel),(s=t.call(this,e)).messageId=e,s.userId=n,s.location=r,s.filterSet=i,s.redirect=o,s.onClickEdit=c,s.eventSpec={eventCategory:"Scheduled",eventAction:"Cancelled Scheduled Message",eventLabel:s.messageId.toString()},s}return Object(i.a)(SubmitMessageCancel,[{key:"onSuccess",value:function onSuccess(){return[new He(this.messageId,this.userId,this.location,this.filterSet),this.redirect?Object(s.e)(Object(r.a)(Object(r.a)({},this.location),{},{pathname:d.a.COMPOSE_MESSAGE(this.messageId)})):new Y.b({message:"Message cancelled",level:$.n.info,button:{label:"Edit",onClick:this.onClickEdit}})]}},{key:"onError",value:function onError(e){return[new Ge(this.messageId,this.location,e),new Y.b({message:"Failed to cancel message",level:$.n.warning})]}}]),SubmitMessageCancel}(A),He=function(e){Object(o.a)(FulfillMessageCancel,e);var t=Object(c.a)(FulfillMessageCancel);function FulfillMessageCancel(e,n,r,i){var o;return Object(a.a)(this,FulfillMessageCancel),(o=t.call(this)).messageId=e,o.userId=n,o.location=r,o.filterSet=i,o}return FulfillMessageCancel}(h.a),Ge=function(e){Object(o.a)(FailMessageCancel,e);var t=Object(c.a)(FailMessageCancel);function FailMessageCancel(e,n,r){var i;return Object(a.a)(this,FailMessageCancel),(i=t.call(this,r)).messageId=e,i.location=n,i.error=r,i}return FailMessageCancel}(h.b),We=function(e){Object(o.a)(SubmitSendScheduledNow,e);var t=Object(c.a)(SubmitSendScheduledNow);function SubmitSendScheduledNow(e,n,r,i){var o;return Object(a.a)(this,SubmitSendScheduledNow),(o=t.call(this,e,i)).messageId=e,o.userId=n,o.originalSentDate=r,o.scanForVirus=i,o.eventSpec={eventCategory:"Scheduled",eventAction:"Send Scheduled Message Now",eventLabel:o.messageId.toString()},o}return Object(i.a)(SubmitSendScheduledNow,[{key:"onSuccess",value:function onSuccess(e){return[new ze(this.messageId,this.userId,null!==e.attributes.sentAt?e.attributes.sentAt:u.a.utc().local().format())]}},{key:"onError",value:function onError(e){return[new Ve(this.messageId,this.originalSentDate,e),new Y.b({message:"Message delay could not be overridden because the message was either already sent or cancelled by another user.",level:$.n.warning})]}}]),SubmitSendScheduledNow}(B),ze=function(e){Object(o.a)(FulfillSendScheduledNow,e);var t=Object(c.a)(FulfillSendScheduledNow);function FulfillSendScheduledNow(e,n,r){var i;return Object(a.a)(this,FulfillSendScheduledNow),(i=t.call(this)).messageId=e,i.userId=n,i.sentDate=r,i}return FulfillSendScheduledNow}(h.a),Ve=function(e){Object(o.a)(FailSendScheduledNow,e);var t=Object(c.a)(FailSendScheduledNow);function FailSendScheduledNow(e,n,r){var i;return Object(a.a)(this,FailSendScheduledNow),(i=t.call(this,r)).messageId=e,i.originalSentDate=n,i.error=r,i}return FailSendScheduledNow}(h.b),Je=function(e){Object(o.a)(SubmitMessageDelete,e);var t=Object(c.a)(SubmitMessageDelete);function SubmitMessageDelete(e,n){var r;return Object(a.a)(this,SubmitMessageDelete),(r=t.call(this,e)).messageId=e,r.search=n,r.eventSpec=Object(J.j)("Delete Message",r.messageId),r}return Object(i.a)(SubmitMessageDelete,[{key:"onSuccess",value:function onSuccess(){return[new Ye(this.messageId,this.search)]}},{key:"onError",value:function onError(e){return[new qe(this.messageId,this.search,e)]}}]),SubmitMessageDelete}(k),Ye=function(e){Object(o.a)(FulfillMessageDelete,e);var t=Object(c.a)(FulfillMessageDelete);function FulfillMessageDelete(e,n){var r;return Object(a.a)(this,FulfillMessageDelete),(r=t.call(this)).messageId=e,r.search=n,r}return FulfillMessageDelete}(h.a),qe=function(e){Object(o.a)(FailMessageDelete,e);var t=Object(c.a)(FailMessageDelete);function FailMessageDelete(e,n,r){var i;return Object(a.a)(this,FailMessageDelete),(i=t.call(this,r)).messageId=e,i.search=n,i.error=r,i}return FailMessageDelete}(h.b),Ke=function(e){Object(o.a)(SubmitMessageSaveAndPublish,e);var t=Object(c.a)(SubmitMessageSaveAndPublish);function SubmitMessageSaveAndPublish(e,n,r){var i;return Object(a.a)(this,SubmitMessageSaveAndPublish),(i=t.call(this,e,n)).messageId=e,i.clientCopy=n,i.isEdited=r,i}return Object(i.a)(SubmitMessageSaveAndPublish,[{key:"apiEffect",value:function apiEffect(e){var t=D.a.buildFormData(this.messageId,this.clientCopy);return t.append("isEdited","".concat(this.isEdited)),{body:t,path:"".concat(e.apiUrl,"/message"),method:g.c.POST}}},{key:"onSuccess",value:function onSuccess(e){return[new ut(e),new Xe(this.messageId)]}},{key:"onError",value:function onError(e){return[new Qe(this.messageId),new Y.b({message:"Failed to publish draft. Try again later.",level:$.n.warning})]}}]),SubmitMessageSaveAndPublish}(D.a),Xe=function(e){Object(o.a)(SubmitDraftPublish,e);var t=Object(c.a)(SubmitDraftPublish);function SubmitDraftPublish(){var e;Object(a.a)(this,SubmitDraftPublish);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).eventSpec={eventCategory:"Draft",eventAction:"Publish"},e}return Object(i.a)(SubmitDraftPublish,[{key:"onError",value:function onError(e){return[new Qe(this.messageId),new Y.b({message:"Failed to publish draft. Try again later.",level:$.n.warning})]}},{key:"onSuccess",value:function onSuccess(){return[new Y.b({message:"Draft published",level:$.n.info})]}}]),SubmitDraftPublish}(T),Qe=function(e){Object(o.a)(FailDraftPublish,e);var t=Object(c.a)(FailDraftPublish);function FailDraftPublish(e){var n;return Object(a.a)(this,FailDraftPublish),(n=t.call(this)).messageId=e,n}return FailDraftPublish}(h.a),Ze=function(e){Object(o.a)(SubmitWitnessComment,e);var t=Object(c.a)(SubmitWitnessComment);function SubmitWitnessComment(e,n,r,i){var o;return Object(a.a)(this,SubmitWitnessComment),(o=t.call(this,e,n)).messageId=e,o.commentId=n,o.search=r,o.searchesToUpdate=i,o}return Object(i.a)(SubmitWitnessComment,[{key:"onSuccess",value:function onSuccess(e){return[new $e(this.messageId,this.commentId,e,this.search,this.searchesToUpdate)]}},{key:"onError",value:function onError(e){return[new et(this.messageId,this.commentId,e)]}}]),SubmitWitnessComment}(G),$e=function(e){Object(o.a)(FulfillWitnessComment,e);var t=Object(c.a)(FulfillWitnessComment);function FulfillWitnessComment(e,n,r,i,o){var c;return Object(a.a)(this,FulfillWitnessComment),(c=t.call(this)).messageId=e,c.commentId=n,c.orderingId=r,c.search=i,c.searchesToUpdate=o,c}return FulfillWitnessComment}(h.a),et=function(e){Object(o.a)(FailWitnessComment,e);var t=Object(c.a)(FailWitnessComment);function FailWitnessComment(e,n,r){var i;return Object(a.a)(this,FailWitnessComment),(i=t.call(this,r)).messageId=e,i.commentId=n,i.error=r,i}return FailWitnessComment}(h.b),tt=function(e){Object(o.a)(SubmitMessageCreate,e);var t=Object(c.a)(SubmitMessageCreate);function SubmitMessageCreate(e,n,r,i,o,c,s,l,u){var d,b=arguments.length>9&&void 0!==arguments[9]&&arguments[9],p=arguments.length>10?arguments[10]:void 0;return Object(a.a)(this,SubmitMessageCreate),(d=t.call(this,e,n,o,c,s,u,null===p||void 0===p?void 0:p.explicitTeamId)).subject=e,d.body=n,d.userId=r,d.teamId=i,d.toAddresses=o,d.ccAddresses=c,d.bccAddresses=s,d.search=l,d.fromName=u,d.markDisposable=b,d.explicitTeamDetails=p,d}return Object(i.a)(SubmitMessageCreate,[{key:"onSuccess",value:function onSuccess(e){var t=this.explicitTeamDetails?Object(Z.stringify)(Object(r.a)(Object(r.a)({},Object(Z.parse)(this.search)),{},{goBackToTeam:this.explicitTeamDetails.currentTeamId,teamId:this.explicitTeamDetails.explicitTeamId})):this.search;return[new nt(e,this.userId,this.explicitTeamDetails?this.explicitTeamDetails.explicitTeamId:this.teamId,this.markDisposable),Object(s.f)({search:t,pathname:d.a.COMPOSE_MESSAGE(e.id)})]}},{key:"onError",value:function onError(e){return[new rt(e)]}}]),SubmitMessageCreate}(w),nt=function(e){Object(o.a)(FulfillMessageCreate,e);var t=Object(c.a)(FulfillMessageCreate);function FulfillMessageCreate(e,n,r,i){var o;return Object(a.a)(this,FulfillMessageCreate),(o=t.call(this)).response=e,o.userId=n,o.teamId=r,o.markDisposable=i,o}return FulfillMessageCreate}(h.a),rt=function(e){Object(o.a)(FailMessageCreate,e);var t=Object(c.a)(FailMessageCreate);function FailMessageCreate(e){var n;return Object(a.a)(this,FailMessageCreate),(n=t.call(this,e)).error=e,n}return FailMessageCreate}(h.b),at=function(e){Object(o.a)(FetchEmlAndCreateMessage,e);var t=Object(c.a)(FetchEmlAndCreateMessage);function FetchEmlAndCreateMessage(e,n,r,i,o,c){var s;return Object(a.a)(this,FetchEmlAndCreateMessage),(s=t.call(this)).emlUrl=e,s.currentTeamId=n,s.currentUserId=r,s.fromName=i,s.addressSeparator=o,s.search=c,s}return Object(i.a)(FetchEmlAndCreateMessage,[{key:"httpEffect",value:function httpEffect(){var e=this;return new g.a({url:this.emlUrl,method:g.c.GET,callbacks:{onSuccess:function onSuccess(t){var n=t.response;return n.byteLength>ie?[new Y.b({message:"The .eml file must be less than 30MB.",level:$.n.warning}),Object(s.f)({pathname:d.a.LIST,search:e.search})]:[new it(n,e.currentTeamId,e.currentUserId,e.fromName,e.search,e.addressSeparator)]},onError:function onError(){return[new Y.b({message:"Failed to download the .eml file.",level:$.n.warning}),Object(s.f)({pathname:d.a.LIST,search:e.search})]},responseMapper:function responseMapper(e){return e}},responseType:"arraybuffer"})}}]),FetchEmlAndCreateMessage}(h.a),it=function(e){Object(o.a)(SubmitMessageCreateFromEml,e);var t=Object(c.a)(SubmitMessageCreateFromEml);function SubmitMessageCreateFromEml(e,n,r,i,o,c){var s;return Object(a.a)(this,SubmitMessageCreateFromEml),(s=t.call(this,e,n,i,I.a,te.INCLUDES,c)).emlFile=e,s.currentTeamId=n,s.currentUserId=r,s.fromName=i,s.search=o,s.addressSeparator=c,s.eventSpec={eventCategory:"Draft",eventAction:"Create from .eml"},s}return Object(i.a)(SubmitMessageCreateFromEml,[{key:"onSuccess",value:function onSuccess(e){return[new oe(e,this.currentUserId),new Lt(!0,e.id),Object(s.f)({search:this.search,pathname:d.a.COMPOSE_MESSAGE(e.id)})]}},{key:"onError",value:function onError(e){return[new st(e),new Y.b({message:"Failed to import message from the .eml file.",level:$.n.warning}),Object(s.f)({pathname:d.a.LIST,search:this.search})]}}]),SubmitMessageCreateFromEml}(x),ot=function(e){Object(o.a)(ImportEml,e);var t=Object(c.a)(ImportEml);function ImportEml(e,n,r){var i;return Object(a.a)(this,ImportEml),(i=t.call(this,e,n,te.INCLUDES)).messageId=e,i.emlFile=n,i.currentUserId=r,i.eventSpec={eventCategory:"Draft",eventAction:"Update from .eml"},i}return Object(i.a)(ImportEml,[{key:"onError",value:function onError(e){return[new ct(e),new Y.b({message:"Failed to import eml",level:$.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){var t=new oe(e,this.currentUserId),n=t.details.meta,r={body:t.details.body.html,subject:n.subject,from:{name:n.fromName,email:n.fromEmail},to:n.toAddresses,cc:n.ccAddresses,bcc:n.bccAddresses,messageId:this.messageId,isNew:!1,disposable:!1};return[t,new Dt(this.messageId,r,!0)]}}]),ImportEml}(R),ct=function(e){Object(o.a)(FailImportEml,e);var t=Object(c.a)(FailImportEml);function FailImportEml(e){var n;return Object(a.a)(this,FailImportEml),(n=t.call(this,e)).error=e,n}return FailImportEml}(h.b),st=function(e){Object(o.a)(FailMessageCreateFromEml,e);var t=Object(c.a)(FailMessageCreateFromEml);function FailMessageCreateFromEml(e){var n;return Object(a.a)(this,FailMessageCreateFromEml),(n=t.call(this,e)).error=e,n}return FailMessageCreateFromEml}(h.b),lt=function(e){Object(o.a)(SubmitMessageSave,e);var t=Object(c.a)(SubmitMessageSave);function SubmitMessageSave(e,n,r){var i;return Object(a.a)(this,SubmitMessageSave),(i=t.call(this,e,n)).messageId=e,i.clientCopy=n,i.isEdited=r,i.eventSpec=Object(J.e)("Save Draft"),i}return Object(i.a)(SubmitMessageSave,[{key:"apiEffect",value:function apiEffect(e){var t=D.a.buildFormData(this.messageId,this.clientCopy);return t.append("isEdited","".concat(this.isEdited)),{body:t,path:"".concat(e.apiUrl,"/message"),method:g.c.POST}}},{key:"onSuccess",value:function onSuccess(e){return[new ut(e),new Y.b({message:"Draft saved",level:$.n.info})]}},{key:"onError",value:function onError(e){return[new dt(this.messageId,e),new Y.b({message:"Draft not saved. Try again.",level:$.n.warning})]}}]),SubmitMessageSave}(D.a),ut=function(e){Object(o.a)(FulfillMessageSave,e);var t=Object(c.a)(FulfillMessageSave);function FulfillMessageSave(e){var n;return Object(a.a)(this,FulfillMessageSave),(n=t.call(this)).response=e,n}return FulfillMessageSave}(h.a),dt=function(e){Object(o.a)(FailMessageSave,e);var t=Object(c.a)(FailMessageSave);function FailMessageSave(e,n){var r;return Object(a.a)(this,FailMessageSave),(r=t.call(this,n)).messageId=e,r.error=n,r}return FailMessageSave}(h.b),ft=function(e){Object(o.a)(ChangeMessageSender,e);var t=Object(c.a)(ChangeMessageSender);function ChangeMessageSender(){var e;Object(a.a)(this,ChangeMessageSender);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).eventSpec=Object(J.e)("Change Owner",e.messageId),e}return Object(i.a)(ChangeMessageSender,[{key:"onSuccess",value:function onSuccess(e){return[new bt(e),new Y.b({message:"Sender Changed",level:$.n.info})]}},{key:"onError",value:function onError(e){return[new pt(this.messageId,e),new Y.b({message:"Sender Failed to Change.",level:$.n.warning})]}}],[{key:"buildClientCopyFromMeta",value:function buildClientCopyFromMeta(e,t,n){return{body:t.html,subject:e.subject,from:{name:n,email:e.fromEmail},to:e.toAddresses,cc:e.ccAddresses,bcc:e.bccAddresses,messageId:e.messageId,isNew:!1,disposable:!1}}}]),ChangeMessageSender}(D.a),bt=function(e){Object(o.a)(FulfillChangeMessageSender,e);var t=Object(c.a)(FulfillChangeMessageSender);function FulfillChangeMessageSender(e){var n;return Object(a.a)(this,FulfillChangeMessageSender),(n=t.call(this)).response=e,n}return FulfillChangeMessageSender}(h.a),pt=function(e){Object(o.a)(FailChangeMessageSender,e);var t=Object(c.a)(FailChangeMessageSender);function FailChangeMessageSender(e,n){var r;return Object(a.a)(this,FailChangeMessageSender),(r=t.call(this,n)).messageId=e,r.error=n,r}return FailChangeMessageSender}(h.b),mt=function(e){Object(o.a)(SubmitMessageAutoSave,e);var t=Object(c.a)(SubmitMessageAutoSave);function SubmitMessageAutoSave(e,n,r){var i;return Object(a.a)(this,SubmitMessageAutoSave),(i=t.call(this,e,n)).messageId=e,i.clientCopy=n,i.isEdited=r,i}return Object(i.a)(SubmitMessageAutoSave,[{key:"apiEffect",value:function apiEffect(e){var t=D.a.buildFormData(this.messageId,this.clientCopy);return t.append("isEdited","".concat(this.isEdited)),{body:t,path:"".concat(e.apiUrl,"/message"),method:g.c.POST}}},{key:"onSuccess",value:function onSuccess(e){return[new ht(e)]}},{key:"onError",value:function onError(e){return[new gt(this.messageId,e)]}}]),SubmitMessageAutoSave}(D.a),ht=function(e){Object(o.a)(FulfillMessageAutoSave,e);var t=Object(c.a)(FulfillMessageAutoSave);function FulfillMessageAutoSave(e){var n;return Object(a.a)(this,FulfillMessageAutoSave),(n=t.call(this)).response=e,n}return FulfillMessageAutoSave}(h.a),gt=function(e){Object(o.a)(FailMessageAutoSave,e);var t=Object(c.a)(FailMessageAutoSave);function FailMessageAutoSave(e,n){var r;return Object(a.a)(this,FailMessageAutoSave),(r=t.call(this,n)).messageId=e,r.error=n,r}return FailMessageAutoSave}(h.b),jt=function(e){Object(o.a)(SubmitMessageTeamChange,e);var t=Object(c.a)(SubmitMessageTeamChange);function SubmitMessageTeamChange(e,n,r,i,o,c,s){var l;return Object(a.a)(this,SubmitMessageTeamChange),(l=t.call(this)).messageId=e,l.team=n,l.newDraft=r,l.oldFromEmailAddress=i,l.location=o,l.currentTeam=c,l.automaticSignatureSwitcherEnabled=s,l.eventSpec={eventCategory:"Draft",eventAction:"Change Team"},l.notify=!1,l}return Object(i.a)(SubmitMessageTeamChange,null,[{key:"withNotification",value:function withNotification(e,t,n,r,a,i,o){var c=new SubmitMessageTeamChange(e,t,n,r,a,i,o);return c.notify=!0,c}}]),Object(i.a)(SubmitMessageTeamChange,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:[{type:"team",id:this.team.id}]}),path:"".concat(e.platformUrl,"/message/").concat(this.messageId,"/relationships/team"),method:g.c.PATCH}}},{key:"mapResponse",value:function mapResponse(e){return{teamId:e.data.id,newUserSignature:e.data.attributes.newUserSignature}}},{key:"onSuccess",value:function onSuccess(e){var t=Object(Z.parse)(this.location.search);return this.notify?[new vt(this.messageId,e,this.automaticSignatureSwitcherEnabled),Q.h.switchTeamNoReset(this.team.id,[Object(s.e)({search:Object(Z.stringify)(Object(r.a)(Object(r.a)({},t),{},{goBackToTeam:t.goBackToTeam||this.currentTeam.id,teamId:this.team.id})),pathname:d.a.COMPOSE_MESSAGE(this.messageId)})]),new Y.b({id:this.messageId,message:"From ".concat(X.b.t(X.a.TEAM)," successfully switched. ").concat(X.b.t(X.a.TEAM),"-based features like Snippets, Configurations, Tags & Contacts have been updated. ").concat(X.b.t(X.a.TEAM)," signature may require a manual update if present."),level:$.n.warning})]:[new vt(this.messageId,e,this.automaticSignatureSwitcherEnabled),Q.h.switchTeamNoReset(this.team.id,[Object(s.e)({search:Object(Z.stringify)(Object(r.a)(Object(r.a)({},t),{},{goBackToTeam:t.goBackToTeam||this.currentTeam.id,teamId:this.team.id})),pathname:d.a.COMPOSE_MESSAGE(this.messageId)})])]}},{key:"onError",value:function onError(e){return[new Ot(this.messageId,e,this.oldFromEmailAddress),new Y.b({message:"From field could not be changed. Try again.",level:$.n.warning})]}}]),SubmitMessageTeamChange}(v.a),vt=function(e){Object(o.a)(FulfillMessageTeamChange,e);var t=Object(c.a)(FulfillMessageTeamChange);function FulfillMessageTeamChange(e,n,r){var i;return Object(a.a)(this,FulfillMessageTeamChange),(i=t.call(this)).messageId=e,i.response=n,i.automaticSignatureSwitcherEnabled=r,i}return FulfillMessageTeamChange}(h.a),Ot=function(e){Object(o.a)(FailMessageTeamChange,e);var t=Object(c.a)(FailMessageTeamChange);function FailMessageTeamChange(e,n,r){var i;return Object(a.a)(this,FailMessageTeamChange),(i=t.call(this,n)).messageId=e,i.error=n,i.oldFromEmailAddress=r,i}return FailMessageTeamChange}(h.b),Tt=function(e){Object(o.a)(SubmitMessageSend,e);var t=Object(c.a)(SubmitMessageSend);function SubmitMessageSend(e,n,r,i,o,c,s){var l;return Object(a.a)(this,SubmitMessageSend),(l=t.call(this,e,n,o,c)).messageId=e,l.clientCopy=n,l.currentUserId=r,l.currentFilterSet=i,l.sendDelay=o,l.scanForVirus=c,l.storeMessage=s,l.eventSpec=Object(J.e)("Send",l.messageId),l}return Object(i.a)(SubmitMessageSend,[{key:"onSuccess",value:function onSuccess(e){return[new yt(e,this.currentFilterSet,this.sendDelay>0,this.storeMessage)]}},{key:"onError",value:function onError(e){return[new St(this.messageId,e)]}}]),SubmitMessageSend}(U),yt=function(e){Object(o.a)(FulfillMessageSend,e);var t=Object(c.a)(FulfillMessageSend);function FulfillMessageSend(e,n,r,i){var o;return Object(a.a)(this,FulfillMessageSend),(o=t.call(this)).response=e,o.filterSet=n,o.isScheduled=r,o.storeMessage=i,o}return FulfillMessageSend}(h.a),St=function(e){Object(o.a)(FailMessageSend,e);var t=Object(c.a)(FailMessageSend);function FailMessageSend(e,n){var r;return Object(a.a)(this,FailMessageSend),(r=t.call(this,n)).messageId=e,r.error=n,r}return FailMessageSend}(h.b);var Ct=function(e){Object(o.a)(RequestConvertAttachmentLinks,e);var t=Object(c.a)(RequestConvertAttachmentLinks);function RequestConvertAttachmentLinks(e,n,r,i,o,c,s){var l;return Object(a.a)(this,RequestConvertAttachmentLinks),(l=t.call(this,e)).messageId=e,l.clientCopy=n,l.currentUser=r,l.currentFilterSet=i,l.sendDelay=o,l.scanForVirus=c,l.storeMessage=s,l}return Object(i.a)(RequestConvertAttachmentLinks,[{key:"onSuccess",value:function onSuccess(e){var t=this,n=m.a.of(e.relationships.document).maybe([],(function(e){return e.data.map((function(e){return e.id}))})),a=new I.c(e.included),i=function generateLinkStubs(e){return"<div><br/></div>"+e.filter((function(e){return e.meta.publicDownload})).map((function(e){var t=Object(b.b)(m.a.of(e.attributes.size).maybe(0,(function(e){return e})));return'\n<div style="background-color: #f9f9f9; border: 1px solid #d4d9d8; width: 396px; padding: 5px; margin-bottom: 10px;">\n  <table style="font-family: sans-serif; font-size: 13px; border-spacing: 0; width: 100%; border: 0;">\n    <tbody>\n      <tr>\n        <td style="width: 32px; border: 0; vertical-align: middle;"><img src="https://www.sednanetwork.com/launch/sedna-attachment-24.png" style="vertical-align: middle;" width="24" height="24"></td>\n        <td style="border: 0;">\n          <div style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 358px;">\n            <a href="'.concat(e.meta.publicDownload,'" style="text-decoration: none ; font-weight: bold;">').concat(e.attributes.name,'</a>\n          </div>\n          <div style="overflow: hidden; width: 358px;">\n            <span style="color: #1E2424;">').concat(t,"</span>\n          </div>\n        </td>\n      </tr>\n    </tbody>\n  </table>\n</div>\n")})).join("")+"<div><br/></div>"}(Object(p.b)(n.map((function(e){return a.get({type:"document",id:e})})))),o=this.clientCopy.body,c=function insertLinks(e){return o.replace(e,i.concat(e))};return[new At(this.messageId),new Tt(this.messageId,Object(r.a)(Object(r.a)({},this.clientCopy),{},{body:function bodyWithLinks(){return t.currentUser.emailSignature&&t.clientCopy.body.includes(t.currentUser.emailSignature)?c(t.currentUser.emailSignature):t.clientCopy.body.includes(ee)?c(ee):o.concat(i)}()}),this.currentUser.id,this.currentFilterSet,this.sendDelay,this.scanForVirus,this.storeMessage)]}},{key:"onError",value:function onError(e){return[new St(this.messageId,e)]}}]),RequestConvertAttachmentLinks}(E),At=function(e){Object(o.a)(FulfillRequestConvertAttachmentLinks,e);var t=Object(c.a)(FulfillRequestConvertAttachmentLinks);function FulfillRequestConvertAttachmentLinks(e){var n;return Object(a.a)(this,FulfillRequestConvertAttachmentLinks),(n=t.call(this)).messageId=e,n}return FulfillRequestConvertAttachmentLinks}(h.a),Et=function(e){Object(o.a)(SubmitMessageDiscard,e);var t=Object(c.a)(SubmitMessageDiscard);function SubmitMessageDiscard(e,n,r){var i;return Object(a.a)(this,SubmitMessageDiscard),(i=t.call(this,e)).messageId=e,i.search=n,i.next=r,i.eventSpec=Object(J.e)("Delete Draft",i.messageId),i}return Object(i.a)(SubmitMessageDiscard,[{key:"onSuccess",value:function onSuccess(){var e=[new wt(this.messageId,this.search)];return this.next?[].concat(e,[this.next]):e}},{key:"onError",value:function onError(e){return[new _t(this.messageId,this.search,e),new Y.b({level:$.n.warning,message:"Failed to discard draft"})]}}]),SubmitMessageDiscard}(N),wt=function(e){Object(o.a)(FulfillMessageDiscard,e);var t=Object(c.a)(FulfillMessageDiscard);function FulfillMessageDiscard(e,n){var r;return Object(a.a)(this,FulfillMessageDiscard),(r=t.call(this)).messageId=e,r.search=n,r}return FulfillMessageDiscard}(h.a),_t=function(e){Object(o.a)(FailMessageDiscard,e);var t=Object(c.a)(FailMessageDiscard);function FailMessageDiscard(e,n,r){var i;return Object(a.a)(this,FailMessageDiscard),(i=t.call(this,r)).messageId=e,i.search=n,i.error=r,i}return FailMessageDiscard}(h.b),It=function(e){Object(o.a)(SubmitRequestTemplates,e);var t=Object(c.a)(SubmitRequestTemplates);function SubmitRequestTemplates(){return Object(a.a)(this,SubmitRequestTemplates),t.apply(this,arguments)}return Object(i.a)(SubmitRequestTemplates,[{key:"onSuccess",value:function onSuccess(e){return[new xt(e)]}},{key:"onError",value:function onError(e){return[new kt(e)]}}]),SubmitRequestTemplates}(V),xt=function(e){Object(o.a)(FulfillRequestTemplates,e);var t=Object(c.a)(FulfillRequestTemplates);function FulfillRequestTemplates(e){var n;return Object(a.a)(this,FulfillRequestTemplates),(n=t.call(this)).response=e,n}return FulfillRequestTemplates}(h.a),kt=function(e){Object(o.a)(FailRequestTemplates,e);var t=Object(c.a)(FailRequestTemplates);function FailRequestTemplates(){return Object(a.a)(this,FailRequestTemplates),t.apply(this,arguments)}return FailRequestTemplates}(h.b),Nt=function(e){Object(o.a)(DismissMessageSaveErrorDialog,e);var t=Object(c.a)(DismissMessageSaveErrorDialog);function DismissMessageSaveErrorDialog(e){var n;return Object(a.a)(this,DismissMessageSaveErrorDialog),(n=t.call(this)).messageId=e,n}return DismissMessageSaveErrorDialog}(h.a),Rt=function(e){Object(o.a)(DismissMessageSendErrorDialog,e);var t=Object(c.a)(DismissMessageSendErrorDialog);function DismissMessageSendErrorDialog(e){var n;return Object(a.a)(this,DismissMessageSendErrorDialog),(n=t.call(this)).messageId=e,n}return DismissMessageSendErrorDialog}(h.a),Ft=function(e){Object(o.a)(DismissMessageSendNowDialog,e);var t=Object(c.a)(DismissMessageSendNowDialog);function DismissMessageSendNowDialog(e){var n;return Object(a.a)(this,DismissMessageSendNowDialog),(n=t.call(this)).messageId=e,n}return DismissMessageSendNowDialog}(h.a),Mt=function(e){Object(o.a)(DraftEdited,e);var t=Object(c.a)(DraftEdited);function DraftEdited(e,n){var r;return Object(a.a)(this,DraftEdited),(r=t.call(this)).messageId=e,r.draft=n,r}return DraftEdited}(h.a),Dt=function(e){Object(o.a)(LoadClientCopy,e);var t=Object(c.a)(LoadClientCopy);function LoadClientCopy(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(a.a)(this,LoadClientCopy),(r=t.call(this)).messageId=e,r.draft=n,r.forceUpdate=i,r.messageUuid=r.forceUpdate?Math.random().toString():"",r}return LoadClientCopy}(h.a),Lt=function(e){Object(o.a)(SetCreatedFromSource,e);var t=Object(c.a)(SetCreatedFromSource);function SetCreatedFromSource(e,n){var r;return Object(a.a)(this,SetCreatedFromSource),(r=t.call(this)).createdFromApi=e,r.messageId=n,r}return SetCreatedFromSource}(h.a),Pt=function(e){Object(o.a)(ResetNextDraft,e);var t=Object(c.a)(ResetNextDraft);function ResetNextDraft(){return Object(a.a)(this,ResetNextDraft),t.apply(this,arguments)}return ResetNextDraft}(h.a);h.a},,function(e,t,n){"use strict";n.d(t,"f",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return b})),n.d(t,"l",(function(){return p})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"g",(function(){return j})),n.d(t,"k",(function(){return v})),n.d(t,"n",(function(){return O})),n.d(t,"p",(function(){return T})),n.d(t,"m",(function(){return y})),n.d(t,"o",(function(){return S})),n.d(t,"a",(function(){return C})),n.d(t,"c",(function(){return A}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(4),s=n(14),l=function contactActivityPanelAnalyticsEvent(e,t){return{eventCategory:"Contact Activity Panel",eventAction:e,eventLabel:t}},u=function messagePanelAnalyticsEvent(e,t){return{eventCategory:"Message Panel",eventAction:e,eventLabel:t}},d=function messageAnalyticsEvent(e,t){return{eventCategory:"Message",eventAction:e,eventLabel:t}},b=function messageNavigationAnalyticsEvent(e,t){return Object(c.a)({eventCategory:"Message Navigation",eventAction:e},t&&{eventLabel:t})},p=function notesNavigationAnalyticsEvent(e,t){return Object(c.a)({eventCategory:"Note Navigation",eventAction:e},t&&{eventLabel:t})},m=function composeAnalyticsEvent(e,t){return Object(c.a)({eventCategory:"Message Compose Actions",eventAction:e},t&&{eventLabel:t})},h=function bookmarkAnalyticsEvent(e,t){return{eventCategory:"Bookmark",eventAction:e,eventLabel:t}},g=function activityPaneAnalyticsEvent(e){return{eventCategory:"Activity Pane",eventAction:e}},j=function customSearchAnalyticsEvent(e){return{eventCategory:"Search",eventAction:e}},v=function notesAnalyticsEvent(e,t){return Object(c.a)({eventCategory:"Notes",eventAction:e},t&&{eventLabel:t})},O=function sednaLinkAnalyticsEvent(e,t,n){return Object(c.a)({eventCategory:"SEDNA Link - App Panel",eventAction:e},t&&{eventLabel:n})},T=function sidebarNavigationEvent(e){return{eventCategory:"Sidebar",eventAction:e}},y=function oldUINavigationEvent(e){return{eventCategory:"Navigation Bar (Old UI)",eventAction:e}},S=function sednaLiteAnalyticsEvent(e){return{eventCategory:"Sedna Lite",eventAction:e}},C=function(e){Object(i.a)(AnalyticsEventAction,e);var t=Object(o.a)(AnalyticsEventAction);function AnalyticsEventAction(e,n,a){var i;return Object(r.a)(this,AnalyticsEventAction),(i=t.call(this)).eventCategory=e,i.eventAction=n,i.eventLabel=a,i.eventSpec={eventCategory:i.eventCategory,eventAction:i.eventAction,eventLabel:i.eventLabel},i}return Object(a.a)(AnalyticsEventAction,null,[{key:"withEvent",value:function withEvent(e){return new this(e.eventCategory,e.eventAction,e.eventLabel)}}]),AnalyticsEventAction}(s.a),A=function analyticsActionMiddleware(){return function(e){return function(t){var n=window.mixpanel;return n&&function hasEventSpec(e){return"object"===typeof e.eventSpec}(t)&&n.track(t.eventSpec.eventAction,Object(c.a)({},t.eventSpec)),e(t)}}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(4),a=n(0),i=n(1),o=n(19),c=(n(778),n(58)),s=i.forwardRef((function(e,t){var n,i,c=null!==(n=e.buttonStyle)&&void 0!==n?n:"primary",s=null!==(i=e.size)&&void 0!==i?i:"regular",l={id:e.id,className:"c-icon-button"+("small"===e.size?" c--sm":"")+(e.className?" "+e.className:"")+(e.onDarkTheme?" c--dark":"")+("link"===c?" c--link":""),tabIndex:e.tabIndex,onClick:e.onClick,onMouseDown:e.onMouseDown,disabled:e.disabled,"data-testid":e.dataTestId,onBlur:e.onBlur,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave};return e.url?Object(a.jsxs)("a",Object(r.a)(Object(r.a)({},l),{},{href:e.url,download:e.download,ref:t,target:e.openNewPage?"_blank":void 0,rel:e.openNewPage?"noopener noreferrer":void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,children:[Object(a.jsx)(o.a,{glyph:e.iconGlyph,size:s}),e.buttonContent&&Object(a.jsx)("span",{className:"u-clip",children:e.buttonContent})]})):Object(a.jsxs)("button",Object(r.a)(Object(r.a)({},l),{},{ref:t,type:"button",children:[Object(a.jsx)(o.a,{glyph:e.iconGlyph,size:s}),e.buttonContent&&Object(a.jsx)("span",{className:"u-clip",children:e.buttonContent})]}))})),l=i.forwardRef((function(e,t){return e.isMobile||!e.buttonContent?Object(a.jsx)(s,Object(r.a)(Object(r.a)({},e),{},{ref:t})):Object(a.jsx)(c.a,{disableOnTouch:e.disableOnTouch,showContentWhenDisabled:e.showContentWhenDisabled&&Boolean(e.buttonContent),content:e.buttonContent,children:Object(a.jsx)(s,Object(r.a)(Object(r.a)({},e),{},{ref:t}))})}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(4),a=n(7),i=n(626),o=n(0),c=n(1),s=(n(1181),n(24)),l=n.n(s),u=n(19),d=c.forwardRef((function(e,t){var n,c,s,d=e.buttonStyle,b=e.url,p=e.icon,m=e.onDarkBg,h=e.danger,g=e.size,j=e.openNewPage,v=Object(i.a)(e,["buttonStyle","url","icon","onDarkBg","danger","size","openNewPage"]),O=null!==d&&void 0!==d?d:"primary",T=null!==g&&void 0!==g?g:"regular",y=function renderIcon(){return p?Object(o.jsx)(u.a,{size:T,glyph:p,className:e.children?"u-mr-sm":""}):""};return b?Object(o.jsxs)("a",Object(r.a)(Object(r.a)({},v),{},{ref:t,href:b,className:l()("c-button",(s={},Object(a.a)(s,"".concat(e.className),e.className),Object(a.a)(s,"c--secondary","secondary"===O),Object(a.a)(s,"c--link","link"===O),Object(a.a)(s,"c--on-dark",m),Object(a.a)(s,"c--danger",h),Object(a.a)(s,"c--small","small"===T),s)),target:j?"_blank":void 0,rel:j?"noopener noreferrer":void 0,children:[y(),e.children]})):Object(o.jsxs)("button",Object(r.a)(Object(r.a)({},v),{},{ref:t,type:null!==(n=e.type)&&void 0!==n?n:"button",className:l()("c-button",(c={},Object(a.a)(c,"".concat(e.className),e.className),Object(a.a)(c,"c--secondary","secondary"===O),Object(a.a)(c,"c--link","link"===O),Object(a.a)(c,"c--on-dark",m),Object(a.a)(c,"c--danger",h),Object(a.a)(c,"c--small","small"===T),c)),children:[y(),e.children]}))}))},,,function(e,t,n){"use strict";var r,a,i,o,c,s,l,u;n.d(t,"h",(function(){return r})),n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return u})),function(e){e[e.SYSTEM=1]="SYSTEM",e[e.CATEGORY=2]="CATEGORY",e[e.JOB_REFERENCE=3]="JOB_REFERENCE",e[e.TODO=4]="TODO",e[e.USER=5]="USER",e[e.KEYWORD=6]="KEYWORD"}(r||(r={})),function(e){e[e.VIEWED=1]="VIEWED",e[e.STORAGE=2]="STORAGE",e[e.TODO=3]="TODO",e[e.SENT=6]="SENT",e[e.INBOX=7]="INBOX",e[e.DRAFT=8]="DRAFT",e[e.READ=10]="READ",e[e.COMMENT=15]="COMMENT",e[e.SENDING=18]="SENDING"}(a||(a={})),function(e){e.VOYAGE="voyage",e.HEAD_FIXTURE="head_fixture",e.SPOT_FIXTURE="spot_fixture",e.OTHER="other"}(i||(i={})),function(e){e.HOME="home",e.MOBILE="mobile",e.OFFICE="office",e.SATELLITE="satellite"}(o||(o={})),function(e){e.PERSON="person",e.CHARTERER="charterer",e.INTERNAL="internal",e.AGENT="agent",e.SHIPBROKER="shipbroker",e.SHIPOWNER="shipowner",e.VESSEL="vessel",e.OTHER="other"}(c||(c={})),function(e){e.REPLIED="REPLIED",e.REPLYING="REPLYING",e.FORWARDING="FORWARDING",e.FORWARDED="FORWARDED"}(s||(s={})),function(e){e.USER="user",e.TEAM="team",e.TENANT="tenant"}(l||(l={})),function(e){e.JSONPATCH="application/json-patch+json"}(u||(u={}))},function(e,t,n){"use strict";var r,a,i,o;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),function(e){e.message="message",e.topic="topic"}(r||(r={})),function(e){e.date_label="date_label",e.jr_header="jr_header",e.jr_footer="js_footer",e.list_spacing="list_spacing",e.list_new_line="list_new_line",e.list_loading="list_loading",e.list_spinner="list_spinner",e.no_item="no_item",e.bucket_collapsed_view="bucket_collapsed_view",e.jr_header_v2="jr_header_v2",e.full_bucket_header_v2="full_bucket_header_v2"}(a||(a={})),function(e){e.READ_OR_VIEWED="all-read-or-viewed",e.BUT_LAST_72_HOURS="all-but-last-72-hours",e.BUT_LAST_12_HOURS="all-but-last-12-hours",e.ASSIGNED="all-assigned",e.WITH_JOB_REFERENCES="all-with-job-references",e.READ_OR_VIEWED_ME="all-read-or-viewed-me",e.WITH_CATEGORY_TAGS="all-with-category-tags",e.ALL="all"}(i||(i={})),function(e){e.BOLD_SUBJECT="BOLD_SUBJECT",e.BOLD_SENDER="BOLD_SENDER"}(o||(o={}))},,function(e,t,n){"use strict";function noop(){}n.d(t,"a",(function(){return noop}))},function(e,t,n){"use strict";function createReducer(e,t){return function(){var n,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1?arguments[1]:void 0;return null!==(n=null===(r=e[i.type])||void 0===r?void 0:r.call(e,a,i))&&void 0!==n?n:a}}n.d(t,"a",(function(){return createReducer}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return plainError})),n.d(t,"a",(function(){return c}));var r=n(86),a=n(3),i=n(10),o=n(25);function plainError(e,t){return{message:null!==e&&void 0!==e?e:"",status:null!==t&&void 0!==t?t:null}}var c=function(){function Stored(e){Object(a.a)(this,Stored),this.val=e}return Object(i.a)(Stored,null,[{key:"of",value:function of(e,t){return new Stored(new u(e,t))}},{key:"ofError",value:function ofError(e){return new Stored(new l(e))}},{key:"fromTry",value:function fromTry(e){return e.map(Stored.of).orElse((function(e){return Stored.ofError(plainError(e.message))}))}},{key:"loading",value:function loading(){return new Stored(new s("LOADING"))}},{key:"notLoading",value:function notLoading(){return new Stored(new s("NOT_LOADING"))}},{key:"traverse",value:function traverse(e,t){var n,a=[],i=Object(r.a)(e);try{for(i.s();!(n=i.n()).done;){var o=t(n.value);if(o.val instanceof l||o.val instanceof s)return new Stored(o.val);a.push(o.val.stored)}}catch(c){i.e(c)}finally{i.f()}return Stored.of(a)}},{key:"lift",value:function lift(e){return function(t){return t.map(e)}}},{key:"lift2",value:function lift2(e){return function(t,n){return t.flatMap((function(t){return n.map((function(n){return e(t,n)}))}))}}},{key:"lift3",value:function lift3(e){return function(t,n,r){return t.flatMap((function(t){return n.flatMap((function(n){return r.map((function(r){return e(t,n,r)}))}))}))}}},{key:"lift4",value:function lift4(e){return function(t,n,r,a){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.map((function(a){return e(t,n,r,a)}))}))}))}))}}},{key:"lift5",value:function lift5(e){return function(t,n,r,a,i){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.map((function(i){return e(t,n,r,a,i)}))}))}))}))}))}}},{key:"lift6",value:function lift6(e){return function(t,n,r,a,i,o){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.map((function(o){return e(t,n,r,a,i,o)}))}))}))}))}))}))}}},{key:"lift7",value:function lift7(e){return function(t,n,r,a,i,o,c){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.map((function(c){return e(t,n,r,a,i,o,c)}))}))}))}))}))}))}))}}},{key:"lift8",value:function lift8(e){return function(t,n,r,a,i,o,c,s){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.flatMap((function(c){return s.map((function(s){return e(t,n,r,a,i,o,c,s)}))}))}))}))}))}))}))}))}}},{key:"lift9",value:function lift9(e){return function(t,n,r,a,i,o,c,s,l){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.flatMap((function(c){return s.flatMap((function(s){return l.map((function(l){return e(t,n,r,a,i,o,c,s,l)}))}))}))}))}))}))}))}))}))}}},{key:"lift10",value:function lift10(e){return function(t,n,r,a,i,o,c,s,l,u){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.flatMap((function(c){return s.flatMap((function(s){return l.flatMap((function(l){return u.map((function(u){return e(t,n,r,a,i,o,c,s,l,u)}))}))}))}))}))}))}))}))}))}))}}},{key:"lift11",value:function lift11(e){return function(t,n,r,a,i,o,c,s,l,u,d){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.flatMap((function(c){return s.flatMap((function(s){return l.flatMap((function(l){return u.flatMap((function(u){return d.map((function(d){return e(t,n,r,a,i,o,c,s,l,u,d)}))}))}))}))}))}))}))}))}))}))}))}}},{key:"lift12",value:function lift12(e){return function(t,n,r,a,i,o,c,s,l,u,d,b){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.flatMap((function(c){return s.flatMap((function(s){return l.flatMap((function(l){return u.flatMap((function(u){return d.flatMap((function(d){return b.map((function(b){return e(t,n,r,a,i,o,c,s,l,u,d,b)}))}))}))}))}))}))}))}))}))}))}))}))}}},{key:"lift13",value:function lift13(e){return function(t,n,r,a,i,o,c,s,l,u,d,b,p){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.flatMap((function(c){return s.flatMap((function(s){return l.flatMap((function(l){return u.flatMap((function(u){return d.flatMap((function(d){return b.flatMap((function(b){return p.map((function(p){return e(t,n,r,a,i,o,c,s,l,u,d,b,p)}))}))}))}))}))}))}))}))}))}))}))}))}))}}},{key:"lift14",value:function lift14(e){return function(t,n,r,a,i,o,c,s,l,u,d,b,p,m){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.flatMap((function(c){return s.flatMap((function(s){return l.flatMap((function(l){return u.flatMap((function(u){return d.flatMap((function(d){return b.flatMap((function(b){return p.flatMap((function(p){return m.map((function(m){return e(t,n,r,a,i,o,c,s,l,u,d,b,p,m)}))}))}))}))}))}))}))}))}))}))}))}))}))}))}}},{key:"lift15",value:function lift15(e){return function(t,n,r,a,i,o,c,s,l,u,d,b,p,m,h){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.flatMap((function(c){return s.flatMap((function(s){return l.flatMap((function(l){return u.flatMap((function(u){return d.flatMap((function(d){return b.flatMap((function(b){return p.flatMap((function(p){return m.flatMap((function(m){return h.map((function(h){return e(t,n,r,a,i,o,c,s,l,u,d,b,p,m,h)}))}))}))}))}))}))}))}))}))}))}))}))}))}))}))}}},{key:"lift16",value:function lift16(e){return function(t,n,r,a,i,o,c,s,l,u,d,b,p,m,h,g){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.flatMap((function(c){return s.flatMap((function(s){return l.flatMap((function(l){return u.flatMap((function(u){return d.flatMap((function(d){return b.flatMap((function(b){return p.flatMap((function(p){return m.flatMap((function(m){return h.flatMap((function(h){return g.map((function(g){return e(t,n,r,a,i,o,c,s,l,u,d,b,p,m,h,g)}))}))}))}))}))}))}))}))}))}))}))}))}))}))}))}))}}},{key:"lift17",value:function lift17(e){return function(t,n,r,a,i,o,c,s,l,u,d,b,p,m,h,g,j){return t.flatMap((function(t){return n.flatMap((function(n){return r.flatMap((function(r){return a.flatMap((function(a){return i.flatMap((function(i){return o.flatMap((function(o){return c.flatMap((function(c){return s.flatMap((function(s){return l.flatMap((function(l){return u.flatMap((function(u){return d.flatMap((function(d){return b.flatMap((function(b){return p.flatMap((function(p){return m.flatMap((function(m){return h.flatMap((function(h){return g.flatMap((function(g){return j.map((function(j){return e(t,n,r,a,i,o,c,s,l,u,d,b,p,m,h,g,j)}))}))}))}))}))}))}))}))}))}))}))}))}))}))}))}))}))}}},{key:"tuple2",value:function tuple2(e,t){return Stored.lift2((function(e,t){return[e,t]}))(e,t)}},{key:"tuple3",value:function tuple3(e,t,n){return Stored.lift3((function(e,t,n){return[e,t,n]}))(e,t,n)}},{key:"tuple4",value:function tuple4(e,t,n,r){return Stored.lift4((function(e,t,n,r){return[e,t,n,r]}))(e,t,n,r)}},{key:"tuple5",value:function tuple5(e,t,n,r,a){return Stored.lift5((function(e,t,n,r,a){return[e,t,n,r,a]}))(e,t,n,r,a)}},{key:"concat",value:function concat(e){for(var t=function reducer(e,t){return e.flatMap((function(e){return t.map((function(t){return e.concat(t)}))}))},n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce(t,e)}},{key:"filterPresent",value:function filterPresent(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return t.ifPresent((function(t){return e.push(t)})),e}),[])}}]),Object(i.a)(Stored,[{key:"toOptional",value:function toOptional(){return this.val instanceof u?o.a.ofNull(this.val.stored):o.a.empty()}},{key:"toUndefined",value:function toUndefined(){return this.val instanceof u?this.val.stored:void 0}},{key:"error",value:function error(){return this.val instanceof l?o.a.of(this.val.err):o.a.empty()}},{key:"status",value:function status(){return this.val instanceof u?"LOADED":this.val instanceof s?this.val.status:"ERROR"}},{key:"isPresent",value:function isPresent(){return this.val instanceof u}},{key:"isError",value:function isError(){return this.val instanceof l}},{key:"isPending",value:function isPending(){return this.val instanceof s}},{key:"isLoading",value:function isLoading(){return this.val instanceof s&&"LOADING"===this.val.status}},{key:"isNotLoading",value:function isNotLoading(){return"NOT_LOADING"===this.status()}},{key:"isStale",value:function isStale(){return!!(this.val instanceof u&&this.val.lastLoaded&&this.val.lastLoaded+3e5<Date.now())}},{key:"map",value:function map(e){if(this.val instanceof u){var t=e(this.val.stored);return Stored.of(t)}return new Stored(this.val)}},{key:"ifPresent",value:function ifPresent(e){return this.val instanceof u&&e(this.val.stored),this}},{key:"ifError",value:function ifError(e){return this.val instanceof l&&e(this.val.err),this}},{key:"ifAbsent",value:function ifAbsent(e){return this.isPresent()||e(),this}},{key:"ifNotLoading",value:function ifNotLoading(e){return"NOT_LOADING"===this.status()&&e(),this}},{key:"flatMap",value:function flatMap(e){return this.val instanceof u?e(this.val.stored):new Stored(this.val)}},{key:"unwrap",value:function unwrap(e,t){return this.unwrapTo((function(e){return e}),e,t)}},{key:"unwrapTo",value:function unwrapTo(e,t,n){return this.val instanceof u?e(this.val.stored):this.val instanceof s?t(this.val.status):n(this.val.err)}},{key:"or",value:function or(e){return this.val instanceof u?this:e}},{key:"orElse",value:function orElse(e){return this.val instanceof u?this.val.stored:e}},{key:"orElseThrow",value:function orElseThrow(e){if(this.val instanceof u)return this.val.stored;if(e instanceof Error)throw e;var t=this.error().maybe("Called .orElseThrow on a stored value in the ".concat(this.status()," state"),(function(e){return e.message||"An error occurred"}));throw new Error(t)}},{key:"orElseDo",value:function orElseDo(e){this.ifAbsent(e)}},{key:"equals",value:function equals(e){return this.val instanceof u&&e.val instanceof u?this.val.stored===e.val.stored:this.val instanceof s&&e.val instanceof s?this.val.status===e.val.status:this.val instanceof l&&e.val instanceof l?this.val.err===e.val.err:this===e}}]),Stored}(),s=function Pending(e){Object(a.a)(this,Pending),this.status=e},l=function WrapError(e){Object(a.a)(this,WrapError),this.err=e},u=function WrapStored(e,t){Object(a.a)(this,WrapStored),this.stored=e,this.lastLoaded=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n(4),a=n(3),i=n(5),o=n(6),c=n(14),s=n(268),l=function(e){Object(i.a)(ClearNotification,e);var t=Object(o.a)(ClearNotification);function ClearNotification(e){var n;return Object(a.a)(this,ClearNotification),(n=t.call(this)).id=e,n}return ClearNotification}(c.a),u=function(e){Object(i.a)(Notify,e);var t=Object(o.a)(Notify);function Notify(e){var n,i;return Object(a.a)(this,Notify),(i=t.call(this)).notification=void 0,i.replace=void 0,i.storedRelationships=void 0,i.notification=Object(r.a)(Object(r.a)({},e),{},{id:null!==(n=e.id)&&void 0!==n?n:Object(s.a)(),replace:e.replace}),i}return Notify}(c.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"f",(function(){return nameAssignment})),n.d(t,"g",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return fullName})),n.d(t,"d",(function(){return fullNameOrPronoun})),n.d(t,"e",(function(){return initials}));var r=n(23),a=n(4),i="You";function nameAssignment(e,t,n,r,i){return Object(a.a)(Object(a.a)({},e),{},{assignedToUserName:fullName(t.firstName,t.lastName),assignedByUserName:fullNameOrPronoun(n,r),fromActiveTeam:i.includes(t.id)})}var o={id:"",name:"",isPublic:null,emailAddress:null,purpose:null,deletedAt:null},c={id:"",teamId:"",firstName:"A",lastName:"User",initials:"AU",username:"A User",deletedAt:null};function fullName(e,t){return t?e?"".concat(e," ").concat(t):t:e}function fullNameOrPronoun(e,t){return e.id===t.id?i:fullName(e.firstName,e.lastName)}function initials(e,t,n){var a;return(null!==e&&void 0!==e?e:"").toUpperCase()||(a=t.split(" ")).concat.apply(a,Object(r.a)(n.split(" "))).filter((function(e){return e.length>0})).map((function(e){return e[0]})).join("")}},,,function(e,t,n){"use strict";n.d(t,"q",(function(){return C})),n.d(t,"j",(function(){return A})),n.d(t,"g",(function(){return E})),n.d(t,"r",(function(){return w})),n.d(t,"k",(function(){return _})),n.d(t,"p",(function(){return x})),n.d(t,"i",(function(){return k})),n.d(t,"h",(function(){return N})),n.d(t,"f",(function(){return R})),n.d(t,"e",(function(){return F})),n.d(t,"s",(function(){return M})),n.d(t,"v",(function(){return D})),n.d(t,"m",(function(){return L})),n.d(t,"a",(function(){return P})),n.d(t,"u",(function(){return U})),n.d(t,"l",(function(){return B})),n.d(t,"o",(function(){return H})),n.d(t,"n",(function(){return G})),n.d(t,"b",(function(){return W})),n.d(t,"d",(function(){return z})),n.d(t,"c",(function(){return V})),n.d(t,"t",(function(){return J}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(57),l=n(27),u=n(142),d=n(20),b=n(16),p=function(e){Object(i.a)(StoreAllAction,e);var t=Object(o.a)(StoreAllAction);function StoreAllAction(e,n){var a;Object(r.a)(this,StoreAllAction),(a=t.call(this)).teams=n,a.eventSpec=void 0,a.taskId=void 0,a.task=void 0,a.userId=void 0,a.teamId=void 0;var i=e.taskId,o=e.task,c=e.userId,s=e.teamId;return a.eventSpec={eventCategory:"Store All",eventAction:o},a.taskId=i,a.task=o,a.userId=c,a.teamId=s,a}return Object(a.a)(StoreAllAction,[{key:"apiEffect",value:function apiEffect(e){return{body:"filter=".concat(this.task,"&taskId=").concat(this.taskId).concat(this.teams?this.teams.map((function(e){return"&teams[]=".concat(e)})).join(""):""," "),path:"".concat(e.apiUrl,"/messagetag/store"),method:b.c.POST}}}]),StoreAllAction}(d.a),m=n(43),h=n(25),g=n(30),j=n(4),v=function(e){Object(i.a)(FilterSetUnreadApiAction,e);var t=Object(o.a)(FilterSetUnreadApiAction);function FilterSetUnreadApiAction(e,n,a,i,o,c,s,l){var u;return Object(r.a)(this,FilterSetUnreadApiAction),(u=t.call(this)).userId=e,u.topicsEnabled=n,u.searchAfter=a,u.filterSet=i,u.sort=o,u.order=c,u.options=s,u.listType=l,u}return Object(a.a)(FilterSetUnreadApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=this.options,n=t.TOPICS,r=t.INCLUDE_NO_MATCH_IN_MY_MESSAGES,a=t.SLIM_MY_MESSAGES,i=t.TEAM_AWARE_MM,o=t.SEARCH_PARTIAL_MATCH_FUZZINESS,c=this.options.SEARCH_PLATFORM?"search/query":"search/count",l=this.options.SEARCH_PLATFORM?{sort:this.sort,order:this.order,limit:s.d,source:this.listType,idsOnly:!0,includeNoMatchInMyMessages:r,slimMyMessages:a,teamAwareMM:i}:{sort:this.sort,order:this.order,limit:s.d,forceDegraded:this.options.FORCE_DEGRADED,topicsEnabled:n,includeNoMatchInMyMessages:r,slimMyMessages:a,teamAwareMM:i,msm:o},u=this.searchAfter?Object(j.a)(Object(j.a)({},l),{},{afterId:this.searchAfter.afterId,afterTimestamp:this.searchAfter.afterTimestamp}):l;return{path:"".concat(e.platformUrl,"/").concat(c,"?")+Object(g.stringify)(u),method:b.c.POST,body:JSON.stringify({data:{type:"filter-set",attributes:{filter:this.filterSet.serialize()}}}),disableRetry:!0}}}]),FilterSetUnreadApiAction}(d.a),O=n(365),T=n(569),y=function(e){Object(i.a)(QueryCountApiAction,e);var t=Object(o.a)(QueryCountApiAction);function QueryCountApiAction(e,n){var a;return Object(r.a)(this,QueryCountApiAction),(a=t.call(this)).filter=e,a.exact=n,a}return Object(a.a)(QueryCountApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/search/query-count?")+Object(g.stringify)({exact:this.exact}),method:b.c.POST,body:JSON.stringify({data:{type:"filter-set",attributes:{filter:this.filter.serialize()}}})}}},{key:"mapResponse",value:function mapResponse(e){return{total:e.meta.total,exact:e.meta.exact}}}]),QueryCountApiAction}(d.a),S=n(8),C=function(e){Object(i.a)(RequestMessagePage,e);var t=Object(o.a)(RequestMessagePage);function RequestMessagePage(e,n,a,i,o,c,s,l,u,d,b){var p;return Object(r.a)(this,RequestMessagePage),(p=t.call(this,e,n,a,i,o,l,u,b,d)).currentUser=e,p.searchAfter=n,p.filterSet=a,p.sort=i,p.order=o,p.search=c,p.setMetaToLoading=s,p.options=l,p.listType=u,p.disableRetry=d,p.trigger=b,p}return Object(a.a)(RequestMessagePage,null,[{key:"fromCursorAndSearch",value:function fromCursorAndSearch(e,t,n,r,a,i,o,c){var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:S.i.FRESH,u=Object(g.parse)(a),d=u.order===s.b.FROM_OLDEST?s.b.FROM_OLDEST:s.b.FROM_NEWEST,b=t?{afterId:t.id,afterTimestamp:Object(O.b)(t,r)}:null,p=i?RequestMessagePage.setMetaToLoading:RequestMessagePage.doNotSetMetaToLoading;return p(e,b,n,r,d,a,o,c,l)}},{key:"setMetaToLoading",value:function setMetaToLoading(e,t,n,r,a,i,o,c,s){return new RequestMessagePage(e,t,n,r,a,i,!0,o,c,!1,s)}},{key:"doNotSetMetaToLoading",value:function doNotSetMetaToLoading(e,t,n,r,a,i,o,c,s){return new RequestMessagePage(e,t,n,r,a,i,!1,o,c,!0,s)}}]),Object(a.a)(RequestMessagePage,[{key:"onSuccess",value:function onSuccess(e){var t=[new A(this.filterSet,e,this.search,this.currentUser.id,this.setMetaToLoading,this.searchAfter,this.listType,this.trigger)];if(this.listType===S.j.LIST&&this.trigger!==S.i.AUTO_REFRESH){var n,r,a,i=e.meta.lastId&&e.data.find((function(t){return t.id===e.meta.lastId})),o=i?Object(O.c)(i,this.sort):null!==(n=null===(r=this.searchAfter)||void 0===r?void 0:r.afterTimestamp)&&void 0!==n?n:null;t.push(new T.a(this.search,o,e.meta.lastId,null===(a=e.meta.exact)||void 0===a||a,e.meta.total,e.data.length))}return t}},{key:"onError",value:function onError(e){return[new E(this.filterSet,this.search,e)]}}]),RequestMessagePage}(s.a),A=function(e){Object(i.a)(FulfillMessagePage,e);var t=Object(o.a)(FulfillMessagePage);function FulfillMessagePage(e,n,a,i,o,c,s,d){var b;Object(r.a)(this,FulfillMessagePage),(b=t.call(this)).filter=e,b.result=n,b.search=a,b.currentUserId=i,b.setMetaToLoading=o,b.searchAfter=c,b.listType=s,b.trigger=d,b.messageDetails=void 0,b.topics=b.result.data.filter((function(e){return"topic"===e.type}));var p=new u.c(n.included),m=n.data.filter((function(e){return"message"===e.type}));return b.messageDetails=m.map((function(e){return l.G.mapToDetails(e,p,h.a.of(i))})),b}return FulfillMessagePage}(c.a),E=function(e){Object(i.a)(FailMessagePage,e);var t=Object(o.a)(FailMessagePage);function FailMessagePage(e,n,a){var i;return Object(r.a)(this,FailMessagePage),(i=t.call(this,a)).filter=e,i.search=n,i}return FailMessagePage}(c.b),w=function(e){Object(i.a)(RequestQueryCount,e);var t=Object(o.a)(RequestQueryCount);function RequestQueryCount(e,n,a){var i;return Object(r.a)(this,RequestQueryCount),(i=t.call(this,n,a)).search=e,i.filter=n,i.exact=a,i}return Object(a.a)(RequestQueryCount,[{key:"onSuccess",value:function onSuccess(e){return[new _(this.search,this.filter,e)]}},{key:"onError",value:function onError(e){return[new I(this.search,this.filter,e)]}}]),RequestQueryCount}(y),_=function(e){Object(i.a)(FulfillQueryCount,e);var t=Object(o.a)(FulfillQueryCount);function FulfillQueryCount(e,n,a){var i;return Object(r.a)(this,FulfillQueryCount),(i=t.call(this)).search=e,i.filter=n,i.count=a,i}return FulfillQueryCount}(c.a),I=function(e){Object(i.a)(FailQueryCount,e);var t=Object(o.a)(FailQueryCount);function FailQueryCount(e,n,a){var i;return Object(r.a)(this,FailQueryCount),(i=t.call(this,a)).search=e,i.filter=n,i}return FailQueryCount}(c.b),x=function(e){Object(i.a)(RequestMessageCount,e);var t=Object(o.a)(RequestMessageCount);function RequestMessageCount(e,n,a,i,o,c,s,l,u){var d;return Object(r.a)(this,RequestMessageCount),(d=t.call(this,n,c,a,u,i,o,s,l)).search=e,d.userId=n,d.searchAfter=a,d.sort=i,d.order=o,d.topicsEnabled=c,d.options=s,d.listType=l,d.filterSet=u,d}return Object(a.a)(RequestMessageCount,[{key:"onSuccess",value:function onSuccess(e){var t,n;return this.listType!==S.j.BOOKMARK?[new k(e.meta.messageIds,e.meta.topicIds,e.meta.total,this.search,null===(t=e.meta.exact)||void 0===t||t)]:[new N(e.meta.total,this.search,null===(n=e.meta.exact)||void 0===n||n)]}},{key:"onError",value:function onError(e){return this.listType!==S.j.BOOKMARK?[new R(e,this.search)]:[new F(e,this.search)]}}]),RequestMessageCount}(v),k=function(e){Object(i.a)(FulfillMessageCount,e);var t=Object(o.a)(FulfillMessageCount);function FulfillMessageCount(e,n,a,i,o){var c;Object(r.a)(this,FulfillMessageCount),(c=t.call(this)).messageIds=e,c.topicIds=n,c.total=a,c.search=i,c.exact=o,c.count=void 0;var s=parseInt(a,10);return c.count=isNaN(s)?0:s,c}return FulfillMessageCount}(c.a),N=function(e){Object(i.a)(FulfillBookmarkUnreadCount,e);var t=Object(o.a)(FulfillBookmarkUnreadCount);function FulfillBookmarkUnreadCount(e,n,a){var i;Object(r.a)(this,FulfillBookmarkUnreadCount),(i=t.call(this)).total=e,i.search=n,i.exact=a,i.count=void 0;var o=parseInt(e,10);return i.count=isNaN(o)?0:o,i}return FulfillBookmarkUnreadCount}(c.a),R=function(e){Object(i.a)(FailMessageCount,e);var t=Object(o.a)(FailMessageCount);function FailMessageCount(e,n){var a;return Object(r.a)(this,FailMessageCount),(a=t.call(this)).error=e,a.search=n,a}return FailMessageCount}(c.a),F=function(e){Object(i.a)(FailBookmarkUnreadCount,e);var t=Object(o.a)(FailBookmarkUnreadCount);function FailBookmarkUnreadCount(e,n){var a;return Object(r.a)(this,FailBookmarkUnreadCount),(a=t.call(this)).error=e,a.search=n,a}return FailBookmarkUnreadCount}(c.a),M=function(e){Object(i.a)(SelectListItem,e);var t=Object(o.a)(SelectListItem);function SelectListItem(e){var n;return Object(r.a)(this,SelectListItem),(n=t.call(this)).item=e,n}return SelectListItem}(c.a),D=function(e){Object(i.a)(UnSelectListItem,e);var t=Object(o.a)(UnSelectListItem);function UnSelectListItem(e){var n;return Object(r.a)(this,UnSelectListItem),(n=t.call(this)).item=e,n}return UnSelectListItem}(c.a),L=function(e){Object(i.a)(MultipleSelectItems,e);var t=Object(o.a)(MultipleSelectItems);function MultipleSelectItems(e){var n;return Object(r.a)(this,MultipleSelectItems),(n=t.call(this)).items=e,n}return MultipleSelectItems}(c.a),P=function(e){Object(i.a)(ClearSelectedListItems,e);var t=Object(o.a)(ClearSelectedListItems);function ClearSelectedListItems(){return Object(r.a)(this,ClearSelectedListItems),t.apply(this,arguments)}return ClearSelectedListItems}(c.a),U=function(e){Object(i.a)(SubmitStoreAll,e);var t=Object(o.a)(SubmitStoreAll);function SubmitStoreAll(){return Object(r.a)(this,SubmitStoreAll),t.apply(this,arguments)}return Object(a.a)(SubmitStoreAll,[{key:"onSuccess",value:function onSuccess(){return[new m.b({message:"Your messages are being archived, but may take a while. You can close this window or continue to work during this time. ",level:S.n.info})]}},{key:"onError",value:function onError(){return[new m.b({message:"Archive operation failed. Try again later.",level:S.n.warning})]}}]),SubmitStoreAll}(p),B=function(e){Object(i.a)(FulfillStoreAll,e);var t=Object(o.a)(FulfillStoreAll);function FulfillStoreAll(e){var n;return Object(r.a)(this,FulfillStoreAll),(n=t.call(this)).taskId=e,n}return FulfillStoreAll}(c.a),H=function(e){Object(i.a)(RecordListScrollPosition,e);var t=Object(o.a)(RecordListScrollPosition);function RecordListScrollPosition(e,n,a){var i;return Object(r.a)(this,RecordListScrollPosition),(i=t.call(this)).scrollTop=e,i.id=n,i.absoluteTop=a,i}return RecordListScrollPosition}(c.a),G=function(e){Object(i.a)(RecordLastMessageId,e);var t=Object(o.a)(RecordLastMessageId);function RecordLastMessageId(e){var n;return Object(r.a)(this,RecordLastMessageId),(n=t.call(this)).id=e,n}return RecordLastMessageId}(c.a),W=function(e){Object(i.a)(EmptyLastMessageId,e);var t=Object(o.a)(EmptyLastMessageId);function EmptyLastMessageId(){return Object(r.a)(this,EmptyLastMessageId),t.apply(this,arguments)}return EmptyLastMessageId}(c.a),z=function(e){Object(i.a)(EmptyListScrollPosition,e);var t=Object(o.a)(EmptyListScrollPosition);function EmptyListScrollPosition(){return Object(r.a)(this,EmptyListScrollPosition),t.apply(this,arguments)}return EmptyListScrollPosition}(c.a),V=function(e){Object(i.a)(EmptyList,e);var t=Object(o.a)(EmptyList);function EmptyList(e){var n;return Object(r.a)(this,EmptyList),(n=t.call(this)).search=e,n}return EmptyList}(c.a),J=function(e){Object(i.a)(SubmitFullBucketChange,e);var t=Object(o.a)(SubmitFullBucketChange);function SubmitFullBucketChange(e){var n;return Object(r.a)(this,SubmitFullBucketChange),(n=t.call(this)).showFullBucket=e,n}return SubmitFullBucketChange}(c.a)},function(e,t,n){"use strict";n.d(t,"S",(function(){return z})),n.d(t,"t",(function(){return V})),n.d(t,"B",(function(){return Y})),n.d(t,"C",(function(){return q})),n.d(t,"m",(function(){return K})),n.d(t,"eb",(function(){return X})),n.d(t,"A",(function(){return Q})),n.d(t,"db",(function(){return Z})),n.d(t,"a",(function(){return $})),n.d(t,"W",(function(){return ee})),n.d(t,"x",(function(){return te})),n.d(t,"d",(function(){return ne})),n.d(t,"F",(function(){return re})),n.d(t,"h",(function(){return ae})),n.d(t,"J",(function(){return oe})),n.d(t,"l",(function(){return ce})),n.d(t,"I",(function(){return le})),n.d(t,"r",(function(){return ue})),n.d(t,"bb",(function(){return fe})),n.d(t,"z",(function(){return be})),n.d(t,"Q",(function(){return me})),n.d(t,"s",(function(){return he})),n.d(t,"X",(function(){return je})),n.d(t,"e",(function(){return Oe})),n.d(t,"ab",(function(){return Te})),n.d(t,"f",(function(){return Se})),n.d(t,"O",(function(){return Ce})),n.d(t,"b",(function(){return Ee})),n.d(t,"P",(function(){return we})),n.d(t,"c",(function(){return Ie})),n.d(t,"D",(function(){return xe})),n.d(t,"R",(function(){return ke})),n.d(t,"T",(function(){return Fe})),n.d(t,"g",(function(){return Me})),n.d(t,"E",(function(){return Le})),n.d(t,"w",(function(){return Ue})),n.d(t,"cb",(function(){return He})),n.d(t,"G",(function(){return Ge})),n.d(t,"j",(function(){return We})),n.d(t,"H",(function(){return Ve})),n.d(t,"k",(function(){return Je})),n.d(t,"K",(function(){return qe})),n.d(t,"n",(function(){return Ke})),n.d(t,"L",(function(){return Qe})),n.d(t,"o",(function(){return Ze})),n.d(t,"U",(function(){return et})),n.d(t,"u",(function(){return tt})),n.d(t,"V",(function(){return rt})),n.d(t,"v",(function(){return at})),n.d(t,"M",(function(){return ot})),n.d(t,"p",(function(){return ct})),n.d(t,"N",(function(){return lt})),n.d(t,"q",(function(){return ut})),n.d(t,"Y",(function(){return ft})),n.d(t,"i",(function(){return bt})),n.d(t,"Z",(function(){return mt})),n.d(t,"y",(function(){return ht}));var r=n(4),a=n(23),i=n(3),o=n(10),c=n(5),s=n(6),l=n(20),u=n(16),d=function(e){Object(c.a)(TopicCreateApiAction,e);var t=Object(s.a)(TopicCreateApiAction);function TopicCreateApiAction(e,n){var r;return Object(i.a)(this,TopicCreateApiAction),(r=t.call(this)).subject=e,r.body=n,r}return Object(o.a)(TopicCreateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:{attributes:{subject:this.subject,body:this.body,contentType:"text",contentTypeVersion:"one"},type:"topic"},meta:{}}),path:"".concat(e.platformUrl,"/topic/new?include=body"),method:u.c.POST}}}]),TopicCreateApiAction}(l.a),b=n(14),p=function(e){Object(c.a)(TopicSaveApiAction,e);var t=Object(s.a)(TopicSaveApiAction);function TopicSaveApiAction(e,n,r,a){var o;return Object(i.a)(this,TopicSaveApiAction),(o=t.call(this)).topicId=e,o.subject=n,o.body=r,o.version=a,o}return Object(o.a)(TopicSaveApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:{attributes:{subject:this.subject,body:this.body.toString(),version:this.version,contentType:"text",contentTypeVersion:"one"},type:"string"},meta:{}}),path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/edit"),method:u.c.POST}}}]),TopicSaveApiAction}(l.a),m=function(e){Object(c.a)(TopicRequestApiAction,e);var t=Object(s.a)(TopicRequestApiAction);function TopicRequestApiAction(e){var n;return Object(i.a)(this,TopicRequestApiAction),(n=t.call(this)).topicId=e,n}return Object(o.a)(TopicRequestApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"?include=topic_body,topic_comment,topic_attachment,topic_category_tag,topic_job_reference"),method:u.c.GET}}}]),TopicRequestApiAction}(l.a),h=function(e){Object(c.a)(TopicCommentCreateApiAction,e);var t=Object(s.a)(TopicCommentCreateApiAction);function TopicCommentCreateApiAction(e,n){var r;return Object(i.a)(this,TopicCommentCreateApiAction),(r=t.call(this)).topicId=e,r.body=n,r}return Object(o.a)(TopicCommentCreateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:{attributes:{body:this.body},type:"topic_comment"}}),path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships/comment/new"),method:u.c.POST}}}]),TopicCommentCreateApiAction}(l.a),g=function(e){Object(c.a)(TopicWitnessApiAction,e);var t=Object(s.a)(TopicWitnessApiAction);function TopicWitnessApiAction(e,n){var r;return Object(i.a)(this,TopicWitnessApiAction),(r=t.call(this)).topicId=e,r.version=n,r}return Object(o.a)(TopicWitnessApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/witness/").concat(this.version),method:u.c.POST}}}]),TopicWitnessApiAction}(l.a),j=function(e){Object(c.a)(TopicCommentWitnessApiAction,e);var t=Object(s.a)(TopicCommentWitnessApiAction);function TopicCommentWitnessApiAction(e,n){var r;return Object(i.a)(this,TopicCommentWitnessApiAction),(r=t.call(this)).topicId=e,r.commentId=n,r}return Object(o.a)(TopicCommentWitnessApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships/comment/").concat(this.commentId,"/witness"),method:u.c.POST}}}]),TopicCommentWitnessApiAction}(l.a),v=function(e){Object(c.a)(TopicFollowersAddApiAction,e);var t=Object(s.a)(TopicFollowersAddApiAction);function TopicFollowersAddApiAction(e,n){var r;return Object(i.a)(this,TopicFollowersAddApiAction),(r=t.call(this)).topicId=e,r.followerIds=n,r}return Object(o.a)(TopicFollowersAddApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:this.followerIds.map((function(e){return{id:e,type:"user"}}))}),path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships/follower/"),method:u.c.POST}}}]),TopicFollowersAddApiAction}(l.a),O=function(e){Object(c.a)(TopicFollowerRemoveApiAction,e);var t=Object(s.a)(TopicFollowerRemoveApiAction);function TopicFollowerRemoveApiAction(e,n){var r;return Object(i.a)(this,TopicFollowerRemoveApiAction),(r=t.call(this)).topicId=e,r.followerId=n,r}return Object(o.a)(TopicFollowerRemoveApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:{id:this.followerId,type:"user"}}),path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships/follower/remove"),method:u.c.POST}}}]),TopicFollowerRemoveApiAction}(l.a),T=n(125),y=n(17),S=function(e){Object(c.a)(TopicStoreApiAction,e);var t=Object(s.a)(TopicStoreApiAction);function TopicStoreApiAction(e){var n;return Object(i.a)(this,TopicStoreApiAction),(n=t.call(this)).topicId=e,n}return Object(o.a)(TopicStoreApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/store"),method:u.c.POST}}}]),TopicStoreApiAction}(l.a),C=function(e){Object(c.a)(TopicUnstoreApiAction,e);var t=Object(s.a)(TopicUnstoreApiAction);function TopicUnstoreApiAction(e){var n;return Object(i.a)(this,TopicUnstoreApiAction),(n=t.call(this)).topicId=e,n}return Object(o.a)(TopicUnstoreApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/unstore"),method:u.c.POST}}}]),TopicUnstoreApiAction}(l.a),A=n(62),E=function(e){Object(c.a)(TopicConvertToDraftApiAction,e);var t=Object(s.a)(TopicConvertToDraftApiAction);function TopicConvertToDraftApiAction(e,n,r,a){var o;return Object(i.a)(this,TopicConvertToDraftApiAction),(o=t.call(this)).topicId=e,o.topicAsHTML=n,o.teamId=r,o.fromName=a,o}return Object(o.a)(TopicConvertToDraftApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:{attributes:{body:this.topicAsHTML.toString()},type:"string"}}),path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/convert-to-draft?team_id=").concat(this.teamId,"&from_name=").concat(this.fromName),method:u.c.POST}}}]),TopicConvertToDraftApiAction}(l.a),w=function(e){Object(c.a)(TopicMakeVisibleApiAction,e);var t=Object(s.a)(TopicMakeVisibleApiAction);function TopicMakeVisibleApiAction(e){var n;return Object(i.a)(this,TopicMakeVisibleApiAction),(n=t.call(this)).topicId=e,n}return Object(o.a)(TopicMakeVisibleApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/make-visible"),method:u.c.POST}}}]),TopicMakeVisibleApiAction}(l.a),_=function(e){Object(c.a)(TopicDeleteApiAction,e);var t=Object(s.a)(TopicDeleteApiAction);function TopicDeleteApiAction(e){var n;return Object(i.a)(this,TopicDeleteApiAction),(n=t.call(this)).topicId=e,n}return Object(o.a)(TopicDeleteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId),method:u.c.DELETE}}}]),TopicDeleteApiAction}(l.a),I=function(e){Object(c.a)(CategorizeTopicApiAction,e);var t=Object(s.a)(CategorizeTopicApiAction);function CategorizeTopicApiAction(e,n){var r;return Object(i.a)(this,CategorizeTopicApiAction),(r=t.call(this)).topicId=e,r.categoryTagId=n,r}return Object(o.a)(CategorizeTopicApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships/category-tag/").concat(this.categoryTagId),method:u.c.POST}}}]),CategorizeTopicApiAction}(l.a),x=function(e){Object(c.a)(DecategorizeTopicApiAction,e);var t=Object(s.a)(DecategorizeTopicApiAction);function DecategorizeTopicApiAction(e,n){var r;return Object(i.a)(this,DecategorizeTopicApiAction),(r=t.call(this)).topicId=e,r.categoryTagId=n,r}return Object(o.a)(DecategorizeTopicApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships/category-tag/").concat(this.categoryTagId),method:u.c.DELETE}}}]),DecategorizeTopicApiAction}(l.a),k=function(e){Object(c.a)(TopicJobReferenceAddApiAction,e);var t=Object(s.a)(TopicJobReferenceAddApiAction);function TopicJobReferenceAddApiAction(e,n){var r;return Object(i.a)(this,TopicJobReferenceAddApiAction),(r=t.call(this)).topicId=e,r.jobReferenceId=n,r}return Object(o.a)(TopicJobReferenceAddApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships/job-reference/").concat(this.jobReferenceId),method:u.c.POST}}}]),TopicJobReferenceAddApiAction}(l.a),N=function(e){Object(c.a)(TopicJobReferenceRemoveApiAction,e);var t=Object(s.a)(TopicJobReferenceRemoveApiAction);function TopicJobReferenceRemoveApiAction(e,n){var r;return Object(i.a)(this,TopicJobReferenceRemoveApiAction),(r=t.call(this)).topicId=e,r.jobReferenceId=n,r}return Object(o.a)(TopicJobReferenceRemoveApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships/job-reference/").concat(this.jobReferenceId),method:u.c.DELETE}}}]),TopicJobReferenceRemoveApiAction}(l.a),R=n(43),F=function(e){Object(c.a)(TopicBatchStoreApiAction,e);var t=Object(s.a)(TopicBatchStoreApiAction);function TopicBatchStoreApiAction(e){var n;return Object(i.a)(this,TopicBatchStoreApiAction),(n=t.call(this)).topicIds=e,n}return Object(o.a)(TopicBatchStoreApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/store"),body:JSON.stringify({data:this.topicIds}),method:u.c.POST,headers:{"Content-Type":"application/json"}}}}]),TopicBatchStoreApiAction}(l.a),M=function(e){Object(c.a)(TopicBatchUnstoreApiAction,e);var t=Object(s.a)(TopicBatchUnstoreApiAction);function TopicBatchUnstoreApiAction(e){var n;return Object(i.a)(this,TopicBatchUnstoreApiAction),(n=t.call(this)).topicIds=e,n}return Object(o.a)(TopicBatchUnstoreApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/unstore"),body:JSON.stringify({data:this.topicIds}),method:u.c.POST,headers:{"Content-Type":"application/json"}}}}]),TopicBatchUnstoreApiAction}(l.a),D=function(e){Object(c.a)(TopicBatchCategorizeApiAction,e);var t=Object(s.a)(TopicBatchCategorizeApiAction);function TopicBatchCategorizeApiAction(e,n){var r;return Object(i.a)(this,TopicBatchCategorizeApiAction),(r=t.call(this)).topicIds=e,r.categoryTagId=n,r}return Object(o.a)(TopicBatchCategorizeApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/batch-relationships/category-tag"),body:JSON.stringify({topicIds:this.topicIds,categoryId:this.categoryTagId}),method:u.c.POST,headers:{"Content-Type":"application/json"}}}}]),TopicBatchCategorizeApiAction}(l.a),L=function(e){Object(c.a)(TopicBatchDecategorizeApiAction,e);var t=Object(s.a)(TopicBatchDecategorizeApiAction);function TopicBatchDecategorizeApiAction(e,n){var r;return Object(i.a)(this,TopicBatchDecategorizeApiAction),(r=t.call(this)).topicIds=e,r.categoryTagId=n,r}return Object(o.a)(TopicBatchDecategorizeApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/batch-relationships/category-tag"),body:JSON.stringify({topicIds:this.topicIds,categoryId:this.categoryTagId}),method:u.c.DELETE,headers:{"Content-Type":"application/json"}}}}]),TopicBatchDecategorizeApiAction}(l.a),P=function(e){Object(c.a)(TopicBatchJobReferenceAddApiAction,e);var t=Object(s.a)(TopicBatchJobReferenceAddApiAction);function TopicBatchJobReferenceAddApiAction(e,n){var r;return Object(i.a)(this,TopicBatchJobReferenceAddApiAction),(r=t.call(this)).topicIds=e,r.jobReferenceId=n,r}return Object(o.a)(TopicBatchJobReferenceAddApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/batch-relationships/job-reference"),body:JSON.stringify({topicIds:this.topicIds,jobReferenceId:this.jobReferenceId,jobReferenceLabel:null}),method:u.c.POST,headers:{"Content-Type":"application/json"}}}}]),TopicBatchJobReferenceAddApiAction}(l.a),U=function(e){Object(c.a)(TopicBatchJobReferenceRemoveApiAction,e);var t=Object(s.a)(TopicBatchJobReferenceRemoveApiAction);function TopicBatchJobReferenceRemoveApiAction(e,n){var r;return Object(i.a)(this,TopicBatchJobReferenceRemoveApiAction),(r=t.call(this)).topicIds=e,r.jobReferenceId=n,r}return Object(o.a)(TopicBatchJobReferenceRemoveApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/batch-relationships/job-reference"),body:JSON.stringify({topicIds:this.topicIds,jobReferenceId:this.jobReferenceId}),method:u.c.DELETE,headers:{"Content-Type":"application/json"}}}}]),TopicBatchJobReferenceRemoveApiAction}(l.a),B=function(e){Object(c.a)(TopicTeamAddApiAction,e);var t=Object(s.a)(TopicTeamAddApiAction);function TopicTeamAddApiAction(e,n){var r;return Object(i.a)(this,TopicTeamAddApiAction),(r=t.call(this)).topicId=e,r.teamIds=n,r}return Object(o.a)(TopicTeamAddApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:this.teamIds.map((function(e){return{id:e,type:"team"}}))}),path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships/team/"),method:u.c.POST}}}]),TopicTeamAddApiAction}(l.a),H=function(e){Object(c.a)(TopicTeamRemoveApiAction,e);var t=Object(s.a)(TopicTeamRemoveApiAction);function TopicTeamRemoveApiAction(e,n){var r;return Object(i.a)(this,TopicTeamRemoveApiAction),(r=t.call(this)).topicId=e,r.teamIds=n,r}return Object(o.a)(TopicTeamRemoveApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:this.teamIds.map((function(e){return{id:e,type:"team"}}))}),path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships/team/"),method:u.c.DELETE}}}]),TopicTeamRemoveApiAction}(l.a),G=n(29),W=n(8),z=function(e){Object(c.a)(SubmitTopicCreate,e);var t=Object(s.a)(SubmitTopicCreate);function SubmitTopicCreate(e,n){var r;return Object(i.a)(this,SubmitTopicCreate),(r=t.call(this,e,n)).subject=e,r.body=n,r}return Object(o.a)(SubmitTopicCreate,[{key:"onSuccess",value:function onSuccess(e){return[new V(e),Object(T.f)({pathname:y.a.COMPOSE_TOPIC(e.data.id)})]}},{key:"onError",value:function onError(e){return[new J(e)]}}]),SubmitTopicCreate}(d),V=function(e){Object(c.a)(FulfillTopicCreate,e);var t=Object(s.a)(FulfillTopicCreate);function FulfillTopicCreate(e){var n;return Object(i.a)(this,FulfillTopicCreate),(n=t.call(this)).response=e,n}return FulfillTopicCreate}(b.a),J=function(e){Object(c.a)(FailTopicCreate,e);var t=Object(s.a)(FailTopicCreate);function FailTopicCreate(e){var n;return Object(i.a)(this,FailTopicCreate),(n=t.call(this,e)).error=e,n}return FailTopicCreate}(b.b),Y=function(e){Object(c.a)(RequestTopic,e);var t=Object(s.a)(RequestTopic);function RequestTopic(e){var n;return Object(i.a)(this,RequestTopic),(n=t.call(this,e)).topicId=e,n}return Object(o.a)(RequestTopic,[{key:"onSuccess",value:function onSuccess(e){return[new K(e)]}},{key:"onError",value:function onError(e){return[new $(this.topicId,e)]}}]),RequestTopic}(m),q=function(e){Object(c.a)(RequestTopicAndAssessRelevance,e);var t=Object(s.a)(RequestTopicAndAssessRelevance);function RequestTopicAndAssessRelevance(e,n,r){var a;return Object(i.a)(this,RequestTopicAndAssessRelevance),(a=t.call(this,e)).topicId=e,a.searches=n,a.topicConfig=r,a}return Object(o.a)(RequestTopicAndAssessRelevance,[{key:"onSuccess",value:function onSuccess(e){var t=this,n=this.searches.map((function(n){var r=n.filterSet.appliesToTopic(e.data,t.topicConfig);return new A.k(e.data.id,r,n.search)}));return[new K(e)].concat(Object(a.a)(n))}},{key:"onError",value:function onError(e){return[new $(this.topicId,e)]}}]),RequestTopicAndAssessRelevance}(m),K=function(e){Object(c.a)(FulfillTopic,e);var t=Object(s.a)(FulfillTopic);function FulfillTopic(e){var n;return Object(i.a)(this,FulfillTopic),(n=t.call(this)).response=e,n}return FulfillTopic}(b.a),X=function(e){Object(c.a)(UnloadTopicBody,e);var t=Object(s.a)(UnloadTopicBody);function UnloadTopicBody(e){var n;return Object(i.a)(this,UnloadTopicBody),(n=t.call(this)).topicId=e,n}return UnloadTopicBody}(b.a),Q=function(e){Object(c.a)(LoadTopic,e);var t=Object(s.a)(LoadTopic);function LoadTopic(){return Object(i.a)(this,LoadTopic),t.apply(this,arguments)}return LoadTopic}(K),Z=function(e){Object(c.a)(UnloadTopic,e);var t=Object(s.a)(UnloadTopic);function UnloadTopic(e){var n;return Object(i.a)(this,UnloadTopic),(n=t.call(this)).topicId=e,n}return UnloadTopic}(b.a),$=function(e){Object(c.a)(FailTopic,e);var t=Object(s.a)(FailTopic);function FailTopic(e,n){var r;return Object(i.a)(this,FailTopic),(r=t.call(this,n)).topicId=e,r}return FailTopic}(b.b),ee=function(e){Object(c.a)(SubmitTopicSave,e);var t=Object(s.a)(SubmitTopicSave);function SubmitTopicSave(e,n,r,a,o){var c;return Object(i.a)(this,SubmitTopicSave),(c=t.call(this,e,n,r,a)).topicId=e,c.topicSubject=n,c.topicBody=r,c.version=a,c.location=o,c}return Object(o.a)(SubmitTopicSave,[{key:"onSuccess",value:function onSuccess(e){return[new te(this.topicId,this.topicSubject,this.topicBody.toString(),e)]}},{key:"onError",value:function onError(e){return[new ne(e)]}}]),SubmitTopicSave}(p),te=function(e){Object(c.a)(FulfillTopicSave,e);var t=Object(s.a)(FulfillTopicSave);function FulfillTopicSave(e,n,r,a){var o;return Object(i.a)(this,FulfillTopicSave),(o=t.call(this)).topicId=e,o.topicSubject=n,o.topicBody=r,o.response=a,o}return FulfillTopicSave}(b.a),ne=function(e){Object(c.a)(FailTopicSave,e);var t=Object(s.a)(FailTopicSave);function FailTopicSave(e){var n;return Object(i.a)(this,FailTopicSave),(n=t.call(this,e)).error=e,n}return FailTopicSave}(b.b),re=function(e){Object(c.a)(SubmitAddTopicFollowers,e);var t=Object(s.a)(SubmitAddTopicFollowers);function SubmitAddTopicFollowers(e,n,r){var a;return Object(i.a)(this,SubmitAddTopicFollowers),(a=t.call(this,e,n)).topicId=e,a.followerIds=n,a.search=r,a.eventSpec=Object(G.k)("Share to User",a.topicId),a}return Object(o.a)(SubmitAddTopicFollowers,[{key:"onSuccess",value:function onSuccess(e){return[new ae(this.topicId,e)]}},{key:"onError",value:function onError(e){return[new ie(e)]}}]),SubmitAddTopicFollowers}(v),ae=function(e){Object(c.a)(FulfillAddTopicFollowers,e);var t=Object(s.a)(FulfillAddTopicFollowers);function FulfillAddTopicFollowers(e,n){var r;return Object(i.a)(this,FulfillAddTopicFollowers),(r=t.call(this)).topicId=e,r.response=n,r}return FulfillAddTopicFollowers}(b.a),ie=function(e){Object(c.a)(FailAddTopicFollower,e);var t=Object(s.a)(FailAddTopicFollower);function FailAddTopicFollower(){return Object(i.a)(this,FailAddTopicFollower),t.apply(this,arguments)}return FailAddTopicFollower}(b.b),oe=function(e){Object(c.a)(SubmitRemoveTopicFollower,e);var t=Object(s.a)(SubmitRemoveTopicFollower);function SubmitRemoveTopicFollower(){return Object(i.a)(this,SubmitRemoveTopicFollower),t.apply(this,arguments)}return Object(o.a)(SubmitRemoveTopicFollower,[{key:"onSuccess",value:function onSuccess(e){return[new ce(this.topicId,this.followerId,e)]}},{key:"onError",value:function onError(e){return[new se(e)]}}]),SubmitRemoveTopicFollower}(O),ce=function(e){Object(c.a)(FulfillRemoveTopicFollower,e);var t=Object(s.a)(FulfillRemoveTopicFollower);function FulfillRemoveTopicFollower(e,n,r){var a;return Object(i.a)(this,FulfillRemoveTopicFollower),(a=t.call(this)).topicId=e,a.followerId=n,a.response=r,a}return FulfillRemoveTopicFollower}(b.a),se=function(e){Object(c.a)(FailRemoveTopicFollower,e);var t=Object(s.a)(FailRemoveTopicFollower);function FailRemoveTopicFollower(){return Object(i.a)(this,FailRemoveTopicFollower),t.apply(this,arguments)}return FailRemoveTopicFollower}(b.b),le=function(e){Object(c.a)(SubmitNewTopicComment,e);var t=Object(s.a)(SubmitNewTopicComment);function SubmitNewTopicComment(e,n,r){var a;return Object(i.a)(this,SubmitNewTopicComment),(a=t.call(this,e,n)).currentUserId=r,a}return Object(o.a)(SubmitNewTopicComment,[{key:"onSuccess",value:function onSuccess(e){return[this.currentUserId===e.data.relationships.author.data.id?ue.byCurrentUser(this.topicId,e):ue.new(this.topicId,e)]}},{key:"onError",value:function onError(e){return[new de(e)]}}]),SubmitNewTopicComment}(h),ue=function(e){Object(c.a)(FulfillTopicComment,e);var t=Object(s.a)(FulfillTopicComment);function FulfillTopicComment(e,n,r){var a;return Object(i.a)(this,FulfillTopicComment),(a=t.call(this)).topicId=e,a.response=n,a.isByCurrentUser=r,a}return Object(o.a)(FulfillTopicComment,null,[{key:"new",value:function _new(e,t){return new FulfillTopicComment(e,t,!1)}},{key:"byCurrentUser",value:function byCurrentUser(e,t){return new FulfillTopicComment(e,t,!0)}}]),FulfillTopicComment}(b.a),de=function(e){Object(c.a)(FailNewTopicComment,e);var t=Object(s.a)(FailNewTopicComment);function FailNewTopicComment(){return Object(i.a)(this,FailNewTopicComment),t.apply(this,arguments)}return FailNewTopicComment}(b.b),fe=function(e){Object(c.a)(SubmitTopicWitness,e);var t=Object(s.a)(SubmitTopicWitness);function SubmitTopicWitness(e,n,r){var a;return Object(i.a)(this,SubmitTopicWitness),(a=t.call(this,n,r)).userId=e,a}return Object(o.a)(SubmitTopicWitness,[{key:"onSuccess",value:function onSuccess(e){return[new be(this.userId,this.topicId,e)]}},{key:"onError",value:function onError(e){return[new pe(e)]}}]),SubmitTopicWitness}(g),be=function(e){Object(c.a)(FulfillTopicWitness,e);var t=Object(s.a)(FulfillTopicWitness);function FulfillTopicWitness(e,n,r){var a;return Object(i.a)(this,FulfillTopicWitness),(a=t.call(this)).userId=e,a.topicId=n,a.orderingId=r,a}return FulfillTopicWitness}(b.a),pe=function(e){Object(c.a)(FailTopicWitness,e);var t=Object(s.a)(FailTopicWitness);function FailTopicWitness(){return Object(i.a)(this,FailTopicWitness),t.apply(this,arguments)}return FailTopicWitness}(b.b),me=function(e){Object(c.a)(SubmitTopicCommentWitness,e);var t=Object(s.a)(SubmitTopicCommentWitness);function SubmitTopicCommentWitness(e,n,r){var a;return Object(i.a)(this,SubmitTopicCommentWitness),(a=t.call(this,n,r)).userId=e,a}return Object(o.a)(SubmitTopicCommentWitness,[{key:"onSuccess",value:function onSuccess(e){return[new he(this.userId,this.topicId,e)]}},{key:"onError",value:function onError(e){return[new ge(e)]}}]),SubmitTopicCommentWitness}(j),he=function(e){Object(c.a)(FulfillTopicCommentWitness,e);var t=Object(s.a)(FulfillTopicCommentWitness);function FulfillTopicCommentWitness(e,n,r){var a;return Object(i.a)(this,FulfillTopicCommentWitness),(a=t.call(this)).userId=e,a.topicId=n,a.orderingId=r,a}return FulfillTopicCommentWitness}(b.a),ge=function(e){Object(c.a)(FailTopicCommentWitness,e);var t=Object(s.a)(FailTopicCommentWitness);function FailTopicCommentWitness(){return Object(i.a)(this,FailTopicCommentWitness),t.apply(this,arguments)}return FailTopicCommentWitness}(b.b),je=function(e){Object(c.a)(SubmitTopicStore,e);var t=Object(s.a)(SubmitTopicStore);function SubmitTopicStore(e,n,r){var a;return Object(i.a)(this,SubmitTopicStore),(a=t.call(this,e)).userId=n,a.search=r,a}return Object(o.a)(SubmitTopicStore,[{key:"onSuccess",value:function onSuccess(e){return[new ve(this.topicId,e)]}},{key:"onError",value:function onError(e){return[new Oe(this.topicId,this.userId,this.search,e)]}}]),SubmitTopicStore}(S),ve=function(e){Object(c.a)(FulfillTopicStore,e);var t=Object(s.a)(FulfillTopicStore);function FulfillTopicStore(e,n){var r;return Object(i.a)(this,FulfillTopicStore),(r=t.call(this)).topicId=e,r.storedRelationships=n,r}return FulfillTopicStore}(b.a),Oe=function(e){Object(c.a)(FailTopicStore,e);var t=Object(s.a)(FailTopicStore);function FailTopicStore(e,n,r,a){var o;return Object(i.a)(this,FailTopicStore),(o=t.call(this,a)).topicId=e,o.userId=n,o.search=r,o}return FailTopicStore}(b.b),Te=function(e){Object(c.a)(SubmitTopicUnstore,e);var t=Object(s.a)(SubmitTopicUnstore);function SubmitTopicUnstore(e,n,r){var a;return Object(i.a)(this,SubmitTopicUnstore),(a=t.call(this,e)).userId=n,a.search=r,a}return Object(o.a)(SubmitTopicUnstore,[{key:"onSuccess",value:function onSuccess(e){return[new ye(this.topicId)]}},{key:"onError",value:function onError(e){return[new Se(this.topicId,this.userId,this.search,e)]}}]),SubmitTopicUnstore}(C),ye=function(e){Object(c.a)(FulfillTopicUnstore,e);var t=Object(s.a)(FulfillTopicUnstore);function FulfillTopicUnstore(e){var n;return Object(i.a)(this,FulfillTopicUnstore),(n=t.call(this)).topicId=e,n}return FulfillTopicUnstore}(b.a),Se=function(e){Object(c.a)(FailTopicUnstore,e);var t=Object(s.a)(FailTopicUnstore);function FailTopicUnstore(e,n,r,a){var o;return Object(i.a)(this,FailTopicUnstore),(o=t.call(this,a)).topicId=e,o.userId=n,o.search=r,o}return FailTopicUnstore}(b.b),Ce=function(e){Object(c.a)(SubmitTopicBatchStore,e);var t=Object(s.a)(SubmitTopicBatchStore);function SubmitTopicBatchStore(e,n,r){var a;return Object(i.a)(this,SubmitTopicBatchStore),(a=t.call(this,e)).topicIds=e,a.userId=n,a.search=r,a.notify=!1,a.undo=!1,a.replace=!1,a.undoAction=function(){},a}return Object(o.a)(SubmitTopicBatchStore,null,[{key:"withNotification",value:function withNotification(e,t,n){var r=new SubmitTopicBatchStore(e,t,n);return r.notify=!0,r}}]),Object(o.a)(SubmitTopicBatchStore,[{key:"onSuccess",value:function onSuccess(e){var t=[new Ae(this.topicIds,e)];return this.notify&&t.push(this.notification(this.undo,this.undoAction,this.replace)),t}},{key:"onError",value:function onError(e){return[new Ee(this.topicIds,this.userId,this.search,e)]}},{key:"notification",value:function notification(e,t,n){var r="Archived 1 note",a="Archived ".concat(this.topicIds.length," notes");return e&&t?new R.b({message:1===this.topicIds.length?r:a,level:W.n.info,button:{label:"Undo",onClick:t},replace:n}):new R.b({message:1===this.topicIds.length?r:a,level:W.n.info})}}]),SubmitTopicBatchStore}(F),Ae=function(e){Object(c.a)(FulfillTopicBatchStore,e);var t=Object(s.a)(FulfillTopicBatchStore);function FulfillTopicBatchStore(e,n){var r;return Object(i.a)(this,FulfillTopicBatchStore),(r=t.call(this)).topicIds=e,r.storedRelationships=n,r}return FulfillTopicBatchStore}(b.a),Ee=function(e){Object(c.a)(FailTopicBatchStore,e);var t=Object(s.a)(FailTopicBatchStore);function FailTopicBatchStore(e,n,r,a){var o;return Object(i.a)(this,FailTopicBatchStore),(o=t.call(this,a)).topicIds=e,o.userId=n,o.search=r,o}return FailTopicBatchStore}(b.b),we=function(e){Object(c.a)(SubmitTopicBatchUnstore,e);var t=Object(s.a)(SubmitTopicBatchUnstore);function SubmitTopicBatchUnstore(e,n,r){var a;return Object(i.a)(this,SubmitTopicBatchUnstore),(a=t.call(this,e)).topicIds=e,a.userId=n,a.search=r,a.notify=!1,a.undo=!1,a.replace=!1,a.undoAction=function(){},a}return Object(o.a)(SubmitTopicBatchUnstore,null,[{key:"withNotification",value:function withNotification(e,t,n){var r=new SubmitTopicBatchUnstore(e,t,n);return r.notify=!0,r}}]),Object(o.a)(SubmitTopicBatchUnstore,[{key:"onSuccess",value:function onSuccess(e){var t=[new _e(this.topicIds)];return this.notify&&t.push(this.notification(this.undo,this.undoAction,this.replace)),t}},{key:"onError",value:function onError(e){return[new Ie(this.topicIds,this.userId,this.search,e)]}},{key:"notification",value:function notification(e,t,n){var r="Unarchived 1 note",a="Unarchived ".concat(this.topicIds.length," notes");return e&&t?new R.b({message:1===this.topicIds.length?r:a,level:W.n.info,button:{label:"Undo",onClick:t},replace:n}):new R.b({message:1===this.topicIds.length?r:a,level:W.n.info})}}]),SubmitTopicBatchUnstore}(M),_e=function(e){Object(c.a)(FulfillTopicBatchUnstore,e);var t=Object(s.a)(FulfillTopicBatchUnstore);function FulfillTopicBatchUnstore(e){var n;return Object(i.a)(this,FulfillTopicBatchUnstore),(n=t.call(this)).topicIds=e,n}return FulfillTopicBatchUnstore}(b.a),Ie=function(e){Object(c.a)(FailTopicBatchUnstore,e);var t=Object(s.a)(FailTopicBatchUnstore);function FailTopicBatchUnstore(e,n,r,a){var o;return Object(i.a)(this,FailTopicBatchUnstore),(o=t.call(this,a)).topicIds=e,o.userId=n,o.search=r,o}return FailTopicBatchUnstore}(b.b),xe=function(e){Object(c.a)(SaveAndConvertToDraft,e);var t=Object(s.a)(SaveAndConvertToDraft);function SaveAndConvertToDraft(e,n,r,a,o,c,s,l){var u;return Object(i.a)(this,SaveAndConvertToDraft),(u=t.call(this,e,n,r,o,c)).topicId=e,u.topicSubject=n,u.topicBody=r,u.topicAsHtml=a,u.version=o,u.location=c,u.teamId=s,u.fromName=l,u}return Object(o.a)(SaveAndConvertToDraft,[{key:"onSuccess",value:function onSuccess(e){return[new te(this.topicId,this.topicSubject,this.topicBody.toString(),e),new ke(this.topicId,this.topicAsHtml,this.teamId,this.fromName,this.location)]}}]),SaveAndConvertToDraft}(ee),ke=function(e){Object(c.a)(SubmitTopicConvertToDraft,e);var t=Object(s.a)(SubmitTopicConvertToDraft);function SubmitTopicConvertToDraft(e,n,r,a,o){var c;return Object(i.a)(this,SubmitTopicConvertToDraft),(c=t.call(this,e,n,r,a)).topicId=e,c.topicAsHTML=n,c.teamId=r,c.fromName=a,c.location=o,c}return Object(o.a)(SubmitTopicConvertToDraft,[{key:"onSuccess",value:function onSuccess(e){return[new Ne(this.topicId,e.id),Object(T.e)(Object(r.a)(Object(r.a)({},this.location),{},{pathname:y.a.COMPOSE_MESSAGE(e.id)}))]}},{key:"onError",value:function onError(e){return[new Re(this.topicId,e)]}}]),SubmitTopicConvertToDraft}(E),Ne=function(e){Object(c.a)(FulfillTopicConvertToDraft,e);var t=Object(s.a)(FulfillTopicConvertToDraft);function FulfillTopicConvertToDraft(e,n){var r;return Object(i.a)(this,FulfillTopicConvertToDraft),(r=t.call(this)).topicId=e,r.messageId=n,r}return FulfillTopicConvertToDraft}(b.a),Re=function(e){Object(c.a)(FailTopicConvertToDraft,e);var t=Object(s.a)(FailTopicConvertToDraft);function FailTopicConvertToDraft(e,n){var r;return Object(i.a)(this,FailTopicConvertToDraft),(r=t.call(this)).topicId=e,r.error=n,r}return FailTopicConvertToDraft}(b.a),Fe=function(e){Object(c.a)(SubmitTopicDelete,e);var t=Object(s.a)(SubmitTopicDelete);function SubmitTopicDelete(e,n){var r;return Object(i.a)(this,SubmitTopicDelete),(r=t.call(this,e)).topicId=e,r.location=n,r.eventSpec={eventCategory:"Notes",eventAction:"Delete Draft"},r}return Object(o.a)(SubmitTopicDelete,[{key:"onSuccess",value:function onSuccess(){return[new Me(this.topicId),Object(T.e)(this.location)]}},{key:"onError",value:function onError(e){return[new De(this.topicId,e)]}}]),SubmitTopicDelete}(_),Me=function(e){Object(c.a)(FulfilTopicDelete,e);var t=Object(s.a)(FulfilTopicDelete);function FulfilTopicDelete(e){var n;return Object(i.a)(this,FulfilTopicDelete),(n=t.call(this)).topicId=e,n}return FulfilTopicDelete}(b.a),De=function(e){Object(c.a)(FailTopicDelete,e);var t=Object(s.a)(FailTopicDelete);function FailTopicDelete(e,n){var r;return Object(i.a)(this,FailTopicDelete),(r=t.call(this)).topicId=e,r.err=n,r}return FailTopicDelete}(b.a),Le=function(e){Object(c.a)(SaveAndMakeVisible,e);var t=Object(s.a)(SaveAndMakeVisible);function SaveAndMakeVisible(e,n,r,a,o,c){var s;return Object(i.a)(this,SaveAndMakeVisible),(s=t.call(this,e,n,r,a,o)).topicId=e,s.topicSubject=n,s.topicBody=r,s.version=a,s.location=o,s.teamId=c,s.eventSpec={eventCategory:"Topic Compose",eventAction:"Make Visible",eventLabel:s.topicId},s}return Object(o.a)(SaveAndMakeVisible,[{key:"onSuccess",value:function onSuccess(e){return[new te(this.topicId,this.topicSubject,this.topicBody.toString(),e),new Pe(this.topicId,this.teamId,this.location)]}}]),SaveAndMakeVisible}(ee),Pe=function(e){Object(c.a)(SubmitTopicMakeVisible,e);var t=Object(s.a)(SubmitTopicMakeVisible);function SubmitTopicMakeVisible(e,n,r){var a;return Object(i.a)(this,SubmitTopicMakeVisible),(a=t.call(this,e)).topicId=e,a.teamId=n,a.location=r,a}return Object(o.a)(SubmitTopicMakeVisible,[{key:"onSuccess",value:function onSuccess(e){return[new Ue(this.topicId,e)]}},{key:"onError",value:function onError(e){return[new Be(this.topicId,e)]}}]),SubmitTopicMakeVisible}(w),Ue=function(e){Object(c.a)(FulfillTopicMakeVisible,e);var t=Object(s.a)(FulfillTopicMakeVisible);function FulfillTopicMakeVisible(e,n){var r;return Object(i.a)(this,FulfillTopicMakeVisible),(r=t.call(this)).topicId=e,r.response=n,r}return FulfillTopicMakeVisible}(b.a),Be=function(e){Object(c.a)(FailTopicMakeVisible,e);var t=Object(s.a)(FailTopicMakeVisible);function FailTopicMakeVisible(e,n){var r;return Object(i.a)(this,FailTopicMakeVisible),(r=t.call(this)).topicId=e,r.error=n,r}return FailTopicMakeVisible}(b.a),He=function(e){Object(c.a)(TopicComposeChanged,e);var t=Object(s.a)(TopicComposeChanged);function TopicComposeChanged(e){var n;return Object(i.a)(this,TopicComposeChanged),(n=t.call(this)).value=e,n}return TopicComposeChanged}(b.a),Ge=function(e){Object(c.a)(SubmitCategorizeTopic,e);var t=Object(s.a)(SubmitCategorizeTopic);function SubmitCategorizeTopic(e,n,r,a){var o;return Object(i.a)(this,SubmitCategorizeTopic),(o=t.call(this,n,r)).tagId=e,o.topicId=n,o.categoryTagId=r,o.label=a,o.eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - Note: Category Tag Added",tagName:o.label},o}return Object(o.a)(SubmitCategorizeTopic,[{key:"onSuccess",value:function onSuccess(){return[new We(this.tagId,this.topicId,this.categoryTagId,this.label)]}},{key:"onError",value:function onError(e){return[new ze(e)]}}]),SubmitCategorizeTopic}(I),We=function(e){Object(c.a)(FulfillCategorizeTopic,e);var t=Object(s.a)(FulfillCategorizeTopic);function FulfillCategorizeTopic(e,n,r,a){var o;return Object(i.a)(this,FulfillCategorizeTopic),(o=t.call(this)).tagId=e,o.topicId=n,o.categoryTagId=r,o.label=a,o}return FulfillCategorizeTopic}(b.a),ze=function(e){Object(c.a)(FailCategorizeTopic,e);var t=Object(s.a)(FailCategorizeTopic);function FailCategorizeTopic(e){var n;return Object(i.a)(this,FailCategorizeTopic),(n=t.call(this)).error=e,n}return FailCategorizeTopic}(b.a),Ve=function(e){Object(c.a)(SubmitDecategorizeTopic,e);var t=Object(s.a)(SubmitDecategorizeTopic);function SubmitDecategorizeTopic(e,n,r){var a;return Object(i.a)(this,SubmitDecategorizeTopic),(a=t.call(this,e,n)).topicId=e,a.categoryTagId=n,a.categoryTagLabel=r,a.eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - Note: Category Tag Removed",tagName:a.categoryTagLabel},a}return Object(o.a)(SubmitDecategorizeTopic,[{key:"onSuccess",value:function onSuccess(){return[new Je(this.topicId,this.categoryTagId)]}},{key:"onError",value:function onError(e){return[new Ye(e)]}}]),SubmitDecategorizeTopic}(x),Je=function(e){Object(c.a)(FulfillDecategorizeTopic,e);var t=Object(s.a)(FulfillDecategorizeTopic);function FulfillDecategorizeTopic(e,n){var r;return Object(i.a)(this,FulfillDecategorizeTopic),(r=t.call(this)).topicId=e,r.categoryTagId=n,r}return FulfillDecategorizeTopic}(b.a),Ye=function(e){Object(c.a)(FailDecategorizeTopic,e);var t=Object(s.a)(FailDecategorizeTopic);function FailDecategorizeTopic(e){var n;return Object(i.a)(this,FailDecategorizeTopic),(n=t.call(this)).error=e,n}return FailDecategorizeTopic}(b.a),qe=function(e){Object(c.a)(SubmitTopicBatchCategorize,e);var t=Object(s.a)(SubmitTopicBatchCategorize);function SubmitTopicBatchCategorize(e,n,r){var a;return Object(i.a)(this,SubmitTopicBatchCategorize),(a=t.call(this,e,n)).topicIds=e,a.categoryTagId=n,a.categoryTagLabel=r,a.eventSpec={eventCategory:"Tag Actions",eventAction:"Category Tag Added To Topic",tagName:a.categoryTagLabel},a}return Object(o.a)(SubmitTopicBatchCategorize,[{key:"onSuccess",value:function onSuccess(e){var t="Tagged ".concat(this.topicIds.length," notes");return[new Ke(e),new R.b({message:1===this.topicIds.length?"Tagged 1 note":t,level:W.n.info})]}},{key:"onError",value:function onError(e){return[new Xe(this.topicIds,this.categoryTagId,e)]}}]),SubmitTopicBatchCategorize}(D),Ke=function(e){Object(c.a)(FulfillTopicBatchCategorize,e);var t=Object(s.a)(FulfillTopicBatchCategorize);function FulfillTopicBatchCategorize(e){var n;return Object(i.a)(this,FulfillTopicBatchCategorize),(n=t.call(this)).response=e,n}return FulfillTopicBatchCategorize}(b.a),Xe=function(e){Object(c.a)(FailTopicBatchCategorize,e);var t=Object(s.a)(FailTopicBatchCategorize);function FailTopicBatchCategorize(e,n,r){var a;return Object(i.a)(this,FailTopicBatchCategorize),(a=t.call(this,r)).topicIds=e,a.categoryTagId=n,a}return FailTopicBatchCategorize}(b.b),Qe=function(e){Object(c.a)(SubmitTopicBatchDecategorize,e);var t=Object(s.a)(SubmitTopicBatchDecategorize);function SubmitTopicBatchDecategorize(e,n,r){var a;return Object(i.a)(this,SubmitTopicBatchDecategorize),(a=t.call(this,e,n)).topicIds=e,a.categoryTagId=n,a.categoryTagLabel=r,a.eventSpec={eventCategory:"Tag Actions",eventAction:"Category Tag Removed From Topic",tagName:a.categoryTagLabel},a}return Object(o.a)(SubmitTopicBatchDecategorize,[{key:"onSuccess",value:function onSuccess(e){var t="Un-tagged ".concat(this.topicIds.length," notes");return[new Ze(this.topicIds,this.categoryTagId),new R.b({message:1===this.topicIds.length?"Un-tagged 1 note":t,level:W.n.info})]}},{key:"onError",value:function onError(e){return[new $e(this.topicIds,this.categoryTagId,e)]}}]),SubmitTopicBatchDecategorize}(L),Ze=function(e){Object(c.a)(FulfillTopicBatchDecategorize,e);var t=Object(s.a)(FulfillTopicBatchDecategorize);function FulfillTopicBatchDecategorize(e,n){var r;return Object(i.a)(this,FulfillTopicBatchDecategorize),(r=t.call(this)).topicIds=e,r.categoryTagId=n,r}return FulfillTopicBatchDecategorize}(b.a),$e=function(e){Object(c.a)(FailTopicBatchDecategorize,e);var t=Object(s.a)(FailTopicBatchDecategorize);function FailTopicBatchDecategorize(e,n,r){var a;return Object(i.a)(this,FailTopicBatchDecategorize),(a=t.call(this,r)).topicIds=e,a.categoryTagId=n,a}return FailTopicBatchDecategorize}(b.b),et=function(e){Object(c.a)(SubmitTopicJobReferenceAdd,e);var t=Object(s.a)(SubmitTopicJobReferenceAdd);function SubmitTopicJobReferenceAdd(e,n,r,a){var o;return Object(i.a)(this,SubmitTopicJobReferenceAdd),(o=t.call(this,n,r)).tagId=e,o.topicId=n,o.jobReferenceId=r,o.label=a,o.eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - Note: Job Reference Added",tagName:o.label},o}return Object(o.a)(SubmitTopicJobReferenceAdd,[{key:"onSuccess",value:function onSuccess(){return[new tt(this.tagId,this.topicId,this.jobReferenceId,this.label)]}},{key:"onError",value:function onError(e){return[new nt(e)]}}]),SubmitTopicJobReferenceAdd}(k),tt=function(e){Object(c.a)(FulfillTopicJobReferenceAdd,e);var t=Object(s.a)(FulfillTopicJobReferenceAdd);function FulfillTopicJobReferenceAdd(e,n,r,a){var o;return Object(i.a)(this,FulfillTopicJobReferenceAdd),(o=t.call(this)).tagId=e,o.topicId=n,o.jobReferenceId=r,o.label=a,o}return FulfillTopicJobReferenceAdd}(b.a),nt=function(e){Object(c.a)(FailTopicJobReferenceAdd,e);var t=Object(s.a)(FailTopicJobReferenceAdd);function FailTopicJobReferenceAdd(e){var n;return Object(i.a)(this,FailTopicJobReferenceAdd),(n=t.call(this)).error=e,n}return FailTopicJobReferenceAdd}(b.a),rt=function(e){Object(c.a)(SubmitTopicJobReferenceRemove,e);var t=Object(s.a)(SubmitTopicJobReferenceRemove);function SubmitTopicJobReferenceRemove(e,n,r){var a;return Object(i.a)(this,SubmitTopicJobReferenceRemove),(a=t.call(this,e,n)).topicId=e,a.jobReferenceId=n,a.jobReferenceLabel=r,a.eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - Note: Job Tag Removed",tagName:a.jobReferenceLabel},a}return Object(o.a)(SubmitTopicJobReferenceRemove,[{key:"onSuccess",value:function onSuccess(){return[new at(this.topicId,this.jobReferenceId)]}},{key:"onError",value:function onError(e){return[new it(e)]}}]),SubmitTopicJobReferenceRemove}(N),at=function(e){Object(c.a)(FulfillTopicJobReferenceRemove,e);var t=Object(s.a)(FulfillTopicJobReferenceRemove);function FulfillTopicJobReferenceRemove(e,n){var r;return Object(i.a)(this,FulfillTopicJobReferenceRemove),(r=t.call(this)).topicId=e,r.jobReferenceId=n,r}return FulfillTopicJobReferenceRemove}(b.a),it=function(e){Object(c.a)(FailTopicJobReferenceRemove,e);var t=Object(s.a)(FailTopicJobReferenceRemove);function FailTopicJobReferenceRemove(e){var n;return Object(i.a)(this,FailTopicJobReferenceRemove),(n=t.call(this)).error=e,n}return FailTopicJobReferenceRemove}(b.a),ot=function(e){Object(c.a)(SubmitTopicBatchJobReferenceAdd,e);var t=Object(s.a)(SubmitTopicBatchJobReferenceAdd);function SubmitTopicBatchJobReferenceAdd(e,n,r){var a;return Object(i.a)(this,SubmitTopicBatchJobReferenceAdd),(a=t.call(this,e,n)).topicIds=e,a.jobReferenceId=n,a.jobReferenceLabel=r,a.eventSpec={eventCategory:"Tag Actions",eventAction:"Job Reference Added To Topic",tagName:a.jobReferenceLabel},a}return Object(o.a)(SubmitTopicBatchJobReferenceAdd,[{key:"onSuccess",value:function onSuccess(e){var t="Tagged ".concat(this.topicIds.length," notes");return[new ct(e),new R.b({message:1===this.topicIds.length?"Tagged 1 note":t,level:W.n.info})]}},{key:"onError",value:function onError(e){return[new st(this.topicIds,this.jobReferenceId,e)]}}]),SubmitTopicBatchJobReferenceAdd}(P),ct=function(e){Object(c.a)(FulfillTopicBatchJobReferenceAdd,e);var t=Object(s.a)(FulfillTopicBatchJobReferenceAdd);function FulfillTopicBatchJobReferenceAdd(e){var n;return Object(i.a)(this,FulfillTopicBatchJobReferenceAdd),(n=t.call(this)).response=e,n}return FulfillTopicBatchJobReferenceAdd}(b.a),st=function(e){Object(c.a)(FailTopicBatchJobReferenceAdd,e);var t=Object(s.a)(FailTopicBatchJobReferenceAdd);function FailTopicBatchJobReferenceAdd(e,n,r){var a;return Object(i.a)(this,FailTopicBatchJobReferenceAdd),(a=t.call(this,r)).topicIds=e,a.jobReferenceId=n,a}return FailTopicBatchJobReferenceAdd}(b.b),lt=function(e){Object(c.a)(SubmitTopicBatchJobReferenceRemove,e);var t=Object(s.a)(SubmitTopicBatchJobReferenceRemove);function SubmitTopicBatchJobReferenceRemove(e,n,r){var a;return Object(i.a)(this,SubmitTopicBatchJobReferenceRemove),(a=t.call(this,e,n)).topicIds=e,a.jobReferenceId=n,a.jobReferenceLabel=r,a.eventSpec={eventCategory:"Tag Actions",eventAction:"Job Reference Removed From Topic",tagName:a.jobReferenceLabel},a}return Object(o.a)(SubmitTopicBatchJobReferenceRemove,[{key:"onSuccess",value:function onSuccess(e){var t="Un-tagged ".concat(this.topicIds.length," notes");return[new ut(this.topicIds,this.jobReferenceLabel),new R.b({message:1===this.topicIds.length?"Un-tagged 1 note":t,level:W.n.info})]}},{key:"onError",value:function onError(e){return[new dt(this.topicIds,this.jobReferenceLabel,e)]}}]),SubmitTopicBatchJobReferenceRemove}(U),ut=function(e){Object(c.a)(FulfillTopicBatchJobReferenceRemove,e);var t=Object(s.a)(FulfillTopicBatchJobReferenceRemove);function FulfillTopicBatchJobReferenceRemove(e,n){var r;return Object(i.a)(this,FulfillTopicBatchJobReferenceRemove),(r=t.call(this)).topicIds=e,r.jobReferenceId=n,r}return FulfillTopicBatchJobReferenceRemove}(b.a),dt=function(e){Object(c.a)(FailTopicBatchJobReferenceRemove,e);var t=Object(s.a)(FailTopicBatchJobReferenceRemove);function FailTopicBatchJobReferenceRemove(e,n,r){var a;return Object(i.a)(this,FailTopicBatchJobReferenceRemove),(a=t.call(this,r)).topicIds=e,a.jobReferenceId=n,a}return FailTopicBatchJobReferenceRemove}(b.b),ft=function(e){Object(c.a)(SubmitTopicTeamAdd,e);var t=Object(s.a)(SubmitTopicTeamAdd);function SubmitTopicTeamAdd(){var e;Object(i.a)(this,SubmitTopicTeamAdd);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).eventSpec=Object(G.k)("Share to Team",e.topicId),e}return Object(o.a)(SubmitTopicTeamAdd,[{key:"onSuccess",value:function onSuccess(e){return[new bt(this.topicId,e)]}},{key:"onError",value:function onError(e){return[new pt(e)]}}]),SubmitTopicTeamAdd}(B),bt=function(e){Object(c.a)(FulfillAddTopicTeam,e);var t=Object(s.a)(FulfillAddTopicTeam);function FulfillAddTopicTeam(e,n){var r;return Object(i.a)(this,FulfillAddTopicTeam),(r=t.call(this)).topicId=e,r.response=n,r}return FulfillAddTopicTeam}(b.a),pt=function(e){Object(c.a)(FailAddTopicTeam,e);var t=Object(s.a)(FailAddTopicTeam);function FailAddTopicTeam(){return Object(i.a)(this,FailAddTopicTeam),t.apply(this,arguments)}return FailAddTopicTeam}(b.b),mt=function(e){Object(c.a)(SubmitTopicTeamRemove,e);var t=Object(s.a)(SubmitTopicTeamRemove);function SubmitTopicTeamRemove(){return Object(i.a)(this,SubmitTopicTeamRemove),t.apply(this,arguments)}return Object(o.a)(SubmitTopicTeamRemove,[{key:"onSuccess",value:function onSuccess(e){return[new ht(this.topicId,e)]}},{key:"onError",value:function onError(e){return[new gt(e)]}}]),SubmitTopicTeamRemove}(H),ht=function(e){Object(c.a)(FulfillTopicTeamRemove,e);var t=Object(s.a)(FulfillTopicTeamRemove);function FulfillTopicTeamRemove(e,n){var r;return Object(i.a)(this,FulfillTopicTeamRemove),(r=t.call(this)).topicId=e,r.response=n,r}return FulfillTopicTeamRemove}(b.a),gt=function(e){Object(c.a)(FailTopicTeamRemove,e);var t=Object(s.a)(FailTopicTeamRemove);function FailTopicTeamRemove(){return Object(i.a)(this,FailTopicTeamRemove),t.apply(this,arguments)}return FailTopicTeamRemove}(b.b)},function(e,t,n){"use strict";n.d(t,"I",(function(){return M})),n.d(t,"p",(function(){return D})),n.d(t,"c",(function(){return L})),n.d(t,"M",(function(){return P})),n.d(t,"F",(function(){return U})),n.d(t,"m",(function(){return B})),n.d(t,"N",(function(){return H})),n.d(t,"G",(function(){return G})),n.d(t,"n",(function(){return W})),n.d(t,"K",(function(){return z})),n.d(t,"w",(function(){return V})),n.d(t,"f",(function(){return J})),n.d(t,"L",(function(){return Y})),n.d(t,"A",(function(){return q})),n.d(t,"g",(function(){return K})),n.d(t,"x",(function(){return X})),n.d(t,"z",(function(){return Z})),n.d(t,"b",(function(){return ee})),n.d(t,"ab",(function(){return te})),n.d(t,"V",(function(){return ne})),n.d(t,"o",(function(){return re})),n.d(t,"h",(function(){return ae})),n.d(t,"R",(function(){return ie})),n.d(t,"t",(function(){return oe})),n.d(t,"Q",(function(){return se})),n.d(t,"s",(function(){return le})),n.d(t,"P",(function(){return de})),n.d(t,"q",(function(){return fe})),n.d(t,"X",(function(){return pe})),n.d(t,"C",(function(){return me})),n.d(t,"j",(function(){return he})),n.d(t,"J",(function(){return ge})),n.d(t,"r",(function(){return je})),n.d(t,"d",(function(){return ve})),n.d(t,"a",(function(){return Oe})),n.d(t,"O",(function(){return Te})),n.d(t,"H",(function(){return ye})),n.d(t,"W",(function(){return Ce})),n.d(t,"B",(function(){return Ae})),n.d(t,"i",(function(){return Ee})),n.d(t,"Z",(function(){return we})),n.d(t,"E",(function(){return _e})),n.d(t,"l",(function(){return Ie})),n.d(t,"T",(function(){return xe})),n.d(t,"v",(function(){return ke})),n.d(t,"e",(function(){return Ne})),n.d(t,"Y",(function(){return Re})),n.d(t,"D",(function(){return Fe})),n.d(t,"k",(function(){return Me})),n.d(t,"S",(function(){return De})),n.d(t,"u",(function(){return Le})),n.d(t,"U",(function(){return Ue})),n.d(t,"y",(function(){return Be}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(529),l=n(20),u=n(16),d=function(e){Object(i.a)(ContactKnownApiAction,e);var t=Object(o.a)(ContactKnownApiAction);function ContactKnownApiAction(e){var n;return Object(r.a)(this,ContactKnownApiAction),(n=t.call(this)).emails=e,n}return Object(a.a)(ContactKnownApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact/known"),body:JSON.stringify(this.emails),method:u.c.POST}}}]),ContactKnownApiAction}(l.a),b=n(174),p=function(e){Object(i.a)(RequestContactGroupApiAction,e);var t=Object(o.a)(RequestContactGroupApiAction);function RequestContactGroupApiAction(e){var n;return Object(r.a)(this,RequestContactGroupApiAction),(n=t.call(this)).id=e,n}return Object(a.a)(RequestContactGroupApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact-group/").concat(this.id,"?include=contact"),method:u.c.GET}}}]),RequestContactGroupApiAction}(l.a),m=function(e){Object(i.a)(RequestContactGroupsApiAction,e);var t=Object(o.a)(RequestContactGroupsApiAction);function RequestContactGroupsApiAction(){return Object(r.a)(this,RequestContactGroupsApiAction),t.apply(this,arguments)}return Object(a.a)(RequestContactGroupsApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/contact_groups"),method:u.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return e.map((function(e){return{type:"contact-group",id:e.id,attributes:{name:e.name,modifiedAt:e.modifiedAt},relationships:{contact:{data:e.contactIds.map((function(e){return{type:"contact",id:e}}))}}}}))}}]),RequestContactGroupsApiAction}(l.a),h=n(4),g=function(e){Object(i.a)(SubmitContactCreateApiAction,e);var t=Object(o.a)(SubmitContactCreateApiAction);function SubmitContactCreateApiAction(e){var n;return Object(r.a)(this,SubmitContactCreateApiAction),(n=t.call(this)).contactDetails=e,n}return Object(a.a)(SubmitContactCreateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact"),method:u.c.POST,body:JSON.stringify({data:{type:"contact",attributes:Object(h.a)({},this.contactDetails)}})}}}]),SubmitContactCreateApiAction}(l.a),j=function(e){Object(i.a)(RequestContactSearchApiAction,e);var t=Object(o.a)(RequestContactSearchApiAction);function RequestContactSearchApiAction(e){var n;return Object(r.a)(this,RequestContactSearchApiAction),(n=t.call(this)).name=e,n}return Object(a.a)(RequestContactSearchApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact?filter[name]=").concat(this.name),method:u.c.GET}}}]),RequestContactSearchApiAction}(l.a),v=n(23),O=function(e){Object(i.a)(SubmitContactAddEmailApiAction,e);var t=Object(o.a)(SubmitContactAddEmailApiAction);function SubmitContactAddEmailApiAction(e,n){var a;return Object(r.a)(this,SubmitContactAddEmailApiAction),(a=t.call(this)).contact=e,a.email=n,a}return Object(a.a)(SubmitContactAddEmailApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact/").concat(this.contact.id),method:u.c.PUT,body:JSON.stringify({data:{type:"contact",attributes:{emailAddresses:[].concat(Object(v.a)(this.contact.attributes.emailAddresses),[this.email])}}})}}}]),SubmitContactAddEmailApiAction}(l.a),T=n(43),y=function(e){Object(i.a)(ContactMuteApiAction,e);var t=Object(o.a)(ContactMuteApiAction);function ContactMuteApiAction(e,n){var a;return Object(r.a)(this,ContactMuteApiAction),(a=t.call(this)).userId=e,a.mutedContacts=n,a}return Object(a.a)(ContactMuteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/user/").concat(this.userId,"/relationships/contact"),body:JSON.stringify({data:this.body}),method:u.c.POST}}},{key:"body",get:function get(){return this.mutedContacts.map((function(e){return{id:e,type:"contact"}}))}}]),ContactMuteApiAction}(l.a),S=function(e){Object(i.a)(ContactUnmuteApiAction,e);var t=Object(o.a)(ContactUnmuteApiAction);function ContactUnmuteApiAction(e,n){var a;return Object(r.a)(this,ContactUnmuteApiAction),(a=t.call(this)).userId=e,a.mutedContacts=n,a}return Object(a.a)(ContactUnmuteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/user/").concat(this.userId,"/relationships/contact"),body:JSON.stringify({data:this.body}),method:u.c.DELETE}}},{key:"body",get:function get(){return this.mutedContacts.map((function(e){return{id:e,type:"contact"}}))}}]),ContactUnmuteApiAction}(l.a),C=function(e){Object(i.a)(ContactMutedGetApiAction,e);var t=Object(o.a)(ContactMutedGetApiAction);function ContactMutedGetApiAction(e){var n;return Object(r.a)(this,ContactMutedGetApiAction),(n=t.call(this)).userId=e,n}return Object(a.a)(ContactMutedGetApiAction,[{key:"mapResponse",value:function mapResponse(e){return{followedContacts:e.data.filter((function(e){return"favourite-contact"===e.type})),mutedContacts:e.data.filter((function(e){return"contact"===e.type}))}}},{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/user/").concat(this.userId,"/relationships/contact"),method:u.c.GET}}}]),ContactMutedGetApiAction}(l.a),A=function(e){Object(i.a)(ContactUpdateApiAction,e);var t=Object(o.a)(ContactUpdateApiAction);function ContactUpdateApiAction(e,n,a){var i;return Object(r.a)(this,ContactUpdateApiAction),(i=t.call(this)).newContactDetails=e,i.oldContactDetails=n,i.id=a,i}return Object(a.a)(ContactUpdateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:Object(h.a)(Object(h.a)({},this.oldContactDetails),{},{attributes:Object(h.a)(Object(h.a)({},this.oldContactDetails.attributes),this.newContactDetails)})}),path:"".concat(e.platformUrl,"/2019-01-01/contact/").concat(this.id),method:u.c.PUT}}}]),ContactUpdateApiAction}(l.a),E=function(e){Object(i.a)(ContactDeleteApiAction,e);var t=Object(o.a)(ContactDeleteApiAction);function ContactDeleteApiAction(e){var n;return Object(r.a)(this,ContactDeleteApiAction),(n=t.call(this)).contactId=e,n}return Object(a.a)(ContactDeleteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact/").concat(this.contactId),method:u.c.DELETE}}}]),ContactDeleteApiAction}(l.a),w=function(e){Object(i.a)(ContactGroupDeleteApiAction,e);var t=Object(o.a)(ContactGroupDeleteApiAction);function ContactGroupDeleteApiAction(e){var n;return Object(r.a)(this,ContactGroupDeleteApiAction),(n=t.call(this)).contactGroupId=e,n}return Object(a.a)(ContactGroupDeleteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact-group/").concat(this.contactGroupId),method:u.c.DELETE}}}]),ContactGroupDeleteApiAction}(l.a),_=n(125),I=n(17),x=function(e){Object(i.a)(ContactUnFollowApiAction,e);var t=Object(o.a)(ContactUnFollowApiAction);function ContactUnFollowApiAction(e){var n;return Object(r.a)(this,ContactUnFollowApiAction),(n=t.call(this)).unFollowedContactId=e,n}return Object(a.a)(ContactUnFollowApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact/").concat(this.unFollowedContactId,"/relationships/user"),method:u.c.DELETE}}}]),ContactUnFollowApiAction}(l.a),k=n(8),N=function(e){Object(i.a)(ContactFollowApiAction,e);var t=Object(o.a)(ContactFollowApiAction);function ContactFollowApiAction(e){var n;return Object(r.a)(this,ContactFollowApiAction),(n=t.call(this)).followedContactId=e,n}return Object(a.a)(ContactFollowApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact/").concat(this.followedContactId,"/relationships/user"),method:u.c.POST}}}]),ContactFollowApiAction}(l.a),R=function(e){Object(i.a)(ContactGroupSave,e);var t=Object(o.a)(ContactGroupSave);function ContactGroupSave(e,n){var a;return Object(r.a)(this,ContactGroupSave),(a=t.call(this)).name=e,a.contacts=n,a}return Object(a.a)(ContactGroupSave,[{key:"apiEffect",value:function apiEffect(e){var t=JSON.stringify({data:{attributes:{name:this.name},relationships:{contact:{data:this.contacts.map((function(e){return{id:e,type:"contact"}}))}},type:"contact-group"}});return{path:"".concat(e.platformUrl,"/2019-01-01/contact-group"),method:u.c.POST,body:t}}}]),ContactGroupSave}(l.a),F=function(e){Object(i.a)(ContactGroupUpdate,e);var t=Object(o.a)(ContactGroupUpdate);function ContactGroupUpdate(e,n,a){var i;return Object(r.a)(this,ContactGroupUpdate),(i=t.call(this)).id=e,i.name=n,i.contacts=a,i}return Object(a.a)(ContactGroupUpdate,[{key:"apiEffect",value:function apiEffect(e){var t=JSON.stringify({data:{attributes:{name:this.name},relationships:{contact:{data:this.contacts.map((function(e){return{id:e,type:"contact"}}))}},type:"contact-group"}});return{path:"".concat(e.platformUrl,"/2019-01-01/contact-group/").concat(this.id),method:u.c.PATCH,body:t}}}]),ContactGroupUpdate}(l.a),M=function(e){Object(i.a)(RequestContact,e);var t=Object(o.a)(RequestContact);function RequestContact(){return Object(r.a)(this,RequestContact),t.apply(this,arguments)}return Object(a.a)(RequestContact,[{key:"onSuccess",value:function onSuccess(e){return[new D(this.id,e)]}},{key:"onError",value:function onError(e){return[new L(this.id,e)]}}]),RequestContact}(b.b),D=function(e){Object(i.a)(FulfillContact,e);var t=Object(o.a)(FulfillContact);function FulfillContact(e,n){var a;return Object(r.a)(this,FulfillContact),(a=t.call(this)).id=e,a.response=n,a}return FulfillContact}(c.a),L=function(e){Object(i.a)(FailContact,e);var t=Object(o.a)(FailContact);function FailContact(e,n){var a;return Object(r.a)(this,FailContact),(a=t.call(this,n)).id=e,a.error=n,a}return FailContact}(c.b),P=function(e){Object(i.a)(RequestContactUpdate,e);var t=Object(o.a)(RequestContactUpdate);function RequestContactUpdate(e,n,a){var i;return Object(r.a)(this,RequestContactUpdate),(i=t.call(this,n,e,a)).oldContactDetails=e,i.newContactDetails=n,i.id=a,i}return Object(a.a)(RequestContactUpdate,[{key:"onSuccess",value:function onSuccess(e){return[new U(e,this.id)]}},{key:"onError",value:function onError(e){return[new B(e,this.oldContactDetails,this.id)]}}]),RequestContactUpdate}(A),U=function(e){Object(i.a)(FulfillContactUpdate,e);var t=Object(o.a)(FulfillContactUpdate);function FulfillContactUpdate(e,n){var a;return Object(r.a)(this,FulfillContactUpdate),(a=t.call(this)).response=e,a.id=n,a}return FulfillContactUpdate}(c.a),B=function(e){Object(i.a)(FailContactUpdate,e);var t=Object(o.a)(FailContactUpdate);function FailContactUpdate(e,n,a){var i;return Object(r.a)(this,FailContactUpdate),(i=t.call(this,e)).oldContactDetails=n,i.id=a,i}return FailContactUpdate}(c.b),H=function(e){Object(i.a)(RequestContacts,e);var t=Object(o.a)(RequestContacts);function RequestContacts(){return Object(r.a)(this,RequestContacts),t.apply(this,arguments)}return Object(a.a)(RequestContacts,[{key:"onSuccess",value:function onSuccess(e){return[new G(e)]}},{key:"onError",value:function onError(e){return[new W(e)]}}]),RequestContacts}(b.c),G=function(e){Object(i.a)(FulfillContacts,e);var t=Object(o.a)(FulfillContacts);function FulfillContacts(e){var n;return Object(r.a)(this,FulfillContacts),(n=t.call(this)).response=e,n}return FulfillContacts}(c.a),W=function(e){Object(i.a)(FailContacts,e);var t=Object(o.a)(FailContacts);function FailContacts(e){var n;return Object(r.a)(this,FailContacts),(n=t.call(this,e)).error=e,n}return FailContacts}(c.b),z=function(e){Object(i.a)(RequestContactGroup,e);var t=Object(o.a)(RequestContactGroup);function RequestContactGroup(){return Object(r.a)(this,RequestContactGroup),t.apply(this,arguments)}return Object(a.a)(RequestContactGroup,[{key:"onSuccess",value:function onSuccess(e){return[new V(this.id,e)]}},{key:"onError",value:function onError(e){return[new J(this.id,e)]}}]),RequestContactGroup}(p),V=function(e){Object(i.a)(FulfillContactGroup,e);var t=Object(o.a)(FulfillContactGroup);function FulfillContactGroup(e,n){var a;return Object(r.a)(this,FulfillContactGroup),(a=t.call(this)).id=e,a.response=n,a}return FulfillContactGroup}(c.a),J=function(e){Object(i.a)(FailContactGroup,e);var t=Object(o.a)(FailContactGroup);function FailContactGroup(e,n){var a;return Object(r.a)(this,FailContactGroup),(a=t.call(this,n)).id=e,a.error=n,a}return FailContactGroup}(c.b),Y=function(e){Object(i.a)(RequestContactGroups,e);var t=Object(o.a)(RequestContactGroups);function RequestContactGroups(){return Object(r.a)(this,RequestContactGroups),t.apply(this,arguments)}return Object(a.a)(RequestContactGroups,[{key:"onSuccess",value:function onSuccess(e){return[new q(e)]}},{key:"onError",value:function onError(e){return[new K(e)]}}]),RequestContactGroups}(m),q=function(e){Object(i.a)(FulfillContactGroups,e);var t=Object(o.a)(FulfillContactGroups);function FulfillContactGroups(e){var n;return Object(r.a)(this,FulfillContactGroups),(n=t.call(this)).response=e,n}return FulfillContactGroups}(c.a),K=function(e){Object(i.a)(FailContactGroups,e);var t=Object(o.a)(FailContactGroups);function FailContactGroups(e){var n;return Object(r.a)(this,FailContactGroups),(n=t.call(this,e)).error=e,n}return FailContactGroups}(c.b),X=function(e){Object(i.a)(FulfillContactGroupCreated,e);var t=Object(o.a)(FulfillContactGroupCreated);function FulfillContactGroupCreated(e,n){var a;return Object(r.a)(this,FulfillContactGroupCreated),(a=t.call(this)).id=e,a.response=n,a}return FulfillContactGroupCreated}(c.a),Q=function(e){Object(i.a)(FailContactGroupCreated,e);var t=Object(o.a)(FailContactGroupCreated);function FailContactGroupCreated(e){var n;return Object(r.a)(this,FailContactGroupCreated),(n=t.call(this,e)).error=e,n}return FailContactGroupCreated}(c.b),Z=function(e){Object(i.a)(FulfillContactGroupUpdated,e);var t=Object(o.a)(FulfillContactGroupUpdated);function FulfillContactGroupUpdated(e){var n;return Object(r.a)(this,FulfillContactGroupUpdated),(n=t.call(this)).id=e,n}return FulfillContactGroupUpdated}(c.a),$=function(e){Object(i.a)(FailContactGroupUpdated,e);var t=Object(o.a)(FailContactGroupUpdated);function FailContactGroupUpdated(e){var n;return Object(r.a)(this,FailContactGroupUpdated),(n=t.call(this,e)).error=e,n}return FailContactGroupUpdated}(c.b),ee=function(e){Object(i.a)(CreateContactGroup,e);var t=Object(o.a)(CreateContactGroup);function CreateContactGroup(e,n){var a;return Object(r.a)(this,CreateContactGroup),(a=t.call(this,e,n)).name=e,a.contacts=n,a}return Object(a.a)(CreateContactGroup,[{key:"onSuccess",value:function onSuccess(e){var t=e.data.id;return[new X(e.data.id,e),Object(_.f)({pathname:I.a.ADDRESS_BOOK_CONTACT_GROUP_DETAILS(t)})]}},{key:"onError",value:function onError(e){return[new Q(e)]}}]),CreateContactGroup}(R),te=function(e){Object(i.a)(UpdateContactGroup,e);var t=Object(o.a)(UpdateContactGroup);function UpdateContactGroup(e,n,a){var i;return Object(r.a)(this,UpdateContactGroup),(i=t.call(this,e,n,a)).id=e,i.name=n,i.contacts=a,i}return Object(a.a)(UpdateContactGroup,[{key:"onSuccess",value:function onSuccess(e){return[new Z(this.id)]}},{key:"onError",value:function onError(e){return[new $(e)]}}]),UpdateContactGroup}(F),ne=function(e){Object(i.a)(SubmitContactKnown,e);var t=Object(o.a)(SubmitContactKnown);function SubmitContactKnown(){return Object(r.a)(this,SubmitContactKnown),t.apply(this,arguments)}return Object(a.a)(SubmitContactKnown,[{key:"onSuccess",value:function onSuccess(e){return[new re(this.emails,e)]}},{key:"onError",value:function onError(e){return[new ae(e,this.emails)]}}]),SubmitContactKnown}(d),re=function(e){Object(i.a)(FulFillContactKnown,e);var t=Object(o.a)(FulFillContactKnown);function FulFillContactKnown(e,n){var a;return Object(r.a)(this,FulFillContactKnown),(a=t.call(this)).emails=e,a.response=n,a}return FulFillContactKnown}(c.a),ae=function(e){Object(i.a)(FailContactKnown,e);var t=Object(o.a)(FailContactKnown);function FailContactKnown(e,n){var a;return Object(r.a)(this,FailContactKnown),(a=t.call(this,e)).error=e,a.emails=n,a}return FailContactKnown}(c.b),ie=function(e){Object(i.a)(SubmitContactCreate,e);var t=Object(o.a)(SubmitContactCreate);function SubmitContactCreate(e){var n;return Object(r.a)(this,SubmitContactCreate),(n=t.call(this,e)).contactValues=e,n}return Object(a.a)(SubmitContactCreate,[{key:"onSuccess",value:function onSuccess(e){return[new oe(e),Object(_.f)({pathname:I.a.ADDRESS_BOOK_CONTACT_DETAILS(e.data.id)})]}},{key:"onError",value:function onError(e){return[new ce(e),Object(_.f)({pathname:I.a.ADDRESS_BOOK_CONTACTS})]}}]),SubmitContactCreate}(g),oe=function(e){Object(i.a)(FulfillContactCreate,e);var t=Object(o.a)(FulfillContactCreate);function FulfillContactCreate(e){var n;return Object(r.a)(this,FulfillContactCreate),(n=t.call(this)).response=e,n}return FulfillContactCreate}(c.a),ce=function(e){Object(i.a)(FailContactCreate,e);var t=Object(o.a)(FailContactCreate);function FailContactCreate(e){var n;return Object(r.a)(this,FailContactCreate),(n=t.call(this,e)).error=e,n}return FailContactCreate}(c.b),se=function(e){Object(i.a)(SubmitContactCardCreate,e);var t=Object(o.a)(SubmitContactCardCreate);function SubmitContactCardCreate(e,n){var a;return Object(r.a)(this,SubmitContactCardCreate),(a=t.call(this,n)).email=e,a.contactDetails=n,a}return Object(a.a)(SubmitContactCardCreate,[{key:"onSuccess",value:function onSuccess(e){return[new le(this.email,e)]}},{key:"onError",value:function onError(e){return[new ue(this.contactDetails.firstName,this.contactDetails.lastName,this.contactDetails.company,this.email,e),new T.b({message:"Failed to create contact. Try again.",level:k.n.warning})]}}]),SubmitContactCardCreate}(g),le=function(e){Object(i.a)(FulfillContactCardCreate,e);var t=Object(o.a)(FulfillContactCardCreate);function FulfillContactCardCreate(e,n){var a;return Object(r.a)(this,FulfillContactCardCreate),(a=t.call(this)).email=e,a.response=n,a}return FulfillContactCardCreate}(c.a),ue=function(e){Object(i.a)(FailContactCardCreate,e);var t=Object(o.a)(FailContactCardCreate);function FailContactCardCreate(e,n,a,i,o){var c;return Object(r.a)(this,FailContactCardCreate),(c=t.call(this,o)).firstName=e,c.lastName=n,c.company=a,c.email=i,c.error=o,c}return FailContactCardCreate}(c.b),de=function(e){Object(i.a)(SubmitContactAddEmail,e);var t=Object(o.a)(SubmitContactAddEmail);function SubmitContactAddEmail(){return Object(r.a)(this,SubmitContactAddEmail),t.apply(this,arguments)}return Object(a.a)(SubmitContactAddEmail,[{key:"onSuccess",value:function onSuccess(){return[new fe(this.email,this.contact)]}},{key:"onError",value:function onError(e){return[new be(this.contact,this.email,e)]}}]),SubmitContactAddEmail}(O),fe=function(e){Object(i.a)(FulfillContactAddEmail,e);var t=Object(o.a)(FulfillContactAddEmail);function FulfillContactAddEmail(e,n){var a;return Object(r.a)(this,FulfillContactAddEmail),(a=t.call(this)).email=e,a.contact=n,a}return FulfillContactAddEmail}(c.a),be=function(e){Object(i.a)(FailContactAddEmail,e);var t=Object(o.a)(FailContactAddEmail);function FailContactAddEmail(e,n,a){var i;return Object(r.a)(this,FailContactAddEmail),(i=t.call(this,a)).contact=e,i.email=n,i.error=a,i}return FailContactAddEmail}(c.b),pe=function(e){Object(i.a)(SubmitContactSearch,e);var t=Object(o.a)(SubmitContactSearch);function SubmitContactSearch(){return Object(r.a)(this,SubmitContactSearch),t.apply(this,arguments)}return Object(a.a)(SubmitContactSearch,[{key:"onSuccess",value:function onSuccess(e){return[new me(this.name,e.data)]}},{key:"onError",value:function onError(e){return[new he(this.name,e)]}}]),SubmitContactSearch}(j),me=function(e){Object(i.a)(FulfillContactSearch,e);var t=Object(o.a)(FulfillContactSearch);function FulfillContactSearch(e,n){var a;return Object(r.a)(this,FulfillContactSearch),(a=t.call(this)).name=e,a.contacts=n,a}return FulfillContactSearch}(c.a),he=function(e){Object(i.a)(FailContactSearch,e);var t=Object(o.a)(FailContactSearch);function FailContactSearch(e,n){var a;return Object(r.a)(this,FailContactSearch),(a=t.call(this,n)).name=e,a.error=n,a}return FailContactSearch}(c.b),ge=function(e){Object(i.a)(RequestContactAutoComplete,e);var t=Object(o.a)(RequestContactAutoComplete);function RequestContactAutoComplete(){return Object(r.a)(this,RequestContactAutoComplete),t.apply(this,arguments)}return Object(a.a)(RequestContactAutoComplete,[{key:"onSuccess",value:function onSuccess(e){return[new je(this.query,e)]}},{key:"onError",value:function onError(e){return[new ve(this.query,e)]}}]),RequestContactAutoComplete}(s.a),je=function(e){Object(i.a)(FulfillContactAutoComplete,e);var t=Object(o.a)(FulfillContactAutoComplete);function FulfillContactAutoComplete(e,n){var a;return Object(r.a)(this,FulfillContactAutoComplete),(a=t.call(this)).query=e,a.result=n,a}return FulfillContactAutoComplete}(c.a),ve=function(e){Object(i.a)(FailContactAutoComplete,e);var t=Object(o.a)(FailContactAutoComplete);function FailContactAutoComplete(e,n){var a;return Object(r.a)(this,FailContactAutoComplete),(a=t.call(this,n)).query=e,a.error=n,a}return FailContactAutoComplete}(c.b),Oe=function(e){Object(i.a)(ClearContactCache,e);var t=Object(o.a)(ClearContactCache);function ClearContactCache(){return Object(r.a)(this,ClearContactCache),t.apply(this,arguments)}return ClearContactCache}(c.a),Te=function(e){Object(i.a)(RequestMutedContacts,e);var t=Object(o.a)(RequestMutedContacts);function RequestMutedContacts(){return Object(r.a)(this,RequestMutedContacts),t.apply(this,arguments)}return Object(a.a)(RequestMutedContacts,[{key:"onSuccess",value:function onSuccess(e){return[new ye(e.mutedContacts.map((function(e){return e.id})),e.followedContacts.map((function(e){return e.id})))]}},{key:"onError",value:function onError(e){return[new Se(e)]}}]),RequestMutedContacts}(C),ye=function(e){Object(i.a)(FulfillMutedFollowedContacts,e);var t=Object(o.a)(FulfillMutedFollowedContacts);function FulfillMutedFollowedContacts(e,n){var a;return Object(r.a)(this,FulfillMutedFollowedContacts),(a=t.call(this)).mutedContacts=e,a.followedContacts=n,a}return FulfillMutedFollowedContacts}(c.a),Se=function(e){Object(i.a)(FailMutedContacts,e);var t=Object(o.a)(FailMutedContacts);function FailMutedContacts(){return Object(r.a)(this,FailMutedContacts),t.apply(this,arguments)}return FailMutedContacts}(c.b),Ce=function(e){Object(i.a)(SubmitContactMute,e);var t=Object(o.a)(SubmitContactMute);function SubmitContactMute(){return Object(r.a)(this,SubmitContactMute),t.apply(this,arguments)}return Object(a.a)(SubmitContactMute,[{key:"onSuccess",value:function onSuccess(){return[new Ae(this.mutedContacts)]}},{key:"onError",value:function onError(e){return[new Ee(e,this.mutedContacts)]}}]),SubmitContactMute}(y),Ae=function(e){Object(i.a)(FulfillContactMute,e);var t=Object(o.a)(FulfillContactMute);function FulfillContactMute(e){var n;return Object(r.a)(this,FulfillContactMute),(n=t.call(this)).mutedContacts=e,n}return FulfillContactMute}(c.a),Ee=function(e){Object(i.a)(FailContactMute,e);var t=Object(o.a)(FailContactMute);function FailContactMute(e,n){var a;return Object(r.a)(this,FailContactMute),(a=t.call(this,e)).mutedContacts=n,a}return FailContactMute}(c.b),we=function(e){Object(i.a)(SubmitContactUnmute,e);var t=Object(o.a)(SubmitContactUnmute);function SubmitContactUnmute(){return Object(r.a)(this,SubmitContactUnmute),t.apply(this,arguments)}return Object(a.a)(SubmitContactUnmute,[{key:"onSuccess",value:function onSuccess(){return[new _e(this.mutedContacts)]}},{key:"onError",value:function onError(e){return[new Ie(e,this.mutedContacts)]}}]),SubmitContactUnmute}(S),_e=function(e){Object(i.a)(FulfillContactUnmute,e);var t=Object(o.a)(FulfillContactUnmute);function FulfillContactUnmute(e){var n;return Object(r.a)(this,FulfillContactUnmute),(n=t.call(this)).mutedContacts=e,n}return FulfillContactUnmute}(c.a),Ie=function(e){Object(i.a)(FailContactUnmute,e);var t=Object(o.a)(FailContactUnmute);function FailContactUnmute(e,n){var a;return Object(r.a)(this,FailContactUnmute),(a=t.call(this,e)).mutedContacts=n,a}return FailContactUnmute}(c.b),xe=function(e){Object(i.a)(SubmitContactFollow,e);var t=Object(o.a)(SubmitContactFollow);function SubmitContactFollow(){return Object(r.a)(this,SubmitContactFollow),t.apply(this,arguments)}return Object(a.a)(SubmitContactFollow,[{key:"onSuccess",value:function onSuccess(e){return[new ke(this.followedContactId,e)]}},{key:"onError",value:function onError(e){return[new Ne(e,this.followedContactId)]}}]),SubmitContactFollow}(N),ke=function(e){Object(i.a)(FulfillContactFollow,e);var t=Object(o.a)(FulfillContactFollow);function FulfillContactFollow(e,n){var a;return Object(r.a)(this,FulfillContactFollow),(a=t.call(this)).followedContactId=e,a.response=n,a}return FulfillContactFollow}(c.a),Ne=function(e){Object(i.a)(FailContactFollow,e);var t=Object(o.a)(FailContactFollow);function FailContactFollow(e,n){var a;return Object(r.a)(this,FailContactFollow),(a=t.call(this,e)).followedContactId=n,a}return FailContactFollow}(c.b),Re=function(e){Object(i.a)(SubmitContactUnfollow,e);var t=Object(o.a)(SubmitContactUnfollow);function SubmitContactUnfollow(){return Object(r.a)(this,SubmitContactUnfollow),t.apply(this,arguments)}return Object(a.a)(SubmitContactUnfollow,[{key:"onSuccess",value:function onSuccess(e){return[new Fe(this.unFollowedContactId,e)]}},{key:"onError",value:function onError(e){return[new Me(e,this.unFollowedContactId)]}}]),SubmitContactUnfollow}(x),Fe=function(e){Object(i.a)(FulfillContactUnfollow,e);var t=Object(o.a)(FulfillContactUnfollow);function FulfillContactUnfollow(e,n){var a;return Object(r.a)(this,FulfillContactUnfollow),(a=t.call(this)).unFollowedContactId=e,a.response=n,a}return FulfillContactUnfollow}(c.a),Me=function(e){Object(i.a)(FailContactUnfollow,e);var t=Object(o.a)(FailContactUnfollow);function FailContactUnfollow(e,n){var a;return Object(r.a)(this,FailContactUnfollow),(a=t.call(this,e)).unFollowedContactId=n,a}return FailContactUnfollow}(c.b),De=function(e){Object(i.a)(SubmitContactDelete,e);var t=Object(o.a)(SubmitContactDelete);function SubmitContactDelete(e){var n;return Object(r.a)(this,SubmitContactDelete),(n=t.call(this,e)).contactId=e,n}return Object(a.a)(SubmitContactDelete,[{key:"onSuccess",value:function onSuccess(){return[new Le(this.contactId),new T.b({message:"Contact successfully deleted.",level:k.n.info})]}},{key:"onError",value:function onError(e){return[new Pe(this.contactId,e),new T.b({message:"Contact failed to delete.",level:k.n.warning})]}}]),SubmitContactDelete}(E),Le=function(e){Object(i.a)(FulfillContactDelete,e);var t=Object(o.a)(FulfillContactDelete);function FulfillContactDelete(e){var n;return Object(r.a)(this,FulfillContactDelete),(n=t.call(this)).contactId=e,n}return FulfillContactDelete}(c.a),Pe=function(e){Object(i.a)(FailContactDelete,e);var t=Object(o.a)(FailContactDelete);function FailContactDelete(e,n){var a;return Object(r.a)(this,FailContactDelete),(a=t.call(this,n)).contactId=e,a.error=n,a}return FailContactDelete}(c.b),Ue=function(e){Object(i.a)(SubmitContactGroupDelete,e);var t=Object(o.a)(SubmitContactGroupDelete);function SubmitContactGroupDelete(e){var n;return Object(r.a)(this,SubmitContactGroupDelete),(n=t.call(this,e)).contactGroupId=e,n}return Object(a.a)(SubmitContactGroupDelete,[{key:"onSuccess",value:function onSuccess(){return[new Be(this.contactGroupId),new T.b({message:"Contact Group successfully deleted.",level:k.n.info})]}},{key:"onError",value:function onError(e){return[new He(this.contactGroupId,e),new T.b({message:"Contact group failed to delete.",level:k.n.warning})]}}]),SubmitContactGroupDelete}(w),Be=function(e){Object(i.a)(FulfillContactGroupDelete,e);var t=Object(o.a)(FulfillContactGroupDelete);function FulfillContactGroupDelete(e){var n;return Object(r.a)(this,FulfillContactGroupDelete),(n=t.call(this)).contactGroupId=e,n}return FulfillContactGroupDelete}(c.a),He=function(e){Object(i.a)(FailContactGroupDelete,e);var t=Object(o.a)(FailContactGroupDelete);function FailContactGroupDelete(e,n){var a;return Object(r.a)(this,FailContactGroupDelete),(a=t.call(this,n)).contactGroupId=e,a.error=n,a}return FailContactGroupDelete}(c.b)},function(e,t,n){"use strict";n.d(t,"b",(function(){return Pending})),n.d(t,"a",(function(){return o}));var r=n(0),a=(n(1),n(546)),i=n.n(a);function Pending(e){var t=e.spinner,n=e.fadeIn,a=e.color,o=e.dataTestId;return Object(r.jsx)("div",{className:"loading",style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",top:"0",bottom:"0",right:"0",left:"0",position:"absolute",pointerEvents:"none"},"data-testid":null!==o&&void 0!==o?o:"spinner",children:Object(r.jsx)(i.a,{name:t,fadeIn:n,color:a})})}var o="ball-clip-rotate-multiple"},function(e,t,n){"use strict";n.d(t,"f",(function(){return b})),n.d(t,"j",(function(){return p})),n.d(t,"e",(function(){return m})),n.d(t,"a",(function(){return CLUSTER_ROOT})),n.d(t,"i",(function(){return h})),n.d(t,"n",(function(){return buildSednaURL})),n.d(t,"m",(function(){return buildPlatformUrl})),n.d(t,"k",(function(){return buildApiUrl})),n.d(t,"l",(function(){return buildLiteUrl})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return j})),n.d(t,"g",(function(){return v})),n.d(t,"h",(function(){return O})),n.d(t,"b",(function(){return T}));var r,a,i,o,c,s=n(25),l=n(126),u=window.location.hostname,d=["PRD","TST","DEV","WORKSHOP"];var b=function getEnvironment(){return Object({NODE_ENV:"production",PUBLIC_URL:"/launch",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v20211204-0141",REACT_APP_API_URL:"/api",REACT_APP_PLATFORM_URL:"/platform",REACT_APP_PUBLIC_HOMEPAGE_URL:"https://www.sedna.com/",REACT_APP_TOS_URL:"https://www.sedna.com/terms-of-service",REACT_APP_PRIVACY_POLICY_URL:"https://www.sedna.com/privacy-notice/",REACT_APP_ABOUT_SEDNA_URL:"https://www.sedna.com/about/",REACT_APP_FROALA_KEY:"yDC5hD4C2A6D7B4C4gKTRe1CD1PGb1DESAb1Kd1EBH1Pd1TKoD6C5G5F4G2D3B2B4A5A4==",REACT_APP_AUTH0_DOMAIN_PRD:"sso.sednanetwork.com",REACT_APP_AUTH0_CLIENT_ID_PRD:"prgSyy6AAMW1C8LGzddEzB313tiem8Np",REACT_APP_AUTH0_DOMAIN_TST:"auth0.stage3systems.net",REACT_APP_AUTH0_CLIENT_ID_TST:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B",REACT_APP_LAUNCH_DARKLY_PRD_KEY:"5b32f2d20d67623848de553a",REACT_APP_LAUNCH_DARKLY_STG_KEY:"5c37d49c265e662ebb19aed1",REACT_APP_LAUNCH_DARKLY_TST_TEST1_KEY:"5c3d38838d378b36cc99ac0e",REACT_APP_LAUNCH_DARKLY_TST_TEST2_KEY:"5c3d38918d378b36cc99ac16",REACT_APP_LAUNCH_DARKLY_TST_TEST3_KEY:"60930f369e0d230c9486943b",REACT_APP_LAUNCH_DARKLY_TST_TEST4_KEY:"5cd4a41f47dbad082a7a50c3",REACT_APP_LAUNCH_DARKLY_TST_TEST5_KEY:"5cd4a44747dbad082a7a50e3",REACT_APP_MIXPANEL_PRD_TOKEN:"97a11d22f209be36c43b77d2bf617878",REACT_APP_MIXPANEL_TST_TOKEN:"d50ef6e0d53999efeddd256b7796eab8"}).REACT_APP_ENV&&function isEnvironment(e){return void 0!==d.find((function(t){return t===e}))}(Object({NODE_ENV:"production",PUBLIC_URL:"/launch",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v20211204-0141",REACT_APP_API_URL:"/api",REACT_APP_PLATFORM_URL:"/platform",REACT_APP_PUBLIC_HOMEPAGE_URL:"https://www.sedna.com/",REACT_APP_TOS_URL:"https://www.sedna.com/terms-of-service",REACT_APP_PRIVACY_POLICY_URL:"https://www.sedna.com/privacy-notice/",REACT_APP_ABOUT_SEDNA_URL:"https://www.sedna.com/about/",REACT_APP_FROALA_KEY:"yDC5hD4C2A6D7B4C4gKTRe1CD1PGb1DESAb1Kd1EBH1Pd1TKoD6C5G5F4G2D3B2B4A5A4==",REACT_APP_AUTH0_DOMAIN_PRD:"sso.sednanetwork.com",REACT_APP_AUTH0_CLIENT_ID_PRD:"prgSyy6AAMW1C8LGzddEzB313tiem8Np",REACT_APP_AUTH0_DOMAIN_TST:"auth0.stage3systems.net",REACT_APP_AUTH0_CLIENT_ID_TST:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B",REACT_APP_LAUNCH_DARKLY_PRD_KEY:"5b32f2d20d67623848de553a",REACT_APP_LAUNCH_DARKLY_STG_KEY:"5c37d49c265e662ebb19aed1",REACT_APP_LAUNCH_DARKLY_TST_TEST1_KEY:"5c3d38838d378b36cc99ac0e",REACT_APP_LAUNCH_DARKLY_TST_TEST2_KEY:"5c3d38918d378b36cc99ac16",REACT_APP_LAUNCH_DARKLY_TST_TEST3_KEY:"60930f369e0d230c9486943b",REACT_APP_LAUNCH_DARKLY_TST_TEST4_KEY:"5cd4a41f47dbad082a7a50c3",REACT_APP_LAUNCH_DARKLY_TST_TEST5_KEY:"5cd4a44747dbad082a7a50e3",REACT_APP_MIXPANEL_PRD_TOKEN:"97a11d22f209be36c43b77d2bf617878",REACT_APP_MIXPANEL_TST_TOKEN:"d50ef6e0d53999efeddd256b7796eab8"}).REACT_APP_ENV)?Object({NODE_ENV:"production",PUBLIC_URL:"/launch",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v20211204-0141",REACT_APP_API_URL:"/api",REACT_APP_PLATFORM_URL:"/platform",REACT_APP_PUBLIC_HOMEPAGE_URL:"https://www.sedna.com/",REACT_APP_TOS_URL:"https://www.sedna.com/terms-of-service",REACT_APP_PRIVACY_POLICY_URL:"https://www.sedna.com/privacy-notice/",REACT_APP_ABOUT_SEDNA_URL:"https://www.sedna.com/about/",REACT_APP_FROALA_KEY:"yDC5hD4C2A6D7B4C4gKTRe1CD1PGb1DESAb1Kd1EBH1Pd1TKoD6C5G5F4G2D3B2B4A5A4==",REACT_APP_AUTH0_DOMAIN_PRD:"sso.sednanetwork.com",REACT_APP_AUTH0_CLIENT_ID_PRD:"prgSyy6AAMW1C8LGzddEzB313tiem8Np",REACT_APP_AUTH0_DOMAIN_TST:"auth0.stage3systems.net",REACT_APP_AUTH0_CLIENT_ID_TST:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B",REACT_APP_LAUNCH_DARKLY_PRD_KEY:"5b32f2d20d67623848de553a",REACT_APP_LAUNCH_DARKLY_STG_KEY:"5c37d49c265e662ebb19aed1",REACT_APP_LAUNCH_DARKLY_TST_TEST1_KEY:"5c3d38838d378b36cc99ac0e",REACT_APP_LAUNCH_DARKLY_TST_TEST2_KEY:"5c3d38918d378b36cc99ac16",REACT_APP_LAUNCH_DARKLY_TST_TEST3_KEY:"60930f369e0d230c9486943b",REACT_APP_LAUNCH_DARKLY_TST_TEST4_KEY:"5cd4a41f47dbad082a7a50c3",REACT_APP_LAUNCH_DARKLY_TST_TEST5_KEY:"5cd4a44747dbad082a7a50e3",REACT_APP_MIXPANEL_PRD_TOKEN:"97a11d22f209be36c43b77d2bf617878",REACT_APP_MIXPANEL_TST_TOKEN:"d50ef6e0d53999efeddd256b7796eab8"}).REACT_APP_ENV:u.includes("sednanetwork.com")?"PRD":u.includes("stage3systems.net")?"TST":u.includes("localhost")||function isLocalIP(e){return/192\.168\.\d+\.\d+/.test(e)}(u)?"WORKSHOP":"DEV"}(),p=null!==(r="v20211204-0141")?r:"workshop",m=function getCluster(){return u.includes("sednanetwork.com")?u.split(".")[0]:u.includes("-sedna.stage3systems")?u.substring(0,5):u.includes("stage3systems.net")?u.substring(10,15):"workshop"}();function CLUSTER_ROOT(){return l.e?"https://".concat(Object(l.c)(),".sednanetwork.com"):window.location.origin}var h="/launch";function buildSednaURL(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(l.c)(),r=l.e?"stshipping"===n?"https://".concat(n,".sednanetwork.com"):"/".concat(n):"";return t&&!r.startsWith("https://")?window.location.origin+r+e:r+e}function buildPlatformUrl(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return buildSednaURL("/platform/".concat(e),t)}function buildApiUrl(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return buildSednaURL("/api/".concat(e),t)}function buildLiteUrl(e){var t="/platform/lite".concat(e?"/".concat(e):"");return l.e?"/".concat(Object(l.c)()).concat(t):t}var g=null!==(a=null!==(i=Object({NODE_ENV:"production",PUBLIC_URL:"/launch",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v20211204-0141",REACT_APP_API_URL:"/api",REACT_APP_PLATFORM_URL:"/platform",REACT_APP_PUBLIC_HOMEPAGE_URL:"https://www.sedna.com/",REACT_APP_TOS_URL:"https://www.sedna.com/terms-of-service",REACT_APP_PRIVACY_POLICY_URL:"https://www.sedna.com/privacy-notice/",REACT_APP_ABOUT_SEDNA_URL:"https://www.sedna.com/about/",REACT_APP_FROALA_KEY:"yDC5hD4C2A6D7B4C4gKTRe1CD1PGb1DESAb1Kd1EBH1Pd1TKoD6C5G5F4G2D3B2B4A5A4==",REACT_APP_AUTH0_DOMAIN_PRD:"sso.sednanetwork.com",REACT_APP_AUTH0_CLIENT_ID_PRD:"prgSyy6AAMW1C8LGzddEzB313tiem8Np",REACT_APP_AUTH0_DOMAIN_TST:"auth0.stage3systems.net",REACT_APP_AUTH0_CLIENT_ID_TST:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B",REACT_APP_LAUNCH_DARKLY_PRD_KEY:"5b32f2d20d67623848de553a",REACT_APP_LAUNCH_DARKLY_STG_KEY:"5c37d49c265e662ebb19aed1",REACT_APP_LAUNCH_DARKLY_TST_TEST1_KEY:"5c3d38838d378b36cc99ac0e",REACT_APP_LAUNCH_DARKLY_TST_TEST2_KEY:"5c3d38918d378b36cc99ac16",REACT_APP_LAUNCH_DARKLY_TST_TEST3_KEY:"60930f369e0d230c9486943b",REACT_APP_LAUNCH_DARKLY_TST_TEST4_KEY:"5cd4a41f47dbad082a7a50c3",REACT_APP_LAUNCH_DARKLY_TST_TEST5_KEY:"5cd4a44747dbad082a7a50e3",REACT_APP_MIXPANEL_PRD_TOKEN:"97a11d22f209be36c43b77d2bf617878",REACT_APP_MIXPANEL_TST_TOKEN:"d50ef6e0d53999efeddd256b7796eab8"})["REACT_APP_AUTH0_CLIENT_ID_".concat(b)])&&void 0!==i?i:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B")&&void 0!==a?a:"",j=null!==(o=null!==(c=Object({NODE_ENV:"production",PUBLIC_URL:"/launch",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v20211204-0141",REACT_APP_API_URL:"/api",REACT_APP_PLATFORM_URL:"/platform",REACT_APP_PUBLIC_HOMEPAGE_URL:"https://www.sedna.com/",REACT_APP_TOS_URL:"https://www.sedna.com/terms-of-service",REACT_APP_PRIVACY_POLICY_URL:"https://www.sedna.com/privacy-notice/",REACT_APP_ABOUT_SEDNA_URL:"https://www.sedna.com/about/",REACT_APP_FROALA_KEY:"yDC5hD4C2A6D7B4C4gKTRe1CD1PGb1DESAb1Kd1EBH1Pd1TKoD6C5G5F4G2D3B2B4A5A4==",REACT_APP_AUTH0_DOMAIN_PRD:"sso.sednanetwork.com",REACT_APP_AUTH0_CLIENT_ID_PRD:"prgSyy6AAMW1C8LGzddEzB313tiem8Np",REACT_APP_AUTH0_DOMAIN_TST:"auth0.stage3systems.net",REACT_APP_AUTH0_CLIENT_ID_TST:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B",REACT_APP_LAUNCH_DARKLY_PRD_KEY:"5b32f2d20d67623848de553a",REACT_APP_LAUNCH_DARKLY_STG_KEY:"5c37d49c265e662ebb19aed1",REACT_APP_LAUNCH_DARKLY_TST_TEST1_KEY:"5c3d38838d378b36cc99ac0e",REACT_APP_LAUNCH_DARKLY_TST_TEST2_KEY:"5c3d38918d378b36cc99ac16",REACT_APP_LAUNCH_DARKLY_TST_TEST3_KEY:"60930f369e0d230c9486943b",REACT_APP_LAUNCH_DARKLY_TST_TEST4_KEY:"5cd4a41f47dbad082a7a50c3",REACT_APP_LAUNCH_DARKLY_TST_TEST5_KEY:"5cd4a44747dbad082a7a50e3",REACT_APP_MIXPANEL_PRD_TOKEN:"97a11d22f209be36c43b77d2bf617878",REACT_APP_MIXPANEL_TST_TOKEN:"d50ef6e0d53999efeddd256b7796eab8"})["REACT_APP_AUTH0_DOMAIN_".concat(b)])&&void 0!==c?c:"auth0.stage3systems.net")&&void 0!==o?o:"",v=function getLaunchDarklyKey(){var e,t="REACT_APP_LAUNCH_DARKLY_",n="_KEY",r=b.toUpperCase(),a=t+r+n,i=t+r+"_"+m.toUpperCase()+n;return null!==(e=Object({NODE_ENV:"production",PUBLIC_URL:"/launch",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v20211204-0141",REACT_APP_API_URL:"/api",REACT_APP_PLATFORM_URL:"/platform",REACT_APP_PUBLIC_HOMEPAGE_URL:"https://www.sedna.com/",REACT_APP_TOS_URL:"https://www.sedna.com/terms-of-service",REACT_APP_PRIVACY_POLICY_URL:"https://www.sedna.com/privacy-notice/",REACT_APP_ABOUT_SEDNA_URL:"https://www.sedna.com/about/",REACT_APP_FROALA_KEY:"yDC5hD4C2A6D7B4C4gKTRe1CD1PGb1DESAb1Kd1EBH1Pd1TKoD6C5G5F4G2D3B2B4A5A4==",REACT_APP_AUTH0_DOMAIN_PRD:"sso.sednanetwork.com",REACT_APP_AUTH0_CLIENT_ID_PRD:"prgSyy6AAMW1C8LGzddEzB313tiem8Np",REACT_APP_AUTH0_DOMAIN_TST:"auth0.stage3systems.net",REACT_APP_AUTH0_CLIENT_ID_TST:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B",REACT_APP_LAUNCH_DARKLY_PRD_KEY:"5b32f2d20d67623848de553a",REACT_APP_LAUNCH_DARKLY_STG_KEY:"5c37d49c265e662ebb19aed1",REACT_APP_LAUNCH_DARKLY_TST_TEST1_KEY:"5c3d38838d378b36cc99ac0e",REACT_APP_LAUNCH_DARKLY_TST_TEST2_KEY:"5c3d38918d378b36cc99ac16",REACT_APP_LAUNCH_DARKLY_TST_TEST3_KEY:"60930f369e0d230c9486943b",REACT_APP_LAUNCH_DARKLY_TST_TEST4_KEY:"5cd4a41f47dbad082a7a50c3",REACT_APP_LAUNCH_DARKLY_TST_TEST5_KEY:"5cd4a44747dbad082a7a50e3",REACT_APP_MIXPANEL_PRD_TOKEN:"97a11d22f209be36c43b77d2bf617878",REACT_APP_MIXPANEL_TST_TOKEN:"d50ef6e0d53999efeddd256b7796eab8"})[i])&&void 0!==e?e:Object({NODE_ENV:"production",PUBLIC_URL:"/launch",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v20211204-0141",REACT_APP_API_URL:"/api",REACT_APP_PLATFORM_URL:"/platform",REACT_APP_PUBLIC_HOMEPAGE_URL:"https://www.sedna.com/",REACT_APP_TOS_URL:"https://www.sedna.com/terms-of-service",REACT_APP_PRIVACY_POLICY_URL:"https://www.sedna.com/privacy-notice/",REACT_APP_ABOUT_SEDNA_URL:"https://www.sedna.com/about/",REACT_APP_FROALA_KEY:"yDC5hD4C2A6D7B4C4gKTRe1CD1PGb1DESAb1Kd1EBH1Pd1TKoD6C5G5F4G2D3B2B4A5A4==",REACT_APP_AUTH0_DOMAIN_PRD:"sso.sednanetwork.com",REACT_APP_AUTH0_CLIENT_ID_PRD:"prgSyy6AAMW1C8LGzddEzB313tiem8Np",REACT_APP_AUTH0_DOMAIN_TST:"auth0.stage3systems.net",REACT_APP_AUTH0_CLIENT_ID_TST:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B",REACT_APP_LAUNCH_DARKLY_PRD_KEY:"5b32f2d20d67623848de553a",REACT_APP_LAUNCH_DARKLY_STG_KEY:"5c37d49c265e662ebb19aed1",REACT_APP_LAUNCH_DARKLY_TST_TEST1_KEY:"5c3d38838d378b36cc99ac0e",REACT_APP_LAUNCH_DARKLY_TST_TEST2_KEY:"5c3d38918d378b36cc99ac16",REACT_APP_LAUNCH_DARKLY_TST_TEST3_KEY:"60930f369e0d230c9486943b",REACT_APP_LAUNCH_DARKLY_TST_TEST4_KEY:"5cd4a41f47dbad082a7a50c3",REACT_APP_LAUNCH_DARKLY_TST_TEST5_KEY:"5cd4a44747dbad082a7a50e3",REACT_APP_MIXPANEL_PRD_TOKEN:"97a11d22f209be36c43b77d2bf617878",REACT_APP_MIXPANEL_TST_TOKEN:"d50ef6e0d53999efeddd256b7796eab8"})[a]}(),O=s.a.of(Object({NODE_ENV:"production",PUBLIC_URL:"/launch",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v20211204-0141",REACT_APP_API_URL:"/api",REACT_APP_PLATFORM_URL:"/platform",REACT_APP_PUBLIC_HOMEPAGE_URL:"https://www.sedna.com/",REACT_APP_TOS_URL:"https://www.sedna.com/terms-of-service",REACT_APP_PRIVACY_POLICY_URL:"https://www.sedna.com/privacy-notice/",REACT_APP_ABOUT_SEDNA_URL:"https://www.sedna.com/about/",REACT_APP_FROALA_KEY:"yDC5hD4C2A6D7B4C4gKTRe1CD1PGb1DESAb1Kd1EBH1Pd1TKoD6C5G5F4G2D3B2B4A5A4==",REACT_APP_AUTH0_DOMAIN_PRD:"sso.sednanetwork.com",REACT_APP_AUTH0_CLIENT_ID_PRD:"prgSyy6AAMW1C8LGzddEzB313tiem8Np",REACT_APP_AUTH0_DOMAIN_TST:"auth0.stage3systems.net",REACT_APP_AUTH0_CLIENT_ID_TST:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B",REACT_APP_LAUNCH_DARKLY_PRD_KEY:"5b32f2d20d67623848de553a",REACT_APP_LAUNCH_DARKLY_STG_KEY:"5c37d49c265e662ebb19aed1",REACT_APP_LAUNCH_DARKLY_TST_TEST1_KEY:"5c3d38838d378b36cc99ac0e",REACT_APP_LAUNCH_DARKLY_TST_TEST2_KEY:"5c3d38918d378b36cc99ac16",REACT_APP_LAUNCH_DARKLY_TST_TEST3_KEY:"60930f369e0d230c9486943b",REACT_APP_LAUNCH_DARKLY_TST_TEST4_KEY:"5cd4a41f47dbad082a7a50c3",REACT_APP_LAUNCH_DARKLY_TST_TEST5_KEY:"5cd4a44747dbad082a7a50e3",REACT_APP_MIXPANEL_PRD_TOKEN:"97a11d22f209be36c43b77d2bf617878",REACT_APP_MIXPANEL_TST_TOKEN:"d50ef6e0d53999efeddd256b7796eab8"})["REACT_APP_MIXPANEL_".concat(b,"_TOKEN")]),T="https://api-eu.mixpanel.com"},function(e,t,n){"use strict";n.d(t,"b",(function(){return concat})),n.d(t,"a",(function(){return append})),n.d(t,"i",(function(){return prepend})),n.d(t,"f",(function(){return groupBy})),n.d(t,"j",(function(){return segmentBy})),n.d(t,"k",(function(){return unique})),n.d(t,"h",(function(){return last})),n.d(t,"e",(function(){return flatMap})),n.d(t,"g",(function(){return intercalate})),n.d(t,"c",(function(){return findIndex})),n.d(t,"d",(function(){return findLastIndex}));var r=n(23),a=n(25);function concat(e){var t;return(t=[]).concat.apply(t,Object(r.a)(e))}function append(e,t){return[].concat(Object(r.a)(e),[t])}function prepend(e,t){return[e].concat(Object(r.a)(t))}function groupBy(e,t){return e.reduce((function(e,n){var r,a=t(n);e.hasOwnProperty(a)?null===(r=e[a])||void 0===r||r.push(n):e[a]=[n];return e}),{})}function segmentBy(e,t){return e.reduce((function(e,n){return null===e.last?{ys:[[n]],last:n}:t(e.last)===t(n)?(null===(r=e.ys[e.ys.length-1])||void 0===r||r.push(n),e.last=n,e):(e.ys.push([n]),e.last=n,e);var r}),{ys:[],last:null}).ys}function unique(e,t){var n=null!==t&&void 0!==t?t:function(e){return e};return e.reduce((function reducer(e,t){var r=n(t);return e.seenElements.has(r)||(e.newArray.push(t),e.seenElements.add(r)),e}),{newArray:[],seenElements:new Set}).newArray}function last(e){var t;return e.length>0&&null!==(t=e.slice(-1)[0])&&void 0!==t?t:null}function flatMap(e,t){var n=[];return e.forEach((function(e){return n.push.apply(n,Object(r.a)(t(e)))})),n}function intercalate(e,t){var n=[];return t.forEach((function(t,a){0===a?n.push.apply(n,Object(r.a)(t)):n.push.apply(n,Object(r.a)(e).concat(Object(r.a)(t)))})),n}function findIndex(e,t){var n=t.findIndex(e);return-1===n?a.a.empty():a.a.of(n)}function findLastIndex(e,t){for(var n=e.length;n--;)if(t(e[n],n,e))return n;return-1}},,,function(e,t,n){"use strict";n.d(t,"J",(function(){return F})),n.d(t,"s",(function(){return M})),n.d(t,"e",(function(){return D})),n.d(t,"K",(function(){return L})),n.d(t,"t",(function(){return P})),n.d(t,"h",(function(){return U})),n.d(t,"E",(function(){return B})),n.d(t,"n",(function(){return H})),n.d(t,"a",(function(){return G})),n.d(t,"M",(function(){return W})),n.d(t,"w",(function(){return z})),n.d(t,"j",(function(){return V})),n.d(t,"H",(function(){return J})),n.d(t,"q",(function(){return Y})),n.d(t,"c",(function(){return q})),n.d(t,"G",(function(){return K})),n.d(t,"p",(function(){return X})),n.d(t,"I",(function(){return Z})),n.d(t,"r",(function(){return $})),n.d(t,"d",(function(){return ee})),n.d(t,"F",(function(){return te})),n.d(t,"o",(function(){return ne})),n.d(t,"b",(function(){return re})),n.d(t,"O",(function(){return ae})),n.d(t,"z",(function(){return ie})),n.d(t,"m",(function(){return oe})),n.d(t,"B",(function(){return ce})),n.d(t,"v",(function(){return se})),n.d(t,"A",(function(){return ue})),n.d(t,"D",(function(){return de})),n.d(t,"f",(function(){return fe})),n.d(t,"u",(function(){return be})),n.d(t,"L",(function(){return pe})),n.d(t,"g",(function(){return me})),n.d(t,"i",(function(){return he})),n.d(t,"C",(function(){return ge})),n.d(t,"y",(function(){return je})),n.d(t,"l",(function(){return ve})),n.d(t,"N",(function(){return Oe})),n.d(t,"x",(function(){return Te})),n.d(t,"k",(function(){return ye}));var r,a=n(3),i=n(10),o=n(5),c=n(6),s=n(14),l=n(20),u=n(16),d=n(57),b=function(e){Object(o.a)(MessageJobReferenceAddApiAction,e);var t=Object(c.a)(MessageJobReferenceAddApiAction);function MessageJobReferenceAddApiAction(e,n){var r;return Object(a.a)(this,MessageJobReferenceAddApiAction),(r=t.call(this)).jobReferenceId=e,r.messageId=n,r}return Object(i.a)(MessageJobReferenceAddApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/messagetag/").concat(this.messageId,"/tag/jobreference/").concat(this.jobReferenceId),method:u.c.POST}}},{key:"mapResponse",value:function mapResponse(e){return d.a.tagMapper(e)}}]),MessageJobReferenceAddApiAction}(l.a),p=function(e){Object(o.a)(MessageCategorizeApiAction,e);var t=Object(c.a)(MessageCategorizeApiAction);function MessageCategorizeApiAction(e,n,r,i){var o;return Object(a.a)(this,MessageCategorizeApiAction),(o=t.call(this)).tagId=e,o.categoryId=n,o.categoryTagLabel=r,o.messageId=i,o}return Object(i.a)(MessageCategorizeApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/messagetag/").concat(this.messageId,"/tag/categoryTag/").concat(this.categoryId),method:u.c.POST}}},{key:"mapResponse",value:function mapResponse(e){return d.a.tagMapper(e)}}]),MessageCategorizeApiAction}(l.a),m=function(e){Object(o.a)(MessageDecategorizeApiAction,e);var t=Object(c.a)(MessageDecategorizeApiAction);function MessageDecategorizeApiAction(e,n){var r;return Object(a.a)(this,MessageDecategorizeApiAction),(r=t.call(this)).messageTagId=e,r.messageId=n,r}return Object(i.a)(MessageDecategorizeApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/messagetag/").concat(this.messageTagId),method:u.c.DELETE}}}]),MessageDecategorizeApiAction}(l.a),h=function(e){Object(o.a)(MessageJobReferenceRemoveApiAction,e);var t=Object(c.a)(MessageJobReferenceRemoveApiAction);function MessageJobReferenceRemoveApiAction(e,n){var r;return Object(a.a)(this,MessageJobReferenceRemoveApiAction),(r=t.call(this)).messageTagId=e,r.messageId=n,r}return Object(i.a)(MessageJobReferenceRemoveApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/messagetag/").concat(this.messageTagId),method:u.c.DELETE}}}]),MessageJobReferenceRemoveApiAction}(l.a),g=n(557),j=function(e){Object(o.a)(MessageUnAssignApiAction,e);var t=Object(c.a)(MessageUnAssignApiAction);function MessageUnAssignApiAction(e,n){var r;return Object(a.a)(this,MessageUnAssignApiAction),(r=t.call(this)).messageId=e,r.userIds=n,r}return Object(i.a)(MessageUnAssignApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/message/").concat(this.messageId,"/relationships/assignment"),body:JSON.stringify({data:this.userIds.map((function(e){return{type:"user",id:e}}))}),method:u.c.DELETE}}}]),MessageUnAssignApiAction}(l.a),v=n(421),O=n(43),T=function(e){Object(o.a)(JobReferenceBatchAddAction,e);var t=Object(c.a)(JobReferenceBatchAddAction);function JobReferenceBatchAddAction(e,n){var r;return Object(a.a)(this,JobReferenceBatchAddAction),(r=t.call(this)).jobReferenceId=e,r.messageIds=n,r}return Object(i.a)(JobReferenceBatchAddAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/messagetag/tag/bulk"),body:{messageIds:this.messageIds,jobReferenceIds:[this.jobReferenceId]},method:u.c.POST,headers:{"Content-Type":"application/json"}}}},{key:"mapResponse",value:function mapResponse(e){return e.results.jobReference.map(d.a.tagMapper)}}]),JobReferenceBatchAddAction}(l.a),y=n(422),S=(l.a,function(e){Object(o.a)(RequestFavouriteCategoryTagsApiAction,e);var t=Object(c.a)(RequestFavouriteCategoryTagsApiAction);function RequestFavouriteCategoryTagsApiAction(){return Object(a.a)(this,RequestFavouriteCategoryTagsApiAction),t.apply(this,arguments)}return Object(i.a)(RequestFavouriteCategoryTagsApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/user/relationships/favourite-category-tags"),method:u.c.GET}}}]),RequestFavouriteCategoryTagsApiAction}(l.a)),C=function(e){Object(o.a)(CategoryTagFavouriteApiAction,e);var t=Object(c.a)(CategoryTagFavouriteApiAction);function CategoryTagFavouriteApiAction(e,n){var r;return Object(a.a)(this,CategoryTagFavouriteApiAction),(r=t.call(this)).categoryTag=e,r}return Object(i.a)(CategoryTagFavouriteApiAction,[{key:"apiEffect",value:function apiEffect(e){var t={data:[{id:this.categoryTag.id,type:"category_tag"}]};return{body:JSON.stringify(t),path:"".concat(e.platformUrl,"/user/relationships/favourite-category-tags"),method:u.c.POST,headers:{"Content-Type":"application/json"}}}}]),CategoryTagFavouriteApiAction}(l.a),A=n(32),E=n.n(A),w=function(e){Object(o.a)(CategoryTagUnFavouriteApiAction,e);var t=Object(c.a)(CategoryTagUnFavouriteApiAction);function CategoryTagUnFavouriteApiAction(e,n){var r;return Object(a.a)(this,CategoryTagUnFavouriteApiAction),(r=t.call(this)).categoryTagId=e,r}return Object(i.a)(CategoryTagUnFavouriteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/user/relationships/favourite-category-tags/").concat(this.categoryTagId),method:u.c.DELETE,headers:{"Content-Type":"application/json"}}}}]),CategoryTagUnFavouriteApiAction}(l.a),_=n(21),I=n(320),x=function(e){Object(o.a)(TeamCategoryTagRequestApiAction,e);var t=Object(c.a)(TeamCategoryTagRequestApiAction);function TeamCategoryTagRequestApiAction(e){var n;return Object(a.a)(this,TeamCategoryTagRequestApiAction),(n=t.call(this)).teamIds=e,n}return Object(i.a)(TeamCategoryTagRequestApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/category-tags/?team[filter]=").concat(this.teamIds,"&page[limit]=1000"),method:u.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return{categoryMeta:e.data.map((function(e){return{id:e.id,tagId:e.attributes.tagId,label:e.attributes.label,name:e.attributes.name}})),teamCategoryMap:this.teamIds.reduce((function(t,n){var r=Object(I.a)(e.data,(function(e){return!e.relationships||!e.relationships.team})),a=Object(_.a)(r,2),i=a[0],o=a[1];return t[n]={teamId:n,categoryTagIds:i.concat(o.filter((function(e){var t,r=null===(t=e.relationships)||void 0===t?void 0:t.team;return!(null===r||void 0===r?void 0:r.data)||(!Array.isArray(r.data)||r.data.filter((function(e){return"team"===e.type})).map((function(e){return e.id})).includes(n))}))).map((function(e){return e.id}))},t}),{})}}}]),TeamCategoryTagRequestApiAction}(l.a);!function(e){e.FILTER_TEAM_IDS="filterTeamIds",e.QUERY="q",e.SORT="sort"}(r||(r={}));var k=function(e){Object(o.a)(TagsSearchApiAction,e);var t=Object(c.a)(TagsSearchApiAction);function TagsSearchApiAction(e,n){var r;return Object(a.a)(this,TagsSearchApiAction),(r=t.call(this)).query=e,r.filterTeamIds=n,r}return Object(i.a)(TagsSearchApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=this.filterTeamIds.length>0?"&".concat(r.FILTER_TEAM_IDS,"=").concat(this.filterTeamIds.join(",")):"";return{path:[e.platformUrl,"/autocomplete/tags","?".concat(r.QUERY,"=").concat(this.query),"&".concat(r.SORT,"=-matchScore"),t].join(""),method:u.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return{data:e}}}]),TagsSearchApiAction}(l.a),N=function(e){Object(o.a)(RequestJobReferenceTagsByFollowerApiAction,e);var t=Object(c.a)(RequestJobReferenceTagsByFollowerApiAction);function RequestJobReferenceTagsByFollowerApiAction(e){var n;return Object(a.a)(this,RequestJobReferenceTagsByFollowerApiAction),(n=t.call(this)).userId=e,n}return Object(i.a)(RequestJobReferenceTagsByFollowerApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/user/").concat(this.userId,"/job-reference"),method:u.c.GET}}}]),RequestJobReferenceTagsByFollowerApiAction}(l.a),R=n(8),F=function(e){Object(o.a)(SubmitCategorizeMessage,e);var t=Object(c.a)(SubmitCategorizeMessage);function SubmitCategorizeMessage(){var e;Object(a.a)(this,SubmitCategorizeMessage);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - Message: Category Tag Added",tagName:e.categoryTagLabel},e}return Object(i.a)(SubmitCategorizeMessage,[{key:"onSuccess",value:function onSuccess(e){return[new M(e)]}},{key:"onError",value:function onError(e){return[new D(this.tagId,this.messageId,e)]}}]),SubmitCategorizeMessage}(p),M=function(e){Object(o.a)(FulfillCategorizeMessage,e);var t=Object(c.a)(FulfillCategorizeMessage);function FulfillCategorizeMessage(e){var n;return Object(a.a)(this,FulfillCategorizeMessage),(n=t.call(this)).messageTag=e,n}return FulfillCategorizeMessage}(s.a),D=function(e){Object(o.a)(FailCategorizeMessage,e);var t=Object(c.a)(FailCategorizeMessage);function FailCategorizeMessage(e,n,r){var i;return Object(a.a)(this,FailCategorizeMessage),(i=t.call(this,r)).tagId=e,i.messageId=n,i.error=r,i}return FailCategorizeMessage}(s.b),L=function(e){Object(o.a)(SubmitDecategorizeMessage,e);var t=Object(c.a)(SubmitDecategorizeMessage);function SubmitDecategorizeMessage(e,n,r){var i;return Object(a.a)(this,SubmitDecategorizeMessage),(i=t.call(this,e,n)).messageTagId=e,i.messageId=n,i.categoryTagLabel=r,i.eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - Messages: Category Tag Removed",tagName:i.categoryTagLabel},i}return Object(i.a)(SubmitDecategorizeMessage,[{key:"onSuccess",value:function onSuccess(){return[new P(this.messageTagId,this.messageId)]}},{key:"onError",value:function onError(e){return[new U(this.messageTagId,this.messageId,e)]}}]),SubmitDecategorizeMessage}(m),P=function(e){Object(o.a)(FulfillDecategorizeMessage,e);var t=Object(c.a)(FulfillDecategorizeMessage);function FulfillDecategorizeMessage(e,n){var r;return Object(a.a)(this,FulfillDecategorizeMessage),(r=t.call(this)).messageTagId=e,r.messageId=n,r}return FulfillDecategorizeMessage}(s.a),U=function(e){Object(o.a)(FailDecategorizeMessage,e);var t=Object(c.a)(FailDecategorizeMessage);function FailDecategorizeMessage(e,n,r){var i;return Object(a.a)(this,FailDecategorizeMessage),(i=t.call(this,r)).messageTagId=e,i.messageId=n,i.error=r,i}return FailDecategorizeMessage}(s.b),B=function(e){Object(o.a)(SubmitAddJobReference,e);var t=Object(c.a)(SubmitAddJobReference);function SubmitAddJobReference(e,n,r,i){var o;return Object(a.a)(this,SubmitAddJobReference),(o=t.call(this,r,i)).tagId=e,o.label=n,o.jobReferenceId=r,o.messageId=i,o.eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - Message: Job Reference Added",tagName:o.label},o}return Object(i.a)(SubmitAddJobReference,[{key:"onSuccess",value:function onSuccess(e){return[new H(e,this.jobReferenceId)]}},{key:"onError",value:function onError(e){return[new G(this.tagId,this.jobReferenceId,this.messageId,e)]}}]),SubmitAddJobReference}(b),H=function(e){Object(o.a)(FulfillAddJobReference,e);var t=Object(c.a)(FulfillAddJobReference);function FulfillAddJobReference(e,n){var r;return Object(a.a)(this,FulfillAddJobReference),(r=t.call(this)).messageTag=e,r.jobReferenceId=n,r}return FulfillAddJobReference}(s.a),G=function(e){Object(o.a)(FailAddJobReference,e);var t=Object(c.a)(FailAddJobReference);function FailAddJobReference(e,n,r,i){var o;return Object(a.a)(this,FailAddJobReference),(o=t.call(this,i)).tagId=e,o.jobReferenceId=n,o.messageId=r,o.error=i,o}return FailAddJobReference}(s.b),W=function(e){Object(o.a)(SubmitRemoveJobReference,e);var t=Object(c.a)(SubmitRemoveJobReference);function SubmitRemoveJobReference(e,n,r){var i;return Object(a.a)(this,SubmitRemoveJobReference),(i=t.call(this,e,n)).messageTagId=e,i.messageId=n,i.label=r,i.eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - Message: Job Tag Removed",tagName:i.label},i}return Object(i.a)(SubmitRemoveJobReference,[{key:"onSuccess",value:function onSuccess(){return[new z(this.messageTagId,this.messageId)]}},{key:"onError",value:function onError(e){return[new V(this.messageTagId,this.messageId,e)]}}]),SubmitRemoveJobReference}(h),z=function(e){Object(o.a)(FulfillRemoveJobReference,e);var t=Object(c.a)(FulfillRemoveJobReference);function FulfillRemoveJobReference(e,n){var r;return Object(a.a)(this,FulfillRemoveJobReference),(r=t.call(this)).messageTagId=e,r.messageId=n,r}return FulfillRemoveJobReference}(s.a),V=function(e){Object(o.a)(FailRemoveJobReference,e);var t=Object(c.a)(FailRemoveJobReference);function FailRemoveJobReference(e,n,r){var i;return Object(a.a)(this,FailRemoveJobReference),(i=t.call(this,r)).messageTagId=e,i.messageId=n,i.error=r,i}return FailRemoveJobReference}(s.b),J=function(e){Object(o.a)(SubmitBatchAddJobReferenceWithTagId,e);var t=Object(c.a)(SubmitBatchAddJobReferenceWithTagId);function SubmitBatchAddJobReferenceWithTagId(e,n,r,i){var o;return Object(a.a)(this,SubmitBatchAddJobReferenceWithTagId),(o=t.call(this,n,e)).messageIds=e,o.tagId=n,o.label=r,o.jobReferenceId=i,o.eventSpec={eventCategory:"Tag Actions",eventAction:"Job Reference Added",tagName:o.label},o}return Object(i.a)(SubmitBatchAddJobReferenceWithTagId,[{key:"onSuccess",value:function onSuccess(e){var t="Tagged ".concat(this.messageIds.length," messages");return[new Y(e,this.jobReferenceId),new O.b({message:1===this.messageIds.length?"Tagged 1 message":t,level:R.n.info})]}},{key:"onError",value:function onError(e){return[new q(this.messageIds,this.tagId,e)]}}]),SubmitBatchAddJobReferenceWithTagId}(y.a),Y=function(e){Object(o.a)(FulfillBatchAddJobReferenceWithTagId,e);var t=Object(c.a)(FulfillBatchAddJobReferenceWithTagId);function FulfillBatchAddJobReferenceWithTagId(e,n){var r;return Object(a.a)(this,FulfillBatchAddJobReferenceWithTagId),(r=t.call(this)).response=e,r.jobReferenceId=n,r}return FulfillBatchAddJobReferenceWithTagId}(s.a),q=function(e){Object(o.a)(FailBatchAddJobReferenceWithTagId,e);var t=Object(c.a)(FailBatchAddJobReferenceWithTagId);function FailBatchAddJobReferenceWithTagId(e,n,r){var i;return Object(a.a)(this,FailBatchAddJobReferenceWithTagId),(i=t.call(this,r)).messageIds=e,i.tagId=n,i.error=r,i}return FailBatchAddJobReferenceWithTagId}(s.b),K=function(e){Object(o.a)(SubmitBatchAddJobReference,e);var t=Object(c.a)(SubmitBatchAddJobReference);function SubmitBatchAddJobReference(e,n,r){var i;return Object(a.a)(this,SubmitBatchAddJobReference),(i=t.call(this,n,e)).messageIds=e,i.jobReferenceId=n,i.label=r,i.eventSpec={eventCategory:"Tag Actions",eventAction:"Job Reference Added",tagName:i.label},i}return Object(i.a)(SubmitBatchAddJobReference,[{key:"onSuccess",value:function onSuccess(e){var t="Tagged ".concat(this.messageIds.length," messages");return[new X(e,this.jobReferenceId),new O.b({message:1===this.messageIds.length?"Tagged 1 message":t,level:R.n.info})]}},{key:"onError",value:function onError(e){return[new Q(this.messageIds,this.jobReferenceId,e)]}}]),SubmitBatchAddJobReference}(T),X=function(e){Object(o.a)(FulfillBatchAddJobReference,e);var t=Object(c.a)(FulfillBatchAddJobReference);function FulfillBatchAddJobReference(e,n){var r;return Object(a.a)(this,FulfillBatchAddJobReference),(r=t.call(this)).response=e,r.jobReferenceId=n,r}return FulfillBatchAddJobReference}(s.a),Q=function(e){Object(o.a)(FailBatchAddJobReference,e);var t=Object(c.a)(FailBatchAddJobReference);function FailBatchAddJobReference(e,n,r){var i;return Object(a.a)(this,FailBatchAddJobReference),(i=t.call(this,r)).messageIds=e,i.jobReferenceId=n,i.error=r,i}return FailBatchAddJobReference}(s.b),Z=function(e){Object(o.a)(SubmitBatchRemoveJobReference,e);var t=Object(c.a)(SubmitBatchRemoveJobReference);function SubmitBatchRemoveJobReference(e,n,r){var i;return Object(a.a)(this,SubmitBatchRemoveJobReference),(i=t.call(this,n,e)).messageIds=e,i.tagId=n,i.label=r,i.eventSpec={eventCategory:"Tag Actions",eventAction:"Job Reference Removed",tagName:i.label},i}return Object(i.a)(SubmitBatchRemoveJobReference,[{key:"onSuccess",value:function onSuccess(){var e="Un-tagged ".concat(this.messageIds.length," messages");return[new $(this.messageIds,this.tagId),new O.b({message:1===this.messageIds.length?"Un-tagged 1 message":e,level:R.n.info})]}},{key:"onError",value:function onError(e){return[new ee(this.messageIds,this.tagId,e)]}}]),SubmitBatchRemoveJobReference}(v.a),$=function(e){Object(o.a)(FulfillBatchRemoveJobReference,e);var t=Object(c.a)(FulfillBatchRemoveJobReference);function FulfillBatchRemoveJobReference(e,n){var r;return Object(a.a)(this,FulfillBatchRemoveJobReference),(r=t.call(this)).messageIds=e,r.tagId=n,r}return FulfillBatchRemoveJobReference}(s.a),ee=function(e){Object(o.a)(FailBatchRemoveJobReference,e);var t=Object(c.a)(FailBatchRemoveJobReference);function FailBatchRemoveJobReference(e,n,r){var i;return Object(a.a)(this,FailBatchRemoveJobReference),(i=t.call(this,r)).messageIds=e,i.tagId=n,i.error=r,i}return FailBatchRemoveJobReference}(s.b),te=function(e){Object(o.a)(SubmitAssignMessage,e);var t=Object(c.a)(SubmitAssignMessage);function SubmitAssignMessage(e,n,r){var i;return Object(a.a)(this,SubmitAssignMessage),(i=t.call(this,e,n)).messageId=e,i.userIds=n,i.currentUserId=r,i.eventSpec={eventCategory:"Tag Actions",eventAction:"Follow Message"},i.time=void 0,i.time=E()().toISOString(),i}return Object(i.a)(SubmitAssignMessage,[{key:"onSuccess",value:function onSuccess(e){return[new ne(this.messageId,e)]}},{key:"onError",value:function onError(e){return[new re(this.messageId,this.userIds,e)]}}]),SubmitAssignMessage}(g.a),ne=function(e){Object(o.a)(FulfillAssignMessage,e);var t=Object(c.a)(FulfillAssignMessage);function FulfillAssignMessage(e,n){var r;return Object(a.a)(this,FulfillAssignMessage),(r=t.call(this)).messageId=e,r.resp=n,r}return FulfillAssignMessage}(s.a),re=function(e){Object(o.a)(FailAssignMessage,e);var t=Object(c.a)(FailAssignMessage);function FailAssignMessage(e,n,r){var i;return Object(a.a)(this,FailAssignMessage),(i=t.call(this,r)).messageId=e,i.userIds=n,i.error=r,i}return FailAssignMessage}(s.b),ae=function(e){Object(o.a)(SubmitUnAssignMessage,e);var t=Object(c.a)(SubmitUnAssignMessage);function SubmitUnAssignMessage(){var e;Object(a.a)(this,SubmitUnAssignMessage);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).eventSpec={eventCategory:"Tag Actions",eventAction:"Unfollow Message"},e}return Object(i.a)(SubmitUnAssignMessage,[{key:"onSuccess",value:function onSuccess(){return[new ie(this.messageId,this.userIds)]}},{key:"onError",value:function onError(e){return[new oe(this.messageId,this.userIds,e)]}}]),SubmitUnAssignMessage}(j),ie=function(e){Object(o.a)(FulfillUnAssignMessage,e);var t=Object(c.a)(FulfillUnAssignMessage);function FulfillUnAssignMessage(e,n){var r;return Object(a.a)(this,FulfillUnAssignMessage),(r=t.call(this)).messageId=e,r.userIds=n,r}return FulfillUnAssignMessage}(s.a),oe=function(e){Object(o.a)(FailUnAssignMessage,e);var t=Object(c.a)(FailUnAssignMessage);function FailUnAssignMessage(e,n,r){var i;return Object(a.a)(this,FailUnAssignMessage),(i=t.call(this,r)).messageId=e,i.userIds=n,i.error=r,i}return FailUnAssignMessage}(s.b),ce=function(e){Object(o.a)(GetJobReferenceTagsByFollower,e);var t=Object(c.a)(GetJobReferenceTagsByFollower);function GetJobReferenceTagsByFollower(e){var n;return Object(a.a)(this,GetJobReferenceTagsByFollower),(n=t.call(this,e)).userId=e,n}return Object(i.a)(GetJobReferenceTagsByFollower,[{key:"onSuccess",value:function onSuccess(e){return[new se(e,this.userId)]}},{key:"onError",value:function onError(e){return[new le(e)]}}]),GetJobReferenceTagsByFollower}(N),se=function(e){Object(o.a)(FulfillGetJobReferenceTagsByFollower,e);var t=Object(c.a)(FulfillGetJobReferenceTagsByFollower);function FulfillGetJobReferenceTagsByFollower(e,n){var r;return Object(a.a)(this,FulfillGetJobReferenceTagsByFollower),(r=t.call(this)).jobReferenceTagCollection=e,r.userId=n,r}return FulfillGetJobReferenceTagsByFollower}(s.a),le=function(e){Object(o.a)(FailGetCategoryTags,e);var t=Object(c.a)(FailGetCategoryTags);function FailGetCategoryTags(){return Object(a.a)(this,FailGetCategoryTags),t.apply(this,arguments)}return FailGetCategoryTags}(s.b),ue=function(e){Object(o.a)(GetFavouriteCategoryTags,e);var t=Object(c.a)(GetFavouriteCategoryTags);function GetFavouriteCategoryTags(){return Object(a.a)(this,GetFavouriteCategoryTags),t.apply(this,arguments)}return Object(i.a)(GetFavouriteCategoryTags,[{key:"onSuccess",value:function onSuccess(e){return[new be(e)]}},{key:"onError",value:function onError(e){return[new le(e)]}}]),GetFavouriteCategoryTags}(S),de=function(e){Object(o.a)(SubmitAddCategoryTagFavourite,e);var t=Object(c.a)(SubmitAddCategoryTagFavourite);function SubmitAddCategoryTagFavourite(){var e;Object(a.a)(this,SubmitAddCategoryTagFavourite);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - ".concat(e.type,": Pin Category Tag"),eventLabel:e.categoryTag.id},e}return Object(i.a)(SubmitAddCategoryTagFavourite,[{key:"onSuccess",value:function onSuccess(e){return[]}},{key:"onError",value:function onError(e){return[new fe(e,this.categoryTag)]}}]),SubmitAddCategoryTagFavourite}(C),fe=function(e){Object(o.a)(FailCategoryTagFavourite,e);var t=Object(c.a)(FailCategoryTagFavourite);function FailCategoryTagFavourite(e,n){var r;return Object(a.a)(this,FailCategoryTagFavourite),(r=t.call(this,e)).error=e,r.categoryTag=n,r}return FailCategoryTagFavourite}(s.b),be=function(e){Object(o.a)(FulfillGetFavouriteCategoryTags,e);var t=Object(c.a)(FulfillGetFavouriteCategoryTags);function FulfillGetFavouriteCategoryTags(e){var n;return Object(a.a)(this,FulfillGetFavouriteCategoryTags),(n=t.call(this)).response=e,n}return FulfillGetFavouriteCategoryTags}(s.a),pe=function(e){Object(o.a)(SubmitRemoveCategoryTagFavourite,e);var t=Object(c.a)(SubmitRemoveCategoryTagFavourite);function SubmitRemoveCategoryTagFavourite(){var e;Object(a.a)(this,SubmitRemoveCategoryTagFavourite);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - ".concat(e.type,": Unpin Category Tag"),eventLabel:e.categoryTagId},e}return Object(i.a)(SubmitRemoveCategoryTagFavourite,[{key:"onSuccess",value:function onSuccess(e){return[]}},{key:"onError",value:function onError(e){return[new me(e,this.categoryTagId)]}}]),SubmitRemoveCategoryTagFavourite}(w),me=function(e){Object(o.a)(FailCategoryTagUnFavourite,e);var t=Object(c.a)(FailCategoryTagUnFavourite);function FailCategoryTagUnFavourite(e,n){var r;return Object(a.a)(this,FailCategoryTagUnFavourite),(r=t.call(this,e)).error=e,r.categoryTagId=n,r}return FailCategoryTagUnFavourite}(s.b),he=function(e){Object(o.a)(FailGetFavouriteCategoryTags,e);var t=Object(c.a)(FailGetFavouriteCategoryTags);function FailGetFavouriteCategoryTags(){return Object(a.a)(this,FailGetFavouriteCategoryTags),t.apply(this,arguments)}return FailGetFavouriteCategoryTags}(s.b),ge=(s.a,s.b,function(e){Object(o.a)(RequestTeamCategoryTags,e);var t=Object(c.a)(RequestTeamCategoryTags);function RequestTeamCategoryTags(e){var n;return Object(a.a)(this,RequestTeamCategoryTags),(n=t.call(this,e)).teamIds=e,n}return Object(i.a)(RequestTeamCategoryTags,[{key:"onSuccess",value:function onSuccess(e){return[new je(this.teamIds,e)]}},{key:"onError",value:function onError(e){return[new ve(this.teamIds,e)]}}]),RequestTeamCategoryTags}(x)),je=function(e){Object(o.a)(FulfillTeamCategoryTags,e);var t=Object(c.a)(FulfillTeamCategoryTags);function FulfillTeamCategoryTags(e,n){var r;return Object(a.a)(this,FulfillTeamCategoryTags),(r=t.call(this)).teamIds=e,r.data=n,r}return FulfillTeamCategoryTags}(s.a),ve=function(e){Object(o.a)(FailTeamCategoryTags,e);var t=Object(c.a)(FailTeamCategoryTags);function FailTeamCategoryTags(e,n){var r;return Object(a.a)(this,FailTeamCategoryTags),(r=t.call(this,n)).teamIds=e,r}return FailTeamCategoryTags}(s.b),Oe=function(e){Object(o.a)(SubmitSearchTags,e);var t=Object(c.a)(SubmitSearchTags);function SubmitSearchTags(e,n,r){var i;return Object(a.a)(this,SubmitSearchTags),(i=t.call(this,n,r)).id=e,i.query=n,i.filterTeamIds=r,i}return Object(i.a)(SubmitSearchTags,[{key:"onSuccess",value:function onSuccess(e){return[new Te(this.id,this.query,e.data)]}},{key:"onError",value:function onError(e){return[new ye(this.id,this.query,e)]}}]),SubmitSearchTags}(k),Te=function(e){Object(o.a)(FulfillSearchTags,e);var t=Object(c.a)(FulfillSearchTags);function FulfillSearchTags(e,n,r){var i;return Object(a.a)(this,FulfillSearchTags),(i=t.call(this)).id=e,i.query=n,i.result=r,i}return FulfillSearchTags}(s.a),ye=function(e){Object(o.a)(FailSearchTags,e);var t=Object(c.a)(FailSearchTags);function FailSearchTags(e,n,r){var i;return Object(a.a)(this,FailSearchTags),(i=t.call(this,r)).id=e,i.query=n,i.error=r,i}return FailSearchTags}(s.b)},function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return screenWidthToSize})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r,a=768,i=1024,o=1366,c=1920;function screenWidthToSize(e){return e<=320?r.xSmall:320<e&&e<=a?r.small:a<e&&e<=i?r.medium:i<e&&e<=o?r.large:o<e&&e<=c?r.xLarge:r.xxLarge}!function(e){e.xSmall="xSmall",e.small="small",e.medium="medium",e.large="large",e.xLarge="xLarge",e.xxLarge="xxLarge"}(r||(r={}));var s={minXSmall:"(min-width: ".concat(320,"px)"),minSmall:"(min-width: ".concat(a,"px)"),minMedium:"(min-width: ".concat(i,"px)"),minLarge:"(min-width: ".concat(o,"px)"),minXLarge:"(min-width: ".concat(c,"px)")},l=!window.matchMedia("(pointer:fine)").matches},function(e,t,n){"use strict";n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return T}));var r,a,i=n(4),o=n(3),c=n(10),s=n(5),l=n(6),u=n(20),d=n(37),b=n(16),p=n(25),m=n(30),h=n(32),g=n.n(h),j=n(128),v=n(8),O=36;!function(e){e.BY_ACTIVITY="activity",e.BY_RECEIVED_DATE="received_date"}(r||(r={})),function(e){e.FROM_NEWEST="desc",e.FROM_OLDEST="asc"}(a||(a={}));var T=function(e){Object(s.a)(MessageListApiAction,e);var t=Object(l.a)(MessageListApiAction);function MessageListApiAction(e,n,r,a,i,c,s,l,u){var d;return Object(o.a)(this,MessageListApiAction),(d=t.call(this)).currentUser=e,d.searchAfter=n,d.filterSet=r,d.sort=a,d.order=i,d.options=c,d.listType=s,d.listLoadTrigger=l,d.disableRetry=u,d}return Object(c.a)(MessageListApiAction,null,[{key:"tagsMapper",value:function tagsMapper(e){return e.map(MessageListApiAction.tagMapper)}},{key:"tagMapper",value:function tagMapper(e){var t;return Object(i.a)(Object(i.a)({},e),{},{createdAt:g()(e.createdAt).format(j.a),id:String(e.id),assignedToUserId:null===e.assignedToUserId?null:String(e.assignedToUserId),tagId:String(e.tagId),messageId:String(e.messageId),userId:String(e.userId),tag:Object(i.a)(Object(i.a)({},e.tag),{},{id:String(e.tag.id)}),teamIds:null===(t=e.teamIds)||void 0===t?void 0:t.map((function(e){return String(e)}))})}},{key:"calculateMessageState",value:function calculateMessageState(e){var t=void 0!==e.tags.find((function(e){return e.tagId===d.g.SENT})),n=void 0!==e.tags.find((function(e){return e.tagId===d.g.SENDING})),r=p.a.of(e.tags.find((function(e){return e.tagId===d.g.DRAFT}))).maybe(null,(function(e){return null===e.assignedToUserId?v.f.ALL:v.f.ONLY_AUTHOR})),a=e.tags.find((function(e){return"scheduled"===e.tag.name&&1===e.tag.tagTypeId})),i=e.tags.find((function(e){return"cancelled"===e.tag.name&&1===e.tag.tagTypeId})),o=a?a.id:null,c=i?i.id:null;return t?v.m.Sent:null!==o&&null===c?v.m.Scheduled:null===o&&null!==c?v.m.Cancelled:null!==o&&null!==c?o>c?v.m.Scheduled:v.m.Cancelled:n?v.m.Sending:r===v.f.ONLY_AUTHOR?v.m.PrivateDraft:r?v.m.Draft:v.m.Received}},{key:"messageMapper",value:function messageMapper(e,t){var n,r,a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.a.empty(),o=this.calculateMessageState(e),c=e.tags.find((function(e){return e.tagId===d.g.SENT})),s=e.tags.find((function(e){return e.tagId===d.g.SENDING})),l=null!==c&&void 0!==c?c:s,u=e.tags.find((function(e){return e.tagId===d.g.DRAFT})),b=(null!==(n=null===u||void 0===u?void 0:u.userId)&&void 0!==n?n:"").toString();return{id:String(e.id),state:o,fromName:null!==(r=e.fromName)&&void 0!==r?r:"",subject:null!==(a=e.subject)&&void 0!==a?a:"",inInbox:e.tags.some((function(e){var n=e.tagId,r=e.userId;return String(n)===String(d.g.INBOX)&&String(r)===t})),toAddresses:e.toAddresses.map((function(e){return{name:e.name||"",email:e.email}})),ccAddresses:e.ccAddresses.map((function(e){return{name:e.name||"",email:e.email}})),bccAddresses:e.bccAddresses.map((function(e){return{name:e.name||"",email:e.email}})),fromEmail:e.fromEmail,snippet:e.snippet,hasAttachment:e.hasAttachment,receivedDate:e.receivedDate,sentDate:e.sentDate,messageId:e.messageId,importId:e.importId,createdAt:e.createdAt,modifiedAt:e.modifiedAt,latestActivity:i.orElse(e.receivedDate),activitySummary:{comments:[],shares:[]},sender:l?{userId:String(l.userId),time:c?c.createdAt:null}:void 0,signed:e.signed,createdBy:b}}}]),Object(c.a)(MessageListApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=this.options,n=t.TOPICS,r=t.SEARCH_PARTIAL_MATCH_FUZZINESS,a=t.INCLUDE_NO_MATCH_IN_MY_MESSAGES,o=t.SLIM_MY_MESSAGES,c=t.TEAM_AWARE_MM,s=this.options.SEARCH_PLATFORM?"search/query":"search",l=this.options.SEARCH_PLATFORM?{sort:this.sort,order:this.order,limit:O,source:this.listType,cause:this.listLoadTrigger,includeNoMatchInMyMessages:a,slimMyMessages:o,teamAwareMM:c}:{sort:this.sort,order:this.order,limit:O,topicsEnabled:n,includeNoMatchInMyMessages:a,forceDegraded:this.options.FORCE_DEGRADED,msm:r,slimMyMessages:o,teamAwareMM:c,source:this.listType,cause:this.listLoadTrigger},u=this.searchAfter?Object(i.a)(Object(i.a)({},l),{},{afterId:this.searchAfter.afterId,afterTimestamp:this.searchAfter.afterTimestamp}):l;return{path:"".concat(e.platformUrl,"/").concat(s,"?")+Object(m.stringify)(u),method:b.c.POST,body:JSON.stringify({data:{type:"filter-set",attributes:{filter:this.filterSet.serialize()}}}),disableRetry:this.disableRetry}}},{key:"mapResponse",value:function mapResponse(e){return Object(i.a)(Object(i.a)({},e),{},{included:e.included?e.included:[]})}},{key:"mapError",value:function mapError(e){return{message:e.message,status:e.status,response:e.response}}}]),MessageListApiAction}(u.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return TooltipIconBtn}));var r=n(0),a=(n(1),n(152)),i=n(283);n(1179),n(926),n(1180),n(927);function TooltipIconBtn(e){var t,n;return Object(r.jsx)(a.a,{boundary:e.boundary,arrow:!1,content:e.content,placement:null!==(t=e.placement)&&void 0!==t?t:"bottom",delay:[300,20],theme:"tooltip",animateFill:!0,plugins:[i.a],hideOnClick:null!==(n=e.hideOnClick)&&void 0!==n&&n,touch:!e.disableOnTouch,maxWidth:e.maxWidth,enabled:!e.hidden,children:e.showContentWhenDisabled?Object(r.jsx)("span",{children:e.children}):e.children})}},function(e,t,n){"use strict";n.d(t,"h",(function(){return C})),n.d(t,"e",(function(){return A})),n.d(t,"g",(function(){return E})),n.d(t,"c",(function(){return w})),n.d(t,"a",(function(){return _})),n.d(t,"i",(function(){return I})),n.d(t,"f",(function(){return x})),n.d(t,"j",(function(){return k})),n.d(t,"b",(function(){return N})),n.d(t,"d",(function(){return R})),n.d(t,"k",(function(){return F}));var r=n(623),a=n(23),i=n(3),o=n(10),c=n(5),s=n(6),l=n(14),u=n(25),d=n(125),b=n(4),p=n(20),m=n(16),h=n(30),g=function(e){Object(c.a)(SpaUserApiAction,e);var t=Object(s.a)(SpaUserApiAction);function SpaUserApiAction(e,n){var r;return Object(i.a)(this,SpaUserApiAction),(r=t.call(this)).idToken=e,r.teamId=n,r}return Object(o.a)(SpaUserApiAction,[{key:"apiEffect",value:function apiEffect(e){var t={teamId:this.teamId.toUndefined()},n=this.idToken.maybe({},(function(e){return{Authorization:"Bearer ".concat(e)}}));return{path:"".concat(e.apiUrl,"/spa/user?")+Object(h.stringify)(t),method:m.c.GET,headers:n}}},{key:"mapResponse",value:function mapResponse(e){var t,n,r=e.config,a=e.tenant,i=e.user,o=e.sessionId,c=e.users,s=e.teams,l=e.userTeams,u=e.permissions,d=e.tags,p=e.myMessageTagIds,m=e.jobReferences,h=e.integrations;return{config:Object(b.a)(Object(b.a)({},r),{},{EMAIL_FROM_NAME_FORMAT:null!==(t=r.EMAIL_FROM_NAME_FORMAT)&&void 0!==t?t:"{company-short-name} - {team-name}",MS_PREVIEW:null!==(n=r.MS_PREVIEW)&&void 0!==n&&n}),user:Object(b.a)(Object(b.a)({},i),{},{id:String(i.id),companyId:String(i.companyId),teamId:String(i.teamId),roles:i.roles.map((function(e){return e.name}))}),tenant:Object(b.a)(Object(b.a)({},a),{},{id:String(a.id)}),sessionId:o,users:c.map((function(e){return Object(b.a)(Object(b.a)({},e),{},{id:String(e.id),teamId:String(e.teamId)})})),teams:s.map((function(e){return{id:String(e.id),name:e.name,emailAddress:e.emailAddress,deletedAt:e.deletedAt,isPublic:!!e.isPublic,purpose:e.purpose,sendingName:e.sendingName?e.sendingName:void 0}})),userTeams:l.map(String),permissions:u,tags:d.map((function(e){return Object(b.a)(Object(b.a)({},e),{},{id:String(e.id),tagId:String(e.tagId)})})),myMessageTagIds:p.map(String),jobReferences:m.map((function(e){return Object(b.a)(Object(b.a)({},e),{},{id:String(e.id),companyId:String(e.companyId),tagId:e.tagId?String(e.tagId):null,attributes:JSON.parse(e.attributes),archived:!1,source:e.source})})),integrations:h}}},{key:"mapError",value:function mapError(e){var t;if((null===(t=e.response)||void 0===t?void 0:t.code)&&"CREDENTIALS_REQUIRED"===e.response.code)return"NEVER_LOGGED_IN";var n=e.xhr.response;if(n&&400===n.status&&n.errors.length>0){var r=n.errors[0].message;if("You must log on from the internal company network."===r)return"IP_BLOCKED";if("User does not exist in SEDNA."===r)return"BAD_CREDENTIALS";if("Invalid certificate credentials provided."===r)return"INVALID_CERTIFICATE"}return"BAD_CREDENTIALS"}}]),SpaUserApiAction}(p.a),j=n(17),v=n(268),O=n(51),T=n(49),y=n(55),S=n(15),C=function(e){Object(c.a)(RequestUserInfo,e);var t=Object(s.a)(RequestUserInfo);function RequestUserInfo(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.a.empty(),r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.a.empty(),c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return Object(i.a)(this,RequestUserInfo),(e=t.call(this,n,r)).teamId=r,e.pathToRestore=a,e.loginRedirect=o,e.next=c,e.resetMeta=s,e.silent=l,e}return Object(o.a)(RequestUserInfo,[{key:"onSuccess",value:function onSuccess(e){var t=this.teamId.orElse(e.user.teamId);if(this.loginRedirect.isPresent())return this.loginRedirect.map((function(e){return window.location.href=e})),[];var n="/launch/"===window.location.pathname?[Object(d.f)({pathname:j.a.LIST,search:"teamId=".concat(t)})]:[],r=this.pathToRestore.flatMap((function(e){return"/"===e?u.a.empty():u.a.of(e)})).maybe(n,(function(e){return[Object(d.e)(decodeURIComponent(e))]})),i=this.next.map((function(t){return"function"===typeof t?t(e):t}));return[].concat(Object(a.a)(r),[new A(e,t,this.resetMeta),new T.O(e.user.id),new y.A],Object(a.a)(i))}},{key:"onError",value:function onError(e){return[new w(e)]}}],[{key:"switchTeam",value:function switchTeam(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return new RequestUserInfo(u.a.empty(),u.a.of(e),u.a.empty(),u.a.empty(),t,!0,!0)}},{key:"switchTeamNoReset",value:function switchTeamNoReset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return new RequestUserInfo(u.a.empty(),u.a.of(e),u.a.empty(),u.a.empty(),t,!1,!0)}}]),RequestUserInfo}(g),A=function(e){Object(c.a)(FulfillUserInfo,e);var t=Object(s.a)(FulfillUserInfo);function FulfillUserInfo(e,n,a){var o;Object(i.a)(this,FulfillUserInfo),(o=t.call(this)).config=e,o.teamId=n,o.resetMeta=a;var c=null;try{c=JSON.parse(e.config.GLOSSARY)}catch(s){console.error("Unable to parse glossary configuration. Default glossary will be used.")}return c?(S.b.addResourceBundle("en","glossary",c,!0,!0),o):Object(r.a)(o)}return FulfillUserInfo}(l.a),E=function(e){Object(c.a)(RegisterTeamIds,e);var t=Object(s.a)(RegisterTeamIds);function RegisterTeamIds(e){var n;return Object(i.a)(this,RegisterTeamIds),(n=t.call(this)).teamsInSearch=e,n}return RegisterTeamIds}(l.a),w=function(e){Object(c.a)(FailUserInfo,e);var t=Object(s.a)(FailUserInfo);function FailUserInfo(){return Object(i.a)(this,FailUserInfo),t.apply(this,arguments)}return FailUserInfo}(l.b),_=function(e){Object(c.a)(ApplicationUpdateAvailableAction,e);var t=Object(s.a)(ApplicationUpdateAvailableAction);function ApplicationUpdateAvailableAction(e,n){var r;return Object(i.a)(this,ApplicationUpdateAvailableAction),(r=t.call(this)).registration=e,r.updateFrequency=n,r}return ApplicationUpdateAvailableAction}(l.a),I=function(e){Object(c.a)(UpdateApplicationAction,e);var t=Object(s.a)(UpdateApplicationAction);function UpdateApplicationAction(){return Object(i.a)(this,UpdateApplicationAction),t.apply(this,arguments)}return UpdateApplicationAction}(l.a),x=function(e){Object(c.a)(LoadFeatureFlags,e);var t=Object(s.a)(LoadFeatureFlags);function LoadFeatureFlags(e){var n;return Object(i.a)(this,LoadFeatureFlags),(n=t.call(this)).featureFlags=e,n}return LoadFeatureFlags}(l.a),k=function(e){Object(c.a)(UpdateFeatureFlags,e);var t=Object(s.a)(UpdateFeatureFlags);function UpdateFeatureFlags(e){var n;return Object(i.a)(this,UpdateFeatureFlags),(n=t.call(this)).featureFlags=e,n}return UpdateFeatureFlags}(l.a),N=function(e){Object(c.a)(CheckVersionAction,e);var t=Object(s.a)(CheckVersionAction);function CheckVersionAction(e){var n;return Object(i.a)(this,CheckVersionAction),(n=t.call(this)).updateFrequency=e,n}return Object(o.a)(CheckVersionAction,[{key:"httpEffect",value:function httpEffect(){var e=this;return new m.a({url:"".concat(O.i,"/version.json?rand=").concat(Object(v.a)()),method:m.c.GET,callbacks:{responseMapper:function responseMapper(e){return e.response},onSuccess:function onSuccess(t){return[new R(t,e.updateFrequency)]},onError:function onError(e){return[]}}})}}]),CheckVersionAction}(l.a),R=function(e){Object(c.a)(FulfillCheckVersionAction,e);var t=Object(s.a)(FulfillCheckVersionAction);function FulfillCheckVersionAction(e,n){var r;return Object(i.a)(this,FulfillCheckVersionAction),(r=t.call(this)).version=e,r.updateFrequency=n,r}return FulfillCheckVersionAction}(l.a),F=function(e){Object(c.a)(UpdateSidebarDisplay,e);var t=Object(s.a)(UpdateSidebarDisplay);function UpdateSidebarDisplay(e){var n;return Object(i.a)(this,UpdateSidebarDisplay),(n=t.call(this)).isEnabled=e,n}return UpdateSidebarDisplay}(l.a)},,function(e,t,n){"use strict";n.d(t,"H",(function(){return B})),n.d(t,"z",(function(){return H})),n.d(t,"E",(function(){return G})),n.d(t,"u",(function(){return W})),n.d(t,"h",(function(){return z})),n.d(t,"K",(function(){return V})),n.d(t,"L",(function(){return J})),n.d(t,"l",(function(){return Y})),n.d(t,"m",(function(){return q})),n.d(t,"a",(function(){return K})),n.d(t,"b",(function(){return X})),n.d(t,"I",(function(){return Q})),n.d(t,"k",(function(){return Z})),n.d(t,"O",(function(){return $})),n.d(t,"n",(function(){return oe})),n.d(t,"M",(function(){return se})),n.d(t,"o",(function(){return le})),n.d(t,"N",(function(){return de})),n.d(t,"p",(function(){return fe})),n.d(t,"D",(function(){return pe})),n.d(t,"A",(function(){return me})),n.d(t,"C",(function(){return he})),n.d(t,"q",(function(){return ge})),n.d(t,"c",(function(){return je})),n.d(t,"y",(function(){return ve})),n.d(t,"s",(function(){return Oe})),n.d(t,"f",(function(){return Te})),n.d(t,"G",(function(){return ye})),n.d(t,"j",(function(){return Se})),n.d(t,"e",(function(){return Ce})),n.d(t,"F",(function(){return Ae})),n.d(t,"r",(function(){return Ee})),n.d(t,"d",(function(){return we})),n.d(t,"B",(function(){return _e})),n.d(t,"t",(function(){return Ie})),n.d(t,"g",(function(){return xe})),n.d(t,"P",(function(){return ke})),n.d(t,"R",(function(){return Ne})),n.d(t,"x",(function(){return Re})),n.d(t,"J",(function(){return Me})),n.d(t,"v",(function(){return De})),n.d(t,"i",(function(){return Le})),n.d(t,"Q",(function(){return Pe})),n.d(t,"w",(function(){return Ue}));var r=n(23),a=n(10),i=n(3),o=n(5),c=n(6),s=n(20),l=n(16),u=n(30),d=n(325),b=function(e){Object(o.a)(AttachmentSignUploadApiAction,e);var t=Object(c.a)(AttachmentSignUploadApiAction);function AttachmentSignUploadApiAction(e,n){var r;return Object(i.a)(this,AttachmentSignUploadApiAction),(r=t.call(this)).file=e,r.scanForVirus=n,r}return Object(a.a)(AttachmentSignUploadApiAction,[{key:"apiEffect",value:function apiEffect(e){var t={fileName:this.file.name,fileType:Object(d.a)(this.file),fileSize:this.file.size,scanForVirus:this.scanForVirus?"1":"0"};return{path:"".concat(e.apiUrl,"/attachment/signupload?").concat(Object(u.stringify)(t)),method:l.c.GET}}}]),AttachmentSignUploadApiAction}(s.a),p=n(14),m=function(e){Object(o.a)(AttachmentCreateApiAction,e);var t=Object(c.a)(AttachmentCreateApiAction);function AttachmentCreateApiAction(e,n,r){var a;return Object(i.a)(this,AttachmentCreateApiAction),(a=t.call(this)).messageId=e,a.hash=n,a.file=r,a}return Object(a.a)(AttachmentCreateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/attachment/create"),method:l.c.POST,body:{messageId:this.messageId,name:encodeURIComponent(this.file.name),hash:this.hash,size:this.file.size,type:"attachment"}}}},{key:"mapResponse",value:function mapResponse(e){return{id:String(e.id),hash:e.hash,name:e.name,size:e.size,type:e.type}}}]),AttachmentCreateApiAction}(s.a),h=function(e){Object(o.a)(AttachmentDeleteApiAction,e);var t=Object(c.a)(AttachmentDeleteApiAction);function AttachmentDeleteApiAction(e,n){var r;return Object(i.a)(this,AttachmentDeleteApiAction),(r=t.call(this)).messageId=e,r.attachmentId=n,r}return Object(a.a)(AttachmentDeleteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/attachment/").concat(this.attachmentId),method:l.c.DELETE}}},{key:"mapResponse",value:function mapResponse(e){return e.success}}]),AttachmentDeleteApiAction}(s.a),g=n(57),j=n(8),v=function(e){Object(o.a)(AddFromSednaSearchApiAction,e);var t=Object(c.a)(AddFromSednaSearchApiAction);function AddFromSednaSearchApiAction(e,n){var r;return Object(i.a)(this,AddFromSednaSearchApiAction),(r=t.call(this)).filterSet=e,r.limit=n,r}return Object(a.a)(AddFromSednaSearchApiAction,[{key:"apiEffect",value:function apiEffect(e){var t={include:"message.document",order:g.b.FROM_NEWEST,page:1,sort:g.c.BY_RECEIVED_DATE,source:j.j.ITEMS_AND_DOCUMENTS,cause:j.i.FRESH,limit:this.limit};return{body:JSON.stringify({data:{type:"filter-set",attributes:{filter:this.filterSet.serialize()}}}),path:"".concat(e.platformUrl,"/search?")+Object(u.stringify)(t),method:l.c.POST}}}]),AddFromSednaSearchApiAction}(s.a),O=n(43),T=n(593),y=function(e){Object(o.a)(AssociateDocumentsWithTopicApiAction,e);var t=Object(c.a)(AssociateDocumentsWithTopicApiAction);function AssociateDocumentsWithTopicApiAction(e,n){var r;return Object(i.a)(this,AssociateDocumentsWithTopicApiAction),(r=t.call(this)).topicId=e,r.documentIds=n,r}return Object(a.a)(AssociateDocumentsWithTopicApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/relationships"),method:l.c.POST,body:JSON.stringify({data:this.documentIds.map((function(e){return{type:"document",id:e}}))})}}},{key:"mapResponse",value:function mapResponse(e){return e.data.map((function(e){return{id:e.id,hash:e.attributes.hash,name:e.attributes.name,size:e.attributes.size,topicId:e.attributes.topicId,type:"attachment"}}))}}]),AssociateDocumentsWithTopicApiAction}(s.a),S=n(332),C=n(47),A=n(142),E=n(568),w=function(e){Object(o.a)(AttachmentLinksApiAction,e);var t=Object(c.a)(AttachmentLinksApiAction);function AttachmentLinksApiAction(e,n){var r;return Object(i.a)(this,AttachmentLinksApiAction),(r=t.call(this)).attachmentIds=e,r.messageId=n,r}return Object(a.a)(AttachmentLinksApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/shareable-attachment/message/").concat(this.messageId,"/associate-documents"),method:l.c.POST,body:JSON.stringify({data:this.attachmentIds.map((function(e){return{type:"document",id:e}}))})}}}]),AttachmentLinksApiAction}(s.a),_=function(e){Object(o.a)(AttachmentLinksTopicApiAction,e);var t=Object(c.a)(AttachmentLinksTopicApiAction);function AttachmentLinksTopicApiAction(e,n){var r;return Object(i.a)(this,AttachmentLinksTopicApiAction),(r=t.call(this)).attachmentIds=e,r.topicId=n,r}return Object(a.a)(AttachmentLinksTopicApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/shareable-attachment/topic/").concat(this.topicId,"/associate-documents"),method:l.c.POST,body:JSON.stringify({data:this.attachmentIds.map((function(e){return{type:"document",id:e}}))})}}}]),AttachmentLinksTopicApiAction}(s.a),I=n(4),x=function(e){Object(o.a)(FlexDocumentTypesSearchApiAction,e);var t=Object(c.a)(FlexDocumentTypesSearchApiAction);function FlexDocumentTypesSearchApiAction(e){var n;return Object(i.a)(this,FlexDocumentTypesSearchApiAction),(n=t.call(this)).vesselName=e,n}return Object(a.a)(FlexDocumentTypesSearchApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/document_types?vesselName=").concat(this.vesselName),method:l.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return e.map((function(e){return Object(I.a)({name:e.name,documentTypeId:e.id},e.document?{attachmentId:e.document.attachmentId,updatedDateTime:e.document.modifiedAt,expires:e.document.expiresAt}:{})}))}}]),FlexDocumentTypesSearchApiAction}(s.a),k=function(e){Object(o.a)(AttachmentGetApiAction,e);var t=Object(c.a)(AttachmentGetApiAction);function AttachmentGetApiAction(e){var n;return Object(i.a)(this,AttachmentGetApiAction),(n=t.call(this)).attachmentId=e,n}return Object(a.a)(AttachmentGetApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/document/").concat(this.attachmentId),method:l.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return{id:e.id,hash:e.attributes.hash,name:e.attributes.name,size:e.attributes.size,type:e.attributes.type}}}]),AttachmentGetApiAction}(s.a),N=function(e){Object(o.a)(TagFlexDocumentTypeApiAction,e);var t=Object(c.a)(TagFlexDocumentTypeApiAction);function TagFlexDocumentTypeApiAction(e,n,r,a){var o;return Object(i.a)(this,TagFlexDocumentTypeApiAction),(o=t.call(this)).attachmentId=e,o.documentTypeId=n,o.vesselName=r,o.expiresAt=a,o}return Object(a.a)(TagFlexDocumentTypeApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=this.expiresAt?{expiresAt:this.expiresAt}:{};return{path:"".concat(e.apiUrl,"/attachment/").concat(this.attachmentId,"/document"),method:l.c.POST,body:Object(I.a)({attachmentId:this.attachmentId,documentTypeId:this.documentTypeId,vessel:this.vesselName},t)}}}]),TagFlexDocumentTypeApiAction}(s.a),R=function(e){Object(o.a)(UnassignFlexDocumentTypeApiAction,e);var t=Object(c.a)(UnassignFlexDocumentTypeApiAction);function UnassignFlexDocumentTypeApiAction(e,n){var r;return Object(i.a)(this,UnassignFlexDocumentTypeApiAction),(r=t.call(this)).attachmentId=e,r.id=n,r}return Object(a.a)(UnassignFlexDocumentTypeApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/attachment/").concat(this.attachmentId,"/document/").concat(this.id),method:l.c.DELETE}}}]),UnassignFlexDocumentTypeApiAction}(s.a),F=n(51),M=n(126),D=function(e){Object(o.a)(AttachmentRenameApiAction,e);var t=Object(c.a)(AttachmentRenameApiAction);function AttachmentRenameApiAction(e,n){var r;return Object(i.a)(this,AttachmentRenameApiAction),(r=t.call(this)).attachmentId=e,r.filename=n,r}return Object(a.a)(AttachmentRenameApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=JSON.stringify({data:{type:"document",attributes:{name:this.filename}}});return{path:"".concat(e.platformUrl,"/document/").concat(this.attachmentId),method:l.c.PATCH,body:t}}},{key:"mapResponse",value:function mapResponse(e){var t,n,r,a;return{id:e.id,hash:null!==(t=e.attributes.hash)&&void 0!==t?t:"",name:null!==(n=e.attributes.name)&&void 0!==n?n:"",size:null!==(r=e.attributes.size)&&void 0!==r?r:0,type:null!==(a=e.attributes.type)&&void 0!==a?a:"attachment"}}}]),AttachmentRenameApiAction}(s.a),L=function(e){Object(o.a)(AttachmentUpdateActivityApiAction,e);var t=Object(c.a)(AttachmentUpdateActivityApiAction);function AttachmentUpdateActivityApiAction(e){var n;return Object(i.a)(this,AttachmentUpdateActivityApiAction),(n=t.call(this)).attachmentId=e,n}return Object(a.a)(AttachmentUpdateActivityApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/document/").concat(this.attachmentId,"/updateICSDownloadActivity"),method:l.c.POST}}}]),AttachmentUpdateActivityApiAction}(s.a),P=n(25),U=n(27),B=function(e){Object(o.a)(SetPreviewDocument,e);var t=Object(c.a)(SetPreviewDocument);function SetPreviewDocument(e,n,r){var a;return Object(i.a)(this,SetPreviewDocument),(a=t.call(this)).doc=e,a.place=n,a.showModalBackdrop=r,a}return SetPreviewDocument}(p.a),H=function(e){Object(o.a)(RemovePreviewDocument,e);var t=Object(c.a)(RemovePreviewDocument);function RemovePreviewDocument(){return Object(i.a)(this,RemovePreviewDocument),t.apply(this,arguments)}return RemovePreviewDocument}(p.a),G=function(e){Object(o.a)(RequestEmlPreview,e);var t=Object(c.a)(RequestEmlPreview);function RequestEmlPreview(e,n){var r;return Object(i.a)(this,RequestEmlPreview),(r=t.call(this,e,n)).id=e,r.emlType=n,r}return Object(a.a)(RequestEmlPreview,[{key:"onSuccess",value:function onSuccess(e){return[new W(e)]}},{key:"onError",value:function onError(e){return[new z(this.id,e),new O.b({message:"Failed to get the Email preview. Try again.",level:j.n.warning})]}}]),RequestEmlPreview}(S.a),W=function(e){Object(o.a)(FulfillRequestEmlPreview,e);var t=Object(c.a)(FulfillRequestEmlPreview);function FulfillRequestEmlPreview(e){var n;return Object(i.a)(this,FulfillRequestEmlPreview),(n=t.call(this)).emlPreview=e,n}return FulfillRequestEmlPreview}(p.a),z=function(e){Object(o.a)(FailRequestEmlPreview,e);var t=Object(c.a)(FailRequestEmlPreview);function FailRequestEmlPreview(e,n){var r;return Object(i.a)(this,FailRequestEmlPreview),(r=t.call(this,n)).id=e,r.error=n,r}return FailRequestEmlPreview}(p.b),V=function(e){Object(o.a)(SubmitAssociateDocumentsWithMessage,e);var t=Object(c.a)(SubmitAssociateDocumentsWithMessage);function SubmitAssociateDocumentsWithMessage(e,n){var r;return Object(i.a)(this,SubmitAssociateDocumentsWithMessage),(r=t.call(this,e,n)).messageId=e,r.documentIds=n,r.eventSpec={eventCategory:"Attachment",eventAction:"Add From SEDNA"},r}return Object(a.a)(SubmitAssociateDocumentsWithMessage,[{key:"onSuccess",value:function onSuccess(e){return[new Y(this.messageId,this.documentIds,e),new O.b({message:"Attachment added",level:j.n.info})]}},{key:"onError",value:function onError(e){return[new K(this.messageId,this.documentIds),new O.b({message:"Failed to add the attachment. Try again.",level:j.n.warning})]}}]),SubmitAssociateDocumentsWithMessage}(T.a),J=function(e){Object(o.a)(SubmitAssociateDocumentsWithTopic,e);var t=Object(c.a)(SubmitAssociateDocumentsWithTopic);function SubmitAssociateDocumentsWithTopic(e,n){var r;return Object(i.a)(this,SubmitAssociateDocumentsWithTopic),(r=t.call(this,e,n)).topicId=e,r.documentIds=n,r.eventSpec={eventCategory:"Notes",eventAction:"Add From SEDNA"},r}return Object(a.a)(SubmitAssociateDocumentsWithTopic,[{key:"onSuccess",value:function onSuccess(e){return[new q(this.topicId,this.documentIds,e),new O.b({message:"Attachment added",level:j.n.info})]}},{key:"onError",value:function onError(e){return[new X(this.topicId,this.documentIds),new O.b({message:"Failed to add the attachment. Try again.",level:j.n.warning})]}}]),SubmitAssociateDocumentsWithTopic}(y),Y=function(e){Object(o.a)(FulfillAssociateDocumentsWithMessage,e);var t=Object(c.a)(FulfillAssociateDocumentsWithMessage);function FulfillAssociateDocumentsWithMessage(e,n,r){var a;return Object(i.a)(this,FulfillAssociateDocumentsWithMessage),(a=t.call(this)).messageId=e,a.originalDocumentIds=n,a.documents=r,a}return FulfillAssociateDocumentsWithMessage}(p.a),q=function(e){Object(o.a)(FulfillAssociateDocumentsWithTopic,e);var t=Object(c.a)(FulfillAssociateDocumentsWithTopic);function FulfillAssociateDocumentsWithTopic(e,n,r){var a;return Object(i.a)(this,FulfillAssociateDocumentsWithTopic),(a=t.call(this)).topicId=e,a.originalDocumentIds=n,a.topicAttachments=r,a}return FulfillAssociateDocumentsWithTopic}(p.a),K=function(e){Object(o.a)(FailAssociateDocumentsWithMessage,e);var t=Object(c.a)(FailAssociateDocumentsWithMessage);function FailAssociateDocumentsWithMessage(e,n){var r;return Object(i.a)(this,FailAssociateDocumentsWithMessage),(r=t.call(this)).messageId=e,r.originalDocumentIds=n,r}return FailAssociateDocumentsWithMessage}(p.a),X=function(e){Object(o.a)(FailAssociateDocumentsWithTopic,e);var t=Object(c.a)(FailAssociateDocumentsWithTopic);function FailAssociateDocumentsWithTopic(e,n){var r;return Object(i.a)(this,FailAssociateDocumentsWithTopic),(r=t.call(this)).topicId=e,r.originalDocumentIds=n,r}return FailAssociateDocumentsWithTopic}(p.a),Q=function(e){Object(o.a)(SubmitAddFromSednaSearch,e);var t=Object(c.a)(SubmitAddFromSednaSearch);function SubmitAddFromSednaSearch(e,n,r){var a;return Object(i.a)(this,SubmitAddFromSednaSearch),(a=t.call(this,e,r)).filterSet=e,a.currentUser=n,a.limit=r,a}return Object(a.a)(SubmitAddFromSednaSearch,[{key:"onSuccess",value:function onSuccess(e){return[new Z(this.filterSet,e),new C.j(this.filterSet,e,"",this.currentUser.id,!1,null,j.j.ITEMS_AND_DOCUMENTS,j.i.FRESH)]}},{key:"onError",value:function onError(e){return[new O.b({message:"Failed to find messages. Try again.",level:j.n.warning})]}}]),SubmitAddFromSednaSearch}(v),Z=function(e){Object(o.a)(FulfillAddFromSednaSearch,e);var t=Object(c.a)(FulfillAddFromSednaSearch);function FulfillAddFromSednaSearch(e,n){var r,a;function isAttachment(e){return void 0!==e}Object(i.a)(this,FulfillAddFromSednaSearch),(a=t.call(this)).filterSet=e,a.messages=void 0;var o=(null!==(r=n.included)&&void 0!==r?r:[]).reduce((function(e,t){if(!function isMessageDocument(e){return"document"===e.type}(t))return e;var n={id:t.id,hash:t.attributes.hash,name:t.attributes.name,size:t.attributes.size,type:t.attributes.type,createdAt:t.attributes.createdAt};return e.set(t.id,n)}),new Map);return a.messages=n.data.filter((function isMessageResource(e){return"message"===e.type})).map((function(e){var t;return{id:e.id,subject:null!==(t=e.attributes.subject)&&void 0!==t?t:"",documents:e.relationships.document?e.relationships.document.data.map((function(e){return o.get(e.id)})).filter(isAttachment):[]}})).reverse(),a}return FulfillAddFromSednaSearch}(p.a),$=function(e){Object(o.a)(SubmitSignAttachmentUpload,e);var t=Object(c.a)(SubmitSignAttachmentUpload);function SubmitSignAttachmentUpload(e,n,r){var a;return Object(i.a)(this,SubmitSignAttachmentUpload),(a=t.call(this,n,r)).messageId=e,a.file=n,a.scanForVirus=r,a.eventSpec={eventCategory:"Attachment",eventAction:"Upload"},a}return Object(a.a)(SubmitSignAttachmentUpload,[{key:"onSuccess",value:function onSuccess(e){return[new ee(this.messageId,this.file,e),new ne(this.messageId,e.url,e.storedFileName,this.file)]}},{key:"onError",value:function onError(e){return[new te(this.messageId,this.file,e)]}}]),SubmitSignAttachmentUpload}(b),ee=function(e){Object(o.a)(FulfillSignAttachmentUpload,e);var t=Object(c.a)(FulfillSignAttachmentUpload);function FulfillSignAttachmentUpload(e,n,r){var a;return Object(i.a)(this,FulfillSignAttachmentUpload),(a=t.call(this)).messageId=e,a.file=n,a.response=r,a}return FulfillSignAttachmentUpload}(p.a),te=function(e){Object(o.a)(FailSignAttachmentUpload,e);var t=Object(c.a)(FailSignAttachmentUpload);function FailSignAttachmentUpload(e,n,r){var a;return Object(i.a)(this,FailSignAttachmentUpload),(a=t.call(this,r)).messageId=e,a.file=n,a.error=r,a}return FailSignAttachmentUpload}(p.b),ne=function(e){Object(o.a)(SubmitAttachmentUpload,e);var t=Object(c.a)(SubmitAttachmentUpload);function SubmitAttachmentUpload(e,n,r,a){var o;return Object(i.a)(this,SubmitAttachmentUpload),(o=t.call(this)).messageId=e,o.url=n,o.hash=r,o.file=a,o.timingStart=performance.now(),o}return Object(a.a)(SubmitAttachmentUpload,[{key:"httpEffect",value:function httpEffect(){var e=this;return new l.a({url:this.url,method:l.c.PUT,headers:{"Content-Type":Object(d.a)(this.file)},body:this.file,callbacks:{responseMapper:function responseMapper(e){return e.response},onSuccess:function onSuccess(t){return[new re(e.messageId,e.file),new ie(e.messageId,e.hash,e.file)]},onError:function onError(t){return[new ae(e.messageId,e.file,t)]}}})}}]),SubmitAttachmentUpload}(p.a),re=function(e){Object(o.a)(FulfillAttachmentUpload,e);var t=Object(c.a)(FulfillAttachmentUpload);function FulfillAttachmentUpload(e,n){var r;return Object(i.a)(this,FulfillAttachmentUpload),(r=t.call(this)).messageId=e,r.file=n,r}return FulfillAttachmentUpload}(p.a),ae=function(e){Object(o.a)(FailAttachmentUpload,e);var t=Object(c.a)(FailAttachmentUpload);function FailAttachmentUpload(e,n,r){var a;return Object(i.a)(this,FailAttachmentUpload),(a=t.call(this,r)).messageId=e,a.file=n,a.error=r,a}return FailAttachmentUpload}(p.b),ie=function(e){Object(o.a)(SubmitAttachmentCreate,e);var t=Object(c.a)(SubmitAttachmentCreate);function SubmitAttachmentCreate(){return Object(i.a)(this,SubmitAttachmentCreate),t.apply(this,arguments)}return Object(a.a)(SubmitAttachmentCreate,[{key:"onSuccess",value:function onSuccess(e){return[new oe(this.messageId,this.file,e)]}},{key:"onError",value:function onError(e){return[new ce(this.messageId,this.file,e)]}}]),SubmitAttachmentCreate}(m),oe=function(e){Object(o.a)(FulfillAttachmentCreate,e);var t=Object(c.a)(FulfillAttachmentCreate);function FulfillAttachmentCreate(e,n,r){var a;return Object(i.a)(this,FulfillAttachmentCreate),(a=t.call(this)).messageId=e,a.file=n,a.response=r,a}return FulfillAttachmentCreate}(p.a),ce=function(e){Object(o.a)(FailAttachmentCreate,e);var t=Object(c.a)(FailAttachmentCreate);function FailAttachmentCreate(e,n,r){var a;return Object(i.a)(this,FailAttachmentCreate),(a=t.call(this,r)).messageId=e,a.file=n,a.error=r,a}return FailAttachmentCreate}(p.b),se=function(e){Object(o.a)(SubmitAttachmentDelete,e);var t=Object(c.a)(SubmitAttachmentDelete);function SubmitAttachmentDelete(){var e;Object(i.a)(this,SubmitAttachmentDelete);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).eventSpec={eventCategory:"Attachment",eventAction:"Delete"},e}return Object(a.a)(SubmitAttachmentDelete,[{key:"onSuccess",value:function onSuccess(e){return[new le(this.messageId,this.attachmentId,e)]}},{key:"onError",value:function onError(e){return[new ue(this.messageId,this.attachmentId,e)]}}]),SubmitAttachmentDelete}(h),le=function(e){Object(o.a)(FulfillAttachmentDelete,e);var t=Object(c.a)(FulfillAttachmentDelete);function FulfillAttachmentDelete(e,n,r){var a;return Object(i.a)(this,FulfillAttachmentDelete),(a=t.call(this)).messageId=e,a.attachmentId=n,a.response=r,a}return FulfillAttachmentDelete}(p.a),ue=function(e){Object(o.a)(FailAttachmentDelete,e);var t=Object(c.a)(FailAttachmentDelete);function FailAttachmentDelete(e,n,r){var a;return Object(i.a)(this,FailAttachmentDelete),(a=t.call(this,r)).messageId=e,a.attachmentId=n,a.error=r,a}return FailAttachmentDelete}(p.b),de=function(e){Object(o.a)(SubmitAttachmentRename,e);var t=Object(c.a)(SubmitAttachmentRename);function SubmitAttachmentRename(){return Object(i.a)(this,SubmitAttachmentRename),t.apply(this,arguments)}return Object(a.a)(SubmitAttachmentRename,[{key:"onSuccess",value:function onSuccess(e){return[new fe(e)]}},{key:"onError",value:function onError(e){return[new be(this.attachmentId,e),new O.b({message:"Failed to rename attachment.",level:j.n.warning})]}}]),SubmitAttachmentRename}(D),fe=function(e){Object(o.a)(FulfillAttachmentRename,e);var t=Object(c.a)(FulfillAttachmentRename);function FulfillAttachmentRename(e){var n;return Object(i.a)(this,FulfillAttachmentRename),(n=t.call(this)).document=e,n}return FulfillAttachmentRename}(p.a),be=function(e){Object(o.a)(FailAttachmentRename,e);var t=Object(c.a)(FailAttachmentRename);function FailAttachmentRename(e,n){var r;return Object(i.a)(this,FailAttachmentRename),(r=t.call(this,n)).attachmentId=e,r.error=n,r}return FailAttachmentRename}(p.b),pe=function(e){Object(o.a)(RequestAttachmentsAsTopicLinks,e);var t=Object(c.a)(RequestAttachmentsAsTopicLinks);function RequestAttachmentsAsTopicLinks(e,n){var r;return Object(i.a)(this,RequestAttachmentsAsTopicLinks),(r=t.call(this,e.map((function(e){return e.id})),n)).attachments=e,r.topicId=n,r}return Object(a.a)(RequestAttachmentsAsTopicLinks,[{key:"onError",value:function onError(e){return[new je(this.attachments,e)]}},{key:"onSuccess",value:function onSuccess(e){var t=e.data.map((function(e){return{publicUrl:e.meta.publicDownload,internalUrl:e.meta.download,name:e.attributes.name,size:e.attributes.size,type:"attachment"}}));return[new ge(t)]}}]),RequestAttachmentsAsTopicLinks}(_),me=function(e){Object(o.a)(RequestAddFromSednaDocuments,e);var t=Object(c.a)(RequestAddFromSednaDocuments);function RequestAddFromSednaDocuments(){return Object(i.a)(this,RequestAddFromSednaDocuments),t.apply(this,arguments)}return RequestAddFromSednaDocuments}(p.a),he=function(e){Object(o.a)(RequestAttachmentsAsLinks,e);var t=Object(c.a)(RequestAttachmentsAsLinks);function RequestAttachmentsAsLinks(e,n){var r;return Object(i.a)(this,RequestAttachmentsAsLinks),(r=t.call(this,e.map((function(e){return e.id})),n)).attachments=e,r.messageId=n,r}return Object(a.a)(RequestAttachmentsAsLinks,[{key:"onError",value:function onError(e){return[new je(this.attachments,e)]}},{key:"onSuccess",value:function onSuccess(e){var t=e.data.map((function(e){return{publicUrl:e.meta.publicDownload,internalUrl:e.meta.download,name:e.attributes.name,size:e.attributes.size,type:"attachment"}}));return[new ge(t)]}}]),RequestAttachmentsAsLinks}(w),ge=function(e){Object(o.a)(FulfillAttachmentsAsLinks,e);var t=Object(c.a)(FulfillAttachmentsAsLinks);function FulfillAttachmentsAsLinks(e){var n;return Object(i.a)(this,FulfillAttachmentsAsLinks),(n=t.call(this)).attachmentLinks=e,n}return FulfillAttachmentsAsLinks}(p.a),je=function(e){Object(o.a)(FailAttachmentsAsLinks,e);var t=Object(c.a)(FailAttachmentsAsLinks);function FailAttachmentsAsLinks(e,n){var r;return Object(i.a)(this,FailAttachmentsAsLinks),(r=t.call(this,n)).failedAttachments=e,r}return FailAttachmentsAsLinks}(p.b),ve=function(e){Object(o.a)(GetMessageLinks,e);var t=Object(c.a)(GetMessageLinks);function GetMessageLinks(e){var n;return Object(i.a)(this,GetMessageLinks),(n=t.call(this,e.map((function(e){return e.id})))).messageLinkMeta=e,n}return Object(a.a)(GetMessageLinks,[{key:"onError",value:function onError(e){return[new Te(this.messageLinkMeta,e)]}},{key:"onSuccess",value:function onSuccess(e){var t=this,n=e.reduce((function(e,n){var a=t.messageLinkMeta.find((function(e){return e.id===n.data.relationships.message.data.id})),i=M.e?"".concat(Object(M.c)(),"/"):"";return a?[].concat(Object(r.a)(e),[{internalUrl:"".concat(window.location.origin).concat(F.i,"/platform/message/").concat(a.id),publicUrl:window.location.origin+F.i+"/shared-message/".concat(i).concat(n.data.id),name:a.subject,id:a.id,type:"message"}]):e}),[]);return[new Oe(n)]}}]),GetMessageLinks}(E.a),Oe=function(e){Object(o.a)(FulfillGetMessageLinks,e);var t=Object(c.a)(FulfillGetMessageLinks);function FulfillGetMessageLinks(e){var n;return Object(i.a)(this,FulfillGetMessageLinks),(n=t.call(this)).links=e,n}return FulfillGetMessageLinks}(p.a),Te=function(e){Object(o.a)(FailGetMessageLinks,e);var t=Object(c.a)(FailGetMessageLinks);function FailGetMessageLinks(e,n){var r;return Object(i.a)(this,FailGetMessageLinks),(r=t.call(this,n)).messages=e,r}return FailGetMessageLinks}(p.b),ye=function(e){Object(o.a)(RequestFlexDocumentTypes,e);var t=Object(c.a)(RequestFlexDocumentTypes);function RequestFlexDocumentTypes(e){var n;return Object(i.a)(this,RequestFlexDocumentTypes),(n=t.call(this,e)).vesselName=e,n}return Object(a.a)(RequestFlexDocumentTypes,[{key:"onError",value:function onError(e){return[new O.b({message:"Unable to fetch documents",level:j.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){return[new Se({vesselName:this.vesselName,flexDocumentTypes:e})]}}]),RequestFlexDocumentTypes}(x),Se=function(e){Object(o.a)(FulFillFlexDocumentTypes,e);var t=Object(c.a)(FulFillFlexDocumentTypes);function FulFillFlexDocumentTypes(e){var n;return Object(i.a)(this,FulFillFlexDocumentTypes),(n=t.call(this)).state=e,n}return FulFillFlexDocumentTypes}(p.a),Ce=function(e){Object(o.a)(FailFlexDocumentTypes,e);var t=Object(c.a)(FailFlexDocumentTypes);function FailFlexDocumentTypes(e,n){var r;return Object(i.a)(this,FailFlexDocumentTypes),(r=t.call(this,n)).vesselName=e,r.error=n,r}return FailFlexDocumentTypes}(p.b),Ae=function(e){Object(o.a)(RequestFDLinks,e);var t=Object(c.a)(RequestFDLinks);function RequestFDLinks(e,n){var r;return Object(i.a)(this,RequestFDLinks),(r=t.call(this,e.map((function(e){return e.attachmentId.toString(10)})),n)).flexDocumentTypes=e,r.messageId=n,r}return Object(a.a)(RequestFDLinks,[{key:"onError",value:function onError(e){return[new we(this.flexDocumentTypes,e)]}},{key:"onSuccess",value:function onSuccess(e){var t=e.data.map((function(e){return{publicUrl:e.meta.publicDownload,internalUrl:e.meta.download,name:e.attributes.name,size:e.attributes.size,type:"attachment"}}));return[new Ee(t)]}}]),RequestFDLinks}(w),Ee=function(e){Object(o.a)(FulfillFDLinks,e);var t=Object(c.a)(FulfillFDLinks);function FulfillFDLinks(e){var n;return Object(i.a)(this,FulfillFDLinks),(n=t.call(this)).links=e,n}return FulfillFDLinks}(p.a),we=function(e){Object(o.a)(FailFdLinks,e);var t=Object(c.a)(FailFdLinks);function FailFdLinks(e,n){var r;return Object(i.a)(this,FailFdLinks),(r=t.call(this,n)).documents=e,r.error=n,r}return FailFdLinks}(p.b),_e=function(e){Object(o.a)(RequestAttachmentDetails,e);var t=Object(c.a)(RequestAttachmentDetails);function RequestAttachmentDetails(){return Object(i.a)(this,RequestAttachmentDetails),t.apply(this,arguments)}return Object(a.a)(RequestAttachmentDetails,[{key:"onError",value:function onError(e){return[new xe(this.attachmentId,e)]}},{key:"onSuccess",value:function onSuccess(e){return[new Ie(e)]}}]),RequestAttachmentDetails}(k),Ie=function(e){Object(o.a)(FulfillRequestAttachmentDetails,e);var t=Object(c.a)(FulfillRequestAttachmentDetails);function FulfillRequestAttachmentDetails(e){var n;return Object(i.a)(this,FulfillRequestAttachmentDetails),(n=t.call(this)).response=e,n}return FulfillRequestAttachmentDetails}(p.a),xe=function(e){Object(o.a)(FailRequestAttachmentDetails,e);var t=Object(c.a)(FailRequestAttachmentDetails);function FailRequestAttachmentDetails(e,n){var r;return Object(i.a)(this,FailRequestAttachmentDetails),(r=t.call(this,n)).id=e,r.error=n,r}return FailRequestAttachmentDetails}(p.b),ke=function(e){Object(o.a)(TrackDownloadMessageDocument,e);var t=Object(c.a)(TrackDownloadMessageDocument);function TrackDownloadMessageDocument(e){var n;return Object(i.a)(this,TrackDownloadMessageDocument),(n=t.call(this)).attachmentId=e,n.eventSpec={eventCategory:"Message Document",eventAction:"Document Download",eventLabel:n.attachmentId},n}return TrackDownloadMessageDocument}(p.a),Ne=function(e){Object(o.a)(UpdateActivity,e);var t=Object(c.a)(UpdateActivity);function UpdateActivity(){return Object(i.a)(this,UpdateActivity),t.apply(this,arguments)}return Object(a.a)(UpdateActivity,[{key:"onError",value:function onError(e){return[new Fe(this.attachmentId,e)]}},{key:"onSuccess",value:function onSuccess(e){return[new Re(e)]}}]),UpdateActivity}(L),Re=function(e){Object(o.a)(FulfillUpdateActivity,e);var t=Object(c.a)(FulfillUpdateActivity);function FulfillUpdateActivity(e){var n;return Object(i.a)(this,FulfillUpdateActivity),(n=t.call(this)).message=e,n.details=void 0,n.details=U.G.mapToDetails(e,new A.c(e.included),P.a.empty()),n}return FulfillUpdateActivity}(p.a),Fe=function(e){Object(o.a)(FailUpdateActivity,e);var t=Object(c.a)(FailUpdateActivity);function FailUpdateActivity(e,n){var r;return Object(i.a)(this,FailUpdateActivity),(r=t.call(this,n)).id=e,r.error=n,r}return FailUpdateActivity}(p.b),Me=function(e){Object(o.a)(SubmitAssignFlexDocumentType,e);var t=Object(c.a)(SubmitAssignFlexDocumentType);function SubmitAssignFlexDocumentType(e,n,r,a,o){var c;return Object(i.a)(this,SubmitAssignFlexDocumentType),(c=t.call(this,e,n,r,o)).attachmentId=e,c.documentTypeId=n,c.vesselName=r,c.documentTypeName=a,c.expiresAt=o,c}return Object(a.a)(SubmitAssignFlexDocumentType,[{key:"onError",value:function onError(e){return[new O.b({message:"Failed to tag the document. Please refresh the page and try again.",level:j.n.warning}),new Le(this.attachmentId)]}},{key:"onSuccess",value:function onSuccess(e){return[new De(e.attachmentId.toString(),e.id.toString())]}}]),SubmitAssignFlexDocumentType}(N),De=function(e){Object(o.a)(FulfillSubmitAssignFlexDocumentType,e);var t=Object(c.a)(FulfillSubmitAssignFlexDocumentType);function FulfillSubmitAssignFlexDocumentType(e,n){var r;return Object(i.a)(this,FulfillSubmitAssignFlexDocumentType),(r=t.call(this)).attachmentId=e,r.id=n,r}return FulfillSubmitAssignFlexDocumentType}(p.a),Le=function(e){Object(o.a)(FailSubmitAssignFlexDocumentType,e);var t=Object(c.a)(FailSubmitAssignFlexDocumentType);function FailSubmitAssignFlexDocumentType(e){var n;return Object(i.a)(this,FailSubmitAssignFlexDocumentType),(n=t.call(this)).attachmentId=e,n}return FailSubmitAssignFlexDocumentType}(p.a),Pe=function(e){Object(o.a)(UnassignFlexDocumentType,e);var t=Object(c.a)(UnassignFlexDocumentType);function UnassignFlexDocumentType(e,n,r){var a;return Object(i.a)(this,UnassignFlexDocumentType),(a=t.call(this,e,n)).attachmentId=e,a.id=n,a.vesselName=r,a}return Object(a.a)(UnassignFlexDocumentType,[{key:"onError",value:function onError(e){return[new O.b({message:"Failed to un tag the document. Please try again.",level:j.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){return[new Ue(this.attachmentId)]}}]),UnassignFlexDocumentType}(R),Ue=function(e){Object(o.a)(FulfillUnassignFlexDocumentType,e);var t=Object(c.a)(FulfillUnassignFlexDocumentType);function FulfillUnassignFlexDocumentType(e){var n;return Object(i.a)(this,FulfillUnassignFlexDocumentType),(n=t.call(this)).attachmentId=e,n}return FulfillUnassignFlexDocumentType}(p.a)},function(e,t,n){"use strict";n.d(t,"l",(function(){return l})),n.d(t,"m",(function(){return u})),n.d(t,"o",(function(){return d})),n.d(t,"n",(function(){return b})),n.d(t,"p",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"i",(function(){return h})),n.d(t,"k",(function(){return g})),n.d(t,"b",(function(){return j})),n.d(t,"g",(function(){return v})),n.d(t,"h",(function(){return O})),n.d(t,"f",(function(){return T})),n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return S})),n.d(t,"j",(function(){return C})),n.d(t,"e",(function(){return A}));var r=n(3),a=n(5),i=n(6),o=n(14),c=n(57),s=n(600),l=function(e){Object(a.a)(WebSocketConnectAction,e);var t=Object(i.a)(WebSocketConnectAction);function WebSocketConnectAction(e){var n;return Object(r.a)(this,WebSocketConnectAction),(n=t.call(this)).url=e,n}return WebSocketConnectAction}(o.a),u=function(e){Object(a.a)(WebSocketConnectedAction,e);var t=Object(i.a)(WebSocketConnectedAction);function WebSocketConnectedAction(){return Object(r.a)(this,WebSocketConnectedAction),t.apply(this,arguments)}return WebSocketConnectedAction}(o.a),d=function(e){Object(a.a)(WebSocketErrorAction,e);var t=Object(i.a)(WebSocketErrorAction);function WebSocketErrorAction(){return Object(r.a)(this,WebSocketErrorAction),t.apply(this,arguments)}return WebSocketErrorAction}(o.b),b=function(e){Object(a.a)(WebSocketDisconnectAction,e);var t=Object(i.a)(WebSocketDisconnectAction);function WebSocketDisconnectAction(){return Object(r.a)(this,WebSocketDisconnectAction),t.apply(this,arguments)}return WebSocketDisconnectAction}(o.a),p=function(e){Object(a.a)(WebSocketSendDataAction,e);var t=Object(i.a)(WebSocketSendDataAction);function WebSocketSendDataAction(e){var n;return Object(r.a)(this,WebSocketSendDataAction),(n=t.call(this)).data=e,n}return WebSocketSendDataAction}(o.a),m=function(e){Object(a.a)(MessageRelevanceChanged,e);var t=Object(i.a)(MessageRelevanceChanged);function MessageRelevanceChanged(e,n,a){var i;return Object(r.a)(this,MessageRelevanceChanged),(i=t.call(this)).messageId=e,i.applies=n,i.search=a,i}return MessageRelevanceChanged}(o.a),h=function(e){Object(a.a)(MessagesRelevanceChanged,e);var t=Object(i.a)(MessagesRelevanceChanged);function MessagesRelevanceChanged(e,n){var a;return Object(r.a)(this,MessagesRelevanceChanged),(a=t.call(this)).data=e,a.search=n,a}return MessagesRelevanceChanged}(o.a),g=function(e){Object(a.a)(TopicRelevanceChanged,e);var t=Object(i.a)(TopicRelevanceChanged);function TopicRelevanceChanged(e,n,a){var i;return Object(r.a)(this,TopicRelevanceChanged),(i=t.call(this)).topicId=e,i.applies=n,i.search=a,i}return TopicRelevanceChanged}(o.a),j=function(e){Object(a.a)(MessageDeleted,e);var t=Object(i.a)(MessageDeleted);function MessageDeleted(e){var n;return Object(r.a)(this,MessageDeleted),(n=t.call(this)).deletedMessageId=e,n}return MessageDeleted}(o.a),v=function(e){Object(a.a)(MessageTagsAdded,e);var t=Object(i.a)(MessageTagsAdded);function MessageTagsAdded(e,n){var a;return Object(r.a)(this,MessageTagsAdded),(a=t.call(this)).response=e,a.currentUserId=n,a.messageTags=void 0,a.messageTags=c.a.tagsMapper(e),a}return MessageTagsAdded}(o.a),O=function(e){Object(a.a)(MessageTagsRemoved,e);var t=Object(i.a)(MessageTagsRemoved);function MessageTagsRemoved(e,n){var a;return Object(r.a)(this,MessageTagsRemoved),(a=t.call(this)).response=e,a.currentUserId=n,a.messageTags=void 0,a.messageTags=c.a.tagsMapper(e),a}return MessageTagsRemoved}(o.a),T=function(e){Object(a.a)(MessageShared,e);var t=Object(i.a)(MessageShared);function MessageShared(e,n,a,i,o){var c;return Object(r.a)(this,MessageShared),(c=t.call(this)).messageId=e,c.userId=n,c.sharedDate=a,c.fromTeamId=i,c.teamIds=o,c}return MessageShared}(o.a),y=function(e){Object(a.a)(MessageCommentsAdded,e);var t=Object(i.a)(MessageCommentsAdded);function MessageCommentsAdded(e){var n;return Object(r.a)(this,MessageCommentsAdded),(n=t.call(this)).response=e,n.comments=void 0,n.comments=e.map(s.a.commentsMapper),n}return MessageCommentsAdded}(o.a),S=(o.a,function(e){Object(a.a)(MessageEdited,e);var t=Object(i.a)(MessageEdited);function MessageEdited(e){var n;return Object(r.a)(this,MessageEdited),(n=t.call(this)).message=e,n}return MessageEdited}(o.a)),C=function(e){Object(a.a)(SenderChanged,e);var t=Object(i.a)(SenderChanged);function SenderChanged(e){var n;return Object(r.a)(this,SenderChanged),(n=t.call(this)).message=e,n}return SenderChanged}(o.a),A=function(e){Object(a.a)(MessageSentNow,e);var t=Object(i.a)(MessageSentNow);function MessageSentNow(e,n,a){var i;return Object(r.a)(this,MessageSentNow),(i=t.call(this)).messageId=e,i.userId=n,i.sentDate=a,i}return MessageSentNow}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return comparing})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return reversed}));var r=n(32),a=n.n(r),i=n(128),o=function momentTime(e){return a()(e).format(i.a)};function comparing(e){return function(t,n){return e(t)<e(n)?-1:e(t)>e(n)?1:0}}var c=function timeStringComparator(e,t){var n=o(e.time),r=o(t.time);return n===r?0:n>r?1:-1},s=function nameComparator(e,t){return e<t?-1:e>t?1:0};function reversed(e){return function(t,n){return-1*e(t,n)}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return friendlyDatetime})),n.d(t,"b",(function(){return friendlyDate})),n.d(t,"e",(function(){return friendlyTime})),n.d(t,"f",(function(){return timeToSeconds})),n.d(t,"d",(function(){return friendlyDatetimeObj}));var r=n(32),a=n.n(r),i="MMM D YYYY H:mm";function friendlyDatetime(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=a()();return e.isSame(r,"day")?n?"Today "+e.format("[at] H:mm"):e.format("HH:mm"):e.isSame(r,"year")?e.format("MMM D H:mm"):e.format("MMM D YYYY"+(t?" H:mm":""))}function friendlyDate(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?e.isSame(new Date,"day")?"Today":e.format("MMM D YYYY"):e.isSame(new Date,"day")?"Today":e.isSame(a()(),"year")?e.format("MMM D"):e.format("MMM D YYYY")}function friendlyTime(e){return e.format("HH:mm")}function timeToSeconds(e){return"0"===e?0:Math.floor(new Date(e).getTime()/1e3)}function friendlyDatetimeObj(e){var t=a()();return e.isSame(t,"day")?{day:"Today",time:e.format("H:mm")}:{day:e.format("MMM D YYYY"),time:e.format("H:mm")}}},,,,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.comment="comment",e.readBy="readBy",e.share="share",e.sent="sent",e.assigned="assigned",e.created="created",e.followUp="followUp",e.archivedForTeam="archived_for_team",e.scheduled="message_scheduled",e.cancelled="scheduled_message_cancelled",e.edited="draft_edited",e.senderChanged="sender_changed",e.sendNow="send_now",e.icsDownloaded="ics_downloaded",e.externalFollowUp="external_follow_up",e.externalShare="externalShare",e.publicComment="publicComment"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(4),a=n(0),i=(n(1),n(12)),o=n(19),c=n(34),s=n(58),l={DropdownItemWrapper:i.b.div.withConfig({displayName:"dropdown-item__DropdownItemWrapper",componentId:"qez9qh-0"})(["padding:0 var(--spacing-3);"]),DropdownItem:Object(i.b)(c.a).withConfig({displayName:"dropdown-item__DropdownItem",componentId:"qez9qh-1"})(["display:flex;align-items:center;justify-content:left;padding:0 var(--spacing-4);height:calc(var(--spacing-3) * 2 + var(--icon-md));border-radius:var(--br1);font-weight:400;color:var(--menu-item-text);width:100%;white-space:nowrap;"," a{color:initial;}&:focus{outline:0;color:var(--menu-item-active-text);background:initial;}&.c--danger{color:var(--danger);&:hover,&:active{color:var(--danger);background:var(--danger-light);}}&:hover,&:active{"," background:var(--menu-item-hover-background);}"],(function(e){return e.$active&&"\n      color: var(--menu-item-active-text);\n    "}),(function(e){return!e.disabled&&"\n         color: var(--menu-item-hover-text) !important;\n      "})),Icon:Object(i.b)(o.a).withConfig({displayName:"dropdown-item__Icon",componentId:"qez9qh-2"})(["margin-right:var(--spacing-3);"]),DropdownText:i.b.div.withConfig({displayName:"dropdown-item__DropdownText",componentId:"qez9qh-3"})(["text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:var(--icon-md);flex:1 1 auto;"]),Divider:i.b.div.withConfig({displayName:"dropdown-item__Divider",componentId:"qez9qh-4"})(['width:100%;position:relative;margin:var(--spacing-2) 0;padding:0 var(--spacing-3);&::before{content:"";position:absolute;top:50%;transform:translateY(-50%);height:0.5px;width:calc(100% - var(--spacing-3) * 2);background-color:var(--border-1);}'])},u=function DropdownItem(e){var t,n=function handleWrapperClick(t){e.href||(t.preventDefault(),t.stopPropagation())};if(e.divider)return Object(a.jsx)(l.Divider,{});var i=Object(a.jsxs)(l.DropdownItem,{danger:e.danger,disabled:e.disabled,onClick:function handleClick(t){var n,r,a;null===(n=e.itemProps)||void 0===n||null===(r=n.onClick)||void 0===r||r.call(n,t),null===(a=e.onClick)||void 0===a||a.call(e,t)},buttonStyle:"link",url:e.href,openNewPage:e.openNewPage,"data-testid":null!==(t=e.testId)&&void 0!==t?t:"dropdown-item",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,$active:e.active,children:[e.icon&&Object(a.jsx)(l.Icon,{glyph:e.icon,"data-testid":"dropdown-item-icon",size:"small"}),e.text&&Object(a.jsx)(l.DropdownText,{children:e.text}),e.children]});return e.tooltipContent?Object(a.jsx)(l.DropdownItemWrapper,Object(r.a)(Object(r.a)({},e.itemProps),{},{onClick:n,children:Object(a.jsx)(s.a,{content:Object(a.jsx)("span",{children:e.tooltipContent}),maxWidth:300,placement:"auto-end",boundary:"scrollParent",showContentWhenDisabled:!0,children:i})})):Object(a.jsx)(l.DropdownItemWrapper,Object(r.a)(Object(r.a)({},e.itemProps),{},{onClick:n,children:i}))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return parseHotkeys}));var r;function parseHotkeys(e){return e.split(",").filter(hotkeyFilter).map((function(e){return e.split("+")}))}function hotkeyFilter(e){return!e.toLowerCase().includes("\u21ea")}!function(e){e.ARCHIVE_ITEM="e,\u21ea+e",e.ARCHIVE_FOR_TEAM="shift+e,\u21ea+shift+e",e.ESCAPE_ITEM_SELECTION="esc,\u21ea+esc",e.FOLLOW_ITEM="f,\u21ea+f",e.FORWARD="shift+f,\u21ea+shift+f",e.DUPLICATE_ITEM="d,\u21ea+d",e.NEXT_ITEM="down,\u21ea+down",e.PREV_ITEM="up,\u21ea+up",e.PRINT="Ctrl+p,\u21ea+Ctrl+p",e.REPLY="shift+r,\u21ea+shift+r",e.REPLY_ALL="r,\u21ea+r",e.TOGGLE_MODAL="command+j,ctrl+j",e.TOGGLE_RIGHT_PANE="shift+right",e.TOGGLE_LEFT_PANE="shift+left",e.NEW_MESSAGE="m,\u21ea+m",e.NEW_TOPIC="n,\u21ea+n",e.FOCUS_COMMENT_INPUT="c,\u21ea+c",e.FOCUS_TAGGING_INPUT="t,\u21ea+t",e.OPEN_BOOKMARK="b,\u21ea+b",e.CURSOR_TO_SEARCH="s,\u21ea+s",e.NAVIGATE_SIDE_PANE="left,right",e.BATCH_SELECT_DOWN="shift+down",e.BATCH_SELECT_UP="shift+up",e.SELECT_FIRST_MESSAGE="ctrl+shift+up,\u21ea+ctrl+shift+up",e.GO_HOME="shift+h",e.TOGGLE_SIDEBAR="shift+g"}(r||(r={}))},,function(e,t,n){"use strict";n.d(t,"i",(function(){return w})),n.d(t,"l",(function(){return _})),n.d(t,"o",(function(){return I})),n.d(t,"f",(function(){return x})),n.d(t,"n",(function(){return N})),n.d(t,"r",(function(){return R})),n.d(t,"d",(function(){return M})),n.d(t,"t",(function(){return D})),n.d(t,"s",(function(){return L})),n.d(t,"e",(function(){return U})),n.d(t,"b",(function(){return B})),n.d(t,"k",(function(){return H})),n.d(t,"p",(function(){return G})),n.d(t,"g",(function(){return W})),n.d(t,"c",(function(){return z})),n.d(t,"q",(function(){return V})),n.d(t,"h",(function(){return J})),n.d(t,"m",(function(){return q})),n.d(t,"j",(function(){return K})),n.d(t,"a",(function(){return X}));var r=n(4),a=n(10),i=n(3),o=n(5),c=n(6),s=n(20),l=n(16),u=function(e){Object(o.a)(CreateSavedSearchApiAction,e);var t=Object(c.a)(CreateSavedSearchApiAction);function CreateSavedSearchApiAction(e,n){var r;return Object(i.a)(this,CreateSavedSearchApiAction),(r=t.call(this)).searchName=e,r.filterSet=n,r}return Object(a.a)(CreateSavedSearchApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=JSON.stringify({data:{type:"filter-set",attributes:{filter:this.filterSet.serialize()}}});return{path:"".concat(e.platformUrl,"/search/new?searchName=").concat(encodeURIComponent(this.searchName)),method:l.c.POST,body:t}}}]),CreateSavedSearchApiAction}(s.a),d=n(29),b=n(13),p=n(14),m=function(e){Object(o.a)(SavedSearchDeleteAction,e);var t=Object(c.a)(SavedSearchDeleteAction);function SavedSearchDeleteAction(e){var n;return Object(i.a)(this,SavedSearchDeleteAction),(n=t.call(this)).savedSearchId=e,n}return Object(a.a)(SavedSearchDeleteAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/saved-search/delete/").concat(this.savedSearchId),method:l.c.DELETE}}}]),SavedSearchDeleteAction}(s.a),h=n(43),g=function(e){Object(o.a)(SavedSearchSubscriptionApiAction,e);var t=Object(c.a)(SavedSearchSubscriptionApiAction);function SavedSearchSubscriptionApiAction(e,n){var r;return Object(i.a)(this,SavedSearchSubscriptionApiAction),(r=t.call(this)).id=e,r.isSubscribed=n,r}return Object(a.a)(SavedSearchSubscriptionApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=JSON.stringify({data:{type:"saved_search",attributes:{isSubscribed:this.isSubscribed}}});return{path:"".concat(e.platformUrl,"/saved-search/").concat(this.id),method:l.c.PATCH,body:t}}}]),SavedSearchSubscriptionApiAction}(s.a),j=function(e){Object(o.a)(CreateSavedSearchBucketApiAction,e);var t=Object(c.a)(CreateSavedSearchBucketApiAction);function CreateSavedSearchBucketApiAction(e,n){var r;return Object(i.a)(this,CreateSavedSearchBucketApiAction),(r=t.call(this)).id=e,r.isBucket=n,r}return Object(a.a)(CreateSavedSearchBucketApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=JSON.stringify({data:{type:"saved_search",attributes:{isBucket:this.isBucket}}});return{path:"".concat(e.platformUrl,"/saved-search/").concat(this.id),method:l.c.PATCH,body:t}}}]),CreateSavedSearchBucketApiAction}(s.a),v=function(e){Object(o.a)(SavedSearchListApiAction,e);var t=Object(c.a)(SavedSearchListApiAction);function SavedSearchListApiAction(){return Object(i.a)(this,SavedSearchListApiAction),t.apply(this,arguments)}return Object(a.a)(SavedSearchListApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/saved-search?include=USER,TEAM"),method:l.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return{data:e.map((function(e){var t,n,a,i;return Object(r.a)({id:String(e.data.id),type:"saved-search",version:e.data.attributes.version,attributes:{formData:JSON.parse(e.data.attributes.formData),name:e.data.attributes.name,query:e.data.attributes.query,isBucket:e.data.attributes.isBucket,isSubscribed:e.data.attributes.isSubscribed,sortOrder:e.data.attributes.sortOrder,parentSavedSearchId:e.data.attributes.parentSavedSearchId,userId:String(e.data.attributes.userId)},relationships:{userIds:null!==(t=null===(n=e.data.relationships)||void 0===n?void 0:n.user.data.map((function(e){return e.id})))&&void 0!==t?t:[],teamIds:null!==(a=null===(i=e.data.relationships)||void 0===i?void 0:i.team.data.map((function(e){return e.id})))&&void 0!==a?a:[]}},e.meta&&{meta:e.meta})}))}}}]),SavedSearchListApiAction}(s.a),O=n(122),T=n(129),y=function(e){Object(o.a)(ReorderBookmarksApiAction,e);var t=Object(c.a)(ReorderBookmarksApiAction);function ReorderBookmarksApiAction(e){var n;return Object(i.a)(this,ReorderBookmarksApiAction),(n=t.call(this)).bookmarkIds=e,n}return Object(a.a)(ReorderBookmarksApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=this,n=JSON.stringify(this.bookmarkIds.map((function(e){return{data:{type:"saved_search",attributes:{id:e,sortOrder:t.bookmarkIds.indexOf(e)}}}})));return{path:"".concat(e.platformUrl,"/saved-search/"),method:l.c.POST,body:n}}}]),ReorderBookmarksApiAction}(s.a),S=function(e){Object(o.a)(SharedSavedSearchDeleteAction,e);var t=Object(c.a)(SharedSavedSearchDeleteAction);function SharedSavedSearchDeleteAction(e,n){var r;return Object(i.a)(this,SharedSavedSearchDeleteAction),(r=t.call(this)).sharedSavedSearchId=e,r.userId=n,r}return Object(a.a)(SharedSavedSearchDeleteAction,[{key:"apiEffect",value:function apiEffect(e){var t=JSON.stringify({data:[{id:this.userId,type:"user"}]});return{path:"".concat(e.platformUrl,"/saved-search/").concat(this.sharedSavedSearchId,"/relationships/user"),method:l.c.DELETE,body:t}}}]),SharedSavedSearchDeleteAction}(s.a),C=function(e){Object(o.a)(AddSharedSavedSearch,e);var t=Object(c.a)(AddSharedSavedSearch);function AddSharedSavedSearch(e){var n;return Object(i.a)(this,AddSharedSavedSearch),(n=t.call(this)).savedSearchId=e,n}return Object(a.a)(AddSharedSavedSearch,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/saved-search/").concat(this.savedSearchId,"/duplicate"),method:l.c.POST}}}]),AddSharedSavedSearch}(s.a),A=function(e){Object(o.a)(EditSavedSearchApiAction,e);var t=Object(c.a)(EditSavedSearchApiAction);function EditSavedSearchApiAction(e,n,r,a){var o;return Object(i.a)(this,EditSavedSearchApiAction),(o=t.call(this)).id=e,o.filterSet=n,o.name=r,o.deserializeFilterToString=a,o}return Object(a.a)(EditSavedSearchApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=JSON.stringify({data:{type:"saved_search",attributes:{name:this.name,formData:this.filterSet.serialize()}}});return{path:"".concat(e.platformUrl,"/saved-search/").concat(this.id),method:l.c.PATCH,body:t}}}]),EditSavedSearchApiAction}(s.a),E=n(8),w=function(e){Object(o.a)(FulfillReorderBookmarks,e);var t=Object(c.a)(FulfillReorderBookmarks);function FulfillReorderBookmarks(e,n){var r;return Object(i.a)(this,FulfillReorderBookmarks),(r=t.call(this)).bookmarks=e,r.taggedBookmarks=n,r}return FulfillReorderBookmarks}(p.a),_=function(e){Object(o.a)(ReorderBookmarks,e);var t=Object(c.a)(ReorderBookmarks);function ReorderBookmarks(e,n,r){var a;return Object(i.a)(this,ReorderBookmarks),(a=t.call(this,e)).bookmarkIds=e,a.bookmarks=n,a.taggedBookmarks=r,a.eventSpec=Object(d.d)("Reorder"),a}return Object(a.a)(ReorderBookmarks,[{key:"onSuccess",value:function onSuccess(e){return[new w(this.bookmarks,this.taggedBookmarks)]}},{key:"onError",value:function onError(e){return[new h.b({message:"Failed to move bookmark. Try again",level:E.n.warning})]}}]),ReorderBookmarks}(y),I=function(e){Object(o.a)(SubmitCreateSavedSearch,e);var t=Object(c.a)(SubmitCreateSavedSearch);function SubmitCreateSavedSearch(e,n){var r;return Object(i.a)(this,SubmitCreateSavedSearch),(r=t.call(this,e,n)).name=e,r.filterSet=n,r.eventSpec=Object(d.d)("Create"),r}return Object(a.a)(SubmitCreateSavedSearch,[{key:"onSuccess",value:function onSuccess(e){return[new x(e,this.name,this.filterSet),new h.b({message:"Bookmark has been added",level:E.n.info})]}},{key:"onError",value:function onError(e){return[new k(e)]}}]),SubmitCreateSavedSearch}(u),x=function(e){Object(o.a)(FulfillCreateSavedSearch,e);var t=Object(c.a)(FulfillCreateSavedSearch);function FulfillCreateSavedSearch(e,n,r,a){var o;Object(i.a)(this,FulfillCreateSavedSearch);var c=r.serialize();return(o=t.call(this)).filter=void 0,o.filter={id:e.data.id,name:n,filterSet:c,order:null,version:e.data.attributes.version,isSubscribed:!1,canSubscribe:Object(b.R)(c),sortOrder:null,userId:e.data.attributes.userId,parentFilterId:null!==a&&void 0!==a?a:null},o}return FulfillCreateSavedSearch}(p.a),k=function(e){Object(o.a)(FailCreateSavedSearch,e);var t=Object(c.a)(FailCreateSavedSearch);function FailCreateSavedSearch(){return Object(i.a)(this,FailCreateSavedSearch),t.apply(this,arguments)}return FailCreateSavedSearch}(p.b),N=function(e){Object(o.a)(SubmitAddSharedSavedSearch,e);var t=Object(c.a)(SubmitAddSharedSavedSearch);function SubmitAddSharedSavedSearch(e,n){var r;return Object(i.a)(this,SubmitAddSharedSavedSearch),(r=t.call(this,n)).filterSet=e,r.savedSearchId=n,r}return Object(a.a)(SubmitAddSharedSavedSearch,[{key:"onSuccess",value:function onSuccess(e){return[new x(e,e.data.attributes.name,this.filterSet,this.savedSearchId)]}},{key:"onError",value:function onError(e){return[new k(e)]}}]),SubmitAddSharedSavedSearch}(C),R=function(e){Object(o.a)(SubmitSavedSearchDelete,e);var t=Object(c.a)(SubmitSavedSearchDelete);function SubmitSavedSearchDelete(e){var n;return Object(i.a)(this,SubmitSavedSearchDelete),(n=t.call(this,e.id)).filter=e,n.eventSpec=Object(d.d)("Delete",n.filter.id),n}return Object(a.a)(SubmitSavedSearchDelete,[{key:"onSuccess",value:function onSuccess(e){return[new F(this.filter.id),W.remove(this.filter.id,this.filter.name)]}},{key:"onError",value:function onError(e){return[new M(this.filter,e),new h.b({message:"Failed to delete the bookmark. Try again",level:E.n.warning})]}}]),SubmitSavedSearchDelete}(m),F=function(e){Object(o.a)(FulfillSavedSearchDelete,e);var t=Object(c.a)(FulfillSavedSearchDelete);function FulfillSavedSearchDelete(e){var n;return Object(i.a)(this,FulfillSavedSearchDelete),(n=t.call(this)).id=e,n}return FulfillSavedSearchDelete}(p.a),M=function(e){Object(o.a)(FailSavedSearchDelete,e);var t=Object(c.a)(FailSavedSearchDelete);function FailSavedSearchDelete(e,n){var r;return Object(i.a)(this,FailSavedSearchDelete),(r=t.call(this,n)).filter=e,r.error=n,r}return FailSavedSearchDelete}(p.b),D=function(e){Object(o.a)(SubmitSharedSavedSearchDelete,e);var t=Object(c.a)(SubmitSharedSavedSearchDelete);function SubmitSharedSavedSearchDelete(e,n){var r;return Object(i.a)(this,SubmitSharedSavedSearchDelete),(r=t.call(this,e.id,n)).filter=e,r.userId=n,r}return Object(a.a)(SubmitSharedSavedSearchDelete,[{key:"onSuccess",value:function onSuccess(e){return[new F(this.filter.id)]}},{key:"onError",value:function onError(e){return[new M(this.filter,e),new h.b({message:"Failed to remove the shared bookmark. Try again",level:E.n.warning})]}}]),SubmitSharedSavedSearchDelete}(S),L=function(e){Object(o.a)(SubmitSavedSearchSubscription,e);var t=Object(c.a)(SubmitSavedSearchSubscription);function SubmitSavedSearchSubscription(e,n){var r;return Object(i.a)(this,SubmitSavedSearchSubscription),(r=t.call(this,e,n)).id=e,r.isSubscribed=n,r.eventSpec=Object(d.d)("Bookmark: Bucket Notification ".concat(r.isSubscribed?"On":"Off")),r}return Object(a.a)(SubmitSavedSearchSubscription,[{key:"onSuccess",value:function onSuccess(e){return[new P(this.id,this.isSubscribed)]}},{key:"onError",value:function onError(e){return[new U(this.id,e),this.isSubscribed?new h.b({message:"There was an error subscribing to this bucket. Please try again later.",level:E.n.warning}):new h.b({message:"There was an error unsubscribing to this bucket. Please try again later.",level:E.n.warning})]}}]),SubmitSavedSearchSubscription}(g),P=function(e){Object(o.a)(FulfillSavedSearchSubscription,e);var t=Object(c.a)(FulfillSavedSearchSubscription);function FulfillSavedSearchSubscription(e,n){var r;return Object(i.a)(this,FulfillSavedSearchSubscription),(r=t.call(this)).id=e,r.isSubscribed=n,r}return FulfillSavedSearchSubscription}(p.a),U=function(e){Object(o.a)(FailSavedSearchSubscription,e);var t=Object(c.a)(FailSavedSearchSubscription);function FailSavedSearchSubscription(e,n){var r;return Object(i.a)(this,FailSavedSearchSubscription),(r=t.call(this,n)).id=e,r.error=n,r}return FailSavedSearchSubscription}(p.b),B=function(e){Object(o.a)(EmptySavedSearchUnread,e);var t=Object(c.a)(EmptySavedSearchUnread);function EmptySavedSearchUnread(){return Object(i.a)(this,EmptySavedSearchUnread),t.apply(this,arguments)}return EmptySavedSearchUnread}(p.a),H=function(e){Object(o.a)(MarkCurrentSavedSearch,e);var t=Object(c.a)(MarkCurrentSavedSearch);function MarkCurrentSavedSearch(e){var n;return Object(i.a)(this,MarkCurrentSavedSearch),(n=t.call(this)).id=e,n}return MarkCurrentSavedSearch}(p.a),G=function(e){Object(o.a)(SubmitCreateSavedSearchBucket,e);var t=Object(c.a)(SubmitCreateSavedSearchBucket);function SubmitCreateSavedSearchBucket(e,n,r,a,o,c){var s;return Object(i.a)(this,SubmitCreateSavedSearchBucket),(s=t.call(this,e,r)).id=e,s.name=n,s.isBucket=r,s.filterSet=a,s.isSubscribed=o,s.canSubscribe=c,s}return Object(a.a)(SubmitCreateSavedSearchBucket,[{key:"onSuccess",value:function onSuccess(e){return[this.isBucket?W.create(this.id,this.name,this.filterSet,this.isSubscribed,this.canSubscribe):W.remove(this.id,this.name)]}},{key:"onError",value:function onError(e){return[new z(this.id,e)]}}]),SubmitCreateSavedSearchBucket}(j),W=function(e){Object(o.a)(FulfillCreateSavedSearchBucket,e);var t=Object(c.a)(FulfillCreateSavedSearchBucket);function FulfillCreateSavedSearchBucket(e,n,r,a,o,c){var s;return Object(i.a)(this,FulfillCreateSavedSearchBucket),(s=t.call(this)).id=e,s.name=n,s.isBucket=r,s.query=a,s.isSubscribed=o,s.canSubscribe=c,s.eventSpec=Object(d.d)("Bookmark: ".concat(s.isBucket?"Toggle":"Untoggle"," Bucket")),s}return Object(a.a)(FulfillCreateSavedSearchBucket,null,[{key:"create",value:function create(e,t,n,r,a){return new FulfillCreateSavedSearchBucket(e,t,!0,n,r,a)}},{key:"remove",value:function remove(e,t){return new FulfillCreateSavedSearchBucket(e,t,!1,"",!1,!1)}}]),FulfillCreateSavedSearchBucket}(p.a),z=function(e){Object(o.a)(FailCreateSavedSearchBucket,e);var t=Object(c.a)(FailCreateSavedSearchBucket);function FailCreateSavedSearchBucket(e,n){var r;return Object(i.a)(this,FailCreateSavedSearchBucket),(r=t.call(this,n)).id=e,r.err=n,r}return FailCreateSavedSearchBucket}(p.b),V=function(e){Object(o.a)(SubmitEditSavedSearch,e);var t=Object(c.a)(SubmitEditSavedSearch);function SubmitEditSavedSearch(e,n,r,a){var o;return Object(i.a)(this,SubmitEditSavedSearch),(o=t.call(this,e,r,n,a)).id=e,o.name=n,o.filterSet=r,o.deserializeFilterToString=a,o.eventSpec=Object(d.d)("Bookmark: Confirm Bookmark Name"),o}return Object(a.a)(SubmitEditSavedSearch,[{key:"onSuccess",value:function onSuccess(e){return[new J(this.id,this.filterSet,this.name,this.deserializeFilterToString),new h.b({message:"".concat(this.name," Bookmark has been updated"),level:E.n.info})]}},{key:"onError",value:function onError(e){return[new Y(e)]}}]),SubmitEditSavedSearch}(A),J=function(e){Object(o.a)(FulfillEditSavedSearch,e);var t=Object(c.a)(FulfillEditSavedSearch);function FulfillEditSavedSearch(e,n,r,a){var o;return Object(i.a)(this,FulfillEditSavedSearch),(o=t.call(this)).filterSet=void 0,o.id=void 0,o.name=void 0,o.bucketSearchQuery=void 0,o.filterSet=n.serialize(),o.name=r,o.id=e,o.bucketSearchQuery=a(o.filterSet),o}return FulfillEditSavedSearch}(p.a),Y=function(e){Object(o.a)(FailEditSavedSearch,e);var t=Object(c.a)(FailEditSavedSearch);function FailEditSavedSearch(){return Object(i.a)(this,FailEditSavedSearch),t.apply(this,arguments)}return FailEditSavedSearch}(p.b),q=function(e){Object(o.a)(RequestSavedFilters,e);var t=Object(c.a)(RequestSavedFilters);function RequestSavedFilters(e,n){var r;return Object(i.a)(this,RequestSavedFilters),(r=t.call(this)).filterSetDeserializer=e,r.deserializeFilterToString=n,r}return Object(a.a)(RequestSavedFilters,[{key:"onSuccess",value:function onSuccess(e){return[new K(e,this.filterSetDeserializer,this.deserializeFilterToString)]}},{key:"onError",value:function onError(e){return[new Q(e)]}}]),RequestSavedFilters}(v),K=function(e){Object(o.a)(FulfillSavedFilters,e);var t=Object(c.a)(FulfillSavedFilters);function FulfillSavedFilters(e,n,a){var o;return Object(i.a)(this,FulfillSavedFilters),(o=t.call(this)).result=e,o.filterSetDeserializer=n,o.deserializeFilterToString=a,o.filters=void 0,o.buckets=void 0,o.filters=[],o.buckets=[],e.data.forEach((function(e){var t=e.attributes,n=t.name,a=t.formData,i=e.version,c=O.a.of((function(){return o.fromData(i,a)})).orNull();if(c){var s=Object(b.R)(c),l=function mapIfShared(e){if(!e)return;if("user"!==e.shareInformation.type&&"team"!==e.shareInformation.type)throw new Error("Share meta type must be user or team");return Object(r.a)(Object(r.a)({},e.shareInformation),{},{type:e.shareInformation.type})}(e.meta);o.filters.push({name:n,id:e.id,filterSet:c,order:null,version:e.version,isSubscribed:e.attributes.isSubscribed,canSubscribe:s,sortOrder:null,parentFilterId:e.attributes.parentSavedSearchId,userId:e.attributes.userId,shares:e.relationships,isShared:l}),e.attributes.isBucket&&!l&&o.buckets.push(function toSavedSearchBucket(e,t,n,r,a){return{id:e,bucketName:t,bucketType:T.g.SAVED_SEARCH,bucketSearchQuery:n,isSubscribed:r,canSubscribe:a}}(e.id,n,o.deserializeFilterToString(c),e.attributes.isSubscribed,s))}})),o}return Object(a.a)(FulfillSavedFilters,[{key:"fromData",value:function fromData(e,t){switch(e){case"2.0":case"3.0":return t;case"1.0":default:return this.filterSetDeserializer.fromFormData(t).serialize()}}}]),FulfillSavedFilters}(p.a),X=function(e){Object(o.a)(ClearCurrentSavedSearch,e);var t=Object(c.a)(ClearCurrentSavedSearch);function ClearCurrentSavedSearch(){return Object(i.a)(this,ClearCurrentSavedSearch),t.apply(this,arguments)}return ClearCurrentSavedSearch}(p.a);var Q=function(e){Object(o.a)(FailSavedFilters,e);var t=Object(c.a)(FailSavedFilters);function FailSavedFilters(){return Object(i.a)(this,FailSavedFilters),t.apply(this,arguments)}return FailSavedFilters}(p.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),a=n(30),i=n(79),o=n(84),c=Object(o.c)((function(e){var t=Object(a.parse)(e);return JSON.stringify(Object(r.a)({filter:t.filter||Object(i.d)(e),filterSet:t.filterSet},t.teams&&{teams:t.teams}))}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return getActiveFilter})),n.d(t,"e",(function(){return getActiveSidebarItem})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n(4),a=n(30),i=n(13),o=n(17),c=n(57),s=i.D.INBOX;function getActiveFilter(e){var t;try{t=JSON.parse(e).filter}catch(n){t=Object(a.parse)(e).filter||s}return t}function getActiveSidebarItem(e,t,n){if(!e.includes(o.a.LIST))return null;var r;try{r=JSON.parse(t)}catch(i){r=Object(a.parse)(t)}return n&&r.bookmark?null:r.filter||s}var l=function buildFilterHref(e,t){var n,s,l=e===i.D.MY_WORK;return"".concat(o.a.LIST,"?").concat(Object(a.stringify)(Object(r.a)(Object(r.a)({},t),{},{goBackToTeam:void 0,sendingTeamId:void 0,filter:e,bookmark:void 0,teams:l?"all":null!==(n=t.returnToTeam)&&void 0!==n?n:t.teams,returnToTeam:l?null!==(s=t.teams)&&void 0!==s?s:t.teamId:void 0,sort:l?c.c.BY_ACTIVITY:void 0})))},u=function buildFilterHrefV2(e,t){var n,s,l,u=e===i.D.MY_WORK,d=e===i.D.FOLLOWING,b=e===i.D.DRAFT,p=u||d||b;return"".concat(o.a.LIST,"?").concat(Object(a.stringify)(Object(r.a)(Object(r.a)({},t),{},{goBackToTeam:void 0,sendingTeamId:void 0,filter:e,bookmark:void 0,filterSet:p?void 0:t.filterSet,teams:p?"all":null!==(n=t.returnToTeam)&&void 0!==n?n:t.teams,returnToTeam:p?null!==(s=null!==(l=t.returnToTeam)&&void 0!==l?l:t.teams)&&void 0!==s?s:t.teamId:void 0,sort:u?c.c.BY_ACTIVITY:void 0})))}},,function(e,t,n){"use strict";n.d(t,"h",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"k",(function(){return h})),n.d(t,"j",(function(){return g})),n.d(t,"f",(function(){return j})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return O}));var r=n(12),a=n(885),i=n.n(a),o=n(886),c=n.n(o),s=n(56),l=Object(r.b)(i.a).withConfig({displayName:"settings-form__SettingsForm",componentId:"jznlyb-0"})(["display:flex;flex-direction:column;flex:1 1;min-height:0;"]),u=r.b.div.withConfig({displayName:"settings-form__ScrollContent",componentId:"jznlyb-1"})(["overflow-y:auto;"]),d=Object(r.b)(c.a).withConfig({displayName:"settings-form__SettingsFormGroup",componentId:"jznlyb-2"})(["margin-bottom:var(--spacing-6);"]),b=r.b.div.withConfig({displayName:"settings-form__FormActions",componentId:"jznlyb-3"})(["display:flex;flex-shrink:0;margin-left:var(--spacing-3);margin-right:var(--spacing-3);@media ","{padding-top:var(--spacing-6);border-top:var(--bw1) solid var(--border-1);}"],s.a.minMedium),p=r.b.div.withConfig({displayName:"settings-form__FormActionsPrimary",componentId:"jznlyb-4"})(["display:flex;justify-content:flex-end;flex:1;"]),m=r.b.div.withConfig({displayName:"settings-form__FormActionsSecondary",componentId:"jznlyb-5"})(["display:flex;justify-content:flex-start;"]),h=r.b.div.withConfig({displayName:"settings-form__WarningMessage",componentId:"jznlyb-6"})(["position:relative;border-radius:var(--br1);font-size:var(--fs-sm);background-color:var(--danger-light);color:var(--danger);padding:var(--spacing-2);margin-right:auto;margin-left:auto;margin-bottom:var(--spacing-1);"]),g=r.b.div.withConfig({displayName:"settings-form__SubmissionError",componentId:"jznlyb-7"})(["font-weight:var(--fw-bold);color:var(--danger);margin-bottom:var(--spacing-1);"]),j=r.b.div.withConfig({displayName:"settings-form__FormInputField",componentId:"jznlyb-8"})(["margin-bottom:var(--spacing-6);padding-left:var(--spacing-3);padding-right:var(--spacing-3);@media ","{min-width:50%;width:50%;}"],s.a.minMedium),v=r.b.div.withConfig({displayName:"settings-form__FormFullWidthInputField",componentId:"jznlyb-9"})(["margin-bottom:var(--spacing-6);padding-left:var(--spacing-3);padding-right:var(--spacing-3);@media ","{min-width:100%;}"],s.a.minMedium),O=r.b.div.withConfig({displayName:"settings-form__FormCheckbox",componentId:"jznlyb-10"})(["margin-bottom:var(--spacing-6);padding-left:var(--spacing-3);padding-right:var(--spacing-3);"])},,function(e,t,n){"use strict";var r,a;n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),function(e){e.REGULAR_USER="regular user",e.SUPER_USER="super user",e.IT_SUPPORT="IT support",e.MESSAGE_EXPORT="message export",e.READ_ONLY="read only",e.JOB_REFERENCE_MANAGEMENT="job reference management",e.ANALYTICS="analytics"}(r||(r={})),function(e){e.compose_message="compose message",e.send_message="send message",e.add_job_reference="add job reference",e.delete_job_reference="delete job reference",e.add_category="add category",e.delete_category="delete category",e.remove_own_todo="remove own todo",e.assign_to_self="assign to self",e.assign_to_other_user="assign to other user",e.access_user_management_view="access user management view",e.create_user="create user",e.edit_user="edit user",e.deactivate_user="de-activate user",e.activate_user="activate user",e.remove_another_todo="remove another todo",e.create_contact="create contact",e.edit_contact="edit contact",e.delete_contact="delete contact",e.create_group="create group",e.add_contact_to_group="add contact to group",e.remove_contact_from_group="remove contact from group",e.delete_group="delete group",e.change_password="change password",e.change_any_user_password="change any user password",e.create_edit_document_type="create/edit a document type",e.delete_document_type="delete a document type",e.create_edit_template="create/edit a template",e.delete_template="delete a template",e.view_message_keywords="view message keywords",e.download_rfc822_encoded_mail="download rfc822 encoded mail",e.export_messages="export messages",e.delete_message="delete message",e.jrm_create="JRM create job reference",e.view_analytics="view analytics",e.create_user_snippet="Create user snippet",e.delete_user_snippet="Delete user snippet",e.create_team_snippet="Create team snippet",e.delete_team_snippet="Delete team snippet",e.create_company_snippet="Create company snippet",e.delete_company_snippet="Delete company snippet"}(a||(a={}))},,,,function(e,t,n){"use strict";n.d(t,"o",(function(){return p})),n.d(t,"p",(function(){return m})),n.d(t,"r",(function(){return h})),n.d(t,"q",(function(){return g})),n.d(t,"e",(function(){return j})),n.d(t,"i",(function(){return v})),n.d(t,"d",(function(){return O})),n.d(t,"g",(function(){return T})),n.d(t,"h",(function(){return y})),n.d(t,"m",(function(){return S})),n.d(t,"n",(function(){return C})),n.d(t,"c",(function(){return A})),n.d(t,"a",(function(){return E})),n.d(t,"f",(function(){return w})),n.d(t,"l",(function(){return _})),n.d(t,"b",(function(){return I})),n.d(t,"j",(function(){return x})),n.d(t,"k",(function(){return k}));var r=n(23),a=n(26),i=n(63),o=n(44),c=n(2),s=n(42),l=n(275),u=n(269),d=n(25),b=n(403),p=Object(a.b)([function(e){return e.entities.user}],(function(e){return c.h(e).sort(Object(i.a)((function(e){return Object(o.c)(e.firstName,e.lastName)})))})),m=Object(a.b)([function(e){return e.entities.userToTeam}],(function(e){return c.h(e)})),h=Object(a.b)([function(e,t){return e.entities.user},function(e,t){return g(e,t)}],(function(e,t){return s.a.traverse(t,(function(t){return c.g(e,t)}))})),g=Object(a.b)([function(e,t){return e.entities.userToTeam},function(e,t){return t}],(function(e,t){return c.h(e).filter((function(e){return e.teamIds.includes(t)})).map((function(e){return e.userId}))})),j=Object(a.b)([function(e,t,n){return c.g(e.entities.messageAssignment,t)},function(e,t,n){return e.entities.user},function(e,t,n){return n},function(e,t,n){return g(e,n.teamId)}],(function(e,t,n,r){return c.m(e.map((function(e){return e.filter((function(e){return!e.deleteInProgress}))})),(function(e){return s.a.lift2((function(t,a){return Object(o.f)(e,a,t,n,r)}))(e.assignedByUserId?c.g(t,e.assignedByUserId).or(s.a.of(o.b)):s.a.of(o.b),c.g(t,e.assignedToUserId))}))})),v=Object(a.b)([function(e,t){return T(e,t)},function(e){return e.entities.vesselJobReferenceTag}],(function(e,t){return e.map((function(e){var n=e.map((function(e){return e.tagId})).map((function(e){return c.g(t,e).toUndefined()})).filter(u.a);return Object(r.a)(new Set(n))}))})),O=Object(a.b)([function(e){return e.entities.jobReference}],(function(e){return c.h(e).sort(Object(i.c)(Object(i.a)((function(e){return[e.createdAt,e.id]}))))})),T=Object(a.b)([function(e,t){return c.g(e.entities.messageJobReferenceTag,t)}],(function(e){return e.map((function(e){return e.filter((function(e){return!e.deleteInProgress}))}))})),y=Object(a.b)([function(e,t){return e.entities.jobReference},function(e,t){return T(e,t)}],(function(e,t){var n=c.h(e);return t.map((function(e){return e.map((function(e){return n.find((function(t){return e.tagId===t.tagId}))})).filter((function(e){return void 0!==e}))}))})),S=Object(a.b)([function(e,t){return c.g(e.entities.topicJobReference,t)}],(function(e){return e})),C=Object(a.b)([function(e,t){return b.a.topic(e,t)},function(e,t){return c.g(e.entities.topic,t)},function(e,t){return c.g(e.entities.topicBody,t)},function(e,t){return c.g(e.entities.userConfig,c.a).map((function(e){return e.myMessageTagIds})).orElse(new Set)}],(function(e,t,n,r){return s.a.lift4(l.e)(t.map((function(e){return e.attributes.subject})),n.map((function(e){return e.attributes.body||""})),s.a.of(e),s.a.of(r))})),A=Object(a.b)([function(e){return e.entities.categoryTag}],(function(e){return c.h(e).sort(Object(i.a)((function(e){return e.label})))})),E=Object(a.b)([function(e){return e.entities.teamToCategoryTag}],(function(e){return c.h(e)})),w=Object(a.b)([function(e,t){return c.g(e.entities.messageCategoryTag,t)}],(function(e){return e.map((function(e){return e.filter((function(e){return!e.deleteInProgress}))}))})),_=Object(a.b)([function(e,t){return c.g(e.entities.topicCategoryTag,t)}],(function(e){return e})),I=Object(a.b)([function(e){return e.entities.categoryTag},function(e){return e.entities.favouriteCategoryTag}],(function(e,t){var n=c.h(t).reduce((function(t,n){return d.a.of(c.h(e).find((function(e){var t=e.id;return n.id===t}))).map((function(e){return t.push(e),t})).orElse(t)}),[]);return s.a.of(n)})),x=Object(a.b)([function(e){return A(e)},function(e,t){return c.g(e.entities.topic,t)},function(e,t){return c.g(e.entities.topicBody,t)}],(function(e,t,n){return s.a.lift3(l.d)(t.map((function(e){return e.attributes.subject})),n.map((function(e){return e.attributes.body||""})),s.a.of(e))})),k=function teamsWithNoTagsSelector(e){return function(t){return Object(a.b)([t,function(t,n){return e(t,n)}],(function(e,t){return t.orElse([]).filter((function(t){return c.g(e,t.id).isNotLoading()}))}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return formatDate})),n.d(t,"e",(function(){return isValidDate})),n.d(t,"f",(function(){return parseDate})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(32),a=n.n(r),i="DD-MMM-YYYY";function formatDate(e,t){return e&&a()(e).isValid()?a()(e).format(null!==t&&void 0!==t?t:i):""}function isValidDate(e,t){return a()(e,null!==t&&void 0!==t?t:i,!0).isValid()}function parseDate(e,t){return isValidDate(e,t)?a()(e,null!==t&&void 0!==t?t:i).toDate():void 0}var o=function getCurrentYear(){return(new Date).getFullYear()},c=new Date(o()-20,0),s=new Date(o()+10,11)},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(26),a=Object(r.b)([function(e){return e.ui.featureFlags.EXPLICIT_TEAM_TOKEN},function(e){return e.ui.responsive.isMobile},function(e){return e.ui.sidebar.isEnabled}],(function(e,t,n){return(e||n)&&!t}))},,function(e,t,n){"use strict";n.d(t,"p",(function(){return E})),n.d(t,"a",(function(){return w})),n.d(t,"f",(function(){return _})),n.d(t,"k",(function(){return x})),n.d(t,"g",(function(){return N})),n.d(t,"b",(function(){return R})),n.d(t,"m",(function(){return F})),n.d(t,"h",(function(){return M})),n.d(t,"c",(function(){return D})),n.d(t,"l",(function(){return L})),n.d(t,"o",(function(){return P})),n.d(t,"i",(function(){return U})),n.d(t,"d",(function(){return B})),n.d(t,"n",(function(){return H})),n.d(t,"j",(function(){return G})),n.d(t,"e",(function(){return W}));var r,a=n(4),i=n(3),o=n(10),c=n(5),s=n(6),l=n(20),u=n(16),d=function(e){Object(c.a)(JobReferenceUpdateApiAction,e);var t=Object(s.a)(JobReferenceUpdateApiAction);function JobReferenceUpdateApiAction(e,n,r,a){var o;return Object(i.a)(this,JobReferenceUpdateApiAction),(o=t.call(this)).id=e,o.name=n,o.attributes=r,o.referenceType=a,o}return Object(o.a)(JobReferenceUpdateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/job-reference/").concat(this.id),method:u.c.PATCH,body:JSON.stringify({data:{type:"job_reference",attributes:{name:this.name,referenceType:this.referenceType,attributes:this.attributes}}})}}}]),JobReferenceUpdateApiAction}(l.a),b=n(14),p=function(e){Object(c.a)(JobReferenceCreateApiAction,e);var t=Object(s.a)(JobReferenceCreateApiAction);function JobReferenceCreateApiAction(e,n,r){var a;return Object(i.a)(this,JobReferenceCreateApiAction),(a=t.call(this)).name=e,a.attributes=n,a.referenceType=r,a}return Object(o.a)(JobReferenceCreateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/job-reference"),method:u.c.POST,body:JSON.stringify({data:{type:"job_reference",attributes:{name:this.name,referenceType:this.referenceType,attributes:this.attributes,source:"sedna"}}})}}}]),JobReferenceCreateApiAction}(l.a),m=n(125),h=n(17),g=n(576),j=n(127);!function(e){e.FILTER_TEAM_IDS="filterTeamIds",e.QUERY="q",e.SORT="sort"}(r||(r={}));var v=function(e){Object(c.a)(JobReferenceSearchByMatchScoreApiAction,e);var t=Object(s.a)(JobReferenceSearchByMatchScoreApiAction);function JobReferenceSearchByMatchScoreApiAction(e,n){var r;return Object(i.a)(this,JobReferenceSearchByMatchScoreApiAction),(r=t.call(this)).query=e,r.filterTeamIds=n,r}return Object(o.a)(JobReferenceSearchByMatchScoreApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=this.filterTeamIds.length>0?"&".concat(r.FILTER_TEAM_IDS,"=").concat(this.filterTeamIds.join(",")):"";return{path:[e.platformUrl,"/job-reference/search","?".concat(r.QUERY,"=").concat(this.query),"&".concat(r.SORT,"=-matchScore"),t].join(""),method:u.c.GET}}}]),JobReferenceSearchByMatchScoreApiAction}(l.a),O=function(e){Object(c.a)(JobReferenceGetByTagApiAction,e);var t=Object(s.a)(JobReferenceGetByTagApiAction);function JobReferenceGetByTagApiAction(e){var n;return Object(i.a)(this,JobReferenceGetByTagApiAction),(n=t.call(this)).tagId=e,n}return Object(o.a)(JobReferenceGetByTagApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/job-reference/tag/").concat(this.tagId),method:u.c.GET}}}]),JobReferenceGetByTagApiAction}(l.a),T=n(42),y=n(25),S=n(21),C=n(320),A=function(e){Object(c.a)(JobReferenceGetByTeamsApiAction,e);var t=Object(s.a)(JobReferenceGetByTeamsApiAction);function JobReferenceGetByTeamsApiAction(e){var n;return Object(i.a)(this,JobReferenceGetByTeamsApiAction),(n=t.call(this)).teamIds=e,n}return Object(o.a)(JobReferenceGetByTeamsApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/job-reference/team?ids=").concat(this.teamIds),method:u.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return{jobReferenceMeta:e.data.map((function(e){var t,n;try{n=JSON.parse(e.attributes.attributes)}catch(r){n={}}return Object(a.a)(Object(a.a)({},e.attributes),{},{attributes:n,id:e.id,tagId:(null===(t=e.relationships)||void 0===t?void 0:t.tag)?e.relationships.tag.data.id:null,companyId:e.relationships.company.data.id,type:e.attributes.referenceType})})),teamJobReferenceMap:this.teamIds.reduce((function(t,n){var r=Object(C.a)(e.data,(function(e){return!e.relationships||!e.relationships.team})),a=Object(S.a)(r,2),i=a[0],o=a[1];return t[n]={teamId:n,jobReferenceIds:i.concat(o.filter((function(e){var t=e.relationships.team;return Array.isArray(t.data)?t.data.filter((function(e){return"team"===e.type})).map((function(e){return e.id})).includes(n):t.data.id===n}))).map((function(e){return e.id}))},t}),{})}}}]),JobReferenceGetByTeamsApiAction}(l.a),E=function(e){Object(c.a)(SubmitUpdateJobReference,e);var t=Object(s.a)(SubmitUpdateJobReference);function SubmitUpdateJobReference(){return Object(i.a)(this,SubmitUpdateJobReference),t.apply(this,arguments)}return Object(o.a)(SubmitUpdateJobReference,[{key:"onSuccess",value:function onSuccess(e){return[new x(this.id,e.data)]}},{key:"onError",value:function onError(e){return[new k(e)]}}]),SubmitUpdateJobReference}(d),w=function(e){Object(c.a)(CreateJobReference,e);var t=Object(s.a)(CreateJobReference);function CreateJobReference(e,n,r,a,o,c){var s;return Object(i.a)(this,CreateJobReference),(s=t.call(this,e,n,r)).name=e,s.attributes=n,s.referenceType=r,s.location=a,s.users=o,s.vesselName=c,s.eventSpec={eventCategory:"Tag Actions",eventAction:"Tag Actions - Job Reference Created"},s}return Object(o.a)(CreateJobReference,[{key:"onSuccess",value:function onSuccess(e){var t=e.data;if(this.users){var n=this.vesselName&&""!==this.vesselName?[new j.j(this.vesselName,this.users)]:[];return[new j.i(t.id,this.users)].concat(n,[new _(t.id,t),Object(m.e)(Object(a.a)(Object(a.a)({},this.location),{},{pathname:h.a.JOB_REFERENCE(t.id)}))])}return[new _(t.id,t),Object(m.e)(Object(a.a)(Object(a.a)({},this.location),{},{pathname:h.a.JOB_REFERENCE(t.id)}))]}},{key:"onError",value:function onError(e){return[new I(e)]}}]),CreateJobReference}(p),_=function(e){Object(c.a)(FulfillCreateJobReference,e);var t=Object(s.a)(FulfillCreateJobReference);function FulfillCreateJobReference(e,n){var r;return Object(i.a)(this,FulfillCreateJobReference),(r=t.call(this)).jobReferenceId=e,r.response=n,r}return FulfillCreateJobReference}(b.a),I=function(e){Object(c.a)(FailCreateJobReference,e);var t=Object(s.a)(FailCreateJobReference);function FailCreateJobReference(){return Object(i.a)(this,FailCreateJobReference),t.apply(this,arguments)}return FailCreateJobReference}(b.b),x=function(e){Object(c.a)(FulfillUpdateJobReference,e);var t=Object(s.a)(FulfillUpdateJobReference);function FulfillUpdateJobReference(e,n){var r;return Object(i.a)(this,FulfillUpdateJobReference),(r=t.call(this)).jobReferenceId=e,r.response=n,r}return FulfillUpdateJobReference}(b.a),k=function(e){Object(c.a)(FailUpdateJobReference,e);var t=Object(s.a)(FailUpdateJobReference);function FailUpdateJobReference(){return Object(i.a)(this,FailUpdateJobReference),t.apply(this,arguments)}return FailUpdateJobReference}(b.b),N=function(e){Object(c.a)(FulfillJobReferenceListAll,e);var t=Object(s.a)(FulfillJobReferenceListAll);function FulfillJobReferenceListAll(e){var n;return Object(i.a)(this,FulfillJobReferenceListAll),(n=t.call(this)).jobReferences=e,n}return FulfillJobReferenceListAll}(b.a),R=function(e){Object(c.a)(FailJobReferenceListAll,e);var t=Object(s.a)(FailJobReferenceListAll);function FailJobReferenceListAll(e){var n;return Object(i.a)(this,FailJobReferenceListAll),(n=t.call(this)).error=e,n}return FailJobReferenceListAll}(b.a),F=function(e){Object(c.a)(RequestJobReferenceVesselName,e);var t=Object(s.a)(RequestJobReferenceVesselName);function RequestJobReferenceVesselName(e){var n;return Object(i.a)(this,RequestJobReferenceVesselName),(n=t.call(this,e)).tagId=e,n}return Object(o.a)(RequestJobReferenceVesselName,[{key:"onSuccess",value:function onSuccess(e){return[new M(e.data,this.tagId)]}},{key:"onError",value:function onError(e){return[new D(this.tagId,e)]}}]),RequestJobReferenceVesselName}(O),M=function(e){Object(c.a)(FulfillJobReferenceVesselName,e);var t=Object(s.a)(FulfillJobReferenceVesselName);function FulfillJobReferenceVesselName(e,n){var r;return Object(i.a)(this,FulfillJobReferenceVesselName),(r=t.call(this)).jobReferenceResource=e,r.tag=n,r.vesselName=FulfillJobReferenceVesselName.mapToVesselName(r.jobReferenceResource),r.tagId=r.tag,r}return Object(o.a)(FulfillJobReferenceVesselName,null,[{key:"mapToVesselName",value:function mapToVesselName(e){if(!e.attributes.attributes)return y.a.empty();var t;try{return(t=JSON.parse(e.attributes.attributes)).vesselName?y.a.of(t.vesselName):y.a.empty()}catch(n){return y.a.empty()}}}]),FulfillJobReferenceVesselName}(b.a),D=function(e){Object(c.a)(FailJobReferenceVesselName,e);var t=Object(s.a)(FailJobReferenceVesselName);function FailJobReferenceVesselName(e,n){var r;return Object(i.a)(this,FailJobReferenceVesselName),(r=t.call(this,n)).tagId=e,r}return FailJobReferenceVesselName}(b.b),L=function(e){Object(c.a)(RequestJobReferenceResources,e);var t=Object(s.a)(RequestJobReferenceResources);function RequestJobReferenceResources(){return Object(i.a)(this,RequestJobReferenceResources),t.apply(this,arguments)}return Object(o.a)(RequestJobReferenceResources,[{key:"onSuccess",value:function onSuccess(e){return[new N(e.data)]}},{key:"onError",value:function onError(e){return[new R(Object(T.b)("Failed to load requested detailed Job References."))]}}]),RequestJobReferenceResources}(g.b),P=function(e){Object(c.a)(SubmitSearchJobReference,e);var t=Object(s.a)(SubmitSearchJobReference);function SubmitSearchJobReference(e,n,r){var a;return Object(i.a)(this,SubmitSearchJobReference),(a=t.call(this,n,r)).id=e,a.query=n,a.filterTeamIds=r,a}return Object(o.a)(SubmitSearchJobReference,[{key:"onSuccess",value:function onSuccess(e){return[new U(this.id,this.query,e.data)]}},{key:"onError",value:function onError(e){return[new B(this.id,this.query,e)]}}]),SubmitSearchJobReference}(v),U=function(e){Object(c.a)(FulfillSearchJobReference,e);var t=Object(s.a)(FulfillSearchJobReference);function FulfillSearchJobReference(e,n,r){var a;return Object(i.a)(this,FulfillSearchJobReference),(a=t.call(this)).id=e,a.query=n,a.result=r,a}return FulfillSearchJobReference}(b.a),B=function(e){Object(c.a)(FailSearchJobReference,e);var t=Object(s.a)(FailSearchJobReference);function FailSearchJobReference(e,n,r){var a;return Object(i.a)(this,FailSearchJobReference),(a=t.call(this,r)).id=e,a.query=n,a.error=r,a}return FailSearchJobReference}(b.b),H=function(e){Object(c.a)(RequestTeamJobReferenceTags,e);var t=Object(s.a)(RequestTeamJobReferenceTags);function RequestTeamJobReferenceTags(e){var n;return Object(i.a)(this,RequestTeamJobReferenceTags),(n=t.call(this,e)).teamIds=e,n}return Object(o.a)(RequestTeamJobReferenceTags,[{key:"onSuccess",value:function onSuccess(e){return[new G(this.teamIds,e)]}},{key:"onError",value:function onError(e){return[new W(this.teamIds,e)]}}]),RequestTeamJobReferenceTags}(A),G=function(e){Object(c.a)(FulfillTeamJobReferenceTags,e);var t=Object(s.a)(FulfillTeamJobReferenceTags);function FulfillTeamJobReferenceTags(e,n){var r;return Object(i.a)(this,FulfillTeamJobReferenceTags),(r=t.call(this)).teamIds=e,r.data=n,r}return FulfillTeamJobReferenceTags}(b.a),W=function(e){Object(c.a)(FailTeamJobReferenceTags,e);var t=Object(s.a)(FailTeamJobReferenceTags);function FailTeamJobReferenceTags(e,n){var r;return Object(i.a)(this,FailTeamJobReferenceTags),(r=t.call(this,n)).teamIds=e,r.error=n,r}return FailTeamJobReferenceTags}(b.b)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return getLocalStorage})),n.d(t,"b",(function(){return removeLocalStorage})),n.d(t,"c",(function(){return setLocalStorage})),n.d(t,"d",(function(){return useLocalStorage}));var r=n(21),a=n(1),i=n.n(a);function getLocalStorage(e,t){try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(r){return console.error(r),t}}function removeLocalStorage(e){window.localStorage.removeItem(e)}function setLocalStorage(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error(n)}}function useLocalStorage(e,t){var n=i.a.useState((function(){return getLocalStorage(e,t)})),a=Object(r.a)(n,2),o=a[0],c=a[1];return[o,i.a.useCallback((function(t){try{c(t),window.localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error(n)}}),[e])]}},function(e,t,n){"use strict";n.d(t,"b",(function(){return loadCordova})),n.d(t,"a",(function(){return a}));var r=n(51);function loadCordova(e){return a()?(runScript("cordova","".concat(r.i,"/cordova/ios/cordova.js")),runScript("deepLink","".concat(r.i,"/cordova/ios/deep-link.js")),function cordovaHandler(e){document.addEventListener("deviceready",(function(){return e()}),!1)}(e)):e()}var a=function isCordova(){return window.navigator.userAgent.includes("Cordova")};function runScript(e,t){if(!document.getElementById(e)){var n=document.createElement("script");n.type="text/javascript",n.id=e,n.async=!0,n.src=t,document.body.appendChild(n)}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return useQuickActionWithHotkeys}));var r=n(23),a=n(404),i=n(1),o=n(290),c=n(28),s=n(29);function useQuickAction(e,t,n){var r=Object(a.b)().manageQuickAction,o=Object(i.useCallback)(t,n),c=Object(i.useMemo)((function(){return new e(o)}),[e,o]);return Object(i.useEffect)((function(){return r(c)}),[c,r]),c}function useQuickActionWithHotkeys(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=useQuickAction(e,t,n),l=Object(c.useDispatch)();Object(o.a)(i.hotKeyCommand,(function(e){e.preventDefault(),a&&(l(s.a.withEvent({eventAction:"Shortcut: ".concat(i.name),eventCategory:"Keyboard Shortcut"})),i.triggerFunction())}),[].concat(Object(r.a)(n),[a]))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return b})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return h})),n.d(t,"j",(function(){return g})),n.d(t,"p",(function(){return j})),n.d(t,"q",(function(){return v})),n.d(t,"r",(function(){return O})),n.d(t,"s",(function(){return T})),n.d(t,"t",(function(){return y})),n.d(t,"v",(function(){return S})),n.d(t,"u",(function(){return C})),n.d(t,"n",(function(){return A})),n.d(t,"o",(function(){return E})),n.d(t,"f",(function(){return w})),n.d(t,"m",(function(){return _})),n.d(t,"d",(function(){return I})),n.d(t,"c",(function(){return x})),n.d(t,"l",(function(){return k})),n.d(t,"k",(function(){return N})),n.d(t,"w",(function(){return R}));var r=n(3),a=n(5),i=n(6),o=n(74),c=function QuickActionClass(e){Object(r.a)(this,QuickActionClass),this.triggerFunction=e,this.name=this.constructor.name,this.description=void 0,this.hotKeyCommand=void 0},s=function(e){Object(a.a)(HotKeyQuickAction,e);var t=Object(i.a)(HotKeyQuickAction);function HotKeyQuickAction(){return Object(r.a)(this,HotKeyQuickAction),t.apply(this,arguments)}return HotKeyQuickAction}(c),l=n(15),u=function(e){Object(a.a)(Archive,e);var t=Object(i.a)(Archive);function Archive(){var e;Object(r.a)(this,Archive);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Archive item",e.hotKeyCommand=o.a.ARCHIVE_ITEM,e}return Archive}(s),d=function(e){Object(a.a)(ArchiveForTeam,e);var t=Object(i.a)(ArchiveForTeam);function ArchiveForTeam(){var e;Object(r.a)(this,ArchiveForTeam);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Archive item for ".concat(l.b.t(l.a.TEAM)),e.hotKeyCommand=o.a.ARCHIVE_FOR_TEAM,e}return ArchiveForTeam}(s),b=function(e){Object(a.a)(CursorToCommentInput,e);var t=Object(i.a)(CursorToCommentInput);function CursorToCommentInput(){var e;Object(r.a)(this,CursorToCommentInput);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Move cursor to Comment Input",e.hotKeyCommand=o.a.FOCUS_COMMENT_INPUT,e}return CursorToCommentInput}(s),p=function(e){Object(a.a)(CursorToTaggingInput,e);var t=Object(i.a)(CursorToTaggingInput);function CursorToTaggingInput(){var e;Object(r.a)(this,CursorToTaggingInput);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Move cursor to Tag Input",e.hotKeyCommand=o.a.FOCUS_TAGGING_INPUT,e}return CursorToTaggingInput}(s),m=function(e){Object(a.a)(Duplicate,e);var t=Object(i.a)(Duplicate);function Duplicate(){var e;Object(r.a)(this,Duplicate);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Duplicate item",e.hotKeyCommand=o.a.DUPLICATE_ITEM,e}return Duplicate}(s),h=function(e){Object(a.a)(Follow,e);var t=Object(i.a)(Follow);function Follow(){var e;Object(r.a)(this,Follow);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Follow/Unfollow item",e.hotKeyCommand=o.a.FOLLOW_ITEM,e}return Follow}(s),g=function(e){Object(a.a)(Forward,e);var t=Object(i.a)(Forward);function Forward(){var e;Object(r.a)(this,Forward);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Forward",e.hotKeyCommand=o.a.FORWARD,e}return Forward}(s),j=function(e){Object(a.a)(NextItem,e);var t=Object(i.a)(NextItem);function NextItem(){var e;Object(r.a)(this,NextItem);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Next item",e.hotKeyCommand=o.a.NEXT_ITEM,e}return NextItem}(s),v=function(e){Object(a.a)(PreviousItem,e);var t=Object(i.a)(PreviousItem);function PreviousItem(){var e;Object(r.a)(this,PreviousItem);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Previous item",e.hotKeyCommand=o.a.PREV_ITEM,e}return PreviousItem}(s),O=function(e){Object(a.a)(Print,e);var t=Object(i.a)(Print);function Print(){var e;Object(r.a)(this,Print);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Print",e.hotKeyCommand=o.a.PRINT,e}return Print}(s),T=function(e){Object(a.a)(Reply,e);var t=Object(i.a)(Reply);function Reply(){var e;Object(r.a)(this,Reply);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Reply",e.hotKeyCommand=o.a.REPLY,e}return Reply}(s),y=function(e){Object(a.a)(ReplyAll,e);var t=Object(i.a)(ReplyAll);function ReplyAll(){var e;Object(r.a)(this,ReplyAll);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Reply All",e.hotKeyCommand=o.a.REPLY_ALL,e}return ReplyAll}(s),S=function(e){Object(a.a)(ToggleRightPane,e);var t=Object(i.a)(ToggleRightPane);function ToggleRightPane(){var e;Object(r.a)(this,ToggleRightPane);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Toggle Right Side Pane",e.hotKeyCommand=o.a.TOGGLE_RIGHT_PANE,e}return ToggleRightPane}(s),C=function(e){Object(a.a)(ToggleLeftPane,e);var t=Object(i.a)(ToggleLeftPane);function ToggleLeftPane(){var e;Object(r.a)(this,ToggleLeftPane);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Toggle Left Side Pane",e.hotKeyCommand=o.a.TOGGLE_LEFT_PANE,e}return ToggleLeftPane}(s),A=function(e){Object(a.a)(NewMessage,e);var t=Object(i.a)(NewMessage);function NewMessage(){var e;Object(r.a)(this,NewMessage);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Compose a new Message",e.hotKeyCommand=o.a.NEW_MESSAGE,e}return NewMessage}(s),E=function(e){Object(a.a)(NewTopic,e);var t=Object(i.a)(NewTopic);function NewTopic(){var e;Object(r.a)(this,NewTopic);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Compose a new Note",e.hotKeyCommand=o.a.NEW_TOPIC,e}return NewTopic}(s),w=function(e){Object(a.a)(CursorToSearch,e);var t=Object(i.a)(CursorToSearch);function CursorToSearch(){var e;Object(r.a)(this,CursorToSearch);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Cursor to Search",e.hotKeyCommand=o.a.CURSOR_TO_SEARCH,e}return CursorToSearch}(s),_=function(e){Object(a.a)(NavigateSidePane,e);var t=Object(i.a)(NavigateSidePane);function NavigateSidePane(){var e;Object(r.a)(this,NavigateSidePane);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Navigate Side Pane",e.hotKeyCommand=o.a.NAVIGATE_SIDE_PANE,e}return NavigateSidePane}(s),I=function(e){Object(a.a)(BatchSelectUp,e);var t=Object(i.a)(BatchSelectUp);function BatchSelectUp(){var e;Object(r.a)(this,BatchSelectUp);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Batch Select",e.hotKeyCommand=o.a.BATCH_SELECT_UP,e}return BatchSelectUp}(s),x=function(e){Object(a.a)(BatchSelectDown,e);var t=Object(i.a)(BatchSelectDown);function BatchSelectDown(){var e;Object(r.a)(this,BatchSelectDown);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Batch Select",e.hotKeyCommand=o.a.BATCH_SELECT_DOWN,e}return BatchSelectDown}(s),k=function(e){Object(a.a)(GoToFirstMessage,e);var t=Object(i.a)(GoToFirstMessage);function GoToFirstMessage(){var e;Object(r.a)(this,GoToFirstMessage);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Select First Message",e.hotKeyCommand=o.a.SELECT_FIRST_MESSAGE,e}return GoToFirstMessage}(s),N=function(e){Object(a.a)(GoHome,e);var t=Object(i.a)(GoHome);function GoHome(){var e;Object(r.a)(this,GoHome);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Return to Home",e.hotKeyCommand=o.a.GO_HOME,e}return GoHome}(s),R=function(e){Object(a.a)(ToggleSidebar,e);var t=Object(i.a)(ToggleSidebar);function ToggleSidebar(){var e;Object(r.a)(this,ToggleSidebar);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).description="Toggle Navigation",e.hotKeyCommand=o.a.TOGGLE_SIDEBAR,e}return ToggleSidebar}(s)},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),a=n(1),i=n(92),o=n(141),c=n(316),s=a.forwardRef((function(e,t){return Object(r.jsx)(i.a,{name:e.fieldName,validate:e.validation,initialValue:e.initialValue,children:function children(n){var a,i,s,l=n.input,u=n.meta,d=!(!u.error&&!u.submitError||!u.touched)||!(u.touched||!e.error),b=u.error||u.submitError||e.error;return Object(r.jsx)(o.a,{label:e.label,name:null!==(a=e.id)&&void 0!==a?a:e.fieldName,error:d?b:void 0,helpText:e.helpText,"data-testid":"".concat(e.fieldName,"-input-field-wrapper"),children:Object(r.jsx)(c.a,{ref:t,type:e.type,name:l.fieldName,invalid:d,placeholder:e.placeholder,disabled:e.disabled,value:l.value,onChange:l.onChange,onFocus:l.onFocus,onBlur:l.onBlur,prefix:e.prefix,suffix:e.suffix,id:null!==(i=e.id)&&void 0!==i?i:e.fieldName,testId:null!==(s=e.testId)&&void 0!==s?s:"".concat(e.fieldName,"-input-field"),inputProps:e.inputProps})})}})}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(14),l=n(125),u=n(30),d=n(17),b=n(79),p=n(371),m=function(e){Object(o.a)(FilterSetNavigationAction,e);var t=Object(c.a)(FilterSetNavigationAction);function FilterSetNavigationAction(e,n,r,i,o,c,s,l){var u;return Object(a.a)(this,FilterSetNavigationAction),(u=t.call(this)).targetFilterSet=e,u.location=n,u.currentUser=r,u.quickFilterFallback=i,u.bookmark=o,u.isMobileSubjectSearch=c,u.returnToTeam=s,u.disabledQuickFilters=l,u.filterSetDeserializer=null,u}return Object(i.a)(FilterSetNavigationAction,[{key:"navigateToFilter",value:function navigateToFilter(){var e,t,n=this.filterSetDeserializer;if(!n)throw new Error("Cannot navigate without a filterSetDeserializer");var a,i=Object(u.parse)(this.location.search);if(this.returnToTeam){var o,c=(null===(o=i.teams)||void 0===o?void 0:o.split(","))||[];a=c[0],1!==c.length&&(a=i.teamId||this.currentUser.defaultTeamId)}var s=n.toFilterQuery(this.targetFilterSet,null!==(e=this.quickFilterFallback)&&void 0!==e?e:i.filter||b.a),m=s.filterSet,h=s.filter;return h&&(null===(t=this.disabledQuickFilters)||void 0===t?void 0:t.includes(h))&&(h=b.a),Object(l.e)(Object(r.a)(Object(r.a)({},this.location),{},{pathname:this.isMobileSubjectSearch?d.a.LIST:this.location.pathname,search:Object(u.stringify)(Object(r.a)(Object(r.a)({},i),{},{filter:h,filterSet:m,bookmark:this.bookmark,teams:s.teams},n instanceof p.a&&{returnToTeam:a}))}))}}]),FilterSetNavigationAction}(s.a),h=function(e){Object(o.a)(FilterSetChangeTeams,e);var t=Object(c.a)(FilterSetChangeTeams);function FilterSetChangeTeams(e,n){var r;return Object(a.a)(this,FilterSetChangeTeams),(r=t.call(this)).teams=e,r.location=n,r}return Object(i.a)(FilterSetChangeTeams,[{key:"navigateToFilter",value:function navigateToFilter(){var e=Object(u.parse)(this.location.search);return Object(l.e)(Object(r.a)(Object(r.a)({},this.location),{},{search:Object(u.stringify)(Object(r.a)(Object(r.a)({},e),{},{teams:"all"===this.teams?this.teams:this.teams.length>0?this.teams.join(","):void 0}))}))}}]),FilterSetChangeTeams}(s.a),g=function(e){Object(o.a)(FilterSetClearTerms,e);var t=Object(c.a)(FilterSetClearTerms);function FilterSetClearTerms(e){var n;return Object(a.a)(this,FilterSetClearTerms),(n=t.call(this)).location=e,n}return Object(i.a)(FilterSetClearTerms,[{key:"navigateToFilter",value:function navigateToFilter(){var e=Object(u.parse)(this.location.search);return delete e.filterSet,delete e.bookmark,Object(l.e)(Object(r.a)(Object(r.a)({},this.location),{},{search:Object(u.stringify)(Object(r.a)({},e))}))}}]),FilterSetClearTerms}(s.a)},function(e,t,n){"use strict";n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return S})),n.d(t,"e",(function(){return C})),n.d(t,"b",(function(){return A})),n.d(t,"h",(function(){return w})),n.d(t,"a",(function(){return I})),n.d(t,"g",(function(){return x})),n.d(t,"c",(function(){return k})),n.d(t,"f",(function(){return R})),n.d(t,"d",(function(){return D}));var r,a=n(7),i=n(4),o=n(10),c=n(3),s=n(5),l=n(6),u=n(14),d=n(41),b=n(20),p=n(16),m=function(e){Object(s.a)(NotificationDeviceCheckApiAction,e);var t=Object(l.a)(NotificationDeviceCheckApiAction);function NotificationDeviceCheckApiAction(e){var n;return Object(c.a)(this,NotificationDeviceCheckApiAction),(n=t.call(this)).deviceToken=e,n}return Object(o.a)(NotificationDeviceCheckApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/notification-device/check"),method:p.c.POST,body:JSON.stringify({token:this.deviceToken,userAgent:navigator.userAgent})}}}]),NotificationDeviceCheckApiAction}(b.a),h=function(e){Object(s.a)(NotificationDeviceUpsertApiAction,e);var t=Object(l.a)(NotificationDeviceUpsertApiAction);function NotificationDeviceUpsertApiAction(e){var n;return Object(c.a)(this,NotificationDeviceUpsertApiAction),(n=t.call(this)).deviceToken=e,n}return Object(o.a)(NotificationDeviceUpsertApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/notification-device/upsert"),method:p.c.POST,body:JSON.stringify({data:{type:"notification-device",attributes:{deviceToken:this.deviceToken,userAgent:navigator.userAgent}}})}}}]),NotificationDeviceUpsertApiAction}(b.a),g=function(e){Object(s.a)(NotificationDeviceUnsubscribeApiAction,e);var t=Object(l.a)(NotificationDeviceUnsubscribeApiAction);function NotificationDeviceUnsubscribeApiAction(e){var n;return Object(c.a)(this,NotificationDeviceUnsubscribeApiAction),(n=t.call(this)).deviceToken=e,n}return Object(o.a)(NotificationDeviceUnsubscribeApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/notification-device/unsubscribe"),method:p.c.POST,body:JSON.stringify({token:this.deviceToken})}}}]),NotificationDeviceUnsubscribeApiAction}(b.a),j=function(e){Object(s.a)(NotificationDeviceTestApiAction,e);var t=Object(l.a)(NotificationDeviceTestApiAction);function NotificationDeviceTestApiAction(e){var n;return Object(c.a)(this,NotificationDeviceTestApiAction),(n=t.call(this)).device=e,n}return Object(o.a)(NotificationDeviceTestApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/notification-device/").concat(this.device.id,"/test"),method:p.c.POST}}}]),NotificationDeviceTestApiAction}(b.a),v=n(43),O=n(335),T=n(8),y=function(e){Object(s.a)(SubscribeToNotifications,e);var t=Object(l.a)(SubscribeToNotifications);function SubscribeToNotifications(){return Object(c.a)(this,SubscribeToNotifications),t.apply(this,arguments)}return SubscribeToNotifications}(u.a),S=function(e){Object(s.a)(UnsubscribeToNotifications,e);var t=Object(l.a)(UnsubscribeToNotifications);function UnsubscribeToNotifications(e){var n;return Object(c.a)(this,UnsubscribeToNotifications),(n=t.call(this)).next=e,n}return UnsubscribeToNotifications}(u.a),C=function(e){Object(s.a)(SubmitCheckSubscriptionToNotifications,e);var t=Object(l.a)(SubmitCheckSubscriptionToNotifications);function SubmitCheckSubscriptionToNotifications(e){var n;return Object(c.a)(this,SubmitCheckSubscriptionToNotifications),(n=t.call(this,e)).deviceToken=e,n}return Object(o.a)(SubmitCheckSubscriptionToNotifications,[{key:"onSuccess",value:function onSuccess(){return[new A(!0)]}},{key:"onError",value:function onError(e){return[404===e.status?new A(!1):new E(e)]}}]),SubmitCheckSubscriptionToNotifications}(m),A=function(e){Object(s.a)(FulfillCheckSubscriptionToNotifications,e);var t=Object(l.a)(FulfillCheckSubscriptionToNotifications);function FulfillCheckSubscriptionToNotifications(e,n){var r;return Object(c.a)(this,FulfillCheckSubscriptionToNotifications),(r=t.call(this)).subscribed=e,r.deviceToken=n,r}return FulfillCheckSubscriptionToNotifications}(u.a),E=function(e){Object(s.a)(FailCheckSubscriptionToNotifications,e);var t=Object(l.a)(FailCheckSubscriptionToNotifications);function FailCheckSubscriptionToNotifications(){return Object(c.a)(this,FailCheckSubscriptionToNotifications),t.apply(this,arguments)}return FailCheckSubscriptionToNotifications}(u.b),w=function(e){Object(s.a)(SubmitUpsertNotificationDevice,e);var t=Object(l.a)(SubmitUpsertNotificationDevice);function SubmitUpsertNotificationDevice(e,n){var r;return Object(c.a)(this,SubmitUpsertNotificationDevice),(r=t.call(this,e)).deviceToken=e,r.userId=n,r}return Object(o.a)(SubmitUpsertNotificationDevice,[{key:"onSuccess",value:function onSuccess(){return this.userId?[new _(this.deviceToken),new O.c(this.userId)]:[new _(this.deviceToken)]}},{key:"onError",value:function onError(e){return[new I(e)]}}]),SubmitUpsertNotificationDevice}(h),_=function(e){Object(s.a)(FulfillUpsertNotificationDevice,e);var t=Object(l.a)(FulfillUpsertNotificationDevice);function FulfillUpsertNotificationDevice(e){var n;return Object(c.a)(this,FulfillUpsertNotificationDevice),(n=t.call(this)).deviceToken=e,n}return FulfillUpsertNotificationDevice}(u.a),I=function(e){Object(s.a)(FailUpsertNotificationDevice,e);var t=Object(l.a)(FailUpsertNotificationDevice);function FailUpsertNotificationDevice(){return Object(c.a)(this,FailUpsertNotificationDevice),t.apply(this,arguments)}return FailUpsertNotificationDevice}(u.b),x=function(e){Object(s.a)(SubmitUnsubscribeToNotifications,e);var t=Object(l.a)(SubmitUnsubscribeToNotifications);function SubmitUnsubscribeToNotifications(e){var n;return Object(c.a)(this,SubmitUnsubscribeToNotifications),(n=t.call(this,e)).deviceToken=e,n}return Object(o.a)(SubmitUnsubscribeToNotifications,[{key:"onSuccess",value:function onSuccess(){return[new k(this.deviceToken)]}},{key:"onError",value:function onError(e){return[new N(e,this.deviceToken)]}}]),SubmitUnsubscribeToNotifications}(g),k=function(e){Object(s.a)(FulfillUnsubscribeToNotifications,e);var t=Object(l.a)(FulfillUnsubscribeToNotifications);function FulfillUnsubscribeToNotifications(e){var n;return Object(c.a)(this,FulfillUnsubscribeToNotifications),(n=t.call(this)).deviceToken=e,n}return FulfillUnsubscribeToNotifications}(u.a),N=function(e){Object(s.a)(FailUnsubscribeToNotifications,e);var t=Object(l.a)(FailUnsubscribeToNotifications);function FailUnsubscribeToNotifications(e,n){var r;return Object(c.a)(this,FailUnsubscribeToNotifications),(r=t.call(this,e)).error=e,r.token=n,r}return FailUnsubscribeToNotifications}(u.b),R=function(e){Object(s.a)(SubmitTestNotificationDevice,e);var t=Object(l.a)(SubmitTestNotificationDevice);function SubmitTestNotificationDevice(){return Object(c.a)(this,SubmitTestNotificationDevice),t.apply(this,arguments)}return Object(o.a)(SubmitTestNotificationDevice,[{key:"onSuccess",value:function onSuccess(){return[new F,new v.b({message:"Test notification sent.",level:T.n.info})]}},{key:"onError",value:function onError(e){return[new M(e),new v.b({message:"Unable to send test notification. Try again.",level:T.n.warning})]}}]),SubmitTestNotificationDevice}(j),F=function(e){Object(s.a)(FulfillTestNotificationDevice,e);var t=Object(l.a)(FulfillTestNotificationDevice);function FulfillTestNotificationDevice(){return Object(c.a)(this,FulfillTestNotificationDevice),t.apply(this,arguments)}return FulfillTestNotificationDevice}(u.a),M=function(e){Object(s.a)(FailTestNotificationDevice,e);var t=Object(l.a)(FailTestNotificationDevice);function FailTestNotificationDevice(){return Object(c.a)(this,FailTestNotificationDevice),t.apply(this,arguments)}return FailTestNotificationDevice}(u.b),D=Object(d.a)((r={},Object(a.a)(r,C.name,(function(e,t){return Object(i.a)(Object(i.a)({},e),{},{token:t.deviceToken})})),Object(a.a)(r,A.name,(function(e,t){var n;return Object(i.a)(Object(i.a)({},e),{},{token:null!==(n=t.deviceToken)&&void 0!==n?n:e.token,subscribed:t.subscribed})})),Object(a.a)(r,w.name,(function(e,t){return Object(i.a)(Object(i.a)({},e),{},{token:t.deviceToken,subscribed:!0})})),Object(a.a)(r,I.name,(function(e){return Object(i.a)(Object(i.a)({},e),{},{token:null,subscribed:!1})})),Object(a.a)(r,k.name,(function(e,t){return Object(i.a)(Object(i.a)({},e),{},{token:e.token===t.deviceToken?null:e.token,subscribed:e.token!==t.deviceToken&&e.subscribed})})),r),{token:null,subscribed:null})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return ResponsiveProvider})),n.d(t,"c",(function(){return l}));var r=n(21),a=n(0),i=n(1),o=n(56),c=buildResponsiveObject(window.innerWidth),s=i.createContext(c);function ResponsiveProvider(e){var t=e.children,n=i.useState(c),o=Object(r.a)(n,2),l=o[0],u=o[1];return i.useEffect((function(){var e=function handleResize(){u(buildResponsiveObject(window.innerWidth))};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),Object(a.jsx)(s.Provider,{value:l,children:t})}var l=function useResponsive(){return i.useContext(s)};function buildResponsiveObject(e){return{size:Object(o.e)(e),width:e,isTabletish:e<o.d,isMobile:e<o.f,isLargeScreen:e>=o.c,isXxxLarge:e>o.g}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return getDocTypeIcon}));var r=n(7),a=n(566),i=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var o=i.createElement("path",{fill:"none",d:"M0 0h32v32H0z"}),c=i.createElement("path",{d:"M23 6h5v22H4V6h5V3h2v3h10V3h2v3zm0 2v2h-2V8H11v2H9V8H6v4h20V8h-3zm3 6H6v12h20V14zm-7 7v2h-2v-2h2zm-4 0v2h-2v-2h2zm-4 0v2H9v-2h2zm0-4v2H9v-2h2zm8 0v2h-2v-2h2zm4 4v2h-2v-2h2zm0-4v2h-2v-2h2zm-8 0v2h-2v-2h2z"});function SvgDocCalendar(e,t){var n=e.title,r=e.titleId,a=_objectWithoutProperties(e,["title","titleId"]);return i.createElement("svg",_extends({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?i.createElement("title",{id:r},n):null,o,c)}var s=i.forwardRef(SvgDocCalendar);n.p;function doc_code_extends(){return(doc_code_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function doc_code_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function doc_code_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=i.createElement("path",{fill:"none",d:"M0 0h32v32H0z"}),u=i.createElement("path",{d:"M17 5H8v22h16V12h-7V5zm2 .414V10h4.586L19 5.414zM6 3h13.414L26 9.586V29H6V3zm8.707 14.707L12.414 20l2.293 2.293-1.414 1.414L9.586 20l3.707-3.707 1.414 1.414zm2.586 4.586L19.586 20l-2.293-2.293 1.414-1.414L22.414 20l-3.707 3.707-1.414-1.414z"});function SvgDocCode(e,t){var n=e.title,r=e.titleId,a=doc_code_objectWithoutProperties(e,["title","titleId"]);return i.createElement("svg",doc_code_extends({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?i.createElement("title",{id:r},n):null,l,u)}var d=i.forwardRef(SvgDocCode),b=(n.p,n(562));function doc_image_extends(){return(doc_image_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function doc_image_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function doc_image_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=i.createElement("path",{fill:"none",d:"M0 0h32v32H0z"}),m=i.createElement("path",{d:"M24 12h-7V5H8v18.586l4.906-4.906 4 3L24 14.586V12zm-.414-2L19 5.414V10h4.586zM24 17.414l-6.906 6.906-4-3L8 26.414V27h16v-9.586zM6 3h13.414L26 9.586V29H6V3zm7 14a3 3 0 110-6 3 3 0 010 6zm0-2a1 1 0 100-2 1 1 0 000 2z"});function SvgDocImage(e,t){var n=e.title,r=e.titleId,a=doc_image_objectWithoutProperties(e,["title","titleId"]);return i.createElement("svg",doc_image_extends({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?i.createElement("title",{id:r},n):null,p,m)}var h,g,j=i.forwardRef(SvgDocImage),v=(n.p,n(561)),O=n(564),T=n(567),y=n(563),S=n(565);!function(e){e.ARCHIVE="ARCHIVE",e.CALENDAR="CALENDAR",e.CODE="CODE",e.EXCEL="EXCEL",e.IMAGE="IMAGE",e.PDF="PDF",e.POWERPOINT="POWERPOINT",e.TEXT="TEXT",e.WORD="WORD",e.DEFAULT="DEFAULT"}(g||(g={}));var C,A=(h={},Object(r.a)(h,g.ARCHIVE,a.a),Object(r.a)(h,g.CALENDAR,s),Object(r.a)(h,g.CODE,d),Object(r.a)(h,g.EXCEL,b.a),Object(r.a)(h,g.IMAGE,j),Object(r.a)(h,g.PDF,v.a),Object(r.a)(h,g.POWERPOINT,O.a),Object(r.a)(h,g.TEXT,T.a),Object(r.a)(h,g.WORD,y.a),Object(r.a)(h,g.DEFAULT,S.a),h);function getDocTypeIcon(e){return A[e]}!function(e){e.ATTACHMENT="https://www.sednanetwork.com/launch/attachments/attachment-64.png",e.MESSAGE="https://www.sednanetwork.com/launch/attachments/message-64.png",e.ARCHIVE="https://www.sednanetwork.com/launch/attachments/doc-archive-64.png",e.CALENDAR="https://www.sednanetwork.com/launch/attachments/doc-calendar-64.png",e.CODE="https://www.sednanetwork.com/launch/attachments/doc-code-64.png",e.EXCEL="https://www.sednanetwork.com/launch/attachments/doc-excel-64.png",e.IMAGE="https://www.sednanetwork.com/launch/attachments/doc-image-64.png",e.PDF="https://www.sednanetwork.com/launch/attachments/doc-pdf-64.png",e.POWERPOINT="https://www.sednanetwork.com/launch/attachments/doc-pdf-64.png",e.TEXT="https://www.sednanetwork.com/launch/attachments/doc-text-64.png",e.WORD="https://www.sednanetwork.com/launch/attachments/doc-word-64.png",e.DEFAULT="https://www.sednanetwork.com/launch/attachments/doc-unknown-64.png"}(C||(C={}))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var r=n(26),a=n(467),i=n(30),o=n(371),c=n(2),s=n(25),l=n(269),u=n(293),d=n(93),b=(Object(r.b)([function(e,t){return t},function(e){return e.entities.jobReference},function(e){return e.entities.categoryTag},function(e){return e.entities.team},function(e){return e.entities.user}],(function(e,t,n,r,i){return new a.a(e,t,n,r,i)})),Object(r.b)([function(e,t){return t},function(e){return e.entities.jobReference},function(e){return e.entities.categoryTag},function(e){return e.entities.team},function(e){return e.entities.user},function(e,t){return m(e,t)}],(function(e,t,n,r,a,i){return new o.a(e,t,n,r,a,i)}))),p=Object(r.b)([function(e,t){return Object(d.a)(e)},function(e){return e.entities.jobReference},function(e){return e.entities.categoryTag},function(e){return e.entities.team},function(e){return e.entities.user},function(e,t){return m(e,t)},function(e,t){return t}],(function(e,t,n,r,i,c,s){return e?new o.a(s,t,n,r,i,c):new a.a(s,t,n,r,i)})),m=Object(r.b)([function(e){return Object(i.parse)(e.router.location.search).teams},function(e,t){return t},function(e){return e.entities.team}],(function(e,t,n){var r=Object(c.i)(n),a=t.userTeams.reduce((function(e,t){var n=r[t];return n&&e.set(t,n),e}),new Map).set(t.defaultTeamId,r[t.defaultTeamId]),i=s.a.of(e).or(s.a.of("".concat(t.defaultTeamId))).map((function(e){return"all"===e?{teams:[],allTeamsSelected:!0}:{teams:e.split(",").map((function(e){return a.get(e)})).filter(l.a),allTeamsSelected:!1}})).orElse({teams:[],allTeamsSelected:!1});return new u.b(i.teams,i.allTeamsSelected)}))},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(86),a=n(3),i=n(10),o=n(25),c=function(){function Try(e,t){Object(a.a)(this,Try),this.err=void 0,this.val=void 0,"undefined"===typeof e&&"undefined"===typeof t?(this.err=new Error("Illegal call to `Try.constructor`: `val` must not be 'undefined'"),this.val=void 0):"undefined"!==typeof e&&"undefined"!==typeof t?(this.err=new Error("Illegal call to `Try.constructor`: one of `err` or `val` must be defined"),this.val=void 0):(this.err=e,this.val=t)}return Object(i.a)(Try,null,[{key:"of",value:function of(e){try{return new Try(void 0,e())}catch(t){return new Try(t)}}},{key:"ofError",value:function ofError(e){return new Try(e)}},{key:"ofValue",value:function ofValue(e){return new Try(void 0,e)}},{key:"traverse",value:function traverse(e,t){var n,a=[],i=Object(r.a)(e);try{for(i.s();!(n=i.n()).done;){var o=t(n.value);if(o.isError())return new Try(o.err);a.push(o.orElseThrow())}}catch(c){i.e(c)}finally{i.f()}return Try.ofValue(a)}},{key:"catSuccesses",value:function catSuccesses(e){var t,n=[],a=Object(r.a)(e);try{for(a.s();!(t=a.n()).done;){var i=t.value.orNull();null!==i&&n.push(i)}}catch(o){a.e(o)}finally{a.f()}return n}}]),Object(i.a)(Try,[{key:"toString",value:function toString(){return this.isError()?"Try.error{".concat(this.err,"}"):"Try.of{".concat(this.val,"}")}},{key:"toOptional",value:function toOptional(){return this.isError()?o.a.empty():o.a.of(this.val)}},{key:"isError",value:function isError(){return"undefined"!==typeof this.err}},{key:"map",value:function map(e){var t=this;return this.isError()?new Try(this.err):Try.of((function(){if("undefined"===typeof t.val)throw new Error("Illegal `Try` state");return e(t.val)}))}},{key:"flatMap",value:function flatMap(e){return this.isError()?new Try(this.err):"undefined"===typeof this.val?Try.ofError(new Error("Illegal `Try` state")):e(this.val)}},{key:"orNull",value:function orNull(){return"undefined"===typeof this.val?null:this.val}},{key:"orElse",value:function orElse(e){var t;return"undefined"===typeof this.val?e(null!==(t=this.err)&&void 0!==t?t:new Error):this.val}},{key:"orElseTry",value:function orElseTry(e){return"undefined"===typeof this.val?Try.of(e):this}},{key:"orElseThrow",value:function orElseThrow(){if("undefined"===typeof this.val)throw this.err;return this.val}}]),Try}()},function(e,t,n){"use strict";n.d(t,"f",(function(){return T})),n.d(t,"a",(function(){return y})),n.d(t,"g",(function(){return S})),n.d(t,"d",(function(){return C})),n.d(t,"b",(function(){return A})),n.d(t,"h",(function(){return E})),n.d(t,"e",(function(){return w})),n.d(t,"c",(function(){return _}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(600),l=n(29),u=n(557),d=n(55),b=n(642),p=n(43),m=n(32),h=n.n(m),g=n(8),j=n(20),v=n(16),O=function(e){Object(i.a)(MessagePostPublicComment,e);var t=Object(o.a)(MessagePostPublicComment);function MessagePostPublicComment(e,n){var a;return Object(r.a)(this,MessagePostPublicComment),(a=t.call(this)).messageId=e,a.commentText=n,a}return Object(a.a)(MessagePostPublicComment,[{key:"apiEffect",value:function apiEffect(e){var t={data:{attributes:{content:this.commentText}}};return{path:"".concat(e.platformUrl,"/message/").concat(this.messageId,"/public-comment"),method:v.c.POST,body:JSON.stringify(t)}}}]),MessagePostPublicComment}(j.a),T=function(e){Object(i.a)(SubmitAtMentionsComment,e);var t=Object(o.a)(SubmitAtMentionsComment);function SubmitAtMentionsComment(e,n,a,i){var o;return Object(r.a)(this,SubmitAtMentionsComment),(o=t.call(this,e,a)).messageId=e,o.commentText=n,o.userIds=a,o.currentUserId=i,o.eventSpec={eventCategory:"Activity Pane",eventAction:"At mention someone"},o.uuid=void 0,o.time=void 0,o.uuid=Object(b.a)(),o.time=h()().toISOString(),o}return Object(a.a)(SubmitAtMentionsComment,[{key:"onSuccess",value:function onSuccess(e){return[new d.o(this.messageId,e),new S(this.messageId,this.commentText,this.currentUserId,this.uuid)]}},{key:"onError",value:function onError(e){return[new y(this.messageId,this.commentText,this.userIds,this.uuid,e),new p.b({message:"Failed to submit the comment. Try again.",level:g.n.warning})]}}]),SubmitAtMentionsComment}(u.a),y=(c.a,function(e){Object(i.a)(FailAtMentionsComment,e);var t=Object(o.a)(FailAtMentionsComment);function FailAtMentionsComment(e,n,a,i,o){var c;return Object(r.a)(this,FailAtMentionsComment),(c=t.call(this,o)).messageId=e,c.commentText=n,c.userIds=a,c.uuid=i,c.error=o,c}return FailAtMentionsComment}(c.b)),S=function(e){Object(i.a)(SubmitNewComment,e);var t=Object(o.a)(SubmitNewComment);function SubmitNewComment(e,n,a){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Object(r.a)(this,SubmitNewComment),(i=t.call(this,e,n)).messageId=e,i.commentText=n,i.currentUserId=a,i.eventSpec=Object(l.h)("Comment",i.messageId),i.uuid=void 0,i.uuid=null!=o?o:Object(b.a)(),i}return Object(a.a)(SubmitNewComment,[{key:"onSuccess",value:function onSuccess(e){return[new C(this.messageId,e,this.uuid)]}},{key:"onError",value:function onError(e){return[new A(this.messageId,this.uuid,e),new p.b({message:"Failed to submit the comment. Try again.",level:g.n.warning})]}}]),SubmitNewComment}(s.a),C=function(e){Object(i.a)(FulfillNewComment,e);var t=Object(o.a)(FulfillNewComment);function FulfillNewComment(e,n,a){var i;return Object(r.a)(this,FulfillNewComment),(i=t.call(this)).messageId=e,i.comment=n,i.uuid=a,i}return FulfillNewComment}(c.a),A=function(e){Object(i.a)(FailNewComment,e);var t=Object(o.a)(FailNewComment);function FailNewComment(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;return Object(r.a)(this,FailNewComment),(n=t.call(this,i)).messageId=e,n.uuid=a,n.error=i,n}return FailNewComment}(c.b),E=function(e){Object(i.a)(SubmitPublicComment,e);var t=Object(o.a)(SubmitPublicComment);function SubmitPublicComment(e,n,a){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Object(r.a)(this,SubmitPublicComment),(i=t.call(this,e,n)).messageId=e,i.commentText=n,i.currentUserId=a,i.eventSpec=Object(l.h)("Public Comment",i.messageId),i.uuid=void 0,i.time=void 0,i.uuid=null!=o?o:Object(b.a)(),i.time=h()().toISOString(),i}return Object(a.a)(SubmitPublicComment,[{key:"onSuccess",value:function onSuccess(e){return[new w(this.messageId,this.uuid,e)]}},{key:"onError",value:function onError(e){return[new A(this.messageId,this.uuid,e),new p.b({message:"Failed to submit the comment. Try again.",level:g.n.warning})]}},{key:"mapResponse",value:function mapResponse(e){var t;return{id:e.id,content:e.attributes.content,createdAt:e.attributes.createdAt,userId:null===(t=e.relationships.user)||void 0===t?void 0:t.data.id}}}]),SubmitPublicComment}(O),w=function(e){Object(i.a)(FulfillPublicComment,e);var t=Object(o.a)(FulfillPublicComment);function FulfillPublicComment(e,n,a){var i;return Object(r.a)(this,FulfillPublicComment),(i=t.call(this)).messageId=e,i.uuid=n,i.comment=a,i}return FulfillPublicComment}(c.a),_=function(e){Object(i.a)(FailPublicComment,e);var t=Object(o.a)(FailPublicComment);function FailPublicComment(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;return Object(r.a)(this,FailPublicComment),(n=t.call(this,i)).messageId=e,n.uuid=a,n.error=i,n}return FailPublicComment}(c.b)},,,function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"f",(function(){return d}));var r="SEDNA_TENANT",a=null,i=["app","mobile"].some((function(e){return window.location.hostname==="".concat(e,".sednanetwork.com")})),o="https://app.sednanetwork.com",c=function hasTenantKey(){return null!==a||null!==localStorage.getItem(r)},s=function getTenantKey(){return null===a?localStorage.getItem(r):a},l=function clearTenantKey(){return localStorage.removeItem(r)},u=function setTenantKey(e){return localStorage.setItem(r,e)},d=function setPublicTenantKeyOverride(e){a=e}},function(e,t,n){"use strict";n.d(t,"l",(function(){return y})),n.d(t,"e",(function(){return S})),n.d(t,"i",(function(){return A})),n.d(t,"k",(function(){return E})),n.d(t,"d",(function(){return w})),n.d(t,"h",(function(){return I})),n.d(t,"b",(function(){return x})),n.d(t,"m",(function(){return k})),n.d(t,"j",(function(){return F})),n.d(t,"c",(function(){return M})),n.d(t,"g",(function(){return U})),n.d(t,"f",(function(){return B})),n.d(t,"a",(function(){return H}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=function(e){Object(i.a)(JobReferenceUnfollowApiAction,e);var t=Object(o.a)(JobReferenceUnfollowApiAction);function JobReferenceUnfollowApiAction(e,n){var a;return Object(r.a)(this,JobReferenceUnfollowApiAction),(a=t.call(this)).jobReferenceId=e,a.users=n,a}return Object(a.a)(JobReferenceUnfollowApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/job-reference/").concat(this.jobReferenceId,"/followers"),method:s.c.POST,body:JSON.stringify({data:{type:"unfollow_job_reference",attributes:{userIds:this.users.map((function(e){return parseInt(e.id,10)}))}}})}}}]),JobReferenceUnfollowApiAction}(c.a),u=n(14),d=function(e){Object(i.a)(JobReferenceFollowApiAction,e);var t=Object(o.a)(JobReferenceFollowApiAction);function JobReferenceFollowApiAction(e,n){var a;return Object(r.a)(this,JobReferenceFollowApiAction),(a=t.call(this)).jobReferenceId=e,a.users=n,a}return Object(a.a)(JobReferenceFollowApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/job-reference/").concat(this.jobReferenceId,"/followers"),method:s.c.POST,body:JSON.stringify({data:{type:"follow_job_reference",attributes:{userIds:this.users.map((function(e){return parseInt(e.id,10)}))}}})}}}]),JobReferenceFollowApiAction}(c.a),b=n(576),p=function(e){Object(i.a)(UserKeywordFollowApiAction,e);var t=Object(o.a)(UserKeywordFollowApiAction);function UserKeywordFollowApiAction(e,n){var a;return Object(r.a)(this,UserKeywordFollowApiAction),(a=t.call(this)).keyword=e,a.users=n,a}return Object(a.a)(UserKeywordFollowApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/user-keyword/followers"),method:s.c.POST,body:JSON.stringify({data:{type:"follow_user_keyword",attributes:{keyword:this.keyword,userIds:this.users.map((function(e){return parseInt(e.id,10)}))}}})}}}]),UserKeywordFollowApiAction}(c.a),m=function(e){Object(i.a)(UserKeywordUnfollowApiAction,e);var t=Object(o.a)(UserKeywordUnfollowApiAction);function UserKeywordUnfollowApiAction(e,n){var a;return Object(r.a)(this,UserKeywordUnfollowApiAction),(a=t.call(this)).keyword=e,a.users=n,a}return Object(a.a)(UserKeywordUnfollowApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/user-keyword/followers"),method:s.c.POST,body:JSON.stringify({data:{type:"unfollow_user_keyword",attributes:{keyword:this.keyword,userIds:this.users.map((function(e){return parseInt(e.id,10)}))}}})}}}]),UserKeywordUnfollowApiAction}(c.a),h=n(42),g=n(43),j=function(e){Object(i.a)(JobReferenceUnsubscribeApiAction,e);var t=Object(o.a)(JobReferenceUnsubscribeApiAction);function JobReferenceUnsubscribeApiAction(e,n){var a;return Object(r.a)(this,JobReferenceUnsubscribeApiAction),(a=t.call(this)).jobReferenceId=e,a.userId=n,a}return Object(a.a)(JobReferenceUnsubscribeApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/job-reference/").concat(this.jobReferenceId,"/followers"),method:s.c.POST,body:JSON.stringify({data:{type:"unfollow_job_reference",attributes:{userIds:[parseInt(this.userId,10)]}}})}}}]),JobReferenceUnsubscribeApiAction}(c.a),v=function(e){Object(i.a)(JobReferenceSubscribeApiAction,e);var t=Object(o.a)(JobReferenceSubscribeApiAction);function JobReferenceSubscribeApiAction(e,n){var a;return Object(r.a)(this,JobReferenceSubscribeApiAction),(a=t.call(this)).jobReferenceId=e,a.userId=n,a}return Object(a.a)(JobReferenceSubscribeApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/job-reference/").concat(this.jobReferenceId,"/followers"),method:s.c.POST,body:JSON.stringify({data:{type:"follow_job_reference",attributes:{userIds:[parseInt(this.userId,10)]}}})}}}]),JobReferenceSubscribeApiAction}(c.a),O=n(15),T=n(8),y=function(e){Object(i.a)(SubmitUnsubscribeUserFromJobReference,e);var t=Object(o.a)(SubmitUnsubscribeUserFromJobReference);function SubmitUnsubscribeUserFromJobReference(e,n,a){var i;return Object(r.a)(this,SubmitUnsubscribeUserFromJobReference),(i=t.call(this,e,n)).jobReferenceId=e,i.users=n,i.vesselName=a,i}return Object(a.a)(SubmitUnsubscribeUserFromJobReference,[{key:"onSuccess",value:function onSuccess(e){var t=this.vesselName&&""!==this.vesselName?[new k(this.vesselName,this.users)]:[];return[].concat(t,[new S(this.jobReferenceId,this.users)])}},{key:"onError",value:function onError(e){return[new C(e)]}}]),SubmitUnsubscribeUserFromJobReference}(l),S=function(e){Object(i.a)(FulFillUnsubscribeUsersFromJobReference,e);var t=Object(o.a)(FulFillUnsubscribeUsersFromJobReference);function FulFillUnsubscribeUsersFromJobReference(e,n){var a;return Object(r.a)(this,FulFillUnsubscribeUsersFromJobReference),(a=t.call(this)).jobReferenceId=e,a.users=n,a}return FulFillUnsubscribeUsersFromJobReference}(u.a),C=function(e){Object(i.a)(FailUnsubscribeUserFromJobReference,e);var t=Object(o.a)(FailUnsubscribeUserFromJobReference);function FailUnsubscribeUserFromJobReference(){return Object(r.a)(this,FailUnsubscribeUserFromJobReference),t.apply(this,arguments)}return FailUnsubscribeUserFromJobReference}(u.b),A=function(e){Object(i.a)(SubmitSubscribeUserToJobReference,e);var t=Object(o.a)(SubmitSubscribeUserToJobReference);function SubmitSubscribeUserToJobReference(e,n){var a;return Object(r.a)(this,SubmitSubscribeUserToJobReference),(a=t.call(this,e,n)).jobReferenceId=e,a.users=n,a}return Object(a.a)(SubmitSubscribeUserToJobReference,[{key:"onSuccess",value:function onSuccess(e){var t=this;return this.users.map((function(e){return new M(t.jobReferenceId,e)}))}},{key:"onError",value:function onError(e){return[new L(e)]}}]),SubmitSubscribeUserToJobReference}(d),E=function(e){Object(i.a)(SubmitUnsubscribeCurrentUserFromJobReference,e);var t=Object(o.a)(SubmitUnsubscribeCurrentUserFromJobReference);function SubmitUnsubscribeCurrentUserFromJobReference(e,n,a,i,o){var c;return Object(r.a)(this,SubmitUnsubscribeCurrentUserFromJobReference),(c=t.call(this,e,n)).jobReferenceId=e,c.userId=n,c.jobReferenceTagId=a,c.jobReferenceName=i,c.isMyWork=o,c.eventSpec={eventCategory:"Activity Panel",eventAction:"Job Unfollowed"},c}return Object(a.a)(SubmitUnsubscribeCurrentUserFromJobReference,[{key:"onSuccess",value:function onSuccess(e){return[new w(this.jobReferenceId,this.userId,this.jobReferenceTagId),new g.b({message:'Unfollowed "'.concat(this.jobReferenceName,'". Messages tagged with this Job will be removed from ').concat(O.b.t(O.a.MY_WORK),"."),level:T.n.info})]}},{key:"onError",value:function onError(e){return[new _(e)]}}]),SubmitUnsubscribeCurrentUserFromJobReference}(j),w=function(e){Object(i.a)(FulFillUnsubscribeCurrentUserFromJobReference,e);var t=Object(o.a)(FulFillUnsubscribeCurrentUserFromJobReference);function FulFillUnsubscribeCurrentUserFromJobReference(e,n,a){var i;return Object(r.a)(this,FulFillUnsubscribeCurrentUserFromJobReference),(i=t.call(this)).jobReferenceId=e,i.userId=n,i.jobReferenceTagId=a,i}return FulFillUnsubscribeCurrentUserFromJobReference}(u.a),_=function(e){Object(i.a)(FailUnsubscribeCurrentUserFromJobReference,e);var t=Object(o.a)(FailUnsubscribeCurrentUserFromJobReference);function FailUnsubscribeCurrentUserFromJobReference(){return Object(r.a)(this,FailUnsubscribeCurrentUserFromJobReference),t.apply(this,arguments)}return FailUnsubscribeCurrentUserFromJobReference}(u.b),I=function(e){Object(i.a)(SubmitSubscribeCurrentUserToJobReference,e);var t=Object(o.a)(SubmitSubscribeCurrentUserToJobReference);function SubmitSubscribeCurrentUserToJobReference(e,n,a,i){var o;return Object(r.a)(this,SubmitSubscribeCurrentUserToJobReference),(o=t.call(this,e,n)).jobReferenceId=e,o.userId=n,o.jobReferenceTagId=a,o.jobReferenceName=i,o.eventSpec={eventCategory:"Activity Panel",eventAction:"Job Followed"},o}return Object(a.a)(SubmitSubscribeCurrentUserToJobReference,[{key:"onSuccess",value:function onSuccess(e){return[new x(this.jobReferenceId,this.userId,this.jobReferenceTagId),new g.b({message:'Following "'.concat(this.jobReferenceName,'"'),level:T.n.info})]}},{key:"onError",value:function onError(e){return[new L(e)]}}]),SubmitSubscribeCurrentUserToJobReference}(v),x=function(e){Object(i.a)(FulFillSubscribeCurrentUserToJobReference,e);var t=Object(o.a)(FulFillSubscribeCurrentUserToJobReference);function FulFillSubscribeCurrentUserToJobReference(e,n,a){var i;return Object(r.a)(this,FulFillSubscribeCurrentUserToJobReference),(i=t.call(this)).jobReferenceId=e,i.userId=n,i.jobReferenceTagId=a,i}return FulFillSubscribeCurrentUserToJobReference}(u.a),k=(u.b,function(e){Object(i.a)(SubmitUnsubscribeUserFromUserKeyword,e);var t=Object(o.a)(SubmitUnsubscribeUserFromUserKeyword);function SubmitUnsubscribeUserFromUserKeyword(e,n){var a;return Object(r.a)(this,SubmitUnsubscribeUserFromUserKeyword),(a=t.call(this,e,n)).keyword=e,a.users=n,a}return Object(a.a)(SubmitUnsubscribeUserFromUserKeyword,[{key:"onError",value:function onError(e){return[new R(e)]}},{key:"onSuccess",value:function onSuccess(e){return[new N(this.keyword,this.users)]}}]),SubmitUnsubscribeUserFromUserKeyword}(m)),N=function(e){Object(i.a)(FulFillUnsubscribeUserFromUserKeyword,e);var t=Object(o.a)(FulFillUnsubscribeUserFromUserKeyword);function FulFillUnsubscribeUserFromUserKeyword(e,n){var a;return Object(r.a)(this,FulFillUnsubscribeUserFromUserKeyword),(a=t.call(this)).keyword=e,a.users=n,a}return FulFillUnsubscribeUserFromUserKeyword}(u.a),R=function(e){Object(i.a)(FailUnsubscribeUserFromUserKeyword,e);var t=Object(o.a)(FailUnsubscribeUserFromUserKeyword);function FailUnsubscribeUserFromUserKeyword(){return Object(r.a)(this,FailUnsubscribeUserFromUserKeyword),t.apply(this,arguments)}return FailUnsubscribeUserFromUserKeyword}(u.b),F=function(e){Object(i.a)(SubmitSubscribeUserToUserKeyword,e);var t=Object(o.a)(SubmitSubscribeUserToUserKeyword);function SubmitSubscribeUserToUserKeyword(e,n){var a;return Object(r.a)(this,SubmitSubscribeUserToUserKeyword),(a=t.call(this,e,n)).keyword=e,a.users=n,a}return Object(a.a)(SubmitSubscribeUserToUserKeyword,[{key:"onError",value:function onError(e){return[new P(e)]}},{key:"onSuccess",value:function onSuccess(e){return[new D(this.keyword,this.users)]}}]),SubmitSubscribeUserToUserKeyword}(p),M=function(e){Object(i.a)(FulFillSubscribeUserToJobReference,e);var t=Object(o.a)(FulFillSubscribeUserToJobReference);function FulFillSubscribeUserToJobReference(e,n){var a;return Object(r.a)(this,FulFillSubscribeUserToJobReference),(a=t.call(this)).jobReferenceId=e,a.user=n,a}return FulFillSubscribeUserToJobReference}(u.a),D=function(e){Object(i.a)(FulFillSubscribeUserToUserKeyword,e);var t=Object(o.a)(FulFillSubscribeUserToUserKeyword);function FulFillSubscribeUserToUserKeyword(e,n){var a;return Object(r.a)(this,FulFillSubscribeUserToUserKeyword),(a=t.call(this)).keyword=e,a.users=n,a}return FulFillSubscribeUserToUserKeyword}(u.a),L=function(e){Object(i.a)(FailSubscribeUserToJobReference,e);var t=Object(o.a)(FailSubscribeUserToJobReference);function FailSubscribeUserToJobReference(){return Object(r.a)(this,FailSubscribeUserToJobReference),t.apply(this,arguments)}return FailSubscribeUserToJobReference}(u.b),P=function(e){Object(i.a)(FailSubscribeUserToUserKeyword,e);var t=Object(o.a)(FailSubscribeUserToUserKeyword);function FailSubscribeUserToUserKeyword(){return Object(r.a)(this,FailSubscribeUserToUserKeyword),t.apply(this,arguments)}return FailSubscribeUserToUserKeyword}(u.b),U=function(e){Object(i.a)(RequestJobReferenceFollowers,e);var t=Object(o.a)(RequestJobReferenceFollowers);function RequestJobReferenceFollowers(e){var n;return Object(r.a)(this,RequestJobReferenceFollowers),(n=t.call(this,e)).jobReferenceId=e,n}return Object(a.a)(RequestJobReferenceFollowers,[{key:"onSuccess",value:function onSuccess(e){return[new B(this.jobReferenceId,e.data.map((function(e){return e.id})))]}},{key:"onError",value:function onError(e){return[new H(Object(h.b)("Failed to load requested followers for this Job Reference."))]}}]),RequestJobReferenceFollowers}(b.a),B=function(e){Object(i.a)(FulfillJobReferenceGetFollowers,e);var t=Object(o.a)(FulfillJobReferenceGetFollowers);function FulfillJobReferenceGetFollowers(e,n){var a;return Object(r.a)(this,FulfillJobReferenceGetFollowers),(a=t.call(this)).jobReferenceId=e,a.followerUserIds=n,a}return FulfillJobReferenceGetFollowers}(u.a),H=function(e){Object(i.a)(FailJobReferenceGetFollowers,e);var t=Object(o.a)(FailJobReferenceGetFollowers);function FailJobReferenceGetFollowers(e){var n;return Object(r.a)(this,FailJobReferenceGetFollowers),(n=t.call(this)).error=e,n}return FailJobReferenceGetFollowers}(u.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="YYYY-MM-DDTHH:mm:ss.SSSZ"},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"g",(function(){return i}));var r,a,i,o=n(8),c=[o.h.inbox,o.h.myWork],s="var(--background-2)",l=3e4,u=5e3;!function(e){e.FULL="FULL",e.COLLAPSED="COLLAPSED"}(r||(r={})),function(e){e.DEFAULT="var(--bucket)",e.DEFAULT_TEXT="var(--text-1)"}(a||(a={})),function(e){e.SAVED_SEARCH="SAVED_SEARCH"}(i||(i={}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return getDocumentTypeFromFilename})),n.d(t,"d",(function(){return getIconFromFilename})),n.d(t,"e",(function(){return getIconUrlFromFileName})),n.d(t,"b",(function(){return i}));var r,a=n(113);function getDocumentTypeFromFilename(e){switch(e.toLowerCase().split(".").pop()){case"eml":return r.EML;case"pdf":return r.PDF;case"xls":case"xlsx":case"xltx":case"xltm":return r.EXCEL;case"doc":case"docx":return r.WORD;case"jpg":case"jpeg":case"gif":case"png":case"bmp":case"tif":return r.IMG;case"ppt":case"pptx":return r.POWERPOINT;case"zip":case"rar":return r.COMPRESSED_FILE;case"txt":return r.TXT;case"php":case"js":case"css":case"java":case"py":case"kt":case"class":case"c":case"cmd":case"cpp":return r.CODE;case"ics":case"vcs":return r.CALENDAR;default:return r.OTHER}}function getIconFromFilename(e){switch(getDocumentTypeFromFilename(e)){case r.PDF:return Object(a.c)(a.a.PDF);case r.EXCEL:return Object(a.c)(a.a.EXCEL);case r.WORD:return Object(a.c)(a.a.WORD);case r.IMG:return Object(a.c)(a.a.IMAGE);case r.POWERPOINT:return Object(a.c)(a.a.POWERPOINT);case r.COMPRESSED_FILE:return Object(a.c)(a.a.ARCHIVE);case r.TXT:return Object(a.c)(a.a.TEXT);case r.CODE:return Object(a.c)(a.a.CODE);case r.CALENDAR:return Object(a.c)(a.a.CALENDAR);default:return Object(a.c)(a.a.DEFAULT)}}function getIconUrlFromFileName(e){switch(getDocumentTypeFromFilename(e)){case r.PDF:return a.b.PDF;case r.EXCEL:return a.b.EXCEL;case r.WORD:return a.b.WORD;case r.IMG:return a.b.IMAGE;case r.POWERPOINT:return a.b.POWERPOINT;case r.COMPRESSED_FILE:return a.b.ARCHIVE;case r.TXT:return a.b.TEXT;case r.CODE:return a.b.CODE;case r.CALENDAR:return a.b.CALENDAR;default:return a.b.DEFAULT}}!function(e){e.EML="eml",e.PDF="pdf",e.EXCEL="excel",e.WORD="word",e.IMG="img",e.POWERPOINT="powerpoint",e.COMPRESSED_FILE="compressed_file",e.TXT="txt",e.CODE="code",e.CALENDAR="calendar",e.OTHER="other"}(r||(r={}));var i=new Set([r.EML,r.PDF,r.IMG])},,function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=n(9),d=n(19),b=n(157),p=n(40),m=n(24),h=n.n(m),g=n(56),j=function(e){Object(o.a)(Tag,e);var t=Object(c.a)(Tag);function Tag(e){var n;return Object(a.a)(this,Tag),(n=t.call(this,e)).hoverToggle=Object(b.a)((function(e){n.setState({hover:e})}),10),n.hasRemoveButton=function(){return"inactive"!==n.props.state&&"activeNoClear"!==n.props.state&&n.props.onClick&&n.props.onClick!==p.a},n.renderIcon=function(){return n.props.icon?Object(s.jsx)("div",{className:"u-inline-flex c-tag__icon",children:Object(s.jsx)(d.a,{glyph:n.props.icon,size:"small"})}):""},n.state={hover:!1},n}return Object(i.a)(Tag,[{key:"render",value:function render(){var e=this,t=this.props,n=t.label,a=t.state,i=t.color,o=t.onClick,c=t.textColor,l=t.children,u=t.id,d=t.className,b="inactive"===a?{onClick:o}:{},p=this.hasRemoveButton()&&!g.b?{onMouseEnter:function onMouseEnter(){e.hoverToggle(!0)},onMouseLeave:function onMouseLeave(){e.hoverToggle(!1)}}:{},m=Object(r.a)(Object(r.a)({id:u,className:h()("c-tag ".concat(this.props.icon?"c--icon":"","\n       ").concat("inactive"===a||"activeOtherTeam"===a?"c--outline":"","\n       ").concat(void 0!==d?d:""),{"c--touchscreen":g.b})},b),p),j={},v={};switch(j.borderColor=i,a){case"inactive":j.color=i,j.borderStyle="dashed",j.cursor="pointer",v.color=i;break;case"active":case"activeNoClear":j.backgroundColor=i,j.color=null!==c&&void 0!==c?c:"var(--white)";break;case"activeOtherTeam":j.color=i;break;default:j.color="$ff0000"}return Object(s.jsxs)("div",Object(r.a)(Object(r.a)({style:j},m),{},{"data-testid":"tag",children:[!g.b&&this.hasRemoveButton()&&this.props.icon&&this.state.hover?this.renderRemoveButton():this.renderIcon(),!g.b&&this.hasRemoveButton()&&!this.props.icon&&this.renderRemoveButton(),Object(s.jsxs)("span",{className:"c-tag__content",style:v,children:[n,this.props.badge?" ":"",this.props.badge]}),g.b&&this.hasRemoveButton()&&this.renderRemoveButton(),l]}))}},{key:"renderRemoveButton",value:function renderRemoveButton(){var e=this.props.onClick;return this.hasRemoveButton()&&e?Object(s.jsx)("button",{className:"c-tag__remove",type:"button",onClick:this.props.onClick,"data-testid":"tag-remove",children:Object(s.jsx)(d.a,{glyph:Object(u.e)(u.c.CLEAR),size:"small"})}):""}}]),Tag}(l.PureComponent)},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=n(133),d=n(9),b=function(e){Object(o.a)(AssignmentTag,e);var t=Object(c.a)(AssignmentTag);function AssignmentTag(){return Object(a.a)(this,AssignmentTag),t.apply(this,arguments)}return Object(i.a)(AssignmentTag,[{key:"render",value:function render(){var e=this.props,t=e.userFullName,n=e.state,a=e.onClick,i=e.children,o=e.id,c=e.hideIcon,l=e.userCanSeeMessage;return Object(s.jsx)(u.a,Object(r.a)(Object(r.a)({label:t,state:n,onClick:a,color:"var(--person-tag)",id:o},c?{}:void 0!==l?l?{icon:Object(d.e)(d.c.PERSON)}:{icon:Object(d.e)(d.c.INVISIBLE)}:{icon:Object(d.e)(d.c.PERSON)}),{},{children:i}))}}]),AssignmentTag}(l.PureComponent)},function(e,t,n){"use strict";function check(e){throw new Error("Unknown constructor.")}n.d(t,"a",(function(){return check}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(133),u=n(9),d=function(e){Object(i.a)(JobReferenceTag,e);var t=Object(o.a)(JobReferenceTag);function JobReferenceTag(){return Object(r.a)(this,JobReferenceTag),t.apply(this,arguments)}return Object(a.a)(JobReferenceTag,[{key:"render",value:function render(){var e=this.props,t=e.label,n=e.state,r=e.onClick,a=e.id,i=e.children;return Object(c.jsx)(l.a,{label:t,state:n,onClick:r,color:"var(--job-tag)",id:a,className:"c--job",icon:Object(u.e)(u.c.JOB),children:i})}}]),JobReferenceTag}(s.PureComponent)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return d}));var r=n(3),a=n(5),i=n(6),o=n(14),c=function(e){Object(a.a)(NetworkConnected,e);var t=Object(i.a)(NetworkConnected);function NetworkConnected(){return Object(r.a)(this,NetworkConnected),t.apply(this,arguments)}return NetworkConnected}(o.a),s=function(e){Object(a.a)(NetworkDisconnected,e);var t=Object(i.a)(NetworkDisconnected);function NetworkDisconnected(){return Object(r.a)(this,NetworkDisconnected),t.apply(this,arguments)}return NetworkDisconnected}(o.a),l=function(e){Object(a.a)(ReportNetworkConencted,e);var t=Object(i.a)(ReportNetworkConencted);function ReportNetworkConencted(){return Object(r.a)(this,ReportNetworkConencted),t.apply(this,arguments)}return ReportNetworkConencted}(o.a),u=function(e){Object(a.a)(ReportNetworkDisconnected,e);var t=Object(i.a)(ReportNetworkDisconnected);function ReportNetworkDisconnected(){return Object(r.a)(this,ReportNetworkDisconnected),t.apply(this,arguments)}return ReportNetworkDisconnected}(o.a),d=function(e){Object(a.a)(SoftRefresh,e);var t=Object(i.a)(SoftRefresh);function SoftRefresh(){return Object(r.a)(this,SoftRefresh),t.apply(this,arguments)}return SoftRefresh}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),a=(n(1),n(12)),i={Field:a.b.div.withConfig({displayName:"form-field__Field",componentId:"nu8gbp-0"})(["margin-bottom:var(--spacing-3);"]),Label:a.b.label.withConfig({displayName:"form-field__Label",componentId:"nu8gbp-1"})(["color:var(--text-2);margin-bottom:var(--spacing-2);"]),HelpText:a.b.p.withConfig({displayName:"form-field__HelpText",componentId:"nu8gbp-2"})(["color:var(--text-2);font-size:var(--fs-sm);margin-top:var(--spacing-1);margin-bottom:var(--spacing-2);",""],(function(e){return e.$invalid&&"\n      color: var(--danger)\n      "}))},o=function FormField(e){var t=e.label,n=e.name,a=e.error,o=e.helpText,c=e.children;return Object(r.jsxs)(i.Field,{children:[t&&Object(r.jsx)(i.Label,{htmlFor:n,children:t}),c,(null!==a&&void 0!==a?a:o)&&Object(r.jsx)(i.HelpText,{$invalid:!!a,children:null!==a&&void 0!==a?a:o})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return p}));var r=n(4),a=n(5),i=n(6),o=n(3),c=n(10),s=n(20),l=n(25),u=n(16),d="ALL_FIELDS",b=function(){function MessageIncludeMap(e){Object(o.a)(this,MessageIncludeMap),this.map=void 0;this.map=e?e.reduce((function reducer(e,t){var n,r="".concat(t.type,":").concat(t.id);return e[r]||(e[r]=[]),null===(n=e[r])||void 0===n||n.push(t),e}),{}):{}}return Object(c.a)(MessageIncludeMap,[{key:"get",value:function get(e){var t,n=e.type,r=e.id;return null!==(t=this.map["".concat(n,":").concat(r)])&&void 0!==t?t:[]}}]),MessageIncludeMap}(),p=(s.a,function(e){Object(a.a)(MessageGetApiAction,e);var t=Object(i.a)(MessageGetApiAction);function MessageGetApiAction(e,n,r){var a;return Object(o.a)(this,MessageGetApiAction),(a=t.call(this)).messageId=e,a.fields=n,a.include=r,a}return Object(c.a)(MessageGetApiAction,null,[{key:"mungeLinks",value:function mungeLinks(e){var t=(new DOMParser).parseFromString("<body>".concat(e,"</body>"),"text/html").body;return t.querySelectorAll("a[href]").forEach((function(e){e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer")})),t.innerHTML}}]),Object(c.a)(MessageGetApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=this.fields instanceof Array?l.a.of(this.fields):l.a.empty(),n=l.a.catOptionals(t.map((function(e){return"fields[message]=".concat(e.join(","))})),this.include.map((function(e){return"include=".concat(e.join(","))})));return{path:"".concat(e.platformUrl,"/message/").concat(this.messageId,"?").concat(n.join("&")),headers:{"cache-control":"no-cache"},method:u.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return Object(r.a)(Object(r.a)({},e),{},{attributes:Object(r.a)(Object(r.a)({},e.attributes),{},{bodyHtml:e.attributes.bodyHtml?MessageGetApiAction.mungeLinks(e.attributes.bodyHtml):"",bodyText:e.attributes.bodyText||""})})}}]),MessageGetApiAction}(s.a))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=n(9),d=n(19),b=n(40),p=n(56),m={"in:Inbox":u.c.INBOX,"in:Scheduled":u.c.SCHEDULED,"in:Cancelled":u.c.DRAFTS,"in:MyMessages":u.c.MY_MESSAGES,"in:MyWork":u.c.MY_MESSAGES,"in:Following":u.c.FOLLOW,"in:Draft":u.c.DRAFTS,"in:Archive":u.c.ARCHIVE,"in:Out":u.c.OUTBOX,"All Teams":u.c.TENANT,"is:Message":u.c.MESSAGE,"is:Attachment":u.c.PAPERCLIP,"is:Comment":u.c.COMMENT,"is:Person":u.c.PERSON,"is:Team":u.c.PEOPLE,"is:Read":u.c.READ,"is:Unread":u.c.MESSAGE,"is:Note":u.c.NOTE,"has:Attachment":u.c.PAPERCLIP,"has:Assignment":u.c.PERSON,"has:Followers":u.c.PERSON,"has:Category":u.c.TAG,"has:Person":u.c.PERSON,"has:Job":u.c.JOB,"has:Comment":u.c.COMMENT,"has:UnreadComment":u.c.COMMENT,subject:u.c.MESSAGE,body:u.c.TEXT,comment:u.c.COMMENT,from:u.c.PERSON,to:u.c.PEOPLE,cc:u.c.PEOPLE,attachment:u.c.PAPERCLIP,"message id":u.c.MESSAGE_ID,"MyMessages:":u.c.MY_MESSAGES,"MyWork:":u.c.MY_MESSAGES},h=function(e){Object(o.a)(ModifierTag,e);var t=Object(c.a)(ModifierTag);function ModifierTag(e){var n;return Object(a.a)(this,ModifierTag),(n=t.call(this,e)).hasRemoveButton=function(){return"inactive"!==n.props.state&&n.props.onClick&&n.props.onClick!==b.a},n.hoverToggle=function(e){n.setState({hover:e})},n.state={hover:!1},n}return Object(i.a)(ModifierTag,[{key:"render",value:function render(){var e=this,t=this.props,n=t.label,a=t.state,i=t.onClick,o=t.children,c=t.id,l=t.className,u=t.labelClassName,d=t.dataTestId,b="inactive"===a?{onClick:i}:{},m=this.hasRemoveButton()?{onClick:function onClick(){return e.hoverToggle(!0)},onMouseOver:function onMouseOver(){return e.hoverToggle(!0)},onMouseLeave:function onMouseLeave(){return e.hoverToggle(!1)}}:{},h=Object(r.a)(Object(r.a)({id:c,className:"c-tag c--modifier ".concat(void 0!==l?l:"")},b),m),g="c-tag__content ".concat(void 0!==u?u:"");return Object(s.jsxs)("div",Object(r.a)(Object(r.a)({},h),{},{"data-testid":d,children:[!p.b&&this.hasRemoveButton()&&this.state.hover?this.renderRemoveButton():this.renderIcon(),Object(s.jsx)("span",{className:g,children:n}),p.b&&this.hasRemoveButton()&&this.renderRemoveButton(),o]}))}},{key:"renderIcon",value:function renderIcon(){var e,t,n,r,a=this.props.label,i=a.split(":").length>1&&null!==(e=a.split(":")[0])&&void 0!==e?e:"",o=null!==(t=null!==(n=null!==(r=this.props.icon)&&void 0!==r?r:m[a])&&void 0!==n?n:m[i])&&void 0!==t&&t;return o?Object(s.jsx)("div",{className:"u-pa-xs u-flex",children:Object(s.jsx)(d.a,{glyph:Object(u.e)(o),size:"small",className:"u-mr-xs"})}):""}},{key:"renderRemoveButton",value:function renderRemoveButton(){var e=this.props.onClick;return this.hasRemoveButton()&&e?Object(s.jsx)("button",{className:"c-tag__remove",type:"button",onClick:this.props.onClick,"data-testid":"tag-remove",children:Object(s.jsx)(d.a,{glyph:this.props.editable?Object(u.e)(u.c.EDIT):Object(u.e)(u.c.CLEAR),size:"small",className:"u-mr-xs"})}):""}}]),ModifierTag}(l.PureComponent)},,,function(e,t,n){"use strict";n.d(t,"d",(function(){return M})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return L})),n.d(t,"c",(function(){return P})),n.d(t,"h",(function(){return getInitialSednaMessageRecipientsSettings})),n.d(t,"a",(function(){return U})),n.d(t,"b",(function(){return B})),n.d(t,"g",(function(){return SettingsAppearancePanel}));var r=n(4),a=n(21),i=n(0),o=n(1),c=n(12),s=n(92),l=n(32),u=n.n(l),d=n(38),b=n(40),p=n(25),m=n(287),h=n(97),g=n(483),j=n(376),v=n(436),O=n(81),T=n(588),y=n(587),S=n(590),C=n(589),A=n(9),E=n(34),w=n(243),_=n(141),I={Container:c.b.div.withConfig({displayName:"toggle-switch-field__Container",componentId:"abbmk6-0"})(["display:flex;"]),ToggleSwitch:Object(c.b)(w.c).withConfig({displayName:"toggle-switch-field__ToggleSwitch",componentId:"abbmk6-1"})(["margin-top:var(--spacing-1);margin-right:var(--spacing-6);"])};function ToggleSwitchField(e){return Object(i.jsx)(s.a,{name:e.fieldName,children:function children(t){var n,r,a,o,c=t.input;return Object(i.jsxs)(I.Container,{children:[Object(i.jsx)(I.ToggleSwitch,{id:null!==(n=e.id)&&void 0!==n?n:e.fieldName,checked:e.checked,size:w.b.MEDIUM,disabled:!!e.disabled,onChange:function handleChange(e){return c.onChange({target:{value:e}})},ariaLabel:null!==(r=e.label)&&void 0!==r?r:"Toggle",testId:null!==(a=e.testId)&&void 0!==a?a:"".concat(e.fieldName,"-toggle-switch-field")}),Object(i.jsx)(_.a,{label:e.label,name:null!==(o=e.id)&&void 0!==o?o:e.fieldName,helpText:e.helpText})]})}})}var x=n(15),k=n(28),N=n(59),R=n(29),F=n(8),M="SEDNA_SIDEBAR_ENABLED_V1",D=null,L="SEDNA_SIDEBAR_ENABLED_V2",P="SEDNA_MESSAGE_RECIPIENTS_SETTINGS_V1";function getInitialSednaMessageRecipientsSettings(e){return{showToField:!e,showCcField:!1,showBccField:e}}var U="SEDNA_MESSAGE_LIST_STYLE_V2",B={msgStyle:d.c.BOLD_SENDER,displayMessageExcerpt:!0,enableNewTiles:!0,toggleJobRefHeader:!0},H={ScrollContainer:c.b.div.withConfig({displayName:"settings-appearance-panel__ScrollContainer",componentId:"jpo4vu-0"})(["overflow-y:auto;overflow-x:hidden;"]),SectionHeading:c.b.h3.withConfig({displayName:"settings-appearance-panel__SectionHeading",componentId:"jpo4vu-1"})(["font-size:var(--fs-lg);font-weight:var(--fw-semi);line-height:1.5;margin-bottom:var(--spacing-2);:not(:first-of-type){margin-top:var(--spacing-4);}"]),TileContainer:c.b.div.withConfig({displayName:"settings-appearance-panel__TileContainer",componentId:"jpo4vu-2"})(["min-height:19rem;padding:var(--spacing-6);margin-bottom:var(--spacing-3);background-color:var(--background-2);border-radius:var(--br2);"]),Tile:c.b.div.withConfig({displayName:"settings-appearance-panel__Tile",componentId:"jpo4vu-3"})(["max-width:38rem;margin:0 auto;"]),Card:c.b.div.withConfig({displayName:"settings-appearance-panel__Card",componentId:"jpo4vu-4"})(["background:var(--background-1);border-radius:var(--br2);padding:var(--spacing-3);padding-bottom:var(--spacing-2);margin:var(--spacing-3) 0;display:block;transition:height;"]),CardDivider:c.b.div.withConfig({displayName:"settings-appearance-panel__CardDivider",componentId:"jpo4vu-5"})(["margin-left:8rem;margin-bottom:var(--spacing-3);border-bottom:1px solid var(--border-1);height:1px;"]),CardSubContent:c.b.div.withConfig({displayName:"settings-appearance-panel__CardSubContent",componentId:"jpo4vu-6"})(["margin-left:8rem;"]),FormActions:Object(c.b)(O.a).withConfig({displayName:"settings-appearance-panel__FormActions",componentId:"jpo4vu-7"})(["padding-top:var(--spacing-6);"])},G={parentId:"1",relationshipId:"2",tagId:"3",label:"Sedna/Example"};function SettingsAppearancePanel(e){var t=e.currentUser,n=e.sidebarDisplayOption,c=e.bccByDefault,l=n===F.t.OPT_IN||n===F.t.OPT_OUT,w=Object(k.useDispatch)(),_=Object(h.d)("".concat(n===F.t.OPT_OUT?L:M,"_").concat(t.id),D),I=Object(a.a)(_,2),W=I[0],z=I[1],V=Object(h.d)("".concat(U,"_").concat(t.id),B),J=Object(a.a)(V,2),Y=J[0],q=J[1],K=Object(h.d)("".concat(P,"_").concat(t.id),getInitialSednaMessageRecipientsSettings(c)),X=Object(a.a)(K,2),Q=X[0],Z=X[1],$=o.useMemo((function(){return!!l&&(null===W?n===F.t.OPT_OUT:W)}),[l,n,W]),ee=o.useMemo((function(){return{sidebarEnabled:$,toggleJobRefHeader:Y.toggleJobRefHeader,enableNewTiles:Y.enableNewTiles,displayMessageExcerpt:Y.displayMessageExcerpt,boldSubjectInsteadOfSender:Y.msgStyle===d.c.BOLD_SUBJECT,showToField:Q.showToField,showCcField:Q.showCcField,showBccField:Q.showBccField}}),[Y.displayMessageExcerpt,Y.enableNewTiles,Y.msgStyle,Y.toggleJobRefHeader,$,Q.showToField,Q.showCcField,Q.showBccField]),te=o.useCallback((function(e){l&&W!==e.sidebarEnabled&&(z(e.sidebarEnabled),w(new N.k(e.sidebarEnabled)),w(R.a.withEvent(Object(R.p)("Sidebar: Turned ".concat(e.sidebarEnabled?"on":"off"," from settings"))))),Z({showToField:e.showToField,showCcField:e.showCcField,showBccField:e.showBccField}),q({toggleJobRefHeader:e.toggleJobRefHeader,enableNewTiles:e.enableNewTiles,displayMessageExcerpt:e.displayMessageExcerpt,msgStyle:e.boldSubjectInsteadOfSender?d.c.BOLD_SUBJECT:d.c.BOLD_SENDER})}),[w,q,z,l,W,Z]),ne=o.useMemo((function(){var e=u()().format();return{id:"",state:F.m.Received,hasAttachment:!0,inInbox:!0,fromName:"".concat(t.firstName," ").concat(t.lastName),fromEmail:"",subject:"RE: MCRN package Annual Subscription",snippet:"Greetings all, following up on a deal I saw",sentDate:e,receivedDate:e,latestActivity:e,messageId:"",importId:"",createdAt:"",modifiedAt:"",toAddresses:[],ccAddresses:[],bccAddresses:[],activitySummary:{comments:[{byUserId:"274",time:"2020-01-21T18:45:15.233Z"}],shares:[{fromTeamId:"1",toTeamId:"2",time:e}]},draftTag:void 0,signed:F.l.UNVERIFIED,createdBy:""}}),[t.firstName,t.lastName]),re=function renderMessageTileBlockV1(e){var n=e.toggleJobRefHeader;return Object(i.jsxs)(i.Fragment,{children:[n&&Object(i.jsx)(S.a,{jobReferences:[G],style:{},searchJobReference:b.a,isBucketItem:!1,featureFlags:F.e}),Object(i.jsx)(T.a,{currentUser:t,currentTeamId:"1",message:{meta:Object(r.a)({},ne),readBy:[],assignment:[{id:"24453-99",assignedToUserId:"9",assignedByUserId:"7",time:"2020-01-30T19:02:36Z"}],jobReference:[G],categoryTag:[{parentId:"2",relationshipId:"4",label:"Category",tagId:"1"}],sender:p.a.empty()},style:{},isActive:!1,href:"",isBucketItem:!1,clickHandler:b.a,isMobile:Object(m.c)()})]})},ae=function renderMessageTileBlockV2(e){var n=e.toggleJobRefHeader,a=e.displayMessageExcerpt,o=e.boldSubjectInsteadOfSender;return Object(i.jsxs)(i.Fragment,{children:[n&&Object(i.jsx)(C.a,{jobReferences:[G],style:{},searchJobReference:b.a,isBucketItem:!1,featureFlags:F.e}),Object(i.jsx)(y.a,{currentUser:t,currentTeamId:"1",message:{meta:Object(r.a)({},ne),readBy:[],assignment:[{id:"24453-99",assignedToUserId:"9",assignedByUserId:"7",time:"2020-01-30T19:02:36Z"}],jobReference:[G],categoryTag:[{parentId:"2",relationshipId:"4",label:"Category",tagId:"1"}],sender:p.a.empty()},style:{},isActive:!1,href:"",isBucketItem:!1,clickHandler:b.a,isLastInTheJRGroup:!1,showExcerpt:a,listTileBold:o?d.c.BOLD_SUBJECT:d.c.BOLD_SENDER,isMobile:Object(m.c)(),showJrHeader:!0})]})};return Object(i.jsxs)(g.a,{children:[Object(i.jsx)(j.a,{title:"Settings",subTitle:"Customize the appearance of SEDNA between your desktop and mobile devices.",icon:Object(j.c)(A.c.GEAR)}),Object(i.jsx)(v.a,{children:Object(i.jsx)(s.b,{initialValues:ee,onSubmit:te,validate:function validate(e){var t={};return e.showToField||e.showCcField||e.showBccField||(t.showBccField="At least one recipient field should be selected"),t},render:function render(e){var t=e.handleSubmit,n=e.errors,r=e.values,a=e.pristine,o=e.submitting;return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsxs)(H.ScrollContainer,{children:[l&&Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)(H.SectionHeading,{children:"General"}),Object(i.jsx)(H.Card,{children:Object(i.jsx)(ToggleSwitchField,{label:"Enable the New SEDNA Look",helpText:"Switch the user interface to a sidebar view",fieldName:"sidebarEnabled",checked:r.sidebarEnabled,testId:"toggle-sidebar"})})]}),Object(i.jsx)(H.SectionHeading,{children:"Message List"}),Object(i.jsx)(H.TileContainer,{children:Object(i.jsx)(H.Tile,{children:r.enableNewTiles?ae(r):re(r)})}),Object(i.jsx)(O.h,{children:Object(i.jsxs)("div",{children:[Object(i.jsx)(H.Card,{children:Object(i.jsx)(ToggleSwitchField,{label:"Toggle ".concat(x.b.t(x.a.JOB_TAG)," header"),helpText:"Display a header showing the ".concat(x.b.t(x.a.JOB_TAG)," above the message tile"),fieldName:"toggleJobRefHeader",checked:r.toggleJobRefHeader,testId:"toggle-jobref-header"})}),Object(i.jsxs)(H.Card,{children:[Object(i.jsx)(ToggleSwitchField,{label:"Enable customizable tile content",helpText:"Customize your message tile content and styling",fieldName:"enableNewTiles",checked:r.enableNewTiles,testId:"enable-new-tiles"}),r.enableNewTiles&&Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)(H.CardDivider,{}),Object(i.jsx)(H.CardSubContent,{children:Object(i.jsx)(ToggleSwitchField,{label:"Show message excerpt",helpText:"Display an excerpt of the message below the subject line",fieldName:"displayMessageExcerpt",checked:r.displayMessageExcerpt,testId:"display-message-excerpt"})}),Object(i.jsx)(H.CardSubContent,{children:Object(i.jsx)(ToggleSwitchField,{label:"Bold Subject instead of Sender",fieldName:"boldSubjectInsteadOfSender",checked:r.boldSubjectInsteadOfSender,testId:"bold-subject"})})]})]})]})}),Object(i.jsx)(H.SectionHeading,{children:"Recipients"}),Object(i.jsxs)(H.Card,{children:[Object(i.jsx)(ToggleSwitchField,{label:"Display To: field",helpText:"Show the To: field at all times",fieldName:"showToField",checked:r.showToField}),Object(i.jsx)(ToggleSwitchField,{label:"Display Cc: field",helpText:"Show the Cc: field at all times",fieldName:"showCcField",checked:r.showCcField}),Object(i.jsx)(s.a,{name:"showBccField",children:function children(e){var t=e.meta;return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)(ToggleSwitchField,{label:"Display Bcc: field",helpText:"Show the Bcc: field at all times",fieldName:"showBccField",checked:r.showBccField}),t.error&&Object(i.jsx)("span",{children:t.error})]})}})]})]}),Object(i.jsx)(H.FormActions,{children:Object(i.jsx)(O.b,{children:Object(i.jsx)(E.a,{type:"submit","data-testid":"submit-button",disabled:Object.keys(n).length>0||o||a,onClick:t,children:"Save"})})})]})}})})]},$?"on":"off")}},function(e,t,n){"use strict";n.d(t,"h",(function(){return g})),n.d(t,"g",(function(){return j})),n.d(t,"d",(function(){return v})),n.d(t,"j",(function(){return O})),n.d(t,"f",(function(){return T})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return S})),n.d(t,"i",(function(){return C})),n.d(t,"e",(function(){return A})),n.d(t,"b",(function(){return E}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=function(e){Object(i.a)(ApplicationListApiAction,e);var t=Object(o.a)(ApplicationListApiAction);function ApplicationListApiAction(e){var n;return Object(r.a)(this,ApplicationListApiAction),(n=t.call(this)).display=e,n}return Object(a.a)(ApplicationListApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/application?filter[display]=").concat(this.display),method:s.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return e.data.map((function(e){return{id:e.id,name:e.attributes.name,url:e.attributes.url,icon:e.attributes.logo,errorMessage:e.attributes.errorMessage,display:e.attributes.display,modifiedAt:e.attributes.modifiedAt,createdAt:e.attributes.createdAt}}))}}]),ApplicationListApiAction}(c.a),u=n(14),d=n(30),b=function(e){Object(i.a)(MessageInteractionsPostApiAction,e);var t=Object(o.a)(MessageInteractionsPostApiAction);function MessageInteractionsPostApiAction(e,n,a,i,o){var c;return Object(r.a)(this,MessageInteractionsPostApiAction),(c=t.call(this)).app=e,c.messageId=n,c.schema=a,c.action=i,c.display=o,c}return Object(a.a)(MessageInteractionsPostApiAction,[{key:"apiEffect",value:function apiEffect(e){var t,n={applicationId:this.app.id,messageId:this.messageId,action:null!==(t=this.action)&&void 0!==t?t:void 0,display:this.display};return{path:"".concat(e.platformUrl,"/message-interaction?")+Object(d.stringify)(n),method:s.c.POST,body:JSON.stringify(this.schema)}}}]),MessageInteractionsPostApiAction}(c.a),p=function(e){Object(i.a)(MessageAddAttachmentFromUrlApiAction,e);var t=Object(o.a)(MessageAddAttachmentFromUrlApiAction);function MessageAddAttachmentFromUrlApiAction(e,n,a){var i;return Object(r.a)(this,MessageAddAttachmentFromUrlApiAction),(i=t.call(this)).messageId=e,i.url=n,i.filename=a,i}return Object(a.a)(MessageAddAttachmentFromUrlApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/message/").concat(this.messageId,"/attachment-from-url")+(this.filename?"?filename=".concat(encodeURIComponent(this.filename)):""),method:s.c.POST,body:this.url}}},{key:"mapResponse",value:function mapResponse(e){return{id:e.id,hash:e.attributes.hash,name:e.attributes.name,size:e.attributes.size,type:e.attributes.type}}}]),MessageAddAttachmentFromUrlApiAction}(c.a),m=n(43),h=n(8),g=function(e){Object(i.a)(RequestMessageInteractionsList,e);var t=Object(o.a)(RequestMessageInteractionsList);function RequestMessageInteractionsList(){return Object(r.a)(this,RequestMessageInteractionsList),t.apply(this,arguments)}return Object(a.a)(RequestMessageInteractionsList,[{key:"onSuccess",value:function onSuccess(e){return[new j(this.display,e)]}},{key:"onError",value:function onError(e){return[new v(this.display,e)]}}]),RequestMessageInteractionsList}(l),j=function(e){Object(i.a)(FulfillMessageInteractionsList,e);var t=Object(o.a)(FulfillMessageInteractionsList);function FulfillMessageInteractionsList(e,n){var a;return Object(r.a)(this,FulfillMessageInteractionsList),(a=t.call(this)).display=e,a.apps=n,a}return FulfillMessageInteractionsList}(u.a),v=function(e){Object(i.a)(FailMessageInteractionsList,e);var t=Object(o.a)(FailMessageInteractionsList);function FailMessageInteractionsList(e,n){var a;return Object(r.a)(this,FailMessageInteractionsList),(a=t.call(this,n)).display=e,a.error=n,a}return FailMessageInteractionsList}(u.b),O=function(e){Object(i.a)(SubmitMessageInteraction,e);var t=Object(o.a)(SubmitMessageInteraction);function SubmitMessageInteraction(){return Object(r.a)(this,SubmitMessageInteraction),t.apply(this,arguments)}return Object(a.a)(SubmitMessageInteraction,[{key:"onSuccess",value:function onSuccess(e){return[new T(this.app,e)]}},{key:"onError",value:function onError(e){return[new y(this.app,e)]}}]),SubmitMessageInteraction}(b),T=function(e){Object(i.a)(FulfillMessageInteraction,e);var t=Object(o.a)(FulfillMessageInteraction);function FulfillMessageInteraction(e,n){var a;return Object(r.a)(this,FulfillMessageInteraction),(a=t.call(this)).app=e,a.schema=n,a}return FulfillMessageInteraction}(u.a),y=function(e){Object(i.a)(FailMessageInteraction,e);var t=Object(o.a)(FailMessageInteraction);function FailMessageInteraction(e,n){var a;return Object(r.a)(this,FailMessageInteraction),(a=t.call(this,n)).app=e,a.error=n,a}return FailMessageInteraction}(u.b),S=function(e){Object(i.a)(ClearMessageInteraction,e);var t=Object(o.a)(ClearMessageInteraction);function ClearMessageInteraction(){return Object(r.a)(this,ClearMessageInteraction),t.apply(this,arguments)}return ClearMessageInteraction}(u.a),C=function(e){Object(i.a)(SubmitAddAttachmentFromUrl,e);var t=Object(o.a)(SubmitAddAttachmentFromUrl);function SubmitAddAttachmentFromUrl(){return Object(r.a)(this,SubmitAddAttachmentFromUrl),t.apply(this,arguments)}return Object(a.a)(SubmitAddAttachmentFromUrl,[{key:"onSuccess",value:function onSuccess(e){return[new A(this.messageId,this.url,e)]}},{key:"onError",value:function onError(e){var t=400===e.status?[new m.b({message:"Could not add the attachment to the message because it was too large.",level:h.n.warning})]:[];return[].concat(t,[new E(this.messageId,this.url,e)])}}]),SubmitAddAttachmentFromUrl}(p),A=function(e){Object(i.a)(FulfillAddAttachmentFromUrl,e);var t=Object(o.a)(FulfillAddAttachmentFromUrl);function FulfillAddAttachmentFromUrl(e,n,a){var i;return Object(r.a)(this,FulfillAddAttachmentFromUrl),(i=t.call(this)).messageId=e,i.url=n,i.response=a,i}return FulfillAddAttachmentFromUrl}(u.a),E=function(e){Object(i.a)(FailAddAttachmentFromUrl,e);var t=Object(o.a)(FailAddAttachmentFromUrl);function FailAddAttachmentFromUrl(e,n,a){var i;return Object(r.a)(this,FailAddAttachmentFromUrl),(i=t.call(this,a)).messageId=e,i.url=n,i.error=a,i}return FailAddAttachmentFromUrl}(u.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return ShareBookmarkContainer})),n.d(t,"d",(function(){return determineShares}));var r,a,i=n(4),o=n(7),c=n(21),s=n(0),l=n(1),u=n(288),d=n(26),b=n(31),p=n(9),m=n(28),h=n(111),g=n(194),j=n(285),v=n(29),O=n(425);function ShareBookmarkContainerEnabled(e){var t=e.currentUser,n=Object(h.c)().isMobile,T=Object(d.d)((function(t){return Object(O.a)(t,e.currentUser)})),y=Object(d.d)(O.b),S=Object(l.useState)(null),C=Object(c.a)(S,2),A=C[0],E=C[1],w=!!A,_=Object(m.useDispatch)(),I=Object(l.useCallback)((function(e){_(v.a.withEvent(Object(v.d)("Share Bookmark",e.id)))}),[_]),x=Object(l.useCallback)((function(e){return Object(s.jsx)(b.a,{size:n?"small":"regular",buttonContent:"Share Bookmark",iconGlyph:Object(p.e)(p.c.SHARE),onClick:Object(j.a)((function(){E(e),I(e)}))})}),[n,I]),k=Object(l.useCallback)((function(e,t,n){var i,c,s,l=(s={},Object(o.a)(s,a.SHARE,(i={},Object(o.a)(i,r.USER,g.f),Object(o.a)(i,r.TEAM,g.e),i)),Object(o.a)(s,a.UNSHARE,(c={},Object(o.a)(c,r.USER,g.h),Object(o.a)(c,r.TEAM,g.g),c)),s);return A?_(new l[n][t](A.id,e)):null}),[_,A]);return Object(s.jsxs)(s.Fragment,{children:[e.children({shareBookmarkWidget:x,isModalOpen:w}),w&&Object(s.jsx)(u.d,{isOpen:w,owner:{id:t.id,initials:t.initials,name:"".concat(t.firstName," ").concat(t.lastName)},teams:T.map((function(e){var t;return Object(i.a)(Object(i.a)({},e),{},{isShared:determineShares(e,null===(t=A.shares)||void 0===t?void 0:t.teamIds)})})),people:y.map((function(e){var t;return Object(i.a)(Object(i.a)({},e),{},{isShared:determineShares(e,null===(t=A.shares)||void 0===t?void 0:t.userIds)})})),toggle:function toggle(){return E(null)},title:"Share Bookmark",description:'Sharing "'.concat(A.name,'"'),makeChanges:function makeChanges(e){e.peopleToShareWith.length&&k(e.peopleToShareWith,r.USER,a.SHARE),e.peopleToUnshareWith.length&&k(e.peopleToUnshareWith,r.USER,a.UNSHARE),e.teamsToShareTo.length&&k(e.teamsToShareTo,r.TEAM,a.SHARE),e.teamsToUnshareWith.length&&k(e.teamsToUnshareWith,r.TEAM,a.UNSHARE)},isReadOnly:!1,primaryBtnText:"Save Changes"})]})}function ShareBookmarkContainer(e){return Object(s.jsx)(ShareBookmarkContainerEnabled,{currentUser:e.currentUser,children:e.children})}function determineShares(e,t){var n;return null!==(n=null===t||void 0===t?void 0:t.some((function(t){return t===e.id})))&&void 0!==n&&n}!function(e){e.TEAM="team",e.USER="user"}(r||(r={})),function(e){e.SHARE="share",e.UNSHARE="unshare"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"p",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"o",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return j})),n.d(t,"f",(function(){return v})),n.d(t,"j",(function(){return O})),n.d(t,"i",(function(){return T})),n.d(t,"k",(function(){return y})),n.d(t,"n",(function(){return S})),n.d(t,"m",(function(){return C})),n.d(t,"a",(function(){return A})),n.d(t,"e",(function(){return E})),n.d(t,"q",(function(){return getBlocksOfAllTypes})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return _}));var r=n(5),a=n(6),i=n(3),o=n(38),c=n(40),s=n(25),l=n(42),u=n(8),d=new Set([o.a.message,o.a.topic]),b=function Block(){Object(i.a)(this,Block),this.type=void 0,this.height=void 0,this.props=void 0},p=function(e){Object(r.a)(MessageListItemBlock,e);var t=Object(a.a)(MessageListItemBlock);function MessageListItemBlock(e,n,r){var a;return Object(i.a)(this,MessageListItemBlock),(a=t.call(this)).props=e,a.id=n,a.height=r,a.type=o.a.message,a}return MessageListItemBlock}(b),m=function(e){Object(r.a)(TopicListItemBlock,e);var t=Object(a.a)(TopicListItemBlock);function TopicListItemBlock(e,n,r){var a;return Object(i.a)(this,TopicListItemBlock),(a=t.call(this)).props=e,a.id=n,a.height=r,a.type=o.a.topic,a}return TopicListItemBlock}(b),h=function(e){Object(r.a)(DateLabelBlock,e);var t=Object(a.a)(DateLabelBlock);function DateLabelBlock(e,n){var r;return Object(i.a)(this,DateLabelBlock),(r=t.call(this)).props=e,r.height=n,r.type=o.b.date_label,r}return DateLabelBlock}(b),g=function(e){Object(r.a)(JrHeaderBlock,e);var t=Object(a.a)(JrHeaderBlock);function JrHeaderBlock(e,n){var r;return Object(i.a)(this,JrHeaderBlock),(r=t.call(this)).props=e,r.height=n,r.type=o.b.jr_header,r}return JrHeaderBlock}(b),j=function(e){Object(r.a)(JrNewHeader,e);var t=Object(a.a)(JrNewHeader);function JrNewHeader(e,n){var r;return Object(i.a)(this,JrNewHeader),(r=t.call(this)).props=e,r.height=n,r.type=o.b.jr_header_v2,r}return JrNewHeader}(b),v=function(e){Object(r.a)(JrFooterBlock,e);var t=Object(a.a)(JrFooterBlock);function JrFooterBlock(e,n){var r;return Object(i.a)(this,JrFooterBlock),(r=t.call(this)).props=e,r.height=n,r.type=o.b.jr_footer,r}return JrFooterBlock}(b),O=function(e){Object(r.a)(ListSpacingBlock,e);var t=Object(a.a)(ListSpacingBlock);function ListSpacingBlock(e,n){var r;return Object(i.a)(this,ListSpacingBlock),(r=t.call(this)).props=e,r.height=n,r.type=o.b.list_spacing,r}return ListSpacingBlock}(b),T=function(e){Object(r.a)(ListNewLineBlock,e);var t=Object(a.a)(ListNewLineBlock);function ListNewLineBlock(e,n){var r;return Object(i.a)(this,ListNewLineBlock),(r=t.call(this)).props=e,r.height=n,r.type=o.b.list_new_line,r}return ListNewLineBlock}(b),y=function(e){Object(r.a)(LoadingBlock,e);var t=Object(a.a)(LoadingBlock);function LoadingBlock(e,n){var r;return Object(i.a)(this,LoadingBlock),(r=t.call(this)).props=e,r.height=n,r.type=o.b.list_loading,r}return LoadingBlock}(b),S=function(e){Object(r.a)(SpinnerBlock,e);var t=Object(a.a)(SpinnerBlock);function SpinnerBlock(e,n){var r;return Object(i.a)(this,SpinnerBlock),(r=t.call(this)).props=e,r.height=n,r.type=o.b.list_spinner,r}return SpinnerBlock}(b),C=function(e){Object(r.a)(NoItemBlock,e);var t=Object(a.a)(NoItemBlock);function NoItemBlock(e,n){var r;return Object(i.a)(this,NoItemBlock),(r=t.call(this)).props=e,r.height=n,r.type=o.b.no_item,r}return NoItemBlock}(b),A=function(e){Object(r.a)(BucketCollapsedBlock,e);var t=Object(a.a)(BucketCollapsedBlock);function BucketCollapsedBlock(e,n){var r;return Object(i.a)(this,BucketCollapsedBlock),(r=t.call(this)).props=e,r.height=n,r.type=o.b.bucket_collapsed_view,r}return BucketCollapsedBlock}(b),E=function(e){Object(r.a)(FullBucketHeaderBlockV2,e);var t=Object(a.a)(FullBucketHeaderBlockV2);function FullBucketHeaderBlockV2(e,n){var r;return Object(i.a)(this,FullBucketHeaderBlockV2),(r=t.call(this)).props=e,r.height=n,r.type=o.b.full_bucket_header_v2,r}return FullBucketHeaderBlockV2}(b);function getBlocksOfAllTypes(e,t){return[new p({currentUser:w,currentTeamId:"not relevant",message:{meta:_,readBy:[],assignment:[],jobReference:[],categoryTag:[],sender:s.a.empty()},onClick:c.a,onShiftClick:c.a,isActive:!1,isBucketItem:!1,href:"",style:{},isLastInTheJRGroup:!1,msgListStyleLocal:t,emptyLastMessageId:c.a,emptyLastScrollPosition:c.a,recordLastScrollPosition:c.a,isMobile:!1,resetLastScrollPositionState:c.a,multiSelect:!1},"",0),new m({currentUser:w,topic:{meta:I,jobReference:[],categoryTag:[],team:[]},onClick:c.a,onShiftClick:c.a,isActive:!1,style:{},href:"",author:l.a.of(w),isLastInTheJRGroup:!1,newNotesUIFeatureFlag:e.NEW_NOTES_UI,showJrHeader:t.toggleJobRefHeader},"",0),new h({date:"2019-07-16T15:00:00Z",style:{},isFullView:!1},0),new g({jobReferences:[x],style:{},searchJobReference:function searchJobReference(e){return c.a},isBucketItem:!1,featureFlags:e},0),new v({style:{},isBucketItem:!1},0),new O({style:{}},0),new T({style:{}},0),new y({hasItems:!0,style:{}},0),new S({style:{}},0),new C({style:{}},0)]}var w={id:"foo",defaultTeamId:"bar",teamId:"bar",firstName:"",lastName:"",initials:"",companyId:"1",companyIdentifier:"foo",username:"username",roles:[],userTeams:[],emailSignature:"",emailAddress:null,ssoEmail:null,permissions:[],deletedAt:"",isInternal:!1,createdAt:"1900-01-01",lastLoginDate:"1900-01-01"},_={id:"",state:u.m.Received,hasAttachment:!1,inInbox:!0,fromName:"",fromEmail:"",subject:"",snippet:"",sentDate:"1900-01-01",receivedDate:"1900-01-01",latestActivity:"1900-01-01",messageId:"",importId:"",createdAt:"",modifiedAt:"",toAddresses:[],ccAddresses:[],bccAddresses:[],activitySummary:{comments:[],shares:[]},signed:u.l.UNVERIFIED,createdBy:""},I={type:"topic",id:"0",attributes:{subject:"",content_type:null,content_type_version:null,created:"",modified:"",version:"",latest_activity:"",visible:!1},relationships:{follower:{data:[]},author:{data:{id:"0",type:"user"}},team:{data:{id:"",type:"team"}},category_tag:{data:[]},job_reference:{data:[]},topic_team:{data:[]}}},x={parentId:"",relationshipId:"",tagId:"",label:"dummy"}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return j}));var r,a=n(4),i=n(21),o=n(0),c=n(24),s=n.n(c),l=n(1),u=n.n(l),d=n(12),b=n(34),p=n(117),m=n(31),h=n(152);n(1204);!function(e){e.ICONBUTTON="IconButton",e.TEXT="TEXT"}(r||(r={}));var g={DropDownWrapper:d.b.div.withConfig({displayName:"dropdown__DropDownWrapper",componentId:"cp9xg-0"})(["display:inline-block;"]),DropdownMenu:d.b.div.withConfig({displayName:"dropdown__DropdownMenu",componentId:"cp9xg-1"})(["min-width:28rem;max-height:50rem;box-shadow:0 2px 24px rgba(0,0,0,0.1);overflow-y:auto;display:flex;flex-direction:column;padding:var(--spacing-3) 0;font-size:var(--fs);color:var(--text-1);background-color:var(--white);border:1px solid var(--border-1);border-radius:var(--br1);"]),DropdownHeader:d.b.div.withConfig({displayName:"dropdown__DropdownHeader",componentId:"cp9xg-2"})(["color:var(--text-2);padding:var(--spacing-3) calc(var(--spacing-4) + var(--spacing-3));margin-bottom:0;font-size:var(--fs-sm);white-space:nowrap;"])};function defaultValueGetter(){return""}function getDistance(e){switch(e){case"none":return 0;case"small":return 4;case"medium":return 8;case"large":return 12;default:return 2}}var j=u.a.forwardRef((function(e,t){var n,c,l,d,j=e.onClick,v=e.onOpen,O=e.onClose,T=e.onBlur,y=u.a.useState(null!==(n=e.defaultOpen)&&void 0!==n&&n),S=Object(i.a)(y,2),C=S[0],A=S[1];u.a.useEffect((function(){C&&(null===v||void 0===v||v())}),[C,v]),u.a.useEffect((function(){!C&&(null===O||void 0===O||O())}),[C,O]);var E=u.a.useCallback((function(e){return!C&&(null===j||void 0===j||j(e)),A(!C)}),[C,j]),w=u.a.useCallback((function(){A(!1),null===T||void 0===T||T()}),[T]),_=e.renderToggle?e.renderToggle({onClick:E,testId:null!==(c=e.dataTestId)&&void 0!==c?c:"dropdown-toggle-button"}):e.type===r.ICONBUTTON&&e.icon?Object(o.jsx)(m.a,{ref:t,onClick:E,buttonContent:e.title,iconGlyph:e.icon,dataTestId:null!==(l=e.dataTestId)&&void 0!==l?l:"dropdown-toggle-button",onDarkTheme:e.isDark}):Object(o.jsx)(b.a,{ref:t,buttonStyle:"link",onClick:E,icon:e.icon,className:s()(e.className),"data-testid":null!==(d=e.dataTestId)&&void 0!==d?d:"dropdown-toggle-button",disabled:e.disabled,onDarkBg:e.isDark,children:Object(o.jsx)("span",{className:"u-clip-s",children:e.title})});return Object(o.jsx)(p.a,{isOpen:C,itemToString:defaultValueGetter,onSelect:!1!==e.hideOnClick?w:void 0,onOuterClick:w,children:function children(t){var n,r=t.isOpen,i=t.getRootProps,c=t.getMenuProps,s=t.getItemProps;return Object(o.jsx)(g.DropDownWrapper,Object(a.a)(Object(a.a)({},i({refKey:"ref"})),{},{children:Object(o.jsx)(h.a,{visible:r,theme:"dropdown",boundary:"viewport",delay:[150,20],arrow:!1,hideOnClick:!1!==e.hideOnClick,flip:!0,flipOnUpdate:!0,interactive:!0,placement:null!==(n=e.placement)&&void 0!==n?n:"bottom-start",distance:getDistance(e.distance),appendTo:document.body,content:Object(o.jsxs)(g.DropdownMenu,Object(a.a)(Object(a.a)({"data-testid":e.dataTestId&&"".concat(e.dataTestId,"-menu")},c(void 0,{suppressRefError:!0})),{},{children:[e.subtitle&&Object(o.jsx)(g.DropdownHeader,{children:e.subtitle}),u.a.Children.map(e.children,(function(e,t){if(u.a.isValidElement(e))return u.a.cloneElement(e,{itemProps:Object(a.a)({},s({key:t,index:t,item:e}))})}))]})),children:Object(o.jsx)("div",{children:_})})}))}})}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(133),u=n(9),d=function(e){Object(i.a)(CategoryTag,e);var t=Object(o.a)(CategoryTag);function CategoryTag(){return Object(r.a)(this,CategoryTag),t.apply(this,arguments)}return Object(a.a)(CategoryTag,[{key:"render",value:function render(){var e=this.props,t=e.label,n=e.state,r=e.onClick,a=e.children,i=e.id;return Object(c.jsx)(l.a,{label:t,state:n,onClick:r,color:"var(--category-tag)",id:i,icon:Object(u.e)(u.c.TAG),children:a})}}]),CategoryTag}(s.PureComponent)},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return isPreviewable})),n.d(t,"a",(function(){return c}));var r,a,i=n(7),o=n(2);function isPreviewable(e){return Boolean(e.kind)}!function(e){e.TOPIC_ATTACHMENT="topicAttachment",e.DOCUMENT="document",e.MESSAGE_META="messageMeta"}(a||(a={}));var c=(r={},Object(i.a)(r,a.DOCUMENT,o.e()),Object(i.a)(r,a.TOPIC_ATTACHMENT,o.e()),Object(i.a)(r,a.MESSAGE_META,o.e()),r)},function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"l",(function(){return v})),n.d(t,"n",(function(){return O})),n.d(t,"k",(function(){return T})),n.d(t,"i",(function(){return y})),n.d(t,"e",(function(){return S})),n.d(t,"m",(function(){return C})),n.d(t,"g",(function(){return A})),n.d(t,"c",(function(){return E})),n.d(t,"j",(function(){return w})),n.d(t,"o",(function(){return _})),n.d(t,"f",(function(){return I})),n.d(t,"b",(function(){return x})),n.d(t,"h",(function(){return k})),n.d(t,"d",(function(){return N}));var r=n(10),a=n(3),i=n(5),o=n(6),c=n(14),s=n(37),l=n(20),u=n(16),d=function(e){Object(i.a)(SnippetCreateApiAction,e);var t=Object(o.a)(SnippetCreateApiAction);function SnippetCreateApiAction(e,n,r){var i;return Object(a.a)(this,SnippetCreateApiAction),(i=t.call(this)).name=e,i.body=n,i.namespace=r,i}return Object(r.a)(SnippetCreateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:JSON.stringify({data:{type:"snippet",attributes:{name:this.name,body:this.body,contentType:"text",contentTypeVersion:"one"},relationships:{snippet_namespace:{data:this.namespace}}},meta:{}}),path:"".concat(e.platformUrl,"/snippet/new?include=snippet_body"),method:u.c.POST}}}]),SnippetCreateApiAction}(l.a),b=function(e){Object(i.a)(SnippetDeleteApiAction,e);var t=Object(o.a)(SnippetDeleteApiAction);function SnippetDeleteApiAction(e){var n;return Object(a.a)(this,SnippetDeleteApiAction),(n=t.call(this)).snippetId=e,n}return Object(r.a)(SnippetDeleteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/snippet/").concat(this.snippetId),method:u.c.DELETE}}}]),SnippetDeleteApiAction}(l.a),p=function(e){Object(i.a)(SnippetListApiAction,e);var t=Object(o.a)(SnippetListApiAction);function SnippetListApiAction(){return Object(a.a)(this,SnippetListApiAction),t.apply(this,arguments)}return Object(r.a)(SnippetListApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/snippet"),method:u.c.GET}}}]),SnippetListApiAction}(l.a),m=function(e){Object(i.a)(SnippetGetApiAction,e);var t=Object(o.a)(SnippetGetApiAction);function SnippetGetApiAction(e){var n;return Object(a.a)(this,SnippetGetApiAction),(n=t.call(this)).id=e,n}return Object(r.a)(SnippetGetApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/snippet/").concat(this.id,"?include=snippet_body"),method:u.c.GET}}}]),SnippetGetApiAction}(l.a),h=n(43),g=n(8),j=function(e){Object(i.a)(ClickSnippetAction,e);var t=Object(o.a)(ClickSnippetAction);function ClickSnippetAction(e,n){var r;return Object(a.a)(this,ClickSnippetAction),(r=t.call(this)).id=e,r.messageId=n,r.eventSpec={eventCategory:"Snippet",eventAction:"Insert"},r}return ClickSnippetAction}(c.a),v=function(e){Object(i.a)(ResetClickedSnippetAction,e);var t=Object(o.a)(ResetClickedSnippetAction);function ResetClickedSnippetAction(e,n){var r;return Object(a.a)(this,ResetClickedSnippetAction),(r=t.call(this)).id=e,r.messageId=n,r}return ResetClickedSnippetAction}(c.a),O=function(e){Object(i.a)(SubmitSnippetDelete,e);var t=Object(o.a)(SubmitSnippetDelete);function SubmitSnippetDelete(e){var n;return Object(a.a)(this,SubmitSnippetDelete),(n=t.call(this,e)).snippetId=e,n.eventSpec={eventCategory:"Snippet",eventAction:"Delete"},n}return Object(r.a)(SubmitSnippetDelete,[{key:"onSuccess",value:function onSuccess(){return[new k(this.snippetId)]}},{key:"onError",value:function onError(e){return[new N(this.snippetId,e),new h.b({message:"Fail to delete the snippet. Try again.",level:g.n.warning})]}}]),SubmitSnippetDelete}(b),T=function(e){Object(i.a)(RequestSnippetList,e);var t=Object(o.a)(RequestSnippetList);function RequestSnippetList(){return Object(a.a)(this,RequestSnippetList),t.apply(this,arguments)}return Object(r.a)(RequestSnippetList,[{key:"onSuccess",value:function onSuccess(e){return[new y(e)]}},{key:"onError",value:function onError(e){return[new S(e)]}}]),RequestSnippetList}(p),y=function(e){Object(i.a)(FulfillSnippetList,e);var t=Object(o.a)(FulfillSnippetList);function FulfillSnippetList(e){var n;return Object(a.a)(this,FulfillSnippetList),(n=t.call(this)).response=e,n}return FulfillSnippetList}(c.a),S=function(e){Object(i.a)(FailSnippetList,e);var t=Object(o.a)(FailSnippetList);function FailSnippetList(e){var n;return Object(a.a)(this,FailSnippetList),(n=t.call(this,e)).error=e,n}return FailSnippetList}(c.b),C=function(e){Object(i.a)(SubmitSnippetCreate,e);var t=Object(o.a)(SubmitSnippetCreate);function SubmitSnippetCreate(e,n,r,i){var o;return Object(a.a)(this,SubmitSnippetCreate),(o=t.call(this,n,r,i)).messageId=e,o.name=n,o.body=r,o.namespace=i,o.eventSpec={eventCategory:"Snippet",eventAction:"Create"},o}return Object(r.a)(SubmitSnippetCreate,[{key:"onSuccess",value:function onSuccess(e){return[new A(this.messageId,e),new h.b({message:"Snippet successfully created",level:g.n.info})]}},{key:"onError",value:function onError(e){var t=this,n=function(){switch(t.namespace.type){case s.f.USER:return"user";case s.f.TEAM:return"team";case s.f.TENANT:return"company"}}(),r=function(){if(409===e.status)return"Failed to create because that name is already in use.";var t=function isJsonApiError(e){return void 0!==e.response.errors&&Array.isArray(e.response.errors)}(e)&&e.response.errors.find((function(e){return"RESOURCE_LIMIT_EXCEEDED"===e.code}));return t?"Only ".concat(t.meta.maxLimit," ").concat(n," ")+"snippet".concat(parseInt(t.meta.maxLimit,10)>1?"s":""," can be created. ")+"Delete one or more snippets and try again.":"Failed to create the snippet. Try again."}();return[new E(this.messageId,e),new h.b({message:r,level:g.n.warning})]}}]),SubmitSnippetCreate}(d),A=function(e){Object(i.a)(FulfillSnippetCreate,e);var t=Object(o.a)(FulfillSnippetCreate);function FulfillSnippetCreate(e,n){var r;return Object(a.a)(this,FulfillSnippetCreate),(r=t.call(this)).messageId=e,r.response=n,r}return FulfillSnippetCreate}(c.a),E=function(e){Object(i.a)(FailSnippetCreate,e);var t=Object(o.a)(FailSnippetCreate);function FailSnippetCreate(e,n){var r;return Object(a.a)(this,FailSnippetCreate),(r=t.call(this,n)).messageId=e,r.error=n,r}return FailSnippetCreate}(c.b),w=function(e){Object(i.a)(RequestSnippetBody,e);var t=Object(o.a)(RequestSnippetBody);function RequestSnippetBody(){return Object(a.a)(this,RequestSnippetBody),t.apply(this,arguments)}return Object(r.a)(RequestSnippetBody,[{key:"onSuccess",value:function onSuccess(e){return[new I(e),new _(e)]}},{key:"onError",value:function onError(e){return[new x(this.id,e)]}}]),RequestSnippetBody}(m),_=function(e){Object(i.a)(UpdateLastUsedOptimistically,e);var t=Object(o.a)(UpdateLastUsedOptimistically);function UpdateLastUsedOptimistically(e){var n;return Object(a.a)(this,UpdateLastUsedOptimistically),(n=t.call(this)).response=e,n}return UpdateLastUsedOptimistically}(c.a),I=function(e){Object(i.a)(FulfillSnippetBody,e);var t=Object(o.a)(FulfillSnippetBody);function FulfillSnippetBody(e){var n;return Object(a.a)(this,FulfillSnippetBody),(n=t.call(this)).response=e,n}return FulfillSnippetBody}(c.a),x=function(e){Object(i.a)(FailSnippetBody,e);var t=Object(o.a)(FailSnippetBody);function FailSnippetBody(e,n){var r;return Object(a.a)(this,FailSnippetBody),(r=t.call(this,n)).id=e,r.error=n,r}return FailSnippetBody}(c.b),k=function(e){Object(i.a)(FulfillSnippetDelete,e);var t=Object(o.a)(FulfillSnippetDelete);function FulfillSnippetDelete(e){var n;return Object(a.a)(this,FulfillSnippetDelete),(n=t.call(this)).snippetId=e,n}return FulfillSnippetDelete}(c.a),N=function(e){Object(i.a)(FailSnippetDelete,e);var t=Object(o.a)(FailSnippetDelete);function FailSnippetDelete(e,n){var r;return Object(a.a)(this,FailSnippetDelete),(r=t.call(this,n)).snippetId=e,r.error=n,r}return FailSnippetDelete}(c.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return debounce}));n(21),n(1);function debounce(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isImmediate:!1};return function(){for(var a=this,i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];var s=function doLater(){t=void 0,r.isImmediate||e.apply(a,o)},l=r.isImmediate&&void 0===t;void 0!==t&&clearTimeout(t),t=window.setTimeout(s,n),l&&e.apply(this,o)}}},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"f",(function(){return stringValueIsUnique})),n.d(t,"b",(function(){return hasMaxLength})),n.d(t,"c",(function(){return hasMinLength})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return o}));var r=function required(e){return e?void 0:"Required"},a=function isValidEmailAddress(e){return void 0===e||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?void 0:"Invalid email address"};function stringValueIsUnique(e,t,n){var r=n?e:e.map((function(e){return e.toLowerCase()}));return function(e){return void 0!==e&&r.includes(n?e:e.toLowerCase())?"".concat(t," must be unique"):void 0}}function hasMaxLength(e,t){return function(n){return void 0===n||n.length<=e?void 0:"".concat(t," should not be longer than ").concat(e," characters")}}function hasMinLength(e,t){return function(n){return void 0===n||n.length>=e?void 0:"".concat(t," must be longer than ").concat(e," characters")}}var i=function uppercase(e){return void 0===e||e===e.toUpperCase()?void 0:"Must be uppercase"},o=function composeValidators(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(t,n){return null!==t&&void 0!==t?t:n(e)}),void 0)}}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return renderAsync})),n.d(t,"b",(function(){return renderAsyncTuple}));var r=n(0),a=n(50),i=n(181);function renderAsync(e,t,n,o){return e.map(t).unwrap((function(){return Object(r.jsx)(a.b,{spinner:a.a})}),(function(e){return o?o(e):Object(r.jsx)(i.a,{errorText:null!==n&&void 0!==n?n:"Error: ".concat(e.message)})}))}function renderAsyncTuple(e,t,n,i){return e.flatMap((function(e){return t.map((function(t){return n(e,t)}))})).unwrap((function(){return Object(r.jsx)(a.b,{spinner:a.a})}),(function(e){return i(e)}))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var a=r.createElement("path",{d:"M225.89 101.15v13.36h61.87v11.78h-61.87v13.45h67.5v11.78h-79.71V89.37h79.71v11.78h-67.5zM331.37 89.37h63.19c10.19 0 18.46 8.26 18.46 18.46v25.14c0 10.19-8.26 18.54-18.46 18.54h-63.19V89.37zm62.74 50.36c3.69 0 6.68-2.99 6.68-6.77v-25.14c0-3.69-2.9-6.68-6.68-6.68h-50.53v38.58h50.53zM448.47 89.37h18.54l50.88 51.24V89.37h12.22v62.14H512.8l-52.12-51.24v51.24h-12.22V89.37zM173.75 101.15H142.7V89.37h31.05v11.78zm5 31.87c0-10.17-8.28-18.45-18.45-18.45l-52.48-.06c-3.68 0-6.68-2.99-6.68-6.68 0-3.68 2.99-6.68 6.68-6.68h17.59V89.37h-17.59c-10.17 0-18.45 8.28-18.45 18.45 0 10.18 8.28 18.45 18.45 18.45l52.48.06c3.68 0 6.68 2.99 6.68 6.68 0 3.68-2.99 6.68-6.68 6.68h-17.59v11.78h17.59c10.17 0 18.45-8.28 18.45-18.45zm-53.34 6.67H94.39v11.78h31.03v-11.78zM641.98 151.51h14.4l-42.37-62.14h-14.9l-42.37 62.14h14.4l8.27-12.3h54.3l8.27 12.3zm-55.06-23.47l19.64-29.21 19.64 29.21h-39.28z"});function SvgLogo(e,t){var n=e.title,i=e.titleId,o=_objectWithoutProperties(e,["title","titleId"]);return r.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 745.75 240.85",fill:"currentColor",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,a)}var i=r.forwardRef(SvgLogo);n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return renderIf}));var r=n(25);function renderIf(e,t){return r.a,e.map(t).orElse(null)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return Ji})),n.d(t,"c",(function(){return Zi}));var r=n(7),a=n(434),i=n(1480),o=n(1484),c=n(53),s=n(14),l=n(201),u=n(140),d=n(1459),b=n(1487),p=n(1477),m=n(1478),h=n(1479),g=n(872),j=n(556),v=n(899),O=function isNetworkAction(e){return e.type===u.a.name||e.type===u.b.name},T=n(16),y=n(274),S=n(107),C=n(115),A=n(834),E=n(85),w=n(20),_=n(2),I=n(328),x=n(93),k=n(625),N=n(47),R=n(8),F=null;var M=function RefreshMiddleware(e){return function(t){return function(n){return function isRequestMessagePage(e){return e.type===N.q.name}(n)?(n.listType!==R.j.LIST||n.searchAfter||(F&&window.clearTimeout(F),F=window.setTimeout((function(){e.dispatch(N.q.doNotSetMetaToLoading(n.currentUser,null,n.filterSet,n.sort,n.order,n.search,n.options,R.j.LIST,R.i.AUTO_REFRESH))}),6e4+5e3*Math.random())),t(n)):t(n)}}},D=n(29),L=n(610),P=n(98),U=n(3),B=n(5),H=n(6),G=n(59);var W=n(108),z=n(43),V=n(97),J=n(38);var Y=n(233),q=function(e){Object(B.a)(CordovaLoaded,e);var t=Object(H.a)(CordovaLoaded);function CordovaLoaded(){return Object(U.a)(this,CordovaLoaded),t.apply(this,arguments)}return CordovaLoaded}(s.a),K="SEDNA_SHOULD_RESUBSCRIBE_V1",X=function CordovaMiddleware(e){var t,n=null,r=function genericError(){return new z.b({message:"Unable to subscribe to notifications.",level:R.n.warning})};return function(a){return function(i){i.type===G.e.name&&null===n&&(Object(P.b)((function(){window.FirebasePlugin&&(n=window.FirebasePlugin,e.dispatch(new q))})),t=i.config.user.id);if(null===n)return a(i);var o=function upsertDevice(){var a;return null===(a=n)||void 0===a?void 0:a.getToken((function(n){null!==n?e.dispatch(new W.h(n,t)):e.dispatch(r())}),(function(t){console.log("Could not subscribe to notifications. Error: "+t),e.dispatch(r())}))};if(i.type===q.name&&(n.onTokenRefresh((function(){var t=e.getState().ui.notifications,n=t.token,r=t.subscribed;n&&r&&(e.dispatch(new W.g(n)),o())})),n.onMessageReceived((function(t){if(function isSednaiOSFirebaseMessage(e){return void 0!==e.documentId&&"background"===e.tap}(t)){var n=t.documentId;if(n&&!n.startsWith("test-")){var r=function getIndexableIdAndType(e){var t=e.split("-")[0];return{id:e.substring(t.length+1),type:"message"===t?J.a.message:J.a.topic}}(t.documentId),a=r.id,i=r.type;e.dispatch(Object(Y.b)(i,a,e.getState().router.location,!0))}else console.log("User clicked on test notification.")}}),(function(e){return console.error("Failed receiving FirebasePlugin message. Error: ",e)})),n.hasPermission((function(a){var i;null===(i=n)||void 0===i||i.getToken((function(i){if(null===i)return e.dispatch(r());if(a){var o=Object(V.a)("".concat(K,"_").concat(t),!1);e.dispatch(o?new W.h(i):new W.e(i)),window.localStorage.setItem("".concat(K,"_").concat(t),JSON.stringify(!1))}else{var c;null===(c=n)||void 0===c||c.grantPermission((function(t){if(!t)return e.dispatch(new W.b(!1,i)),console.error("Notification permissions denied.");e.dispatch(new W.h(i))}))}}),(function(t){console.log("Unable to subscribe to notifications. Error: "+t),e.dispatch(r())}))}))),i.type===W.i.name&&n.hasPermission((function(t){if(t)return o();e.dispatch(new z.b({message:"Failed to subscribe to notifications. SEDNA Notifications must first be allowed in iOS Settings.",level:R.n.warning}))})),i.type===W.j.name){var c=i,s=e.getState().ui.notifications,l=s.token,u=s.subscribed;window.localStorage.setItem("".concat(K,"_").concat(t),JSON.stringify(u)),l&&e.dispatch(new W.g(l)),c.next&&e.dispatch(c.next)}return a(i)}}},Q=n(39),Z=n.n(Q),$=n(54),ee=n(480),te=n(42),ne=n(51),re=n(901),ae="PRD"===ne.f?{apiKey:"AIzaSyADMO70TAlOyUtQ6qC9GAiDZrQfLVFdZhc",authDomain:"sedna-prd.firebaseapp.com",databaseURL:"https://sedna-prd.firebaseio.com",projectId:"sedna-prd",storageBucket:"sedna-prd.appspot.com",messagingSenderId:"22302014930",appId:"1:22302014930:web:5cc6547dfd926dc4225c0b"}:{apiKey:"AIzaSyBxe_ZpYkp43Y9IdKd_mXVHYSybHdZ4pfw",authDomain:"sedna-b6291.firebaseapp.com",databaseURL:"https://sedna-b6291.firebaseio.com",projectId:"sedna-b6291",storageBucket:"sedna-b6291.appspot.com",messagingSenderId:"967632886676",appId:"1:967632886676:web:eb39877a3aa6760c01cd81"},ie="PRD"===ne.f?"BK3SjNf2ayfnqQ46NFJf9EzqLxdbVGCGzPZwst7pL4sHqY0xD1KhPuQdLRdLxnDn5Houi7lv5AMMSlu5iEn_ExM":"BI_2P-uk8IfrG93UC3PyUtw3kU7ST_yo7NC5q7BEHalopTu2tvBrAnDwMD8YPIk6M1oAITi3gUDHjGxxDUBGHZw",oe=!1;Object(ee.c)().then((function(){return oe=!0}));var ce,se,le,ue,de,fe,be,pe,me,he,ge,je,ve,Oe=n(297),Te=n(4),ye=n(41),Se=n(44),Ce=_.e(),Ae=Object(r.a)({},G.e.name,(function(e,t){var n=t.config.users.map((function(e){var t,n,r=null!==(t=e.firstName)&&void 0!==t?t:"",a=null!==(n=e.lastName)&&void 0!==n?n:"";return Object(Te.a)(Object(Te.a)({},e),{},{firstName:r,lastName:a,initials:Object(Se.e)(e.initials,r,a)})}));return _.p(e,n,(function(e){return e.id}))})),Ee=Object(ye.a)(Ae,Ce),we=n(23),_e=n(27),Ie=n(250),xe=Object(r.a)({},G.e.name,(function(e,t){return _.p(e,t.config.teams,(function(e){return e.id}))})),ke=Object(ye.a)(xe,_.e()),Ne=(ce={},Object(r.a)(ce,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(ce,_e.X.name,(function(e,t){return t.setToLoading||_.g(e,t.messageId).isNotLoading()?_.r(e,t.messageId):e})),Object(r.a)(ce,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.teams)})),Object(r.a)(ce,Ie.a.name,(function(e,t){var n=t.messageId,r=t.teamIds;return _.g(e,n).map((function(t){return _.o(e,n,Object(we.a)(new Set(t.concat(r))))})).orElse(_.o(e,n,r))})),Object(r.a)(ce,_e.E.name,(function(e,t){return _.o(e,t.response.id,[t.teamId])})),Object(r.a)(ce,_e.K.name,(function(e,t){return _.o(e,t.messageId,[t.response.teamId])})),ce),Re=Object(ye.a)(Ne,_.e()),Fe=Object(r.a)({},G.e.name,(function(e,t){var n=t.config.users.map((function(e){return{userId:e.id,viewAllTeams:e.viewAllTeams,teamIds:e.nonDefaultTeams.concat(e.teamId)}}));return _.p(e,n,(function(e){return e.userId}))})),Me=Object(ye.a)(Fe,_.e()),De=n(175),Le=n(95),Pe=n(63),Ue=n(55),Be=_.e(),He=(se={},Object(r.a)(se,Le.l.name,(function(e){return _.r(e,_.a)})),Object(r.a)(se,Le.g.name,(function(e,t){return _.o(e,_.a,t.jobReferences.sort(Object(Pe.c)(Object(Pe.a)((function(e){return e.attributes.createdAt})))))})),Object(r.a)(se,Le.b.name,(function(e,t){return _.f(e,_.a,t.error)})),Object(r.a)(se,Le.k.name,(function(e,t){return _.v(e,_.a,t.response,(function(e){return e.id}))})),Object(r.a)(se,Le.f.name,(function(e,t){return _.v(e,_.a,t.response,(function(e){return e.id}))})),se),Ge=Object(ye.a)(He,Be),We=(le={},Object(r.a)(le,Le.n.name,(function(e,t){return t.teamIds.reduce((function(e,t){return _.r(e,t)}),e)})),Object(r.a)(le,Le.j.name,(function(e,t){return _.q(e,t.data.teamJobReferenceMap)})),Object(r.a)(le,Le.e.name,(function(e,t){return t.teamIds.reduce((function(e,n){return _.f(e,n,t.error)}),e)})),le),ze=Object(ye.a)(We,_.e()),Ve=(ue={},Object(r.a)(ue,Le.i.name,(function(e,t){return _.o(e,t.id,t.result)})),Object(r.a)(ue,Le.d.name,(function(e,t){return _.f(e,t.id,t.error)})),Object(r.a)(ue,Ue.x.name,(function(e,t){return _.o(e,t.id,t.result.attributes.jobReferenceTags.data)})),Object(r.a)(ue,Ue.k.name,(function(e,t){return _.f(e,t.id,t.error)})),ue),Je=Object(ye.a)(Ve,_.e()),Ye=n(61),qe=n(329),Ke=n(32),Xe=n.n(Ke),Qe=n(596),Ze=n(155),$e=n(147),et=(de={},Object(r.a)(de,Ye.H.name,(function(e,t){return{doc:t.doc,showModalBackdrop:t.showModalBackdrop}})),Object(r.a)(de,Ye.z.name,(function(){return{doc:null,showModalBackdrop:!1}})),Object(r.a)(de,Ye.h.name,(function(){return{doc:null,showModalBackdrop:!1}})),de),tt=Object(ye.a)(et,{doc:null,showModalBackdrop:!1}),nt=(fe={},Object(r.a)(fe,Ye.E.name,(function(e,t){return _.r(e,t.id)})),Object(r.a)(fe,Ye.u.name,(function(e,t){return _.o(e,t.emlPreview.id,t.emlPreview)})),Object(r.a)(fe,Ye.h.name,(function(e,t){return _.f(e,t.id,t.error)})),fe),rt=Object(ye.a)(nt,_.e()),at=Object(r.a)({},Qe.a.name,(function(e,t){var n=e[t.kind];return Object(Te.a)(Object(Te.a)({},e),{},Object(r.a)({},t.kind,_.o(n,t.id,t.s3Url)))})),it=Object(ye.a)(at,Ze.a),ot=(be={},Object(r.a)(be,Ye.I.name,(function(e,t){return _.r(e,t.filterSet.serializeToString())})),Object(r.a)(be,Ye.k.name,(function(e,t){return _.o(e,t.filterSet.serializeToString(),t.messages)})),be),ct=Object(ye.a)(ot,_.e()),st=(pe={},Object(r.a)(pe,_e.G.name,(function(e,t){return _.p(e,t.details.flexDocuments,(function(e){return e.documentId}))})),Object(r.a)(pe,Ye.J.name,(function(e,t){return _.o(e,t.attachmentId,{id:"pending",documentId:t.attachmentId,documentTypeId:t.documentTypeId,expires:t.expiresAt,updated:Xe()().format("YYYY-MM-DD"),flexGroup:t.vesselName,flexType:t.documentTypeName})})),Object(r.a)(pe,Ye.v.name,(function(e,t){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{id:t.id})}),(function(e){return e.documentId===t.attachmentId}))})),Object(r.a)(pe,Ye.i.name,(function(e,t){return _.b(e,t.attachmentId)})),Object(r.a)(pe,Ye.w.name,(function(e,t){return _.b(e,t.attachmentId)})),pe),lt=Object(ye.a)(st,_.e()),ut=_.e(),dt=(me={},Object(r.a)(me,Ye.l.name,(function(e,t){return _.p(e,t.documents,(function(e){return e.id}))})),Object(r.a)(me,Ye.B.name,(function(e,t){return _.r(e,t.attachmentId)})),Object(r.a)(me,Ye.t.name,(function(e,t){return _.o(e,t.response.id,t.response)})),Object(r.a)(me,Ye.g.name,(function(e,t){return _.f(e,t.id,t.error)})),Object(r.a)(me,_e.G.name,(function(e,t){return _.p(e,t.details.documents,(function(e){return e.id}))})),Object(r.a)(me,Ye.O.name,(function(e,t){var n=t.file,r=getFileId(t.messageId,n),a={id:r,hash:"uploading",name:n.name,size:n.size,type:"attachment"};return _.o(e,r,a)})),Object(r.a)(me,Ye.n.name,(function(e,t){var n=getFileId(t.messageId,t.file),r=t.response;return _.o(_.b(e,n),r.id,r)})),Object(r.a)(me,Ye.o.name,(function(e,t){return _.b(e,t.attachmentId)})),Object(r.a)(me,Ye.p.name,(function(e,t){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{name:t.document.name})}),(function(e){return e.id===t.document.id}))})),Object(r.a)(me,_e.M.name,(function(e,t){return _.p(e,t.response.included.filter((function(e){return"attachment"===e.type})),(function(e){return e.id}))})),Object(r.a)(me,qe.a.name,(function(e,t){return _.p(e,t.documents,(function(e){return e.id}))})),Object(r.a)(me,Ye.k.name,(function(e,t){return _.p(e,t.messages.reduce((function(e,t){return[].concat(Object(we.a)(e),Object(we.a)(t.documents))}),[]),(function(e){return e.id}))})),Object(r.a)(me,$e.i.name,(function(e,t){var n,r={id:getAddFromUrlId(t.messageId,t.url),hash:"uploading",name:null!==(n=t.filename)&&void 0!==n?n:"Uploading..",size:0,type:"attachment"};return _.o(e,r.id,r)})),Object(r.a)(me,$e.b.name,(function(e,t){return _.b(e,getAddFromUrlId(t.messageId,t.url))})),Object(r.a)(me,$e.e.name,(function(e,t){var n=t.response;return _.o(_.b(e,getAddFromUrlId(t.messageId,t.url)),n.id,n)})),me),ft=Object(ye.a)(dt,ut),bt=(he={},Object(r.a)(he,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(he,Ye.l.name,(function(e,t){return _.w(e,t.messageId,t.documents.map((function(e){return e.id})),(function(e){return e}))})),Object(r.a)(he,_e.X.name,(function(e,t){return t.setToLoading||_.g(e,t.messageId).isNotLoading()?_.r(e,t.messageId):e})),Object(r.a)(he,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.documents.map((function(e){return e.id})))})),Object(r.a)(he,_e.m.name,(function(e,t){return _.f(e,t.messageId,t.error)})),Object(r.a)(he,Ye.O.name,(function(e,t){return _.v(e,t.messageId,getFileId(t.messageId,t.file),(function(e){return e}))})),Object(r.a)(he,Ye.n.name,(function(e,t){var n=getFileId(t.messageId,t.file);return _.o(e,t.messageId,_.g(e,t.messageId).orElse([]).filter((function(e){return e!==n})).concat(t.response.id))})),Object(r.a)(he,Ye.o.name,(function(e,t){return _.o(e,t.messageId,_.g(e,t.messageId).orElse([]).filter((function(e){return e!==t.attachmentId})))})),Object(r.a)(he,_e.E.name,(function(e,t){return _.o(e,t.response.id,[])})),Object(r.a)(he,qe.a.name,(function(e,t){return _.o(e,t.messageId,_.g(e,t.messageId).orElse([]).concat(t.documents.map((function(e){return e.id}))))})),Object(r.a)(he,_e.L.name,(function(e,t){return _.o(e,t.messageId,[])})),Object(r.a)(he,$e.i.name,(function(e,t){return _.v(e,t.messageId,getAddFromUrlId(t.messageId,t.url),(function(e){return e}))})),Object(r.a)(he,$e.b.name,(function(e,t){return _.o(e,t.messageId,_.g(e,t.messageId).orElse([]).filter((function(e){return e!==getAddFromUrlId(t.messageId,t.url)})))})),Object(r.a)(he,$e.e.name,(function(e,t){return _.o(e,t.messageId,_.g(e,t.messageId).orElse([]).filter((function(e){return e!==getAddFromUrlId(t.messageId,t.url)})).concat(t.response.id))})),he);function getFileId(e,t){return e+t.name+t.size}function getAddFromUrlId(e,t){return"".concat(e,"-").concat(t)}var pt,mt,ht,gt,jt,vt,Ot,Tt,yt,St,Ct,At,Et=Object(ye.a)(bt,_.e()),wt=Object(r.a)({},_e.M.name,(function(e,t){var n=t.response.data.reduce((function(e,t){return e[t.id]=t.relationships.documents.data.map((function(e){return e.id})),e}),{});return _.q(e,n)})),_t=Object(ye.a)(wt,_.e()),It={attachmentLinks:[],attachmentLinkErrors:[],messageLinks:[],messageLinkErrors:[]},xt=(ge={},Object(r.a)(ge,Ye.A.name,(function(e){return _.o(e,_.a,Object(Te.a)({},It))})),Object(r.a)(ge,Ye.q.name,(function(e,t){return _.o(e,_.a,_.g(e,_.a).map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{attachmentLinks:[].concat(Object(we.a)(e.attachmentLinks),Object(we.a)(t.attachmentLinks))})})).orElse(It))})),Object(r.a)(ge,Ye.s.name,(function(e,t){return _.o(e,_.a,_.g(e,_.a).map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{messageLinks:[].concat(Object(we.a)(e.messageLinks),Object(we.a)(t.links))})})).orElse(It))})),Object(r.a)(ge,Ye.c.name,(function(e,t){return _.o(e,_.a,_.g(e,_.a).map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{attachmentLinkErrors:[].concat(Object(we.a)(e.attachmentLinkErrors),Object(we.a)(t.failedAttachments))})})).orElse(It))})),Object(r.a)(ge,Ye.f.name,(function(e,t){return _.o(e,_.a,_.g(e,_.a).map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{messageLinkErrors:[].concat(Object(we.a)(e.messageLinkErrors),Object(we.a)(t.messages))})})).orElse(It))})),ge),kt=Object(ye.a)(xt,_.e()),Nt=(je={},Object(r.a)(je,Ye.G.name,(function(e,t){return _.r(e,t.vesselName)})),Object(r.a)(je,Ye.j.name,(function(e,t){return _.o(e,t.state.vesselName,t.state)})),Object(r.a)(je,Ye.e.name,(function(e,t){return _.f(e,t.vesselName,t.error)})),Object(r.a)(je,Ye.J.name,(function(e,t){return _.b(e,t.vesselName)})),Object(r.a)(je,Ye.Q.name,(function(e,t){return _.b(e,t.vesselName)})),je),Rt=Object(ye.a)(Nt,_.e()),Ft=(ve={},Object(r.a)(ve,Ye.F.name,(function(e){return _.r(e,_.a)})),Object(r.a)(ve,Ye.r.name,(function(e,t){return _.o(e,_.a,t.links)})),Object(r.a)(ve,Ye.d.name,(function(e,t){return _.f(e,_.a,t.error)})),ve),Mt=Object(ye.a)(Ft,_.e()),Dt=n(128),Lt=n(37),Pt=n(62),Ut=n(70),Bt=(pt={},Object(r.a)(pt,_e.G.name,(function(e,t){return _.p(e,t.details.shares,(function(e){return toShareId(e)}))})),Object(r.a)(pt,Ie.a.name,(function(e,t){return _.g(e,String(t.messageId)).map((function(n){var r=t.teamIds.map((function(e){return Object(Te.a)(Object(Te.a)({},n),{},{sharedToTeamId:e})}));return _.p(e,r,(function(e){return toShareId(e)}))})).orElse(e)})),Object(r.a)(pt,Pt.f.name,(function(e,t){var n=t.teamIds.map((function(e){return function toShare(e,t){return{id:e.messageId,time:e.sharedDate,messageId:e.messageId,sharedByUserId:e.userId,sharedFromTeamId:e.fromTeamId,sharedToTeamId:t}}(t,e)}));return _.p(e,n,(function(e){return e.id}))})),pt),Ht=Object(ye.a)(Bt,_.e()),Gt=(mt={},Object(r.a)(mt,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(mt,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.shares.map((function(e){return toShareId(e)})))})),Object(r.a)(mt,_e.X.name,(function(e,t){return t.setToLoading||_.g(e,t.messageId).isNotLoading()?_.r(e,t.messageId):e})),Object(r.a)(mt,_e.m.name,(function(e,t){return _.f(e,t.messageId,t.error)})),Object(r.a)(mt,_e.E.name,(function(e,t){return _.o(e,t.response.id,[])})),Object(r.a)(mt,Ie.a.name,(function(e,t){return _.o(e,t.messageId,t.teamIds.map((function(e){return"".concat(t.messageId,"-").concat(t.fromTeamId,"-").concat(e)})))})),Object(r.a)(mt,Pt.f.name,(function(e,t){return _.w(e,t.messageId,t.teamIds.map((function(e){return"".concat(t.messageId,"-").concat(t.fromTeamId,"-").concat(e)})),(function(e){return e}))})),mt),Wt=Object(ye.a)(Gt,_.e()),zt=Object(r.a)({},_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.externalShares)})),Vt=Object(ye.a)(zt,_.e()),Jt=(ht={},Object(r.a)(ht,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.editedEvents)})),Object(r.a)(ht,_e.I.name,(function(e,t){var n=t.response.events?t.response.events.filter((function(e){return e.type===Ut.a.edited})):[];return _.w(e,t.response.id,n.map((function(e){return{eventId:e.eventId,messageId:t.response.id,userId:e.userId,time:e.time}})),(function(e){return e.eventId}))})),Object(r.a)(ht,_e.D.name,(function(e,t){var n=t.response.events?t.response.events.filter((function(e){return e.type===Ut.a.edited})):[];return _.w(e,t.response.id,n.map((function(e){return{eventId:e.eventId,messageId:t.response.id,userId:e.userId,time:e.time}})),(function(e){return e.eventId}))})),Object(r.a)(ht,_e.E.name,(function(e,t){return _.o(e,t.response.id,[])})),ht),Yt=Object(ye.a)(Jt,_.e()),qt=(gt={},Object(r.a)(gt,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.senderChangedEvents)})),Object(r.a)(gt,Pt.j.name,(function(e,t){var n=t.message.events?t.message.events.filter((function(e){return e.type===Ut.a.senderChanged})):[];return _.w(e,t.message.id.toString(),n.map((function(e){return{eventId:e.eventId,messageId:t.message.id.toString(),userId:e.userId,time:e.time}})),(function(e){return e.eventId}))})),Object(r.a)(gt,_e.E.name,(function(e,t){return _.o(e,t.response.id,[])})),gt),Kt=Object(ye.a)(qt,_.e()),Xt=(jt={},Object(r.a)(jt,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.icsDownloadedEvents)})),Object(r.a)(jt,_e.E.name,(function(e,t){return _.o(e,t.response.id,[])})),Object(r.a)(jt,Ye.x.name,(function(e,t){return _.o(e,t.details.id,t.details.icsDownloadedEvents)})),jt),Qt=Object(ye.a)(Xt,_.e()),Zt=(vt={},Object(r.a)(vt,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.followUp)})),Object(r.a)(vt,_e.U.name,(function(e,t){return _.v(e,t.id,t.followUp,(function idFunc(e){return e.followUpType+e.messageId+e.time}))})),Object(r.a)(vt,_e.V.name,(function(e,t){var n=_.h(e).reduce((function(e,t){return e.concat(t)}),[]).find((function(e){return e.messageId===t.messageId}));return n?_.v(e,n.originMessageId,{time:t.time,originMessageId:n.originMessageId,messageId:n.messageId,userId:t.userId,followUpType:n.followUpType===Lt.b.FORWARDING?Lt.b.FORWARDED:Lt.b.REPLIED},(function(e){return e.messageId})):e})),Object(r.a)(vt,Pt.b.name,(function(e,t){var n=_.h(e).reduce((function(e,t){return e.concat(t)}),[]).find((function(e){return e.messageId===t.deletedMessageId}));return n?_.c(e,(function(e){return e.messageId===n.messageId})):e})),Object(r.a)(vt,_e.E.name,(function(e,t){return _.o(e,t.response.id,[])})),vt),$t=Object(ye.a)(Zt,_.e()),en=(Ot={},Object(r.a)(Ot,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.externalFollowUp)})),Object(r.a)(Ot,_e.T.name,(function(e,t){return _.o(e,t.id,_.g(e,t.id).orElse([]).concat(t.externalFollowUp))})),Ot),tn=Object(ye.a)(en,_.e());function tagToReadBy(e){return{messageId:e.messageId,userId:e.userId,time:e.createdAt}}function toShareId(e){return"".concat(e.messageId,"-").concat(e.sharedFromTeamId,"-").concat(e.sharedToTeamId)}var nn,rn,an,on,cn,sn,ln,un,dn=(Tt={},Object(r.a)(Tt,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(Tt,N.j.name,(function(e,t){return _.x(e,t.messageDetails.reduce((function(e,t){return e[t.id]=t.reads,e}),{}),(function(e){return e.userId}))})),Object(r.a)(Tt,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.reads)})),Object(r.a)(Tt,_e.C.name,(function(e,t){return _.v(e,t.messageId,tagToReadBy(t.response),(function(e){return e.userId}))})),Object(r.a)(Tt,_e.E.name,(function(e,t){var n=String(t.response.id);return _.o(e,n,[{messageId:n,userId:t.userId,time:Xe()().format(Dt.a)}])})),Object(r.a)(Tt,Pt.g.name,(function(e,t){var n=t.messageTags.filter((function(e){var t=e.tagId;return String(t)===String(Lt.g.VIEWED)})).reduce((function(e,t){var n=t.messageId,r=tagToReadBy(t);return e.hasOwnProperty(n)?e[n].push(r):e[n]=[r],e}),{});return _.x(e,n,(function(e){return e.userId}))})),Tt),fn=Object(ye.a)(dn,_.e()),bn=(yt={},Object(r.a)(yt,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.archivedForTeams)})),Object(r.a)(yt,_e.E.name,(function(e,t){return _.o(e,String(t.response.id),[])})),yt),pn=Object(ye.a)(bn,_.e()),mn=(St={},Object(r.a)(St,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.scheduledEvents)})),Object(r.a)(St,_e.E.name,(function(e,t){return _.o(e,String(t.response.id),[])})),Object(r.a)(St,_e.qb.name,(function(e,t){var n=[];return t.sendDelay>0&&n.push({messageId:t.messageId,userId:t.currentUserId,time:Xe()().format(Dt.a)}),_.o(e,t.messageId,n)})),Object(r.a)(St,_e.o.name,(function(e,t){return _.o(e,t.messageId,[])})),Object(r.a)(St,Pt.g.name,(function(e,t){var n=t.messageTags.filter((function(e){return String(e.tag.tagTypeId)===String(Lt.h.SYSTEM)&&String(e.tag.name)===String("scheduled")})).reduce((function(e,t){var n=t.messageId,r=function tagToScheduled(e){return{messageId:e.messageId,userId:e.userId,time:e.createdAt}}(t);return e.hasOwnProperty(n)?e[n].push(r):e[n]=[r],e}),{});return _.x(e,n,(function(e){return e.userId}))})),St),hn=Object(ye.a)(mn,_.e()),gn=(Ct={},Object(r.a)(Ct,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.cancelledEvents)})),Object(r.a)(Ct,_e.E.name,(function(e,t){return _.o(e,String(t.response.id),[])})),Object(r.a)(Ct,_e.kb.name,(function(e,t){return _.o(e,t.messageId,[{messageId:t.messageId,userId:t.userId,time:Xe()().format(Dt.a)}])})),Object(r.a)(Ct,_e.l.name,(function(e,t){return _.o(e,t.messageId,[])})),Object(r.a)(Ct,Pt.g.name,(function(e,t){var n=t.messageTags.filter((function(e){return String(e.tag.tagTypeId)===String(Lt.h.SYSTEM)&&String(e.tag.name)===String("cancelled")})).reduce((function(e,t){var n=t.messageId,r=function tagToCancelled(e){return{messageId:e.messageId,userId:e.userId,time:e.createdAt}}(t);return e.hasOwnProperty(n)?e[n].push(r):e[n]=[r],e}),{});return _.x(e,n,(function(e){return e.userId}))})),Ct),jn=Object(ye.a)(gn,_.e()),vn=(At={},Object(r.a)(At,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.sendNowEvents)})),Object(r.a)(At,_e.N.name,(function(e,t){return _.o(e,t.messageId,[{messageId:t.messageId,userId:t.userId,time:t.sentDate}])})),Object(r.a)(At,_e.E.name,(function(e,t){return _.o(e,t.response.id,[])})),Object(r.a)(At,Pt.e.name,(function(e,t){return _.o(e,t.messageId,[{messageId:t.messageId,userId:t.userId,time:t.sentDate}])})),At),On=Object(ye.a)(vn,_.e()),Tn=n(123),yn=(nn={},Object(r.a)(nn,_e.G.name,(function(e,t){return _.p(e,t.details.comments,(function(e){return e.id}))})),Object(r.a)(nn,Tn.g.name,(function(e,t){return e.entity[t.uuid]?e:_.o(e,t.uuid,{type:"comment",id:t.uuid,attributes:{content:t.commentText,createdAt:Xe()().toISOString()},relationships:{user:{data:{type:"user",id:t.currentUserId}},message:{data:{type:"message",id:t.messageId}}}})})),Object(r.a)(nn,Tn.d.name,(function(e,t){return _.o(_.b(e,t.uuid),t.comment.id,t.comment)})),Object(r.a)(nn,Pt.a.name,(function(e,t){return _.p(e,t.comments,(function(e){return e.id}))})),Object(r.a)(nn,Tn.f.name,(function(e,t){return _.o(e,t.uuid,{type:"comment",id:t.uuid,attributes:{content:t.commentText,createdAt:t.time},relationships:{user:{data:{type:"user",id:t.currentUserId}},message:{data:{type:"message",id:t.messageId}}}})})),Object(r.a)(nn,Tn.b.name,(function(e,t){return t.uuid?_.b(e,t.uuid):e})),Object(r.a)(nn,Tn.a.name,(function(e,t){return _.b(e,t.uuid)})),nn),Sn=Object(ye.a)(yn,_.e()),Cn=(rn={},Object(r.a)(rn,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(rn,_e.X.name,(function(e,t){return t.setToLoading||_.g(e,t.messageId).isNotLoading()?_.r(e,t.messageId):e})),Object(r.a)(rn,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.comments.map((function(e){return e.id})))})),Object(r.a)(rn,_e.m.name,(function(e,t){return _.f(e,t.messageId,t.error)})),Object(r.a)(rn,Tn.g.name,(function(e,t){return _.v(e,t.messageId,t.uuid,(function(e){return e}))})),Object(r.a)(rn,Tn.d.name,(function(e,t){return _.v(_.s(e,t.messageId,(function(e){return e===t.uuid})),t.comment.relationships.message.data.id,t.comment.id,(function(e){return e}))})),Object(r.a)(rn,Tn.b.name,(function(e,t){return _.s(e,t.messageId,(function(e){return e===t.uuid}))})),Object(r.a)(rn,Tn.f.name,(function(e,t){return _.v(e,t.messageId,t.uuid,(function(e){return e}))})),Object(r.a)(rn,Tn.a.name,(function(e,t){return _.s(e,t.messageId,(function(e){return e===t.uuid}))})),Object(r.a)(rn,_e.E.name,(function(e,t){return _.o(e,t.response.id,[])})),Object(r.a)(rn,Pt.a.name,(function(e,t){var n=t.comments.reduce((function(e,t){var n=t.relationships.message.data.id;return e.hasOwnProperty(n)?e[n].push(t.id):e[n]=[t.id],e}),{});return _.x(e,n,(function(e){return e}))})),rn),An=Object(ye.a)(Cn,_.e()),En=(an={},Object(r.a)(an,_e.G.name,(function(e,t){return _.p(e,t.details.publicComments,(function(e){return e.id}))})),Object(r.a)(an,Tn.h.name,(function(e,t){return e.entity[t.uuid]?e:_.o(e,t.uuid,{id:t.uuid,content:t.commentText,createdAt:t.time,userId:t.currentUserId})})),Object(r.a)(an,Tn.e.name,(function(e,t){return _.o(_.b(e,t.uuid),t.comment.id,t.comment)})),Object(r.a)(an,Tn.c.name,(function(e,t){return t.uuid?_.b(e,t.uuid):e})),an),wn=Object(ye.a)(En,_.e()),_n=(on={},Object(r.a)(on,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(on,_e.X.name,(function(e,t){return t.setToLoading||_.g(e,t.messageId).isNotLoading()?_.r(e,t.messageId):e})),Object(r.a)(on,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.publicComments.map((function(e){return e.id})))})),Object(r.a)(on,_e.m.name,(function(e,t){return _.f(e,t.messageId,t.error)})),Object(r.a)(on,Tn.h.name,(function(e,t){return _.v(e,t.messageId,t.uuid,(function(e){return e}))})),Object(r.a)(on,Tn.e.name,(function(e,t){return _.o(e,t.comment.id,[])})),on),In=Object(ye.a)(_n,_.e()),xn=n(253),kn=n(156),Nn=n(368);function addTagsToMessageMeta(e,t,n){var r=t.filter((function(e){return e.tagId===String(Lt.g.INBOX)&&e.userId===n})).map((function(e){return e.messageId})),a=t.filter((function(e){return e.tagId===String(Lt.g.DRAFT)})).map((function(e){return e.messageId})),i=t.filter((function(e){return e.tagId===String(Lt.g.SENT)})).map((function(e){return e.messageId})),o=t.filter((function(e){return"scheduled"===e.tag.name&&1===e.tag.tagTypeId})).map((function(e){return e.messageId})),c=t.filter((function(e){return"cancelled"===e.tag.name&&1===e.tag.tagTypeId})).map((function(e){return e.messageId}));return[function(e){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{inInbox:!0})}),(function(e){return r.includes(e.id)}))},function(e){return _.t(e,(function(e){var n=t.filter((function(e){return e.tagId===String(Lt.g.DRAFT)})),r=n.length>0?function messageTagToDraft(e){return{id:Lt.g.DRAFT.toString(),userId:e.userId.toString()}}(n[0]):void 0;return Object(Te.a)(Object(Te.a)({},e),{},{draftTag:r})}),(function(e){return a.includes(e.id)}))},function(e){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{state:R.m.Sent})}),(function(e){return i.includes(e.id)}))},function(e){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{state:R.m.Scheduled})}),(function(e){return o.includes(e.id)}))},function(e){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{state:R.m.Cancelled})}),(function(e){return c.includes(e.id)}))}].reduce((function(e,t){return t(e)}),e)}var Rn=(cn={},Object(r.a)(cn,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(cn,_e.X.name,(function(e,t){return t.setToLoading||_.g(e,t.messageId).isNotLoading()?_.r(e,t.messageId):e})),Object(r.a)(cn,_e.G.name,(function(e,t){var n=t.details,r=n.id,a=n.meta;return _.o(e,r,a)})),Object(r.a)(cn,N.j.name,(function(e,t){return _.p(e,t.messageDetails.map((function(e){return e.meta})),(function(e){return e.id}))})),Object(r.a)(cn,Tn.f.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return _.o(e,n.id,Object(Te.a)(Object(Te.a)({},n),{},{activitySummary:Object(Te.a)(Object(Te.a)({},n.activitySummary),{},{comments:[].concat(Object(we.a)(n.activitySummary.comments),[{byUserId:t.currentUserId,time:t.time,uuid:t.uuid}])})}))})).orElse(e)})),Object(r.a)(cn,Tn.a.name,(function(e,t){return _.g(e,t.messageId).map((function(t){var n=t.activitySummary.comments.splice(-1,1);return _.o(e,t.id,Object(Te.a)(Object(Te.a)({},t),{},{activitySummary:Object(Te.a)(Object(Te.a)({},t.activitySummary),{},{comments:n})}))})).orElse(e)})),Object(r.a)(cn,Tn.g.name,(function(e,t){return _.g(e,t.messageId).map((function(n){var r=n.activitySummary.comments,a=r[r.length-1];return(null===a||void 0===a?void 0:a.uuid)&&a.uuid===t.uuid?e:_.o(e,n.id,Object(Te.a)(Object(Te.a)({},n),{},{activitySummary:Object(Te.a)(Object(Te.a)({},n.activitySummary),{},{comments:[].concat(Object(we.a)(n.activitySummary.comments),[{byUserId:t.currentUserId,time:Xe()().toISOString(),uuid:t.uuid}])})}))})).orElse(e)})),Object(r.a)(cn,Tn.b.name,(function(e,t){return _.g(e,t.messageId).map((function(t){var n=t.activitySummary.comments.splice(-1,1);return _.o(e,t.id,Object(Te.a)(Object(Te.a)({},t),{},{activitySummary:Object(Te.a)(Object(Te.a)({},t.activitySummary),{},{comments:n})}))})).orElse(e)})),Object(r.a)(cn,Pt.j.name,(function(e,t){return _.t(e,(function(e){var n=t.message.tags.filter((function(e){return e.id===Lt.g.DRAFT})),r=void 0;return n.length>0&&(r=function toDraftTag(e){return{id:Lt.g.DRAFT.toString(),userId:e.userId.toString()}}(n[0])),Object(Te.a)(Object(Te.a)({},e),{},{draftTag:r})}),(function(e){return e.id===t.message.id.toString()}))})),Object(r.a)(cn,_e.rb.name,(function(e,t){return t.messageIds.map((function(t){return _.g(e,t)})).reduce((function(e,t){return t.map((function(t){return _.o(e,t.id,Object(Te.a)(Object(Te.a)({},t),{},{inInbox:!1}))})).orElse(e)}),e)})),Object(r.a)(cn,_e.p.name,(function(e,t){return t.messageIds.map((function(t){return _.g(e,t)})).reduce((function(e,t){return t.map((function(t){return _.o(e,t.id,Object(Te.a)(Object(Te.a)({},t),{},{inInbox:!0}))})).orElse(e)}),e)})),Object(r.a)(cn,_e.sb.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return _.o(e,t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{inInbox:!1}))})).orElse(e)})),Object(r.a)(cn,_e.ub.name,(function(e,t){return t.messageIds.map((function(t){return _.g(e,t)})).reduce((function(e,t){return t.map((function(t){return _.o(e,t.id,Object(Te.a)(Object(Te.a)({},t),{},{inInbox:!0}))})).orElse(e)}),e)})),Object(r.a)(cn,_e.r.name,(function(e,t){return t.messageIds.map((function(t){return _.g(e,t)})).reduce((function(e,t){return t.map((function(t){return _.o(e,t.id,Object(Te.a)(Object(Te.a)({},t),{},{inInbox:!1}))})).orElse(e)}),e)})),Object(r.a)(cn,_e.F.name,(function(e,t){return _.b(e,t.messageId)})),Object(r.a)(cn,_e.z.name,(function(e,t){return _.d(e,(function(e){return t.messageIds.includes(e.id)}))})),Object(r.a)(cn,_e.H.name,(function(e,t){return _.b(e,t.messageId)})),Object(r.a)(cn,_e.O.name,(function(e,t){return _.g(e,t.messageId).map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{witness:Object(Te.a)(Object(Te.a)({},e.witness),{},{comment:t.orderingId})})})).map((function(n){return _.o(e,t.messageId,n)})).orElse(e)})),Object(r.a)(cn,qe.d.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return _.o(e,t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{subject:t.clientCopy.subject||"",toAddresses:t.clientCopy.to,ccAddresses:t.clientCopy.cc,bccAddresses:t.clientCopy.bcc}))})).orElse(e)})),Object(r.a)(cn,_e.I.name,(function(e,t){return updateMessageFromSave(e,t.response)})),Object(r.a)(cn,_e.D.name,(function(e,t){return updateMessageFromSave(e,t.response)})),Object(r.a)(cn,_e.tb.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return _.o(e,t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{fromName:t.newDraft.from.name,fromEmail:t.newDraft.from.email}))})).orElse(e)})),Object(r.a)(cn,_e.E.name,(function(e,t){var n=t.response,r={id:n.id,state:R.m.PrivateDraft,fromName:n.fromName,fromEmail:n.fromEmail,subject:n.subject||"",snippet:n.snippet,hasAttachment:n.hasAttachment,inInbox:!1,receivedDate:n.receivedDate,sentDate:n.sentDate,messageId:"",importId:"",createdAt:n.createdAt,modifiedAt:n.modifiedAt,latestActivity:n.modifiedAt,witness:void 0,activitySummary:{comments:[],shares:[]},toAddresses:n.toAddresses,ccAddresses:n.ccAddresses,bccAddresses:n.bccAddresses,signed:n.signed,createdBy:t.userId};return _.o(e,n.id,r)})),Object(r.a)(cn,_e.J.name,(function(e,t){return updateMessageFromSave(e,t.response,!t.storeMessage,t.isScheduled?R.m.Scheduled:R.m.Sending)})),Object(r.a)(cn,_e.hb.name,(function(e,t){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{state:R.m.Draft})}),(function(e){return e.id===t.messageId}))})),Object(r.a)(cn,_e.k.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return _.o(e,t.messageId,Object(Te.a)({},n))})).orElse(e)})),Object(r.a)(cn,Pt.g.name,(function(e,t){return t.messageTags.reduce((function(e,n){return n.tagId===String(Lt.g.TODO)&&n.userId!==t.currentUserId?_.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{latestActivity:n.createdAt})}),(function(e){return e.id===n.messageId})):n.tagId===String(Lt.g.INBOX)&&n.userId===t.currentUserId?_.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{latestActivity:n.createdAt,inInbox:!0})}),(function(e){return e.id===n.messageId})):e}),addTagsToMessageMeta(e,t.messageTags,t.currentUserId))})),Object(r.a)(cn,Pt.h.name,(function(e,t){return function removeTagsFromMessageMeta(e,t,n){var r=t.filter((function(e){return e.tagId===String(Lt.g.INBOX)&&e.userId===n})).map((function(e){return e.messageId})),a=t.filter((function(e){return e.tagId===String(Lt.g.DRAFT)})).map((function(e){return e.messageId})),i=t.filter((function(e){return e.tagId===String(Lt.g.SENT)})).map((function(e){return e.messageId})),o=t.filter((function(e){return e.tagId===String(Lt.g.SENDING)})).map((function(e){return e.messageId})),c=t.filter((function(e){return"scheduled"===e.tag.name&&1===e.tag.tagTypeId})).map((function(e){return e.messageId})),s=t.filter((function(e){return"cancelled"===e.tag.name&&1===e.tag.tagTypeId})).map((function(e){return e.messageId}));return[function(e){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{inInbox:!1})}),(function(e){return r.includes(e.id)}))},function(e){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{draft:null})}),(function(e){return a.includes(e.id)}))},function(e){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{sent:!1})}),(function(e){return i.includes(e.id)}))},function(e){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{sending:!1})}),(function(e){return o.includes(e.id)}))},function(e){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{inScheduled:!1})}),(function(e){return c.includes(e.id)}))},function(e){return _.t(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{inCancelled:!1})}),(function(e){return s.includes(e.id)}))}].reduce((function(e,t){return t(e)}),e)}(e,t.messageTags,t.currentUserId)})),Object(r.a)(cn,Pt.a.name,(function(e,t){return t.comments.reduce((function(e,t){return _.t(e,(function(e){var n=e.activitySummary.comments,r=n[n.length-1];return(null===r||void 0===r?void 0:r.uuid)&&r.byUserId===t.relationships.user.data.id?e:Object(Te.a)(Object(Te.a)({},e),{},{latestActivity:t.attributes.createdAt,activitySummary:Object(Te.a)(Object(Te.a)({},e.activitySummary),{},{comments:[].concat(Object(we.a)(e.activitySummary.comments),[{byUserId:t.relationships.user.data.id,time:t.attributes.createdAt}])})})}),(function(e){return e.id===t.relationships.message.data.id}))}),e)})),Object(r.a)(cn,Pt.b.name,(function(e,t){return _.b(e,t.deletedMessageId)})),Object(r.a)(cn,u.e.name,(function(e){return{entity:e.entity,fetchStatus:e.fetchStatus,error:{},lastLoaded:e.lastLoaded}})),Object(r.a)(cn,_e.kb.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return _.o(e,t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{state:R.m.Cancelled}))})).orElse(e)})),Object(r.a)(cn,_e.l.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return _.o(e,t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{state:R.m.Scheduled}))})).orElse(e)})),Object(r.a)(cn,_e.wb.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return _.o(e,t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{state:R.m.Sending}))})).orElse(e)})),Object(r.a)(cn,_e.N.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return _.o(e,t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{state:R.m.Sent,sentDate:t.sentDate}))})).orElse(e)})),Object(r.a)(cn,Pt.e.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return _.o(e,t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{state:R.m.Sent,sentDate:t.sentDate}))})).orElse(e)})),Object(r.a)(cn,_e.t.name,(function(e,t){return _.g(e,t.messageId).map((function(n){return null!==t.originalSentDate?_.o(e,t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{state:R.m.Scheduled,sentDate:t.originalSentDate})):_.o(e,t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{state:R.m.Scheduled}))})).orElse(e)})),Object(r.a)(cn,Ie.a.name,(function(e,t){return _.g(e,String(t.messageId)).map((function(n){return _.o(e,n.id,Object(Te.a)(Object(Te.a)({},n),{},{activitySummary:Object(Te.a)(Object(Te.a)({},n.activitySummary),{},{shares:n.activitySummary.shares.concat(t.teamIds.map((function(e){return{fromTeamId:t.fromTeamId,toTeamId:e,time:Xe()().format(Dt.a)}})))})}))})).orElse(e)})),Object(r.a)(cn,Pt.f.name,(function(e,t){return _.g(e,String(t.messageId)).map((function(n){return n.activitySummary.shares.find((function(e){return t.teamIds.includes(e.toTeamId)}))?e:_.o(e,n.id,Object(Te.a)(Object(Te.a)({},n),{},{activitySummary:Object(Te.a)(Object(Te.a)({},n.activitySummary),{},{shares:n.activitySummary.shares.concat(t.teamIds.map((function(e){return{fromTeamId:t.fromTeamId,toTeamId:e,time:t.sharedDate}})))})}))})).orElse(e)})),cn);function updateMessageFromSave(e,t,n,r){return _.g(e,t.id).map((function(a){return _.o(e,t.id,Object(Te.a)(Object(Te.a)({},a),{},{fromName:t.fromName,fromEmail:t.fromEmail,subject:t.subject||"",snippet:t.snippet||"",toAddresses:t.toAddresses,ccAddresses:t.ccAddresses,bccAddresses:t.bccAddresses,hasAttachment:t.hasAttachment,sentDate:t.sentDate,sender:t.sender,state:null!==r&&void 0!==r?r:a.state,modifiedAt:t.modifiedAt},void 0!==n&&{inInbox:n}))})).orElse(e)}var Fn=Object(ye.a)(Rn,_.e()),Mn=(sn={},Object(r.a)(sn,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(sn,_e.X.name,(function(e,t){return t.setToLoading||_.g(e,t.messageId).isNotLoading()?_.r(e,t.messageId):e})),Object(r.a)(sn,_e.G.name,(function(e,t){return _.o(e,t.details.id,t.details.body,{includeTimestamp:!0})})),Object(r.a)(sn,_e.m.name,(function(e,t){return _.f(e,t.messageId,t.error)})),Object(r.a)(sn,_e.F.name,(function(e,t){return _.b(e,t.messageId)})),Object(r.a)(sn,_e.H.name,(function(e,t){return _.b(e,t.messageId)})),Object(r.a)(sn,_e.I.name,(function(e,t){return _.o(e,t.response.id,{id:t.response.id,html:t.response.bodyHtml||"",text:t.response.bodyText||""},{includeTimestamp:!0})})),Object(r.a)(sn,qe.d.name,(function(e,t){return _.o(e,t.messageId,{id:t.messageId,html:t.clientCopy.body||"",text:""},{includeTimestamp:!0})})),Object(r.a)(sn,_e.D.name,(function(e,t){return _.o(e,t.response.id,{id:t.response.id,html:t.response.bodyHtml||"",text:t.response.bodyText||""},{includeTimestamp:!0})})),Object(r.a)(sn,_e.E.name,(function(e,t){return[t.response.id,"new"].reduce((function(e,n){return _.o(e,n,{id:t.response.id,html:t.response.bodyHtml,text:t.response.bodyText},{includeTimestamp:!0})}),e)})),Object(r.a)(sn,_e.J.name,(function(e,t){return _.o(e,t.response.id,{id:t.response.id,html:t.response.bodyHtml,text:t.response.bodyText},{includeTimestamp:!0})})),Object(r.a)(sn,Pt.b.name,(function(e,t){return _.b(e,t.deletedMessageId)})),Object(r.a)(sn,u.e.name,(function(e){return{entity:e.entity,fetchStatus:e.fetchStatus,error:{},lastLoaded:e.lastLoaded}})),sn),Dn=Object(ye.a)(Mn,_.e()),Ln=(ln={},Object(r.a)(ln,_e.vb.name,(function(){return te.a.loading()})),Object(r.a)(ln,_e.M.name,(function(e,t){return te.a.of(t.response.data)})),Object(r.a)(ln,_e.s.name,(function(e,t){return te.a.ofError({message:t.error.message,status:null})})),Object(r.a)(ln,G.h.name,(function(){return te.a.notLoading()})),ln),Pn=Object(ye.a)(Ln,te.a.notLoading()),Un=(un={},Object(r.a)(un,_e.n.name,(function(e,t){return updateMessageInstance(e,t.messageId,{saveError:t.error})})),Object(r.a)(un,_e.o.name,(function(e,t){return updateMessageInstance(e,t.messageId,{sendError:t.error,sendState:R.s.NOT_SENT})})),Object(r.a)(un,_e.W.name,(function(e,t){return updateMessageInstance(e,t.messageId,{sendError:null,sendState:R.s.SENDING})})),Object(r.a)(un,_e.L.name,(function(e,t){return updateMessageInstance(e,t.messageId,{attachmentsConvertedToLinks:!0})})),Object(r.a)(un,_e.b.name,(function(e,t){return updateMessageInstance(e,t.messageId,{saveError:null})})),Object(r.a)(un,_e.c.name,(function(e,t){return updateMessageInstance(e,t.messageId,{sendError:null})})),Object(r.a)(un,_e.d.name,(function(e,t){return updateMessageInstance(e,t.messageId,{sendError:null})})),Object(r.a)(un,kn.a.name,(function(e,t){return updateMessageInstance(e,t.messageId,{clickedSnippetId:t.id})})),Object(r.a)(un,kn.l.name,(function(e,t){return updateMessageInstance(e,t.messageId,{clickedSnippetId:null})})),Object(r.a)(un,kn.m.name,(function(e,t){return updateMessageInstance(e,t.messageId,{creatingSnippet:te.a.loading()})})),Object(r.a)(un,kn.g.name,(function(e,t){return updateMessageInstance(e,t.messageId,{creatingSnippet:te.a.of(t.response.data)})})),Object(r.a)(un,kn.c.name,(function(e,t){return updateMessageInstance(e,t.messageId,{creatingSnippet:te.a.ofError({message:t.error.message,status:409})})})),Object(r.a)(un,xn.a.name,(function(e,t){return updateMessageInstance(e,t.messageId,{clickedAosAction:t.url})})),Object(r.a)(un,xn.h.name,(function(e,t){return updateMessageInstance(e,t.messageId,{clickedAosAction:null})})),Object(r.a)(un,xn.c.name,(function(e,t){return updateMessageInstance(e,t.messageId,{clickedAosAction:null})})),Object(r.a)(un,Ye.K.name,(function(e,t){var n=e.instances[t.messageId],a=(n?n.addingDocumentIds:[]).concat(t.documentIds);return Object(Te.a)(Object(Te.a)({},e),{},{instances:Object(Te.a)(Object(Te.a)({},e.instances),{},Object(r.a)({},t.messageId,Object(Te.a)(Object(Te.a)(Object(Te.a)({},$n),e.instances[t.messageId]),{},{addingDocumentIds:a})))})})),Object(r.a)(un,Ye.l.name,(function(e,t){var n=e.instances[t.messageId],a=(n?n.addingDocumentIds:[]).filter((function(e){return!t.originalDocumentIds.includes(e)}));return Object(Te.a)(Object(Te.a)({},e),{},{instances:Object(Te.a)(Object(Te.a)({},e.instances),{},Object(r.a)({},t.messageId,Object(Te.a)(Object(Te.a)(Object(Te.a)({},$n),e.instances[t.messageId]),{},{addingDocumentIds:a})))})})),Object(r.a)(un,Ye.a.name,(function(e,t){var n=e.instances[t.messageId],a=(n?n.addingDocumentIds:[]).filter((function(e){return!t.originalDocumentIds.includes(e)}));return Object(Te.a)(Object(Te.a)({},e),{},{instances:Object(Te.a)(Object(Te.a)({},e.instances),{},Object(r.a)({},t.messageId,Object(Te.a)(Object(Te.a)(Object(Te.a)({},$n),e.instances[t.messageId]),{},{addingDocumentIds:a})))})})),Object(r.a)(un,_e.qb.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{currentlyCreatingMessage:!0})})),Object(r.a)(un,Nn.b.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{currentlyCreatingMessage:!1})})),Object(r.a)(un,Nn.a.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{currentlyCreatingMessage:!1})})),Object(r.a)(un,_e.lb.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{currentlyCreatingMessage:!0})})),Object(r.a)(un,_e.E.name,(function(e,t){var n=t.response,a=t.response.id,i={subject:n.subject,body:n.bodyHtml,from:{name:n.fromName,email:n.fromEmail},to:n.toAddresses,cc:n.ccAddresses,bcc:n.bccAddresses,disposable:t.markDisposable,isNew:!0};return Object(Te.a)(Object(Te.a)({},e),{},{instances:Object(Te.a)(Object(Te.a)({},e.instances),{},Object(r.a)({},a,Object(Te.a)(Object(Te.a)(Object(Te.a)({},$n),e.instances[a]),{},{draftClientCopy:i}))),currentlyCreatingMessage:!1})})),Object(r.a)(un,_e.Y.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{nextDraft:void 0})})),Object(r.a)(un,_e.ob.name,(function(e,t){return updateMessageInstance(e,t.messageId,{draftClientCopy:t.clientCopy})})),Object(r.a)(un,_e.pb.name,(function(e,t){return updateMessageInstance(e,t.messageId,{draftClientCopy:t.clientCopy})})),Object(r.a)(un,_e.jb.name,(function(e,t){return updateMessageInstance(e,t.messageId,{draftClientCopy:t.clientCopy})})),Object(r.a)(un,qe.d.name,(function(e,t){return updateMessageInstance(e,t.messageId,{draftClientCopy:t.clientCopy})})),Object(r.a)(un,_e.qb.name,(function(e,t){return updateMessageInstance(e,t.messageId,{draftClientCopy:t.clientCopy,sendState:R.s.SENDING})})),Object(r.a)(un,_e.nb.name,(function(e,t){return updateMessageInstance(e,t.messageId,{currentlyDeleting:!0,edited:!1})})),Object(r.a)(un,_e.Q.name,(function(e,t){return updateMessageInstance(e,t.messageId,{draftClientCopy:t.draft,messageInstanceId:t.messageUuid,edited:!1})})),Object(r.a)(un,_e.Z.name,(function(e,t){return updateMessageInstance(e,t.messageId,{createdFromApi:t.createdFromApi})})),Object(r.a)(un,_e.a.name,(function(e,t){return updateMessageInstance(e,t.messageId,{draftClientCopy:t.clientCopy})})),Object(r.a)(un,_e.x.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{nextDraft:{body:t.bodyHtml}})})),Object(r.a)(un,_e.tb.name,(function(e,t){return updateMessageInstance(e,t.messageId,{draftClientCopy:t.newDraft})})),Object(r.a)(un,_e.K.name,(function(e,t){return t.automaticSignatureSwitcherEnabled?updateMessageInstance(e,t.messageId,{signature:t.response.newUserSignature}):e})),Object(r.a)(un,_e.q.name,(function(e,t){var n=Object(Te.a)(Object(Te.a)({},$n),e.instances[t.messageId]),a=n.draftClientCopy;return a&&(a=Object(Te.a)(Object(Te.a)({},a),{},{from:t.oldFromEmailAddress})),Object(Te.a)(Object(Te.a)({},e),{},{instances:Object(Te.a)(Object(Te.a)({},e.instances),{},Object(r.a)({},t.messageId,Object(Te.a)(Object(Te.a)({},n),{},{draftClientCopy:a})))})})),Object(r.a)(un,_e.J.name,(function(e,t){return updateMessageInstance(e,t.response.id,{sendState:R.s.SENT,edited:!1})})),Object(r.a)(un,_e.e.name,(function(e,t){var n,r=null===(n=e.instances[t.messageId])||void 0===n?void 0:n.draftClientCopy,a=t.draft,i=r?Object(Te.a)(Object(Te.a)({},r),a||{}):null;return updateMessageInstance(e,t.messageId,Object(Te.a)({edited:!0},i&&{draftClientCopy:i}))})),Object(r.a)(un,_e.I.name,(function(e,t){return updateMessageInstance(e,t.response.id,{edited:!1})})),Object(r.a)(un,_e.D.name,(function(e,t){return updateMessageInstance(e,t.response.id,{edited:!1})})),Object(r.a)(un,_e.B.name,(function(e,t){return updateMessageInstance(e,t.response.id,{edited:!1})})),Object(r.a)(un,qe.b.name,(function(e,t){return updateMessageInstance(e,t.response.id,{edited:!1})})),Object(r.a)(un,_e.kb.name,(function(e,t){return updateMessageInstance(e,t.messageId,{sendState:R.s.NOT_SENT})})),Object(r.a)(un,_e.l.name,(function(e,t){return updateMessageInstance(e,t.messageId,{sendState:R.s.SENT})})),un);function updateMessageInstance(e,t,n){return Object(Te.a)(Object(Te.a)({},e),{},{instances:Object(Te.a)(Object(Te.a)({},e.instances),{},Object(r.a)({},t,Object(Te.a)(Object(Te.a)(Object(Te.a)({},$n),e.instances[t]),n)))})}var Bn,Hn,Gn,Wn,zn,Vn,Jn,Yn,qn,Kn,Xn,Qn,Zn={instances:{},currentlyCreatingMessage:!1,nextDraft:void 0},$n={saveError:null,sendError:null,clickedSnippetId:null,clickedAosAction:null,creatingSnippet:te.a.notLoading(),addingDocumentIds:[],currentlyDeleting:!1,sendState:R.s.NOT_SENT,messageInstanceId:"",createdFromApi:!1,attachmentsConvertedToLinks:!1,edited:!1,signature:null},er=Object(ye.a)(Un,Zn),tr=n(48),nr=n(52),rr=n(57),ar=n(77),ir=n(49),cr=(Bn={},Object(r.a)(Bn,N.k.name,(function(e,t){return _.o(e,Object(ar.a)(t.search),t.count)})),Object(r.a)(Bn,N.q.name,(function(e,t){return t.setMetaToLoading?_.r(e,Object(ar.a)(t.search)):e})),Object(r.a)(Bn,G.e.name,(function(e,t){return t.resetMeta?_.e():e})),Object(r.a)(Bn,_e.C.name,(function(e,t){var n=sr(e,t);return Object(_.q)(e,n)})),Object(r.a)(Bn,_e.O.name,(function(e,t){var n=sr(e,t);return Object(_.q)(e,n)})),Object(r.a)(Bn,N.g.name,(function(e,t){return _.f(e,Object(ar.a)(t.search),t.error)})),Object(r.a)(Bn,N.f.name,(function(e,t){return _.f(e,Object(ar.a)(t.search),t.error)})),Object(r.a)(Bn,N.j.name,(function(e,t){var n,r=Object(ar.a)(t.search),a={total:t.result.meta.total,exact:null===(n=t.result.meta.exact)||void 0===n||n},i=_.g(e,r).map((function(e){return!e.exact||a.exact||t.setMetaToLoading?a:e}));return _.o(e,r,i.orElse(a))})),Object(r.a)(Bn,N.i.name,(function(e,t){return t.count<rr.d?_.o(e,Object(ar.a)(t.search),{total:t.topicIds.length+t.messageIds.length,exact:!0}):_.o(e,Object(ar.a)(t.search),{total:t.count,exact:t.exact})})),Object(r.a)(Bn,_e.F.name,(function(e,t){return _.g(e,Object(ar.a)(t.search)).map((function(n){return _.o(e,Object(ar.a)(t.search),{total:n.exact?Math.max(0,n.total-1):n.total,exact:n.exact})})).orElse(e)})),Object(r.a)(Bn,_e.z.name,(function(e,t){return _.g(e,Object(ar.a)(t.search)).map((function(n){return _.o(e,Object(ar.a)(t.search),{total:n.exact?Math.max(0,n.total-t.messageIds.length):n.total,exact:n.exact})})).orElse(e)})),Object(r.a)(Bn,_e.H.name,(function(e,t){return _.g(e,Object(ar.a)(t.search)).map((function(n){return _.o(e,Object(ar.a)(t.search),{total:n.exact?Math.max(0,n.total-1):n.total,exact:n.exact})})).orElse(e)})),Object(r.a)(Bn,tr.t.name,(function(){return _.e()})),Object(r.a)(Bn,u.e.name,(function(){return _.e()})),Object(r.a)(Bn,N.c.name,(function(e,t){return _.r(e,Object(ar.a)(t.search))})),Bn),sr=function updateCount(e,t){var n=_.i(e);return t.searchesToUpdate.forEach((function(e){var t=n[Object(ar.a)(e)];if(t){var r=t.exact,a=t.total;n[Object(ar.a)(e)]={total:r?a>0?a-1:0:a,exact:r}}else n[Object(ar.a)(e)]={total:0,exact:!0}})),n},lr=Object(ye.a)(cr,_.e()),ur=(Hn={},Object(r.a)(Hn,N.o.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{lastListScrollPosition:{messageId:t.id?t.id:e.lastListScrollPosition.messageId,scrollPosition:void 0!==t.scrollTop?t.scrollTop:e.lastListScrollPosition.scrollPosition,absoluteTop:t.absoluteTop?t.absoluteTop:e.lastListScrollPosition.absoluteTop}})})),Object(r.a)(Hn,N.d.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{lastListScrollPosition:{messageId:void 0,scrollPosition:void 0,absoluteTop:void 0}})})),Object(r.a)(Hn,N.n.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{highlightMessageId:t.id})})),Object(r.a)(Hn,N.b.name,(function(e,t){return e.highlightMessageId?Object(Te.a)(Object(Te.a)({},e),{},{highlightMessageId:void 0}):e})),Object(r.a)(Hn,N.s.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{selectedItems:[].concat(Object(we.a)(e.selectedItems),[t.item])})})),Object(r.a)(Hn,N.v.name,(function(e,t){var n=e.selectedItems.filter((function(e){return!(e.id===t.item.id&&e.type===t.item.type)}));return Object(Te.a)(Object(Te.a)({},e),{},{selectedItems:n})})),Object(r.a)(Hn,N.a.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{selectedItems:[]})})),Object(r.a)(Hn,N.m.name,(function(e,t){var n=Object(nr.k)(e.selectedItems.concat(t.items),(function(e){return e.id+"-"+e.type}));return Object(Te.a)(Object(Te.a)({},e),{},{selectedItems:n})})),Object(r.a)(Hn,N.q.name,(function(e,t){return t.listType===R.j.LIST&&t.trigger!==R.i.AUTO_REFRESH?Object(Te.a)(Object(Te.a)({},e),{},{listLoading:R.k.LOADING}):e})),Object(r.a)(Hn,N.j.name,(function(e,t){return t.listType===R.j.LIST&&t.trigger!==R.i.AUTO_REFRESH?Object(Te.a)(Object(Te.a)({},e),{},{listLoading:R.k.LOADED}):e})),Object(r.a)(Hn,N.g.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{listLoading:R.k.NOT_LOADING,listError:t.error})})),Object(r.a)(Hn,N.t.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{showFullBucketInInbox:t.showFullBucket})})),Object(r.a)(Hn,ir.N.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{listLoading:R.k.LOADING,listError:null})})),Object(r.a)(Hn,ir.L.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{listLoading:R.k.LOADING,listError:null})})),Object(r.a)(Hn,ir.G.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{listLoading:R.k.LOADED,listError:null})})),Object(r.a)(Hn,ir.A.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{listLoading:R.k.LOADED,listError:null})})),Object(r.a)(Hn,ir.n.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{listLoading:R.k.NOT_LOADING,listError:t.error})})),Object(r.a)(Hn,ir.g.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{listLoading:R.k.NOT_LOADING,listError:t.error})})),Hn),dr=Object(ye.a)(ur,{listLoading:R.k.NOT_LOADING,listError:null,selectedItems:[],lastListScrollPosition:{messageId:void 0,scrollPosition:void 0},highlightMessageId:void 0,showFullBucketInInbox:!1}),fr=n(76),br=n(129),pr=n(194),mr=(Gn={},Object(r.a)(Gn,fr.j.name,(function(e,t){return _.o(e,_.a,t.filters)})),Object(r.a)(Gn,fr.f.name,(function(e,t){var n=_.g(e,_.a).orElse([]).concat([t.filter]);return _.o(e,_.a,n)})),Object(r.a)(Gn,fr.i.name,(function(e,t){return _.t(e,(function(){return t.bookmarks.concat(t.taggedBookmarks)}),(function(e){return e!==t.bookmarks}))})),Object(r.a)(Gn,fr.h.name,(function(e,t){var n=_.g(e,_.a).orElse([]).map((function(e){return e.id===t.id?Object(Te.a)(Object(Te.a)({},e),{},{filterSet:t.filterSet,name:t.name}):e}));return _.o(e,_.a,n)})),Object(r.a)(Gn,fr.n.name,(function(e,t){return _.o(e,_.a,_.g(e,_.a).orElse([]).filter((function(e){return e.id!==t.savedSearchId})))})),Object(r.a)(Gn,fr.r.name,(function(e,t){return _.o(e,_.a,_.g(e,_.a).orElse([]).filter((function(e){return e.id!==t.filter.id})))})),Object(r.a)(Gn,fr.d.name,(function(e,t){return _.o(e,_.a,_.g(e,_.a).orElse([]).concat(t.filter).sort(Object(Pe.a)((function(e){return e.id}))))})),Object(r.a)(Gn,fr.t.name,(function(e,t){return _.o(e,_.a,_.g(e,_.a).orElse([]).filter((function(e){return e.id!==t.filter.id})))})),Object(r.a)(Gn,fr.s.name,(function(e,t){var n=_.g(e,_.a).orElse([]).map((function(e){return e.id===t.id?Object(Te.a)(Object(Te.a)({},e),{},{isSubscribed:t.isSubscribed}):e}));return _.o(e,_.a,n)})),Object(r.a)(Gn,fr.e.name,(function(e,t){var n=_.g(e,_.a).orElse([]).map((function(e){return e.id===t.id?Object(Te.a)(Object(Te.a)({},e),{},{isSubscribed:!e.isSubscribed}):e}));return _.o(e,_.a,n)})),Object(r.a)(Gn,pr.d.name,(function(e,t){var n=_.g(e,_.a).orElse([]).map((function(e){var n,r,a,i;return e.id===t.savedSearchId?Object(Te.a)(Object(Te.a)({},e),{},{shares:{userIds:[].concat(Object(we.a)(null!==(n=null===(r=e.shares)||void 0===r?void 0:r.userIds)&&void 0!==n?n:[]),Object(we.a)(t.userIds)),teamIds:Object(we.a)(null!==(a=null===(i=e.shares)||void 0===i?void 0:i.teamIds)&&void 0!==a?a:[])}}):e}));return _.o(e,_.a,n)})),Object(r.a)(Gn,pr.c.name,(function(e,t){var n=_.g(e,_.a).orElse([]).map((function(e){var n,r,a,i;return e.id===t.savedSearchId?Object(Te.a)(Object(Te.a)({},e),{},{shares:{userIds:Object(we.a)(null!==(n=null===(r=e.shares)||void 0===r?void 0:r.userIds)&&void 0!==n?n:[]),teamIds:[].concat(Object(we.a)(null!==(a=null===(i=e.shares)||void 0===i?void 0:i.teamIds)&&void 0!==a?a:[]),Object(we.a)(t.teamIds))}}):e}));return _.o(e,_.a,n)})),Object(r.a)(Gn,pr.b.name,(function(e,t){var n=_.g(e,_.a).orElse([]).map((function(e){var n,r,a,i;return e.id===t.savedSearchId?Object(Te.a)(Object(Te.a)({},e),{},{shares:{userIds:Object(we.a)((null!==(n=null===(r=e.shares)||void 0===r?void 0:r.userIds)&&void 0!==n?n:[]).filter((function(e){return!t.userIds.includes(e)}))),teamIds:Object(we.a)(null!==(a=null===(i=e.shares)||void 0===i?void 0:i.teamIds)&&void 0!==a?a:[])}}):e}));return _.o(e,_.a,n)})),Object(r.a)(Gn,pr.a.name,(function(e,t){var n=_.g(e,_.a).orElse([]).map((function(e){var n,r,a,i;return e.id===t.savedSearchId?Object(Te.a)(Object(Te.a)({},e),{},{shares:{userIds:Object(we.a)(null!==(n=null===(r=e.shares)||void 0===r?void 0:r.userIds)&&void 0!==n?n:[]),teamIds:Object(we.a)((null!==(a=null===(i=e.shares)||void 0===i?void 0:i.teamIds)&&void 0!==a?a:[]).filter((function(e){return!t.teamIds.includes(e)})))}}):e}));return _.o(e,_.a,n)})),Gn),hr=Object(ye.a)(mr,_.e()),gr=(Wn={},Object(r.a)(Wn,fr.g.name,(function(e,t){var n={id:t.id,bucketName:t.name,bucketType:br.g.SAVED_SEARCH,bucketSearchQuery:t.query,isSubscribed:!!t.isSubscribed,canSubscribe:t.canSubscribe};return t.isBucket?_.v(e,_.a,n,(function(e){return e.id})):_.c(e,(function(e){return e.id===t.id}))})),Object(r.a)(Wn,fr.j.name,(function(e,t){return _.o(e,_.a,t.buckets)})),Object(r.a)(Wn,fr.c.name,(function(e,t){return _.f(e,t.id,t.error)})),Object(r.a)(Wn,fr.s.name,(function(e,t){return _.u(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{isSubscribed:t.isSubscribed})}),(function(e){return e.id===t.id}))})),Object(r.a)(Wn,fr.e.name,(function(e,t){var n=_.g(e,_.a).orElse([]).map((function(e){return e.id===t.id?Object(Te.a)(Object(Te.a)({},e),{},{isSubscribed:!e.isSubscribed}):e}));return _.o(e,_.a,n)})),Object(r.a)(Wn,fr.h.name,(function(e,t){var n=_.g(e,_.a).orElse([]).map((function(e){return e.id===t.id?Object(Te.a)(Object(Te.a)({},e),{},{bucketName:t.name,bucketSearchQuery:t.bucketSearchQuery}):e}));return _.o(e,_.a,n)})),Wn),jr=Object(ye.a)(gr,_.e()),vr=(zn={},Object(r.a)(zn,N.h.name,(function(e,t){return _.o(e,Object(ar.a)(t.search),{id:Object(ar.a)(t.search),count:t.count,exact:t.exact})})),Object(r.a)(zn,N.e.name,(function(e,t){return _.f(e,Object(ar.a)(t.search),t.error)})),Object(r.a)(zn,fr.b.name,(function(){return _.e()})),zn),Or=Object(ye.a)(vr,_.e()),Tr=(Vn={},Object(r.a)(Vn,fr.k.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{id:t.id})})),Object(r.a)(Vn,fr.f.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{id:t.filter.id})})),Object(r.a)(Vn,fr.a.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{id:null})})),Vn),yr=Object(ye.a)(Tr,{id:null}),Sr=n(169),Cr=n(251),Ar=(Jn={},Object(r.a)(Jn,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(Jn,tr.m.name,(function(e,t){return _.o(e,t.response.data.id,t.response.data)})),Object(r.a)(Jn,tr.a.name,(function(e,t){return _.f(e,t.topicId,t.error)})),Object(r.a)(Jn,tr.t.name,(function(e,t){return _.o(e,t.response.data.id,Object(Te.a)(Object(Te.a)({},t.response.data),{},{relationships:Object(Te.a)(Object(Te.a)({},t.response.data.relationships),{},{job_reference:t.response.data.relationships.job_reference?t.response.data.relationships.job_reference:{data:[]},category_tag:t.response.data.relationships.category_tag?t.response.data.relationships.category_tag:{data:[]}})}))})),Object(r.a)(Jn,tr.x.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Object(Te.a)(Object(Te.a)({},n),{},{attributes:Object(Te.a)(Object(Te.a)({},n.attributes),{},{subject:t.topicSubject,modified:t.response.data.attributes.modified,version:t.response.data.attributes.version})}))})).orElse(e)})),Object(r.a)(Jn,tr.A.name,(function(e,t){return _.o(e,t.response.data.id,Object(Te.a)(Object(Te.a)({},t.response.data),{},{relationships:Object(Te.a)(Object(Te.a)({},t.response.data.relationships),{},{job_reference:t.response.data.relationships.job_reference?t.response.data.relationships.job_reference:{data:[]},category_tag:t.response.data.relationships.category_tag?t.response.data.relationships.category_tag:{data:[]}})}))})),Object(r.a)(Jn,tr.db.name,(function(e,t){return _.b(e,t.topicId)})),Object(r.a)(Jn,tr.h.name,(function(e,t){var n=new Set(t.response.data.map((function(e){return e.id})));return _.g(e,t.topicId).map((function(r){return _.o(e,t.topicId,Object(Te.a)(Object(Te.a)({},r),{},{relationships:Object(Te.a)(Object(Te.a)({},r.relationships),{},{follower:Object(Te.a)(Object(Te.a)({},r.relationships.follower),{},{data:[].concat(Object(we.a)(r.relationships.follower.data.filter((function(e){return!n.has(e.id)}))),Object(we.a)(t.response.data))})})}))})).orElse(e)})),Object(r.a)(Jn,tr.l.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Object(Te.a)(Object(Te.a)({},n),{},{relationships:Object(Te.a)(Object(Te.a)({},n.relationships),{},{follower:{data:n.relationships.follower.data.filter((function(e){return e.id!==t.followerId}))}})}))})).orElse(e)})),Object(r.a)(Jn,tr.r.name,(function(e,t){var n=t.isByCurrentUser?Sr.a.addCommentByCurrentUser:Sr.a.addComment;return _.g(e,t.topicId).map((function(r){return _.o(e,t.topicId,n(r,t.response.data))})).orElse(e)})),Object(r.a)(Jn,tr.z.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Object(Te.a)(Object(Te.a)({},n),{},{relationships:Object(Te.a)(Object(Te.a)({},n.relationships),{},{read_by:Object(Te.a)(Object(Te.a)({},n.relationships.read_by),{},{data:[].concat(Object(we.a)((n.relationships.read_by?n.relationships.read_by.data:[]).filter((function(e){return e.id!==t.userId}))),[{type:"read_by",id:t.userId,meta:{version:t.orderingId.stringValue,read_at:Xe()().format(Dt.a)}}])})})}))})).orElse(e)})),Object(r.a)(Jn,tr.s.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Object(Te.a)(Object(Te.a)({},n),{},{relationships:Object(Te.a)(Object(Te.a)({},n.relationships),{},{topic_comment:Object(Te.a)(Object(Te.a)({},n.relationships.topic_comment),{},{meta:Object(Te.a)(Object(Te.a)({},n.relationships.topic_comment.meta),{},{version_read_up_to:t.orderingId.stringValue})})})}))})).orElse(e)})),Object(r.a)(Jn,N.j.name,(function(e,t){return _.p(e,t.topics,(function(e){return e.id}))})),Object(r.a)(Jn,tr.X.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Sr.a.store(n,[{type:"user",id:t.userId,meta:{stored_at:Xe()().format(Dt.a)}}]))})).orElse(e)})),Object(r.a)(Jn,tr.e.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Sr.a.unstore(n,[t.userId]))})).orElse(e)})),Object(r.a)(Jn,tr.ab.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Sr.a.unstore(n,[t.userId]))})).orElse(e)})),Object(r.a)(Jn,tr.f.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Sr.a.unstore(n,[t.userId]))})).orElse(e)})),Object(r.a)(Jn,tr.O.name,(function(e,t){return t.topicIds.map((function(t){return _.g(e,t)})).reduce((function(n,r){return r.map((function(n){return _.o(e,n.id,Sr.a.store(n,[{type:"user",id:t.userId,meta:{stored_at:Xe()().format(Dt.a)}}]))})).orElse(n)}),e)})),Object(r.a)(Jn,tr.b.name,(function(e,t){return t.topicIds.map((function(t){return _.g(e,t)})).reduce((function(n,r){return r.map((function(n){return _.o(e,n.id,Sr.a.unstore(n,[t.userId]))})).orElse(n)}),e)})),Object(r.a)(Jn,tr.P.name,(function(e,t){return t.topicIds.map((function(t){return _.g(e,t)})).reduce((function(n,r){return r.map((function(n){return _.o(e,n.id,Sr.a.unstore(n,[t.userId]))})).orElse(n)}),e)})),Object(r.a)(Jn,tr.c.name,(function(e,t){return t.topicIds.map((function(t){return _.g(e,t)})).reduce((function(n,r){return r.map((function(n){return _.o(e,n.id,Sr.a.unstore(n,[t.userId]))})).orElse(n)}),e)})),Object(r.a)(Jn,u.e.name,(function(e){return{entity:e.entity,fetchStatus:e.fetchStatus,error:{},lastLoaded:e.lastLoaded}})),Object(r.a)(Jn,tr.g.name,(function(e,t){return _.b(e,t.topicId)})),Object(r.a)(Jn,tr.w.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Object(Te.a)(Object(Te.a)({},n),{},{attributes:Object(Te.a)({},t.response.data.attributes)}))})).orElse(e)})),Object(r.a)(Jn,tr.j.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Object(Te.a)(Object(Te.a)({},n),{},{relationships:Object(Te.a)(Object(Te.a)({},n.relationships),{},{category_tag:Object(Te.a)(Object(Te.a)({},n.relationships.category_tag),{},{data:[].concat(Object(we.a)(n.relationships.category_tag.data),[{id:t.categoryTagId,type:"category_tag"}])})})}))})).orElse(e)})),Object(r.a)(Jn,tr.k.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Object(Te.a)(Object(Te.a)({},n),{},{relationships:Object(Te.a)(Object(Te.a)({},n.relationships),{},{category_tag:{data:n.relationships.category_tag.data.filter((function(e){return e.id!==t.categoryTagId}))}})}))})).orElse(e)})),Object(r.a)(Jn,tr.u.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Object(Te.a)(Object(Te.a)({},n),{},{relationships:Object(Te.a)(Object(Te.a)({},n.relationships),{},{job_reference:Object(Te.a)(Object(Te.a)({},n.relationships.job_reference),{},{data:[].concat(Object(we.a)(n.relationships.job_reference.data),[{id:t.jobReferenceId,type:"job_reference"}])})})}))})).orElse(e)})),Object(r.a)(Jn,tr.v.name,(function(e,t){return _.g(e,t.topicId).map((function(n){return _.o(e,t.topicId,Object(Te.a)(Object(Te.a)({},n),{},{relationships:Object(Te.a)(Object(Te.a)({},n.relationships),{},{job_reference:{data:n.relationships.job_reference.data.filter((function(e){return e.id!==t.jobReferenceId}))}})}))})).orElse(e)})),Jn),Er=Object(ye.a)(Ar,_.e()),wr=(Yn={},Object(r.a)(Yn,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(Yn,tr.B.name,(function(e,t){return _.r(e,t.topicId)})),Object(r.a)(Yn,tr.m.name,(function(e,t){var n=t.response.included.find((function(e){return"topic_body"===e.type}));return n?_.o(e,n.id,n):e})),Object(r.a)(Yn,tr.t.name,(function(e,t){var n=t.response.included.find((function(e){return"topic_body"===e.type}));return n?_.o(e,n.id,n):e})),Object(r.a)(Yn,tr.a.name,(function(e,t){return _.f(e,t.topicId,t.error)})),Object(r.a)(Yn,tr.eb.name,(function(e,t){return _.b(e,t.topicId)})),Object(r.a)(Yn,tr.db.name,(function(e,t){return _.b(e,t.topicId)})),Object(r.a)(Yn,tr.x.name,(function(e,t){var n={type:"topic_body",id:t.response.data.id,attributes:{body:t.topicBody}};return _.o(e,n.id,n)})),Object(r.a)(Yn,u.e.name,(function(e){return{entity:e.entity,fetchStatus:e.fetchStatus,error:{},lastLoaded:e.lastLoaded}})),Yn),_r=Object(ye.a)(wr,_.e()),Ir=(qn={},Object(r.a)(qn,N.q.name,(function(e,t){return t.setMetaToLoading?_.e():e})),Object(r.a)(qn,tr.m.name,(function(e,t){var n=t.response.included.filter((function(e){return"topic_comment"===e.type}));return _.p(e,n,(function(e){return e.id}))})),Object(r.a)(qn,tr.t.name,(function(e,t){var n=t.response.included.filter((function(e){return"topic_comment"===e.type}));return _.p(e,n,(function(e){return e.id}))})),Object(r.a)(qn,tr.r.name,(function(e,t){return _.o(e,t.response.data.id,t.response.data)})),Object(r.a)(qn,u.e.name,(function(e){return{entity:e.entity,fetchStatus:e.fetchStatus,error:{},lastLoaded:e.lastLoaded}})),qn),xr=Object(ye.a)(Ir,_.e()),kr=(Kn={},Object(r.a)(Kn,tr.S.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{disposable:!0})})),Object(r.a)(Kn,tr.W.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{currentlySaving:!0})})),Object(r.a)(Kn,tr.x.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{disposable:!1,currentlySaving:!1,topicChanged:!1})})),Object(r.a)(Kn,tr.d.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{currentlySaving:!1,topicChanged:!0})})),Object(r.a)(Kn,tr.cb.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{topicChanged:t.value})})),Object(r.a)(Kn,Cr.h.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{uploadingAttachment:!0})})),Object(r.a)(Kn,Ye.L.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{uploadingAttachment:!0,topicChanged:!0})})),Object(r.a)(Kn,Ye.m.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{topicChanged:!0})})),Object(r.a)(Kn,Ye.b.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{uploadingAttachment:!1})})),Object(r.a)(Kn,Cr.b.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{uploadingAttachment:!1})})),Object(r.a)(Kn,Cr.c.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{uploadingAttachment:!1,topicChanged:!0})})),Object(r.a)(Kn,Cr.a.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{uploadingAttachment:!1})})),Kn),Nr=Object(ye.a)(kr,{currentlySaving:!1,uploadingAttachment:!1,topicChanged:!1,disposable:!1}),Rr=(Xn={},Object(r.a)(Xn,N.j.name,(function(e,t){return _.q(e,t.topics.reduce((function(e,t){return e[t.id]=t.relationships.topic_team.data.map((function(e){return e.id})),e}),{}))})),Object(r.a)(Xn,tr.i.name,(function(e,t){return _.o(e,t.topicId,t.response.data.map((function(e){return e.id})))})),Object(r.a)(Xn,tr.y.name,(function(e,t){return _.o(e,t.topicId,t.response.data.map((function(e){return e.id})))})),Object(r.a)(Xn,tr.m.name,(function(e,t){return _.o(e,t.response.data.id,t.response.data.relationships.topic_team.data.map((function(e){return e.id})))})),Object(r.a)(Xn,tr.t.name,(function(e,t){return _.o(e,t.response.data.id,t.response.data.relationships.topic_team.data.map((function(e){return e.id})))})),Xn),Fr=Object(ye.a)(Rr,_.e()),Mr=_.e(),Dr=(Qn={},Object(r.a)(Qn,tr.m.name,(function(e,t){return _.p(e,getAttachmentResources(t.response),(function(e){return e.id}))})),Object(r.a)(Qn,tr.t.name,(function(e,t){return _.p(e,getAttachmentResources(t.response),(function(e){return e.id}))})),Object(r.a)(Qn,Cr.f.name,(function(e,t){var n=t.file,r=topic_attachment_reducers_getFileId(t.topicId,n),a={id:r,topicId:t.topicId,hash:"uploading",name:n.name,size:n.size,type:"attachment"};return _.o(e,r,a)})),Object(r.a)(Qn,Ye.m.name,(function(e,t){return _.p(e,t.topicAttachments,(function(e){return e.id}))})),Object(r.a)(Qn,Cr.c.name,(function(e,t){var n=topic_attachment_reducers_getFileId(t.topicId,t.file),r=t.response[0];return _.o(_.b(e,n),r.id,r)})),Object(r.a)(Qn,Cr.d.name,(function(e,t){return _.b(e,t.topicAttachmentId)})),Qn);function topic_attachment_reducers_getFileId(e,t){return e+t.name+t.size}function getAttachmentResources(e){return e.included.filter((function(e){return"topic_attachment"===e.type})).map((function(e){return Object(Te.a)({id:e.id},e.attributes)}))}var Lr,Pr=Object(ye.a)(Dr,Mr),Ur=n(25),Br=_.e(),Hr=(Lr={},Object(r.a)(Lr,tr.m.name,(function(e,t){return _.o(e,t.response.data.id,function getCategoryTagFromRelationship(e){var t=e.data,n=t.id,r=t.relationships,a=e.included.filter((function(e){return"category_tag"===e.type}));return Ur.a.mapOptional((function(e){return Ur.a.ofNull(a.find((function(t){return t.id===e.id}))).map((function(t){var r=t.attributes,a=r.label,i=r.name;return{parentId:n,relationshipId:e.id,tagId:"-1",label:a||i}}))}),r.category_tag.data)}(t.response))})),Object(r.a)(Lr,N.j.name,(function(e,t){return _.q(e,t.topics.reduce((function(e,n){return e[n.id]=function getCategoryTagsFromSearch(e,t){var n=t.filter((function(e){return"category_tag"===e.type}));return Ur.a.mapOptional((function(t){return Ur.a.ofNull(n.find((function(e){return e.id===t.id}))).map((function(n){var r=n.attributes,a=r.name,i=r.label;return{parentId:e.id,relationshipId:t.id,tagId:"-1",label:i||a}}))}),e.relationships.category_tag.data)}(n,t.result.included),e}),{}))})),Object(r.a)(Lr,tr.j.name,(function(e,t){return _.v(e,t.topicId,{parentId:t.topicId,relationshipId:t.categoryTagId,tagId:t.tagId,label:t.label},(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(r.a)(Lr,tr.n.name,(function(e,t){return _.x(e,t.response.topicCategoryTags.reduce((function(e,t){return e[t.topicId]=[{parentId:t.topicId,relationshipId:t.categoryTagId,label:t.label,tagId:t.tagId||"null"}],e}),{}),(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(r.a)(Lr,tr.k.name,(function(e,t){return _.c(e,(function(e){return e.relationshipId===t.categoryTagId&&e.parentId===t.topicId}))})),Object(r.a)(Lr,tr.o.name,(function(e,t){return _.c(e,(function(e){return e.relationshipId===t.categoryTagId&&t.topicIds.includes(e.parentId)}))})),Lr);var Gr,Wr=Object(ye.a)(Hr,Br),zr=_.e(),Vr=(Gr={},Object(r.a)(Gr,tr.m.name,(function(e,t){return _.o(e,t.response.data.id,function getJobReferenceFromRelationship(e){var t=e.data,n=t.id,r=t.relationships,a=e.included.filter((function(e){return"job_reference"===e.type}));return Ur.a.mapOptional((function(e){return Ur.a.ofNull(a.find((function(t){return t.id===e.id}))).map((function(t){return{parentId:n,relationshipId:e.id,tagId:"-1",label:t.attributes.name}}))}),r.job_reference.data)}(t.response))})),Object(r.a)(Gr,N.j.name,(function(e,t){return _.q(e,t.topics.reduce((function(e,n){return e[n.id]=function getJobReferenceFromSearch(e,t){var n=t.filter((function(e){return"job_reference"===e.type}));return Ur.a.mapOptional((function(t){return Ur.a.ofNull(n.find((function(e){return e.id===t.id}))).map((function(n){return{parentId:e.id,relationshipId:t.id,tagId:"-1",label:n.attributes.name}}))}),e.relationships.job_reference.data)}(n,t.result.included),e}),{}))})),Object(r.a)(Gr,tr.u.name,(function(e,t){var n;return _.v(e,t.topicId,{parentId:t.topicId,relationshipId:t.jobReferenceId,tagId:null!==(n=t.tagId)&&void 0!==n?n:"null",label:t.label},(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(r.a)(Gr,tr.v.name,(function(e,t){return _.c(e,(function(e){return e.relationshipId===t.jobReferenceId&&e.parentId===t.topicId}))})),Object(r.a)(Gr,tr.p.name,(function(e,t){return _.x(e,t.response.topicJobReferenceTags.reduce((function(e,t){return e[t.topicId]=[{parentId:t.topicId,relationshipId:t.jobReferenceId,label:t.name,tagId:t.tagId||"null"}],e}),{}),(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(r.a)(Gr,tr.q.name,(function(e,t){return _.c(e,(function(e){return e.relationshipId===t.jobReferenceId&&t.topicIds.includes(e.parentId)}))})),Gr);var Jr,Yr,qr,Kr,Xr,Qr,Zr,$r,ea,ta,na,ra,aa,ia,oa,ca,sa,la,ua,da,fa,ba,pa,ma=Object(ye.a)(Vr,zr),ha=n(86),ga=n(174),ja=(Jr={},Object(r.a)(Jr,ir.I.name,(function(e,t){return _.r(e,t.id)})),Object(r.a)(Jr,ir.M.name,(function(e,t){return _.r(e,t.id)})),Object(r.a)(Jr,ir.t.name,(function(e,t){return _.o(e,t.response.data.id,t.response.data)})),Object(r.a)(Jr,ir.p.name,(function(e,t){return _.o(e,t.id,t.response.data)})),Object(r.a)(Jr,ir.c.name,(function(e,t){return _.f(e,t.id,t.error)})),Object(r.a)(Jr,ir.w.name,(function(e,t){return _.p(e,t.response.included,(function(e){return e.id}))})),Object(r.a)(Jr,ir.o.name,(function(e,t){return _.p(e,t.response.data,(function(e){return e.id}))})),Object(r.a)(Jr,ir.s.name,(function(e,t){return _.o(e,t.response.data.id,t.response.data)})),Object(r.a)(Jr,ir.C.name,(function(e,t){return _.p(e,t.contacts,(function(e){return e.id}))})),Object(r.a)(Jr,ir.q.name,(function(e,t){return _.o(e,t.contact.id,Object(Te.a)(Object(Te.a)({},t.contact),{},{attributes:Object(Te.a)(Object(Te.a)({},t.contact.attributes),{},{emailAddresses:[].concat(Object(we.a)(t.contact.attributes.emailAddresses),[t.email])})}))})),Object(r.a)(Jr,ir.G.name,(function(e,t){return _.p(e,t.response,(function(e){return e.id}))})),Object(r.a)(Jr,ir.F.name,(function(e,t){return _.b(e,t.id)})),Object(r.a)(Jr,ir.m.name,(function(e,t){return _.o(e,t.id,t.oldContactDetails)})),Object(r.a)(Jr,ir.u.name,(function(e,t){return _.b(e,t.contactId)})),Jr),va=function removeFrom(e,t){return new Set(Object(we.a)(e).filter((function(e){return e!==t})))},Oa=function addTo(e,t){return Object(we.a)(e).find((function(e){return e===t}))?e:new Set([].concat(Object(we.a)(e),[t]))},Ta=(Yr={},Object(r.a)(Yr,ir.X.name,(function(e,t){return _.r(e,t.name)})),Object(r.a)(Yr,ir.C.name,(function(e,t){return _.o(e,t.name,t.contacts.map((function(e){return Object(ga.d)(e)})))})),Object(r.a)(Yr,ir.j.name,(function(e,t){return _.f(e,t.name,t.error)})),Object(r.a)(Yr,ir.a.name,(function(){return _.e()})),Yr),ya=Object(ye.a)(Ta,_.e()),Sa=Object(ye.a)(ja,_.e()),Ca=function(){var e,t=function update(e,t,n){return _.o(e,_.a,t.reduce(n,_.g(e,_.a).orElse({muted:new Set,muting:new Set,unMuting:new Set})))},n=(e={},Object(r.a)(e,ir.H.name,(function(e,n){return t(e,n.mutedContacts,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{muted:Oa(e.muted,t)})}))})),Object(r.a)(e,ir.W.name,(function(e,n){return t(e,n.mutedContacts,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{muted:va(e.muted,t),muting:Oa(e.muting,t)})}))})),Object(r.a)(e,ir.B.name,(function(e,n){return t(e,n.mutedContacts,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{muted:Oa(e.muted,t),muting:va(e.muting,t)})}))})),Object(r.a)(e,ir.i.name,(function(e,n){return t(e,n.mutedContacts,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{muting:va(e.muting,t)})}))})),Object(r.a)(e,ir.Z.name,(function(e,n){return t(e,n.mutedContacts,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{muted:va(e.muted,t),unMuting:Oa(e.unMuting,t)})}))})),Object(r.a)(e,ir.E.name,(function(e,n){return t(e,n.mutedContacts,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{unMuting:va(e.unMuting,t)})}))})),Object(r.a)(e,ir.l.name,(function(e,n){return t(e,n.mutedContacts,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{muted:Oa(e.muted,t),unMuting:va(e.unMuting,t)})}))})),e);return Object(ye.a)(n,_.e())}(),Aa=function(){var e,t=(e={},Object(r.a)(e,ir.H.name,(function(e,t){return _.p(e,t.followedContacts,(function(e){return e}))})),Object(r.a)(e,ir.T.name,(function(e,t){return _.r(e,t.followedContactId)})),Object(r.a)(e,ir.v.name,(function(e,t){return _.p(e,t.response.data.map((function(e){return e.id})),(function(e){return e}))})),Object(r.a)(e,ir.e.name,(function(e,t){return _.f(e,t.followedContactId,t.error)})),Object(r.a)(e,ir.Y.name,(function(e,t){return _.r(e,t.unFollowedContactId)})),Object(r.a)(e,ir.D.name,(function(e,t){return _.b(e,t.unFollowedContactId)})),Object(r.a)(e,ir.k.name,(function(e,t){return _.f(e,t.unFollowedContactId,t.error)})),e);return Object(ye.a)(t,_.e())}(),Ea=(qr={},Object(r.a)(qr,ir.K.name,(function(e,t){return _.r(e,t.id)})),Object(r.a)(qr,ir.w.name,(function(e,t){return _.o(e,t.response.data.id,t.response.data)})),Object(r.a)(qr,ir.f.name,(function(e,t){return _.f(e,t.id,t.error)})),Object(r.a)(qr,ir.A.name,(function(e,t){return _.p(e,t.response,(function(e){return e.id}))})),Object(r.a)(qr,ir.y.name,(function(e,t){return _.b(e,t.contactGroupId)})),Object(r.a)(qr,ir.x.name,(function(e,t){return _.o(e,t.id,t.response.data)})),Object(r.a)(qr,ir.ab.name,(function(e,t){return _.r(e,t.id)})),Object(r.a)(qr,ir.z.name,(function(e,t){return _.b(e,t.id)})),qr),wa=Object(ye.a)(Ea,_.e()),_a=(Kr={},Object(r.a)(Kr,ir.w.name,(function(e,t){var n=t.response.included.reduce((function(e,t){var n,r=Object(ha.a)(t.attributes.emailAddresses);try{for(r.s();!(n=r.n()).done;){var a=n.value.toLowerCase();e.hasOwnProperty(a)?e[a].push(t.id):e[a]=[t.id]}}catch(i){r.e(i)}finally{r.f()}return e}),{});return _.x(e,n,(function(e){return e}))})),Object(r.a)(Kr,ir.V.name,(function(e,t){return t.emails.reduce((function(e,t){return _.r(e,t.toLowerCase())}),e)})),Object(r.a)(Kr,ir.o.name,(function(e,t){var n,r=t.response.data.reduce((function(e,t){var n,r=Object(ha.a)(t.attributes.emailAddresses);try{for(r.s();!(n=r.n()).done;){var a=n.value.toLowerCase();e.hasOwnProperty(a)?e[a].push(t.id):e[a]=[t.id]}}catch(i){r.e(i)}finally{r.f()}return e}),{}),a=Object(ha.a)(t.emails);try{for(a.s();!(n=a.n()).done;){var i=n.value.toLowerCase();r.hasOwnProperty(i)||(r[i]=[])}}catch(o){a.e(o)}finally{a.f()}return _.x(e,r,(function(e){return e}))})),Object(r.a)(Kr,ir.h.name,(function(e,t){return t.emails.reduce((function(e,n){return _.f(e,n.toLowerCase(),t.error)}),e)})),Object(r.a)(Kr,ir.s.name,(function(e,t){return _.o(e,t.email.toLowerCase(),[t.response.data.id])})),Object(r.a)(Kr,ir.q.name,(function(e,t){return _.o(e,t.email.toLowerCase(),[t.contact.id])})),Object(r.a)(Kr,ir.a.name,(function(){return _.e()})),Kr),Ia=Object(ye.a)(_a,_.e()),xa=(Xr={},Object(r.a)(Xr,ir.X.name,(function(e,t){return _.r(e,t.name)})),Object(r.a)(Xr,ir.C.name,(function(e,t){return _.o(e,t.name,t.contacts.map((function(e){return e.id})))})),Object(r.a)(Xr,ir.j.name,(function(e,t){return _.f(e,t.name,t.error)})),Object(r.a)(Xr,ir.a.name,(function(){return _.e()})),Xr),ka=Object(ye.a)(xa,_.e()),Na=(Qr={},Object(r.a)(Qr,ir.J.name,(function(e,t){return _.r(e,t.query)})),Object(r.a)(Qr,ir.r.name,(function(e,t){return _.o(e,t.query,t.result)})),Object(r.a)(Qr,ir.d.name,(function(e,t){return _.f(e,t.query,t.error)})),Object(r.a)(Qr,ir.a.name,(function(){return _.e()})),Object(r.a)(Qr,_e.K.name,(function(){return _.e()})),Qr),Ra=Object(ye.a)(Na,_.e()),Fa=n(609),Ma=(Zr={},Object(r.a)(Zr,_e.fb.name,(function(e,t){return _.r(e,t.taskId)})),Object(r.a)(Zr,_e.i.name,(function(e,t){return _.f(e,t.taskId,t.error)})),Object(r.a)(Zr,Fa.a.name,(function(e,t){return _.o(e,t.taskId,{id:t.taskId,url:t.url})})),Zr),Da=Object(ye.a)(Ma,_.e()),La=($r={},Object(r.a)($r,N.u.name,(function(e,t){return _.o(e,t.taskId,{id:t.taskId})})),Object(r.a)($r,N.l.name,(function(e,t){return _.b(e,t.taskId)})),$r),Pa=Object(ye.a)(La,_.e()),Ua=(ea={},Object(r.a)(ea,kn.k.name,(function(e){return _.r(e,_.a)})),Object(r.a)(ea,kn.i.name,(function(e,t){return _.o(e,_.a,t.response.data.filter((function(e){return null===e.attributes.deleted})))})),Object(r.a)(ea,kn.e.name,(function(e,t){return _.f(e,_.a,t.error)})),Object(r.a)(ea,kn.g.name,(function(e,t){return _.v(e,_.a,t.response.data,(function(e){return e.id}))})),Object(r.a)(ea,kn.h.name,(function(e,t){return _.c(e,(function(e){return e.id===t.snippetId}))})),Object(r.a)(ea,kn.d.name,(function(e,t){return _.u(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{attributes:Object(Te.a)(Object(Te.a)({},e.attributes),{},{deleted:null})})}),(function(e){return e.id===t.snippetId}))})),Object(r.a)(ea,kn.n.name,(function(e,t){return _.u(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{attributes:Object(Te.a)(Object(Te.a)({},e.attributes),{},{deleted:Xe()().format(Dt.a)})})}),(function(e){return e.id===t.snippetId}))})),Object(r.a)(ea,kn.o.name,(function(e,t){return _.u(e,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{meta:{last_used:Xe()().utc().format(Dt.a)}})}),(function(e){return e.id===t.response.data.id}))})),ea),Ba=Object(ye.a)(Ua,_.e()),Ha=(ta={},Object(r.a)(ta,kn.k.name,(function(){return _.e()})),Object(r.a)(ta,kn.j.name,(function(e,t){return _.r(e,t.id)})),Object(r.a)(ta,kn.f.name,(function(e,t){var n=t.response.included.find((function(e){return"snippet_body"===e.type}));return n?_.o(e,n.id,n):e})),Object(r.a)(ta,kn.b.name,(function(e,t){return _.f(e,t.id,t.error)})),Object(r.a)(ta,kn.g.name,(function(e,t){var n=t.response.included.find((function(e){return"snippet_body"===e.type}));return n?_.o(e,n.id,n):e})),Object(r.a)(ta,kn.l.name,(function(e,t){return _.b(e,t.id)})),ta),Ga=Object(ye.a)(Ha,_.e()),Wa=(na={},Object(r.a)(na,xn.f.name,(function(e,t){return _.r(e,t.tagId)})),Object(r.a)(na,xn.d.name,(function(e,t){return _.o(e,t.tagId,t.response)})),Object(r.a)(na,xn.b.name,(function(e,t){return _.f(e,t.tagId,t.error)})),na),za=Object(ye.a)(Wa,_.e()),Va=(ra={},Object(r.a)(ra,xn.g.name,(function(e,t){return _.r(e,t.url)})),Object(r.a)(ra,xn.e.name,(function(e,t){return _.o(e,t.url,t.response)})),Object(r.a)(ra,xn.c.name,(function(e,t){return _.f(e,t.url,t.error)})),ra),Ja=Object(ye.a)(Va,_.e()),Ya=n(624),qa=(aa={},Object(r.a)(aa,$e.h.name,(function(e,t){return _.r(e,t.display)})),Object(r.a)(aa,$e.g.name,(function(e,t){return _.o(e,t.display,t.apps)})),Object(r.a)(aa,$e.d.name,(function(e,t){return _.f(e,t.display,t.error)})),aa),Ka=Object(ye.a)(qa,_.e()),Xa=(ia={},Object(r.a)(ia,$e.j.name,(function(e){return _.r(e,_.a)})),Object(r.a)(ia,$e.f.name,(function(e,t){return _.o(e,_.a,t.schema)})),Object(r.a)(ia,$e.c.name,(function(e,t){return _.f(e,_.a,t.error)})),Object(r.a)(ia,$e.a.name,(function(){return _.e()})),ia),Qa=Object(ye.a)(Xa,_.e()),Za=n(335),$a=(oa={},Object(r.a)(oa,Za.c.name,(function(e){return _.l(e,_.a)?e:_.r(e,_.a)})),Object(r.a)(oa,Za.b.name,(function(e,t){return _.o(e,_.a,t.devices)})),Object(r.a)(oa,Za.a.name,(function(e,t){return _.f(e,_.a,t.error)})),Object(r.a)(oa,W.c.name,(function(e,t){return _.s(e,_.a,(function(e){return e.deviceToken===t.deviceToken}))})),oa),ei=Object(ye.a)($a,_.e()),ti=n(183),ni=(ca={},Object(r.a)(ca,ti.k.name,(function(e,t){return _.r(e,_.a)})),Object(r.a)(ca,ti.h.name,(function(e,t){var n=t.response,r=[].concat(Object(we.a)(n.teams.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{type:R.p.TEAM})}))),Object(we.a)(n.tenants.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{type:R.p.TENANT})}))));return _.o(e,_.a,r)})),Object(r.a)(ca,ti.c.name,(function(e,t){return _.f(e,_.a,t.error)})),ca),ri=Object(ye.a)(ni,_.e()),ai=(sa={},Object(r.a)(sa,ti.l.name,(function(e,t){return _.r(e,t.uuid)})),Object(r.a)(sa,ti.n.name,(function(e,t){return _.r(e,t.uuid)})),Object(r.a)(sa,ti.a.name,(function(e,t){return _.r(e,t.uuid)})),Object(r.a)(sa,ti.i.name,(function(e,t){return _.o(e,t.uuid,t.response)})),Object(r.a)(sa,ti.d.name,(function(e,t){return _.f(e,t.uuid,t.error)})),Object(r.a)(sa,ti.f.name,(function(e,t){return _.o(e,t.uuid,t.oldTeamProfileDetails)})),sa),ii=Object(ye.a)(ai,_.e()),oi=(la={},Object(r.a)(la,ti.m.name,(function(e,t){return _.r(e,t.uuid)})),Object(r.a)(la,ti.o.name,(function(e,t){return _.r(e,t.uuid)})),Object(r.a)(la,ti.j.name,(function(e,t){return _.o(e,t.uuid,t.response)})),Object(r.a)(la,ti.e.name,(function(e,t){return _.f(e,t.uuid,t.error)})),Object(r.a)(la,ti.g.name,(function(e,t){return _.o(e,t.uuid,t.oldTenantProfileDetails)})),Object(r.a)(la,ti.b.name,(function(e,t){return _.r(e,t.uuid)})),la),ci=Object(ye.a)(oi,_.e()),si=(ua={},Object(r.a)(ua,u.c.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{offline:R.c.ONLINE})})),Object(r.a)(ua,u.d.name,(function(e){return Object(Te.a)(Object(Te.a)({},e),{},{offline:R.c.OFFLINE})})),ua),li=Object(ye.a)(si,{offline:R.c.ONLINE}),ui=n(326),di=n(388),fi=n(569),bi=(da={},Object(r.a)(da,N.q.name,(function(e,t){var n,r;return t.listType===R.j.LIST&&t.trigger!==R.i.AUTO_REFRESH?Object(Te.a)(Object(Te.a)({},e),{},{cursorTimestampOfLastRequest:null!==(n=null===(r=t.searchAfter)||void 0===r?void 0:r.afterTimestamp)&&void 0!==n?n:null}):e})),Object(r.a)(da,fi.a.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{lastLoadedId:t.lastMessageId,lastLoadedTimestamp:t.lastMessageTimestamp,numMessagesLoaded:e.search===t.currentSearch?e.numMessagesLoaded+t.limit:t.limit,search:t.currentSearch,total:t.total,exact:t.exact})})),da),pi=Object(ye.a)(bi,{search:null,lastLoadedId:null,lastLoadedTimestamp:null,cursorTimestampOfLastRequest:null,numMessagesLoaded:0,total:null,exact:!0}),mi=n(581),hi=Object(ye.a)(Object(r.a)({},mi.a.name,(function(e,t){return{isOpen:t.state}})),{isOpen:!1}),gi=Object(ye.a)(Object(r.a)({},G.g.name,(function(e,t){return t.teamsInSearch})),{teams:[],allTeams:!1}),ji=n(612),vi=Object(ye.a)(Object(r.a)({},ji.a.name,(function(e,t){return{isMobile:t.isMobile}})),{isMobile:!1}),Oi=n(127),Ti=_.e(),yi=(fa={},Object(r.a)(fa,Oi.g.name,(function(e,t){return _.r(e,t.jobReferenceId)})),Object(r.a)(fa,Oi.f.name,(function(e,t){return _.o(e,t.jobReferenceId,{userIds:t.followerUserIds,forJobReferenceId:t.jobReferenceId})})),Object(r.a)(fa,Oi.a.name,(function(e,t){return _.f(e,_.a,t.error)})),Object(r.a)(fa,Oi.e.name,(function(e,t){return _.t(e,(function(e){return{userIds:e.userIds.filter((function(e){return!t.users.some((function(t){return t.id===e}))})),forJobReferenceId:t.jobReferenceId}}),(function(e){return e.forJobReferenceId===t.jobReferenceId}))})),Object(r.a)(fa,Oi.c.name,(function(e,t){var n=_.g(e,t.jobReferenceId).map((function(e){return e.userIds.includes(t.user.id)?e:{userIds:[t.user.id].concat(Object(we.a)(e.userIds)),forJobReferenceId:t.jobReferenceId}})).orElse({userIds:[t.user.id],forJobReferenceId:t.jobReferenceId});return _.o(e,t.jobReferenceId,n)})),fa),Si=Object(ye.a)(yi,Ti),Ci=(ba={},Object(r.a)(ba,z.a.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{notification:e.notification.filter((function(e){return e.id!==t.id}))})})),Object(r.a)(ba,z.b.name,(function(e,t){return Object(Te.a)(Object(Te.a)({},e),{},{notification:Object(nr.a)(e.notification,t.notification)})})),ba),Ai=Object(ye.a)(Ci,{notification:[]}),Ei=n(627),wi=(pa={},Object(r.a)(pa,Ei.c.name,(function(e){return _.r(e,_.a)})),Object(r.a)(pa,Ei.b.name,(function(e){return _.o(e,_.a,!0)})),Object(r.a)(pa,Ei.a.name,(function(e,t){return _.f(e,_.a,t.error)})),pa),_i=Object(ye.a)(wi,_.e()),Ii=n(21),xi=n(79),ki=n(608);var Ni,Ri=n(13);function getMessageApplies(e,t,n,r){return te.a.tuple3(_.g(t.entities.messageMeta,e),_.g(t.entities.userConfig,_.a),_.g(t.entities.tenantConfig,_.a)).map((function(a){var i=Object(Ii.a)(a,3),o=i[0],c=i[1],s=i[2];return n.filter((function(t){return t.messageId!==e})).concat([{messageId:e,type:"message",applies:function(e){var n=Object(C.a)(t,_.g(t.entities.userConfig,_.a).orElseThrow(new Error("WebSocket could not get current user")).user);return function messagePredicate(e){return function(t,n,r,a){var i=_.g(e.entities.messageTeam,r.id).orElse([]),o=_.h(e.entities.categoryTag),c=new Set(_.g(e.entities.messageCategoryTag,r.id).orElse([]).map((function(e){return e.tagId}))),s=o.filter((function(e){return c.has(e.tagId)})),l=_.h(e.entities.jobReference),u=new Set(_.g(e.entities.messageJobReferenceTag,r.id).orElse([]).map((function(e){return e.tagId}))),d=l.filter((function(e){return e.tagId&&u.has(e.tagId)})),b=_.g(e.entities.messageAssignment,r.id).orElse([]),p=_.g(e.entities.messageKeyword,r.id).orElse([]);return ki.a.isRelevant(a,{userConfig:t,tenantConfig:n,meta:r,teamIds:i,categories:s,jobReferences:d,jobReferenceMetas:d.map((function(e){return{parentId:r.id,relationshipId:e.id,tagId:e.tagId,label:e.name}})),assignments:b,keywords:p})}}(t)(c,s,o,n.fromQueryParams(e||""))}(r)}])})).orElse(n)}function updateSearchRelevances(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=_.h(e.entities.searchRelevance),i=function appliesToFilterFn(e,t){return r?safeguardApplies(e,n(e,t)):n(e,t)},o=a.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{items:t(Object(ar.a)(e.search))?i(e.items,e.search):e.items})}));return Object(Te.a)(Object(Te.a)({},e),{},{entities:Object(Te.a)(Object(Te.a)({},e.entities),{},{searchRelevance:_.p(_.e(),o,(function(e){return Object(ar.a)(e.search)}))})})}function safeguardApplies(e,t){return t.map((function(t){var n=e.find((function(e){return e.messageId===t.messageId}));return n&&t.applies===R.b.MAYBE?Object(Te.a)(Object(Te.a)({},t),{},{applies:n.applies}):t}))}var Fi,Mi=(Ni={},Object(r.a)(Ni,N.c.name,(function(e,t){return updateSearchRelevances(e,(function(e){return e===Object(ar.a)(t.search)}),(function(){return[]}))})),Object(r.a)(Ni,N.q.name,(function(e,t){return t.setMetaToLoading?t.listType===R.j.LIST?Object(Te.a)(Object(Te.a)({},e),{},{entities:Object(Te.a)(Object(Te.a)({},e.entities),{},{searchRelevance:_.o(_.e(),Object(ar.a)(t.search),{search:t.search,listType:R.j.LIST,items:[]})})}):Object(Te.a)(Object(Te.a)({},e),{},{entities:Object(Te.a)(Object(Te.a)({},e.entities),{},{searchRelevance:_.o(e.entities.searchRelevance,Object(ar.a)(t.search),{search:t.search,listType:R.j.BUCKET,items:[]})})}):e})),Object(r.a)(Ni,N.p.name,(function(e,t){return void 0!==_.h(e.entities.searchRelevance).find((function(e){return e.search===Object(ar.a)(t.search)}))?Object(Te.a)(Object(Te.a)({},e),{},{entities:Object(Te.a)(Object(Te.a)({},e.entities),{},{searchRelevance:_.o(e.entities.searchRelevance,Object(ar.a)(t.search),{search:t.search,listType:R.j.BUCKET,items:[]})})}):e})),Object(r.a)(Ni,N.i.name,(function(e,t){var n=_.g(e.entities.searchRelevance,Object(ar.a)(t.search)).map((function(e){return t.messageIds.reduce((function(t,n){var r=e.items.find((function(e){return e.messageId===n}));return void 0!==r?r.applies!==R.b.NO&&t.push(r):t.push({messageId:n,applies:R.b.YES,type:"message"}),t}),[])})).orElse([]),r=_.g(e.entities.searchRelevance,Object(ar.a)(t.search)).map((function(e){return t.topicIds.reduce((function(t,n){var r=e.items.find((function(e){return e.messageId===n}));return void 0!==r?r.applies!==R.b.NO&&t.push(r):t.push({messageId:n,applies:R.b.YES,type:"topic"}),t}),n)})).orElse([]),a=r.map((function(e){return e.messageId}));return updateSearchRelevances(e,(function(e){return e===Object(ar.a)(t.search)}),(function(e){return[].concat(Object(we.a)(e.filter((function(e){return!a.includes(e.messageId)&&e.applies!==R.b.NO}))),Object(we.a)(r))}))})),Object(r.a)(Ni,N.j.name,(function(e,t){if(t.listType===R.j.ITEMS_AND_DOCUMENTS)return e;var n=_.g(e.entities.userConfig,_.a),r=_.g(e.entities.tenantConfig,_.a).orElseThrow(new Error("Tenant config must be set.")),a=function isRelevant(e){return n.map((function(n){var a=Object(xi.d)(t.search);return a!==Ri.D.INBOX&&a!==Ri.D.MY_MESSAGES?R.b.YES:(new Ri.v).appliesToMessage({userConfig:n,tenantConfig:r,meta:e,teamIds:[],categories:[],jobReferences:[],jobReferenceMetas:[],assignments:[],keywords:[]})})).orElse(R.b.YES)},i=Object(we.a)(t.messageDetails.map((function(e){return{relevance:a(e.meta),meta:e}})).map((function(e){return{messageId:e.meta.id,applies:e.relevance,type:"message"}})));return updateSearchRelevances(_.g(e.entities.searchRelevance,Object(ar.a)(t.search)).isNotLoading()?Object(Te.a)(Object(Te.a)({},e),{},{entities:Object(Te.a)(Object(Te.a)({},e.entities),{},{searchRelevance:_.o(e.entities.searchRelevance,Object(ar.a)(t.search),{search:t.search,listType:t.listType,items:[]})})}):e,(function(e){return e===Object(ar.a)(t.search)}),(function(e){var n=[].concat(Object(we.a)(i),Object(we.a)(t.topics.map((function(e){return{messageId:e.id,applies:R.b.YES,type:"topic"}})))),r=n.map((function(e){return e.messageId}));return[].concat(Object(we.a)(e.filter((function(e){return!r.includes(e.messageId)&&e.applies!==R.b.NO}))),Object(we.a)(n))}))})),Object(r.a)(Ni,Pt.d.name,(function(e,t){return updateSearchRelevances(e,(function(e){return e===Object(ar.a)(t.search)}),(function(e){return e.filter((function(e){return e.messageId!==t.messageId})).concat([{messageId:t.messageId,applies:t.applies,type:"message"}])}))})),Object(r.a)(Ni,Pt.i.name,(function(e,t){return updateSearchRelevances(e,(function(e){return e===Object(ar.a)(t.search)}),(function(e){return t.data.reduce((function(e,t){var n=Object(Ii.a)(t,2),r=n[0],a=n[1];return e.push({messageId:r,applies:a,type:"message"}),e}),e.filter((function(e){return!t.data.find((function(t){var n=Object(Ii.a)(t,2),r=n[0];n[1];return r===e.messageId}))})))}))})),Object(r.a)(Ni,Pt.k.name,(function(e,t){return updateSearchRelevances(e,(function(e){return e===Object(ar.a)(t.search)}),(function(e){return e.filter((function(e){return e.messageId!==t.topicId})).concat([{messageId:t.topicId,applies:t.applies,type:"topic"}])}))})),Object(r.a)(Ni,Pt.b.name,(function(e,t){return updateSearchRelevances(e,(function(e){return!0}),(function(e){return e.filter((function(e){return e.messageId!==t.deletedMessageId}))}))})),Object(r.a)(Ni,_e.rb.name,(function(e,t){return updateSearchRelevances(e,(function(e){var t=Object(xi.d)(e);return t===Ri.D.INBOX||t===Ri.D.MY_MESSAGES}),(function(e){return e.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{applies:t.messageIds.includes(e.messageId)?R.b.NO:e.applies})}))}))})),Object(r.a)(Ni,_e.p.name,(function(e,t){return updateSearchRelevances(e,(function(e){var t=Object(xi.d)(e);return t===Ri.D.INBOX||t===Ri.D.MY_MESSAGES}),(function(e){return e.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{applies:t.messageIds.includes(e.messageId)?R.b.YES:e.applies})}))}))})),Object(r.a)(Ni,_e.sb.name,(function(e,t){return updateSearchRelevances(e,(function(e){var t=Object(xi.d)(e);return t===Ri.D.INBOX||t===Ri.D.MY_MESSAGES}),(function(e){return e.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{applies:e.messageId===t.messageId?R.b.NO:e.applies})}))}))})),Object(r.a)(Ni,_e.J.name,(function(e,t){var n=t.response.id;return updateSearchRelevances(e,(function(e){return!0}),(function(t,r){return getMessageApplies(n,e,t,r)}))})),Object(r.a)(Ni,_e.gb.name,(function(e,t){return updateSearchRelevances(e,(function(e){var n=Object(xi.d)(e);return t.toUserId===t.byUserId&&n===Ri.D.FOLLOWING}),(function(e,n){return e.filter((function(e){return!t.messageIds.includes(e.messageId)})).concat(t.messageIds.map((function(e){return{messageId:e,applies:R.b.NO,type:"message"}})))}))})),Object(r.a)(Ni,Ue.w.name,(function(e,t){return updateSearchRelevances(e,(function(e){return Object(xi.d)(e)===Ri.D.MY_MESSAGES}),(function(n,r){return getMessageApplies(t.messageId,e,n,r)}))})),Object(r.a)(Ni,_e.j.name,(function(e,t){return updateSearchRelevances(e,(function(e){var n=Object(xi.d)(e);return t.toUserId===t.byUserId&&n===Ri.D.FOLLOWING}),(function(e,n){return e.filter((function(e){return!t.messageIds.includes(e.messageId)})).concat(t.messageIds.map((function(e){return{messageId:e,applies:R.b.YES,type:"message"}})))}))})),Object(r.a)(Ni,_e.H.name,(function(e,t){return updateSearchRelevances(e,(function(e){return!0}),(function(e){return e.filter((function(e){return e.messageId!==t.messageId}))}))})),Object(r.a)(Ni,_e.z.name,(function(e,t){return updateSearchRelevances(e,(function(e){return!0}),(function(e){return e.filter((function(e){return!t.messageIds.includes(e.messageId)}))}))})),Object(r.a)(Ni,_e.O.name,(function(e,t){return updateSearchRelevances(e,(function(){return!0}),(function(n,r){return getMessageApplies(t.messageId,e,n,r)}),!0)})),Object(r.a)(Ni,tr.s.name,(function(e,t){return updateSearchRelevances(e,(function(){return!0}),(function(n,r){return function getTopicApplies(e,t,n,r){return te.a.tuple3(_.g(t.entities.topic,e),_.g(t.entities.userConfig,_.a),_.g(t.entities.tenantConfig,_.a)).map((function(a){var i=Object(Ii.a)(a,3),o=i[0];return i[1],i[2],n.filter((function(t){return t.messageId!==e})).concat([{messageId:e,type:"topic",applies:function(e){var n=Object(C.a)(t,_.g(t.entities.userConfig,_.a).orElseThrow(new Error("WebSocket could not get current user")).user).fromQueryParams(r||""),a=_.g(t.entities.userConfig,_.a).orElseThrow(new Error("WebSocket could not get current user")).user.id;return n.appliesToTopic(o,{currentUserId:a})}()}])})).orElse(n)}(t.topicId,e,n,r)}),!0)})),Object(r.a)(Ni,tr.X.name,(function(e,t){return updateSearchRelevances(e,(function(e){var t=Object(xi.d)(e);return t===Ri.D.INBOX||t===Ri.D.MY_MESSAGES}),(function(e,n){return e.filter((function(e){return t.topicId!==e.messageId})).concat([{messageId:t.topicId,applies:R.b.NO,type:"topic"}])}))})),Object(r.a)(Ni,tr.e.name,(function(e,t){return updateSearchRelevances(e,(function(e){var t=Object(xi.d)(e);return t===Ri.D.INBOX||t===Ri.D.MY_MESSAGES}),(function(e){return e.filter((function(e){return t.topicId!==e.messageId})).concat([{messageId:t.topicId,applies:R.b.YES,type:"topic"}])}))})),Object(r.a)(Ni,tr.ab.name,(function(e,t){return updateSearchRelevances(e,(function(e){return Object(xi.d)(e)===Ri.D.STORED}),(function(e,n){return e.filter((function(e){return!t.topicId.includes(e.messageId)})).concat([{messageId:t.topicId,applies:R.b.NO,type:"topic"}])}))})),Object(r.a)(Ni,tr.f.name,(function(e,t){return updateSearchRelevances(e,(function(e){return Object(xi.d)(e)===Ri.D.STORED}),(function(e){return e.filter((function(e){return!t.topicId.includes(e.messageId)})).concat([{messageId:t.topicId,applies:R.b.YES,type:"topic"}])}))})),Object(r.a)(Ni,tr.O.name,(function(e,t){return updateSearchRelevances(e,(function(e){var t=Object(xi.d)(e);return t===Ri.D.INBOX||t===Ri.D.MY_MESSAGES}),(function(e){return e.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{applies:t.topicIds.includes(e.messageId)?R.b.NO:e.applies})}))}))})),Object(r.a)(Ni,tr.b.name,(function(e,t){return updateSearchRelevances(e,(function(e){var t=Object(xi.d)(e);return t===Ri.D.INBOX||t===Ri.D.MY_MESSAGES}),(function(e){return e.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{applies:t.topicIds.includes(e.messageId)?R.b.YES:e.applies})}))}))})),Object(r.a)(Ni,tr.P.name,(function(e,t){return updateSearchRelevances(e,(function(e){return Object(xi.d)(e)===Ri.D.STORED}),(function(e){return e.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{applies:t.topicIds.includes(e.messageId)?R.b.NO:e.applies})}))}))})),Object(r.a)(Ni,tr.c.name,(function(e,t){return updateSearchRelevances(e,(function(e){return Object(xi.d)(e)===Ri.D.STORED}),(function(e){return e.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{applies:t.topicIds.includes(e.messageId)?R.b.YES:e.applies})}))}))})),Object(r.a)(Ni,tr.F.name,(function(e,t){return updateSearchRelevances(e,(function(e){return Object(xi.d)(e)===Ri.D.DRAFT}),(function(e){return e.filter((function(e){return t.topicId!==e.messageId})).concat([{messageId:t.topicId,applies:R.b.NO,type:"topic"}])}))})),Object(r.a)(Ni,_e.F.name,(function(e,t){return updateSearchRelevances(e,(function(e){return!0}),(function(e){return e.filter((function(e){return e.messageId!==t.messageId}))}))})),Object(r.a)(Ni,Ue.E.name,(function(e,t){if(!_.g(e.entities.tenantConfig,_.a).map((function(e){return e.settings.SLIM_MY_MESSAGES})).orElse(!1))return e;var n=_.g(e.entities.userConfig,_.a).map((function(e){return e.myMessageTagIds})).orElse(new Set);return updateSearchRelevances(e,(function(e){return Object(xi.d)(e)===Ri.D.MY_MESSAGES}),(function(e){return e.map((function(e){return Object(Te.a)(Object(Te.a)({},e),{},{applies:e.messageId===t.messageId&&t.tagId&&!n.has(t.tagId)?R.b.NO:e.applies})}))}))})),Ni),Di=Object(ye.a)(Mi,{}),Li=n(22),Pi=n(17),Ui=n(28),Bi=n(334),Hi=n(134),Gi=n(340),Wi=(Fi={},Object(r.a)(Fi,Gi.d.name,(function(e,t){return _.r(e,t.contactId)})),Object(r.a)(Fi,Gi.b.name,(function(e,t){return _.o(e,t.contactId,t.response)})),Object(r.a)(Fi,Gi.a.name,(function(e,t){return _.f(e,t.contactId,t.error)})),Object(r.a)(Fi,Gi.c.name,(function(e,t){var n=_.g(e,t.contactId).toUndefined(),r=n?n.concat([t.response]):[t.response];return _.o(e,t.contactId,r)})),Fi),zi=Object(ye.a)(Wi,_.e()),Vi=window.location,Ji=Object(l.a)({basename:"/launch"}),Yi=Object(i.a)((function NetworkStatusEpic(e){return e.pipe(Object(d.a)((function(e){return O(e)})),Object(b.a)(new u.a),Object(p.a)(5e3),Object(m.a)((function(e,t){return e.type===t.type})),Object(h.a)(1),Object(g.a)((function(e){switch(e.type){case u.a.name:return Object(j.a)(new u.c,new u.e);case u.b.name:return Object(j.a)(new u.d);default:return v.a}})))}),Object(T.b)((function(){return function(){return[new y.a]}}))),qi=Object(o.a)(),Ki=[function filterSetMiddleware(e){return function(t){return function(n){return n instanceof S.c?(n.filterSetDeserializer=Object(C.a)(e.getState(),n.currentUser),t(n.navigateToFilter())):t(n)}}},Object(A.a)(Ji),Object(w.b)((function(e){var t,n,r=_.g(e.entities.userConfig,_.a).map((function(e){return e.user})).toOptional();return{apiConfig:{apiUrl:null!==(t="/api")?t:"",platformUrl:null!==(n="/platform")?n:""},tenant:r.map((function(e){return e.companyIdentifier})),teamId:Object(I.b)(Vi.search,r),userId:r.map((function(e){return e.id})),disableRetry:e.ui.searchState===R.q.CRITICAL,explicitTeam:Object(x.a)(e)}})),k.a,M,D.c,L.a,qi,function messageChangeMiddleware(e){return function(t){return function(n){if(!(n instanceof Pt.c))return t(n);var r=e.getState(),a=r.router.location,i=_.g(r.entities.userConfig,_.a).toUndefined(),o=String(n.message.id),c=Object(Li.e)(a.pathname,{path:Pi.a.LIST}),s=_.g(r.entities.messageBody,o);return c&&s.isPresent()?(e.dispatch(_e.X.doNotSetToLoading(o,i.user.id)),Object(Li.e)(a.pathname,{path:Pi.a.MESSAGE(o)})&&e.dispatch(new z.b({message:"This message has been updated.",level:R.n.info})),t(n)):t(n)}}},function MessagingMiddleware(e){return Object(P.a)()?X(e):function DesktopMiddleware(e){var t,n=null;return function(r){return function(a){if(!oe)return r(a);if(a.type===G.e.name&&null===n&&(n=Object(ee.a)(Object(re.a)(ae)),t=a.config.user.id,navigator.serviceWorker.ready.then(function(){var t=Object($.a)(Z.a.mark((function _callee(t){return Z.a.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:if(n){r.next=2;break}return r.abrupt("return");case 2:if(Notification.permission===R.o.GRANTED){r.next=4;break}return r.abrupt("return",e.dispatch(new W.a(Object(te.b)("Permission not granted."))));case 4:Object(ee.b)(n,{vapidKey:ie,serviceWorkerRegistration:t}).then((function(t){e.dispatch(new W.h(t))})).catch((function(){}));case 5:case"end":return r.stop()}}),_callee)})));return function(e){return t.apply(this,arguments)}}()),navigator.serviceWorker.onmessage=function(t){"GO_TO_DOCUMENT"===t.data.type&&e.dispatch(Object(Y.b)(t.data.itemType,t.data.itemId,e.getState().router.location,!1))}),null===n)return r(a);if(a.type===W.i.name&&("denied"===Notification.permission?e.dispatch(new z.b({message:"Browser notifications have been denied for SEDNA.",level:R.n.warning})):navigator.serviceWorker.ready.then(function(){var r=Object($.a)(Z.a.mark((function _callee2(r){return Z.a.wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:if(n){a.next=2;break}return a.abrupt("return");case 2:Object(ee.b)(n,{vapidKey:ie,serviceWorkerRegistration:r}).then((function(n){return e.dispatch(new W.h(n,t))})).catch((function(){return e.dispatch(new z.b({message:"Could not enable notifications. Try again.",level:R.n.warning}))}));case 3:case"end":return a.stop()}}),_callee2)})));return function(e){return r.apply(this,arguments)}}())),a.type===W.j.name){var i=e.getState().ui.notifications.token,o=a;i&&e.dispatch(new W.g(i)),o.next&&e.dispatch(o.next)}return r(a)}}}(e)},Bi.c.middleware],Xi=Object(a.a)(Object(r.a)({entities:Object(a.a)({tenantConfig:Oe.e,userConfig:Oe.f,user:Ee,team:ke,userToTeam:Me,categoryTag:De.a,teamToCategoryTag:De.i,favouriteCategoryTag:De.c,jobReference:De.d,userJobReferenceTag:De.k,teamToJobReferences:ze,document:ft,flexDocument:lt,share:Ht,comment:Sn,publicComment:wn,messageBody:Dn,messageMeta:Fn,messageTotal:lr,messageShare:Wt,messageExternalShare:Vt,messageEdit:Yt,messageComment:An,messagePublicComment:In,messageCategoryTag:De.f,messageJobReferenceTag:De.g,messageDocument:Et,messageTeam:Re,messageRead:fn,messageAssignment:De.e,messageKeyword:De.h,messageFollowUp:$t,messageExternalFollowUp:tn,messageArchivedForTeam:pn,messageCancelled:jn,messageScheduled:hn,messageSendNow:On,savedSearch:hr,savedSearchUnread:Or,senderChanged:Kt,icsDownloaded:Qt,topic:Er,topicBody:_r,topicComment:xr,topicAttachment:Pr,topicCategoryTag:Wr,topicJobReference:ma,topicAssignment:De.j,topicTeam:Fr,contact:Sa,contactsGroupPageAutoComplete:ya,contactComment:zi,mutedContact:Ca,followedContact:Aa,contactGroup:wa,emailContact:Ia,nameContact:ka,contactAutoComplete:Ra,flexDocumentGroup:Rt,fdLinks:Mt,template:Pn,templateDocument:_t,emlPreview:rt,s3Urls:it,exportTask:Da,storeAllTask:Pa,snippet:Ba,snippetBody:Ga,aos:za,aosDetail:Ja,jobReferenceSearch:Je,categoryTagSearch:De.b,vesselName:Ya.b,addFromSedna:kt,addFromSednaMessages:ct,vesselJobReferenceTag:De.l,applications:Ka,messageInteractions:Qa,buckets:jr,searchRelevance:function searchRelevance(e){return null!==e&&void 0!==e?e:_.e()},notificationDevice:ei,profileMeta:ri,tenantProfileDetails:ci,teamProfileDetails:ii}),router:Object(E.b)(Ji),ui:Object(a.a)({featureFlags:Oe.b,network:li,messageActivityList:ui.b,topicActivityList:di.b,messageCompose:er,list:dr,pagination:pi,previewDocument:tt,update:Oe.a,topicCompose:Nr,searchState:Oe.c,notifications:W.d,modal:hi,activeTeamsInSearch:gi,currentSavedSearch:yr,responsive:vi,sidebar:Oe.d}),jobReferenceManager:Object(a.a)({jobReference:Ge,jobReferenceFollowers:Si}),notificationState:Ai,admin:Object(a.a)({changePassword:_i})},Bi.c.reducerPath,Bi.c.reducer)),Qi=Object(c.configureStore)({reducer:function rootReducer(e,t){return Di(Xi(e,t),t)},devTools:!0,middleware:function middleware(e){return e({serializableCheck:!1,immutableCheck:!1}).concat([].concat(Ki,[s.c]))}}),Zi=function useSednaDispatch(){return Object(Ui.useDispatch)()};Object(Hi.setupListeners)(Qi.dispatch),qi.run(Yi);t.a=Qi},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(23),a=n(4),i={addFollowers:function addFollowers(e,t){var n=t.map((function(e){return e.id}));return Object(a.a)(Object(a.a)({},e),{},{relationships:Object(a.a)(Object(a.a)({},e.relationships),{},{follower:Object(a.a)(Object(a.a)({},e.relationships.follower),{},{data:[].concat(Object(r.a)(e.relationships.follower.data.filter((function(e){return!n.includes(e.id)}))),Object(r.a)(t))})})})},removeFollowers:function removeFollowers(e,t){return Object(a.a)(Object(a.a)({},e),{},{relationships:Object(a.a)(Object(a.a)({},e.relationships),{},{follower:Object(a.a)(Object(a.a)({},e.relationships.follower),{},{data:e.relationships.follower.data.filter((function(e){return!t.includes(e.id)}))})})})},addComment:function addComment(e,t){return Object(a.a)(Object(a.a)({},e),{},{relationships:Object(a.a)(Object(a.a)({},e.relationships),{},{topic_comment:{data:[].concat(Object(r.a)(e.relationships.topic_comment?e.relationships.topic_comment.data.filter((function(e){return e.id!==t.id})):[]),[{type:"topic_comment",id:t.id,meta:{version:t.attributes.version}}]),meta:{version_read_up_to:e.relationships.topic_comment?e.relationships.topic_comment.meta.version_read_up_to:null}}})})},addCommentByCurrentUser:function addCommentByCurrentUser(e,t){var n=i.addComment(e,t);return Object(a.a)(Object(a.a)({},n),{},{relationships:Object(a.a)(Object(a.a)({},n.relationships),{},{topic_comment:Object(a.a)(Object(a.a)({},n.relationships.topic_comment),{},{meta:{version_read_up_to:t.attributes.version}})})})},store:function store(e,t){var n=t.map((function(e){return e.id}));return Object(a.a)(Object(a.a)({},e),{},{relationships:Object(a.a)(Object(a.a)({},e.relationships),{},{stored_by:Object(a.a)(Object(a.a)({},e.relationships.stored_by),{},{data:[].concat(Object(r.a)(e.relationships.stored_by?e.relationships.stored_by.data.filter((function(e){return!n.includes(e.id)})):[]),Object(r.a)(t))})})})},unstore:function unstore(e,t){return Object(a.a)(Object(a.a)({},e),{},{relationships:Object(a.a)(Object(a.a)({},e.relationships),{},{stored_by:Object(a.a)(Object(a.a)({},e.relationships.stored_by),{},{data:Object(r.a)(e.relationships.stored_by?e.relationships.stored_by.data.filter((function(e){return!t.includes(e.id)})):[])})})})}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return T}));var r=n(0),a=n(92),i=n(141),o=n(585),c=n(21),s=n(4),l=n(1),u=n.n(l),d=n(117),b=n(192),p=n(271),m=n(12),h={SelectContainer:m.b.div.withConfig({displayName:"searchable-select-v2__SelectContainer",componentId:"sc-1qr2dzj-0"})(["position:relative;display:flex;"])};function searchable_select_v2_stateReducer(e,t){var n=t.type,r=t.changes;switch(n){case d.b.stateChangeTypes.FunctionToggleMenu:return r.isOpen?r:Object(s.a)(Object(s.a)({},r),{},{inputValue:r.selectedItem?r.inputValue:""});case d.b.stateChangeTypes.InputBlur:return Object(s.a)(Object(s.a)({},r),{},{inputValue:r.selectedItem?r.inputValue:""});default:return r}}var g=function SearchableSelectV2(e){var t,n,a=e.value,i=e.invalid,o=e.disabled,m=e.onFocus,g=e.onBlur,j=e.name,v=e.id,O=e.onSelect,T=e.options,y=e.testId,S=u.a.useCallback((function(e){return T.find((function(t){return e===t.value}))}),[T]),C=Object(l.useState)(null!==(t=S(a))&&void 0!==t?t:{label:"",value:null}),A=Object(c.a)(C,2),E=A[0],w=A[1],_=Object(l.useState)(null!==(n=null===E||void 0===E?void 0:E.label)&&void 0!==n?n:""),I=Object(c.a)(_,2),x=I[0],k=I[1],N=u.a.useCallback((function(e){var t,n=e.selectedItem;O(n?n.value:void 0),w(n),k(null!==(t=null===n||void 0===n?void 0:n.label)&&void 0!==t?t:"")}),[O]),R=u.a.useMemo((function(){return T.filter((function(e){return e.label.toLowerCase().includes(x.toLowerCase())}))}),[x,T]),F=u.a.useCallback((function(e){var t;e.type!==d.b.stateChangeTypes.ControlledPropUpdatedSelectedItem&&(e.type!==d.b.stateChangeTypes.ItemClick&&e.type!==d.b.stateChangeTypes.InputKeyDownEnter&&(w(null),O(void 0)),k(null!==(t=e.inputValue)&&void 0!==t?t:""))}),[O]),M=Object(d.b)({itemToString:function itemToString(e){var t;return null!==(t=null===e||void 0===e?void 0:e.label)&&void 0!==t?t:""},items:R,selectedItem:E,inputValue:x,onInputValueChange:F,onSelectedItemChange:N,stateReducer:searchable_select_v2_stateReducer}),D=M.isOpen,L=M.getMenuProps,P=M.getItemProps,U=M.getInputProps,B=M.getComboboxProps,H=M.toggleMenu,G=M.highlightedIndex;return Object(r.jsxs)(h.SelectContainer,{children:[Object(r.jsx)(p.a,{toggleMenu:H,comboboxProps:B(),inputProps:U(Object(s.a)(Object(s.a)({},v&&{id:v}),{},{disabled:o,refKey:"inputRef"})),onFocus:m,onBlur:g,disabled:o,invalid:i,id:v,name:j,testId:y}),Object(r.jsx)(b.a,{isOpen:D,menuProps:L(Object(s.a)(Object(s.a)({},v&&{id:"".concat(v,"-menu")}),{},{refKey:"menuRef"})),children:D?R.map((function(e,t){return Object(r.jsx)(b.b,{itemProps:P(Object(s.a)(Object(s.a)({},v&&{id:"".concat(v,"-menu-item-").concat(e.value)}),{},{item:e,index:t,refKey:"itemRef"})),item:e,highlight:G===t||e===E},"".concat(e.label).concat(t))})):null})]})},j={SelectContainer:m.b.div.withConfig({displayName:"searchable-multi-select__SelectContainer",componentId:"sc-1uno2tp-0"})(["position:relative;display:flex;"]),Chip:m.b.span.withConfig({displayName:"searchable-multi-select__Chip",componentId:"sc-1uno2tp-1"})(["display:flex;align-items:center;"])},v=function SearchableMultiSelect(e){var t=e.onSelect,n=e.options,a=e.onFocus,i=e.onBlur,o=e.invalid,u=e.disabled,m=e.name,h=e.id,g=e.testId,v=e.chipElement,O=e.placeholder,T=Object(l.useState)(""),y=Object(c.a)(T,2),S=y[0],C=y[1],A=Object(d.c)({initialSelectedItems:[],onSelectedItemsChange:function onSelectedItemsChange(e){var n=e.selectedItems;t(n)}}),E=A.getDropdownProps,w=A.addSelectedItem,_=A.removeSelectedItem,I=A.selectedItems,x=Object(l.useMemo)((function(){return n.filter((function(e){return!I.find((function(t){return t.label===e.label}))&&e.label.toLowerCase().includes(S.toLowerCase())}))}),[S,n,I]),k=Object(d.b)({inputValue:S,items:x,stateReducer:function stateReducer(e,t){var n=t.type,r=t.changes;switch(n){case d.b.stateChangeTypes.FunctionToggleMenu:return r.isOpen?r:Object(s.a)(Object(s.a)({},r),{},{inputValue:r.selectedItem?r.inputValue:""});case d.b.stateChangeTypes.InputBlur:return Object(s.a)(Object(s.a)({},r),{},{inputValue:r.selectedItem?r.inputValue:""});default:return r}},onStateChange:function onStateChange(e){var t=e.inputValue,n=e.type,r=e.selectedItem;switch(n){case d.b.stateChangeTypes.InputChange:C(null!==t&&void 0!==t?t:"");break;case d.b.stateChangeTypes.InputKeyDownEnter:case d.b.stateChangeTypes.ItemClick:case d.b.stateChangeTypes.InputBlur:r&&(C(""),w(r),P({label:"",value:null}))}}}),N=k.isOpen,R=k.getMenuProps,F=k.getInputProps,M=k.getComboboxProps,D=k.highlightedIndex,L=k.getItemProps,P=k.selectItem,U=k.toggleMenu;return Object(r.jsxs)(j.SelectContainer,{children:[Object(r.jsx)(p.a,{toggleMenu:U,comboboxProps:M(),inputProps:F(Object(s.a)(Object(s.a)({},E(Object(s.a)(Object(s.a)({},h&&{id:h}),{},{disabled:u,preventKeyAction:N}))),{},{refKey:"inputRef"})),onFocus:a,onBlur:i,disabled:u,invalid:o,id:h,name:m,testId:g,placeholder:O,children:I.map((function(e,t){return Object(r.jsx)(j.Chip,{children:v(e.label,(function(t){t.stopPropagation(),_(e)}))},"selected-item-".concat(t))}))}),Object(r.jsx)(b.a,{isOpen:N,menuProps:R(Object(s.a)(Object(s.a)({},h&&{id:"".concat(h,"-menu")}),{},{refKey:"menuRef"})),children:N?x.map((function(e,t){return Object(r.jsx)(b.b,{itemProps:L(Object(s.a)(Object(s.a)({},h&&{id:"".concat(h,"-menu-item-").concat(e.value)}),{},{item:e,index:t,refKey:"itemRef"})),item:e,highlight:D===t},"".concat(e.value))})):null})]})},O=function SearchableMultiSelectField(e){return Object(r.jsx)(a.a,{name:e.fieldName,validate:e.validation,initialValue:e.initialValue,children:function children(t){var n,a,o,c=t.input,s=t.meta,l=!(!s.error&&!s.submitError||!s.touched)||!(s.touched||!e.error),u=s.error||s.submitError||e.error;return Object(r.jsx)(i.a,{label:e.label,name:null!==(n=e.id)&&void 0!==n?n:e.fieldName,error:l?u:void 0,helpText:e.helpText,children:Object(r.jsx)(v,{options:e.options,onSelect:function handleSelect(e){return c.onChange({target:{value:null===e||void 0===e?void 0:e.map((function(e){return e.value}))}})},id:null!==(a=e.id)&&void 0!==a?a:e.fieldName,name:e.fieldName,required:e.required,testId:null!==(o=e.testId)&&void 0!==o?o:"".concat(e.fieldName,"-select-field"),chipElement:e.chipElement,placeholder:e.placeholder})})}})},T=function SelectField(e){var t=e.searchable?g:o.a;return Object(r.jsx)(a.a,{name:e.fieldName,validate:e.validation,initialValue:e.initialValue,children:function children(n){var a,o,c,s=n.input,l=n.meta,u=!(!l.error&&!l.submitError||!l.touched)||!(l.touched||!e.error),d=l.error||l.submitError||e.error;return Object(r.jsx)(i.a,{label:e.label,name:null!==(a=e.id)&&void 0!==a?a:e.fieldName,error:u?d:void 0,helpText:e.helpText,children:Object(r.jsx)(t,{options:e.options,value:s.value,onSelect:function handleSelect(t){e.onSelect&&e.onSelect(t)||s.onChange({target:{value:t}})},id:null!==(o=e.id)&&void 0!==o?o:e.fieldName,name:e.fieldName,required:e.required,testId:null!==(c=e.testId)&&void 0!==c?c:"".concat(e.fieldName,"-select-field")})})}})}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return mapToContactEntry}));var r,a,i=n(3),o=n(10),c=n(5),s=n(6),l=n(20),u=n(16),d=n(529);!function(e){e.OFFICE="OFFICE",e.HOME="HOME",e.MOBILE="MOBILE",e.SATELLITE="SATELLITE"}(r||(r={})),function(e){e[e.OFFICE=1]="OFFICE",e[e.HOME=2]="HOME",e[e.MOBILE=3]="MOBILE",e[e.SATELLITE=4]="SATELLITE"}(a||(a={}));var b=function(e){Object(c.a)(RequestContactApiAction,e);var t=Object(s.a)(RequestContactApiAction);function RequestContactApiAction(e){var n;return Object(i.a)(this,RequestContactApiAction),(n=t.call(this)).id=e,n}return Object(o.a)(RequestContactApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact/").concat(this.id),method:u.c.GET}}}]),RequestContactApiAction}(l.a),p=function(e){Object(c.a)(RequestContactsApiAction,e);var t=Object(s.a)(RequestContactsApiAction);function RequestContactsApiAction(){return Object(i.a)(this,RequestContactsApiAction),t.apply(this,arguments)}return Object(o.a)(RequestContactsApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/contacts"),method:u.c.GET}}},{key:"mapResponse",value:function mapResponse(e){var t=function phoneMap(e){switch(e){case a.HOME:return r.HOME;case a.MOBILE:return r.MOBILE;case a.OFFICE:return r.OFFICE;case a.SATELLITE:return r.SATELLITE;default:return r.MOBILE}};return e.map((function(e){return{type:"contact",id:e.id,attributes:{firstName:e.firstName,lastName:e.lastName,type:e.type,company:e.company,title:e.title,team:e.team,country:e.country,address1:e.address1,address2:e.address2,address3:e.address3,adminDistrict1:e.adminDistrict1,adminDistrict2:e.adminDistrict2,postalCode:e.postalCode,city:e.city,yahooId:e.yahooId,foreignId:e.foreignId,createdAt:e.createdAt,modifiedAt:e.modifiedAt,emailAddresses:e.emails,phoneNumbers:e.phoneNumbers.map((function(e){return{type:t(e.type),number:e.number}}))}}}))}}]),RequestContactsApiAction}(l.a);function mapToContactEntry(e){var t,n,r=((null!==(t=e.attributes.firstName)&&void 0!==t?t:"")+" "+(null!==(n=e.attributes.lastName)&&void 0!==n?n:"")).trim();return{id:e.id,type:d.b.CONTACT,name:r,emails:e.attributes.emailAddresses.map((function(e){return e.trim()})),company:""!==e.attributes.company?e.attributes.company:null,team:""!==e.attributes.team?e.attributes.team:null,country:""!==e.attributes.country?e.attributes.country:null}}},function(e,t,n){"use strict";n.d(t,"n",(function(){return toJobReferenceTags})),n.d(t,"m",(function(){return toAssignments})),n.d(t,"o",(function(){return toKeywords})),n.d(t,"a",(function(){return R})),n.d(t,"i",(function(){return M})),n.d(t,"l",(function(){return L})),n.d(t,"d",(function(){return B})),n.d(t,"f",(function(){return G})),n.d(t,"g",(function(){return z})),n.d(t,"e",(function(){return J})),n.d(t,"j",(function(){return Y})),n.d(t,"h",(function(){return K})),n.d(t,"k",(function(){return Q})),n.d(t,"c",(function(){return $})),n.d(t,"b",(function(){return te}));var r,a,i,o,c,s,l,u,d,b,p,m=n(4),h=n(7),g=n(32),j=n.n(g),v=n(2),O=n(41),T=n(59),y=n(47),S=n(55),C=n(37),A=n(52),E=n(27),w=n(62),_=n(95),I=n(123),x=n(127);function toCategoryTagMetaFromMessageTag(e){var t;return{parentId:e.messageId,relationshipId:e.id,label:null!==(t=e.tag.label)&&void 0!==t?t:e.tag.name,tagId:e.tagId}}function toCategoryTagMetaFromApiResponse(e){return{parentId:e.parentId,relationshipId:e.relationshipId,label:e.label,tagId:e.tagId}}function toJobReferenceTags(e){return e.filter((function(e){return e.tag.tagTypeId===C.h.JOB_REFERENCE})).map((function(e){return toJobReferenceTag(e)}))}function toJobReferenceTag(e,t){var n;return{parentId:e.messageId,relationshipId:e.id,jobReferenceId:t,label:null!==(n=e.tag.label)&&void 0!==n?n:e.tag.name,tagId:e.tagId}}function toAssignments(e){return e.filter((function(e){return e.tag.tagTypeId===C.h.TODO})).map(toAssignment)}function toAssignment(e){return{id:assignmentId(String(e.messageId),String(e.assignedToUserId)),assignedToUserId:String(e.assignedToUserId),assignedByUserId:String(e.userId),time:e.createdAt}}function assignmentId(e,t){return"".concat(e,"-").concat(t)}function toKeywords(e){return e.filter((function(e){return e.tag.tagTypeId===C.h.KEYWORD})).map(toKeyword)}function toKeyword(e){var t;return{messageId:e.messageId,messageTagId:e.id,tagId:e.tagId,label:null!==(t=e.tag.label)&&void 0!==t?t:e.tag.name}}var k=(r={},Object(h.a)(r,T.e.name,(function(e,t){return v.p(v.e(),t.config.tags,(function(e){return e.tagId}))})),Object(h.a)(r,S.y.name,(function(e,t){return v.p(e,t.data.categoryMeta,(function(e){return e.tagId}))})),Object(h.a)(r,S.x.name,(function(e,t){return v.p(e,N(t.result.attributes.categoryTags.data),(function(e){return e.tagId}))})),Object(h.a)(r,y.j.name,(function(e,t){var n=t.messageDetails.reduce((function(e,t){return t.categories.forEach((function(t){e.find((function(e){return e.id===t.categoryTagId}))||e.push({id:t.categoryTagId,tagId:t.tagId,label:t.label,name:t.name})})),e}),[]);return v.p(e,n,(function(e){return e.tagId}))})),r),N=function categoryTagSearchToCategoryTag(e){return e.map((function(e){return Object(m.a)(Object(m.a)({},e.attributes),{},{id:e.id})}))},R=Object(O.a)(k,v.e()),F=(a={},Object(h.a)(a,S.C.name,(function(e,t){return t.teamIds.reduce((function(e,t){return v.r(e,t)}),e)})),Object(h.a)(a,S.y.name,(function(e,t){return v.q(e,t.data.teamCategoryMap)})),Object(h.a)(a,S.l.name,(function(e,t){return t.teamIds.reduce((function(e,n){return v.f(e,n,t.error)}),e)})),a),M=Object(O.a)(F,v.e()),D=(i={},Object(h.a)(i,E.G.name,(function(e,t){return v.q(e,t.details.jobReferences.filter((function(e){return!!e.vesselName})).reduce((function(e,t){return t.vesselName&&t.tagId&&(e[t.tagId]=t.vesselName),e}),{}))})),Object(h.a)(i,_.m.name,(function(e,t){return v.r(e,t.tagId)})),Object(h.a)(i,_.h.name,(function(e,t){var n=t.vesselName.toNullable();return n?v.o(e,t.tagId,n):e})),Object(h.a)(i,_.c.name,(function(e,t){return v.f(e,t.tagId,t.error)})),i),L=Object(O.a)(D,v.e()),P=(o={},Object(h.a)(o,T.e.name,(function(e,t){return v.p(v.e(),t.config.jobReferences,(function(e){return e.id}))})),Object(h.a)(o,S.n.name,(function(e,t){return v.g(e,t.jobReferenceId).map((function(n){return null!==n.tagId?e:v.o(e,t.jobReferenceId,Object(m.a)(Object(m.a)({},n),{},{tagId:t.messageTag.tagId}))})).orElse(e)})),Object(h.a)(o,_.i.name,(function(e,t){return v.p(e,U(t.result),(function(e){return e.id}))})),Object(h.a)(o,S.x.name,(function(e,t){return v.p(e,U(t.result.attributes.jobReferenceTags.data),(function(e){return e.id}))})),Object(h.a)(o,_.j.name,(function(e,t){return v.p(e,t.data.jobReferenceMeta,(function(e){return e.id}))})),o),U=function jobReferenceSearchToJobReference(e){return e.map((function(e){var t,n;try{n=JSON.parse(e.attributes.attributes)}catch(r){n={}}return Object(m.a)(Object(m.a)({},e.attributes),{},{attributes:n,id:e.id,tagId:(null===(t=e.relationships)||void 0===t?void 0:t.tag)?e.relationships.tag.data.id:null,companyId:e.relationships.company.data.id,type:e.attributes.referenceType})}))},B=Object(O.a)(P,v.e()),H=(c={},Object(h.a)(c,y.q.name,(function(e,t){return t.setMetaToLoading?v.e():e})),Object(h.a)(c,y.j.name,(function(e,t){return v.q(e,t.messageDetails.reduce((function(e,t){return e[t.id]=t.categories.map((function(e){return toCategoryTagMetaFromApiResponse(e)})),e}),{}))})),Object(h.a)(c,E.G.name,(function(e,t){return v.o(e,t.details.id,t.details.categories.map((function(e){return toCategoryTagMetaFromApiResponse(e)})))})),Object(h.a)(c,S.J.name,(function(e,t){var n=t.messageId,r=t.tagId,a=t.categoryTagLabel;return v.v(e,n,{parentId:n,tagId:r,label:a,relationshipId:null},(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(h.a)(c,S.s.name,(function(e,t){var n,r=t.messageTag,a=r.messageId,i=r.tagId,o=t.messageTag.id;return v.v(e,a,{parentId:a,tagId:i,relationshipId:o,label:null!==(n=t.messageTag.tag.label)&&void 0!==n?n:""},(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(h.a)(c,S.e.name,(function(e,t){var n=t.messageId,r=t.tagId;return v.c(e,(function(e){return e.parentId===n&&e.tagId===r}))})),Object(h.a)(c,S.K.name,(function(e,t){var n=t.messageTagId;return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!0})}),(function(e){return e.relationshipId===n}))})),Object(h.a)(c,S.t.name,(function(e,t){var n=t.messageTagId;return v.c(e,(function(e){return e.relationshipId===n}))})),Object(h.a)(c,S.h.name,(function(e,t){var n=t.messageTagId;return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!1})}),(function(e){return e.relationshipId===n}))})),Object(h.a)(c,E.w.name,(function(e,t){return v.x(e,t.result.reduce((function(e,t){return e[t.messageId]=[toCategoryTagMetaFromMessageTag(t)],e}),{}),(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(h.a)(c,E.g.name,(function(e,t){var n=new Set(t.messageIds);return v.c(e,(function(e){return n.has(e.parentId)&&e.tagId===t.tagId}))})),Object(h.a)(c,E.db.name,(function(e,t){var n=new Set(t.messageIds);return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!0})}),(function(e){return n.has(e.parentId)&&e.tagId===t.tagId}))})),Object(h.a)(c,E.y.name,(function(e,t){var n=new Set(t.messageIds);return v.c(e,(function(e){return n.has(e.parentId)&&e.tagId===t.tagId}))})),Object(h.a)(c,E.h.name,(function(e,t){var n=new Set(t.messageIds);return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!1})}),(function(e){return n.has(e.parentId)&&e.tagId===t.tagId}))})),Object(h.a)(c,E.E.name,(function(e,t){return v.o(e,t.response.id,[])})),Object(h.a)(c,w.g.name,(function(e,t){var n=t.messageTags.filter((function(e){return e.tag.tagTypeId===C.h.CATEGORY})).reduce((function(e,t){var n=t.messageId,r=toCategoryTagMetaFromMessageTag(t);return e.hasOwnProperty(n)?e[n].push(r):e[n]=[r],e}),{});return v.x(e,n,(function(e){return e.tagId}))})),Object(h.a)(c,w.h.name,(function(e,t){var n=Object(A.f)(t.messageTags,(function(e){return e.messageId}));return v.q(e,Object.keys(n).reduce((function(t,r){return t[r]=v.g(e,r).orElse([]).filter((function(e){return n[r].every((function(t){return t.id!==e.relationshipId}))})),t}),{}))})),c),G=Object(O.a)(H,v.e()),W=(s={},Object(h.a)(s,y.q.name,(function(e,t){return t.setMetaToLoading?v.e():e})),Object(h.a)(s,y.j.name,(function(e,t){return v.q(e,t.messageDetails.reduce((function(e,t){return e[t.id]=t.jobReferences,e}),{}))})),Object(h.a)(s,E.G.name,(function(e,t){return v.o(e,t.details.id,t.details.jobReferences)})),Object(h.a)(s,S.E.name,(function(e,t){return null===t.tagId?e:v.v(e,t.messageId,{parentId:t.messageId,relationshipId:null,tagId:t.tagId,label:t.label},(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(h.a)(s,S.n.name,(function(e,t){var n=t.messageTag.messageId;return v.v(e,n,toJobReferenceTag(t.messageTag,t.jobReferenceId),(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(h.a)(s,S.a.name,(function(e,t){return v.c(e,(function(e){return e.parentId===t.messageId&&e.tagId===t.tagId}))})),Object(h.a)(s,S.M.name,(function(e,t){return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!0})}),(function(e){return e.relationshipId===t.messageTagId}))})),Object(h.a)(s,S.w.name,(function(e,t){return v.c(e,(function(e){return e.relationshipId===t.messageTagId}))})),Object(h.a)(s,S.j.name,(function(e,t){return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!1})}),(function(e){return e.relationshipId===t.messageTagId}))})),Object(h.a)(s,S.p.name,(function(e,t){return v.x(e,t.response.reduce((function(e,n){return e[n.messageId]=[toJobReferenceTag(n,t.jobReferenceId)],e}),{}),(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(h.a)(s,S.H.name,(function(e,t){return v.x(e,t.messageIds.reduce((function(e,n){return e[n]=[{parentId:n,relationshipId:null,tagId:t.tagId,label:t.label}],e}),{}),(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(h.a)(s,S.q.name,(function(e,t){return v.x(e,t.response.reduce((function(e,n){return e[n.messageId]=[toJobReferenceTag(n,t.jobReferenceId)],e}),{}),(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(h.a)(s,S.c.name,(function(e,t){var n=new Set(t.messageIds);return v.c(e,(function(e){return n.has(e.parentId)&&e.tagId===t.tagId}))})),Object(h.a)(s,S.I.name,(function(e,t){var n=new Set(t.messageIds);return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!0})}),(function(e){return n.has(e.parentId)&&e.tagId===t.tagId}))})),Object(h.a)(s,S.r.name,(function(e,t){var n=new Set(t.messageIds);return v.c(e,(function(e){return n.has(e.parentId)&&e.tagId===t.tagId}))})),Object(h.a)(s,S.d.name,(function(e,t){var n=new Set(t.messageIds);return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!1})}),(function(e){return n.has(e.parentId)&&e.tagId===t.tagId}))})),Object(h.a)(s,E.E.name,(function(e,t){return v.o(e,t.response.id,[])})),Object(h.a)(s,w.g.name,(function(e,t){var n=t.messageTags.filter((function(e){return e.tag.tagTypeId===C.h.JOB_REFERENCE})).reduce((function(e,t){var n=t.messageId,r=toJobReferenceTag(t);return e.hasOwnProperty(n)?e[n].push(r):e[n]=[r],e}),{});return v.k(e,n,(function(e){return"".concat(e.parentId,"-").concat(e.tagId)}))})),Object(h.a)(s,w.h.name,(function(e,t){var n=Object(A.f)(t.messageTags,(function(e){return e.messageId}));return v.q(e,Object.keys(n).reduce((function(t,r){return t[r]=v.g(e,r).orElse([]).filter((function(e){return n[r].every((function(t){return t.id!==e.relationshipId}))})),t}),{}))})),s),z=Object(O.a)(W,v.e()),V=(l={},Object(h.a)(l,y.q.name,(function(e,t){return t.setMetaToLoading?v.e():e})),Object(h.a)(l,y.j.name,(function(e,t){return v.q(e,t.messageDetails.reduce((function(e,t){return e[t.id]=t.assignments,e}),{}))})),Object(h.a)(l,E.G.name,(function(e,t){var n=t.details,r=n.id,a=n.assignments;return v.o(e,r,a)})),Object(h.a)(l,S.F.name,(function(e,t){return v.w(e,t.messageId,t.userIds.map((function(e){return{id:assignmentId(t.messageId,e),assignedByUserId:t.currentUserId,assignedToUserId:e,time:t.time}})),(function(e){return e.id}))})),Object(h.a)(l,S.o.name,(function(e,t){return v.j(e,t.messageId,t.resp.data.map((function(e){return{id:assignmentId(t.messageId,e.id),assignedToUserId:e.id,assignedByUserId:e.meta.assignedBy,time:e.meta.assignedAt}})),(function(e){return e.id}))})),Object(h.a)(l,S.b.name,(function(e,t){return v.c(e,(function(e){return t.userIds.includes(e.assignedToUserId)}))})),Object(h.a)(l,I.f.name,(function(e,t){return v.w(e,t.messageId,t.userIds.map((function(e){return{id:assignmentId(t.messageId,e),assignedByUserId:t.currentUserId,assignedToUserId:e,time:t.time}})),(function(e){return e.id}))})),Object(h.a)(l,I.a.name,(function(e,t){return v.c(e,(function(e){return t.userIds.includes(e.assignedToUserId)}))})),Object(h.a)(l,S.O.name,(function(e,t){var n=t.userIds.map((function(e){return assignmentId(t.messageId,e)}));return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!0})}),(function(e){return n.includes(e.id)}))})),Object(h.a)(l,S.z.name,(function(e,t){return v.s(e,t.messageId,(function(e){return t.userIds.includes(e.assignedToUserId)}))})),Object(h.a)(l,S.m.name,(function(e,t){var n=t.userIds.map((function(e){return assignmentId(t.messageId,e)}));return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!1})}),(function(e){return n.includes(e.id)}))})),Object(h.a)(l,E.E.name,(function(e,t){return v.o(e,t.response.id,[])})),Object(h.a)(l,E.ab.name,(function(e,t){return v.x(e,t.messageIds.reduce((function(e,n){return e[n]=[{id:assignmentId(n,t.toUserId),assignedToUserId:t.toUserId,assignedByUserId:t.byUserId,time:j()().toISOString()}],e}),{}),(function(e){return e.id}))})),Object(h.a)(l,E.v.name,(function(e,t){return v.x(e,t.response.reduce((function(e,t){return e[t.messageId]=[toAssignment(t)],e}),{}),(function(e){return e.assignedToUserId}))})),Object(h.a)(l,E.f.name,(function(e,t){var n=new Set(t.messageIds.map((function(e){return assignmentId(e,t.toUserId)})));return v.c(e,(function(e){return n.has(e.id)}))})),Object(h.a)(l,E.gb.name,(function(e,t){var n=new Set(t.messageIds.map((function(e){return assignmentId(e,t.toUserId)})));return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!0})}),(function(e){return n.has(e.id)}))})),Object(h.a)(l,E.A.name,(function(e,t){var n=new Set(t.messageIds.map((function(e){return assignmentId(e,t.userId)})));return v.c(e,(function(e){return n.has(e.id)}))})),Object(h.a)(l,E.j.name,(function(e,t){var n=new Set(t.messageIds.map((function(e){return assignmentId(e,t.toUserId)})));return v.u(e,(function(e){return Object(m.a)(Object(m.a)({},e),{},{deleteInProgress:!1})}),(function(e){return n.has(e.id)}))})),Object(h.a)(l,w.g.name,(function(e,t){var n=t.messageTags.filter((function(e){return e.tag.tagTypeId===C.h.TODO})).reduce((function(e,t){var n=t.messageId,r=toAssignment(t);return e.hasOwnProperty(n)?e[n].push(r):e[n]=[r],e}),{});return v.k(e,n,(function(e){return e.id}))})),Object(h.a)(l,w.h.name,(function(e,t){var n=Object(A.f)(t.messageTags.filter((function(e){return e.tag.tagTypeId===C.h.TODO})),(function(e){return e.messageId}));return v.q(e,Object.keys(n).reduce((function(t,r){return t[r]=v.g(e,r).orElse([]).filter((function(e){return n[r].every((function(t){return t.assignedToUserId&&e.id!==assignmentId(t.messageId,t.assignedToUserId)}))})),t}),{}))})),l),J=Object(O.a)(V,v.e()),Y=Object(O.a)({},v.e()),q=(u={},Object(h.a)(u,y.q.name,(function(e,t){return t.setMetaToLoading?v.e():e})),Object(h.a)(u,E.G.name,(function(e,t){return v.o(e,t.details.id,t.details.keywords)})),Object(h.a)(u,w.g.name,(function(e,t){var n=t.messageTags.filter((function(e){return e.tag.tagTypeId===C.h.KEYWORD})).reduce((function(e,t){var n=t.messageId,r=toKeyword(t);return e.hasOwnProperty(n)?e[n].push(r):e[n]=[r],e}),{});return v.x(e,n,(function(e){return e.messageTagId}))})),Object(h.a)(u,w.h.name,(function(e,t){var n=Object(A.f)(t.messageTags,(function(e){return e.messageId}));return v.q(e,Object.keys(n).reduce((function(t,r){return t[r]=v.g(e,r).orElse([]).filter((function(e){return n[r].every((function(t){return t.id!==e.messageTagId}))})),t}),{}))})),u),K=Object(O.a)(q,v.e()),X=(d={},Object(h.a)(d,S.v.name,(function(e,t){return v.q(e,t.jobReferenceTagCollection.data.reduce((function(e,t){return e[t.id]={id:t.id,name:t.attributes.name,label:t.attributes.label,archived:t.attributes.archived},e}),{}))})),Object(h.a)(d,x.e.name,(function(e,t){return v.b(e,t.jobReferenceId)})),d),Q=Object(O.a)(X,v.e()),Z=(b={},Object(h.a)(b,S.f.name,(function(e,t){return v.b(e,t.categoryTag.id)})),Object(h.a)(b,S.D.name,(function(e,t){return v.o(e,t.categoryTag.id,{id:t.categoryTag.id})})),Object(h.a)(b,S.L.name,(function(e,t){return v.b(e,t.categoryTagId)})),Object(h.a)(b,S.g.name,(function(e,t){return v.o(e,t.categoryTagId,{id:t.categoryTagId})})),Object(h.a)(b,S.u.name,(function(e,t){return v.p(v.e(),t.response.data,(function(e){return e.id}))})),Object(h.a)(b,S.i.name,(function(e,t){return v.e()})),b),$=Object(O.a)(Z,v.e()),ee=(p={},Object(h.a)(p,S.x.name,(function(e,t){return v.o(e,t.id,t.result.attributes.categoryTags.data)})),Object(h.a)(p,S.k.name,(function(e,t){return v.f(e,t.id,t.error)})),p),te=Object(O.a)(ee,v.e())},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(0),a=n(1),i=n(31),o=n(9),c=n(643),s=n(723),l=n(724),u=n(914),d=n(1443),b=n(248),p=n(34),m=n(571),h=n(24),g=n.n(h),j=function GenericConfirmationModal(e){var t,n,h=e.toggle,j=e.isOpen,v=e.modalId,O=e.headerText,T=e.children,y=e.onDoNotAskChange,S=e.isDoNotAskChecked,C=e.cancelText,A=e.confirm,E=e.confirmText,w=e.wide,_=a.useCallback((function(){y&&y(!S)}),[y,S]),I=Object(r.jsx)(i.a,{className:"u-self-start",buttonContent:"Close",iconGlyph:Object(o.e)(o.c.CLEAR),onClick:h,"data-testid":"close-modal-button"});return Object(r.jsxs)(c.a,{wrapClassName:"c--modal-wrapper",className:g()("c-modal c--button-r",{"c--shared-page":w}),isOpen:j,toggle:h,"data-testid":"confirmation-modal","data-modal-id":v,children:[Object(r.jsx)(s.a,{toggle:h,close:I,children:O}),T&&Object(r.jsx)(l.a,{children:Object(m.a)(T)}),Object(r.jsxs)(u.a,{children:[y&&Object(r.jsx)(d.a,{className:"u-flex-auto",children:Object(r.jsx)(b.a,{id:"generic-confirmation-modal-do-not-ask",isChecked:!!S,onChange:_,children:Object(r.jsx)("span",{children:"Do not ask me again on this device"})})}),Object(r.jsx)(p.a,{buttonStyle:"link",onClick:h,"data-testid":null!==(t=e.cancelTestId)&&void 0!==t?t:"cancel-button",children:C}),Object(r.jsx)(p.a,{buttonStyle:"primary",onClick:A,"data-testid":null!==(n=e.confirmTestId)&&void 0!==n?n:"confirm-button",children:E})]})]},"confirmationModal")}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return LoadingError}));var r=n(0);function LoadingError(e){var t=e.errorText;return Object(r.jsx)("div",{className:"alert alert-danger",role:"alert",children:t})}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"h",(function(){return b})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return g}));var r=n(4),a=n(97),i=n(51),o=n(17),c=n(126),s="SEDNA_LITE_AUTH_V1",l=function getAuthState(){return Object(a.a)(s,null)},u=function getAuthToken(){var e,t;return null!==(e=null===(t=l())||void 0===t?void 0:t.token)&&void 0!==e?e:null},d=function getExternalUserId(){var e,t;return null!==(e=null===(t=l())||void 0===t?void 0:t.externalUserId)&&void 0!==e?e:null},b=function setExternalUserId(e){return Object(a.c)(s,Object(r.a)(Object(r.a)({},l()),{},{externalUserId:e}))},p=function removeAuthToken(){return Object(a.c)(s,Object(r.a)(Object(r.a)({},l()),{},{token:null}))},m=function removeAuthState(){return Object(a.b)(s)},h=function buildSednaLiteLoginHref(e){return"".concat(window.location.origin).concat(i.i).concat(o.a.SEDNA_LITE_LOGIN(Object(c.c)()),"?").concat(new URLSearchParams(Object(r.a)({redirectUri:window.location.href.split("?")[0]},e&&{expired:"true"})))},g=function authenticateSednaLiteUser(){return new Promise((function(e){var t=u(),n=new URLSearchParams(window.location.search).get("t");if(!n&&!t)return window.location.href=h(),void e(!1);n&&(Object(a.c)(s,Object(r.a)(Object(r.a)({},l()),{},{token:n})),window.location.search=""),e(!0)}))}},function(e,t,n){"use strict";n.d(t,"k",(function(){return T})),n.d(t,"h",(function(){return y})),n.d(t,"c",(function(){return S})),n.d(t,"m",(function(){return C})),n.d(t,"j",(function(){return A})),n.d(t,"e",(function(){return E})),n.d(t,"l",(function(){return w})),n.d(t,"i",(function(){return _})),n.d(t,"d",(function(){return I})),n.d(t,"o",(function(){return x})),n.d(t,"g",(function(){return k})),n.d(t,"n",(function(){return N})),n.d(t,"f",(function(){return R})),n.d(t,"a",(function(){return F})),n.d(t,"b",(function(){return M}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(4),l=n(20),u=n(16),d=function(e){Object(i.a)(ProfileListApiAction,e);var t=Object(o.a)(ProfileListApiAction);function ProfileListApiAction(){return Object(r.a)(this,ProfileListApiAction),t.apply(this,arguments)}return Object(a.a)(ProfileListApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/profile"),method:u.c.GET}}}]),ProfileListApiAction}(l.a),b=function(e){Object(i.a)(TenantProfileGetApiAction,e);var t=Object(o.a)(TenantProfileGetApiAction);function TenantProfileGetApiAction(e){var n;return Object(r.a)(this,TenantProfileGetApiAction),(n=t.call(this)).uuid=e,n}return Object(a.a)(TenantProfileGetApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/profile/tenant/").concat(this.uuid),method:u.c.GET}}}]),TenantProfileGetApiAction}(l.a),p=function(e){Object(i.a)(TeamProfileGetApiAction,e);var t=Object(o.a)(TeamProfileGetApiAction);function TeamProfileGetApiAction(e){var n;return Object(r.a)(this,TeamProfileGetApiAction),(n=t.call(this)).uuid=e,n}return Object(a.a)(TeamProfileGetApiAction,[{key:"mapResponse",value:function mapResponse(e){return{name:e.name,country:e.location.country,city:e.location.city,address:e.location.address,email:e.email,notes:e.notes,isPublic:e.isPublic}}},{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/profile/team/").concat(this.uuid),method:u.c.GET}}}]),TeamProfileGetApiAction}(l.a),m=function(e){Object(i.a)(TeamProfileUpdateApiAction,e);var t=Object(o.a)(TeamProfileUpdateApiAction);function TeamProfileUpdateApiAction(e,n){var a;return Object(r.a)(this,TeamProfileUpdateApiAction),(a=t.call(this)).uuid=e,a.teamProfileDetails=n,a}return Object(a.a)(TeamProfileUpdateApiAction,[{key:"mapResponse",value:function mapResponse(e){return{name:e.name,country:e.location.country,city:e.location.city,address:e.location.address,email:e.email,notes:e.notes,isPublic:e.isPublic}}},{key:"apiEffect",value:function apiEffect(e){var t=JSON.stringify({uuid:this.uuid,name:this.teamProfileDetails.name,location:{country:this.teamProfileDetails.country,city:this.teamProfileDetails.city,address:this.teamProfileDetails.address},email:this.teamProfileDetails.email,notes:this.teamProfileDetails.notes,isPublic:this.teamProfileDetails.isPublic});return{path:"".concat(e.platformUrl,"/profile/team/").concat(this.uuid),method:u.c.PUT,body:t}}}]),TeamProfileUpdateApiAction}(l.a),h=function(e){Object(i.a)(TenantProfileUpdateApiAction,e);var t=Object(o.a)(TenantProfileUpdateApiAction);function TenantProfileUpdateApiAction(e,n){var a;return Object(r.a)(this,TenantProfileUpdateApiAction),(a=t.call(this)).uuid=e,a.tenantProfileDetails=n,a}return Object(a.a)(TenantProfileUpdateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/profile/tenant/").concat(this.uuid),method:u.c.PUT,body:buildTenantProfileBody(this.uuid,this.tenantProfileDetails)}}}]),TenantProfileUpdateApiAction}(l.a),g=function(e){Object(i.a)(TenantProfileCreateApiAction,e);var t=Object(o.a)(TenantProfileCreateApiAction);function TenantProfileCreateApiAction(e,n){var a;return Object(r.a)(this,TenantProfileCreateApiAction),(a=t.call(this)).uuid=e,a.tenantProfileDetails=n,a}return Object(a.a)(TenantProfileCreateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/profile/tenant"),method:u.c.POST,body:buildTenantProfileBody(this.uuid,this.tenantProfileDetails)}}}]),TenantProfileCreateApiAction}(l.a),j=function(e){Object(i.a)(TeamProfileCreateAction,e);var t=Object(o.a)(TeamProfileCreateAction);function TeamProfileCreateAction(e,n){var a;return Object(r.a)(this,TeamProfileCreateAction),(a=t.call(this)).uuid=e,a.teamProfileDetails=n,a}return Object(a.a)(TeamProfileCreateAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/profile/team"),method:u.c.POST,body:JSON.stringify({uuid:this.uuid,name:this.teamProfileDetails.name,location:{country:this.teamProfileDetails.country,city:this.teamProfileDetails.city,address:this.teamProfileDetails.address},email:this.teamProfileDetails.email,notes:this.teamProfileDetails.notes,isPublic:this.teamProfileDetails.isPublic})}}}]),TeamProfileCreateAction}(l.a);function buildTenantProfileBody(e,t){return JSON.stringify(Object(s.a)({uuid:e},t))}var v=n(43),O=n(8),T=function(e){Object(i.a)(RequestProfileList,e);var t=Object(o.a)(RequestProfileList);function RequestProfileList(){return Object(r.a)(this,RequestProfileList),t.apply(this,arguments)}return Object(a.a)(RequestProfileList,[{key:"onSuccess",value:function onSuccess(e){return[new y(e)]}},{key:"onError",value:function onError(e){return[new S(e)]}}]),RequestProfileList}(d),y=function(e){Object(i.a)(FulfillProfileList,e);var t=Object(o.a)(FulfillProfileList);function FulfillProfileList(e){var n;return Object(r.a)(this,FulfillProfileList),(n=t.call(this)).response=e,n}return FulfillProfileList}(c.a),S=function(e){Object(i.a)(FailProfileList,e);var t=Object(o.a)(FailProfileList);function FailProfileList(e){var n;return Object(r.a)(this,FailProfileList),(n=t.call(this,e)).error=e,n}return FailProfileList}(c.b),C=function(e){Object(i.a)(RequestTenantProfileDetails,e);var t=Object(o.a)(RequestTenantProfileDetails);function RequestTenantProfileDetails(e){var n;return Object(r.a)(this,RequestTenantProfileDetails),(n=t.call(this,e)).uuid=e,n}return Object(a.a)(RequestTenantProfileDetails,[{key:"onSuccess",value:function onSuccess(e){return[new A(e,this.uuid)]}},{key:"onError",value:function onError(e){return[new E(e,this.uuid)]}}]),RequestTenantProfileDetails}(b),A=function(e){Object(i.a)(FulfillTenantProfileDetails,e);var t=Object(o.a)(FulfillTenantProfileDetails);function FulfillTenantProfileDetails(e,n){var a;return Object(r.a)(this,FulfillTenantProfileDetails),(a=t.call(this)).response=e,a.uuid=n,a}return FulfillTenantProfileDetails}(c.a),E=function(e){Object(i.a)(FailTenantProfileDetails,e);var t=Object(o.a)(FailTenantProfileDetails);function FailTenantProfileDetails(e,n){var a;return Object(r.a)(this,FailTenantProfileDetails),(a=t.call(this,e)).error=e,a.uuid=n,a}return FailTenantProfileDetails}(c.b),w=function(e){Object(i.a)(RequestTeamProfileDetails,e);var t=Object(o.a)(RequestTeamProfileDetails);function RequestTeamProfileDetails(e){var n;return Object(r.a)(this,RequestTeamProfileDetails),(n=t.call(this,e)).uuid=e,n}return Object(a.a)(RequestTeamProfileDetails,[{key:"onSuccess",value:function onSuccess(e){return[new _(e,this.uuid)]}},{key:"onError",value:function onError(e){return[new I(e,this.uuid)]}}]),RequestTeamProfileDetails}(p),_=function(e){Object(i.a)(FulfillTeamProfileDetails,e);var t=Object(o.a)(FulfillTeamProfileDetails);function FulfillTeamProfileDetails(e,n){var a;return Object(r.a)(this,FulfillTeamProfileDetails),(a=t.call(this)).response=e,a.uuid=n,a}return FulfillTeamProfileDetails}(c.a),I=function(e){Object(i.a)(FailTeamProfileDetails,e);var t=Object(o.a)(FailTeamProfileDetails);function FailTeamProfileDetails(e,n){var a;return Object(r.a)(this,FailTeamProfileDetails),(a=t.call(this,e)).error=e,a.uuid=n,a}return FailTeamProfileDetails}(c.b),x=function(e){Object(i.a)(UpdateTenantProfileDetails,e);var t=Object(o.a)(UpdateTenantProfileDetails);function UpdateTenantProfileDetails(e,n,a){var i;return Object(r.a)(this,UpdateTenantProfileDetails),(i=t.call(this,e,n)).uuid=e,i.updatedTenantProfileDetails=n,i.oldTenantProfileDetails=a,i}return Object(a.a)(UpdateTenantProfileDetails,[{key:"onSuccess",value:function onSuccess(e){return[new A(e,this.uuid),new v.b({message:"Tenant profile updated",level:O.n.info})]}},{key:"onError",value:function onError(e){return[new k(e,this.uuid,this.oldTenantProfileDetails),new v.b({message:"Failed to update tenant profile",level:O.n.warning})]}}]),UpdateTenantProfileDetails}(h),k=function(e){Object(i.a)(FailUpdateTenantProfileDetails,e);var t=Object(o.a)(FailUpdateTenantProfileDetails);function FailUpdateTenantProfileDetails(e,n,a){var i;return Object(r.a)(this,FailUpdateTenantProfileDetails),(i=t.call(this,e)).error=e,i.uuid=n,i.oldTenantProfileDetails=a,i}return FailUpdateTenantProfileDetails}(c.b),N=function(e){Object(i.a)(UpdateTeamProfileDetails,e);var t=Object(o.a)(UpdateTeamProfileDetails);function UpdateTeamProfileDetails(e,n,a){var i;return Object(r.a)(this,UpdateTeamProfileDetails),(i=t.call(this,e,n)).uuid=e,i.updatedTeamProfileDetails=n,i.oldTeamProfileDetails=a,i}return Object(a.a)(UpdateTeamProfileDetails,[{key:"onSuccess",value:function onSuccess(e){return[new _(e,this.uuid),new v.b({message:"Team profile updated",level:O.n.info})]}},{key:"onError",value:function onError(e){return[new R(e,this.uuid,this.oldTeamProfileDetails),new v.b({message:"Failed to update team profile",level:O.n.warning})]}}]),UpdateTeamProfileDetails}(m),R=function(e){Object(i.a)(FailUpdateTeamProfileDetails,e);var t=Object(o.a)(FailUpdateTeamProfileDetails);function FailUpdateTeamProfileDetails(e,n,a){var i;return Object(r.a)(this,FailUpdateTeamProfileDetails),(i=t.call(this,e)).error=e,i.uuid=n,i.oldTeamProfileDetails=a,i}return FailUpdateTeamProfileDetails}(c.b),F=function(e){Object(i.a)(CreateNewTeamProfile,e);var t=Object(o.a)(CreateNewTeamProfile);function CreateNewTeamProfile(){return Object(r.a)(this,CreateNewTeamProfile),t.apply(this,arguments)}return Object(a.a)(CreateNewTeamProfile,[{key:"onError",value:function onError(e){return[new I(e,this.uuid),new v.b({message:"Failed to create team profile",level:O.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){return[new _(e,this.uuid),new v.b({message:"Successfully created profile",level:O.n.warning})]}}]),CreateNewTeamProfile}(j),M=function(e){Object(i.a)(CreateNewTenantProfile,e);var t=Object(o.a)(CreateNewTenantProfile);function CreateNewTenantProfile(){return Object(r.a)(this,CreateNewTenantProfile),t.apply(this,arguments)}return Object(a.a)(CreateNewTenantProfile,[{key:"onError",value:function onError(e){return[new E(e,this.uuid),new v.b({message:"Failed to create tenant profile",level:O.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){return[new A(e,this.uuid),new v.b({message:"Successfully created profile",level:O.n.warning})]}}]),CreateNewTenantProfile}(g)},function(e,t,n){"use strict";n.d(t,"c",(function(){return isCollapsedBucketLocation})),n.d(t,"a",(function(){return bucketRefreshInterval})),n.d(t,"d",(function(){return isCurrentSearchInFullView})),n.d(t,"b",(function(){return getBucketDetailsFromType}));var r=n(30),a=n(129),i=n(9),o=n(25),c=n(8);function isCollapsedBucketLocation(e){var t=Object(r.parse)(e),n=t.filter?t:{filter:c.h.inbox},i=t.teams||t.teamId;return a.b.includes(n.filter)&&!n.filterSet&&function handleTeams(e,t){return o.a.of(t).map((function(t){return!("all"===t&&e!==c.h.myWork||"all"!==t&&e===c.h.myWork)&&1===t.split(",").length})).orElse(!0)}(n.filter,i)}function bucketRefreshInterval(){return a.c+Math.random()*a.d}function isCurrentSearchInFullView(e,t,n,a){var i=Object(r.parse)(e),o=Object(r.parse)(t),c=Object(r.parse)(n),s=Object(r.parse)(a);return s.filter===o.filter&&s.filterSet===o.filterSet&&s.teams===o.teams||s.filter===i.filter&&s.filterSet===i.filterSet&&s.teams===i.teams||s.filter===c.filter&&s.filterSet===c.filterSet&&s.teams===c.teams}function getBucketDetailsFromType(e){return{backgroundColor:a.e.DEFAULT,textColour:a.e.DEFAULT_TEXT,icon:i.c.SEARCH}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return getEmailsFromEmailAddresses})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"f",(function(){return h}));var r=n(84),a=n(2),i=n(42),o=n(52),c=n(26),s=n(25),l=n(63);function getEmailsFromEmailAddresses(e){return Object(o.b)([e.toAddresses,e.ccAddresses,e.bccAddresses]).filter((function(e){return!!e.email})).map((function(e){return e.email})).concat(e.fromEmail)}var u=Object(r.a)([function getMessageMeta(e,t){return a.g(e.entities.messageMeta,t.match.params.id)},function getEmailContactStore(e){return e.entities.emailContact}],(function(e,t){return e.map(getEmailsFromEmailAddresses).flatMap((function(e){return i.a.traverse(e,(function(e){return a.g(t,e.toLowerCase()).map((function(t){return t.length>0?e:null}))})).map((function(e){return new Set(e.filter((function(e){return null!==e})))}))}))})),d=Object(c.b)([function(e,t){return t.currentUser},function(e,t){return a.g(e.entities.messageAssignment,t.match.params.id)}],(function(e,t){return s.a.of(t.orElse([]).find((function(t){return t.assignedToUserId===e.id&&!t.deleteInProgress})))})),b=Object(c.b)([function(e,t){return e.entities.comment},function(e,t){return a.g(e.entities.messageComment,t)}],(function(e,t){return a.m(t,(function(t){return a.g(e,t)}))})),p=Object(c.b)([function(e){return e.entities.publicComment},function(e,t){return a.g(e.entities.messagePublicComment,t)}],(function(e,t){return a.m(t,(function(t){return a.g(e,t)}))})),m=Object(c.b)([function(e,t){return e.entities.share},function(e,t){return a.g(e.entities.messageShare,t)}],(function(e,t){return a.m(t,(function(t){return a.g(e,t)}))})),h=Object(c.b)([function(e){return e.entities.team},function(e,t){return a.g(e.entities.messageTeam,t)}],(function(e,t){var n=a.h(e).filter((function(e){return null===e.deletedAt}));return t.map((function(e){var t=new Set(e);return n.filter((function(e){return t.has(e.id)})).sort(Object(l.a)((function(e){return e.name})))}))}))},,,,function(e,t,n){"use strict";function escapeRegexCharacters(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wordBoundaryRegex(e){return new RegExp("\\b"+escapeRegexCharacters(e.trim()),"i")}function partialMatchRegex(e){return new RegExp(escapeRegexCharacters(e.trim()),"i")}function filterArrayByLabel(e,t,n){var r=n?partialMatchRegex(e):wordBoundaryRegex(e);return t.filter((function(e){return r.test(e.label)}))}function nl2br(e){return"undefined"===typeof e||null===e?"":(e+"").replace(/(\r\n|\n\r|\r|\n)/g,"<br />")}function wrapNewLineWithDiv(e){return"undefined"===typeof e||null===e?"":"<div>"+(e+"").replace(/(\r\n|\n\r|\r|\n)/g,"</div><div>").replace(/<div><\/div>/g,"<div><br /></div>")+"</div>"}n.d(t,"d",(function(){return wordBoundaryRegex})),n.d(t,"c",(function(){return partialMatchRegex})),n.d(t,"a",(function(){return filterArrayByLabel})),n.d(t,"b",(function(){return nl2br})),n.d(t,"e",(function(){return wrapNewLineWithDiv}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(24),u=n.n(l),d=(n(923),n(725)),b=n(394),p=n(19),m=n(9),h=n(8),g=function(e){Object(i.a)(MessageAddress,e);var t=Object(o.a)(MessageAddress);function MessageAddress(e){var n;return Object(r.a)(this,MessageAddress),(n=t.call(this,e)).toggleContactCard=function(){n.setState((function(e){return{displayContactCard:!e.displayContactCard}}),(function(){n.state.displayContactCard&&n.props.showAddressOverLay&&n.props.showAddressOverLay()}))},n.state={displayContactCard:!1},n}return Object(a.a)(MessageAddress,[{key:"render",value:function render(){var e=this.props.address,t=e.name,n=e.email,r=this.props.recognized===h.a.IN_ADDRESS_BOOK,a=this.props.isCompose&&!r&&t&&n?"".concat(t," <").concat(n,">"):r?(null!==t&&void 0!==t?t:"")||(null!==n&&void 0!==n?n:"")||"unknown":(null!==n&&void 0!==n?n:"")||(null!==t&&void 0!==t?t:"")||"unknown";return this.props.contactCardDisplay!==h.d.NONE&&this.props.address.email?Object(c.jsxs)(c.Fragment,{children:[Object(c.jsxs)("div",{id:this.props.id,className:u()("c-message-address",{"c--active":this.state.displayContactCard,"c--recognized":r}),children:[this.props.onRemoveClick&&Object(c.jsxs)("button",{className:"c-message-address__remove",onClick:this.props.onRemoveClick,children:[Object(c.jsx)(p.a,{glyph:Object(m.e)(m.c.CLEAR),size:"small"}),Object(c.jsx)("span",{className:"u-clip",children:"Delete"})]}),Object(c.jsx)("span",{className:"c-message-address__content",children:a})]}),Object(c.jsx)(b.a,{currentUser:this.props.currentUser,address:this.props.address,id:this.props.id,isPopoverOpen:this.state.displayContactCard&&!this.props.hideContactCard,toggle:this.toggleContactCard,display:this.props.contactCardDisplay})]}):Object(c.jsxs)("div",{id:this.props.id,className:u()("c-message-address",{"c--recognized":r}),"data-testid":this.props.id,children:[this.props.onRemoveClick&&Object(c.jsxs)("button",{className:"c-message-address__remove",onClick:this.props.onRemoveClick,children:["\xd7",Object(c.jsx)("span",{className:"u-clip",children:"Delete"})]}),Object(c.jsx)("span",{className:"c-message-address__content",children:a}),!this.props.hideTooltip&&n&&Object(c.jsx)(d.a,{placement:"top",delay:150,autohide:!1,target:this.props.id,className:"c-message-address__tooltip",boundariesElement:"window",children:n})]})}}]),MessageAddress}(s.PureComponent)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),a=(n(1),n(28)),i=n(31),o=n(9),c=n(12),s=n(796),l={Attribute:c.b.div.withConfig({displayName:"settings-panel-resource-attribute__Attribute",componentId:"sc-1fg1g38-0"})(["display:flex;flex-direction:column;margin-bottom:var(--spacing-3);"]),LabelContainer:c.b.div.withConfig({displayName:"settings-panel-resource-attribute__LabelContainer",componentId:"sc-1fg1g38-1"})(["display:flex;flex-direction:row;align-items:center;margin-bottom:var(--spacing-2);"]),Label:c.b.p.withConfig({displayName:"settings-panel-resource-attribute__Label",componentId:"sc-1fg1g38-2"})(["color:var(--text-2);margin-bottom:0;"]),CopyToClipboard:Object(c.b)(i.a).withConfig({displayName:"settings-panel-resource-attribute__CopyToClipboard",componentId:"sc-1fg1g38-3"})(["margin-left:var(--spacing-2);"]),ComponentValue:c.b.div.withConfig({displayName:"settings-panel-resource-attribute__ComponentValue",componentId:"sc-1fg1g38-4"})(["font-size:var(--fs-lg);"]),TextValue:c.b.p.withConfig({displayName:"settings-panel-resource-attribute__TextValue",componentId:"sc-1fg1g38-5"})(["font-size:var(--fs-lg);"])},u=function SettingsPanelResourceAttribute(e){var t=e.label,n=e.value,i=e.displayCopyToClipboard,c=Object(a.useDispatch)();return Object(r.jsxs)(l.Attribute,{children:[Object(r.jsxs)(l.LabelContainer,{children:[Object(r.jsx)(l.Label,{children:t}),i&&"string"===typeof n&&Object(r.jsx)(l.CopyToClipboard,{size:"small",buttonContent:"Copy ".concat(t),iconGlyph:Object(o.e)(o.c.COPY),onClick:function onClick(){return Object(s.a)(c,t,n)}})]}),"string"===typeof n?Object(r.jsx)(l.TextValue,{children:n}):Object(r.jsx)(l.ComponentValue,{children:n})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(0),a=(n(1),n(12)),i=n(19),o=n(9),c={SelectMenu:a.b.div.withConfig({displayName:"select-menu__SelectMenu",componentId:"sc-1t623ec-0"})(["",""],(function(e){return e.isOpen?"min-width: 220px;\n    max-height: 380px;\n    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);\n    overflow-y: auto;\n    position: absolute;\n    width: 100%;\n    top: calc(100% - var(--bw1));\n    max-height: 20rem;\n    display: flex;\n    flex-direction: column;\n    z-index: 1000;\n    color: #212529;\n    background-color: var(--white);\n    border: 1px solid rgba(0, 0, 0, 0.15);\n    border-radius: var(--br1);":""})),SelectItem:a.b.div.withConfig({displayName:"select-menu__SelectItem",componentId:"sc-1t623ec-1"})(["min-height:4.5rem;padding:var(--spacing-2) var(--spacing-3);margin-bottom:0;font-size:var(--fs);line-height:1.8;white-space:nowrap;cursor:pointer;display:flex;justify-content:space-between;",""],(function(e){return e.highlight?"\n        background-color: var(--menu-item-hover-background);\n        text-decoration: none;\n        color: var(--purple-50);":""})),DropdownIconWrapper:a.b.span.withConfig({displayName:"select-menu__DropdownIconWrapper",componentId:"sc-1t623ec-2"})(["line-height:1;padding:var(--spacing-2);border-radius:50%;margin-right:calc(-1 * var(--spacing-2));"])},s=function SelectMenuContainer(e){var t=e.menuProps,n=e.children,a=e.isOpen;return Object(r.jsx)(c.SelectMenu,{id:t.id,"aria-labelledby":t["aria-labelledby"],ref:t.menuRef,onMouseLeave:t.onMouseLeave,role:t.role,isOpen:a,"data-testid":t.id,children:n})},l=function SelectMenuItemContainer(e){var t=e.itemProps,n=e.item,a=e.highlight,s=e.isSelected;return Object(r.jsxs)(c.SelectItem,{"aria-selected":t["aria-selected"],id:t.id,onClick:t.onClick,onMouseMove:t.onMouseMove,ref:t.itemRef,role:t.role,highlight:a,"data-testid":t.id,children:[n.label,s&&Object(r.jsx)(c.DropdownIconWrapper,{$disabled:!1,children:Object(r.jsx)(i.a,{glyph:Object(o.e)(o.c.DONE),size:"small"})})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var r,a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=n(18),d=n(143),b=(n(13),n(133)),p=n(139),m=n(153),h=n(231),g=n(321),j=n(4),v=(n(1191),n(9)),O=n(19),T=n(157),y=n(40),S=n(56),C=function(e){Object(o.a)(TextModifierTag,e);var t=Object(c.a)(TextModifierTag);function TextModifierTag(e){var n;return Object(a.a)(this,TextModifierTag),(n=t.call(this,e)).hoverToggle=Object(T.a)((function(e){n.setState({hover:e})}),10),n.hasRemoveButton=function(){return"inactive"!==n.props.state&&n.props.onClick&&n.props.onClick!==y.a},n.state={hover:!1},n}return Object(i.a)(TextModifierTag,[{key:"render",value:function render(){var e=this,t=this.props,n=t.label,r=t.state,a=t.onClick,i=t.children,o=t.id,c=t.className,l=t.dataTestId,u="inactive"===r?{onClick:a}:{},d=this.hasRemoveButton()?{onClick:function onClick(){e.hoverToggle(!0)},onMouseOver:function onMouseOver(){e.hoverToggle(!0)},onMouseLeave:function onMouseLeave(){e.hoverToggle(!1)}}:{},b=Object(j.a)(Object(j.a)({id:o,className:"c-text-modifier-tag ".concat(void 0!==c?c:"")},u),d);return Object(s.jsxs)("div",Object(j.a)(Object(j.a)({},b),{},{"data-testid":l,children:[!S.b&&this.hasRemoveButton()&&this.state.hover?this.renderRemoveButton():this.renderWhiteSpace(),Object(s.jsx)("span",{className:"c-tag__content",children:n}),S.b&&this.hasRemoveButton()&&this.renderRemoveButton(),i]}))}},{key:"renderWhiteSpace",value:function renderWhiteSpace(){var e=this.props,t=e.state,n=e.onClick;return"inactive"!==t&&n?Object(s.jsx)("div",{className:"c-text-modifier__whitespace u-flex"}):""}},{key:"renderRemoveButton",value:function renderRemoveButton(){var e=this.props.onClick;return this.hasRemoveButton()&&e?Object(s.jsx)("div",{onClick:e,style:{cursor:"pointer"},"data-testid":"tag-remove",className:"u-flex",children:Object(s.jsx)(O.a,{glyph:Object(v.e)(v.c.CLEAR),size:"small"})}):""}}]),TextModifierTag}(l.PureComponent);!function(e){e.GENERIC="#8594a1",e.NEUTRAL="var(--neutral-35)"}(r||(r={}));var A=n(359),E=n(238);n(1193);function MyMessagesTag(e){var t=e.label,n=e.state,r=e.onClick,a=e.id,i=e.token;return Object(s.jsxs)("div",{className:"c-my-messages-tag",children:[Object(s.jsx)(d.a,{id:a,label:t,state:null!==n&&void 0!==n?n:"active",onClick:r}),Object(s.jsxs)("div",{className:"c-tag c--person",children:[Object(s.jsx)("div",{className:"u-inline-flex u-pa-xs",children:Object(s.jsx)(O.a,{glyph:Object(v.e)(v.c.PERSON),size:"small",className:"u-mr-xs"})}),i]})]})}var w=n(15);n(1194);function MyWorkTag(e){var t=e.label,n=e.state,r=e.onClick,a=e.id,i=e.token;return Object(s.jsxs)("div",{className:"c-my-work-tag",children:[Object(s.jsx)(d.a,{id:a,label:t,state:null!==n&&void 0!==n?n:"active",onClick:r}),Object(s.jsxs)("div",{className:"c-tag c--person",children:[Object(s.jsx)("div",{className:"u-inline-flex u-pa-xs",children:Object(s.jsx)(O.a,{glyph:Object(v.e)(v.c.PERSON),size:"small",className:"u-mr-xs"})}),i]})]})}var _=n(58),I=function(e){Object(o.a)(FilterTokenWidget,e);var t=Object(c.a)(FilterTokenWidget);function FilterTokenWidget(){var e;Object(a.a)(this,FilterTokenWidget);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).tokenLabel=function(e){return e===u.S.RELATIVE_TIME?"since":e===u.S.BEFORE_TIME?"before":"after"},e.onClick=function(){return e.props.onClick(e.props.token)},e.onEdit=function(){var t,n;return null===(t=(n=e.props).onEdit)||void 0===t?void 0:t.call(n,e.props.token)},e}return Object(i.a)(FilterTokenWidget,[{key:"render",value:function render(){var e,t,n,a,i,o,c,l,j,O,T,S,w,I,x,k,N,R,F,M,D,L,P,U,B,H,G=this.props.token;switch(G.type){case u.S.INBOX:case u.S.FOLLOWING:case u.S.DRAFT:case u.S.STORED:case u.S.OUT:case u.S.SUBJECT:case u.S.BODY:case u.S.FROM:case u.S.TO:case u.S.CC:case u.S.COMMENT:case u.S.ATTACHMENT_NAME:case u.S.HAS_COMMENT:case u.S.HAS_UNREAD_COMMENT:case u.S.HAS_ATTACHMENT:case u.S.IS_READ:case u.S.IS_UNREAD:case u.S.IS_NOTE:case u.S.MESSAGE_ID:case u.S.SCHEDULED:case u.S.CANCELLED:return Object(s.jsx)(d.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(e=this.props.state)&&void 0!==e?e:"active",onClick:this.onClick,dataTestId:"filter-token-".concat(G.type.toLowerCase(),"-tag")});case u.S.HAS_JOB_REFERENCE:return Object(s.jsx)(d.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(t=this.props.state)&&void 0!==t?t:"active",onClick:this.onClick,dataTestId:"filter-token-".concat(G.type.toLowerCase(),"-tag"),icon:v.c.JOB});case u.S.HAS_CATEGORY:return Object(s.jsx)(d.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(n=this.props.state)&&void 0!==n?n:"active",onClick:this.onClick,dataTestId:"filter-token-".concat(G.type.toLowerCase(),"-tag"),icon:v.c.TAG});case u.S.HAS_PERSON:return Object(s.jsx)(d.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(a=this.props.state)&&void 0!==a?a:"active",onClick:this.onClick,dataTestId:"filter-token-".concat(G.type.toLowerCase(),"-tag"),icon:v.c.PERSON});case u.S.ALL_TEAMS:return this.props.disableRemove?Object(s.jsx)(_.a,{content:"At least one team token must be present in search",placement:"bottom",boundary:"window",children:Object(s.jsx)("span",{children:Object(s.jsx)(d.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(i=this.props.state)&&void 0!==i?i:"active",onClick:y.a,dataTestId:"filter-token-".concat(G.type.toLowerCase(),"-tag"),icon:v.c.TENANT})})}):Object(s.jsx)(d.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(o=this.props.state)&&void 0!==o?o:"active",onClick:this.onClick,dataTestId:"filter-token-".concat(G.type.toLowerCase(),"-tag"),icon:v.c.TENANT});case u.S.AFTER_TIME:case u.S.BEFORE_TIME:case u.S.RELATIVE_TIME:return Object(s.jsxs)("div",{className:"u-flex u-items-center",children:[this.props.inlineDateFiltersEnabled&&Object(s.jsx)(E.a,{label:this.tokenLabel(G.type),state:null!==(c=this.props.state)&&void 0!==c?c:"active",onClick:this.onClick,className:"c--after-before-token"}),Object(s.jsx)(d.a,{id:this.props.id,label:filter_token_widget_label(G,this.props.inlineDateFiltersEnabled),icon:(null===(l=this.props.editingToken)||void 0===l?void 0:l.token)===G.type?v.c.EDIT:v.c.TIME,state:null!==(j=this.props.state)&&void 0!==j?j:"active",dataTestId:"filter-token-".concat(G.type.toLowerCase(),"-tag"),onClick:this.props.inlineDateFiltersEnabled?this.onEdit:this.onClick,editable:!!this.props.inlineDateFiltersEnabled})]});case u.S.SINCE:return Object(s.jsx)(E.a,{id:this.props.id,label:"since",state:null!==(O=this.props.state)&&void 0!==O?O:"active",onClick:this.onClick,className:"c--since"});case u.S.AFTER:return Object(s.jsx)(E.a,{id:this.props.id,label:"after",state:null!==(T=this.props.state)&&void 0!==T?T:"active",onClick:this.onClick,className:"c--after"});case u.S.BEFORE:return Object(s.jsx)(E.a,{id:this.props.id,label:"before",state:null!==(S=this.props.state)&&void 0!==S?S:"active",onClick:this.onClick,className:"c--before"});case u.S.CUSTOM:var W=G;return Object(s.jsx)(d.a,{id:this.props.id,icon:W.name?v.c.BOOKMARK:void 0,label:null!==(w=W.name)&&void 0!==w?w:"Custom Search",state:null!==(I=this.props.state)&&void 0!==I?I:"active",onClick:this.onClick});case u.S.MY_MESSAGE:return Object(s.jsx)(MyMessagesTag,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(x=this.props.state)&&void 0!==x?x:"active",onClick:this.onClick,token:G.query});case u.S.MY_WORK:return Object(s.jsx)(MyWorkTag,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(k=this.props.state)&&void 0!==k?k:"active",onClick:this.onClick,token:G.query});case u.S.TEAM:return this.props.disableRemove?Object(s.jsx)(_.a,{content:"At least one team token must be present in search",placement:"bottom",boundary:"window",children:Object(s.jsx)("span",{children:Object(s.jsx)(h.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(N=this.props.state)&&void 0!==N?N:"active",onClick:y.a})})}):Object(s.jsx)(h.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(R=this.props.state)&&void 0!==R?R:"active",onClick:this.onClick});case u.S.CATEGORY:return Object(s.jsx)(m.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(F=this.props.state)&&void 0!==F?F:"active",onClick:this.onClick});case u.S.VESSEL_NAME:return Object(s.jsx)(A.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(M=this.props.state)&&void 0!==M?M:"active",onClick:this.onClick});case u.S.JOB_REFERENCE:return Object(s.jsx)(p.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(D=this.props.state)&&void 0!==D?D:"active",onClick:this.onClick});case u.S.PERSON:return Object(s.jsx)(g.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(L=this.props.state)&&void 0!==L?L:"active",onClick:this.onClick});case u.S.TEXT:return Object(s.jsx)(C,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(P=this.props.state)&&void 0!==P?P:"active",onClick:this.onClick,dataTestId:"filter-token-text-tag"});case u.S.NOT:return Object(s.jsx)(E.a,{id:this.props.id,label:"not",state:null!==(U=this.props.state)&&void 0!==U?U:"active",onClick:this.onClick});case u.S.OR:return Object(s.jsx)(E.a,{id:this.props.id,label:"or",state:null!==(B=this.props.state)&&void 0!==B?B:"active",onClick:this.props.disableRemove?y.a:this.onClick});default:return Object(s.jsx)(b.a,{id:this.props.id,label:filter_token_widget_label(G),state:null!==(H=this.props.state)&&void 0!==H?H:"active",color:r.NEUTRAL,textColor:"var(--text-2)",onClick:this.onClick})}}}]),FilterTokenWidget}(l.PureComponent);function filter_token_widget_label(e,t){switch(e.type){case u.S.INBOX:return"in:Inbox";case u.S.SCHEDULED:return"in:Scheduled";case u.S.CANCELLED:return"in:Cancelled";case u.S.MY_MESSAGE:return"MyMessages:";case u.S.MY_WORK:return"".concat(w.b.t(w.a.MY_WORK).replace(" ",""),":");case u.S.FOLLOWING:return"in:Following";case u.S.DRAFT:return"in:Draft";case u.S.STORED:return"in:Archive";case u.S.OUT:return"in:Out";case u.S.SUBJECT:return'subject:"'.concat(e.query,'"');case u.S.BODY:return'body:"'.concat(e.query,'"');case u.S.FROM:return'from:"'.concat(e.query,'"');case u.S.TO:return'to:"'.concat(e.query,'"');case u.S.CC:return'cc:"'.concat(e.query,'"');case u.S.COMMENT:return'comment:"'.concat(e.query,'"');case u.S.ATTACHMENT_NAME:return'attachment:"'.concat(e.query,'"');case u.S.HAS_ATTACHMENT:return"has:Attachment";case u.S.HAS_COMMENT:return"has:Comment";case u.S.HAS_UNREAD_COMMENT:return"has:UnreadComment";case u.S.HAS_CATEGORY:return"has:".concat(w.b.t(w.a.CATEGORY_TAG).replace(" ",""));case u.S.HAS_JOB_REFERENCE:return"has:".concat(w.b.t(w.a.JOB_TAG).replace(" ",""));case u.S.HAS_PERSON:return"has:".concat(w.b.t(w.a.PERSON_TAG).replace(" ",""));case u.S.IS_READ:return"is:Read";case u.S.IS_UNREAD:return"is:Unread";case u.S.IS_NOTE:return"is:Note";case u.S.CATEGORY:case u.S.JOB_REFERENCE:case u.S.VESSEL_NAME:case u.S.PERSON:case u.S.TEAM:return e.query;case u.S.ALL_TEAMS:return"All ".concat(w.b.t(w.a.TEAM_PLURAL));case u.S.TEXT:return e.query;case u.S.MESSAGE_ID:return"message id:".concat(e.query);case u.S.AFTER_TIME:return"".concat(t?"":"after:").concat(e.value.format("YYYY-MM-DD"));case u.S.BEFORE_TIME:return"".concat(t?"":"before:").concat(e.value.format("YYYY-MM-DD"));case u.S.RELATIVE_TIME:return"".concat(t?"":"since:").concat(e.value.n," ").concat(e.value.unit).concat("day"===e.value.unit||"hour"===e.value.unit?"s":""," ago");default:return e.constructor.name}}},function(e,t,n){"use strict";n.d(t,"f",(function(){return h})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return j})),n.d(t,"c",(function(){return v})),n.d(t,"h",(function(){return O})),n.d(t,"b",(function(){return T})),n.d(t,"g",(function(){return y})),n.d(t,"a",(function(){return S}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(43),l=n(20),u=n(16),d=function(e){Object(i.a)(ShareSavedSearchApiEffect,e);var t=Object(o.a)(ShareSavedSearchApiEffect);function ShareSavedSearchApiEffect(e,n){var a;return Object(r.a)(this,ShareSavedSearchApiEffect),(a=t.call(this)).savedSearchId=e,a.ids=n,a.type=void 0,a}return Object(a.a)(ShareSavedSearchApiEffect,[{key:"apiEffect",value:function apiEffect(e){var t=this,n=JSON.stringify({data:this.ids.map((function(e){return{type:t.type,id:e}}))});return{path:"".concat(e.platformUrl,"/saved-search/").concat(this.savedSearchId,"/relationships/").concat(this.type),method:u.c.POST,body:n}}},{key:"mapResponse",value:function mapResponse(e){return e.data.map((function(e){return e.id}))}}]),ShareSavedSearchApiEffect}(l.a),b=function(e){Object(i.a)(UnShareSavedSearchApiEffect,e);var t=Object(o.a)(UnShareSavedSearchApiEffect);function UnShareSavedSearchApiEffect(e,n){var a;return Object(r.a)(this,UnShareSavedSearchApiEffect),(a=t.call(this)).savedSearchId=e,a.ids=n,a.type=void 0,a}return Object(a.a)(UnShareSavedSearchApiEffect,[{key:"apiEffect",value:function apiEffect(e){var t=this,n=JSON.stringify({data:this.ids.map((function(e){return{type:t.type,id:e}}))});return{path:"".concat(e.platformUrl,"/saved-search/").concat(this.savedSearchId,"/relationships/").concat(this.type),method:u.c.DELETE,body:n}}},{key:"mapResponse",value:function mapResponse(){return this.ids}}]),UnShareSavedSearchApiEffect}(l.a),p=n(15),m=n(8),h=function(e){Object(i.a)(SubmitShareBookmarkToUsers,e);var t=Object(o.a)(SubmitShareBookmarkToUsers);function SubmitShareBookmarkToUsers(){var e;Object(r.a)(this,SubmitShareBookmarkToUsers);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).type="user",e}return Object(a.a)(SubmitShareBookmarkToUsers,[{key:"onError",value:function onError(e){return[new s.b({message:"Unable to share to users",level:m.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){var t=this.ids.length;return[new g(this.savedSearchId,e),new s.b({message:"Shared to ".concat(t," user").concat(t>1?"s":""),level:m.n.info})]}}]),SubmitShareBookmarkToUsers}(d),g=function(e){Object(i.a)(FulfillShareBookmarkToUsers,e);var t=Object(o.a)(FulfillShareBookmarkToUsers);function FulfillShareBookmarkToUsers(e,n){var a;return Object(r.a)(this,FulfillShareBookmarkToUsers),(a=t.call(this)).savedSearchId=e,a.userIds=n,a}return FulfillShareBookmarkToUsers}(c.a),j=function(e){Object(i.a)(SubmitShareBookmarkToTeams,e);var t=Object(o.a)(SubmitShareBookmarkToTeams);function SubmitShareBookmarkToTeams(){var e;Object(r.a)(this,SubmitShareBookmarkToTeams);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).type="team",e}return Object(a.a)(SubmitShareBookmarkToTeams,[{key:"onError",value:function onError(e){return[new s.b({message:"Unable to share to ".concat(p.b.t(p.a.TEAM_PLURAL)),level:m.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){var t=this.ids.length;return[new v(this.savedSearchId,e),new s.b({message:"Shared to ".concat(t," ").concat(p.b.t(p.a.TEAM,{count:t})),level:m.n.info})]}}]),SubmitShareBookmarkToTeams}(d),v=function(e){Object(i.a)(FulfillShareBookmarkToTeams,e);var t=Object(o.a)(FulfillShareBookmarkToTeams);function FulfillShareBookmarkToTeams(e,n){var a;return Object(r.a)(this,FulfillShareBookmarkToTeams),(a=t.call(this)).savedSearchId=e,a.teamIds=n,a}return FulfillShareBookmarkToTeams}(c.a),O=function(e){Object(i.a)(SubmitUnshareBookmarkUsers,e);var t=Object(o.a)(SubmitUnshareBookmarkUsers);function SubmitUnshareBookmarkUsers(){var e;Object(r.a)(this,SubmitUnshareBookmarkUsers);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).type="user",e}return Object(a.a)(SubmitUnshareBookmarkUsers,[{key:"onError",value:function onError(e){return[new s.b({message:"Unable to unshare users",level:m.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){var t=this.ids.length;return[new T(this.savedSearchId,e),new s.b({message:"Unshared ".concat(t," user").concat(t>1?"s":""),level:m.n.info})]}}]),SubmitUnshareBookmarkUsers}(b),T=function(e){Object(i.a)(FulFillUnshareUsers,e);var t=Object(o.a)(FulFillUnshareUsers);function FulFillUnshareUsers(e,n){var a;return Object(r.a)(this,FulFillUnshareUsers),(a=t.call(this)).savedSearchId=e,a.userIds=n,a}return FulFillUnshareUsers}(c.a),y=function(e){Object(i.a)(SubmitUnshareBookmarkTeams,e);var t=Object(o.a)(SubmitUnshareBookmarkTeams);function SubmitUnshareBookmarkTeams(){var e;Object(r.a)(this,SubmitUnshareBookmarkTeams);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).type="team",e}return Object(a.a)(SubmitUnshareBookmarkTeams,[{key:"onError",value:function onError(e){return[new s.b({message:"Unable to unshare ".concat(p.b.t(p.a.TEAM_PLURAL)),level:m.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){var t=this.ids.length;return[new S(this.savedSearchId,e),new s.b({message:"Unshared ".concat(t," ").concat(p.b.t(p.a.TEAM,{count:t})),level:m.n.info})]}}]),SubmitUnshareBookmarkTeams}(b),S=function(e){Object(i.a)(FulFillUnshareTeams,e);var t=Object(o.a)(FulFillUnshareTeams);function FulFillUnshareTeams(e,n){var a;return Object(r.a)(this,FulFillUnshareTeams),(a=t.call(this)).savedSearchId=e,a.teamIds=n,a}return FulFillUnshareTeams}(c.a)},,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return R}));var r,a=n(23),i=n(3),o=n(10),c=n(245),s=n(5),l=n(6),u=n(0),d=n(1),b=n(276),p=n(190),m=n(25),h=n(213),g=(n(805),n(58)),j=n(40),v=function(e){Object(s.a)(MessageAddressBlock,e);var t=Object(l.a)(MessageAddressBlock);function MessageAddressBlock(){return Object(i.a)(this,MessageAddressBlock),t.apply(this,arguments)}return Object(o.a)(MessageAddressBlock,[{key:"render",value:function render(){var e=this,t=this.props,n=t.moreCount,r=t.to,i=t.cc,o=t.bcc,c=t.onMoreClick,s=t.contactCardDisplay,l=[].concat(Object(a.a)(r),Object(a.a)(i),Object(a.a)(o)),d=m.a.of(r.length>0&&0===i.length?"To:":null),b=m.a.of(0===r.length&&i.length>0?"Cc:":null),v=m.a.of(0===r.length&&0===i.length&&o.length>0?"Bcc:":null),O=r.length+i.length+o.length,T=d.or(b).or(v).orElse("To/Cc:");return Object(u.jsx)("div",{className:"c-message-address-block",children:Object(u.jsxs)("div",{className:"c-message-address-block__row",children:[Object(u.jsx)("span",{className:"c-message-address-block__label",children:T}),Object(u.jsxs)("ul",{className:"c-message-address-block__list",children:[l.slice(0,2).map((function(t,n){return Object(u.jsx)("li",{className:"c-message-address-block__item",children:Object(u.jsx)(p.a,{id:"to-".concat(n),address:t,recognized:Object(h.a)(e.props.recognizedContacts,t.email),contactCardDisplay:s,currentUser:e.props.currentUser})},"to-addressees-".concat(n).concat(t.email))})),n>0&&Object(u.jsx)("li",{className:"u-dib u-flex u-items-center",children:Object(u.jsx)(g.a,{content:"Cannot expand more than ".concat(N," emails"),children:Object(u.jsxs)("button",{className:"c-message-address-block__more c-button c--link c--small u-fs-sm",onClick:O>N?j.a:c,children:["+",n," more"]})})})]})]})})}}]),MessageAddressBlock}(d.PureComponent),O=n(66),T=n(32),y=n.n(T),S=(n(1267),n(19)),C=n(9),A=function MessageAddressRow(e){return Object(u.jsxs)("div",{className:"c-message-address-block__row",children:[Object(u.jsxs)("span",{className:"c-message-address-block__label",children:[e.label,":"]}),Object(u.jsx)("ul",{className:"c-message-address-block__list",children:e.addresses.map((function(t,n){return Object(u.jsx)("li",{className:"c-message-address-block__item",children:Object(u.jsx)(p.a,{id:"".concat(e.label.toLowerCase(),"-").concat(n),address:t,recognized:Object(h.a)(e.recognizedContacts,t.email),contactCardDisplay:e.contactCardDisplay,currentUser:e.currentUser})},"addressees-".concat(n).concat(t.email))}))})]})},E=function(e){Object(s.a)(MessageAddressBlockExpanded,e);var t=Object(l.a)(MessageAddressBlockExpanded);function MessageAddressBlockExpanded(){return Object(i.a)(this,MessageAddressBlockExpanded),t.apply(this,arguments)}return Object(o.a)(MessageAddressBlockExpanded,[{key:"render",value:function render(){var e=this.props,t=e.to,n=e.cc,r=e.bcc,a=e.contactCardDisplay,i=e.recognizedContacts,o=e.currentUser;return Object(u.jsxs)("div",{className:"c-message-address-block",children:[t.length>0&&Object(u.jsx)(A,{label:"To",addresses:t,contactCardDisplay:a,recognizedContacts:i,currentUser:o}),n.length>0&&Object(u.jsx)(A,{label:"Cc",addresses:n,contactCardDisplay:a,recognizedContacts:i,currentUser:o}),r.length>0&&Object(u.jsx)(A,{label:"Bcc",addresses:r,contactCardDisplay:a,recognizedContacts:i,currentUser:o})]})}}]),MessageAddressBlockExpanded}(d.PureComponent),w=n(31),_=n(97),I=n(51),x=n(146),k=n(8);!function(e){e.DEFAULT="DEFAULT",e.EXPANDED="EXPANDED",e.COLLAPSED="COLLAPSED"}(r||(r={}));var N=1e3,R=function(e){Object(s.a)(MessageHeader,e);var t=Object(l.a)(MessageHeader);function MessageHeader(e){var n;return Object(i.a)(this,MessageHeader),(n=t.call(this,e)).setDisplayMoreDefault=2,n.messageTopRef=d.createRef(),n.getMoreCount=function(e){var t=[].concat(Object(a.a)(n.props.messageMeta.toAddresses),Object(a.a)(n.props.messageMeta.ccAddresses),Object(a.a)(n.props.messageMeta.bccAddresses)).length;return t>e?t-e:0},n.isExpandable=function(){var e=n.getMoreCount(n.setDisplayMoreDefault)>0,t=m.a.of(n.props.messageMeta.toAddresses.length>0&&n.props.messageMeta.ccAddresses.length>0||null),r=m.a.of(n.props.messageMeta.toAddresses.length>0&&n.props.messageMeta.bccAddresses.length>0||null),a=m.a.of(n.props.messageMeta.ccAddresses.length>0&&n.props.messageMeta.bccAddresses.length>0||null),i=t.or(r).or(a).orElse(!1);return e||i},n.toggleExpandedState=function(){n.props.setHeaderState(n.props.headerState===r.DEFAULT?r.EXPANDED:r.DEFAULT)},n.onToggleMessageHeader=function(e){n.toggleExpandedState(),n.props.onToggleMessageHeader&&n.props.onToggleMessageHeader(e)},n.onMoreClick=function(){n.toggleExpandedState(),n.props.onMoreClick&&n.props.onMoreClick()},n.state={messageHeader:r.DEFAULT},n.updateTopOffset=n.updateTopOffset.bind(Object(c.a)(n)),n}return Object(o.a)(MessageHeader,[{key:"componentDidMount",value:function componentDidMount(){this.updateTopOffset()}},{key:"componentDidUpdate",value:function componentDidUpdate(){this.updateTopOffset()}},{key:"updateTopOffset",value:function updateTopOffset(){var e=this.messageTopRef.current;e&&void 0!==e.clientHeight&&this.props.setMessageTopOffset(e.clientHeight)}},{key:"render",value:function render(){var e=this,t=this.props,n=t.isFollowing,a=t.messageMeta,i=t.recognizedContacts,o=t.showSignedEmail,c=a.state,s=a.receivedDate,l=a.subject,d=a.fromName,m=a.fromEmail,T=a.toAddresses,A=a.ccAddresses,R=a.bccAddresses,F=a.sentDate,M=this.props.currentUser?Object(_.a)("".concat(x.a,"_").concat(this.props.currentUser.id),x.b):x.b,D={name:d,email:m},L=this.props.headerState===r.DEFAULT,P=this.props.headerState===r.EXPANDED,U=this.getMoreCount(this.setDisplayMoreDefault),B=U+this.setDisplayMoreDefault,H=this.isExpandable(),G=c===k.m.PrivateDraft||c===k.m.Draft||c===k.m.Cancelled,W=c===k.m.Scheduled||c===k.m.Sending||c===k.m.Sent?F:s,z=Object(u.jsxs)("h2",{className:"c-message-header__subject",children:[G&&Object(u.jsx)("span",{className:"u-fw-b",children:"DRAFT: "}),l]}),V=Object(u.jsx)(g.a,{content:"What is Verified by SEDNA?",disableOnTouch:!0,children:Object(u.jsxs)("a",{href:"https://email.sedna.com/verified-by-sedna?utm_source=product&utm_medium=referral&utm_campaign=verified-by-sedna&utm_content=shield&composeUrl=".concat(encodeURIComponent("".concat(window.location.origin).concat(I.i,"/compose/message/new"))),target:"_blank",rel:"noopener noreferrer",onClick:this.props.onVerifiedLearnMore,children:[Object(u.jsx)(S.a,{size:"small",glyph:Object(C.e)(C.c.VERIFIED)})," Verified",Object(u.jsx)("span",{className:"u-clip-xs",children:"\xa0by SEDNA"})]})}),J=Object(u.jsxs)(u.Fragment,{children:[z,Object(u.jsxs)("div",{className:"c-message-header__date u-fs-sm u-justify-between",children:[y()(W).format(O.a),o&&a.signed===k.l.VERIFIED&&Object(u.jsx)("div",{className:"c-message-header__verified",children:V}),o&&a.signed===k.l.UNSIGNED&&this.props.verifiedBySednaFeatureFlag===k.w.MODEST&&Object(u.jsx)("div",{className:"c-message-header__unverified",children:Object(u.jsxs)("a",{href:"https://email.sedna.com/verified-by-sedna?utm_source=product&utm_medium=referral&utm_campaign=verified-by-sedna&utm_content=modest&composeUrl=".concat(encodeURIComponent("".concat(window.location.origin).concat(I.i,"/compose/message/new"))),target:"_blank",rel:"noopener noreferrer",onClick:this.props.onInviteToBeVerified,children:[Object(u.jsx)(S.a,{size:"small",glyph:Object(C.e)(C.c.OPEN_LINK)})," ","Invite",Object(u.jsx)("span",{className:"u-clip-xs",children:" to be Verified"})]})})]})]}),Y=Object(u.jsx)(u.Fragment,{children:Object(u.jsxs)("div",{className:"c-message-header__verified-text-bold",children:[o&&a.signed===k.l.VERIFIED&&Object(u.jsx)("div",{className:"c-message-header__verified-bold",children:V}),o&&a.signed===k.l.UNSIGNED&&Object(u.jsx)("div",{className:"c-message-header__unverified-bold",children:Object(u.jsxs)("a",{href:"https://email.sedna.com/verified-by-sedna?utm_source=product&utm_medium=referral&utm_campaign=verified-by-sedna&utm_content=bold&composeUrl=".concat(encodeURIComponent("".concat(window.location.origin).concat(I.i,"/compose/message/new"))),target:"_blank",rel:"noopener noreferrer",onClick:this.props.onInviteToBeVerified,children:[Object(u.jsx)(S.a,{size:"small",glyph:Object(C.e)(C.c.OPEN_LINK)})," ","Invite",Object(u.jsx)("span",{className:"u-clip-xs",children:" to be Verified"})]})}),Object(u.jsxs)("div",{className:"c-message-header__subject-date",children:[z,Object(u.jsx)("div",{className:"c-message-header__date u-fs-sm u-justify-between",children:y()(W).format(O.a)})]})]})});return Object(u.jsxs)("div",{className:"c-message-header c-ff-collapsible-hd",style:this.props.headerState===r.EXPANDED?{paddingTop:this.props.topOffset}:{},children:[Object(u.jsx)("div",{className:"c-message-header__top",ref:this.messageTopRef,children:Object(u.jsxs)("div",{className:"c-message-header__subject-from",children:[Object(u.jsx)("div",{className:"c-message-header__date_container",children:this.props.verifiedBySednaFeatureFlag===k.w.BOLD?Y:J}),Object(u.jsxs)("div",{className:"c-message-header__from-container",children:[Object(u.jsx)(g.a,{content:"Cannot expand more than ".concat(N," emails"),children:Object(u.jsx)(w.a,{className:"c-message-header__toggle-btn c-message-header__toggle-btn-ff-collapsible-hd",buttonContent:P?"Collapse":"Expand",iconGlyph:P?Object(C.e)(C.c.UNFOLD_LESS):Object(C.e)(C.c.UNFOLD_MORE),size:"small",onClick:B>N?j.a:function(){return e.onToggleMessageHeader(L)},disabled:!H,isMobile:this.props.isMobile})}),Object(u.jsx)("div",{className:"c-message-header__default c-ff-collapsible-hd",children:Object(u.jsx)("div",{className:"c-message-address-block u-mr-md",children:Object(u.jsxs)("div",{className:"c-message-address-block__row",children:[Object(u.jsx)("div",{className:"c-message-address-block__label qa-from-label",children:"From:"}),Object(u.jsx)(p.a,{id:"from-address",address:D,recognized:Object(h.a)(i,D.email),contactCardDisplay:this.props.contactCardDisplay,currentUser:this.props.currentUser},D.email)]})})})]})]})}),Object(u.jsxs)("div",{className:"c-message-header__recipients-ff-collapsible-hd",children:[L&&Object(u.jsx)(b.a,{in:L,timeout:150,classNames:"recipients-default",appear:!0,children:Object(u.jsx)(v,{moreCount:U,to:T,cc:A,bcc:R,recognizedContacts:i,onMoreClick:this.onMoreClick,contactCardDisplay:this.props.contactCardDisplay,currentUser:this.props.currentUser})}),P&&Object(u.jsx)(b.a,{in:P,timeout:150,classNames:"recipients-expanded",appear:!0,children:Object(u.jsx)(E,{to:T,cc:A,bcc:R,recognizedContacts:i,contactCardDisplay:this.props.contactCardDisplay,currentUser:this.props.currentUser})})]}),Object(u.jsxs)("div",{className:"c-message-header__print-recipients c-ff-collapsible-hd",children:[Object(u.jsxs)("div",{className:"u-flex u-items-center u-mb-xs",children:[Object(u.jsx)("div",{className:"u-mr-md u-pt-xs",children:"From:"}),Object(u.jsx)(p.a,{id:"from-address",address:D,recognized:Object(h.a)(this.props.recognizedContacts,D.email),contactCardDisplay:this.props.contactCardDisplay,currentUser:this.props.currentUser})]}),Object(u.jsxs)("div",{className:"u-flex u-items-center u-mb-xs",children:[Object(u.jsx)("div",{className:"u-mr-md u-pt-xs",children:"To:"}),Object(u.jsx)("ul",{className:"u-list u-pl-0 u-mb-0",children:T.slice(0,this.setDisplayMoreDefault).map((function(t,n){return Object(u.jsx)("li",{className:"u-dib u-mr-xs",children:Object(u.jsx)(p.a,{id:"to-address-pane-".concat(n),address:t,recognized:Object(h.a)(e.props.recognizedContacts,t.email),contactCardDisplay:e.props.contactCardDisplay,currentUser:e.props.currentUser})},"to-addressees-"+n)}))}),T.length>this.setDisplayMoreDefault&&Object(u.jsx)("span",{children:"+".concat(T.length-this.setDisplayMoreDefault," more")})]}),A.length>0&&Object(u.jsxs)("div",{className:"u-flex u-items-center u-mb-xs",children:[Object(u.jsx)("div",{className:"u-mr-md u-pt-xs",children:"Cc:"}),Object(u.jsx)("ul",{className:"u-list u-pl-0 u-mb-0",children:A.slice(0,this.setDisplayMoreDefault).map((function(t,n){return Object(u.jsx)("li",{className:"u-dib u-mr-xs",children:Object(u.jsx)(p.a,{id:"cc-address-pane-".concat(n),address:t,recognized:Object(h.a)(e.props.recognizedContacts,t.email),contactCardDisplay:e.props.contactCardDisplay,currentUser:e.props.currentUser})},"cc-addressees-"+n)}))}),A.length>this.setDisplayMoreDefault&&Object(u.jsx)("span",{children:"+".concat(A.length-this.setDisplayMoreDefault," more")})]}),R.length>0&&Object(u.jsxs)("div",{className:"u-flex u-items-center u-mb-xs",children:[Object(u.jsx)("div",{className:"u-mr-md u-pt-xs",children:"Bcc:"}),Object(u.jsx)("ul",{className:"u-list u-pl-0 u-mb-0",children:R.slice(0,this.setDisplayMoreDefault).map((function(t,n){return Object(u.jsx)("li",{className:"u-dib u-mr-xs",children:Object(u.jsx)(p.a,{id:"bcc-address-pane-".concat(n),address:t,recognized:Object(h.a)(e.props.recognizedContacts,t.email),contactCardDisplay:e.props.contactCardDisplay,currentUser:e.props.currentUser})},"bcc-recipient"+n)}))}),R.length>this.setDisplayMoreDefault&&Object(u.jsx)("span",{children:"+".concat(R.length-this.setDisplayMoreDefault," more")})]})]}),n&&!M.enableNewTiles&&Object(u.jsx)("div",{className:"c-message-header__following c-ff-collapsible-hd",children:Object(u.jsx)("span",{className:"u-clip",children:"Following"})})]})}}]),MessageHeader}(d.PureComponent)},,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var r=n(4),a=n(115),i=n(13),o=n(30),c=n(2),s=n(42),l=n(184),u=n(77),d=n(26),b=Object(d.b)([function(e,t){return Object(a.a)(e,t)},function(e){return e.entities.buckets},function(e,t){return t},function(e,t,n){return n}],(function(e,t,n,a){return c.g(t,c.a).map((function(t){return t.map((function(t){var n=e.fromQueryParams(t.bucketSearchQuery),i=m(e,n),o=i.unreadSearchQuery,c=Object(l.d)(t.bucketSearchQuery,o,i.unreadCommentSearchQuery,a);return Object(r.a)(Object(r.a)({},t),{},{unreadBucketSearchQuery:i.unreadSearchQuery,unreadBucketFilterSet:i.unreadFilterSet,unreadCommentOrMessageQuery:i.unreadCommentOrMessageQuery,unreadCommentOrMessageFilterSet:i.unreadCommentOrMessageFilterSet,unreadCommentBucketSearchQuery:i.unreadCommentSearchQuery,unreadCommentBucketFilterSet:i.unreadCommentFilterSet,bucketFilterSet:n,canSubscribe:t.canSubscribe,isInFullView:c})}))})).toOptional()})),p=Object(d.b)([function(e,t){return Object(a.a)(e,t)},function(e,t,n){return b(e,t,n)},function(e){return e.entities.messageTotal},function(e){return e.ui.featureFlags.UNREAD_COMMENT_IN_BUCKET}],(function(e,t,n,a){return t.map((function(e){return e.map((function(e){var t=e.unreadBucketSearchQuery,i=e.unreadCommentOrMessageQuery;return Object(r.a)(Object(r.a)({},e),{},{bucketCounts:function bucketCounts(){var e=c.g(n,Object(u.a)(a?i:t));return e.isError()?s.a.of({total:0,exact:!0}):e}()})}))}))})),m=function hydrateUnreadSearchFilterSet(e,t){var n=t.find((function(e){return e instanceof i.y})).isPresent(),r=n?t:t.and(new i.y),a=t.find((function(e){return e instanceof i.t})).isPresent(),c=a?t:t.and(new i.t),s=n&&a?t:t.and(i.k.fromFilterTerm(new i.t).or(new i.y));return{unreadSearchQuery:Object(o.stringify)(e.toFilterQuery(r)),unreadFilterSet:r,unreadCommentSearchQuery:Object(o.stringify)(e.toFilterQuery(c)),unreadCommentFilterSet:c,unreadCommentOrMessageFilterSet:s,unreadCommentOrMessageQuery:Object(o.stringify)(e.toFilterQuery(s))}}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return Avatar}));var r=n(0),a=n(12),i=n(152),o=n(283),c=function cssVarFromAvatarType(e){switch(e){case"people":return"var(--person-tag)";case"team":return"var(--team-tag)";case"other":return"var(--text-3)"}},s={Avatar:a.b.div.withConfig({displayName:"avatar__Avatar",componentId:"a6mvfn-0"})(["display:flex;justify-content:center;align-items:center;flex-shrink:0;width:"," height:"," border-radius:28px;overflow:hidden;line-height:0;font-weight:var(--fw-semi);text-transform:uppercase;background:",";color:",";font-size:",""],(function(e){return"xs"===e.size?"18px;":"s"===e.size?"24px;":"m"===e.size?"32px;":"l"===e.size?"42px;":"xl"===e.size?"54px;":void 0}),(function(e){return"xs"===e.size?"18px;":"s"===e.size?"24px;":"m"===e.size?"32px;":"l"===e.size?"42px;":"xl"===e.size?"54px;":void 0}),(function(e){return c(e.type)}),(function(e){return"other"===e.type?"var(--text-1)":"var(--white)"}),(function(e){return"xs"===e.size?"8px;":"s"===e.size?"10px;":"m"===e.size?"12px;":"l"===e.size?"14px;":"xl"===e.size?"16px;":void 0}))};function Avatar(e){var t=e.text,n=e.type,a=e.size,c=e.tooltipText,l=Object(r.jsx)(s.Avatar,{type:n,size:a,children:t});return c?Object(r.jsx)(i.a,{arrow:!1,content:c,placement:"top",delay:[300,20],theme:"tooltip",animateFill:!0,plugins:[o.a],hideOnClick:!1,children:l}):l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return getAddressRecognition}));var r=n(8);function getAddressRecognition(e,t){return t&&e.has(t)?r.a.IN_ADDRESS_BOOK:r.a.UNRECOGNIZED}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return j}));var r=n(39),a=n.n(r),i=n(4),o=n(54),c=n(10),s=n(3),l=n(5),u=n(6),d=n(630),b=n(51),p=n(16),m=n(182),h=n(642),g=function(e){Object(l.a)(PlatformError,e);var t=Object(u.a)(PlatformError);function PlatformError(e){var n;return Object(s.a)(this,PlatformError),(n=t.call(this)).status=e,n}return PlatformError}(Object(d.a)(Error)),j=function(){function SednaLiteFetch(e,t){return Object(s.a)(this,SednaLiteFetch),this.pathSuffix=e,this.responseMapper=t,this.url=void 0,this.url=Object(b.l)(e),this.responseMapper=t,this}return Object(c.a)(SednaLiteFetch,[{key:"setUrl",value:function setUrl(e){return this.url=e,this}},{key:"getUrl",value:function getUrl(e){var t=Object(m.d)();return e&&t?"".concat(this.url,"?t=").concat(t):this.url}},{key:"buildHeaders",value:function buildHeaders(e){var t,n=new Headers;return n.set("x-client-version",null!==(t="v20211204-0141")?t:""),n.set("x-trace-id",Object(h.a)()),(null===e||void 0===e?void 0:e.body)&&n.set("Content-Type","application/json"),n}},{key:"fetch",value:function(e){function fetch(t,n){return e.apply(this,arguments)}return fetch.toString=function(){return e.toString()},fetch}(function(){var e=Object(o.a)(a.a.mark((function _callee(e,t){var n,r,o;return a.a.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:return(r=Object(m.d)())&&(e=e.includes("?")?"".concat(e,"&t=").concat(r):"".concat(e,"?t=").concat(r)),a.next=4,fetch(e,Object(i.a)({method:null!==(n=null===t||void 0===t?void 0:t.method)&&void 0!==n?n:p.c.GET,mode:"cors",credentials:"include",headers:this.buildHeaders(t)},(null===t||void 0===t?void 0:t.body)&&{body:JSON.stringify(t.body)}));case 4:if(!(o=a.sent).ok){a.next=16;break}if(!this.responseMapper){a.next=14;break}return a.t1=this,a.next=10,o.json();case 10:a.t2=a.sent,a.t0=a.t1.responseMapper.call(a.t1,a.t2),a.next=15;break;case 14:a.t0=!0;case 15:return a.abrupt("return",a.t0);case 16:throw 401===o.status&&(Object(m.g)(),window.location.href=Object(m.b)(!0)),new g(o.status);case 18:case"end":return a.stop()}}),_callee,this)})));return function(t,n){return e.apply(this,arguments)}}())},{key:"get",value:function get(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=t?"".concat(this.url,"?").concat(new URLSearchParams(t)):this.url;return this.fetch(n)}},{key:"post",value:function post(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=e.body,r=t?"".concat(this.url,"?").concat(new URLSearchParams(t)):this.url;return this.fetch(r,{method:p.c.POST,body:n})}}]),SednaLiteFetch}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return h}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(90),u=n(24),d=n.n(u),b=(n(797),function(e){Object(i.a)(MobileNavigation,e);var t=Object(o.a)(MobileNavigation);function MobileNavigation(){return Object(r.a)(this,MobileNavigation),t.apply(this,arguments)}return Object(a.a)(MobileNavigation,[{key:"render",value:function render(){return Object(c.jsx)("div",{className:d()("c-page-header",{"c-page-footer":"bottom"===this.props.type}),"data-reactclass":MobileNavigation.name,children:this.props.children})}}]),MobileNavigation}(s.PureComponent)),p=function(e){Object(i.a)(MobileNavigationLeft,e);var t=Object(o.a)(MobileNavigationLeft);function MobileNavigationLeft(){return Object(r.a)(this,MobileNavigationLeft),t.apply(this,arguments)}return Object(a.a)(MobileNavigationLeft,[{key:"componentDidMount",value:function componentDidMount(){assertParentIs(this,MobileNavigationLeft,b)}},{key:"render",value:function render(){return Object(c.jsx)("div",{className:"c-page-header__left","data-reactclass":MobileNavigationLeft.name,children:this.props.children})}}]),MobileNavigationLeft}(s.PureComponent),m=function(e){Object(i.a)(MobileNavigationRight,e);var t=Object(o.a)(MobileNavigationRight);function MobileNavigationRight(){return Object(r.a)(this,MobileNavigationRight),t.apply(this,arguments)}return Object(a.a)(MobileNavigationRight,[{key:"componentDidMount",value:function componentDidMount(){assertParentIs(this,MobileNavigationRight,b)}},{key:"render",value:function render(){return Object(c.jsx)("div",{className:"c-page-header__right","data-reactclass":MobileNavigationRight.name,children:this.props.children})}}]),MobileNavigationRight}(s.PureComponent),h=function(e){Object(i.a)(MobileNavigationCenter,e);var t=Object(o.a)(MobileNavigationCenter);function MobileNavigationCenter(){return Object(r.a)(this,MobileNavigationCenter),t.apply(this,arguments)}return Object(a.a)(MobileNavigationCenter,[{key:"componentDidMount",value:function componentDidMount(){assertParentIs(this,MobileNavigationCenter,b)}},{key:"render",value:function render(){return Object(c.jsx)("div",{className:"c-page-header__center","data-reactclass":m.name,children:this.props.children})}}]),MobileNavigationCenter}(s.PureComponent);function assertParentIs(e,t,n){var r=l.findDOMNode(e),a=null!==r?r.parentElement:null;if(!a||a.attributes["data-reactclass"].value!==n.name)throw Error("".concat(t.name," must be a child of ").concat(n.name))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var r,a=n(0),i=n(12);!function(e){e.EXTRA_SMALL="xs",e.SMALL="sm",e.MEDIUM="",e.LARGE="lg",e.EXTRA_LARGE="xlg"}(r||(r={}));var o={UnreadBadgeCount:i.b.span.withConfig({displayName:"unread-badge-count__UnreadBadgeCount",componentId:"u8qktm-0"})(["padding:0 var(--spacing-2);background-color:var(--danger);border-radius:var(--br1);font-weight:var(--fw-semi);color:var(--white);font-size:",";"],(function(e){return e.fontSize!==r.MEDIUM?"var(--fs-".concat(e.fontSize,")"):"var(--fs)"}))},c=function UnreadBadgeCount(e){var t,n,r,i,c=null!==(t=null===(n=e.unreadCount)||void 0===n?void 0:n.total)&&void 0!==t?t:0,s=null===(r=null===(i=e.unreadCount)||void 0===i?void 0:i.exact)||void 0===r||r;return c?Object(a.jsx)(o.UnreadBadgeCount,{fontSize:e.fontSize,children:c.toLocaleString()+(s?"":"+")}):null}},,function(e,t,n){"use strict";function showCount(e){return e>9?"9+":e.toString()}n.d(t,"a",(function(){return showCount}))},,,,,,,function(e,t,n){"use strict";n.d(t,"d",(function(){return publicHomepage})),n.d(t,"e",(function(){return returnToSearch})),n.d(t,"c",(function(){return loginPage})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return m}));var r=n(0),a=n(1),i=n(166),o=(n(1243),n(82)),c=n(30),s=n(17),l=n(138),u=n(12),d=n(56);function publicHomepage(){return{kind:"PublicHomepage"}}function returnToSearch(e){return{kind:"ReturnToSearch",search:e}}function loginPage(){return{kind:"LoginPage"}}var b={Logo:Object(u.b)(i.a).withConfig({displayName:"header-logo__Logo",componentId:"sc-1c73aru-0"})(["width:140px;@media ","{width:158px;}"],d.a.minXLarge)},p=a.memo((function Logo(){return Object(r.jsx)(b.Logo,{})})),m=a.memo((function HeaderLogo(e){var t=e.logoLink,n=e.toggleShowFullBucket,a=e.markCurrentSavedSearch,i=e.trackOldUIEvent;switch(t.kind){case"PublicHomepage":return Object(r.jsx)("a",{className:"c-header-logo",target:"_blank",rel:"noopener noreferrer",href:"https://www.sedna.com/about/",title:"About SEDNA",children:Object(r.jsx)(p,{})});case"ReturnToSearch":var u=Object(c.parse)(t.search);delete u.filter,delete u.filterSet,delete u.bookmark,delete u.teams;var d={pathname:s.a.LIST,search:Object(c.stringify)(u)};return Object(r.jsx)(o.a,{className:"c-header-logo",to:d,title:"Return to Inbox",onClick:function onClick(){null===i||void 0===i||i("Navigation Bar: Home"),null===n||void 0===n||n(!1),null===a||void 0===a||a(null)},children:Object(r.jsx)(p,{})});case"LoginPage":return Object(r.jsx)("a",{className:"c-header-logo",target:"_blank",rel:"noopener noreferrer",href:"/launch/",title:"Sedna Launch Page",children:Object(r.jsx)(p,{})});default:return l.a(t)}}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return TeamTag}));var r=n(0),a=n(133),i=n(9),o=n(531);function TeamTag(e){var t=e.label,n=e.state,c=e.onClick,s=e.id,l=e.defaultTeam?Object(r.jsx)(o.a,{text:"DEFAULT",textColor:"var(--team-tag)",backgroundColor:"var(--white)"}):void 0;return Object(r.jsx)(a.a,{id:s,label:t,state:n,onClick:c,color:"var(--team-tag)",icon:Object(i.e)(i.c.PEOPLE),badge:l})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return QuickFilter})),n.d(t,"b",(function(){return filterGlyph}));var r=n(0),a=n(19),i=n(9),o=n(82),c=n(24),s=n.n(c),l=n(138),u=(n(1207),n(13)),d=n(58);function QuickFilter(e){var t=e.id,n=e.href,i=e.isActive,c=e.showLabel,l=e.trackOldUIEvent;return c?Object(r.jsxs)(o.a,{className:s()("c-quick-filter",{"c--active":i}),to:n,onClick:function onClick(){return l("Navigation Bar: ".concat(Object(u.T)(t)))},"data-testid":Object(u.T)(t),children:[Object(r.jsx)(a.a,{glyph:filterGlyph(t)}),Object(r.jsx)("span",{children:Object(u.T)(t)})]}):Object(r.jsx)(d.a,{content:Object(u.T)(t),children:Object(r.jsx)("span",{children:Object(r.jsx)(o.a,{className:s()("c-quick-filter",{"c--active":i}),to:n,onClick:function onClick(){return l("Navigation Bar: ".concat(Object(u.T)(t)))},"data-testid":Object(u.T)(t),children:Object(r.jsx)(a.a,{glyph:filterGlyph(t)})})})})}function filterGlyph(e){switch(e){case u.D.ALL:return Object(i.e)(i.c.ALL_INBOX);case u.D.DRAFT:return Object(i.e)(i.c.DRAFTS);case u.D.FOLLOWING:return Object(i.e)(i.c.FOLLOW);case u.D.INBOX:return Object(i.e)(i.c.INBOX);case u.D.MY_MESSAGES:case u.D.MY_WORK:return Object(i.e)(i.c.MY_MESSAGES);case u.D.SENT:return Object(i.e)(i.c.SEND);case u.D.STORED:return Object(i.e)(i.c.ARCHIVE);default:return Object(l.a)(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return createGoToItemAction}));var r=n(4),a=n(3),i=n(10),o=n(17),c=n(22),s=n(125),l=n(47),u=n(25),d=n(8),b=function(){function SearchNavigator(e,t,n,r,i,o,c,s){Object(a.a)(this,SearchNavigator),this.currentUser=e,this.currentFilterSet=t,this.currentSort=n,this.currentOrder=r,this.currentLocation=i,this.items=o,this.totalItems=c,this.options=s}return Object(i.a)(SearchNavigator,null,[{key:"setTabHistory",value:function setTabHistory(e,t){localStorage.setItem("".concat(e,"_tab"),t)}},{key:"getTabFromHistory",value:function getTabFromHistory(e){var t,n="tags",r=null!==(t=localStorage.getItem("".concat(e,"_tab")))&&void 0!==t?t:n;return"followers"===r&&"message"===e?"tags":"tags"===r&&"topic"===e?"followers":["activity","tags","followers"].includes(r)?r:n}}]),Object(i.a)(SearchNavigator,[{key:"hasNextItem",value:function hasNextItem(e){var t=this.getIndex(e),n=this.items.length-1;return-1<t&&t<n}},{key:"getOptions",value:function getOptions(){return this.options}},{key:"hasPreviousItem",value:function hasPreviousItem(e){return this.getIndex(e)>0}},{key:"getNextItem",value:function getNextItem(e){return u.a.of(this.items[this.getIndex(e)+1])}},{key:"getPreviousItem",value:function getPreviousItem(e){return u.a.of(this.items[this.getIndex(e)-1])}},{key:"goToItem",value:function goToItem(e,t,n){return createGoToItemAction(e,t,this.currentLocation,n)}},{key:"fetchNextPage",value:function fetchNextPage(e){return l.q.fromCursorAndSearch(this.currentUser,e,this.currentFilterSet,this.currentSort,this.currentLocation.search,!e,this.options,d.j.LIST,d.i.NEXT_PAGE)}},{key:"hasNextPage",value:function hasNextPage(){var e=this;return this.totalItems.map((function(t){return!t.exact||t.total>e.items.length})).orElse(!1)}},{key:"shouldFetchNextPage",value:function shouldFetchNextPage(e){return this.hasNextPage()&&this.items.length-this.getIndex(e)<=10}},{key:"getIndex",value:function getIndex(e){return this.items.findIndex((function(t){return t.id===e}))}}]),SearchNavigator}();function createGoToItemAction(e,t,n,a){var i=Object(c.e)(n.pathname,{path:o.a.LIST_ITEM_TAB()});(null===i||void 0===i?void 0:i.params.tab)&&b.setTabHistory(e,i.params.tab);var l=b.getTabFromHistory(e);return a?Object(s.e)(Object(r.a)(Object(r.a)({},n),{},{pathname:o.a.LIST_ITEM(e,t)})):Object(s.e)(Object(r.a)(Object(r.a)({},n),{},{pathname:o.a.LIST_ITEM_TAB(e,t,l)}))}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return ve}));var r,a=n(4),i=n(23),o=n(3),c=n(10),s=n(5),l=n(6),u=n(0),d=n(1),b=n(227),p=n.n(b),m=n(28),h=n(2),g=n(40),j=n(133),v=n(26),O=n(95),T=n(157),y=n(87),S=n(9),C=n(19),A=n(18),E=n(193),w=(n(928),n(143)),_=n(238),I=n(624),x=n(24),k=n.n(x),N=n(84),R=n(577),F=n(189),M=n(44),D=n(15),L=n(32),P=n.n(L),U=[{match:function match(e){return A.C.Not.includes(e.toLowerCase())},token:A.H,description:"Negate a term"},{match:function match(e){return A.C.Or.includes(e.toLowerCase())},token:A.I,description:"Add alternative terms"}],B=function getStaticAdvancedFilters(){return[{modifier:A.E.has,keyword:A.C.Attachment,token:A.r,description:"Messages with attachments"},{modifier:A.E.has,keyword:A.C.Comment,token:A.t,description:"Messages with comments"},{modifier:A.E.has,keyword:A.C.UnreadComment,token:A.w,description:"Messages with unread comments"},{modifier:A.E.has,keyword:A.C.Category,token:A.s,description:"Messages with any ".concat(D.b.t(D.a.CATEGORY_TAG_PLURAL)),displayName:D.b.t(D.a.CATEGORY_TAG).replace(" ","")},{modifier:A.E.has,keyword:A.C.Person,token:A.v,description:"Messages with any ".concat(D.b.t(D.a.PERSON_TAG_PLURAL)),displayName:D.b.t(D.a.PERSON_TAG).replace(" ","")},{modifier:A.E.has,keyword:A.C.Job,token:A.u,description:"Messages with any ".concat(D.b.t(D.a.JOB_TAG_PLURAL)),displayName:D.b.t(D.a.JOB_TAG).replace(" ","")},{modifier:A.E.in,keyword:A.C.Inbox,token:A.x,description:"All messages in Inbox"},{modifier:A.E.in,keyword:A.C.Following,token:A.p,description:"All messages in Following"},{modifier:A.E.in,keyword:A.C.Drafts,token:A.m,description:"All messages in Draft"},{modifier:A.E.in,keyword:A.C.Archive,token:A.l,description:"All messages in Archive"},{modifier:A.E.in,keyword:A.C.Out,token:A.J,description:"All messages in Out"},{modifier:A.E.in,keyword:A.C.Scheduled,token:A.M,description:"All Scheduled Messages"},{modifier:A.E.in,keyword:A.C.Cancelled,token:A.h,description:"All Cancelled Messages"},{modifier:A.E.in,keyword:A.C.AllTeams,token:A.c,description:"All messages from all of your ".concat(D.b.t(D.a.TEAM_PLURAL)),displayName:"All ".concat(D.b.t(D.a.TEAM_PLURAL))},{modifier:A.E.is,keyword:A.C.Read,token:A.z,description:"All messages read by current user"},{modifier:A.E.is,keyword:A.C.Unread,token:A.A,description:"All messages that have not been read by current user"},{modifier:A.E.is,keyword:A.C.Note,token:A.y,description:"All notes"}]},H=function dynamicDateFilters(e){return e?[{match:function match(e){return e.length>0},token:A.a,description:"Messages after this date"},{match:function match(e){return e.length>0},token:A.e,description:"Messages before this date"}]:[]},G=[{match:function match(e){return/^\d+$/.test(e)&&Number.parseInt(e,10)>0},token:A.D,description:"Message with given id"},{match:function match(e){return e.length>0},token:A.O,description:"All messages with a specific term in the Subject"},{match:function match(e){return e.length>0},token:A.g,description:"All messages with a specific term in the Body"},{match:function match(e){return e.length>0},token:A.q,description:"All messages with a specific term in the From field"},{match:function match(e){return e.length>0},token:A.R,description:"All messages with a specific term in the To field"},{match:function match(e){return e.length>0},token:A.j,description:"All messages with a specific term in the Cc field"},{match:function match(e){return e.length>0},token:A.k,description:"All messages with a specific term in its Comments"},{match:function match(e){return e.length>0},token:A.d,description:"All messages with a specific term in the Attachments file name"}],W=Object(N.c)((function(e,t,n){if(""===e)return[];var r=t.tokenize(e);return n||r.type!==A.S.AFTER&&r.type!==A.S.BEFORE&&r.type!==A.S.SINCE?[{title:"",suggestions:[{id:"",label:"",token:r,firstOfType:!0}]}]:[]}),v.a),z=Object(v.b)([function(e){return e},function(e,t,n,r,a){return Object(R.a)(new Set(r.filter((function(e){return e instanceof A.B})).map((function(e){return e.query}))),t,n,e,a,25)}],(function(e,t){return""===e?[]:t.map((function(e,t){return{type:A.S.JOB_REFERENCE,id:e.id,label:e.name,token:new A.B(e.name),firstOfType:0===t}}))})),V=Object(N.c)((function(e,t){return t.map((function(e,t){return{id:"",label:e,token:new A.T(e),firstOfType:0===t}}))}),v.a),J=Object(N.c)((function(e,t,n,r,i){if(""===e)return[];var o=new Set(r.filter((function(e){return e instanceof A.P})).map((function(e){return e.query}))),c=t.filter((function(e){return n.userTeams.includes(e.id)})).filter((function(e){return!o.has(e.name)&&null===e.deletedAt})).map((function(e){return{type:A.S.TEAM,id:e.id,label:e.name,token:new A.P(e.name),firstOfType:!1}}));return n.userTeams.length>1&&c.push({id:"allTeams",label:"All ".concat(D.b.t(D.a.TEAM_PLURAL)),token:new A.c,firstOfType:!1}),Object(F.a)(e,c,i).map((function(e,t){return Object(a.a)(Object(a.a)({},e),{},{firstOfType:0===t})}))}),v.a),Y=Object(N.c)((function(e,t,n,r){if(""===e)return[];var a=new Set(r.filter((function(e){return e instanceof A.K})).map((function(e){return e.query}))),i=Object(F.d)(e);return t.filter((function(e){return!a.has(Object(M.c)(e.firstName,e.lastName))&&(i.test(Object(M.c)(e.firstName,e.lastName))||i.test(e.initials||""))})).map((function(e,t){var r=Object(M.c)(e.firstName,e.lastName);return{type:A.S.USER,id:e.id,label:Object(M.c)(e.firstName,e.lastName)+(e.id===n.id?" (You)":""),token:new A.K(r),firstOfType:0===t}}))}),v.a),q=Object(N.c)((function(e,t,n,r,o){if(""===e)return[];var c=new Set(r.filter((function(e){return e instanceof A.i})).map((function(e){return e.query}))),s=t.filter((function(e){return!c.has(e.label)})).map((function(e){return{type:A.S.CATEGORY,id:e.id,label:e.label,token:new A.i(e.label),firstOfType:!1}})),l=new Set(s.map((function(e){return e.label}))),u=n.filter((function(e){return!l.has(e.attributes.label)})).map((function(e){return{type:A.S.CATEGORY,id:e.id,label:e.attributes.label,token:new A.i(e.attributes.label),firstOfType:!1}})),d=[].concat(Object(i.a)(s),Object(i.a)(u));return Object(F.a)(e,d,o).map((function(e,t){return Object(a.a)(Object(a.a)({},e),{},{firstOfType:0===t})}))}),v.a),K=Object(N.c)((function(e){return e?[{id:"text",label:'"'.concat(e,'"'),token:new A.Q(e),firstOfType:!0}]:[]}),v.a),X=Object(N.c)((function(e,t,n,r,a){return[].concat(Object(i.a)(U.filter((function(t){return(!e||t.match(e))&&!(n&&(n.type===A.S.OR||n.type===A.S.NOT))})).map((function(e){return{id:"",label:"",token:new e.token,description:e.description,firstOfType:!1}}))),Object(i.a)(function filterDateOperators(e,t){return!e||t?[]:[{match:function match(e){return A.C.Since.includes(e.toLowerCase())},token:A.N,description:"Messages since a particular time"},{match:function match(e){return A.C.After.includes(e.toLowerCase())},token:A.b,description:"Messages after a date"},{match:function match(e){return A.C.Before.includes(e.toLowerCase())},token:A.f,description:"Messages before a date"}]}(r,e).map((function(e){return{id:"",label:"",token:new e.token,description:e.description,firstOfType:!1}}))),Object(i.a)(B().filter((function(t){return t.displayName?"".concat(t.modifier,":").concat(t.displayName).toLowerCase().includes(e.toLowerCase()):"".concat(t.modifier,":").concat(t.keyword).includes(e.toLowerCase())})).map((function(e){return{id:"",label:"",token:new e.token,description:e.description,firstOfType:!1}}))),Object(i.a)(H(r).filter((function(t){var n=P()(e),r=P()().endOf("day").toDate(),i=a.find((function(e){return e instanceof A.L}));if(n.isAfter(r)||i)return t.match(e)&&n.isValid()&&t.token.type!==A.S.BEFORE_TIME&&t.token.type!==A.S.AFTER_TIME;var o=a.find((function(e){return e instanceof A.a})),c=o&&o.value.toDate();if(c&&n.isBefore(c))return t.match(e)&&n.isValid()&&t.token.type!==A.S.BEFORE_TIME;var s=a.find((function(e){return e instanceof A.e})),l=s&&s.value.toDate();return l&&n.isAfter(l)?t.match(e)&&n.isValid()&&t.token.type!==A.S.AFTER_TIME:t.match(e)&&n.isValid()})).map((function(t){var n=P()(e);return 2001===n.year()&&n.set("year",P()().year()),{id:"",label:"",token:t.token.type===A.S.AFTER_TIME?new t.token(n.startOf("day")):new t.token(n.endOf("day")),description:t.description,firstOfType:!1}}))),Object(i.a)(G.filter((function(t){return t.match(e)})).map((function(t){return{id:"",label:"",token:new t.token(e),description:t.description,firstOfType:!1}})))).filter((function(e){return!t.has(e.token.type)}))}),v.a),Q=Object(v.b)([function(e){return e.query},function(e){return e.currentUser},function(e){return W(e.query,e.filterTokenizer,e.inlineDateFiltersEnabled)},function(e){return z(e.query,e.jobReferenceTags,e.jobReferencesSearch.orElse([]),e.currentTokens,e.partialAutoSuggest)},function(e){return V(e.query,h.g(e.vesselNames,e.query).orElse([]))},function(e){return J(e.query,e.teams,e.currentUser,e.currentTokens,e.partialAutoSuggest)},function(e){return Y(e.query,e.users,e.currentUser,e.currentTokens)},function(e){return q(e.query,e.categoryTags,e.categoryTagSearch.orElse([]),e.currentTokens,e.partialAutoSuggest)},function(e){return K(e.query)},function(e){return X(e.query,e.suggestionTypesToExclude,e.tailingToken,e.inlineDateFiltersEnabled,e.currentTokens)},function(e){return e.myWorkEnabled}],(function(e,t,n,r,o,c,s,l,u,d,b){var p=Object(M.c)(t.firstName,t.lastName),m=[].concat(Object(i.a)(0===s.filter((function(e){return e.id===t.id})).length&&"mymessages".includes(e.toLowerCase())?[{id:"",label:"",token:new A.F(p),description:"All messages in MyMessages for ".concat(p),firstOfType:!1}]:[]),Object(i.a)(s.map((function(e){return Object(a.a)(Object(a.a)({},e),{},{token:new A.F(e.token.query),description:"All messages in MyMessages for ".concat(e.token.query)})})))),h=[].concat(Object(i.a)(0===s.filter((function(e){return e.id===t.id})).length&&"mywork".includes(e.toLowerCase())?[{id:"",label:"",token:new A.G(p),description:"All messages in MyWork for ".concat(p),firstOfType:!1}]:[]),Object(i.a)(s.map((function(e){return Object(a.a)(Object(a.a)({},e),{},{token:new A.G(e.token.query),description:"All messages in MyWork for ".concat(e.token.query)})})))),g=b?h:m;return[].concat(Object(i.a)(n),[{title:"Results",suggestions:[].concat(Object(i.a)(u),Object(i.a)(r),Object(i.a)(o),Object(i.a)(c),Object(i.a)(s),Object(i.a)(l))}],[{title:"Advanced Filters",suggestions:[].concat(Object(i.a)(d),Object(i.a)(g))}]).filter((function(e){return e.suggestions.length>0}))})),Z=n(100),$=n(101),ee=n(405),te=n(575),ne=n(93),re=n(55),ae=n(21),ie=n(12),oe=n(406),ce=n(152),se=(n(349),{Tray:ie.b.div.withConfig({displayName:"filter-date__Tray",componentId:"sc-10a9ah6-0"})(["position:relative;display:flex;flex-grow:1;align-items:center;"]),Input:ie.b.input.withConfig({displayName:"filter-date__Input",componentId:"sc-10a9ah6-1"})(["height:calc(var(--icon-md) + (var(--spacing-4) * 2));width:35rem;padding-top:var(--spacing-3);padding-bottom:var(--spacing-3);padding-left:calc(var(--spacing-3) * 2 + var(--icon-md));color:inherit;background:none;border:none;outline:none;&::placeholder{opacity:0.6;font-size:var(--fs-sm);color:inherit;}"])}),le=function FilterDate(e){var t,n=P()().endOf("day").toDate(),r=d.useState(""),a=Object(ae.a)(r,2),i=a[0],o=a[1];return Object(u.jsx)(ce.a,{distance:e.distance,theme:"date-picker",arrow:!1,boundary:"window",content:Object(u.jsx)(oe.a,{date:e.date,onDateChange:e.handleDateChange,minDate:e.minDate,maxDate:null!==(t=e.maxDate)&&void 0!==t?t:n,disableOutsideRange:!0,editingToken:e.editingToken}),flip:!0,flipOnUpdate:!0,interactive:!0,hideOnClick:!0,trigger:"click",placement:"bottom-start",showOnCreate:!0,maxWidth:"none",onHide:function onHide(){var t;return null===(t=e.onBlur)||void 0===t?void 0:t.call(e)},children:Object(u.jsx)(se.Tray,{children:Object(u.jsx)(se.Input,{type:"text",placeholder:e.placeholder,value:i,onChange:function handleInputChange(e){var t=e.target.value;o(t)},onKeyDown:function handleKeyDown(t){if("Enter"===t.key&&P()(i).isValid()){var r=P()(i);if(2001===r.year()&&r.set("year",P()().year()),!e.maxDate||!r.isAfter(n)){if(r.isAfter(n))return e.handleDateChange(n);if((!e.minDate||!r.isBefore(e.minDate))&&(!e.maxDate||!r.isAfter(e.maxDate))){var a=r.toDate();e.handleDateChange(a)}}}},"data-testid":"time-filter-input",autoFocus:!0})})})},ue=n(29),de=n(151),fe=n(71),be=n(13),pe={Tray:ie.b.div.withConfig({displayName:"filter-token-select-container__Tray",componentId:"ei94ql-0"})(["position:relative;display:flex;flex-grow:1;align-items:center;"]),Input:ie.b.input.withConfig({displayName:"filter-token-select-container__Input",componentId:"ei94ql-1"})(["height:calc(var(--icon-md) + (var(--spacing-4) * 2));width:35rem;padding-top:var(--spacing-3);padding-bottom:var(--spacing-3);padding-left:calc(var(--spacing-3) * 2 + var(--icon-md));color:inherit;background:none;border:none;outline:none;caret-color:white;&::placeholder{opacity:0.6;font-size:var(--fs-sm);color:inherit;}"])},me="FILTER-SELECT";!function(e){e.HEADER_WIDE="c--header-wide",e.MODAL="c--modal"}(r||(r={}));var he=function(e){Object(s.a)(FilterSelectContainerComponent,e);var t=Object(l.a)(FilterSelectContainerComponent);function FilterSelectContainerComponent(e){var n;return Object(o.a)(this,FilterSelectContainerComponent),(n=t.call(this,e)).searchJobReferencesDebounced=Object(T.a)((function(e){n.searchJobReferences(e)}),250),n.searchTagsDebounced=Object(T.a)((function(e){n.searchTags(e)}),250),n.searchVesselNamesDebounced=Object(T.a)((function(e){e&&h.g(n.props.vesselNames,e).ifAbsent((function(){return n.props.searchVesselNames(e)}))}),250),n.autoSuggestInputRef=void 0,n.renderTokenWidgetFor=new Set([].concat(Object(i.a)(B()),Object(i.a)(H(n.props.inlineDateFiltersEnabled)),Object(i.a)(G),[n.props.myWorkEnabled?{token:A.G}:{token:A.F}]).map((function(e){return e.token.type}))),n.tokenizer=void 0,n.isSetEqual=function(e,t){if(e.size!==t.size)return!1;for(var n=0,r=Array.from(e);n<r.length;n++){var a=r[n];if(!t.has(a))return!1}return!0},n.onKeyUp=function(e){27===e.keyCode&&e.stopPropagation()},n.onMouseDown=function(){var e,t;n.setState({shouldRenderSuggestions:!0}),null===(e=(t=n.props).trackSearchClick)||void 0===e||e.call(t)},n.onBlur=function(){return n.setState({shouldRenderSuggestions:!1})},n.setTailingToken=function(e){var t=e.length;n.setState({tailingToken:t>0?e[t-1]:null})},n.selectRelativeTime=function(e,t){var r,a,i;n.props.editingToken&&(null===(r=n.props.currentFilters[n.props.editingToken.index])||void 0===r?void 0:r.type)===A.S.RELATIVE_TIME?(null===(a=(i=n.props).saveToken)||void 0===a||a.call(i,new A.L({n:e,unit:t})),n.props.trackEvent("Search","Search: Relative Time - Edited to - ".concat(e," ").concat(t).concat(t===be.L.DAY||t===be.L.HOUR?"s":""))):(n.props.selectToken(new A.L({n:e,unit:t})),n.props.trackEvent("Search","Search: Relative Time - Selected - ".concat(e," ").concat(t).concat(t===be.L.DAY||t===be.L.HOUR?"s":"")))},n.renderToggle=function(e){var t=e.onClick,n=e.testId;return Object(u.jsx)(pe.Tray,{children:Object(u.jsx)(pe.Input,{type:"text",placeholder:"Select time period",onClick:t,value:"","data-testid":n,readOnly:!0})})},n.onDateChange=function(e){var t,r,a,i,o=n.props.editingToken&&n.props.currentFilters[n.props.editingToken.index];o&&o.type===A.S.AFTER_TIME&&(null===(t=(r=n.props).saveToken)||void 0===t||t.call(r,new A.a(P()(e))),n.props.trackEvent("Search","Search: After Date Edited"));o&&o.type===A.S.BEFORE_TIME&&(null===(a=(i=n.props).saveToken)||void 0===a||a.call(i,new A.e(P()(e))),n.props.trackEvent("Search","Search: Before Date Edited"));e&&n.state.tailingToken instanceof A.f&&(n.props.selectToken(new A.e(P()(e))),n.props.trackEvent("Search","Search: Before Date Selected")),e&&n.state.tailingToken instanceof A.b&&(n.props.selectToken(new A.a(P()(e))),n.props.trackEvent("Search","Search: After Date Selected"))},n.getSuggestions=function(e,t,r){return Q({filterTokenizer:n.tokenizer,suggestionTypesToExclude:r.suggestionTypesToExclude,currentUser:r.currentUser,currentTokens:r.currentFilters,tailingToken:t,query:e,categoryTags:r.categoryTags,jobReferenceTags:r.jobReferenceTags,teams:r.teams,users:r.users,jobReferencesSearch:r.jobReferencesSearch,categoryTagSearch:r.categoryTagSearch,vesselNames:r.vesselNames,partialAutoSuggest:r.partialAutoSuggest,inlineDateFiltersEnabled:r.inlineDateFiltersEnabled,myWorkEnabled:r.myWorkEnabled})},n.getSectionSuggestions=function(e){return e.suggestions},n.renderSectionTitle=function(e){var t=e.title;return Object(u.jsx)("div",{children:t})},n.renderSuggestion=function(e){return e.token.type===A.S.LOADING?"...":e.token.type===A.S.NOT?Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-advanced",children:[Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-sample-lozenges",children:[Object(u.jsx)(_.a,{label:"not",state:"active",className:"c--not"}),Object(u.jsx)(w.a,{label:"term",state:"active",className:"c--sample",labelClassName:"u-fs-i"})]}),Object(u.jsx)("div",{className:"react-autosuggest__suggestion-description",children:e.description})]}):e.token.type===A.S.OR?Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-advanced",children:[Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-sample-lozenges",children:[Object(u.jsx)(w.a,{label:"term",state:"active",className:"c--connected-by-or c--sample",labelClassName:"u-fs-i"}),Object(u.jsx)(_.a,{label:"or",state:"active",className:"c--or"}),Object(u.jsx)(w.a,{label:"term",state:"active",className:"c--connected-by-or c--sample",labelClassName:"u-fs-i"})]}),Object(u.jsx)("div",{className:"react-autosuggest__suggestion-description",children:e.description})]}):e.token.type===A.S.AFTER||e.token.type===A.S.BEFORE?Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-advanced",children:[Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-sample-lozenges",children:[Object(u.jsx)(_.a,{label:e.token.type===A.S.AFTER?"after":"before",state:"active",className:"c--after-before-token"}),Object(u.jsx)(w.a,{label:"YYYY-MM-DD",state:"active",className:"c--sample",labelClassName:"u-fs-i"})]}),Object(u.jsx)("div",{className:"react-autosuggest__suggestion-description",children:e.description})]}):e.token.type===A.S.SINCE?Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-advanced",children:[Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-sample-lozenges",children:[Object(u.jsx)(_.a,{label:"since",state:"active",className:"c--after-before-token"}),Object(u.jsx)(w.a,{label:"time",state:"active",className:"c--sample",labelClassName:"u-fs-i"})]}),Object(u.jsx)("div",{className:"react-autosuggest__suggestion-description",children:e.description})]}):n.renderTokenWidgetFor.has(e.token.type)?Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-advanced",children:[Object(u.jsx)(E.a,{token:e.token,onClick:g.a,state:"inactive",inlineDateFiltersEnabled:n.props.inlineDateFiltersEnabled}),Object(u.jsx)("div",{className:"react-autosuggest__suggestion-description",children:e.description})]}):e.token.type===A.S.TEXT?Object(u.jsxs)("div",{children:[Object(u.jsx)("div",{className:"react-autosuggest__suggestion-title",children:e.firstOfType&&"Text"}),Object(u.jsx)(E.a,{token:e.token,onClick:g.a,state:"inactive"})]}):e.token.type===A.S.CATEGORY?Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-result",children:[Object(u.jsx)("div",{className:"react-autosuggest__suggestion-title",children:e.firstOfType&&Object(u.jsx)(j.a,{label:D.b.t(D.a.CATEGORY_TAG_PLURAL),state:"active",color:"var(--category-tag)"})}),Object(u.jsx)(E.a,{id:"cat"+e.id,token:e.token,onClick:g.a,state:"inactive"})]}):e.token.type===A.S.VESSEL_NAME?Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-result",children:[Object(u.jsx)("div",{className:"react-autosuggest__suggestion-title",children:e.firstOfType&&Object(u.jsx)(j.a,{label:D.b.t(D.a.ASSET_TAG_PLURAL),state:"active",color:"var(--category-tag)"})}),Object(u.jsx)(E.a,{id:"asset"+e.id,token:e.token,onClick:g.a,state:"inactive"})]}):e.token.type===A.S.JOB_REFERENCE?Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-result",children:[Object(u.jsx)("div",{className:"react-autosuggest__suggestion-title",children:e.firstOfType&&Object(u.jsx)(j.a,{label:D.b.t(D.a.JOB_TAG_PLURAL),state:"active",color:"var(--job-tag)",className:"c--job"})}),Object(u.jsx)(E.a,{id:"jr"+e.id,token:e.token,onClick:g.a,state:"inactive"})]}):e.token.type===A.S.TEAM||e.token.type===A.S.ALL_TEAMS?Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-result",children:[Object(u.jsx)("div",{className:"react-autosuggest__suggestion-title",children:e.firstOfType&&Object(u.jsx)(j.a,{label:D.b.t(D.a.TEAM_TAG_PLURAL),state:"active",color:"var(--team-tag)"})}),Object(u.jsx)(E.a,{token:e.token,onClick:g.a,state:"inactive"})]}):e.token.type===A.S.PERSON?Object(u.jsxs)("div",{className:"react-autosuggest__suggestion-result",children:[Object(u.jsx)("div",{className:"react-autosuggest__suggestion-title",children:e.firstOfType&&Object(u.jsx)(j.a,{label:D.b.t(D.a.PERSON_TAG_PLURAL),state:"active",color:"var(--person-tag)"})}),Object(u.jsx)(E.a,{token:e.token,onClick:g.a,state:"inactive"})]}):Object(u.jsx)(j.a,{id:"tag"+e.id,label:e.token.query||e.token.constructor.name,state:"inactive",onClick:g.a,color:"#717171"})},n.onSuggestionSelected=function(e,t){var r=t.suggestion;r.token.type!==A.S.LOADING&&(r.token.type===A.S.AFTER_TIME&&n.props.trackEvent("Time Filters","After Date Selected"),r.token.type===A.S.BEFORE_TIME&&n.props.trackEvent("Time Filters","Before Date Selected"),n.setState((function(e){return{value:"",shouldRenderSuggestions:!1,suggestions:n.getSuggestions("",e.tailingToken,n.props)}})),n.props.selectToken(r.token))},n.onChange=function(e,t){var r=t.newValue;n.setState((function(e){return{value:r,shouldRenderSuggestions:!0,suggestions:n.getSuggestions(r,e.tailingToken,n.props)}})),n.props.explicitTeamToken?n.searchTagsDebounced(r):n.searchJobReferencesDebounced(r),n.searchVesselNamesDebounced(r)},n.renderSuggestionsContainer=function(e){var t=n.state.tailingToken instanceof A.I?Object(u.jsx)("div",{className:"react-autosuggest__section-title",children:Object(u.jsx)("div",{className:"react-autosuggest__header u-fs-i",children:"Add an alternative term"})}):n.state.tailingToken instanceof A.H?Object(u.jsx)("div",{className:"react-autosuggest__section-title u-fs-i",children:Object(u.jsx)("div",{className:"react-autosuggest__header",children:"Add a term to negate"})}):Object(u.jsx)(u.Fragment,{});return Object(u.jsxs)("div",Object(a.a)(Object(a.a)({},e.containerProps),{},{children:[Object(u.jsxs)("div",{className:"react-autosuggest__suggestions-container--open-options",children:[t,e.children]}),Object(u.jsxs)("div",{className:"react-autosuggest__filter-search-footer",children:[Object(u.jsxs)("div",{className:"react-autosuggest__filter-search-footer-section",children:[Object(u.jsx)(C.a,{glyph:Object(S.e)(S.c.ARROW_DOWN),size:"small",className:"u-mr-sm"}),Object(u.jsx)(C.a,{glyph:Object(S.e)(S.c.ARROW_UP),size:"small",className:"u-mr-sm"}),Object(u.jsx)("span",{className:"u-mr-sm u-fw-n",children:"To navigate between items"})]}),Object(u.jsxs)("div",{className:"react-autosuggest__filter-search-footer-section",children:[Object(u.jsx)(C.a,{glyph:Object(S.e)(S.c.RETURN),size:"small",className:"u-mr-sm"}),Object(u.jsx)("span",{className:"u-mr-sm u-fw-n",children:"To select an item"})]}),Object(u.jsxs)("div",{className:"react-autosuggest__filter-search-footer-section",children:[Object(u.jsx)("div",{className:"react-autosuggest__filter-search-esc-key u-mr-sm",children:"esc"}),Object(u.jsx)("span",{className:"u-mr-sm u-fw-n",children:"To close"})]})]})]}))},n.searchJobReferences=function(e){var t=n.props.explicitTeamToken?n.props.currentUser.userTeams:[];n.props.searchJobReferencesByMatchScore(e,t)},n.searchTags=function(e){var t=n.props.currentUser.userTeams;n.props.searchTagsByMatchScore(e,t)},n.state={value:"",suggestions:n.getSuggestions("",null,n.props),shouldRenderSuggestions:!1,tailingToken:null},n.tokenizer=filter_token_select_container_tokenizer(e.teams,e.suggestionTypesToExclude),n.autoSuggestInputRef=d.createRef(),n}return Object(c.a)(FilterSelectContainerComponent,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(e,t){return this.state.suggestions!==t.suggestions||this.props.showSidebar!==e.showSidebar||this.state.tailingToken!==t.tailingToken||this.props.inlineDateFiltersEnabled!==e.inlineDateFiltersEnabled||this.props.editingToken!==e.editingToken}},{key:"componentDidMount",value:function componentDidMount(){this.setTailingToken(this.props.currentFilters)}},{key:"UNSAFE_componentWillReceiveProps",value:function UNSAFE_componentWillReceiveProps(e){var t=this;e.teams===this.props.teams&&e.suggestionTypesToExclude===this.props.suggestionTypesToExclude||(this.tokenizer=filter_token_select_container_tokenizer(e.teams,e.suggestionTypesToExclude)),this.setTailingToken(e.currentFilters),this.props.inlineDateFiltersEnabled===e.inlineDateFiltersEnabled&&this.isSetEqual(e.suggestionTypesToExclude,this.props.suggestionTypesToExclude)&&this.props.jobReferencesSearch.equals(e.jobReferencesSearch)&&h.g(this.props.vesselNames,this.state.value).equals(h.g(e.vesselNames,this.state.value))||this.setState((function(n){return{suggestions:t.getSuggestions(n.value,n.tailingToken,e)}}))}},{key:"render",value:function render(){var e,t,n,r,a,i=this,o=this.state,c=o.value,s=o.tailingToken,l=this.props.placeholder?this.props.placeholder:"Search for a term, tag, ".concat(D.b.t(D.a.TEAM),", or user");s instanceof A.I?l="Add an alternative term":s instanceof A.H?l="Add a term to negate":((null===(e=this.props.editingToken)||void 0===e?void 0:e.token)===A.S.BEFORE_TIME||(null===(t=this.props.editingToken)||void 0===t?void 0:t.token)===A.S.AFTER_TIME||s instanceof A.b||s instanceof A.f)&&(l="Select or enter date yyyy-mm-dd");var d=this.props.canCompose&&!this.props.showSidebar;return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(FilterTokenSelectNavigation,{autosuggestInput:this.autoSuggestInputRef,onFocus:this.onMouseDown}),Object(u.jsx)("div",{className:k()("c-filter-token-select-container","".concat(this.props.locationModifier),"c--icons-".concat(Object(te.a)(d,this.props.explicitTeamToken&&!this.props.showSidebar)),{"c--with-compose-button":d}),"data-testid":"filter-token-container",children:(null===(n=this.props.editingToken)||void 0===n?void 0:n.token)===A.S.BEFORE_TIME||(null===(r=this.props.editingToken)||void 0===r?void 0:r.token)===A.S.AFTER_TIME||s instanceof A.b||s instanceof A.f?Object(u.jsx)(le,{date:function getDefaultDate(){var e=i.props.currentFilters.find((function(e){return e instanceof A.a}));if(e)return e.value.toDate();var t=i.props.currentFilters.find((function(e){return e instanceof A.e}));return t?t.value.toDate():void 0}(),placeholder:l,handleDateChange:this.onDateChange,minDate:function getAfterTimeValue(){var e=i.props.currentFilters.find((function(e){return e instanceof A.a}));return e?e.value.toDate():P()("2002-01-01").toDate()}(),maxDate:function getBeforeTimeValue(){var e=i.props.currentFilters.find((function(e){return e instanceof A.e}));if(e)return e.value.toDate()}(),isMobile:this.props.isMobile,distance:this.props.showSidebar?"0.5rem":void 0,onBlur:this.props.onBlur,editingToken:this.props.editingToken}):(null===(a=this.props.editingToken)||void 0===a?void 0:a.token)===A.S.RELATIVE_TIME||s instanceof A.N?Object(u.jsxs)(de.a,{subtitle:"Since",defaultOpen:!0,distance:this.props.showSidebar?"small":"none",renderToggle:this.renderToggle,onBlur:this.props.onBlur,children:[Object(u.jsx)(fe.a,{onClick:function onClick(){return i.selectRelativeTime(1,be.L.YEAR)},children:"1 year ago"}),Object(u.jsx)(fe.a,{onClick:function onClick(){return i.selectRelativeTime(1,be.L.MONTH)},children:"1 month ago"}),Object(u.jsx)(fe.a,{onClick:function onClick(){return i.selectRelativeTime(1,be.L.WEEK)},children:"1 week ago"}),Object(u.jsx)(fe.a,{onClick:function onClick(){return i.selectRelativeTime(3,be.L.DAY)},children:"3 days ago"}),Object(u.jsx)(fe.a,{onClick:function onClick(){return i.selectRelativeTime(24,be.L.HOUR)},children:"24 hours ago"})]}):Object(u.jsx)(p.a,{inputProps:{placeholder:l,value:c,onChange:this.onChange,onKeyUp:this.onKeyUp,onMouseDown:this.onMouseDown,onBlur:this.onBlur,ref:this.autoSuggestInputRef},multiSection:!0,focusInputOnSuggestionClick:!1,highlightFirstSuggestion:this.state.shouldRenderSuggestions,suggestions:this.state.suggestions,onSuggestionsFetchRequested:g.a,onSuggestionsClearRequested:g.a,getSectionSuggestions:this.getSectionSuggestions,getSuggestionValue:function getSuggestionValue(){return c},renderSectionTitle:this.renderSectionTitle,renderSuggestion:this.renderSuggestion,onSuggestionSelected:this.onSuggestionSelected,renderSuggestionsContainer:this.renderSuggestionsContainer,shouldRenderSuggestions:function shouldRenderSuggestions(){return i.state.shouldRenderSuggestions}})})]})}}]),FilterSelectContainerComponent}(d.Component);function filter_token_select_container_tokenizer(e,t){return new A.o({teamNames:e.map((function(e){return e.name})),suggestionTypesToExclude:t})}var ge=Object(v.b)([function(e){return Object(y.c)(e)},function(e){return Object(y.d)(e)},function(e){return e.entities.team},function(e){return Object(y.o)(e)},function(e){return h.g(e.entities.jobReferenceSearch,me)},function(e){return h.g(e.entities.categoryTagSearch,me)},function(e){return e.entities.vesselName},function(e){return e.ui.featureFlags.PARTIAL_AUTO_SUGGEST},ne.a,function(e){return e.ui.sidebar.isEnabled},function(e){return e.ui.featureFlags.INLINE_DATE_FILTERS}],(function(e,t,n,r,a,i,o,c,s,l,u){return{categoryTags:e,jobReferenceTags:t,teams:h.h(n),users:r,jobReferencesSearch:a,categoryTagSearch:i,vesselNames:o,partialAutoSuggest:c,explicitTeamToken:s,showSidebar:l,inlineDateFiltersEnabled:u}})),je={searchVesselNames:function searchVesselNames(e){return new I.a(e)},searchJobReferencesByMatchScore:function searchJobReferencesByMatchScore(e,t){return new O.o(me,e,t)},searchTagsByMatchScore:function searchTagsByMatchScore(e,t){return new re.N(me,e,t)},trackEvent:function trackEvent(e,t){return new ue.a(e,t)}};function FilterTokenSelectNavigation(e){return Object(ee.a)(e.autosuggestInput),Object(Z.a)($.f,(function(){var t;e.onFocus(),null===(t=e.autosuggestInput.current)||void 0===t||t.focus()}),[e.autosuggestInput.current]),Object(u.jsx)(u.Fragment,{})}var ve=Object(m.connect)(ge,je)(he)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=(n(1206),n(19)),u=n(58),d=function(e){Object(i.a)(IconLabelButton,e);var t=Object(o.a)(IconLabelButton);function IconLabelButton(){return Object(r.a)(this,IconLabelButton),t.apply(this,arguments)}return Object(a.a)(IconLabelButton,[{key:"render",value:function render(){var e,t,n=this.props.displayText?this.props.buttonText:Object(c.jsx)("span",{className:"u-clip",children:this.props.buttonText});return this.props.displayText?Object(c.jsxs)("button",{className:"c-icon-label-button ".concat(null!==(e=this.props.className)&&void 0!==e?e:""),tabIndex:this.props.tabIndex,type:"button",onClick:this.props.onClick,disabled:this.props.disabled,title:this.props.buttonText,id:this.props.id,"data-testid":this.props["data-testid"],children:[Object(c.jsx)(l.a,{glyph:this.props.iconGlyph,size:this.props.iconSize}),n]}):Object(c.jsx)(u.a,{content:this.props.buttonText,children:Object(c.jsxs)("button",{className:"c-icon-label-button ".concat(null!==(t=this.props.className)&&void 0!==t?t:""),tabIndex:this.props.tabIndex,type:"button",onClick:this.props.onClick,disabled:this.props.disabled,title:this.props.buttonText,id:this.props.id,"data-testid":this.props["data-testid"],children:[Object(c.jsx)(l.a,{glyph:this.props.iconGlyph,size:this.props.iconSize}),n]})})}}]),IconLabelButton}(s.PureComponent);d.defaultProps={iconSize:"large",displayText:!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(16),l=function(e){Object(o.a)(MessageSaveApiAction,e);var t=Object(c.a)(MessageSaveApiAction);function MessageSaveApiAction(e,n){var r;return Object(a.a)(this,MessageSaveApiAction),(r=t.call(this)).messageId=e,r.clientCopy=n,r}return Object(i.a)(MessageSaveApiAction,null,[{key:"buildFormData",value:function buildFormData(e,t){var n=new FormData;return n.append("id",e),n.append("subject",t.subject),n.append("bodyHtml",t.body),n.append("fromName",t.from.name),t.to.forEach((function(e,t){n.append("toAddresses[".concat(t,"][email]"),e.email),n.append("toAddresses[".concat(t,"][name]"),e.name||"")})),t.cc.forEach((function(e,t){n.append("ccAddresses[".concat(t,"][email]"),e.email),n.append("ccAddresses[".concat(t,"][name]"),e.name||"")})),t.bcc.forEach((function(e,t){n.append("bccAddresses[".concat(t,"][email]"),e.email),n.append("bccAddresses[".concat(t,"][name]"),e.name||"")})),n}}]),Object(i.a)(MessageSaveApiAction,[{key:"apiEffect",value:function apiEffect(e){return{body:MessageSaveApiAction.buildFormData(this.messageId,this.clientCopy),path:"".concat(e.apiUrl,"/message"),method:s.c.POST}}},{key:"mapResponse",value:function mapResponse(e){var t;return Object(r.a)(Object(r.a)({},e),{},{id:String(e.id),subject:null!==(t=e.subject)&&void 0!==t?t:""})}}]),MessageSaveApiAction}(n(20).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=(n(1192),n(9)),d=n(19),b=n(157),p=n(40),m=function(e){Object(o.a)(OperatorTag,e);var t=Object(c.a)(OperatorTag);function OperatorTag(e){var n;return Object(a.a)(this,OperatorTag),(n=t.call(this,e)).hoverToggle=Object(b.a)((function(e){n.setState({hover:e})}),10),n.hasRemoveButton=function(){return"inactive"!==n.props.state&&n.props.onClick&&n.props.onClick!==p.a},n.state={hover:!1},n}return Object(i.a)(OperatorTag,[{key:"render",value:function render(){var e=this,t=this.props,n=t.label,a=t.state,i=t.onClick,o=t.children,c=t.id,l=t.className,u="inactive"===a?{onClick:i}:{},d=this.hasRemoveButton()?{onClick:function onClick(){e.hoverToggle(!0)},onMouseOver:function onMouseOver(){e.hoverToggle(!0)},onMouseLeave:function onMouseLeave(){e.hoverToggle(!1)}}:{},b=Object(r.a)(Object(r.a)({id:c,className:"c-operator-tag ".concat(void 0!==l?l:"")},u),d);return Object(s.jsxs)("div",Object(r.a)(Object(r.a)({},b),{},{children:[this.hasRemoveButton()&&this.state.hover?this.renderRemoveButton():Object(s.jsx)("span",{children:n}),o]}))}},{key:"renderRemoveButton",value:function renderRemoveButton(){var e=this.props.onClick;return this.hasRemoveButton()&&e?Object(s.jsx)("div",{onClick:e,style:{cursor:"pointer"},"data-testid":"tag-remove",children:Object(s.jsx)(d.a,{glyph:Object(u.e)(u.c.CLEAR),size:"small"})}):""}}]),OperatorTag}(l.PureComponent)},function(e,t,n){"use strict";n.d(t,"b",(function(){return findCategoryTag})),n.d(t,"c",(function(){return isFavouriteCategoryTag})),n.d(t,"a",(function(){return filterAppliedCategoryTags}));var r=n(38);function findCategoryTag(e,t,n){return e===r.a.topic?t.find((function(e){return e.id===n.relationshipId})):t.find((function(e){return e.tagId===n.tagId}))}function isFavouriteCategoryTag(e,t,n){var a;return e===r.a.topic?t.map((function(e){return e.id})).includes(null!==(a=n.relationshipId)&&void 0!==a?a:""):t.map((function(e){return e.tagId})).includes(n.tagId)}function filterAppliedCategoryTags(e,t,n){return t.filter((function(t){return e===r.a.topic?!n.map((function(e){return e.relationshipId})).includes(t.id):!n.map((function(e){return e.tagId})).includes(t.tagId)}))}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return ToggleSwitch}));var r,a,i,o,c,s,l=n(0),u=n(1),d=n.n(u),b=n(880),p=n.n(b),m=n(463);!function(e){e.MEDIUM="medium",e.SMALL="small"}(r||(r={})),function(e){e.DEFAULT="#a0e7e7",e.NEW_DS="#bab2db"}(a||(a={})),function(e){e.DEFAULT="#2aa2a2",e.NEW_DS="#503fa5"}(i||(i={})),function(e){e.DEFAULT="#d7dbe1"}(o||(o={})),function(e){e.DEFAULT="#6b788c"}(c||(c={})),function(e){e.DEFAULT="0 0 0 4px rgba(43, 169, 169, 0.3)",e.NEW_DS="0 0 0 4px rgba(150, 141, 202, 0.3)"}(s||(s={}));var h=".react-switch-handle";function ToggleSwitch(e){var t=e.checked,n=e.size,r=e.disabled,u=e.onChange,b=e.ariaLabel,h=e.className,g=e.id,j=e.testId,v=document.body.classList.contains(m.a)?"NEW_DS":"DEFAULT",O=d.a.useCallback((function(e,t){t.preventDefault(),t.stopPropagation(),u(e)}),[u]);return Object(l.jsx)(p.a,{checked:t,onChange:O,offColor:o.DEFAULT,offHandleColor:c.DEFAULT,onColor:a[v],onHandleColor:i[v],handleDiameter:{medium:20,small:16}[n],activeBoxShadow:s[v],height:{medium:12,small:8}[n],width:{medium:36,small:28}[n],className:h,id:g,uncheckedIcon:!1,checkedIcon:!1,disabled:r,"aria-label":b,"data-testid":j})}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return AvatarsFollowersGroup}));var r=n(0),a=n(212),i=(n(1),{AvatarsGroup:n(12).b.div.withConfig({displayName:"avatars-group__AvatarsGroup",componentId:"zybgiq-0"})(["display:flex;flex-direction:row-reverse;div{margin-right:calc(-1 * var(--spacing-2));border:2px solid var(--white);}"])});function AvatarsGroup(e){return Object(r.jsx)(i.AvatarsGroup,{children:e.children})}function AvatarsFollowersGroup(e){var t,n=e.followers,i=e.teamsSharedWith,o=e.numberToDisplayOfEach,c=n.slice(0,o),s=i.slice(0,o),l=Math.max(n.length-o,0),u=Math.max(i.length-o,0),d=(n.length>0||i.length>0)&&(l>0||u>0);return Object(r.jsxs)(AvatarsGroup,{children:[d&&Object(r.jsx)(a.a,{text:"+".concat(l+u),type:"other","data-testid":"topic-followers-avatar-other",size:null!==(t=e.size)&&void 0!==t?t:"m"}),s.map((function(t){var n;return Object(r.jsx)(a.a,{type:"team",text:t.name[0],size:null!==(n=e.size)&&void 0!==n?n:"m",tooltipText:t.tooltipText?t.tooltipText:t.name},"topic-team-avatar-".concat(t.id))})),c.map((function(t){var n;return Object(r.jsx)(a.a,{text:t.initials,type:"people",size:null!==(n=e.size)&&void 0!==n?n:"m",tooltipText:t.tooltipText?t.tooltipText:"".concat(t.firstName," ").concat(t.lastName)},"topic-follower-avatar-".concat(t.id))}))]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Checkbox}));var r,a,i=n(0),o=(n(1),n(12));!function(e){e.MEDIUM="MEDIUM",e.LARGE="LARGE"}(r||(r={})),function(e){e.TOP="TOP",e.CENTER="CENTER"}(a||(a={}));var c={Checkbox:o.b.label.withConfig({displayName:"checkbox__Checkbox",componentId:"sc-10pgwsf-0"})(['position:relative;margin-bottom:0;vertical-align:middle;[type="checkbox"]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}',""],(function(e){return e.disabled?"opacity: 0.5;":"cursor: pointer;"})),Label:o.b.div.withConfig({displayName:"checkbox__Label",componentId:"sc-10pgwsf-1"})(["display:flex;",""],(function(e){return e.alignLabel===a.TOP?"align-items: flex-start;":"align-items: center;"})),VisualCheckbox:o.b.div.withConfig({displayName:"checkbox__VisualCheckbox",componentId:"sc-10pgwsf-2"})(["display:block;width:2.5rem;height:2.5rem;flex:0 0 auto;border-width:2px;border-style:solid;border-radius:var(--br);position:relative;"," "," ",' &::before{content:"";position:absolute;left:27%;width:1rem;height:1.5rem;border:2px solid var(--white);border-top:0;border-left:0;transform:rotate(45deg);',"}"],(function(e){return e.alignLabel===a.TOP?"margin-top: var(--spacing-1);":""}),(function(e){return e.checked?"    background-color: var(--checkbox-checked-background);\n    border-color: var(--checkbox-checked-background);":"border-color: var(--border-shade);"}),(function(e){return e.labelSpacing===r.LARGE?"margin-right: var(--spacing-6);":"margin-right: var(--spacing-3);"}),(function(e){return e.checked?"display: block;":"display: none;"}))};function Checkbox(e){var t,n,o;return Object(i.jsxs)(c.Checkbox,{htmlFor:e.id,disabled:!!e.isDisabled&&e.isDisabled,"data-testid":e.testId?e.testId:void 0,children:[Object(i.jsx)("input",{type:"checkbox",onChange:e.onChange,id:e.id,checked:e.isChecked,disabled:e.isDisabled,"data-testid":e.testId?"".concat(e.testId,"-input"):void 0,name:e.fieldName,value:e.value}),Object(i.jsxs)(c.Label,{alignLabel:null!==(t=e.alignLabel)&&void 0!==t?t:a.CENTER,onClick:function onClick(t){e.onClick&&(t.preventDefault(),t.stopPropagation(),e.isDisabled||e.onClick())},children:[Object(i.jsx)(c.VisualCheckbox,{checked:e.isChecked,labelSpacing:null!==(n=e.labelSpacing)&&void 0!==n?n:r.MEDIUM,alignLabel:null!==(o=e.alignLabel)&&void 0!==o?o:a.CENTER,disabled:!!e.isDisabled&&e.isDisabled}),e.children&&Object(i.jsx)("div",{children:e.children})]})]})}},function(e,t,n){"use strict";function userCanSeeMessage(e,t,n){var r=t.find((function(t){return t.userId===e}));return!!(null===r||void 0===r?void 0:r.viewAllTeams)||!(!n||!r)&&r.teamIds.some((function(e){return n.includes(e)}))}n.d(t,"a",(function(){return userCanSeeMessage}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return p}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(20),l=n(16),u=function(e){Object(i.a)(MessagePostShareApiAction,e);var t=Object(o.a)(MessagePostShareApiAction);function MessagePostShareApiAction(e,n,a){var i;return Object(r.a)(this,MessagePostShareApiAction),(i=t.call(this)).messageId=e,i.teamIds=n,i.fromTeamId=a,i}return Object(a.a)(MessagePostShareApiAction,[{key:"apiEffect",value:function apiEffect(e){var t=this.teamIds.map((function(e){return{id:e,type:"team"}}));return{path:"".concat(e.platformUrl,"/2019-01-01/message/").concat(this.messageId,"/relationships/team?fromTeamId=").concat(this.fromTeamId),method:l.c.POST,body:JSON.stringify({data:t})}}}]),MessagePostShareApiAction}(s.a),d=n(29),b=function(e){Object(i.a)(SubmitShareMessage,e);var t=Object(o.a)(SubmitShareMessage);function SubmitShareMessage(){var e;Object(r.a)(this,SubmitShareMessage);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).eventSpec=Object(d.j)("Share to Team",e.messageId),e}return Object(a.a)(SubmitShareMessage,[{key:"onSuccess",value:function onSuccess(){return[new p(this.messageId,this.teamIds,this.fromTeamId)]}},{key:"onError",value:function onError(e){return[new m(e)]}}]),SubmitShareMessage}(u),p=function(e){Object(i.a)(FulfillShareMessage,e);var t=Object(o.a)(FulfillShareMessage);function FulfillShareMessage(e,n,a){var i;return Object(r.a)(this,FulfillShareMessage),(i=t.call(this)).messageId=e,i.teamIds=n,i.fromTeamId=a,i}return FulfillShareMessage}(c.a),m=function(e){Object(i.a)(FailShareMessage,e);var t=Object(o.a)(FailShareMessage);function FailShareMessage(){return Object(r.a)(this,FailShareMessage),t.apply(this,arguments)}return FailShareMessage}(c.b)},function(e,t,n){"use strict";n.d(t,"f",(function(){return y})),n.d(t,"h",(function(){return S})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return w})),n.d(t,"a",(function(){return _})),n.d(t,"g",(function(){return k})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return F}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=n(30),u=n(325),d=function(e){Object(i.a)(TopicAttachmentSignUploadApiAction,e);var t=Object(o.a)(TopicAttachmentSignUploadApiAction);function TopicAttachmentSignUploadApiAction(e){var n;return Object(r.a)(this,TopicAttachmentSignUploadApiAction),(n=t.call(this)).file=e,n}return Object(a.a)(TopicAttachmentSignUploadApiAction,[{key:"apiEffect",value:function apiEffect(e){var t={fileName:this.file.name,fileType:Object(u.a)(this.file)};return{path:"".concat(e.platformUrl,"/attachment/signed-url?").concat(Object(l.stringify)(t)),method:s.c.GET}}}]),TopicAttachmentSignUploadApiAction}(c.a),b=n(14),p=n(4),m=function(e){Object(i.a)(TopicAttachmentCreateApiAction,e);var t=Object(o.a)(TopicAttachmentCreateApiAction);function TopicAttachmentCreateApiAction(e,n,a,i){var o;return Object(r.a)(this,TopicAttachmentCreateApiAction),(o=t.call(this)).id=e,o.fileName=n,o.storedName=a,o.fileSize=i,o}return Object(a.a)(TopicAttachmentCreateApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.id,"/attachment"),method:s.c.POST,body:JSON.stringify({data:[{fileName:encodeURIComponent(this.fileName),storedName:this.storedName,size:this.fileSize}]})}}},{key:"mapResponse",value:function mapResponse(e){return e.data.map((function(e){return Object(p.a)({id:e.id},e.attributes)}))}}]),TopicAttachmentCreateApiAction}(c.a),h=function(e){Object(i.a)(TopicAttachmentDeleteApiAction,e);var t=Object(o.a)(TopicAttachmentDeleteApiAction);function TopicAttachmentDeleteApiAction(e,n){var a;return Object(r.a)(this,TopicAttachmentDeleteApiAction),(a=t.call(this)).topicId=e,a.id=n,a}return Object(a.a)(TopicAttachmentDeleteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/attachment/").concat(this.id),method:s.c.DELETE}}}]),TopicAttachmentDeleteApiAction}(c.a),g=n(332),j=function(e){Object(i.a)(TopicAttachmentEmlPreviewGetAction,e);var t=Object(o.a)(TopicAttachmentEmlPreviewGetAction);function TopicAttachmentEmlPreviewGetAction(e,n){var a;return Object(r.a)(this,TopicAttachmentEmlPreviewGetAction),(a=t.call(this,e,g.b.DOCUMENT)).id=e,a.topicId=n,a}return Object(a.a)(TopicAttachmentEmlPreviewGetAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/topic/").concat(this.topicId,"/attachments/").concat(this.id,"/eml-preview"),method:s.c.GET}}}]),TopicAttachmentEmlPreviewGetAction}(g.a),v=n(61),O=n(43),T=n(8),y=function(e){Object(i.a)(SubmitSignTopicAttachmentUpload,e);var t=Object(o.a)(SubmitSignTopicAttachmentUpload);function SubmitSignTopicAttachmentUpload(e,n){var a;return Object(r.a)(this,SubmitSignTopicAttachmentUpload),(a=t.call(this,n)).topicId=e,a.file=n,a.eventSpec={eventCategory:"Attachment",eventAction:"Topic Attachment Upload"},a}return Object(a.a)(SubmitSignTopicAttachmentUpload,[{key:"onSuccess",value:function onSuccess(e){return[new I(this.topicId,this.file,e),new S(this.topicId,e.uploadUrl,e.storedFileName,this.file)]}},{key:"onError",value:function onError(e){return[new x(this.topicId,this.file,e)]}}]),SubmitSignTopicAttachmentUpload}(d),S=function(e){Object(i.a)(SubmitTopicAttachmentUpload,e);var t=Object(o.a)(SubmitTopicAttachmentUpload);function SubmitTopicAttachmentUpload(e,n,a,i){var o;return Object(r.a)(this,SubmitTopicAttachmentUpload),(o=t.call(this)).id=e,o.url=n,o.storedName=a,o.file=i,o}return Object(a.a)(SubmitTopicAttachmentUpload,[{key:"httpEffect",value:function httpEffect(){var e=this;return new s.a({url:this.url,method:s.c.PUT,headers:{"Content-Type":Object(u.a)(this.file)},body:this.file,callbacks:{responseMapper:function responseMapper(e){return e.response},onSuccess:function onSuccess(t){return[new A(e.id,e.file),new E(e.id,e.storedName,e.file)]},onError:function onError(t){return[new C(e.id,e.file,t)]}}})}}]),SubmitTopicAttachmentUpload}(b.a),C=function(e){Object(i.a)(FailTopicAttachmentUpload,e);var t=Object(o.a)(FailTopicAttachmentUpload);function FailTopicAttachmentUpload(e,n,a){var i;return Object(r.a)(this,FailTopicAttachmentUpload),(i=t.call(this)).id=e,i.file=n,i.error=a,i}return FailTopicAttachmentUpload}(b.a),A=function(e){Object(i.a)(FulfillTopicAttachmentUpload,e);var t=Object(o.a)(FulfillTopicAttachmentUpload);function FulfillTopicAttachmentUpload(e,n){var a;return Object(r.a)(this,FulfillTopicAttachmentUpload),(a=t.call(this)).id=e,a.file=n,a}return FulfillTopicAttachmentUpload}(b.a),E=function(e){Object(i.a)(SubmitTopicAttachmentCreate,e);var t=Object(o.a)(SubmitTopicAttachmentCreate);function SubmitTopicAttachmentCreate(e,n,a){var i;return Object(r.a)(this,SubmitTopicAttachmentCreate),(i=t.call(this,e,a.name,n,a.size)).id=e,i.storedName=n,i.file=a,i}return Object(a.a)(SubmitTopicAttachmentCreate,[{key:"onSuccess",value:function onSuccess(e){return[new w(this.id,this.file,e)]}},{key:"onError",value:function onError(e){return[new _(this.id,this.file,e)]}}]),SubmitTopicAttachmentCreate}(m),w=function(e){Object(i.a)(FulfillTopicAttachmentCreate,e);var t=Object(o.a)(FulfillTopicAttachmentCreate);function FulfillTopicAttachmentCreate(e,n,a){var i;return Object(r.a)(this,FulfillTopicAttachmentCreate),(i=t.call(this)).topicId=e,i.file=n,i.response=a,i}return FulfillTopicAttachmentCreate}(b.a),_=function(e){Object(i.a)(FailTopicAttachmentCreate,e);var t=Object(o.a)(FailTopicAttachmentCreate);function FailTopicAttachmentCreate(e,n,a){var i;return Object(r.a)(this,FailTopicAttachmentCreate),(i=t.call(this)).topicId=e,i.file=n,i.error=a,i}return FailTopicAttachmentCreate}(b.a),I=function(e){Object(i.a)(FulfillSignTopicAttachmentUpload,e);var t=Object(o.a)(FulfillSignTopicAttachmentUpload);function FulfillSignTopicAttachmentUpload(e,n,a){var i;return Object(r.a)(this,FulfillSignTopicAttachmentUpload),(i=t.call(this)).topicId=e,i.file=n,i.response=a,i}return FulfillSignTopicAttachmentUpload}(b.a),x=function(e){Object(i.a)(FailSignTopicAttachmentUpload,e);var t=Object(o.a)(FailSignTopicAttachmentUpload);function FailSignTopicAttachmentUpload(e,n,a){var i;return Object(r.a)(this,FailSignTopicAttachmentUpload),(i=t.call(this,a)).topicId=e,i.file=n,i.error=a,i}return FailSignTopicAttachmentUpload}(b.b),k=function(e){Object(i.a)(SubmitTopicAttachmentDelete,e);var t=Object(o.a)(SubmitTopicAttachmentDelete);function SubmitTopicAttachmentDelete(){return Object(r.a)(this,SubmitTopicAttachmentDelete),t.apply(this,arguments)}return Object(a.a)(SubmitTopicAttachmentDelete,[{key:"onSuccess",value:function onSuccess(e){return[new N(this.topicId,this.id)]}},{key:"onError",value:function onError(e){return[new R(this.topicId,this.id,e)]}}]),SubmitTopicAttachmentDelete}(h),N=function(e){Object(i.a)(FulfillTopicAttachmentDelete,e);var t=Object(o.a)(FulfillTopicAttachmentDelete);function FulfillTopicAttachmentDelete(e,n){var a;return Object(r.a)(this,FulfillTopicAttachmentDelete),(a=t.call(this)).topicId=e,a.topicAttachmentId=n,a}return FulfillTopicAttachmentDelete}(b.a),R=function(e){Object(i.a)(FailTopicAttachmentDelete,e);var t=Object(o.a)(FailTopicAttachmentDelete);function FailTopicAttachmentDelete(e,n,a){var i;return Object(r.a)(this,FailTopicAttachmentDelete),(i=t.call(this)).topicId=e,i.topicAttachmentId=n,i.error=a,i}return FailTopicAttachmentDelete}(b.a),F=function(e){Object(i.a)(RequestTopicAttachmentEmlPreview,e);var t=Object(o.a)(RequestTopicAttachmentEmlPreview);function RequestTopicAttachmentEmlPreview(){return Object(r.a)(this,RequestTopicAttachmentEmlPreview),t.apply(this,arguments)}return Object(a.a)(RequestTopicAttachmentEmlPreview,[{key:"onSuccess",value:function onSuccess(e){return[new v.u(e)]}},{key:"onError",value:function onError(e){return[new O.b({message:"Failed to get the Email preview. Try again.",level:T.n.warning})]}}]),RequestTopicAttachmentEmlPreview}(j)},,function(e,t,n){"use strict";n.d(t,"f",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"g",(function(){return j})),n.d(t,"e",(function(){return v})),n.d(t,"c",(function(){return O})),n.d(t,"a",(function(){return T})),n.d(t,"h",(function(){return y}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(833),l=n(20),u=n(16),d=function(e){Object(i.a)(AosGetDetailsApiAction,e);var t=Object(o.a)(AosGetDetailsApiAction);function AosGetDetailsApiAction(e){var n;return Object(r.a)(this,AosGetDetailsApiAction),(n=t.call(this)).url=e,n}return Object(a.a)(AosGetDetailsApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/jobreference/detail/single/aos?url=").concat(encodeURIComponent(this.url)),method:u.c.GET}}}]),AosGetDetailsApiAction}(l.a),b=n(43),p=n(8),m=function(e){Object(i.a)(RequestAosOperationalData,e);var t=Object(o.a)(RequestAosOperationalData);function RequestAosOperationalData(){return Object(r.a)(this,RequestAosOperationalData),t.apply(this,arguments)}return Object(a.a)(RequestAosOperationalData,[{key:"onSuccess",value:function onSuccess(e){return[new h(this.tagId,e)]}},{key:"onError",value:function onError(e){return[new g(this.tagId,e),new b.b({message:"Unable to fetch operational data",level:p.n.warning})]}}]),RequestAosOperationalData}(s.a),h=function(e){Object(i.a)(FulfillAosOperationalData,e);var t=Object(o.a)(FulfillAosOperationalData);function FulfillAosOperationalData(e,n){var a;return Object(r.a)(this,FulfillAosOperationalData),(a=t.call(this)).tagId=e,a.response=n,a}return FulfillAosOperationalData}(c.a),g=function(e){Object(i.a)(FailAosOperationalData,e);var t=Object(o.a)(FailAosOperationalData);function FailAosOperationalData(e,n){var a;return Object(r.a)(this,FailAosOperationalData),(a=t.call(this,n)).tagId=e,a.error=n,a}return FailAosOperationalData}(c.b),j=function(e){Object(i.a)(RequestAosOperationalDataDetails,e);var t=Object(o.a)(RequestAosOperationalDataDetails);function RequestAosOperationalDataDetails(e,n){var a;return Object(r.a)(this,RequestAosOperationalDataDetails),(a=t.call(this,e)).url=e,a.messageId=n,a}return Object(a.a)(RequestAosOperationalDataDetails,[{key:"onSuccess",value:function onSuccess(e){return[new v(this.url,e)]}},{key:"onError",value:function onError(e){return[new O(this.url,e,this.messageId),new b.b({message:"Unable to fetch operational data",level:p.n.warning})]}}]),RequestAosOperationalDataDetails}(d),v=function(e){Object(i.a)(FulfillAosOperationalDataDetails,e);var t=Object(o.a)(FulfillAosOperationalDataDetails);function FulfillAosOperationalDataDetails(e,n){var a;return Object(r.a)(this,FulfillAosOperationalDataDetails),(a=t.call(this)).url=e,a.response=n,a}return FulfillAosOperationalDataDetails}(c.a),O=function(e){Object(i.a)(FailAosOperationalDataDetails,e);var t=Object(o.a)(FailAosOperationalDataDetails);function FailAosOperationalDataDetails(e,n,a){var i;return Object(r.a)(this,FailAosOperationalDataDetails),(i=t.call(this,n)).url=e,i.error=n,i.messageId=a,i}return FailAosOperationalDataDetails}(c.b),T=function(e){Object(i.a)(ClickAosAction,e);var t=Object(o.a)(ClickAosAction);function ClickAosAction(e,n){var a;return Object(r.a)(this,ClickAosAction),(a=t.call(this)).url=e,a.messageId=n,a}return ClickAosAction}(c.a),y=function(e){Object(i.a)(ResetClickedAosAction,e);var t=Object(o.a)(ResetClickedAosAction);function ResetClickedAosAction(e){var n;return Object(r.a)(this,ResetClickedAosAction),(n=t.call(this)).messageId=e,n}return ResetClickedAosAction}(c.a)},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return b}));var r=n(4),a=n(0),i=n(166),o=n(19),c=n(9),s=n(24),l=n.n(s),u=(n(458),n(34)),d=function NotFoundError(e){var t=Object(r.a)(Object(r.a)({},{darkMode:!1,returnToInbox:!0}),e),n=t.explanation,s=t.detail,d=t.darkMode,b=t.returnToInbox;return Object(a.jsx)("div",{className:"c-layout","data-testid":"not-found-error-container",children:Object(a.jsxs)("div",{className:l()("c-layout__body","c-error-page",{"c--dark":d}),children:[Object(a.jsx)(i.a,{className:l()("c-error-page__logo",{"c--dark":d})}),Object(a.jsx)(o.a,{glyph:c.a,size:"xlarge",className:"u-mb-md c-error-page__glyph","data-testid":"not-found-icon-glyph"}),Object(a.jsx)("h2",{"data-testid":"not-found-explanation",className:"u-ta-c c-error-page__explanation",children:null!==n&&void 0!==n?n:"The requested page doesn't exist"}),s&&Object(a.jsx)("p",{className:"u-text-medium u-ta-c c-error-page__detail","data-testid":"not-found-explanation-detail",children:s}),b&&Object(a.jsx)(u.a,{url:"/launch/",children:"Go to Inbox\ufe0f"})]})})},b=function MessageNotFoundError(e){var t={explanation:"This message does not exist",detail:"It may have been moved, if it was a draft, deleted, or doesn't exist",darkMode:!1};return d(Object(r.a)(Object(r.a)({},t),e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return getOldPortalUrl}));var r=n(51);function getOldPortalUrl(){var e=Object({NODE_ENV:"production",PUBLIC_URL:"/launch",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v20211204-0141",REACT_APP_API_URL:"/api",REACT_APP_PLATFORM_URL:"/platform",REACT_APP_PUBLIC_HOMEPAGE_URL:"https://www.sedna.com/",REACT_APP_TOS_URL:"https://www.sedna.com/terms-of-service",REACT_APP_PRIVACY_POLICY_URL:"https://www.sedna.com/privacy-notice/",REACT_APP_ABOUT_SEDNA_URL:"https://www.sedna.com/about/",REACT_APP_FROALA_KEY:"yDC5hD4C2A6D7B4C4gKTRe1CD1PGb1DESAb1Kd1EBH1Pd1TKoD6C5G5F4G2D3B2B4A5A4==",REACT_APP_AUTH0_DOMAIN_PRD:"sso.sednanetwork.com",REACT_APP_AUTH0_CLIENT_ID_PRD:"prgSyy6AAMW1C8LGzddEzB313tiem8Np",REACT_APP_AUTH0_DOMAIN_TST:"auth0.stage3systems.net",REACT_APP_AUTH0_CLIENT_ID_TST:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B",REACT_APP_LAUNCH_DARKLY_PRD_KEY:"5b32f2d20d67623848de553a",REACT_APP_LAUNCH_DARKLY_STG_KEY:"5c37d49c265e662ebb19aed1",REACT_APP_LAUNCH_DARKLY_TST_TEST1_KEY:"5c3d38838d378b36cc99ac0e",REACT_APP_LAUNCH_DARKLY_TST_TEST2_KEY:"5c3d38918d378b36cc99ac16",REACT_APP_LAUNCH_DARKLY_TST_TEST3_KEY:"60930f369e0d230c9486943b",REACT_APP_LAUNCH_DARKLY_TST_TEST4_KEY:"5cd4a41f47dbad082a7a50c3",REACT_APP_LAUNCH_DARKLY_TST_TEST5_KEY:"5cd4a44747dbad082a7a50e3",REACT_APP_MIXPANEL_PRD_TOKEN:"97a11d22f209be36c43b77d2bf617878",REACT_APP_MIXPANEL_TST_TOKEN:"d50ef6e0d53999efeddd256b7796eab8"}).REACT_APP_OLD_PORTAL_URL;return e&&""!==e?e:Object(r.a)()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return hasUnreadComment})),n.d(t,"b",(function(){return numUnreadComments}));var r=n(25),a=n(66),i=n(63);function hasUnreadComment(e,t,n){var o=t.comments.filter((function(e){return e.byUserId!==n})).sort(Object(i.a)((function(e){return e.time}))),c=o.length>0,s=r.a.of(null===e||void 0===e?void 0:e.comment);return c&&s.map((function(e){var t=o[o.length-1];return Object(a.f)(t.time)>Object(a.f)(e.time)})).orElse(c)}function numUnreadComments(e,t,n){var i=t.comments.filter((function(e){return e.byUserId!==n}));return r.a.of(null===e||void 0===e?void 0:e.comment).map((function(e){return i.filter((function(t){return Object(a.f)(t.time)>Object(a.f)(e.time)}))})).orElse(i).length}},function(e,t,n){"use strict";function getBrowserName(){var e,t,n=!!window.InstallTrigger,r=!!window.ApplePaySession;null===(e=window.opr)||void 0===e||e.addons;return!!(null===(t=window.chrome)||void 0===t?void 0:t.webstore)?"chrome":n?"firefox":r?"safari":null}n.d(t,"a",(function(){return getBrowserName}))},,function(e,t,n){"use strict";function generateTaskId(){for(var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghiklmnopqrstuvwxyz",t="",n=0;n<20;n++){var r=Math.floor(Math.random()*e.length);t+=e.substring(r,r+1)}return t}n.d(t,"a",(function(){return generateTaskId}))},function(e,t,n){"use strict";function notEmpty(e){return null!==e&&void 0!==e}n.d(t,"a",(function(){return notEmpty}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(4),a=n(21),i=n(0),o=n(1),c=n.n(o),s=n(12),l={Container:s.b.div.withConfig({displayName:"select-input__Container",componentId:"sc-1fns1e5-0"})(["display:flex;align-items:center;gap:var(--spacing-2);flex-wrap:wrap;padding:var(--spacing-2) var(--spacing-3);background-color:var(--white);border-radius:var(--br1);border:1px solid var(--border-1);min-height:4.5rem;width:100%;color:var(--text-2);transition:border-color 150ms ease-in-out,box-shadow 150ms ease-in-out;background-image:url(\"data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>\");background-repeat:no-repeat;background-position:right var(--spacing-3) bottom 0.75rem;& > *{height:3.5rem;}"," "," "," ",""],(function(e){return e.$focused&&"\n      border-color: var(--input-border-focus);\n    "}),(function(e){return e.$disabled&&"\n      color: var(--text-2);\n      background-color: var(--input-background-disabled);\n    "}),(function(e){return e.$invalid&&"\n      border-color: var(--danger);\n    "}),(function(e){return e.$invalid&&e.$focused&&"\n      box-shadow: 0 0 0 1px var(--danger);\n    "})),Input:s.b.input.withConfig({displayName:"select-input__Input",componentId:"sc-1fns1e5-1"})(["display:block;text-align:start;border:none;padding:var(--spacing-2) 0;background-color:transparent;flex:1 0 150px;color:",";outline:none;",""],(function(e){return e.isPlaceholderText?"var(--text-2)":"var(--text-1)"}),(function(e){return e.disabled&&"\n      color: var(--input-background-disabled);\n    "}))},u=function SelectInputContainer(e){var t=e.toggleMenu,n=e.comboboxProps,o=e.inputProps,s=e.onFocus,u=e.onBlur,d=e.disabled,b=e.invalid,p=e.name,m=e.type,h=e.testId,g=e.placeholder,j=e.isPlaceholderText,v=e.children,O=c.a.useState(!1),T=Object(a.a)(O,2),y=T[0],S=T[1];return Object(i.jsxs)(l.Container,{"aria-expanded":n["aria-expanded"],"aria-haspopup":n["aria-haspopup"],"aria-owns":n["aria-owns"],role:n.role,ref:n.ref,$disabled:d,$invalid:b,$focused:y,onClick:v?void 0:t,children:[v,Object(i.jsx)(l.Input,Object(r.a)(Object(r.a)({},o),{},{as:void 0,ref:o.inputRef,type:null!==m&&void 0!==m?m:"text",id:o.id,name:p,disabled:o.disabled,onFocus:function handleFocus(e){S(!0),null===s||void 0===s||s(e)},onBlur:function handleBlur(e){S(!1),null===u||void 0===u||u(e)},"data-testid":h,placeholder:g,isPlaceholderText:j,value:"button"===m?g:o.value,onClick:v?t:void 0}))]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return j})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return O}));var r=n(7),a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=n(90),d=(n(797),n(24)),b=n.n(d),p=function(e){Object(o.a)(PageHeader,e);var t=Object(c.a)(PageHeader);function PageHeader(){return Object(a.a)(this,PageHeader),t.apply(this,arguments)}return Object(i.a)(PageHeader,[{key:"render",value:function render(){return Object(s.jsx)("header",{className:b()("c-page-header",Object(r.a)({},"".concat(this.props.className),void 0!==this.props.className)),"data-reactclass":PageHeader.name,children:this.props.children})}}]),PageHeader}(l.PureComponent),m=function(e){Object(o.a)(PageHeaderLeft,e);var t=Object(c.a)(PageHeaderLeft);function PageHeaderLeft(){return Object(a.a)(this,PageHeaderLeft),t.apply(this,arguments)}return Object(i.a)(PageHeaderLeft,[{key:"componentDidMount",value:function componentDidMount(){assertParentIs(this,PageHeaderLeft,p)}},{key:"render",value:function render(){return Object(s.jsx)("div",{className:"c-page-header__left","data-reactclass":PageHeaderLeft.name,children:this.props.children})}}]),PageHeaderLeft}(l.PureComponent),h=function(e){Object(o.a)(PageHeaderLeftMenu,e);var t=Object(c.a)(PageHeaderLeftMenu);function PageHeaderLeftMenu(){return Object(a.a)(this,PageHeaderLeftMenu),t.apply(this,arguments)}return Object(i.a)(PageHeaderLeftMenu,[{key:"componentDidMount",value:function componentDidMount(){assertParentIs(this,PageHeaderLeftMenu,m)}},{key:"render",value:function render(){return Object(s.jsx)("div",{className:"c-page-header__left-menu","data-reactclass":PageHeaderLeftMenu.name,children:this.props.children})}}]),PageHeaderLeftMenu}(l.PureComponent),g=function(e){Object(o.a)(PageHeaderLeftSubmenu,e);var t=Object(c.a)(PageHeaderLeftSubmenu);function PageHeaderLeftSubmenu(){return Object(a.a)(this,PageHeaderLeftSubmenu),t.apply(this,arguments)}return Object(i.a)(PageHeaderLeftSubmenu,[{key:"componentDidMount",value:function componentDidMount(){assertParentIs(this,PageHeaderLeftSubmenu,h)}},{key:"render",value:function render(){return Object(s.jsx)("div",{className:"c-page-header__divider",children:this.props.children})}}]),PageHeaderLeftSubmenu}(l.PureComponent),j=function(e){Object(o.a)(PageHeaderRight,e);var t=Object(c.a)(PageHeaderRight);function PageHeaderRight(){return Object(a.a)(this,PageHeaderRight),t.apply(this,arguments)}return Object(i.a)(PageHeaderRight,[{key:"componentDidMount",value:function componentDidMount(){assertParentIs(this,PageHeaderRight,p)}},{key:"render",value:function render(){return Object(s.jsx)("div",{className:"c-page-header__right","data-reactclass":PageHeaderRight.name,children:this.props.children})}}]),PageHeaderRight}(l.PureComponent),v=function(e){Object(o.a)(PageHeaderRightMenu,e);var t=Object(c.a)(PageHeaderRightMenu);function PageHeaderRightMenu(){return Object(a.a)(this,PageHeaderRightMenu),t.apply(this,arguments)}return Object(i.a)(PageHeaderRightMenu,[{key:"componentDidMount",value:function componentDidMount(){assertParentIs(this,PageHeaderRightMenu,j)}},{key:"render",value:function render(){return Object(s.jsx)("div",{className:"v-message-compose-container__menu",children:this.props.children})}}]),PageHeaderRightMenu}(l.PureComponent),O=function(e){Object(o.a)(PageHeaderTitle,e);var t=Object(c.a)(PageHeaderTitle);function PageHeaderTitle(){return Object(a.a)(this,PageHeaderTitle),t.apply(this,arguments)}return Object(i.a)(PageHeaderTitle,[{key:"componentDidMount",value:function componentDidMount(){assertParentIs(this,PageHeaderTitle,p)}},{key:"render",value:function render(){return Object(s.jsx)("div",{className:"c-page-header__title",children:this.props.children})}}]),PageHeaderTitle}(l.PureComponent);function assertParentIs(e,t,n){var r,a,i=u.findDOMNode(e),o=null!==(r=null===i||void 0===i?void 0:i.parentElement)&&void 0!==r?r:null;if(!o||(null===(a=o.attributes.getNamedItem("data-reactclass"))||void 0===a?void 0:a.value)!==n.name)throw Error("".concat(t.name," must be a child of ").concat(n.name))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return TooltipHotkeys}));var r=n(0),a=n(592);function TooltipHotkeys(){return function(e){return Object(r.jsxs)("div",{className:"u-flex u-items-center",children:[Object(r.jsx)("span",{className:"u-mr-sm",children:e.text}),Object(r.jsx)(a.a,{hotkey:e.hotKey})]})}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return T}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(125),l=n(17),u=n(20),d=n(16),b=function(e){Object(i.a)(LogoutApiAction,e);var t=Object(o.a)(LogoutApiAction);function LogoutApiAction(){return Object(r.a)(this,LogoutApiAction),t.apply(this,arguments)}return Object(a.a)(LogoutApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/logout"),method:d.c.GET}}}]),LogoutApiAction}(u.a),p=function(e){Object(i.a)(AuthCheckExpiryApiAction,e);var t=Object(o.a)(AuthCheckExpiryApiAction);function AuthCheckExpiryApiAction(){return Object(r.a)(this,AuthCheckExpiryApiAction),t.apply(this,arguments)}return Object(a.a)(AuthCheckExpiryApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/auth0/expired"),method:d.c.GET}}}]),AuthCheckExpiryApiAction}(u.a),m=n(126),h=n(59),g=n(51),j=function(e){Object(i.a)(LogoutAction,e);var t=Object(o.a)(LogoutAction);function LogoutAction(e){var n;return Object(r.a)(this,LogoutAction),(n=t.call(this)).auth0Domain=e,n}return Object(a.a)(LogoutAction,[{key:"onError",value:function onError(e){return[new O(e)]}},{key:"onSuccess",value:function onSuccess(e){return Object(m.b)(),window.location.href="https://".concat(this.auth0Domain,"/v2/logout?returnTo=").concat(encodeURIComponent(window.location.origin+g.i),"/"),[new v,Object(s.f)({pathname:l.a.LIST})]}}]),LogoutAction}(b),v=function(e){Object(i.a)(SucceedLogout,e);var t=Object(o.a)(SucceedLogout);function SucceedLogout(){return Object(r.a)(this,SucceedLogout),t.apply(this,arguments)}return SucceedLogout}(c.a),O=function(e){Object(i.a)(FailLogout,e);var t=Object(o.a)(FailLogout);function FailLogout(e){var n;return Object(r.a)(this,FailLogout),(n=t.call(this,e)).error=e,n}return FailLogout}(c.b),T=function(e){Object(i.a)(AuthCheckExpiryAction,e);var t=Object(o.a)(AuthCheckExpiryAction);function AuthCheckExpiryAction(){return Object(r.a)(this,AuthCheckExpiryAction),t.apply(this,arguments)}return Object(a.a)(AuthCheckExpiryAction,[{key:"onError",value:function onError(e){return[new h.c("EXPIRED")]}},{key:"onSuccess",value:function onSuccess(e){return[new h.c(e.expired?"EXPIRED":"NEVER_LOGGED_IN")]}}]),AuthCheckExpiryAction}(p)},function(e,t,n){"use strict";n.d(t,"d",(function(){return suggestCategoryTag})),n.d(t,"e",(function(){return suggestJobReferenceTag})),n.d(t,"c",(function(){return getJobReferenceSuggestions})),n.d(t,"b",(function(){return getCategoryTagSuggestions})),n.d(t,"a",(function(){return getAssignmentTagSuggestions}));var r,a=n(23),i=n(86),o=n(21),c=n(52),s=n(84),l=n(38);function exactMatchSubjectOrBody(e,t,n,a){return e.test(n)||e.test(a)?r.EXACT:t&&(t.test(n)||t.test(a))?r.ATTRIBUTE:r.NONE}function matchesSubjectOrBody(e,t,n){return e.test(t)||e.test(n)}function suggestCategoryTag(e,t,n){return n.filter((function(n){return matchesSubjectOrBody(buildRegExp([n.label]),e,getTruncatedText(t))}))}!function(e){e[e.NONE=0]="NONE",e[e.ATTRIBUTE=1]="ATTRIBUTE",e[e.EXACT=2]="EXACT"}(r||(r={}));var u=Object(s.c)((function(e,t){var n=e.filter((function(e){return!e.archived})).sort((function(e,n){var r=e.tagId&&t.has(e.tagId),a=n.tagId&&t.has(n.tagId),i=Number(n.id)-Number(e.id);return r&&a?i:r?-1:a?1:i})).slice(0,1e3);return[n,n.reduce((function(e,t){var n,r=[normalizeString(t.name)];return(null===(n=t.attributes)||void 0===n?void 0:n.hasOwnProperty("vesselName"))&&"string"===typeof t.attributes.vesselName&&r.push(normalizeString(t.attributes.vesselName)),e.set(t.id,r.map((function(e){return buildRegExp([e])})))}),new Map)]}));function suggestJobReferenceTag(e,t,n,a){var c,s=u(n,a),l=Object(o.a)(s,2),d=l[0],b=l[1],p=normalizeString(getTruncatedText(t)),m=normalizeString(e),h=[],g=[],j=Object(i.a)(d);try{for(j.s();!(c=j.n()).done;){var v=c.value;if(h.length>=3)break;var O=b.get(v.id);if(O){var T=exactMatchSubjectOrBody(O[0],O[1],m,p);T===r.EXACT?h.push(v):T===r.ATTRIBUTE&&g.push(v)}}}catch(y){j.e(y)}finally{j.f()}return[].concat(h,g).slice(0,3)}function getJobReferenceSuggestions(e,t){return t.filter((function(t){return!t.tagId||!e.map((function(e){return e.tagId})).includes(t.tagId)}))}function getCategoryTagSuggestions(e,t,n,r,i,o){var s=o?[].concat(Object(a.a)(r),Object(a.a)(t)):t,u=Object(c.k)(s,(function(e){return e.id})),d=i.map((function(e){return e.id}));return u.filter((function(e){return!d.includes(e.id)})).filter((function(t){return e===l.a.topic?!n.map((function(e){return e.relationshipId})).includes(t.id):!n.map((function(e){return e.tagId})).includes(t.tagId)}))}function getAssignmentTagSuggestions(e,t,n,r,i,o){var s=e.filter((function(e){return e.teamId===n})),l=o?[].concat(Object(a.a)(i),Object(a.a)(s)):s;return Object(c.k)(l,(function(e){return e.id})).filter((function(e){return e.id!==t.id&&!e.deletedAt&&!r.map((function(e){return e.assignedToUserId})).includes(e.id)}))}function buildRegExp(e){return new RegExp("\\b".concat(e.map((function(e){return function escapeRegExp(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}(e)})).join("|"),"\\b"),"i")}function getTruncatedText(e){return e.substring(0,1e4)}function normalizeString(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function nonPropagatedAndDefaultClick(e){return function(t){t.preventDefault(),t.stopPropagation(),e()}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return p}));var r=n(26),a=n(87),i=n(269),o=n(2),c=n(185),s=n(93),l=Object(r.b)([function(e){return Object(s.a)(e)},function(e){return Object(a.c)(e)},function(e,t){return b(e,t)},function(e){return Object(a.a)(e)}],(function(e,t,n,r){return e?d(t,n,r):t})),u=Object(r.b)([function(e){return Object(s.a)(e)},function(e){return Object(a.c)(e)},function(e,t){return Object(c.f)(e,t)},function(e){return Object(a.a)(e)}],(function(e,t,n,r){return e?d(t,n,r):t})),d=function calculateCategoryTags(e,t,n){var r=new Map(n.map((function(e){return[e.teamId,e.categoryTagIds]}))),a=new Map(e.map((function(e){return[e.id,e]})));return t.map((function(e){return Array.from(e.reduce((function(e,t){var n=r.get(t.id);return n&&n.forEach((function(t){return e.add(t)})),e}),new Set)).map((function(e){return a.get(e)})).filter(i.a)})).orElse([])},b=Object(r.b)([function(e,t){return Object(o.g)(e.entities.topicTeam,t)},function(e){return Object(o.i)(e.entities.team)},function(e){return Object(o.g)(e.entities.userConfig,o.a)}],(function(e,t,n){return e.map((function(e){var r=e.map((function(e){return t[e]}));return 0===r.length&&n.isPresent()&&r.push(t[n.orElseThrow(new Error("Error with fetching userConfig")).user.defaultTeamId]),r}))})),p={message:u,topic:l}},function(e,t,n){"use strict";function isIOSAndNotWebView(){var e=window.navigator.userAgent.toLowerCase(),t=e.includes("safari");return/iphone|ipod|ipad/.test(e)&&t}function isMobileDevice(){var e=window.navigator.userAgent.toLowerCase();return/android|iphone|ipod|ipad/.test(e)}function isAndroidMobileDevice(){return window.navigator.userAgent.toLowerCase().includes("android")}n.d(t,"b",(function(){return isIOSAndNotWebView})),n.d(t,"c",(function(){return isMobileDevice})),n.d(t,"a",(function(){return isAndroidMobileDevice}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return se})),n.d(t,"c",(function(){return be})),n.d(t,"b",(function(){return pe})),n.d(t,"d",(function(){return ShareSheet}));var r,a,i=n(21),o=n(532),c=n(7),s=n(4),l=n(86),u=n(0),d=n(1),b=n(471),p=n(580),m=n(12),h=n(1462),g=n(1463),j=n(881),v=n(1464),O=n(19),T=n(9),y=Object(m.b)(h.a).withConfig({displayName:"search-input__SearchBox",componentId:"sc-19b4gsw-0"})(["font-size:var(--fs-lg);border:none;"]),S=Object(m.b)(g.a).withConfig({displayName:"search-input__SearchIconContainer",componentId:"sc-19b4gsw-1"})(["justify-content:center;align-items:center;color:",";"],(function(e){return e.$active?"var(--action-70);":"inherit"})),C=Object(m.b)(g.a).withConfig({displayName:"search-input__SearchStatusTextContainer",componentId:"sc-19b4gsw-2"})(["justify-content:center;align-items:center;"]),A=Object(m.b)(j.a).withConfig({displayName:"search-input__SearchStatusText",componentId:"sc-19b4gsw-3"})(["background-color:var(--white);border:none;color:var(--action-70);font-weight:var(--fw-bold);:hover{cursor:pointer;}"]),E=Object(m.b)(v.a).withConfig({displayName:"search-input__SearchBoxContainer",componentId:"sc-19b4gsw-4"})(["padding:var(--spacing-2) var(--spacing-3);width:100%;border:1px solid;border-radius:var(--br1);border-color:",";margin:var(--spacing-2) 0;.input-group-text{font-size:var(--fs);}"],(function(e){return e.$active?"var(--action-70)":"var(--border-shade)"})),w=Object(T.e)(T.c.SEARCH),_=function SearchInput(e){return Object(u.jsxs)(E,{$active:!!e.value.length,children:[Object(u.jsx)(S,{addonType:"prepend",$active:!!e.value.length,children:Object(u.jsx)(O.a,{glyph:w,size:"regular"})}),Object(u.jsx)(y,{placeholder:e.placeholder,value:e.value,onChange:function onChange(t){return e.onChange(t.target.value)},onMouseDown:e.trackEvent}),e.value&&Object(u.jsx)(C,{addonType:"append",onClick:function onClick(){return e.onChange("")},children:Object(u.jsx)(A,{children:"Clear"})})]})},I=m.b.div.withConfig({displayName:"share-containers__ShareItemContainer",componentId:"sc-1oy3zl-0"})(["height:50px;padding:var(--spacing-2) var(--spacing-3);display:flex;justify-content:space-between;background-color:",";border-radius:var(--br1);&:hover{background-color:var(--menu-item-hover-background);cursor:pointer;}margin-bottom:var(--spacing-1);"],(function(e){return e.hasChanges?"var(--background-shade)":"transparent"})),x=m.b.div.withConfig({displayName:"share-containers__ShareTileRow",componentId:"sc-1oy3zl-1"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;"]),k=m.b.div.withConfig({displayName:"share-containers__ShareTileColumn",componentId:"sc-1oy3zl-2"})(["display:flex;flex-direction:column;justify-content:center;"]),N=m.b.span.withConfig({displayName:"share-containers__ShareTileText",componentId:"sc-1oy3zl-3"})(["font-size:var(--fs);"]),R=m.b.span.withConfig({displayName:"share-containers__ShareTileSubtitle",componentId:"sc-1oy3zl-4"})(["align-self:flex-start;font-size:var(--fs-sm);color:var(--text-2);"]),F=(m.b.div.withConfig({displayName:"share-containers__MediumVerticalSpacingContainer",componentId:"sc-1oy3zl-5"})(["margin:var(--spacing-3) 0;"]),function ShareItemLeft(e){return Object(u.jsx)(x,{children:e.children})}),M=function ShareItemRight(e){return Object(u.jsx)(x,{children:e.children})},D=function ShareItem(e){return Object(u.jsx)(I,{hasChanges:e.hasChanges,children:e.children})},L=n(424),P=n(31),U=n(34),B=Object(m.b)(U.a).withConfig({displayName:"share-toggle-button__Button2",componentId:"sc-1ypssap-0"})(["font-size:var(--fs-sm);color:var(--text-2);&:hover{color:var(--action-60);}"]),H=function StartSharingButton(e){return Object(u.jsx)(P.a,{className:"u-mr-md",buttonContent:"Add",iconGlyph:Object(T.e)(T.c.ADD),onClick:function onClick(){return e.onSelect(e.shareTarget)},size:"small"})},G=function StopSharingButton(e){return Object(u.jsx)(x,{children:Object(u.jsx)(B,{buttonStyle:"link",size:"small",icon:Object(T.e)(T.c.CLEAR),onClick:function onClick(){return e.onSelect(e.shareTarget)},children:"Remove"})})},W=function ShareToggleButton(e){return e.isShared?Object(u.jsx)(G,{shareTarget:e.shareTarget,onSelect:e.onClick}):Object(u.jsx)(H,{shareTarget:e.shareTarget,onSelect:e.onClick})},z=n(509),V=function PersonTile(e){return Object(u.jsxs)(D,{hasChanges:e.isPending,children:[Object(u.jsx)(F,{children:Object(u.jsx)(z.a,{avatarType:"people",initials:e.initials,primaryText:e.name,secondaryText:e.subtitle,badgeText:e.isAuthor?"owner":void 0,badgeTextColor:"var(--white)",badgeBackgroundColor:"var(--person-tag)"})}),Object(u.jsx)(M,{children:!e.isAuthor&&!e.isReadOnly&&Object(u.jsx)(W,{shareTarget:e.shareTarget,onClick:function onClick(){return e.onClick(e.shareTarget)},isShared:e.isShared})})]})},J=function TeamDetailButton(e){return Object(u.jsx)(P.a,{className:"u-mr-md",buttonContent:"Members",iconGlyph:Object(T.e)(T.c.CHEVRON_RIGHT),onClick:function onClick(){return e.onClick(e.teamId)},size:"small"})},Y=function TeamTile(e){return Object(u.jsxs)(D,{hasChanges:e.isPending,children:[Object(u.jsx)(F,{children:Object(u.jsx)(z.a,{avatarType:"team",initials:e.initials,primaryText:e.name,secondaryText:e.subtitle})}),Object(u.jsxs)(M,{children:[!e.isReadOnly&&Object(u.jsx)(W,{shareTarget:e.shareTarget,onClick:function onClick(){return e.onShareToggleClick(e.shareTarget)},isShared:e.isShared}),Object(u.jsx)(J,{teamId:e.shareTarget.id,onClick:function onClick(t){return e.onTeamDetailClick(t)}})]})]})},q=Object(T.e)(T.c.PEOPLE),K=m.b.div.withConfig({displayName:"empty-shares__EmptyContainer",componentId:"dwd2es-0"})(["display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;color:var(--text-2);background-color:var(--background-1);font-size:var(--fs-xlg);padding:var(--spacing-8) 0;margin-top:var(--spacing-3);border-radius:var(--br2);"]),X=m.b.div.withConfig({displayName:"empty-shares__TeamIconCircle",componentId:"dwd2es-1"})(["display:flex;align-items:center;justify-content:center;width:120px;height:120px;background-color:var(--background-shade);border-radius:60px;margin-bottom:10px;"]),Q=function TeamIcon(){return Object(u.jsx)(X,{children:Object(u.jsx)(O.a,{glyph:q,size:"xxlarge"})})},Z=function EmptyShares(e){return Object(u.jsxs)(K,{"data-testid":"empty-shares-container",children:[Object(u.jsx)(Q,{}),Object(u.jsx)("div",{"data-testid":"empty-shares-container-text",children:e.text})]})},$=n(914),ee=n(247),te=n(15);!function(e){e[e.SHARE_SUMMARY=0]="SHARE_SUMMARY",e[e.SEARCH=1]="SEARCH",e[e.TEAM_DETAIL=2]="TEAM_DETAIL",e[e.CONFIRM_CANCEL=3]="CONFIRM_CANCEL"}(r||(r={})),function(e){e[e.PENDING_SHARE=0]="PENDING_SHARE",e[e.PENDING_UNSHARE=1]="PENDING_UNSHARE",e[e.SHARED=2]="SHARED",e[e.NOT_SHARED=3]="NOT_SHARED"}(a||(a={}));var ne,re=function toggleShareStatus(e){switch(e){case a.NOT_SHARED:return a.PENDING_SHARE;case a.SHARED:return a.PENDING_UNSHARE;case a.PENDING_UNSHARE:return a.SHARED;case a.PENDING_SHARE:return a.NOT_SHARED}},ae=function teamShareStatusToSubtitle(e){switch(e.isShared){case a.SHARED:case a.NOT_SHARED:return"";case a.PENDING_SHARE:return"".concat(te.b.t(te.a.TEAM)," Added");case a.PENDING_UNSHARE:return"".concat(te.b.t(te.a.TEAM)," Removed")}},ie=function personShareStatusToSubtitle(e){switch(e.isShared){case a.SHARED:case a.NOT_SHARED:return"";case a.PENDING_UNSHARE:return"Removed";case a.PENDING_SHARE:return"Added"}},oe=function shareStatusToIsShared(e){return e===a.PENDING_SHARE||e===a.SHARED},ce=function isSharedToShareStatus(e){return e?a.SHARED:a.NOT_SHARED},se=m.b.span.withConfig({displayName:"share-sheet__SectionTitle",componentId:"sc-1esjsos-0"})(["display:block;font-weight:var(--fw-bold);color:var(--text-2);margin:var(--spacing-3) 0;"]),le=function PeopleList(e){return Object(u.jsx)("div",{"data-testid":"share-sheet-people-list",children:e.people.map((function(t){return Object(u.jsx)(V,{initials:t.initials,name:t.name,isAuthor:!1,isShared:oe(t.isShared),isPending:fe([t]),shareTarget:{kind:"person",id:t.id},onClick:function onClick(t){e.onClick(t.id)},subtitle:ie(t),isReadOnly:e.isReadOnly},t.id)}))})},ue=function TeamList(e){return Object(u.jsx)("div",{"data-testid":"share-sheet-team-list",children:e.teams.map((function(t){return Object(u.jsx)(Y,{initials:t.initials,name:t.name,isShared:oe(t.isShared),isPending:fe([t]),shareTarget:{kind:"team",id:t.id},subtitle:ae(t),onShareToggleClick:function onShareToggleClick(t){return e.onClick(t.id)},onTeamDetailClick:function onTeamDetailClick(t){return e.onTeamDetailClick(t)},isReadOnly:e.isReadOnly},t.id)}))})},de=function ModalSearch(e){var t=e.people.filter((function(t){return t.name.toLowerCase().includes(e.searchTerm.toLowerCase())})),n=e.teams.filter((function(t){return t.name.toLowerCase().includes(e.searchTerm.toLowerCase())}));return Object(u.jsx)(u.Fragment,{children:Object(u.jsxs)(L.a,{isDetailView:!0,children:[n.length>0&&Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(se,{children:te.b.t(te.a.TEAM_PLURAL)}),Object(u.jsx)(ue,{teams:n,onClick:function onClick(t){e.onTeamClick(t)},onTeamDetailClick:function onTeamDetailClick(t){return e.onTeamDetailClick(t)},isReadOnly:e.isReadOnly})]}),t.length>0&&Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(se,{children:te.b.t(te.a.PERSON_PLURAL)}),Object(u.jsx)(le,{people:t,onClick:function onClick(t){return e.onPersonClick(t)},isReadOnly:e.isReadOnly})]}),0===t.length&&0===n.length&&Object(u.jsx)(Z,{text:"No results found"})]})})},fe=function updatePending(e){var t,n=Object(l.a)(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.isShared===a.PENDING_UNSHARE||r.isShared===a.PENDING_SHARE)return!0}}catch(i){n.e(i)}finally{n.f()}return!1},be=Object(m.b)($.a).withConfig({displayName:"share-sheet__ShareConfirmFooter",componentId:"sc-1esjsos-1"})(["display:flex;justify-content:space-between;align-items:center;"]),pe=Object(m.b)(U.a).withConfig({displayName:"share-sheet__ShareConfirmButton",componentId:"sc-1esjsos-2"})(["margin-left:var(--spacing-3);"]),me=function ModalSummary(e){var t=e.people.filter((function(e){return e.isShared!==a.NOT_SHARED})),n=e.teams.filter((function(e){return e.isShared!==a.NOT_SHARED}));return Object(u.jsx)(u.Fragment,{children:Object(u.jsxs)(L.a,{isDetailView:!1,children:[n.length>0&&Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(se,{children:te.b.t(te.a.TEAM_PLURAL)}),Object(u.jsx)(ue,{teams:n,onClick:function onClick(t){return e.onTeamClick(t)},onTeamDetailClick:function onTeamDetailClick(t){return e.onTeamDetailClick(t)},isReadOnly:e.isReadOnly})]}),Object(u.jsx)(se,{children:te.b.t(te.a.PERSON_PLURAL)}),Object(u.jsx)(V,{initials:e.ownerInitials,name:e.ownerName,isAuthor:!0,isShared:!0,isPending:!1,shareTarget:{kind:"person",id:""},onClick:function onClick(){},isReadOnly:!0}),Object(u.jsx)(le,{people:t,onClick:function onClick(t){return e.onPersonClick(t)},isReadOnly:e.isReadOnly}),0===t.length&&0===n.length&&Object(u.jsx)(Z,{text:"Search to share with ".concat(te.b.t(te.a.PERSON_PLURAL)," and ").concat(te.b.t(te.a.TEAM_PLURAL))})]})})},he=function ModalTeamDetail(e){var t=e.people.filter((function(t){return t.name.toLowerCase().includes(e.searchTerm.toLowerCase())}));return Object(u.jsxs)(L.a,{isDetailView:!0,children:[!e.isReadOnly&&Object(u.jsxs)(D,{hasChanges:!1,children:[Object(u.jsx)(F,{children:Object(u.jsx)(k,{children:Object(u.jsxs)(N,{children:["Add all members of this ",te.b.t(te.a.TEAM)]})})}),Object(u.jsx)(M,{children:Object(u.jsx)(P.a,{className:"u-mr-md",buttonContent:"Add",iconGlyph:Object(T.e)(T.c.ADD),onClick:function onClick(){return e.onClickAddAll(e.people)},size:"small"})})]}),Object(u.jsxs)(se,{children:[te.b.t(te.a.TEAM)," Members"]}),Object(u.jsx)(le,{people:t,onClick:function onClick(t){return e.onClick(t)},isReadOnly:e.isReadOnly})]})},ge=function togglePeople(e,t){var n=e[t],r=Object(s.a)(Object(s.a)({},n),{},{isShared:re(n.isShared)});return Object(s.a)(Object(s.a)({},e),{},Object(c.a)({},t,r))},je=function batchUpdatePeople(e,t){if(0===t.length)return e;var n=Object(o.a)(t),r=n[0],i=n.slice(1);return batchUpdatePeople(function shareToPerson(e,t){var n=e[t],r=Object(s.a)(Object(s.a)({},n),{},{isShared:n.isShared===a.SHARED?a.SHARED:a.PENDING_SHARE});return Object(s.a)(Object(s.a)({},e),{},Object(c.a)({},t,r))}(e,r),i)},ve=m.b.div.withConfig({displayName:"share-sheet__ConfirmationScreenContainer",componentId:"sc-1esjsos-3"})(["display:flex;width:100%;flex-grow:1;flex-direction:column;justify-content:center;align-items:center;min-height:627px;"]);!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Error=2]="Error"}(ne||(ne={}));var Oe=m.b.p.withConfig({displayName:"share-sheet__ConfirmationScreenTitle",componentId:"sc-1esjsos-4"})(["color:var(--text-1);font-size:var(--fs-xxlg);margin-bottom:var(--spacing-2);"]),Te=m.b.p.withConfig({displayName:"share-sheet__ConfirmationScreenSubtitle",componentId:"sc-1esjsos-5"})(["font-size:var(--fs);color:var(--text-2);"]),ye=m.b.div.withConfig({displayName:"share-sheet__ConfirmationScreenAvatars",componentId:"sc-1esjsos-6"})(["margin-top:var(--spacing-2);margin-bottom:var(--spacing-8);"]),Se=function ConfirmationCancelScreen(e){return Object(u.jsxs)(ve,{children:[Object(u.jsx)(Oe,{children:"Discard unsaved changes?"}),Object(u.jsx)(Te,{children:"You have some pending changes."}),Object(u.jsx)(ye,{children:Object(u.jsx)(ee.a,{followers:e.people,teamsSharedWith:e.teams,numberToDisplayOfEach:4})}),Object(u.jsxs)(x,{children:[Object(u.jsx)(U.a,{buttonStyle:"link",onClick:function onClick(){return e.stayInShareMode()},children:"No, stay"}),Object(u.jsx)(pe,{buttonStyle:"primary",onClick:function onClick(){return e.closeModal()},children:"Yes, discard"})]})]})},Ce=m.b.div.withConfig({displayName:"share-sheet__ShareHeaderContent",componentId:"sc-1esjsos-7"})(["display:flex;flex-direction:column;align-items:center;width:100%;"]),Ae=function gatherIdsWithStatus(e,t){return e.filter((function(e){return e.isShared===t})).map((function(e){return e.id}))},Ee=function findPending(e){return e.filter((function(e){return e.isShared===a.PENDING_UNSHARE||e.isShared===a.PENDING_SHARE}))};function ShareSheet(e){var t,n=Object(d.useState)((function(){var t={};return e.people.filter((function(t){return t.id!==e.owner.id})).filter((function(t){return!e.isReadOnly||t.isShared})).forEach((function(e){return t[e.id]=Object(s.a)(Object(s.a)({},e),{},{isShared:ce(e.isShared)})})),t})),o=Object(i.a)(n,2),l=o[0],m=o[1],h=function updateTeams(e){var t=v[e],n=Object(s.a)(Object(s.a)({},t),{},{isShared:re(t.isShared)});return Object(s.a)(Object(s.a)({},v),{},Object(c.a)({},e,n))},g=Object(d.useState)((function(){var t={};return e.teams.filter((function(t){return!e.isReadOnly||t.isShared})).forEach((function(e){return t[e.id]=Object(s.a)(Object(s.a)({},e),{},{isShared:ce(e.isShared)})})),t})),j=Object(i.a)(g,2),v=j[0],O=j[1],T=Object(d.useState)(r.SHARE_SUMMARY),y=Object(i.a)(T,2),S=y[0],C=y[1],A=Object(d.useState)(""),E=Object(i.a)(A,2),w=E[0],I=E[1],x=Object(d.useState)(""),k=Object(i.a)(x,2),N=k[0],F=k[1],M=e.isReadOnly?"You do not have permission to make changes but can filter the already selected ".concat(te.b.t(te.a.TEAM_PLURAL)," and ").concat(te.b.t(te.a.PERSON_PLURAL)," below"):e.description;Object(d.useEffect)((function(){w.length>=2&&S===r.SHARE_SUMMARY&&C(r.SEARCH),0===w.length&&S===r.SEARCH&&C(r.SHARE_SUMMARY)}),[w,S]);var D=fe(Object.values(v))||fe(Object.values(l));return S===r.CONFIRM_CANCEL?Object(u.jsx)(b.a,{isOpen:e.isOpen,children:Object(u.jsx)(Se,{stayInShareMode:function stayInShareMode(){C(r.SHARE_SUMMARY)},closeModal:function closeModal(){return e.toggle()},teams:Ee(Object.values(v)),people:Ee(Object.values(l))})}):Object(u.jsxs)(b.a,{isOpen:e.isOpen,children:[Object(u.jsx)(p.a,{title:function getTitle(){switch(S){case r.SEARCH:return"Search ".concat(te.b.t(te.a.PERSON_PLURAL)," or ").concat(te.b.t(te.a.TEAM_PLURAL));case r.SHARE_SUMMARY:return e.title;case r.TEAM_DETAIL:return v[N].name;case r.CONFIRM_CANCEL:return"Cancel"}}(),navigate:function headerNavigate(){switch(S){case r.SEARCH:return function(){return I("")};case r.TEAM_DETAIL:return function(){I(""),C(r.SHARE_SUMMARY)}}}(),toggle:function toggle(){return function closeModalOrShowDiscardView(){D?C(r.CONFIRM_CANCEL):e.toggle()}()},children:Object(u.jsxs)(Ce,{children:[Object(u.jsx)(R,{children:M}),Object(u.jsx)(_,{placeholder:"Search for ".concat(te.b.t(te.a.PERSON_PLURAL)," and ").concat(te.b.t(te.a.TEAM_PLURAL)),value:w,onChange:function onChange(e){return I(e)},trackEvent:e.trackSearchClick},"share-sheet-search")]})}),function modelContentForModalState(t){switch(t){case r.SHARE_SUMMARY:return Object(u.jsx)(me,{teams:Object.values(v),people:Object.values(l),ownerName:e.owner.name,ownerInitials:e.owner.initials,onPersonClick:function onPersonClick(t){var n;m(ge(l,t)),null===(n=e.trackEvent)||void 0===n||n.call(e,"Share Message","Share Note: Shared With User")},onTeamClick:function onTeamClick(t){var n;O(h(t)),null===(n=e.trackEvent)||void 0===n||n.call(e,"Share Message","Share Note: Shared With User")},onTeamDetailClick:function onTeamDetailClick(e){F(e),C(r.TEAM_DETAIL),I("")},isReadOnly:e.isReadOnly});case r.SEARCH:return Object(u.jsx)(de,{people:Object.values(l),teams:Object.values(v),searchTerm:w,onPersonClick:function onPersonClick(t){var n;m(ge(l,t)),null===(n=e.trackEvent)||void 0===n||n.call(e,"Share Message","Share Note: Shared With User")},onTeamClick:function onTeamClick(t){var n;O(h(t)),null===(n=e.trackEvent)||void 0===n||n.call(e,"Share Message","Share Note: Shared With Team")},onTeamDetailClick:function onTeamDetailClick(e){F(e),C(r.TEAM_DETAIL),I("")},isReadOnly:e.isReadOnly});case r.TEAM_DETAIL:return Object(u.jsx)(he,{people:Object.values(l).filter((function(e){return e.teamIds.includes(N)})),searchTerm:w,onClick:function onClick(e){return m(ge(l,e))},onClickAddAll:function onClickAddAll(e){m(je(l,e.map((function(e){return e.id}))))},isReadOnly:e.isReadOnly})}}(S),D&&Object(u.jsxs)(be,{children:[Object(u.jsx)("p",{children:"Pending Changes"}),Object(u.jsxs)("div",{children:[Object(u.jsx)(U.a,{buttonStyle:"link",onClick:function onClick(){return C(r.CONFIRM_CANCEL)},children:"Discard"}),Object(u.jsx)(pe,{buttonStyle:"primary",onClick:function onClick(){return function saveUpdates(){var t,n=Ae(Object.values(v),a.PENDING_SHARE),r=Ae(Object.values(v),a.PENDING_UNSHARE),i=Ae(Object.values(l),a.PENDING_SHARE),o=Ae(Object.values(l),a.PENDING_UNSHARE);e.makeChanges({teamsToShareTo:n,teamsToUnshareWith:r,peopleToShareWith:i,peopleToUnshareWith:o}),e.toggle(),null===(t=e.trackEvent)||void 0===t||t.call(e,"Share Message","Share Note: Confirm Share")}()},children:null!==(t=e.primaryBtnText)&&void 0!==t?t:"Share"})]})]})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return renderMessageAsync}));var r=n(0),a=n(50),i=n(540),o=n(263),c=n(599),s=n(15);function MessageLoadingError(e){switch(e.error.status){case 403:return Object(r.jsx)(i.a,{explanation:"You need permission to view this message",detail:"You don\u2019t have permission to view this message. The message must first be shared to one of your ".concat(s.b.t(s.a.TEAM_PLURAL)," to view it.")});case 404:return Object(r.jsx)(o.a,{explanation:"This message doesn't exist",detail:"It may have been moved or deleted if it was a draft."});default:return Object(r.jsx)(c.a,{})}}function renderMessageAsync(e,t){return e.map(t).unwrap((function(){return Object(r.jsx)(a.b,{spinner:a.a})}),(function(e){return Object(r.jsx)(MessageLoadingError,{error:e})}))}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(3),a=n(10),i=n(13),o=n(25),c=n(558),s=n(8),l=function(){function TeamEnhancedFilter(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(r.a)(this,TeamEnhancedFilter),this.teams=e,this.allTeams=t,this.teamFilterSet=void 0,this.serialize=function(e){if(e instanceof i.J)return e.value.id;if(e instanceof i.b||e.find((function(e){return e instanceof i.b})).isPresent())return"all";var t=e.children.reduce((function(e,t){return t instanceof i.J&&e.push(t.value.id),e}),[]);return t.length>0?t.join(","):void 0},this.teamFilterSet=t?new i.b:this.teamsToFilterSet(e)}return Object(a.a)(TeamEnhancedFilter,[{key:"cleanFromFilterSet",value:function cleanFromFilterSet(e){return this.hasTeams(e)?e.remove(this.teamFilterSet):e.normalize()}},{key:"enhanceFilterSet",value:function enhanceFilterSet(e,t){var n=t.normalize();return function hasTeamInFilterSet(e){var t=Object(c.a)(e);return 0!==t.teams.length||t.allTeams}(e)?n:(this.teamFilterSet instanceof i.l?i.k.fromFilterTerm(this.teamFilterSet):this.teamFilterSet).and(n)}},{key:"hasTeams",value:function hasTeams(e){var t=this;return e.combinator===s.g.AND&&e.children.some((function(e){return(e instanceof i.k&&t.teamFilterSet instanceof i.k||e instanceof i.l&&t.teamFilterSet instanceof i.l)&&e.equals(t.teamFilterSet)}))}},{key:"teamsToFilterSet",value:function teamsToFilterSet(e){return 1===e.length?new i.J(e[0]):e.reduce((function(e,t){return e.or(new i.J(t))}),i.k.empty())}}]),TeamEnhancedFilter}(),u=function(){function QuickFilterEnhanceFilter(e,t){Object(r.a)(this,QuickFilterEnhanceFilter),this.quickFilter=e,this.currentUser=t}return Object(a.a)(QuickFilterEnhanceFilter,null,[{key:"fromFilterSet",value:function fromFilterSet(e,t){return new QuickFilterEnhanceFilter(findQuickFilter(e,t).toNullable(),t)}}]),Object(a.a)(QuickFilterEnhanceFilter,[{key:"cleanFromFilterSet",value:function cleanFromFilterSet(e){return findQuickFilter(e,this.currentUser).map((function(t){return e.remove(t)})).orElse(e)}},{key:"enhanceFilterSet",value:function enhanceFilterSet(e,t){return this.quickFilter?t.append(i.k.fromFilterTerm(this.quickFilter)):t}}]),QuickFilterEnhanceFilter}();function findQuickFilter(e,t){return e.combinator===s.g.AND?o.a.of(e.children.find((function(e){return Object(i.S)(e,t)}))):o.a.empty()}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return getMessageQueryParams}));var r,a=n(3),i=n(10),o=n(5),c=n(6),s=n(122),l=n(20),u=n(16);!function(e){e.REPLY="reply",e.REPLY_ALL="replyAll",e.FORWARD="forward",e.RESEND="resend",e.RESEND_AS_NEW="resendAsNew"}(r||(r={}));var d=function(e){Object(o.a)(MessageApiAction,e);var t=Object(c.a)(MessageApiAction);function MessageApiAction(e,n,r,i){var o;return Object(a.a)(this,MessageApiAction),(o=t.call(this)).messageId=e,o.fromName=n,o.sendType=r,o.explicitTeamId=i,o}return Object(i.a)(MessageApiAction,[{key:"apiEffect",value:function apiEffect(e){var t="".concat(e.apiUrl,"/message/").concat(this.messageId,"/").concat(this.sendType),n=getMessageQueryParams(this.fromName,this.explicitTeamId);return{path:0===n.length?t:"".concat(t,"?").concat(n.join("&")),method:u.c.GET}}}]),MessageApiAction}(l.a);function getMessageQueryParams(e,t){var n=["private=true","timezone=".concat(s.a.of((function(){return Intl.DateTimeFormat().resolvedOptions().timeZone})).orElse((function(){return"UTC"})))];return e&&n.push("fromName=".concat(encodeURIComponent(e))),t&&n.push("originatingTeamId=".concat(t)),n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return shouldPreviewRoute})),n.d(t,"a",(function(){return PreviewRoute}));var r=n(0),a=n(22),i=n(263),o=n(378),c=n(632),s=n(26);function shouldPreviewRoute(){return window.name.startsWith(c.a)}function PreviewRoute(e){var t,n,c,l=Object(s.d)((function(e){return e.ui.previewDocument})),u=null!==(t=null===(n=window.opener)||void 0===n||null===(c=n.PreviewContext)||void 0===c?void 0:c.document)&&void 0!==t?t:l.doc;return Object(r.jsx)(a.a,{path:e.path,children:u?Object(r.jsx)(o.a,{previewDocument:u,shouldBeModal:!1}):Object(r.jsx)(i.b,{explanation:"Unable to preview, Please close this window and try again",returnToInbox:!1})})}},function(e,t,n){"use strict";n.d(t,"e",(function(){return E})),n.d(t,"f",(function(){return _})),n.d(t,"c",(function(){return I})),n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return N})),n.d(t,"d",(function(){return R}));var r,a,i,o=n(4),c=n(7),s=n(2),l=n(41),u=n(59),d=n(44),b=n(274),p=n(902),m=n(903),h=n.n(m),g=n(32),j=n.n(g),v=n(25),O=n(122),T=n(47),y=n(127),S=n(8),C=Object(o.a)({},S.e),A=Object(c.a)({},u.e.name,(function(e,t){var n=t.config,r=n.config,a=n.tenant,i=n.integrations;return s.o(e,s.a,{settings:r,tenant:a,integrations:i})})),E=Object(l.a)(A,s.e()),w=(r={},Object(c.a)(r,u.h.name,(function(e,t){return t.silent?e:s.r(e,s.a)})),Object(c.a)(r,u.e.name,(function(e,t){var n,r,a=t.config,i=a.user,c=a.userTeams,l=a.myMessageTagIds,u=a.permissions,b=null!==(n=i.firstName)&&void 0!==n?n:"",p=null!==(r=i.lastName)&&void 0!==r?r:"";return s.o(e,s.a,{sessionId:t.config.sessionId,user:Object(o.a)(Object(o.a)({},i),{},{userTeams:c,firstName:b,lastName:p,initials:Object(d.e)(i.initials,b,p),permissions:u}),myMessageTagIds:new Set(l)})})),Object(c.a)(r,u.c.name,(function(e,t){return s.f(e,s.a,t.error)})),Object(c.a)(r,b.c.name,(function(){return s.e()})),Object(c.a)(r,y.d.name,(function(e,t){return s.g(e,s.a).map((function(n){return t.jobReferenceTagId&&n.myMessageTagIds.delete(t.jobReferenceTagId),s.o(e,s.a,n)})).orElse(e)})),Object(c.a)(r,y.b.name,(function(e,t){return s.g(e,s.a).map((function(n){return t.jobReferenceTagId&&n.myMessageTagIds.add(t.jobReferenceTagId),s.o(e,s.a,n)})).orElse(e)})),r),_=Object(l.a)(w,s.e()),I=Object(l.a)(Object(c.a)({},T.j.name,(function(e,t){return t.result.meta.limitedMode?S.q.CRITICAL:S.q.STABLE})),S.q.STABLE),x="SEDNA_LAST_UPDATED",k=Object(l.a)((a={},Object(c.a)(a,u.a.name,(function(e,t){return Object(o.a)(Object(o.a)({},e),{},{isAvailable:t.registration,versionReleaseAvailable:e.versionReleaseAvailable||!isUpdatedRecently(t.updateFrequency,e.lastUpdated)})})),Object(c.a)(a,u.i.name,(function(e){if(null===e.isAvailable||!e.isAvailable.waiting)return e;var t=j()().toString();return localStorage.setItem(x,t),e.isAvailable.waiting.postMessage({action:"skipWaiting"}),Object(o.a)(Object(o.a)({},e),{},{lastUpdated:t})})),Object(c.a)(a,u.d.name,(function(e,t){var n=O.a.of((function(){return h()(p,t.version)})).orNull(),r="minor"===n||"major"===n,a=!isUpdatedRecently(t.updateFrequency,e.lastUpdated);return Object(o.a)(Object(o.a)({},e),{},{versionReleaseAvailable:!!e.isAvailable&&(r||a)})})),a),{isAvailable:null,lastUpdated:localStorage.getItem(x),versionReleaseAvailable:!1});function isUpdatedRecently(e,t){return v.a.of(t).map((function(t){return j()().diff(new Date(t),"hours")<=e})).orElse(!1)}var N=Object(l.a)((i={},Object(c.a)(i,u.f.name,(function(e,t){return t.featureFlags})),Object(c.a)(i,u.j.name,(function(e,t){return Object(o.a)(Object(o.a)({},e),t.featureFlags)})),i),C),R=Object(l.a)(Object(c.a)({},u.k.name,(function(e,t){return Object(o.a)(Object(o.a)({},e),{},{isEnabled:t.isEnabled})})),{isEnabled:!1})},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(2),a=n(26),i=n(63),o=n(44),c=Object(a.b)([function(e){return e.entities.team},function(e,t){return t}],(function(e,t){return r.h(e).filter((function(e){return null===e.deletedAt&&null!==e.emailAddress&&(t.userTeams.includes(e.id)||t.defaultTeamId===e.id)}))})),s=Object(a.b)([function(e){return e.entities.user}],(function(e){return r.h(e).filter((function(e){return null===e.deletedAt})).sort(Object(i.a)((function(e){return Object(o.c)(e.firstName,e.lastName)})))}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return newTopicComments}));var r=n(66),a=n(331),i=n(25);function newTopicComments(e){if(void 0===e.relationships.topic_comment)return 0;var t=i.a.of(e.relationships.topic_comment).flatMap((function(e){return i.a.of(e.meta.version_read_up_to)})).flatMap((function(e){return i.a.of(Object(a.a)(e))})).map((function(e){return Object(r.f)(e)})).orElse(0);return e.relationships.topic_comment.data.filter((function(e){return i.a.of(e.meta.version).flatMap((function(e){return i.a.of(Object(a.a)(e))})).map((function(e){return Object(r.f)(e)})).orElse(0)>t})).length}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(4),a=n(21),i=n(0),o=n(1),c=n(12),s={Container:c.b.div.withConfig({displayName:"text-input__Container",componentId:"sc-49fyn2-0"})(["display:flex;align-items:center;padding:0 var(--spacing-3);background-color:var(--input-background-default);border-radius:var(--br1);border:1px solid var(--border-1);min-height:4.5rem;width:100%;color:var(--text-2);transition:border-color 150ms ease-in-out,box-shadow 150ms ease-in-out;"," "," "," "," ",""],(function(e){return e.$focused&&"\n      border-color: var(--input-border-focus);\n    "}),(function(e){return e.$disabled&&"\n      color: var(--text-2);\n      background-color: var(--input-background-disabled);\n    "}),(function(e){return e.$invalid&&"\n      border-color: var(--danger);\n    "}),(function(e){return e.$invalid&&e.$focused&&"\n      box-shadow: 0 0 0 1px var(--danger);\n    "}),(function(e){return e.$borderless&&"\n      border-radius: 0;\n      border-color: transparent;\n      "})),Input:c.b.input.withConfig({displayName:"text-input__Input",componentId:"sc-49fyn2-1"})(["display:block;border:none;padding:var(--spacing-2) 0;background-color:transparent;height:100%;width:100%;color:var(--text-1);outline:none;"," "," ",""],(function(e){return e.disabled&&"\n      color: var(--text-2);\n    "}),(function(e){return e.$prefix&&"\n      padding-left: var(--spacing-3);\n    "}),(function(e){return e.$suffix&&"\n      padding-right: var(--spacing-3);\n    "}))},l=o.forwardRef((function(e,t){var n=e.type,c=e.value,l=e.placeholder,u=e.borderless,d=e.invalid,b=e.disabled,p=e.autoFocus,m=e.maxLength,h=e.inputProps,g=e.prefix,j=e.suffix,v=e.onChange,O=e.onFocus,T=e.onBlur,y=e.name,S=e.id,C=e.testId,A=o.useState(!1),E=Object(a.a)(A,2),w=E[0],_=E[1];return Object(i.jsxs)(s.Container,{$disabled:b,$invalid:d,$focused:w,$borderless:u,children:[g,Object(i.jsx)(s.Input,Object(r.a)(Object(r.a)({},h),{},{ref:t,id:S,name:y,type:null!==n&&void 0!==n?n:"text",value:c,placeholder:l,disabled:b,autoFocus:p,maxLength:m,$prefix:!!g,$suffix:!!j,onChange:v,onFocus:function handleFocus(e){_(!0),null===O||void 0===O||O(e)},onBlur:function handleBlur(e){_(!1),null===T||void 0===T||T(e)},"data-testid":C})),j]})}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(19),u=n(9),d=n(34),b=n(178),p=(n(1246),function(e){Object(i.a)(ErrorBoundary,e);var t=Object(o.a)(ErrorBoundary);function ErrorBoundary(e){var n;return Object(r.a)(this,ErrorBoundary),(n=t.call(this,e)).renderError=function(){return Object(c.jsxs)("div",{className:"c-error-boundary-container",children:[Object(c.jsx)(l.a,{glyph:u.b,size:"xlarge",className:"u-mb-md c-error-boundary-container__icon"}),Object(c.jsx)("h2",{className:"c-error-boundary-container__title",children:"An error occurred"}),Object(c.jsxs)("p",{children:["The error has been logged. Please reach out to"," ",Object(c.jsx)("a",{href:"mailto:support@sedna.com",children:"support@sedna.com"})," if the error persists."]}),Object(c.jsx)(d.a,{url:"/launch/",children:"Go to Inbox\ufe0f"})]})},n.state={hasError:!1},n}return Object(a.a)(ErrorBoundary,null,[{key:"getDerivedStateFromError",value:function getDerivedStateFromError(e){return{hasError:!0,error:e}}}]),Object(a.a)(ErrorBoundary,[{key:"componentDidCatch",value:function componentDidCatch(e,t){b.d((function(n){n.setExtra("componentStack",t.componentStack),b.a(e)}))}},{key:"render",value:function render(){return this.state.hasError?this.renderError():this.props.children}}]),ErrorBoundary}(s.Component))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return splitList}));var r=n(23);function splitList(e,t){return e.reduce((function(e,n){return t(n)?[[].concat(Object(r.a)(e[0]),[n]),e[1]]:[e[0],[].concat(Object(r.a)(e[1]),[n])]}),[[],[]])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return PersonTag}));var r=n(0),a=n(133),i=n(9),o=n(12),c={Wrapper:Object(o.b)(a.a).withConfig({displayName:"person-tag__Wrapper",componentId:"sc-1waqulj-0"})(["",""],(function(e){return!e.tagHeight&&"height: 18px;\n       white-space: nowrap;\n       "}))};function PersonTag(e){var t=e.label,n=e.state,a=e.onClick,o=e.id,s=e.displayIcon,l=!1===s?void 0:Object(i.e)(i.c.PERSON);return Object(r.jsx)(c.Wrapper,{id:o,label:t,state:n,onClick:a,color:"var(--person-tag)",icon:l,tagHeight:!1!==s})}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function omit(e){for(var t={},n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];for(var i in e)r.includes(i)||(t[i]=e[i]);return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(23),a=n(26),i=n(426),o=n(42),c=Object(a.b)([function(e,t){return e.ui.list.selectedItems},function(e,t){return Object(i.c)(e,t)},function(e,t){return Object(i.d)(e,t)}],(function(e,t,n){var a=new Set(e.map((function(e){return e.id}))),i=o.a.filterPresent.apply(o.a,Object(r.a)(n)).filter((function(e){return a.has(e.id)})),c=o.a.filterPresent.apply(o.a,Object(r.a)(t)).filter((function(e){return a.has(e.id)}));return i.concat(c)}))},function(e,t,n){"use strict";function getFileType(e){return e.type||"binary/octet-stream"}n.d(t,"a",(function(){return getFileType}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return V})),n.d(t,"b",(function(){return q}));var r=n(7),a=n(3),i=n(5),o=n(6),c=n(4),s=n(23),l=n(21),u=n(0),d=n(125),b=n(32),p=n.n(b),m=n(1),h=n(28),g=n(22),j=n(17),v=n(123),O=n(265),T=n(63),y=n(41),S=n(66),C=n(2),A=n(25),E=n(42),w=n(14),_=n(27),I=n(185),x=n(37),k=n(29),N=n(44),R=n(327),F=n(26),M=n(70),D=n(601),L=n(249),P=n(361),U=n(312),B=n(210),H=n(289),G=n(115),W=n(8),z=[],V=m.memo((function MessageActivityContainer(e){var t=Object(h.useDispatch)(),n=Object(g.g)(),r=Object(g.h)().id,a=Object(h.useSelector)(Object(F.b)([function(e){return e.entities.user},function(e){return e.entities.team},function(e){return e.entities.userToTeam},function(e){return e.ui.messageActivityList.activeFilters},function(e){return e.ui.featureFlags},function(e){return{messageComments:Object(I.d)(e,r),messagePublicComments:Object(I.e)(e,r),messageShares:Object(I.g)(e,r),messageExternalShare:C.g(e.entities.messageExternalShare,r),messageRead:C.g(e.entities.messageRead,r),messageFollowUp:C.g(e.entities.messageFollowUp,r),messageAssignment:C.g(e.entities.messageAssignment,r),messageMeta:C.g(e.entities.messageMeta,r),messageArchivedForTeam:C.g(e.entities.messageArchivedForTeam,r),messageScheduled:C.g(e.entities.messageScheduled,r),messageCancelled:C.g(e.entities.messageCancelled,r),messageEdit:C.g(e.entities.messageEdit,r),senderChanged:C.g(e.entities.senderChanged,r),messageSendNow:C.g(e.entities.messageSendNow,r),icsDownloaded:C.g(e.entities.icsDownloaded,r),messageTeams:C.g(e.entities.messageTeam,r),messageExternalFollowUp:C.g(e.entities.messageExternalFollowUp,r)}},function(e){return Object(U.a)(e)},function(t){return Object(G.a)(t,e.currentUser)},function(e){return C.g(e.entities.messageExternalShare,r).orElse([]).flatMap((function(e){return e.sharedTo}))}],(function(t,n,a,i,o,c,u,d,b){var m=c.messageComments,h=c.messagePublicComments,g=c.messageShares,v=c.messageExternalShare,y=c.messageRead,S=c.messageFollowUp,w=c.messageAssignment,_=c.messageMeta,I=c.messageArchivedForTeam,k=c.messageScheduled,R=c.messageCancelled,F=c.messageEdit,D=c.senderChanged,P=c.messageSendNow,U=c.icsDownloaded,B=c.messageTeams,H=c.messageExternalFollowUp,G=e.currentUser,z=i.SHARE?C.m(g,(function(e){return E.a.lift3((function(t,n,a){return{type:M.a.share,uuid:"".concat(r,"-").concat(e.id,"-").concat(e.time),time:e.time,user:n.name?Object(N.c)(t.firstName,t.lastName):"",sharedFrom:n.name,sharedTo:a.name}}))(C.g(t,e.sharedByUserId).or(E.a.of(N.b)),C.g(n,e.sharedFromTeamId).or(E.a.of(N.g)),C.g(n,e.sharedToTeamId).or(E.a.of(N.g)))})):E.a.of([]),V=i.SHARE_EXTERNAL?C.m(v,(function(e){return C.g(t,e.sharedByUserId).map((function(t){return{type:M.a.externalShare,uuid:"".concat(r,"-").concat(e.id,"-").concat(e.createdAt),time:e.createdAt,user:Object(N.c)(t.firstName,t.lastName),sharedTo:e.sharedTo.join(", ")}}))})):E.a.of([]),J=i.FOLLOWUP?C.m(S,(function(e){return C.g(t,e.userId).map((function(t){return{type:M.a.followUp,uuid:"".concat(e.userId,"-").concat(e.messageId,"-").concat(e.time),time:e.time,user:Object(N.c)(t.firstName,t.lastName),messageHref:j.a.MESSAGE(e.messageId),followUpType:e.followUpType}}))})):E.a.of([]),Y=i.EXTERNAL_FOLLOWUP?C.m(H,(function(e){return E.a.of({type:M.a.followUp,uuid:"".concat(e.fromEmail,"-").concat(e.messageId,"-").concat(e.time),time:e.time,user:e.fromEmail,messageHref:j.a.MESSAGE(e.messageId),followUpType:e.followUpType})})):E.a.of([]),q=i.COMMENT?C.m(m,(function(n){return E.a.lift2((function(t,a){return{type:M.a.comment,uuid:"".concat(r,"-").concat(n.id,"-").concat(n.attributes.createdAt),time:n.attributes.createdAt,user:Object(N.c)(t.firstName,t.lastName),userInitials:t.initials,commentId:n.id,commentText:n.attributes.content,isCurrentUser:t.id===G.id,fromActiveTeam:a.teamIds.includes(e.currentTeam.id)}}))(C.g(t,n.relationships.user.data.id).or(E.a.of(N.b)),C.g(a,n.relationships.user.data.id))})):E.a.of([]),K=i.PUBLIC_COMMENT?C.m(h,(function(e){var n,a,i=E.a.lift((function(t){return{type:M.a.publicComment,uuid:"".concat(r,"-").concat(e.id,"-").concat(e.createdAt),time:e.createdAt,user:Object(N.c)(t.firstName,t.lastName),userInitials:t.initials,commentText:e.content,isCurrentUser:t.id===G.id}}));return e.userId?i(C.g(t,e.userId).or(E.a.of(N.b))):E.a.of({type:M.a.publicComment,uuid:"".concat(r,"-").concat(e.id,"-").concat(e.createdAt),time:e.createdAt,user:null!==(n=e.externalUserId)&&void 0!==n?n:N.b.username,userInitials:(null!==(a=e.externalUserId[0])&&void 0!==a?a:N.b.initials).toUpperCase(),commentText:e.content,isCurrentUser:!1})})):E.a.of([]),X=i.READ?C.m(y,(function(e){return C.g(t,e.userId).map((function(t){return{type:M.a.readBy,uuid:"".concat(e.userId,"-").concat(x.g.READ,"-").concat(e.time),time:e.time,user:Object(N.c)(t.firstName,t.lastName)}}))})):E.a.of([]),Q=C.m(I,(function(e){return E.a.lift2((function(t,n){return{type:M.a.archivedForTeam,uuid:"".concat(e.messageId,"-").concat(e.userId,"-").concat(e.teamId,"-").concat(e.time),time:e.time,user:Object(N.c)(t.firstName,t.lastName),teamName:n.name}}))(C.g(t,e.userId).or(E.a.of(N.b)),C.g(n,e.teamId).or(E.a.of(N.g)))})),Z=i.ASSIGNMENT?C.m(w,(function(e){return E.a.lift2((function(t,n){return{type:M.a.assigned,uuid:"".concat(r,"-").concat(e.id,"-").concat(e.time),time:e.time,assignedByUserId:t.id,assignedToUserId:n.id,assignedToUserName:Object(N.c)(n.firstName,n.lastName),assignedByUserName:Object(N.c)(t.firstName,t.lastName)}}))(e.assignedByUserId?C.g(t,e.assignedByUserId).or(E.a.of(N.b)):E.a.of(N.b),C.g(t,e.assignedToUserId).or(E.a.of(N.b)))})):E.a.of([]),$=i.SCHEDULED?C.m(k,(function(e){return E.a.lift((function(t){return{type:M.a.scheduled,user:Object(N.c)(t.firstName,t.lastName),uuid:"".concat(e.messageId,"-").concat(e.userId,"-").concat(e.time),time:e.time}}))(C.g(t,e.userId).or(E.a.of(N.b)))})):E.a.of([]),ee=i.SCHEDULED?C.m(R,(function(e){return E.a.lift((function(t){return{type:M.a.cancelled,user:Object(N.c)(t.firstName,t.lastName),uuid:"".concat(e.messageId,"-").concat(e.userId,"-").concat(e.time),time:e.time}}))(C.g(t,e.userId).or(E.a.of(N.b)))})):E.a.of([]),te=i.SENDER_CHANGED?C.m(D,(function(e){return E.a.lift((function(t){return{type:M.a.senderChanged,user:Object(N.c)(t.firstName,t.lastName),uuid:"".concat(e.messageId,"-").concat(e.userId,"-").concat(e.time),time:e.time}}))(C.g(t,e.userId).or(E.a.of(N.b)))})):E.a.of([]),ne=i.SEND_NOW?C.m(P,(function(e){return E.a.lift((function(t){return{type:M.a.sendNow,user:Object(N.c)(t.firstName,t.lastName),uuid:"".concat(e.messageId,"-").concat(e.userId,"-").concat(e.time),time:e.time}}))(C.g(t,e.userId).or(E.a.of(N.b)))})):E.a.of([]),re=i.ICS_DOWNLOADED?C.m(U,(function(e){return E.a.lift((function(t){return{type:M.a.icsDownloaded,user:Object(N.c)(t.firstName,t.lastName),uuid:"".concat(e.userId,"-").concat(e.time),time:e.time}}))(C.g(t,e.userId).or(E.a.of(N.b)))})):E.a.of([]),ae=_.flatMap((function(e){if(void 0===e.sender||null===e.sentDate||e.state!==W.m.Sent)return E.a.of(void 0);var n=e.sender.userId,r=e.sentDate;return C.g(t,e.sender.userId).map((function(e){return{type:M.a.sent,uuid:"".concat(n,"-").concat(x.g.SENT,"-").concat(r),time:r,user:Object(N.c)(e.firstName,e.lastName)}}))})),ie=i.EDITED?C.m(F,(function(e){return E.a.of(e)})).map((function(e){return function filterRepeatedEditedEvents(e){if(0===e.length)return e;var t=e[0],n=30;return e.reduce((function(e,r,a){return 0===a||r.userId!==t.userId||p()(r.time).subtract(n,"minutes")>p()(t.time)?(e.push(r),t=r):r.userId===t.userId&&p()(r.time).subtract(n,"minutes")<=p()(t.time)&&(e.pop(),e.push(r),t=r),e}),[])}(e)})).map((function(e){return(e=e.sort((function(e,t){return p()(e.time).diff(p()(t.time))}))).map((function(e){return function generateMessageEditEvent(e,t){return{type:M.a.edited,user:Object(N.c)(e.firstName,e.lastName),uuid:"".concat(t.messageId,"-").concat(t.userId,"-").concat(t.time),time:t.time}}(C.g(t,e.userId).orElse(N.b),e)}))})):E.a.of([]),oe=_.flatMap((function(e){if(!e.createdBy)return E.a.of(void 0);var n=e.createdBy,r=e.createdAt;return C.g(t,n).map((function(e){return{type:M.a.created,uuid:"".concat(n,"-").concat(x.g.DRAFT,"-").concat(r),time:r,user:Object(N.c)(e.firstName,e.lastName)}}))})),ce=_.map((function(e){return Object(O.b)(e.witness,e.activitySummary,G.id)})).orElse(0),se=C.h(a),le=u.filter((function(e){return Object(L.a)(e.id,se,B.orElse([]))})),ue=E.a.tuple2(_,q).map((function(e){var t=Object(l.a)(e,2),n=t[0],r=t[1];return n.activitySummary.comments.length!==r.length})).orElse(!1);return{events:E.a.lift17((function(e,t,n,r,a,i,o,c,l,u,d,b,p,m,h,g,j){var v=void 0!==o?i.filter((function(e){return e.user!==o.user})):i,O=[].concat(Object(s.a)(e.filter((function(e){return e.sharedFrom||e.sharedTo}))),Object(s.a)(t),Object(s.a)(n),Object(s.a)(r),Object(s.a)(a),Object(s.a)(v),Object(s.a)(c),Object(s.a)(l),Object(s.a)(u),Object(s.a)(d),Object(s.a)(b),Object(s.a)(p),Object(s.a)(m),Object(s.a)(h),Object(s.a)(g));return void 0!==o&&O.push(o),void 0!==j&&O.push(j),O.sort(T.d),O}))(z,V,Z,q,K,X,ae,J,Q,$,ee,ie,te,ne,re,Y,oe),activeFilters:i,witnessedComment:_.toOptional().flatMap((function(e){var t;return A.a.of(null===(t=e.witness)||void 0===t?void 0:t.comment)})),featureFlags:o,newComments:ce,visibleUsers:le,commentsOutOfSync:ue,filterSetDeserializer:d,externalSharedEmails:b}})));m.useEffect((function(){(a.events.isNotLoading()||a.commentsOutOfSync)&&t(_.X.doNotSetToLoading(r,e.currentUser.id))}),[a.events,r,e.currentUser.id,a.commentsOutOfSync,t]),m.useEffect((function(){var i;return a.events.map((function(o){var c=o.filter((function(e){return e.type===M.a.comment}));if(0===c.length)return!1;var s=c[c.length-1],l=a.witnessedComment.orElse({time:"0",foreignId:"0",autoIncrementId:"0",stringValue:"0"});if(s.isCurrentUser)return!1;if(Object(S.f)(s.time)>Object(S.f)(l.time)){if(z.includes(s.commentId))return!1;var u=Object(B.b)(a.filterSetDeserializer,e.searchNavigator.currentFilterSet).unreadCommentSearchQuery;i=window.setTimeout((function(){z.push(s.commentId),t(new _.xb(r,s.commentId,n.search,[u]))}),1e3)}return!1})),function(){i&&clearTimeout(i)}}),[a.events,a.witnessedComment,t,r,n.search,e.currentUser,e.searchNavigator,a.filterSetDeserializer]);var i=Object(u.jsx)(R.a,{activeTab:"activity",newActivityItems:a.newComments,toggleActivity:function toggleActivity(){e.isCompose&&e.disableNavigationPrompt&&e.disableNavigationPrompt(),t(Object(d.e)(Object(c.a)(Object(c.a)({},n),{},{pathname:e.isCompose?j.a.COMPOSE_MESSAGE_ACTIVITY(r):j.a.MESSAGE_ACTIVITY(r)}))),t(k.a.withEvent(Object(k.i)("Show Activity Pane")))},toggleTags:function toggleTags(){e.isCompose&&e.disableNavigationPrompt&&e.disableNavigationPrompt(),t(Object(d.e)(Object(c.a)(Object(c.a)({},n),{},{pathname:e.isCompose?j.a.COMPOSE_MESSAGE_TAGS(r):j.a.MESSAGE_TAGS(r)}))),t(k.a.withEvent(Object(k.i)("Show Tags Pane")))},paneTitle:"Activity",children:Object(u.jsx)(D.a,{visibleUsers:a.visibleUsers,externalSharedEmails:a.externalSharedEmails,activeFilters:a.activeFilters,setActiveFilters:function setActiveFilters(e){return t(new J(e))},events:a.events,submitComment:function submitComment(n,i){if(i)return t(new v.h(r,n,e.currentUser.id));var o=a.events.map((function(e){return e.filter((function(e){return e.type===M.a.assigned})).map((function(e){return e.assignedToUserId}))})).orElse([]),c=Array.from(n.matchAll(new RegExp(P.b,"g"))).map((function(e){return e[2]})).filter((function(e){return!o.includes(e)}));c.length>0?t(new v.f(r,n,c,e.currentUser.id)):t(new v.g(r,n,e.currentUser.id))},featureFlagSenderChanged:a.featureFlags.CHANGE_DRAFT_OWNER,trackFollowUpClick:function trackFollowUpClick(e){t(k.a.withEvent(Object(k.b)(e)))},trackMaxCharsReachedInComment:function trackMaxCharsReachedInComment(){t(k.a.withEvent(Object(k.h)("Comment - Max Char Warning (Messages)",r)))},pullToRefresh:e.pullToRefresh})});return e.isMobile?Object(H.a)(a.events,(function(e){return i})):a.events.map((function(e){return i})).orElse(Object(u.jsx)(u.Fragment,{}))})),J=function(e){Object(i.a)(SetActivityFiltersAction,e);var t=Object(o.a)(SetActivityFiltersAction);function SetActivityFiltersAction(e){var n;return Object(a.a)(this,SetActivityFiltersAction),(n=t.call(this)).filters=e,n}return SetActivityFiltersAction}(w.a),Y=Object(r.a)({},J.name,(function(e,t){var n={COMMENT:t.filters.includes("COMMENT"),PUBLIC_COMMENT:t.filters.includes("PUBLIC_COMMENT"),ASSIGNMENT:t.filters.includes("ASSIGNMENT"),SHARE:t.filters.includes("SHARE"),SHARE_EXTERNAL:t.filters.includes("SHARE_EXTERNAL"),READ:t.filters.includes("READ"),FOLLOWUP:t.filters.includes("FOLLOWUP"),SCHEDULED:t.filters.includes("SCHEDULED"),EDITED:t.filters.includes("EDITED"),SENDER_CHANGED:t.filters.includes("SENDER_CHANGED"),SEND_NOW:t.filters.includes("SEND_NOW"),ICS_DOWNLOADED:t.filters.includes("ICS_DOWNLOADED"),EXTERNAL_FOLLOWUP:t.filters.includes("EXTERNAL_FOLLOWUP"),CREATED:t.filters.includes("CREATED")};return Object(c.a)(Object(c.a)({},e),{},{activeFilters:n})})),q=Object(y.a)(Y,{activeFilters:{COMMENT:!0,PUBLIC_COMMENT:!0,ASSIGNMENT:!0,SHARE:!0,SHARE_EXTERNAL:!0,READ:!0,FOLLOWUP:!0,SCHEDULED:!0,EDITED:!0,SENDER_CHANGED:!0,SEND_NOW:!0,ICS_DOWNLOADED:!0,EXTERNAL_FOLLOWUP:!0,CREATED:!0}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(25),u=n(536),d=n(24),b=n.n(d),p=n(9),m=(n(1281),n(31)),h=n(100),g=n(101),j=n(411),v=function(e){Object(i.a)(SidebarRightPane,e);var t=Object(o.a)(SidebarRightPane);function SidebarRightPane(){var e;Object(r.a)(this,SidebarRightPane);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).sidePaneRef=s.createRef(),e}return Object(a.a)(SidebarRightPane,[{key:"render",value:function render(){var e=this.props.newActivityItems?this.props.newActivityItems:0;return Object(c.jsxs)("div",{className:"c-sidebar-right-pane ".concat(this.props.isDark?"c--dark":""),ref:this.sidePaneRef,children:[Object(c.jsx)(SidebarNavigation,{activeTab:this.props.activeTab,toggleTags:this.props.toggleTags,toggleActivity:this.props.toggleActivity,divRef:this.sidePaneRef}),Object(c.jsxs)("div",{className:"c-sidebar-right-pane__header",children:[Object(c.jsxs)("div",{className:"u-h2 u-flex u-items-center",children:[this.props.toggleSidebar&&Object(c.jsx)(m.a,{buttonContent:"Close",iconGlyph:Object(p.e)(p.c.CLEAR),onClick:this.props.toggleSidebar,onDarkTheme:this.props.isDark}),this.props.paneTitle]}),Object(c.jsxs)("div",{className:"u-flex-shrink-0 u-dn-p",children:[Object(c.jsxs)("div",{className:"u-dib u-mr-md u-relative",children:[this.props.toggleActivity&&Object(c.jsx)(m.a,{className:b()({"c--selected":"activity"===this.props.activeTab},"qa-activity-button"),buttonContent:"Activity",iconGlyph:Object(p.e)(p.c.COMMENT),onClick:this.props.toggleActivity,onDarkTheme:this.props.isDark}),e>0&&Object(c.jsx)(u.a,{items:l.a.of(this.props.newActivityItems),displaysActivity:!0})]}),Object(c.jsx)(m.a,{className:b()({"c--selected":"tags"===this.props.activeTab||"followers"===this.props.activeTab}),buttonContent:"Tags",iconGlyph:Object(p.e)(p.c.TAG),onClick:this.props.toggleTags,onDarkTheme:this.props.isDark,dataTestId:"tagsButton"})]})]}),Object(c.jsx)("div",{className:"c-sidebar-right-pane__content",children:this.props.children})]})}}]),SidebarRightPane}(s.PureComponent);function SidebarNavigation(e){return Object(h.a)(g.m,(function(){e.divRef.current&&Object(j.a)(e.divRef.current)&&("activity"!==e.activeTab&&e.toggleActivity?e.toggleActivity():e.toggleTags())}),[e.activeTab,e.toggleActivity,e.divRef]),Object(c.jsx)(c.Fragment,{})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(30),a=n(25),i=n(26),o=n(2),c=function getOptionalCurrentTeam(e,t){return a.a.of(Object(r.parse)(e).teamId).or(t.map((function(e){return e.teamId})))},s=Object(i.b)([function(e){return e.entities.user},function(e){return e.entities.team},function(e,t,n){return n},function(e,t){return t}],(function(e,t,n,i){var c=a.a.of(Object(r.parse)(i).teamId).orElse(n.teamId),s=o.g(e,n.id).orElseThrow(Error("Not Possible")).teamId;return o.g(t,c).orElse(o.g(t,s).orElseThrow(Error("Not Possible")))}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return h}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(14),l=n(237),u=n(593),d=function(e){Object(o.a)(SubmitOptimisticSave,e);var t=Object(c.a)(SubmitOptimisticSave);function SubmitOptimisticSave(e,n,i){return Object(a.a)(this,SubmitOptimisticSave),t.call(this,e,Object(r.a)(Object(r.a)({},i),{},{body:n}))}return Object(i.a)(SubmitOptimisticSave,[{key:"onSuccess",value:function onSuccess(e){return[new b(e)]}},{key:"onError",value:function onError(e){return[new p(this.messageId,e)]}}]),SubmitOptimisticSave}(l.a),b=function(e){Object(o.a)(FulfillOptimisticSave,e);var t=Object(c.a)(FulfillOptimisticSave);function FulfillOptimisticSave(e){var n;return Object(a.a)(this,FulfillOptimisticSave),(n=t.call(this)).response=e,n}return FulfillOptimisticSave}(s.a),p=function(e){Object(o.a)(FailOptimisticSave,e);var t=Object(c.a)(FailOptimisticSave);function FailOptimisticSave(e,n){var r;return Object(a.a)(this,FailOptimisticSave),(r=t.call(this,n)).messageId=e,r.error=n,r}return FailOptimisticSave}(s.b),m=function(e){Object(o.a)(SubmitAssociateTemplateDocumentsWithMessage,e);var t=Object(c.a)(SubmitAssociateTemplateDocumentsWithMessage);function SubmitAssociateTemplateDocumentsWithMessage(e,n){var r;return Object(a.a)(this,SubmitAssociateTemplateDocumentsWithMessage),(r=t.call(this,e,n)).messageId=e,r.documentIds=n,r}return Object(i.a)(SubmitAssociateTemplateDocumentsWithMessage,[{key:"onSuccess",value:function onSuccess(e){return[new h(this.messageId,e)]}},{key:"onError",value:function onError(e){return[new g(e)]}}]),SubmitAssociateTemplateDocumentsWithMessage}(u.a),h=function(e){Object(o.a)(FulfillAssociateTemplateDocumentsWithMessage,e);var t=Object(c.a)(FulfillAssociateTemplateDocumentsWithMessage);function FulfillAssociateTemplateDocumentsWithMessage(e,n){var r;return Object(a.a)(this,FulfillAssociateTemplateDocumentsWithMessage),(r=t.call(this)).messageId=e,r.documents=n,r}return FulfillAssociateTemplateDocumentsWithMessage}(s.a),g=function(e){Object(o.a)(FailAssociateTemplateDocumentsWithMessage,e);var t=Object(c.a)(FailAssociateTemplateDocumentsWithMessage);function FailAssociateTemplateDocumentsWithMessage(e){var n;return Object(a.a)(this,FailAssociateTemplateDocumentsWithMessage),(n=t.call(this,e)).error=e,n}return FailAssociateTemplateDocumentsWithMessage}(s.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return ye})),n.d(t,"b",(function(){return Ae}));var r=n(4),a=n(21),i=n(0),o=n(22),c=n(1),s=n(28),l=n(2),u=n(55),d=n(13),b=n(27),p=n(95),m=n(26),h=n(87),g=n(17),j=n(327),v=n(38),O=n(125),T=n(52),y=n(265),S=n(250),C=n(510),A=n.n(C),E=n(537),w=n.n(E),_=n(538),I=n.n(_),x=n(539),k=n.n(x),N=n(9),R=n(31),F=n(19),M=n(63),D=n(44),L=n(407),P=n(25),U=n(535),B=n(34),H=n(15);function NoAccessModalComponent(e){var t=c.useState(P.a.empty()),n=Object(a.a)(t,2),r=n[0],o=n[1],s=c.useState("CLOSED"),l=Object(a.a)(s,2),u=l[0],d=l[1],b=P.a.of(e.userToTeams.find((function(t){return t.userId===e.userId}))).map((function(e){return e.teamIds})).orElse([]),p=e.teams.filter((function(e){return!0===e.isPublic})).filter((function(e){return b.includes(e.id)})).sort(Object(M.a)((function(e){return e.name.toLowerCase()})));c.useEffect((function(){o(P.a.of(p[0]))}),[e.userId]);var m=e.users.find((function(t){return t.id===e.userId})),h=m?Object(D.c)(m.firstName,m.lastName):"";return Object(i.jsxs)(A.a,{wrapClassName:"c--modal-wrapper",className:"c-modal c--button-r",isOpen:e.isOpen,toggle:e.closeNoAccessModal,"data-testid":"share-modal",children:[Object(i.jsx)(w.a,{toggle:e.closeNoAccessModal,close:Object(i.jsx)(R.a,{buttonContent:"Close",iconGlyph:Object(N.e)(N.c.CLEAR),onClick:e.closeNoAccessModal}),children:Object(i.jsx)("div",{className:"u-fw-b",children:"That user doesn't have access to this message"})}),Object(i.jsxs)(I.a,{children:[Object(i.jsxs)("div",{className:"u-ma-md",children:[h," is not on any ",H.b.t(H.a.TEAM_PLURAL)," that can view this message. This message must be shared with one of their"," ",H.b.t(H.a.TEAM_PLURAL)," before they can see it."]}),0===p.length&&Object(i.jsxs)("div",{className:"u-ma-md u-fs-i",children:["No ",H.b.t(H.a.TEAM_PLURAL)," to share to",Object(i.jsx)(F.a,{glyph:Object(N.e)(N.c.CHEVRON_DOWN),size:"regular"})]}),0!==p.length&&Object(i.jsx)(L.b,{teams:p,activeTeam:r.toUndefined(),onClickHandler:function onSelectTeam(e){o(P.a.of(e))},location:L.a.MODAL,dropdownState:u,toggle:function toggleTeamDropdown(){d(Object(U.a)(u))}})]}),Object(i.jsxs)(k.a,{children:[Object(i.jsx)(B.a,{buttonStyle:"link",onClick:function onTagWithoutShare(){e.assignMessage(e.userId),e.closeNoAccessModal()},id:"tag-without-sharing",children:"Tag without sharing"}),Object(i.jsx)(B.a,{buttonStyle:p.length>0?"primary":"secondary",onClick:function onTagWithShare(){r.map((function(t){e.shareMessage(t.id),e.assignMessage(e.userId),e.closeNoAccessModal()}))},disabled:0===p.length,children:"Share"})]})]},"shareModal")}var G=c.memo(NoAccessModalComponent),W=n(137),z=n(249),V=n(58),J=function AppliedAssignmentTagsList(e){return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)("h4",{className:"u-fs-md u-mb-md u-pl-md",children:H.b.t(H.a.PERSON_TAG,{count:e.assignments.length})}),Object(i.jsx)("ul",{className:"u-list u-pl-md u-mb-lg",children:e.assignments.map((function(t){return Object(i.jsx)("li",{className:"u-mb-sm","data-testid":"qa-people-tags",children:Object(i.jsx)(V.a,{content:t.assignedToUserName,children:Object(i.jsx)("span",{children:Object(i.jsx)(W.a,{userFullName:t.assignedToUserName,state:t.fromActiveTeam?"active":"activeOtherTeam",onClick:function onClick(){return function onUnassignClick(t){e.unAssign(t.assignedToUserId)}(t)},id:"ma-"+t.id,userCanSeeMessage:Object(z.a)(t.assignedToUserId,e.userToTeams,e.messageTeams)})})})},"ma-"+t.id)}))})]})},Y=n(133);function AppliedKeywordTagsList(e){return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)("h4",{className:"u-fs-md u-mb-md u-pl-md",children:"My Messages Keywords"}),Object(i.jsx)("ul",{className:"u-list u-pl-sm u-mb-lg",children:e.appliedKeywordTags.map((function(e){return Object(i.jsx)("li",{className:"u-mb-sm",children:Object(i.jsx)(Y.a,{label:e.label,state:"active",color:"#949494","data-testid":"keyword-tag"})},"mkt-"+e.messageTagId)}))})]})}var q=n(633),K=n(602),X=n(337),Q=n(603),Z=n(604),$=n(56);function SuggestedAssignmentTagsList(e){return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)("h4",{className:"u-fs-md u-mb-md u-pl-md",children:H.b.t(H.a.PERSON_TAG,{count:e.suggestedAssignmentUsers.length})}),Object(i.jsx)("ul",{className:"u-list u-mb-lg u-pl-md",children:e.suggestedAssignmentUsers.map((function(t){var n=Object(z.a)(t.id,e.userToTeams,e.messageTeams),r=Object(D.c)(t.firstName,t.lastName);return $.b?Object(i.jsx)("li",{className:"c-message-tag-panel__a-tag u-mb-sm",children:Object(i.jsx)(W.a,{userFullName:r,state:"inactive",onClick:function onClick(){n?e.assignMessage(t.id):e.openNoAccessModal(t.id)},id:"a-tag-".concat(t.id),userCanSeeMessage:n})},"a-tag-".concat(t.id)):Object(i.jsx)("li",{className:"c-message-tag-panel__a-tag u-mb-sm",children:Object(i.jsx)(V.a,{content:r,children:Object(i.jsx)("span",{children:Object(i.jsx)(W.a,{userFullName:r,state:"inactive",onClick:function onClick(){n?e.assignMessage(t.id):e.openNoAccessModal(t.id)},id:"a-tag-".concat(t.id),userCanSeeMessage:n})})})},"a-tag-".concat(t.id))}))})]})}var ee=n(413),te=n(83),ne=n(275),re=(n(817),n(40)),ae=n(408),ie=n(359),oe=n(8);function AppliedAssetTagsList(e){return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)("h5",{className:"u-fs-md u-mb-md u-pl-md",children:H.b.t(H.a.ASSET_TAG,{count:e.vesselNames.length})}),Object(i.jsx)("ul",{className:"u-list u-pl-md u-mb-lg",children:e.vesselNames.map((function(t,n){return Object(i.jsx)("li",{className:"u-mb-sm","data-testid":"qa-vessel-tags",children:e.isCompose?Object(i.jsx)(ie.a,{label:t,state:"active"}):Object(i.jsx)(ae.a,{tagId:n.toString(),tagType:"vesselTag",label:t,onSearchClick:function onSearchClick(t){return e.goToVesselSearch&&e.featureFlags.TAG_SEARCH_ALL_TEAMS?e.goToVesselSearch(new d.k(oe.g.AND,[new d.O(t.label),new d.b])):e.goToVesselSearch(d.k.fromFilterTerm(new d.O(t.label)))},id:"mjr-tags-".concat(n.toString()),messageTagId:n.toString(),enableTouchStyles:!0})},"mct-".concat(n))}))})]})}var ce=n(233),se=n(239),le=n(634),ue=n(289),de=n(403),fe=n(286),be=n(427),pe=n(107),me=n(93),he=n(472),ge=n(894),je=n.n(ge).a,ve=n(29),Oe=n(127),Te=new je,ye="MSG-TAG-PANEL";var Se=Object(m.b)([function(e,t){return Object(h.o)(e)},function(e,t){return{messageAssignments:Object(h.e)(e,t.match.params.id,t.currentUser),userToTeam:Object(h.p)(e),messageTeams:l.g(e.entities.messageTeam,t.match.params.id),teams:l.h(e.entities.team)}},function(e,t){return{categoryTags:fe.a.message(e,t.match.params.id),messageCategoryTags:Object(h.f)(e,t.match.params.id),messageKeywordTags:l.g(e.entities.messageKeyword,t.match.params.id),availableFavouriteCategoryTags:Object(h.b)(e),allFavouriteCategoryTags:e.entities.favouriteCategoryTag}},function(e,t){return{jobReferences:de.a.message(e,t.match.params.id),appliedJobReferences:Object(h.g)(e,t.match.params.id),vesselNames:Object(h.i)(e,t.match.params.id)}},function(e,t){return l.g(e.entities.userConfig,l.a).map((function(e){return e.myMessageTagIds})).orElse(new Set)},function(e,t){return l.g(e.entities.jobReferenceSearch,ye)},function(e,t){return l.g(e.entities.messageBody,t.match.params.id)},function(e,t){return l.g(e.entities.messageMeta,t.match.params.id)},function(e,t){return t.currentUser},function(e){return e.ui.featureFlags},me.a],(function(e,t,n,r,a,i,o,c,s,l,u){var d=c.map((function(e){return Object(y.b)(e.witness,e.activitySummary,s.id)})).orElse(0);return{users:e,categoryTags:n.categoryTags,allFavouriteCategoryTags:n.allFavouriteCategoryTags,availableFavouriteCategoryTags:n.availableFavouriteCategoryTags,messageCategoryTags:n.messageCategoryTags,messageJobReferenceTags:r.appliedJobReferences,messageAssignmentTags:t.messageAssignments,messageKeywordTags:n.messageKeywordTags,jobReferences:r.jobReferences,myMessageTagIds:a,vesselNames:r.vesselNames,jobReferencesSearch:i,newComments:d,featureFlags:l,userToTeams:t.userToTeam,messageTeams:t.messageTeams,teams:t.teams,messageBody:o,explicitTeamTokenEnabled:u}})),Ce={trackActivityPaneToggle:function trackActivityPaneToggle(){return ve.a.withEvent(Object(ve.i)("Show Activity Pane"))},trackTagsPaneToggle:function trackTagsPaneToggle(){return ve.a.withEvent(Object(ve.i)("Show Tags Pane"))},trackEvent:function trackEvent(e,t){return new ve.a(e,t)},loadMessageDetails:function loadMessageDetails(e,t){return b.X.doNotSetToLoading(t,e)},categorizeMessage:function categorizeMessage(e,t,n,r){return new u.J(t,n,r,e)},decategorizeMessage:function decategorizeMessage(e,t,n){return new u.K(t,e,n)},addJobReference:function addJobReference(e,t,n,r){return new u.E(t,r,n,e)},removeJobReference:function removeJobReference(e,t,n){return new u.M(t,e,n)},searchTag:function searchTag(e,t,n){return new pe.c(e,t,n)},searchTagAllTeams:function searchTagAllTeams(e,t,n){return new pe.c(e,t,n,d.D.ALL)},assignMessage:function assignMessage(e,t,n){return new u.F(e,[t],n)},unAssignMessage:function unAssignMessage(e,t){return new u.O(e,[t])},searchJobReferencesByMatchScore:function searchJobReferencesByMatchScore(e,t){return new p.o(ye,e,t)},goToItem:function goToItem(e,t,n){return Object(ce.b)(e.type,e.id,t,n)},goTo:function goTo(e,t){return Object(O.e)(Object(r.a)(Object(r.a)({},t),{},{pathname:e}))},shareMessage:function shareMessage(e,t,n){return new S.b(e,[t],n)},addFavourite:function addFavourite(e){return new u.D(e,"Message")},removeFavourite:function removeFavourite(e){return new u.L(e.id,"Message")},unsubscribeJobReference:function unsubscribeJobReference(e,t,n,r,a){return new Oe.k(t,e.id,n,r,a)},subscribeJobReference:function subscribeJobReference(e,t,n,r){return new Oe.h(t,e.id,n,r)}},Ae=Object(o.j)(Object(s.connect)(Se,Ce)((function MessageTagComponent(e){var t=e.messageCategoryTags,n=e.currentUser,r=e.loadMessageDetails,s=e.match,u=s.params.id,d=c.useState(!1),b=Object(a.a)(d,2),p=b[0],O=b[1],y=c.useState(""),S=Object(a.a)(y,2),C=S[0],A=S[1];c.useEffect((function(){"NOT_LOADING"===t.status()&&r(n.id,u)}),[r,t,u,n.id]);var E=e.messageJobReferenceTags.orElse([]).sort(Object(M.a)((function(e){return e.label}))),w=e.featureFlags.FLEX_DOCS_MANAGEMENT?e.vesselNames.orElse([]):[],_=t.orElse([]).sort(Object(M.a)((function(e){return e.label}))),I=e.availableFavouriteCategoryTags.orElse([]).sort(Object(M.a)((function(e){return e.label}))),x=e.messageAssignmentTags.orElse([]).sort(Object(M.a)((function(e){return[e.assignedToUserName,e.id]}))),k=e.messageAssignmentTags.orElse([]).filter((function(e){return e.assignedToUserId!==n.id})),N=Object(se.a)(v.a.message,e.availableFavouriteCategoryTags.orElse([]),t.orElse([])),R=I.length!==l.h(e.allFavouriteCategoryTags).length,F=function openNoAccessModal(e){A(e),O(!0)},D=function categorizeMessage(t,n,r,a){e.categorizeMessage(u,t,n,r),a&&e.trackEvent("Tag Actions","Tag Actions: Category Tag Suggested")},L=function addJobReference(t,n,r,a){e.addJobReference(u,t,n,r),a&&e.trackEvent("Tag Actions","Tag Actions: Job Tag Suggested")},P=function assignMessage(t){return e.assignMessage(u,t,n.id)},U=function searchTag(t){return e.searchTag(t,e.location,n)},B=function searchTagAllTeams(t){return e.searchTagAllTeams(t,e.location,n)},W=function toggleMessageActions(t){var n;if(e.isCompose)return null===(n=e.disableNavigationPrompt)||void 0===n||n.call(e),e.goTo(t(u),e.location);var r=Object(o.e)(e.location.pathname,{path:g.a.MESSAGE()}),a=Object(o.e)(e.location.pathname,{path:t()});return a?e.goToItem({type:"message",id:a.params.id},e.location,e.isMobile):r&&e.goTo(t(r.params.id),e.location)},z=function localIsFavouriteCategoryTag(t){return Object(se.c)(v.a.message,e.availableFavouriteCategoryTags.orElse([]),t)},V=function getAppliedKeywordTags(){if(!n.roles.includes(te.b.IT_SUPPORT))return[];var t=e.messageKeywordTags.orElse([]);return Object(T.k)(t,(function(e){return e.label})).sort(Object(M.a)((function(e){return e.label})))}(),Y=V.length>0||E.length>0||_.length>0||w.length>0||x.length>0,$=c.useState([]),ae=Object(a.a)($,2),ie=ae[0],oe=ae[1],ce=c.useState([]),de=Object(a.a)(ce,2),fe=de[0],pe=de[1],me=c.useState([]),ge=Object(a.a)(me,2),je=ge[0],ve=ge[1],Oe=Object(m.d)((function(e){return l.g(e.entities.messageMeta,u).map((function(e){return e.subject})).orElse("")})),ye=Object(m.d)((function(e){return l.g(e.entities.userConfig,l.a).map((function(e){return e.myMessageTagIds})).orElse(new Set)})),Se=Object(m.d)((function(t){return Object(h.r)(t,e.currentTeam.id).orElse([])}));c.useEffect((function(){var t=e.messageBody.map((function(e){return e.text||e.html||""})).orElse("");(Oe||t)&&Promise.all([Te.suggestJobReferenceTagAsync(Oe,t,e.jobReferences,ye),Te.suggestCategoryTagAsync(Oe,t,e.categoryTags),Te.suggestAssignmentsAsync(Oe,t,Se)]).then((function(e){var t=Object(a.a)(e,3),n=t[0],r=t[1],i=t[2];oe(n),pe(r),ve(i)}))}),[Oe,e.messageBody,e.jobReferences,e.categoryTags]);var Ce=Object(ne.c)(E,ie),Ae=Object(ne.b)(v.a.message,e.categoryTags,_,fe,e.availableFavouriteCategoryTags.orElse([]),e.featureFlags.SUGGEST_CATEGORY_AND_ASSIGNMENT_TAGS),Ee=Object(ne.a)(e.users,n,e.currentTeam.id,x,je,e.featureFlags.SUGGEST_CATEGORY_AND_ASSIGNMENT_TAGS),we=ie.length>0||Ae.length>0||Ee.length>0||N.length>0,_e=Object(i.jsxs)(i.Fragment,{children:[Object(i.jsxs)(j.a,{activeTab:"tags",newActivityItems:e.newComments,toggleActivity:function toggleActivity(){W(e.isCompose?g.a.COMPOSE_MESSAGE_ACTIVITY:g.a.MESSAGE_ACTIVITY),e.trackActivityPaneToggle()},toggleTags:function toggleTags(){W(e.isCompose?g.a.COMPOSE_MESSAGE_TAGS:g.a.MESSAGE_TAGS),e.trackTagsPaneToggle()},paneTitle:"Tags",isDark:!1,children:[Object(i.jsx)(be.a,{type:be.b.MESSAGE,id:s.params.id}),Object(i.jsxs)("div",{className:"c-tags-pane u-pt-md",children:[Object(i.jsxs)("div",{className:"c-tags-pane__content",onTouchMove:function onTouchMove(t){var n;null===(n=e.pullToRefresh)||void 0===n||n.call(e,t.currentTarget.scrollTop)},children:[Y&&Object(i.jsxs)(X.a,{paneTitle:"Selected",sectionKey:"applied-tags",children:[V.length>0&&Object(i.jsx)(AppliedKeywordTagsList,{appliedKeywordTags:V}),E.length>0&&Object(i.jsx)(q.a,{appliedJobReferenceTags:E,removeJobReference:function removeJobReference(t,n){return e.removeJobReference(u,t,n)},goToJobReferenceSearch:e.featureFlags.TAG_SEARCH_ALL_TEAMS?B:U,isCompose:e.isCompose,featureFlags:e.featureFlags,myMessageTagIds:e.myMessageTagIds,unsubscribeJobReference:e.unsubscribeJobReference,currentUser:n,subscribeJobReference:e.subscribeJobReference}),w.length>0&&Object(i.jsx)(AppliedAssetTagsList,{vesselNames:w,goToVesselSearch:e.featureFlags.TAG_SEARCH_ALL_TEAMS?B:U,isCompose:e.isCompose,featureFlags:e.featureFlags}),_.length>0&&Object(i.jsx)(K.a,{isTouchScreen:e.isTouchScreen,isAvailable:function isAvailable(t){var n=e.categoryTags;return Object(se.c)(v.a.message,n,t)},addFavourite:function favouriteFromMeta(t){var n=Object(se.b)(v.a.message,e.categoryTags,t);n&&e.addFavourite(n)},removeFavourite:function unFavouriteFromMeta(t){var n=Object(se.b)(v.a.message,e.availableFavouriteCategoryTags.orElse([]),t);n&&e.removeFavourite(n)},appliedCategoryTags:_,decategorizeItem:function decategorizeMessage(t,n){return e.decategorizeMessage(u,t,n)},isCompose:e.isCompose,isFavourite:z}),x.length>0&&Object(i.jsx)(J,{assignments:x,userToTeams:e.userToTeams,messageTeams:e.messageTeams.orElse([]),unAssign:function unAssignMessage(t){return e.unAssignMessage(u,t)}})]}),we&&Object(i.jsxs)(X.a,{paneTitle:"Suggested",sectionKey:"suggested-tags",className:"u-dn-p",children:[Ce.length>0&&Object(i.jsx)("div",{className:"u-pa-sm",children:Object(i.jsx)(Q.a,{suggestedJobReferenceTags:Ce,addJobReference:L})}),Object(i.jsx)("h4",{className:"u-fs-md u-mb-md u-pl-md",children:H.b.t(H.a.CATEGORY_TAG,{count:Ae.length+N.length})}),Object(i.jsx)("div",{className:"u-mb-md",children:Object(i.jsx)(X.a,{paneTitle:"Favourites",sectionKey:"favourite-tags",className:"u-dn-p",isSubSection:!0,hideTitle:0===N.length,children:Object(i.jsx)(le.a,{isTouchScreen:e.isTouchScreen,favouriteCategoryTags:N,categorizeItem:D,appliedCategoryTags:_,hasUnavailableFavourites:R,removeFavourite:e.removeFavourite,isFavourite:z})})}),Ae.length>0&&Object(i.jsx)(Z.a,{isTouchScreen:e.isTouchScreen,suggestedCategoryTags:Ae,categorizeItem:D,addFavourite:e.addFavourite}),Ee.length>0&&Object(i.jsx)(SuggestedAssignmentTagsList,{currentUser:n,messageTeams:e.messageTeams.orElse([]),userToTeams:e.userToTeams,assignMessage:P,openNoAccessModal:F,suggestedAssignmentUsers:Ee})]})]}),Object(i.jsx)("div",{className:"c-tags-pane__footer",children:Object(i.jsx)(ee.a,{className:"c-tag-search",parentItemType:v.a.message,currentUser:n,teams:e.teams,users:e.users,userToTeams:e.userToTeams,messageTeams:e.messageTeams.orElse([]),appliedMessageAssignments:k,appliedTopicFollowers:[],addPersonTag:P,addFollowers:re.a,appliedCategoryTags:_,categoryTags:e.categoryTags,categorize:D,appliedJobReferenceTags:E,jobReferences:e.jobReferences,addJobReference:L,myMessageTagIds:e.myMessageTagIds,jobReferencesSearch:e.jobReferencesSearch,searchJobReferences:function searchJobreferenceTags(t){var n=e.explicitTeamTokenEnabled?e.messageTeams.orElse([]):[];e.searchJobReferencesByMatchScore(t,n)},openNoAccessModal:F,partialAutoSuggest:e.featureFlags.PARTIAL_AUTO_SUGGEST,pullToRefresh:e.pullToRefresh,trackEvent:function trackEvent(){e.trackEvent("Search","Search: ".concat(e.isCompose?"M_Composer: ":"","Tag Pane Search"))}})})]})]}),Object(i.jsx)(G,{closeNoAccessModal:function closeNoAccessModal(){O(!1)},isOpen:p,shareMessage:function shareMessage(t){var r;e.shareMessage(u,t,null!==(r=Object(he.b)(e.messageTeams,n.userTeams))&&void 0!==r?r:e.currentTeam.id)},assignMessage:P,teams:e.teams,userId:C,users:e.users,userToTeams:e.userToTeams})]});return e.isMobile?Object(ue.a)(e.messageBody,(function(e){return _e})):e.messageBody.map((function(e){return _e})).orElse(Object(i.jsx)(i.Fragment,{}))})))},function(e,t,n){"use strict";n.d(t,"a",(function(){return orderingIdToTime}));var r=n(32),a=n.n(r);function orderingIdToTime(e){var t=e.substr(0,13),n=parseInt(t,32);return a.a.utc(n).toISOString()}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return b}));var r,a=n(4),i=n(3),o=n(10),c=n(5),s=n(6),l=n(20),u=n(16),d=n(142);!function(e){e.DOCUMENT="document",e.MESSAGE="message"}(r||(r={}));var b=function(e){Object(c.a)(EmlPreviewGetAction,e);var t=Object(s.a)(EmlPreviewGetAction);function EmlPreviewGetAction(e,n){var r;return Object(i.a)(this,EmlPreviewGetAction),(r=t.call(this)).id=e,r.emlType=n,r}return Object(o.a)(EmlPreviewGetAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/").concat(this.emlType,"/").concat(this.id,"/eml-preview"),method:u.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return null===e.attributes.bodyHtml?e:Object(a.a)(Object(a.a)({},e),{},{attributes:Object(a.a)(Object(a.a)({},e.attributes),{},{bodyHtml:d.b.mungeLinks(e.attributes.bodyHtml)})})}}]),EmlPreviewGetAction}(l.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return c}));var r,a=n(1),i=n.n(a),o=n(40);!function(e){e.ENABLE_NOTIFICATIONS="ENABLE_NOTIFICATIONS",e.ENABLE_SIDEBAR="ENABLE_SIDEBAR"}(r||(r={}));var c=i.a.createContext({modalKey:null,onToggle:o.a})},function(e,t,n){"use strict";n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return j}));var r=n(718),a=n(51),i=n(53);var o=function buildClientRuleInstance(e){switch(e.op){case"contains":case"equals":return function buildClientSingleStringRuleInstance(e,t){if(2!==t.length)throw new Error('"'.concat(e,'" rule should have two children; it has ').concat(t.length));var n,r,a=function validateRuleSource(e){if(1!==e.length)throw new Error("Rule source must have one child; it has ".concat(e.length));if("message"!==e[0].op)throw new Error('Rule source must be of type "message"; it is '.concat(e[0].op))};switch(t[0].op){case"subject":n="subject",a(t[0].children);break;case"from":n="from",a(t[0].children);break;case"content":n="content",a(t[0].children);break;default:throw new Error("Unsupported rule type ".concat(t[0].op))}switch(t[1].op){case"value":r=t[1].value;break;default:throw new Error("Unsupported rule value type ".concat(t[1].op))}return{operator:e,type:{kind:"singleString",id:n},kind:"singleString",value:r}}(e.op,e.children);default:throw new Error('"and" rule\'s child has unsupported type '.concat(e.op))}},c=function buildClientRuleInstanceSets(e){if("match"!==e.op)throw new Error('Root rule of type "'.concat(e.op,'" is not supported: must have "match" root rule type'));if(1!==e.children.length)throw new Error("Root rule should have one child; it has ".concat(e.children.length));var t=e.children[0];switch(t.op){case"or":return t.children.map((function(t,n){switch(t.op){case"and":return function buildClientRuleInstanceSet(e,t){if(!e.length)throw new Error("Rule instance set ".concat(t+1," has no children"));return{ruleInstances:e.map((function(e,n){try{return o(e)}catch(a){var r="Error in rule instance set ".concat(t+1,"'s child ").concat(n+1);throw new Error(a instanceof Error?"".concat(r,": ").concat(a.message):r)}}))}}(t.children,n);default:throw new Error('Top level "or" node\'s children must be of type "and"; child '.concat(n+1," is ").concat(e.children[0].op))}}));default:throw new Error('Root rule\'s first child must be of type "or"; it is '.concat(e.children[0].op))}},s=function buildClientActions(e){if(0===e.length)throw new Error("No actions defined");return e.reduce((function(e,t){switch(t.action.type){case"tagWithJobReference":var n=e.find((function(e){return"applyJobReferenceTags"===e.type}));n?n.tagIds.push(t.action.id):e.push({type:"applyJobReferenceTags",tagIds:[t.action.id]});break;case"tagWithCategoryTag":var r=e.find((function(e){return"applyCategoryTags"===e.type}));r?r.tagIds.push(t.action.id):e.push({type:"applyCategoryTags",tagIds:[t.action.id]});break;default:throw new Error("Unsupported action type ".concat(t.action.type))}return e}),[])},l=function toClientWorkflowDefinition(e){try{return{isValid:!0,rules:c(e.rule),actions:s(e.triggerActions)}}catch(t){return{isValid:!1,error:t instanceof Error?t.message:"Unspecified error"}}},u=function buildServerTriggerActions(e){return e.flatMap((function(e){var t;switch(e.type){case"applyJobReferenceTags":t=e.tagIds.map((function(e){return{type:"tagWithJobReference",id:e}}));break;case"applyCategoryTags":t=e.tagIds.map((function(e){return{type:"tagWithCategoryTag",id:e}}))}return t.map((function(e){return{triggers:[{type:"containsAny"},{type:"anyPlace"}],action:e}}))}))},d=function buildServerRule(e){switch(e.kind){case"boolean":throw new Error("Boolean rule types not supported on server yet");case"singleString":switch(e.operator){case"notContains":case"notEquals":throw new Error("Negating operators are not supported on server yet")}switch(e.type.id){case"from":case"subject":case"content":return{op:e.operator,children:[{op:e.type.id,children:[{op:"message"}]},{op:"value",value:e.value}]};default:throw new Error("Rules of type ".concat(e.type.id," not support yet"))}}},b=function buildServerMatchRule(e){if(!e.length)throw new Error("Must have at least one rule instance set");return{op:"match",children:[{op:"or",children:e.map((function(e){if(!e.ruleInstances.length)throw new Error("Every rule instance set must have at least one rule instance");return{op:"and",children:e.ruleInstances.map(d)}}))}]}},p=function toServerWorkflowDefinition(e){return{rule:b(e.rules),triggerActions:u(e.actions)}},m=Object(i.createEntityAdapter)({selectId:function selectId(e){return e.id},sortComparer:function sortComparer(e,t){return e.name.localeCompare(t.name)}}),h=Object(r.createApi)({reducerPath:"workflowsApi",baseQuery:Object(r.fetchBaseQuery)({baseUrl:Object(a.m)("workflow")}),tagTypes:["workflow"],endpoints:function endpoints(e){return{getWorkflows:e.query({query:function query(){return"/"},providesTags:["workflow"],transformResponse:function transformResponse(e){var t=e.data.map((function(e){var t=e.attributes;return{id:e.id,name:t.name,description:t.description,teamIds:t.teamIds,definition:l(t.definition)}}));return m.addMany(m.getInitialState(),t)}}),createWorkflow:e.mutation({query:function query(e){var t=e.name,n=e.description,r=e.teamIds,a=e.definition;return{url:"/",method:"POST",body:{data:{type:"workflow",attributes:{name:t,description:n,teamIds:r,definition:p(a)}}}}},invalidatesTags:["workflow"]})}}}),g=h.useGetWorkflowsQuery,j=h.useCreateWorkflowMutation},function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return m}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=n(414),u=function(e){Object(i.a)(NotificationDeviceListApiAction,e);var t=Object(o.a)(NotificationDeviceListApiAction);function NotificationDeviceListApiAction(e){var n;return Object(r.a)(this,NotificationDeviceListApiAction),(n=t.call(this)).userId=e,n}return Object(a.a)(NotificationDeviceListApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/user/").concat(this.userId,"/notification-device"),method:s.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return e.data.map((function(e){return{id:e.id,userAgent:e.attributes.userAgent,deviceToken:e.attributes.deviceToken,subscribedAt:"1970-02-01T00:00:00Z"===e.attributes.subscribedAt?void 0:e.attributes.subscribedAt,lastSeen:e.attributes.lastSeen,device:Object(l.a)(e.attributes.userAgent)}}))}}]),NotificationDeviceListApiAction}(c.a),d=n(14),b=function(e){Object(i.a)(RequestNotificationDeviceList,e);var t=Object(o.a)(RequestNotificationDeviceList);function RequestNotificationDeviceList(e){var n;return Object(r.a)(this,RequestNotificationDeviceList),(n=t.call(this,e)).userId=e,n}return Object(a.a)(RequestNotificationDeviceList,[{key:"onSuccess",value:function onSuccess(e){return[new p(e)]}},{key:"onError",value:function onError(e){return[new m(e)]}}]),RequestNotificationDeviceList}(u),p=function(e){Object(i.a)(FulfillNotificationDeviceList,e);var t=Object(o.a)(FulfillNotificationDeviceList);function FulfillNotificationDeviceList(e){var n;return Object(r.a)(this,FulfillNotificationDeviceList),(n=t.call(this)).devices=e,n}return FulfillNotificationDeviceList}(d.a),m=function(e){Object(i.a)(FailNotificationDeviceList,e);var t=Object(o.a)(FailNotificationDeviceList);function FailNotificationDeviceList(e){var n;return Object(r.a)(this,FailNotificationDeviceList),(n=t.call(this,e)).error=e,n}return FailNotificationDeviceList}(d.b)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=n(12),d=n(24),b=n.n(d),p={Container:u.b.div.withConfig({displayName:"tag-pane-section__Container",componentId:"sc-15feqwm-0"})(["color:var(--text-1);border-radius:var(--br2);padding:",";",";padding-right:",";padding-left:",";background-color:",";"],(function(e){return"favourite-tags"===e.sectionKey?"var(--spacing-2)":"0"}),(function(e){return"favourite-tags"===e.sectionKey?"var(--spacing-2)":"0"}),(function(e){return"favourite-tags"===e.sectionKey?"var(--spacing-2)":"var(--spacing-3)"}),(function(e){return"favourite-tags"===e.sectionKey?"var(--spacing-2)":"var(--spacing-3)"}),(function(e){return"favourite-tags"===e.sectionKey?"var(--background-shade)":"transparent"})),Title:u.b.div.withConfig({displayName:"tag-pane-section__Title",componentId:"sc-15feqwm-1"})(["padding-left:",";padding-top:",";margin-bottom:",";padding-right:var(--spacing-2);"],(function(e){return"favourite-tags"===e.sectionKey?"var(--spacing-2)":"var(--spacing-3)"}),(function(e){return"favourite-tags"===e.sectionKey?"var(--spacing-1)":"0"}),(function(e){return"favourite-tags"===e.sectionKey?"0":"var(--spacing-3)"}))},m=function(e){Object(o.a)(TagPaneSection,e);var t=Object(c.a)(TagPaneSection);function TagPaneSection(){var e;Object(a.a)(this,TagPaneSection);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).focusOnList=function(e){var t=document.activeElement,n=!!t&&t.classList.contains("message-list"),r="tags-list"===e.currentTarget.dataset.target,a=n&&r,i=document.getElementById("list-pane");a&&i&&setTimeout((function(){i.focus()}),0)},e}return Object(i.a)(TagPaneSection,[{key:"render",value:function render(){var e,t,n=this.props,a=n.children,i=n.sectionKey,o=n.paneTitle,c=n.isSubSection;return Object(s.jsx)(p.Container,Object(r.a)(Object(r.a)({},this.props),{},{children:Object(s.jsxs)("div",{"data-testid":i+"-list","data-target":"tags-list",className:null!==(e=this.props.className)&&void 0!==e?e:"",children:[!this.props.hideTitle&&Object(s.jsx)(p.Title,Object(r.a)(Object(r.a)({},this.props),{},{children:Object(s.jsx)("h3",{className:b()("u-fs-md u-mb-0",{"u-tt-u":!c}),children:o},i+"-header")})),Object(s.jsx)("div",{onMouseDown:this.focusOnList,className:null!==(t=this.props.className)&&void 0!==t?t:"",children:a},i)]})}))}}]),TagPaneSection}(l.PureComponent)},function(e,t,n){"use strict";n.r(t),n.d(t,"disablePTR",(function(){return l})),n.d(t,"default",(function(){return PullToRefresh}));var r=n(21),a=n(0),i=n(1),o=n(891),c=n(22),s=n(28),l=function disablePTR(e){e&&e(1)};function PullToRefresh(e){var t=i.useState(!0),n=Object(r.a)(t,2),l=n[0],u=n[1],d=Object(s.useSelector)((function(e){return e.ui.modal.isOpen})),b=i.useCallback((function(e){var t=e<=0;t!==l&&u(t)}),[l]),p=Object(c.g)();return i.useEffect((function(){u(!0)}),[p]),Object(a.jsx)(o.a,{onRefresh:function onRefresh(){return window.location.reload()},resistance:3,shouldPullToRefresh:function shouldPullToRefresh(){return!d&&l},children:e.children(b)})}},,function(e,t,n){"use strict";n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return g}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=function(e){Object(i.a)(ContactCommentGetApiAction,e);var t=Object(o.a)(ContactCommentGetApiAction);function ContactCommentGetApiAction(e,n){var a;return Object(r.a)(this,ContactCommentGetApiAction),(a=t.call(this)).contactId=e,a.currentTeamId=n,a}return Object(a.a)(ContactCommentGetApiAction,[{key:"mapResponse",value:function mapResponse(e){return e.data.map((function(e){return{id:e.id,content:e.attributes.content,contactId:e.relationships.contact.data.id,createdAt:e.attributes.createdAt,userId:e.relationships.user.data.id}}))}},{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/contact/").concat(this.contactId,"/comment?currentTeamId=").concat(this.currentTeamId),method:s.c.GET}}}]),ContactCommentGetApiAction}(c.a),u=n(14),d=function(e){Object(i.a)(ContactCommentCreateApiAction,e);var t=Object(o.a)(ContactCommentCreateApiAction);function ContactCommentCreateApiAction(e,n,a){var i;return Object(r.a)(this,ContactCommentCreateApiAction),(i=t.call(this)).contactId=e,i.currentTeamId=n,i.comment=a,i}return Object(a.a)(ContactCommentCreateApiAction,null,[{key:"contactCommentMapper",value:function contactCommentMapper(e){return{id:e.data.id,contactId:e.data.relationships.contact.data.id,content:e.data.attributes.content,createdAt:e.data.attributes.createdAt,userId:e.data.relationships.user.data.id}}}]),Object(a.a)(ContactCommentCreateApiAction,[{key:"mapResponse",value:function mapResponse(e){return ContactCommentCreateApiAction.contactCommentMapper(e)}},{key:"apiEffect",value:function apiEffect(e){var t={data:{content:this.comment}};return{path:"".concat(e.platformUrl,"/2019-01-01/contact/").concat(this.contactId,"/comment?currentTeamId=").concat(this.currentTeamId),method:s.c.POST,body:JSON.stringify(t)}}}]),ContactCommentCreateApiAction}(c.a),b=function(e){Object(i.a)(RequestContactComments,e);var t=Object(o.a)(RequestContactComments);function RequestContactComments(e,n){var a;return Object(r.a)(this,RequestContactComments),(a=t.call(this,e,n)).contactId=e,a.currentTeamId=n,a}return Object(a.a)(RequestContactComments,[{key:"onSuccess",value:function onSuccess(e){return[new p(e,this.contactId)]}},{key:"onError",value:function onError(e){return[new m(e,this.contactId)]}}]),RequestContactComments}(l),p=function(e){Object(i.a)(FulfillContactComments,e);var t=Object(o.a)(FulfillContactComments);function FulfillContactComments(e,n){var a;return Object(r.a)(this,FulfillContactComments),(a=t.call(this)).response=e,a.contactId=n,a}return FulfillContactComments}(u.a),m=function(e){Object(i.a)(FailContactComments,e);var t=Object(o.a)(FailContactComments);function FailContactComments(e,n){var a;return Object(r.a)(this,FailContactComments),(a=t.call(this,e)).contactId=n,a}return FailContactComments}(u.b),h=function(e){Object(i.a)(SubmitContactComment,e);var t=Object(o.a)(SubmitContactComment);function SubmitContactComment(e,n,a){var i;return Object(r.a)(this,SubmitContactComment),(i=t.call(this,e,n,a)).contactId=e,i.currentTeamId=n,i.comment=a,i}return Object(a.a)(SubmitContactComment,[{key:"onSuccess",value:function onSuccess(e){return[new g(this.contactId,e)]}},{key:"onError",value:function onError(e){return[new j(this.contactId,e)]}}]),SubmitContactComment}(d),g=function(e){Object(i.a)(FulfillSubmitContactComment,e);var t=Object(o.a)(FulfillSubmitContactComment);function FulfillSubmitContactComment(e,n){var a;return Object(r.a)(this,FulfillSubmitContactComment),(a=t.call(this)).contactId=e,a.response=n,a}return FulfillSubmitContactComment}(u.a),j=function(e){Object(i.a)(FailSubmitContactComment,e);var t=Object(o.a)(FailSubmitContactComment);function FailSubmitContactComment(e,n){var a;return Object(r.a)(this,FailSubmitContactComment),(a=t.call(this,n)).contactId=e,a}return FailSubmitContactComment}(u.b)},,,,,,,,,function(e,t,n){},function(e,t,n){},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return W})),n.d(t,"b",(function(){return Z}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(19),u=n(9),d=n(725),b=n(131),p=n(138),m=n(377),h=n(31),g=(n(679),n(21)),j=n(12),v=n(594),O=n.n(v),T=n(34),y=n(28),S=n(61),C={PopoverBody:j.b.div.withConfig({displayName:"rename-document-popover__PopoverBody",componentId:"sc-1ssii8j-0"})(["padding:var(--spacing-2) var(--spacing-3);border-width:0;background-color:var(--background-4);min-width:350px;min-height:100px;border-radius:var(--br2);color:var(--text-4);"]),Header:j.b.div.withConfig({displayName:"rename-document-popover__Header",componentId:"sc-1ssii8j-1"})(["display:flex;font-size:var(--fs-lg);font-weight:var(--fw-normal);text-align:center;margin-bottom:var(--spacing-2);"]),HeaderTitle:j.b.div.withConfig({displayName:"rename-document-popover__HeaderTitle",componentId:"sc-1ssii8j-2"})(["margin:var(--spacing-1);flex-grow:1;"]),Body:j.b.div.withConfig({displayName:"rename-document-popover__Body",componentId:"sc-1ssii8j-3"})(["display:flex;flex-direction:column;"]),InputBody:j.b.div.withConfig({displayName:"rename-document-popover__InputBody",componentId:"sc-1ssii8j-4"})(["display:flex;align-items:center;"]),Input:j.b.input.withConfig({displayName:"rename-document-popover__Input",componentId:"sc-1ssii8j-5"})(["border-radius:var(--br1) 0 0 var(--br1);border:none;background-color:var(--background-3);color:var(--text-3);padding:var(--spacing-3);&:focus{outline:none;color:var(--text-4);}"]),FileExtension:j.b.div.withConfig({displayName:"rename-document-popover__FileExtension",componentId:"sc-1ssii8j-6"})(["border-radius:0 var(--br1) var(--br1) 0;border:none;color:var(--text-3);margin-right:var(--spacing-3);padding:var(--spacing-3);white-space:nowrap;overflow:hidden;"])},A=Object(j.b)(O.a).withConfig({displayName:"rename-document-popover__StyledPopover",componentId:"sc-1ssii8j-7"})([".popover{border-width:0;}"]);var E,w=Object(y.connect)()((function RenameDocumentPopover(e){var t=Object(y.useDispatch)(),n=s.useState(e.popoverOpen),r=Object(g.a)(n,2),a=r[0],i=r[1],o=s.useState(e.document.name),l=Object(g.a)(o,2),d=l[0],b=l[1],p=255-e.document.name.length,m=e.document.name.split("."),j=m.pop(),v=m.join(".");return Object(c.jsx)(A,{target:e.targetId,isOpen:a,hideArrow:!0,children:Object(c.jsxs)(C.PopoverBody,{children:[Object(c.jsxs)(C.Header,{children:[Object(c.jsx)(C.HeaderTitle,{children:"Rename Attachment"}),Object(c.jsx)(h.a,{buttonContent:"Close",iconGlyph:Object(u.e)(u.c.CLEAR),onClick:function onClick(){i(!1),e.popoverClosedCallback()},onDarkTheme:!0})]}),Object(c.jsxs)(C.Body,{children:[Object(c.jsxs)("ul",{children:[Object(c.jsxs)("li",{children:["Full attachment name must be less than"," ",255," characters"]}),Object(c.jsx)("li",{children:"Only use space, - or _ for renaming, cannot use other symbols"})]}),Object(c.jsxs)(C.InputBody,{children:[Object(c.jsx)(C.Input,{type:"text",defaultValue:v,maxLength:p,onChange:function onChange(e){return b(e.target.value)},"data-testid":"rename-document-filename-input"}),Object(c.jsxs)(C.FileExtension,{"data-testid":"rename-document-file-extension",children:[".",j]}),Object(c.jsx)(T.a,{onClick:function onClick(){t(new S.N(e.document.id,"".concat(d,".").concat(j))),i(!1)},children:"Save"})]})]})]})})})),_=n(888),I=n.n(_),x=n(359),k=n(24),N=n.n(k),R=function(e){Object(i.a)(DocTypeTile,e);var t=Object(o.a)(DocTypeTile);function DocTypeTile(){var e;Object(r.a)(this,DocTypeTile);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).onClick=function(){e.props.isActive?e.props.removeActiveId():e.props.setActiveId()},e}return Object(a.a)(DocTypeTile,[{key:"render",value:function render(){return Object(c.jsxs)("div",{className:"u-mb-sm",children:[Object(c.jsx)("div",{className:N()("c-tag-document-popover__doc-type",{"is-active":this.props.isActive}),onClick:this.onClick,children:this.props.label}),Object(c.jsxs)("div",{className:"c-tag-document-popover__date-group",children:[!this.props.modifiedAt&&!this.props.expiresAt&&Object(c.jsx)("div",{className:"c-tag-document-popover__date-label",children:"No documents"}),this.props.modifiedAt&&Object(c.jsx)("div",{className:"c-tag-document-popover__date-label",children:"Updated "+this.props.modifiedAt}),this.props.expiresAt&&Object(c.jsx)("div",{className:"c-tag-document-popover__date-label u-ml-lg",children:"Expires "+this.props.expiresAt})]})]})}}]),DocTypeTile}(s.PureComponent),F=n(2),M=n(163),D=n(704),L=n(32),P=n.n(L),U=n(66),B=n(87),H=n(406),G=n(15);!function(e){e.SEARCH_VESSELS="search_vessels",e.TAG_DOCUMENTS="tag_documents",e.NO_TAGS="no_tags",e.DATE_PICKER="date_picker",e.REMOVE_TAG="remove_tag"}(E||(E={}));var W,z={fetchFlexDocumentGroup:function fetchFlexDocumentGroup(e){return new S.G(e)},assignDocType:function assignDocType(e,t,n,r,a){return new S.J(e,t,n,r,a)},unassignDocType:function unassignDocType(e,t,n){return new S.Q(e,t,n)}},V=Object(y.connect)((function mapStateToProps(e,t){var n=F.g(e.entities.messageJobReferenceTag,t.messageId).toOptional().toNullable(),r=Object(B.i)(e,t.messageId).orElse([]);return{flexDocumentGroup:e.entities.flexDocumentGroup,jobReferences:n,vesselNames:r}}),z)((function TagDocumentPopover(e){var t=s.useState(e.popoverOpen),n=Object(g.a)(t,2),r=n[0],a=n[1],i=s.useState(e.flexDocument?E.REMOVE_TAG:e.vesselNames.length>0?E.SEARCH_VESSELS:E.NO_TAGS),o=Object(g.a)(i,2),l=o[0],d=o[1],b=s.useState(null),p=Object(g.a)(b,2),m=p[0],j=p[1],v=s.useState(-1),y=Object(g.a)(v,2),S=y[0],C=y[1],A=s.useState(""),w=Object(g.a)(A,2),_=w[0],k=w[1],L=s.useState(),B=Object(g.a)(L,2),W=B[0],z=B[1],V=s.useState(void 0),J=Object(g.a)(V,2),Y=J[0],q=J[1],K=function closePopover(){e.popoverClosedCallback(),a(!1)},X=function changeToMode(e){e!==l&&(a(!1),setTimeout((function(){d(e),a(!0)}),250))},Q=function renderVesselTags(e){return e.flexDocumentTypes.map((function(e){return Object(c.jsx)(R,{label:e.name,setActiveId:function setActiveId(){return Z(e.documentTypeId,e.name)},removeActiveId:$,modifiedAt:Object(D.a)(e)?Object(U.b)(P()(e.updatedDateTime)):"",expiresAt:Object(D.a)(e)&&e.expires?Object(U.b)(P()(e.expires)):"",isActive:e.documentTypeId===S},"doc-type-"+e.name)}))},Z=function setActiveItem(e,t){C(e),k(t)},$=function removeActiveItemId(){C(-1)},ee=e.targetId,te=s.useMemo((function(){return P()().startOf("day").toDate()}),[]);return Object(c.jsx)(O.a,{boundariesElement:"window",hideArrow:!0,isOpen:r,toggle:function popoverToggle(){r&&e.popoverClosedCallback()},placement:"top-start",position:"bottom",target:ee,trigger:"legacy",fade:!1,className:"c-tag-document-popover-container",children:Object(c.jsxs)(I.a,{className:N()("c-tag-document-popover",{"tag-attachment":l===E.TAG_DOCUMENTS}),children:[l===E.SEARCH_VESSELS&&Object(c.jsxs)("div",{children:[Object(c.jsxs)("div",{className:"c-tag-document-popover__header",children:[Object(c.jsx)("div",{}),Object(c.jsx)("div",{className:"c-tag-document-popover__header-title u-ma-xs",children:"Tag Attachment"}),Object(c.jsx)(h.a,{buttonContent:"",iconGlyph:Object(u.e)(u.c.CLEAR),onClick:K,onDarkTheme:!0})]}),Object(c.jsxs)("div",{className:"u-mb-lg",children:[Object(c.jsxs)("div",{className:"c-tag-document-popover__body-title",children:["Available tag",e.vesselNames.length>1&&"s"]}),e.vesselNames.map((function(e){return Object(c.jsx)("div",{onClick:function onClick(){j(e),X(E.TAG_DOCUMENTS)},className:"c-tag-document-popover__vessel u-mb-sm",children:Object(c.jsx)(x.a,{label:e,state:"active"})},"vessel_name_"+e)}))]})]}),l===E.TAG_DOCUMENTS&&Object(c.jsxs)(c.Fragment,{children:[Object(c.jsxs)("div",{className:"c-tag-document-popover__header",children:[Object(c.jsx)(h.a,{buttonContent:"",iconGlyph:Object(u.e)(u.c.CHEVRON_LEFT),onClick:function onClick(){C(-1),X(E.SEARCH_VESSELS)},onDarkTheme:!0}),Object(c.jsx)("div",{className:"c-tag-document-popover__header-title u-ma-xs",children:"Tag Attachment"}),Object(c.jsx)(h.a,{buttonContent:"",iconGlyph:Object(u.e)(u.c.CLEAR),onClick:K,onDarkTheme:!0})]}),Object(c.jsxs)("div",{className:"c-tag-document-popover__body",children:[Object(c.jsx)("div",{className:"c-tag-document-popover__body-title u-mb-xs",children:"Select Document Type"}),function renderDocumentList(){if(!m)return Object(c.jsxs)("div",{className:"c-tag-document-popover__doc-type-content",children:["No ",G.b.t(G.a.ASSET_TAG)," is selected"]});var t=F.g(e.flexDocumentGroup,m);return t.isNotLoading()&&e.fetchFlexDocumentGroup(m),Object(c.jsx)("div",{className:"c-tag-document-popover__doc-type-content",children:Object(M.a)(t,(function(e){return Object(c.jsx)("div",{children:Q(e)})}))})}(),-1!==S&&Object(c.jsx)("hr",{className:"u-mb-xs"}),Object(c.jsx)("div",{className:"c-tag-document-popover__set-date-container",children:-1!==S&&Object(c.jsx)(T.a,{className:"c-tag-document-popover__set-date-button u-mb-sm",icon:Object(u.e)(u.c.TIME),onDarkBg:!0,size:"regular",onClick:function onClick(){q(W),X(E.DATE_PICKER)},children:W?P()(W).format("YYYY-MM-DD"):"Set expiration date"})}),Object(c.jsxs)("div",{className:"c-tag-document-popover__tag-document-buttons u-mb-sm u-mt-md",children:[Object(c.jsx)(T.a,{className:"c-tag-document-popover__cancel-button",onDarkBg:!0,size:"regular",onClick:K,children:"Cancel"}),Object(c.jsx)(T.a,{className:"c-tag-document-popover__tag-button",icon:Object(u.e)(u.c.TAG),onDarkBg:!0,size:"regular",disabled:-1===S,onClick:function assignDocumentType(){var t=e.documentId,n=S.toString();m&&e.assignDocType(t,n,m,_,W?P()(W).format():null),K()},children:"Tag Document"})]})]})]}),l===E.DATE_PICKER&&Object(c.jsxs)("div",{children:[Object(c.jsxs)("div",{className:"c-tag-document-popover__header",children:[Object(c.jsx)(h.a,{buttonContent:"",iconGlyph:Object(u.e)(u.c.CHEVRON_LEFT),onClick:function onClick(){z(Y),X(E.TAG_DOCUMENTS)},onDarkTheme:!0}),Object(c.jsx)("div",{className:"c-tag-document-popover__header-title u-ma-xs",children:"Pick an expiry date"}),Object(c.jsx)(h.a,{buttonContent:"",iconGlyph:Object(u.e)(u.c.CLEAR),onClick:K,onDarkTheme:!0})]}),Object(c.jsx)("div",{className:"u-flex u-justify-center",children:Object(c.jsx)(H.a,{date:W,onDateChange:z,minDate:te,disableOutsideRange:!0})}),Object(c.jsx)("div",{className:"c-tag-document-popover__expiry-date",children:W?"The document expires on: "+P()(W).format("YYYY-MM-DD"):"This document never expires"}),Object(c.jsxs)("div",{className:"c-tag-document-popover__tag-document-buttons u-mb-sm u-mt-md",children:[Object(c.jsx)(T.a,{className:"c-tag-document-popover__cancel-button",onDarkBg:!0,size:"regular",onClick:function onClick(){return z(void 0)},children:"Remove expiry date"}),Object(c.jsx)(T.a,{className:"c-tag-document-popover__tag-button",onDarkBg:!0,size:"regular",onClick:function onClick(){return X(E.TAG_DOCUMENTS)},children:"Confirm"})]})]}),l===E.REMOVE_TAG&&e.flexDocument&&Object(c.jsxs)("div",{children:[Object(c.jsxs)("div",{className:"c-tag-document-popover__header",children:[Object(c.jsx)("div",{}),Object(c.jsx)("div",{className:"c-tag-document-popover__header-title u-mb-md",children:"Tag Attachment"}),Object(c.jsx)(h.a,{buttonContent:"",iconGlyph:Object(u.e)(u.c.CLEAR),onClick:K,onDarkTheme:!0})]}),Object(c.jsxs)("div",{children:[Object(c.jsx)("div",{className:"c-tag-document-popover__vessel u-mb-sm",children:Object(c.jsx)(x.a,{label:e.flexDocument.flexGroup,state:"active"})}),Object(c.jsx)("div",{className:"c-tag-document-popover__doc-type u-mb-xs",children:e.flexDocument.flexType}),Object(c.jsxs)("div",{className:"c-tag-document-popover__date-group",children:[e.flexDocument.updated&&Object(c.jsx)("div",{className:"c-tag-document-popover__date-label u-mr-lg",children:"Updated "+P()(e.flexDocument.updated).format("YYYY-MM-DD")}),Object(c.jsx)("div",{className:"c-tag-document-popover__date-label",children:e.flexDocument.expires?"Expires "+P()(e.flexDocument.expires).format("YYYY-MM-DD"):"Never Expires"})]}),Object(c.jsx)("div",{className:"c-tag-document-popover__remove-tag u-mt-sm",children:Object(c.jsx)(T.a,{className:"c-tag-document-popover__cancel-button",onDarkBg:!0,size:"regular",onClick:function onClick(){return e.flexDocument&&e.unassignDocType(e.flexDocument.documentId,e.flexDocument.id,e.flexDocument.flexGroup)&&K()},children:"Remove tag"})})]})]}),l===E.NO_TAGS&&Object(c.jsxs)("div",{children:[Object(c.jsxs)("div",{className:"c-tag-document-popover__header",children:[Object(c.jsx)("div",{}),Object(c.jsx)("div",{className:"c-tag-document-popover__header-title u-ma-xs",children:"Tag Attachment"}),Object(c.jsx)(h.a,{buttonContent:"",iconGlyph:Object(u.e)(u.c.CLEAR),onClick:K,onDarkTheme:!0})]}),Object(c.jsxs)("div",{className:"c-tag-document-popover__body-title no-tags",children:["This message needs"," ",G.b.t(G.a.ASSET_TAG,{context:"article"})," to begin tagging attachments."]})]})]})})})),J=n(157),Y=(n(1270),n(51)),q=n(98),K=n(595),X=n(646),Q=n(182);!function(e){e[e.AuthorizedViewer=0]="AuthorizedViewer",e[e.UnauthorizedViewer=1]="UnauthorizedViewer",e[e.SednaLiteViewer=2]="SednaLiteViewer"}(W||(W={}));var Z=function(e){Object(i.a)(MessageDocumentTile,e);var t=Object(o.a)(MessageDocumentTile);function MessageDocumentTile(e){var n;return Object(r.a)(this,MessageDocumentTile),(n=t.call(this,e)).hoverToggle=Object(J.a)((function(e){n.setState({showHover:e})}),10),n.fdPopoverToggle=function(){n.setState({fdPopoverOpen:!n.state.fdPopoverOpen}),n.props.onPreviewDocument&&n.props.onPreviewDocument()},n.renamePopoverToggle=function(){n.setState({renamePopoverOpen:!n.state.renamePopoverOpen})},n.fdPopoverClosedCallback=function(){n.setState({fdPopoverOpen:!1})},n.renamePopoverClosedCallback=function(){n.setState({renamePopoverOpen:!1})},n.renderInfo=function(e,t){var n="uploading"===e.hash?String(t):e.id;return Object(c.jsxs)("div",{className:"c-message-document-tile__name",id:"doc-"+n,"data-testid":"document-name",children:[e.name,Object(c.jsx)(d.a,{placement:"top",delay:150,autohide:!1,target:"doc-"+n,boundariesElement:"window",children:e.name})]})},n.onDownloadClick=function(e,t){"ics"===e&&n.props.updateActivity&&n.props.showIcsPreview&&n.props.updateActivity(t.id),n.props.onDownloadMessageDocument&&n.props.onDownloadMessageDocument(t.id)},n.renderButtons=function(e){var t,r=n.props,a=r.mode,i=r.isCompose,o=r.onDelete,s=r.showDownload,l=r.enableFlexDocumentTagging,d=n.getDownloadLink(),p=a===W.AuthorizedViewer,m=p&&!b.b.has(Object(b.c)(e.name)),g=e.name.toLowerCase().split(".").pop(),j="uploading"===e.hash;return Object(c.jsxs)(c.Fragment,{children:[!l&&p&&Object(c.jsx)(X.a,{doc:e,place:null!==(t=n.props.place)&&void 0!==t?t:"Compose",children:function children(e){return Object(c.jsx)(h.a,{size:"small",buttonContent:"Preview",iconGlyph:Object(u.e)(u.c.LAUNCH),onClick:function onClick(){var t,r;e(),null===(t=(r=n.props).onPreviewDocument)||void 0===t||t.call(r)}})}}),i&&!j&&Object(c.jsx)(h.a,{size:"small",buttonContent:"Rename",iconGlyph:Object(u.e)(u.c.EDIT),onClick:n.renamePopoverToggle}),l&&Object(c.jsx)(h.a,{size:"small",disabled:j,buttonContent:"Tag attachment",iconGlyph:Object(u.e)(u.c.TAG),onClick:n.fdPopoverToggle}),(s||m)&&(Object(q.a)()?Object(c.jsx)(K.a,{docId:e.id,link:d,onDownloadMessageDocument:n.props.onDownloadMessageDocument,size:"small"}):Object(c.jsx)(h.a,{size:"small",url:d,openNewPage:!0,buttonContent:"Download",iconGlyph:Object(u.e)(u.c.DOWNLOAD),onClick:function onClick(){return n.onDownloadClick(g,e)},"data-testid":"message-document-tile-download"})),o&&Object(c.jsx)(h.a,{size:"small",buttonContent:"Delete",iconGlyph:Object(u.e)(u.c.CLEAR),onClick:function onClick(){return o(e)}})]})},n.state={fdPopoverOpen:!1,renamePopoverOpen:!1,showHover:!1},n}return Object(a.a)(MessageDocumentTile,[{key:"render",value:function render(){var e=this,t=this.props.mode===W.AuthorizedViewer,n=this.props,r=n.doc,a=n.id,i=n.ix,o=n.enableFlexDocumentTagging,s="uploading"===r.hash,d=Object(b.c)(r.name),p="Popover_"+this.props.doc.id,h=!!this.props.flexDocument;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsxs)("div",{className:"c-message-document-tile"+(s?" c--loading":""),onMouseOver:function onMouseOver(){return e.hoverToggle(!0)},onMouseLeave:function onMouseLeave(){return e.hoverToggle(!1)},children:[Object(c.jsxs)("div",{className:"c-message-document-tile__inner",id:p,children:[Object(c.jsx)(l.a,{glyph:Object(b.d)(r.name),className:"c-message-document-tile__icon u-mr-sm",size:"large"}),Object(c.jsxs)("div",{className:"u-flex-auto u-w-min0",children:[this.renderInfo(r,i),Object(c.jsxs)("div",{className:"c-message-document-tile__meta","data-testid":"attachment-size",children:[d.length>0&&Object(c.jsxs)(c.Fragment,{children:[d," \xa0"]}),Object(m.b)(r.size)]})]}),Object(c.jsx)("div",{className:"c-message-document-tile__menu",children:this.renderButtons(r)})]}),o&&h&&Object(c.jsx)("div",{className:"c-message-document-tile__tagged",children:Object(c.jsx)("div",{className:"c-message-document-tile__blue-dot"})}),o&&this.state.showHover&&t&&function renderHover(){var t;return Object(c.jsx)(X.a,{doc:r,place:null!==(t=e.props.place)&&void 0!==t?t:"Compose",children:function children(e){return Object(c.jsx)("div",{className:"c-message-document-tile__preview",children:Object(c.jsxs)("button",{className:"c-message-document-tile__preview-btn",onClick:e,title:"Preview document",children:[Object(c.jsx)("div",{className:"c-message-document-tile__preview-icon",children:Object(c.jsx)(l.a,{glyph:Object(u.e)(u.c.EXPAND),size:"small"})}),"Preview"]})})}})}()]},"message-document-tile-".concat(a)),o&&this.state.fdPopoverOpen&&Object(c.jsx)(V,{targetId:p,popoverOpen:this.state.fdPopoverOpen,documentId:a,flexDocument:this.props.flexDocument,popoverClosedCallback:this.fdPopoverClosedCallback,messageId:this.props.messageId}),this.state.renamePopoverOpen&&Object(c.jsx)(w,{targetId:p,document:r,popoverOpen:this.state.renamePopoverOpen,popoverClosedCallback:this.renamePopoverClosedCallback})]})}},{key:"getDownloadLink",value:function getDownloadLink(){var e=this.props,t=e.mode,n=e.messageId,r=e.doc;switch(t){case W.AuthorizedViewer:return Object(Y.k)("attachment/blob?storedName=".concat(r.hash,"&fileName=").concat(encodeURIComponent(r.name.replace(/'/g,""))));case W.UnauthorizedViewer:return Object(Y.m)("shareable-message/".concat(n,"/relationships/document/").concat(r.id,"/download"));case W.SednaLiteViewer:return Object(Y.l)("".concat(n,"/relationships/document/").concat(r.id,"/download?t=").concat(Object(Q.d)()));default:return p.a(t)}}}]),MessageDocumentTile}(s.PureComponent)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n(44),a=function emailName(e,t,n){var a;return i({template:e.settings.EMAIL_FROM_NAME_FORMAT,tenantName:e.tenant.name,tenantShortName:e.tenant.shortName,teamName:n.name,teamSendingName:null!==(a=n.sendingName)&&void 0!==a?a:null,userInitials:t.initials,userFullName:Object(r.c)(t.firstName,t.lastName)})},i=function makeEmailName(e){var t=e.template,n=e.tenantName,r=e.tenantShortName,a=e.teamName,i=e.teamSendingName,o=e.userInitials,c=e.userFullName;return t.replace(/{company-full-name}/,n.toUpperCase()).replace(/{company-short-name}/,r).replace(/{team-name}/,null!==i&&void 0!==i?i:a).replace(/{user-name-initials}/,o).replace(/{user-name}/,c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(7),a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=(n(1300),n(24)),d=n.n(u),b=function(e){Object(o.a)(LayoutPanes,e);var t=Object(c.a)(LayoutPanes);function LayoutPanes(){return Object(a.a)(this,LayoutPanes),t.apply(this,arguments)}return Object(i.a)(LayoutPanes,[{key:"render",value:function render(){var e={"--pane-left-lg":"".concat(this.props.featureFlagListWidth,"%")};return Object(s.jsxs)("div",{className:d()("c-layout-panes",Object(r.a)({},"".concat(this.props.className),void 0!==this.props.className)),style:e,children:[Object(s.jsx)("div",{className:d()("c-layout-panes__side c--left",{"c--collapsed":this.props.isLeftPaneCollapsed}),children:Object(s.jsx)("div",{className:d()("c-layout-panes__side-content",{"c--animate":this.props.shouldLeftPanelAnimate}),children:this.props.leftPaneContent})}),Object(s.jsx)("div",{className:d()("c-layout-panes__main",{"c--collapsed-right":this.props.isRightPaneCollapsed,"c--collapsed-left":this.props.isLeftPaneCollapsed}),children:this.props.children}),Object(s.jsx)("div",{className:d()("c-layout-panes__side c--right",{"c--collapsed":this.props.isRightPaneCollapsed}),children:Object(s.jsx)("div",{className:d()("c-layout-panes__side-content c--right",{"c--animate":this.props.shouldRightPanelAnimate}),children:this.props.rightPaneContent})})]})}}]),LayoutPanes}(l.PureComponent)},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(133),u=n(9),d=function(e){Object(i.a)(AssetTag,e);var t=Object(o.a)(AssetTag);function AssetTag(){return Object(r.a)(this,AssetTag),t.apply(this,arguments)}return Object(a.a)(AssetTag,[{key:"render",value:function render(){var e=this.props,t=e.label,n=e.state,r=e.onClick,a=e.children,i=e.id;return Object(c.jsx)(l.a,{label:t,state:n,onClick:r,color:"var(--category-tag)",id:i,icon:Object(u.e)(u.c.ASSET),children:a})}}]),AssetTag}(s.PureComponent)},,function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return b}));var r=n(0),a=n(1),i=n(889),o=n.n(i),c=n(890),s=n(40),l=n(321),u=new o.a;u.tlds(c),u.add("notes:","http:");var d=new RegExp(/@\[([^\]]+?)\]\(([^\]]+?)\)/);u.add("@",{validate:function validate(e,t){var n=e.slice(t-1),r=n.match(d);return!(!r||n.substring(0,r[0].length)!==r[0])&&r[0].length-1},normalize:function normalize(e){var t=e.raw.match(d);t&&(e.text=t[1],e.url=t[2])}});var b=a.memo((function Linkify(e){var t=e.content,n=u.match(t);if(!n)return Object(r.jsx)(r.Fragment,{children:t});var a=n.reduce((function(e,a,i){var o=i>0?n[i-1].lastIndex:0;return a.index>o&&e.push(t.substring(a.index,o)),e.push(function renderMatch(e,t){switch(t.schema){case"@":return Object(r.jsx)(l.a,{label:t.text,state:"active",onClick:s.a,displayIcon:!1},e);default:return Object(r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:t.url,children:t.text},e)}}(i,a)),i===n.length-1&&t.length>a.lastIndex&&e.push(t.substring(a.lastIndex)),e}),[]);return Object(r.jsx)(r.Fragment,{children:a})}))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return getDateString})),n.d(t,"b",(function(){return errorRenderer}));var r=n(23),a=n(86),i=n(7),o=n(4),c=n(21),s=n(0),l=n(1),u=n.n(l),d=(n(678),n(38)),b=n(129),p=n(13),m=n(315),h=n(318),g=n(149);n(1254);function JrFooterBlock(e){return Object(s.jsx)("div",{style:e.style,children:Object(s.jsx)("div",{className:"c-jr-footer-block",style:e.backgroundColor?{backgroundColor:e.backgroundColor}:{}})})}var j=n(24),v=n.n(j),O=(n(1255),n(66)),T=n(32),y=n.n(T);function DateListItemBlock(e){return Object(s.jsx)("div",{style:e.style,className:"c-date-list-item-block",children:Object(s.jsx)("div",{className:v()("c-date-list-item-block__date-group u-fw-b u-fs-sm u-text-medium u-mb-xs",{"c--bucket-full-view":e.isFullView}),children:Object(O.b)(y()(e.date))})})}n(1256);function ListSpacingBlock(e){var t=e.inBucket?Object(o.a)(Object(o.a)({},e.style),{},{backgroundColor:b.a}):e.style;return Object(s.jsx)("div",{style:t,className:"c-list-spacing-block"})}n(1257);function ListNewLineBlock(e){return Object(s.jsx)("div",{style:e.style,children:Object(s.jsx)("div",{className:"c-list-new-line-block",children:Object(s.jsx)("div",{className:"c-list-new-line-block__indicator",children:"New"})})})}n(799);var S=n(587),C=n(588);function MessageItemBlock(e){var t=function clickHandler(t){t.ctrlKey||t.metaKey||t.altKey||(t.preventDefault(),t.shiftKey?e.onShiftClick():(e.isMobile&&e.lastScrollPositionAbsoluteTop&&(e.recordLastScrollPosition(e.message.meta.id,void 0,e.lastScrollPositionAbsoluteTop),e.resetLastScrollPositionState()),e.onClick(d.a.message,e.message.meta.id)))},n=e.msgListStyleLocal;return n.enableNewTiles?Object(s.jsx)(S.a,{currentUser:e.currentUser,currentTeamId:e.currentTeamId,message:e.message,style:e.style,isActive:e.isActive,highlightLastMessage:e.highlightLastMessage,href:e.href,isBucketItem:e.isBucketItem,clickHandler:t,isLastInTheJRGroup:e.isLastInTheJRGroup,showExcerpt:n.displayMessageExcerpt,listTileBold:n.msgStyle,onAnimationEnd:e.onAnimationEnd,isMobile:e.isMobile,showJrHeader:n.toggleJobRefHeader}):Object(s.jsx)(C.a,{currentUser:e.currentUser,currentTeamId:e.currentTeamId,message:e.message,style:e.style,isActive:e.isActive,highlightLastMessage:e.highlightLastMessage,href:e.href,isBucketItem:e.isBucketItem,clickHandler:t,isMobile:e.isMobile})}var A=n(163),E=n(19),w=n(640),_=n(221),I=n(44),x=n(9),k=n(314),N=n(25),R=n(331),F=n(3),M=n(10),D=n(5),L=n(6),P=n(212),U=n(12),B={ActivityUserBadge:U.b.div.withConfig({displayName:"activity-user-badge__ActivityUserBadge",componentId:"q1rt5z-0"})(["font-size:var(--fs-sm);color:var(--white);border-radius:var(--fs-sm);background-color:var(--purple-tint);padding:var(--spacing-1);padding-right:var(--spacing-3);display:inline-flex;max-width:100%;"]),UserFullName:U.b.span.withConfig({displayName:"activity-user-badge__UserFullName",componentId:"q1rt5z-1"})(["font-weight:var(--fw-bold);color:var(--text-1);overflow:hidden;text-overflow:ellipsis;padding-left:var(--spacing-2);white-space:nowrap;"])},H=function(e){Object(D.a)(ActivityUserBadge,e);var t=Object(L.a)(ActivityUserBadge);function ActivityUserBadge(){return Object(F.a)(this,ActivityUserBadge),t.apply(this,arguments)}return Object(M.a)(ActivityUserBadge,[{key:"render",value:function render(){var e=this.props,t=e.userInitials,n=e.user;return Object(s.jsxs)(B.ActivityUserBadge,{"data-testid":"activity-user-badge",children:[Object(s.jsx)("div",{children:Object(s.jsx)(P.a,{text:t,type:"people",size:"xs"})}),Object(s.jsx)(B.UserFullName,{children:n})]})}}]),ActivityUserBadge}(l.PureComponent),G=(n(1259),n(56)),W={NewTopicItemBlockWrapper:U.b.div.withConfig({displayName:"topic-item-block__NewTopicItemBlockWrapper",componentId:"vp5rdo-0"})(["padding:1px var(--spacing-2) 0 var(--spacing-2);margin-bottom:var(--spacing-3);"]),Block:U.b.div.withConfig({displayName:"topic-item-block__Block",componentId:"vp5rdo-1"})(["position:relative;background-color:var(--background-2);border-radius:var(--br1);display:block;"]),Tile:U.b.a.withConfig({displayName:"topic-item-block__Tile",componentId:"vp5rdo-2"})(["display:flex;align-items:stretch;align-content:space-around;padding:0;overflow:hidden;background:var(--white);border-radius:var(--br1);color:inherit;min-height:8.25rem;&:hover,&:focus{color:inherit !important;text-decoration:none;}&.c--active{background-color:var(--action-10);box-shadow:0 0 0 var(--br) var(--action-50);}&.c--has-job{border-left:var(--bw2) solid var(--job-tag);border-radius:0;}&.c--is-last-jr-note{border-radius:0 0 var(--br1) var(--br1);height:auto;}&.c--jr-header-disabled{border-radius:var(--br1);}"]),IconsGroup:U.b.div.withConfig({displayName:"topic-item-block__IconsGroup",componentId:"vp5rdo-3"})(["display:flex;flex:0 0 var(--spacing-6);padding:",";text-align:center;flex-direction:column;"],(function(e){return e.hasJob?"var(--spacing-3) var(--spacing-3) var(--spacing-3) calc(var(--spacing-3) - var(--bw2))":"var(--spacing-3)"})),Icon:U.b.div.withConfig({displayName:"topic-item-block__Icon",componentId:"vp5rdo-4"})(["display:flex;flex:0 1 calc(100% / 2);justify-content:center;min-width:18px;color:var(--text-3);.c-icon{align-self:center;}"]),Content:U.b.div.withConfig({displayName:"topic-item-block__Content",componentId:"vp5rdo-5"})(["flex-grow:1;overflow:hidden;padding:var(--spacing-3);"]),Row:U.b.div.withConfig({displayName:"topic-item-block__Row",componentId:"vp5rdo-6"})(["display:flex;align-items:center;justify-content:space-between;"]),Label:U.b.div.withConfig({displayName:"topic-item-block__Label",componentId:"vp5rdo-7"})(["margin-bottom:1px;"]),LabelContent:U.b.span.withConfig({displayName:"topic-item-block__LabelContent",componentId:"vp5rdo-8"})(["background:var(--text-1);padding:var(--spacing-1) var(--spacing-2);border-radius:var(--br1);color:var(--white);"]),Author:U.b.div.withConfig({displayName:"topic-item-block__Author",componentId:"vp5rdo-9"})(["display:flex;flex:1;width:60%;margin-left:var(--spacing-2);margin-right:var(--spacing-6);@media ","{margin-right:var(--spacing-1);width:40%;}"],G.a.minXSmall),Date:U.b.div.withConfig({displayName:"topic-item-block__Date",componentId:"vp5rdo-10"})(["position:relative;top:-2px;flex-shrink:0;font-size:var(--fs-sm);color:var(--text-2);margin-left:auto;@media ","{margin-right:var(--spacing-3);}margin-right:var(--spacing-1);"],G.a.minMedium),Comment:U.b.div.withConfig({displayName:"topic-item-block__Comment",componentId:"vp5rdo-11"})(["position:relative;top:-2px;flex-shrink:0;font-size:var(--fs-sm);color:var(--text-3);"]),Meta:U.b.div.withConfig({displayName:"topic-item-block__Meta",componentId:"vp5rdo-12"})(["display:flex;justify-content:space-between;"]),MetaIconsGroup:U.b.div.withConfig({displayName:"topic-item-block__MetaIconsGroup",componentId:"vp5rdo-13"})(["display:flex;flex-direction:row-reverse;.c-icon,.badge-circle{margin-right:calc(-1 * var(--spacing-2));border:2px solid ",";}"],(function(e){return e.isActive?"var(--action-10)":"var(--white)"})),MetaIconsWrapper:U.b.div.withConfig({displayName:"topic-item-block__MetaIconsWrapper",componentId:"vp5rdo-14"})(["display:inline-block;margin-right:calc(var(--spacing-2) - 1px);"]),MetaSubject:U.b.div.withConfig({displayName:"topic-item-block__MetaSubject",componentId:"vp5rdo-15"})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto;font-weight:var(--fw-bold);"])};function TopicItemBlock(e){var t,n=e.isActive,r=e.style,a=e.topic,i=e.currentUser,o=e.highlightLastMessage,c=e.href,l=e.author,u=e.isLastInTheJRGroup,d=e.newNotesUIFeatureFlag,b=i.id,p=a.meta.relationships.author.data.id===b,m=y()(a.meta.attributes.modified),h=a.categoryTag,g=a.jobReference,j=a.team,T=!!a.meta.relationships.topic_attachment&&a.meta.relationships.topic_attachment.data.length>0,S=a.meta.relationships.follower.data.length,C=a.meta.relationships.read_by?a.meta.relationships.read_by.data.find((function(e){return e.id===b})):null,F=!!a.meta.relationships.topic_comment&&a.meta.relationships.topic_comment.data.length>0,M=Object(k.a)(a.meta)>0,D=null===(t=a.meta.relationships.stored_by)||void 0===t?void 0:t.data.some((function(t){return t.id===e.currentUser.id})),L=g.length>0,P=!p&&N.a.of(C).flatMap((function(e){return N.a.of(Object(R.a)(e.meta.version))})).map((function(e){return y()(a.meta.attributes.modified).isAfter(y()(e))})).orElse(!1);return d?Object(s.jsx)(W.NewTopicItemBlockWrapper,{style:r,children:Object(s.jsx)(W.Block,{children:Object(s.jsxs)(W.Tile,{className:v()({"c--active":n||o},{"c--has-job":L},{"c--is-last-jr-note":L&&u},{"c--jr-header-disabled":!e.showJrHeader&&L}),href:c,onClick:function onClick(t){return topic_item_block_clickHandler(e,t)},"data-testid":"topic-item-block__tile",children:[Object(s.jsxs)(W.IconsGroup,{hasJob:L,children:[newRenderUpdatedIcon(!!C,p,D),T&&Object(s.jsx)(E.a,{glyph:Object(x.e)(x.c.ATTACHMENT_18),size:"small",className:"u-text-medium"})]}),Object(s.jsxs)(W.Content,{children:[Object(s.jsxs)(W.Row,{children:[Object(s.jsx)(W.Label,{children:Object(s.jsx)(W.LabelContent,{children:"Note"})}),Object(s.jsx)(W.Author,{children:Object(A.a)(l,(function(e){return Object(s.jsx)(H,{user:Object(I.d)(e,i),userInitials:e.initials,"data-testid":"topic-author"})}))}),Object(s.jsx)(W.Date,{children:Object(O.c)(m,!1)}),Object(s.jsx)(W.Comment,{children:newRenderCommentIcon(F,M)})]}),Object(s.jsxs)(W.Meta,{children:[Object(s.jsx)(W.MetaSubject,{"data-testid":"topic-subject",children:a.meta.attributes.subject||Object(s.jsx)("span",{children:"Empty Subject"})}),Object(s.jsx)(W.MetaIconsWrapper,{children:Object(s.jsxs)(W.MetaIconsGroup,{isActive:n,children:[h.length>0&&Object(s.jsx)(w.a,{color:"category",className:"badge-circle",children:Object(_.a)(h.length)}),j.length>0&&Object(s.jsx)(w.a,{color:"team",className:"badge-circle",children:Object(_.a)(j.length)}),S>1&&Object(s.jsx)(w.a,{color:"assign",className:"badge-circle",children:Object(_.a)(S)})]})})]})]})]})})}):Object(s.jsx)("div",{style:r,className:"c-topic-item-block__wrapper",children:Object(s.jsx)("div",{className:"c-topic-item-block",children:Object(s.jsxs)("a",{className:v()("c-topic-item-block__tile",{"c--active":n||o},{"c--has-job":L},{"c--is-last-jr-note":L&&u}),href:c,onClick:function onClick(t){return topic_item_block_clickHandler(e,t)},"data-testid":"topic-item-block__tile",children:[Object(s.jsxs)("div",{className:"c-topic-item-block__icons",children:[renderUpdatedIcon(!!C,p,P),renderCommentIcon(F,M)]}),Object(s.jsxs)("div",{className:"c-topic-item-block__content",children:[Object(s.jsxs)("div",{className:"c-topic-item-block__row","data-testid":"topic-subject",children:[Object(s.jsx)("div",{className:"c-topic-item-block__title",children:a.meta.attributes.subject||Object(s.jsx)("span",{children:"Empty Subject"})}),Object(s.jsx)("div",{className:"c-topic-item-block__date",children:Object(O.c)(m,!1)})]}),Object(s.jsxs)("div",{className:"c-topic-item-block__meta",children:[Object(s.jsx)("div",{className:"c-topic-item-block__meta-author",children:Object(A.a)(l,(function(e){return Object(s.jsxs)("span",{children:["Created by ",Object(I.d)(e,i)]})}))}),Object(s.jsxs)("div",{className:"c-topic-item-block__meta-icons",children:[T&&Object(s.jsx)(E.a,{glyph:Object(x.e)(x.c.PAPERCLIP),size:"small"}),D&&Object(s.jsx)(E.a,{glyph:Object(x.e)(x.c.ARCHIVE),size:"small"}),S>1&&Object(s.jsx)(w.a,{color:"assign",className:"badge-circle",children:Object(_.a)(S)}),h.length>0&&Object(s.jsx)(w.a,{color:"category",className:"badge-circle",children:Object(_.a)(h.length)})]})]})]})]})})})}function newRenderUpdatedIcon(e,t,n){return Object(s.jsxs)(W.Icon,{className:"c-icon",children:[!t&&!e&&!n&&Object(s.jsx)("span",{className:"c-message-item-block-v2__indicator"}),n&&Object(s.jsx)(E.a,{glyph:Object(x.e)(x.c.ARCHIVE_18),className:v()({"u-sed-red":!e,"u-text-medium":e}),size:"small"})]})}function newRenderCommentIcon(e,t){return Object(s.jsx)(W.Icon,{children:e&&Object(s.jsx)(E.a,{className:t?" u-sed-red":"u-text-medium",glyph:Object(x.e)(x.c.COMMENT_18),size:"small"})})}function renderUpdatedIcon(e,t,n){return Object(s.jsx)("div",{className:"c-topic-item-block__icon",children:!t&&e&&Object(s.jsx)(E.a,{className:n?"u-sed-red":"",glyph:Object(x.e)(x.c.UPDATE),size:"small"})})}function renderCommentIcon(e,t){return Object(s.jsx)("div",{className:"c-topic-item-block__icon",children:e&&Object(s.jsx)(E.a,{className:t?" u-sed-red":"",glyph:Object(x.e)(x.c.COMMENT),size:"small"})})}function topic_item_block_clickHandler(e,t){t.ctrlKey||t.metaKey||t.altKey||(t.preventDefault(),t.shiftKey?e.onShiftClick():e.onClick(d.a.topic,e.topic.meta.id))}function PendingWithTimeout(e){var t=Object(l.useState)(!1),n=Object(c.a)(t,2),r=n[0],a=n[1],i=e.onEnd;return Object(l.useEffect)((function(){var e=setTimeout((function(){return a(!0)}),2e3);return function(){return clearTimeout(e)}}),[]),Object(l.useEffect)((function(){r&&i&&i()}),[r,i]),r?e.givenUp:e.notGivenUp}var z=n(50),V={title:"No Messages Found",description:"There are no Messages that match your filters. You might need to simplify your search.",icon:Object(x.e)(x.c.NO_MESSAGES)};function getNoItemBlockProps(e,t){return t&&e.find((function(e){return e instanceof p.y})).isPresent()?{title:"Well Done!",description:"There are no more unread Messages in this Bucket.",icon:Object(x.e)(x.c.EMPTY_BUCKETS)}:t&&e.find((function(e){return e instanceof p.t})).isPresent()?{title:"Well Done!",description:"There are no more unread Comments in this Bucket.",icon:Object(x.e)(x.c.EMPTY_BUCKETS)}:1===e.children.length&&e.children[0]instanceof p.v?{title:"Well Done!",description:"There are no more Messages in your Inbox.",icon:Object(x.e)(x.c.INBOX_EMPTY)}:V}var J={Block:U.b.div.withConfig({displayName:"no-item-block__Block",componentId:"sc-106f3kj-0"})(["padding:7rem var(--spacing-5) var(--spacing-5) var(--spacing-5);display:flex;flex-direction:column;align-items:center;justify-content:center;"]),IconWrapper:U.b.div.withConfig({displayName:"no-item-block__IconWrapper",componentId:"sc-106f3kj-1"})(["height:10rem;width:10rem;border-radius:5rem;background-color:var(--background-shade);display:flex;align-items:center;justify-content:center;"]),Icon:Object(U.b)(E.a).withConfig({displayName:"no-item-block__Icon",componentId:"sc-106f3kj-2"})(["fill:var(--text-2);"]),Title:U.b.h3.withConfig({displayName:"no-item-block__Title",componentId:"sc-106f3kj-3"})(["font-size:var(--fs-lg);font-weight:var(--fw-semi);color:var(--text-2);margin-top:var(--spacing-3);margin-bottom:var(--spacing2);"]),Description:U.b.p.withConfig({displayName:"no-item-block__Description",componentId:"sc-106f3kj-4"})(["font-size:var(--fs);font-weight:var(--fw-normal);color:var(--text-2);text-align:center;min-height:9rem;"])};function NoItemBlock(e){var t=e.style,n=e.icon,r=void 0===n?V.icon:n,a=e.title,i=void 0===a?V.title:a,o=e.description,c=void 0===o?V.description:o;return Object(s.jsxs)(J.Block,{style:t,children:[Object(s.jsx)(J.IconWrapper,{children:Object(s.jsx)(J.Icon,{glyph:r,size:"xlarge"})}),Object(s.jsx)(J.Title,{children:i}),Object(s.jsx)(J.Description,{children:c})]})}var Y=n(800),q=n(589),K=n(590),X=(n(1263),n(31)),Q=n(184),Z=n(219),$=n(58);function BucketCollapsedBlock(e){var t=Object(Q.b)(e.bucketType),n=t.backgroundColor,r=t.textColour,a=t.icon;return Object(s.jsx)("div",{className:"c-bucket-header-block__wrapper",style:Object(o.a)({},e.style),children:Object(s.jsxs)("div",{className:"c-bucket-header-block",style:{backgroundColor:n},children:[Object(s.jsxs)("div",{className:"c-bucket-header-block__center",onClick:function onClick(){return e.goToBucketFullView()},style:{color:r,justifyContent:"start"},children:[Object(s.jsx)(E.a,{className:"c-bucket-header-block__icon u-mr-sm",glyph:Object(x.e)(a),size:"small"}),e.isMobile?Object(s.jsx)("span",{className:"c-bucket-header-block__name u-mr-md",children:e.bucketName}):Object(s.jsx)($.a,{content:e.bucketName,children:Object(s.jsx)("span",{className:"c-bucket-header-block__name u-mr-md",children:e.bucketName})})]}),Object(s.jsxs)("div",{className:"c-bucket-header-block__end c--right","data-testid":"headerBlockCount",children:[e.bucketNewUnread?Object(s.jsx)("span",{className:"c-bucket-header-block__unread-dot"}):Object(s.jsx)(s.Fragment,{}),Object(A.a)(e.messageTotal,(function(e){return Object(s.jsx)(Z.b,{unreadCount:e,fontSize:Z.a.MEDIUM})}),"err"),e.canSubscribe&&function renderNotificationsIcon(){return e.isSubscribed?Object(s.jsx)(X.a,{className:"u-ml-sm",buttonContent:"Notifications On",iconGlyph:Object(x.e)(x.c.BELL),onClick:e.unsubscribeSavedSearch}):Object(s.jsx)(X.a,{className:"c-bucket-notifications-icon--off u-ml-sm",buttonContent:"Notifications Off",iconGlyph:Object(x.e)(x.c.BELL_STRIKETHROUGH),onClick:e.subscribeSavedSearch})}()]})]})})}var ee=n(34),te=(n(1264),n(367));function FullBucketHeaderBlockV2(e){var t=Object(Q.b)(e.bucketType),n=t.textColour,r=t.backgroundColor;return Object(s.jsxs)("div",{className:"c-bucket-header-block c--full-view",style:Object(o.a)(Object(o.a)({},e.style),{},{backgroundColor:r}),children:[Object(s.jsxs)("div",{className:"c-bucket-header-block__row",children:[Object(s.jsx)("div",{className:"c-bucket-header-block__end c--left",style:{color:n},children:Object(s.jsx)(ee.a,{buttonStyle:"link",onClick:function returnFromBucketFullViewHandler(){e.returnFromBucketFullView()},icon:Object(x.e)(x.c.ARROW_LEFT),className:"c-bucket-header-block__toggle-button",style:{color:n}})}),Object(s.jsx)("div",{className:"c-bucket-header-block__center",style:{color:n},children:e.isMobile?Object(s.jsx)("span",{className:"c-bucket-header-block__name u-mr-md",children:e.bucketName}):Object(s.jsx)($.a,{content:e.bucketName,children:Object(s.jsx)("span",{className:"c-bucket-header-block__name u-mr-md",children:e.bucketName})})}),Object(s.jsxs)("div",{className:"c-bucket-header-block__end c--right",style:{color:n},children:[e.selectWidget,e.sortOptions]})]}),Object(s.jsx)(te.b,{messageTotal:e.messageTotal,messageUnreadTotal:e.bucketUnreadCount,commentUnreadTotal:e.bucketUnreadCommentCount,performSearch:function performSearch(t){e.goToBucketFullView(t,e.id)},unreadCommentToken:e.unreadCommentTokenFeatureFlag})]})}var ne=n(98);function HighlightBlock(e){var t=l.useState(!!e.highlightLastMessage),n=Object(c.a)(t,2),r=n[0],a=n[1];l.useEffect((function(){r&&(e.emptyLastMessageId(),e.emptyLastScrollPosition())}),[]);var i=function useCordovaClick(e,t){var n=l.useRef();return l.useEffect((function(){n.current&&e&&n.current()}),[e]),Object(l.useCallback)((function(r){return Object(ne.a)()&&!e?function(e,a){t(!0),n.current=function(){return r(e,a)}}:r}),[t,e])}(r,a);return e.children.props.multiSelect?e.children:Object(l.cloneElement)(e.children,{highlightLastMessage:r,onClick:i(e.children.props.onClick),onAnimationEnd:function onAnimationEnd(){return a(!1)}})}function renderBlock(e){var t=e.props;switch(e.type){case d.a.message:return function(e,n){return Object(s.jsx)(HighlightBlock,{emptyLastMessageId:t.emptyLastMessageId,emptyLastScrollPosition:t.emptyLastScrollPosition,highlightLastMessage:t.highlightLastMessage,children:Object(s.jsx)(MessageItemBlock,{currentUser:t.currentUser,currentTeamId:t.currentTeamId,message:t.message,onClick:t.onClick,onShiftClick:t.onShiftClick,isActive:t.isActive,href:"",isBucketItem:t.isBucketItem,style:t.isBucketItem?Object(o.a)({backgroundColor:b.a},e):e,backgroundColor:t.isBucketItem?b.a:void 0,isLastInTheJRGroup:t.isLastInTheJRGroup,msgListStyleLocal:t.msgListStyleLocal,emptyLastScrollPosition:t.emptyLastScrollPosition,emptyLastMessageId:t.emptyLastMessageId,recordLastScrollPosition:t.recordLastScrollPosition,lastScrollPositionAbsoluteTop:n||void 0,isMobile:t.isMobile,resetLastScrollPositionState:t.resetLastScrollPositionState,multiSelect:t.multiSelect})})};case d.a.topic:return function(e){return Object(s.jsx)(TopicItemBlock,{currentUser:t.currentUser,topic:t.topic,onShiftClick:t.onShiftClick,onClick:t.onClick,isActive:t.isActive,highlightLastMessage:t.highlightLastMessage,style:e,href:"",author:t.author,isLastInTheJRGroup:t.isLastInTheJRGroup,newNotesUIFeatureFlag:t.newNotesUIFeatureFlag,showJrHeader:t.showJrHeader})};case d.b.date_label:return function(e){return Object(s.jsx)(DateListItemBlock,{date:t.date,style:t.isFullView?Object(o.a)({backgroundColor:b.a},e):e,isFullView:t.isFullView})};case d.b.jr_header:return function(e){return Object(s.jsx)(K.a,{jobReferences:t.jobReferences,style:t.isBucketItem?Object(o.a)({backgroundColor:b.a},e):e,searchJobReference:t.searchJobReference,isBucketItem:t.isBucketItem,backgroundColor:t.isFullView?b.a:void 0,featureFlags:t.featureFlags})};case d.b.jr_footer:return function(e){return Object(s.jsx)(JrFooterBlock,{style:t.isBucketItem?Object(o.a)({backgroundColor:b.a},e):e,isBucketItem:t.isBucketItem,backgroundColor:t.isFullView?b.a:void 0})};case d.b.list_spacing:return function(e){return Object(s.jsx)(ListSpacingBlock,{inBucket:t.inBucket,style:t.isFullView?Object(o.a)({backgroundColor:b.a},e):e})};case d.b.list_new_line:return function(e){return Object(s.jsx)(ListNewLineBlock,{style:e})};case d.b.list_loading:var n=function noRowsRenderer(){return Object(s.jsx)("div",{style:{width:"calc(100% - var(--spacing-5))",height:"100%",marginLeft:"var(--spacing-3)",padding:"var(--spacing-5)",textAlign:"center",paddingTop:"7rem"},children:Object(s.jsx)("div",{className:"u-fs-l u-text-medium qa-empty-msg",children:"There are no messages that match your filters."})})};return function(e){return Object(s.jsx)(PendingWithTimeout,{givenUp:t.hasItems?Object(s.jsx)("div",{}):n(),notGivenUp:Object(s.jsx)("div",{style:Object(o.a)(Object(o.a)({},e),{},{minHeight:"90px"}),children:Object(s.jsx)(z.b,{spinner:z.a,fadeIn:"none"})}),onEnd:t.onEnd})};case d.b.list_spinner:return function(e){return Object(s.jsx)(Y.a,{style:e})};case d.b.no_item:return function(e){return Object(s.jsx)(NoItemBlock,{style:e,title:t.title,description:t.description,icon:t.icon})};case d.b.full_bucket_header_v2:return function(e){return Object(s.jsx)(FullBucketHeaderBlockV2,{style:Object(o.a)(Object(o.a)({},t.style),e),id:t.id,bucketName:t.bucketName,returnFromBucketFullView:t.returnFromBucketFullView,bucketType:t.bucketType,selectWidget:t.selectWidget,sortOptions:t.sortOptions,bucketUnreadCount:t.bucketUnreadCount,goToBucketFullView:t.goToBucketFullView,messageTotal:t.messageTotal,unreadCommentTokenFeatureFlag:t.unreadCommentTokenFeatureFlag,bucketUnreadCommentCount:t.bucketUnreadCommentCount,isMobile:t.isMobile})};case d.b.jr_header_v2:return function(e){return Object(s.jsx)(q.a,{jobReferences:t.jobReferences,style:e,searchJobReference:t.searchJobReference,isBucketItem:t.isBucketItem,featureFlags:t.featureFlags})};case d.b.bucket_collapsed_view:return function(e){return Object(s.jsx)(BucketCollapsedBlock,{id:t.id,bucketName:t.bucketName,subscribeSavedSearch:t.subscribeSavedSearch,unsubscribeSavedSearch:t.unsubscribeSavedSearch,messageTotal:t.messageTotal,style:Object(o.a)(Object(o.a)({},t.style),e),bucketType:t.bucketType,goToBucketFullView:t.goToBucketFullView,bucketNewUnread:t.bucketNewUnread,isSubscribed:t.isSubscribed,canSubscribe:t.canSubscribe,isMobile:t.isMobile})}}}function smoothScroll(e,t,n){var r=e.scrollTop,a=t-r,i=(new Date).getTime();!function animateScroll(){var o=(new Date).getTime()-i;e.scrollTop=function easeInOutQuad(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}(o,r,a,n),o<n?requestAnimationFrame(animateScroll):e.scrollTop=t}()}var re=n(644),ae=n(276),ie="new-list-scroll-container",oe=200,ce=function scrollToNewBlock(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.top;if(t<r+oe||n){var a=0===t||r-oe<0?0:r-oe;setTimeout((function(){var e=se();e&&smoothScroll(e,a,500)}),100)}},se=function getListElement(){return document.querySelector(".".concat(ie))},le=l.memo((function AnimatableList(e){var t=l.useRef(null),n=l.useRef([]),r=l.useState(null),a=Object(c.a)(r,2),i=a[0],o=a[1];l.useEffect((function(){var t;null===(t=e.pullToRefresh)||void 0===t||t.call(e,e.scrollPosition)}));var u=function useListLoaded(e){var t=l.useState(!1),n=Object(c.a)(t,2),r=n[0],a=n[1];return l.useEffect((function(){e.current&&a(!0)}),[e]),r}(t);l.useLayoutEffect((function(){return function unmount(){var t=se(),n=t?t.scrollTop:0;e.recordListScrollPosition&&e.recordListScrollPosition(void 0,n)}}),[]),l.useLayoutEffect((function(){n.current=[],p()}),[e.search]),l.useEffect((function(){n.current=blocksWithTopAndIndexMap(e.blocks)}),[e.blocks]),l.useLayoutEffect((function(){if(t.current){for(var r=-1,a=0;a<n.current.length;a++){var c,s;if("undefined"===typeof e.blocks[a]){r=a;break}if((null===(c=n.current[a])||void 0===c?void 0:c.block.type)!==(null===(s=e.blocks[a])||void 0===s?void 0:s.type)){r=a;break}}if(r>-1&&t.current.resetAfterIndex(r,!0),r>-1&&n.current.length-r>1){var l,u=se(),b=u?u.scrollTop:0,p=blocksWithTopAndIndexMap(e.blocks),m=p.find((function(e){return e.block.type===d.b.list_new_line})),h=n.current.find((function(e){return!!isDataItemType(e.block)&&e.top>=b}));if(h){var g=p.find((function(e){return!(!isDataItemType(e.block)||!isDataItemType(h.block))&&e.block.id===h.block.id}));if(g&&!e.bucketStateChanged.current){var j,v=g.top-h.top,O=v+b;0!==v&&(null===(j=e.blocks[1])||void 0===j?void 0:j.type)!==d.b.bucket_collapsed_view&&t.current.scrollTo(O),i&&o(v+i),m&&document.hasFocus()&&(ce(m,0===e.scrollPosition?0:O),e.clearNewMessageNotice())}e.bucketStateChanged.current&&(e.bucketStateChanged.current=!1)}m&&(null===(l=e.blocks[1])||void 0===l?void 0:l.type)===d.b.bucket_collapsed_view&&(e.clearNewMessageNotice(),e.clearNewLine())}}}),[e.blocks,e.bucketStateChanged]),l.useLayoutEffect((function(){var r=e.activeItems;if(1===r.length){var a=n.current.find((function(e){var t,n=e.block;return!!isDataItemType(n)&&n.id===(null===(t=r[0])||void 0===t?void 0:t.id)}));t.current&&a&&t.current.scrollToItem(a.index,"smart")}}),[e.activeItems,u]);var b=Object(l.useRef)(e.activeItems);l.useEffect((function(){var r=e.activeItems,a=r.filter((function(e){return!b.current.some((function(t){return e.id===t.id}))}));if(a.length>0){var i=n.current.find((function(e){var t,n=e.block;return!!isDataItemType(n)&&n.id===(null===(t=a[0])||void 0===t?void 0:t.id)}));t.current&&i&&t.current.scrollToItem(i.index,"smart")}b.current=r}),[e.activeItems,u]),l.useLayoutEffect((function(){if(e.lastListScroll.lastListScrollPositionAbsoluteTop&&e.lastListScroll.lastListScrollPositionMessageId===e.lastListScroll.lastMessageId&&void 0!==e.lastListScroll.lastListScrollPosition&&t.current){var n=blocksWithTopAndIndexMap(e.blocks).find((function(t){var n=t.block;return!!isDataItemType(n)&&n.id===e.lastListScroll.lastListScrollPositionMessageId}));if(n&&!e.bucketStateChanged.current){var r=n.top-e.lastListScroll.lastListScrollPositionAbsoluteTop,a=r+e.lastListScroll.lastListScrollPosition;0!==r?t.current.scrollTo(a):t.current.scrollTo(e.lastListScroll.lastListScrollPosition)}else t.current.scrollTo(e.lastListScroll.lastListScrollPosition)}else if(e.lastListScroll.lastMessageId&&t.current){var i=blocksWithTopAndIndexMap(e.blocks).find((function(t){var n=t.block;return!!isDataItemType(n)&&n.id===e.lastListScroll.lastMessageId}));i&&t.current.scrollTo(i.top-oe)}}),[e.blocks,e.lastListScroll.lastListScrollPositionAbsoluteTop,e.lastListScroll.lastMessageId,u,e.lastListScroll.lastListScrollPositionMessageId]),l.useLayoutEffect((function(){if(e.animateToNewMessage){var t=n.current.find((function(e){return e.block.type===d.b.list_new_line}));if(t){var r=se(),a=r?r.scrollTop:0;ce(t,a,!0),e.clearNewMessageNotice(),e.setAnimateToNewMessage(!1),o(a)}}}),[e.animateToNewMessage]),l.useLayoutEffect((function(){var t=se();if(t){var n=t.scrollTop;smoothScroll(t,0,500),o(n)}e.setScrollToTop(!1)}),[e.scrollToTop]);var p=function resetIndex(){t.current&&t.current.resetAfterIndex(0,!0)};l.useEffect(p,[e.screenSize]),l.useLayoutEffect((function(){e.tileHeightChanged&&p()}),[e.tileHeightChanged]);var g=function onScroll(t){e.resetLastScrollPositionState(),e.setScrollPosition(t.scrollOffset);var n=blocksWithTopAndIndexMap(e.blocks).find((function(e){return e.block.type===d.b.list_new_line}));(n&&t.scrollOffset>=n.top-oe||0===t.scrollOffset)&&(e.clearNewMessageNotice(),e.clearNewLine())};return Object(s.jsxs)("div",{className:"layout-bd",onKeyDown:function onKeyDown(e){"ArrowUp"!==e.key&&"ArrowDown"!==e.key||e.preventDefault()},children:[Object(s.jsx)(m.a,{children:function children(n){return Object(s.jsx)(h.b,{ref:t,height:n.height,width:n.width,itemCount:e.blocks.length,itemData:{blocksWithTopAndIndexMap:blocksWithTopAndIndexMap(e.blocks),blocks:e.blocks,loadMoreItems:e.loadMoreItems},itemSize:function itemSize(t){return e.blocks[t].height},onScroll:g,className:ie,overscanCount:36,style:{overflowX:"hidden"},children:ue})}}),Object(s.jsx)(re.a,{children:i&&Object(s.jsx)(ae.a,{timeout:{enter:600,exit:600},classNames:"c--return-to-previous",children:Object(s.jsxs)("div",{className:"c-message-list__banner c--return-to-previous",onClick:function onClick(){smoothScroll(document.querySelector(".".concat(ie)),i,500),o(null)},children:[Object(s.jsx)("div",{className:"u-flex",children:Object(s.jsx)(E.a,{glyph:Object(x.e)(x.c.ARROW_DOWN),size:"regular"})}),Object(s.jsx)("span",{children:"Return to Previous Position"}),Object(s.jsx)("button",{className:"c-message-list__banner-dismiss",type:"button",onClick:function onClick(e){e.stopPropagation(),o(null)},children:Object(s.jsx)(E.a,{glyph:Object(x.e)(x.c.CLEAR),size:"regular"})})]})})})]})})),ue=l.memo((function(e){var t=e.data,n=e.index,r=e.style;if(t.blocks.length-1===n){var a=document.querySelector(".".concat(ie));null!==a&&0!==a.scrollTop&&t.loadMoreItems()}return renderBlock(t.blocks[n])(r,t.blocksWithTopAndIndexMap[n].top)}),h.c);function blocksWithTopAndIndexMap(e){return e.reduce((function(e,t,n){return e.push({block:t,top:0===n?0:e[n-1].top+e[n-1].block.height,index:n}),e}),[])}function isDataItemType(e){return g.p.has(e.type)}var de=n(42),fe=n(57),be=n(52),pe=n(84),me=n(26),he=n(2),ge=n(63),je=n(30),ve=n(15),Oe=n(8);function buildTitle(e,t,n,r,a,i){var o=function getTeamName(e){if("all"===e)return"All Teams";return e.reduce((function(e,t,n){var r=e.charCount+t.name.length;return{charCount:r,titleString:0===n?t.name:r>50?"Multiple Teams":"".concat(e.titleString,", ").concat(t.name)}}),{charCount:0,titleString:""}).titleString}(t),c=" - SEDNA";if(i===Oe.v.TEAM_NAME||i===Oe.v.TEAM_NAME_WITH_COUNT)return appendCount(o+c,i===Oe.v.TEAM_NAME_WITH_COUNT?a:null);var s=function getSearchName(e,t,n){var r=Object(je.parse)(e);if(r.bookmark)return r.bookmark;var a=t.children;if(0===a.length)return"All";if(1===a.length){var i=a[0];if(Object(p.S)(i,n))return function getQuickFilterName(e){if(e.type===Oe.h.inbox)return"Inbox";if(e.type===Oe.h.following)return"Following";if(e.type===Oe.h.draft)return"Draft";if(e.type===Oe.h.stored)return"Archived";if(e.type===Oe.h.sent)return"Out";if(e.type===Oe.h.myMessages)return"My Messages";return ve.b.t(ve.a.MY_WORK)}(i)}return null}(r,n,e);return i===Oe.v.SEARCH_NAME||i===Oe.v.SEARCH_NAME_WITH_COUNT?appendCount((null!==s&&void 0!==s?s:o)+c,i===Oe.v.SEARCH_NAME_WITH_COUNT?a:null):appendCount((s?"".concat(s," - ").concat(o):o)+c,i===Oe.v.TEAM_AND_SEARCH_NAME_WITH_COUNT?a:null)}function appendCount(e,t){return null===t||0===t?e:"(".concat(t,") ").concat(e)}var Te={SelectWidget:U.b.div.withConfig({displayName:"select-widget__SelectWidget",componentId:"kwha6a-0"})(['display:inline-flex;&::after{content:"";display:inline-flex;width:1px;margin:var(--spacing-1) var(--spacing-2) 0;',"}"],(function(e){return e.bucketFullView?"background-color: #92989c;":"background-color: #d1d7db;"}))};function SelectWidget(e){return Object(s.jsxs)("div",{className:"u-flex",children:[e.itemsLoaded&&!e.multiSelect&&Object(s.jsx)(Te.SelectWidget,{bucketFullView:e.bucketFullView,children:Object(s.jsx)(X.a,{className:"c--sm",onClick:e.toggleMultiSelect,iconGlyph:Object(x.e)(x.c.LIST_CHECK),disabled:!1,dataTestId:"messageListSelectButton",buttonContent:"Batch select"})}),e.multiSelect&&Object(s.jsx)(X.a,{className:"c--sm",onClick:e.toggleMultiSelect,iconGlyph:Object(x.e)(x.c.CLEAR),disabled:!1,dataTestId:"messageListClearButton",buttonContent:"Clear select"})]})}var ye=n(1475),Se=n(915),Ce=n(1444),Ae=n(916),Ee=n(324),we=n(22),_e=n(28),Ie=(n(801),n(802),n(152));function SortPriorityListItem(e){return Object(s.jsxs)("div",{className:v()("u-flex  c-tippy-window-option",{"c-tippy-window-option-selected":e.sort===e.currentSort}),onClick:function onClick(t){t.preventDefault(),e.setSort(e.sort)},"data-testid":e.dataTestId,children:[Object(s.jsx)("div",{className:"c-icon-button c--dark c-icon-button-selected",children:Object(s.jsx)(E.a,{glyph:e.iconGlyph})}),Object(s.jsxs)("div",{children:[Object(s.jsx)("div",{className:"c-tippy-window-option-heading",children:e.heading}),Object(s.jsx)("div",{className:"c-tippy-window-option-text",children:e.text})]})]})}var xe=n(40),ke=function buildDropDownContent(e){return Object(s.jsxs)("div",{className:"c-tippy-window",children:[Object(s.jsx)("div",{className:"c-tippy-window-inbox",children:e.windowHeading}),Object(s.jsx)(SortPriorityListItem,{sort:fe.c.BY_ACTIVITY,setSort:e.setSort,iconGlyph:Object(x.e)(x.c.PRIORITY_LIST),heading:"Priority",text:"List new messages and activity first",currentSort:e.currentSort,dataTestId:"sort-priority-activity"},fe.c.BY_ACTIVITY),Object(s.jsx)(SortPriorityListItem,{sort:fe.c.BY_RECEIVED_DATE,setSort:e.setSort,iconGlyph:Object(x.e)(x.c.TIME),heading:"Chronological",text:"List messages by received date",currentSort:e.currentSort},fe.c.BY_RECEIVED_DATE)]})};function SortPriorityList(e){var t=e.currentSort===fe.c.BY_ACTIVITY,n=Object(x.e)(t?x.c.PRIORITY_LIST:x.c.TIME);return Object(s.jsx)(Ie.a,{content:Object(s.jsx)("div",{children:ke(e)}),placement:"bottom-end",distance:2,offset:32,interactive:!0,hideOnClick:!0,animation:"shift-away",trigger:"click",theme:"sort_priority_list",duration:150,maxWidth:"none",arrow:!1,children:Object(s.jsx)(X.a,{dataTestId:"sort-priority-toggle",className:"c--sm",buttonContent:t?"Priority list":"Chronological list",iconGlyph:n,onClick:xe.a})})}var Ne=function SortOptions(e){var t=e.searchNavigator.currentOrder!==fe.b.FROM_NEWEST,n=function getTooltip(e){switch(e){case fe.b.FROM_OLDEST:return"Oldest on top";case fe.b.FROM_NEWEST:return"Newest on top"}return""}(e.searchNavigator.currentOrder);return e.showSort?Object(s.jsxs)(s.Fragment,{children:[!e.inMyWork&&Object(s.jsx)(SortPriorityList,{windowHeading:"List Setting",setSort:e.setSort,currentSort:e.searchNavigator.currentSort}),Object(s.jsx)(X.a,{id:"reverse-sorting",dataTestId:"reverse-sorting",buttonContent:n,iconGlyph:Object(x.e)(x.c.SORT),onClick:e.reverseOrder,className:t?"c--sm u-flip":"c--sm",isMobile:e.isMobile})]}):Object(s.jsx)(s.Fragment,{})},Re=n(283);var Fe=Object(me.b)([function(e,t){return Object(Ee.a)(e,t.location.search)}],(function(e){return{selectedItems:e}})),Me=Object(we.j)(Object(_e.connect)(Fe)((function ListHeaderV2(e){var t,n=e.itemsLoaded&&e.multiSelect,r=!n,a=(e.newItemCount>0||e.newBucketItemCount>0)&&e.totalItemsCount.total>0,i=e.totalItemsCount,o=e.getExactCount,u=l.useState(!1),b=Object(c.a)(u,2),p=b[0],m=b[1];l.useEffect((function(){p&&i.exact&&m(!1)}),[i,p]);var h=l.useCallback((function(){i.exact||(m(!0),o())}),[m,i.exact,o]),g=Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)(E.a,{className:"u-mr-sm",glyph:Object(x.e)(0===e.scrollPosition?x.c.MESSAGE:x.c.ARROW_UP),size:"regular"}),Object(s.jsx)(re.a,{enter:!1,exit:!1,appear:!0,className:"filter-label",children:Object(s.jsx)(ae.a,{classNames:"c-message-list__count",timeout:500,children:i.exact?Object(s.jsx)("div",{className:"c-list-header-v2__count","data-testid":"message-list-count",children:e.itemsLoaded&&i.total.toLocaleString()}):Object(s.jsx)("div",{className:"c-list-header-v2__count c--clickable",onClick:h,"data-testid":"message-list-count",children:Object(s.jsx)(Ie.a,{content:"Click to show the total count.",placement:"right",animateFill:!0,plugins:[Re.a],delay:[300,20],theme:"tooltip",arrow:!1,children:Object(s.jsx)("div",{children:i.total.toLocaleString()+"+"})})})})})]});return Object(s.jsx)("div",{className:"layout-hd",children:Object(s.jsxs)("div",{className:"filter-tabs c-list-header-v2","data-testid":"list-header-v2",children:[n||a?a?function renderNewMessageNotice(t,n,r){return Object(s.jsx)(re.a,{className:"c--new-message-container",children:a&&Object(s.jsx)(ae.a,{timeout:{enter:600,exit:600},classNames:"c--new-message",children:Object(s.jsxs)("button",{className:"c-new-message-indicator__button",onClick:function onClick(){n>0?e.setScrollToTop(!0):r()},"data-testid":"new-message-button",children:[Object(s.jsx)(E.a,{glyph:Object(x.e)(x.c.ARROW_UP),size:"regular",className:v()("u-mr-sm",{"c--bucket-notifier":n>0})}),Object(s.jsxs)("span",{children:[t+n," New"]})]})})})}(e.newItemCount,e.newBucketItemCount,e.newMessageNoticeOnClick):Object(s.jsxs)("div",{className:"c-list-header-v2__wrapper",children:[Object(s.jsx)(E.a,{className:"c-list-header-v2__selected",glyph:Object(x.e)(x.c.LIST_CHECK),size:"regular"}),Object(s.jsx)("span",{className:"c-list-header-v2__count",children:null===(t=e.selectedItems)||void 0===t?void 0:t.length.toLocaleString()})]}):Object(s.jsx)("div",{className:"c-list-header-v2__wrapper",style:{opacity:e.itemsLoaded?1:0,transition:"opacity 0.3s"},"data-testid":"select-count",children:0===e.scrollPosition?g:Object(s.jsx)("button",{className:"c-list-header-v2__scroll",onClick:function onClick(){return e.setScrollToTop(!0)},"data-testid":"list-header-v2-scroll",children:g})}),n&&e.showBulkArchive&&Object(s.jsxs)(ye.a,{className:"c-message-list__store-all-dropdown c-list-header-v2__dropdown",children:[Object(s.jsxs)(Se.a,{className:"c-message-list__store-all","data-testid":"message-list-store-all",children:["Bulk Archive",Object(s.jsx)(E.a,{glyph:Object(x.e)(x.c.ARROW_DROP_DOWN),size:"small"})]}),Object(s.jsxs)(Ce.a,{right:!0,children:[Object(s.jsxs)(Ae.a,{onClick:function onClick(){return e.storeAll(d.d.WITH_JOB_REFERENCES)},children:["With ",ve.b.t(ve.a.JOB_TAG_PLURAL)]}),Object(s.jsx)(Ae.a,{onClick:function onClick(){return e.storeAll(d.d.ASSIGNED)},children:"Assigned To A User"}),Object(s.jsx)(Ae.a,{onClick:function onClick(){return e.storeAll(d.d.READ_OR_VIEWED)},children:"Read By Me / Others"}),Object(s.jsx)(Ae.a,{onClick:function onClick(){return e.storeAll(d.d.READ_OR_VIEWED_ME)},children:"Read By Me"}),Object(s.jsx)(Ae.a,{onClick:function onClick(){return e.storeAll(d.d.BUT_LAST_12_HOURS)},children:"All But Last 12 Hours"}),Object(s.jsx)(Ae.a,{onClick:function onClick(){return e.storeAll(d.d.BUT_LAST_72_HOURS)},children:"All But Last 72 Hours"}),Object(s.jsxs)(Ae.a,{onClick:function onClick(){return e.storeAll(d.d.WITH_CATEGORY_TAGS)},children:["With ",ve.b.t(ve.a.CATEGORY_TAG_PLURAL)]}),Object(s.jsx)(Ae.a,{onClick:function onClick(){return e.storeAll(d.d.ALL)},children:"All"})]})]}),Object(s.jsx)("div",{className:"u-flex u-justify-end",children:Object(s.jsx)(SelectWidget,{itemsLoaded:e.itemsLoaded,toggleMultiSelect:e.toggleMultiSelect,multiSelect:e.multiSelect,bucketFullView:!1})}),Object(s.jsx)("div",{className:"u-flex u-items-center u-justify-end",children:Object(s.jsx)(Ne,{showSort:r,setSort:e.setSort,searchNavigator:e.searchNavigator,reverseOrder:e.reverseOrder,isMobile:e.isMobile,inMyWork:e.inMyWork})})]})})}))),De=n(97);var Le=n(290),Pe=n(74),Ue=n(146),Be="height_reference_for_";function BlockBasedList(e){var t=l.useState(e.searchNavigator.items[0]),n=Object(c.a)(t,2),h=n[0],j=n[1],v=l.useState(null),O=Object(c.a)(v,2),T=O[0],y=O[1],S=l.useState(Object(G.e)(document.documentElement.clientWidth)),C=Object(c.a)(S,2),A=C[0],E=C[1],w=l.useState(0),_=Object(c.a)(w,2),I=_[0],x=_[1],k=l.useState(!1),N=Object(c.a)(k,2),R=N[0],F=N[1],M=l.useState(0),D=Object(c.a)(M,2),L=D[0],P=D[1],U=l.useState(!1),B=Object(c.a)(U,2),H=B[0],W=B[1],z=function useBucketState(e){var t=u.a.useState(new Map(e.map((function(e){return[e.bucketSearchQuery,{bucketState:b.f.COLLAPSED,bucketNewUnread:!1}]})))),n=Object(c.a)(t,2),r=n[0],a=n[1],i=u.a.useRef(!1),s=Object(l.useCallback)((function(e,t){var n=r.get(e);if(n){if(t===n.bucketNewUnread)return;a(new Map(r.set(e,{bucketState:n.bucketState,bucketNewUnread:t})))}}),[r]),d=Object(l.useCallback)((function(e,t){var n=r.get(e);if(n){if(t===n.bucketState)return;t===b.f.COLLAPSED&&s(e,!1),a(new Map(r.set(e,{bucketState:t,bucketNewUnread:n.bucketNewUnread}))),i.current=!0}}),[r,s]);return[e.map((function(e){var t=r.get(e.bucketSearchQuery);return Object(o.a)(Object(o.a)({},e),{},{bucketState:t?t.bucketState:b.f.COLLAPSED,setBucketState:function setBucketState(t){return d(e.bucketSearchQuery,t)},bucketNewUnread:!!t&&t.bucketNewUnread,setBucketNewUnread:function setBucketNewUnread(t){return s(e.bucketSearchQuery,t)}})})),i]}(e.bucketProps),V=Object(c.a)(z,2),J=V[0],Y=V[1],q=l.useState({lastListScrollPosition:e.lastListScroll.lastListScrollPosition,lastListScrollPositionMessageId:e.lastListScroll.lastListScrollPositionMessageId,lastListScrollPositionAbsoluteTop:e.lastListScroll.lastListScrollPositionAbsoluteTop,lastMessageId:e.lastListScroll.lastMessageId}),K=Object(c.a)(q,2),X=K[0],Z=K[1],$=function resetLastListScrollPositionState(){X.lastMessageId&&Z({lastMessageId:void 0,lastListScrollPosition:void 0,lastListScrollPositionMessageId:void 0,lastListScrollPositionAbsoluteTop:void 0})},ee=Object(De.d)("".concat(Ue.a,"_").concat(e.currentUser.id),Ue.b),ne=Object(c.a)(ee,1)[0],re=function usePrevious(e){var t=Object(l.useRef)();return Object(l.useEffect)((function(){t.current=e}),[e]),t.current}(ne.enableNewTiles),ae=l.useState(0),ie=Object(c.a)(ae,2),oe=ie[0],ce=ie[1],se=l.useRef(),ue=!function isQuickFilterInbox(e){var t=Object(je.parse)(e),n=t.filter?t:{filter:Oe.h.inbox};return n.filter===p.D.INBOX&&!n.filterSet}(e.searchNavigator.currentLocation.search)||e.showFullBucket;l.useEffect((function(){if(Object(Q.c)(e.searchNavigator.currentLocation.search)){var t=J.reduce((function(t,n){return Object(o.a)(Object(o.a)({},t),{},Object(i.a)({},n.id,e.featureFlags.UNREAD_COMMENT_IN_BUCKET?n.bucketCommentOrMessageUnread:n.bucketUnread))}),{});if(!se.current)return void(se.current=t);var n=Object.entries(t).reduce((function(e,t){var n,r,a=Object(c.a)(t,2),i=a[0],o=a[1],s=null===(n=se.current)||void 0===n||null===(r=n[i])||void 0===r?void 0:r.map((function(e){return e.total})),l=o.map((function(e){return e.total})).orElse(0);if(!s)return e+l;var u=J.find((function(e){return e.id===i}));return u&&l>s.orElse(0)&&u.setBucketNewUnread(!0),e+Math.max(0,l-s.orElse(0))}),0);n&&ce((function(e){return e+n})),se.current=t}}),[e.searchNavigator.currentLocation.search,J,e.featureFlags.UNREAD_COMMENT_IN_BUCKET]),l.useEffect((function(){if(h){var t,n=0,r=Object(a.a)(e.searchNavigator.items);try{for(r.s();!(t=r.n()).done;){if(t.value.id===h.id)break;n++}}catch(i){r.e(i)}finally{r.f()}(n=n===e.searchNavigator.items.length?0:n)&&(x(n),y(h))}else j(e.searchNavigator.items[0])}),[e.searchNavigator.items]),l.useEffect((function(){j(e.searchNavigator.items[0]),y(null),x(0),ce(0),W(!1)}),[e.searchNavigator.currentLocation.search]),Object(Le.a)(Pe.a.ESCAPE_ITEM_SELECTION,e.cancelSelection,[e.activeItems]);l.useEffect((function(){var t=buildTitle(e.currentUser,e.selectedTeams?e.selectedTeams:[e.currentTeam],e.searchNavigator.currentFilterSet,window.location.search,I,e.featureFlags.TITLE);t!==document.title&&(document.title=t)}),[e.currentUser,e.currentTeam,e.searchNavigator.currentFilterSet,I,e.featureFlags.TITLE,e.selectedTeams]);var fe=e.searchNavigator.hasNextPage()?e.searchNavigator.totalItems:de.a.of({total:e.searchNavigator.items.length,exact:!0}),be=fe.isPresent(),pe=fe.orElse({total:0,exact:!0}),me=function toggleMultiSelect(){e.toggleMultiSelect(),e.emptyLastMessageId()};if(e.searchNavigator.totalItems.isError())return Object(s.jsx)("div",{className:"c-message-list layout-hd-ft",children:errorRenderer(e.searchNavigator.totalItems.error().orElseThrow(new Error("Bad API")))});var he=J.find((function(e){return e.isInFullView}));return Object(s.jsxs)("div",{className:"c-message-list layout-hd-ft",style:he?{backgroundColor:b.a}:{},children:[e.bucketProps&&he&&ue?Object(s.jsx)("div",{className:"layout-hd",children:renderBlock(new g.e({id:he.id,isMobile:e.isMobile,bucketName:he.bucketName,style:{},returnFromBucketFullView:he.returnFromBucketFullView,bucketType:he.bucketType,selectWidget:Object(s.jsx)(SelectWidget,{itemsLoaded:be,toggleMultiSelect:me,multiSelect:e.multiSelect,bucketFullView:!0}),sortOptions:Object(s.jsx)(Ne,{showSort:!(e.multiSelect&&be),setSort:e.setSort,searchNavigator:e.searchNavigator,reverseOrder:e.reverseOrder,isMobile:e.isMobile,inMyWork:e.inMyWork}),bucketUnreadCount:he.bucketUnread,goToBucketFullView:he.goToBucketFullView,messageTotal:he.bucketTotal,unreadCommentTokenFeatureFlag:e.featureFlags.UNREAD_COMMENT_IN_BUCKET,bucketUnreadCommentCount:he.bucketCommentUnread},0))({height:"9rem"})}):Object(s.jsx)(Me,{itemsLoaded:be,totalItemsCount:pe,multiSelect:e.multiSelect,toggleMultiSelect:me,reverseOrder:e.reverseOrder,searchNavigator:e.searchNavigator,setSort:e.setSort,newItemCount:I,newMessageNoticeOnClick:function newMessageNoticeOnClick(){W(!0),x(0),ce(0),j(e.searchNavigator.items[0])},showBulkArchive:e.showBulkArchive,storeAll:e.storeAll,scrollPosition:L,setScrollToTop:F,newBucketItemCount:oe,isMobile:e.isMobile,getExactCount:e.getExactCount,inMyWork:e.inMyWork}),Object(s.jsx)(m.a,{children:function children(){var e=Object(G.e)(document.documentElement.clientWidth);return e!==A&&E(e),Object(s.jsx)(s.Fragment,{})}}),Object(s.jsx)("div",{style:{opacity:0,position:"absolute",top:"-1000px"},children:Object(g.q)(e.featureFlags,ne).map((function(e){return Object(s.jsx)("div",{id:Be+e.type,"data-testid":"hidden",children:renderBlock(e)({})},e.type)}))}),Object(s.jsx)(le,{blocks:We(e,T,I,function generateBucketBlocks(t,n){return function(a){return n?[]:[new g.j({style:{}},a(d.b.list_spacing))].concat(Object(r.a)(t.reduce(function expandedViewDisabled(t){return function(n,a){var i=a.id,o=a.bucketType,c=a.bucketName,s=a.bucketUnread,l=a.bucketCommentOrMessageUnread,u=a.goToBucketFullView,b=a.bucketNewUnread,p=a.subscribeSavedSearch,m=a.unsubscribeSavedSearch,h=a.isSubscribed,j=a.canSubscribe,v=a.isInFullView&&ue,O=[],T=e.featureFlags.UNREAD_COMMENT_IN_BUCKET?l:s;return T.map((function(n){0!==n.total&&Object(Q.c)(e.searchNavigator.currentLocation.search)&&!v&&(O.push(new g.a({id:i,bucketName:c,isSubscribed:h,canSubscribe:j,subscribeSavedSearch:p,unsubscribeSavedSearch:m,style:{},messageTotal:T,bucketType:o,goToBucketFullView:function goToBucketFullView(){return u(te.a.ALL,i)},bucketNewUnread:b},t(d.b.bucket_collapsed_view))),O.push(new g.j({style:{}},t(d.b.list_spacing))))})),[].concat(Object(r.a)(n),O)}}(a),[])))}}(J,ue&&void 0!==he),!!he,A,ne,$,e.lastListScroll.lastMessageId),loadMoreItems:e.loadMoreItems,resetLastScrollPositionState:$,lastListScroll:X,recordListScrollPosition:e.recordListScrollPosition,clearNewMessageNotice:He(e.searchNavigator.items,j,x,ce,W),clearNewLine:Ge(e.searchNavigator.items,y),animateToNewMessage:H,setAnimateToNewMessage:W,activeItems:e.activeItems,screenSize:A,search:e.searchNavigator.currentLocation.search,bucketStateChanged:Y,scrollPosition:L,setScrollPosition:P,tileHeightChanged:ne.enableNewTiles===re,scrollToTop:R,setScrollToTop:F,pullToRefresh:e.pullToRefresh})]})}function getDateString(e){return""+e.getFullYear()+e.getMonth()+e.getDate()}function getLocalDateFromListItem(e){return getDateString(new Date(function getDateFromListItem(e){return e.type===d.a.message?e.data.meta.modifiedAt?e.data.meta.modifiedAt:e.data.meta.receivedDate:e.data.meta.attributes.modified}(e)))}function getJobReferenceAndDateKey(e){return e.type===d.a.topic?e.data.jobReference.map((function(e){return e.relationshipId})).sort().join("_")+"_"+getDateString(new Date(e.data.meta.attributes.modified)):e.data.jobReference.map((function(e){return e.tagId})).sort().join("_")+"_"+getDateString(new Date(e.data.meta.receivedDate))}function shiftSelectItem(e,t,n,r,a,i,o){var c=a.map((function(e,t){return{item:e,index:t}})).filter((function(e){return!!r.find((function(t){return e.item.id===t.id&&e.item.type===t.type}))}));if(c.length<1)return i(e,t);be.c((function(n){return n.id===t&&n.type===e}),a).map((function(e){var t=c[0].index,n=c[c.length-1].index;return o(e<t?a.filter((function(n,r){return r>=e&&r<=t})).map((function(e){return{id:e.id,type:e.type}})):e>n?a.filter((function(t,r){return r>=n&&r<=e})).map((function(e){return{id:e.id,type:e.type}})):a.filter((function(n,r){return r>=t&&r<=e})).map((function(e){return{id:e.id,type:e.type}}))),!1}))}var He=Object(pe.c)((function(e,t,n,r,a){return function(){t(e[0]),n(0),r(0),a(!1)}}),me.a),Ge=Object(pe.c)((function(e,t){return function(){return t(e[0])}}),me.a),We=Object(pe.c)((function(e,t,n,a,i,c,s,l,u){var b=Object(g.q)(e.featureFlags,s).map((function(e){var t=document.getElementById("".concat(Be).concat(e.type));return{type:e.type,height:t?parseInt(getComputedStyle(t,null).height||"",10):0}})),p=function getHeight(e){var t=b.find((function(t){return t.type===e}));return(null===t||void 0===t?void 0:t.height)?t.height:function defaultBlockHeight(e){switch(e){case d.a.message:case d.a.topic:return 80;case d.b.date_label:return 24;case d.b.jr_header:return 32;case d.b.jr_footer:return 4;case d.b.list_spacing:return 8;case d.b.list_new_line:return 0;case d.b.list_loading:case d.b.list_spinner:case d.b.no_item:return 120;case d.b.full_bucket_header_v2:return 40;case d.b.jr_header_v2:return 32;case d.b.bucket_collapsed_view:return 40}}(e)},m=[],h=e.featureFlags.SEARCH_BUCKETS&&e.bucketProps?a(p):[],j=function generateBlocks(e,t,n,r,a,i,c,s,l,u){var b,p=e.activeItems;if(e.searchNavigator.totalItems.isPending())return[new g.n({style:{}},r(d.b.list_spinner))];return 0===c.length&&e.listLoading===Oe.k.LOADED?[new g.m(Object(o.a)({style:{}},getNoItemBlockProps(e.searchNavigator.currentFilterSet,null===(b=e.bucketProps)||void 0===b?void 0:b.find((function(e){return e.isInFullView})))),r(d.b.no_item))]:c.reduce((function(n,o,b){var m=e.featureFlags.REMOVE_DATE_HEADERS&&e.searchNavigator.currentSort===fe.c.BY_ACTIVITY;if(0===b&&i&&m&&n.push(new g.j({style:{},inBucket:!1},r(d.b.list_spacing))),b>0&&t&&o.id===t.id&&n.push(new g.i({style:{}},r(d.b.list_new_line))),!m&&a===Oe.j.LIST&&function isFirstItemOfADate(e,t){var n=N.a.of(t[e]).map((function(e){return getLocalDateFromListItem(e)})),r=N.a.of(t[e-1]).map((function(e){return getLocalDateFromListItem(e)}));return!n.equals(r)}(b,c)){var h=o.type===d.a.message?o.data.meta.receivedDate:o.data.meta.attributes.modified;n.push(new g.d({date:h,style:{},isFullView:i},r(d.b.date_label)))}var j=function showJobReference(e,t){return e.data.jobReference.length>0&&t}(o,s.toggleJobRefHeader),v=function isFirstOrLastInTheJobReferenceGroup(e,t){var n=N.a.of(t[e-1]).map((function(e){return getJobReferenceAndDateKey(e)})),r=N.a.of(t[e]).map((function(e){return getJobReferenceAndDateKey(e)})),a=N.a.of(t[e+1]).map((function(e){return getJobReferenceAndDateKey(e)}));return{isFirstInTheJRGroup:!r.equals(n),isLastInTheJRGroup:!r.equals(a)}}(b,c),O=v.isFirstInTheJRGroup,T=v.isLastInTheJRGroup;O&&j&&o.data.jobReference.length&&n.push(function getJrHeader(e,t,n){return e?new g.h(t,n):new g.g(t,n)}(s.enableNewTiles,{jobReferences:o.data.jobReference.sort(Object(ge.a)((function(e){return e.label}))),searchJobReference:e.searchJobReference,style:{},isBucketItem:a===Oe.j.BUCKET||i,featureFlags:e.featureFlags},r(d.b.jr_header)-1));var y=void 0!==p.find((function(e){return e.id===o.id})),S=e.isMobile&&0===p.length&&u===o.id;return o.type===d.a.message?n.push(new g.l({currentUser:e.currentUser,currentTeamId:e.currentTeam.id,message:o.data,onClick:function onClick(){e.selectItem(o.type,o.id)},onShiftClick:function onShiftClick(){shiftSelectItem(o.type,o.id,e.trackEvents,p,e.searchNavigator.items,e.selectItem,e.multipleSelectItems)},isBucketItem:a===Oe.j.BUCKET||i,isActive:y,highlightLastMessage:S,href:"",style:{},isLastInTheJRGroup:T,msgListStyleLocal:s,emptyLastMessageId:e.emptyLastMessageId,emptyLastScrollPosition:e.emptyLastScrollPosition,recordLastScrollPosition:e.recordListScrollPosition,isMobile:e.isMobile,resetLastScrollPositionState:l,multiSelect:e.multiSelect},o.id,r(d.a.message))):n.push(new g.o({currentUser:e.currentUser,topic:o.data,onClick:function onClick(){e.selectItem(o.type,o.id)},onShiftClick:function onShiftClick(){shiftSelectItem(o.type,o.id,e.trackEvents,p,e.searchNavigator.items,e.selectItem,e.multipleSelectItems)},isActive:y,style:{},href:"",author:he.g(e.users,o.data.meta.relationships.author.data.id),isLastInTheJRGroup:T,newNotesUIFeatureFlag:e.featureFlags.NEW_NOTES_UI,showJrHeader:s.toggleJobRefHeader},o.id,r(d.a.topic))),j||a!==Oe.j.LIST||n.push(new g.j({style:{},inBucket:!1},r(d.b.list_spacing))),T&&j&&(!s.enableNewTiles&&n.push(new g.f({style:{},isBucketItem:i||a===Oe.j.BUCKET},r(d.b.jr_footer))),a===Oe.j.LIST&&s.toggleJobRefHeader&&n.push(new g.j({style:{},inBucket:!1},r(d.b.list_spacing)))),n}),[]).concat(a===Oe.j.LIST&&e.searchNavigator.hasNextPage()||e.searchNavigator.totalItems.isPending()?[new g.k({hasItems:c.length>0,style:{}},r(d.b.list_loading))]:[])}(e,t,0,p,Oe.j.LIST,i,e.searchNavigator.items,s,l,u);return m.push.apply(m,Object(r.a)(h).concat(Object(r.a)(j))),m}),me.a);function errorRenderer(e){var t="Could not perform the search. Try again.";switch(e.status){case 503:t="Could not perform search. ElasticSearch Service not available";break;case 504:t="Could not perform search. ElasticSearch Service timed out.";break;case 400:t=function isMessageListError(e){return"response"in e}(e)&&"Search term includes teams that are not accessible to user"===e.response.errors[0].detail?"Could not perform search. One or more of the ".concat(ve.b.t(ve.a.TEAM_PLURAL)," are not available to you. Please remove the ").concat(ve.b.t(ve.a.TEAM_PLURAL)," you do not have access to"):"The search query exceeds the number of allowed terms."}return Object(s.jsx)("div",{style:{width:"calc(100% - 1rem)",height:"100%",marginLeft:"var(--spacing-3)",padding:"var(--spacing-5)",textAlign:"center",paddingTop:"7rem"},children:Object(s.jsx)("div",{className:"u-fs-l u-text-medium qa-empty-msg",children:t})})}t.a=l.memo(BlockBasedList)},,function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l}));var r=n(32),a=n.n(r),i=n(38),o=n(57),c=function calculateTimestamp(e,t){return a()(e.type===i.a.message?t===o.c.BY_RECEIVED_DATE?e.data.meta.receivedDate:e.data.meta.latestActivity:t===o.c.BY_RECEIVED_DATE?e.data.meta.attributes.modified:e.data.meta.attributes.latest_activity).valueOf().toString()},s=function calculateTimestampFromApiResource(e,t){var n=function isMessageResource(e){return e.type===i.a.message}(e)?t===o.c.BY_RECEIVED_DATE?e.attributes.receivedAt:e.attributes.latestActivity:t===o.c.BY_RECEIVED_DATE?e.attributes.modified:e.attributes.latest_activity;return n?a()(n).valueOf().toString():null},l=function appVersionToUnixTimestampOrNull(e){var t=a()(e,"vYYYYMMDD-HHmm",!0);return t.isValid()?t.unix():null}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return FullBucketToggle}));var r,a=n(21),i=n(0),o=n(1),c=n(9),s=n(19),l=n(12),u=n(219);!function(e){e.ALL="ALL",e.UNREAD_MESSAGE="UNREAD_MESSAGE",e.UNREAD_COMMENT="UNREAD_COMMENT"}(r||(r={}));var d={Toggle:l.b.div.withConfig({displayName:"full-bucket-toggle__Toggle",componentId:"p1l771-0"})(['display:flex;order:1;position:relative;background-color:var(--bucket-tab);border-radius:var(--br2);font-size:var(--fs-sm);font-weight:var(--fw-bold);transition:background-color 150ms ease-in;width:100%;margin:var(--spacing-2) var(--spacing-2) 0;*{cursor:pointer;}&::before{content:"";position:absolute;top:0;z-index:var(--stage-layer);display:block;width:calc(100% / ',");",";height:100%;border-radius:var(--br2);border:var(--bw2) solid var(--bucket-tab);background-color:var(--background-1);transition:all ","ms ease-in;","}"],(function(e){return e.unreadCommentToken?3:2}),(function(e){return e.currentToggleView===r.UNREAD_COMMENT?"\n            width: calc(100% / 3 + (".concat(2,"px * 2));\n            margin-left: -").concat(2,"px;"):""}),(function(e){return e.unreadCommentToken?150:90}),(function(e){return b(e.currentToggleView,e.unreadCommentToken)})),Checkbox:l.b.input.withConfig({displayName:"full-bucket-toggle__Checkbox",componentId:"p1l771-1"})(["width:0;opacity:0;"]),ToggleValue:l.b.div.withConfig({displayName:"full-bucket-toggle__ToggleValue",componentId:"p1l771-2"})(["position:relative;padding:var(--spacing-2) var(--spacing-1);display:inline-flex;align-items:center;justify-content:center;flex:0 0 calc(100% / ",");"," ",""],(function(e){return e.unreadCommentToken?3:2}),(function(e){return e.countDisplayed===r.UNREAD_MESSAGE?"\n          span {\n            margin-right: var(--spacing-1);\n          }":""}),(function(e){return e.countDisplayed===r.UNREAD_COMMENT?'\n          &::before,\n          &::after {\n            content: "";\n            position: absolute;\n            top: 25%;\n            z-index: var(--backdrop-layer);\n            display: block;\n            width: '.concat(1,"px;\n            height: 50%;\n            background-color: var(--border-3);\n          }\n          &::before {\n            left: -").concat(2,"px;\n          }\n          &::after {\n            right: -").concat(2,"px;\n          }"):""})),ToggleLabel:l.b.label.withConfig({displayName:"full-bucket-toggle__ToggleLabel",componentId:"p1l771-3"})(["margin:0;position:relative;z-index:var(--orchestra-layer);display:flex;align-items:center;"])},b=function toggleAnimation(e,t){switch(e){case r.UNREAD_MESSAGE:return"\n        & {\n          left: 0;\n      }";case r.ALL:return"\n        & {\n          left: ".concat(t?66.67:50,"%;\n      }");case r.UNREAD_COMMENT:return"\n        & {\n          left: 33.333%;\n      }"}};function useStoredCount(e){var t=o.useState(null),n=Object(a.a)(t,2),r=n[0],i=n[1];return Object(o.useEffect)((function(){e.ifPresent((function(e){return i(e)}))}),[e]),r}function FullBucketToggle(e){var t=o.useState(r.ALL),n=Object(a.a)(t,2),l=n[0],b=n[1],p=useStoredCount(e.messageTotal),m=useStoredCount(e.messageUnreadTotal),h=useStoredCount(e.commentUnreadTotal),g=function toggleCount(t){l!==t&&(e.performSearch(t),b(t))};return Object(i.jsxs)(d.Toggle,{currentToggleView:l,"data-testid":"bucket-header-block__toggle",unreadCommentToken:e.unreadCommentToken,children:[Object(i.jsx)(d.Checkbox,{type:"checkbox",checked:!r.ALL,onChange:function onChange(){return g(r.ALL)}}),Object(i.jsx)(d.ToggleValue,{countDisplayed:r.UNREAD_MESSAGE,onClick:function onClick(){return g(r.UNREAD_MESSAGE)},unreadCommentToken:e.unreadCommentToken,children:Object(i.jsxs)(d.ToggleLabel,{children:[Object(i.jsx)("span",{children:"Unread"})," ",Object(i.jsx)(u.b,{unreadCount:m,fontSize:u.a.SMALL})]})}),e.unreadCommentToken?Object(i.jsx)(d.ToggleValue,{countDisplayed:r.UNREAD_COMMENT,onClick:function onClick(){return g(r.UNREAD_COMMENT)},unreadCommentToken:e.unreadCommentToken,children:Object(i.jsxs)(d.ToggleLabel,{children:[Object(i.jsx)(s.a,{size:"small",className:"u-mr-xs",glyph:Object(c.e)(c.c.COMMENT)}),Object(i.jsx)(u.b,{unreadCount:h,fontSize:u.a.SMALL})]})}):"",function renderTotalCount(t){var n;return Object(i.jsx)(d.ToggleValue,{countDisplayed:r.ALL,onClick:function onClick(){return g(r.ALL)},unreadCommentToken:e.unreadCommentToken,children:Object(i.jsxs)(d.ToggleLabel,{children:[Object(i.jsx)(s.a,{size:"small",className:"u-mr-xs",glyph:Object(c.e)(c.c.MESSAGE)}),(null!==(n=null===t||void 0===t?void 0:t.total)&&void 0!==n?n:0).toLocaleString()+((null===t||void 0===t?void 0:t.exact)?"":"+")]})})}(p)]})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return O}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(14),l=n(125),u=n(17),d=n(30),b=n(59),p=n(295),m=n(43),h=n(8),g=function(e){Object(o.a)(SubmitMessageReplyAction,e);var t=Object(c.a)(SubmitMessageReplyAction);function SubmitMessageReplyAction(e,n,r,i,o){var c,s;return Object(a.a)(this,SubmitMessageReplyAction),(s=t.call(this,e,n,i,null===(c=o)||void 0===c?void 0:c.explicitTeamId)).messageId=e,s.search=r,s.explicitTeamDetails=o,s}return Object(i.a)(SubmitMessageReplyAction,[{key:"onError",value:function onError(e){return[new v(this.messageId,e),new m.b({message:"Failed to create message",level:h.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){var t=[new j(this.messageId)];return t.push(this.explicitTeamDetails&&this.explicitTeamDetails.explicitTeamId!==this.explicitTeamDetails.currentTeamId?b.h.switchTeamNoReset(this.explicitTeamDetails.explicitTeamId,[Object(l.e)({search:Object(d.stringify)(Object(r.a)(Object(r.a)({},Object(d.parse)(this.search)),{},{goBackToTeam:this.explicitTeamDetails.currentTeamId,teamId:this.explicitTeamDetails.explicitTeamId})),pathname:u.a.COMPOSE_MESSAGE(e.id)})]):Object(l.e)({search:this.search,pathname:u.a.COMPOSE_MESSAGE(e.id)})),t}}]),SubmitMessageReplyAction}(p.a),j=function(e){Object(o.a)(FulFillMessageReplyAction,e);var t=Object(c.a)(FulFillMessageReplyAction);function FulFillMessageReplyAction(e){var n;return Object(a.a)(this,FulFillMessageReplyAction),(n=t.call(this)).messageId=e,n}return FulFillMessageReplyAction}(s.a),v=function(e){Object(o.a)(FailMessageReplyAction,e);var t=Object(c.a)(FailMessageReplyAction);function FailMessageReplyAction(e,n){var r;return Object(a.a)(this,FailMessageReplyAction),(r=t.call(this,n)).messageId=e,r.error=n,r}return FailMessageReplyAction}(s.b),O=function(){function SubmitMessageReplyActionBuilder(e,t,n){Object(a.a)(this,SubmitMessageReplyActionBuilder),this.messageId=e,this.fromName=t,this.search=n,this.sendType=void 0,this.explicitTeamDetails=void 0}return Object(i.a)(SubmitMessageReplyActionBuilder,[{key:"forward",value:function forward(){return this.sendType=p.b.FORWARD,this}},{key:"reply",value:function reply(){return this.sendType=p.b.REPLY,this}},{key:"replyAll",value:function replyAll(){return this.sendType=p.b.REPLY_ALL,this}},{key:"resend",value:function resend(){return this.sendType=p.b.RESEND,this}},{key:"resendAsNew",value:function resendAsNew(){return this.sendType=p.b.RESEND_AS_NEW,this}},{key:"withExplicitTeam",value:function withExplicitTeam(e){return this.explicitTeamDetails=e,this}},{key:"build",value:function build(){if(!this.sendType)throw new Error("Must declare a send type before building");return new g(this.messageId,this.fromName,this.search,this.sendType,this.explicitTeamDetails)}}]),SubmitMessageReplyActionBuilder}()},,function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var r=n(142),a=n(52),i=n(8),o=function transformLiteMessage(e,t){var n,o,l,u,d,b=e.id,p=e.attributes,m=e.relationships,h=p.bodyText,g=p.bodyHtml,j=i.m.Received,v=m.address?m.address.data:[],O=Object(a.b)(v.map((function(e){return t.get({type:"address",id:e.id})}))),T=m.document?m.document.data:[],y=[],S=Object(a.b)(T.map((function(e){return t.get({type:"document",id:e.id}).filter((function(e){return"attachment"===e.attributes.type}))}))).map((function(e){var t,n;return(null===(t=e.relationships)||void 0===t||null===(n=t.document_type)||void 0===n?void 0:n.data)&&y.push({documentId:e.id,documentTypeId:e.relationships.document_type.data.id}),{id:e.id,hash:e.attributes.hash,name:e.attributes.name,size:e.attributes.size,type:e.attributes.type}})),C=m["public-comment"]?m["public-comment"].data:[],A=Object(a.b)(C.map((function(e){return t.get({type:"public_comment",id:e.id})}))).map(c),E=m["share-external"]?m["share-external"].data:[],w=Object(a.b)(E.map((function(e){return t.get({type:"share_external",id:e.id})}))).map(s);return{id:b,body:{id:b,html:g?r.b.mungeLinks(g):"",text:h},meta:{id:b,state:j,fromName:null!==(n=p.fromName)&&void 0!==n?n:"",fromEmail:null!==(o=p.fromEmail)&&void 0!==o?o:"",subject:null!==(l=p.subject)&&void 0!==l?l:"",snippet:p.snippet,hasAttachment:!!T.length,inInbox:!0,receivedDate:null!==(u=p.receivedAt)&&void 0!==u?u:"",sentDate:"",messageId:"",importId:null!==(d=p.importId)&&void 0!==d?d:"",createdAt:"",modifiedAt:"",sender:m.sender?{userId:m.sender.data.id,time:m.sender.meta.sent_at}:void 0,activitySummary:{comments:[],shares:[]},toAddresses:O.filter((function(e){return"TO"===e.attributes.addressType})).map((function(e){return{email:e.attributes.email,name:e.attributes.name}})),ccAddresses:O.filter((function(e){return"CC"===e.attributes.addressType})).map((function(e){return{email:e.attributes.email,name:e.attributes.name}})),bccAddresses:[],signed:p.signed,createdBy:""},publicComments:A,externalShares:w,documents:S}},c=function transformLiteComment(e){var t;return{id:e.id,createdAt:e.attributes.createdAt,content:e.attributes.content,externalUserId:null===(t=e.relationships.external_user)||void 0===t?void 0:t.data.id,createdByName:e.attributes.name,createdByInitials:e.attributes.initials}},s=function transformShareExternal(e){return{id:e.id,createdAt:e.attributes.date,sharedTo:e.attributes.sharedTo,sharedByInitials:e.attributes.initials,sharedByName:e.attributes.name}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(4),a=n(3),i=n(10),o=n(277),c=n(173),s=n(5),l=n(6),u=n(467),d=n(13),b=n(30),p=n(25),m=n(122),h=n(293),g=n(138),j=n(8);function isTeamFilter(e){return e instanceof d.J||e instanceof d.b}var v=function getTopLevelTeams(e){if(e.isEmpty())return d.k.empty();if(e.combinator===j.g.OR){var t=e.shallowFilter(isTeamFilter);return 1===t.children.length?t.children[0]instanceof d.b||1===e.getNumNodes()?t.children[0]:d.k.empty():t}if(e.combinator===j.g.AND){for(var n=d.k.empty(),r=0;r<e.children.length;r++){var a=e.children[r];if(isTeamFilter(a)){if(!n.isEmpty())return d.k.empty();n=d.k.fromFilterTerm(a)}else if(a instanceof d.k&&a.combinator===j.g.OR){var i=a.shallowFilter(isTeamFilter);if(!i.isEmpty()&&!n.isEmpty())return d.k.empty();i.isEmpty()||(n=i)}}return 1===n.children.length?n.children[0]:n}return d.k.empty()},O=n(269),T=n(2),y=function(e){Object(s.a)(TeamEnhancedFilterSetDeserializer,e);var t=Object(l.a)(TeamEnhancedFilterSetDeserializer);function TeamEnhancedFilterSetDeserializer(e,n,r,i,o,c){var s;Object(a.a)(this,TeamEnhancedFilterSetDeserializer),(s=t.call(this,e,n,r,i,o)).teamEnhancedFilter=c,s.userTeams=void 0,s.defaults=void 0,s.userTeams=e.userTeams.reduce((function(e,t){var n=T.g(i,t).toUndefined();return n&&e.set(t,n),e}),new Map);var l=T.g(i,e.defaultTeamId).toUndefined();return l&&s.userTeams.set(e.defaultTeamId,l),s.defaults=function DEFAULT_FILTER_SET(e){return{quickFilter:new h.a(new d.v,e),bookmark:"",teams:new h.b([]),filterSet:d.k.empty()}}(e),s}return Object(i.a)(TeamEnhancedFilterSetDeserializer,[{key:"fromQueryParams",value:function fromQueryParams(e){var t=this,n=Object(b.parse)(e),r=m.a.of((function(){return p.a.of(n.filter).map((function(e){return new h.a(function quickFilterToFilterSet(e,t){switch(e){case d.D.ALL:return null;case d.D.INBOX:return new d.v;case d.D.SENT:return new d.G;case d.D.STORED:return new d.H;case d.D.DRAFT:return new d.j;case d.D.FOLLOWING:return new d.m;case d.D.MY_MESSAGES:return new d.B(t);case d.D.MY_WORK:return new d.C(t);default:return Object(g.a)(e)}}(e,t.currentUser),t.currentUser)})).orElse(t.defaults.quickFilter)})).orElse((function(){return t.defaults.quickFilter})),a=(n.filterSet?m.a.of((function(){return JSON.parse(n.filterSet)})).flatMap((function(e){return Object(o.a)(Object(c.a)(TeamEnhancedFilterSetDeserializer.prototype),"deserialize",t).call(t,e)})):m.a.ofError(new Error("filterSet not present in object: ".concat(JSON.stringify(n))))).orElse((function(){return d.k.empty()})),i=this.teamEnhancedFilter.teams.length?this.teamEnhancedFilter.teams.map((function(e){return e.id})).join(","):"all",s=p.a.of(n.teams).or(p.a.of(i)).map((function(e){return"all"===e?{teams:[],allTeamsSelected:!0}:{teams:e.split(",").map((function(e){return t.userTeams.get(e)})).filter(O.a),allTeamsSelected:!1}})).orElse({teams:[],allTeamsSelected:!1});return[new h.b(s.teams,s.allTeamsSelected),r].reduce((function(e,t){return t.enhanceFilterSet(a,e)}),d.k.empty()).append(a).normalize()}},{key:"toFilterQuery",value:function toFilterQuery(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.D.ALL,n=v(e),a=e.remove(n);return Object(r.a)(Object(r.a)({},Object(o.a)(Object(c.a)(TeamEnhancedFilterSetDeserializer.prototype),"toFilterQuery",this).call(this,a,t)),{},{teams:this.teamEnhancedFilter.serialize(n)})}},{key:"deserialize",value:function deserialize(e){var t=this;return Object(o.a)(Object(c.a)(TeamEnhancedFilterSetDeserializer.prototype),"deserialize",this).call(this,e).map((function(e){return t.teamEnhancedFilter.enhanceFilterSet(e,e)}))}}]),TeamEnhancedFilterSetDeserializer}(u.a)},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return Hotkey}));var r=n(0),a={Hotkey:n(12).b.span.withConfig({displayName:"hotkey__Hotkey",componentId:"sc-1at0c1h-0"})(["padding:var(--spacing-1) var(--spacing-2);margin-right:var(--spacing-1);border-radius:var(--br1);border:1px solid var(--button-color);background-color:var(--grey-70);color:var(--grey-10);"])};function Hotkey(e){var t=e.id,n=e.val;return Object(r.jsx)(a.Hotkey,{children:n},t)}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return p}));var r=n(4),a=n(0),i=n(12),o=n(19),c=n(9),s=(n(803),n(212)),l=n(56),u=i.b.span.withConfig({displayName:"settings-panel-header__Description",componentId:"sc-1b7rrlj-0"})(["font-size:var(--fs-sm);color:var(--text-2);"]),d=i.b.div.withConfig({displayName:"settings-panel-header__IconAvatarWrapper",componentId:"sc-1b7rrlj-1"})(["padding:var(",");margin-right:var(--spacing-6);border-radius:50%;color:var(--text-4);background-color:var(",");flex-shrink:0;display:none;@media ","{display:inherit;}@media ","{display:block;}"],(function(e){return e.padding}),(function(e){return e.backgroundColor}),l.a.minSmall,l.a.minMedium),b=function renderIcon(e){return Object(a.jsx)(d,{backgroundColor:"--text-1",padding:"--spacing-3",children:Object(a.jsx)(o.a,{glyph:Object(c.e)(e)})})},p=function renderAvatar(e){return Object(a.jsx)(d,{backgroundColor:Object(s.b)(e.type),padding:"--spacing-1",children:Object(a.jsx)(s.a,Object(r.a)({},e))})};t.a=function SettingsPanelHeader(e){var t=e.title,n=e.subTitle,r=e.description,i=e.icon,o=e.children;return Object(a.jsxs)("div",{className:"c-settings-panel-header",children:[Object(a.jsxs)("div",{className:"u-flex u-items-center",children:[i,Object(a.jsxs)("div",{className:"u-flex-auto",children:[Object(a.jsx)(u,{children:r}),Object(a.jsx)("h1",{className:"u-fs-xlg u-mb-sm",children:t}),Object(a.jsx)("p",{className:"u-mb-0",children:n})]})]}),o]})}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return formatBytes})),n.d(t,"a",(function(){return r}));var r,a=n(13),i=function generateFilterSet(e){return function(t){return function isFilterTerm(e){return e instanceof a.l}(e)?a.k.fromFilterTerm(e).and(t):e.and(t)}},o=function generateAttachmentFilterSet(e){var t=a.k.fromFilterTerm(new a.b).and(new a.o);return i(t)(e)},c=function generateMessageFilterSet(e){var t=a.k.fromFilterTerm(new a.b).and(a.k.empty().not(new a.j));return i(t)(e)},s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];function formatBytes(e){if(e<=0)return"0B";var t=Math.floor(Math.log(e)/Math.log(1024));return t>=s.length-1?"n/a":Math.round(e/Math.pow(1024,t)).toString()+s[t]}!function(e){e.ITEMS="ITEMS",e.DOCS="DOCS"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return PreviewContainer}));var r=n(0),a=n(1),i=n(61),o=n(26),c=n(3),s=n(10),l=n(5),u=n(6),d=n(9),b=n(19),p=n(725),m=n(643),h=n(163),g=n(511),j=n(131),v=n(32),O=n.n(v),T=n(66),y=n(377),S=n(21),C=n(882),A=n(50),E=n(51),w=n(266),_=a.lazy((function(){return Promise.all([n.e(17),n.e(8)]).then(n.bind(null,1823))}));function PdfPreview(e){var t=Object(a.useState)(),n=Object(S.a)(t,2),i=n[0],o=n[1],c=Object(a.useState)(),s=Object(S.a)(c,2),l=s[0],u=s[1];return Object(a.useEffect)((function(){fetch(Object(E.k)("attachment/downloadurl?storedName=".concat(e.storedName,"&fileName=").concat(encodeURIComponent(e.fileName),"&inline=true")),{mode:"cors",cache:"no-cache",credentials:"include"}).then((function(e){return e.json()})).then((function(e){return o(e.url)})).catch((function(e){var t="Could not load the PDF file.";console.log(t,e),u(t)}))}),[e.storedName,e.fileName]),l?buildError(l,e.storedName,e.fileName):i?function hasPdfViewer(){var e=/iphone|ipad|ipod/i.test(window.navigator.userAgent.toLowerCase()),t="firefox"===Object(w.a)(),n=null!==window.navigator.mimeTypes.namedItem("application/pdf");return!e&&(t||n)}()?Object(r.jsx)("object",{data:i,type:"application/pdf",className:"c-document-preview-body__pdf",children:buildError("Your browser doesn't seem to have a built in PDF Viewer.",e.storedName,e.fileName)}):Object(r.jsx)(a.Suspense,{fallback:Object(r.jsx)(A.b,{spinner:A.a}),children:Object(r.jsx)(_,{url:i,renderError:function renderError(t){return buildError(t,e.storedName,e.fileName)},isMobile:e.isMobile})}):Object(r.jsx)(A.b,{spinner:A.a})}function buildError(e,t,n){return Object(r.jsxs)("div",{className:"u-flex u-flex-column u-items-center u-justify-center u-h-100",children:[Object(r.jsxs)("p",{className:"u-flex u-items-center u-mb-lg",children:[Object(r.jsx)(b.a,{glyph:d.b,className:"u-mr-sm"})," ",e]}),Object(r.jsx)(C.a,{href:Object(E.k)("attachment/blob?storedName=".concat(t,"&fileName=").concat(encodeURIComponent(n))),color:"primary",children:"Download the PDF"})]})}n(1301);var I=n(155),x=n(98),k=n(595),N=n(31),R=n(40),F=function(e){Object(l.a)(MessageDocumentPreview,e);var t=Object(u.a)(MessageDocumentPreview);function MessageDocumentPreview(){var e;Object(c.a)(this,MessageDocumentPreview);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).renderContent=function(t){return Object(r.jsxs)(r.Fragment,{children:[e.renderHead(),Object(I.c)(t)?e.isDocument(t)?e.renderSwitch(t):e.renderEml():renderS3(t)]})},e.renderHead=function(){return Object(r.jsxs)("div",{className:"c-document-preview-head",children:[Object(r.jsx)("h3",{className:"c-document-preview-head__file-name",children:e.props.document.maybe("Empty document",(function(t){return Object(I.c)(t)?e.isDocument(t)?t.name:t.subject:t.fileName}))}),e.props.isModal&&Object(r.jsxs)(r.Fragment,{children:[e.props.document.maybe(Object(r.jsx)(r.Fragment,{}),(function(t){if(!Object(I.c)(t))return Object(r.jsx)(r.Fragment,{});if(e.isDocument(t)){var n=Object(E.k)("attachment/blob?storedName=".concat(t.hash,"&fileName=").concat(encodeURIComponent(t.name.replace(/'/g,""))));return Object(x.a)()?Object(r.jsx)(k.a,{onDownloadMessageDocument:e.props.onDownloadMessageDocument,docId:t.id,link:n,className:"u-self-center u-mr-md"}):Object(r.jsx)(N.a,{buttonContent:"Download",className:"u-self-center u-mr-md",iconGlyph:Object(d.e)(d.c.DOWNLOAD),onClick:e.downloadEml,disableOnTouch:!0})}return Object(r.jsx)(r.Fragment,{})})),Object(r.jsx)(N.a,{buttonContent:"Close",className:"qa-document-preview-close u-self-center",iconGlyph:Object(d.e)(d.c.CLEAR),onClick:e.props.onClose,disableOnTouch:!0})]})]})},e.renderNotSupportedDocument=function(){return Object(r.jsx)("div",{children:"Preview of this document is not supported"})},e.renderPdf=function(t,n,a){return Object(r.jsx)(PdfPreview,{id:t,storedName:n,fileName:a,isMobile:e.props.isMobile})},e.renderImg=function(e){return Object(r.jsx)("div",{className:"c-document-preview-body__img",children:Object(r.jsx)("img",{src:Object(E.k)("attachment/blob?storedName=".concat(e)),alt:"Attachment Preview"})})},e.renderEml=function(){return Object(r.jsx)("div",{className:"c-document-preview-body__email",children:e.props.emlPreview.maybe(Object(r.jsx)("p",{children:"Email preview is not available"}),(function(t){return Object(h.a)(t,(function(t){return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsxs)("div",{className:"c-document-preview-body__email-header-body",children:[Object(r.jsx)("div",{className:"c-document-preview-body__email-subject",children:t.attributes.subject}),Object(r.jsxs)("div",{className:"c-document-preview-body__email-date",children:[Object(r.jsx)("div",{className:"c-document-preview-body__email-date-label",children:"Date:"}),Object(r.jsx)("div",{className:"c-document-preview-body__email-date-content",children:O()(t.attributes.date).format(T.a)})]}),Object(r.jsxs)("div",{className:"c-document-preview-body__email-address",children:[Object(r.jsx)("div",{className:"c-document-preview-body__email-address-label",children:"From:"}),Object(r.jsx)("div",{className:"c-document-preview-body__email-address-content",children:t.attributes.from})]}),Object(r.jsxs)("div",{className:"c-document-preview-body__email-address",children:[Object(r.jsx)("div",{className:"c-document-preview-body__email-address-label",children:"To:"}),Object(r.jsx)("div",{className:"c-document-preview-body__email-address-content",children:t.attributes.to.join(", ")})]}),!!t.attributes.cc.length&&Object(r.jsxs)("div",{className:"c-document-preview-body__email-address",children:[Object(r.jsx)("div",{className:"c-document-preview-body__email-address-label",children:"Cc:"}),Object(r.jsx)("div",{className:"c-document-preview-body__email-address-content",children:t.attributes.cc.join(", ")})]}),!!t.attributes.bcc.length&&Object(r.jsxs)("div",{className:"c-document-preview-body__email-address",children:[Object(r.jsx)("div",{className:"c-document-preview-body__email-address-label",children:"Bcc:"}),Object(r.jsx)("div",{className:"c-document-preview-body__email-address-content",children:t.attributes.bcc.join(", ")})]}),t.attributes.bodyHtml?Object(r.jsx)(g.a,{bodyHtml:t.attributes.bodyHtml,className:"c-document-preview-body__email-body",isMobile:!1},t.id):Object(r.jsx)("div",{className:"c-document-preview-body__email-body",children:Object(r.jsx)("pre",{children:t.attributes.bodyText})})]}),!!t.included&&e.renderEmlAttachmentsContainer(t)]})}))}))})},e.renderEmlAttachmentsContainer=function(t){var n;return Object(r.jsx)("div",{className:"c-document-preview-body__email-attachments",children:null===(n=t.included)||void 0===n?void 0:n.map((function(t,n){return e.renderEmlAttachment(t,n)}))})},e.renderEmlAttachment=function(t,n){return Object(r.jsxs)("div",{className:"c-document-preview-body__email-attachment",children:[Object(r.jsx)(b.a,{glyph:Object(j.d)(t.attributes.filename),className:"c-message-document-preview__attachment-icon",size:"large"}),Object(r.jsx)("div",{className:"c-document-preview-body__email-attachments-name",id:"eml-attach-"+n,children:t.attributes.filename}),Object(r.jsx)(p.a,{placement:"top",delay:150,autohide:!1,target:"eml-attach-"+n,boundariesElement:"window",children:t.attributes.filename}),Object(r.jsx)("div",{className:"u-fs-sm",children:Object(y.b)(t.attributes.size)}),Object(r.jsx)(N.a,{buttonContent:"Download",size:"small",url:e.getDownloadURL(t),iconGlyph:Object(d.e)(d.c.DOWNLOAD),onClick:R.a,disableOnTouch:!0,download:t.attributes.filename})]},t.id)},e.getDownloadURL=function(e){var t=e.attributes.filename.toLowerCase().split(".").pop();return Object(j.c)(e.attributes.filename)===j.a.IMG?"data:image/"+t+";base64,"+e.attributes.content:"data:application/"+t+";base64,"+e.attributes.content},e.downloadEml=function(){return e.props.document.ifPresent((function(e){if("hash"in e)return window.open(Object(E.k)("attachment/blob?storedName=".concat(e.hash,"&fileName=").concat(encodeURIComponent(e.name.replace(/'/g,"")))))}))},e}return Object(s.a)(MessageDocumentPreview,[{key:"render",value:function render(){var e=this;return this.props.document.maybe(Object(r.jsx)(r.Fragment,{}),(function(t){return e.props.isModal?Object(r.jsx)(m.a,{wrapClassName:"c--modal-wrapper",className:"c-document-preview-modal",isOpen:e.props.document.isPresent(),contentClassName:"c-document-preview-layout",backdropClassName:e.props.showModalBackdrop?"":"u-dn",toggle:e.props.onClose,children:e.renderContent(t)}):Object(r.jsx)("div",{className:"c-document-preview-layout",children:e.renderContent(t)})}))}},{key:"renderSwitch",value:function renderSwitch(e){switch(Object(j.c)(e.name)){case j.a.IMG:return this.renderImg(e.hash);case j.a.EML:return this.renderEml();case j.a.PDF:return this.renderPdf(e.id,e.hash,e.name);default:return this.renderNotSupportedDocument()}}},{key:"isDocument",value:function isDocument(e){return"name"in e}}]),MessageDocumentPreview}(a.PureComponent);function renderS3(e){return Object(r.jsx)("iframe",{title:"foo",style:{width:"100%",height:"100%"},src:"".concat("https://view.officeapps.live.com/op/embed.aspx","?src=").concat(encodeURIComponent(e.endpoint),"&amp;embedded=true"),frameBorder:"0"})}var M=n(25),D=n(28),L=n(2),P=n(332),U=n(251);function PreviewContainer(e){var t,n=Object(o.d)((function(e){return e.ui.previewDocument})),c=Object(o.d)((function(e){return e.entities.emlPreview})),s=Object(D.useDispatch)();Object(a.useEffect)((function(){e.previewDocument&&!n.doc&&s(new i.H(e.previewDocument,"New Window",!1))}),[e.previewDocument,n.doc,s]),Object(a.useEffect)((function(){if(n.doc&&Object(I.c)(n.doc)&&(n.doc.kind===I.b.MESSAGE_META||Object(j.c)(n.doc.name)===j.a.EML)){var e=n.doc,t=e.kind,r=e.id;L.g(c,r).ifNotLoading((function(){switch(t){case I.b.DOCUMENT:s(new i.E(r,P.b.DOCUMENT));break;case I.b.TOPIC_ATTACHMENT:s(new U.e(r,n.doc.topicId));break;case I.b.MESSAGE_META:s(new i.E(r,P.b.MESSAGE))}}))}}),[s,c,n.doc]);var l=n.doc&&Object(I.c)(n.doc)?M.a.of(L.g(c,n.doc.id)):M.a.empty();return Object(r.jsx)(F,{onClose:function onClose(){return s(new i.z)},document:M.a.of(n.doc),emlPreview:l,showModalBackdrop:n.showModalBackdrop,isModal:null===(t=e.shouldBeModal)||void 0===t||t,onDownloadMessageDocument:function onDownloadMessageDocument(e){s(new i.P(e))},isMobile:e.isMobile})}},,,,,,function(e,t,n){},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return H}));var r=n(7),a=n(4),i=n(23),o=n(3),c=n(10),s=n(5),l=n(6),u=n(0),d=n(1),b=n(22),p=n(28),m=n(44),h=n(42),g=n(2),j=n(48),v=n(66),O=n(63),T=n(41),y=n(14),S=n(331),C=n(25),A=n(26),E=n(70),w=n(37),_=n(327),I=n(601),x=n(17),k=n(314),N=n(125),R=n(544),F=n(29),M=function(e){Object(s.a)(TopicActivityComponent,e);var t=Object(l.a)(TopicActivityComponent);function TopicActivityComponent(){var e;Object(o.a)(this,TopicActivityComponent);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).witnessCommentTimeout=null,e.onSubmitComment=function(t){e.props.submitComment(e.props.topicId,t,e.props.currentUser.id)},e.trackMaxCharsReachedInComment=function(){e.props.trackMaxCharsReachedInComment(e.props.topicId)},e.goToActivityTab=function(){e.props.goToActivityTab(e.props.topicId,e.props.location,e.props.isCompose),e.props.trackActivityPaneToggle()},e.goToFollowersTab=function(){e.props.goToFollowersTab(e.props.topicId,e.props.location,e.props.isCompose),e.props.trackTagsPaneToggle()},e}return Object(c.a)(TopicActivityComponent,[{key:"componentDidMount",value:function componentDidMount(){this.witnessLatestComment(this.props),this.requestTopic(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function UNSAFE_componentWillReceiveProps(e){this.witnessLatestComment(e)}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.clearCommentTimeout()}},{key:"render",value:function render(){var e=this.props,t=e.isCompose,n=e.isMobile&&t?this.props.toggleSidebar:void 0,r=Object(u.jsx)(_.a,{activeTab:"activity",newActivityItems:this.props.newComments,toggleActivity:this.goToActivityTab,toggleTags:this.goToFollowersTab,paneTitle:"Activity",isDark:!this.props.isDark,toggleSidebar:n,children:Object(u.jsx)(I.a,{visibleUsers:this.props.users,activeFilters:this.props.activeFilters,setActiveFilters:this.props.setActiveFilters,events:this.props.events,submitComment:this.onSubmitComment,featureFlagSenderChanged:this.props.featureFlags.CHANGE_DRAFT_OWNER,pullToRefresh:this.props.pullToRefresh,trackMaxCharsReachedInComment:this.trackMaxCharsReachedInComment})});return this.props.isMobile?Object(R.a)(this.props.events,(function(){return r})):this.props.events.map((function(){return r})).orElse(Object(u.jsx)(u.Fragment,{}))}},{key:"requestTopic",value:function requestTopic(e){var t=e.topicId,n=e.body,r=e.fetchTopicBody;n.isNotLoading()&&r(t)}},{key:"witnessLatestComment",value:function witnessLatestComment(e){var t=this;this.clearCommentTimeout(),e.events.map((function(n){var r=n.filter((function(e){return e.type===E.a.comment}));if(0===r.length)return!1;var a=r[r.length-1];return a.isCurrentUser||Object(v.f)(a.time)>Object(v.f)(e.lastReadComment)&&(t.witnessCommentTimeout=window.setTimeout((function(){return e.witnessComment(e.topicId,a.commentId,e.currentUser.id)}),1e3)),!1}))}},{key:"clearCommentTimeout",value:function clearCommentTimeout(){null!==this.witnessCommentTimeout&&(clearTimeout(this.witnessCommentTimeout),this.witnessCommentTimeout=null)}}]),TopicActivityComponent}(d.PureComponent),D=Object(A.b)([function(e,t){return t},function(e,t){return t.match.params.id},function(e,t){return g.g(e.entities.topic,t.match.params.id)},function(e,t){return g.g(e.entities.topicBody,t.match.params.id)},function(e){return e.ui.messageActivityList.activeFilters},function(e,t){return t.currentUser},function(e,t){return g.g(e.entities.topic,t.match.params.id)},function(e){return e.entities.topicComment},function(e){return e.entities.user},function(e){return e.entities.userToTeam},function(e){return e.ui.featureFlags}],(function(e,t,n,r,a,o,c,s,l,u,d){var b=a.COMMENT?g.n(c.map((function(e){return(e.relationships.topic_comment?e.relationships.topic_comment.data:[]).map((function(e){return e.id}))})),(function(e){return g.g(s,e)}),(function(t){return h.a.lift2((function(n,r){return{type:E.a.comment,uuid:"".concat(t.relationships.author.data.id,"-").concat(t.id,"-").concat(t.attributes.created),time:Object(S.a)(t.attributes.version),user:Object(m.c)(n.firstName,n.lastName),userInitials:n.initials,commentId:t.id,commentText:t.attributes.body,isCurrentUser:n.id===o.id,fromActiveTeam:r.teamIds.includes(e.currentTeam.id)}}))(g.g(l,t.relationships.author.data.id),g.g(u,t.relationships.author.data.id))})):h.a.of([]),p=a.READ?g.m(c.map((function(e){return(e.relationships.read_by?e.relationships.read_by.data:[]).filter((function(t){return t.id!==e.relationships.author.data.id}))})),(function(e){return g.g(l,e.id).map((function(t){return{type:E.a.readBy,uuid:"".concat(e.id,"-").concat(w.g.READ,"-").concat(e.meta.read_at),time:e.meta.read_at,user:Object(m.c)(t.firstName,t.lastName)}}))})):h.a.of([]),j=a.ASSIGNMENT?c.flatMap((function(e){return h.a.traverse(e.relationships.follower.data.filter((function(t){return t.id!==e.relationships.author.data.id})),(function(t){return h.a.lift2((function(n,r){return{type:E.a.assigned,uuid:"".concat(e.id,"-").concat(t.id,"-").concat(t.meta.followed_at),time:t.meta.followed_at,assignedByUserId:n.id,assignedToUserId:r.id,assignedToUserName:Object(m.c)(r.firstName,r.lastName),assignedByUserName:Object(m.c)(n.firstName,n.lastName)}}))(g.g(l,e.relationships.author.data.id),g.g(l,t.id))}))})):h.a.of([]),v=c.flatMap((function(e){return g.g(l,e.relationships.author.data.id).map((function(t){return{type:E.a.created,uuid:"follow-".concat(t.id,"-").concat(e.attributes.created),time:e.attributes.created,user:Object(m.c)(t.firstName,t.lastName)}}))})),T=c.toOptional().flatMap((function(e){return C.a.of(e.relationships.topic_comment)})).flatMap((function(e){return C.a.of(e.meta.version_read_up_to)})).flatMap((function(e){return C.a.of(Object(S.a)(e))})).orElse("0"),y=c.map((function(e){return Object(k.a)(e)})).orElse(0),A=g.h(l).filter((function(e){return null===e.deletedAt}));return{topicId:t,body:r,lastReadComment:T,events:h.a.lift4((function(e,t,n,r){var a=[r].concat(Object(i.a)(e),Object(i.a)(t),Object(i.a)(n));return a.sort(O.d),a}))(b,p,j,v),activeFilters:a,newComments:y,featureFlags:d,users:A}})),L={fetchTopicBody:function fetchTopicBody(e){return new j.B(e)},submitComment:function submitComment(e,t,n){return new j.I(e,t,n)},witnessComment:function witnessComment(e,t,n){return new j.Q(n,e,t)},setActiveFilters:function setActiveFilters(e){return new U(e)},goToFollowersTab:function goToFollowersTab(e,t,n){return Object(N.e)(Object(a.a)(Object(a.a)({},t),{},{pathname:n?x.a.COMPOSE_TOPIC_FOLLOWERS(e):x.a.TOPIC_FOLLOWERS(e)}))},goToActivityTab:function goToActivityTab(e,t,n){return Object(N.e)(Object(a.a)(Object(a.a)({},t),{},{pathname:n?x.a.COMPOSE_TOPIC_ACTIVITY(e):x.a.TOPIC_ACTIVITY(e)}))},trackActivityPaneToggle:function trackActivityPaneToggle(){return F.a.withEvent(Object(F.l)("Show Activity Pane"))},trackTagsPaneToggle:function trackTagsPaneToggle(){return F.a.withEvent(Object(F.l)("Show Tags Pane"))},trackMaxCharsReachedInComment:function trackMaxCharsReachedInComment(e){return F.a.withEvent(Object(F.k)("Comment - Max Char Warning (Notes)",e))}},P=Object(b.j)(Object(p.connect)(D,L)(M)),U=function(e){Object(s.a)(SetActivityFiltersAction,e);var t=Object(l.a)(SetActivityFiltersAction);function SetActivityFiltersAction(e){var n;return Object(o.a)(this,SetActivityFiltersAction),(n=t.call(this)).filters=e,n}return SetActivityFiltersAction}(y.a),B=Object(r.a)({},U.name,(function(e,t){var n={COMMENT:t.filters.includes("COMMENT"),ASSIGNMENT:t.filters.includes("ASSIGNMENT"),SHARE:t.filters.includes("SHARE"),READ:t.filters.includes("READ"),FOLLOWUP:t.filters.includes("FOLLOWUP"),SCHEDULED:t.filters.includes("SCHEDULED"),EDITED:t.filters.includes("EDITED"),SENDER_CHANGED:t.filters.includes("SENDER_CHANGED"),SEND_NOW:t.filters.includes("SEND_NOW"),ICS_DOWNLOADED:t.filters.includes("ICS_DOWNLOADED"),EXTERNAL_FOLLOWUP:t.filters.includes("EXTERNAL_FOLLOWUP"),CREATED:t.filters.includes("CREATED"),SHARE_EXTERNAL:t.filters.includes("SHARE_EXTERNAL"),PUBLIC_COMMENT:t.filters.includes("PUBLIC_COMMENT")};return Object(a.a)(Object(a.a)({},e),{},{activeFilters:n})})),H=Object(T.a)(B,{activeFilters:{COMMENT:!0,ASSIGNMENT:!0,SHARE:!0,READ:!0,FOLLOWUP:!1,SCHEDULED:!1,EDITED:!1,SEND_NOW:!1,SENDER_CHANGED:!1,ICS_DOWNLOADED:!1,EXTERNAL_FOLLOWUP:!1,CREATED:!1,SHARE_EXTERNAL:!1,PUBLIC_COMMENT:!1}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return te})),n.d(t,"b",(function(){return getEditorIcon}));var r=n(7),a=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=a.createElement("path",{d:"M3 6V4h12v2H3zm3 4V8h6v2H6zm-3 4v-2h12v2H3z"});function SvgAlignCenter(e,t){var n=e.title,r=e.titleId,o=_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?a.createElement("title",{id:r},n):null,i)}var o=a.forwardRef(SvgAlignCenter);n.p;function align_justify_extends(){return(align_justify_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function align_justify_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function align_justify_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=a.createElement("path",{d:"M3 6V4h12v2H3zm0 4V8h12v2H3zm0 4v-2h12v2H3z"});function SvgAlignJustify(e,t){var n=e.title,r=e.titleId,i=align_justify_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",align_justify_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,c)}var s=a.forwardRef(SvgAlignJustify);n.p;function align_left_extends(){return(align_left_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function align_left_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function align_left_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.createElement("path",{d:"M3 6V4h12v2H3zm0 4V8h6v2H3zm0 4v-2h9v2H3z"});function SvgAlignLeft(e,t){var n=e.title,r=e.titleId,i=align_left_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",align_left_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,l)}var u=a.forwardRef(SvgAlignLeft);n.p;function align_right_extends(){return(align_right_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function align_right_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function align_right_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var d=a.createElement("path",{d:"M3 6V4h12v2H3zm6 4V8h6v2H9zm-3 4v-2h9v2H6z"});function SvgAlignRight(e,t){var n=e.title,r=e.titleId,i=align_right_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",align_right_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,d)}var b=a.forwardRef(SvgAlignRight);n.p;function text_lowercase_extends(){return(text_lowercase_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function text_lowercase_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function text_lowercase_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=a.createElement("path",{d:"M3 14v-2h12v2H3zM13.293 3.293l1.414 1.414L9 10.414 3.293 4.707l1.414-1.414L9 7.586l4.293-4.293z"});function SvgTextLowercase(e,t){var n=e.title,r=e.titleId,i=text_lowercase_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",text_lowercase_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,p)}var m=a.forwardRef(SvgTextLowercase);n.p;function text_uppercase_extends(){return(text_uppercase_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function text_uppercase_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function text_uppercase_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var h=a.createElement("path",{d:"M3 14v-2h12v2H3zm6-8.586L4.707 9.707 3.293 8.293 9 2.586l5.707 5.707-1.414 1.414L9 5.414z"});function SvgTextUppercase(e,t){var n=e.title,r=e.titleId,i=text_uppercase_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",text_uppercase_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,h)}var g=a.forwardRef(SvgTextUppercase);n.p;function background_colour_extends(){return(background_colour_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function background_colour_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function background_colour_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var j=a.createElement("path",{d:"M13 8H2V2h11v2h3v7h-6v5H8V9h6V6h-1v2zm-2-4H4v2h7V4z"});function SvgBackgroundColour(e,t){var n=e.title,r=e.titleId,i=background_colour_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",background_colour_extends({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,j)}var v=a.forwardRef(SvgBackgroundColour);n.p;function bold_extends(){return(bold_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function bold_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function bold_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var O=a.createElement("path",{d:"M9.5 16H5V2h3.5a3.5 3.5 0 012.92 5.43A4.5 4.5 0 019.5 16zM7 14h2.5a2.5 2.5 0 100-5H7v5zm0-7h1.5a1.5 1.5 0 000-3H7v3z"});function SvgBold(e,t){var n=e.title,r=e.titleId,i=bold_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",bold_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,O)}var T=a.forwardRef(SvgBold);n.p;function list_extends(){return(list_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function list_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function list_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var y=a.createElement("path",{d:"M4 16a2 2 0 110-4 2 2 0 010 4zm0-5a2 2 0 110-4 2 2 0 010 4zm0-5a2 2 0 110-4 2 2 0 010 4zm4-1V3h8v2H8zm0 5V8h8v2H8zm0 5v-2h8v2H8z"});function SvgList(e,t){var n=e.title,r=e.titleId,i=list_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",list_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,y)}var S=a.forwardRef(SvgList);n.p;function code_pre_extends(){return(code_pre_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function code_pre_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function code_pre_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var C=a.createElement("path",{d:"M4.414 9l3.293 3.293-1.414 1.414L1.586 9l4.707-4.707 1.414 1.414L4.414 9zm9.172 0l-3.293-3.293 1.414-1.414L16.414 9l-4.707 4.707-1.414-1.414L13.586 9z"});function SvgCodePre(e,t){var n=e.title,r=e.titleId,i=code_pre_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",code_pre_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,C)}var A=a.forwardRef(SvgCodePre);n.p;function font_extends(){return(font_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function font_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function font_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var E=a.createElement("path",{d:"M6.866 10h4.268L9 6.088 6.866 10zm5.359 2h-6.45l-1.897 3.479-1.756-.958L9 1.911l6.878 12.61-1.756.958L12.225 12z"});function SvgFont(e,t){var n=e.title,r=e.titleId,i=font_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",font_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,E)}var w=a.forwardRef(SvgFont);n.p;function title_size_extends(){return(title_size_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function title_size_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function title_size_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var _=a.createElement("path",{d:"M13 5v10h-2V5H7V3h10v2h-4zM6 9v6H4V9H1V7h8v2H6z"});function SvgTitleSize(e,t){var n=e.title,r=e.titleId,i=title_size_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",title_size_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,_)}var I=a.forwardRef(SvgTitleSize);n.p;function remove_format_extends(){return(remove_format_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function remove_format_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function remove_format_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var x=a.createElement("path",{d:"M7 5v10H5V5H1V3h10v2H7zm6 4.586l2.293-2.293 1.414 1.414L14.414 11l2.293 2.293-1.414 1.414L13 12.414l-2.293 2.293-1.414-1.414L11.586 11 9.293 8.707l1.414-1.414L13 9.586z"});function SvgRemoveFormat(e,t){var n=e.title,r=e.titleId,i=remove_format_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",remove_format_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,x)}var k=a.forwardRef(SvgRemoveFormat);n.p;function color_extends(){return(color_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function color_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function color_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var N=a.createElement("path",{d:"M9 17a6 6 0 01-6-6c0-2.182 1.774-5.021 5.277-8.69L9 1.552l.723.758C13.226 5.979 15 8.818 15 11a6 6 0 01-6 6zm-4-6a4 4 0 108 0c0-1.38-1.321-3.604-4-6.535C6.321 7.395 5 9.619 5 11zm4 3v-2a1 1 0 001-1h2a3 3 0 01-3 3z"});function SvgColor(e,t){var n=e.title,r=e.titleId,i=color_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",color_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,N)}var R=a.forwardRef(SvgColor),F=(n.p,n(559));function compress_extends(){return(compress_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function compress_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function compress_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var M=a.createElement("path",{d:"M7.586 15H4v-2h7v7H9v-3.586l-4.293 4.293-1.414-1.414L7.586 15zm8.828-6H20v2h-7V4h2v3.586l4.293-4.293 1.414 1.414L16.414 9z"});function SvgCompress(e,t){var n=e.title,r=e.titleId,i=compress_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",compress_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,M)}var D=a.forwardRef(SvgCompress);n.p;function horizontal_line_extends(){return(horizontal_line_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function horizontal_line_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function horizontal_line_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var L=a.createElement("path",{d:"M2 10V8h14v2H2zm4-3H4V3h10v4h-2V5H6v2zm6 4h2v4H4v-4h2v2h6v-2z"});function SvgHorizontalLine(e,t){var n=e.title,r=e.titleId,i=horizontal_line_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",horizontal_line_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,L)}var P=a.forwardRef(SvgHorizontalLine);n.p;function link_extends(){return(link_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function link_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function link_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var U=a.createElement("path",{d:"M6 10V8h6v2H6zm2-6v2H6a3 3 0 100 6h2v2H6A5 5 0 016 4h2zm2 10v-2h2a3 3 0 000-6h-2V4h2a5 5 0 010 10h-2z"});function SvgLink(e,t){var n=e.title,r=e.titleId,i=link_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",link_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,U)}var B=a.forwardRef(SvgLink);n.p;function snippets_extends(){return(snippets_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function snippets_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function snippets_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var H=a.createElement("path",{d:"M5 15h14V5H5v10zM21 3v18H3V3h18zm-2 14H5v2h14v-2zM7 9V7h10v2H7zm0 4v-2h6v2H7z"});function SvgSnippets(e,t){var n=e.title,r=e.titleId,i=snippets_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",snippets_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,H)}var G=a.forwardRef(SvgSnippets);n.p;function table_extends(){return(table_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function table_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function table_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var W=a.createElement("path",{d:"M8 4H4v4h4V4zm2 0v4h4V4h-4zM8 14v-4H4v4h4zm2 0h4v-4h-4v4zm6-12v14H2V2h14z"});function SvgTable(e,t){var n=e.title,r=e.titleId,i=table_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",table_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,W)}var z=a.forwardRef(SvgTable);n.p;function italic_extends(){return(italic_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function italic_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function italic_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var V=a.createElement("path",{d:"M6.28 14L9.612 4H7V2h8v2h-3.28L8.388 14H11v2H3v-2h3.28z"});function SvgItalic(e,t){var n=e.title,r=e.titleId,i=italic_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",italic_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,V)}var J=a.forwardRef(SvgItalic);n.p;function list_num_extends(){return(list_num_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function list_num_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function list_num_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Y=a.createElement("path",{d:"M2 5V3h2v2H2zm0 5V8h2v2H2zm0 5v-2h2v2H2zM6 5V3h10v2H6zm0 5V8h10v2H6zm0 5v-2h10v2H6z"});function SvgListNum(e,t){var n=e.title,r=e.titleId,i=list_num_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",list_num_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Y)}var q=a.forwardRef(SvgListNum);n.p;function strikethrough_extends(){return(strikethrough_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function strikethrough_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function strikethrough_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var K=a.createElement("path",{d:"M9 10H2V8h2.657A3.402 3.402 0 014 6c0-2.282 2.29-4 5-4s5 1.718 5 4h-2c0-1.032-1.29-2-3-2s-3 .968-3 2 1.29 2 3 2h7v2h-2.657A3.4 3.4 0 0114 12c0 2.282-2.29 4-5 4s-5-1.718-5-4h2c0 1.032 1.29 2 3 2s3-.968 3-2-1.29-2-3-2z"});function SvgStrikethrough(e,t){var n=e.title,r=e.titleId,i=strikethrough_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",strikethrough_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,K)}var X=a.forwardRef(SvgStrikethrough);n.p;function paragraph_extends(){return(paragraph_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function paragraph_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function paragraph_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Q=a.createElement("path",{d:"M10 4v12H8v-5H6.5a4.5 4.5 0 010-9H16v2h-2v12h-2V4h-2zM8 9V4H6.5a2.5 2.5 0 000 5H8z"});function SvgParagraph(e,t){var n=e.title,r=e.titleId,i=paragraph_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",paragraph_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Q)}var Z=a.forwardRef(SvgParagraph);n.p;function underline_extends(){return(underline_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function underline_objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function underline_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var $=a.createElement("path",{d:"M3 16v-2h12v2H3zM4 3h2v5a3 3 0 106 0V3h2v5A5 5 0 014 8V3z"});function SvgUnderline(e,t){var n=e.title,r=e.titleId,i=underline_objectWithoutProperties(e,["title","titleId"]);return a.createElement("svg",underline_extends({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,$)}var ee,te,ne=a.forwardRef(SvgUnderline),re=(n.p,n(560));!function(e){e.ALIGN_CENTER="ALIGN_CENTER",e.ALIGN_JUSTIFY="ALIGN_JUSTIFY",e.ALIGN_LEFT="ALIGN_LEFT",e.ALIGN_RIGHT="ALIGN_RIGHT",e.ALL_LOWERCASE="ALL_LOWERCASE",e.ALL_UPPERCASE="ALL_UPPERCASE",e.BACKGROUND_COLOUR="BACKGROUND_COLOUR",e.BOLD="BOLD",e.BULLETED_LIST="BULLETED_LIST",e.CODE_VIEW="CODE_VIEW",e.FONT_FAMILY="FONT_FAMILY",e.FONT_SIZE="FONT_SIZE",e.CLEAR_FORMATTING="CLEAR_FORMATTING",e.COLOR="COLOR",e.FULL_SCREEN="FULL_SCREEN",e.FULL_SCREEN_EXIT="FULL_SCREEN_EXIT",e.INSERT_HR="INSERT_HR",e.INSERT_LINK="INSERT_LINK",e.INSERT_SNIPPET="INSERT_SNIPPET",e.INSERT_TABLE="INSERT_TABLE",e.ITALIC="ITALIC",e.NUMBERED_LIST="NUMBERED_LIST",e.STRIKETHROUGH="STRIKETHROUGH",e.TEXT_FORMAT="TEXT_FORMAT",e.UNDERLINE="UNDERLINE",e.PLAIN_TEXT_MODE="PLAIN_TEXT_MODE"}(te||(te={}));var ae=(ee={},Object(r.a)(ee,te.ALIGN_CENTER,o),Object(r.a)(ee,te.ALIGN_JUSTIFY,s),Object(r.a)(ee,te.ALIGN_LEFT,u),Object(r.a)(ee,te.ALIGN_RIGHT,b),Object(r.a)(ee,te.ALL_LOWERCASE,m),Object(r.a)(ee,te.ALL_UPPERCASE,g),Object(r.a)(ee,te.BACKGROUND_COLOUR,v),Object(r.a)(ee,te.BOLD,T),Object(r.a)(ee,te.BULLETED_LIST,S),Object(r.a)(ee,te.CODE_VIEW,A),Object(r.a)(ee,te.FONT_FAMILY,w),Object(r.a)(ee,te.FONT_SIZE,I),Object(r.a)(ee,te.CLEAR_FORMATTING,k),Object(r.a)(ee,te.COLOR,R),Object(r.a)(ee,te.FULL_SCREEN,F.a),Object(r.a)(ee,te.FULL_SCREEN_EXIT,D),Object(r.a)(ee,te.INSERT_HR,P),Object(r.a)(ee,te.INSERT_LINK,B),Object(r.a)(ee,te.INSERT_SNIPPET,G),Object(r.a)(ee,te.INSERT_TABLE,z),Object(r.a)(ee,te.ITALIC,J),Object(r.a)(ee,te.NUMBERED_LIST,q),Object(r.a)(ee,te.STRIKETHROUGH,X),Object(r.a)(ee,te.TEXT_FORMAT,Z),Object(r.a)(ee,te.UNDERLINE,ne),Object(r.a)(ee,te.PLAIN_TEXT_MODE,re.a),ee);function getEditorIcon(e){return ae[e]}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return g}));var r=n(39),a=n.n(r),i=n(54),o=n(53),c=n(2),s=n(42),l=n(214),u=n(142),d=n(370),b=n(51),p=n(323),m=c.e(),h=Object(o.createAsyncThunk)("lite/message/fetch",function(){var e=Object(i.a)(a.a.mark((function _callee(e,t){var n;return a.a.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return n=t.rejectWithValue,r.prev=1,r.next=4,new l.b("".concat(e),(function(e){return Object(d.b)(e.data,new u.c(e.included))})).get();case 4:return r.abrupt("return",r.sent);case 7:return r.prev=7,r.t0=r.catch(1),r.abrupt("return",n(Object(s.b)("",r.t0 instanceof l.a?r.t0.status:void 0)));case 10:case"end":return r.stop()}}),_callee,null,[[1,7]])})));return function(t,n){return e.apply(this,arguments)}}()),g=Object(o.createAsyncThunk)("lite/message/fetch",function(){var e=Object(i.a)(a.a.mark((function _callee2(e,t){var n,r;return a.a.wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:return n=t.rejectWithValue,a.prev=1,r=Object(b.m)("shareable-message/".concat(e)),a.next=5,new l.b(e,(function(e){return Object(d.b)(e,new u.c(e.included))})).setUrl(r).get({query:{include:"document,address,comment,public-comment,share-external"}});case 5:return a.abrupt("return",a.sent);case 8:return a.prev=8,a.t0=a.catch(1),a.abrupt("return",n(Object(s.b)("",a.t0 instanceof l.a?a.t0.status:void 0)));case 11:case"end":return a.stop()}}),_callee2,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}()),j=Object(o.createSlice)({name:"message",initialState:m,reducers:{},extraReducers:function extraReducers(e){e.addMatcher(Object(o.isPending)(h,g),(function(e,t){return c.g(e,t.meta.arg).isNotLoading()?c.r(e,t.meta.arg):e})).addMatcher(Object(o.isFulfilled)(h,g),(function(e,t){return c.o(e,t.meta.arg,Object(p.a)(t.payload,"publicComments"))})).addMatcher(Object(o.isRejected)(h,g),(function(e,t){var n;return 401===(null===(n=t.payload)||void 0===n?void 0:n.status)?e:c.f(e,t.meta.arg,t.payload)}))}});t.a=j.reducer},function(e,t,n){"use strict";n.d(t,"b",(function(){return buildContactCardDisplay})),n.d(t,"a",(function(){return re}));var r=n(23),a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=n(28),d=n(42),b=n(532),p=n(4),m=n(643),h=n(723),g=n(724),j=n(1467),v=n(1443),O=n(1468),T=n(1462),y=n(9),S=n(31),C=n(2),A=n(227),E=n.n(A),w=n(40),_=n(19),I=n(44),x=n(25),k=(n(1223),function(e){Object(o.a)(ContactCardSearchExisting,e);var t=Object(c.a)(ContactCardSearchExisting);function ContactCardSearchExisting(e){var n;return Object(a.a)(this,ContactCardSearchExisting),(n=t.call(this,e)).autoSuggestRef=void 0,n.renderSearch=function(){var e=n.state.value,t=C.m(C.g(n.props.nameContactStore,e),(function(e){return C.g(n.props.contactStore,e)})).orElse([]);return Object(s.jsx)("div",{className:"c-contact-card-search-existing",children:Object(s.jsxs)("div",{className:"c-search-bar",children:[Object(s.jsx)(_.a,{glyph:Object(y.e)(y.c.SEARCH),className:"c-search-bar__icon"}),Object(s.jsx)(E.a,{suggestions:t,onSuggestionsFetchRequested:w.a,onSuggestionsClearRequested:w.a,onSuggestionSelected:n.onSuggestionSelected,getSuggestionValue:function getSuggestionValue(){return e},renderSuggestion:n.renderSuggestion,inputProps:{placeholder:"Search for an existing contact",value:e,onChange:n.onChange},ref:n.autoSuggestRef})]})})},n.renderSuggestion=function(e){return n.renderContactBubble(e,!1)},n.renderSelection=function(e){return Object(s.jsx)("div",{className:"c-contact-card-search-existing__selected",children:n.renderContactBubble(e,!0)})},n.renderContactBubble=function(e,t){var r,a;return Object(s.jsxs)("div",{className:"c-message-address c--recognized",children:[t&&Object(s.jsxs)("button",{className:"c-message-address__remove",onClick:n.onSuggestionClear,children:[Object(s.jsx)(_.a,{glyph:Object(y.e)(y.c.CLEAR),size:"small"}),Object(s.jsx)("span",{className:"u-clip",children:"Delete"})]}),Object(s.jsx)("span",{className:"c-message-address__content",children:e.attributes.firstName||e.attributes.lastName?Object(I.c)(null!==(r=e.attributes.firstName)&&void 0!==r?r:"",null!==(a=e.attributes.lastName)&&void 0!==a?a:""):e.attributes.emailAddresses})]})},n.onChange=function(e,t){var r=t.newValue;n.setState({value:r}),n.props.onInput(r)},n.onSuggestionSelected=function(e,t){var r=t.suggestion;n.setState({value:""}),n.props.onSelect(x.a.of(r))},n.onSuggestionClear=function(){return n.props.onSelect(x.a.empty())},n.state={value:""},n.autoSuggestRef=l.createRef(),n}return Object(i.a)(ContactCardSearchExisting,[{key:"componentDidMount",value:function componentDidMount(){var e,t;null===(e=this.autoSuggestRef.current)||void 0===e||null===(t=e.input)||void 0===t||t.focus()}},{key:"render",value:function render(){return this.props.contact.map(this.renderSelection).orElse(this.renderSearch())}}]),ContactCardSearchExisting}(l.PureComponent)),N=n(174),R=n(1465),F=n(1466),M=n(24),D=n.n(M);n(1224);function ContactCardComponent(e){return Object(s.jsx)(R.a,{boundariesElement:"window",className:D()("c-contact-card",{"c--recognized":e.isRecognized}),hideArrow:!0,innerClassName:"c-contact-card__inner",isOpen:e.isOpen,placement:"bottom-start",target:e.id,toggle:e.toggle,trigger:"legacy",children:Object(s.jsx)(F.a,{children:e.children})})}var L=l.memo(ContactCardComponent),P=n(34),U=n(15),B=n(8),H=function(e){Object(o.a)(ContactCardUnrecognized,e);var t=Object(c.a)(ContactCardUnrecognized);function ContactCardUnrecognized(e){var n,i,o;Object(a.a)(this,ContactCardUnrecognized),(o=t.call(this,e)).addToAddressBook=function(){o.toggleUpdateCreateButtons(),o.props.trackEvent("Add to Address Book")},o.updateExistingContact=function(){o.toggleUpdateExistingButtons(),o.props.trackEvent("Update existing contact")},o.toggleUpdateCreateButtons=function(){o.setState((function(e){return{displayUpdateCreateBtns:!e.displayUpdateCreateBtns}}))},o.toggleUpdateExistingButtons=function(){o.setState((function(e){return{displayUpdateExistingBtns:!e.displayUpdateExistingBtns,displayUpdateExistingContact:!e.displayUpdateExistingBtns}}))},o.toggleDisplayAddForm=function(){o.setState((function(e){return{displayAddForm:!e.displayAddForm}}))},o.setFirstNameInput=function(e){o.setState({firstNameInput:e.target.value})},o.setLastNameInput=function(e){o.setState({lastNameInput:e.target.value})},o.setEmailInput=function(e){o.setState({emailInput:e.target.value})},o.setCompanyInput=function(e){o.setState({companyInput:e.target.value})},o.setTeamInput=function(e){o.setState({teamInput:e.target.value})},o.handlePhoneNumberChange=function(e,t){var n=t.target.value;o.setState((function(t){var a=Object(r.a)(t.phoneInputs);return a[e]=Object(p.a)(Object(p.a)({},a[e]),{},{number:n}),a.length-1===e&&a.push({type:N.a.OFFICE,number:""}),Object(p.a)(Object(p.a)({},t),{},{phoneInputs:a})}))},o.handlePhoneTypeChange=function(e,t){var n=t.target.value;o.setState((function(t){var a=Object(r.a)(t.phoneInputs);return a[e]=Object(p.a)(Object(p.a)({},a[e]),{},{type:n}),Object(p.a)(Object(p.a)({},t),{},{phoneInputs:a})}))},o.onCreateClick=function(){var e=o.state.phoneInputs.filter((function(e){return""!==e.number.trim()}));o.props.createContact(o.state.firstNameInput,o.state.lastNameInput,o.state.companyInput,o.state.emailInput,o.state.teamInput,e),o.setState({inProgressCreateBtn:!0}),o.props.toggle()},o.onUpdateClick=function(){o.state.contactInput.ifPresent((function(e){if(o.props.address.email)return o.props.addEmailToContact(e,o.props.address.email)}))},o.onSearch=function(){o.searchFrom(),o.props.trackEvent("Contact Search")},o.searchFrom=function(){var e,t=null!==(e=o.props.address.email)&&void 0!==e?e:o.props.address.name;t&&o.props.searchEmailFrom(t)},o.setContactInput=function(e){o.setState({contactInput:e})},o.handleCancelCreateContact=function(){o.handleCreateContact(),o.toggleDisplayAddForm()},o.handleCreateContact=function(){o.props.toggle(),o.toggleCreateContactModal(),o.props.trackEvent("Create new Contact")},o.toggleCreateContactModal=function(){o.setState((function(e){return{createContactModalOpen:!e.createContactModalOpen}}))};var c=(null!==(n=e.address.name)&&void 0!==n?n:"").split(" "),s=Object(b.a)(c),l=s[0],u=s.slice(1);return o.state={displayAddForm:!1,displayUpdateExistingContact:!1,displayCreateBtns:!1,displayUpdateCreateBtns:!1,displayUpdateExistingBtns:!1,displaySearchExistingContacts:!1,contactInput:x.a.empty(),firstNameInput:l,lastNameInput:u.join(" "),emailInput:null!==(i=e.address.email)&&void 0!==i?i:"",companyInput:"",teamInput:"",phoneInputs:[{type:N.a.OFFICE,number:""}],inProgressCreateBtn:!1,createContactModalOpen:!1},o}return Object(i.a)(ContactCardUnrecognized,[{key:"render",value:function render(){var e=this.props.address,t=e.name,n=e.email,r=null!==t&&void 0!==t?t:"",a=null!==n&&void 0!==n?n:"unknown";return this.state.displayUpdateExistingContact?Object(s.jsxs)(L,{id:this.props.id,isRecognized:!1,isOpen:this.props.isPopoverOpen,toggle:this.props.toggle,children:[Object(s.jsx)("div",{className:"c-contact-card__header",children:Object(s.jsx)(k,{contactStore:this.props.contactStore,nameContactStore:this.props.nameContactStore,onInput:this.props.searchContactName,contact:this.state.contactInput,onSelect:this.setContactInput})}),Object(s.jsxs)("div",{className:"u-pt-sm u-mb-md",children:[Object(s.jsx)("span",{className:"u-fw-b",children:"Add New Address"}),Object(s.jsx)("br",{}),a]}),Object(s.jsx)("div",{className:"c-contact-card__footer",children:this.renderUpdateExistingButtons()})]}):Object(s.jsxs)(s.Fragment,{children:[Object(s.jsxs)(L,{id:this.props.id,isRecognized:!1,isOpen:this.props.isPopoverOpen,toggle:this.props.toggle,children:[Object(s.jsxs)("div",{className:"u-pt-sm u-mb-md",children:[r.length>0&&Object(s.jsxs)("span",{className:"u-mr-sm",children:[r," "]}),Object(s.jsxs)("span",{children:["<",a,">"]})]}),Object(s.jsxs)("div",{className:"c-contact-card__footer",children:[this.state.displayUpdateCreateBtns&&this.renderUpdateCreateButtons(),this.state.displayUpdateExistingBtns&&this.renderUpdateExistingButtons(),!this.state.displayUpdateCreateBtns&&!this.state.displayCreateBtns&&!this.state.displayUpdateExistingBtns&&this.renderAddButtons()]})]}),this.renderAddNewContactModal()]})}},{key:"renderAddButtons",value:function renderAddButtons(){return Object(s.jsxs)(s.Fragment,{children:[this.props.display===B.d.READ_WRITE&&Object(s.jsx)(P.a,{buttonStyle:"secondary",onClick:this.addToAddressBook,children:"Add to Address Book"}),Object(s.jsx)(S.a,{className:"u-mr-md u-self-center",buttonContent:"Search",disabled:!1,iconGlyph:Object(y.e)(y.c.SEARCH),onClick:this.onSearch,dataTestId:"searchButton"})]})}},{key:"renderUpdateCreateButtons",value:function renderUpdateCreateButtons(){return Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)(P.a,{buttonStyle:"link",onClick:this.toggleUpdateCreateButtons,children:"Cancel"}),Object(s.jsxs)("div",{className:"u-flex",children:[Object(s.jsx)(P.a,{className:"u-mr-sm",onClick:this.updateExistingContact,buttonStyle:"secondary",children:"Update Existing"}),Object(s.jsx)(P.a,{buttonStyle:"secondary",onClick:this.handleCreateContact,children:"Create New"})]})]})}},{key:"renderUpdateExistingButtons",value:function renderUpdateExistingButtons(){return Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)(P.a,{buttonStyle:"link",onClick:this.toggleUpdateExistingButtons,children:"Cancel"}),Object(s.jsx)("div",{className:"u-flex",children:Object(s.jsx)(P.a,{buttonStyle:"secondary",disabled:this.state.contactInput.isEmpty(),onClick:this.onUpdateClick,children:"Update"})})]})}},{key:"renderAddNewContactModal",value:function renderAddNewContactModal(){var e=this,t=Object(s.jsx)(S.a,{buttonContent:"Close",iconGlyph:Object(y.e)(y.c.CLEAR),onClick:this.handleCancelCreateContact});return Object(s.jsxs)(m.a,{wrapClassName:"c--modal-wrapper",className:"c-modal c--scroll",isOpen:this.state.createContactModalOpen,toggle:this.toggleCreateContactModal,zIndex:"1070",children:[Object(s.jsx)(h.a,{toggle:this.handleCancelCreateContact,close:t,children:"Create New Contact"}),Object(s.jsx)(g.a,{children:Object(s.jsxs)(j.a,{children:[Object(s.jsxs)(v.a,{children:[Object(s.jsx)(O.a,{for:"firstName",className:"u-fw-b",children:"First Name"}),Object(s.jsx)(T.a,{type:"text",name:"firstName",id:"firstNameInput",value:this.state.firstNameInput,onChange:this.setFirstNameInput})]}),Object(s.jsxs)(v.a,{children:[Object(s.jsx)(O.a,{for:"lastName",className:"u-fw-b",children:"Last Name"}),Object(s.jsx)(T.a,{type:"text",name:"lastName",id:"lastNameInput",value:this.state.lastNameInput,onChange:this.setLastNameInput})]}),Object(s.jsxs)(v.a,{children:[Object(s.jsx)(O.a,{for:"addCompany",className:"u-fw-b",children:"Company"}),Object(s.jsx)(T.a,{type:"text",name:"company",id:"companyInput",value:this.state.companyInput,onChange:this.setCompanyInput})]}),Object(s.jsxs)(v.a,{children:[Object(s.jsx)(O.a,{for:"addEmail",className:"u-fw-b",children:"Email Address"}),Object(s.jsx)(T.a,{disabled:!0,type:"email",name:"email",id:"emailInput",value:this.state.emailInput,onChange:this.setEmailInput})]}),Object(s.jsxs)(v.a,{children:[Object(s.jsx)(O.a,{for:"addTeam",className:"u-fw-b",children:U.b.t(U.a.TEAM)}),Object(s.jsx)(T.a,{type:"text",name:"team",id:"teamInput",value:this.state.teamInput,onChange:this.setTeamInput})]}),this.state.phoneInputs.map((function(t,n){return Object(s.jsxs)("div",{className:"u-flex",children:[Object(s.jsxs)(v.a,{className:"u-flex-auto u-mr-md",children:[Object(s.jsx)(O.a,{for:"addPhone",className:"u-fw-b",children:"Phone"}),Object(s.jsx)(T.a,{type:"number",name:"number",id:"phoneInput".concat(n),value:t.number,onChange:function onChange(t){return e.handlePhoneNumberChange(n,t)}})]}),Object(s.jsxs)(v.a,{children:[Object(s.jsx)(O.a,{for:"addPhoneType",className:"u-fw-b",children:"Type"}),Object(s.jsxs)(T.a,{type:"select",name:"type",id:"phoneType".concat(n),onChange:function onChange(t){return e.handlePhoneTypeChange(n,t)},children:[Object(s.jsx)("option",{value:N.a.OFFICE,children:"Office"}),Object(s.jsx)("option",{value:N.a.HOME,children:"Home"}),Object(s.jsx)("option",{value:N.a.MOBILE,children:"Mobile"}),Object(s.jsx)("option",{value:N.a.SATELLITE,children:"Satellite"})]})]})]},n)}))]})}),Object(s.jsxs)("div",{className:"c-contact-card__footer",children:[Object(s.jsx)(P.a,{buttonStyle:"link",onClick:this.handleCancelCreateContact,children:"Cancel"}),Object(s.jsx)(P.a,{onClick:this.onCreateClick,disabled:this.state.inProgressCreateBtn,children:"Create"})]})]})}}]),ContactCardUnrecognized}(l.PureComponent),G=n(17),W=n(82),z=n(30),V=n(264),J=n(792),Y=function(e){Object(o.a)(ContactCardRecognized,e);var t=Object(c.a)(ContactCardRecognized);function ContactCardRecognized(){var e;Object(a.a)(this,ContactCardRecognized);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).onGoToAddressBook=function(){e.props.trackEvent("Go to address book")},e.onSearch=function(){e.props.trackEvent("Contact Search"),e.props.searchFrom(e.props.email)},e}return Object(i.a)(ContactCardRecognized,[{key:"render",value:function render(){var e,t=this,n=this.props,r=n.email,a=n.contact,i=((null===a.attributes.firstName?"":a.attributes.firstName)+" "+(null===a.attributes.lastName?"":a.attributes.lastName)).trim(),o=Object(V.a)(),c=this.props.isMuted||this.props.isMuting,l=this.props.isMuting||this.props.isUnMuting;return Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)("div",{className:"u-pt-sm u-mb-md",children:Object(s.jsxs)("div",{className:"c-contact-card__max",children:[i&&Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)("span",{className:"u-fs-xlg",children:i}),Object(s.jsx)("br",{})]}),a.attributes.company&&Object(s.jsx)("div",{className:"u-text-medium",children:a.attributes.company}),a.attributes.emailAddresses.map((function(e,t){return r===e?Object(s.jsx)("div",{className:"u-fw-b",children:e},t):Object(s.jsx)("div",{children:e},t)})),a.attributes.team&&Object(s.jsxs)("div",{children:[Object(s.jsx)("span",{className:"c-contact-card__label",children:U.b.t(U.a.TEAM)}),a.attributes.team]}),null===(e=a.attributes.phoneNumbers)||void 0===e?void 0:e.map((function(e,t){return Object(s.jsxs)("div",{className:"u-flex u-items-center",children:[e.type&&Object(s.jsx)("span",{className:"c-contact-card__label",children:e.type}),Object(s.jsx)(P.a,{buttonStyle:"link",size:"small",url:"tel:".concat(e.number),children:e.number})]},t)})),c&&Object(s.jsxs)("div",{className:"c-mute-info",children:[Object(s.jsx)("strong",{children:"Muted:"})," all messages from this sender have been automatically archived for you only."]})]})}),Object(s.jsxs)("div",{className:"c-contact-card__footer",children:[Object(s.jsx)(W.a,{className:"c-button c--secondary",to:{pathname:G.a.COMPOSE_NEW_MESSAGE,search:this.populateAddress()},onClick:function onClick(){return t.props.trackEvent("Compose New Message")},children:"Compose New"}),this.props.muteEnabled&&Object(s.jsx)(P.a,{title:c?"Unmute":"Mute",className:"c-button ml-auto",buttonStyle:"link",onClick:function onClick(){l||(t.props.isMuted?(t.props.unMute(t.props.currentUser),t.props.trackEvent("Mute contact")):(t.props.mute(t.props.currentUser),t.props.trackEvent("Unmute contact")))},"data-testid":"muteButton",children:c?"Unmute":"Mute"}),Object(s.jsxs)("div",{className:"u-flex u-items-center",children:[this.props.followEnabled&&Object(s.jsx)(S.a,{buttonContent:this.props.isFollowed?"UnFollow":"Follow",className:D()({"c--selected c--following":this.props.isFollowed}),iconGlyph:Object(y.e)(y.c.FOLLOW),onClick:function onClick(){t.props.followRequestInProgress||(t.props.isFollowed?t.props.unFollow(t.props.contact.id):t.props.follow(t.props.contact.id))}}),Object(s.jsx)(S.a,{buttonContent:"Search",iconGlyph:Object(y.e)(y.c.SEARCH),onClick:this.onSearch,dataTestId:"searchButton"}),this.props.display===B.d.READ_WRITE&&Object(s.jsx)(J.a,{className:"u-mr-md",linkText:"Address Book",iconGlyph:Object(y.e)(y.c.CONTACTS),linkHref:"".concat(o,"/contacts"),targetBlank:!0,onClick:this.onGoToAddressBook})]})]})]})}},{key:"populateAddress",value:function populateAddress(){var e=Object(z.parse)(location.search);return e.contactId=this.props.contact.id,Object(z.stringify)(e)}}]),ContactCardRecognized}(l.PureComponent),q=n(26),K=(n(1241),function(e){Object(o.a)(ContactCardSkeleton,e);var t=Object(c.a)(ContactCardSkeleton);function ContactCardSkeleton(){return Object(a.a)(this,ContactCardSkeleton),t.apply(this,arguments)}return Object(i.a)(ContactCardSkeleton,[{key:"render",value:function render(){return Object(s.jsx)("div",{className:"c-contact-card-skeleton",children:Object(s.jsx)("span",{className:"u-clip",children:"Loading"})})}}]),ContactCardSkeleton}(l.PureComponent)),X=n(49),Q=n(13),Z=n(29),$=n(107);function buildContactCardDisplay(e){return e?B.d.READ_WRITE:B.d.READ_ONLY}var ee=function(e){Object(o.a)(ContactCardContainerComponent,e);var t=Object(c.a)(ContactCardContainerComponent);function ContactCardContainerComponent(){var e;Object(a.a)(this,ContactCardContainerComponent);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).searchEmailFrom=function(t){return e.props.currentUser&&e.props.searchEmailFrom(t,e.props.loc,e.props.currentUser)},e.searchEmailFromCurrentEmail=function(){if(e.props.address.email)return e.searchEmailFrom(e.props.address.email)},e}return Object(i.a)(ContactCardContainerComponent,[{key:"UNSAFE_componentWillReceiveProps",value:function UNSAFE_componentWillReceiveProps(e){e.isPopoverOpen&&!this.props.isPopoverOpen&&this.props.contacts.isNotLoading()&&this.props.address.email&&this.props.loadContact(this.props.address.email.toLowerCase())}},{key:"render",value:function render(){var e=this;if(!this.props.contacts.isPresent())return Object(s.jsx)(L,{id:this.props.id,isRecognized:!1,isOpen:this.props.isPopoverOpen,toggle:this.props.toggle,children:Object(s.jsx)(K,{})});var t=this.props.contacts.orElse([]);if(0===t.length)return Object(s.jsx)(H,{address:this.props.address,contactStore:this.props.contactStore,nameContactStore:this.props.nameContactStore,createContact:this.props.createContact,addEmailToContact:this.props.addEmailToContact,searchEmailFrom:this.searchEmailFrom,searchContactName:this.props.searchContactName,id:this.props.id,isPopoverOpen:this.props.isPopoverOpen,toggle:this.props.toggle,display:this.props.display,trackEvent:this.props.trackEvent});if(t.length>1)return Object(s.jsxs)(L,{id:this.props.id,isRecognized:!0,isOpen:this.props.isPopoverOpen,toggle:this.props.toggle,children:[Object(s.jsxs)("div",{className:"u-pt-sm u-mb-md",children:[Object(s.jsxs)("p",{children:["<",this.props.address.email,">"]}),Object(s.jsx)("p",{className:"u-fw-b",children:"Multiple contact matches"}),Object(s.jsx)("p",{children:"Cannot display a contact card if it matches more than one contact."})]}),Object(s.jsx)("div",{className:"c-contact-card__footer",children:Object(s.jsx)("div",{className:"u-flex u-justify-end u-w-100",children:Object(s.jsx)(S.a,{className:"u-mr-md",buttonContent:"Search",iconGlyph:Object(y.e)(y.c.SEARCH),onClick:this.searchEmailFromCurrentEmail})})})]});if(this.props.address.email&&this.props.currentUser){var n=t[0],a=function contactInCollection(t){return e.props.mutedContactState.map(t).orElse([]).includes(n.id)};return Object(s.jsx)(L,{id:this.props.id,isRecognized:!0,isOpen:this.props.isPopoverOpen,toggle:this.props.toggle,children:Object(s.jsx)(Y,{email:this.props.address.email,contact:n,searchFrom:this.searchEmailFrom,display:this.props.display,currentUser:this.props.currentUser,isMuted:a((function(e){var t=e.muted;return Object(r.a)(t)})),isMuting:a((function(e){var t=e.muting;return Object(r.a)(t)})),isUnMuting:a((function(e){var t=e.unMuting;return Object(r.a)(t)})),mute:function mute(t){return e.props.muteContact(t,n)},unMute:function unMute(t){return e.props.unMuteContact(t,n)},isFollowed:this.props.followedContacts.includes(n.id),followRequestInProgress:"LOADING"===this.props.followedContactStore.fetchStatus[n.id],follow:function follow(){return e.props.follow(n.id)},unFollow:function unFollow(){return e.props.unFollow(n.id)},followEnabled:this.props.followedEnabled,muteEnabled:this.props.mutedContactState.isPresent()&&this.props.muteEnabled,trackEvent:this.props.trackEvent})})}return Object(s.jsx)("span",{className:"unreachable"})}}]),ContactCardContainerComponent}(l.PureComponent),te=Object(q.b)([function(e,t){return e.entities.contact},function(e,t){return e.entities.emailContact},function(e,t){return e.entities.nameContact},function(e,t){return C.g(e.entities.mutedContact,C.a)},function(e,t){return t.address.email},function(e,t){return e.router.location},function(e,t){return e.ui.featureFlags},function(e,t){return e.entities.followedContact}],(function(e,t,n,r,a,i,o,c){var s=a?C.g(t,a.toLowerCase()):d.a.notLoading();return{contacts:C.m(s,(function(t){return C.g(e,t)})),loc:i,contactStore:e,nameContactStore:n,mutedContactState:r,muteEnabled:o.MUTE_CONTACT,followedContacts:C.h(c),followedContactStore:c,followedEnabled:o.P2_ADDRESS_BOOK}})),ne={loadContact:function loadContact(e){return new X.V([e])},createContact:function createContact(e,t,n,r,a,i){var o={firstName:e,lastName:t,company:n,emailAddresses:[r],team:a,phoneNumbers:i};return new X.Q(r,o)},searchEmailFrom:function searchEmailFrom(e,t,n){return new $.c(Q.k.fromFilterTerm(new Q.n(e)),t,n)},searchContactName:function searchContactName(e){return new X.X(e)},addEmailToContact:function addEmailToContact(e,t){return new X.P(e,t)},muteContact:function muteContact(e,t){return new X.W(e.id,[t.id])},unMuteContact:function unMuteContact(e,t){return new X.Z(e.id,[t.id])},follow:function follow(e){return new X.T(e)},unFollow:function unFollow(e){return new X.Y(e)},trackEvent:function trackEvent(e){return new Z.a("Contact Card",e)}},re=Object(u.connect)(te,ne)(ee)},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(26),a=n(87),i=n(269),o=n(2),c=n(185),s=n(286),l=n(93),u=Object(r.b)([function(e){return Object(l.a)(e)},function(e,t){return Object(s.b)(e,t)},function(e){return b(e)},function(e){return Object(a.d)(e)}],(function(e,t,n,r){return e?p(t,n,r):r})),d=Object(r.b)([function(e){return Object(l.a)(e)},function(e,t){return Object(c.f)(e,t)},function(e){return b(e)},function(e){return Object(a.d)(e)}],(function(e,t,n,r){return e?p(t,n,r):r})),b=Object(r.b)([function(e){return e.entities.teamToJobReferences}],(function(e){return o.h(e)})),p=function calculateJobReferences(e,t,n){var r=new Map(t.map((function(e){return[e.teamId,e.jobReferenceIds]}))),a=new Map(n.map((function(e){return[e.id,e]})));return e.map((function(e){return Array.from(e.reduce((function(e,t){var n=r.get(t.id);return n&&n.forEach((function(t){return e.add(t)})),e}),new Set)).map((function(e){return a.get(e)})).filter(i.a)})).orElse([])},m={message:d,topic:u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return QuickActionsProvider})),n.d(t,"b",(function(){return b}));var r=n(23),a=n(21),i=n(0),o=n(1),c=n.n(o),s=n(40),l=[],u=c.a.createContext({quickActions:[],manageQuickAction:function manageQuickAction(){return s.a}}),d="true"===Object({NODE_ENV:"production",PUBLIC_URL:"/launch",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:"v20211204-0141",REACT_APP_API_URL:"/api",REACT_APP_PLATFORM_URL:"/platform",REACT_APP_PUBLIC_HOMEPAGE_URL:"https://www.sedna.com/",REACT_APP_TOS_URL:"https://www.sedna.com/terms-of-service",REACT_APP_PRIVACY_POLICY_URL:"https://www.sedna.com/privacy-notice/",REACT_APP_ABOUT_SEDNA_URL:"https://www.sedna.com/about/",REACT_APP_FROALA_KEY:"yDC5hD4C2A6D7B4C4gKTRe1CD1PGb1DESAb1Kd1EBH1Pd1TKoD6C5G5F4G2D3B2B4A5A4==",REACT_APP_AUTH0_DOMAIN_PRD:"sso.sednanetwork.com",REACT_APP_AUTH0_CLIENT_ID_PRD:"prgSyy6AAMW1C8LGzddEzB313tiem8Np",REACT_APP_AUTH0_DOMAIN_TST:"auth0.stage3systems.net",REACT_APP_AUTH0_CLIENT_ID_TST:"fY9rqnpItIgY7JyINtcsdCbSMG7rjl5B",REACT_APP_LAUNCH_DARKLY_PRD_KEY:"5b32f2d20d67623848de553a",REACT_APP_LAUNCH_DARKLY_STG_KEY:"5c37d49c265e662ebb19aed1",REACT_APP_LAUNCH_DARKLY_TST_TEST1_KEY:"5c3d38838d378b36cc99ac0e",REACT_APP_LAUNCH_DARKLY_TST_TEST2_KEY:"5c3d38918d378b36cc99ac16",REACT_APP_LAUNCH_DARKLY_TST_TEST3_KEY:"60930f369e0d230c9486943b",REACT_APP_LAUNCH_DARKLY_TST_TEST4_KEY:"5cd4a41f47dbad082a7a50c3",REACT_APP_LAUNCH_DARKLY_TST_TEST5_KEY:"5cd4a44747dbad082a7a50e3",REACT_APP_MIXPANEL_PRD_TOKEN:"97a11d22f209be36c43b77d2bf617878",REACT_APP_MIXPANEL_TST_TOKEN:"d50ef6e0d53999efeddd256b7796eab8"}).REACT_APP_CONTEXT_DEBUG&&c.a.lazy((function(){return n.e(18).then(n.bind(null,1448)).then((function(e){return e.ContextDevTool}))}));function QuickActionsProvider(e){var t=e.children,n=c.a.useState(l),s=Object(a.a)(n,2),b=s[0],p=s[1],m=Object(o.useCallback)((function(e){return p((function(t){return[].concat(Object(r.a)(t.filter((function(t){return t.name!==e.name}))),[e])})),function(){return p((function(t){return t.filter((function(t){return t.name!==e.name}))}))}}),[]);return Object(i.jsxs)(u.Provider,{value:{quickActions:b,manageQuickAction:m},children:[d&&Object(i.jsx)(d,{context:u,id:"QuickActionsContext",displayName:"Quick Actions Context"}),t]})}var b=function useQuickActionContext(){return c.a.useContext(u)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),a=function useInputBlurOnEscape(e){var t=Object(r.useCallback)((function(t){var n;"Escape"===t.key&&(null===(n=e.current)||void 0===n||n.blur())}),[e]);Object(r.useEffect)((function(){var n=e.current;return null===n||void 0===n||n.addEventListener("keyup",t),function(){null===n||void 0===n||n.removeEventListener("keyup",t)}}),[t,e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return DatePicker}));var r=n(21),a=n(0),i=n(1),o=n(578),c=n.n(o),s=n(579),l=n(470),u=n(88),d=(n(349),n(32)),b=n.n(d),p=n(18);function DatePicker(e){var t=e.date,n=e.onDateChange,o=e.minDate,d=void 0===o?u.c:o,m=e.maxDate,h=void 0===m?u.b:m,g=e.disableOutsideRange,j=e.editingToken,v=b()().endOf("day").toDate(),O=i.useState(t),T=Object(r.a)(O,2),y=T[0],S=T[1],C=(null===j||void 0===j?void 0:j.token)===p.S.AFTER_TIME,A=(null===j||void 0===j?void 0:j.token)===p.S.BEFORE_TIME,E=g?{before:C?u.c:d,after:A?v:h}:void 0;i.useEffect((function(){t&&(t>=d||t<=h)&&S(t)}),[t,h,d]);var w=i.useCallback((function(e){g&&(e<(C?u.c:d)||e>(A?v:h))||n(e)}),[v,g,C,A,h,d,n]),_=i.useCallback((function(e){var t=e.date,n=e.localeUtils;return Object(a.jsx)(l.a,{date:t,localeUtils:n,onChange:S})}),[]),I=i.useCallback((function(e){var t=e.previousMonth,n=e.nextMonth;return Object(a.jsx)(s.a,{showPreviousButton:!0,showNextButton:!0,previousMonth:t,nextMonth:n,onChange:S})}),[]);return Object(a.jsx)("div",{children:Object(a.jsx)(c.a,{onDayClick:w,month:y,fromMonth:d,toMonth:h,selectedDays:t,disabledDays:E,captionElement:_,navbarElement:I})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return y}));var r,a=n(0),i=n(24),o=n.n(i),c=(n(1222),n(915)),s=n(916),l=n(637),u=n(1444),d=n(63),b=n(19),p=n(9),m=n(190),h=n(15),g=n(151),j=n(71),v=n(12),O=n(8);!function(e){e.NAVBAR="NAVBAR",e.MODAL="MODAL",e.COMPOSE_HEADER="COMPOSE_HEADER"}(r||(r={}));var T=v.b.div.withConfig({displayName:"teams-dropdown__ComposeHeaderTeamToggle",componentId:"sc-103gq6z-0"})(["display:flex;align-items:center;cursor:pointer;"]),y=function TeamsDropdown(e){if(e.location===r.COMPOSE_HEADER){return Object(a.jsx)(g.a,{dataTestId:"message-compose-teams-dropdown",renderToggle:function renderToggle(t){var n=t.onClick,r=t.testId;return Object(a.jsxs)(T,{onClick:n,"data-testid":r,children:[Object(a.jsx)(m.a,{id:"from-address-pane",address:e.fromEmail?e.fromEmail:{},recognized:O.a.IN_ADDRESS_BOOK,contactCardDisplay:O.d.NONE}),"OPEN"===e.dropdownState?Object(a.jsx)(b.a,{glyph:Object(p.e)(p.c.CHEVRON_UP),size:"regular"}):Object(a.jsx)(b.a,{glyph:Object(p.e)(p.c.CHEVRON_DOWN),size:"regular"})]})},distance:"small",subtitle:"Teams",children:e.teams.sort(Object(d.a)((function(e){return e.name.toLowerCase()}))).map((function(t,n){return Object(a.jsx)(j.a,{onClick:function onClick(){return e.onClickHandler(t)},children:t.name},n)}))})}return Object(a.jsxs)(l.a,{isOpen:"OPEN"===e.dropdownState,toggle:e.toggle,className:"teamDropdown","data-testid":"team-dropdown",children:[function renderDropdownToggle(){switch(e.location){case r.NAVBAR:return Object(a.jsxs)(c.a,{className:"c-teams-dropdown c--fw",title:e.activeTeam?e.activeTeam.name:"",children:[Object(a.jsx)(b.a,{glyph:Object(p.e)(p.c.PEOPLE),size:"small"}),Object(a.jsx)("span",{className:"c-teams-dropdown__ellipsis",children:e.activeTeam?e.activeTeam.name:""})]});case r.MODAL:return Object(a.jsxs)(c.a,{className:"c-teams-dropdown__btn-secondary",title:e.activeTeam?e.activeTeam.name:"",children:[Object(a.jsx)("span",{className:"u-ma-md c-message-address c-teams-dropdown__toggle",children:e.activeTeam?e.activeTeam.name:""}),e.teams.length>1?"OPEN"===e.dropdownState?Object(a.jsx)(b.a,{glyph:Object(p.e)(p.c.CHEVRON_UP),size:"regular"}):Object(a.jsx)(b.a,{glyph:Object(p.e)(p.c.CHEVRON_DOWN),size:"regular"}):Object(a.jsxs)("span",{children:["(Only ",h.b.t(h.a.TEAM),")"]})]})}}(),e.location===r.NAVBAR?Object(a.jsx)("div",{id:"triangle",className:"c-teams-dropdown__triangle"}):Object(a.jsx)(a.Fragment,{}),e.teams.length>1?Object(a.jsx)(u.a,{className:e.location===r.NAVBAR?"c-teams-dropdown__menu c--triangle":"c-teams-dropdown__menu",children:e.teams.sort(Object(d.a)((function(e){return e.name.toLowerCase()}))).map((function(t){return function renderDropdownMenu(t){switch(e.location){case r.NAVBAR:return Object(a.jsx)(s.a,{onClick:function onClick(){return e.onClickHandler(t)},className:o()("c-teams-dropdown-item",{active:!!e.activeTeam&&e.activeTeam.id===t.id}),children:t.name},"team-"+t.id);case r.MODAL:var n=e.activeTeam?e.activeTeam.id:"";return t.id!==n?Object(a.jsx)(s.a,{onClick:function onClick(){return e.onClickHandler(t)},className:"c-teams-dropdown-item",children:t.name},"team-"+t.id):void 0}}(t)}))}):Object(a.jsx)(a.Fragment,{children:" "})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=(n(1261),n(19)),d=n(9),b=n(40),p=n(157),m=n(24),h=n.n(m),g=n(56),j=n(58),v=function(e){Object(o.a)(SearchableTag,e);var t=Object(c.a)(SearchableTag);function SearchableTag(e){var n;return Object(a.a)(this,SearchableTag),(n=t.call(this,e)).hoverToggle=Object(p.a)((function(e){n.setState({hover:e})}),10),n.removable=!!n.props.onRemoveClick,n.onMouseEvents=n.removable?{onClick:function onClick(){n.hoverToggle(!0)},onMouseOver:function onMouseOver(){n.hoverToggle(!0)},onMouseLeave:function onMouseLeave(){n.hoverToggle(!1)}}:{},n.onSearchClick=function(e){var t=n.props,r=t.messageTagId,a=t.tagId,i=t.label;e.preventDefault(),null!==r&&n.props.onSearchClick({messageTagId:r,tagId:a,label:i})},n.onRemoveClick=function(e){var t;e.preventDefault(),e.stopPropagation();var r=null!==(t=n.props.onRemoveClick)&&void 0!==t?t:b.a,a=n.props.messageTagId,i=n.props.label;null!==a&&r(a,i)},n.renderVesselTag=function(){return Object(s.jsx)(j.a,{content:n.props.label,children:Object(s.jsxs)("div",Object(r.a)(Object(r.a)({className:h()("c-searchable-tag c--vessel",{"c--touch":n.props.enableTouchStyles}),id:n.props.id},n.onMouseEvents),{},{children:[Object(s.jsxs)("div",{className:"c-searchable-tag__tag",onClick:n.onSearchClick,children:[Object(s.jsx)(u.a,{glyph:Object(d.e)(d.c.ASSET),size:"small",className:"c-searchable-tag__icon"}),Object(s.jsx)("span",{className:"c-searchable-tag__label",children:n.props.label})]}),Object(s.jsx)("div",{className:"c-searchable-tag__search",children:Object(s.jsx)(u.a,{glyph:Object(d.e)(d.c.SEARCH),size:"small",className:"c-searchable-tag__icon"})})]}),n.props.id)})},n.renderJobReferenceTag=function(){var e=n.props.enableTouchStyles&&g.b;return Object(s.jsx)(j.a,{content:n.props.label,children:Object(s.jsxs)("div",Object(r.a)(Object(r.a)({className:h()("c-searchable-tag c--job-reference",{"c--touch":n.props.enableTouchStyles}),id:n.props.id},n.onMouseEvents),{},{children:[Object(s.jsxs)("div",{className:"c-searchable-tag__tag",onClick:n.onSearchClick,children:[!e&&n.removable&&n.state.hover?Object(s.jsx)("button",{className:"c-searchable-tag__remove",type:"button",onClick:n.onRemoveClick,"data-testid":"tag-remove",children:Object(s.jsx)(u.a,{glyph:Object(d.e)(d.c.CLEAR),size:"small",className:"c-searchable-tag__icon"})}):Object(s.jsx)(u.a,{glyph:Object(d.e)(d.c.JOB),size:"small",className:"c-searchable-tag__icon"}),Object(s.jsx)("span",{className:"c-searchable-tag__label",children:n.props.label}),e&&n.removable&&Object(s.jsx)("button",{className:"c-searchable-tag__remove",type:"button",onClick:n.onRemoveClick,"data-testid":"tag-remove",children:Object(s.jsx)(u.a,{glyph:Object(d.e)(d.c.CLEAR),size:"small",className:"c-searchable-tag__icon"})})]}),Object(s.jsx)("div",{className:"c-searchable-tag__search",children:Object(s.jsx)(u.a,{glyph:Object(d.e)(d.c.SEARCH),size:"small",className:"c-searchable-tag__icon"})})]}),n.props.id)})},n.state={hover:!1},n}return Object(i.a)(SearchableTag,[{key:"render",value:function render(){switch(this.props.tagType){case"vesselTag":return this.renderVesselTag();case"jobReferenceTag":return this.renderJobReferenceTag()}}}]),SearchableTag}(l.PureComponent)},function(e,t,n){"use strict";n.d(t,"a",(function(){return CordovaDownloadHandler}));var r=n(21),a=n(1);function CordovaDownloadHandler(e){var t=Object(a.useState)(!1),n=Object(r.a)(t,2),i=n[0],o=n[1];return e.children(i,(function(e){return function(){o(!0),function download(e,t){(function fetchAttachments(e){return fetch(e,{credentials:"include",mode:"cors"}).then((function(e){return e.blob().then((function(t){var n;return{mimeType:null!==(n=e.headers.get("Content-Type"))&&void 0!==n?n:"",name:getFileName(e.url)||"Unknown",blob:t}}))}))})(e).then((function(e){var t=e.mimeType,n=e.blob,r=e.name;window.requestFileSystem(window.LocalFileSystem.PERSISTENT,0,(function(e){e.root.getFile(r,{create:!0},(function(e){e.createWriter((function(r){r.write(n),r.onwriteend=function(){window.cordova.plugins.fileOpener2.open(e.toURL(),t,{error:function error(n){return function openWithDialog(e,t){window.cordova.plugins.fileOpener2.showOpenWithDialog(e,t,{error:function error(e){return onError(e)},position:[0,0]})}(e.toURL(),t)}})},r.onerror=function(e){return onError(e)}}),(function(e){return onError(e)}))}),(function(e){return onError(e)}))}))})).catch((function(e){return alert("error with fetch ".concat(e.message))})).finally(t)}(e,(function(){return o(!1)}))}}))}function getFileName(e){var t=decodeURIComponent(e),n=t.substring(t.indexOf("filename"),t.indexOf("&response-content-type")).split("'").slice(-1),a=Object(r.a)(n,1)[0];return decodeURIComponent(a).replace(/[<>:"/|?*]/g," ")}function onError(e){alert("unable to download file"),console.error(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return LayoutPanesHotkeyActions}));var r=n(0),a=n(100),i=n(101);function LayoutPanesHotkeyActions(e){var t=e.toggleLeftPane,n=e.toggleRightPane;return Object(a.a)(i.v,n,[n]),Object(a.a)(i.u,t,[t]),Object(r.jsx)(r.Fragment,{})}},function(e,t,n){"use strict";function isElementVisible(e){return e.getBoundingClientRect().x<=window.innerWidth}n.d(t,"a",(function(){return isElementVisible}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return FavouritableCategoryTag}));var r=n(4),a=n(21),i=n(0),o=n(1),c=n(153),s=n(12),l=n(19),u=n(9),d=n(58),b={Container:s.b.div.withConfig({displayName:"favouritable-category-tag__Container",componentId:"sc-1k958y6-0"})(["border-radius:var(--br2);display:flex;align-content:center;justify-content:space-between;padding:var(--spacing-1) var(--spacing-2);&:hover{background-color:var(--background-shade);}"]),WidgetContainer:s.b.div.withConfig({displayName:"favouritable-category-tag__WidgetContainer",componentId:"sc-1k958y6-1"})(["flex:1 1 0%;overflow:hidden;display:flex;align-content:center;"]),FavouriteContainer:s.b.div.withConfig({displayName:"favouritable-category-tag__FavouriteContainer",componentId:"sc-1k958y6-2"})(["flex:0 1 auto;display:flex;align-content:center;margin-left:var(--spacing-2);color:var(--action-70);cursor:pointer;"]),TooltipDiv:s.b.div.withConfig({displayName:"favouritable-category-tag__TooltipDiv",componentId:"sc-1k958y6-3"})(["display:flex;"])};function FavouritableCategoryTag(e){var t=e.id,n=e.isFavourite,s=e.addFavourite,p=e.removeFavourite,m=o.useState(!1),h=Object(a.a)(m,2),g=h[0],j=h[1];return Object(i.jsxs)(b.Container,{onMouseEnter:function onMouseEnter(){j(!0)},onMouseLeave:function onMouseLeave(){return j(!1)},"data-test":"cat-tag-list-item",children:[Object(i.jsx)(b.WidgetContainer,{children:Object(i.jsx)(b.WidgetContainer,{children:Object(i.jsx)(d.a,{content:e.label,children:Object(i.jsx)(b.TooltipDiv,{children:Object(i.jsx)(c.a,Object(r.a)({},e))})})})}),g&&Object(i.jsx)(b.FavouriteContainer,{className:"c-favourite-container",onClick:function onClick(){return n?p():s()},children:Object(i.jsxs)("div",{className:"c-tag",children:[Object(i.jsx)("div",{className:"c--icon u-mr-xs",children:Object(i.jsx)(l.a,{glyph:Object(u.e)(n?u.c.PIN:u.c.UNPIN),size:"small"})}),Object(i.jsx)("div",{className:"c-tag__content","data-test":"pin-status",children:n?"Unpin":"Pin"})]})})]},"cat-tag-list-item-favouritable-".concat(t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var r,a=n(23),i=n(4),o=n(3),c=n(10),s=n(5),l=n(6),u=n(0),d=n(1),b=n(227),p=n.n(b),m=n(137),h=n(153),g=n(40),j=n(44),v=n(139),O=n(189),T=n(19),y=n(9),S=n(157),C=n(577),A=(n(1295),n(249)),E=n(38),w=n(63),_=n(58),I=n(98),x=n(338),k=n(100),N=n(101),R=n(405),F=n(411),M=n(15);!function(e){e.ASSIGNMENT="assignment",e.JOB_REFERENCE="job-reference",e.CATEGORY="category"}(r||(r={}));var D=function(e){Object(s.a)(TagSearch,e);var t=Object(l.a)(TagSearch);function TagSearch(e){var n;return Object(o.a)(this,TagSearch),(n=t.call(this,e)).searchJobReferences=Object(S.a)((function(e){n.props.searchJobReferences(e)}),250),n.autoSuggestInput=void 0,n.renderSectionTitle=function(e){return e.title},n.renderSuggestion=function(e){if(isFollowerSuggestion(e)){var t="follower-suggestion-"+e.key;return Object(u.jsx)(_.a,{content:e.label,children:Object(u.jsx)("span",{children:Object(u.jsx)(m.a,{id:t,userFullName:e.label,state:"inactive",onClick:g.a,userCanSeeMessage:!0},t)})})}if("category"===e.type){var r="sug-cat-"+e.id;return Object(u.jsx)(_.a,{content:e.label,children:Object(u.jsx)("span",{children:Object(u.jsx)(h.a,{id:r,label:e.label,state:"inactive",onClick:g.a},r)})})}if("job-reference"===e.type){var a="sug-jr"+e.id;return Object(u.jsx)(_.a,{content:e.label,children:Object(u.jsx)("span",{children:Object(u.jsx)(v.a,{id:a,label:e.label,state:"inactive",onClick:g.a},a)})})}var i="sug-assignment-"+e.id;return Object(u.jsx)(_.a,{content:e.label,children:Object(u.jsx)("span",{children:Object(u.jsx)(m.a,{id:i,userFullName:e.label,state:"inactive",onClick:g.a,userCanSeeMessage:Object(A.a)(e.id,n.props.userToTeams,n.props.messageTeams)},i)})})},n.getJobReferenceSuggestions=function(e){var t=new Set(n.props.appliedJobReferenceTags.map((function(e){return e.label}))),a=Object(C.a)(t,n.props.jobReferences,n.props.jobReferencesSearch.orElse([]),e,n.props.partialAutoSuggest,25),i=a.filter((function(e){return e.tagId&&n.props.myMessageTagIds.has(e.tagId)})),o=a.filter((function(e){return!e.tagId||!n.props.myMessageTagIds.has(e.tagId)}));return[{title:"My ".concat(M.b.t(M.a.JOB_TAG_PLURAL)),suggestions:i.map((function(e){return{type:r.JOB_REFERENCE,id:e.id,tagId:e.tagId,label:e.name}}))},{title:M.b.t(M.a.JOB_TAG_PLURAL),suggestions:o.map((function(e){return{type:r.JOB_REFERENCE,id:e.id,tagId:e.tagId,label:e.name}}))}]},n.getAssignmentTagSuggestions=function(e){var t=new Set(n.props.appliedMessageAssignments.map((function(e){return e.assignedToUserId}))),a=n.props.partialAutoSuggest?Object(O.c)(e):Object(O.d)(e),i=n.props.users.filter((function(e){return null===e.deletedAt&&!t.has(e.id)})).filter((function(e){return a.test(Object(j.c)(e.firstName,e.lastName))||a.test(e.initials)})).slice(0,25).map((function(e){return{type:r.ASSIGNMENT,id:e.id,tagId:"assignment",label:Object(j.c)(e.firstName,e.lastName)+(e.id===n.props.currentUser.id?" (You)":"")}}));return[{title:M.b.t(M.a.PERSON_TAG_PLURAL),suggestions:i}]},n.getCategoryTagSuggestions=function(e){var t=new Set(n.props.appliedCategoryTags.map((function(e){return e.tagId}))),a=n.props.categoryTags.filter((function(e){return!t.has(e.tagId)})).map((function(e){return{type:r.CATEGORY,id:e.id,tagId:e.tagId,label:e.label}}));return[{title:M.b.t(M.a.CATEGORY_TAG_PLURAL),suggestions:Object(O.a)(e,a,n.props.partialAutoSuggest).slice(0,25)}]},n.getFollowerTagSuggestions=function(e){var t=n.props.partialAutoSuggest?Object(O.c)(e):Object(O.d)(e),r=n.getNonFollowingUsers(),o=new Set(r.map((function(e){return e.id}))),c=n.getTeamsWithUserIds().teams.map((function(e){return Object(i.a)(Object(i.a)({},e),{},{userIds:e.userIds.filter((function(e){return o.has(e)}))})})).filter((function(e){return e.userIds.length>0})).map((function(e){var t=e.teamName,n=e.userIds;return{userIds:n,label:"".concat(t," (").concat(n.length,")")}})).sort(Object(w.a)((function(e){return e.label}))),s={label:"All Users (".concat(r.length,")"),userIds:r.map((function(e){return e.id}))},l=[].concat(Object(a.a)(c),[s]).filter((function(e){return t.test(e.label)})).map((function(e,t){return{type:"follower-suggestion",key:"none-user-"+t,userIds:e.userIds,label:e.label}})),u=r.filter((function(e){return t.test(Object(j.c)(e.firstName,e.lastName))||t.test(e.initials)})).map((function(e,t){return{type:"follower-suggestion",key:"user-"+t,userIds:[e.id],label:Object(j.c)(e.firstName,e.lastName)}}));return[{title:"Followers",suggestions:[].concat(Object(a.a)(u),Object(a.a)(l))}]},n.getSuggestions=function(e){var t=[];return n.props.parentItemType===E.a.message?t.push.apply(t,Object(a.a)(n.getJobReferenceSuggestions(e)).concat(Object(a.a)(n.getCategoryTagSuggestions(e)),Object(a.a)(n.getAssignmentTagSuggestions(e)))):(t.push.apply(t,Object(a.a)(n.getJobReferenceSuggestions(e)).concat(Object(a.a)(n.getCategoryTagSuggestions(e)))),n.props.suggestUsers&&t.push.apply(t,Object(a.a)(n.getFollowerTagSuggestions(e)))),t.filter((function(e){return e.suggestions.length>0}))},n.getSectionSuggestions=function(e){return e.suggestions},n.onChange=function(e,t){var r=t.newValue;n.setState({value:r}),n.searchJobReferences(r)},n.onSuggestionSelected=function(e,t){var a=t.suggestion;return n.setState({value:""}),isFollowerSuggestion(a)?n.props.addFollowers(a.userIds):a.type===r.CATEGORY&&a.tagId?n.props.categorize(a.tagId,a.id,a.label):(a.type===r.ASSIGNMENT&&(n.props.openNoAccessModal&&!Object(A.a)(a.id,n.props.userToTeams,n.props.messageTeams)?n.props.openNoAccessModal(a.id):n.props.addPersonTag(a.id)),a.type===r.JOB_REFERENCE?n.props.addJobReference(a.tagId,a.id,a.label):void 0)},n.shouldRenderSuggestions=function(){return!0},n.state={value:""},n.autoSuggestInput=d.createRef(),n}return Object(c.a)(TagSearch,[{key:"render",value:function render(){var e,t,n=this,r=this.state.value,a=this.getSuggestions(r);return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(TagNavigate,{autoSuggestInput:this.autoSuggestInput}),Object(u.jsxs)("div",{className:null!==(e=this.props.className)&&void 0!==e?e:"c-message-tag-panel__search",onFocus:function onFocus(){return Object(I.a)()&&Object(x.disablePTR)(n.props.pullToRefresh)},children:[Object(u.jsx)(T.a,{glyph:Object(y.e)(y.c.SEARCH),className:"c--search-icon"}),Object(u.jsx)(p.a,{inputProps:{placeholder:"Search for tags",value:r,onChange:this.onChange,autoFocus:null!==(t=this.props.autoFocusEnabled)&&void 0!==t&&t,ref:this.autoSuggestInput,onMouseDown:this.props.trackEvent},multiSection:!0,focusInputOnSuggestionClick:!1,highlightFirstSuggestion:!0,suggestions:a,onSuggestionsFetchRequested:g.a,onSuggestionsClearRequested:g.a,getSectionSuggestions:this.getSectionSuggestions,getSuggestionValue:function getSuggestionValue(){return r},renderSectionTitle:this.renderSectionTitle,renderSuggestion:this.renderSuggestion,onSuggestionSelected:this.onSuggestionSelected,shouldRenderSuggestions:this.shouldRenderSuggestions})]})]})}},{key:"getNonFollowingUsers",value:function getNonFollowingUsers(){var e=this,t=new Set(this.props.appliedTopicFollowers.map((function(e){return e.id})));return this.props.users.filter((function(n){return n.id!==e.props.currentUser.id&&!n.deletedAt&&!t.has(n.id)}))}},{key:"getTeamsWithUserIds",value:function getTeamsWithUserIds(){var e=this.props.userToTeams;return{teams:this.props.teams.map((function(t){return{teamId:t.id,teamName:t.name,userIds:e.filter((function(e){return e.teamIds.includes(t.id)})).map((function(e){return e.userId}))}}))}}}]),TagSearch}(d.PureComponent);function isFollowerSuggestion(e){return"follower-suggestion"===e.type}function TagNavigate(e){var t=e.autoSuggestInput;return Object(R.a)(t),Object(k.a)(N.g,(function(){t.current&&Object(F.a)(t.current)&&t.current.focus()}),[t]),Object(u.jsx)(u.Fragment,{})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return getDeviceInfo}));var r=n(898),a=n.n(r);function getDeviceInfo(e){if(e.startsWith("SEDNA")){var t=e.includes("iPhone"),n=e.includes("iPad");return{name:t?"Apple iPhone":n?"Apple iPad":"Unknown Device Type",type:t?"mobile":n?"tablet":void 0,platform:"native"}}var r=new a.a(e).getResult(),i=r.device,o=i.model,c=i.vendor,s=i.type,l=r.browser.name,u=r.os.name,d=c?"".concat(c," ").concat(null!==o&&void 0!==o?o:""):"".concat(null!==u&&void 0!==u?u:""," ").concat(null!==l&&void 0!==l?l:"");return{platform:e.includes("Cordova")?"native":"web",type:s,name:d.trim()||"Unknown Device Type"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return gt}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(22),u=n(28),d=n(13),b=n(2),p=n(76),m=n(26),h=n(18),g=n(30),j=n(210),v=n(57),O=n(47),T=n(23),y=n(24),S=n.n(y),C=n(19),A=n(9),E=n(52),w=n(21),_=n(4),I=n(227),x=n.n(I),k=n(12),N=n(320);var R=n(40),F=n(115),M=function followerSelector(e){return Object(m.b)([e],(function(e){var t=new Map;return b.h(e).map((function(e){return t.set(e.id,e)})),t}))},D=n(29),L=n(570),P={BookmarkName:k.b.div.withConfig({displayName:"bookmark-name__BookmarkName",componentId:"e5xbip-0"})(["flex:1 1 auto;",""],(function(e){return e.shouldStretch?"\n      display: flex;\n      justify-content: space-between;\n      padding-bottom: var(--spacing-3);\n    ":""})),NameText:k.b.span.withConfig({displayName:"bookmark-name__NameText",componentId:"e5xbip-1"})(["",""],(function(e){return e.shouldStretch?"":"\n    padding-left: var(--spacing-3);\n    margin-right: var(--spacing-6);\n"})),Icon:Object(k.b)(C.a).withConfig({displayName:"bookmark-name__Icon",componentId:"e5xbip-2"})(["fill:var(--text-4);"])};function BookmarkName(e){var t=e.name,n=e.unreads,r=e.draggable,a=e.shouldStretch,i=e.isShared;return Object(c.jsxs)(P.BookmarkName,{shouldStretch:null!==a&&void 0!==a&&a,children:[r&&Object(c.jsx)(P.Icon,{glyph:Object(A.e)(A.c.DRAG_DROP),size:"regular"}),Object(c.jsx)(P.NameText,{shouldStretch:null!==a&&void 0!==a&&a,"data-testid":i?"shared-saved-search-text":"saved-search-text",children:t}),n]})}var U,B,H=n(31);!function(e){e.RIGHT="right",e.LEFT="left"}(U||(U={})),function(e){e.NONE="none",e.EXTRA_SMALL="extra-small",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(B||(B={}));var G={Divider:k.b.div.withConfig({displayName:"vertical-divider__Divider",componentId:"sc-14fwnfq-0"})(["border-color:var(--border-shade);display:inline-flex;",""],(function(e){return"\n        border-".concat(e.position,"-style: solid;\n        border-").concat(e.position,"-width: 1px;\n\n        padding-").concat(e.position,": var(--spacing-").concat(function paddingToVariable(e){switch(e){case B.NONE:return"0";case B.EXTRA_SMALL:return"1";case B.SMALL:return"2";case B.MEDIUM:return"3";case B.LARGE:return"6"}}(e.padding),");\n        ")}))};function VerticalDivider(e){var t,n;return e.children?Object(c.jsx)(G.Divider,{padding:null!==(t=e.padding)&&void 0!==t?t:B.NONE,position:null!==(n=e.position)&&void 0!==n?n:U.RIGHT,children:e.children}):null}var W=n(111),z={Group:k.b.div.withConfig({displayName:"bookmark-context-group__Group",componentId:"sc-1a8hjzs-0"})(["display:flex;align-items:center;"]),FirstChild:k.b.div.withConfig({displayName:"bookmark-context-group__FirstChild",componentId:"sc-1a8hjzs-1"})(["flex:1 1 auto;"]),Rest:k.b.div.withConfig({displayName:"bookmark-context-group__Rest",componentId:"sc-1a8hjzs-2"})(["display:flex;align-items:center;justify-content:flex-end;"]),Spacing:k.b.div.withConfig({displayName:"bookmark-context-group__Spacing",componentId:"sc-1a8hjzs-3"})(["margin-right:var(--spacing-3);"])};function BookmarkContextGroup(e){var t=s.Children.toArray(e.children).filter(Boolean),n=Object(W.c)().isMobile;return 0===t.length?null:n&&t.length>1?Object(c.jsxs)(z.Group,{children:[Object(c.jsx)(z.FirstChild,{children:t[0]}),Object(c.jsx)(z.Rest,{children:t.slice(1).map((function(e,t){return 0!==t?Object(c.jsx)(VerticalDivider,{padding:B.NONE,position:U.LEFT,children:e},t):e}))})]}):Object(c.jsx)(z.Group,{children:t.map((function(e,t){return 0!==t?Object(c.jsx)(VerticalDivider,{padding:B.NONE,position:U.LEFT,children:e},t):e}))})}var V={Group:k.b.div.withConfig({displayName:"share-bookmark-group__Group",componentId:"vql8iq-0"})(["display:flex;align-items:center;margin-right:var(--spacing-3);"]),Spacing:k.b.div.withConfig({displayName:"share-bookmark-group__Spacing",componentId:"vql8iq-1"})(["margin-right:var(--spacing-3);"])};function ShareBookmarkGroup(e){return Object(c.jsx)(V.Group,{children:e.reverseItems?Object(c.jsxs)(c.Fragment,{children:[e.shareBookmark,e.followers]}):Object(c.jsxs)(c.Fragment,{children:[e.followers&&Object(c.jsx)(V.Spacing,{children:e.followers}),e.shareBookmark]})})}var J=n(285),Y={SharedBookmark:k.b.div.withConfig({displayName:"shared-bookmark__SharedBookmark",componentId:"pkrcmw-0"})(["display:flex;justify-content:space-between;",""],(function(e){return e.isMobile?"\n    flex-direction: column;\n    flex: 1 1 auto;\n    ":"\n    align-items: center\n    "}))};function SharedBookmark(e){var t=Object(W.c)().isMobile;return Object(c.jsxs)(Y.SharedBookmark,{isMobile:t,children:[Object(c.jsx)(BookmarkName,{name:e.bookmark.name,unreads:e.unreads,draggable:!1,shouldStretch:t,isShared:!0}),Object(c.jsxs)(BookmarkContextGroup,{children:[Object(c.jsx)(ShareBookmarkGroup,{shareBookmark:Object(c.jsx)(H.a,{size:t?"small":"regular",buttonContent:"Add Bookmark",dataTestId:"add-bookmark",iconGlyph:Object(A.e)(A.c.BOOKMARK_ADD),onClick:Object(J.a)((function(){e.addSharedBookmark(e.bookmark)}))}),followers:e.followersGroup,reverseItems:t}),e.bookmark.isShared&&"user"===e.bookmark.isShared.type&&Object(c.jsx)(H.a,{size:t?"small":"regular",buttonContent:"Clear",className:"u-ml-md",dataTestId:"clear-bookmark",iconGlyph:Object(A.e)(A.c.CLEAR),onClick:Object(J.a)((function(){e.setBookmarkToBeDeleted(e.bookmark),e.setOpenDeleteConfirmationModal(!0)}))})]})]})}var q=n(1485),K=n(1486);function DraggableRow(e){var t=s.useRef(null),n=Object(q.a)({item:{id:e.bookmarkId,type:"bookmark"},collect:function collect(e){return{isDragging:e.isDragging()}}}),r=Object(w.a)(n,2),a=r[0].isDragging,i=r[1],o=Object(K.a)({accept:"bookmark",collect:function collect(e){return{isOver:e.isOver()}},drop:function drop(n){t.current&&n.id!==e.bookmarkId&&e.moveBookmark(n.id,e.index)}});return i((0,Object(w.a)(o,2)[1])(t)),Object(c.jsx)("div",{ref:t,className:e.className,style:a?{opacity:0}:{opacity:1},children:e.children})}var X={ContextBar:k.b.div.withConfig({displayName:"own-bookmark__ContextBar",componentId:"sc-1o7ags3-0"})(["display:flex;flex:0 1 47em;"]),MobileWrapper:k.b.div.withConfig({displayName:"own-bookmark__MobileWrapper",componentId:"sc-1o7ags3-1"})(["display:flex;flex-direction:column;flex:1 1 auto;"]),Group:k.b.div.withConfig({displayName:"own-bookmark__Group",componentId:"sc-1o7ags3-2"})(["display:flex;align-items:center;align-content:stretch;min-height:calc( "," * 2 );padding:0 var(--spacing-3);",""],(function(e){return e.isMobile?"18px + var(--spacing-1)":"24px + var(--spacing-2)"}),(function(e){return e.padLeft&&"padding-left: calc(var(--spacing-3) + 2 * var(--spacing-2) + 2 * var(--spacing-3) + var(--icon-md))"}))};function OwnBookmark(e){var t=Object(W.c)().isMobile,n=function bookmarkBody(n){return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(BookmarkName,{name:e.bookmark.name,unreads:e.unreads,draggable:n,shouldStretch:t,isShared:!1}),Object(c.jsxs)(BookmarkContextGroup,{children:[e.shareBookmark&&Object(c.jsx)(ShareBookmarkGroup,{shareBookmark:e.shareBookmark,followers:e.followersGroup,reverseItems:t}),e.notification&&Object(c.jsx)(X.Group,{isMobile:t,children:e.notification}),e.createBucket&&Object(c.jsx)(X.Group,{isMobile:t,padLeft:!t&&!e.notification,children:e.createBucket}),Object(c.jsx)(H.a,{size:t?"small":"regular",buttonContent:"Delete Bookmark",className:"u-ml-md",dataTestId:"delete-bookmark",iconGlyph:Object(A.e)(A.c.DELETE),onClick:Object(J.a)((function(){e.trackEvent("Bookmark","Bookmark: Delete"),e.setBookmarkToBeDeleted(e.bookmark),e.setOpenDeleteConfirmationModal(!0)}))})]})]})};return t?Object(c.jsx)(X.MobileWrapper,{children:n(!1)}):Object(c.jsx)(DraggableRow,{bookmarkId:e.bookmark.id,moveBookmark:e.moveBookmark,className:S()("react-autosuggest__suggestion-bookmark"),index:e.index,children:n(!0)})}var Q=n(77),Z=n(219),$=n(8);function BookmarkUnreadWrapper(e){var t=Object(u.useDispatch)();return s.useEffect((function(){!function sendBookmarkUnreadRequest(n){b.g(e.savedSearchUnread,Object(Q.a)(n.unreadBookmarkSearchQuery)).isNotLoading()&&(n.unreadBookmarkFilterSet.isEmpty()||t(new O.p(n.unreadBookmarkSearchQuery,e.currentUser.id,null,v.c.BY_RECEIVED_DATE,v.b.FROM_NEWEST,!1,e.searchNavigator.getOptions(),$.j.BOOKMARK,n.unreadBookmarkFilterSet)))}(e.bookmark)}),[]),b.g(e.savedSearchUnread,Object(Q.a)(e.bookmark.unreadBookmarkSearchQuery)).unwrapTo((function(e){return Object(c.jsx)(Z.b,{unreadCount:{total:e.count,exact:e.exact},fontSize:Z.a.MEDIUM})}),(function(){return Object(c.jsx)("span",{className:"c-bookmark-item__unread c--loading"})}),(function(e){return Object(c.jsx)(Z.b,{unreadCount:null,fontSize:Z.a.MEDIUM})}))}var ee=n(56),te=n(243),ne={CreateBucket:k.b.div.withConfig({displayName:"create-bucket-switch__CreateBucket",componentId:"o664a7-0"})(["display:flex;align-items:center;flex-shrink:0;height:100%;@media ","{width:19rem;}"],ee.a.minSmall),Label:k.b.label.withConfig({displayName:"create-bucket-switch__Label",componentId:"o664a7-1"})(["margin-bottom:0;margin-left:var(--spacing-2);color:var(--text-2);"," ",""],(function(e){return e.disabled&&"color: var(--text-3)"}),(function(e){return!e.disabled&&"cursor: pointer"}))};function CreateBucketSwitch(e){var t=e.bookmark,n=e.isActive,r=e.isDisabled,a=e.isMobile,i=e.deserializeFilterSetToString,o=Object(u.useDispatch)(),l=s.useRef(null),b=s.useCallback((function(){o(new p.p(t.id,t.name,!n,i(t.filterSet),t.isSubscribed,Object(d.R)(t.filterSet)))}),[t.filterSet,t.id,t.isSubscribed,t.name,i,o,n]),m=s.useCallback((function(e){e.preventDefault(),e.stopPropagation(),r||b()}),[r,b]),h=s.useCallback((function(e){var t;(null===(t=l.current)||void 0===t?void 0:t.querySelector(te.a))===e.target&&(e.preventDefault(),e.stopPropagation())}),[]);return Object(c.jsxs)(ne.CreateBucket,{ref:l,onClick:m,onMouseDownCapture:h,"data-testid":"create-bucket-switch",children:[Object(c.jsx)(te.c,{id:t.id,checked:n,disabled:r,size:te.b.SMALL,onChange:b,ariaLabel:n?"active":"inactive"}),Object(c.jsx)(ne.Label,{disabled:r,htmlFor:t.id,children:a?"Bucket":"Bucket ".concat(n?"Active":"Inactive")})]})}var re=n(574),ae=n(247),ie=function buildShareGroup(e,t,n){var r;return null!==(r=null===n||void 0===n?void 0:n.reduce((function(n,r){var a=e.get(r);return a?[].concat(Object(T.a)(n),[t(a)]):n}),[]))&&void 0!==r?r:[]};function SharedBookmarkFollowers(e){var t,n,r=e.bookmark,a=e.userMap,i=e.teamMap,o=Object(W.c)().isMobile,s=ie(a,(function(e){return{id:e.id,initials:e.initials}}),null===(t=r.shares)||void 0===t?void 0:t.userIds),l=ie(i,(function(e){return{id:e.id,name:e.name}}),null===(n=r.shares)||void 0===n?void 0:n.teamIds);return Object(c.jsx)(ae.a,{followers:s,teamsSharedWith:l,numberToDisplayOfEach:2,size:o?"s":"m"})}n(1189);var oe,ce=n(575),se=n(93);!function(e){e.section=".react-autosuggest__section-container",e.input=".react-autosuggest__input",e.suggestions=".react-autosuggest__suggestions-container"}(oe||(oe={}));var le,ue=Object(m.b)([function(e){return b.g(e.entities.savedSearch,b.a).orElse([])},function(e,t){return t.currentUser},function(e,t){return Object(j.a)(e,t.currentUser)},function(e,t){return Object(F.a)(e,t.currentUser)},function(e){return e.entities.savedSearchUnread},function(e){return e.ui.featureFlags},M((function(e){return e.entities.user})),M((function(e){return e.entities.team})),se.a,function(e){return e.ui.sidebar.isEnabled}],(function(e,t,n,r,a,i,o,c,s,l){var u=n.toNullable();return{bookmarksUnreadProperties:e.map((function(e){var t=r.deserialize(e.filterSet).orElse(d.k.empty),n=Object(j.b)(r,t);return Object(_.a)(Object(_.a)({},e),{},{unreadBookmarkSearchQuery:i.UNREAD_COMMENT_SEARCH_TOKEN?n.unreadCommentOrMessageQuery:n.unreadSearchQuery,unreadBookmarkFilterSet:i.UNREAD_COMMENT_SEARCH_TOKEN?n.unreadCommentOrMessageFilterSet:n.unreadFilterSet})})),buckets:u,filterSetDeserializer:r,savedSearchUnread:a,featureFlags:i,users:o,teams:c,explicitTeamTokenEnabled:s,savedSearches:e,showSidebar:l}})),de={OwnedBookmarksTitle:k.b.div.withConfig({displayName:"bookmark-select-container__OwnedBookmarksTitle",componentId:"sc-1usjpz4-0"})(["display:flex;justify-content:space-between;flex-wrap:wrap;"]),TitleHelpText:k.b.div.withConfig({displayName:"bookmark-select-container__TitleHelpText",componentId:"sc-1usjpz4-1"})(["color:var(--text-2);font-weight:var(--fw-normal);text-transform:initial;"])},fe=s.memo((function(e){var t=e.searchNavigator,n=e.currentUser,r=e.onBookmarkClick,a=e.hideBookmark,i=e.canCompose,o=e.deserializeFilterSetToString,l=e.isMobile,b=e.shareBookmarkWidget,m=Object(u.useDispatch)(),h=Object(u.useSelector)((function(t){return ue(t,e)})),g=s.useState(""),j=Object(w.a)(g,2),v=j[0],O=j[1],y=s.useState(!1),C=Object(w.a)(y,2),A=C[0],E=C[1],I=s.useState(null),k=Object(w.a)(I,2),F=k[0],M=k[1],P=s.useRef(null),U=s.useCallback((function(e){var t;return null===(t=P.current)||void 0===t?void 0:t.querySelector(e)}),[]),B=h.buckets?h.buckets.length:0;s.useEffect((function(){return l||document.addEventListener("click",a),function(){l||document.removeEventListener("click",a)}}),[a,l]),s.useEffect((function(){return function(){h.featureFlags.BOOKMARK_UNREAD&&m(new p.b)}}),[m,h.featureFlags.BOOKMARK_UNREAD]);var H=s.useCallback((function(e,t){m(new D.a(e,t))}),[m]);s.useLayoutEffect((function(){if(!l){var e=U(oe.input);null===e||void 0===e||e.focus()}}),[U,l]);var G=s.useCallback((function(){E(!1),H("Bookmark","Bookmark: Delete Cancel")}),[H]),W=s.useCallback((function(e,t){var n=t.newValue;return O(n)}),[]),z=s.useMemo((function(){return h.bookmarksUnreadProperties.filter((function(e){return e.name.toLowerCase().includes(v.toLowerCase())}))}),[h.bookmarksUnreadProperties,v]),V=function useSharedBookmark(e,t){var n=Object(s.useMemo)((function(){return Object(N.a)(e,(function(e){return!!e.isShared}))}),[e]),r=Object(w.a)(n,2),a=r[0],i=r[1];return[Object(s.useMemo)((function(){return a.filter((function(e){return!i.some((function(t){return t.parentFilterId===e.id}))})).map((function(e){return Object(_.a)(Object(_.a)({},e),{},{isSubscribed:!1})}))}),[i,a]),i]}(z),J=Object(w.a)(V,2),Y=J[0],q=J[1],K=!!h.featureFlags.SEARCH_BUCKETS,X=s.useMemo((function(){var e="".concat(B,"/").concat(h.featureFlags.SEARCH_BUCKETS," Buckets"),t=(K?"".concat(e,", "):"")+q.length+" "+(q.length>1?"Bookmarks":"Bookmark"),n=z.some((function(e){return!e.canSubscribe}))?Object(c.jsxs)(de.OwnedBookmarksTitle,{children:[Object(c.jsx)("div",{children:t}),Object(c.jsxs)(de.TitleHelpText,{children:["Notifications cannot be turned on for all Bookmarks and Buckets."," ",ee.b?"Click on":"Hover over"," a disabled Bell to learn more."]})]}):t;return Y.length>0?[{title:"Bookmarks shared with me",suggestions:Y},{title:n,suggestions:q}]:[{title:n,suggestions:q}]}),[z,B,q,K,h.featureFlags.SEARCH_BUCKETS,Y]),Q=s.useCallback((function(e){return e.suggestions}),[]),Z=s.useCallback((function(e,t){var n=t.suggestion;"undefined"!==typeof n&&(m(new p.k(n.id)),r(n),m(new D.a("Bookmark","Bookmark: Opened Bookmark",n.id)))}),[m,r]),$=s.useCallback((function(){null!==F&&(H("Bookmark","Bookmark: Delete Confirm"),F.userId===n.id?m(new p.r(F)):m(new p.t(F,n.id))),G()}),[F,G,m,n.id,H]),te=s.useCallback((function(e){m(new p.n(h.filterSetDeserializer.deserialize(e.filterSet).orElse(d.k.empty),e.id))}),[m,h.filterSetDeserializer]),ne=s.useCallback((function(e,t){var n=Object(N.a)(q,(function(t){return t.id===e})),r=Object(w.a)(n,2),a=r[0],i=r[1];i.splice.apply(i,[t,0].concat(Object(T.a)(a))),m(new p.l(i.map((function(e){return e.id})),i,Y)),function fireMouseEventAtAutoSuggestTarget(e){var t=document.getElementById("".concat("react-autowhatever-1-section-0-item","-").concat(e));null===t||void 0===t||t.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0,cancelable:!0}))}(i.map((function(e){return e.id})).indexOf(String(e)))}),[m,q,Y]),ie=s.useCallback((function(e){return null!==h.buckets&&h.buckets.some((function(t){return t.id===e.id}))}),[h.buckets]),se=s.useCallback((function(e){return!!h.buckets&&(h.buckets.length>=h.featureFlags.SEARCH_BUCKETS&&!ie(e))}),[ie,h.buckets,h.featureFlags.SEARCH_BUCKETS]),le=s.useCallback((function(e){return Object(c.jsx)(c.Fragment,{children:e.title})}),[]),fe=s.useCallback((function(e){var r=e.userId!==n.id?SharedBookmark:OwnBookmark,a="1.0"!==e.version&&h.featureFlags.BOOKMARK_UNREAD,i=ie(e),s=function renderSharedAuthorGroup(t,n){var r,a,i,o={followers:[],numberToDisplayOfEach:1,teamsSharedWith:[],size:l?"s":"m"};if("user"===n){var s,u=h.users.get(t);return Object(c.jsx)(ae.a,Object(_.a)(Object(_.a)({},o),{},{followers:[{id:t,initials:null!==(s=null===u||void 0===u?void 0:u.initials)&&void 0!==s?s:"",tooltipText:"".concat(null===u||void 0===u?void 0:u.firstName," ").concat(null===u||void 0===u?void 0:u.lastName)}]}))}var d=h.teams.get(t),b=h.users.get(null!==(r=null===(a=e.isShared)||void 0===a?void 0:a.authorId)&&void 0!==r?r:"");return Object(c.jsx)(ae.a,Object(_.a)(Object(_.a)({},o),{},{teamsSharedWith:[{id:t,name:null!==(i=null===d||void 0===d?void 0:d.name)&&void 0!==i?i:"",tooltipText:(null===b||void 0===b?void 0:b.firstName)&&b.lastName&&"".concat(b.firstName," ").concat(b.lastName," shared to ").concat(null===d||void 0===d?void 0:d.name)}]}))};return Object(c.jsx)(r,{bookmark:e,unreads:a?Object(c.jsx)(BookmarkUnreadWrapper,{bookmark:e,searchNavigator:t,currentUser:n,savedSearchUnread:h.savedSearchUnread}):null,notification:Object(c.jsx)(re.a,{bookmark:e,isMobile:l}),createBucket:K?Object(c.jsx)(CreateBucketSwitch,{bookmark:e,isMobile:l,isDisabled:se(e),isActive:i,deserializeFilterSetToString:o}):null,setBookmarkToBeDeleted:M,setOpenDeleteConfirmationModal:E,moveBookmark:ne,followersGroup:function renderAvatarFollowersGroup(e){return e.isShared?s("user"===e.isShared.type?e.isShared.authorId:e.isShared.shareTargetId,e.isShared.type):Object(c.jsx)(SharedBookmarkFollowers,{bookmark:e,currentUser:n,userMap:h.users,teamMap:h.teams})}(e),index:h.bookmarksUnreadProperties.indexOf(e),addSharedBookmark:te,shareBookmark:b?b(e):null,trackEvent:H})}),[te,n,o,se,l,ie,ne,t,b,K,h.bookmarksUnreadProperties,h.featureFlags.BOOKMARK_UNREAD,h.savedSearchUnread,h.teams,h.users,H]);return Object(c.jsxs)("div",{ref:P,className:l?"u-flex u-flex-column u-h-min0 u-h-100":S()("c-filter-token-select-container","c--header-wide","c--icons-".concat(Object(ce.a)(i&&!h.showSidebar,h.explicitTeamTokenEnabled&&!h.showSidebar))),children:[Object(c.jsx)(x.a,{inputProps:{placeholder:"Search for a bookmark",value:v,onChange:W,onClick:function onClick(e){e.preventDefault(),e.stopPropagation()}},multiSection:!0,focusInputOnSuggestionClick:!1,alwaysRenderSuggestions:l,highlightFirstSuggestion:!1,suggestions:X,onSuggestionsFetchRequested:R.a,onSuggestionsClearRequested:a,getSectionSuggestions:Q,getSuggestionValue:function getSuggestionValue(){return v},renderSectionTitle:le,renderSuggestion:fe,onSuggestionSelected:Z,shouldRenderSuggestions:function shouldRenderSuggestions(){return!0}}),Object(c.jsx)(L.a,{isOpen:A,onClose:G,onConfirm:$,bookmark:F,currentUser:n})]})})),be=n(1462),pe=n(644),me=n(276);n(1190);!function(e){e.SAVE_AS_NEW="SAVE_AS_NEW",e.EDIT_AND_UPDATE="EDIT_AND_UPDATE"}(le||(le={}));var he,ge=function(e){Object(i.a)(BookmarkSaverWidget,e);var t=Object(o.a)(BookmarkSaverWidget);function BookmarkSaverWidget(e){var n;return Object(r.a)(this,BookmarkSaverWidget),(n=t.call(this,e)).hideSaver=function(){n.setState({expanded:!1}),n.props.trackEvent("Bookmark","Bookmark: Cancel Bookmark Name")},n.showSaver=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:le.SAVE_AS_NEW;n.setState({expanded:!0,action:e})},n.onBookmarkInputKeyDown=function(e){"Enter"!==e.key||n.saveButtonShouldBeDisabled()||n.saveBookmarkAndHideSaver()},n.saveBookmarkAndHideSaver=function(){n.state.action===le.EDIT_AND_UPDATE&&n.props.currentBookmark?n.props.editBookmark(n.props.currentBookmark.id,n.state.bookmarkName):n.props.saveBookmark(n.state.bookmarkName),n.hideSaver()},n.updateBookmarkName=function(e){n.setState({bookmarkName:e.target.value})},n.saveButtonShouldBeDisabled=function(){return 0===n.state.bookmarkName.length||n.props.existingBookmarkNames.includes(n.state.bookmarkName)},n.state={expanded:!1,bookmarkName:"",action:le.SAVE_AS_NEW},n}return Object(a.a)(BookmarkSaverWidget,[{key:"componentDidUpdate",value:function componentDidUpdate(e){var t,n;this.props.currentBookmark!==e.currentBookmark&&this.setState({bookmarkName:null!==(t=null===(n=this.props.currentBookmark)||void 0===n?void 0:n.name)&&void 0!==t?t:""})}},{key:"render",value:function render(){var e=this;return this.state.expanded?Object(c.jsx)(pe.a,{enter:!0,exit:!1,appear:!0,className:"c-bookmark-saver__wrapper",children:Object(c.jsx)(me.a,{classNames:"c--slide",timeout:75,children:Object(c.jsxs)("div",{className:"c-bookmark-saver",children:[Object(c.jsx)("span",{className:"u-mr-sm u-ml-lg",children:"Save Bookmark as: "}),Object(c.jsx)(be.a,{id:"bookmarkInput",className:"c-bookmark-saver__input",value:this.state.bookmarkName,onChange:function onChange(t){return e.updateBookmarkName(t)},onKeyDown:this.onBookmarkInputKeyDown,placeholder:"Enter name",autoFocus:!0,maxLength:32,"data-testid":"bookmark-saver-input"}),Object(c.jsx)(H.a,{className:"u-mr-sm",id:"saveButton",buttonContent:"Save",iconGlyph:Object(A.e)(A.c.DONE),disabled:this.saveButtonShouldBeDisabled(),onClick:this.saveBookmarkAndHideSaver,dataTestId:"bookmark-saver-save"}),Object(c.jsx)(H.a,{id:"cancelButton",buttonContent:"Cancel",iconGlyph:Object(A.e)(A.c.CLEAR),onClick:this.hideSaver})]})})}):Object(c.jsx)("div",{className:"c-bookmark-saver",children:this.props.renderBookmarkButtonGroup(this.showSaver)})}}]),BookmarkSaverWidget}(s.PureComponent),je=n(530),ve=(n(1196),n(235)),Oe={Tray:k.b.div.withConfig({displayName:"search-tray__Tray",componentId:"sc-1rhf765-0"})(['&::before{content:"";width:1px;height:3.5rem;background-color:var(--border-shade);}position:relative;display:flex;flex-grow:1;align-items:center;',""],(function(e){return"true"===e.hasTokens?"  flex: 0 0 31.5rem;\n        @media (min-width: 375px) {\n          flex: 0 0 33rem;\n        }":""})),Icon:Object(k.b)(C.a).withConfig({displayName:"search-tray__Icon",componentId:"sc-1rhf765-1"})(["top:1.25rem;color:var(--text-2);position:absolute;left:var(--spacing-3);"])},Te=s.memo((function SearchTray(e){return Object(c.jsxs)(Oe.Tray,{onClick:e.onTrayClick,hasTokens:e.hasTokens.toString(),children:[Object(c.jsx)(Oe.Icon,{glyph:Object(A.e)(A.c.SEARCH)}),Object(c.jsx)(ve.a,{currentUser:e.currentUser,currentFilters:e.tokens,selectToken:e.selectToken,locationModifier:ve.b.HEADER_WIDE,suggestionTypesToExclude:e.suggestionTypesToExclude,canCompose:e.canCompose,myWorkEnabled:e.myWorkEnabled})]},"filter-tray-search")})),ye=n(236),Se=n(232),Ce={MobileSearchBar:k.b.div.withConfig({displayName:"mobile-search-bar__MobileSearchBar",componentId:"sc-1k0ypip-0"})(["background-color:var(--white);display:flex;padding:var(--spacing-1) var(--spacing-6) var(--spacing-5);border-top:1px solid var(--border-shade);"]),SearchBarButton:Object(k.b)(ye.a).withConfig({displayName:"mobile-search-bar__SearchBarButton",componentId:"sc-1k0ypip-1"})(["flex:1 1 33%;padding:var(--spacing-3);"])},Ae=s.memo((function MobileSearchBar(e){return Object(c.jsxs)(Ce.MobileSearchBar,{children:[Object(c.jsx)(Ce.SearchBarButton,{buttonText:"Filter",iconGlyph:Object(Se.b)(e.currentFilterId),iconSize:"small",onClick:e.onClickFilterButton}),Object(c.jsx)(Ce.SearchBarButton,{onClick:e.onClickSearchButton,buttonText:"Search",iconGlyph:Object(A.e)(A.c.SEARCH),iconSize:"small"}),Object(c.jsx)(Ce.SearchBarButton,{onClick:e.onClickBookmarksButton,buttonText:"Bookmarks",iconGlyph:Object(A.e)(A.c.BOOKMARK),iconSize:"small"})]})})),Ee=n(17),we=n(79),_e=n(82),Ie={MobileFilterBar:k.b.div.withConfig({displayName:"mobile-filter-bar__MobileFilterBar",componentId:"g3xhcq-0"})(["background-color:var(--white);display:flex;justify-content:space-between;width:100%;"]),Filter:Object(k.b)(_e.a).withConfig({displayName:"mobile-filter-bar__Filter",componentId:"g3xhcq-1"})(["border-radius:50%;color:var(--text-2);display:flex;align-items:center;justify-content:center;padding:var(--spacing-2);",""],(function(e){return"true"===e.active?"  background-color: var(--action-10);\n             color: var(--action-80);":""})),FilterIcon:Object(k.b)(C.a).withConfig({displayName:"mobile-filter-bar__FilterIcon",componentId:"g3xhcq-2"})(["flex-shrink:0;"])},xe=s.memo((function MobileFilterBar(e){var t=Object(g.parse)(e.location.search),n=Object(we.d)(e.location.search),r=function generateFilterLink(e,t){return{pathname:Ee.a.LIST,search:Object(g.stringify)(Object(_.a)(Object(_.a)({},t),{},{filter:e}))}},a=function renderQuickFilter(t,n,a){return Object(c.jsxs)(Ie.Filter,{to:r(t,a),onClick:e.onFilterClick,active:(n===t).toString(),children:[Object(c.jsx)(Ie.FilterIcon,{glyph:Object(Se.b)(t)}),Object(c.jsx)("span",{className:"u-clip",children:Object(d.T)(t)})]})};return Object(c.jsxs)(Ie.MobileFilterBar,{children:[a(d.D.INBOX,n,t),e.myMessagesEnabled&&!e.myWorkEnabled&&a(d.D.MY_MESSAGES,n,t),e.myWorkEnabled&&a(d.D.MY_WORK,n,t),a(d.D.FOLLOWING,n,t),a(d.D.DRAFT,n,t),a(d.D.STORED,n,t),a(d.D.SENT,n,t),a(d.D.ALL,n,t)]})})),ke=n(42),Ne=n(83),Re=n(34),Fe={Tray:k.b.div.withConfig({displayName:"mobile-search-tray__Tray",componentId:"k6apy4-0"})(["display:flex;align-items:center;padding-right:var(--spacing-3);padding-bottom:calc(var(--spacing-2) + var(--spacing-5));border-top:1px solid var(--border-shade);.c-filter-token-select-container{display:flex;}.react-autosuggest__input{padding-left:calc(var(--spacing-2) * 3);margin:0;}.react-autosuggest__container{position:initial;display:flex;flex-direction:column;background:white;}.react-autosuggest__container.react-autosuggest__container--open{position:absolute;top:0;right:0;left:0;bottom:var(--spacing-3);}.react-autosuggest__suggestions-container.react-autosuggest__suggestions-container--open{max-height:initial;height:initial;position:initial;left:0;z-index:var(--orchestra-layer);border:0;box-shadow:none;border-bottom:1px solid var(--border-shade);}"]),Button:Object(k.b)(Re.a).withConfig({displayName:"mobile-search-tray__Button",componentId:"k6apy4-1"})(["position:absolute;right:var(--spacing-6);bottom:calc(var(--spacing-3) + var(--spacing-2) + var(--spacing-5));"])},Me=s.memo((function MobileSearchTray(e){return s.useEffect((function(){var e=document.querySelector(".react-autosuggest__input");if(e)return e.addEventListener("focus",scrollToTop),function(){e.removeEventListener("focus",scrollToTop)};function scrollToTop(){setTimeout((function(){window.scrollTo(0,0)}),100)}}),[]),Object(c.jsxs)(Fe.Tray,{onClick:e.onTrayClick,children:[Object(c.jsx)(ve.a,{currentUser:e.currentUser,currentFilters:e.tokens,selectToken:e.selectToken,locationModifier:ve.b.HEADER_WIDE,suggestionTypesToExclude:e.suggestionTypesToExclude,canCompose:e.canCompose,myWorkEnabled:e.myWorkEnabled}),Object(c.jsx)(Fe.Button,{size:"small",onMouseDown:function onMouseDown(t){t.preventDefault();var n=document.querySelector(".react-autosuggest__input");n&&n.dispatchEvent(new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,repeat:!1,keyCode:13})),e.resetMobileSearchMode()},children:"Search"})]},"filter-tray-search")})),De={Header:k.b.div.withConfig({displayName:"mobile-search__Header",componentId:"sc-8tp1k7-0"})(["display:flex;align-items:center;font-size:var(--fs-lg);font-weight:var(--fw-semi);padding:var(--spacing-3) var(--spacing-3) 0;"]),Menu:k.b.div.withConfig({displayName:"mobile-search__Menu",componentId:"sc-8tp1k7-1"})(["padding:var(--spacing-3);display:flex;justify-content:space-between;align-items:center;"])},Le=s.memo((function MobileSearch(e){var t=s.useState(!1),n=Object(w.a)(t,2),r=n[0],a=n[1],i=function toggleFilterBar(){a(!r)};return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsxs)(De.Header,{children:[Object(c.jsx)(H.a,{className:"u-mr-md",buttonContent:"Close",iconGlyph:Object(A.e)(A.c.CHEVRON_DOWN),onClick:e.setSearchAppliedMode}),Object(c.jsxs)("div",{className:"u-flex-auto",children:[e.totalItemsCount.total.toLocaleString(),!e.totalItemsCount.exact&&"+"," messages"]}),Object(c.jsx)(H.a,{buttonContent:"Close",iconGlyph:Object(A.e)(A.c.CLEAR),onClick:function onCloseClick(){e.clearTokens(),e.resetMobileSearchMode()}})]}),Object(c.jsx)(De.Menu,{children:r?Object(c.jsx)(xe,{currentFilterSet:e.currentFilterSet,currentUser:e.currentUser,location:e.location,myMessagesEnabled:e.myMessagesEnabled,onFilterClick:function onFilterClick(){i()},myWorkEnabled:e.myWorkEnabled}):Object(c.jsx)(c.Fragment,{children:Object(c.jsx)(H.a,{buttonContent:e.currentFilterId,iconGlyph:Object(Se.b)(e.currentFilterId),onClick:i})})}),Object(c.jsxs)("div",{className:"u-flex u-flex-column u-h-100",children:[Object(c.jsx)("div",{className:"u-flex-auto",children:e.hasTokens&&Object(c.jsx)(je.a,{tokens:e.tokens,clearTokens:e.clearTokens,removeToken:e.removeToken,isMobile:!0,shouldShowClearButton:e.shouldShowClearButton,inlineDateFiltersEnabled:e.inlineDateFiltersEnabled,explicitTeamTokensEnabled:e.explicitTeamTokensEnabled})}),Object(c.jsx)("div",{className:"u-flex-shrink-0",children:Object(c.jsx)(Me,{tokens:e.tokens,myMessagesEnabled:e.myMessagesEnabled,onTrayClick:e.onSearchTrayClick,currentUser:e.currentUser,selectToken:e.selectToken,canCompose:e.canCompose,hasTokens:e.hasTokens,suggestionTypesToExclude:e.suggestionTypesToExclude,setSearchAppliedMode:e.setSearchAppliedMode,resetMobileSearchMode:e.resetMobileSearchMode,myWorkEnabled:e.myWorkEnabled})})]})]})})),Pe=n(148),Ue={MobileBookmarks:k.b.div.withConfig({displayName:"mobile-bookmarks__MobileBookmarks",componentId:"sc-17of18-0"})(["display:flex;flex-direction:column;height:100%;.react-autosuggest__container{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;padding-bottom:var(--spacing-5);}.react-autosuggest__input{order:2;border-right:none;border-bottom:none;border-left:none;border-radius:initial;padding:calc(var(--spacing-3) + var(--spacing-3)) calc(var(--spacing-2) * 3) calc(var(--spacing-5) + var(--spacing-2));margin-left:0;-webkit-appearance:none;}.react-autosuggest__suggestions-container{order:1;position:initial;border:none;max-height:initial;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;}.react-autosuggest__suggestion-bookmark{display:flex;}.react-autosuggest__section-container{display:flex;flex-direction:column;flex-shrink:1;}.react-autosuggest__section-title{padding-left:var(--spacing-3);padding-right:var(--spacing-3);border-bottom:1px solid var(--border-shade);}.react-autosuggest__suggestions-list{flex:1 1 auto;}.react-autosuggest__suggestion{display:flex;align-items:center;&:not(:last-child){border-bottom:1px solid var(--border-shade);}}"]),Header:k.b.div.withConfig({displayName:"mobile-bookmarks__Header",componentId:"sc-17of18-1"})(["display:flex;align-items:center;font-size:var(--fs-lg);font-weight:var(--fw-semi);padding:var(--spacing-3) var(--spacing-3) 0;"]),Menu:k.b.div.withConfig({displayName:"mobile-bookmarks__Menu",componentId:"sc-17of18-2"})(["padding:var(--spacing-3);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border-shade);"]),Content:k.b.div.withConfig({displayName:"mobile-bookmarks__Content",componentId:"sc-17of18-3"})(["display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;"])},Be=s.memo((function MobileBookmarks(e){var t=function onBookmarkClick(t){e.onBookmarkClick(t),e.resetMobileSearchMode()};return Object(c.jsxs)(Ue.MobileBookmarks,{children:[Object(c.jsxs)(Ue.Header,{children:[Object(c.jsx)(H.a,{className:"u-mr-md",buttonContent:"Close",iconGlyph:Object(A.e)(A.c.CHEVRON_DOWN),onClick:e.resetMobileSearchMode}),Object(c.jsx)("div",{className:"u-flex-auto",children:"Bookmarks"}),Object(c.jsx)(H.a,{buttonContent:"Close",iconGlyph:Object(A.e)(A.c.CLEAR),onClick:e.resetMobileSearchMode})]}),Object(c.jsx)(Ue.Content,{children:Object(c.jsx)(Pe.b,{currentUser:e.currentUser,children:function children(n){var r=n.shareBookmarkWidget,a=n.isModalOpen;return Object(c.jsx)(fe,{searchNavigator:e.searchNavigator,currentUser:e.currentUser,hideBookmark:e.hideBookmark,onBookmarkClick:t,canCompose:e.canCompose,deserializeFilterSetToString:e.deserializeFilterSetToString,isMobile:!0,shareBookmarkWidget:r,isModalOpen:a})}})})]})})),He=n(193),Ge={SearchApplied:k.b.div.withConfig({displayName:"search-applied__SearchApplied",componentId:"sc-181mo8k-0"})(["background-color:var(--white);border-top-right-radius:var(--br2);border-top-left-radius:var(--br2);border-top:1px solid var(--border-shade);padding-bottom:var(--spacing-6);"]),Header:k.b.div.withConfig({displayName:"search-applied__Header",componentId:"sc-181mo8k-1"})(["border-bottom:1px solid var(--border-shade);display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-2);"]),ResultsHeading:k.b.div.withConfig({displayName:"search-applied__ResultsHeading",componentId:"sc-181mo8k-2"})(["font-size:var(--fs-lg);font-weight:var(--fw-semi);color:var(--text-1);flex:1 1 auto;"]),SearchTokens:k.b.div.withConfig({displayName:"search-applied__SearchTokens",componentId:"sc-181mo8k-3"})(["padding:var(--spacing-3) 0;"])},We=s.memo((function SearchApplied(e){var t=1===e.totalItemsCount.total?"result":"results";return Object(c.jsxs)(Ge.SearchApplied,{children:[Object(c.jsxs)(Ge.Header,{children:[Object(c.jsx)(H.a,{className:"u-mr-md",buttonContent:"Close",iconGlyph:Object(A.e)(A.c.CHEVRON_UP),onClick:e.onClickSearchButton}),Object(c.jsxs)(Ge.ResultsHeading,{children:[e.totalItemsCount.total.toLocaleString(),!e.totalItemsCount.exact&&"+"," ",t]}),Object(c.jsx)(Re.a,{buttonStyle:"link",size:"small",onClick:function onClickClearSearch(){e.clearTokens(),e.resetMobileSearchMode()},children:"Clear"})]}),Object(c.jsx)(Ge.SearchTokens,{children:Object(c.jsx)("div",{className:"c-display-search-tokens__search-tags",children:Object(c.jsx)("ul",{className:"c-display-search-tokens__combinators",children:e.tokens.map((function(t,n){return Object(c.jsx)("li",{className:S()("c-display-search-tokens__tag",{"c--not":t.constructor===h.H,"c--or":t.constructor===h.I}),children:Object(c.jsx)(He.a,{token:t,onClick:function onClick(){return e.removeToken(n)},inlineDateFiltersEnabled:e.inlineDateFiltersEnabled})},"filter-token-".concat(n))}))})})},"filter-tray-bubbles")]})})),ze=n(270),Ve=n.n(ze),Je=(n(1216),n(581)),Ye=function MobileSearchModal(e){return Ve.a.setAppElement("#root"),Object(c.jsx)(Je.b,{portalClassName:"c-mobile-search-modal",overlayClassName:"c-mobile-search-modal__overlay",className:"c-mobile-search-modal__content",closeTimeoutMS:150,isOpen:e.isOpen,onRequestClose:e.onRequestClose,contentLabel:"Search Modal",children:e.children})};!function(e){e.MENU_BAR="menu_bar",e.FILTER_BAR="filter_bar",e.BOOKMARKS="bookmarks",e.SEARCH="search",e.SEARCH_APPLIED="search_applied"}(he||(he={}));var qe={Filters:k.b.div.withConfig({displayName:"mobile-search-menu__Filters",componentId:"ic75vu-0"})(["padding:calc(var(--spacing-3) + var(--spacing-1) + var(--spacing-2)) var(--spacing-6) calc(var(--spacing-5) + var(--spacing-3));background-color:var(--white);border-top:1px solid var(--border-shade);"])};function MobileSearchMenu(e){var t=s.useState(he.MENU_BAR),n=Object(w.a)(t,2),r=n[0],a=n[1],i=s.useCallback((function(){e.shouldShowSearchResults?a(he.SEARCH_APPLIED):a(he.MENU_BAR)}),[e.shouldShowSearchResults,a]);s.useEffect((function(){r!==he.SEARCH_APPLIED&&r!==he.MENU_BAR||i()}),[e.shouldShowSearchResults,i,r]);var o=function onClickFilterButton(){a(he.FILTER_BAR)},l=function onClickSearchButton(){a(he.SEARCH)},u=function onClickBookmarksButton(){a(he.BOOKMARKS),e.fetchBookmarks()},d=function setSearchAppliedMode(){a(he.SEARCH_APPLIED)},b=(e.searchNavigator.hasNextPage()?e.searchNavigator.totalItems:ke.a.of({total:e.searchNavigator.items.length,exact:!0})).orElse({total:0,exact:!0}),p=Object(we.d)(e.location.search);return Object(c.jsxs)(c.Fragment,{children:[function renderContent(t){switch(t){case he.SEARCH_APPLIED:return Object(c.jsx)(We,{onClickSearchButton:l,totalItemsCount:b,clearTokens:e.clearTokens,resetMobileSearchMode:i,tokens:e.tokens,removeToken:e.removeToken,inlineDateFiltersEnabled:e.inlineDateFiltersEnabled});case he.FILTER_BAR:return Object(c.jsx)(qe.Filters,{children:Object(c.jsx)(xe,{currentFilterSet:e.currentFilterSet,currentUser:e.currentUser,location:e.location,myMessagesEnabled:e.myMessagesEnabled,onFilterClick:i,myWorkEnabled:e.myWorkEnabled})});case he.MENU_BAR:return Object(c.jsx)(Ae,{currentFilterId:p,onClickFilterButton:o,onClickSearchButton:l,onClickBookmarksButton:u});default:return null}}(r),Object(c.jsxs)(Ye,{isOpen:r===he.SEARCH||r===he.BOOKMARKS,onRequestClose:i,children:[r===he.SEARCH&&function renderSearch(){return Object(c.jsx)(Le,{totalItemsCount:b,resetMobileSearchMode:i,currentUser:e.currentUser,currentFilterSet:e.currentFilterSet,canCompose:e.currentUser.permissions.includes(Ne.a.compose_message),showBookmarkSaverWidget:!1,myMessagesEnabled:e.myMessagesEnabled,location:e.location,currentFilterId:p,selectToken:e.selectToken,hasTokens:e.tokens.length>0,suggestionTypesToExclude:e.suggestionTypesToExclude,onSearchTrayClick:e.onSearchTrayClick,tokens:e.tokens,clearTokens:e.clearTokens,removeToken:e.removeToken,setSearchAppliedMode:d,shouldShowClearButton:e.shouldShowSearchResults,inlineDateFiltersEnabled:e.inlineDateFiltersEnabled,myWorkEnabled:e.myWorkEnabled,explicitTeamTokensEnabled:e.explicitTeamTokensEnabled})}(),r===he.BOOKMARKS&&function renderBookmarks(){return Object(c.jsx)(Be,{searchNavigator:e.searchNavigator,onBookmarkClick:e.onBookmarkClick,hideBookmark:e.hideBookmark,deserializeFilterSetToString:e.deserializeFilterSetToString,currentUser:e.currentUser,canCompose:e.canCompose,resetMobileSearchMode:i})}()]})]})}var Ke=n(873),Xe=n(152),Qe=(n(1217),n(143)),Ze=n(231),$e=n(15),et=n(107),tt=n(371),nt={TeamListItem:k.b.li.withConfig({displayName:"team-select-container__TeamListItem",componentId:"sc-1j77hix-0"})(["margin:0 var(--spacing-3) var(--spacing-3) 0;"]),TeamList:k.b.ul.withConfig({displayName:"team-select-container__TeamList",componentId:"sc-1j77hix-1"})(["display:flex;flex-wrap:wrap;margin:0;padding:0;list-style-type:none;"]),ModifierTag:Object(k.b)(Qe.a).withConfig({displayName:"team-select-container__ModifierTag",componentId:"sc-1j77hix-2"})(["margin:0 var(--spacing-3) var(--spacing-3) 0;cursor:pointer;",""],(function(e){return e.className.includes("c--outline")?"border-style: dashed;\n      background: white !important;":""}))},rt=function TeamSelectContainer(e){var t=Object(m.d)((function(t){return Object(F.b)(t,e.currentUser)})),n=t.teams,r=t.allTeams,a=Object(m.d)((function(t){return Object(F.a)(t,e.currentUser)}));if(!(a instanceof tt.a))throw new Error("Deserializer here must support teams");var i=Object(s.useMemo)((function(){return new Map(n.map((function(e){return[e.id,e]})))}),[n]),o=Object(u.useDispatch)(),b=Object(l.g)(),p=a.fromQueryParams(b.search).find((function(e){return(e instanceof d.k&&t.teamFilterSet instanceof d.k||e instanceof d.l&&t.teamFilterSet instanceof d.l)&&e.equals(t.teamFilterSet)})).isPresent(),h=Object(s.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o(new et.a(t?"all":Object(T.a)(e.keys()),b).navigateToFilter())}),[o,b]),g="inactive",j="active",v=function teamTagOnClick(t){!function toggleTeamTagStatus(t){var n,a,o=t.id,c=new Map(r?e.teamsAvailableToUser.map((function(e){return[e.id,e]})):i);!c.has(o)&&(null===(n=e.trackOldUIEvent)||void 0===n||n.call(e,"Navigation Bar: ".concat(e.userDefaultTeam.toString()===t.id?"Default":""," Team Token Selected"))),null===(a=e.trackOldUIEvent)||void 0===a||a.call(e,"Navigation Bar: Team Token Multiple ".concat(c.has(o)?"Removed":"Selected")),c.has(o)?c.delete(o):c.set(o,t),h(c)}(t)};Object(s.useEffect)((function(){e.teamsAvailableToUser.every((function(e){return i.has(e.id)}))&&e.teamsAvailableToUser.length>1&&!r&&o(new et.a("all",b).navigateToFilter())}),[i,e.teamsAvailableToUser,h,r,o,b]);var O=Object(s.useCallback)((function(){var t;!r&&(null===(t=e.trackOldUIEvent)||void 0===t||t.call(e,"Navigation Bar - Expanded: All Teams")),r?h(new Map,!1):h(new Map(e.teamsAvailableToUser.map((function(e){return[e.id,e]}))),!0)}),[r,e,h]);return Object(c.jsx)(Xe.a,{content:Object(c.jsxs)("div",{children:[Object(c.jsx)("header",{children:$e.b.t($e.a.TEAM,{count:e.teamsAvailableToUser.length})}),Object(c.jsxs)(nt.TeamList,{"data-testid":"team-select-items",children:[e.teamsAvailableToUser.length>1&&Object(c.jsx)(nt.ModifierTag,{label:"All Teams",state:r?j:g,onClick:O,icon:A.c.TENANT,className:" ".concat(r?"":"c--outline")}),function sortUserTeams(e,t){return Object(T.a)(e).sort((function(e,n){return e.id===t.toString()?-1:e.name>n.name||n.id===t.toString()?1:-1}))}(e.teamsAvailableToUser,e.userDefaultTeam).map((function(t){return Object(c.jsx)(nt.TeamListItem,{children:Object(c.jsx)(Ze.a,{"data-testid":"team-select-item",label:t.name||"",state:r||i.has(t.id)?j:g,onClick:function onClick(){return v(t)},defaultTeam:e.defaultTeamBadgeEnabled&&e.userDefaultTeam.toString()===t.id},t.id)},t.id)}))]})]}),theme:"teamSelect",trigger:"click",duration:[0,0],arrow:!1,placement:"bottom-start",interactive:!0,enabled:p,children:Object(c.jsx)("span",{children:Object(c.jsx)(H.a,{iconGlyph:Object(A.e)(A.c.PEOPLE),className:"c-icon-button u-mr-sm u-ml-sm",dataTestId:"team-select-button",onClick:function onClick(){var t;return null===(t=e.trackOldUIEvent)||void 0===t?void 0:t.call(e,"Navigation Bar: Teams")},disabled:!p,buttonContent:p?"Select teams":"Team tokens are active in search",showContentWhenDisabled:!0})})})},at={ButtonGroup:k.b.div.withConfig({displayName:"button-group__ButtonGroup",componentId:"sc-1dxcjcj-0"})(["display:inline-flex;margin:0 var(--spacing-2) 0 var(--spacing-2);background-color:transparent;border:none;border-radius:var(--br1);color:var(--text-2);> button:last-child{padding:var(--spacing-2) var(--spacing-3);transition:none;border-radius:0 var(--br1) var(--br1) 0;}> button:first-child{padding:var(--spacing-2) var(--spacing-3);border-radius:var(--br1) 0 0 var(--br1);}"])};function ButtonGroup(e){return Object(c.jsx)(at.ButtonGroup,{children:e.children})}var it=n(151),ot=n(71),ct=n(84),st=Object(ct.c)((function(e,t,n){return e.map((function(e){return e.some((function(e){return n.deserialize(e.filterSet).orElseThrow().equals(t)}))})).orElse(!1)})),lt=Object(m.b)([function(e){return e.entities.savedSearch},function(e){return e.ui.currentSavedSearch}],(function(e,t){var n;return null!==(n=b.g(e,b.a).orElse([]).find((function(e){return e.id===t.id})))&&void 0!==n?n:null})),ut={BookmarkDropdown:Object(k.b)(it.a).withConfig({displayName:"bookmark-button-group__BookmarkDropdown",componentId:"sc-16ihcdj-0"})(["padding:var(--spacing-2) var(--spacing-1) !important;border-radius:0 var(--br1) var(--br1) 0;.c-icon{margin-right:0;}&:focus{box-shadow:none;}"])},dt=Object(m.b)([function(e){return Object(b.g)(e.entities.savedSearch,b.a)},function(e){return Object(b.g)(e.entities.tenantConfig,b.a).map((function(e){return e.settings.SAVED_SEARCH})).orElse(0)},function(e,t){return Object(F.a)(e,t)},function(e){return Object(se.a)(e)}],(function(e,t,n,r){var a=e.map((function(e){return e.length<t})).orElse(0!==t);return{savedSearches:e,filterSetDeserializer:n,explicitTeamToken:r,belowMaxSavedSearches:a}}));function BookmarkButtonGroup(e){var t,n,r=e.currentBookmark,a=e.editBookmark,i=e.renderBookmarkIconButton,o=e.showSaver,d=Object(u.useDispatch)(),b=s.useCallback((function(){r&&(a(r.id,r.name),d(D.a.withEvent({eventAction:"Bookmark: Update Bookmark",eventCategory:"Bookmark"})))}),[r,d,a]),p=s.useCallback((function(){o(le.EDIT_AND_UPDATE),d(D.a.withEvent({eventAction:"Bookmark: Rename Bookmark",eventCategory:"Bookmark"}))}),[d,o]),h=s.useCallback((function(){o(le.SAVE_AS_NEW),d(D.a.withEvent({eventAction:"Bookmark: Save As New",eventCategory:"Bookmark"}))}),[d,o]),j=Object(m.d)((function(t){return dt(t,e.currentUser)})),v=j.savedSearches,O=j.filterSetDeserializer,T=j.explicitTeamToken,y=j.belowMaxSavedSearches,C=Object(l.g)(),E=Object(g.parse)(C.search),_=T||Boolean(E.filterSet),I=void 0!==(null===r||void 0===r?void 0:r.isShared),x=Object(s.useCallback)((function(){return _&&st(v,e.currentFilter,O)||Boolean(E.bookmark)}),[E.bookmark,O,e.currentFilter,v,_]),k=Object(s.useState)(x()),N=Object(w.a)(k,2),R=N[0],F=N[1],M=null===(t=r&&R)||void 0===t||t,L=Object(s.useCallback)((function(){F(x())}),[x]);return Object(c.jsxs)(ButtonGroup,{children:[i(),Object(c.jsxs)(ut.BookmarkDropdown,{icon:Object(A.e)(A.c.CHEVRON_DOWN),subtitle:null!==(n=null===r||void 0===r?void 0:r.name)&&void 0!==n?n:"More actions",className:S()("c-icon-button","c--button-group-last--child"),dataTestId:"bookmark-update",disabled:!_||I,onOpen:L,onClick:function onClickMoreActions(){d(D.a.withEvent({eventAction:"Bookmark: More Actions",eventCategory:"Bookmark"}))},children:[Object(c.jsx)(ot.a,{onClick:b,icon:Object(A.e)(A.c.SAVE),disabled:M,children:"Update Bookmark"}),Object(c.jsx)(ot.a,{onClick:p,icon:Object(A.e)(A.c.EDIT),disabled:!r,children:"Rename Bookmark"}),Object(c.jsx)(ot.a,{onClick:h,icon:Object(A.e)(A.c.BOOKMARK_ADD),disabled:R||!y,children:"Save As New"})]})]})}var ft=function(e){Object(i.a)(FilterTray,e);var t=Object(o.a)(FilterTray);function FilterTray(e){var n;return Object(r.a)(this,FilterTray),(n=t.call(this,e)).bookmarkSaverWidget=null,n.renderTeamSelector=function(){if(n.props.explicitTeamTokenEnabled&&!n.props.showSidebar)return Object(c.jsx)("div",{className:"c-filter-tray__teams-icon-container",children:Object(c.jsx)(rt,{defaultTeamBadgeEnabled:n.props.featureFlags.DEFAULT_TEAM_BADGE,teamsAvailableToUser:n.props.teams,userDefaultTeam:n.props.currentUser.defaultTeamId,currentUser:n.props.currentUser,trackOldUIEvent:n.props.trackOldUIEvent})})},n.renderBookmarkIconButton=function(){var e=n.props.bookmarks,t=n.state.showBookmarkSelector,r=!!e.length&&t;return Object(c.jsx)(H.a,{className:S()("c-filter-tray__bookmark-icon",{"c--active":r}),buttonContent:"Bookmarks",iconGlyph:Object(A.e)(A.c.BOOKMARK),disabled:!e.length,onMouseDown:n.toggleBookmark,onClick:function onClick(e){e.preventDefault(),e.stopPropagation()},"data-testid":"bookmark-toggle"})},n.renderBookmarkButtonGroup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ke.a,t=n.props.currentUser;return Object(c.jsx)(BookmarkButtonGroup,{renderBookmarkIconButton:n.renderBookmarkIconButton,showSaver:e,currentUser:t,currentBookmark:n.props.currentBookmark,editBookmark:n.props.editBookmark,currentFilter:n.props.currentFilterSet})},n.renderBookmarkSection=function(){return Object(c.jsx)(ge,{saveBookmark:n.props.saveBookmark,existingBookmarkNames:n.props.bookmarks.map((function(e){return e.name})),renderBookmarkButtonGroup:n.renderBookmarkButtonGroup,editBookmark:n.props.editBookmark,currentBookmark:n.props.currentBookmark,trackEvent:n.props.trackEvent})},n.renderBookmarkSelector=function(){return Object(c.jsxs)("div",{className:S()("c-filter-tray__search-container",{"c--active":n.state.tokens.length>0}),onClick:n.onTrayClick,children:[Object(c.jsx)(C.a,{className:"c-filter-tray__search-icon",glyph:Object(A.e)(A.c.SEARCH)}),Object(c.jsx)(Pe.b,{currentUser:n.props.currentUser,children:function children(e){var t=e.shareBookmarkWidget,r=e.isModalOpen;return Object(c.jsx)(fe,{searchNavigator:n.props.searchNavigator,currentUser:n.props.currentUser,hideBookmark:n.hideBookmark,onBookmarkClick:n.onBookmarkClick,canCompose:n.props.canCompose,deserializeFilterSetToString:n.props.deserializeFilterToString,isMobile:n.props.isMobile,shareBookmarkWidget:t,isModalOpen:r})}})]},"filter-tray-search")},n.renderSearchTray=function(){var e=n.state.tokens,t=n.props,r=t.myMessagesEnabled,a=t.unreadCommentEnabled,i=e.length>0,o=e.find((function(e){return e instanceof h.e})),s=e.find((function(e){return e instanceof h.a})),l=e.find((function(e){return e instanceof h.L})),u=new Set([r?null:h.S.MY_MESSAGE,a?null:h.S.HAS_UNREAD_COMMENT,o||l?h.S.BEFORE:null,s||l?h.S.AFTER:null,s||o||l?h.S.SINCE:null].filter((function(e){return null!==e})));return n.props.isMobile?Object(c.jsx)(Te,{tokens:n.state.tokens,myMessagesEnabled:n.props.myMessagesEnabled,onTrayClick:n.onTrayClick,currentUser:n.props.currentUser,selectToken:n.selectToken,canCompose:n.props.canCompose,hasTokens:i,suggestionTypesToExclude:u,myWorkEnabled:n.props.featureFlags.MY_WORK}):Object(c.jsxs)("div",{className:S()("c-filter-tray__search-container",{"c--active":i}),onClick:n.onTrayClick,children:[Object(c.jsx)(C.a,{className:"c-filter-tray__search-icon",glyph:Object(A.e)(A.c.SEARCH)}),Object(c.jsx)(ve.a,{currentUser:n.props.currentUser,currentFilters:n.state.tokens,selectToken:n.selectToken,locationModifier:ve.b.HEADER_WIDE,suggestionTypesToExclude:u,canCompose:n.props.canCompose,isMobile:n.props.isMobile,editingToken:n.state.editingToken,saveToken:n.saveToken,onBlur:n.onBlur,myWorkEnabled:n.props.featureFlags.MY_WORK,trackSearchClick:n.trackSearchClick})]},"filter-tray-search")},n.renderTags=function(){return n.state.tokens.length>0&&Object(c.jsx)(je.a,{tokens:n.state.tokens,clearTokens:n.clearTokens,removeToken:n.removeToken,isMobile:n.props.isMobile,shouldShowClearButton:n.props.showClear,inlineDateFiltersEnabled:n.props.featureFlags.INLINE_DATE_FILTERS,editToken:n.editToken,editingToken:n.state.editingToken,explicitTeamTokensEnabled:n.props.explicitTeamTokenEnabled})},n.trackSearchClick=function(){return n.props.trackEvent("Search","Search: Main Search")},n.toggleBookmark=function(e){e.preventDefault(),n.props.trackEvent("Bookmark","Bookmark: Open Modal"),n.setState((function(e){return{showBookmarkSelector:!e.showBookmarkSelector}}))},n.hideBookmark=function(){n.setState({showBookmarkSelector:!1})},n.onBlur=function(){n.setState({editingToken:null})},n.saveToken=function(e){var t,r=Object(T.a)(n.state.tokens);if(r[null===(t=n.state.editingToken)||void 0===t?void 0:t.index]=e,e.type===h.S.AFTER_TIME||e.type===h.S.BEFORE_TIME||e.type===h.S.RELATIVE_TIME)return n.setState({tokens:r,editingToken:null},(function(){return n.props.changeSearch(n.getFilterSetFromTokens(r))}))},n.editToken=function(e){var t=n.state.tokens[e];if(t&&(t.type===h.S.AFTER_TIME||t.type===h.S.BEFORE_TIME||t.type===h.S.RELATIVE_TIME))return n.setState({editingToken:{index:e,token:t.type}})},n.onTrayClick=function(){n.props.onClick(),n.bookmarkSaverWidget&&n.bookmarkSaverWidget.hideSaver()},n.onBookmarkClick=function(e){n.hideBookmark(),n.props.onBookmarkClick(e)},n.selectToken=function(e){var t=n.state.tokens[n.state.tokens.length-1],r=Object(T.a)(n.state.tokens);if(!n.props.explicitTeamTokenEnabled||!(e instanceof h.P||e instanceof h.c)||t instanceof h.H)r=Object(E.a)(r,e);else{var a=Object(E.d)(r,(function(e){return e instanceof h.P||e instanceof h.c}));if(a>=0){var i=r[a];i instanceof h.c&&e instanceof h.P||i instanceof h.P&&e instanceof h.c?r.splice(a,1,e):r.splice(a+1,0,new h.I,e),r[r.length-1]instanceof h.I&&r.splice(r.length-1,1)}else r=Object(E.a)(r,e)}n.isTimeDisplayToken(t)&&r.splice(n.state.tokens.length-1,1),n.setState({tokens:r},(function(){n.isDisplayToken(e)||n.props.changeSearch(n.getFilterSetFromTokens(r))})),n.props.trackEvent("Token added","Token added: ".concat(e.type.toLowerCase().replace(/_/g," ")))},n.removeToken=function(e){var t=n.state.tokens[e],r=function getPreviousTeamIndex(e,t){var n=t[e],r=-1;if(!(n instanceof h.P||n instanceof h.c))return r;for(var a=e-1;a>=0;a--){var i=t[a];if(a===e-1){if(i.type===h.S.OR)continue;break}if(a===e-2){(i instanceof h.P||i instanceof h.c)&&(r=a);break}}return r}(e,n.state.tokens),a=function getNextTeamIndex(e,t){var n=t[e],r=-1;if(!(n instanceof h.P||n instanceof h.c))return r;for(var a=e+1;a<t.length;a++){var i=t[a];if(a===e+1){if(i.type===h.S.OR)continue;break}if(a===e+2){(i instanceof h.P||i instanceof h.c)&&(r=a);break}}return r}(e,n.state.tokens),i=n.state.tokens.filter((function(t,n){return n!==e}));return a>=0?i.splice(e,a-e-1):r>=0&&i.splice(r+1,e-r-1),n.props.explicitTeamTokenEnabled&&t instanceof h.P&&a<=0&&n.isDefaultTeamFilter(n.props.currentFilterSet)&&i.splice(a,1,new h.c),n.props.trackEvent("Tokens removed","Token removed: ".concat(t.type.toLowerCase().replace(/_/g," "))),n.setState({tokens:i,editingToken:null},(function(){return n.props.changeSearch(n.getFilterSetFromTokens(i))}))},n.clearTokens=function(){n.props.clearSearch(),n.setState((function(){return{editingToken:null}})),n.props.trackEvent("Tokens removed","Tokens removed :All tokens cleared")},n.getFilterSetFromTokens=function(e){var t=n.props.parser.parse(e);return t instanceof d.l?d.k.fromFilterTerm(t):t},n.state={tokens:[],showBookmarkSelector:!1,bookmarkDropDownEnabled:!1,editingToken:null},n}return Object(a.a)(FilterTray,[{key:"componentDidMount",value:function componentDidMount(){this.setTokensFromFilter(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function UNSAFE_componentWillReceiveProps(e){this.setTokensFromFilter(e)}},{key:"render",value:function render(){if(this.props.isMobile){var e=new Set([this.props.myMessagesEnabled?null:h.S.MY_MESSAGE,this.props.unreadCommentEnabled?null:h.S.HAS_UNREAD_COMMENT,h.S.BEFORE,h.S.AFTER,h.S.AFTER_TIME,h.S.BEFORE_TIME,h.S.SINCE].filter((function(e){return null!==e})));return Object(c.jsx)(MobileSearchMenu,{currentFilterSet:this.props.currentFilterSet,currentUser:this.props.currentUser,location:this.props.location,myMessagesEnabled:this.props.myMessagesEnabled,searchNavigator:this.props.searchNavigator,tokens:this.state.tokens,onSearchTrayClick:this.onTrayClick,selectToken:this.selectToken,canCompose:this.props.canCompose,shouldShowSearchResults:this.props.showClear,suggestionTypesToExclude:e,clearTokens:this.clearTokens,removeToken:this.removeToken,hideBookmark:this.hideBookmark,onBookmarkClick:this.onBookmarkClick,deserializeFilterSetToString:this.props.deserializeFilterToString,fetchBookmarks:this.props.fetchBookmarks,inlineDateFiltersEnabled:this.props.featureFlags.INLINE_DATE_FILTERS,myWorkEnabled:this.props.featureFlags.MY_WORK,explicitTeamTokensEnabled:this.props.explicitTeamTokenEnabled})}return Object(c.jsxs)(c.Fragment,{children:[this.renderBookmarkSection(),this.renderTeamSelector(),this.state.showBookmarkSelector?this.renderBookmarkSelector():this.renderSearchTray(),this.renderTags()]})}},{key:"setTokensFromFilter",value:function setTokensFromFilter(e){var t=Object(h.U)(e.currentFilterSet);this.getFilterSetFromTokens(t).equals(this.getFilterSetFromTokens(this.state.tokens))||this.setState((function(){return{tokens:t}}))}},{key:"isDefaultTeamFilter",value:function isDefaultTeamFilter(e){var t=this;return e.find((function(e){return e instanceof d.J&&e.value.id===t.props.currentUser.defaultTeamId.toString()})).isPresent()}},{key:"isTimeDisplayToken",value:function isTimeDisplayToken(e){return e instanceof h.f||e instanceof h.b||e instanceof h.N}},{key:"isDisplayToken",value:function isDisplayToken(e){return this.isTimeDisplayToken(e)||e instanceof h.H||e instanceof h.I}}]),FilterTray}(s.PureComponent),bt=n(312),pt=function(e){Object(i.a)(FilterTrayContainerComponent,e);var t=Object(o.a)(FilterTrayContainerComponent);function FilterTrayContainerComponent(){var e;Object(r.a)(this,FilterTrayContainerComponent);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).changeSearch=function(t,n){return e.props.changeSearch(t,e.props.location,e.props.currentUser,n)},e.clearSearch=function(){e.props.clearTermsNavigate(e.props.location),e.props.clearCurrentSearch()},e.deserializeFilterToString=function(t){return e.props.filterSetDeserializer.deserialize(t).map((function(t){return e.props.filterSetDeserializer.toFilterQuery(t)})).map((function(e){return Object(g.stringify)(e)})).orElseThrow()},e.onBookmarkClick=function(t){var n,r=null===(n=e.props.buckets)||void 0===n?void 0:n.find((function(e){return e.id===t.id}));r&&(e.fetchBucketItemCount(r.unreadBucketFilterSet,r.unreadBucketSearchQuery,e.props.featureFlags.UNREAD_COMMENT_IN_BUCKET?r.unreadCommentOrMessageQuery:r.unreadBucketSearchQuery),e.props.featureFlags.UNREAD_COMMENT_IN_BUCKET&&e.fetchBucketItemCount(r.unreadCommentBucketFilterSet,r.unreadCommentBucketSearchQuery,r.unreadCommentOrMessageQuery)),e.props.changeSearch(e.props.filterSetDeserializer.deserialize(t.filterSet).orElseThrow(),e.props.location,e.props.currentUser,t.name)},e.fetchBookmarks=function(){e.props.requestSavedFilters(e.props.filterSetDeserializer,e.deserializeFilterToString)},e.fetchBucketItemCount=function(t,n,r){var a=Object(g.parse)(r).order===v.b.FROM_OLDEST?v.b.FROM_OLDEST:v.b.FROM_NEWEST;e.props.fetchMessageCount(n,e.props.searchNavigator.currentUser.id,t,v.c.BY_RECEIVED_DATE,a,e.props.searchNavigator.getOptions()),e.props.trackEvent("Bookmark","Bookmark: Bucket Selected")},e.parser=function(){return new h.n({categories:b.h(e.props.categories),jobs:b.h(e.props.jobs),people:b.h(e.props.people),teams:b.h(e.props.teams)})},e.onCreateSavedSearch=function(t){e.props.createSavedSearch(t,e.props.currentFilterSet)},e.onEditSavedSearch=function(t,n){e.props.editSavedSearch(t,n,e.props.currentFilterSet,e.deserializeFilterToString)},e.markCurrentSavedSearch=function(){var t=Object(g.parse)(e.props.location.search);if(e.props.showingSearchResults(t.filterSet)){var n=e.props.savedSearches.orElse([]).find((function(t){return e.props.filterSetDeserializer.deserialize(t.filterSet).orElseThrow().equals(e.props.currentFilterSet)}));n&&e.props.markCurrentSavedSearch(n.id)}else e.props.markCurrentSavedSearch(null)},e}return Object(a.a)(FilterTrayContainerComponent,[{key:"UNSAFE_componentWillMount",value:function UNSAFE_componentWillMount(){this.props.savedSearches.isNotLoading()&&this.fetchBookmarks()}},{key:"componentDidUpdate",value:function componentDidUpdate(e){e.currentFilterSet.equals(this.props.currentFilterSet)||this.markCurrentSavedSearch()}},{key:"render",value:function render(){var e=Object(g.parse)(this.props.location.search).filterSet;return Object(c.jsx)(ft,{currentFilterSet:this.props.currentFilterSet,changeSearch:this.changeSearch,clearSearch:this.clearSearch,showClear:Boolean(e),currentUser:this.props.currentUser,parser:this.parser(),onClick:this.props.onClick,bookmarks:this.props.savedSearches.orElse([]),onBookmarkClick:this.onBookmarkClick,saveBookmark:this.onCreateSavedSearch,editBookmark:this.onEditSavedSearch,myMessagesEnabled:this.props.myMessagesEnabled,canCompose:this.props.canCompose,deserializeFilterToString:this.deserializeFilterToString,isMobile:this.props.isMobile,location:this.props.location,searchNavigator:this.props.searchNavigator,unreadCommentEnabled:this.props.unreadCommentInSearch,fetchBookmarks:this.fetchBookmarks,teams:this.props.userAccessibleTeams,featureFlags:this.props.featureFlags,explicitTeamTokenEnabled:this.props.explicitTeamTokenEnabled,currentBookmark:this.props.currentBookmark,filterSetDeserializer:this.props.filterSetDeserializer,trackEvent:this.props.trackEvent,showingSearchResults:this.props.showingSearchResults(e),showSidebar:this.props.showSidebar,trackOldUIEvent:this.props.trackOldUIEvent})}}]),FilterTrayContainerComponent}(s.PureComponent),mt=Object(m.b)([function(e){return b.g(e.entities.savedSearch,b.a)},function(e){return e.entities.categoryTag},function(e){return e.entities.jobReference},function(e){return e.entities.user},function(e){return e.entities.team},function(e,t){return Object(j.a)(e,t.currentUser)},function(e,t){return Object(bt.b)(e,t.currentUser)},function(e){return e.ui},se.a,function(e,t){return t.currentFilterSet},function(e,t){return Object(F.a)(e,t.currentUser)},function(e,t){return lt(e)}],(function(e,t,n,r,a,i,o,c,s,l,u,d){return{savedSearches:e,categories:t,jobs:n,people:r,teams:a,buckets:i.toNullable(),userAccessibleTeams:o,featureFlags:c.featureFlags,explicitTeamTokenEnabled:s,currentBookmark:d,showingSearchResults:function showingSearchResults(e){return s||Boolean(e)},showSidebar:c.sidebar.isEnabled}})),ht={fetchMessageCount:function fetchMessageCount(e,t,n,r,a,i){return new O.p(e,t,null,r,a,!1,i,$.j.BUCKET,n)},clearTermsNavigate:function clearTermsNavigate(e){return new et.b(e).navigateToFilter()},clearCurrentSearch:function clearCurrentSearch(){return new p.a},changeSearch:function changeSearch(e,t,n,r){return new et.c(e,t,n,d.D.ALL,r,!1)},requestSavedFilters:function requestSavedFilters(e,t){return new p.m(e,t)},deleteBookmark:function deleteBookmark(e){return new p.r(e)},createSavedSearch:function createSavedSearch(e,t){return new p.o(e,t)},editSavedSearch:function editSavedSearch(e,t,n,r){return new p.q(e,t,n,r)},markCurrentSavedSearch:function markCurrentSavedSearch(e){return new p.k(e)},trackEvent:function trackEvent(e,t){return new D.a(e,t)},trackOldUIEvent:function trackOldUIEvent(e){return D.a.withEvent(Object(D.m)(e))}},gt=Object(l.j)(Object(u.connect)(mt,ht)(pt))},function(e,t,n){"use strict";n.d(t,"b",(function(){return K})),n.d(t,"a",(function(){return Q}));var r=n(4),a=n(86),i=n(3),o=n(10),c=n(5),s=n(6),l=n(0),u=n(1),d=n(1476),b=n(163),p=n(28),m=n(84),h=n(22),g=n(30),j=n(125),v=n(2),O=n(17),T=n(47),y=n(42),S=n(13),C=n(57),A=n(268),E=n(79),w=n(29),_=n(363),I=n(210),x=n(76),k=n(77),N=n(23),R=n(100),F=n(101);function ListNavigation(e){var t=e.activeItems,n=e.multiSelectItem,r=e.searchNavigator,a=e.selectItem,i=Object(u.useMemo)((function(){return r.items.reduce((function(e,n){var r=t.find((function(e){return e.id===n.id&&e.type===n.type}));return r?[].concat(Object(N.a)(e),[r]):e}),[])}),[t,r.items]),o=Object(u.useCallback)((function(){var e=i[i.length-1];e&&r.getNextItem(e.id).map((function(e){var t={id:e.id,type:e.type};return n([].concat(Object(N.a)(i),[t]))}))}),[r,n,i]),c=Object(u.useCallback)((function(){var e=i[0];e&&r.getPreviousItem(e.id).map((function(e){var t=e.id,r=e.type;return n([{id:t,type:r}].concat(Object(N.a)(i)))}))}),[r,n,i]),s=Object(u.useCallback)((function(){var e=r.items[0];a(e.type,e.id)}),[a,r.items]);return Object(R.a)(F.c,o,[o]),Object(R.a)(F.d,c,[c]),Object(R.a)(F.l,s,[s]),Object(l.jsx)(l.Fragment,{})}var M=n(367),D=n(804),L=n(52),P=n(365),U=n(25),B=n(8);function WithPagination(e){var t=e.searchNavigator;return(0,e.children)(function usePagination(e){var t=Object(p.useSelector)((function(e){return e.ui.list.listLoading})),n=Object(p.useSelector)((function(e){return e.ui.pagination}),p.shallowEqual),r=n.lastLoadedTimestamp,a=n.cursorTimestampOfLastRequest,i=n.numMessagesLoaded,o=n.total,c=e.currentUser,s=e.currentFilterSet,l=e.currentSort,d=e.currentLocation,b=Object(p.useDispatch)(),m=Object(u.useMemo)((function(){var t=e.items;return U.a.of(t[t.length-1]).flatMap((function(e){return Object(P.b)(e,l)===a?U.a.empty():U.a.of(e)}))}),[l,a,e.items]),h=Object(u.useMemo)((function(){return!(o&&o===i||t===B.k.LOADING||null===a&&null===r||null===r||a===r)}),[a,r,t,i,o]);return Object(u.useCallback)((function(){m.ifPresent((function(t){h&&(b(T.q.fromCursorAndSearch(c,t,s,l,d.search,!1,e.getOptions(),B.j.LIST,B.i.NEXT_PAGE)),b(new T.b))}))}),[h,s,d.search,l,c,b,m,e])}(t))}var H=n(184),G=function mapStateToProps(e,t){return{allBucketProps:Object(I.a)(e,t.currentUser,t.searchNavigator.currentLocation.search),unreadCommentSearchToken:e.ui.featureFlags.UNREAD_COMMENT_IN_BUCKET,numBuckets:e.ui.searchState===B.q.CRITICAL?0:e.ui.featureFlags.SEARCH_BUCKETS}},W=function mapDispatchToProps(e){return{fetchMessageCount:function fetchMessageCount(t,n,r,a,i,o){return e(new T.p(t,n,null,a,i,!1,o,B.j.BUCKET,r))}}};var z=n(107),V=n(93),J=n(591),Y=function(e){Object(c.a)(ListComponent,e);var t=Object(s.a)(ListComponent);function ListComponent(e){var n;return Object(i.a)(this,ListComponent),(n=t.call(this,e)).intervalForReload=null,n.heartBeatTimestamp=null,n.bucketReloadIntervalHandlers=new Map,n.renderBlockBasedList=function(e,t){var r=n.props,a=r.searchNavigator,i=r.messageTotal,o=r.allBucketProps,c=r.pullToRefresh,s=r.lastListScrollPosition,u=r.lastListScrollPositionMessageId,d=r.lastListScrollPositionAbsoluteTop,b=r.lastMessageId,p=r.listQuickFiltersEnabled,m={lastListScrollPosition:s,lastListScrollPositionMessageId:u,lastListScrollPositionAbsoluteTop:d,lastMessageId:b},h=n.props.numBuckets?o.map((function(e){return e.map((function(e){return{id:e.id,bucketName:e.bucketName,bucketType:e.bucketType,bucketSearchQuery:e.bucketSearchQuery,bucketUnread:retrieveCount(i,e.unreadBucketSearchQuery),bucketCommentOrMessageUnread:retrieveCount(i,e.unreadCommentOrMessageQuery),bucketCommentUnread:retrieveCount(i,e.unreadCommentBucketSearchQuery),returnFromBucketFullView:n.returnFromBucketFullView,goToBucketFullView:n.goToBucketFullView,subscribeSavedSearch:function subscribeSavedSearch(){return n.props.subscribeSavedSearch(e.id)},unsubscribeSavedSearch:function unsubscribeSavedSearch(){return n.props.unsubscribeSavedSearch(e.id)},bucketTotal:retrieveCount(i,e.bucketSearchQuery),isSubscribed:e.isSubscribed,canSubscribe:e.canSubscribe,isInFullView:e.isInFullView}}))})).orElse([]):[],j=!n.props.explicitTeamTokenEnabled||n.props.showFullBucketInInbox,v=h.some((function(e){return e.isInFullView})),O=function isQuickFilterInbox(e){var t=Object(g.parse)(e),n=t.filter?t:{filter:B.h.inbox};return n.filter===S.D.INBOX&&!n.filterSet}(n.props.searchNavigator.currentLocation.search),T=Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)(ListNavigation,{multiSelectItem:function multiSelectItem(e){n.multipleSelectItems(e)},selectItem:n.selectItem,searchNavigator:n.props.searchNavigator,activeItems:n.props.activeItems}),Object(l.jsx)(WithPagination,{searchNavigator:n.props.searchNavigator,children:function children(r){return Object(l.jsx)(_.a,{lastListScroll:m,recordListScrollPosition:n.props.recordListScrollPosition,emptyLastMessageId:n.props.emptyLastMessageId,emptyLastScrollPosition:n.props.emptyLastScrollPosition,bucketProps:h,searchNavigator:a,currentUser:n.props.currentUser,currentTeam:n.props.currentTeam,loadMoreItems:r,searchJobReference:n.props.featureFlags.TAG_SEARCH_ALL_TEAMS?n.props.searchJobReferenceAllTeams:n.props.searchJobReference,selectItem:n.selectItem,multiSelect:n.props.multiSelect,cancelSelection:n.onCancelSelection,toggleMultiSelect:n.props.toggleMultiSelect,multipleSelectItems:n.multipleSelectItems,activeItems:n.props.activeItems,storeAll:n.storeAll,trackEvents:n.props.trackEvent,reverseOrder:n.props.reverseOrder,isMobile:n.props.isMobile,featureFlags:n.props.featureFlags,setSort:n.props.setSort,showBulkArchive:e,users:n.props.users,listLoading:n.props.listLoading,pullToRefresh:c,selectedTeams:n.props.explicitTeamTokenEnabled?n.props.isInAllTeamsSearch?"all":n.props.activeTeamsInSearch:void 0,showFullBucket:j,getExactCount:function getExactCount(){return n.props.getExactCount(n.props.searchNavigator.currentLocation.search,n.props.searchNavigator.currentFilterSet)},inMyWork:t})}})]}),y=!!p&&(!v||!j&&O);return Object(l.jsxs)(l.Fragment,{children:[y?Object(l.jsx)(J.b,{onClick:n.handleTabClick,children:T}):T,n.state.excessMessagesSelectedModal&&Object(l.jsx)(D.a,{isOpen:n.state.excessMessagesSelectedModal,toggle:n.onCancelBulkSelectError,headerText:"Batch Select Error",children:"You can only perform batch actions on ".concat(500," messages at a time.")})]})},n.handleTabClick=function(e){n.props.trackQuickFiltersEvent(e)},n.onCancelBulkSelectError=function(){n.setState((function(e){return{excessMessagesSelectedModal:!e.excessMessagesSelectedModal}}))},n.loadList=function(e,t){n.props.fetchItems(e.currentUser,null,e.currentFilterSet,e.currentSort,e.currentLocation.search,t,e.getOptions(),B.j.LIST,B.i.FRESH)},n.selectItem=function(e,t){if(!n.props.multiSelect)return n.props.trackSelectItem("Select Item",e),n.props.goToItem(e,t,n.props.searchNavigator,n.props.isMobile);n.props.trackNavigationEvent("Select Multiple Items"),Object(h.e)(n.props.location.pathname,{path:O.a.LIST_ACTIONS,exact:!0})||n.props.goToMultiSelect();var r=n.props.activeItems;return-1!==r.findIndex((function(n){return n.type===e&&n.id===t}))?n.props.unSelectItem({id:t,type:e}):r.length<500?n.props.selectItem({id:t,type:e}):n.setState((function(e){return{excessMessagesSelectedModal:!e.excessMessagesSelectedModal}}))},n.multipleSelectItems=function(e){return n.props.multiSelect||n.props.goToMultiSelect(),Object(h.e)(n.props.location.pathname,{path:O.a.LIST_ACTIONS,exact:!0})||n.props.goToMultiSelect(),Object(L.k)(n.props.activeItems.concat(e),(function(e){return e.id+"-"+e.type})).length<=500?n.props.multipleSelectItems(e):n.setState((function(e){return{excessMessagesSelectedModal:!e.excessMessagesSelectedModal}}))},n.onCancelSelection=function(){n.props.multiSelect&&(0===n.props.activeItems.length?n.props.toggleMultiSelect():n.props.cancelSelection())},n.storeAll=function(e){var t=n.props.explicitTeamTokenEnabled?n.props.isInAllTeamsSearch?n.props.currentUser.userTeams:n.props.activeTeamsInSearch.map((function(e){return e.id})):void 0;return n.props.initiateStoreAllTask({task:e,userId:n.props.currentTeam.id,teamId:n.props.currentUser.id},t)},n.goToBucketFullView=function(e,t){n.props.allBucketProps.map((function(r){r.filter((function(e){return e.id===t})).forEach((function(t){e===M.a.ALL?n.props.goToBucketFullView(t.bucketSearchQuery,n.props.location.search,t.bucketFilterSet):e===M.a.UNREAD_MESSAGE?n.props.goToBucketFullView(t.unreadBucketSearchQuery,n.props.location.search,t.unreadBucketFilterSet):n.props.goToBucketFullView(t.unreadCommentBucketSearchQuery,n.props.location.search,t.unreadCommentBucketFilterSet)}))}));var r,i=Object(a.a)(n.bucketReloadIntervalHandlers.values());try{for(i.s();!(r=i.n()).done;){var o=r.value;clearInterval(o)}}catch(c){i.e(c)}finally{i.f()}},n.returnFromBucketFullView=function(){n.props.returnFromBucketFullView(n.props.searchNavigator.currentLocation.search)},n.state={excessMessagesSelectedModal:!1},n}return Object(o.a)(ListComponent,[{key:"componentDidMount",value:function componentDidMount(){var e=this,t=this.props.searchNavigator;this.intervalForReload=window.setInterval((function(){var t=Date.now();if(e.heartBeatTimestamp&&t-e.heartBeatTimestamp>3e4){var n=e.props.searchNavigator;e.props.emptyList(n.currentLocation.search),e.loadList(n,!1)}e.heartBeatTimestamp=t}),1e3),"NOT_LOADING"===t.totalItems.status()&&this.loadList(t,!0)}},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(e){var t=this.props.searchNavigator;e.searchNavigator.currentLocation.search!==t.currentLocation.search&&this.loadList(e.searchNavigator,!0)}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.intervalForReload&&window.clearInterval(this.intervalForReload)}},{key:"render",value:function render(){var e=this,t=this.props,n=t.searchNavigator,r=t.allBucketProps,a=Object(E.d)(this.props.location.search),i=n.currentFilterSet.filter((function(e){return!(e instanceof S.v||e instanceof S.b||e instanceof S.J)})),o=n.currentFilterSet.filter((function(e){return!(e instanceof S.B||e instanceof S.b||e instanceof S.J)})),c=n.currentFilterSet.filter((function(e){return!(e instanceof S.C||e instanceof S.b)})),s=this.props.featureFlags.BULK_ARCHIVE_MY_MESSAGES&&a===S.D.MY_WORK&&c.isEmpty(),l=this.props.featureFlags.BULK_ARCHIVE_MY_MESSAGES&&a===S.D.MY_MESSAGES&&o.isEmpty(),u=i.isEmpty()&&a===S.D.INBOX||s||l,d=a===S.D.MY_WORK,p=r.maybe(y.a.of(0),(function(e){return e.every((function(e){return e.bucketCounts.isPresent()}))?y.a.of(0):y.a.loading()}));return this.props.numBuckets&&Object(H.c)(n.currentLocation.search)?Object(b.b)(p,n.totalItems,(function(){return e.renderBlockBasedList(u,d)}),(function(e){return Object(_.b)(e)})):this.renderBlockBasedList(u,d)}}]),ListComponent}(u.PureComponent);function retrieveCount(e,t){return v.g(e,Object(k.a)(t))}var q=Object(m.a)([function(e){return e.location.pathname},function(e,t){return t.selectedItems}],(function(e,t){if(!Boolean(Object(h.e)(e,{path:O.a.LIST_ACTIONS}))){var n=Object(h.e)(e,{path:O.a.LIST_ITEM()});return n?[{id:n.params.id,type:n.params.type}]:[]}return t})),K=Object(m.a)([function(e){return e.entities.messageTotal},function(e){return e.entities.searchRelevance},function(e){return e.ui.pagination},function(e,t){return t}],(function(e,t,n,r){return n.exact?v.g(e,Object(k.a)(r)).flatMap((function(e){return v.g(t,Object(k.a)(r)).map((function(t){var n=t.items.filter((function(e){return e.applies===B.b.NO})).length;return{total:Math.max(0,e.total-n),exact:e.exact}}))})):v.g(e,Object(k.a)(r))})),X=Object(m.c)((function(e,t,n){var r=v.h(n).find((function(e){return e.search===t}));return(r?r.items:[]).filter((function(t){return"message"===t.type&&t.applies===B.b.YES&&"NOT_LOADING"===v.g(e,t.messageId).status()})).map((function(e){return e.messageId}))})),Q=Object(h.j)(Object(p.connect)((function mapStateToProps(e,t){var n=e.entities,r=n.messageMeta,a=n.searchRelevance,i=t.location.search,o=e.entities.messageTotal,c=e.ui.list.lastListScrollPosition.scrollPosition,s=e.ui.list.lastListScrollPosition.messageId,l=e.ui.list.lastListScrollPosition.absoluteTop,u=t.isMobile?e.ui.list.highlightMessageId:void 0,d=q(t,e.ui.list),b=Object(I.a)(e,t.currentUser,t.location.search),p=t.location.pathname,m=Boolean(Object(h.e)(p,{path:O.a.LIST_ACTIONS})),g=e.ui.activeTeamsInSearch.teams,j=Object(V.a)(e),v=e.ui.activeTeamsInSearch.allTeams,T=e.ui.list.showFullBucketInInbox;return{messageTotal:o,activeItems:d,newRelevantMessageIds:X(r,i,a),multiSelect:m,createHref:t.history.createHref,featureFlags:e.ui.featureFlags,users:e.entities.user,allBucketProps:b,listLoading:e.ui.list.listLoading,lastListScrollPosition:c,lastListScrollPositionMessageId:s,lastListScrollPositionAbsoluteTop:l,lastMessageId:u,numBuckets:e.ui.searchState===B.q.CRITICAL?0:e.ui.featureFlags.SEARCH_BUCKETS,activeTeamsInSearch:g,explicitTeamTokenEnabled:j,isInAllTeamsSearch:v,showFullBucketInInbox:T}}),(function mapDispatchToProps(e,t){return{fetchItems:function fetchItems(t,n,r,a,i,o,c,s,l){return e(T.q.fromCursorAndSearch(t,n,r,a,i,o,c,s,l))},emptyList:function emptyList(t){return e(new T.c(t))},selectItem:function selectItem(t){return e(new T.s(t))},unSelectItem:function unSelectItem(t){return e(new T.v(t))},multipleSelectItems:function multipleSelectItems(t){return e(new T.m(t))},goToItem:function goToItem(t,n,r,a){e(r.goToItem(t,n,a))},reverseOrder:function reverseOrder(){var n=Object(g.parse)(t.location.search),a=(n.order||C.b.FROM_NEWEST)===C.b.FROM_NEWEST?C.b.FROM_OLDEST:C.b.FROM_NEWEST;return e(Object(j.e)({search:Object(g.stringify)(Object(r.a)(Object(r.a)({},n),{},{order:a}))}))},setSort:function setSort(n){var a=Object(g.parse)(t.location.search);return localStorage.setItem("sortStrategy",n),e(Object(j.e)({search:Object(g.stringify)(Object(r.a)(Object(r.a)({},a),{},{sort:n}))}))},toggleMultiSelect:function toggleMultiSelect(){var n=t.location.pathname,a=Boolean(Object(h.e)(n,{path:O.a.LIST_ACTIONS}));e(Object(j.e)(Object(r.a)(Object(r.a)({},t.location),{},{pathname:a?O.a.LIST:O.a.LIST_ACTIONS}))),e(new T.a)},goToBucketFullView:function goToBucketFullView(n,r,a){if(a){var i=Object(g.parse)(n),o=Object(g.parse)(r);return i.filter&&i.filter===S.D.INBOX&&e(new T.t(!0)),e(new w.a("Bookmark","Bookmark: Bucket Prompt")),e(new z.c(a,t.location,t.currentUser,S.D.ALL,o.bookmark,!1,!0))}var c=Object(g.parse)(n);e(new T.t(!0)),e(Object(j.e)({search:Object(g.stringify)({filter:c.filter,filterSet:c.filterSet}),pathname:t.location.pathname||O.a.LIST}))},returnFromBucketFullView:function returnFromBucketFullView(t){var n=Object(g.parse)(t),a=n.returnToTeam||n.teams;e(new T.t(!1)),e(new w.a("Bookmark","Bookmark: Close Bucket")),e(Object(j.e)({search:Object(g.stringify)(Object(r.a)(Object(r.a)({},n),{},{filter:S.D.INBOX,teams:a,filterSet:void 0,returnToTeam:void 0})),pathname:O.a.LIST}))},cancelSelection:function cancelSelection(){e(new T.a)},goToMultiSelect:function goToMultiSelect(){e(Object(j.e)(Object(r.a)(Object(r.a)({},t.location),{},{pathname:O.a.LIST_ACTIONS})))},initiateStoreAllTask:function initiateStoreAllTask(t,n){var a=Object(A.a)();e(new T.u(Object(r.a)(Object(r.a)({},t),{},{taskId:a}),n))},searchJobReference:function searchJobReference(n){return e(new z.c(n,t.location,t.currentUser))},searchJobReferenceAllTeams:function searchJobReferenceAllTeams(n){return e(new z.c(n,t.location,t.currentUser))},trackEvent:function trackEvent(t){e(new w.a("List Actions",t))},trackNavigationEvent:function trackNavigationEvent(t){e(w.a.withEvent(Object(w.i)(t)))},trackSelectItem:function trackSelectItem(t,n){e(w.a.withEvent(Object(w.i)(t,n)))},trackQuickFiltersEvent:function trackQuickFiltersEvent(t){e(new w.a("Quick Filters",t))},subscribeSavedSearch:function subscribeSavedSearch(t){e(new x.s(t,!0))},unsubscribeSavedSearch:function unsubscribeSavedSearch(t){e(new x.s(t,!1))},recordListScrollPosition:function recordListScrollPosition(t,n,r){e(new T.o(n,t,r))},emptyLastMessageId:function emptyLastMessageId(){e(new T.b)},emptyLastScrollPosition:function emptyLastScrollPosition(){e(new T.d)},getExactCount:function getExactCount(t,n){e(new T.r(t,n,!0))}}}))(Object(d.a)(function withBuckets(e){return Object(p.connect)(G,W)(function withList(e){return function(t){Object(c.a)(BucketComponent,t);var n=Object(s.a)(BucketComponent);function BucketComponent(){var e;Object(i.a)(this,BucketComponent);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).bucketReloadIntervalHandlers=new Map,e.fetchFullBucketItemCount=function(t){var n=function loadBucket(n){e.generalizedLoadBucketCounts(t,n,e.props.fetchMessageCount,e.props.searchNavigator)};n({filterSet:t.bucketFilterSet,searchQuery:t.bucketSearchQuery}),n({filterSet:t.unreadBucketFilterSet,searchQuery:t.unreadBucketSearchQuery}),e.props.unreadCommentSearchToken&&n({filterSet:t.unreadCommentBucketFilterSet,searchQuery:t.unreadCommentBucketSearchQuery})},e.generalizedLoadBucketCounts=function(t,n,r,a){var i=e.bucketReloadIntervalHandlers.get(n.searchQuery);i&&clearInterval(i);var o=Object(g.parse)(n.searchQuery).order===C.b.FROM_OLDEST?C.b.FROM_OLDEST:C.b.FROM_NEWEST,c=function fetchBucketItemCount(){e.props.numBuckets&&r(n.searchQuery,a.currentUser.id,n.filterSet,C.c.BY_RECEIVED_DATE,o,a.getOptions())},s=window.setInterval((function(){c()}),Object(H.a)());e.bucketReloadIntervalHandlers.set(n.searchQuery,s),c()},e.willUpdateBuckets=function(t){var n=t.numBuckets,r=t.allBucketProps,i=t.searchNavigator,o=t.fetchMessageCount,c=t.unreadCommentSearchToken,s=t.location;if(n){var l=function bucketChangeFn(e,t){return e.map((function(e){return t.maybe(e,(function(t){return e.filter((function(e){return!t.some((function(t){return t.bucketSearchQuery===e.bucketSearchQuery}))}))}))})).orElse([])},u={bucketsAdded:l(r,e.props.allBucketProps),bucketsRemoved:l(e.props.allBucketProps,r)};u.bucketsRemoved.forEach((function(t){var n=e.bucketReloadIntervalHandlers.get(t.unreadBucketSearchQuery);n&&clearInterval(n)}));var d=i.currentLocation.search!==e.props.searchNavigator.currentLocation.search;if(Object(H.c)(i.currentLocation.search))(e.props.numBuckets!==n||d||u.bucketsAdded.length>0)&&(d?r.orElse([]):u.bucketsAdded).forEach((function(t){return e.generalizedLoadBucketCounts(t,{filterSet:c?t.unreadCommentOrMessageFilterSet:t.unreadBucketFilterSet,searchQuery:c?t.unreadCommentOrMessageQuery:t.unreadBucketSearchQuery},o,i)}));else if(Object(H.c)(e.props.searchNavigator.currentLocation.search)){var b,p=Object(a.a)(e.bucketReloadIntervalHandlers.values());try{for(p.s();!(b=p.n()).done;){var m=b.value;clearInterval(m)}}catch(O){p.e(O)}finally{p.f()}}var h=Object(g.parse)(e.props.location.search).teams,j=Object(g.parse)(s.search).teams,v=e.props.allBucketProps.map((function(e){return e.find((function(e){return e.isInFullView}))})).orElse(void 0);(h!==j||!e.props.numBuckets||e.props.numBuckets!==n||u.bucketsAdded.length>0||!v)&&r.map((function(t){return t.forEach((function(t){t.isInFullView&&e.fetchFullBucketItemCount(t)}))}))}},e}return Object(o.a)(BucketComponent,[{key:"componentDidMount",value:function componentDidMount(){var e=this;this.props.numBuckets&&Object(H.c)(this.props.searchNavigator.currentLocation.search)&&this.props.allBucketProps.map((function(t){return t.forEach((function(t){return e.generalizedLoadBucketCounts(t,{filterSet:e.props.unreadCommentSearchToken?t.unreadCommentOrMessageFilterSet:t.unreadBucketFilterSet,searchQuery:e.props.unreadCommentSearchToken?t.unreadCommentOrMessageQuery:t.unreadBucketSearchQuery},e.props.fetchMessageCount,e.props.searchNavigator)}))}))}},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(e){this.willUpdateBuckets(e)}},{key:"componentWillUnmount",value:function componentWillUnmount(){Object(N.a)(this.bucketReloadIntervalHandlers.values()).forEach((function(e){return clearInterval(e)}))}},{key:"render",value:function render(){return Object(l.jsx)(e,Object(r.a)({},this.props))}}]),BucketComponent}(u.PureComponent)}(e))}(Y))))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return GenericSelectionFormModal}));var r=n(0),a=n(31),i=n(9),o=n(643),c=n(723),s=n(724),l=n(92),u=n(81),d=n(12),b=n(795),p=n(141),m={Container:d.b.div.withConfig({displayName:"radio-field__Container",componentId:"sc-1kgfqjm-0"})(["display:flex;"])},h=function RadioField(e){return Object(r.jsx)(l.a,{name:e.fieldName,component:"input",type:"radio",value:e.value,children:function children(t){var n,a,i,o,c=t.input,s=(t.meta,e.value?"".concat(e.fieldName,"--").concat(e.value):e.fieldName);return Object(r.jsxs)(m.Container,{children:[Object(r.jsx)(b.a,{isChecked:null!==(n=c.checked)&&void 0!==n&&n,id:null!==(a=e.id)&&void 0!==a?a:s,onChange:c.onChange,isDisabled:e.disabled,testId:null!==(i=e.testId)&&void 0!==i?i:"".concat(e.fieldName,"-radio-field"),fieldName:e.fieldName,value:e.value}),Object(r.jsx)(p.a,{label:e.label,name:null!==(o=e.id)&&void 0!==o?o:s,helpText:e.description})]})}})},g=n(34),j=(n(1),n(484)),v={Description:d.b.div.withConfig({displayName:"generic-selection-form-modal__Description",componentId:"qziqiv-0"})(["margin-bottom:var(--spacing-6);"]),FormGroup:d.b.div.withConfig({displayName:"generic-selection-form-modal__FormGroup",componentId:"qziqiv-1"})(["margin-bottom:var(--spacing-1);"]),FormActions:d.b.div.withConfig({displayName:"generic-selection-form-modal__FormActions",componentId:"qziqiv-2"})(["display:flex;flex-shrink:0;margin-left:var(--spacing-3);margin-right:var(--spacing-3);justify-content:flex-end;> *{margin:var(--spacing-2);}"])};function GenericSelectionFormModal(e){var t=e.toggle,n=e.isOpen,d=e.modalId,b=e.headerText,p=e.cancelText,m=e.confirmText,O=e.options,T=e.multiple,y=e.children,S=e.fieldName,C=Object(r.jsx)(a.a,{className:"u-self-start",buttonContent:"Close",iconGlyph:Object(i.e)(i.c.CLEAR),onClick:t,"data-testid":"close-modal-button"});return Object(r.jsxs)(o.a,{wrapClassName:"c--modal-wrapper",className:"c-modal c--button-r",scrollable:!0,isOpen:n,toggle:t,"data-testid":"confirmation-modal","data-modal-id":d,children:[Object(r.jsx)(c.a,{toggle:t,close:C,children:b}),Object(r.jsx)(s.a,{children:Object(r.jsxs)(r.Fragment,{children:[y&&Object(r.jsx)(v.Description,{children:y}),Object(r.jsx)(l.b,{onSubmit:e.onSubmit,render:function render(e){e.values;var n=e.handleSubmit;return Object(r.jsxs)(u.h,{onSubmit:n,children:[null===O||void 0===O?void 0:O.map((function(e){return Object(r.jsx)(v.FormGroup,{children:T?Object(r.jsx)(j.a,{value:e.id,label:e.label,fieldName:S}):Object(r.jsx)(h,{label:e.label,fieldName:S,value:e.id})},e.id)})),Object(r.jsxs)(v.FormActions,{children:[Object(r.jsx)(g.a,{buttonStyle:"link",onClick:t,"data-testid":"cancel-button",children:p}),Object(r.jsx)(g.a,{type:"submit","data-testid":"confirm-button",children:m})]})]})}})]})})]},"confirmationModal")}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=function(e){Object(i.a)(TagBatchRemoveAction,e);var t=Object(o.a)(TagBatchRemoveAction);function TagBatchRemoveAction(e,n,a,i){var o;return Object(r.a)(this,TagBatchRemoveAction),(o=t.call(this)).tagId=e,o.messageIds=n,o.userId=a,o.assignedToUserId=i,o}return Object(a.a)(TagBatchRemoveAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/messagetag/tag"),body:{tagId:this.tagId,messageIds:this.messageIds,userId:this.userId,assignedToUserId:this.assignedToUserId},method:s.c.DELETE,headers:{"Content-Type":"application/json"}}}}]),TagBatchRemoveAction}(c.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=n(57),u=function(e){Object(i.a)(TagBatchAddAction,e);var t=Object(o.a)(TagBatchAddAction);function TagBatchAddAction(e,n,a,i){var o;return Object(r.a)(this,TagBatchAddAction),(o=t.call(this)).tagId=e,o.messageIds=n,o.userId=a,o.assignedToUserId=i,o}return Object(a.a)(TagBatchAddAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/messagetag/tag"),body:{tagId:this.tagId,messageIds:this.messageIds,userId:this.userId,assignedToUserId:this.assignedToUserId},method:s.c.POST,headers:{"Content-Type":"application/json"}}}},{key:"mapResponse",value:function mapResponse(e){return e.map(l.a.tagMapper)}}]),TagBatchAddAction}(c.a)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),a=n(12),i=n(724),o=Object(a.b)(i.a).withConfig({displayName:"share-sheet-body__Body",componentId:"sc-15dhz8s-0"})(["display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;background-color:",";border-bottom-left-radius:var(--br);border-bottom-right-radius:var(--br);"],(function(e){return e.$isDetailView?"var(--background-1)":"var(--white)"})),c=function ShareSheetBody(e){return Object(r.jsx)(o,{$isDetailView:e.isDetailView,children:e.children})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(84),a=n(2),i=n(727),o=Object(r.a)((function(e){return a.h(e.entities.team)}),(function(e,t){return t}),(function(e,t){return e.filter((function(e){return t.userTeams.includes(e.id)})).filter((function(e){return null===e.deletedAt})).map((function(e){return{id:e.id,initials:Object(i.a)(e.name),name:e.name}}))})),c=Object(r.a)([function(e){return a.h(e.entities.user)},function(e){return a.h(e.entities.userToTeam)}],(function(e,t){return e.filter((function(e){return null===e.deletedAt})).map((function(e){var n,r=t.find((function(t){return t.userId===e.id}));return{id:e.id,initials:e.initials,name:"".concat(e.firstName," ").concat(e.lastName),teamIds:null!==(n=null===r||void 0===r?void 0:r.teamIds)&&void 0!==n?n:[e.teamId]}}))}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return j}));var r=n(23),a=n(2),i=n(42),o=n(30),c=n(63),s=n(57),l=n(84),u=n(38),d=n(25),b=n(77),p=n(8),m=Object(l.a)([function(e){return e.entities.messageMeta},function(e){return e.entities.messageRead},function(e){return e.entities.messageAssignment},function(e){return e.entities.messageJobReferenceTag},function(e){return e.entities.messageCategoryTag},function(e){return e.entities.searchRelevance},function(e){return e.entities.user},function(e,t){return t}],(function(e,t,n,r,o,c,s,l){return a.g(c,Object(b.a)(l)).map((function(e){return e.items})).orElse([]).filter((function(e){return"message"===e.type&&e.applies===p.b.YES})).map((function(t){var n=t.messageId;return a.g(e,n)})).map((function(e){var c=i.a.lift6((function(e,t,n,r,a,i){return{type:u.a.message,id:e.id,data:{meta:e,readBy:t,assignment:n,jobReference:r,categoryTag:a,sender:d.a.of(i)}}}));return e.flatMap((function(l){return c(e,a.g(t,l.id),a.g(n,l.id),a.g(r,l.id),a.g(o,l.id),l.sender?a.g(s,l.sender.userId):i.a.of(null))}))}))})),h=Object(l.a)([function(e){return e.entities.topic},function(e){return e.entities.searchRelevance},function(e){return e.entities.topicJobReference},function(e){return e.entities.topicCategoryTag},function(e){return e.entities.topicTeam},function(e){return e.entities.team},function(e,t){return t}],(function(e,t,n,r,o,c,s){return a.g(t,Object(b.a)(s)).map((function(e){return e.items})).orElse([]).filter((function(e){return"topic"===e.type&&e.applies===p.b.YES})).map((function(t){var n=t.messageId;return a.g(e,n)})).map((function(e){var t=Object(a.i)(c),s=i.a.lift4((function(e,n,r,a){return{type:u.a.topic,id:e.id,data:{meta:e,jobReference:n,categoryTag:r,team:a.filter((function(e){return t[e]}))}}}));return e.flatMap((function(t){return s(e,a.g(n,t.id),a.g(r,t.id),a.g(o,t.id))}))}))})),g=Object(l.c)((function(e){var t=Object(o.parse)(e);return{strategy:t.sort||localStorage.getItem("sortStrategy")||s.c.BY_RECEIVED_DATE,order:t.order||s.b.FROM_NEWEST}}));function getReceivedDate(e){if(e.type===u.a.message){var t=e.data.meta;return"".concat(t.receivedDate,"-").concat(t.id)}var n=e.data;return"".concat(n.meta.attributes.modified,"-").concat(n.meta.id)}function getLatestActivity(e){if(e.type===u.a.message){var t=e.data.meta;return"".concat(t.latestActivity,"-").concat(t.id)}var n=e.data;return"".concat(n.meta.attributes.latest_activity,"-").concat(n.meta.id)}var j=Object(l.a)([m,h,function(e,t){return t}],(function(e,t,n){var a=g(n),o=a.strategy===s.c.BY_RECEIVED_DATE,l=function comparator(e,t){return Object(c.a)(o?getReceivedDate:getLatestActivity)(e,t)};return i.a.filterPresent.apply(i.a,Object(r.a)(t).concat(Object(r.a)(e))).sort(a.order===s.b.FROM_OLDEST?l:Object(c.c)(l))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return TagFetchWithCheck}));var r,a=n(0),i=n(1),o=n(28),c=n(95),s=n(55),l=n(185),u=n(286),d=n(87),b=n(93);function useJobReferenceFetch(e,t){var n=Object(o.useSelector)((function(n){return Object(d.k)(t)((function(e){return e.entities.teamToJobReferences}))(n,e)})),r=Object(o.useDispatch)();Object(i.useEffect)((function(){n.length>0&&r(new c.n(n.map((function(e){return e.id}))))}),[r,n])}function useCategoryFetch(e,t){var n=Object(o.useSelector)((function(n){return Object(d.k)(t)((function(e){return e.entities.teamToCategoryTag}))(n,e)})),r=Object(o.useDispatch)();Object(i.useEffect)((function(){n.length>0&&r(new s.C(n.map((function(e){return e.id}))))}),[r,n])}function TagFetchForMessage(e){return useJobReferenceFetch(e.id,l.f),useCategoryFetch(e.id,l.f),null}function TagFetchForTopic(e){return useJobReferenceFetch(e.id,u.b),useCategoryFetch(e.id,u.b),null}function TagFetchWithCheck(e){return Object(o.useSelector)(b.a)?e.type===r.MESSAGE?Object(a.jsx)(TagFetchForMessage,{id:e.id}):Object(a.jsx)(TagFetchForTopic,{id:e.id}):null}!function(e){e.MESSAGE="message",e.TOPIC="topic"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return getRenderedAlertType})),n.d(t,"a",(function(){return b}));var r,a=n(0),i=n(19),o=(n(1307),n(9)),c=n(644),s=n(276),l=n(34),u=n(17),d=n(51);function getRenderedAlertType(e,t,n,a){return e?r.OFFLINE:t?r.SEARCH_STATUS_CRITICAL:n?r.NEW_VERSION_ALERT:a?r.NEW_LOOK:r.NO_ALERT}!function(e){e.OFFLINE="OFFLINE",e.NEW_VERSION_ALERT="NEW_VERSION_ALERT",e.SEARCH_STATUS_CRITICAL="SEARCH_STATUS_CRITICAL",e.NO_ALERT="NO_ALERT",e.NEW_LOOK="NEW_LOOK"}(r||(r={}));var b=function GlobalAlert(e){switch(e.alertType){case r.OFFLINE:return Object(a.jsx)(c.a,{appear:!0,className:"c-global-alert","data-testid":"offline-alert",children:Object(a.jsx)(s.a,{classNames:"drop-in",timeout:50,children:Object(a.jsxs)("div",{className:"c-global-alert__message c--warning",children:[Object(a.jsx)(i.a,{"data-testid":"update-icon",glyph:o.d,size:"regular",className:"u-mr-md"}),"SEDNA cannot connect to the internet. Functionality will be limited until connectivity is restored."]})})});case r.NEW_VERSION_ALERT:return Object(a.jsx)(c.a,{appear:!0,className:"c-global-alert","data-testid":"new-version-alert",children:Object(a.jsx)(s.a,{classNames:"drop-in",timeout:50,children:Object(a.jsxs)("div",{className:"c-global-alert__message",children:[Object(a.jsx)(i.a,{"data-testid":"update-icon",glyph:o.d,size:"regular",className:"u-mr-md"}),Object(a.jsx)("span",{className:"u-mr-lg",children:"New version available"}),Object(a.jsx)(l.a,{"data-testid":"update-button",className:"u-ml-md",onClick:e.updateHandler,size:"small",children:"Update"})]})})});case r.SEARCH_STATUS_CRITICAL:return Object(a.jsx)(c.a,{appear:!0,className:"c-global-alert","data-testid":"search-status-alert",children:Object(a.jsx)(s.a,{classNames:"drop-in",timeout:50,children:Object(a.jsxs)("div",{className:"c-global-alert__message",children:[Object(a.jsx)(i.a,{"data-testid":"update-icon",glyph:o.d,size:"regular",className:"u-mr-md"}),Object(a.jsx)("span",{children:"SEDNA has detected stability issues in the search infrastructure. Functionality may be limited until service has been restored. \xa0"}),Object(a.jsxs)("a",{href:"https://support.sedna.com/hc/en-us/articles/360022860974",target:"_blank",rel:"noopener noreferrer",className:"c-global-alert__btn c-button-inline u-inline-flex u-items-center",children:[Object(a.jsx)(i.a,{glyph:Object(o.e)(o.c.LAUNCH),size:"small",className:"u-mr-md"}),Object(a.jsx)("span",{children:"Learn More"})]})]})})});case r.NEW_LOOK:return Object(a.jsx)(c.a,{appear:!0,className:"c-global-alert c--design-info",children:Object(a.jsx)(s.a,{classNames:"drop-in",timeout:50,children:Object(a.jsxs)("div",{className:"c-global-alert__message",children:[Object(a.jsxs)("span",{children:["\u2728 SEDNA has a new look and feel. You can still switch to the legacy experience in"," ",Object(a.jsx)("a",{href:"".concat(d.i).concat(u.a.SETTINGS_APPEARANCE),children:"Settings"}),"."]}),Object(a.jsx)("button",{className:"c-button-inline c--dark-theme u-inline-flex u-items-center",onClick:e.onDismissNewLookAlert,children:Object(a.jsx)(i.a,{glyph:Object(o.e)(o.c.CLEAR),size:"small"})})]})})});case r.NO_ALERT:return null}}},,,,,,,,function(e,t,n){"use strict";var r=n(0);n(436);t.a=function SettingsPanelContent(e){var t=e.children;return Object(r.jsx)("div",{className:"c-settings-panel-content",children:t})}},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return Yi})),n.d(t,"a",(function(){return Xi}));var r=n(21),a=n(0),i=n(1),o=n.n(i),c=n(1476),s=n(22),l=n(28),u=n(24),d=n.n(u),b=n(17),p=n(4),m=n(3),h=n(10),g=n(5),j=n(6),v=n(1470),O=n(1471),T=n(1472),y=n(1473),S=n(1474),C=n(125),A=n(25),E=n(415),w=n(618),_=n(407),I=n(637),x=n(915),k=n(1444),N=n(916),R=n(167),F=n(19),M=n(9),D=n(82),L=(n(1242),n(98)),P=n(15);function SettingsDropdown(e){var t=e.tosHref,n=e.settingsLink,o=e.manageTemplatesHref,c=e.manageUsersHref,s=e.manageJobReferencesHref,l=e.manageFlexDocTypesHref,u=e.viewInsightsHref,b=e.logoutHandler,m=e.supportHandler,h=e.currentUser,g=e.updateHandler,j=e.notificationEnabled,v=e.enableNotifications,O=e.disableNotifications,T=e.trackOldUIEvent,y=h.initials,S=i.useState(!1),C=Object(r.a)(S,2),A=C[0],E=C[1],w=i.useCallback((function(){T("Navigation Bar: User Account"),E(!A)}),[A,T]);return Object(a.jsxs)(I.a,{isOpen:A,toggle:w,className:"settings-dropdown","data-testid":"settings-dropdown",children:[Object(a.jsx)(x.a,Object(p.a)(Object(p.a)({className:d()("c-settings-dropdown",{"c--text-only":y.length>0}),"data-testid":"settings-dropdown-button"},{title:"Settings"}),{},{children:y||Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.PERSON),size:"small"})})),Object(a.jsx)("div",{id:"triangle",className:"c-settings-dropdown__triangle"}),Object(a.jsxs)(k.a,{className:"c-settings-dropdown__dropdown",children:[Object(a.jsx)(N.a,{className:"terms-of-service-menu-item",href:t,target:"_blank",onClick:function onClick(){return T("Navigation Bar - Account: Terms of Service")},children:"Terms of Service"}),Object(a.jsx)(N.a,{className:"support-menu-item",onClick:function onClick(){T("Navigation Bar - Account: Support"),m()},"data-testid":"settings-support-menu-item",children:"Support"}),g&&Object(a.jsx)(N.a,{onClick:function onClick(){T("Navigation Bar - Account: Update"),g()},children:"Update"}),Object(R.a)(u,(function(e){return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(N.a,{divider:!0}),Object(a.jsx)(D.a,{className:"dropdown-item",to:e,target:"_blank",tabIndex:0,onClick:function onClick(){return T("Navigation Bar - Account: SEDNA Insight")},children:"SEDNA Insights"})]})})),(c.isPresent()||s.isPresent())&&Object(a.jsx)(N.a,{divider:!0}),Object(R.a)(o,(function(e){return Object(a.jsx)(N.a,Object(p.a)(Object(p.a)({href:e},{target:"_blank"}),{},{onClick:function onClick(){return T("Navigation Bar - Account: Manage Templates")},children:"Manage Templates"}))})),Object(R.a)(c,(function(e){return Object(a.jsx)(N.a,Object(p.a)(Object(p.a)({href:e},{target:"_blank"}),{},{onClick:function onClick(){return T("Navigation Bar - Account: Manage Users")},children:"Manage Users"}))})),Object(R.a)(s,(function(e){return Object(a.jsxs)(D.a,{className:"dropdown-item",to:e,target:"_blank",tabIndex:0,onClick:function onClick(){return T("Navigation Bar - Account: ".concat(P.b.t(P.a.JOB_TAG_PLURAL)))},children:["Manage ",P.b.t(P.a.JOB_TAG_PLURAL)]})})),Object(R.a)(l,(function(e){return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(N.a,{divider:!0}),Object(a.jsx)(N.a,Object(p.a)(Object(p.a)({href:e},{target:"_blank"}),{},{onClick:function onClick(){return T("Navigation Bar - Account: Flexdocs Document Types")},children:"Flexdocs Document Types"}))]})})),Object(a.jsx)(N.a,{divider:!0}),Object(a.jsx)(D.a,{className:"dropdown-item",to:n.url,onClick:function onClick(){T("Navigation Bar - Account: Settings"),E(!1)},children:n.title}),Object(a.jsx)(N.a,{divider:!0}),!Object(L.a)()&&null!==j&&Object(a.jsxs)(a.Fragment,{children:[j?Object(a.jsx)(N.a,{onClick:function onClick(){T("Navigation Bar - Account: Disable Notifications"),O()},"data-testid":"settings-notifications-menu-item",children:"Disable Notifications"}):Object(a.jsx)(N.a,{onClick:function onClick(){T("Navigation Bar - Account: Enable Notifications"),v()},"data-testid":"settings-notifications-menu-item",children:"Enable Notifications"}),Object(a.jsx)(N.a,{divider:!0})]}),Object(a.jsx)(N.a,{className:"logout-menu-item","data-testid":"logout-button",onClick:b,children:"Logout"})]})]})}var U,B=n(83),H=n(228),G=n(26),W=n(30),z=n(13),V=n(264),J=n(59),Y=n(312),q=n(535),K=(n(793),n(2)),X=n(18),Q=n(23),Z=n(914),$=n(193),ee=n(235),te=n(31),ne=(n(1244),n(1245),n(52)),re=n(34),ae=n(8);function NestedSearchDialog(e){var t=i.useState(e.filterSet),n=Object(r.a)(t,2),o=n[0],c=n[1];return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)("div",{className:"c-layout__body",children:Object(a.jsx)("div",{className:"c-nested-search-dialog",children:Object(a.jsx)(FilterSetComponent,{set:o,isRoot:!0,onSwapFilterSetCombinator:function onSwapFilterSetCombinator(e,t){return c(swapFilterSetCombinator(o,e,t))},onAddFilterSet:function onAddFilterSet(e){return c(addToFilterSet(o,e,new z.k(ae.g.AND,[])))},onRemoveFilterSet:function onRemoveFilterSet(e){return c(removeFilterSetNode(o,e))},onRemoveFilterTerm:function onRemoveFilterTerm(e){return c(removeFilterSetNode(o,e))},renderTokenSelector:function renderTokenSelector(t){return Object(a.jsx)(ee.a,{currentUser:e.currentUser,currentFilters:Object(X.U)(t),locationModifier:ee.b.MODAL,suggestionTypesToExclude:new Set([X.S.OR,X.S.NOT,X.S.BEFORE,X.S.AFTER,X.S.AFTER_TIME,X.S.BEFORE_TIME,X.S.SINCE]),canCompose:!0,selectToken:function selectToken(n){var r=e.parser.parse([n]);r instanceof z.l&&c(addToFilterSet(o,t,r))},myWorkEnabled:e.myWorkEnabled})},color:U.REGULAR,inlineDateFiltersEnabled:e.inlineDateFiltersEnabled},"root")})}),Object(a.jsxs)(Z.a,{className:"c-nested-search-dialog__footer",children:[Object(a.jsx)(re.a,{buttonStyle:"link",onClick:function onClick(){e.onClose()},"data-testid":"cancel-edit-bookmark",children:"Cancel"})," ",Object(a.jsx)(re.a,{"data-testid":"reset-edit-bookmark",buttonStyle:"link",onClick:function onClick(){c(e.filterSet),e.trackCustomSearchClick("Search - Modify Custom Query: Reset")},children:"Reset"})," ",Object(a.jsx)(re.a,{"data-testid":"start-search-bookmark",onClick:function onClick(){e.goToFilterSet(o),e.onClose(),e.trackCustomSearchClick("Search - Modify Custom Query: ".concat(e.filterSet.equals(o)?"Search":"Update"))},children:"Search"})]})]})}function FilterSetComponent(e){var t=i.useState(!1),n=Object(r.a)(t,2),o=n[0],c=n[1],s=i.useState(0===e.set.children.length),l=Object(r.a)(s,2),u=l[0],d=l[1];return i.useEffect((function(){0!==e.set.children.length||u||d(!0),0!==e.set.children.length&&u&&d(!1)}),[e.set.children.length]),Object(a.jsxs)("div",{className:"c-nested-search-dialog__filter-set",style:{backgroundColor:e.color===U.ALTERNATE?"var(--background-2)":""},children:[Object(a.jsxs)("div",{className:"c-nested-search-dialog__filter-set-options",children:[Object(a.jsxs)("div",{className:"u-pb-sm u-pt-sm u-flex u-items-center",children:[!e.isRoot&&Object(a.jsx)(te.a,{className:"u-mr-sm",buttonContent:o?"Expand":"Collapse",iconGlyph:o?Object(M.e)(M.c.CHEVRON_UP):Object(M.e)(M.c.CHEVRON_DOWN),onClick:function onClick(){return c(!o)}}),Object(a.jsx)(FilterCombinatorDropdown,{combinator:e.set.combinator,onChange:function onChange(t){return e.onSwapFilterSetCombinator(e.set,t)}})," "]}),!e.isRoot&&Object(a.jsx)(te.a,{buttonContent:"Clear",iconGlyph:Object(M.e)(M.c.DELETE),onClick:function onClick(){return e.onRemoveFilterSet(e.set)}})]}),!o&&Object(a.jsxs)(a.Fragment,{children:[Object(a.jsxs)("div",{className:"c-nested-search-dialog__filter-set-container",children:[e.set.children.map((function(t,n){return t instanceof z.k?Object(i.createElement)(FilterSetComponent,Object(p.a)(Object(p.a)({},e),{},{set:t,isRoot:!1,key:t.serializeToString(),color:e.color===U.ALTERNATE?U.REGULAR:U.ALTERNATE,inlineDateFiltersEnabled:e.inlineDateFiltersEnabled})):Object(a.jsx)(FilterTermComponent,{term:t,onRemoveTerm:e.onRemoveFilterTerm,inlineDateFiltersEnabled:e.inlineDateFiltersEnabled},"".concat(n).concat(t.serializeToString))})),u&&Object(a.jsx)("div",{className:"c-nested-search-dialog__filter-select",children:e.renderTokenSelector(e.set)})]}),!u&&Object(a.jsx)(re.a,{buttonStyle:"link",icon:Object(M.e)(M.c.ADD),onClick:function onClick(){return d(!u)},children:"Add Term"}),Object(a.jsx)(re.a,{buttonStyle:"link",onClick:function onClick(){return e.onAddFilterSet(e.set)},icon:Object(M.e)(M.c.ADD),children:"Add Set"})]})]})}function FilterTermComponent(e){var t=Object(X.V)(e.term);return Object(a.jsx)("div",{className:"c-nested-search-dialog__filter-term",children:Object(a.jsx)($.a,{token:t,onClick:function onClick(){return e.onRemoveTerm(e.term)},inlineDateFiltersEnabled:e.inlineDateFiltersEnabled})})}function FilterCombinatorDropdown(e){return Object(a.jsxs)("select",{onChange:function onChange(t){return e.onChange(t.target.value)},value:e.combinator,className:"c-select",children:[Object(a.jsx)("option",{value:ae.g.AND,children:ae.g.AND.toUpperCase()}),Object(a.jsx)("option",{value:ae.g.OR,children:ae.g.OR.toUpperCase()}),Object(a.jsx)("option",{value:ae.g.NOT,children:ae.g.NOT.toUpperCase()})]})}function swapFilterSetCombinator(e,t,n){return e===t?new z.k(n,e.children):new z.k(e.combinator,e.children.map((function(e){return e instanceof z.k?swapFilterSetCombinator(e,t,n):e})))}function addToFilterSet(e,t,n){return e===t?new z.k(e.combinator,[].concat(Object(Q.a)(e.children),[n])):new z.k(e.combinator,e.children.map((function(e){return e instanceof z.k?addToFilterSet(e,t,n):e})))}function removeFilterSetNode(e,t){return new z.k(e.combinator,e.children.reduce((function(e,n){return t===n?e:Object(ne.a)(e,n instanceof z.k?removeFilterSetNode(n,t):n)}),[]))}!function(e){e[e.REGULAR=0]="REGULAR",e[e.ALTERNATE=1]="ALTERNATE"}(U||(U={}));var ie=n(317),oe=n(107),ce=function(e){Object(g.a)(NestedSearchComponent,e);var t=Object(j.a)(NestedSearchComponent);function NestedSearchComponent(){var e;Object(m.a)(this,NestedSearchComponent);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).goToFilterSet=function(t){return e.props.goToFilterSet(t,e.props.location,e.props.currentUser)},e}return Object(h.a)(NestedSearchComponent,[{key:"render",value:function render(){var e=new X.n({categories:K.h(this.props.categories),jobs:K.h(this.props.jobs),people:K.h(this.props.people),teams:K.h(this.props.teams)});return Object(a.jsx)(ie.a,{children:Object(a.jsx)(NestedSearchDialog,{currentUser:this.props.currentUser,filterSet:this.props.currentFilterSet,onClose:this.props.onClose,goToFilterSet:this.goToFilterSet,parser:e,trackCustomSearchClick:this.props.trackCustomSearchClick,inlineDateFiltersEnabled:this.props.inlineDateFiltersEnabled,myWorkEnabled:this.props.myWorkEnabled})})}}]),NestedSearchComponent}(i.PureComponent),se=Object(G.b)([function(e){return e.entities.categoryTag},function(e){return e.entities.jobReference},function(e){return e.entities.user},function(e){return e.entities.team}],(function(e,t,n,r){return{categories:e,jobs:t,people:n,teams:r}})),le={goToFilterSet:function goToFilterSet(e,t,n){return new oe.c(e,t,n,z.D.ALL)}},ue=Object(s.j)(Object(l.connect)(se,le)(ce)),de=n(643);n(1247);function FullScreenModal(e){return Object(a.jsxs)(de.a,{wrapClassName:"c--modal-wrapper",className:"c-full-screen-modal",isOpen:e.isOpen,toggle:e.toggle,contentClassName:"c-layout c--modal",children:[Object(a.jsxs)("div",{className:"c-layout__header c-full-screen-modal__head",children:[Object(a.jsx)("h3",{className:"c-full-screen-modal__title",children:e.title}),Object(a.jsx)(te.a,{className:"u-self-center",buttonContent:"Close",iconGlyph:Object(M.e)(M.c.CLEAR),onClick:e.toggle})]}),e.children]})}var fe=n(29),be=n(232),pe=n(79),me=n(111),he=n(56),ge=n(583),je=n.n(ge),ve=n(12),Oe=ve.b.div.withConfig({displayName:"announcekit-button__Button",componentId:"sc-74fjcs-0"})([".announcekit-widget-badge{display:none !important;}"]),Te=ve.b.div.withConfig({displayName:"announcekit-button__Badge",componentId:"sc-74fjcs-1"})(["width:var(--spacing-3);height:var(--spacing-3);margin-right:var(--spacing-1);background-color:var(--danger);border:var(--bw2) solid var(--danger);border-radius:50%;"]);function AnnouncekitButton(e){var t=i.useState(!1),n=Object(r.a)(t,2),o=n[0],c=n[1],s=i.useRef(null);i.useEffect((function(){var e;null===(e=s.current)||void 0===e||e.unread().then((function(e){s.current&&c(e>0)}));var t=s.current;return function(){null===t||void 0===t||t.instance().then((function(e){var t,n=null===(t=e.frame)||void 0===t?void 0:t.wrapper;n&&n.remove()}))}}),[]);var l=i.useCallback((function(e){var t=e.unread;c(t>0)}),[c]);return Object(a.jsxs)(Oe,{className:"btn c-settings-dropdown u-flex u-items-center",title:"Product Updates",onClick:function onClick(){return e.trackOldUIEvent("What's new")},children:[o&&Object(a.jsx)(Te,{}),Object(a.jsx)(je.a,{ref:s,widget:"https://announcekit.app/widgets/v2/3yjcnm",user:{id:e.currentUser.id},onWidgetUnread:l,children:Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.GIFT),size:"small"})})]})}var ye=ve.b.div.withConfig({displayName:"launchpad-dropdown__Button",componentId:"sc-1x6pb87-0"})(["padding:0;position:relative;svg{display:none;}.appcues-widget{display:block;svg{display:initial;}.appcues{display:flex;align-items:center;.appcues-widget-icon{height:calc(var(--icon-sm) + var(--spacing-1) + var(--spacing-1));width:calc( var(--icon-sm) + var(--spacing-2) + var(--spacing-2) + var(--spacing-3) + var(--spacing-1) );@media ",'{height:calc(var(--icon-sm) + var(--spacing-2) + var(--spacing-2));}}.appcues-widget-icon[data-appcues-count="0"]{width:calc(var(--icon-sm) + var(--spacing-2) + var(--spacing-2));}.appcues-widget-icon:before{content:"";width:var(--spacing-3);height:var(--spacing-3);background-color:var(--danger);border:var(--bw2) solid var(--danger);border-radius:50%;min-width:0;font-size:0;position:absolute;left:calc(var(--spacing-2));top:50%;transform:translateY(-50%);}.appcues-widget-icon:after{display:none;}.appcues-widget-icon[data-appcues-count="0"]:before{display:none;}}}'],he.a.minXLarge),Se=Object(ve.b)(F.a).withConfig({displayName:"launchpad-dropdown__IconWrapper",componentId:"sc-1x6pb87-1"})(["position:absolute;right:calc(var(--spacing-2));top:50%;transform:translateY(-50%);"]);function LaunchpadDropdown(e){return i.useEffect((function(){try{Appcues&&Appcues.loadLaunchpad("#appcues-launchpad",{position:"left",header:"SEDNA Guides"})}catch(e){}}),[]),Object(a.jsx)(ye,{className:"btn c-settings-dropdown",title:"Sedna Guides",onClick:function onClick(){return e.trackOldUIEvent("Guides")},children:Object(a.jsx)("div",{id:"appcues-launchpad",children:Object(a.jsx)(Se,{glyph:Object(M.e)(M.c.GRAD_HAT),size:"small"})})})}var Ce,Ae,Ee=n(93),we=n(47),_e=n(622),Ie=n(76),xe=function toSettingsLink(e,t){return{url:e,title:t}},ke=null!==(Ce="https://www.sedna.com/terms-of-service")?Ce:"",Ne=function(e){Object(g.a)(HeaderContainerComponent,e);var t=Object(j.a)(HeaderContainerComponent);function HeaderContainerComponent(e){var n;return Object(m.a)(this,HeaderContainerComponent),(n=t.call(this,e)).toggleNestedSearch=function(){n.setState((function(e){return{nestedSearchOpen:!e.nestedSearchOpen}})),n.props.trackCustomSearchClick("Search - Modify Custom Query: ".concat(n.state.nestedSearchOpen?"Close":"Open"))},n.renderQuickFilter=function(e,t,r,i){return Object(a.jsx)(be.a,{id:e,href:Object(pe.b)(e,r),isActive:t===e,showLabel:i,trackOldUIEvent:n.props.trackOldUIEvent})},n.showComposePicker=function(){n.props.trackOldUIEvent("Navigation Bar: Create Modal"),n.setState({composePickerExpanded:!0})},n.hideComposePicker=function(){return n.setState({composePickerExpanded:!1})},n.onLogout=function(e){e.preventDefault(),n.props.onLogout()},n.goToTeamView=function(e){n.props.goToTeamView(e,n.props.location.search)},n.toggleTeamDropdown=function(){n.setState({teamDropdownState:Object(q.a)(n.state.teamDropdownState)})},n.state={composePickerExpanded:!1,teamDropdownState:"CLOSED",nestedSearchOpen:!1},n}return Object(h.a)(HeaderContainerComponent,[{key:"render",value:function render(){var e=this,t=this.props,n=t.currentUser,r=t.currentTeam,i=t.tenantConfig,o=t.userTeams,c=Object(W.parse)(this.props.location.search),s=n.permissions.includes(B.a.compose_message),l=n.roles.includes(B.b.IT_SUPPORT),u=i.settings.MANAGE_JOB_REFERENCE,p=n.roles.includes(B.b.REGULAR_USER)||n.roles.includes(B.b.SUPER_USER),m=i.settings.CUSTOMER_ANALYTICS&&n.roles.includes(B.b.ANALYTICS),h=Object(pe.d)(this.props.location.search),g=Object(V.a)(),j=this.props.featureFlags.MY_WORK;return Object(a.jsxs)("header",{className:"c-header c-layout__header",children:[!this.props.showSidebar&&Object(a.jsxs)(v.a,{dark:!0,expand:!0,children:[Object(a.jsx)(H.a,{logoLink:Object(H.e)(this.props.location.search),toggleShowFullBucket:this.props.toggleShowFullBucket,markCurrentSavedSearch:this.props.markCurrentSavedSearch,trackOldUIEvent:this.props.trackOldUIEvent}),Object(a.jsx)(me.a.Consumer,{children:function children(t){var n=t.width>he.d;return Object(a.jsxs)("div",{className:"c-header__nav-filters","data-testid":"header-nav-filters",children:[Object(a.jsx)(O.a,{className:"c-quick-filter-container",children:Object(a.jsx)(T.a,{className:"u-flex",children:Object(a.jsxs)(y.a,{className:d()("c-header__nav-divider",{"c--header-divider":!e.props.featureFlags.INLINE_DATE_FILTERS}),children:[e.renderQuickFilter(z.D.INBOX,h,c,n),e.props.tenantConfig.settings.MY_MESSAGES&&!j&&e.renderQuickFilter(z.D.MY_MESSAGES,h,c,n),j&&e.renderQuickFilter(z.D.MY_WORK,h,c,n),e.renderQuickFilter(z.D.FOLLOWING,h,c,n),e.renderQuickFilter(z.D.DRAFT,h,c,n),e.renderQuickFilter(z.D.STORED,h,c,n),e.renderQuickFilter(z.D.SENT,h,c,n),e.renderQuickFilter(z.D.ALL,h,c,n)]})})}),!e.props.featureFlags.INLINE_DATE_FILTERS&&Object(a.jsx)(w.a,{currentUser:e.props.currentUser,currentFilterSet:e.props.currentFilterSet,showLabel:n,trackOldUIEvent:e.props.trackOldUIEvent})]})}}),Object(a.jsxs)(O.a,{className:"c-header__settings",navbar:!0,children:[!this.props.explicitTeamTokenEnabled&&Object(a.jsx)(T.a,{children:this.props.userTeams.length>1&&Object(a.jsx)(_.b,{teams:o,onClickHandler:this.goToTeamView,activeTeam:r,location:_.a.NAVBAR,dropdownState:this.state.teamDropdownState,toggle:this.toggleTeamDropdown})}),this.props.tenantConfig.settings.ADDRESS_BOOK&&Object(a.jsx)(T.a,{children:Object(a.jsx)(S.a,{href:"".concat(g,"/contacts"),className:"btn c-settings-dropdown",title:"Address Book",target:"_blank",onClick:function onClick(){return e.props.trackOldUIEvent("Address Book")},children:Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.CONTACTS),size:"small"})})}),Object(a.jsx)(T.a,{children:Object(a.jsx)(AnnouncekitButton,{currentUser:n,trackOldUIEvent:this.props.trackOldUIEvent})}),this.props.featureFlags.SEDNA_GUIDES_LAUNCHPAD&&Object(a.jsx)(T.a,{children:Object(a.jsx)(LaunchpadDropdown,{trackOldUIEvent:this.props.trackOldUIEvent})}),Object(a.jsx)(T.a,{children:Object(a.jsx)(SettingsDropdown,{currentUser:n,tosHref:ke,settingsLink:xe(b.a.SETTINGS_APPEARANCE,"Settings"),viewInsightsHref:m?A.a.of(b.a.INSIGHTS):A.a.empty(),manageUsersHref:l?A.a.of("".concat(g,"/admin/users")):A.a.empty(),manageTemplatesHref:p?A.a.of("".concat(g,"/templates")):A.a.empty(),manageJobReferencesHref:u?A.a.of(b.a.JOB_REFERENCES):A.a.empty(),manageFlexDocTypesHref:this.props.featureFlags.FLEX_DOCS_MANAGEMENT?A.a.of("".concat(g,"/document-types")):A.a.empty(),supportHandler:function supportHandler(){return zE.activate({hideOnClose:!0})},logoutHandler:this.onLogout,updateHandler:this.props.updateAvailable?this.props.updateApplication:null,notificationEnabled:this.props.notificationEnabled,enableNotifications:this.props.enableNotifications,disableNotifications:this.props.disableNotifications,trackOldUIEvent:this.props.trackOldUIEvent})})]})]}),this.props.showSearchBar&&Object(a.jsxs)("div",{className:"header-search",children:[s&&!this.props.showSidebar&&Object(a.jsx)(_e.a,{composePickerProps:{topicsEnabled:this.props.featureFlags.TOPICS,queryString:this.props.location.search,expanded:this.state.composePickerExpanded,showComposePicker:this.showComposePicker,hideComposePicker:this.hideComposePicker},currentUser:this.props.currentUser,trackOldUIEvent:this.props.trackOldUIEvent}),Object(a.jsx)(E.a,{currentUser:n,currentFilterSet:this.props.currentFilterSet,filterSetDeserializer:this.props.filterSetDeserializer,onClick:this.hideComposePicker,myMessagesEnabled:this.props.tenantConfig.settings.MY_MESSAGES,canCompose:s,isMobile:!1,searchNavigator:this.props.searchNavigator,unreadCommentInSearch:this.props.featureFlags.UNREAD_COMMENT_SEARCH_TOKEN}),this.props.featureFlags.NESTED_SEARCH&&Object(a.jsx)(te.a,{buttonContent:"Modify Custom Query",iconGlyph:Object(M.e)(M.c.EDIT),onClick:this.toggleNestedSearch,className:"u-self-center u-mr-md",dataTestId:"modifyQueryButton"})]}),this.props.featureFlags.NESTED_SEARCH&&Object(a.jsx)(FullScreenModal,{isOpen:this.state.nestedSearchOpen,toggle:this.toggleNestedSearch,title:"Modify Custom Query",children:Object(a.jsx)(ue,{currentUser:this.props.currentUser,onClose:this.toggleNestedSearch,trackCustomSearchClick:this.props.trackCustomSearchClick,currentFilterSet:this.props.currentFilterSet,inlineDateFiltersEnabled:this.props.featureFlags.INLINE_DATE_FILTERS,myWorkEnabled:this.props.featureFlags.MY_WORK})})]})}}]),HeaderContainerComponent}(i.PureComponent),Re=Object(G.b)([function(e,t){return Object(Y.b)(e,t.currentUser)},function(e){return null!==e.ui.update.isAvailable},Ee.a],(function(e,t,n){return{userTeams:e,updateAvailable:t,explicitTeamTokenEnabled:n}})),Fe={goToTeamView:function goToTeamView(e,t){return J.h.switchTeam(e.id,[Object(C.e)({search:Object(W.stringify)(Object(p.a)(Object(p.a)({},Object(W.parse)(t)),{},{teamId:e.id})),pathname:b.a.LIST})])},updateApplication:function updateApplication(){return new J.i},trackCustomSearchClick:function trackCustomSearchClick(e){return fe.a.withEvent(Object(fe.g)(e))},toggleShowFullBucket:function toggleShowFullBucket(e){return new we.t(e)},markCurrentSavedSearch:function markCurrentSavedSearch(e){return new Ie.k(e)},trackEvent:function trackEvent(e,t){return new fe.a(e,t)},trackOldUIEvent:function trackOldUIEvent(e){return fe.a.withEvent(Object(fe.m)(e))}},Me=Object(s.j)(Object(l.connect)(Re,Fe)(Ne)),De=n(39),Le=n.n(De),Pe=n(54),Ue=n(139),Be=n(127),He=n(32),Ge=n.n(He),We=n(315),ze=n(318),Ve=(n(1251),n(51)),Je=n(316),Ye=function(e){Object(g.a)(JobRefListComponent,e);var t=Object(j.a)(JobRefListComponent);function JobRefListComponent(e){var n;return Object(m.a)(this,JobRefListComponent),(n=t.call(this,e)).downloadCsvJRs=Object(Pe.a)(Le.a.mark((function _callee(){var e,t,r,a;return Le.a.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.getCsvThroughApi();case 2:return e=i.sent,i.next=5,e.text();case 5:t=i.sent,r=document.createElement("a"),a=new Blob([t],{type:"application/octet-stream"}),r.href=URL.createObjectURL(a),r.download="".concat(n.props.currentUser.companyIdentifier,"_Job_References_").concat(Ge()().format("YYYY-MM-DD"),".csv"),document.body.appendChild(r),r.click(),document.body.removeChild(r);case 13:case"end":return i.stop()}}),_callee)}))),n.getCsvThroughApi=Object(Pe.a)(Le.a.mark((function _callee2(){return Le.a.wrap((function _callee2$(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",fetch(Object(Ve.m)("job-reference/download"),{method:"GET",mode:"cors",credentials:"include"}));case 1:case"end":return e.stop()}}),_callee2)}))),n.filteredReferences=function(e,t){var n=t.toUpperCase();return e.filter((function(e){return e.attributes.name.toUpperCase().includes(n)}))},n.handleChange=function(e){var t=e.target.value;n.setState((function(){return{filter:t,filteredItems:n.filteredReferences(n.props.jobReferenceResources,t)}}))},n.state={filter:"",filteredItems:n.filteredReferences(n.props.jobReferenceResources,"")},n}return Object(h.a)(JobRefListComponent,[{key:"componentDidMount",value:function componentDidMount(){var e=this.props,t=e.location,n=e.requestFollowersForJobReference,r=e.userCanCreateJobReferences,a=e.jobReferenceResources,i=qe(t);if(i&&n(i),!r&&!i&&a.length>0){var o=a[0].id;this.props.goToReference(o,t),n(o)}}},{key:"render",value:function render(){var e=this,t=this.props,n=t.location,r=t.userCanCreateJobReferences,i=this.state.filter,o=qe(n),c=null===o;return Object(a.jsxs)("div",{className:"c-job-reference-list-container",children:[!c&&Object(a.jsxs)("div",{className:"c-job-reference-list-container__create",children:[r&&Object(a.jsxs)("div",{children:[Object(a.jsxs)(re.a,{onClick:this.props.goToCreateReference,className:"c-job-reference-list-container__add",children:["Add New ",P.b.t(P.a.JOB_TAG)]}),Object(a.jsx)("br",{}),"or",Object(a.jsx)("br",{})]}),"Select a ",P.b.t(P.a.JOB_TAG)," to edit"]}),Object(a.jsx)(Je.a,{type:"text",name:"jobRefFilter",id:"jobRefFilter",value:i,placeholder:"Filter ".concat(P.b.t(P.a.JOB_TAG_PLURAL)),onChange:this.handleChange,prefix:Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.SEARCH)}),borderless:!0}),Object(a.jsx)("div",{className:"c-job-reference-list-container__list",children:Object(a.jsx)(We.a,{children:function children(t){return Object(a.jsx)(ze.a,{className:"u-list",height:t.height,width:t.width,itemSize:33,itemCount:e.state.filteredItems.length,children:function children(t){var n=e.state.filteredItems[t.index];if(!n)return Object(a.jsx)("div",{style:t.style,children:"Loading.."});var i=n.id===o;return Object(a.jsx)("div",{style:t.style,className:"u-mb-sm u-pl-md u-pr-md","data-testid":"job-ref-tag",children:Object(a.jsx)(Ue.a,{id:n.id,label:n.attributes.name,onClick:i?e.props.goToCreateReference:function(){e.props.goToReference(n.id,e.props.location),e.props.requestFollowersForJobReference(n.id)},state:i?r?"active":"activeNoClear":"inactive"},"jr-tag-".concat(n.attributes.name))})}})}})}),Object(a.jsxs)("button",{className:"c-button-inline u-mt-md u-mr-lg u-fs-l","data-testid":"download-job-refs",onClick:this.downloadCsvJRs,children:[Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.DOWNLOAD),className:"u-mr-sm"}),"Download All"]})]})}}]),JobRefListComponent}(i.PureComponent),qe=function getIdFromLocation(e){var t=e.pathname.split("/").pop();return"jobreference"===t?null:t},Ke={requestFollowersForJobReference:function requestFollowersForJobReference(e){return new Be.g(e)},goToReference:function goToReference(e,t){return Object(C.e)(Object(p.a)(Object(p.a)({},t),{},{pathname:b.a.JOB_REFERENCE(e)}))},goToCreateReference:function goToCreateReference(){return Object(C.e)(b.a.JOB_REFERENCES)}},Xe=Object(s.j)(Object(l.connect)(null,Ke)(Ye)),Qe=n(37),Ze=n(95);!function(e){e.DEFAULT="DEFAULT",e.AFFINITY="AFFINITY",e.GENERIC="GENERIC"}(Ae||(Ae={}));var $e=function empty(e){switch(e){case Ae.DEFAULT:return{type:e,vesselName:"",voyageNumber:""};case Ae.AFFINITY:return{type:e,vesselName:"",charterer:"",charterPartyDate:""};case Ae.GENERIC:return{type:e,jobName:"",jobNumber:""}}},et=function jobReferenceName(e){var t,n,r;if(e.displayName)return e.displayName;switch(e.type){case Ae.DEFAULT:var a=e;return a.voyageNumber?"".concat(a.vesselName,"-").concat(a.voyageNumber):null!==(t=a.vesselName)&&void 0!==t?t:"";case Ae.AFFINITY:var i=e,o=i.charterer?"/ ".concat(i.charterer):"",c=i.charterPartyDate?"/ ".concat(i.charterPartyDate):"";return"".concat(null!==(n=i.vesselName)&&void 0!==n?n:"").concat(o).concat(c);case Ae.GENERIC:var s=e;return s.jobNumber?"".concat(s.jobName,"-").concat(s.jobNumber):null!==(r=s.jobName)&&void 0!==r?r:""}},tt=function serialize(e){switch(e.type){case Ae.DEFAULT:return{vesselName:e.vesselName?e.vesselName.trim():void 0,voyageNumber:e.voyageNumber?e.voyageNumber.trim():void 0,displayName:e.displayName?e.displayName.trim():void 0};case Ae.AFFINITY:return{vesselName:e.vesselName?e.vesselName.trim():void 0,charterer:e.charterer?e.charterer.trim():void 0,charterPartyDate:e.charterPartyDate?e.charterPartyDate.trim():void 0,displayName:e.displayName?e.displayName.trim():void 0};case Ae.GENERIC:return{vesselName:e.jobName?e.jobName.trim():void 0,voyageNumber:e.jobNumber?e.jobNumber.trim():void 0,type:Ae.GENERIC,displayName:e.displayName?e.displayName.trim():void 0}}},nt=function deserialize(e,t,n){switch(t){case Ae.GENERIC:return withName(Object(p.a)(Object(p.a)({},e),{},{type:Ae.GENERIC,jobName:e.vesselName?String(e.vesselName).trim():"",jobNumber:e.voyageNumber?String(e.voyageNumber).trim():""}),n);case Ae.AFFINITY:return withName(Object(p.a)(Object(p.a)({},e),{},{type:Ae.AFFINITY,vesselName:e.vesselName?String(e.vesselName).trim():"",charterer:e.charterer?String(e.charterer).trim():"",charterPartyDate:e.charterPartyDate?String(e.charterPartyDate).trim():""}),n);case Ae.DEFAULT:return withName(Object(p.a)(Object(p.a)({},e),{},{type:Ae.DEFAULT,vesselName:e.vesselName?String(e.vesselName).trim():"",voyageNumber:e.voyageNumber?String(e.voyageNumber).trim():""}),n)}},rt=function jobName(e){var t,n,r;switch(e.type){case Ae.DEFAULT:return null!==(t=e.vesselName)&&void 0!==t?t:"";case Ae.AFFINITY:return null!==(n=e.vesselName)&&void 0!==n?n:"";case Ae.GENERIC:return null!==(r=e.jobName)&&void 0!==r?r:""}};function withName(e,t){var n;return e.displayName?n=e.displayName:t&&et(e)!==t&&(n=t),Object(p.a)(Object(p.a)({},e),{},{displayName:n})}var at=n(122),it=n(645),ot=n(191),ct=n(81),st=n(137),lt=n(44),ut=n(40),dt={AttributesContainer:ve.b.div.withConfig({displayName:"job-reference-details__AttributesContainer",componentId:"sc-16ztivx-0"})(["padding:0 var(--spacing-3);"])},ft=function AttributeDetails(e,t){var n,r,i,o,c,s,l,u,d,b;switch(e.type){case Ae.DEFAULT:return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(ot.a,{label:"Vessel Name",value:null!==(n=e.vesselName)&&void 0!==n?n:"N/A"}),Object(a.jsx)(ot.a,{label:"Voyage Number",value:null!==(r=e.voyageNumber)&&void 0!==r?r:"N/A"}),Object(a.jsx)(ot.a,{label:"".concat(P.b.t(P.a.JOB_TAG)," Display Name"),value:null!==(i=e.displayName)&&void 0!==i?i:"N/A"}),Object(a.jsx)(ot.a,{label:"Type",value:null!==t&&void 0!==t?t:"N/A"})]});case Ae.AFFINITY:return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(ot.a,{label:"Vessel Name",value:null!==(o=e.vesselName)&&void 0!==o?o:"N/A"}),Object(a.jsx)(ot.a,{label:"Charterer",value:null!==(c=e.charterer)&&void 0!==c?c:"N/A"}),Object(a.jsx)(ot.a,{label:"Charter Party Date",value:null!==(s=e.charterPartyDate)&&void 0!==s?s:"N/A"}),Object(a.jsx)(ot.a,{label:"".concat(P.b.t(P.a.JOB_TAG)," Display Name"),value:null!==(l=e.displayName)&&void 0!==l?l:"N/A"}),Object(a.jsx)(ot.a,{label:"Type",value:null!==t&&void 0!==t?t:"N/A"})]});case Ae.GENERIC:return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(ot.a,{label:"".concat(P.b.t(P.a.JOB_TAG)," Name"),value:null!==(u=e.jobName)&&void 0!==u?u:"N/A"}),Object(a.jsx)(ot.a,{label:"".concat(P.b.t(P.a.JOB_TAG)," Number"),value:null!==(d=e.jobNumber)&&void 0!==d?d:"N/A"}),Object(a.jsx)(ot.a,{label:"".concat(P.b.t(P.a.JOB_TAG)," Display Name"),value:null!==(b=e.displayName)&&void 0!==b?b:"N/A"})]})}},bt=function JobReferenceDetails(e){var t=e.attributes,n=e.selectedJobReferenceType,r=e.users,i=e.onEdit,o=et(t);return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(it.a,{children:Object(a.jsxs)(dt.AttributesContainer,{children:[Object(a.jsx)(ot.a,{label:"Preview",value:Object(a.jsx)(Ue.a,{onClick:ut.a,label:o,state:"inactive"})}),ft(t,n),Object(a.jsx)(ot.a,{label:"Users Following",value:r.length>0?Object(a.jsx)("div",{className:"u-flex-auto",children:Object(a.jsx)("div",{className:"c-job-reference-pane__followers",children:r.map((function(e){return Object(a.jsx)("div",{className:"u-mr-sm u-mb-sm",children:Object(a.jsx)(st.a,{id:e.id,userFullName:Object(lt.c)(e.firstName,e.lastName),state:"active"})},e.id)}))})}):"N/A"})]})}),Object(a.jsx)(it.b,{children:Object(a.jsx)(ct.b,{children:Object(a.jsx)(re.a,{buttonStyle:"secondary",icon:Object(M.e)(M.c.EDIT),onClick:i,children:"Edit"})})})]})},pt=n(92),mt=n(106),ht=n(141),gt=n(636),jt=n(227),vt=n.n(jt),Ot={Container:ve.b.div.withConfig({displayName:"searchable-select__Container",componentId:"sc-1rwivzk-0"})([".react-autosuggest__container{position:relative;z-index:2;::-webkit-scrollbar{-webkit-appearance:none;width:7px;}::-webkit-scrollbar-thumb{border-radius:var(--br1);background-color:rgba(0,0,0,0.5);-webkit-box-shadow:0 0 1px rgba(255,255,255,0.5);}}.react-autosuggest__suggestions-container{display:none;}.react-autosuggest__suggestions-container--open{width:100%;font-size:var(--fs);display:block;position:absolute;top:100%;background-color:var(--white);border:1px solid var(--border-shade);border-bottom-left-radius:var(--br1);border-bottom-right-radius:var(--br1);max-height:42rem;min-height:0;overflow-y:auto;z-index:3;}.react-autosuggest__suggestions-list{margin:0;padding:0;list-style-type:none;}.react-autosuggest__suggestion{cursor:pointer;padding:var(--spacing-3) var(--spacing-4);}.react-autosuggest__suggestion--highlighted{background-color:var(--menu-item-hover-background);}.react-autosuggest__section-container{border-top:1px solid var(--border-shade);}.react-autosuggest__section-container--first{margin-top:0;border-top:0;}.react-autosuggest__section-title{padding:var(--spacing-2);font-size:var(--fs-sm);font-weight:var(--fw-bold);color:var(--text-2);text-transform:uppercase;}"])},Tt=function SearchableSelect(e){var t=e.inputValue,n=e.onInputValueChange,r=e.options,o=e.onGetOptions,c=e.onSelect,s=e.getOptionText,l=e.getOptionValue,u=e.renderOption,d=e.placeholder,b=e.disabled,p=e.invalid,m=e.id,h=e.name,g=e.testId,j=i.useCallback((function(e,t){var r=t.newValue;n(r)}),[n]),v=i.useCallback((function(e,t){var n=t.suggestion,r=l?l(n):n;c(l?l(r):r)}),[l,c]),O=i.useCallback((function(e){return Object(a.jsx)(Je.a,{ref:e.ref,value:e.value,onChange:e.onChange,onFocus:e.onFocus,onBlur:e.onBlur,placeholder:d,disabled:b,invalid:p,id:m,name:h,testId:g})}),[d,b,p,m,h,g]);return Object(a.jsx)(Ot.Container,{children:Object(a.jsx)(vt.a,{inputProps:{value:t,onChange:j},renderInputComponent:O,multiSection:!1,focusInputOnSuggestionClick:!1,highlightFirstSuggestion:!1,suggestions:r,onSuggestionsFetchRequested:o,onSuggestionsClearRequested:ut.a,onSuggestionSelected:v,getSuggestionValue:s,renderSuggestion:u,shouldRenderSuggestions:function shouldRenderSuggestions(){return!0}})})},yt={FollowersContainer:ve.b.div.withConfig({displayName:"job-reference-user-field__FollowersContainer",componentId:"sc-1tb5irr-0"})(["max-height:30rem;overflow-y:auto;"])},St=function renderOption(e){return Object(a.jsx)(st.a,{id:e.id,userFullName:Object(lt.c)(e.firstName,e.lastName),state:"inactive"})},Ct=function getOptionText(e){return e.username},At=function UsersFollowingField(e){var t=e.users,n=e.inputValue,r=e.onInputValueChange,i=e.options,o=e.onGetOptions;return Object(a.jsx)(pt.a,{name:"users",children:function children(e){var c=e.input,s=function handleRemove(e){return function(){c.onChange({target:{value:t.filter((function(t){return t.id!==e.id}))}})}};return Object(a.jsx)(ht.a,{label:"Users Following",name:"users",children:Object(a.jsxs)(a.Fragment,{children:[t.length>0&&Object(a.jsx)("div",{className:"u-flex-auto u-mb-sm",children:Object(a.jsx)(yt.FollowersContainer,{children:t.map((function(e){return Object(a.jsx)("div",{className:"u-mr-sm u-mb-sm",children:Object(a.jsx)(st.a,{id:e.id,userFullName:Object(lt.c)(e.firstName,e.lastName),onClick:s(e),state:"active"})},e.id)}))})}),Object(a.jsx)(Tt,{placeholder:"Add new followers",inputValue:n,onInputValueChange:r,options:i,onGetOptions:o,onSelect:function handleSelect(e){c.onChange({target:{value:[].concat(Object(Q.a)(t),[e])}}),r("")},getOptionText:Ct,renderOption:St,id:"usersFollowing",testId:"usersFollowing-searchable-select-field"})]})})}})},Et=n(172),wt={ScrollContent:ve.b.div.withConfig({displayName:"job-reference-form__ScrollContent",componentId:"sc-1lm1044-0"})(["overflow-y:auto;flex:1 1 auto;"]),Container:ve.b.div.withConfig({displayName:"job-reference-form__Container",componentId:"sc-1lm1044-1"})(["margin-bottom:var(--spacing-3);padding:var(--spacing-3) var(--spacing-6);border-radius:var(--br2);font-weight:var(--fw-normal);background-color:var(--blue-tint);color:var(--tag-blue);"])},_t=function AttributeFields(e){switch(e.type){case Ae.DEFAULT:return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{id:"vesselName",label:"Vessel Name",fieldName:"vesselName"})}),Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{id:"voyageNumber",label:"Voyage Number",fieldName:"voyageNumber"})}),Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{id:"displayName",label:"".concat(P.b.t(P.a.JOB_TAG)," Display Name"),fieldName:"displayName"})})]});case Ae.AFFINITY:return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{id:"vesselName",label:"Vessel Name",fieldName:"vesselName"})}),Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{id:"charterer",label:"Charterer",fieldName:"charterer"})}),Object(a.jsx)(ct.f,{children:Object(a.jsx)(gt.a,{id:"charterPartyDate",label:"Charter Party Date",fieldName:"charterPartyDate",dateFormat:"YYYY-MM-DD"})}),Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{id:"displayName",label:"".concat(P.b.t(P.a.JOB_TAG)," Display Name"),fieldName:"displayName"})})]});case Ae.GENERIC:return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{id:"jobName",label:"".concat(P.b.t(P.a.JOB_TAG)," Name"),fieldName:"jobName"})}),Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{id:"jobNumber",label:"".concat(P.b.t(P.a.JOB_TAG)," Number"),fieldName:"jobNumber"})}),Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{id:"displayName",label:"".concat(P.b.t(P.a.JOB_TAG)," Display Name"),fieldName:"displayName"})})]})}};var It=function getJobReferenceLabel(e){switch(e){case Qe.c.VOYAGE:return"Voyage";case Qe.c.HEAD_FIXTURE:return"Head Fixture";case Qe.c.SPOT_FIXTURE:return"Spot Fixture";case Qe.c.OTHER:return"Other";default:return e}},xt=function JobReferenceForm(e){var t=e.attributes,n=e.onSubmit,o=e.onCancel,c=e.users,s=e.allUsers,l=e.submitText,u=void 0===l?"Submit":l,d=e.jobReferenceType,b=e.jobReferenceTypes,m=e.foreignId,h=i.useState(""),g=Object(r.a)(h,2),j=g[0],v=g[1],O=i.useState([]),T=Object(r.a)(O,2),y=T[0],S=T[1],C=i.useMemo((function(){return b.map((function(e){return{value:e,label:It(e)}}))}),[b]);return Object(a.jsx)(pt.b,{initialValues:Object(p.a)(Object(p.a)({},t),{},{users:c,jobReferenceType:d}),onSubmit:n,render:function render(e){var n=e.values,r=e.handleSubmit,i=e.submitting,c=e.pristine,l=et(n),d=l.length>50,b=0===l.trim().length||d||i||c;return Object(a.jsxs)(ct.h,{onSubmit:r,children:[m&&Object(a.jsx)(wt.Container,{children:"This Job is externally managed and should be edited in its source system."}),Object(a.jsx)(wt.ScrollContent,{children:Object(a.jsxs)(ct.i,{children:[Object(a.jsx)(ct.e,{children:Object(a.jsx)(ht.a,{label:"Preview",error:d?"Total ".concat(P.b.t(P.a.JOB_TAG)," length cannot exceed ").concat(50," characters"):void 0,children:Object(a.jsx)("div",{children:Object(a.jsx)(Ue.a,{onClick:ut.a,label:l,state:"inactive"})})})}),_t(t),(t.type===Ae.DEFAULT||t.type===Ae.AFFINITY)&&Object(a.jsx)(ct.f,{children:Object(a.jsx)(Et.b,{label:"Type",fieldName:"jobReferenceType",options:C,required:!0})}),Object(a.jsx)(ct.f,{children:Object(a.jsx)(At,{users:n.users,inputValue:j,onInputValueChange:v,options:y,onGetOptions:function getUserSuggestions(e){var t=function escapeRegexCharacters(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(e.value.trim()),r=new RegExp("\\b"+t,"i"),a=s.filter((function(e){var a=!n.users.map((function(e){return e.id})).includes(e.id);return""!==t?a&&r.test(Object(lt.c)(e.firstName,e.lastName)):a}));S(a)}})})]})}),Object(a.jsx)(ct.a,{children:Object(a.jsxs)(ct.b,{children:[o&&Object(a.jsx)(re.a,{className:"u-mr-md",onClick:o,buttonStyle:"link",children:"Cancel"}),Object(a.jsx)(re.a,{type:"submit","data-testid":"submit-button",disabled:b,children:u})]})})]})}})},kt=n(323),Nt=function(e){Object(g.a)(JobReferenceUpdatePane,e);var t=Object(j.a)(JobReferenceUpdatePane);function JobReferenceUpdatePane(e){var n,r,a;Object(m.a)(this,JobReferenceUpdatePane),(a=t.call(this,e)).handleEdit=function(){return a.setState({editing:!0})},a.handleCancel=function(){return a.setState({editing:!1})},a.submitJobReference=function(e){var t=a.props,n=t.submitUpdateJobRef,r=t.jobReferences,i=t.unsubscribeUsersFromJobReference,o=t.subscribeUsersToJobReference,c=t.subscribeUsersToVesselName,s=t.unsubscribeUsersFromVesselName,l=t.match,u=t.allUsers,d=t.followers,b=t.autoFollowVesselName,m=e.users,h=e.jobReferenceType,g=Object(kt.a)(e,"users","jobReferenceType"),j=a.getJobReference(r,l.params.id),v=a.attributesFromJobReference(j),O=rt(v);n(a.props.jobReference.id,et(g),JSON.stringify(Object(p.a)(Object(p.a)({},v),tt(g))),h);var T=rt(g),y=d,S=m.map((function(e){return e.id})),C=u.filter((function(e){return d.includes(e.id)})),A=C.filter((function(e){return!S.includes(e.id)})),E=m.filter((function(e){return!y.includes(e.id)}));b&&O!==T&&C.length>0&&s(O,C),A.length>0&&j.ifPresent((function(e){return i(e.id,A,b?T:void 0)})),E.length>0&&j.ifPresent((function(e){return o(e.id,E)})),b&&m.length>0&&T&&""!==T&&c(T,m),a.setState({attributes:g,users:m,selectedJobReferenceType:h},(function(){a.setState({editing:!1})}))},a.attributesFromJobReference=function(e){var t=e.maybe(void 0,(function(e){return e.attributes.name}));return e.flatMap((function(e){var t=e.attributes;return at.a.of((function(){return JSON.parse(t.attributes)})).toOptional()})).map((function(e){return nt(e,a.props.jobReferenceStyle,t)})).orElse({type:a.props.jobReferenceStyle})};var i=a.getJobReference(e.jobReferences,e.match.params.id);i.ifAbsent((function(){return e.redirectToCreatePage(a.props.location)}));var o=e.allUsers.filter((function(t){return e.followers.includes(t.id)})),c=a.attributesFromJobReference(i);return a.state={attributes:c,foreignId:null!==(n=null===(r=i.toNullable())||void 0===r?void 0:r.attributes.foreignId)&&void 0!==n?n:null,editing:!1,users:o,selectedJobReferenceType:Qe.c.VOYAGE},a}return Object(h.a)(JobReferenceUpdatePane,[{key:"UNSAFE_componentWillReceiveProps",value:function UNSAFE_componentWillReceiveProps(e){var t,n,r,a,i=e.allUsers,o=e.followers,c=this.getJobReference(e.jobReferences,e.match.params.id),s=this.attributesFromJobReference(c),l=i.filter((function(e){return o.includes(e.id)}));e.match.params.id!==this.props.match.params.id?this.setState({attributes:s,foreignId:null!==(t=null===(n=c.toNullable())||void 0===n?void 0:n.attributes.foreignId)&&void 0!==t?t:null,editing:!1,users:l,selectedJobReferenceType:c.map((function(e){return e.attributes.referenceType})).orElse(Qe.c.VOYAGE)}):this.setState(Object(p.a)(Object(p.a)({},this.state),{},{foreignId:null!==(r=null===(a=c.toNullable())||void 0===a?void 0:a.attributes.foreignId)&&void 0!==r?r:null,attributes:s,users:l,selectedJobReferenceType:c.map((function(e){return e.attributes.referenceType})).orElse(Qe.c.VOYAGE)}))}},{key:"render",value:function render(){var e=this.state,t=e.editing,n=e.foreignId,r=e.users,i=e.attributes,o=e.selectedJobReferenceType;return t?Object(a.jsx)(xt,{attributes:i,users:r,allUsers:this.props.allUsers,jobReferenceType:o,jobReferenceTypes:this.props.jobReferenceTypes,onCancel:this.handleCancel,onSubmit:this.submitJobReference,foreignId:n}):Object(a.jsx)(bt,{attributes:i,selectedJobReferenceType:o,users:r,onEdit:this.handleEdit})}},{key:"getJobReference",value:function getJobReference(e,t){return A.a.of(e.find((function(e){return e.id===t})))}}]),JobReferenceUpdatePane}(i.PureComponent),Rt=Object(G.b)([function(e,t){return t.match.params.id},function(e,t){return t.jobReferences},function(e){return e.entities.user},function(e){return e.jobReferenceManager.jobReferenceFollowers}],(function(e,t,n,r){var a=t.filter((function(t){return t.id===e}))[0];return{jobReference:a,allUsers:K.h(n).filter((function(e){return null===e.deletedAt})),followers:K.g(r,a.id).map((function(e){return e.userIds})).orElse([])}})),Ft={submitUpdateJobRef:function submitUpdateJobRef(e,t,n,r){return new Ze.p(e,t,n,r)},unsubscribeUsersFromJobReference:function unsubscribeUsersFromJobReference(e,t,n){return new Be.l(e,t,n)},subscribeUsersToJobReference:function subscribeUsersToJobReference(e,t){return new Be.i(e,t)},unsubscribeUsersFromVesselName:function unsubscribeUsersFromVesselName(e,t){return new Be.m(e,t)},subscribeUsersToVesselName:function subscribeUsersToVesselName(e,t){return new Be.j(e,t)},redirectToCreatePage:function redirectToCreatePage(e){return Object(C.e)(Object(p.a)(Object(p.a)({},e),{},{pathname:b.a.JOB_REFERENCES}))}},Mt=Object(s.j)(Object(l.connect)(Rt,Ft)(Nt)),Dt=function(e){Object(g.a)(JobReferenceCreatePane,e);var t=Object(j.a)(JobReferenceCreatePane);function JobReferenceCreatePane(e){var n;return Object(m.a)(this,JobReferenceCreatePane),(n=t.call(this,e)).createJobReference=function(e){var t,r=n.props,a=r.autoFollowVesselName,i=r.createJobReference,o=r.location,c=e.users,s=e.jobReferenceType,l=Object(kt.a)(e,"users","jobReferenceType"),u=tt(l);i(et(l),JSON.stringify(u),s,c,o,a?null!==(t=u.vesselName)&&void 0!==t?t:"":void 0),n.setState({attributes:l,users:c,selectedJobReferenceType:s})},n.state={editing:!0,attributes:$e(n.props.jobReferenceStyle),users:[],selectedJobReferenceType:Qe.c.VOYAGE},n}return Object(h.a)(JobReferenceCreatePane,[{key:"render",value:function render(){var e=this.state,t=e.attributes,n=e.selectedJobReferenceType;return Object(a.jsx)(xt,{attributes:t,users:[],allUsers:this.props.allUsers,jobReferenceType:n,jobReferenceTypes:this.props.jobReferenceTypes,onSubmit:this.createJobReference})}}]),JobReferenceCreatePane}(i.PureComponent),Lt=Object(G.b)([function(e){return e.entities.user}],(function(e){return{allUsers:K.h(e).filter((function(e){return null===e.deletedAt}))}})),Pt={createJobReference:function createJobReference(e,t,n,r,a,i){return new Ze.a(e,t,n,a,r,i)}},Ut=Object(s.j)(Object(l.connect)(Lt,Pt)(Dt)),Bt=n(163),Ht=n(272),Gt=(n(1252),n(485)),Wt=Object(s.j)((function JobReferenceManager(e){var t=e.jrmCreateFF,n=e.tenantConfig,r=e.currentUser,o=e.location,c=Object(l.useDispatch)(),u=Object(G.d)((function(e){return K.g(e.jobReferenceManager.jobReference,K.a)})),d=Object(G.d)((function(e){return e.ui.sidebar.isEnabled}));i.useEffect((function(){c(new Ze.l)}),[c]);var p=i.useMemo((function(){return t(r.permissions.includes(B.a.jrm_create))}),[r.permissions,t]),m=[Qe.c.VOYAGE,Qe.c.HEAD_FIXTURE,Qe.c.SPOT_FIXTURE,Qe.c.OTHER],h=n.settings.JR_AUTO_FOLLOW_VESSEL,g=Object(W.parse)(o.search);delete g.filter,delete g.filterSet;var j,v={pathname:b.a.LIST,search:Object(W.stringify)(g)};j=r.companyId===ae.u.AFFINITY?Ae.AFFINITY:n.settings.JRM_GENERIC_LABELS?Ae.GENERIC:Ae.DEFAULT;var O=function toggleShowFullBucket(e){return c(new we.t(e))};return Object(Bt.a)(u,(function(e){return Object(a.jsxs)("div",{className:"c-layout",children:[d?Object(a.jsx)(Gt.b,{leftGroup:Object(a.jsx)(D.a,{to:v,children:Object(a.jsx)(re.a,{buttonStyle:"link",icon:Object(M.e)(M.c.ARROW_LEFT),"data-testid":"go-back",children:"Back"})})}):Object(a.jsxs)(Ht.a,{children:[Object(a.jsxs)(Ht.b,{children:[Object(a.jsx)(H.a,{logoLink:Object(H.e)(o.search),toggleShowFullBucket:O}),Object(a.jsx)(Ht.c,{children:Object(a.jsx)(D.a,{to:v,children:Object(a.jsx)(te.a,{buttonContent:"Back",iconGlyph:Object(M.e)(M.c.CHEVRON_LEFT),onClick:ut.a,onDarkTheme:!0,dataTestId:"go-back-button"})})})]}),Object(a.jsxs)(Ht.g,{children:[P.b.t(P.a.JOB_TAG)," Management"]}),Object(a.jsx)(Ht.e,{})]}),Object(a.jsx)("div",{className:"c-layout__body",children:Object(a.jsxs)("div",{className:"c-job-reference-manager",children:[Object(a.jsx)("div",{className:"c-job-reference-manager__list",children:Object(a.jsx)(Xe,{currentUser:r,jobReferenceResources:e,userCanCreateJobReferences:p})}),Object(a.jsx)("div",{className:"c-job-reference-manager__pane",children:Object(a.jsxs)(s.c,{children:[Object(a.jsx)(s.a,{path:b.a.JOB_REFERENCE(),render:function render(){return Object(a.jsx)(Mt,{autoFollowVesselName:h,currentUser:r,jobReferences:e,jobReferenceTypes:m,jobReferenceStyle:j})}}),p&&Object(a.jsx)(s.a,{render:function render(){return Object(a.jsx)(Ut,{autoFollowVesselName:h,currentUser:r,jobReferenceTypes:m,jobReferenceStyle:j})}})]})})]})})]})}))})),zt=n(586),Vt=n(416),Jt=n(617),Yt=n(326),qt=n(330),Kt=n(50),Xt=i.memo((function MessageActionsContainer(e){var t=Object(s.h)().id;return Object(l.useSelector)(Object(G.b)([function(e){return K.g(e.entities.messageBody,t)}],(function(e){return{body:e}}))).body.isLoading()?Object(a.jsx)(Kt.b,{spinner:Kt.a}):Object(a.jsxs)(s.c,{children:[Object(a.jsx)(s.a,{path:b.a.MESSAGE_ACTIVITY(),children:Object(a.jsx)(Yt.a,{currentUser:e.currentUser,currentTeam:e.currentTeam,isMobile:e.isMobile,searchNavigator:e.searchNavigator})}),Object(a.jsx)(s.a,{path:b.a.MESSAGE_TAGS(),children:Object(a.jsx)(qt.b,{currentUser:e.currentUser,currentTeam:e.currentTeam,isCompose:!1,isMobile:e.isMobile,isTouchScreen:he.b})}),Object(a.jsx)(s.a,{children:Object(a.jsx)(Yt.a,{currentUser:e.currentUser,currentTeam:e.currentTeam,isMobile:e.isMobile,searchNavigator:e.searchNavigator})})]})})),Qt=n(388),Zt=n(527),$t=function(e){Object(g.a)(TopicActionsComponent,e);var t=Object(j.a)(TopicActionsComponent);function TopicActionsComponent(){return Object(m.a)(this,TopicActionsComponent),t.apply(this,arguments)}return Object(h.a)(TopicActionsComponent,[{key:"render",value:function render(){var e=this,t=this.props,n=t.currentUser,r=t.currentTeam;return Object(a.jsxs)(s.c,{children:[Object(a.jsx)(s.a,{path:b.a.TOPIC_FOLLOWERS(),render:function render(){return Object(a.jsx)(Zt.a,{currentUser:n,currentTeam:r,isDark:!0,isCompose:!1,isTouchScreen:he.b,hideUserAssigments:e.props.newNotesUIFeatureFlag})}}),Object(a.jsx)(s.a,{render:function render(){return Object(a.jsx)(Qt.a,{currentUser:n,currentTeam:r,isDark:!0,isCompose:!1})}})]})}}]),TopicActionsComponent}(i.PureComponent),en=Object(s.j)($t),tn=n(619),nn=n(166),rn=n(356),an=(n(350),n(378)),on=(n(678),n(49)),cn=(n(1302),{Animation:Object(ve.c)(["@-moz-keyframes fadeout{to{background-color:var(--white);}}@-webkit-keyframes fadeout{to{background-color:var(--white);}}@-o-keyframes fadeout{to{background-color:var(--white);}}@keyframes fadeout{to{background-color:var(--white);}}"])}),sn={ContactTileWrapper:ve.b.div.withConfig({displayName:"contact-tile__ContactTileWrapper",componentId:"eadue4-0"})(["cursor:pointer;margin-bottom:var(--spacing-1);padding:0 var(--spacing-2);"]),ContactTileBlock:ve.b.div.withConfig({displayName:"contact-tile__ContactTileBlock",componentId:"eadue4-1"})(["position:relative;width:100%;"]),ContactTileGrid:ve.b.div.withConfig({displayName:"contact-tile__ContactTileGrid",componentId:"eadue4-2"})(["display:grid;align-items:stretch;border-radius:var(--br1);padding:var(--spacing-3) var(--spacing-3) var(--spacing-3) var(--spacing-5);background-color:var(--white);grid-template-columns:1fr var(--spacing-6);grid-template-rows:20px 20px 20px;grid-column-gap:var(--spacing-3);grid-row-gap:0;color:inherit;position:relative;&:hover,&:focus{color:inherit;text-decoration:none;}&.c--active{background-color:var(--action-10);box-shadow:0 0 0 var(--bw1) var(--action-50);z-index:var(--backdrop-layer);}&.c--highlight{background-color:var(--action-10);animation:"," fadeout 2s forwards;-moz-animation:"," fadeout 2s forwards;-webkit-animation:"," fadeout 2s forwards;-o-animation:"," fadeout 2s forwards;}"],cn.Animation,cn.Animation,cn.Animation,cn.Animation),ContactTileSection:ve.b.div.withConfig({displayName:"contact-tile__ContactTileSection",componentId:"eadue4-3"})(["display:flex;align-items:center;&.c--1{grid-area:1 / 1 / 1 / 2;font-weight:bold;justify-content:left;min-width:0;}&.c--2{grid-area:2 / 1 / 2 / 2;min-width:0;justify-content:left;}&.c--3{grid-area:3 / 1 / 3 / 2;color:var(--grey-50);justify-content:left;min-width:0;}&.c--4{grid-area:1 / 2 / 1 / 3;justify-content:center;}"]),ContactTileSubject:ve.b.span.withConfig({displayName:"contact-tile__ContactTileSubject",componentId:"eadue4-4"})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.right-margin{margin-right:var(--spacing-2);@media print{margin-right:4px;}}"])};function ContactTile(e){var t=e.isActive,n=e.highlightLastMessage,r=e.firstName,i=e.lastName,o=e.emailAddress,c=e.company,l=e.contactID,u=e.isFollowed,p=e.follow,m=e.unFollow,h=e.followRequestInProgress,g=Object(s.f)();return Object(a.jsx)(sn.ContactTileWrapper,{className:"u-mt-sm","data-testid":"c-contact-tile__wrapper",onClick:function onClick(){return g.push(b.a.ADDRESS_BOOK_CONTACT_DETAILS(l))},children:Object(a.jsx)(sn.ContactTileBlock,{"data-testid":"c-contact-id-block",children:Object(a.jsxs)(sn.ContactTileGrid,{className:d()({"c--active":t,"c--highlight":n}),children:[Object(a.jsx)(sn.ContactTileSection,{className:"c--1 u-fs-md",children:Object(a.jsx)(sn.ContactTileSubject,{className:"right-margin","data-testid":"contact-tile-name",children:Object(lt.c)(null!==r&&void 0!==r?r:"",null!==i&&void 0!==i?i:"")})}),Object(a.jsx)(sn.ContactTileSection,{className:"c--2",children:Object(a.jsx)(sn.ContactTileSubject,{"data-testid":"contact-tile-email",children:o})}),Object(a.jsx)(sn.ContactTileSection,{className:"c--3",children:Object(a.jsx)(sn.ContactTileSubject,{"data-testid":"contact-tile-company",children:c})}),Object(a.jsx)(sn.ContactTileSection,{className:"c--4",children:Object(a.jsx)(te.a,{className:d()({"c--selected c--following":u}),dataTestId:"contact-tile-toggle-follow",iconGlyph:Object(M.e)(M.c.FOLLOW),size:"small",onClick:function onClick(){h||(u?m(l):p(l))}})})]})})},l)}var ln=i.memo(ContactTile),un=(n(1303),{Animation:Object(ve.c)(["@-moz-keyframes fadeout{to{background-color:var(--white);}}@-webkit-keyframes fadeout{to{background-color:var(--white);}}@-o-keyframes fadeout{to{background-color:var(--white);}}@keyframes fadeout{to{background-color:var(--white);}}"])}),dn={GroupContactTileWrapper:ve.b.div.withConfig({displayName:"group-contact-tile__GroupContactTileWrapper",componentId:"sc-14zy0av-0"})(["cursor:pointer;margin-bottom:var(--spacing-1);padding:0 var(--spacing-2);"]),GroupContactTileBlock:ve.b.div.withConfig({displayName:"group-contact-tile__GroupContactTileBlock",componentId:"sc-14zy0av-1"})(["position:relative;width:100%;"]),GroupContactTileGrid:ve.b.div.withConfig({displayName:"group-contact-tile__GroupContactTileGrid",componentId:"sc-14zy0av-2"})(["display:grid;align-items:stretch;border-radius:var(--br1);padding:var(--spacing-3) var(--spacing-3) var(--spacing-3) var(--spacing-5);background-color:var(--white);grid-template-columns:1fr var(--spacing-6);grid-template-rows:20px 20px 20px;grid-column-gap:var(--spacing-3);grid-row-gap:0;color:inherit;position:relative;&:hover,&:focus{color:inherit;text-decoration:none;}&.c--active{background-color:var(--action-10);box-shadow:0 0 0 var(--bw1) var(--action-50);z-index:var(--backdrop-layer);}&.c--highlight{background-color:var(--action-10);animation:"," fadeout 2s forwards;-moz-animation:"," fadeout 2s forwards;-webkit-animation:"," fadeout 2s forwards;-o-animation:"," fadeout 2s forwards;}"],un.Animation,un.Animation,un.Animation,un.Animation),GroupContactTileSection:ve.b.div.withConfig({displayName:"group-contact-tile__GroupContactTileSection",componentId:"sc-14zy0av-3"})(["display:flex;align-items:center;&.c--1{grid-area:1 / 1 / 1 / 2;font-weight:bold;justify-content:left;min-width:0;}&.c--2{grid-area:2 / 1 / 2 / 2;min-width:0;justify-content:left;}&.c--3{grid-area:3 / 1 / 3 / 2;color:#8e9aac;justify-content:left;min-width:0;}&.c--4{grid-area:1 / 2 / 1 / 3;justify-content:center;}"]),GroupContactTileSubject:ve.b.span.withConfig({displayName:"group-contact-tile__GroupContactTileSubject",componentId:"sc-14zy0av-4"})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.right-margin{margin-right:var(--spacing-2);@media print{margin-right:4px;}}"])};function GroupContactTile(e){var t=e.highlightLastMessage,n=e.isActive,r=e.group,i=e.numberOfContacts,o=e.groupContactID,c=Object(s.f)();return Object(a.jsx)(dn.GroupContactTileWrapper,{className:"u-mt-sm","data-testid":"c-group-contact-tile__wrapper",onClick:function onClick(){return c.push(b.a.ADDRESS_BOOK_CONTACT_GROUP_DETAILS(o))},children:Object(a.jsx)(dn.GroupContactTileBlock,{"data-testid":"group-contact-tile-block",children:Object(a.jsxs)(dn.GroupContactTileGrid,{className:d()({"c--active":n,"c--highlight":t}),children:[Object(a.jsx)(dn.GroupContactTileSection,{className:"c--1 u-fs-md","data-testid":"group-contact-tile",children:r}),Object(a.jsx)(dn.GroupContactTileSection,{className:"c--2","data-testid":"group-contact-tile-contacts",children:i})]})})},o)}var fn=i.memo(GroupContactTile),bn=i.forwardRef((function(e,t){var n=i.memo((function(e){var t=e.data,n=e.index,r=e.style;return Object(a.jsx)("div",{style:r,children:t.tiles[n]})}),ze.c);return Object(a.jsx)(We.a,{children:function children(r){return Object(a.jsx)(ze.a,{ref:t,height:r.height,width:r.width,itemCount:e.itemCount,itemData:{tiles:e.itemData},itemSize:e.itemSize,className:e.className,overscanCount:36,style:e.style,children:n})}})})),pn=n(181);n(801);function AddressBookListHeader(e){var t=Object(me.c)().isMobile;return Object(a.jsxs)("div",{className:"filter-tabs c-list-header-v2",children:[Object(a.jsx)(F.a,{className:"u-ml-sm",glyph:Object(M.e)(M.c.CONTACTS),size:t?"small":"regular"})," ",e.itemCount]})}var mn,hn=n(63),gn=(n(815),n(157));!function(e){e.CONTACTS="Contacts",e.CONTACT_GROUPS="Contact Groups"}(mn||(mn={}));var jn={InputContainer:ve.b.div.withConfig({displayName:"address-book-search__InputContainer",componentId:"sc-150wjrm-0"})(["position:relative;display:flex;align-items:center;background-color:var(--background-1);padding:var(--spacing-3);svg{position:absolute;color:var(--text-3);margin-left:var(--spacing-3);}"]),Input:ve.b.input.withConfig({displayName:"address-book-search__Input",componentId:"sc-150wjrm-1"})(["min-height:var(--spacing-8);min-width:100%;border-radius:var(--br1);border:1px solid var(--border-1);padding-left:var(--spacing-8);::placeholder{opacity:1;font-size:var(--fs-lg);color:var(--text-3);}"])};function AddressBookSearch(e){var t=Object(gn.a)((function(t){return e.setSearchValue(t)}),200);return Object(a.jsxs)(jn.InputContainer,{children:[Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.SEARCH)}),Object(a.jsx)(jn.Input,{"data-testId":"address-book-search",placeholder:e.type===mn.CONTACTS?"Search ".concat(P.b.t(P.a.CONTACT_PLURAL)):"Search ".concat(P.b.t(P.a.CONTACT_GROUP_PLURAL)),type:"text",onChange:function onChange(e){return t(e.currentTarget.value)}})]})}var vn={Title:ve.b.h3.withConfig({displayName:"contact-list__Title",componentId:"o7zvmv-0"})(["font-size:var(--fs-lg);font-weight:var(--fw-semi);color:var(--text-2);margin-top:var(--spacing-3);margin-bottom:var(--spacing2);text-align:center;"])};function ContactList(e){var t=Object(s.h)().id,n=Object(l.useDispatch)(),o=Object(i.useState)(""),c=Object(r.a)(o,2),u=c[0],d=c[1],b=Object(G.d)(Object(G.b)([function(e){return e.entities.contact},function(e){return e.ui.list},function(e){return e.entities.followedContact}],(function(e,t,n){return{contacts:K.h(e).sort((function(e,t){var n,r,a,i,o=Object(lt.c)(null!==(n=e.attributes.firstName)&&void 0!==n?n:"",null!==(r=e.attributes.lastName)&&void 0!==r?r:"").toLowerCase(),c=Object(lt.c)(null!==(a=t.attributes.firstName)&&void 0!==a?a:"",null!==(i=t.attributes.lastName)&&void 0!==i?i:"").toLowerCase();return Object(hn.b)(o,c)})),listLoading:t.listLoading,listError:t.listError,followedContacts:K.h(n),followedContactStore:n}})));Object(i.useEffect)((function(){n(new on.N)}),[n]);var m=b.contacts.filter((function(e){return function contactMatch(e,t){var n,r,a,i,o=null===(n=e.attributes.firstName)||void 0===n?void 0:n.toLowerCase().includes(t.toLowerCase()),c=null===(r=e.attributes.lastName)||void 0===r?void 0:r.toLowerCase().includes(t.toLowerCase()),s=e.attributes.emailAddresses.some((function(e){return e.toLowerCase().includes(t.toLowerCase())})),l=null===(a=e.attributes.company)||void 0===a?void 0:a.toLowerCase().includes(t.toLowerCase());return null!==(i=null!==o&&void 0!==o?o:c)&&void 0!==i?i:s||l}(e,u)})).map((function(e){return function ContactTileFactory(e){var t=e.data,n=e.isActive,r=e.isFollowed,i=e.follow,o=e.followRequestInProgress,c=e.unFollow,s=t.attributes,l=s.firstName,u=s.lastName,d=s.emailAddresses,b=s.company,m={isActive:n,firstName:l,lastName:u,emailAddress:d[0],company:b,contactID:t.id,isFollowed:r,followRequestInProgress:o,unFollow:c,follow:i};return Object(a.jsx)(ln,Object(p.a)({},m))}({data:e,isActive:e.id.toString()===t,isFollowed:b.followedContacts.includes(e.id.toString()),followRequestInProgress:!1,follow:function follow(){return function follow(e){n(new on.T(e))}(e.id.toString())},unFollow:function unFollow(){return function unFollow(e){n(new on.Y(e))}(e.id.toString())}})}));return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsxs)("div",{className:"layout-hd",children:[Object(a.jsx)(AddressBookSearch,{setSearchValue:d,type:mn.CONTACTS}),Object(a.jsx)(AddressBookListHeader,{itemCount:m.length})]}),Object(a.jsx)("div",{className:"layout-bd","data-testid":"contact-list",children:b.listError?Object(a.jsx)(pn.a,{"data-testid":"contact-list-error",errorText:b.listError.message}):b.listLoading===ae.k.LOADING||b.listLoading===ae.k.NOT_LOADING?Object(a.jsx)(Kt.b,{spinner:Kt.a}):0!==m.length?Object(a.jsx)(bn,{itemCount:m.length,itemData:m,itemSize:80,className:"c-contact-list",ref:e.listRef,style:{overflowX:"hidden"}}):Object(a.jsxs)(vn.Title,{children:["There are no ",P.b.t(P.a.CONTACT_PLURAL)," matching this search"]})})]})}var On={Title:ve.b.h3.withConfig({displayName:"contact-group-list__Title",componentId:"sc-587g42-0"})(["font-size:var(--fs-lg);font-weight:var(--fw-semi);color:var(--text-2);margin-top:var(--spacing-3);margin-bottom:var(--spacing2);text-align:center;"])};function ContactGroupList(e){var t=Object(s.h)().id,n=Object(l.useDispatch)(),o=Object(i.useState)(""),c=Object(r.a)(o,2),u=c[0],d=c[1],b=Object(G.d)(Object(G.b)([function(e){return e.entities.contactGroup},function(e){return e.ui.list}],(function(e,t){return{contactGroups:K.h(e).sort((function(e,t){return Object(hn.b)(e.attributes.name,t.attributes.name)})),listLoading:t.listLoading,listError:t.listError}})));Object(i.useEffect)((function(){n(new on.L)}),[n]);var m=b.contactGroups.filter((function(e){return function contactGroupMatch(e,t){return e.attributes.name.toLowerCase().includes(t.toLowerCase())}(e,u)})).map((function(e){return function ContactGroupTileFactory(e){var t=e.data,n={isActive:e.isActive,group:t.attributes.name,numberOfContacts:t.relationships.contact?t.relationships.contact.data.length.toString():"0",groupContactID:t.id};return Object(a.jsx)(fn,Object(p.a)({},n))}({data:e,isActive:e.id.toString()===t})}));return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsxs)("div",{className:"layout-hd",children:[Object(a.jsx)(AddressBookSearch,{setSearchValue:d,type:mn.CONTACT_GROUPS}),Object(a.jsx)(AddressBookListHeader,{itemCount:m.length})]}),Object(a.jsx)("div",{className:"layout-bd","data-testid":"contact-group-list",children:b.listError?Object(a.jsx)(pn.a,{errorText:b.listError.message}):b.listLoading===ae.k.LOADING||b.listLoading===ae.k.NOT_LOADING?Object(a.jsx)(Kt.b,{spinner:Kt.a}):0!==m.length?Object(a.jsx)(bn,{itemCount:m.length,itemData:m,itemSize:80,className:"c-contact-list",ref:e.listRef,style:{overflowX:"hidden"}}):Object(a.jsxs)(On.Title,{children:["There are no ",P.b.t(P.a.CONTACT_GROUP_PLURAL)," matching this search"]})})]})}var Tn,yn=n(631);!function(e){e.CONTACTS="Contacts",e.CONTACT_GROUPS="Groups"}(Tn||(Tn={}));var Sn=[{id:b.a.ADDRESS_BOOK_CONTACTS,name:Tn.CONTACTS},{id:b.a.ADDRESS_BOOK_CONTACT_GROUPS,name:Tn.CONTACT_GROUPS}];function AddressBookTabList(){var e=Object(s.f)(),t=Object(s.g)().pathname;return Object(a.jsx)(yn.a,{tabs:Sn,activeTabId:t.includes(b.a.ADDRESS_BOOK_CONTACTS)?b.a.ADDRESS_BOOK_CONTACTS:b.a.ADDRESS_BOOK_CONTACT_GROUPS,onTabSelect:function handleTabSelect(t){e.push(t)}})}function AddressBookListContainer(){return Object(a.jsxs)("div",{className:"c-message-list layout-hd-ft",children:[Object(a.jsx)(AddressBookTabList,{}),Object(a.jsxs)(s.c,{children:[Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACT_DETAILS(),render:function render(){return Object(a.jsx)(ContactList,{})}}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACT_GROUP_DETAILS(),render:function render(){return Object(a.jsx)(ContactGroupList,{})}}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACTS,render:function render(){return Object(a.jsx)(ContactList,{})}}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACT_GROUPS,render:function render(){return Object(a.jsx)(ContactGroupList,{})}})]})]})}var Cn=n(174),An=n(410),En=(n(803),{Header:ve.b.div.withConfig({displayName:"address-book-read-header__Header",componentId:"sc-1jr5ld1-0"})(["padding:var(--spacing-6);background-color:var(--white);}};"]),Description:ve.b.span.withConfig({displayName:"address-book-read-header__Description",componentId:"sc-1jr5ld1-1"})(["font-size:var(--fs-sm);color:var(--text-2);"]),Title:ve.b.label.withConfig({displayName:"address-book-read-header__Title",componentId:"sc-1jr5ld1-2"})(["font-size:var(--fs-xxlg);font-weight:var(--fw-semi);"]),Subtitle:ve.b.div.withConfig({displayName:"address-book-read-header__Subtitle",componentId:"sc-1jr5ld1-3"})(["font-size:var(--fs-lg);color:var(--text-2);margin-top:var(--spacing-1);}};"])}),wn=function AddressBookReadHeader(e){var t=e.title,n=e.subTitle,r=e.description,i=e.children;return Object(a.jsxs)(En.Header,{children:[Object(a.jsxs)("div",{className:"u-flex-auto",children:[Object(a.jsx)(En.Description,{children:r}),Object(a.jsxs)(En.Title,{children:[t," ",Object(a.jsx)(F.a,{className:"u-ml-sm u-mb-sm",glyph:Object(M.e)(M.c.SEDNA_NETWORK)})]})]}),Object(a.jsx)(En.Subtitle,{children:n}),i]})},_n=n(74),In=n(273),xn=n(151),kn=n(71),Nn=n(179),Rn=i.memo((function AddressBookInterfacePanel(e){var t=e.trackEvent,n=e.toggleLeftPane,o=e.toggleRightPane,c=e.isLeftPaneCollapsed,s=e.isRightPaneCollapsed,l=e.onSearch,u=e.contactEmailAddresses,d=e.editContact,b=e.composeWithContact,p=e.isMuted,m=e.isMuting,h=e.isUnMuting,g=e.mute,j=e.muteEnabled,v=e.unMute,O=e.deleteContact,T=Object(i.useState)(!1),y=Object(r.a)(T,2),S=y[0],C=y[1],A=Object(i.useMemo)((function(){return Object(In.a)()}),[]),E=p||m,w=m||h,_=function toggleConfirmationModal(){return C(!S)};return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsxs)("div",{className:"c-message-interface-panel u-w-100",children:[Object(a.jsx)("div",{className:"u-br u-b--shade u-pr-xs",children:Object(a.jsx)(te.a,{buttonContent:Object(a.jsx)(A,{text:e.isLeftPaneCollapsed?"Expand pane":"Collapse pane",hotKey:_n.a.TOGGLE_LEFT_PANE}),iconGlyph:e.isLeftPaneCollapsed?Object(M.e)(M.c.CHEVRON_RIGHT):Object(M.e)(M.c.CHEVRON_LEFT),onClick:function onClick(){!function onToggleLeftPane(){n(),t("AddressBook Panes",c?"Left Pane Expand":"Left Pane Collapse")}()},disableOnTouch:!0})}),Object(a.jsxs)("div",{className:"u-flex-auto u-flex u-ml-xs",children:[Object(a.jsx)(te.a,{iconGlyph:Object(M.e)(M.c.EDIT),dataTestId:"contact-edit",onClick:d}),Object(a.jsx)(te.a,{iconGlyph:Object(M.e)(M.c.MESSAGE),dataTestId:"compose-message-with-contact",onClick:b}),Object(a.jsx)(te.a,{buttonContent:"Search",iconGlyph:Object(M.e)(M.c.SEARCH),onClick:function onClick(){return function searchFromEmail(e){e.length>0&&l(e[0])}(u)},dataTestId:"searchButton"}),Object(a.jsxs)(xn.a,{icon:Object(M.e)(M.c.MORE_HORIZ),title:"",subtitle:"More Actions",dataTestId:"showMoreButton",onClick:function onClickMoreAction(){t("AddressBook Panel","More Actions")},type:xn.b.ICONBUTTON,children:[j&&Object(a.jsx)(kn.a,{onClick:function muteUnmute(){w||(p?(v(),t("Contact","Mute contact")):(g(),t("Contact","Unmute contact")))},openNewPage:!1,children:E?"Unmute":"Mute"}),Object(a.jsx)(kn.a,{onClick:_,openNewPage:!1,children:"Delete Contact"})]})]}),Object(a.jsx)("div",{className:"u-bl u-b--shade u-pl-xs",children:Object(a.jsx)(te.a,{buttonContent:Object(a.jsx)(A,{text:e.isRightPaneCollapsed?"Expand pane":"Collapse pane",hotKey:_n.a.TOGGLE_RIGHT_PANE}),iconGlyph:e.isRightPaneCollapsed?Object(M.e)(M.c.CHEVRON_LEFT):Object(M.e)(M.c.CHEVRON_RIGHT),onClick:function onClick(){!function onToggleRightPane(){o(),t("Panes",s?"Right Pane Expand":"Right Pane Collapse")}()},disableOnTouch:!0})})]},"contact-actions"),Object(a.jsx)(Nn.a,{isOpen:S,toggle:_,confirm:function confirm(){O(),t("Contact","Delete contact"),_()},confirmText:"Delete Contact",cancelText:"Cancel",headerText:"Are you sure you want to delete contact?"})]})})),Fn={DetailsBody:ve.b.div.withConfig({displayName:"contact-details__DetailsBody",componentId:"wbwzms-0"})(["flex:1 1 auto;min-height:9rem;overflow:auto;> *{margin-left:var(--spacing-6);}background-color:var(--white);"]),InterfacePanel:ve.b.div.withConfig({displayName:"contact-details__InterfacePanel",componentId:"wbwzms-1"})(["padding-top:var(--spacing-2);padding-bottom:var(--spacing-2);min-height:calc(var(--spacing-2) * 6 + var(--icon-md));background-color:var(--white);"]),PhoneType:ve.b.span.withConfig({displayName:"contact-details__PhoneType",componentId:"wbwzms-2"})(["font-size:var(--fs-sm);margin-left:var(--spacing-3);color:var(--grey-40);"]),Title:ve.b.h3.withConfig({displayName:"contact-details__Title",componentId:"wbwzms-3"})(["font-size:var(--fs-lg);margin-bottom:var(--spacing-4);font-weight:var(--fw-bold);"]),Subtitle:ve.b.div.withConfig({displayName:"contact-details__Subtitle",componentId:"wbwzms-4"})(["font-size:var(--fs);color:var(--grey-40);margin-top:var(",");margin-bottom:var(--spacing-1);"],(function(e){return e.marginTop})),TextValue:ve.b.div.withConfig({displayName:"contact-details__TextValue",componentId:"wbwzms-5"})(["font-size:var(--fs-lg);margin-bottom:var(",");"],(function(e){return e.marginBottom}))};function ContactDetails(e){var t=Object(l.useDispatch)(),n=Object(s.g)(),r=Object(s.h)().id,o=Object(G.d)(Object(G.b)([function(e){return e.entities.contact},function(e){return K.g(e.entities.mutedContact,K.a)},function(e){return e.ui.featureFlags.MUTE_CONTACT}],(function(e,t,n){return{contact:K.g(e,r),mutedContactState:t,muteEnabled:n}}))),c=function trackEvent(e,n){return t(new fe.a(e,n))},u=function composeWithContact(){o.contact.ifPresent((function(e){var r=Object(W.parse)(n.search);r.contactId=e.id,t(Object(C.e)({pathname:b.a.COMPOSE_NEW_MESSAGE,search:Object(W.stringify)(r)})),c("compose","Compose New Message")}))},d=function contactInCollection(e){return o.contact.map((function(t){return o.mutedContactState.map(e).orElse([]).includes(t.id)})).orElse(!1)},m=function searchEmailFrom(r){e.currentUser&&t(new oe.c(z.k.fromFilterTerm(new z.n(r)),Object(p.a)(Object(p.a)({},n),{},{pathname:b.a.LIST}),e.currentUser))},h=function editContact(){o.contact.ifPresent((function(e){t(Object(C.e)(Object(p.a)(Object(p.a)({},n),{},{pathname:b.a.ADDRESS_BOOK_CONTACT_UPDATE(e.id)})))}))},g=function deleteContact(){o.contact.ifPresent((function(e){t(new on.S(e.id)),t(Object(C.e)(Object(p.a)(Object(p.a)({},n),{},{pathname:b.a.ADDRESS_BOOK_CONTACTS})))}))},j=function muteContact(){o.contact.ifPresent((function(n){t(new on.W(e.currentUser.id,[n.id]))}))},v=function unMuteContact(){o.contact.ifPresent((function(n){t(new on.Z(e.currentUser.id,[n.id]))}))};i.useEffect((function(){o.contact.ifNotLoading((function(){t(new on.I(r))}))}),[o.contact,r,t]);var O=function buildContactDescription(e,t,n){return(null!==t&&void 0!==t?t:"")+(t&&n||t&&e?", ":"")+(n?"in "+n:"")+(n&&e?", ":"")+(e?"at "+e:"")};return o.contact.unwrapTo((function(t){return function renderDetailsBody(t){var n=t.attributes,r=n.firstName,i=n.lastName,s=n.company,l=n.title,b=n.team,p=n.emailAddresses,T=n.phoneNumbers,y=n.address1,S=n.address2,C=n.address3,A=n.postalCode,E=n.city,w=n.country,_=null===T||void 0===T?void 0:T.filter((function(e){return e.type===Cn.a.MOBILE})),I=null===T||void 0===T?void 0:T.filter((function(e){return e.type===Cn.a.OFFICE})),x=null===T||void 0===T?void 0:T.filter((function(e){return e.type===Cn.a.HOME})),k=null===T||void 0===T?void 0:T.filter((function(e){return e.type===Cn.a.SATELLITE})),N=!y&&!E&&!w&&!A,R=0===(null===T||void 0===T?void 0:T.length);return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(An.a,{toggleLeftPane:e.toggleLeftPane,toggleRightPane:e.toggleRightPane}),Object(a.jsx)(Fn.InterfacePanel,{className:"u-mb-xs u-mt-xs",children:Object(a.jsx)(Rn,{contactEmailAddresses:t.attributes.emailAddresses,toggleRightPane:e.toggleRightPane,toggleLeftPane:e.toggleLeftPane,isLeftPaneCollapsed:e.isLeftPaneCollapsed,isRightPaneCollapsed:e.isRightPaneCollapsed,trackEvent:c,composeWithContact:u,onSearch:m,editContact:h,isMuted:d((function(e){var t=e.muted;return Object(Q.a)(t)})),isMuting:d((function(e){var t=e.muting;return Object(Q.a)(t)})),isUnMuting:d((function(e){var t=e.unMuting;return Object(Q.a)(t)})),mute:j,unMute:v,muteEnabled:!!e.currentUser&&o.mutedContactState.isPresent()&&o.muteEnabled,deleteContact:g})}),Object(a.jsx)(wn,{title:Object(lt.c)(null!==r&&void 0!==r?r:"",null!==i&&void 0!==i?i:""),subTitle:O(s,l,b)}),Object(a.jsxs)(Fn.DetailsBody,{children:[Object(a.jsxs)(Fn.Title,{className:"u-mt-md",children:[P.b.t(P.a.CONTACT)," Details"]}),Object(a.jsx)(Fn.Subtitle,{marginTop:"--spacing-2",children:"Email"}),0!==p.length?p.map((function(e){return Object(a.jsx)(Fn.TextValue,{marginBottom:"--spacing-2",children:e},e)})):Object(a.jsx)(Fn.TextValue,{children:"N/A"}),Object(a.jsx)(Fn.Subtitle,{marginTop:"--spacing-5",children:"Phone"}),_.map((function(e){return Object(a.jsxs)(Fn.TextValue,{marginBottom:"--spacing-2",children:[e.number,Object(a.jsx)(Fn.PhoneType,{children:"Mobile"})]},e.number)})),I.map((function(e){return Object(a.jsxs)(Fn.TextValue,{marginBottom:"--spacing-2",children:[e.number,Object(a.jsx)(Fn.PhoneType,{children:"Office"})]},e.number)})),x.map((function(e){return Object(a.jsxs)(Fn.TextValue,{marginBottom:"--spacing-2",children:[e.number,Object(a.jsx)(Fn.PhoneType,{children:"Home"})]},e.number)})),k.map((function(e){return Object(a.jsxs)(Fn.TextValue,{marginBottom:"--spacing-2",children:[e.number,Object(a.jsx)(Fn.PhoneType,{children:"Satellite"})]},e.number)})),R&&Object(a.jsx)(Fn.TextValue,{children:"N/A"}),Object(a.jsx)(Fn.Title,{className:"u-mt-lg",children:"Location"}),Object(a.jsx)(Fn.Subtitle,{marginTop:"--spacing-2",children:"Address"}),y&&Object(a.jsx)(Fn.TextValue,{children:y}),S&&Object(a.jsx)(Fn.TextValue,{children:S}),C&&Object(a.jsx)(Fn.TextValue,{children:C}),A&&Object(a.jsx)(Fn.TextValue,{children:A}),E&&Object(a.jsx)(Fn.TextValue,{children:E}),w&&Object(a.jsx)(Fn.TextValue,{children:w}),N&&Object(a.jsx)(Fn.TextValue,{children:"N/A"})]})]})}(t)}),(function(){return Object(a.jsx)(Kt.b,{spinner:Kt.a})}),(function(e){return Object(a.jsx)(pn.a,{errorText:"Something went wrong!"})}))}var Mn=n(481),Dn=i.memo((function AddressBookGroupInterfacePanel(e){var t=e.trackEvent,n=e.toggleLeftPane,o=e.toggleRightPane,c=e.isLeftPaneCollapsed,s=e.isRightPaneCollapsed,l=e.editContactGroup,u=e.deleteContactGroup,d=e.duplicate,b=Object(i.useState)(!1),p=Object(r.a)(b,2),m=p[0],h=p[1],g=Object(i.useMemo)((function(){return Object(In.a)()}),[]),j=function toggleConfirmationModal(){return h(!m)};return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsxs)("div",{className:"c-message-interface-panel u-w-100",children:[Object(a.jsx)("div",{className:"u-br u-b--shade u-pr-xs",children:Object(a.jsx)(te.a,{buttonContent:Object(a.jsx)(g,{text:e.isLeftPaneCollapsed?"Expand pane":"Collapse pane",hotKey:_n.a.TOGGLE_LEFT_PANE}),iconGlyph:e.isLeftPaneCollapsed?Object(M.e)(M.c.CHEVRON_RIGHT):Object(M.e)(M.c.CHEVRON_LEFT),onClick:function onClick(){!function onToggleLeftPane(){n(),t("AddressBook Panes",c?"Left Pane Expand":"Left Pane Collapse")}()},disableOnTouch:!0})}),Object(a.jsxs)("div",{className:"u-flex-auto u-flex u-ml-xs",children:[Object(a.jsx)(te.a,{iconGlyph:Object(M.e)(M.c.EDIT),dataTestId:"contact-group-edit",onClick:l}),Object(a.jsx)(te.a,{iconGlyph:Object(M.e)(M.c.COPY),dataTestId:"contact-group-copy",onClick:d}),Object(a.jsx)(xn.a,{icon:Object(M.e)(M.c.MORE_HORIZ),title:"",subtitle:"More Actions",dataTestId:"showMoreButton",onClick:function onClickMoreAction(){t("AddressBook Panel","More Actions")},type:xn.b.ICONBUTTON,children:Object(a.jsx)(kn.a,{onClick:j,openNewPage:!1,children:"Delete Contact Group"})})]}),Object(a.jsx)("div",{className:"u-bl u-b--shade u-pl-xs",children:Object(a.jsx)(te.a,{buttonContent:Object(a.jsx)(g,{text:e.isRightPaneCollapsed?"Expand pane":"Collapse pane",hotKey:_n.a.TOGGLE_RIGHT_PANE}),iconGlyph:e.isRightPaneCollapsed?Object(M.e)(M.c.CHEVRON_LEFT):Object(M.e)(M.c.CHEVRON_RIGHT),onClick:function onClick(){!function onToggleRightPane(){o(),t("AddressBook Panes",s?"Right Pane Expand":"Right Pane Collapse")}()},disableOnTouch:!0})})]},"contact-actions"),Object(a.jsx)(Nn.a,{isOpen:m,toggle:j,confirm:function confirm(){u(),t("Contact","Delete contact-group"),j()},confirmText:"Delete",cancelText:"Cancel",headerText:"Are you sure you want to delete contact group?"})]})})),Ln={DetailsBody:ve.b.div.withConfig({displayName:"contact-group-details__DetailsBody",componentId:"sc-13vy9nu-0"})(["flex:1 1 auto;min-height:9rem;overflow:auto;> *{margin-left:var(--spacing-6);}background-color:var(--white);"]),InterfacePanel:ve.b.div.withConfig({displayName:"contact-group-details__InterfacePanel",componentId:"sc-13vy9nu-1"})(["padding-top:var(--spacing-2);padding-bottom:var(--spacing-2);min-height:calc(var(--spacing-2) * 6 + var(--icon-md));background-color:var(--white);"]),Title:ve.b.h3.withConfig({displayName:"contact-group-details__Title",componentId:"sc-13vy9nu-2"})(["font-size:var(--fs-lg);margin-bottom:var(--spacing-4);font-weight:var(--fw-bold);"])};function ContactGroupDetails(e){var t=Object(l.useDispatch)(),n=Object(s.g)(),r=Object(s.h)().id,o=Object(G.d)(Object(G.b)([function(e){return e.entities.contactGroup},function(e){return e.entities.contact}],(function(e,t){var n=K.g(e,r),a=n.map((function(e){var t=e.relationships.contact;return t?t.data.map((function(e){return e.id})):[]}));return{contactGroup:n,contacts:K.m(a,(function(e){return K.g(t,e)}))}})));i.useEffect((function(){o.contactGroup.ifNotLoading((function(){t(new on.K(r))})),o.contacts.ifNotLoading((function(){t(new on.N)}))}),[o.contactGroup,o.contacts,r,t]);return o.contactGroup.unwrapTo((function(r){return function renderDetailsBody(r,i){var c=i.map((function(e){return e.map((function(e){return{email:e.attributes.emailAddresses[0]}}))})).orElse([]);return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(An.a,{toggleLeftPane:e.toggleLeftPane,toggleRightPane:e.toggleRightPane}),Object(a.jsx)(Ln.InterfacePanel,{className:"u-mb-xs u-mt-xs",children:Object(a.jsx)(Dn,{toggleRightPane:e.toggleRightPane,toggleLeftPane:e.toggleLeftPane,isLeftPaneCollapsed:e.isLeftPaneCollapsed,isRightPaneCollapsed:e.isRightPaneCollapsed,trackEvent:function trackEvent(e,n){return t(new fe.a(e,n))},editContactGroup:function editContactGroup(){o.contactGroup.ifPresent((function(e){t(Object(C.e)(Object(p.a)(Object(p.a)({},n),{},{pathname:b.a.ADDRESS_BOOK_CONTACT_GROUP_UPDATE(e.id)})))}))},deleteContactGroup:function deleteContactGroup(){o.contactGroup.ifPresent((function(e){t(new on.U(e.id)),t(Object(C.e)(Object(p.a)(Object(p.a)({},n),{},{pathname:b.a.ADDRESS_BOOK_CONTACT_GROUPS})))}))},duplicate:function duplicate(){o.contactGroup.ifPresent((function(e){t(Object(C.e)(Object(p.a)(Object(p.a)({},n),{},{search:Object(W.stringify)(Object(p.a)(Object(p.a)({},Object(W.parse)(n.search)),{},{duplicateOfContactGroupId:e.id})),pathname:b.a.ADDRESS_BOOK_CONTACT_GROUP_CREATE})))}))}})}),Object(a.jsx)(wn,{title:r.attributes.name}),Object(a.jsx)(Ln.DetailsBody,{children:Object(a.jsx)("div",{className:"u-mr-lg",children:Object(a.jsx)(Mn.a,{name:"email-list-table",searchable:!1,columns:[{Header:"Email",id:"email",accessor:"email",Cell:function Cell(e){return e.row.original.email},sortType:"caseInsensitiveString"}],data:c,emptyTableProps:{text:"No Emails",icon:M.c.CONTACTS}})})})]})}(r,o.contacts)}),(function(){return Object(a.jsx)(Kt.b,{spinner:Kt.a})}),(function(e){return Object(a.jsx)(pn.a,{errorText:"Something went wrong!"})}))}function AddressBookReadContainer(e){return Object(a.jsxs)(s.c,{children:[Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACT_DETAILS(),render:function render(){return Object(a.jsx)(ContactDetails,{toggleRightPane:e.toggleRightPane,toggleLeftPane:e.toggleLeftPane,isLeftPaneCollapsed:e.isLeftPaneCollapsed,isRightPaneCollapsed:e.isRightPaneCollapsed,currentUser:e.currentUser})}}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACT_GROUP_DETAILS(),render:function render(){return Object(a.jsx)(ContactGroupDetails,{toggleRightPane:e.toggleRightPane,toggleLeftPane:e.toggleLeftPane,isLeftPaneCollapsed:e.isLeftPaneCollapsed,isRightPaneCollapsed:e.isRightPaneCollapsed,currentUser:e.currentUser})}})]})}var Pn=n(340),Un=n(66),Bn=n(361),Hn=n(629),Gn={Container:ve.b.div.withConfig({displayName:"contact-comments__Container",componentId:"sc-1h0uq6b-0"})(["display:flex;flex-direction:column;height:100%;"]),Header:ve.b.div.withConfig({displayName:"contact-comments__Header",componentId:"sc-1h0uq6b-1"})(["display:flex;justify-content:space-between;align-items:center;padding-top:var(--spacing-2);padding-bottom:var(--spacing-2);min-height:calc( var(--spacing-2) * 5 + var(--icon-md) +var(--spacing-4) + var(--spacing-1) );// match height of bips"]),Title:ve.b.div.withConfig({displayName:"contact-comments__Title",componentId:"sc-1h0uq6b-2"})(["font-size:var(--fs-xlg);"]),Content:ve.b.div.withConfig({displayName:"contact-comments__Content",componentId:"sc-1h0uq6b-3"})(["border-top:1px solid var(--border-shade);position:relative;flex:1 1 auto;"])},Wn=i.memo((function ContactCommentsContainer(e){var t=Object(l.useDispatch)(),n=Object(s.h)().id,r=Object(l.useSelector)(Object(G.b)([function(e){return e.entities.user},function(e){return e.entities.contactComment}],(function(e,t){return{user:e,comments:K.g(t,n)}})));i.useEffect((function(){r.comments.isNotLoading()&&t(new Pn.d(n,e.currentTeam.id))}),[n,e.currentTeam,r.comments,t]);var o=function submitComment(r){t(new Pn.e(n,e.currentTeam.id,r))},c=function trackMaxCharsReachedInComment(){t(fe.a.withEvent(Object(fe.f)("Comment - Max Char Warning (Messages)",n)))},u=function renderComment(e,t,n,r,i,o){return Object(a.jsxs)("li",{className:"c-activity-list__item",children:[Object(a.jsx)("div",{className:d()("c-activity-list__icon c--person",{"c--fill":o,"u-fs-sm":r.length>2}),children:r||Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.COMMENT),size:"small"})}),Object(a.jsxs)("div",{className:d()("c-activity-list__comment",{"c--current":o}),children:[Object(a.jsx)("span",{className:"u-fw-b",children:n})," ",Object(a.jsxs)("span",{className:"c-activity-list__comment-time",children:["at ",Object(Un.e)(Ge()(e))," said..."]}),Object(a.jsx)("br",{}),Object(a.jsx)(Bn.a,{content:i})]})]},t)};return r.comments.unwrapTo((function(t){return function renderContactComments(t){return Object(a.jsxs)(Gn.Container,{children:[Object(a.jsx)(Gn.Header,{children:Object(a.jsx)(Gn.Title,{className:"u-fw-b u-flex u-ml-md",children:"Activity"})}),Object(a.jsx)(Gn.Content,{children:Object(a.jsxs)("div",{className:"c-activity-pane",children:[Object(a.jsx)("div",{className:"c-activity-pane__items",children:t.length<=0?Object(a.jsx)("p",{className:"empty-content-message",children:"No comments"}):Object(a.jsx)("ul",{className:"c-activity-list",children:t.map((function(t,n){var i=K.g(r.user,t.userId);return Object(a.jsxs)("li",{children:[Object(a.jsx)("div",{className:"c-activity-list__date-wrapper",children:Object(a.jsx)("div",{className:"c-activity-list__date",children:Object(Un.b)(Ge()(Ge()(t.createdAt).format("YYYY-MM-DD")),!1)})}),Object(a.jsx)("ul",{className:"u-list u-pl-md u-pr-md u-pb-sm",children:u(t.createdAt,t.id,i.map((function(e){return Object(lt.c)(e.firstName,e.lastName)})).orElse(""),i.map((function(e){return Object(lt.e)(null,e.firstName,e.lastName)})).orElse(""),t.content,t.userId===e.currentUser.id)})]},n)}))})}),Object(a.jsx)("div",{className:"u-flex-shrink-0 u-pl-md u-pb-md u-pr-md",children:Object(a.jsx)(Hn.a,{visibleUsers:[],submitComment:o,trackMaxCharsReachedInComment:c})})]})})]})}(t)}),(function(){return Object(a.jsx)(Kt.b,{dataTestId:"contact-comment-dataTestId",spinner:Kt.a})}),(function(e){return Object(a.jsx)(pn.a,{errorText:"Something went wrong!"})}))})),zn=i.lazy((function(){return Promise.all([n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1829))})),Vn=function(e){Object(g.a)(IndexScreen,e);var t=Object(j.a)(IndexScreen);function IndexScreen(e){var n;return Object(m.a)(this,IndexScreen),(n=t.call(this,e)).animationTiming=150,n.renderListActions=function(){return Object(a.jsx)(tn.a,{currentUser:n.props.currentUser,currentTeam:n.props.currentTeam})},n.renderListContainer=function(){return Object(a.jsx)(Vt.a,{currentUser:n.props.currentUser,currentTeam:n.props.currentTeam,isMobile:!1,tenantConfig:n.props.tenantConfig,searchNavigator:n.props.searchNavigator,listQuickFiltersEnabled:n.props.listQuickFiltersEnabled})},n.renderAddressBookListContainer=function(){return Object(a.jsx)(AddressBookListContainer,{})},n.renderAddressBookReadContainer=function(){return Object(a.jsx)(AddressBookReadContainer,{toggleLeftPane:n.toggleLeftPane,toggleRightPane:n.toggleRightPane,isLeftPaneCollapsed:n.state.isLeftPaneCollapsed,isRightPaneCollapsed:n.state.isRightPaneCollapsed,currentUser:n.props.currentUser})},n.renderAddressBookCommentsContainer=function(){return Object(a.jsx)(Wn,{currentUser:n.props.currentUser,currentTeam:n.props.currentTeam})},n.renderMessage=function(){return Object(a.jsx)(Jt.a,{currentUser:n.props.currentUser,currentTeam:n.props.currentTeam,tenantConfig:n.props.tenantConfig,featureFlags:n.props.featureFlags,toggleRightPane:n.toggleRightPane,toggleLeftPane:n.toggleLeftPane,isLeftPaneCollapsed:n.state.isLeftPaneCollapsed,isRightPaneCollapsed:n.state.isRightPaneCollapsed,searchNavigator:n.props.searchNavigator,isMobile:!1})},n.renderMessageActions=function(){return Object(a.jsx)(Xt,{currentUser:n.props.currentUser,currentTeam:n.props.currentTeam,isMobile:n.props.isMobile,searchNavigator:n.props.searchNavigator})},n.renderTopic=function(){return Object(a.jsx)(i.Suspense,{fallback:Object(a.jsx)(Kt.b,{spinner:Kt.a}),children:Object(a.jsx)(zn,{tenantConfig:n.props.tenantConfig,currentUser:n.props.currentUser,currentTeam:n.props.currentTeam,isMobile:!1,toggleRightPane:n.toggleRightPane,toggleLeftPane:n.toggleLeftPane,isLeftPaneCollapsed:n.state.isLeftPaneCollapsed,isRightPaneCollapsed:n.state.isRightPaneCollapsed,isTabletish:n.props.isDoublePane,searchNavigator:n.props.searchNavigator})})},n.renderTopicActions=function(){return Object(a.jsx)(en,{currentUser:n.props.currentUser,currentTeam:n.props.currentTeam,newNotesUIFeatureFlag:n.props.featureFlags.NEW_NOTES_UI})},n.renderEmpty=function(){return n.state.isLeftPaneCollapsed&&n.openLeftPane(),Object(a.jsx)("div",{style:{color:"var(--background-shade)",width:"50%",height:"100%",margin:"auto",paddingTop:"15%"},children:Object(a.jsx)(nn.a,{})})},n.updateState=function(){n.state.isLeftPaneCollapsed||n.setState({isRightPaneCollapsed:!0,shouldRightPanelAnimate:!1})},n.toggleLeftPane=function(){n.state.isLeftPaneCollapsed?(n.props.isDoublePane&&n.setState({isRightPaneCollapsed:!0,shouldRightPanelAnimate:!1}),n.openLeftPane()):n.closeLeftPane()},n.openLeftPane=function(){n.setState({isLeftPaneCollapsed:!1}),setTimeout((function(){n.setState({shouldLeftPanelAnimate:!0})}),n.animationTiming)},n.closeLeftPane=function(){setTimeout((function(){n.setState({isLeftPaneCollapsed:!0})}),n.animationTiming),n.setState({shouldLeftPanelAnimate:!1})},n.toggleRightPane=function(){n.state.isRightPaneCollapsed?(n.props.isDoublePane&&n.setState({isLeftPaneCollapsed:!0,shouldLeftPanelAnimate:!1}),n.openRightPane()):n.closeRightPane()},n.openRightPane=function(){n.setState({isRightPaneCollapsed:!1}),setTimeout((function(){n.setState({shouldRightPanelAnimate:!0})}),n.animationTiming)},n.closeRightPane=function(){setTimeout((function(){n.setState({isRightPaneCollapsed:!0})}),n.animationTiming),n.setState({shouldRightPanelAnimate:!1})},n.state={isLeftPaneCollapsed:!1,shouldLeftPanelAnimate:!0,isRightPaneCollapsed:n.props.isDoublePane,shouldRightPanelAnimate:!n.props.isDoublePane},n}return Object(h.a)(IndexScreen,[{key:"componentDidUpdate",value:function componentDidUpdate(e){this.props.isDoublePane!==e.isDoublePane&&this.updateState()}},{key:"render",value:function render(){return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(rn.a,{leftPaneContent:Object(a.jsxs)(s.c,{children:[Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK,render:this.renderAddressBookListContainer}),Object(a.jsx)(s.a,{path:b.a.LIST,render:this.renderListContainer})]}),rightPaneContent:Object(a.jsxs)(s.c,{children:[Object(a.jsx)(s.a,{path:b.a.MESSAGE(),render:this.renderMessageActions}),Object(a.jsx)(s.a,{path:b.a.TOPIC(),render:this.renderTopicActions}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACT_DETAILS(),render:this.renderAddressBookCommentsContainer})]}),isLeftPaneCollapsed:this.state.isLeftPaneCollapsed,isRightPaneCollapsed:this.state.isRightPaneCollapsed,shouldLeftPanelAnimate:this.state.shouldLeftPanelAnimate,shouldRightPanelAnimate:this.state.shouldRightPanelAnimate,toggleRightPane:this.toggleRightPane,toggleLeftPane:this.toggleLeftPane,featureFlagListWidth:this.props.featureFlags.LIST_WIDTH,children:Object(a.jsxs)(s.c,{children:[Object(a.jsx)(s.a,{path:b.a.LIST_ACTIONS,render:this.renderListActions}),Object(a.jsx)(s.a,{path:b.a.MESSAGE(),render:this.renderMessage}),Object(a.jsx)(s.a,{path:b.a.TOPIC(),render:this.renderTopic}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK,render:this.renderAddressBookReadContainer}),Object(a.jsx)(s.a,{render:this.renderEmpty})]})}),Object(a.jsx)(an.a,{})]})}}]),IndexScreen}(i.PureComponent),Jn=function(e){Object(g.a)(CreditsComponent,e);var t=Object(j.a)(CreditsComponent);function CreditsComponent(){return Object(m.a)(this,CreditsComponent),t.apply(this,arguments)}return Object(h.a)(CreditsComponent,[{key:"render",value:function render(){return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)("header",{className:"c-header c-layout__header",style:{paddingTop:22,paddingBottom:22},children:Object(a.jsx)(v.a,{dark:!0,expand:!0,children:Object(a.jsx)(H.a,{logoLink:Object(H.e)(this.props.location.search),toggleShowFullBucket:this.props.toggleShowFullBucket})})}),Object(a.jsx)("div",{className:"container-fluid u-overflow-y-auto-x-hidden",style:{marginTop:"var(--spacing-8)"},children:Object(a.jsxs)("div",{className:"row",children:[Object(a.jsx)("div",{className:"col-xl-3"}),Object(a.jsxs)("div",{className:"col-xl-6",style:{boxShadow:"0 0 3px rgba(0, 0, 0, 0.2)",background:"var(--white)",padding:"var(--spacing-6)"},children:[Object(a.jsx)("h1",{children:"Credits"}),Object(a.jsxs)("table",{className:"table",style:{marginTop:"var(--spacing-6)"},children:[Object(a.jsx)("thead",{children:Object(a.jsxs)("tr",{children:[Object(a.jsx)("th",{scope:"col",children:"Title"}),Object(a.jsx)("th",{scope:"col",children:"Name"})]})}),Object(a.jsxs)("tbody",{children:[Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Tsar of Bad Tsystems"}),Object(a.jsx)("td",{children:"Noel Pullen"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Software Developer Intern"}),Object(a.jsx)("td",{children:"Sebastiano Carlucci"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Software Developer"}),Object(a.jsx)("td",{children:"Gurinder Walia"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Intern Developer"}),Object(a.jsx)("td",{children:"Andy Lin"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Software Developer"}),Object(a.jsx)("td",{children:"Saurav Saha"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"New (aka Newbie) Sedna Software Developer"}),Object(a.jsx)("td",{children:"Andrei Emanuel Apostolescu"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Mike #2"}),Object(a.jsx)("td",{children:"Jach"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"That QA Guy"}),Object(a.jsx)("td",{children:"Nelson Gill"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"The Chief"}),Object(a.jsx)("td",{children:"Eddy Lane"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Not Thomas"}),Object(a.jsx)("td",{children:"Tomek Wawreniuk"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"A Powerful Developer"}),Object(a.jsx)("td",{children:"Neil Power"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"New in Canada Developer"}),Object(a.jsx)("td",{children:"Tajinder Kaur"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Software Developer"}),Object(a.jsx)("td",{children:"Ankur Gupta"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Co-op Software Developer"}),Object(a.jsx)("td",{children:"Alice Zhou"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"The returning designer/developer"}),Object(a.jsx)("td",{children:"Andy Liang"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Software Developer"}),Object(a.jsx)("td",{children:"Akhtaab Ismael"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"The Craftsman"}),Object(a.jsx)("td",{children:"Josep Bonet"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"The New Co-op"}),Object(a.jsx)("td",{children:"Philip Ng"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"God-Status Coder"}),Object(a.jsx)("td",{children:"Ammar Shakir"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Notorious V.I.J"}),Object(a.jsx)("td",{children:"Viraj Ranjankumar"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Reza Moghaddas"}),Object(a.jsx)("td",{children:"Reza Moghaddas"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"The MOST New Co-op"}),Object(a.jsx)("td",{children:"Spandana Baruah"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Devlopr"}),Object(a.jsx)("td",{children:"Ken Takagi"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Developer"}),Object(a.jsx)("td",{children:"Zohar Cohen"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Expert Drone Crasher and Failed NBA Player"}),Object(a.jsx)("td",{children:"George Wang"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Tiste Andii"}),Object(a.jsx)("td",{children:"Danilo Pavkov"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Api Dev - Making it work!"}),Object(a.jsx)("td",{children:"Simon Bruins"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Chief Meme Officer"}),Object(a.jsx)("td",{children:"Edvins Antonovs"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Compute!"}),Object(a.jsx)("td",{children:"Scott Hewlitt"})]}),Object(a.jsxs)("tr",{children:[Object(a.jsx)("td",{children:"Intermediate Frontend Developer"}),Object(a.jsx)("td",{children:"Jakub Jirous"})]})]})]})]}),Object(a.jsx)("div",{className:"col-xl-3"})]})})]})}}]),CreditsComponent}(i.PureComponent),Yn=Object(s.j)(Jn),qn=n(428),Kn=n(263),Xn=n(606),Qn=n(296),Zn=n(404),$n=n(1462),er=n(290),tr=n(592),nr=n(374),rr=n(270),ar=n.n(rr),ir={Modal:Object(ve.b)(ar.a).withConfig({displayName:"quick-actions-modal__Modal",componentId:"sc-7wvvi2-0"})(["background-color:var(--background-4);color:var(--white);border-radius:var(--br2);width:100rem;position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);.sidebar-expanded &,.sidebar-collapsed &{right:0;transform:translate(0,-50%);margin:0 auto;width:68rem;@media ","{width:90rem;}}.sidebar-expanded &{left:var(--sidebar-expanded-width);}.sidebar-collapsed &{left:var(--sidebar-collapsed-width);}"],he.a.minMedium),ModalHeader:ve.b.div.withConfig({displayName:"quick-actions-modal__ModalHeader",componentId:"sc-7wvvi2-1"})(['flex:auto;display:flex;flex-direction:row;align-items:center;padding:var(--spacing-2) var(--spacing-3);input[type="text"]{color:var(--text-4);}border-bottom:1px solid var(--border-2);']),ModalBody:ve.b.div.withConfig({displayName:"quick-actions-modal__ModalBody",componentId:"sc-7wvvi2-2"})(["padding:0;overflow-y:auto;height:50rem;"]),ModalContextBar:ve.b.div.withConfig({displayName:"quick-actions-modal__ModalContextBar",componentId:"sc-7wvvi2-3"})(["font-size:var(--fs-sm);color:var(--text-4);padding:var(--spacing-2) var(--spacing-3) 0;"]),ModalInput:Object(ve.b)($n.a).withConfig({displayName:"quick-actions-modal__ModalInput",componentId:"sc-7wvvi2-4"})(["padding:var(--spacing-2) 0;"]),ListHeader:ve.b.div.withConfig({displayName:"quick-actions-modal__ListHeader",componentId:"sc-7wvvi2-5"})(["font-size:var(--fs-sm);font-weight:var(--fw-bold);color:var(--action-20);padding:var(--spacing-2) var(--spacing-3);"]),ListItem:ve.b.div.withConfig({displayName:"quick-actions-modal__ListItem",componentId:"sc-7wvvi2-6"})(["display:flex;align-items:center;cursor:pointer;padding:var(--spacing-2) var(--spacing-3);",""],(function(e){return e.activeItem&&"\n      background-color: var(--menu-item-dark-hover-background);\n      color: var(--menu-item-dark-hover-text);\n    "})),ModalFooter:ve.b.div.withConfig({displayName:"quick-actions-modal__ModalFooter",componentId:"sc-7wvvi2-7"})(["border-top:1px solid var(--border-2);justify-content:flex-start;font-size:var(--fs-sm);color:var(--text-4);padding:var(--spacing-2) var(--spacing-3);"])},cr=function quickActionSort(e,t){return e.description>t.description?-1:e.description<t.description?1:0},sr=function QuickActionsModal(e){var t=e.isOpen,n=e.setIsOpen,o=e.actions,c=Object(i.useRef)(null),s=Object(i.useState)(0),l=Object(r.a)(s,2),u=l[0],d=l[1],b=Object(i.useState)(o.sort(cr)),p=Object(r.a)(b,2),m=p[0],h=p[1],g=Object(i.useRef)(null),j=Object(i.useState)(!1),v=Object(r.a)(j,2),O=v[0],T=v[1];Object(i.useEffect)((function(){g.current&&O&&(g.current.scrollIntoView({behavior:"smooth",block:"nearest"}),T(!1))}),[O]);var y=Object(i.useCallback)((function(e){var t=e.target.value.toUpperCase();h(o.filter((function(e){return e.description.toUpperCase().includes(t)})).sort(cr)),d(0)}),[o]),S=Object(i.useCallback)((function(e){e.triggerFunction(),n(!1),d(0)}),[n]),C=Object(i.useCallback)((function(e){if(!e.metaKey&&!e.ctrlKey||"j"!==e.key&&"J"!==e.key)switch(e.key){case"ArrowDown":e.preventDefault(),d((function(e){return e<m.length-1?e+1:e})),T(!0);break;case"ArrowUp":e.preventDefault(),d((function(e){return e>0?e-1:e})),T(!0);break;case"Enter":e.preventDefault(),S(m[u])}else e.preventDefault(),n((function(e){return!e}))}),[u,m,S,n]);return Object(er.a)(_n.a.TOGGLE_MODAL,(function(t){var r;t.preventDefault(),n((function(e){return!e})),null===(r=c.current)||void 0===r||r.focus(),e.onCommandMenuOpen()}),[]),Object(i.useEffect)((function(){t||(h(o.sort(cr)),d(0))}),[o,t]),Object(a.jsxs)(ir.Modal,{isOpen:t,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,onRequestClose:function onRequestClose(){return n(!1)},ariaHideApp:!1,style:{overlay:{zIndex:9999,backgroundColor:"var(--shade-40)"},content:{boxShadow:"var(--dropshadow-lg)"}},children:[Object(a.jsxs)(ir.ModalHeader,{children:[Object(a.jsx)(ir.ModalInput,{type:"text",placeholder:"Type a command, filter, bookmark, etc",innerRef:c,style:{backgroundColor:"var(--background-4)",borderColor:"var(--background-4)"},onChange:y,onKeyDown:C}),Object(a.jsx)(te.a,{buttonContent:"Close",iconGlyph:Object(M.e)(M.c.CLEAR),onClick:function onClick(){n((function(e){return!e}))},onDarkTheme:!0,dataTestId:"close-modal-button"})]}),Object(a.jsxs)(ir.ModalBody,{children:[Object(a.jsx)(ir.ListHeader,{children:"Commands"}),0!==m.length?m.map((function(e,t){return Object(a.jsxs)(ir.ListItem,{ref:u===t?g:void 0,activeItem:u===t,onClick:function onClick(){return S(e)},onMouseEnter:function onMouseEnter(){return d(t)},children:[Object(a.jsx)("span",{className:"u-flex-auto",children:e.description}),e.hotKeyCommand&&Object(a.jsx)(tr.a,{hotkey:e.hotKeyCommand})]},e.name)})):Object(a.jsx)(ir.ListItem,{activeItem:null,children:"No actions found"})]}),Object(a.jsxs)(ir.ModalFooter,{children:[Object(a.jsx)(nr.a,{id:"down",val:Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.ARROW_DOWN),size:"small"})}),Object(a.jsx)(nr.a,{id:"up",val:Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.ARROW_UP),size:"small"})}),Object(a.jsx)("span",{className:"u-pl-xs u-pr-md",children:"To navigate between items"}),Object(a.jsx)(nr.a,{id:"return",val:Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.RETURN),size:"small"})}),Object(a.jsx)("span",{className:"u-pl-xs u-pr-md",children:"To select an item"}),Object(a.jsx)(nr.a,{id:"esc",val:"esc"}),Object(a.jsx)("span",{className:"u-pl-xs u-pr-md",children:"To close"})]})]},"quickActionsModal")};function QuickActionsModalContainer(){var e=Object(Zn.b)().quickActions,t=Object(i.useState)(!1),n=Object(r.a)(t,2),o=n[0],c=n[1],s=Object(l.useDispatch)(),u=i.useCallback((function(){s(fe.a.withEvent({eventCategory:"Key Commands",eventAction:"Open Command Menu"}))}),[s]);return Object(a.jsx)(sr,{isOpen:o,setIsOpen:c,actions:e,onCommandMenuOpen:u})}var lr,ur,dr,fr=n(607),br=n(473),pr=n(266),mr=n(146),hr=n(97),gr=n(333),jr=function EnableSidebarModal(e){var t=e.currentUser,n=o.a.useRef(!1),i=o.a.useContext(gr.a).onToggle,c=Object(l.useDispatch)(),s=Object(hr.d)("".concat("SEDNA_ENABLE_SIDEBAR_DO_NOT_ASK_KEY_V1","_").concat(t.id),false),u=Object(r.a)(s,2),d=u[0],b=u[1],p=o.a.useState(d),m=Object(r.a)(p,2),h=m[0],g=m[1],j=Object(hr.d)("".concat(mr.d,"_").concat(t.id),mr.e),v=Object(r.a)(j,2),O=v[0],T=v[1],y=o.a.useState(!1),S=Object(r.a)(y,2),C=S[0],A=S[1],E=o.a.useCallback((function(){n.current=!0,A(!1),i(null),h&&b(h)}),[h,i,b]),w=o.a.useCallback((function(){c(h?fe.a.withEvent(Object(fe.p)("Sidebar: Skipped forever from modal")):fe.a.withEvent(Object(fe.p)("Sidebar: Skipped for now from modal"))),E()}),[c,h,E]),_=o.a.useCallback((function(){b(!0),T(!0),c(new J.k(!0)),c(fe.a.withEvent(Object(fe.p)("Sidebar: Enabled from modal"))),E()}),[c,E,b,T]);return o.a.useEffect((function(){!n.current&&!d&&null===O&&(A(!0),i(gr.b.ENABLE_SIDEBAR))}),[n,d,i,O]),C?Object(a.jsx)(Nn.a,{isOpen:C,toggle:w,confirm:_,confirmText:"Enable",cancelText:"Maybe later",headerText:"Try the New Sidebar Navigation?",onDoNotAskChange:g,isDoNotAskChecked:h,children:'SEDNA\u2019s new sidebar is here! You can turn it on or off by going to Settings and clicking "Enable the New SEDNA Look". Would you like to enable the new Sidebar Navigation now?'}):null},vr=n(100),Or=n(101),Tr=n(58),yr=o.a.createContext(!1),Sr={Container:ve.b.div.withConfig({displayName:"split-button__Container",componentId:"syawc1-0"})(["display:inline-flex;"]),SplitButton:Object(ve.b)(re.a).withConfig({displayName:"split-button__SplitButton",componentId:"syawc1-1"})(["flex:1 0;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:var(--spacing-1);"]),ExtraButton:Object(ve.b)(re.a).withConfig({displayName:"split-button__ExtraButton",componentId:"syawc1-2"})(["border-top-left-radius:0;border-bottom-left-radius:0;"])},Cr=o.a.forwardRef((function(e,t){var n;return Object(a.jsxs)(Sr.Container,{className:e.className,"data-testid":null!==(n=e.testId)&&void 0!==n?n:"split-button-container",children:[Object(a.jsx)(Sr.SplitButton,Object(p.a)(Object(p.a)({},Object(kt.a)(e,"testId","onSecondaryClick","secondaryIcon","className")),{},{"data-testid":e.testId+"-primary"||!1,children:e.children})),Object(a.jsx)(Sr.ExtraButton,{onClick:e.onSecondaryClick,buttonStyle:e.buttonStyle,icon:e.secondaryIcon,onDarkBg:e.onDarkBg,size:e.size,"data-testid":e.testId+"-secondary"||!1,ref:t})]})})),Ar=n(419),Er=n(584),wr={Container:ve.b.div.withConfig({displayName:"sidebar-compose__Container",componentId:"hnsbas-0"})(["margin-top:var(--spacing-2);display:flex;justify-content:center;position:relative;min-height:calc(2 * var(--bw1) + var(--icon-md) + 2 * var(--spacing-3));"]),ButtonContainer:ve.b.div.withConfig({displayName:"sidebar-compose__ButtonContainer",componentId:"hnsbas-1"})(["margin-top:var(--spacing-2);",""],(function(e){return!e.$collapsed&&"\n      width: calc(\n        var(--sidebar-expanded-width) - 2 * var(--spacing-2) - 2 *\n        var(--spacing-3)\n      );\n      margin-top: var(--spacing-3);\n    "})),ToggleButton:Object(ve.b)(te.a).withConfig({displayName:"sidebar-compose__ToggleButton",componentId:"hnsbas-2"})(["--button-primary-background:var(--purple-50);--icon-button-background:var(--button-primary-background);--icon-button-text:var(--button-primary-text);--icon-button-active-background:var(--button-primary-background);--icon-button-hover-background:var(--button-primary-hover);--icon-button-hover-text:var(--button-primary-text);border:var(--bw1) solid var(--button-primary-background);:focus{box-shadow:none;border-color:var(--action-40);}",""],(function(e){return!e.$show&&"\n      display: none;\n    "})),SplitButton:Object(ve.b)(Cr).withConfig({displayName:"sidebar-compose__SplitButton",componentId:"hnsbas-3"})(["--button-primary-background:var(--purple-50);width:calc( var(--sidebar-expanded-width) - 2 * var(--spacing-2) - 2 * var(--spacing-3) );margin-left:var(--spacing-3);font-size:var(--fs-sm);opacity:1;transition:left 100ms ease-in-out;position:absolute;left:0;",""],(function(e){return!e.$show&&"\n      pointer-events: none;\n      opacity: 0;\n      position: absolute;\n      left: -400px;\n    "})),Button:Object(ve.b)(re.a).withConfig({displayName:"sidebar-compose__Button",componentId:"hnsbas-4"})(["--button-primary-background:var(--purple-50);width:calc( var(--sidebar-expanded-width) - 2 * var(--spacing-2) - 2 * var(--spacing-3) );margin-left:var(--spacing-3);font-size:var(--fs-sm);opacity:1;transition:left 100ms ease-in-out,opacity 100ms ease-in-out;position:absolute;left:0;",""],(function(e){return!e.$show&&"\n      opacity: 0;\n      position: absolute;\n      left: 100%;\n    "})),Divider:ve.b.div.withConfig({displayName:"sidebar-compose__Divider",componentId:"hnsbas-5"})(["margin-top:var(--spacing-4);margin-bottom:var(--spacing-4);width:100%;background-color:var(--border-1);border:1px solid var(--border-1);"])},_r=o.a.memo((function(e){var t=o.a.useContext(yr),n=Object(s.g)(),i=Object(l.useDispatch)(),c=o.a.createRef(),u=Object(G.d)((function(e){return e.ui.activeTeamsInSearch})),d=Object(G.d)((function(e){return K.h(e.entities.team)})),m=Object(G.d)((function(e){return K.g(e.entities.userConfig,K.a).toUndefined()})),h=o.a.useState(!1),g=Object(r.a)(h,2),j=g[0],v=g[1],O=Object(s.f)(),T=o.a.useCallback((function(){u.teams.length>1||u.allTeams?v(!0):(O.push({pathname:b.a.COMPOSE_NEW_MESSAGE,search:Object(W.stringify)(Object(p.a)(Object(p.a)({},Object(W.parse)(n.search)),{},{sendingTeamId:u.teams[0]?u.teams[0].id:null}))}),i(fe.a.withEvent(Object(fe.p)("Sidebar - Compose: Create message"))))}),[i,O,n.search,u.teams,u.allTeams]),y=o.a.useCallback((function(){return i(fe.a.withEvent(Object(fe.p)("Sidebar - ".concat(t?"Collapsed":"Expanded",": Create"))))}),[i,t]),S=function handleCreate(e){u.teams.length>1||u.allTeams?(e.preventDefault(),v(!0)):i(fe.a.withEvent(Object(fe.p)("Sidebar - Expanded: Create")))},A=function handleCreateNewNote(){O.push({pathname:b.a.COMPOSE_NEW_TOPIC,search:n.search}),i(fe.a.withEvent(Object(fe.p)("Sidebar - Compose: Create Note")))};Object(vr.a)(Or.n,T,[n.search,O]),Object(vr.a)(Or.o,(function(){return e.notesEnabled?A():Object(ut.a)()}),[n.search,O,e.notesEnabled],e.notesEnabled);var E=function renderToggle(r){var i=r.onClick,o=r.testId,s={pathname:b.a.COMPOSE_NEW_MESSAGE,search:Object(W.stringify)(Object(p.a)(Object(p.a)({},Object(W.parse)(n.search)),{},{sendingTeamId:u.teams.length>1||u.allTeams?null===m||void 0===m?void 0:m.user.defaultTeamId:u.teams[0]?u.teams[0].id:null}))};return Object(a.jsx)(wr.ButtonContainer,{$collapsed:t,children:e.notesEnabled||e.addressBookP2Enabled?Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(D.a,{to:s,children:Object(a.jsx)(wr.SplitButton,{onClick:S,onSecondaryClick:function handleSecondaryClick(e){e.preventDefault(),i(e)},testId:t?void 0:o,icon:Object(M.e)(M.c.ADD),secondaryIcon:Object(M.e)(M.c.CHEVRON_DOWN),size:"small",$show:!t,ref:c,children:"Create"})}),Object(a.jsx)(wr.ToggleButton,{onClick:i,iconGlyph:Object(M.e)(M.c.ADD),dataTestId:t?o:void 0,$show:t})]}):Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(D.a,{to:s,children:Object(a.jsx)(wr.Button,{onClick:S,"data-testid":t?void 0:o,icon:Object(M.e)(M.c.ADD),size:"small",$show:!t,children:"Create"})}),Object(a.jsx)(D.a,{to:s,children:Object(a.jsx)(wr.ToggleButton,{onClick:S,iconGlyph:Object(M.e)(M.c.ADD),dataTestId:t?o:void 0,$show:t})})]})})};return Object(a.jsxs)("div",{children:[Object(a.jsx)(Tr.a,{content:e.notesEnabled||e.addressBookP2Enabled?"Create":"Create message",placement:"right",boundary:"window",hidden:!t,children:Object(a.jsx)(wr.Container,{children:e.notesEnabled||e.addressBookP2Enabled?Object(a.jsxs)(xn.a,{subtitle:"Create new",renderToggle:E,placement:"right-start",dataTestId:"compose-picker",distance:"large",onOpen:y,children:[Object(a.jsx)(kn.a,{onClick:T,testId:"compose-message",children:"Message"}),e.notesEnabled&&Object(a.jsx)(kn.a,{onClick:A,testId:"compose-note",children:"Note"}),e.addressBookP2Enabled&&Object(a.jsxs)("span",{children:[Object(a.jsx)(wr.Divider,{}),Object(a.jsx)(kn.a,{testId:"create-contact",onClick:function createNewContact(){var e;O.push({pathname:b.a.ADDRESS_BOOK_CONTACT_CREATE()}),null===(e=c.current)||void 0===e||e.click(),i(fe.a.withEvent(Object(fe.p)("Sidebar - Compose: Create Contact")))},children:"Contact"}),Object(a.jsx)(kn.a,{testId:"create-group",onClick:function handleCreateNewContactGroup(){var e;O.push({pathname:b.a.ADDRESS_BOOK_CONTACT_GROUP_CREATE,search:n.search}),i(fe.a.withEvent(Object(fe.p)("Sidebar - Compose: Create Contact Group"))),null===(e=c.current)||void 0===e||e.click()},children:"Contact Group"})]}),e.workflowEnabled&&Object(a.jsx)(kn.a,{onClick:function handleCreateNewWorkflow(){O.push({pathname:b.a.WORKFLOWS_CREATE,search:n.search}),i(fe.a.withEvent(Object(fe.p)("Sidebar - Compose: Create Workflow")))},testId:"compose-workflow",children:"Workflow"})]}):E({onClick:T,testId:"compose-picker"})})}),Object(a.jsxs)(Ar.a,{"data-testid":"from-team-selection",isOpen:j,toggle:function toggle(){return v(!1)},confirmText:"Select",cancelText:"Cancel",headerText:"Select the ".concat(P.b.t(P.a.TEAM)," to send from?"),multiple:!1,options:u.allTeams?Object(Er.a)(d,m?m.user.userTeams:[]).map((function(e){return{label:e.name,id:e.id}})):u.teams.map((function(e){return{label:e.name,id:e.id}})),fieldName:"fromTeamId",onSubmit:function onSubmit(e){var t=e.fromTeamId,r=Object(p.a)(Object(p.a)({},Object(W.parse)(n.search)),{},{sendingTeamId:t});i(Object(C.e)({pathname:b.a.COMPOSE_NEW_MESSAGE,search:Object(W.stringify)(r)})),v(!1),i(fe.a.withEvent(Object(fe.p)("Sidebar - Compose: Create message")))},children:["You have multiple ",P.b.t(P.a.TEAM_PLURAL).toLowerCase()," ","selected. Please select one \u201cfrom\u201d"," ",P.b.t(P.a.TEAM).toLowerCase(),":"]})]})})),Ir={Header:ve.b.div.withConfig({displayName:"sidebar-header__Header",componentId:"sc-1e43gf4-0"})(["position:relative;height:calc(var(--icon-md) + 2 * var(--spacing-3) + 2 * var(--spacing-3));background-color:var(--background-4);flex-shrink:0;"]),ToggleButton:Object(ve.b)(te.a).withConfig({displayName:"sidebar-header__ToggleButton",componentId:"sc-1e43gf4-1"})(["--button-primary-background:var(--purple-50);--icon-button-background:var(--button-primary-background);--icon-button-text:var(--button-primary-text);--icon-button-active-background:var(--button-primary-background);--icon-button-hover-background:var(--button-primary-hover);--icon-button-hover-text:var(--button-primary-text);z-index:var(--frontrow-layer);margin-top:var(--spacing-3);top:calc(var(--icon-md) / 2 + var(--spacing-3) - var(--icon-sm) / 2);right:calc(-1 * var(--spacing-2) - var(--icon-sm) / 2);position:absolute;padding:0 !important;opacity:0;transition:opacity 50ms ease-in-out;",""],(function(e){return e.$visible&&"\n      opacity: 1;\n      box-shadow: 0 0 2px 2px var(--shade-20), 0 0 4px 4px var(--shade-20);;\n    "})),ToggleStrip:ve.b.div.withConfig({displayName:"sidebar-header__ToggleStrip",componentId:"sc-1e43gf4-2"})(["width:var(--spacing-2);background-color:var(--action-50);height:100%;position:absolute;top:0;bottom:0;"]),Content:ve.b.div.withConfig({displayName:"sidebar-header__Content",componentId:"sc-1e43gf4-3"})(["background-color:var(--background-4);position:absolute;margin-top:var(--spacing-3);clip:rect(0,16rem,5rem,0);transition:all 150ms ease-in-out;z-index:2;",""],(function(e){return e.$collapsed&&"\n        clip: rect(0, 4.25rem, 5rem, 0);\n        width: 4.5rem;\n        overflow: hidden;\n    "}))},xr=o.a.memo((function(e){var t=o.a.useContext(yr),n=Object(i.useMemo)((function(){return Object(In.a)()}),[]);return Object(a.jsxs)(Ir.Header,{$collapsed:t,children:[Object(a.jsx)(Tr.a,{content:Object(a.jsx)(n,{text:"Home",hotKey:_n.a.GO_HOME}),placement:"right",boundary:"window",children:Object(a.jsx)(Ir.Content,{$collapsed:t,children:e.children})}),Object(a.jsx)(Tr.a,{content:Object(a.jsx)(n,{text:t?"Expand ":"Collapse",hotKey:_n.a.TOGGLE_SIDEBAR}),placement:"right",boundary:"window",hideOnClick:!0,children:Object(a.jsx)(Ir.ToggleButton,{$visible:!!e.showToggle,onClick:e.onToggle,iconGlyph:Object(M.e)(t?M.c.CHEVRON_RIGHT:M.c.CHEVRON_LEFT),size:"small"})})]})})),kr=ve.b.div.withConfig({displayName:"sidebar-menu__Menu",componentId:"sc-1aerwtm-0"})(["display:flex;flex-direction:column;padding:0;margin:var(--spacing-3) 0 var(--spacing-2);"]),Nr=function SidebarMenu(e){var t=e.children;return Object(a.jsx)(kr,{children:t})},Rr=ve.b.div.withConfig({displayName:"sidebar-menu-item__MenuItem",componentId:"sc-8ad3q8-0"})(["cursor:pointer;list-style:none;color:var(--text-4);margin-bottom:var(--spacing-1);",""],(function(e){return e.$indent&&"\n    & > :first-child {\n      padding-left: var(--spacing-6);\n    }\n  "})),Fr=ve.b.span.withConfig({displayName:"sidebar-menu-item__ButtonText",componentId:"sc-8ad3q8-1"})(["flex:1 1 auto;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2;margin-right:var(--spacing-3);",""],(function(e){return!e.$noSpacing&&"margin-left: var(--spacing-3);"})),Mr=function createWideButton(e){return Object(ve.b)(e).withConfig({displayName:"sidebar-menu-item",componentId:"sc-8ad3q8-2"})(["--button-active-background:var(--purple-80);padding:0 var(--spacing-3) 0 var(--spacing-5);border:none;border-radius:var(--br);outline:none;position:relative;display:inline-flex;align-items:center;width:100%;background-color:transparent;color:var(--text-3);min-height:calc(var(--spacing-3) * 2 + var(--icon-sm));"," ",":focus,:hover{color:var(--white) !important;}:active,:focus,:hover{outline:none;}"," "," "," & svg{flex-shrink:0;}"],(function(e){return"small"===e.$size&&"font-size: var(--fs-sm);"}),(function(e){return"secondary"===e.$type&&"color: var(--action-20);"}),(function(e){return void 0===e.$active&&"primary"===e.$type&&"\n      :active,\n      :focus {\n        background-color: var(--button-active-background);\n        color: var(--white) !important;\n      }\n  "}),(function(e){return e.$active&&"primary"===e.$type&&"\n      background-color: var(--button-active-background);\n      color: var(--white) !important;\n    "}),(function(e){return e.$active&&"tertiary"===e.$type&&"\n      color: var(--white) !important;\n    "}))},Dr=Mr("button"),Lr=Mr("a"),Pr=Mr(D.a),Ur=function createIconButton(e){return Object(ve.b)(e).withConfig({displayName:"sidebar-menu-item",componentId:"sc-8ad3q8-3"})(["--icon-button-hover-background:transparent;--icon-button-active-background:var(--purple-80);padding:var(--spacing-3) var(--spacing-5);border:none;border-radius:var(--br);outline:none;position:relative;display:inline-flex;align-items:center;background-color:transparent;color:var(--text-3);:focus,:hover{color:var(--white) !important;}:active,:focus,:hover{outline:none;}"," "," ",""],(function(e){return void 0===e.$active&&"primary"===e.$type&&"\n      :active,\n      :focus {\n        color: var(--white);\n        background-color: var(--icon-button-active-background);\n      }\n  "}),(function(e){return e.$active&&"primary"===e.$type&&"\n      background-color: var(--button-active-background);\n      color: var(--white) !important;\n    "}),(function(e){return e.$active&&"tertiary"===e.$type&&"\n      color: var(--white) !important;\n    "}))},Br=ve.b.div.withConfig({displayName:"sidebar-menu-item__Badge",componentId:"sc-8ad3q8-4"})(["width:var(--spacing-3);height:var(--spacing-3);background-color:var(--yellow-50);border-radius:50%;position:absolute;left:calc(var(--spacing-5) / 2 - var(--spacing-3) / 2);"]),Hr=Ur("button"),Gr=Ur("a"),Wr=Ur(D.a),zr=o.a.memo((function(e){var t,n,r,i,c,s,l=o.a.useContext(yr),u=e.iconGlyph&&Object(a.jsx)(F.a,{glyph:e.iconGlyph,size:"small",testId:e.testId?"sidebar-menu-icon-".concat(e.testId):void 0}),d=e.showBadge?Object(a.jsx)(Br,{}):null;return l?Object(a.jsx)(Tr.a,{content:e.text,placement:"right",boundary:"window",children:Object(a.jsx)(Rr,{className:e.className,children:e.href&&!e.openNewPage?Object(a.jsxs)(Wr,{to:e.href,$active:e.isActive,$type:null!==(i=e.type)&&void 0!==i?i:"tertiary",onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-testid":e.testId,children:[d,u,e.children]}):e.href?Object(a.jsxs)(Gr,{href:e.href,target:"_blank",rel:"noopener noreferrer",$active:e.isActive,$type:null!==(c=e.type)&&void 0!==c?c:"tertiary",onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-testid":e.testId,children:[d,u,e.children]}):Object(a.jsxs)(Hr,{$active:e.isActive,$type:null!==(s=e.type)&&void 0!==s?s:"tertiary",onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-testid":e.testId,children:[d,u,e.children]})})}):Object(a.jsx)(Rr,{className:e.className,$indent:e.indent,children:e.href&&!e.openNewPage?Object(a.jsxs)(Pr,{to:e.href,$active:e.isActive,$size:e.size,$type:null!==(t=e.type)&&void 0!==t?t:"tertiary",onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-testid":e.testId,children:[d,u,Object(a.jsx)(Tr.a,{content:e.text,placement:"right",boundary:"window",hidden:!e.showTooltipOnText,children:Object(a.jsx)(Fr,{$noSpacing:!u,children:e.text})}),e.children]}):e.href?Object(a.jsxs)(Lr,{href:e.href,target:"_blank",rel:"noopener noreferrer",$active:e.isActive,$size:e.size,$type:null!==(n=e.type)&&void 0!==n?n:"tertiary",onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-testid":e.testId,children:[d,u,Object(a.jsx)(Tr.a,{content:e.text,placement:"right",boundary:"window",hidden:!e.showTooltipOnText,children:Object(a.jsx)(Fr,{$noSpacing:!u,children:e.text})})," ",e.children]}):Object(a.jsxs)(Dr,{$active:e.isActive,$size:e.size,$type:null!==(r=e.type)&&void 0!==r?r:"tertiary",onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-testid":e.testId,children:[d,u,Object(a.jsx)(Tr.a,{content:e.text,placement:"right",boundary:"window",hidden:!e.showTooltipOnText,children:Object(a.jsx)(Fr,{$noSpacing:!u,children:e.text})})," ",e.children]})})})),Vr=ve.b.div.withConfig({displayName:"sidebar-footer__Footer",componentId:"pvy0ke-0"})(["border-top:var(--bw1) solid var(--action-70);flex-shrink:0;"]),Jr=function SidebarFooter(e){return Object(a.jsx)(Vr,{children:e.children})},Yr=ve.b.div.withConfig({displayName:"sidebar-scrollable__ScrollableContainer",componentId:"sc-18w95or-0"})(["min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;::-webkit-scrollbar{background-color:transparent;width:var(--spacing-3);}::-webkit-scrollbar-thumb{background-color:var(--action-tint-30);border-radius:var(--br1);}::-webkit-scrollbar-thumb:hover{background-color:var(--action-tint-60);}"]),qr=function SidebarScrollable(e){return Object(a.jsx)(Yr,{children:e.children})},Kr=function getPlacement(e){return"middle"===e?"right":"bottom"===e?"right-end":"right-start"},Xr=o.a.memo((function(e){var t=o.a.useContext(yr);return Object(a.jsx)(xn.a,{subtitle:e.subtitle,renderToggle:function renderToggle(n){var r=n.onClick,i=n.testId;return t?Object(a.jsx)(Tr.a,{content:e.text,placement:"right",children:Object(a.jsx)(Rr,{children:Object(a.jsx)(Hr,{onClick:r,"data-testid":i,$type:"primary",children:e.renderIcon()})})}):Object(a.jsx)(Rr,{children:Object(a.jsxs)(Dr,{onClick:r,"data-testid":i,$type:"primary",children:[e.renderIcon(),Object(a.jsx)(Fr,{children:e.text})]})})},placement:Kr(e.alignment),dataTestId:e.testId,distance:"small",onOpen:e.onOpen,children:e.children})})),Qr=Object(ve.b)(nn.a).withConfig({displayName:"sidebar-logo__StyledLogo",componentId:"yqjk1h-0"})(["fill:var(--white);height:calc(var(--icon-md) + 2 * var(--spacing-3) + 2 * var(--bw1));"]),Zr=o.a.memo((function(e){return Object(a.jsx)(D.a,{to:e.href,"data-testid":e.testId,onClick:e.onClick,children:Object(a.jsx)(Qr,{})})})),$r={CollapsibleMenu:ve.b.div.withConfig({displayName:"sidebar-collapsible__CollapsibleMenu",componentId:"wa96q2-0"})(["display:flex;flex-direction:column;padding:0;margin-bottom:var(--spacing-3);"]),IconWrapper:ve.b.span.withConfig({displayName:"sidebar-collapsible__IconWrapper",componentId:"wa96q2-1"})(["line-height:1;position:absolute;right:var(--spacing-3);"])},ea=o.a.memo((function(e){if(!o.a.useContext(yr))return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(zr,{iconGlyph:e.iconGlyph,onClick:e.onToggle,text:e.text,isActive:!1,type:"secondary",children:Object(a.jsx)($r.IconWrapper,{children:Object(a.jsx)(F.a,{glyph:Object(M.e)(e.isMenuCollapsed?M.c.CHEVRON_DOWN:M.c.CHEVRON_UP),size:"small"})})}),!e.isMenuCollapsed&&Object(a.jsx)($r.CollapsibleMenu,{children:e.children})]});return Object(a.jsx)(Xr,{renderIcon:function renderIcon(){return Object(a.jsx)(F.a,{glyph:e.iconGlyph,size:"small"})},text:e.text,subtitle:e.subtitle,children:e.children})})),ta=ve.b.div.withConfig({displayName:"sidebar-divider__Divider",componentId:"sc-1m3v72s-0"})(["border-bottom:var(--bw1) solid var(--action-70);"]),na=function SidebarDivider(){return Object(a.jsx)(ta,{})},ra=ve.b.div.withConfig({displayName:"sidebar-toggle-strip__SidebarToggleStrip",componentId:"sc-7dbazk-0"})(["width:var(--spacing-2);background-color:var(--action-50);height:100%;position:absolute;top:0;bottom:0;left:calc(100% - var(--spacing-2));cursor:pointer;opacity:0;transition:opacity 50ms ease-in-out;",""],(function(e){return e.$visible&&"\n      opacity: 1;\n    "})),aa=ve.b.span.withConfig({displayName:"sidebar-menu-icon-wrapper__Wrapper",componentId:"cinptb-0"})(["line-height:1;padding:var(--spacing-2);border-radius:50%;border:none;margin-right:calc(-1 * var(--spacing-2));display:flex;justify-content:center;",":hover{","}"],(function(e){return e.$disabled&&"color: var(--text-3);\n    "}),(function(e){var t=e.$disabled,n=e.$light;return!t&&(n?"\n        background-color: var(--action-05);\n        ":"\n        background-color: var(--action-50);\n        color: var(--white);\n      ")})),ia=function SidebarMenuIconWrapper(e){var t=o.a.useContext(yr);return Object(a.jsx)(aa,{$light:t,$disabled:e.disabled,children:Object(a.jsx)(F.a,{glyph:e.icon,size:"small"})})},oa=ve.b.div.withConfig({displayName:"sidebar-navigation__Container",componentId:"sc-1lzsp6l-0"})(["flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;padding:0 var(--spacing-2);height:100%;width:",";transition:width 150ms ease-in-out;background-color:var(--background-4);position:relative;"," @media print{display:none;}@media ","{box-shadow:none;}",""],(function(e){return e.$wide?"var(--sidebar-expanded-width)":"var(--sidebar-collapsed-width)"}),(function(e){return e.$wide&&"box-shadow: 0 1rem 1rem 0.5rem rgba(0, 0, 0, 0.1);"}),he.a.minMedium,(function(e){return e.$overlay&&"\n    position: absolute;\n    z-index: var(--frontrow-layer);\n  "})),ca=o.a.memo((function(e){return Object(a.jsxs)(yr.Provider,{value:e.isCollapsed,children:[Object(a.jsx)(oa,{$wide:!e.isCollapsed,$overlay:e.overlay,"data-testid":"sidebar-navigation",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,children:e.children}),e.overlay&&Object(a.jsx)(oa,{$wide:!1})]})})),sa=ve.b.div.withConfig({displayName:"sidebar-guides__Wrapper",componentId:"sc-1oy14y9-0"})(['position:relative;.appcues-widget{position:absolute;height:100%;width:100%;top:0;left:0;display:block;svg{display:none;}.appcues{width:100%;height:100%;.appcues-widget-icon{height:100%;width:100%;}.appcues-widget-icon[data-appcues-count^="1"]:before,.appcues-widget-icon[data-appcues-count^="2"]:before,.appcues-widget-icon[data-appcues-count^="3"]:before,.appcues-widget-icon[data-appcues-count^="4"]:before,.appcues-widget-icon[data-appcues-count^="5"]:before,.appcues-widget-icon[data-appcues-count^="6"]:before,.appcues-widget-icon[data-appcues-count^="7"]:before,.appcues-widget-icon[data-appcues-count^="8"]:before,.appcues-widget-icon[data-appcues-count^="9"]:before{display:initial;content:"";width:var(--spacing-3);height:var(--spacing-3);background-color:var(--yellow-50);border-radius:50%;min-width:0;font-size:0;position:absolute;top:50%;transform:translateY(-50%);left:calc(var(--spacing-5) / 2 - var(--spacing-3) / 2);}.appcues-widget-icon:after{display:none;}.appcues-widget-icon:before{display:none;}}}']),la=i.memo((function(e){var t=i.useContext(yr);return i.useEffect((function(){try{Appcues&&Appcues.loadLaunchpad("#appcues-launchpad",{position:"top-right",header:"SEDNA Guides"})}catch(e){}}),[t]),Object(a.jsx)(sa,{children:Object(a.jsx)(zr,{text:"Guides",iconGlyph:Object(M.e)(M.c.GRAD_HAT),onClick:e.onClick,children:Object(a.jsx)("div",{id:"appcues-launchpad"})})})})),ua=function SidebarWhatsNew(e){var t=i.useState(!1),n=Object(r.a)(t,2),o=n[0],c=n[1],s=i.useRef(null);i.useEffect((function(){var e;null===(e=s.current)||void 0===e||e.unread().then((function(e){s.current&&c(e>0)}));var t=s.current;return function(){null===t||void 0===t||t.instance().then((function(e){var t,n=null===(t=e.frame)||void 0===t?void 0:t.wrapper;n&&n.remove()}))}}),[]);var l=i.useCallback((function(e){var t=e.unread;c(t>0)}),[]);return Object(a.jsx)(zr,{text:"What's New",iconGlyph:Object(M.e)(M.c.GIFT),showBadge:o,onClick:function handleOpen(){var t;null===(t=s.current)||void 0===t||t.open(),e.onClick()},children:Object(a.jsx)(je.a,{ref:s,widget:"https://announcekit.app/widgets/v2/3yjcnm",user:{id:e.userId},onWidgetUnread:l})})},da=n(212),fa=function SidebarSettingsDropdown(e){var t=e.currentUser,n=e.termsOfServiceHref,r=e.onUpdate,i=e.viewInsightsHref,c=e.manageTemplatesHref,u=e.manageUsersHref,d=e.manageJobReferencesHref,b=e.manageFlexDocTypesHref,p=e.settingsHref,m=e.onEnableNotifications,h=e.onDisableNotifications,g=e.onLogout,j=t.initials,v=Object(s.f)(),O=Object(l.useDispatch)(),T=o.a.useCallback((function(){return O(fe.a.withEvent(Object(fe.p)("Sidebar - User Account")))}),[O]),y=function handleLocationChange(e,t){return function(){v.push({pathname:e}),O(fe.a.withEvent(Object(fe.p)("Sidebar - Account: ".concat(t))))}},S=function handleExternalLinkClick(e){return function(){O(fe.a.withEvent(Object(fe.p)("Sidebar - Account: ".concat(e))))}};return Object(a.jsxs)(Xr,{renderIcon:function renderIcon(){return j.length>0?Object(a.jsx)(da.a,{text:j,size:"xs",type:"people"}):Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.PERSON),size:"small"})},text:t.firstName,subtitle:"".concat(t.firstName," ").concat(t.lastName),testId:"settings-dropdown-button",alignment:"bottom",onOpen:T,children:[Object(a.jsx)(kn.a,{href:n,onClick:S("Terms of Service"),openNewPage:!0,children:"Terms of Service"}),Object(a.jsx)(kn.a,{onClick:function handleSupportOpen(){zE.activate({hideOnClose:!0}),O(fe.a.withEvent(Object(fe.p)("Sidebar - Account: Support")))},testId:"settings-support-menu-item",children:"Support"}),r&&Object(a.jsx)(kn.a,{onClick:function handleUpdate(){null===r||void 0===r||r(),O(fe.a.withEvent(Object(fe.p)("Sidebar - Account: Update")))},children:"Update"}),i.isPresent()&&Object(a.jsx)(kn.a,{divider:!0}),Object(R.a)(i,(function(e){return Object(a.jsx)(kn.a,{onClick:y(e,"SEDNA Insights"),children:"SEDNA Insights"})})),(c.isPresent()||u.isPresent()||d.isPresent()||b.isPresent())&&Object(a.jsx)(kn.a,{divider:!0}),Object(R.a)(c,(function(e){return Object(a.jsx)(kn.a,{href:e,onClick:S("Manage Templates"),openNewPage:!0,children:"Manage Templates"})})),Object(R.a)(u,(function(e){return Object(a.jsx)(kn.a,{href:e,onClick:S("Manage Users"),openNewPage:!0,children:"Manage Users"})})),Object(R.a)(d,(function(e){return Object(a.jsx)(kn.a,{onClick:y(e,"Job references"),children:Object(a.jsxs)(a.Fragment,{children:["Manage ",P.b.t(P.a.JOB_TAG_PLURAL)]})})})),Object(R.a)(b,(function(e){return Object(a.jsx)(kn.a,{href:e,onClick:S("Manage Flexdocs Document Types"),openNewPage:!0,children:"Flexdocs Document Types"})})),Object(a.jsx)(kn.a,{divider:!0}),Object(a.jsx)(kn.a,{onClick:y(p,"Settings"),children:"Settings"}),(m||h)&&Object(a.jsx)(kn.a,{divider:!0}),h&&Object(a.jsx)(kn.a,{onClick:function handleDisableNotifications(){null===h||void 0===h||h(),O(fe.a.withEvent(Object(fe.p)("Sidebar - Account: Disable Notifications")))},testId:"settings-notifications-menu-item",children:"Disable Notifications"}),m&&Object(a.jsx)(kn.a,{onClick:function handleEnableNotifications(){null===m||void 0===m||m(),O(fe.a.withEvent(Object(fe.p)("Sidebar - Account: Enable Notifications")))},testId:"settings-notifications-menu-item",children:"Enable Notifications"}),Object(a.jsx)(kn.a,{divider:!0}),Object(a.jsx)(kn.a,{onClick:g,children:"Logout"})]})},ba=n(115),pa=n(293),ma=n(591),ha=function TeamMenuItem(e){var t=e.onSelect,n=e.onAddOrRemove,i=o.a.useContext(yr),c=o.a.useState(!1),s=Object(r.a)(c,2),l=s[0],u=s[1],d=o.a.useCallback((function(){return u(!0)}),[]),b=o.a.useCallback((function(){return u(!1)}),[]),p=o.a.useCallback((function(){return t(e.isActive)}),[t,e.isActive]),m=o.a.useCallback((function(t){t.preventDefault(),t.stopPropagation(),n&&!e.disableRemove&&n(e.isActive)}),[n,e.disableRemove,e.isActive]),h=(!l||!n)&&e.isActive,g=l&&!!n,j=function getTeamIcon(e,t){return e?Object(M.e)(M.c.TENANT):t?Object(M.e)(M.c.PEOPLE_18):void 0}(e.isAllTeams,e.isDefault),v=e.disableRemove?"At least one team must be selected":e.isActive?"Remove team from current view":"Add team to current view";return i?Object(a.jsxs)(kn.a,{onClick:p,onMouseEnter:d,onMouseLeave:b,icon:j,text:e.label,active:e.isActive,children:[h&&Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.DONE),size:"small"}),g&&Object(a.jsx)(Tr.a,{content:v,placement:"right",boundary:"window",children:Object(a.jsx)("div",{onClick:e.disableRemove?void 0:m,children:Object(a.jsx)(ia,{icon:Object(M.e)(e.isActive?M.c.REMOVE:M.c.ADD),disabled:!!e.disableRemove})})})]}):Object(a.jsxs)(zr,{indent:!0,iconGlyph:j,text:e.label,onMouseEnter:d,onMouseLeave:b,onClick:p,isActive:e.isActive,type:"primary",testId:"team-".concat(e.id,"-").concat(e.isActive?"active":"inactive"),showTooltipOnText:!0,children:[h&&Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.DONE),size:"small"}),g&&Object(a.jsx)(Tr.a,{content:v,placement:"right",boundary:"window",children:Object(a.jsx)("div",{onClick:e.disableRemove?void 0:m,children:Object(a.jsx)(ia,{icon:Object(M.e)(e.isActive?M.c.REMOVE:M.c.ADD),disabled:!!e.disableRemove})})})]})},ga=Object(ve.b)(zr).withConfig({displayName:"sidebar-teams__SecondaryMenuItem",componentId:"sc-1aw98h2-0"})(["& >:first-child{padding-left:var(--spacing-6);}"]),ja=o.a.memo((function(e){var t=Object(l.useDispatch)(),n=Object(s.g)(),i=o.a.useContext(yr),c=o.a.useState(!1),u=Object(r.a)(c,2),d=u[0],p=u[1],m=o.a.useState(Object(W.parse)(n.search).teams),h=Object(r.a)(m,2),g=h[0],j=h[1],v=Object(hr.d)("".concat("SEDNA_SIDEBAR_TEAMS_COLLAPSED_V1","_").concat(e.currentUser.id),false),O=Object(r.a)(v,2),T=O[0],y=O[1],S=Object(G.d)((function(t){return Object(Y.b)(t,e.currentUser)})),C=Object(G.d)((function(t){return Object(ba.b)(t,e.currentUser)})),A=C.teams,E=C.allTeams,w=Object(G.d)((function(t){return Object(ba.a)(t,e.currentUser)})),_=w.fromQueryParams(n.search),I=e.currentUser.defaultTeamId.toString(),x=o.a.useMemo((function(){return new Map(A.map((function(e){return[e.id,e]})))}),[A]),k=o.a.useMemo((function(){return Object(Q.a)(S).sort((function(e,t){return e.id===I?-1:e.name>t.name||t.id===I?1:-1}))}),[S,I]),N=o.a.useCallback((function(r){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=_.filter((function(e){return!(e instanceof z.J||e instanceof z.b)})),c=new pa.b(Object(Q.a)(r.values()),a);e.isContactsSelected&&(n.pathname=b.a.LIST),t(new oe.c(c.enhanceFilterSet(o,o),n,e.currentUser,void 0,void 0,!1,void 0,e.quickFiltersEnabled?[]:ma.a));var s=!r.size,l=r.size>x.size&&!E,u=r.size>x.size&&E,d=r.has(I),p=r.size<x.size&&!(1===x.size&&d);t(fe.a.withEvent(Object(fe.p)("Sidebar - ".concat(i?"Collapsed":"Expanded",": ").concat(a?"All teams":s?"Default Team Token Selected":l?"Team Token Multiple Selected":u||p?"Team Token Multiple Removed":d?"Default Team Token Selected":"Team Token Selected"))))}),[_,t,n,e.currentUser,e.quickFiltersEnabled,x.size,E,I,i]),R=o.a.useCallback((function(e){return function(){return"all"===e?E?N(new Map,!1):N(new Map(S.map((function(e){return[e.id,e]}))),!0):N((new Map).set(e.id,e))}}),[E,S,N]),F=o.a.useCallback((function(e){return function(t){var n=t&&1===x.size,r=!t&&x.size===S.length-1,a=e.id===I;if((n||r)&&a)return N(new Map(S.map((function(e){return[e.id,e]}))),!0);if(t&&E)return N(new Map(S.filter((function(t){return t.id!==e.id})).map((function(e){return[e.id,e]}))),!1);var i=new Map(x);return t?i.delete(e.id):i.set(e.id,e),N(i)}}),[N,E,x,S]),D=o.a.useCallback((function(){!T&&p(!1),y(!T),t(fe.a.withEvent(Object(fe.p)("Sidebar: Teams")))}),[t,T,y]),L=o.a.useCallback((function(){p(!d),t(fe.a.withEvent(Object(fe.p)("Sidebar: Show ".concat(d?"less":"all"," teams clicked"))))}),[t,d]),P=o.a.useCallback((function(e){return w.deserialize(e).map((function(e){return w.toFilterQuery(e)})).map((function(e){return Object(W.stringify)(e)})).orElseThrow()}),[w]);return o.a.useEffect((function(){var e=Object(W.parse)(n.search).teams;"all"!==e&&e!==g&&(j(e),t(new Ie.m(w,P)))}),[P,w,t,n.search,g]),Object(a.jsxs)(ea,{text:"Teams (".concat(S.length,")"),subtitle:"Teams",iconGlyph:Object(M.e)(M.c.PEOPLE),isMenuCollapsed:T,onToggle:D,children:[S.length>1&&Object(a.jsx)(ha,{id:"all-teams",label:"All Teams",isActive:E&&!e.isBookmarkSelected,isAllTeams:!0,onSelect:R("all"),disableRemove:E,onAddOrRemove:E?ut.a:void 0}),k.map((function(t,n){var r=x.has(t.id)&&!e.isBookmarkSelected,c=t.id===I,s=n===k.length-1;return!r&&!i&&!d&&!c?null:Object(a.jsxs)(o.a.Fragment,{children:[Object(a.jsx)(ha,{id:t.id,label:t.name||"",isActive:!e.isContactsSelected&&(r||E&&!e.isBookmarkSelected),isDefault:c,onSelect:R(t),disableRemove:!1,onAddOrRemove:e.isBookmarkSelected?void 0:F(t)}),c&&!s&&i&&Object(a.jsx)(kn.a,{divider:!0})]},t.id)})),k.length>1&&!i&&Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(na,{}),Object(a.jsx)(ga,{isActive:!1,size:"small",type:"secondary",onClick:L,text:d?"Show less":"Show more"})]})]})})),va=n(108),Oa=n(274),Ta=n(7),ya=n(243),Sa=n(574),Ca=function BookmarkOptionsDropdown(e){var t=o.a.useRef(null),n=o.a.useRef(null),r=o.a.useMemo((function(){return Object(Sa.b)(e.bookmark)}),[e.bookmark]);return Object(a.jsxs)(xn.a,{subtitle:"Actions",renderToggle:function renderButton(e){var n=e.onClick;return Object(a.jsx)("div",{onClick:function handleClick(e){e.preventDefault(),e.stopPropagation(),n(e)},ref:t,children:Object(a.jsx)(ia,{icon:Object(M.e)(M.c.MORE_HORIZ)})})},placement:"right-start",distance:"large",onOpen:e.onOpen,onClose:e.onClose,hideOnClick:!1,children:[Object(a.jsx)(kn.a,{onClick:ut.a,text:"Rename (coming soon)"}),Object(a.jsx)(kn.a,{onClick:function handleShare(){var n;null===(n=t.current)||void 0===n||n.click(),e.onShare(e.bookmark)},text:"Share"}),Object(a.jsx)(kn.a,{onClick:function handleNotificationClick(){e.bookmark.canSubscribe&&e.onNotificationToggle(e.bookmark)},disabled:!e.bookmark.canSubscribe,text:" Notifications",tooltipContent:r,children:Object(a.jsx)("div",{ref:n,onMouseDownCapture:function handleNotificationMouseCapture(e){var t;(null===(t=n.current)||void 0===t?void 0:t.querySelector(ya.a))===e.target&&(e.preventDefault(),e.stopPropagation())},className:"u-flex",children:Object(a.jsx)(ya.c,{id:e.bookmark.id,checked:e.bookmark.isSubscribed,disabled:!e.bookmark.canSubscribe,size:ya.b.SMALL,onChange:function handleNotificationToggle(){e.onNotificationToggle(e.bookmark)},ariaLabel:e.bookmark.canSubscribe?"turn ".concat(e.bookmark.isSubscribed?"off":"on"," notifications"):"notification disabled"})})}),Object(a.jsx)(kn.a,{onClick:function handleDelete(){var n;null===(n=t.current)||void 0===n||n.click(),e.onDelete(e.bookmark)},text:"Delete"})]})},Aa=function BookmarkMenuItem(e){var t=o.a.useContext(yr),n=o.a.useState(!1),i=Object(r.a)(n,2),c=i[0],s=i[1],l=o.a.useState(!1),u=Object(r.a)(l,2),d=u[0],b=u[1],p=function handleMouseEnter(){return s(!0)},m=function handleMouseLeave(){return s(!1)},h=function handleSelect(){return e.onSelect(e.bookmark)},g=Object(a.jsx)(Ca,{onDelete:e.onDelete,onShare:e.onShare,onOpen:function handleDropdownOpen(){return b(!0)},onClose:function handleDropdownClose(){return b(!1)},onNotificationToggle:e.onNotificationToggle,bookmark:e.bookmark});return t?Object(a.jsx)(kn.a,{onClick:h,onMouseEnter:p,onMouseLeave:m,text:e.bookmark.name,active:e.isActive,children:(c||d)&&g}):Object(a.jsx)(zr,{indent:!0,text:e.bookmark.name,onClick:h,isActive:e.isActive,type:"primary",testId:"bookmark-".concat(e.bookmark.id,"-").concat(e.isActive?"active":"inactive"),showTooltipOnText:!0,onMouseEnter:p,onMouseLeave:m,children:(c||d)&&g})},Ea=n(288),wa=n(148),_a=n(425),Ia=n(194),xa=n(570),ka=ve.b.div.withConfig({displayName:"sidebar-bookmarks__MenuSkeleton",componentId:"sc-18wvp0s-0"})(["margin:var(--spacing-3) var(--spacing-3) var(--spacing-3) var(--spacing-6);height:calc(var(--fs) * 1.2);width:",";background:linear-gradient(90deg,var(--action-20),var(--action-40));opacity:0.5;background-size:100%;background-repeat:no-repeat;border-radius:var(--br3);"],(function(e){return e.$width})),Na=Object(ve.b)(zr).withConfig({displayName:"sidebar-bookmarks__SecondaryMenuItem",componentId:"sc-18wvp0s-1"})(["& >:first-child{padding-left:var(--spacing-6);}"]);var Ra,Fa=(dr={},Object(Ta.a)(dr,wa.c.SHARE,(lr={},Object(Ta.a)(lr,wa.a.USER,Ia.f),Object(Ta.a)(lr,wa.a.TEAM,Ia.e),lr)),Object(Ta.a)(dr,wa.c.UNSHARE,(ur={},Object(Ta.a)(ur,wa.a.USER,Ia.h),Object(Ta.a)(ur,wa.a.TEAM,Ia.g),ur)),dr),Ma=function SidebarBookmarks(e){var t,n,i,c=o.a.useContext(yr),u=Object(l.useDispatch)(),d=o.a.useState(!1),m=Object(r.a)(d,2),h=m[0],g=m[1],j=o.a.useState(null),v=Object(r.a)(j,2),O=v[0],T=v[1],y=o.a.useState(null),S=Object(r.a)(y,2),C=S[0],A=S[1],E=Object(s.g)(),w=function useShareSheetCommands(e,t){var n=Object(l.useDispatch)(),r=o.a.useCallback((function(r,a,i){var o=t[i][a];o?e&&n(new o(e,r)):console.error("Action could not be dispatched. Make sure the command is included in the action map.")}),[t,n,e]);return o.a.useCallback((function(e){e.peopleToShareWith.length&&r(e.peopleToShareWith,wa.a.USER,wa.c.SHARE),e.peopleToUnshareWith.length&&r(e.peopleToUnshareWith,wa.a.USER,wa.c.UNSHARE),e.teamsToShareTo.length&&r(e.teamsToShareTo,wa.a.TEAM,wa.c.SHARE),e.teamsToUnshareWith.length&&r(e.teamsToUnshareWith,wa.a.TEAM,wa.c.UNSHARE)}),[r])}(null!==(t=null===O||void 0===O?void 0:O.id)&&void 0!==t?t:null,Fa),_=Object(G.d)((function(e){return K.g(e.entities.savedSearch,K.a)})),I=Object(G.d)((function(t){return Object(_a.a)(t,e.currentUser)})),x=Object(G.d)(_a.b),k=Object(G.d)((function(t){return Object(ba.c)(t,e.currentUser)})),N=Object(hr.d)("".concat("SEDNA_SIDEBAR_BOOKMARKS_COLLAPSED_V1","_").concat(e.currentUser.id),false),R=Object(r.a)(N,2),F=R[0],D=R[1],L=o.a.useCallback((function(){D(!F)}),[F,D]),P=o.a.useCallback((function(){g(!h)}),[h]),U=o.a.useCallback((function(t){var n=k.deserialize(t.filterSet).orElseThrow();u(new oe.c(n,Object(p.a)(Object(p.a)({},E),{},{pathname:b.a.LIST}),e.currentUser,z.D.ALL,t.name,!1))}),[k,u,E,e.currentUser]),B=o.a.useCallback((function(e){return T(e)}),[]),H=o.a.useCallback((function(e){u(new Ie.s(e.id,!e.isSubscribed))}),[u]),V=o.a.useCallback((function(e){A(e)}),[]),J=o.a.useCallback((function(){return A(null)}),[]),Y=o.a.useCallback((function(){null!==C&&(C.userId===e.currentUser.id?u(new Ie.r(C)):u(new Ie.t(C,e.currentUser.id))),J()}),[C,u,J,e.currentUser.id]),q=o.a.useCallback((function(e){return k.deserialize(e).map((function(e){return k.toFilterQuery(e)})).map((function(e){return Object(W.stringify)(e)})).orElseThrow()}),[k]);return o.a.useEffect((function(){_.isNotLoading()&&u(new Ie.m(k,q))}),[q,k,u,_]),Object(a.jsxs)(ea,{text:"Bookmarks",subtitle:"Bookmarks",iconGlyph:Object(M.e)(M.c.BOOKMARK),isMenuCollapsed:F,onToggle:L,children:[(n=_,i=function(t){var n=t.filter((function(e){return!e.isShared})),r=n.filter((function(t,n){return c||h||n<5||t.name===e.selectedBookmark}));return Object(a.jsxs)(a.Fragment,{children:[r.map((function(t){var n=e.selectedBookmark===t.name;return Object(a.jsx)(Aa,{bookmark:t,isActive:n,onSelect:U,onShare:B,onDelete:V,onNotificationToggle:H},t.id)})),!c&&(h||n.length>r.length)&&Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(na,{}),Object(a.jsx)(Na,{isActive:!1,size:"small",type:"secondary",onClick:P,text:h?"Show less":"Show more"})]})]})},n.map(i).unwrap((function(){return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(ka,{$width:"80%"}),Object(a.jsx)(ka,{$width:"70%"}),Object(a.jsx)(ka,{$width:"70%"})]})}),(function(){return null}))),!!O&&Object(a.jsx)(Ea.d,{isOpen:!0,owner:{id:e.currentUser.id,initials:e.currentUser.initials,name:"".concat(e.currentUser.firstName," ").concat(e.currentUser.lastName)},teams:I.map((function(e){var t;return Object(p.a)(Object(p.a)({},e),{},{isShared:Object(wa.d)(e,null===(t=O.shares)||void 0===t?void 0:t.teamIds)})})),people:x.map((function(e){var t;return Object(p.a)(Object(p.a)({},e),{},{isShared:Object(wa.d)(e,null===(t=O.shares)||void 0===t?void 0:t.userIds)})})),toggle:function toggle(){return T(null)},title:"Share Bookmark",description:'Sharing "'.concat(O.name,'"'),makeChanges:w,isReadOnly:!1,primaryBtnText:"Save Changes"}),Object(a.jsx)(xa.a,{isOpen:!!C,onClose:J,onConfirm:Y,bookmark:C,currentUser:e.currentUser})]})},Da=null!==(Ra="https://www.sedna.com/terms-of-service")?Ra:"",La=function buildResetHref(e,t){var n=Object(W.parse)(e);return delete n.filter,delete n.filterSet,delete n.bookmark,delete n.teams,delete n.fullBucket,{pathname:b.a.LIST,search:Object(W.stringify)({teamId:t})}},Pa=o.a.memo((function(e){var t=o.a.useState(!1),n=Object(r.a)(t,2),i=n[0],c=n[1],u=Object(l.useDispatch)(),d=Object(s.g)(),p=d.search,m=d.pathname,h=Object(s.f)(),g=Object(me.c)().isTabletish,j=Object(G.d)((function(e){return e.ui.notifications.subscribed})),v=Object(G.d)(Ee.a),O=o.a.useMemo((function(){return Object(W.parse)(p)}),[p]),T=o.a.useMemo((function(){return Object(pe.e)(m,p,e.bookmarksEnabled)}),[m,p,e.bookmarksEnabled]),y=o.a.useMemo((function(){return new URLSearchParams(p).get("bookmark")}),[p]),S=La(p,e.currentUser.defaultTeamId),E=o.a.useCallback((function(){u(new we.t(!1)),u(fe.a.withEvent(Object(fe.p)("Sidebar: Home"))),u(new Ie.k(null))}),[u]),w=o.a.useCallback((function(t){var n=new URLSearchParams(p).get("teamId");e.currentUser.defaultTeamId.toString()!==n&&(t.preventDefault(),u(J.h.switchTeam(e.currentUser.defaultTeamId.toString(),[Object(C.e)(La(p,e.currentUser.defaultTeamId))]))),E()}),[u,E,e.currentUser.defaultTeamId,p]),_=o.a.useCallback((function(){return u(new J.i)}),[u]),I=o.a.useCallback((function(){return u(new va.i)}),[u]),x=o.a.useCallback((function(){return u(new va.j)}),[u]),k=o.a.useCallback((function(){u(j?new va.j(new Oa.b(Ve.d)):new Oa.b(Ve.d))}),[u,j]),N=o.a.useCallback((function(t){return function(n){var r=new URLSearchParams(p).get("teamId");e.currentUser.defaultTeamId.toString()!==r&&(n.preventDefault(),u(J.h.switchTeam(e.currentUser.defaultTeamId.toString(),[Object(C.e)(e.quickFiltersEnabled?Object(pe.b)(t,O):Object(pe.c)(t,O))]))),u(fe.a.withEvent(Object(fe.p)("Sidebar: ".concat(t," Filter Clicked"))))}}),[u,e.currentUser.defaultTeamId,e.quickFiltersEnabled,p,O]),R=o.a.useCallback((function(t,n){return Object(a.jsx)(zr,{iconGlyph:Object(be.b)(n),text:t,href:e.quickFiltersEnabled?Object(pe.b)(n,O):Object(pe.c)(n,O),isActive:T===n,onClick:N(n),testId:n})}),[T,N,e.quickFiltersEnabled,O]),F=Object(V.a)(),D=m.includes(b.a.SETTINGS_INDEX),L=m.includes(b.a.JOB_REFERENCES);Object(vr.a)(Or.k,(function(){h.push(S),E()}),[]),Object(vr.a)(Or.w,e.onToggle,[e.isSidebarCollapsed]);var U=o.a.useCallback((function(){return c(!0)}),[]),H=o.a.useCallback((function(){return c(!1)}),[]),Y=o.a.useCallback((function(){return e.onToggle(!0)}),[e]),q=o.a.useCallback((function(e){return function(){u(fe.a.withEvent(Object(fe.p)("Sidebar: ".concat(e))))}}),[u]),K=e.myMessagesTenantConfig&&!e.myWorkEnabled,X=e.myWorkEnabled,Q=v&&!D&&!L,Z=e.bookmarksEnabled&&!D&&!L;return Object(a.jsxs)(ca,{isCollapsed:e.isSidebarCollapsed,overlay:g,onMouseEnter:U,onMouseLeave:H,children:[Object(a.jsx)(xr,{onToggle:e.onToggle,showToggle:i,children:Object(a.jsx)(Zr,{href:S,onClick:w})}),e.composeEnabled&&Object(a.jsx)(_r,{notesEnabled:e.notesEnabled,addressBookP2Enabled:e.p2AddressBookEnabled,workflowEnabled:e.workflowsEnabled}),Object(a.jsxs)(Nr,{children:[e.quickFiltersEnabled?Object(a.jsxs)(a.Fragment,{children:[R("Inbox",z.D.INBOX),K&&R("My Messages",z.D.MY_MESSAGES),X&&R(P.b.t(P.a.MY_WORK),z.D.MY_WORK)]}):Object(a.jsxs)(a.Fragment,{children:[K&&R("My Messages",z.D.MY_MESSAGES),X&&R(P.b.t(P.a.MY_WORK),z.D.MY_WORK),R("Following",z.D.FOLLOWING),R("Drafts",z.D.DRAFT)]}),e.workflowsEnabled&&e.currentUser.roles.includes(B.b.IT_SUPPORT)&&Object(a.jsx)(zr,{iconGlyph:Object(M.e)(M.c.WORKFLOWS),href:"".concat(b.a.WORKFLOWS_INDEX,"?teamId=").concat(e.currentUser.defaultTeamId),text:"Workflows",onClick:function onClick(){return u(fe.a.withEvent(Object(fe.p)("Sidebar: Workflows")))}}),e.addressBookEnabled&&Object(a.jsx)(zr,{iconGlyph:Object(M.e)(M.c.CONTACTS),href:e.p2AddressBookEnabled?void 0:"".concat(F,"/contacts"),isActive:m===b.a.ADDRESS_BOOK_CONTACTS,onClick:e.p2AddressBookEnabled?function(){u(Object(C.e)(b.a.ADDRESS_BOOK_CONTACTS))}:q("Address Book"),openNewPage:!0,text:"Contacts"})]}),e.quickFiltersEnabled&&Object(a.jsxs)(Nr,{children:[R("All Messages",z.D.ALL),R("Following",z.D.FOLLOWING),R("Draft",z.D.DRAFT),R("Archive",z.D.STORED),R("Sent",z.D.SENT)]}),Object(a.jsxs)(qr,{children:[Q&&Object(a.jsx)(Nr,{children:Object(a.jsx)(ja,{currentUser:e.currentUser,quickFiltersEnabled:e.quickFiltersEnabled,isBookmarkSelected:!!y&&Z,isContactsSelected:m.includes(b.a.ADDRESS_BOOK_CONTACTS)})}),Z&&Object(a.jsx)(Nr,{children:Object(a.jsx)(Ma,{currentUser:e.currentUser,selectedBookmark:y})})]}),Object(a.jsx)(Jr,{children:Object(a.jsxs)(Nr,{children:[e.guidesEnabled&&Object(a.jsx)(la,{onClick:q("Guides")}),Object(a.jsx)(ua,{userId:e.currentUser.id,onClick:q("What's New")}),Object(a.jsx)(fa,{currentUser:e.currentUser,termsOfServiceHref:Da,onUpdate:e.updateAvailable?_:void 0,viewInsightsHref:e.viewInsightsEnabled?A.a.of(b.a.INSIGHTS):A.a.empty(),manageTemplatesHref:e.manageTemplatesEnabled?A.a.of("".concat(F,"/templates")):A.a.empty(),manageUsersHref:e.manageUsersEnabled?A.a.of("".concat(F,"/admin/users")):A.a.empty(),manageJobReferencesHref:e.manageJobReferencesEnabled?A.a.of(b.a.JOB_REFERENCES):A.a.empty(),manageFlexDocTypesHref:e.manageFlexDocTypesEnabled?A.a.of("".concat(F,"/document-types")):A.a.empty(),settingsHref:b.a.SETTINGS_APPEARANCE,onEnableNotifications:e.manageNotificationsEnabled&&!j?I:void 0,onDisableNotifications:e.manageNotificationsEnabled&&j?x:void 0,onLogout:k})]})}),Object(a.jsx)(ra,{onClick:Y,$visible:i})]})})),Ua=n(486),Ba=n(158),Ha=n(706),Ga=function getPhoneLabel(e){switch(e){case Qe.e.HOME:return"Home";case Qe.e.MOBILE:return"Mobile";case Qe.e.OFFICE:return"Office";case Qe.e.SATELLITE:return"Satellite";default:return e}},Wa=function MobileInputField(e){var t=Object.keys(Qe.e).map((function(e){return{value:e,label:Ga(Qe.e[e])}}));return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(mt.a,{type:"text",validation:ut.a,fieldName:e.phoneFieldName,placeholder:"Enter Phone Number"}),Object(a.jsx)(Et.b,{id:e.phoneTypeFieldName,fieldName:e.phoneTypeFieldName,options:t,required:!0})]})},za={Layout:ve.b.div.withConfig({displayName:"contact-edit-form__Layout",componentId:"sc-4r2m9x-0"})(["display:flex;flex-direction:column;background-color:var(--white);height:100%;"]),LayoutSplit:ve.b.div.withConfig({displayName:"contact-edit-form__LayoutSplit",componentId:"sc-4r2m9x-1"})(["display:grid;grid-template-columns:1fr 1fr;padding-top:var(--spacing-6);"]),LayoutSplitLeft:ve.b.div.withConfig({displayName:"contact-edit-form__LayoutSplitLeft",componentId:"sc-4r2m9x-2"})(["grid-column:1;margin-left:var(--spacing-6);"]),LayoutSplitRight:ve.b.div.withConfig({displayName:"contact-edit-form__LayoutSplitRight",componentId:"sc-4r2m9x-3"})(["grid-column:2;"]),LayoutBottom:ve.b.div.withConfig({displayName:"contact-edit-form__LayoutBottom",componentId:"sc-4r2m9x-4"})(["margin-bottom:var(--spacing-10);"]),Header:ve.b.div.withConfig({displayName:"contact-edit-form__Header",componentId:"sc-4r2m9x-5"})(["margin-left:var(--spacing-7);margin-bottom:var(--spacing-7);font-size:var(--fs-xxlg);font-weight:bold;"]),TitleBold:ve.b.div.withConfig({displayName:"contact-edit-form__TitleBold",componentId:"sc-4r2m9x-6"})(["font-weight:bold;font-size:var(--fs-lg);margin-top:var(--spacing-7);margin-bottom:var(--spacing-2);"]),Subtitle:ve.b.div.withConfig({displayName:"contact-edit-form__Subtitle",componentId:"sc-4r2m9x-7"})(["font-size:var(--fs);color:var(--text-2);margin-bottom:var(--spacing-2);"])},Va=function getContactLabel(e){switch(e){case Qe.a.AGENT:return"Agent";case Qe.a.CHARTERER:return"Charterer";case Qe.a.INTERNAL:return"Internal";case Qe.a.PERSON:return"Person";case Qe.a.SHIPBROKER:return"Shipbroker";case Qe.a.SHIPOWNER:return"Shipowner";case Qe.a.VESSEL:return"Vessel";case Qe.a.OTHER:return"Other";default:return e}};function ContactEditForm(e){var t=Object.keys(Qe.a).map((function(e){return{value:e,label:Va(Qe.a[e])}}));return Object(a.jsx)(za.Layout,{children:Object(a.jsx)(pt.b,{initialValues:e.initialValues,onSubmit:e.onSubmit,mutators:Object(p.a)({},Ua.a),render:function render(n){var r=n.handleSubmit,i=n.submitError,o=(n.values,n.errors),c=n.submitting,s=n.pristine,l=n.form.mutators.push;return Object(a.jsx)(ct.h,{onSubmit:r,children:Object(a.jsxs)(ct.g,{children:[i&&Object(a.jsx)(ct.k,{children:i}),Object(a.jsxs)(za.LayoutSplit,{children:[Object(a.jsxs)(za.Header,{children:[e.firstName," ",e.lastName]}),Object(a.jsxs)(za.LayoutSplitLeft,{children:[Object(a.jsx)(ct.f,{children:Object(a.jsx)(Et.b,{id:"type",fieldName:"type",label:"Contact Type",options:t,required:!0})}),Object(a.jsxs)(ct.f,{children:[Object(a.jsx)(za.TitleBold,{children:"Name"}),Object(a.jsx)(mt.a,{label:"First Name",fieldName:"firstName",placeholder:"Enter first name"}),Object(a.jsx)(mt.a,{label:"Last Name",fieldName:"lastName",placeholder:"Enter last name"})]}),Object(a.jsxs)(ct.f,{children:[Object(a.jsx)(za.TitleBold,{children:"Contact Details"}),Object(a.jsx)(za.Subtitle,{children:"Email Address"}),Object(a.jsx)(Ha.a,{alternativeRemove:!0,fieldName:"emailAddresses",addText:"Add Email Address",push:l,divider:!0,children:function children(e){return Object(a.jsx)(mt.a,{type:"email",validation:Object(Ba.a)(Ba.e,Ba.d),fieldName:"".concat(e),placeholder:"Enter email address"})}}),Object(a.jsx)(za.Subtitle,{children:"Phone Number"}),Object(a.jsx)(Ha.a,{alternativeRemove:!0,fieldName:"phoneNumbers",addText:"Add phone number",push:l,children:function children(e){return Object(a.jsx)(Wa,{phoneFieldName:"".concat(e,".number"),phoneTypeFieldName:"".concat(e,".type")})}})]}),Object(a.jsxs)(ct.f,{children:[Object(a.jsx)(za.TitleBold,{children:"Organization"}),Object(a.jsx)(mt.a,{validation:Ba.e,label:"Organization name",fieldName:"company",placeholder:"Enter organization"}),Object(a.jsx)(mt.a,{label:"Role",fieldName:"title",placeholder:"Enter role"}),Object(a.jsx)(mt.a,{label:"Department",fieldName:"team",placeholder:"Enter department"})]})]}),Object(a.jsx)(za.LayoutSplitRight,{children:Object(a.jsxs)(ct.f,{children:[Object(a.jsx)(za.TitleBold,{children:"Location"}),Object(a.jsx)(mt.a,{label:"Address",fieldName:"address1",placeholder:"Enter address 1"}),Object(a.jsx)(mt.a,{fieldName:"address2",placeholder:"Enter address 2"}),Object(a.jsx)(mt.a,{fieldName:"address3",placeholder:"Enter address 3"}),Object(a.jsx)(mt.a,{label:"City",fieldName:"city",placeholder:"Enter city"}),Object(a.jsx)(mt.a,{label:"Postal Code",fieldName:"postalCode",placeholder:"Enter postal code"}),Object(a.jsx)(mt.a,{label:"Country",fieldName:"country",placeholder:"Enter country"})]})})]}),e.submissionError&&Object(a.jsxs)(ct.j,{"data-testid":"form-error-message",children:["There was an error while creating this"," ",P.b.t(P.a.CONTACT),". Please try again."]}),Object(a.jsx)(za.LayoutBottom,{children:Object(a.jsxs)(ct.a,{children:[e.actions&&Object(a.jsx)(ct.c,{children:Object(p.a)({},e.actions)}),Object(a.jsxs)(ct.b,{children:[Object(a.jsx)(re.a,{type:"submit","data-testid":"submit-button",disabled:Object.keys(o).length>0||c||s,children:e.submitButtonLabel}),Object(a.jsx)(re.a,{className:"u-mr-md",onClick:function onClick(){return e.onCancel()},buttonStyle:"link","data-testid":"cancel-button",children:"Cancel"})]})]})})]})})}})})}function ContactCreate(){var e=Object(l.useDispatch)(),t=function redirectToContacts(){return e(Object(C.f)({pathname:b.a.ADDRESS_BOOK_CONTACTS}))};return Object(a.jsx)(ContactEditForm,{onSubmit:function onSubmit(n){var r={firstName:n.firstName,lastName:n.lastName,company:n.company,emailAddresses:n.emailAddresses,phoneNumbers:n.phoneNumbers,address1:n.address1,address2:n.address2,address3:n.address3,city:n.city,country:n.country,postalCode:n.postalCode,title:n.title,team:n.team,type:n.type};e(new on.R(r)),t()},initialValues:void 0,submissionError:!1,submitButtonLabel:"Save",firstName:null,lastName:null,onCancel:function onCancel(){return t()}})}function ContactUpdate(){var e=Object(l.useDispatch)(),t=Object(s.h)().id,n=Object(G.d)(Object(G.b)([function(e){return e.entities.contact}],(function(e){return{contact:K.g(e,t)}})));i.useEffect((function(){":id"!==t&&n.contact.ifNotLoading((function(){e(new on.I(t))}))}),[n.contact,t,e]);var r=function renderEditForm(n){var r=n.attributes,i=r.firstName,o=r.lastName,c=r.company,s=r.emailAddresses,l=r.phoneNumbers,u=r.address1,d=r.address2,p=r.address3,m=r.city,h=r.country,g=r.postalCode,j=r.title,v=r.team,O=r.type,T=function redirectToContactDetails(){return e(Object(C.f)({pathname:b.a.ADDRESS_BOOK_CONTACT_DETAILS(t)}))},y={firstName:i,lastName:o,company:c,emailAddresses:s,phoneNumbers:l,address1:u,address2:d,address3:p,city:m,country:h,postalCode:g,title:j,team:v,type:O};return Object(a.jsx)(ContactEditForm,{onSubmit:function onSubmit(r){var a=function handleEmptyDataOnSubmit(e){var t=Object.keys(y).reduce((function(t,n){return"phoneNumbers"!==n&&"emailAddresses"!==n&&(t[n]="undefined"===typeof e[n]?"":e[n]),t}),e);return Object.assign(t,e),t}(r);e(new on.M(n,a,t)),T()},initialValues:y,submissionError:!1,submitButtonLabel:"Save ",firstName:y.firstName,lastName:y.lastName,onCancel:function onCancel(){return T()}})};return n.contact.unwrapTo((function(e){return r(e)}),(function(){return Object(a.jsx)(Kt.b,{spinner:Kt.a})}),(function(e){return Object(a.jsx)(pn.a,{errorText:"Something went wrong!"})}))}var Ja=n(247),Ya=function SednaLink(e){var t=Object(G.d)((function(e){return K.g(e.entities.userConfig,K.a).toUndefined()}));return Object(a.jsx)(D.a,Object(p.a)(Object(p.a)({},e),{},{to:"".concat(e.to,"?teamId=").concat(null===t||void 0===t?void 0:t.user.defaultTeamId),children:e.children}))};var qa={WorkflowCardList:ve.b.div.withConfig({displayName:"workflows-list__WorkflowCardList",componentId:"sc-16bncth-0"})(["padding:var(--spacing-3);height:100%;overflow-y:auto;"]),WorkflowCard:ve.b.div.withConfig({displayName:"workflows-list__WorkflowCard",componentId:"sc-16bncth-1"})(["background:var(--white);border:var(--bw1) solid transparent;border-radius:var(--br1);margin-bottom:var(--spacing-2);padding:var(--spacing-3) var(--spacing-3) var(--spacing-3) var(--spacing-5);h3{font-weight:var(--fw-bold);color:var(--grey-90);margin-bottom:0;}p{color:var(--grey-50);margin-bottom:var(--spacing-3);}footer{display:flex;align-items:center;justify-content:flex-end;svg{margin-left:var(--spacing-3);color:#343a40;}}",""],(function(e){return e.isSelected&&Object(ve.a)(["background-color:var(--purple-05);border-color:var(--purple-50);"])}))},Ka=function WorkflowsList(e){var t=e.workflows,n=e.teams,r=Object(s.g)();return Object(a.jsx)(qa.WorkflowCardList,{children:t.ids.map((function(e){var i,o,c,s,l=t.entities[e],u=null===(i=t.entities[e])||void 0===i?void 0:i.description,d=null===l||void 0===l?void 0:l.teamIds.map((function(e){var t;return{id:e,name:null===(t=n[e])||void 0===t?void 0:t.name}}));return Object(a.jsx)(Ya,{to:b.a.WORKFLOW("".concat(e)),children:Object(a.jsxs)(qa.WorkflowCard,{isSelected:r.pathname===b.a.WORKFLOW("".concat(e)),children:[Object(a.jsx)("h3",{children:null===(o=t.entities[e])||void 0===o?void 0:o.name}),u&&Object(a.jsx)("p",{children:(c=u,s=160,c.length>s?c.slice(0,s)+"...":c)}),Object(a.jsxs)("footer",{children:[Object(a.jsx)(Ja.a,{followers:[],teamsSharedWith:d,numberToDisplayOfEach:3,size:"s"}),Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.MORE_HORIZ),size:"small"})]})]})},e)}))})},Xa=n(334),Qa={Bar:ve.b.div.withConfig({displayName:"stage-bar__Bar",componentId:"fc6gq6-0"})(["background-color:var(--warning);@media print{display:none;}display:flex;align-items:center;justify-content:center;padding:var(--spacing-3);font-size:var(--fs-sm);color:var(--text-1);"])},Za=function StageBar(e){return Object(a.jsxs)(Qa.Bar,{children:[Object(a.jsx)(F.a,{"data-testid":"update-icon",glyph:M.d,size:"regular",className:"u-mr-md"}),Object(a.jsxs)("span",{children:[e.feature," is ","alpha"===e.stage?"an ":"a ",Object(a.jsx)("strong",{children:e.stage})," feature"]})]})},$a=n(138),ei=[{kind:"singleString",id:"from"},{kind:"singleString",id:"subject"},{kind:"singleString",id:"content"}],ti=function getRuleTypeCaption(e){switch(e){case"from":return"From";case"to":return"To";case"cc":return"Cc";case"bcc":return"Bcc";case"subject":return"Subject";case"content":return"Body";case"attachmentName":return"Attachment name";case"hasAnyAttachment":return"Has attachment (any)";case"hasPdfAttachment":return"Has attachment (PDF)";case"hasWordAttachment":return"Has attachment (Microsoft Word)";default:$a.a(e)}},ni=ei.reduce((function(e,t){return e[t.id]=t,e}),{}),ri=["contains","equals"],ai=function getSingleStringOperatorCaption(e){switch(e){case"contains":return"Contains";case"notContains":return"Does not contain";case"equals":return"Equals";case"notEquals":return"Does not equal";default:$a.a(e)}},ii={HeaderCaption:ve.b.div.withConfig({displayName:"rules-and-actions-container__HeaderCaption",componentId:"qo5jh9-0"})(["font-size:var(--fs-lg);font-weight:var(--fw-bold);"]),RulesAndActions:ve.b.div.withConfig({displayName:"rules-and-actions-container__RulesAndActions",componentId:"qo5jh9-1"})(["margin-top:var(--spacing-5);position:relative;"]),LeftVerticalLine:ve.b.div.withConfig({displayName:"rules-and-actions-container__LeftVerticalLine",componentId:"qo5jh9-2"})(["position:absolute;left:var(--spacing-3);width:1px;height:calc(100% - var(--bw1) * 2);border-left:1px solid var(--grey-20);margin-top:2px;"]),Rules:ve.b.div.withConfig({displayName:"rules-and-actions-container__Rules",componentId:"qo5jh9-3"})(["margin-top:var(--spacing-5);margin-bottom:var(--spacing-5);z-index:1;position:relative;"]),Actions:ve.b.div.withConfig({displayName:"rules-and-actions-container__Actions",componentId:"qo5jh9-4"})(["margin-top:var(--spacing-5);z-index:1;position:relative;"]),SectionHeader:ve.b.div.withConfig({displayName:"rules-and-actions-container__SectionHeader",componentId:"qo5jh9-5"})(["z-index:1;position:relative;font-weight:var(--fw-bold);font-size:var(--fs-sm);background-color:var(--grey-20);color:var(--grey-50);display:inline-block;white-space:nowrap;padding:1px 4px 1px 4px;border-radius:4px;"])},oi=function RulesAndActionsContainer(e){var t=e.rulesElement,n=e.actionsElement,r=e.captionAboveRulesElement,i=e.captionAboveActionsElement;return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(ii.HeaderCaption,{children:"Rules"}),Object(a.jsxs)(ii.RulesAndActions,{children:[Object(a.jsx)(ii.LeftVerticalLine,{}),Object(a.jsx)(ii.SectionHeader,{children:r}),Object(a.jsx)(ii.Rules,{children:t}),Object(a.jsx)(ii.SectionHeader,{children:i}),Object(a.jsx)(ii.Actions,{children:n})]})]})},ci=n(153),si={Container:ve.b.div.withConfig({displayName:"workflow-view__Container",componentId:"sc-11s14un-0"})(["background-color:var(--white);padding:var(--spacing-6);overflow-y:auto;h2{font-size:28px;margin-bottom:var(--spacing-3);}p{color:var(--grey-50);font-size:var(--fs-lg);margin-bottom:0;}h5{margin-top:var(--spacing-5);text-transform:uppercase;}"]),AppliesToTeamsHeader:ve.b.div.withConfig({displayName:"workflow-view__AppliesToTeamsHeader",componentId:"sc-11s14un-1"})(["color:var(--grey-50);margin:var(--spacing-7) 0 var(--spacing-2);"]),Teams:ve.b.div.withConfig({displayName:"workflow-view__Teams",componentId:"sc-11s14un-2"})(["display:flex;gap:var(--spacing-2);font-size:(--fs-lg);"]),RulesAndActionsContainer:ve.b.div.withConfig({displayName:"workflow-view__RulesAndActionsContainer",componentId:"sc-11s14un-3"})(["margin-top:var(--spacing-7);"]),Rules:{Container:ve.b.div.withConfig({displayName:"workflow-view__Container",componentId:"sc-11s14un-4"})(["background-color:var(--white);border:var(--bw1) solid var(--grey-20);box-sizing:border-box;border-radius:var(--br1);padding:var(--spacing-5);"]),RuleInstanceSet:ve.b.div.withConfig({displayName:"workflow-view__RuleInstanceSet",componentId:"sc-11s14un-5"})(["background-color:var(--grey-05);border:var(--bw1) solid var(--grey-20);box-sizing:border-box;border-radius:var(--br1);padding:var(--spacing-3) var(--spacing-3) 0 var(--spacing-3);z-index:1;position:relative;"]),RuleInstance:ve.b.div.withConfig({displayName:"workflow-view__RuleInstance",componentId:"sc-11s14un-6"})(["display:flex;margin-bottom:var(--spacing-3);"]),RuleType:ve.b.span.withConfig({displayName:"workflow-view__RuleType",componentId:"sc-11s14un-7"})(["font-weight:var(--fw-bold);margin-right:var(--spacing-2);"]),Operator:ve.b.span.withConfig({displayName:"workflow-view__Operator",componentId:"sc-11s14un-8"})(["margin-right:var(--spacing-2);"]),RuleValue:ve.b.span.withConfig({displayName:"workflow-view__RuleValue",componentId:"sc-11s14un-9"})(["color:var(--grey-90);background-color:#f1f0f8;"]),LeftVerticalLine:ve.b.div.withConfig({displayName:"workflow-view__LeftVerticalLine",componentId:"sc-11s14un-10"})(["position:absolute;left:var(--spacing-3);width:1px;height:100%;border-left:1px solid var(--grey-20);"]),OrButtonRow:ve.b.div.withConfig({displayName:"workflow-view__OrButtonRow",componentId:"sc-11s14un-11"})(["position:relative;"]),OrButton:ve.b.div.withConfig({displayName:"workflow-view__OrButton",componentId:"sc-11s14un-12"})(["z-index:1;position:relative;font-weight:var(--fw-bold);font-size:var(--fs-sm);background-color:var(--grey-20);color:var(--grey-50);display:inline-block;padding:1px 4px 1px 4px;border-radius:4px;margin-top:var(--spacing-5);margin-bottom:var(--spacing-5);"])},Actions:{Container:ve.b.div.withConfig({displayName:"workflow-view__Container",componentId:"sc-11s14un-13"})(["background-color:var(--white);border:var(--bw1) solid var(--grey-20);box-sizing:border-box;border-radius:var(--br1);padding:var(--spacing-5);"]),Action:ve.b.div.withConfig({displayName:"workflow-view__Action",componentId:"sc-11s14un-14"})(["display:flex;"]),ActionItemWidget:ve.b.div.withConfig({displayName:"workflow-view__ActionItemWidget",componentId:"sc-11s14un-15"})(["margin-left:var(--spacing-2);"])}},li=function RuleInstanceRow(e){var t,n,r=e.ruleInstance,i=e.testId,o=ti(r.type.id);switch(r.kind){case"boolean":t=void 0,n=r.value.toString().toUpperCase();break;case"singleString":t=ai(r.operator).toLowerCase(),n=r.value.toString();break;default:return $a.a(r)}return Object(a.jsxs)(si.Rules.RuleInstance,{"data-testid":i,children:[Object(a.jsx)(si.Rules.RuleType,{children:o}),t&&Object(a.jsx)(si.Rules.Operator,{children:t}),Object(a.jsx)(si.Rules.RuleValue,{children:n})]})},ui=function ActionsView(e){var t=e.actions,n=e.jobReferences,r=e.categoryTags;return Object(a.jsx)(si.Actions.Container,{children:t.map((function(e,t){var i,o;switch(e.type){case"applyJobReferenceTags":i="Add job reference tag to message",o=e.tagIds.map((function(e){var t,r;return Object(a.jsx)(Ue.a,{label:null!==(t=null===(r=n[e])||void 0===r?void 0:r.name)&&void 0!==t?t:"",state:"activeNoClear",onClick:ut.a})}));break;case"applyCategoryTags":i="Add category tag to message",o=e.tagIds.map((function(e){var t,n;return Object(a.jsx)(ci.a,{label:null!==(t=null===(n=r[e])||void 0===n?void 0:n.name)&&void 0!==t?t:"",state:"activeNoClear",onClick:ut.a})}));break;default:return $a.a(e)}return Object(a.jsxs)(si.Actions.Action,{children:[Object(a.jsx)("span",{children:i}),o.map((function(e,t){return Object(a.jsx)(si.Actions.ActionItemWidget,{children:e},t)}))]},t)}))})},di=function ValidWorkflowDefinitionView(e){var t=e.rules,n=e.actions,r=e.jobReferences,o=e.categoryTags;return Object(a.jsx)(si.RulesAndActionsContainer,{children:Object(a.jsx)(oi,{rulesElement:Object(a.jsx)(si.Rules.Container,{children:t.map((function(e,n){return Object(a.jsxs)(i.Fragment,{children:[Object(a.jsx)(si.Rules.RuleInstanceSet,{"data-testid":"ruleInstanceSet-".concat(n),children:e.ruleInstances.map((function(e,t){return Object(a.jsx)(li,{ruleInstance:e,testId:"ruleInstance-".concat(n,"-").concat(t)},t)}))},n),n<t.length-1&&Object(a.jsxs)(si.Rules.OrButtonRow,{children:[Object(a.jsx)(si.Rules.LeftVerticalLine,{}),Object(a.jsx)(si.Rules.OrButton,{children:"OR"})]})]},n)}))}),actionsElement:Object(a.jsx)(ui,{actions:n,jobReferences:r,categoryTags:o}),captionAboveRulesElement:"WHEN MESSAGE ARRIVES, IF",captionAboveActionsElement:"DO THIS"})})},fi=function WorkflowView(e){var t=e.workflows,n=e.teams,r=e.jobReferences,i=e.categoryTags,o=Object(s.h)().id,c=t.entities[o];if(!c)return Object(a.jsx)(si.Container,{children:Object(a.jsx)("p",{children:"Workflow not found"})});var l=c.teamIds.map((function(e){var t;return null===(t=n[e])||void 0===t?void 0:t.name})).filter((function(e){return!!e}));return Object(a.jsxs)(si.Container,{children:[Object(a.jsx)("h2",{children:c.name}),c.description&&Object(a.jsx)("p",{children:c.description}),Object(a.jsx)(si.AppliesToTeamsHeader,{children:"Applies to Teams"}),Object(a.jsx)(si.Teams,{children:l.join(", ")}),c.definition.isValid?Object(a.jsx)(di,{rules:c.definition.rules,actions:c.definition.actions,jobReferences:r,categoryTags:i}):Object(a.jsx)("div",{style:{backgroundColor:"red",marginTop:"16px"},children:"INVALID WORKFLOW DEFINITION: ".concat(c.definition.error)})]})},bi=n(43),pi=n(528),mi=n(369),hi=function Condition(e){var t=e.when,n=e.is,r=e.children;return Object(a.jsx)(pt.a,{name:t,subscription:{value:!0},children:function children(e){return e.input.value===n?r:null}})},gi={FirstColumn:ve.b.div.withConfig({displayName:"rules-editor__FirstColumn",componentId:"bp6fl4-0"})(["flex-grow:10;flex-basis:0;padding-right:var(--spacing-3);"]),SecondColumn:ve.b.div.withConfig({displayName:"rules-editor__SecondColumn",componentId:"bp6fl4-1"})(["flex-grow:10;flex-basis:0;padding-right:var(--spacing-3);"]),ThirdColumn:ve.b.div.withConfig({displayName:"rules-editor__ThirdColumn",componentId:"bp6fl4-2"})(["flex-grow:20;flex-basis:0;"]),FourthColumn:ve.b.div.withConfig({displayName:"rules-editor__FourthColumn",componentId:"bp6fl4-3"})(["flex-grow:1;flex-basis:0;"]),RulesEditor:ve.b.div.withConfig({displayName:"rules-editor__RulesEditor",componentId:"bp6fl4-4"})(["background-color:var(--grey-05);padding:var(--spacing-5);border:var(--bw1) solid var(--grey-20);box-sizing:border-box;border-radius:var(--br1);"]),RuleInstanceSetRow:ve.b.div.withConfig({displayName:"rules-editor__RuleInstanceSetRow",componentId:"bp6fl4-5"})(["background-color:var(--white);padding:var(--spacing-5);border:var(--bw1) solid var(--grey-20);box-sizing:border-box;border-radius:var(--br1);"]),RuleInstanceRow:ve.b.div.withConfig({displayName:"rules-editor__RuleInstanceRow",componentId:"bp6fl4-6"})(["display:flex;padding-bottom:var(--spacing-3);justify-content:center;"]),DeleteButton:Object(ve.b)(re.a).withConfig({displayName:"rules-editor__DeleteButton",componentId:"bp6fl4-7"})(["margin-top:var(--spacing-3);"]),RuleInstanceSetSeparator:ve.b.div.withConfig({displayName:"rules-editor__RuleInstanceSetSeparator",componentId:"bp6fl4-8"})(["position:relative;"]),OrButtonRow:ve.b.div.withConfig({displayName:"rules-editor__OrButtonRow",componentId:"bp6fl4-9"})(["padding-top:var(--spacing-5);padding-bottom:",";z-index:1;position:relative;"],(function(e){return e.isLast?"0px":"var(--spacing-5)"})),OrButton:Object(ve.b)(re.a).withConfig({displayName:"rules-editor__OrButton",componentId:"bp6fl4-10"})(["background-color:var(--grey-05);"]),LineAboveOrButton:ve.b.div.withConfig({displayName:"rules-editor__LineAboveOrButton",componentId:"bp6fl4-11"})(["position:absolute;left:var(--spacing-3);width:1px;height:100%;border-left:1px solid var(--grey-20);"]),AddConditionRow:ve.b.div.withConfig({displayName:"rules-editor__AddConditionRow",componentId:"bp6fl4-12"})(["display:flex;white-space:nowrap;align-items:center;"]),LineNextToAddConditionButton:ve.b.div.withConfig({displayName:"rules-editor__LineNextToAddConditionButton",componentId:"bp6fl4-13"})(["width:100%;height:1px;top:50%;background-color:var(--grey-20);"])},ji={type:"unset"},vi=[{ruleInstances:[ji]}],Oi=function setRuleType(e,t,n){var a=Object(r.a)(e,3),i=a[0],o=a[1],c=a[2],s=n.changeValue,l="rules[".concat(o,"].ruleInstances[").concat(c,"]");s(t,l,i?function(e){return e&&e.kind===i.kind?Object(p.a)(Object(p.a)({},e),{},{type:i}):function ruleTypeToInstance(e){switch(e.kind){case"singleString":return{type:e,kind:"singleString",operator:"contains",value:""};case"boolean":return{type:e,kind:"boolean",value:!0};default:$a.a(e)}}(i)}:function(){return ji})},Ti=function RuleInstanceSetEditor(e){var t=e.ruleInstanceSetFieldName,n=e.isOnly,r=e.onSetRuleType,o=e.onDeleteRuleInstanceSet;return Object(a.jsx)(gi.RuleInstanceSetRow,{"data-testid":t,children:Object(a.jsx)(mi.a,{name:"".concat(t,".ruleInstances"),children:function children(e){var c=e.fields;return Object(a.jsxs)(i.Fragment,{children:[c.map((function(e,t){return Object(a.jsxs)(gi.RuleInstanceRow,{"data-testid":e,children:[Object(a.jsx)(gi.FirstColumn,{children:Object(a.jsx)(Et.b,{required:!0,validation:Ba.e,fieldName:"".concat(e,".type.id"),options:ei.map((function(e){return{value:e.id,label:ti(e.id)}})),onSelect:function onSelect(e){var n;return r(null!==(n=e?ni[e]:null)&&void 0!==n?n:null,t),!0}})}),Object(a.jsxs)(hi,{when:"".concat(e,".kind"),is:"singleString",children:[Object(a.jsx)(gi.SecondColumn,{children:Object(a.jsx)(Et.b,{required:!0,fieldName:"".concat(e,".operator"),options:ri.map((function(e){return{value:e,label:ai(e)}}))})}),Object(a.jsx)(gi.ThirdColumn,{children:Object(a.jsx)(mt.a,{fieldName:"".concat(e,".value"),validation:Ba.e})})]}),Object(a.jsxs)(hi,{when:"".concat(e,".kind"),is:"boolean",children:[Object(a.jsx)(gi.SecondColumn,{children:Object(a.jsx)(Et.b,{required:!0,fieldName:"".concat(e,".value"),options:[{value:!0,label:"True"},{value:!1,label:"False"}]})}),Object(a.jsx)(gi.ThirdColumn,{})]}),Object(a.jsxs)(hi,{when:"".concat(e,".type"),is:"unset",children:[Object(a.jsx)(gi.SecondColumn,{}),Object(a.jsx)(gi.ThirdColumn,{})]}),Object(a.jsx)(gi.FourthColumn,{children:(!n||c.length&&c.length>1)&&Object(a.jsx)(gi.DeleteButton,{buttonStyle:"link",size:"small",icon:Object(M.e)(M.c.DELETE),onClick:function onClick(){1===c.length&&0===t?o():c.remove(t)},className:"u-ml-md","data-testid":"".concat(e,".delete-button")})})]},t)})),Object(a.jsxs)(gi.AddConditionRow,{children:[Object(a.jsxs)(re.a,{buttonStyle:"secondary",onClick:function onClick(){return c.push(ji)},"data-testid":"".concat(t,".add-condition-button"),children:[Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.ADD)}),Object(a.jsx)("span",{children:"Add condition"})]}),Object(a.jsx)(gi.LineNextToAddConditionButton,{})]})]})}})})},yi=function RulesEditor(e){var t=e.onSetRuleType;return Object(a.jsx)(gi.RulesEditor,{children:Object(a.jsx)(mi.a,{name:"rules",children:function children(e){var n=e.fields;return n.map((function(e,r){var o=void 0===n.length||r===n.length-1,c=1===n.length;return Object(a.jsxs)(i.Fragment,{children:[Object(a.jsx)(Ti,{ruleInstanceSetFieldName:e,isOnly:c,onSetRuleType:function onSetRuleType(e,n){return t(e,r,n)},onDeleteRuleInstanceSet:function onDeleteRuleInstanceSet(){return n.remove(r)}}),Object(a.jsxs)(gi.RuleInstanceSetSeparator,{children:[Object(a.jsx)(gi.LineAboveOrButton,{}),Object(a.jsx)(gi.OrButtonRow,{isLast:o,children:Object(a.jsxs)(gi.OrButton,{buttonStyle:"secondary",onClick:function onClick(){return n.push({ruleInstances:[ji]})},"data-testid":"".concat(e,".or-button"),children:[Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.ADD)}),Object(a.jsx)("span",{children:"OR"})]})})]})]},r)}))}})})},Si=n(585),Ci={ActionsEditor:ve.b.div.withConfig({displayName:"actions-editor__ActionsEditor",componentId:"lom2ey-0"})(["background-color:var(--grey-05);padding:var(--spacing-5);border:var(--bw1) solid var(--grey-20);box-sizing:border-box;border-radius:var(--br1);"]),ActionRow:ve.b.div.withConfig({displayName:"actions-editor__ActionRow",componentId:"lom2ey-1"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-4);"]),Fields:ve.b.div.withConfig({displayName:"actions-editor__Fields",componentId:"lom2ey-2"})(["display:flex;flex:1 1 auto;gap:var(--spacing-3);align-items:center;& > *{flex:0 1 400px;margin:0;}"]),HorizontalSeparator:ve.b.hr.withConfig({displayName:"actions-editor__HorizontalSeparator",componentId:"lom2ey-3"})(["height:var(--bw1);border-top:var(--bw1) solid var(--grey-20);margin:var(--spacing-6) 0;"])},Ai={applyCategoryTags:"Add Category Tags to Message",applyJobReferenceTags:"Add Job Tags to Message"},Ei=Object.keys(Ai).map((function(e){return{value:e,label:Ai[e]}})),wi=function ActionsEditor(e){var t=e.categoryTags,n=e.jobReferenceTags;return Object(a.jsx)(Ci.ActionsEditor,{children:Object(a.jsx)(mi.a,{name:"actions",children:function children(e){var r,i=e.fields,o=Ei.filter((function(e){var t;return!(null===(t=i.value)||void 0===t?void 0:t.map((function(e){return e.type})).includes(e.value))}));return Object(a.jsxs)(a.Fragment,{children:[i.map((function(e,r){var o;return Object(a.jsxs)(Ci.ActionRow,{children:[Object(a.jsxs)(Ci.Fields,{children:[Object(a.jsx)("span",{children:Ai[null===(o=i.value[r])||void 0===o?void 0:o.type]}),Object(a.jsx)(hi,{when:"".concat(e,".type"),is:"applyCategoryTags",children:Object(a.jsx)(Et.a,{placeholder:"Add tag...",required:!0,fieldName:"".concat(e,".tagIds"),options:t.map((function(e){return{value:"".concat(e.id),label:"".concat(e.label)}})),chipElement:function chipElement(e,t){return Object(a.jsx)(ci.a,{label:e,onClick:t,state:"active"})}})}),Object(a.jsx)(hi,{when:"".concat(e,".type"),is:"applyJobReferenceTags",children:Object(a.jsx)(Et.a,{placeholder:"Add tag\u2026",required:!0,fieldName:"".concat(e,".tagIds"),options:n.map((function(e){return{value:"".concat(e.id),label:"".concat(e.name)}})),chipElement:function chipElement(e,t){return Object(a.jsx)(Ue.a,{label:e,onClick:t,state:"active"})}})})]}),Object(a.jsx)(re.a,{buttonStyle:"link",size:"small",icon:Object(M.e)(M.c.DELETE),onClick:function onClick(){i.remove(r)},className:"u-ml-md","data-testid":"remove-action-".concat(r)})]},e)})),o.length>0&&Object(a.jsxs)(a.Fragment,{children:[(null!==(r=i.length)&&void 0!==r?r:0)>0&&Object(a.jsx)(Ci.HorizontalSeparator,{}),Object(a.jsx)(Ci.ActionRow,{children:Object(a.jsx)(Ci.Fields,{children:Object(a.jsx)(Si.a,{options:o,onSelect:function onSelect(e){e&&i.push({type:e,tagIds:[]})},placeholder:"Add action..."})})})]})]})}})})},_i=n(168),Ii=n(231),xi={WorkflowScrollContent:ve.b.div.withConfig({displayName:"workflow-create-container__WorkflowScrollContent",componentId:"wwd1a9-0"})(["overflow-y:auto;margin-bottom:var(--spacing-2);padding-bottom:var(--spacing-6);padding-right:var(--spacing-6);"]),WorkflowCreateBody:ve.b.div.withConfig({displayName:"workflow-create-container__WorkflowCreateBody",componentId:"wwd1a9-1"})(["background-color:var(--white);display:flex;flex:1;padding:var(--spacing-7) var(--spacing-6);"]),WorkflowCreateHeader:ve.b.h2.withConfig({displayName:"workflow-create-container__WorkflowCreateHeader",componentId:"wwd1a9-2"})(["font-weight:var(--fw-semi);font-size:var(--fs-xlg);margin-bottom:var(--spacing-7);padding-left:var(--spacing-3);padding-right:var(--spacing-3);color:var(--grey-90);"]),WorkflowListContainer:ve.b.div.withConfig({displayName:"workflow-create-container__WorkflowListContainer",componentId:"wwd1a9-3"})(["border-right:var(--bw1) solid var(--grey-20);"]),WorkflowListHeader:ve.b.div.withConfig({displayName:"workflow-create-container__WorkflowListHeader",componentId:"wwd1a9-4"})(["color:#343a40;padding:var(--spacing-3);background-color:var(--white);display:flex;flex-direction:row;justify-content:space-between;align-content:center;span{margin-left:var(--spacing-2);font-size:var(--fs-sm);font-weight:var(--fw-bold);}"]),WorkflowCreateForm:ve.b.form.withConfig({displayName:"workflow-create-container__WorkflowCreateForm",componentId:"wwd1a9-5"})(["display:flex;flex-direction:column;height:100%;"]),RulesAndActionsContainer:ve.b.div.withConfig({displayName:"workflow-create-container__RulesAndActionsContainer",componentId:"wwd1a9-6"})(["margin-top:var(--spacing-7);padding-left:var(--spacing-3);"])},ki=function WorkflowCreateContainer(){var e=Object(Xa.a)(),t=Object(r.a)(e,2),n=t[0],i=t[1],o=Object(_i.c)(),c=Object(s.f)(),l=Object(G.d)((function(e){return K.h(e.entities.categoryTag)})),u=Object(G.d)((function(e){return K.h(e.entities.jobReference)})),d=Object(G.d)((function(e){return K.h(e.entities.team)})),m=function(){var e=Object(Pe.a)(Le.a.mark((function _callee(e){var t,r,a,i,s;return Le.a.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:if(t=e.actions,r=e.rules,a=e.teamIds,i=e.description,s=e.name,l.prev=1,t&&t.length&&!t.some((function(e){return!e.tagIds||!e.tagIds.length}))){l.next=4;break}throw new Error("No actions specified");case 4:if(a&&a.length){l.next=6;break}throw new Error("No teams selected");case 6:return l.next=8,n({name:s,description:null!==i&&void 0!==i?i:"",teamIds:a,definition:{isValid:!0,rules:r,actions:t}}).unwrap();case 8:o(new bi.b({message:"".concat(s," is saved."),level:ae.n.info})),c.push({pathname:b.a.WORKFLOWS_INDEX}),l.next=15;break;case 12:l.prev=12,l.t0=l.catch(1),o(new bi.b({message:"Failed to save ".concat(s," workflow. Try again."),level:ae.n.warning}));case 15:case"end":return l.stop()}}),_callee,null,[[1,12]])})));return function onSubmit(t){return e.apply(this,arguments)}}();return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)(Gt.b,{leftGroup:Object(a.jsx)(re.a,{buttonStyle:"link",icon:Object(M.e)(M.c.ARROW_LEFT),"data-testid":"go-back",onClick:function onClick(){return c.goBack()},children:"Back"})}),Object(a.jsx)(xi.WorkflowCreateBody,{children:Object(a.jsx)(rn.a,{leftPaneContent:Object(a.jsx)(a.Fragment,{}),rightPaneContent:Object(a.jsx)(a.Fragment,{}),isLeftPaneCollapsed:!0,isRightPaneCollapsed:!1,shouldLeftPanelAnimate:!1,shouldRightPanelAnimate:!0,toggleRightPane:ut.a,toggleLeftPane:ut.a,featureFlagListWidth:25,children:Object(a.jsx)(pt.b,{onSubmit:m,mutators:Object(p.a)(Object(p.a)({},Ua.a),{},{setRuleType:Oi}),initialValues:{rules:vi},render:function render(e){var t=e.handleSubmit,n=e.form,r=e.submitting,o=e.errors,c=e.pristine;return Object(a.jsxs)(xi.WorkflowCreateForm,{onSubmit:t,children:[Object(a.jsx)(xi.WorkflowCreateHeader,{children:"Create New Workflow"}),Object(a.jsxs)(xi.WorkflowScrollContent,{children:[Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{id:"name",label:"Name",fieldName:"name",validation:Ba.e})}),Object(a.jsx)(ct.e,{children:Object(a.jsx)(pi.a,{label:"Description (optional)",fieldName:"description",minLines:2})}),Object(a.jsx)(ct.f,{children:Object(a.jsx)(Et.a,{label:"Applies To",required:!0,fieldName:"teamIds",options:d.map((function(e){var t=e.id,n=e.name;return{value:"".concat(t),label:"".concat(n)}})),chipElement:function chipElement(e,t){return Object(a.jsx)(Ii.a,{label:e,onClick:t,state:"active"})},placeholder:"Add team\u2026"})}),Object(a.jsx)(xi.RulesAndActionsContainer,{children:Object(a.jsx)(oi,{rulesElement:Object(a.jsx)(yi,{onSetRuleType:n.mutators.setRuleType}),actionsElement:Object(a.jsx)(wi,{categoryTags:l,jobReferenceTags:u}),captionAboveRulesElement:"WHEN THIS HAPPENS",captionAboveActionsElement:"DO THIS"})}),Object(a.jsx)(ct.a,{children:Object(a.jsx)(ct.b,{children:Object(a.jsx)(re.a,{type:"submit","data-testid":"submit-button",disabled:Object.keys(o).length>0||r||c||i.isLoading,children:"Save"})})})]})]})}})})})]})},Ni={EmptyWorkflowView:ve.b.div.withConfig({displayName:"workflow-view-empty__EmptyWorkflowView",componentId:"luq9bs-0"})(["height:50%;width:100%;display:flex;align-items:center;justify-content:center;"]),EmptyWorkflow:ve.b.div.withConfig({displayName:"workflow-view-empty__EmptyWorkflow",componentId:"luq9bs-1"})(["text-align:center;h1{font-size:var(--fs-xlg);font-weight:var(--fw-bold);margin-bottom:var(--spacing-5);}p{font-size:var(--fs-lg);margin-bottom:var(--spacing-5);}"])},Ri=function WorkflowViewEmpty(){return Object(a.jsx)(Ni.EmptyWorkflowView,{children:Object(a.jsxs)(Ni.EmptyWorkflow,{children:[Object(a.jsx)("h1",{children:"Workflows"}),Object(a.jsx)("p",{children:"Create workflows to automate tagging your messages"}),Object(a.jsx)(Ya,{to:b.a.WORKFLOWS_CREATE,children:Object(a.jsx)(re.a,{children:"Create a workflow"})})]})})},Fi={WorkflowListContainer:ve.b.div.withConfig({displayName:"workflow-list-empty__WorkflowListContainer",componentId:"sc-7oi2u3-0"})(["border-right:var(--bw1) solid var(--grey-20);height:100%;"]),WorkflowListHeader:ve.b.div.withConfig({displayName:"workflow-list-empty__WorkflowListHeader",componentId:"sc-7oi2u3-1"})(["padding:var(--spacing-3);background:var(--white);display:flex;flex-direction:row;justify-content:space-between;align-content:center;span{margin-left:var(--spacing-2);font-size:var(--fs-sm);font-weight:var(--fw-bold);}"]),NoWorkflowList:ve.b.div.withConfig({displayName:"workflow-list-empty__NoWorkflowList",componentId:"sc-7oi2u3-2"})(["height:100%;padding-top:var(--spacing-8);display:flex;flex-direction:column;align-items:center;div{width:96px;height:96px;border-radius:100%;background-color:var(--grey-20);margin-bottom:var(--spacing-3);display:flex;justify-content:center;align-items:center;}svg{color:var(--grey-40);}p{color:var(--grey-50);}"])},Mi=function WorkflowListEmpty(){return Object(a.jsxs)(Fi.WorkflowListContainer,{children:[Object(a.jsxs)(Fi.WorkflowListHeader,{children:[Object(a.jsxs)("div",{children:[Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.WORKFLOWS),size:"small"}),Object(a.jsx)("span",{children:"0"})]}),Object(a.jsx)("div",{children:Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.FILTER),size:"small"})})]}),Object(a.jsxs)(Fi.NoWorkflowList,{children:[Object(a.jsx)("div",{children:Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.NO_WORKFLOWS),size:"xlarge"})}),Object(a.jsx)("p",{children:"There are no workflows yet"})]})]})},Di={WorkflowCreateBody:ve.b.div.withConfig({displayName:"workflows-configuration-container__WorkflowCreateBody",componentId:"r67z0v-0"})(["background-color:var(--white);height:100%;width:100%;display:flex;padding:var(--spacing-7) var(--spacing-6);"]),WorkflowCreateHeader:ve.b.h2.withConfig({displayName:"workflows-configuration-container__WorkflowCreateHeader",componentId:"r67z0v-1"})(["font-weight:var(--fw-semi);font-size:var(--fs-xlg);margin-bottom:var(--spacing-7);padding-left:var(--spacing-3);padding-right:var(--spacing-3);color:#1a202a;"]),Background:ve.b.div.withConfig({displayName:"workflows-configuration-container__Background",componentId:"r67z0v-2"})(["color:var(--background-shade);width:50%;height:100%;margin:auto;padding-top:15%;"]),WorkflowListContainer:ve.b.div.withConfig({displayName:"workflows-configuration-container__WorkflowListContainer",componentId:"r67z0v-3"})(["border-right:var(--bw1) solid var(--grey-20);height:100%;"]),WorkflowListHeader:ve.b.div.withConfig({displayName:"workflows-configuration-container__WorkflowListHeader",componentId:"r67z0v-4"})(["padding:var(--spacing-3);background:var(--white);display:flex;flex-direction:row;justify-content:space-between;align-content:center;span{margin-left:var(--spacing-2);font-size:var(--fs-sm);font-weight:var(--fw-bold);}"])},Li=function WorkflowsConfigurationComponent(){var e=Object(G.d)((function(e){return e.entities.team})),t=Object(G.d)((function(e){return e.entities.jobReference.entity})),n=Object(G.d)(Object(G.b)([function(e){return e.entities.categoryTag.entity}],(function(e){return Object.values(e).reduce((function(e,t){return t&&(e[t.id]=t),e}),{})}))),r=Object(Xa.b)(),i=r.data,o=r.isLoading;return Object(a.jsxs)("div",{className:"c-layout",children:[Object(a.jsx)(Za,{feature:"Workflows",stage:"alpha"}),Object(a.jsxs)(s.c,{children:[Object(a.jsx)(s.a,{path:b.a.WORKFLOWS_CREATE,render:function render(){return Object(a.jsx)(ki,{})}}),Object(a.jsx)(s.a,{path:b.a.WORKFLOWS_INDEX,render:function render(){return void 0===i||0===i.ids.length?Object(a.jsx)(rn.a,{leftPaneContent:Object(a.jsx)(Mi,{}),rightPaneContent:Object(a.jsx)(a.Fragment,{}),isLeftPaneCollapsed:!1,isRightPaneCollapsed:!0,shouldLeftPanelAnimate:!0,shouldRightPanelAnimate:!0,toggleRightPane:ut.a,toggleLeftPane:ut.a,featureFlagListWidth:25,children:Object(a.jsx)(Ri,{})}):Object(a.jsx)(rn.a,{leftPaneContent:o?Object(a.jsx)(Kt.b,{spinner:Kt.a}):Object(a.jsxs)(Di.WorkflowListContainer,{children:[Object(a.jsxs)(Di.WorkflowListHeader,{children:[Object(a.jsxs)("div",{children:[Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.WORKFLOWS),size:"small"}),Object(a.jsx)("span",{children:i.ids.length})]}),Object(a.jsx)("div",{children:Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.FILTER),size:"small"})})]}),Object(a.jsx)(Ka,{workflows:i,teams:e.entity})]}),rightPaneContent:Object(a.jsx)(a.Fragment,{}),isLeftPaneCollapsed:!1,isRightPaneCollapsed:!0,shouldLeftPanelAnimate:!0,shouldRightPanelAnimate:!0,toggleRightPane:ut.a,toggleLeftPane:ut.a,featureFlagListWidth:25,children:Object(a.jsxs)(s.c,{children:[Object(a.jsx)(s.a,{path:b.a.WORKFLOW(),children:Object(a.jsx)(fi,{workflows:i,teams:e.entity,jobReferences:t,categoryTags:n})}),Object(a.jsx)(s.a,{children:Object(a.jsx)(Ri,{})})]})})}})]})]})},Pi=(Object(s.j)(Object(c.a)(Li)),{AutosuggestInput:ve.b.div.withConfig({displayName:"contact-search__AutosuggestInput",componentId:"sc-1q4qi7f-0"})(["position:relative;margin-bottom:var(--spacing-3);padding-left:var(--spacing-3);padding-right:var(--spacing-3);@media ","{min-width:50%;width:50%;}.react-autosuggest__input{min-height:5rem;padding-left:4.5rem;}.react-autosuggest__suggestions-container{z-index:9999;}svg{position:absolute;color:var(--text-3);margin-left:var(--spacing-3);z-index:100;margin-top:var(--spacing-3);}"],he.a.minMedium),SuggestionTop:ve.b.div.withConfig({displayName:"contact-search__SuggestionTop",componentId:"sc-1q4qi7f-1"})(["display:grid;grid-template-columns:1fr 1fr;"]),SuggestionTopLeft:ve.b.div.withConfig({displayName:"contact-search__SuggestionTopLeft",componentId:"sc-1q4qi7f-2"})([""]),SuggestionTopRight:ve.b.div.withConfig({displayName:"contact-search__SuggestionTopRight",componentId:"sc-1q4qi7f-3"})(["text-align:right;padding-right:var(--spacing-5);"]),SuggestionBottom:ve.b.div.withConfig({displayName:"contact-search__SuggestionBottom",componentId:"sc-1q4qi7f-4"})(["color:var(--text-2);font-size:var(--fs-sm);"])});function ContactSearch(e){var t=Object(l.useDispatch)(),n=i.useState(""),o=Object(r.a)(n,2),c=o[0],s=o[1],u=Object(G.d)(Object(G.b)([function(e){return e.entities.contactsGroupPageAutoComplete}],(function(e){return K.g(e,c).orElse([])}))),d=P.b.t(P.a.SEARCH_CONTACTS);return Object(a.jsxs)(Pi.AutosuggestInput,{children:[Object(a.jsx)(F.a,{glyph:Object(M.e)(M.c.SEARCH)}),Object(a.jsx)(vt.a,{inputProps:{value:c,placeholder:d,onChange:function handleOnChange(n,r){var a=r.newValue;s(a),Object(gn.a)((function(e){e.length>0&&t(new on.X(e))}),250,{isImmediate:!e.debounceInput})(a)},autoFocus:!1},multiSection:!1,focusInputOnSuggestionClick:!1,highlightFirstSuggestion:!0,suggestions:e.pickSuggestions(u),onSuggestionsFetchRequested:ut.a,onSuggestionsClearRequested:ut.a,getSuggestionValue:function getSuggestionValue(){return c},renderSuggestion:function renderSuggestion(e){var t="suggestion-"+e.id;return Object(a.jsxs)("div",{"data-testid":t,children:[Object(a.jsxs)(Pi.SuggestionTop,{children:[Object(a.jsx)(Pi.SuggestionTopLeft,{children:e.name}),Object(a.jsx)(Pi.SuggestionTopRight,{children:1===e.emails.length?"":e.emails.length+" emails"})]}),Object(a.jsx)(Pi.SuggestionBottom,{children:e.emails.join(", ")})]})},onSuggestionSelected:function onSuggestionSelected(t,n){var r=n.suggestion;e.handleContactSelected(r)},shouldRenderSuggestions:function shouldRenderSuggestions(){return!0}})]})}var Ui={Layout:ve.b.div.withConfig({displayName:"contact-group-form__Layout",componentId:"sc-2xds0a-0"})(["display:flex;flex-direction:column;background-color:var(--white);height:100%;padding-top:var(--spacing-9);padding-left:var(--spacing-7);padding-right:var(--spacing-7);"]),Contacts:ve.b.div.withConfig({displayName:"contact-group-form__Contacts",componentId:"sc-2xds0a-1"})(["overflow:auto;background-color:var(--white);padding-left:var(--spacing-3);padding-top:var(--spacing-7);"]),ContactSearch:ve.b.div.withConfig({displayName:"contact-group-form__ContactSearch",componentId:"sc-2xds0a-2"})(["font-size:var(--fs-sm);"]),Title:ve.b.h3.withConfig({displayName:"contact-group-form__Title",componentId:"sc-2xds0a-3"})(["font-size:var(--fs-lg);font-weight:var(--fw-semi);margin-top:var(--spacing-3);margin-bottom:var(--spacing-5);padding-left:var(--spacing-3);"]),SearchInfo:ve.b.span.withConfig({displayName:"contact-group-form__SearchInfo",componentId:"sc-2xds0a-4"})(["color:var(--text-2);font-size:var(--fs-sm);padding-left:var(--spacing-3);"]),FormInputLabel:ve.b.span.withConfig({displayName:"contact-group-form__FormInputLabel",componentId:"sc-2xds0a-5"})(["color:var(--text-2);padding-left:var(--spacing-3);font-size:var(--fs);"]),LayoutSplit:ve.b.div.withConfig({displayName:"contact-group-form__LayoutSplit",componentId:"sc-2xds0a-6"})(["display:grid;grid-template-columns:2fr 1fr;padding-top:var(--spacing-6);height:100%;"]),LayoutSplitLeft:ve.b.div.withConfig({displayName:"contact-group-form__LayoutSplitLeft",componentId:"sc-2xds0a-7"})(["grid-column:1;margin-left:var(--spacing-6);border-right:var(--bw1) solid var(--border-1);padding-right:var(--spacing-6);"]),LayoutSplitRight:ve.b.div.withConfig({displayName:"contact-group-form__LayoutSplitRight",componentId:"sc-2xds0a-8"})(["grid-column:2;"]),Bottom:ve.b.div.withConfig({displayName:"contact-group-form__Bottom",componentId:"sc-2xds0a-9"})(["align:right;padding-right:var(--spacing-6);padding-bottom:var(--spacing-6);"]),EmailListItem:ve.b.li.withConfig({displayName:"contact-group-form__EmailListItem",componentId:"sc-2xds0a-10"})(["list-style-type:none;"]),EmailList:ve.b.ul.withConfig({displayName:"contact-group-form__EmailList",componentId:"sc-2xds0a-11"})(["padding-left:0;"])};function ContactGroupForm(e){var t=Object(l.useDispatch)(),n=Object(i.useState)(e.initialContacts),o=Object(r.a)(n,2),c=o[0],s=o[1],u=Object(i.useState)(!1),d=Object(r.a)(u,2),p=d[0],m=d[1],h=[{Header:P.b.t(P.a.CONTACTS_TABLE_NAME),id:"name",accessor:function accessor(e){return e.name},sortType:"caseInsensitiveString",Cell:function Cell(e){return e.row.original.name}},{Header:P.b.t(P.a.CONTACTS_TABLE_EMAIL),id:"emails",accessor:function accessor(e){return e.emails[0]},sortType:"caseInsensitiveString",Cell:function Cell(e){return Object(a.jsx)(Ui.EmailList,{children:e.row.original.emails.map((function(e){return Object(a.jsx)(Ui.EmailListItem,{children:e})}))})}},{Header:"",id:"removeButton",Cell:function Cell(e){return Object(a.jsx)(re.a,{buttonStyle:"link",size:"small",onClick:function onClick(){return function remove(e){var t=c.filter((function(t){return t.id!==e.id}));s(t),m(!0)}(e.row.original)},children:P.b.t(P.a.CONTACTS_TABLE_REMOVE_LINK)})}}],g=function removeDuplicates(e){var t=new Set(c.map((function(e){return e.id})));return e.filter((function(e){return!t.has(e.id)}))},j=function cancelChange(){e.initialId?t(Object(C.f)({pathname:b.a.ADDRESS_BOOK_CONTACT_GROUP_DETAILS(e.initialId)})):t(Object(C.f)(b.a.ADDRESS_BOOK_CONTACT_GROUPS))};return Object(a.jsx)(Ui.Layout,{children:Object(a.jsxs)(Ui.LayoutSplit,{children:[Object(a.jsxs)(Ui.LayoutSplitLeft,{children:[Object(a.jsx)(Ui.Title,{"data-testid":"title-container",children:e.title}),Object(a.jsx)(pt.b,{onSubmit:function onSubmit(t){e.submitForm(t.name,c)},render:function render(t){var n=t.handleSubmit,r=(t.submitError,t.values,t.errors),i=t.submitting,o=t.pristine;return Object(a.jsxs)(ct.h,{onSubmit:n,children:[Object(a.jsx)(ct.f,{children:Object(a.jsx)(mt.a,{fieldName:"name",label:P.b.t(P.a.EDIT_CONTACT_GROUP_NAME_INPUT_LABEL),validation:Ba.e,initialValue:e.initialName})}),Object(a.jsxs)(Ui.ContactSearch,{children:[Object(a.jsx)(Ui.FormInputLabel,{children:P.b.t(P.a.EDIT_CONTACT_GROUP_ADD_CONTACTS_LABEL)}),Object(a.jsx)(ContactSearch,{"data-testid":"contact-search",handleContactSelected:function handleContactSelected(e){return function addContact(e){var t=c.slice();t.push({id:e.id,name:e.name,emails:e.emails}),s(t),m(!0)}(e)},pickSuggestions:g,debounceInput:!0}),Object(a.jsx)(Ui.SearchInfo,{children:P.b.t(P.a.EDIT_CONTACT_GROUP_ADD_CONTACTS_INFO)})]}),Object(a.jsx)(Ui.Contacts,{"data-testid":"contacts-table",children:Object(a.jsx)(Mn.a,{name:"contacts-list-table",searchable:!1,columns:h,data:c,emptyTableProps:{text:"",icon:M.c.CONTACTS},hideWhenEmpty:!0,inModal:!0})}),Object(a.jsx)(Ui.Bottom,{children:Object(a.jsx)(ct.a,{children:Object(a.jsxs)(ct.b,{children:[Object(a.jsx)(re.a,{onClick:j,"data-testid":"cancel-button",buttonStyle:"link",children:P.b.t(P.a.EDIT_CONTACT_GROUP_CANCEL_BUTTON)}),Object(a.jsx)(re.a,{type:"submit","data-testid":"submit-button",disabled:Object.keys(r).length>0||i||0===c.length||o&&!p,children:P.b.t(P.a.EDIT_CONTACT_GROUP_SUBMIT_BUTTON)})]})})})]})}})]}),Object(a.jsx)(Ui.LayoutSplitRight,{})]})})}var Bi=n(363),Hi=n(475);function CreateContactGroupForm(e){var t=Object(l.useDispatch)(),n=Object(s.g)(),r=Object(W.parse)(n.search).duplicateOfContactGroupId,i=Object(G.d)(Object(G.b)([function(e){return e.entities.contactGroup},function(e){return e.entities.contact}],(function(t,n){if(!e.isDuplicate)return{contactGroup:null,contacts:null};var a=K.g(t,r),i=a.map((function(e){var t=e.relationships.contact;return t?t.data.map((function(e){return e.id})):[]}));return{contactGroup:a,contacts:K.m(i,(function(e){return K.g(n,e)}))}}))),o=function submitCreate(e,n){t(new on.b(e,n.map((function(e){return e.id}))))};if(e.isDuplicate){if(null==i.contactGroup||null==i.contacts)throw new Error("Expected Contacts or Contact Group to not be null");return Object(Bt.b)(i.contactGroup,i.contacts,(function(t,n){var r=n.map((function(e){var t;return{id:e.id,name:null!==(t=e.attributes.firstName)&&void 0!==t?t:"",emails:e.attributes.emailAddresses}}));return Object(a.jsx)(ContactGroupForm,{currentUser:e.currentUser,initialContacts:r,initialName:t.attributes.name,submitForm:o,title:t.attributes.name,initialId:t.id})}),(function(e){return Object(Bi.b)(e)}))}return Object(a.jsx)(ContactGroupForm,{currentUser:e.currentUser,initialContacts:[],initialName:"",submitForm:o,title:Hi.a.t(P.a.SAVE_CONTACT_GROUP_TITLE)})}function EditContactGroupForm(e){var t=Object(l.useDispatch)(),n=Object(s.h)().id,r=Object(G.d)(Object(G.b)([function(e){return e.entities.contactGroup},function(e){return e.entities.contact}],(function(e,t){var r=K.g(e,n),a=r.map((function(e){var t=e.relationships.contact;return t?t.data.map((function(e){return e.id})):[]}));return{contactGroup:r,contacts:K.m(a,(function(e){return K.g(t,e)}))}})));return i.useEffect((function(){r.contactGroup.ifNotLoading((function(){t(new on.K(n))}))}),[r.contactGroup,n,t]),Object(Bt.b)(r.contactGroup,r.contacts,(function(r,i){var o=i.map((function(e){var t;return{id:e.id,name:null!==(t=e.attributes.firstName)&&void 0!==t?t:"",emails:e.attributes.emailAddresses}}));return Object(a.jsx)(ContactGroupForm,{currentUser:e.currentUser,initialContacts:o,initialName:r.attributes.name,initialId:r.id,submitForm:function submitEdit(e,r){t(new on.ab(n,e,r.map((function(e){return e.id})))),t(Object(C.f)({pathname:b.a.ADDRESS_BOOK_CONTACT_GROUP_DETAILS(n)}))},title:r.attributes.name})}),(function(e){return Object(Bi.b)(e)}))}var Gi=i.lazy((function(){return Promise.all([n.e(0),n.e(4),n.e(16),n.e(2),n.e(6)]).then(n.bind(null,1825))})),Wi=i.lazy((function(){return n.e(7).then(n.bind(null,1827))})),zi=i.lazy((function(){return Promise.all([n.e(1),n.e(4),n.e(2),n.e(3),n.e(13)]).then(n.bind(null,1828))})),Vi=i.lazy((function(){return n.e(12).then(n.bind(null,1824))})),Ji=i.lazy((function(){return n.e(12).then(n.bind(null,1830))})),Yi=function getSidebarEnabled(e,t){return e!==ae.t.OFF&&(e===ae.t.ON||(null===t?e===ae.t.OPT_OUT:t))},qi="sidebar-expanded",Ki="sidebar-collapsed",Xi="new-sedna-ds",Qi=Object(G.b)([function(e){return e.ui.sidebar.isEnabled},function(e){return null!==e.ui.update.isAvailable}],(function(e,t){return{showSidebar:e,updateAvailable:t}}));t.b=Object(c.a)((function DesktopComponent(e){var t=e.featureFlags.SIDEBAR_NAVIGATION,n=e.userConfig.user.id,o=Object(G.d)(Qi),c=o.showSidebar,u=o.updateAvailable,p=Object(l.useDispatch)(),m=Object(me.c)().width,h=Object(hr.d)("".concat("SEDNA_SIDEBAR_COLLAPSED_V1","_").concat(n),false),g=Object(r.a)(h,2),j=g[0],v=g[1],O=Object(hr.d)("".concat(t===ae.t.OPT_OUT?mr.f:mr.d,"_").concat(n),mr.e),T=Object(r.a)(O,1)[0],y=Object(hr.d)("".concat("SEDNA_SIDEBAR_OPT_OUT_DISPLAYED_V1","_").concat(n),false),S=Object(r.a)(y,2),C=S[0],A=S[1],E=i.useState(null),w=Object(r.a)(E,2),_=w[0],I=w[1];i.useLayoutEffect((function(){var e=Object(hr.a)("".concat(t===ae.t.OPT_OUT?mr.f:mr.d,"_").concat(n),mr.e),r=Yi(t,e);p(new J.k(r))}),[p,n,t]),i.useLayoutEffect((function(){c?(document.body.classList.add(j?Ki:qi),document.body.classList.remove(j?qi:Ki),document.body.classList.add(Xi)):(document.body.classList.remove(qi),document.body.classList.remove(Ki),document.body.classList.remove(Xi))}),[c,j]),i.useEffect((function(){return function(){document.body.classList.remove(qi),document.body.classList.remove(Ki),document.body.classList.remove(Xi)}}),[]);var x=i.useCallback((function(e){v(!j),p(fe.a.withEvent(Object(fe.p)("Sidebar: ".concat(j?"Expand":"Collapse").concat(e?" From Strip":" From Button"))))}),[p,j,v]),k=i.useCallback((function(){return A(!0)}),[A]),N=e.featureFlags.SIDEBAR_NAVIGATION===ae.t.OPT_OUT&&!C&&null===T,R="safari"===Object(pr.a)(),F=e.tenantConfig.settings.CUSTOMER_ANALYTICS&&e.userConfig.user.roles.includes(B.b.ANALYTICS),M=e.featureFlags.WORKFLOWS&&e.userConfig.user.roles.includes(B.b.IT_SUPPORT),D=Object(s.g)(),P="duplicateOfContactGroupId"in Object(W.parse)(D.search),U=i.useCallback((function(t){return Object(a.jsx)(Me,{currentUser:e.userConfig.user,currentTeam:e.currentTeam,currentFilterSet:e.currentFilterSet,filterSetDeserializer:e.filterSetDeserializer,tenantConfig:e.tenantConfig,onLogout:e.onLogout,showSearchBar:t,notificationEnabled:!!e.notificationEnabled,enableNotifications:e.enableNotifications,disableNotifications:e.disableNotifications,searchNavigator:e.searchNavigator,showSidebar:c,featureFlags:e.featureFlags})}),[e.currentFilterSet,e.currentTeam,e.disableNotifications,e.enableNotifications,e.featureFlags,e.filterSetDeserializer,e.notificationEnabled,e.onLogout,e.searchNavigator,e.tenantConfig,e.userConfig.user,c]);return Object(a.jsxs)("div",{className:d()("c-app-container",{"c--cordova":Object(L.a)()}),children:[!Object(Qn.b)()&&Object(a.jsx)(qn.a,{alertType:Object(qn.b)(e.offline===ae.c.OFFLINE,e.searchState===ae.q.CRITICAL,e.showUpdateAlert,N),updateHandler:e.updateApplication,onDismissNewLookAlert:k}),Object(a.jsx)("div",{className:"c-app-container__content",children:Object(a.jsx)(ie.a,{children:Object(a.jsxs)(i.Suspense,{fallback:Object(a.jsx)(Kt.b,{spinner:Kt.a}),children:[c&&!Object(Qn.b)()&&Object(a.jsx)(Pa,{isSidebarCollapsed:j,onToggle:x,composeEnabled:e.userConfig.user.permissions.includes(B.a.compose_message),quickFiltersEnabled:!e.featureFlags.MESSAGE_LIST_QUICK_FILTERS,bookmarksEnabled:e.featureFlags.SIDEBAR_BOOKMARKS,notesEnabled:e.featureFlags.TOPICS,p2AddressBookEnabled:e.featureFlags.P2_ADDRESS_BOOK,viewInsightsEnabled:F,manageTemplatesEnabled:e.userConfig.user.roles.includes(B.b.REGULAR_USER)||e.userConfig.user.roles.includes(B.b.SUPER_USER),manageUsersEnabled:e.userConfig.user.roles.includes(B.b.IT_SUPPORT),manageJobReferencesEnabled:e.tenantConfig.settings.MANAGE_JOB_REFERENCE,manageFlexDocTypesEnabled:e.featureFlags.FLEX_DOCS_MANAGEMENT,manageNotificationsEnabled:!Object(L.a)()&&null!==e.notificationEnabled,addressBookEnabled:e.tenantConfig.settings.ADDRESS_BOOK,guidesEnabled:e.featureFlags.SEDNA_GUIDES_LAUNCHPAD,updateAvailable:u,currentUser:e.userConfig.user,myWorkEnabled:e.featureFlags.MY_WORK,myMessagesTenantConfig:e.tenantConfig.settings.MY_MESSAGES,workflowsEnabled:M}),Object(a.jsx)(QuickActionsModalContainer,{}),Object(a.jsxs)(gr.a.Provider,{value:{modalKey:_,onToggle:I},children:[t===ae.t.OPT_IN&&Object(a.jsx)(jr,{currentUser:e.userConfig.user}),!R&&"Notification"in window&&Object(a.jsx)(fr.a,{enableNotifications:e.enableNotifications,currentUser:e.userConfig.user})]}),Object(a.jsxs)(s.c,{children:[F&&Object(a.jsx)(s.a,{path:b.a.INSIGHTS,children:Object(a.jsx)(Ji,{reportsConfig:e.featureFlags.TABLEAU_REPORTS_CONFIG})}),Object(a.jsx)(s.a,{path:b.a.JOB_REFERENCES,children:Object(a.jsx)(Wt,{currentUser:e.userConfig.user,tenantConfig:e.tenantConfig,jrmCreateFF:function jrmCreateFF(t){return!e.featureFlags.JRM_CREATE||t}})}),M&&Object(a.jsx)(s.a,{path:b.a.WORKFLOWS_INDEX,children:Object(a.jsx)(Li,{})}),Object(a.jsx)(s.a,{path:b.a.SETTINGS_INDEX,children:Object(a.jsxs)("div",{className:"c-layout",children:[U(!1),Object(a.jsx)(Vi,{shouldShowRightPane:m>=he.c,currentUser:e.userConfig.user,onLogout:e.onLogout,featureFlagListWidth:e.featureFlags.LIST_WIDTH,featureFlagManageCategoryTags:e.featureFlags.MANAGE_CATEGORY_TAGS,featureFlagManageTeams:e.featureFlags.MANAGE_TEAMS,featureFlagManageUsers:e.featureFlags.MANAGE_USERS,featureFlagSidebarNavigation:e.featureFlags.SIDEBAR_NAVIGATION,featureFlagManageProfiles:e.featureFlags.SHOW_PROFILES,featureFlagMyWorkEnabled:e.featureFlags.MY_WORK,useSSO:e.tenantConfig.settings.USE_SSO,viewInsights:e.tenantConfig.settings.CUSTOMER_ANALYTICS,tenant:e.tenantConfig.tenant,bccByDefault:e.tenantConfig.settings.BCC_DEFAULT_RECIPIENT})]})}),Object(a.jsx)(s.a,{path:b.a.COMPOSE_NEW_MESSAGE,children:Object(a.jsx)(zt.a,{currentUser:e.userConfig.user,currentTeam:e.currentTeam,currentFilterSet:e.currentFilterSet,tenantConfig:e.tenantConfig,goBackTo:e.lastNonMessageComposeLocation,isMobile:!1})}),Object(a.jsx)(s.a,{path:b.a.COMPOSE_NEW_TOPIC,children:Object(a.jsx)(Xn.a,{})}),Object(a.jsx)(s.a,{path:b.a.COMPOSE_FOLLOW_UP_MESSAGE(),children:Object(a.jsx)(br.a,{tenantConfig:e.tenantConfig,currentUser:e.userConfig.user,currentTeam:e.currentTeam})}),Object(a.jsx)(s.a,{path:b.a.COMPOSE_MESSAGE(),children:Object(a.jsx)(Gi,{currentUser:e.userConfig.user,currentTeam:e.currentTeam,currentFilterSet:e.currentFilterSet,tenantConfig:e.tenantConfig,goBackTo:e.lastNonMessageComposeLocation,isMobile:!1,searchNavigator:e.searchNavigator})}),Object(a.jsx)(s.a,{path:b.a.COMPOSE_TOPIC(),children:Object(a.jsx)(zi,{tenantConfig:e.tenantConfig,currentUser:e.userConfig.user,currentTeam:e.currentTeam,isMobile:!1,newNotesUIFeatureFlag:e.featureFlags.NEW_NOTES_UI,goBackTo:e.lastNonComposeLocation})}),Object(a.jsx)(s.a,{path:b.a.SELECT_TEMPLATE(),children:Object(a.jsx)(Wi,{currentUser:e.userConfig.user,currentTeam:e.currentTeam,isDoublePane:m<he.d})}),Object(a.jsx)(s.a,{path:b.a.COMPOSE_FOLLOW_UP_MESSAGE(),children:Object(a.jsx)(br.a,{tenantConfig:e.tenantConfig,currentUser:e.userConfig.user,currentTeam:e.currentTeam})}),Object(a.jsx)(s.a,{path:b.a.LIST,children:Object(a.jsxs)("div",{className:"c-layout",children:[U(!0),Object(a.jsx)("div",{className:"container-fluid c-layout__body",children:Object(a.jsx)(Vn,{currentUser:e.userConfig.user,currentTeam:e.currentTeam,tenantConfig:e.tenantConfig,featureFlags:e.featureFlags,isDoublePane:m<he.d,searchNavigator:e.searchNavigator,isMobile:!1,listQuickFiltersEnabled:c&&e.featureFlags.MESSAGE_LIST_QUICK_FILTERS})},"list-container")]})}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACT_CREATE(),render:function render(){return Object(a.jsxs)("div",{className:"c-layout",children:[U(!1),Object(a.jsx)(ContactCreate,{})]})}}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACT_UPDATE(),render:function render(){return Object(a.jsxs)("div",{className:"c-layout",children:[U(!1),Object(a.jsx)(ContactUpdate,{})]})}}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACT_GROUP_CREATE,render:function render(){return Object(a.jsxs)("div",{className:"c-layout",children:[U(!1),Object(a.jsx)(CreateContactGroupForm,{currentUser:e.userConfig.user,isDuplicate:P})]})}}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK_CONTACT_GROUP_UPDATE(),render:function render(){return Object(a.jsxs)("div",{className:"c-layout",children:[U(!1),Object(a.jsx)(EditContactGroupForm,{currentUser:e.userConfig.user})]})}}),Object(a.jsx)(s.a,{path:b.a.ADDRESS_BOOK,children:Object(a.jsxs)("div",{className:"c-layout",children:[U(!1),Object(a.jsx)("div",{className:"container-fluid c-layout__body",children:Object(a.jsx)(Vn,{currentUser:e.userConfig.user,currentTeam:e.currentTeam,tenantConfig:e.tenantConfig,featureFlags:e.featureFlags,isDoublePane:m<he.d,searchNavigator:e.searchNavigator,isMobile:!1})},"list-container")]})}),Object(a.jsx)(s.a,{path:b.a.CREDITS,children:Object(a.jsx)("div",{className:"c-layout",children:Object(a.jsx)(Yn,{toggleShowFullBucket:e.toggleShowFullBucket})})}),Object(Qn.b)()&&Object(a.jsx)(Qn.a,{path:b.a.PREVIEW()}),Object(a.jsx)(s.a,{children:Object(a.jsxs)("div",{className:"c-layout",children:[U(!0),Object(a.jsx)(Kn.b,{})]})})]})]})})})]})}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(23),a=n(7),i=n(3),o=n(10),c=n(13),s=n(122),l=n(25),u=n(2),d=n(32),b=n.n(d),p=n(30),m=n(79),h=n(128),g=n(138),j=n(8),v=function(){function FilterSetDeserializer(e,t,n,r,o){var s,l=this;Object(i.a)(this,FilterSetDeserializer),this.currentUser=e,this.user=o,this.DESERIALIZERS=(s={},Object(a.a)(s,j.h.text,(function(e){return new c.K(getQuery(e))})),Object(a.a)(s,j.h.subject,(function(e){return new c.I(getQuery(e))})),Object(a.a)(s,j.h.body,(function(e){return new c.e(getQuery(e))})),Object(a.a)(s,j.h.from,(function(e){return new c.n(getQuery(e))})),Object(a.a)(s,j.h.to,(function(e){return new c.M(getQuery(e))})),Object(a.a)(s,j.h.cc,(function(e){return new c.h(getQuery(e))})),Object(a.a)(s,j.h.category,(function(e){return l.getCategoryTag(getQuery(e)).map((function(e){return new c.g(e)})).orElse(new c.K(getQuery(e)))})),Object(a.a)(s,j.h.jobReference,(function(e){return l.getJobReferenceTag(getQuery(e)).map((function(e){return new c.z(e)})).orElse(new c.u(getQuery(e)))})),Object(a.a)(s,j.h.vesselName,(function(e){return new c.O(getQuery(e))})),Object(a.a)(s,j.h.team,(function(e){return l.getTeam(getQuery(e)).map((function(e){return new c.J(e)})).orElse(new c.K(getQuery(e)))})),Object(a.a)(s,j.h.comment,(function(e){return new c.i(getQuery(e))})),Object(a.a)(s,j.h.attachmentName,(function(e){return new c.c(getQuery(e))})),Object(a.a)(s,j.h.relativeTime,(function(e){return new c.E(function getTimeDelta(e){var t=e.split(":");return{n:parseInt(t[0],10),unit:Object(c.U)(t[1]).orElse(c.L.HOUR)}}(getQuery(e)))})),Object(a.a)(s,j.h.beforeTime,(function(e){return new c.d(b()(getQuery(e),h.a))})),Object(a.a)(s,j.h.afterTime,(function(e){return new c.a(b()(getQuery(e),h.a))})),Object(a.a)(s,j.h.user,(function(e){return l.getUser(getQuery(e)).map((function(e){return new c.N(e)})).orElse(new c.K(getQuery(e)))})),Object(a.a)(s,j.h.inbox,(function(){return new c.v})),Object(a.a)(s,j.h.scheduled,(function(){return new c.F})),Object(a.a)(s,j.h.cancelled,(function(){return new c.f})),Object(a.a)(s,j.h.stored,(function(){return new c.H})),Object(a.a)(s,j.h.sent,(function(){return new c.G})),Object(a.a)(s,j.h.draft,(function(){return new c.j})),Object(a.a)(s,j.h.myMessages,(function(e){return new c.B(l.getMyMessagesUser(getOptionalQuery(e)))})),Object(a.a)(s,j.h.myWork,(function(e){return new c.C(l.getMyMessagesUser(getOptionalQuery(e)))})),Object(a.a)(s,j.h.following,(function(){return new c.m})),Object(a.a)(s,j.h.allTeams,(function(){return new c.b})),Object(a.a)(s,j.h.hasComment,(function(){return new c.q})),Object(a.a)(s,j.h.hasUnreadComment,(function(){return new c.t})),Object(a.a)(s,j.h.hasJobReference,(function(){return new c.r})),Object(a.a)(s,j.h.hasPerson,(function(){return new c.s})),Object(a.a)(s,j.h.hasCategory,(function(){return new c.p})),Object(a.a)(s,j.h.hasAttachment,(function(){return new c.o})),Object(a.a)(s,j.h.isRead,(function(){return new c.x})),Object(a.a)(s,j.h.isUnread,(function(){return new c.y})),Object(a.a)(s,j.h.isNote,(function(){return new c.w})),Object(a.a)(s,j.h.messageId,(function(e){return new c.A(Number.parseInt(getQuery(e),10))})),Object(a.a)(s,"noCategoryTagAndNew",(function noCategoryTagAndNew(){return new c.k(j.g.AND,[new c.v,new c.k(j.g.NOT,[new c.p])])})),Object(a.a)(s,"notAcknowledged",(function notAcknowledged(){return new c.k(j.g.NOT,[l.getCategoryTag("Acknowledged").map((function(e){return new c.g(e)})).orElse(new c.K("Acknowledged"))])})),Object(a.a)(s,"assigned",(function assigned(){return new c.m})),s),this.jobReference=void 0,this.categoryTag=void 0,this.team=void 0,this.jobReference=u.h(t).reduce((function(e,t){return e[t.name]=t,e}),{}),this.categoryTag=u.h(n).reduce((function(e,t){return e[t.name]=t,e}),{}),this.team=u.h(r).reduce((function(e,t){return e[t.name]=t,e}),{})}return Object(o.a)(FilterSetDeserializer,[{key:"fromQueryParams",value:function fromQueryParams(e){var t=this,n=Object(p.parse)(e),r=l.a.of(n.filter).map((function(e){return quickFilterToFilterSet(e,t.currentUser)})),a=(n.filterSet?s.a.of((function(){return JSON.parse(n.filterSet)})).flatMap((function(e){return t.deserialize(e)})):s.a.ofError(new Error("filterSet not present in object: ".concat(JSON.stringify(n))))).toOptional();return r.flatMap((function(e){return a.map((function(t){return e.and(t)}))})).or(r).or(a).or(l.a.of(quickFilterToFilterSet(m.a,this.currentUser))).orElse(c.k.empty()).normalize()}},{key:"deserialize",value:function deserialize(e){var t=e.children,n=e.type;return this._deserialize(t).map((function(e){return new c.k(n,e)}))}},{key:"_deserialize",value:function _deserialize(e){var t=this;return s.a.traverse(e,(function(e){return function isPlainFilterSet(e){return e.hasOwnProperty("type")&&e.hasOwnProperty("children")}(e)?t._deserialize(e.children).map((function(t){return new c.k(e.type,t)})):t.deserializePlainFilterTerm(e)}))}},{key:"fromFormData",value:function fromFormData(e){var t=this,n=[];if(e.to&&n.push(new c.M(e.to)),e.from&&n.push(new c.n(e.from)),e.subject&&n.push(new c.I(e.subject)),e.body&&n.push(new c.e(e.body)),e.before&&n.push(new c.d(b()(e.before))),e.after&&n.push(new c.a(b()(e.after))),e.jobReferenceVesselName&&n.push(new c.O(e.jobReferenceVesselName)),e.comment&&n.push(new c.i(e.comment)),e["has-comment"]&&n.push(new c.q),e.attachment&&n.push(new c.c(e.attachment)),e["has-attachment"]&&n.push(new c.o),e.relativeDateRange)switch(e.relativeDateRange){case"24hours":n.push(new c.E({n:24,unit:c.L.HOUR}));break;case"3days":n.push(new c.E({n:3,unit:c.L.DAY}));break;case"1week":n.push(new c.E({n:1,unit:c.L.WEEK}));break;case"1month":n.push(new c.E({n:1,unit:c.L.MONTH}));break;case"1year":n.push(new c.E({n:1,unit:c.L.YEAR}))}if(e["all-teams"]?n.push(new c.b):e.teams&&Array.isArray(e.teams)?n.push(new c.k(j.g.OR,e.teams.map((function(e){return t.getTeam(e).map((function(e){return new c.J(e)})).orElse(new c.K(e))})))):e.teams&&n.push(this.getTeam(e.teams).map((function(e){return new c.J(e)})).orElse(new c.K(e.teams))),e.tagsAnd&&n.push.apply(n,Object(r.a)(toArray(e.tagsAnd).map((function(e){return t.fromTagName(e)})))),e.tagsOr){var a=toArray(e.tagsOr);1===a.length?n.push(this.fromTagName(a[0])):n.push(new c.k(j.g.OR,a.map((function(e){return t.fromTagName(e)}))))}return new c.k(j.g.AND,n)}},{key:"toFilterQuery",value:function toFilterQuery(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.D.ALL,r=e.combinator===j.g.AND?l.a.of(e.children.find((function(e){return Object(c.S)(e,t.currentUser)}))):l.a.empty(),a=r.map((function(t){return e.remove(t)})).orElse(e).normalize(),i=r.flatMap((function(e){var t=e.serialize().term;return l.a.of(t)})).maybe(null,(function(e){return e.type}));return{filter:null!==i&&void 0!==i?i:n,filterSet:a.isEmpty()?void 0:a.serializeToString()}}},{key:"fromTagName",value:function fromTagName(e){var t=this.jobReference[e];return(null===t||void 0===t?void 0:t.tagId)?new c.z(t):this.categoryTag.hasOwnProperty(e)?new c.g(this.categoryTag[e]):"todo"===e?new c.s:"todo-me"===e?new c.m:new c.G}},{key:"deserializePlainFilterTerm",value:function deserializePlainFilterTerm(e){var t=this;return s.a.of((function(){return l.a.of(t.DESERIALIZERS[e.term.type]).orElseThrow(new Error("No deserializer found for term:\n".concat(JSON.stringify(e,null,2))))(e)}))}},{key:"getCategoryTag",value:function getCategoryTag(e){return l.a.of(this.categoryTag[e])}},{key:"getJobReferenceTag",value:function getJobReferenceTag(e){var t=this.jobReference[e];return(null===t||void 0===t?void 0:t.tagId)?l.a.of(t):l.a.empty()}},{key:"getUser",value:function getUser(e){return u.g(this.user,e)}},{key:"getMyMessagesUser",value:function getMyMessagesUser(e){return e&&e!==this.currentUser.id?u.g(this.user,e).orElseThrow(Error("Can't find user with id ".concat(e))):this.currentUser}},{key:"getTeam",value:function getTeam(e){return l.a.of(this.team[e])}}]),FilterSetDeserializer}();function getQuery(e){if(e.term.query)return e.term.query;throw new Error("Can't read 'query' property from ".concat(JSON.stringify(e)))}function getOptionalQuery(e){return e.term.query}function toArray(e){return Array.isArray(e)?e:[e]}function quickFilterToFilterSet(e,t){switch(e){case c.D.ALL:return c.k.empty();case c.D.INBOX:return c.k.fromFilterTerm(new c.v);case c.D.SENT:return c.k.fromFilterTerm(new c.G);case c.D.STORED:return c.k.fromFilterTerm(new c.H);case c.D.DRAFT:return c.k.fromFilterTerm(new c.j);case c.D.FOLLOWING:return c.k.fromFilterTerm(new c.m);case c.D.MY_MESSAGES:return c.k.fromFilterTerm(new c.B(t));case c.D.MY_WORK:return c.k.fromFilterTerm(new c.C(t));default:return Object(g.a)(e)}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return MonthYearSelect}));var r=n(0),a=n(1),i=n(19),o=n(9),c=n(88);function MonthYearSelect(e){var t=e.date,n=e.localeUtils,s=e.onChange,l=n.getMonths(),u=a.useMemo((function(){for(var e=[],t=c.c.getFullYear();t<=c.b.getFullYear();t+=1)e.push(t);return e}),[]),d=function handleChange(e){var t=e.target.form,n=t.year,r=t.month;s(new Date(n.value,r.value))};return Object(r.jsxs)("form",{className:"c-date-picker-month-year-select__select-container",children:[Object(r.jsxs)("div",{className:"c-date-picker-month-year-select__select c--month",children:[Object(r.jsx)(i.a,{glyph:Object(o.e)(o.c.UNFOLD_MORE),size:"small",className:"c-date-picker-month-year-select__select-icon"}),Object(r.jsx)("select",{className:"c-date-picker-month-year-select__select ",name:"month",onChange:d,value:t.getMonth(),children:l.map((function(e,t){return Object(r.jsx)("option",{value:t,children:e},e)}))})]}),Object(r.jsxs)("div",{className:"c-date-picker-month-year-select__select c--year",children:[Object(r.jsx)(i.a,{glyph:Object(o.e)(o.c.UNFOLD_MORE),size:"small",className:"c-date-picker-month-year-select__select-icon"}),Object(r.jsx)("select",{name:"year",onChange:d,value:t.getFullYear(),children:u.map((function(e){return Object(r.jsx)("option",{value:e,children:e},e)}))})]})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),a=n(643),i=n(12),o=Object(i.b)(a.a).withConfig({displayName:"share-sheet-containers__ShareSheetContainer",componentId:"sc-1pxjsvy-0"})(["max-width:480px;max-height:640px;height:100%;.modal-content{height:100%;}"]),c=function ShareSheetModal(e){return Object(r.jsx)(o,{wrapClassName:"c--modal-wrapper",isOpen:e.isOpen,children:e.children})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return getSendingTeam})),n.d(t,"b",(function(){return getTeamShareFrom}));var r=n(25),a=n(122);function getSendingTeam(e,t){return a.a.of((function(){return r.a.of(function getTeamId(){var n=e.find((function(e){return e.id===t.defaultTeamId.toString()}));return 1===e.length?e[0]:e.length>1&&n?n:null}())}))}function getTeamShareFrom(e,t){return e.map((function(e){var n=new Set(e.map((function(e){return e})));return t.filter((function(e){return n.has(e)}))})).map((function(e){return e[0]})).toUndefined()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return FollowUpMessageContainer}));var r=n(21),a=n(0),i=n(1),o=n(22),c=n(50),s=n(26),l=n(2),u=n(28),d=n(27),b=n(818),p=n(368),m=n(355),h=n(44),g=n(289),j=n(93),v=["reply","replyAll","forward","resend","resendAsNew"];function FollowUpMessageContainer(e){var t=e.currentUser,n=e.currentTeam,O=e.tenantConfig,T=Object(u.useDispatch)(),y=Object(o.g)(),S=Object(o.h)(),C=S.id,A=S.action,E=v.includes(A),w=Object(s.d)((function(e){return l.g(e.entities.messageBody,C)})),_=Object(s.d)(j.a),I=i.useState(!1),x=Object(r.a)(I,2),k=x[0],N=x[1];return i.useEffect((function(){w.isNotLoading()&&T(d.X.doNotSetToLoading(C,t.id))}),[T,C,w,t.id]),i.useEffect((function(){k||w.map((function(e){var r;N(!0);var a=Object(m.b)({template:O.settings.EMAIL_FROM_NAME_FORMAT,tenantName:O.tenant.name,tenantShortName:O.tenant.shortName,teamName:n.name,teamSendingName:null!==(r=n.sendingName)&&void 0!==r?r:null,userInitials:t.initials,userFullName:Object(h.c)(t.firstName,t.lastName)}),i=new p.c(C,a,y.search);switch(_&&i.withExplicitTeam({currentTeamId:n.id,explicitTeamId:n.id}),A){case"reply":T(i.reply().build());break;case"replyAll":T(i.replyAll().build());break;case"forward":T(i.forward().build());break;case"resend":T(i.resend().build());break;case"resendAsNew":T(i.resendAsNew().build())}}))}),[C,O,t,n,w,A,T,y.search,k,N,_]),Object(g.a)(w,(function(e){return Object(a.jsx)("div",{className:"v-new-message-container c-layout",children:E?Object(a.jsx)(c.b,{spinner:c.a,fadeIn:"quarter"}):Object(a.jsx)(b.a,{explanation:"Invalid follow-up action.",darkMode:!0})})}))}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return MessageSwipeableItemBlock}));var r=n(0),a=n(9),i=n(27),o=n(55),c=n(1),s=n(28),l=n(22),u=n(4),d=n(21),b=n(887),p=n(236),m=n(12),h=n(276),g={Content:m.b.div.withConfig({displayName:"swipe-content__Content",componentId:"vw16vd-0"})(["background-color:",";"," position:absolute;width:100%;height:100%;display:flex;align-items:center;transition:opacity ","s linear,background-color ","s ease-out;opacity:",";justify-content:",";transform:translateX( "," );&.enter,&.enter-done{opacity:1;}box-shadow:0 1px 2px var(--dropshadow-25),0 0 2px var(--dropshadow-25);"],(function(e){return e.bgColor}),(function(e){return e.thresholdCrossed?"color: var(--white);":""}),(function(e){return e.swiped?.2:0}),.2,(function(e){return e.isSwiping?1:0}),(function(e){return"right"===e.swipeDirection?"flex-end":"flex-start"}),(function(e){return"left"===e.swipeDirection?"100%":"-100%"})),Item:m.b.div.withConfig({displayName:"swipe-content__Item",componentId:"vw16vd-1"})(["display:flex;flex-flow:column;align-items:center;text-align:center;"])},j=function SwipeContent(e){return Object(r.jsx)(h.a,{timeout:0,in:e.isSwiping,children:Object(r.jsx)(g.Content,{swipeDirection:e.swipeDirection,bgColor:e.bgColor,isSwiping:e.isSwiping,swiped:e.swiped,thresholdCrossed:e.thresholdCrossed,children:Object(r.jsx)(g.Item,{children:Object(r.jsx)(p.a,{buttonText:e.label,iconGlyph:e.icon})})})})};function SwipeableItem(e){var t=e.children,n=e.swipeLeft,a=e.swipeRight,i=c.useState({isSwiping:!1,dragX:0,direction:"",swiped:!1}),o=Object(d.a)(i,2),s=o[0],l=o[1],p=Object(c.useRef)(null),m=c.useState(0),h=Object(d.a)(m,2),g=h[0],v=h[1],O=c.useState(!1),T=Object(d.a)(O,2),y=T[0],S=T[1],C=c.useState(!1),A=Object(d.a)(C,2),E=A[0],w=A[1],_=c.useState(!1),I=Object(d.a)(_,2),x=I[0],k=I[1];Object(c.useEffect)((function(){p.current&&v(p.current.offsetWidth)}),[p]);var N=Object(b.a)({onSwiped:function onSwiped(e){"Right"!==e.dir&&"Left"!==e.dir||R(F(e.dir),e.dir,e.absX)},onSwiping:function onSwiping(e){if(("Right"===e.dir||"Left"===e.dir)&&!function isAtBoundary(e){return e.initial[0]<=40}(e)){if(e.event.preventDefault(),!y&&!e.first)return;!y&&e.first&&S(!0),k(e.absX>.3*g),l({isSwiping:!0,dragX:e.absX,direction:e.dir,swiped:!1})}},trackMouse:!0,trackTouch:!0,delta:40}),R=function _onSwiped(e,t,n){M({direction:t,triggerAction:s.isSwiping&&n>.3*g,swipeHandle:e})},F=function getSwipeHandle(e){return"Right"===e?a:n},M=function playAnimation(e){var t=e.direction,n=e.triggerAction,r=e.swipeHandle;l({isSwiping:!1,dragX:r.removeAnimation&&n?g:0,direction:t,swiped:!0}),n&&!r.removeAnimation&&r.action(),r.removeAnimation&&n&&w(!0),S(!1),k(!1)},D=Math.min(g,s.dragX),L={transition:"all ".concat(s.swiped?.2:0,"s linear"),display:"flex",transform:"translateX(".concat("Right"===s.direction?"".concat(D,"px"):"-".concat(D,"px"),") scaleY(").concat(s.swiped&&E?0:1,")"),opacity:s.swiped&&E?"0":"1",transformOrigin:"top"};return Object(r.jsx)("div",Object(u.a)(Object(u.a)({},N),{},{onTransitionEnd:function onTransitionEnd(e){return function onTransitionEnd(e){"transform"!==e.propertyName||!E||"Right"!==s.direction&&"Left"!==s.direction||(F(s.direction).action(),w(!1))}(e)},children:Object(r.jsxs)("div",{ref:p,style:L,children:[Object(r.jsx)(j,{icon:n.content.icon,label:n.content.label,swipeDirection:n.content.swipeDirection,bgColor:x?n.content.thresholdBg:n.content.bgColor,isSwiping:s.isSwiping,swiped:s.swiped,thresholdCrossed:x}),t,Object(r.jsx)(j,{icon:a.content.icon,label:a.content.label,swipeDirection:a.content.swipeDirection,bgColor:x?a.content.thresholdBg:a.content.bgColor,isSwiping:s.isSwiping,swiped:s.swiped,thresholdCrossed:x})]})}))}function MessageSwipeableItemBlock(e){var t=Object(s.useDispatch)(),n=Object(l.g)(),c=e.message,u=e.children,d=e.currentUserId,b=c.assignment.some((function(e){return e.assignedToUserId===d}));return Object(r.jsx)(SwipeableItem,{swipeRight:{content:{icon:Object(a.e)(a.c.ARCHIVE),label:"Archive",swipeDirection:"right",bgColor:"var(--background-2)",thresholdBg:"var(--background-3)"},action:function action(){return t(i.rb.withUndo([c.meta.id],n.search,(function(){return t(i.ub.withNotification([c.meta.id],n.search,!0))}),!0))},removeAnimation:!0},swipeLeft:{content:{icon:Object(a.e)(b?a.c.UNFOLLOW:a.c.FOLLOW),label:b?"UnFollow":"Follow",swipeDirection:"left",bgColor:"var(--yellow-20)",thresholdBg:"var(--yellow)"},action:function action(){return b?function unFollowMessage(){t(new o.O(c.meta.id,[d]))}():t(new o.F(c.meta.id,[d],d))},removeAnimation:!1},children:u})}},,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return withChevron})),n.d(t,"b",(function(){return getDefaultSortColumns})),n.d(t,"a",(function(){return table_Table}));var r=n(4),a=n(21),i=n(23),o=n(0),c=n(24),s=n.n(c),l=n(1),u=n.n(l),d=n(433),b=n(19),p=n(9),m=n(12),h=n(897),g=n.n(h),j=n(248),v=(n(1305),n(1462));function GlobalFilter(e){var t=e.globalFilter,n=e.setGlobalFilter,r=e.placeholder,i=u.a.useState(t),c=Object(a.a)(i,2),s=c[0],l=c[1];return Object(o.jsxs)("div",{className:"c-settings-filter-box",children:[Object(o.jsx)(b.a,{glyph:Object(p.e)(p.c.SEARCH)}),Object(o.jsx)(v.a,{className:"c-settings-filter-box__input",type:"text",placeholder:r,value:s||"",onChange:function onChange(e){l(e.target.value),n(e.target.value)},disabled:!1})]})}var O=n(895);n(1306);var T=function EmptyTable(e){return Object(o.jsxs)("div",{className:"c-settings-table-empty",children:[Object(o.jsx)("p",{className:"c-settings-table-empty__icon",children:Object(o.jsx)(b.a,{glyph:Object(p.e)(e.icon),size:"xlarge"})}),Object(o.jsx)("p",{className:"c-settings-table-empty__text",children:e.text})]})},y=n(870),S=m.b.div.withConfig({displayName:"table__TableWrapper",componentId:"bybzop-0"})(["position:relative;display:flex;overflow-y:scroll;",""],(function(e){return e.inModal&&"max-height: 50vh;"})),C=Object(m.b)(g.a).withConfig({displayName:"table__TableS",componentId:"bybzop-1"})(["margin-bottom:0;border-collapse:separate;border-spacing:0 calc(var(--spacing-2) / 2);th,td{padding:var(--spacing-3);}"," ",""],(function(e){return e.striped&&"tbody tr:nth-of-type(odd) {\n        background-color: var(--background-1);\n      }\n    "}),(function(e){return e.striped&&e.hover&&"tbody tr:nth-of-type(odd):hover {\n        background-color: var(--background-shade) !important;\n      }\n    "})),A=m.b.thead.withConfig({displayName:"table__Thead",componentId:"bybzop-2"})(["th{position:sticky;top:0;background-color:var(--white);font-weight:var(--fw-semi);cursor:pointer;line-height:22px;",' &:after{content:"";position:absolute;left:0;bottom:0;width:100%;border-bottom:var(--bw1) solid var(--border-shade);}}.header-active{color:var(--action-70);}'],(function(e){return e.inModal&&"z-index: var(--usurper-layer);"})),E=m.b.tr.withConfig({displayName:"table__Tr",componentId:"bybzop-3"})(["td:first-child{border-top-left-radius:var(--br1);border-bottom-left-radius:var(--br1);}td:last-child{border-top-right-radius:var(--br1);border-bottom-right-radius:var(--br1);}"," "," td.vertical-align-middle{vertical-align:middle;}"],(function(e){return e.selected?"background-color: var(--action-10) !important;":"background-color: var(--white);"}),(function(e){return e.hover&&"\n    cursor: pointer;\n    td:last-child {\n      color: var(--text-2);\n    }\n    "})),w=function selectionHook(e,t){return function(n){e&&(n.allColumns=[].concat(Object(i.a)(n.allColumns),[function(e){return[{id:"_selector",minWidth:45,width:45,maxWidth:45,Header:function Header(e){var t=(0,e.getToggleAllRowsSelectedProps)(),n=t.checked,r=t.onChange;return Object(o.jsx)(j.a,{onChange:function onChange(e){return null===r||void 0===r?void 0:r(e)},id:"td-select-all",isChecked:!!n,children:Object(o.jsx)(o.Fragment,{})})},Cell:function Cell(e){var n=e.row;if(t(n)){var r=n.getToggleRowSelectedProps(),a=r.checked,i=r.onChange;return Object(o.jsx)(j.a,{onChange:function onChange(e){return null===i||void 0===i?void 0:i(e)},id:"td-select-".concat(n.id),isChecked:!!a,isDisabled:!t(n),testId:"td-select-".concat(n.id),children:Object(o.jsx)(o.Fragment,{})})}return Object(o.jsx)(o.Fragment,{})}}].concat(Object(i.a)(e))}]))}},_={Cell:function Cell(e){return e.value},Header:function Header(e){return e.column.id}},I={fuzzyText:function fuzzyTextFilter(e,t,n){return Object(O.a)(e,n,{keys:[function(e){return e.values[t]}]})}};function withChevron(e){return[].concat(Object(i.a)(e),[{Header:"",id:"chevron",Cell:function Cell(){return Object(o.jsx)(b.a,{glyph:Object(p.e)(p.c.CHEVRON_RIGHT)})},disableGlobalFilter:!0,disableSortBy:!0}])}function getDefaultSortColumns(e,t){return e.filter((function(e){return!!e.id&&t.includes(e.id)})).map((function(e){return{id:e.id}}))}function table_Table(e){var t,n,i,c=e.columns,u=e.onClick,m=e.autoResetGlobalFilter,h=Object(l.useState)(null!==(t=e.initialState)&&void 0!==t?t:{}),g=Object(a.a)(h,2),j=g[0],v=g[1],O=null!==(n=e.canSelectRow)&&void 0!==n?n:function(){return!0},x=d.useTable.apply(void 0,[Object(r.a)(Object(r.a)(Object(r.a)({},e),{manualRowSelectedKey:"isSelectedOverride",autoResetSelectedRows:!1}),{},{columns:c,filterTypes:I,defaultColumn:_,initialState:j,autoResetGlobalFilter:void 0===m||m,sortTypes:{caseInsensitiveString:y.a}})].concat([d.useGlobalFilter,d.useSortBy,d.useRowSelect,w(e.selectSubRows,O)])),k=x.getTableProps,N=x.headerGroups,R=x.getTableBodyProps,F=x.rows,M=x.prepareRow,D=x.state,L=x.preGlobalFilteredRows,P=x.setGlobalFilter;Object(l.useEffect)((function(){var e=D.sortBy,t=D.filters;v({sortBy:e,filters:t})}),[v,D]);var U=function cellClickHandler(e){return function(){u&&"_selector"!==e.column.id&&u(e.row)}};return Object(d.useMountedLayoutEffect)((function(){var t;null===(t=e.onSelectedRowsChange)||void 0===t||t.call(e,D.selectedRowIds)}),[e.onSelectedRowsChange,D.selectedRowIds]),Object(o.jsxs)(o.Fragment,{children:[e.searchable&&Object(o.jsxs)("div",{className:"u-flex u-flex-shrink-0 u-items-center u-mb-lg",children:[Object(o.jsx)(GlobalFilter,{preGlobalFilteredRows:L,globalFilter:D.globalFilter,setGlobalFilter:P,placeholder:null!==(i=e.globalFilterPlaceholder)&&void 0!==i?i:""}),e.children]}),Object(o.jsxs)(S,{inModal:!!e.inModal,children:[0===F.length&&!e.hideWhenEmpty&&Object(o.jsx)(T,Object(r.a)({},e.emptyTableProps)),F.length>0&&Object(o.jsxs)(C,Object(r.a)(Object(r.a)({},k()),{},{striped:!0,borderless:!0,hover:!!e.onClick,children:[Object(o.jsx)(A,{inModal:!!e.inModal,children:N.map((function(e){return Object(o.jsx)("tr",Object(r.a)(Object(r.a)({},e.getHeaderGroupProps()),{},{children:e.headers.map((function(e){var t=Object(r.a)({textAlign:e.align?e.align:"left "},e.canSort?{paddingRight:e.isSorted?"0px":"18px"}:{});return Object(o.jsxs)("th",Object(r.a)(Object(r.a)(Object(r.a)({},e.getHeaderProps()),e.canSort?e.getSortByToggleProps():{}),{},{className:s()({"header-active":e.isSorted}),"data-testid":"th-".concat(e.id),style:t,children:[e.isSorted&&Object(o.jsx)(b.a,{glyph:Object(p.e)(e.isSortedDesc?p.c.ARROW_UP:p.c.ARROW_DOWN),size:"small"}),e.render("Header")]}))}))}))}))}),Object(o.jsx)("tbody",Object(r.a)(Object(r.a)({},R()),{},{children:F.map((function(t){return M(t),Object(o.jsx)(E,Object(r.a)(Object(r.a)({},t.getRowProps()),{},{className:s()({rowSelected:O(t)&&t.isSelected}),selected:O(t)&&!!D.selectedRowIds[t.id],hover:!!e.onClick,children:t.cells.map((function(e){return Object(o.jsx)("td",Object(r.a)(Object(r.a)({className:"vertical-align-middle"},e.getCellProps()),{},{onClick:U(e),"data-testid":"td-".concat(e.column.id),children:e.render("Cell")}))}))}))}))}))]}))]})]})}table_Table.defaultProps={searchable:!0}},,function(e,t,n){"use strict";var r=n(0);n(1265);t.a=function SettingsPanel(e){var t=e.children;return Object(r.jsx)("div",{className:"c-settings-panel",children:t})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n(92),i=n(12),o=n(248),c=n(141),s={Container:i.b.div.withConfig({displayName:"checkbox-field__Container",componentId:"uvezsd-0"})(["display:flex;"])},l=function CheckboxField(e){var t;return Object(r.jsx)(a.a,{name:e.fieldName,component:"input",type:"checkbox",value:e.value,initialValue:null!==(t=e.value)&&void 0!==t?t:e.initialValue,children:function children(t){var n,a,i,l,u=t.input,d=e.value?"".concat(e.fieldName,"--").concat(e.value):e.fieldName;return Object(r.jsxs)(s.Container,{children:[Object(r.jsx)(o.a,{isChecked:null!==(n=u.checked)&&void 0!==n&&n,id:null!==(a=e.id)&&void 0!==a?a:d,onChange:u.onChange,isDisabled:e.disabled,testId:null!==(i=e.testId)&&void 0!==i?i:"".concat(e.fieldName,"-checkbox-field"),value:e.value,fieldName:e.fieldName}),Object(r.jsx)(c.a,{label:e.label,name:null!==(l=e.id)&&void 0!==l?l:d,helpText:e.description})]})}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),a=(n(1),n(12)),i={Header:a.b.header.withConfig({displayName:"page-header-v2__Header",componentId:"sc-77q1hb-0"})(["height:calc(var(--spacing-3) * 2 + var(--spacing-3) * 2 + var(--icon-md));width:100%;display:flex;align-items:center;justify-content:space-between;background-color:var(--white);border-bottom:1px solid var(--border-shade);--icon-button-text:var(--button-link-text);--icon-button-hover-text:var(--button-link-text);"]),GroupLeft:a.b.div.withConfig({displayName:"page-header-v2__GroupLeft",componentId:"sc-77q1hb-1"})(["flex:1 1 0;margin:0 0 0 var(--spacing-5);padding:var(--spacing-3) 0;height:100%;display:flex;align-items:center;justify-content:flex-start;& > *{margin:0 var(--spacing-2);}"]),GroupRight:a.b.div.withConfig({displayName:"page-header-v2__GroupRight",componentId:"sc-77q1hb-2"})(["flex:1 1 0;margin:0 var(--spacing-5) 0 0;padding:var(--spacing-3) 0;height:100%;display:flex;align-items:center;justify-content:flex-end;& > *{margin:0 var(--spacing-2);}"]),GroupCenter:a.b.div.withConfig({displayName:"page-header-v2__GroupCenter",componentId:"sc-77q1hb-3"})(["width:auto;overflow:hidden;display:flex;justify-content:center;"]),Divider:a.b.div.withConfig({displayName:"page-header-v2__Divider",componentId:"sc-77q1hb-4"})(["height:100%;width:1px;background-color:var(--border-shade);"])},o=i.Divider;t.b=function PageHeader(e){return Object(r.jsxs)(i.Header,{className:e.className,children:[Object(r.jsx)(i.GroupLeft,{children:e.leftGroup}),Object(r.jsx)(i.GroupRight,{children:e.rightGroup})]})}},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return b}));var r=n(0),a=n(212),i=n(12),o=n(531),c=i.b.div.withConfig({displayName:"avatar-with-text__Container",componentId:"k57w0-0"})(["display:flex;flex-direction:row;justify-content:left;align-items:center;"]),s=i.b.div.withConfig({displayName:"avatar-with-text__TextContainer",componentId:"k57w0-1"})(["display:flex;flex-direction:column;justify-content:center;"]),l=i.b.div.withConfig({displayName:"avatar-with-text__AvatarContainer",componentId:"k57w0-2"})(["margin-right:var(--spacing-3);"]),u=i.b.span.withConfig({displayName:"avatar-with-text__PrimaryText",componentId:"k57w0-3"})(["font-size:var(--fs);"]),d=i.b.span.withConfig({displayName:"avatar-with-text__SecondaryText",componentId:"k57w0-4"})(["align-self:flex-start;font-size:var(--fs-sm);color:var(--text-2);"]),b=function AvatarWithText(e){var t,n;return Object(r.jsxs)(c,{children:[Object(r.jsx)(l,{children:Object(r.jsx)(a.a,{text:e.initials,type:e.avatarType,size:"m"})}),Object(r.jsxs)(s,{children:[Object(r.jsxs)(u,{children:[e.primaryText," ",e.badgeText&&Object(r.jsx)(o.a,{text:e.badgeText,textColor:null!==(t=e.badgeTextColor)&&void 0!==t?t:"var(--white)",backgroundColor:null!==(n=e.badgeBackgroundColor)&&void 0!==n?n:"var(--person-tag)"})]}),e.secondaryText&&Object(r.jsx)(d,{children:e.secondaryText})]})]})}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(90),u="\n  <style>\n    * {\n      max-width: ".concat(window.innerWidth-56,"px !important;\n      padding-left: 0 !important;\n      padding-right: 0 !important;\n      margin-left: 0 !important;\n      margin-right: 0!important;\n    }\n    blockquote { padding-left: 4px !important; }\n\n    @media print {\n      * {\n        max-width: 100% !important;\n      }\n    }\n  </style>\n"),d='\n  <style>\n  /**\n   * This CSS file represents what styles should be in the P2 message viewer.\n   *\n   * All other relevant changes must be applied to the node p2 baked in styles file and the editor.\n   *\n   * Changes to this file that come from JIRA:\n   * - SED-4681\n   * - SED-4215\n   * - SED-4971\n   * - SED-5047\n   * - SED-5408\n   * - SED-5801\n   */\n    span[style~="color:"] a {\n        color: inherit;\n    }\n\n    strong {\n        font-weight: 700;\n    }\n\n    table {\n        border: none;\n        border-collapse: collapse;\n        empty-cells: show;\n        max-width: 100%;\n        overflow-wrap: break-word;\n        word-break: break-word;\n    }\n\n    table td {\n        min-width: 5px;\n    }\n\n    table td:empty, table th:empty {\n        height: 20px;\n    }\n\n    table th {\n        background: #e6e6e6;\n    }\n\n    hr {\n        clear: both;\n        user-select: none;\n        -o-user-select: none;\n        -moz-user-select: none;\n        -khtml-user-select: none;\n        -webkit-user-select: none;\n        -ms-user-select: none;\n        break-after: avoid;\n    }\n\n    pre {\n        white-space: pre-wrap;\n        word-wrap: break-word;\n        overflow: visible;\n        overflow-wrap: break-word;\n    }\n\n    [dir="rtl"] blockquote {\n        border-left: none;\n        border-right: solid 2px #aeb8b7;\n        margin-right: 0;\n        padding-right: 5px;\n        padding-left: 0px;\n    }\n\n    blockquote {\n        border-left: solid 2px #aeb8b7;\n        margin-left: 0;\n        padding-left: 5px;\n        margin-right: 0px;\n    }\n\n    img {\n        position: relative;\n        max-width: 100%;\n        object-fit: scale-down;\n    }\n\n    {\n      font-family: "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,\n        "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",\n        "Segoe UI Symbol", "Noto Color Emoji", \u5fae\u8f6f\u96c5\u9ed1, "Microsoft YaHei New",\n        "Microsoft Yahei", "PingFang TC", \u5b8b\u4f53, SimSun, SimHei, DengXian;\n      font-size: 11pt;\n      word-break: break-word;\n      overflow-wrap: break-word;\n    }\n    pre {\n      display: block;\n      margin-top: 0px;\n      /* override rem based units that are baked into the style attributes of outbound messages */\n      margin-bottom: 1.75rem !important;\n      font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",\n        "Courier New", monospace;\n      font-size: 10pt !important;\n      color: rgb(33, 37, 41);\n    }\n    h1,\n    h2,\n    h3,\n    h4,\n    h5,\n    h6 {\n    /* override rem based units that are baked into the style attributes of outbound messages */\n      margin-bottom: 1rem !important;\n      font-family: inherit;\n      font-weight: 500;\n      line-height: 1.1;\n      color: inherit;\n    }\n    h1 {\n      /* we use pt here so that we are consistent with the composer */\n      font-size: 26pt !important;\n    }\n    h2 {\n      font-size: 22pt !important;\n    }\n    h3 {\n      font-size: 18pt !important;\n    }\n    h4 {\n      font-size: 16pt !important;\n    }\n    h5 {\n      font-size: 14pt !important;\n    }\n    h6 {\n      font-size: 11pt !important;\n    }\n    div,\n    p {\n      /* this will not override any span children that have a different font-size */\n      font-size: 11pt !important;\n    }\n    [data-sedna-block="lite-cta"] {\n      display: none;\n    }\n  </style>\n',b=function(e){Object(i.a)(MessageContentFromHtml,e);var t=Object(o.a)(MessageContentFromHtml);function MessageContentFromHtml(){return Object(r.a)(this,MessageContentFromHtml),t.apply(this,arguments)}return Object(a.a)(MessageContentFromHtml,[{key:"componentDidMount",value:function componentDidMount(){var e=Object(l.findDOMNode)(this);if(null!==e&&e instanceof HTMLElement){var t=this.props.isMobile?this.props.bodyHtml+u+d:this.props.bodyHtml+d;"undefined"!==typeof Element.prototype.attachShadow?e.attachShadow({mode:"open"}).innerHTML=t:e.innerHTML=t}}},{key:"componentDidUpdate",value:function componentDidUpdate(e){if(e.bodyHtml!==this.props.bodyHtml){var t=Object(l.findDOMNode)(this);if(null!==t&&t instanceof HTMLElement){var n=this.props.isMobile?this.props.bodyHtml+u+d:this.props.bodyHtml+d;t.shadowRoot?t.shadowRoot.innerHTML=n:t.innerHTML=n}}}},{key:"render",value:function render(){var e,t=this;return Object(c.jsx)("div",{className:null!==(e=this.props.className)&&void 0!==e?e:void 0,onTouchMove:function onTouchMove(e){t.props.pullToRefresh&&e.currentTarget.parentElement&&t.props.pullToRefresh(e.currentTarget.parentElement.scrollTop)}})}}]),MessageContentFromHtml}(s.PureComponent)},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n(4),a=n(23),i=n(53),o=n(268),c=Object(i.createSlice)({name:"notification",initialState:[],reducers:{clearNotification:function clearNotification(e,t){return e.filter((function(e){return e.id!==t.payload.id}))},notify:function notify(e,t){var n;return[].concat(Object(a.a)(e),[Object(r.a)(Object(r.a)({},t.payload),{},{id:null!==(n=t.payload.id)&&void 0!==n?n:Object(o.a)()})])}}}),s=c.actions,l=s.clearNotification,u=s.notify;t.b=c.reducer},function(e,t,n){"use strict";n.d(t,"a",(function(){return ee}));var r=n(4),a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(22),u=n(1),d=n(28),b=n(40),p=n(2),m=n(50),h=n(546),g=n.n(h),j=n(48),v=n(26),O=n(87),T=n(63),y=n(327),S=n(17),C=n(125),A=n(314),E=n(95),w=n(330),_=n(38),I=n(137),x=n(44);function SuggestedFollowerTagsList(e){return Object(s.jsxs)("ul",{className:"u-list u-pl-sm u-mb-lg",children:[e.suggestedFollowers.map((function(t){return Object(s.jsx)("li",{className:"u-mb-sm",children:Object(s.jsx)(I.a,{"data-id":t.id,userFullName:Object(x.c)(t.firstName,t.lastName),state:"inactive",onClick:function onClick(){return e.addFollowers([t.id])}})},"f-".concat(t.id))})),e.suggestedFollowers.length>0&&Object(s.jsx)("li",{className:"u-mb-sm",children:Object(s.jsx)(I.a,{userFullName:"".concat(e.currentTeam.name," (").concat(e.suggestedFollowers.length,")"),state:"inactive",onClick:function onClick(){return e.addFollowers(e.suggestedFollowers.map((function(e){return e.id})))}})},"f-suggest-all-on-team")]})}var k=n(603),N=n(604),R=n(633),F=n(602);function AppliedFollowerTagsList(e){return Object(s.jsx)("ul",{className:"u-list u-pl-md u-mb-lg",children:e.followers.map((function(t){return Object(s.jsx)("li",{className:"u-mb-sm",children:Object(s.jsx)(I.a,{"data-id":t.id,userFullName:Object(x.c)(t.firstName,t.lastName),state:"active",onClick:e.isAuthor?function(){return e.removeFollower(e.topicId,t.id)}:b.a})},"f-"+t.id)}))})}var M=n(275),D=n(337),L=(n(817),n(413)),P=n(239),U=n(634),B=n(55),H=n(56),G=n(544),W=n(15),z=n(403),V=n(286),J=n(427),Y=n(107),q=n(93),K=n(29),X=n(127),Q=function(e){Object(o.a)(Container,e);var t=Object(c.a)(Container);function Container(){var e;Object(a.a)(this,Container);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).addFollowers=function(t){e.props.addFollowers(e.props.match.params.id,t,e.props.location)},e.goToActivityTab=function(){e.props.goToActivityTab(e.props.match.params.id,e.props.location,e.props.isCompose)},e.goToTagsTab=function(){e.props.goToTagsTab(e.props.match.params.id,e.props.location,e.props.isCompose)},e.categorizeTopic=function(t,n,r){e.props.categorizeTopic(t,e.props.match.params.id,n,r)},e.decategorizeTopic=function(t,n){e.props.decategorizeTopic(e.props.match.params.id,t,n)},e.addJobReference=function(t,n,r){e.props.addJobReference(t,e.props.match.params.id,n,r)},e.removeJobReference=function(t,n){e.props.removeJobReference(e.props.match.params.id,t,n)},e.searchJobReference=function(t){return e.props.searchJobReference(t,e.props.location,e.props.currentUser)},e.isFavouriteCategoryTag=function(t){return Object(P.c)(_.a.topic,e.props.availableFavouriteCategoryTags.orElse([]),t)},e.addFavouriteFromMeta=function(t){var n=Object(P.b)(_.a.topic,e.props.categoryTags,t);n&&e.props.addFavourite(n)},e.removeFavouriteFromMeta=function(t){var n=Object(P.b)(_.a.topic,e.props.availableFavouriteCategoryTags.orElse([]),t);n&&e.props.removeFavourite(n)},e.isAvailable=function(t){var n=e.props.categoryTags;return Object(P.c)(_.a.topic,n,t)},e.searchJobreferenceTags=function(t){var n=e.props.explicitTeamTokenEnabled?[e.props.currentUser.teamId]:[];e.props.searchJobReferencesByMatchScore(t,n)},e}return Object(i.a)(Container,[{key:"componentDidMount",value:function componentDidMount(){this.requestTopic(this.props)}},{key:"render",value:function render(){var e=this,t=this.props,n=t.isCompose,r=t.isMobile,a=t.featureFlags,i=t.isAuthor,o=r&&n?this.props.toggleSidebar:void 0,c=this.props.followers.orElse([]).sort(Object(T.a)((function(e){return Object(x.c)(e.firstName,e.lastName)}))),l=this.props.appliedJobReferences.orElse([]).sort(Object(T.a)((function(e){return e.label}))),u=this.props.appliedCategoryTags.orElse([]).sort(Object(T.a)((function(e){return e.label}))),d=this.props.availableFavouriteCategoryTags.orElse([]).sort(Object(T.a)((function(e){return e.label}))),h=c.length>0&&!this.props.hideUserAssigments||l.length>0||u.length>0,j=this.getSuggestedFollowers(),v=Object(M.c)(l,this.props.suggestedJobReferenceTags.orElse([])),O=Object(M.b)(_.a.topic,this.props.categoryTags,u,this.props.suggestedCategoryTags.orElse([]),this.props.availableFavouriteCategoryTags.orElse([]),a.SUGGEST_CATEGORY_AND_ASSIGNMENT_TAGS),S=Object(P.a)(_.a.topic,this.props.availableFavouriteCategoryTags.orElse([]),this.props.appliedCategoryTags.orElse([])),C=d.length!==p.h(this.props.allFavouriteCategoryTags).length,A=i&&j.length>0||v.length>0||O.length>0||S.length>0,E=Object(s.jsxs)(y.a,{activeTab:"followers",newActivityItems:this.props.newComments,toggleActivity:this.goToActivityTab,toggleTags:this.goToTagsTab,toggleSidebar:o,paneTitle:"Tags",isDark:!this.props.isDark,children:[Object(s.jsx)(J.a,{type:J.b.TOPIC,id:this.props.match.params.id}),Object(s.jsxs)("div",{className:"c-tags-pane u-pt-md",children:[Object(s.jsxs)("div",{className:"c-tags-pane__content",onTouchMove:function onTouchMove(t){var n,r;null===(n=(r=e.props).pullToRefresh)||void 0===n||n.call(r,t.currentTarget.scrollTop)},children:[!this.props.followers.isPresent()&&Object(s.jsx)("div",{className:"loading",children:Object(s.jsx)(g.a,{name:m.a,fadeIn:"quarter"})}),h&&Object(s.jsxs)(D.a,{paneTitle:"Selected",sectionKey:"applied-tags",children:[c.length>0&&!this.props.hideUserAssigments&&Object(s.jsx)(AppliedFollowerTagsList,{followers:this.props.followers.orElse([]),topicId:this.props.topicId,removeFollower:this.props.removeFollower,isAuthor:i}),l.length>0&&Object(s.jsx)(R.a,{appliedJobReferenceTags:l,isCompose:n,removeJobReference:this.removeJobReference,goToJobReferenceSearch:this.searchJobReference,featureFlags:this.props.featureFlags,myMessageTagIds:this.props.myMessageTagIds,unsubscribeJobReference:this.props.unsubscribeJobReference,currentUser:this.props.currentUser,subscribeJobReference:this.props.subscribeJobReference}),u.length>0&&Object(s.jsx)(F.a,{isTouchScreen:H.b,isAvailable:this.isAvailable,addFavourite:this.addFavouriteFromMeta,removeFavourite:this.removeFavouriteFromMeta,appliedCategoryTags:u,decategorizeItem:this.decategorizeTopic,isCompose:n,isFavourite:this.isFavouriteCategoryTag})]}),A&&Object(s.jsxs)(D.a,{paneTitle:"Suggested",sectionKey:"suggested-tags",className:"u-dn-p",children:[i&&j.length>0&&!this.props.hideUserAssigments&&Object(s.jsx)("div",{className:"u-pa-sm",children:Object(s.jsx)(SuggestedFollowerTagsList,{suggestedFollowers:j,currentTeam:this.props.currentTeam,addFollowers:this.addFollowers})}),v.length>0&&Object(s.jsx)("div",{className:"u-pa-sm",children:Object(s.jsx)(k.a,{suggestedJobReferenceTags:v,addJobReference:this.addJobReference})}),Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)("h4",{className:"u-fs-md u-mb-md u-pl-md",children:W.b.t(W.a.CATEGORY_TAG,{count:S.length+O.length})}),Object(s.jsx)("div",{className:"u-mb-md",children:Object(s.jsx)(D.a,{paneTitle:"Favourites",sectionKey:"favourite-tags",className:"u-dn-p",isSubSection:!0,hideTitle:0===S.length,children:Object(s.jsx)(U.a,{isTouchScreen:H.b,favouriteCategoryTags:S,categorizeItem:this.categorizeTopic,appliedCategoryTags:u,hasUnavailableFavourites:C,removeFavourite:this.props.removeFavourite,isFavourite:this.isFavouriteCategoryTag})})}),O.length>0&&Object(s.jsx)(N.a,{isTouchScreen:H.b,suggestedCategoryTags:O,categorizeItem:this.categorizeTopic,addFavourite:this.props.addFavourite})]})]})]}),Object(s.jsx)("div",{className:"c-tags-pane__footer",children:Object(s.jsx)(L.a,{className:"c-tag-search",parentItemType:_.a.topic,currentUser:this.props.currentUser,users:this.props.users,userToTeams:this.props.userToTeam,teams:this.props.teams,messageTeams:[],appliedMessageAssignments:[],appliedTopicFollowers:i?this.props.followers.orElse([]):[],suggestUsers:i&&!this.props.hideUserAssigments,addPersonTag:b.a,addFollowers:this.addFollowers,appliedCategoryTags:u,categoryTags:this.props.categoryTags,categorize:this.categorizeTopic,appliedJobReferenceTags:l,jobReferences:this.props.jobReferences,addJobReference:this.addJobReference,myMessageTagIds:new Set,jobReferencesSearch:this.props.jobReferencesSearch,searchJobReferences:this.searchJobreferenceTags,partialAutoSuggest:a.PARTIAL_AUTO_SUGGEST,pullToRefresh:this.props.pullToRefresh,trackEvent:this.trackEvent})})]})]});return this.props.isMobile?Object(G.a)(this.props.body,(function(){return E})):this.props.body.map((function(){return E})).orElse(Object(s.jsx)(s.Fragment,{}))}},{key:"trackEvent",value:function trackEvent(){this.props.trackEvent("Search","Search - N_Composer: Tag Pane Search")}},{key:"requestTopic",value:function requestTopic(e){var t=e.topicId,n=e.body,r=e.fetchTopicBody;n.isNotLoading()&&r(t)}},{key:"getNonFollowingUsers",value:function getNonFollowingUsers(e){var t,n=this;e=null!==(t=e)&&void 0!==t?t:this.props.followers.orElse([]);var r=new Set(e.map((function(e){return e.id})));return this.props.users.filter((function(e){return e.id!==n.props.currentUser.id&&!e.deletedAt&&!r.has(e.id)}))}},{key:"getSuggestedFollowers",value:function getSuggestedFollowers(){var e=this;return this.getNonFollowingUsers().filter((function(t){return e.props.usersInActiveTeam.has(t.id)})).sort(Object(T.a)((function(e){return Object(x.c)(e.firstName,e.lastName)})))}}]),Container}(u.PureComponent),Z=Object(v.b)([function(e,t){return Object(O.o)(e)},function(e,t){return Object(O.p)(e)},function(e,t){return p.h(e.entities.team)},function(e,t){var n=p.g(e.entities.topic,t.match.params.id),r=n.map((function(e){return e.relationships.author.data.id===t.currentUser.id})).orElse(!1),a=p.m(n.map((function(e){return e.relationships.follower.data.filter((function(t){return t.id!==e.relationships.author.data.id}))})),(function(t){return p.g(e.entities.user,t.id)})),i=n.map((function(e){return Object(A.a)(e)})).orElse(0);return{topicId:t.match.params.id,isAuthor:r,followers:a,newComments:i}},function(e,t){return p.g(e.entities.topicBody,t.match.params.id)},function(e,t){return e.ui.featureFlags},function(e,t){return Object(O.q)(e,t.currentTeam.id)},function(e,t){var n=Object(O.l)(e,t.match.params.id);return{categoryTags:V.a.topic(e,t.match.params.id),appliedCategoryTags:n,suggestedCategoryTags:Object(O.j)(e,t.match.params.id),availableFavouriteCategoryTags:Object(O.b)(e),allFavouriteCategoryTags:e.entities.favouriteCategoryTag}},function(e,t){return{jobReferences:z.a.topic(e,t.match.params.id),appliedJobReferences:Object(O.m)(e,t.match.params.id),suggestedJobReferences:Object(O.n)(e,t.match.params.id)}},function(e,t){return p.g(e.entities.jobReferenceSearch,w.a)},q.a,function(e,t){return p.g(e.entities.userConfig,p.a).map((function(e){return e.myMessageTagIds})).orElse(new Set)}],(function(e,t,n,r,a,i,o,c,s,l,u,d){var b=r.topicId,p=r.isAuthor,m=r.followers,h=r.newComments;return{topicId:b,body:a,isAuthor:p,users:e,userToTeam:t,teams:n,followers:m,usersInActiveTeam:new Set(o),featureFlags:i,newComments:h,jobReferencesSearch:l,jobReferences:s.jobReferences,suggestedJobReferenceTags:s.suggestedJobReferences,appliedJobReferences:s.appliedJobReferences,categoryTags:c.categoryTags,availableFavouriteCategoryTags:c.availableFavouriteCategoryTags,allFavouriteCategoryTags:c.allFavouriteCategoryTags,suggestedCategoryTags:c.suggestedCategoryTags,appliedCategoryTags:c.appliedCategoryTags,explicitTeamTokenEnabled:u,myMessageTagIds:d}})),$={trackEvent:function trackEvent(e,t){return new K.a(e,t)},fetchTopicBody:function fetchTopicBody(e){return new j.B(e)},addFollowers:function addFollowers(e,t,n){return new j.F(e,t,n.search)},removeFollower:function removeFollower(e,t){return new j.J(e,t)},goToTagsTab:function goToTagsTab(e,t,n){return Object(C.e)(Object(r.a)(Object(r.a)({},t),{},{pathname:n?S.a.COMPOSE_TOPIC_FOLLOWERS(e):S.a.TOPIC_FOLLOWERS(e)}))},goToActivityTab:function goToActivityTab(e,t,n){return Object(C.e)(Object(r.a)(Object(r.a)({},t),{},{pathname:n?S.a.COMPOSE_TOPIC_ACTIVITY(e):S.a.TOPIC_ACTIVITY(e)}))},categorizeTopic:function categorizeTopic(e,t,n,r){return new j.G(e,t,n,r)},decategorizeTopic:function decategorizeTopic(e,t,n){return new j.H(e,t,n)},addJobReference:function addJobReference(e,t,n,r){return new j.U(e,t,n,r)},removeJobReference:function removeJobReference(e,t,n){return new j.V(e,t,n)},searchJobReferencesByMatchScore:function searchJobReferencesByMatchScore(e,t){return new E.o(w.a,e,t)},searchJobReference:function searchJobReference(e,t,n){return new Y.c(e,t,n)},addFavourite:function addFavourite(e){return new B.D(e,"Note")},removeFavourite:function removeFavourite(e){return new B.L(e.id,"Note")},unsubscribeJobReference:function unsubscribeJobReference(e,t,n,r,a){return new X.k(t,e.id,n,r,a)},subscribeJobReference:function subscribeJobReference(e,t,n,r){return new X.h(t,e.id,n,r)}},ee=Object(l.j)(Object(d.connect)(Z,$)(Q))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),a=n(1),i=n(92),o=n(141),c=n(4),s={TextArea:n(12).b.textarea.withConfig({displayName:"text-area__TextArea",componentId:"sc-8k94rn-0"})(["display:block;padding:var(--spacing-2) var(--spacing-3);background-color:var(--input-background-default);border-radius:var(--br1);border:1px solid var(--border-1);width:100%;color:var(--text-2);outline:none;transition:border-color 150ms ease-in-out,box-shadow 150ms ease-in-out;"," "," "," ",""],(function(e){return e.$minLines&&"\n        min-height: calc(var(--spacing-2) * 2 + ".concat(e.$minLines," * (var(--fs) + 0.5rem));\n      ")}),(function(e){return e.disabled&&"\n      color: var(--text-2);\n      background-color: var(--input-background-disabled);\n    "}),(function(e){return e.$invalid&&"\n      border-color: var(--danger);\n\n      &:focus,\n      &:active {\n        box-shadow: 0 0 0 1px var(--danger);\n      }\n    "}),(function(e){return!e.$invalid&&"\n      &:focus,\n      &:active {\n        border-color: var(--input-border-focus);\n      }\n    "}))},l=a.forwardRef((function(e,t){var n=e.value,a=e.placeholder,i=e.invalid,o=e.disabled,l=e.textAreaProps,u=e.onChange,d=e.onFocus,b=e.onBlur,p=e.name,m=e.id,h=e.testId,g=e.minLines;return Object(r.jsx)(s.TextArea,Object(c.a)(Object(c.a)({},l),{},{ref:t,id:m,name:p,value:n,placeholder:a,disabled:o,onChange:u,onFocus:d,onBlur:b,"data-testid":h,$invalid:i,$minLines:g}))})),u=a.forwardRef((function(e,t){return Object(r.jsx)(i.a,{name:e.fieldName,validate:e.validation,initialValue:e.initialValue,children:function children(n){var a,i,c,s=n.input,u=n.meta,d=!(!u.error&&!u.submitError||!u.touched)||!(u.touched||!e.error),b=u.error||u.submitError||e.error;return Object(r.jsx)(o.a,{label:e.label,name:null!==(a=e.id)&&void 0!==a?a:e.fieldName,error:d?b:void 0,helpText:e.helpText,"data-testid":"".concat(e.fieldName,"-text-area-field-wrapper"),children:Object(r.jsx)(l,{ref:t,name:s.fieldName,invalid:d,placeholder:e.placeholder,disabled:e.disabled,value:s.value,onChange:s.onChange,onFocus:s.onFocus,onBlur:s.onBlur,id:null!==(i=e.id)&&void 0!==i?i:e.fieldName,testId:null!==(c=e.testId)&&void 0!==c?c:"".concat(e.fieldName,"-text-area-field"),minLines:e.minLines,textAreaProps:e.textAreaProps})})}})}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return u}));var r,a=n(3),i=n(10),o=n(5),c=n(6),s=n(20),l=n(16);!function(e){e.GROUP="group",e.CONTACT="contact",e.TYPED="typed"}(r||(r={}));var u=function(e){Object(o.a)(ContactAutoCompleteApiAction,e);var t=Object(c.a)(ContactAutoCompleteApiAction);function ContactAutoCompleteApiAction(e){var n;return Object(a.a)(this,ContactAutoCompleteApiAction),(n=t.call(this)).query=e,n}return Object(i.a)(ContactAutoCompleteApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/contacts/autocomplete?query=").concat(this.query),method:l.c.GET}}},{key:"mapResponse",value:function mapResponse(e){var t=this;return e.results.map((function(e){if(e.hasOwnProperty("contacts")){var n=e;return{id:n.id.toString(),type:r.GROUP,name:n.name,contacts:n.contacts.map(t.toContactEntry)}}return t.toContactEntry(e)})).filter((function(e){return e.type===r.CONTACT?e.emails.length>0:e.contacts.some((function(e){return e.emails.length>0}))}))}},{key:"toContactEntry",value:function toContactEntry(e){var t=((e.firstName||"")+" "+(e.lastName||"")).trim();return{id:e.id.toString(),type:r.CONTACT,name:t,emails:e.emails.map((function(e){return e.trim()})),company:e.company,team:e.team,country:e.country}}}]),ContactAutoCompleteApiAction}(s.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(0),a=n(24),i=n.n(a),o=n(18),c=n(193),s=(n(1195),n(34)),l=n(12),u={SearchTokensList:l.b.ul.withConfig({displayName:"display-search-tokens__SearchTokensList",componentId:"sc-8ngpep-0"})(["padding:0 var(--spacing-3);list-style:none;"]),SearchTokenItem:l.b.li.withConfig({displayName:"display-search-tokens__SearchTokenItem",componentId:"sc-8ngpep-1"})(["z-index:var(--backdrop-layer);margin-bottom:var(--spacing-3);position:relative;&.c--not,&.c--or{margin-left:var(--spacing-6);margin-bottom:0;z-index:initial;.c-operator-tag{border-bottom-left-radius:0;border-bottom-right-radius:0;height:var(--icon-md);}}&.c--or{margin-top:calc(-1 * (var(--spacing-3) + var(--spacing-1)));.c-operator-tag{border-top-left-radius:0;border-top-right-radius:0;}}"])},d=function DisplaySearchTokens(e){var t=void 0!==e.shouldShowClearButton?e.shouldShowClearButton:e.tokens.length>1,n=function handleRemoveToken(t){return function(){return e.removeToken(t)}},a=function getDisableRemove(t){return function isOrTokenBetweenTeams(e,t){var n;if((null===(n=t[e])||void 0===n?void 0:n.type)!==o.S.OR)return!1;var r=t[e+1],a=t[e-1];return(r instanceof o.P||r instanceof o.c)&&(a instanceof o.P||a instanceof o.c)}(t,e.tokens)},l=function editToken(t){return function(){var n;return null===(n=e.editToken)||void 0===n?void 0:n.call(e,t)}};return e.isMobile?Object(r.jsxs)(r.Fragment,{children:[Object(r.jsxs)("div",{className:"u-flex u-justify-between u-pa-md",children:[Object(r.jsx)("div",{className:"u-fs-l u-fw-s u-mb-md",children:"Selected terms"}),t&&Object(r.jsx)("div",{className:"c-display-search-tokens__clear",children:Object(r.jsx)(s.a,{buttonStyle:"link",onClick:e.clearTokens,"data-testid":"clear-tokens",size:"small",children:"Clear"})})]}),Object(r.jsx)(u.SearchTokensList,{children:e.tokens.map((function(t,s){return Object(r.jsx)(u.SearchTokenItem,{className:i()({"c--not":t.constructor===o.H,"c--or":t.constructor===o.I}),children:Object(r.jsx)(c.a,{token:t,onClick:n(s),disableRemove:a(s),inlineDateFiltersEnabled:e.inlineDateFiltersEnabled})},"filter-token-".concat(s))}))},"filter-tray-bubbles")]}):Object(r.jsx)("div",{className:"c-display-search-tokens",children:Object(r.jsxs)("div",{className:"c-display-search-tokens__search-tags",children:[Object(r.jsx)("ul",{className:"c-display-search-tokens__combinators",children:e.tokens.map((function(t,s){return Object(r.jsx)("li",{className:i()("c-display-search-tokens__tag",{"c--not":t.constructor===o.H,"c--or":t.constructor===o.I}),children:Object(r.jsx)(c.a,{token:t,onClick:n(s),disableRemove:a(s),onEdit:l(s),inlineDateFiltersEnabled:e.inlineDateFiltersEnabled,editingToken:e.editingToken})},"filter-token-".concat(s))}))}),t&&Object(r.jsx)("div",{className:"c-display-search-tokens__clear",children:Object(r.jsx)(s.a,{buttonStyle:"link",onClick:e.clearTokens,"data-testid":"clear-tokens",size:"small",children:"Clear"})})]})},"filter-tray-bubbles")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),a=n(12).b.div.withConfig({displayName:"badge__StyledBadge",componentId:"sc-1fjc12f-0"})(["text-transform:uppercase;padding:0 4px;background-color:",";display:inline-block;border-radius:6px;color:",";font-weight:var(--fw-ultrabold);font-size:var(--fs-xs);"],(function(e){return e.backgroundColor}),(function(e){return e.textColor})),i=function Badge(e){return Object(r.jsx)(a,{textColor:e.textColor,backgroundColor:e.backgroundColor,children:e.text})}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function toggle(e){return"OPEN"===e?"CLOSED":"OPEN"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return CountBadge}));var r=n(0),a=n(221),i=(n(1271),n(24)),o=n.n(i);function CountBadge(e){var t=e.items,n=e.displaysActivity;return Object(r.jsx)("span",{className:o()("c-count-badge",{"c--activity":null!==n&&void 0!==n&&n}),children:t.map(a.a).orElse("\xb7")})}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(4),a=n(0),i=n(166),o=n(19),c=n(9),s=n(24),l=n.n(s),u=(n(458),n(34)),d=n(15),b=function MessageUnauthorizedError(e){var t={explanation:"You need permission to view this message",detail:"This message is not available to you or any of the "+"".concat(d.b.t(d.a.TEAM_PLURAL)," of which you are a member. It may need to be shared with your ").concat(d.b.t(d.a.TEAM)," ")+"or it may be a private draft that has not been published.",darkMode:!1};return function UnauthorizedError(e){var t=Object(r.a)(Object(r.a)({},{darkMode:!1}),e),n=t.explanation,s=t.detail,d=t.darkMode;return Object(a.jsx)("div",{className:"c-layout","data-testid":"unauthorized-error-container",children:Object(a.jsxs)("div",{className:l()("c-layout__body","c-error-page",{"c--dark":d}),children:[Object(a.jsx)(i.a,{className:l()("c-error-page__logo",{"c--dark":d})}),Object(a.jsx)(o.a,{glyph:Object(c.e)(c.c.LOCK),size:"xlarge",className:"u-mb-md c-error-page__glyph","data-testid":"lock-icon-glyph"}),Object(a.jsx)("h2",{"data-testid":"unauthorized-explanation",className:"u-ta-c c-error-page__explanation",children:null!==n&&void 0!==n?n:"You do not have the appropriate permissions to view this page"}),s&&Object(a.jsx)("p",{className:"u-text-medium u-ta-c c-error-page__width c-error-page__detail","data-testid":"unauthorized-explanation-detail",children:s}),Object(a.jsx)(u.a,{url:"/launch/",children:"Go to Inbox\ufe0f"})]})})}(Object(r.a)(Object(r.a)({},t),e))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(39),a=n.n(r),i=n(54),o=n(53),c=n(2),s=n(42),l=n(214),u=n(370),d=n(393),b=c.e(),p=Object(o.createAsyncThunk)("lite/publicComment/create",function(){var e=Object(i.a)(a.a.mark((function _callee(e,t){var n,r,i;return a.a.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:return n=e.uuid,r=e.content,i=t.rejectWithValue,a.prev=2,a.next=5,new l.b("".concat(n,"/public-comment"),(function(e){return Object(u.a)(e)})).post({body:{data:{attributes:{content:r}}}});case 5:return a.abrupt("return",a.sent);case 8:return a.prev=8,a.t0=a.catch(2),a.abrupt("return",i(Object(s.b)("",a.t0 instanceof l.a?a.t0.status:void 0)));case 11:case"end":return a.stop()}}),_callee,null,[[2,8]])})));return function(t,n){return e.apply(this,arguments)}}()),m=Object(o.createSlice)({name:"publicComment",initialState:b,reducers:{},extraReducers:function extraReducers(e){e.addCase(d.c.fulfilled,(function(e,t){return c.p(e,t.payload.publicComments,(function(e){return e.id}))})).addCase(p.fulfilled,(function(e,t){return c.o(e,t.payload.id,t.payload)}))}});t.b=m.reducer},function(e,t,n){"use strict";n.d(t,"a",(function(){return MessageInteractionsContainer}));var r,a,i,o,c,s,l,u=n(21),d=n(0),b=n(1),p=n.n(b),m=n(9),h=n(808),g=n(39),j=n.n(g),v=n(7),O=n(54),T=n(4);!function(e){e.TEXT_INPUT="textInput",e.HIDDEN_INPUT="hiddenInput",e.CHECKBOX="checkbox",e.TEXT_AREA="textArea",e.TEXT_DISPLAY="textDisplay",e.CALENDAR="calendar",e.ALERT="alert",e.BUTTON="button",e.LINK="link",e.FOOTER="footer",e.DROPDOWN="dropdown",e.MULTISELECT="multiselect",e.IMAGE="imageDisplay",e.TEXT_INSERT="textInsert",e.TEXT_INSERT_BY_PATH="textInsertByPath",e.ATTACHMENT_INSERT="attachmentInsert",e.CARD="card",e.ROW="row"}(r||(r={})),function(e){e.LABEL="label",e.TEXT="text",e.SUBTEXT="subtext",e.TITLE="title",e.HEADING="heading",e.SUBHEADING="subheading"}(a||(a={})),function(e){e.INFO="info",e.ERROR="error"}(i||(i={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.BUTTON_LINK="link"}(o||(o={})),function(e){e.SUBMIT="submit",e.RESET="reset",e.CANCEL="cancel"}(c||(c={})),function(e){e.SMALL="small",e.MEDIUM="medium"}(s||(s={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify"}(l||(l={}));var y="SEDNA-NAME-",S=n(12),C=n(19),A={Header:S.b.div.withConfig({displayName:"header__Header",componentId:"sc-17qnmia-0"})(["display:flex;align-items:center;border-bottom:1px solid var(--border-shade);padding:var(--spacing-3);cursor:pointer;flex:0 0 auto;"]),Title:S.b.div.withConfig({displayName:"header__Title",componentId:"sc-17qnmia-1"})(["flex:1 1 auto;font-weight:var(--fw-semi);"]),Icon:S.b.div.withConfig({displayName:"header__Icon",componentId:"sc-17qnmia-2"})(["margin-right:var(--spacing-3);height:6rem;border-radius:var(--br1);overflow:hidden;display:flex;img{width:6rem;}"]),ExternalLink:S.b.a.withConfig({displayName:"header__ExternalLink",componentId:"sc-17qnmia-3"})(["color:var(--text-2);"]),Arrow:S.b.div.withConfig({displayName:"header__Arrow",componentId:"sc-17qnmia-4"})(["margin-right:var(--spacing-2);color:var(--text-2);"])},E=b.memo((function MessageInteractionsHeader(e){return Object(d.jsxs)(A.Header,{onClick:e.onClick,className:e.className?e.className:void 0,children:[Object(d.jsx)(A.Icon,{children:e.icon?Object(d.jsx)("img",{src:e.icon,alt:e.name}):Object(d.jsx)(C.a,{glyph:Object(m.e)(m.c.DATA),size:"xlarge"})}),Object(d.jsx)(A.Title,{children:e.name}),"header"===e.type&&e.url&&Object(d.jsx)(A.ExternalLink,{href:e.url,target:"_blank",rel:"noopener noreferrer",children:Object(d.jsx)(C.a,{glyph:Object(m.e)(m.c.LAUNCH)})}),"list-tile"===e.type&&Object(d.jsx)(A.Arrow,{children:Object(d.jsx)(C.a,{glyph:Object(m.e)(m.c.CHEVRON_RIGHT)})})]})})),w={Container:S.b.div.withConfig({displayName:"alert__Container",componentId:"qnx40a-0"})(["margin-bottom:var(--spacing-3);padding:var(--spacing-3) var(--spacing-6);border-radius:var(--br2);font-weight:var(--fw-normal);",";"],(function(e){return"red"===e.color?" background-color: var(--danger-light);\n        color: var(--danger);":" background-color: var(--blue-tint);\n        color: var(--tag-blue)\n        "}))};function MessageInteractionsAlert(e){var t=e.block;return"error"===t.level?Object(d.jsx)(w.Container,{color:"red",children:t.text}):Object(d.jsx)(w.Container,{children:t.text})}var _=n(34),I=function buttonStyle(e){switch(e){case o.SECONDARY:return"secondary";case o.BUTTON_LINK:return"link";default:return"primary"}},x=function buttonAction(e){switch(e){case c.CANCEL:return"button";case c.RESET:return"reset";default:return"submit"}},k=function buttonSize(e){switch(e){case s.SMALL:return"small";default:return"regular"}};function MessageInteractionsButton(e){var t=e.block,n=e.disabled,r=e.onClick;return Object(d.jsx)(_.a,{type:x(t.action),id:t.id||"submit",buttonStyle:I(t.style),name:t.id||"submit",onClick:r,disabled:n,size:k(t.size),children:t.label||"Submit"})}var N=n(138),R={ButtonGroup:S.b.div.withConfig({displayName:"footer__ButtonGroup",componentId:"o2gmfd-0"})(["border-top:1px solid var(--border-shade);padding-top:var(--spacing-3);padding-left:var(--spacing-3);padding-right:var(--spacing-3);.c-button{margin-right:var(--spacing-3);margin-bottom:var(--spacing-3);}"])},F=b.memo((function MessageInteractionsFooter(e){return Object(d.jsx)(R.ButtonGroup,{children:e.block.blocks.map((function(t,n){return Object(d.jsx)(MessageInteractionsBlock,{block:t,form:e.form,submitting:e.submitting,applicationId:e.applicationId,onCancel:e.onCancel},n)}))})})),M=n(24),D=n.n(M);function MessageInteractionsLink(e){var t,n=e.block;return Object(d.jsx)("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",className:D()("c-button",{"c--secondary":n.style===o.SECONDARY,"c--link":n.style===o.BUTTON_LINK,"c--small":"small"===n.size}),children:null!==(t=n.label)&&void 0!==t?t:"Go"})}var L={Container:S.b.div.withConfig({displayName:"text-display__Container",componentId:"z92yv0-0"})(["margin-bottom:var(--spacing-3);white-space:pre-wrap;",";",";",";",";",";"],(function(e){return e.textStyle===a.LABEL&&"\n      font-weight: var(--fw-normal);\n      font-size: var(--fs);\n      color: var(--text-2);\n      line-height: 1.5;\n    "}),(function(e){return e.textStyle===a.SUBTEXT&&"\n      font-weight: var(--fw-normal);\n      font-size: var(--fs-sm);\n      color: var(--text-2);\n      line-height: 1.5;\n    "}),(function(e){return e.textStyle===a.TITLE&&"\n      font-weight: var(--fw-bold);\n      font-size: var(--fs-xxlg);\n      line-height: var(--lh-header);\n    "}),(function(e){return e.textStyle===a.HEADING&&"\n      font-weight: var(--fw-semi);\n      font-size: var(--fs-xlg);\n      line-height: var(--lh-header);\n    "}),(function(e){return e.textStyle===a.SUBHEADING&&"\n      font-weight: var(--fw-semi);\n      line-height: var(--lh-header);\n    "}))};function MessageInteractionsTextDisplay(e){var t=e.block,n=t.style?t.style:a.TEXT;return Object(d.jsx)(L.Container,{textStyle:n,children:t.value})}var P=n(158),U=n(172);function MessageInteractionsDropdown(e){var t=e.block,n=p.a.useMemo((function(){return t.options.map((function(e){return{value:e.id,label:e.label}}))}),[t.options]);return Object(d.jsx)(U.b,{fieldName:y+t.id,validation:t.required?P.e:void 0,label:t.label,id:t.id,error:t.error,initialValue:t.value?t.value:void 0,options:n,searchable:t.searchable,required:t.required})}var B={Image:S.b.img.withConfig({displayName:"image-display__Image",componentId:"sc-4jurqn-0"})(["margin-bottom:var(--spacing-3);max-width:100%;"])};function MessageInteractionsImageDisplay(e){var t,n=e.block;return Object(d.jsx)(B.Image,{src:n.href,alt:null!==(t=n.description)&&void 0!==t?t:""})}var H={Container:S.b.div.withConfig({displayName:"attachment-insert__Container",componentId:"jo8j5n-0"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-3);"])};function MessageInteractionsAttachmentInsert(e){var t=e.block,n=e.composeAddAttachment;return Object(d.jsxs)(H.Container,{children:[t.label,Object(d.jsx)(_.a,{icon:Object(m.e)(m.c.ATTACHMENT_18),onClick:function onClick(){return n(t.href,t.filename)},buttonStyle:"secondary",children:"Insert"})]})}var G=n(389),W={Container:S.b.div.withConfig({displayName:"text-insert__Container",componentId:"sugygp-0"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-3);"])};function MessageInteractionsTextInsert(e){var t=e.block,n=e.composeInsert;return Object(d.jsxs)(W.Container,{children:[t.label,Object(d.jsx)(_.a,{icon:Object(G.b)(G.a.INSERT_SNIPPET),onClick:function onClick(){return n(t.content)},buttonStyle:"secondary",children:"Insert"})]})}var z=n(40),V=n(106),J=n(528),Y=n(636),q=n(51),K={Container:S.b.div.withConfig({displayName:"text-insert-by-path__Container",componentId:"sc-7ypfqr-0"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-3);"])};function MessageInteractionsTextInsertByPath(e){var t=e.applicationId,n=e.block,r=e.composeInsert,a=b.useCallback((function(){return function insertFromUrlFetch(e,t){return _insertFromUrlFetch.apply(this,arguments)}(n.path,t)}),[t,n]);return Object(d.jsxs)(K.Container,{children:[n.label,Object(d.jsx)(_.a,{icon:Object(G.b)(G.a.INSERT_SNIPPET),onClick:Object(O.a)(j.a.mark((function _callee(){return j.a.wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=r,e.next=3,a();case 3:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 5:case"end":return e.stop()}}),_callee)}))),buttonStyle:"secondary",children:"Insert"})]})}function _insertFromUrlFetch(){return(_insertFromUrlFetch=Object(O.a)(j.a.mark((function _callee2(e,t){var n;return j.a.wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,fetch(Object(q.m)("message-interaction/contentFromUrl?path=".concat(e,"&applicationId=").concat(t)),{credentials:"include",mode:"cors"});case 2:if("undefined"===typeof(n=r.sent)||!n.ok){r.next=7;break}return r.abrupt("return",n.text());case 7:throw Error("Not possible to fetch the content");case 8:case"end":return r.stop()}}),_callee2)})))).apply(this,arguments)}var X=n(484),Q={CardHeader:S.b.div.withConfig({displayName:"card__CardHeader",componentId:"sc-1o9ude-0"})(["font-weight:var(--fw-semi);line-height:var(--lh-header);padding-bottom:var(--spacing-3);"]),CardContainer:S.b.div.withConfig({displayName:"card__CardContainer",componentId:"sc-1o9ude-1"})([""," margin:var(--spacing-3) 0;border:1px solid var(--border-shade);border-radius:var(--br1);"],(function(e){return e.actions?"padding: var(--spacing-3);":"padding: var(--spacing-3) var(--spacing-3) 0;"})),CardFooter:S.b.div.withConfig({displayName:"card__CardFooter",componentId:"sc-1o9ude-2"})(["display:flex;padding-top:var(--spacing-1);.c-button{margin-right:var(--spacing-3);}"])},Z=function CardHeader(e){var t=e.title;return Object(d.jsx)(Q.CardHeader,{children:t})},$=function Card(e){var t=e.title,n=e.children,r=e.actions;return Object(d.jsxs)(Q.CardContainer,{"data-testid":"cardComponent",actions:r,children:[t&&Object(d.jsx)(Z,{title:t}),n,r&&Object(d.jsx)(Q.CardFooter,{children:r})]})},ee={Row:S.b.div.withConfig({displayName:"row__Row",componentId:"sc-1vapt83-0"})(["display:flex;flex-direction:row;"," "," "," ",""],(function(e){return"justify"===e.align&&"justify-content: space-between;"}),(function(e){return"left"===e.align&&"justify-content: flex-start;"}),(function(e){return"right"===e.align&&"justify-content: flex-end;"}),(function(e){return"center"===e.align&&"justify-content: center;"})),RowColumn:S.b.div.withConfig({displayName:"row__RowColumn",componentId:"sc-1vapt83-1"})(["display:flex;align-items:center;margin:0 var(--spacing-2);:first-of-type{margin-left:0;}:last-of-type{margin-right:0;}> *{margin-bottom:0;}"])},te=function Row(e){var t=e.children,n=e.align;return Object(d.jsx)(ee.Row,{align:n,children:t})},ne=ee.RowColumn,re=n(92),ae=n(141),ie=n(117),oe=n(271),ce=n(192),se=n(23);function useMultiselect(e){var t=Object(b.useState)(e),n=Object(u.a)(t,2),r=n[0],a=n[1],i=Object(b.useCallback)((function(e){if(e.selectedItem)if(r.includes(e.selectedItem.value)){var t=r.filter((function(t){var n;return t!==(null===(n=e.selectedItem)||void 0===n?void 0:n.value)}));a(t)}else{var n=[].concat(Object(se.a)(r),[e.selectedItem.value]);a(n)}}),[r]);return[r,i]}var le={SelectContainer:S.b.div.withConfig({displayName:"multiselect__SelectContainer",componentId:"sc-1tuy3vo-0"})(["position:relative;display:flex;"])};function multiselectStateReducer(e,t){var n=t.changes;switch(t.type){case ie.b.stateChangeTypes.InputKeyDownEnter:case ie.b.stateChangeTypes.ItemClick:return Object(T.a)(Object(T.a)({},n),{},{isOpen:!0,highlightedIndex:e.highlightedIndex,inputValue:""});case ie.b.stateChangeTypes.InputBlur:return Object(T.a)(Object(T.a)({},n),{},{inputValue:""});default:return n}}var ue=function Multiselect(e){var t=e.invalid,n=e.disabled,r=e.onFocus,a=e.onBlur,i=e.name,o=e.id,c=e.options,s=e.onSelect,l=e.testId,p=useMultiselect(e.value),m=Object(u.a)(p,2),h=m[0],g=m[1];Object(b.useEffect)((function(){0===h.length?s(null):s(h)}),[s,h]);var j=Object(ie.b)({items:c,onSelectedItemChange:g,selectedItem:null,stateReducer:multiselectStateReducer}),v=j.isOpen,O=j.toggleMenu,y=j.getMenuProps,S=j.getInputProps,C=j.getComboboxProps,A=j.highlightedIndex,E=j.getItemProps,w=h.length?"".concat(h.length," items selected"):"Select...";return Object(d.jsxs)(le.SelectContainer,{children:[Object(d.jsx)(oe.a,{toggleMenu:O,comboboxProps:C(),inputProps:S(Object(T.a)(Object(T.a)({},o&&{id:o}),{},{disabled:n,refKey:"inputRef"})),onFocus:r,onBlur:a,disabled:n,invalid:t,name:i,type:"button",testId:l,placeholder:w}),Object(d.jsx)(ce.a,{isOpen:v,menuProps:y(Object(T.a)(Object(T.a)({},o&&{id:"".concat(o,"-menu")}),{},{refKey:"menuRef"})),children:v?c.map((function(e,t){return Object(d.jsx)(ce.b,{itemProps:E(Object(T.a)(Object(T.a)({},o&&{id:"".concat(o,"-menu-item-").concat(e.value)}),{},{item:e,index:t,refKey:"itemRef"})),item:e,highlight:A===t||h.includes(e.value),isSelected:h.includes(e.value)},t)})):null})]})},de={SelectContainer:S.b.div.withConfig({displayName:"searchable-multiselect__SelectContainer",componentId:"gpqnyj-0"})(["position:relative;display:flex;"])},fe=function SearchableMultiselect(e){var t=e.invalid,n=e.disabled,r=e.onFocus,a=e.onBlur,i=e.name,o=e.id,c=e.options,s=e.onSelect,l=e.testId,m=e.value,h=Object(b.useState)(""),g=Object(u.a)(h,2),j=g[0],v=g[1],O=useMultiselect(m),y=Object(u.a)(O,2),S=y[0],C=y[1];Object(b.useEffect)((function(){0===S.length?s(null):s(S)}),[s,S]);var A=p.a.useMemo((function(){return c.filter((function(e){return e.label.toLowerCase().includes(j.toLowerCase())}))}),[j,c]),E=p.a.useCallback((function(e){var t;e.type!==ie.b.stateChangeTypes.ItemClick&&e.type!==ie.b.stateChangeTypes.InputKeyDownEnter&&s(void 0),v(null!==(t=e.inputValue)&&void 0!==t?t:"")}),[s]),w=Object(ie.b)({items:A,onSelectedItemChange:C,selectedItem:null,stateReducer:multiselectStateReducer,inputValue:j,onInputValueChange:E}),_=w.isOpen,I=w.toggleMenu,x=w.getMenuProps,k=w.getInputProps,N=w.getComboboxProps,R=w.highlightedIndex,F=w.getItemProps,M=S.length?"".concat(S.length," items selected"):"Select...";return Object(d.jsxs)(de.SelectContainer,{children:[Object(d.jsx)(oe.a,{toggleMenu:I,comboboxProps:N(),inputProps:k(Object(T.a)(Object(T.a)({},o&&{id:o}),{},{disabled:n,refKey:"inputRef"})),onFocus:r,onBlur:a,disabled:n,invalid:t,name:i,testId:l,placeholder:M}),Object(d.jsx)(ce.a,{isOpen:_,menuProps:x(Object(T.a)(Object(T.a)({},o&&{id:"".concat(o,"-menu")}),{},{refKey:"menuRef"})),children:_?A.map((function(e,t){return Object(d.jsx)(ce.b,{itemProps:F(Object(T.a)(Object(T.a)({},o&&{id:"".concat(o,"-menu-item-").concat(e.value)}),{},{item:e,index:t,refKey:"itemRef"})),item:e,highlight:R===t||S.includes(e.value),isSelected:S.includes(e.value)},t)})):null})]})},be=function MultiselectField(e){var t=e.searchable?fe:ue;return Object(d.jsx)(re.a,{name:e.fieldName,validate:e.validation,initialValue:e.initialValue,children:function children(n){var r,a,i,o=n.input,c=n.meta,s=!(!c.error&&!c.submitError||!c.touched)||!(c.touched||!e.error),l=c.error||c.submitError||e.error;return Object(d.jsx)(ae.a,{label:e.label,name:null!==(r=e.id)&&void 0!==r?r:e.fieldName,error:s?l:void 0,helpText:e.helpText,children:Object(d.jsx)(t,{options:e.options,value:o.value,onSelect:function handleSelect(e){o.onChange({target:{value:e}})},id:null!==(a=e.id)&&void 0!==a?a:e.fieldName,name:e.fieldName,required:e.required,testId:null!==(i=e.testId)&&void 0!==i?i:"".concat(e.fieldName,"-select-field")})})}})};function MessageInteractionsMultiselect(e){var t=e.block,n=p.a.useMemo((function(){return t.options.map((function(e){return{value:e.id,label:e.label}}))}),[t.options]);return Object(d.jsx)(be,{fieldName:y+t.id,validation:t.required?P.e:void 0,label:t.label,id:t.id,error:t.error,initialValue:t.value.length>0?t.value:void 0,options:n,searchable:t.searchable,required:t.required})}function MessageInteractionsBlock(e){var t=e.block,n=e.form,a=e.submitting,i=e.composeInsert,o=e.composeAddAttachment,s=e.applicationId,l=e.onCancel;switch(t.type){case r.TEXT_INPUT:return Object(d.jsx)(V.a,{fieldName:y+t.id,validation:t.required?P.e:void 0,label:t.label,id:t.id,error:t.error,placeholder:t.placeholder,initialValue:null===t.value?void 0:t.value});case r.TEXT_AREA:return Object(d.jsx)(J.a,{fieldName:y+t.id,validation:t.required?P.e:void 0,label:t.label,id:t.id,error:t.error,placeholder:t.placeholder,initialValue:null===t.value?void 0:t.value});case r.CALENDAR:return Object(d.jsx)(Y.a,{fieldName:y+t.id,validation:t.required?P.e:void 0,label:t.label,id:t.id,error:t.error,placeholder:t.placeholder,initialValue:null===t.value?void 0:t.value,dateFormat:"YYYY-MM-DD"});case r.DROPDOWN:return Object(d.jsx)(MessageInteractionsDropdown,{block:t});case r.TEXT_DISPLAY:return Object(d.jsx)(MessageInteractionsTextDisplay,{block:t});case r.ALERT:return Object(d.jsx)(MessageInteractionsAlert,{block:t});case r.LINK:return Object(d.jsx)(MessageInteractionsLink,{block:t});case r.BUTTON:return Object(d.jsx)(MessageInteractionsButton,{block:t,onClick:function onClick(){t.action===c.CANCEL?null===l||void 0===l||l(t.id):t.action===c.RESET?n.reset():n.change("action",t.id)},disabled:a});case r.FOOTER:return Object(d.jsx)(F,{applicationId:s,block:t,form:n,submitting:a,onCancel:l});case r.IMAGE:return Object(d.jsx)(MessageInteractionsImageDisplay,{block:t});case r.TEXT_INSERT:return Object(d.jsx)(MessageInteractionsTextInsert,{block:t,composeInsert:i||z.a});case r.TEXT_INSERT_BY_PATH:return Object(d.jsx)(MessageInteractionsTextInsertByPath,{applicationId:s,block:t,composeInsert:i||z.a});case r.ATTACHMENT_INSERT:return Object(d.jsx)(MessageInteractionsAttachmentInsert,{block:t,composeAddAttachment:null!==o&&void 0!==o?o:z.a});case r.HIDDEN_INPUT:return null;case r.CHECKBOX:return Object(d.jsx)(X.a,{label:t.label,fieldName:y+t.id,initialValue:t.checked});case r.CARD:var u=t.actions.map((function(e){return e.type===r.BUTTON?Object(d.jsx)(MessageInteractionsButton,{block:e,onClick:function onClick(){n.change("action",e.id)},disabled:a},e.id):Object(d.jsx)(MessageInteractionsLink,{block:e},e.label)}));return Object(d.jsx)($,{title:t.title,actions:t.actions.length>0?Object(d.jsx)(d.Fragment,{children:u}):void 0,children:Object(d.jsx)(d.Fragment,{children:t.blocks.map((function(e){return Object(d.jsx)(MessageInteractionsTextDisplay,{block:e},e.value)}))})});case r.ROW:return Object(d.jsx)(te,{align:t.align,children:Object(d.jsx)(d.Fragment,{children:t.blocks.map((function(e){return e.type===r.BUTTON?Object(d.jsx)(ne,{children:Object(d.jsx)(MessageInteractionsButton,{block:e,onClick:function onClick(){n.change("action",e.id)},disabled:a},e.id)}):e.type===r.LINK?Object(d.jsx)(ne,{children:Object(d.jsx)(MessageInteractionsLink,{block:e},e.label)}):Object(d.jsx)(ne,{children:Object(d.jsx)(MessageInteractionsTextDisplay,{block:e},e.value)})}))})});case r.MULTISELECT:return Object(d.jsx)(MessageInteractionsMultiselect,{block:t});default:return Object(N.a)(t)}}var pe=n(1467),me=n(1443),he=n(246),ge=n(26),je=n(2),ve=n(50),Oe=n(28),Te=n(22),ye=n(147),Se=n(809),Ce={Container:S.b.div.withConfig({displayName:"message-display__Container",componentId:"sc-1jxidf0-0"})(["display:flex;flex-direction:column;align-items:center;width:100%;padding:var(--spacing-6);"]),ErrorMessage:S.b.p.withConfig({displayName:"message-display__ErrorMessage",componentId:"sc-1jxidf0-1"})(["text-align:center;color:var(--text-2);"]),Icon:S.b.div.withConfig({displayName:"message-display__Icon",componentId:"sc-1jxidf0-2"})(["margin-bottom:var(--spacing-3);padding:var(--spacing-2);border-radius:50%;color:var(--danger);"," ",""],(function(e){return"success"===e.type?"color: var(--success);":"color: var(--danger);"}),(function(e){return"success"===e.type?"background-color: var(--success-light);":"background-color: var(--danger-light);"}))};function MessageInteractionsMessageDisplay(e){var t=e.type,n=e.text,r=e.onClick,a="error"===t?m.b:Object(m.e)(m.c.DONE);return Object(d.jsxs)(Ce.Container,{children:[Object(d.jsx)(Ce.Icon,{type:t,children:Object(d.jsx)(C.a,{glyph:a,size:"large"})}),Object(d.jsx)(Ce.ErrorMessage,{children:n}),Object(d.jsx)(_.a,{onClick:r,buttonStyle:"secondary",children:"Close"})]})}var Ae={Container:S.b.div.withConfig({displayName:"app-container__Container",componentId:"sc-1xjguuk-0"})(["display:flex;flex-direction:column;min-height:0;height:100%;"]),Form:Object(S.b)(pe.a).withConfig({displayName:"app-container__Form",componentId:"sc-1xjguuk-1"})(["flex-shrink:1;overflow:hidden;min-height:0;display:flex;flex-direction:column;height:100%;"]),FormGroup:Object(S.b)(me.a).withConfig({displayName:"app-container__FormGroup",componentId:"sc-1xjguuk-2"})(["display:flex;flex-direction:column;overflow:hidden;margin-bottom:0;height:100%;"]),FormContent:S.b.div.withConfig({displayName:"app-container__FormContent",componentId:"sc-1xjguuk-3"})(["flex-shrink:1;overflow-y:auto;padding-top:var(--spacing-3);height:100%;"]),FormActions:S.b.div.withConfig({displayName:"app-container__FormActions",componentId:"sc-1xjguuk-4"})([""])};function MessageInteractionsAppContainer(e){var t,n=Object(Te.h)().id,a=Object(Oe.useDispatch)(),o=Object(ge.d)((function(e){return je.g(e.entities.messageInteractions,je.a)}));b.useEffect((function(){o.isNotLoading()&&a(new ye.j(e.app,n,null,null,e.display))}),[a,o,e.app,n,e.display]);var c=b.useCallback((function(t){var r=o.toOptional().toNullable();r&&a(new ye.j(e.app,n,r,t,e.display))}),[a,n,o,e.app,e.display]),s=b.useCallback((function(t){var a=o.toOptional().toNullable();if(a){var i=Object.keys(t).reduce((function(e,n){var a=n.slice(n.startsWith(y)?y.length:0);return Object(T.a)(Object(T.a)({},e),{},{blocks:e.blocks.map((function(e){return"id"in e&&e.id===a?e.type===r.CHECKBOX?Object(T.a)(Object(T.a)({},e),{},{checked:t[n]}):Object(T.a)(Object(T.a)({},e),{},{value:t[n]}):e}))})}),a);return new ye.j(e.app,n,i,t.action,e.display)}}),[o,e.app,n,e.display]),l=Object(Se.a)((function(e){return je.g(e.entities.messageInteractions,je.a)}),s),p=Object(u.a)(l,1)[0],m=null!==(t=e.app.errorMessage)&&void 0!==t?t:"Something went wrong with ".concat(e.app.name,". Please try again or contact customer support.");return Object(d.jsxs)(Ae.Container,{children:[Object(d.jsx)(E,{type:"header",name:e.app.name,icon:e.app.icon,url:o.map((function(e){return e.href})).orElse(e.app.url)}),o.map((function(t){return 0===t.blocks.length?Object(d.jsx)(MessageInteractionsMessageDisplay,{type:"success",text:"Completed successfully.",onClick:e.done}):Object(d.jsx)(re.b,{onSubmit:function(){var e=Object(O.a)(j.a.mark((function _callee(e){return j.a.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p(e);case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return",Object(v.a)({},he.b,m));case 8:case"end":return t.stop()}}),_callee,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),render:function render(n){var a=n.handleSubmit,o=n.form,s=n.submitError,l=n.submitting,u=t.blocks.filter((function(e){return"footer"===e.type})),b=t.blocks.filter((function(e){return"footer"!==e.type}));return Object(d.jsxs)(Ae.Form,{onSubmit:a,children:[s&&Object(d.jsx)(MessageInteractionsAlert,{block:{type:r.ALERT,level:i.ERROR,text:s}}),Object(d.jsxs)(Ae.FormGroup,{disabled:l,children:[Object(d.jsx)(Ae.FormContent,{children:b.map((function(t,n){return Object(d.jsx)("div",{className:"u-pl-md u-pr-md u-mb-md",children:Object(d.jsx)(MessageInteractionsBlock,{block:t,form:o,submitting:l,composeInsert:e.composeInsert,composeAddAttachment:e.composeAddAttachment,applicationId:e.app.id,onCancel:c})},n)}))}),Object(d.jsx)(Ae.FormActions,{children:u.map((function(t,n){return Object(d.jsx)("div",{children:Object(d.jsx)(MessageInteractionsBlock,{block:t,form:o,submitting:l,applicationId:e.app.id,onCancel:c})},n)}))})]})]})}})})).unwrap((function(){return Object(d.jsxs)("div",{className:"u-flex u-justify-center u-items-center u-flex-auto",children:[Object(d.jsx)(ve.b,{spinner:ve.a,fadeIn:"none"}),Object(d.jsxs)("span",{className:"u-text-medium",children:["Connecting to ",e.app.name]})]})}),(function(){return Object(d.jsx)(MessageInteractionsMessageDisplay,{type:"error",text:m,onClick:e.goBack})}))]})}var Ee={List:S.b.ul.withConfig({displayName:"app-list__List",componentId:"sc-7g3lg7-0"})(["overflow-y:auto;list-style:none;padding-left:0;"])},we=b.memo((function AppList(e){return Object(d.jsx)(Ee.List,{children:e.apps.map((function(t){return Object(d.jsx)("li",{children:Object(d.jsx)(E,{type:"list-tile",name:t.name,icon:t.icon,onClick:function onClick(){return e.onClick(t)}})},t.id)}))})})),_e=n(29);function MessageInteractionsListContainer(e){var t=Object(Oe.useDispatch)(),n=Object(ge.d)((function(t){return je.g(t.entities.applications,e.display)})),r=function sednaLinkAppClick(n){return t(_e.a.withEvent(Object(_e.n)("App Opened",n.id,n.name))),e.setSelectedApp(n)};return b.useEffect((function(){n.isNotLoading()&&t(new ye.h(e.display))}),[n,t,e.display]),b.useEffect((function(){t(new ye.a)}),[t]),n.map((function(t){return 0===t.length?Object(d.jsx)(MessageInteractionsMessageDisplay,{type:"error",text:"There are no available applications.",onClick:e.goBack}):Object(d.jsx)(we,{apps:t,onClick:r})})).unwrap((function(){return Object(d.jsx)(ve.b,{spinner:ve.a,fadeIn:"none"})}),(function(e){return Object(d.jsxs)("div",{className:"c-error-boundary-container",children:[Object(d.jsx)(C.a,{glyph:m.b,size:"xlarge",className:"u-mb-md c-error-boundary-container__icon"}),Object(d.jsx)("h2",{className:"c-error-boundary-container__title",children:"An error occurred"}),Object(d.jsxs)("p",{className:"u-ta-c",children:["The error has been logged. Please reach out to"," ",Object(d.jsx)("a",{href:"mailto:support@sedna.com",children:"support@sedna.com"})," if the error persists."]})]})}))}function MessageInteractionsContainer(e){var t=e.isOpen,n=e.isMobile,r=e.toggle,a=e.display,i=(e.displayCloseBtn,e.composeInsert),o=e.composeAddAttachment,c=e.trackEvent,s=b.useState(null),l=Object(u.a)(s,2),p=l[0],g=l[1],j=b.useCallback((function(){p?(c("SEDNA Link - App Panel","Back to App List"),g(null)):(c("SEDNA Link - App Panel","Close App Panel"),r())}),[p,g,r,c]);return Object(d.jsx)(h.a,{isOpen:t,isMobile:n,toggle:j,title:"SEDNA Link",titleIcon:Object(m.e)(m.c.DATA),position:"left-lower",children:p?Object(d.jsx)(MessageInteractionsAppContainer,{app:p,goBack:j,done:function done(){r(),g(null)},display:a,composeInsert:i,composeAddAttachment:o}):Object(d.jsx)(MessageInteractionsListContainer,{setSelectedApp:g,goBack:j,display:a})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return renderTopicPanesAsync}));var r=n(0),a=n(50),i=n(540),o=n(263),c=n(599);function TopicLoadingError(e){switch(e.error.status){case 403:return Object(r.jsx)(i.a,{explanation:"You need permission to view this note",detail:"You don\u2019t have permission to view this note. The note must first be shared with you to view it."});case 404:return Object(r.jsx)(o.a,{explanation:"This note doesn't exist",detail:"It may have been moved or deleted if it was a draft."});default:return Object(r.jsx)(c.a,{})}}function renderTopicPanesAsync(e,t){return e.map(t).unwrap((function(){return Object(r.jsx)(a.b,{spinner:a.a})}),(function(e){return Object(r.jsx)(TopicLoadingError,{error:e})}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r,a=n(3),i=n(10),o=n(5),c=n(6),s=n(0),l=n(1),u=n(28),d=n(26),b=n(25),p=n(731),m=n(61),h=n(29),g=["lite","shared-message"];!function(e){e.DEFAULT="DEFAULT",e.LITE="LITE"}(r||(r={}));var j=Object(d.b)([function(e){return e.router.location}],(function(e){var t=e.pathname.split("/")[1];return g.includes(t)?r.LITE:r.DEFAULT})),v=function(e){Object(o.a)(Container,e);var t=Object(c.a)(Container);function Container(){var e;Object(a.a)(this,Container);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={previewDocument:b.a.empty()},e}return Object(i.a)(Container,[{key:"render",value:function render(){var e=this.props.documents;return Object(s.jsx)(p.a,{viewingMode:this.props.viewingMode,documents:e,flexDocuments:this.props.flexDocuments,messageId:this.props.messageId,isCompose:!!this.props.isCompose,isMobile:this.props.isMobile,showDownloadAll:!this.props.isDraft,enableFlexDocTagging:this.props.fdManagementFeatureFlag,updateActivity:this.props.updateActivity,onDownloadMessageDocument:this.props.onDownloadMessageDocument,onPreviewDocument:this.props.onPreviewDocument})}}]),Container}(l.PureComponent),O=Object(d.b)([function(e){return e.ui.featureFlags.FLEX_DOCS_MANAGEMENT},j],(function(e,t){return{fdManagementFeatureFlag:e&&t===r.DEFAULT}})),T=Object(u.connect)(O,(function mapDispatchToProps(e){return{updateActivity:function updateActivity(t){e(new m.R(t))},onDownloadMessageDocument:function onDownloadMessageDocument(t){e(new m.P(t))},onPreviewDocument:function onPreviewDocument(){e(h.a.withEvent({eventCategory:"Message Document",eventAction:"Document Preview"}))}}}))(v)},,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=function(e){Object(i.a)(MessageAssignApiAction,e);var t=Object(o.a)(MessageAssignApiAction);function MessageAssignApiAction(e,n){var a;return Object(r.a)(this,MessageAssignApiAction),(a=t.call(this)).messageId=e,a.userIds=n,a}return Object(a.a)(MessageAssignApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/message/").concat(this.messageId,"/relationships/assignment"),body:JSON.stringify({data:this.userIds.map((function(e){return{type:"user",id:e}}))}),method:s.c.POST}}}]),MessageAssignApiAction}(c.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return traverseForTeams}));var r=n(13),a=n(8);function traverseForTeams(e){var t=[],n=!1,i=!1;if(e.combinator===a.g.NOT)return{teams:t,allTeams:i};return function teamsInSearch(e){e.isEmpty()||n||e.children.forEach((function(e){e instanceof r.k?e.combinator!==a.g.NOT&&(e instanceof r.b&&(i=!0,n=!0),teamsInSearch(e)):e instanceof r.b&&(i=!0,n=!0),e instanceof r.J&&t.push(e.value)}))}(e),{teams:t,allTeams:i}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var a=r.createElement("path",{d:"M16.586 6H13V4h7v7h-2V7.414l-4.293 4.293-1.414-1.414L16.586 6zM6 16.586l4.293-4.293 1.414 1.414L7.414 18H11v2H4v-7h2v3.586z"});function SvgExpand(e,t){var n=e.title,i=e.titleId,o=_objectWithoutProperties(e,["title","titleId"]);return r.createElement("svg",_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,a)}var i=r.forwardRef(SvgExpand);n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var a=r.createElement("path",{d:"M20 6v2H4V6h16zm0 5v2H4v-2h16zm-6 5v2H4v-2h10z"});function SvgPlainText(e,t){var n=e.title,i=e.titleId,o=_objectWithoutProperties(e,["title","titleId"]);return r.createElement("svg",_extends({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,a)}var i=r.forwardRef(SvgPlainText);n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var a=r.createElement("path",{fill:"none",d:"M0 0h32v32H0z"}),i=r.createElement("path",{d:"M17 5H8v22h16V12h-7V5zm2 .414V10h4.586L19 5.414zM6 3h13.414L26 9.586V29H6V3zm14.21 14.894c1.06 0 1.84.267 2.284.84.304.393.439.915.312 1.54-.186.926-.84 1.481-1.76 1.481-.985 0-2.194-.62-3.55-1.637a20.028 20.028 0 00-3.079 1.143c-.808 2.577-1.779 4.239-3.155 4.239-.444 0-.853-.191-1.2-.544-.441-.45-.634-1.02-.538-1.619.107-.674.573-1.335 1.357-1.986.545-.451 1.261-.911 2.092-1.345.317-1.143.562-2.379.705-3.548-1.512-1.826-2.376-3.442-2.032-4.669.158-.562.564-1.013 1.252-1.21.708-.203 1.383-.009 1.851.538.665.775.953 2.288.738 4.757a22.115 22.115 0 002.407 2.319c.868-.196 1.66-.299 2.316-.299zm-8.938 5.828c.038-.03.193-.173.385-.459.1-.15.204-.325.307-.525-.436.36-.692.674-.725.883-.004.028-.006.022.052.081.016.016.02.022.015.025l-.034-.005zm2.51-10.14c-.055-.65-.177-1.107-.341-1.3-.012-.012-.008-.013-.004-.012l.003.001a.31.31 0 00-.07.014c-.04.01-.053.01-.057.006-.05.224.125.695.47 1.29zm1.943 5.152l.092-.023c-.19-.177-.38-.357-.566-.541l-.012.112-.07-.081a24.5 24.5 0 01-.157.79l.094-.047-.035.118c.242-.093.487-.183.731-.267l-.077-.06zm5.321 1.249c.085 0 .037.04.058-.065.018-.091.023-.09.025-.086-.057-.072-.319-.165-.92-.165-.046 0-.094 0-.142.002.414.206.752.314.98.314z"});function SvgDocPdf(e,t){var n=e.title,o=e.titleId,c=_objectWithoutProperties(e,["title","titleId"]);return r.createElement("svg",_extends({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},c),n?r.createElement("title",{id:o},n):null,a,i)}var o=r.forwardRef(SvgDocPdf);n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var a=r.createElement("path",{fill:"none",d:"M0 0h32v32H0z"}),i=r.createElement("path",{d:"M13.233 19.5l-3.022-3.886 1.578-1.228 2.711 3.485 2.71-3.485 1.58 1.228-3.023 3.886 3.022 3.886-1.578 1.228-2.711-3.485-2.71 3.485-1.58-1.228 3.023-3.886zM17 5H8v22h16V12h-7V5zm2 .414V10h4.586L19 5.414zM6 3h13.414L26 9.586V29H6V3z"});function SvgDocExcel(e,t){var n=e.title,o=e.titleId,c=_objectWithoutProperties(e,["title","titleId"]);return r.createElement("svg",_extends({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},c),n?r.createElement("title",{id:o},n):null,a,i)}var o=r.forwardRef(SvgDocExcel);n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var a=r.createElement("path",{fill:"none",d:"M0 0h32v32H0z"}),i=r.createElement("path",{d:"M17 5H8v22h16V12h-7V5zm2 .414V10h4.586L19 5.414zM6 3h13.414L26 9.586V29H6V3zm12.592 17.789l1.446-5.064 1.924.55-2.554 8.936L16 20.667l-3.408 4.544-2.554-8.936 1.924-.55 1.446 5.064L16 17.333l2.592 3.456z"});function SvgDocWord(e,t){var n=e.title,o=e.titleId,c=_objectWithoutProperties(e,["title","titleId"]);return r.createElement("svg",_extends({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},c),n?r.createElement("title",{id:o},n):null,a,i)}var o=r.forwardRef(SvgDocWord);n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var a=r.createElement("path",{fill:"none",d:"M0 0h32v32H0z"}),i=r.createElement("path",{d:"M17 5H8v22h16V12h-7V5zm2 .414V10h4.586L19 5.414zM6 3h13.414L26 9.586V29H6V3zm7 18v3h-2v-9h4a3 3 0 010 6h-2zm0-2h2a1 1 0 000-2h-2v2z"});function SvgDocPowerpoint(e,t){var n=e.title,o=e.titleId,c=_objectWithoutProperties(e,["title","titleId"]);return r.createElement("svg",_extends({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},c),n?r.createElement("title",{id:o},n):null,a,i)}var o=r.forwardRef(SvgDocPowerpoint);n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var a=r.createElement("path",{fill:"none",d:"M0 0h32v32H0z"}),i=r.createElement("path",{d:"M17 5H8v22h16V12h-7V5zm2 .414V10h4.586L19 5.414zM6 3h13.414L26 9.586V29H6V3z"});function SvgDocUnknown(e,t){var n=e.title,o=e.titleId,c=_objectWithoutProperties(e,["title","titleId"]);return r.createElement("svg",_extends({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},c),n?r.createElement("title",{id:o},n):null,a,i)}var o=r.forwardRef(SvgDocUnknown);n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var a=r.createElement("path",{fill:"none",d:"M0 0h32v32H0z"}),i=r.createElement("path",{d:"M6 3h13.414L26 9.586V29H6V3zm2 2v22h16V10.414L18.586 5H8zm8 20v2h-2v-2h2zm2-2v2h-2v-2h2zm-2-2v2h-2v-2h2zm2-2v2h-2v-2h2zm-2-2v2h-2v-2h2zm2-2v2h-2v-2h2z"});function SvgDocArchive(e,t){var n=e.title,o=e.titleId,c=_objectWithoutProperties(e,["title","titleId"]);return r.createElement("svg",_extends({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},c),n?r.createElement("title",{id:o},n):null,a,i)}var o=r.forwardRef(SvgDocArchive);n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var a=r.createElement("path",{fill:"none",d:"M0 0h32v32H0z"}),i=r.createElement("path",{d:"M17 5H8v22h16V12h-7V5zm2 .414V10h4.586L19 5.414zM6 3h13.414L26 9.586V29H6V3zm14 15v2H10v-2h10zm-4 4v2h-6v-2h6z"});function SvgDocText(e,t){var n=e.title,o=e.titleId,c=_objectWithoutProperties(e,["title","titleId"]);return r.createElement("svg",_extends({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},c),n?r.createElement("title",{id:o},n):null,a,i)}var o=r.forwardRef(SvgDocText);n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=n(37),u=function(e){Object(i.a)(MessageBatchCreateShareableMessageLinkAction,e);var t=Object(o.a)(MessageBatchCreateShareableMessageLinkAction);function MessageBatchCreateShareableMessageLinkAction(e){var n;return Object(r.a)(this,MessageBatchCreateShareableMessageLinkAction),(n=t.call(this)).messageIds=e,n.messageIdsToOperations=function(e){return e.map((function(e){return{op:"POST",path:"/",value:{type:"shareable_message_link",relationships:{message:{data:{type:"message",id:e}}}}}}))},n}return Object(a.a)(MessageBatchCreateShareableMessageLinkAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/shareable-message-link"),body:JSON.stringify(this.messageIdsToOperations(this.messageIds)),method:s.c.POST,headers:{"Content-Type":l.d.JSONPATCH}}}}]),MessageBatchCreateShareableMessageLinkAction}(c.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),a=n(5),i=n(6),o=n(14),c=n(57),s=function(e){Object(a.a)(FulfillPagination,e);var t=Object(i.a)(FulfillPagination);function FulfillPagination(e,n,a,i,o){var s,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:c.d;return Object(r.a)(this,FulfillPagination),(s=t.call(this)).currentSearch=e,s.lastMessageTimestamp=n,s.lastMessageId=a,s.exact=i,s.total=o,s.limit=l,s}return FulfillPagination}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n(179),i=n(15),o=function getDeleteBookmarkHeaderText(e,t){return(null===e||void 0===e?void 0:e.userId)===t.id?"Are you sure you want to delete this bookmark?":"Are you sure you want to remove yourself from this shared bookmark?"},c=function getAdditionalBookmarkText(e){return e&&function shouldShowNotification(e){return e.canSubscribe}(e)&&e.isSubscribed?"You will stop receiving notifications for this bookmark.":null},s=function getAdditionalWarningSharedBookmarkText(e){return e&&function shouldShowDeleteSharedSavedSearch(e){var t=e.shares;return t&&(t.userIds.length>0||t.teamIds.length>0)}(e)?"You will stop sharing this bookmark with all tagged users or ".concat(i.b.t(i.a.TEAM_PLURAL),"."):null},l=function BookmarkDeleteConfirmationModal(e){var t=e.isOpen,n=e.onClose,i=e.onConfirm,l=e.bookmark,u=e.currentUser;return Object(r.jsxs)(a.a,{isOpen:t,toggle:n,headerText:o(l,u),confirmText:"Delete",cancelText:"Cancel",confirm:i,modalId:"delete-bookmark",children:[c(l),s(l)]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),a=n(1),i=function generateWarningMessages(e){var t=a.Children.toArray(e);return t.length<=1?e:Object(r.jsx)("ul",{children:t.map((function(e,t){return Object(r.jsx)("li",{children:e},t)}))})}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return NotificationSubscriptionToggle}));var r=n(0),a=n(1),i=n(31),o=n(9),c=n(76),s=n(28),l=n(285),u=n(58),d=n(13),b=n(15),p=function getTooltipContent(e){if(e.isSubscribed)return"Notifications On";if(e.canSubscribe)return"Notifications Off";var t=Object(d.P)(e.filterSet),n=[],r=function buildValidationDict(){return{noTeamToken:"require the use of ".concat(b.b.t(b.a.TEAM_TAG,{context:"article"})," or an All ").concat(b.b.t(b.a.TEAM_PLURAL)," token"),hasMyMessages:"do not support the use of the My Messages token",hasDateTime:"do not support the use of date and time filters",hasAssetTag:"do not support the use of asset tag filters"}}();return!t.hasTeamToken&&n.push(r.noTeamToken),t.hasMyMessages&&n.push(r.hasMyMessages),t.hasDateTime&&n.push(r.hasDateTime),t.hasAssetTag&&n.push(r.hasAssetTag),n.length?function buildValidationText(e){return e.reduce((function(t,n,r){n=" "+n,r===e.length-1&&(n+=".");var a=t.includes("require the use of");1===r&&a&&(n=", and"+n),t.includes("do not support the use of")&&(n=n.replace("do not support the use of ",""));var i=a?r===e.length-1&&e.length>3:r===e.length-1&&e.length>2,o=a?r>1&&e.length>3:r>0&&e.length>2,c=a?2===r&&e.length<4:1===r&&e.length<3;return i?n=", or"+n:o?n=","+n:c&&(n=" or"+n),t+n}),"Notifications")}(n)+" You must edit this bookmark with these requirements to enable Notifications.":"Notifications are not supported for this bookmark."};function NotificationSubscriptionToggle(e){var t=e.bookmark,n=e.isMobile,d=t.isSubscribed,b=t.id,m=t.canSubscribe,h=Object(s.useDispatch)(),g=Object(r.jsx)(i.a,{size:n?"small":"regular",iconGlyph:Object(o.e)(d?o.c.BELL:o.c.BELL_STRIKETHROUGH),onClick:Object(l.a)((function(){h(new c.s(b,!d))})),disabled:!m}),j=a.useMemo((function(){return p(t)}),[t]);return!n||!m?Object(r.jsx)(u.a,{content:Object(r.jsx)("span",{children:j}),maxWidth:n?300:400,children:Object(r.jsx)("div",{onClick:function handleClick(e){e.preventDefault(),e.stopPropagation()},children:g})}):g}},function(e,t,n){"use strict";function numIconsInHeader(e,t){var n=2;return e&&n++,t&&n++,n}n.d(t,"a",(function(){return numIconsInHeader}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=function(e){Object(i.a)(JobReferenceListAllApiAction,e);var t=Object(o.a)(JobReferenceListAllApiAction);function JobReferenceListAllApiAction(){return Object(r.a)(this,JobReferenceListAllApiAction),t.apply(this,arguments)}return Object(a.a)(JobReferenceListAllApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/job-reference?include=user"),method:s.c.GET}}}]),JobReferenceListAllApiAction}(c.a),u=function(e){Object(i.a)(JobReferenceGetFollowersApiAction,e);var t=Object(o.a)(JobReferenceGetFollowersApiAction);function JobReferenceGetFollowersApiAction(e){var n;return Object(r.a)(this,JobReferenceGetFollowersApiAction),(n=t.call(this)).jobReferenceId=e,n}return Object(a.a)(JobReferenceGetFollowersApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/job-reference/").concat(this.jobReferenceId,"/followers"),method:s.c.GET}}}]),JobReferenceGetFollowersApiAction}(c.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return mergeJobReferenceSearch}));var r=n(23),a=n(189),i=n(63),o=n(52);function mergeJobReferenceSearch(e,t,n,l,u){var d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:10,b=u?Object(a.c)(l):Object(a.d)(l),p=t.filter((function(t){return!e.has(t.name)&&b.test(t.name)})),m=new Set(p.map((function(e){return e.name}))),h=n.filter((function(t){return!m.has(t.attributes.name)&&!e.has(t.attributes.name)&&b.test(t.attributes.name)})),g=[].concat(Object(r.a)(p),Object(r.a)(h)).find((function(e){return s(e,l)})),j=[].concat(Object(r.a)(p),Object(r.a)(h)).filter((function(e){return!s(e,l)})).sort(Object(i.c)(Object(i.a)((function(e){return c(e)?e.attributes.createdAt:e.createdAt})))).slice(0,d),v=g?Object(o.i)(g,j):j;return v.map((function(e){var t;return c(e)?{id:e.id,name:e.attributes.name,tagId:(null===(t=e.relationships)||void 0===t?void 0:t.tag)?e.relationships.tag.data.id:null,inactive:e.attributes.archived}:{id:e.id,name:e.name,tagId:e.tagId,inactive:!1}}))}var c=function isResource(e){return e.hasOwnProperty("relationships")},s=function exactlyMatchesQuery(e,t){return(c(e)?e.attributes.name:e.name).toLowerCase()===t.toLowerCase()}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return NavBar}));var r=n(0),a=n(24),i=n.n(a),o=n(19),c=n(9);function NavBar(e){var t=e.className,n=e.showPreviousButton,a=e.showNextButton,s=e.previousMonth,l=e.nextMonth,u=e.onChange;return Object(r.jsxs)("div",{className:i()("c-date-picker__nav-bar",t),children:[n&&Object(r.jsx)("div",{className:"c-date-picker__nav-button c--previous",onClick:function handlePreviousClick(){return u(s)},children:Object(r.jsx)(o.a,{glyph:Object(c.e)(c.c.ARROW_LEFT),size:"regular",className:"c-date-picker__nav-icon"})}),a&&Object(r.jsx)("div",{className:"c-date-picker__nav-button c--next",onClick:function handleNextClick(){return u(l)},children:Object(r.jsx)(o.a,{glyph:Object(c.e)(c.c.ARROW_RIGHT),size:"regular",className:"c-date-picker__nav-icon"})})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(0),a=n(12),i=n(723),o=n(31),c=n(9),s=Object(a.b)(i.a).withConfig({displayName:"share-sheet-header__Container",componentId:"sc-1wagdyh-0"})(["display:flex;padding:var(--spacing-6);.modal-title{flex:1;}"]),l=a.b.div.withConfig({displayName:"share-sheet-header__CloseModalButton",componentId:"sc-1wagdyh-1"})(["position:absolute;top:0;right:0;margin:20px;"]),u=function BackButton(e){return Object(r.jsx)(o.a,{className:"u-mr-md",buttonContent:"Go Back",iconGlyph:Object(c.e)(c.c.ARROW_LEFT),onClick:function onClick(){return e.onClick()},size:"regular"})},d=a.b.span.withConfig({displayName:"share-sheet-header__ModalTitle",componentId:"sc-1wagdyh-2"})(["font-size:var(--fs-xxlg);"]),b=a.b.div.withConfig({displayName:"share-sheet-header__ContentContainer",componentId:"sc-1wagdyh-3"})(["width:100%;margin-top:var(--spacing-6);display:flex;justify-content:center;"]),p=a.b.div.withConfig({displayName:"share-sheet-header__TitleContainer",componentId:"sc-1wagdyh-4"})(["display:flex;align-items:center;"]),m=function ShareSheetHeader(e){var t=Object(r.jsx)(l,{children:Object(r.jsx)(o.a,{className:"u-self-start",buttonContent:"Close",iconGlyph:Object(c.e)(c.c.CLEAR),onClick:e.toggle,"data-testid":"close-modal-button"})});return Object(r.jsxs)(s,{tag:"div",toggle:e.toggle,close:t,children:[Object(r.jsxs)(p,{children:[e.navigate&&Object(r.jsx)(u,{onClick:e.navigate}),Object(r.jsx)(d,{children:e.title})]}),e.children&&Object(r.jsx)(b,{children:e.children})]})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return SednaModal})),n.d(t,"a",(function(){return b}));var r=n(3),a=n(5),i=n(6),o=n(4),c=n(0),s=n(1),l=n(270),u=n.n(l),d=n(28);function SednaModal(e){var t=Object(d.useDispatch)();return Object(s.useEffect)((function(){t(new b(e.isOpen))}),[t,e.isOpen]),Object(c.jsx)(u.a,Object(o.a)({},e))}var b=function(e){Object(a.a)(ModalToggle,e);var t=Object(i.a)(ModalToggle);function ModalToggle(e){var n;return Object(r.a)(this,ModalToggle),(n=t.call(this)).state=e,n}return ModalToggle}(n(14).a)},,,function(e,t,n){"use strict";function getAccessibleTeams(e,t){return e.filter((function(e){return t.includes(e.id,0)}))}n.d(t,"a",(function(){return getAccessibleTeams}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(4),a=n(21),i=n(23),o=n(0),c=n(1),s=n.n(c),l=n(117),u=n(192),d=n(271),b=n(12),p=n(728),m=n.n(p),h={SelectContainer:b.b.div.withConfig({displayName:"select__SelectContainer",componentId:"azlb6i-0"})(["position:relative;display:flex;"])},g=function Select(e){var t,n=e.value,b=e.invalid,p=e.disabled,g=e.onFocus,j=e.onBlur,v=e.name,O=e.id,T=e.onSelect,y=e.options,S=e.required,C=e.testId,A=e.placeholder,E=s.a.useMemo((function(){return S?y:[{label:"",value:null}].concat(Object(i.a)(y))}),[y,S]),w=s.a.useCallback((function(e){return E.find((function(t){return m.a.isEqual(e,t.value)}))}),[E]);s.a.useEffect((function(){var e;k(null!==(e=w(n))&&void 0!==e?e:{label:"",value:null})}),[n,w]);var _=Object(c.useState)(null!==(t=w(n))&&void 0!==t?t:{label:"",value:null}),I=Object(a.a)(_,2),x=I[0],k=I[1],N=s.a.useCallback((function(e){var t,n=e.selectedItem;T(null!==(t=null===n||void 0===n?void 0:n.value)&&void 0!==t?t:void 0),k(n)}),[T]),R=Object(l.b)({itemToString:function itemToString(e){var t;return null!==(t=null===e||void 0===e?void 0:e.label)&&void 0!==t?t:""},items:E,selectedItem:x,onSelectedItemChange:N}),F=R.isOpen,M=R.getMenuProps,D=R.getItemProps,L=R.getInputProps,P=R.getComboboxProps,U=R.toggleMenu,B=R.highlightedIndex;return Object(o.jsxs)(h.SelectContainer,{children:[Object(o.jsx)(d.a,{toggleMenu:U,comboboxProps:P(),inputProps:L(Object(r.a)(Object(r.a)({},O&&{id:O}),{},{disabled:p,refKey:"inputRef"})),onFocus:g,onBlur:j,disabled:p,invalid:b,name:v,type:"button",testId:C,placeholder:null!==A&&void 0!==A?A:null===x||void 0===x?void 0:x.label,isPlaceholderText:!!A}),Object(o.jsx)(u.a,{isOpen:F,menuProps:M(Object(r.a)(Object(r.a)({},O&&{id:"".concat(O,"-menu")}),{},{refKey:"menuRef"})),children:F?E.map((function(e,t){return Object(o.jsx)(u.b,{itemProps:D(Object(r.a)(Object(r.a)({},O&&{id:"".concat(O,"-menu-item-").concat(e.value)}),{},{item:e,index:t,refKey:"itemRef"})),item:e,highlight:B===t||e===x},t)})):null})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return L}));var r=n(23),a=n(4),i=n(21),o=n(0),c=n(1),s=n(22),l=n(30),u=n(28),d=n(2),b=n(42),p=n(26),m=n(27),h=n(52),g=n(44),j=n(355),v=n(189),O=n(25),T=n(50),y=n(49),S=n(29),C=n(798),A=n.n(C),E=(n(1253),n(59));var w=function contactIdFromUri(e){return O.a.of(Object(l.parse)(e.search).contactId)},_=function contactGroupIdFromUri(e){return O.a.of(Object(l.parse)(e.search).contactGroupId)},I=function sendingTeamFromUri(e){return O.a.of(Object(l.parse)(e.search).sendingTeamId).toUndefined()},x=function contactAddresses(e){return w(e.location).map((function(t){return d.g(e.contacts,t).map((function(e){return e.attributes.emailAddresses.map((function(t){var n,r;return{email:t,name:Object(g.c)(null!==(n=e.attributes.firstName)&&void 0!==n?n:"",null!==(r=e.attributes.lastName)&&void 0!==r?r:"")}}))}))})).orElse(b.a.of([]))},k=function groupAddresses(e){return _(e.location).map((function(t){var n=d.g(e.contactGroups,t).map((function(e){var t,n;return(null!==(t=null===(n=e.relationships.contact)||void 0===n?void 0:n.data)&&void 0!==t?t:[]).map((function(e){return e.id}))}));return d.m(n,(function(t){return d.g(e.contacts,t)})).map((function(e){return e.map((function(e){return e.attributes.emailAddresses.map((function(t){var n,r;return{email:t,name:Object(g.c)(null!==(n=e.attributes.firstName)&&void 0!==n?n:"",null!==(r=e.attributes.lastName)&&void 0!==r?r:"")}}))}))})).map((function(e){return Object(h.b)(e)}))})).orElse(b.a.of([]))},N=function contactAndGroupAddresses(e){var t=x(e),n=k(e);return b.a.lift2((function concat2(e,t){return Object(h.b)([e,t])}))(t,n)},R=function buildCreateAction(e,t,n,r){var i=function buildCreateParams(n){var r;return Object(a.a)({fromName:Object(j.b)({template:t.tenantConfig.settings.EMAIL_FROM_NAME_FORMAT,tenantName:t.tenantConfig.tenant.name,tenantShortName:t.tenantConfig.tenant.shortName,teamName:n?n.name:t.currentTeam.name,teamSendingName:null!==(r=n?n.sendingName:t.currentTeam.sendingName)&&void 0!==r?r:null,userInitials:t.currentUser.initials,userFullName:Object(g.c)(t.currentUser.firstName,t.currentUser.lastName)}),signature:t.currentUser.emailSignature,to:e,bccDefaultRecipient:t.tenantConfig.settings.BCC_DEFAULT_RECIPIENT,currentTeamId:t.currentTeam.id,currentUserId:t.currentUser.id,location:t.location,futureDraft:t.futureDraft,automaticSignatureSwitcherEnabled:t.automaticSignatureSwitcherEnabled},n&&{explicitTeamDetails:{currentTeamId:t.currentTeam.id,explicitTeamId:n.id}})};if(!r)return n(i());n(function buildReplyParamsWithExplicitTeam(){return i(d.g(t.teams,r).toUndefined())}())},F=Object(p.b)([function(e){return e.ui.messageCompose.nextDraft},function(e,t){return t.location},function(e){return e.entities.contactGroup},function(e){return e.entities.contact},function(e){return e.entities.team},function(e){return e.ui.featureFlags.AUTOMATIC_SIGNATURE_SWITCHER}],(function(e,t,n,r,a,i){return{futureDraft:O.a.of(e),location:t,contacts:r,contactGroups:n,teams:a,automaticSignatureSwitcherEnabled:i}})),M=function createMessage(e){var t=e.signature,n=e.fromName,a=e.to,i=e.bccDefaultRecipient,o=e.currentTeamId,c=e.currentUserId,s=e.location,u=e.futureDraft,d=e.explicitTeamDetails,b=Object(l.parse)(s.search),p=b.subject||"",h=b.bodyHtml||"",g=parseAddresses(b.to||""),j=parseAddresses(b.cc||""),O=parseAddresses(b.bcc||""),T=b.emlUrl||null,y=b.addressSeparator||"SEMICOLON",S=t?"<div><br /></div><div><br /></div><div>".concat(Object(v.b)(t),"</div>"):"";i?O.push.apply(O,Object(r.a)(a)):g.push.apply(g,Object(r.a)(a));var C=!b.bodyHtml;return delete b.to,delete b.cc,delete b.bcc,delete b.subject,delete b.bodyHtml,delete b.contactId,delete b.contactGroupId,delete b.emlUrl,delete b.addressSeparator,T?new m.u(T,o,c,n,y,Object(l.stringify)(b)):u.map((function(e){var t,r,a,i,s;return new m.lb(null!==(t=e.subject)&&void 0!==t?t:p,(null!==(r=e.body)&&void 0!==r?r:h)+S,c,o,null!==(a=e.to)&&void 0!==a?a:g,null!==(i=e.cc)&&void 0!==i?i:j,null!==(s=e.bcc)&&void 0!==s?s:O,Object(l.stringify)(b),e.from?e.from.name:n,!1,d)})).orElse(new m.lb(p,h+S,c,o,g,j,O,Object(l.stringify)(b),n,C,d))},D={createMessage:function createMessage(e){var t=e.explicitTeamDetails;return t&&t.explicitTeamId!==t.currentTeamId?E.h.switchTeamNoReset(t.explicitTeamId,[function(t){return M(Object(a.a)(Object(a.a)({},e),{},{signature:t.user.emailSignature}))}]):M(e)},fetchContactGroup:function fetchContactGroup(e){return new y.K(e)},fetchContact:function fetchContact(e){return new y.I(e)},resetNextDraft:function resetNextDraft(){return new m.Y},trackNewMessageCreate:function trackNewMessageCreate(){return S.a.withEvent(Object(S.e)("New Message"))}};function parseAddresses(e){return A()(e).map((function(e){return{name:e.name,email:e.address}}))}var L=Object(s.j)(Object(u.connect)(F,D)((function NewMessageComponent(e){var t=c.useState(!1),n=Object(i.a)(t,2),r=n[0],a=n[1];return c.useEffect((function(){return w(e.location).ifPresent((function(t){return x(e).ifNotLoading((function(){e.fetchContact(t)}))})),_(e.location).ifPresent((function(t){return k(e).ifNotLoading((function(){e.fetchContactGroup(t)}))})),function(){e.resetNextDraft()}}),[]),c.useEffect((function(){r||N(e).map((function(t){return a(!0),R(t,e,e.createMessage,I(e.location)),e.trackNewMessageCreate(),!1}))})),Object(o.jsx)("div",{className:"v-new-message-container c-layout",children:Object(o.jsx)(T.b,{spinner:T.a,fadeIn:"quarter"})})})))},function(e,t,n){"use strict";n.d(t,"a",(function(){return MessageItemBlockV2}));var r=n(0),a=(n(1),n(32)),i=n.n(a),o=n(24),c=n.n(o),s=n(19),l=n(9),u=n(66),d=n(265),b=(n(1258),n(137)),p=n(725),m=n(44),h=n(477),g=n(38),j=n(8);function MessageItemBlockV2(e){var t=e.message,n=e.isActive,a=e.style,o=e.currentUser,d=e.highlightLastMessage,b=e.href,p=e.isLastInTheJRGroup,m=e.isMobile,v=t.meta,O=t.readBy,T=t.assignment,y=t.jobReference,S=t.categoryTag,C=O.some((function(e){return e.userId===o.id})),A=O.length>0,E=T.some((function(e){return e.assignedToUserId===o.id})),w=T.filter((function(e){return e.assignedToUserId!==o.id})).length,_=v.state===j.m.PrivateDraft||v.state===j.m.Draft||v.state===j.m.Cancelled,I=v.state===j.m.Sending,x=v.state===j.m.Sent||I,k=_||I||x,N=!v.inInbox&&!_,R=y.length>0,F=v.state===j.m.Scheduled||v.state===j.m.Sending||v.state===j.m.Sent?i()(v.sentDate):i()(v.receivedDate),M=!C&&!k,D=!A&&!k;if(e.showExcerpt){var L=Object(r.jsx)("div",{className:c()("c-message-item-block-v2",{"c--draft-v2":_}),"data-testid":_?"message-list-item-draft":"message-list-item",children:Object(r.jsxs)("a",{className:c()("c-message-item-block-v2__tile  c--excerpt-v2",{"c--active-v2":n},{"c--highlight-v2":d},{"c--has-job-v2":R},{"c--is-last-jr":R&&p},{"c--jr-header-disabled":!e.showJrHeader&&R}),href:b,onClick:function onClick(t){return e.clickHandler(t)},onAnimationEnd:e.onAnimationEnd,"data-testid":n?e.message.meta.id:void 0,children:[Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--1",children:renderMessageStateIcon(v,D,M,N,C,n)}),Object(r.jsxs)("div",{className:"c-message-item-block-v2__grid-section c--2",children:[Object(r.jsx)("div",{className:c()("c-message-item-block-v2__sender",{"u-fw-b":e.listTileBold===g.c.BOLD_SENDER}),children:renderUserDetails(v,t.sender,o)}),Object(r.jsx)("div",{className:"c-message-item-block-v2__date",children:Object(u.c)(F,!1)})]}),Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--3",children:E&&Object(r.jsx)("div",{className:c()("c-message-item-block-v2__indicator c--follow-v2",{"c--active-v2":n}),children:Object(r.jsx)("span",{className:"u-clip",children:"Following"})})}),Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--4",children:v.hasAttachment&&Object(r.jsx)(s.a,{className:"u-text-medium",glyph:Object(l.e)(l.c.ATTACHMENT_18),size:"small"})}),Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--5",children:Object(r.jsx)("div",{className:c()("c-message-item-block-v2__subject",{"u-fw-b":e.listTileBold===g.c.BOLD_SUBJECT||""===v.subject}),children:""!==v.subject?v.subject:"(No Subject)"})}),Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--6",children:renderCommentIcon(v,e.currentUser.id)}),Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--7",children:renderShareIcon(v,e.currentTeamId,C,!0)}),Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--8",children:Object(r.jsx)("div",{className:c()("c-message-item-block-v2__snippet",{"u-mr-lg":hasIcons(v,S,w,!0)}),children:v.snippet})}),Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--9",children:renderTagIcon(S,w)})]})});return Object(r.jsx)("div",{style:a,className:"c-message-item-block-v2__wrapper","data-testid":"message-item-block-v2__wrapper",children:m?Object(r.jsx)(h.a,{message:t,currentUserId:o.id,children:L}):L},t.meta.id)}var P=Object(r.jsx)("div",{className:c()("c-message-item-block-v2",{"c--draft-v2":_}),"data-testid":_?"message-list-item-draft":"message-list-item",children:Object(r.jsxs)("a",{className:c()("c-message-item-block-v2__tile",{"c--active-v2":n},{"c--highlight-v2":d},{"c--has-job-v2":R},{"c--is-last-jr":R&&p},{"c--jr-header-disabled":!e.showJrHeader&&R}),href:b,onClick:function onClick(t){return e.clickHandler(t)},onAnimationEnd:e.onAnimationEnd,"data-testid":n?e.message.meta.id:void 0,children:[Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--1",children:renderMessageStateIcon(v,D,M,N,C,n)}),Object(r.jsxs)("div",{className:"c-message-item-block-v2__grid-section c--2",children:[renderShareIcon(v,e.currentTeamId,C,!1),Object(r.jsx)("div",{className:c()("c-message-item-block-v2__sender",{"u-fw-b":e.listTileBold===g.c.BOLD_SENDER}),children:renderUserDetails(v,t.sender,o)}),Object(r.jsx)("div",{className:"c-message-item-block-v2__date",children:Object(u.c)(F,!1)})]}),Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--3",children:E&&Object(r.jsx)("div",{className:c()("c-message-item-block-v2__indicator c--follow-v2",{"c--active-v2":n}),children:Object(r.jsx)("span",{className:"u-clip",children:"Following"})})}),Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--4",children:v.hasAttachment&&Object(r.jsx)(s.a,{className:"u-text-medium",glyph:Object(l.e)(l.c.ATTACHMENT_18),size:"small"})}),Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section c--5",children:Object(r.jsx)("div",{className:c()("c-message-item-block-v2__subject",{"u-fw-b":e.listTileBold!==g.c.BOLD_SENDER},{"c--icons-v2":hasIcons(v,S,w,!1)}),children:""!==v.subject?v.subject:"(No Subject)"})}),Object(r.jsxs)("div",{className:"c-message-item-block-v2__grid-section c--6",children:[renderCommentIcon(v,e.currentUser.id),renderTagIcon(S,w)]})]})});return Object(r.jsx)("div",{style:a,className:"c-message-item-block-v2__wrapper",children:m?Object(r.jsx)(h.a,{message:t,currentUserId:o.id,children:P}):P},t.meta.id)}function hasIcons(e,t,n,r){var a=e.activitySummary.comments.length>0,i=t.length>0,o=n>0;return r?o&&i:a&&i||i&&o||a&&o}function renderCommentIcon(e,t){var n=e.activitySummary.comments.length>0,a=Object(d.a)(e.witness,e.activitySummary,t);return Object(r.jsx)("div",{"data-testid":"chatIcon",children:n&&Object(r.jsx)(s.a,{className:"u-text-medium"+(a?" u-sed-red":""),glyph:Object(l.e)(l.c.COMMENT_18),size:"small"})})}function renderCategoryIcon(){return Object(r.jsx)("div",{"data-testid":"assignedToGroup",children:Object(r.jsx)(s.a,{className:"u-sed-category u-ml-sm",glyph:Object(l.e)(l.c.TAG_18),size:"small"})})}function renderPersonIcon(){return Object(r.jsx)("div",{"data-testid":"assignedToUser",children:Object(r.jsx)(s.a,{glyph:Object(l.e)(l.c.PERSON_18),size:"small",className:"u-sed-person u-flex-shrink-0 u-ml-sm"})})}function renderTagIcon(e,t){var n=e.length>0,a=t>0;return n&&a?Object(r.jsxs)("div",{className:"c-message-item-block-v2__grid-section",children:[renderCategoryIcon(),renderPersonIcon()]}):n?Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section",children:renderCategoryIcon()}):a?Object(r.jsx)("div",{className:"c-message-item-block-v2__grid-section",children:renderPersonIcon()}):void 0}function renderShareIcon(e,t,n,a){return e.activitySummary.shares.length?Object(r.jsx)("div",{className:a?"":"u-pr-sm","data-testid":"shareIcon",children:Object(r.jsx)(s.a,{className:n?"u-text-medium":"u-sed-red",glyph:Object(l.e)(l.c.SHARE),size:"small"})}):Object(r.jsx)(r.Fragment,{})}function renderUserDetails(e,t,n){return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)("div",{className:"c-message-item-block-v2__sender_from",children:e.fromName||e.fromEmail}),t.map((function(t){var a="sender-".concat(e.id,"-").concat(t.id);return Object(r.jsx)("div",{className:"c-message-item-block-v2__sender_initials",children:Object(r.jsx)(b.a,{id:a,userFullName:t.initials,state:"active",hideIcon:!0,children:Object(r.jsx)(p.a,{placement:"top",delay:150,autohide:!1,target:a,className:"c-message-address__tooltip",children:Object(m.d)(t,n)})},a)})})).orElse(null)]})}function renderMessageStateIcon(e,t,n,a,i,o){switch(e.state){case j.m.Received:return a?Object(r.jsx)(s.a,{className:c()({"u-sed-red":!i,"u-text-medium":i}),glyph:Object(l.e)(l.c.ARCHIVE_18),size:"small"}):t?Object(r.jsx)("div",{className:"c-message-item-block-v2__indicator","data-testid":"unreadAllStatusIcon",children:Object(r.jsx)("span",{className:"u-clip",children:"Unread"})}):n?Object(r.jsx)("div",{className:c()("c-message-item-block-v2__indicator c--user-v2",{"c--active":o}),"data-testid":"unreadMeStatusIcon",children:Object(r.jsx)("span",{className:"u-clip",children:"Unread by me"})}):Object(r.jsx)("div",{className:"c-message-list-item__icon","data-testid":"statusIcon"});case j.m.Cancelled:return Object(r.jsx)("div",{className:"c-message-list-item__icon","data-testid":"cancelledStatusIcon",children:Object(r.jsx)(s.a,{className:c()({"u-sed-red":!i,"u-text-medium":i}),glyph:Object(l.e)(l.c.CANCELLED_18),size:"small"})});case j.m.Scheduled:return Object(r.jsx)("div",{"data-testid":"scheduledStatusIcon",children:Object(r.jsx)(s.a,{className:c()({"u-sed-red":!i,"u-text-medium":i}),glyph:Object(l.e)(l.c.SCHEDULED),size:"small"})});case j.m.Sending:case j.m.Sent:return a?Object(r.jsx)(s.a,{className:c()({"u-sed-red":!i,"u-text-medium":i}),glyph:Object(l.e)(l.c.SENT_ARCHIVE),size:"small"}):Object(r.jsx)("div",{className:"c-message-list-item__icon","data-testid":"sentStatusIcon",children:Object(r.jsx)(s.a,{className:c()({"u-sed-red":!i,"u-text-medium":i}),glyph:Object(l.e)(l.c.SEND_18),size:"small"})});default:return Object(r.jsx)("div",{className:"c-message-list-item__icon","data-testid":"statusIcon"})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return MessageItemBlockV1}));var r=n(0),a=(n(1),n(32)),i=n.n(a),o=n(24),c=n.n(o),s=n(725),l=n(640),u=n(19),d=n(9),b=n(66),p=n(221),m=n(265),h=(n(799),n(137)),g=n(44),j=n(477),v=n(8);function MessageItemBlockV1(e){var t=e.message,n=e.isActive,a=e.style,o=e.currentUser,m=e.highlightLastMessage,O=e.href,T=t.meta,y=t.readBy,S=t.assignment,C=t.jobReference,A=t.categoryTag,E=y.some((function(e){return e.userId===o.id})),w=y.length>0,_=S.some((function(e){return e.assignedToUserId===o.id})),I=S.filter((function(e){return e.assignedToUserId!==o.id})).length,x=T.state===v.m.PrivateDraft||T.state===v.m.Draft||T.state===v.m.Cancelled,k=T.state===v.m.Sending,N=T.state===v.m.Sent||k,R=x||k||N,F=!T.inInbox&&!x,M=C.length>0,D=T.state===v.m.Scheduled||T.state===v.m.Sending||T.state===v.m.Sent?i()(T.sentDate):i()(T.receivedDate),L=F&&I>0&&A.length>0&&T.hasAttachment,P=Object(r.jsx)("div",{className:c()("c-message-item-block",{"c--draft":x}),"data-testid":"message-item-block-v1",children:Object(r.jsxs)("a",{className:c()("c-message-item-block__tile",{"c--active":n},{"c--highlight":m},{"c--unread-me":!E&&!R},{"c--unread-all":!w&&!R},{"c--following":_},{"c--has-job":M}),href:O,onClick:function onClick(t){return e.clickHandler(t)},children:[Object(r.jsxs)("div",{className:"c-message-item-block__icons",children:[renderCommentIcon(T,e.currentUser.id),renderStatusIcon(T,E),renderShareIcon(T,e.currentTeamId,E)]}),Object(r.jsxs)("div",{className:"c-message-item-block__content",children:[Object(r.jsxs)("div",{className:"c-message-item-block__row",children:[Object(r.jsx)("div",{className:"c-message-item-block__from",children:T.fromName||T.fromEmail}),Object(r.jsx)("div",{className:"c-message-item-block__sender",children:t.sender.map((function(e){var t="sender-".concat(T.id,"-").concat(e.id);return Object(r.jsx)(h.a,{id:t,userFullName:e.initials,state:"active",hideIcon:!0,children:Object(r.jsx)(s.a,{placement:"top",delay:150,autohide:!1,target:t,className:"c-message-address__tooltip",children:Object(g.d)(e,o)})},t)})).orElse(null)}),Object(r.jsx)("div",{className:"c-message-item-block__date",children:Object(b.c)(D,!1)})]}),Object(r.jsx)("div",{className:"c-message-item-block__subject",children:T.subject}),Object(r.jsx)("div",{className:"c-message-item-block__snippet",children:T.snippet})]}),Object(r.jsxs)("div",{className:"c-message-item-block__meta",children:[Object(r.jsx)("div",{className:"c-message-item-block__indicator","data-testid":"attachmentIcon",children:T.hasAttachment&&Object(r.jsx)(u.a,{glyph:Object(d.e)(d.c.PAPERCLIP),size:"small"})}),L?Object(r.jsxs)("div",{className:"c-message-item-block__indicator","data-testid":"assignedToUser",children:[Object(r.jsx)(l.a,{color:"assign",pill:!0,className:"u-di u-mr-xs",children:Object(p.a)(I)}),Object(r.jsx)(l.a,{color:"category",pill:!0,className:"u-di",children:Object(p.a)(A.length)})]}):Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)("div",{className:"c-message-item-block__indicator","data-testid":"assignedToUser",children:I>0&&Object(r.jsx)(l.a,{color:"assign",pill:!0,children:Object(p.a)(I)})}),Object(r.jsx)("div",{className:"c-message-item-block__indicator","data-testid":"assignedToGroup",children:A.length>0&&Object(r.jsx)(l.a,{color:"category",pill:!0,children:Object(p.a)(A.length)})})]}),Object(r.jsx)("div",{className:"c-message-item-block__indicator","data-testid":"archivedIcon",children:F&&Object(r.jsx)(u.a,{glyph:Object(d.e)(d.c.ARCHIVE),size:"small"})})]})]})});return Object(r.jsx)("div",{style:a,className:"c-message-item-block__wrapper",children:e.isMobile?Object(r.jsx)(j.a,{message:t,currentUserId:o.id,children:P}):P},t.meta.id)}function renderCommentIcon(e,t){var n=e.activitySummary.comments.length>0,a=Object(m.a)(e.witness,e.activitySummary,t);return Object(r.jsx)("div",{className:"c-message-item-block__icon","data-testid":"chatIcon",children:n&&Object(r.jsx)(u.a,{className:"u-text-medium"+(a?" u-sed-red":""),glyph:Object(d.e)(d.c.COMMENT),size:"small"})})}function renderStatusIcon(e,t){switch(e.state){case v.m.Cancelled:return Object(r.jsx)("div",{className:"c-message-item-block__icon","data-testid":"statusIcon",children:Object(r.jsx)(u.a,{className:c()({"u-sed-red":!t,"u-text-medium":t}),glyph:Object(d.e)(d.c.CANCEL),size:"small"})});case v.m.Scheduled:return Object(r.jsx)("div",{className:"c-message-item-block__icon","data-testid":"statusIcon",children:Object(r.jsx)(u.a,{className:c()({"u-sed-red":!t,"u-text-medium":t}),glyph:Object(d.e)(d.c.TIME),size:"small"})});case v.m.Sending:case v.m.Sent:return Object(r.jsx)("div",{className:"c-message-item-block__icon","data-testid":"statusIcon",children:Object(r.jsx)(u.a,{className:c()({"u-sed-red":!t,"u-text-medium":t}),glyph:Object(d.e)(d.c.SEND),size:"small"})});default:return Object(r.jsx)("div",{className:"c-message-item-block__icon","data-testid":"statusIcon"})}}function renderShareIcon(e,t,n){var a=e.activitySummary.shares.some((function(e){return e.toTeamId===t||e.fromTeamId===t}));return Object(r.jsx)("div",{className:"c-message-item-block__icon","data-testid":"shareIcon",children:a&&Object(r.jsx)(u.a,{className:n?"u-text-medium":"u-sed-red",glyph:Object(d.e)(d.c.SHARE),size:"small"})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return JrNewHeader}));var r=n(21),a=n(0),i=n(1),o=n(13),c=(n(1260),n(19)),s=n(9),l=n(24),u=n.n(l),d=n(15),b=n(8);function JrNewHeader(e){var t=i.useState(!1),n=Object(r.a)(t,2),l=n[0],p=n[1],m=function toggleHover(){return p(!l)},h=e.jobReferences[0],g=l?s.c.SEARCH:s.c.JOB_18,j=e.jobReferences.length-1;return Object(a.jsxs)("div",{style:e.style,className:"c-jr-new-header","data-testid":"jr-new-header",children:[Object(a.jsxs)("div",{className:u()("c-jr-new-header-block",{"c--hover":l,"c--has-count":j>0}),onClick:function onClick(t){t.preventDefault(),function onJobReferenceSearchClick(t){if(t.relationshipId)e.featureFlags.TAG_SEARCH_ALL_TEAMS?e.searchJobReference(new o.k(b.g.AND,[new o.z({id:t.relationshipId,tagId:t.tagId,name:t.label}),new o.b])):e.searchJobReference(o.k.fromFilterTerm(new o.z({id:t.relationshipId,tagId:t.tagId,name:t.label})))}(h)},onMouseEnter:m,onMouseLeave:m,children:[Object(a.jsxs)("div",{className:"c-jr-new-header-content",children:[Object(a.jsx)(c.a,{size:"small",glyph:Object(s.e)(g)}),Object(a.jsx)("span",{className:"u-clip",children:l?"Search":d.b.t(d.a.JOB_TAG)})]}),Object(a.jsx)("div",{className:"c-jr-new-label",children:h.label})]}),j>0&&Object(a.jsx)("div",{className:"c-jr-new-count",children:"+ ".concat(j," more")})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return JrHeaderBlock}));var r=n(0),a=(n(1),n(408)),i=n(13),o=(n(1262),n(8));function JrHeaderBlock(e){var t=e.jobReferences;return Object(r.jsx)("div",{style:e.style,className:"c-jr-header-block","data-testid":"jr-header-block",children:Object(r.jsxs)("div",{style:e.backgroundColor?{backgroundColor:e.backgroundColor}:{},className:"c-jr-header-block__searchable u-pt-xs u-pb-xs",children:[Object(r.jsx)(a.a,{messageTagId:t[0].relationshipId,tagId:t[0].tagId,tagType:"jobReferenceTag",label:t[0].label,onSearchClick:function onJobReferenceSearchClick(t){return e.featureFlags.TAG_SEARCH_ALL_TEAMS?e.searchJobReference(new i.k(o.g.AND,[new i.z({id:t.messageTagId,tagId:t.tagId,name:t.label}),new i.b])):e.searchJobReference(i.k.fromFilterTerm(new i.z({id:t.messageTagId,tagId:t.tagId,name:t.label})))},id:"mjr-list-"+t[0].relationshipId,enableTouchStyles:!1}),t.length>1&&Object(r.jsx)("div",{className:"c-jr-header-block__jr-more","data-testid":"jr-more",children:Object(r.jsx)("span",{children:"..."})})]})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return j}));var r,a=n(4),i=n(7),o=n(0),c=n(1),s=n.n(c),l=n(13),u=n(631),d=n(79),b=n(22),p=n(30),m=(r={},Object(i.a)(r,l.D.INBOX,{id:l.D.INBOX,name:Object(l.T)(l.D.INBOX)}),Object(i.a)(r,l.D.FOLLOWING,{id:l.D.FOLLOWING,name:Object(l.T)(l.D.FOLLOWING)}),Object(i.a)(r,l.D.DRAFT,{id:l.D.DRAFT,name:Object(l.T)(l.D.DRAFT)}),Object(i.a)(r,l.D.STORED,{id:l.D.STORED,name:Object(l.T)(l.D.STORED)}),Object(i.a)(r,l.D.SENT,{id:l.D.SENT,name:Object(l.T)(l.D.SENT)}),Object(i.a)(r,l.D.ALL,{id:l.D.ALL,name:Object(l.T)(l.D.ALL)}),r),h=[l.D.FOLLOWING,l.D.MY_WORK,l.D.MY_MESSAGES,l.D.DRAFT],g=[l.D.INBOX,l.D.STORED,l.D.SENT,l.D.ALL],j=function WithFilterTabs(e){var t=e.children,n=e.onClick,r=Object(b.g)(),i=r.search,c=r.pathname,h=Object(d.e)(c,i,!0),j=s.a.useCallback((function(e){var t;n("".concat(null===(t=e[0])||void 0===t?void 0:t.toUpperCase()).concat(e.slice(1)))}),[n]),v=s.a.useMemo((function(){return h&&h!==l.D.MY_WORK&&h!==l.D.MY_MESSAGES&&h!==l.D.DRAFT&&h!==l.D.FOLLOWING?g.map((function(e){return Object(a.a)(Object(a.a)({},m[e]),{},{href:Object(d.c)(e,Object(p.parse)(i))})})):[]}),[h,i]);return v.length&&h?Object(o.jsx)("div",{className:"u-flex u-flex-column u-h-100",children:Object(o.jsx)(u.a,{tabs:v,activeTabId:h,onTabSelect:j,children:Object(o.jsx)("div",{className:"u-flex u-flex-column u-flex-auto",children:t})})}):Object(o.jsx)(o.Fragment,{children:t})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return HotkeyGroup}));var r=n(0),a=n(74),i=n(12),o=n(19),c=n(9),s=n(374),l={OrSpacing:i.b.span.withConfig({displayName:"hotkey-group__OrSpacing",componentId:"sc-1h7e3bz-0"})(["align-self:center;margin-right:var(--spacing-1);margin-left:var(--spacing-1);"]),HotKeyContainer:i.b.div.withConfig({displayName:"hotkey-group__HotKeyContainer",componentId:"sc-1h7e3bz-1"})(["display:flex;font-size:var(--fs-sm);"])};function HotkeyGroup(e){var t=e.hotkey;return Object(r.jsx)(l.HotKeyContainer,{children:Object(a.b)(t).map((function(e){return function renderHotkey(e){return e.map((function(e,t){return Object(r.jsx)(s.a,{id:e,val:mapHotkeysToRender(e)},"".concat(e,"_").concat(t))}))}(e)})).reduce((function(e,t,n){return[e,Object(r.jsx)(l.OrSpacing,{children:"or"},n),t]}))})}function mapHotkeysToRender(e){var t=e.toLowerCase(),n=function icon(e){return Object(r.jsx)(o.a,{glyph:Object(c.e)(e),size:"small"})};switch(t){case"\u21e7":return"caps";case"down":return n(c.c.ARROW_DOWN);case"up":return n(c.c.ARROW_UP);case"left":return n(c.c.ARROW_LEFT);case"right":return n(c.c.ARROW_RIGHT);default:return t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=function(e){Object(i.a)(AssociateDocumentsWithMessageApiAction,e);var t=Object(o.a)(AssociateDocumentsWithMessageApiAction);function AssociateDocumentsWithMessageApiAction(e,n){var a;return Object(r.a)(this,AssociateDocumentsWithMessageApiAction),(a=t.call(this)).messageId=e,a.documentIds=n,a}return Object(a.a)(AssociateDocumentsWithMessageApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/message/").concat(this.messageId,"/relationships"),method:s.c.POST,body:JSON.stringify({data:this.documentIds.map((function(e){return{type:"document",id:e}}))})}}},{key:"mapResponse",value:function mapResponse(e){return e.data.map((function(e){return{id:e.id,hash:e.attributes.hash,name:e.attributes.name,size:e.attributes.size,type:"attachment"}}))}}]),AssociateDocumentsWithMessageApiAction}(c.a)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return CordovaDownloadSingleLink}));var r=n(0),a=n(409),i=n(1445),o=n(31),c=n(9);function CordovaDownloadSingleLink(e){return Object(r.jsx)(a.a,{children:function children(t,n){var a;return t?Object(r.jsx)(i.a,{animation:"border",size:"sm"}):Object(r.jsx)(o.a,{size:null!==(a=e.size)&&void 0!==a?a:"regular",className:e.className,iconGlyph:Object(c.e)(c.c.DOWNLOAD),onClick:function onClick(){var t;n(e.link)(),null===(t=e.onDownloadMessageDocument)||void 0===t||t.call(e,e.docId)}})}})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return p}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(20),l=n(16),u=n(43),d=n(8),b=function(e){Object(i.a)(RequestS3UrlHttpAction,e);var t=Object(o.a)(RequestS3UrlHttpAction);function RequestS3UrlHttpAction(e,n,a){var i;return Object(r.a)(this,RequestS3UrlHttpAction),(i=t.call(this)).storedName=e,i.kind=n,i.id=a,i}return Object(a.a)(RequestS3UrlHttpAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/attachment/downloadurl?storedName=").concat(this.storedName),method:l.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return e.url}},{key:"onError",value:function onError(e){return[new u.b({message:"Unable to Preview Document",level:d.n.warning})]}},{key:"onSuccess",value:function onSuccess(e){return[new p(e,this.kind,this.id)]}}]),RequestS3UrlHttpAction}(s.a),p=function(e){Object(i.a)(FulFillS3Url,e);var t=Object(o.a)(FulFillS3Url);function FulFillS3Url(e,n,a){var i;return Object(r.a)(this,FulFillS3Url),(i=t.call(this)).s3Url=e,i.kind=n,i.id=a,i}return FulFillS3Url}(c.a)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return MobileMenuButton}));var r=n(0),a=(n(1278),n(19));function MobileMenuButton(e){return Object(r.jsxs)("button",{className:"c-mobile-menu-button",onClick:e.onClick,"data-testid":e.dataTestId,disabled:e.isDisabled,id:e.id,children:[Object(r.jsx)(a.a,{glyph:e.iconGlyph,className:"c-mobile-menu-button__icon"}),Object(r.jsxs)("div",{children:[Object(r.jsx)("div",{children:e.title}),Object(r.jsx)("div",{className:"c-mobile-menu-button__description",children:e.description})]})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(4),a=n(0),i=n(166),o=n(19),c=n(9),s=n(24),l=n.n(s),u=(n(458),function GenericFourHundredError(e){var t=Object(r.a)(Object(r.a)({},{darkMode:!1}),e).darkMode;return Object(a.jsx)("div",{className:"c-layout",children:Object(a.jsxs)("div",{className:"c-layout__body c-error-page",children:[Object(a.jsx)(i.a,{className:l()("c-error-page__logo",{"c--dark":t})}),Object(a.jsx)(o.a,{glyph:c.b,size:"xlarge",className:"u-mb-md c-error-page__glyph"}),Object(a.jsx)("h2",{className:"u-ta-c c-error-page__explanation",children:"Uh oh, something went wrong"}),Object(a.jsxs)("p",{className:"u-text-medium u-ta-c c-error-page__detail",children:["SEDNA ran into an unknown error. If the problem persists, open a support ticket here"," ",Object(a.jsx)("a",{href:"https://support.sedna.com/hc/en-us",children:" Help Centre"}),"."]}),Object(a.jsxs)("p",{className:"u-text-medium u-ta-c c-error-page__detail",children:["Click here to check our"," ",Object(a.jsx)("a",{href:"https://status.sedna.com",children:"Status Page"})]})]})})})},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(20),s=n(16),l=function(e){Object(i.a)(MessagePostCommentApiAction,e);var t=Object(o.a)(MessagePostCommentApiAction);function MessagePostCommentApiAction(e,n){var a;return Object(r.a)(this,MessagePostCommentApiAction),(a=t.call(this)).messageId=e,a.commentText=n,a}return Object(a.a)(MessagePostCommentApiAction,null,[{key:"commentsMapper",value:function commentsMapper(e){return{id:String(e.id),type:"comment",attributes:{content:e.content,createdAt:e.createdAt},relationships:{user:{data:{id:String(e.userId),type:"user"}},message:{data:{id:String(e.messageId),type:"message"}}}}}}]),Object(a.a)(MessagePostCommentApiAction,[{key:"apiEffect",value:function apiEffect(e){var t={data:{attributes:{content:this.commentText}}};return{path:"".concat(e.platformUrl,"/message/").concat(this.messageId,"/comment"),method:s.c.POST,body:JSON.stringify(t)}}}]),MessagePostCommentApiAction}(c.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=(n(1282),n(163)),u=n(629),d=n(869),b=n(70),p=function(e){Object(i.a)(ActivityPane,e);var t=Object(o.a)(ActivityPane);function ActivityPane(){var e;Object(r.a)(this,ActivityPane);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).bodyWrapper=null,e.scrollToBottom=function(){var t,n;e.bodyWrapper&&(null===(t=(n=e.props).pullToRefresh)||void 0===t||t.call(n,e.bodyWrapper.scrollHeight),e.bodyWrapper.scrollTop=e.bodyWrapper.scrollHeight)},e.activityContainerRef=function(t){e.bodyWrapper=t},e}return Object(a.a)(ActivityPane,[{key:"componentDidMount",value:function componentDidMount(){this.scrollToBottom()}},{key:"componentDidUpdate",value:function componentDidUpdate(e){var t=e.events.orElse([]).filter((function(e){return e.type===b.a.comment})),n=this.props.events.orElse([]).filter((function(e){return e.type===b.a.comment}));t.length<n.length&&n[n.length-1].isCurrentUser&&this.scrollToBottom()}},{key:"render",value:function render(){var e=this;return Object(c.jsxs)("div",{className:"c-activity-pane",children:[Object(c.jsx)("div",{className:"c-activity-pane__items",ref:this.activityContainerRef,onTouchMove:function onTouchMove(t){var n,r;null===(n=(r=e.props).pullToRefresh)||void 0===n||n.call(r,t.currentTarget.scrollTop)},children:Object(l.a)(this.props.events,(function(t){return Object(c.jsx)(d.a,{activity:t,type:"message",featureFlagSenderChanged:e.props.featureFlagSenderChanged,trackFollowUpClick:e.props.trackFollowUpClick})}))}),Object(c.jsx)("div",{className:"u-flex-shrink-0 u-pl-md u-pb-md u-pr-md",children:Object(c.jsx)(u.a,{visibleUsers:this.props.visibleUsers,externalSharedEmails:this.props.externalSharedEmails,submitComment:this.props.submitComment,trackMaxCharsReachedInComment:this.props.trackMaxCharsReachedInComment})})]})}}]),ActivityPane}(s.PureComponent)},function(e,t,n){"use strict";n.d(t,"a",(function(){return AppliedCategoryTagsList}));var r=n(4),a=n(0),i=n(25),o=n(412),c=n(153),s=n(58),l=n(15);function AppliedCategoryTagsList(e){var t=function categoryTagProps(t){return{label:t.label,onClick:function onClick(){return i.a.of(t.relationshipId).ifPresent((function(n){return e.decategorizeItem(n,t.label)}))},state:"active",id:"mct-".concat(t.parentId,"-").concat(t.relationshipId)}},n=function favouritableCategoryTagProps(n){return Object(r.a)(Object(r.a)({},t(n)),{},{isFavourite:e.isFavourite(n),addFavourite:function addFavourite(){return e.addFavourite(n)},removeFavourite:function removeFavourite(){return e.removeFavourite(n)}})};return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)("h5",{className:"u-fs-md u-mb-md u-pl-md",children:l.b.t(l.a.CATEGORY_TAG,{count:e.appliedCategoryTags.length})}),Object(a.jsx)("ul",{className:"u-list u-pl-sm u-mb-lg",children:e.appliedCategoryTags.map((function(i){return Object(a.jsx)("li",{className:"u-mb-xs","data-testid":"qa-category-tags",children:e.isAvailable(i)&&!e.isTouchScreen?Object(a.jsx)(o.a,Object(r.a)({},n(i))):Object(a.jsx)("div",{className:"u-pl-sm u-mb-xs u-mt-sm",children:Object(a.jsx)(s.a,{content:i.label,children:Object(a.jsx)("span",{children:Object(a.jsx)(c.a,Object(r.a)({},t(i)))})})})},"mct-".concat(i.parentId,"-").concat(i.relationshipId))}))})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return SuggestedJobReferenceTagsList}));var r=n(0),a=n(139),i=n(58),o=n(56),c=n(15);function SuggestedJobReferenceTagsList(e){return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)("h4",{className:"u-fs-md u-mb-md u-pl-sm",children:c.b.t(c.a.JOB_TAG,{count:e.suggestedJobReferenceTags.length})}),Object(r.jsx)("ul",{className:"u-list u-pl-sm u-mb-lg",children:e.suggestedJobReferenceTags.map((function(t){return o.b?Object(r.jsx)("li",{className:"c-message-tag-panel__jr-tag u-mb-sm",children:Object(r.jsx)(a.a,{label:t.name,state:"inactive",onClick:function onClick(){return e.addJobReference(t.tagId,t.id,t.name,!0)},id:"jr-tag-".concat(t.id)})},"jr-tag-".concat(t.id)):Object(r.jsx)("li",{className:"c-message-tag-panel__jr-tag u-mb-sm",children:Object(r.jsx)(i.a,{content:t.name,children:Object(r.jsx)("span",{children:Object(r.jsx)(a.a,{label:t.name,state:"inactive",onClick:function onClick(){return e.addJobReference(t.tagId,t.id,t.name,!0)},id:"jr-tag-".concat(t.id)})})})},"jr-tag-".concat(t.id))}))})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return SuggestedCategoryTagsList}));var r=n(4),a=n(0),i=n(153),o=n(56),c=n(412),s=n(40),l=n(58);function SuggestedCategoryTagsList(e){var t=function categoryTagProps(t){return{label:t.label,onClick:function onClick(){return e.categorizeItem(t.tagId,t.id,t.label,!0)},state:"inactive",id:"cat-tag-".concat(t.id)}},n=function favouritableCategoryTagProps(n){return Object(r.a)(Object(r.a)({},t(n)),{},{isFavourite:!1,addFavourite:function addFavourite(){return e.addFavourite(n)},removeFavourite:s.a})};return Object(a.jsx)(a.Fragment,{children:Object(a.jsx)("ul",{className:"u-list u-pl-sm u-pr-sm u-mb-lg",children:e.suggestedCategoryTags.map((function(s){return Object(a.jsx)("li",{className:"c-message-tag-panel__cat-tag u-mb-sm",children:Object(a.jsx)("span",{children:e.isTouchScreen?Object(a.jsx)("div",{className:"u-pl-sm",children:o.b?Object(a.jsx)(i.a,Object(r.a)({},t(s))):Object(a.jsx)(l.a,{content:s.label,children:Object(a.jsx)("span",{children:Object(a.jsx)(i.a,Object(r.a)({},t(s)))})})}):Object(a.jsx)(c.a,Object(r.a)({},n(s)))})},"cat-tag-".concat(s.id))}))})})}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return NewTopicContainer}));var r=n(0),a=n(1),i=n(50),o=n(48),c=n(28);function NewTopicContainer(){var e=Object(c.useDispatch)();return a.useEffect((function(){e(new o.S(""))}),[e]),Object(r.jsx)("div",{className:"v-topic-compose-container c-layout",children:Object(r.jsx)(i.b,{spinner:i.a,fadeIn:"quarter"})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return EnableNotificationsModalContainer}));var r=n(21),a=n(0),i=n(1),o=n(28),c=n(26),s=n(2),l=n(179),u=n(97),d=n(333),b=n(8),p=Object(c.b)([function(e){return s.g(e.entities.savedSearch,s.a).orElse([])}],(function(e){return e.some((function(e){return e.isSubscribed}))}));function EnableNotificationsModalContainer(e){var t=e.enableNotifications,n=e.currentUser,c=i.useRef(!1),s=i.useContext(d.a),m=s.modalKey,h=s.onToggle,g=Object(u.d)("".concat("SEDNA_ENABLE_NOTIFICATIONS_DO_NOT_ASK_KEY_V1","_").concat(n.id),false),j=Object(r.a)(g,2),v=j[0],O=j[1],T=i.useState(false),y=Object(r.a)(T,2),S=y[0],C=y[1],A=i.useState(!1),E=Object(r.a)(A,2),w=E[0],_=E[1],I=Object(o.useSelector)(p),x=Notification.permission===b.o.DEFAULT,k=i.useCallback((function(){c.current=!0,_(!1),h(null),S&&O(S)}),[S,h,O]),N=i.useCallback((function(){t(),k()}),[t,k]);return i.useEffect((function(){!c.current&&!v&&!m&&x&&I&&(_(!0),h(d.b.ENABLE_NOTIFICATIONS))}),[c,v,I,x,m,h]),w?Object(a.jsx)(l.a,{isOpen:w,toggle:k,confirm:N,confirmText:"Enable",cancelText:"Cancel",headerText:"Enable notifications for this device?",onDoNotAskChange:C,isDoNotAskChecked:S,children:"You are currently subscribed to receive notifications for some of your Buckets, but this device does not have notifications enabled. You can manage your devices later in the Notification Settings page."}):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),a=n(8),i={isRelevant:function isRelevant(e,t){var n=t.userConfig,i=t.teamIds;return e.find((function(e){return e instanceof r.b||e instanceof r.J})).isPresent()||i.includes(n.user.teamId)?e.appliesToMessage(t):a.b.NO}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(5),i=n(6),o=function(e){Object(a.a)(ExportTaskCompleted,e);var t=Object(i.a)(ExportTaskCompleted);function ExportTaskCompleted(e,n){var a;return Object(r.a)(this,ExportTaskCompleted),(a=t.call(this)).taskId=e,a.url=n,a}return ExportTaskCompleted}(n(14).a)},function(e,t,n){"use strict";var r,a=n(21),i=n(626),o=n(59),c=n(900),s=n(44),l=n(51),u=n(642),d=n(611),b=n(8),p="SEDNA_ANONYMOUS_ID";function buildFeatureFlags(){return r?Object.keys(b.e).reduce((function(e,t){var n;return e[t]=null===(n=r)||void 0===n?void 0:n.variation(t,b.e[t]),e}),b.e):b.e}t.a=function middleware(e){return function(t){return function(n){if(!(n instanceof o.e||n.type===d.a.type))return t(n);var b;if(n instanceof o.e){var m,h,g=n.config.user;b={key:"".concat(g.username,".").concat(g.companyIdentifier),name:Object(s.c)(null!==(m=g.firstName)&&void 0!==m?m:"",null!==(h=g.lastName)&&void 0!==h?h:""),custom:{company:g.companyIdentifier,teamId:n.teamId}}}else{var j=window.localStorage.getItem(p);j||(j=Object(u.a)(),window.localStorage.setItem(p,j)),b={key:j,anonymous:!0}}var v="automationtest.stage3"===b.key||"automationtest.sednatest"===b.key?"5b32f2d20d67623848de553a":l.g;if(!v)return t(n);r?r.identify(b).then((function(){e.dispatch(new o.f(buildFeatureFlags())),t(n)})):((r=Object(c.a)(v,b,{bootstrap:"localStorage",fetchGoals:!1})).on("ready",(function(){t(new o.f(buildFeatureFlags())),t(n)})),r.on("change",(function(t){t.$schema;var n=Object(i.a)(t,["$schema"]);if(0!==Object.keys(n).length){var r=Object.fromEntries(Object.entries(n).map((function(e){var t=Object(a.a)(e,2);return[t[0],t[1].current]})));e.dispatch(new o.j(r))}})))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(53),a=Object(r.createAction)("lite/app/init")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(5),i=n(6),o=function(e){Object(a.a)(SetIsMobile,e);var t=Object(i.a)(SetIsMobile);function SetIsMobile(e){var n;return Object(r.a)(this,SetIsMobile),(n=t.call(this)).isMobile=e,n}return SetIsMobile}(n(14).a)},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return C}));var r=n(4),a=n(39),i=n.n(a),o=n(54),c=n(134),s=n(907),l=n(53),u=n(57),d=n(642),b=n(16),p=n(182),m=n(142),h=n(370),g=n(214),j=n(8),v=Object(c.retry)(function(){var e=Object(o.a)(i.a.mark((function _callee(e,t,n){var r,a;return i.a.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(c.fetchBaseQuery)({baseUrl:(new g.b).getUrl(),prepareHeaders:function prepareHeaders(e){var t;return e.set("x-client-version",null!==(t="v20211204-0141")?t:""),e.set("x-trace-id",Object(d.a)()),e}})(e,t,n);case 2:return a=i.sent,401===(null===(r=a.error)||void 0===r?void 0:r.status)&&(Object(p.g)(),window.location.href=Object(p.b)(!0),c.retry.fail(a.error)),i.abrupt("return",a);case 5:case"end":return i.stop()}}),_callee)})));return function(t,n,r){return e.apply(this,arguments)}}(),{maxRetries:2}),O=Object(l.createEntityAdapter)(),T=O.getSelectors().selectAll,y=function transformLiteApiResult(e){var t=new m.c(e.included),n=e.data,r=O.addMany(O.getInitialState(),n.map((function(e){return Object(h.b)(e,t)})));return{meta:e.meta,messages:r}},S=Object(s.a)({reducerPath:"liteMessageList",baseQuery:v,refetchOnFocus:!0,endpoints:function endpoints(e){return{getMessages:e.query({query:function query(e){var t;return{url:"/",method:b.c.GET,params:Object(r.a)(Object(r.a)({order:null!==(t=e.order)&&void 0!==t?t:u.b.FROM_NEWEST,limit:100,sort:u.c.BY_RECEIVED_DATE,source:j.j.LIST},e.searchAfter&&{afterId:e.searchAfter.afterId,afterTimestamp:e.searchAfter.afterTimestamp}),{},{t:Object(p.d)(),platform:!1}),mode:"cors",credentials:"include"}},transformResponse:y})}}}),C=S.useGetMessagesQuery;t.a=S},,function(e,t,n){"use strict";n.d(t,"a",(function(){return Pt}));var r=n(4),a=n(3),i=n(10),o=n(245),c=n(5),s=n(6),l=n(0),u=n(1476),d=n(24),b=n.n(d),p=n(125),m=n(30),h=n(1),g=n(90),j=n(28),v=n(22),O=n(276),T=n(355),y=n(59),S=n(167),C=n(9),A=n(19),E=(n(1266),n(34)),w=n(58);function ButtonLinkBehaviourComponent(e){return Object(l.jsx)(w.a,{content:e.label,disableOnTouch:e.disableOnTouch,children:Object(l.jsx)(E.a,{className:e.className,onClick:function onClickHandler(t){t.ctrlKey||t.metaKey||t.altKey||(t.preventDefault(),e.onClick())},url:e.href,"data-testid":e.dataTestId,children:e.children})})}var _=h.memo(ButtonLinkBehaviourComponent),I=n(100),x=n(101),k=n(273),N=n(74),R=n(199),F=n(40);function MessageToolbarComponent(e){var t=Object(h.useCallback)((function(){e.trackOnPrint&&e.trackOnPrint(),document.queryCommandSupported("print")?document.execCommand("print",!1):window.print()}),[e]),n=Object(h.useMemo)((function(){return Object(k.a)()}),[]);return Object(I.a)(x.s,e.onReply,[e.onReply]),Object(I.a)(x.t,e.onReplyAll,[e.onReplyAll]),Object(I.a)(x.j,e.onForward,[e.onForward]),Object(I.a)(x.h,(function(){return e.isSent?e.onResend():e.onResendAsNew()}),[e.isSent,e.onResend,e.onResendAsNew]),Object(I.a)(x.r,t,[t]),Object(l.jsxs)("div",{className:"c-message-toolbar",children:[Object(l.jsxs)("div",{className:"c-message-toolbar__btn-group",children:[e.isDraft&&e.canCompose&&Object(l.jsxs)(_,{className:"c-message-toolbar__btn",onClick:e.onEdit,href:e.editHref,label:"Edit",dataTestId:"edit",children:[Object(l.jsx)("span",{className:"u-clip",children:"Edit"}),Object(l.jsx)(A.a,{size:"small",glyph:Object(C.e)(C.c.EDIT)})]}),!e.isDraft&&e.canCompose&&Object(l.jsxs)(l.Fragment,{children:[Object(l.jsxs)(_,{className:"c-message-toolbar__btn",onClick:e.onReply,href:e.replyHref,label:Object(l.jsx)(n,{hotKey:N.a.REPLY,text:"Reply"}),dataTestId:"reply",disableOnTouch:!0,children:[Object(l.jsx)("span",{className:"u-clip",children:"Reply"}),Object(l.jsx)(A.a,{size:"small",glyph:Object(C.e)(C.c.REPLY)})]}),Object(l.jsxs)(_,{className:"c-message-toolbar__btn",onClick:e.totalToCcBccEmails>R.a?F.a:e.onReplyAll,href:e.replyAllHref,label:e.totalToCcBccEmails>R.a?"Cannot reply all to mass emails":Object(l.jsx)(n,{hotKey:N.a.REPLY_ALL,text:"Reply All"}),dataTestId:"reply-all",disableOnTouch:e.totalToCcBccEmails<=R.a,children:[Object(l.jsx)("span",{className:"u-clip",children:"Reply All"}),Object(l.jsx)(A.a,{size:"small",glyph:Object(C.e)(C.c.REPLY_ALL)})]}),Object(l.jsxs)(_,{className:"c-message-toolbar__btn",onClick:e.onForward,href:e.forwardHref,label:Object(l.jsx)(n,{hotKey:N.a.FORWARD,text:"Forward"}),dataTestId:"forward",disableOnTouch:!0,children:[Object(l.jsx)("span",{className:"u-clip",children:"Forward"}),Object(l.jsx)(A.a,{size:"small",glyph:Object(C.e)(C.c.FORWARD)})]}),Object(l.jsxs)(_,{className:"c-message-toolbar__btn qa-resend",onClick:e.isSent?e.onResend:e.onResendAsNew,href:e.isSent?e.resendHref:e.resendAsNewHref,label:Object(l.jsx)(n,{hotKey:N.a.DUPLICATE_ITEM,text:"Duplicate"}),dataTestId:"duplicate",disableOnTouch:!0,children:[Object(l.jsx)("span",{className:"u-clip",children:"Duplicate"}),Object(l.jsx)(A.a,{size:"small",glyph:Object(C.e)(C.c.DUPLICATE)})]})]}),Object(l.jsx)(w.a,{content:Object(l.jsx)(n,{hotKey:N.a.PRINT,text:"Print"}),disableOnTouch:!0,children:Object(l.jsxs)("button",{className:"c-message-toolbar__btn",onClick:t,"data-testid":"print",children:[Object(l.jsx)("span",{className:"u-clip",children:"Print"}),Object(l.jsx)(A.a,{size:"small",glyph:Object(C.e)(C.c.PRINT)})]})})]}),Object(l.jsx)("div",{className:"c-message-toolbar__btn-right",children:Object(l.jsx)(w.a,{content:e.isPlainText?"Show HTML":"Show plaintext",disableOnTouch:!0,children:Object(l.jsxs)("button",{className:b()("c-message-toolbar__btn",{"c--selected":e.isPlainText}),onClick:function onClick(){e.togglePlainText(e.isPlainText)},children:[Object(l.jsx)("span",{className:"u-clip",children:"Print"}),Object(l.jsx)(A.a,{size:"small",glyph:Object(C.e)(C.c.TEXT)})]})})})]})}var M=h.memo(MessageToolbarComponent),D=n(50),L=n(545),P=n(2),U=n(17),B=n(265),H=n(26),G=(n(729),n(25)),W=n(536),z=(n(1272),n(31)),V=n(8),J=function(e){Object(c.a)(MobileSidepanelTabs,e);var t=Object(s.a)(MobileSidepanelTabs);function MobileSidepanelTabs(){return Object(a.a)(this,MobileSidepanelTabs),t.apply(this,arguments)}return Object(i.a)(MobileSidepanelTabs,[{key:"render",value:function render(){var e=this.props.newActivityItems?this.props.newActivityItems:0;return Object(l.jsxs)("div",{className:this.props.verifiedBySednaInviteLink===V.w.BOLD?"c-mobile-sidepanel-tabs verified-by-sedna-bold":"c-mobile-sidepanel-tabs",children:[Object(l.jsxs)("div",{className:"u-dib u-mr-md u-relative",children:[Object(l.jsx)(z.a,{buttonContent:"Activity",iconGlyph:Object(C.e)(C.c.COMMENT),onClick:this.props.toggleActivity,onDarkTheme:this.props.isDark}),e>0&&Object(l.jsx)(W.a,{items:G.a.of(this.props.newActivityItems),displaysActivity:!0})]}),Object(l.jsx)(z.a,{buttonContent:"Tags",iconGlyph:Object(C.e)(C.c.TAG),onClick:this.props.toggleTags,onDarkTheme:this.props.isDark})]})}}]),MobileSidepanelTabs}(h.PureComponent),Y=n(233),q=function(e){Object(c.a)(MessageReadActionsComponent,e);var t=Object(s.a)(MessageReadActionsComponent);function MessageReadActionsComponent(){var e;Object(a.a)(this,MessageReadActionsComponent);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).toggleTags=function(){return e.toggleMessageActions(U.a.MESSAGE_TAGS)},e.toggleActivity=function(){return e.toggleMessageActions(U.a.MESSAGE_ACTIVITY)},e.toggleMessageActions=function(t){var n=Object(v.e)(e.props.location.pathname,{path:U.a.MESSAGE()}),r=Object(v.e)(e.props.location.pathname,{path:t()});return r?e.props.goToItem({type:"message",id:r.params.id},e.props.location,e.props.isMobile):n&&e.props.goTo(t(n.params.id),e.props.location)},e}return Object(i.a)(MessageReadActionsComponent,[{key:"render",value:function render(){var e=this.props.messageComments;return this.props.isMobile?Object(l.jsx)(J,{newActivityItems:e,toggleActivity:this.toggleActivity,toggleTags:this.toggleTags,isDark:!1,verifiedBySednaInviteLink:this.props.verifiedBySednaInviteLink}):null}}]),MessageReadActionsComponent}(h.PureComponent),K=Object(H.b)([function(e,t){return P.g(e.entities.messageMeta,t.match.params.id)},function(e,t){return t.currentUser},function(e,t){return P.g(e.entities.messageDocument,t.match.params.id).map((function(e){return e.length})).orElse(0)}],(function(e,t,n){return{messageComments:e.map((function(e){return Object(B.b)(e.witness,e.activitySummary,t.id)})).orElse(0),documents:n}})),X={goToItem:function goToItem(e,t,n){return Object(Y.b)(e.type,e.id,t,n)},goTo:function goTo(e,t){return Object(p.e)(Object(r.a)(Object(r.a)({},t),{},{pathname:e}))}},Q=Object(v.j)(Object(j.connect)((function mapStateToProps(e,t){return K(e,t)}),X)(q)),Z=n(82),$=n(216),ee=n(21),te=(n(807),n(7)),ne=(n(1273),n(510)),re=n.n(ne),ae=n(537),ie=n.n(ae),oe=n(538),ce=n.n(oe),se=n(539),le=n.n(se),ue=n(15),de=n(12),fe=n(471),be=n(580),pe=n(424),me=n(288),he=n(231),ge=n(248),je={List:de.b.ul.withConfig({displayName:"message-share-modal__List",componentId:"sc-1fjg887-0"})(["list-style-type:none;padding-left:0;margin-bottom:0;"]),ListItemInline:de.b.li.withConfig({displayName:"message-share-modal__ListItemInline",componentId:"sc-1fjg887-1"})(["margin-right:var(--spacing-1);display:inline-block;"]),ListItemBlock:de.b.li.withConfig({displayName:"message-share-modal__ListItemBlock",componentId:"sc-1fjg887-2"})(["margin-bottom:var(--spacing-3);"])};function MessageShareModal(e){var t=e.isOpen,n=e.onClose,a=e.sharedTeams,i=e.shareableTeams,o=e.onShareToTeams,c=e.hasNewMessageShareModal,s=e.trackEvent,u=h.useState({}),d=Object(ee.a)(u,2),b=d[0],p=d[1],m=h.useCallback((function(e){var t=e.target.id;if(!b[t])return s("Share Message","Shared Message: Shared With Team"),p(Object(r.a)(Object(r.a)({},b),{},Object(te.a)({},t,!0)));var n=Object(r.a)({},b);delete n[t],p(Object(r.a)({},n))}),[b,s]),g=h.useCallback((function(){p({}),n()}),[n]),j=h.useCallback((function(){o(Object.keys(b)),g(),s("Share Message","Share Message: Confirm Share")}),[o,b,s,g]),v=h.useMemo((function(){return!Object.values(b).some((function(e){return e}))}),[b]);return c?Object(l.jsxs)(fe.a,{isOpen:t,children:[Object(l.jsx)(be.a,{title:"Share message",toggle:g}),Object(l.jsxs)(pe.a,{isDetailView:!1,children:[Object(l.jsx)(me.a,{children:"Visible To"}),Object(l.jsx)(je.List,{children:a.map((function(e){return Object(l.jsx)(je.ListItemInline,{children:Object(l.jsx)(he.a,{label:e.name,state:"activeNoClear",onClick:F.a,"data-testid":"shared-team"})},e.id)}))}),Object(l.jsx)(me.a,{children:"Share With"}),i.length>0?Object(l.jsx)(je.List,{children:i.map((function(e){var t;return Object(l.jsx)(je.ListItemBlock,{children:Object(l.jsx)(ge.a,{onChange:m,isChecked:null!==(t=b[e.id])&&void 0!==t&&t,id:e.id,"data-testid":"shareable-team-checkbox",children:Object(l.jsx)("div",{"data-testid":"shareable-team",children:e.name})})},e.id)}))}):Object(l.jsxs)("span",{"data-testid":"no-shareable-teams",children:["This message has been shared with all your"," ",ue.b.t(ue.a.TEAM_PLURAL),"."]})]}),Object(l.jsxs)(me.c,{children:[Object(l.jsx)("div",{}),Object(l.jsxs)("div",{children:[Object(l.jsx)(E.a,{buttonStyle:"link",onClick:g,children:"Cancel"}),Object(l.jsx)(me.b,{disabled:v,buttonStyle:"primary",onClick:j,children:"Share"})]})]})]}):Object(l.jsx)(ve,{shareableTeams:i,sharedTeams:a,onClose:n,isOpen:t,onShareToTeams:o,hasNewMessageShareModal:c,trackEvent:s})}var ve=function OldShareModal(e){return Object(l.jsxs)(re.a,{wrapClassName:"c--modal-wrapper",className:"c-modal c-message-share-modal",isOpen:e.isOpen,toggle:e.onClose,"data-testid":"share-modal",children:[Object(l.jsx)(ie.a,{toggle:e.onClose,close:Object(l.jsx)(z.a,{buttonContent:"Close",iconGlyph:Object(C.e)(C.c.CLEAR),onClick:e.onClose}),children:"Share Message"}),Object(l.jsxs)(ce.a,{children:[Object(l.jsx)("h2",{className:"u-tt-u u-fs-md u-fw-b",children:"Visible To"}),Object(l.jsx)("ul",{className:"c-message-share-modal__list",children:e.sharedTeams.map((function(e,t){return Object(l.jsx)("li",{className:"c-message-share-modal__shared-team","data-testid":"shared-team",children:e.name},"shared-".concat(t))}))}),Object(l.jsx)("h2",{className:"u-tt-u u-fs-md u-fw-b",children:"Share With"}),Object(l.jsx)("ul",{className:"c-message-share-modal__list",children:e.shareableTeams.length>0?e.shareableTeams.map((function(t,n){return Object(l.jsx)("li",{children:Object(l.jsx)("button",{className:"c-message-share-modal__share-link",onClick:function onClick(){e.onShareToTeams([t.id])},"data-testid":"shareable-team",children:t.name},"team-dropdown-".concat(t.id))},"team-".concat(n))})):Object(l.jsxs)("li",{className:"u-pl-lg u-pr-lg","data-testid":"no-shareable-teams",children:["This message has been shared with all your"," ",ue.b.t(ue.a.TEAM_PLURAL),"."]})})]}),Object(l.jsx)(le.a,{children:Object(l.jsx)(E.a,{onClick:e.onClose,"data-testid":"confirm-share-button",children:"Done"})})]},"shareModal")},Oe=n(543),Te=n(597),ye=n.n(Te),Se=n(83),Ce=n(56),Ae=n(111),Ee=n(51),we=n(179),_e=n(97),Ie=n(151),xe=n(71),ke="SEDNA_TEAM_ARCHIVE_DO_NOT_ASK_V1",Ne=!1,Re=h.memo((function MessageInterfacePanel(e){var t=Object(Ae.c)(),n=t.width,r=t.isTabletish,a=t.isLargeScreen,i=e.currentUser,o=e.canStore,c=e.onStore,s=e.goToNextItem,u=e.canUnStore,d=e.onUnStore,p=e.isFollowing,m=e.onFollow,g=e.onUnFollow,j=e.isDraft,v=e.messageId,O=e.shareableTeams,T=e.sharedTeams,y=e.shareToTeams,S=e.enableStoreForCurrentTeam,E=e.onStoreForCurrentTeam,_=e.trackEvent,R=e.toggleLeftPane,F=e.toggleRightPane,M=e.isLeftPaneCollapsed,D=e.isRightPaneCollapsed,L=e.hasNewMessageShareModal,P=e.goToSubjectSearch,U=e.copySuccessToast,B=Object(_e.d)("".concat(ke,"_").concat(i.id),Ne),H=Object(ee.a)(B,2),G=H[0],W=H[1],V=h.useState(!1),J=Object(ee.a)(V,2),Y=J[0],q=J[1],K=h.useState(!1),X=Object(ee.a)(K,2),Q=X[0],Z=X[1],$=h.useState(!1),te=Object(ee.a)($,2),ne=te[0],re=te[1],ae=h.useState(Ne),ie=Object(ee.a)(ae,2),oe=ie[0],ce=ie[1],se=h.useState(!1),le=Object(ee.a)(se,2),de=le[0],fe=le[1],be=h.useCallback((function(){Y&&_("Message Panel","Purge Cancel"),q(!Y)}),[Y,_]),pe=h.useCallback((function(){re(!ne)}),[ne]),me=h.useCallback((function(){U(e.messageId)}),[U,e.messageId]),he=h.useCallback((function(){!Q&&_("Message Panel","Open Share Modal"),Z(!Q)}),[Q,_]),ge=h.useCallback((function(){!de&&_("Message Panel","Show Archive For Team Modal"),fe(!de),oe&&de&&ce(!1)}),[oe,de,_]),je=h.useCallback((function(){E(),ge(),oe&&W(!0)}),[oe,E,W,ge]),ve=function onShowAppIntegrations(){pe(),_("Message Panel","Open SEDNA Link")},Te=i.permissions.includes(Se.a.delete_message),Re=i.permissions.some((function(e){return[Se.a.download_rfc822_encoded_mail.valueOf(),Se.a.export_messages.valueOf()].includes(e)})),Fe=T.length,Me=Object(h.useMemo)((function(){return Object(k.a)()}),[]);Object(I.a)(x.i,(function(){return p?g():m()}),[p,g,m]),Object(I.a)(x.b,(function(){return S&&o?E():s()}),[S,o,E,s]),Object(I.a)(x.a,(function(){return o?c():s()}),[o,c,s]);var De=!G,Le=h.useCallback((function(){_("Message Panel","Purge Confirm"),be(),e.onDelete()}),[e,be,_]),Pe=!r&&!a,Ue=!j&&(Te||Re)||Pe;return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsxs)("div",{className:"c-message-interface-panel u-w-100",children:[Object(l.jsx)("div",{className:"u-br u-b--shade u-pr-xs",children:Object(l.jsx)(z.a,{buttonContent:Object(l.jsx)(Me,{text:e.isLeftPaneCollapsed?"Expand pane":"Collapse pane",hotKey:N.a.TOGGLE_LEFT_PANE}),iconGlyph:e.isLeftPaneCollapsed?Object(C.e)(C.c.CHEVRON_RIGHT):Object(C.e)(C.c.CHEVRON_LEFT),onClick:function onClick(){!function onToggleLeftPane(){R(),_("Panes",M?"Left Pane Expand":"Left Pane Collapse")}()},disableOnTouch:!0})}),Object(l.jsxs)("div",{className:"u-flex-auto u-flex u-ml-xs",children:[Object(l.jsx)(z.a,{buttonContent:Object(l.jsx)(Me,{text:o?"Archive":"Unarchive",hotKey:N.a.ARCHIVE_ITEM}),iconGlyph:Object(C.e)(C.c.ARCHIVE),className:b()({"c--selected":u}),disabled:!o&&!u,onClick:o?c:d,dataTestId:o?"archiveButton":"unarchiveButton",disableOnTouch:!0}),Object(l.jsx)(z.a,{className:b()({"c--selected c--following":p}),buttonContent:Object(l.jsx)(Me,{text:p?"Unfollow":"Follow",hotKey:N.a.FOLLOW_ITEM}),iconGlyph:Object(C.e)(C.c.FOLLOW),onClick:p?g:m,dataTestId:p?"unfollowButton":"followButton",disableOnTouch:!0}),S&&Object(l.jsx)(z.a,{buttonContent:Object(l.jsx)(Me,{text:"Archive for Users with ".concat(e.defaultTeamName," as their default ").concat(ue.b.t(ue.a.TEAM)),hotKey:N.a.ARCHIVE_FOR_TEAM}),iconGlyph:Object(C.e)(C.c.ARCHIVE_TEAM),onClick:De?ge:E,disabled:!o,dataTestId:"archiveForTeamButton",disableOnTouch:!0}),Ue&&Object(l.jsxs)(Ie.a,{icon:Object(C.e)(C.c.MORE_HORIZ),title:"",subtitle:"More Actions",dataTestId:"showMoreButton",onClick:function onClickMoreAction(){_("Message Panel","More Actions")},type:Ie.b.ICONBUTTON,children:[Re&&Object(l.jsx)(xe.a,{icon:Object(C.e)(C.c.DOWNLOAD),onClick:function onClick(){var t;null===(t=e.onMessageDownload)||void 0===t||t.call(e,v)},href:Object(Ee.k)("message/".concat(v,"/original")),openNewPage:!0,children:"Download EML"}),Te&&Object(l.jsx)(xe.a,{onClick:function showPurgeModal(){_("Message Panel","Reveal Purge Modal"),be()},disabled:!1,icon:Object(C.e)(C.c.REMOVE),"data-testId":"purgeMessageButton",children:"Purge Message"}),Pe&&Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)(xe.a,{onClick:P,icon:Object(C.e)(C.c.SEARCH),testId:"searchSubjectButton",children:"Find Related Messages"}),Object(l.jsx)(xe.a,{onClick:ve,icon:Object(C.e)(C.c.DATA),testId:"showAppIntegrationsButton",children:"SEDNA Link"})]})]})]}),!Pe&&Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("div",{id:"subjectSearch",children:Object(l.jsx)(z.a,{id:"subjectSearch",buttonContent:"Find Related Messages",iconGlyph:Object(C.e)(C.c.SEARCH),onClick:P,dataTestId:"searchSubjectButton",disableOnTouch:!0})}),Object(l.jsx)("div",{id:"apps",children:Object(l.jsx)(z.a,{buttonContent:"SEDNA Link",iconGlyph:Object(C.e)(C.c.DATA),onClick:ve,dataTestId:"showAppIntegrationsButton",disableOnTouch:!0})})]}),Object(l.jsx)("div",{id:"messageId",children:Object(l.jsx)(ye.a,{onClick:function onClick(){!function onCopyMessageId(){_("Message Panel","Copy Message ID")}()},"data-clipboard-text":v,className:"c-button-inline u-inline-flex",onSuccess:me,children:Object(l.jsx)(w.a,{content:"Copy Message ID",disableOnTouch:!0,children:Object(l.jsx)("span",{className:"u-flex u-items-center",children:Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)(A.a,{glyph:Object(C.e)(C.c.MESSAGE_ID_ICON),className:n>=Ce.c?"u-mr-sm":""}),n>=Ce.c&&v]})})})})}),Object(l.jsx)("div",{id:"messageShareModal",className:"u-mr-xs",children:Object(l.jsx)(w.a,{content:"Share Message",disableOnTouch:!0,children:Object(l.jsxs)("button",{className:"c-button-inline u-inline-flex u-items-center",onClick:he,disabled:0===O.length,"data-testid":"shareToTeamButton",onMouseDown:function onMouseDown(e){return e.preventDefault()},children:[Object(l.jsx)(A.a,{glyph:Object(C.e)(C.c.SHARE),className:n>=1200?"u-mr-sm":""}),Fe>1&&n>=1200&&Object(l.jsx)("div",{className:"u-mr-sm","data-testid":"sharedTeamCount",children:"".concat(Fe," ").concat(ue.b.t(ue.a.TEAM_PLURAL))})]})})}),Object(l.jsx)(MessageShareModal,{shareableTeams:O,sharedTeams:T,onClose:he,isOpen:Q,onShareToTeams:y,hasNewMessageShareModal:L,trackEvent:_}),Object(l.jsx)("div",{className:"u-bl u-b--shade u-pl-xs",children:Object(l.jsx)(z.a,{buttonContent:Object(l.jsx)(Me,{text:e.isRightPaneCollapsed?"Expand pane":"Collapse pane",hotKey:N.a.TOGGLE_RIGHT_PANE}),iconGlyph:e.isRightPaneCollapsed?Object(C.e)(C.c.CHEVRON_LEFT):Object(C.e)(C.c.CHEVRON_RIGHT),onClick:function onClick(){!function onToggleRightPane(){F(),_("Panes",D?"Right Pane Expand":"Right Pane Collapse")}()},disableOnTouch:!0})})]},"mp-actions"),Te&&Object(l.jsx)(we.a,{isOpen:Y,toggle:be,confirm:Le,confirmText:"Purge",cancelText:"Cancel",headerText:"Are you sure you want to purge this message?",confirmTestId:"purgeConfirmYesButton",cancelTestId:"purgeConfirmNoButton",children:"If you purge this message then it will be removed from all user inboxes. This action is not reversible."}),De&&Object(l.jsx)(we.a,{isOpen:de,toggle:ge,headerText:"Are you sure you want to Archive this Message for Users with ".concat(e.defaultTeamName," as their default ").concat(ue.b.t(ue.a.TEAM),"?"),confirmText:"Archive for ".concat(ue.b.t(ue.a.TEAM)),cancelText:"Cancel",confirm:je,onDoNotAskChange:ce,isDoNotAskChecked:oe,modalId:"team-archive-confirm"}),Object(l.jsx)(Oe.a,{isOpen:ne,toggle:pe,isMobile:!1,display:"READ",displayCloseBtn:!0,trackEvent:_})]})})),Fe=n(29),Me=n(810),De=n(598),Le=n(43);function MobileMessageInterfacePanel(e){var t=e.currentUser,n=e.canStore,r=e.onStore,a=e.canUnStore,i=e.onUnStore,o=e.isFollowing,c=e.onFollow,s=e.onUnFollow,u=e.shareableTeams,d=e.shareToTeams,p=e.sharedTeams,m=e.enableStoreForCurrentTeam,g=e.onStoreForCurrentTeam,v=e.hasNewMessageShareModal,O=Object(_e.d)("".concat(ke,"_").concat(t.id),Ne),T=Object(ee.a)(O,2),y=T[0],S=T[1],E=h.useState(!1),w=Object(ee.a)(E,2),_=w[0],I=w[1],x=h.useState(!1),k=Object(ee.a)(x,2),N=k[0],R=k[1],F=h.useState(!1),M=Object(ee.a)(F,2),D=M[0],L=M[1],P=h.useState(!1),U=Object(ee.a)(P,2),B=U[0],H=U[1],G=Object(j.useDispatch)(),W=h.useState(!1),J=Object(ee.a)(W,2),Y=J[0],q=J[1],K=h.useState(Ne),X=Object(ee.a)(K,2),Q=X[0],Z=X[1],$=function toggleShareModal(){return I(!_)},te=function toggleAppMenu(){return R(!N)},ne=function toggleMobileMenu(){return L(!D)},re=h.useCallback((function(){G(new Le.b({message:"ID ".concat(e.messageId," Copied to clipboard"),level:V.n.info}))}),[G,e.messageId]),ae=h.useCallback((function(){q(!Y),Q&&Z(!1)}),[Q,Y]),ie=h.useCallback((function(){g(),ae(),Q&&S(!0)}),[Q,g,S,ae]),oe=!y,ce=t.permissions.includes(Se.a.delete_message),se=t.permissions.some((function(e){return[Se.a.download_rfc822_encoded_mail.valueOf(),Se.a.export_messages.valueOf()].includes(e)})),le=h.useCallback((function(e,t){return new Fe.a(e,t)}),[]),de=h.useCallback((function(){B&&le("Message Panel","Purge Cancel"),H(!B)}),[B,le]),fe=h.useCallback((function(){le("Message Panel","Purge Confirm"),de(),e.onDelete()}),[e,de,le]),be=Object(l.jsx)(z.a,{iconGlyph:Object(C.e)(C.c.SHARE),disabled:0===u.length,onClick:$,dataTestId:"shareToTeamToggle",onDarkTheme:!0}),pe=Object(l.jsx)(z.a,{className:b()({"c--selected":a}),iconGlyph:Object(C.e)(C.c.ARCHIVE),disabled:!n&&!a,onClick:n?r:i,onDarkTheme:!0}),me=Object(l.jsx)(z.a,{className:b()({"c--selected c--following":o}),iconGlyph:Object(C.e)(C.c.FOLLOW),onClick:o?s:c,onDarkTheme:!0}),he=m&&Object(l.jsx)(z.a,{iconGlyph:Object(C.e)(C.c.ARCHIVE_TEAM),disabled:!n,onClick:oe?ae:g,onDarkTheme:!0});return Object(l.jsx)(l.Fragment,{children:Object(l.jsx)("div",{className:"c-message-interface-panel",children:Object(l.jsxs)("div",{className:"u-flex-auto",children:[Object(l.jsxs)(l.Fragment,{children:[be,pe,me,he,Object(l.jsx)(z.a,{iconGlyph:Object(C.e)(C.c.MORE_HORIZ),onClick:ne,dataTestId:"moreActionsToggle",onDarkTheme:!0}),Object(l.jsxs)(Me.a,{isOpen:D,modalTitle:"More Actions",toggleOpen:ne,children:[Object(l.jsx)(De.a,{onClick:te,iconGlyph:Object(C.e)(C.c.DATA),title:"SEDNA Link",dataTestId:"appModalToggle"}),Object(l.jsx)(De.a,{onClick:e.goToSubjectSearch,iconGlyph:Object(C.e)(C.c.SEARCH),title:"Find Related Messages",dataTestId:"searchSubjectButton",description:"Search for messages with same Subject"}),!e.isDraft&&se&&Object(l.jsxs)("a",{className:"c-mobile-menu-button",href:Object(Ee.k)("message/".concat(e.messageId,"/original")),target:"_blank",rel:"noopener noreferrer","data-event-action":"Download Message",onClick:function onClick(){var t;null===(t=e.onMessageDownload)||void 0===t||t.call(e,e.messageId)},children:[Object(l.jsx)(A.a,{glyph:Object(C.e)(C.c.DOWNLOAD),className:"c-mobile-menu-button__icon"}),Object(l.jsx)("div",{children:Object(l.jsx)("div",{children:"Download EML"})})]}),Object(l.jsxs)(ye.a,{onClick:function onCopyMessageId(){le("Message Panel","Copy Message ID")},"data-clipboard-text":e.messageId,className:"c-mobile-menu-button",onSuccess:re,children:[Object(l.jsx)(A.a,{glyph:Object(C.e)(C.c.MESSAGE_ID_ICON),className:"c-mobile-menu-button__icon"}),Object(l.jsx)("div",{children:Object(l.jsx)("div",{id:"messageId",children:"Copy Message ID"})})]}),!e.isDraft&&ce&&Object(l.jsx)(De.a,{onClick:function showPurgeModal(){le("Message Panel","Reveal Purge Modal"),de()},iconGlyph:Object(C.e)(C.c.REMOVE),title:"Purge",dataTestId:"purgeMessageButton",description:"Permanently delete this message"})]})]}),ce&&Object(l.jsx)(we.a,{isOpen:B,toggle:de,confirm:fe,confirmText:"Purge",cancelText:"Cancel",headerText:"Are you sure you want to purge this message?",confirmTestId:"purgeConfirmYesButton",cancelTestId:"purgeConfirmNoButton",children:"If you purge this message then it will be removed from all user inboxes. This action is not reversible."}),oe&&Object(l.jsx)(we.a,{isOpen:Y,toggle:ae,headerText:"Are you sure you want to Archive this Message for Users with ".concat(e.defaultTeamName," as their default ").concat(ue.b.t(ue.a.TEAM),"?"),confirmText:"Archive for ".concat(ue.b.t(ue.a.TEAM)),cancelText:"Cancel",confirm:ie,onDoNotAskChange:Z,isDoNotAskChecked:Q,modalId:"team-archive-confirm"}),Object(l.jsx)(MessageShareModal,{shareableTeams:u,sharedTeams:p,onClose:$,isOpen:_,onShareToTeams:d,hasNewMessageShareModal:v,trackEvent:le}),Object(l.jsx)(Oe.a,{isOpen:N,toggle:te,isMobile:!0,display:"READ",displayCloseBtn:!0,trackEvent:le})]})},"mp-actions")})}var Pe=n(811),Ue=(n(350),n(384),n(354)),Be=n(394),He=n(66),Ge=n(32),We=n.n(Ge);n(1279);function MessageScheduledBar(e){var t=e.onSendNowClick,n=e.onCancelClick,r=e.sentDate,a=Object(He.d)(We()(r));return Object(l.jsxs)("div",{className:"c-message-scheduled-bar",children:[Object(l.jsxs)("div",{className:"c-message-scheduled-bar__content",children:[Object(l.jsx)(A.a,{glyph:Object(C.e)(C.c.SCHEDULED),className:"u-mr-md u-flex-shrink-0"}),Object(l.jsxs)("div",{children:["This message will be sent",Object(l.jsxs)("span",{className:"u-fw-b",children:["\xa0",a.day]})," at",Object(l.jsxs)("span",{className:"u-fw-b",children:["\xa0",a.time]})]})]}),Object(l.jsxs)("div",{className:"c-message-scheduled-bar__btns",children:[Object(l.jsx)(E.a,{buttonStyle:"link",className:"u-mr-md",onClick:n,children:"Cancel"}),Object(l.jsx)(E.a,{onClick:t,children:"Send Now"})]})]})}var ze=n(639),Ve=n.n(ze),Je=function(){function ICS(e){Object(a.a)(this,ICS),this.name=void 0,this.attendees=void 0,this.location=void 0,this.startDateTime=void 0,this.endDateTime=void 0,this.isRecurring=void 0,this.organizer=void 0,this.status=void 0;var t=e.name,n=e.attendees,r=e.location,i=e.startDateTime,o=e.endDateTime,c=e.isRecurring,s=e.organizer,l=e.status;this.name=t,this.attendees=n,this.location=r,this.startDateTime=i,this.endDateTime=o,this.isRecurring=c,this.organizer=s,this.status=l}return Object(i.a)(ICS,null,[{key:"parseICSFile",value:function parseICSFile(e){var t=Ve.a.parse(e),n=new Ve.a.Component(t).getFirstSubcomponent("vevent");if(n){var r=new Ve.a.Event(n),a=r.summary,i=r.location,o=this.parseDateTime(r.startDate.toJSDate()),c=this.parseDateTime(r.endDate.toJSDate()),s=this.parseAttendees(r.attendees),l=r.isRecurring(),u=r.organizer.toLowerCase().split("mailto:").pop(),d=n.getFirstPropertyValue("status");return G.a.of(new ICS({name:a,attendees:s,location:i,startDateTime:o,endDateTime:c,isRecurring:l,organizer:u,status:d}))}return G.a.empty()}}]),ICS}();Je.parseDateTime=function(e){return e?We()(e).format("MMMM Do YYYY, h:mm:ss a"):null},Je.parseAttendees=function(e){return e.map((function(e){return{name:e.getParameter("cn"),address:e.getValues()[0].toLowerCase().split("mailto:").pop()}}))};var Ye=n(213),qe=n(190),Ke=n(49),Xe=n(61),Qe=n(98),Ze=n(409),$e={IcsPreview:de.b.div.withConfig({displayName:"ics-preview__IcsPreview",componentId:"iu5ucv-0"})(["background-color:var(--background-1);"]),IcsContent:de.b.div.withConfig({displayName:"ics-preview__IcsContent",componentId:"iu5ucv-1"})(["border:1px solid var(--border-shade);border-radius:var(--br1);background:var(--white);margin:var(--spacing-3);padding:var(--spacing-3);"]),Title:de.b.div.withConfig({displayName:"ics-preview__Title",componentId:"iu5ucv-2"})(["font-size:var(--fs-lg);font-weight:var(--fw-bold);margin:0 var(--spacing-2) var(--spacing-3);"]),Row:de.b.div.withConfig({displayName:"ics-preview__Row",componentId:"iu5ucv-3"})(["display:flex;margin-bottom:var(--spacing-2);overflow-wrap:break-word;"]),Icon:Object(de.b)(A.a).withConfig({displayName:"ics-preview__Icon",componentId:"iu5ucv-4"})(["color:var(--text-2);min-width:var(--icon-md);margin:0 var(--spacing-2);"]),MessageAddress:Object(de.b)(qe.a).withConfig({displayName:"ics-preview__MessageAddress",componentId:"iu5ucv-5"})(["margin-right:var(--spacing-2);"])};function IcsPreview(e){var t,n,r=h.useState(null),a=Object(ee.a)(r,2),i=a[0],o=a[1],c=Object(j.useDispatch)(),s=Object(j.useSelector)((function(e){return e.entities.emailContact})),u=new Set(Object.entries(P.i(s)).filter((function(e){return e[1].length})).map((function(e){return e[0]})));return h.useEffect((function(){fetch(e.url,{credentials:"include",mode:"cors"}).then((function(e){return e.text()})).then((function(e){return Je.parseICSFile(e)})).then((function(e){return e.ifPresent((function(e){return o(e)}))})).catch((function(e){console.log(e)}))}),[e.url]),h.useEffect((function(){if(i){var e=i.attendees.map((function(e){return e.address}));e.push(i.organizer);var t=e.filter((function(e){return"NOT_LOADING"===P.g(s,e).status()}));c(new Ke.V(t))}}),[i]),i?Object(l.jsx)($e.IcsPreview,{children:Object(l.jsxs)($e.IcsContent,{children:[Object(l.jsxs)($e.Title,{children:["CANCELLED"===i.status?"Canceled":"Invitation",":"," ",i.name]}),i.startDateTime&&(t=i.startDateTime,n=i.endDateTime,Object(l.jsxs)($e.Row,{children:[showIcon(C.c.CALENDAR),Object(l.jsx)("div",{children:timeRange(t,n)})]})),i.location&&renderLocation(i.location),i.organizer.length>0&&renderOrganizer(e.currentUser,i.organizer,u),i.attendees.length>0&&renderAttendees(e.currentUser,i.attendees,i.organizer,u),Object(Qe.a)()?Object(l.jsx)(nt,{url:e.url,dispatch:c,attachmentId:e.attachmentId}):renderDownloadButton(e.url,c,e.attachmentId)]})}):Object(l.jsx)(l.Fragment,{})}function showIcon(e){return Object(l.jsx)($e.Icon,{glyph:Object(C.e)(e),size:"regular"})}function timeRange(e,t){return e&&t?"".concat(e," - ").concat(t):e||void 0}function renderLocation(e){return Object(l.jsxs)($e.Row,{children:[showIcon(C.c.LOCATION),Object(l.jsx)("div",{children:e})]})}function renderAttendees(e,t,n,r){var a=t.filter((function(e){return e.address!==n})).map((function(e){return{emailAddress:{email:e.address},recognized:Object(Ye.a)(r,e.address)}}));return Object(l.jsxs)($e.Row,{children:[showIcon(C.c.PERSON),Object(l.jsx)("ul",{className:"u-list u-pl-0 u-mb-0 u-dib",children:a.map((function(t,n){return Object(l.jsx)("li",{className:"u-dib u-mr-xs",children:Object(l.jsx)($e.MessageAddress,{id:"attendee-address-".concat(n),address:t.emailAddress,recognized:t.recognized,contactCardDisplay:V.d.READ_ONLY,currentUser:e},n)},"attendee-address-".concat(n))}))})]})}function renderOrganizer(e,t,n){var r=Object(Ye.a)(n,t),a={email:t};return Object(l.jsxs)($e.Row,{children:[showIcon(C.c.PERSON),Object(l.jsxs)("div",{children:[Object(l.jsx)(qe.a,{id:"organizer-address",address:a,recognized:r,contactCardDisplay:V.d.READ_ONLY,currentUser:e}),Object(l.jsx)("span",{className:"u-ml-md u-text-medium",children:"Organizer"})]})]})}var et=function updateActivity(e,t){e(new Xe.R(t))};function renderDownloadButton(e,t,n){return Object(l.jsxs)("a",{href:e,onClick:function onClick(){return et(t,n)},className:"c-button c--secondary u-mt-md",children:[Object(l.jsx)(A.a,{glyph:Object(C.e)(C.c.DOWNLOAD),className:"u-mr-sm"}),"Download Invite"]})}var tt,nt=function CordovaDownloadInvite(e){var t=Object(h.useCallback)((function(t){et(e.dispatch,e.attachmentId),t()}),[e.dispatch,e.attachmentId]);return Object(l.jsx)(Ze.a,{children:function children(n,r){return Object(l.jsx)(E.a,{className:"c-button c--secondary u-mt-md",onClick:function onClick(){return t(r(e.url))},icon:Object(C.e)(C.c.DOWNLOAD),children:"Download Invite"})}})},rt=function(e){Object(c.a)(MobileMessageReadPane,e);var t=Object(s.a)(MobileMessageReadPane);function MobileMessageReadPane(e){var n;return Object(a.a)(this,MobileMessageReadPane),(n=t.call(this,e)).state={headerState:R.c.DEFAULT,messageTopOffset:100},n.setMessageTopOffset=n.setMessageTopOffset.bind(Object(o.a)(n)),n}return Object(i.a)(MobileMessageReadPane,[{key:"render",value:function render(){var e=this,t=this.props,n=t.sharableTeams,r=t.canStore,a=t.canUnStore,i=t.isDraft,o=t.currentUserAssignment;return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsxs)("div",{className:b()("c-message-read-container c-ff-collapsible-hd",{"c--draft":i,"c--jr":this.props.hasJobReferences}),children:[Object(l.jsxs)("div",{className:b()("c-message-read-container__main-ff-collapsible-hd",{"c--expanded":this.state.headerState===R.c.EXPANDED}),children:[Object(S.a)(this.props.currentMessageMeta,(function(t){return Object(l.jsx)(R.b,{messageMeta:t,isFollowing:o.isPresent(),recognizedContacts:e.props.recognizedContacts.orElse(new Set),isPlainText:e.props.plainTextMode,togglePlainText:function togglePlainText(){e.props.togglePlainText(e.props.plainTextMode)},currentTeamEmail:e.props.currentTeam.emailAddress,contactCardDisplay:Object(Be.b)(e.props.tenantConfig.settings.ADDRESS_BOOK),headerState:e.state.headerState,setHeaderState:function setHeaderState(t){return e.setHeaderExpandedState(t)},topOffset:e.state.messageTopOffset,setMessageTopOffset:e.setMessageTopOffset,currentUser:e.props.currentUser,showSignedEmail:e.props.tenantConfig.settings.SIGN_EMAIL,verifiedBySednaFeatureFlag:e.props.featureFlags.VERIFIED_BY_SEDNA,isMobile:!0,onInviteToBeVerified:e.props.onInviteToBeVerified,onVerifiedLearnMore:e.props.onVerifiedLearnMore},"message-header")})),!this.props.isScheduled&&this.props.messageBody.map((function(){return Object(l.jsx)("div",{className:"c-message-toolbar__pos",style:e.state.headerState===R.c.EXPANDED?{position:"sticky",top:e.state.messageTopOffset}:{},children:Object(l.jsx)(M,{onReply:e.props.onReply,onReplyAll:e.props.onReplyAll,onForward:e.props.onForward,onResend:e.props.onResend,onResendAsNew:e.props.onResendAsNew,onEdit:e.props.onEdit,isDraft:e.props.isDraft,isSent:e.props.isSent,canCompose:e.props.currentUser.permissions.includes(Se.a.compose_message),isPlainText:e.props.plainTextMode,togglePlainText:e.props.togglePlainText,totalToCcBccEmails:e.props.currentMessageMeta.map((function(e){return e.toAddresses.length+e.ccAddresses.length+e.bccAddresses.length})).orElse(0)},"message-toolbar")})})).unwrap((function(){return Object(l.jsx)(D.b,{spinner:D.a})}),(function(){return Object(l.jsx)(h.Fragment,{})})),Object(l.jsx)(O.a,{in:this.props.isScheduled,unmountOnExit:!0,classNames:"c-message-read-container__scheduledbar",timeout:1500,children:Object(l.jsx)(MessageScheduledBar,{onSendNowClick:this.props.onSendNow,onCancelClick:this.props.onCancel,sentDate:this.props.sentDate})}),Object(l.jsxs)("div",{className:"c-message-read-container__body",children:[this.props.icsFile&&Object(l.jsx)(IcsPreview,{url:this.props.getDownloadLink(this.props.icsFile),name:this.props.icsFile.name,attachmentId:this.props.icsFile.id,currentUser:this.props.currentUser}),this.props.renderBody(this.props.currentTeam.name)]})]}),this.props.documents.length>0&&Object(l.jsx)("div",{className:"c-message-read-container__footer",children:Object(l.jsx)(L.a,{viewingMode:Ue.a.AuthorizedViewer,isMobile:!0,isDraft:this.props.isDraft,documents:this.props.documents,flexDocuments:this.props.flexDocuments,messageId:this.props.messageId})}),this.props.messageBody.map((function(){return Object(l.jsx)(Q,{currentUser:e.props.currentUser,isMobile:!0,verifiedBySednaInviteLink:e.props.featureFlags.VERIFIED_BY_SEDNA})})).unwrap((function(){return Object(l.jsx)(D.b,{spinner:D.a})}),(function(){return Object(l.jsx)(h.Fragment,{})}))]}),Object(l.jsxs)($.a,{type:"bottom",children:[Object(l.jsx)($.c,{children:Object(l.jsx)(Z.a,{to:{pathname:U.a.LIST,search:this.props.search},title:"Back",children:Object(l.jsx)(z.a,{iconGlyph:Object(C.e)(C.c.CHEVRON_LEFT),onClick:F.a,onDarkTheme:!0})})}),Object(l.jsx)($.b,{children:Object(l.jsx)("div",{className:"c-message-read-container__bips",children:Object(S.a)(n,(function(t){return Object(l.jsx)(MobileMessageInterfacePanel,{currentUser:e.props.currentUser,canStore:r,onStore:e.props.storeMessage,canUnStore:a,onUnStore:e.props.unStoreMessage,isFollowing:o.isPresent(),onFollow:e.props.followMessage,onUnFollow:e.props.unFollowMessage,shareToTeams:e.props.shareMessage,shareableTeams:t,sharedTeams:e.props.sharedTeams,enableStoreForCurrentTeam:e.props.featureFlags.ARCHIVE_FOR_ALL,onStoreForCurrentTeam:e.props.onStoreForCurrentTeam,defaultTeamName:e.props.defaultTeamName,hasNewMessageShareModal:e.props.featureFlags.NEW_MESSAGE_SHARE_MODAL,goToSubjectSearch:e.props.goToSubjectSearch,messageId:e.props.messageId,onMessageDownload:e.props.onMessageDownload,isDraft:i,onDelete:e.props.onDelete})}))})}),Object(l.jsx)($.d,{children:Object(l.jsx)(Pe.a,{searchNavigator:this.props.searchNavigator})})]})]})}},{key:"setHeaderExpandedState",value:function setHeaderExpandedState(e){this.setState({headerState:e})}},{key:"setMessageTopOffset",value:function setMessageTopOffset(e){this.setState({messageTopOffset:e})}}]),MobileMessageReadPane}(h.PureComponent),at=n(812),it=n(63),ot=n(289),ct=n(813),st=n(27),lt=n(95),ut=n(185),dt=n(511),ft=n(44),bt=n(250),pt=n(13),mt=n(87),ht=n(55),gt=n(264),jt=n(814),vt=n(210),Ot=n(47),Tt=n(131),yt=n(368),St=n(295),Ct=n(122),At=n(419),Et=n(472),wt=n(705),_t=n(115),It=n(79),xt=n(107),kt=n(93),Nt=n(410),Rt=h.lazy((function(){return Promise.all([n.e(0),n.e(9)]).then(n.bind(null,1822))})),Ft=function(e){Object(c.a)(MessageReadComponent,e);var t=Object(s.a)(MessageReadComponent);function MessageReadComponent(e){var n;return Object(a.a)(this,MessageReadComponent),(n=t.call(this,e)).searchSubjectAllTeams=function(){var e=n.props.currentMessageMeta.map((function(e){return e.subject})).orElse("");return n.props.trackEvent("Message Panel","Find Related Messages"),n.props.searchSubjectAllTeams(new pt.k(V.g.AND,[new pt.I(filteredSubject(e)),new pt.b]),n.props.location,n.props.currentUser,"","",n.props.isMobile)},n.toggleCancelModal=function(){n.setState((function(e){return{showSendingTeamModal:!e.showSendingTeamModal}}))},n.renderMessageBody=function(e,t){return n.state.plainTextMode?e.text?n.renderPlainText(e.text):Object(l.jsx)(h.Suspense,{fallback:Object(l.jsx)(D.b,{spinner:D.a}),children:Object(l.jsx)(Rt,{bodyHtml:e.html})}):e.html?Object(l.jsx)(dt.a,{bodyHtml:e.html,isMobile:t,pullToRefresh:n.props.pullToRefresh},n.props.match.params.id):n.renderPlainText(e.text)},n.renderMobileBody=function(){return Object(ot.a)(n.props.body,(function(e){return n.renderMessageBody(e,!0)}))},n.renderPlainText=function(e){return Object(l.jsx)("pre",{className:"c-message-read-container__newlines",onTouchMove:function onTouchMove(e){n.props.pullToRefresh&&e.currentTarget.parentElement&&n.props.pullToRefresh(e.currentTarget.parentElement.scrollTop)},children:e})},n.shareMessage=function(e){var t;return n.props.shareMessage(n.props.match.params.id,e,null!==(t=Object(Et.b)(n.props.sharedTeams.map((function(e){return e.map((function(e){return e.id}))})),n.props.currentUser.userTeams))&&void 0!==t?t:n.props.currentTeam.id)},n.getSendingTeamId=function(e,t){var r=n.props.sharedTeams.map((function(n){return n.find((function(n){return n.emailAddress===e||n.name===t}))})).toOptional().toNullable();return r?r.id:null},n.getSendingTeamFromId=function(e){return n.props.sharedTeams.map((function(t){return t.find((function(t){return t.id===e}))})).orElseThrow(new Error("Message Shared to no ".concat(ue.b.t(ue.a.TEAM_PLURAL))))},n.switchTeam=function(){return n.props.currentMessageMeta.map((function(e){return e.fromEmail===n.props.currentTeam.emailAddress?null:n.getSendingTeamId(e.fromEmail,e.fromName)})).toOptional().toNullable()},n.getPathName=function(){var e=n.switchTeam();return e?{pathname:U.a.COMPOSE_MESSAGE(n.props.match.params.id),search:Object(m.stringify)({goBackToTeam:Object(m.parse)(n.props.location.search).goBackToTeam||n.props.currentTeam.id,teamId:e})}:{pathname:U.a.COMPOSE_MESSAGE(n.props.match.params.id)}},n.onEdit=function(){n.props.trackEditDraft(n.props.match.params.id),n.switchSenderIfDifferent(n.props.currentUser,n.props.currentMessageMeta.orElseThrow(),n.props.body.orElseThrow());var e=n.switchTeam(),t=Object(r.a)(Object(r.a)({},n.props.location),n.getPathName());n.props.editMessage(n.props.match.params.id,t,e)},n.onDelete=function(){n.props.deleteMessage(n.props.match.params.id,n.props.location.search),n.props.goToItem(n.props.nextItem,n.props.location,n.props.isMobile)},n.buildReplyAction=function(e){var t=function buildReplyParams(e){return Object(r.a)({messageId:n.props.match.params.id,fromName:n.emailName(e),search:n.props.location.search},e&&{explicitTeamDetails:{currentTeamId:n.props.currentTeam.id,explicitTeamId:e.id}})};if(!n.props.explicitTeamTokenEnabled)return e(Ct.a.ofValue(t()));(function buildReplyParamsWithExplicitTeam(){var e=getAccessibleTeams(n.props.sharedTeams,n.props.currentUser.userTeams);return Ct.a.of((function(){return e.orElseThrow(new Error("Message Shared to no ".concat(ue.b.t(ue.a.TEAM_PLURAL))))})).flatMap((function(e){return Object(Et.a)(e,n.props.currentUser).flatMap((function(e){return Ct.a.ofValue(e.map((function(e){return t(e)})))}))}))})().map((function(r){return r.map((function(t){return e(Ct.a.ofValue(t))})).ifAbsent((function(){return n.setState({showSendingTeamModal:!0,buildReplyActionWithTeams:function buildReplyActionWithTeams(n){return e(Ct.a.ofValue(t(n)))}})}))}))},n.onReply=function(){n.props.trackEvent("Message Toolbar","Reply"),n.buildReplyAction(n.props.replyMessage)},n.onReplyAll=function(){n.props.trackEvent("Message Toolbar","Reply All"),n.buildReplyAction(n.props.replyAllMessage)},n.onResend=function(){n.props.trackEvent("Message Toolbar","Resend"),n.buildReplyAction(n.props.resendMessage)},n.onResendAsNew=function(){n.props.trackEvent("Message Toolbar","Resend As New"),n.buildReplyAction(n.props.resendAsNewMessage)},n.onForward=function(){n.props.trackEvent("Message Toolbar","Forward"),n.buildReplyAction(n.props.forwardMessage)},n.onCancel=function(){var e=n.props.currentMessageMeta.map((function(e){return void 0!==e.sender&&e.sender.userId.toString()===n.props.currentUser.id})).orElse(!1);n.props.cancelMessage(n.props.match.params.id,n.props.currentUser.id,n.props.location,n.props.searchNavigator.currentFilterSet,e,n.onEdit)},n.onSendNow=function(){n.props.sendScheduledNow(n.props.match.params.id,n.props.currentUser.id,n.props.currentMessageMeta.map((function(e){return e.sentDate})).toOptional().toNullable(),n.props.featureFlags.ENABLE_VIRUS_SCANNING?1:0)},n.emailName=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.currentTeam;return Object(T.b)({template:n.props.tenantConfig.settings.EMAIL_FROM_NAME_FORMAT,tenantName:n.props.tenantConfig.tenant.name,tenantShortName:n.props.tenantConfig.tenant.shortName,teamName:t.name,teamSendingName:null!==(e=t.sendingName)&&void 0!==e?e:null,userInitials:n.props.currentUser.initials,userFullName:Object(ft.c)(n.props.currentUser.firstName,n.props.currentUser.lastName)})},n.togglePlainTextMode=function(e){!e&&n.props.trackEvent("Message Toolbar","Plain Text Mode"),n.setState((function(e){var t=!e.plainTextMode;return localStorage.setItem("plainTextMode",t?"1":"0"),{plainTextMode:t}})),n.props.togglePlainText(e)},n.followMessage=function(){return n.props.assignMessage(n.props.match.params.id,n.props.currentUser.id,n.props.currentUser.id)},n.unFollowMessage=function(){n.props.currentUserAssignment.orElseThrow(new Error("User must be assigned."));var e=Object(It.d)(n.props.location.search)===pt.D.FOLLOWING,t=n.props.nextItem;n.props.unAssignMessage(n.props.match.params.id,n.props.currentUser.id),e&&n.goToNextItemAndFetch(t)},n.storeMessage=function(){var e=n.props.nextItem;n.props.trackStoreMessage(n.props.match.params.id),n.props.storeMessage(n.props.match.params.id,n.props.location.search),e.ifAbsent((function(){return n.props.recordListScrollPosition(0)})),n.goToNextItemAndFetch(e)},n.skipMessage=function(){var e=n.props.nextItem;n.goToNextItemAndFetch(e)},n.onMessageDownload=function(e){n.props.onMessageDownload(e)},n.storeForTeam=function(){var e=n.props.nextItem,t=n.props.location;n.props.trackStoreForCurrentTeam(n.props.match.params.id),n.props.storeForCurrentTeam(n.props.match.params.id,t.search),n.props.goToItem(e,t,n.props.isMobile)},n.unStoreMessage=function(){var e=n.props.nextItem,t=n.props.location;n.props.trackUnstoreMessage(n.props.match.params.id),n.props.unStoreMessage(n.props.match.params.id,t.search),e.ifAbsent((function(){return n.props.recordListScrollPosition(0)})),n.props.goToItem(e,t,n.props.isMobile)},n.onMoreClick=function(){return n.props.onMoreClick()},n.onToggleMessageHeader=function(e){return n.props.onToggleMessageHeader(e)},n.trackPrintMessage=function(){return n.props.trackPrintMessage(n.props.match.params.id)},n.state={plainTextMode:"1"===localStorage.getItem("plainTextMode")||!1,headerState:R.c.DEFAULT,messageTopOffset:100,showSendingTeamModal:!1,buildReplyActionWithTeams:F.a},n.setMessageTopOffset=n.setMessageTopOffset.bind(Object(o.a)(n)),n}return Object(i.a)(MessageReadComponent,[{key:"fetchAndMarkRead",value:function fetchAndMarkRead(){!function requestMessage(e,t){var n=e.body,r=e.fetchMessageDetails,a=e.currentMessageMeta,i=e.recognizedContacts,o=e.fetchKnownContacts,c=a.toUndefined(),s=c&&(c.state===V.m.Draft||c.state===V.m.PrivateDraft)&&n.isStale();(t&&n.isError()||n.isNotLoading()||s)&&r(e.match.params.id,e.currentUser.id);a.map((function(e){return i.isNotLoading()&&o(Object(ut.b)(e))}))}(this.props,!0),function markMessageReadLater(e,t,n){var r=t.id,a=e.messageRead,i=Number(e.tenantConfig.settings.P2_TIME_TO_READ)||1e3;if(clearReadByTimeout(),a.isPresent()&&!a.orElse([]).some((function(e){return e.userId===r}))){var o=Object(vt.b)(e.filterSetDeserializer,e.searchNavigator.currentFilterSet);tt=window.setTimeout((function(){return e.markMessageRead(e.match.params.id,t.id,e.featureFlags.UNREAD_COMMENT_IN_BUCKET?[o.unreadSearchQuery,o.unreadCommentOrMessageQuery]:[o.unreadSearchQuery])}),i)}}(this.props,this.props.currentUser,this.props.currentTeam)}},{key:"componentDidMount",value:function componentDidMount(){this.fetchAndMarkRead()}},{key:"componentDidUpdate",value:function componentDidUpdate(e){if(e.match.params.id!==this.props.match.params.id){this.fetchAndMarkRead();var t=Object(g.findDOMNode)(this);t instanceof HTMLElement&&(t.scrollTop=0)}}},{key:"componentWillUnmount",value:function componentWillUnmount(){clearReadByTimeout()}},{key:"render",value:function render(){var e=this,t=this.props,n=t.currentUser,r=t.currentTeam,a=t.tenantConfig,i=t.currentMessageMeta,o=t.currentUserAssignment,c=t.sharableTeams,s=t.sharedTeams,u=t.recognizedContacts,d=i.map((function(e){return e.state===V.m.PrivateDraft||e.state===V.m.Draft||e.state===V.m.Cancelled})).orElse(!1),p=i.map((function(e){return e.state===V.m.Scheduled})).orElse(!1),m=i.map((function(e){return e.state===V.m.Sent})).orElse(!1),h=i.map((function(e){return e.inInbox&&!d})).orElse(!1),g=i.map((function(e){return!e.inInbox&&!d})).orElse(!1),j=this.props.documents.orElse([]),v=this.props.messageJobReferenceTags.orElse([]).length>0,T=i.map((function(e){return e.sentDate})).orElse(""),y=j.filter((function(e){return Object(Tt.c)(e.name)===Tt.a.CALENDAR})),C=y.length>0&&y[0]||null,A=getAccessibleTeams(this.props.sharedTeams,this.props.currentUser.userTeams);return this.props.isMobile?Object(l.jsx)(rt,{currentUser:n,currentTeam:r,tenantConfig:a,canStore:h,storeMessage:this.storeMessage,canUnStore:g,unStoreMessage:this.unStoreMessage,isDraft:d,currentUserAssignment:o,followMessage:this.followMessage,unFollowMessage:this.unFollowMessage,onReply:this.onReply,onReplyAll:this.onReplyAll,onForward:this.onForward,onResend:this.onResend,onResendAsNew:this.onResendAsNew,onEdit:this.onEdit,shareMessage:this.shareMessage,sharableTeams:c,sharedTeams:s.orElse([]),messageBody:this.props.body,renderBody:this.renderMobileBody,isSent:m,currentMessageMeta:i,recognizedContacts:u,plainTextMode:this.state.plainTextMode,togglePlainText:this.togglePlainTextMode,search:this.props.location.search,documents:j,flexDocuments:this.props.flexDocuments,messageId:this.props.match.params.id,hasJobReferences:v,onStoreForCurrentTeam:this.storeForTeam,featureFlags:this.props.featureFlags,searchNavigator:this.props.searchNavigator,isScheduled:p,onCancel:this.onCancel,onSendNow:this.onSendNow,sentDate:T,pullToRefresh:this.props.pullToRefresh,icsFile:C,getDownloadLink:this.getDownloadLink,defaultTeamName:this.props.defaultTeamName,onInviteToBeVerified:this.props.onInviteToBeVerified,onVerifiedLearnMore:this.props.onVerifiedLearnMore,goToSubjectSearch:this.searchSubjectAllTeams,onMessageDownload:this.onMessageDownload,onDelete:this.onDelete}):Object(ot.a)(this.props.body,(function(t){return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)(Nt.a,{toggleLeftPane:e.props.toggleLeftPane,toggleRightPane:e.props.toggleRightPane}),Object(l.jsx)("div",{className:"c-message-read-container__bips",children:Object(S.a)(c,(function(t){return Object(l.jsx)(Re,{defaultTeamName:e.props.defaultTeamName,currentUser:n,canStore:h,onStore:e.storeMessage,goToNextItem:e.skipMessage,canUnStore:g,onUnStore:e.unStoreMessage,isDraft:d,isFollowing:o.isPresent(),onFollow:e.followMessage,onUnFollow:e.unFollowMessage,messageId:e.props.match.params.id,onDelete:e.onDelete,shareToTeams:e.shareMessage,shareableTeams:t,sharedTeams:s.orElse([]),enableStoreForCurrentTeam:e.props.featureFlags.ARCHIVE_FOR_ALL,onStoreForCurrentTeam:e.storeForTeam,toggleRightPane:e.props.toggleRightPane,toggleLeftPane:e.props.toggleLeftPane,isLeftPaneCollapsed:e.props.isLeftPaneCollapsed,isRightPaneCollapsed:e.props.isRightPaneCollapsed,onMessageDownload:e.onMessageDownload,trackEvent:e.props.trackEvent,hasNewMessageShareModal:e.props.featureFlags.NEW_MESSAGE_SHARE_MODAL,goToSubjectSearch:e.searchSubjectAllTeams,copySuccessToast:e.props.copySuccessToast})}))}),Object(l.jsxs)("div",{className:b()("c-message-read-container c-ff-collapsible-hd",{"c--draft":d,"c--jr":v}),children:[Object(l.jsxs)("div",{className:b()("c-message-read-container__main-ff-collapsible-hd",{"c--expanded":e.state.headerState===R.c.EXPANDED}),children:[Object(S.a)(i,(function(t){return Object(l.jsx)(R.b,{messageMeta:t,isFollowing:o.isPresent(),recognizedContacts:u.orElse(new Set),isPlainText:e.state.plainTextMode,togglePlainText:function togglePlainText(){return e.togglePlainTextMode(e.state.plainTextMode)},currentTeamEmail:r.emailAddress,contactCardDisplay:Object(Be.b)(a.settings.ADDRESS_BOOK),headerState:e.state.headerState,setHeaderState:function setHeaderState(t){return e.setHeaderExpandedState(t)},topOffset:e.state.messageTopOffset,setMessageTopOffset:e.setMessageTopOffset,currentUser:e.props.currentUser,showSignedEmail:e.props.tenantConfig.settings.SIGN_EMAIL,verifiedBySednaFeatureFlag:e.props.featureFlags.VERIFIED_BY_SEDNA,onMoreClick:e.onMoreClick,onToggleMessageHeader:e.onToggleMessageHeader,onInviteToBeVerified:e.props.onInviteToBeVerified,onVerifiedLearnMore:e.props.onVerifiedLearnMore},"message-header")})),!p&&Object(l.jsx)("div",{className:"c-message-toolbar__pos",style:e.state.headerState===R.c.EXPANDED?{top:e.state.messageTopOffset}:{},children:Object(l.jsx)(M,{replyHref:e.createMessageActionHref("reply"),onReply:e.onReply,replyAllHref:e.createMessageActionHref("replyAll"),onReplyAll:e.onReplyAll,forwardHref:e.createMessageActionHref("forward"),onForward:e.onForward,resendHref:e.createMessageActionHref("resend"),onResend:e.onResend,resendAsNewHref:e.createMessageActionHref("resendAsNew"),onResendAsNew:e.onResendAsNew,editHref:e.props.createHref(e.getPathName()),onEdit:e.onEdit,isDraft:d,isSent:m,canCompose:n.permissions.includes(Se.a.compose_message),trackOnPrint:e.trackPrintMessage,isPlainText:e.state.plainTextMode,togglePlainText:e.togglePlainTextMode,totalToCcBccEmails:i.map((function(e){return e.toAddresses.length+e.ccAddresses.length+e.bccAddresses.length})).orElse(0)},"message-toolbar")}),Object(l.jsx)(O.a,{in:p,unmountOnExit:!0,classNames:"c-message-read-container__scheduledbar",timeout:1500,children:Object(l.jsx)(MessageScheduledBar,{onSendNowClick:e.onSendNow,onCancelClick:e.onCancel,sentDate:T})}),Object(l.jsxs)("div",{className:"c-message-read-container__body",children:[C&&Object(l.jsx)(IcsPreview,{url:e.getDownloadLink(C),name:C.name,attachmentId:C.id,currentUser:n}),e.renderMessageBody(t,!1)]})]}),Object(l.jsxs)("div",{className:"c-message-read-container__footer",children:[j.length>0&&Object(l.jsx)(L.a,{viewingMode:Ue.a.AuthorizedViewer,isMobile:e.props.isMobile,isDraft:d,documents:j,flexDocuments:e.props.flexDocuments,messageId:e.props.match.params.id}),Object(l.jsx)(ct.a,{searchNavigator:e.props.searchNavigator})]}),Object(l.jsx)(Q,{currentUser:n,isMobile:e.props.isMobile,verifiedBySednaInviteLink:e.props.featureFlags.VERIFIED_BY_SEDNA})]}),Object(l.jsxs)(At.a,{isOpen:e.state.showSendingTeamModal,toggle:e.toggleCancelModal,confirmText:"Select",cancelText:"Cancel",headerText:"Select another ".concat(ue.b.t(ue.a.TEAM)," to reply from?"),multiple:!1,options:A.map((function(e){return e.map((function(e){return{label:e.name,id:e.id}}))})).orElseThrow(new Error("Message Shared to no ".concat(ue.b.t(ue.a.TEAM_PLURAL)))),fieldName:"sendingTeamId",onSubmit:function onSubmit(t){var n,r=t.sendingTeamId;return e.state.buildReplyActionWithTeams(null!==(n=e.getSendingTeamFromId(r))&&void 0!==n?n:e.props.currentTeam)},children:["This message is available to multiple"," ",ue.b.t(ue.a.TEAM_PLURAL).toLowerCase(),"; please select the appropriate \u201cfrom\u201d ",ue.b.t(ue.a.TEAM).toLowerCase(),":"]})]})}))}},{key:"switchSenderIfDifferent",value:function switchSenderIfDifferent(e,t,n){var r;if(this.props.featureFlags.CHANGE_DRAFT_OWNER&&this.isSenderDifferent(t,e))return this.props.changeMessageSender(t,n,Object(T.b)({template:this.props.tenantConfig.settings.EMAIL_FROM_NAME_FORMAT,tenantName:this.props.tenantConfig.tenant.name,tenantShortName:this.props.tenantConfig.tenant.shortName,teamName:this.props.currentTeam.name,teamSendingName:null!==(r=this.props.currentTeam.sendingName)&&void 0!==r?r:null,userInitials:e.initials,userFullName:Object(ft.c)(e.firstName,e.lastName)}))}},{key:"isSenderDifferent",value:function isSenderDifferent(e,t){return!!e.draftTag&&t.id!==e.draftTag.userId}},{key:"setHeaderExpandedState",value:function setHeaderExpandedState(e){this.setState({headerState:e})}},{key:"setMessageTopOffset",value:function setMessageTopOffset(e){this.setState({messageTopOffset:e})}},{key:"createMessageActionHref",value:function createMessageActionHref(e){var t=encodeURIComponent("".concat(window.location.protocol,"//").concat(window.location.host).concat(this.props.createHref({pathname:U.a.COMPOSE_MESSAGE(),search:Object(m.stringify)({teamId:this.props.currentTeam.id})}))),n=Object(St.c)(this.emailName());return n.push("currentTeamId=".concat(this.props.currentTeam.id)),n.push("redirect=".concat(t)),"".concat(Object(gt.a)(),"/api/message/").concat(this.props.match.params.id,"/").concat(e,"?").concat(n.join("&"))}},{key:"goToNextItemAndFetch",value:function goToNextItemAndFetch(e){this.props.goToItem(e,this.props.location,this.props.isMobile),this.props.searchNavigator.shouldFetchNextPage(this.props.match.params.id)&&this.props.fetchNextPage(this.props.searchNavigator)}},{key:"getDownloadLink",value:function getDownloadLink(e){return Object(Ee.k)("attachment/blob?storedName=".concat(e.hash))}}]),MessageReadComponent}(h.PureComponent);function filteredSubject(e){return e.replace(/^(\s*(RE|FWD?|AW)\s*[:;]\s*)*/im,"")}function clearReadByTimeout(){void 0!==tt&&(clearTimeout(tt),tt=void 0)}function getAccessibleTeams(e,t){return e.map((function(e){return e.filter((function(e){return t.includes(e.id,0)}))}))}var Mt=Object(H.b)([function(e){return e.entities.team},function(e,t){return P.g(e.entities.messageTeam,t)}],(function(e,t){var n=P.h(e).filter((function(e){return null===e.deletedAt}));return t.map((function(e){var t=new Set(e);return n.filter((function(e){return!t.has(e.id)})).sort(Object(it.a)((function(e){return e.name})))}))})),Dt=Object(H.b)([function(e,t){return P.g(e.entities.messageBody,t.match.params.id)},function(e,t){return P.g(e.entities.userConfig,P.a)},function(e,t){return e.entities.team},function(e,t){return P.g(e.entities.messageMeta,t.match.params.id)},function(e,t){return Object(ut.a)(e,{match:t.match,currentUser:t.currentUser})},function(e,t){return P.g(e.entities.messageRead,t.match.params.id)},function(e,t){return Mt(e,t.match.params.id)},function(e,t){return Object(ut.f)(e,t.match.params.id)},function(e){return Object(P.i)(e.entities.team)},function(e,t){return Object(ut.c)(e,t)},function(e,t){return Object(at.a)(e,t.match.params.id)},function(e,t){return Object(jt.a)(e,t.match.params.id)},function(e,t){return t.history.createHref},function(e,t){return Object(mt.g)(e,t.match.params.id)},function(e,t){return t.searchNavigator.getNextItem(t.match.params.id)},function(e,t){return Object(_t.a)(e,t.currentUser)},kt.a],(function(e,t,n,r,a,i,o,c,s,l,u,d,b,p,m,h,g){return{body:e,defaultTeamName:t.flatMap((function(e){return P.g(n,e.user.defaultTeamId)})).map((function(e){return e.name})).orElse(ue.b.t(ue.a.TEAM)),currentMessageMeta:r,currentUserAssignment:a,messageRead:i,sharableTeams:o,sharedTeams:c,recognizedContacts:l,documents:u,flexDocuments:d,createHref:b,messageJobReferenceTags:p,nextItem:m,filterSetDeserializer:h,explicitTeamTokenEnabled:g}})),Lt={searchSubjectAllTeams:function searchSubjectAllTeams(e,t,n,r,a,i){return new xt.c(e,t,n,pt.D.ALL,a,i)},copySuccessToast:function copySuccessToast(e){return new Le.b({message:"ID ".concat(e," Copied to clipboard"),level:V.n.info})},fetchMessageDetails:function fetchMessageDetails(e,t){return st.X.doNotSetToLoading(e,t)},fetchMessageTags:function fetchMessageTags(e){return new ht.C(e)},fetchMessageJobReferenceTags:function fetchMessageJobReferenceTags(e){return new lt.n(e)},fetchNextPage:function fetchNextPage(e){return e.fetchNextPage(e.items[e.items.length-1])},shareMessage:function shareMessage(e,t,n){return new bt.b(e,t,n)},markMessageRead:function markMessageRead(e,t,n){return new st.ib(e,t,n)},fetchKnownContacts:function fetchKnownContacts(e){return new Ke.V(e)},deleteMessage:function deleteMessage(e,t){return new st.mb(e,t)},goToItem:function goToItem(e,t,n){return e.maybe(Object(p.e)(Object(r.a)(Object(r.a)({},t),{},{pathname:U.a.LIST})),(function(e){return Object(Y.b)(e.type,e.id,t,n)}))},replyMessage:function replyMessage(e){return buildReplyActionFromTry(e,(function(e){return e.reply().build()}),"Unable to Reply to message")},replyAllMessage:function replyAllMessage(e){return buildReplyActionFromTry(e,(function(e){return e.replyAll().build()}),"Unable to Reply All to message")},resendMessage:function resendMessage(e){return buildReplyActionFromTry(e,(function(e){return e.resend().build()}),"Unable to Resend message")},resendAsNewMessage:function resendAsNewMessage(e){return buildReplyActionFromTry(e,(function(e){return e.resendAsNew().build()}),"Unable to Resend message as new")},forwardMessage:function forwardMessage(e){return buildReplyActionFromTry(e,(function(e){return e.forward().build()}),"Unable to Forward message")},editMessage:function editMessage(e,t,n){return n?y.h.switchTeam(n,[Object(p.e)(t)]):Object(p.e)(t)},recordListScrollPosition:function recordListScrollPosition(e){return new Ot.o(e)},assignMessage:function assignMessage(e,t,n){return new ht.F(e,[t],n)},unAssignMessage:function unAssignMessage(e,t){return new ht.O(e,[t])},storeMessage:function storeMessage(e,t){return new st.rb([e],t)},unStoreMessage:function unStoreMessage(e,t){return new st.ub([e],t)},storeForCurrentTeam:function storeForCurrentTeam(e,t){return new st.sb(e,t)},onMessageDownload:function onMessageDownload(e){return Fe.a.withEvent({eventAction:"Download Message",eventCategory:"Message Panel",eventLabel:e})},trackPrintMessage:function trackPrintMessage(e){return Fe.a.withEvent(Object(Fe.h)("Print",e))},trackStoreMessage:function trackStoreMessage(e){return Fe.a.withEvent(Object(Fe.h)("Store",e))},trackUnstoreMessage:function trackUnstoreMessage(e){return Fe.a.withEvent(Object(Fe.h)("Unstore",e))},trackStoreForCurrentTeam:function trackStoreForCurrentTeam(e){return Fe.a.withEvent(Object(Fe.h)("Archive For Team",e))},trackEditDraft:function trackEditDraft(e){return Fe.a.withEvent(Object(Fe.e)("Edit Draft",e))},onMoreClick:function onMoreClick(){return Fe.a.withEvent({eventAction:"Show more",eventCategory:"Message Addresses"})},onToggleMessageHeader:function onToggleMessageHeader(e){return Fe.a.withEvent({eventAction:e?"Expand Header":"Collapse Header",eventCategory:"Message Header"})},togglePlainText:function togglePlainText(e){return Fe.a.withEvent({eventAction:e?"Show HTML":"Show Plaintext",eventCategory:"Message Header"})},trackEvent:function trackEvent(e,t){return new Fe.a(e,t)},cancelMessage:function cancelMessage(e,t,n,r,a,i){return new st.kb(e,t,n,r,a,i)},sendScheduledNow:function sendScheduledNow(e,t,n,r){return new st.wb(e,t,n,r)},changeMessageSender:function changeMessageSender(e,t,n){return new st.a(e.id,st.a.buildClientCopyFromMeta(e,t,n))},onInviteToBeVerified:function onInviteToBeVerified(){return new wt.a},onVerifiedLearnMore:function onVerifiedLearnMore(){return new wt.b}},Pt=Object(v.j)(Object(j.connect)((function mapStateToProps(e,t){return Dt(e,t)}),Lt)(Object(u.a)(Ft)));function buildReplyActionFromTry(e,t,n){return e.map((function(e){return t(function buildReplyAction(e){var t=e.messageId,n=e.fromName,r=e.search,a=e.explicitTeamDetails,i=new yt.c(t,n,r);return a&&i.withExplicitTeam(a),i}(e))})).orElse((function(e){return new Le.b({message:"".concat(n,", ").concat(e.message),level:V.n.warning})}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return U}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(22),u=n(28),d=n(25),b=n(32),p=n.n(b),m=(n(1218),n(21)),h=n(152),g=n(19),j=n(9),v=n(24),O=n.n(v),T=n(88);n(349);function DateRangeInput(e){var t=e.className,n=e.fromInputRef,r=e.toInputRef,a=e.fromPlaceholder,i=void 0===a?"After":a,o=e.toPlaceholder,l=void 0===o?"Before":o,u=e.fromDate,d=e.toDate,b=e.onDatesChange,p=e.onFocus,h=e.focusedInput,v=s.useState(Object(T.d)(u)),y=Object(m.a)(v,2),S=y[0],C=y[1],A=s.useState(Object(T.d)(d)),E=Object(m.a)(A,2),w=E[0],_=E[1];s.useEffect((function(){var e=Object(T.f)(u,T.a);u&&e===u||C(Object(T.d)(u));var t=Object(T.f)(d,T.a);d&&t===d||_(Object(T.d)(d))}),[u,d]),s.useEffect((function(){"from"===h&&n.current&&n.current!==document.activeElement&&n.current.focus(),"to"===h&&r.current&&r.current!==document.activeElement&&r.current.focus()}),[h,n,r]);return Object(c.jsxs)("div",{className:O()("c-date-range-input","u-flex","u-items-center","u-flex-auto",t),children:[Object(c.jsx)("div",{className:O()("c-date-range-input__input-container","u-flex-auto"),children:Object(c.jsx)("input",{"data-testid":"date-picker-from-input",ref:n,className:O()("c-date-range-input__input",{"c--focused":"from"===h}),name:"from",value:S,placeholder:i,onChange:function handleFromInputChange(t){var n=t.target.value;if(C(n),!n.length)return b(void 0,d);if(Object(T.e)(n,T.a)){var a=Object(T.f)(n,T.a);b(e.maxDate&&a<=e.maxDate?Object(T.f)(n,T.a):e.maxDate,d&&a<=d?d:void 0),!d&&r.current&&r.current.focus()}},onFocus:p,onClick:p})}),Object(c.jsx)(g.a,{glyph:Object(j.e)(j.c.ARROW_RIGHT),size:"small",className:"c-date-range-input__arrow"}),Object(c.jsx)("div",{className:O()("c-date-range-input__input-container","u-flex-auto"),children:Object(c.jsx)("input",{"data-testid":"date-picker-to-input",ref:r,className:O()("c-date-range-input__input",{"c--focused":"to"===h}),name:"to",value:w,placeholder:l,onChange:function handleToInputChange(t){var r=t.target.value;if(_(r),!r.length)return b(u,void 0);if(Object(T.e)(r,T.a)){var a=Object(T.f)(r,T.a);b(u&&a>=u?u:void 0,e.maxDate&&a<=e.maxDate?Object(T.f)(r,T.a):e.maxDate),!u&&n.current&&n.current.focus()}},onFocus:p,onClick:p})})]})}var y=n(578),S=n.n(y),C=n(579),A=n(470);function DateRangePicker(e){var t=e.fromDate,n=e.toDate,r=e.onDatesChange,a=e.focusedInput,i=e.inputElement,o=e.minDate,l=void 0===o?T.c:o,u=e.maxDate,d=void 0===u?T.b:u,b=e.disableOutsideRange,p=s.useState(n),h=Object(m.a)(p,2),g=h[0],j=h[1],v=s.useState(t),O=Object(m.a)(v,2),y=O[0],E=O[1],w=b?{before:l,after:d}:void 0;s.useEffect((function(){return"from"===a&&t?E(t):"to"===a&&n?E(n):void 0}),[a,t,n]);var _=s.useCallback((function(e){var t=e.from,n=e.to,r=e.date;return"from"===a?!t&&(!!n&&r<n):"to"===a?!n&&(!!t&&r>t):void 0}),[a]),I=s.useCallback((function(e){if(!b||!(e<l||e>d))if("from"!==a)if("to"!==a){if(n&&e>n)return r(t,e),void j(e);r(e,n),j(e)}else t&&e<t?(r(e),j(void 0)):(r(t,e),j(e));else n&&e>=n?(r(e),j(void 0)):(r(e,n),j(e))}),[b,a,t,d,l,r,n]),x=s.useCallback((function(e){_({from:t,to:n,date:e})?j(e):j(void 0)}),[_,t,n]),k=s.useCallback((function(){g&&j(void 0)}),[g]),N=s.useCallback((function(e){var t=e.date,n=e.localeUtils;return i?Object(c.jsxs)(c.Fragment,{children:[i(),Object(c.jsx)(A.a,{date:t,localeUtils:n,onChange:E})]}):Object(c.jsx)(A.a,{date:t,localeUtils:n,onChange:E})}),[i]),R=s.useCallback((function(e){var t=e.showPreviousButton,n=e.showNextButton,r=e.previousMonth,a=e.nextMonth;return Object(c.jsx)(C.a,{className:i&&"c-date-range-picker__inline-nav-bar",showPreviousButton:t,showNextButton:n,previousMonth:r,nextMonth:a,onChange:E})}),[i]),F=s.useMemo((function(){return"from"!==a||t?[t,{from:t,to:null!==n&&void 0!==n?n:g},n]:[t,{from:g,to:n},n]}),[g,a,t,n]),M=s.useMemo((function(){return"from"!==a||t?{start:t,end:null!==n&&void 0!==n?n:g}:{start:g,end:n}}),[g,a,t,n]);return Object(c.jsx)("div",{children:Object(c.jsx)(S.a,{className:"c-date-range-picker",onDayClick:I,onDayMouseEnter:x,onDayMouseLeave:k,month:y,fromMonth:l,toMonth:d,selectedDays:F,disabledDays:w,modifiers:M,captionElement:N,navbarElement:R})})}function DateRangePickerInput(e){var t=e.fromDate,n=e.toDate,r=e.onDatesChange,a=e.fromPlaceholder,i=e.toPlaceholder,o=e.minDate,l=e.maxDate,u=e.disableOutsideRange,d=s.useRef(null),b=s.useRef(null),p=s.useState(null),v=Object(m.a)(p,2),O=v[0],T=v[1],y=s.useCallback((function(){"from"===O&&d.current&&d.current.click(),"to"===O&&b.current&&b.current.click(),T(null)}),[O]),S=s.useCallback((function(e,n){r(e,n),n&&e===t||!b.current?e||!d.current?y():d.current.focus():b.current.focus()}),[t,y,r]),C=s.useCallback((function(e){T(e.target.name)}),[]),A=s.useCallback((function(){T(null)}),[]);return Object(c.jsxs)("div",{className:"c-date-range-picker-input",children:[Object(c.jsx)(h.a,{visible:null!==O,theme:"date-picker",arrow:!1,boundary:"window",content:Object(c.jsx)(DateRangePicker,{fromDate:t,toDate:n,onDatesChange:S,focusedInput:O,minDate:o,maxDate:l,disableOutsideRange:u}),hideOnClick:!0,flip:!0,flipOnUpdate:!0,interactive:!0,distance:0,placement:"bottom-start",trigger:"manual",triggerTarget:d.current&&b.current?[d.current,b.current]:null,onHidden:A,children:Object(c.jsx)("div",{children:Object(c.jsx)(DateRangeInput,{fromInputRef:d,toInputRef:b,fromPlaceholder:a,toPlaceholder:i,fromDate:t,toDate:n,onDatesChange:r,onFocus:C,focusedInput:O,minDate:o,maxDate:l})})}),(t||n)&&Object(c.jsx)("button",{"data-testid":"date-picker-clear",className:"c-date-picker__clear-button c--outer",onClick:function handleClear(){var t;r(),O&&d.current&&d.current.focus(),null===(t=e.trackOldUIEvent)||void 0===t||t.call(e,"Navigation Bar - Clear Absolute Time Filters")},children:Object(c.jsx)(g.a,{glyph:Object(j.e)(j.c.CLEAR),size:"regular",className:"c-date-picker__clear-icon"})})]})}function FilterAbsoluteTime(e){var t,n=e.startDate,r=e.endDate,a=e.onDatesChangeHandler,i=s.useMemo((function(){var e=n.toUndefined();return null===e||void 0===e?void 0:e.toDate()}),[n]),o=s.useMemo((function(){var e=r.toUndefined();return null===e||void 0===e?void 0:e.toDate()}),[r]),l=s.useCallback((function(e,t){a(d.a.of(e&&p()(e).startOf("date")),d.a.of(t&&p()(t).endOf("date")))}),[a]);return Object(c.jsx)("div",{className:"filter-nav-date-range c-filter-absolute-time",children:Object(c.jsx)(DateRangePickerInput,{fromDate:i,toDate:o,onDatesChange:l,disableOutsideRange:!0,maxDate:null!==(t=e.maxDate)&&void 0!==t?t:p()().endOf("day").toDate(),trackOldUIEvent:e.trackOldUIEvent})})}var E,w=n(13);n(1219);!function(e){e.ALL="All",e.ONE_YEAR="1y",e.ONE_MONTH="1m",e.ONE_WEEK="1w",e.THREE_DAYS="3d",e.TWENTY_FOUR_HOURS="24h"}(E||(E={}));var _=Object.values(E);function FilterRelativeTime(e){var t=e.value,n=e.onChangeHandler,r=e.trackOldUIEvent,a=function trackTimeEvent(e){if(r){if(e===E.ONE_YEAR)r("Navigation Bar: Time Relative 1-year");else if(e===E.ONE_MONTH)r("Navigation Bar: Time Relative 1-month");else if(e===E.ONE_WEEK)r("Navigation Bar: Time Relative 1-week");else if(e===E.THREE_DAYS)r("Navigation Bar: Time Relative 3-days");else if(e===E.TWENTY_FOUR_HOURS)r("Navigation Bar: Time Relative 24-hours");else if(e===E.ALL)return r("Relative Time All"),r("Relative Time Removed");return r("Relative Time Selected")}};return Object(c.jsx)("div",{className:"c-filter-time-container__filters","data-testid":"filter-relative-time",children:Object(c.jsxs)("div",{className:"c-filter-relative-time",children:[Object(c.jsx)("input",{type:"range",min:"0",max:_.length-1,step:"1",value:_.indexOf(timeDeltaToRelativeTime(t)),onChange:function onChange(e){n(relativeTimeToTimeDelta(_[parseInt(e.target.value,10)])),a(_[parseInt(e.target.value,10)])}}),Object(c.jsx)("div",{className:"c-filter-relative-time__labels",children:_.map((function(e){return Object(c.jsx)("span",{className:O()("c-filter-relative-time__labels-text",{"c--selected":timeDeltaToRelativeTime(t)===e}),onClick:function onClick(){n(relativeTimeToTimeDelta(e)),a(e)},children:e},e)}))})]})})}function timeDeltaToRelativeTime(e){return e.map((function(e){if(3===e.n&&e.unit===w.L.DAY)return E.THREE_DAYS;if(24===e.n&&e.unit===w.L.HOUR)return E.TWENTY_FOUR_HOURS;if(1===e.n){if(e.unit===w.L.WEEK)return E.ONE_WEEK;if(e.unit===w.L.MONTH)return E.ONE_MONTH;if(e.unit===w.L.YEAR)return E.ONE_YEAR}return E.ALL})).orElse(E.ALL)}function relativeTimeToTimeDelta(e){return e===E.ONE_YEAR?d.a.of({n:1,unit:w.L.YEAR}):e===E.ONE_MONTH?d.a.of({n:1,unit:w.L.MONTH}):e===E.ONE_WEEK?d.a.of({n:1,unit:w.L.WEEK}):e===E.THREE_DAYS?d.a.of({n:3,unit:w.L.DAY}):e===E.TWENTY_FOUR_HOURS?d.a.of({n:24,unit:w.L.HOUR}):d.a.empty()}var I,x=n(882);function ToggleTimeButton(e){var t=e.timeState,n=e.toggleTime;return Object(c.jsxs)(x.a,{className:"c-quick-filter",onClick:n,children:[t===I.RELATIVE&&Object(c.jsxs)("div",{children:[Object(c.jsx)(g.a,{glyph:Object(j.e)(j.c.TIME)}),"Time"]}),t===I.ABSOLUTE&&Object(c.jsxs)("div",{children:[Object(c.jsx)(g.a,{glyph:Object(j.e)(j.c.CALENDAR)}),"Dates"]})]})}!function(e){e.RELATIVE="RELATIVE",e.ABSOLUTE="ABSOLUTE"}(I||(I={}));var k=n(56);function DateRangePickerInline(e){var t=e.fromDate,n=e.toDate,r=e.onDatesChange,a=e.fromPlaceholder,i=e.toPlaceholder,o=e.minDate,l=e.maxDate,u=e.disableOutsideRange,d=s.useRef(null),b=s.useRef(null),p=s.useState("from"),h=Object(m.a)(p,2),v=h[0],O=h[1];s.useEffect((function(){d.current&&d.current.focus()}),[]);var T=s.useCallback((function(e,n){r(e,n),n&&e===t||!b.current?e||!d.current?O(null):d.current.focus():b.current.focus()}),[t,r]),y=s.useCallback((function(){r(),d.current&&d.current.focus()}),[r]),S=s.useCallback((function(e){O(e.target.name)}),[]),C=s.useCallback((function(){return Object(c.jsxs)("div",{className:"u-flex",children:[Object(c.jsx)(DateRangeInput,{className:"c-date-range-picker-inline__input-container",fromInputRef:d,toInputRef:b,fromPlaceholder:a,toPlaceholder:i,fromDate:t,toDate:n,onDatesChange:r,onFocus:S,focusedInput:v,minDate:o,maxDate:l}),(t||n)&&Object(c.jsx)("button",{className:"c-date-picker__clear-button c--outer u-flex-auto u-flex-grow-0",onClick:y,children:Object(c.jsx)(g.a,{glyph:Object(j.e)(j.c.CLEAR),size:"regular",className:"c-date-picker__clear-icon"})})]})}),[v,t,a,y,S,r,n,i,l,o]);return Object(c.jsx)("div",{children:Object(c.jsx)(DateRangePicker,{fromDate:t,toDate:n,onDatesChange:T,focusedInput:v,inputElement:C,minDate:o,maxDate:l,disableOutsideRange:u})})}function FilterAbsoluteTimeInline(e){var t=e.startDate,n=e.endDate,r=e.onDatesChangeHandler,a=e.onFill,i=s.useMemo((function(){var e=t.toUndefined();return null===e||void 0===e?void 0:e.toDate()}),[t]),o=s.useMemo((function(){var e=n.toUndefined();return null===e||void 0===e?void 0:e.toDate()}),[n]),l=s.useCallback((function(e,t){r(d.a.of(e&&p()(e).startOf("date")),d.a.of(t&&p()(t).endOf("date"))),t&&e&&e===i&&a()}),[a,i,r]);return Object(c.jsx)("div",{"data-testid":"filter-absolute-time-inline",children:Object(c.jsx)(DateRangePickerInline,{fromDate:i,toDate:o,onDatesChange:l,disableOutsideRange:!0,maxDate:p()().endOf("day").toDate()})})}var N=n(58),R=n(34);n(1220);function TimeDateFilter(e){var t=e.relativeTimeValue,n=e.showLabel,r=e.startDate,a=e.endDate,i=e.timeOnChangeHandler,o=e.onDatesChangeHandler,l=s.useRef(null),u=t.isPresent(),d=a.isPresent(),b=s.useCallback((function(e){return function(){l.current&&l.current.click()}}),[]),p=n?Object(c.jsxs)(R.a,{"data-testid":"time-target",className:O()("c-quick-filter",{"c--active":u}),children:[Object(c.jsx)(g.a,{glyph:Object(j.e)(j.c.TIME)}),Object(c.jsx)("div",{children:"Time"})]}):Object(c.jsx)(N.a,{content:"Time",children:Object(c.jsxs)(R.a,{"data-testid":"time-target",className:O()("c-quick-filter",{"c--active":u}),children:[Object(c.jsx)(g.a,{glyph:Object(j.e)(j.c.TIME)}),Object(c.jsx)("span",{className:"u-clip",children:"Time"})]})}),m=n?Object(c.jsxs)(R.a,{"data-testid":"date-target",className:O()("c-quick-filter",{"c--active":d}),ref:l,children:[Object(c.jsx)(g.a,{glyph:Object(j.e)(j.c.CALENDAR)}),Object(c.jsx)("span",{className:"d-none d-lg-block",children:"Dates"})]}):Object(c.jsx)(N.a,{content:"Dates",children:Object(c.jsxs)(R.a,{"data-testid":"date-target",className:O()("c-quick-filter",{"c--active":d}),ref:l,children:[Object(c.jsx)(g.a,{glyph:Object(j.e)(j.c.CALENDAR)}),Object(c.jsx)("span",{className:"u-clip",children:"Dates"})]})});return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)("div",{children:Object(c.jsx)(h.a,{theme:"time-picker",arrow:!1,boundary:"window",content:Object(c.jsx)(FilterRelativeTime,{value:t,onChangeHandler:i,trackOldUIEvent:e.trackOldUIEvent}),flip:!0,flipOnUpdate:!0,interactive:!0,distance:0,placement:"bottom",trigger:"click",hideOnClick:!0,children:Object(c.jsx)("div",{children:p})})}),Object(c.jsx)("div",{children:Object(c.jsx)(h.a,{theme:"date-picker",arrow:!1,boundary:"window",content:Object(c.jsx)(FilterAbsoluteTimeInline,{startDate:r,endDate:a,onDatesChangeHandler:o,onFill:b("date")}),flip:!0,flipOnUpdate:!0,interactive:!0,distance:0,placement:"bottom",trigger:"click",hideOnClick:!0,children:Object(c.jsx)("div",{children:m})})})]})}n(1221);var F=n(111),M=n(107),D=n(29),L=function(e){Object(i.a)(FilterTimeContainerComponent,e);var t=Object(o.a)(FilterTimeContainerComponent);function FilterTimeContainerComponent(e){var n;Object(r.a)(this,FilterTimeContainerComponent),(n=t.call(this,e)).goToAbsoluteTimeFilter=function(e,t){e.isPresent()&&n.props.trackEvent("Time Filters","After Date Selected"),t.isPresent()&&n.props.trackEvent("Time Filters","Before Date Selected"),n.props.goToAbsoluteTimeFilter(e,t,n.props.currentFilterSet,n.props.location,n.props.currentUser)},n.goToRelativeTimeFilter=function(e){n.props.goToRelativeTimeFilter(e,n.props.currentFilterSet,n.props.location,n.props.currentUser)},n.toggleTime=function(){n.setState((function(e){return{timeToggleState:e.timeToggleState===I.RELATIVE?I.ABSOLUTE:I.RELATIVE}})),n.clearTimeFilter()};var a=n.props,i=a.absoluteTimeStartDate,o=a.absoluteTimeEndDate,c=i.isPresent()||o.isPresent()?I.ABSOLUTE:I.RELATIVE;return n.state={timeToggleState:c},n}return Object(a.a)(FilterTimeContainerComponent,[{key:"render",value:function render(){var e=this,t=this.props,n=t.relativeTime,r=t.absoluteTimeStartDate,a=t.absoluteTimeEndDate,i=t.trackOldUIEvent,o=this.state.timeToggleState;return Object(c.jsx)(F.a.Consumer,{children:function children(t){return t.width>=k.c?Object(c.jsxs)("div",{className:O()("c-filter-time-container",{"c--active":n.isPresent()||a.isPresent()}),children:[Object(c.jsx)(ToggleTimeButton,{timeState:o,toggleTime:e.toggleTime}),o===I.RELATIVE&&Object(c.jsx)(FilterRelativeTime,{value:n,onChangeHandler:e.goToRelativeTimeFilter,trackOldUIEvent:i}),o===I.ABSOLUTE&&Object(c.jsx)(FilterAbsoluteTime,{startDate:r,endDate:a,onDatesChangeHandler:e.goToAbsoluteTimeFilter,trackOldUIEvent:e.props.trackOldUIEvent})]}):Object(c.jsx)(TimeDateFilter,{relativeTimeValue:n,timeOnChangeHandler:e.goToRelativeTimeFilter,startDate:r,endDate:a,onDatesChangeHandler:e.goToAbsoluteTimeFilter,showLabel:e.props.showLabel,trackOldUIEvent:e.props.trackOldUIEvent})}})}},{key:"clearTimeFilter",value:function clearTimeFilter(){var e=resetTimeFilter(this.props.currentFilterSet);e!==this.props.currentFilterSet&&this.props.goToFilter(e,this.props.location,this.props.currentUser)}}]),FilterTimeContainerComponent}(s.PureComponent),P={goToRelativeTimeFilter:function goToRelativeTimeFilter(e,t,n,r){var a=resetTimeFilter(t);return new M.c(e.map((function(e){return a.and(new w.E(e))})).orElse(a),n,r)},goToAbsoluteTimeFilter:function goToAbsoluteTimeFilter(e,t,n,r,a){var i=resetTimeFilter(n);return e.ifPresent((function(e){i=i.and(new w.a(e))})),t.ifPresent((function(e){i=i.and(new w.d(e))})),new M.c(i,r,a)},goToFilter:function goToFilter(e,t,n){return new M.c(e,t,n)},trackEvent:function trackEvent(e,t){return new D.a(e,t)}},U=Object(l.j)(Object(u.connect)((function mapStateToProps(e,t){var n=t.currentFilterSet;return{relativeTime:n.find((function(e){return e instanceof w.E})).map((function(e){return e.value})),absoluteTimeStartDate:n.find((function(e){return e instanceof w.a})).map((function(e){return e.value})),absoluteTimeEndDate:n.find((function(e){return e instanceof w.d})).map((function(e){return e.value}))}}),P)(L));function resetTimeFilter(e){return d.a.catOptionals(e.find((function(e){return e instanceof w.E})),e.find((function(e){return e instanceof w.a})),e.find((function(e){return e instanceof w.d}))).reduce((function(e,t){return e.remove(t)}),e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return de}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(28),u=n(26),d=n(38),b=n(22),p=n(79),m=n(27),h=n(125),g=n(17),j=(n(680),n(9)),v=n(236),O=n(83),T=n(2),y=n(50),S=n(181),C=n(324),A=n(34),E=function(e){Object(i.a)(BatchExportComponent,e);var t=Object(o.a)(BatchExportComponent);function BatchExportComponent(){var e;Object(r.a)(this,BatchExportComponent);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).onClick=function(){e.props.done(e.props.location.search)},e}return Object(a.a)(BatchExportComponent,[{key:"componentDidMount",value:function componentDidMount(){this.props.task.isNotLoading()&&this.props.done(this.props.location.search)}},{key:"render",value:function render(){var e=this;return Object(c.jsx)("div",{className:"c-batch-actions-component__drawer",children:Object(c.jsx)("div",{className:"c-batch-actions-component__content",children:this.props.task.map((function(t){return Object(c.jsxs)("div",{className:"u-ta-c",children:[Object(c.jsx)("p",{children:"Zip file ready for export."}),Object(c.jsx)(A.a,{url:t.url,onClick:e.onClick,"data-testid":"confirm-button",children:"Download"})]})})).unwrap((function(){return Object(c.jsx)(y.b,{spinner:y.a,fadeIn:"none"})}),(function(e){return Object(c.jsx)(S.a,{errorText:"Error: ".concat(e.message)})}))})})}}]),BatchExportComponent}(s.PureComponent),w=Object(u.b)([function(e,t){return Object(C.a)(e,t.location.search)},function(e,t){return T.g(e.entities.exportTask,t.match.params.id)}],(function(e,t){return{selectedItems:e,task:t}})),_=Object(b.j)(Object(l.connect)(w,(function mapDispatchToProps(e){return{done:function done(t){e(Object(h.e)({pathname:g.a.LIST,search:t}))}}}))(E)),I=n(23),x=n(21),k=n(86),N=n(153),R=n(413),F=n(137),M=n(44),D=n(139),L=n(19),P=(n(1299),function(e){Object(i.a)(BatchTag,e);var t=Object(o.a)(BatchTag);function BatchTag(){return Object(r.a)(this,BatchTag),t.apply(this,arguments)}return Object(a.a)(BatchTag,[{key:"render",value:function render(){var e=this.props.count===this.props.items,t=e?Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(L.a,{glyph:Object(j.e)(j.c.DONE),size:"small"}),Object(c.jsx)("span",{className:"u-clip",children:"Selected"})]}):Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(L.a,{glyph:Object(j.e)(j.c.REMOVE),size:"small"}),Object(c.jsx)("span",{className:"u-clip",children:"Partially Selected"})]});return Object(c.jsxs)("button",{className:this.props.disabled?"c-batch-tag disabled":"c-batch-tag",onClick:this.props.onClick,"data-testid":"batch-tag",disabled:this.props.disabled,children:[Object(c.jsx)("div",{className:"c-batch-tag__box c--invert",children:t}),this.props.children,!e&&Object(c.jsxs)("span",{className:"c-batch-tag__count","data-testid":"batch-tag-count",children:[this.props.count.toLocaleString()," out of"," ",this.props.items.toLocaleString()]})]})}}]),BatchTag}(s.PureComponent)),U=n(40),B=n(63),H=n(95),G=n(87),W=n(29),z=n(249),V=function categorizeItems(e,t,n,r,a,i,o,c){var s,l,u=new Set(null!==(s=n.get(e))&&void 0!==s?s:[]),d=new Set(null!==(l=r.get(e))&&void 0!==l?l:[]),b=a.filter((function(e){return!u.has(e.id)&&"message"===e.type}));b.length>0&&i(b,e,c);var p=a.filter((function(e){return!d.has(e.id)&&"topic"===e.type}));p.length>0&&o(p,t,c)},J=function deCategorizeItems(e,t,n,r,a,i,o,c){var s,l,u=new Set(null!==(s=n.get(e))&&void 0!==s?s:[]),d=new Set(null!==(l=r.get(t))&&void 0!==l?l:[]),b=a.filter((function(e){return u.has(e.id)&&"message"===e.type}));b.length>0&&i(b,e,c);var p=a.filter((function(e){return d.has(e.id)&&"topic"===e.type}));p.length>0&&t&&o(p,t,c)},Y=function addJobReferenceToItems(e,t,n,r,a,i,o,c){var s=e?n.get(e):void 0,l=e?r.get(e):void 0,u=new Set(s?s.messageIds:[]),d=new Set(l?l.topicIds:[]),b=a.filter((function(e){return!u.has(e.id)&&"message"===e.type}));b.length>0&&i(b,t,c);var p=a.filter((function(e){return!d.has(e.id)&&"topic"===e.type}));p.length>0&&o(p,t,c)},q=function addJobReferenceWithTagIdToItems(e,t,n,r,a,i,o,c){var s=r.get(e),l=a.get(e),u=new Set(s?s.messageIds:[]),d=new Set(l?l.topicIds:[]),b=i.filter((function(e){return!u.has(e.id)&&"message"===e.type}));b.length>0&&o(b,e,t,n);var p=i.filter((function(e){return!d.has(e.id)&&"topic"===e.type}));p.length>0&&c(p,n,t)},K=function removeJobReferenceFromItems(e,t,n,r,a,i,o,c){var s=n.get(e),l=r.get(t),u=new Set(s?s.messageIds:[]),d=new Set(l?l.topicIds:[]);a.filter((function(e){return u.has(e.id)&&"message"===e.type})).length>0&&i(a.filter((function(e){return u.has(e.id)&&"message"===e.type})),e,c);var b=a.filter((function(e){return d.has(e.id)&&"topic"===e.type}));b.length>0&&o(b,t,c)},X=n(48),Q=n(55),Z=n(15),$="BATCH-TAG",ee=function(e){Object(i.a)(BatchTagComponent,e);var t=Object(o.a)(BatchTagComponent);function BatchTagComponent(){var e;Object(r.a)(this,BatchTagComponent);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).trackEvent=function(){e.props.trackSearchClick("Search - Batch Selector: Tag Modal Search")},e.selectedItemsIncludeNotes=function(){return e.props.selectedItems.filter((function(e){return"topic"===e.type})).length>0},e.buildJobReferenceTags=function(){var t=[],n=new Map,r=new Map,a=new Map;e.props.selectedItems.forEach((function(e){"message"===e.type?e.data.jobReference.forEach((function(e){var t,r=new Set(null!==(t=a.get(e.label))&&void 0!==t?t:[]).add(e.parentId);a.set(e.label,Array.from(r.values())),n.has(e.label)||n.set(e.label,e)})):e.data.jobReference.forEach((function(e){var t,a=new Set(null!==(t=r.get(e.label))&&void 0!==t?t:[]).add(e.parentId);r.set(e.label,Array.from(a.values())),n.has(e.label)||n.set(e.label,e)}))}));var i,o=Object(k.a)(n);try{var s=function _loop(){var n,o=i.value,s=Object(x.a)(o,2),l=s[0],u=s[1],d=a.get(l),b=r.get(l),p=("undefined"!==typeof d?d.length:0)+("undefined"!==typeof b?b.length:0),m=null!==(n=u.jobReferenceId)&&void 0!==n?n:null,h=u.tagId,g=h||"-1";t.push(Object(c.jsx)(P,{count:p,items:e.props.selectedItems.length,disabled:!1,onClick:function onClick(){if(p===e.props.selectedItems.length&&m)return e.removeJobReferenceFromItems(g,m,l);m&&e.addJobReferenceWithTagIdToItems(g,l,m)},children:Object(c.jsx)(D.a,{label:l,state:"active",onClick:U.a},l)},l))};for(o.s();!(i=o.n()).done;)s()}catch(l){o.e(l)}finally{o.f()}return t},e.buildCategoryTags=function(){var t=new Array,n=new Map,r=new Map;e.props.selectedItems.forEach((function(e){"message"===e.type?e.data.categoryTag.forEach((function(e){var n,a=new Set(null!==(n=r.get(e.label))&&void 0!==n?n:[]).add(e.parentId);r.set(e.label,Array.from(a.values())),t.includes(e.label)||t.push(e.label)})):e.data.categoryTag.forEach((function(e){var r,a=new Set(null!==(r=n.get(e.label))&&void 0!==r?r:[]).add(e.parentId);n.set(e.label,Array.from(a.values())),t.includes(e.label)||t.push(e.label)}))}));var a=[];return t.forEach((function(t){var i=r.get(t),o=n.get(t),s=("undefined"!==typeof i?i.length:0)+("undefined"!==typeof o?o.length:0),l=e.props.categoryTags.filter((function(e){return e.label===t})),u=1===l.length?l[0]:null,d=u?u.id:null,b=u?u.tagId:null,p=b||"-1";a.push(Object(c.jsx)(P,{count:s,items:e.props.selectedItems.length,disabled:!1,onClick:function onClick(){if(s===e.props.selectedItems.length&&d)return e.deCategorizeItems(p,d,t);d&&e.categorizeItems(p,d,t)},children:Object(c.jsx)(N.a,{label:t,state:"active",onClick:U.a},t)},t))})),a},e.buildAssignments=function(){var t=e.props.users.reduce((function(e,t){return e.set(t.id,t)}),new Map),n=new Array,r=new Map,a=new Map;e.props.selectedItems.forEach((function(e){if("message"===e.type){var t=e;t.data.assignment.forEach((function(e){var r,i=new Set(null!==(r=a.get(e.assignedToUserId))&&void 0!==r?r:[]).add(t.id);a.set(e.assignedToUserId,Array.from(i.values())),n.includes(e.assignedToUserId)||n.push(e.assignedToUserId)}))}}));var i=[];return n.forEach((function(n){var o=a.get(n),s=r.get(n),l=("undefined"!==typeof o?o.length:0)+("undefined"!==typeof s?s.length:0),u=t.get(n),d=u?Object(M.c)(u.firstName,u.lastName):"--",b=e.selectedItemsIncludeNotes();i.push(Object(c.jsx)(P,{count:l,items:e.props.selectedItems.length,disabled:b,onClick:function onClick(){if(l===e.props.selectedItems.length)return e.unAssignItems(n);Object(z.a)(n,e.props.userToTeams,e.props.messageTeams.orElse([]))&&e.props.trackEvent("batch tag action to share a message with somebody without access"),e.assignItems(n)},children:Object(c.jsx)(F.a,{userFullName:d,state:"active",onClick:U.a},n)},n))})),i},e.assignItems=function(t){var n,r=new Set(null!==(n=e.props.itemAssignments.messageAssignments.get(t))&&void 0!==n?n:[]),a=e.props.selectedItems.filter((function(e){return!r.has(e.id)&&"message"===e.type}));a.length>0&&e.props.assignMessages(a,t,e.props.currentUser.id)},e.unAssignItems=function(t){var n,r=new Set(null!==(n=e.props.itemAssignments.messageAssignments.get(t))&&void 0!==n?n:[]),a=e.props.selectedItems.filter((function(e){return r.has(e.id)&&"message"===e.type}));a.length>0&&e.props.unAssignMessages(a,t,e.props.currentUser.id,e.props.location.search)},e.categorizeItems=function(t,n,r){V(t,n,e.props.itemCategoryTags.messageCategoryTags,e.props.itemCategoryTags.topicCategoryTags,e.props.selectedItems,e.props.categorizeMessages,e.props.categorizeTopics,r)},e.deCategorizeItems=function(t,n,r){J(t,n,e.props.itemCategoryTags.messageCategoryTags,e.props.itemCategoryTags.topicCategoryTags,e.props.selectedItems,e.props.deCategorizeMessages,e.props.deCategorizeTopics,r)},e.addJobReferenceToItems=function(t,n,r){Y(t,n,e.props.itemJobReferenceTags.messageJobReferenceTags,e.props.itemJobReferenceTags.topicJobReferenceTags,e.props.selectedItems,e.props.addJobReferenceToMessages,e.props.addJobReferenceToTopics,r)},e.addJobReferenceWithTagIdToItems=function(t,n,r){q(t,n,r,e.props.itemJobReferenceTags.messageJobReferenceTags,e.props.itemJobReferenceTags.topicJobReferenceTags,e.props.selectedItems,e.props.addJobReferenceWithTagIdToMessages,e.props.addJobReferenceToTopics)},e.removeJobReferenceFromItems=function(t,n,r){K(t,n,e.props.itemJobReferenceTags.messageJobReferenceTags,e.props.itemJobReferenceTags.topicJobReferenceTags,e.props.selectedItems,e.props.removeJobReferenceFromMessages,e.props.removeJobReferenceFromTopics,r)},e}return Object(a.a)(BatchTagComponent,[{key:"componentDidMount",value:function componentDidMount(){0===this.props.selectedItems.length&&this.props.done(this.props.location.search)}},{key:"render",value:function render(){var e=this.selectedItemsIncludeNotes()?Object(c.jsxs)("div",{className:"c-warning-message u-mb-sm",children:["Notes cannot be batch assigned to ",Z.b.t(Z.a.PERSON_PLURAL),". De-select them to batch assign messages."]},0):"",t=[].concat(Object(I.a)(this.buildJobReferenceTags()),Object(I.a)(this.buildCategoryTags()),[e],Object(I.a)(this.buildAssignments()));return Object(c.jsxs)("div",{className:"c-batch-actions-component__drawer",children:[t.length>0&&Object(c.jsxs)("div",{className:"c-batch-actions-component__content",children:[Object(c.jsx)("h6",{className:"react-autosuggest__section-title",children:"Selected"}),t]}),Object(c.jsx)(R.a,{userToTeams:this.props.userToTeams,messageTeams:this.props.messageTeams.orElse([]),className:"c-batch-actions-component__search",teams:this.props.teams,users:this.selectedItemsIncludeNotes()?[]:this.props.users,currentUser:this.props.currentUser,appliedMessageAssignments:[],appliedTopicFollowers:[],addPersonTag:this.assignItems,addFollowers:U.a,categoryTags:this.props.categoryTags,appliedCategoryTags:[],categorize:this.categorizeItems,appliedJobReferenceTags:[],jobReferences:this.props.jobReferences,addJobReference:this.addJobReferenceToItems,myMessageTagIds:this.props.myMessageTagIds,jobReferencesSearch:this.props.jobReferencesSearch,searchJobReferences:this.props.searchJobReferencesByMatchScore,autoFocusEnabled:!0,parentItemType:d.a.message,partialAutoSuggest:this.props.partialAutoSuggest,trackEvent:this.trackEvent})]})}}]),BatchTagComponent}(s.PureComponent),te=Object(u.b)([function(e,t){return Object(C.a)(e,t.location.search)},function(e){return Object(G.o)(e)},function(e){return{assignmentTagsIds:[],topics:e.entities.topic,messageAssignments:e.entities.messageAssignment}},function(e){return Object(G.c)(e)},function(e){return{assignmentCategoryTagsIds:[],messageCategoryTags:e.entities.messageCategoryTag,topicCategoryTags:e.entities.topicCategoryTag}},function(e){return Object(G.d)(e)},function(e){return{jobReferenceTagsIds:[],messageJobReferenceTags:e.entities.messageJobReferenceTag,topicJobReferenceTags:e.entities.topicJobReference}},function(e){return T.g(e.entities.userConfig,T.a).map((function(e){return e.myMessageTagIds})).orElse(new Set)},function(e,t){return t.currentUser},function(e){return T.g(e.entities.jobReferenceSearch,$)},function(e,t){return{userToTeam:Object(G.p)(e),messageTeam:T.g(e.entities.messageTeam,t.match.params.id),teams:T.h(e.entities.team)}},function(e){return e.ui.featureFlags.PARTIAL_AUTO_SUGGEST}],(function(e,t,n,r,a,i,o,c,s,l,u,d){var b=e.reduce((function(e,t){return T.g(a.messageCategoryTags,t.id).map((function(n){return n.filter((function(e){return!e.deleteInProgress})).sort(Object(B.a)((function(e){return e.label}))).forEach((function(n){var r,a=new Set(null!==(r=e.get(n.tagId))&&void 0!==r?r:[]).add(t.id);e.set(n.tagId,Array.from(a.values()))}))})),e}),new Map),p=e.reduce((function(e,t){return T.g(a.topicCategoryTags,t.id).map((function(n){return n.filter((function(e){return!e.deleteInProgress})).sort(Object(B.a)((function(e){return e.label}))).forEach((function(n){var r,a=null!==n.relationshipId?n.relationshipId:"-1",i=new Set(null!==(r=e.get(a))&&void 0!==r?r:[]).add(t.id);e.set(a,Array.from(i.values()))}))})),e}),new Map),m=e.reduce((function(e,t){return T.g(o.messageJobReferenceTags,t.id).map((function(n){return n.filter((function(e){return!e.deleteInProgress})).sort(Object(B.a)((function(e){return e.label}))).forEach((function(n){var r,a=null!==(r=e.get(n.tagId))&&void 0!==r?r:{data:n,messageIds:[]},i=new Set(a.messageIds).add(t.id);return e.set(n.tagId,{data:n,messageIds:Array.from(i.values())})}))})),e}),new Map),h=e.reduce((function(e,t){return T.g(o.topicJobReferenceTags,t.id).map((function(n){return n.filter((function(e){return!e.deleteInProgress})).sort(Object(B.a)((function(e){return e.label}))).forEach((function(n){var r=n.relationshipId;if(null!==r){var a,i=null!==(a=r?e.get(r):{data:n,topicIds:[]})&&void 0!==a?a:{data:n,topicIds:[]},o=new Set(i.topicIds).add(t.id);return e.set(r,{data:n,topicIds:Array.from(o.values())})}}))})),e}),new Map),g=e.reduce((function(e,t){return T.g(n.messageAssignments,t.id).map((function(n){return n.filter((function(e){return!e.deleteInProgress&&e.assignedToUserId!==s.id})).sort(Object(B.a)((function(e){return e.assignedToUserId}))).forEach((function(n){var r;return e.set(n.assignedToUserId,[].concat(Object(I.a)(null!==(r=e.get(n.assignedToUserId))&&void 0!==r?r:[]),[t.id]))}))})),e}),new Map);return{selectedItems:e,users:t,itemAssignments:{messageAssignments:g},categoryTags:r,itemCategoryTags:{messageCategoryTags:b,topicCategoryTags:p},jobReferences:i,itemJobReferenceTags:{messageJobReferenceTags:m,topicJobReferenceTags:h},myMessageTagIds:c,jobReferencesSearch:l,userToTeams:u.userToTeam,messageTeams:u.messageTeam,teams:u.teams,partialAutoSuggest:d}})),ne={done:function done(e){return Object(h.e)({pathname:g.a.LIST,search:e})},assignMessages:function assignMessages(e,t,n){return new m.ab(e.map((function(e){return e.id})),t,n)},unAssignMessages:function unAssignMessages(e,t,n,r){return new m.gb(e.map((function(e){return e.id})),t,n,r)},searchJobReferencesByMatchScore:function searchJobReferencesByMatchScore(e){return new H.o($,e,[])},trackEvent:function trackEvent(e){return new W.a("List Actions",e)},trackSearchClick:function trackSearchClick(e){return W.a.withEvent(Object(W.g)(e))},categorizeMessages:function categorizeMessages(e,t,n){return new m.bb(e.map((function(e){return e.id})),t,n)},deCategorizeMessages:function deCategorizeMessages(e,t,n){return new m.db(e.map((function(e){return e.id})),t,n)},categorizeTopics:function categorizeTopics(e,t,n){return new X.K(e.map((function(e){return e.id})),t,n)},deCategorizeTopics:function deCategorizeTopics(e,t,n){return new X.L(e.map((function(e){return e.id})),t,n)},addJobReferenceToMessages:function addJobReferenceToMessages(e,t,n){return new Q.G(e.map((function(e){return e.id})),t,n)},addJobReferenceWithTagIdToMessages:function addJobReferenceWithTagIdToMessages(e,t,n,r){return new Q.H(e.map((function(e){return e.id})),t,n,r)},removeJobReferenceFromMessages:function removeJobReferenceFromMessages(e,t,n){return new Q.I(e.map((function(e){return e.id})),t,n)},addJobReferenceToTopics:function addJobReferenceToTopics(e,t,n){return new X.M(e.map((function(e){return e.id})),t,n)},removeJobReferenceFromTopics:function removeJobReferenceFromTopics(e,t,n){return new X.N(e.map((function(e){return e.id})),t,n)}},re=Object(b.j)(Object(l.connect)(te,ne)(ee)),ae=n(268),ie=n(47),oe=n(13),ce=n(31),se=n(8),le=function(e){Object(i.a)(BatchActionsComponent,e);var t=Object(o.a)(BatchActionsComponent);function BatchActionsComponent(){var e;Object(r.a)(this,BatchActionsComponent);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).renderExport=function(){return Object(c.jsx)(_,{})},e.renderTag=function(){return Object(c.jsx)(re,{currentUser:e.props.currentUser})},e.renderConfirmStore=function(){return Object(c.jsx)("div",{className:"c-batch-actions-component__drawer",children:Object(c.jsxs)("div",{className:"c-batch-actions-component__content u-ta-c",children:[Object(c.jsxs)("p",{children:["Archive ",e.props.selectedItems.length," ",e.itemString(),"?",Object(c.jsx)("br",{})]}),Object(c.jsx)(A.a,{onClick:e.markDone,"data-testid":"confirm-button",children:"Confirm"})]})})},e.renderConfirmUnstore=function(){return Object(c.jsx)("div",{className:"c-batch-actions-component__drawer",children:Object(c.jsxs)("div",{className:"c-batch-actions-component__content u-ta-c",children:[Object(c.jsxs)("p",{children:["Unarchive ",e.props.selectedItems.length," ",e.itemString(),"?",Object(c.jsx)("br",{})]}),Object(c.jsx)(A.a,{onClick:e.markIn,"data-testid":"confirm-button",children:"Confirm"})]})})},e.renderConfirmFollow=function(){return Object(c.jsx)("div",{className:"c-batch-actions-component__drawer",children:Object(c.jsxs)("div",{className:"c-batch-actions-component__content u-ta-c",children:[Object(c.jsxs)("p",{children:["Follow ",e.props.selectedItems.length.toLocaleString()," ",e.itemString(),"?"]}),Object(c.jsx)(A.a,{onClick:e.markFollowing,"data-testid":"confirm-button",children:"Confirm"})]})})},e.renderConfirmUnFollow=function(){return Object(c.jsx)("div",{className:"c-batch-actions-component__drawer",children:Object(c.jsxs)("div",{className:"c-batch-actions-component__content u-ta-c",children:[Object(c.jsxs)("p",{children:["Un-follow ",e.props.selectedItems.length," ",e.itemString(),"?"]}),Object(c.jsx)(A.a,{onClick:e.markUnFollowing,"data-testid":"confirm-button",children:"Confirm"})]})})},e.renderConfirmShareMessageLinks=function(){return Object(c.jsx)("div",{className:"c-batch-actions-component__drawer",children:Object(c.jsxs)("div",{className:"c-batch-actions-component__content u-ta-c",children:[Object(c.jsxs)("p",{children:["Create a new message with ".concat(e.props.selectedItems.length.toLocaleString()," ").concat(e.itemString()," added as links?"),Object(c.jsx)("br",{})]}),Object(c.jsx)(A.a,{onClick:e.shareMessageLinks,"data-testid":"confirm-button",children:"Confirm"})]})})},e.renderConfirmDeletePrivateDrafts=function(){return Object(c.jsx)("div",{className:"c-batch-actions-component__drawer",children:Object(c.jsxs)("div",{className:"c-batch-actions-component__content u-ta-c",children:[Object(c.jsxs)("p",{children:["Delete Private drafts?",Object(c.jsx)("br",{})]}),Object(c.jsx)(A.a,{onClick:e.deletePrivateDrafts,"data-testid":"confirm-button",children:"Confirm"})]})})},e.confirmStore=function(){e.props.goTo(g.a.LIST_ACTIONS_CONFIRM_STORE,e.props.location.search)},e.confirmUnstore=function(){e.props.goTo(g.a.LIST_ACTIONS_CONFIRM_UNSTORE,e.props.location.search)},e.confirmFollow=function(){e.props.goTo(g.a.LIST_ACTIONS_CONFIRM_FOLLOW,e.props.location.search)},e.confirmUnFollow=function(){e.props.goTo(g.a.LIST_ACTIONS_CONFIRM_UNFOLLOW,e.props.location.search)},e.confirmShareMessageLinks=function(){e.props.goTo(g.a.LIST_ACTIONS_CONFIRM_SHARE_MESSAGE_LINKS,e.props.location.search)},e.confirmDeletePrivateDrafts=function(){e.props.goTo(g.a.LIST_ACTIONS_CONFIRM_DELETE_PRIVATE_DRAFTS,e.props.location.search)},e.markDone=function(){e.props.storeItems(e.props.selectedItems,e.props.currentUser.id,e.props.location.search),e.onCancel()},e.markIn=function(){e.props.unstoreItems(e.props.selectedItems,e.props.currentUser.id,e.props.location.search),e.onCancel()},e.markFollowing=function(){e.props.followItems(e.props.selectedItems,e.props.currentUser.id),e.onCancel()},e.markUnFollowing=function(){e.props.unFollowItems(e.props.selectedItems,e.props.currentUser.id,e.props.currentUser.id,e.props.location.search),e.onCancel()},e.shareMessageLinks=function(){e.props.shareLinksToItems(e.props.selectedItems)},e.deletePrivateDrafts=function(){var t=e.props.selectedItems.filter((function(e){return e.type===d.a.message&&e.data.meta.state===se.m.PrivateDraft}));e.props.deleteItems(t,e.props.location.search),e.onCancel()},e.downloadItems=function(){e.props.downloadItems(e.props.selectedItems,e.props.location.search)},e.tagItems=function(){e.props.tagItems(e.props.location.search)},e.onCancel=function(){e.props.cancel(e.props.location.search)},e}return Object(a.a)(BatchActionsComponent,[{key:"componentDidMount",value:function componentDidMount(){[g.a.LIST_ACTIONS_CONFIRM_STORE,g.a.LIST_ACTIONS_CONFIRM_UNSTORE,g.a.LIST_ACTIONS_CONFIRM_FOLLOW,g.a.LIST_ACTIONS_CONFIRM_UNFOLLOW,g.a.LIST_ACTIONS_CONFIRM_SHARE_MESSAGE_LINKS,g.a.LIST_ACTIONS_CONFIRM_DELETE_PRIVATE_DRAFTS].includes(this.props.location.pathname)&&0===this.props.selectedItems.length&&this.onCancel()}},{key:"render",value:function render(){var e=this.props,t=e.currentUser,n=e.selectedItems,r=e.allFollowing,a=e.allStored,i=this.props.location.pathname,o=0===n.length||this.props.activeFilter!==oe.D.INBOX&&this.props.activeFilter!==oe.D.MY_MESSAGES&&this.props.activeFilter!==oe.D.MY_WORK,s=0===n.length||this.props.activeFilter!==oe.D.STORED,l=0===n.length,u=0===n.length,p=0===n.length||n.length>75,m=n.map((function(e){return e.type===d.a.message?e.data.meta.state:null})).filter((function(e){return e===se.m.PrivateDraft})),h=0===n.length||0===m.length,T=0===n.length,y=!this.props.isMobile&&t.permissions.some((function(e){return e===O.a.export_messages.valueOf()}));return Object(c.jsx)("div",{className:"c-batch-actions-component",children:Object(c.jsxs)("div",{className:"c-batch-actions-component__inner",children:[Object(c.jsx)("div",{className:"c-batch-actions-component__menu",children:this.props.isMobile?Object(c.jsxs)(c.Fragment,{children:[Object(c.jsxs)("div",{className:"c-batch-actions-component__selected",children:[Object(c.jsx)(v.a,{buttonText:"Cancel",displayText:!1,disabled:!1,iconGlyph:Object(j.e)(j.c.CLEAR),iconSize:"regular",onClick:this.onCancel,"data-testid":"batch-action-cancel"}),this.props.selectedItems.length.toLocaleString()," ",this.itemString()," selected"]}),Object(c.jsxs)("div",{className:"c-batch-actions-component__buttons",children:[Object(c.jsx)(v.a,{buttonText:"Tag",disabled:l,iconGlyph:Object(j.e)(j.c.TAG),iconSize:"regular",onClick:this.tagItems,className:i===g.a.LIST_ACTIONS_TAG?"c--active":"","data-testid":"batch-action-tag"}),Object(c.jsx)(v.a,{buttonText:r?"Un-follow":"Follow",disabled:u,iconGlyph:Object(j.e)(j.c.FOLLOW),iconSize:"regular",onClick:r?this.confirmUnFollow:this.confirmFollow,className:i===g.a.LIST_ACTIONS_CONFIRM_FOLLOW||i===g.a.LIST_ACTIONS_CONFIRM_UNFOLLOW?"c--active":"","data-testid":r?"batch-action-unfollow":"batch-action-follow"}),Object(c.jsx)(v.a,{buttonText:a?"Unarchive":"Archive",disabled:o&&s,iconGlyph:Object(j.e)(j.c.ARCHIVE),iconSize:"regular",onClick:a?this.confirmUnstore:this.confirmStore,className:i===g.a.LIST_ACTIONS_CONFIRM_STORE||i===g.a.LIST_ACTIONS_CONFIRM_UNSTORE?"c--active":"","data-testid":a?"batch-action-unarchive":"batch-action-archive"}),Object(c.jsx)(v.a,{buttonText:"Add as link",disabled:T,iconGlyph:Object(j.e)(j.c.LINK),iconSize:"regular",onClick:this.confirmShareMessageLinks,className:i===g.a.LIST_ACTIONS_CONFIRM_SHARE_MESSAGE_LINKS?"c--active":"","data-testid":"batch-action-share"}),y&&Object(c.jsx)(v.a,{buttonText:"Download",disabled:p,iconGlyph:Object(j.e)(j.c.DOWNLOAD),iconSize:"regular",onClick:this.downloadItems,className:i.includes(g.a.LIST_ACTIONS_EXPORT(""))?"c--active":"","data-testid":"batch-action-download"}),Object(c.jsx)(v.a,{buttonText:"Delete",disabled:h,iconGlyph:Object(j.e)(j.c.DELETE),iconSize:"regular",onClick:this.confirmDeletePrivateDrafts,className:i===g.a.LIST_ACTIONS_CONFIRM_DELETE_PRIVATE_DRAFTS?"c--active":"","data-testid":"batch-action-delete"})]})]}):Object(c.jsxs)(c.Fragment,{children:[Object(c.jsxs)("div",{className:"c-batch-actions-component__selected",children:[Object(c.jsx)(ce.a,{buttonContent:"Cancel",disabled:!1,iconGlyph:Object(j.e)(j.c.CLEAR),onClick:this.onCancel,dataTestId:"batch-action-cancel"}),this.props.selectedItems.length.toLocaleString()," ",this.itemString()," selected"]}),Object(c.jsxs)("div",{className:"c-batch-actions-component__buttons",children:[Object(c.jsx)(ce.a,{buttonContent:"Tag",disabled:l,iconGlyph:Object(j.e)(j.c.TAG),onClick:this.tagItems,className:i===g.a.LIST_ACTIONS_TAG?"c--active":"",dataTestId:"batch-action-tag"}),Object(c.jsx)(ce.a,{buttonContent:r?"Un-follow":"Follow",disabled:u,iconGlyph:Object(j.e)(j.c.FOLLOW),onClick:r?this.confirmUnFollow:this.confirmFollow,className:i===g.a.LIST_ACTIONS_CONFIRM_FOLLOW||i===g.a.LIST_ACTIONS_CONFIRM_UNFOLLOW?"c--active":"",dataTestId:r?"batch-action-unfollow":"batch-action-follow"}),Object(c.jsx)(ce.a,{buttonContent:a?"Unarchive":"Archive",disabled:o&&s,iconGlyph:Object(j.e)(j.c.ARCHIVE),onClick:a?this.confirmUnstore:this.confirmStore,className:i===g.a.LIST_ACTIONS_CONFIRM_STORE||i===g.a.LIST_ACTIONS_CONFIRM_UNSTORE?"c--active":"",dataTestId:a?"batch-action-unarchive":"batch-action-archive"}),Object(c.jsx)(ce.a,{buttonContent:"Add as link",disabled:T,iconGlyph:Object(j.e)(j.c.LINK),onClick:this.confirmShareMessageLinks,className:i===g.a.LIST_ACTIONS_CONFIRM_SHARE_MESSAGE_LINKS?"c--active":"",dataTestId:"batch-action-share"}),y&&Object(c.jsx)(ce.a,{buttonContent:"Download",disabled:p,iconGlyph:Object(j.e)(j.c.DOWNLOAD),onClick:this.downloadItems,className:i.includes(g.a.LIST_ACTIONS_EXPORT(""))?"c--active":"",dataTestId:"batch-action-download"}),Object(c.jsx)(ce.a,{buttonContent:"Delete",disabled:h,iconGlyph:Object(j.e)(j.c.DELETE),onClick:this.confirmDeletePrivateDrafts,className:i===g.a.LIST_ACTIONS_CONFIRM_DELETE_PRIVATE_DRAFTS?"c--active":"",dataTestId:"batch-action-delete"})]})]})}),Object(c.jsxs)(b.c,{children:[Object(c.jsx)(b.a,{path:g.a.LIST_ACTIONS_TAG,render:this.renderTag}),Object(c.jsx)(b.a,{path:g.a.LIST_ACTIONS_CONFIRM_FOLLOW,render:this.renderConfirmFollow}),Object(c.jsx)(b.a,{path:g.a.LIST_ACTIONS_CONFIRM_UNFOLLOW,render:this.renderConfirmUnFollow}),Object(c.jsx)(b.a,{path:g.a.LIST_ACTIONS_CONFIRM_STORE,render:this.renderConfirmStore}),Object(c.jsx)(b.a,{path:g.a.LIST_ACTIONS_CONFIRM_UNSTORE,render:this.renderConfirmUnstore}),Object(c.jsx)(b.a,{path:g.a.LIST_ACTIONS_CONFIRM_SHARE_MESSAGE_LINKS,render:this.renderConfirmShareMessageLinks}),Object(c.jsx)(b.a,{path:g.a.LIST_ACTIONS_CONFIRM_DELETE_PRIVATE_DRAFTS,render:this.renderConfirmDeletePrivateDrafts}),Object(c.jsx)(b.a,{path:g.a.LIST_ACTIONS_EXPORT(),render:this.renderExport})]})]})})}},{key:"itemString",value:function itemString(){return 1===this.props.selectedItems.length?" item":" items"}}]),BatchActionsComponent}(s.PureComponent),ue=Object(u.b)([function(e,t){return Object(C.a)(e,t.location.search)},function(e,t){return Object(p.d)(t.location.search)},function(e){return e.entities.messageAssignment},function(e){return e.entities.messageMeta},function(e,t){return t.currentUser},function(e){return e.ui.featureFlags}],(function(e,t,n,r,a,i){var o=e.map((function(e){return T.g(n,e.id).map((function(e){return e.some((function(e){return e.assignedToUserId===a.id}))})).orElse(!1)})).filter((function(e){return e})).length,c=e.map((function(e){return e.type===d.a.message?e.data.meta.state!==se.m.PrivateDraft&&e.data.meta.state!==se.m.Draft&&e.data.meta.state!==se.m.Cancelled&&!e.data.meta.inInbox:null===(t=e.data.meta.relationships.stored_by)||void 0===t?void 0:t.data.find((function(e){return e.id===a.id}));var t})).filter((function(e){return e})).length;return{selectedItems:e,activeFilter:t,allFollowing:o===e.length&&0!==e.length,allStored:c===e.length&&0!==e.length,featureFlags:i}})),de=Object(b.j)(Object(l.connect)(ue,(function mapDispatchToProps(e){return{storeItems:function storeItems(t,n,r){var a=t.filter((function(e){return"message"===e.type})),i=t.filter((function(e){return"topic"===e.type}));a.length&&e(m.rb.withNotification(a.map((function(e){return e.id})),r)),i.length&&e(X.O.withNotification(i.map((function(e){return e.id})),n,r))},unstoreItems:function unstoreItems(t,n,r){var a=t.filter((function(e){return e.type===d.a.message})),i=t.filter((function(e){return e.type===d.a.topic}));a.length&&e(m.ub.withNotification(a.map((function(e){return e.id})),r)),i.length&&e(X.P.withNotification(i.map((function(e){return e.id})),n,r))},tagItems:function tagItems(t){e(Object(h.f)({pathname:g.a.LIST_ACTIONS_TAG,search:t}))},followItems:function followItems(t,n){e(new m.ab(t.map((function(e){return e.id})),n,n))},unFollowItems:function unFollowItems(t,n,r,a){e(new m.gb(t.map((function(e){return e.id})),n,r,a))},shareLinksToItems:function shareLinksToItems(t){e(new m.cb(t))},deleteItems:function deleteItems(t,n){e(new m.eb(t.map((function(e){return e.id})),n))},goTo:function goTo(t,n){e(Object(h.e)({pathname:t,search:n}))},cancel:function cancel(t){e(Object(h.e)({pathname:g.a.LIST,search:t})),e(new ie.a)},downloadItems:function downloadItems(t,n){var r=Object(ae.a)();e(new m.fb(r,t.map((function(e){return e.id})))),e(Object(h.f)({pathname:g.a.LIST_ACTIONS_EXPORT(r),search:n}))}}}))(le))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return ComposePickerContainer}));var r=n(4),a=n(0),i=n(3),o=n(10),c=n(5),s=n(6),l=n(1),u=n(882),d=n(19),b=n(9),p=n(644),m=n(276),h=n(82),g=n(17),j=(n(1249),n(100)),v=n(101),O=n(22),T=n(40),y=function(e){Object(c.a)(ComposePicker,e);var t=Object(s.a)(ComposePicker);function ComposePicker(){return Object(i.a)(this,ComposePicker),t.apply(this,arguments)}return Object(o.a)(ComposePicker,[{key:"renderPicker",value:function renderPicker(){var e=this;return this.props.topicsEnabled?this.props.expanded?Object(a.jsx)(p.a,{enter:!0,exit:!1,appear:!0,className:"c-compose-picker__wrapper",children:Object(a.jsx)(m.a,{classNames:"c--slide",timeout:75,children:Object(a.jsxs)("div",{className:"c-compose-picker",children:[Object(a.jsx)("span",{className:"c-compose-picker__label",children:"Create new: "}),Object(a.jsx)(h.a,{className:"c-compose-picker__button c--message btn btn-secondary",to:this.props.linkTo?this.props.linkTo:{pathname:g.a.COMPOSE_NEW_MESSAGE,search:this.props.queryString},onClick:function onClick(){var t,n,r,a;null===(t=(n=e.props).trackOldUIEvent)||void 0===t||t.call(n,"Navigation Bar - Compose: Create Message"),e.props.hideComposePicker(),null===(r=(a=e.props).onClick)||void 0===r||r.call(a)},"data-testid":"compose-message",children:"Message"}),Object(a.jsx)(h.a,{className:"c-compose-picker__button c--topic btn btn-secondary",to:{pathname:g.a.COMPOSE_NEW_TOPIC,search:this.props.queryString},onClick:function onClick(){var t,n;null===(t=(n=e.props).trackOldUIEvent)||void 0===t||t.call(n,"Navigation Bar - Compose: Create Note"),e.props.hideComposePicker()},"data-testid":"compose-note",children:"Note"}),Object(a.jsxs)(u.a,{className:"c-compose-picker__toggle c--open",onClick:this.props.hideComposePicker,children:[Object(a.jsx)(d.a,{glyph:Object(b.e)(b.c.ADD)}),Object(a.jsx)("span",{className:"u-clip",children:"Close"})]})]})})}):Object(a.jsx)("div",{className:"c-compose-picker",children:Object(a.jsxs)(u.a,{id:"composeToggle","data-testid":"compose-toggle",className:"c-compose-picker__toggle",onClick:this.props.showComposePicker,children:[Object(a.jsx)(d.a,{glyph:Object(b.e)(b.c.ADD)}),Object(a.jsx)("span",{className:"u-clip",children:"Compose"})]})}):Object(a.jsx)("div",{className:"c-compose-picker",children:Object(a.jsx)(h.a,{className:"c-compose-picker__toggle btn btn-secondary",to:this.props.linkTo?this.props.linkTo:{pathname:g.a.COMPOSE_NEW_MESSAGE,search:this.props.queryString},onClick:this.props.onClick,children:Object(a.jsx)(d.a,{glyph:Object(b.e)(b.c.ADD)})})})}},{key:"render",value:function render(){return Object(a.jsx)(ComposeHotkeyNav,{topicsEnabled:this.props.topicsEnabled,queryString:this.props.queryString,children:this.renderPicker()})}}]),ComposePicker}(l.PureComponent);function ComposeHotkeyNav(e){var t=Object(O.f)();return Object(j.a)(v.n,(function(){return t.push({pathname:g.a.COMPOSE_NEW_MESSAGE,search:e.queryString})}),[e.queryString,t]),Object(j.a)(v.o,(function(){return e.topicsEnabled?t.push({pathname:g.a.COMPOSE_NEW_TOPIC,search:e.queryString}):Object(T.a)()}),[e.queryString,t,e.topicsEnabled],e.topicsEnabled),Object(a.jsx)(a.Fragment,{children:e.children})}var S=n(26),C=n(93),A=n(21),E=n(15),w=n(125),_=n(419),I=n(28),x=n(30),k=n(2),N=n(584);function ComposePickerWithModal(e){var t=Object(I.useDispatch)(),n=Object(O.g)(),i=Object(S.d)((function(e){return e.ui.activeTeamsInSearch})),o=Object(S.d)((function(e){return k.h(e.entities.team)})),c=l.useState(!1),s=Object(A.a)(c,2),u=s[0],d=s[1],b=i.teams.length>1||i.allTeams?Object(r.a)(Object(r.a)({},e.composePickerProps),{},{linkTo:{pathname:n.pathname,search:n.search},onClick:function onClick(){return d(!0)}}):Object(r.a)(Object(r.a)({},e.composePickerProps),{},{queryString:Object(x.stringify)(Object(r.a)(Object(r.a)({},Object(x.parse)(e.composePickerProps.queryString)),{},{sendingTeamId:i.teams[0]?i.teams[0].id:null}))});return Object(a.jsxs)("div",{children:[Object(a.jsx)(y,Object(r.a)({},b)),Object(a.jsxs)(_.a,{"data-testid":"from-team-selection",isOpen:u,toggle:function toggle(){return d(!1)},confirmText:"Select",cancelText:"Cancel",headerText:"Select the ".concat(E.b.t(E.a.TEAM)," to send from?"),multiple:!1,options:i.allTeams?Object(N.a)(o,e.currentUser.userTeams).map((function(e){return{label:e.name,id:e.id}})):i.teams.map((function(e){return{label:e.name,id:e.id}})),fieldName:"fromTeamId",onSubmit:function onSubmit(e){var a=e.fromTeamId,i=Object(r.a)(Object(r.a)({},Object(x.parse)(n.search)),{},{sendingTeamId:a});t(Object(w.e)({pathname:g.a.COMPOSE_NEW_MESSAGE,search:Object(x.stringify)(i)})),d(!1)},children:["You have multiple ",E.b.t(E.a.TEAM_PLURAL).toLowerCase()," ","selected. Please select one \u201cfrom\u201d"," ",E.b.t(E.a.TEAM).toLowerCase(),":"]})]})}function ComposePickerContainer(e){var t=Object(S.d)(C.a);return Object(a.jsx)("div",{children:t?Object(a.jsx)(ComposePickerWithModal,{composePickerProps:e.composePickerProps,currentUser:e.currentUser}):Object(a.jsx)(y,Object(r.a)(Object(r.a)({},e.composePickerProps),{},{trackOldUIEvent:e.trackOldUIEvent}))})}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var r,a=n(7),i=n(3),o=n(10),c=n(5),s=n(6),l=n(2),u=n(14),d=n(41),b=n(20),p=n(16),m=function(e){Object(c.a)(RequestVesselNames,e);var t=Object(s.a)(RequestVesselNames);function RequestVesselNames(e){var n;return Object(i.a)(this,RequestVesselNames),(n=t.call(this,e)).term=e,n}return Object(o.a)(RequestVesselNames,[{key:"onSuccess",value:function onSuccess(e){return[new h(this.term,e)]}},{key:"onError",value:function onError(e){return[new g(this.term,e)]}}]),RequestVesselNames}(function(e){Object(c.a)(VesselNameListApiAction,e);var t=Object(s.a)(VesselNameListApiAction);function VesselNameListApiAction(e){var n;return Object(i.a)(this,VesselNameListApiAction),(n=t.call(this)).term=e,n}return Object(o.a)(VesselNameListApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/jobreferences/attributes?attributeName=vesselName&page=1&perPage=36&searchTerm=").concat(this.term),method:p.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return e.attributeValues}}]),VesselNameListApiAction}(b.a)),h=function(e){Object(c.a)(FulfillRequestVesselNames,e);var t=Object(s.a)(FulfillRequestVesselNames);function FulfillRequestVesselNames(e,n){var r;return Object(i.a)(this,FulfillRequestVesselNames),(r=t.call(this)).term=e,r.vesselNames=n,r}return FulfillRequestVesselNames}(u.a),g=function(e){Object(c.a)(FailRequestVesselNames,e);var t=Object(s.a)(FailRequestVesselNames);function FailRequestVesselNames(e,n){var r;return Object(i.a)(this,FailRequestVesselNames),(r=t.call(this,n)).term=e,r.err=n,r}return FailRequestVesselNames}(u.b),j=(r={},Object(a.a)(r,h.name,(function(e,t){return l.o(e,t.term,t.vesselNames)})),Object(a.a)(r,g.name,(function(e,t){return l.f(e,t.term,t.error)})),r),v=Object(d.a)(j,l.e())},function(e,t,n){"use strict";var r=n(719),a=n.n(r),i=n(25),o=n(40),c=n(2),s=n(62),l=n(328),u=n(21),d=n(23),b=n(4),p=n(125),m=n(22),h=n(37),g=n(57),j=n(47),v=n(608),O=n(27),T=n(43),y=n(49),S=n(13),C=n(115),A=n(175),E=n(609),w=n(48),_=n(169),I=n(17),x=n(95),k=n(8);function getAllSearchFilterSets(e){var t=e.getState(),n=getUserConfig(t),r=Object(C.a)(e.getState(),n.user);return c.h(t.entities.searchRelevance).map((function(e){return{search:e.search,listType:e.listType,filterSet:r.fromQueryParams(e.search)}}))}var N={messagesAdded:function messagesAdded(e,t){var n=t.getState(),r=getUserConfig(t.getState()),a=getTenantConfig(t.getState()),o=function webSocketMessagePredicate(e){return function(t,n,r,a){var o=g.a.messageMapper(r,t.user.id),s=g.a.tagsMapper(r.tags),l=c.h(e.entities.jobReference),u=r.teamIds.map(String),b=i.a.catOptionals.apply(i.a,Object(d.a)(s.map((function(t){return c.g(e.entities.categoryTag,t.tagId).toOptional()})))),p=i.a.catOptionals.apply(i.a,Object(d.a)(s.map((function(e){return i.a.of(l.find((function(t){var n=t.tagId;return e.tagId===n})))})))),m=Object(A.n)(s),h=Object(A.m)(s),j=Object(A.o)(s);return v.a.isRelevant(a,{userConfig:t,tenantConfig:n,meta:o,teamIds:u,categories:b,jobReferences:p,jobReferenceMetas:m,assignments:h,keywords:j})}}(n);e.forEach((function(e){var i=e.tags.find((function(e){return e.tag.id===h.g.DRAFT})),c=e.followUp;c&&i&&t.dispatch(new O.U(c.id.toString(),{time:i.createdAt,originMessageId:c.id.toString(),messageId:e.id.toString(),userId:i.userId.toString(),followUpType:c.type===h.b.REPLIED?h.b.REPLYING:h.b.FORWARDING}));var l=e.externalFollowUp;l&&t.dispatch(new O.T(l.id.toString(),{time:e.receivedDate,originMessageId:l.id.toString(),messageId:e.id.toString(),fromEmail:e.fromEmail.toString(),followUpType:h.b.REPLIED})),i&&String(i.userId)===r.user.id&&n.ui.messageCompose.currentlyCreatingMessage||getAllSearchFilterSets(t).forEach((function(n){var i=o(r,a,e,n.filterSet);i!==k.b.MAYBE&&t.dispatch(new s.d(String(e.id),i,n.search))}))}))},messagesRemoved:function messagesRemoved(e,t){e.forEach((function(e){var n=t.getState().router.location,r=String(e.id);t.dispatch(new s.b(r)),Object(m.e)(n.pathname,{path:I.a.MESSAGE(r)})&&t.dispatch(Object(p.e)(Object(b.a)(Object(b.a)({},n),{},{pathname:I.a.LIST})))}))},messagesEdited:function messagesEdited(e,t){e.map((function(e){return t.dispatch(new s.c(e))}))},senderChanged:function senderChanged(e,t){e.map((function(e){return t.dispatch(new s.j(e))}))},messagesSentNow:function messagesSentNow(e,t){e.forEach((function(e){t.dispatch(new s.e(e.messageId,e.userId,e.sentDate))}))},messagesShared:function messagesShared(e,t){e.forEach((function(e){t.dispatch(new s.f(e.messageId,e.userId,e.sharedDate,e.fromTeamId,e.teamIds))}))},messageTagsAdded:function messageTagsAdded(e,t){var n=t.getState(),r=getUserConfig(n),a=getTenantConfig(n);(t.dispatch(new s.g(e,r.user.id)),e.filter((function(e){return e.tagId===h.g.SENT})).forEach((function(e){t.dispatch(new O.V(e.userId.toString(),e.messageId.toString(),e.createdAt))})),n.ui.featureFlags.FLEX_DOCS_MANAGEMENT)&&Object(d.a)(new Set(e.filter((function(e){return e.tag.tagTypeId===h.h.JOB_REFERENCE&&c.g(n.entities.vesselJobReferenceTag,String(e.tagId)).isNotLoading()})).map((function(e){return e.tagId})))).forEach((function(e){return t.dispatch(new x.m(String(e)))}));getAllSearchFilterSets(t).forEach((function(i){var o=i.filterSet,c=o.find((function(e){return e instanceof S.b||e instanceof S.J})).isPresent(),l=e.map((function(e){var i=getForCurrentTeams(e,t),s=c||i?o.relevantIfTagAdded(e,r,a,n.entities):k.b.MAYBE;return[String(e.messageId),s]})).filter((function(e){var t=Object(u.a)(e,2);t[0];return t[1]!==k.b.MAYBE}));0!==l.length&&(t.dispatch(new s.i(l,i.search)),e.filter((function(e){return e.tagId===h.g.SENT||"scheduled"===e.tag.name&&1===e.tag.tagTypeId})).forEach((function(e){t.dispatch(O.X.doNotSetToLoading(e.messageId.toString(),e.userId.toString()))})))}))},messageTagsRemoved:function messageTagsRemoved(e,t){var n=t.getState(),r=getUserConfig(n),a=getTenantConfig(n);t.dispatch(new s.h(e,r.user.id)),getAllSearchFilterSets(t).forEach((function(n){var i=n.filterSet,o=i.find((function(e){return e instanceof S.b||e instanceof S.J})).isPresent(),c=e.map((function(e){var n=getForCurrentTeams(e,t),c=o||n?i.relevantIfTagRemoved(e,r,a,t.getState().entities):k.b.MAYBE;return[String(e.messageId),c]})).filter((function(e){var t=Object(u.a)(e,2);t[0];return t[1]!==k.b.MAYBE}));0!==c.length&&t.dispatch(new s.i(c,n.search))}))},commentsAdded:function commentsAdded(e,t){return t.dispatch(new s.a(e))},newTopic:function newTopic(e,t){t.dispatch(new w.A(e));var n=getUserConfig(t.getState()).user.id;getAllSearchFilterSets(t).forEach((function(r){var a=r.filterSet.appliesToTopic(e.data,{currentUserId:n});t.dispatch(new s.k(e.data.id,a,r.search))}))},editTopic:function editTopic(e,t){t.dispatch(new w.A(e)),t.dispatch(new w.eb(e.data.id));var n=getUserConfig(t.getState()).user.id;getAllSearchFilterSets(t).forEach((function(r){var a=r.filterSet.appliesToTopic(e.data,{currentUserId:n});t.dispatch(new s.k(e.data.id,a,r.search))}))},topicCommentAdded:function topicCommentAdded(e,t){var n=getUserConfig(t.getState()),r=n.user.id===e.data.relationships.author.data.id,a=e.data.relationships.topic.data.id,i=r?w.r.byCurrentUser(a,e):w.r.new(a,e);t.dispatch(i);var o=t.getState(),l=n.user.id,u=getAllSearchFilterSets(t);c.g(o.entities.topic,a).map((function(n){var i=r?_.a.addCommentByCurrentUser(n,e.data):_.a.addComment(n,e.data);u.forEach((function(e){var n=e.filterSet.appliesToTopic(i,{currentUserId:l});t.dispatch(new s.k(a,n,e.search))}))})).orElseDo((function(){t.dispatch(new w.C(a,u,{currentUserId:l}))}))},topicStored:function topicStored(e,t){var n=getUserConfig(t.getState()),r=c.g(t.getState().entities.topic,e.data.id),a=getAllSearchFilterSets(t),i=n.user.id;r.map((function(n){var r=e.data.relationships.stored_by.data,o=_.a.store(n,r);t.dispatch(new w.A({data:o,included:[]})),a.forEach((function(e){var r=e.filterSet.appliesToTopic(o,{currentUserId:i});t.dispatch(new s.k(n.id,r,e.search))}))})).orElseDo((function(){e.data.id&&t.dispatch(new w.C(e.data.id,a,{currentUserId:i}))}))},topicUnstored:function topicUnstored(e,t){var n=getUserConfig(t.getState()),r=c.g(t.getState().entities.topic,e.data.id),a=e.data.relationships.stored_by.data.map((function(e){return e.id})),i=n.user.id,o=getAllSearchFilterSets(t);r.map((function(n){var r=_.a.unstore(n,a);t.dispatch(new w.A({data:r,included:[]})),o.forEach((function(n){var a=n.filterSet.appliesToTopic(r,{currentUserId:i});t.dispatch(new s.k(e.data.id,a,n.search))}))})).orElseDo((function(){a.includes(n.user.id)&&e.data.id&&t.dispatch(new w.C(e.data.id,o,{currentUserId:i}))}))},topicFollowersAdded:function topicFollowersAdded(e,t){var n=getUserConfig(t.getState()),r=c.g(t.getState().entities.topic,e.data.id),a=getAllSearchFilterSets(t),i=n.user.id;r.map((function(n){var r=_.a.addFollowers(n,e.data.relationships.follower.data);t.dispatch(new w.A({data:r,included:[]})),a.forEach((function(e){var a=e.filterSet.appliesToTopic(r,{currentUserId:i});t.dispatch(new s.k(n.id,a,e.search))}))})).orElseDo((function(){e.data.relationships.follower.data.some((function(e){return e.id===n.user.id}))&&t.dispatch(new w.C(e.data.id,a,{currentUserId:i}))}))},topicFollowersRemoved:function topicFollowersRemoved(e,t){var n=getUserConfig(t.getState()),r=e.data.relationships.follower.data,a=t.getState(),i=n.user.id,o=getAllSearchFilterSets(t);if(r.some((function(e){return e.id===n.user.id})))return o.forEach((function(n){t.dispatch(new s.k(e.data.id,k.b.NO,n.search))})),void t.dispatch(new w.db(e.data.id));c.g(a.entities.topic,e.data.id).map((function(n){var r=e.data.relationships.follower.data.map((function(e){return e.id})),a=_.a.removeFollowers(n,r);t.dispatch(new w.A({data:a,included:[]})),o.forEach((function(n){var r=n.filterSet.appliesToTopic(a,{currentUserId:i});t.dispatch(new s.k(e.data.id,r,n.search))}))})).orElseDo((function(){t.dispatch(new w.C(e.data.id,o,{currentUserId:i}))}))},contactEvent:function contactEvent(e,t){t.dispatch(new y.a)},taskProgress:function taskProgress(e,t){if(e.done){var n=t.getState();c.g(n.entities.exportTask,e.taskId).isLoading()&&e.url&&t.dispatch(new E.a(e.taskId,e.url)),c.g(n.entities.storeAllTask,e.taskId).ifPresent((function(n){var r,a=n.id;switch(t.dispatch(new j.l(a)),e.count){case void 0:r="Your messages have been archived";break;case 0:r="No messages to archive";break;case 1:r="Archived 1 message";break;default:r="Archived ".concat(e.count," messages")}t.dispatch(new T.b({message:r,level:k.n.info}))}))}}};function getForCurrentTeams(e,t){var n,r,a,i,o=t.getState(),c=getUserConfig(o);if(!o.ui.featureFlags.EXPLICIT_TEAM_TOKEN||o.ui.responsive.isMobile)return null!==(a=null===(i=e.teamIds)||void 0===i?void 0:i.map((function(e){return e.toString()})).includes(c.user.teamId))&&void 0!==a&&a;var s=new Set(o.ui.activeTeamsInSearch.teams.map((function(e){return e.id})));return null!==(n=null===(r=e.teamIds)||void 0===r?void 0:r.some((function(e){return s.has(e.toString())})))&&void 0!==n&&n}var R={"message:added":N.messagesAdded,"messages:added":N.messagesAdded,"messages:removed":N.messagesRemoved,"messages:edited":N.messagesEdited,"comments:added":N.commentsAdded,"messageTags:added":N.messageTagsAdded,"messageTags:removed":N.messageTagsRemoved,"messages:shared":N.messagesShared,"messages:senderChanged":N.senderChanged,"messages:sentNow":N.messagesSentNow,"topic:new":N.newTopic,"topic:edit":N.editTopic,"topicComment:new":N.topicCommentAdded,"topicFollower:new":N.topicFollowersAdded,"topicFollower:remove":N.topicFollowersRemoved,"topic:store":N.topicStored,"topic:unstore":N.topicUnstored,"contacts:added":N.contactEvent,"contacts:changed":N.contactEvent,"contacts:removed":N.contactEvent,"contactGroups:added":N.contactEvent,"contactGroups:changed":N.contactEvent,"contactGroups:removed":N.contactEvent,"contactComments:added":N.contactCommentEvent,"task:progress":N.taskProgress};function getUserConfig(e){return c.g(e.entities.userConfig,c.a).orElseThrow(new Error("WebSocket could not get current user"))}function getTenantConfig(e){return c.g(e.entities.tenantConfig,c.a).orElseThrow(new Error("WebSocket could not get current tenant"))}var F,M=n(59),D=n(42),L=Math.floor(1e3*(1+Math.random())),P=[];function sendData(e){var t;(null===(t=F)||void 0===t?void 0:t.readyState)===a.a.OPEN?F.send(e):P.push(e)}function setupSocket(e,t){var n=function websocket_getUserConfig(e){return c.g(e.getState().entities.userConfig,c.a).orElseThrow(new Error("WebSocket could not get current user"))}(t),r=new a.a(e.url,void 0,{transports:["websocket"]});return r.onopen=function(){t.dispatch(new s.m);var e=t.getState().router;r.send(JSON.stringify({token:n.sessionId,currentTeamId:Object(l.b)(e.location.search,i.a.of(n.user)).orElseThrow(new Error("Could not figure out which team the user was on."))}))},r.onmessage=function(e){return function fromJsonToData(e){try{return i.a.of(JSON.parse(e))}catch(t){}return i.a.empty()}(e.data).map((function(e){var n,r=e.channel,a=e.data;return c.g(t.getState().entities.userConfig,c.a).isPresent()?(null!==(n=R[r])&&void 0!==n?n:o.a)(a,t):Object(o.a)()}))},r.onclose=function(n){console.log("This connection closed!"),console.log(n),1e3!==n.code?(t.dispatch(new s.n),setTimeout((function(){return setupSocket(e,t)}),L)):t.dispatch(new s.o(Object(D.b)("WebSocket Disconnected With Error Code: "+n.code)))},r}t.a=function WebsocketMiddleware(e){return function(t){return function(n){var r;(n instanceof s.l&&(F=setupSocket(n,e)),n instanceof s.m&&(P.length>0&&P.map((function(e){return sendData(e)})),P=[]),n instanceof s.n)&&(null===(r=F)||void 0===r||r.close());if(n instanceof s.p&&sendData(JSON.stringify(n.data)),n instanceof M.e&&sendData(JSON.stringify({currentTeamId:n.teamId})),n instanceof M.g){var a=n.teamsInSearch.allTeams?[]:n.teamsInSearch.teams.map((function(e){return e.id}));sendData(JSON.stringify({teamIds:a}))}return t(n)}}}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return b}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(14),s=n(20),l=n(16),u=function(e){Object(i.a)(SubmitChangePassword,e);var t=Object(o.a)(SubmitChangePassword);function SubmitChangePassword(){return Object(r.a)(this,SubmitChangePassword),t.apply(this,arguments)}return Object(a.a)(SubmitChangePassword,[{key:"onSuccess",value:function onSuccess(){return[new d]}},{key:"onError",value:function onError(e){return[new b(e)]}}]),SubmitChangePassword}(function(e){Object(i.a)(ChangePasswordApiAction,e);var t=Object(o.a)(ChangePasswordApiAction);function ChangePasswordApiAction(e,n){var a;return Object(r.a)(this,ChangePasswordApiAction),(a=t.call(this)).originalPassword=e,a.password=n,a}return Object(a.a)(ChangePasswordApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.platformUrl,"/2019-01-01/user/change-password"),method:l.c.POST,body:JSON.stringify({originalPassword:this.originalPassword,password:this.password})}}}]),ChangePasswordApiAction}(s.a)),d=function(e){Object(i.a)(FulfillChangePassword,e);var t=Object(o.a)(FulfillChangePassword);function FulfillChangePassword(){return Object(r.a)(this,FulfillChangePassword),t.apply(this,arguments)}return FulfillChangePassword}(c.a),b=function(e){Object(i.a)(FailChangePassword,e);var t=Object(o.a)(FailChangePassword);function FailChangePassword(){return Object(r.a)(this,FailChangePassword),t.apply(this,arguments)}return FailChangePassword}(c.b)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return ActivityInputBar}));var r=n(21),a=n(0),i=n(1),o=n(9),c=(n(815),n(1283),n(31)),s=n(721),l=n(321),u=n(40),d=n(44),b={highlighter:{padding:"var(--spacing-2) var(--spacing-3)"},input:{padding:"var(--spacing-2) var(--spacing-3)",margin:0,outline:0,maxHeight:"35vh",backgroundColor:"transparent",border:"none",color:"inherit",resize:"none"},suggestions:{backgroundColor:"transparent",width:"calc(100% + var(--icon-md) + var(--spacing-5))",left:"calc(-1 * var(--spacing-2))",item:{padding:"var(--spacing-3)","&focused":{backgroundColor:"var(--action-tint-20)"}}}},p=n(100),m=n(101),h=n(405),g=n(411),j=n(248),v=n(58);function ActivityInputBar(e){var t=e.trackMaxCharsReachedInComment,n=i.useState(""),O=Object(r.a)(n,2),T=O[0],y=O[1],S=i.useState(!1),C=Object(r.a)(S,2),A=C[0],E=C[1],w=i.useRef(null),_=T.length,I=_>450,x=_>500,k=e.externalSharedEmails&&e.externalSharedEmails.length>0;i.useEffect((function(){x&&t()}),[x,t]);var N=""===T||x,R=i.useCallback((function(){e.submitComment(T,A),y(""),w.current&&w.current.focus()}),[e,T,A]),F=i.useCallback((function(t,n){var r=t.toLowerCase();n((t?e.visibleUsers.filter((function(e){return e.firstName.toLowerCase().startsWith(r)||e.lastName.toLowerCase().startsWith(r)||e.initials.toLowerCase().startsWith(r)})):e.visibleUsers).map((function(e){return{id:e.id,display:Object(d.c)(e.firstName,e.lastName)}})))}),[e.visibleUsers]);Object(h.a)(w),Object(p.a)(m.e,(function(){w.current&&Object(g.a)(w.current)&&w.current.focus()}),[w.current]);var M=i.useCallback((function(){return E(!A)}),[A]);return Object(a.jsxs)("div",{className:"c-activity-input-bar",children:[I&&!x&&Object(a.jsxs)("div",{className:"c-activity-input-bar__warning","data-testid":"comment-input-warning",children:["Approaching max comment length.",Object(a.jsx)("br",{}),"Submit to start a new comment."]}),x&&Object(a.jsxs)("div",{className:"c-activity-input-bar__warning","data-testid":"comment-input-warning",children:["Exceeded max comment length.",Object(a.jsx)("br",{}),"Edit and submit to continue."]}),Object(a.jsxs)("div",{className:"c-activity-input-bar__input",children:[Object(a.jsx)("div",{className:"u-flex-auto u-w-min0",children:Object(a.jsx)(s.b,{className:"c-activity-input-bar-mention",placeholder:"Type comment",name:"omni",id:"message-activity-omnibar",value:T,onChange:function onChange(e){return y(e.target.value)},onKeyDown:function onKeyDown(e){"Enter"!==e.key||e.ctrlKey||e.shiftKey||(e.preventDefault(),R())},inputRef:w,allowSuggestionsAboveCursor:!0,style:b,children:Object(a.jsx)(s.a,{trigger:"@",data:F,displayTransform:function displayTransform(e,t){return"@".concat(t)},renderSuggestion:function renderSuggestion(e,t,n,r,i){return Object(a.jsx)("div",{className:"u-flex",children:Object(a.jsx)(l.a,{label:e.display,state:"active",onClick:u.a,displayIcon:!1})},r)},appendSpaceOnAdd:!0})})}),Object(a.jsx)(c.a,{className:"u-self-end",buttonContent:"Submit",iconGlyph:Object(o.e)(o.c.ARROW_UP),onClick:R,disabled:N,dataTestId:"activity-submit-button"})]}),e.externalSharedEmails&&k&&Object(a.jsxs)("div",{className:"u-flex u-pa-sm",children:[Object(a.jsx)(j.a,{onChange:M,isChecked:A,id:"public-comment-checkbox"}),Object(a.jsxs)("span",{children:["Share comment with"," ",Object(a.jsx)(v.a,{content:Object(a.jsx)("div",{className:"c-activity-input-bar__tooltip",children:e.externalSharedEmails.map((function(e){return Object(a.jsx)("div",{children:e},e)}))}),children:Object(a.jsxs)("span",{className:"c-activity-input-bar__tooltip-target",children:[e.externalSharedEmails.length," external user",e.externalSharedEmails.length>1&&"s"]})})]})]})]})}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(0),a=n(1),i=n(12),o=n(82),c=function createTab(e){return Object(i.b)(e).withConfig({displayName:"rectangular-tab",componentId:"sc-1aef9u7-0"})(['position:relative;padding:var(--spacing-2) 0;display:flex;justify-content:flex-end;flex-grow:1;flex-basis:0;cursor:pointer;:not(:last-of-type){&::before,&::after{content:"";position:absolute;top:25%;z-index:var(--backdrop-layer);display:block;width:1px;height:50%;background-color:var(--border-2);}}'])},s={TabDivider:c("div"),TabLink:c(o.a),Tab:i.b.span.withConfig({displayName:"rectangular-tab__Tab",componentId:"sc-1aef9u7-1"})(["display:flex;width:100%;justify-content:center;z-index:var(--orchestra-layer);font-size:var(--fs-sm);color:var(--grey-70);",""],(function(e){return e.$active&&"\n        color: var(--grey-90);\n      "}))},l=function RectangularTab(e){var t=Object(r.jsx)(s.Tab,{$active:e.active,$divider:e.divider,children:e.name});return e.href?Object(r.jsx)(s.TabLink,{to:e.href,onClick:function handleLinkClick(){e.onClick(e.id)},children:t}):Object(r.jsx)(s.TabDivider,{onClick:function handleClick(t){t.preventDefault(),t.stopPropagation(),e.onClick(e.id)},children:t})},u={TabsContainer:i.b.div.withConfig({displayName:"rectangular-tabs__TabsContainer",componentId:"sc-1cu4t2f-0"})(["padding:var(--spacing-3) var(--spacing-3) 0 var(--spacing-3);width:100%;background-color:var(--background-1);"]),ScrollContent:i.b.div.withConfig({displayName:"rectangular-tabs__ScrollContent",componentId:"sc-1cu4t2f-1"})(['background-color:var(--background-2);border-radius:var(--br1);border:2px solid var(--background-2);display:flex;position:relative;&::before{content:"";position:absolute;top:0;z-index:var(--stage-layer);display:block;width:calc( (100% / ',") + ","px );height:100%;border-radius:var(--br);background-color:var(--white);color:var(--grey-90);"," transition:all 150ms ease-in;}"],(function(e){return e.$tabCount||1}),1,(function(e){var t=e.$tabCount,n=e.$activeTabIndex,r=100*(1-(t-n)/t);return-1===n?"":"& {left: calc(".concat(0===n?r:r-.3,"%)}")}))},d=function RectangularTabs(e){var t=e.tabs,n=e.activeTabId,i=e.onTabSelect,o=e.children,c=a.useCallback((function(e){e!==n&&i(e)}),[i,n]),s=a.useMemo((function(){return t.map((function(e){return e.id})).indexOf(n)}),[n,t]);return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(u.TabsContainer,{"data-testid":"rectangular-tabs-container",children:Object(r.jsx)(u.ScrollContent,{$tabCount:t.length,$activeTabIndex:s,children:t.map((function(e,a){var i=e.id===n,o=a===t.length-1,s=!o&&t[a+1].id===n;return Object(r.jsx)(l,{id:e.id,name:e.name,active:i,onClick:c,divider:!s&&!i&&!o,href:e.href},e.id)}))})}),o]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return b}));var r=n(51),a=n(17),i=n(111),o=n(28),c=n(1),s=n(4),l={menubar:"no",location:"yes",resizeable:"yes",scrollbars:"no",status:"no",dependant:"yes",modal:"yes",width:800,height:550};function buildFeatures(){var e={height:Math.floor(.8*window.outerHeight),width:Math.floor(.6*window.outerWidth)};return function buildString(e){return Object.entries(e).map((function(e){return e.join("=")})).join(",")}(Object(s.a)(Object(s.a)(Object(s.a)({},l),e),function calculateOffsets(e){var t=e.height,n=e.width;return{top:Math.floor((window.outerHeight-(t+50*Math.random()))/2+window.screenTop),left:Math.floor((window.outerWidth-(n+50*Math.random()))/2+window.screenLeft)}}(e)))}var u=n(61),d="Preview",b=function useNewWindow(e,t){var n=Object(i.c)().isTabletish,s=Object(o.useDispatch)();return Object(c.useCallback)((function(i){n?s(new u.H(i,e,"Add"!==e)):(window.open(function publicPreviewUrl(e){return"".concat(r.i).concat(a.a.PREVIEW(e))}(t.id),"".concat(d,"_").concat(t.id),buildFeatures()),window.PreviewContext={document:i})}),[n,t.id,s,e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(21),a=n(0),i=n(1),o=n(139),c=n(408),s=n(13),l=n(15),u=n(12),d=n(9),b=n(19),p=n(111),m={FollowMarker:u.b.div.withConfig({displayName:"follow-marker__FollowMarker",componentId:"nscuag-0"})(["flex:0 1 auto;align-content:center;margin-left:var(--spacing-2);color:var(--action-70);cursor:pointer;margin-right:var(--spacing-3);white-space:nowrap;min-width:auto;"]),FollowContainer:u.b.span.withConfig({displayName:"follow-marker__FollowContainer",componentId:"nscuag-1"})(["font-size:var(--fs-sm);vertical-align:middle;padding-left:var(--spacing-3);"]),FollowText:u.b.span.withConfig({displayName:"follow-marker__FollowText",componentId:"nscuag-2"})(["@media (max-width:1024px){display:none;}"])};function FollowMarker(e){var t,n,r,i=e.hovered,o=e.unsubscribeJobReference,c=e.currentUser,s=e.jrId,l=e.jrTagId,u=e.isFollowed,h=e.subscribeJobReference,g=e.jrName,j=e.isMyWork,v=Object(p.c)().isTabletish;return t=!!v||(i&&u||i&&!u||u),n=v?u?Object(d.e)(d.c.UNFOLLOW):Object(d.e)(d.c.FOLLOW):i&&u?Object(d.e)(d.c.UNFOLLOW):Object(d.e)(d.c.FOLLOW),r=i?u?"Unfollow":"Follow":"Following",Object(a.jsx)(m.FollowMarker,{onClick:function onClick(){return u?o&&c&&s&&o(c,s,l,g,j):h&&c&&s&&h(c,s,l,g)},children:t&&Object(a.jsxs)(m.FollowContainer,{children:[Object(a.jsx)(b.a,{glyph:n,size:"small"})," ",Object(a.jsx)(m.FollowText,{children:!v&&r})]})})}var h=n(8),g={TagContainer:u.b.div.withConfig({displayName:"applied-job-reference-tags-list__TagContainer",componentId:"bwhamx-0"})(["border-radius:var(--br2);display:flex;align-content:center;justify-content:space-between;padding:var(--spacing-1) var(--spacing-2);",""],(function(e){return e.featureFlags.FOLLOW_JOB_TAGS&&"&:hover {\n        background-color: var(--background-shade);\n      }\n\n      &:focus {\n        background-color: var(--background-shade);\n      }"}))},j=function TagRowComponent(e){var t,n=e.jobRef,l=i.useState(!1),u=Object(r.a)(l,2),d=u[0],b=u[1],p=null!==(t=n.jobReferenceId)&&void 0!==t?t:n.relationshipId;return Object(a.jsxs)(g.TagContainer,{onMouseEnter:function onMouseEnter(){b(!0)},onMouseLeave:function onMouseLeave(){return b(!1)},featureFlags:e.featureFlags,children:[e.isCompose?Object(a.jsx)(o.a,{label:n.label,state:"active",onClick:function onClick(){return n.relationshipId&&e.removeJobReference(n.relationshipId,n.label)}}):Object(a.jsx)(c.a,{tagId:n.tagId,tagType:"jobReferenceTag",label:n.label,onRemoveClick:function onJobReferenceRemoveClick(t,n){return e.removeJobReference(t,n)},onSearchClick:e.featureFlags.TAG_SEARCH_ALL_TEAMS?function onJobReferenceSearchAllTeamsClick(t){return e.goToJobReferenceSearch(new s.k(h.g.AND,[new s.z({id:t.messageTagId,tagId:t.tagId,name:t.label}),new s.b]))}:function onJobReferenceSearchClick(t){return e.goToJobReferenceSearch(s.k.fromFilterTerm(new s.z({id:t.messageTagId,tagId:t.tagId,name:t.label})))},id:"mjr-tags-".concat(n.relationshipId),messageTagId:n.relationshipId,enableTouchStyles:!0}),e.featureFlags.FOLLOW_JOB_TAGS&&Object(a.jsx)(FollowMarker,{hovered:d,unsubscribeJobReference:e.unsubscribeJobReference,currentUser:e.currentUser,jrId:p,jrTagId:n.tagId,isFollowed:e.isFollowed,subscribeJobReference:e.subscribeJobReference,jrName:n.label,isMyWork:e.featureFlags.MY_WORK})]})},v=function AppliedJobReferenceTagsList(e){return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsx)("h4",{className:"u-fs-md u-mb-md u-pl-md",children:l.b.t(l.a.JOB_TAG,{count:e.appliedJobReferenceTags.length})}),Object(a.jsx)("ul",{className:"u-list u-pl-md u-mb-lg",children:e.appliedJobReferenceTags.map((function(t){var n,r=null===(n=e.myMessageTagIds)||void 0===n?void 0:n.has(t.tagId);return Object(a.jsx)("li",{className:"u-mb-sm",children:Object(a.jsx)(j,{removeJobReference:e.removeJobReference,goToJobReferenceSearch:e.goToJobReferenceSearch,featureFlags:e.featureFlags,jobRef:t,isFollowed:r,unsubscribeJobReference:e.unsubscribeJobReference,subscribeJobReference:e.subscribeJobReference,currentUser:e.currentUser})},"ma-"+t.relationshipId)}))})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return FavouriteCategoryTagsListContainer}));var r=n(4),a=n(0),i=n(873),o=n(63),c=n(412),s=n(153);function FavouriteCategoryTagsList(e){var t=function categoryTagProps(t){return{label:t.label,onClick:function onClick(){return e.categorizeItem(t.tagId,t.id,t.label)},state:"inactive",id:"cat-tag-".concat(t.id)}},n=function favouritableCategoryTagProps(n){return Object(r.a)(Object(r.a)({},t(n)),{},{isFavourite:!0,addFavourite:function addFavourite(){return i.a},removeFavourite:function removeFavourite(){return e.removeFavourite(n)}})};return Object(a.jsx)(a.Fragment,{children:Object(a.jsx)("ul",{className:"u-list u-pl-0 u-mb-0",children:e.favouriteCategoryTags.sort(Object(o.a)((function(e){return e.label.toLowerCase()}))).map((function(i){return Object(a.jsx)("li",{className:"c-message-tag-panel__cat-tag u-mb-xs",children:e.isTouchScreen?Object(a.jsx)(s.a,Object(r.a)({},t(i))):Object(a.jsx)(c.a,Object(r.a)({},n(i)))},"cat-tag-".concat(i.id))}))})})}var l=n(12),u=n(9),d=n(19),b=n(15),p={Container:l.b.div.withConfig({displayName:"favourite-category-tags-list-container__Container",componentId:"sc-11u9f7t-0"})([""]),NoFavouriteContainer:l.b.div.withConfig({displayName:"favourite-category-tags-list-container__NoFavouriteContainer",componentId:"sc-11u9f7t-1"})(["display:flex;align-items:center;padding:var(--spacing-2);color:var(--text-2);"]),NoFavouriteIcon:l.b.div.withConfig({displayName:"favourite-category-tags-list-container__NoFavouriteIcon",componentId:"sc-11u9f7t-2"})(["border-radius:var(--br-max);background-color:var(--background-shade);padding:var(--spacing-3);margin-right:var(--spacing-3);"]),NoFavouriteContainerTitle:l.b.span.withConfig({displayName:"favourite-category-tags-list-container__NoFavouriteContainerTitle",componentId:"sc-11u9f7t-3"})(["font-weight:var(--fw-bold);padding-right:var(--spacing-1);"]),NoFavouriteContainerText:l.b.span.withConfig({displayName:"favourite-category-tags-list-container__NoFavouriteContainerText",componentId:"sc-11u9f7t-4"})(["font-size:var(--fs-sm);"]),IconContainer:l.b.div.withConfig({displayName:"favourite-category-tags-list-container__IconContainer",componentId:"sc-11u9f7t-5"})(["display:flex;align-items:center;"])};function FavouriteCategoryTagsListContainer(e){return Object(a.jsx)(p.Container,{children:e.favouriteCategoryTags.length>0||(t=e.appliedCategoryTags,n=e.isFavourite,t.filter((function(e){return n(e)})).length>0)?e.favouriteCategoryTags.length>0?Object(a.jsx)("div",{className:"u-pt-md u-pb-xs ",children:Object(a.jsx)(FavouriteCategoryTagsList,Object(r.a)({},e))}):Object(a.jsx)(NoUnappliedFavouriteCategoryTags,{}):Object(a.jsx)(NoFavouriteCategoryTags,{})});var t,n}function NoUnappliedFavouriteCategoryTags(){return Object(a.jsxs)(p.NoFavouriteContainer,{children:[Object(a.jsx)(p.NoFavouriteIcon,{children:Object(a.jsx)(d.a,{glyph:Object(u.e)(u.c.UNPIN),size:"regular"})}),Object(a.jsxs)(p.NoFavouriteContainerText,{children:[Object(a.jsx)(p.NoFavouriteContainerTitle,{children:"Favourites."}),"Your favourite ",b.b.t(b.a.CATEGORY_TAG_PLURAL)," for this"," ",b.b.t(b.a.TEAM)," are already selected on this message."]})]})}function NoFavouriteCategoryTags(){return Object(a.jsxs)(p.NoFavouriteContainer,{children:[Object(a.jsx)(p.NoFavouriteIcon,{children:Object(a.jsx)(d.a,{glyph:Object(u.e)(u.c.UNPIN),size:"regular"})}),Object(a.jsxs)(p.NoFavouriteContainerText,{children:[Object(a.jsx)(p.NoFavouriteContainerTitle,{children:"Favourites."}),"You don't have any favourite ",b.b.t(b.a.CATEGORY_TAG_PLURAL)," ","in this ",b.b.t(b.a.TEAM),", hover over the"," ",b.b.t(b.a.CATEGORY_TAG_PLURAL)," to pin here."]})]})}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),a=n(92),i=n(141),o=n(21),c=n(1),s=n(152),l=n(19),u=n(9),d=n(406),b=n(88),p=n(316),m=n(31);n(349);function DatePickerInput(e){var t=e.placeholder,n=e.date,a=e.onDateChange,i=e.minDate,h=e.maxDate,g=e.disableOutsideRange,j=e.invalid,v=e.disabled,O=e.id,T=e.testId,y=e.name,S=e.onFocus,C=e.onBlur,A=e.dateFormat,E=void 0===A?b.a:A,w=e.inputProps,_=c.useRef(null),I=c.useState(Object(b.d)(n)),x=Object(o.a)(I,2),k=x[0],N=x[1];c.useEffect((function(){var e=Object(b.f)(n,E);n&&e===n||N(Object(b.d)(n,E))}),[n,E]);var R=c.useCallback((function(e){a(e),_.current&&_.current!==document.activeElement&&_.current.click()}),[a]),F=c.useCallback((function(){return a()}),[a]),M=c.useCallback((function(e){var t=e.target.value;N(t),Object(b.e)(t,E)&&a(Object(b.f)(t,E))}),[E,a]);return Object(r.jsx)("div",{className:"c-date-picker-input",children:Object(r.jsx)(s.a,{theme:"date-picker",arrow:!1,boundary:"scrollParent",content:Object(r.jsx)(d.a,{date:n,onDateChange:R,minDate:i,maxDate:h,disableOutsideRange:g}),flip:!0,flipOnUpdate:!0,interactive:!0,hideOnClick:!0,trigger:"click",distance:0,placement:"bottom-start",children:Object(r.jsx)("div",{children:Object(r.jsx)(p.a,{ref:_,id:O,name:y,value:k,onChange:M,onFocus:S,onBlur:C,placeholder:t,disabled:v,invalid:j,prefix:Object(r.jsx)(l.a,{glyph:Object(u.e)(u.c.CALENDAR),size:"small"}),suffix:n?Object(r.jsx)(m.a,{size:"small",buttonContent:"Clear",iconGlyph:Object(u.e)(u.c.CLEAR),onClick:F,dataTestId:"date-picker-clear"}):void 0,testId:null!==T&&void 0!==T?T:"date-picker-input",inputProps:w})})})})}var h=function DateInputField(e){return Object(r.jsx)(a.a,{name:e.fieldName,validate:e.validation,initialValue:e.initialValue,children:function children(t){var n,a,o,c=t.input,s=t.meta,l=!(!s.error&&!s.submitError||!s.touched)||!(s.touched||!e.error),u=s.error||s.submitError||e.error,d=e.dateFormat?Object(b.f)(c.value,e.dateFormat):c.value;return Object(r.jsx)(i.a,{label:e.label,name:null!==(n=e.id)&&void 0!==n?n:e.fieldName,error:l?u:void 0,helpText:e.helpText,children:Object(r.jsx)(DatePickerInput,{dateFormat:e.dateFormat,date:d,onDateChange:function handleChange(t){c.onChange({target:{value:e.dateFormat?Object(b.d)(t,e.dateFormat):t}})},name:c.fieldName,invalid:l,placeholder:e.placeholder,disabled:e.disabled,onFocus:c.onFocus,onBlur:c.onBlur,id:null!==(a=e.id)&&void 0!==a?a:e.fieldName,testId:null!==(o=e.testId)&&void 0!==o?o:"".concat(e.fieldName,"-date-input-field"),inputProps:e.inputProps})})}})}},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n(12),a=r.b.div.withConfig({displayName:"settings-panel-detail__DetailsBody",componentId:"sc-3ncgqw-0"})(["display:flex;flex-direction:column;overflow-y:auto;"]),i=r.b.div.withConfig({displayName:"settings-panel-detail__DetailsFooter",componentId:"sc-3ncgqw-1"})(["display:flex;justify-content:flex-end;flex-shrink:0;border-top:var(--bw1) solid var(--background-2);padding-top:var(--spacing-6);"])},function(e,t,n){"use strict";n.d(t,"a",(function(){return ShouldPreviewContainer}));var r=n(4),a=n(0),i=n(1),o=n(131),c=n(26),s=n(155),l=n(2),u=n(21),d=n(28),b=n(596),p=n(632);function PreviewTriggerContainer(e){var t=e.doc,n=e.place,r=Object(d.useDispatch)(),a=Object(c.d)((function(e){return e.entities.s3Urls[t.kind]})),o=Object(i.useState)(!1),m=Object(u.a)(o,2),h=m[0],g=m[1],j=Object(p.b)(n,t);return Object(i.useEffect)((function(){l.g(a,t.id).ifPresent((function(e){h&&t.kind!==s.b.MESSAGE_META&&(j({fileName:t.name,endpoint:e}),g(!1))}))}),[h,a,t,j]),e.children((function(){e.isMsPreview&&t.kind!==s.b.MESSAGE_META?(r(new b.b(t.hash,t.kind,t.id)),g(!0)):j(t)}))}var m=new Set([o.a.WORD,o.a.EXCEL,o.a.POWERPOINT]);function ShouldPreviewContainer(e){var t=e.doc,n=e.place,u=Object(i.useMemo)((function(){return function buildPreviewable(e){var t=function isMessageMeta(e){return"undefined"!==typeof e.messageId};if(function isTA(e){return"undefined"!==typeof e.topicId}(e))return Object(r.a)({kind:s.b.TOPIC_ATTACHMENT},e);if(t(e))return Object(r.a)({kind:s.b.MESSAGE_META},e);return Object(r.a)({kind:s.b.DOCUMENT},e)}(t)}),[t]),d=Object(c.d)(Object(c.b)([function(e){return e.entities.tenantConfig}],(function(e){return l.g(e,l.a).map((function(e){return e.settings.MS_PREVIEW})).orElse(!1)})));return u.kind===s.b.MESSAGE_META||o.b.has(Object(o.c)(u.name))?Object(a.jsx)(PreviewTriggerContainer,{doc:u,place:n,isMsPreview:!1,children:function children(t){return e.children(t)}}):d&&m.has(Object(o.c)(u.name))?Object(a.jsx)(PreviewTriggerContainer,{doc:u,place:n,isMsPreview:!0,children:function children(t){return e.children(t)}}):Object(a.jsx)(a.Fragment,{})}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function hasFdVesselInfo(e){return void 0!==e.attachmentId}n.d(t,"a",(function(){return hasFdVesselInfo}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(3),a=n(5),i=n(6),o=n(14),c=function(e){Object(a.a)(SubmitInviteToBeVerified,e);var t=Object(i.a)(SubmitInviteToBeVerified);function SubmitInviteToBeVerified(){var e;Object(r.a)(this,SubmitInviteToBeVerified);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).eventSpec={eventCategory:"Message Header",eventAction:"Verified by SEDNA - Invite to be verified"},e}return SubmitInviteToBeVerified}(o.a),s=function(e){Object(a.a)(SubmitVerifiedLearnMore,e);var t=Object(i.a)(SubmitVerifiedLearnMore);function SubmitVerifiedLearnMore(){var e;Object(r.a)(this,SubmitVerifiedLearnMore);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).eventSpec={eventCategory:"Message Header",eventAction:"Verified by SEDNA - Learn More"},e}return SubmitVerifiedLearnMore}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(0),a=n(12),i=n(369),o=n(34),c=n(9),s=n(56),l=n(141),u={ArrayInputFullWidth:a.b.div.withConfig({displayName:"array-input-field__ArrayInputFullWidth",componentId:"liab5s-0"})(["flex-direction:row;display:flex;@media ","{min-width:100%;}"],s.a.minMedium),ArrayInputColumn:a.b.div.withConfig({displayName:"array-input-field__ArrayInputColumn",componentId:"liab5s-1"})(["flex-direction:column;display:flex;@media ","{min-width:100%;}"],s.a.minMedium),ArrayInputHalfWidth:a.b.div.withConfig({displayName:"array-input-field__ArrayInputHalfWidth",componentId:"liab5s-2"})(["padding-right:var(--spacing-3);@media ","{min-width:50%;width:50%;}"],s.a.minMedium),ArrayInputRemove:a.b.div.withConfig({displayName:"array-input-field__ArrayInputRemove",componentId:"liab5s-3"})(["height:min-content;margin-bottom:var(--spacing-4);"]),Divider:a.b.hr.withConfig({displayName:"array-input-field__Divider",componentId:"liab5s-4"})(["border-top:1px solid var(--grey-30);margin-bottom:var(--spacing-3);"])},d=function ArrayInputField(e){return Object(r.jsxs)(l.a,{label:e.label,name:e.fieldName,children:[Object(r.jsx)("div",{children:Object(r.jsx)(i.a,{name:e.fieldName,children:function children(t){var n=t.fields;return n.map((function(t,a){return e.alternativeRemove?Object(r.jsxs)(u.ArrayInputColumn,{children:[e.children(t),Object(r.jsx)(u.ArrayInputRemove,{children:Object(r.jsx)(o.a,{size:"small",onClick:function onClick(){return n.remove(a)},buttonStyle:"link",icon:Object(c.e)(c.c.CROSS_IN_CIRCLE),children:"Remove"})})]},a):Object(r.jsxs)(u.ArrayInputFullWidth,{children:[Object(r.jsx)(u.ArrayInputHalfWidth,{children:e.children(t)},t),Object(r.jsx)(u.ArrayInputRemove,{children:Object(r.jsx)(o.a,{size:"small",onClick:function onClick(){return n.remove(a)},buttonStyle:"link",danger:!0,onDarkBg:!0,icon:Object(c.e)(c.c.CROSS_IN_CIRCLE),children:"Remove"})})]},a)}))}})}),Object(r.jsx)(o.a,{size:"small",onClick:function onClick(){return e.push(e.fieldName,void 0)},buttonStyle:"link",icon:Object(c.e)(c.c.ADD),children:e.addText}),e.divider?Object(r.jsx)(u.Divider,{}):Object(r.jsx)(r.Fragment,{})]})};d.defaultProps={alternativeRemove:!1,divider:!1}},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=new(n(1446).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function initialsFromName(e){return e.split(" ").map((function(e){return e[0]})).join("")}},,function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n(21),a=n(0),i=n(1),o=n.n(i),c=n(182),s=o.a.createContext(!1),l=function AuthProvider(e){var t=Object(c.d)(),n=o.a.useState(!!t),i=Object(r.a)(n,2),l=i[0],u=i[1];return o.a.useEffect((function(){var e=function handleLocalStorageChange(){Object(c.d)()||u(!1)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}}),[]),Object(a.jsx)(s.Provider,{value:l,children:e.children})},u=function useAuth(){return o.a.useContext(s)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(19),u=n(9),d=n(354),b=(n(929),n(34)),p=n(31),m=n(24),h=n.n(m),g=n(98),j=n(409);function CordovaDownloadAllLink(e){return Object(c.jsx)(j.a,{children:function children(t,n){return Object(c.jsx)(b.a,{buttonStyle:"link",onClick:n(e.link),icon:Object(u.e)(u.c.DOWNLOAD),className:"u-mr-sm","data-testid":"download-all-attachments",children:"".concat(t?"Downloading":"Download All"," (").concat(e.length,")")})}})}var v,O=n(51);!function(e){e.DEFAULT="DEFAULT",e.EXPANDED="EXPANDED"}(v||(v={}));var T=function(e){Object(i.a)(ReadAttachments,e);var t=Object(o.a)(ReadAttachments);function ReadAttachments(e){var n;return Object(r.a)(this,ReadAttachments),(n=t.call(this,e)).renderDocumentTiles=function(e){return e.map((function(e,t){var r=n.props.flexDocuments.find((function(t){return t.documentId===e.id}));return Object(c.jsx)(d.b,{mode:n.props.viewingMode,isCompose:!1,messageId:n.props.messageId,ix:t,doc:e,flexDocument:r||null,id:e.id,showDownload:!0,enableFlexDocumentTagging:n.props.enableFlexDocTagging,place:"",updateActivity:n.props.updateActivity,onDownloadMessageDocument:n.props.onDownloadMessageDocument,showIcsPreview:n.props.showIcsPreview,onPreviewDocument:n.props.onPreviewDocument},e.id)}))},n.renderCollapsedReadView=function(e){return Object(c.jsxs)("div",{className:"c-attachments__collapsed",children:[Object(c.jsx)("div",{className:"c-attachments__icon c--collapsed u-mr-sm",children:Object(c.jsx)(l.a,{glyph:Object(u.e)(u.c.PAPERCLIP)})}),n.renderCollapsedTiles(e)]})},n.renderCollapsedTiles=function(e){var t=n.props.isMobile,r=e.length,a=t?0:2,i=r>a?r-a:0,o=i>0?e.slice(0,a):e,s=0!==r&&r===a&&n.props.showDownloadAll,l=1===i?"Attachment":"Attachments",d=t?"".concat(i," ").concat(l):"+ ".concat(i," more");return Object(c.jsxs)("div",{className:"c-attachments__tiles",children:[n.renderDocumentTiles(o),i>0&&Object(c.jsx)(b.a,{buttonStyle:"link",className:"u-self-center",onClick:n.toggleExpandedState,"data-testid":"show-more-attachments",children:d}),Object(c.jsxs)("div",{className:"c-attachments__updownload",children:[n.renderDownloadAll(s),!n.props.isCompose&&i>0&&Object(c.jsx)(p.a,{className:"u-mt-sm",buttonContent:"Expand",iconGlyph:Object(u.e)(u.c.CHEVRON_UP),onClick:n.toggleExpandedState})]})]})},n.renderExpandedReadView=function(e){return Object(c.jsxs)(c.Fragment,{children:[n.renderDownloadBar(),Object(c.jsx)("div",{className:"c-attachments__tiles",children:n.renderDocumentTiles(e)})]})},n.renderDownloadBar=function(){return Object(c.jsxs)("div",{className:"c-attachments__bar",children:[Object(c.jsxs)("div",{className:"u-flex u-items-center",children:[Object(c.jsx)("div",{className:"c-attachments__icon u-ml-xs u-mr-md",children:Object(c.jsx)(l.a,{glyph:Object(u.e)(u.c.PAPERCLIP)})}),Object(c.jsx)("h3",{className:"u-fs-l u-mb-0",children:"All attachments"})]}),Object(c.jsxs)("div",{className:"c-attachments__updownload",children:[n.renderDownloadAll(n.props.showDownloadAll),Object(c.jsx)(p.a,{buttonContent:"Collapse",iconGlyph:Object(u.e)(u.c.CHEVRON_DOWN),onClick:n.toggleExpandedState})]})]})},n.renderDownloadAll=function(e){var t=Object(O.k)("attachment/download-all-redirect?messageId=".concat(n.props.messageId));return n.props.viewingMode===d.a.AuthorizedViewer&&e&&(Object(g.a)()?Object(c.jsx)(CordovaDownloadAllLink,{link:t,length:n.props.documents.length}):Object(c.jsxs)(b.a,{buttonStyle:"link",url:t,icon:Object(u.e)(u.c.DOWNLOAD),className:"u-mr-sm","data-testid":"download-all-attachments",children:["Download All (",n.props.documents.length,")"]}))},n.toggleExpandedState=function(){n.setState((function(e){return{display:e.display===v.DEFAULT?v.EXPANDED:v.DEFAULT}}))},n.state={display:v.DEFAULT,uploadError:!1},n}return Object(a.a)(ReadAttachments,[{key:"UNSAFE_componentWillReceiveProps",value:function UNSAFE_componentWillReceiveProps(e){this.props.documents!==e.documents&&this.setState({display:v.DEFAULT})}},{key:"render",value:function render(){var e=this.props.documents,t=this.state.display===v.DEFAULT;return Object(c.jsxs)("div",{className:h()("c-attachments",{"c--expanded":!t}),children:[t&&this.renderCollapsedReadView(e),!t&&this.renderExpandedReadView(e)]})}}]),ReadAttachments}(s.PureComponent)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(19),u=(n(778),n(58)),d=function(e){Object(i.a)(IconButtonAnchor,e);var t=Object(o.a)(IconButtonAnchor);function IconButtonAnchor(){return Object(r.a)(this,IconButtonAnchor),t.apply(this,arguments)}return Object(a.a)(IconButtonAnchor,[{key:"render",value:function render(){var e=function buildAnchor(e){var t;return Object(c.jsxs)("a",{href:e.linkHref,className:"c-icon-button ".concat(null!==(t=e.className)&&void 0!==t?t:""),title:e.linkText,target:e.targetBlank?"_blank":void 0,onClick:e.onClick,children:[Object(c.jsx)(l.a,{glyph:e.iconGlyph}),Object(c.jsx)("span",{className:"u-clip",children:e.linkText})]})}(this.props);return Object(c.jsx)(u.a,{content:this.props.linkText,children:e})}}]),IconButtonAnchor}(s.PureComponent)},function(e,t,n){},,function(e,t,n){"use strict";n.d(t,"a",(function(){return Radio}));var r=n(0),a={Input:n(12).b.input.withConfig({displayName:"radio__Input",componentId:"sc-15gcery-0"})(['margin-bottom:0;vertical-align:middle;[type="radio"]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}',""],(function(e){return e.disabled?"opacity: 0.5;":"cursor: pointer;"}))};function Radio(e){return Object(r.jsx)(a.Input,{id:e.id,type:"radio",onChange:e.onChange,checked:e.isChecked,disabled:!!e.isDisabled,"data-testid":e.testId,name:e.fieldName,value:e.value})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return NotifyCopyToClipboard}));var r=n(39),a=n.n(r),i=n(54),o=n(43),c=n(8);function NotifyCopyToClipboard(e,t,n){return _NotifyCopyToClipboard.apply(this,arguments)}function _NotifyCopyToClipboard(){return(_NotifyCopyToClipboard=Object(i.a)(a.a.mark((function _callee(e,t,n){return a.a.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:navigator.clipboard?(navigator.clipboard.writeText(n),e(new o.b({message:"".concat(t," copied to clipboard"),level:c.n.info}))):e(new o.b({message:"".concat(t," couldn't be copied"),level:c.n.warning}));case 1:case"end":return r.stop()}}),_callee)})))).apply(this,arguments)}},function(e,t,n){},,function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return SpinnerBlock}));var r=n(4),a=n(0),i=(n(1),n(50));function SpinnerBlock(e){return Object(a.jsx)("div",{style:Object(r.a)(Object(r.a)({},e.style),{},{minHeight:"90px"}),children:Object(a.jsx)(i.b,{spinner:i.a,fadeIn:"none"})})}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(0),a=(n(1),n(31)),i=n(9),o=n(643),c=n(723),s=n(724),l=n(914),u=n(34),d=n(571),b=function GenericErrorNotificationModal(e){var t=Object(r.jsx)(a.a,{buttonContent:"Close",iconGlyph:Object(i.e)(i.c.CLEAR),onClick:e.toggle});return Object(r.jsxs)(o.a,{wrapClassName:"c--modal-wrapper",className:"c-modal c--body-centered",isOpen:e.isOpen,toggle:e.toggle,children:[Object(r.jsx)(c.a,{toggle:e.toggle,close:t,children:e.headerText}),Object(r.jsx)(s.a,{children:Object(d.a)(e.children)}),Object(r.jsx)(l.a,{children:Object(r.jsx)(u.a,{color:"primary",onClick:e.toggle,children:"Ok"})})]},"saveErrorModal")}},function(e,t,n){},,function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(643),u=n(19),d=n(9),b=(n(1275),n(31)),p=n(24),m=n.n(p),h=function(e){Object(i.a)(SideMenu,e);var t=Object(o.a)(SideMenu);function SideMenu(){return Object(r.a)(this,SideMenu),t.apply(this,arguments)}return Object(a.a)(SideMenu,[{key:"render",value:function render(){return Object(c.jsxs)(l.a,{className:m()("c-side-menu",{"c--left":"left"===this.props.position,"c--right":"right"===this.props.position,"c--left c--lower":"left-lower"===this.props.position,"c--blue":"blue"===this.props.panelStyle}),isOpen:this.props.isOpen,toggle:this.props.toggle,wrapClassName:"c--modal-wrapper c--background-clickable",contentClassName:"c-layout c--modal",scrollable:!1,focus:"true",backdrop:!1,zIndex:"var(--frontrow-layer)",children:[Object(c.jsxs)("div",{className:"c-layout__header c-side-menu__head",children:[Object(c.jsxs)("div",{className:"u-flex u-items-center",children:[Object(c.jsx)(b.a,{className:m()({"u-mr-lg":"left"===this.props.position||"left-lower"===this.props.position,"u-order-1":"right"===this.props.position}),buttonContent:"Close",iconGlyph:Object(d.e)("left"===this.props.position||"left-lower"===this.props.position?d.c.ARROW_LEFT:d.c.ARROW_RIGHT),onClick:this.props.toggle,onDarkTheme:!0}),Object(c.jsx)(u.a,{glyph:this.props.titleIcon,className:"u-mr-md"}),Object(c.jsx)("h3",{className:"c-full-screen-modal__title",children:this.props.title})]}),this.props.subTitle&&Object(c.jsx)("div",{className:"c-full-screen-modal__sub-title",children:this.props.subTitle})]}),this.props.children]})}}]),SideMenu}(s.PureComponent);h.defaultProps={position:"left",panelStyle:"default"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return useStorePromise}));var r=n(21),a=n(1),i=n(28),o=n(26);function useStorePromise(e,t){var n=Object(i.useDispatch)(),c=Object(o.d)(e),s=Object(a.useState)(null),l=Object(r.a)(s,2),u=l[0],d=l[1];return Object(a.useEffect)((function(){if(null!==u)return c.isPresent()?(c.map((function(e){return u.resolve(e)})),d(null)):c.isError()?(c.error().map((function(e){return u.reject(e)})),d(null)):void 0}),[c,u]),[function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return new Promise((function(e,a){var i=t.apply(void 0,r);i&&n(i),d({resolve:e,reject:a})}))},c]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return MobileMenu}));var r=n(0),a=n(270),i=n.n(a),o=n(31),c=n(9),s=(n(1),n(1277),n(24)),l=n.n(s);function MobileMenu(e){return Object(r.jsxs)(i.a,{portalClassName:l()("c-mobile-menu",{"c--back":e.backButton}),overlayClassName:"c-mobile-menu__overlay",className:"c-mobile-menu__content",isOpen:e.isOpen,onRequestClose:e.toggleOpen,"data-testid":"mobile-menu",closeTimeoutMS:100,children:[e.modalTitle&&Object(r.jsxs)("div",{className:"c-mobile-menu__header",children:[e.backButton&&Object(r.jsx)(o.a,{buttonContent:"Back",iconGlyph:Object(c.e)(c.c.ARROW_LEFT),onClick:e.backButton,onDarkTheme:!0}),Object(r.jsx)("h5",{className:"c-mobile-menu__title",children:e.modalTitle}),Object(r.jsx)(o.a,{buttonContent:"Close",iconGlyph:Object(c.e)(c.c.CLEAR),onClick:e.toggleOpen})]}),e.children]},"mobileMenu")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(3),a=n(10),i=n(5),o=n(6),c=n(0),s=n(1),l=n(22),u=n(28),d=n(9),b=(n(350),n(384),n(31)),p=function(e){Object(i.a)(MobileMessageNavigationComponent,e);var t=Object(o.a)(MobileMessageNavigationComponent);function MobileMessageNavigationComponent(){var e;Object(r.a)(this,MobileMessageNavigationComponent);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).goToPreviousMessage=function(){return e.props.searchNavigator.getPreviousItem(e.props.match.params.id).map((function(t){return e.selectItem(t)}))},e.goToNextMessage=function(){return e.props.searchNavigator.getNextItem(e.props.match.params.id).map((function(t){return e.selectItem(t)}))},e.selectItem=function(t){e.props.goToItem(t.type,t.id,e.props.searchNavigator),e.props.searchNavigator.shouldFetchNextPage(t.id)&&e.props.fetchNextPage(e.props.searchNavigator)},e}return Object(a.a)(MobileMessageNavigationComponent,[{key:"render",value:function render(){var e=this.props.searchNavigator.hasNextItem(this.props.match.params.id),t=this.props.searchNavigator.hasPreviousItem(this.props.match.params.id);return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(b.a,{id:"arrow-up",iconGlyph:Object(d.e)(d.c.ARROW_UP),onClick:this.goToPreviousMessage,disabled:!t,onDarkTheme:!0}),Object(c.jsx)(b.a,{id:"arrow-down",iconGlyph:Object(d.e)(d.c.ARROW_DOWN),onClick:this.goToNextMessage,disabled:!e,onDarkTheme:!0})]})}}]),MobileMessageNavigationComponent}(s.PureComponent),m=Object(l.j)(Object(u.connect)(null,{goToItem:function goToItem(e,t,n){return n.goToItem(e,t,!0)},fetchNextPage:function fetchNextPage(e){return e.fetchNextPage(e.items[e.items.length-1])}})(p))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),a=n(26),i=Object(a.b)([function(e){return e.entities.document},function(e,t){return r.g(e.entities.messageDocument,t)}],(function(e,t){return r.m(t,(function(t){return r.g(e,t)}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(0),a=(n(1),n(22)),i=n(28),o=n(9),c=n(19),s=(n(1280),n(58)),l=n(40),u=n(290),d=n(74);var b=Object(a.j)(Object(i.connect)(null,{goToItem:function goToItem(e,t,n){return n.goToItem(e,t,!1)},fetchNextPage:function fetchNextPage(e){return e.fetchNextPage(e.items[e.items.length-1])}})((function MessageNavigationComponent(e){var t=function goToPreviousMessage(){return e.searchNavigator.getPreviousItem(e.match.params.id).map((function(e){return a(e)}))},n=function goToNextMessage(){return e.searchNavigator.getNextItem(e.match.params.id).map((function(e){return a(e)}))},a=function selectItem(t){e.goToItem(t.type,t.id,e.searchNavigator),e.searchNavigator.shouldFetchNextPage(t.id)&&e.fetchNextPage(e.searchNavigator)},i=e.searchNavigator.hasNextItem(e.match.params.id),b=e.searchNavigator.hasPreviousItem(e.match.params.id);return Object(u.a)(d.a.PREV_ITEM,(function(){b?t():Object(l.a)()}),[e.match.params,b]),Object(u.a)(d.a.NEXT_ITEM,(function(){i?n():Object(l.a)()}),[e.match.params,i]),Object(r.jsxs)("div",{className:"c-message-nav",children:[Object(r.jsx)(s.a,{content:"Previous",children:Object(r.jsx)("button",{disabled:!b,onClick:t,id:"arrow-up",className:"c-message-nav__button",children:Object(r.jsx)(c.a,{glyph:Object(o.e)(o.c.ARROW_UP),size:"small"})})}),Object(r.jsx)(s.a,{content:"Next",children:Object(r.jsx)("button",{disabled:!i,onClick:n,id:"arrow-down",className:"c-message-nav__button",children:Object(r.jsx)(c.a,{glyph:Object(o.e)(o.c.ARROW_DOWN),size:"small"})})})]})})))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),a=n(26),i=Object(a.b)([function(e){return e.entities.flexDocument},function(e,t){return r.g(e.entities.messageDocument,t)}],(function(e,t){return t.orElse([]).reduce((function(t,n){var a=r.g(e,n);return t.concat(a.toOptional().map((function(e){return[e]})).orElse([]))}),[])}))},function(e,t,n){},,function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(4),a=n(0),i=n(166),o=n(19),c=n(9),s=n(24),l=n.n(s),u=(n(458),n(34)),d=function GenericError(e){var t=Object(r.a)(Object(r.a)({},{darkMode:!1}),e),n=t.explanation,s=t.detail,d=t.darkMode;return Object(a.jsx)("div",{className:"c-layout","data-testid":"generic-error-container",children:Object(a.jsxs)("div",{className:l()("c-layout__body","c-error-page",{"c--dark":d}),children:[Object(a.jsx)(i.a,{className:l()("c-error-page__logo",{"c--dark":d})}),Object(a.jsx)(o.a,{glyph:c.b,size:"xlarge",className:"u-mb-md c-error-page__glyph","data-testid":"generic-error-icon-glyph"}),Object(a.jsx)("h2",{"data-testid":"generic-error-explanation",className:"u-ta-c c-error-page__explanation",children:null!==n&&void 0!==n?n:"An unknown error has occured"}),s&&Object(a.jsx)("p",{className:"u-text-medium u-ta-c c-error-page__detail","data-testid":"generic-error-explanation-detail",children:s}),Object(a.jsx)(u.a,{url:"/launch/",children:"Go to Inbox\ufe0f"})]})})}},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return d}));var r,a=n(23),i=n(3),o=n(10),c=n(5),s=n(6),l=n(20),u=n(16);!function(e){e.DOCUMENT="document",e.OPERATIONAL_DETAIL="operational_detail"}(r||(r={}));var d=function(e){Object(c.a)(AosGetActionsApiAction,e);var t=Object(s.a)(AosGetActionsApiAction);function AosGetActionsApiAction(e){var n;return Object(i.a)(this,AosGetActionsApiAction),(n=t.call(this)).tagId=e,n}return Object(o.a)(AosGetActionsApiAction,[{key:"apiEffect",value:function apiEffect(e){return{path:"".concat(e.apiUrl,"/jobreference/detail/all/aos?tagId=").concat(this.tagId),method:u.c.GET}}},{key:"mapResponse",value:function mapResponse(e){return e.reduce((function(e,t){return[].concat(Object(a.a)(e),Object(a.a)(t.actions.map((function(e){return function mapAction(e){if(function instanceOfDocumentAction(e){return"content"in e}(e.action)){var t,n=(new DOMParser).parseFromString(e.action.content.data,"text/html").body;return{type:r.DOCUMENT,title:e.title,content:e.action.content,url:null!==(t=n.getAttribute("href"))&&void 0!==t?t:""}}return{type:r.OPERATIONAL_DETAIL,title:e.title,url:e.action.contentUrl}}(e)}))))}),[])}}]),AosGetActionsApiAction}(l.a)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return initializeMixpanel}));var r=n(435),a=n.n(r),i=n(414);function initializeMixpanel(e,t,n,r,o,c,s){if(null!==t&&null!==o){var l=Object(i.a)(navigator.userAgent),u=window.screen.width+" x "+window.screen.height;a.a.init(t,{api_host:o},""),a.a.identify(c?"".concat(c.companyIdentifier,".").concat(c.id):void 0);var d={userId:c?c.id:null,userRoles:c?c.roles:null,userTeams:c?c.userTeams:null,resolution:u,devicePlatform:l.platform,deviceName:l.name,deviceType:l.type,tenantId:e.id,tenantName:e.name,clusterName:n,applicationVersion:r,defaultTeamId:null===c||void 0===c?void 0:c.defaultTeamId,defaultTeamPurpose:null===s||void 0===s?void 0:s.purpose};return a.a.register(d),a.a.people.set(d),a.a}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},,function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(39),a=n.n(r),i=n(4),o=n(54),c=n(53),s=n(2),l=n(42),u=n(214),d=n(51),b=s.e(),p=Object(c.createAsyncThunk)("lite/tenant/fetch",function(){var e=Object(o.a)(a.a.mark((function _callee(e,t){var n,r;return a.a.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:return n=t.rejectWithValue,a.prev=1,r=Object(d.m)("shareable-message-company/".concat(e)),a.next=5,new u.b(e,(function(e){return Object(i.a)({id:e.data.id,uuid:"",shortName:"",publicIdentifier:""},e.data.attributes)})).setUrl(r).get();case 5:return a.abrupt("return",a.sent);case 8:return a.prev=8,a.t0=a.catch(1),a.abrupt("return",n(Object(l.b)("",a.t0 instanceof u.a?a.t0.status:void 0)));case 11:case"end":return a.stop()}}),_callee,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}()),m=Object(c.createSlice)({name:"tenant",initialState:b,reducers:{},extraReducers:function extraReducers(e){e.addCase(p.pending,(function(e,t){return s.r(e,s.a)})).addCase(p.fulfilled,(function(e,t){return s.o(e,s.a,t.payload)})).addCase(p.rejected,(function(e,t){return s.f(e,s.a,t.payload)}))}});t.a=m.reducer},,function(e,t,n){"use strict";n.d(t,"a",(function(){return SettingsNotificationsPanel}));var r=n(0),a=n(1),i=n(12),o=n(28),c=n(483),s=n(376),l=n(436),u=n(9),d=n(335),b=n(26),p=n(2),m=Object(b.b)([function(e){return p.g(e.entities.notificationDevice,p.a).orElse([])},function(e){return e.ui.notifications},function(e){return p.g(e.entities.notificationDevice,p.a).isPending()}],(function(e,t,n){var r=t.subscribed?e.find((function(e){return e.deviceToken===t.token})):null;return{notificationDevices:e.filter((function(e){return e.deviceToken!==t.token})).sort((function(e,t){return e.id>t.id?-1:1})),currentDevice:null!==r&&void 0!==r?r:null,isPending:n}})),h=n(108),g=n(98),j=n(32),v=n.n(j),O=function getDeviceIcon(e){switch(e){case"mobile":return Object(u.e)(u.c.PHONE);case"tablet":return Object(u.e)(u.c.TABLET);default:return Object(u.e)(u.c.DESKTOP)}},T=function formatDate(e){return v()(e).format("DD MMMM YYYY, h:mm a")},y=n(19),S=n(31),C={CardContainer:i.b.div.withConfig({displayName:"base-device-card__CardContainer",componentId:"sc-1vulo42-0"})(["background:var(--background-1);border-radius:var(--br2);padding:var(--spacing-3);display:flex;justify-content:space-between;align-items:flex-start;margin:var(--spacing-3) 0;"]),IconContainer:i.b.div.withConfig({displayName:"base-device-card__IconContainer",componentId:"sc-1vulo42-1"})(["background-color:var(--background-2);border-radius:50%;flex-shrink:0;padding:var(--spacing-3);margin-right:var(--spacing-6);"]),FlexContent:i.b.div.withConfig({displayName:"base-device-card__FlexContent",componentId:"sc-1vulo42-2"})(["flex:1 1 auto;display:flex;flex-direction:column;align-items:flex-start;"]),CardActions:i.b.div.withConfig({displayName:"base-device-card__CardActions",componentId:"sc-1vulo42-3"})(["margin-top:var(--spacing-3);display:flex;align-items:center;flex-wrap:wrap;> *{margin-right:var(--spacing-3);margin-bottom:var(--spacing-2);}"]),IconButton:Object(i.b)(S.a).withConfig({displayName:"base-device-card__IconButton",componentId:"sc-1vulo42-4"})(["margin-left:var(--spacing-3);"])},A=i.b.span.withConfig({displayName:"base-device-card__CardTitle",componentId:"sc-1vulo42-5"})(["font-size:var(--fs);font-weight:var(",");color:var(--text-1);margin-bottom:var(--spacing-2);"],(function(e){return e.bold?"--fw-bold":"--fw-normal"})),E=i.b.div.withConfig({displayName:"base-device-card__CardDescription",componentId:"sc-1vulo42-6"})([""]),w=i.b.span.withConfig({displayName:"base-device-card__FieldLabel",componentId:"sc-1vulo42-7"})(["font-size:var(--fs-sm);font-weight:var(--fw-normal);color:var(--text-2);"]),_=i.b.span.withConfig({displayName:"base-device-card__FieldValue",componentId:"sc-1vulo42-8"})(["font-size:var(--fs-sm);font-weight:var(--fw-normal);color:var(--text-1);"]),I=i.b.div.withConfig({displayName:"base-device-card__CardHelperText",componentId:"sc-1vulo42-9"})(["margin-top:var(--spacing-3);font-size:var(--fs);font-weight:var(--fw-normal);color:var(--text-2);"]);function BaseDeviceCard(e){return Object(r.jsxs)(C.CardContainer,{children:[Object(r.jsx)(C.IconContainer,{children:Object(r.jsx)(y.a,{glyph:e.icon})}),Object(r.jsxs)(C.FlexContent,{children:[e.children,e.cardActions&&Object(r.jsx)(C.CardActions,{children:e.cardActions})]}),e.onRemoveClick&&Object(r.jsx)(C.IconButton,{buttonContent:"Remove",iconGlyph:Object(u.e)(u.c.DELETE),onClick:e.onRemoveClick})]})}function UnsupportedDeviceCard(e){var t=O(e.device.type);return Object(r.jsxs)(BaseDeviceCard,{icon:t,children:[Object(r.jsxs)(A,{children:["This ","web"===e.device.platform?"browser":"device"," does not support notifications."," ",Object(r.jsx)("a",{href:"https://support.sedna.com/hc/en-us/articles/360063857833",target:"_blank",rel:"noopener noreferrer",children:"Learn more."})]}),Object(r.jsxs)(E,{children:[Object(r.jsx)(w,{children:"Current device: "}),Object(r.jsx)(_,{children:e.device.name})]})]})}var x=n(34);function DisabledDeviceCard(e){var t=O(e.device.type);return Object(r.jsxs)(BaseDeviceCard,{icon:t,cardActions:Object(r.jsx)(r.Fragment,{children:e.onAddDevice&&Object(r.jsx)(x.a,{icon:Object(u.e)(u.c.BELL),buttonStyle:"primary",size:"small",onClick:e.onAddDevice,children:"Enable Notifications"})}),children:[Object(r.jsx)(A,{children:"This device is not subscribed to notifications."}),Object(r.jsxs)(E,{children:[Object(r.jsx)(w,{children:"Current device: "}),Object(r.jsx)(_,{children:e.device.name}),!e.onAddDevice&&Object(r.jsxs)(I,{children:["You must visit your browser settings page to enable Notifications for this device."," ",Object(r.jsx)("a",{href:"https://support.sedna.com/hc/en-us/articles/360048975793",target:"_blank",rel:"noopener noreferrer",children:"Visit this page"})," ","to learn how to change your device permissions."]})]})]})}function EnabledDeviceCard(e){var t=O(e.device.type);return Object(r.jsxs)(BaseDeviceCard,{icon:t,cardActions:Object(r.jsxs)(r.Fragment,{children:[e.onRemoveDevice&&Object(r.jsx)(x.a,{icon:Object(u.e)(u.c.BELL_STRIKETHROUGH),buttonStyle:"secondary",size:"small",onClick:e.onRemoveDevice,children:"Disable Notifications"}),Object(r.jsx)(x.a,{buttonStyle:"primary",size:"small",onClick:e.onTestDevice,children:"Send Test Notification"})]}),children:[Object(r.jsx)(A,{children:"This device is subscribed to notifications."}),Object(r.jsxs)(E,{children:[Object(r.jsx)(w,{children:"Current device: "}),Object(r.jsx)(_,{children:e.device.name}),!e.onRemoveDevice&&Object(r.jsxs)(I,{children:["You must visit your browser settings page to disable Notifications for this device."," ",Object(r.jsx)("a",{href:"https://support.sedna.com/hc/en-us/articles/360048975793",target:"_blank",rel:"noopener noreferrer",children:"Visit this page"})," ","to learn how to change your device permissions."]})]})]})}function DeviceCard(e){var t=O(e.device.device.type);return Object(r.jsxs)(BaseDeviceCard,{icon:t,onRemoveClick:e.onRemoveDevice,cardActions:Object(r.jsx)(x.a,{buttonStyle:"primary",size:"small",onClick:e.onTestDevice,children:"Send Test Notification"}),children:[Object(r.jsx)(A,{bold:!0,children:e.device.device.name}),Object(r.jsxs)(E,{children:[Object(r.jsx)(w,{children:"Device ID: "}),Object(r.jsx)(_,{children:e.device.id}),e.device.subscribedAt&&Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(w,{children:", Subscribed on "}),Object(r.jsx)(_,{children:T(e.device.subscribedAt)})]}),Object(r.jsx)(w,{children:", Last seen on "}),Object(r.jsx)(_,{children:T(e.device.lastSeen)})]})]},e.device.id)}var k=n(50),N=n(266),R=n(414),F=n(8),M={ScrollContainer:i.b.div.withConfig({displayName:"settings-notifications-panel__ScrollContainer",componentId:"sc-1u60ieg-0"})(["overflow-y:auto;overflow-x:hidden;padding-bottom:var(--spacing-3);"]),SectionHeading:i.b.h3.withConfig({displayName:"settings-notifications-panel__SectionHeading",componentId:"sc-1u60ieg-1"})(["font-size:var(--fs-lg);font-weight:var(--fw-semi);line-height:1.5;margin-bottom:var(--spacing-2);"]),SectionDivider:i.b.div.withConfig({displayName:"settings-notifications-panel__SectionDivider",componentId:"sc-1u60ieg-2"})(["border-bottom:1px solid var(--border-1);height:1px;"]),SectionDescription:i.b.div.withConfig({displayName:"settings-notifications-panel__SectionDescription",componentId:"sc-1u60ieg-3"})(["margin-top:var(--spacing-6);"]),CardTitle:i.b.span.withConfig({displayName:"settings-notifications-panel__CardTitle",componentId:"sc-1u60ieg-4"})(["font-size:var(--fs);font-weight:var(",");color:var(--text-1);margin-bottom:var(--spacing-2);"],(function(e){return e.bold?"--fw-bold":"--fw-normal"})),CardDescription:i.b.div.withConfig({displayName:"settings-notifications-panel__CardDescription",componentId:"sc-1u60ieg-5"})([""]),FieldLabel:i.b.span.withConfig({displayName:"settings-notifications-panel__FieldLabel",componentId:"sc-1u60ieg-6"})(["font-size:var(--fs-sm);font-weight:var(--fw-normal);color:var(--text-2);"]),FieldValue:i.b.span.withConfig({displayName:"settings-notifications-panel__FieldValue",componentId:"sc-1u60ieg-7"})(["font-size:var(--fs-sm);font-weight:var(--fw-normal);color:var(--text-1);"])},D="safari"===Object(N.a)();function SettingsNotificationsPanel(e){var t=e.currentUser,n=Object(o.useDispatch)(),i=Object(o.useSelector)(m),b=i.notificationDevices,p=i.currentDevice,j=i.isPending;a.useEffect((function(){n(new d.c(t.id))}),[n,t.id]);var v=a.useCallback((function(){return n(new h.i)}),[n]),O=a.useCallback((function(e){return function(){n(new h.g(e.deviceToken))}}),[n]),T=a.useCallback((function(e){return function(){n(new h.f(e))}}),[n]),y=a.useMemo((function(){return b.filter((function(e){return"native"===e.device.platform}))}),[b]);return Object(r.jsxs)(c.a,{children:[Object(r.jsx)(s.a,{title:"Notifications",subTitle:"SEDNA can notify you proactively about information that matters to you when you subscribe to a Bucket. You can control which Buckets send notifications to your devices by toggling the notification bell icon on a particular Bucket.",icon:Object(s.c)(u.c.BELL)}),Object(r.jsx)(l.a,{children:Object(r.jsx)(M.ScrollContainer,{children:j?Object(r.jsx)(k.b,{spinner:k.a}):Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(M.SectionHeading,{children:"Your Devices"}),function renderCurrentDevice(){var e=Object(R.a)(navigator.userAgent);if(!Object(g.a)()&&(!("Notification"in window)||D))return Object(r.jsx)(UnsupportedDeviceCard,{device:e});if(null===p){var t="native"===e.platform||"Notification"in window&&Notification.permission!==F.o.DENIED;return Object(r.jsx)(DisabledDeviceCard,{device:e,onAddDevice:t?v:void 0})}return Object(r.jsx)(EnabledDeviceCard,{device:p.device,onRemoveDevice:"native"===p.device.platform?O(p):void 0,onTestDevice:T(p)})}(),y.length>0&&Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(M.SectionDivider,{}),y.map((function(e){return Object(r.jsx)(DeviceCard,{device:e,onRemoveDevice:O(e),onTestDevice:T(e)},e.id)}))]}),y.length>0?Object(r.jsxs)(M.SectionDescription,{children:["If you are having trouble with notifications,"," ",Object(r.jsx)("a",{href:"https://support.sedna.com/hc/en-us/articles/360063857833",target:"_blank",rel:"noopener noreferrer",children:"visit our Help Centre"}),". If you need to contact Customer Support, please make sure to include any Device IDs that are not receiving notifications in your Support Ticket."]}):Object(r.jsxs)(M.SectionDescription,{children:["You don\u2019t have any other devices subscribed to notifications yet.",Object(r.jsx)("br",{}),Object(r.jsx)("br",{}),"If you are having trouble enabling notifications on this device,"," ",Object(r.jsx)("a",{href:"https://support.sedna.com/hc/en-us/articles/360063857833",target:"_blank",rel:"noopener noreferrer",children:"visit our Help Centre"}),". If you need to contact Customer Support, please make sure to include any Device IDs that are not receiving notifications in your Support Ticket."]})]})})})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(86),a=n(21),i=n(3),o=n(10),c=n(5),s=n(6),l=n(0),u=n(1),d=n(32),b=n.n(d),p=n(66),m=n(19),h=n(9),g=(n(1288),n(37)),j=n(82),v=n(52),O=n(63);function assignTextFfsb(e){var t=e.assignedByUserId,n=e.assignedToUserId,r=e.assignedByUserName,a=e.assignedToUserName;return t===n?Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("span",{className:"u-fw-b",children:r})," followed this"]}):Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("span",{className:"u-fw-b",children:r})," tagged"," ",Object(l.jsx)("span",{className:"u-fw-b",children:a})," on this"]})}var T=n(24),y=n.n(T),S=n(70);n(1289);function ActivityByGroup(e){var t,n,r=u.useState(!1),i=Object(a.a)(r,2),o=i[0],c=i[1],s=u.useState(!1),d=Object(a.a)(s,2),b=d[0],p=d[1],g=function toggleHover(){p(!b)},j=b?h.c.CHEVRON_DOWN:e.icon;return Object(l.jsxs)("li",{className:"c-activity-by-group","data-testid":"activity-group-content",children:[Object(l.jsxs)("button",{type:"button",className:y()("c-activity-by-group__toggle-btn",{"c--expanded":o,"c--hover":b}),onClick:function toggleExpanded(){c(!o)},onMouseEnter:g,onMouseLeave:g,children:[Object(l.jsx)(m.a,{glyph:Object(h.e)(j),size:"small"}),Object(l.jsx)("span",{className:"u-clip",children:o?"Collapse":"Expand"})]}),Object(l.jsx)("div",{className:"c-activity-by-group__item-content",children:o?e.renderExpanded:e.renderCollapsed})]},null!==(t=null===(n=e.event.groupedEvents[0])||void 0===n?void 0:n.uuid)&&void 0!==t?t:"Empty")}var C=n(361),A=function(e){Object(c.a)(ActivityList,e);var t=Object(s.a)(ActivityList);function ActivityList(){var e;Object(i.a)(this,ActivityList);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).renderEvent=function(t){switch(t.type){case S.a.comment:return e.renderComment(t);case S.a.publicComment:return e.renderPublicComment(t);case S.a.readBy:return e.renderRead(t);case S.a.share:return e.renderShare(t);case S.a.externalShare:return e.renderExternalShare(t);case S.a.assigned:return e.renderAssignment(t);case S.a.sent:return e.renderSent(t);case S.a.created:return e.renderCreated(t);case S.a.followUp:return e.renderFollowUp(t);case"newReadBy":return e.renderReadByGroup(t);case"newAssignedBy":return e.renderAssignedByGroup(t);case"newSharedBy":return e.renderSharedByGroup(t);case"newIcsDownloaded":return e.renderDownloadedByGroup(t);case S.a.archivedForTeam:return e.renderArchivedForTeam(t);case S.a.scheduled:return e.renderScheduled(t);case S.a.cancelled:return e.renderCancelled(t);case S.a.edited:return e.renderEditedEvent(t);case S.a.senderChanged:return e.props.featureFlagSenderChanged?e.renderSenderChanged(t):void 0;case S.a.sendNow:return e.renderSendNow(t);case S.a.icsDownloaded:return e.renderIcsDownloaded(t);default:return assertNever(t)}},e.renderComment=function(e){var t=e.time,n=e.uuid,r=e.user,a=e.userInitials,i=e.commentText,o=e.isCurrentUser,c=e.fromActiveTeam;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:y()("c-activity-list__icon c--person",{"c--fill":o||c,"u-fs-sm":a.length>2}),children:a||Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.COMMENT),size:"small"})}),Object(l.jsxs)("div",{className:y()("c-activity-list__comment",{"c--current":o}),children:[Object(l.jsx)("span",{className:"u-fw-b",children:r})," ",Object(l.jsxs)("span",{className:"c-activity-list__comment-time",children:["at ",Object(p.e)(b()(t))," said..."]}),Object(l.jsx)("br",{}),Object(l.jsx)(C.a,{content:i})]})]},n)},e.renderPublicComment=function(e){var t=e.time,n=e.uuid,r=e.user,a=e.userInitials,i=e.commentText,o=e.isCurrentUser;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:y()("c-activity-list__icon c--person",{"c--fill":o,"u-fs-sm":a.length>2}),children:a||Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.COMMENT),size:"small"})}),Object(l.jsxs)("div",{className:y()("c-activity-list__comment",{"c--current":o}),children:[Object(l.jsx)("span",{className:"u-fw-b",children:r})," ",Object(l.jsxs)("span",{className:"c-activity-list__comment-time",children:["at ",Object(p.e)(b()(t))," said..."]}),Object(l.jsx)("br",{}),Object(l.jsx)(C.a,{content:i}),Object(l.jsx)("div",{className:"u-mt-sm u-flex u-justify-end",children:Object(l.jsx)("div",{className:"c-activity-list__external-chip",children:"EXTERNAL"})})]})]},n)},e.renderAssignment=function(e){return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon c--assign",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.FOLLOW),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[assignTextFfsb(e)," ",Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(e.time))})]})]},e.uuid)},e.renderRead=function(e){var t=e.time,n=e.uuid,r=e.user;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.VISIBLE),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:["Seen by ",Object(l.jsx)("span",{className:"u-fw-b",children:r}),Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(t))})]})]},n)},e.renderShare=function(e){var t=e.time,n=e.uuid,r=e.user,a=e.sharedFrom,i=e.sharedTo;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.SHARE),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[r?Object(l.jsx)("span",{className:"u-fw-b",children:r}):"A user"," shared this",i&&Object(l.jsxs)(l.Fragment,{children:[" to ",Object(l.jsx)("span",{className:"u-fw-b",children:i})]}),a&&Object(l.jsxs)(l.Fragment,{children:[" from ",Object(l.jsx)("span",{className:"u-fw-b",children:a})]}),Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(t))})]})]},n)},e.renderExternalShare=function(e){var t=e.time,n=e.uuid,r=e.user,a=e.sharedTo;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.VISIBLE),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[Object(l.jsx)("span",{className:"u-fw-b",children:r})," shared this to"," ",Object(l.jsx)("span",{className:"u-fw-b",children:a}),Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(t))})]})]},n)},e.renderSent=function(e){var t=e.uuid,n=e.time,r=e.user;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.SEND),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[Object(l.jsx)("span",{className:"u-fw-b","data-testid":"sent-text",children:r}),"\xa0sent this",Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(n))})]})]},t)},e.renderCreated=function(t){var n=t.uuid,r=t.time,a=t.user;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.EDIT),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[Object(l.jsx)("span",{className:"u-fw-b",children:a})," created this ",e.props.type,Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(r))})]})]},n)},e.renderFollowUpLink=function(e,t,n){return Object(l.jsxs)(j.a,{to:{pathname:e,search:location.search},className:"c-activity-list__link",onClick:n,children:[Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.LAUNCH),size:"small",className:"u-mr-md"}),Object(l.jsxs)("span",{"data-testid":"reply-text",children:["Open ",t]})]})},e.renderFollowUp=function(t){var n,r=t.uuid,a=t.time,i=t.user,o=t.messageHref,c=t.followUpType;n=c===g.b.REPLIED?"replied":c===g.b.REPLYING?"drafted a reply":c===g.b.FORWARDED?"forwarded":"drafted a forward";var s=c===g.b.REPLIED||c===g.b.REPLYING?Object(h.e)(h.c.REPLY):Object(h.e)(h.c.FORWARD);return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:s,size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[Object(l.jsxs)("div",{className:"u-mb-sm",children:[Object(l.jsx)("span",{className:"u-fw-b",children:i})," ",n,e.isTypeForwarded(c)," ",e.props.type]}),(c===g.b.REPLIED||c===g.b.FORWARDED)&&e.renderFollowUpLink(o,e.props.type,(function trackFollowUpClick(){var t,r;return null===(t=(r=e.props).trackFollowUpClick)||void 0===t?void 0:t.call(r,"Go to ".concat(n))})),Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(a))})]})]},r)},e.renderScheduled=function(e){var t=e.uuid,n=e.time,r=e.user;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.SCHEDULED),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[Object(l.jsx)("span",{className:"u-fw-b",children:r}),"\xa0set message to send",Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(n))})]})]},t)},e.renderCancelled=function(e){var t=e.uuid,n=e.time,r=e.user;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.CANCELLED_18),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:["Reverted to a draft by\xa0",Object(l.jsx)("span",{className:"u-fw-b",children:r}),Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(n))})]})]},t)},e.renderEditedEvent=function(e){var t=e.uuid,n=e.time,r=e.user;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.EDIT),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:["Edited by\xa0",Object(l.jsx)("span",{className:"u-fw-b",children:r}),Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(n))})]})]},t)},e.renderSenderChanged=function(e){var t=e.uuid,n=e.time,r=e.user;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.PERSON),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:["Sender changed to\xa0",Object(l.jsx)("span",{className:"u-fw-b",children:r}),Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(n))})]})]},t)},e.renderSendNow=function(e){var t=e.uuid,n=e.time,r=e.user;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.SEND),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[Object(l.jsx)("span",{className:"u-fw-b",children:r}),"\xa0clicked Send Now",Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(n))})]})]},t)},e.renderIcsDownloaded=function(e){var t=e.uuid,n=e.time,r=e.user;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.CALENDAR),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[Object(l.jsx)("span",{className:"u-fw-b",children:r}),"\xa0downloaded this calendar event",Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(n))})]})]},t)},e}return Object(o.a)(ActivityList,[{key:"render",value:function render(){var e=this,t=this.props.activity,n=function convert(e,t){var n=Object(v.j)(e,(function(e){return e.type===S.a.assigned&&e.assignedByUserId!==e.assignedToUserId?"".concat(getDay(e),"-").concat(e.type,"-").concat(e.assignedByUserId):e.type===S.a.icsDownloaded?"".concat(getDay(e),"-").concat(e.type,"-").concat(e.user):"".concat(getDay(e),"-").concat(e.type)}));return Object(v.e)(n,(function(e){var n,a,i;if(e.length>1&&(null===(n=e[0])||void 0===n?void 0:n.type)===S.a.readBy&&getDay(e[0])!==t)return[{type:"newReadBy",groupedEvents:e}];if(e.length>1&&(null===(a=e[0])||void 0===a?void 0:a.type)===S.a.assigned&&!function isAllSelfAssigned(e){var t,n=Object(r.a)(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;if(a.assignedByUserId!==a.assignedToUserId)return!1}}catch(i){n.e(i)}finally{n.f()}return!0}(e))return[{type:"newAssignedBy",assignedByUserName:e[0].assignedByUserName,groupedEvents:e}];if(function isShareEvents(e){var t;return e.length>1&&(null===(t=e[0])||void 0===t?void 0:t.type)===S.a.share}(e)){var o=function groupedBySameUser(e){return Object(v.f)(e,(function(e){return e.user}))}(e);return Object.keys(o).map((function(e){return{type:"newSharedBy",sharedByUserName:e,groupedEvents:o[e]}}))}return e.length>1&&(null===(i=e[0])||void 0===i?void 0:i.type)===S.a.icsDownloaded?[{type:"newIcsDownloaded",user:e[0].user,groupedEvents:e}]:e}))}(t,b()().format("YYYY-MM-DD")),i=Object(v.f)(n,(function(e){return getDay(e)})),o=Object.entries(i).sort(Object(O.a)((function(e){return Object(a.a)(e,1)[0]}))).map((function(e){var t=Object(a.a)(e,2);return{date:t[0],events:t[1].sort((function(e,t){return isCreated(e)?-1:isCreated(t)?1:0}))}}));return t.length<=0?Object(l.jsx)("p",{className:"empty-content-message",children:"No activity"}):Object(l.jsx)("ul",{className:"c-activity-list",children:o.map((function(t,n){return Object(l.jsxs)("li",{children:[Object(l.jsx)("div",{className:"c-activity-list__date-wrapper",children:Object(l.jsx)("div",{className:"c-activity-list__date",children:Object(p.b)(b()(t.date),!1)})}),Object(l.jsx)("ul",{className:"u-list u-pl-md u-pr-md u-pb-sm",children:t.events.map(e.renderEvent)})]},n)}))})}},{key:"isTypeForwarded",value:function isTypeForwarded(e){return e===g.b.FORWARDED?" this":" to this"}},{key:"renderReadByGroup",value:function renderReadByGroup(e){var t,n=Object(l.jsxs)(l.Fragment,{children:["Seen by"," ",e.groupedEvents.map((function(t,n){return Object(l.jsxs)("span",{children:[Object(l.jsx)("span",{className:"u-fw-b",children:t.user}),n<e.groupedEvents.length-1?", ":""]},n)}))]}),r=Object(l.jsxs)("div",{"data-testid":"expanded-read-list",children:["Seen by",Object(l.jsx)("br",{}),e.groupedEvents.map((function(e,t){return Object(l.jsxs)("div",{children:[Object(l.jsx)("span",{className:"c-activity-by-group__timestamp",children:Object(p.e)(b()(e.time))}),Object(l.jsx)("span",{className:"u-fw-b",children:e.user})]},t)}))]});return Object(l.jsx)(ActivityByGroup,{event:e,renderCollapsed:n,renderExpanded:r,icon:h.c.VISIBLE},null===(t=e.groupedEvents[0])||void 0===t?void 0:t.uuid)}},{key:"renderAssignedByGroup",value:function renderAssignedByGroup(e){var t;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon c--assign",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.FOLLOW),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[Object(l.jsx)("span",{className:"u-fw-b",children:e.assignedByUserName})," tagged"," ",e.groupedEvents.map((function(t,n){return Object(l.jsxs)("span",{children:[Object(l.jsx)("span",{className:"u-fw-b",children:t.assignedToUserName}),n<e.groupedEvents.length-1?", ":" on this"]},n)}))]})]},null===(t=e.groupedEvents[0])||void 0===t?void 0:t.uuid)}},{key:"renderSharedByGroup",value:function renderSharedByGroup(e){var t,n,r,a,i,o=Object(p.e)(b()(null===(t=e.groupedEvents[0])||void 0===t?void 0:t.time)),c=Object(p.e)(b()(null===(n=e.groupedEvents[e.groupedEvents.length-1])||void 0===n?void 0:n.time)),s=e.groupedEvents.filter((function(e){return""!==e.sharedTo})),u=e.groupedEvents.length-s.length,d=function shareGroupActivityStatement(){return u>1?" and ".concat(u," private teams"):1===u?" and a private team":""},m=Object(l.jsxs)(l.Fragment,{children:[e.sharedByUserName?Object(l.jsx)("span",{className:"u-fw-b",children:e.sharedByUserName}):"A user"," ","shared this to"," ",s.map((function(e,t){var n=t<s.length-1,r=t===s.length-1;return Object(l.jsxs)("span",{children:[r&&!u&&" and ",Object(l.jsx)("span",{className:"u-fw-b",children:e.sharedTo}),n&&", ",r&&u?d():""]},t)})),Object(l.jsxs)(l.Fragment,{children:[" from ",(null===(r=e.groupedEvents[0])||void 0===r?void 0:r.sharedFrom)?Object(l.jsx)("span",{className:"u-fw-b",children:e.groupedEvents[0].sharedFrom}):"a private team"]}),Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:e.groupedEvents.length>1&&o!==c?"".concat(o," to ").concat(c):"".concat(o)})]}),g=s.length>0?m:Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("span",{className:"u-fw-b",children:e.sharedByUserName||"A user"})," ","shared this to"," ",Object(l.jsxs)("span",{className:"u-fw-b",children:[" ",d()," "]}),(null===(a=e.groupedEvents[0])||void 0===a?void 0:a.sharedFrom)&&" from ".concat(e.groupedEvents[0].sharedFrom),Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:o})]}),j=Object(l.jsxs)("div",{"data-testid":"expanded-share-list",children:[Object(l.jsx)("span",{className:"u-fw-b",children:e.sharedByUserName||"A user"})," ","shared this to ",Object(l.jsx)("br",{}),e.groupedEvents.map((function(e,t){return Object(l.jsxs)("div",{children:[Object(l.jsx)("span",{className:"c-activity-by-group__timestamp",children:Object(p.e)(b()(e.time))}),Object(l.jsx)("span",{className:"u-fw-b",children:""!==e.sharedTo?e.sharedTo:"A private team"})]},t)}))]});return Object(l.jsx)(ActivityByGroup,{event:e,renderCollapsed:g,renderExpanded:j,icon:h.c.SHARE},null===(i=e.groupedEvents[0])||void 0===i?void 0:i.uuid)}},{key:"renderDownloadedByGroup",value:function renderDownloadedByGroup(e){var t;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.CALENDAR),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[Object(l.jsx)("span",{className:"u-fw-b",children:e.user})," downloaded this calendar invite"," ",e.groupedEvents.length>1?"".concat(e.groupedEvents.length," times"):""]})]},null===(t=e.groupedEvents[0])||void 0===t?void 0:t.uuid)}},{key:"renderArchivedForTeam",value:function renderArchivedForTeam(e){var t=e.uuid,n=e.user,r=e.teamName,a=e.time;return Object(l.jsxs)("li",{className:"c-activity-list__item",children:[Object(l.jsx)("div",{className:"c-activity-list__icon",children:Object(l.jsx)(m.a,{glyph:Object(h.e)(h.c.ARCHIVE_TEAM),size:"small"})}),Object(l.jsxs)("div",{className:"c-activity-list__item-content",children:[Object(l.jsx)("span",{className:"u-fw-b",children:n})," archived this for ",r,Object(l.jsx)("div",{className:"c-activity-list__timestamp",children:Object(p.e)(b()(a))})]})]},t)}}]),ActivityList}(u.PureComponent);function assertNever(e){throw new Error("Unexpected object: "+e)}function getDay(e){var t;return"newReadBy"===e.type||"newAssignedBy"===e.type||"newIcsDownloaded"===e.type||"newSharedBy"===e.type?b()(null===(t=e.groupedEvents[0])||void 0===t?void 0:t.time).format("YYYY-MM-DD"):b()(e.time).format("YYYY-MM-DD")}function isCreated(e){return e.type===S.a.created}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function caseInsensitiveString(e,t,n){return(e.values[n]?e.values[n].toUpperCase():"")>(t.values[n]?t.values[n].toUpperCase():"")?1:-1},a=n(32),i=n.n(a),o=function sortByNullableDate(e){return function(t,n){var r=e(t.original),a=e(n.original);return r&&a?i()(r).isAfter(i()(a))?1:-1:r?1:-1}}},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r,a=n(1297).wrap,i=n(1298);e.exports=function f(){return this instanceof f?a(i()):r||(r=a(i()))}},,,,,,,,function(e){e.exports=JSON.parse('"2.17.0"')},,,,,,,,,,,,,,,,,,,,,function(e,t,n){},,function(e,t,n){},,,function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},,function(e,t,n){},,,,,,,,,,,function(e,t,n){},,function(e,t,n){},,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,function(e,t,n){},,function(e,t,n){},function(e,t,n){},,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,function(e,t,n){},function(e,t,n){},,,,,,function(e,t,n){},,,function(e,t,n){e.exports=function(){return new Worker(n.p+"39ce5f1b281c6cd1559f.worker.js")}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},,,,,,function(e,t,n){"use strict";n.r(t);var r=n(0),a=(n(940),n(90)),i=n(1),o=n.n(i),c=n(50),s=n(1447),l=n(2),u=n(26),d=(n(925),n(1166),n(39)),b=n.n(d),p=n(4),m=n(21),h=n(54),g=n(22),j=n(30),v=n(125),O=n(17),T=n(59),y=n(274),S=n(463),C=n(3),A=n(10),E=n(5),w=n(6),_=n(428),I=n(7),x=n(82),k=n(40),N=(n(350),n(384),n(13)),R=n(9),F=n(19),M=n(415),D=n(416),L=n(79),P=n(216),U=n(83),B=n(622),H="showComposePicker",G=function(e){Object(E.a)(MobileList,e);var t=Object(w.a)(MobileList);function MobileList(e){var n;return Object(C.a)(this,MobileList),(n=t.call(this,e)).openDrawer=function(e){n.setState((function(t){return Object(p.a)(Object(p.a)({},t),{},Object(I.a)({},e,"OPEN"))}))},n.closeDrawer=function(e){n.setState((function(t){return Object(p.a)(Object(p.a)({},t),{},Object(I.a)({},e,"CLOSED"))}))},n.state={showComposePicker:"CLOSED"},n}return Object(A.a)(MobileList,[{key:"render",value:function render(){var e=this,t=Object(L.d)(this.props.search),n=this.props.currentUser.initials,a=this.props.currentUser.permissions.includes(U.a.compose_message),i=this.props.currentTeam?Object(r.jsxs)("div",{className:"c-settings-dropdown__team",children:[Object(r.jsx)(F.a,{glyph:Object(R.e)(R.c.PEOPLE),size:"small"}),Object(r.jsx)("div",{className:"c-settings-dropdown__truncate-text",children:this.props.currentTeam.name})]}):Object(r.jsx)(F.a,{glyph:Object(R.e)(R.c.PEOPLE),size:"small"});return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsxs)(P.a,{type:"top",children:[Object(r.jsx)(P.c,{children:Object(r.jsx)(B.a,{currentUser:this.props.currentUser,composePickerProps:{topicsEnabled:this.props.topicsEnabled,queryString:this.props.search,expanded:"OPEN"===this.state[H],showComposePicker:function showComposePicker(){return e.openDrawer(H)},hideComposePicker:function hideComposePicker(){return e.closeDrawer(H)}}})}),Object(r.jsx)(P.b,{children:Object(r.jsx)(x.a,{to:{pathname:O.a.LIST},children:Object(r.jsx)("div",{className:"text-capitalize filter-text-header",children:Object(N.T)(t)})})}),Object(r.jsx)(P.d,{children:Object(r.jsxs)("div",{className:"col",style:{display:"flex",justifyContent:"center"},children:[Object(r.jsx)(x.a,{to:{pathname:O.a.MOBILE_TEAMS,search:this.props.search},children:Object(r.jsx)("button",{className:"c-settings-dropdown c--fw",children:i})}),Object(r.jsx)(x.a,{to:{pathname:O.a.SETTINGS_INDEX,search:this.props.search},children:Object(r.jsx)("button",{className:"c-settings-dropdown c--fw",children:Object(r.jsx)("div",{className:"c-settings-dropdown__ellipsis",children:n||Object(r.jsx)(F.a,{glyph:Object(R.e)(R.c.PERSON),size:"small"})})})})]})})]}),Object(r.jsx)("div",{className:"u-flex u-flex-column u-flex-auto",children:Object(r.jsx)(D.a,{currentUser:this.props.currentUser,currentTeam:this.props.currentTeam,isMobile:!0,tenantConfig:this.props.tenantConfig,searchNavigator:this.props.searchNavigator,pullToRefresh:this.props.pullToRefresh})}),Object(r.jsx)(M.a,{currentUser:this.props.currentUser,currentFilterSet:this.props.currentFilterSet,filterSetDeserializer:this.props.filterSetDeserializer,onClick:k.a,myMessagesEnabled:this.props.myMessagesEnabled,canCompose:a,isMobile:!0,searchNavigator:this.props.searchNavigator,unreadCommentInSearch:this.props.unreadCommentEnabled})]})}}]),MobileList}(i.PureComponent),W=n(617),z=n(326),V=n(330),J=n(388),Y=n(527),q=n(28),K=n(63),X=n(25),Q=function(e){Object(E.a)(MobileTeamComponent,e);var t=Object(w.a)(MobileTeamComponent);function MobileTeamComponent(){var e;Object(C.a)(this,MobileTeamComponent);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).goToTeamView=function(t){e.props.goToTeamView(t,e.props.location.search)},e}return Object(A.a)(MobileTeamComponent,[{key:"render",value:function render(){var e=this,t=this.props,n=t.userTeams,a=t.currentTeam,i=n.sort(Object(K.a)((function(e){return e.name.toLowerCase()}))).map((function(t){var n=t.id===a.id?"active":"";return Object(r.jsx)("div",{className:"mobile-dropdown-item ".concat(n),onClick:function onClick(){e.goToTeamView(t)},children:t.name},"mobile-team-".concat(t.id))}));return Object(r.jsx)(r.Fragment,{children:Object(r.jsx)("div",{className:"mobile-teams-list",children:i})})}}]),MobileTeamComponent}(i.PureComponent),Z=Object(u.b)([function(e){return e.entities.team},function(e,t){return t.currentUser}],(function(e,t){return{userTeams:l.h(e).filter((function(e){return null===e.deletedAt&&null!==e.emailAddress&&t.userTeams.includes(e.id)}))}})),$={goToTeamView:function goToTeamView(e,t){return new T.h(X.a.empty(),X.a.of(e.id),X.a.empty(),X.a.empty(),[Object(v.e)({search:Object(j.stringify)(Object(p.a)(Object(p.a)({},Object(j.parse)(t)),{},{teamId:e.id})),pathname:O.a.LIST})],!0,!1)}},ee=Object(g.j)(Object(q.connect)(Z,$)(Q)),te=n(31),ne=function(e){Object(E.a)(MobileWrapper,e);var t=Object(w.a)(MobileWrapper);function MobileWrapper(){return Object(C.a)(this,MobileWrapper),t.apply(this,arguments)}return Object(A.a)(MobileWrapper,[{key:"render",value:function render(){return Object(r.jsxs)(r.Fragment,{children:[this.props.children,Object(r.jsx)(P.a,{type:"bottom",children:Object(r.jsx)(P.c,{children:Object(r.jsx)(x.a,{to:this.props.backTo,children:Object(r.jsx)(te.a,{iconGlyph:Object(R.e)(R.c.CHEVRON_LEFT),onClick:k.a,onDarkTheme:!0})})})})]})}}]),MobileWrapper}(i.PureComponent),re=n(619),ae=n(618),ie=n(24),oe=n.n(ie),ce=n(232);function MobileFilter(e){var t=e.id,n=e.href,a=e.isActive;return Object(r.jsx)("div",{children:Object(r.jsxs)(x.a,{className:oe()("mobile-filter btn",{"c--active":a}),to:n,children:[Object(r.jsx)(F.a,{glyph:Object(ce.b)(t)}),Object(r.jsx)("span",{children:Object(N.T)(t)})]})})}var se=function(e){Object(E.a)(MobileFilterComponent,e);var t=Object(w.a)(MobileFilterComponent);function MobileFilterComponent(){return Object(C.a)(this,MobileFilterComponent),t.apply(this,arguments)}return Object(A.a)(MobileFilterComponent,[{key:"render",value:function render(){var e=Object(L.d)(this.props.location.search),t=Object(j.parse)(this.props.location.search),n=this.props.currentUser.permissions.includes(U.a.compose_message);return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsxs)("div",{className:"c-search",children:[Object(r.jsx)(M.a,{currentUser:this.props.currentUser,currentFilterSet:this.props.currentFilterSet,filterSetDeserializer:this.props.filterSetDeserializer,onClick:k.a,myMessagesEnabled:this.props.myMessagesEnabled,canCompose:n,isMobile:!1,searchNavigator:this.props.searchNavigator,unreadCommentInSearch:this.props.unreadCommentEnabled}),Object(r.jsx)("div",{className:"mobile-time-date-filters",children:Object(r.jsx)(ae.a,{currentUser:this.props.currentUser,currentFilterSet:this.props.currentFilterSet,showLabel:!1})})]}),Object(r.jsxs)("div",{className:"c-filters",children:[MobileFilterComponent.renderQuickFilter(N.D.INBOX,e,t),this.props.myMessagesEnabled&&MobileFilterComponent.renderQuickFilter(N.D.MY_MESSAGES,e,t),MobileFilterComponent.renderQuickFilter(N.D.FOLLOWING,e,t),MobileFilterComponent.renderQuickFilter(N.D.DRAFT,e,t),MobileFilterComponent.renderQuickFilter(N.D.STORED,e,t),MobileFilterComponent.renderQuickFilter(N.D.SENT,e,t),MobileFilterComponent.renderQuickFilter(N.D.ALL,e,t)]})]})}}],[{key:"generateFilterLink",value:function generateFilterLink(e,t){return{pathname:O.a.LIST_MOBILE_SEARCH,search:Object(j.stringify)(Object(p.a)(Object(p.a)({},t),{},{filter:e}))}}},{key:"renderQuickFilter",value:function renderQuickFilter(e,t,n){return Object(r.jsx)(MobileFilter,{id:e,href:MobileFilterComponent.generateFilterLink(e,n),isActive:t===e})}}]),MobileFilterComponent}(i.PureComponent),le=n(264),ue=n(263),de=n(586),fe=n(606),be=n(317),pe=n(98),me=n(38),he=n(27),ge=n(48);var je=Object(u.b)([function(e,t){return t.searchNavigator},function(e,t){return t.currentId},function(e,t){return e.entities.messageBody},function(e,t){return e.entities.topicBody}],(function(e,t,n,r){var a=e.getPreviousItem(t),i=e.getNextItem(t),o=a.map((function(e){return e.id})).orElse(""),c=i.map((function(e){return e.id})).orElse("");return{previousItemBodyLoaded:a.map((function(e){return e.type===me.a.message}))?l.l(n,o):l.l(r,o),nextItemBodyLoaded:i.map((function(e){return e.type===me.a.message}))?l.l(n,c):l.l(r,c)}})),ve=Object(g.j)(Object(q.connect)(je)((function PreFetchComponent(e){var t=Object(q.useDispatch)(),n=Object(q.useSelector)((function(t){return je(t,e)})),a=function fetchItemDetails(n){t(n.type===me.a.message?he.X.doNotSetToLoading(n.id,e.searchNavigator.currentUser.id):new ge.B(n.id))};return Object(i.useEffect)((function(){n.previousItemBodyLoaded||e.searchNavigator.getPreviousItem(e.currentId).map(a),n.nextItemBodyLoaded||e.searchNavigator.getNextItem(e.currentId).map(a)}),[e.currentId]),Object(r.jsx)(r.Fragment,{children:e.children})}))),Oe=n(338),Te=n(378),ye=n(296),Se=n(607),Ce=n(287),Ae=n(868),Ee=n(277),we=n(173);var _e="CordovaErrorTracker",Ie=function(e){Object(E.a)(CordovaErrorBoundary,e);var t=Object(w.a)(CordovaErrorBoundary);function CordovaErrorBoundary(e){var n;return Object(C.a)(this,CordovaErrorBoundary),n=t.call(this,e),getAttempts()>=3&&(n.state={hasError:!0,isCordovaError:!1},localStorage.removeItem(_e)),n}return Object(A.a)(CordovaErrorBoundary,null,[{key:"getDerivedStateFromError",value:function getDerivedStateFromError(e){return Object(p.a)(Object(p.a)({},Object(Ee.a)(Object(we.a)(CordovaErrorBoundary),"getDerivedStateFromError",this).call(this,e)),{},{isCordovaError:isErrorFromChunkLoad(e)})}}]),Object(A.a)(CordovaErrorBoundary,[{key:"componentDidCatch",value:function componentDidCatch(e,t){var n=getAttempts();isErrorFromChunkLoad(e)&&n<3?(!function localstorage_setWithExpiry(e,t,n){var r={value:t,expiry:(new Date).getTime()+n};localStorage.setItem(e,JSON.stringify(r))}(_e,String(n+1),2e4),window.location.reload()):Object(Ee.a)(Object(we.a)(CordovaErrorBoundary.prototype),"componentDidCatch",this).call(this,e,t)}},{key:"render",value:function render(){return this.state.isCordovaError?Object(r.jsx)(c.b,{spinner:c.a}):Object(Ee.a)(Object(we.a)(CordovaErrorBoundary.prototype),"render",this).call(this)}}]),CordovaErrorBoundary}(be.a);function getAttempts(){var e,t=null!==(e=function localstorage_getWithExpiry(e){var t=localStorage.getItem(e);if(!t)return null;var n=JSON.parse(t);return(new Date).getTime()>n.expiry?(localStorage.removeItem(e),null):n.value}(_e))&&void 0!==e?e:"0";return parseInt(t,10)}function isErrorFromChunkLoad(e){return"ChunkLoadError"===e.name||e.message.includes("chunk.js")}var xe=n(146),ke=n(473),Ne=n(266),Re=n(8),Fe=i.lazy((function(){return Promise.all([n.e(0),n.e(4),n.e(16),n.e(2),n.e(6)]).then(n.bind(null,1825))})),Me=i.lazy((function(){return Promise.all([n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1829))})),De=i.lazy((function(){return Promise.all([n.e(1),n.e(4),n.e(2),n.e(3),n.e(13)]).then(n.bind(null,1828))})),Le=i.lazy((function(){return n.e(7).then(n.bind(null,1827))})),Pe="mobile-specific-styling",Ue=function(e){Object(E.a)(Mobile,e);var t=Object(w.a)(Mobile);function Mobile(){var e;Object(C.a)(this,Mobile);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).renderNewTopic=function(){return Object(r.jsx)(fe.a,{})},e.renderTemplateContainer=function(){return Object(r.jsx)(Le,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,isDoublePane:!1})},e.renderList=function(){return Object(r.jsx)(G,{tenantConfig:e.props.tenantConfig,currentTeam:e.props.currentTeam,currentUser:e.props.userConfig.user,currentFilterSet:e.props.currentFilterSet,filterSetDeserializer:e.props.filterSetDeserializer,search:e.props.location.search,myMessagesEnabled:e.props.tenantConfig.settings.MY_MESSAGES,topicsEnabled:e.props.featureFlags.TOPICS,searchNavigator:e.props.searchNavigator,pullToRefresh:e.props.pullToRefresh,unreadCommentEnabled:e.props.featureFlags.UNREAD_COMMENT_SEARCH_TOKEN})},e.renderListActions=function(){return Object(r.jsxs)(r.Fragment,{children:[e.renderList(),Object(r.jsx)(re.a,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,isMobile:!0})]})},e.renderNewMessage=function(){return Object(r.jsx)(de.a,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,currentFilterSet:e.props.currentFilterSet,tenantConfig:e.props.tenantConfig,goBackTo:e.props.lastNonMessageComposeLocation,isMobile:!0})},e.renderFollowUpMessage=function(){return Object(r.jsx)(ke.a,{tenantConfig:e.props.tenantConfig,currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam})},e.renderMessage=function(t){return Object(r.jsx)(ve,{searchNavigator:e.props.searchNavigator,currentId:t,children:Object(r.jsx)(W.a,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,tenantConfig:e.props.tenantConfig,featureFlags:e.props.featureFlags,toggleRightPane:k.a,toggleLeftPane:k.a,isLeftPaneCollapsed:!0,isRightPaneCollapsed:!0,searchNavigator:e.props.searchNavigator,isMobile:!0,pullToRefresh:e.props.pullToRefresh})})},e.renderMobileSearch=function(){return Object(Oe.disablePTR)(e.props.pullToRefresh),Object(r.jsx)(ne,{backTo:{pathname:O.a.LIST,search:e.props.location.search},children:Object(r.jsx)(se,{currentFilterSet:e.props.currentFilterSet,currentUser:e.props.userConfig.user,filterSetDeserializer:e.props.filterSetDeserializer,location:e.props.location,myMessagesEnabled:e.props.tenantConfig.settings.MY_MESSAGES,searchNavigator:e.props.searchNavigator,unreadCommentEnabled:e.props.featureFlags.UNREAD_COMMENT_SEARCH_TOKEN})})},e.renderMobileTeams=function(){return Object(r.jsx)(ne,{backTo:{pathname:O.a.LIST,search:e.props.location.search},children:Object(r.jsx)(ee,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,tenantConfig:e.props.tenantConfig})})},e.renderDisplaySettings=function(){return Object(Oe.disablePTR)(e.props.pullToRefresh),Object(r.jsx)(ne,{backTo:{pathname:O.a.LIST,search:e.props.location.search},children:Object(r.jsx)(xe.g,{currentUser:e.props.userConfig.user,bccByDefault:e.props.tenantConfig.settings.BCC_DEFAULT_RECIPIENT})})},e.renderNotificationSettings=function(){return Object(Oe.disablePTR)(e.props.pullToRefresh),Object(r.jsx)(ne,{backTo:{pathname:O.a.LIST,search:e.props.location.search},children:Object(r.jsx)(Ae.a,{currentUser:e.props.userConfig.user})})},e.renderMobileSettings=function(){var t;return Object(r.jsxs)(ne,{backTo:{pathname:O.a.LIST,search:e.props.location.search},children:[Object(r.jsx)(x.a,{to:O.a.SETTINGS_APPEARANCE,className:"mobile-dropdown-item",children:"Settings"}),Object(r.jsx)(x.a,{to:O.a.SETTINGS_NOTIFICATIONS,className:"mobile-dropdown-item",children:"Notification Settings"}),Object(r.jsx)("a",{className:"mobile-dropdown-item",href:null!==(t="https://www.sedna.com/terms-of-service")?t:"",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),"undefined"!==typeof zE&&Object(r.jsx)("div",{className:"mobile-dropdown-item",onClick:function onClick(){return zE.activate({hideOnClose:!0})},children:"Support"}),!Object(pe.a)()&&null!==e.props.notificationEnabled&&Object(r.jsx)("div",{className:"mobile-dropdown-item",children:e.props.notificationEnabled?Object(r.jsx)("div",{onClick:e.props.disableNotifications,children:"Disable Notifications"}):Object(r.jsx)("div",{onClick:e.props.enableNotifications,children:"Enable Notifications"})}),Object(r.jsx)("div",{className:"mobile-dropdown-item",onClick:e.props.onLogout,children:"Logout"})]})},e.renderMesActivity=function(){return Object(r.jsx)(ne,{backTo:e.generateBackLocation(O.a.MESSAGE),children:Object(r.jsx)(z.a,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,isMobile:!0,pullToRefresh:e.props.pullToRefresh,searchNavigator:e.props.searchNavigator})})},e.renderTopicFollowers=function(){return Object(r.jsx)(ne,{backTo:e.generateBackLocation(O.a.TOPIC),children:Object(r.jsx)(Y.a,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,isDark:!0,isCompose:!1,pullToRefresh:e.props.pullToRefresh,isTouchScreen:!0,hideUserAssigments:!1,isMobile:!0})})},e.renderTopicActivity=function(){return Object(r.jsx)(ne,{backTo:e.generateBackLocation(O.a.TOPIC),children:Object(r.jsx)(J.a,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,isDark:!0,isCompose:!1,pullToRefresh:e.props.pullToRefresh,isMobile:!0})})},e.renderComposeMessageTags=function(){return Object(r.jsx)(ne,{backTo:e.generateBackLocation(O.a.COMPOSE_MESSAGE),children:Object(r.jsx)(V.b,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,isCompose:!0,isMobile:!0,isTouchScreen:!0})})},e.renderComposeMessageActivity=function(){return Object(r.jsx)(ne,{backTo:e.generateBackLocation(O.a.COMPOSE_MESSAGE),children:Object(r.jsx)(z.a,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,isCompose:!0,isMobile:!0,pullToRefresh:e.props.pullToRefresh,searchNavigator:e.props.searchNavigator})})},e.renderMessageTags=function(){return Object(r.jsx)(ne,{backTo:e.generateBackLocation(O.a.MESSAGE),children:Object(r.jsx)(V.b,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,isCompose:!1,isMobile:!0,isTouchScreen:!0,pullToRefresh:e.props.pullToRefresh})})},e.renderTopic=function(t){return Object(r.jsx)(ve,{searchNavigator:e.props.searchNavigator,currentId:t,children:Object(r.jsx)(Me,{tenantConfig:e.props.tenantConfig,currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,isMobile:!0,toggleRightPane:k.a,toggleLeftPane:k.a,isLeftPaneCollapsed:!0,isRightPaneCollapsed:!0,isTabletish:!1,searchNavigator:e.props.searchNavigator,pullToRefresh:e.props.pullToRefresh})})},e.renderComposeMessage=function(){return Object(Oe.disablePTR)(e.props.pullToRefresh),Object(r.jsx)(Fe,{currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,currentFilterSet:e.props.currentFilterSet,tenantConfig:e.props.tenantConfig,goBackTo:e.props.lastNonMessageComposeLocation,isMobile:!0,searchNavigator:e.props.searchNavigator})},e.renderTopicCompose=function(){return Object(Oe.disablePTR)(e.props.pullToRefresh),Object(r.jsx)(De,{tenantConfig:e.props.tenantConfig,currentUser:e.props.userConfig.user,currentTeam:e.props.currentTeam,isMobile:!0,goBackTo:e.props.lastNonComposeLocation})},e.renderNotFound=function(){return Object(r.jsx)(ue.b,{})},e.generateBackLocation=function(t){var n=Object(g.e)(e.props.location.pathname,{path:t()}),r=null===n||void 0===n?void 0:n.params.id;return{pathname:r?t(r):O.a.LIST,search:e.props.location.search}},e}return Object(A.a)(Mobile,[{key:"componentDidMount",value:function componentDidMount(){document.body.classList.add(Pe),window.navigator.userAgent.includes("SEDNA-Classic")&&(window.location.href=Object(le.a)())}},{key:"componentWillUnmount",value:function componentWillUnmount(){document.body.classList.remove(Pe)}},{key:"render",value:function render(){var e=this,t=Object(pe.a)()?Ie:be.a,n=!("safari"===Object(Ne.a)())&&"Notification"in window&&Object(Ce.a)()&&!Object(pe.a)();return Object(r.jsxs)("div",{className:oe()("c-mobile-layout",{"c--cordova-mobile-layout":Object(pe.a)()}),children:[Object(r.jsx)(_.a,{alertType:Object(_.b)(this.props.offline===Re.c.OFFLINE,this.props.searchState===Re.q.CRITICAL,this.props.showUpdateAlert),updateHandler:this.props.updateApplication}),Object(r.jsx)(t,{children:Object(r.jsxs)(i.Suspense,{fallback:Object(r.jsx)(c.b,{spinner:c.a}),children:[n&&Object(r.jsx)(Se.a,{enableNotifications:this.props.enableNotifications,currentUser:this.props.userConfig.user}),Object(r.jsxs)(g.c,{children:[Object(r.jsx)(g.a,{path:O.a.LIST,exact:!0,render:this.renderList}),Object(r.jsx)(g.a,{path:O.a.LIST_ACTIONS,render:this.renderListActions}),Object(r.jsx)(g.a,{path:O.a.LIST_MOBILE_SEARCH,render:this.renderMobileSearch}),Object(r.jsx)(g.a,{path:O.a.MESSAGE(),exact:!0,render:function render(t){return e.renderMessage(t.match.params.id)}}),Object(r.jsx)(g.a,{path:O.a.MESSAGE_ACTIVITY(),render:this.renderMesActivity}),Object(r.jsx)(g.a,{path:O.a.MESSAGE_TAGS(),render:this.renderMessageTags}),Object(r.jsx)(g.a,{path:O.a.COMPOSE_MESSAGE_TAGS(),render:this.renderComposeMessageTags}),Object(r.jsx)(g.a,{path:O.a.COMPOSE_MESSAGE_ACTIVITY(),render:this.renderComposeMessageActivity}),Object(r.jsx)(g.a,{path:O.a.TOPIC_ACTIVITY(),render:this.renderTopicActivity}),Object(r.jsx)(g.a,{path:O.a.TOPIC_FOLLOWERS(),render:this.renderTopicFollowers}),Object(r.jsx)(g.a,{path:O.a.COMPOSE_NEW_MESSAGE,render:this.renderNewMessage}),Object(r.jsx)(g.a,{path:O.a.COMPOSE_MESSAGE(),exact:!0,render:this.renderComposeMessage}),Object(r.jsx)(g.a,{path:O.a.COMPOSE_NEW_TOPIC,render:this.renderNewTopic}),Object(r.jsx)(g.a,{path:O.a.COMPOSE_TOPIC(),render:this.renderTopicCompose}),Object(r.jsx)(g.a,{path:O.a.TOPIC(),exact:!0,render:function render(t){return e.renderTopic(t.match.params.id)}}),Object(r.jsx)(g.a,{path:O.a.SELECT_TEMPLATE(),render:this.renderTemplateContainer}),Object(r.jsx)(g.a,{path:O.a.MOBILE_TEAMS,render:this.renderMobileTeams}),Object(r.jsx)(g.a,{path:O.a.SETTINGS_APPEARANCE,render:this.renderDisplaySettings}),Object(r.jsx)(g.a,{path:O.a.SETTINGS_NOTIFICATIONS,render:this.renderNotificationSettings}),Object(r.jsx)(g.a,{path:O.a.SETTINGS_INDEX,render:this.renderMobileSettings}),Object(r.jsx)(g.a,{path:O.a.COMPOSE_FOLLOW_UP_MESSAGE(),render:this.renderFollowUpMessage}),Object(ye.b)()&&Object(r.jsx)(ye.a,{path:O.a.PREVIEW()}),Object(r.jsx)(g.a,{render:this.renderNotFound})]})]})}),!Object(ye.b)()&&Object(r.jsx)(Te.a,{isMobile:!0})]})}}]),Mobile}(i.PureComponent),Be=n(867),He=n(233),Ge=n(426),We=n(115),ze=n(44),Ve=n(1481),Je=n(111),Ye=n(365),qe=n(51),Ke=n(62),Xe=n(108),Qe=n(47),Ze=n(178),$e=n(835),et=n(558),tt=n(93),nt=n(612);function useSessionStorage(e,t){var n=Object(i.useState)((function(){return function getSessionStorage(e,t){try{var n=window.sessionStorage.getItem(e);return n?JSON.parse(n):t}catch(r){return console.log(r),t}}(e,t)})),r=Object(m.a)(n,2),a=r[0],o=r[1];return[a,Object(i.useCallback)((function(t){try{o(t),window.sessionStorage.setItem(e,JSON.stringify(t))}catch(n){console.log(n)}}),[e])]}var rt=n(97),at=n(909),it=n(257),ot=n(476),ct=n(103),st=n(616),lt=n(913),ut=n(912),dt=n(911),ft=n(375);function _initializeOpenTelemetry(){return(_initializeOpenTelemetry=Object(h.a)(b.a.mark((function _callee(e,t,n){var r,a,i;return b.a.wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:a=new at.a({url:Object(qe.n)("/telemetry/v1/traces")}),(i=new it.b({resource:new ot.a((r={},Object(I.a)(r,ct.b.SERVICE_NAME,"portal2"),Object(I.a)(r,"cluster",t),Object(I.a)(r,"session.user_id",n.id),Object(I.a)(r,"session.team_id",n.defaultTeamId),Object(I.a)(r,"session.tenant_id",n.companyIdentifier),Object(I.a)(r,"session.client_version",e),r))})).addSpanProcessor(new st.b(a)),i.register({contextManager:new lt.a,propagator:new dt.a}),Object(ft.c)({instrumentations:[new ut.a({clearTimingResources:!0,applyCustomAttributesOnSpan:function applyCustomAttributesOnSpan(e,t){var n=e.attributes;if((null===n||void 0===n?void 0:n["http.url"])&&(null===n||void 0===n?void 0:n["http.method"])){var r=n["http.url"].split(/[?#]/)[0];e.updateName("".concat(n["http.method"]," ").concat(r))}},ignoreUrls:[/appcues/,/launchdarkly/,/mixpanel/,/sentry/]})]});case 5:case"end":return o.stop()}}),_callee)})))).apply(this,arguments)}var bt=n(328),pt=i.lazy((function(){return Promise.resolve().then(n.bind(null,338))})),mt=!1,ht=!1;function _initializeAnalytics(){return(_initializeAnalytics=Object(h.a)(b.a.mark((function _callee(e,t,n){var r;return b.a.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:window.mixpanel=null!==(r=window.mixpanel)&&void 0!==r?r:Object($e.a)(n,qe.h.toNullable(),qe.e,qe.j,qe.b,e,t);case 1:case"end":return a.stop()}}),_callee)})))).apply(this,arguments)}function _configureZendesk(){return(_configureZendesk=Object(h.a)(b.a.mark((function _callee2(e){var t,n,r;return b.a.wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:if("undefined"!==typeof zE&&!mt){a.next=2;break}return a.abrupt("return");case 2:mt=!0,r=Object(ze.c)(e.firstName,e.lastName),zE("webWidget","identify",{name:r,email:null!==(t=e.ssoEmail)&&void 0!==t?t:e.emailAddress,organization:e.companyIdentifier}),zE("webWidget","prefill",{name:{value:r},email:{value:null!==(n=e.ssoEmail)&&void 0!==n?n:e.emailAddress}});case 6:case"end":return a.stop()}}),_callee2)})))).apply(this,arguments)}var gt=Object(u.b)([function(e){return e.ui.notifications.subscribed}],(function(e){return e}));function InitialisationContainer(e){var t=Object(q.useDispatch)(),n=Object(Je.c)().isMobile,a=Object(g.g)(),o=Object(u.d)((function(t){return Object(bt.a)(t,a.search,e.userConfig.user)})),c=Object(u.d)((function(e){return gt(e)})),s=Object(u.d)((function(t){return Object(We.a)(t,e.userConfig.user)})),l=s.fromQueryParams(a.search),d=Object(Ge.a)(a.search),b=Object(u.d)((function(e){return e.ui.featureFlags})),h={TOPICS:b.TOPICS,SEARCH_PARTIAL_MATCH_FUZZINESS:b.SEARCH_PARTIAL_MATCH_FUZZINESS,INCLUDE_NO_MATCH_IN_MY_MESSAGES:e.tenantConfig.settings.INCLUDE_NO_MATCH_IN_MY_MESSAGES,SLIM_MY_MESSAGES:e.tenantConfig.settings.SLIM_MY_MESSAGES,TEAM_AWARE_MM:e.tenantConfig.settings.TEAM_AWARE_MM,SEARCH_PLATFORM:b.SEARCH_PLATFORM||a.search.includes("forceSearchPlatform=true"),FORCE_DEGRADED:a.search.includes("forceDegraded=true")},C=Object(u.d)((function(e){return Object(D.b)(e,a.search)})),A=Object(u.d)((function(e){return Object(Ge.b)(e,a.search)})),E=Object(u.d)((function(e){return e.ui.searchState})),w=Object(u.d)((function(e){return e.ui.update.versionReleaseAvailable})),_=Object(u.d)((function(e){return e.ui.sidebar.isEnabled})),I=useSessionStorage("last_non_compose_v1",{pathname:O.a.LIST,search:a.search}),x=Object(m.a)(I,2),k=x[0],N=x[1],R=useSessionStorage("last_non_message_compose_v1",{pathname:O.a.LIST,search:a.search}),F=Object(m.a)(R,2),M=F[0],L=F[1],P=i.useRef(),B=i.useRef();i.useEffect((function(){var n=e.userConfig.user,r=e.tenantConfig.tenant,i=Object(j.parse)(a.search).teamId;t(new Ke.l("".concat(Object(qe.a)(),"/sockjs"))),i&&n.userTeams.includes(i)?i!==n.teamId&&t(T.h.switchTeam(n.teamId,[Object(v.e)({search:Object(j.stringify)(Object(p.a)(Object(p.a)({},Object(j.parse)(a.search)),{},{teamId:n.teamId})),pathname:void 0})])):t(Object(v.f)({search:Object(j.stringify)(Object(p.a)(Object(p.a)({},Object(j.parse)(a.search)),{},{teamId:n.teamId}))})),function configureZendesk(e){return _configureZendesk.apply(this,arguments)}(n),function configureSentry(e){"PRD"!==qe.f||ht||(ht=!0,Ze.c({id:e.id,username:e.username+"."+e.companyIdentifier}),Ze.b({companyId:e.companyId}))}(n),b.ENABLE_OPEN_TELEMETRY&&function initializeOpenTelemetry(e,t,n){return _initializeOpenTelemetry.apply(this,arguments)}(qe.j,qe.e,n),function initializeAnalytics(e,t,n){return _initializeAnalytics.apply(this,arguments)}(n,o,r);var c=Object(rt.a)("".concat(xe.d,"_").concat(n.id),xe.e);!function initializeAppcues(e,t,n){if(!Object(Ce.c)()&&!window.Appcues){var r=document.createElement("script");r.src="//fast.appcues.com/79075.js",r.id="appcues-script",document.body.appendChild(r);var a=e.roles,i=e.permissions;r.onload=function(){Appcues.identify("".concat(e.companyIdentifier,".").concat(e.id),{firstName:e.firstName,lastName:e.lastName,defaultTeam:e.defaultTeamId,hasMultipleTeams:0!==e.userTeams.length,company:e.companyIdentifier,companyShortName:t.shortName,userCreatedAt:e.createdAt,lastLogin:e.lastLoginDate,appVersionUnix:Object(Ye.a)(qe.j),appVersion:qe.j,isRegularUser:a.includes(U.b.REGULAR_USER),isSuperUser:a.includes(U.b.SUPER_USER),isITSupport:a.includes(U.b.IT_SUPPORT),isReadOnly:a.includes(U.b.READ_ONLY),isMessageExport:i.includes(U.a.export_messages),isManageJobReferences:i.includes(U.a.add_job_reference)&&i.includes(U.a.delete_job_reference),sidebarEnabled:n}),Appcues.loadLaunchpad("#appcues-launchpad",{position:n?"top-right":"left",header:"SEDNA Guides"}),Appcues.on("flow_started",(function(){Appcues.loadLaunchpad("#appcues-launchpad",{position:n?"top-right":"left",header:"SEDNA Guides"})}))}}}(n,r,Object(S.c)(b.SIDEBAR_NAVIGATION,c))}),[]),i.useEffect((function(){!function reloadAppcues(e,t){window.Appcues&&(Appcues.identify("".concat(e.companyIdentifier,".").concat(e.id),{sidebarEnabled:t}),Appcues.loadLaunchpad("#appcues-launchpad",{position:t?"top-right":"left",header:"SEDNA Guides"}),Appcues.on("flow_started",(function(){Appcues.loadLaunchpad("#appcues-launchpad",{position:t?"top-right":"left",header:"SEDNA Guides"})})))}(e.userConfig.user,_)}),[e.userConfig.user,_]),function useExplicitTeamUrl(e){var t=Object(g.g)(),n=Object(j.parse)(t.search).teamId,r=Object(u.d)(tt.a),a=Object(q.useDispatch)(),o=Object(g.e)(t.pathname,{path:"/compose/:type"});Object(i.useEffect)((function(){r&&n!==e.defaultTeamId.toString()&&!o&&a(T.h.switchTeam(e.defaultTeamId.toString(),[Object(v.e)({search:Object(j.stringify)(Object(p.a)(Object(p.a)({},Object(j.parse)(t.search)),{},{teamId:e.defaultTeamId.toString()})),pathname:t.pathname})]))}),[t.search])}(e.userConfig.user);var H=Object(u.d)(tt.a);i.useEffect((function(){var e=a.search;H&&P.current!==e&&t(new T.g(Object(et.a)(l)))}),[l,t,H,a.search]),i.useEffect((function(){var e=Object(g.e)(a.pathname,{path:"/compose/:type"});null===e&&N({pathname:a.pathname,search:a.search}),null!==e&&["message","templates"].includes(e.params.type)||L({pathname:a.pathname,search:a.search})}),[a.pathname,a.search,N,L]),i.useEffect((function(){if("undefined"!==typeof Appcues&&(a.pathname!==B.current||a.search!==P.current)){if(function shouldIgnorePath(e,t,n,r){var a,i=r.pathname.match(e),o=null===(a=t.current)||void 0===a?void 0:a.match(e);return i&&o&&o[2]===i[2]&&r.search===n.current}(/^\/list|preview\//,B,P,a))return;Appcues.page()}B.current=a.pathname}),[a]),i.useEffect((function(){if(P.current){var e=a.search;if(P.current!==e)t(new Qe.b);else{var n=Object(g.e)(a.pathname,{path:O.a.LIST_ITEM()});(null===n||void 0===n?void 0:n.params.id)&&t(new Qe.n(n.params.id))}P.current=a.search}else P.current=a.search}),[a.pathname,a.search]),i.useEffect((function(){"undefined"!==typeof zE&&zE("webWidget","updateSettings",{webWidget:{chat:{suppress:!b.LIVE_CHAT,departments:{enabled:[]}}}})}),[b.LIVE_CHAT]),function useResponsiveDispatch(e){var t=Object(u.d)((function(e){return e.ui.responsive.isMobile})),n=Object(q.useDispatch)();i.useEffect((function(){e!==t&&n(new nt.a(e))}),[e,n,t])}(n);var G=Object(p.a)(Object(p.a)({},e),{},{onLogout:function onLogout(){t(c?new Xe.j(new y.b(qe.d)):new y.b(qe.d))},updateApplication:function updateApplication(){t(new T.i)},enableNotifications:function enableNotifications(){t(new Xe.i)},disableNotifications:function disableNotifications(){t(new Xe.j)},toggleShowFullBucket:function toggleShowFullBucket(e){t(new Qe.t(e))},lastNonComposeLocation:k,lastNonMessageComposeLocation:M,currentTeam:o,notificationEnabled:c,featureFlags:b,showUpdateAlert:w,searchState:E,currentFilterSet:l,filterSetDeserializer:s,searchNavigator:new He.a(e.userConfig.user,l,d.strategy,d.order,a,A,C,h)});return Object(r.jsx)(Ve.a,{backend:Be.a,children:n?Object(pe.a)()?Object(r.jsx)(pt,{children:function children(e){return Object(r.jsx)(Ue,Object(p.a)(Object(p.a)({},G),{},{location:a,pullToRefresh:e}))}}):Object(r.jsx)(Ue,Object(p.a)(Object(p.a)({},G),{},{location:a})):Object(r.jsx)(S.b,Object(p.a)(Object(p.a)({},G),{},{explicitTeamTokenEnabled:H}))})}var jt=n(126),vt=n(272),Ot=n(228),Tt=n(882),yt=n(166);n(458);function TokenExpiryError(){return Object(r.jsxs)("div",{className:"c-layout",children:[Object(r.jsxs)(vt.a,{children:[Object(r.jsx)(vt.b,{children:Object(r.jsx)(Ot.a,{logoLink:Object(Ot.c)()})}),Object(r.jsx)(vt.e,{})]}),Object(r.jsxs)("div",{className:"c-layout__body c-error-page",children:[Object(r.jsx)(yt.a,{className:"c-error-page__logo"}),Object(r.jsx)(F.a,{glyph:Object(R.e)(R.c.LOCK),size:"xlarge",className:"u-mb-md"}),Object(r.jsx)("h2",{children:"Your session has expired"}),Object(r.jsx)("p",{className:"u-text-medium",children:"Log in again to continue"}),Object(r.jsx)(Tt.a,{color:"primary",onClick:function loginButtonHandler(){window.location.href="/launch/"},children:"Log in"})]})]})}var St=n(707),Ct=n.n(St);n(1434);function Login(){return Object(r.jsx)("div",{className:"v-login",children:Object(r.jsxs)("div",{className:"v-login__body",children:[Object(r.jsx)("div",{className:"v-login__logo",children:Object(r.jsx)(yt.a,{})}),Object(r.jsxs)("div",{className:"v-login__container",children:[Object(r.jsx)("div",{className:"v-login__heading",children:"Log In"}),Object(r.jsx)("div",{id:"lock-widget"})]}),Object(r.jsxs)("div",{className:"v-login__small-print",children:[Object(r.jsx)("a",{href:"https://www.sedna.com/terms-of-service",className:"v-login__terms-link",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),"\xa9 ",(new Date).getFullYear(),"\xa0\u2022\xa0",Object(r.jsx)("a",{href:"https://www.sedna.com/",children:"SEDNA Systems Pte. Ltd."})]})]})})}function CordovaLoginHandler(e){var t;return t=window.cordova,window.cordova=null,i.useEffect((function(){return function(){return window.cordova=t}}),[t]),e.children}function LoginScreen(e){var t=Object(g.g)();return i.useEffect((function(){var n=Object(j.parse)(t.search),r=encodeURIComponent("".concat(t.pathname).concat(t.search)),a="".concat("/launch","/"),i="".concat(window.location.origin).concat(a),o=X.a.of(n.login_redirect).maybe("",(function(e){return"&login_redirect=".concat(e)})),c=n.from?"&from=".concat(n.from):"",s={allowForgotPassword:!1,allowSignUp:!1,avatar:null,closable:!1,container:"lock-widget",theme:{primaryColor:"var(--action-50)"},usernameStyle:"username",auth:{sso:!0,redirect:!0,responseType:"token id_token",redirectUrl:"".concat(i,"?original_path=").concat(r).concat(o).concat(c)},rememberLastLogin:!1,oidcConformant:!1,configurationBaseUrl:"https://cdn.auth0.com"},l=new Ct.a(qe.c,qe.d,s);return l.show(function buildShowOptions(e){if("NEVER_LOGGED_IN"===e)return{};var t="Wrong username or password";return"IP_BLOCKED"===e?t="You must log on from the internal company network.":"INVALID_CERTIFICATE"===e&&(t="Invalid certificate credentials provided."),{flashMessage:{type:"error",text:t}}}(e.error)),"undefined"!==typeof zE&&zE("webWidget","show"),function(){l.hide(),"undefined"!==typeof zE&&zE("webWidget","hide")}}),[t.pathname,t.search,e.error,e.isCordova]),e.isCordova?Object(r.jsx)(CordovaLoginHandler,{children:Object(r.jsx)(Login,{})}):Object(r.jsx)(Login,{})}n(1435);var At=Object(u.b)([function(e){return l.g(e.entities.userConfig,l.a)},function(e){return l.g(e.entities.tenantConfig,l.a)},function(e){return e.ui.network.offline}],(function(e,t,n){return{userConfig:e,tenantConfig:t,offline:n}}));function AppContainer(){var e=Object(q.useSelector)(At),t=e.userConfig,n=e.tenantConfig,a=e.offline;return jt.e&&!Object(jt.d)()?Object(r.jsx)(LoginScreen,{error:"NEVER_LOGGED_IN",isCordova:Object(pe.a)()}):t.map((function(e){return Object(r.jsx)(InitialisationContainer,{userConfig:e,tenantConfig:n.orElseThrow(),offline:a})})).unwrap((function(){return Object(r.jsx)(c.b,{spinner:c.a,fadeIn:"none"})}),(function(e){return"EXPIRED"===e?Object(r.jsx)(TokenExpiryError,{}):Object(r.jsx)(LoginScreen,{error:e,isCordova:Object(pe.a)()})}))}var Et,wt=n(85),_t=n(613),It=n.n(_t),xt=n(43),kt=(n(864),n(34)),Nt=function(e){Object(E.a)(NotificationSystemComponent,e);var t=Object(w.a)(NotificationSystemComponent);function NotificationSystemComponent(){var e;Object(C.a)(this,NotificationSystemComponent);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).notificationSystem=X.a.empty(),e.notify=function(t){e.notificationSystem=X.a.of(t)},e.convertNotification=function(t){return{uid:t.id,message:t.button?Object(r.jsxs)("div",{className:"u-flex u-items-center u-justify-between",children:[t.message,Object(r.jsx)(kt.a,{className:"u-ml-xs",onDarkBg:!0,buttonStyle:"link",onClick:t.button.onClick,children:t.button.label})]}):t.message,position:"bc",level:Rt(t.level),dismissible:"click",onRemove:function onRemove(){return e.props.clearNotification(t.id)},children:Object(r.jsx)(F.a,{className:"notification-dismiss-icon",glyph:Object(R.e)(R.c.CLEAR),size:"regular"})}},e}return Object(A.a)(NotificationSystemComponent,[{key:"UNSAFE_componentWillReceiveProps",value:function UNSAFE_componentWillReceiveProps(e){var t=this;if(0!==e.notification.length){var n=e.notification[0],r=this.props.notification[0];(null===n||void 0===n?void 0:n.replace)&&this.notificationSystem.ifPresent((function(e){e.clearNotifications()})),!n||r&&n.id===r.id||this.notificationSystem.ifPresent((function(e){e.clearNotifications(),e.addNotification(t.convertNotification(n))}))}else this.notificationSystem.ifPresent((function(e){return e.clearNotifications()}))}},{key:"render",value:function render(){return Object(r.jsx)(It.a,{ref:this.notify,style:!1})}}]),NotificationSystemComponent}(i.PureComponent);!function(e){e.info="info",e.error="error"}(Et||(Et={}));var Rt=function convertNotificationLevel(e){switch(e){case Re.n.info:return Et.info;case Re.n.warning:return Et.error}},Ft=Object(u.b)([function(e){return e.notificationState.notification}],(function(e){return{notification:e}})),Mt={clearNotification:function clearNotification(e){return new xt.a(e)}},Dt=Object(q.connect)(Ft,Mt)(Nt),Lt=n(404),Pt=n(726);function Root(e){var t=e.store,n=e.history;return Object(r.jsx)(q.Provider,{store:t,children:Object(r.jsx)(wt.a,{history:n,children:Object(r.jsx)(Je.b,{children:Object(r.jsxs)(Lt.a,{children:[Object(r.jsx)(i.Suspense,{fallback:Object(r.jsx)(c.b,{spinner:c.a}),children:Object(r.jsx)(s.a,{client:Pt.a,children:Object(r.jsx)(AppContainer,{})})}),Object(r.jsx)(Dt,{})]})})})})}var Ut=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function registerValidSW(e,t){navigator.serviceWorker.register(e).then((function(e){setInterval((function(){e.update().catch((function(){}))}),9e5),e.waiting&&t&&t.onUpdate&&t.onUpdate(e),e.onupdatefound=function(){var n=e.installing;null!=n&&(n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?(null===t||void 0===t?void 0:t.onUpdate)&&t.onUpdate(e):(null===t||void 0===t?void 0:t.onSuccess)&&t.onSuccess(e))})}})).catch((function(e){}))}var Bt=n(140),Ht=n(122),Gt=n(905),Wt=n(270),zt=n.n(Wt),Vt=n(1483),Jt=n(1482),Yt=n(908),qt=n(23);function notProductionFilter(e,t){var n,r;return(null===e||void 0===e||null===(n=e.request)||void 0===n||null===(r=n.url)||void 0===r?void 0:r.includes("sednanetwork.com"))?e:(console.log(e),null)}n(15);var Kt=n(168),Xt=n(182),Qt=n(217),Zt=n(53),$t=n(134),en=n(834),tn=n(625),nn=n(29),rn=n(610),an=n(615),on=n(297),cn=n(526),sn=n(393),ln=n(542),un=l.e(),dn=Object(Zt.createSlice)({name:"messageComments",initialState:un,reducers:{},extraReducers:function extraReducers(e){e.addCase(sn.c.fulfilled,(function(e,t){return l.o(e,t.payload.id,t.payload.publicComments.map((function(e){return e.id})))})).addCase(ln.a.fulfilled,(function(e,t){return l.v(e,t.meta.arg.uuid,t.payload.id,(function(e){return e}))}))}}).reducer,fn=n(866),bn=n(14),pn=[Object(en.a)(Kt.b),tn.a,nn.c,rn.a,an.a.middleware],mn=Object(Qt.d)(Object(I.a)({router:Object(wt.b)(Kt.b),ui:Object(Qt.d)({featureFlags:on.b}),notifications:cn.b,modules:Object(Qt.d)({message:sn.a,messageComments:dn,publicComment:ln.b,tenant:fn.a})},an.a.reducerPath,an.a.reducer)),hn=Object(Zt.configureStore)({reducer:mn,devTools:!0,middleware:function middleware(e){return e({serializableCheck:!1,immutableCheck:!1}).concat([].concat(pn,[bn.c]))}});Object($t.setupListeners)(hn.dispatch);var gn,jn=hn,vn=n(611),On=n(730);!function(e){e.info="info",e.error="error"}(gn||(gn={}));var Tn=function convertNotificationLevel(e){switch(e){case Re.n.info:return gn.info;case Re.n.warning:return gn.error}},yn=function NotificationContainer(){var e=o.a.useRef(X.a.empty()),t=o.a.useState(null),n=Object(m.a)(t,2),a=n[0],i=n[1],c=Object(u.c)((function(e){return e.notifications})),s=Object(q.useDispatch)(),l=o.a.useCallback((function(e){return s(Object(cn.a)({id:e}))}),[s]);return o.a.useEffect((function(){if(c.length){var t=c[0];t.replace&&e.current.ifPresent((function(e){return e.clearNotifications()})),a&&t.id===a.id||e.current.ifPresent((function(e){e.clearNotifications(),e.addNotification(function convertNotification(e,t){return{uid:e.id,message:e.button?Object(r.jsxs)("div",{className:"u-flex u-items-center u-justify-between",children:[e.message,Object(r.jsx)(kt.a,{className:"u-ml-xs",onDarkBg:!0,buttonStyle:"link",onClick:e.button.onClick,children:e.button.label})]}):e.message,position:"bc",level:Tn(e.level),dismissible:"click",onRemove:function onRemove(){return t(e.id)},children:Object(r.jsx)(F.a,{className:"notification-dismiss-icon",glyph:Object(R.e)(R.c.CLEAR),size:"regular"})}}(t,l)),i(t)}))}else e.current.ifPresent((function(e){return e.clearNotifications()}))}),[a,c,l]),Object(r.jsx)(It.a,{ref:function setNotificationSystem(t){e.current=X.a.of(t)},style:!1})},Sn=o.a.lazy((function(){return n.e(11).then(n.bind(null,1826))}));function SednaLiteRoot(e){var t=e.store,n=e.history;return Object(r.jsx)(o.a.Suspense,{fallback:Object(r.jsx)(c.b,{spinner:c.a}),children:Object(r.jsx)(q.Provider,{store:t,children:Object(r.jsx)(wt.a,{history:n,children:Object(r.jsx)(Je.b,{children:Object(r.jsxs)(On.a,{children:[Object(r.jsx)(Sn,{}),Object(r.jsx)(yn,{})]})})})})})}var Cn=Object(g.e)(window.location.pathname,{path:"/launch"+O.a.SHARED_MESSAGE()});function _initializeSednaLite(){return(_initializeSednaLite=Object(h.a)(b.a.mark((function _callee(e,t){return b.a.wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:if(!t||Cn&&!jt.e||Object(jt.f)(t),Object(g.e)(window.location.pathname,{path:"/launch"+O.a.SEDNA_LITE_LOGIN()})||Cn){n.next=11;break}return n.prev=3,n.next=6,Object(Xt.a)();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n.catch(3),window.location.href="".concat(window.location.origin).concat(qe.i).concat(O.a.SEDNA_LITE_LOGIN(t),"?redirectUri=").concat(window.location.href);case 11:jn.dispatch(Object(vn.a)()),Object(a.render)(Object(r.jsx)(SednaLiteRoot,{store:jn,history:Kt.b}),e);case 13:case"end":return n.stop()}}),_callee,null,[[3,8]])})))).apply(this,arguments)}var An=window.location;if("PRD"===qe.f){var En=Object.values(O.a).map((function(e){return"function"===typeof e?e():e})).sort((function(e,t){var n=e.match(/\//g).length,r=t.match(/\//g).length;return n>r?-1:r<n?1:0})).map((function(e){return{path:e}}));Vt.a({dsn:"https://2c9b0bae2fa54100af5491eba892f8de@sentry.io/1813618",release:qe.j,environment:qe.f,beforeSend:function beforeSendMiddleware(e){return function(t,n){return[].concat(Object(qt.a)(e),[notProductionFilter]).reduce((function(e,t){return t(e,n)}),t)}}([function launchdarklyFilter(e,t){var n,r;if(!e)return null;var a=(null===(n=e.exception)||void 0===n?void 0:n.values)&&e.exception.values[0],i=null===a||void 0===a||null===(r=a.stacktrace)||void 0===r?void 0:r.frames;return"SyntaxError"===(null===a||void 0===a?void 0:a.type)&&(null===i||void 0===i?void 0:i.some((function(e){var t,n;return!!(null===(t=e.module)||void 0===t?void 0:t.includes("launchdarkly"))||!!(null===(n=e.function)||void 0===n?void 0:n.includes("Object.put"))})))?null:e}]),integrations:[new Yt.a.BrowserTracing({routingInstrumentation:Jt.a(Kt.b,En,g.e)})],tracesSampleRate:.15})}"ontouchstart"in document||(document.body.className+="hover-allowed");var wn=Object(Ne.a)();wn&&document.body.classList.add(wn);var _n=function getOperatingSystem(){return navigator.platform.includes("Win")?"windows":navigator.platform.includes("Mac")?"mac-os":navigator.platform.includes("X11")?"unix":navigator.platform.includes("Linux")?"linux":null}();_n&&document.body.classList.add(_n);var In=document.getElementById("root"),xn=Object(g.e)(An.pathname,{path:"/launch"+O.a.SEDNA_LITE()}),kn=Object(g.e)(An.pathname,{path:"/launch"+O.a.SHARED_MESSAGE()});if(In)if(null!==xn&&void 0!==xn?xn:kn){var Nn=(null===kn||void 0===kn?void 0:kn.params.id)?kn.params.tenant:xn?xn.params.tenant:null;!function initializeSednaLite(e,t){return _initializeSednaLite.apply(this,arguments)}(In,Nn)}else Object(pe.b)((function(){!function initializeNormalApplication(e){var t=Object(j.parse)(An.search),n=X.a.of(t.original_path),i=X.a.of(t.login_redirect).map((function(e){return e.startsWith("/")?e:"/"})),o=function parseAuth0CallbackTokens(e){var t=Ht.a.of((function(){return e.substr(e.indexOf("access_token=")).split("&")[0].split("=")[1]})).toOptional(),n=Ht.a.of((function(){return e.substr(e.indexOf("id_token=")).split("&")[0].split("=")[1]})).toOptional();return t.flatMap((function(e){return n.map((function(t){return{accessToken:e,idToken:t}}))}))}(An.hash);o.ifPresent((function(e){var t,n=null!==(t=Object(Gt.a)(e.idToken).username.toLowerCase().split(".").pop())&&void 0!==t?t:"",r="sedna"===n?"sed":n;Object(jt.g)(r)}));var c=An.host,s=An.search.includes("from=ios-pwa"),l=An.search.includes("from=ios-native");o.isPresent()&&Object(Ce.b)()&&(s||l)&&o.ifPresent((function(e){var t=s?"sedna":"sedna-native",n=e.accessToken,r=e.idToken,a=encodeURIComponent("https://".concat(c,"/launch/"));window.location.href="".concat(t,"://login?targetUrl=").concat(a,"&accessToken=").concat(n,"&userToken=").concat(r)}));jt.e&&!Object(jt.d)()||Kt.a.dispatch(new T.h(o.map((function(e){return e.idToken})),Object(bt.b)(An.search,X.a.empty()),i.isPresent()?X.a.empty():n,i));zt.a.setAppElement("#root"),Object(a.render)(Object(r.jsx)(Root,{store:Kt.a,history:Kt.b}),e)}(In),function listenForNetworkDisconnection(){window.addEventListener("online",(function(){return Kt.a.dispatch(new Bt.a)})),window.addEventListener("offline",(function(){return Kt.a.dispatch(new Bt.b)}))}()}));!function register(e){if("serviceWorker"in navigator){if(new URL("/launch",window.location.href).origin!==window.location.origin)return;if(window.addEventListener("load",(function(){var t="".concat("/launch","/service-worker.js");Ut?(!function checkValidServiceWorker(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((function(n){var r=n.headers.get("content-type");404===n.status||null!=r&&!r.includes("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):registerValidSW(e,t)})).catch((function(){}))}(t,e),navigator.serviceWorker.ready.then((function(){}))):registerValidSW(t,e)})),navigator.serviceWorker.controller){var t=!1;navigator.serviceWorker.addEventListener("controllerchange",(function(){t||(window.location.reload(),t=!0)}))}}}({onUpdate:function onUpdate(e){Kt.a.dispatch(new T.a(e,Kt.a.getState().ui.featureFlags.UPDATE_BAR_FREQUENCY))}});var Rn=function checkForUpdate(){return Kt.a.dispatch(new T.b(Kt.a.getState().ui.featureFlags.UPDATE_BAR_FREQUENCY))};setInterval(Rn,18e5),setTimeout(Rn,5e3)}],[[1441,10,15]]]);
//# sourceMappingURL=main.a851a2e1.chunk.js.map